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
Upper case with separator or : or none standard format: 00E0B416408C other format: 00:E0:B4:16:40:8C 00:E0:B4:1640:8C 00:E0:B4:16:408C 00E0B416408C
function sugar_valid_mac($mac) { // no separator format if (strlen($mac) == 12) { return preg_match('/[A-F0-9]{12}/', $mac) == 1; } if (strlen($mac) == 17) { // separator : format $matches = preg_match('/([A-F0-9]{2}[:]){5}[A-F0-9]{2}/', $mac); if ($matches == 1) { return TRUE; } // separator - format $matches = preg_match('/([A-F0-9]{2}[\-]){5}[A-F0-9]{2}/', $mac); return ($matches == 1); } return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testToHexWithUppercaseParameter()\n {\n $colors = new Jervenclark\\Colors\\Colors;\n $this->assertTrue($colors->toHex('TOMATO') == 'FF6347');\n unset($colors);\n }", "private function colConvert($col) {\n return \":\" . preg_replace(\"/[^a-zA-Z]/\", \"\", $col);\n }", "public function testFromHexWithUppercaseParameter()\n {\n $colors = new Jervenclark\\Colors\\Colors;\n $this->assertTrue($colors->fromHex('FFFFFF') == 'white');\n unset($colors);\n }", "function upcase(){\n\t\treturn $this->_copy(Translate::Upper($this->toString(),$this->getEncoding()));\n\t}", "public function testToHexWithSpaceSeparatedParameter()\n {\n $colors = new Jervenclark\\Colors\\Colors;\n $this->assertTrue($colors->toHex('iv o ry') == 'FFFFF0');\n unset($colors);\n }", "public function testToRGBStringWithUppercaseParameter()\n {\n $colors = new Jervenclark\\Colors\\Colors;\n $this->assertTrue($colors->toRGB('DARK OLIVE GREEN', true) == '(85,107,47)');\n unset($colors);\n }", "public function testUpper()\n {\n $this->assertEquals(Str::upper('foo'), 'FOO');\n }", "function upper_case($value)\n {\n return Str::upper($value);\n }", "function isUpper(){ return $this->length()>0 && $this->toString()===$this->upcase()->toString(); }", "function hyphensToCamel($value)\n {\n return preg_replace(\"/\\-(.)/e\", \"strtoupper('\\\\1')\", $value);\n }", "function _foaf_normalize_hex($hex) {\n return strtoupper(preg_replace('/[^a-zA-Z0-9]/', '', $hex));\n}", "function humanize($str, $separator = '_') {\n return ucwords(preg_replace('/[' . preg_quote($separator) . ']+/', ' ', trim(extension_loaded('mbstring') ? mb_strtolower($str) : strtolower($str))));\n }", "public function toUpperCase(){\n return strtoupper($this->string);\n }", "public static function upper($value){\n return mb_strtoupper($value, 'UTF-8');\n }", "private function normaliseHost() {\n if (isset($this->parts['host'])) {\n $asciiHost = trim(strtolower(\\Etechnika\\IdnaConvert\\IdnaConvert::encodeString($this->parts['host']->get()))); \n $this->parts['host']->set($asciiHost);\n }\n }", "public function testToHexWithUnuniformCaseParameter()\n {\n $colors = new Jervenclark\\Colors\\Colors;\n $this->assertTrue($colors->toHex('mOccASin') == 'FFE4B5');\n unset($colors);\n }", "function toUString();", "static function getUNA() {\n return \"UNA\" . self::CDE_SEPARATOR . self::DE_SEPARATOR\n . self::DECIMAL_NOTATION . self::RELEASE_INDICATOR\n . self::REPETITION_SEPARATOR;\n }", "public function convert2ascii($buffer) \n {\n $length = (mb_substr($buffer, 0, 4));\n print 'Length :'.$length.'<br />';\n $p2 = mb_substr($buffer, 4,16);\n print 'P2 :'.$p2. '<br />';\n $p3 = (mb_substr($buffer, 20));\n //print 'P3 :'.$p3.'<br />';\n //$p4 = mb_substr($buffer, 36);\n ///print 'P4 :'.$p4.'<br />';\n $iso = $length . $p2 . $p3;// . $p4;\n print $iso.'**<br />';\n return $iso;\n //print $iso;\n \n //print $buffer.'**<br />';\n $length = strtoupper((mb_substr($buffer, 0, 4)));\n print 'Length :'. $length.'<br />';\n $p2 = mb_substr($buffer, 4,16);\n print 'P2 :' .$p2.'**<br />';\n $p3 = (mb_substr($buffer, 20,16));\n print 'P3 :'.$p3.'**<br />';\n //print $p3.'**<br />';\n //print bin2hex(mb_substr($buffer, 34,50)) . '** <br />';\n $p4 = mb_substr($buffer, 34);\n //$p4 = mb_substr($buffer, 34,50);\n \n print $p4.'**<br />'; \n //$p5 = mb_substr($buffer, 50);\n //print $p5.'**<br />'; \n $iso = $length . $p2 . $p3 . $p4;// . $p5;\n print 'ISO :'.$iso.'<br />';\n return $iso;\n //print $iso;\n }", "static function upper(string $s): string {\n return mb_strtoupper($s, 'UTF-8');\n }", "protected function myStrtoupper($n)\n {\n return mb_strtoupper($n, 'utf-8'); \n }", "public function testToRGBNonStringWithUppercaseParameter()\n {\n $colors = new Jervenclark\\Colors\\Colors;\n $this->assertTrue($colors->toRGB('DARK OLIVE GREEN') == [85,107,47]);\n unset($colors);\n }", "public function upper_case_string($emp_name){\n\t\t$let = ucwords($emp_name);\n\t\treturn $let;\t\n\t}", "public function upper_case_string($emp_name){\n\t\t$let = ucwords($emp_name);\n\t\treturn $let;\t\n\t}", "public static function upper(string $value): string\n {\n return mb_strtoupper($value, 'UTF-8');\n }", "public function dataToUS($data) {\n\n $transformado = substr($data, 6, 4) . \"-\" . substr($data, 3, 2) . \"-\" . substr($data, 0, 2);\n $transformado = ($transformado == \"--\") ? \"\" : $transformado;\n\n return $transformado;\n }", "function up($str) {\n\t\treturn strtoupper($str);\n\t}", "protected function convName($name){\n if(ctype_upper(substr($name, 0, 1))){\n $name = strtolower(preg_replace('/([^A-Z])([A-Z])/', \"$1_$2\", $name));\n }\n else{\n $name = preg_replace('/(?:^|_)(.?)/e',\"strtoupper('$1')\", $name);\n }\n return $name;\n }", "public function humanize()\n {\n $str = UTF8::str_replace(array('_id', '_'), array('', ' '), $this->str);\n\n return static::create($str, $this->encoding)->trim()->upperCaseFirst();\n }", "function ezafi_form($s) {\n if (substr($s, -2) == \"\\xd9\\x87\") // HEH\n return $s.\"\\xe2\\x80\\x8c\\xdb\\x8c\"; // ZWNJ+YEH\n else\n return $s;\n}", "function to_camelCase($value)\n{\n\t$under_pos=mixed();\n\tdo\n\t{\n\t\t$under_pos=strpos($value,'_');\n\t\tif ($under_pos!==false)\n\t\t{\n\t\t\t$value=substr($value,0,$under_pos).ucfirst(substr($value,$under_pos+1));\n\t\t}\n\t}\n\twhile ($under_pos!==false);\n\treturn $value;\n}", "function convertcharstoupper($str)\n{\n\treturn mb_convert_case($str, MB_CASE_UPPER, \"UTF-8\");\n}", "private function normalize(string $byte): string\n {\n if ($byte < '0') {\n return '';\n }\n if ($byte > 'z') {\n return '';\n }\n if ($byte <= '9') {\n return $byte;\n }\n if ($byte >= 'a') {\n return $byte;\n }\n if (($byte >= 'A') && ($byte <= 'Z')) {\n return strtolower($byte);\n }\n\n return '';\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}", "function mactoautousername($mac)\n{\n //\n // Turn it into a reversible username but isn't at first glace a mac\n // address?\n\n // Strip : and - from address, lowercase it, reverse it\n $autoUsername = strrev(strtolower(str_replace(array(\":\", \"-\"), \"\", $mac)));\n\n return $autoUsername;\n}", "function uni2utf8($uniescape)\n\t{\n\t\t$c = \"\";\n\t\t\n\t\t$n = intval(substr($uniescape, -4), 16);\n\t\tif ($n < 0x7F) {// 0000-007F\n\t\t\t$c .= chr($n);\n\t\t} elseif ($n < 0x800) {// 0080-0800\n\t\t\t$c .= chr(0xC0 | ($n / 64));\n\t\t\t$c .= chr(0x80 | ($n % 64));\n\t\t} else {\t\t\t\t// 0800-FFFF\n\t\t\t$c .= chr(0xE0 | (($n / 64) / 64));\n\t\t\t$c .= chr(0x80 | (($n / 64) % 64));\n\t\t\t$c .= chr(0x80 | ($n % 64));\n\t\t}\n\t\treturn $c;\n\t}", "public static function upper($value)\n {\n return mb_strtoupper($value);\n }", "function from_camelCase($value)\n{\n\t$out='';\n\t$len=strlen($value);\n\tfor ($i=0;$i<$len;$i++)\n\t{\n\t\t$char=$value[$i];\n\t\tif (strtolower($char)!=$char) $out.='_';\n\t\t$out.=strtolower($char);\n\t}\n\treturn $out;\n}", "public function upperCamelize()\n {\n return $this->camelize()->upperCaseFirst();\n }", "public function camelize()\n {\n $encoding = $this->encoding;\n $stringy = $this->trim()->lowerCaseFirst();\n $stringy->str = preg_replace('/^[-_]+/', '', $stringy->str);\n\n $stringy->str = preg_replace_callback(\n '/[-_\\s]+(.)?/u',\n function($match) use ($encoding) {\n if (isset($match[1])) {\n return UTF8::strtoupper($match[1], $encoding);\n } else {\n return '';\n }\n },\n $stringy->str\n );\n\n $stringy->str = preg_replace_callback(\n '/[\\d]+(.)?/u',\n function($match) use ($encoding) {\n return UTF8::strtoupper($match[0], $encoding);\n },\n $stringy->str\n );\n\n return $stringy;\n }", "function uncapitalize(){\n\t\t$first = $this->substr(0,1)->downcase();\n\t\treturn $first->append($this->substr(1));\n\t}", "protected function replace_umlauts($input){\r\n\t\t$input = preg_replace( '@\\x{00c4}@u' , \"Ae\", $input );\r\n\t\t$input = preg_replace( '@\\x{00d6}@u' , \"Oe\", $input );\r\n\t\t$input = preg_replace( '@\\x{00dc}@u' , \"Ue\", $input );\r\n\t\t$input = preg_replace( '@\\x{00e4}@u' , \"ae\", $input );\r\n\t\t$input = preg_replace( '@\\x{00f6}@u' , \"oe\", $input );\r\n\t\t$input = preg_replace( '@\\x{00fc}@u' , \"ue\", $input );\r\n\t\t$input = preg_replace( '@\\x{00df}@u' , \"ss\", $input );\r\n\r\n\t\treturn $input;\r\n\t}", "function benc_str($s) {\n\treturn strlen($s) . \":$s\";\n}", "public function plain_serial() {\n\t\treturn strtoupper(str_replace('-', '', $this->serial()));\n\t}", "public static function upper($value)\n {\n return mb_strtoupper($value, 'UTF-8');\n }", "public function it_can_return_itself_as_a_string()\n {\n $unaString = \"UNA:+.? \";\n $expectedString = \"UNA:+.? '\";\n\n $seg = Una::fromSegLine($unaString);\n\n $this->assertEquals($expectedString, (string)$seg);\n }", "public function upperCaseFirst()\n {\n $first = UTF8::substr($this->str, 0, 1, $this->encoding);\n $rest = UTF8::substr(\n $this->str,\n 1,\n $this->length() - 1,\n $this->encoding\n );\n\n $str = UTF8::strtoupper($first, $this->encoding) . $rest;\n\n return static::create($str, $this->encoding);\n }", "public function uppercase()\n {\n return $this->getNameInstance()->uppercase();\n }", "protected function decodeValueForSeparators($value)\n {\n return str_replace(array('__COLON__', '__SEMICOLON__'), array(':', ';'), $value);\n }", "public static function sup($data)\n {\n return strtoupper($data);\n }", "function blockToHuman($block){\n if (strlen($block) != 1 && strlen($block) != 2) {\n return \"BtH Error\";\n }\n\n $block_base = substr($block, 0, 1);\n if (strlen($block) == 1) {\n $block_half = null;\n }else {\n $block_half = substr($block, 1, 1);\n }\n\n if ($block_half) {\n if ($block_half == 1) {\n return \"Block $block_base first half\";\n }else{\n return \"Block $block_base second half\";\n }\n }else {\n return \"Block $block_base\";\n }\n}", "function atk_strtoupper($str)\n{\n\treturn atkString::strtoupper($str);\n}", "public function testAscii2()\n {\n $this->assertEquals(Str::ascii('etoile'), 'etoile');\n }", "public function testUncamelizeString()\n {\n\n $uncamelizeTests = array (\n 'camelize' => 'camelize',\n 'CameLiZe' => 'came_li_ze',\n 'cAmeLize' => 'c_ame_lize',\n '_camelize' => '_camelize',\n '123camelize' => '123camelize',\n 'c_a_m_e_l_i_z_e' => 'c_a_m_e_l_i_z_e',\n 'Camelize' => 'camelize',\n 'camel_ize' => 'camel_ize',\n 'CameLize' => 'came_lize',\n );\n\n $template = \"Text::uncamelize did not convert the string '%s' correctly\";\n\n foreach ($uncamelizeTests as $input => $uncamelized) {\n $expected = $uncamelized;\n $actual = PhText::uncamelize($input);\n $this->assertEquals(\n $expected,\n $actual,\n sprintf($template, $input)\n );\n }\n }", "function macro_convert_camel_to_human_readable($camel)\n{\n $camel = str_replace('_', ' ', $camel);\n $camel = str_replace('\\\\', ' ', $camel);\n $camel = preg_replace_callback(\n '/ ([A-Z])([a-z0-9])/Ss',\n function (array $matches) {\n return ' ' . strtolower($matches[1]) . $matches[2];\n },\n $camel\n );\n $camel = preg_replace_callback(\n '/([a-z0-9])([A-Z])([a-z0-9])/Ss',\n function (array $matches) {\n return $matches[1] . ' ' . strtolower($matches[2]) . $matches[3];\n },\n $camel\n );\n\n return ucfirst($camel);\n}", "public static function IPv6Hex2BinDataProviderCorrect() {}", "function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) {\n\tif ( ! strncmp( $hw, 'tp-link', 7 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = str_replace( ' TL ', ' TL-', $hw );\n\t} elseif ( ! strncmp( $hw, 'ubiquiti', 8 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = str_replace( 'bullet-m', 'bullet-m', $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = ucwords( $hw );\n\t} elseif ( ! strncmp( $hw, 'ubnt', 4 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = str_replace( 'erx', 'ER-X', $hw );\n\t\t$hw = str_replace( 'sfp', 'SFP', $hw );\n\t\t$hw = trim( $hw, ' -' );\n\t\t$hw = ucwords( $hw );\n\t} elseif ( ! strncmp( $hw, 'd-link', 6 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = str_replace( ' DIR ', ' DIR-', $hw );\n\t} elseif ( ! strncmp( $hw, 'linksys', 7 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = str_replace( ' WRT', ' WRT-', $hw );\n\t} elseif ( ! strncmp( $hw, 'buffalo', 7 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( 'HP-AG300H-WZR-600DHP', 'HP-AG300H & WZR-600DHP', $hw );\n\t\t$hw = str_replace( '-WZR', 'WZR', $hw );\n\t} elseif ( ! strncmp( $hw, 'netgear', 7 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t} elseif ( ! strncmp( $hw, 'allnet', 6 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t} elseif ( ! strncmp( $hw, 'gl-', 3 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t} elseif ( ! strncmp( $hw, 'onion-omega', 11 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t} elseif ( ! strncmp( $hw, 'alfa', 4 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t} elseif ( ! strncmp( $hw, 'wd', 2 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t} elseif ( ! strncmp( $hw, '8devices', 8 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( 'CARAMBOLA2-BOARD', 'Carambola 2', $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t} elseif ( ! strncmp( $hw, 'meraki', 6 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( 'meraki', '', $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t} elseif ( ! strncmp( $hw, 'openmesh', 8 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( 'openmesh', '', $hw );\n\t\t$hw = str_replace( '-', '', $hw );\n\t}\n\treturn $hw;\n}", "function upper($text) {\n\t$text = mb_strtoupper($text, 'UTF-8');\n\treturn $text;\n}", "function formatString($str, $type = null){\n\t\t$str\t= strtolower($str);\n\t\n\t\t// Loai bo khoang trang dau va cuoi chuoi\n\t\t$str\t= trim($str);\n\t\n\t\t// Loai bo khoang trang du thua giua cac tu\n\t\n\t\t$array \t= explode(\" \", $str);\n\t\tforeach($array as $key => $value){\n\t\t\tif(trim($value) == null) {\n\t\t\t\tunset($array[$key]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\t\n\t\t\t// Xu ly cho danh tu\n\t\t\tif($type==\"danh-tu\") {\n\t\t\t\t$array[$key] = ucfirst($value);\n\t\t\t}\n\t\t}\n\t\n\t\t$result = implode(\" \", $array);\n\t\n\t\t// Chuyen ky tu dau tien thanh chu hoa\n\t\t$result\t= ucfirst($result);\n\t\n\t\treturn $result;\n\t}", "public function __toString()\n {\n if ($this->hh <= 9) {\n $retorno = \"0\" . $this->hh . \":\";\n } else {\n $retorno = $this->hh . \":\";\n }\n\n if ($this->mm <= 9) {\n $retorno .= \"0\" . $this->mm . \":\";\n } else {\n $retorno .= $this->mm . \":\";\n }\n\n if ($this->ss <= 9) {\n $retorno .= \"0\" . $this->ss;\n } else {\n $retorno .= $this->ss;\n }\n return $retorno;\n }", "public function toUpperCase() {\n\t\t\tif ($this->info->type == 'string') {\n\t\t\t\t$value = strtoupper($this->value);\n\t\t\t\treturn static::factory($this->name, $value);\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public function toUpperCase()\n {\n $str = UTF8::strtoupper($this->str, $this->encoding);\n\n return static::create($str, $this->encoding);\n }", "final public static function strtnu($value, $fail = null, $charlist = null) {\n if (!is_scalar($value)) {\n return $fail;\n }\n settype($value, 'string');\n $string = $charlist ? trim($value, $charlist) : trim($value);\n return String::toUpperCase($string) ?: $fail;\n }", "function UTF2ASCII($code) {\n $UTFchars = array ( //code point UTF8 character name\n '/À/' => 'A', // U+00C0 c3 80 Latin capital letter A with grave\n '/Á/' => 'A', // U+00C1 c3 81 Latin capital letter A with acute\n '/Â/' => 'A', // U+00C2 c3 82 Latin capital letter A with circumflex\n '/Ã/' => 'A', // U+00C3 c3 83 Latin capital letter A with tilde\n '/Ä/' => 'A', // U+00C4 c3 84 Latin capital letter A with diaeresis\n '/Å/' => 'A', // U+00C5 c3 85 Latin capital letter A with ring above\n '/Æ/' => 'AE', // U+00C6 c3 86 Latin capital letter AE\n '/Č/' => 'C', // U+010C c4 8c Latin capital letter C with caron\n '/Ç/' => 'C', // U+00C7 c3 87 Latin capital letter C with cedilla\n '/È/' => 'E', // U+00C8 c3 88 Latin capital letter E with grave\n '/É/' => 'E', // U+00C9 c3 89 Latin capital letter E with acute\n '/Ê/' => 'E', // U+00CA c3 8a Latin capital letter E with circumflex\n '/Ë/' => 'E', // U+00CB c3 8b Latin capital letter E with diaeresis\n '/Ì/' => 'I', // U+00CC c3 8c Latin capital letter I with grave\n '/Í/' => 'I', // U+00CD c3 8d Latin capital letter I with acute\n '/Î/' => 'I', // U+00CE c3 8e Latin capital letter I with circumflex\n '/Ï/' => 'I', // U+00CF c3 8f Latin capital letter I with diaeresis\n '/Ł/' => 'L', // U+0141 c5 81 Latin capital letter L with stroke\n '/Ñ/' => 'N', // U+00D1 c3 91 Latin capital letter N with tilde\n '/Ò/' => 'O', // U+00D2 c3 92 Latin capital letter O with grave\n '/Ó/' => 'O', // U+00D3 c3 93 Latin capital letter O with acute\n '/Ô/' => 'O', // U+00D4 c3 94 Latin capital letter O with circumflex\n '/Õ/' => 'O', // U+00D5 c3 95 Latin capital letter O with tilde\n '/Ö/' => 'O', // U+00D6 c3 96 Latin capital letter O with diaeresis\n '/Ø/' => 'O', // U+00D8 c3 98 Latin capital letter O with stroke\n '/Ù/' => 'U', // U+00D9 c3 99 Latin capital letter U with grave\n '/Ú/' => 'U', // U+00DA c3 9a Latin capital letter U with acute\n '/Û/' => 'U', // U+00DB c3 9b Latin capital letter U with circumflex\n '/Ü/' => 'U', // U+00DC c3 9c Latin capital letter U with diaeresis\n '/Ř/' => 'R', // U+0158 c5 98 Latin capital letter R with caron\n '/Š/' => 'S', // U+0160 c5 a0 Latin capital letter S with caron\n '/Ý/' => 'Y', // U+00DD c3 9d Latin capital letter Y with acute\n '/Ỳ/' => 'Y', // U+1EF2 e1 bb b2 Latin capital letter Y with grave\n '/Ž/' => 'Z', // U+017D c5 bd Latin capital letter Z with caron\n '/Ż/' => 'Z', // U+017B c5 bb Latin capital letter Z with dot above\n '/à/' => 'a', // U+00E0 c3 a0 Latin small letter a with grave\n '/á/' => 'a', // U+00E1 c3 a1 Latin small letter a with acute\n '/â/' => 'a', // U+00E2 c3 a2 Latin small letter a with circumflex\n '/ã/' => 'a', // U+00E3 c3 a3 Latin small letter a with tilde\n '/ä/' => 'a', // U+00E4 c3 a4 Latin small letter a with diaeresis\n '/å/' => 'a', // U+00E5 c3 a5 Latin small letter a with ring above\n '/æ/' => 'ae', // U+00E6 c3 a6 Latin small letter ae\n '/č/' => 'c', // U+010D c4 8d Latin small letter c with caron\n '/ç/' => 'c', // U+00E7 c3 a7 Latin small letter c with cedilla\n '/è/' => 'e', // U+00E8 c3 a8 Latin small letter e with grave\n '/é/' => 'e', // U+00E9 c3 a9 Latin small letter e with acute\n '/ê/' => 'e', // U+00EA c3 aa Latin small letter e with circumflex\n '/ë/' => 'e', // U+00EB c3 ab Latin small letter e with diaeresis\n '/ì/' => 'i', // U+00EC c3 ac Latin small letter i with grave\n '/í/' => 'i', // U+00ED c3 ad Latin small letter i with acute\n '/î/' => 'i', // U+00EE c3 ae Latin small letter i with circumflex\n '/ï/' => 'i', // U+00EF c3 af Latin small letter i with diaeresis\n '/ł/' => 'l', // U+0142 c5 82 Latin small letter l with stroke\n '/ñ/' => 'n', // U+00F1 c3 b1 Latin small letter n with tilde\n '/ò/' => 'o', // U+00F2 c3 b2 Latin small letter o with grave\n '/ó/' => 'o', // U+00F3 c3 b3 Latin small letter o with acute\n '/ô/' => 'o', // U+00F4 c3 b4 Latin small letter o with circumflex\n '/õ/' => 'o', // U+00F5 c3 b5 Latin small letter o with tilde\n '/ö/' => 'o', // U+00F6 c3 b6 Latin small letter o with diaeresis\n '/ø/' => 'o', // U+00F8 c3 b8 Latin small letter O with stroke\n '/ù/' => 'u', // U+00F9 c3 b9 Latin small letter u with grave\n '/ú/' => 'u', // U+00FA c3 ba Latin small letter u with acute\n '/û/' => 'u', // U+00FB c3 bb Latin small letter u with circumflex\n '/ü/' => 'u', // U+00FC c3 bc Latin small letter u with diaeresis\n '/ř/' => 'r', // U+0159 c5 99 Latin small letter r with caron\n '/š/' => 's', // U+0161 c5 a1 latin small letter s with caron\n '/ÿ/' => 'y', // U+00FF c3 bf Latin small letter y with diaeresis\n '/ý/' => 'y', // U+00FD c3 bd Latin small letter y with acute\n '/ỳ/' => 'y', // U+1EF3 e1 bb b3 Latin small letter y with acute\n '/ž/' => 'z', // U+017E c5 be Latin small letter z with caron\n '/ż/' => 'z' // U+017C c5 bc Latin small letter z with dot above\n );\n\n $code = preg_replace(array_keys($UTFchars), array_values($UTFchars), $code);\n return $code;\n }", "private final function getUpperAlpha() {\n\t\t\treturn $this->upperAlpha;\n\t\t}", "public static function toUpper($guid, $silent = FALSE) {\n return self::validate($guid, $silent) ? strToUpper($guid) : '';\n }", "protected static function fixIpv6($ip){\n\t\t\t// fix double colon\n\t\t\tif(strpos($ip,'::')!==false)$ip=str_replace('::',str_repeat(':',9-substr_count($ip,':')),$ip);\n\t\t\t// fix each slot\n\t\t\t$ip=explode(':',$ip);\n\t\t\tforeach($ip as $k=>$v){\n\t\t\t\t// fix empty/compressed slots\n\t\t\t\t$ip[$k]=$v=str_pad($v,4,'0',STR_PAD_LEFT);\n\t\t\t\t// fix ipv4-style slot\n\t\t\t\tif(strpos($v,'.')!==false){\n\t\t\t\t\t// initially empty buffer\n\t\t\t\t\t$ip[$k]='';\n\t\t\t\t\t// replace each number(byte) with a two-digit hex representation\n\t\t\t\t\tforeach(explode('.',$v) as $v2){\n\t\t\t\t\t\t$v=dechex(min((int)$v2,255));\n\t\t\t\t\t\tif(strlen($v)==1)$v='0'.$v;\n\t\t\t\t\t\t$ip[$k].=$v;\n\t\t\t\t\t}\n\t\t\t\t\t// add colon in between two pairs(bytes) (FFFFFFFF=>FFFF:FFFF)\n\t\t\t\t\t$ip[$k]=implode(':',str_split($ip[$k],4));\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn strtoupper(implode(':',$ip));\n\t\t}", "static function Sustituto_Cadena($rb){\n $rb = str_replace(\"á\", \"&aacute;\", $rb);\n $rb = str_replace(\"é\", \"&eacute;\", $rb);\n $rb = str_replace(\"®\", \"&reg;\", $rb);\n $rb = str_replace(\"í\", \"&iacute;\", $rb);\n $rb = str_replace(\"�\", \"&iacute;\", $rb);\n $rb = str_replace(\"ó\", \"&oacute;\", $rb);\n $rb = str_replace(\"ú\", \"&uacute;\", $rb);\n $rb = str_replace(\"n~\", \"&ntilde;\", $rb);\n $rb = str_replace(\"º\", \"&ordm;\", $rb);\n $rb = str_replace(\"ª\", \"&ordf;\", $rb);\n $rb = str_replace(\"á\", \"&aacute;\", $rb);\n $rb = str_replace(\"ñ\", \"&ntilde;\", $rb);\n $rb = str_replace(\"Ñ\", \"&Ntilde;\", $rb);\n $rb = str_replace(\"ñ\", \"&ntilde;\", $rb);\n $rb = str_replace(\"n~\", \"&ntilde;\", $rb);\n $rb = str_replace(\"Ú\", \"&Uacute;\", $rb);\n return $rb;\n }", "public static function iso2uni ($isoline){\n $uniline='';\n for ($i=0; $i < strlen($isoline); $i++){\n $thischar=substr($isoline,$i,1);\n $charcode=ord($thischar);\n $uniline.=($charcode>175) ? \"&#\" . (1040+($charcode-176)). \";\" : $thischar;\n }\n return $uniline;\n }", "public function deHSCentitiesReturnsDecodedStringDataProvider() {}", "function fixAddress($str = \"\") {\n\tif ( preg_match(\"/[A-Z]{3}/\", $str) ) {\n\t\t$str = strtolower($str);\n\t}\n\t$str = ucwords($str);\n\t$str = str_replace(\"'\", \"''\", $str);\n\treturn($str);\n//fixAddress\n}", "function retro_filter( $string ) {\n\treturn ( extension_loaded('mbstring') ? mb_strtoupper( $string, 'UTF-8' ) : strtoupper( $string ) );\n}", "private function normaliseScheme() {\n if (isset($this->parts['scheme'])) {\n $this->parts['scheme'] = strtolower(trim($this->parts['scheme']));\n }\n }", "function studly_case($value)\n\t{\n\t\treturn Illuminate\\Support\\Str::studly($value);\n\t}", "public function fixCharsets() {}", "public function getAddress2Attribute(string $value = null) :?string\n {\n return !is_null($value) ? ucwords($value) : $value;\n }", "function GetProperUSN($usn){\r\n\t$formattedusn = preg_replace('/\\s+/', '', $usn);\r\n\t$formattedusn = strtolower($formattedusn);\r\n\treturn $formattedusn;\r\n}", "function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) {\n\tif ( ! strncmp( $hw, 'tp-link', 7 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = str_replace( 'TP LINK ', 'TP-Link ', $hw );\n\t\t$hw = str_replace( ' TL ', ' TL-', $hw );\n\t} elseif ( ! strncmp( $hw, 'ubiquiti', 8 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = str_replace( 'bullet-m', 'bullet-m / nanostation-loco-m', $hw );\n\t\t$hw = str_replace( '-m', ' M2', $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = ucwords( $hw );\n\t} elseif ( ! strncmp( $hw, 'd-link', 6 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = str_replace( 'D LINK ', 'D-Link ', $hw );\n\t\t$hw = str_replace( ' DIR ', ' DIR-', $hw );\n\t} elseif ( ! strncmp( $hw, 'linksys', 7 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace( '-', ' ', $hw );\n\t\t$hw = str_replace( 'LINKSYS', 'Linksys ', $hw );\n\t\t$hw = str_replace( ' WRT', ' WRT-', $hw );\n\t} elseif ( ! strncmp( $hw, 'buffalo', 7 ) ) {\n\t\tif ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw );\n\t\t$hw = strtoupper( $hw );\n\t\t$hw = str_replace('BUFFALO', 'Buffalo', $hw );\n\t\t$hw = str_replace( 'HP-AG300H-WZR-600DHP', 'HP-AG300H & WZR-600DHP', $hw );\n\t\t$hw = str_replace( '-WZR', 'WZR', $hw );\n\t}\n\treturn $hw;\n}", "protected static function _unescapeChar($matches) {}", "public static function IPv6Bin2HexDataProviderCorrect() {}", "public function getProtocolSeparator() : string;", "public static function convertUpperString($string){\r\n\t//$string = ucfirst(strtolower($string));\r\n\t$string = ucwords(strtolower($string));\r\n\t\treturn $string;\r\n\t}", "public function ascii( $value ) {\n\t\t$foreign = $this->ascii;\n\n\t\t$value = preg_replace( array_keys( $foreign ), array_values( $foreign ), $value );\n\n\t\treturn preg_replace( '/[^\\x09\\x0A\\x0D\\x20-\\x7E]/', '', $value );\n\t}", "private function decorateUnicode()\n {\n $suite_caption = self::SUIT;\n $number_caption = self::NUMBER;\n foreach($this->set as $single_card){\n $single_card->unicode = '&#x1f0' . Repository::$s_parts[ $single_card->$suite_caption ] . Repository::$n_parts[ $single_card->$number_caption ] . ';' ;\n $single_card->color = in_array($single_card->$suite_caption, ['hearts', 'diamonds']) ? 'red' : 'black';\n }\n }", "function uncompress($ip) {\n\t\t\tif (!($type = IPv6::validate_ip($ip)))\n\t\t\t\treturn false;\n\n\t\t\t// Add additional colon's, until 7 (or 6 in case of an IPv4 (mapped) address\n\t\t\twhile (substr_count($ip, \":\") < (substr_count($ip, \".\") == 3 ? 6 : 7))\n\t\t\t\t$ip = substr_replace($ip, \"::\", strpos($ip, \"::\"), 1);\n\n\t\t\t$ip = explode(\":\", $ip);\n\n\t\t\t// Replace the IPv4 address with hexadecimals if needed\n\t\t\tif (in_array($type, array(\"ipv4\", \"ipv4_mapped\"))) {\n\t\t\t\t$ipv4 = $ip[count($ip)-1];\n\t\t\t\t$ipv4hex = IPv4::iptohex($ipv4);\n\t\t\t\t$hex = sprintf(\"%08s\", IPv4::iptohex($ipv4));\n\t\t\t\t$ip[count($ip)-1] = substr($hex, 0, 4);\n\t\t\t\t$ip[] = substr($hex, 4, 4);\n\t\t\t}\n\n\t\t\t// Add leading 0's in every part, up until 4 characters\n\t\t\tforeach ($ip as $index => $part)\n\t\t\t\t$ip[$index] = sprintf(\"%04s\", $part);\n\n\t\t\treturn implode(\":\", $ip);\n\t\t}", "public function testUncamelizeString()\n {\n\n $uncamelizeTests = array (\n 'camelize' => 'camelize',\n 'CameLiZe' => 'came_li_ze',\n 'cAmeLize' => 'c_ame_lize',\n '_camelize' => '_camelize',\n '123camelize' => '123camelize',\n 'c_a_m_e_l_i_z_e' => 'c_a_m_e_l_i_z_e',\n 'Camelize' => 'camelize',\n 'camel_ize' => 'camel_ize',\n 'CameLize' => 'came_lize',\n );\n\n $template = \"Text::uncamelize did not convert the string '%s' correctly\";\n\n foreach ($uncamelizeTests as $input => $uncamelized) {\n $expected = $uncamelized;\n $actual = Txt::uncamelize($input);\n $this->assertEquals(\n $expected,\n $actual,\n sprintf($template, $input)\n );\n }\n }", "function strtoproper($someString) {\n\t\treturn ucwords(strtolower($someString));\n\t}", "public static function kebabToCamelCase(string $stringToConvert, string $separator = '-'): string\n\t{\n\t\treturn \\lcfirst(\\str_replace($separator, '', \\ucwords($stringToConvert, $separator)));\n\t}", "protected function getInitials()\n {\n // replace dots and underscores with dashes.\n $dashedUsername = str_replace(['.', '_'], '-', $this->username);\n\n // ensure no special character was left...\n $normalized = str_slug($dashedUsername);\n\n // when the username has no dashes afer normalization...\n if (!str_contains($normalized, '-')) {\n // return the first two characters (UPPERCASE).\n return mb_strtoupper(mb_substr($normalized, 0, 2));\n }\n\n // when there is a dash, the we can explode into pieces.\n $parts = explode('-', $normalized);\n\n // get the initial A from the first string part.\n $initialA = mb_substr($parts[0], 0, 1);\n // get the initial B from the second string part.\n $initialB = mb_substr($parts[1], 0, 1);\n\n // concatenate the both characters and return (UPPERCASE).\n return mb_strtoupper(\"{$initialA}{$initialB}\");\n }", "public function uppercase(string|int|float $message): self\n {\n return $this->addMessage(new Uppercase($message));\n }", "function formatInput($param1)\n{\n return ucwords(strtolower($param1));\n}", "public static function sanitizeIP( $ip ) {\n $ip = trim( $ip );\n if ( $ip === '' ) {\n return null;\n }\n if ( self::isIPv4( $ip ) || !self::isIPv6( $ip ) ) {\n return $ip; // nothing else to do for IPv4 addresses or invalid ones\n }\n // Remove any whitespaces, convert to upper case\n $ip = strtoupper( $ip );\n // Expand zero abbreviations\n $abbrevPos = strpos( $ip, '::' );\n if ( $abbrevPos !== false ) {\n // We know this is valid IPv6. Find the last index of the\n // address before any CIDR number (e.g. \"a:b:c::/24\").\n $CIDRStart = strpos( $ip, \"/\" );\n $addressEnd = ( $CIDRStart !== false )\n ? $CIDRStart - 1\n : strlen( $ip ) - 1;\n // If the '::' is at the beginning...\n if ( $abbrevPos == 0 ) {\n $repeat = '0:';\n $extra = ( $ip == '::' ) ? '0' : ''; // for the address '::'\n $pad = 9; // 7+2 (due to '::')\n // If the '::' is at the end...\n } elseif ( $abbrevPos == ( $addressEnd - 1 ) ) {\n $repeat = ':0';\n $extra = '';\n $pad = 9; // 7+2 (due to '::')\n // If the '::' is in the middle...\n } else {\n $repeat = ':0';\n $extra = ':';\n $pad = 8; // 6+2 (due to '::')\n }\n $ip = str_replace( '::',\n str_repeat( $repeat, $pad - substr_count( $ip, ':' ) ) . $extra,\n $ip\n );\n }\n // Remove leading zereos from each bloc as needed\n $ip = preg_replace( '/(^|:)0+(' . RE_IPV6_WORD . ')/', '$1$2', $ip );\n return $ip;\n }", "public static function toUpper(string $input): string\n {\n return strtoupper($input);\n }", "function camelize($options = array()){\n\t\t$options += array(\n\t\t\t\"lower\" => false,\n\t\t);\n\t\t$out = $this->_copy();\n\t\t$s = &$out->_String4;\n\t\t$s = preg_replace_callback(\"/_([a-z0-9\\p{Ll}])/ui\",function($matches){ return mb_strtoupper($matches[1]); },$this->_String4);\n\n\t\tif(mb_strlen($s)){\n\t\t\t$first = $out->substr( 0, 1);\n\t\t\t$first = $options[\"lower\"] ? mb_strtolower($first) : mb_strtoupper($first);\n\t\t\t$s = $first.$out->substr(1);\n\t\t}\n\n\t\treturn $out;\n\t}", "static public function upperCamel($string) {\n $string = str_replace(' ', '_', $string);\n $parts = explode('_', $string);\n foreach($parts as $part) {\n $output .= ucfirst($part);\n }\n return $output;\n\t}", "function inversecouleur($color) {\n\n $C1 = dechex(255-hexdec(substr($color, 1, 2)));\n $C2 = dechex(255-hexdec(substr($color, 3, 2)));\n $C3 = dechex(255-hexdec(substr($color, 5, 2)));\n \n if (strlen($C1) == 1) {\n $C1 = '0'.$C1;\n \n }\n elseif (strlen($C2) == 1) {\n $C2 = '0'.$C2;\n \n }\n elseif (strlen($C3) == 1) {\n $C3 = '0'.$C3;\n \n }\n $color = strtoupper($C1) . strtoupper($C2) . strtoupper($C3);\n return '#'.$color;\n // On prend les caract�res de la couleur $color deux par deux et\n // on les mets dans des variables\n // On transforme les paires de 2 caract�res en d�cimal\n // On inverse chaque partie de la couleur en la soustrayant au maximum (255)\n // On remet chaque partie de la couleur en hexad�cimal\n // Si le nombre hexad�cimal ne prend qu'un caract�re (par exemple 'A') on le \n // transforme en '0A' car une couleur est toujours faite de 6 caract�res\n // On retourne l'inverse de la couleur fournie $color\n}", "function bintoip($ip) {\n\t\t\tif (!preg_match(\"/^[0-1]{0,128}$/\", $ip))\n\t\t\t\treturn false;\n\n\t\t\t$ip = sprintf(\"%0128s\", $ip);\n\n\t\t\t$ip = str_split($ip, 4);\n\t\t\tforeach ($ip as $index => $value)\n\t\t\t\t$ip[$index] = dechex(bindec($value));\n\n\t\t\treturn implode(\":\", str_split(implode(\"\", $ip), 4));\n\t\t}", "function testFormatPhone() {\n\n\t\t$ff = new Cgn_ActiveFormatter('888.123.4567');\n\t\t$phone = $ff->printAs('phone');\n\n\t\t$this->assertEquals('(888) 123-4567', $phone);\n\n setlocale(LC_ALL, 'en_US.UTF-8');\n\t\t$clean = $ff->cleanVar(utf8_encode('abc ABC 999 '.chr(0xF6) .'()()') );\n\t\t$this->assertEquals($clean, 'abc ABC 999 ');\n\n\t}", "protected function _getToUnicode() {}", "public function toAlternateCase(){\n $alternative = str_split(strtolower($this->string),1);\n for($i=0;$i<sizeof($alternative);$i++){\n if(($i+1)%2==0){\n $alternative[$i]=strtoupper($alternative[$i]);\n } \n }\n return $alternative = implode(\"\",$alternative);\n }" ]
[ "0.53792703", "0.5366009", "0.51355225", "0.5095498", "0.5055903", "0.50312495", "0.49975574", "0.49889895", "0.4975881", "0.49276516", "0.49027622", "0.4882567", "0.48628178", "0.48573473", "0.4853501", "0.48442566", "0.48423353", "0.48343098", "0.4809686", "0.48082075", "0.48074093", "0.48066753", "0.47751683", "0.47751683", "0.4770408", "0.4755022", "0.47456062", "0.4715897", "0.47075465", "0.47052166", "0.47008818", "0.46925265", "0.46898267", "0.46813187", "0.46749723", "0.467022", "0.4662418", "0.46497157", "0.4648122", "0.46470687", "0.4644569", "0.4644428", "0.46354944", "0.46353653", "0.46278188", "0.4624183", "0.46088183", "0.45970967", "0.45970076", "0.4583919", "0.45775345", "0.45758793", "0.45731395", "0.45693746", "0.45672002", "0.45484573", "0.4547732", "0.4534238", "0.45319617", "0.45251402", "0.4522564", "0.45219052", "0.45188424", "0.45178163", "0.4517597", "0.4516219", "0.45108992", "0.4509237", "0.45082152", "0.45051923", "0.4504938", "0.4504148", "0.44984284", "0.44971615", "0.44923002", "0.4481666", "0.44727525", "0.4471879", "0.4466218", "0.4465615", "0.44651055", "0.4458687", "0.44583285", "0.44534558", "0.4452221", "0.4449762", "0.4434445", "0.44311768", "0.44286844", "0.4427642", "0.44270182", "0.44256386", "0.44252285", "0.44212398", "0.44151822", "0.4414745", "0.44137982", "0.44126356", "0.4412131", "0.44089332" ]
0.47845566
22
Validate the input $value, default range is 1 65535
function sugar_valid_int($value, $min=1, $max=65535) { $options = array( 'options' => array( 'min_range' => $min, 'max_range' => $max, ), ); return filter_var($value, FILTER_VALIDATE_INT, $options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateValue($value)\n {\n }", "public function isValid($value)\n {\n if (!is_numeric($value)) {\n $this->addError(\n $this->translateErrorMessage(\n 'validator.numberrange.notvalid',\n 'extbase'\n ),\n 1221563685\n );\n return;\n }\n\n $minimum = $this->options['minimum'];\n $maximum = $this->options['maximum'];\n\n if ($minimum > $maximum) {\n $x = $minimum;\n $minimum = $maximum;\n $maximum = $x;\n }\n if ($value < $minimum || $value > $maximum) {\n $this->addError($this->translateErrorMessage(\n 'validator.numberrange.range',\n 'extbase',\n [\n $minimum,\n $maximum\n ]\n ), 1221561046, [$minimum, $maximum]);\n }\n }", "public function validate( $value )\n\t{\n\t\treturn $value < $this->max;\n\t}", "abstract protected function validateValue($value);", "public static function assertValidRegisterValue($value)\n {\n if ($value > 0xffff) {\n throw new InvalidArgumentException('Invalid register value, should be <= 0xffff');\n }\n }", "protected function validateUint($value) {\n if (preg_match(\"/^[0-9]+$/\", $value))\n return true;\n $this->setError(t(\"Invalid positive integer\"));\n return false;\n }", "public static function validate($value);", "abstract protected function isValidValue($value);", "abstract public function getIsValidValue($value);", "public function RangeCheck($value)\n {\n $this->preOpMethodParamsCheck(array($value));\n\n return true;\n }", "public function validate($value);", "public function validate($value);", "protected function validateRangeLength($value, $parameters){\n\t\t$size = $this->getStringSize($value);\n\t\treturn ($size >= $parameters[0]) && ($size <= $parameters[1]);\n\t}", "protected function validate(int $value): void\n {\n }", "public function validate($value) {\n\t\tif ($this->required && empty($value) && $value !== '0') {\n\t\t\tthrow new ValidationException(elgg_echo('validation:error:required'));\n\t\t}\n\n\t\tif (empty($value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->type === 'email') {\n\t\t\t$email = new EmailValidator();\n\t\t\t$email->validate($value);\n\t\t}\n\n\t\tif ($this->type === 'url') {\n\t\t\t$email = new UrlValidator();\n\t\t\t$email->validate($value);\n\t\t}\n\n\t\t$length = new LengthValidator($this->minlength, $this->maxlength);\n\t\t$length->validate($value);\n\n\t\t$number = new NumberValidator($this->min, $this->max);\n\t\t$number->validate($value);\n\t}", "public function isValid($value)\r\n {\r\n $response = parent::isValid($value);\r\n if (!$response)\r\n {\r\n $this->_messages =\r\n array(self::INVALID => \"El valor debe ser un número entero\");\r\n }\r\n return $response;\r\n }", "public function validate($value) {\n return TRUE;\n }", "function validInt($value)\n {\n return filter_var($value, FILTER_VALIDATE_INT);\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_ACCOUNT_LIMIT,self::VALUE_CAMPAIGN_LIMIT,self::VALUE_ADGROUP_LIMIT,self::VALUE_ADGROUP_TEXT_AD_LIMIT,self::VALUE_ADGROUP_DISPLAY_AD_LIMIT,self::VALUE_UNKNOWN));\n\t}", "public function validate( $value )\n\t{\n\t\treturn (int)$value === $value;\n\t}", "private function validateValue($value)\n {\n if (is_null($value)) {\n throw new \\InvalidArgumentException(\"Value cannot be null\");\n }\n }", "public function getIsValidValue($value)\r\n {\r\n return true;\r\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_SUCCESS,self::VALUE_PENDING,self::VALUE_INVALIDURL,self::VALUE_INVALIDPROTOCOL,self::VALUE_INVALIDFILE,self::VALUE_SERVERDOWN,self::VALUE_IMAGENONEXISTENT,self::VALUE_IMAGEREADTIMEOUT,self::VALUE_INVALIDFILEFORMAT,self::VALUE_IMAGEPROCESSINGERROR,self::VALUE_CUSTOMCODE));\n\t}", "public function isValid($value): bool\n {\n return is_null($value) || (is_int($value) && $value > 9);\n }", "public function validate($value)\n {\n $value = preg_replace('/[^\\d]/', '', (string) $value);\n if (strlen($value) != 11 ) {\n return false;\n }\n $acumulado = 0;\n $digits = str_split($value);\n\n // obtain digit\n $digit = array_pop($digits);\n\n for ($i=0; $i < count($digits); $i++ ) {\n $acumulado += $digits[9-$i] * (2 + ($i % 6 ));\n }\n $verif = 11 - ( $acumulado % 11 );\n $verif = $verif == 11? 0 : $verif;\n\n return $digit == $verif;\n }", "function validMaxLength($value, $max)\n {\n return strlen($value) <= $max;\n }", "public function isValid($value);", "public function isValid($value);", "public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }", "function validate_field_range(string $field_value, array &$field, array $params): ?bool\n{\n if (($field_value < $params['min']) || ($field_value > $params['max'])) {\n $field['error'] = strtr('Laukelio vertė turi būti @from iki @to', [\n '@from' => $params['min'],\n '@to' => $params['max']\n ]);\n return false;\n } else {\n return true;\n }\n}", "function validate($name,$value,$minlen,$maxlen,$datatype=\"\",$min_val=\"\",$max_val=\"\",$regexp=\"\") {\t//SAT0112:To prevent entering values which is not less than min_val and not greater than max val\n\n\t$resp=true;\n\n\t//echo \"Validating: name=\".$name.\" val=\".$value.\" min=\".$minlen.\" maxlen=\".$maxlen.\" type=\".$datatype.\" regexp=\".$regexp.\"<br>\";\n\n\t// If the value is empty and the field is not mandatory, then return\n\tif ( (!isset($minlen) || $minlen == 0) && $value == \"\" ) {\n\t\treturn true;\n\t}\n\n\t// Empty Check\n\t// Changed to === to ensure 0 does not fail \n\tif ( isset($minlen) && $minlen > 0 && $value === \"\" ) {\n\t\tadd_msg(\"ERROR\",$name.\" cannot be empty. \"); \n\t\treturn false;\n\t}\n\n\t//echo \"count($value)=[\".preg_match(\"/^[0-9]+$/\",\"12344a4\").\"]<br>\";\n\t// MIN LEN check\n\tif ( isset($minlen) && strlen($value) < $minlen ) {\n\t\tadd_msg(\"ERROR\",$name.\" should be atleast \".$minlen.\" characters long. \"); \n\t\treturn false;\n\t}\n\n\t// MAX LEN check\n\tif ( $datatype == 'enum' ) { \n\t\t$enum_str=$maxlen;\n\t\tunset($maxlen);\n\t}\n\n\tif ( isset($maxlen) && strlen($value) > $maxlen ) {\n\t\tadd_msg(\"ERROR\",$name.\" cannot be longer than \".$maxlen.\" characters. \"); \n\t\treturn false;\n\t}\n\n\t// CUSTOM REGEXP check\n\tif ( isset($regexp) && !preg_match(\"/$regexp/\",$value) ) {\n\t\tadd_msg(\"ERROR\",$name.\" is not valid. \"); \n\t\treturn false;\n\t}\n\n\t// MIN value check\n\tif( ($min_val !== '' && $value < $min_val) ) {\n\t\tadd_msg(\"ERROR\",$name.\" cannot be less than \".$min_val.\". \"); \n\t\treturn false;\n\t}\n\n\t// MAX value check\n\tif( ($max_val !== '' && $value > $max_val) ) {\n\t\tadd_msg(\"ERROR\",$name.\" cannot be greater than \".$max_val.\". \"); \n\t\treturn false;\n\t}\n\t// STANDARD DATATYPES check\n\tif ( isset($datatype) ) {\n\t\tswitch ($datatype) {\n\t\t\tcase \"int\":\n\t\t\t\tif ( filter_var($value, FILTER_VALIDATE_INT) === false ) {\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" should contain only digits. \"); \n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\tcase \"decimal\":\n\t\t\t\tif ( filter_var($value, FILTER_VALIDATE_FLOAT) === false ) {\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" should contain only digits. \"); \n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\tcase \"PASSWORD\":\n\t\t\tcase \"char\": // anything\n\t\t\tcase \"varchar\": // anything\n\t\t\tcase \"text\": // anything\n\t\t\t\treturn true;\n\t\t\t\tbreak;\n\t\t\tcase \"bigint\":\n\t\t\tcase \"tinyint\":\n\t\t\t\tif (!preg_match(\"/^[0-9]+$/\",$value)) {\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" should contain only digits. \"); \n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\tcase \"date\":\n\t\t\t\t$arr=preg_split(\"/-/\",$value); // splitting the array\n\t\t\t\t$yy=get_arg($arr,0); // first element of the array is month\n\t\t\t\t$mm=get_arg($arr,1); // second element is date\n\t\t\t\t$dd=get_arg($arr,2); // third element is year\n\t\t\t\tif( $dd == \"\" || $mm == \"\" || $yy == \"\" || !checkdate($mm,$dd,$yy) ){\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" is not a valid date, should be of the format YYYY-MM-DD \"); \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t/*case \"PASSWORD\":\n\t\t\t\tif (!preg_match(\"/^[a-zA-Z\\-_0-9]+$/\",$value)) {\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" can contain only alphabets,numbers,'-' and '_'. <br/>\"); \n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t\tbreak;\t\t\n\t\t\t*/\n\t\t\tcase \"SIMPLE_STRING\": // can only have alphabets, spaces, dots, -'s or +\n\t\t\t\tif (!preg_match(\"/^[a-zA-Z0-9\\.\\s\\-\\+]+$/\",$value)) {\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" should contain only alphabets, numbers, spaces '.', '-' or '+'. \"); \n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\tcase \"EMAIL\":\n\t\t\t\tif ( filter_var($value, FILTER_VALIDATE_EMAIL) == false ) {\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" is not valid, should be of the format abc@xyz.com. \"); \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"MOBILE\":\n\t\t\t\tif (!preg_match(\"/^[0-9]+$/\",$value)) {\n\t\t\t\t\tadd_msg(\"ERROR\",$name.\" is not valid, should be of the format 919123456789 \"); \n\t\t\t\t\treturn false;\n\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\tcase 'FILENAME':\n\t\t\t\tif ($value != basename($value) || !preg_match(\"/^[a-zA-Z0-9_\\.-]+$/\",$value) || !preg_match('/^(?:[a-z0-9_-]|\\.(?!\\.))+$/iD', $value)) {\n\t\t\t\t\tadd_msg('ERROR', \"Invalid $name. \");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'enum':\n\t\t\t\t$enum_arr=explode(',',$enum_str);\n\t\t\t\tif ( in_array($value, $enum_arr) ) {\n\t\t\t\t\tadd_msg('ERROR', \"Invalid $name.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tadd_msg(\"ERROR\",$name.\" is not valid. Please re enter.\"); \n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "public function validate($value)\n {\n return $value >= $this->smaller && $value <= $this->bigger;\n }", "protected function validateRange($value, $parameters){\n\t\treturn ($value >= $parameters[0]) && ($value <= $parameters[1]) && $this->validateNumber($value);\n\t}", "protected function validateInteger($value){\n\t\treturn filter_var($value, FILTER_VALIDATE_INT) !== false;\n\t}", "public function isValid($value)\n\t{\t\t\n \t$value = str_replace(',', '.', $value);\n \t\n\t if(is_numeric($value) && !empty($value)) {\n return true;\n\t }\n\t\t\n\t echo \"value numerique\" . $value;exit;\n\t \n\t $this->_error( self::INVALID_SYNTAX );\n\t\treturn false;\n\t}", "protected function checkValue($value)\n {\n return null !== $value && intval($value);\n }", "public function validate($value) {\n return $value == $this->filter($value) ? $value : Filter::ERR_INVALID;\n }", "abstract public function validate(\n $value\n ): bool;", "protected function validateInt($value) {\n if (preg_match(\"/^\\-?[0-9]+$/\", $value))\n return true;\n $this->setError(t(\"Invalid integer\"));\n return false;\n }", "protected function validateVoteValue($value)\n {\n $value = (float) $value * 100;\n $value = (integer) $value;\n $value = $value / 100;\n\n if ($value < $this->options['min']) {\n $value = $this->options['min'];\n } elseif ($value > $this->options['max']) {\n $value = $this->options['max'];\n }\n\n return $value;\n }", "function __invoke($value)\n {\n if(!$this->hasValue($value)){\n return true;\n }\n return strlen($value) > $this->minLength;\n }", "protected function isValidValue($value): bool\n\t{\n\t\treturn is_numeric($value) === true;\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_HIGH,self::VALUE_LOW,self::VALUE_CUSTOMCODE));\n\t}", "public function isValid($value)\n {\n if (!\\is_string($value)) {\n return false;\n }\n\n if (\\mb_strlen($value) > $this->length && $this->length != 0) {\n return false;\n }\n\n return true;\n }", "public function validate(&$value){\n $required = (get::array_def($this->attributes, 'required', false) == 'required');\n $maxlength = get::array_def($this->attributes, 'maxlength', 0);\n $msglbl = get::array_def($this->attributes, 'msglbl', get::array_def($this->attributes, 'name', $this->getId()));\n \n if( $required && (!isset($value) || strlen(trim($value)) < 1) )\n return sprintf('\"%s\" is a required field.', $msglbl);\n \n if( $maxlength > 0 && strlen(trim($value)) > $maxlength )\n return sprintf('\"%s\" has to many characters - the max length is %s.', $msglbl, $maxlength);\n \n return true;\n }", "function validateInputSize($requestValue, $min, $max) {\n $numParams = count($requestValue);\n $validateInput = true;\n // Validate the number of inputs\n if ($numParams < $min && $numParams < $max) {\n $validateInput = false;\n }\n return $validateInput;\n}", "public function isValueValid($value) {\n\t\treturn $value instanceof Type\\InteractionCounter;\n\t}", "protected function validateValue($value)\n {\n if (is_string($value) && strlen($value) < 2000) {\n if ($this->defaultScheme !== null && strpos($value, '://') === false) {\n $value = $this->defaultScheme . '://' . $value;\n }\n\n if (strpos($this->pattern, '{schemes}') !== false) {\n $pattern = str_replace('{schemes}', '(' . implode('|', $this->validSchemes) . ')', $this->pattern);\n } else {\n $pattern = $this->pattern;\n }\n\n if ($this->enableIDN) {\n $value = preg_replace_callback('/:\\/\\/([^\\/]+)/', function ($matches) {\n return '://' . idn_to_ascii($matches[1]);\n }, $value);\n }\n\n if (preg_match($pattern, $value)) {\n return null;\n }\n }\n\n return [$this->message, []];\n }", "public function isValid($value)\r\n {\r\n return true;\r\n }", "private function validate_state($value)\n \t{\n \t$value = trim($value);\n\t\t// empty user name is not valid\n\t\tif ($value) {\n\t\t\t$p_field_valid = validator_helper::validate_int_range($value, 1, 51);\n\t\t\t//echo \"p_field_valid: \" . $p_field_valid . \"<br>\";\n\t\t\t//since the validator function returns FALSE if invalid or the value if valid,\n\t\t\t//it's safer to check explicitly for not FALSE)\n\t\t\tif (!$p_field_valid === FALSE) {\n\t\t\t\t//echo \"p_field_valid: \" . $p_field_valid . \"<br>\";\n\t\t\t\treturn 1; // valid\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn 0; /* invalid characters */\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t return 0; /* field empty */\n\t\t}\n \t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_HEADER,self::VALUE_LINE));\n\t}", "function value_within_range($value, $min, $max) {\n return ((strlen($value) >= $min) && (strlen($value) <= $max));\n }", "function validMax($value, $max)\n {\n return $value <= $max;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_JPG,self::VALUE_GIF,self::VALUE_CUSTOMCODE));\n\t}", "public static function validate_id($value){\n\t\treturn (int)$value > 0;\n\t}", "private function _valid($numValue){\n\t\tif(!is_int($numValue)){\n\t\t\t//throws error\n\t\t\techo \"not an int\";\n\t\t\treturn 0;\n\t\t}\n\n\t\tif($numValue < 1 || $numValue > 100){\n\t\t\t//throws error\n\t\t\techo \"not in range\";\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn 1;\n\t}", "protected function validateFixedValues($value)\n {\n return in_array($value, $this->validValues, true);\n }", "protected function validateType($value)\n {\n }", "public function validate($value) {\n return preg_match($this->options[\"pattern\"], $value) ? $value : Filter::ERR_INVALID;\n }", "protected function validatePart($position, $value)\n {\n // Everything else must be between 0..1 and 255.\n $minimum = $this->getMinimumFor($position);\n\n return is_numeric($value)\n && $value <= 255\n && $value >= $minimum;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_CREATED,self::VALUE_DROPPEDOFF,self::VALUE_INTRANSIT,self::VALUE_DELIVERED,self::VALUE_RETURNED,self::VALUE_CANCELED,self::VALUE_LABELPRINTED,self::VALUE_UNCONFIRMED,self::VALUE_UNKNOWN,self::VALUE_ERROR,self::VALUE_CUSTOMCODE));\n\t}", "public function my_custom_validation( string $value ): bool {\n\t\treturn strlen( $value ) <= 1;\n\t}", "public static function isValueValid($value) : bool\n {\n if (! is_float($value)) {\n return false;\n }\n \n if ($value < -90. || $value > 90.) {\n return false;\n }\n \n // $digits = explode(\".\", (string)(float)$value);\n // var_dump($digits[1] ?? '');\n \n return true;\n }", "public function isValueValid($value) {\n\t\treturn $value instanceof Type\\VideoGame;\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_DAYS_1,self::VALUE_DAYS_30,self::VALUE_DAYS_180,self::VALUE_DAYS_360,self::VALUE_DAYS_540,self::VALUE_CUSTOMCODE));\n\t}", "protected function validateDigits($value){\n\t\treturn filter_var($value, FILTER_VALIDATE_INT) !== false;\n\t}", "function validMinLength($value, $min)\n {\n return strlen($value) >= $min;\n }", "public static function isInvalid($value)\n {\n }", "public function validate($value = null)\n {\n // vérification de la longueur\n if (strlen($value) < 3 || strlen($value) > 15) {\n return false;\n }\n \n // vérification du reste\n if (!preg_match(self::USER_REGEX, $value)) {\n return false;\n }\n \n // prevent usage of 'daemon' as its used for git-smart-http\n if ($value == 'daemon') {\n return false;\n }\n \n return true;\n }", "public function is_valid_setting( $value ) {\n\t\treturn strlen( $value ) < 10;\n\t}", "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 static function isValueValid($value) : bool\n {\n if (! is_string($value)) {\n return false;\n }\n \n if (preg_match('#^[a-z0-9]+$#i', $value) !== 1) {\n return false;\n }\n \n $hex = Hex::fromString(self::base62ToHex($value));\n \n return self::isHexValid($hex);\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NOTCOMPLETE,self::VALUE_COMPLETE));\n\t}", "function has_length($value, $options) {\r\n if(isset($options['min']) && !has_length_greater_than($value, $options['min'] - 1)) {\r\n return false;\r\n } elseif(isset($options['max']) && !has_length_less_than($value, $options['max'] + 1)) {\r\n return false;\r\n } elseif(isset($options['exact']) && !has_length_exactly($value, $options['exact'])) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n}", "protected static function _maxLength() {\n if (self::$_ruleValue) {\n if (strlen(trim(self::$_elementValue)) > self::$_ruleValue) {\n self::setErrorMessage(\"Enter at most \" . self::$_ruleValue . \" charachters only\");\n self::setInvalidFlag(true);\n } else {\n self::setInvalidFlag(false);\n }\n }\n }", "public function setMaxChars($value)\n {\n if (is_int($value) === false)\n throw new SystemException(SystemException::EX_INVALIDPARAMETER, 'Parameter = value');\n if ($value <= 0)\n throw new SystemException(SystemException::EX_INVALIDPARAMETER, 'Parameter = value; value must be greater than 0.');\n \n $this->maxChars = $value;\n }", "public static function isValueValid($text) : bool\n {\n return is_string($text) && strlen($text) <= self::MAX_LENGTH;\n }", "public static function valid_positive_integer($value){\n\t\treturn preg_match('@^[0-9]+$@',$value) === 1;\n\t}", "public function validateId($value)\n {\n $value = $this->validateValue($value);\n\n $pattern = '/^[0-9]{0,10}$/';\n if (preg_match($pattern, $value)) {\n return $value;\n } else {\n $this->addMessage($this->textMessages[3]);\n return false;\n }\n }", "protected function filterUint($value) {\n return abs((int) $value);\n }", "function validate_value($valid, $value, $field, $input)\n {\n }", "function validate_value($valid, $value, $field, $input)\n {\n }", "function validate_value($valid, $value, $field, $input)\n {\n }", "function validate_value($valid, $value, $field, $input)\n {\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_POSITIVE,self::VALUE_NEUTRAL,self::VALUE_NEGATIVE,self::VALUE_WITHDRAWN,self::VALUE_INDEPENDENTLYWITHDRAWN,self::VALUE_CUSTOMCODE));\n\t}", "public function hasAllowedLength($value): bool\n {\n return in_array(strlen($value), $this->lengths);\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_SUCCESS,self::VALUE_FAILURE,self::VALUE_WARNING,self::VALUE_PARTIALFAILURE));\n\t}", "public function validate ($value): void\n {\n switch ($this -> sqlType) {\n case 'FLOAT':\n case 'DOUBLE':\n case 'DECIMAL':\n // Not implemented;\n break;\n\n default:\n $common = self::TYPES[$this -> sqlType];\n if (!$this -> size)\n $this -> size = $common;\n else $this -> size = min($this -> size, $common);\n $this -> getValidator()::apply('compare', (int) $value, - $this -> size);\n $this -> getValidator()::apply('compare', (int) $value, $this -> size - 1, FALSE);\n }\n }", "function has_length( $value, $options ) {\n if ( isset( $options[ 'min' ] ) && !has_length_greater_than( $value, $options[ 'min' ] ) ) {\n return false;\n } elseif ( isset( $options[ 'max' ] ) && !has_length_less_than( $value, $options[ 'max' ] ) ) {\n return false;\n } elseif ( isset( $options[ 'exact' ] ) && !has_length_exactly( $value, $options[ 'exact' ] ) ) {\n return false;\n } else {\n return true;\n }\n}", "public static function isValid($value) : bool {\n\t\t\treturn (is_string($value) && preg_match('/^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$/', $value));\n\t\t}", "function betweenIntRange($value, $params = array()) {\t\t\n\t\t$min = 0;\n\t\t$max = 255;\n\t\textract($params);\n\t\tif (is_array($value)) {\n\t\t\t$value = array_shift($value);\n\t\t}\n\t\tif (preg_match('/^[0-9]+$/', $value)) {\n\t\t\tif ($value >= $min && $value <= $max) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\t\t\n\t\treturn false;\n\t}", "function has_length($value , $options = []){\r\n if(isset($options['max']) && (strlen($value) > (int)$options['max'])){\r\n return false;\r\n }\r\n if(isset($options['min']) && (strlen($value) < (int)$options['min'])){\r\n return false;\r\n }\r\n if(isset($options['exact']) && (strlen($value) != (int)$options['exact'])){\r\n return false;\r\n }\r\n return true;\r\n}", "function range($valor,$parms)\n\t{\t\t\n\t\tlist($min, $max) = explode(\",\", $parms, 2);\n\t\tif($valor<$min||$valor>$max)\n\t\t{\n\t\t\t$this->CI->form_validation->set_message('range', \"El campo %s debe contener un valor entre {$min} y {$max}.\");\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "public function validate()\n\t{\n\t\tif(strlen($this->value) <= $this->argument)\n\t\t\treturn true;\n\n\t\t$this->addError('Please enter no more than ' . $this->argument . ' characters.');\n\t\treturn false;\n\t}", "public static function valueIsValid($_value)\n {\n return in_array($_value,array(MicrobiltEnumSeverity_Type::VALUE_ERROR,MicrobiltEnumSeverity_Type::VALUE_WARN,MicrobiltEnumSeverity_Type::VALUE_INFO));\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_RECEIVED,self::VALUE_INPROCESS,self::VALUE_PROCESSED,self::VALUE_CUSTOMCODE));\n\t}", "public function validate($value)\n {\n return is_numeric($value);\n }", "public function __invoke($value) {\n return $this->isValid($value);\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_VALID,self::VALUE_NOLONGERVALID,self::VALUE_CUSTOMCODE));\n\t}", "public function validate($field, $value) {\n if (! empty($value) && ($value != '')) {\n if ((! is_numeric($value)) || (is_numeric($value) && (floatval($value) != intval($value)))) {\n throw new \\fwk\\exceptions\\InvalidInput(sprintf(_('%s should be a valid int'), $field));\n }\n }\n return true;\n }" ]
[ "0.72876257", "0.7143527", "0.71084255", "0.70416635", "0.68966526", "0.6882509", "0.68563944", "0.68392247", "0.6769669", "0.6733221", "0.67218935", "0.67218935", "0.6683542", "0.6665409", "0.65732", "0.6572503", "0.65530974", "0.6550955", "0.6528308", "0.6490242", "0.6459699", "0.64522886", "0.64396256", "0.64298886", "0.64078885", "0.6400659", "0.639314", "0.639314", "0.6373886", "0.63697004", "0.63498205", "0.63407826", "0.6338985", "0.63372034", "0.6322425", "0.63057375", "0.6298692", "0.6246144", "0.62398344", "0.62282705", "0.62205845", "0.6204283", "0.61970353", "0.61918026", "0.61702645", "0.6166286", "0.61653554", "0.6152655", "0.61487806", "0.6148088", "0.6143328", "0.6139173", "0.61361134", "0.6128827", "0.61145943", "0.61031467", "0.60998714", "0.6095616", "0.6072758", "0.607059", "0.6065707", "0.6061872", "0.60463864", "0.6044531", "0.60439724", "0.60405123", "0.60394686", "0.6034692", "0.6030407", "0.60302144", "0.6029138", "0.60200554", "0.6019894", "0.6019578", "0.60134065", "0.6006807", "0.6004355", "0.6003649", "0.6001503", "0.59984803", "0.59940505", "0.59940505", "0.59940505", "0.59940505", "0.59842783", "0.5984037", "0.5981643", "0.5981106", "0.5971066", "0.5964869", "0.596428", "0.59550345", "0.595024", "0.5948604", "0.5946308", "0.59451526", "0.59423286", "0.5940257", "0.5937862", "0.5935001" ]
0.6593389
14
Run the database seeds.
public function run() { DB::table('mensagens_especiais')->insert([ 'title' => 'Mensagem de promoção', 'text' => 'Estamos cadastrnado vendedores para vender camisetas on-line, tenha sua loja própria' ]); }
{ "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
Alias for create the image name
public function getPath($image = null, $imageId = null) { if($imageId) { $image = $this->container->get('doctrine')->getRepository('ImageBundle:Image')->find($imageId); } return $this->container->get('imagehandler')->getPath($image); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function imageName() {}", "public function getImageName();", "protected function buildFileName()\n\t{\n\t\t$upscale = $this->upscale ? 'upscale' : 'noupscale';\n\t\treturn $this->namePrefix . '-' . $this->width . 'x' . $this->height . '-' . $upscale . '-' . $this->quality . '-' . $this->imageName;\n\t}", "protected function imageName() {\n\n\t\treturn NULL;\n\t}", "private function createImageName($imageInfo, $shopName, $imageTypeName)\n {\t\n \t$folderName = $this->createFolderName($shopName);\n \t//get Image Mine Type\n $logoType =$imageInfo->getClientMimeType();\n $ext = substr($logoType, strrpos($logoType, '/') +1);\n //get Current Date time String\n $date = $this->currentTime();\n //concrite a new logo Name\n $newName = $date.'_'.$folderName.$imageTypeName.'.'.$ext;\n\n //return logo name\n return $newName;\n }", "function makeThumbnailName($image) {\r\n $i = strrpos($image, '.');\r\n $image_name = substr($image, 0, $i);\r\n $ext = substr($image, $i);\r\n $image = $image_name . '-tn' . $ext;\r\n return $image;\r\n }", "public function genFilename()\n {\n $filename = $this->getAssetableType().$this->assetable_id.'_';\n $filename .= uniqid();\n if(!empty($this->getThumbnailType())) $filename .= '_'.$this->getThumbnailType();\n $filename .= '.'.$this->uploadedFile->extension;\n $this->filename = $filename;\n }", "private function createImageName() {\n $nameFree = true;\n\n // loop thru until a name is free (probably instantly)\n // caveat: i was lazy and decided to go thru entire images table.\n // could be a problem in the future if db got huge...\n do {\n // create a slug\n $name = parent::createSlug(self::BASE_IMG_NAME_START);\n\n // see if the slug is already in the db\n $count = Images::where('slug', $name)->count();\n\n if ($count > 0) break;\n } while(!$nameFree);\n\n return $name;\n }", "function getName() \t\t { return 'NP_ImageCreateThumbnail'; }", "private function createName() : string\n {\n return md5(uniqid()). $this->file->getClientOriginalName(). '.'.$this->file->guessExtension();\n }", "function makeThumbnailName($image)\n{\n $i = strrpos($image, '.');\n $image_name = substr($image, 0, $i);\n $ext = substr($image, $i);\n $image = $image_name . '-tn' . $ext;\n return $image;\n}", "public function get_full_name(){\n\t\treturn \"{$this->id}_full.png\";\n\t}", "public function get_thumb_name(){\n\t\treturn \"{$this->id}_thumb.png\";\n\t}", "abstract protected function generateName();", "public function filename()\n {\n $processor = Hash::get($this->settings, 'nameCallback', null);\n $extension = Hash::get($this->settings, 'base64_extension', '.png');\n if (is_callable($processor)) {\n $numberOfParameters = (new \\ReflectionFunction($processor))->getNumberOfParameters();\n if ($numberOfParameters == 2) {\n return $processor($this->data, $this->settings);\n }\n\n return $processor($this->table, $this->entity, $this->data, $this->field, $this->settings);\n }\n\n return Text::uuid() . \"$extension\";\n }", "protected function getImageName() {\n\n\t\treturn NULL;\n\t}", "function createImage($idName) { //TODO: Add parameter for passing image files to use instead \n echo '<img src=\"/php/cms-img/file2.png\" id=\"' . $idName . '\" class=\"nested\"/>';\n }", "public function getCategoryImageFileNameAttribute()\n {\n return $this->id . '-image.png';\n }", "public function getAlias()\n {\n return 'imagine';\n }", "public function getAlias()\n {\n return 'imagine';\n }", "public function get_name() {\n\t\treturn 'happyden-feature-image';\n\t}", "public function getBannerImageNameAttribute(){\n $photo_details = pathinfo($this->attributes['name']); \n $name = @$photo_details['filename'].'_1349x402.'.@$photo_details['extension'];\n return $name;\n }", "public function getImageFileNameAttribute()\n {\n return $this->id . '-image.' . $this->image_extension;\n }", "public function getSliderImageNameAttribute(){\n $photo_src=explode('.',$this->attributes['name']);\n if(count($photo_src)>1)\n {\n $photo_details = pathinfo($this->attributes['name']); \n $name = @$photo_details['filename'].'_1440x960.'.@$photo_details['extension'];\n return url('/').'/images/multiple_rooms/'.$this->attributes['multiple_room_id'].'/'.$name;\n }\n else\n {\n $options['secure']=TRUE;\n $options['width']=1440;\n $options['height']=960;\n $options['crop']='fill';\n return $src=\\Cloudder::show($this->attributes['name'],$options);\n }\n }", "public function setImageName(string $imageName);", "public function getUniqueImageName()\n {\n // timestamp + slug\n $name = time() . '-' . str_slug($this->originalName);\n\n $name = str_replace($this->getExtension($this->property), '', $name);\n\n $this->uniqueName = $name . '.' . $this->getExtension($this->property);\n\n return $this;\n }", "protected function createFilename()\n {\n $extension = \\File::extension(\\Input::file('photo')->getClientOriginalName());\n $filename = $this->applicant->slug . '_' . date('U') . '.' . $extension;\n\n return \\Str::lower($filename);\n }", "public function getNameFile($image): string\n {\n \t$image_name = uniqid(time()) . '.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n \treturn $image_name;\n }", "protected function generateAlias($name,$type)\n {\n // remove any '-' from the string they will be used as concatonater\n $str = str_replace('-', ' ', $name);\n $str = str_replace('_', ' ', $name);\n\n // remove any duplicate whitespace, and ensure all characters are alphanumeric\n if($type == \"img\") \n {\n $str = preg_replace(array('/\\s+/','/[^A-Za-z0-9\\-]/'), array('_',''), $str);\n }\n else \n {\n $str = preg_replace(array('/\\s+/','/[^A-Za-z0-9\\-]/'), array('-',''), $str);\n }\n\n // lowercase and trim\n $str = trim(strtolower($str));\n\t\t\n return $str;\n }", "public function get_preview_name(){\n\t\treturn \"{$this->id}_preview.png\";\n\t}", "private function getFileName($raw = false){\n $raw_string = $this->surah . '|' . $this->verses . '|' . $this->translation;\n return $raw ? $raw_string : md5($raw_string).'.png';\n }", "public function createImgUri() {\n\t\t$this->imgUri = FLICKR_FARM;\n\t\t$this->imgUri .= $this->photo['farm'];\n\t\t$this->imgUri .= '.';\n\t\t$this->imgUri .= STATICFLICKR;\n\t\t$this->imgUri .= $this->photo['server'];\n\t\t$this->imgUri .= '/';\n\t\t$this->imgUri .= $this->photo['id'];\n\t\t$this->imgUri .= '_';\n\t \t$this->imgUri .= $this->photo['secret'];\n\t\t$this->imgUri .= '.';\n\t \t$this->imgUri .= IMGEXT;\n\t}", "function _showname($img,$data){\n global $ID;\n\n if(!$data['showname'] ) { return ''; }\n\n //prepare link\n $lnk = ml($img['id'],array('id'=>$ID),false);\n\n // prepare output\n $ret = '';\n $ret .= '<br /><a href=\"'.$lnk.'\">';\n $ret .= hsc($img['file']);\n $ret .= '</a>';\n return $ret;\n }", "public function get_name() {\n\t\treturn 'single-product-images';\n\t}", "private function getImageName(SplFileInfo $dir, $imageSetName)\n {\n return $imageSetName.'-'.$dir->getFileName().':latest';\n }", "protected function filename()\n {\n return 'Campeonato_' . date('YmdHis');\n }", "static function thumbnail($filename , $disk='local'){\n return pathinfo( $filename , PATHINFO_FILENAME ) . '.jpg';\n\n }", "private function generateThumbnailCmd(){\n\t}", "private function genereteFilename(){\n return strtolower(md5(uniqid($this->document->baseName)) . '.' . $this->document->extension);\n }", "function makename($base, $att, $num) {\r\n return sprintf(\"%s[%s_%d]\", $base, $att, $num);\r\n }", "private function createCacheFileName($params) {\n $parts = pathinfo($this->imgPath);\n $fileExtension = $parts['extension'];\n $this->saveAs = is_null($params['save_as']) ? $fileExtension : $params['save_as'];\n $quality_ = is_null($params['quality']) ? null : \"_q{$params['quality']}\";\n $cropToFit_ = is_null($params['crop_to_fit']) ? null : \"_cf\";\n $dirName = preg_replace('/\\//', '-', dirname($params['src']));\n $cacheFileName = IMAGE_CACHE_PATH . \"-{$dirName}-{$parts['filename']}_{$params['width']}_{$params['height']}{$quality_}{$cropToFit_}.{$this->saveAs}\";\n $cacheFileName = preg_replace('/^a-zA-Z0-9\\.-_/', '', $cacheFileName);\n if($this->verbose) { $this->createVerbose(\"Cache file is: {$cacheFileName}\"); }\n return $cacheFileName;\n \n }", "private function getThumbFilename() {\n\t\t$info = pathInfo( $this->filename );\n\n\t\t// add dirname as postfix (if exists)\n\t\t$postfix = '';\n\n\t\t$dirname = UniteFunctionsRev::getVal( $info, 'dirname' );\n\t\tif ( ! empty( $dirname ) ) {\n\t\t\t$postfix = str_replace( '/', '-', $dirname );\n\t\t}\n\n\t\t$ext = $info['extension'];\n\t\t$name = $info['filename'];\n\t\t$width = ceil( $this->maxWidth );\n\t\t$height = ceil( $this->maxHeight );\n\t\t$thumbFilename = $name . '_' . $width . 'x' . $height;\n\n\t\tif ( ! empty( $this->type ) ) {\n\t\t\t$thumbFilename .= '_' . $this->type; }\n\n\t\tif ( ! empty( $this->effect ) ) {\n\t\t\t$thumbFilename .= '_e' . $this->effect;\n\t\t\tif ( ! empty( $this->effect_arg1 ) ) {\n\t\t\t\t$thumbFilename .= 'x' . $this->effect_arg1;\n\t\t\t}\n\t\t}\n\n\t\t// add postfix\n\t\tif ( ! empty( $postfix ) ) {\n\t\t\t$thumbFilename .= '_' . $postfix; }\n\n\t\t$thumbFilename .= '.' . $ext;\n\n\t\treturn($thumbFilename);\n\t}", "public function get_name() {\n\t\treturn 'listeo-imagebox';\n\t}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function get_image_title()\n {\n }", "public static function buildPhotoName($person): string\n {\n return strtoupper($person->first_name . ' ' . $person->last_name) . '_rangers.jpg';\n }", "function image($file_name,$title,$class='',$id) {\n \tif ($id) $id = \"id = '\".$id.\"'\"; \n \t$data = '<img src=\"'.BASE_PATH.'/img/'.$file_name.'\" title = \"'.$title.'\" border=\"0\" align=\"absmiddle\" '.$id.' class=\"'.$class.'\" />';\n return $data;\n }", "public function setFileName() {\n\t\t$name = 'color_' . $this->width . 'x' . $this->height;\n\t\tforeach ($this->colors as $color) {\n\t\t\t$name .= '_' . strtolower(preg_replace('/^#/', '', $color));\n\t\t}\n\t\t$name .= '.png';\n\t\t$this->fileName = $this->tempDir . $name;\n\t}", "function makeImg($img, $prefix = '', $relative = false)\n{\n\treturn ($img ? '<img alt=\"\" src=\"' . ($relative ? '' : ARC_WWW_PATH) . $prefix . $img . '\" />' : '');\n}", "public function getPictureName()\n {\n $pictureName = \"nopicture.png\";\n $articleModel = new ArticleModel();\n $articles = $articleModel->where(\"id_products\", $this->id_products)->findAll();\n\n if (count($articles) > 0) {\n\n if ($articles[0]->getPicture() != null) {\n $pictureName = $articles[0]->getPicture()->name . \".\" . $articles[0]->getPicture()->extension;\n }\n }\n return $pictureName;\n }", "private function generateCacheName(): string\n\t{\n\t\t$get = implode('-', $_GET);\n\t\t$name = $this->_resizeMode . $this->_imagePath . $this->_oldWidth . $this->_oldHeight . $this->_newWidth . $this->_newHeight . $get;\n\t\treturn md5($name) . '.' . $this->_extension;\n\t}", "function generateEmailTemplateThumbnailName($campaign)\n {\n $date = Carbon::createFromFormat('Y-m-d H:i:s', $campaign->createDate);\n\n return $campaign->orgID.'-'.$campaign->campaignID.'-'.$date->timestamp.'.png';\n }", "function image_name(){\n\t$date = date(\"H:i:s\");;\n\t$date = strtotime($date);\n\n\treturn $date;\n}", "public function setImageName($value)\n {\n return $this->set('ImageName', $value);\n }", "public function get_cover_name(){\n\t\treturn \"{$this->id}_cover.png\";\n\t}", "function generateFilename($name)\n {\n // Catch every Unicode character from beggining on, because replacer might not get it\n $name = preg_replace('/[\\x00-\\x1F\\x80-\\xFF]/', '', $name);\n // Delete all signs etc. to properly display the filename\n $newname = str_replace(array(' ', '+', '*', '!', '?', \"'\", '\"', '.', ',', 'ä', 'ö', 'ü', '?', '-', ':', '&'), '', $name);\n $newname = mb_strtolower($newname);\n $newname .= '.png';\n\n return $newname;\n }", "public function getImageName()\n {\n return $this->ImageName;\n }", "public function getCrearFoto(){\n\t\treturn 'formulario de de crear Albumes';\n\t}", "public static function newImageName($imageFile)\n {\n //Get file name with extension\n $cover_image_name_ext = $imageFile->getClientOriginalName();\n \n //Get just Filename\n $filename = pathinfo($cover_image_name_ext, PATHINFO_FILENAME);\n \n //Get extension\n $extension = $imageFile->getClientOriginalExtension();\n \n //Create new filename to store\n $filename_to_store = $filename.'_'.time().'.'.$extension;\n\n return $filename_to_store;\n }", "private function formatFilename() {\n return $this->prefix . $this->name . \".\" . $this->extension;\n }", "protected function _getImageName($_withSize = true)\n {\n $name = $this->_account->getImage();\n \n if($_withSize) {\n $name .= '_' . self::USER_IMAGE_SIZE_X\n . 'x' . self::USER_IMAGE_SIZE_Y;\n }\n\n $name .= '.' . self::USER_IMAGE_TYPE;\n\n return $name;\n }", "public function generateFileName()\n {\n $d = new \\DateTime();\n\n return strtoupper($this->fileName).\"_\" . $d->format(\"Y-m-d\");\n }", "function concatenarPath($nombre, $seccion) {\n\t$path = \"img_\" . $seccion . \"/\" . $nombre;\n\treturn $path;\n}", "protected function filename()\n {\n return 'Slider_' . date('YmdHis');\n }", "public function createImgTag() {\n\t\t$this->imgNeko = '<img src=\"';\n\t\t$this->imgNeko .= $this->imgUri;\n\t\t$this->imgNeko .= '\" width=\"';\n\t\t$this->imgNeko .= $this->imgSize[0];\n\t\t$this->imgNeko .= '\" height=\"';\n\t\t$this->imgNeko .= $this->imgSize[1];\n\t\t$this->imgNeko .= '\" alt=\"';\n\t\t$this->imgNeko .= $this->creditInfo;\n\t\t$this->imgNeko .= '\">';\n\t}", "public function gen_thumbnail()\n {\n }", "public function gen_thumbnail()\n {\n }", "public function getName() \n { \n return $this->getType().\"_\".substr(md5(implode($this->getParameters())), 0, 20);\n }", "protected function filename()\n {\n return 'photos_datatable_' . time();\n }", "function genFilename(){\n\t$postName = filter_var($_POST['name'], FILTER_SANITIZE_SPECIAL_CHARS);\n\n\t$con = mysqli_connect(HOST,USER,PASS,DB) or die('Unable to Connect...');\n\t$sql = \"SELECT max(id) as id FROM images\";\n\t$result = mysqli_fetch_array(mysqli_query($con,$sql));\n\tmysqli_close($con);\n\n\t$maxID = 0;\n\tif($result['id']==null)\n\t\t$maxID = 1; \n\telse \n\t\t$maxID = $result['id']++; \n\n\treturn substr($postName, 0, 3) . $maxID . \"_\" . time();\n}", "function ImageFile()\n\t{\treturn $this->imagedir . (int)$this->id . \".jpg\";\n\t}", "function gen_name($arg, $in){\n $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n $name = '';\n for ($i = 0; $i < CONFIG_RANDOM_LENGTH; $i++) {\n $name .= $chars[mt_rand(0, 60)];\n }\n switch($arg){\n case 'random':\n return $name.'.'.$in;\n break;\n case 'custom_original':\n return $name.'_'.$in;\n break;\n }\n}", "function minorite_image($variables) {\n $attributes = $variables['attributes'];\n $attributes['src'] = file_create_url($variables['path']);\n\n foreach (array('alt', 'title') as $key) {\n\n if (isset($variables[$key])) {\n $attributes[$key] = $variables[$key];\n }\n }\n\n return '<img' . drupal_attributes($attributes) . ' />';\n}", "protected function renderImage(){\n \n return sprintf(\n '<img src=\"%s\" title=\"%s\" alt=\"%s\">',\n $this->getField('url'),\n $this->getField('title',''),\n $this->getField('alt','')\n );\n \n }", "protected function filename()\n {\n return 'Jogadores_' . date('YmdHis');\n }", "function floated_admin_avatar($name)\n {\n }", "public function img(): string\n {\n deprecationWarning('Deprecated. Use instead `image()`');\n\n return call_user_func_array([self::class, 'image'], func_get_args());\n }", "function imagecustom($im, $text) {\n}", "protected function getImagePath()\n {\n return Yii::getAlias('@data/image.jpg');\n }", "public function CacheFileName()\n {\n $parts = pathinfo($this->pathToImage);\n $this->fileExtension = $parts['extension'];\n $this->saveAs = is_null($this->saveAs) ? $this->fileExtension : $this->saveAs;\n $quality_ = is_null($this->quality) ? null : \"_q{$this->quality}\";\n $cropToFit_ = is_null($this->cropToFit) ? null : \"_cf\";\n $sharpen_ = is_null($this->sharpen) ? null : \"_s\";\n $dirName = preg_replace('/\\//', '-', dirname($this->src));\n $cacheFileName = CACHE_PATH . \"-{$dirName}-{$parts['filename']}_{$this->newWidth}_{$this->newHeight}{$quality_}{$cropToFit_}{$sharpen_}.{$this->saveAs}\";\n $cacheFileName = preg_replace('/^a-zA-Z0-9\\.-_/', '', $cacheFileName);\n\n if($this->verbose) { self::verbose(\"Cache file is: {$cacheFileName}\"); }\n return $cacheFileName;\n }", "public function imgset_name($format = '')\n {\n return $this->getVar('imgset_name', $format);\n }", "function getNameHelper(){\n\treturn 'Ejercicio de aprendizaje';\n}", "function display_file($file) {\n\n return \"images\" . DS . $file;\n\n}", "protected function filename()\n {\n return 'Categories_' . date('YmdHis');\n }", "private function generateThumbnailImagick(){\n\t}", "function createImage($type,$img_name){\n if (!$type){\n $type = $this->get_type($img_name);\n }\n\t\t \n switch ($type){\n case 'gif':\n if (function_exists('imagecreatefromgif'))\n $tmp_img=@imagecreatefromgif($img_name);\n break;\n case 'jpg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n case 'png':\n $tmp_img=imagecreatefrompng($img_name);\n break;\n\t\t\t\t case 'jpeg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n default:\n $tmp_img=imagecreatefromstring($img_name);\n break;\n }\n return $tmp_img;\n}", "function createImage($type,$img_name){\n if (!$type){\n $type = $this->get_type($img_name);\n }\n\t\t \n switch ($type){\n case 'gif':\n if (function_exists('imagecreatefromgif'))\n $tmp_img=@imagecreatefromgif($img_name);\n break;\n case 'jpg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n case 'png':\n $tmp_img=imagecreatefrompng($img_name);\n break;\n\t\t\t\t case 'jpeg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n default:\n $tmp_img=imagecreatefromstring($img_name);\n break;\n }\n return $tmp_img;\n}", "public function getImage($name)\n\t{\n\t\t//Todo: Implement.\n\t}", "protected function filename()\n {\n return 'owe_' . date('YmdHis');\n }", "function imageUser($name) {\n\tif (File::exists(base_path() . '/public/avatar/' . $name)) {\n\t\treturn Asset('avatar/'.$name);\n\t} else {\n\t\treturn Asset('images/default-avatar.png');\n\t}\n}", "public function createImage()\n {\n $name = basename($this->absoluteUrl);\n if ($this->fileExists($this->absoluteUrl) && !in_array($name, $this->notAllowedNames)) {\n $mime = @exif_imagetype($this->absoluteUrl);\n if ($mime == IMAGETYPE_JPEG || $mime == IMAGETYPE_PNG || $mime == IMAGETYPE_GIF) {\n if (!file_exists($this->imageDirectory)) {\n mkdir($this->imageDirectory, 0700);\n }\n\n copy($this->absoluteUrl, $this->imageDirectory . DIRECTORY_SEPARATOR . $name);\n }\n }\n }", "protected function filename()\n {\n return 'IPI_Target_' . date('YmdHis');\n }", "function vve_tpl_langImage($lang){\n\n return \"<img src=\\\"images/langs/{$lang}.png\\\" alt=\\\"{$lang}\\\" />\";\n\n}", "public function getPhoto() {\n return DATADIR . 'alumni/' . $this->shortName . '.jpg';\n }", "protected function filename()\n {\n return 'Egreso_' . date('YmdHis');\n }", "private function get_imagecreatefrom_method( $image_file ) {\n\t\t$image_format = pathinfo( $image_file, PATHINFO_EXTENSION );\n\t\tif ( ! in_array( $image_format, [ 'jpg', 'jpeg', 'gif', 'png' ], true ) ) {\n\t\t\treturn '';\n\t\t}\n\t\tif ( 'jpg' === $image_format ) {\n\t\t\t$image_format = 'jpeg';\n\t\t}\n\n\t\treturn 'imagecreatefrom' . $image_format;\n\t}", "protected function filename()\n {\n return 'Ingredients_' . date('YmdHis');\n }", "function loadIcon16($name) {\n echo \"<img src=\\\"icos/16-$name.png\\\" alt=\\\"\\\" width=\\\"16\\\" height=\\\"16\\\">\";\n }" ]
[ "0.8252317", "0.7547239", "0.7164129", "0.7032203", "0.69594246", "0.69257826", "0.6824534", "0.68162733", "0.68120956", "0.68059814", "0.6800546", "0.66362286", "0.65826523", "0.6570882", "0.6550943", "0.65373904", "0.64989376", "0.6478997", "0.64343715", "0.64343715", "0.6430056", "0.6404998", "0.6387707", "0.6385668", "0.62852603", "0.6285103", "0.6238654", "0.6152075", "0.61513823", "0.611451", "0.6102589", "0.6097135", "0.60917974", "0.60808164", "0.6072973", "0.6072638", "0.6062603", "0.60621035", "0.6056771", "0.60502905", "0.60420346", "0.603311", "0.60325074", "0.6027731", "0.6027731", "0.6026528", "0.6026528", "0.60245895", "0.6024565", "0.60199994", "0.6018391", "0.6002732", "0.6001023", "0.59955996", "0.5994986", "0.5994273", "0.59927815", "0.5969991", "0.5959964", "0.5959859", "0.59548384", "0.59455585", "0.59373283", "0.59148425", "0.5888295", "0.58775544", "0.58695793", "0.5867297", "0.58562195", "0.58562195", "0.58392215", "0.5836192", "0.58231187", "0.5796277", "0.5793895", "0.5792437", "0.5791475", "0.57911575", "0.57741547", "0.57697743", "0.5756919", "0.5751063", "0.5750019", "0.57418126", "0.5723835", "0.5721653", "0.57195103", "0.571921", "0.5715018", "0.5715018", "0.5711619", "0.57085645", "0.5705986", "0.5699995", "0.5687483", "0.5686669", "0.56833905", "0.56817985", "0.5673835", "0.5670824", "0.56699306" ]
0.0
-1
Alias for create the image name
public function getProfileImageByAccountId($accountId) { $return = null; if ($accountId) { $repository = $this->container->get('doctrine')->getRepository('CoreBundle:Account', 'main'); /* @var Account $account */ if ($account = $repository->find($accountId)) { $return = $this->getProfileImage($account->getProfile()); } } return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function imageName() {}", "public function getImageName();", "protected function buildFileName()\n\t{\n\t\t$upscale = $this->upscale ? 'upscale' : 'noupscale';\n\t\treturn $this->namePrefix . '-' . $this->width . 'x' . $this->height . '-' . $upscale . '-' . $this->quality . '-' . $this->imageName;\n\t}", "protected function imageName() {\n\n\t\treturn NULL;\n\t}", "private function createImageName($imageInfo, $shopName, $imageTypeName)\n {\t\n \t$folderName = $this->createFolderName($shopName);\n \t//get Image Mine Type\n $logoType =$imageInfo->getClientMimeType();\n $ext = substr($logoType, strrpos($logoType, '/') +1);\n //get Current Date time String\n $date = $this->currentTime();\n //concrite a new logo Name\n $newName = $date.'_'.$folderName.$imageTypeName.'.'.$ext;\n\n //return logo name\n return $newName;\n }", "function makeThumbnailName($image) {\r\n $i = strrpos($image, '.');\r\n $image_name = substr($image, 0, $i);\r\n $ext = substr($image, $i);\r\n $image = $image_name . '-tn' . $ext;\r\n return $image;\r\n }", "public function genFilename()\n {\n $filename = $this->getAssetableType().$this->assetable_id.'_';\n $filename .= uniqid();\n if(!empty($this->getThumbnailType())) $filename .= '_'.$this->getThumbnailType();\n $filename .= '.'.$this->uploadedFile->extension;\n $this->filename = $filename;\n }", "private function createImageName() {\n $nameFree = true;\n\n // loop thru until a name is free (probably instantly)\n // caveat: i was lazy and decided to go thru entire images table.\n // could be a problem in the future if db got huge...\n do {\n // create a slug\n $name = parent::createSlug(self::BASE_IMG_NAME_START);\n\n // see if the slug is already in the db\n $count = Images::where('slug', $name)->count();\n\n if ($count > 0) break;\n } while(!$nameFree);\n\n return $name;\n }", "function getName() \t\t { return 'NP_ImageCreateThumbnail'; }", "private function createName() : string\n {\n return md5(uniqid()). $this->file->getClientOriginalName(). '.'.$this->file->guessExtension();\n }", "function makeThumbnailName($image)\n{\n $i = strrpos($image, '.');\n $image_name = substr($image, 0, $i);\n $ext = substr($image, $i);\n $image = $image_name . '-tn' . $ext;\n return $image;\n}", "public function get_full_name(){\n\t\treturn \"{$this->id}_full.png\";\n\t}", "public function get_thumb_name(){\n\t\treturn \"{$this->id}_thumb.png\";\n\t}", "abstract protected function generateName();", "public function filename()\n {\n $processor = Hash::get($this->settings, 'nameCallback', null);\n $extension = Hash::get($this->settings, 'base64_extension', '.png');\n if (is_callable($processor)) {\n $numberOfParameters = (new \\ReflectionFunction($processor))->getNumberOfParameters();\n if ($numberOfParameters == 2) {\n return $processor($this->data, $this->settings);\n }\n\n return $processor($this->table, $this->entity, $this->data, $this->field, $this->settings);\n }\n\n return Text::uuid() . \"$extension\";\n }", "protected function getImageName() {\n\n\t\treturn NULL;\n\t}", "function createImage($idName) { //TODO: Add parameter for passing image files to use instead \n echo '<img src=\"/php/cms-img/file2.png\" id=\"' . $idName . '\" class=\"nested\"/>';\n }", "public function getCategoryImageFileNameAttribute()\n {\n return $this->id . '-image.png';\n }", "public function getAlias()\n {\n return 'imagine';\n }", "public function getAlias()\n {\n return 'imagine';\n }", "public function get_name() {\n\t\treturn 'happyden-feature-image';\n\t}", "public function getBannerImageNameAttribute(){\n $photo_details = pathinfo($this->attributes['name']); \n $name = @$photo_details['filename'].'_1349x402.'.@$photo_details['extension'];\n return $name;\n }", "public function getImageFileNameAttribute()\n {\n return $this->id . '-image.' . $this->image_extension;\n }", "public function getSliderImageNameAttribute(){\n $photo_src=explode('.',$this->attributes['name']);\n if(count($photo_src)>1)\n {\n $photo_details = pathinfo($this->attributes['name']); \n $name = @$photo_details['filename'].'_1440x960.'.@$photo_details['extension'];\n return url('/').'/images/multiple_rooms/'.$this->attributes['multiple_room_id'].'/'.$name;\n }\n else\n {\n $options['secure']=TRUE;\n $options['width']=1440;\n $options['height']=960;\n $options['crop']='fill';\n return $src=\\Cloudder::show($this->attributes['name'],$options);\n }\n }", "public function setImageName(string $imageName);", "public function getUniqueImageName()\n {\n // timestamp + slug\n $name = time() . '-' . str_slug($this->originalName);\n\n $name = str_replace($this->getExtension($this->property), '', $name);\n\n $this->uniqueName = $name . '.' . $this->getExtension($this->property);\n\n return $this;\n }", "protected function createFilename()\n {\n $extension = \\File::extension(\\Input::file('photo')->getClientOriginalName());\n $filename = $this->applicant->slug . '_' . date('U') . '.' . $extension;\n\n return \\Str::lower($filename);\n }", "public function getNameFile($image): string\n {\n \t$image_name = uniqid(time()) . '.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n \treturn $image_name;\n }", "protected function generateAlias($name,$type)\n {\n // remove any '-' from the string they will be used as concatonater\n $str = str_replace('-', ' ', $name);\n $str = str_replace('_', ' ', $name);\n\n // remove any duplicate whitespace, and ensure all characters are alphanumeric\n if($type == \"img\") \n {\n $str = preg_replace(array('/\\s+/','/[^A-Za-z0-9\\-]/'), array('_',''), $str);\n }\n else \n {\n $str = preg_replace(array('/\\s+/','/[^A-Za-z0-9\\-]/'), array('-',''), $str);\n }\n\n // lowercase and trim\n $str = trim(strtolower($str));\n\t\t\n return $str;\n }", "public function get_preview_name(){\n\t\treturn \"{$this->id}_preview.png\";\n\t}", "private function getFileName($raw = false){\n $raw_string = $this->surah . '|' . $this->verses . '|' . $this->translation;\n return $raw ? $raw_string : md5($raw_string).'.png';\n }", "public function createImgUri() {\n\t\t$this->imgUri = FLICKR_FARM;\n\t\t$this->imgUri .= $this->photo['farm'];\n\t\t$this->imgUri .= '.';\n\t\t$this->imgUri .= STATICFLICKR;\n\t\t$this->imgUri .= $this->photo['server'];\n\t\t$this->imgUri .= '/';\n\t\t$this->imgUri .= $this->photo['id'];\n\t\t$this->imgUri .= '_';\n\t \t$this->imgUri .= $this->photo['secret'];\n\t\t$this->imgUri .= '.';\n\t \t$this->imgUri .= IMGEXT;\n\t}", "function _showname($img,$data){\n global $ID;\n\n if(!$data['showname'] ) { return ''; }\n\n //prepare link\n $lnk = ml($img['id'],array('id'=>$ID),false);\n\n // prepare output\n $ret = '';\n $ret .= '<br /><a href=\"'.$lnk.'\">';\n $ret .= hsc($img['file']);\n $ret .= '</a>';\n return $ret;\n }", "public function get_name() {\n\t\treturn 'single-product-images';\n\t}", "protected function filename()\n {\n return 'Campeonato_' . date('YmdHis');\n }", "private function getImageName(SplFileInfo $dir, $imageSetName)\n {\n return $imageSetName.'-'.$dir->getFileName().':latest';\n }", "static function thumbnail($filename , $disk='local'){\n return pathinfo( $filename , PATHINFO_FILENAME ) . '.jpg';\n\n }", "private function generateThumbnailCmd(){\n\t}", "private function genereteFilename(){\n return strtolower(md5(uniqid($this->document->baseName)) . '.' . $this->document->extension);\n }", "function makename($base, $att, $num) {\r\n return sprintf(\"%s[%s_%d]\", $base, $att, $num);\r\n }", "private function createCacheFileName($params) {\n $parts = pathinfo($this->imgPath);\n $fileExtension = $parts['extension'];\n $this->saveAs = is_null($params['save_as']) ? $fileExtension : $params['save_as'];\n $quality_ = is_null($params['quality']) ? null : \"_q{$params['quality']}\";\n $cropToFit_ = is_null($params['crop_to_fit']) ? null : \"_cf\";\n $dirName = preg_replace('/\\//', '-', dirname($params['src']));\n $cacheFileName = IMAGE_CACHE_PATH . \"-{$dirName}-{$parts['filename']}_{$params['width']}_{$params['height']}{$quality_}{$cropToFit_}.{$this->saveAs}\";\n $cacheFileName = preg_replace('/^a-zA-Z0-9\\.-_/', '', $cacheFileName);\n if($this->verbose) { $this->createVerbose(\"Cache file is: {$cacheFileName}\"); }\n return $cacheFileName;\n \n }", "private function getThumbFilename() {\n\t\t$info = pathInfo( $this->filename );\n\n\t\t// add dirname as postfix (if exists)\n\t\t$postfix = '';\n\n\t\t$dirname = UniteFunctionsRev::getVal( $info, 'dirname' );\n\t\tif ( ! empty( $dirname ) ) {\n\t\t\t$postfix = str_replace( '/', '-', $dirname );\n\t\t}\n\n\t\t$ext = $info['extension'];\n\t\t$name = $info['filename'];\n\t\t$width = ceil( $this->maxWidth );\n\t\t$height = ceil( $this->maxHeight );\n\t\t$thumbFilename = $name . '_' . $width . 'x' . $height;\n\n\t\tif ( ! empty( $this->type ) ) {\n\t\t\t$thumbFilename .= '_' . $this->type; }\n\n\t\tif ( ! empty( $this->effect ) ) {\n\t\t\t$thumbFilename .= '_e' . $this->effect;\n\t\t\tif ( ! empty( $this->effect_arg1 ) ) {\n\t\t\t\t$thumbFilename .= 'x' . $this->effect_arg1;\n\t\t\t}\n\t\t}\n\n\t\t// add postfix\n\t\tif ( ! empty( $postfix ) ) {\n\t\t\t$thumbFilename .= '_' . $postfix; }\n\n\t\t$thumbFilename .= '.' . $ext;\n\n\t\treturn($thumbFilename);\n\t}", "public function get_name() {\n\t\treturn 'listeo-imagebox';\n\t}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function get_image_title()\n {\n }", "public static function buildPhotoName($person): string\n {\n return strtoupper($person->first_name . ' ' . $person->last_name) . '_rangers.jpg';\n }", "function image($file_name,$title,$class='',$id) {\n \tif ($id) $id = \"id = '\".$id.\"'\"; \n \t$data = '<img src=\"'.BASE_PATH.'/img/'.$file_name.'\" title = \"'.$title.'\" border=\"0\" align=\"absmiddle\" '.$id.' class=\"'.$class.'\" />';\n return $data;\n }", "public function setFileName() {\n\t\t$name = 'color_' . $this->width . 'x' . $this->height;\n\t\tforeach ($this->colors as $color) {\n\t\t\t$name .= '_' . strtolower(preg_replace('/^#/', '', $color));\n\t\t}\n\t\t$name .= '.png';\n\t\t$this->fileName = $this->tempDir . $name;\n\t}", "function makeImg($img, $prefix = '', $relative = false)\n{\n\treturn ($img ? '<img alt=\"\" src=\"' . ($relative ? '' : ARC_WWW_PATH) . $prefix . $img . '\" />' : '');\n}", "public function getPictureName()\n {\n $pictureName = \"nopicture.png\";\n $articleModel = new ArticleModel();\n $articles = $articleModel->where(\"id_products\", $this->id_products)->findAll();\n\n if (count($articles) > 0) {\n\n if ($articles[0]->getPicture() != null) {\n $pictureName = $articles[0]->getPicture()->name . \".\" . $articles[0]->getPicture()->extension;\n }\n }\n return $pictureName;\n }", "private function generateCacheName(): string\n\t{\n\t\t$get = implode('-', $_GET);\n\t\t$name = $this->_resizeMode . $this->_imagePath . $this->_oldWidth . $this->_oldHeight . $this->_newWidth . $this->_newHeight . $get;\n\t\treturn md5($name) . '.' . $this->_extension;\n\t}", "function generateEmailTemplateThumbnailName($campaign)\n {\n $date = Carbon::createFromFormat('Y-m-d H:i:s', $campaign->createDate);\n\n return $campaign->orgID.'-'.$campaign->campaignID.'-'.$date->timestamp.'.png';\n }", "function image_name(){\n\t$date = date(\"H:i:s\");;\n\t$date = strtotime($date);\n\n\treturn $date;\n}", "public function setImageName($value)\n {\n return $this->set('ImageName', $value);\n }", "public function get_cover_name(){\n\t\treturn \"{$this->id}_cover.png\";\n\t}", "function generateFilename($name)\n {\n // Catch every Unicode character from beggining on, because replacer might not get it\n $name = preg_replace('/[\\x00-\\x1F\\x80-\\xFF]/', '', $name);\n // Delete all signs etc. to properly display the filename\n $newname = str_replace(array(' ', '+', '*', '!', '?', \"'\", '\"', '.', ',', 'ä', 'ö', 'ü', '?', '-', ':', '&'), '', $name);\n $newname = mb_strtolower($newname);\n $newname .= '.png';\n\n return $newname;\n }", "public function getImageName()\n {\n return $this->ImageName;\n }", "public function getCrearFoto(){\n\t\treturn 'formulario de de crear Albumes';\n\t}", "public static function newImageName($imageFile)\n {\n //Get file name with extension\n $cover_image_name_ext = $imageFile->getClientOriginalName();\n \n //Get just Filename\n $filename = pathinfo($cover_image_name_ext, PATHINFO_FILENAME);\n \n //Get extension\n $extension = $imageFile->getClientOriginalExtension();\n \n //Create new filename to store\n $filename_to_store = $filename.'_'.time().'.'.$extension;\n\n return $filename_to_store;\n }", "private function formatFilename() {\n return $this->prefix . $this->name . \".\" . $this->extension;\n }", "protected function _getImageName($_withSize = true)\n {\n $name = $this->_account->getImage();\n \n if($_withSize) {\n $name .= '_' . self::USER_IMAGE_SIZE_X\n . 'x' . self::USER_IMAGE_SIZE_Y;\n }\n\n $name .= '.' . self::USER_IMAGE_TYPE;\n\n return $name;\n }", "public function generateFileName()\n {\n $d = new \\DateTime();\n\n return strtoupper($this->fileName).\"_\" . $d->format(\"Y-m-d\");\n }", "function concatenarPath($nombre, $seccion) {\n\t$path = \"img_\" . $seccion . \"/\" . $nombre;\n\treturn $path;\n}", "protected function filename()\n {\n return 'Slider_' . date('YmdHis');\n }", "public function createImgTag() {\n\t\t$this->imgNeko = '<img src=\"';\n\t\t$this->imgNeko .= $this->imgUri;\n\t\t$this->imgNeko .= '\" width=\"';\n\t\t$this->imgNeko .= $this->imgSize[0];\n\t\t$this->imgNeko .= '\" height=\"';\n\t\t$this->imgNeko .= $this->imgSize[1];\n\t\t$this->imgNeko .= '\" alt=\"';\n\t\t$this->imgNeko .= $this->creditInfo;\n\t\t$this->imgNeko .= '\">';\n\t}", "public function gen_thumbnail()\n {\n }", "public function gen_thumbnail()\n {\n }", "public function getName() \n { \n return $this->getType().\"_\".substr(md5(implode($this->getParameters())), 0, 20);\n }", "protected function filename()\n {\n return 'photos_datatable_' . time();\n }", "function genFilename(){\n\t$postName = filter_var($_POST['name'], FILTER_SANITIZE_SPECIAL_CHARS);\n\n\t$con = mysqli_connect(HOST,USER,PASS,DB) or die('Unable to Connect...');\n\t$sql = \"SELECT max(id) as id FROM images\";\n\t$result = mysqli_fetch_array(mysqli_query($con,$sql));\n\tmysqli_close($con);\n\n\t$maxID = 0;\n\tif($result['id']==null)\n\t\t$maxID = 1; \n\telse \n\t\t$maxID = $result['id']++; \n\n\treturn substr($postName, 0, 3) . $maxID . \"_\" . time();\n}", "function ImageFile()\n\t{\treturn $this->imagedir . (int)$this->id . \".jpg\";\n\t}", "function gen_name($arg, $in){\n $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n $name = '';\n for ($i = 0; $i < CONFIG_RANDOM_LENGTH; $i++) {\n $name .= $chars[mt_rand(0, 60)];\n }\n switch($arg){\n case 'random':\n return $name.'.'.$in;\n break;\n case 'custom_original':\n return $name.'_'.$in;\n break;\n }\n}", "function minorite_image($variables) {\n $attributes = $variables['attributes'];\n $attributes['src'] = file_create_url($variables['path']);\n\n foreach (array('alt', 'title') as $key) {\n\n if (isset($variables[$key])) {\n $attributes[$key] = $variables[$key];\n }\n }\n\n return '<img' . drupal_attributes($attributes) . ' />';\n}", "protected function renderImage(){\n \n return sprintf(\n '<img src=\"%s\" title=\"%s\" alt=\"%s\">',\n $this->getField('url'),\n $this->getField('title',''),\n $this->getField('alt','')\n );\n \n }", "protected function filename()\n {\n return 'Jogadores_' . date('YmdHis');\n }", "function floated_admin_avatar($name)\n {\n }", "public function img(): string\n {\n deprecationWarning('Deprecated. Use instead `image()`');\n\n return call_user_func_array([self::class, 'image'], func_get_args());\n }", "function imagecustom($im, $text) {\n}", "protected function getImagePath()\n {\n return Yii::getAlias('@data/image.jpg');\n }", "public function CacheFileName()\n {\n $parts = pathinfo($this->pathToImage);\n $this->fileExtension = $parts['extension'];\n $this->saveAs = is_null($this->saveAs) ? $this->fileExtension : $this->saveAs;\n $quality_ = is_null($this->quality) ? null : \"_q{$this->quality}\";\n $cropToFit_ = is_null($this->cropToFit) ? null : \"_cf\";\n $sharpen_ = is_null($this->sharpen) ? null : \"_s\";\n $dirName = preg_replace('/\\//', '-', dirname($this->src));\n $cacheFileName = CACHE_PATH . \"-{$dirName}-{$parts['filename']}_{$this->newWidth}_{$this->newHeight}{$quality_}{$cropToFit_}{$sharpen_}.{$this->saveAs}\";\n $cacheFileName = preg_replace('/^a-zA-Z0-9\\.-_/', '', $cacheFileName);\n\n if($this->verbose) { self::verbose(\"Cache file is: {$cacheFileName}\"); }\n return $cacheFileName;\n }", "public function imgset_name($format = '')\n {\n return $this->getVar('imgset_name', $format);\n }", "function getNameHelper(){\n\treturn 'Ejercicio de aprendizaje';\n}", "function display_file($file) {\n\n return \"images\" . DS . $file;\n\n}", "protected function filename()\n {\n return 'Categories_' . date('YmdHis');\n }", "private function generateThumbnailImagick(){\n\t}", "function createImage($type,$img_name){\n if (!$type){\n $type = $this->get_type($img_name);\n }\n\t\t \n switch ($type){\n case 'gif':\n if (function_exists('imagecreatefromgif'))\n $tmp_img=@imagecreatefromgif($img_name);\n break;\n case 'jpg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n case 'png':\n $tmp_img=imagecreatefrompng($img_name);\n break;\n\t\t\t\t case 'jpeg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n default:\n $tmp_img=imagecreatefromstring($img_name);\n break;\n }\n return $tmp_img;\n}", "function createImage($type,$img_name){\n if (!$type){\n $type = $this->get_type($img_name);\n }\n\t\t \n switch ($type){\n case 'gif':\n if (function_exists('imagecreatefromgif'))\n $tmp_img=@imagecreatefromgif($img_name);\n break;\n case 'jpg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n case 'png':\n $tmp_img=imagecreatefrompng($img_name);\n break;\n\t\t\t\t case 'jpeg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n default:\n $tmp_img=imagecreatefromstring($img_name);\n break;\n }\n return $tmp_img;\n}", "public function getImage($name)\n\t{\n\t\t//Todo: Implement.\n\t}", "protected function filename()\n {\n return 'owe_' . date('YmdHis');\n }", "function imageUser($name) {\n\tif (File::exists(base_path() . '/public/avatar/' . $name)) {\n\t\treturn Asset('avatar/'.$name);\n\t} else {\n\t\treturn Asset('images/default-avatar.png');\n\t}\n}", "public function createImage()\n {\n $name = basename($this->absoluteUrl);\n if ($this->fileExists($this->absoluteUrl) && !in_array($name, $this->notAllowedNames)) {\n $mime = @exif_imagetype($this->absoluteUrl);\n if ($mime == IMAGETYPE_JPEG || $mime == IMAGETYPE_PNG || $mime == IMAGETYPE_GIF) {\n if (!file_exists($this->imageDirectory)) {\n mkdir($this->imageDirectory, 0700);\n }\n\n copy($this->absoluteUrl, $this->imageDirectory . DIRECTORY_SEPARATOR . $name);\n }\n }\n }", "protected function filename()\n {\n return 'IPI_Target_' . date('YmdHis');\n }", "function vve_tpl_langImage($lang){\n\n return \"<img src=\\\"images/langs/{$lang}.png\\\" alt=\\\"{$lang}\\\" />\";\n\n}", "public function getPhoto() {\n return DATADIR . 'alumni/' . $this->shortName . '.jpg';\n }", "protected function filename()\n {\n return 'Egreso_' . date('YmdHis');\n }", "private function get_imagecreatefrom_method( $image_file ) {\n\t\t$image_format = pathinfo( $image_file, PATHINFO_EXTENSION );\n\t\tif ( ! in_array( $image_format, [ 'jpg', 'jpeg', 'gif', 'png' ], true ) ) {\n\t\t\treturn '';\n\t\t}\n\t\tif ( 'jpg' === $image_format ) {\n\t\t\t$image_format = 'jpeg';\n\t\t}\n\n\t\treturn 'imagecreatefrom' . $image_format;\n\t}", "protected function filename()\n {\n return 'Ingredients_' . date('YmdHis');\n }", "function loadIcon16($name) {\n echo \"<img src=\\\"icos/16-$name.png\\\" alt=\\\"\\\" width=\\\"16\\\" height=\\\"16\\\">\";\n }" ]
[ "0.8251455", "0.7545539", "0.7162996", "0.70313376", "0.6959373", "0.6925697", "0.6824293", "0.68168503", "0.68112206", "0.68061835", "0.6800296", "0.6635114", "0.6581387", "0.6570428", "0.6549963", "0.6536148", "0.6499084", "0.6478965", "0.64339995", "0.64339995", "0.642933", "0.64035386", "0.6386711", "0.63837695", "0.6285006", "0.62849814", "0.6238615", "0.6151891", "0.61514914", "0.61135566", "0.6100999", "0.60964143", "0.6091396", "0.60799646", "0.60719705", "0.60719705", "0.6061831", "0.60614896", "0.60561615", "0.6051006", "0.6041341", "0.6031876", "0.6031167", "0.6026062", "0.6026062", "0.6024856", "0.6024856", "0.6023996", "0.60236174", "0.6019221", "0.60179394", "0.6002846", "0.6000288", "0.59948283", "0.59941304", "0.5993894", "0.5992193", "0.59689003", "0.5958656", "0.5958534", "0.5956072", "0.59471816", "0.5936249", "0.59129345", "0.5887915", "0.5878568", "0.5868337", "0.58665", "0.5855977", "0.5855977", "0.5838581", "0.58359426", "0.58231485", "0.5795819", "0.5793157", "0.57924443", "0.5791069", "0.5790341", "0.57731724", "0.5769356", "0.57568413", "0.57504046", "0.574902", "0.57409483", "0.57233745", "0.57211095", "0.5719619", "0.571812", "0.5714936", "0.5714936", "0.57091624", "0.57074916", "0.5704554", "0.57002056", "0.56869376", "0.5686185", "0.56830496", "0.5680929", "0.5674366", "0.56703657", "0.5668208" ]
0.0
-1
Alias for create the image name
public function getProfileImage($profile) { $repository = $this->container->get('doctrine')->getRepository('CoreBundle:Image', 'main'); if ($profile->getImageId() && $image = $repository->find($profile->getImageId())) { $prefix = null; if($profile instanceof Accountprofilecontact) { $prefix = $profile->getAccountId(); } if($profile instanceof Profile) { $prefix = $profile->getAccount()->getId(); } $id = $image->getId(); $type = strtolower($image->getType()); return sprintf('%d_photo_%d.%s', $prefix, $id, $type); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function imageName() {}", "public function getImageName();", "protected function buildFileName()\n\t{\n\t\t$upscale = $this->upscale ? 'upscale' : 'noupscale';\n\t\treturn $this->namePrefix . '-' . $this->width . 'x' . $this->height . '-' . $upscale . '-' . $this->quality . '-' . $this->imageName;\n\t}", "protected function imageName() {\n\n\t\treturn NULL;\n\t}", "private function createImageName($imageInfo, $shopName, $imageTypeName)\n {\t\n \t$folderName = $this->createFolderName($shopName);\n \t//get Image Mine Type\n $logoType =$imageInfo->getClientMimeType();\n $ext = substr($logoType, strrpos($logoType, '/') +1);\n //get Current Date time String\n $date = $this->currentTime();\n //concrite a new logo Name\n $newName = $date.'_'.$folderName.$imageTypeName.'.'.$ext;\n\n //return logo name\n return $newName;\n }", "function makeThumbnailName($image) {\r\n $i = strrpos($image, '.');\r\n $image_name = substr($image, 0, $i);\r\n $ext = substr($image, $i);\r\n $image = $image_name . '-tn' . $ext;\r\n return $image;\r\n }", "public function genFilename()\n {\n $filename = $this->getAssetableType().$this->assetable_id.'_';\n $filename .= uniqid();\n if(!empty($this->getThumbnailType())) $filename .= '_'.$this->getThumbnailType();\n $filename .= '.'.$this->uploadedFile->extension;\n $this->filename = $filename;\n }", "private function createImageName() {\n $nameFree = true;\n\n // loop thru until a name is free (probably instantly)\n // caveat: i was lazy and decided to go thru entire images table.\n // could be a problem in the future if db got huge...\n do {\n // create a slug\n $name = parent::createSlug(self::BASE_IMG_NAME_START);\n\n // see if the slug is already in the db\n $count = Images::where('slug', $name)->count();\n\n if ($count > 0) break;\n } while(!$nameFree);\n\n return $name;\n }", "function getName() \t\t { return 'NP_ImageCreateThumbnail'; }", "private function createName() : string\n {\n return md5(uniqid()). $this->file->getClientOriginalName(). '.'.$this->file->guessExtension();\n }", "function makeThumbnailName($image)\n{\n $i = strrpos($image, '.');\n $image_name = substr($image, 0, $i);\n $ext = substr($image, $i);\n $image = $image_name . '-tn' . $ext;\n return $image;\n}", "public function get_full_name(){\n\t\treturn \"{$this->id}_full.png\";\n\t}", "public function get_thumb_name(){\n\t\treturn \"{$this->id}_thumb.png\";\n\t}", "abstract protected function generateName();", "public function filename()\n {\n $processor = Hash::get($this->settings, 'nameCallback', null);\n $extension = Hash::get($this->settings, 'base64_extension', '.png');\n if (is_callable($processor)) {\n $numberOfParameters = (new \\ReflectionFunction($processor))->getNumberOfParameters();\n if ($numberOfParameters == 2) {\n return $processor($this->data, $this->settings);\n }\n\n return $processor($this->table, $this->entity, $this->data, $this->field, $this->settings);\n }\n\n return Text::uuid() . \"$extension\";\n }", "protected function getImageName() {\n\n\t\treturn NULL;\n\t}", "function createImage($idName) { //TODO: Add parameter for passing image files to use instead \n echo '<img src=\"/php/cms-img/file2.png\" id=\"' . $idName . '\" class=\"nested\"/>';\n }", "public function getCategoryImageFileNameAttribute()\n {\n return $this->id . '-image.png';\n }", "public function getAlias()\n {\n return 'imagine';\n }", "public function getAlias()\n {\n return 'imagine';\n }", "public function get_name() {\n\t\treturn 'happyden-feature-image';\n\t}", "public function getBannerImageNameAttribute(){\n $photo_details = pathinfo($this->attributes['name']); \n $name = @$photo_details['filename'].'_1349x402.'.@$photo_details['extension'];\n return $name;\n }", "public function getImageFileNameAttribute()\n {\n return $this->id . '-image.' . $this->image_extension;\n }", "public function getSliderImageNameAttribute(){\n $photo_src=explode('.',$this->attributes['name']);\n if(count($photo_src)>1)\n {\n $photo_details = pathinfo($this->attributes['name']); \n $name = @$photo_details['filename'].'_1440x960.'.@$photo_details['extension'];\n return url('/').'/images/multiple_rooms/'.$this->attributes['multiple_room_id'].'/'.$name;\n }\n else\n {\n $options['secure']=TRUE;\n $options['width']=1440;\n $options['height']=960;\n $options['crop']='fill';\n return $src=\\Cloudder::show($this->attributes['name'],$options);\n }\n }", "public function setImageName(string $imageName);", "public function getUniqueImageName()\n {\n // timestamp + slug\n $name = time() . '-' . str_slug($this->originalName);\n\n $name = str_replace($this->getExtension($this->property), '', $name);\n\n $this->uniqueName = $name . '.' . $this->getExtension($this->property);\n\n return $this;\n }", "protected function createFilename()\n {\n $extension = \\File::extension(\\Input::file('photo')->getClientOriginalName());\n $filename = $this->applicant->slug . '_' . date('U') . '.' . $extension;\n\n return \\Str::lower($filename);\n }", "public function getNameFile($image): string\n {\n \t$image_name = uniqid(time()) . '.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n \treturn $image_name;\n }", "protected function generateAlias($name,$type)\n {\n // remove any '-' from the string they will be used as concatonater\n $str = str_replace('-', ' ', $name);\n $str = str_replace('_', ' ', $name);\n\n // remove any duplicate whitespace, and ensure all characters are alphanumeric\n if($type == \"img\") \n {\n $str = preg_replace(array('/\\s+/','/[^A-Za-z0-9\\-]/'), array('_',''), $str);\n }\n else \n {\n $str = preg_replace(array('/\\s+/','/[^A-Za-z0-9\\-]/'), array('-',''), $str);\n }\n\n // lowercase and trim\n $str = trim(strtolower($str));\n\t\t\n return $str;\n }", "public function get_preview_name(){\n\t\treturn \"{$this->id}_preview.png\";\n\t}", "private function getFileName($raw = false){\n $raw_string = $this->surah . '|' . $this->verses . '|' . $this->translation;\n return $raw ? $raw_string : md5($raw_string).'.png';\n }", "public function createImgUri() {\n\t\t$this->imgUri = FLICKR_FARM;\n\t\t$this->imgUri .= $this->photo['farm'];\n\t\t$this->imgUri .= '.';\n\t\t$this->imgUri .= STATICFLICKR;\n\t\t$this->imgUri .= $this->photo['server'];\n\t\t$this->imgUri .= '/';\n\t\t$this->imgUri .= $this->photo['id'];\n\t\t$this->imgUri .= '_';\n\t \t$this->imgUri .= $this->photo['secret'];\n\t\t$this->imgUri .= '.';\n\t \t$this->imgUri .= IMGEXT;\n\t}", "function _showname($img,$data){\n global $ID;\n\n if(!$data['showname'] ) { return ''; }\n\n //prepare link\n $lnk = ml($img['id'],array('id'=>$ID),false);\n\n // prepare output\n $ret = '';\n $ret .= '<br /><a href=\"'.$lnk.'\">';\n $ret .= hsc($img['file']);\n $ret .= '</a>';\n return $ret;\n }", "public function get_name() {\n\t\treturn 'single-product-images';\n\t}", "protected function filename()\n {\n return 'Campeonato_' . date('YmdHis');\n }", "private function getImageName(SplFileInfo $dir, $imageSetName)\n {\n return $imageSetName.'-'.$dir->getFileName().':latest';\n }", "private function generateThumbnailCmd(){\n\t}", "static function thumbnail($filename , $disk='local'){\n return pathinfo( $filename , PATHINFO_FILENAME ) . '.jpg';\n\n }", "private function genereteFilename(){\n return strtolower(md5(uniqid($this->document->baseName)) . '.' . $this->document->extension);\n }", "function makename($base, $att, $num) {\r\n return sprintf(\"%s[%s_%d]\", $base, $att, $num);\r\n }", "private function createCacheFileName($params) {\n $parts = pathinfo($this->imgPath);\n $fileExtension = $parts['extension'];\n $this->saveAs = is_null($params['save_as']) ? $fileExtension : $params['save_as'];\n $quality_ = is_null($params['quality']) ? null : \"_q{$params['quality']}\";\n $cropToFit_ = is_null($params['crop_to_fit']) ? null : \"_cf\";\n $dirName = preg_replace('/\\//', '-', dirname($params['src']));\n $cacheFileName = IMAGE_CACHE_PATH . \"-{$dirName}-{$parts['filename']}_{$params['width']}_{$params['height']}{$quality_}{$cropToFit_}.{$this->saveAs}\";\n $cacheFileName = preg_replace('/^a-zA-Z0-9\\.-_/', '', $cacheFileName);\n if($this->verbose) { $this->createVerbose(\"Cache file is: {$cacheFileName}\"); }\n return $cacheFileName;\n \n }", "public function get_name() {\n\t\treturn 'listeo-imagebox';\n\t}", "private function getThumbFilename() {\n\t\t$info = pathInfo( $this->filename );\n\n\t\t// add dirname as postfix (if exists)\n\t\t$postfix = '';\n\n\t\t$dirname = UniteFunctionsRev::getVal( $info, 'dirname' );\n\t\tif ( ! empty( $dirname ) ) {\n\t\t\t$postfix = str_replace( '/', '-', $dirname );\n\t\t}\n\n\t\t$ext = $info['extension'];\n\t\t$name = $info['filename'];\n\t\t$width = ceil( $this->maxWidth );\n\t\t$height = ceil( $this->maxHeight );\n\t\t$thumbFilename = $name . '_' . $width . 'x' . $height;\n\n\t\tif ( ! empty( $this->type ) ) {\n\t\t\t$thumbFilename .= '_' . $this->type; }\n\n\t\tif ( ! empty( $this->effect ) ) {\n\t\t\t$thumbFilename .= '_e' . $this->effect;\n\t\t\tif ( ! empty( $this->effect_arg1 ) ) {\n\t\t\t\t$thumbFilename .= 'x' . $this->effect_arg1;\n\t\t\t}\n\t\t}\n\n\t\t// add postfix\n\t\tif ( ! empty( $postfix ) ) {\n\t\t\t$thumbFilename .= '_' . $postfix; }\n\n\t\t$thumbFilename .= '.' . $ext;\n\n\t\treturn($thumbFilename);\n\t}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public static function buildPhotoName($person): string\n {\n return strtoupper($person->first_name . ' ' . $person->last_name) . '_rangers.jpg';\n }", "public function get_image_title()\n {\n }", "function image($file_name,$title,$class='',$id) {\n \tif ($id) $id = \"id = '\".$id.\"'\"; \n \t$data = '<img src=\"'.BASE_PATH.'/img/'.$file_name.'\" title = \"'.$title.'\" border=\"0\" align=\"absmiddle\" '.$id.' class=\"'.$class.'\" />';\n return $data;\n }", "public function setFileName() {\n\t\t$name = 'color_' . $this->width . 'x' . $this->height;\n\t\tforeach ($this->colors as $color) {\n\t\t\t$name .= '_' . strtolower(preg_replace('/^#/', '', $color));\n\t\t}\n\t\t$name .= '.png';\n\t\t$this->fileName = $this->tempDir . $name;\n\t}", "function makeImg($img, $prefix = '', $relative = false)\n{\n\treturn ($img ? '<img alt=\"\" src=\"' . ($relative ? '' : ARC_WWW_PATH) . $prefix . $img . '\" />' : '');\n}", "public function getPictureName()\n {\n $pictureName = \"nopicture.png\";\n $articleModel = new ArticleModel();\n $articles = $articleModel->where(\"id_products\", $this->id_products)->findAll();\n\n if (count($articles) > 0) {\n\n if ($articles[0]->getPicture() != null) {\n $pictureName = $articles[0]->getPicture()->name . \".\" . $articles[0]->getPicture()->extension;\n }\n }\n return $pictureName;\n }", "private function generateCacheName(): string\n\t{\n\t\t$get = implode('-', $_GET);\n\t\t$name = $this->_resizeMode . $this->_imagePath . $this->_oldWidth . $this->_oldHeight . $this->_newWidth . $this->_newHeight . $get;\n\t\treturn md5($name) . '.' . $this->_extension;\n\t}", "function generateEmailTemplateThumbnailName($campaign)\n {\n $date = Carbon::createFromFormat('Y-m-d H:i:s', $campaign->createDate);\n\n return $campaign->orgID.'-'.$campaign->campaignID.'-'.$date->timestamp.'.png';\n }", "function image_name(){\n\t$date = date(\"H:i:s\");;\n\t$date = strtotime($date);\n\n\treturn $date;\n}", "public function setImageName($value)\n {\n return $this->set('ImageName', $value);\n }", "public function get_cover_name(){\n\t\treturn \"{$this->id}_cover.png\";\n\t}", "public function getImageName()\n {\n return $this->ImageName;\n }", "function generateFilename($name)\n {\n // Catch every Unicode character from beggining on, because replacer might not get it\n $name = preg_replace('/[\\x00-\\x1F\\x80-\\xFF]/', '', $name);\n // Delete all signs etc. to properly display the filename\n $newname = str_replace(array(' ', '+', '*', '!', '?', \"'\", '\"', '.', ',', 'ä', 'ö', 'ü', '?', '-', ':', '&'), '', $name);\n $newname = mb_strtolower($newname);\n $newname .= '.png';\n\n return $newname;\n }", "public function getCrearFoto(){\n\t\treturn 'formulario de de crear Albumes';\n\t}", "public static function newImageName($imageFile)\n {\n //Get file name with extension\n $cover_image_name_ext = $imageFile->getClientOriginalName();\n \n //Get just Filename\n $filename = pathinfo($cover_image_name_ext, PATHINFO_FILENAME);\n \n //Get extension\n $extension = $imageFile->getClientOriginalExtension();\n \n //Create new filename to store\n $filename_to_store = $filename.'_'.time().'.'.$extension;\n\n return $filename_to_store;\n }", "private function formatFilename() {\n return $this->prefix . $this->name . \".\" . $this->extension;\n }", "protected function _getImageName($_withSize = true)\n {\n $name = $this->_account->getImage();\n \n if($_withSize) {\n $name .= '_' . self::USER_IMAGE_SIZE_X\n . 'x' . self::USER_IMAGE_SIZE_Y;\n }\n\n $name .= '.' . self::USER_IMAGE_TYPE;\n\n return $name;\n }", "public function generateFileName()\n {\n $d = new \\DateTime();\n\n return strtoupper($this->fileName).\"_\" . $d->format(\"Y-m-d\");\n }", "function concatenarPath($nombre, $seccion) {\n\t$path = \"img_\" . $seccion . \"/\" . $nombre;\n\treturn $path;\n}", "protected function filename()\n {\n return 'Slider_' . date('YmdHis');\n }", "public function createImgTag() {\n\t\t$this->imgNeko = '<img src=\"';\n\t\t$this->imgNeko .= $this->imgUri;\n\t\t$this->imgNeko .= '\" width=\"';\n\t\t$this->imgNeko .= $this->imgSize[0];\n\t\t$this->imgNeko .= '\" height=\"';\n\t\t$this->imgNeko .= $this->imgSize[1];\n\t\t$this->imgNeko .= '\" alt=\"';\n\t\t$this->imgNeko .= $this->creditInfo;\n\t\t$this->imgNeko .= '\">';\n\t}", "public function gen_thumbnail()\n {\n }", "public function gen_thumbnail()\n {\n }", "public function getName() \n { \n return $this->getType().\"_\".substr(md5(implode($this->getParameters())), 0, 20);\n }", "protected function filename()\n {\n return 'photos_datatable_' . time();\n }", "function genFilename(){\n\t$postName = filter_var($_POST['name'], FILTER_SANITIZE_SPECIAL_CHARS);\n\n\t$con = mysqli_connect(HOST,USER,PASS,DB) or die('Unable to Connect...');\n\t$sql = \"SELECT max(id) as id FROM images\";\n\t$result = mysqli_fetch_array(mysqli_query($con,$sql));\n\tmysqli_close($con);\n\n\t$maxID = 0;\n\tif($result['id']==null)\n\t\t$maxID = 1; \n\telse \n\t\t$maxID = $result['id']++; \n\n\treturn substr($postName, 0, 3) . $maxID . \"_\" . time();\n}", "function ImageFile()\n\t{\treturn $this->imagedir . (int)$this->id . \".jpg\";\n\t}", "function gen_name($arg, $in){\n $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n $name = '';\n for ($i = 0; $i < CONFIG_RANDOM_LENGTH; $i++) {\n $name .= $chars[mt_rand(0, 60)];\n }\n switch($arg){\n case 'random':\n return $name.'.'.$in;\n break;\n case 'custom_original':\n return $name.'_'.$in;\n break;\n }\n}", "protected function filename()\n {\n return 'Jogadores_' . date('YmdHis');\n }", "protected function renderImage(){\n \n return sprintf(\n '<img src=\"%s\" title=\"%s\" alt=\"%s\">',\n $this->getField('url'),\n $this->getField('title',''),\n $this->getField('alt','')\n );\n \n }", "function minorite_image($variables) {\n $attributes = $variables['attributes'];\n $attributes['src'] = file_create_url($variables['path']);\n\n foreach (array('alt', 'title') as $key) {\n\n if (isset($variables[$key])) {\n $attributes[$key] = $variables[$key];\n }\n }\n\n return '<img' . drupal_attributes($attributes) . ' />';\n}", "function floated_admin_avatar($name)\n {\n }", "public function img(): string\n {\n deprecationWarning('Deprecated. Use instead `image()`');\n\n return call_user_func_array([self::class, 'image'], func_get_args());\n }", "function imagecustom($im, $text) {\n}", "protected function getImagePath()\n {\n return Yii::getAlias('@data/image.jpg');\n }", "public function CacheFileName()\n {\n $parts = pathinfo($this->pathToImage);\n $this->fileExtension = $parts['extension'];\n $this->saveAs = is_null($this->saveAs) ? $this->fileExtension : $this->saveAs;\n $quality_ = is_null($this->quality) ? null : \"_q{$this->quality}\";\n $cropToFit_ = is_null($this->cropToFit) ? null : \"_cf\";\n $sharpen_ = is_null($this->sharpen) ? null : \"_s\";\n $dirName = preg_replace('/\\//', '-', dirname($this->src));\n $cacheFileName = CACHE_PATH . \"-{$dirName}-{$parts['filename']}_{$this->newWidth}_{$this->newHeight}{$quality_}{$cropToFit_}{$sharpen_}.{$this->saveAs}\";\n $cacheFileName = preg_replace('/^a-zA-Z0-9\\.-_/', '', $cacheFileName);\n\n if($this->verbose) { self::verbose(\"Cache file is: {$cacheFileName}\"); }\n return $cacheFileName;\n }", "public function imgset_name($format = '')\n {\n return $this->getVar('imgset_name', $format);\n }", "function getNameHelper(){\n\treturn 'Ejercicio de aprendizaje';\n}", "function display_file($file) {\n\n return \"images\" . DS . $file;\n\n}", "protected function filename()\n {\n return 'Categories_' . date('YmdHis');\n }", "private function generateThumbnailImagick(){\n\t}", "function createImage($type,$img_name){\n if (!$type){\n $type = $this->get_type($img_name);\n }\n\t\t \n switch ($type){\n case 'gif':\n if (function_exists('imagecreatefromgif'))\n $tmp_img=@imagecreatefromgif($img_name);\n break;\n case 'jpg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n case 'png':\n $tmp_img=imagecreatefrompng($img_name);\n break;\n\t\t\t\t case 'jpeg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n default:\n $tmp_img=imagecreatefromstring($img_name);\n break;\n }\n return $tmp_img;\n}", "function createImage($type,$img_name){\n if (!$type){\n $type = $this->get_type($img_name);\n }\n\t\t \n switch ($type){\n case 'gif':\n if (function_exists('imagecreatefromgif'))\n $tmp_img=@imagecreatefromgif($img_name);\n break;\n case 'jpg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n case 'png':\n $tmp_img=imagecreatefrompng($img_name);\n break;\n\t\t\t\t case 'jpeg':\n $tmp_img=imagecreatefromjpeg($img_name);\n break;\n default:\n $tmp_img=imagecreatefromstring($img_name);\n break;\n }\n return $tmp_img;\n}", "public function getImage($name)\n\t{\n\t\t//Todo: Implement.\n\t}", "protected function filename()\n {\n return 'owe_' . date('YmdHis');\n }", "function imageUser($name) {\n\tif (File::exists(base_path() . '/public/avatar/' . $name)) {\n\t\treturn Asset('avatar/'.$name);\n\t} else {\n\t\treturn Asset('images/default-avatar.png');\n\t}\n}", "public function createImage()\n {\n $name = basename($this->absoluteUrl);\n if ($this->fileExists($this->absoluteUrl) && !in_array($name, $this->notAllowedNames)) {\n $mime = @exif_imagetype($this->absoluteUrl);\n if ($mime == IMAGETYPE_JPEG || $mime == IMAGETYPE_PNG || $mime == IMAGETYPE_GIF) {\n if (!file_exists($this->imageDirectory)) {\n mkdir($this->imageDirectory, 0700);\n }\n\n copy($this->absoluteUrl, $this->imageDirectory . DIRECTORY_SEPARATOR . $name);\n }\n }\n }", "protected function filename()\n {\n return 'IPI_Target_' . date('YmdHis');\n }", "function vve_tpl_langImage($lang){\n\n return \"<img src=\\\"images/langs/{$lang}.png\\\" alt=\\\"{$lang}\\\" />\";\n\n}", "public function getPhoto() {\n return DATADIR . 'alumni/' . $this->shortName . '.jpg';\n }", "protected function filename()\n {\n return 'Egreso_' . date('YmdHis');\n }", "private function get_imagecreatefrom_method( $image_file ) {\n\t\t$image_format = pathinfo( $image_file, PATHINFO_EXTENSION );\n\t\tif ( ! in_array( $image_format, [ 'jpg', 'jpeg', 'gif', 'png' ], true ) ) {\n\t\t\treturn '';\n\t\t}\n\t\tif ( 'jpg' === $image_format ) {\n\t\t\t$image_format = 'jpeg';\n\t\t}\n\n\t\treturn 'imagecreatefrom' . $image_format;\n\t}", "protected function filename()\n {\n return 'Ingredients_' . date('YmdHis');\n }", "function loadIcon16($name) {\n echo \"<img src=\\\"icos/16-$name.png\\\" alt=\\\"\\\" width=\\\"16\\\" height=\\\"16\\\">\";\n }" ]
[ "0.82534325", "0.75475746", "0.71638155", "0.7032463", "0.69593525", "0.6924139", "0.6825429", "0.6817324", "0.68113303", "0.68063784", "0.6798538", "0.6636474", "0.65818995", "0.65722376", "0.65511435", "0.65373385", "0.6500549", "0.64797884", "0.64336663", "0.64336663", "0.6430044", "0.64050925", "0.63881767", "0.63861626", "0.6286274", "0.62843686", "0.6239192", "0.61528516", "0.61512214", "0.6114973", "0.6102778", "0.60972166", "0.60931545", "0.60804975", "0.6073966", "0.60732263", "0.6062278", "0.60615087", "0.6057302", "0.6051265", "0.60414684", "0.6032791", "0.60319304", "0.6028906", "0.6028906", "0.6027703", "0.6027703", "0.60253286", "0.6024955", "0.602139", "0.6019035", "0.60034484", "0.6001658", "0.5995921", "0.59956074", "0.599477", "0.59929323", "0.59707075", "0.5960358", "0.59594595", "0.5956782", "0.59454626", "0.59366477", "0.59148514", "0.5889653", "0.5878507", "0.5870241", "0.58682823", "0.5856504", "0.5856504", "0.58395815", "0.5837351", "0.5824948", "0.5797129", "0.579508", "0.57928634", "0.57924205", "0.5791541", "0.57740605", "0.5770338", "0.57576525", "0.5750887", "0.57496125", "0.57416326", "0.57243955", "0.5722166", "0.57208085", "0.5717766", "0.5715399", "0.5715399", "0.5712929", "0.570995", "0.5706515", "0.5699876", "0.5688584", "0.5687907", "0.56837445", "0.5683062", "0.56739295", "0.56730855", "0.56709814" ]
0.0
-1
getting the user ip address
function getIp() { $ip = $_SERVER['REMOTE_ADDR']; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } return $ip; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getUserIP()\n\t\t\t{\n\t\t\t\tif (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER) && !empty($_SERVER['HTTP_X_FORWARDED_FOR']))\n\t\t\t\t\t\tif (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') > 0):\n\t\t\t\t\t\t\t\t$addr = explode(\",\",$_SERVER['HTTP_X_FORWARDED_FOR']);\n\t\t\t\t\t\t\t\treturn trim($addr[0]);\n\t\t\t\t\t\t\telse:\n\t\t\t\t\t\t\t\treturn $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t\t\t\tendif;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn $_SERVER['REMOTE_ADDR'];\n\t\t\t\t}", "private function getUserIP()\n {\n $iph = $this->app->make('helper/validation/ip');\n $ip = $iph->getRequestIP();\n\n return $ip->getIP(IPAddress::FORMAT_IP_STRING);\n }", "function getUserIp(){\n switch(true){\n case (!empty($_SERVER['HTTP_X_REAL_IP'])): \n return $_SERVER['HTTP_X_REAL_IP'];\n break;\n \n case (!empty($_SERVER['HTTP_CLIENT_IP'])): \n return $_SERVER['HTTP_CLIENT_IP'];\n break;\n \n case (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])): \n return $_SERVER['HTTP_X_FORWARDED_FOR'];\n break;\n \n default : \n return $_SERVER['REMOTE_ADDR'];\n }\n }", "public function find_users_ip(){\n\t\tif ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {\n\t\t\t//check ip from share internet\n\t\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t\t} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {\n\t\t\t//to check ip is pass from proxy\n\t\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t} else {\n\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t}\n\t\treturn $ip;\n\t}", "function getUserIP() {\n\t\treturn t3lib_div::getIndpEnv('REMOTE_ADDR');\n\t}", "function user_ip () {\r\n\treturn $_SERVER['REMOTE_ADDR'];\r\n}", "public static function _getUserIpAddr ()\n {\n $ip = 'unknown.ip.address';\n if(isset($_SERVER)){\n\t if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) // If server is behind a load balancer\n\t\t\t{\n\t $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t } elseif (!empty($_SERVER['REMOTE_ADDR'])) {\n\t $ip = $_SERVER['REMOTE_ADDR'];\n\t }\n\t }\n return $ip;\n }", "function getUserIPAddress(){\n\tif(!empty($_SERVER['HTTP_CLIENT_IP'])){\n\t\t//ip from share internet\n\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n\t\t//ip pass from proxy\n\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t}else{\n\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t}\n\treturn $ip;\n}", "public function ipAddress(){\n return $this->getServerVar('REMOTE_ADDR');\n }", "function get_user_ip() {\n\t\tif($_SERVER['SERVER_NAME'] == 'localhost') {\n\t\t\treturn '127.0.0.1';\n\t\t}\n\t\treturn $_SERVER['REMOTE_ADDR'];\n\t}", "public function getUserIp()\n {\n return $this->remoteAddress->getRemoteAddress();\n }", "function getUserIP() {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$ipaddress = '';\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (isset($_SERVER['HTTP_CLIENT_IP']))\n\t\t\t\t\t\t\t\t \t $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n\t\t\t\t\t\t\t\t \t $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_FORWARDED']))\n\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED'];\n\t\t\t\t\t\t\t\t\telse if(isset($_SERVER['REMOTE_ADDR']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['REMOTE_ADDR'];\n\t\t\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t\t\t $ipaddress = 'UNKNOWN';\n\t\t\t\t\t\t\t\t return $ipaddress;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "function getUserIP() {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$ipaddress = '';\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (isset($_SERVER['HTTP_CLIENT_IP']))\n\t\t\t\t\t\t\t\t \t $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n\t\t\t\t\t\t\t\t \t $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_FORWARDED']))\n\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED'];\n\t\t\t\t\t\t\t\t\telse if(isset($_SERVER['REMOTE_ADDR']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['REMOTE_ADDR'];\n\t\t\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t\t\t $ipaddress = 'UNKNOWN';\n\t\t\t\t\t\t\t\t return $ipaddress;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "function getUserIP() {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$ipaddress = '';\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (isset($_SERVER['HTTP_CLIENT_IP']))\n\t\t\t\t\t\t\t\t \t $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n\t\t\t\t\t\t\t\t \t $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_FORWARDED']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\n\t\t\t\t\t\t\t\t else if(isset($_SERVER['HTTP_FORWARDED']))\n\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['HTTP_FORWARDED'];\n\t\t\t\t\t\t\t\t\telse if(isset($_SERVER['REMOTE_ADDR']))\n\t\t\t\t\t\t\t\t\t $ipaddress = $_SERVER['REMOTE_ADDR'];\n\t\t\t\t\t\t\t\t\t else\n\t\t\t\t\t\t\t\t\t $ipaddress = 'UNKNOWN';\n\t\t\t\t\t\t\t\t return $ipaddress;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "private function get_user_ip() {\n\t\tif ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {\n\t\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t\t} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {\n\t\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t} else {\n\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t}\n\t\treturn apply_filters( 'dwqa_get_ip', $ip );\n\t}", "public function getIpAdress(){\n return $this->auth['ip_adress'];\n }", "public function getUserIP()\n {\n return isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : null;\n }", "function GetUserIp() {\r\n $client = @$_SERVER['HTTP_CLIENT_IP'];\r\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\r\n $remote = $_SERVER['REMOTE_ADDR'];\r\n if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; }\r\n elseif(filter_var($forward, FILTER_VALIDATE_IP)) { $ip = $forward; } else { $ip = $remote; }\r\n return $ip;\r\n }", "public static function getUserIP()\n {\n if(!empty($_SERVER['HTTP_CLIENT_IP'])){\n //ip from share internet\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n }\n elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n //ip pass from proxy\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n else {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n\n return $ip;\n }", "public static function userIp(): string\n {\n $ip = $_SERVER['REMOTE_ADDR'] ?? ''; // Use Null Coalescing opt if not defined.\n\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n\n return preg_match(static::REGEX_IP_FORMAT, $ip) ? $ip : static::DEFAULT_IP;\n }", "public function getUserip()\n {\n // Find Client IP\n if (!empty($this->request->getServer('HTTP_CLIENT_IP'))) {\n $client = $this->request->getServer('HTTP_CLIENT_IP');\n }\n if (!empty($this->request->getServer('HTTP_X_FORWARDED_FOR'))) {\n $forward = $this->request->getServer('HTTP_X_FORWARDED_FOR');\n }\n if (!empty($this->request->getServer('REMOTE_ADDR'))) {\n $remote = $this->request->getServer('REMOTE_ADDR');\n }\n if (null !==$this->request->getServer(\"HTTP_CF_CONNECTING_IP\")) { //Find Cloud IP\n $remote=$this->request->getServer('REMOTE_ADDR');\n $client=$this->request->getServer('HTTP_CLIENT_IP');\n $remote = $this->request->getServer('HTTP_CF_CONNECTING_IP');\n $client = $this->request->getServer('HTTP_CF_CONNECTING_IP');\n }\n if (filter_var($client, FILTER_VALIDATE_IP)) {\n $ip = $client;\n } elseif (filter_var($forward, FILTER_VALIDATE_IP)) {\n $ip = $forward;\n } else {\n $ip = $remote;\n }\n return $ip;\n }", "function getUserIP() {\n\tif (array_key_exists ( 'HTTP_X_FORWARDED_FOR', $_SERVER ) && ! empty ( $_SERVER ['HTTP_X_FORWARDED_FOR'] )) {\n\t\tif (strpos ( $_SERVER ['HTTP_X_FORWARDED_FOR'], ',' ) > 0) {\n\t\t\t$addr = explode ( \",\", $_SERVER ['HTTP_X_FORWARDED_FOR'] );\n\t\t\treturn trim ( $addr [0] );\n\t\t} else {\n\t\t\treturn $_SERVER ['HTTP_X_FORWARDED_FOR'];\n\t\t}\n\t} else {\n\t\treturn $_SERVER ['REMOTE_ADDR'];\n\t}\n}", "public static function get_ip()\n\t{\n\t\treturn $_SERVER['REMOTE_ADDR'];\n\t}", "public static function getUserIP()\n {\n return isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : null;\n }", "function L_getUserIp() {\n\t\t\n\t\tif ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {\n\t\t\n\t\t\t//check ip from share internet\n\t\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t\t\n\t\t} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {\n\t\t\n\t\t\t//to check ip is pass from proxy\n\t\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\n\t\t} else {\n\t\t\n\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t\n\t\t}\n\t\t\n\t\treturn apply_filters( 'l_user_ip', $ip );\n\t\n\t}", "public function GetIp()\n {\t\n\t$q = Doctrine_Query::create()\n\t\t\t\t\t\t->select('*')\n\t\t\t\t\t\t->from('Users')\n\t\t\t\t\t\t->where('id = ?',$this->getUser()->getId());\n\t$result =$q->FetchOne();\n\treturn $result->getUserIp();\n }", "static function getIP()\r\n {\r\n return self::getRemoteIP();\r\n }", "function get_user_IP(){\n\t\tif (isset($_SERVER[\"HTTP_CF_CONNECTING_IP\"])) {\n\t\t\t$_SERVER['REMOTE_ADDR'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n\t\t\t$_SERVER['HTTP_CLIENT_IP'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n\t\t}\n\t\t$client = @$_SERVER['HTTP_CLIENT_IP'];\n\t\t$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t$remote = $_SERVER['REMOTE_ADDR'];\n\n\t\tif(filter_var($client, FILTER_VALIDATE_IP)){\n\t\t\t$ip = $client;\n\t\t}elseif(filter_var($forward, FILTER_VALIDATE_IP)){\n\t\t\t$ip = $forward;\n\t\t} else {\n\t\t\t$ip = $remote;\n\t\t}\n\t\treturn $ip;\n\t}", "public function getIp() {\n\t\treturn $_SERVER['REMOTE_ADDR'];\t\n\t}", "function getUserIP() {\n $ipaddress = '';\n if (isset($_SERVER['HTTP_CLIENT_IP']))\n $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\n else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_X_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\n else if(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n $ipaddress = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_FORWARDED'];\n else if(isset($_SERVER['REMOTE_ADDR']))\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n else\n $ipaddress = 'UNKNOWN';\n return $ipaddress;\n}", "function get_user_ip() {\n if (isset($_SERVER[\"HTTP_CF_CONNECTING_IP\"])) {\n $_SERVER['REMOTE_ADDR'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n $_SERVER['HTTP_CLIENT_IP'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n }\n $client = @$_SERVER['HTTP_CLIENT_IP'];\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n $remote = $_SERVER['REMOTE_ADDR'];\n\n if(filter_var($client, FILTER_VALIDATE_IP))\n {\n $ip = $client;\n }\n elseif(filter_var($forward, FILTER_VALIDATE_IP))\n {\n $ip = $forward;\n }\n else\n {\n $ip = $remote;\n }\n\n return $ip;\n }", "private function get_ip(){\n $ip = '';\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n } else {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n }", "function getUserIP() {\r\n $ipaddress = '';\r\n if (isset($_SERVER['HTTP_CLIENT_IP']))\r\n $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\r\n else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\r\n $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\r\n else if(isset($_SERVER['HTTP_X_FORWARDED']))\r\n $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\r\n else if(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\r\n $ipaddress = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\r\n else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\r\n $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\r\n else if(isset($_SERVER['HTTP_FORWARDED']))\r\n $ipaddress = $_SERVER['HTTP_FORWARDED'];\r\n else if(isset($_SERVER['REMOTE_ADDR']))\r\n $ipaddress = $_SERVER['REMOTE_ADDR'];\r\n else\r\n $ipaddress = 'UNKNOWN';\r\n return $ipaddress;\r\n}", "protected function ip_address()\n\t{\n\t\t//return $this->ip2int(ipaddress::get());\n\t\t//return $this->ip2int(server('REMOTE_ADDR'));\n\t\treturn server('REMOTE_ADDR');\n\t}", "function ip_address()\n{\n\treturn $_SERVER['REMOTE_ADDR'];\n}", "public static function getUserHostAddress() {\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n } else {\n $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '127.0.0.1';\n }\n return $ip;\n }", "function getUserIpAddr()\r\n{\r\n if(!empty($_SERVER['HTTP_CLIENT_IP'])){\r\n //ip from share internet\r\n $ip = $_SERVER['HTTP_CLIENT_IP'];\r\n }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\r\n //ip pass from proxy\r\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\r\n }else{\r\n $ip = $_SERVER['REMOTE_ADDR'];\r\n }\r\n return $ip;\r\n}", "protected function get_ip_address() {\r\n\t\tif (!empty($_SERVER['HTTP_CLIENT_IP'])) { //check ip from share internet\r\n\t\t\t$ip=$_SERVER['HTTP_CLIENT_IP'];\r\n\t\t} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { //to check ip is pass from proxy\r\n\t\t\t$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\r\n\t\t} else {\r\n\t\t\t$ip=$_SERVER['REMOTE_ADDR'];\r\n\t\t}\r\n\t\treturn $ip;\r\n\t}", "function getUserIP()\n\t{\n\t\tif (isset($_SERVER[\"HTTP_CF_CONNECTING_IP\"])) {\n\t\t\t$_SERVER['REMOTE_ADDR'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n\t\t\t$_SERVER['HTTP_CLIENT_IP'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n\t\t}\n\n\t\t$client = @$_SERVER['HTTP_CLIENT_IP'];\n\t\t$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t$remote = $_SERVER['REMOTE_ADDR'];\n\n\t\tif(filter_var($client, FILTER_VALIDATE_IP)){\n\t\t\t$ip = $client;\n\t\t}elseif(filter_var($forward, FILTER_VALIDATE_IP)){\n\t\t\t$ip = $forward;\n\t\t}else{\n\t\t\t$ip = $remote;\n\t\t}\n\n\t\treturn $ip;\n\t}", "function getRealIpUser()\r\n\t{\r\n\t\tswitch(true)\r\n\t\t{\r\n\t\t\tcase(!empty($_SERVER['HTTP_X_REAL_IP'])) : return $SERVER['HTTP_X_REAL_IP'];\r\n\t\t\tcase(!empty($_SERVER['HTTP_CLIENT_IP'])) : return $SERVER['HTTP_CLIENT_IP'];\r\n\t\t\tcase(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) : return $SERVER['HTTP_X_FORWARDED_FOR'];\r\n\r\n\t\t\tdefault : return $_SERVER['REMOTE_ADDR'];\r\n\t\t\t \r\n\t\t}\r\n\t}", "function getUserIP(){\n $client = @$_SERVER['HTTP_CLIENT_IP'];\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n $remote = $_SERVER['REMOTE_ADDR'];\n\n if(filter_var($client, FILTER_VALIDATE_IP))\n {\n $ip = $client;\n }\n elseif(filter_var($forward, FILTER_VALIDATE_IP))\n {\n $ip = $forward;\n }\n else\n {\n $ip = $remote;\n }\n\n return $ip;\n}", "function get_user_ip()\n{\n if (empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n return$_SERVER['REMOTE_ADDR'];\n }\n $ip = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n return $ip[0];\n}", "public function getIpAddress()\n\t{\n\t\t$ip = null;\n\t if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet\n\t\t{\n\t\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t\t}\n\t\telseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy\n\t\t{\n\t\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t}\n\t return trim($ip);\n\t}", "static public function getIp() {\n if (isset($_SERVER['REMOTE_ADDR'])) return $_SERVER['REMOTE_ADDR'];\n return '127.0.0.1';\n }", "private function getIP(){\n \n if( isset($_SERVER['HTTP_X_FORWARDED_FOR']) ){ \n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n \n else{\n \n if( isset($_SERVER ['HTTP_VIA']) ){\n $ip = $_SERVER['HTTP_VIA'];\n }\n else{\n \n if( isset( $_SERVER ['REMOTE_ADDR'] )){\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n else{\n $ip = null ;\n }\n }\n \n }\n \n \n return $ip; //retorna la IP\n }", "public function ip()\r\n {\r\n return $this->server->get('REMOTE_ADDR');\r\n }", "public function ip() {\n\t\treturn isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : null;\n\t}", "function ip()\n {\n return util::ip();\n }", "function getRealIpUser(){\r\n \r\n switch(true){\r\n \r\n case(!empty($_SERVER['HTTP_X_REAL_IP'])) : return $_SERVER['HTTP_X_REAL_IP'];\r\n case(!empty($_SERVER['HTTP_CLIENT_IP'])) : return $_SERVER['HTTP_CLIENT_IP'];\r\n case(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) : return $_SERVER['HTTP_X_FORWARDED_FOR'];\r\n \r\n default : return $_SERVER['REMOTE_ADDR'];\r\n \r\n }\r\n \r\n}", "function ip_address() /* Get IP Address */\n {\n return isset($_SERVER['HTTP_CLIENT_IP']) ? $_SERVER['HTTP_CLIENT_IP'] : isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];\n }", "private function getIP(){\n\t\tif( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] )) $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\telse if( isset( $_SERVER ['HTTP_VIA'] )) $ip = $_SERVER['HTTP_VIA'];\n\t\telse if( isset( $_SERVER ['REMOTE_ADDR'] )) $ip = $_SERVER['REMOTE_ADDR'];\n\t\telse $ip = null ;\n\t\treturn $ip;\n\t}", "public function getUserIP() {\n if (isset($_SERVER[\"HTTP_CF_CONNECTING_IP\"])) {\n $_SERVER['REMOTE_ADDR'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n $_SERVER['HTTP_CLIENT_IP'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n }\n $client = @$_SERVER['HTTP_CLIENT_IP'];\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n $remote = $_SERVER['REMOTE_ADDR'];\n\n if (filter_var($client, FILTER_VALIDATE_IP)) {\n $ip = $client;\n } elseif (filter_var($forward, FILTER_VALIDATE_IP)) {\n $ip = $forward;\n } else {\n $ip = $remote;\n }\n\n return $ip;\n }", "function getUserIP()\n{\n $client = @$_SERVER['HTTP_CLIENT_IP'];\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n $remote = $_SERVER['REMOTE_ADDR'];\n\n if(filter_var($client, FILTER_VALIDATE_IP))\n {\n $ip = $client.\"c\";\n }\n elseif(filter_var($forward, FILTER_VALIDATE_IP))\n {\n $ip = $forward.\"f\";\n }\n else\n {\n $ip = $remote.\"r\";\n }\n\n return $ip;\n}", "function getRealUserIp() {\n $ipaddress = '';\n if (isset($_SERVER['HTTP_CLIENT_IP']))\n $ipaddress = $_SERVER['HTTP_CLIENT_IP'];\n else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_X_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_X_FORWARDED'];\n else if(isset($_SERVER['HTTP_FORWARDED_FOR']))\n $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];\n else if(isset($_SERVER['HTTP_FORWARDED']))\n $ipaddress = $_SERVER['HTTP_FORWARDED'];\n else if(isset($_SERVER['REMOTE_ADDR']))\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n else\n $ipaddress = 'UNKNOWN';\n\n return $ipaddress; \n}", "public function ip_address() {\n\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n //check ip from share internet\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n //to check ip is pass from proxy\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n } else {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n }", "function getRealUserIp(){\n switch(true){\n case (!empty($_SERVER['HTTP_X_REAL_IP'])) : return $_SERVER['HTTP_X_REAL_IP'];\n case (!empty($_SERVER['HTTP_CLIENT_IP'])) : return $_SERVER['HTTP_CLIENT_IP'];\n case (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) : return $_SERVER['HTTP_X_FORWARDED_FOR'];\n default : return $_SERVER['REMOTE_ADDR'];\n }\n }", "function getIp(){\n\t$ip=$_SERVER['REMOTE_ADDR'];\n\t\tif(!empty($_SERVER['HTTP_CLIENT_IP'])){\n\t\t\t$ip= $_SERVER['HTPP_CLIENT_IP'];\n\t\t}elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n\t\t\t$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t}\n\t\treturn $ip;\n}", "private static function getIp()\n {\n if (empty($_SERVER['REMOTE_ADDR']) && (Spry::isCli() || Spry::isCron() || Spry::isBackgroundProcess())) {\n return '127.0.0.1';\n }\n\n return $_SERVER['REMOTE_ADDR'] ?? 'No IP';\n }", "function getUserIP() {\n if (isset($_SERVER[\"HTTP_CF_CONNECTING_IP\"])) {\n $_SERVER['REMOTE_ADDR'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n $_SERVER['HTTP_CLIENT_IP'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\n }\n\n $client = @$_SERVER['HTTP_CLIENT_IP'];\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n $remote = $_SERVER['REMOTE_ADDR'];\n\n if(filter_var($client, FILTER_VALIDATE_IP)){\n $ip = $client;\n } elseif (filter_var($forward, FILTER_VALIDATE_IP)){\n $ip = $forward;\n } else {\n $ip = $remote;\n }\n return $ip;\n }", "function getRealIpUser(){\n\n switch(true){\n\n case(!empty($_SERVER['HTTP_X_REAL_IP'])) : return $_SERVER['HTTP_X_REAL_IP'];\n case(!empty($_SERVER['HTTP_CLIENT_IP'])) : return $_SERVER['HTTP_CLIENT_IP'];\n case(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) : return $_SERVER['HTTP_X_FORWARDED_FOR'];\n\n default : return $_SERVER['REMOTE_ADDR'];\n }\n\n}", "public function ip_address()\n {\n return $this->server('REMOTE_ADDR');\n }", "protected function getClientIP(){\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) \n {\n $ip_address = $_SERVER['HTTP_CLIENT_IP'];\n }\n //whether ip is from proxy\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) \n {\n $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n //whether ip is from remote address\n else\n {\n $ip_address = $_SERVER['REMOTE_ADDR'];\n }\n return $ip_address;\n }", "function VisitorIP() { \n\t\tif(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t\t$TheIp=$_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t} else { $TheIp=$_SERVER['REMOTE_ADDR']; }\t\t\n\t\treturn trim($TheIp);\n }", "public static function IP()\n {\n return isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '::1';\n }", "public static function ip() {\n $ip = '';\n if (getenv('HTTP_CLIENT_IP'))\n $ip = getenv('HTTP_CLIENT_IP');\n else if(getenv('HTTP_X_FORWARDED_FOR'))\n $ip = getenv('HTTP_X_FORWARDED_FOR');\n else if(getenv('HTTP_X_FORWARDED'))\n $ip = getenv('HTTP_X_FORWARDED');\n else if(getenv('HTTP_FORWARDED_FOR'))\n $ip = getenv('HTTP_FORWARDED_FOR');\n else if(getenv('HTTP_FORWARDED'))\n $ip = getenv('HTTP_FORWARDED');\n else if(getenv('REMOTE_ADDR'))\n $ip = getenv('REMOTE_ADDR');\n else\n $ip = 'unknown';\n\n return $ip;\n }", "public function ip()\n {\n return $this->ip;\n }", "final protected function ipAddress()\n {\n return $this->container->make('request')->ip();\n }", "public function getIP(): string\n {\n return (string)$this->env['REMOTE_ADDR'];\n }", "public function getIp(){\n if(function_exists('apache_request_headers'))\n $headers = apache_request_headers();\n else\n $headers = $_SERVER;\n if(array_key_exists('X-Forwarded-For', $headers) && filter_var($headers['X-Forwarded-For'], FILTER_VALIDATE_IP))\n $the_ip = $headers['X-Forwarded-For'];\n elseif(array_key_exists('HTTP_X_FORWARDED_FOR', $headers) && filter_var($headers['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP))\n $the_ip = $headers['HTTP_X_FORWARDED_FOR'];\n else\n $the_ip = filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP);\n return $the_ip;\n }", "function current_user_ip() {\r\n\r\n $ip_server_var_keys = array(\r\n 'HTTP_CLIENT_IP',\r\n 'HTTP_X_FORWARDED_FOR'\r\n );\r\n\r\n foreach ($ip_server_var_keys as $key) {\r\n if (!empty($_SERVER[$key])) {\r\n return $_SERVER[$key];\r\n }\r\n }\r\n\r\n return @$_SERVER['REMOTE_ADDR'];\r\n\r\n}", "function getIp(){\n\t$ip = $_SERVER['REMOTE_ADDR'];\n\tif (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n\t\t$ip = $_SERVER['HTTP_CLIENT_IP'];\n\t}elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t}\n\treturn $ip;\n}", "private static function resolveClientIp(): string{\n\t\treturn $_SERVER['REMOTE_ADDR'];\n\t}", "function get_ip() {\n if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] != '') {\n $fwd_addresses = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n $ip_address = $fwd_addresses[0];\n } else {\n $ip_address = $_SERVER['REMOTE_ADDR'];\n }\n\n return $ip_address;\n}", "function getIp()\n{\n\tif (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet\n\t{\n\t\t$ip=$_SERVER['HTTP_CLIENT_IP'];\n\t}\n\telseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy\n\t{\n\t\t$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n\t}\n\telse\n\t{\n\t\t$ip=$_SERVER['REMOTE_ADDR'];\n\t}\n\treturn $ip;\n}", "function getUserIP()\r\n {\r\n if (isset($_SERVER[\"HTTP_CF_CONNECTING_IP\"]))\r\n {\r\n $_SERVER['REMOTE_ADDR'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\r\n $_SERVER['HTTP_CLIENT_IP'] = $_SERVER[\"HTTP_CF_CONNECTING_IP\"];\r\n }\r\n $client = @$_SERVER['HTTP_CLIENT_IP'];\r\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\r\n $remote = $_SERVER['REMOTE_ADDR'];\r\n\r\n if(filter_var($client, FILTER_VALIDATE_IP))\r\n {\r\n $ip = $client;\r\n }\r\n elseif(filter_var($forward, FILTER_VALIDATE_IP))\r\n {\r\n $ip = $forward;\r\n }\r\n else\r\n {\r\n $ip = $remote;\r\n }\r\n return $ip;\r\n}", "public static function getIP()\n {\n $ip = '0.0.0.0';\n if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n } elseif (isset($_SERVER['HTTP_VIA'])) {\n $ip = $_SERVER['HTTP_VIA'];\n } elseif (isset($_SERVER['REMOTE_ADDR'])) {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n return $ip;\n }", "public static function get_ip()\n {\n $ip = \"\";\n if ($_SERVER) {\n if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n } else {\n $ip = $_SERVER['REMOTE_ADDR'];\n }\n } else {\n if (getenv('HTTP_X_FORWARDED_FOR')) {\n $ip = getenv('HTTP_X_FORWARDED_FOR');\n } elseif (getenv('HTTP_CLIENT_IP')) {\n $ip = getenv('HTTP_CLIENT_IP');\n } else {\n $ip = getenv('REMOTE_ADDR');\n }\n }\n return $ip;\n }", "function get_ip_address() {\n // check for shared internet/ISP IP\n if (!empty($_SERVER['HTTP_CLIENT_IP']) && $this->validate_ip($_SERVER['HTTP_CLIENT_IP'])) {\n return $_SERVER['HTTP_CLIENT_IP'];\n }\n\n // check for IPs passing through proxies\n if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n // check if multiple ips exist in var\n if (strpos($_SERVER['HTTP_X_FORWARDED_FOR'], ',') !== false) {\n $iplist = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);\n foreach ($iplist as $ip) {\n if ($this->validate_ip($ip))\n return $ip;\n }\n } else {\n if ($this->validate_ip($_SERVER['HTTP_X_FORWARDED_FOR']))\n return $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n }\n if (!empty($_SERVER['HTTP_X_FORWARDED']) && $this->validate_ip($_SERVER['HTTP_X_FORWARDED']))\n return $_SERVER['HTTP_X_FORWARDED'];\n if (!empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']) && $this->validate_ip($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']))\n return $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];\n if (!empty($_SERVER['HTTP_FORWARDED_FOR']) && $this->validate_ip($_SERVER['HTTP_FORWARDED_FOR']))\n return $_SERVER['HTTP_FORWARDED_FOR'];\n if (!empty($_SERVER['HTTP_FORWARDED']) && $this->validate_ip($_SERVER['HTTP_FORWARDED']))\n return $_SERVER['HTTP_FORWARDED'];\n\n // return unreliable ip since all else failed\n return $_SERVER['REMOTE_ADDR'];\n }", "function ip()\n{\n if (isset($_SERVER[\"HTTP_X_FORWARDED_FOR\"])) {\n $ip = $_SERVER[\"HTTP_X_FORWARDED_FOR\"];\n } else {\n $ip = $_SERVER[\"REMOTE_ADDR\"];\n }\n return $ip;\n}", "function get_ip() {\n $ip = '127.0.0.1';\n $ipServerVars = array(\n 'REMOTE_ADDR',\n 'HTTP_CLIENT_IP',\n 'HTTP_X_FORWARDED_FOR',\n 'HTTP_X_FORWARDED',\n 'HTTP_FORWARDED_FOR',\n 'HTTP_FORWARDED'\n );\n $globals = & class_loader('GlobalVar', 'classes');\n foreach ($ipServerVars as $var) {\n if ($globals->server($var)) {\n $ip = $globals->server($var);\n break;\n }\n }\n // Strip any secondary IP etc from the IP address\n if (strpos($ip, ',') > 0) {\n $ip = substr($ip, 0, strpos($ip, ','));\n }\n return $ip;\n }", "function ip() {\n return request()->ip();\n }", "public static function get_ip_address () : string\n {\n server ( \"HTTP_CLIENT_IP\" , ( $ip = \"\" ) && ( server ( \"HTTP_CLIENT_IP\" ) !== \"\" ) ? server ( \"HTTP_CLIENT_IP\" ) : server ( \"HTTP_CLIENT_IP\" ) );\n $ip = server ( \"HTTP_CLIENT_IP\" ) === \"\" ? server ( \"HTTP_CLIENT_IP\" ) : $ip;\n $ip = ( $ip === \"\" ) && ( server ( \"HTTP_X_FORWARDED_FOR\" ) === \"\" ) ? server ( \"HTTP_X_FORWARDED_FOR\" ) : $ip;\n return $ip === \"\" ? server ( \"REMOTE_ADDR\" ) : $ip;\n }", "public function getIp(): string\n {\n return $this->ip;\n }", "public function getIp(): string\n {\n return $this->ip;\n }", "public function getGivenIp()\n\t{\n\t\treturn $this->given_ip;\n\t}", "static function getIp()\n {\n $ip = $_SERVER['REMOTE_ADDR'];\n\n if (!empty($_SERVER['HTTP_CLIENT_IP']))\n {\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n }\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))\n {\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n\n return $ip;\n }", "public static function getIp()\n {\n if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))\n {\n $sIp = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n elseif (!empty($_SERVER['HTTP_CLIENT_IP']))\n {\n $sIp = $_SERVER['HTTP_CLIENT_IP'];\n }\n else\n {\n $sIp = $_SERVER['REMOTE_ADDR'];\n }\n\n return preg_match('/^[a-z0-9:.]{7,}$/', $sIp) ? $sIp : '0.0.0.0';\n }", "function getRealUserIp()\n{\n switch (true) {\n case (!empty($_SERVER['HTTP_X_REAL_IP'])):\n return $_SERVER['HTTP_X_REAL_IP'];\n case (!empty($_SERVER['HTTP_CLIENT_IP'])):\n return $_SERVER['HTTP_CLIENT_IP'];\n case (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])):\n return $_SERVER['HTTP_X_FORWARDED_FOR'];\n default:\n return $_SERVER['REMOTE_ADDR'];\n }\n}", "public static function getIP()\n\t{\n\t\tif (isset($_SERVER['HTTP_CLIENT_IP']) && ! empty($_SERVER['HTTP_CLIENT_IP'])) \n\t\t{\n\t\t $ip = $_SERVER['HTTP_CLIENT_IP'];\n\t\t} \n\t\telse if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && ! empty($_SERVER['HTTP_X_FORWARDED_FOR'])) \n\t\t{\n\t\t $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t} \n\t\telse \n\t\t{\n\t\t $ip = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : '0.0.0.0';\n\t\t}\n\n\t\t$ip = filter_var($ip, FILTER_VALIDATE_IP);\n\t\treturn ($ip === false) ? '0.0.0.0' : $ip;\t\n\t}", "private function findIP()\n {\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n $ip_address = $_SERVER['HTTP_CLIENT_IP'];\n }\n //whether ip is from proxy\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];\n }\n //whether ip is from remote address\n else {\n $ip_address = $_SERVER['REMOTE_ADDR'];\n }\n return $ip_address;\n }", "function getIpAddress()\n {\n foreach ([\n 'HTTP_CLIENT_IP',\n 'HTTP_X_FORWARDED_FOR',\n 'HTTP_X_FORWARDED',\n 'HTTP_X_CLUSTER_CLIENT_IP',\n 'HTTP_FORWARDED_FOR',\n 'HTTP_FORWARDED',\n 'REMOTE_ADDR'\n ] as $key) {\n if (array_key_exists($key, $_SERVER) === true) {\n foreach (explode(',', $_SERVER[$key]) as $ip) {\n $ip = trim($ip);\n if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE) !== false) {\n return $ip;\n }\n }\n }\n }\n }", "public static function getIp() {\n\t\tforeach (array(\"HTTP_CLIENT_IP\", \"HTTP_X_FORWARDED_FOR\", \"HTTP_X_FORWARDED\", \"HTTP_X_CLUSTER_CLIENT_IP\", \"HTTP_FORWARDED_FOR\", \"HTTP_FORWARDED\", \"REMOTE_ADDR\") as $key) {\n\t\t\tif (!array_key_exists($key, $_SERVER)) \n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\tforeach (explode(\",\", $_SERVER[$key]) as $ip) {\n\t\t\t\t$ip = trim($ip);\n\t\t\t\t\n\t\t\t\tif (filter_var($ip, FILTER_VALIDATE_IP/*, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE*/) !== false)\n\t\t\t\t\treturn $ip;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "function getIP(){\n\t\tif(isset($_SERVER[\"HTTP_TRUE_CLIENT_IP\"]))\n\t\t\t$IP = $_SERVER[\"HTTP_TRUE_CLIENT_IP\"];\n\t\telseif(isset($_SERVER[\"HTTP_NS_REMOTE_ADDR\"]))\n\t\t\t$IP = $_SERVER[\"HTTP_NS_REMOTE_ADDR\"];\n\t\telse\n\t\t\t$IP = $_SERVER[\"REMOTE_ADDR\"];\n\n\t\t\t$IP = \"127.0.0.1\";\n\t\t\t// echo $IP;\n\t\treturn($IP);\n\t}", "static function getIp()\n {\n if (!isset(self::$_data[self::KEY_IP]))\n {\n $_ipAddress = $_SERVER[\"REMOTE_ADDR\"];\n if (isset($_REQUEST[\"ip\"]) && strlen($_REQUEST[\"ip\"]) > 0)\n {\n $_ipAddress = $_REQUEST[\"ip\"];\n }\n elseif (isset($_SERVER[\"HTTP_X_FORWARDED_FOR\"]) && strlen($_SERVER[\"HTTP_X_FORWARDED_FOR\"]) > 0)\n {\n $_ipAddress = $_SERVER[\"HTTP_X_FORWARDED_FOR\"];\n }\n self::setIp($_ipAddress);\n }\n\n return self::$_data[self::KEY_IP];\n }", "protected function ipAddress(): string\n {\n return $this->container->make('request')->ip();\n }", "function get_ip() {\n if ( function_exists( 'apache_request_headers' ) ) {\n $headers = apache_request_headers();\n } else {\n $headers = $_SERVER;\n }\n //Get the forwarded IP if it exists\n if ( array_key_exists( 'X-Forwarded-For', $headers ) && filter_var( $headers['X-Forwarded-For'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 ) ) {\n $the_ip = $headers['X-Forwarded-For'];\n } elseif ( array_key_exists( 'HTTP_X_FORWARDED_FOR', $headers ) && filter_var( $headers['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 )\n ) {\n $the_ip = $headers['HTTP_X_FORWARDED_FOR'];\n } else {\n\n $the_ip = filter_var( $_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 );\n }\n return $the_ip;\n }", "static function IP ()\n\t\t{\n\t\t\tif (php_sapi_name() === \"cli\")\n\t\t\t\treturn '127.0.0.1';\n\t\t\treturn isset ($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : NULL;\n\t\t}", "function visitor_ip() {\n\tif(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t$theip=$_SERVER['HTTP_X_FORWARDED_FOR']; \n\t} else {\n\t\t$theip=$_SERVER['REMOTE_ADDR']; \n\t}\n\n\treturn trim($theip); \n}", "function getIp() {\n\n $ip = $_SERVER['REMOTE_ADDR'];\n\n \n\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\n\n $ip = $_SERVER['HTTP_CLIENT_IP'];\n\n } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\n $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\n }\n\n \n\n return $ip;\n\n}", "function eventoni_get_visitor_ip()\n{\n\treturn $_SERVER['REMOTE_ADDR'];\n}" ]
[ "0.86321414", "0.8582391", "0.8482644", "0.8447435", "0.8418712", "0.84178275", "0.8393627", "0.8391803", "0.83907217", "0.838899", "0.83620805", "0.8359221", "0.8359221", "0.8359221", "0.8357898", "0.8311889", "0.8307047", "0.8303982", "0.82997686", "0.8288815", "0.8273734", "0.82698566", "0.8253225", "0.8250176", "0.82273674", "0.8187469", "0.8171409", "0.8161899", "0.81506115", "0.81418717", "0.8139286", "0.8122667", "0.8085453", "0.8077172", "0.8068369", "0.80562705", "0.8055171", "0.8026559", "0.80243593", "0.8023976", "0.80010605", "0.80003464", "0.79924333", "0.7991524", "0.79854465", "0.7980585", "0.79784393", "0.79745734", "0.79739124", "0.79712164", "0.7961385", "0.79541606", "0.79530454", "0.793848", "0.7936555", "0.7919276", "0.7910693", "0.78876597", "0.7881603", "0.7864425", "0.7856429", "0.7847415", "0.7846232", "0.7840813", "0.7840158", "0.7838096", "0.78378725", "0.7827418", "0.7821933", "0.7818488", "0.7801433", "0.7798538", "0.7796854", "0.77844954", "0.7774256", "0.7773434", "0.7760385", "0.7758684", "0.775522", "0.775396", "0.77530843", "0.7751666", "0.77514076", "0.77514076", "0.77499866", "0.77491605", "0.77380127", "0.7737066", "0.77362394", "0.773193", "0.77314633", "0.77313054", "0.7727203", "0.77128714", "0.7710896", "0.77099395", "0.7708832", "0.77049476", "0.7698533", "0.76968384" ]
0.77957845
73
creating hte shopping cart
function cart(){ if(isset($_GET['add_cart'])){ global $con; $ip = getIp(); $painting_id=$_GET['add_cart']; $check_painting = "select * from cart where ip_add='$ip' AND painting_id='$painting_id'"; $run_check = mysqli_query($con, $check_painting); if(mysqli_num_rows($run_check)>0) { echo ""; } else{ $insert_painting = "insert into cart(painting_id,ip_add) values ('$painting_id','$ip')"; $run_painting = mysqli_query($con,$insert_painting); echo "<script>window.open('index.php','_self')</script>"; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_cart()\n\t{\n\t\t#get products currently in cart\n\t\t$products = $this->get();\n\t\t\n\t\t$data = '';\n\t\t$form = '';\n\t\t$total = 0;\n\n\t\tif ($products != '')\n\t\t{\n\t\t\t#products to display\n\t\t\t$line = 1;\n\t\t\t$shipping = 0;\n\n\t\t\tforeach($products as $product)\n\t\t\t{\n\t\t\t\t$item_shipping = $this->get_shipping_cost($product['price']) * $_SESSION['cart'][$product['id']];\n\t\t\t\t$shipping += $item_shipping;\n\t\t\t\t\n\t\t\t\t$data .= '<li><b class=\"tab-head\">Product Name:</b>' . \"<b class='tab-detail'>\" . $product['name'] . '</b></li>';\n\t\t\t\t$data .= '<li><b class=\"tab-head\">Quantity:</b><b class=\"tab-detail\"><input name=\"product' . $product['id'] . '\" value=\"' . $_SESSION['cart'][$product['id']] .'\"></b></li>';\n\t\t\t\t$data .= '<li><b class=\"tab-head\">Product Price:</b><b class=\"tab-detail\">&#163;' . $product['price'] . '</b></li><br>';\n\n\t\t\t\t//Create paypal form fields\n\t\t\t\t$form .= '<input type=\"hidden\" name=\"item_name_' . $line . '\" value=\"' . $product['name'] . '\">';\n\t\t\t\t$form .= '<input type=\"hidden\" name=\"amount_' . $line . '\" value=\"' . number_format($product['price'], 2) . '\">';\n\t\t\t\t$form .= '<input type=\"hidden\" name=\"quantity_' . $line . '\" value=\"' . $_SESSION['cart'][$product['id']] . '\">';\n\t\t\t\t$form .= '<input type=\"hidden\" name=\"shipping_' . $line . '\" value=\"' . $item_shipping . '\">';\n\n\t\t\t\t$total += $product['price'] * $_SESSION['cart'][$product['id']];\n\t\t\t\t$line++;\n\t\t\t}\n\t\t\t#add subtotal row\n\t\t\t$data .= '<li><b class=\"tab-head\">Subtotal:</b><b class=\"tab-detail\">&#163;' . $total . '</b></li>';\n\n\t\t\t#add shipping row\n\t\t\t$data .= '<li><b class=\"tab-head\">Shipping cost:</b><b class=\"tab-detail\">&#163;' . number_format($shipping, 2) . '</b></li>';\n\n\t\t\t#add tax row\n\t\t\tif (SHOP_TAX > 0)\n\t\t\t{\n\t\t\t\t$data .= '<li><b class=\"tab-head\">VAT: (' .(SHOP_TAX * 100) . '%):</b><b class=\"tab-detail\">&#163;' . number_format(SHOP_TAX * $total, 2) . '</b></li>';\n\t\t\t}\n\n\t\t\t#add total row\n\t\t\t$data .= '<br><li><b class=\"tab-head\">Total:</b><b class=\"tab-detail\">&#163;' . number_format((SHOP_TAX * $total) + $total + $shipping, 2) . '</li></b>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t#no products to display\n\t\t\t$data .= '<li class=\"red\"><p class=\"text-warning\">There are no items are in your basket.</p></li>';\n\t\t\n\t\t\t#add subtotal row\n\t\t\t$data .= '<li><b class=\"tab-head\">Subtotal:</b><b class=\"tab-detail\">&#163;0.00</b></li>';\n\t\t\n\t\t\t#add shipping row\n\t\t\t$data .= '<li><b class=\"tab-head\">Shipping cost:</b><b class=\"tab-detail\">&#163;0.00</b></li>';\n\t\t\t\n\t\t\t#add tax row\n\t\t\tif (SHOP_TAX > 0)\n\t\t\t{\n\t\t\t\t$data .= '<li><b class=\"tab-head\">VAT: (' .(SHOP_TAX * 100) . '%):</b><b class=\"tab-detail\">&#163;0.00</b></li>';\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t#add total row\n\t\t\t$data .= '<br><li><b class=\"tab-head\">Total:</b><b class=\"tab-detail\">&#163;0.00</b></li>';\n\t\t}\n\t\t//set PayPal tax rate \n\t\t$form .= '<input type=\"hidden\" name=\"tax_cart\" value=\"' . number_format(SHOP_TAX * $total, 2).'\">';\n\t\treturn array($data, $form);\n\t}", "public function create_cart()\n {\n // get products currently in cart\n\n $products = $this->get();\n\n $shipping = $this->get_shipping_cost();\n $data = '';\n $subtotal = 0;\n\n $data .= '<li class=\"header_row\"><div class=\"col1\">Product Name:</div>\n <div class=\"col2\">Quantity:</div><div class=\"col3\">Product Price:</div>\n <div class=col4>Total:</div></li>';\n\n if ($products != '') {\n //products to display\n\n $line = 1;\n foreach ($products as $product) {\n // create new item in cart\n $data .= '<li';\n if ($line % 2 == 0) {\n $data .= 'class=\"alt\"';\n }\n // displaying cart items(name, price,count)\n $data .= '><div class=\"col1\"><a href=\"' . SITE_PATH . 'product.php?id=' . $product['id'] . '\" >' . $product['name'] . '</a></div>';\n $data .= '<div class=\"col2\"><input name=\"product' . $product['id'] . '\" value=\"' . $_SESSION['cart'][$product['id']] . '\"></div>';\n $data .= '<div class=\"col3\">$' .number_format((float)($product['price']), 2, '.', '') . '</div>';\n $data .= '<div class=\"col4\">$' . $product['price'] * $_SESSION['cart'][$product['id']] . '</div></li>';\n\n // calculating subtotal\n $subtotal += $product['price'] * $_SESSION['cart'][$product['id']];\n\n $line++;\n }\n\n // add subtotal row\n $data .= '<li class=\"subtotal_row\"><div class=\"col1\">Subtotal</div>\n <div class=\"col2\">$' . number_format((float)($subtotal), 2, '.', '') . '</div></li>';\n\n // Tax row\n $data .= '<li class= \"taxes_row\"><div class=\"col1\">Tax (%' . (TAX * 100) . ' )</div>\n <div class=\"col2\">$' . number_format((float)(TAX * $subtotal), 2, '.', '') . '</div></li>';\n\n // Shipping row\n $data .= '<li class= \"shipping_row\"><div class=\"col1\">Total Shipping Cost</div>\n <div class=\"col2\">$' . number_format((float)($shipping), 2, '.', '') . '</div></li>';\n\n\n // add total row\n $data .= '<li class=\"total_row\"><div class=\"col1\">Total</div>\n <div class=\"col2\">$' . number_format((float)((TAX * $subtotal) + $subtotal) + $shipping, 2, '.', '') . '</div></li>';\n \n } else {\n // no products to display\n $data .= '<li><strong>No items in the Cart!</strong></li>';\n\n // add subtotal row\n $data .= '<li class=\"subtotal_row\"><div class=\"col1\">Subtotal</div>\n <div class=\"col2\">$0.00</div></li>';\n\n // Tax row\n $data .= '<li class= \"taxes_row\"><div class=\"col1\">Tax (%' . (TAX * 100) . ' )</div>\n <div class=\"col2\">$0.00</div></li>';\n\n // Shipping row\n $data .= '<li class= \"shipping_row\"><div class=\"col1\">Total Shipping Cost</div>\n <div class=\"col2\">$0.00</div></li>';\n\n // add total row\n $data .= '<li class=\"total_row\"><div class=\"col1\">Total</div>\n <div class=\"col2\">$0.00</div></li>';\n }\n\n\n return $data;\n }", "private function addToCart () {\n }", "private function addToCart () {\n }", "public function cartAction()\r\n\t{\r\n\t\t$this->_view->_title = 'Giỏ hàng';\r\n\t\t$this->_view->motoInCart = $this->_model->listItem($this->_arrParam, ['task' => 'motos_in_cart']);\r\n\t\t$this->_view->render($this->_arrParam['controller'] . '/cart');\r\n\t}", "public function addToCart() {\n\t\t$baseQuantity = 1;\n\t\t$result = $this->db->select();\n\t\twhile(($row = mysql_fetch_assoc($result)) != FALSE){\n\t\t\t$_SESSION['cart'][] = array($row['id'], $row['name'], $row['description'], $row['cost'], $baseQuantity);\n\t\t}\n\t}", "public function createCart() {\n if (!is_array($this->cart)) {\n $this->cart = array();\n $this->updateSession();\n }\n }", "public function tempCart()\n\t{\n\t\t$cart_id = $_SESSION['wpcart_cart_id'];\n\n\t\t//$checkout_page = 'wpcart';\n\n\t\tswitch ($checkout_page) {\n\t\t\tcase 'wpcart':\n\t\t\t\t\n\t\t\t\t\t$action = site_url() . '?checkout';\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'paypal':\n\n\t\t\t\t\t$action = 'https://www.sandbox.paypal.com/cgi-bin/webscr';\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t\t$action = '';//site_url() . '?checkout''';\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$template = '<script type=\"text/template\" id=\"wpcart-ajax-template\" >\n\n\t\t<!-- PayPal details -->\n\t\t<input type=\"hidden\" value=\"<%= product.name %>\" name=\"item_name_1\" />\n\t\t<input type=\"hidden\" value=\"<%= product.price %>\" name=\"amount_16\" />\n\t <input type=\"hidden\" name=\"quantity_1\" value=\"<%= quantity %>\">\n\n\t\t<!-- End of PayPal details -->\n\n\t\t<strong><%= product.name %></strong> \n\t\t(<span style=\"width: 45px;\" class=\"wpcart-item-quantity\" ><%= quantity %></span> item<%= (quantity > 1) ? \"s\" : \"\" %> ) \n\t\t<span style=\"color: #cc0000;\" ><span>$</span><span class=\"item-subtotal\" ><%= product.price * quantity %></span> \n\t\t<span class=\"wpcart-remove-item\" >[&times;] </span>\n\n\t\t</script>';\n\n\t\t$notify_url = admin_url() . 'admin-ajax.php?action=wpcart_ipn';\n\t\t$cart = $template;\n\n\t\t$cart .= '<div id=\"wpcart-cart\" class=\"wpcart-basket\" >\n\n\t\t<form method=\"post\" action=\"'. $action . '\" >\n\t <input type=\"hidden\" name=\"business\" value=\"payhere@actionphp.com\"/>\n\t <input type=\"hidden\" name=\"notify_url\" value=\"' . $notify_url\n\t . '\"/>\n\t\t<input type=\"hidden\" name=\"cmd\" value=\"_cart\"/>\n\t\t<input type=\"hidden\" name=\"upload\" value=\"1\"/>\n\t <input type=\"hidden\" name=\"custom\"\tvalue=\"' . $cart_id . '\" />\n\n\t\t\t<ul id=\"wpcart-cart-basket\"></ul>\n\t\t\t\n\t\t\t<div style=\"padding: 10px;\" ><strong>Subtotal: </strong>$<span class=\"wpcart-subtotal\" ></span></div>\n\t\t\t<div id=\"wpcart-buttons\" >\n\t\t\t<input type=\"hidden\" name=\"wpcart_checkout\" value=\"true\" />\n\t\t\t<input type=\"submit\" value=\"Checkout\" />\n\t\t\t</div>\n\n\t\t</form>\n\t\t\n\t\t</div>';\n\n\t\treturn $cart;\n\t}", "function addToCart() {\n\t\t$wine_name = $_SESSION['wine']['name'];\n\t\t//check if there is a registered user logged in\n\t\t// --> LET US NOT THINK ABOUT USERNAMES FOR NOW <--\n\t\t//if (!isset($_SESSION['user'])) {\n\t\t\t//generate a random username (string) for\n\t\t\t//unlogged user\n\t\t\t//$username = uniqid('',true);\n\t\t\t//$_SESSION['user']['username'] = $username;\n\t\t//}\n\n\t\t//get the cart\n\t\t$cart = $_SESSION['cart'];\n\t\t//get wine count\n\t\t$wine_qty = $_POST['wine_quantity'];\n\t\t// detect if the same item already exist in the cart\n\t\tif (isset($_SESSION['cart'][$wine_name])) {\n\t\t\t//just add the post quantity to the quantity in the cart\n\t\t\t$_SESSION['cart'][$wine_name] += $wine_qty;\n\t\t}\n\t\telse {\n\t\t\t//create an array of the selected item to be\n\t\t\t//added to the cart\n\t\t\t$_SESSION['cart'][$wine_name] = intval($wine_qty);\n\t\t\t//current date will also be used at view cart\n\t\t\t//\"purchase_date\" => date(\"Y-m-d h:i:sa\")\n\t\t}\n\t\t//redirect to homepage\n\t\theader('Location: index.php');\n\t}", "function addToCart(){\n\t\tif(!isset($_POST['id'])) header(sprintf(\"Location: %s\", $this->Files['Cart']));\n\t\t// ---------- These are our posted variables --------------\t\t\n\t\t$TmpCart=array();\n\t\t$TmpCart['type'] \t= 1;\n\t\t$TmpCart['name'] \t= clean_variable($_POST['name'],true);\n\t\t$TmpCart['id']\t \t= clean_variable($_POST['id'],true);\n\t\t$TmpCart['qty'] \t= (is_int($_POST['qty']) && isset($_POST['qty']))?clean_variable($_POST['qty'],true):'1';\n\t\t$TmpCart['price'] = clean_variable($_POST['price'],true);\n\t\t\n\t\t// Process Products Specs and Attributes\n\t\t$SPC = \t\t\t(isset($_POST['spec'])) ? \n\t\t\t\t\t\t\t\t\t((!is_array($_POST['spec'])) ? array( $_POST['spec'] ) : $_POST['spec']):\n\t\t\t\t\t\t\t\tarray();\n\t\tif(is_array($SPC)) foreach($SPC as &$v) clean_variable($v,true);\n\t\t\n\t\t$TmpStrg = '';\n\t\tif(count($SPC) > 0){ /* // Check the Specs of the product and get the price for that spec. If differant use that price\n\t\t\tforeach($SPC as $k => $v){ \n\t\t\t\t$getSpecs = new sql_processor($this->DB,$this->Conn,$this->Gateway);\n\t\t\t\t$getSpecs->mysql(\"SELECT `att_price`, `att_sale`, `att_sale_exp` FROM `prod_link_prod_att` WHERE `att_id` = '$v' AND `prod_id` = '\".$TmpCart['id'].\"';\");\n\t\t\t\t$getSpecs->mssql(\"SELECT att_price, att_sale, att_sale_exp FROM prod_link_prod_att WHERE att_id = '$v' AND prod_id = '\".$TmpCart['id'].\"';\");\n\t\t\t\t$getSpecs = $getSpecs->Rows();\n\t\t\t\tif($getSpecs[0]['att_price'] > 0){\n\t\t\t\t\t$attSaleExp = ereg('[^A-Za-z0-9]', $getSpecs[0]['att_sale_exp']);\n\t\t\t\t\tif($attSaleExp == \"00000000000000\") $attprices += $getSpecs[0]['att_price'];\n\t\t\t\t\telse if ($attSaleExp > date(\"YmdHis\")) $attprices += $getSpecs[0]['att_sale'];\n\t\t\t\t\telse $attprices += $getSpecs[0]['att_price'];\n\t\t\t\t} else { $attprices = 0; }\n\t\t\t\t$TmpStrg .= ($TmpStrg == \"\") ? ($v.\".\".$attprices) : (\":\".$v.\".\".$attprices);\n\t\t\t} */\n\t\t}\n\t\t$TmpCart['spec'] = $TmpStrg;\n\t\t\n\t\t// Process Products Special Options\n\t\t$SPCL = \t\t(isset($_POST['special'])) ?\n\t\t\t\t\t\t\t\t\t((!is_array($_POST['special'])) ? array( $_POST['special'] ) : $_POST['special']):\n\t\t\t\t\t\t\t\tarray();\n\t\tif(is_array($SPCL)) foreach($SPCL as &$v) clean_variable($v,true);\n\t\t$TmpCart['special'] = (is_array($SPCL) && count($SPCL) > 0) ? implode(\":\",$SPCL) : $SPCL;\n\t\t\n\t\t\n\t\t$SLCT = \t\t(isset($_POST['selections'])) ?\n\t\t\t\t\t\t\t\t\t((!is_array($_POST['selections'])) ? array( $_POST['selections'] ) : $_POST['selections']):\n\t\t\t\t\t\t\t\tarray();\n\t\tif(is_array($SLCT)) foreach($SLCT as &$v) clean_variable($v,true);\n\t\t$TmpCart['selections'] = (is_array($SLCT) && count($SLCT) > 0) ? implode(\":\",$SLCT) : $SLCT;\n\t\t\n\t\t// Process Products Messages and Comments, mainly used for gift cards\n\t\t$MSG = \t\t\t(isset($_POST['message'])) \t\t\t? clean_variable($_POST['message'],true):'';\n\t\t$MSGTo = \t\t(isset($_POST['message_to'])) \t? clean_variable($_POST['message_to'],true):'';\n\t\t$MSGFrm = \t(isset($_POST['message_from'])) ? clean_variable($_POST['message_from'],true):'';\n\t\t\n\t\t$MSGEng = \t(isset($_POST['message']))?\n\t\t\t\t\t\t\t\t\t((!is_array($_POST['engraving']))? array( $_POST['engraving'] ) : $_POST['engraving'] ):\n\t\t\t\t\t\t\t\t'';\n\t\tif(is_array($MSGEng)) foreach($MSGEng as &$v) clean_variable($v,true);\n\t\t/*\n\t\t$getMsgs = new sql_processor($this->DB,$this->Conn,$this->Gateway);\n\t\t$getMsgs->mysql(\"SELECT `prod_msg_type` FROM `prod_products` WHERE `prod_id` = '\".$TmpCart['id'].\"';\");\n\t\t$getMsgs->mssql(\"SELECT prod_msg_type FROM prod_products WHERE prod_id = '\".$TmpCart['id'].\"';\");\n\t\t$getMsgs = $getMsgs->Rows();\n\t\t$Msgs = $getMsgs[0]['prod_msg_type'];\n\t\t*/\n\t\t$Msgs='';\n\t\tif(strlen(trim($Msgs)) > 0) $Msgs = unserialize(urldecode($Msgs));\n\t\telse $Msgs = array(); $Tarray = array();\n\t\tif(count($Msgs) > 0){\n\t\t\tforeach($Msgs as $k => $v){\n\t\t\t\tswitch($k){\n\t\t\t\t\tcase \"Cmnts\": if(strlen(trim($MSG)) > 0) $Tarray['Cmnts'][0] = $MSG; break; // Straight Comment for the Product\n\t\t\t\t\tcase \"ToFrm\":\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// To From comments for Gift Cards Ect.\n\t\t\t\t\t\tif(strlen(trim($MSGTo)) > 0){\n\t\t\t\t\t\t\t$Tarray['ToFrm'][0] = $MSGTo;\n\t\t\t\t\t\t\t$Tarray['ToFrm'][1] = $MSGFrm;\n\t\t\t\t\t\t} break;\n\t\t\t\t\tcase \"Engv\":\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Engravings for the product allows for multiple lines\n\t\t\t\t\t\tif(intval($v)>1){ if(strlen(trim($MSGEng)) > 0) $Tarray['Engv'][0] = $MSGEng;\n\t\t\t\t\t\t} else { $n=0; foreach($MSGEng as $v){\n\t\t\t\t\t\t\t\tif(strlen(trim($v)) > 0) $Tarray['Engv'][$n] = $v; $n++;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t} break;\n\t\t\t\t}\n\t\t\t} $TmpCart['msgs'] = $Tarray;\n\t\t} else { $TmpCart['msgs'] = 0; }\n\t\t\n\t\t$TmpCart['attnd']\t= \t(isset($_POST['attendee']))? array(clean_variable($_POST['attendee'],true)) : array(0);\n\t\t\n\t\t$this->updateCart($TmpCart); // Update our cart with our new information\n\t\t\n\t\theader(sprintf(\"Location: %s\", $this->Files['Cart'] )); // Go to page to dispaly Cart -- Do this to prevent double insertion of product via refresh button\n\t}", "public function add_order()\n {\n if (isset($_SESSION['cart'])) {\n $total_cost = 0;\n $quantity = 0;\n $quaty = \"\";\n foreach ($_SESSION['cart'] as $id => $quaty) {\n $product = Data::find_by_id($id);\n $cost = $product->price * $quaty; // $quaty is quantity.\n $quantity += $quaty;\n $total_cost = $total_cost + $cost;\n }\n if ($quaty > 0) {\n echo \"<p class='text-light pl-2 pr-2 pb-0 m-0'> $quantity </p>\";\n }\n } else {\n echo \"<p class='text-light pl-2 pr-2 pb-0 m-0'> Empty</p>\";\n }\n }", "public function cart(): void\n {\n $userData = $this->getSession()->getCurrentUserData();\n\n if ($userData->getCart() && $userData->getCart()->hasProducts())\n {\n echo $this->render('cart/shoppingCart', $userData->getRenderCartParams());\n }\n }", "public function getCart();", "public function view_cart()\n {\n $this->layout = 'cart';\n $cart = $this->Session->read('cart'); //doc session va gui session len tren view\n $payment = $this->Session->read('payment');\n $this->set(compact('cart','payment')); //gửi nhiều biến cùng 1 lúc lên view\n $this->set('title_for_layout', 'Giỏ hàng - ChickenRainShop');\n\n }", "public function getCartHTML() {\n\t\t$productLines = $this->cart->getProductLines();\n\t\t$sum = $this->cart->getSumSEK();\n\t\t$html = \"<ul>\";\n\n\t\t\n\n\t\tforeach ($productLines as $productLine) {\n\t\t\t$product = $productLine->getProduct();\n\t\t\t$name = $product->getName();\n\t\t\t$costSEK = $product->getCostSEK();\n\t\t\t$amount = $productLine->getAmount();\n\t\t\t$totalSEK = $productLine->getTotalSEK();\n\n\t\t\t\n\t\t\t$linkHTML = $this->productListView->getBuyProductLink($product, \"+\");\n\t\t\t$removeLink = $this->productListView->getRemoveProductLink($product, \"-\");\n\t\t\t$buttons = \"[$linkHTML][$removeLink]\";\n\t\t\t\n\t\t\t$html .= \"<li>$name $amount x $costSEK = $totalSEK SEK $buttons</li>\";\n\n\t\t}\n\t\t$html .= \"</ul>\";\n\t\t\n\n\t\tif (isset($_SESSION[self::$messageHolder])) {\n\t\t\tif ($_SESSION[self::$messageHolder] == self::$addProductSucceded) {\n\t\t\t\t$html .= \"Grattis till ditt köp, kommer göra dig gott!</br>\";\t\n\t\t\t} else {\n\t\t\t\t$html .= \"Du tog bort en produkt! </br>\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tunset($_SESSION[self::$messageHolder]);\n\t\t}\n\n\n\t\tif ($this->cart->containsItems()) {\n\t\t\t$checkout = $this->navigationView->getCheckoutLink();\n\t\t\t\n\t\t} else {\n\t\t\t$checkout = \"Inga produkter i varukorgen\";\n\t\t}\n\t\treturn \"<h2>Cart</h2> $html Summa : $sum kr $checkout\";\n\t}", "public function actionCartPayment()\n\t{ \n\t # - Get Visitor Cart Items for Listing\n\t\t$model = new Store;\t\n \t $cartItem = $model->getAllCartItem();\n \t\t\n\t\t# Create invoice for the subscriptions\n\t\t$invoiceModel = new Invoices;\n\t\t$invoice_id = $invoiceModel->createInvoiceByCart( $cartItem );\n\t\t \n \t\t# Create Subscription for each Item and create relation with the invoice\n\t\t$subModel\t = new Subscriptions;\n\t\t$subs = $subModel->createSubscriptionByCart( $invoice_id, $cartItem );\n\t\t\n\t\t$_SESSION['invoice_id'] = $invoice_id;\n \t\t$this->render(\"cartPayment\", array(\"cartItems\"=>$cartItem));\n\t}", "public function showCart()\n\t{\n\t\t $session_name = \"c_product\";\n\n\t\t// if (!isset($_SESSION[\"$session_name\"]) || !in_array($p, $_SESSION[\"$session_name\"]))\n\t\t// {\n\t\t// \t$_SESSION[\"$session_name\"][] = $p;\t\t\n\t\t// }\n\t\t$total = 0;\n\t\tforeach ($_SESSION[\"$session_name\"] as $id)\n\t\t{\n\t\t\t$total += $this->showProductInCart($id);\n\t\t}\n\t\t$total = number_format($total);\n\t\t$totalprice = <<<DELIMITER\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-3\">\n\t\t\t\t\t<h4> TOTAL PRICE: </h4>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-6\" style=\"text-align:right\">\n\t\t\t\t\t<h3 style= \"color:red\">{$total}₫</h3>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<hr>\n\t\tDELIMITER;\n\t\techo $totalprice;\n\t}", "public function addCart()\n\t{\t\n\t\t$id \t\t\t= isset($_POST['id'])\t\t? abs((int)$_POST['id']) : 0;\n\t\t$filter_item_id\t= isset($_POST['size'])\t\t? abs((int)$_POST['size']) : 0;\n\t\t$type \t\t\t= isset($_POST['type'])\t\t? abs((int)$_POST['type']) : 0;\n\t\t$quantity \t\t= isset($_POST['quantity'])\t? abs((int)$_POST['quantity']) : 1;\n\t\n\t\t$quantity = $quantity <= 0 ? 1 : $quantity;\n\t\t\n\t\t# есть ли такой товар\n\t\t$product = $this->productModel->getProduct($id);\n\n\t\tif ( ! $product){return 1;}\n\n\t\t# аня попросила внести категорию в заказ\n\t\t$product->parent = $this->categoryModel->getCategory($product->parent);\n\t\t\n\t\t# если есть цена-размер\n\t\tif ($product->prices){\n\t\t\t# если неверный размер(кто-то балуется)\n\t\t\tif ( ! isset($product->prices[$filter_item_id])) return;\n\t\t\t\n\t\t\tif ($type == 0){\n\t\t\t\t$price = $product->prices[$filter_item_id]->roz;\n\t\t\t}elseif($type == 1){\n\t\t\t\t$price = $product->prices[$filter_item_id]->opt;\n\t\t\t}else{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}else{\n\t\t\t$price = $product->price;\n\t\t}\n\t\t\n\t\t# если цена равна нулю - выходим\n\t\tif ( ! $price) return;\n\t\t\n\t\t# опции\n\t\t$options = array(\n\t\t\t'type'=>$type,\n\t\t\t'size'=>$filter_item_id \n\t\t);\n\n\t\t$data = array(\n\t\t\t'id'\t\t\t\t=> $product->id,\n\t\t\t'qty'\t\t\t\t=> $quantity,\n\t\t\t'price'\t\t\t\t=> $price,\n\t\t\t'options'\t\t\t=> $options,\n\t\t\t\n\t\t\t'discount'\t\t\t=> $product->discount*1 ? $product->discount : (isset($product->prices[$filter_item_id]) ? $product->prices[$filter_item_id]->discount : 0),\n\t\t\t'prices'\t\t\t=> isset($product->prices[$filter_item_id]) ? (array)$product->prices[$filter_item_id] : '',\n\t\t\t\n\t\t\t'parent'\t\t\t=> $product->parent,\n\t\t\t'manufacturer'\t\t=> isset($product->manufacturer->name) ? $product->manufacturer->name : '&mdash;',\n\t\t\t'manufacturer_id'\t=> $product->manufacturer_id,\n\t\t\t'name'\t\t\t\t=> $product->name,\n\t\t\t'image'\t\t\t\t=> $product->image,\n\t\t\t'url'\t\t\t\t=> $product->url,\n\t\t\t'_url'\t\t\t\t=> $product->_url\n\t\t);\n\t\t\n\t\t$this->cart->insert($data);\n\t}", "public function addCart(){\r\n $inData = $this -> addValidation($_GET); \r\n if(isset($inData['error'])){\r\n $_SESSION['error'] = $inData['error']; \r\n header(\"location:\". URL);\r\n return;\r\n }\r\n if(isset($_SESSION['cart'])){\r\n foreach($inData as $element){\r\n if(key_exists($element['name'].$element['size'],$_SESSION['cart'])){\r\n $_SESSION['cart'][$element['name'].$element['size']]['quantity'] += $element['quantity'];\r\n }\r\n else\r\n $_SESSION['cart'][$element['name'].$element['size']] = $element;\r\n } \r\n }\r\n else{\r\n $_SESSION['cart'] = array();\r\n foreach($inData as $element){\r\n if(key_exists($element['name'].$element['size'],$_SESSION['cart'])){\r\n $_SESSION['cart'][$element['name'].$element['size']]['quantity'] += $element['quantity'];\r\n foreach($inData as $element)\r\n $_SESSION['cart'][$element['name']]= $element;\r\n }\r\n else\r\n $_SESSION['cart'][$element['name'].$element['size']] = $element;\r\n } \r\n }\r\n render('cart',$_SESSION['cart']);\r\n }", "public function addToCart() : void\n {\n $this->VIEW = false;\n $this->Cart->addToCart($_SESSION['Auth']->id, $_POST);\n }", "public function getCartHtml()\n\t{\n\t\t$cart = $this->cart->contents();\n\t\t$cart['cnt_items'] = count($cart['products']);\n\t\t\n\t\t$user = $this->data['user'];\n\t\t\n\t\t$total = 0;\n\t\t\n\t\t$html = '';\n\t\tif ( ! count($cart['products'])){\n\t\t\t$html .= '\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-3\"></div>\n\t\t\t\t<div class=\"col-3 center\">\n\t\t\t\t\t<h2 class=\"center\">Ваша корзина пуста.</h2>\n\t\t\t\t\t<a class=\"btn btn-white\" href=\"/\">&larr; продолжить покупки</a>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-3\"></div>\n\t\t\t</div>';\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\t$html .= '\n\t\t\t<ul class=\"cart-list\" data-cart=\"items\">';\n\t\t\tforeach (array_reverse($cart['products']) as $k=>$i){\n\t\t\t\t$html .= '\n\t\t\t\t<li data-cart-item=\"\">\n\t\t\t\t\t<div class=\"ci-box\">\n\t\t\t\t\t\t<div class=\"pp-block-image\">\n\t\t\t\t\t\t\t<a href=\"'. htmlspecialchars($i['_url']) .'\">\n\t\t\t\t\t\t\t\t<img src=\"'.htmlspecialchars($i['image']) .'\" alt=\"'.htmlspecialchars($i['name']).'\">\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"pp-block-price\">\n\t\t\t\t\t\t\t<div class=\"gd gd-name\"><a class=\"c-pink\" href=\"'. htmlspecialchars($i['_url']) .'\">'. $i['name'] .'</a></div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class=\"gd gd-manufacturer\">Производитель: '. (isset($i['manufacturer']) ? $i['manufacturer'] : '&mdash;') .'</div>';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ($i['prices']){\n\t\t\t\t\t\t\t$cnt_opt = isset($i['prices']['cnt_opt']) ? $i['prices']['cnt_opt'] : '';\n\t\t\t\t\t\t\t$cnt_roz = isset($i['prices']['cnt_roz']) ? $i['prices']['cnt_roz'] : '';\n\t\t\t\t\t\t\t$html .= '\n\t\t\t\t\t\t\t<div class=\"gd gd-size\">Размер: '. $i['prices']['name'] .' ('. $i['prices']['prefix'] .')</div>\n\t\t\t\t\t\t\t<div class=\"gd gd-packing\">Упаковка: '. ($i['options']['type'] ? 'опт - '.($cnt_opt) : 'розница - '.($cnt_roz)) .' шт.</div>';\t\t\n\t\t\t\t\t\t\tunset($cnt_opt);\n\t\t\t\t\t\t\tunset($cnt_roz);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$html .= '\n\t\t\t\t\t\t\t<div class=\"gd gd-price\">\n\t\t\t\t\t\t\t\tЦена:';\n\t\t\t\t\t\t\t\tif ($i['discount']*1){\n\t\t\t\t\t\t\t\t$html .= '\n\t\t\t\t\t\t\t\t<span class=\"gd-new-price\">'. number_format(($i['price']-($i['price']*$i['discount']/100)), 2, ',', \"'\") .' грн.</span>';\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$html .= '\n\t\t\t\t\t\t\t\t<span class=\"gd-new-price\">'. number_format($i['price'], 2, ',', \"'\") .' грн.</span>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$html .= '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class=\"gd gd-qty\">Количество: <b>&times;</b> '. $i['qty'] .'</div>\n\n\t\t\t\t\t\t\t<div class=\"gd gd-subtotal\">\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# скидка User\n\t\t\t\t\t\t\t\t$discount = isset($user->discount) ? $user->discount*1 : 0;\n\t\t\t\t\t\t\t\t# если нет цена + размер\n\t\t\t\t\t\t\t\tif ( ! $i['prices']){\n\t\t\t\t\t\t\t\t\t# если USER скидка больше чем скидка на товар\n\t\t\t\t\t\t\t\t\tif ($discount > $i['discount']*1){\n\t\t\t\t\t\t\t\t\t\t$summa = $i['qty'] * $i['price'];\n\t\t\t\t\t\t\t\t\t\t$html .= number_format($summa, 2, ',', \"'\").' грн.';\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t$summa = $i['qty'] * ($i['price'] - round($i['price'] * $i['discount']/ 100, 2));\n\t\t\t\t\t\t\t\t\t\t$html .= number_format($summa, 2, ',', \"'\").' грн.';\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\t# если USER скидка больше чем скидка на товар\n\t\t\t\t\t\t\t\t\tif ($discount > $i['discount']){\n\t\t\t\t\t\t\t\t\t\tif ($i['options']['type'] == 0){\n\t\t\t\t\t\t\t\t\t\t\t$roz = isset($i['prices']['roz']) ? $i['prices']['roz'] : 0;\n\t\t\t\t\t\t\t\t\t\t\t$summa = round($i['qty'] * $roz, 2);\n\t\t\t\t\t\t\t\t\t\t\t$html .= number_format($summa, 2, ',', \"'\").' грн.';\n\t\t\t\t\t\t\t\t\t\t\tunset($roz);\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t$opt = isset($i['prices']['opt']) ? $i['prices']['opt'] : 0;\n\t\t\t\t\t\t\t\t\t\t\t$summa = round($i['qty'] * $opt, 2);\n\t\t\t\t\t\t\t\t\t\t\t$html .= number_format($summa, 2, ',', \"'\").' грн.';\n\t\t\t\t\t\t\t\t\t\t\tunset($opt);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tif ($i['options']['type'] == 0){\n\t\t\t\t\t\t\t\t\t\t\t$roz = isset($i['prices']['roz']) ? $i['prices']['roz'] : 0;\n\t\t\t\t\t\t\t\t\t\t\t$summa = $i['qty'] * ($roz - round($roz * $i['discount']/ 100, 2));\n\t\t\t\t\t\t\t\t\t\t\t$html .= number_format($summa, 2, ',', \"'\").' грн.';\n\t\t\t\t\t\t\t\t\t\t\tunset($roz);\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t$opt = isset($i['prices']['opt']) ? $i['prices']['opt'] : 0;\n\t\t\t\t\t\t\t\t\t\t\t$summa = $i['qty'] * ($opt - round($opt * $i['discount']/ 100, 2));\n\t\t\t\t\t\t\t\t\t\t\t$html .= number_format($summa, 2, ',', \"'\").' грн.';\n\t\t\t\t\t\t\t\t\t\t\tunset($opt);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$html .= '\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class=\"gd-counted\">\n\t\t\t\t\t\t\t\t<div class=\"quant\">\n\t\t\t\t\t\t\t\t\t<button data-quantity-button=\"minus\" class=\"quant-button minus\"><span>−</span></button>\n\t\t\t\t\t\t\t\t\t<input class=\"quant-box\" type=\"text\" name=\"quantity['. $k .']\" value=\"'. $i['qty'] .'\" data-quantity=\"box\" autocomplete=\"off\">\n\t\t\t\t\t\t\t\t\t<button data-quantity-button=\"plus\" class=\"quant-button plus\"><span>+</span></button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class=\"gd-counted\" data-btn=\"update\" style=\"display:none;\">\n\t\t\t\t\t\t\t\t<button class=\"btn btn-pink\" type=\"submit\">Пересчитать</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t<a class=\"gd gd-delete uppercase\" data-cart-delete=\"'. $k .'\" href=\"/cart?del='. $k .'\">Удалить</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>';\n\t\t\t\t\n\t\t\t\t$total += $summa; \n\t\t\t}\n\t\t\t\t$html .= '\n\t\t\t\t<li>\n\t\t\t\t\t<div class=\"gd-total\">\n\t\t\t\t\t\t<div class=\"gd-label\">\n\t\t\t\t\t\t\t<div class=\"gd-label-name\">Всего:</div>\n\t\t\t\t\t\t\t<div class=\"gd-label-box\" data-cart=\"subtotal\">'. number_format($total, 2, ',', \"'\") .' грн.</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"gd-label\">\n\t\t\t\t\t\t\t<div class=\"gd-label-name\">Ваша скидка:</div>\n\t\t\t\t\t\t\t<div class=\"gd-label-box\" data-cart=\"discount\">'. $discount .' %</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"gd-label\">\n\t\t\t\t\t\t\t<div class=\"gd-label-name\">Итого:</div>\n\t\t\t\t\t\t\t<div class=\"gd-label-box\" data-cart=\"total\">';\n\t\t\t\t\t\t\tif ($discount){\n\t\t\t\t\t\t\t\t$total = 0;\n\t\t\t\t\t\t\t\tforeach ($cart['products'] as $k){\n\t\t\t\t\t\t\t\t\t# какая скидка больше\n\t\t\t\t\t\t\t\t\t$_discount = $discount > $k['discount']*1 ? $discount : $k['discount']*1;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t# если нет цена + размер\n\t\t\t\t\t\t\t\t\tif ( ! $k['prices']){ \n\t\t\t\t\t\t\t\t\t\t$total += $k['qty'] * ($k['price'] - round($k['price'] * $_discount/ 100, 2));\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tif ($k['options']['type'] == 0){\n\t\t\t\t\t\t\t\t\t\t\t$roz = isset($k['prices']['roz']) ? $k['prices']['roz'] : 0;\n\t\t\t\t\t\t\t\t\t\t\t$total += round($k['qty'] * ($roz - $roz * $_discount / 100), 2);\n\t\t\t\t\t\t\t\t\t\t\tunset($roz);\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t$opt = isset($k['prices']['opt']) ? $k['prices']['opt'] : 0;\n\t\t\t\t\t\t\t\t\t\t\t$total += round($k['qty'] * ($opt - $opt * $_discount / 100), 2);\n\t\t\t\t\t\t\t\t\t\t\tunset($opt);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$html .= number_format($total, 2, ',', \"'\").' грн.';\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$html .= number_format($total, 2, ',', \"'\").' грн.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$html .= '\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>';\t\n\t\t}\n\t\t\n\t\t# убираем пробелы (сжимаем)\n\t\t$cart['html'] = preg_replace('/\\s+/', ' ', $html);\n\t\t\n\t\t$cart['cart_total'] = number_format($total, 2, ',', \"'\");\n\t\t\n\t\t# Для корзины в подвале\n\t\t$bott = '';\n\t\tif ( ! count($cart['products'])){\n\t\t\t$bott .= '\n\t\t\t<div class=\"cbt-content\">\n\t\t\t\t<div class=\"cbt-empty\">Ваша корзина пуста</div>\n\t\t\t</div>';\n\t\t}else{\n\t\t\t$bott .= '\n\t\t\t<div class=\"cbt-content\">\n\t\t\t\t<div class=\"cbt-content-left\">\n\t\t\t\t\t<div class=\"owl-carousel\" data-cart-bt=\"owlCarusel\">';\n\t\t\t\t\tforeach (array_reverse($cart['products']) as $k=>$v){\n\t\t\t\t\t\t$bott .= '<div class=\"item\">\n\t\t\t\t\t\t\t<div class=\"cbt-item\">\n\t\t\t\t\t\t\t\t<div class=\"cbt-item-right\">\n\t\t\t\t\t\t\t\t\t<div class=\"gd gd-name\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"'.htmlspecialchars($v['_url']).'\">'.$v['name'].'</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"gd gd-manufacturer\">Производитель: '.(isset($v['manufacturer']) ? $v['manufacturer'] : '&mdash;').'</div>';\n\t\t\t\t\t\t\t\t\tif ($v['prices']){\n\t\t\t\t\t\t\t\t\t$cnt_roz = isset($v['prices']['cnt_roz']) ? $v['prices']['cnt_roz'] : '';\n\t\t\t\t\t\t\t\t\t$cnt_opt = isset($v['prices']['cnt_opt']) ? $v['prices']['cnt_opt'] : '';\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$bott .= '\n\t\t\t\t\t\t\t\t\t<div class=\"gd gd-size\">Размер: '.$v['prices']['name'].' ('.$v['prices']['prefix'].')</div>\n\t\t\t\t\t\t\t\t\t<div class=\"gd gd-packing\">Упаковка: '. ($v['options']['type'] ? 'опт - '.($cnt_opt) : 'розница - '.($cnt_roz)) .' шт.</div>';\n\t\t\t\t\t\t\t\t\tunset($cnt_roz);\n\t\t\t\t\t\t\t\t\tunset($cnt_opt);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$bott .= '\n\t\t\t\t\t\t\t\t\t<div class=\"gd gd-price\">Цена:';\n\t\t\t\t\t\t\t\t\tif ($v['discount']*1){\n\t\t\t\t\t\t\t\t\t\t$bott .= '\n\t\t\t\t\t\t\t\t\t\t<span class=\"gd-old-price\">'.number_format($v['price'], 2, ',', \"'\").' грн.</span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"gd-new-price\">'.number_format(($v['price']-($v['price']*$v['discount']/100)), 2, ',', \"'\").' грн.</span>';\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t$bott .= '\n\t\t\t\t\t\t\t\t\t\t<span class=\"gd-new-price\">'.number_format($v['price'], 2, ',', \"'\").' грн.</span>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$bott .= '\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"gd gd-qty\">Количество: <b>&times;</b> '.$v['qty'].'</div>\n\t\t\t\t\t\t\t\t\t<div class=\"gd gd-subtotal\">Сумма: '.number_format($v['subtotal'], 2, ',', \"'\").' грн.</div>\n\n\t\t\t\t\t\t\t\t\t<a class=\"gd gd-edit\" href=\"'. htmlspecialchars($v['_url']) . ($v['prices'] ? ('#size='.$v['options']['size'].';packing='.$v['options']['type']) : '').'\">Редактировать</a>\n\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t<a class=\"gd gd-delete\" href=\"/cart?del='.$k.'>\" data-cart-delete=\"'.$k.'\">Удалить</a>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"cbt-item-left\">\n\t\t\t\t\t\t\t\t\t<img src=\"'.htmlspecialchars($v['image']).'\" alt=\"'.htmlspecialchars($v['name']).'\">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>';\n\t\t\t\t\t}\n\t\t\t$bott .= '\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"cbt-content-right\">\n\t\t\t\t\t<a class=\"btn btn-pink\" href=\"/cart\">Оформить</a>\n\t\t\t\t</div>\n\t\t\t</div>';\n\t\t}\n\t\t# убираем пробелы (сжимаем)\n\t\t$cart['html_bottom'] = preg_replace('/\\s+/', ' ', $bott);\n\t\t\n\t\t\n\t\tunset($cart['products']);\n\t\t\n\t\treturn $cart;\n\t}", "function drawCart(){\n\t\t//start form and table tags\n\t\techo '<form name=\"cart\" action=\"\" method=\"POST\">';\n\t\techo '<h1>Cart</h1>';\n\t\techo '<table>';\n\t\techo '<tr><th>Name</th><th>Price</th><th>Quantity</th><th>Total</th><th>Remove</th></tr>';\n \t\n\t\t//hold the cumulative total price\n\t\t$totalPrice = 0;\n\t\t\n\t\t//display each item in the cart in a new table row \n\t\tforeach($_SESSION['cart']->items as $cartItem){\t\n\t\t\t\n\t\t\t//generate the total price for this item, and add it to the total price\n\t\t\t$itemTotalPrice = $cartItem['price'] * $cartItem['quantity'];\n\t\t\t$totalPrice += $itemTotalPrice;\n\t\t\t\n\t\t\t//item information\n\t\t\techo '<tr>';\n\t\t\techo \t'<td>' . $cartItem['name'] . '</td>';\n\t\t\techo \t'<td>' . number_format($cartItem['price'],2) . '</td>';\n\t\t\techo \t'<td>' . $cartItem['quantity'] . '</td>';\n\t\t\techo \t'<td>' . number_format($itemTotalPrice,2) . '</td>';\n\t\t\techo \t'<td>' . '<button type=\"submit\" name=\"removeItem\" value=\"'.$cartItem['name'].'\" >Remove Item</button>' . '</td>';\n\t\t\techo '</tr>';\n\t\t\t\n\t\t}\n\t\t//draw overall Total\n\t\techo '<tr>';\n\t\techo \t'<th>Overall Total</th><td></td><td></td>';\n\t\techo \t'<td>' . number_format($totalPrice,2) . '</td>';\n\t\techo '</tr>';\n\t\t\n\t\t//close the table and form tags\n\t\techo '</table><br>';\n\t\techo '</form>';\n\t\t\n\t}", "public function viewCart(){\r\n $data =(isset($_SESSION['cart']))? $_SESSION['cart']:array('cart' => 'empty');\r\n render('cart',$data);\r\n }", "public function addtocart() {\n \n $this->viewBuilder()->layout('');\n //pr($_POST); exit;\n \n \n $session = $this->request->session();\n \n \n //$session->write('mycart','');\n //$session->write('amount','');\n \n $precart = $session->read('mycart');\n \n if(!empty($precart)){\n $cartData['tid'] = $_POST['tid'];\n $cartData['mid'] = $_POST['mid'];\n $cartData['pid'] = $_POST['pid'];\n $cartData['qt'] = $_POST['qt'];\n $cartData['price'] = $_POST['price'];\n $precart[$_POST['pid']]=$cartData;\n //pr($precart); exit;\n $toprice = 0; foreach($precart as $crt){ $toprice = $toprice + $crt['price']; }\n\n //array_merge($precart,$cartData);\n $session->write('mycart',$precart);\n $session->write('amount',$toprice);\n echo count($precart).\"-\".$toprice; exit;\n } else {\n $cartData1['tid'] = $_POST['tid'];\n $cartData1['mid'] = $_POST['mid'];\n $cartData1['pid'] = $_POST['pid'];\n $cartData1['qt'] = $_POST['qt'];\n $cartData1['price'] = $_POST['price']; \n \n $cartData[$_POST['pid']] = $cartData1;\n $session->write('mycart',$cartData);\n $session->write('amount',$_POST['price']);\n echo \"1-\".$_POST['price']; exit;\n }\n \n \n //pr($session->read('mycart')); exit;\n $this->autoRender = false;\n }", "public function addToCart(): void\n {\n //añadimos un Item con la cantidad indicada al Carrito\n Cart::add($this->oferta->id, $this->product->name, $this->oferta->getRawOriginal('offer_prize'), $this->quantity);\n //emite al nav-cart el dato para que lo actualize\n $this->emitTo('nav-cart', 'refresh');\n }", "function addToCart($id, $format, $finition, $cadre, $prix) {\n $item = [\n 'id' => $id,\n 'format' => $format,\n 'finition' => $finition,\n 'cadre' => $cadre,\n 'prix' => $prix,\n 'quantity' => 1,\n ];\n\n $_SESSION['cart'][] = $item;\n}", "function _add2cart()\n\t{\n\t\t# 'parts2' = side 2 stuff.\n\t\t# DesignSide => parts encoded\n\n\t\t#$cartItem = $this->data[\n\n\t\t# Get full data dump so we know what fields to create.\n\t\theader(\"Content-Type: text/plain\");\n\t\tprint_r($this->data);\n\t\texit(0);\n\t}", "public function index() \n\t{\n $this->initModel('Cart_model');\n\n\t\tif(!empty($_SESSION['cart']->getProdList()))\n\t\t{\n //We instansiate cartItems method where we save the new array from session\n\t\t$data = $this->modelObj->showCart();\n $this->reqView('Cart', $data);\n\n\t\t} else {\n\t\t\t$this->reqView('Cart');\n\t\t}\n //This will be shown on our cart page\n\t}", "public static function writeShoppingCart() {\n\tif (isset($_SESSION['cart']))\n\t{\n\t$cart = $_SESSION['cart'];\n\t}\n\t\n\tif (!isset($cart) || $cart=='') {\n\t\treturn '<p>You have no items in your shopping cart</p>';\n\t} \n\t\telse \n\t{\n\t\t// Parse the cart session variable\n\t\t$items = explode(',',$cart);\n\t\t$s = (count($items) > 1) ? 's':'';\n\t\treturn '<p>You have <a href=\"index.php?content_page=php-shopping/cart&action=display\">'.count($items).' item'.$s.' in your shopping cart</a></p>';\n\t\t}\n }", "function displayCart(){\r\n\r\n\t\r\n\r\n\t$totalPrice = 0;\r\n\t$imageUrl = \" \";\r\n\tforeach ($_SESSION[\"cart\"] as $item ) {\r\n\t$totalPrice += $item->getPrice();\r\n\t$imageUrl =\t \"../\".$item->getImageUrl();\r\n\r\n\t$itemId = $item->getItemId()\r\n?>\r\n\t <div class=\"cart-header\">\r\n\t\t\t\t\r\n\t\t\t\t \t<a href = \"?action=removeItem&itemId=<?php echo $item->getItemId().\"&price=\".$item->getPrice(); ?>\">\r\n\t\t\t\t\t\t<div class=\"close1\"></div>\r\n\t\t\t\t\t</a>\r\n\t\t\t\t \r\n\t\t\t\t <div class=\"cart-sec\">\r\n\t\t\t\t\t\t<div class=\"cart-item cyc\">\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t<?php echo'<img src=\"'.$imageUrl.'\" alt=\"\"/>' ?>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t <div class=\"cart-item-info\">\r\n\t\t\t\t\t\t\t<h3><?php echo $item->getItemName() ?>\r\n\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t \t<?php \r\n\t\t\t\t\t\t\t\t\t \t echo \"Item Id: \";\r\n\t\t\t\t\t\t\t\t\t \t\techo $itemId; \r\n\t\t\t\t\t\t\t\t\t \t?>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t</h3>\r\n\t\t\t\t\t\t\t <h4><span>Price. R </span><?php echo $item->getPrice() ?></h4>\r\n\t\t\t\t\t\t\t <p class=\"qty\">Qty ::</p>\r\n\t\t\t\t\t\t\t <input min=\"1\" type=\"number\" id=\"quantity\" name=\"quantity\" value=\"1\" class=\"form-control input-small\">\r\n\t\t\t\t\t </div>\r\n\t\t\t\t\t <div class=\"clearfix\"></div>\r\n\t\t\t\t\t\t<div class=\"delivery\">\r\n\t\t\t\t\t\t\t <p>Service Charges:: Rs.50.00</p>\r\n\t\t\t\t\t\t\t <span>Delivered in 2-3 bussiness days</span>\r\n\t\t\t\t\t\t\t <div class=\"clearfix\"></div>\r\n\t\t\t\t </div>\t\t\t\t\t\t\r\n\t\t\t\t </div>\r\n</div>\r\n<?php\r\n\t}\r\n}", "public function index()\n\t{\n\t\t// $this->load->model('Product');\n\t\t// $queryRecords = $this->Product->list_product();\n\t\t// $data['products'] = $queryRecords; \n\t\t$data['cart_list'] = $this->cart->contents();\n\n\t\t$this->load->view('cart',$data);\n\t}", "function displayCart($cart){\n\tif(count($cart) > 0)//Cart isn't empty\n\t{\t\n\t\t$totalPrice = 0;\n\t\tforeach ($cart as $item)\n\t\t{\n\t\t\t$totalPrice += $item['productQuantity']*$item['productPrice'];//quantity*price for each item in the cart to get total price\n\n\t\t\t/* Table to out data */\n\t\t\techo '<table class=\"table table-striped table-hover table-responsive\">';\n\t\t\techo\t'<tr style=\"border-bottom:none;\">';\n\t\t\techo\t\t'<td colspan=\"4\" class=\"col-sm-3 col-md-3 col-lg-3 align-left\">'.$item['productTitle'].'</td>';\n\t\t\techo\t'</tr>';\n\t\t\techo\t'<tr>';\n\t\t\techo\t\t'<td>x'.$item['productQuantity'].'</td>';\n\t\t\techo\t\t'<td>&euro;'.$item['productPrice'].'</td>';\n\t\t\t\n\t\t\techo \t\t'<td>';\n\t\t\techo\t\t\t'<form id=\"cart-action\" method=\"post\">';\n\t\t\techo \t\t'<input type=\"hidden\" name=\"vendorId\" value=\"'.$item['vendorId'].'\">';\n\t\t\techo\t\t\t\t'<input type=\"hidden\" name=\"productId\" value=\"'.$item['productId'].'\">';\n\t\t\techo \t'<input type=\"hidden\" name=\"action\" value=\"add\">';\n\t\t\techo \t'<input type=\"hidden\" name=\"productTitle\" value=\"'.base64_decode($item['productTitle']).'\">';\n\t\t\techo \t'<input type=\"hidden\" name=\"productPrice\" value=\"'.$item['productPrice'].'\">';\n\t\t\techo \t\t'<button type=\"submit\"><a><span class=\"glyphicon glyphicon-plus-sign\"></span></a></button>';\n\t\t\techo \t\t\t'</form>';\n\t\t\techo \t\t'</td>';\n\t\t\t\n\t\t\techo\t\t'<td>';\n\t\t\techo \t\t\t'<form id=\"cart-action\" method=\"POST\">';\n\t\t\techo \t\t\t\t'<input type=\"hidden\" name=\"action\" value=\"remove\">';\n\t\t\techo \t\t\t\t\"<input type='hidden' name='productId' value=\".$item['productId'].\">\";\n\t\t\techo \t\t\t\t'<button type=\"submit\"><a><span class=\"glyphicon glyphicon-remove-circle\"></span></a></button>';\n\t\t\techo \t\t\t'</form>';\n\t\t\techo\t\t'</td>';\n\t\t\techo\t'</tr>';\n\t\t\techo '</table>';\n\t\t}\n\t\t\techo '<div class=\"cart-total-price\">';\n\t\t\t\techo '<p><strong>Total: &nbsp;&nbsp; &euro;'.$totalPrice.'</strong></p>';\n\t\t\techo '</div>';\n\t\t\techo '<script type=\"text/javascript\">location.reload()</script>';//Temporary Page Reload for checkout order options to change\n\t\t}else{//Print not items selected\n\t\t\techo '<p>No Items Selected</p>';\n\t\t\t}\n}", "function add_to_cart($id,$qty){\r\n\r\n $row = $this->Web_model->get_by_id($id);\r\n $kategori = $this->Web_model->get_by_idkat($row->id_kategori);\r\n if ($row) {\r\n $datas= array(\r\n 'id' => $row->id_menu,\r\n 'name' => $row->nama_menu,\r\n 'price' => $row->harga,\r\n 'qty' => $qty, \r\n 'id_kategori' => $row->id_kategori,\r\n 'gambar' => $row->foto_menu,\r\n 'nama_kategori' => $kategori->nama_kategori,\r\n );\r\n $this->cart->product_name_rules = '[:print:]';\r\n $this->cart->insert($datas);\r\n echo(count($this->cart->contents()));\r\n }\r\n }", "public function view_cart(){\n\t\t//Devuelve el carrrtio\n\t\t$data['title'] = 'Detalle de la Compra';\n\t\t$data['active'] = 2; //punto 2 del sidebar\n\t\t//Obtener carrito\n\t\t$userid = $_SESSION['logged_in']['userid'];\n\t\t$data['carrito'] = $this->cila_model->get_carrito($userid);\n\t\t$this->loadview('shop-cart',$data);\n\n\t}", "function cart(){\n\tif(isset($_GET['add_cart'])){\n\t\tglobal $connection;\n\t\t$ip=getIp();\n\t\t$product_id\t= $_GET['add_cart'];\n\t\t\t $quantity = 0;\n\t\t$check_product = \"select * from cart where ip_address='$ip' AND product_id='$product_id'\";\n\t\t$run_check = mysqli_query($connection,$check_product);\n\t\t\n\t\tif(mysqli_num_rows($run_check)>0){\n\t\t\techo \"\";\n\t\t\t\n\t\t}else{\n\t\t\t$insert_product = \"insert into cart (product_id,ip_address,quantity) values ('$product_id','$ip','$quantity')\";\n\t\t\t$run_product = mysqli_query($connection,$insert_product);\n\t\t\techo\"<script>window.open('index.php','_self')</script>\";\n\t\t}\n\t}\n}", "function index()\n {\n // If the cart is empty, show the empty cart page\n if (empty($_SESSION['cart'])) {\n $this->registry->template->show('cart-empty');\n die();\n }\n\n $cartItemsHtml = '';\n $game = new \\Webshop\\Model\\Game();\n\n $resultGames = [];\n $subtotaal = 0.0;\n $verzendkosten = 1.98;\n\n // Load the games from the database\n foreach ($_SESSION['cart'] as $gameFromSession) {\n $gameId = $gameFromSession[0];\n if ($game->getOne(\"id\", $gameId)) {\n $resultGames[] = $game->getOne(\"id\", $gameId);\n }\n }\n\n // Create the html for eacht game\n $count = 0;\n foreach ($resultGames as $game) {\n\n if (file_exists(\"images/games/\" . $game->imageBackground)) {\n $gameBackgroundImage = $game->imageBackground;\n } else {\n $gameBackgroundImage = \"pc/General_background.jpg\";\n }\n\n $options = '';\n $amount = $_SESSION['cart'][$count][1];\n for ($index = 1; $index < $this->amountOfOption; $index++) {\n $selected = '';\n ($index == $amount) ? $selected = 'selected' : '';\n $options .= \"<option $selected>$index</option>\";\n }\n\n $gameTotalPrice = $game->price * $amount;\n $subtotaal += $gameTotalPrice;\n $cartItemsHtml .= <<< CARTITEMS\n <article style=\"background: url(/images/games/$gameBackgroundImage) center center no-repeat;\">\n <h2><a href = \"/games/id/$game->id\" >$game->title</a></h2>\n <a href=\"/games/id/$game->id\" >\n <img alt = \"Primary image of the article\" class=\"product-front-img\" src = \"/images/games/$game->image\">\n </a> \n <strong>$amount x &euro; $game->price = &euro; $gameTotalPrice</strong>\n <form method=\"post\" action=\"/cart/updateNumberOfItems\">\n <input type=\"hidden\" name=\"gameId\" value=\"$game->id\">\n <select name=\"amount\" onchange=\"this.form.submit()\">\n $options\n </select>\n </form>\n <a class=\"button remove-from-cart\" href=\"/cart/remove/$game->id\">\n <span class=\"lnr lnr-trash\"></span>\n </a> \n </article>\nCARTITEMS;\n\n $count++;\n }\n\n $totalPrice = $subtotaal + $verzendkosten; // Default verzendkosten\n $this->registry->template->verzendkosten = $verzendkosten;\n $this->registry->template->subTotal = $subtotaal;\n $this->registry->template->totalPrice = $totalPrice;\n $this->registry->template->cartItemsHtml = $cartItemsHtml;\n $this->registry->template->show('cart');\n unset($_SESSION['addToCartError']);\n }", "function addItemsToCart()\n\t{\n\t\t$order = $_POST['order'];\n\t\tsession_start();\n\t\tif(isset($_SESSION['userName']))\n\t\t{\n\t\t\t$result = addItemsToCartDB($_SESSION['userName'], $order);\n\t\t\tif($result['status'] == 'COMPLETE')\n\t\t\t{\n\t\t\t\techo json_encode($result);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n # Something went wrong\n\t\t\t\tdie(json_encode($result));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie(json_encode(errors(417)));\n\t\t}\n\t}", "public function actionAdd() {\n $id = Yii::$app->request->get('id');\n $qty = (int)Yii::$app->request->get('qty');\n $qty = !$qty ? 1 : $qty;\n\n $product = Product::findOne($id);\n if (empty($product)) return false;\n $session = $this->session;\n $cart = new Cart();\n $cart->addToCart($product, $qty);\n if (!Yii::$app->request->isAjax) { // works if js is off and ajax request did not occur\n return $this->redirect(Yii::$app->request->referrer);\n }\n $this->layout = false; // loading only view file, without layout;\n $items_to_show = $this->getProductObject($session);\n return $this->render('cart-modal', compact('session', 'items_to_show'));\n }", "function add()\n\t{\n\t\tif ($this->input->post('qty') < 1) {\n\t\t\techo json_encode(array('error' => 'Vui lòng nhập số lượng lớn hơn 1')); exit();\n\t\t}\n\t\t\n\t\t$insert_room = array(\n\t\t\t'id' => date('His'),\n\t\t\t'product_id' => $this->input->post('id'),\n\t\t\t// 'name' => clean_special_character($this->input->post('name')),\n\t\t\t'name' => $this->input->post('name'),\n\t\t\t'price' => $this->input->post('price'),\n\t\t\t'qty' => $this->input->post('qty'),\n\t\t\t'color' => $this->input->post('color'),\n\t\t\t'size' => $this->input->post('size')\n\t\t);\t\t\n\n\n\t\tif (!$this->cart->insert($insert_room)) {\n\t\t\techo json_encode(array('error' => $this->cart->insert($insert_room))); exit();\n\t\t}\n\n\t\tif ($this->uri->segment(1) == \"payment-now\") {\n\t\t\techo json_encode(array('result' => './thanh-toan-don-hang')); exit();\n\t\t}\n\n\t\t//cart buy now\n\t\tif (isset($_POST['buy_now'])) {\n\t\t\techo json_encode(array('result' => './xem-gio-hang')); exit();\n\t\t}\n\n\t\t//checkout cart\n\t\tif (isset($_POST['checkout'])) {\n\t\t\t$total = $this->cart->total_items();\n\n\t\t\t\n\t\t\t$minicart = '';\n\t\t\tif($cart = $this->cart->contents()){\n\t\t\t$minicart .='<div class=\"dropdown_2\">';\n \t\t$minicart .='<div class=\"title-txt\">';\n \t\t$minicart .='Sản phẩm vừa được thêm vào!';\n \t\t$minicart .='</div>';\n \t\t$minicart .='<div class=\"cart-hover-body\">';\n \t$minicart .='<ul id=\"list-cart-hover\">';\n $grand_total =0;\n $this->load->model('frontend/products_model');\n $grand_total = 0; $i = 1;\n\n foreach ($cart as $item):\n\n $product =$this->products_model->view_product(\n \tarray(TB_PRODUCTS.'.id' => $item['product_id'])\n );\n\n $grand_total += $item['subtotal'];\n $minicart .='<li>';\n $minicart .='<figure><img src=\"'.$product['img_thumb'].'\"></figure>';\n $minicart .='<div class=\"cart-info\">';\n $minicart .='<a href=\"'.$product['link'].'\">'.$product['name'].'</a>';\n if($product['code']): \n $minicart .='<p>Mã sản phẩm: '.$product['code'] .'</p>';\n endif;\n if($item['size']): \n $minicart .='<p>Size: '.$item['size'] .'</p>';\n endif;\n if($item['color']): \n $minicart .='<p>Màu: '.$item['color'] .'</p>';\n endif; \n $minicart .='</div>';\n $minicart .='<div class=\"price\">'.$item['qty'].'x'.number_format($product['price']).'đ</div>';\n $minicart .='<div class=\"action-cart\">';\n $minicart .='<a href=\"./cart/remove-ajax/'.$item['rowid'].'\">';\n $minicart .='<i class=\"fa fa-close\"></i>';\n $minicart .='</a>';\n $minicart .='</div>';\n $minicart .='</li>';\n endforeach;\n \t$minicart .='</ul>';\n \t$minicart .='<div class=\"total-price\">';\n $minicart .='<ul>';\n $minicart .='<li class=\"color_dark\">Tổng: <span id=\"grand-total\">'.number_format($grand_total).'</span>đ</li>';\n \n $minicart .='<li class=\"color_dark\"><span>Tổng cộng:</span> <span id=\"grand-total-all\">';\n $minicart .=number_format($grand_total).'đ</span></li>';\n $minicart .='</ul>';\n \t$minicart .='</div>\n </div>\n <div class=\"cart-link-option\">\n <a href=\"./xem-gio-hang.html\">Xem chi tiết</a>\n <a href=\"./thanh-toan-don-hang.html\">Thanh toán</a>\n </div>\n</div>';\n } \n\n\n\t\techo json_encode(array('result' => 'Thêm giỏ hàng thành công', 'total' => $total, 'minicart' => $minicart)); exit();\n\t\t}\t\n\t\tredirect('cart');\n\t}", "public function index() //localhost:8000/cart\n {\n //Session::forget(\"cart\");\n // dd(Session::get(\"cart\"));\n // use the session cart to get the details for the items.\n $details_of_items_in_cart =[];\n $total = 0;\n if(Session::exists(\"cart\") || Session::get(\"cart\") != null){\n foreach (Session::get(\"cart\") as $item_id => $quantity) {\n \n // Because session cart has keys(item_id) and values (quantity)\n //Find the item\n $product = Product::find($item_id);\n //Get the details needed (add properties not in the original item)\n $product->quantity = $quantity;\n $product->subtotal = $product->cost * $quantity;\n // Note : these properties (quantity and subtoptal Are Not part of the Product Stored in the database, they are only for $product)\n //Push to array containing the details\n //google how to push data in an array\n //Syntax: array_push(target array, data to be pushed)\n array_push($details_of_items_in_cart, $product);\n $total += $product->subtotal;\n //total = total + subtotal\n }\n //send the array to the view\n //dd($details_of_items_in_cart);\n }\n return view(\"products.cart\", compact(\"details_of_items_in_cart\",\n \"total\"));\n }", "function show_cart(){\n \t$output = '';\n \t$no = 0;\n \tforeach ($this->cart->contents() as $items) {\n \t\t$no++;\n \t\t$output .='\n \t\t<tr>\n \t\t<td>'.$items['name'].'</td>\n \t\t<td>'.number_format($items['price']).'</td>\n \t\t<td>'.$items['qty'].'</td>\n \t\t<td>'.number_format($items['subtotal']).'</td>\n \t\t<td><button type=\"button\" id=\"'.$items['rowid'].'\" class=\"hapus_cart btn btn-danger btn-xs\">Batal</button></td>\n \t\t</tr>\n \t\t';\n \t}\n \t$output .= '\n \t<tr>\n \t<th colspan=\"3\">Total</th>\n \t<th colspan=\"2\">'.'Rp '.number_format($this->cart->total()).'</th>\n \t</tr>\n \t';\n \treturn $output;\n }", "function add_to_cart(){\n\t\t$data = array(\n\t\t\t'id' => $this->input->post('id_menu'), \n\t\t\t'name' => $this->input->post('nama_menu'), \n\t\t\t'price' => $this->input->post('harga'), \n\t\t\t'qty' => $this->input->post('quantity'), \n\t\t);\n\t\t$this->cart->insert($data);\n\t\techo $this->show_cart(); //tampilkan cart setelah added\n\t}", "public function testAddProductToCart()\n {\n $this->browse(function (Browser $browser) {\n // Home Page\n $browser->visit(new HomePage);\n\n // Get Collection Name\n $collectionName = $browser->text('.thumbnail .caption a');\n\n // Products Page\n $browser->clickLink($collectionName)\n ->assertSee($collectionName);\n\n // Get Product Name\n $productName = $browser->text('.thumbnail .caption a');\n\n $browser->clickLink($productName)\n // Product Page\n ->assertSee($productName)\n ->press('Add To Cart')\n ->assertSee('Product has been added to your cart.')\n // Cart Page\n ->visit('/cart')\n ->assertSee($productName);\n });\n }", "public function cartView()\n {\n $cartItems = Cart::content();// получаем весь массив айдишников товаров текущего экземпляра корзины\n\n return view('basket', ['items' => $cartItems]);\n }", "function cart()\n{\n$total = 0;\n$item_quantity = 0;\n\n//paypal integration\n$item_name = 1;\n$item_number = 1;\n$amount = 1;\n$quan = 1;\nforeach($_SESSION as $name => $value)\n{\n//ignoring products that are not added to cart\nif($value > 0){\n// taking out session name as char and checking if letters ==product_ then show products\n// sub str starts at 0 but begins from 1\nif(substr($name, 0, 8) == \"product_\")\n{\n//grabing the session name and extracting id\n$length = strlen($name) - 8;// deleteing the first 8 chars product_12 leaves 2 //returns int 2\n//echo $length;\n$id = substr($name, 8, $length);\n\n$query = query(\"SELECT * FROM products WHERE product_id = \" . $id . \" \");\nconfirm($query);\n\nwhile($row = fetch_array($query))\n{\n$sub = $row['product_price'] * $value; //value is num of active sessions calculating subtotal\n$item_quantity += $value;\n$product = <<<DELIMETER\n<tbody>\n <tr>\n <td><a href=\"item.php?id={$row['product_id']}\"><img style=\"width:65px;;height:65px;\" class=\"imgsize\" src=\"../resources/uploads/{$row['product_image']}\" alt=\"\"></a></td>\n <td>{$row['product_title']}</td>\n <td>&#36;{$row['product_price']}</td>\n <td>{$value}</td><!-- current value of session (quantity) -->\n <td>&#36;{$sub}</td>\n <!-- buttons -->\n <td>\n <a class='btn btn-warning' href=\"resources/cart.php?remove={$row['product_id']}\">\n <span class='glyphicon glyphicon-minus'>-</span>\n </a>\n <a class='btn btn-success' href=\"resources/cart.php?add={$row['product_id']}\">\n <span class='glyphicon glyphicon-plus'>+</span>\n </a>\n <a class='btn btn-danger' href=\"resources/cart.php?delete={$row['product_id']}\">\n <span class='glyphicon glyphicon-remove'>x</span>\n </a>\n </td>\n </tr>\n <!-- PayPal buttons -->\n <input type=\"hidden\" name=\"item_name_{$item_name}\" value=\"{$row['product_title']}\">\n <input type=\"hidden\" name=\"item_number_{$item_number}\" value=\"{$row['product_id']}\">\n <input type=\"hidden\" name=\"amount_{$amount}\" value=\"{$row['product_price']}\">\n <input type=\"hidden\" name=\"quantity_{$quan}\" value=\"{$value}\">\n</tbody>\nDELIMETER;\n\necho $product;\n$total += $sub;\n\n//indicating that there is more than one item in the shopping cart\n $item_name++;\n $item_number++;\n $amount++;\n $quan++;\n}\n$_SESSION['total_cost'] = $total;\n\n}\n$_SESSION['total_quantity'] = $item_quantity;\n}\n\n\n}\n\n\n\n\n//echo $_SESSION['item_total'];\n}", "public function addToCart()\n {\n\n $id = $_POST['id'];\n $quantity = intval($_POST['quantity']);\n\n $model = new ProductModel();\n $dice = $model->getProductByID($id);\n $diceToAdd = [\n 'product' => $dice,\n 'quantity' => $quantity\n ];\n\n // if cart is empty, initialize empty cart\n if (empty($_SESSION['shoppingCart'])) {\n $_SESSION['shoppingCart'] = [];\n }\n\n // item already in cart ? no\n $found = false;\n\n // if product is already in the cart, adding to quantity\n for ($i = 0; $i < count($_SESSION['shoppingCart']); $i++) {\n if ($_SESSION['shoppingCart'][$i]['product']['id'] == $id) {\n $_SESSION['shoppingCart'][$i]['quantity'] += $quantity;\n $_SESSION['totalInCart'] += $quantity;\n\n $found = true;\n }\n }\n\n //if not, adding product and quantity\n if ($found == false) {\n array_push($_SESSION['shoppingCart'], $diceToAdd);\n $_SESSION['totalInCart'] += $diceToAdd['quantity'];\n }\n\n header('Location: ./shop');\n exit;\n }", "public function create()\n {\n $cart = session()->get('cart');\n }", "public function createSnap()\n {\n $hashEmail = sha1($this->input->post('txt-email'));\n $carts = $this->carts->displayCart($hashEmail);\n\n $subtotal = 0;\n $totalWeight = 0;\n\n //1.1 Validasi apa bener ada data aktif\n if ($carts->num_rows() == 0) {\n echo json_encode(array(\n 'status' => 'invalid',\n 'code' => 204,\n 'message' => 'no active cart items'\n ));\n\n return;\n }\n //EoL 1.1\n\n //EoL 1\n\n //2. Hitung total belanja dari item ini\n\n foreach ($carts->result() as $items) {\n //2.1. Calculate the item price\n $subtotal = $subtotal + ($items->PRODUCT_PRICE == null ? 0 : $items->PRODUCT_PRICE);\n //EoL 1.1\n\n //2.2 Calculate the item weight\n $curWeight = $items->WEIGHT * $items->PRODUCT_QUANTITY;\n $totalWeight = $totalWeight + $curWeight;\n //EoL 2.2\n\n //2.3 Calculate the weight cost \n $weightPrice = $totalWeight * WEIGHT_PRICE;\n //EoL 2.3\n }\n\n $totalPrice = $subtotal + $weightPrice;\n //EoL 2\n\n //3. Setup variabel Midtrans\n $salt = sha1($this->incube->generateID('10'));\n\n $transDetails = array(\n 'order_id' => $salt,\n 'gross_amount' => (int) $totalPrice\n );\n\n foreach ($carts->result() as $item) {\n $arrDetails[] = array(\n 'id' => $item->PRODUCT_ID,\n 'price' => (int) ($item->PRODUCT_PRICE / $item->PRODUCT_QUANTITY),\n 'quantity' => (int) $item->PRODUCT_QUANTITY,\n 'name' => $item->PRODUCT_NAME\n );\n }\n\n $postage = array(\n 'id' => 'postage',\n 'price' => (int) $weightPrice,\n 'quantity' => 1,\n 'name' => 'Total Postage'\n );\n\n array_push($arrDetails, $postage);\n\n //3.1 Kalau misalnya user pilih Shipping sama kayak data dia register\n if ($this->input->post('clear-data') == null) {\n\n // 3.1 Ambil data dari database\n $userQuery = $this->api->getGeneralData('g_member', 'REC_ID', $this->input->post('id-user'));\n\n //3.1.1 Validasi data user\n if ($userQuery->num_rows() == 0) {\n echo json_encode(array(\n 'status' => 'invalid',\n 'code' => 204,\n 'message' => 'no member data found',\n 'test' => $this->db->last_query()\n ));\n\n return;\n }\n //3.1.1\n\n // Optional\n $billing_address = array(\n 'first_name' => $userQuery->row()->FIRST_NAME,\n 'last_name' => $userQuery->row()->LAST_NAME,\n 'address' => $userQuery->row()->ADDRESS . ' ' . $userQuery->row()->ADDRESS_2,\n 'city' => $userQuery->row()->PROVINCE,\n 'postal_code' => $userQuery->row()->ZIP,\n 'phone' => $userQuery->row()->PHONE,\n 'country_code' => 'IDN'\n );\n\n // Optional\n $shipping_address = array(\n 'first_name' => $userQuery->row()->FIRST_NAME,\n 'last_name' => $userQuery->row()->LAST_NAME,\n 'address' => $userQuery->row()->ADDRESS . ' ' . $userQuery->row()->ADDRESS_2,\n 'city' => $userQuery->row()->PROVINCE,\n 'postal_code' => $userQuery->row()->ZIP,\n 'phone' => $userQuery->row()->PHONE,\n 'country_code' => 'IDN'\n );\n\n // Optional\n $customer_details = array(\n 'first_name' => $userQuery->row()->FIRST_NAME,\n 'last_name' => $userQuery->row()->LAST_NAME,\n 'email' => $userQuery->row()->EMAIL,\n 'phone' => $userQuery->row()->PHONE,\n 'billing_address' => $billing_address,\n 'shipping_address' => $shipping_address\n );\n }\n\n //3.2 Kalo misalnya ga dipilih, ambil data dari form\n else {\n\n // 3.2 Ambil data dari database\n $userQuery = $this->api->getGeneralData('g_member', 'REC_ID', $this->input->post('id-user'));\n\n //3.2.2 Validasi data user\n if ($userQuery->num_rows() == 0) {\n echo json_encode(array(\n 'status' => 'invalid',\n 'code' => 204,\n 'message' => 'no member data found'\n ));\n\n return;\n }\n //3.2.2\n\n // Optional\n $billing_address = array(\n 'first_name' => $userQuery->row()->FIRST_NAME,\n 'last_name' => $userQuery->row()->LAST_NAME,\n 'address' => $userQuery->row()->ADDRESS . ' ' . $userQuery->row()->ADDRESS_2,\n 'city' => $userQuery->row()->PROVINCE,\n 'postal_code' => $userQuery->row()->ZIP,\n 'phone' => $userQuery->row()->PHONE,\n 'country_code' => 'IDN'\n );\n\n // Optional\n $shipping_address = array(\n 'first_name' => $this->input->post('txt-name'),\n 'last_name' => '',\n 'address' => $this->input->post('txt-address-1') . ' ' . $this->input->post('txt-address-2'),\n 'city' => $this->input->post('txt-state'),\n 'postal_code' => $this->input->post('txt-zip'),\n 'phone' => $this->input->post('txt-phone'),\n 'country_code' => 'IDN'\n );\n\n // Optional\n $customer_details = array(\n 'first_name' => $userQuery->row()->FIRST_NAME,\n 'last_name' => $userQuery->row()->LAST_NAME,\n 'email' => $userQuery->row()->EMAIL,\n 'phone' => $userQuery->row()->PHONE,\n 'billing_address' => $billing_address,\n 'shipping_address' => $shipping_address\n );\n }\n //EoL 3.2\n\n //EoL 3\n\n $channelsQuery = $this->api->getGeneralData('g_payment_channel', 'STATUS', 'ACTIVE');\n\n $channelArr = array();\n\n foreach ($channelsQuery->result() as $channel) {\n array_push($channelArr, $channel->CHANNEL_NAME);\n }\n\n // Fill transaction details\n $transaction = array(\n 'enabled_payments' => $channelArr,\n 'transaction_details' => $transDetails,\n 'customer_details' => $customer_details,\n 'item_details' => $arrDetails,\n );\n\n Midtrans\\Config::$serverKey = SERVER_KEY;\n Midtrans\\Config::$isProduction = false;\n Midtrans\\Config::$isSanitized = true;\n Midtrans\\Config::$is3ds = true;\n\n Midtrans\\Config::$paymentIdempotencyKey = $salt;\n\n try {\n $snapToken = Midtrans\\Snap::getSnapToken($transaction);\n\n echo json_encode(array(\n 'status' => 'success',\n 'code' => 200,\n 'message' => $snapToken\n ));\n } catch (Exception $ex) {\n\n echo json_encode(array(\n 'status' => 'api_error',\n 'code' => 504,\n 'message' => $ex->getMessage(),\n ));\n\n return;\n }\n }", "public function actionAdd()\n {\n $product_id = $this->getRequest('post','product_id');\n $image_id = $this->getRequest('post','image_id');\n $product = \\common\\models\\Products::find()->where(['id' => $product_id])->one();\n $total = $product->price;\n $count = $this->getRequest('post','count');\n $cover_id = $this->getRequest('post','cover_id');\n $color_id = $this->getRequest('post','color_id');\n\n $cart = new OrderCart();\n $cart->product_id = $product_id;\n $cart->image_id = $image_id;\n $cart->total = $total;\n $cart->count = $count;\n $cart->cover_id = $cover_id;\n $cart->user_id =$this->getUserId();\n $cart->user_hash = $this->getFromSession('id');\n $cart->color_id = $color_id;\n $cart->save();\n $allCart = (new CartsUtil())->getSelfCart();\n foreach($allCart as $k=> $v) {\n if($v['id'] == $cart->id) {\n $discont = (new SalesUtil())->detectSale($v);\n $cart->total = $cart->total - (($discont && isset($discont['sale_val']))\n ? $discont['sale_val']\n : 0 );\n break;\n }\n }\n return ($cart->save()) ? 200 : 400;\n }", "public function createCart($observer)\n {\n /*$order = Mage::getModel('sales/order')->loadByIncrementId('145000025');\n print_r($order);exit;*/\n\n $cart = Mage::getModel('checkout/cart')->getQuote();\n $cartItems = $cart->getAllItems();\n\n $result = array();\n $apiItems = array();\n\n foreach ($cartItems as $item) {\n $product = $item->getProduct();\n\n $apiItems[] = array(\n 'sku' => $product->getSku(),\n 'name' => $product->getName(),\n 'vat' => $this->priceFormat($this->getTaxPercent($product->getTaxClassId())),\n 'price' => $this->priceFormat($product->getPrice()),\n 'quantity' => $item->getQty(),\n );\n }\n\n $result['items'] = $apiItems;\n\n $api = Mage::getModel(\"vaimo_urbit/urbit_api\", new Vaimo_UrbIt_Model_Urbit_Api_Client());\n $responseObj = $api->createCart($result);\n\n //save cart id to session\n if (isset($responseObj->response['id'])) {\n Mage::getSingleton('core/session')->setCartIdFromApi($responseObj->response['id']);\n Mage::log($responseObj->response['id']);\n }\n }", "function listCart()\n{\n global $xoopsTpl, $uid;\n $cartForTemplate = $discountsDescription = array();\n $emptyCart = false;\n $shippingAmount = $commandAmount = $vatAmount = $commandAmountTTC = $discountsCount = $ecotaxeAmount = $discountAmount = $totalSavings = 0;\n $goOn = '';\n $reductions = new oledrion_reductions();\n $reductions->computeCart($cartForTemplate, $emptyCart, $shippingAmount, $commandAmount, $vatAmount, $goOn, $commandAmountTTC, $discountsDescription, $discountsCount, $ecotaxeAmount, $discountAmount, $totalSavings );\n $oledrion_Currency = & oledrion_Currency::getInstance();\n $xoopsTpl->assign('emptyCart', $emptyCart);\t\t\t\t\t\t\t\t\t\t\t// Caddy Vide ?\n $xoopsTpl->assign('caddieProducts', $cartForTemplate);\t\t\t\t\t\t\t\t// Produits dans le caddy\n $xoopsTpl->assign('shippingAmount', $oledrion_Currency->amountForDisplay($shippingAmount));\t\t// Montant des frais de port\n $xoopsTpl->assign('ecotaxeAmount', $oledrion_Currency->amountForDisplay($ecotaxeAmount));\t\t// Montant des frais de port\n $xoopsTpl->assign('commandAmount', $oledrion_Currency->amountForDisplay($commandAmount));\t\t// Montant HT de la commande\n $xoopsTpl->assign('discountAmount', $oledrion_Currency->amountForDisplay($discountAmount));\t\t// Total Discount\n $xoopsTpl->assign('totalSavings', $oledrion_Currency->amountForDisplay($totalSavings));\t\t// Total Savings\n $xoopsTpl->assign('vatAmount', $oledrion_Currency->amountForDisplay($vatAmount));\t\t\t\t// Montant de la TVA\n $xoopsTpl->assign('discountsCount', $discountsCount);\t\t\t\t\t\t\t\t// Nombre de réductions appliquées\n $xoopsTpl->assign('goOn', $goOn);\t\t\t\t\t\t\t\t\t\t\t\t\t// Adresse à utiliser pour continuer ses achats\n $xoopsTpl->assign('commandAmountTTC', $oledrion_Currency->amountForDisplay($commandAmountTTC, 'l'));\t// Montant TTC de la commande\n $xoopsTpl->assign('discountsDescription', $discountsDescription);\t\t\t\t\t// Liste des réductions accordées\n $showOrderButton = true;\n $showRegistredOnly = false;\n if (oledrion_utils::getModuleOption('restrict_orders', false) && $uid == 0) {\n $showRegistredOnly = true;\n $showOrderButton = false;\n }\n $xoopsTpl->assign('showRegistredOnly', $showRegistredOnly);\n $xoopsTpl->assign('showOrderButton', $showOrderButton);\n}", "function add_to_cart() {\n\t\n\tglobal $cxn;\n\t\n\t$the_count= $_POST['the_count'];\n\t$part_id=$_POST['part_id'];\n\t$product_id=$_POST['product_id'];//id of the product in the database\n\t$product_name=$_POST['product_name'];\n\t$price=$_POST['price'];\n\t$the_session_id=$_POST['session_id'];\n\t$door_id=$_POST['feature_door_id'];\n\t$door_cost=$_POST['door_price'];\n\tif(isset($_POST['quantity'])&&trim($_POST['quantity']==\"\"))\n\t{\n\t\t$quantity=1;\n\t}\n\telse\n\t{\n\t\t$quantity=trim($_POST['quantity']);\n\t}\n\t\n\t$the_product_cost=$price * $quantity;\n\n\t$sql=\"select id from cart where session_id='$the_session_id'\";\n\t$query=$cxn->query($sql);\n\t$cart_count=mysqli_num_rows($query);\n\t\n\t//brand new user and item\n\tif($cart_count==0)\n\t{\n\t\t\n\t\t//add what's just been posted to the cart under current session id\n\t\t//start with the basics (door_id, session_id, etc. be aware of if the door is on sale)\n\t\t//your first entry is the door_id and the door_cost irrespective of the product_id. That way you can delete any product and still be able to define the color\n\t\t\n\t\t$sql_5=\"insert into cart(session_id, door_id, product_id, door_cost, sequence) values('$the_session_id', '$door_id', '$product_id', '$door_cost', '1')\";\n\t\t//echo $sql_5;\n\t\tif(!$query_5=$cxn->query($sql_5))\n\t\t{\n\t\t\t$err_5='your course list didn\\'t happen because: '\n\t\t\t.'ERRNO: '\n\t\t\t.$cxn->errno\n\t\t\t.' ERROR: '\n\t\t\t.$cxn->error\n\t\t\t.' for this query: '\n\t\t\t.$query_5\n\t\t\t.PHP_EOL;\n\t\t\ttrigger_error($err_5, E_USER_WARNING);\t\t\t\n\t\t}\n\t\n\t\t//insert your door_id alongside your product_id so you can keep track of those products that are the same, but have a different finish / color\n\t\t$sql_2=\"insert into cart (session_id, product_id, product_cost, door_id, quantity, sequence) values ('$the_session_id', '$product_id', '$the_product_cost', '$door_id', '$quantity','2')\";\n\t\t//echo $sql_2;\n\t\tif(!$query_2=$cxn->query($sql_2))\n\t\t{\n\t\t\t$err='your course list didn\\'t happen because: '\n\t\t\t.'ERRNO: '\n\t\t\t.$cxn->errno\n\t\t\t.' ERROR: '\n\t\t\t.$cxn->error\n\t\t\t.' for this query: '\n\t\t\t.$query_2\n\t\t\t.PHP_EOL;\n\t\t\ttrigger_error($err, E_USER_WARNING);\n\t\t}\n\t\t\n\t\t//now you're going through all of the features that were just posted\n\t\t\n\t\tfor($x=1; $x<=$the_count; $x++)\n\t\t{\n\t\t\tif(isset($_POST['select_'.$x])&&trim($_POST['select_'.$x])<>\"\")\n\t\t\t{\n\t\t\t\t$pieces=explode(\"_\", $_POST['select_'.$x]);\n\t\t\t\t//$pieces[0] - this is the option_name_id in your feature table, if there's a cost, it will show up here\n\t\t\t\t//$pieces[1] - this is the id of of the option as it appears in the features table\n\t\t\t\t//$pieces[2] - this is the cost including any adjustment that's been made if the corresponding door is on sale\n\t\t\t\t$sql_3=\"insert into cart (session_id, product_id, option_id, feature_id, feature_cost, door_id) VALUES ('$the_session_id', '$product_id', '$pieces[0]', '$pieces[1]', '$pieces[2]', '$door_id')\"; \n\t\t\t\tif(!$query_3=$cxn->query($sql_3))\n\t\t\t\t{\n\t\t\t\t\t$err_3='your course list didn\\'t happen because: '\n\t\t\t\t\t.'ERRNO: '\n\t\t\t\t\t.$cxn->errno\n\t\t\t\t\t.' ERROR: '\n\t\t\t\t\t.$cxn->error\n\t\t\t\t\t.' for this query: '\n\t\t\t\t\t.$query\n\t\t\t\t\t.PHP_EOL;\n\t\t\t\t\ttrigger_error($err, E_USER_WARNING);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t//next is what happens when the user's session id is already in the cart\n\t}\n\telse\n\t{\n\t//figure out what the sequence number needs to be \n\t$sql_8=\"select sequence from cart where session_id='$the_session_id' and quantity>'0' order by sequence DESC LIMIT 1\";\n\t$query_8=$cxn->query($sql_8);\n\t$row_8=$query_8->fetch_object();\n\t$new_sequence=$row_8->sequence+1;\n\n\t//figure out if user is adding a different door. If so, add it here\n\n\t\t$sql_3=\"insert into cart (session_id, door_id, product_id, door_cost, sequence) values ('$the_session_id', '$door_id', '$product_id', '$door_cost', '$new_sequence')\";\n\t\tif(!$query_3=$cxn->query($sql_3))\n\t\t{\n\t\t\t$err_3='your course list didn\\'t happen because: '\n\t\t\t.'ERRNO: '\n\t\t\t.$cxn->errno\n\t\t\t.' ERROR: '\n\t\t\t.$cxn->error\n\t\t\t.' for this query: '\n\t\t\t.$query\n\t\t\t.PHP_EOL;\n\t\t\ttrigger_error($err, E_USER_WARNING);\n\t\t}\n\t\t//increase the sequence value by 10px\n\t\t$new_sequence=$new_sequence+1;\n\t\t\n\t\t//the user is adding another door, so go ahead and enter whatever products they just inserted according to the same sequence number\t\n\t\t$sql_5=\"insert into cart (session_id, product_id, product_cost, quantity, sequence, door_id) values ('$the_session_id', '$product_id', '$the_product_cost','$quantity', '$new_sequence', '$door_id')\";\n\t\t//echo $sql_5;\n\t\tif(!$query_5=$cxn->query($sql_5))\n\t\t{\n\t\t\t$err_5='your course list didn\\'t happen because: '\n\t\t\t.'ERRNO: '\n\t\t\t.$cxn->errno\n\t\t\t.' ERROR: '\n\t\t\t.$cxn->error\n\t\t\t.' for this query: '\n\t\t\t.$query\n\t\t\t.PHP_EOL;\n\t\t\ttrigger_error($err, E_USER_WARNING);\n\t\t}\n\t\t//features\n\t\tfor($x=1; $x<=$the_count; $x++)\n\t\t{\n\t\t\tif(isset($_POST['select_'.$x])&&trim($_POST['select_'.$x])<>\"\")\n\t\t\t{\n\t\t\t\t$pieces=explode(\"_\", $_POST['select_'.$x]);\n\t\t\t\t//$pieces[0] - this is the option_name_id in your feature table, if there's a cost, it will show up here\n\t\t\t\t//$pieces[1] - this is the id of of the option as it appears in the features table\n\t\t\t\t//$pieces[2] - this is the cost including any adjustment that's been made if the corresponding door is on sale\n\t\t\t\t//we don't worry about sequence here because all of the options/features are tied to a product id\n\t\t\t\t\t\n\t\t\t\t//option doesn't exist\n\t\t\t\t$sql_7=\"insert into cart (session_id, product_id, option_id, feature_id, feature_cost, door_id) VALUES ('$the_session_id', '$product_id', '$pieces[0]', '$pieces[1]', '$pieces[2]', '$door_id')\"; \n\t\t\t\tif(!$query_7=$cxn->query($sql_7))\n\t\t\t\t{\n\t\t\t\t\t$err_7='your course list didn\\'t happen because: '\n\t\t\t\t\t.'ERRNO: '\n\t\t\t\t\t.$cxn->errno\n\t\t\t\t\t.' ERROR: '\n\t\t\t\t\t.$cxn->error\n\t\t\t\t\t.' for this query: '\n\t\t\t\t\t.$query\n\t\t\t\t\t.PHP_EOL;\n\t\t\t\t\ttrigger_error($err, E_USER_WARNING);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} \n}", "public function cart()\n {\n if(Auth::check()) {\n $user_email = Auth::user()->email;\n $userCart = DB::table('cart')->where('user_email', $user_email)->get();\n } else {\n $session_id = Session::get('session_id');\n $userCart = DB::table('cart')->where('session_id', $session_id)->get();\n }\n \n // Get images for cart items\n foreach($userCart as $key => $product){\n $product = Product::where('id', $product->product_id)->first();\n $userCart[$key]->image = $product->image;\n }\n $meta_title = \"Shopping Cart - E-com Website\";\n $meta_description = \"View Shopping Cart of E-com Website\";\n $meta_keywords = \"Shopping Cart - E-com Website\";\n return view('products.cart', compact('userCart', 'meta_title','meta_description', 'meta_keywords'));\n }", "function addToCart()\n {\n $idMobile = null;\n $param = getParameter();\n if (!empty($param[0])) {\n $idMobile = $param[0];\n $result = $this->model->khachhang->addToCart($idMobile);\n }\n $this->layout->set('null');\n $this->view->load('frontend/addToCartResult', [\n 'result' => $result\n ]);\n }", "function products(){\n\t\tif(isset($_POST['Controller']) && $_POST['Controller'] == \"AddToCart\" && isset($_POST['qty']) && isset($_POST['id']) && isset($_POST['price']) ){\n\t\t\t$this->addToCart();\n\t\t\treturn;\n\t\t}\n\t\t$myBuff = ''; // Buffer holding HTML from our templates \n\t\t$PString = ''; // Empty string to hold our pagination\n\t\ttry {\n\t\t\tif(isset($_GET['id'])){\n\t\t\t\tif($contBuff=$this->LoadTemplate($this->rp.$this->TEMPPath.$this->TEMP['pLarge'])){\n\t\t\t\t\t$programs = new SoapClient($this->HTTP.$this->URLS['programs']); // Initiate our SOAP client\n\t\t\t\t\t\n\t\t\t\t\t$wrapper = new stdClass;\n\t\t\t\t\t$wrapper->id = new SoapVar( $_GET['id'] , XSD_STRING, \"string\"); // Set our Start date\n\t\t\t\t\t\n\t\t\t\t\t$res = $programs->Get($wrapper); // Retrieve active programs from our SOAP client\n\t\t\t\t\t//var_dump($rows);\n\t\t\t\t\t$info=&$res->GetResult;\n\t\t\t\t\t\n\t\t\t\t\t$SDate=date(\"M j, Y\",strtotime($info->NITA_StartDate)); // format our program start date\n\t\t\t\t\t$EDate=date(\"M j, Y\",strtotime($info->NITA_EndDate)); // format our program end date\n\t\t\t\t\t$Facility=array();\n\t\t\t\t\tif(!is_null($info->NITA_FacilityName)) $Facility[]=$info->NITA_FacilityName;\n\t\t\t\t\tif(!is_null($info->NITA_FacilityAddr1)) $Facility[]=$info->NITA_FacilityAddr1;\n\t\t\t\t\tif(!is_null($info->NITA_FacilityAddr2)) $Facility[]=$info->NITA_FacilityAddr2;\n\t\t\t\t\tif(!is_null($info->NITA_FacilityAddr3)) $Facility[]=$info->NITA_FacilityAddr3;\n\t\t\t\t\tif(!is_null($info->NITA_FacilityAddr4)) $Facility[]=$info->NITA_FacilityAddr4;\n\t\t\t\t\tif(!is_null($info->NITA_FacilityCity) && !is_null($info->NITA_FacilityState) && !is_null($info->NITA_FacilityZip) )\n\t\t\t\t\t\t\t$Facility[]= (!is_null($info->NITA_FacilityCity)?$info->NITA_FacilityCity.', ':'').\n\t\t\t\t\t\t\t\t\t\t\t\t\t (!is_null($info->NITA_FacilityState)?$info->NITA_FacilityState.' ':'').\n\t\t\t\t\t\t\t\t\t\t\t\t\t (!is_null($info->NITA_FacilityZip)?$info->NITA_FacilityZip:'');\n\t\t\t\t\t\n\t\t\t\t\t$CLE=array();\n\t\t\t\t\tif(!is_null($info->Nita_50MinuteCredits)) $CLE[]=\"50 Minute Credits: \".$info->Nita_50MinuteCredits;\n\t\t\t\t\tif(!is_null($info->Nita_60MinuteCredits)) $CLE[]=\"60 Minute Credits: \".$info->Nita_60MinuteCredits;\n\t\t\t\t\tif(count($CLE)==0) $CLE[]=\"No CLE Credits\";\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$this->HTML.=$this->processCodes($contBuff,array('ID'\t\t\t\t=> $this->ckNULL($info->NITA_ProgramId),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Name'\t\t\t=> $this->ckNULL($info->NITA_Title),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Desc'\t\t\t=> $this->ckNULL($info->NITA_Description),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'SKU'\t\t\t=> $info->NITA_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'SDate'\t\t=> $SDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'EDate'\t\t=> $EDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Avail'\t\t=> 'Open to Registration',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Fac'\t\t\t=> '<p>'.implode(\"<br />\",$Facility).'</p>',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'CLE'\t\t\t=> '<p>'.implode(\"<br />\",$CLE).'</p>',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Price'\t\t=> '$'.number_format($this->ckNULL($info->NITA_TuitionPriceStandard),2,'.',','),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'PriceInt'\t=> $this->ckNULL($info->NITA_TuitionPriceStandard),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Attr'\t\t\t=> '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'AddCart'\t=> $_SERVER['PHP_SELF'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'URL'\t\t\t=> $this->Files['prodDet'].'?id='.$info->NITA_ProgramId,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\t\t} else throw new FatalError('Cannot open template '.$this->TEMP['pLarge']);\n\t\t\t} else { // If we have not selected a program to look at provide a list of programs.\n\t\t\t\t$programs = new SoapClient($this->HTTP.$this->URLS['programs']); // Initiate our SOAP client\n\t\t\t\t// var_dump($programs->__getFunctions() ); // Dumps the active function from our client\n\t\t\t\t$wrapper = new stdClass;\n\t\t\t\t$wrapper->startDate = new SoapVar( date(\"c\") , XSD_DATETIME, \"dateTime\"); // Set our Start date\n\t\t\t\t$wrapper->endDate = new SoapVar( date(\"c\",mktime(0,0,0,date(\"m\"),date(\"d\"),date(\"Y\")+5 ) ), XSD_DATETIME, \"dateTime\"); // Drop an end date a year out\n\t\n\t\t\t\t$rows = $programs->GetActivePrograms($wrapper); // Retrieve active programs from our SOAP client\n\t\t\t\tif(isset($_GET['s'])) $this->SKey=explode(',',$_GET['s']);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tif($contBuff=$this->LoadTemplate($this->rp.$this->TEMPPath.$this->TEMP['pListCont'])){ // Get our product list template from the server\n\t\t\t\t\t$contBuff=$this->processCodes($contBuff, array(\t'SortTitle'\t\t=>$_SERVER['PHP_SELF'].'?s=Name,'.(($this->SKey[0]=='Name' && $this->SKey[1]=='ASC')?'DESC':'ASC'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'SortDate'\t\t=>$_SERVER['PHP_SELF'].'?s=Date,'.(($this->SKey[0]=='Date' && $this->SKey[1]=='ASC')?'DESC':'ASC'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'SortLoc'\t\t\t=>$_SERVER['PHP_SELF'].'?s=Location,'.(($this->SKey[0]=='Location' && $this->SKey[1]=='ASC')?'DESC':'ASC'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'SortPrice'\t\t=>$_SERVER['PHP_SELF'].'?s=Price,'.(($this->SKey[0]=='Price' && $this->SKey[1]=='ASC')?'DESC':'ASC')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)); // Drop our sorting links into the product list\n\t\t\t\t\t//var_dump($rows);\n\t\t\t\t\t$programs=&$rows->GetActiveProgramsResult->ProgramModel;// Set our list of programs to an array for easier use\t\t\t\t\n\t\t\t\t\t$Sorting=array();// Our Sorting header\n\t\t\t\t\tif( is_array($this->SArray[$this->SKey[0]]) ) foreach($this->SArray[$this->SKey[0]] as $Sort) $Sorting[$Sort]=$this->SKey[1];\n\t\t\t\t\telse $Sorting[$this->SArray[$this->SKey[0]]]=$this->SKey[1];\n\t\t\t\t\t\n\t\t\t\t\t$this->ObjectSorter($programs, $Sorting); // Sort our array of objects based on an object property\n\t\t\t\t\t\n\t\t\t\t\tif($itemBuff=$this->LoadTemplate($this->rp.$this->TEMPPath.$this->TEMP['pList'])){// Get Item templace from the server\n\t\t\t\t\t\tif(intval($this->Limit)>0){ \n\t\t\t\t\t\t\tif(isset($_GET['p'])) $this->Page=intval($_GET['p']);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->TotalRows = count($programs); // Total number of products in the database\n\t\t\t\t\t\t\t$this->TotalPages = ceil($this->TotalRows/$this->Limit)-1;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$PString=$this->Pagination(); // Get our pagination string from our class function\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$programs = array_slice($programs, ($this->Page*$this->Limit), $this->Limit); // Get the programs on our selected page\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tforeach ($programs as $row){ // For each program set the appropriate data to our hooks\n\t\t\t\t\t\t\t$SDate=date(\"M j, Y\",strtotime($row->NITA_StartDate)); // format our program start date\n\t\t\t\t\t\t\t$EDate=date(\"M j, Y\",strtotime($row->NITA_EndDate)); // format our program end date\n\t\t\t\t\t\t\t$myBuff.=$this->processCodes($itemBuff,array('ID'=>\t\t\t\t$this->ckNULL($row->NITA_ProgramId\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Name'=>\t\t\t$this->ckNULL($row->NITA_Title\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'SDate'=>\t\t$SDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'EDate'=>\t\t$EDate,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'City'=>\t\t\t$this->ckNULL($row->NITA_FacilityCity\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'State'=>\t\t$this->ckNULL($row->NITA_FacilityState\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'Price'=>\t\t'$'.number_format($this->ckNULL($row->NITA_TuitionPriceStandard),2,'.',','),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'PriceInt'=>\t$this->ckNULL($row->NITA_TuitionPriceStandard),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'AddCart'=>\t$_SERVER['PHP_SELF'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'URL'=>\t\t\t$this->Files['prodDet'].'?id='.$this->ckNULL($row->NITA_ProgramId)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($programs);\n\t\t\t\t\t} else throw new FatalError('Cannot open template '.$this->TEMP['pList']);\n\t\t\t\t\t$this->HTML.=str_replace(\"[List]\", $myBuff, $contBuff); // Place our products into our template\n\t\t\t\t} else throw new FatalError('Cannot open template '.$this->TEMP['pListCont']);\n\t\t\t}\n\t\t\t$this->HTML=$PString.$this->HTML.$PString;\n\t\t} catch (FatalError $e) {\n\t\t\t$this->NitaERROR(102, $e->getMessage()); // Coding fault 102\n\t\t} catch (SoapFault $fault) {\n\t\t\t//echo '<pre>';\n\t\t\t//var_dump($fault);\n\t\t\t//echo '</pre>';\n\t\t\t$this->NitaERROR(101, $fault->faultcode.\", \".$fault->faultstring); // SOAP fault 101, error to our SOAP connection\n\t\t} catch (Exception $e) {\n\t\t\t$this->NitaERROR(103, $e->getMessage()); // Catch all error 103\n\t\t}\n\t}", "public function cart(){\n return view('pages.cart', compact('cart'));\n }", "public function add_to_cart($params) {\n if ($params[0]) {\n $_REQUEST['id_item'] = $params[0];\n $_REQUEST['quantity'] = 1;\n }\n\n $hash = self::getHash();\n $cart = $this->NeoCartModel->getCart($hash);\n\n //hai sa bagam produsul in shopping cart\n $this->NeoCartModel->addToCart($_REQUEST, $cart);\n\n controller::set_alert_message(\"<br/>Produsul a fost adaugat in cos\");\n header(\"Location: \" . $this->getRefPage());\n exit();\n }", "public function orderAction()\r\n\t{\r\n\r\n\r\n\r\n\r\n\t\t//Session::delete('cart');\r\n\r\n\t\t$cart = Session::get('cart');\r\n\t\t$motoID = $this->_arrParam['moto_id'];\r\n\t\t$price = $this->_arrParam['price'];\r\n\t\t// $data = $this->_model->infoItem($this->_arrParam);\r\n\t\t// $quantity = $this->_arrParam['quantity'];\r\n\t\t// //$name = $this->_arrParam['name'\t];\r\n\t\tif (empty($cart)) {\r\n\t\t\t$cart['quantity'][$motoID] = 1; // so luong\r\n\t\t\t$cart['price'][$motoID] = $price; //gia tien\r\n\t\t\t// $cart['name'][$motoID] = $data['name'];\r\n\t\t\t// $cart['picture'][$motoID] = $data['picture'];\r\n\t\t\t// $cart['id'][$motoID] = $data['id'];\t\r\n\t\t} else {\r\n\t\t\tif (key_exists($motoID, $cart['quantity'])) { // da ton tai sach can mua\r\n\t\t\t\t$cart['quantity'][$motoID] += 1;\r\n\t\t\t\t$cart['price'][$motoID] = $price * $cart['quantity'][$motoID];\r\n\t\t\t\t// $cart['name'][$motoID] = $data['name'];\r\n\t\t\t\t// $cart['picture'][$motoID] = $data['picture'];\r\n\t\t\t\t// $cart['id'][$motoID] = $data['id'];\r\n\t\t\t} else { // chua ton tai sach can mua\r\n\t\t\t\t$cart['quantity'][$motoID] = 1;\r\n\t\t\t\t$cart['price'][$motoID] = $price;\r\n\t\t\t\t// $cart['name'][$motoID] = $data['name'];\r\n\t\t\t\t// $cart['picture'][$motoID] = $data['picture'];\r\n\t\t\t\t// $cart['id'][$motoID] = $data['id'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tSession::set('cart', $cart);\r\n\t\tURL::redirect('frontend', 'moto', 'detail', ['moto_id' => $motoID]);\r\n\t}", "public function user_cart_submit(){\n\n\n\t\tforeach ($_SESSION as $name_2 => $value_2) {\n\t\t\t# code...\n\n\t\t\tif ($value_2 > 0) {\n\t\t\t\t# code...\n\t\t\t\tif (substr($name_2,0, 5) == 'cart_') {\n\t\t\t\t\t# code...\n\n\t\t\t\t\t$id = substr($name_2, 5, (strlen($name_2) - 5));\n\n\t\t\t\t\t$get_2 = mysql_query(\"SELECT * FROM `products` WHERE `id` =\".mysql_real_escape_string((int)$id).\"\");\n\n\t\t\t\t\t while ($get_row_2 = mysql_fetch_assoc($get_2)) {\n \t\t\t\t# code...\n\n $sub_2 = $get_row_2['price'] * $value_2;\n\n\n \n $main_2 = '<h3><img src=\"'.$get_row_2['image_1'].'\" alt=\"\" width=\"80\" height=\"100\" border=\"0\" />'.'<br>'.$get_row_2['product_name'] . ' x ' . $value_2 . ' @ <span class=\"blue\">'.$get_row_2['price'].'$ &nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;'.$sub_2.'$</span> </h3>\n </br>';\n echo $main_2;\n\n\n\n\n \n//id,product_id's,name,email,address,total\n\n }\n\n\n\t\t\t\t}\n\t\t$total_2 += $sub_2;\n\t\t\t}\n\n\n\n\t\t}\n\t\t $random_2 = \"\";\n if ($total_2 == 0) {\n # code...\n $random_2 .= '<b><span class=\"price\">Your cart Is empty</b>';\n } else {\n\n \n $random_2 .= ' <div class=\"prod_price_big\"><span class=\"blue\">Price: &nbsp;</span> <span class=\"price\">'.$total_2.'$</span></div>';\n\n \n }\n echo $random_2;\n\n /* Cart Showing system is END */\n\n\n\n\t}", "public function prod_list_cart() {\n $Shopping = new ShoppingCart();\n if ($this->input->post('click_access') != null && $this->input->post('click_access') == 'click_access') {\n $id_product = $this->input->post('h_id');\n $code_product = $this->input->post('h_code');\n $name_product = $this->input->post('h_name');\n $price_product = $this->input->post('h_price');\n $currency_product = $this->input->post('h_curency');\n $number = 1;\n $Shopping->insert($id_product, $code_product, $name_product, $price_product, $currency_product, $number);\n }\n \n // menu\n $array_menus = array();\n $filter = array();\n $filter['parent_id'] = 0;\n Menu::getMenuTree($array_menus, $filter);\n \n \n $data['title_page'] = lang('title_page_order');\n $data['description'] = lang('description_page_order');\n $data['keywords'] = lang('keywords_page_order');\n \n $data['selected'] = '';\n $data['array_menus'] = $array_menus;\n $data['shopping'] = $Shopping->get_list();\n $data['content'] = 'order_list';\n $this->load->view('temp', $data);\n }", "public function index()\n\t{\n\t\t$items = \\Cart::getContent();\n\t\t$this->data['items'] = $items;\n\n\t\treturn $this->load_theme('carts.index', $this->data);\n\t}", "public function index()\n\t{\n# \\Cart::destroy();return;\n $contents = \\Cart::content()->paginate(5);\n// foreach ($contents as $row) {\n//// echo 'You have ' . $row->qty . ' items of ' . $row->product->name . ' with description: \"' . $row->product->description . '\" in your cart.';\n// }\n\n $total = number_format(\\Cart::total(), 2);\n $this->view('shopcart.index', compact('contents', 'total'));\n\n\t}", "public function carrito() {\n\n $cadena = '';\n $carrito = $this->cart->contents();\n\n\n foreach ($carrito as $row) {\n\n $cadena .= '<tr>';\n $cadena .= '<td class=\"cart_product\">';\n $cadena .= '<a href=\"\"><img src=\"' . base_url() . 'assets/images/cart/one.png\" alt=\"\"></a>';\n $cadena .= '</td>';\n $cadena .= '<td class=\"cart_description\">';\n $cadena .= '<h4>' . $row['name'] . '</h4>';\n $cadena .= '<p>Sku: ' . $row['id'] . '</p>';\n $cadena .= '</td>';\n $cadena .= '<td class=\"cart_price\">';\n $cadena .= '<p>$' . $this->recursos->Formato1($row['price']) . '</p>';\n $cadena .= '</td>';\n $cadena .= '<td class=\"cart_quantity\">';\n $cadena .= '<div class=\"cart_quantity_button\">';\n $cadena .= '<input type=\"hidden\" id=\"base\" value=\"' . base_url() . '\">';\n $cadena .= '<input type=\"hidden\" id=\"original' . $row['rowid'] . '\" value=\"' . $row['qty'] . '\">';\n $cadena .= '<input class=\"cart_quantity_input\" id=\"cant' . $row['rowid'] . '\" onkeypress=\"return ValidNum(event)\" type=\"text\" name=\"quantity\" value=\"' . $row['qty'] . '\" autocomplete=\"off\" size=\"5\">';\n $cadena .= '</div>';\n $cadena .= '</td>';\n $cadena .= '<td class=\"cart_total\">';\n $cadena .= '<p id=\"total\" class=\"cart_total_price\">$' . $this->recursos->Formato1($row['subtotal']) . '</p>';\n $cadena .= '</td>';\n $cadena .= '<td>';\n $cadena .= '<button id=\"actualiar\" onclick=\"return calculo(\\'' . $row['rowid'] . '\\');\" class=\"btn btn-success pull-left\" data-placement=\"top\" data-toggle=\"tooltip\" title=\"ACTUALIZAR CARRO\" ><i class=\"fa fa-refresh\"></i></button>';\n $cadena .= '</td>';\n $cadena .= '<td>';\n $cadena .= '<button onclick=\"return eliminar(\\'' . $row['rowid'] . '\\',0);\" class=\"btn btn-danger\" data-placement=\"right\" data-toggle=\"tooltip\" title=\"ELIMINAR DE CARRITO\" ><i class=\"fa fa-trash-o\"></i></button>';\n $cadena .= '</td>';\n $cadena .= '</tr>';\n }\n\n\n\n $data['detalle'] = $cadena;\n $data['total'] = $this->recursos->Formato1($this->cart->total());\n\n $this->Plantilla('cart', $data);\n }", "public function addToCart(){\n\t\t// if the user has accepted to use cookies, they will be stored\n\t\tif(isset($_COOKIE['isUsingCookies']) && $_COOKIE['isUsingCookies'] == true){\n\t\t\t$expirationTime = time()+60*60*24*62;\n\t\t}else{\n\t\t\t$expirationTime = 0;\n\t\t}\n\n\t\t// unset unused attributes from variable\n\t\tunset($_POST['_token']);\n\n\t\t// add the product to the current cart or increase the quantity if it is already in the cart\n\t\tif(isset($_COOKIE['cart'])){\n\t\t\t$previousCart = json_decode($_COOKIE['cart'],true);\n\t\t\tforeach ($previousCart as $key => $product) {\n\t\t\t\tvar_dump($product);\n\t\t\t\techo'<br>';\n\n\t\t\t\tif($_POST['id_product'] == $product['id_product']){\n\t\t\t\t\t$previousCart[$key]['quantity'] += 1;\n\t\t\t\t\tsetcookie('cart', json_encode($previousCart), $expirationTime);\n\t\t\t\t\treturn redirect()->route('cart');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tarray_push($previousCart, ['id_product' => $_POST['id_product'], 'quantity' => '1', 'price' => $_POST['price'], 'picture_url' => $_POST['picture_url'], 'name' => $_POST['name'], 'picture_alt' => $_POST['picture_alt'], 'stock' => $_POST['stock'], 'item_sold' => $_POST['item_sold'], 'name_category' => $_POST['name_category']]);\n\t\t\t$newCart = json_encode($previousCart);\n\n\t\t\tsetcookie('cart', $newCart, $expirationTime);\n\t\t}else{\n\t\t\tsetcookie('cart', json_encode([['id_product' => $_POST['id_product'], 'quantity' => '1', 'price' => $_POST['price'], 'picture_url' => $_POST['picture_url'], 'name' => $_POST['name'], 'picture_alt' => $_POST['picture_alt'], 'stock' => $_POST['stock'], 'item_sold' => $_POST['item_sold'], 'name_category' => $_POST['name_category']]]), $expirationTime);\n\t\t}\n\t\treturn redirect()->route('cart');\n\t}", "function add_to_cart(){\n\t\t$data = array(\n\t\t\t'id' => $this->input->post('produk_id'), \n\t\t\t'name' => $this->input->post('produk_nama'), \n\t\t\t'price' => $this->input->post('produk_harga'), \n\t\t\t'qty' => $this->input->post('quantity'), \n\t\t);\n\t\t$this->cart->insert($data);\n echo $this->show_cart(); //tampilkan cart setelah added\n }", "function printCart () {\r\n //gets all products from the cart\r\n $products = fetchProductsFromCartAsArray();\r\n\r\n if (count($products) > 0) {\r\n\t\tfor ($i=0; $i < count($products) ; $i++) {\r\n\t\t\tprint(\"<div class='row p-3 ml-2 cartItem'>\r\n\t\t\t\t\t\t\t <!-- Afbeelding product -->\r\n\t\t\t\t\t\t\t <div class='col-2'>\r\n\t\t\t\t\t\t\t \t <img class='img-fluid rounded img-thumbnail' src='https://sc02.alicdn.com/kf/HTB1wYdzPFXXXXaXapXXq6xXFXXX2/USB-Flash-Drive-8-GB-Memory-Stick.jpg_350x350.jpg' />\r\n\t\t\t\t\t\t\t </div>\r\n\r\n\t\t\t\t\t\t\t <!-- Naam product -->\r\n\t\t\t\t\t\t\t <div class='col-4'>\r\n\t\t\t\t\t\t\t \t <span class='badge-pill badge-primary mr-2'>\" . $products[$i]['amount'] . \"</span><b><a clas='cart-title' href='product.php?id=\" . $products[$i]['StockItemID'] . \"'>\" . $products[$i]['StockItemName'] . \"</a></b>\r\n\t\t\t\t\t\t\t </div>\r\n\r\n\t\t\t\t\t\t\t <!-- Naam product -->\r\n\t\t\t\t\t\t\t <div class='col-3'>\r\n\t\t\t\t\t\t\t \t <p>€ \" . $products[$i]['RecommendedRetailPrice'] * $products[$i]['amount'] . \"</p>\r\n\t\t\t\t\t\t\t </div>\r\n\r\n\t\t\t\t\t\t\t <!-- Verwijder knoppen -->\r\n\t\t\t\t\t\t\t <div class='col-3'>\r\n\t\t\t\t\t\t\t\t <form class='' action='winkelwagen.php' method='post'>\r\n\t\t\t\t\t\t\t\t\t <input type='number' name='ID' value='\" . $products[$i]['StockItemID'] . \"' hidden>\r\n\t\t\t\t\t\t\t\t\t <input type='number' name='amount' value=\" . (string)$products[$i]['amount'] . \" hidden>\r\n\t\t\t\t\t\t\t\t\t <button type='submit' class='btn btn-danger' name='RemoveItem'><i class='fas fa-trash'></i> Remove all</button>\r\n\t\t\t\t\t\t\t\t\t</form>\r\n\t\t\t\t\t\t\t\t\t<form class='' action='winkelwagen.php' method='post'>\r\n\t\t\t\t\t\t\t\t\t\t<input type='number' name='ID' value='\" . $products[$i]['StockItemID'] . \"' hidden>\r\n\t\t\t\t\t\t\t\t\t\t<input type='number' name='amount' value=1 hidden>\r\n\t\t\t\t\t\t\t\t\t <button type='submit' class='btn btn-danger' name='RemoveItem'><i class='fas fa-trash'></i> Remove one</button>\r\n\t\t\t\t\t\t\t\t\t</form>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\");\r\n\t\t}\r\n\t} else {\r\n \tprint(\"<div class='alert alert-danger mx-auto my-5' role='alert'>\r\n \t\t\t\t <strong>Oh snap!</strong> Your cart is empty. <i class='far fa-frown'></i>\r\n\t\t\t\t\t </div>\");\r\n\t}\r\n}", "public function addToCart()\n\t{\n\t\t$id \t= $this->request['item_id'];\n\t\t$number = intval($this->request['quantity']);\n\t\t\n\t\t#permission and enabled?\n\t\t$this->registry->ecoclass->canAccess('cart', false);\n\t\t\n\t\t#init\n\t\t$checks \t\t= array();\n\n\t\t#break up the item classification that we're adding to our cart\t\t\t \n\t\t$item_input_name = explode('_' , $id);\n\n\t\t$type \t\t\t= $item_input_name[0];\n\t\t$id \t\t\t= $item_input_name[1];\n\t\t$banktype \t\t= strtolower($item_input_name[2]);\n\n\t\t#loan hotfix\n\t\t$type\t\t\t= ( $banktype != 'loan' ) ? $type : $banktype;\n\t\t\n\t\t#grab this cart types class object\n\t\t$cartItemType = $this->registry->ecoclass->grabCartTypeClass($type);\n\n\t\t#format number a bit..\t\n\t\t$number = $this->registry->ecoclass->makeNumeric($number, true);\n\n\t\t#grab item from cache\n\t\t$theItem\t= $cartItemType->grabItemByID($id);\n\t\t\t\t\n\t\t#check for any illegal activity :shifty:\n\t\t$checks = $this->checkCartAdditions( $id, $type, $banktype, $number, $theItem, false, $cartItemType );\n\t\t\n\t\t#if after all that we have an error...\n\t\tif ( $checks['error'] )\n\t\t{\n\t\t\t$this->registry->output->showError( $checks['error'] );\n\t\t}\n\n\t\t#no error? Lets throw the item and number in our cart!\n\t\tif ( $checks['cartItem'] )\n\t\t{\n\t\t\t$add2Item = array('c_quantity' => $checks['cartItem']['c_quantity'] + $checks['number'] );\n\t\t\t\t\t\t\t\n\t\t\t$this->DB->update( 'eco_cart', $add2Item, 'c_member_id = ' .$this->memberData['member_id'].' AND c_id = '.$checks['cartItem'] ['c_id'] );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$newItem = array( 'c_member_id' \t=> $this->memberData['member_id'],\n\t\t\t\t\t\t\t 'c_member_name'\t=> $this->memberData['members_display_name'],\n\t\t\t\t\t\t\t 'c_type' \t\t\t=> ( $type == 'loan' ) ? 'bank' : $type,\n\t\t\t\t\t\t\t 'c_type_id' \t\t=> $id,\n\t\t\t\t\t\t\t 'c_type_class' \t=> ( $type == 'bank' || $type == 'loan' ) ? $banktype : '',\n\t\t\t\t\t\t\t 'c_quantity'\t\t=> $checks['number'],\n\t\t\t\t\t\t\t);\n\t\t\t$this->DB->insert( 'eco_cart', $newItem );\n\t\t}\n\t\t\n\t\t#redirect message and show what we added\n\t\t$redirect_message = $cartItemType->add2CartRedirectMessage($checks, $theItem);\n\t\t\n\t\t$this->registry->output->redirectScreen( $redirect_message, $this->settings['base_url'] . \"app=ibEconomy&amp;tab=buy&amp;area=cart\" );\n\t}", "public function vpup_set_cart() \n {\n // Used to decide if we need to redirect to the cart. \n $should_redirect = false;\n\n // TODO: Refactor this to be dynamic. \n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'vetCertQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 147, $_GET[ 'vetCertQuantity'] );\n $should_redirect = true;\n }\n\n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'vetCertAvianQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 149, $_GET[ 'vetCertAvianQuantity'] );\n $should_redirect = true;\n }\n\n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'groomerQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 150, $_GET[ 'groomerQuantity'] );\n $should_redirect = true;\n }\n\n // Check our Product Quantity then add a cart item, if we have any items. \n if( $_GET[ 'trainerQuantity' ] > 0 ) {\n WC()->cart->add_to_cart( 151, $_GET[ 'trainerQuantity'] );\n $should_redirect = true;\n }\n\n // Return our cart redirect value\n return $should_redirect;\n }", "public function create()\r\n\t\t{\r\n\t\t\t//Validate request method\r\n\t\t\tif($this->getRequestMethod() != \"POST\"){\r\n\t\t\t\t$this->methodNotAllowed();\r\n\t\t\t}\r\n\r\n\t\t\t// Input validations\r\n\t\t\t$this->validation(array('sCartName','iProductId','iTotal','iTotalDiscount','iTotalWithDiscount','iTotalTax','iTotalWithTax','iGrandTotal'));\r\n\r\n\t\t\t$arrCartData = array(\r\n\t\t\t\t'sCartName'\t\t\t=> $this->_arrRequest['sCartName'],\r\n\t\t\t\t'iProductId' \t\t=> $this->_arrRequest['iProductId'],\r\n\t\t\t\t'iTotal'\t\t\t=> $this->_arrRequest['iTotal'],\r\n\t\t\t\t'iTotalDiscount'\t=> $this->_arrRequest['iTotalDiscount'],\r\n\t\t\t\t'iTotalWithDiscount'=> $this->_arrRequest['iTotalWithDiscount'],\r\n\t\t\t\t'iTotalTax'\t\t\t=> $this->_arrRequest['iTotalTax'],\r\n\t\t\t\t'iTotalWithTax'\t\t=> $this->_arrRequest['iTotalWithTax'],\r\n\t\t\t\t'iGrandTotal'\t\t=> $this->_arrRequest['iGrandTotal'],\r\n\t\t\t\t'dCreated'\t\t\t=> date(\"Y-m-d H:i:s\")\r\n\t\t\t);\r\n\r\n\t\t\t$iCartId = $this->insertRecord($this->_sCartTable,$arrCartData);\r\n\t\t\t$iStatus = ($iCartId>0) ? \"Success\" : \"False\";\r\n\t\t\t$sMessage = ($iCartId>0) ? \"Cart added successfully.\" : \"Fail to add.\";\r\n\r\n\t\t\t$arrResponse['status']\t= $iStatus;\r\n\t\t\t$arrResponse['message']\t= $sMessage;\r\n\t\t\t$this->response($this->json($arrResponse), 200);\r\n\t\t}", "public function cart()\n {\n\n $cartCollection = \\Cart::getContent();\n\n return view('cart',compact('cartCollection'));\n }", "function addItem(){\r\n\t global $itemsArray;\r\n\r\n //when the user clicks add, I pass id to the URL bar as a query string, again I'm checking if it exist or not (if the user has \r\n\t //clicked the add button or not)\r\n\r\n\t//if it exists on the URL bar I begin the magic of adding items to the Cart\r\n\r\n\tif ( isset( $_GET[\"itemId\"] ) ) {\r\n\t\t\r\n\t\t//This is the session that stores the total Price of the items in the cart\r\n\t\t//here I'm initializing it to zero....only if it doesn't exists at this point in time\r\n\t\t//if I don't put the ! sign the session will always be zero coz it's gonna be re-initized to zero everytime the\r\n //page is refreshed (everytime the add button is clicked)\r\n\t\tif(!isset($_SESSION[\"total\"])){\r\n\t\t\t$_SESSION[\"total\"] = 0;\r\n\t\t}\r\n //does the same as the above code but for the number of items in the cart\r\n\t\tif(!isset($_SESSION[\"nuOfItems\"])){\r\n\t\t\t$_SESSION[\"nuOfItems\"] = 0;\r\n\t\t}\r\n\r\n\t\t//==================================================================================================\r\n\t\t\t\t//ADDING ITEM TO THE CART\r\n\t\t//==================================================================================================\r\n\t\t\t\r\n \r\n //The code below ads items to the cart.....I grab the itemID from the URL bar and assign to a varible named itemId\r\n\t\t$itemId = (int) $_GET[\"itemId\"];\r\n\t\t//I grab the price from the URL bar also\r\n\t\t$price = $_GET[\"price\"];\r\n\r\n\t\t\t\r\n\t\tif (!isset( $_SESSION[\"cart\"][$itemId] ) ) {\r\n\r\n \r\n //kinda hard to explain....when this scripts loads I store objects of all items in the datbase to the $itemsArray, \r\n\t\t\t //each object in the array is indexed by it's id...Ok...\r\n\t\t\t //ie object1 will be at index 3 if it's Id is 3 .... ($itemsArray[3] = object1;)\r\n //now the statement below says take whatever object that is stored at index $itemId , in the itemsArray object and store\r\n\t\t\t // to the cart\r\n\r\n\t\t\t//reference: Beginning PHP 5.3 by Matt Doyle (Downloadable from google) ,Page 284. - Create a Simple Shopping Cart\r\n\r\n\t\t\t$_SESSION[\"cart\"][$itemId] = $itemsArray[$itemId];\r\n\r\n\r\n\t\t\t$_SESSION[\"nuOfItems\"] = $_SESSION[\"nuOfItems\"]+1; //increments the number of items in the cart \r\n\t\t\t$_SESSION[\"total\"] = $_SESSION[\"total\"]+$price; //increments current total by the that is recived from the URL\r\n\r\n\r\n\t\t}\r\n\t\t\r\n \r\n\t\t\t\r\n\t\t\r\n\t}\r\n\tsession_write_close();\r\n\t//header( \"Location: index.php\" ); //redirects the user to the home page\r\n\r\n}", "public function addToCart()\n {\n $id = intval($_GET[\"id\"]);\n if ($id > 0) {\n if ($_SESSION['cart'] != \"\") {\n $cart = json_decode($_SESSION['cart'], true);\n $found = false;\n for ($i = 0; $i < count($cart); $i++)\n {\n if ($cart[$i][\"product\"] == $id)\n {\n $cart[$i][\"quantity\"] = $cart[$i][\"quantity\"] + 1;\n $found = true;\n break;\n }\n }\n if (!$found)\n {\n $line = new stdClass;\n $line->product = $id;\n $line->quantity = 1;\n $cart[] = $line;\n }\n $_SESSION['cart'] = json_encode($cart);\n }\n else\n {\n $line = new stdClass;\n $line->product = $id;\n $line->quantity = 1;\n $cart[] = $line;\n $_SESSION['cart'] = json_encode($cart);\n }\n }\n }", "public function addtocartAction()\n\t{\n\t\trequire_once './app/Mage.php';\n\t\tMage::app('default');\n\n $params = array();\n\t\t$uid = $this->getRequest()->getPost('uid');\n $pid = $this->getRequest()->getPost('pid');\n\t\t$pqty = $this->getRequest()->getPost('qty');\n $size = $this->getRequest()->getPost('size');\n $params['cptions']['size_clothes'] = $size;\n\n $token = $this->getRequest()->getPost('token');\n\n if($this->tokenval() != $token)\n {\n $response['msg'] = 'You are not authorized to access this';\n $response['status'] = '1';\n echo json_encode($response);\n exit;\n }\n\n $connectionRead = Mage::getSingleton('core/resource')->getConnection('core_read');\n\n $selectrows = \"SELECT `sales_flat_quote`.* FROM `sales_flat_quote` WHERE customer_id= \".$uid.\" AND is_active = '1' AND COALESCE(reserved_order_id, '') = ''\";\n\n $rowArray = $connectionRead->fetchRow($selectrows);\n\n $entity_id = $rowArray['entity_id'];\n\n $select = $connectionRead->select()\n ->from('sales_flat_quote_item', array('*'))\n ->where('quote_id=?', $entity_id)\n ->where('product_id=?', $pid);\n\n $rowItems = $connectionRead->fetchAll($select);\n\n $qtycount = 0;\n $items = array();\n foreach ($rowItems as $item) {\n if ($item['price'] != 0) {\n $qty2 = number_format($item['qty'],0);\n $qtycount += $qty2;\n }\n }\n\n $_product = Mage::getModel('catalog/product')->load($pid);\n\n $qty = 0;\n $min = (float)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getNotifyStockQty();\n\n if ($_product->isSaleable()) {\n if ($_product->getTypeId() == \"configurable\") {\n $associated_products = $_product->loadByAttribute('sku', $_product->getSku())->getTypeInstance()->getUsedProducts();\n foreach ($associated_products as $assoc){\n $assocProduct = Mage::getModel('catalog/product')->load($assoc->getId());\n $qty += (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($assocProduct)->getQty();\n }\n } elseif ($_product->getTypeId() == 'grouped') {\n $qty = $min + 1;\n } elseif ($_product->getTypeId() == 'bundle') {\n $associated_products = $_product->getTypeInstance(true)->getSelectionsCollection(\n $_product->getTypeInstance(true)->getOptionsIds($_product), $_product);\n foreach($associated_products as $assoc) {\n $qty += Mage::getModel('cataloginventory/stock_item')->loadByProduct($assoc)->getQty();\n }\n } else {\n $qty = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();\n }\n }\n\n $response = array();\n\n $checkqty = $qtycount + $pqty;\n\n /*if($checkqty > 2)\n {\n $response['msg'] = 'The maximum quantity allowed for purchase is 2';\n $response['status'] = '0';\n echo json_encode($response);\n exit;\n }*/\n\n $params['product_id'] = $pid;\n $params['qty'] = $pqty;\n\n if ($_product->getTypeId() == \"configurable\" && isset($params['cptions'])) {\n\n // Get configurable options\n $productAttributeOptions = $_product->getTypeInstance(true)\n ->getConfigurableAttributesAsArray($_product);\n\n foreach ($productAttributeOptions as $productAttribute) {\n $attributeCode = $productAttribute['attribute_code'];\n\n if (isset($params['cptions'][$attributeCode])) {\n $optionValue = $params['cptions'][$attributeCode];\n\n foreach ($productAttribute['values'] as $attribute) {\n if ($optionValue == $attribute['store_label']) {\n $params['super_attribute'] = array(\n $productAttribute['attribute_id'] => $attribute['value_index']\n );\n //$params['options'][$productAttribute['attribute_id']] = $attribute['value_index'];\n }\n }\n }\n else{\n foreach ($productAttribute['values'] as $attribute) {\n if (trim($size) == $attribute['store_label']) {\n $params['super_attribute'] = array(\n $productAttribute['attribute_id'] => $attribute['value_index']\n );\n }\n }\n }\n }\n }\n\n unset($params['cptions']);\n\n //$childProduct = Mage::getModel('catalog/product_type_configurable')->getProductByAttributes(151, $_product);\n\n try {\n\n $customerData = Mage::getModel('customer/customer')->load($uid)->getData();\n\n $connectionRead = Mage::getSingleton('core/resource')->getConnection('core_read');\n\n $selectrows = \"SELECT `sales_flat_quote`.* FROM `sales_flat_quote` WHERE customer_id= \".$uid.\" AND is_active = '1' AND COALESCE(reserved_order_id, '') = ''\";\n\n $rowArray = $connectionRead->fetchRow($selectrows);\n\n if(!empty($rowArray))\n {\n $entity_id = $rowArray['entity_id'];\n $db_write = Mage::getSingleton('core/resource')->getConnection('core_read');\n $sqlQuerys = \"SELECT * FROM sales_flat_quote_item WHERE quote_id =\".$rowArray['entity_id'].\" AND product_id = \".$pid.\" ORDER BY item_id DESC\";\n $rowArrays = $db_write->fetchRow($sqlQuerys);\n\n if(!empty($rowArrays))\n {\n if($rowArrays['product_type'] == 'configurable')\n {\n $sqlQueryss = \"SELECT * FROM sales_flat_quote_item WHERE parent_item_id =\".$rowArrays['item_id'];\n $rowArrayss = $db_write->fetchRow($sqlQueryss);\n\n //check Quantity count\n //$sqlQuantity = \"SELECT * FROM sales_flat_quote_item WHERE item_id =\".$rowArrays['parent_item_id'];\n //$rowArrayqnt = $db_write->fetchRow($sqlQuantity);\n\n $checkqty = number_format($rowArrays['qty']) + $pqty;\n\n $oldsize = explode('(', $rowArrayss['name']);\n if(isset($oldsize[1])) {\n $newsize = str_replace(' )', '', $oldsize[1]);\n }\n else{\n $oldsize = explode('-', $rowArrayss['name']);\n if(isset($oldsize[1]))\n {\n $newsize = $oldsize[1];\n }\n else\n {\n $oldsize = explode('\\'', $rowArrayss['name']);\n if(isset($oldsize[1]))\n {\n $newsize = $size[1];\n }\n }\n }\n\n if(trim($newsize) == trim($size))\n {\n if($checkqty > 2)\n {\n $response['msg'] = 'The maximum quantity allowed for purchase is 2';\n $response['status'] = '0';\n echo json_encode($response);\n exit;\n }\n $connections = Mage::getSingleton('core/resource')->getConnection('core_write');\n $date = date('Y-m-d h:i:s');\n $totqty = $rowArrays['qty'] + $pqty;\n $totprice = $_product->getSpecialPrice() * $totqty;\n $connections->query(\"UPDATE `sales_flat_quote_item` SET `updated_at`='\".$date.\"',`qty`=\".$totqty.\",`row_total`=\".$totprice.\",`base_row_total`=\".$totprice.\",`price_incl_tax`=\".$totprice.\",`base_price_incl_tax`=\".$totprice.\",`row_total_incl_tax`=\".$totprice.\",`base_row_total_incl_tax`=\".$totprice.\" WHERE product_id =\".$pid.\" AND product_type ='configurable'\");\n\n $rowqty = $rowArray['items_qty'] + $pqty;\n $connectionquote = Mage::getSingleton('core/resource')->getConnection('core_write');\n $connectionquote->query(\"UPDATE `sales_flat_quote` SET `items_qty`=\".$rowqty.\" WHERE `entity_id`=\".$rowArray['entity_id']);\n }\n else\n {\n $connectionWrit = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n $date = date('Y-m-d h:i:s');\n $sku = $_product->getSku();\n $name = $_product->getName();\n $price = $_product->getSpecialPrice() * $pqty;\n $connectionWrit->query(\"INSERT INTO `sales_flat_quote_item`(`quote_id`, `created_at`, `updated_at`, `product_id`, `store_id`, `is_virtual`, `sku`, `name`, `weight`, `qty`, `price`, `base_price`, `row_total`, `base_row_total`, `row_weight`, `product_type`, `price_incl_tax`, `base_price_incl_tax`, `row_total_incl_tax`, `base_row_total_incl_tax`, `weee_tax_disposition`, `weee_tax_row_disposition`, `base_weee_tax_disposition`, `base_weee_tax_row_disposition`, `weee_tax_applied`, `weee_tax_applied_amount`, `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, `base_weee_tax_applied_row_amnt`) VALUES (\".$rowArray['entity_id'].\",'\".$date.\"','\".$date.\"',\".$pid.\",'1','0','\".$sku.\"','\".$name.\"','1.0000',\".$pqty.\",\".$price.\",\".$price.\",\".$price.\",\".$price.\",'1.0000','configurable',\".$price.\",\".$price.\",\".$price.\",\".$price.\",'0.0000','0.0000','0.0000','0.0000','a:0:{}','0.0000','0.0000','0.0000','')\");\n\n $db_write = Mage::getSingleton('core/resource')->getConnection('core_write');\n $sqlQuery = \"SELECT item_id FROM sales_flat_quote_item ORDER BY item_id DESC LIMIT 1;\";\n $rowArrayes = $db_write->fetchRow($sqlQuery);\n $item_id = $rowArrayes['item_id'];\n\n $connectionWri = Mage::getSingleton('core/resource')->getConnection('core_write');\n $sname = $name.'( '.$size.' )';\n $connectionWri->query(\"INSERT INTO `sales_flat_quote_item` (`quote_id`, `created_at`, `updated_at`, `product_id`, `store_id`, `parent_item_id`, `is_virtual`, `sku`, `name`, `weight`, `qty`, `price`, `base_price`, `row_total`, `base_row_total`, `row_weight`, `product_type`, `price_incl_tax`, `base_price_incl_tax`, `row_total_incl_tax`, `base_row_total_incl_tax`, `weee_tax_disposition`, `weee_tax_row_disposition`, `base_weee_tax_disposition`, `base_weee_tax_row_disposition`, `weee_tax_applied`, `weee_tax_applied_amount`, `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, `base_weee_tax_applied_row_amnt`) VALUES (\".$rowArray['entity_id'].\",'\".$date.\"','\".$date.\"',\".$pid.\",'1',\".$item_id.\",'0','\".$sku.\"','\".$sname.\"','1.0000',\".$pqty.\",'0.0000','0.0000','0.0000','0.0000','1.0000','simple','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','a:0:{}','0.0000','0.0000','0.0000','')\");\n\n $rowqty = $rowArray['items_qty'] + $pqty;\n $rowcount = $rowArray['items_count'] + $pqty;\n $connectionquote = Mage::getSingleton('core/resource')->getConnection('core_write');\n $connectionquote->query(\"UPDATE `sales_flat_quote` SET `items_count`=\".$rowcount.\", `items_qty`=\".$rowqty.\" WHERE `entity_id`=\".$rowArray['entity_id']);\n }\n }\n\n if($rowArrays['product_type'] == 'simple')\n {\n if($rowArrays['parent_item_id'] != NULL)\n {\n //check Quantity count\n $sqlQueryss = \"SELECT * FROM sales_flat_quote_item WHERE item_id =\".$rowArrays['parent_item_id'];\n $rowArrayss = $db_write->fetchRow($sqlQueryss);\n\n $checkqty = number_format($rowArrayss['qty']) + $pqty;\n\n $oldsize = explode('(', $rowArrays['name']);\n if(isset($oldsize[1])) {\n $newsize = str_replace(' )', '', $oldsize[1]);\n }\n else{\n $oldsize = explode('-', $rowArrays['name']);\n if(isset($oldsize[1]))\n {\n $newsize = $oldsize[1];\n }\n else\n {\n $oldsize = explode('\\'', $rowArrays['name']);\n if(isset($oldsize[1]))\n {\n $newsize = $size[1];\n }\n }\n }\n\n if(trim($newsize) == trim($size))\n {\n if($checkqty > 2)\n {\n $response['msg'] = 'The maximum quantity allowed for purchase is 2';\n $response['status'] = '0';\n echo json_encode($response);\n exit;\n }\n $connections = Mage::getSingleton('core/resource')->getConnection('core_write');\n $date = date('Y-m-d h:i:s');\n $totqty = $rowArrays['qty'] + $pqty;\n $totprice = $_product->getSpecialPrice() * $totqty;\n $connections->query(\"UPDATE `sales_flat_quote_item` SET `updated_at`='\".$date.\"',`qty`=\".$totqty.\",`row_total`=\".$totprice.\",`base_row_total`=\".$totprice.\",`price_incl_tax`=\".$totprice.\",`base_price_incl_tax`=\".$totprice.\",`row_total_incl_tax`=\".$totprice.\",`base_row_total_incl_tax`=\".$totprice.\" WHERE product_id =\".$pid.\" AND product_type ='configurable'\");\n\n $rowqty = $rowArray['items_qty'] + $pqty;\n $connectionquote = Mage::getSingleton('core/resource')->getConnection('core_write');\n $connectionquote->query(\"UPDATE `sales_flat_quote` SET `items_qty`=\".$rowqty.\" WHERE `entity_id`=\".$rowArray['entity_id']);\n }\n else\n {\n $connectionWrit = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n $date = date('Y-m-d h:i:s');\n $sku = $_product->getSku();\n $name = $_product->getName();\n $price = $_product->getSpecialPrice() * $pqty;\n $connectionWrit->query(\"INSERT INTO `sales_flat_quote_item`(`quote_id`, `created_at`, `updated_at`, `product_id`, `store_id`, `is_virtual`, `sku`, `name`, `weight`, `qty`, `price`, `base_price`, `row_total`, `base_row_total`, `row_weight`, `product_type`, `price_incl_tax`, `base_price_incl_tax`, `row_total_incl_tax`, `base_row_total_incl_tax`, `weee_tax_disposition`, `weee_tax_row_disposition`, `base_weee_tax_disposition`, `base_weee_tax_row_disposition`, `weee_tax_applied`, `weee_tax_applied_amount`, `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, `base_weee_tax_applied_row_amnt`) VALUES (\".$rowArray['entity_id'].\",'\".$date.\"','\".$date.\"',\".$pid.\",'1','0','\".$sku.\"','\".$name.\"','1.0000',\".$pqty.\",\".$price.\",\".$price.\",\".$price.\",\".$price.\",'1.0000','configurable',\".$price.\",\".$price.\",\".$price.\",\".$price.\",'0.0000','0.0000','0.0000','0.0000','a:0:{}','0.0000','0.0000','0.0000','')\");\n\n $db_write = Mage::getSingleton('core/resource')->getConnection('core_write');\n $sqlQuery = \"SELECT item_id FROM sales_flat_quote_item ORDER BY item_id DESC LIMIT 1;\";\n $rowArrayes = $db_write->fetchRow($sqlQuery);\n $item_id = $rowArrayes['item_id'];\n\n $connectionWri = Mage::getSingleton('core/resource')->getConnection('core_write');\n $sname = $name.'( '.$size.' )';\n $connectionWri->query(\"INSERT INTO `sales_flat_quote_item` (`quote_id`, `created_at`, `updated_at`, `product_id`, `store_id`, `parent_item_id`, `is_virtual`, `sku`, `name`, `weight`, `qty`, `price`, `base_price`, `row_total`, `base_row_total`, `row_weight`, `product_type`, `price_incl_tax`, `base_price_incl_tax`, `row_total_incl_tax`, `base_row_total_incl_tax`, `weee_tax_disposition`, `weee_tax_row_disposition`, `base_weee_tax_disposition`, `base_weee_tax_row_disposition`, `weee_tax_applied`, `weee_tax_applied_amount`, `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, `base_weee_tax_applied_row_amnt`) VALUES (\".$rowArray['entity_id'].\",'\".$date.\"','\".$date.\"',\".$pid.\",'1',\".$item_id.\",'0','\".$sku.\"','\".$sname.\"','1.0000',\".$pqty.\",'0.0000','0.0000','0.0000','0.0000','1.0000','simple','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','a:0:{}','0.0000','0.0000','0.0000','')\");\n\n $rowqty = $rowArray['items_qty'] + $pqty;\n $rowcount = $rowArray['items_count'] + $pqty;\n $connectionquote = Mage::getSingleton('core/resource')->getConnection('core_write');\n $connectionquote->query(\"UPDATE `sales_flat_quote` SET `items_count`=\".$rowcount.\", `items_qty`=\".$rowqty.\" WHERE `entity_id`=\".$rowArray['entity_id']);\n }\n }\n else\n {\n if($checkqty > 2)\n {\n $response['msg'] = 'The maximum quantity allowed for purchase is 2';\n $response['status'] = '0';\n echo json_encode($response);\n exit;\n }\n $connections = Mage::getSingleton('core/resource')->getConnection('core_write');\n $date = date('Y-m-d h:i:s');\n $totqty = $rowArrays['qty'] + $pqty;\n $totprice = $_product->getSpecialPrice() * $totqty;\n $connections->query(\"UPDATE `sales_flat_quote_item` SET `updated_at`='\".$date.\"',`qty`=\".$totqty.\",`row_total`=\".$totprice.\",`base_row_total`=\".$totprice.\",`price_incl_tax`=\".$totprice.\",`base_price_incl_tax`=\".$totprice.\",`row_total_incl_tax`=\".$totprice.\",`base_row_total_incl_tax`=\".$totprice.\" WHERE product_id =\".$pid.\" AND product_type ='simple'\");\n\n $rowqty = $rowArray['items_qty'] + $pqty;\n $connectionquote = Mage::getSingleton('core/resource')->getConnection('core_write');\n $connectionquote->query(\"UPDATE `sales_flat_quote` SET `items_qty`=\".$rowqty.\" WHERE `entity_id`=\".$rowArray['entity_id']);\n }\n\n }\n }\n else\n {\n if($_product->getTypeId() == \"configurable\")\n {\n $connectionWrit = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n $date = date('Y-m-d h:i:s');\n $sku = $_product->getSku();\n $name = $_product->getName();\n $price = $_product->getSpecialPrice() * $pqty;\n $connectionWrit->query(\"INSERT INTO `sales_flat_quote_item`(`quote_id`, `created_at`, `updated_at`, `product_id`, `store_id`, `is_virtual`, `sku`, `name`, `weight`, `qty`, `price`, `base_price`, `row_total`, `base_row_total`, `row_weight`, `product_type`, `price_incl_tax`, `base_price_incl_tax`, `row_total_incl_tax`, `base_row_total_incl_tax`, `weee_tax_disposition`, `weee_tax_row_disposition`, `base_weee_tax_disposition`, `base_weee_tax_row_disposition`, `weee_tax_applied`, `weee_tax_applied_amount`, `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, `base_weee_tax_applied_row_amnt`) VALUES (\".$rowArray['entity_id'].\",'\".$date.\"','\".$date.\"',\".$pid.\",'1','0','\".$sku.\"','\".$name.\"','1.0000',\".$pqty.\",\".$price.\",\".$price.\",\".$price.\",\".$price.\",'1.0000','configurable',\".$price.\",\".$price.\",\".$price.\",\".$price.\",'0.0000','0.0000','0.0000','0.0000','a:0:{}','0.0000','0.0000','0.0000','')\");\n //$connectionWrit->query(\"UPDATE `sales_flat_quote_item` SET `quote_id`=\".$rowArray['entity_id'].\",`created_at`='\".$date.\"',`updated_at`='\".$date.\"',`product_id`=\".$pid.\",`store_id`=1,`parent_item_id`='',`is_virtual`=0,`sku`='\".$sku.\"',`name`='\".$name.\"',`description`='',`applied_rule_ids`='',`additional_data`='',`free_shipping`=0,`is_qty_decimal`=0,`no_discount`=0,`weight`='1.0000',`qty`=\".$pqty.\",`price`=\".$price.\",`base_price`=\".$price.\",`custom_price`='',`discount_percent`='0',`discount_amount`='0',`base_discount_amount`='0',`tax_percent`='0',`tax_amount`='0',`base_tax_amount`='0',`row_total`=\".$price.\",`base_row_total`=\".$price.\",`row_total_with_discount`='0',`row_weight`='1.0000',`product_type`='configurable',`base_tax_before_discount`='',`tax_before_discount`='',`original_custom_price`='',`redirect_url`='',`base_cost`='',`price_incl_tax`=\".$price.\",`base_price_incl_tax`=\".$price.\",`row_total_incl_tax`=\".$price.\",`base_row_total_incl_tax`=\".$price.\",`hidden_tax_amount`=0,`base_hidden_tax_amount`=0,`gift_message_id`='',`weee_tax_disposition`='0.0000',`weee_tax_row_disposition`='0.0000',`base_weee_tax_disposition`='0.0000',`base_weee_tax_row_disposition`='0.0000',`weee_tax_applied`='a:0:{}',`weee_tax_applied_amount`='0.0000',`weee_tax_applied_row_amount`='0.0000',`base_weee_tax_applied_amount`='0.0000',`base_weee_tax_applied_row_amnt`='' WHERE 1\");\n\n $db_write = Mage::getSingleton('core/resource')->getConnection('core_write');\n $sqlQuery = \"SELECT item_id FROM sales_flat_quote_item ORDER BY item_id DESC LIMIT 1;\";\n $rowArrayes = $db_write->fetchRow($sqlQuery);\n $item_id = $rowArrayes['item_id'];\n\n $connectionWri = Mage::getSingleton('core/resource')->getConnection('core_write');\n $sname = $name.'( '.$size.' )';\n $connectionWri->query(\"INSERT INTO `sales_flat_quote_item` (`quote_id`, `created_at`, `updated_at`, `product_id`, `store_id`, `parent_item_id`, `is_virtual`, `sku`, `name`, `weight`, `qty`, `price`, `base_price`, `row_total`, `base_row_total`, `row_weight`, `product_type`, `price_incl_tax`, `base_price_incl_tax`, `row_total_incl_tax`, `base_row_total_incl_tax`, `weee_tax_disposition`, `weee_tax_row_disposition`, `base_weee_tax_disposition`, `base_weee_tax_row_disposition`, `weee_tax_applied`, `weee_tax_applied_amount`, `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, `base_weee_tax_applied_row_amnt`) VALUES (\".$rowArray['entity_id'].\",'\".$date.\"','\".$date.\"',\".$pid.\",'1',\".$item_id.\",'0','\".$sku.\"','\".$sname.\"','1.0000',\".$pqty.\",'0.0000','0.0000','0.0000','0.0000','1.0000','simple','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','0.0000','a:0:{}','0.0000','0.0000','0.0000','')\");\n //$connectionWri->query(\"UPDATE `sales_flat_quote_item` SET `quote_id`=\".$rowArray['entity_id'].\",`created_at`='\".$date.\"',`updated_at`='\".$date.\"',`product_id`=\".$pid.\",`store_id`=1,`parent_item_id`='',`is_virtual`=0,`sku`='\".$sku.\"',`name`='\".$sname.\"',`description`='',`applied_rule_ids`='',`additional_data`='',`free_shipping`=0,`is_qty_decimal`=0,`no_discount`=0,`weight`='1.0000',`qty`=\".$pqty.\",`price`='0',`base_price`='0',`custom_price`='',`discount_percent`='0',`discount_amount`='0',`base_discount_amount`='0',`tax_percent`='0',`tax_amount`='0',`base_tax_amount`='0',`row_total`='0',`base_row_total`='0',`row_total_with_discount`='0',`row_weight`='0.0000',`product_type`='simple',`base_tax_before_discount`='',`tax_before_discount`='',`original_custom_price`='',`redirect_url`='',`base_cost`='',`price_incl_tax`='',`base_price_incl_tax`='',`row_total_incl_tax`='',`base_row_total_incl_tax`='',`hidden_tax_amount`='',`base_hidden_tax_amount`='',`gift_message_id`='',`weee_tax_disposition`='0.0000',`weee_tax_row_disposition`='0.0000',`base_weee_tax_disposition`='0.0000',`base_weee_tax_row_disposition`='0.0000',`weee_tax_applied`='a:0:{}',`weee_tax_applied_amount`='0.0000',`weee_tax_applied_row_amount`='0.0000',`base_weee_tax_applied_amount`='0.0000',`base_weee_tax_applied_row_amnt`='' WHERE 1\");\n }\n\n if($_product->getTypeId() == \"simple\")\n {\n $connectionWrit = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n $date = date('Y-m-d h:i:s');\n $sku = $_product->getSku();\n $name = $_product->getName();\n $price = $_product->getSpecialPrice() * $pqty;\n\n $connectionWrit->query(\"INSERT INTO `sales_flat_quote_item`(`quote_id`, `created_at`, `updated_at`, `product_id`, `store_id`, `is_virtual`, `sku`, `name`, `weight`, `qty`, `price`, `base_price`, `row_total`, `base_row_total`, `row_weight`, `product_type`, `price_incl_tax`, `base_price_incl_tax`, `row_total_incl_tax`, `base_row_total_incl_tax`, `weee_tax_disposition`, `weee_tax_row_disposition`, `base_weee_tax_disposition`, `base_weee_tax_row_disposition`, `weee_tax_applied`, `weee_tax_applied_amount`, `weee_tax_applied_row_amount`, `base_weee_tax_applied_amount`, `base_weee_tax_applied_row_amnt`) VALUES (\".$rowArray['entity_id'].\",'\".$date.\"','\".$date.\"',\".$pid.\",'1','0','\".$sku.\"','\".$name.\"','1.0000',\".$pqty.\",\".$price.\",\".$price.\",\".$price.\",\".$price.\",'1.0000','simple',\".$price.\",\".$price.\",\".$price.\",\".$price.\",'0.0000','0.0000','0.0000','0.0000','a:0:{}','0.0000','0.0000','0.0000','')\");\n\n //$connectionWrit->query(\"UPDATE `sales_flat_quote_item` SET `quote_id`=\".$rowArray['entity_id'].\",`created_at`='\".$date.\"',`updated_at`='\".$date.\"',`product_id`=\".$pid.\",`store_id`=1,`parent_item_id`='',`is_virtual`=0,`sku`='\".$sku.\"',`name`='\".$name.\"',`description`='',`applied_rule_ids`='',`additional_data`='',`free_shipping`=0,`is_qty_decimal`=0,`no_discount`=0,`weight`='1.0000',`qty`=\".$pqty.\",`price`=\".$price.\",`base_price`=\".$price.\",`custom_price`='',`discount_percent`='0',`discount_amount`='0',`base_discount_amount`='0',`tax_percent`='0',`tax_amount`='0',`base_tax_amount`='0',`row_total`=\".$price.\",`base_row_total`=\".$price.\",`row_total_with_discount`='0',`row_weight`='1.0000',`product_type`='configurable',`base_tax_before_discount`='',`tax_before_discount`='',`original_custom_price`='',`redirect_url`='',`base_cost`='',`price_incl_tax`=\".$price.\",`base_price_incl_tax`=\".$price.\",`row_total_incl_tax`=\".$price.\",`base_row_total_incl_tax`=\".$price.\",`hidden_tax_amount`=0,`base_hidden_tax_amount`=0,`gift_message_id`='',`weee_tax_disposition`='0.0000',`weee_tax_row_disposition`='0.0000',`base_weee_tax_disposition`='0.0000',`base_weee_tax_row_disposition`='0.0000',`weee_tax_applied`='a:0:{}',`weee_tax_applied_amount`='0.0000',`weee_tax_applied_row_amount`='0.0000',`base_weee_tax_applied_amount`='0.0000',`base_weee_tax_applied_row_amnt`='' WHERE 1\");\n }\n\n $rowqty = $rowArray['items_qty'] + $pqty;\n $rowcount = $rowArray['items_count'] + $pqty;\n $connectionquote = Mage::getSingleton('core/resource')->getConnection('core_write');\n $connectionquote->query(\"UPDATE `sales_flat_quote` SET `items_count`=\".$rowcount.\", `items_qty`=\".$rowqty.\" WHERE `entity_id`=\".$rowArray['entity_id']);\n }\n }\n else\n {\n $cart = Mage::getModel('checkout/cart');\n $cart->init();\n $cart->addProduct($_product, $params);\n $cart->save();\n\n $db_write = Mage::getSingleton('core/resource')->getConnection('core_read');\n $sqlQuery = \"SELECT quote_id FROM sales_flat_quote_item ORDER BY item_id DESC LIMIT 1;\";\n $rowArray = $db_write->fetchRow($sqlQuery);\n $entity_id = $rowArray['quote_id'];\n\n $connectionWrite = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n //Update customer Id\n $date = date('Y-m-d h:i:s');\n $connectionWrite->query(\"update sales_flat_quote set customer_id = '\".$uid.\"', customer_email = '\".$customerData['email'].\"',customer_firstname = '\".$customerData['firstname'].\"',customer_lastname = '\".$customerData['lastname'].\"',customer_gender = '\".$customerData['gender'].\"', updated_at = '\".$date.\"' WHERE entity_id = \".$entity_id);\n }\n\n $connectionWrites = Mage::getSingleton('core/resource')->getConnection('core_write');\n\n $connectionWrites->query(\"update sales_flat_quote_address set customer_id = '\".$uid.\"', email = '\".$customerData['email'].\"',firstname = '\".$customerData['firstname'].\"',lastname = '\".$customerData['lastname'].\"' WHERE quote_id = \".$entity_id);\n\n $response['msg'] = 'Product added in cart';\n $response['status'] = 1;\n }\n catch (Exception $e) {\n\n $response['msg'] = $e->getMessage();\n $response['status'] = 0;\n }\n\n\n\t\techo json_encode($response);\n\t}", "function cart_view($conn)\n {\n $sum=0;\n $total_items=0;\n if(isset($_SESSION[\"products\"]))\n {\n $total_items = count($_SESSION[\"products\"]);\n \n $ac=\"\";\n if($total_items>0)\n {\n foreach($_SESSION[\"products\"] as $key=>$product)\n {\n $p_id=$product[\"product_code\"];\n if(isset($p_id))\n {\n $sql=\"select price from products where id=$p_id\";\n $res=$conn->query($sql);\n while($row=$res->fetch_assoc())\n { \n $price=$row['price'];\n }\n $op=\"\";\n foreach($product['options'] as $option)\n {\n $op.= \"( \".$option.\" )\";\n }\n $sum=$sum+$price*$product[\"quantity\"];;\n $name=$product[\"product_name\"];\n $src=$product['src'];\n $quantity=$product[\"quantity\"];\n $code_id=$key;\n $ac .=\"<div class='dropdown-product-item'><span class='dropdown-product-remove'><i class='icon-cross' onclick='remove(\".$code_id.\");'></i></span><a class='dropdown-product-thumb' href='shop-single?token=\".str_replace(' ','-',$name).\"'><img src=vendor/admin/uploads/\".$src.\" alt='Product' style='max-height:50px'></a>\n <div class='dropdown-product-info'><a class='dropdown-product-title' href='shop-single?token=\".str_replace(' ','-',$name).\"' style=font-size:12px>\".$name.\" \".$op.\"</a> <span class='dropdown-product-details' style=font-size:12px>\".$quantity.\" x \".$price.\" = &#x20a8; \".$quantity * $price.\"</span></div></div>\";\n }\n }\n \n $cart_item['cart']=$ac;\n $_SESSION[\"products\"][$key][\"product_price\"]=$price;\n }\n else\n {\n $cart_item['cart']=\"No Item Found\";\n }\n }\n else\n {\n $cart_item['cart']=\"No Item Found\";\n }\n $cart_item['items']=$total_items;\n $cart_item['price']=$sum;\n return $cart_item;\n }", "function addToCart($proID){\n $product = $this->product->getRows($proID);\n \n // Add product to the cart\n $data = array(\n 'id' => $product['pro_id'],\n 'qty' => 1,\n 'price' => $product['price'],\n 'name' => $product[\"name\"],\n 'image' => $product['image']\n );\n $this->cart->insert($data);\n \n // Redirect to the cart page\n redirect(base_url().'index.php/CCart');\n }", "function display_cart()\n\t\t{\n\t\t\tglobal $connect;\n\t\t\tglobal $currency;\n\t\t\tif(isset($_SESSION['cart']))\n\t\t\t{\n\t\t\t\tif(isset($_POST['place-order-btn']))\n\t\t\t\t{\n\t\t\t\t\tinsert_order();\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t$cart = $_SESSION['cart'];\n\t\t\t\t$html = '';\n\t\t\t\t$html.='\n\t\t\t\t<div class=\"cv-order-detail spacer-top-less spacer-bottom\">\n\t\t\t <div class=\"container\">\n\t\t\t <div class=\"cv-heading\">\n\t\t\t <h1>product details</h1>\n\t\t\t <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n\t\t\t </div>\n\t\t\t <div class=\"row\">\n\t\t\t <div class=\"col-md-12\">\n\t\t\t <div class=\"cv-last-order\">\n\t\t\t <table>\n\t\t\t <thead>\n\t\t\t <tr>\n\t\t\t <th>Product name</th>\n\t\t\t <th>unit price</th>\n\t\t\t <th>Quantity</th>\n\t\t\t <th>Total</th>\n\t\t\t </tr>\n\t\t\t </thead>\n\t\t\t <tbody>\n\t\t\t\t';\n\n\t\t\t\tforeach ($cart as $key => $value) {\n\t\t\t\t\t// Fetch cart details\n\t\t\t\t\t$cart_table_qry = \"select * from product where product_id=$value[product_id] and status=1\";\n $cart_table_qry_result = mysqli_query($connect,$cart_table_qry); \n $cart_table_arr = mysqli_fetch_assoc($cart_table_qry_result); \n\n\n\t\t\t\t\t$html.='<tr>\n\t <td>'.$cart_table_arr['product_name'].'</td>\n\t <td>'.$currency.$cart_table_arr['product_price'].'</td>\n\t <td>'.$value['quantity'].'</td>\n\t <td>'.$currency.$value['quantity'] * $cart_table_arr['product_price'].'</td>\n\t </tr>';\n\t\t\t\t}\n\t\t\t\t\t$html.='<tr>\n <td colspan=\"2\" class=\"cv-d-none\"></td>\n <td><b>Grand Total</b></td>\n <td class=\"cv-price\">'.$currency.$_SESSION['grand_total'].'</td>\n </tr>\n\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t</table>\n \t\t\t</div>\n\t\t <div class=\"cv-cart-btn\">\n\t\t <form method=\"post\" action='.$_SERVER['PHP_SELF'].'>\n\t\t <input href=\"javascript:void(0)\" class=\"cv-btn place-order-btn\" type=\"submit\" value=\"place order\" name=\"place-order-btn\">\n\t\t </form>\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t <p class=\"font-weight-bold\">Only COD(Cash on delivery) payment mehod is available.</p>\n\t\t </div>\n\t\t </div>';\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$html ='';\n\t\t\t}\n\t\t\techo $html;\n\t\t}", "public function actionAddtocart($id,$price,$name, $quantity)\n {\n $session = Yii::$app->session;\n //$session->remove('cart');\n if($session->has('cart')) //if the session is there, we need to add to it\n {\n //t\n $item = [\n 'id' => $id,\n 'price' => $price,\n 'name' => $name,\n 'quantity' => $quantity\n\n ];\n $session['cart'] = array_merge($session['cart'],[$item]);\n\n\n }\n else //if the session is not there, we need to create it\n {\n\n $session['cart'] = array();\n $item = [\n 'id' => $id,\n 'price' => $price,\n 'name' => $name,\n 'quantity' => $quantity\n ];\n $session['cart'] = array_merge($session['cart'],[$item]);\n }\n //go to the users' cart page\n $this->redirect(['cart/index']);\n }", "public function goToCart(){\n $cart = Cart::content();\n $this->data['cart'] = $cart;\n return view('Customer.Layouts.cart',$this->data);\n }", "public function actionIndex(){\n\n $session = Yii::$app->session;\n\n $items = $session['cart'];\n\n return $this->render('index',[\n 'items' => $items,\n ]);\n\n }", "public function cart()\n {\n return view('carts.cart');\n }", "public function addToCart($id){\n $produk=Product::findOrFail($id);\n Auth::loginUsingId(1);\n $user = Auth::user()->id;\n $addToCart = Cart::create(['product_id'=>$produk->id,\n 'user_id'=>$user]);\n return 'Berhasil Memasukan data ke cart list';\n }", "public function index() {\n $prodData['cart_total'] = number_format($this->cart->getTotal(),2);\n $cart_layouts['md'] = '';\n $cart_layouts['sm'] = '';\n $cart_layouts['xs'] = '';\n\n $cart_count = $this->cart->countProducts();\n if($cart_count == 0)\n {\n $cart_layouts['cart_class'] = '';\n $prodData['cart_count'] = 'empty';\n }\n // elseif ($cart_count > 99) {\n // $prodData['cart_count'] = '99+';\n // }\n else {\n $prodData['cart_count'] = $cart_count. ' items';\n $cart_layouts['cart_class'] = 'full';\n }\n\n // $prodData['cart_count'] = 3;\n $cart_layouts['md'] = $this->load->view('ssan/cart_menu', $prodData);\n $cart_layouts['sm'] = $this->load->view('ssan/cart_menu_sm', $prodData);\n $cart_layouts['xs'] = $this->load->view('ssan/cart_menu_xs', $prodData);\n\n return $cart_layouts;\n }", "function printCart(){\n\t\tprint_r($this->articulos);\n\t}", "private function initiate_cart()\n\t{\n\t\tif (!($this->ci->session->has_userdata('cart_items'))) {\n\t\t\t$cart_items = array('cart_items' => array());\n\t\t\t$this->ci->session->set_userdata($cart_items);\n\t\t}\n\t}", "public function index()\n\t{\n\t\t$carts =$this-> cart ->contents();\n\t\t$total_items=$this-> cart->total_items();\n\t\t$this->data['carts']=$carts;\t\n\t\t// var_dump($carts);\n/*\t\techo \"<pre>\";\n \t\tprint_r($carts);\n \t\techo \"<pre>\";*/\n\n\t \t$this->load ->view('Fr_giohang_view',$this->data);\n\t\t\n\t }", "public function render() {\n $htmlContent = \"\";//Main Content\n \n //id und class Bezeichnungen der HTML Elementen\n $idContent = \"content\";\n $classProduct = \"product-detail\";\n $classImage = \"img-preview-detail\";\n $classDescription = \"description\";\n $classDescriptionText = \"description-text-detail\";\n $label1 = \"label1\";\n\n //local config\n $maxDescriptionCharlenght = 20000;\n $imagePath = \"/src/theme/images/\";\n $lang_pageTitel = i(\"Productview\");\n $button1 = (\"Buy\");\n \n //Product array\n $products = array();\n\n //TSCM TODO get from DB instead from Session..\n $products = $_SESSION['products'];\n\n\n //Array erstellen\n //TODO Array aus DB holen und verifizieren\n foreach($products as $book){\n\n// exit;\n if($_GET['id'] != $book['ISBN Number']){\n continue;\n }\n\n $paragraph = Utilities::buildParagraph($book);\n\n //too long text?\n if(strlen ( $book['Description'] ) > $maxDescriptionCharlenght)\n {\n $book['Description'] = substr ( $book['Description'] , 0 , $maxDescriptionCharlenght );\n $book['Description'] = $book['Description'] . \"...\";\n }else{\n //not too long, display it all\n $modDescription = $book['Description'];\n }\n \n/*\n * schwf5: Element in Warenkorb legen \n */\n\n//Auslesen der BuchID\nif(isset($_GET[\"id\"])) \n$currentID = $_GET[\"id\"];\nelse \n\t$currentID = 0; \n \n//Prüfen ob Seite mit added action geladen wurde (d.h. dass Buch in Korb gelegt wurde)\nif((isset($_GET[\"action\"])) && $_GET[\"action\"]==\"added\") {\n\n\t$amount = $_POST[\"amountSelection\"];\n\t//Seite wurde neu geladen. Prüfen, ob bereits ein Warenkorb existiert\n\t\n\t//Korb existiert schon. Items also in den Warenkorb hinzufügen\n\tif(isset($_COOKIE[\"shoppingCart\"])) {\n\t\t$cartArray = json_decode($_COOKIE[\"shoppingCart\"]);\n\t\tarray_push($cartArray, array (\"ID\"=>$currentID, \"amount\"=>$amount));\n\t\tsetcookie(\"shoppingCart\", json_encode($cartArray));\n\t}\n\t\n\t\n\t//neuen Korb machen mit erstem Item\n\telse { \n\t$cartArray = array\t(\n\t\tarray (\"ID\"=>$currentID, \"amount\"=>$amount));\n\tsetcookie(\"shoppingCart\", json_encode($cartArray));\n\t}\n\t\n\t//\n\t\n\t\n} \n\n\nelse \n\t;\n\n$htmlContent .= \"\n <div class=\\\"$classProduct\\\">\n <div class=\\\"$classImage\\\"><img src=\\\"\".$imagePath.$book['Picture'].\"\\\" />\n </div>\n <div class=\\\"$classDescription\\\">\n\n $paragraph\n\n <div>\n <a href='index.php?view=payment&id={$_GET[\"id\"]}'>\n <input class='buy_button' type='button' value='\".$button1.\"'></input>\n </a>\n \n <br>Amount: \n <form action='index.php?view=productdetail&id=$currentID&action=added' method='post'>\n <select name='amountSelection'>\n\t\t\t\t\n \t\t\t\t\t <option value='1'>1</option>\n \t\t\t\t\t <option value='2'>2</option>\n \t\t\t\t\t <option value='3'>3</option>\n \t\t\t\t\t <option value='4'>4</option>\n \t\t\t\t\t <option value='5'>5</option>\n \t\t\t\t\t \n\t\t\t\t\t</select>\n\t\t\t\t\t<input type='submit' name='submit' value='Add to Cart' />\n\t\t\t\t\t</form>\n \t\t\n \t\t\n \t\t\n </div>\n \n </div>\n </div>\";\n \n\n }\n\n\nif(isset($_GET[\"action\"])){\n\t\n\t$buyState= \"Produkt wurde in den Warenkorb gelegt.<br>\";\n\t\t\n} else $buyState=\"\";\n\t\n$htmlContentBody = \"\n\t\t<div id=\\\"content\\\">\n <span style='color:red'>$buyState</span>\n \n <h1>$lang_pageTitel</h1>\n $htmlContent\n </div>\n \n\";\n\n\nreturn $htmlContentBody;\n\n\n}", "public function cart()\n {\n $data['cart'] = Cart::where('user_id',Auth::user()->id)->get();\n return view('cart',$data);\n }", "public function add()\n\t{\n\t\t$product = ORM::factory('product', $this->input->post('product_id'));\n\t\t$quantity = $this->input->post('quantity', 1);\n\t\t$variant = ORM::factory('variant', $this->input->post('variant_id'));\n\t\t\n\t\t$this->cart->add_product($product, $variant, $quantity);\n\t\t\n\t\turl::redirect('cart');\n\t}", "public function create()\n\t{\n\t\treturn View::make('cart.create');\n\t}", "public function myCart(){\n Auth::loginUsingId(1);\n // $currentUser = Auth::user();\n // $cartList = $currentUser->cartProductId();\n $currUserId = Auth::user()->id;\n $cartList = Cart::cartList($currUserId)->get();\n return view ('myCart',compact('cartList'));\n // return view('myCart',compact('cartList'));\n }", "public function neworder() {\n\t\tparent::__construct();\n\t\tsession_start();\n\t\tif(isset($_SESSION['uid'])){\n\t\t\t$this->write('orders', array(NULL, $_SESSION['uid'], 1, \"PAID\"));\n\t\t} else {\n\t\t\t$this->write('orders', array(NULL, NULL, 1, \"PAID\"));\n\t\t}\n\t\t$this->orderid = $this->id;\n\t\t\n\t\t//Create new order table and insert cart data\n\t\t$create = $this->conn->prepare(\n\t\t\t'DROP TABLE IF EXISTS order'.$this->orderid.'; '\n\t\t\t.'CREATE TABLE order'.$this->orderid\n\t\t\t.'(itemid INT(7) ZEROFILL NOT NULL, itemname VARCHAR(256) NOT NULL, qnt INT(3) NOT NULL, itemprice DECIMAL(6,2) NOT NULL); '\n\t\t);\n\t\t$create->execute();\n\n\t\t$count = 0;\n\t\tforeach($_SESSION['cart'] as $item){\n\t\t\t//This is redundant but otherwise db insert skips first row - PDO or db class issue?\n\t\t\tif($count == 0){$this->write('order'.$this->orderid, array($item[\"item\"],$item[\"name\"],$item[\"qnt\"],$item[\"price\"]));};\n\t\t\t$count++;\n\t\t\t$this->write('order'.$this->orderid, array($item[\"item\"],$item[\"name\"],$item[\"qnt\"],$item[\"price\"]));\n\t\t}\n\t}", "public function action_purchaseCartItems()\n {\n $cartItems = $this->request->post('itemList');\n\n if(!is_null($cartItems))\n {\n $cartIds = explode(\"_\", $cartItems);\n $modelCartItems = new Model_CartItemInfo();\n try\n {\n for($i = 0; $i<count($cartIds)-1; $i++)\n $modelCartItems->purchaseItem($cartIds[$i]);\n }\n catch (Exception $e)\n {\n $this->request->status = 400;\n $this->request->response = View::factory('errors/400');\n }\n }\n else\n {\n $this->request->status = 406;\n $this->request->response = View::factory('errors/406');\n }\n\n //Need to redirect to print ticket page\n $authManager = new Manager_AuthManager();\n $authManager->addValueToSession('cartItemIds',$cartIds);\n $this->redirect('ticket/print');\n }", "function old_pushCart($product_id,$quantity,$transport) \n {\n $conn=connect();\n $query= \"INSERT INTO shopping_cart(user_id,delivery,product_id,quantity) VALUES (\".$this->user_id.\",\".$transport.\",\".$product_id.\",\".$quantity.\")\"; //obtain information about a product\n if($results = mysqli_query($conn, $query)) //to add to the cart\n {\n $last_id =mysqli_insert_id($conn);\n $this->cart->addProduct($last_id, $product_id,$transport,$quantity);\n }\n mysqli_close($conn);\n \n \n }", "public function addAction()\n {\n /** @var $session */\n $session = $this->get('session');\n\n $cart = $session->get('cart');\n\n $productID = $_POST['product_id'];\n $quantity = $_POST['quantity'];\n\n // First addition to the shopping cart\n if (empty($cart)) {\n $cart[] = array(\n 'product_id' => $productID,\n 'quantity' => $quantity\n );\n } else {\n $existingItem = false;\n\n foreach ($cart as &$cartItem) {\n // If product already exists in cart\n if ($cartItem['product_id'] == $productID) {\n $existingItem= true;\n\n // add to existing quantity\n $cartItem['quantity'] += $quantity;\n }\n }\n\n // if brand new item\n if ($existingItem == false) {\n $cart[]= array(\n 'product_id' => $productID,\n 'quantity' => $quantity\n );\n }\n }\n\n $session->set('cart', $cart);\n\n\n return new RedirectResponse('/cart');\n }", "public function render()\n {\n $products = ProductModel::where('name', 'like', '%'.$this->search.'%')->orderBy('created_at', 'DESC')->paginate(12); \n\n\n $condition = new \\Darryldecode\\Cart\\CartCondition([\n 'name' => 'pajak',\n 'type' => 'tax',\n 'target' => 'total',\n 'value' => $this->tax,\n 'order' => 1\n ]);\n\n //ambil session user berdasarkan id\n \\Cart::session(Auth()->id())->condition($condition);\n\n $items = \\Cart::session(Auth()->id())->getContent()->sortBy(function ($cart){\n return $cart->attributes->get('added at'); \n });\n //cek apakah cart kosong atau tidak\n //apabila kosong maka \n if(\\Cart::isEmpty()){\n $cartData = [];\n }\n //dan apabila tidak kosong\n else\n {\n //apabila tidak kosong maka kita perulangkan dengan foreach \n foreach($items as $item){\n $cart[] = [\n 'rowId' => $item->id, //ini agar idnya unik\n 'name' => $item->name, //untuk menambahkan nama \n 'qty' => $item->quantity,\n 'pricesingle' => $item->price,\n 'price' => $item->getPriceSum(), //agar menambahkan jumlah atau harga\n ];\n }\n // kemudian tampung di variabel cartData isi dari cartnya\n $cartData = collect($cart);\n }\n\n $sub_total = \\Cart::session(Auth()->id())->getSubTotal();\n $total = \\Cart::session(Auth()->id())->getTotal();\n\n $newCondition = \\Cart::session(Auth()->id())->getCondition('pajak');\n $pajak = $newCondition->getCalculatedValue($sub_total);\n\n $summary = [\n 'sub_total' => $sub_total,\n 'pajak' => $pajak,\n 'total' => $total\n ];\n\n\n return view('livewire.cart', [\n 'products' => $products,\n 'carts' => $cartData,\n 'summary' => $summary\n ]);\n }", "public function getShowShoppingCart($order_code){\n \tif(!CRUDBooster::isCreate() && $this->global_privilege==FALSE || $this->button_add==FALSE) {\n \tCRUDBooster::redirect(CRUDBooster::adminPath(),trans(\"crudbooster.denied_access\"));\n \t}\n\t\t\t\n\t\t\t$cols[0] = \"عنوان آیتم\";\n\t\t\t$cols[1] = \"تعداد\";\n\t\t\t$cols[2] = \"قیمت\";\n\t\t\t$cols[3] = \"فروشنده\";\n\t\t\t$cols[4] = \"آدرس گیرنده\";\n\t\t\t$cols[5] = \"تحویل گیرنده\";\n\t\t\t$cols[6] = \"وضعیت\";\n\t\t\t$cols[7] = \"شناسه\";\n\t\t\t$cols[8] = \"تاریخ ارسال\";\n\t\t\t$cols[9] = \"توضیح ارسال\";\n\t\t\t$items = DB::table('shop_order_items')\n//\t\t\t\t->join(\"prd_orders\",'shop_order_items.order_id','=','prd_orders.id')\n\t\t\t\t->where('shop_order_items.order_code',$order_code)\n\t\t\t\t->get();\n\t\t\tfor($i = 0 ; $i < count($items) ; $i++){\n\t\t\t\t\n\t\t\t\t$values[$i][0] = $items[$i]->product_title.' '. $items[$i]->product_color;\n\t\t\t\t$values[$i][1] = $items[$i]->quantity;\n\t\t\t\t$values[$i][2] = $items[$i]->product_price;\n\t\t\t\t$values[$i][3] = $items[$i]->shop_city.'-'. $items[$i]->product_seller;\n\t\t\t\t$values[$i][4] = $items[$i]->province_name.'-'. $items[$i]->city_name.'-'. $items[$i]->remained;\n\t\t\t\t$values[$i][5] = $items[$i]->transferee_mobile_number.' - '. $items[$i]->transferee_name;\n\t\t\t\t$values[$i][7] = $items[$i]->order_item_id;\n\t\t\t\t$values[$i][8] = $items[$i]->order_transfer_time;\n\t\t\t\t$values[$i][9] = $items[$i]->transfer_comment;\n\n\t\t\t\tif($items[$i]->is_completed == 0)\n\t\t\t\t\t$values[$i][6] = \"پرداخت نشده\";\n\t\t\t\telse if($items[$i]->is_completed == 1)\n\t\t\t\t$values[$i][6] = \"پرداخت شده\";\n\t\t\t}\n\n\t\t\t$data['cols'] = $cols;\n\t\t\t$data['values'] = $values;\n\t\t\t\t$this->cbView(\"shopping_cart\", $data);\n\t }", "function show_cart(){\n\t\t$output = '';\n\t\t$no = 0;\n\t\tforeach ($this->cart->contents() as $items) {\n\t\t\t$no++;\n\t\t\t$output .='\n\t\t\t\t<tr>\n\t\t\t\t\t<td>'.$items['name'].'</td>\n\t\t\t\t\t<td>'.number_format($items['price']).'</td>\n\t\t\t\t\t<td>'.$items['qty'].'</td>\n\t\t\t\t\t<td>'.number_format($items['subtotal']).'</td>\n\t\t\t\t\t<td><button type=\"button\" id=\"'.$items['rowid'].'\" class=\"hapus_cart btn btn-danger btn-xs\">Batal</button></td>\n\t\t\t\t</tr>\n\t\t\t';\n\t\t}\n\t\t$output .= '\n\t\t\t<tr>\n\t\t\t\t<th colspan=\"3\">Total</th>\n\t\t\t\t<th colspan=\"2\">'.'Rp '.number_format($this->cart->total()).'</th>\n\t\t\t</tr>\n\t\t';\n\t// \tforeach ($this->cart->contents() as $item) {\n\t// \t$output .='\n\t// \t\t<tr>\n\t// \t\t<form action=\"'.base_url('pemesanan').'\" method=\"post\" >\n\t// \t\t<td><input type=\"hidden\" name=\"id_menu\" value=\"'.$item['id'].'\"</td>\n\t// \t\t<td><input type=\"hidden\" name=\"total_harga\" value=\"'.$item['subtotal'].'\"</td>\n\t// \t\t<td><input type=\"hidden\" name=\"jml_beli\" value=\"'.$item['qty'].'\"</td>\n\t// \t\t<td><input type=\"submit\" class=\"btn\" value=\"Bayar\"></td>\n\t// \t\t</form>\n\t// \t\t</tr>\n\t// \t';\n\t// }\n\t\treturn $output;\n\t}", "function cart()\r\n{\r\n if(isset($_GET['add_cart']))\r\n { global $db;\r\n $ip_add=getRealIpAddr();\r\n $p_id=$_GET['add_cart'];\r\n $check_pro=\"select * from cart where ip_add='$ip_add' AND p_id='$p_id'\";\r\n $get_items =\"select * from cart where ip_add='$ip_add'\";\r\n $run_check=mysqli_query($db,$check_pro);\r\n $run_items =mysqli_query($db, $get_items);\r\n $count_items =mysqli_num_rows($run_items)+1;\r\n if(mysqli_num_rows($run_check)>0)\r\n {\r\n echo \"\";\r\n }\r\n else\r\n {\r\n $q=\"insert into cart(p_id,ip_add) values('$p_id','$ip_add')\";\r\n $run_q=mysqli_query($db,$q);\r\n echo \"<script>alert('Added Product to Cart,You have $count_items items in cart' )</script>\";\r\n echo \"<script>window.open('index1.php','_self')</script>\";\r\n }\r\n }\r\n}", "public function home()\n {\n\n // Cart::add('293ad', 'Product 1', 1, 9.99);\n // Cart::add(['id' => '293ad', 'name' => 'Product 1', 'qty' => 1, 'price' => 9.99, 'options' => ['Tamano' => 'Grande']]);\n // $rowId = \"8cbf215baa3b757e910e5305ab981172\";\n // Cart::update($rowId, ['name' => 'Producto actualizado']);\n // dd(Cart::content());\n return view('home');\n }", "public function giohang(){\n\t\t$content = Cart::content();\n\t\t$total = Cart::total();\n\t\treturn view('frontend.cart',compact('content','total'));\n\t}", "function createCartHeadButton(){\n initializeCartArray();\n $itemsInCart = count($_SESSION[\"cart\"]);\n $cartBut = '<a class=\"item\" href=\"shopping-cart.php\"><i class=\"shop icon\"></i> Cart' . createCartCountLabel() . '</a>';\n return $cartBut;\n}" ]
[ "0.77066696", "0.7646259", "0.74331594", "0.74331594", "0.74204534", "0.73801726", "0.71380603", "0.71263814", "0.7028986", "0.7002207", "0.6922714", "0.69212335", "0.6907494", "0.6901257", "0.6850441", "0.6830737", "0.6798528", "0.67906106", "0.67892206", "0.6785645", "0.678459", "0.67670155", "0.6740416", "0.67270803", "0.6721196", "0.6710479", "0.66968703", "0.66967493", "0.6682654", "0.66712886", "0.66630554", "0.6644268", "0.6620674", "0.66173476", "0.6612318", "0.6595659", "0.65819776", "0.657601", "0.6558225", "0.6540445", "0.652569", "0.65251505", "0.6522455", "0.6518135", "0.65159947", "0.6514305", "0.65047204", "0.6492308", "0.6491743", "0.6488551", "0.64795554", "0.6465279", "0.6456626", "0.64504486", "0.64442015", "0.6442698", "0.6440818", "0.64354545", "0.6434901", "0.6431831", "0.64185387", "0.6417655", "0.64158744", "0.64119136", "0.6406878", "0.6369377", "0.63672847", "0.6365041", "0.63592017", "0.6358724", "0.63584185", "0.6350162", "0.63411105", "0.6327616", "0.6324319", "0.632357", "0.6313301", "0.63132143", "0.63071495", "0.63039386", "0.63019896", "0.62978065", "0.6286791", "0.6283399", "0.6276928", "0.6272645", "0.627246", "0.62712246", "0.6270907", "0.62460244", "0.6238914", "0.62384117", "0.6235666", "0.62343234", "0.6232222", "0.62225306", "0.62189245", "0.6216051", "0.6212731", "0.6212318", "0.62111217" ]
0.0
-1
getting the total added items
function total_paintings(){ if(isset($_GET['add_cart'])){ global $con; $ip=getIp(); $get_paintings = "select * from cart where ip_add='$ip'"; $run_paintings = mysqli_query($con, $get_paintings); $count_paintings =mysqli_num_rows($run_paintings); } else{ global $con; $ip=getIp(); $get_paintings = "select * from cart where ip_add='$ip'"; $run_paintings = mysqli_query($con, $get_paintings); $count_paintings =mysqli_num_rows($run_paintings); } echo $count_paintings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTotalItems() { return $this->m_totalItems; }", "public function totalUniqueItems()\n {\n return $this->totalItems(true);\n }", "public function getTotalItemCount();", "public function getTotalItems()\n\t{\n\t\treturn $this->totalItems;\n\t}", "public function list_items_total()\n\t{\n\t\t$cnt = $this->list_items(NULL, NULL, NULL, NULL, TRUE);\n\t\tif (is_array($cnt))\n\t\t{\n\t\t\treturn count($cnt);\n\t\t}\n\t\treturn $cnt;\n\t}", "public function countItems();", "public function getTotalItems()\n {\n $total = 0;\n \n foreach ($this->items as $item) {\n $total += ($item->Quantity) ? $item->Quantity : 1;\n }\n\n return $total;\n }", "public function numberOfItems();", "public function TotalItems()\n {\n return $this->getTotalItems();\n }", "protected function getTotItems()\n {\n if ($this->exportableHandler !== null) {\n return $this->exportableHandler->getTotItems();\n } else {\n return 0;\n }\n }", "function totalItems($newValue=NULL) {\n\t\tif ( isset($newValue) ) $this->total_items = IntVal($newValue);\n\t\treturn $this->total_items;\n\t}", "public function getTotal():int{\r\n\t return (int)$this->_vars['total_items']??0;\r\n\t}", "public function totalCount();", "public function totalCount();", "public function countTotalItems()\n\t{\n\t\t$sql = \"SELECT * FROM items\";\n\t\t$query = $this->db->query($sql);\n\t\treturn $query->num_rows();\n\t}", "function total_items(){\n\t\tif(isset($_GET['add_cart'])){\n\t\t\tglobal $connection;\n\t\t\t$ip=getIp();\n\t\t\t$get_items=\"select * from cart where ip_address='$ip'\";\n\t\t\t$run_items=mysqli_query($connection,$get_items);\n\t\t\t$count_items=mysqli_num_rows($run_items); \n\t\t}else{\n\t\t\tglobal $connection;\n\t\t\t\t$ip=getIp();\n\t\t\t$get_items=\"select * from cart where ip_address='$ip'\";\n\t\t\t$run_items=mysqli_query($connection, $get_items);\n\t\t\t$count_items=mysqli_num_rows($run_items); \n\t\t\t}\n\t\t\techo $count_items;\n\t\t}", "public function getNumTotalItems()\n {\n return $this->numTotalItems;\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "public function getItemsCount()\n {\n return $this->count(self::_ITEMS);\n }", "protected function getTotal()\n {\n $total = 0;\n foreach ($this->entries as $entry) {\n $total += $entry['price'] * $entry['quantity'];\n }\n\n return $total;\n }", "public function getNumItems (){\n return $this->numItems;\n }", "public function getTotalItemCount()\n\t{\n\t\treturn $this->_totalItemCount;\n\t}", "function itemsCount()\n\t{\n\t\treturn count($this->_items);\n\t}", "public function get_total_items()\n {\n $num = 0;\n\n if (isset($_SESSION['cart'])) {\n foreach ($_SESSION['cart'] as $item) {\n $num = $num + $item;\n }\n }\n return $num;\n }", "function getTotalWeight()\n { $total = 0 ;\n if (count($this->items) > 0) \n { \n for ($p=0; $p<count($this->items); $p++) \n {\n $total = $total + $this->items[$p];\n }\n }\n return $total;\n }", "public function total_items()\n\t{\n\t\treturn array_get($this->cart_contents, $this->cart_name . '.total_items', 0);\n\t}", "function getItemCount(){\r\n\t\t\treturn count($this->items);\r\n\t\t}", "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "public function total_items()\n {\n $total_items = 0;\n $items = $this->_session->offsetGet('products');\n if ($this->_isCartArray($items) === TRUE)\n {\n foreach ($items as $key)\n {\n $total_items =+ ($total_items + $key['qty']);\n }\n return $total_items;\n }\n }", "public function get_total_items()\n\t{\n\t\t$num = 0;\n\t\t\n\t\tif (isset($_SESSION['cart']))\n\t\t{\n\t\t\tforeach($_SESSION['cart'] as $item)\n\t\t\t{\n\t\t\t\t$num = $num + $item;\n\t\t\t}\n\t\t}\n\t\treturn $num;\n\t}", "function Aulaencuesta_Get_Total_Items_In_table() \n{\n global $DB;\n $sql = \"SELECT count(*) as items FROM mdl_aulaencuesta\";\n return $DB->get_record_sql($sql, null);\n}", "public function countItems(): int\n\t{\n\t\treturn $this->storage->count();\n\t}", "function totalItems(){\n\tif (isset($_GET['addCart'])) {\n\t\tglobal $conn;\n\t\t$ipAddr=getIp();\n\n\t\t$getItems=\"SELECT * FROM cart WHERE ipAddr='$ipAddr'\";\n\t\t$runGetItems=mysqli_query($conn, $getItems);\n\n\t\t$countItems=mysqli_num_rows($runGetItems);\n\t}else{\n\n\t\tglobal $conn;\n\t\t$ipAddr=getIp();\n\n\t\t$getItems=\"SELECT * FROM cart WHERE ipAddr='$ipAddr'\";\n\t\t$runGetItems=mysqli_query($conn, $getItems);\n\n\t\t$countItems=mysqli_num_rows($runGetItems);\n\t}\n\n\techo $countItems;\n}", "public function get_total_items(){\n\t \t$total = 0;\n\t \t//Si no esta vacio va sumando la cantidad de articulos\n\t \tif(!empty($this->cart)){\n\t \t\tforeach ($this->cart as $linea){\n\t\t\t\t\t$total += $linea['amount'];\n\t\t\t\t}\n\t \t}\n\t \techo $total;\n\t }", "public function getTotalItemCount()\n {\n return $this->totalItemCount;\n }", "function count()\r\n {\r\n return(count($this->items));\r\n }", "function totalItems() {\n if(isset($_GET['add_cart'])) {\n\n global $con;\n\n $ip = getIp();\n\n $run_items = mysqli_query($con, \"SELECT * FROM cart WHERE ip_add='$ip'\");\n\n $count_items = mysqli_num_rows($run_items);\n\n } else {\n global $con;\n\n $ip = getIp();\n\n $run_items = mysqli_query($con, \"SELECT * FROM cart WHERE ip_add='$ip'\") or die(mysqli_error($con));\n\n $count_items = mysqli_num_rows($run_items);\n\n while($get_items = mysqli_fetch_array($run_items)) {\n\n $pro_qty = $get_items['qty'];\n if($pro_qty > 1) {\n $count_items = $count_items + $pro_qty - 1;\n }\n }\n }\n\n echo $count_items;\n\n }", "public function getTotalItems()\n {\n if ($this->totalItems === null) {\n $this->totalItems = count($this->list ?? []);\n }\n\n return $this->totalItems;\n }", "public function getItemsCount()\n {\n return count($this->items);\n }", "function getTotal() {\r\n\t\tif (empty ( $this->_total )) {\r\n\t\t\t$query = $this->_buildQuery ();\r\n\t\t\t$this->_total = $this->_getListCount ( $query );\r\n\t\t}\r\n\t\treturn $this->_total;\r\n\t}", "function getTotal()\r\n{\r\n if (empty($this->_total))\r\n {\r\n $query = $this->_buildQuery();\r\n $this->_total = $this->_getListCount($query);\r\n }\r\n \r\n return $this->_total;\r\n}", "function getTotal()\n\t{\n\t\t// Lets load the content if it doesn't already exist\n\t\tif (empty($this->_total))\n\t\t{\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query);\n\t\t}\n\n\t\treturn $this->_total;\n\t}", "function getTotal()\n\t{\n\t\t// Lets load the content if it doesn't already exist\n\t\tif (empty($this->_total))\n\t\t{\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query);\n\t\t}\n\n\t\treturn $this->_total;\n\t}", "function getTotal()\n\t{\n\t\t// Lets load the content if it doesn't already exist\n\t\tif (empty($this->_total))\n\t\t{\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query);\n\t\t}\n\n\t\treturn $this->_total;\n\t}", "abstract public function countTotal();", "public function totalEntries()\n\t{\n\t\t$count = craft()->formBuilder2_entry->getTotalEntries();\n\t\treturn $count;\n\t}", "public function getItemCount()\n {\n return $this->count(self::ITEM);\n }", "public function getTotalItems()\n {\n return intval($this->property('limit'));\n }", "public function itemCount(): int;", "public function getTotal();", "public function getTotal();", "public function getItemsCount()\n {\n return count($this->getItems());\n }", "public function count() {\n return count($this->_items);\n\n }", "public function count(): int {\n return count($this->items);\n }", "function getTotal()\n\t{\n\t\tif (empty($this->_total)) {\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query); \n\t\t}\n\t\treturn $this->_total;\n\t}", "public function getAffectedItemsCount() {}", "function getTotal()\r\n\t{\r\n\t\tif( empty($this->_total) )\r\n\t\t{\r\n\t\t\t$this->_total\t= $this->_getListCount( $this->_query() );\r\n\t\t}\r\n\r\n\t\treturn $this->_total;\r\n\t}", "public function totalFileCount(): int\n {\n return $this->getItems()->count();\n }", "public function getItemsCount()\n {\n return $this->getItemCollection()->getSize();\n }", "public function getItemsCount()\n {\n return count($this->getItemCollection());\n }", "public function total(): int\n {\n return count($this->all());\n }", "public function countItems() : int\n {\n return $this->model->count();\n }", "public function totalRecount()\n {\n $products = $this->products;\n $newTotal = 0;\n foreach ($products as $product) {\n if ($product->removed) {\n continue;\n }\n $newTotal += $product->count * $product->price;\n }\n $this->total = $newTotal;\n $this->save();\n }", "function getTotal()\n\t{\n\t\tif (empty($this->_total)) {\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query);\n\t\t}\n\t\treturn $this->_total;\n\t}", "public function count() {\n return count( $this->items );\n }", "function getTotal() {\n\t\tif (empty($this->_total)) {\n\t\t\t$query = $this->_buildQuery();\n\t\t\t$this->_total = $this->_getListCount($query);\n\t\t}\n\n\t\treturn $this->_total;\n\t}", "function getTotal()\n\t{\n\t\treturn $this->_total;\n\t}", "function getSize() {\n\t\t\treturn count($this->items);\n\t\t}", "function total(){\n\n\tif(isset($_GET['add_cart'])){\n\n\t\tglobal $con;\n\n\t\t$ip = getIp();\n\n\t\t$get_items = \"select * from cart where ip_add='$ip'\";\n\n\t\t$run_items = mysqli_query($con, $get_items);\n\n\t\t$count_items = mysqli_num_rows($run_items);\n\t\n}\n\t\telse{\n\n\t\t\tglobal $con;\n\n\t\t\t$ip = getIp();\n\n\t\t\t$get_items = \"select * from cart where ip_add='$ip'\";\n\n\t\t\t$run_items = mysqli_query($con, $get_items);\n\n\t\t\t$count_items = mysqli_num_rows($run_items);\n\t\t\t}\n\n\t\techo $count_items;\n\t}", "public function totalItems($unique = false)\n {\n $total = 0;\n\n foreach ($this->contents() as $item) {\n $total += $unique ? 1 : $item->quantity;\n }\n\n return $total;\n }", "public function itemTotal(): float;", "public function getItemCount()\n {\n return count($this->_items);\n }", "public function count()\r\n {\r\n return count($this->items);\r\n }", "public function getTotalEntries()\n {\n return $this->totalEntries;\n }", "public function count()\n {\n return $this->items->count();\n }", "public function count()\n {\n return $this->items->count();\n }", "public function getCount()\n {\n return count($this->items);\n }", "public function getTotalQuantity()\n {\n $items = $this->getContent();\n\n if ($items->isEmpty()) return 0;\n\n $count = array_reduce($items->all(), function ($a, ItemCollection $item) {\n return $a += $item->quantity;\n }, 0);\n\n return $count;\n }", "function getLength(){\n\t\t$out = 0;\n\t\tfor($i=0;$i<sizeof($this->_Items);$i++){\n\t\t\t$out = $out + $this->_Items[$i]->getLength();\n\t\t}\n\t\treturn $out;\n\t}", "public function count()\n {\n return count($this->_items);\n }", "public function count()\n\t{\n\t\treturn count( $this->items );\n\t}", "public function count_items() {\n\t\treturn SalesHistoryDetailQuery::create()->filterByOrdernumber($this->oehhnbr)->count();\n\t}", "function readCount()\r\n {\r\n return count($this->_items);\r\n }", "function items() {\n\t\n if(isset($_GET['add_cart'])){\n\t\n\t global $db;\n\t \n\t $ip_add = getRealIpAddr();\n\t \n\t $get_items = \"SELECT * FROM cart WHERE ip_add = '$ip_add' \";\n\t \n\t $run_items = mysqli_query($db,$get_items);\n\n\t $count_items = mysqli_num_rows($run_items); /* Counting how many items user has added to cart*/\n\t }\t\n\t\n\telse \n\t{\n\t global $db;\n\t \n $ip_add = getRealIpAddr();\n\t \n\t $get_items = \"SELECT * FROM cart WHERE ip_add = '$ip_add' \";\n\t \n\t $run_items = mysqli_query($db,$get_items);\n\n\t $count_items = mysqli_num_rows($run_items); \t \n\t\t\n\t\t\n\t}\n\n\t echo $count_items;\n\t}", "public function count()\n\t{\n\t\treturn count($this->items);\n\t}", "public function count()\n\t{\n\t\treturn count($this->items);\n\t}", "public function getTotal()\n\t{\n\t\t\n\t\treturn count($this->findAll());\n\t}", "public function quantity(){\n\t\treturn count($this->Data);\n\t}" ]
[ "0.8008275", "0.7667667", "0.7664212", "0.7617296", "0.75455344", "0.744303", "0.74360096", "0.73978007", "0.73622596", "0.7265078", "0.72641855", "0.7262241", "0.72358024", "0.72358024", "0.72234356", "0.71617615", "0.71453035", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.71293753", "0.7128729", "0.71172625", "0.7081918", "0.7070844", "0.7055689", "0.7043428", "0.70270085", "0.70172244", "0.70163536", "0.7009708", "0.7009708", "0.7009708", "0.70034885", "0.70005876", "0.6984234", "0.6981594", "0.69800687", "0.69773513", "0.69723934", "0.69682294", "0.69635123", "0.69583094", "0.69349694", "0.6932096", "0.6930558", "0.692378", "0.692378", "0.692378", "0.6920162", "0.691628", "0.69008106", "0.6876657", "0.6872487", "0.68713915", "0.68713915", "0.6868487", "0.6866358", "0.6856645", "0.6845127", "0.6834502", "0.682957", "0.6829429", "0.68284523", "0.68131894", "0.68090117", "0.680812", "0.6802201", "0.6798582", "0.6790785", "0.6782424", "0.67823", "0.67560405", "0.6750908", "0.67393357", "0.6734947", "0.6734634", "0.67154825", "0.67143923", "0.6711627", "0.6711627", "0.671071", "0.67062974", "0.6704903", "0.6696641", "0.668596", "0.6679598", "0.6677311", "0.6672249", "0.6654356", "0.6654356", "0.66536784", "0.6650889" ]
0.0
-1
getting the total price of the items in the cart
function total_price(){ $total = 0; global $con; $ip=getIp(); $sel_price = "select * from cart where ip_add='$ip'"; $run_price = mysqli_query($con,$sel_price); while($p_price=mysqli_fetch_array($run_price)){ $painting_id = $p_price['painting_id']; $painting_price = "select * from painting where painting_id='$painting_id'"; $run_painting_price = mysqli_query($con,$painting_price); while($pp_price = mysqli_fetch_array($run_painting_price)){ $painting_price = array($pp_price['painting_price']); $values = array_sum($painting_price); $total += $values; } } echo "$".$total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTotalPrice(){\n \treturn $this->myCart->total();\n }", "public function getTotalPrice()\n\t{\n\t\t$total = 0.0;\n\n\t\tforeach ($this->items as $item)\n\t\t{\n $total += $item->getPrice() + $item->getExtrasPrice();\n }\n\n\t\treturn $total;\n\t}", "function getPriceTotal()\n{\n\t$total = \\Cart::instance('shopping')->total();\n\n return $total;\n}", "function priceCart(){\n\t\t$sum = 0;\n\t\tforeach ($this->articulos as $bookid => $book) {\n\t\t\t$sum += $book['precio']*$book['cantidad'];\n\t\t}\n\t\treturn $sum;\n\t}", "public function getTotalPrice()\n {\n // use format_currency to get correct decimals and avoid rounding errors\n return $this->getQuantity() * format_currency($this->getProductPrice(),null, true);\n// return $this->getQuantity() * format_currency($this->getNetPrice(),null, true);\n }", "function getTotalPrice()\n {\n $total = 0;\n foreach ($_SESSION['cart'] as $key => $value) {\n $total += $_SESSION['cart'][$key]['total'];\n }\n return $total;\n }", "public function total()\n {\n // $this->line_items\n $total_price = 0;\n foreach ($this->line_items as $key => $value) {\n $total_price = $total_price + $value->product->price_amount;\n }\n // dd();\n return $total_price;\n }", "private function total()\n\t{\n\t\t//\tObteniendo los productos del carro.\n\t\t$cart = \\Session::get('cart');\n\t\t$total = 0;\n\t\t//\tSumando el precio de cada producto.\n\t\tforeach($cart as $item){\n\t\t\t$total += $item->precio * $item->cantidad;\n\t\t}\n\t\treturn $total;\n\t}", "public function getTotalPrice() {\n return $this->getQuantity()*$this->getPrice();\n }", "function get_cart_total() {\n\t\t\tif (!$this->prices_include_tax) :\n\t\t\t\treturn cmdeals_price($this->cart_contents_total);\n\t\t\telse :\n\t\t\t\treturn cmdeals_price($this->cart_contents_total + $this->tax_total);\n\t\t\tendif;\n\t\t}", "function getCartTotal(){\n\t\t$totalCost = 0;\n\t\t$cartInfo = $this->getCart();\n\t\t$cartInfoSize = sizeof($cartInfo);\n\t\t$cartInfoSize--;\n\t\tfor($i=0; $i<=$cartInfoSize; $i++) {\n\t\t\t$totalCost = $totalCost + $cartInfo[$i][\"price\"];\n\t\t}\n\n\t\treturn $totalCost;\t\n\t}", "public function get_total_items(){\n\t \t$total = 0;\n\t \t//Si no esta vacio va sumando la cantidad de articulos\n\t \tif(!empty($this->cart)){\n\t \t\tforeach ($this->cart as $linea){\n\t\t\t\t\t$total += $linea['amount'];\n\t\t\t\t}\n\t \t}\n\t \techo $total;\n\t }", "function total_price($cart){\n\t\t$price = 0.0;\n\t\tif(is_array($cart)){\n\t\t \tforeach($cart as $isbn => $qty){\n\t\t \t\t$medicineprice = getmedicineprice($isbn);\n\t\t \t\tif($medicineprice){\n\t\t \t\t\t$price += $medicineprice * $qty;\n\t\t \t\t}\n\t\t \t}\n\t\t}\n\t\treturn $price;\n\t}", "public function calculateTotalPrice($items){\n $total = 0;\n foreach($items as $item){\n $total += $item['subtotal'];\n }\n return $total;\n }", "public function total_items()\n {\n $total_items = 0;\n $items = $this->_session->offsetGet('products');\n if ($this->_isCartArray($items) === TRUE)\n {\n foreach ($items as $key)\n {\n $total_items =+ ($total_items + $key['qty']);\n }\n return $total_items;\n }\n }", "public function getTotal()\n {\n return $this->getQty() * $this->getProduct()->getPrice();\n }", "function total_price($cart){\n $price = 0.0;\n if(is_array($cart)){\n foreach($cart as $isbn => $qty){\n $bookprice = getbookprice($isbn);\n if($bookprice){\n $price += $bookprice * $qty;\n }\n }\n }\n return $price;\n }", "public function calcTotal()\n {\n\n $productBusinessService = new ProductBusinessService();\n\n // create an array to hold all subtotals\n $subtotals_array = array();\n $this->total_price = 0;\n\n foreach ($this->items as $item => $qty) {\n\n // get the price of the product from the database\n $product = $productBusinessService->getProductByID($item);\n\n // calculate the total (price * quantity)\n $product_subtotal = $product->getPrice() * $qty;\n\n // add that subtotal to the subtotal array\n $subtotals_array = $subtotals_array + array($item => $product_subtotal);\n\n // add the item subtotal to the cart total\n $this->total_price += $product_subtotal;\n }\n\n // set the subtotals array\n $this->subtotals = $subtotals_array;\n }", "public function total()\n {\n \treturn $this->price()*$this->quantity;\n }", "public function getTotalPrice();", "public function getTotalPrice();", "public function total(){\n return $this->cart_contents['cart_total'];\n }", "public function get_total_cost()\n\t{\n\t\t$num = '0.00';\n\t\tif (isset($_SESSION['cart']))\n\t\t{\n\t\t\t#if there are items to display \n\t\t\t\n\t\t\t#get product ids\n\t\t\t$ids = $this->get_ids();\n\t\t\t\n\t\t\t#get product prices\n\t\t\tglobal $Products;\n\t\t\t$prices = $Products->get_prices($ids);\n\t\t\t\n\t\t\t#loop throih adding the cost of each item and timesing it by the number of item in the cart. \n\t\t\tif($prices != NULL)\n\t\t\t{\n\t\t\t\tforeach($prices as $price)\n\t\t\t\t{\n\t\t\t\t\t$num += doubleval($price['price'] * $_SESSION['cart'][$price['id']]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $num;\n\t}", "public static function getCartTotal(){\n $totalAmount=0;\n $cart = self::getCartContent();\n foreach ($cart as $key => $value) {\n if(is_numeric($value['amount']))\n $totalAmount += $value['amount'];\n }\n return $totalAmount;\n }", "public function total(): float\n {\n return $this->itemsPrice()->sum(fn (array $item) => $item['price']);\n }", "public function __subTotal($items) {\n\n $price = 0.0;\n\n foreach ($items as $item) {\n\n// if ($item['currency_id'] == 2)\n// $currency = 1;\n//\n// if ($item['currency_id'] == 1)\n// $currency = 4.17;\n//\n// if ($item['currency_id'] == 3)\n// $currency = 4.50;\n\n //$price += $this->__lineItemTotal($item['qty'], $item['price'], $item['taxRate'], $item['currency_id']);\n //$price += $item['qty'] * $item['price'] * $currency;\n $price += $item['qty'] * $item['price'] * $item['rate'];\n }\n\n return $price;\n }", "public function cartTotalAmount()\n {\n $cartPrice = 0;\n\n if(Auth::check()) //if user is logged in\n {\n $userCartExistence = Cart::hasCart(Auth::id()); // check if user has any cart or not\n if($userCartExistence) //if user has any cart then calculate total amount of items\n {\n $cartPrice = Cart::CartTotalPrice(Auth::id());\n }\n }\n else //if user is not logged in\n {\n $Cart = Session::has('cart') ? Session::get('cart') : null; //check if there is any cart in the session\n if($Cart) //if there is a cart in the session then calculate total price of cart\n {\n $cartPrice = $Cart->totalPrice;\n }\n }\n\n return $cartPrice;\n }", "public function getTotal()\n {\n return $this->totalCalculator->getCartTotal($this->cart);\n }", "protected function getTotal()\n {\n $total = 0;\n foreach ($this->entries as $entry) {\n $total += $entry['price'] * $entry['quantity'];\n }\n\n return $total;\n }", "public function getPrice() {\n $sum = parent::getPrice();\n foreach ($this->extraItems as $extraItem) {\n $sum += $extraItem->getPrice();\n }\n return $sum;\n }", "public function getTotal()\n {\n $cart = $this->getContent();\n\n $sum = array_reduce($cart->all(), function ($a, ItemCollection $item) {\n return $a += $item->getPrice(false);\n }, 0);\n\n return Helpers::formatValue(floatval($sum), $this->config['format_numbers'], $this->config);\n }", "public function get_total_cost()\n {\n $num = \"0.00\";\n\n if (isset($_SESSION['cart'])) {\n // if there are items to display\n $ids = $this->get_ids();\n\n // get product ids\n global $products;\n $prices = $products->get_prices($ids);\n\n // loop through, adding the cost of each item * the number of item\n // in the cart to $num each time\n\n if ($prices != null) {\n foreach ($prices as $price) {\n $num += doubleval($price['price'] * $_SESSION['cart'][$price['id']]);\n }\n }\n }\n return $num;\n }", "public function getTotalValue()\n {\n $totalValue = 0.0;\n $cartItems = $this->cart->getCartItems();\n\n foreach ($cartItems as $cartItem) {\n $totalValue += $cartItem['price'] * $cartItem['quantity'];\n }\n\n return $totalValue;\n }", "public function getTotalPrice()\n {\n $stat = $this->getAllStat();\n return $stat['totalPrice'];\r\n }", "public function getProductsCostTotal()\n {\n return $this->getProducts()->sum('price');\n }", "public function total_items()\n\t{\n\t\treturn array_get($this->cart_contents, $this->cart_name . '.total_items', 0);\n\t}", "public function get_cart_total() {\n\t\treturn apply_filters( 'woocommerce_cart_contents_total', wc_price( wc_prices_include_tax() ? $this->get_cart_contents_total() + $this->get_cart_contents_tax() : $this->get_cart_contents_total() ) );\n\t}", "public function getTotalPrice()\n {\n return $this->_totalPrice;\n }", "public function getCartTotal()\n {\n }", "public function subtotal()\n\t{\n\t\tif(count($this->cart) > 0)\n\t\t{\n\t\t\t$products = \\Model_Products::build();\n\t\t\tforeach($this->cart as $key => $item)\n\t\t\t{\n\t\t\t\t$products->or_where('ProductID', $key);\n\t\t\t}\n\t\t\t$products->selector('Product_Price, ProductID');\n\n\t\t\t$prices = $products->execute();\n\n\t\t\t$subtotal = 0;\n\n\t\t\tforeach($prices as $price)\n\t\t\t{\n\t\t\t\t$subtotal += (int)$price->Product_Price*$this->cart[$price->ProductID];\n\t\t\t}\n\t\t\t\n\t\t\treturn $subtotal;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t}", "public function get_total()\n\t{\n\t\treturn $this->EE->cartthrob->cart->total();\n\t}", "function total_price(){\n\t\n\t\t$total = 0;\n\t\t\n\t\tglobal $con; \n\t\t\n\t\t$ip = getIp(); \n\t\t\n\t\t\n\t\tif(isloggedin()){\n\t\t $c_id=$_SESSION['cid'];\n\t\t \n\t\t $sel_price = \"select * from cart where customer_id='$c_id'\";\n \t\t$run_price = mysqli_query($con, $sel_price); \n \t\t\n \t\twhile($p_price=mysqli_fetch_array($run_price)){\n \t\t\t\n \t\t\t$pro_id = $p_price['p_id']; \n \t\t\t$pro_qty =$p_price['qty'];\n \t\t\t\n \t\t\t$pro_price = \"select * from products where product_id='$pro_id'\";\n \t\t\t$run_pro_price = mysqli_query($con,$pro_price); \n \t\t\t\n \t\t\twhile ($pp_price = mysqli_fetch_array($run_pro_price)){\n \t\t\t\n \t\t\t$product_price = array($pp_price['product_price']*$pro_qty);\n \t\t\t$values = array_sum($product_price);\n \t\t\t\n \t\t\t$total +=$values;\n \t\t\t\n \t\t\t}\n\t\t \n\t\t }\n\t\t}\n\t\telse{\n \t\t \n \t\t$sel_price = \"select * from cart where ip_add='$ip' AND customer_id='0'\";\n \t\t$run_price = mysqli_query($con, $sel_price); \n \t\t\n \t\twhile($p_price=mysqli_fetch_array($run_price)){\n \t\t\t\n \t\t\t$pro_id = $p_price['p_id']; \n \t\t\t$pro_qty =$p_price['qty'];\n \t\t\t\n \t\t\t$pro_price = \"select * from products where product_id='$pro_id'\";\n \t\t\t$run_pro_price = mysqli_query($con,$pro_price); \n \t\t\t\n \t\t\twhile ($pp_price = mysqli_fetch_array($run_pro_price)){\n \t\t\t\n \t\t\t$product_price = array($pp_price['product_price']*$pro_qty);\n \t\t\t$values = array_sum($product_price);\n \t\t\t\n \t\t\t$total +=$values;\n \t\t\t\n \t\t\t}\n\t\t\n\t\t }\n\t\t\n\t\t}\n\t\t\n\t\techo \" €\" . $total.\" \";\n\t\t\n\t}", "public function total()\n {\n if ($this->_isCartArray($this->cart()) === TRUE)\n {\n $price = 0;\n $vat = 0;\n foreach ($this->cart() as $key)\n {\n $item_price = ($key['price'] * $key['qty']);\n $item_vat = (($item_price/100)*$key['vat']);\n // $price =+ ($price + ($key['price'] * $key['qty']));\n $price += $item_price;\n $vat += $item_vat;\n }\n\n // $params = $this->_config['vat'];\n // $vat = $this->_formatNumber((($price / 100) * $params));\n\n return array(\n 'sub-total' => $this->_formatNumber($price),\n 'vat' \t\t=> $this->_formatNumber($vat),\n 'total' \t=> $this->_formatNumber($price + $vat)\n );\n }\n }", "function get_total() {\n\t\t\treturn cmdeals_price($this->total);\n\t\t}", "public function calculateTotalPrice()\n {\n $this->price = CartHelper::getTotalPrice();\n\n if ($this->shippingCarrierId) {\n $shippingCarrier = ShippingCarrier::find($this->shippingCarrierId);\n if ($shippingCarrier) {\n $this->price += TaxesHelper::calcPriceWithTax($shippingCarrier->price);\n }\n }\n\n if ($this->paymentMethodId) {\n $paymentMethod = PaymentMethod::find($this->paymentMethodId);\n if ($paymentMethod) {\n $this->price += TaxesHelper::calcPriceWithTax($paymentMethod->price);\n }\n }\n\n $this->taxes = TaxesHelper::calcTaxPrice($this->price);\n }", "function total( $params ) {\n\t\textract( $params );\n\n\t\t// Should zcarriage be in the items or not? If $zcarriage='NO' exclude the zcarriage from the total cost\n\t\t$zcarriage = !empty( $zcarriage ) && $zcarriage == 'NO' ? \" AND sku<>'zcarriage'\" : '';\n\n\t\t// The pu already contains vat\n\t\t$res = $this->db->query( \"SELECT SUM(ci.qty*ci.pu) price FROM cart_items ci INNER JOIN cart c ON c.id=ci.cart_id WHERE cart_id='\".$cart_id.\"' AND user='\".$user_no.\"' AND qty>0\".$zcarriage )->row_array();\n\t\treturn $res[ 'price' ];\n\t}", "public function calculateOrderTotal($items)\n {\n $total = 0;\n foreach ($items as $key => $item) {\n $total += $item['quoted_price'];\n }\n return $total;\n }", "public function total()\n {\n $total = 0;\n foreach($this->_data as &$product) {\n $total += ($product['price'] * $product['quantity']);\n }\n\n return $total;\n }", "public function getTotalAttribute() {\n return $this->cartItems->map(function ($item, $key) {\n return $item->subtotal;\n })->sum();\n }", "public function get_rows_total_price()\n\t{\n\t\t// TODO: This price should be stored not calculated every time!\n\t\t$total = 0;\n\n\t\tforeach ($this->get_rows() as $row)\n\t\t{\n\t\t\t$total += $row->prop(\"price\") * $row->prop(\"items\");\n\t\t}\n\n\t\treturn $total;\n\t}", "public function calculateTotal() {\n $result = 0;\n\n if(isset($_SESSION['user']['basket']))\n foreach ($_SESSION['user']['basket'] as $item)\n $result += $item['product']['price']*$item['quantity'];\n\n return $result;\n }", "public function itemTotal(): float;", "public function total()\n\t{\n\t\treturn array_get($this->cart_contents, $this->cart_name . '.cart_total', 0);\n\t}", "public function getTotalPrice()\n {\n $price = 0;\n \n if ($this->hasProducts()) {\n foreach ($this->getBasketProductsJoinProduct() as $basketProduct) {\n $price = $price + $basketProduct->getTotalPrice();\n }\n }\n \n return $price;\n }", "public function total(): float\n {\n $price = $this->price;\n\n /* if ($this->hasOptions()) {\n foreach ($this->data['options'] as $item) {\n if (array_key_exists('price', $item)) {\n $price += $item['price'];\n }\n }\n }\n\n if ($includeTax) {\n $price = $this->tax->add($price);\n }*/\n\n return (float)($price * $this->quantity);\n }", "function price(){\n\n\t\t$total = 0; //initialize to 0 lest error\n\n\t\tglobal $con;\n\n\t\t$ip=getIP();\n\n\t\t$sel_price = \"select * from cart where ip_add='$ip'\"; //get price from what is in the cart for whoevers ip address\n\n\t\t$run_price = mysqli_query($con, $sel_price);\n\n\t\twhile ($p_price = mysqli_fetch_array($run_price)){\n\n\t\t\t$pro_id = $p_price['p_id'];\n\n\t\t\t$pro_price = \"select * from products where product_id='$pro_id'\";\n\n\t\t\t$run_pro_price = mysqli_query($con, $pro_price);\n\n\t\t\t//link to the products table to get prices\n\t\t\twhile($pp_price = mysqli_fetch_array($run_pro_price)){\n\n\t\t\t\t$product_price = array($pp_price['product_price']);\n\t\t\t\t//array to get all the prices in one\n\n\t\t\t\t$values = array_sum($product_price);\n\n\t\t\t\t$total +=$values; //sum\n\n\t\t\t}\n\t\t}\n\n\t\techo \"Ksh\" . $total;\n\n\t}", "public static function total()\n {\n $total = 0;\n if (isset($_SESSION['cart']) && $_SESSION['cart'] != null) {\n foreach ($_SESSION['cart'] as $cart) {\n $total += $cart['qty'];\n }\n }\n return $total;\n }", "public function get_current_amount()\n\t{\n\t\t$sum = 0;\n\t\tforeach ($this->get_cart_items() as $key => $value) {\n\t\t\tif (isset($value['price']))\n\t\t\t\t$sum += ($value['price'] * $value['qty']);\n\t\t}\n\t\treturn $sum;\n\t}", "public function getTotal(): float\n {\n $total = 0;\n foreach ($this->itemsVolume as $code => $volume) {\n $total += $this->store->calculatePrice($code, $volume);\n }\n return $total;\n }", "public function getTotal()\n {\n return $this->getAmount() * $this->getPrice();\n }", "public function testCartTotalAmount()\n {\n $items = new MollieLineItemCollection([\n new MollieLineItem(\n '',\n '',\n 1,\n new LineItemPriceStruct(2.73, 2.73, 0.44, 19),\n '',\n '',\n '',\n ''\n ),\n new MollieLineItem(\n '',\n '',\n 2,\n new LineItemPriceStruct(1, 2, 0.47, 19),\n '',\n '',\n '',\n ''\n ),\n ]);\n\n $this->assertEquals(4.73, $items->getCartTotalAmount());\n }", "function total_items($cart){\n\t\t$items = 0;\n\t\tif(is_array($cart)){\n\t\t\tforeach($cart as $isbn => $qty){\n\t\t\t\t$items += $qty;\n\t\t\t}\n\t\t}\n\t\treturn $items;\n\t}", "function total_price() {\n\t\n\t $ip_add = getRealIpAddr();\n\t\t\n\t\tglobal $db;\n\t\t\n\t\t$total=0;\n\t\t\n\t\t$sel_price = \"select * from cart where ip_add='$ip_add'\";\n\t\t\n\t\t$run_price = mysqli_query($db, $sel_price);\n\t\t\n\t\twhile ($record= mysqli_fetch_array($run_price)){\n\t\t\t\n\t\t\t$pro_id = $record['p_id'];\n\t\t\t\n\t\t\t$pro_price = \"select * from products where product_id='$pro_id'\";\n\t\t\t\n\t\t\t$run_pro_price = mysqli_query($db,$pro_price);\n\t\t\t\n\t\t\twhile($p_price=mysqli_fetch_array($run_pro_price)){\n\t\t\t\t\n\t\t\t\t$product_price = array($p_price['product_price']);\n\t\t\t\t\n\t\t\t\t$values = array_sum($product_price);\n\t\t\t\t\n\t\t\t\t$total += $values;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\techo \"Rs\" . $total;\n\t\n}", "function totalPrice(){\n \n global $conn;\n\n $ip_add = getUserIp();\n $total = 0;\n\n $select_cart = \"SELECT * FROM cart WHERE ip_address = '$ip_add'\";\n $run_select_cart = mysqli_query($conn, $select_cart) or die(\"Total Price Query Failed\");\n while($row_select_cart = mysqli_fetch_assoc($run_select_cart)){\n $pro_id = $row_select_cart['cart_id'];\n $product_qty = $row_select_cart['qty'];\n\n $get_price = \"SELECT * FROM products WHERE product_id = '$pro_id'\";\n $run_get_price = mysqli_query($conn, $get_price);\n while($row_get_price = mysqli_fetch_assoc($run_get_price)){\n $price_qty = $row_get_price['product_price'] * $product_qty;\n\n $total = $total + $price_qty; \n }\n }\n\n echo $total; \n }", "public function calculateTotalAmount()\n {\n\n $total = 0;\n $base_currency_total = 0;\n $items_in_bag = Session::get('items');\n\n if (!empty($items_in_bag)) {\n foreach ($items_in_bag as $item) {\n $priceAccessoiresMust = 0;\n $priceAccessoires = 0;\n if (!empty($item['orderItemAccessories'])) {\n foreach ($item['orderItemAccessories'] as $orderItemAccessorie) {\n if (Session::get('cur_currency') === 'USD') {\n if(!empty($orderItemAccessorie['must_purchase']) && $orderItemAccessorie['must_purchase'] == 1) {\n $priceAccessoiresMust = $priceAccessoiresMust + $item['quantity'] * ($orderItemAccessorie['price'] * Session::get('amount_per_unit'));\n }else{\n $priceAccessoires = $priceAccessoires + 1 * ($orderItemAccessorie['price'] * Session::get('amount_per_unit'));\n }\n } else {\n if(!empty($orderItemAccessorie['must_purchase']) && $orderItemAccessorie['must_purchase'] == 1) {\n $priceAccessoiresMust = $priceAccessoiresMust + $item['quantity'] * ($orderItemAccessorie['price'] * Session::get('amount_per_unit'));\n }else{\n $priceAccessoires = $priceAccessoires + 1 * ($orderItemAccessorie['price'] * Session::get('amount_per_unit'));\n }\n }\n }\n }\n\n if (Session::get('cur_currency') === 'USD') {\n $price = $item['quantity'] * ($item['price'] * Session::get('amount_per_unit'));\n } else {\n $price = $item['quantity'] * $item['price'];\n }\n\n $base_currency_total = $base_currency_total + ($item['price'] * $item['quantity']) + $priceAccessoiresMust + $priceAccessoires;\n $total = round($total + $price + $priceAccessoiresMust + $priceAccessoires, 2);\n\n }\n }\n\n Session::put('total', $total);\n Session::put('bc_currency_total', $base_currency_total);\n return $total;\n }", "function total_price(){\n\t$total = 0; // agei instantiate kore dilam j zero\n\tglobal $con;\n\t$ip=getIp();\n\t$sel_price = \"select * from cart where ip_add='$ip'\";\n\t$run_price=mysqli_query($con, $sel_price);\n\twhile($p_price=mysqli_fetch_array($run_price)){\n\t\t$pro_id=$p_price['p_id'];//ip address wise product er id ta dibe, from there we can tell what is the prrice of product\n\t\t$pro_price=\"select * from products where product_id='$pro_id'\"; // cart table theke product id ta niye seta k product table er product ider sathe match kortese\n\t\t$run_pro_price = mysqli_query($con, $pro_price);\n\t\twhile($pp_price = mysqli_fetch_array($run_pro_price)){// product table theke product id wise product price ta niye ashtese\n\t\t\t\t$product_price= array($pp_price['product_price']); //that certain user joto product cart a add korsilo segula sob k akta array te rakhlam\n\t\t\t\t$values= array_sum($product_price); //oi uporer array er sumation kore show korbe akta value..like total value \n\t\t\t\t$total+=$values;\n\t\t\n\t\t}\n\n\t}\n\techo $total;\n}", "function total_items($cart){\n $items = 0;\n if(is_array($cart)){\n foreach($cart as $isbn => $qty){\n $items += $qty;\n }\n }\n return $items;\n }", "public function getTotalPrice(): float;", "function getPrice($cart) {\n $cart = $cart['items'];\n\n $totalCost = 0;\n\n /**\n * Sums the cost of each product in the user's cart.\n */\n for ($i = 0; $i < sizeof($cart); $i++) {\n $quantity = ['dvdQuantity' => (int)$cart[$i]['dvdQuantity'], 'bluRayQuantity' => (int)$cart[$i]['bluRayQuantity']];\n\n foreach ($quantity as $key => $value) {\n $isDVD = ($key) === 'dvdQuantity';\n\n if ($value > 0) {\n $totalCost += ($value * (float)$cart[$i][($isDVD) ? 'dvdPrice' : 'bluRayPrice']);\n }\n }\n }\n\n /**\n * The total cost summary is calculated.\n */\n $priceBreakdown = ['subTotal' => bcdiv($totalCost, 1, 2),\n 'vat' => bcdiv((0.20 * $totalCost), 1, 2),\n 'postAndPackaging' => 'Free',\n 'grandTotal' => bcdiv(($totalCost + (0.20 * $totalCost)), 1, 2)\n ];\n\n return $priceBreakdown;\n}", "public function individual_products_total() {\n\n foreach($this->remaining_category_price as $remaining_category_prices){\n $this->individual_products_total += $remaining_category_prices['price'];\n }\n\n }", "function total_price(){\n\t\t\n\t global $db;\n\t \n $ip_add = getRealIpAddr(); /* saving ip address in local variable*/\n\t \n\t $total = 0; /*price should start from 0*/\n\n\t $sel_price =\"SELECT * FROM cart WHERE ip_add = '$ip_add'\"; /* when user is online,detect its ip address by selecting it from cart table*/\n\t\t\n\t$run_price = mysqli_query($db,$sel_price);\n\t\n\twhile($record=mysqli_fetch_array($run_price)) {\n\t\t\n\t$pro_id = $record['p_id'];\t /* We fetched p_id from cart table in database with fetch array.fetchimg all ids that are selected bu user till now*/\n\t /* relation between two tables.we are running another query cos price is not included in cart table.its in products table.so we are making relation between two tables to fetch price from another table*/\n\t$pro_price =\"SELECT * FROM products WHERE product_id= '$pro_id'\"; /* Now we are finding id in products table in database,those id that are present in cart table in database.only then we would able to get price of products*/\n\t\t\n\t$run_pro_price = mysqli_query($db,$pro_price);\n\t\n\twhile($p_price=mysqli_fetch_array($run_pro_price)){\n\t\t\n\t\t\n\t\t$product_price = array($p_price['product_price']); /* We need product_price from products table.we used array because we need multiple prices of products in array form like,500,400,300 and so on*/ \n\t\n\t $values = array_sum($product_price); /* we added prices of all products with the help of array_sum.its easy to add 2 things in php.but if things are more than 2 then arraysum is used to add sum of arrays.it will add price of records one by one as user click add cart button */\n\t\n\t $total += $values; /* we added values variable to total variable that was zero.if you delete products it will show 0*/\n\t\n\t}\n\t\n\t\n\t}\n\t\n\t echo \"$\" . $total; /* \"$\" currency*/\n\t}", "public function initTotal()\n {\n // Return val.\n $temp = 0;\n // Add cone price.\n $temp += $this->coneType['price'];\n // Add all scoops of ice cream.\n foreach ($this->scoops as $scoop) {\n $temp += $scoop['price'];\n }\n // Return total item cost.\n return $temp;\n }", "function totalPrice() {\n\n $total = 0;\n\n global $con;\n\n $ip = getIp();\n\n $run_price = mysqli_query($con,\"SELECT * FROM cart WHERE ip_add = '$ip'\");\n\n while($row_pro_price = mysqli_fetch_array($run_price)) {\n\n $pro_id = $row_pro_price['p_id'];\n $pro_qty = $row_pro_price['qty'];\n\n $run_pro_price2 = mysqli_query($con,\"SELECT * FROM products WHERE product_id = '$pro_id'\");\n\n while($row_pro_price2 = mysqli_fetch_array($run_pro_price2)) {\n\n $pro_price = array($row_pro_price2['product_price']);\n\n $pro_price_single = $row_pro_price2['product_price'];\n\n $pro_price_values = array_sum($pro_price);\n\n\n $total += $pro_price_values;\n\n if($pro_qty > 1) {\n $pro_price_single_all = $pro_price_single * $pro_qty;\n $total = $total + $pro_price_single_all - $pro_price_single;\n }\n\n\n }\n\n }\n echo \"$\" . $total;\n }", "public function getCartPrice()\n {\n return 111;\n }", "private function calculatePrice($items)\n {\n //creating new ShoppingCartVisitorImpl object\n $visitor = new ShoppingCartVisitorImpl();\n\n $sum = 0; //creating local variable and assigning 0 to it\n\n //looping over till the end of the array\n for ($j = 0; $j < count($items); $j++) {\n //calling accept function of class that has implemented ItemElement and getting the values and adding\n $sum = $sum + $items[$j]->accept($visitor);\n }\n return $sum;\n }", "function total_price(){\n\nglobal $db;\n\n$ip_add = getRealUserIp();\n\n$total = 0;\n\n$select_cart = \"select * from cart where ip_add='$ip_add'\";\n\n$run_cart = mysqli_query($db,$select_cart);\n\nwhile($record=mysqli_fetch_array($run_cart)){\n\n$pro_id = $record['p_id'];\n\n$pro_qty = $record['qty'];\n\n\n$sub_total = $record['p_price']*$pro_qty;\n\n$total += $sub_total;\n\n\n\n\n\n\n}\n\necho \"$\" . $total;\n\n\n\n}", "public function subtotal()\n {\n return $this->getCartSessionCollection()->map(function($item, $key) {\n return $item['price'] * $item['quantity'];\n })->reduce(function($carry, $item) {\n return $carry + $item;\n });\n }", "public function getPrice() {\n return $this->item->getPrice();\n }", "public function getTotal(): float\r\n {\r\n $total = 0;\r\n\r\n foreach ($this->basket as $product => $quantity) {\r\n $total += $this->product_price_calculator->getTotalPrice($product, $quantity);\r\n }\r\n\r\n return $total;\r\n }", "public function amount()\n {\n return $this->products()->select('price')->get()->sum(function ($product) {\n return $product->price;\n });\n }", "public function getTotalEstimated() {\n\t\t$total = 0;\n\t\t$this->costitem->get();\n\t\tforeach($this->costitem->all as $item) {\n\t\t\tif ($item->item_type == 'price') {\n\t\t\t\t$total += $item->amount;\n\t\t\t}\n\t\t}\n\t\treturn $total;\n\t\t\n\t}", "public function getSumCartWithCartDetailsAttribute()\n {\n $price = $this->cart_detials->sum('TotalCartDetails') + $this->getTotalCartAttribute();\n return $price;\n }", "function total_price(){\n\t$total=0;\n\tglobal $conn;\n\t$ip = getIp();\n\t$sql = \"SELECT * FROM cart where ip_add='$ip'\";\n\t$result = $conn->query($sql);\n\twhile($row=$result->fetch_assoc()){\n\t\t$pro_id= $row[\"p_id\"];\n\t\t$pro_price= \"SELECT * FROM products where product_id='$pro_id' AND stock='0'\";\n\t\t$result2 = $conn->query($pro_price);\n\t\twhile($row2=$result2->fetch_assoc()){\n\t\t\t$product_price= array($row2[\"product_price\"]);\n\t\t\t$values = array_sum($product_price);\n\t\t\t$total +=$values;\n\t\t\t}\n\t}\n\techo number_format($total) ;\n}", "public static function totalItem(){\n if(Auth::check()){\n $cart = cart::Where('user_id', Auth::id() )\n ->Where('order_id',NULL)\n ->get();\n }\n else{\n $cart = cart::Where('ip_address', request()->ip() )\n ->Where('order_id',NULL)\n ->get();\n }\n $totalItem=0;\n foreach ($cart as $value) {\n $totalItem += $value->product_quantity;\n }\n return $totalItem;\n\n}", "public function getTotalCost()\n {\n $totalCost = 0.00;\n\n foreach ($this->getItems() as $cartItem) {\n $totalCost += ($cartItem->price * $cartItem->count);\n }\n\n return $totalCost;\n }", "function total_price(){\n\t\t//total price starts from 0\n\t\t$total=0;\n\tglobal $connection;\n\t\t$ip=getIp();\n\t\t//taken data from cart table using the customers ip address\n\t\t$select_price = \"select * from cart where ip_address='$ip'\";\n\t\t$run_price = mysqli_query($connection,$select_price);\n\t\t//this while loop takes data from product table according to the product id \n\t\twhile($product_price=mysqli_fetch_array($run_price)){\n\t\t\t$product_id=$product_price['product_id'];\n\t\t\t$product_price=\"select * from products where product_id='$product_id'\";\n\t\t\t$run_product_price=mysqli_query($connection, $product_price);\n\t\t\t//used an array to get all data into a single variable \n\t\t\twhile($pp_price=mysqli_fetch_array($run_product_price)){\n\t\t\t\t//product prices set in the array to add up\n\t\t\t\t$product_price=array($pp_price['product_price']);\n\t\t\t\t$values=array_sum($product_price);\n\t\t\t\t//total price \n\t\t\t\t$total +=$values;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\techo \"LKR. \" . $total;\n\t}", "public function getBasketPrice(){\n $sum = 0;\n foreach ($this->products as $i => $product) {\n $sum += $product->price * $product->count;\n }\n return $sum;\n }", "public function subtotal()\n {\n $subTotal = 0;\n foreach($this->items as $item) {\n $subTotal += $item->get(Cart\\Item::KEY_AMOUNT);\n }\n return $subTotal;\n }", "function calculateTotalPrice()\n {\n $this->sellingPrice = $this->bid;\n $this->buyersPremium = $this->sellingPrice * 0.1;\n $this->totalPrice = $this->sellingPrice + $this->buyersPremium;\n\n return $this->totalPrice;\n }", "function getSubTotal()\n {\n return $this->_cart->getQuote()->getSubtotal();\n }", "public function get_total( $context = 'view' ) {\n\t\t$total = apply_filters( 'woocommerce_cart_' . __FUNCTION__, $this->get_totals_var( 'total' ) );\n\t\treturn 'view' === $context ? apply_filters( 'woocommerce_cart_total', wc_price( $total ) ) : $total;\n\t}", "function cart_total_it($type)\n {\n $carted = $this->cart->contents();\n $ret = 0;\n if (count($carted) > 0) {\n foreach ($carted as $items) {\n $ret += $items[$type] * $items['qty'];\n }\n return $ret;\n } else {\n return false;\n }\n }", "function total_price2(){\n\tglobal $conn;\n\t$ip = getIp();\n\t$total=0;\n\t$get_cart =mysqli_query($conn, \"SELECT * FROM `cart` WHERE `ip_add`='$ip'\");\n\twhile ( $row_cart=mysqli_fetch_array($get_cart)) {\n\t\t# code...\n\n\t\t$quantity= $row_cart[\"qty\"];\n\t\t$product_id=$row_cart['p_id'];\t\n\n\t$get_price =mysqli_query($conn, \"SELECT * FROM `products` WHERE `product_id`='$product_id' AND `stock`='0'\");\n\twhile ( $row_price = mysqli_fetch_array($get_price)) {\n\t\n\t\t$price= $row_price[\"product_price\"];\n\n\t//get the subtotal\n\t$sub_total=$price * $quantity;\n\n\t$total +=$sub_total;\n\t}\n\t\n\t}\n\t\n\n\treturn $total;\n\n\t\n}", "public function getTotalPrice()\n {\n return isset($this->TotalPrice) ? $this->TotalPrice : null;\n }", "function totalPrice(){\n $ip_add=getRealIpAddr();\n global $db;\n $total = 0;\n $sel_price = \"SELECT * FROM cart where ip_add = '$ip_add'\";\n $run_price = mysqli_query($db, $sel_price);\n while ($record = mysqli_fetch_array($run_price)) {\n $pro_id = $record['p_id'];\n $pro_price = \"SELECT * FROM products where product_id = '$pro_id'\";\n $run_pro_price = mysqli_query($db, $pro_price);\n while ($p_price = mysqli_fetch_array($run_pro_price)) {\n $product_price = array($p_price['product_price']);\n $values = array_sum($product_price);\n $total += $values;\n }\n }\n echo \"$\" . $total;\n}", "public function get_total_items()\n {\n $num = 0;\n\n if (isset($_SESSION['cart'])) {\n foreach ($_SESSION['cart'] as $item) {\n $num = $num + $item;\n }\n }\n return $num;\n }", "public function getCartVolume() {\n $product_total = 0;\n\n $products = $this->getProducts();\n\n foreach ($products as $product) {\n //$product_total += $product['quantity'];\n $product_total += $product['quantity'];\n }\n\n return $product_total;\n }", "public function getTotalPrice()\n {\n $tax = $this->tax->tax;\n $price = $this->getFinalPrice();\n $shipping = $this->shipping_cost;\n\n return ((($price + $shipping) * $tax) + $price + $shipping);\n }", "function total_price($price_summary) {\r\n return ($price_summary ['OfferedPriceRoundedOff']);\r\n }", "function get_order_total(){\n\t$cart = $_SESSION['custCart_ID']; // the SESSION and COOKIE customer cart items array\n\t$max=count($_SESSION[$cart]);\n\t$sum=0;\n\tfor($i=0;$i<$max;$i++){\n\t\t$pid=$_SESSION[$cart][$i]['bookid'];\n\t\t$q=$_SESSION[$cart][$i]['qty'];\n\t\t$price=get_price($pid);\n\t\t$sum+=$price*$q;\n\t}\n\treturn $sum;\n}" ]
[ "0.84942466", "0.81310517", "0.8109373", "0.80293113", "0.80263996", "0.8000603", "0.7986064", "0.79784304", "0.79456615", "0.79284626", "0.7893552", "0.78922343", "0.7847938", "0.78405136", "0.77989674", "0.7787194", "0.7758855", "0.77430505", "0.7740257", "0.76677203", "0.76677203", "0.7646204", "0.76104844", "0.7579967", "0.7574952", "0.7556713", "0.75393707", "0.753593", "0.7535424", "0.7519988", "0.7509395", "0.7475315", "0.74742496", "0.74672294", "0.7461722", "0.74553704", "0.74524283", "0.7447967", "0.74393666", "0.7411703", "0.7388168", "0.73853743", "0.7370025", "0.7360605", "0.73592496", "0.7357666", "0.7357388", "0.7348849", "0.7346709", "0.73229617", "0.7317808", "0.731331", "0.7293401", "0.72871524", "0.7272027", "0.7259057", "0.72522783", "0.72480243", "0.72460276", "0.7239304", "0.7238807", "0.723413", "0.7229426", "0.72265893", "0.721784", "0.7217472", "0.7207336", "0.7198465", "0.7170749", "0.7148685", "0.713813", "0.7127145", "0.71257746", "0.7125555", "0.71077806", "0.71061885", "0.71041447", "0.7103869", "0.7102741", "0.71018964", "0.7078407", "0.70691025", "0.70658803", "0.7065046", "0.70621073", "0.706011", "0.70587265", "0.7055223", "0.7054487", "0.7053403", "0.7035173", "0.7029774", "0.7015291", "0.70038015", "0.7002063", "0.6993278", "0.6989629", "0.69880027", "0.69823265", "0.6964582" ]
0.71119565
74
/if(!$con) echo "not connect"; getting the categories
function getCats(){ global $con; $get_cats= "select * from categories"; $run_cats= mysqli_query($con,$get_cats); while ($row_cats=mysqli_fetch_array($run_cats)){ $cat_id= $row_cats['cat_id']; $cat_title = $row_cats['cat_title']; echo "<li><a href='index.php?cat=$cat_id'>$cat_title</a></li>"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function afficherCategories()\n\t{\n\t\t$sql=\"SElECT * From categorie\";\n\t\t$db = config::getConnexion();\n\t\ttry\n\t\t{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "function affichercategories(){\r\n\t\t$sql=\"SElECT * From categorie\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry{\r\n\t\t$liste=$db->query($sql);\r\n\t\treturn $liste;\r\n\t\t}\r\n catch (Exception $e){\r\n die('Erreur: '.$e->getMessage());\r\n }\t\r\n\t}", "function afficherCategories2(){\n\t\t$sql=\"SElECT nom From categorie\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "public function getCategories(){\n\t\t$query = \"SELECT * FROM final_categoria\";\n\t\treturn $this->con->action($query);\n\t}", "function getCategories()\n\t{\n\t\tglobal $con;\n\t\t\t\n\t\t//echo var_dump($con);\n\t\t$get_cats = \"select * from categories\";\n\t\t$run_cats = mysqli_query($con, $get_cats);\n\t\twhile ($row = mysqli_fetch_array($run_cats)){\n\t\t\t$id = $row['cat_id'];\n\t\t\t$title =$row['cat_title'];\n\n\t\t\techo \"<div class='category_link'><a href='index.php?cat=$id'>$title</a></div>\";\n\t\t}\n\t}", "public function GetCategories() {\n // Setup the Query\n $this->sql = \"SELECT *\n FROM categories\";\n \n // Run the query \n $this->RunBasicQuery();\n }", "function afficherCategorie(){\n\t\t$sql=\"SElECT * From categorie \";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "function afficherCategoriess(){\n $sql=\"SElECT * From categorie\";\n $db = config2::getConnexion(); //config\n try{\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\n }", "public function get_categories() {\n\t error_log(\"get_categories - category id: \" . $category_id,0);\n\n\t$query = \"SELECT * FROM category ORDER BY category_name ASC\";\n\n\t error_log(\"get_categories - query: \" . $query,0);\n\n \t $result = mysql_query($query);\n\n if ($result) {\n return $result;\n } else {\n\terror_log(\"did not get categories\",0);\n $error = mysql_errno();\n return -$error;\n }\n\n }", "function getCategorie($ref){\n\t\t$sql=\"SElECT * From categorie where id_cat='\".$ref.\"'\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "function get_all_categorie($conn)\n\t{\n\t\t$query = \"SELECT * FROM categorie\";\n\t\treturn mysqli_query($conn,$query);\n\t}", "function call_categories() {\r\n\t\t\t$xyquery = \"SELECT * FROM categories\";\r\n\t\t\t$xyresult = mysql_query($xyquery) or die(mysql_error());\r\n\t\t\treturn $xyresult;\r\n}", "function getCategory(){\n\t\t\t$data = array(); \n\t\t\t$query = \"select * from packages_category\";\n\t\t\t$result = mysql_query($query);\n\t\t \n\t\t\tif($result){\n\t\t\t\twhile($row = mysql_fetch_assoc($result)){\n\t\t\t\t\tarray_push($data,$row);\n\t\t\t\t}\n\t\t\t\treturn $data;\n\t\t\t}else{\n\t\t\t\tdie(\"error in mysql query \" . mysql_error());\n\t\t\t}\n\t\t}", "function getCategories() {\n\t$sql = \"select * FROM category ORDER BY id\";\n\ttry {\n\t\t$db = getConnection();\n\t\t$stmt = $db->query($sql); \n\t\t$categories = $stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t$db = null;\n\t\techo '{\"data\": ' . json_encode($categories) . '}';\n\t} catch(PDOException $e) {\n\t\techo '{\"error\":{\"text\":'. $e->getMessage() .'}}'; \n\t}\n}", "function find_categories($db){\n\n\n\t$sql = \"SELECT * FROM categories ORDER BY name_cat ASC\";\n\n\t$categories = mysqli_query($db, $sql);\n\n\t$result = array();\n\n\tif ($categories && mysqli_num_rows($categories) >= 1){\n\t\t$result = $categories;\t\n\t}\n\n\treturn $result;\n}", "function getCategories(){\n\treturn dbSelect('categories');\n}", "private function getAllCategories()\n {\n $query = Queries::$getAllCategories;\n\n try {\n $stmt = $this->db->prepare($query);\n $stmt->execute();\n $result = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n $this->successResponse($result);\n } catch (\\PDOException$e) {\n $this->errorResponse($e->getMessage());\n }\n }", "function obtenerCategorias($conn) {\r\n\t\t\t$categorias = array();\r\n\t\t\t\r\n\t\t\t$sql = \"SELECT ID_CATEGORIA, NOMBRE FROM CATEGORIA\";\r\n\t\t\t\r\n\t\t\t$resultado = mysqli_query($conn, $sql);\r\n\t\t\tif ($resultado) {\r\n\t\t\t\twhile ($row = mysqli_fetch_assoc($resultado)) {\r\n\t\t\t\t\t$categorias[] = $row['NOMBRE'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $categorias;\r\n\t\t}", "function getcategories(){\n\t\n\tglobal $connection;\n\t\n\t$get_categories = \"select * from categories\";\n\t$run_categories = mysqli_query($connection, $get_categories);\n\twhile ($row_categories = mysqli_fetch_array($run_categories)){\n\t\t$categories_id = $row_categories['categories_id'];\n\t\t$categories_title = $row_categories['categories_title'];\n\t\t\n\techo \"<li><a href='index.php?categories=$categories_id'>$categories_title</a></li>\";\n\t\t\n\t}\n}", "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 selectCategory($c){\n\t$sql = \"SELECT id,name,category_code,description FROM category_tbl WHERE active=1\";\n\tprint_r(hasRows($c,$sql) ? json_encode(selectQuery($c,$sql)) : \"\");\n}", "function listar_categorias_enlaces() {\n\t\t$query = \"SELECT categorias_enlaces.*\n\t\tFROM categorias_enlaces\n\t\tORDER BY orden\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\tmysql_close($connection);\t\t\n\t\treturn $result;\n\t}", "public function read_all_categories()\n {\n $result = array(\n \"status\" => \"\" ,\n \"body\" => array(\n \"categories\" => array(\n \"id\" => 0,\n \"category_name\" => \"\"\n ),\n \"count\" => 0\n ),\n \"error\" => array()\n );\n $sql = \"SELECT * FROM categories\";\n $stmt = $this->db->prepare($sql);\n $stmt->execute();\n $res = $stmt->get_result();\n $result['body']['count'] = $res->num_rows;\n if ($res->num_rows > 0){\n $result['status'] = \"Categories read \";\n while($row = $res->fetch_assoc()){\n $data = array(\n \"id\" => $row[\"id\"],\n \"category_name\" => $row['categoryName']\n );\n array_push($result['body']['categories'], $data);\n }\n } else {\n $result['status'] = \"No categories found \";\n }\n return $result;\n }", "public function getcategory()\r\n{\r\n {\r\n $sql = \"select * from categories\";\r\n $result = $this->connect()->query($sql);\r\n if ($result->rowCount() > 0) {\r\n while ($row = $result->fetch()) {\r\n $data[] = $row;\r\n\r\n }\r\n return $data;\r\n }\r\n }\r\n}", "public function getAllCategories(){\r\n\t\treturn $this->query(\"SELECT * FROM category\");\r\n\t}", "function getCategoriesSelect()\n\t{\n\t\tglobal $con;\n\t\t\t\n\t\t//echo var_dump($con);\n\t\t$get_cats = \"select * from categories\";\n\t\t$run_cats = mysqli_query($con, $get_cats);\n\t\twhile ($row = mysqli_fetch_array($run_cats)){\n\t\t\t$id = $row['cat_id'];\n\t\t\t$title =$row['cat_title'];\n\n\t\t\techo \"<option value='$id'>$title</option>\";\n\t\t}\n\t}", "function getCategories(){\n global $db;\n $queryString = \"select * from categories\";\n $data = $db->query($queryString);\n return $data;\n}", "public function listCategories(){\n\t\t$lab = new lelabDB();\n\t\t$query = \"select * from $this->tableName order by id\";\n\t\t$result = $lab->getArray($query);\n\t\treturn $result;\n\t}", "function setup_cat()\n {\n $this->ipsclass->DB->simple_construct( array( \"select\" => 'perms_view, def_view, id, name', 'from' => 'gallery_categories', 'where' => \"id={$this->ipsclass->input['cat']}\" ) );\n $this->ipsclass->DB->simple_exec(); \n $cat = $this->ipsclass->DB->fetch_row();\n\n // Are we allowed to view this category?\n if( ! $this->ipsclass->check_perms( $cat['perms_view'] ) )\n {\n $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) ); \n }\n\n return $cat;\n }", "function trieCategorienom()\n\t{\n\t\t$sql=\"SElECT * From categorie ORDER BY nom\";\n\t\t$db = config::getConnexion();\n\t\ttry\n\t\t{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e)\n {\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "public function getCategories(): array{\r\n $category = array();\r\n $con = $this->db->getConnection();\r\n foreach(mysqli_query($con, 'SELECT * FROM categories')as $key){ $category[$key['idcategories']] = $key['category_name']; }\r\n return $category;\r\n $this->con->closeConnection();\r\n }", "public function getCategory(){\n\t\t$stmt = $this->bdd->prepare('SELECT * FROM categorie');\n\t\t$stmt->execute();\n\t\treturn $stmt->fetchAll();\n\t}", "function getCategories(){\n\n\tglobal $con; // global variable to work inside $con function\n\t$get_categories = \"select * from categories\" ;//sql query\n\n\t$run_categories = mysqli_query($con, $get_categories);//run the sql query\n\n\t//loop to retrieve all data from the table..\n\twhile ($row_categories=mysqli_fetch_array($run_categories)){\n\n\t\t$category_id = $row_categories ['category_id'];\n\t\t$category_title = $row_categories['category_title'];\n\t\t//local variable \t//fetch from table\n\n\techo \"<li><a href='index.php?cat=$category_id'>$category_title</a></li>\";\n\t}\n}", "function listCategories(){\n\n\t\tglobal $conn;\n\n\t\t$query = \"SELECT id, name FROM Category\";\n\n\t\t$result = $conn->query($query);\n\n\t\treturn fetch_all($result);\n\n\t}", "public function getCategories(){\n\t\t// preapres the request\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: ' . TOKEN));\n\t\tcurl_setopt($ch, CURLOPT_URL, \"http://\" . IP . \"/bde_site/api/category/\");\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t\t// send the request\n\t\t$output = curl_exec($ch);\n\t\t$info = curl_getinfo($ch);\n\t\tcurl_close($ch);\n\n\t\t// decode the answer into a php object\n\t\t$categories = json_decode($output, true);\n\n\t\treturn $categories;\n\t}", "public function getCategories(){\n\t\t$stmt = $this->db->query(\"SELECT * FROM products_categories WHERE clientId = '{$this->clientId}'\");\n\t\treturn $stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "function getAllCategories() {\n\t\t$url = $this->apiURL . \"categories/\" . $this->yourID . \"/\" . $this->yourAPIKey;\n\t\treturn $this->_curl_get($url);\n\t}", "private function _loadCategories()\n {\n try {\n $this->_categories = Doctrine_Core::getTable('Category')->findAll(Doctrine_Core::HYDRATE_ARRAY);\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "public function findCategories();", "public function cat_select() {\n //formulate select query\n $sql = \"SELECT * FROM categories\"; \n //execute query \n return $this->db_query($sql);\n }", "function getCategory()\n\t{\n\t\t//global $catarray;\n\t\t$getcat=array();\n\t\tinclude(\"config.php\");\n\t\tglobal $conn, $stmt;\n\t\t$stmt=$conn->prepare(\"SELECT name FROM category\");\n\t\t$stmt->bind_result($name);\n\t\t$stmt->execute();\n\t\twhile($stmt->fetch())\n\t\t{\n\t\t\tarray_push($getcat,array(\"name\"=>$name));\n\t\t}\n\t\treturn $getcat;\n\t}", "public function get_category()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$result\t=\t$this->db->get('category')->result();\n\t\t\tif(empty($result))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $result;\n\t\t\t}\n\t\t}catch(ErrorGetCategory $e){\n\t\t\tlog_message('debug','Error tratando de obtener informaci�n del usuario');\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function getCategories($conn) {\n $sql = \"SELECT category.*\n FROM category\n LEFT JOIN article_category\n ON category.id = article_category.category_id\n WHERE article_id = :id\";\n\n $stmt = $conn->prepare($sql);\n $stmt->bindValue(':id', $this->id, PDO::PARAM_INT);\n $stmt->execute();\n\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }", "function listar_categorias_palabras() {\n\t\t$query = \"SELECT tipos_palabra.*\n\t\tFROM tipos_palabra\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "static function hasCategories($page) {\n\t\tglobal $db;\n\t\t\n\t\t$qry = \"SELECT DISTINCT category FROM textpages\";\n\t\t\n\t\tif (! empty ( $page )) {\n\t\t\t$qry .= \" WHERE page = '$page'\";\n\t\t}\n\t\t\n\t\t// echo $qry;\n\t\tif ($result = $db->query ( $qry )) {\n\t\t\twhile ( $row = $result->fetch_assoc () ) {\n\t\t\t\t$data [] = $row ['category'];\n\t\t\t}\n\t\t} \n\n\t\telse {\n\t\t\techo \"Fehler in hasCategories! \" . $db->error;\n\t\t}\n\t\t// var_dump($data);\n\t\treturn $data;\n\t}", "public function getCat() {\n return DB::q_array(\"SELECT id, title, image FROM news_category WHERE published = 1\");\n }", "public function getCategorias(){\n\t\t\t$this->db->query(\"SELECT *\n\t\t\t\t\t\t\t\tFROM categorias \");\n\t\t\tif( $this->db->numRows() > 0 ) return $this->db->fetchAll();\n\t\t\treturn null;\n\t}", "public static function getActiveCategories(){}", "public static function getCategories($conditions='1',&$messages=\"\"){\n $messages=new Message();\n $result=Db::select(CATEGORY_TABLE_NAME,$conditions);\n if($result){\n return $result;\n }\n $messages->setErrorMessage(ERR_GET_CATEGORIES_COLLECTION);\n return false;\n }", "public static function getCategories()\n {\n \t$query = \"SELECT * FROM categories\";\n \t$result = DB::select($query);\n\n \treturn $result;\n }", "public function getCategories() {\n $sql = \"SELECT * FROM categories\";\n //Commit the query\n $result = $this->connection->query($sql);\n //Parse result to JSON list\n $answer = '{\"categories\": [';\n if ($result->num_rows > 0) {\n // output data of each row\n while($row = $result->fetch_assoc()) {\n $answer = $answer . '{\"ID\":\"' . $row[\"category_ID\"] . '\",' .\n '\"Name\": \"' . $row[\"category_Name\"] .'\"},' ;\n }\n //Trim the last comma\n $answer=rtrim($answer,\", \");\n //Finish parsing\n $answer=$answer . \"]}\";\n //Retrun the list as a string\n return $answer;\n } else {\n echo \"0 results\";\n }\n\n\n }", "public function getCategoryList()\n\t{\n\t\tif (cookie('staffAccount') != '') {\n\t\t\t// sql\n\t\t\t$category = D('Category');\n\t\t\t$sql = \"SELECT * FROM lib_category;\";\n\t\t\t$return = $category->query($sql);\n\t\t\t$result = array();\n\t\t\tfor ($k = 0; $k < count($return); $k++) {\n\t\t\t\tarray_push($result, $return[$k]['category']);\n\t\t\t}\n\t\t\tif ($return) {\n\t\t\t\t$json = 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\t'cat' => json_encode($result)\n\t\t\t\t));\n\t\t\t\techo $json;\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}\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}", "function infoCategories() {\n global $pdo;\n\n $categoryRequest = '\n SELECT *\n FROM categories\n LIMIT 4\n ';\n\n $request = $pdo->prepare($categoryRequest);\n\n if ($request->execute() === false ) {\n print_r( $pdo->errorInfo() );\n } else {\n $categoryInfo = $request->fetchAll(PDO::FETCH_ASSOC);\n return $categoryInfo;\n }\n\n return false;\n}", "public function catCompare() {\n\t\tglobal $db;\n\t\t$user = new User;\n\t\t$lang = new Language;\n\t\t$where = \"WHERE category_author = '{$user->_user()}'\";\n\t\tif ( $user->can( 'manage_user_items' ) ) {\n\t\t\t$where = null;\n\t\t}\n\t\t$get = $db->customQuery( \"SELECT category_id,category_name FROM {$db->tablePrefix()}categories $where\" );\n\t\t$return = '';\n\t\t$getLinks = $db->customQuery( \"SELECT COUNT(*) FROM {$db->tablePrefix()}links WHERE link_category = '0'\" );\n\t\t$countLinks = $getLinks->fetch_row();\n\t\t$return .= \"['{$lang->_tr( 'Without Category', 1 )}', {$countLinks[0]}],\";\n\t\t$countLinks = $getLinks->fetch_row();\n\t\twhile ( $array = $get->fetch_array() ) {\n\t\t\t$getLinks = $db->customQuery( \"SELECT COUNT(*) FROM {$db->tablePrefix()}links WHERE link_category = '{$array['category_id']}'\" );\n\t\t\t$countLinks = $getLinks->fetch_row();\n\t\t\t$return .= \"['{$array['category_name']}', {$countLinks[0]}],\";\n\t\t}\n\t\treturn $return;\n\t}", "public function getCategories(){\n $sql = \"SELECT DISTINCT cat.id, cat.name, cat.idnumber FROM {$this->table_prefix}course_categories cat\n INNER JOIN {$this->table_prefix}course c ON cat.id = c.category\";\n $result = $this->conn->query($sql);\n $categories;\n if($result->num_rows > 0){\n while($row = $result->fetch_assoc()){\n $categories[] = $row;\n }\n return array(\"erro\" => false, \"description\" => \"Categories found\", \"categories\" => $categories);\n }else{\n return array(\"erro\" => false, \"description\" => \"No categories with course found\", \"categories\" => $categories);\n }\n }", "function showCategory()\n\t {\n\t\t\n\t\t $res=mysql_query(\"select * from category\");\n\t\t while($data=mysql_fetch_array($res))\n\t\t {\n\t\t\t\n\t\t\techo '<option value=\"'.$data['cat_id'].'\">'.$data['cat_title'].'</option>';\n\t\t }\n\t\t \n\t }", "public function get_categoria() {\n $conectar=parent::conexion();\n parent::set_names();\n $sql=\"SELECT * FROM tm_categoria WHERE est=1\";\n $sql=$conectar->prepare($sql);\n $sql->execute();\n // IMPORTANTE AGREGARLE EL PDO::FETCH_ASSOC PARA QUE HAGA BIEN LA CONSULTA\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\n\n }", "private function parseCategoryUrl() {\n $sql = \"SELECT\n id,\n name\n FROM\n categories\";\n if(!$stmt = $this->db->prepare($sql)){return $this->db->error;}\n if(!$stmt->execute()) {return $result->error;}\n $stmt->bind_result($id, $name);\n while($stmt->fetch()) {\n $name = lowerCat($name);\n if($this->cat == $name) {\n $this->catId = $id;\n break;\n }\n }\n $stmt->close();\n if($this->catId !== -1) {\n $this->parsedUrl = '/'.$this->catId.'/'.$this->cat;\n }\n }", "public function getAllCategories();", "public function getCategories();", "public function getCategories();", "public function listadoCategorias(){\n $resultado = array();\n try {\n $sql = new Sql($this->dbAdapter);\n $select = $sql->select();\n $select->columns(array(\"value\"=>\"idCategoria\",\"text\"=>\"nombreCategoria\"));\n $select->from(array('c'=>'categorias'));\n $select->order('nombreCategoria ASC');\n $sqlString = $select->getSqlString($this->dbAdapter->getPlatform()); \n $result = $this->dbAdapter->query($sqlString,Adapter::QUERY_MODE_EXECUTE);\n $resultado = $result->toArray(); \n } catch (\\Exception $e) {\n $code = $e->getCode();\n $msg = $e->getMessage();\n $file = $e->getFile();\n $line = $e->getFile();\n $resultado = array(\"ErrorInterno\" => \"$line ERROR #: $code ERROR: $msg\");\n }\n \n $this->dbAdapter->getDriver()->getConnection()->disconnect();\n return $resultado;\n }", "public static function getCategories() {\n $top_level_cats = array();\n//Select all top level categories\n Db_Actions::DbSelect(\"SELECT * FROM cscart_categories LEFT OUTER JOIN cscart_category_descriptions ON cscart_categories.category_id = cscart_category_descriptions.category_id WHERE cscart_categories.parent_id=0\");\n $result = Db_Actions::DbGetResults();\n if (!isset($result->empty_result)) {\n foreach ($result as $cat) {\n $top_level_cats[] = array('id' => $cat->category_id,\n 'cat_name' => $cat->category,\n 'company_id' => $cat->company_id,\n 'status' => $cat->status,\n 'product_count' => $cat->product_count,\n 'is_op' => $cat->is_op,\n 'usergroup_ids' => $cat->usergroup_ids);\n }\n }\n if (!isset($result->empty_result)) {\n return $result;\n }\n else {\n return new stdClass();\n }\n }", "private function getPopularCategories()\n {\n $query = Queries::$getPopularCategories;\n\n try {\n $stmt = $this->db->prepare($query);\n $stmt->execute();\n $result = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n $this->successResponse($result);\n } catch (\\PDOException$e) {\n $this->errorResponse($e->getMessage());\n }\n }", "function get_categories_from_post(){\n\t\t\n\t\t$categorias_bbdd=$this->get_categories(0,true);\n\t\t\n\t\t//Se inicia $this->num a 0 por que va a servir de indice para \n\t\t//la lista $this->categorias\n\t\t$this->num=0;\t\t\n\t\t$this->serv_cat_list=\"\";\n\t\t//con esta lista cogemos los checkbox que esten señalados en el formulario\n\t\t\n\t\t$this->get_checkbox_categories($categorias_bbdd,'services');\n\t\t\n\t\treturn 0;\n\t}", "public function categories() {\n\n $this->load->model('Model_Bird_Wiki');\n $result['categories'] = $this->Model_Bird_Wiki->get_categories();\n\n if($result!=false) {\n $this->load->view('category_main', $result);\n }\n else {\n echo \"Something went wrong !\";\n }\n\n }", "public function GetCategories()\n {\n \n \n global $PAGE;\n $output = '';\n \n \n if ($this->Is_Instructor) {\n $type = \" AND `type_instructor`=1\";\n } else {\n $type = \" AND `type_customer`=1\";\n }\n \n \n # GET THE CURRENTLY SELECTED CATEGORY\n # ============================================================================\n $default_selected_cid = ($this->Use_Common_Category) ? $this->Common_Category_Id : $this->Default_Category_Id;\n $eq_cat = (Get('eq')) ? GetEncryptQuery(Get('eq'), false) : null;\n $selected_cid = (isset($eq_cat['cid'])) ? $eq_cat['cid'] : $default_selected_cid;\n \n if ($this->Use_Common_Category) {\n $selected_common = (isset($eq_cat['special']) && $eq_cat['special'] == 'common') ? true : false;\n $selected_common = ($selected_cid == $this->Common_Category_Id) ? true : $selected_common;\n } else {\n $selected_common = ($selected_cid == $this->Common_Category_Id) ? true : false;\n }\n \n if ($this->Use_Display_All_Category) {\n $selected_all = (isset($eq_cat['special']) && $eq_cat['special'] == 'all') ? true : false;\n $selected_all = ($selected_cid == $this->All_Category_Id) ? true : $selected_all;\n }\n //$selected_all = true;\n \n \n # GET ALL THE CATEGORIES\n # ============================================================================\n $records = $this->SQL->GetArrayAll(array(\n 'table' => $GLOBALS['TABLE_helpcenter_categories'],\n 'keys' => '*',\n 'where' => \"`active`=1 $type\",\n ));\n if ($this->Show_Query) echo \"<br />LAST QUERY = \" . $this->SQL->Db_Last_Query;\n \n \n \n # OUTPUT THE CATEGORIES MENU\n # ============================================================================\n $output .= '<div class=\"orange left_header\">HELP CENTER TOPICS</div><br />';\n $output .= '<div class=\"left_content\">';\n \n # OUTPUT COMMON CATEGORY\n if ($this->Use_Common_Category) {\n $eq = EncryptQuery(\"cat=Most Common;cid=0;special=common\");\n $link = \"{$PAGE['pagelink']};eq=$eq\";\n $class = ($selected_common) ? 'faq_selected_category' : '';\n $output .= \"<div class='$class'><a href='{$link}' class='link_arrow' >Most Common</a></div><br />\";\n }\n \n # OUTPUT ALL DATABASE CATEGORIES\n foreach ($records as $record) {\n \n # MAKE LINKS\n if ($this->Use_Seo_Urls) {\n $title = ProcessStringForSeoUrl($record['title']);\n $query_link = '/' . EncryptQuery(\"cid={$record['helpcenter_categories_id']}\");\n $link = \"{$PAGE['pagelink']}/{$title}\" . $query_link;\n } else {\n $eq = EncryptQuery(\"cat={$record['title']};cid={$record['helpcenter_categories_id']}\");\n $link = \"{$PAGE['pagelink']};eq=$eq\";\n }\n \n $class = ($record['helpcenter_categories_id'] == $selected_cid) ? 'faq_selected_category' : '';\n $output .= \"<div class='$class'><a href='{$link}' class='link_arrow' >{$record['title']}</a></div>\";\n }\n \n # OUTPUT DISPLAY ALL CATEGORY\n if ($this->Use_Display_All_Category) {\n \n # MAKE LINKS\n if ($this->Use_Seo_Urls) {\n $title = ProcessStringForSeoUrl('View All');\n $query_link = '/' . EncryptQuery(\"cid={$this->All_Category_Id}\");\n $link = \"{$PAGE['pagelink']}/{$title}\" . $query_link;\n } else {\n $eq = EncryptQuery(\"cat=View All;cid={$this->All_Category_Id};special=all\");\n $link = \"{$PAGE['pagelink']};eq=$eq\";\n }\n \n $class = ($selected_all) ? 'faq_selected_category' : '';\n $output .= \"<br /><div class='$class'><a href='{$link}' class='link_arrow' >View All</a></div>\";\n }\n \n $output .= '</div>';\n \n \n AddStyle(\"\n .faq_selected_category {\n background-color:#F2935B;\n color:#fff;\n }\n \");\n \n return $output;\n \n\n }", "function getSideBarCategory(){\n // this function for get all categories exist in sidebar components\n try{\n global $con;\n // query select for get all categories\n $query = $con->prepare(\"SELECT * FROM categories\");\n $query->execute();\n // if we have cat_id then go inside condition\n if(isset($_GET['cat_id'])){\n if($_GET['cat_id'] == 'all'){\n echo \"\n <li class='active'><a href='ads.php?cat_id=all&page=1'>كل الأقسام</a></li>\n \";\n }\n else{\n echo \"\n <li class=''><a href='ads.php?cat_id=all&page=1'>كل الأقسام</a></li>\n \";\n }\n while($result = $query->fetch(PDO::FETCH_ASSOC)){\n // Initialize Variables\n $cat_id = $result[\"cat_id\"];\n $cat_title = $result[\"cat_title\"];\n if($_GET['cat_id'] == $cat_id){\n echo \"\n <li class='active'><a href='ads.php?cat_id=$cat_id&page=1'>$cat_title</a></li>\n \";\n }\n else{\n echo \"\n <li class=''><a href='ads.php?cat_id=$cat_id&page=1'>$cat_title</a></li>\n \";\n }\n }\n }\n else{\n echo \"\n <li class=''><a href='ads.php?cat_id=all&page=1'>كل الأقسام</a></li>\n \";\n while($result = $query->fetch(PDO::FETCH_ASSOC)){\n $cat_id = $result[\"cat_id\"];\n $cat_title = $result[\"cat_title\"];\n echo \"\n <li class=''><a href='ads.php?cat_id=$cat_id&page=1'>$cat_title</a></li>\n \";\n }\n }\n }\n catch(PDOException $e){\n echo $e->getMessage();\n }\n}", "function category(){\n\t\trequire('quizrooDB.php');\n\t\t$query = sprintf(\"SELECT cat_name FROM q_quiz_cat WHERE cat_id = %d\", GetSQLValueString($this->fk_quiz_cat, \"int\"));\n\t\t$getQuery = mysql_query($query, $quizroo) or die(mysql_error());\n\t\t$row_getQuery = mysql_fetch_assoc($getQuery);\n\t\treturn $row_getQuery['cat_name'];\n\t}", "public function getCategoryCloud()\n {\n $sql = \"\n SELECT\n PC.id as cat_id,\n PC.category,\n P2C.id,\n P2C.cat_id,\n COUNT(P2C.id) AS amount\n FROM Prod2Cat AS P2C\n LEFT OUTER JOIN ProdCategory AS PC\n ON PC.id = P2C.cat_id\n GROUP BY P2C.cat_id\n -- ORDER BY amount DESC\n \";\n\n $this->db->execute($sql);\n $res = $this->db->fetchAll();\n return $res;\n }", "function view_categories_sql()\n\t{\n\t\t$view_cat=mysqli_query($this->con,\"SELECT * FROM categories where status=1 order by c_id desc\");\n\t\treturn $view_cat;\n\t}", "public function cargarCategorias($sql){\n $con= new conectar();\n $conexion= $con->conexion();\n $result= mysqli_query($conexion, $sql); \n return mysqli_fetch_all($result, MYSQLI_ASSOC);\n }", "public function categoriesSetup()\n {\n \treturn (bool) $this->categoryDao->countAll();\n }", "function oabSwappzaGetAllSubCategories ($dbcon) {\n $subCategories = array();\n \n try {\n $stmt = $dbcon->prepare(\"SELECT subcategoryID,name\"\n . \" FROM SwappzaSubCategory\"\n . \" WHERE ?\");\n \n \n if ($stmt) {\n $one = 1;\n \n $stmt->bind_param('d', $one);\n $stmt->execute();\n $stmt->bind_result($id, $name);\n \n while ($stmt->fetch()) {\n array_push(\n $subCategories, \n new SwappzaSubCategory($id, $name, null) // Description set to null because this isnt in database\n );\n }\n \n $stmt->close();\n \n } else {\n throw new Exception(\"Failed to prepare statement\");\n }\n \n return $subCategories;\n } catch (Exception $ex) {\n oabSwappzaLogError($ex);\n return false;\n }\n \n}", "public function getCategories()\n\t{\n\t\t$categoryId = $this->input->get_post('category_id');\n\t\ttry{\n\t\t\t\t$category = $this->userModel->getCategory();\n\t\t\t\t$this->_jsonData['status']=\"SUCCESS\";\n\t\t\t\t$this->_jsonData['message']=\"Categories Data\";\n\t\t\t\t$this->_jsonData['data']=$category;\n\t\t}catch(Exception $e){\n\t\t\t\t$this->_jsonData['status']=\"FAILURE\";\n\t\t\t\t$this->_jsonData['message']=\"Error Occured\";\n\t\t\t\t$this->_jsonData['data']='';\n\t\t}\n\t\t\techo json_encode($this->_jsonData);\n\t\t\t$this->ServicesModel->createService($_REQUEST,$this->_jsonData,$_SERVER['SERVER_ADDR'],'getCategories',$_FILES);\n\t}", "function afficherprods(){\r\n\t\t$sql=\"SElECT * From categorie\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry{\r\n\t\t$liste=$db->query($sql);\r\n\t\treturn $liste;\r\n\t\t}\r\n catch (Exception $e){\r\n die('Erreur: '.$e->getMessage());\r\n }\t\r\n\t}", "function get_categories_by_channel()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('channel_id'), array(\n\t\t\t'select' => array(),\n\t\t\t'where' => array(),\n\t\t\t'order_by' => 'cat_order',\n\t\t\t'sort' => 'asc',\n\t\t\t'limit' => FALSE,\n\t\t\t'offset' => 0\n\t\t));\n\n\t\t// prepare variables for sql\n\t\t$vars = $this->_prepare_sql($vars);\n\t\t\n\t\t// start hook\n\t\t$vars = $this->_hook('get_categories_by_channel_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->channel_data_lib->get_channel_categories($vars['channel_id'], $vars['select'], $vars['where'], $vars['order_by'], $vars['sort'], $vars['limit'], $vars['offset'])->result();\n\n\t\t// end hook\n\t\t$data = $this->_hook('get_categories_by_channel_end', $data);\n\n\t\t$this->response($data);\n\t}", "public static function categories() {\n $db = Db::getInstance();\n $req = $db->query('SELECT * FROM category');\n return $req->fetchAll(PDO::FETCH_ASSOC);\n }", "public function consultarCategoria(){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT * from tbcategorias order by idcategoria; \";\n $sql = $this->conexao->query($sql);\n\n $dados = array();\n\n while ($row = $sql->fetch_assoc()) { \n $dado = array();\n $dado['idcategoria'] = $row[\"idcategoria\"];\n $dado['nome'] = $row[\"nome\"];\n $dado['habilitado'] = $row[\"habilitado\"];\n $dados[] = $dado;\n }\n\n return $dados;\n\n \n }", "function viewAllCategories()\r\n{\r\n $db = dbconnect();\r\n \r\n $stmt = $db->prepare(\"SELECT * FROM categories\");\r\n \r\n $results = array();\r\n if \r\n // Function used to pull all records from Table\r\n ($stmt->execute() && $stmt->rowCount() > 0) {\r\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n }\r\n return $results;\r\n}", "function getCategoria($idProducte){\n $conn=connexioBD();\n $categoria=\"\";\n $sql1=\"SELECT nomCategoria FROM categories INNER JOIN categoria_producte ON categories.idCategoria=categoria_producte.categoria_id WHERE categoria_producte.producte_id='$idProducte'\";\n if (!$resultado =$conn->query($sql1)){\n die(\"Error al comprobar datos\".$conn->error);\n }\n if($resultado->num_rows>=0){\n while($categories=$resultado->fetch_assoc()){\n $categoria.=$categories[\"nomCategoria\"].\" \";\n }\n }\n \n return $categoria;\n $resultado->free();\n $conn->close();\n\n}", "public function listCategories() //*\n\t{\n\t$this->errorLogging->logInfo(__CLASS__, __METHOD__, \"Called.\");\n\t\n\t$userGroup = $_SESSION[\"usergroup\"];\n\n\t$select_array = array(\n\t\"table\" => 'categories', \n\t\"where\" => 'WHERE', \n\t\"columns\" => array(\n\t\"category_pk\",\n\t\"category_name\",),\n\t\"returns\" => array(\n\t\"categoryPK\",\n\t\"categoryName\"),\n\t\"conditions\" => array(\n\t\tarray(\n\t\t\"column\" => \"user_group\",\n\t\t\"operator\" => \"=\",\n\t\t\"value\" => \"$userGroup\",\n\t\t\"concat\" => \"\")\n\t),\n\t\"endingQuery\" => \"\"\n\t);\n\t\n\t$returnedArray = $this->dbConnection->ConstructSelect($select_array); //errors handled by dbase class\n\t$this->responseClass->apiResponse($returnedArray);\n\treturn true;\n\t}", "function getCategorias(){\r\n $conector = new Conector();\r\n $banco = new BancoCategoria();\r\n return $banco->getCategorias($conector->getConexao());\r\n }", "public function getCategories()\n {\n $request = \"SELECT * FROM category\";\n $request = $this->connexion->query($request);\n $categories = $request->fetchAll(PDO::FETCH_ASSOC);\n return $categories;\n }", "function read_Categories() {\n\n\t\tglobal $myCategories;\n\t\tglobal $gesamt;\n\t\t\n\t\t$i = 0;\n\t\t\n\t\tforeach ($myCategories as $catInfo):\n\t\t\n\t\t$test=$myCategories->category[$i]['typ'];\n\t\t\n\t\tarray_push($gesamt, $test);\n\t\t\n\t\t$i++;\n\t\tendforeach;\t\n\t\t\n\t}", "function getAllcate(){\n return db()->query(\"SELECT * FROM categories\");\n }", "function getAllMainCategories() {\r\n\r\n $sql = \"SELECT * \"\r\n . \"FROM categories \"\r\n . \"WHERE parent_id = 0\";\r\n\r\n include '../config/db.php';\r\n\r\n $rs = mysqli_query($link, $sql);\r\n mysqli_close($link);\r\n\r\n return createSnartyRsArray($rs);\r\n}", "function getCat(){\n global $db;\n $get_cats=\"select * from categories\";\n $run_cats=mysqli_query($db, $get_cats);\n while($row_cats=mysqli_fetch_array($run_cats)){\n $cat_id= $row_cats['cat_id'];\n $cat_title= $row_cats['cat_title'];\n echo \"<li><a href='index.php?cat=$cat_id'>$cat_title</a></li>\";\n }\n }", "function GetAllCategories() {\r\n\t\t\r\n require 'Connection.php';\r\n\r\n //Open connection and Select database. \r\n $conn = new mysqli($servername, $username, $password, $dbname);\r\n\t\t//check connection\r\n\t\tif($conn->connect_error) {\r\n\t\t\tdie(\"Connection failed: \".$conn->connect_error);\r\n\t\t}\r\n\t\t\r\n $query = \"SELECT * FROM t_category\";\r\n $result = $conn->query($query);\r\n\t\t$CategoriesArray = array();\r\n\r\n //Get data from database.\r\n\t\twhile ($row = $result->fetch_assoc()) {\r\n\t\t\t$CategoryID = $row[\"CategoryID\"];\r\n $CategoryName = $row[\"CategoryName\"];\r\n $Description = $row[\"Description\"];\r\n $Image = $row[\"Image\"];\r\n\r\n //Create Category objects and store them in an array.\r\n $Category = new EntityCategory($CategoryID, $CategoryName, $Description, $Image);\r\n array_push($CategoriesArray, $Category);\r\n }\r\n //Close connection and return result\r\n\t\t$conn->close();\r\n return $CategoriesArray;\r\n }", "function getcatt(){\r\n\tglobal $con;\r\n\t$categories = $con->prepare(\"SELECT * FROM categories ORDER BY ID ASC\");\r\n\t$categories->execute();\t\r\n\t$cats = $categories->fetchAll();\r\n\treturn $cats;\r\n\r\n}", "public function getAllCategories() {\n $q = $this->db->get('categories');\n if ($q->num_rows() > 0) {\n foreach (($q->result()) as $row) {\n $data[] = $row;\n }\n return $data;\n }\n return false;\n }", "function get_category( $conds = array(), $limit = false, $offset = false )\n\t{\n\t\t$this->db->select('rt_categories.*'); \n\t\t$this->db->from('rt_categories');\n\t\t$this->db->join('rt_products', 'rt_products.cat_id = rt_categories.id');\n\n\t\tif ( isset( $conds['shop_id'] )) {\n\t\t\tif ($conds['shop_id'] != \"\" ) {\n\t\t\t\tif ($conds['shop_id'] != '0') {\n\t\t\t\t\t$this->db->where( 'rt_products.shop_id', $conds['shop_id'] );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tif ( !isset( $conds['no_publish_filter'] )) {\n\t\t\t$this->db->where( 'rt_categories.status', 1 );\n\t\t}\n\n\t\tif ( $limit ) {\n\t\t// if there is limit, set the limit\n\t\t\t$this->db->limit($limit);\n\t\t}\n\t\t\n\t\tif ( $offset ) {\n\t\t// if there is offset, set the offset,\n\t\t\t$this->db->offset($offset);\n\t\t}\n\n\t\t//$this->db->order_by(\"count(DISTINCT rt_subcategories.id)\", \"DESC\");\n\t\t$this->db->distinct();\n\t\treturn $this->db->get();\n\n \t}", "function getCat(){\n global $con;\n $getCat= $con->prepare(\"SELECT * FROM categories ORDER BY ID ASC\");\n $getCat->execute();\n $cat= $getCat->fetchAll();\n return $cat;\n}", "function getCategory(){\n // this function for get all categories to categories.php page\n try{\n global $con;\n $query = $con->prepare(\"SELECT * FROM categories\");\n $query->execute();\n while($result = $query->fetch(PDO::FETCH_ASSOC)){\n $cat_id = $result[\"cat_id\"];\n $cat_icon = $result[\"cat_icon\"];\n $cat_title = $result[\"cat_title\"];\n $cat_desc = $result[\"cat_desc\"];\n $class = \"col-md-6 col-lg-4\";\n if($cat_title == \"اخرى\"){\n $class = \"col-md-12 col-lg-8\";\n }\n echo \"\n <div class='$class'>\n <a href='ads.php?cat_id=$cat_id&page=1'>\n <div class='item'>\n <div class='img-box'>\n <img src='Layout/Images/icons/$cat_icon' class='img-responsive' alt='$cat_icon'>\n </div>\n <h4>$cat_title</h4>\n <p>$cat_desc</p>\n </div>\n </a>\n </div>\n \";\n }\n }\n catch(PDOException $e){\n echo $e->getMessage();\n }\n}", "public function getAllCategory()\n {\n $sql = \"SELECT * FROM categories\";\n $stmt = $this->connect()->prepare($sql);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $id = '';\n $items = $result;\n return $items;\n }", "function getProductCategories () {\r\n $sql = \"SELECT * FROM stockgroups\";\r\n return runQuery($sql);\r\n}", "function GetCategories()\n\t{\n\t\t$result = $this->sendRequest(\"GetCategories\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function get_categorys(Context $ctx) {\n $user = $ctx->getUser();\n if($user === null){\n return ResponseHelper::error('Access denied');\n }\n \n $db = $this->connect();\n $dt = new \\DateTime();\n $time_stamp = $dt->getTimestamp();\n $date_now = new \\MongoDate($time_stamp);\n \n // Set an event into array\n $event_lists = [];\n $events = $db->event->find([\n 'build' => 1,\n 'approve' => 1,\n 'date_end' => [ '$gte' => $date_now ]\n ],['date_end']);\n foreach($events as $event){\n $event_lists[] = $event['_id']->{'$id'};\n }\n \n $categories = [];\n $items = $db->tag->find([],['en']);\n foreach($items as $item){\n $item['id'] = $item['_id']->{'$id'};\n $item['name'] = $item['en'];\n \n // sniff status\n $item['sniffed'] = false;\n if(in_array($item['id'], $user['sniff_category'])){\n $item['sniffed'] = true;\n }\n \n // Search an event from event_tag in event(Array)\n $events = $db->event_tag->find(['tag_id' => $item['id']],['event_id']);\n $count_active_event = 0;\n foreach($events as $event){\n if(in_array($event['event_id'], $event_lists)){\n $count_active_event++;\n }\n }\n $item['rows'] = $count_active_event;\n\n // - Default picture\n if(!isset($item['picture'])){\n $item['picture'] = Image::default_category_picture();\n }\n $item['picture'] = Image::load_picture($item['picture']);\n \n unset($item['_id']);\n unset($item['en']);\n \n $categories[] = $item;\n }\n \n $res = [\n 'data' => $categories,\n 'length' => count($categories)\n ];\n \n return $res;\n }", "public function category(){\n\t\t$query = $this->db->query(\"select * from `category` where status='enable'\");\n\t\treturn $query->result_array();\n\t}", "public function listaCategoria(){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT * from tbcategorias order by idcategoria\";\n $sql = $this->conexao->query($sql);\n\n while ($row = $sql->fetch_assoc()) {\n $data[] = $row;\n }\n \n \n return $data;\n\n }" ]
[ "0.7374342", "0.7288105", "0.7225297", "0.71883845", "0.7179691", "0.7065099", "0.69567394", "0.69140834", "0.6841436", "0.6764109", "0.674538", "0.6676054", "0.66696113", "0.6655423", "0.6624498", "0.66194427", "0.6619356", "0.66059226", "0.65977514", "0.6582708", "0.6527529", "0.6500378", "0.6499168", "0.64799845", "0.64779264", "0.64139414", "0.6413367", "0.64126754", "0.6412079", "0.6407671", "0.63943416", "0.6384974", "0.6384151", "0.637319", "0.63717324", "0.63665116", "0.63566434", "0.6342908", "0.6336106", "0.63356876", "0.6323627", "0.6314082", "0.6308217", "0.62922776", "0.62701", "0.626197", "0.62569475", "0.62565506", "0.6253589", "0.6237919", "0.6236429", "0.6234678", "0.6233202", "0.6227995", "0.6217694", "0.6217096", "0.6184353", "0.61775345", "0.6175643", "0.6167981", "0.6167981", "0.6158253", "0.6155733", "0.61516994", "0.6149633", "0.6138699", "0.61355954", "0.613005", "0.61260206", "0.6123804", "0.6122502", "0.61203134", "0.6112329", "0.6099729", "0.60951805", "0.6090484", "0.6090019", "0.6089626", "0.6086029", "0.60803807", "0.60758615", "0.6074436", "0.60698485", "0.6069662", "0.60624045", "0.604311", "0.60428834", "0.6031743", "0.60288036", "0.6028066", "0.60280347", "0.60269487", "0.60256535", "0.60201657", "0.60157096", "0.6014631", "0.6013876", "0.5999411", "0.5995208", "0.5992874" ]
0.60395277
87
Creates data provider instance with search query applied
public function search($params,$filtros) { $query = FdTanquesAlmacenaApscom::find()->alias('a'); // add conditions that should always apply here $dataProvider = new ActiveDataProvider([ 'query' => $query, ]); $query->leftJoin('fd_opcion_select b', 'medicion_entrada = b.id_opcion_select'); $query->leftJoin('fd_opcion_select c', 'material = c.id_opcion_select'); $query->leftJoin('fd_opcion_select d', 'frecuencia_mantenimiento = d.id_opcion_select'); $query->leftJoin('fd_opcion_select e', 'estado_tanque = e.id_opcion_select'); $query->leftJoin('fd_opcion_select f', 'problemas = f.id_opcion_select'); $this->load($params); if (!$this->validate()) { // uncomment the following line if you do not want to return any records when validation fails // $query->where('0=1'); return $dataProvider; } // grid filtering conditions $query->andFilterWhere([ 'id_tanquesalmacena' => $this->id_tanquesalmacena, 'capacidad_tanque' => $this->capacidad_tanque, 'medicion_entrada' => $this->medicion_entrada, //'material' => $this->material, //'frecuencia_mantenimiento' => $this->frecuencia_mantenimiento, //'estado_tanque' => $this->estado_tanque, //'problemas' => $this->problemas, 'id_conjunto_respuesta' => $this->id_conjunto_respuesta, 'id_junta' => $this->id_junta, 'id_pregunta' => $this->id_pregunta, 'id_respuesta' => $this->id_respuesta, 'id_capitulo' => $this->id_capitulo, ]); $query->andFilterWhere(['like', 'a.especifique', $this->especifique]) ->andFilterWhere(['like', 'b.nom_opcion_select', $this->medicion_entrada]) ->andFilterWhere(['like', 'c.nom_opcion_select', $this->material]) ->andFilterWhere(['like', 'd.nom_opcion_select', $this->frecuencia_mantenimiento]) ->andFilterWhere(['like', 'e.nom_opcion_select', $this->estado_tanque]) ->andFilterWhere(['like', 'f.nom_opcion_select', $this->problemas]); $query->andFilterWhere([ 'id_conjunto_respuesta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_conjunto_respuesta'], 'id_pregunta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_pregunta'], 'id_respuesta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_respuesta'], 'id_junta' => $filtros['FdTanquesAlmacenaApscomSearch']['id_junta'], ]); return $dataProvider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchQueryDataProvider() {}", "public function search()\n {\n $q = $this->getQuery();\n $dataProvider = new ActiveDataProvider([\n 'query' => $q,\n ]);\n\n return $dataProvider;\n }", "public function getQueryDataProvider() {}", "public function search() {\n // Get CDbCriteria instance\n $dbCriteria = new CDbCriteria;\n // Search for client name\n $dbCriteria->compare('name', Yii::app()->request->getQuery('name', ''), true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $dbCriteria,\n 'pagination' => array(\n 'pageSize' => 10,\n ),\n ));\n }", "protected function getDataProviders()\n {\n $searchModel = $this->getSearchModel();\n $queryParams = Yii::$app->request->queryParams;\n $dataProvider = $searchModel->search($queryParams);\n return [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider\n ];\n }", "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('url', $this->url);\n $criteria->compare('type', $this->type);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => 100),\n ));\n }", "public function backendSearch()\n {\n $criteria = new CDbCriteria();\n\n return new CActiveDataProvider(\n __CLASS__,\n array(\n 'criteria' => $criteria,\n )\n );\n }", "public function search() {\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria' => $this->getSearchCriteria(),\n\t\t\t'sort' => array(\n\t\t\t\t'defaultOrder' => 't.id DESC',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'client_id' => array(\n\t\t\t\t\t\t'asc' => 'client_name asc',\n\t\t\t\t\t\t'desc' => 'client_name desc',\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'pagination' => array(\n\t\t\t\t'pageSize' => Yii::app()->config->get('global.per_page'),)\n\t\t));\n\t}", "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('id', $this->id, true);\n $criteria->compare('level', $this->level);\n $criteria->compare('text', $this->text, true);\n $criteria->compare('ip_create', $this->ip_create, true);\n\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function createSearchQuery()\n {\n $query = new SearchQuery($this->elastic);\n $query->listeners = $this->listeners;\n return $query;\n }", "public function search()\n {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('state', $this->state);\n $criteria->compare('type','0');\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function prepareDataProvider()\n\t{\n\t $searchModel = new \\app\\models\\ClearanceSearch(); \n\t\treturn $searchModel->search(\\Yii::$app->request->queryParams);\n\n\t}", "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('authorname', $this->authorname, true);\n return new CActiveDataProvider($this, array('criteria' => $criteria, ));\n }", "public function getDataProvider(array $query = []);", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('entity_id', $this->entity_id);\n $criteria->compare('dbname', $this->dbname, true);\n $criteria->compare('isfiltered', $this->isfiltered);\n $criteria->compare('filtertype', $this->filtertype);\n $criteria->compare('alias', $this->alias, true);\n $criteria->compare('enabled', $this->enabled);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => false,\n ));\n }", "protected function prepareDataProvider()\n {\n if ($this->prepareDataProvider !== null) {\n return call_user_func($this->prepareDataProvider, $this);\n }\n\n\t\t/* @var $modelClass \\yii\\db\\BaseActiveRecord */\n $modelClass = $this->modelClass;\n\t\t$query = $modelClass::find();\n\t\t\n\t\t$filters = ActionHelpers::getFilter();\n\t\t\n\t\tforeach($filters as $filter) {\n\t\t\t$query->andFilterWhere($filter);\n\t\t}\n\t\t\n\t\tif($with = ActionHelpers::getWith()) {\n $query->with($with);\n }\n\n return new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => ActionHelpers::getLimit()\n ],\n 'sort'=> ActionHelpers::getSort()\n // 'sort'=> ['defaultOrder' => ['id'=>SORT_DESC]]\n ]);\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that should not be searched.\n\t\t$criteria = new \\CDbCriteria;\n\n\t\tforeach (array_keys($this->defineAttributes()) as $name)\n\t\t{\n\t\t\t$criteria->compare($name, $this->$name);\n\t\t}\n\n\t\treturn new \\CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria\n\t\t));\n\t}", "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('type',$this->type,true);\n\t\t$criteria->compare('memo',$this->memo,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n {\n $query = Hotel::find();\n // add conditions that should always apply here\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n \n // grid filtering conditions\n $query->availables($this->quantity_of_guests);\n $query->andFilterWhere([\n 'hotel_id' => $this->hotel_id,\n 'price_per_guest' => $this->price_per_guest,\n ]);\n $query->andFilterWhere(['like', 'city_name', $this->city_name]);\n return $dataProvider;\n \n }", "public function search()\n\t{\n\t $criteria=new CDbCriteria;\n\t\t\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('projection',$this->projection,true);\n\t\t$criteria->compare('username',Yii::app()->user->id);\n\t\t$criteria->compare('title',$this->title);\n\t\t$criteria->compare('url',$this->url);\n\t return new CActiveDataProvider(get_class($this), array(\n\t 'criteria'=> $criteria,\n\t 'sort'=>array(\n\t 'defaultOrder'=>'name ASC',\n\t ),\n\t 'pagination'=>array(\n\t 'pageSize'=>10\n\t ),\n\t ));\n\t}", "public function getMetadataQueryProviderWrapper();", "private function _getDataProvider($query, $params){\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n if (!($this->load($params) && $this->validate())) {\n return $dataProvider;\n }\n\n $query->andFilterWhere([\n 'user_id' => $this->user_id,\n 'profile_id' => $this->profile_id,\n 'authentication_method_id' => $this->authentication_method_id,\n 'status' => $this->status,\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at,\n ]);\n\n $query->andFilterWhere(['like', 'username', $this->username])\n ->andFilterWhere(['like', 'auth_key', $this->auth_key])\n ->andFilterWhere(['like', 'password_hash', $this->password_hash])\n ->andFilterWhere(['like', 'password_reset_token', $this->password_reset_token])\n ->andFilterWhere(['like', 'email', $this->email]);\n\n return $dataProvider;\n }", "public function makeSearch() \n {\n $this->setSelect($this->qb);\n $this->setAssociations($this->qb);\n $this->setWhere($this->qb);\n $this->setOrderBy($this->qb);\n $this->setLimit($this->qb);\n\n return $this;\n }", "protected function prepareDataProvider()\n {\n \t$modelClass = $this->modelClass;\n\n $orderBy='id';\n if (isset($_GET['orderBy'])) $orderBy=$_GET['orderBy'];\n\n $orderByDir='DESC';\n if (isset($_GET['orderByDir'])) $orderByDir=$_GET['orderByDir'];\n\n $limit=20;\n if (isset($_GET['limit'])) $limit=$_GET['limit'];\n\n $order = \"$orderBy $orderByDir\";\n\n \t$dataProvider = new ActiveDataProvider([\n 'query' => $modelClass::find()->limit($limit)->with('supplier')->orderBy($order),\n 'pagination' => [\n 'pageSize' => $limit,\n ],\n ]);\n\n \treturn $dataProvider;\n }", "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\t\t//TODO: update search criteria\n\t\t$criteria->compare('id', $this->id, true);\n\t\t$criteria->compare('event_id', $this->event_id, true);\n\t\t$criteria->compare('standard_intervention_exists', $this->standard_intervention_exists);\n\t\t$criteria->compare('details', $this->details);\n\t\t$criteria->compare('interventions_id', $this->interventions_id);\n\t\t$criteria->compare('description', $this->description);\n\t\t$criteria->compare('patient_factors', $this->patient_factors);\n\t\t$criteria->compare('patient_factor_details', $this->patient_factor_details);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('keywords',$this->keywords,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public static function new_search_record()\n\t{\n\t\treturn new user_record_search();\n\t}", "public function search() {\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('content', $this->content, true);\n\t\t$criteria->compare('score', $this->score);\n\t\t$criteria->compare('author', $this->author, true);\n\t\t$criteria->compare('type', $this->type);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function search()\n {\n $criteria = new CDbCriteria;\n $criteria->compare('uid', $this->uid);\n $criteria->compare('token', $this->token, true);\n $criteria->compare('created', $this->created, true);\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n\n $this->entity = $this->name;\n $this->conditions = $this->_getSearchConditions();\n $this->joins = $this->_getSearchJoins();\n $this->orders = $this->_getSearchOrder();\n $this->limit = $this->_getSearchLimit();\n $this->maxLimit = $this->_getSearchMaxLimit();\n $this->offset = $this->_getSearchOffset();\n $this->fields = $this->_getSearchFields();\n $this->group = $this->_getSearchGroup();\n\n// $this->setVar('entity', $this->name);\n// $this->setVar('conditions', $this->_getSearchConditions());\n// $this->setVar('joins', $this->_getSearchJoins());\n// $this->setVar('orders', $this->_getSearchOrder());\n// $this->setVar('limit', $this->_getSearchLimit());\n// $this->setVar('maxLimit', $this->_getSearchMaxLimit());\n// $this->setVar('offset', $this->_getSearchOffset());\n// $this->setVar('fields', $this->_getSearchFields());\n// $this->setVar('group', $this->_getSearchGroup());\n//\n// $this->setVar('baseAdditionalElements', $this->additionalElements);\n $this->getFieldsForSearchFunction = '_extractSearchFields';\n\n return $this->baseSearch();\n }", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('keyword_id', $this->keyword_id);\n $criteria->compare('visits', $this->visits);\n $criteria->compare('page_views', $this->page_views);\n $criteria->compare('parsing', $this->parsing);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => 50),\n ));\n }", "protected function getNewSearchModel()\n {\n $searchModelName = $this->getSearchModelName();\n return new $searchModelName;\n }", "public function search()\n\t{\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function searchdatas(){\r\n\t\t// should not be searched.\r\n\t\t$conditions=array();\r\n\t\t$params=array();\r\n\t\t$page_params=array();\r\n\t\t$criteria=new CDbCriteria;\r\n\t\t$sort=new CSort();\r\n \t$sort->attributes=array();\r\n \t$sort->defaultOrder=\"t.create_time ASC\";\r\n \t$sort->params=$page_params;\r\n\t\treturn new CActiveDataProvider(get_class($this), array(\r\n\t\t\t'criteria'=>array(\r\n\t\t\t 'condition'=>'',\r\n\t\t\t 'params'=>array(),\r\n\t\t\t 'with'=>array(\"User\",\"District\"),\r\n\t\t\t),\r\n\t\t\t'pagination'=>array(\r\n 'pageSize'=>'20',\r\n 'params'=> $page_params,\r\n ),\r\n 'sort'=>$sort,\r\n\t\t));\r\n\t}", "public function search()\n {\n\n $query = Board::find()->where(['user_id' => $this->user_id]);\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 10,\n ],\n 'sort' => [\n 'defaultOrder' => [\n 'created_at' => SORT_DESC,\n\n ]\n ],\n ]);\n\n return $dataProvider;\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('post_id', $this->post_id);\n $criteria->compare('language_id', $this->language_id);\n $criteria->compare('header', $this->header, true);\n $criteria->compare('text', $this->text, true);\n\t\t$criteria->compare('rating',$this->rating);\n\t\t$criteria->compare('author_id',$this->author_id);\n\t\t$criteria->compare('date_add',$this->date_add,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('t.id', $this->id);\n $criteria->compare('who', $this->who);\n $criteria->compare('date', $this->date, true);\n $criteria->compare('text', $this->text, true);\n $criteria->compare('rate', $this->rate);\n $criteria->compare('knowledge', $this->knowledge);\n $criteria->compare('behavior', $this->behavior);\n $criteria->compare('motivation', $this->motivation);\n $criteria->compare('rate', $this->who_ip);\n $criteria->compare('is_checked', $this->is_checked);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => '50',\n ),\n 'sort' => array(\n 'defaultOrder' => array(\n 'date' => CSort::SORT_DESC,\n ),\n ),\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('name', $this->name, true);\n $criteria->compare('latitude', $this->latitude);\n $criteria->compare('longitude', $this->longitude);\n $criteria->compare('type', $this->type, true);\n $criteria->compare('vicinity', $this->vicinity, true);\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function parametersAndQueriesDataProvider() {}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('region_id', $this->region_id);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n\t{\n\t\t $this->StateProcess(get_class($this).'_'.Y::app()->params['cfgName']);\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('title',$this->title,true);\n $criteria->compare('title_adm',$this->title,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n 'sort'=>array('defaultOrder'=>'id DESC'),\n 'pagination'=>array('pageSize'=>Config::$data['base']->pageSize)\n\t\t));\n\t}", "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('agreement',$this->agreement);\n\t\t$criteria->compare('date',$this->date,true);\n\t\t$criteria->compare('user',$this->user);\n\t\t$criteria->compare('new_status',$this->new_status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search($params,$query=null)\n {\n if(!$query) $query = RestClient::find();\n\n $query = $query->joinWith(['hospital']) \n ->joinWith(['hospital.sales']);\n //$query = $query->joinWith('mingrui_comments');\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\n\n $this->load($params);\n \n if (!$this->validate()) {\n // uncomment the following line if you do not want to return any records when validation fails\n // $query->where('0=1');\n //var_dump($params);exit;\n return $dataProvider;\n }\n \n // grid filtering conditions\n $query->andFilterWhere([\n 'rest_client.id' => $this->id, \n 'age' => $this->age, \n 'hospital_id' => $this->hospital_id, \n ]);\n\n $query->andFilterWhere(['like', 'rest_client.name', $this->name])\n ->andFilterWhere(['like', 'sex', $this->sex])\n ->andFilterWhere(['like', 'birthplace', $this->birthplace])\n ->andFilterWhere(['like', 'email', $this->email])\n ->andFilterWhere(['like', 'tel', $this->tel])\n ->andFilterWhere(['like', 'school', $this->school])\n ->andFilterWhere(['like', 'education', $this->education])\n ->andFilterWhere(['like', 'experience', $this->experience])\n ->andFilterWhere(['like', 'employed', $this->employed])\n ->andFilterWhere(['like', 'department', $this->department])\n ->andFilterWhere(['like', 'worktime', $this->worktime])\n ->andFilterWhere(['like', 'position', $this->position])\n ->andFilterWhere(['like', 'speciality', $this->speciality])\n ->andFilterWhere(['like', 'hobby', $this->hobby])\n ->andFilterWhere(['like', 'notes', $this->notes])\n ->andFilterWhere(['like', 'zhuren', $this->zhuren])\n ->andFilterWhere(['like', 'pianhao', $this->pianhao]) \n ->andFilterWhere(['like', 'rest_danwei.name', $this->hospitalname])\n ->andFilterWhere(['like', 'rest_sales.name', $this->salesname])\n ;\n\n // echo $query->createCommand()->getRawSql(); exit; \n return $dataProvider;\n }", "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('description', $this->description, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id,true);\n $criteria->compare('query_id',$this->query_id,true);\n $criteria->compare('se_id',$this->se_id,true);\n $criteria->compare('se_page',$this->se_page,true);\n $criteria->compare('se_url',$this->se_url,true);\n $criteria->compare('visits',$this->visits);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination' => array('pageSize' => 25),\n ));\n }", "public function search() {\n\n\t\t$criteria = $this->getDbCriteria();\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('subject', $this->subject, true);\n\t\t$criteria->compare('status', $this->status);\n\t\t$criteria->compare('template.name', $this->template_id, true);\n\n\t\t$sort = new CSort;\n\t\t$sort->defaultOrder = 'id DESC';\n\n\t\treturn new NActiveDataProvider($this, array(\n\t\t\t\t\t'criteria' => $criteria,\n\t\t\t\t\t'sort' => $sort,\n\t\t\t\t\t'pagination' => array(\n\t\t\t\t\t\t'pageSize' => 20,\n\t\t\t\t\t),\n\t\t\t\t));\n\t}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('acquisition_date_id', $this->acquisition_date_id);\n $criteria->compare('acquisition_type_id', $this->acquisition_type_id);\n $criteria->compare('location_id', $this->location_id);\n $criteria->compare('number', $this->number, true);\n $criteria->compare('annotation', $this->annotation, true);\n $criteria->compare('location_coordinates_id', $this->location_coordinates_id);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "protected function _initSearch()\n {\n $this->where['is_del'] = array('eq', 1);\n $this->order = 'create_time desc';\n }", "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('id_client', $this->id_client);\n $criteria->compare('first_name', $this->first_name, true);\n $criteria->compare('last_name', $this->last_name, true);\n $criteria->compare('date_birth', $this->date_birth, true);\n $criteria->compare('gender', $this->gender);\n\n return new CActiveDataProvider(get_class($this), array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('domain', $this->domain, true);\n $criteria->compare('ru_domain', $this->ru_domain, true);\n $criteria->compare('page', $this->ru_domain);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function applyDefaultSearchQuery(\\yii\\data\\ActiveDataProvider &$dataProvider);", "protected function _initSearch()\n {\n $this->where['is_del'] = array('eq', 0);\n $this->order = 'create_time desc';\n }", "public static function new_search_record()\n\t{\n\t\treturn new league_record_search();\n\t}", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('project_id', $this->project_id);\n $criteria->compare('num', $this->num);\n $criteria->compare('team_strength', $this->team_strength);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n {\n $query = Story::find()\n ->owner()\n ->globalChannel()\n ->orderBy(['_id' => SORT_ASC])\n ->active();\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => false\n ]);\n\n return $dataProvider;\n }", "private function instantiate_search_page() {\n // Build the search_types_fields and search_types_label arrays out of post_types_defs\n $search_types_fields = array();\n $search_types_label = array();\n foreach ( $this->post_type_defs as $post_type ) {\n $search_types_fields[ $post_type[ 'slug' ] ] = $post_type[ 'fields' ];\n $search_types_label[ $post_type[ 'slug' ] ] = $post_type[ 'plural_name' ];\n }\n $this->search_page = new HRHS_Search( array(\n // Using the default slug and title for now\n 'search_types_fields' => $search_types_fields,\n 'search_types_label' => $search_types_label\n ) );\n }", "public function search()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('title',$this->title,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search($query);", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('sex', $this->sex);\n $criteria->compare('mobile', $this->mobile, true);\n $criteria->compare('idcard', $this->idcard, true);\n $criteria->compare('password', $this->password, true);\n $criteria->compare('place_ids', $this->place_ids, true);\n $criteria->compare('depart_id', $this->depart_id);\n $criteria->compare('bank', $this->bank, true);\n $criteria->compare('bank_card', $this->bank_card, true);\n $criteria->compare('address', $this->address, true);\n $criteria->compare('education', $this->education, true);\n $criteria->compare('created', $this->created);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('summ', $this->summ, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('company_id', Yii::app()->user->company_id);\n $criteria->compare('zone_id', $this->zone_id, true);\n $criteria->compare('low_qty_threshold', $this->low_qty_threshold);\n $criteria->compare('high_qty_threshold', $this->high_qty_threshold);\n $criteria->compare('created_date', $this->created_date, true);\n $criteria->compare('created_by', $this->created_by, true);\n $criteria->compare('updated_date', $this->updated_date, true);\n $criteria->compare('updated_by', $this->updated_by, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('nrs', $this->nrs, true);\n $criteria->compare('supplier_name', $this->supplier_name, true);\n $criteria->compare('npwp', $this->npwp, true);\n $criteria->compare('bank_name', $this->bank_name, true);\n $criteria->compare('bank_account_number', $this->bank_account_number, true);\n $criteria->compare('created_at', $this->created_at, true);\n $criteria->compare('created_by', $this->created_by);\n $criteria->compare('updated_at', $this->updated_at, true);\n $criteria->compare('updated_by', $this->updated_by);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'sort' => array(\n 'defaultOrder' => 'id DESC',\n ),\n ));\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('code',$this->code,true);\n\t\t$criteria->compare('title',$this->title,true);\n\t\t$criteria->compare('did',$this->did);\n\t\t$criteria->compare('date_prod',$this->date_prod,true);\n\t\t$criteria->compare('kind',$this->kind,true);\n\t\t$criteria->compare('len',$this->len,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('code', $this->code, true);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('printable_name', $this->printable_name, true);\n\t\t$criteria->compare('iso3', $this->iso3, true);\n\t\t$criteria->compare('numcode', $this->numcode);\n\t\t$criteria->compare('is_default', $this->is_default);\n\t\t$criteria->compare('is_highlight', $this->is_highlight);\n\t\t$criteria->compare('is_active', $this->is_active);\n\t\t$criteria->compare('date_added', $this->date_added);\n\t\t$criteria->compare('date_modified', $this->date_modified);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function search($params)\n {\n $this->__search($params);\n\n // grid filtering conditions\n $this->query\n\t ->andFilterWhere([\n\t 'id' => $this->id,\n\t 'ord' => $this->ord,\n\t 'type' => $this->type,\n\t ])\n\t ->andFilterWhere(['like', 'code', $this->code])\n ->andFilterWhere(['like', 'name', $this->name]);\n\n return $this->dataProvider;\n }", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function search()\n {\n // @todo Please modify the following code to remove attributes that should not be searched.\n $criteria = new CDbCriteria();\n \n $criteria->compare('question_id', $this->question_id);\n $criteria->compare('student_id', $this->student_id);\n $criteria->compare('answer_id', $this->answer_id);\n $criteria->compare('answer_text', $this->answer_text, true);\n $criteria->compare('answer_number', $this->answer_number, true);\n $criteria->compare('exec_time', $this->exec_time);\n $criteria->compare('result', $this->result);\n $criteria->compare('test_result', $this->test_result);\n \n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria\n ));\n }", "public function createQuery() {}", "public function googleSearch()\n {\n $search = new \\Hoor\\Search\\Google(get_search_query(), $this->getIndex());\n $this->data['search'] = $search;\n $this->data['results'] = $search->results;\n }", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('createDate', $this->createDate);\n $criteria->compare('lastUpdated', $this->lastUpdated);\n $criteria->compare('trackingKey', $this->trackingKey);\n $criteria->compare('email', $this->email);\n $criteria->compare('leadscore', $this->leadscore);\n\n if (!Yii::app()->user->isGuest) {\n $pageSize = Profile::getResultsPerPage();\n } else {\n $pageSize = 20;\n }\n\n return new SmartActiveDataProvider(get_class($this), array(\n 'pagination' => array(\n 'pageSize' => $pageSize,\n ),\n 'criteria' => $criteria,\n ));\n }", "public function search() {\n// @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('description', $this->description, true);\n $criteria->compare('type', $this->type, true);\n $criteria->compare('options', $this->options, true);\n $criteria->compare('autoreplys', $this->autoreplys, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "protected function addSearchConfigs()\n {\n\n $this['textQueryBuilder'] = function () {\n return new TextQueryBuilder();\n };\n\n $this['searchManager'] = function ($c) {\n return new SearchManager($c['databaseAdapter'], $c['queue'], $c['request'], array(\n $c['textQueryBuilder']\n ));\n };\n\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('tbl_customer_supplier', $this->tbl_customer_supplier, true);\n $criteria->compare('id_customer', $this->id_customer, true);\n $criteria->compare('id_supplier', $this->id_supplier, true);\n $criteria->compare('title', $this->title, true);\n $criteria->compare('date_add', $this->date_add, true);\n $criteria->compare('date_upd', $this->date_upd, true);\n $criteria->compare('active', $this->active);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public static function search()\n {\n return self::filterSearch([\n 'plot_ref' => 'string',\n 'plot_name' => 'string',\n 'plot_start_date' => 'string',\n 'user.name' => self::filterOption([\n 'select' => 'id',\n 'label' => trans_title('users', 'plural'),\n 'fields' => ['id', 'name'],\n //ComboBox user list base on the current client\n //See in App\\Models\\Users\\UsersScopes\n 'model' => app(User::class)->bySearch(),\n ]),\n 'client.client_name' => self::filterOption([\n 'conditional' => Credentials::hasRoles(['admin', 'admin-gv']),\n 'select' => 'client_id',\n 'label' => trans_title('clients', 'plural'),\n 'model' => Client::class,\n 'fields' => ['id', 'client_name']\n ])\n ]);\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('district_id', $this->district_id);\n\t\t$criteria->compare('active', $this->active);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t\t\t'criteria' => $criteria,\n\t\t\t\t));\n\t}", "public function search()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('issue_date', $this->issue_date, true);\n\n\t\treturn new CActiveDataProvider($this, array('criteria' => $criteria,));\n\t}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('hol_id', $this->hol_id);\n $criteria->compare('loc_id', $this->loc_id);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search($params)\n {\n $this->__search($params);\n\n // grid filtering conditions\n $this->query\n\t ->andFilterWhere(['id' => $this->id])\n\t ->andFilterWhere(['like', 'description', $this->description])\n ->andFilterWhere(['like', 'type', $this->type]);\n\n return $this->dataProvider;\n }", "public function search()\r\n\t{\r\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\r\n\r\n\t\t$criteria = new CDbCriteria;\r\n\r\n\t\t$criteria->compare('doc_num', $this->doc_num, true);\r\n\t\t$criteria->compare('doc_num2', $this->doc_num2);\r\n\t\t$criteria->compare('doc_date', $this->doc_date, true);\r\n\r\n\t\treturn new CActiveDataProvider($this, array(\r\n\t\t\t'criteria' => $criteria,\r\n\t\t));\r\n\t}", "public function search()\n {\n $criteria = new CDbCriteria();\n\n $criteria->compare('productCategoryId', $this->productCategoryId, true);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('level', $this->level);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function scopeSearch($query){\n if (request()->has('search_query') && !empty(request()->search_query) && request()->has('search_columns') && !empty(request()->search_columns) ) {\n \t$query = $this->getQuery($query , request()->search_columns , request()->search_query );\n }else{\n \tif (request()->has('search_query') && !empty(request()->search_query)) {\n \t\t$query = $this->getQuery($query , $this->fillable , request()->search_query );\n \t}\n }\n\n \n \n \n \n \n return $query;\n }", "public function search() {\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('name', $this->name, true);\n\t\t$criteria->compare('wikilink', $this->wikilink, true);\n\t\t$criteria->compare('picture', $this->picture, true);\n\t\t$criteria->compare('score', $this->score);\n\t\t$criteria->compare('modification_date', $this->modification_date, true);\n\t\t$criteria->compare('featured', $this->featured);\n\t\t$criteria->compare('users_found', $this->users_found);\n\t\t$criteria->compare('gpsdata', $this->gpsdata);\n\t\t$criteria->compare('category', $this->category);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria' => $criteria,\n\t\t));\n\t}", "public function search()\n {\n $criteria=new CDbCriteria;\n\n $criteria->compare('id',$this->id);\n $criteria->compare('title',$this->title,true);\n $criteria->compare('text',$this->text,true);\n $criteria->compare('author_id',$this->author_id);\n $criteria->compare('editor_id',$this->editor_id);\n $criteria->compare('crated_at',$this->crated_at,true);\n $criteria->compare('edited_at',$this->edited_at,true);\n $criteria->compare('publish_at',$this->publich_at,true);\n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n ));\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('date_start',$this->date_start,true);\n\t\t$criteria->compare('date_end',$this->date_end,true);\n\t\t$criteria->compare('count_attempt',$this->count_attempt);\n\t\t$criteria->compare('count_questions',$this->count_questions);\n\t\t$criteria->compare('description',$this->description,true);\n\t\t$criteria->compare('date_create',$this->date_create,true);\n\t\t$criteria->compare('author',$this->author,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('latitud',$this->latitud,true);\n\t\t$criteria->compare('longitud',$this->longitud,true);\n\t\t$criteria->compare('telefono',$this->telefono,true);\n\t\t$criteria->compare('direccion',$this->direccion,true);\n\t\t$criteria->compare('web',$this->web,true);\n\t\t$criteria->compare('activo',$this->activo);\n\t\t$criteria->compare('userId',$this->userId);\n\t\t$criteria->compare('ratingGeneral',$this->ratingGeneral);\n\t\t$criteria->compare('youtubeUrl',$this->youtubeUrl,true);\n\t\t$criteria->compare('esDestacado',$this->esDestacado);\n\t\t$criteria->compare('aprobado',$this->aprobado);\n $criteria->compare('regionId',$this->regionId);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('id_user',$this->id_user);\n\t\t$criteria->compare('id_answer',$this->id_answer);\n\t\t$criteria->compare('mark',$this->mark);\n\t\t$criteria->compare('comment',$this->comment,true);\n\t\t$criteria->compare('time',$this->time,true);\n\t\t$criteria->compare('read_mark',$this->read_mark,true);\n\t\t$criteria->compare('marked_by',$this->marked_by,true);\n\t\t\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n// $criteria->compare('name', $this->name, true);\n $criteria->compare('description', $this->description, true);\n// $criteria->compare('alias', $this->alias, true);\n// $criteria->compare('module', $this->module, true);\n $criteria->compare('crud', $this->crud, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID',$this->ID);\n\t\t$criteria->compare('UserID',$this->UserID);\n\t\t$criteria->compare('ProviderID',$this->ProviderID);\n\t\t$criteria->compare('Date',$this->Date,true);\n\t\t$criteria->compare('RawID',$this->RawID);\n\t\t$criteria->compare('Document',$this->Document,true);\n\t\t$criteria->compare('State',$this->State,true);\n\t\t$criteria->compare('Temperature',$this->Temperature,true);\n\t\t$criteria->compare('Conditions',$this->Conditions,true);\n\t\t$criteria->compare('Expiration',$this->Expiration,true);\n\t\t$criteria->compare('Comments',$this->Comments,true);\n\t\t$criteria->compare('Quantity',$this->Quantity,true);\n\t\t$criteria->compare('Type',$this->Type,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'pagination'=>array(\n \t'pageSize'=>Yii::app()->params['defaultPageSize'], \n ),\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('sn',$this->sn,true);\n\t\t$criteria->compare('fn',$this->fn,true);\n\t\t$criteria->compare('region',$this->region);\n\t\t$criteria->compare('postal',$this->postal,true);\n\t\t$criteria->compare('inn',$this->inn,true);\n\t\t$criteria->compare('ogrn',$this->ogrn,true);\n\t\t$criteria->compare('okpo',$this->okpo,true);\n\t\t$criteria->compare('adress',$this->adress,true);\n\t\t$criteria->compare('tel',$this->tel,true);\n\t\t$criteria->compare('fax',$this->fax,true);\n\t\t$criteria->compare('okved',$this->okved,true);\n\t\t$criteria->compare('oid',$this->oid,true);\n\t\t$criteria->compare('hits',$this->hits);\n\t\t$criteria->compare('st',$this->st);\n\t\t$criteria->compare('alias',$this->alias,true);\n\t\t$criteria->compare('alias2',$this->alias2,true);\n\t\t$criteria->compare('alias3',$this->alias3,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id, true);\n $criteria->compare('pid', $this->pid, true);\n $criteria->compare('userName', $this->userName, true);\n $criteria->compare('userEmail', $this->userEmail, true);\n $criteria->compare('text', $this->text, true);\n $criteria->compare('userId', $this->userId, true);\n $criteria->compare('visibility', $this->visibility);\n $criteria->compare('date', $this->date, true);\n $criteria->compare('type', $this->type, true);\n $criteria->compare('recordId', $this->recordId, true);\n $criteria->compare('info', $this->info, true);\n $criteria->compare('new', $this->new, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('cardid', $this->cardid, true);\n $criteria->compare('subclassid', $this->subclassid, true);\n $criteria->compare('cardname', $this->cardname, true);\n\n return new ActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "private function new_search()\n {\n $this->template = FALSE;\n \n $articulo = new articulo();\n $codfamilia = '';\n if( isset($_REQUEST['codfamilia']) )\n {\n $codfamilia = $_REQUEST['codfamilia'];\n }\n \n $con_stock = isset($_REQUEST['con_stock']);\n $this->results = $articulo->search($this->query, 0, $codfamilia, $con_stock);\n \n /// añadimos la busqueda\n foreach($this->results as $i => $value)\n {\n $this->results[$i]->query = $this->query;\n $this->results[$i]->dtopor = 0;\n }\n \n header('Content-Type: application/json');\n echo json_encode($this->results);\n }", "public function search () {\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria = new CDbCriteria;\n\n\t\t$criteria->compare('id', $this->id);\n\t\t$criteria->compare('title', $this->title, true);\n\t\t$criteria->compare('description', $this->description, true);\n\t\t$criteria->compare('type', $this->type);\n\t\t$criteria->compare('required', $this->required);\n\t\t$criteria->compare('cId', $this->cId);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t 'criteria' => $criteria,\n\t\t ));\n\t}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('user', $this->user, true);\n $criteria->compare('amount', $this->amount);\n $criteria->compare('currency', $this->currency, true);\n $criteria->compare('valid_from', $this->valid_from, true);\n $criteria->compare('valid_to', $this->valid_to, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('frequency_band',$this->frequency_band,true);\n\n\t\t$criteria->compare('date_of_issue',$this->date_of_issue,true);\n\n\t\t$criteria->compare('date_of_renewal',$this->date_of_renewal,true);\n\n\t\t$criteria->compare('emission',$this->emission,true);\n\n\t\t$criteria->compare('tolerance',$this->tolerance,true);\n\n\t\t$criteria->compare('application_vsat_id',$this->application_vsat_id,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\t\t/*\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criteria->compare('name',$this->name,true);\n\t\t$criteria->compare('percent_discount',$this->percent_discount,true);\n\t\t$criteria->compare('taxable',$this->taxable);\n\t\t$criteria->compare('id_user_created',$this->id_user_created);\n\t\t$criteria->compare('id_user_modified',$this->id_user_modified);\n\t\t$criteria->compare('date_created',$this->date_created,true);\n\t\t$criteria->compare('date_modified',$this->date_modified,true);\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t\t*/\n\t}", "public function search() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('first_name', $this->first_name, true);\n $criteria->compare('last_name', $this->last_name, true);\n $criteria->compare('address', $this->address, true);\n $criteria->compare('contact_number', $this->contact_number, true);\n $criteria->compare('city', $this->city, true);\n $criteria->compare('gender', $this->gender, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function getSearch();" ]
[ "0.7777683", "0.6742238", "0.65731907", "0.65041494", "0.64700747", "0.639015", "0.637483", "0.62886864", "0.6267969", "0.6249508", "0.6243443", "0.6212543", "0.6198088", "0.6172381", "0.612439", "0.61215585", "0.6117022", "0.6103828", "0.61012053", "0.6088681", "0.60803294", "0.607897", "0.60752416", "0.6070839", "0.6041975", "0.6041685", "0.60374016", "0.6034814", "0.60323316", "0.6024549", "0.60161996", "0.59998447", "0.59773016", "0.5967968", "0.5962043", "0.59597254", "0.59567606", "0.59422404", "0.59342116", "0.5904648", "0.5902109", "0.5896044", "0.58959293", "0.58891505", "0.58850884", "0.5884874", "0.5877189", "0.5865311", "0.5864429", "0.58469796", "0.5845595", "0.58435446", "0.58344173", "0.5826376", "0.58219814", "0.5820616", "0.5820143", "0.58167785", "0.58127224", "0.5804104", "0.579623", "0.5787051", "0.5781643", "0.57796943", "0.57782423", "0.5775674", "0.57752764", "0.57752764", "0.57752764", "0.57733816", "0.57730323", "0.57720655", "0.57718503", "0.5770724", "0.57702416", "0.5762702", "0.57576716", "0.57485497", "0.5747237", "0.5746326", "0.5741654", "0.5738984", "0.57343197", "0.5732555", "0.573218", "0.57283235", "0.57250994", "0.57234436", "0.5716494", "0.5714866", "0.57145613", "0.5713022", "0.5711784", "0.5711495", "0.57102865", "0.5709259", "0.57082874", "0.57068247", "0.5705206", "0.5701066", "0.56977695" ]
0.0
-1
Display a listing of the resource.
public function index(int $material_id) { // 教材に紐付いているクイズの取得 return QuestionResource::collection(Question::where('material_id', $material_id)->get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Store a newly created resource in storage.
public function store(StoreRequest $request, StoreUseCase $useCase): QuestionResource { $quiz = $request->makeQuiz(); $created = $useCase->invoke($quiz); return new QuestionResource($created['question']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676" ]
0.0
-1
Update the specified resource in storage.
public function update(UpdateRequest $request, UpdateUseCase $useCase) { $quiz = $request->updateQuiz(); $updated = $useCase->invoke($quiz); return new QuestionResource($updated['question']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(int $id, DestroyUseCase $useCase) { // 削除されたQuestionのmaterial_id $deleted_material_id = $useCase->invoke($id); return QuestionResource::collection(Question::where('material_id', $deleted_material_id)->get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Display a listing of the resource.
public function landing() { // $data = [ // 'title' => 'Welcome to ItSolutionStuff.com', // 'date' => date('m/d/Y') // ]; // $pdf = PDF::loadView('myPDF', $data); // return $pdf->download('itsolutionstuff.pdf'); // $pdf = PDF::loadView('pdf.document', $data); // return $pdf->stream('document.pdf'); //$mpdf = new \Mpdf\Mpdf(); return view('front.pages.landing'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}" ]
[ "0.7594622", "0.7594622", "0.7588457", "0.7580005", "0.75723624", "0.7499764", "0.7436887", "0.74322647", "0.7387517", "0.735172", "0.73381543", "0.73117113", "0.72958225", "0.7280436", "0.7273787", "0.72433424", "0.7230227", "0.7225085", "0.71851814", "0.71781176", "0.7174025", "0.7149406", "0.71431303", "0.7142905", "0.7136737", "0.712733", "0.7122102", "0.71148264", "0.71148264", "0.71148264", "0.7111841", "0.7092733", "0.70843536", "0.70822084", "0.7079442", "0.70571405", "0.70571405", "0.7055195", "0.70391846", "0.7039114", "0.7035626", "0.7033991", "0.70300245", "0.7026507", "0.7026417", "0.7019451", "0.7017105", "0.7004775", "0.70031846", "0.6999904", "0.6995238", "0.6994825", "0.699354", "0.6988824", "0.6986871", "0.6965804", "0.6965542", "0.69560695", "0.69515944", "0.6950682", "0.6947703", "0.69433117", "0.6941539", "0.6939613", "0.69377476", "0.69377476", "0.693678", "0.69344354", "0.69314486", "0.6927608", "0.69264024", "0.6922966", "0.69181216", "0.69150716", "0.6911192", "0.69095594", "0.69092506", "0.6907887", "0.69018227", "0.69008595", "0.69006085", "0.6900209", "0.68949944", "0.6892768", "0.6891944", "0.6891552", "0.6891552", "0.6891443", "0.68886423", "0.6888326", "0.68856037", "0.68835604", "0.68813664", "0.6878345", "0.6876079", "0.6873206", "0.6873183", "0.687048", "0.687014", "0.686966", "0.68695843" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.7285922", "0.714503", "0.71324795", "0.6639801", "0.6620405", "0.6568167", "0.65257645", "0.650948", "0.64484984", "0.6375281", "0.6373189", "0.63650924", "0.63650924", "0.63650924", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731" ]
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show(Resena $resena)\n {\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function show()\n\t{\n\t\t\n\t}", "public function get_resource();", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "public function display() {\n echo $this->render();\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n {\n //\n $this->_show($id);\n }", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public abstract function display();", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "abstract public function resource($resource);", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8232636", "0.81890994", "0.68296117", "0.64987075", "0.649589", "0.64692974", "0.64633286", "0.63640857", "0.6307513", "0.6281809", "0.621944", "0.61926234", "0.61803305", "0.6173143", "0.61398774", "0.6119022", "0.61085826", "0.6106046", "0.60947937", "0.6078597", "0.6047151", "0.60409963", "0.6021287", "0.5989136", "0.5964405", "0.5962407", "0.59518087", "0.59309924", "0.5921466", "0.5908002", "0.5908002", "0.5908002", "0.59051657", "0.5894554", "0.5871459", "0.5870088", "0.586883", "0.5851384", "0.58168566", "0.58166975", "0.5815869", "0.58056176", "0.5799148", "0.5795126", "0.5791158", "0.57857597", "0.5783371", "0.5761351", "0.57592535", "0.57587147", "0.5746491", "0.57460666", "0.574066", "0.5739448", "0.5739448", "0.57295275", "0.57293373", "0.5729069", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57214445", "0.57149816", "0.5712036", "0.5710076", "0.57073003", "0.5707059", "0.5705454", "0.5705454", "0.5700382", "0.56997055", "0.5693362", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "public function update($request, $id);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "abstract public function put($data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public abstract function update($object);", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update($id, $input);", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function put($path, $data = null);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445", "0.58630455", "0.58540666", "0.58540666", "0.5851948", "0.5816257", "0.58070177", "0.5752376", "0.5752376", "0.57359827", "0.5723941", "0.57152426", "0.56958807", "0.5691061", "0.56881654", "0.5669518", "0.5655434", "0.5651897", "0.56480426", "0.5636727", "0.56354004", "0.5633156", "0.5632135", "0.5629063", "0.5621358", "0.56089175", "0.5602031", "0.55927175", "0.5582773", "0.558176", "0.5581365", "0.5575607", "0.5571989", "0.55672973", "0.5562929", "0.55623275", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55598706", "0.55560726", "0.55558753", "0.5554241", "0.55534166", "0.5552986", "0.55440396", "0.55438566", "0.5540619", "0.55394524", "0.5536144", "0.5535339", "0.5534803", "0.5524157", "0.55188423", "0.55163455", "0.55135876", "0.5509835", "0.5507501", "0.55068344", "0.55034274", "0.5501476", "0.55010915", "0.5499286", "0.5497852", "0.54958415", "0.54958415", "0.5494513", "0.5494261", "0.54935366", "0.54931587", "0.54917634", "0.54836094", "0.5479455", "0.5478885", "0.5478268", "0.54654354", "0.54645413", "0.5461025", "0.54568535" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
protected $fillable[]; Relations to other models
public function department() { return $this->belongsTo(Department::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFillable()\n {\n return $this->fillable;\n }", "public function getFillable()\n {\n return $this->fillable;\n }", "public function getFillable()\n {\n return $this->fillable;\n }", "public function getFields()\n {\n return $this->fillable;\n }", "public function getFillable(){\n return $this->fillable;\n }", "public function __construct(){\n if(count($this->fillable) == 0){\n foreach($this->attributes as $key => $attr){\n array_push($this->fillable, $key);\n }\n }\n }", "public function getFillable()\n\t{\n\t\t\treturn $this->fillable;\n\t}", "public function getFillable()\n\t{\n\t\t\treturn $this->fillable;\n\t}", "public function fillable(array $fillable)\n {\n $this->fillable = $fillable;\n\n return $this;\n }", "public function fillable(array $fillable)\n {\n $this->fillable = $fillable;\n\n return $this;\n }", "public function getFillable()\n\t{\n\t\treturn $this->fillable;\n\t}", "protected function defineAttributes()\n {\n $this->dbAttributes = (object) [\n 'safe' => [\n 'nombre',\n 'estado',\n 'pais_idpais'\n ],\n 'date' => []\n ];\n }", "protected function defineAttributes()\n {\n $this->dbAttributes = (object) [\n 'safe' => [\n 'fk_documento',\n 'fk_funcionario',\n 'accion',\n 'fecha',\n 'descripcion',\n 'titulo'\n ],\n 'date' => ['fecha']\n ];\n }", "public function fillable();", "public function attributes()\n {\n return $this->model->getFillable();\n }", "public function setFillable(array $fillable)\n\t{\n\t\t$this->fillable = $fillable;\n\n\t\treturn $this;\n\t}", "public function perfil(){\n return $this->hasMany('App\\Models\\Perfil');\n \n }", "public function getFillable() {\n\n if(sizeof($this->fillable) > 1) {\n unset($this->fillable[0]);\n }\n return $this->fillable;\n\n }", "public function setRelations() {}", "protected function getModelFields()\n {\n\n $md = $this->getModel();\n $model = null;\n\n if($md !== null)\n {\n $model = new $md();\n return $model->getFillable();\n }\n\n return [];\n\n }", "public function attributes()\n {\n return array_merge(parent::attributes(), [\n 'created_at_to',\n 'updated_at_to',\n ]);\n }", "public function mergeFillable(array $fillable)\n {\n $this->fillable = array_merge($this->fillable, $fillable);\n\n return $this;\n }", "public function testFillableAtribute()\n {\n $fillable = ['name', 'type'];\n $this->assertEquals($fillable, $this->castMember->getFillable());\n }", "public function _set_model_fields(){\n // set fields only when they have not been set for this object\n if($this->_fields_loaded===FALSE){\n\n foreach ($this->_meta() as $meta) {\n\n $this->{$meta->name} = '';\n }\n }\n }", "public function attributes()\n {\n return array_merge(parent::attributes(), [\n 'partner_id',\n 'timestamp_to',\n 'created_at_to',\n 'updated_at_to',\n ]);\n }", "public function getFillable()\n {\n return static::$model::getFillableValues();\n }", "public function initialize()\n {\n $this->hasMany('idmov', 'App\\Models\\MovEstoque', 'movimentacao_manual_estoque_idmov', array('alias' => 'MovEstoque'));\n $this->hasMany('idmov', 'App\\Models\\MovimentacaoManualEstoqueItem', 'idmov', array('alias' => 'MovimentacaoManualEstoqueItem'));\n $this->belongsTo('cd_ordem_servico_reparo', 'App\\Models\\OrdemServicoReparo', 'cd_ordem_servico', array('alias' => 'OrdemServicoReparo'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('requerente', 'App\\Models\\Empresa', 'cd_empresa', array('alias' => 'Empresa'));\n $this->belongsTo('usuario_responsavel', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function relations()\n {\n // class name for the relations automatically generated below.\n return array(\n \n );\n }", "public function setFillable($fillable)\n {\n $this->fillable = $fillable;\n return $this;\n }", "protected static function resolveFillable()\n\t{\n\t\tstatic::getAttributeDefinitions()->each->applyFillable($fillable = collect());\n\t\tstatic::$resolvedFillable[static::class] = $fillable->all();\n\t}", "public function initialize()\n {\n $this->hasMany('cd_upload', 'App\\Models\\Empresa', 'logo', array('alias' => 'Empresa'));\n $this->hasMany('cd_upload', 'App\\Models\\EmpresaHasArquivos', 'cd_upload', array('alias' => 'EmpresaHasArquivos'));\n $this->hasMany('cd_upload', 'App\\Models\\EmpresaHasLinkCentralcompras', 'cd_upload', array('alias' => 'EmpresaHasLinkCentralcompras'));\n $this->hasMany('cd_upload', 'App\\Models\\LancamentoHasUpload', 'cd_upload', array('alias' => 'LancamentoHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\LiquidacaoHasUpload', 'cd_upload', array('alias' => 'LiquidacaoHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\NfentradaHasUpload', 'cd_upload', array('alias' => 'NfentradaHasUpload'));\n $this->hasMany('cd_upload', 'App\\Models\\UploadHas', 'upload_cd_upload', array('alias' => 'UploadHas'));\n $this->belongsTo('cd_unidade', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n }", "public function fields(): array\n {\n return [\n ID::make(),\n HasMany::make('reviews'),\n ];\n }", "public function attributes(){\n return [\n 'ofi_fk_parroquia' =>'Código de parroquia',\n 'ofi_tipo' =>'Tipo de oficina (local, almacen)',\n 'ofi_direccion' =>'Dirección de la empresa'\n\n ];\n }", "public function initialize()\n {\n \t$this->belongsTo('id_usuario', 'IbcUsuario', 'id_usuario', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_periodo', 'CobPeriodo', 'id_periodo', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_contrato', 'CobActaconteo', 'id_contrato', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_ajuste_reportado', 'CobAjusteReportado', 'id_ajuste_reportado', array(\n \t\t\t'reusable' => true\n \t));\n \t$this->belongsTo('id_actaconteo_persona_facturacion', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona_facturacion', array(\n \t\t\t'reusable' => true\n \t));\n }", "public function initialize()\n {\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaExcusa', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo_persona', 'CobActaconteoPersonaFacturacion', 'id_actaconteo_persona', array(\n 'reusable' => true\n ));\n $this->belongsTo('id_actaconteo', 'CobActaconteo', 'id_actaconteo', array(\n 'reusable' => true\n ));\n }", "protected function otherFields()\n {\n return [\n Image::make('โลโก้', 'logofile'),\n Image::make('ภาพหน้าร้าน', 'imagefile')\n ->hideFromIndex(),\n Textarea::make('รายละเอียดอื่นๆ', 'description')->hideFromIndex(),\n BelongsTo::make('ผู้ทำรายการ', 'user', 'App\\Nova\\User')\n ->onlyOnDetail(),\n ];\n }", "public function attributes()\n {\n return $this->morphToMany(Attribute::class, 'attribute_able');\n }", "public function getFillables()\n {\n return $this->filterDatas(function ($data) {\n return isset($data->fillable) && $data->fillable;\n });\n }", "public function __construct(FillableSchema $fillable, UserModel $userModel)\n {\n $this->fillable = $fillable;\n $this->userModel = $userModel;\n }", "public function __construct(array $attributes = [])\n {\n $config = config(\"erpnetMigrates.tables.$this->table.fields\");\n if(is_array($config))\n foreach ($config as $key => $field) {\n if (array_search($field, $this->fillable)===false){\n if(is_string($field) ) array_push($this->fillable, $field);\n if(is_array($field)) array_push($this->fillable, $key);\n }\n }\n parent::__construct($attributes);\n }", "protected static function _relations() {\n\n\t}", "public function permissions(){\n return $this->belongsToMany(Permission::class);\n }", "public function permission(){\n return $this->belongsToMany(Permission::class);\n }", "public function mappedAttributes()\n {\n $prefix = config('getcandy.database.table_prefix');\n\n return $this->morphToMany(\n Attribute::class,\n 'attributable',\n \"{$prefix}attributables\"\n )->withTimestamps();\n }", "public function initialize()\n {\n $this->skipAttributes([\n \"question_id\",\n ]);\n\n $this->skipAttributesOnCreate([\n \"question_status\"\n ]);\n\n $this->skipAttributesOnUpdate([\n \"question_creation_time\"\n ]);\n\n $this->hasMany('question_id', 'QaApp\\Models\\Answer', 'question_id', array('alias' => 'Answers'));\n }", "public function initialize()\n {\n $this->hasMany('id', 'app\\common\\models\\base\\UserProfile', 'user_id', array('alias' => 'UserProfile'));\n $this->hasMany('id', 'app\\common\\models\\base\\UserRoles', 'user_id', array('alias' => 'UserRoles'));\n $this->belongsTo('type_id', 'app\\common\\models\\base\\UserType', 'id', array('alias' => 'UserType'));\n }", "public function initialize()\n {\n $this->keepSnapshots(true);\n $this->addBehavior(new Blameable());\n $this->useDynamicUpdate(true);\n $this->hasMany(\"id\", \"models\\Formentrys\", \"form_id\", ['alias' => 'Entries']);\n $this->hasMany(\"id\", \"models\\Formfields\", \"form_id\", ['alias' => 'Formfields']);\n $this->belongsTo(\"user_id\", \"models\\Users\", \"id\", ['alias' => 'Users']);\n }", "function assignedUsers()\n {\n return $this->morphMany('App\\AssignedUsers', 'assignable');\n }", "public function getModelFillable()\n {\n $fillable_arr = $this->getArrayKeyCreate();\n\n $string_result = \"['\".implode(\"', '\",$fillable_arr).\"']\"; // => ['a', 'b', 'c']\n\n return $string_result;\n }", "public function loadFields()\n\t{\n\t\t// Get only the fields from the class instance, not its descendants\n\t\t$getFields = create_function('$obj', 'return get_object_vars($obj);');\n\t\t$fields = $getFields($this);\n\n\t\t// Field defaults\n\t\t$defaults = array(\n\t\t\t'primary' => false,\n\t\t\t'relation' => false\n\t\t);\n\n\t\t// Go through and set up each field\n\t\tforeach ($fields as $name => $options)\n\t\t{\n\t\t\t// Merge the defaults\n\t\t\t$options = array_merge($defaults, $options);\n\n\t\t\t// Is this the primary field?\n\t\t\tif ($options['primary'] === true)\n\t\t\t{\n\t\t\t\t$this->primaryKeyField = $name;\n\t\t\t}\n\n\t\t\t// Is this a relation?\n\t\t\tif ($options['relation'] !== false)\n\t\t\t{\n\t\t\t\t$this->relations[$name] = $options;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$this->fields[$name] = array();\n\t\t}\n\t}", "public function fillModelAttributes($model, $request, $fields)\n {\n }", "public function permissions()\n\t{\n\t\treturn $this->belongsToMany(Permission::class, 'users_permissions');\n\t}", "public function __construct()\n {\n parent::__construct();\n // The primary key for the model.\n $this->primaryKey = 'DEVICE_ID';\n // The table associated with the model.\n $this->table = env('DB_DEVICE');\n // The attributes that are mass assignable.\n $this->fillable = [\n 'ROOM_ID'\n ];\n // The attributes that should be cast to native types.\n $this->casts = [ \n 'DATA' => 'array'\n ];\n }", "public function permissions() {\n return $this->belongsToMany(Permission::class);\n }", "public function data() {\r\n return [\r\n 'id' => DataTypes::INTEGER,\r\n 'username' => DataTypes::STRING,\r\n 'password' => DataTypes::STRING,\r\n 'email' => DataTypes::STRING,\r\n 'groupId' => DataTypes::INTEGER,\r\n 'twoFAEnabled' => DataTypes::BOOLEAN,\r\n 'authyId' => DataTypes::INTEGER,\r\n 'registered' => DataTypes::TIMESTAMP,\r\n 'lastVisit' => DataTypes::TIMESTAMP,\r\n 'discordId' => DataTypes::STRING,\r\n 'verified' => DataTypes::BOOLEAN,\r\n 'emailToken' => DataTypes::STRING,\r\n 'aboutMe' => DataTypes::STRING,\r\n 'discordName' => DataTypes::STRING\r\n ];\r\n }", "public function attributes()\n {\n // add related fields to searchable attributes\n return array_merge(parent::attributes(), ['idPeserta.nama_lengkap']);\n }", "public function getForeignKeys(){\n \n }", "public function initialize() {\n\n // Relation to DasUsers\n $this->belongsTo('id', 'Aiden\\Models\\DasUsers', 'users_id', ['alias' => 'DasUsers']);\n\n // Relation to Phrases\n $this->hasMany('id', 'Aiden\\Models\\UsersPhrases', 'users_id', [\"alias\" => \"Phrases\"]);\n\n // Relation to Das\n $this->hasManyToMany('id', 'Aiden\\Models\\DasUsers', 'users_id', 'das_id', 'Aiden\\Models\\Das', 'id', ['alias' => 'Das']);\n\n // Relation to Councils\n $this->hasManyToMany('id', 'Aiden\\Models\\UsersCouncils', 'users_id', 'councils_id', 'Aiden\\Models\\Councils', 'id', ['alias' => 'Councils']);\n\n }", "public function permissions()\n {\n return $this->belongsToMany('MDH\\Permissions\\Permission')->withTimestamps();\n }", "public function attributes(){\n // note the 'user_id','question_id' are optionals\n //return $this->belongsToMany(Question::class,'favorites','user_id','question_id')->withTimestamps();\n // favorites the data base table (\n #return $this->belongsToMany(Attribute::class,'products__attributes')->withTimestamps();\n return $this->belongsToMany(Attribute::class,'products__attributes')->withTimestamps();\n }", "public function fill()\n {\n $relationships = $this->relationships;\n $modelRelations = $this->loadRequiredRelationships();\n\n return collect($relationships)->transform(function($relations, $key) use($modelRelations) {\n $merge = array_get($modelRelations, $key);\n return $merge ? $this->mergeRelations($merge, $relations) : $relations;\n })->all();\n }", "public function clean()\n {\n\n $this->model = null;\n $this->value = null;\n $this->attribute = null;\n $this->data = [];\n\n $this->fkTable = null;\n\n $this->fkQuery = null;\n $this->fkAndQuery = null;\n $this->fkOrQuery = null;\n\n }", "public function usuarios(){\n return $this->belongsToMany('App\\Usuarios','perfiles_usuarios','perfil_fk_pu', 'usuario_fk_pu');\n }", "function protected_attributes() {\n\t\treturn array();\n\n\t}", "public function fields()\n {\n return array_merge(\n parent::fields(),\n [\n 'storeId' => function ($model) {\n return (string)$model->storeId;\n },\n 'phone', 'badge', 'name', 'gender', 'birthday','channel','qrcodeUrl',\n 'isActivated' => function ($model) {\n $status = $model->isActivated ? 'ENABLE' : 'DISABLE';\n return $status;\n },\n 'accountId' => function ($model) {\n return (string) $model->accountId;\n },\n 'createdAt' => function ($model) {\n return MongodbUtil::MongoDate2String($model->createdAt, 'Y-m-d H:i:s');\n },\n ]\n );\n }", "public function bBiodata()\n {\n return $this->belongsToMany('App\\Biodata');\n }", "public function getLazyRelationshipsAttribute()\n {\n return ['photo', 'user'];\n }", "public function testFillableAtribute()\n {\n $fillable = ['name','description','is_active'];\n $this->assertEquals($fillable, $this->category->getFillable());\n }", "public function initialize()\n {\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', array('alias' => 'Cargaestudiantes'));\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', array('alias' => 'Datosprofesiona'));\n $this->hasMany('id_niveldinst', 'Cargaestudiantes', 'id_niveldinst', NULL);\n $this->hasMany('id_niveldinst', 'Datosprofesiona', 'nive_instr', NULL);\n }", "public function initialize()\n {\n $this->hasMany('id', 'Message', 'idFil', array('alias' => 'Message'));\n $this->belongsTo('idFil', 'Message', 'id', array('alias' => 'Message'));\n $this->belongsTo('idProjet', 'Projet', 'id', array('alias' => 'Projet'));\n $this->belongsTo('idUser', 'User', 'id', array('alias' => 'User'));\n }", "public function attendances(){\n return $this->morphMany('App\\Models\\Attendance', 'attendable');\n }", "public function users(): MorphToMany\n {\n return $this->morphedByMany(\n getModelForGuard($this->attributes['guard_name']),\n 'model',\n config('acl.table_names.model_has_permissions'),\n 'permission_id',\n 'model_id'\n );\n }", "public function borrow()\n {\n return $this->belongsToMany('App\\Borrow');\n }", "abstract protected function getModelAttributes();", "public function initialize()\n {\n $this->belongsTo(\"hotel_id\", \"Hotels\", \"id\");\n $this->belongsTo(\"user_id\", \"User\", \"id\");\n $this->hasMany(\"id\", \"Transaction\", \"reservation_id\");\n }", "public function beforeSave()\n {\n foreach ($this->relations as $rel) {\n if ($this->_settings[$rel['name']][0] === CActiveRecord::MANY_MANY ||\n $this->_settings[$rel['name']][0] === CActiveRecord::HAS_MANY\n ) {\n foreach ($this->owner->$rel['name'] as $m) {\n $m->save();\n }\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::HAS_ONE) {\n $this->owner->{$rel['name']}->save();\n } elseif ($this->_settings[$rel['name']][0] === CActiveRecord::BELONGS_TO) {\n if ($this->owner->$rel['name'] === null) {\n // Set link ID attribute of owner model as null.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], null);\n } else {\n // Save related model.\n $this->owner->{$rel['name']}->save();\n // Set link ID attribute of owner model as new relation ID.\n $this->owner->setAttribute($this->_settings[$rel['name']][2], $this->owner->{$rel['name']}->id);\n }\n }\n }\n }", "public function permissions()\n {\n return $this->belongsToMany(Permission::class);\n }", "public function permissions()\n {\n return $this->belongsToMany(Permission::class);\n }", "public function permissions()\n {\n return $this->belongsToMany(Permission::class);\n }", "public function permissions()\n {\n return $this->belongsToMany(Permission::class);\n }", "public function permissions()\n {\n return $this->belongsToMany(Permission::class);\n }", "public function permissions()\n {\n return $this->belongsToMany(Permission::class);\n }", "public function initialize()\n {\n $this->hasMany('cd_desconto', 'App\\Models\\PdvVendasHasItens', 'cd_desconto', array('alias' => 'PdvVendasHasItens'));\n $this->belongsTo('cd_caixa', 'App\\Models\\PdvCaixa', 'cd_caixa', array('alias' => 'PdvCaixa'));\n $this->belongsTo('cd_produto', 'App\\Models\\Produto', 'cd_produto', array('alias' => 'Produto'));\n $this->belongsTo('cd_unidade_negocio', 'App\\Models\\UnidadeNegocio', 'cd_unidade', array('alias' => 'UnidadeNegocio'));\n $this->belongsTo('cd_usuario_criacao', 'App\\Models\\Usuario', 'cd_usuario', array('alias' => 'Usuario'));\n }", "public function attributes()\n {\n\n return [\n 'name' => __('fields.name'),\n 'email' => __('fields.email'), \n 'phone' => __('fields.phone'),\n 'departure' => __('fields.departure'),\n 'adult' => __('fields.adult'),\n 'child' => __('fields.child'),\n 'comment' => __('fields.comment') \n ]; \n }", "public function beforeSave()\n {\n foreach ($this->fields as $f) {\n\n $post = !yii::$app->request->isConsoleRequest ? yii::$app->request->post($this->owner->shortClassName) : null;\n if ($post && isset($post[$f])) {\n if (is_array($post[$f])) {\n $this->owner->{$f} = ArrayHelper::merge((is_array($this->owner->{$f}) ? $this->owner->{$f} : []), $post[$f]);\n } else {\n $this->owner->{$f} = $post[$f];\n }\n }\n\n $data = $this->owner->{$f};\n if ($f == 'additional_data') {\n if (yii::$app->request->isConsoleRequest) {\n $defaultData['info'] = [\n 'triggered by console application'\n ];\n } else {\n $defaultData['info'] = [\n 'user' => (yii::$app->user->isGuest ? 'guest' : yii::$app->user->id),\n 'ip' => yii::$app->request->userIP,\n ];\n }\n $data = is_array($data) ? array_merge($defaultData, $data) : $defaultData;\n }\n $this->owner->{$f} = Json::encode($data);\n }\n }", "public function user()\n {\n //un perfil puede tener muchas usuarios\n return $this->hasMany(User::class);\n }", "public static function relations()\n {\n return [\n// 'gender' => ['Gender', 'gender'],\n// 'gender' => 'Gender',\n ];\n }", "public function users(): MorphToMany\n {\n return $this->morphedByMany(\n getModelForGuard($this->attributes['guard_name']),\n 'model',\n config('permission.table_names.model_has_permissions'),\n 'rbac_permission_id',\n 'model_id'\n );\n }", "public function useAllFields() {\n $this->__onlyFields = array();\n }", "protected function attributes() {\n\t $attributes = array();\n\t foreach(static::$table_fields as $field) {\n\t if(property_exists( $this, $field)) {\n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n }", "public function initialize()\n\t{\n\t\t$this->hasMany('id', 'Talon\\Models\\Users\\SuccessLogins', 'usersId', array(\n\t\t\t'alias' => 'successLogins',\n\t\t\t'foreignKey' => array(\n\t\t\t\t'message' => 'User cannot be deleted because he/she has activity in the system'\n\t\t\t)\n\t\t));\n\n\t\t$this->hasMany('id', 'Talon\\Models\\Users\\PasswordChanges', 'usersId', array(\n\t\t\t'alias' => 'passwordChanges',\n\t\t\t'foreignKey' => array(\n\t\t\t\t'message' => 'User cannot be deleted because he/she has activity in the system'\n\t\t\t)\n\t\t));\n\n\t\t$this->hasMany('id', 'Talon\\Models\\Users\\ResetPasswords', 'usersId', array(\n\t\t\t'alias' => 'resetPasswords',\n\t\t\t'foreignKey' => array(\n\t\t\t\t'message' => 'User cannot be deleted because he/she has activity in the system'\n\t\t\t)\n\t\t));\n\t}", "public function asignaturas()\n {\n \treturn $this->belongsToMany('App\\Asignatura');\n }", "public function attributes()\n {\n return [\n 'venue_id' => 'venue',\n 'image' => 'picture'\n ];\n }", "public function test_contains_valid_fillable_properties()\n {\n $m = new Category();\n $this->assertEquals([\n 'name',\n 'description',\n 'parent_id',\n 'slug',\n ], $m->getFillable());\n\n }", "public function attendingUsers(){\n return $this->morphToMany('App\\Models\\User', 'attendable','attendances');\n }", "public function testFillable()\n {\n $fillable = ['name', 'description', 'is_active'];\n $category = new Category();\n $this->assertEquals($fillable, $this->category->getFillable());\n }", "public function initialize()\n {\n $this->hasMany('informacion_id', 'Informacionadicional', 'informacion_id', array('alias' => 'Informacionadicional'));\n $this->belongsTo('informacion_adicionalId', 'Adicional', 'adicional_id', array('alias' => 'Adicional'));\n }", "public function attributes(){\n return [\n 'emp_fk_parroquia' =>'Código de parroquia',\n 'emp_direccion' =>'Direción de la empresa',\n 'emp_nombre' =>'Nombre de la empresa',\n 'emp_identificador' =>'Identificador',\n 'emp_rif' =>'RIF',\n 'correos' =>'Correos',\n 'codigos' =>'Códigos de telefono',\n 'numeros' =>'Números telefonicos'\n ];\n }", "public function initialize()\n {\n $this->hasMany('id', 'AppCustomer', 'app_id', NULL);\n $this->hasMany('id', 'AppPrivileges', 'app_id', NULL);\n }", "public function buildRelations()\n\t{\n $this->addRelation('Aviso', 'Aviso', RelationMap::MANY_TO_ONE, array('aviso_id' => 'id', ), 'RESTRICT', null);\n $this->addRelation('Usuario', 'Usuario', RelationMap::MANY_TO_ONE, array('usuario_id' => 'id', ), 'RESTRICT', null);\n\t}", "public function prepAttributesForSave()\n\t{\n\t\t$attributes = $this->defineAttributes();\n\t\t$attributes['dateUpdated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\t\t$attributes['dateCreated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\n\t\tforeach ($attributes as $name => $config)\n\t\t{\n\t\t\t$config = ModelHelper::normalizeAttributeConfig($config);\n\t\t\t$value = $this->getAttribute($name);\n\n\t\t\t$this->setAttribute($name, ModelHelper::packageAttributeValue($config, $value, true));\n\t\t}\n\n\t\t// Populate dateCreated and uid if this is a new record\n\t\tif ($this->isNewRecord())\n\t\t{\n\t\t\t$this->dateCreated = DateTimeHelper::currentTimeForDb();\n\t\t\t$this->uid = StringHelper::UUID();\n\t\t}\n\n\t\t// Update the dateUpdated\n\t\t$this->dateUpdated = DateTimeHelper::currentTimeForDb();\n\t}" ]
[ "0.6327897", "0.6327897", "0.6327897", "0.6317412", "0.62754005", "0.6249538", "0.6081913", "0.6081913", "0.6033346", "0.6033346", "0.59943455", "0.58496034", "0.5833483", "0.5791013", "0.5764882", "0.574683", "0.57228893", "0.565145", "0.56404066", "0.5621427", "0.5607205", "0.5585397", "0.55600494", "0.5429467", "0.54186136", "0.5414593", "0.54047394", "0.5390637", "0.53759474", "0.53708917", "0.5369603", "0.5363593", "0.5325541", "0.5317397", "0.53101355", "0.530502", "0.5302285", "0.52776295", "0.5276261", "0.52757204", "0.5256004", "0.5244761", "0.52378196", "0.52315027", "0.52264374", "0.52242565", "0.522424", "0.5220846", "0.5210036", "0.52095854", "0.5199953", "0.5198647", "0.51773727", "0.5173747", "0.51694435", "0.51692563", "0.5168797", "0.5164452", "0.5153503", "0.51525736", "0.5152012", "0.5145289", "0.5143199", "0.51323795", "0.51308537", "0.5126417", "0.512405", "0.5123764", "0.5119003", "0.51108855", "0.510927", "0.510437", "0.5102944", "0.51003075", "0.50988376", "0.5092104", "0.5088299", "0.5088299", "0.5088299", "0.5088299", "0.5088299", "0.5088299", "0.5087928", "0.50762", "0.5062356", "0.50619227", "0.5061621", "0.5060381", "0.5058134", "0.5057944", "0.50561124", "0.5051952", "0.5048054", "0.5047426", "0.50442964", "0.5042551", "0.5037431", "0.5037237", "0.50360876", "0.5030157", "0.50293154" ]
0.0
-1
ONLY EDIT AFTER THIS POINT Enqueue files fot the theme like CSS and JS files
function aesir_enqueue_files() { /** * Only load if on the website */ if (!is_admin()) { /** * Load the styles like this: * wp_enqueue_style( $handle, $src, $deps, $ver, $media ); */ wp_enqueue_style('main', AESIR_ASSETS_CSS . '/style.css', null, AESIR_CSS_VERSION); /** * Load the scripts like this: * wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); */ wp_enqueue_script('main', AESIR_ASSETS_JS . '/build.min.js', array('jquery'), AESIR_JS_VERSION, true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uni_files(){\n // wp_enqueue_script('uni-main-js', get_theme_file_uri('/js/scripts-bundled.js'), NULL, '1.0', true);\n wp_enqueue_script('uni-main-js', get_theme_file_uri('/js/scripts-bundled.js'), NULL, microtime(), true);\n // wp_enqueue_style('uni_main_styles', get_stylesheet_uri());\n wp_enqueue_style('uni_main_styles', get_stylesheet_uri(), NULL, microtime());\n wp_enqueue_style('custom_google_font','//fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700,700i|Roboto:100,300,400,400i,700,700i');\n wp_enqueue_style('font-awesome','//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');\n }", "function massively_theme_assets() {\n\n\t\t$var = '1.0.0';\n\n\t\t/* CSS */\n\t\twp_enqueue_style( 'main-css', get_theme_file_uri('/assets/css/main.css'), '', $var );\n\t\twp_enqueue_style( 'noscript-css', get_theme_file_uri('/assets/css/noscript.css'), '', $var );\n\t\twp_enqueue_style( 'theme-css', get_stylesheet_uri(), '', $var );\n\n\t\t/* JavaScripts */\n\t\twp_enqueue_script( 'jquery' );\n\t\twp_enqueue_script( 'scrollex-js', get_theme_file_uri('/assets/js/jquery.scrollex.min.js'), '', $var );\n\t\twp_enqueue_script( 'scrolly-js', get_theme_file_uri('/assets/js/jquery.scrolly.min.js'), '', $var );\n\t\twp_enqueue_script( 'browser-js', get_theme_file_uri('/assets/js/browser.min.js'), '', $var );\n\t\twp_enqueue_script( 'breakpoints-js', get_theme_file_uri('/assets/js/breakpoints.min.js'), '', $var );\n\t\twp_enqueue_script( 'util-js', get_theme_file_uri('/assets/js/util.js'), '', $var );\n\t\twp_enqueue_script( 'main-js', get_theme_file_uri('/assets/js/main.js'), array('jquery'), $var, true );\n\t}", "function escort_files() {\n wp_enqueue_script('adding-js', get_theme_file_uri('/script.js'), array(), false, true );\n wp_register_style('add-bx-css1', get_stylesheet_directory_uri() . '/css/style.css', array(), '1', 'all');\n wp_register_style('add-bx-css2', get_stylesheet_directory_uri() . '/css/bootstrap.css', array(), '1', 'all');\n wp_register_style('add-bx-css3', get_stylesheet_directory_uri() . '/css/flexslider.css', array(), '1', 'all');\n wp_register_style('add-bx-css4', get_stylesheet_directory_uri() . '/css/popuo-box.css', array(), '1', 'all');\n wp_register_style('font-awesome', get_stylesheet_directory_uri() . '/css///netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', array(), '1', 'all');\n\n /* wp_enqueue_script('add-bx-js1');\n wp_enqueue_script('add-bx-js2');\n wp_enqueue_script('add-bx-js3');\n wp_enqueue_script('add-bx-js4');\n wp_enqueue_script('add-bx-js5');\n wp_enqueue_script('add-bx-js6');*/\n wp_enqueue_style('add-bx-css1');\n wp_enqueue_style('add-bx-css2');\n wp_enqueue_style('add-bx-css3');\n wp_enqueue_style('add-bx-css4');\n wp_enqueue_style('font-awesome');\n}", "function assets() {\n\t\tif ( ! is_admin() ) {\n\t\t\twp_enqueue_style( '_yourthemename-style', get_theme_file_uri( '/dist/css/bundle.css' ), array(), _YOURTHEMENAME_VER );\n\n\t\t\twp_deregister_script( 'jquery' );\n\t\t\twp_enqueue_script( '_yourthemename-scripts', get_theme_file_uri( '/dist/js/bundle.min.js' ), array(), _YOURTHEMENAME_VER, true );\n\t\t}\n\t\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\twp_enqueue_script( 'comment-reply' );\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 theme_files() {\n \n wp_register_style('style', get_template_directory_uri() . '/dist/app.css', [], 1, 'all');\n wp_enqueue_style('style');\n\n wp_enqueue_script('jquery');\n\n wp_register_script('app', get_template_directory_uri() . '/dist/app.js', ['jquery'], 1, true);\n wp_enqueue_script('app');\n}", "function theme_assets() {\n\t// load css\n\twp_enqueue_style( 'font-awesome-css', get_template_directory_uri() . '/css/fontawesome.css' );\n\twp_enqueue_style( 'bootstrap-css', get_template_directory_uri() . '/css/bootstrap.css' );\n\twp_enqueue_style( 'style-css', get_template_directory_uri() . '/style.css', false, time() );\n\n\t// load javascript\n\twp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '', true );\n wp_enqueue_script( 'waterfall-js', get_template_directory_uri() . '/js/waterfall.js', array(), '', true );\n\twp_enqueue_script( 'main', get_template_directory_uri() . '/js/main.js', array(), '', true);\n}", "function themeslug_enqueue_script() {\n}", "function kesha_theme_scripts() {\n\n // Register Custom CSS\n wp_register_style( 'theme', get_template_directory_uri() . '/dist/css/built.min.css', array(), rand(111,9999), 'all' );\n\n // Enqueue Styles\n wp_enqueue_style( 'theme' );\n\n // Register JS.\n wp_register_script( 'scripts', get_template_directory_uri() . '/dist/js/built.min.js', array( 'jquery' ), rand(111,9999), TRUE );\n\n // Enqueue JS\n wp_enqueue_script( 'scripts' );\n}", "function wpdocs_theme_name_scripts() {\n wp_enqueue_style('pva-style', get_stylesheet_uri());\n wp_enqueue_style('pva-bootstrap', get_stylesheet_directory_uri() . '/css/bootstrap.min.css', array(), '1.0.0', 'all');\n wp_enqueue_script('pva-script', get_template_directory_uri() . '/js/sitescript.js', array(), '1.0.0', true);\n}", "public function adminThemeStylesAndScripts()\n {\n wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.admin.min.css', array());\n wp_enqueue_style('my-admin-theme', get_template_directory_uri() . '/includes/snv/Theme/admin/style.css');\n wp_enqueue_script('my-admin-script', get_template_directory_uri() . '/includes/snv/Theme/admin/script.js', array('jquery'), '1.0', true);\n\n // for the contactonfo page\n wp_enqueue_script('media-upload');\n wp_enqueue_script('thickbox');\n wp_enqueue_style('thickbox');\n }", "function uwmadison_frontend_assets() {\n\n\t\t// enqueue fonts CSS\n\t\t$use_verlag = get_theme_mod( 'uwmadison_use_official_uw_type', false ); \n\t\t$production_type = get_theme_mod( 'uwmadison_type_production', false ); \n\t\tif ( $use_verlag ) { \n\t\t\tif ( $production_type ) {\n\t\t\t\t// production fonts\n\t\t\t\t// TODO: Enqueu final production CloudTypography CSS link\n\t\t\t\twp_enqueue_style( 'uwmadison-production-fonts', 'https://cloud.typography.com/6462674/7207552/css/fonts.css', array(), '2.0.0' );\n\t\t\t} else {\n\t\t\t\t// development fonts\n\t\t\t\twp_enqueue_style( 'uwmadison-dev-fonts', 'https://cloud.typography.com/6462674/6639152/css/fonts.css', array(), '2.0.0' );\n\t\t\t}\n\t\t}\n\n\t\twp_enqueue_script( 'uwmadison-theme', get_template_directory_uri().'/js/uwmadison-theme.min.js', array('jquery'), '2.0.0', TRUE );\n\n\t\t// enqueue CSS based om environment; defaults to minified\n\t\t// uncomment the line below if you want unminified CSS\n\t\t// Define WP_ENV in wp-config.php to be \"development\" if \n\t\t// you want sourcemapped CSS\n\t\t$css_file = \"style.min.css\";\n\t\t// $css_file = \"style.css\";\n\t\tif ( defined('WP_ENV') && WP_ENV == \"development\") {\n\t\t\t$css_file = \"style-sourcemapped.css\";\n\t\t}\n\t\twp_enqueue_style( 'uwmadison-theme', get_template_directory_uri().\"/$css_file\", array(), '2.0.0' );\n\n\t\tif ( get_theme_mod( 'uwmadison-lightbox-images', true ) ) {\n\t\t\twp_enqueue_script( 'uwmadison-lightbox', get_template_directory_uri().'/js/uwmadison-lightbox.min.js', array('jquery'), '2.0.0', TRUE );\n\t\t\twp_enqueue_style( 'uwmadison-lightbox', get_template_directory_uri().'/css/uwmadison-lightbox.min.css', array('uwmadison-theme'), '2.0.0' );\n\t\t}\n\t\t\n\t\twp_enqueue_style( 'uwmadison-theme-print', get_template_directory_uri().\"/css/print.css\", array(), '2.0.0', 'print' );\n\n\t}", "function wagw_scripts() {\n\t\t$theme = wp_get_theme();\n\t\t$ver = $theme->get( 'Version' );\n\t$themecsspath = get_stylesheet_directory() . '/style.css';\n\t$style_ver = filemtime( $themecsspath );\n\twp_enqueue_style( 'wagw-style', get_stylesheet_uri(),array(),$style_ver );\n\n\twp_enqueue_script( 'wagw-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );\n\n\twp_enqueue_script( 'wagw-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\n\twp_enqueue_script( 'thickbox', true );\n\twp_enqueue_style( 'thickbox' );\n\n\tif ( is_page_template( 'slider-page.php' ) ) {\n\t\twp_enqueue_style( 'flexslider-css', get_stylesheet_directory_uri() . '/flexslider/flexslider.css' );\n\t}\n\n}", "function nameless_sheep_scripts() {\n\t\t// Get the theme data.\n\t\t$the_theme = wp_get_theme();\n\t\t$theme_version = $the_theme->get( 'Version' );\n\n\t\t$css_version = $theme_version . '.' . filemtime( get_template_directory() . '/css/theme.min.css' );\n\t\twp_enqueue_style( 'nameless_sheep-styles', get_template_directory_uri() . '/css/theme.min.css', array(), $css_version );\n\n\t\twp_enqueue_script( 'jquery' );\n\t}", "public function enqueue_files ()\n\t{\n\t\t// Flowdrive\n\t\twp_register_style( 'flowdrive_admin_css', plugin_dir_url( __DIR__ ) . 'assets/css/flowdrive-admin.css', false, $this->version );\n\t\twp_enqueue_style( 'flowdrive_admin_css' );\n\t\t\n\t\t// wp_enqueue_script( $this, plugin_dir_url( __FILE__ ) . 'js/cloudoki-smmp-admin.js', array( 'jquery' ), $this->version, false );\n\t\t\n\t\t// Chosen\n\t\twp_register_style( 'chosen_admin_css', plugin_dir_url( __DIR__ ) . '../vendor/drmonty/chosen/css/chosen.min.css', false, $this->version );\n\t\twp_enqueue_style( 'chosen_admin_css' );\n\t\t\n\t\twp_register_script( 'chosen_admin_js', plugin_dir_url( __DIR__ ) . '../vendor/drmonty/chosen/js/chosen.jquery.min.js', ['jquery'], $this->version );\n\t\twp_enqueue_script( 'chosen_admin_js' );\n\t\t\n\t\t// wp_enqueue_script( $this, plugin_dir_url( __DIR__ ) . '../vendor/drmonty/chosen/js/chosen.jquery.min.js', array( 'jquery' ), $this->version, false );\n\t}", "static function enqueue_scripts(){\n\t\tself::include_css();\n\t\tself::include_js();\n\t}", "function bwcr_enqueue(){\n wp_enqueue_style( 'bwcr-style', plugin_dir_url( __FILE__ ) . 'style.css', array(), filemtime(plugin_dir_path( __FILE__ ) . 'style.css'), false );\n wp_enqueue_script( 'bwcr-script', plugin_dir_url( __FILE__ ) . 'script.js', array(), filemtime(plugin_dir_path( __FILE__ ) . 'script.js'), false );\n wp_enqueue_style( 'font-awe', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', array(), '5.6.3', false );\n}", "function ahla_enqueue_assets()\n{\n\t// CSS\n\twp_enqueue_style( 'theme-style');\n\n\t// JS\n\twp_enqueue_script( 'skip-link-focus-fix');\n\n\t// comments\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\n\tdo_action( 'ahla_enqueue_assets' );\n}", "function theme_name_scripts() {\n\t\t// wp_enqueue_style( 'style-name', get_stylesheet_uri() );\n\t\twp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery.min.js', array(), '1.0.0', true );\n\t\twp_enqueue_script( 'retina.min', get_template_directory_uri() . '/js/retina.min.js', array(), '1.0.0', true );\n\t\twp_enqueue_script( 'isotope.pkgd.min', get_template_directory_uri() . '/js/isotope.pkgd.min.js', array(), '1.0.0', true );\n\t\twp_enqueue_script( 'jquery.magnific-popup.min', get_template_directory_uri() . '/js/jquery.magnific-popup.min.js', array(), '1.0.0', true );\n\t\twp_enqueue_script( 'jquery.mousewheel.min', get_template_directory_uri() . '/js/jquery.mousewheel.min.js', array(), '1.0.0', true );\n\t\twp_enqueue_script( 'jquery.tinycarousel.min', get_template_directory_uri() . '/js/jquery.tinycarousel.min.js', array(), '1.0.0', true );\n\t\twp_enqueue_script( 'jquery.lazylinepainter.min.js', get_template_directory_uri() . '/js/jquery.lazylinepainter.min.js', array(), '1.0.0', true );\n\t\tif ( is_page( 'contact' ) ){ wp_enqueue_script( 'jquery.gmap.min', get_template_directory_uri() . '/js/jquery.gmap.min.js', array(), '1.0.0', true ); }\n\t\twp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/scripts.js', array(), '1.0.0', true );\n\t}", "function cs_front_scripts_enqueue() {\n\tglobal $cs_theme_option;\n if (!is_admin()) {\n\t\twp_enqueue_style('style_css', get_template_directory_uri() . '/style.css');\n\t\twp_enqueue_style('widget_css', get_template_directory_uri() . '/css/widget.css');\n \t\tif ( $cs_theme_option['color_switcher'] == \"on\" ) {\n\t\t\twp_enqueue_style('color-switcher_css', get_template_directory_uri() . '/css/color-switcher.css');\n\t\t}\n \t\twp_enqueue_style('bootstrap_css', get_template_directory_uri() . '/css/bootstrap.min.css');\n \t\twp_enqueue_style('font-awesome_css', get_template_directory_uri() . '/css/font-awesome.css');\n\t\t// Register stylesheet\n \twp_register_style( 'ie6_css', get_template_directory_uri() . '/css/ie.css' );\n \t// Apply IE conditionals\n \t$GLOBALS['wp_styles']->add_data( 'ie6_css', 'conditional', 'lte IE 9' );\n\t\t$GLOBALS['wp_styles']->add_data( 'font-awesome-ie7_css', 'conditional', 'lte IE 9' );\n \t// Enqueue stylesheet\n \twp_enqueue_style( 'ie6_css' );\n\t\t\n\t\twp_enqueue_style( 'font-awesome-ie7_css' );\n \t\twp_enqueue_style( 'wp-mediaelement' );\n \t\t wp_enqueue_script('jquery');\n\t\t\twp_enqueue_script( 'wp-mediaelement' );\n\t\t\twp_enqueue_script('bootstrap_js', get_template_directory_uri() . '/scripts/frontend/bootstrap.min.js', '', '', true);\n\t\t\twp_enqueue_script('bscrolltofixed_js', get_template_directory_uri() . '/scripts/frontend/jquery-scrolltofixed.js', '', '', true);\n \t\t\twp_enqueue_script('jquery.nicescroll_js', get_template_directory_uri() . '/scripts/frontend/jquery.nicescroll.js', '0', '', true);\n\t\t\twp_enqueue_script('jquery.nicescrollpjus_js', get_template_directory_uri() . '/scripts/frontend/jquery.nicescroll.plus.js', '0', '', true);\n\t\t\twp_enqueue_script('functions_js', get_template_directory_uri() . '/scripts/frontend/functions.js', '0', '', true);\n \t\t\tif ( $cs_theme_option['style_rtl'] == \"on\"){\n\t\t\t\twp_enqueue_style('rtl_css', get_template_directory_uri() . '/css/rtl.css');\n \t\t\t}\n\t\t\tif \t($cs_theme_option['responsive'] == \"on\") {\n\t\t\t\techo '<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;\">';\n\t\t\t\twp_enqueue_style('responsive_css', get_template_directory_uri() . '/css/responsive.css');\n\t\t\t}\n }\n}", "function thesaasx_gutenberg_assets() {\n\n\tthesaasx_enqueue_assets();\n\n\twp_dequeue_style('thesaasx');\n\twp_enqueue_style( 'thesaasx-editor-bleed-fix', THE_PLUGIN_URL . 'assets/css/editor-bleed-fix.min.css' , false, '1.0', 'all' );\n}", "function theme_name_scripts() {\r\n //wp_enqueue_style( 'fonts', '//cloud.webtype.com/css/1b7cfdf0-9828-4ed8-b99b-ccab8b975185.css');\r\n\twp_enqueue_style( 'fonts', '//fast.fonts.net/cssapi/e64835e4-ce1a-486d-8414-bc9d3ec7ae11.css');\r\n\twp_enqueue_style( 'main-style', get_stylesheet_uri(), array(), strval(filemtime(get_template_directory().\"/style.css\")) );\r\n\twp_enqueue_script( 'main-script', get_template_directory_uri() . '/script.js', array('jquery'), '1.0.0', true );\r\n\twp_enqueue_script( 'touchswipe', get_template_directory_uri() . '/inc/jquery.touchSwipe.min.js', array('jquery'), '1.0.0', true );\r\n}", "public function enqueue_front_end_scripts() {}", "function elytra_scripts() {\n\n\t// Theme stylesheet.\n\twp_enqueue_style( 'elytra-style', get_stylesheet_uri() );\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}", "function theme_scripts() {\n\twp_enqueue_style( 'theme-style', get_stylesheet_uri(), array(), _S_VERSION );\n\t// wp_style_add_data( 'theme-style', 'rtl', 'replace' );\n\n\twp_enqueue_script( 'lib-jquery', get_template_directory_uri() . '/lib/jquery-3.3.1.min.js', array(), _S_VERSION, true );\n\twp_enqueue_script( 'common-script', get_template_directory_uri() . '/assets/js/script.js', array(), _S_VERSION, true );\n\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n}", "function forty_theme_assets() {\r\n\r\n\t$var = '1.0.0';\r\n\r\n\t/* CSS */\r\n\twp_enqueue_style( 'font-awesome', get_theme_file_uri('/assets/css/font-awesome.min.css'), null, $var );\r\n\twp_enqueue_style( 'google-font', '//fonts.googleapis.com/css?family=Merriweather:300,700,300italic,700italic|Source+Sans+Pro:900', null, $var );\r\n\twp_enqueue_style( 'main-css', get_theme_file_uri('/assets/css/main.css'), null, $var );\r\n\twp_enqueue_style( 'noscript-css', get_theme_file_uri('/assets/css/noscript.css'), null, $var );\r\n\twp_enqueue_style( 'theme-css', get_stylesheet_uri(), '', $var );\r\n\r\n\t/* JavaScripts */\r\n\twp_enqueue_script( 'jquery' );\r\n\twp_enqueue_script( 'scrollex-js', get_theme_file_uri('/assets/js/jquery.scrollex.min.js'), null, $var );\r\n\twp_enqueue_script( 'scrolly-js', get_theme_file_uri('/assets/js/jquery.scrolly.min.js'), null, $var );\r\n\twp_enqueue_script( 'browser-js', get_theme_file_uri('/assets/js/browser.min.js'), null, $var );\r\n\twp_enqueue_script( 'breakpoints-js', get_theme_file_uri('/assets/js/breakpoints.min.js'), null, $var );\r\n\twp_enqueue_script( 'util-js', get_theme_file_uri('/assets/js/util.js'), null, $var );\r\n\twp_enqueue_script( 'main-js', get_theme_file_uri('/assets/js/main.js'), array('jquery'), $var, true );\r\n\twp_enqueue_script( 'bootstrap-js', get_theme_file_uri('/assets/js/bootstrap.js'), array('jquery'), $var, true );\r\n\r\n\tif( is_singular() && comments_open() && ( get_option( 'thread_comments' ) == 1) ) {\r\n // Load comment-reply.js (into footer)\r\n wp_enqueue_script( 'comment-reply', 'wp-includes/js/comment-reply', array(), false, true );\r\n }\r\n}", "function enqueue_scripts() {\n\n\t\t//$the_theme = wp_get_theme();\n\t\t// Get the custom theme data.\n\t\twp_enqueue_style( 'styles', get_stylesheet_directory_uri() . '/css/screen.css', array(), '2.2.2' );\n\t\twp_enqueue_style( 'webfonts' , 'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:ital,wght@0,300;0,700;1,300&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap', array(), false);\n\n\t\t//wp_enqueue_script( 'jquery-last', get_template_directory_uri() . '/vendor/js/jquery-3.2.1.min.js', array(), '', true);\n\t\twp_enqueue_script( 'jquery-fancybox', get_template_directory_uri() . '/vendor/js/jquery.fancybox.min.js', array(), '', true);\n\t\twp_enqueue_script( 'swiper', get_template_directory_uri() . '/vendor/js/swiper.min.js', array(), '', true);\n\n\t\twp_enqueue_script( 'theme-scripts', get_template_directory_uri() . '/js/app.min.js', array('jquery', 'jquery-fancybox', 'swiper'), '2.0.1', true );\n\n\t\twp_localize_script( 'theme-scripts', 'config', array(\n\t\t\t'ajax_url'\t=>\tadmin_url('admin-ajax.php'),\n\t\t\t'site_url'\t=>\tget_bloginfo( 'url' ),\n\t\t\t'theme_url'\t=>\tget_bloginfo( 'template_url' ),\n\t\t));\n\n\t}", "function add_theme_scripts() {\n wp_enqueue_style( 'main_style_file', get_stylesheet_uri());\n /********** Including all.min css file ***********/\n wp_enqueue_style( 'minified_file', get_template_directory_uri() .'/css/all.min.css', array(), '1.1', 'all');\n /********** Including style css file ***********/\n wp_enqueue_style( 'style', get_template_directory_uri() .'/css/style.css', array(), '1.1', 'all');\n /********* Including bootstrap file ************/ \n wp_enqueue_style( 'bootstrap_file', get_template_directory_uri() .'/css/bootstrap.min.css', array (),'1.1', 'all'); \n //********* Including script files ************/\n wp_enqueue_script( $handle, get_template_directory_uri().'/js/bootstrap.min.js', array(), '1.1' , true ); \n}", "function karmic_scripts() {\n // Get the theme data.\n $the_theme = wp_get_theme();\n $theme_version = $the_theme->get( 'Version' );\n \n $css_version = $theme_version . '.' . filemtime( KARMIC_THEMEROOT . '/assets/css/main.min.css' );\n wp_enqueue_style( 'karmic-styles', KARMIC_THEME_DIR . '/assets/css/main.min.css', array(), $css_version );\n \n wp_deregister_script( 'jquery' );\n \n $js_version = $theme_version . '.' . filemtime( KARMIC_THEMEROOT . '/assets/js/main.min.js' );\n wp_enqueue_script( 'jquery', 'https://code.jquery.com/jquery-3.4.1.min.js', '', '3.4.1', true );\n wp_enqueue_script( 'karmic-scripts', KARMIC_THEME_DIR . '/assets/js/main.min.js', array(), $js_version, true );\n wp_enqueue_script( 'vendor-scripts', KARMIC_THEME_DIR . '/assets/js/vendors.min.js', array(), $js_version, true );\n wp_enqueue_script( 'fontawesome', KARMIC_THEME_DIR . '/assets/js/all.min.js', array(), '5.11.2', true );\n \n if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n wp_enqueue_script( 'comment-reply' );\n }\n }", "function portfolio_theme_assets(){\n wp_enqueue_style( \"bootstrap\", get_theme_file_uri( \"/vendor/bootstrap/css/bootstrap.min.css\", null, version ));\n wp_enqueue_style( \"font_awesome\", get_theme_file_uri( \"/vendor/font-awesome/css/font-awesome.min.css\", null, version ));\n\n wp_enqueue_style( \"font_monsterrat\", \"//fonts.googleapis.com/css?family=Montserrat:400,700\", null, version );\n wp_enqueue_style( \"font_kaushan\", \"//fonts.googleapis.com/css?family=Kaushan+Script\", null, version );\n wp_enqueue_style( \"font_dorid\", \"//fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic\", null, version );\n wp_enqueue_style( \"font_roboto\", \"//fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700\", null, version );\n wp_enqueue_style( \"agency_css\", get_theme_file_uri( \"/css/agency.css\", null, version ));\n wp_enqueue_style( \"style_css\", get_stylesheet_uri(), null, version );\n\n\n wp_enqueue_script('agency_jquey', get_theme_file_uri( \"/vendor/jquery/jquery.min.js\" ));\n wp_enqueue_script( \"jquery_easing_js\", get_theme_file_uri(\"/vendor/jquery-easing/jquery.easing.min.js\"), array('agency_jquey'), null, true );\n\n wp_enqueue_script( \"bootstap_js\", get_theme_file_uri(\"/vendor/bootstrap/js/bootstrap.bundle.min.js\"), array('agency_jquey'), null, true );\n \n wp_enqueue_script( \"B_validation_js\", get_theme_file_uri(\"/js/jqBootstrapValidation.js\"), array('agency_jquey'), null, true );\n wp_enqueue_script( \"contact_js\", get_theme_file_uri(\"/js/contact_me.js\"), array('agency_jquey'), null, true );\n\n wp_enqueue_script( \"agency_js\", get_theme_file_uri(\"/js/agency.min.js\"), array('agency_jquey'), null, true );\n\n }", "function aurum_wp_enqueue_scripts() {\n\t// Styles\n\t$rtl_include = '';\n\n\twp_enqueue_style( 'icons-entypo' );\n\twp_enqueue_style( 'icons-fontawesome' );\n\twp_enqueue_style( 'bootstrap' );\n\twp_enqueue_style( 'aurum-main' );\n\t\n\tif ( ! is_child_theme() ) {\n\t\twp_enqueue_style( 'style' );\n\t}\n\n\t// Right to left bootstrap\n\tif ( is_rtl() ) {\n\t\twp_enqueue_style( array( 'bootstrap-rtl' ) );\n\t}\t\n\n\t// Custom Skin\n\tif ( get_data( 'use_custom_skin' ) ) {\n\t\tif ( false == apply_filters( 'aurum_use_filebased_custom_skin', aurum_use_filebased_custom_skin() ) ) {\n\t\t\twp_enqueue_style( 'custom-skin', site_url( '?custom-skin=1' ), null, null );\n\t\t}\n\t}\n\n\t// Scripts\n\twp_enqueue_script( array( 'jquery', 'bootstrap', 'tweenmax' ) );\n}", "function wpdocs_theme_name_scripts() {\n // style sheets\n wp_enqueue_style( 'style', get_stylesheet_uri() );\n wp_enqueue_style( 'linearicons', get_template_directory_uri() . '/css/linearicons.css' );\n wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css');\n wp_enqueue_style( 'themify-icons', get_template_directory_uri() . '/css/themify-icons.css' );\n wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css' );\n wp_enqueue_style( 'owl.carousel', get_template_directory_uri() . '/css/owl.carousel.css');\n wp_enqueue_style( 'nice-select', get_template_directory_uri() . '/css/nice-select.css');\n wp_enqueue_style( 'nouislider', get_template_directory_uri() . '/css/nouislider.min.css');\n wp_enqueue_style( 'ion-rangeSlider', get_template_directory_uri() . '/css/ion.rangeSlider.css');\n wp_enqueue_style( 'ion-rangeSlider-skinFlat', get_template_directory_uri() . '/css/ion.rangeSlider.skinFlat.css');\n wp_enqueue_style( 'magnific-popup', get_template_directory_uri() . '/css/magnific-popup.css');\n wp_enqueue_style( 'main', get_template_directory_uri() . '/css/main.css');\n\n // scripts\n\n wp_enqueue_script( 'jquery-2.2.4', get_template_directory_uri() . '/js/vendor/jquery-2.2.4.min.js', true );\n wp_enqueue_script( 'popper', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js', true );\n wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/vendor/bootstrap.min.js', true );\n wp_enqueue_script( 'jquery.ajaxchimp', get_template_directory_uri() . '/js/jquery.ajaxchimp.min.js', true );\n wp_enqueue_script( 'jquery.nice-select', get_template_directory_uri() . '/js/jquery.nice-select.min.js', true );\n wp_enqueue_script( 'jquery.sticky', get_template_directory_uri() . '/js/jquery.sticky.js', true );\n wp_enqueue_script( 'nouislider', get_template_directory_uri() . '/js/nouislider.min.js', true );\n wp_enqueue_script( 'countdown', get_template_directory_uri() . '/js/countdown.js', true );\n wp_enqueue_script( 'jquery.magnific-popup', get_template_directory_uri() . '/js/jquery.magnific-popup.min.js', true );\n wp_enqueue_script( 'owl.carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', true );\n // js gmap\n wp_enqueue_script( 'google-maps','https://maps.googleapis.com/maps/api/js?key=AIzaSyCjCGmQ0Uq4exrzdcL6rvxywDDOvfAu6eE', true );\n wp_enqueue_script( 'gmaps', get_template_directory_uri() . '/js/gmaps.min.js', true );\n wp_enqueue_script( 'main', get_template_directory_uri() . '/js/main.js', true );\n \n\n}", "function admin_enqueue_scripts()\n {\n }", "function startertheme_enqueue_files() {\n wp_enqueue_script('startertheme_scripts', get_theme_file_uri('/assets/dist/js/frontend/app.js'), NULL, '1.0', true);\n wp_enqueue_style('startertheme_style', get_theme_file_uri('/assets/dist/css/style.css'), NULL, '1.0');\n}", "public function theme_scripts() {\n\t\t$suffix = !TALEMY_DEV_MODE ? '.min' : '';\n\n\t\t// stylesheets\n\t\twp_register_style(\n\t\t\t'font-awesome-5-all',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/font-awesome/css/all.min.css',\n\t\t\tfalse,\n\t\t\t'5.10.1'\n\t\t);\n\n\t\twp_register_style(\n\t\t\t'font-awesome-5-shim',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/font-awesome/css/v4-shims.min.css',\n\t\t\tfalse,\n\t\t\t'5.10.1'\n\t\t);\n\t\t\n\t\twp_register_style(\n\t\t\t'fancybox',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/css/fancybox.min.css'\n\t\t);\n\n\t\twp_register_style(\n\t\t\t'talemy',\n\t\t\tTALEMY_THEME_URI . 'assets/css/style'. $suffix . '.css',\n\t\t\tfalse,\n\t\t\tTALEMY_THEME_VERSION\n\t\t);\n\n\t\twp_enqueue_style( 'font-awesome-5-all' );\n\t\twp_enqueue_style( 'font-awesome-5-shim' );\n\t\twp_enqueue_style( 'talemy' );\n\t\twp_style_add_data( 'talemy', 'rtl', 'replace' );\n\n\t\t// scripts\n\n \twp_register_script(\n \t\t'fancybox',\n \t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.fancybox.min.js',\n \t\tarray( 'jquery' ),\n \t\tTALEMY_THEME_VERSION,\n \t\ttrue\n \t);\n\n\t\twp_register_script(\n\t\t\t'jquery-fitvids',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.fitvids.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t'1.1',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'jquery-matchheight',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.matchHeight.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t'0.7.0',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'jquery-placeholder',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.placeholder.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t'2.3.1',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'jquery-requestanimationframe',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.requestanimationframe.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t'0.2.3',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'jquery-selectric',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.selectric.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t'1.13.0',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'jquery-superfish',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.superfish.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t'1.7.10',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'jquery-throttle-debounce',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/jquery.throttle-debounce.min.js',\n\t\t\tarray( 'jquery' ),\n\t\t\t'1.1',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'resize-sensor',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/ResizeSensor.min.js',\n\t\t\tarray(),\n\t\t\tnull,\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'theia-sticky-sidebar',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/theia-sticky-sidebar.min.js',\n\t\t\tarray( 'jquery', 'resize-sensor' ),\n\t\t\t'1.7.0',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'talemy-modernizr',\n\t\t\tTALEMY_THEME_URI . 'assets/lib/js/modernizr.js',\n\t\t\tarray(),\n\t\t\t'3.6.0',\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'talemy-block',\n\t\t\tTALEMY_THEME_URI . 'assets/js/talemy-block.min.js',\n\t\t\tarray( 'jquery', 'imagesloaded', 'jquery-matchheight' ),\n\t\t\tTALEMY_THEME_VERSION,\n\t\t\ttrue\n\t\t);\n\n\t\twp_register_script(\n\t\t\t'talemy',\n\t\t\tTALEMY_THEME_URI . 'assets/js/talemy' . $suffix . '.js',\n\t\t\tarray(\n\t\t\t\t'jquery',\n\t\t\t\t'imagesloaded',\n\t\t\t\t'jquery-fitvids',\n\t\t\t\t'jquery-superfish',\n\t\t\t\t'jquery-selectric',\n\t\t\t\t'jquery-throttle-debounce',\n\t\t\t\t'jquery-requestanimationframe',\n\t\t\t\t'jquery-matchheight',\n\t\t\t\t'jquery-placeholder',\n\t\t\t\t'theia-sticky-sidebar',\n\t\t\t\t'talemy-modernizr'\n\t\t\t),\n\t\t\tTALEMY_THEME_VERSION,\n\t\t\ttrue\n\t\t);\n\n\t\twp_enqueue_script( 'jquery-fitvids' );\n\t\twp_enqueue_script( 'jquery-superfish' );\n\t\twp_enqueue_script( 'jquery-selectric' );\n\t\twp_enqueue_script( 'jquery-throttle-debounce' );\n\t\twp_enqueue_script( 'jquery-requestanimationframe' );\n\t\twp_enqueue_script( 'jquery-matchheight' );\n\t\twp_enqueue_script( 'jquery-placeholder' );\n\t\twp_enqueue_script( 'theia-sticky-sidebar' );\n\t\twp_enqueue_script( 'talemy-modernizr' );\n\t\twp_enqueue_script( 'talemy' );\n\t\twp_localize_script( 'talemy', 'talemy_js_data', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );\n\n\t\tif ( is_single() ) {\n\t\t\tif ( talemy_get_option( 'post_comments' ) && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t\t}\n\t\t\tif ( is_singular( 'sfwd-courses' ) ) {\n\t\t\t\twp_enqueue_style( 'fancybox' );\n\t\t\t\twp_enqueue_script( 'fancybox' );\n\t\t\t} else {\n\t\t\t\t$in_focus_mode = false;\n\t\t\t\tif ( class_exists( 'LearnDash_Settings_Section' ) ) {\n\t\t\t\t\t$in_focus_mode = LearnDash_Settings_Section::get_section_setting( 'LearnDash_Settings_Theme_LD30', 'focus_mode_enabled' );\n\t\t\t\t}\n\t\t\t\tif ( !$in_focus_mode && in_array( get_post_type(), array( 'sfwd-lessons', 'sfwd-topic' ) ) ) {\n\t\t\t\t\twp_enqueue_style( 'fancybox' );\n\t\t\t\t\twp_enqueue_script( 'fancybox' );\n\t\t\t\t}\n\t\t\t}\n\t\t} else if ( is_page() && !is_front_page() ) {\n\t\t\tif ( talemy_get_option( 'page_comments' ) && comments_open() && get_option( 'thread_comments' ) ) {\n\t\t\t\twp_enqueue_script( 'comment-reply' );\n\t\t\t}\n\t\t}\n\t}", "public function frontEndStyleScripts(): void\n {\n wp_enqueue_style('users-data-bootstrap', plugin_dir_url(dirname(__FILE__)) . 'assets/css/bootstrap.min.css', [], UsersListing::getVersion());\n wp_enqueue_style('users-data-fontawsome', plugin_dir_url(dirname(__FILE__)) . 'assets/css/font-awesome.min.css', [], UsersListing::getVersion());\n wp_enqueue_style('users-data-styles', plugin_dir_url(dirname(__FILE__)) . 'assets/css/users-data.css', [], UsersListing::getVersion());\n //\n wp_enqueue_script('jquery-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.min.js', ['jquery'], UsersListing::getVersion(), false);\n wp_enqueue_script('jquery-popper', plugin_dir_url(dirname(__FILE__)) . 'assets/js/popper.min.js', ['jquery'], UsersListing::getVersion(), false);\n wp_enqueue_script('bootstrap-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/bootstrap.min.js', ['jquery'], UsersListing::getVersion(), false);\n }", "function theme_scripts() {\n wp_enqueue_style('main', CSS . '/main.css');\n wp_enqueue_style('my', CSS . '/my.css');\n wp_enqueue_script('scripts', JS . '/main.js', array('jquery'), null, true);\n }", "function wptheme_script_enqueue () {\n //CSS\n wp_enqueue_style('bootstrap', get_template_directory_uri() . 'css/bootstrap.min.css', array() , '3.3.6', 'all');\n wp_enqueue_style('customstyle', get_template_directory_uri() . 'css/style.css', array() , '1.0.0', 'all');\n //JS\n wp_enqueue_script('jquery');\n wp_enqueue_script('bootstrapjs', get_template_directory_uri() . 'js/bootstrap.min.js', array(), '3.3.6', true); \n wp_enqueue_script('customjs', get_template_directory_uri() . 'js/wptheme.js', array(), '1.0.0', true);\n}", "function wm_customizer_preview_enqueue_assets() {\n $ctime = filemtime( get_template_directory() . '/customizer/css/wm-customizer-preview.css' );\n wp_enqueue_style( 'wm-customizer-preview-css', get_template_directory_uri() . '/customizer/css/wm-customizer-preview.css', array(), $ctime );\n $ctime = filemtime( get_template_directory() . '/customizer/js/wm-customizer-preview.js' );\n wp_enqueue_script( 'wm-customizer-preview-js', get_template_directory_uri() . '/customizer/js/wm-customizer-preview.js', array( 'jquery' ), $ctime, true );\n }", "function m59_theme_enqueue_scripts() {\n\t\t\t\t// javascript\n\t\t\t\twp_enqueue_script('jquery');\n\t\t\t\t//wp_enqueue_script('lazyload', get_stylesheet_directory_uri().'/js/jquery.lazyload.min.js','','',true);\n\t\t\t\tif(ENVIRONMENT != 'dev'){\n\t\t\t\t\twp_enqueue_style( 'live', get_stylesheet_directory_uri().'/styles/live.css', array());\n\t\t\t\t\twp_enqueue_script('jquery.site', get_stylesheet_directory_uri().'/js/live.js', 'jQuery',true);\n\n\t\t\t\t}else{\n\t\t\t\t\twp_enqueue_style( 'dev', get_stylesheet_directory_uri().'/styles/live.css');\n\t\t\t\t\twp_enqueue_script('jquery.site', get_stylesheet_directory_uri().'/js/live.js', 'jQuery','',true);\n\t\t\t\t}\n\t}", "function enqueueFiles()\n{\n wp_enqueue_style('style', get_stylesheet_uri(), array(), '1.22');\n wp_enqueue_script('script', get_template_directory_uri() . '/assets/js/custom.js', array(), '1.22');\n}", "public function enqueue_scripts() {\r\n\r\n\t\t}", "function wpdocs_theme_name_scripts() {\n wp_enqueue_script( 'jquery' );\n wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/libs/bootstrap/js/bootstrap.min.js', array(), '1.0.0', true );\n wp_enqueue_script( 'magnific-popup', get_template_directory_uri() . '/libs/magnific/jquery.magnific-popup.min.js', array(), '1.0.0', true );\n wp_enqueue_script( 'owl', get_template_directory_uri() . '/libs/owlcarousel/owl.carousel.min.js', array(), '1.0.0', true );\n wp_enqueue_script( 'isotope', get_template_directory_uri() . '/libs/isotope.pkgd.min.js', array(), '1.0.0', true );\n wp_enqueue_script( 'imagesloaded', get_template_directory_uri() . '/libs/imagesloaded.pkgd.min.js', array(), '1.0.0', true );\n wp_enqueue_script( 'commonn', get_template_directory_uri() . '/js/common.js', array(), '1.0.0', true );\n\n\n\n wp_enqueue_style('bootstrap', get_template_directory_uri() . '/libs/bootstrap/css/bootstrap.min.css');\n wp_enqueue_style('magnific-popup', get_template_directory_uri() . '/libs/magnific/magnific-popup.css');\n wp_enqueue_style('font-awesome', get_template_directory_uri() . '/libs/font-awesome/css/font-awesome.min.css');\n wp_enqueue_style('owl.carousel', get_template_directory_uri() . '/libs/owlcarousel/assets/owl.carousel.min.css');\n wp_enqueue_style('owl.theme', get_template_directory_uri() . '/libs/owlcarousel/assets/owl.theme.default.min.css');\n wp_enqueue_style('mun_animate', get_template_directory_uri() . '/css/animate.css');\n wp_enqueue_style('mun_font', get_template_directory_uri() . '/css/font.css');\n wp_enqueue_style('mun_style', get_template_directory_uri() . '/css/style.css');\n wp_enqueue_style('mun_media', get_template_directory_uri() . '/css/media.css');\n wp_enqueue_style('mun_override', get_template_directory_uri() . '/css/override.css');\n\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}", "function enqueue() {\n wp_enqueue_style('frankluongo-plugin', plugins_url('/assets/frankluongo-plugin.css', __FILE__));\n wp_enqueue_script('frankluongo-plugin', plugins_url('/assets/frankluongo-plugin.js', __FILE__));\n }", "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}", "function load_theme_scripts() {\n\n // UCITAJ GOOGLE FONTOVE\n wp_enqueue_style( 'material-icons', 'http://fonts.googleapis.com/icon?family=Material+Icons');\n wp_enqueue_style( 'dosis-font', 'https://fonts.googleapis.com/css?family=Dosis:400,700&subset=latin,latin-ext');\n\n // UCITAJ CSS STILOVE\n // Dodaj Bootstrap 3 CSS >> Bootstrap framework CSS\n wp_enqueue_style( 'materialize', get_template_directory_uri() .'/css/materialize.css');\n\n // Dodaj SWIPER CSS\n wp_enqueue_style( 'swiper', get_template_directory_uri() .'/css/swiper/swiper.min.css');\n\n // Dodaj glavni Style CSS\n wp_enqueue_style( 'xception', get_stylesheet_uri() );\n\n // UCITAJ JAVASKRIPTE\n // Dodaj JQuery 1.11.3 JS\n wp_enqueue_script( 'theme-jquery', 'https://code.jquery.com/jquery-2.1.1.min.js', array(), '', true);\n\n // Dodaj Masonry\n wp_enqueue_script('masonry-js', get_template_directory_uri() .'/js/masonry/masonry.pkgd.min.js', array(),'theme-jquery', true);\n\n // Dodaj Materialize JS\n wp_enqueue_script('materialize-js', get_template_directory_uri() .'/js/materialize/materialize.min.js', array(),'theme-jquery', true);\n\n // Dodaj CLASSIE JS\n wp_enqueue_script( 'classie-js', get_template_directory_uri() .'/js/classie/classie.js', array(), 'theme-jquery', true);\n\n // Dodaj SWIPER JS\n wp_enqueue_script('swiper-js', get_template_directory_uri() .'/js/swiper/swiper.min.js', array(),'theme-jquery', true);\n\n // Add theme JS file\n wp_enqueue_script('xception-js', get_template_directory_uri() .'/js/theme.js', array(),'theme-jquery', true);\n\n }", "function artistpress_scripts() {\n\t\twp_enqueue_style( 'reset', get_template_directory_uri() . '/css/reset.css', array(), '2.0' );\n\t\twp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '3.3.7' );\n\t\twp_enqueue_style( 'main_style', get_template_directory_uri() . '/style.css' );\n\t\twp_enqueue_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js', array(), '1.11.3', true );\n\t\twp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '3.3.6', true );\n\t\twp_register_script( 'load', get_template_directory_uri() . '/js/load.js' );\n\n\t\t//localize params for use in load.js\n\t\t$theme_params = array(\n\t\t 'backround_image' => get_option('backround_image'),\n\t\t 'action_url' => get_option('action_url'),\n\t\t);\n\n\t\twp_localize_script( 'load', 'themeParams', $theme_params );\n\n\t\twp_enqueue_script( 'load', get_template_directory_uri() . '/js/load.js', array( 'jquery' ,'bootstrap'), '1', true );\n\t}", "function theme_scripts()\r\n{\r\n // Load Bootstrap\r\n\twp_enqueue_style( 'theme-bootstrap', get_theme_file_uri( '/assets/vendor/bootstrap/css/bootstrap.min.css' ));\r\n\t// Load Font-Awesome\r\n\twp_enqueue_style( 'theme-fontawesome', get_theme_file_uri( '/assets/vendor/font-awesome/css/all.min.css' ));\r\n // Theme stylesheet.\r\n\twp_enqueue_style( 'theme-style', get_stylesheet_uri() );\r\n}", "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 pentamint_wp_theme_scripts() {\n\t\t// Initiate Default Wordpress jQuery\n\t\twp_enqueue_script('jquery');\n\n\t\t// Bootstrap Support\n\t\twp_enqueue_script('popper.js', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js', array(), null, true);\n\t\twp_enqueue_script('bootstrap', 'https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js', array(), null, true);\n\n\t\t// Theme Custom\n\t\twp_enqueue_style('google-fonts', 'https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap', false);\n\t\twp_enqueue_style('nanum-fonts-nanumsquareround', 'https://cdn.rawgit.com/innks/NanumSquareRound/master/nanumsquareround.min.css', false);\n\t\twp_enqueue_style('animate.css', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css', true);\n\t\twp_enqueue_script('ofi-min-js', get_stylesheet_directory_uri() . '/js/ofi.min.js', array(), '3.2.4', true);\n\t\twp_enqueue_script('main-js', get_stylesheet_directory_uri() . '/js/main.js', array('jquery'), time(), true);\n\t}", "function admin_include_scripts() {\n\n\t\t\twp_register_style('wa_wcc_admin',get_template_directory_uri().'/plugin/collapse/assets/css/admin.css');\n\t\t\twp_enqueue_style('wa_wcc_admin');\n\n\t}", "function cam_enqueue_related_pages_scripts_and_styles(){\n // wp_enqueue_style('related-styles', plugins_url('/css/bootstrap.min.css', __FILE__));\n wp_enqueue_script('releated-script', plugins_url( '/js/custom.js' , __FILE__ ), array('jquery','jquery-ui-droppable','jquery-ui-draggable', 'jquery-ui-sortable'));\n }", "protected function enqueue_scripts()\n {\n\n }", "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 mightyResources() {\n $css_file = get_stylesheet_directory() . '/dist/assets/css/style.min.css';\n wp_enqueue_style('theme', get_stylesheet_directory_uri() . '/dist/assets/css/style.min.css', '', date('m.d.Y.H.i.s', filemtime($css_file)));\n\t\twp_dequeue_style('wp-block-library');\n\n wp_deregister_script('jquery');\n wp_register_script('jquery', ('//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js'), '', '2.2.4', false);\n wp_enqueue_script('jquery');\n\n // wp_enqueue_script('fontawesome-kit', '//kit.fontawesome.com/72e34829c8.js', '', '1.0', false);\n\t\twp_enqueue_script('google-maps', '//maps.googleapis.com/maps/api/js?key=AIzaSyClqC80DXd3luWXcJZ-a0odx1q6ddTDVr0', '', '1.0', false);\n\n\t\twp_enqueue_script('aos', '//unpkg.com/aos@2.3.1/dist/aos.js', '', '2.3.1', true);\n wp_enqueue_script('theme', get_stylesheet_directory_uri() . '/dist/assets/js/scripts.min.js', ['jquery'], '1.0.6', true);\n\n\t\twp_localize_script('theme', 'globalVar', array(\n\t\t 'themePath' => get_template_directory_uri(),\n\t\t));\n }", "function theme_setup_scripts() {\n wp_enqueue_script(\"main\", get_theme_file_uri('/assets/js/script.js'), NULL, '1.0', true);\n wp_register_style('styles', get_template_directory_uri() . '/assets/css/style.css', array(), 'microtime()', 'all');\n wp_enqueue_style('styles'); // Enqueue it!\n // --> Change microtime to version number (for example '1.1') before release!\n\n //Bootstrap\n wp_enqueue_style(\"bootstrap-stylesheet\", 'https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css');\n wp_enqueue_script(\"jquery\", 'https://code.jquery.com/jquery-3.5.1.min.js');\n wp_enqueue_script(\"jquery-form-plugin\", 'https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.3.0/jquery.form.min.js');\n wp_enqueue_script(\"bootstrap-popper\", 'https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js');\n wp_enqueue_script(\"bootstrap-js\", 'https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js');\n\n}", "function vacatures_single_style_scripts() {\n //wp_enqueue_style( 'vacatures-single-page-template-theme-style' );\n wp_enqueue_style('vacatures-single-page-template-theme-style',content_url( 'templates/assets/css/vacatures-single-page-template-theme-style.css' , __FILE__ ) );\n}", "public function admin_scripts() {\n\t\twp_enqueue_style( 'wpex-font-awesome', WPEX_CSS_DIR_URI .'font-awesome.min.css' );\n\t}", "function enqueue_styles_and_scripts() {\n\n\twp_enqueue_style('bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');\n\twp_enqueue_style('animate', get_theme_file_uri('/css/animate.css'));\n\twp_enqueue_style('et-line', get_theme_file_uri('/css/et-line.min.css'));\n\twp_enqueue_style('font-awesome', get_theme_file_uri('/css/font-awesome.min.css'));\n\n // Theme's default font from google fonts\n wp_enqueue_style('font-montserrat', '//fonts.googleapis.com/css?family=Montserrat');\n\n\t// Theme main stylesheet.\n\t// Update version automatically after each file modification\n \t$mainCssSrc = get_stylesheet_uri();\n\t$mainCssVer = filemtime( get_stylesheet_directory() . '/style.css');\n\n\twp_enqueue_style('main_style', $mainCssSrc, array(), $mainCssVer);\n\n // JS includes\n\twp_enqueue_script('bootstrap_js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js');\n\twp_enqueue_script('blocs', get_theme_file_uri('/js/blocs.js'), array('jquery'), '0.2', true);\n}", "function starkers_script_enqueuer() {\n\t\twp_register_script( 'site', get_template_directory_uri().'/js/scripts.min.js', array( 'jquery' ) );\n\t\twp_enqueue_script( 'site' );\n\n\t\twp_register_style( 'screen', get_stylesheet_directory_uri().'/style.css', '', '', 'screen' );\n\t\twp_enqueue_style( 'screen' );\n\t}", "function liquidchurch_scripts() {\n /** FONTS **/\n $theme_path = plugin_dir_path( __FILE__ );\n $lqd_style_css = filemtime( $theme_path . 'css/style.css' );\n $lqd_style_pages_css = filemtime( $theme_path . 'css/style-pages.css');\n $lqd_messages_css = filemtime( $theme_path . 'css/lqd-messages.css' );\n $lqd_fonts_css = filemtime( $theme_path . 'css/lqd-fonts.css' );\n\t// Avenir Fonts\n\twp_enqueue_style( 'lqd-fonts', get_template_directory_uri() . '/css/lqd-fonts.css', array(), $lqd_fonts_css);\n\t// Google Fonts\n\twp_enqueue_style( 'liquidchurch-fonts', liquidchurch_fonts_url(), array(), null );\n // Bootstrap\n\twp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/vendor/bootstrap.min.css', array(), '3.4.1' );\n\t// Font Awesome\n\twp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/vendor/font-awesome.min.css', array(), $lqd_style_css );\n\t// Main CSS\n\twp_enqueue_style('style', get_template_directory_uri() . '/css/style.css', array(), $lqd_style_css );\n\t// Page Specific + Button CSS\n\twp_enqueue_style( 'pages-style', get_template_directory_uri() . '/css/style-pages.css', array(), $lqd_style_pages_css );\n\t// Liquid Messages (GC-Sermons) CSS\n\twp_enqueue_style( 'lqd-messages', get_template_directory_uri() . '/css/lqd-messages.css', array(), $lqd_messages_css );\n // Text2Give CSS\n if ( is_page( 'text2give' ) ) {\n wp_enqueue_style( 'text2give', get_template_directory_uri() . '/css/text2give.css', array(), '1.5' );\n }\n\t// Required WP CSS\n wp_enqueue_style( 'liquidchurch-style', get_stylesheet_uri() );\n\n /** JS **/\n // HTML5 Shiv for IE7 Compatibility\n\twp_enqueue_script( 'liquidchurch-html5', get_template_directory_uri() . '/js/vendor/html5.js', array(), '3.7.3' );\n\twp_script_add_data( 'liquidchurch-html5', 'conditional', 'lt IE 9' );\n // Skip Link Focus Fix\n\twp_enqueue_script( 'liquidchurch-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160412', true );\n\t// If Single Page with Threaded Comments\n\tif ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\t// If Single Page Where Attachment Is Image\n\tif ( is_singular() && wp_attachment_is_image() ) {\n\t\twp_enqueue_script( 'liquidchurch-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160412' );\n\t}\n\t// Text2Give JS\n if ( is_page( array ('give', 'set-new-recurring-gift', 'cancel-old-recurring-gift', 'text2give' ) ) ) {\n\t wp_enqueue_script( 'give-choose-campus-js', get_template_directory_uri() . '/js/give-choose-campus.js', array( 'jquery' ), '2017061601', false );\n }\n // Main Liquid Church JavaScript\n wp_enqueue_script( 'liquidchurch-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20200313', true );\n\t// Bootstrap JavaScript\n\twp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/vendor/bootstrap.min.js', array( 'jquery' ), '20190313', true );\n // Localization\n\twp_localize_script( 'liquidchurch-script', 'screenReaderText', array(\n\t\t'expand' => __( 'expand child menu', 'liquidchurch' ),\n\t\t'collapse' => __( 'collapse child menu', 'liquidchurch' ),\n\t) );\n}", "function webbusiness_scripts() {\n\twp_enqueue_style('webbusiness-style', get_stylesheet_uri());\n\twp_enqueue_style('webbusiness-framework', get_template_directory_uri() . '/css/framework.css');\n\t$style = get_theme_mod(\"style\");\n\tif (!$style || $style == \"default\") {\n\t\t$style = \"dark\";\n\t}\n\t$wp_customize = \"\";\n\tif (isset($_POST[\"wp_customize\"])) $wp_customize = $_POST[\"wp_customize\"];\n\tif ($wp_customize == \"on\") {\n\t\twp_enqueue_style('webbusiness-color-dynamic', get_template_directory_uri() . '/css/dynamic-css-customizer.php');\n\t} else {\n\t\twebbusiness_save_css();\n\t\t$uploads = wp_upload_dir();\n\t\t$uploads_dir = trailingslashit($uploads[\"basedir\"]);\n\t\t$uploads_path = trailingslashit($uploads[\"baseurl\"]);\n\t\tif (file_exists($uploads_dir . \"webbusiness.css\") /* && !$save_custom_css */) {\n\t\t\twp_enqueue_style('webbusiness-color-dynamic', $uploads_path . \"webbusiness.css\");\n\t\t} else {\n\t\t\twp_enqueue_style('webbusiness-color-dynamic', get_template_directory_uri() . '/css/dynamic-css.php');\n\t\t}\n\t}\n\n\twp_enqueue_style('webbusiness-layout', get_template_directory_uri() . '/css/webbusiness.css');\n\t\n\tif (!get_theme_mod(\"googlefonts_link\")) {\n\t\twp_enqueue_style('webbusiness-googlefonts', \"http://fonts.googleapis.com/css?family=Ubuntu\");\n\t}\n\t\n\twp_enqueue_script('webbusiness-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);\n\n\twp_enqueue_script('webbusiness-jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle.all.js', array(), '20120206', true);\n\twp_enqueue_script('webbusiness-superfish', get_template_directory_uri() . '/js/superfish.js', array(), '20120206', true);\n\twp_enqueue_script('webbusiness-tinynav', get_template_directory_uri() . '/js/tinynav.min.js', array(), '20120206', true);\n\twp_enqueue_script('webbusiness-script', get_template_directory_uri() . '/js/script.js', array(), '20120206', true);\n\twp_enqueue_script('webbusiness-retina', get_template_directory_uri() . '/js/retina-1.1.0.min.js', array(), '20120206', true);\n\twp_enqueue_script('webbusiness-modernizr', get_template_directory_uri() . '/js/modernizr-2.0.6.min.js', array(), '20120206', false);\n\n\tif (is_singular() && comments_open() && get_option('thread_comments')) {\n\t\twp_enqueue_script('comment-reply');\n\t}\n\n\tif (is_singular() && wp_attachment_is_image()) {\n\t\twp_enqueue_script('webbusiness-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20120202');\n\t}\n}", "function am_files() {\n\n // FONTS\n wp_enqueue_style('Fjalla One-font', '//fonts.googleapis.com/css?family=Fjalla+One&display=swap');\n wp_enqueue_style('Caveat-font', '//fonts.googleapis.com/css?family=Caveat&display=swap');\n wp_enqueue_style('Lato-font', '//fonts.googleapis.com/css?family=Lato:300,400&display=swap'); \n\n //CSS\n wp_enqueue_style('am_main_styles', get_stylesheet_uri());\n wp_enqueue_style( 'prefix-font-awesome', 'https://use.fontawesome.com/releases/v5.0.6/css/all.css', array(), '5.0.6' ); \n\n //JAVASCRIPT\n wp_enqueue_script('scroll-indicator', get_template_directory_uri() . '/assets/js/scroll-indicator.js', null, null); \n wp_enqueue_script('filter', get_template_directory_uri() . '/assets/js/filter.js', null, true); \n}", "function berry_scripts() {\n\n\twp_dequeue_style( 'seed-style');\n\twp_enqueue_style( 'berry-style', get_stylesheet_uri() );\n\twp_enqueue_script( 'berry-main', get_stylesheet_directory_uri() . '/js/main.js', array(), '2016-1', true );\n\n}", "function acitpo_wp_enqueue_script() {\n\twp_register_style('acitpo-theme', get_stylesheet_uri(), filemtime(get_template_directory() . '/style.css'));\n\twp_register_script('acipto-global', get_template_directory_uri() . '/js/global.js', array('jquery'), filemtime(get_template_directory() . '/js/global.js'));\n\n\tif (is_single() && comments_open()) {\n\t\twp_enqueue_script('comment-reply');\n\t}\n\n\tif (!is_admin()) {\n\t\twp_enqueue_style('acitpo-theme');\n\t\twp_enqueue_script('acipto-global');\n\t}\n}", "public function enqueue_scripts() {\n\t\t// wp_enqueue_style( 'simple-grams', plugins_url( '/assets/css/simple-grams.css', __FILE__ ) );\n\t}", "public function wp_enqueue_scripts() {\n wp_enqueue_style('normalize', get_template_directory_uri() .\n '/normalize.css', array(), '8.0.1');\n wp_enqueue_style('theme-css', get_stylesheet_uri(),\n array(), '1.0');\n wp_enqueue_script('jquery');\n }", "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 enqueueScripts()\n {\n wp_enqueue_style('gfbitpay-admin', $this->plugin->urlBase . 'style-admin.css', false, GFBITPAY_PLUGIN_VERSION);\n }", "function scs_admin_head()\n\t{\t\n\t\twp_enqueue_script( 'jquery-ui-core' );\n\t\twp_enqueue_script( 'jquery-ui-tabs' );\n\t\twp_enqueue_script( 'coming-soon', WP_PLUGIN_URL.'/'.basename(dirname(__FILE__)).'/js/init.js' );\n\t\twp_enqueue_style( 'coming-soon', WP_PLUGIN_URL.'/'.basename(dirname(__FILE__)).'/css/admin.css' );\n\t}", "function dfd_themes_scripts() {\n\t\tglobal $dfd_native;\n\t\t/*\n\t\t * Css styles\n\t\t */\n\t\twp_register_style('dfd_site_style', get_template_directory_uri() . '/assets/css/app.css', false, null);\n\t\t\n\t\twp_register_style('dfd_mobile_responsive', get_template_directory_uri() . '/assets/css/mobile-responsive.css', false, null);\n\t\t\n\t\twp_enqueue_style('dfd_site_style');\n\t\t\n\t\t/**\n\t\t * Check if WooCommerce is active\n\t\t * */\n\t\tif (class_exists('WooCommerce')) {\n\t\t\t$woocommerce_css_file = get_template_directory_uri() . '/assets/css/woocommerce.css';\n\t\t\t\n\t\t\twp_register_style('dfd_wocommerce_style', $woocommerce_css_file, false, null);\n\t\t\twp_enqueue_style('dfd_wocommerce_style');\n\t\t}\n\t\t\n\t\t/**\n\t\t * mobile responsive\n\t\t */\n\t\tif (!isset($dfd_native['mobile_responsive']) || $dfd_native['mobile_responsive'] != '0') {\n\t\t\twp_enqueue_style('dfd_mobile_responsive');\n\t\t}\n\t\t\n\t\tif(class_exists('ReduxFramework') && isset(ReduxFramework::$_upload_url) && isset(ReduxFramework::$_upload_dir) && file_exists(ReduxFramework::$_upload_dir . 'options.css') && isset($dfd_native['enqueue_styles_file']) && $dfd_native['enqueue_styles_file'] == 'on') {\n\t\t\twp_enqueue_style('dfd_theme_options', ReduxFramework::$_upload_url . 'options.css', false, null);\n\t\t}\n\t\t\n\t\tif(!class_exists('Dfd_Theme_extensions')) {\n\t\t\t$font_url = add_query_arg( 'family', urlencode( 'Open Sans:300,300italic,400,400italic,600,600italic,700italic,700&subset=latin,latin-ext' ), \"//fonts.googleapis.com/css\" );\n\t\t\twp_enqueue_style('dfd_defalt_fonts', $font_url, false, null);\n\t\t\twp_enqueue_style('dfd_default_icons', get_template_directory_uri() . '/assets/fonts/dfd_icon_set.css', false, null);\n\t\t}\n\t\t\n\t\twp_enqueue_style( 'main-style', get_stylesheet_uri(), false, null );\n\t\t\n\t\tif(function_exists('dfd_custom_page_style')){\n\t\t\tdfd_custom_page_style();\n\t\t}\n\t\t\n\t\t/* RTL support */\n\t\tif(is_rtl()) {\n\t\t\twp_enqueue_style('dfd_rtl', get_template_directory_uri() . '/assets/css/rtl.css', false, null);\n\t\t}\n\t\t\n\t\t/*\n\t\t * JS register\n\t\t */\n\t\t\n\t\t$google_api_key = 'AIzaSyCEc0PM7rpun59m20yBBtRsl62I6eEsKl4';\n\t\tif(isset($dfd_native['custom_google_api_key']) && !empty($dfd_native['custom_google_api_key'])) {\n\t\t\t$google_api_key = $dfd_native['custom_google_api_key'];\n\t\t}\n\t\t\n\t\twp_register_script('gmaps', '//maps.googleapis.com/maps/api/js?key='.$google_api_key, array('jquery'), null, false, true);\n\t\t\n\t\twp_register_script('gmap3', get_template_directory_uri() . '/assets/js/gmap3.min.js', array('jquery'), null, true, true);\n\t\twp_register_script('dfd_gmap', get_template_directory_uri() . '/assets/js/dfd_gmap.js', array('jquery'), null, true, true);\n\t\t\n\t\twp_register_script('dfd_woocommerce_scripts', get_template_directory_uri() . '/assets/js/woocommerce.js', array('jquery'), null, true);\n\n\t\t// Video Player\n\t\twp_register_script('dfd_zencdn_video_js', get_template_directory_uri() . '/assets/js/video-js.js', array('jquery'), null);\n\t\t\n\t\t// Facebook Widget\n\t\twp_register_script('dfd_facebook_widget_script', get_template_directory_uri().'/assets/js/widget-facebook.js', array('jquery'), null, true);\n\n\t\t// keyframe\n\t\t\n\t\t// ajax pagination\n\t\twp_register_script('ajax-pagination', get_template_directory_uri().'/assets/js/ajax-pagination.js', array('jquery'), null, true);\n\t\twp_register_script('dfd-lazy-load', get_template_directory_uri().'/assets/js/ajax-lazy-load.js', array('jquery'), null, true);\n\t\t\n\t\t//slick slider\n\t\t\n\t\twp_register_script('dfd-particleground', get_template_directory_uri().'/assets/js/jquery.particleground.min.js', array('jquery'), null, true);\n\t\twp_register_script('dfd-particleground-old', get_template_directory_uri().'/assets/js/jquery.particleground.old.min.js', array('jquery'), null, true);\n\t\t\n\t\twp_register_script('dfd-canvas-bg-first', get_template_directory_uri().'/assets/js/dfd_canvas_bg_style_1.js', array('jquery'), null, true);\n\t\t\n\t\twp_register_script('dfd-canvas-bg-third', get_template_directory_uri().'/assets/js/dfd_canvas_bg_style_3.js', array('jquery'), null, true);\n\t\t\n\t\twp_register_script('dfd-jparallax', get_template_directory_uri().'/assets/js/jquery.parallax.js', array('jquery'), null, false);\n\t\t\n//\t\twp_register_script('dfd-sly', get_template_directory_uri().'/assets/js/sly.min.js', array('jquery'), null, false);\n\t\t\n//\t\twp_register_script('dfd-jpcqarallax', get_template_directory_uri().'/assets/js/jquery.parallax.js', array('jquery'), null, false);\n\t\t\n\t\t/*\n\t\t * JS enquene\n\t\t */\n\t\tif(!isset($dfd_native['dev_mode']) || $dfd_native['dev_mode'] != 'on' || !defined('DFD_DEBUG_MODE') || !DFD_DEBUG_MODE) {\n\t\t\tif (strcmp(DfdMetaBoxSettings::compared('site_preloader_enabled', 'off'),'1')===0) {\n\t\t\t\twp_register_script('dfd_queryloader2', get_template_directory_uri() . '/assets/js/jquery.queryloader2.min.js', array('jquery'), '2', false, true);\n\t\t\t\twp_enqueue_script('dfd_queryloader2');\n\t\t\t}\n\t\t\twp_register_script('dfd_js_plugins', get_template_directory_uri() . '/assets/js/plugins.min.js', array('jquery'), null, true);\n\t\t\twp_localize_script('dfd_js_plugins', 'ajax_var', array(\n\t\t\t\t'url' => admin_url('admin-ajax.php'),\n\t\t\t\t'nonce' => wp_create_nonce('ajax-nonce')\n\t\t\t));\n\t\t\twp_enqueue_script('dfd_js_plugins');\n\t\t\t\n\t\t\twp_register_script('dfd.onepagescroll', get_template_directory_uri().'/assets/js/jquery.fullPage.min.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-multislider', get_template_directory_uri().'/assets/js/jquery.multiscroll.min.js', array('jquery'), null, true);\n\t\t\t\n\t\t} else {\n\t\t\twp_register_script('dfd_foundation', get_template_directory_uri() . '/assets/js/foundation.js', array('jquery'), null, true);\n\t\t\twp_register_script('keyframes', get_template_directory_uri().'/assets/js/jquery.keyframes.min.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd_effects', get_template_directory_uri() . '/assets/js/animation.js', array('jquery'), null, true);\n\t\t\twp_register_script('mmenu', get_template_directory_uri().'/assets/js/jquery.sidr.js', array('jquery'), null, true);\n\t\t\twp_register_script('slick', get_template_directory_uri().'/assets/js/jquery.slick.min.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd_scrollTo', get_template_directory_uri().'/assets/js/jquery.scrollTo.js', array('jquery'), null, true);\n\t\t\twp_register_script('jquery.easing', get_template_directory_uri().'/assets/js/jquery.easing.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-folio-hover', get_template_directory_uri().'/assets/js/jquery.hoverdir.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-chaffle', get_template_directory_uri().'/assets/js/jquery.chaffle.js', array('jquery'), null, true);\n\t\t\twp_register_script('prettyphoto', get_template_directory_uri() . '/assets/js/jquery.prettyPhoto.js', array('jquery'), null, true, true);\n\t\t\twp_register_script('custom-share', get_template_directory_uri() . '/assets/js/share.js', array('jquery'), null, true);\n\t\t\twp_register_script('vertical_js', get_template_directory_uri() . '/assets/js/vertical.js', array('jquery'), null, true);\n\t\t\twp_register_script('dropkick', get_template_directory_uri() . '/assets/js/jquery.dropkick-min.js', array('jquery'), null, true);\n\t\t\twp_register_script('isotope', get_template_directory_uri() . '/assets/js/jquery.isotope.min.js', array('jquery'), null, true);\n\t\t\twp_register_script('justified', get_template_directory_uri() . '/assets/js/justifiedGallery.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-3d-hover', get_template_directory_uri() . '/assets/js/jquery.hover3d.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-sticky-kit', get_template_directory_uri() . '/assets/js/sticky-kit.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-tween-max', get_template_directory_uri().'/assets/js/TweenMax.min.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-mousestop', get_template_directory_uri().'/assets/js/mousestop.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-images-loaded', get_template_directory_uri().'/assets/js/imagesloaded.pkgd.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-fancy-text', get_template_directory_uri().'/assets/js/fancy-text.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-svg-loaded', get_template_directory_uri().'/assets/js/svgLoader.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-hotspot', get_template_directory_uri().'/assets/js/jquery.hotspot.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd-multislider', get_template_directory_uri().'/assets/js/jquery.multiscroll.js', array('jquery'), null, true);\n\t\t\twp_register_script('dfd_main', get_template_directory_uri() . '/assets/js/app.js', array('jquery'), null, true);\n\t\t\twp_localize_script('dfd_main', 'ajax_var', array(\n\t\t\t\t'url' => admin_url('admin-ajax.php'),\n\t\t\t\t'nonce' => wp_create_nonce('ajax-nonce')\n\t\t\t));\n\t\t\t\n\t\t\twp_register_script('smooth-scroll', get_template_directory_uri() . '/assets/js/jquery.smoothscroll.js', array('jquery'), null, true);\n\t\t\t\n\t\t\twp_register_script('dfd_slide_parallax', get_template_directory_uri() . '/assets/js/jquery.slide_parallax.js', array('jquery'), null, true);\n\t\t\t\n\t\t\twp_register_script('dfd-typed', get_template_directory_uri().'/assets/js/typed.js', array('jquery'), null, false);\n\t\t\t\n\t\t\twp_register_script('dfd-swiper', get_template_directory_uri().'/assets/js/swiper.js', array('jquery'), null, false);\n\t\t\t\n\t\t\twp_register_script('dfd.onepagescroll', get_template_directory_uri().'/assets/js/jquery.fullPage.js', array('jquery'), null, true);\n\t\t\t\n\t\t\twp_register_script('js-audio', get_template_directory_uri().'/assets/js/audioplayer.js', array('jquery'), null, true);\n\t\t\t\n\t\t\twp_register_script('mega_menu', get_template_directory_uri().'/assets/js/jquery.mega-menu.js', array('jquery'), null, true);\n\t\t\t\n\t\t\twp_register_script('mega_menu_run', get_template_directory_uri().'/assets/js/jquery.mega-menu.run.js', array('jquery'), null, true);\n\t\t\t\n\t\t\twp_register_script('countdown-js',get_template_directory_uri().'/assets/js/jquery.countdown.min.js',array('jquery'));\n\t\t\t\n\t\t\twp_register_script( 'odometer-js', get_template_directory_uri() . '/assets/js/odometer.min.js', array( 'jquery' ), false, true );\n\t\t\t\n\t\t\twp_register_script( 'piechart-js', get_template_directory_uri() . '/assets/js/circle-progress.js', array( 'jquery' ), false, true );\n\t\t\t\n\t\t\tif (strcmp(DfdMetaBoxSettings::compared('site_preloader_enabled', 'off'),'1')===0) {\n\t\t\t\twp_register_script('dfd_queryloader2', get_template_directory_uri() . '/assets/js/jquery.queryloader2.js', array('jquery'), '2', false, true);\n\t\t\t\twp_enqueue_script('dfd_queryloader2');\n\t\t\t}\n\t\t\t\n\t\t\twp_enqueue_script('dfd_foundation');\n\t\t\twp_enqueue_script('keyframes');\n\t\t\twp_enqueue_script('dfd-chaffle');\n\t\t\twp_enqueue_script('js-audio');\n\n\t\t\twp_enqueue_script('dfd_effects');\n\t\t\twp_enqueue_script('isotope');\n\t\t\twp_enqueue_script('justified');\n\t\t\twp_enqueue_script('dfd-3d-hover');\n\t\t\twp_enqueue_script('dfd-sticky-kit');\n\t\t\twp_enqueue_script('dfd-tween-max');\n\t\t\twp_enqueue_script('dfd-mousestop');\n\t\t\twp_enqueue_script('dfd-images-loaded');\n\t\t\twp_enqueue_script('dfd-svg-loaded');\n\n\t\t\twp_enqueue_script('slick');\n\t\t\twp_enqueue_script('dfd_scrollTo');\n\t\t\twp_enqueue_script('jquery.easing');\n\t\t\twp_enqueue_script('custom-share');\n\t\t\twp_enqueue_script('vertical_js');\n\t\t\twp_enqueue_script('dropkick');\n\t\t\twp_enqueue_script('prettyphoto');\n\n\t\t\twp_enqueue_script('dfd-swiper');\n\n\t\t\twp_enqueue_script('mmenu');\n\n\t\t\twp_enqueue_script('dfd-folio-hover');\n\n\t\t\twp_enqueue_script('dfd-panr', get_template_directory_uri().'/assets/js/jquery.panr.js', array('jquery'), null, true);\n\t\t\t\n\t\t\twp_enqueue_script('mega_menu');\n\t\t\t\n\t\t\twp_enqueue_script('mega_menu_run');\n\t\t\n\t\t\twp_enqueue_script('smooth-scroll');\n\t\t\t\n\t\t\twp_enqueue_script('countdown-js');\n\t\t\twp_enqueue_script( 'odometer-js');\n\t\t\twp_enqueue_script( 'piechart-js' );\n\t\t\t\n\t\t\twp_enqueue_script('dfd_main');\n\t\t}\n\t\t\n\t\tif (class_exists('WooCommerce')) {\n\t\t\twp_enqueue_script('dfd_woocommerce_scripts');\n\t\t}\n\t\t\n\t\t# Load script/styles for page templates\n\t\tif (is_page()) {\n\t\t\t$curr_page_template = basename(get_page_template());\n\n\t\t\tif($curr_page_template == 'tmp-one-page-scroll.php') {\n\t\t\t\twp_enqueue_script('dfd.onepagescroll');\n\t\t\t}\n\n\t\t\tif($curr_page_template == 'tmp-side-by-side.php') {\n\t\t\t\twp_enqueue_script('dfd-multislider');\n\t\t\t}\n\t\t}\n\t\tif(function_exists('dfd_print_head_js')){\n\t\t\tdfd_print_head_js();\n\t\t}\n\t}", "public function enqueue_scripts() {\n\n\t}", "function wm_customizer_panel_enqueue_assets() {\n $ctime = filemtime( get_template_directory() . '/customizer/css/wm-customizer-panel.css' );\n wp_enqueue_style( 'wm-customizer-panel-css', get_template_directory_uri() . '/customizer/css/wm-customizer-panel.css', array( 'customize-controls' ), $ctime );\n $ctime = filemtime( get_template_directory() . '/customizer/js/wm-customizer-panel.js' );\n wp_enqueue_script( 'wm-customizer-panel-js', get_template_directory_uri() . '/customizer/js/wm-customizer-panel.js', array( 'jquery', 'customize-controls' ), $ctime, true );\n }", "function admin_enqueue_scripts()\n {\n }", "function admin_enqueue_scripts()\n {\n }", "function admin_enqueue_scripts()\n {\n }", "function admin_enqueue_scripts()\n {\n }", "function admin_enqueue_scripts()\n {\n }", "function admin_enqueue_scripts()\n {\n }", "function admin_enqueue_scripts()\n {\n }", "function admin_enqueue_scripts()\n {\n }", "function devTheme_enqueue_script(){\r\n\twp_enqueue_script('jquery');\r\n\twp_enqueue_script('devTheme-admin-script', get_template_directory_uri() . '/admin/admin-script.js');\r\n\twp_enqueue_style('devTheme-admin-style', get_template_directory_uri() . '/admin/admin-style.css');\r\n\twp_enqueue_media();\r\n}", "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 enqueue_scripts() {\n\t\tinclude $this->dir_path . 'scripts.php';\n\t}", "function add_theme_scripts() {\r\n /* CSS */\r\n wp_enqueue_style( 'style', get_stylesheet_uri() );\r\n\r\n /* JS */\r\n wp_enqueue_script( 'fontawesome', 'https://kit.fontawesome.com/2ed38fdfce.js', array (), false, true);\r\n wp_enqueue_script( 'swup', 'https://unpkg.com/swup@latest/dist/swup.min.js', array (), false, true);\r\n wp_enqueue_script( 'canvas-background', get_template_directory_uri() . '/js/canvas-background.js', array (), false, true);\r\n wp_enqueue_script( 'sounds', get_template_directory_uri() . '/js/sounds.js', array (), false, true);\r\n wp_enqueue_script( 'scripts', get_template_directory_uri() . '/js/scripts.js', array (), false, true);\r\n\r\n if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\r\n wp_enqueue_script( 'comment-reply' );\r\n }\r\n}", "function nightsky_user_scripts( ) {\n // enque your own stuff here. CSS should be added to the array above.\n // enqueue a script.\n // wp_enqueue_script( 'id', get_template_directory_uri() . 'path',array('dependencies'), filemtime(get_stylesheet_directory() . 'path'), header_or_footer );\n}", "function enqueue_my_styles() {\n\t $magnific = THEME_DIR . '/css/magnific-popup.css';\n\t $rtlres \t= THEME_DIR . '/css/rtl-responsive.css';\n\n\t $fonts \t\t\t\t= THEME_DIR . '/fonts/stylesheet.css';\n\n\t $font_awesome = THEME_DIR . '/css/font-awesome.min.css';\n\t $swiper \t= THEME_DIR . '/css/swiper.min.css';\n\t $mainStyle = THEME_DIR . '/css/style.css';\n\t $rtl \t\t\t\t= THEME_DIR . '/css/rtl.css';\n\t $responsive \t\t= THEME_DIR . '/css/responsive.css';\n\t $rtlresponsive \t\t= THEME_DIR . '/css/rtl-responsive.css';\n\n\t $fancyboxcss \t\t= THEME_DIR . '/js/fancybox/jquery.fancybox.css';\n\t $calendar \t\t\t= THEME_DIR . '/css/fullcalendar.min.css';\n\t $calendar_print \t= THEME_DIR . '/css/fullcalendar.print.css';\n\t\t$joined_style = THEME_DIR . '/style.css';\n\t\t$accessiblity_style = THEME_DIR . '/css/accessibility.css';\n\n\t wp_enqueue_style( 'swiper', $swiper, array(), 'v1', 'all' );\n\t wp_enqueue_style( 'fancyboxcss', $fancyboxcss, array(), 'v1', 'all' );\n\n\t \twp_enqueue_style( 'calendar', $calendar, array(), 'v1', 'all' );\n\t wp_enqueue_style( 'calendar_print', $calendar_print, array(), 'v1', 'all' );\n\n\n\n\t\tif( is_rtl() ) {\n\t\t\twp_enqueue_style( 'rtl', $rtl, array(), 'v1', 'all' );\n\t\t\twp_enqueue_style( 'rtlresponsive', $rtlresponsive, array(), 'v1', 'all' );\n\t\t} else {\n\t\t\twp_enqueue_style( 'mainStyle', $mainStyle, array(), 'v1', 'all' );\n\t\t\twp_enqueue_style( 'responsive', $responsive, array(), 'v1', 'all' );\n\t\t}\n\n\t\twp_enqueue_style( 'style', $joined_style, array(), 'v1', 'all' );\n\t\twp_enqueue_style( 'accessiblity', $accessiblity_style, array(), NULL, 'all' );\n\t}", "function thrive_theme_pack_scripts() {\n\n wp_register_style( 'thrive-theme-pack-stylesheet', plugins_url( '/assets/css/themepack.css', __FILE__ ), array( 'thrive-style' ), '1.0' );\n wp_enqueue_style( 'thrive-theme-pack-stylesheet' );\n\n\treturn;\n}", "function mandiberg_scripts() {\n\n\t\t//include bootstrap:\n\t\twp_register_style( 'bootstrap-style', get_template_directory_uri() . '/css/bootstrap.min.css' );\n\t\twp_enqueue_style( 'bootstrap-style');\n\n\n\n\t\t// Register the style like this for a theme:\n\t wp_register_style( 'mandiberg-style', get_template_directory_uri() . '/style.css', array(), '20120208', 'all' );\n\t\twp_enqueue_style( 'mandiberg-style');\n\n\t\t//barba js for transitions\n\n\t\t wp_register_script('barba', get_template_directory_uri() . '/build/barba.min.js', array ( 'jquery' ),'1.1', true);\n\t\t wp_enqueue_script('barba');\n\n\t\t//js\n\t\twp_register_script('js-file', get_template_directory_uri() . '/build/script.js', array ( 'jquery' ),'1.1', true);\n\t\t wp_enqueue_script('js-file');\n\n\t}", "function msfc_wfm_assets() {\n //Plugin Styles\n wp_enqueue_style('msfc-wfm', MSFC_WFM_FRONT_ASSETS . 'css/msfc-wfm.css', array(), MSFC_WFM_VERSION);\n\n //Plugin Scripts\n wp_enqueue_script( 'msfc-wfm', MSFC_WFM_FRONT_ASSETS . 'js/msfc-wfm.js', array('jquery'), MSFC_WFM_VERSION, true );\n}", "function quasar_enqueue_frontend_files(){\n\tglobal $rockthemes_browser;\n\t\n\t$dec = '';\n\n\t\n\t//Wordpress Default Style (Specially for tinyMCE Content)\n\twp_enqueue_style( 'wp-core', F_WAY.'/css/wp-core.css', '', '', 'all' );\n\t\n\t//Responsive Foundation Layout\n\twp_enqueue_style( 'foundation-elements', F_WAY.'/css/foundation-scss.css', '', '', 'all' );\n\t\n\t/*\n\t**\tDisabled for W3 Total Cache and BWM\n\t*/\n\t//if($rockthemes_browser && strpos($rockthemes_browser['name'],'xplorer') > -1 && intval($rockthemes_browser['version']) < 9){\n\t\twp_enqueue_style( 'foundation-ie7', F_WAY.'/css/foundation-ie8.css', '', '', 'all' );\n\t//}\n\t\n\t\n\t//IcoMoon\n\twp_enqueue_style('icomoon-css', F_WAY.'/css/icomoon.css', '','', 'all');\n\t\n\t//FontAwesome \n\twp_enqueue_style('font-awesome-css', F_WAY.'/css/font-awesome.min.css', '','', 'all');\n\t\n\t//Buttons\n\twp_enqueue_style('quasar-buttons', F_WAY.'/css/buttons.css', '','', 'all');\n\t\n\t//Loads our main stylesheet.\n\twp_enqueue_style( 'quasar-style', get_stylesheet_uri() );\n\t\n\t//Load Menu Stylesheet\n\twp_enqueue_style( 'quasar-menu-style', F_WAY.'/menu-ltr.css','','','all' );\n\t\n\t/*Responsivity*/\n\t$disable_responsivity = xr_get_option('disable_responsivity',false);\n\tif($disable_responsivity){\n\t\t//Responsivity disabled\n\t\twp_enqueue_style( 'foundation-nonresponsive', F_WAY.'/css/foundation-nonresponsive.css', '', '', 'all' );\n\t}else{\n\t\t//Responsive Design\n\t\twp_enqueue_style( 'quasar-media-queries', F_WAY.'/media-queries.css', '', '', 'all' );\n\t}\n\t\n\t/*\n\t *\tCheck if user using dynamic.css mode. Otherwise activate wp_footer action\n\t */\n\tif(xr_get_option('content_padding','') == '10px'){\n\t\t//Enqueue dynamic.css\n\t}else{\n\t\tadd_filter('wp_head', 'xr_style_callback'); //TO DO : add_action ?\n\t}\n\t\t\n\t\t\n\twp_enqueue_script('jquery');\n\t\n\twp_enqueue_script('jquery-color');\n\t\n\twp_enqueue_script('jquery-effects-core');\n\t\n\twp_enqueue_script('modernizr-js', F_WAY.'/js/modernizr.js', array('jquery'));\n\t\n\t\n\twp_enqueue_script('jquery-parallax', F_WAY.'/js/jquery-parallax-set.min.js', array('jquery'));\n\t\n\twp_enqueue_script('rockthemes-parallax', F_WAY.'/js/rockthemes-parallax.min.js', array('jquery'));\n\t\n\twp_enqueue_script('quasar-jquery', F_WAY.'/js/quasar.jquery.min.js', array('jquery'));\n\t\n\twp_enqueue_script('navgoco-jquery', F_WAY.'/js/jquery.navgoco.min.js', array('jquery'));\n\t\n\t$ajax_call = array('ajaxurl' => admin_url('admin-ajax.php'), 'ajax_nonce' => wp_create_nonce(\"rockthemes_security_nonce\"), 'f_way' => F_WAY,\n\t\t\t\t\t 'frontend_options' => array(\n\t\t\t\t\t \t\t'activate_smooth_scroll' \t\t=>\txr_get_option('activate_smooth_scroll', false),\n\t\t\t\t\t\t\t'disable_top_links_for_ipad'\t=>\txr_get_option('disable_top_links_for_ipad', true),\n\t\t\t\t\t ));\n\t\n\twp_localize_script('quasar-jquery', 'rockthemes', $ajax_call);\n\t\t\n\t//Some Hooks\n\tif(xr_get_option('google_analytics_code', '') !== ''){\n\t\tadd_action('wp_footer', 'quasar_google_analytics_hook');\n\t}\n\n}", "function wpstarter_scripts() {\n\n\t// Set a dynamic version for cache busting\n\t$theme = wp_get_theme();\n\t$version = $theme['Version'];\n\n\twp_enqueue_style( 'wpstarter-style', get_template_directory_uri() . '/dist/css/main.css' );\n\n\twp_enqueue_script( 'wpstarter-vendorjs', get_template_directory_uri() . '/dist/js/vendor.min.js', array(), $version, true );\n\n wp_enqueue_script( 'wpstarter-customjs', get_template_directory_uri() . '/dist/js/main.js', array(), $version, true );\n\n}", "static public function enqueue_late() {\r\n\t\t\t/*\r\n\t\t\t * Beta-testers will not have cached scripts!\r\n\t\t\t * Just in case we have to update the plugin prior to launch.\r\n\t\t\t */\r\n\t\t\tif ( defined( 'WPMUDEV_BETATEST' ) && WPMUDEV_BETATEST ) {\r\n\t\t\t\t$script_version = time();\r\n\t\t\t} else {\r\n\t\t\t\t$script_version = self::VERSION;\r\n\t\t\t}\r\n\r\n\t\t\twp_enqueue_style(\r\n\t\t\t\t'wdev-plugin-ui',\r\n\t\t\t\tself::$module_url . 'wdev-ui.css',\r\n\t\t\t\tarray( 'wdev-plugin-google_fonts' ),\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\r\n\t\t\twp_enqueue_script(\r\n\t\t\t\t'wdev-plugin-ui',\r\n\t\t\t\tself::$module_url . 'wdev-ui.js',\r\n\t\t\t\tarray( 'jquery' ),\r\n\t\t\t\t$script_version\r\n\t\t\t);\r\n\r\n\t\t\t/**\r\n\t\t\t * Allow other plugins to enqueue css/js after shared-ui to\r\n\t\t\t * overwrite certain definitions.\r\n\t\t\t */\r\n\t\t\tdo_action( 'wpmudev_plugin_ui_enqueued' );\r\n\t\t}", "function wowaries_enqueue_scripts() {\n\n wp_enqueue_script( 'jquery' );\n\n wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', false, null, true);\n\n wp_enqueue_script( 'jqueryeasing', get_template_directory_uri() . '/js/jquery.easing.min.js', false, null, true);\n\n wp_enqueue_script( 'aries_masonry', get_template_directory_uri() . '/js/masonry.pkgd.min.js', false, null, true);\n\n wp_enqueue_script( 'theme', get_template_directory_uri() . '/js/theme.js', false, null, true);\n\n if ( is_singular() ) wp_enqueue_script( \"comment-reply\" );\n\n /* WowAriesProject generated Enqueue Scripts End */\n\n /* WowAriesProject generated Enqueue Styles Begin */\n\n\n wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', false, null, 'all');\n\n wp_enqueue_style( 'theme', get_template_directory_uri() . '/css/theme.css', false, null, 'all');\n\n wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/font-awesome/css/font-awesome.min.css', false, null, 'all');\n\n wp_enqueue_style( 'style-1', 'http://fonts.googleapis.com/css?family=Quicksand:300,400,500,700', false, null, 'all');\n\n wp_enqueue_style( 'style-2', 'http://fonts.googleapis.com/css?family=Montserrat:400,700', false, null, 'all');\n\n /* WowAriesProject generated Enqueue Styles End */\n\n }", "function ROMP_enquiry_form_admin_assets(){\n\t\twp_enqueue_style('CSS-bootstrap-min', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css');\n\t\twp_enqueue_script('JS-bootstrap-min', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js');\n\t\twp_enqueue_style( 'ROMP-enquiry-form-css', plugins_url( 'romp-enquiry-plugin/assets/css/style.css'), 20, 1 );\n\t}", "public function enqueue_scripts() {\n\t\twp_add_inline_style( 'at-main', $this->inline_css() );\n\t}", "public function enqueue_scripts() {\n\t\t$this->styles();\n\t\t$this->scripts();\n\t}" ]
[ "0.7974035", "0.795604", "0.7918637", "0.78784865", "0.7876569", "0.78046787", "0.7792399", "0.7770318", "0.77607334", "0.7745111", "0.77449757", "0.77297026", "0.7719824", "0.7677451", "0.7676417", "0.76697785", "0.7650767", "0.76404905", "0.7639734", "0.76294285", "0.7621414", "0.7618397", "0.76070446", "0.76019686", "0.76012695", "0.75954247", "0.7592499", "0.75866073", "0.7582925", "0.7574708", "0.75745964", "0.75718975", "0.75712913", "0.75634336", "0.7563316", "0.75560886", "0.7554308", "0.75535446", "0.75495195", "0.75402296", "0.7539699", "0.75349694", "0.75278395", "0.7515252", "0.7505879", "0.7505879", "0.74909586", "0.74811476", "0.7475499", "0.7472329", "0.74716365", "0.74679846", "0.7466931", "0.74657476", "0.7463689", "0.745851", "0.7453112", "0.74518526", "0.7451165", "0.7447675", "0.7443994", "0.74436784", "0.74433136", "0.74411625", "0.74411505", "0.74409336", "0.74349666", "0.7431368", "0.7430204", "0.7430048", "0.74299556", "0.74296707", "0.74279827", "0.74274874", "0.74246955", "0.74234134", "0.74169207", "0.74169207", "0.74169207", "0.74169207", "0.74169207", "0.74169207", "0.74169207", "0.74169207", "0.74143934", "0.74132335", "0.7412531", "0.7408276", "0.7407986", "0.7406592", "0.7399981", "0.73991984", "0.73977435", "0.7396982", "0.73940885", "0.73924553", "0.739055", "0.7387697", "0.7386239", "0.73713225" ]
0.779691
6
Display a listing of the resource.
public function index() { return view('admin.examples.datatables'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "function listing() {\r\n\r\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "public function _index(){\n\t $this->_list();\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446377", "0.7361922", "0.72984487", "0.7248631", "0.7162871", "0.7148215", "0.7131838", "0.71028054", "0.7102395", "0.70988023", "0.7048243", "0.6993516", "0.6989079", "0.69341344", "0.69001913", "0.6899167", "0.68920904", "0.6887188", "0.68661547", "0.6849159", "0.683002", "0.6801792", "0.6796645", "0.67952746", "0.678579", "0.6760132", "0.6741144", "0.67304057", "0.6726034", "0.6723304", "0.6723304", "0.6723304", "0.67188966", "0.67061126", "0.67046595", "0.67042124", "0.6664004", "0.6663109", "0.66603667", "0.66595376", "0.6656908", "0.66536283", "0.6648508", "0.6619696", "0.66191936", "0.66145146", "0.66056865", "0.6600895", "0.66007215", "0.6593214", "0.6587006", "0.6585572", "0.6584028", "0.65802413", "0.65751636", "0.6574276", "0.6572553", "0.65703243", "0.6569474", "0.6563628", "0.6563418", "0.65516967", "0.655156", "0.65460885", "0.65367365", "0.6533626", "0.6533064", "0.6527408", "0.65251255", "0.6524834", "0.65202224", "0.6517302", "0.65167385", "0.6516062", "0.65148616", "0.6506742", "0.65018", "0.6501768", "0.6494415", "0.64921784", "0.6486631", "0.6485237", "0.6484199", "0.64841217", "0.6479556", "0.6478558", "0.6469807", "0.646858", "0.64683306", "0.6466808", "0.64637285", "0.64616066", "0.6458575", "0.6457558", "0.64535207", "0.64534074", "0.64524984", "0.64491946", "0.6448726", "0.6447211", "0.64461327" ]
0.0
-1
takes a plain (no bound variables) SQL command and executes it
function executePlainSQL($cmdstr) { //echo "<br>running ".$cmdstr."<br>"; global $db_conn, $success; $statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work //echo "the value of the parsed string is:"; //var_dump($statment); if (!$statement) { echo "<br>Cannot parse the following command: " . $cmdstr . "<br>"; $e = OCI_Error($db_conn); // For OCIParse errors pass the // connection handle echo htmlentities($e['message']); $success = False; } $r = OCIExecute($statement, OCI_DEFAULT); if (!$r) { echo "<br>Cannot execute the following command: " . $cmdstr . "<br>"; $e = oci_error($statement); // For OCIExecute errors pass the statementhandle echo htmlentities($e['message']); $success = False; } else { } return $statement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function exec($sql);", "public function execute($sql);", "public function execute($sql);", "abstract public function execute($sql);", "public abstract function execute($sql);", "function exec($sql);", "function executePlainSQL($cmdstr) { //takes a plain (no bound variables) SQL command and executes it\n\t//echo \"<br>running \".$cmdstr.\"<br>\";\n\tglobal $oraconn, $success;\n\t$statement = OCIParse($oraconn, $cmdstr); \n\n\tif (!$statement) {\n\t\techo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = OCI_Error($oraconn); // For OCIParse errors pass the \n\t\t// connection handle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t}\n\n\t$r = OCIExecute($statement, OCI_DEFAULT);\n\tif (!$r) {\n\t\techo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t} else {\n\n\t}\n\treturn $statement;\n\n}", "function executePlainSQL($cmdstr) { \n\t\t\t\tglobal $db_conn, $success;\n\t\t\t\t$statement = OCIParse($db_conn, $cmdstr); \n\n\t\t\t\tif (!$statement) {\n\t\t\t\t\techo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n\t\t\t\t\t$e = OCI_Error($db_conn); // For OCIParse errors pass the \n\t\t\t\t\t// connection handle\n\t\t\t\t\techo htmlentities($e['message']);\n\t\t\t\t\t$success = False;\n\t\t\t\t}\n\n\t\t\t\t$r = OCIExecute($statement, OCI_DEFAULT);\n\t\t\t\tif (!$r) {\n\t\t\t\t\techo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n\t\t\t\t\t$e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n\t\t\t\t\techo htmlentities($e['message']);\n\t\t\t\t\t$success = False;\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t\treturn $statement;\n\t\t\t}", "function executePlainSQL($cmdstr) {\n //echo \"<br>running \".$cmdstr.\"<br>\";\n global $db_conn, $success;\n $statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n \n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the\n // connection handle\n echo htmlentities($e['message']);\n $success = False;\n }\n \n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = False;\n } else {\n \n }\n return $statement;\n \n }", "function executePlainSQL($cmdstr) {\n //echo \"<br>running \".$cmdstr.\"<br>\";\n global $db_conn, $success;\n $statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n \n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the\n // connection handle\n echo htmlentities($e['message']);\n $success = False;\n }\n \n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = False;\n } else {\n \n }\n return $statement;\n \n }", "function executePlainSQL($cmdstr) {\n global $db_conn, $success;\n $statement = OCIParse($db_conn, $cmdstr);\n /**There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n */\n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn);\n echo htmlentities($e['message']);\n $success = False;\n }\n \n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement);\n echo htmlentities($e['message']);\n $success = False;\n } else {\n \n }\n return $statement;\n }", "function executePlainSQL($cmdstr) {\n\t//echo \"<br>running \".$cmdstr.\"<br>\";\n\tglobal $db_conn, $success;\n\t$statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n\tif (!$statement) {\n\t\techo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = OCI_Error($db_conn); // For OCIParse errors pass the \n\t\t// connection handle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t}\n\n\t$r = OCIExecute($statement, OCI_DEFAULT);\n\tif (!$r) {\n\t\techo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t} else {\n\n\t}\n\treturn $statement;\n}", "function executePlainSQL($cmdstr) {\n //echo \"<br>running \".$cmdstr.\"<br>\";\n global $db_conn, $success;\n\n $statement = OCIParse($db_conn, $cmdstr);\n //There are a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the connection handle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n return $statement;\n }", "function executePlainSQL($cmdstr) {\n //echo \"<br>running \".$cmdstr.\"<br>\";\n global $db_conn, $success;\n $statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the \n // connection handle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = False;\n } else {\n\n }\n return $statement;\n }", "public function execute($sql) {\n\t\tquery_db2($sql, true);\n\t}", "abstract protected function executeSql($sql);", "function executePlainSQL($cmdstr) {\n //echo \"<br>running \".$cmdstr.\"<br>\";\n global $db_conn, $success;\n\n $statement = OCIParse($db_conn, $cmdstr); \n //There are a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the connection handle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n\t\t\treturn $statement;\n\t\t}", "public function execute($sql, $params = array());", "function executePlainSQL($cmdstr) {\n\t//echo \"<br>running \".$cmdstr.\"<br>\";\n\tglobal $db_conn, $success;\n\t$statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n\tif (!$statement) {\n\t\techo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = OCI_Error($db_conn); // For OCIParse errors pass the\n\t\t// connection handle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t}\n\n\t$r = OCIExecute($statement, OCI_DEFAULT);\n\tif (!$r) {\n\t\techo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t} else {\n\n\t}\n\treturn $statement;\n\n}", "function executePlainSQL($cmdstr) {\n\t//echo \"<br>running \".$cmdstr.\"<br>\";\n\tglobal $db_conn, $success;\n\t$statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n\tif (!$statement) {\n\t\techo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = OCI_Error($db_conn); // For OCIParse errors pass the \n\t\t// connection handle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t}\n\n\t$r = OCIExecute($statement, OCI_DEFAULT);\n\tif (!$r) {\n\t\techo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t} else {\n\n\t}\n\treturn $statement;\n\n}", "function executePlainSQL($cmdstr) {\r\n //echo \"<br>running \".$cmdstr.\"<br>\";\r\n global $db_conn, $success;\r\n\r\n $statement = OCIParse($db_conn, $cmdstr); \r\n //There are a set of comments at the end of the file that describe some of the OCI specific functions and how they work\r\n\r\n if (!$statement) {\r\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\r\n $e = OCI_Error($db_conn); // For OCIParse errors pass the connection handle\r\n echo htmlentities($e['message']);\r\n $success = False;\r\n }\r\n\r\n $r = OCIExecute($statement, OCI_DEFAULT);\r\n if (!$r) {\r\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\r\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\r\n echo htmlentities($e['message']);\r\n $success = False;\r\n }\r\n\r\n\t\t\treturn $statement;\r\n\t\t}", "function executePlainSQL($cmdstr) {\n\t//echo \"<br>running \".$cmdstr.\"<br>\";\n\tglobal $db_conn, $success;\n\t$statement = OCIParse($db_conn, $cmdstr); \n // There is a set of comments at the end of the file that \n // describes some of the OCI specific functions and how they work.\n\n\tif (!$statement) {\n\t\techo \"<br>Cannot parse this command: \" . $cmdstr . \"<br>\";\n\t\t$e = OCI_Error($db_conn); \n // For OCIParse errors, pass the connection handle.\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t}\n\n\t$r = OCIExecute($statement, OCI_DEFAULT);\n\tif (!$r) {\n\t\techo \"<br>Cannot execute this command: \" . $cmdstr . \"<br>\";\n\t\t$e = oci_error($statement); \n // For OCIExecute errors, pass the statement handle.\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t} else {\n\n\t}\n\treturn $statement;\n\n}", "function executePlainSQL($cmdstr) {\r\n\t//echo \"<br>running \".$cmdstr.\"<br>\";\r\n\tglobal $db_conn, $success;\r\n\t$statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\r\n\r\n\tif (!$statement) {\r\n\t\techo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\r\n\t\t$e = OCI_Error($db_conn); // For OCIParse errors pass the \r\n\t\t// connection handle\r\n\t\techo htmlentities($e['message']);\r\n\t\t$success = False;\r\n\t}\r\n\r\n\t$r = OCIExecute($statement, OCI_DEFAULT);\r\n\tif (!$r) {\r\n\t\techo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\r\n\t\t$e = oci_error($statement); \r\n\t\techo htmlentities($e['message']);\r\n\t\t$success = False;\r\n\t} else {\r\n\r\n\t}\r\n\treturn $statement;\r\n}", "public function execute(): Statement;", "abstract public function Execute($query, $multiline = FALSE);", "abstract public function execute($query);", "public function execute($query);", "function executePlainSQL($cmdstr) {\n\t//echo \"<br>running \".$cmdstr.\"<br>\";\n\tglobal $db_conn, $success;\n\t$statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n\tif (!$statement) {\n\t\techo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n\t\t$e = OCI_Error($db_conn); // For OCIParse errors pass the \n\t\t// connection handle\n\t\techo htmlentities($e['message']);\n\t\t$success = False;\n\t}\n\n\t$r = OCIExecute($statement, OCI_DEFAULT);\n\tif (!$r) {\n\t\techo \"<br>Please enter your first name, last name or the ID # on your invitation\";\n\t\t$e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n\t\t//echo htmlentities($e['message']);\n\t\t$success = False;\n\t} else {\n\n\t}\n\treturn $statement;\n\n}", "function db_raw_exec( $sql )\n{\n return Chev_PDO::instance()->raw_exec( $sql );\n}", "function execute ($sql)\n {\n return pg_query($this->_conn, $sql);\n }", "public function rawExec(string $sql, array $params=[])\n {\n return $this->getConnection()->rawExec($sql, $params);\n }", "public static function execute($sql) {\n if (static ::$show_sql) {\n echo $sql . \"\\n\\n\";\n }\n $query = NimbleRecord::execute($sql, true);\n return $query;\n }", "public function DirectExecute($sql)\r\n\t{\r\n\t\t$this->_lastQuery = $sql;\r\n\t\treturn $this->Execute($sql);\r\n\t}", "function executePlainSQL($cmdstr) {\n //echo \"<br>running \".$cmdstr.\"<br>\";\n global $db_conn, $success;\n\n $statement = OCIParse($db_conn, $cmdstr);\n //There are a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the connection handle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n return $statement;\n}", "abstract public function exec($query='');", "public function executeQuery($sql)\r\n\t{\r\n\t\t//return qocqal_query($sql);\r\n\t}", "function executeQuery($query);", "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}", "abstract public function query($sql, $execute =FALSE);", "public function raw($sql) {\n\t\t$this->query ( $sql );\n\t}", "function executePlainSQL($cmdstr) {\n //echo \"<br>running \".$cmdstr.\"<br>\";\n global $db_conn, $success;\n // echo \"<br>begin to read the sql!!!!!!!!!!!!!!!!!!!!!!<br>\";\n\n $statement = OCIParse($db_conn, $cmdstr);\n //There are a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the connection handle\n echo htmlentities($e['message']);\n $success = False;\n }\n\n// echo \"<br>begin to execute the sql!!!!!!!!!!!!!!!!!!!!!!<br>\";\n// echo \"<br> here's the sql: \" . $cmdstr .\"<br>\";\n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n // echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = False;\n }\n// echo \"<br>after executing the sql!!!!!!!!!!!!!!!!!!!!!!<br>\";\n// echo \"<br> here's the result: \" . var_dump(oci_fetch_row($statement)) .\"<br>\";\n return $statement;\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 }", "function exec_sql_query($db, $sql, $params = array()) {\n try {\n $query = $db->prepare($sql);\n if ($query and $query->execute($params)) {\n return $query;\n }\n } catch (PDOException $exception) {\n handle_db_error($exception);\n }\n return NULL;\n}", "function exec_sql_query($db, $sql, $params = array()) {\n try {\n $query = $db->prepare($sql);\n if ($query and $query->execute($params)) {\n return $query;\n }\n } catch (PDOException $exception) {\n handle_db_error($exception);\n }\n return NULL;\n}", "private function ExecuteQuery()\n\t{\n\t\tswitch($this->querytype)\n\t\t{\n\t\t\tcase \"SELECT\":\n\t\t\t{\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$this->querydata = $this->stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"INSERT\":\n\t\t\tcase \"UPDATE\":\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$this->beginTransaction();\n\t\t\t\t\t$this->stmt->execute();\n\t\t\t\t\t$this->commit();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch (PDOException $e)\n\t\t\t\t{\n\t\t\t\t\t$this->rollBack();\n\t\t\t\t\techo(\"Query failed: \" . $e->getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function executeQuery( $sql )\n {\n \tif( ! $result = $this->connections[$this->activeConnection]->query( $sql ) )\n \t{\n\t\t trigger_error('Error executing query: ' . $sql .' - '.$this->connections[$this->activeConnection]->error, E_USER_ERROR);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->previouslyExecuted = $result;\n\t\t}\n }", "function sql_execute($sql)\n{\n global $ctx;\n return $ctx['sqlconn']->query($sql);\n}", "function executePlainSQL($cmdstr)\n{\n global $db_conn, $success;\n $statement = OCIParse($db_conn, $cmdstr); //There is a set of comments at the end of the file that describe some of the OCI specific functions and how they work\n\n if (!$statement) {\n echo \"<br>Cannot parse the following command: \" . $cmdstr . \"<br>\";\n $e = OCI_Error($db_conn); // For OCIParse errors pass the\n // connection handle\n echo htmlentities($e['message']);\n $success = false;\n }\n\n $r = OCIExecute($statement, OCI_DEFAULT);\n if (!$r) {\n echo \"<br>Cannot execute the following command: \" . $cmdstr . \"<br>\";\n $e = oci_error($statement); // For OCIExecute errors pass the statementhandle\n echo htmlentities($e['message']);\n $success = false;\n } else {\n echo \"<br>Executed the following command: \" . $cmdstr . \"<br>\";\n }\n return $statement;\n}", "public function rawExecute(array $param = array('query'=>'','arrData'=>[])) {\n $qry = isset($param['query']) ? $param['query'] : '';\n $arrData = isset($param['arrData']) ? $param['arrData'] : [];\n\n if( empty( $qry ) ) {\n echo \"missing query\";\n die;\n }\n \n $insert_values = [];\n\n if( !empty( $qry ) ) {\n $countQuestionMarks = 0;\n\n foreach( $qry AS $char ) {\n if( $char == \"?\" )\n $countQuestionMarks++;\n }\n\n if( count($arrData) == $countQuestionMarks ) {\n echo \"data count doesn't match with column count.\";\n die;\n }\n\n if( count( $arrData ) ) {\n $insert_values = $arrData;\n }\n }\n\n $strQry = $qry;\n $pdo = $this->getConnection();\n $this->stmt = $pdo->prepare($strQry);\n\n if( count( $insert_values ) ) {\n $executed = $this->stmt->execute($insert_values);\n } else {\n $executed = $this->stmt->execute();\n }\n \n if( $executed ) {\n echo 'query executed successfully.';\n } else {\n echo 'fails to truncate table';\n }\n \n $this->stmt = null;\n die;\n }", "public function query($statement);", "public function executeStatement()\n {\n \n }", "public function execute($sql){\n\t $query = DB::query(Database::SELECT, $sql);\n\t return $query->execute($this->database);\n\t}", "abstract public function query($sql);", "public static function query($sql);", "public function query(string $sql);", "public function query($sql) {\n $this->statement = $this->dbHandler->prepare($sql);\n }", "abstract protected function executeCommand();", "public function execute($sql)\n\t{\n\t\treturn $this->c->exec($sql);\n\t}", "abstract public function execute() ;", "function fvls_db_ExecuteQuery($sql){\n\t\tglobal $FLVS_db_link;\n\t\tif( !$FLVS_db_link instanceof MySQLi )\n\t\t\treturn false;\n\n\t\tif ( !($response = $FLVS_db_link->query( $sql ) ) ){\n\t\t\tif( defined('FVLS_DEVELOPER_MODE') && FVLS_DEVELOPER_MODE )\n\t\t\t echo \"FV Link Shortener Error: mySQL Query Error - $FLVS_db_link->error | $sql\\n\";\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $response;\n\t}", "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}", "public function command(string $sql, array $params = [])\n {\n return $this->execute($this->prepare($sql, $params));\n }", "public function executeQuery(string $sql) {\n try {\n $sql=$this->secureSQL($sql);\n $stmt = $this->conn->prepare($sql);\n $stmt->execute();\n $this->result=$stmt->fetchAll(PDO::FETCH_ASSOC);\n $this->rsetRowCount = count($this->result);\n } catch (PDOException $e) {\n $this->lastException = $e;\n }\n }", "public function Execute($sql) {\r\n return $this->_connection->query($sql);\r\n }", "public function execQuery($sql)\n {\n return $this->dbConn->exec($sql);\n }", "public static function exec($sql)\n\t{\n\t\t$result = self::$link->query($sql);\n\t\t\n\t\tif(!$result)\n\t\t{\n\t\t\tself::handleError($sql);\n //TODO should probably return here\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function exec($sql, $params =''){\n\t\ttry {\n $stmt = $this->_pdo->prepare($sql);\n if($params != ''){\n foreach($params as $key => $value){\n $stmt->bindValue($key, $value);\n }\n }\n return $stmt->execute();\n }\n\t\tcatch (PDOException $e) {\n $err_data = array('sql'=>$sql, 'params'=>$params);\n Helper_Error::setError( Helper_Error::ERROR_TYPE_DB , $e->getMessage() , $err_data , $e->getCode() );\n return false;\n\t\t}\n }", "function run_query($query, array $params = array()) {\n\tglobal $db;\n\n\t$statement = $db->prepare($query);\n\n\t// bind params if we have any\n\tforeach ($params as $key => $value) {\n\t\t$statement->bindValue($key + 1, $value, PDO::PARAM_STR);\n\t}\n\n\t$statement->execute();\n\n\treturn $statement;\n\n}", "public function query($sql = null)\r\n {\r\n if (is_null($sql))\r\n $sql = $this->buildSql();\r\n //var_dump($sql);\r\n $this->sth = $this->db->prepare($sql);\r\n if (is_null($this->binds))\r\n $result = $this->sth->execute();\r\n else \r\n $result = $this->sth->execute($this->binds);\r\n }", "protected static function execute_simple_query($sql) {\n $query = self::connection()->prepare($sql);\n $query->execute();\n return $query;\n }", "public function exec( $sql )\r\n\t{\r\n\t\t$this->debugInfo($sql);\r\n\t\treturn db2_exec($this->conn, $sql);\r\n\t}", "private function execute($sql, $args = array()) {\n\n\t\tif (isset($args[0]) && is_array($args[0])) $args = $args[0];\n\n\t\t$statement = $this->pdo->prepare($sql);\n\t\t$statement->execute($args);\n\n\t\treturn $statement;\n\t}", "private function executeQuery() {\n\t\t$recordset = $this->getConnection()->execute( $this );\n\t\t\n\t\tif( $recordset === false ) {\n\t\t\t$this->_recordset = array();\n\t\t} else {\n\t\t\t$this->_recordset = $recordset;\n\t\t}\n\n\t\t$this->_currentRow = 0;\n\t\t$this->isDirty( false );\n\t}", "public function query($command);", "public function exec ($sql) {\n $this->query = $this->conn->exec($sql);\n return $this->query;\n }", "public function execute($query) {\n\t\t$args = func_get_args();\n\n\t\tif (count($args) == 1) {\n\t\t\t$sql = $query;\n\t\t} else {\n\t\t\t$sql = call_user_func_array(array($this, 'quoteInto'), $args);\n\t\t}\n\n\t\t$statement = $this->zendDb()->query($sql);\n\n\t\treturn $statement ? true : false;\n\t}", "public function exec ($sql)\n {\n if (is_object($sql) && method_exists($sql, 'assemble'))\n\t\t{\n $sql = $sql->assemble();\n }\n\n\t\tif (is_object($sql) && method_exists($sql, 'getSqlString'))\n\t\t{\n\t\t\t$sql = $sql->getSqlString();\n\t\t}\n\n if (is_object($sql) && method_exists($sql, '__toString') && ! method_exists($sql, 'assemble'))\n\t\t{\n $sql = $sql->__toString();\n }\n\n try\n\t\t{\n $affected = $this->getConnection()->exec($sql);\n\n if ($affected === false)\n\t\t\t{\n $errorInfo = $this->getConnection()->errorInfo();\n /**\n *\n * @see EhrlichAndreas_Db_Exception\n */\n throw new EhrlichAndreas_Db_Exception($errorInfo[2]);\n }\n\n return $affected;\n }\n\t\tcatch (Exception $e)\n\t\t{\n /**\n *\n * @see EhrlichAndreas_Db_Exception\n */\n throw new EhrlichAndreas_Db_Exception($e->getMessage(), $e->getCode(), $e);\n }\n }", "public function execute($sql, $params = [])\n {\n $this->db->createCommand($sql)->bindValues($params)->execute();\n }", "abstract protected function doQuery( $sql );", "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 executeQuery($sql)\r\n\t{\r\n\t\t//return mysql_query($sql);\r\n\t}", "function _execute($sql) {\n\t\t$result = sqlite_query($this->connection, $sql);\n\n\t\tif (preg_match('/^(INSERT|UPDATE|DELETE)/', $sql)) {\n\t\t\t$this->resultSet($result);\n\t\t\tlist($this->_queryStats) = $this->fetchResult();\n\t\t}\n\t\treturn $result;\n\t}", "abstract public function executeS($query, $array = true);", "static public function execSQL($raw_sql) {\n if (self::$_static_handler == null) {\n self::$_static_handler = slDatabaseManager::getConnection();\n }\n $res = null;\n if (!is_array($raw_sql)) $raw_sql = array($raw_sql);\n foreach($raw_sql as $sql) {\n $res = self::$_static_handler->query($sql);\n }\n return $res;\n }", "public function query($sql);", "public function query($sql);", "public function query($sql);", "public function query($sql);", "private function Execute($sql, array $parameters = null){\n\t\t$this->statement = $this->connection->prepare($sql);\n\t\tif($parameters !== null){\n\t\t\tforeach($parameters as $key => $value){\n\t\t\t\t$this->statement->bindValue($key, $value, $this->GetType($value));\n\t\t\t}\n\t\t}\n\n\t\treturn $this->statement->execute();\n\t}", "private function exec($connection, $query, $params) {\n $statement = $connection->prepare($query);\n $this->bindParameters($statement, $params);\n $result = $statement->execute();\n return $result;\n }", "function exec_sql( $sql, $binds = '' ){\n $time_start = microtime(true);\n\n $cur = oci_parse( $this->conn, $sql );\n #\n # Any binds?\n #\n if( $binds ){\n foreach( $binds as $bind_rec ){\n $this->sql_details[] = '-- bind : ' . $bind_rec[0] . ' val : ' . $bind_rec[1];\n #\n # What type of bind\n #\n if( is_numeric( $bind_rec[1] ) ) $bind_type = ' number';\n else{\n $var_length = strlen($bind_rec[1]);\n if( $var_length === 0 ) $var_length = 1;\n $bind_type = \" varchar2($var_length)\";\n }\n $this->sql_details[] = 'var ' . ltrim($bind_rec[0],':') . $bind_type;\n $this->sql_details[] = 'exec ' . $bind_rec[0] .\" := '\". $bind_rec[1] .\"';\";\n oci_bind_by_name( $cur, $bind_rec[0], $bind_rec[1] );\n }\n }\n \n $this->sql_details[] = $sql . ';';\n $this->exec_catch( $cur ); \n\n $this->sql_details[] = '-- Parse and excec time (secs) : ' . number_format( microtime(true) - $time_start, 4 );\n $this->sql_details[] = '--------------------------------';\n return $cur;\n }", "public function _Execute($sql) {\n\t\ttry {\n\t\t\t$this->_error = NULL;\n\t\t\tif(!$this->_connection) { $this->_Connect(); }\n\t\t\t\n\t\t\tif (substr_count(strtoupper($sql), 'SELECT') > 0 || substr_count(strtoupper($sql), 'PRAGMA') > 0) {\n\t\t\t\t$statement = $this->_connection->prepare($sql);\n\t\t\t\tif($statement) {\n\t\t\t\t\t$statement->execute();\n\t\t\t\t\t$result = $statement->fetchAll();\n\t\t\t\t} else {\n\t\t\t\t\t$result = NULL;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!$this->_auto_commit && !$this->_begin) {\n\t\t\t\t\t$this->_connection->beginTransaction();\n\t\t\t\t\t$this->_begin = true;\n\t\t\t\t}\n\t\t\t\t$result = $this->_connection->exec($sql);\n\t\t\t}\n\t\t\tif ($result === FALSE) {\n\t\t\t\t$error = $this->_connection->errorInfo();\n\t\t\t\t$this->_RenderError($error[0].'-'.$error[1].' '.$error[2], 'XUXO_ERROR_CODE_004');\n\t\t\t}\n\t\t\t\n\t\t\t$this->_resource = ($result) ? $result : NULL;\n\t\t\treturn $result;\n\t\t} catch (Exception $e) {\n\t\t\t$this->_RenderError($e->getMessage(), 'XUXO_ERROR_CODE_004');\n\t\t}\n\t}", "public function exec(string $query, $values = [], $binds = '', bool $openConnection = true): bool;", "protected abstract function executeQuery($query);", "public function query($sql)\n\t{\n\t\t$this->stm = $this->dbh->prepare($sql);\n\t}", "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "abstract function executeQuery($cons);" ]
[ "0.767861", "0.76274043", "0.76274043", "0.7423349", "0.73776585", "0.7302362", "0.7294553", "0.7198435", "0.7165981", "0.7165981", "0.7110335", "0.7095004", "0.70911765", "0.70906675", "0.7090182", "0.7070475", "0.7052971", "0.7052633", "0.7021", "0.7012567", "0.7005171", "0.7004032", "0.6938388", "0.6910463", "0.6887213", "0.68597525", "0.68535674", "0.68515694", "0.68080497", "0.6786309", "0.6769538", "0.6753733", "0.6745871", "0.6692788", "0.6690939", "0.6683937", "0.6667532", "0.66660357", "0.6664405", "0.6647678", "0.6642301", "0.6622754", "0.65981764", "0.65981764", "0.65950006", "0.65909207", "0.65839887", "0.6579569", "0.6557365", "0.65466696", "0.6544453", "0.6542722", "0.65025336", "0.6497571", "0.6479683", "0.64674807", "0.6457057", "0.6435761", "0.6432512", "0.64248663", "0.642326", "0.6412844", "0.64113563", "0.64110124", "0.64102036", "0.640703", "0.64009094", "0.6397217", "0.63959485", "0.63935834", "0.63783664", "0.6375737", "0.63743275", "0.63732904", "0.63640994", "0.63518465", "0.63515353", "0.6349547", "0.6338592", "0.63377815", "0.6336482", "0.6332381", "0.6330976", "0.6326941", "0.63257146", "0.63257146", "0.63257146", "0.63257146", "0.63230115", "0.6320115", "0.6317673", "0.6315998", "0.6314566", "0.63134956", "0.6307892", "0.63063955", "0.63063955", "0.63063955", "0.63063955", "0.6305355" ]
0.665675
39
prints results from a select statement
function countRows($result) { global $checkuser, $checkusername, $checkuseremail, $checkuserphone; $i=0; while ($row = OCI_Fetch_Array($result, OCI_BOTH)) { $i = $i + 1; $checkuser = $row[0]; $checkusername = $row[1]; $checkuseremail = $row[3]; $checkuserphone = $row[4]; } return $i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function print_query($db) {\n\t\techo \"<pre>\";print_r($db->get_compiled_select());echo \"</pre>\";\n\t}", "function printResult($result) {\n\techo \"result from SQL:\";\n echo \"<table>\";\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr>\\n\";\n foreach ($row as $item) {\n echo \" <td>\" . ($item !== null ? htmlentities($item, ENT_QUOTES) : \"&nbsp;\") . \"</td>\\n\";\n }\n echo \"</tr>\\n\";\n }\n echo \"</table>\\n\";\n}", "function print_results() {\n global $dbh;\n print \"results:\\n\";\n $res = $dbh->query(\"SELECT * FROM phptest WHERE a = 72 ORDER BY b\");\n $i = 0;\n while ($row = $res->fetchRow(DB_FETCHMODE_ORDERED)) {\n print '|' . implode(\" - \", $row) . \"|\\n\";\n $i++;\n }\n if (!$i) {\n print \"The records were not found. Did they get inserted?\\n\";\n }\n}", "function display_sql(){\n #\n # Formating for sqlplus\n #\n u::p('set linesize 200');\n u::p('set pagesize 999');\n u::p('set feedback off');\n u::p('col s_time format a8');\n u::p('col active_sessions format a20');\n u::p('col on_cpu format 900');\n u::p('col user_io format 900');\n u::p('col system_io format 900');\n u::p('col other format 900');\n u::p('col sessions_in_lock format a15');\n u::p('col sql_id format a15');\n u::p('col sql_ids format a60');\n u::p('col sql_text format a90');\n u::p('col sid format 9999');\n u::p('col to_kill format a25');\n u::p('col username format a10');\n u::p('col program format a40');\n u::p('col sids_on_cpu format a40');\n u::p('col sids_user_io format a15');\n u::p('col sids_system_io format a15');\n u::p('col sids_blocked format a16');\n u::p('col others format a15'); \n u::p('----------------------');\n #\n # Dump out the sql we have run\n #\n foreach( $this->sql_details as $sql_detail ) u::p($sql_detail);\n }", "function printResult($result) {\n while (($row = oci_fetch_array($result)) != false) {\n echo \"<p class=\\\"wrapper\\\">\";\n echo $row[0];\n echo \"</p>\";\n }\n }", "public function ViewResults() {\n echo \"<pre>\" . print_r($this->rs, TRUE) . \"</pre>\";\n }", "function printResult($result) {\n\techo \"<br><h2>Is this you?</h2><br>\";\n\techo \"<table class=\\\"table table-striped\\\">\";\n\techo \"<tr><th>ID #</th><th>Name</th><th></th></tr>\";\n\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n\t\techo \"<tr><td>\" . $row[\"GID\"] . \"</td><td>\" . $row[\"NAME\"] . \n\t\t\"</td><td><a href=\\\"guest.php?id=\".$row[\"GID\"].\"&page=guest-info\\\">Select</a></td></tr>\"; //or just use \"echo $row[0]\" \n\t}\n\techo \"</table>\";\n\n}", "function printResult($result) {\n echo \"<br>Retrieved data from table demoTable:<br>\";\n echo \"<table>\";\n echo \"<tr><th>ID</th><th>Name</th></tr>\";\n\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr><td>\" . $row[\"ID\"] . \"</td><td>\" . $row[\"NAME\"] . \"</td></tr>\"; //or just use \"echo $row[0]\"\n }\n\n echo \"</table>\";\n }", "public function printquery(){\n\t\techo $this->query.\";\";\n\t}", "function DumpSql ($stmt) {\r\n while ($row = $stmt->fetch()) {\r\n print(var_dump($row));\r\n }\r\n}", "function displayResult($result, $sql) {\n if ($result->num_rows > 0) {\n echo \"<table border='1'>\\n\";\n // print headings (field names)\n $heading = $result->fetch_assoc( );\n echo \"<tr>\\n\";\n // print field names \n foreach($heading as $key=>$value){\n echo \"<th>\" . $key . \"</th>\\n\";\n }\n echo \"</tr>\\n\";\n \n // Print values for the first row\n echo \"<tr>\\n\";\n foreach($heading as $key=>$value){\n echo \"<td>\" . $value . \"</td>\\n\";\n }\n \n // output rest of the records\n while($row = $result->fetch_assoc()) {\n //print_r($row);\n //echo \"<br />\";\n echo \"<tr>\\n\";\n // print data\n foreach($row as $key=>$value) {\n echo \"<td>\" . $value . \"</td>\\n\";\n }\n echo \"</tr>\\n\";\n }\n echo \"</table>\\n\";\n } else {\n echo \"<strong>zero results using SQL: </strong>\" . $sql;\n }\n }", "function printResultForAggregation($result) {\n while (($row = oci_fetch_array($result)) != false) {\n echo \"<p class=\\\"wrapper\\\">\";\n echo $row[1];\n echo \": \";\n echo $row[0];\n echo \"</p>\";\n }\n }", "function printResult($result) {\n echo \"<br>Retrieved data from table demoTable:<br>\";\n echo \"<table>\";\n echo \"<tr><th>ID</th><th>Name</th></tr>\";\n\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr><td>\" . $row[\"ID\"] . \"</td><td>\" . $row[\"NAME\"] . \"</td></tr>\"; //or just use \"echo $row[0]\" \n }\n\n echo \"</table>\";\n }", "function printResult($result)\n{\n echo \"<br>Result:<br>\";\n\n // table head\n $ncols = oci_num_fields($result);\n echo \"<table><tr>\";\n for ($i = 1; $i <= $ncols; $i++) {\n $column_name = oci_field_name($result, $i);\n echo \"<th>{$column_name}</th>\";\n }\n echo \"</tr>\";\n\n // table data\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr>\";\n for ($i = 0; $i < $ncols; $i++) {\n echo \"<td>{$row[$i]}</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</table>\";\n}", "function oracle9_test_select() {\n\t $sSQL = \"SELECT MCIID,CODCODE,ITMNAME,ITMACTIVE, DFTID FROM STI WHERE CODCODE='70129'\";\n\t echo $sSQL,\"<br>\";\n\t \n\t $result = $this->ora_con->Execute($sSQL);\n\t \n\t //print_r($result);\n\t $i=0;\n\t while(!$result->EOF) {\n\t echo \"<br>\",$result->fields[2];\n\t\t $result->MoveNext();\n\t\t $i+=1;\n\t }\n\t echo '>>>',$this->ora_con->ErrorMsg();\n\t}", "function print_4($sth, $bind) {\n global $dbh;\n $res = $dbh->execute($sth, $bind);\n while ($row = $res->fetchRow(DB_FETCHMODE_ORDERED)) {\n print '|' . implode(\" - \", $row) . \"|\\n\";\n }\n echo \"~~\\n\";\n}", "public function printout()\n\t\t{\tif (isset($this->res) && (mysql_num_rows($this->res) > 0))\n\t\t\t{\tmysql_data_seek($this->res, 0);\n\t\t\t\t$num = mysql_num_fields($this->res);\n\n\t\t\t\techo \"<table border=1>\";\n\t\t\t\techo \"<tr>\";\n\n\t\t\t\tfor ($i = 0; $i < $num; $i++)\n\t\t\t\t{\techo \"<th>\";\n\t\t\t\t\techo mysql_field_name($this->res, $i);\n\t\t\t\t\techo \"</th>\";\n\t\t\t\t}\n\t\t\t\techo \"</tr>\";\n\n\t\t\t\twhile ($row = mysql_fetch_row($this->res))\n\t\t\t\t{\techo \"<tr>\";\n\n\t\t\t\t\tforeach($row as $elem)\n\t\t\t\t\t{\techo \"<td>$elem</td>\";\n\t\t\t\t\t}\n\n\t\t\t\t\techo \"</tr>\";\n\t\t\t\t}\n\n\t\t\t\techo \"</table>\";\n\t\t\t}\n\n\t\t\telse\n\t\t\t\techo \"There is nothing to print! <br />\";\n\t\t}", "function print_table($query_result) {\n echo \"<table>\";\n echo \"<tr>\";\n for ($i = 0; $i < pg_num_fields($query_result); $i++) {\n $fieldname = pg_field_name($query_result, $i);\n echo \"<th>$fieldname</th>\";\n }\n echo \"</tr>\";\n\n while ($row = pg_fetch_row($query_result)) {\n echo \"<tr>\";\n $num = pg_num_fields($query_result);\n for ($i = 0; $i < $num; $i++) {\n echo \"<td>$row[$i]</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</table>\";\n }", "function printResult($result) {\n echo \"<br>Retrieved data from table demoTable:<br>\";\n echo \"<table>\";\n echo \"<tr><th>ID</th><th>Name</th></tr>\";\n\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr><td>\" . $row[\"NID\"] . \"</td><td>\" . $row[\"NAME\"] . \"</td></tr>\"; //or just use \"echo $row[0]\"\n }\n\n echo \"</table>\";\n}", "function printResult($result) {\n\t\t\t\techo \"<div class='Pokeguide'>\n\t\t\t\techo \"<table>\";\n\n\t\t\t\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n\t\t\t\t\tfor ($i = 0; $i < 15; $i++){\n\t\t\t\t\t\techo \"<tr><td>\" . $row[$i] . \"</td></tr>\"; //or just use \"echo $row[0]\" \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\techo \"</table>\";\n\t\t\t\techo \"</div>\";\n\t\t\t}", "public function select() \n {\n $this->select->execute();\n\n if ($this->select->errorCode() != 0) \n {\n print_r($this->select->errorInfo());\n }\n\n return $this->select->fetchAll();\n }", "function printResult($result) {\n\t//Note: DO NOT use this function for debugging. Once you fetch the array from a $result, you CANNOT try to fetch it again. \n\techo \"<br>Got data from table<br>\";\n\techo \"<table>\";\n\techo \"<tr><th>Uname</th><th>Pw</th></tr>\";\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n\t\t\n\t\techo \"<tr><td>\" . $row[\"UNAME\"] . \"</td><td>\" . $row[\"PW\"] . \"</td></tr>\"; //or just use \"echo $row[0]\" \n\t}\n\techo \"</table>\";\n\techo \"<br></br>\"; \n\n}", "function selectData($conn)\r\n{\r\n\t$sql = \"SELECT id, firstname, lastname FROM MyGuests LIMIT 5\";\r\n\t$result = $conn -> query($sql);\r\n\t\r\n\tif($result -> num_rows > 0 )\r\n\t{\r\n\t\techo \"<table><tr><th>ID</th></tr>\";\r\n\t\t//output data from each row\r\n\t\twhile($row = $result -> fetch_assoc())\r\n\t\t{\r\n\t\t\techo \"<tr><td>id: \" . $row[\"id\"]. \" - Name: \" . $row[\"firstname\"] . \" \" . $row[\"lastname\"] . \"</td></tr>\";\r\n\t\t}\r\n\t\techo \"</table>\";\r\n\t} \r\n\telse\r\n\t{\r\n\t\techo \"No results\";\r\n\t}\r\n}", "protected function runSelect()\n {\n return $this->connection->select(\n $this->toSql(),\n $this->getBindings(),\n $this->option->setUseWrite($this->useWritePdo)\n );\n }", "public function echoQuery($showAll = true)\r\n\t\t{\r\n\t\t\tif($showAll){\r\n\t\t\t\techo \"select property: \" . $this->_select . \"<br>\\n\";\r\n\t\t\t\techo \"where property: \" . $this->_where . \"<br>\\n\";\r\n\t\t\t\techo \"limit property: \" . $this->_limit . \"<br>\\n\";\r\n\t\t\t\techo \"order property: \" . $this->_orderBy . \"<br>\\n\";\r\n\t\t\t}\r\n\t\t\techo \"complete SQL:<br>\\n\" . $this->_sql . \"<br>\\n\";\r\n\t\t\tif($this->_errorCode != \"\" and $this->_errorCode != \"00000\"){\r\n\t\t\t\techo \"Errors:<br>\\n\";\r\n\t\t\t\tforeach($this->_errorInfo as $error){\r\n\t\t\t\t\techo \"::\" . $error . \"<br>\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public function select();", "public function select();", "public function select();", "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "function show_records( $dbc )\n{\n $q = 'SELECT * FROM prints' ;\n $r = mysqli_query( $dbc , $q ) ;\n if ( $r )\n {\n echo '<h1>Records in prints table</h1> ' ;\n while ( $row = mysqli_fetch_array( $r , MYSQLI_ASSOC ) ) \n {\n echo '<br>' . $row['id'] . ' | ' . $row[ 'name' ] . ' @ ' . $row[ 'price' ] ;\n }\n } else { echo '<p>' . mysqli_error( $dbc ) . '</p>' ; }\n}", "function printResult($result) {\n\techo \"<br>Got data from table tab1:<br>\";\n\techo \"<table>\";\n\techo \"<tr><th>ID</th><th>Name</th></tr>\";\n\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n //echo \"<tr><td>\" . $row[\"NID\"] . \"</td><td>\" . $row[\"NAME\"] . \"</td></tr>\"; //or just use \"echo $row[0]\" \n \"<tr><td>\" . $row[\"Player_Name\"] . \"</tr><td>\" . $row[\"Team_Name\"] . \"</tr><td>\" . $row[\"PPG\"] . \n \"</tr><td>\" . $row[\"Assist\"] . \"</tr><td>\" . $row[\"Rebounds\"] . \"</tr><td>\" . $row[\"Steals\"] . \n \"</tr><td>\" . $row[\"Turnovers\"] . \"</td></tr>\";\n\t}\n\techo \"</table>\";\n}", "protected function runSelect()\n {\n return $this->connection->select($this->toCypher(), $this->getBindings());\n }", "public function print_result(){\n $parsed_result = (array) $this->get_result()->parse_result();\n foreach($parsed_result['items'] as $repository_detail){\n $out .= $repository_detail->full_name.': '.$repository_detail->description.'<br />';\n }\n echo $out;\n }", "function print_Vehicles(){\n $result = $this->query(\"SELECT * FROM VEHICLES\");\n while($row = mysqli_fetch_array($result)) {\n echo $row['TAG'] . \" \" . $row['MODEL'] . \" \" . $row['EMPLOYEE'];\n echo \"<br>\";\n }\n \n $result->close();\n }", "public function display()\n\t{\n\t $sql = \"SELECT * FROM address WHERE name = ?\";\n\t \n\t}", "function printQueryResult($result) {\n?>\n<table id=\"queryResultTable\">\n <thead>\n <tr>\n <th width=\"10%\">ID</th>\n <th width=\"10%\">Description</th>\n <th width=\"10%\">Hand-in location</th>\n <th width=\"10%\">Deadline</th>\n </tr>\n </thead>\n <tbody>\n <?php\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) : ?>\n\t<tr>\n <td><?php echo $row[\"ID\"]; ?></td>\n <td><?php echo $row[\"DESCRIPTION\"]; ?></td>\n <td><?php echo $row[\"HAND_IN_LOC\"]; ?></td>\n <td><?php echo $row[\"DEADLINE\"]; ?></td>\n\t</tr>\n <?php endwhile; ?>\n </tbody>\n</table>\n<?php\n}", "public function select($statement, $named_placeholder){\n $statement = $this->dbh->prepare($statement);\n\n $statement->execute($named_placeholder);\n $result = $statement->fetchAll(PDO::FETCH_ASSOC);\n\n return $result;\n var_dump($result);\n\n }", "protected function _sql_select ( /* void */ )\n {\n /*\n Start SQL query.\n */\n $sql = ($this->bDistinct) ? 'SELECT DISTINCT ' : 'SELECT ';\n /*\n Select which fields ?\n */\n $sql .= (empty($this->aFields)) ? '*' : implode(', ', $this->aFields);\n /*\n From which tables ?\n */\n $sql .= (empty($this->aTables)) ? '' : \"\\nFROM \" . implode(', ', $this->aTables);\n /*\n Join something ?\n */\n if (!empty($this->aJoin))\n {\n foreach ($this->aJoin as $j)\n {\n $sql .= \"\\n{$j[0]} JOIN {$j[1]} ON {$j[2]}\";\n }\n }\n /*\n Where ?\n */\n if (!empty($this->aWhere))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aWhere);\n $sql .= (!empty($this->aLike)) ? implode(\"\\n\", $this->aLike) : '';\n }\n elseif (!empty($this->aLike))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aLike);\n }\n /*\n Group by ?\n */\n if (!empty($this->aGroupBy))\n {\n $sql .= \"\\nGROUP BY \" . implode(', ', $this->aGroupBy);\n }\n /*\n Having ?\n */\n if (!empty($this->aHaving))\n {\n $sql .= \"\\nHAVING \";\n foreach ($this->aHaving as $i)\n {\n $sql .= \"\\n{$i[0]}{$i[1]} {$i[2]}\";\n }\n }\n /*\n Order by ?\n */\n if (!empty($this->aOrderBy))\n {\n $sql .= \"\\nORDER BY \";\n foreach ($this->aOrderBy as $i)\n {\n $sql .= \"{$i[0]} {$i[1]}, \";\n }\n $sql = trim($sql, ', ');\n }\n /*\n Query limit ?\n */\n if ($this->nLimit !== false)\n {\n if ($this->nOffset !== false)\n {\n $sql .= \"\\nLIMIT \" . $this->nOffset . ', ' . $this->nLimit;\n }\n else\n {\n $sql .= \"\\nLIMIT 0, \" . $this->nLimit;\n }\n }\n /*\n Return SQL.\n */\n return $sql;\n }", "public function select($query){\n return pg_fetch_all($this -> query($query));\n }", "function render() {\n\t\t$sql = array();\n\t\tforeach ($this->stmts as $type => $stmts) {\n\t\t\tswitch($type) {\n\t\t\t\tcase \"select\":\n\t\t\t\tcase \"select distinct\":\n\t\t\t\t\t$sql[] = strToUpper($type) . \" \" . implode($stmts, \"\\n\") . \" FROM \".implode($this->from, \", \");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sql[] = implode($stmts, \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn implode($sql, \"\\n\").\";\";\n\t}", "function printResult($result) {\n echo \"<br>Employee Info<br>\";\n echo \"<table class='table table-striped'>\";\n echo \"<tr><th>Username</th>\". \" \" .\"<th>Wage</th>\". \" \" .\"<th>Job Type</th>\". \" \" .\"<th>Work Schedule</th></tr>\";\n\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr><td>\" . $row[\"USERNAME\"] . \" </td><td>\" . $row[\"WAGE\"] . \" </td><td>\" . $row[\"JOBT\"] . \"</td><td>\"\n . \" \" . $row[\"WORKS\"] . \"</td></tr>\"; //or just use \"echo $row[0]\" \n }\n echo \"</table>\";\n }", "function show_records($dbc) {\n\t# Create a query to get the name and price sorted by price\n\t$query = 'SELECT number, fname, lname FROM presidents ORDER BY number ASC' ;\n\n\t# Execute the query\n\t$results = mysqli_query( $dbc , $query ) ;\n\tcheck_results($results) ;\n\n\t# Show results\n\tif( $results )\n\t{\n \t\t# But...wait until we know the query succeed before\n \t\t# rendering the table start.\n \t\techo '<H1>Presidents</H1>' ;\n \t\techo '<TABLE>';\n \t\techo '<TR>';\n \t\techo '<TH>Number</TH>';\n \t\techo '<TH>First Name</TH>';\n\t echo '<TH>Last Name</TH>';\n \t\techo '</TR>';\n\n \t\t# For each row result, generate a table row\n \t\twhile ( $row = mysqli_fetch_array( $results , MYSQLI_ASSOC ) )\n \t\t{\n \t\techo '<TR>' ;\n \t\techo '<TD>' . $row['number'] . '</TD>' ;\n \t\techo '<TD>' . $row['fname'] . '</TD>' ;\n \t\techo '<TD>' . $row['lname'] . '</TD>' ;\n \t\techo '</TR>' ;\n \t\t}\n\n \t\t# End the table\n \t\techo '</TABLE>';\n\n \t\t# Free up the results in memory\n \t\tmysqli_free_result( $results ) ;\n\t}\n}", "function print_results() {\r\n if ($list = $this->print_list()) {\r\n echo '<p>' . $this->print_count() . '</p>';\r\n echo $list;\r\n echo '<p class=\"more\">' . $this->print_more() . '</p>';\r\n }\r\n else {\r\n echo $this->zero_results;\r\n }\r\n }", "function dump_query($tablename, $filter=\"\") {\r\n //$this->query(sprintf(\"select * from %s\", $tablename));\r\n while ($this->next_record()) {\r\n\t $this->dump_record($tablename, $filter);\r\n\t};\r\n }", "public function PgSelect($sql){\n $this->StartBD();\n $this->SQuery = $this->PgQuery($sql);\n if (!$this->SQuery){\n die(\"SELECT Erroneo!\");\n }\n $this->EndBD();\n }", "function output_query_in_select($index) {\n\techo '<select class=\"form-control\" name=\"'.$index.'\" id=\"'.$index.'\">';\n\t$pdo = CDatabase::connect();\n\t$sql = \"SELECT * from $index ORDER BY $index ASC\";\n\tforeach ($pdo->query($sql) as $row) {\n\t\techo '<option value=\"'.$row[$index].'\">'.$row[$index].'</option>';\n\t}\n\tCDatabase::disconnect();\n\techo '</select>';\n}", "function print_Employees(){\n $result = $this->query(\"SELECT * FROM EMPLOYEES\");\n while($row = mysqli_fetch_array($result)) {\n echo $row['ID'] . \" \" . $row['FIRST'] . \" \" . $row['LAST'];\n echo \"<br>\";\n }\n \n $result->close();\n }", "private function RunBasicQuery() {\n // Prepare the Query\n $this->stmt = $this->db->prepare($this->sql);\n \n // Run the Query in the Database\n $this->stmt->execute();\n \n // Store the Number Of Rows Returned\n $this->num_rows = $this->stmt->rowCount();\n \n // Work with the results (as an array of objects)\n $this->rs = $this->stmt->fetchAll();\n \n // Free the statement\n $this->stmt->closeCursor(); \n }", "function showTestTable(&$dbh,$d)\n {\n $shown = 0;\n $dbh->QueryResult('SELECT ID,VAL FROM OCI8_CLASS_TEST_TABLE ORDER BY ID');\n while($data = $dbh->FetchResult())\n {\n printf(\"%5d. %s%s\",$data['ID'],$data['VAL'],$d['LF']);\n $shown++;\n }\n $dbh->FreeResult();\n if(!$shown)\n {\n printf(\"No data in table.%s\",$d['LF']);\n }\n }", "public function sql() {\n\t\t$sqlT = \\lulo\\twig\\TwigTemplate::factoryHtmlResource(\\lulo\\query\\Query::PATH . \"/select/query.twig.sql\");\n\t\treturn $sqlT->render([\"query\" => $this]);\n\t}", "function select($sql) {\n global $conn;\n\n if($result = $conn->query($sql)) {\n while($row = mysqli_fetch_assoc($result))\n $result_rows[] = $row;\n\n if($result_rows != null)\n DB::return_json($result_rows);\n\n else\n throw new Exception(\"no results\");\n } else\n throw new Exception(\"query failed\");\n }", "private function executeAndFetchStatement($select){\n $this->statement = $this->connection->prepare($select);\n $this->statement->execute();\n $result = $this->statement->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n }", "function select($query)\n\t{\n\t\t\n\t\tglobal $connection;\n\t\t$resuts = $connection->query($query);\n\t\treturn $resuts;\n\t}", "function select($q)\n {\n return $this->dbh->query($q, PDO::FETCH_ASSOC)->fetchAll();\n }", "public function select()\n {\n $cols = $this->getColsAsFields();\n return $this->gateway->select($cols);\n }", "function debug($print_to_screen=true)\n\t\t{\n\t\t\t// Start outup buffering\n\t\t\tob_start();\n\n\t\t\techo \"<blockquote>\";\n\n\t\t\t// Only show ezSQL credits once..\n\t\t\tif ( ! $this->debug_called )\n\t\t\t{\n\t\t\t\techo \"<font color=800080 face=arial size=2><b>ezSQL</b> (v\".EZSQL_VERSION.\") <b>Debug..</b></font><p>\\n\";\n\t\t\t}\n\n\t\t\tif ( $this->last_error )\n\t\t\t{\n\t\t\t\techo \"<font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>$this->last_error</b></font>]<p>\";\n\t\t\t}\n\n\t\t\tif ( $this->from_disk_cache )\n\t\t\t{\n\t\t\t\techo \"<font face=arial size=2 color=000099><b>Results retrieved from disk cache</b></font><p>\";\n\t\t\t}\n\n\t\t\techo \"<font face=arial size=2 color=000099><b>Query</b> [$this->num_queries] <b>--</b> \";\n\t\t\techo \"[<font color=000000><b>$this->last_query</b></font>]</font><p>\";\n\t\t\techo \"<font face=arial size=2 color=000099><b>Query Result..</b></font>\";\n\t\t\techo \"<blockquote>\";\n\n\t\t\tif ( $this->col_info )\n\t\t\t{\n\t\t\t\t// =====================================================\n\t\t\t\t// Results top rows\n\t\t\t\techo \"<table cellpadding=5 cellspacing=1 bgcolor=555555>\";\n\t\t\t\techo \"<tr bgcolor=eeeeee><td nowrap valign=bottom><font color=555599 face=arial size=2><b>(row)</b></font></td>\";\n\n\t\t\t\tfor ( $i=0, $j=count($this->col_info); $i < $j; $i++ )\n\t\t\t\t{\n\t\t\t\t\t/* when selecting count(*) the maxlengh is not set, size is set instead. */\n\t\t\t\t\techo \"<td nowrap align=left valign=top><font size=1 color=555599 face=arial>{$this->col_info[$i]->type}\";\n\t\t\t\t\tif (!isset($this->col_info[$i]->max_length))\n\t\t\t\t\t{\n\t\t\t\t\t\techo \"{$this->col_info[$i]->size}\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo \"{$this->col_info[$i]->max_length}\";\n\t\t\t\t\t}\n\t\t\t\t\techo \"</font><br><span style='font-family: arial; font-size: 10pt; font-weight: bold;'>{$this->col_info[$i]->name}</span></td>\";\n\t\t\t\t}\n\t\t\t\techo \"</tr>\";\n\n\t\t\t\t// ======================================================\n\t\t\t\t// print main results\n\t\t\t\tif ( $this->last_result )\n\t\t\t\t{\n\t\t\t\t\t$i=0;\n\t\t\t\t\tforeach ( $this->get_results(null,ARRAY_N) as $one_row )\n\t\t\t\t\t{\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t\techo \"<tr bgcolor=ffffff><td bgcolor=eeeeee nowrap align=middle><font size=2 color=555599 face=arial>$i</font></td>\";\n\n\t\t\t\t\t\tforeach ( $one_row as $item )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\techo \"<td nowrap><font face=arial size=2>$item</font></td>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo \"</tr>\";\n\t\t\t\t\t}\n\t\t\t\t// if last result\n\t\t\t\t} else {\n\t\t\t\t\techo \"<tr bgcolor=ffffff><td colspan=\".(count($this->col_info)+1).\"><font face=arial size=2>No Results</font></td></tr>\";\n\t\t\t\t}\n\t\t\t\techo \"</table>\";\n\t\t\t// if col_info\n\t\t\t} else {\n\t\t\t\techo \"<font face=arial size=2>No Results</font>\";\n\t\t\t}\n\n\t\t\techo \"</blockquote></blockquote>\".$this->donation().\"<hr noshade color=dddddd size=1>\";\n\n\t\t\t// Stop output buffering and capture debug HTML\n\t\t\t$html = ob_get_contents();\n\t\t\tob_end_clean();\n\n\t\t\t// Only echo output if it is turned on\n\t\t\tif ( $this->debug_echo_is_on && $print_to_screen)\n\t\t\t{\n\t\t\t\techo $html;\n\t\t\t}\n\n\t\t\t$this->debug_called = true;\n\t\t\treturn $html;\n\t\t}", "function selectResult($table,$field,$where) {\n\t\tif($where!='')\n\t\t\t$where= ' WHERE '.$where;\n \t$query = \"SELECT \".$field.\"\n \t FROM \".$this->tablePrefix .$table.$where ;\n\t\t//echo $query;//exit;\n $res = $this->execute($query);\n \treturn $this->fetchAll($res);\n }", "function printResult($result) {\n echo \"<center><table></center>\";\n echo \"<h3>All the Cars that rented out today</h3>\";\n $list = array();\n while ($r = OCI_Fetch_Array($result, OCI_BOTH)) {\n array_push($list, $r);\n }\n if (sizeof($list) != 0) {\n echo \"<tr><th>Vehicle License</th><th>Make</th><th>Model</th><th>Year</th><th>Color</th><th>Odometer</th><th>Vehicle Type</th><th>Location</th><th>City</th></tr>\";\n foreach ($list AS $row) {\n echo \"<tr><td>\" . $row[\"0\"] . \"</td><td>\" . $row[\"1\"] . \"</td><td>\" . $row[\"2\"] . \"</td><td>\" . $row[\"3\"] . \"</td><td>\" . $row[\"4\"] . \"</td><td>\" . $row[\"5\"] . \"</td><td>\" . $row[\"6\"] . \"</td><td>\" . $row[\"7\"] . \"</td><td>\" . $row[\"8\"] . \"</td></tr>\"; //or just use \"echo $row[0]\"\n }\n } else {\n echo \"There is no car rented today!!!\";\n }\n echo \"</table>\";\n }", "public function select($fields=null) { if ($fields) $this->fields($fields); return $this->execute($this->get_select()); }", "function printResult($result) {\n?>\n<table id=\"resultTable\">\n <thead>\n <tr>\n <th width=\"10%\">Student ID</th>\n <th width=\"10%\">First Name</th>\n <th width=\"10%\">Last Name</th>\n <th width=\"10%\">Major</th>\n </tr>\n </thead>\n <tbody>\n <?php\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) : ?>\n\t<tr>\n <td><?php echo $row[\"STID\"]; ?></td>\n <td><?php echo $row[\"FNAME\"]; ?></td>\n <td><?php echo $row[\"LNAME\"]; ?></td>\n <td><?php echo $row[\"MAJOR\"]; ?></td>\n\t</tr>\n <?php endwhile; ?>\n </tbody>\n</table>\n<?php\n}", "function printWhole($tableName)\n{\n $result = executePlainSQL(\"SELECT * FROM {$tableName}\");\n OCICommit($db_conn);\n\n echo \"<br>Table [{$tableName}]:<br>\";\n\n // table head\n $ncols = oci_num_fields($result);\n echo \"<table><tr>\";\n for ($i = 1; $i <= $ncols; $i++) {\n $column_name = oci_field_name($result, $i);\n echo \"<th>{$column_name}</th>\";\n }\n echo \"</tr>\";\n\n // table data\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr>\";\n for ($i = 0; $i < $ncols; $i++) {\n echo \"<td>{$row[$i]}</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</table>\";\n}", "function printAuditResultsToTable($pdoStmt, $tableHeaders) {\n\t// Printing the table\n\techo \"<table id='auditResults'>\";\n\t\n\t// Looping through the headers\n\techo \"<thead>\";\n\tforeach($tableHeaders as $th)\n\t\techo \"<th>\" . $th . \"</th>\";\n\techo \"</thead>\";\n\n\t// Looping through results of the query\n\techo \"<tbody>\";\n\twhile($row = $pdoStmt->fetch(PDO::FETCH_ASSOC)) {\n\t\techo \"<tr>\";\n\n\t\t// Printing each value from the query\n\t\tforeach($row as $r) \n\t\t\techo \"<td>\" . $r . \"</td>\";\n\n\t\techo \"</tr>\";\n\t}\n\n\n\techo \"</tbody>\";\n\techo \"</table>\";\n}", "function queryOther($conn, $currentid, $currenttable, $currentfield){\n\t\t\t$otherquery = \"SELECT $currentfield FROM $currenttable WHERE id='$currentid'\";\n\t\t\t$result = $conn->query($otherquery);\n\t\t\techo \"Selected $currenttable: \";\n\t\t\tif ($result->num_rows > 0) {\n\t\t\t\twhile($row = $result->fetch_assoc()){\n\t\t\t\t\techo $row[\"$currentfield\"] . \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\techo \"</br>\";\n\t\t}", "function debug($print_to_screen=true)\n\t\t{\n\n\t\t\t// Start outup buffering\n\t\t\tob_start();\n\n\t\t\techo \"<blockquote>\";\n\n\t\t\t// Only show ezSQL credits once..\n\t\t\tif ( ! $this->debug_called )\n\t\t\t{\n\t\t\t\techo \"<font color=800080 face=arial size=2><b>ezSQL</b> (v\".EZSQL_VERSION.\") <b>Debug..</b></font><p>\\n\";\n\t\t\t}\n\n\t\t\tif ( $this->last_error )\n\t\t\t{\n\t\t\t\techo \"<font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>$this->last_error</b></font>]<p>\";\n\t\t\t}\n\n\t\t\tif ( $this->from_disk_cache )\n\t\t\t{\n\t\t\t\techo \"<font face=arial size=2 color=000099><b>Results retrieved from disk cache</b></font><p>\";\n\t\t\t}\n\n\t\t\techo \"<font face=arial size=2 color=000099><b>Query</b> [$this->num_queries] <b>--</b> \";\n\t\t\techo \"[<font color=000000><b>$this->last_query</b></font>]</font><p>\";\n\n\t\t\t\techo \"<font face=arial size=2 color=000099><b>Query Result..</b></font>\";\n\t\t\t\techo \"<blockquote>\";\n\n\t\t\tif ( $this->col_info )\n\t\t\t{\n\n\t\t\t\t// =====================================================\n\t\t\t\t// Results top rows\n\n\t\t\t\techo \"<table cellpadding=5 cellspacing=1 bgcolor=555555>\";\n\t\t\t\techo \"<tr bgcolor=eeeeee><td nowrap valign=bottom><font color=555599 face=arial size=2><b>(row)</b></font></td>\";\n\n\n\t\t\t\tfor ( $i=0; $i < count($this->col_info); $i++ )\n\t\t\t\t{\n\t\t\t\t\techo \"<td nowrap align=left valign=top><font size=1 color=555599 face=arial>{$this->col_info[$i]->type} {$this->col_info[$i]->max_length}</font><br><span style='font-family: arial; font-size: 10pt; font-weight: bold;'>{$this->col_info[$i]->name}</span></td>\";\n\t\t\t\t}\n\n\t\t\t\techo \"</tr>\";\n\n\t\t\t\t// ======================================================\n\t\t\t\t// print main results\n\n\t\t\tif ( $this->last_result )\n\t\t\t{\n\n\t\t\t\t$i=0;\n\t\t\t\tforeach ( $this->get_results(null,ARRAY_N) as $one_row )\n\t\t\t\t{\n\t\t\t\t\t$i++;\n\t\t\t\t\techo \"<tr bgcolor=ffffff><td bgcolor=eeeeee nowrap align=middle><font size=2 color=555599 face=arial>$i</font></td>\";\n\n\t\t\t\t\tforeach ( $one_row as $item )\n\t\t\t\t\t{\n\t\t\t\t\t\techo \"<td nowrap><font face=arial size=2>$item</font></td>\";\n\t\t\t\t\t}\n\n\t\t\t\t\techo \"</tr>\";\n\t\t\t\t}\n\n\t\t\t} // if last result\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"<tr bgcolor=ffffff><td colspan=\".(count($this->col_info)+1).\"><font face=arial size=2>No Results</font></td></tr>\";\n\t\t\t}\n\n\t\t\techo \"</table>\";\n\n\t\t\t} // if col_info\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"<font face=arial size=2>No Results</font>\";\n\t\t\t}\n\n\t\t\techo \"</blockquote></blockquote>\".$this->donation().\"<hr noshade color=dddddd size=1>\";\n\n\t\t\t// Stop output buffering and capture debug HTML\n\t\t\t$html = ob_get_contents();\n\t\t\tob_end_clean();\n\n\t\t\t// Only echo output if it is turned on\n\t\t\tif ( $this->debug_echo_is_on && $print_to_screen)\n\t\t\t{\n\t\t\t\techo $html;\n\t\t\t}\n\n\t\t\t$this->debug_called = true;\n\n\t\t\treturn $html;\n\n\t\t}", "public function select($opt) {\n\t\t\n\t\t\t$statement = $this->buildSelect($opt);\n\t\t\t$pdoStatement = $this->prepare($statement);\n\t\t\t$this->__bindValues($pdoStatement);\n\t\t\t\n\t\t\t$pdoStatement->execute();\n\t\t\t$result = $pdoStatement->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t$pdoStatement->closeCursor();\n\t\t\t$this->__reset();\n\t\t\treturn $result;\n\t\t}", "function echoResultsQREE ($rows) \r{\r \techo \"<table cellpadding=7>\\n\";\r \tforeach ($rows as $row) {\r\t\techo \"\\n\\n\\n<tr>\\n<td valign=top>\\n\";\r\t\techoDocumentLink($row);\r\t\techo \"<td><font color=blue>\".$row[0].\"</font><br>\";\r\t\techoTwoSentences($row[3],$row[4],$row[5],$row[6],$row[7],false);\r \t}\r \techo \"</table>\\n\";\r}", "function printResult($result) {\r\n $i = 1;\r\n while ($row = OCI_Fetch_Array($result, OCI_RETURN_NULLS)) {\r\n if (oci_field_is_null($result,$i)) {\r\n echo 0;\r\n } else {\r\n echo $row[$i-1]; //or just use \"echo $row[0]\" \r\n }\r\n $i += $i;\r\n }\r\n}", "function print_allReview($result) {\n echo \"<br>Reviews:<br>\";\n echo \"<table>\";\n echo \"<tr><th>Review Number</th><th>Room Type</th><th>Rating</th><th>Content</th></tr>\";\n \n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr><td>\" . $row[0] . \"</td><td>\" . $row[1] . \"</td><td>\" . $row[2] . \"</td><td>\" . $row[3] . \"</td></tr>\"; //or just use \"echo $row[0]\"\n }\n echo \"</table>\";\n \n }", "public function select($table, $fields, $where, $order, $start);", "public function printResult ($term = NULL) {\n print $this->saveResult($term);\n\n }", "public function queryAll(){\r\n\t\t$sql = 'SELECT * FROM printer';\r\n\t\t$sqlQuery = new SqlQuery($sql);\r\n\t\treturn $this->getList($sqlQuery);\r\n\t}", "protected function getSelectStatement()\n {\n return \"SELECT BookID, ISBN10, ISBN13, Title, CopyrightYear, TrimSize, PageCountsEditorialEst\n as PageCount, Description, CoverImage, Status, Subcategories.SubcategoryID, SubcategoryName, Imprints.ImprintID, Imprint, BindingType FROM Books\n JOIN Statuses ON (Books.ProductionStatusID = Statuses.StatusID) JOIN Subcategories ON \n (Books.SubcategoryID = Subcategories.SubcategoryID) JOIN Imprints USING (ImprintID) JOIN BindingTypes USING (BindingTypeID)\";\n }", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "public function display_data()\n\t{\n\t\t//get records\n\t\t$record_set = $this->connection->query\n\t\t(\"\n\t\t\tselect\n\t\t\t\tBoothID as ID,\n\t\t\t\tCONCAT ('Booth ', BoothNum) as selection\n\t\t\tfrom Booth\n\t\t\");\n\t\t$records = $record_set->fetchAll();\n\t\t$record_set->closeCursor();\n\n\t\t//return records\n\t\treturn $records;\n\n\t}", "function get_list_contents($sql, $preselect = null) {\n \n try {\n $userdb = userConnect();\n $stmt = $userdb->query($sql);\n \n while ($record = $stmt->fetch(PDO::FETCH_NUM)) {\n if ($preselect == $record[0]) {\n $selected = \"selected\";\n } else {\n $selected = null;\n }\n echo '<option value = \"' . $record[0] . '\" ' . $selected . '>' . $record[1] .'</option>';\n }\n } catch (PDOException $e) {\n echo $e->getMessage();\n die();\n }\n }", "public function execute() {\n\t\t$data = $this->getResultData();\n\t\t$this->printText($data[0]);\n\t}", "public function select($statement, $named_placeholder){\n\n // prepared statement (send statement to server + checks syntax)\n $stmt = $this->conn->prepare($statement);\n\n $stmt->execute($named_placeholder);\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n return $result;\n\n }", "public function __toString(){\n\t\t$output = '';\n\t\tforeach ($this->_queries as $query){\n\t\t\tif (isset($query['sql'])){\n\t\t\t\t$output .= $query['sql'] . PHP_EOL . PHP_EOL;\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "function stream_results(){\r\n // \r\n //Get all the subjects that this student is taught \r\n $subjects= $this->get_student($stream, $grade, $year);\r\n //\r\n $sql= \"select student.name as name\";\r\n // \r\n //Appends every subjects name\r\n foreach ($subjects as $value) {\r\n //\r\n $sql.\"{$value}.score as $value\"; \r\n }\r\n \r\n }", "function show_records($dbc) {\r\n\t# Create a query to get the name and price sorted by price\r\n\t$query = 'SELECT num, fname, lname FROM presidents ORDER BY num ASC' ;\r\n\t\r\n\t# Execute the query\r\n\t$results = mysqli_query( $dbc , $query ) ;\r\n\tcheck_results($results) ;\r\n\r\n\t# Show results\r\n\tif( $results )\r\n\t{\r\n \t\t# But...wait until we know the query succeed before\r\n \t\t# rendering the table start.\r\n \t\t echo '<H1>Dead Presidents</H1>' ;\r\n\t\techo '<TABLE>';\r\n\t\t echo '<table border = \"1\"';\r\n\t\t echo '<TR>';\r\n\t\t echo '<TH>Number</TH>';\r\n\t\t echo '<TH>First Name</TH>';\r\n\t\t echo '<TH>Last Name</TH>';\r\n\t\t echo '</TR>';\r\n\t\t # For each row result, generate a table row\r\n\t\t while ( $row = mysqli_fetch_array( $results , MYSQLI_ASSOC ) )\r\n\t\t {\r\n\t\t\techo '<TR>' ;\r\n\t\t\techo '<TD>' . $row['num'] . '</TD>' ;\r\n\t\t\techo '<TD>' . $row['fname'] . '</TD>' ;\r\n\t\t\techo '<TD>' . $row['lname'] . '</TD>' ;\r\n\t\t\techo '</TR>' ;\r\n\t\t }\r\n\t\t # End the table\r\n\t\t echo '</TABLE>';\r\n\t\t # Free up the results in memory\r\n\t\t mysqli_free_result( $results ) ;\r\n\t\t\t}\r\n}", "function printResults(&$results) {\n // the profile name and total sessions.\n if (count($results->getRows()) > 0) {\n\n // Get the profile name.\n $profileName = $results->getProfileInfo()->getProfileName();\n\n // Get the entry for the first entry in the first row.\n $rows = $results->getRows();\n $sessions = $rows[0][0];\n\n // Print the results.\n print \"First view (profile) found: $profileName\\n\";\n print \"Total sessions: $sessions\\n\";\n } else {\n print \"No results found.\\n\";\n }\n}", "public function doSelect ($sql) {\n\n\t// fetch data from database via query\n\t$result = $this->_sendQuery($sql);\n\tif (!$result) return false;\n\n\t// sum output in array\n\t$output = array();\n\twhile ($row = mysql_fetch_assoc($result)) $output[] = $row;\n\n\treturn $output;\n }", "function print_Review($result) {\n echo \"<br>Review about the room type:<br>\";\n echo \"<table>\";\n echo \"<tr><th>Rating</th><th>Content</th></tr>\";\n \n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr><td>\" . $row[0] . \"</td><td>\" . $row[1] . \"</td></tr>\"; //or just use \"echo $row[0]\"\n }\n echo \"</table>\";\n \n }", "function printResults(&$results) {\n\t // the profile name and total sessions.\n\t if (count($results->getRows()) > 0) {\n\n\t // Get the profile name.\n\t $profileName = $results->getProfileInfo()->getProfileName();\n\n\t // Get the entry for the first entry in the first row.\n\t $rows = $results->getRows();\n\t $sessions = $rows[0][0];\n\n\t // Print the results.\n\t print \"First view (profile) found: $profileName\\n\";\n\t print \"Total sessions: $sessions\\n\";\n\t } else {\n\t print \"No results found.\\n\";\n\t }\n\t}", "public function displayrecords()\n\t{\n\t$query=$this->db->query(\"select * from doctors\");\n\treturn $query->result();\n\t}", "public function selectdata(){\n$this->autoRender=false;\n$data=$this->connection->execute(\"select * from users\")->fetchAll();\nprint_r($data);\n}", "protected static function select()\n {\n }", "function testDBSelect() {\r\n\t$db = MetadataDB::getInstance();\r\n\t// error in sql...\r\n\t$sql = 'select varable from metadata';\r\n\t$result = $db->select($sql);\r\n\tif (!$result) {\r\n\t} else {\r\n\t\t//print 'All OK!';\r\n\t}\r\n}", "function printTable($resultFromSQL, $namesOfColumnsArray)\n{\n echo \"<br>Here is the output, nicely formatted:<br>\";\n echo \"<table>\";\n echo \"<tr>\";\n // iterate through the array and print the string contents\n foreach ($namesOfColumnsArray as $name) {\n echo \"<th>$name</th>\";\n }\n echo \"</tr>\";\n\n while ($row = OCI_Fetch_Array($resultFromSQL, OCI_BOTH)) {\n echo \"<tr>\";\n $string = \"\";\n\n // iterates through the results returned from SQL query and\n // creates the contents of the table\n for ($i = 0; $i < sizeof($namesOfColumnsArray); $i++) {\n $string .= \"<td>\" . $row[\"$i\"] . \"</td>\";\n }\n echo $string;\n echo \"</tr>\";\n }\n echo \"</table>\";\n}", "function AccountsOutput() {\r\n\t $conn = new mysqli($GLOBALS[\"serverHost\"], $GLOBALS[\"serverUsername\"], $GLOBALS[\"serverPassword\"], $GLOBALS[\"database\"]);\r\n\t $conn->set_charset(\"utf8\");\r\n\t //Show what it needs to select\r\n\t $SQLsentence = \"SELECT accounts_id, user FROM accounts\";\r\n\t $stmt = $conn->prepare($SQLsentence);\r\n\t //What variable to put data into\r\n\t $stmt->bind_result($idfromdb, $emailfromdb);\r\n\t $stmt->execute();\r\n\t $lines = \"\";\r\n\t //Create Tabel from results\r\n\t while($stmt->fetch()) {\r\n\t\t$lines .= \"<td>\" .$idfromdb .\"</td>\\n\"; \r\n\t\t$lines .= \"<td>\" .$emailfromdb .\"</td></tr>\\n\";\r\n\t }\r\n\t if(!empty($lines)) {\r\n\t\t $notice = \"<table>\\n<tr>\\n\" .'<th>ID</th>';\r\n\t\t $notice .= \"\\n\" .'<th>Email</th>';\r\n\t\t $notice .= \"</tr>\\n\" .$lines .\"</table>\\n\";\r\n\t }\r\n\t //Close connection\r\n\t $stmt->close();\r\n\t $conn->close();\r\n\t return $notice;\r\n }", "function print_pure_table($query_result, $headers) {\n echo \"<table class=\\\"pure-table pure-table-bordered\\\">\";\n if ($headers) {\n echo $headers;\n } else {\n echo \"<thead><tr>\";\n for ($i = 0; $i < pg_num_fields($query_result); $i++) {\n $fieldname = pg_field_name($query_result, $i);\n echo \"<th>$fieldname</th>\";\n }\n echo \"</tr></thead>\";\n }\n \n echo \"<tbody>\";\n while ($row = pg_fetch_row($query_result)) {\n echo \"<tr>\";\n $num = pg_num_fields($query_result);\n for ($i = 0; $i < $num; $i++) {\n echo \"<td>$row[$i]</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</tbody>\";\n echo \"</table>\";\n }", "public function testSelectStmt()\n {\n $select = $this->getConnection()\n ->select()\n (['blog_title', 'blog_id'])\n ('dummy_posts')\n ('WHERE blog_title = :title');\n return $this->assertEquals($select, \"SELECT blog_title, blog_id FROM dummy_posts WHERE blog_title = :title\");\n }", "function Show()\n\t{\n\t\tif(!$this->Ready())\n\t\t\treturn $this->Error('query.exec', __FUNCTION__);\n\t\t\n\t\treturn $this->query;\n\t}", "function View($condition,$table,$where_condition,$orderby){\n\t\t$select = \"select $condition from $table $where_condition $orderby\";\n\t\t$run = $this->connect->query($select);\n\t\t\n\t\tif($run->num_rows >= 1){\n\t\t\t\n\t\t\twhile($fetch = $run->fetch_assoc())\n\t\t\t{\n\t\t\t\t$data[] = $fetch;\n\t\t\t} //while loop close\n\t\t\treturn $data;\n\t\t} // if num_rows close\n\t}", "function print_videoinfo_results($display_count, $count, $query_result) {\n // Get the total number of matches\n $count_row = pg_fetch_row($count);\n $total_count = $count_row[0];\n // Update the display count to be the minimum between display count and total count.\n $display_count = $total_count < $display_count ? $total_count : $display_count; \n\n // Print results table.\n echo \"<table class=\\\"pop-over-table pure-table pure-table-bordered\\\">\";\n echo \"<thead><tr>\";\n echo \"<td>VID</td>\";\n echo \"<td>Title</td>\";\n echo \"<td>Year</td>\";\n echo \"<td>Certification</td>\";\n echo \"</tr></thead><tbody>\";\n\n while ($row = pg_fetch_row($query_result)) {\n echo \"<tr>\";\n $num = pg_num_fields($query_result);\n\n for ($i = 0; $i < $num; $i++) {\n if ($i == 0) {\n echo '<td class=\"videoinfo_vid\">'.$row[$i].'</td>';\n } else if ($i == 1) {\n echo '<td class=\"videoinfo_title\">'.$row[$i].'</td>';\n } else if ($i == 2) {\n echo '<td class=\"videoinfo_year\">'.$row[$i].'</td>';\n } else if ($i == 3) {\n echo '<td class=\"videoinfo_certification\">'.$row[$i].'</td>';\n } else {\n echo\"<td>\".$row[$i].\"</td>\";\n }\n }\n echo \"<tr>\";\n }\n echo \"</tbody></table>\";\n\n // Echo display count summary.\n echo \"<p class=\\\"count_summary\\\">Showing: \".$display_count.\" of \".$total_count.\"</p>\";\n }", "public function testResultGetStatement()\n {\n \t$result = $this->conn->query(\"SELECT * FROM test WHERE status='ACTIVE'\");\n \t$this->assertEquals(\"SELECT * FROM test WHERE status='ACTIVE'\", $result->getStatement());\n }", "abstract function printOutput()", "function print_user_name_results($display_count, $count, $query_result) {\n // Get the total number of matches\n $count_row = pg_fetch_row($count);\n $total_count = $count_row[0];\n // Update the display count to be the minimum between display count and total count.\n $display_count = $total_count < $display_count ? $total_count : $display_count; \n\n // Print results table.\n echo \"<table class=\\\"pop-over-table pure-table pure-table-bordered\\\">\";\n echo \"<thead><tr>\";\n echo \"<td>UID</td>\";\n echo \"<td>First Name</td>\";\n echo \"<td>Last Name</td>\";\n echo \"</tr></thead><tbody>\";\n while ($row = pg_fetch_row($query_result)) {\n echo \"<tr>\";\n $num = pg_num_fields($query_result);\n for ($i = 0; $i < $num; $i++) {\n // echo\"<td>\".$row[$i].\"</td>\";\n if ($i == 0) {\n echo '<td class=\"userinfo_uid\">'.$row[$i].'</td>';\n } else if ($i == 1) {\n echo '<td class=\"userinfo_first_name\">'.$row[$i].'</td>';\n } else if ($i == 2) {\n echo '<td class=\"userinfo_last_name\">'.$row[$i].'</td>';\n } else {\n echo\"<td>\".$row[$i].\"</td>\";\n }\n }\n echo \"<tr>\";\n }\n echo \"</tbody></table>\";\n\n // Echo display count summary.\n echo \"<p class=\\\"count_summary\\\">Showing: \".$display_count.\" of \".$total_count.\"</p>\";\n }", "function printResultPerBranch($result) {\n echo \"<center><table></center>\";\n echo \"<h3>The number of vehicles rented out per branch</h3>\";\n $list = array();\n while ($r = OCI_Fetch_Array($result, OCI_BOTH)) {\n array_push($list, $r);\n }\n if (sizeof($list) != 0) {\n echo \"<tr><th>Number Of Vehicles per Branch</th><th>City</th><th>Location</th></tr>\";\n foreach ($list AS $row) {\n echo \"<tr><td>\" . $row[\"0\"] . \"</td><td>\" . $row[\"1\"] . \"</td><td>\" . $row[\"2\"] . \"</td></tr>\"; //or just use \"echo $row[0]\"\n }\n } else {\n echo \"There is no car rented today!!!\";\n }\n echo \"</table>\";\n }", "function print_all_subjects () {\n global $dbconnect;\n $query = \"SELECT * FROM subjects ORDER BY subj_id ASC;\";\n $result = mysql_query($query, $dbconnect);\n confirm_query($result);\n\twhile ($row = mysql_fetch_array($result)){\n\t\techo $row['first_name'] . \" \" . $row['last_name'] . \"<br />\";\n\t}\n}" ]
[ "0.6950783", "0.67496943", "0.6613942", "0.654965", "0.65123034", "0.64767873", "0.64480597", "0.6403819", "0.6398647", "0.63724464", "0.6328578", "0.6308028", "0.62927955", "0.6250563", "0.624988", "0.6233478", "0.61994684", "0.61688346", "0.6125552", "0.61152214", "0.6112287", "0.6043975", "0.6009997", "0.5996182", "0.5989012", "0.5966445", "0.5966445", "0.5966445", "0.59647614", "0.59647614", "0.59564704", "0.5947645", "0.5946754", "0.59260905", "0.59114075", "0.5874308", "0.58597624", "0.5848915", "0.58483565", "0.58343405", "0.5808946", "0.5807574", "0.5805935", "0.58024883", "0.579792", "0.57925117", "0.5772674", "0.57699734", "0.57511455", "0.57415175", "0.57254386", "0.5721975", "0.570322", "0.56557", "0.56481445", "0.56412494", "0.5640468", "0.56292194", "0.56237286", "0.56229615", "0.56223965", "0.5617711", "0.559851", "0.5588162", "0.5586154", "0.5583649", "0.55724835", "0.55706894", "0.554535", "0.55435884", "0.55355614", "0.5533481", "0.5527296", "0.55181986", "0.5513996", "0.55070585", "0.54910874", "0.54860497", "0.5473093", "0.54642606", "0.5463001", "0.54449666", "0.54443544", "0.54404956", "0.5439949", "0.54324067", "0.5426565", "0.54232514", "0.5411628", "0.5407636", "0.540608", "0.5402082", "0.53926885", "0.53865725", "0.53783137", "0.5366511", "0.53578943", "0.5356791", "0.5353616", "0.5348245", "0.5343656" ]
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}" ]
[ "0.7594622", "0.7594622", "0.7588457", "0.7580005", "0.75723624", "0.7499764", "0.7436887", "0.74322647", "0.7387517", "0.735172", "0.73381543", "0.73117113", "0.72958225", "0.7280436", "0.7273787", "0.72433424", "0.7230227", "0.7225085", "0.71851814", "0.71781176", "0.7174025", "0.7149406", "0.71431303", "0.7142905", "0.7136737", "0.712733", "0.7122102", "0.71148264", "0.71148264", "0.71148264", "0.7111841", "0.7092733", "0.70843536", "0.70822084", "0.7079442", "0.70571405", "0.70571405", "0.7055195", "0.70391846", "0.7039114", "0.7035626", "0.7033991", "0.70300245", "0.7026507", "0.7026417", "0.7019451", "0.7017105", "0.7004775", "0.70031846", "0.6999904", "0.6995238", "0.6994825", "0.699354", "0.6988824", "0.6986871", "0.6965804", "0.6965542", "0.69560695", "0.69515944", "0.6950682", "0.6947703", "0.69433117", "0.6941539", "0.6939613", "0.69377476", "0.69377476", "0.693678", "0.69344354", "0.69314486", "0.6927608", "0.69264024", "0.6922966", "0.69181216", "0.69150716", "0.6911192", "0.69095594", "0.69092506", "0.6907887", "0.69018227", "0.69008595", "0.69006085", "0.6900209", "0.68949944", "0.6892768", "0.6891944", "0.6891552", "0.6891552", "0.6891443", "0.68886423", "0.6888326", "0.68856037", "0.68835604", "0.68813664", "0.6878345", "0.6876079", "0.6873206", "0.6873183", "0.687048", "0.687014", "0.686966", "0.68695843" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $rules = array( 'tagno' => 'required|max:8|min:6|unique:cards', ); $validator = Validator::make(Input::all(), $rules); $id = Input::get('user_id'); if ($validator->fails()) { $messages = $validator->messages(); return Redirect::to('/users/'.$id) ->withErrors($validator); }else { $card = new Card; $card->user_id = $id; $card->tagno = Input::get('tagno'); $card->status = "Active"; $card->save(); $user = User::find($id); $user->isActive = 1; $user->save(); return redirect()->route('users.index') ->with('success', 'Tag No Assigned Successfully'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.7285922", "0.714503", "0.71324795", "0.6639801", "0.6620405", "0.6568167", "0.65257645", "0.650948", "0.64484984", "0.6375281", "0.6373189", "0.63650924", "0.63650924", "0.63650924", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731" ]
0.0
-1
Display the specified resource.
public function show($id) { if(Auth::user()->isActive == true) { $card = Card::where('user_id', '=', $id)->first(); $logs = Log::where('card_id', '=', $card->id)->get(); return view('tags.edit', compact('card', 'logs')); }else { return view('tags.edit'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show(Resena $resena)\n {\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function show()\n\t{\n\t\t\n\t}", "public function get_resource();", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "public function display() {\n echo $this->render();\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n {\n //\n $this->_show($id);\n }", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public abstract function display();", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "abstract public function resource($resource);", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8232636", "0.81890994", "0.68296117", "0.64987075", "0.649589", "0.64692974", "0.64633286", "0.63640857", "0.6307513", "0.6281809", "0.621944", "0.61926234", "0.61803305", "0.6173143", "0.61398774", "0.6119022", "0.61085826", "0.6106046", "0.60947937", "0.6078597", "0.6047151", "0.60409963", "0.6021287", "0.5989136", "0.5964405", "0.5962407", "0.59518087", "0.59309924", "0.5921466", "0.5908002", "0.5908002", "0.5908002", "0.59051657", "0.5894554", "0.5871459", "0.5870088", "0.586883", "0.5851384", "0.58168566", "0.58166975", "0.5815869", "0.58056176", "0.5799148", "0.5795126", "0.5791158", "0.57857597", "0.5783371", "0.5761351", "0.57592535", "0.57587147", "0.5746491", "0.57460666", "0.574066", "0.5739448", "0.5739448", "0.57295275", "0.57293373", "0.5729069", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57214445", "0.57149816", "0.5712036", "0.5710076", "0.57073003", "0.5707059", "0.5705454", "0.5705454", "0.5700382", "0.56997055", "0.5693362", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "public function update($request, $id);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "abstract public function put($data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public abstract function update($object);", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update($id, $input);", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function put($path, $data = null);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445", "0.58630455", "0.58540666", "0.58540666", "0.5851948", "0.5816257", "0.58070177", "0.5752376", "0.5752376", "0.57359827", "0.5723941", "0.57152426", "0.56958807", "0.5691061", "0.56881654", "0.5669518", "0.5655434", "0.5651897", "0.56480426", "0.5636727", "0.56354004", "0.5633156", "0.5632135", "0.5629063", "0.5621358", "0.56089175", "0.5602031", "0.55927175", "0.5582773", "0.558176", "0.5581365", "0.5575607", "0.5571989", "0.55672973", "0.5562929", "0.55623275", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55598706", "0.55560726", "0.55558753", "0.5554241", "0.55534166", "0.5552986", "0.55440396", "0.55438566", "0.5540619", "0.55394524", "0.5536144", "0.5535339", "0.5534803", "0.5524157", "0.55188423", "0.55163455", "0.55135876", "0.5509835", "0.5507501", "0.55068344", "0.55034274", "0.5501476", "0.55010915", "0.5499286", "0.5497852", "0.54958415", "0.54958415", "0.5494513", "0.5494261", "0.54935366", "0.54931587", "0.54917634", "0.54836094", "0.5479455", "0.5478885", "0.5478268", "0.54654354", "0.54645413", "0.5461025", "0.54568535" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Show the confirm password view.
public function show(): View { return view('auth.confirm-password'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showPasswordForm()\n {\n return view('parameters.users.change_password');\n }", "public function showEditPassword()\n {\n return view('pages.settings.password.index');\n }", "public function showpassword()\n\t\t{\n\t\t\tif(Auth::check()) {\n\t\t\t\treturn View::make('updatepassword');\n\t\t\t} else {\n\t\t\t\tApp::abort(403);\n\t\t\t}\n\t\t}", "public function changePassowrdShow(){\n return view(\"pages.changepassword\");\n }", "public function render(): View\n {\n return view('hearth::components.password-confirmation');\n }", "public function passwordPage() {\n return view('admin.account.change_password');\n }", "public function viewChangePassword()\n {\n // header and module properties\n\t\t$this->data['page_module'] = MY_ACCOUNT_MODULE;\n\t\t$this->data['page_title'] = CHANGE_PASSWORD_TITLE;\n\t\t\n // to preserve previous url, check if the validation failed\n if (!Session::has('danger')) {\n $this->setPreviousListURL(strtolower(CHANGE_PASSWORD_TITLE)); \n \n // also remove the user_photo session\n Session::forget('user_photo');\n }\n\n // load the show form\n return View::make('my_account.change_password')->with('data', $this->data);\n }", "public function showChangePasswordForm()\n {\n return view('auth.changepassword');\n }", "public function showChangePasswordForm()\n {\n return view('dashboard.change-password');\n }", "public function showChangePasswordForm(){\n return view('admin.change-password');\n }", "public function showResetPassword() {\n\t\treturn view(\"pages.passwordreset.resetpassword\");\n\t}", "public function showPasswordChanger(array $data)\n {\n \\set_meta('title', \\trans('orchestra/foundation::title.account.password'));\n\n return \\view('orchestra/foundation::account.password', $data);\n }", "public function editPassword(){\n return view(editPassword);\n }", "public function showForgotPassword() {\n\t\treturn view(\"pages.passwordreset.forgotpassword\");\n\t}", "public function password()\n {\n return view('account.account.change-password');\n }", "public function editPassword(){\n \treturn view('auth.passwords.changePass');\n }", "public function showPasswordRequestPage()\n {\n $user = User::first();\n\n return view('users.password_request', compact('user'));\n }", "public function cngpassword()\n {\n return view('scout.CngPassword');\n }", "public function editPasswordAdmin()\n {\t\n \treturn view('setting.edit-password-admin');\n }", "public function forgot_password()\n {\n return View::make(Config::get('confide::forgot_password_form'));\n }", "public function passwordChangeForm()\n {\n return view('turtle::auth.password.change');\n }", "public function showResetPassword()\n {\n return view('users.password_reset');\n }", "public function cngpassword()\n {\n return view('user.CngPassword');\n }", "public function showResetPasswordForm(){\n return view('auth.passwords.reset');\n }", "public function voterChangePassword()\n {\n return view('voter.voterChangePassword');\n }", "public function changePasswordForm()\n {\n\n return view('changePassword');\n }", "public function change_password()\n {\n return view('backend.profile.change-password');\n }", "public function passwordForgotConfirmAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $validator = $this->view->validator;\n\n // set the input params\n $requiredParams = array(\n 'emailAddress',\n );\n\n $input = $this->processInput( $requiredParams, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'authPasswordForgot' );\n }\n\n $inputEmail = $input->emailAddress;\n\n $user = $site->getUserByEmailAddress( $inputEmail );\n\n $validator->checkValidUser( $user, $errors );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'authPasswordForgot' );\n }\n\n if ( $user->getUserType() == BeMaverick_User::USER_TYPE_KID ) {\n $emailAddress = $user->getParentEmailAddress();\n } else {\n $emailAddress = $user->getEmailAddress();\n }\n\n $resetPasswordUrl = BeMaverick_Email::getResetPasswordUrl( $site, $user );\n\n // send mail to recover your password\n $vars = array(\n 'RESET_PASSWORD_URL' => $resetPasswordUrl,\n );\n\n BeMaverick_Email::sendTemplate( $site, 'user-forgot-password', array( $emailAddress ), $vars );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'authPasswordForgot' );\n }\n\n return $this->renderPage( 'authPasswordForgotConfirm' );\n }", "function forgotpass() {\r\n load_admin_view('forgot_password_view');\r\n }", "public function change_password() {\n\t\treturn view( 'provider.profile.change_password' );\n\t}", "public function changePassword() {\n return view('/myprofile/myprofilepassword');\n }", "public function getForGotPass()\n {\n return view(\"Home::auth.forgotpass\");\n }", "public function index()\n {\n return view('auth.passwords.change-password');\n }", "public function cngpassword()\n {\n return view('nurse.CngPassword');\n }", "public function getChangePassword() {\n return view('admin.change-password');\n }", "public function forgotPassword()\r\n {\r\n return View::make(Config::get('confide::forgot_password_form'));\r\n }", "public function displayForgotPassword()\n {\n $this->render('forgot-password', ['head'=>['title'=>'Mot de passe oublié', 'meta_description'=>'']]);\n }", "public function getNewPassword()\n\t{\n\n\t\treturn View::make('user.newpassword');\t\n\t}", "public function passwordAction(){\r\n $this->view->password = '';\r\n }", "public function change_pass()\n {\n return view('admin.admins.profile.change_pass');\n }", "public function forgetpassword()\n \t{\n \t\t$this->data['title'] = 'Forgot Password';\n\t\t$this->show_viewFrontInner('forget-password', $this->data);\n \t}", "function confirmPassword() {\n\t\t$fields = $this->_settings['fields'];\n\t\tif (\n\t\t\tSecurity::hash($this->model->data[$this->model->name][$fields['confirm_password']], null, true) \n\t\t\t== $this->model->data[$this->model->name][$fields['password']]\n\t\t) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getForgotPw(){\n\t\t//create forgot password view\n\t\treturn View::make('account.forgot-password');\n\t}", "public function editPassword()\n {\n $this->load_view('Profil Akun', 'user/gantiPassword');\n }", "public function showLinkRequestForm()\n {\n return view('auth.forgotpass');\n }", "public function get_password()\n\t{\n\t\t$user = Auth::user();\n\t\t$form = AccountPresenter::form_password($user);\n\t\t$data = array(\n\t\t\t'eloquent' => $user,\n\t\t\t'form' => $form,\n\t\t);\n\n\t\tSite::set('title', __(\"orchestra::title.account.password\"));\n\n\t\treturn View::make('orchestra::account.password', $data);\n\t}", "public function passwordResetConfirmAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $validator = $this->view->validator;\n\n // set the input params\n $requiredParams = array(\n 'code',\n 'password',\n );\n\n $input = $this->processInput( $requiredParams, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n $password = $input->getUnescaped( 'password' );\n\n // decode the hash and gets its parts, confirm all good and allow user to change password\n list( $userIdentification, $timestamp, $signature ) = explode( '|', base64_decode( urldecode( $input->code ) ) );\n\n // first assume userIdentification is a username\n $user = $site->getUserByUsername( $userIdentification );\n\n // if userIdentification is not a username, use userIdentification as an email address\n if ( ! $user ) {\n $user = $site->getUserByEmailAddress( $userIdentification );\n }\n\n $validator->checkValidUser( $user, $errors );\n $validator->checkValidResetPasswordCode( $site, $userIdentification, $timestamp, $signature, $errors );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n // all passed, so lets change this user's password and log in\n $user->setPassword( $password );\n $user->save();\n\n // set the cookie/log the user in if they are a parent\n// if ( $user->getUserType() == BeMaverick_User::USER_TYPE_PARENT ) {\n// BeMaverick_Cookie::updateUserCookie( $user );\n// }\n\n if ( $user->getUserType() == BeMaverick_User::USER_TYPE_KID ) {\n $toEmailAddress = $user->getParentEmailAddress();\n } else {\n $toEmailAddress = $user->getEmailAddress();\n }\n\n // send mail to recover your password\n $vars = array(\n 'USERNAME' => $user->getUsername(),\n );\n\n BeMaverick_Email::sendTemplate( $site, 'user-reset-password', array( $toEmailAddress ), $vars );\n\n return $this->renderPage( 'authPasswordResetConfirm' );\n }", "public function user_password_change() {\n $data['title'] = 'Change Password';\n return view('user-dashboard.password-change', $data);\n }", "public function getForgotPassSuccess()\n {\n return view(\"Home::auth.forgotpasssuccess\");\n }", "public function get_forgot_password() {\n return View::make('login.forgot-password');\n }", "public function getChangePassword(){\n return view('pages.change_password');\n }", "public function index()\n {\n UpdatePassword::clean();\n return view('auth.passwords.target');\n }", "public function edit()\n {\n return view('auth.change-password');\n }", "public function index()\n {\n return view('user.change-password');\n }", "public function successPassword() {\n $this->loadFrontView('profile/after_password_reset');\n }", "public function changepassword() {\n return view('auth.changepassword');\n }", "public function getChangePasswordForm()\n {\n $this->data['title'] = trans('backpack::base.my_account');\n $this->data['user'] = $this->guard()->user();\n\n return view('backpack::auth.account.change_password', $this->data);\n }", "public function admin_forgot_password_form() {\n if ($this->checkLogin('A') == '') {\n\t\t\t\t$this->load->view(ADMIN_ENC_URL.'/templates/forgot_password.php', $this->data);\n } else {\n redirect(ADMIN_ENC_URL.'/dashboard');\n }\n }", "public function adminPasswordClient()\n {\n return View ('authpages.adminpasswordclient');\n }", "public function changepassword()\n { \n return view('admin.profile.changepassword');\n }", "public function register_show_2()\n {\n return view('fontend.user.verify');\n }", "public function forgetpassword(){\r\n\t\treturn view('forgetpassword');\r\n\t}", "public function actionProfiepassword()\n {\n $model = new PasswortVerandern();\n \n if ($model->load(Yii::$app->request->post())) {\n \n if($model->passwortZurucksetzen(\\Yii::$app->user->getId()))\n {\n return $this->redirect(['index']);\n }\n }\n \n return $this->render('profiepassword',[\n 'model'=>$model\n \n ]);\n }", "public function passwordForgotAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n\n $this->processInput( null, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n return $this->renderPage( 'authPasswordForgot' );\n }", "public function show()\n {\n return view('auth.verify');\n }", "public function actionPassword() {\n\t\t$content = ModelBase::factory('Setting')->handlePassword($this->data);\n\n\t\tif ($content->get('updated')) $this->setAlert('info', 'Password terupdate!');\n\n\t\t// Template configuration\n\t\t$this->layout = 'modules/setting/index.tpl';\n\t\t$data = ModelBase::factory('Template')->getSettingData(compact('content'));\n\n\t\t// Render\n\t\treturn $this->render($data);\n\t}", "public function changePassword()\n {\n $user = Auth::user();\n return view('dashboard.shared.change-password', compact('user'));\n }", "public function showForgetPassword(){\n $input = Input::all();\n\n //check email, token\n if(!empty($input) && !empty($input['email']) && !empty($input['token'])){\n $user = User::where('email', '=', $input['email'])\n ->where('account_token', '=', $input['token'])\n ->first();\n\n if(!empty($user)) {\n // Check expire account token\n\t\t if(User::checkExpiredTime($user) == true){\n\t return View::make('user.reset_password')->with(array('email'=>$input['email'], 'account_token'=>$user->account_token));\n\t\t } else {\n\t\t \treturn Redirect::to('/')->with('forgetPassword', 1);\n\t\t }\n } else {\n \treturn Redirect::to('/')->with('forgetPassword', 1);\n\n }\n }\n return View::make('user.forgot_password');\n }", "public function forgotPassword()\n {\n $breadCrumb = $this->userEngine\n ->breadcrumbGenerate('forgot-password');\n\n return $this->loadPublicView('user.forgot-password', $breadCrumb['data']);\n }", "public function get_change_password() {\n return View::make('login.change-password');\n }", "public function show(Passwords $passwords)\n {\n //\n }", "public function changePassword()\n {\n $breadCrumb = $this->userEngine->breadcrumbGenerate('change-password');\n\n return $this->loadPublicView('user.change-password', $breadCrumb['data']);\n }", "public function index()\n {\n return view(\"auth.passwords.change\");\n }", "public function getChangePasswordByDasboard() {\n\n return view('admin.user.changed-password');\n }", "public function getRemind()\n {\n return view('passwords.remind');\n }", "public function getForgotPassword()\n {\n \treturn view('layouts.forgotPassword');\n }", "Public function configPassword() {\n return view('user.passconfig');\n }", "public function forgot_password(){\n\n $this->data[\"title_tag\"]=\"Lobster | Accounts | Forgot Password\";\n\n $this->view(\"accounts/forgot_password\",$this->data);\n }", "public function render()\n {\n return view('components.password-input');\n }", "public function showReset(){\n return view('resetPassword');\n }", "public function index(){\n $changePassword = Auth::user()->isChangePassword();\n //devuleve la vista\n return view('change-password', ['changepassword' => $changePassword]);\n }", "public function forgotPasswordAction ()\n {\n $this->view->setRenderLevel (View::LEVEL_ACTION_VIEW);\n }", "function forgot_password() {\n $datos['titulo'] = \"Restablecer Contraseña\";\n $this->render_page('usuarios/forgot_password', $datos);\n }", "public function forgotPassword()\n\t{\n\t\t$this->layout->content = View::make('login.password');\n\t}", "public function password_change()\n\t{\n\t\t$data['title'] = \"Change Password\";\n\t\t$this->load->view('admin/user/_header');\n\t\t$this->load->view('admin/user/_left_sideber');\n\t\t$this->load->view('admin/user/view_change_password');\n\t\t$this->load->view('admin/user/_footer');\n\t\t\t\n\t}", "public function password_dosen()\n\t{\n\t\t$data['content'] = 'password/password_dosen';\n\t\t$data['data'] = $this->m_aka->data_dosen();\n\t\t$data['pagination'] = $this->pagination->create_links();\t\t\n\t\t$this->load->view('content', $data);\n\t}", "function password()\n{\n $view = new View('visiteur/password');\n $view->generate();\n}", "public function showLinkRequestForm(): View\n {\n return view('admin::auth.passwords.email');\n }", "public function show($id)\n {\n $pk_user = $id ;\n return view('auth.passwords.verify',compact('pk_user'));\n }", "public function getIndex() {\n return view('password');\n }", "public function actionChangePassword()\n {\n $this->render('changePassword');\n }", "public function passwordChangeForm()\n {\n return view('student.change');\n }", "public static function confirmPasswordView($view, $data = [])\n {\n app()->singleton(ConfirmPasswordViewResponse::class, function () use ($view, $data) {\n return new InertiaViewResponse($view, $data);\n });\n }", "public function create()\n {\n return view('client.changePassword');\n }", "public function show()\n {\n return view('home.login.updateupwd');\n }", "protected function maybe_show_password_form() {\n\t\tif ( $this->password_required() ) {\n\t\t\t$show_pw = false;\n\t\t\t$show_pw = apply_filters('timber/post/content/show_password_form_for_protected', $show_pw);\n\t\t\tif ( $show_pw ) {\n\t\t\t\treturn apply_filters('timber/post/content/password_form', get_the_password_form($this->ID), $this);\n\t\t\t}\n\t\t}\n\t}", "public function forget_password()\n {\n return view('Admin.login.forget_password');\n }", "public function confirmed()\n {\n if(!Auth::check()){\n return redirect()->route('auth.registration');\n }\n\n return view('confirm');\n }", "public function index(){\n return view('profile.change_pass');\n }", "public function changePassword()\n {\n //\n $id = Auth()->user()->id;\n $user = User::find($id);\n return view('customers.change-password',compact('user'));\n\n }" ]
[ "0.7499479", "0.7407867", "0.739694", "0.7326111", "0.73101324", "0.7208387", "0.72012883", "0.7136165", "0.7126773", "0.70967287", "0.7077436", "0.7072494", "0.70516485", "0.70229834", "0.697004", "0.69450086", "0.694277", "0.68801147", "0.6830194", "0.68052155", "0.6788963", "0.6777435", "0.67626846", "0.6761412", "0.6747478", "0.6736665", "0.6722946", "0.6722221", "0.67206305", "0.6717895", "0.66800225", "0.6671157", "0.6652492", "0.6639352", "0.66284734", "0.661861", "0.6615908", "0.66027254", "0.659428", "0.6581011", "0.6576808", "0.65712494", "0.65706617", "0.6565122", "0.6557213", "0.65547234", "0.65484643", "0.65408355", "0.6536643", "0.65305775", "0.652641", "0.65204966", "0.651145", "0.65111864", "0.6508645", "0.6493776", "0.64712155", "0.6464902", "0.64581645", "0.6457478", "0.645701", "0.6452844", "0.6449788", "0.64458615", "0.64363724", "0.6429734", "0.6426812", "0.6423099", "0.64226705", "0.6422145", "0.641835", "0.64170927", "0.641639", "0.640874", "0.6401929", "0.6400858", "0.64004004", "0.639476", "0.63809484", "0.63681805", "0.6365003", "0.63649863", "0.63611597", "0.6350107", "0.63488466", "0.63356394", "0.6332117", "0.63295937", "0.632525", "0.63208854", "0.6317991", "0.63168937", "0.6309438", "0.6306012", "0.6302386", "0.6296466", "0.62937874", "0.6283728", "0.62826514", "0.62790114" ]
0.8507471
0
Confirm the user's password.
public function store(Request $request): RedirectResponse { if (! Auth::guard('web')->validate([ 'email' => $request->user()->email, 'password' => $request->password, ])) { throw ValidationException::withMessages([ 'password' => __('auth.password'), ]); } $request->session()->put('auth.password_confirmed_at', time()); return redirect()->intended(RouteServiceProvider::HOME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function confirmPassword() {\n\t\t$fields = $this->_settings['fields'];\n\t\tif (\n\t\t\tSecurity::hash($this->model->data[$this->model->name][$fields['confirm_password']], null, true) \n\t\t\t== $this->model->data[$this->model->name][$fields['password']]\n\t\t) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function confirmPassword($password, $confirmPassword){\n return $password == $confirmPassword;\n }", "public function updatepassword()\n\t\t{\n\t\t\t$user = Session::get('loggedinuser');\n\t\t\t$userid = DB::table('users')->where('username', $user)->pluck('id');\n\t\t\t$updateduser = User::find($userid);\n\t\t\t$newpassword = Input::get('password');\n\t\t\tif($newpassword == Input::get('confirm')) {\n\t\t\t\t$updateduser->password = Hash::make($newpassword);\n\t\t\t\t$updateduser->save();\n\t\t\t\tSession::flash('successMessage', 'Password successfully updated');\n\t\t\t\treturn Redirect::action('UsersController@index');\n\t\t\t} else {\n\t\t\t\tSession::flash('errorMessage', 'Your passwords do not match!');\n\t\t\t\treturn Redirect::back();\n\t\t\t}\n\t\t}", "public function testInvalidConfirmPassword()\n\t{\n\t\t$this->validator->isPassword(self::USER1_PASSWORD, self::INVALID_PASSWORD);\n\t}", "function confirmUserPass($username, $password){\n\t\t//add slaches if necessary for query\n\t\tif(!get_magic_quotes_gpc()){\n\t\t\t$username = addslashes($username);\n\t\t}\n\t\t\n\t\t//verify that user is in db\n\t\t$q = \"SELECT password FROM \".TBL_USERS.\" WHERE username = '$username'\";\n\t\t$result = mysql_query($q, $this->connection);\n\t\tif(!$result || (mysql_numrows($result) < 1)){\n\t\t\treturn 1;\t//indicates username failure\n\t\t}\n\t\t\n\t\t// Retreive pq from result, strip slashes\n\t\t$dbarray = mysql_fetch_array($result);\n\t\t$dbarray['password'] = stripslashes($dbarray['password']);\n\t\t$password = stripslashes($password);\n\t\t\n\t\t// Validate that password is correct\n\t\tif($password == $dbarray['password']){\n\t\t\treturn 0; //success, uname and pw confirmed\n\t\t}\n\t\telse{\n\t\t\treturn 2;\t//indicates password failure\n\t\t}\n\t}", "public function ask_password()\n {\n factory(User::class)->create(['username' => 'testuser']);\n\n $cmd = $this->artisan('user:password testuser');\n $cmd->expectsQuestion('Password', 'testing');\n $cmd->assertExitCode(0);\n\n $cmd->execute();\n\n $user = User::query()->where('username', 'testuser')->first();\n $this->assertTrue(Hash::check('testing', $user->password));\n }", "public function askPassword()\n {\n $this->ask('What is your password?', function (Answer $answer) {\n $this->user->password = bcrypt($answer->getText());\n\n $this->askBalance();\n });\n }", "function confirmUserPass($username, $password){\r\n /* Add slashes if necessary (for query) */\r\n if(!get_magic_quotes_gpc()) {\r\n\t $username = addslashes($username);\r\n }\r\n\r\n /* Verify that user is in database */\r\n\t $query = \"SELECT password FROM \".TBL_USERS.\" WHERE username = :username\";\r\n\t $stmt = $this->connection->prepare($query);\r\n\t $stmt->execute(array(':username' => $username));\r\n $count = $stmt->rowCount();\r\n \r\n\t if(!$stmt || $count < 1){\r\n return 1; //Indicates username failure\r\n }\r\n\r\n /* Retrieve password from result, strip slashes */\r\n $dbarray = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n /* Validate that password is correct */\r\n if(crypt(sha1($password),$dbarray['password']) == $dbarray['password']){\r\n return 0; //Success! Username and password confirmed\r\n }\r\n else{\r\n return 2; //Indicates password failure\r\n }\r\n }", "function confirmUserPass($username, $password){\r\n /* Add slashes if necessary (for query) */\r\n if(!get_magic_quotes_gpc()) {\r\n\t $username = addslashes($username);\r\n }\r\n\r\n /* Verify that user is in database */\r\n $q = \"SELECT password FROM \".TBL_USERS.\" WHERE username = '$username' and Active=1\";\r\n $result = mysql_query($q, $this->connection);\r\n if(!$result || (mysql_numrows($result) < 1)){\r\n return 1; //Indicates username failure\r\n }\r\n\r\n /* Retrieve password from result, strip slashes */\r\n $dbarray = mysql_fetch_array($result);\r\n $dbarray['password'] = stripslashes($dbarray['password']);\r\n $password = stripslashes($password);\r\n\r\n /* Validate that password is correct */\r\n if($password == $dbarray['password']){\r\n return 0; //Success! Username and password confirmed\r\n }\r\n else{\r\n return 2; //Indicates password failure\r\n }\r\n }", "public function password_verifies() {\n\t\treturn AuthComponent::password($this->data[$this->alias]['old_password']) === $this->data[$this->alias]['password'];\n\t}", "public function password()\n {\n $this->isUser();\n\n $this->data['noCabinetOrAdmin'] = true;\n\n if ($_POST) {\n\n if (!$_POST['old-password'] && !$_POST['new-password']) {\n\n $userModel = new UserModel();\n\n $validateResult = $userModel->validate($_POST);\n\n if ($validateResult === true) {\n\n $checkPassword = $userModel->checkOldPassword($_POST['old-password']);\n\n if ($checkPassword) {\n\n if ($userModel->refreshPassword($_POST)) {\n\n $this->data['success'] = 'Пароль успешно изменен';\n\n } else {\n\n $this->data['warning'] = 'Произошла ошибка';\n }\n\n } else {\n\n $this->data['warning'] = 'Старый пароль введен не правильно';\n }\n\n } else {\n\n $this->data['warning'] = $validateResult;\n }\n\n } else {\n\n $this->data['warning'] = 'Все поля должны быть заполнены';\n }\n }\n\n $this->render('password');\n }", "public function actionPassword()\n {\n if (is_null($this->password)) {\n self::log('Password required ! (Hint -p=)');\n return ExitCode::NOUSER;\n }\n\n if (is_null($this->email) && is_null($this->id)) {\n self::log('User ID or Email required ! (Hint -e= or -i=)');\n return ExitCode::DATAERR;\n }\n\n $model = User::find()->where([\n 'OR',\n [\n 'email' => $this->email\n ],\n [\n 'id' => $this->id\n ]\n ])->one();\n\n if (is_null($model)) {\n\n self::log('User not found');\n\n return ExitCode::NOUSER;\n }\n\n $validator = new TPasswordValidator();\n\n $model->password = $this->password;\n\n $validator->validateAttribute($model, \"password\");\n\n if ($model->errors) {\n\n self::log($model->errorsString);\n\n return ExitCode::DATAERR;\n }\n\n $model->setPassword($this->password);\n\n if (! $model->save()) {\n\n self::log('Password not changed ');\n\n return ExitCode::DATAERR;\n }\n\n self::log($this->email . ' = Password successfully changed !');\n\n return ExitCode::OK;\n }", "public function post_password()\n\t{\n\t\t$input = Input::all();\n\t\t$rules = array(\n\t\t\t'current_password' => array(\n\t\t\t\t'required',\n\t\t\t),\n\t\t\t'new_password' => array(\n\t\t\t\t'required',\n\t\t\t\t'different:current_password',\n\t\t\t),\n\t\t\t'confirm_password' => array(\n\t\t\t\t'same:new_password',\n\t\t\t),\n\t\t);\n\n\t\tif (Auth::user()->id !== $input['id']) return Response::error('500');\n\n\t\t$val = Validator::make($input, $rules);\n\n\t\tif ($val->fails())\n\t\t{\n\t\t\treturn Redirect::to(handles('orchestra::account/password'))\n\t\t\t\t\t->with_input()\n\t\t\t\t\t->with_errors($val);\n\t\t}\n\n\t\t$msg = Messages::make();\n\t\t$user = Auth::user();\n\n\t\tif (Hash::check($input['current_password'], $user->password))\n\t\t{\n\t\t\t$user->password = $input['new_password'];\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tDB::transaction(function () use ($user)\n\t\t\t\t{\n\t\t\t\t\t$user->save();\n\t\t\t\t});\n\n\t\t\t\t$msg->add('success', __('orchestra::response.account.password.update'));\n\t\t\t}\n\t\t\tcatch (Exception $e)\n\t\t\t{\n\t\t\t\t$msg->add('error', __('orchestra::response.db-failed'));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg->add('error', __('orchestra::response.account.password.invalid'));\n\t\t}\n\n\t\treturn Redirect::to(handles('orchestra::account/password'));\n\t}", "public function getConfirmPassword()\n {\n return $this->confirmPassword;\n }", "public function confirmPassword($password = null) {\n\t\tif ((isset($this->data[$this->alias]['password']) && isset($password['temppassword']))\n\t\t\t&& !empty($password['temppassword'])\n\t\t\t&& ($this->data[$this->alias]['password'] === $password['temppassword'])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function confirmUserPass($memberName, $memberPassword){\r\n /* Add slashes if necessary (for query) */\r\n if(!get_magic_quotes_gpc()) {\r\n\t $memberName = addslashes($memberName);\r\n }\r\n\r\n /* Verify that user is in database */\r\n $q = \"SELECT memberPassword FROM \".TBL_USERS.\" WHERE memberName = '$memberName'\";\r\n $result = mysql_query($q, $this->connection);\r\n if(!$result || (mysql_numrows($result) < 1)){\r\n return 1; //Indicates memberName failure\r\n }\r\n\r\n /* Retrieve memberPassword from result, strip slashes */\r\n $dbarray = mysql_fetch_array($result);\r\n $dbarray['memberPassword'] = stripslashes($dbarray['memberPassword']);\r\n $memberPassword = stripslashes($memberPassword);\r\n\r\n /* Validate that memberPassword is correct */\r\n if($memberPassword == $dbarray['memberPassword']){\r\n return 0; //Success! memberName and memberPassword confirmed\r\n }\r\n else{\r\n return 2; //Indicates memberPassword failure\r\n }\r\n }", "public static function password() {\n if ( !isset($_POST['email']) ) {\n return;\n }\n \n $password = substr(Helper::hash(rand(0,16^32).$_POST['email']),0,12);\n \n $result = Database::checkUser($_POST['email']);\n \n if ( $result === false || !is_array($result) ) {\n self::setError('Unbekannter Benutzer!<br>');\n return;\n }\n \n if ( count($result) != 1 ) {\n self::setError('Schwerer Datenbankfehler, bitte kontaktiere einen Administrator!<br>');\n return;\n }\n \n $id = $result[0]['id'];\n $passwordold = $result[0]['password'];\n \n $pw = Helper::hash($password.$_POST['email']);\n \n $success = Database::setPassword($id,$passwordold,$pw);\n if ( $success !== false ) {\n self::passwordMail($_POST['email'],$password);\n self::setError('Ein neues Passwort wurde dir zugeschickt!<br>');\n } else {\n self::setError('Schwerer Datenbankfehler, bitte kontaktiere einen Administrator!<br>');\n }\n }", "function confirmUserPass($username,$password) {\n\t\tglobal $database;\n\t\t$query = \"SELECT password FROM \".TBL_USERS.\" WHERE username = ?\";\n\t\t$stmt = $database->prepare($query);\n\t\t$stmt->bind_param(\"s\", $username);\n\t\t$stmt->execute();\n\t\t$stmt->bind_result($hash);\n\t\t$stmt->fetch();\n\t\t$stmt->close();\n\t\tif($hash == null){\n\t\t\treturn 0;\n\t\t}\n\t\t$result = $this->comparePassword($password, $hash);\n\t\treturn $result;\n\t}", "public function passwordResetConfirmAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $validator = $this->view->validator;\n\n // set the input params\n $requiredParams = array(\n 'code',\n 'password',\n );\n\n $input = $this->processInput( $requiredParams, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n $password = $input->getUnescaped( 'password' );\n\n // decode the hash and gets its parts, confirm all good and allow user to change password\n list( $userIdentification, $timestamp, $signature ) = explode( '|', base64_decode( urldecode( $input->code ) ) );\n\n // first assume userIdentification is a username\n $user = $site->getUserByUsername( $userIdentification );\n\n // if userIdentification is not a username, use userIdentification as an email address\n if ( ! $user ) {\n $user = $site->getUserByEmailAddress( $userIdentification );\n }\n\n $validator->checkValidUser( $user, $errors );\n $validator->checkValidResetPasswordCode( $site, $userIdentification, $timestamp, $signature, $errors );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n // all passed, so lets change this user's password and log in\n $user->setPassword( $password );\n $user->save();\n\n // set the cookie/log the user in if they are a parent\n// if ( $user->getUserType() == BeMaverick_User::USER_TYPE_PARENT ) {\n// BeMaverick_Cookie::updateUserCookie( $user );\n// }\n\n if ( $user->getUserType() == BeMaverick_User::USER_TYPE_KID ) {\n $toEmailAddress = $user->getParentEmailAddress();\n } else {\n $toEmailAddress = $user->getEmailAddress();\n }\n\n // send mail to recover your password\n $vars = array(\n 'USERNAME' => $user->getUsername(),\n );\n\n BeMaverick_Email::sendTemplate( $site, 'user-reset-password', array( $toEmailAddress ), $vars );\n\n return $this->renderPage( 'authPasswordResetConfirm' );\n }", "public function testUserPassword() {\n\t\t// make new User and save it to the database\n\t\t$newPassword = Generate::hash();\n\n\t\t// change the User password\n\t\t$this->visit('/home')\n\t\t\t->click('#user-update-button')\n\t\t\t->seePageIs('/user/update')\n\t\t\t->click('Change Password')\n\t\t\t->seePageIs('/user/password')\n\t\t\t->type($this->password, 'old_password')\n\t\t\t->type($newPassword, 'password')\n\t\t\t->type($newPassword, 'password_confirmation')\n\t\t\t->press('Change Password')\n\t\t\t->seePageIs('/home')\n\t\t\t->see('Your password was changed successfully!')\n\t\t\t->click('Logout')\n\t\t\t->seePageIs('/');\n\n\t\t// test a regular User's login with the new password\n\t\t// TODO: check the database instead of testing the login process\n\t\t$this->visit('/')\n\t\t\t->click('#login-button')\n\t\t\t->seePageIs('/login')\n\t\t\t->type($this->User->email, 'email')\n\t\t\t->type($newPassword, 'password')\n\t\t\t->press('Login')\n\t\t\t->seePageIs('/home')\n\t\t\t->within('#nav', function() {\n\t\t\t\t$this->see('Logout')\n\t\t\t\t\t->dontSee('Login')\n\t\t\t\t\t->dontSee('Admin');\n\t\t\t});\n\t}", "public function passwordForgotConfirmAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n $site = $this->view->site;\n $validator = $this->view->validator;\n\n // set the input params\n $requiredParams = array(\n 'emailAddress',\n );\n\n $input = $this->processInput( $requiredParams, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'authPasswordForgot' );\n }\n\n $inputEmail = $input->emailAddress;\n\n $user = $site->getUserByEmailAddress( $inputEmail );\n\n $validator->checkValidUser( $user, $errors );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'authPasswordForgot' );\n }\n\n if ( $user->getUserType() == BeMaverick_User::USER_TYPE_KID ) {\n $emailAddress = $user->getParentEmailAddress();\n } else {\n $emailAddress = $user->getEmailAddress();\n }\n\n $resetPasswordUrl = BeMaverick_Email::getResetPasswordUrl( $site, $user );\n\n // send mail to recover your password\n $vars = array(\n 'RESET_PASSWORD_URL' => $resetPasswordUrl,\n );\n\n BeMaverick_Email::sendTemplate( $site, 'user-forgot-password', array( $emailAddress ), $vars );\n\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'authPasswordForgot' );\n }\n\n return $this->renderPage( 'authPasswordForgotConfirm' );\n }", "function confirmUser($email, $password){\r\n\t\t$email = mysql_real_escape_string($email);\r\n\t\t$password = mysql_real_escape_string($password);\r\n /* Add slashes if necessary (for query) */\r\n if(!get_magic_quotes_gpc()) {\r\n\t $email = addslashes($email);\r\n }\r\n /* Verify that user is in database */\r\n $q = \"SELECT * FROM users WHERE email = '$email'\";\r\n $result = mysql_query($q, $this->connection);\r\n if(!$result || (mysql_numrows($result) < 1)){\r\n return 1; //Indicates username failure\r\n }\r\n\r\n /* Retrieve password from result, strip slashes */\r\n $dbarray = mysql_fetch_array($result);\r\n $dbarray['password'] = stripslashes($dbarray['password']);\r\n $password = stripslashes($password);\r\n /* Validate that password is correct */\r\n if($password == $dbarray['password']){\r\n return 0; //Success! Username and password confirmed\r\n }\r\n else{\r\n return 2; //Indicates password failure\r\n }\r\n }", "function update_password($uid, $password, $confirm)\r\n\t{\r\n\t\tif(($password == $confirm) && strlen($password) > 6)\r\n\t\t{\r\n\t\t\t$password = array('password' => $this->passwordhash->HashPassword($password));\r\n\r\n\t\t\treturn $this->db->update('users', $password, array('uid' => $uid));\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function isConfirmPassword(){\n \tif(empty($this->data['User']['confirm_password'])){\n \t\treturn false;\n \t}\n \tif(!empty($this->data['User']['confirm_password']) && !empty($this->data['User']['password'])){\n \t\tif($this->data['User']['confirm_password'] == $this->data['User']['password']){\n \t\t\treturn true;\n \t\t}else{\n \t\t\treturn false;\n \t\t}\n \t}\n }", "protected function changePassword() {}", "function confirmPassword($con, $accID, $inpPassword)\n\t{\n\t\t# Get the password stored in the database\n\t\t$sql_pass = $con->prepare(\"SELECT accountPW FROM accounts WHERE accountID = ?\");\n\t\t$sql_pass->bind_param(\"i\", $accID);\n\t\t$sql_pass->execute();\n\n\t\t$result_pass = $sql_pass->get_result();\n\n\t\twhile($row = mysqli_fetch_array($result_pass))\n\t\t{\n\t\t\t$accountPW = $row['accountPW'];\n\t\t}\n\n\t\t# Verify that the input and stored values are the same\n\t\t# password_verify(input, hash); returns bool\n\t\treturn password_verify($inpPassword, $accountPW);\n\t}", "public function post_changePassword() {\n //try to change the password\n $status = AuxUser::changePassword();\n if ($status[0]) {\n //if the password change process worked, redirect to the profile page\n echo '<script>alert(\"Password Changed\");</script>';\n Response::redirect('/profile');\n } else {\n //if not, print the error message\n echo '<script>alert(\"'.$status[1].'\");</script>';\n Response::redirect('/profile');\n }\n }", "function confirmUser($username, $password){\r\n\r\n global $conn;\r\n\r\n /* Add slashes if necessary (for query) */\r\n\r\n if(!get_magic_quotes_gpc()) {\r\n\r\n\t$username = addslashes($username);\r\n\r\n }\r\n\r\n\r\n\r\n /* Verify that user is in database */\r\n\r\n $q = \"SELECT password FROM users WHERE username = '$username'\";\r\n\r\n $result = mysql_query($q,$conn);\r\n\r\n if(!$result || (mysql_numrows($result) < 1)){\r\n\r\n return 1; //Indicates username failure\r\n\r\n }\r\n\r\n\r\n\r\n /* Retrieve password from result, strip slashes */\r\n\r\n $dbarray = mysql_fetch_array($result);\r\n\r\n $dbarray['password'] = stripslashes($dbarray['password']);\r\n\r\n $password = stripslashes($password);\r\n\r\n\r\n\r\n /* Validate that password is correct */\r\n\r\n if($password == $dbarray['password']){\r\n\r\n\r\n\r\n return 0; //Success! Username and password confirmed\r\n\r\n }\r\n\r\n else{\r\n\r\n return 2; //Indicates password failure\r\n\r\n }\r\n\r\n }", "public function updatePassword()\n {\n $user = User::find(Database::connection(), $_SESSION['id']);\n\n // Update password\n return $user->updatePassword(Database::connection(), $_POST['password']);\n }", "public function actionChangePassword()\n {\n $username = $this->prompt(Console::convertEncoding(Yii::t('app', 'Username')) . ':', ['required' => true]);\n $model = $this->findModel($username);\n $model->setPassword($this->prompt(Console::convertEncoding(Yii::t('app', 'New password')) . ':', [\n 'required' => true,\n 'pattern' => '#^.{4,255}$#i',\n 'error' => Console::convertEncoding(Yii::t('app', 'More than {:number} symbols', [':number' => 4])),\n ]));\n $this->log($model->save());\n }", "public function actionPassword()\n {\n $id = Yii::$app->user->id;\n\t\t$model = $this->findModel($id);\n\t\t$model->scenario = 'password';\n if ($model->load(Yii::$app->request->post())) {\t\n\t\t\tif(!Yii::$app->security->validatePassword($model->old_password, Yii::$app->user->identity->password_hash)){\n\t\t\t\tYii::$app->getSession()->setFlash('error', 'Old password not match with current password');\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$model->password = $model->new_password;\n\t\t\t\tif($model->save()) {\n\t\t\t\t\tYii::$app->getSession()->setFlash('success', 'Password have changed.');\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tYii::$app->getSession()->setFlash('error', 'Password is not change.');\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this->redirect(['password']);\n } else {\n return $this->render('password', [\n 'model' => $model,\n ]);\n }\n }", "function confirmUser($username, $password){\n global $conn;\n /* Add slashes if necessary (for query) */\n if(!get_magic_quotes_gpc()) {\n\t$username = addslashes($username);\n }\n\n /* Verify that user is in database */\n $q = \"select password from user_account where username = '$username'\";\n $result = mysql_query($q,$conn);\n if(!$result || (mysql_numrows($result) < 1)){\n return 1; //Indicates username failure\n }\n\n /* Retrieve password from result, strip slashes */\n $dbarray = mysql_fetch_array($result);\n $dbarray['password'] = stripslashes($dbarray['password']);\n $password = stripslashes($password);\n\n /* Validate that password is correct */\n if($password == $dbarray['password']){\n return 0; //Success! Username and password confirmed\n }\n else{\n return 2; //Indicates password failure\n }\n}", "public function setPassword($newPassword);", "public function testChangesAUsersPassword()\n {\n $user = factory(User::class)->create();\n $token = Password::createToken($user);\n $response = $this->post('/password/reset', [\n 'token' => $token,\n 'email' => $user->email,\n 'password' => 'password',\n 'password_confirmation' => 'password'\n ]);\n $this->assertTrue(Hash::check('password', $user->fresh()->password));\n }", "public function password(){\r\n\r\n\t\t\t$user_info = Helper_User::get_user_by_id($this->user_id);\r\n\r\n\t\t\tif($_POST){\r\n\r\n\t\t\t\t$formdata = form_post_data(array(\"old_password\", \"new_password\", \"repeat_new_password\"));\r\n\t\t\t\t\r\n\t\t\t\t$old_password = trim($formdata[\"old_password\"]);\r\n\t\t\t\t$new_password = trim($formdata[\"new_password\"]);\r\n\t\t\t\t$repeat_new_password = trim($formdata[\"repeat_new_password\"]);\r\n\r\n\t\t\t\t$error_flag = false;\r\n\r\n\t\t\t\tif(strlen($old_password) <= 0){\r\n\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\tTemplate::notify(\"error\", \"Please enter the old password\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif(strlen($new_password) > 0 && strlen($repeat_new_password) > 0){\r\n\t\t\t\t\t\t// if both fields are not empty\r\n\r\n\t\t\t\t\t\tif(strlen($new_password) < 6){\r\n\t\t\t\t\t\t\t// the password cannot be less than 6 characters\r\n\t\t\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\t\t\tTemplate::notify(\"error\", \"Too short password. Password must be at least 6 characters long.\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// now compare the two new passwords\r\n\t\t\t\t\t\t\tif(strcmp($new_password, $repeat_new_password) !== 0){\r\n\t\t\t\t\t\t\t\t// both passwords are not same\r\n\t\t\t\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\t\t\t\tTemplate::notify(\"error\", \"New Passwords do not match. Please try again.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tTemplate::notify(\"error\", \"Please enter the new password\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!$error_flag){\r\n\t\t\t\t\t// means there are no any errors\r\n\t\t\t\t\t// get the current user account from the database\r\n\t\t\t\t\t// if the old password matches with the one that the user entered\r\n\t\t\t\t\t// change the password, else throw an error\r\n\r\n\t\t\t\t\t$old_password_hash = Config::hash($old_password);\r\n\r\n\t\t\t\t\tif(strcmp($old_password_hash, trim($user_info->password)) === 0){\r\n\r\n\t\t\t\t\t\t\tif($this->change_password($new_password, $user_info)){\r\n\t\t\t\t\t\t\t\tTemplate::notify(\"success\", \"Password changed successfully\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tredirect(Config::url(\"account\"));\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tTemplate::notify(\"error\", \"Wrong Old Password. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tConfig::set(\"active_link\", \"password\");\r\n\t\t\tConfig::set(\"page_title\", \"Change Account Password\");\r\n\r\n\t\t\t$view_data[\"user_info\"] = $user_info;\r\n\r\n\t\t\tTemplate::setvar(\"page\", \"account/password\");\r\n\t\t\tTemplate::set(\"account/template\", $view_data);\r\n\t\t}", "public function passwordUpdated()\n {\n $message = \\trans('orchestra/foundation::response.account.password.update');\n\n return $this->redirectWithMessage(\\handles('orchestra::account/password'), $message);\n }", "public function showpassword()\n\t\t{\n\t\t\tif(Auth::check()) {\n\t\t\t\treturn View::make('updatepassword');\n\t\t\t} else {\n\t\t\t\tApp::abort(403);\n\t\t\t}\n\t\t}", "protected function changePassword()\n {\n if (empty($this->password)) {\n return;\n }\n $this->validateOnly('password', ['password' => 'min:8|confirmed']);\n $this->user->update([\n 'password' => Hash::make($this->password),\n ]);\n $this->password = null;\n $this->password_confirmation = null;\n }", "public function setPassword($var)\n {\n GPBUtil::checkString($var, False);\n $this->password = $var;\n }", "protected function validatePassword($password, $confirmPassword) {\n\t\tif (empty($password)) {\n\t\t\tthrow new UserInputException('password');\n\t\t}\n\t\t\n\t\t// check confirm input\n\t\tif ($password != $confirmPassword) {\n\t\t\tthrow new UserInputException('confirmPassword', 'notEqual');\n\t\t}\n\t}", "public function validatePassword()\n {\n /* @var $user User */\n $user = Yii::$app->user->identity;\n if (!$user || !$user->validatePassword($this->oldPassword)) {\n $this->addError('oldPassword', 'Incorrect old password.');\n }\n }", "public function actionProfiepassword()\n {\n $model = new PasswortVerandern();\n \n if ($model->load(Yii::$app->request->post())) {\n \n if($model->passwortZurucksetzen(\\Yii::$app->user->getId()))\n {\n return $this->redirect(['index']);\n }\n }\n \n return $this->render('profiepassword',[\n 'model'=>$model\n \n ]);\n }", "public function checkPassword($value);", "function confirm($username) {\r\n $user = $this->userRepository->findByUser($username);\r\n //send user reset mail\r\n $to = $user->getEmail();\r\n $subject = \"Health Forum: Password reset\";\r\n $temp_pass = $this->createRandomPass();\r\n $msg = wordwrap(\"Hi there,\\nThis email was sent using PHP's mail function.\\nYour new password is: \".$temp_pass);\r\n $from = \"From: noreply@tdt4237.idi.ntnu.no\";\r\n $mail = mail($to, $subject, $msg, $from);\r\n\r\n if ($mail) {\r\n $this->app->flash('success', 'Thank you! The password was sent to your email');\r\n } else {\r\n $this->app->flash('failed', 'Error: your email was not sent!');\r\n }\r\n\r\n $this->app->redirect('/login');\r\n }", "protected function confirm_pass($pass1, $pass2){\n if($pass1 != $pass2){\n throw new Exception(\"We detected a password mismatch\");\n }\n }", "public function valid_password_confirm($paswordConfirm) \n\t{\n\t\t$pasword = $this->input->post('inputPassword');\n\t\tif ($pasword !== $paswordConfirm) {\n\t\t\t$this->form_validation->set_message('valid_password_confirm', 'Les mots de passe doivent correspondre.');\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function do_forgot_password()\n {\n if( Confide::forgotPassword( Input::get( 'email' ) ) )\n {\n $notice_msg = Lang::get('confide::confide.alerts.password_forgot');\n return Redirect::action('UserController@login')\n ->with( 'notice', $notice_msg );\n }\n else\n {\n $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');\n return Redirect::action('UserController@forgot_password')\n ->withInput()\n ->with( 'error', $error_msg );\n }\n }", "public function changePassword()\n {\n $this->validateOnly('password', [\n 'password' => 'bail|nullable|required_with:password_confirmation|string|confirmed',\n 'current_password' => 'bail|required',\n ]);\n\n if (!Hash::check($this->current_password, $this->user->password)) {\n $this->addError('current_password', 'Your current password is incorrect.');\n return;\n }\n\n $this->user->password = bcrypt($this->password);\n $this->user->save();\n $this->toast('Password has been changed!', 'success');\n $this->emit('password-updated');\n $this->reset(['password', 'password_confirmation', 'current_password']);\n }", "public function testIsValidLogIn_InCorrectPassword_ReturnsErrorMessage()\n {\n $user = new User();\n\n $user -> email = \"admin@localhost.com\";\n $user -> password = \"secret\";\n\n $this->browse(function ($browser) use ($user) {\n $browser->visit('/login')\n ->pause(1000)\n ->type('@login-email-input', $user->email)\n ->type('@login-password-input', 'test')\n ->click('@login-button')\n ->assertSee('These credentials do not match our records.');\n });\n }", "public function validatePassword(User $user, $password);", "public function validatePassword() {\n if (!$this->hasErrors()) {\n $user = Yii::$app->user->identity;\n if (!$user || !$user->validatePassword($this->password_old)) {\n // $this->addError('password_old', 'Incorrect current password.');\n }\n }\n }", "public function Change_user_password() {\n\t\t$this->load->helper('pass');\n\t\t$user = $this->administration->getMyUser($this->user_id);\n\t\t//password\n\t\t$old_pass = $this->input->post('oldPassword');\n\t\t$newPass = $this->input->post('newPassword');\n\t\t$confirmNewPass = $this->input->post('confirmNewPassword');\n\t\tif($newPass == $confirmNewPass) {\n\t\t\t//check if old password is corrent\n\t\t\t$verify = $this->members->validateUser($user->Username,$old_pass);\n\t\t\tif($verify) {\n\t\t\t\t//validate if the password is in the correct format\n\t\t\t\t$valid_new_pass = checkPasswordCharacters($newPass);\n\t\t\t\tif($valid_new_pass) {\n\t\t\t\t\t$change_pass = $this->members->simple_pass_change($user->ID,$newPass);\n\t\t\t\t\tif($change_pass) {\n\t\t\t\t\t\techo '1';\n\t\t\t\t\t}else {\n\t\t\t\t\t\techo '6';\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\techo '7';\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\techo '8';\t\n\t\t\t}\n\t\t}else {\n\t\t\techo '9';\t\n\t\t}\n\t}", "public function testUpdatePasswordOk()\n {\n // Config\n $currentPassword = '123456789';\n $newPassword = 'abcdef123456';\n\n // Prepare\n $user = factory(User::class)->create([\n 'password' => bcrypt($currentPassword),\n ]);\n\n $requestData = [\n 'currentpassword' => $currentPassword,\n 'newpassword' => $newPassword,\n ];\n\n $response = $this->actingAs($user)->call('POST', $this->accountChangePasswordPostUrl, $requestData);\n\n // Asserts\n $response->assertStatus(302);\n $response->assertRedirect($this->accountChangePasswordPageUrl);\n $response->assertSessionHas('success', trans('home.password_changed'));\n }", "public function validatePassword()\n {\n /* @var $user User */\n $user = Yii::$app->user->identity;\n if (!$user || !$user->validatePassword($this->password)) {\n $this->addError('password', 'Incorrect password.');\n }\n }", "public function getConfirmPassword(): ?string\n {\n return $this->confirmPassword;\n }", "public function testPasswordChange(): void\n {\n // Test strong password - should pass.\n $this->setUpUserPostData(Constants::SAFE_PASSWORD);\n $this->assertIsInt(\\edit_user($this->dummy_user_id));\n\n // Test weak password - should pass as well.\n $this->setUpUserPostData(Constants::PWNED_PASSWORD);\n $this->assertIsInt(\\edit_user($this->dummy_user_id));\n\n // Clean up.\n $this->tearDownUserPostData();\n }", "public function validatePassword($password, $confirm_password){\n if($password == $confirm_password){\n return true;\n }else{\n return false;\n }\n }", "function CheckPasswordMatch($iPassword, $iPassConfirm)\n {\n return $iPassword == $iPassConfirm;\n }", "public function validatePassword()\n {\n if (!$this->hasErrors()) {\n if (!$this->user->validatePassword($this->old_password)) {\n $this->addError('old_password', 'Incorrect email or password.');\n }\n }\n }", "public function test_users_update_short_confirmed_password_error(){\n $this->signInUser();\n $this->user['password_confirmation'] = str_repeat('A', 2);\n $response = $this->patch(route('users.update', ['user' => 5]), $this->user); \n $response->assertSessionHasErrors(['password_confirmation']);\n }", "public function change_password() {\n $flash = null;\n // if the user has tried logging in\n if(isset($_POST['login'])){\n // try verifying the user\n if($this->User->login($_POST['username'], $_POST['old_pass'])) {\n if($_POST['new_pass']==$_POST['new_pass_verify']){\n $this->User->setPassword($User->getId(), $_POST['new_pass']);\n session_write_close();\n header(\"Location: \".app::site_url(''));\n exit(0);\n } else {\n $flash = \"I'm sorry, but the new passwords did not match.\";\n }\n } else {\n $flash = \"That username and/or password is not valid.\";\n }\n }\n return array('flash' => $flash);\n }", "public function action_confirm()\n {\n $hash = $this->request->param('hash');\n\n $model_auth = new Model_Auth();\n\n $id = $model_auth->getUserIdByHash($hash, Model_Auth::TYPE_EMAIL_CONFIRM);\n\n if (!$id) {\n $error_text = 'Ваш аккаунт уже подтвержден';\n $this->template->content = View::factory('templates/error', ['error_text' => $error_text]);\n\n return;\n }\n\n $model_auth->deleteHash($hash, Model_Auth::TYPE_EMAIL_CONFIRM);\n\n $user = new Model_User($id);\n\n if (!$user->id) {\n $error_text = 'Переданы некорректные данные';\n $this->template->content = View::factory('templates/error', ['error_text' => $error_text]);\n\n return;\n }\n\n $user->updateUser($user->id, ['isConfirmed' => 1]);\n\n $this->redirect('/user/' . $id . '?confirmed=1');\n }", "public function confirmUserDeletion(): void\n {\n $this->resetErrorBag();\n\n $this->password = '';\n\n $this->dispatch('confirming-delete-user');\n\n $this->dispatch('open-modal', id: 'confirmingUserDeletion');\n }", "public function setPassword($value);", "public function should_return_ok_after_user_changed_password()\n {\n factory(User::class)->create();\n $this->expectsEvents(PasswordChanged::class);\n\n $this->put('/v1/users/1/password', [\n 'old_password' => 'secrete123',\n 'new_password' => 'new123password',\n 'new_password_confirmation' => 'new123password'\n ]);\n\n $this->seeStatusCode(HttpStatus::OK);\n $this->seeJsonContains(['message' => 'The password has been changed successfully.']);\n\n // Just verifying if old password has been invalidated\n $user = User::find(1);\n $this->assertFalse(Hash::check('secrete123', $user->password));\n $this->assertTrue(Hash::check('new123password', $user->password));\n }", "public function user_password_update(Request $request) {\n if ($request->password != $request->password_confirm) {\n return redirect()->back()->with('fail', 'Password does not match');\n }\n\n $user = User::where('id', $request->id)->first();\n $user->password = Hash::make($request->password);\n $user->save();\n return redirect()->route('user.dashboard')->with('success', 'Password Updated successfully');\n }", "public function action_password() {\n\tif (Session::get(\"username\", null) != null) {\n\t $this->template->title = \"Already authenticated!\";\n\t $this->template->content = 'You have already loggend in! You are ' .\n\t\t Session::get(\"username\") . ' your role is ' .\n\t\t Session::get(\"role\");\n\t return;\n\t}\n\n\tif (Input::post(\"username\", null) == null) {\n\t //there was no user input\n\t $this->template->title = \"Please, authenticate\";\n\t $this->template->content = View::forge(\"account/password\");\n\t} else {\n\t //user is trying to authenticate\n\n\t $user = Model_Orm_Passworduser::password_login(Input::post(\"username\"), Input::post(\"password\"));\n\n\t if ($user == null) {\n\t\tSession::set_flash(\"error\", \"User name or password incorrect\");\n\t\t//and returning the same login form\n\t\t$this->template->title = \"Please, authenticate\";\n\t\t$this->template->content = View::forge(\"account/password\");\n\t } else {\n\t\t//tried to authenticate and succeeded\n\t\t$this->template->title = 'Authentication successful';\n\t\t$this->template->content = 'Authentication was successful, you are ' .\n\t\t\t$user->user_name . ' your role is ' .\n\t\t\t$user->user_role;\n\t\tSession::set(\"username\", $user->user_name);\n\t\tSession::set(\"role\", $user->user_role);\n\t }\n\t}\n }", "public function doForgotPassword()\r\n {\r\n if (Confide::forgotPassword(Input::get('email'))) {\r\n $notice_msg = Lang::get('confide::confide.alerts.password_forgot');\r\n Session::flash('systemMessages', ['notice' => [$notice_msg]]);\r\n } else {\r\n $error_msg = Lang::get('pages.login.errors.wrong_password_forgot');\r\n Session::flash('systemMessages', ['errors' => [[$error_msg]]]);\r\n }\r\n\r\n return Redirect::action('UserController@login');\r\n }", "public function set_password()\n {\n factory(User::class)->create(['username' => 'testuser']);\n\n $cmd = $this->artisan('user:password testuser --password=testing');\n $cmd->assertExitCode(0);\n\n $cmd->execute();\n\n $user = User::query()->where('username', 'testuser')->first();\n $this->assertTrue(Hash::check('testing', $user->password));\n }", "public function confirmPasswordCheck($check = null){\n\t if(isset($this->data[$this->alias]['confirm_password'])){\n\t if($this->hashPassword($this->data[$this->alias]['confirm_password']) != $this->data[$this->alias]['password']){\n\t return false;\n\t }\n\t }\n\t return true;\n\t}", "public function testUpdatePasswordNotGiven(): void { }", "function confirmUser($username, $password){\n global $conn;\n /* Add slashes if necessary (for query) */\n if(!get_magic_quotes_gpc()) {\n $username = addslashes($username);\n }\n\n /* Verify that user is in database */\n $q = \"SELECT user_id, password, admin FROM users WHERE name = '$username'\";\n $result = mysql_query($q,$conn);\n if(!$result || (mysql_numrows($result) < 1)){\n return 1; //Indicates username failure\n }\n\n /* Retrieve password from result, strip slashes */\n $dbarray = mysql_fetch_array($result);\n $dbarray['password'] = stripslashes($dbarray['password']);\n $password = stripslashes($password);\n $admin = $dbarray['admin'];\n $user_id = $dbarray['user_id'];\n\n /* Validate that password is correct */\n if($password == $dbarray['password']){\n\t if($admin) {\n\t\t$_SESSION['admin'] = true;\n\t } else {\n\t\t$_SESSION['admin'] = false;\n\t }\n\t $_SESSION['user_id'] = $user_id;\n return 0; //Success! Username and password confirmed\n }\n else{\n return 2; //Indicates password failure\n }\n}", "protected function _change_pass_submit()\n\t{\n\t\t$user = user_get_account_info();\n\t\t$password = $this->input->post('password');\n\t\t$password = mod('user')->encode_password($password, $user->email);\n\n\n\t\t$data['password'] = $password;\n\t\tt('session')->set_userdata('change_password', $data);\n\t\t$user_security_type = setting_get('config-user_security_change_password');\n\t\tif (in_array($user_security_type, config('types', 'mod/user_security'))) {\n\t\t\tmod('user_security')->send('change_password');\n\t\t\t$location = $this->_url('confirm/change_password');\n\t\t} else {\n\n\t\t\tmodel('user')->update($user->id, compact('password'));\n\t\t\tset_message(lang('notice_update_success'));\n\t\t\t$location = $this->_url('change_pass');\n\n\t\t}\n\n\t\treturn $location;\n\t}", "public function actionChangePassword()\n {\n \t$user = UserAdmin::findOne(Yii::$app->request->get('id'));\n \t$model = new ChangeForcePasswordForm($user);\n \tif ($model->load(Yii::$app->request->post()) && $model->applyChanges()) \n \t{\n \t\tYii::$app->getSession()->setFlash('success', \n \t\t\t\"The user password has been changed\"\n \t\t);\n \t\treturn $this->redirect([\"/admin/crud/user-admin/view\", 'id' => $user->id]);\n \t}\n \t\n \t$this->layout = '@app/layouts/layout-popup-sm';\n \treturn $this->render('change-password', ['model' => $model]);\n }", "public function testUpdatePasswordProblemsWithPass()\n {\n // overriding utility function\n oxTestModules::addFunction(\"oxUtilsView\", \"addErrorToDisplay\", \"{ throw new Exception( \\$aA[0] ); }\");\n\n $oView = oxNew('forgotpwd');\n\n // no pass\n $this->setRequestParameter('password_new', null);\n $this->setRequestParameter('password_new_confirm', null);\n try {\n $blExcp = false;\n $oView->updatePassword();\n } catch (Exception $oExcp) {\n $blExcp = $oExcp->getMessage() == oxRegistry::getLang()->translateString('ERROR_MESSAGE_INPUT_EMPTYPASS');\n }\n $this->assertTrue($blExcp);\n\n // pass does not match\n $this->setRequestParameter('password_new', 'aaaaaa');\n $this->setRequestParameter('password_new_confirm', 'bbbbbb');\n try {\n $blExcp = false;\n $oView->updatePassword();\n } catch (Exception $oExcp) {\n $blExcp = $oExcp->getMessage() == oxRegistry::getLang()->translateString('ERROR_MESSAGE_PASSWORD_DO_NOT_MATCH');\n }\n $this->assertTrue($blExcp);\n\n // pass too short\n $this->setRequestParameter('password_new', 'aaa');\n $this->setRequestParameter('password_new_confirm', 'aaa');\n try {\n $blExcp = false;\n $oView->updatePassword();\n } catch (Exception $oExcp) {\n $blExcp = $oExcp->getMessage() == oxRegistry::getLang()->translateString('ERROR_MESSAGE_PASSWORD_TOO_SHORT');\n }\n\n $this->assertTrue($blExcp);\n }", "public function password(UserRequest $request)\n {\n\t\t// Validate the request\n \t$request->validated();\n\n\n \t// Change the password\n\t\ttry {\n\n\t \t$request->user()->fill([\n\t 'password' => Hash::make($request->password)\n\t ])->save();\n\n\n // Send notification\n $request->user()->notify( new PasswordChangeConfirmation() );\n\n return response(['message' => 'Your account password has been successfully changed.'], 200);\n \n } catch (Exception $e) {\n return response(['message' => $e->getMessage()], 500);\n }\n }", "public function askingForPassword($message = \"Start\")\n {\n $this->comment(\"--------==/*$message*\\==--------\");\n $details[\"email\"] = \"mostafakamel000@gmail.com\";\n $this->info(\"Email:- \".$details[\"email\"]);\n $details[\"password\"] = $this->ask(\"Password\");\n if (config(\"system.developer.email\") == $details[\"email\"] && $details[\"password\"] == config(\"system.developer.password\")) {\n $this->comment(\"Asked for Password\");\n $this->comment(\"--------==/*Make Your Chocie*\\==--------\");\n return;\n }\n $this->error(\"----CommandTrait.askingForPassword Password is Wrong----\");\n $this->comment(\"--------==/**\\==--------\");\n $this->askingForPassword($message);\n }", "public function updatepassword() {\n $request = Request::all();\n $rules = ['old_password' => 'required', 'password' => 'required|confirmed|min:6'];\n $v = Validator::make($request, $rules);\n if ($v->fails()) {\n return redirect()->back()->withErrors($v->errors());\n }\n $user = User::find(Auth::user()->id);\n if (!Hash::check($request['old_password'], $user->password)) {\n return redirect()->back()->withErrors([\"old_password\" => [0 => \"The old password does not match.\"]]);\n }\n\n $user->password = bcrypt($request['password']);\n $user->save();\n return redirect()->back()->with('status', 'Your password changed succesfully');\n }", "function validatePassword($cur, $new1, $new2)\n {\n\t\t//Get user's current hashed password and compare to their entered one here\n\t\tif (getUserElement('password') != md5($cur)) return \"Your current password was incorrect.\\\\n\";\n\t\t//Check if the two new passwords match each other\n\t\tif ($new1 != $new2) return \"Your new password and the confirmation do not match.\\\\n\";\n\t\treturn \"\";\n }", "public function testUserEditNonMatchingPasswords()\n {\n $this->browse(function (Browser $browser) {\n $update_button = self::$locator . ' td .update_button';\n\n $browser->visit('/')\n ->click($update_button)\n ->type('username', self::$username)\n ->type('first_name', 'aaaa')\n ->type('last_name', 'aaaa')\n ->type('password', 'abcd1234')\n ->type('password_confirmation', 'abcder1234')\n ->click('button[type=\"submit\"]')\n\n ->waitForText('The password confirmation does not match.')\n ->assertSee('The password confirmation does not match.');\n });\n }", "public function change_password() {\n\t\treturn view( 'provider.profile.change_password' );\n\t}", "public function password(){\n $_error = \"enter the password\";\n\t\treturn $_error;\n\t}", "public function password()\n {\n return view('account.account.change-password');\n }", "public function checkConfirm($newPass, $confPass)\n {\n if ($newPass !== $confPass)\n return \"The password confirmation doesn't match.\";\n return \"\";\n }", "public function confirm(Request $request, User $user)\n {\n // Apply validation\n $request->validate($this->rules(), $this->validationErrorMessages());\n\n // Fetch the user model\n $user = $user->where('email', $request->email)->firstOrFail();\n\n // Update then save\n $user->password = Hash::make($request->new_password);\n $user->save();\n\n return response()->json([\n 'msg' => 'Password was successfully updated.',\n ]);\n }", "public function validatePassword()\n {\n if (!$this->hasErrors()) {\n $user = $this->getUser();\n\n if (!$user || !$user->validatePassword($this->password)) {\n $this->addError('password', Yii::t('app','Falscher Benutzername oder falsches Passwort.'));\n }\n }\n }", "function update_password()\n {\n }", "public function check_password($password)\n {\n }", "public function ActualizarPassword()\n\t{\n\t\tif(empty($_POST[\"cedula\"]))\n\t\t{\n\t\t\techo \"1\";\n\t\t\texit;\n\t\t}\n\n\t\tself::SetNames();\n\t\t$sql = \" update usuarios set \"\n\t\t\t .\" usuario = ?, \"\n\t\t\t .\" password = ? \"\n\t\t\t .\" where \"\n\t\t\t .\" codigo = ?;\n\t\t\t \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $usuario);\n\t\t$stmt->bindParam(2, $password);\n\t\t$stmt->bindParam(3, $codigo);\t\n\t\t\t\n\t\t$usuario = strip_tags($_POST[\"usuario\"]);\n\t\t$password = sha1(md5($_POST[\"password\"]));\n\t\t$codigo = strip_tags($_SESSION[\"codigo\"]);\n\t\t$stmt->execute();\n\n\t\techo \"<div class='alert alert-info'>\";\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> SU CLAVE DE ACCESO FUE ACTUALIZADA EXITOSAMENTE, SER&Aacute; EXPULSADO DE SU SESI&Oacute;N Y DEBER&Aacute; DE ACCEDER NUEVAMENTE\";\n\t\techo \"</div>\";\t\t\n\t\t?>\n\t\t<script>\n\t\t\tfunction redireccionar(){location.href=\"logout.php\";}\n\t\t\tsetTimeout (\"redireccionar()\", 3000);\n\t\t</script>\n\t\t<?php\n\t\texit;\n\t}", "public function passwordValide () {\n $password = $this->donnees[self::PASSWORD_REF];\n // Le champ password ne doit pas ?tre vide\n if ($password == null) {\n $this->erreur[self::PASSWORD_REF] = \"Veuillez remplir le champ password\";\n return false;\n }\n // Si le password entr? correspond au password contenu dans la base de donn?es on retourne true\n if ($this->utilisateurs->identificationUser($this->donnees[self::LOGIN_REF], $this->donnees[self::PASSWORD_REF])) {\n return true;\n // Sinon on cr?e une erreur et on renvoie false\n } else {\n $this->erreur[self::PASSWORD_REF] .= \"Mot de passe erron?\";\n return false;\n }\n }", "private function pass_check($password, $passwordConfirm){\n\t\tif (strlen($password) < REGISTER_PASSWORD_MIN_LENGTH) {\t\t\t\t\t// check if password is min len\n\t\t\t$this->error .= \"Password must be a minimum length of \" . REGISTER_PASSWORD_MIN_LENGTH . \"\\n\"; // error password is less than min len\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif($password != $passwordConfirm) {\t\t\t\t\t\t\t\t\t\t// check if passwords match\n\t\t\t$this->error .= \"Passwords do not math.\\n\";\t\t\t\t\t\t\t// error passwords do not match\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!preg_match('/(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/', $password)) {\t// check if password contains one uppercase, one lowercase, and one number\n\t\t\t$this->error .= 'your password need a upper case letter (A-Z), one number (0-9), and one lower case letter (a-z).';\t// error does not contain regex\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function changePasswordAction()\n {\n $errors = [];\n if(!empty($_POST)){\n $user = Auth::getUser();\n\n $userValidation = new UserValidation($_POST, ['password']);\n $errors = $userValidation->getNamedErrors();\n\n if(empty($errors)){\n if(password_verify($_POST['oldpass'], $user->password)){\n $user->changePassword($_POST['password']);\n Extra::setMessageCookie(\"Password changed successfully.\");\n $this->redirect(\"/manage-account/\");\n }\n $errors['oldpass'] = \"Password you entered is incorrect.\";\n }\n }\n View::renderTemplate(\"LoggedUser/change-password.html\", [\n 'errors' => $errors\n ]);\n }", "public function changePassword(PasswordChangeForm $form, User $user);", "public function changePassword()\n {\n if( ! Session::isLoggedIn() )\n {\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n $user = User::find(Session::getCurrentUserID());\n\n View::make('templates/front/change-password.php',array());\n }", "public function changePassword(User $user, string $newPassword): void;", "public function change_password()\n {\n $currentPassword = $this->input->post('currentPassword');\n $newPassword = $this->input->post('newPassword');\n\n $isPasswordChanged = $this->CustomModel->changePassword(\n $_SESSION['u_id'], $currentPassword, $newPassword\n );\n\n if ($isPasswordChanged) {\n echo 'success';\n }\n }", "public function test_users_update_long_confirmed_password_error(){\n $this->signInUser();\n $this->user['password_confirmation'] = str_repeat('A', 256);\n $response = $this->patch(route('users.update', ['user' => 5]), $this->user); \n $response->assertSessionHasErrors(['password_confirmation']);\n }", "public function hasPassword() : bool;", "private function user_reset_password(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\n\t\t\tif(!isset($_POST['password']) ) {\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Parameter password is require\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\t\t\tif(!isset($_POST['confirm_password']) ) {\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Parameter confirm_password are require\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\n\t\t\t$user_id = $this->_request['table_doctor_id'];\n\t\t\t$password = $this->_request['password'];\n\t\t\t$cpassword = $this->_request['confirm_password'];\n\n\t\t\tif(!empty($password) && !empty($cpassword) ) {\n\n\t\t\t\tif($password!=$cpassword) {\n\t\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Password and Confirm password is not matched\");\n\t\t\t\t\t$this->response($this->json($error), 200);\n\n\t\t\t\t} else{\n\t\t\t\t\t\t$hashed_password = sha1($password);\n\t\t\t\t\t\t$sql = \"UPDATE table_user SET user_password='\".$hashed_password.\"' WHERE user_id='\".$user_id.\"' \";\n\t\t\t\t\t\t$stmt = $this->db->prepare($sql);\n\t\t\t\t\t\t$update = $stmt->execute();\n\t\t\t\t\t\t$fetchData = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n\t\t\t\t\t\tif(count($update)==1){\n\t\t\t\t\t\t\t$error = array('status' => \"Success\", \"msg\" => \"Profile Updated\");\n\t\t\t\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function comparePassword() {\r\n if ($this->data[$this->name]['Password'] !== $this->data[$this->name]['RetypePass']) {\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n }", "function getConfirmPassword() {\n\t$COMMON = new Common($debug);\n\n\t$sql = \"SELECT * FROM `Proj2Advisors` WHERE `New` = 'true'\";\n \t$rs = $COMMON->executeQuery($sql, \"Advising Appointments\");\n \t$row = mysql_fetch_row($rs);\n\n\treturn $row[5];\n}" ]
[ "0.74273765", "0.7271573", "0.7254553", "0.720662", "0.7135753", "0.70121086", "0.6991235", "0.6979967", "0.6962391", "0.6870015", "0.6773225", "0.6744449", "0.67212915", "0.66951615", "0.6648037", "0.663126", "0.6625498", "0.6601657", "0.65867704", "0.6580025", "0.6575727", "0.6573548", "0.6547192", "0.6486177", "0.64807504", "0.6456852", "0.6452831", "0.64363915", "0.6401179", "0.6398796", "0.6385067", "0.6384175", "0.6379096", "0.6374091", "0.6372404", "0.63290703", "0.6316955", "0.63147855", "0.6304351", "0.63033324", "0.63010234", "0.6286253", "0.6265196", "0.6255126", "0.6251051", "0.6241122", "0.62349856", "0.62320185", "0.62268025", "0.62263983", "0.62249625", "0.62179834", "0.62163925", "0.62159616", "0.6163761", "0.6151106", "0.6148796", "0.61322916", "0.61272675", "0.6124495", "0.6122701", "0.6119725", "0.61188793", "0.6114208", "0.611114", "0.6098356", "0.6090012", "0.60861033", "0.60853016", "0.60821", "0.6081734", "0.6076408", "0.6076104", "0.6072903", "0.60691124", "0.6064767", "0.606469", "0.6063749", "0.6058437", "0.6056796", "0.60528547", "0.6040676", "0.60241854", "0.6023746", "0.60226", "0.60224575", "0.60217273", "0.6012144", "0.6011031", "0.6010855", "0.60101914", "0.6009976", "0.6007606", "0.6006848", "0.6006729", "0.6000515", "0.5990986", "0.5985498", "0.59851325", "0.59849495", "0.5981674" ]
0.0
-1
Record an event was fired.
public function recordEvent($eventName, $payload) { if (! Telescope::isRecording() || $this->shouldIgnore($eventName)) { return; } $formattedPayload = $this->extractPayload($eventName, $payload); Telescope::recordEvent(IncomingEntry::make([ 'name' => $eventName, 'payload' => empty($formattedPayload) ? null : $formattedPayload, 'listeners' => $this->formatListeners($eventName), 'broadcast' => class_exists($eventName) ? in_array(ShouldBroadcast::class, (array) class_implements($eventName)) : false, ])->tags(class_exists($eventName) && isset($payload[0]) ? ExtractTags::from($payload[0]) : [])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRecordingStartedEvent();", "public function testFireEventWithInternalFiredEvent()\n {\n $eventManager = new EventManager;\n $event = 'foor.bar';\n $eventManager->listen(EventManager::FIRED, function ($newEvent) use ($event) {\n $this->assertEquals($newEvent, $event);\n });\n $eventManager->fire($event);\n }", "public function onEvent();", "public function fireEvent($eventName) {}", "public function event_joined()\r\n\t{\r\n\t\r\n\t}", "public function trigger($sender, $e) {\n if(is_null($this->start_time)) {\n $this->start_time = new \\DateTime;\n } else {\n $this->since_start = new \\DateTime;\n }\n $this->events[] = $e;\n $this->event_names[] = $e->name;\n if(!array_key_exists($e->name,$this->amounts)) {\n $this->amounts[$e->name] = 0;\n }\n \n $this->amounts[$e->name]++;\n $this->handle($e);\n }", "public function recordThat(DomainEvent $event);", "public abstract function emitEvent(EventDescriptor $descriptor);", "public function onEventAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "public function triggerEvent($eventId);", "public function on($eventName, $callable);", "public function on($eventName, $callable);", "public function timerEvent()\n {\n echo 'timer is triggered',\"\\n\";\n }", "protected function recordThat(AggregateChangedEventInterface $event): void\n\t{\n\t\t$this->aggregateVersion++;\n\n\t\t$this->recordedEvents[] = $event->withAggregateVersion($this->aggregateVersion);\n\n\t\t$this->apply($event);\n\t}", "abstract public function getEventName();", "abstract public function fire();", "public function recordAction() {\n\t\t \t\t\t\t\n\t\t\n\t}", "public function it_stores_events_raised_by_our_jas_app() : void\n {\n $id = '8741e80e-153f-4254-b13e-21ac8ac34948';\n $this->json('POST', '/store-jas-events', [\n 'id' => $id,\n 'name' => 'GameStarted',\n 'date' => 1_503_301_742_819,\n 'payload' => [\n 'game_id' => 'hoi'\n ]\n ])->seeJson([\n 'created' => true\n ]);\n\n $this->seeInDatabase('jas_events', [\n 'uuid' => $id,\n 'name' => 'GameStarted',\n 'date' => 1_503_301_742_819,\n ]);\n }", "public function handleEvent(PhutilEvent $event) {\n // occurs, this method will be invoked. You should respond to the event.\n\n // In this case, we just echo a message out so the event test script will\n // do something visible.\n\n $console = PhutilConsole::getConsole();\n $console->writeOut(\n \"%s\\n\",\n pht(\n '%s got test event at %d',\n __CLASS__,\n $event->getValue('time')));\n }", "public function send_events()\n {\n }", "public function postEventadd();", "public function recordHit()\n {\n global $configArray;\n\n if ($configArray['Statistics']['enabled']) {\n // Setup Statistics Index Connection\n $solrStats = ConnectionManager::connectToIndex('SolrStats');\n\n // Save Record View\n $solrStats->saveRecordView($this->recordDriver->getUniqueID());\n unset($solrStats);\n }\n }", "public function DoEvent($nEvent) {}", "public function fireEvent(string $eventName): bool;", "public function onEvent( $eventName, $bean )\n\t{\n\t\t$bean->$eventName();\n\t}", "public function postEventDel();", "public function testEmittedEventName()\n {\n $expected = array(\n 'request.before_send' => 'onBeforeSend'\n );\n $this->assertEquals($expected, DaWandaPlugin::getSubscribedEvents());\n }", "public function handle($event)\n {\n $this->handledEvents[] = $event;\n }", "function Core_PostEvent( $eventName, &$object = null, $info = array() )\n{\n\t$notification = new Event_Notification($object, $eventName, $info);\n\tCore_ModuleManager::getInstance()->dispatcher->postNotification( $notification, true, false );\n}", "public function log_view() {\n \\filter_embedquestion\\event\\question_viewed::create(['context' => $this->embedlocation->context,\n 'objectid' => $this->current_question()->id])->trigger();\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 static function event_method()\n {\n return true;\n }", "public function listenForEvents()\n {\n Event::listen(DummyEvent::class, DummyListener::class);\n\n event(new DummyEvent);\n }", "public function _do($EventName, IEvent $Event);", "private function fireEvent($event)\n {\n foreach ($this->eventHandlers as $handler) {\n if ($handler['event'] === $event) {\n call_user_func($handler['handler']);\n }\n }\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 onEvent($event)\n\t{\n\t\tif ($event->type == DB_Models_ObservableWritableModel_1::EVENT_BEFORE_INSERT)\n\t\t{\n\t\t\t/**\n\t\t\t * If document_id is set in the model the service will first try to pull \n\t\t\t * the document to update it. If it is unable to get the record \n\t\t\t * (it will be since this is an insert) it will do nothing and \n\t\t\t * the document will not be inserted.\n\t\t\t */\n\t\t\t$event->model->document_id = NULL;\n\t\t\t$result = $this->saveDocument($event->model);\n\t\t\t$event->model->document_id = $result->item->document_id;\n\t\t}\n\t\telseif ($event->type == DB_Models_ObservableWritableModel_1::EVENT_UPDATE)\n\t\t{\n\t\t\t$this->saveDocument($event->model);\n\t\t}\n\t}", "function Piwik_PostEvent( $eventName, &$object = null, $info = array() )\n{\n\tPiwik_PluginsManager::getInstance()->dispatcher->post( $object, $eventName, $info, true, false );\n}", "public function addonWasRegistered(Addon $addon)\n {\n $this->dispatcher->fire(new AddonWasRegistered($addon));\n\n $type = studly_case($addon->getType());\n\n $event = 'Anomaly\\Streams\\Platform\\Addon\\\\' . $type . '\\Event\\\\' . $type . 'WasRegistered';\n\n $this->dispatcher->fire(new $event($addon));\n }", "protected function event($event)\n {\n if(isset($this->events)) {\n $this->events->dispatch($event);\n }\n }", "public function doSomeAction(TestEvent $event) {\n drupal_set_message(\"The Example Event has been subscribed, which has bee dispatched on submit of the form with \" . $event->getReferenceID() . \" as Reference\");\n }", "public function fire() {}", "public function dispatchEvent($event);", "function eventRegister($eventName, EventListener $listener);", "public function onEventRaised(&$sender, &$event)\n {\n $beforeDataBindCallback = array(\n $this,\n 'OnBeforeDataBind'\n );\n $afterDataBindCallback = array(\n $this,\n 'OnAfterDataBind'\n );\n $sender->getOnBeforeDataBindCallbacks()->addItem($beforeDataBindCallback);\n $sender->getOnAfterDataBindCallbacks()->addItem($afterDataBindCallback);\n }", "function setEventType()\n {\n $this->_eventType = 12;\n }", "public function GetRecord()\n\t{\n\t\treturn new DotCoreEventRecord($this);\n\t}", "private function api_record_event( $event_name, $properties = array(), $identity = null ) {\n\n\t\t// Verify tracking status\n\t\tif ( $this->disable_tracking() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// identify user first\n\t\t$this->set_named_identity( $identity );\n\n\t\t// remove blank properties\n\t\tif( isset( $properties[''] ) ) {\n\t\t\tunset( $properties[''] );\n\t\t}\n\n\t\t// record the event\n\t\t$this->get_api()->record( $event_name, $properties );\n\t}", "public function handleSendEvent(object $message): void;", "public function hitStat($event_type_key, $date_occurred = NULL, $event_amount = NULL, $track_key = NULL, $space_key = NULL)\n\t{\n\t\tif (!$track_key) $track_key = $this->track_key;\n\t\tif (!$space_key) $space_key = $this->space_key;\n\t\t\n\t\t$this->statpro->recordEvent($track_key, $space_key, $event_type_key, $date_occurred, $event_amount);\n\t}", "public function goGoGo()\n\t{\n\t\t$this->eventLog = array();\n\n\t\t$eventful = $this->getServiceLocator()->get('eventful_class');\n\t\t/* @var $eventful EventfulClass */\n\n\t\t$callable = array($this, 'somethingFooCallback');\n\n\t\t// Attach attach to an event where we have direct access to the object\n\t\t$eventful->events()->attach(array('first.pre', 'first.post'), $callable);\n\n\t\t// Attach to the global event - this looks for any identifier\n\t\t// So ANY class that fires \"someGenericEvent\" after we've attached will\n\t\t// trigger this callback\n\t\t$sharedEventManager = StaticEventManager::getInstance();\n\n\t\t// We can attach to this event two ways, using a * for the identifier\n\t\t// which will look for \"second\" triggered by ANY class...\n\t\t$sharedEventManager->attach('*', 'second', $callable);\n\n\t\t// ... or by specifying the identifer specifically, which I think only\n\t\t// listens to that ONE class you ask for. Note for this to work, the\n\t\t// event manager with that identifier must be instantiated with an\n\t\t// identifier (e.g. $em = new EventManager(__CLASS__);) in theory, the\n\t\t// identifier can be anything, but it makes sense to make it the class!\n\t\t# $sharedEventManager->attach('Eventful\\Something\\EventfulClass', 'second', $callable);\n\n\t\t// Listen to a custom event\n\t\t$eventful->events()->attach('third', $callable);\n\n\t\t// You can listen to every single event (after this is attached) do this:\n\t\t// Warning - you'll get LOTS of events ;)\n\t\t# $sharedEventManager->attach('*', '*', $callable);\n\n\t\t// Now we've attached all our listeners, call the 3 functions that\n\t\t// trigger our various events\n\t\t$eventful->first('bar');\n\t\t$eventful->second('omg');\n\t\t$eventful->third('cute ewoks');\n\n\t\treturn $this->eventLog;\n\t}", "public function triggerEvent($event, array $arguments = null);", "public function fire($event, $context = null);", "public function getEventName() : String;", "public function record(EventData $eventData)\n {\n $this->insertUpdateLiveEvent($eventData);\n $this->insertSocialType($eventData);\n $this->insertSocialAccount($eventData);\n $this->createAccountAndLiveEventRelation($eventData);\n $this->em->clear();\n }", "public function queueEvent($eventId);", "public function testTriggerEventCallsCallbackWithArguments()\n\t{\n\t\t$mock = $this->getMock('Mock_Callback', array('call_me'));\n\n\t\t$mock->expects($this->once())\n\t\t\t\t->method('call_me')\n\t\t\t\t// Have a look in PHPUnit_Framework_Assert for more\n\t\t\t\t->with($this->equalTo('random.pre_forge'), $this->isInstanceOf('Dispatcher_Event'));\n\n\n\n\t\t$mock2 = $this->getMock('Mock_Callback', array('maybe'));\n\n\t\t$mock2->expects($this->once())\n\t\t\t\t->method('maybe')\n\t\t\t\t// Have a look in PHPUnit_Framework_Assert for more\n\t\t\t\t->with($this->equalTo('random.pre_forge'), $this->isInstanceOf('Dispatcher_Event'));\n\n\t\t$dispatcher = new Dispatcher();\n\n\t\t$dispatcher->register_listener('random.pre_forge', array($mock, 'call_me'));\n\t\t$dispatcher->register_listener('random.pre_forge', array($mock2, 'maybe'));\n\n\t\t$dispatcher->trigger_event('random.pre_forge', Dispatcher::event(array('random' => 42)));\n\t}", "public function addEventListener($event, $callable){\r\n $this->events[$event] = $callable;\r\n }", "protected function expectAddEvent()\n {\n $this->eventPublisher->expects($this->once())\n ->method('addEvent')\n ->with(['uuid' => '123']);\n }", "public function addEvent($event){\n $this->events[]=$event;\n }", "public function recordSuccessfulsportevent(string $sporteventId)\n {\n $counts = $this->decrementPendingsportevents($sporteventId);\n\n if ($counts->pendingsportevents === 0) {\n $this->repository->markAsFinished($this->id);\n }\n\n if ($counts->pendingsportevents === 0 && $this->hasThenCallbacks()) {\n $batch = $this->fresh();\n\n collect($this->options['then'])->each(function ($handler) use ($batch) {\n $this->invokeHandlerCallback($handler, $batch);\n });\n }\n\n if ($counts->allsporteventsHaveRanExactlyOnce() && $this->hasFinallyCallbacks()) {\n $batch = $this->fresh();\n\n collect($this->options['finally'])->each(function ($handler) use ($batch) {\n $this->invokeHandlerCallback($handler, $batch);\n });\n }\n }", "public function fire()\n {\n parent::fire();\n }", "public function fire()\n {\n parent::fire();\n }", "public function save()\n {\n $data = [\n 'eventKey' => $this->eventKey,\n 'eventType' => $this->getEventType(),\n 'eventAction' => $this->getEventAction(),\n 'eventSubjectID' => $this->getSubjectID(),\n 'eventSubjectData' => trim($this->getSubjectData()),\n 'eventUserID' => ($this->user) ? $this->user->id() : 0,\n 'eventTriggered' => date('Y-m-d H:i:s')\n ];\n\n $PerchAPI = new PerchAPI(1.0, 'redfinch_logger');\n $Events = new RedFinchLogger_Events($PerchAPI);\n\n return $Events->create($data);\n }", "public function handle()\n {\n $this->fire();\n }", "public function handle()\n {\n $this->fire();\n }", "function emit($record) {\n if ($this->stream == null) {\n $this->stream = $this->_open();\n }\n parent::emit($record);\n }", "function eventclass_bill_record()\n\t{\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "public function fire($name, $data=null)\n { \n if (empty($this->events[$name]))\n return;\n \n if (empty($data))\n $data = array(); \n \n if (!is_array($data)) \n $data = array($data);\n\n foreach ($this->events[$name] as $callback)\n call_user_func_array($callback, $data);\n \n return false; // so you can use this to return early for errors\n }", "public function onEventRaised(&$sender, &$event)\n {\n if ($sender->getState()->getFilterExpressionIndex() != $event->getValue())\n {\n // There is a new filter applied; reclaculate record count.\n $sender->getState()->resetRecordCount();\n }\n $sender->getState()->setFilterExpressionIndex($event->getValue());\n $this->eventValue = $event->getValue();\n }", "public function setEventName(String $eventName) : EventListenerInterface;", "public function getEventName()\n {\n return $this->eventName;\n }", "public function getEventName()\n {\n return $this->eventName;\n }", "function onEvent($element_id)\r\n\t{\r\n\t\t\r\n\t}", "public function testEventWithClosure()\n {\n $eventManager = new EventManager;\n $secret = '1234';\n $eventManager->listen('secret', function ($newSecret) use ($secret) {\n $this->assertEquals($newSecret, $secret);\n });\n $eventManager->fire('secret', $secret);\n }", "public function broadcastOn()\n {\n return ['RecordChanges'];\n }", "public function pushEvent($name)\n {\n $this->data['event'] = $name;\n }", "public function testEventCallBackCreate()\n {\n }", "public function onRun($event)\n {\n $this->raiseEvent('onRun', $event);\n }", "protected function fire_event($event) {\n\t\t$events = array(\"eloquent.{$event}\", \"eloquent.{$event}: \".get_class($this));\n\n\t\tEvent::fire($events, array($this));\n\t}", "function onNewRecord($record, $oldRecord);", "public function fireFieldTypeEvents($trigger);", "public function processAction()\n {\n $env = $this->getEnvironment();\n $this->setProcessTitle('IcingaDB Event Stream: ' . $env->get('name'));\n $handler = new IcingaEventHandler($env);\n $handler->processEvents();\n }", "public function testDispatchEvents()\n {\n $this->uut->dispatch($this->buildRequest('/default'));\n\n $this->assertArrayHasKey(OnPreDispatch::class, self::$lastEvents);\n $this->assertArrayHasKey(OnPostRoute::class, self::$lastEvents);\n $this->assertArrayHasKey(OnPostDispatch::class, self::$lastEvents);\n }", "public function event_part($who)\r\n\t{\r\n\t\r\n\t}", "public function trackTransaction() {\n\t\t\n\t\tif ( ! empty( $this->commerce_event ) ) {\n\t\t\t$this->trackEvent( $this->commerce_event );\n\t\t\t$this->commerce_event = '';\n\t\t}\n\t}", "public static function EventAdded(&$eventData)\n\t{\n\t\tif(isset($eventData['id_board']) && !empty($eventData['id_board']))\t\t\t\t// the event references a board event\n\t\t\tCacheAPI::putCache(self::$cacheName_Events, null, 0);\n\t}", "public function triggerEvent(Webhook $webhook, $event);", "function eventclass_staff_info()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "public function event()\n {\n return $this->event;\n }", "public function add_event_handler($event, $callback);", "public function once($eventName, callable $callBack, $callbackObject = true);", "public function postSave(EntityEvent $event) {\n $GLOBALS['feeds_test_events'][] = (__METHOD__ . ' called');\n }", "public function handle()\n {\n $time = $this->time->with('workOrder')->whereNull('time')->first();\n\n if(! is_null($time)) event(new TimeTic($time));\n }", "public function record_event( $params ) {\n\t\tif ( empty( $params['account_id'] ) ) {\n\t\t\tthrow new Exception( 'Account ID not specified' );\n\t\t}\n\n\t\tif ( empty( $params['action'] ) ) {\n\t\t\tthrow new Exception( 'Action was not specified' );\n\t\t}\n\n\t\t$account_id = $params['account_id'];\n\t\tunset( $params['account_id'] ); // clear it from the params\n\n\t\t$api_action = \"$account_id/events\";\n\t\t$url = $this->api_end_point . $api_action;\n\n\t\t// The API wants the params to be JSON encoded\n\t\t$req_params = array( 'events' => array( $params ) );\n\t\t$res = $this->make_request( $url, $req_params, static::POST );\n\n\t\treturn empty( $res ) ? false : $res;\n\t}", "public function handleEvent($eventName, array $params);", "public function record(string $command, bool $hit = false): void\n {\n $this->recorder->addRecord($command, $this, $hit);\n }", "function did_action($hook_name)\n {\n }", "function listenTo(string $eventName, callable $callback)\n {\n EventManager::register($eventName, $callback);\n }", "public function on_data($now, $data)\n {\n return true;\n }" ]
[ "0.6711263", "0.63629013", "0.6163194", "0.6134093", "0.56200665", "0.5614758", "0.5611291", "0.5534919", "0.5473669", "0.54700756", "0.545913", "0.545913", "0.5447841", "0.5439985", "0.5383616", "0.53693604", "0.52978045", "0.5262637", "0.5254649", "0.52511567", "0.5241015", "0.5220908", "0.5219051", "0.52095455", "0.52041626", "0.51618344", "0.51481336", "0.51448953", "0.5136059", "0.51355094", "0.5134225", "0.51193434", "0.5109145", "0.5088073", "0.5083543", "0.5060256", "0.5056007", "0.5053247", "0.5050809", "0.50476617", "0.5019521", "0.50094295", "0.49757913", "0.49734366", "0.49729273", "0.49520016", "0.49508578", "0.49252307", "0.49208578", "0.48861867", "0.48824757", "0.48811978", "0.48801625", "0.4868931", "0.4861475", "0.48604223", "0.48580402", "0.48573706", "0.48521164", "0.48483273", "0.4835323", "0.4835209", "0.4835209", "0.48346037", "0.48323977", "0.48323977", "0.48307067", "0.48262933", "0.4812368", "0.4806543", "0.4805824", "0.47923133", "0.47923133", "0.47833246", "0.47710314", "0.47653183", "0.476411", "0.47615254", "0.47597632", "0.47562936", "0.47550312", "0.47438434", "0.4740707", "0.47381625", "0.47241077", "0.47190621", "0.47098416", "0.4705197", "0.47030568", "0.46977952", "0.4695524", "0.4690484", "0.46882942", "0.46861005", "0.46795535", "0.4678697", "0.46736485", "0.4671168", "0.46640748", "0.46599892" ]
0.53122175
16
Extract the payload and tags from the event.
protected function extractPayload($eventName, $payload) { if (class_exists($eventName) && isset($payload[0]) && is_object($payload[0])) { return ExtractProperties::from($payload[0]); } return collect($payload)->map(function ($value) { return is_object($value) ? [ 'class' => get_class($value), 'properties' => json_decode(json_encode($value), true), ] : $value; })->toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventPayload()\n {\n return $this->eventPayload;\n }", "public function getPayload(){\n return $this->EventData;\n }", "public function get_payload();", "protected function extractEvent() : string\n {\n if (Str::includes(static::EVENT_DELIMITER, $this->middlewareNotation)) {\n return Str::firstStringBetween(\n $this->middlewareNotation,\n static::MIDDLEWARE_KEY_DELIMITER,\n static::EVENT_DELIMITER\n );\n }\n\n return Arr::last(\n explode(static::MIDDLEWARE_KEY_DELIMITER, $this->middlewareNotation)\n );\n }", "public function parsePayload()\n { \n return $this->_payload;\n }", "public function parsePayload()\n {\n return($this->_payload);\n }", "public function Extract($event) {\n if (strpos(get_parent_class($event), 'GenericEvent')===false) {\n throw new \\Exception('[EventHydrator][Extract] parameter must be instance of DomainEventInterface');\n }\n $data = [\n 'guid' => $event->getGuid(),\n 'event_type' => $event->getType(),\n 'occurred_at' => $event->getOccurredAt(),\n 'payload' => $event->getSerializedPayload()\n ];\n return $data;\n\n }", "function getEvent() {\t\n\n\t//Get the event from pipe and json_decode it\n\treturn json_decode(file_get_contents('php://input'));\n}", "function getPayload();", "public function getPayload();", "public function getPayload();", "public function getPayload();", "public function getPayload()\n {\n return $this->source['payload'];\n }", "public function getPayload()\n {\n return @json_decode($this->body);\n }", "public function payload();", "public function payload();", "protected function extractPayload($eventName, $payload): array\n {\n if (is_object($payload[0]) && isset($payload[0]) && class_exists($eventName)) {\n return $this->extractProperties($payload[0]);\n }\n\n return collect($payload)->map(static function ($value) {\n return is_object($value) ? [\n 'class' => get_class($value),\n 'properties' => json_decode(json_encode($value), true),\n ] : $value;\n })->toArray();\n }", "public function process(array $event)\n {\n $uri = '';\n if ($this->request instanceof HttpRequest) {\n $uri = $this->request->getUriString();\n }\n $token = $this->tokenService->getToken();\n\n // get request uri and IP address and add it to the extras of the logger\n $remoteAddress = new RemoteAddress();\n $parameters = [];\n $parameters['get_vars'] = $this->request->getQuery()->toArray();\n $parameters['post_vars'] = $this->request->getContent();\n $route = '';\n $request_method = $this->request->getMethod();\n $username = '';\n if ($this->identity->getIdentity()) {\n $username = $this->identity->getIdentity()->getUsername();\n }\n $userAgent = '';\n $header = $this->request->getHeader('UserAgent');\n if ($header instanceof UserAgent) {\n $userAgent = $header->getFieldValue();\n }\n $extras = array(\n 'uri' => substr($uri, 0, self::URI_MAX_LENGTH),\n 'parameters' => json_encode($parameters),\n 'request_method' => $request_method,\n 'ip_address' => $remoteAddress->getIpAddress(),\n 'php_session_id' => session_id(),\n 'username' => $username,\n 'route' => $route,\n 'request_uuid' => $this->requestUuid,\n 'token' => $token,\n 'user_agent' => substr($userAgent, 0, self::USER_AGENT_MAX_LENGTH),\n 'memory_usage' => memory_get_usage(true),\n );\n if (isset($event['extra']) && is_array($event['extra'])) {\n $extras = array_merge($event['extra'], $extras);\n }\n $event['extra'] = $extras;\n // check if we have trace, else get it explicitly\n return $event;\n }", "public function get_payload_request();", "public function getEvent()\n {\n return $this->getData('event');\n }", "public function getEvent() {\n return $this->event;\n }", "public function getEvent()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-NE-Event']) ? $headers['X-NE-Event'] : null;\n }", "function payload($data)\n{\n return $data->getPayload()->getHeaders();\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 extractEventTags($post_id)\n {\n DataCleaner::hashtags($post_id, 'event_tags');\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 }", "public function parsePayload()\n {\n $_MTI_url = 'http://ii.nlm.nih.gov/cgi-bin/II/Interactive/interactiveMTI.pl'; \n $dom = new DOMDocument;\n $fields = array('InputText' => urlencode($this->_payload));\n\n $curl_ressource = curl_init();\n \n curl_setopt($curl_ressource,CURLOPT_URL, $_MTI_url);\n curl_setopt($curl_ressource,CURLOPT_POST, count($fields));\n curl_setopt($curl_ressource,CURLOPT_POSTFIELDS, $fields);\n curl_setopt($curl_ressource, CURLOPT_RETURNTRANSFER, true); \n curl_setopt($curl_ressource, CURLOPT_TIMEOUT, 40);\n \n // Parses result html to extract MTI semantical parser results\n $dom->loadHTML(curl_exec($curl_ressource));\n $pres = $dom->getElementsByTagName('pre');\n \n foreach($pres as $pre)\n if(strstr($pre->nodeValue,\"Command: MTI\"))\n {\n $array = explode(\"\\n\", $pre->nodeValue);\n array_shift($array);\n array_shift($array);\n array_shift($array);\n array_shift($array);\n $result = implode(\"\\n\", $array); \n $this->_parsed_payload = $result; \n }\n \n curl_close($curl_ressource);\n \n return $result;\n }", "private function GetEventData() {\n\t\t$lEventData = array();\n\t\t$lEventData = $this->m_taskModel->GetEventData((int)$this->m_eventId);\n\t\treturn $lEventData;\n\t}", "function getFromPost() {\r\n\t\t\r\n\t\t//Event Page variables.\r\n\t\t$this->name = $_POST['eventName'];\r\n\t\t$this->date = $_POST['eventDate'];\r\n\t\t$this->time = $_POST['eventTime'];\r\n\t\t$this->time_before = $_POST['time_before'];\r\n\t\t$this->freq = $_POST['frequency'];\r\n\t\t$this->notif_method = $_POST['method'];\r\n\t}", "public function payload()\n {\n $payload = parent::payload();\n\n $payload['job'] = $this->handler;\n\n $payload['data'] = unserialize($payload['Message']);\n\n return $payload;\n }", "public function getPayload()\r\n\t{\r\n\t\treturn $this->getDecodedBody()->getBody();\r\n\t}", "public function getEvent();", "public function getPayload()\n {\n return $this->payload;\n }", "public function getPayload()\n {\n return $this->payload;\n }", "public function getPayload()\n {\n return $this->payload;\n }", "public function getPayload()\n {\n return $this->payload;\n }", "public function getPayload()\n {\n return $this->payload;\n }", "public function getPayload(): array;", "public function getPayload(): array;", "public function getPayload() {\n return $this->payload;\n }", "public function getPayload() {\n return $this->payload;\n }", "public function get_event_data()\n\t{\n\t\t$copy = array();\n\t\t$copy= $this->m_data;\n\t\t\n\t\treturn $copy;\n\t}", "private function getAppMentionEventData(): array {\n return [\n 'type' => 'app_mention',\n 'user' => 'W021FGA1Z',\n 'text' => 'You can count on <@U0LAN0Z89> for an honorable mention.',\n 'ts' => '1515449483.000108',\n 'channel' => 'C0LAN2Q65',\n 'event_ts' => '1515449483000108',\n ];\n }", "protected function parseEvent($event)\n {\n list($pass, $severity) = $this->getStatus($event);\n\n $data = [\n 'pass' => $pass,\n 'severity' => $severity,\n 'message' => $this->buildMessage($event),\n 'trace' => $pass ? [] : $this->buildTrace($event),\n 'output' => $event['output'],\n ];\n\n if (!$pass) {\n $this->failures++;\n $this->addError($data, $event);\n }\n\n return $data;\n }", "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 }", "public function events_markup_collect(){\n\n // Return the events markup array\n return $this->events;\n\n }", "private function getMessageEventData(): array {\n $data = [\n \"type\" => \"message\",\n \"channel\" => \"C2147483705\",\n \"user\" => \"U2147483697\",\n \"text\" => \"Hello world\",\n \"ts\" => \"1355517523.000005\"\n ];\n if ( rand( 0, 1 ) == 0 ) {\n return $data;\n } else {\n $data[ 'edited' ] = [\n \"user\" => \"U2147483697\",\n \"ts\" => \"1355517536.000001\"\n ];\n return $data;\n }\n }", "public function getEventAdditionalInfo() {\n\t\treturn ($this->eventAdditionalInfo);\n\t}", "public function getPayload(): array\n {\n return $this->payload;\n }", "public function getPayload(): array\n {\n return $this->payload;\n }", "abstract public function getRawPostPayload() : array;", "public function getPayload() {\n return $this->_payload;\n }", "public function getPayload()\n {\n return $this->request->getJsonRawBody();\n }", "public function extract();", "public function extract();", "private function extract_events($r){\n $dejaVu = 0;\n static $events = array();\n\n if ($dejaVu != $r['lm_id']) $events = array();\n $dejaVu = $r['lm_id'];\n\n if (empty($events)){\n foreach(explode(',',$r['lm_status']) as $id){\n\tif (b_posix::is_int($id)){\n\t if (is_object($e = loader::getInstance_new('bForm_vm_Event',$id,'strict'))) $events[] = $e; \n\t}elseif(cnf_dev){\n\t // Should not happend...\n\t}\n }\n }\n return $events;\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 }", "protected function getEvent(string $event) {\n return $this\n ->mailjet_webhook_events()\n ->where('event', $event)\n ->orderBy('created_at', 'desc')\n ->first();\n }", "public function payload(){\n \n return get_object_vars($this);\n }", "protected function getSnapshotPayload()\n {\n $vars = get_object_vars($this);\n \n unset($vars['id']);\n unset($vars['version']);\n unset($vars['handlers']);\n unset($vars['pendingEvents']);\n \n return $vars;\n }", "public function getEvent()\r\n {\r\n return $this->Event;\r\n }", "public function getPayload(): string\n {\n return $this->payload;\n }", "public function get_payload() {\n\t\tif ( ! empty( $this->data->payload ) )\n\t\t\treturn json_decode( $this->data->payload );\n\t\telse\n\t\t\treturn false;\n\t}", "private function getPayload()\n {\n if (count($this->_messages) === 1) {\n return $this->_messages[0]->getContent();\n }\n\n $payload = [];\n foreach ($this->_messages as $message) {\n $payload[] = $message->getContent();\n }\n\n return $payload;\n\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public static function mutate_and_get_payload()\n {\n }", "public function getEventDescription() {\n\t\treturn ($this->eventDescription);\n\t}", "public static function requestPayload() {\n return json_decode(file_get_contents('php://input'), true);\n }", "function eventoni_suggest_events()\n{\n\t// POST-Daten (Inhalt + Titel) auslesen und analysieren\n\t$content = $_POST['content'];\n\t$what = analyse_content($content);\n\n\t// hole Rohdaten zu den Events anhand des analysierten Text-Inhalts\n\t$data = eventoni_fetch('&wt='.$what, true);\n\techo $data['xml'];\n\tdie();\n}", "public function getEvents()\n {\n return json_decode((string) $this->response->getBody())->events;\n }", "function getDropifiedEvents($order_events){\n \n $fulfillments_ids = array();\n foreach($order_events['events'] as $event){\n if($event['subject_type'] == 'Order' &&\n $event['author'] == 'Dropified (formerly Shopified App)'&& \n $event['verb'] == 'fulfillment_success'){\n array_push($fulfillments_ids,$event['arguments'][0]);\n }\n }\n return $fulfillments_ids;\n}", "private function loadEvent()\n {\n $api_event = $this->product->getWebUrlApi() . \"segments?_sort=id&_order=desc&_start=0&_end=26&is_displayed=1\";\n $api_event = $this->httpClient->get($api_event);\n $api_event = json_decode($api_event->getRawBody(), true);\n return $api_event;\n }", "function get_event_content_from_eventbrite($post_id = null) {\n if ($post_id == null) {\n return;\n }\n\n $eb_description_endpoint = \"https://www.eventbriteapi.com/v3/events/\" . get_field('eventbrite_id', $post_id) . '/description/';\n $eb_private_token = get_field('eb_private_token', 'option');\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $eb_description_endpoint);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n \"Authorization: Bearer \" . $eb_private_token\n ));\n\n $response = curl_exec($ch);\n curl_close($ch);\n return json_decode($response)->description;\n}", "public function getEvent()\n {\n return isset($this->event) ? $this->event : null;\n }", "public function getPayload(): array {\n $payload = [];\n if ($this->room) {\n $payload['room'] = $this->room;\n }\n return $payload;\n }", "public function transform(Event $event)\n {\n return [\n 'id' => $event->id,\n 'title' => $event->title,\n 'summary' => $event->summary,\n 'description' => $event->description,\n 'organizer' => $event->user,\n 'image' => $event->image,\n 'language' => $event->language,\n 'is_private' => ($event->is_private) ? true : false,\n 'is_outstanding' => ($event->is_outstanding) ? true : false,\n 'country' => $event->country,\n 'place_name' => $event->place_name,\n 'place_id' => $event->place_id,\n 'latitude' => $event->latitude,\n 'longitude' => $event->longitude,\n 'address' => $event->address,\n 'timezone' => $event->timezone,\n 'end' => Carbon::parse($event->end)->toIso8601String(),\n 'start' => Carbon::parse($event->start)->toIso8601String(),\n 'duration' => Carbon::parse($event->start)->diffInHours(Carbon::parse($event->end)).' Hours',\n 'created_at' => $event->created_at->toIso8601String(),\n 'updated_at' => $event->updated_at->toIso8601String(),\n 'released' => $event->created_at->diffForHumans()\n ];\n }", "public function getEventName() : String;", "function get_eventbrite_event_data($post_id) {\n \n // If event is not linked to eventbrite, do nothing\n if (! get_field('is_eventbrite', $post_id) || ! get_field('eventbrite_id', $post_id)) {\n return;\n }\n \n $eb_private_token = get_field('eb_private_token', 'option');\n \n /**\n * GET request on main event endpoint to get event summary, image and url.\n */\n \n $eb_event_endpoint = \"https://www.eventbriteapi.com/v3/events/\" . get_field('eventbrite_id', get_the_ID()) . '/?expand=venue';\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $eb_event_endpoint);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n \"Authorization: Bearer \" . $eb_private_token\n ));\n \n $response = curl_exec($ch);\n curl_close($ch);\n \n $event_data = json_decode($response);\n \n return $event_data;\n}", "function parse_application_events($file)\r\n {\r\n $doc = new DOMDocument();\r\n $result = array();\r\n\r\n $doc->load($file);\r\n $object = $doc->getElementsByTagname('application')->item(0);\r\n $result['name'] = $object->getAttribute('name');\r\n\r\n // Get events\r\n $events = $doc->getElementsByTagname('event');\r\n $trackers = array();\r\n\r\n foreach ($events as $index => $event)\r\n {\r\n $event_name = $event->getAttribute('name');\r\n $trackers = array();\r\n\r\n // Get trackers in event\r\n $event_trackers = $event->getElementsByTagname('tracker');\r\n $attributes = array('name', 'active');\r\n\r\n foreach ($event_trackers as $index => $event_tracker)\r\n {\r\n $property_info = array();\r\n\r\n foreach ($attributes as $index => $attribute)\r\n {\r\n if ($event_tracker->hasAttribute($attribute))\r\n {\r\n $property_info[$attribute] = $event_tracker->getAttribute($attribute);\r\n }\r\n }\r\n $trackers[$event_tracker->getAttribute('name')] = $property_info;\r\n }\r\n\r\n $result['events'][$event_name]['name'] = $event_name;\r\n $result['events'][$event_name]['trackers'] = $trackers;\r\n }\r\n\r\n return $result;\r\n }", "public function getContents() {\n return substr($this->data, 0, $this->getPayloadStartingByte() + $this->getPayloadLength());\n }", "public function getEventData($input)\n {\n $url = $this->extractUrl(\"http://api.joind.in/v2.1/events/{id}\", $input);\n $data = $this->getData($url);\n\n if (!$data) return null;\n\n return array_shift($data->events);\n }", "public function getCustomEventParams();", "abstract public function getEventName();", "private function parserEventJson($jsonevent)\n {\n $event=null;\n //convert to php object\n $php_object = json_decode($jsonevent); \n if($php_object!=null){\n \n $event= new Event($php_object->CreatorId, $php_object->Title,$php_object->Venue,$php_object->privacy);\n $event->setCurrencyCountry($php_object->current_country);\n $event->setSearchableKeywords($php_object->search_keywords);\n $event->setFees($php_object->fees);\n $event->setCurrencyCountry( $php_object->current_country);\n $event->setCurrencyCountry( $php_object->current_country);\n $event->setDescription($php_object->Description);\n $event->setStartDate($php_object->StartDate);\n $event->setGoing($php_object->going); \n \n }\n \n return $event; \n }", "public function getJsonPayload() {\n $body = isset($_REQUEST['payload']) ? $_REQUEST['payload'] : null;\n if (empty($body)) {\n $body = null;\n }\n $payload = json_decode($body, true);\n if ($payload === null) {\n $payload = json_decode(wp_unslash($body), true);\n }\n\n return !empty($payload) ? $payload : [];\n }", "private function extractPayload($p_response, $raw = false)\n {\n if ($raw) {\n return json_decode($p_response->getContent(), true);\n }\n $matches = [];\n preg_match($this->PAYLOAD_RE, $p_response->getContent(), $matches);\n return json_decode($matches[1]);\n }", "function event()\n {\n $this->load->library('service');\n $data = file_get_contents('php://input');\n $ret = array(\n 'out' => $this->service->handle('event', $data)\n );\n $this->output($ret);\n }" ]
[ "0.68514836", "0.64182067", "0.6338098", "0.6330979", "0.625853", "0.6073589", "0.60732347", "0.60586095", "0.6043978", "0.6010049", "0.6010049", "0.6010049", "0.59370095", "0.5627183", "0.5617035", "0.5617035", "0.556395", "0.55588216", "0.55289346", "0.55233914", "0.5514907", "0.5482912", "0.54631114", "0.5428062", "0.5423127", "0.54052866", "0.54052866", "0.54052866", "0.5402051", "0.54001635", "0.5392496", "0.5392102", "0.53846866", "0.537433", "0.53700495", "0.53700495", "0.53700495", "0.53700495", "0.53700495", "0.5324864", "0.5324864", "0.53003156", "0.53003156", "0.52933824", "0.52839684", "0.5270085", "0.526723", "0.526646", "0.5262548", "0.5237662", "0.5236086", "0.5236086", "0.52252805", "0.5210475", "0.5204428", "0.51944", "0.51944", "0.5189818", "0.5155775", "0.5147171", "0.51427263", "0.5124338", "0.5124238", "0.5075373", "0.50709116", "0.50599", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.50529134", "0.5044603", "0.5035956", "0.50297", "0.50161064", "0.4995256", "0.4973878", "0.4947684", "0.49328917", "0.49153703", "0.49072737", "0.48983824", "0.48940396", "0.48884517", "0.48684362", "0.4867477", "0.48647362", "0.48631972", "0.4855545", "0.4850186", "0.4829886", "0.48182586" ]
0.59767187
12
Format list of event listeners.
protected function formatListeners($eventName) { return collect(app('events')->getListeners($eventName)) ->map(function ($listener) { $listener = (new ReflectionFunction($listener)) ->getStaticVariables()['listener']; if (is_string($listener)) { return Str::contains($listener, '@') ? $listener : $listener.'@handle'; } elseif (is_array($listener) && is_string($listener[0])) { return $listener[0].'@'.$listener[1]; } elseif (is_array($listener) && is_object($listener[0])) { return get_class($listener[0]).'@'.$listener[1]; } elseif (is_object($listener) && is_callable($listener) && ! $listener instanceof Closure) { return get_class($listener).'@__invoke'; } return $this->formatClosureListener($listener); })->reject(function ($listener) { return Str::contains($listener, 'Laravel\\Telescope'); })->map(function ($listener) { if (Str::contains($listener, '@')) { $queued = in_array(ShouldQueue::class, class_implements(Str::beforeLast($listener, '@'))); } return [ 'name' => $listener, 'queued' => $queued ?? false, ]; })->values()->toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function formatListeners($eventName): array\n {\n return collect(app('events')->getListeners($eventName))\n ->map(function ($listener) {\n $listener = (new ReflectionFunction($listener))->getStaticVariables()['listener'];\n\n if (is_string($listener)) {\n return Str::contains($listener, '@') ? $listener : $listener . '@handle';\n }\n\n if (is_array($listener)) {\n return get_class($listener[0]) . '@' . $listener[1];\n }\n\n return $this->formatClosureListener($listener);\n\n })->reject(static function ($listener) {\n return Str::contains($listener, 'Laravel\\\\Telescope');\n })->map(static function ($listener) {\n\n if (Str::contains($listener, '@')) {\n $queued = in_array(ShouldQueue::class, class_implements(explode('@', $listener)[0]), true);\n }\n\n return [\n 'name' => $listener,\n 'queued' => $queued ?? false,\n ];\n\n })->values()->toArray();\n }", "public function getListeners(): array;", "public function listeners($event);", "public function getEventDefinitions()\n\t{\n\t\t$output = '';\n\n\t\t$reader = $this->getReader();\n\n\t\tforeach ($this->getClassesToScan() as $class)\n\t\t{\n\t\t\tforeach ($class->getMethods() as $method)\n\t\t\t{\n\t\t\t\tforeach ($reader->getMethodAnnotations($method) as $annotation)\n\t\t\t\t{\n\t\t\t\t\t$output .= $this->buildListener($class->name, $method->name, $annotation->events);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn trim($output);\n\t}", "public function getListeners($event): array;", "public function getListeners($eventName): array;", "public function getListeners($name = null);", "public function getImplementedListeners(): iterable;", "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 function listeners($eventName);", "public static function getListeners() : array\n {\n return Event::$listeners;\n }", "protected function setListeners()\n\t{\n\t\t$this->templates->listenEmitBasic('foreach', array($this, 'tpl_foreach'));\n\t\t$this->templates->listenEmitBasic('not-last', array($this, 'tpl_not_last'));\n\t}", "function obj_do_cx_events_list( $events ) {\n\tif (is_array($events) ) {\n echo '<div class=\"event-list-grid\">';\n foreach ($events as $event ) {\n obj_do_cx_event_item_output($event);\n }\n echo '</div>';\n }\n}", "public function getListenersForEvent($event): iterable;", "private function listeners()\n {\n foreach ($this['config']['listeners'] as $eventName => $classService) {\n $this['dispatcher']->addListener($classService::NAME, [new $classService($this), 'dispatch']);\n }\n }", "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 function getEvents()\n {\n return $this->eventListeners;\n }", "function getEventListeners()\n {\n $listeners = array();\n \n $listener = new Listener($this);\n \n $listeners[] = array(\n 'event' => RoutesCompile::EVENT_NAME,\n 'listener' => array($listener, 'onRoutesCompile')\n );\n\n $listeners[] = array(\n 'event' => GetAuthenticationPlugins::EVENT_NAME,\n 'listener' => array($listener, 'onGetAuthenticationPlugins')\n );\n\n return $listeners;\n }", "private function toArray(EventList $list)\n {\n $array = array();\n foreach ($list as $event) {\n $array[] = array(\n 'event' => $event->getName(),\n 'arguments' => $event->getArguments()\n );\n }\n \n return $array;\n }", "public function getCompatibleEvents()\n {\n return [\n TaskLinkModel::EVENT_CREATE_UPDATE\n ];\n }", "public function implementedEvents()\n {\n return [\n 'Action.Auth.onLoginFormat' => 'onLoginFormat',\n 'Action.Auth.onRegisterFormat' => 'onRegisterFormat',\n ];\n }", "protected static function allowedEvents()\n\t{\n\t\treturn array();\n\t}", "public function getEventNames(){\n return array($this->getEventName() => array($this,'handle'));\n }", "public static function eventSubscriptions() : iterable;", "public function listeners(Listeners $listeners = null);", "protected function sortListeners($hook)\n {\n $this->sorted[$hook] = array();\n\n if (! isset($this->listeners[$hook])) {\n return;\n }\n\n uksort($this->listeners[$hook], function ($param1, $param2)\n {\n return strnatcmp($param1, $param2);\n });\n\n $this->sorted[$hook] = $this->listeners[$hook];\n }", "protected static function getListenerEvents($listeners, $basePath)\n {\n $listenerEvents = [];\n\n foreach ($listeners as $listener) {\n try {\n $listener = new ReflectionClass(\n static::classFromFile($listener, $basePath)\n );\n } catch (ReflectionException $e) {\n continue;\n }\n\n if (! $listener->isInstantiable()) {\n continue;\n }\n\n foreach ($listener->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {\n if (! Str::is('handle*', $method->name) ||\n ! isset($method->getParameters()[0])) {\n continue;\n }\n\n $listenerEvents[$listener->name.'@'.$method->name] =\n Reflector::getParameterClassNames($method->getParameters()[0]);\n }\n }\n\n return array_filter($listenerEvents);\n }", "function GetEventListeners() {\n $my_file = '{%IEM_ADDONS_PATH%}/dynamiccontenttags/dynamiccontenttags.php';\n $listeners = array ();\n\n $listeners [] =\n array (\n 'eventname' => 'IEM_SENDSTUDIOFUNCTIONS_GENERATEMENULINKS',\n 'trigger_details' => array (\n 'Addons_dynamiccontenttags',\n 'SetMenuItems'\n ),\n 'trigger_file' => $my_file\n );\n\n $listeners[] =\n array (\n 'eventname' => 'IEM_USERAPI_GETPERMISSIONTYPES',\n 'trigger_details' => array (\n 'Interspire_Addons',\n 'GetAddonPermissions',\n ),\n 'trigger_file' => $my_file\n );\n\n $listeners [] =\n array (\n 'eventname' => 'IEM_DCT_HTMLEDITOR_TINYMCEPLUGIN',\n 'trigger_details' => array (\n 'Addons_dynamiccontenttags',\n 'DctTinyMCEPluginHook'\n ),\n 'trigger_file' => $my_file\n );\n\n $listeners [] =\n array (\n 'eventname' => 'IEM_EDITOR_TAG_BUTTON',\n 'trigger_details' => array (\n 'Addons_dynamiccontenttags',\n 'CreateInsertTagButton'\n ),\n 'trigger_file' => $my_file\n );\n\n $listeners[] =\n array (\n 'eventname' => 'IEM_ADDON_DYNAMICCONTENTTAGS_GETALLTAGS',\n 'trigger_details' => array (\n 'Addons_dynamiccontenttags',\n 'getAllTags'\n ),\n 'trigger_file' => $my_file\n );\n\n $listeners[] =\n array (\n 'eventname' => 'IEM_ADDON_DYNAMICCONTENTTAGS_REPLACETAGCONTENT',\n 'trigger_details' => array (\n 'Addons_dynamiccontenttags',\n 'replaceTagContent'\n ),\n 'trigger_file' => $my_file\n );\n\n return $listeners;\n }", "protected static function recordableEvents()\n {\n if (isset(static::$recordableEvents)) {\n return static::$recordableEvents;\n }\n\n return ['created', 'updated', 'deleted'];\n }", "public function format(): array\n {\n return [\n 'name' => 'click',\n 'selector' => $this->selector,\n 'amount' => $this->amount,\n 'button' => $this->button,\n ];\n }", "public function getEventListeners()\n {\n return $this->eventListeners;\n }", "public function toList($attribute = 'title', $seperator = ', ')\n {\n $list = [];\n $hydrator = new ReflectionHydrator();\n foreach ($this->events as $key => $event) {\n $e = $hydrator->extract($event);\n $list .= $e[$attribute] . $seperator;\n }\n\n return $list;\n }", "public function getSubscribedEvents();", "public function getListeners(Request $request);", "public static function getApplicableListener(): array;", "public function events_markup_collect(){\n\n // Return the events markup array\n return $this->events;\n\n }", "protected function registerListeners()\n {\n }", "public function events()\n {\n return array(User::EVENT_AFTER_LOGIN => array($this, 'processAfterLogin'));\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 getEventNames()/*# : array */;", "public function getEvents();", "public function getEvents();", "public static function getSubscribedEvents();", "public static function getSubscribedEvents();", "public function implementedEvents(): array\n {\n $eventMap = [\n 'Crud.beforeFilter' => 'beforeFilter',\n 'Crud.startup' => 'startup',\n\n 'Crud.beforeHandle' => 'beforeHandle',\n\n 'Crud.beforePaginate' => 'beforePaginate',\n 'Crud.afterPaginate' => 'afterPaginate',\n\n 'Crud.recordNotFound' => 'recordNotFound',\n 'Crud.invalidId' => 'invalidId',\n 'Crud.setFlash' => 'setFlash',\n\n 'Crud.beforeRender' => 'beforeRender',\n 'Crud.beforeRedirect' => 'beforeRedirect',\n\n 'Crud.beforeSave' => 'beforeSave',\n 'Crud.afterSave' => 'afterSave',\n\n 'Crud.beforeFind' => 'beforeFind',\n 'Crud.afterFind' => 'afterFind',\n\n 'Crud.beforeDelete' => 'beforeDelete',\n 'Crud.afterDelete' => 'afterDelete',\n ];\n\n $events = [];\n foreach ($eventMap as $event => $method) {\n if (method_exists($this, $method)) {\n $events[$event] = $method;\n }\n }\n\n return $events;\n }", "function getEvents() {\n return [];\n }", "public function getListeners()\n {\n return $this->listeners;\n }", "public function getListeners()\n {\n return $this->listeners;\n }", "public function getFormattedEventTypes(): string\n {\n return $this->getFormattedFilter($this->event_type_filter);\n }", "public function implementedEvents(): array\n {\n return ['Authentication.afterIdentify' => 'afterIdentify'] + parent::implementedEvents();\n }", "protected function getEvents(ContainerBuilder $container)\r\n {\n $events = array();\n \n foreach ($container->get('synd_metrics.finder')->getConfig() as $groupName => $groupConfig) {\n foreach ($groupConfig['funnel'] as $event) {\r\n $events[] = $event;\r\n }\n }\n\n return $events;\r\n }", "public static function getSubscribedEvents() {\n return [];\n }", "protected static function loadListeners() {\n\t\t\n\t\t// default var\n\t\t$configDir = Config::getOption(\"configDir\");\n\t\t\n\t\t// make sure the listener data exists\n\t\tif (file_exists($configDir.\"/listeners.json\")) {\n\t\t\t\n\t\t\t// get listener list data\n\t\t\t$listenerList = json_decode(file_get_contents($configDir.\"/listeners.json\"), true);\n\t\t\t\n\t\t\t// get the listener info\n\t\t\tforeach ($listenerList[\"listeners\"] as $listenerName) {\n\t\t\t\t\n\t\t\t\tif ($listenerName[0] != \"_\") {\n\t\t\t\t\t$listener = new $listenerName();\n\t\t\t\t\t$listeners = $listener->getListeners();\n\t\t\t\t\tforeach ($listeners as $event => $eventProps) {\n\t\t\t\t\t\t$eventPriority = (isset($eventProps[\"priority\"])) ? $eventProps[\"priority\"] : 0;\n\t\t\t\t\t\tself::$instance->addListener($event, array($listener, $eventProps[\"callable\"]), $eventPriority);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private static function get_events() {\n\t\treturn array(\n\t\t\t'formidable_send_usage' => 'weekly',\n\t\t);\n\t}", "public function implementedEvents(): array\n {\n $eventMap = [\n 'Model.beforeMarshal' => 'beforeMarshal',\n 'Model.beforeFind' => 'beforeFind',\n 'Model.beforeSave' => 'beforeSave',\n 'Model.afterSave' => 'afterSave',\n 'Model.afterSaveCommit' => 'afterSaveCommit',\n 'Model.beforeDelete' => 'beforeDelete',\n 'Model.afterDelete' => 'afterDelete',\n 'Model.afterDeleteCommit' => 'afterDeleteCommit',\n 'Model.beforeRules' => 'beforeRules',\n 'Model.afterRules' => 'afterRules',\n ];\n $events = [];\n\n foreach ($eventMap as $event => $method) {\n if (!method_exists($this, $method)) {\n continue;\n }\n $events[$event] = $method;\n }\n\n return $events;\n }", "public static function getSubscribedEvents(): array\n {\n return [\n LoginActionEvent::NAME => [\n ['flashLoginEvent', self::FLASH_MESSAGE_PRIORITY],\n ['afterLogin'],\n ]\n ];\n }", "private static function __timestamps__describeListener()\n {\n return function (DescribeEvent $event) {\n if ($event->getProperty() != 'schema') {\n return;\n }\n\n $schema = $event->getValue();\n\n if ($event->getReflection()->isSubclassOf(RecordInterface::class)) {\n $schema += [\n 'time_created' => 'datetime, null',\n 'time_updated' => 'datetime, null'\n ];\n } elseif ($event->getReflection()->isSubclassOf(DocumentEntity::class)) {\n $schema += [\n 'timeCreated' => 'timestamp',\n 'timeUpdated' => 'timestamp'\n ];\n }\n\n //Updating schema value\n $event->setValue($schema);\n };\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 implementedEvents() {\n\t\treturn parent::implementedEvents() + [\n\t\t\t'Visualisation.onCheck' => array('callable' => 'onCheck', 'passParams' => true)\n\t\t];\n\t}", "public function getValidEvents()\n\t{\n\t\treturn array();\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 registerEvents(): array\n {\n return [\n AfterSheet::class => function (AfterSheet $request) {\n $request->sheet->getStyle('A1:Z1')->applyFromArray([\n 'font' => [\n 'bold' => true,\n ],\n \n ]);\n },\n ];\n }", "public function truncateEventClosures(): void\n {\n $this->listeners = [];\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 static function events();", "public function getSubscribedEvents(): array\n {\n return [\n Events::onFlush\n ];\n }", "public static function getSubscribedEvents()\n {\n return [\n [\n 'event' => 'serializer.pre_serialize',\n 'method' => 'onPreSerialize',\n ],\n [\n 'event' => 'serializer.post_serialize',\n 'method' => 'onPostSerialize',\n ],\n [\n 'event' => 'serializer.pre_deserialize',\n 'method' => 'onPreDeSerialize',\n ],\n [\n 'event' => 'serializer.post_deserialize',\n 'method' => 'onPostDeSerialize',\n ],\n ];\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 formatEvents($objUserEvent) {\n\t\t\t$arrEvents = array();\n\t\t\t$strUrlPrefix = AppConfig::get('SiteUrl') . AppConfig::get('BaseUrl');\n\t\t\t\n\t\t\twhile(list(, $objUserEventRecord) = $objUserEvent->each()) {\n\t\t\t\t$strEvent = null;\n\t\t\t\t$arrMetaData = $objUserEventRecord->get('raw');\n\t\t\t\t\n\t\t\t\tswitch ($objUserEventRecord->get('type')) {\n\t\t\t\t\tcase 'friend:connected':\n\t\t\t\t\t\tif ($objUserEventRecord->get('tally') > 1) {\n\t\t\t\t\t\t\t$strEvent = sprintf('<a href=\"%s/user/%s/\">%s</a> became friends with <a href=\"%s/user/%s/\">%s</a> and %d others', \n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$arrMetaData['username'],\n\t\t\t\t\t\t\t\t$arrMetaData['username'],\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('tally') - 1\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$strEvent = sprintf('<a href=\"%s/user/%s/\">%s</a> became friends with <a href=\"%s/user/%s/\">%s</a>', \n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$arrMetaData['username'],\n\t\t\t\t\t\t\t\t$arrMetaData['username']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase 'follow:connected':\n\t\t\t\t\t\tif ($objUserEventRecord->get('tally') > 1) {\n\t\t\t\t\t\t\t$strEvent = sprintf('<a href=\"%s/user/%s/\">%s</a> started following <a href=\"%s/user/%s/\">%s</a> and %d others ', \n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$arrMetaData['username'],\n\t\t\t\t\t\t\t\t$arrMetaData['username'],\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('tally') - 1\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$strEvent = sprintf('<a href=\"%s/user/%s/\">%s</a> started following <a href=\"%s/user/%s/\">%s</a>', \n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t\t$arrMetaData['username'],\n\t\t\t\t\t\t\t\t$arrMetaData['username']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\tcase 'user:status':\n\t\t\t\t\t\t$strEvent = sprintf('<a href=\"%s/user/%s/\">%s</a> said <em>%s</em>', \n\t\t\t\t\t\t\t$strUrlPrefix,\n\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t$objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t$arrMetaData['status']\n\t\t\t\t\t\t);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($strEvent) {\n\t\t\t\t\tif ($objUserEventRecord->get('tally') > 1) {\n\t\t\t\t\t\t$arrEvents[] = array(\n\t\t\t\t\t\t\t'event'\t\t=> $strEvent,\n\t\t\t\t\t\t\t'username'\t=> $objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t'avatars'\t=> $this->formatAvatars($objUserEventRecord->get('avatar')),\n\t\t\t\t\t\t\t'count'\t\t=> $objUserEventRecord->get('tally')\n\t\t\t\t\t\t);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$arrEvents[] = array(\n\t\t\t\t\t\t\t'id'\t\t=> $objUserEventRecord->get('__id'),\n\t\t\t\t\t\t\t'userid'\t=> $objUserEventRecord->get('userid'),\n\t\t\t\t\t\t\t'username'\t=> $objUserEventRecord->get('username'),\n\t\t\t\t\t\t\t'avatars'\t=> $this->formatAvatars($objUserEventRecord->get('avatar')),\n\t\t\t\t\t\t\t'event'\t\t=> $strEvent,\n\t\t\t\t\t\t\t'created'\t=> $objUserEventRecord->get('created')\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\treturn $arrEvents;\n\t\t}", "public static function registerListeners()\n {\n static::creating('Wildside\\Userstamps\\Listeners\\Creating@handle');\n static::updating('Wildside\\Userstamps\\Listeners\\Updating@handle');\n\n if( method_exists(get_called_class(), 'deleting') )\n {\n static::deleting('Wildside\\Userstamps\\Listeners\\Deleting@handle');\n }\n\n if( method_exists(get_called_class(), 'restoring') )\n {\n static::restoring('Wildside\\Userstamps\\Listeners\\Restoring@handle');\n }\n }", "public static function getSubscribedEvents(): array\n {\n return [\n Events::FIGURE_CREATED => 'onFigureCreated',\n ];\n }", "public function get_event_list()\n\t{\n\treturn $this->cal['VEVENT'];\n\t}", "public function viewAllEvents();", "public function implementedEvents(): array\n {\n return $this->getConfig('implementedEvents');\n }", "protected function sortListeners($event)\n {\n $this->sorted[$event] = 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[$event])) {\n krsort($this->listeners[$event]);\n $this->sorted[$event] = call_user_func_array('array_merge', $this->listeners[$event]);\n }\n }", "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 lista(): array\n {\n return $this->eventos;\n }", "public function implementedEvents() {\n\t\treturn array(\n\t\t\t'Rachet.WampServer.construct' => 'construct',\n\t\t\t'RachetStatistics.WebsocketServer.getUptime' => 'getUptime',\n\t\t);\n\t}", "public static function getSubscribedEvents()\n {\n return [\n 'console.command' => 'setTranslatorLocale',\n ];\n }", "protected function registerEventListeners()\n {\n Event::listen(Started::class, function (Started $event) {\n $this->progress = $this->output->createProgressBar($event->objects->count());\n });\n\n Event::listen(Imported::class, function () {\n if ($this->progress) {\n $this->progress->advance();\n }\n });\n\n Event::listen(ImportFailed::class, function () {\n if ($this->progress) {\n $this->progress->advance();\n }\n });\n\n Event::listen(DeletedMissing::class, function (DeletedMissing $event) {\n $event->deleted->isEmpty()\n ? $this->info(\"\\n No missing users found. None have been soft-deleted.\")\n : $this->info(\"\\n Successfully soft-deleted [{$event->deleted->count()}] users.\");\n });\n\n Event::listen(Completed::class, function (Completed $event) {\n if ($this->progress) {\n $this->progress->finish();\n }\n });\n }", "public function getCompatibleEvents()\n {\n return array(\n TaskModel::EVENT_MOVE_COLUMN,\n );\n }", "public static function getSubscribedEvents()\n {\n return array(\n DefaultEvents::default_pre_index => 'onCustomListener',\n DefaultEvents::default_pre_index => 'onCustomListener',\n OtherEvents::other_pre_index => 'onCustomListener',\n OtherEvents::other_pox_index => 'onCustomListener'\n );\n }", "public function getSubscribedEvents()\n\t{\n\t\treturn [\n\t\t\tEvents::onFlush\n\t\t];\n\t}", "public function viewEvents();", "public static function getSubscribedEvents()\n {\n return array(\n 'beforeScenario' => array('prepareDrupal', 10),\n 'beforeOutline' => array('prepareDrupal', 10),\n 'afterScenario' => array('teardownDrupal', -10),\n 'afterOutline' => array('teardownDrupal', -10)\n );\n }", "public static function getEvents(): array\n {\n return is_array(static::$events) ? static::$events : [static::$events];\n }", "public static function getEvents()\n {\n $events = parent::getEvents();\n $events[] = self::ON_FIRST_LOGIN;\n $events[] = self::ON_LOGIN;\n $events[] = self::ON_LOGOUT;\n $events[] = self::ON_PASSWORD_CHANGE;\n\n return $events;\n }", "function theme_uom_event_presenters_in_event($variables) {\n\t$return_html = '';\n\t$presenters = $variables['presenters'];\n\n\t$items = array();\n\t$title = t('Presenters');\n\t$attributes = array('class' => array('uom-event-presenter'));\n $type = 'ul';\n\n\tif(is_array($presenters) && count($presenters) > 0) {\n\t\tforeach($presenters as $presenter) {\n\t\t\t$full_name = t('@title @first @last @post', array('@title' => $presenter->title, '@first' => $presenter->first_name, '@last' => $presenter->last_name, '@post' => $presenter->post_nominal));\n\t\t\t$link = $presenter->link;\n\t\t\t$data = l($full_name, $link);\n\n\t\t\t$items[] = array(\n\t\t\t\t'data' => $data,\n\t\t\t\t'class' => array('presenter'),\n\t\t\t);\n\t\t}\n\t\t\n\t\t$return_html = theme_item_list(array('items' => $items, 'title' => $title, 'type' => $type, 'attributes' => $attributes));\n\t}\n\telse {\n\t\t$return_html = '';\t\t\n\t}\n\n\treturn $return_html;\n}", "public function events() {\n return array_merge(parent::events(), array(\n 'onBeforeSave' => 'beforeSave',\n 'onAfterSave' => 'afterSave',\n 'onBeforeDelete' => 'beforeDelete',\n 'onAfterDelete' => 'afterDelete',\n 'onBeforeFind' => 'beforeFind',\n 'onAfterFind' => 'afterFind',\n ));\n }", "public function implementedEvents() {\n\t\treturn array(\n\t\t\t'RachetStatistics.WebsocketServer.getMemoryUsage' => 'getMemoryUsage',\n\t\t);\n\t}", "public static function getSubscribedEvents()\n {\n return [NotificationEvent::NAME => ['handleNotificationEvent', self::getPriority()]];\n }", "public static function getSubscribedEvents(): array\n\t{\n\t\t// Only subscribe events if the component is installed and enabled\n\t\tif (!ComponentHelper::isEnabled('com_ars'))\n\t\t{\n\t\t\treturn [];\n\t\t}\n\n\t\treturn [\n\t\t\t'onContentPrepare' => 'onContentPrepare',\n\t\t];\n\t}", "private function listEvent($event, $terminalWidth, $expressionSpacing, $repeatExpressionSpacing, $timezone)\n {\n $expression = $this->formatCronExpression($event->expression, $expressionSpacing);\n\n $repeatExpression = str_pad($this->getRepeatExpression($event), $repeatExpressionSpacing);\n\n $command = $event->command ?? '';\n\n $description = $event->description ?? '';\n\n if (! $this->output->isVerbose()) {\n $command = str_replace([Application::phpBinary(), Application::artisanBinary()], [\n 'php',\n preg_replace(\"#['\\\"]#\", '', Application::artisanBinary()),\n ], $command);\n }\n\n if ($event instanceof CallbackEvent) {\n $command = $event->getSummaryForDisplay();\n\n if (in_array($command, ['Closure', 'Callback'])) {\n $command = 'Closure at: '.$this->getClosureLocation($event);\n }\n }\n\n $command = mb_strlen($command) > 1 ? \"{$command} \" : '';\n\n $nextDueDateLabel = 'Next Due:';\n\n $nextDueDate = $this->getNextDueDateForEvent($event, $timezone);\n\n $nextDueDate = $this->output->isVerbose()\n ? $nextDueDate->format('Y-m-d H:i:s P')\n : $nextDueDate->diffForHumans();\n\n $hasMutex = $event->mutex->exists($event) ? 'Has Mutex › ' : '';\n\n $dots = str_repeat('.', max(\n $terminalWidth - mb_strlen($expression.$repeatExpression.$command.$nextDueDateLabel.$nextDueDate.$hasMutex) - 8, 0\n ));\n\n // Highlight the parameters...\n $command = preg_replace(\"#(php artisan [\\w\\-:]+) (.+)#\", '$1 <fg=yellow;options=bold>$2</>', $command);\n\n return [sprintf(\n ' <fg=yellow>%s</> <fg=#6C7280>%s</> %s<fg=#6C7280>%s %s%s %s</>',\n $expression,\n $repeatExpression,\n $command,\n $dots,\n $hasMutex,\n $nextDueDateLabel,\n $nextDueDate\n ), $this->output->isVerbose() && mb_strlen($description) > 1 ? sprintf(\n ' <fg=#6C7280>%s%s %s</>',\n str_repeat(' ', mb_strlen($expression) + 2),\n '⇁',\n $description\n ) : ''];\n }", "public function implementedEvents() {\n return [\n 'Crud.beforeHandle' => ['callable' => 'beforeHandle', 'priority' => 50],\n 'Crud.beforeSave' => ['callable' => 'beforeSave', 'priority' => 50],\n 'Crud.beforeRender' => ['callable' => 'beforeRender', 'priority' => 50],\n ];\n }", "public static function get_core_events_list($detail = true) {\n global $CFG;\n\n // Disable developer debugging as deprecated events will fire warnings.\n // Setup backup variables to restore the following settings back to what they were when we are finished.\n $debuglevel = $CFG->debug;\n $debugdisplay = $CFG->debugdisplay;\n $debugdeveloper = $CFG->debugdeveloper;\n $CFG->debug = 0;\n $CFG->debugdisplay = false;\n $CFG->debugdeveloper = false;\n\n $eventinformation = array();\n $directory = $CFG->libdir . '/classes/event';\n $files = self::get_file_list($directory);\n\n // Remove exceptional events that will cause problems being displayed.\n if (isset($files['unknown_logged'])) {\n unset($files['unknown_logged']);\n }\n foreach ($files as $file => $location) {\n $functionname = '\\\\core\\\\event\\\\' . $file;\n // Check to see if this is actually a valid event.\n if (method_exists($functionname, 'get_static_info')) {\n if ($detail) {\n $ref = new \\ReflectionClass($functionname);\n if (!$ref->isAbstract() && $file != 'manager') {\n $eventinformation = self::format_data($eventinformation, $functionname);\n }\n } else {\n $eventinformation[$functionname] = $file;\n }\n }\n }\n // Now enable developer debugging as event information has been retrieved.\n $CFG->debug = $debuglevel;\n $CFG->debugdisplay = $debugdisplay;\n $CFG->debugdeveloper = $debugdeveloper;\n return $eventinformation;\n }", "public static function getSubscribedEvents()\n {\n return [\n ScriptEvents::POST_AUTOLOAD_DUMP => [\n ['onPostAutoloadDump', 0],\n ],\n ];\n }", "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 getEvents(array $filters = array());", "public static function getSubscribedEvents(): array\n {\n return [\n 'Enlight_Controller_Front_RouteShutdown' => ['handleError', 1000],\n 'Enlight_Controller_Front_PostDispatch' => ['handleError', 1000],\n 'Shopware_Console_Add_Command' => ['handleError', 1000],\n 'Enlight_Controller_Front_DispatchLoopShutdown' => ['handleException', 1000],\n ];\n }", "public function implementedEvents(): array\n {\n return [\n 'Crud.afterPaginate' => ['callable' => 'afterPaginate'],\n ];\n }" ]
[ "0.6146495", "0.59498155", "0.56247425", "0.55668646", "0.5501554", "0.5478086", "0.5471897", "0.5434919", "0.5406535", "0.53638", "0.5352643", "0.5278439", "0.5278311", "0.5245479", "0.52094257", "0.5208537", "0.5207729", "0.5178595", "0.51765054", "0.51750135", "0.51470554", "0.51367444", "0.51348317", "0.5133342", "0.5121163", "0.51200867", "0.51121885", "0.51102966", "0.51099163", "0.50884724", "0.50854546", "0.50767845", "0.50752354", "0.5075079", "0.50662994", "0.50629765", "0.5050788", "0.50501424", "0.5049496", "0.50487494", "0.5046426", "0.5046426", "0.5045234", "0.5045234", "0.50312084", "0.50142735", "0.5007558", "0.5007558", "0.49994606", "0.49957967", "0.4984353", "0.49643368", "0.49532104", "0.49512208", "0.494223", "0.4942122", "0.4938443", "0.49257073", "0.49254936", "0.4895967", "0.48851132", "0.4881283", "0.48788017", "0.4866978", "0.48664355", "0.48459244", "0.48457554", "0.48411676", "0.48370895", "0.48230755", "0.4817337", "0.48151425", "0.4812578", "0.48116314", "0.48076975", "0.48075902", "0.48050094", "0.480041", "0.47985932", "0.47974974", "0.4779706", "0.47744685", "0.47737253", "0.4772663", "0.4770543", "0.4768884", "0.47649735", "0.47569266", "0.4755454", "0.474902", "0.47224894", "0.4714402", "0.4708425", "0.47036573", "0.4701489", "0.46954465", "0.46947634", "0.46939552", "0.46927112", "0.46926406" ]
0.6548142
0
Determine if the event should be ignored.
protected function shouldIgnore($eventName) { return $this->eventIsIgnored($eventName) || (Telescope::$ignoreFrameworkEvents && $this->eventIsFiredByTheFramework($eventName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isIgnoreObserver(){\n\t\t$ignore = true;\n\t\t$data = Mage::app()->getRequest()->getParams();\n\t\tif (isset($data['echeck_dropship']) && $data['echeck_dropship'] == 1)$ignore = false;\n\t\treturn $ignore;\n\t}", "protected function shouldIgnore($eventName): bool\n {\n return $this->eventIsIgnored($eventName) || $this->eventIsFiredByTheFramework($eventName);\n }", "protected function eventIsIgnored($eventName): bool\n {\n return Str::is($this->options['ignore'] ?? [], $eventName);\n }", "public function test_is_event_ignored(event_base $event) {\n if (!PHPUNIT_TEST) {\n throw new \\coding_exception('Public test method can only be invoked by PHPUnit');\n }\n return $this->is_event_ignored($event);\n }", "protected function eventIsIgnored($eventName)\n {\n return Str::is($this->options['ignore'] ?? [], $eventName);\n }", "public function isIgnored(): bool;", "public function shouldntRaiseAnEvent()\n {\n }", "public function isUnknownEvent()\n {\n return $this->baseEvent->isUnknownEvent();\n }", "public function getIgnored() : bool\n {\n return $this->ignored;\n }", "public function getIsHandled();", "public function isHandled(): bool;", "public function getShouldNotProcess()\n\t{\n\t\t$state = $this->data->get(\"state\");\n\t\treturn !$state || $state == self::STATE_NONE || $state == self::STATE_STOPPED;\n\t}", "public function eIgnore(bool $ignore) : bool\n {\n $this->errignore = $ignore;\n $wi = $this->wasignored;\n $this->wasignored = FALSE;\n return $wi;\n }", "public function shouldHide() {\n // \"alice set this event to repeat weekly.\" event in normal circumstances\n // anyway.\n return true;\n }", "final public function allowsEvents() {\n\t\treturn false;\n\t}", "public function isNotReceived()\n\t{\n\t\tif($this->test_status_id == Test::NOT_RECEIVED)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "final public function getIgnore()\n {\n return (bool)$this->getOption('data-ignore');\n }", "public function didSkip()\n {\n return (bool) ($this->status & static::DID_SKIP);\n }", "public function whenAddressed(): bool\n {\n return false;\n }", "public function isExcluded(): bool\n {\n return $this->exclude ?? false;\n }", "public static function shouldIgnoreBotRequests(): bool\n {\n return config('laravel-server-analytics.ignore_bot_requests');\n }", "public function canSkipOrderReviewStep()\n {\n return !$this->_quote->getPayment()->getAdditionalInformation(self::PAYMENT_INFO_BUTTON);\n }", "public function isEvent()\n {\n return isset($this->status_changed) && ! is_null($this->status_changed);\n }", "function GetExcludedEvents();", "protected function assertCancelingEvent($event_type) {\n return !empty($this->configuration['event_settings'][$event_type]);\n }", "public function isNotSent()\n {\n return ! $this->isSent();\n }", "public function shouldLogEvent()\n {\n return config('ldap.logging', false);\n }", "public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }", "private static function _skip_tracking() {\n\n\t\tif ( function_exists( 'apply_filters_deprecated' ) ) {\n\t\t\tapply_filters_deprecated( 'statify_skip_tracking', array( '' ), '1.5.0', 'statify__skip_tracking' );\n\t\t}\n\t\t// Skip tracking via Hook.\n\t\t$skip_hook = apply_filters( 'statify__skip_tracking', null );\n\t\tif ( null !== $skip_hook ) {\n\t\t\treturn $skip_hook;\n\t\t}\n\n\t\t// Skip tracking via User Agent.\n\t\t$user_agent = filter_var(\n\t\t\t( isset( $_SERVER['HTTP_USER_AGENT'] ) ? wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) : '' ),\n\t\t\tFILTER_SANITIZE_STRING\n\t\t);\n\t\tif ( is_null( $user_agent )\n\t\t\t|| false === $user_agent\n\t\t\t|| self::is_bot( $user_agent ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip tracking via Referrer check.\n\t\tif ( self::check_referrer() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip for trackbacks and robots.\n\t\tif ( is_trackback() || is_robots() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip logged in users, if enabled.\n\t\tif ( self::$_options['skip']['logged_in'] && is_user_logged_in() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip for \"internal\" requests.\n\t\treturn self::_is_internal();\n\t}", "private function checkEventNotBookedByCreator(){\n $event = Event::find($this->id);\n\n return($event->host != Auth::id());\n }", "private function _isRejected($event)\n {\n return in_array(\n $event,\n array('catalogsearch_advanced_result', 'catalogsearch_advanced_index')\n );\n }", "public function isHandled() {\n return $this->_isHandled;\n }", "public function beforeSave($event=null) {\n if ($this->_ignoreEvent)\n return true;\n else\n throw new CDbException(Yii::t('yiiext', 'You should not use CActiveRecord::save() method when NestedSetBehavior attached.'));\n }", "public function isEvaled()\n {\n return false;\n }", "public function isDisabled($operation = OperationTypes::OP_UPDATE, $ignore_op = FALSE);", "public function isPropagationStopped($event = null) : bool;", "public function handles_events()\n\t{\n\t\treturn false;\n\t}", "public function fireEventCancel(string $eventName): bool;", "public function test_events_are_not_triggered_for_invalid_entities() {\n $client = m::mock('\\GuzzleHttp\\Client');\n $client->shouldReceive('createRequest')->never();\n $client->shouldReceive('send')->never();\n $course = $this->getDataGenerator()->create_course();\n $return = $this->_app['dragdrop_event']->handle_event('sentence', array(), NOGROUPS, m::mock('dragdrop_user'), m::mock('dragdrop_model_manager'), $client);\n $this->assertEmpty($return);\n }", "public function exclude_sale_items() {\n\t\treturn 'yes' === $this->exclude_sale_items;\n\t}", "public function isExcluded()\n {\n return $this->excluded;\n }", "public function getIgnore()\n {\n return $this->ignore;\n }", "public function isDoNotTrack(): bool\n {\n return $this->headers->get('DNT', '0') == '1';\n }", "public function hasIgnoreEnabledFlag()\n {\n return $this->ignore_enabled_flag !== null;\n }", "public function isCancelled(){\n return (bool) $this->cancelled_on != null;\n }", "public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }", "public function testTaskBlockedNotifyProjectOwnerListenerWithoutPo()\n {\n // Get new project\n $project = $this->getNewProject();\n $project->save();\n\n // Assigned 30 minutes ago\n $minutesWorking = 30;\n $assignedAgo = (int)(new \\DateTime())->sub(new \\DateInterval('PT' . $minutesWorking . 'M'))->format('U');\n\n $task = $this->getAssignedTask($assignedAgo);\n $task->title = 'Test';\n $task->project_id = $project->id;\n $task->save();\n\n // Call event and listener\n $task->blocked = true;\n $event = new \\App\\Events\\TaskBlockedNotifyProjectOwner($task);\n $listener = new TaskBlockedNotifyProjectOwner($task);\n $response = $listener->handle($event);\n\n $this->assertEquals(false, $response);\n }", "public function failNoisily() :bool{\n\t\treturn !$this->failSilently;\n\t}", "public function disable(int $events): bool {}", "function notification_ignore() {\n\n $ignore_key = CUSTOM_LOGIN_OPTION . '_ignore_announcement';\n\n // Bail if not set\n if ( ! isset( $_GET[ $ignore_key ] ) ) {\n return;\n }\n\n // Check nonce\n check_admin_referer( $ignore_key, $ignore_key );\n\n // If user clicks to ignore the notice, add that to their user meta\n add_user_meta( get_current_user_id(), $ignore_key, 1, true );\n }", "protected function _shouldProcess($event, Model $model) {\n return in_array($event, $this->settings[$model->alias]['on']);\n }", "public function cancelled()\n {\n return ! is_null($this->cancelledAt);\n }", "public function shouldSkipProperty(PropertyMetadata $property, Context $context): bool;", "public function matchEvent(Mage_Index_Model_Event $event)\n {\n return false;\n }", "public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }", "public function isHit()\n {\n return false;\n }", "public function isIgnoreMinimumExecutionTime()\n\t{\n\t\treturn $this->ignoreMinimumExecutionTime;\n\t}", "public function setIgnore(bool $ignore): void;", "public function shouldDiscoverEvents(): bool\n {\n return false;\n }", "public function shouldBeSkipped();", "public function isNot()\n {\n return $this->not;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}", "public function do_not_track()\n\t{\n\t\tstatic $shifted;\n\t\tif ($shifted !== TRUE)\n\t\t{\n\t\t\tarray_shift($this->tracker);\n\t\t\t$shifted = TRUE;\n\t\t}\n\t\t$this->set_tracker_cookie();\n\t}", "public static function failed_event_method()\n {\n return false;\n }", "public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }", "public function shouldBeSkipped() {\n\t\treturn !$this->countItems();\n\t}", "protected function skipHandlingForFailedGroupTransactions()\n {\n return\n $this->order !== null &&\n $this->order->getId() !== null &&\n $this->order->getState() == Order::STATE_CANCELED &&\n (\n $this->hasPostData(\n 'brq_transaction_type',\n 'V202'\n ) ||\n\n $this->hasPostData(\n 'brq_transaction_type',\n 'V203'\n ) ||\n $this->hasPostData(\n 'brq_transaction_type',\n 'V204'\n )\n );\n }", "public function isUnsentOrderAdjustmentEnabled()\n {\n $flag = (integer) $this->scopeConfig->getValue(\n 'orderflow_inventory_import/settings/adjust_inventory',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_WEBSITE\n );\n\n return $flag > 0;\n }", "protected function skipThemeAssemble(MvcEvent $e)\n {\n // Skip for AJAX/Flash/Json/Feed\n if ($this->type) {\n return true;\n }\n // Skip if response is already generated\n if ($e->getResult() instanceof Response) {\n return true;\n }\n\n // Skip if root model has no template\n $viewModel = $e->getViewModel();\n if (!$viewModel instanceof ViewModel || !$viewModel->getTemplate()) {\n return true;\n }\n\n return false;\n }", "public function isOffHook() {\n\t\treturn $this->offHook;\n\t}", "public function isSkip()\n {\n return $this->skip;\n }", "public function isNotUsing();", "function isDenied() {\n return !empty($this->denied_reasons);\n }", "public function canBeCancelled()\n {\n return $this->isNotYetSubmitted();\n }", "public function isSignal()\n {\n return ! $this->isDice() && ! $this->isVariable() && empty($this->number);\n }", "function ozh_dlb_skip_if_bot() {\n return ozh_dlb_is_bot();\n // if anything but false is returned, functions using the two shunt_* filters will be short-circuited\n}", "public function getStillWanted() {\n $wanted = Event::fireReturn($this->getEventID(), $this->type, $this->filter, 'ping');\n if ($wanted || count($wanted)) {\n return true;\n }\n return false;\n }", "private function shouldHookBeSkipped(string $hook): bool\n {\n return $this->skipExisting && $this->repository->hookExists($hook);\n }", "private function shouldHookBeSkipped(string $hook): bool\n {\n return $this->skipExisting && $this->repository->hookExists($hook);\n }", "protected function isSkipNotifyListeners(CoreExecution $execution): bool\n {\n // or if the end listeners for this activity instance were triggered before already and failed.\n return $execution->hasFailedOnEndListeners() ||\n $execution->getActivityInstanceId() === null;\n }", "public function cancelled() : bool\n {\n return !is_null($this->ends_at) && $this->is_cancelled;\n }", "private function checkEventDateNotDue(){\n $event = Event::find($this->id);\n $now = Carbon::now();\n \n $startTime = Carbon::createFromFormat('Y-m-d H:i:s', $event->start_time);\n return $startTime->gt($now);\n }", "private function shouldHookBeMoved(): bool\n {\n return !empty($this->moveExistingTo);\n }", "public function didNotExistBefore(): bool\n {\n return $this->beforeDoesNotExist;\n }", "public function ignore($expectedTokens): bool {\n return parent::ignore($expectedTokens);\n }", "public function isBlocked() : bool {\n return $this->delivery_status === WebhookEvent::EVENT_BLOCKED;\n }", "public function isDisabled() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->isDisabled();\n } else {\n return parent::isDisabled();\n }\n }", "function lcars_notice_ignore() {\n\t\tglobal $current_user;\n\t\t$user_id = $current_user->ID;\n\t\tif ( isset( $_GET['lcarsframework_nag_ignore'] ) && '0' == $_GET['lcarsframework_nag_ignore'] ) {\n\t\t\tadd_user_meta( $user_id, 'lcarsframework_ignore_notice', 'true', true );\n\t\t}\n\t}", "public function getHasBeenRejectedBefore(): bool;", "public function isAppEventEnabled()\n {\n return true;\n }", "public function excludeNotification( $row )\n \t{\n \t\treturn false;\n \t}", "public function isPropagationStopped(): bool;", "public function isDisabled()\n\t{\n\t\treturn false;\n\t}", "public function isNoAllergy()\n {\n $result = false;\n\n if (\n isset($this->entryRelationship->observation['negationInd']) &&\n $this->entryRelationship->observation['negationInd'] == true\n ) {\n $result = true;\n }\n\n return $result;\n }", "function is_not_paying() {\n\t\t\treturn ( $this->is_trial() || $this->is_free_plan() );\n\t\t}", "public function isToIgnoreColumn(): bool\n {\n if ($this->entity->code['name'] === 'deleted_at') {\n return true;\n }\n\n\n if (ArraySearcher::arraySearchByAttribute(\n $this->entity->code['name'],\n $this->parentEntity->system->relations,\n 'morph_type'\n )\n ) {\n return true;\n }\n return false;\n }", "public function isEventRecurs() {\n\t\treturn ($this->eventRecurs);\n\t}", "public function getIgnoreQuestionValidation()\n {\n return $this->ignoreQuestionValidation;\n }", "protected function setInvoiceCancelled(): bool\n {\n if (!$this->isUserInvoiceImplemented()) {\n return parent::setInvoiceCancelled();\n } else {\n return false;\n }\n }" ]
[ "0.71727705", "0.7016984", "0.6897934", "0.687617", "0.68241876", "0.6774879", "0.6774629", "0.67247176", "0.6292561", "0.61890393", "0.6186299", "0.61601365", "0.6071901", "0.6046301", "0.6028245", "0.5999773", "0.5958659", "0.59529734", "0.5895647", "0.5812443", "0.57815343", "0.5780775", "0.5737437", "0.57354033", "0.57173836", "0.5688707", "0.56865036", "0.5671127", "0.5667714", "0.56516963", "0.56418335", "0.56317526", "0.5624421", "0.5576108", "0.55657756", "0.55574423", "0.5522401", "0.5464463", "0.54610103", "0.5456141", "0.5442274", "0.5437607", "0.5433521", "0.54115385", "0.5410387", "0.53934264", "0.53927875", "0.53859144", "0.53707784", "0.53692925", "0.5364731", "0.5356162", "0.5356038", "0.53404427", "0.5333357", "0.53328556", "0.53309774", "0.5320398", "0.5316206", "0.5312533", "0.53096986", "0.53096986", "0.5281352", "0.52794385", "0.52740335", "0.52669066", "0.5262102", "0.5242497", "0.52394307", "0.5229396", "0.52224016", "0.52010614", "0.51963186", "0.5193471", "0.51926154", "0.5176761", "0.51510954", "0.51449025", "0.51434493", "0.51434493", "0.5142001", "0.51385903", "0.5127326", "0.51227915", "0.5118387", "0.511665", "0.5116441", "0.511473", "0.511166", "0.5100375", "0.5089629", "0.5089024", "0.50860655", "0.5081642", "0.5071421", "0.5067099", "0.5064706", "0.5064056", "0.50629294", "0.5062844" ]
0.665911
8
Determine if the event was fired internally by Laravel.
protected function eventIsFiredByTheFramework($eventName) { return Str::is( [ 'Illuminate\*', 'Laravel\Octane\*', 'Laravel\Scout\Events\ModelsImported', 'eloquent*', 'bootstrapped*', 'bootstrapping*', 'creating*', 'composing*', ], $eventName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEvent()\n {\n return isset($this->status_changed) && ! is_null($this->status_changed);\n }", "protected function isListenerFired($event)\n {\n // Do not apply to the same or newer versions\n if (version_compare(static::VERSION, $event->old, '<=')) {\n return true;\n }\n\n return false;\n }", "public static function event_method()\n {\n return true;\n }", "public function isUnknownEvent()\n {\n return $this->baseEvent->isUnknownEvent();\n }", "protected function eventIsFiredByTheFramework($eventName): bool\n {\n return Str::is(\n ['Illuminate\\*', 'eloquent*', 'bootstrapped*', 'bootstrapping*', 'creating*', 'composing*'],\n $eventName\n );\n }", "protected function observed($event)\n {\n return $this->hasListeners($this->buildEventName($event));\n }", "function getHasEvent() {\n\t\treturn $this->_HasEvent;\n\t}", "public function isUserEvent()\n {\n return $this->baseEvent->isUserEvent();\n }", "public function hasEvents()\n {\n return count($this->events) > 0 ? true : false;\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}", "function hasCallbacks($event) {\n return Event::hasCallbacks($event);\n }", "public function isEventRecurs() {\n\t\treturn ($this->eventRecurs);\n\t}", "public function shouldDiscoverEvents(): bool\n {\n return false;\n }", "public function hasNetworkEvent(){\n return $this->_has(3);\n }", "public function canProcessRequest(Request $request)\n {\n $hasEventKey = $request->has($this->eventKey);\n if ($hasEventKey === false) {\n return false;\n }\n\n $isCorrectEvent = $request->get($this->eventKey) == $this->eventValue;\n\n return $isCorrectEvent;\n }", "public function isDispatched() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn InputValidator::isEmpty($this->dispatchDate) ? false: true;\r\n\t}", "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}", "private function checkEventNotBookedByCreator(){\n $event = Event::find($this->id);\n\n return($event->host != Auth::id());\n }", "public function isRequestOrigin()\n {\n return ($this->request->headers->has('X-GitHub-Event'));\n }", "public function hasRequestBeenHandled() : bool\n {\n return $this->requestHandled;\n }", "public function isObserved() {}", "public function fireEvent(string $eventName): bool;", "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 function isAppEventEnabled()\n {\n return true;\n }", "public function hasListeners($eventName): bool;", "public function hasEventListeners($event);", "public function isInternal() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->isInternal();\n } else {\n return parent::isInternal();\n }\n }", "public function hasListeners($event): bool;", "public function matchEvent(Mage_Index_Model_Event $event)\n {\n return false;\n }", "function isRegistered($event) {\n return Event::isRegistered($event);\n }", "private function _isEventForMe(TestEvent $event)\n\t{\n\t\treturn $event->getTestCase()->getSessionStrategy() instanceof self;\n\t}", "public function isOffHook() {\n\t\treturn $this->offHook;\n\t}", "public function isPropagationStopped($event = null) : bool;", "public function isRoomEvent()\n {\n return $this->baseEvent->isRoomEvent();\n }", "public function hasDataCollectionEvents() {\n return $this->_has(8);\n }", "public function isClosure() {\n return $this->forwardCallToReflectionSource( __FUNCTION__ );\n }", "public function isIgnoreObserver(){\n\t\t$ignore = true;\n\t\t$data = Mage::app()->getRequest()->getParams();\n\t\tif (isset($data['echeck_dropship']) && $data['echeck_dropship'] == 1)$ignore = false;\n\t\treturn $ignore;\n\t}", "public function fireEventCancel(string $eventName): bool;", "final public function allowsEvents() {\n\t\treturn false;\n\t}", "public function hasChanged(): bool;", "public function hasChanged(): bool;", "public function triggered()\n {\n Log::debug('user_action always returns true.');\n\n return true;\n }", "public function eventExists()\n {\n return $this->getTalk()->getSpeaker()->exists();\n }", "public function shouldDiscoverEvents()\n {\n return true;\n }", "public function handles_events()\n\t{\n\t\treturn false;\n\t}", "public function isHandled(): bool;", "public function isBound()\n {\n $this->assertTrue($this->app->bound('laravelflutterwave'));\n }", "public function hasRequest()\n {\n return $this->request ? true : false;\n }", "public function isCallInitializationHook()\n {\n return $this->callInitializationHook;\n }", "public function event_has_run($name)\r\n\t{\r\n\t\treturn isset($this->observer_has_run[$name]);\r\n\t}", "private function handleDispatch($eventName)\n {\n $event = $this->dispatch($eventName);\n\n return !$event->isPropagationStopped();\n }", "public function matchesRequest(): bool\n {\n return $this->validateSignature() && $this->payload->get('webhook_event_type') === static::EVENT_TYPE;\n }", "public function getBase(): false|EventBase {}", "public function shouldLogEvent()\n {\n return config('ldap.logging', false);\n }", "private function checkEventExists(){\n $event = Event::find($this->id);\n\n return(!is_null($event));\n }", "private function hasEventLinks()\n {\n return !empty($this->eventlinks);\n }", "public function isInterceptFileFuncs()\n {\n if (isset($this->raw->intercept)) {\n return $this->raw->intercept;\n }\n\n return false;\n }", "public function active_hook($which)\n {\n $hasActiveHooks = parent::active_hook($which);\n\n /*\n if !hasActiveHooks should we always fire the :before and :after events here?\n */\n\n // Fire a hook event regardless of whether EE has an active hook\n // $value = Events\\HookTriggered::dispatch($which, $hasActiveHooks);\n // if($which == 'typography_parse_type_start') {\n // dd($hasActiveHooks, $this->hasListeners($which), Event::getListeners('ee:typography_parse_type_start'), Event::getListeners('ee:typography_parse_type_start:final'));\n // }\n // return true;\n return $hasActiveHooks || $this->hasListeners($which);\n }", "public function isPropagationStopped() : bool\n {\n return $this->event->getPropagation($this->getName());\n }", "public function isActivated() {}", "public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }", "public function hasListeners($eventName);", "public static function failed_event_method()\n {\n return false;\n }", "public function valid()\n {\n return (false !== \\next($this->events)) ? current($this->events) : false;\n }", "public function has($name)\r\n {\r\n return isset($this->_events[$name]);\r\n }", "public function shouldTrigger(ListenerContract $listener, ?string $appKey): bool;", "public function isPropagationStopped(): bool;", "public function hasReceivedMoved()\n {\n return (\n $this->_movedSignal instanceof Streamwide_Engine_Signal\n && $this->_movedSignal->getName() === Streamwide_Engine_Signal::MOVED\n );\n }", "public function hasRequest(): bool;", "public function hasRequest(): bool;", "protected function shouldIgnore($eventName): bool\n {\n return $this->eventIsIgnored($eventName) || $this->eventIsFiredByTheFramework($eventName);\n }", "public function verifyApiCaller() : bool\n {\n $verified = false;\n\n // check for NOAUTH and no-auth-pages configuration for current page\n // these two settings must be present for the endpoint to be visible outside of REDCap\n if (isset($_GET['NOAUTH']) && in_array($_GET['page'], parent::getConfig()[\"no-auth-pages\"])) \n {\n // MODIFY THIS CHECK for the security needs of your system.\n // This hardcoded token should be changed and pulled from a secure location,\n // if using with a third-party service.\n $rctoken = $_REQUEST['rctoken'];\n if ($rctoken === 'ca5d63d58b507615c328da941270ddf0')//IMPORTANT: modify token and pull from a secure location\n {\n $verified = true;\n }\n }\n // if endpoint is not externally accessible, then this endpoint user has been authenticated by REDCap\n else\n {\n $verified = true;\n }\n\n\n return $verified;\n }", "public function isExecuted() {}", "function isChanged(): bool;", "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 checkSignal()\n {\n if($this->current_signal){\n $this->fire($this->current_signal); \n }\n }", "protected function _shouldProcess($event, Model $model) {\n return in_array($event, $this->settings[$model->alias]['on']);\n }", "public function hasView()\n {\n return false;\n }", "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}", "private function checkRoute()\n\t{\n\t $route = GlobalSystem::routeType();\n\t\tif(key_exists($route, RequestRoute::$routes)){\n\t\t\t$this->trigger = RequestRoute::$routes[$route][GlobalSystem::ExpRouteKeyTrigger];\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function isInternal() {\n\t\treturn $this->movedTo !== NULL && $this->removed === TRUE;\n\t}", "public static function listeners($event) {\n return isset(static::$events[$event]);\n }", "public function isActionClosure()\n {\n return $this->isActionClosure;\n }", "public function canManageTracking();", "public function shouldHandleEvent(DomainEventWithRepositoryReference $domainEventWithRepositoryReference): bool\n {\n return true;\n }", "public function broadcastWhen() {\n $return = false;\n $ids_to_broadcast = [$this->message->userId, $this->message->receiverUserId];\n if (in_array($this->message->userId, $ids_to_broadcast) || in_array($this->message->receiverUserId, $ids_to_broadcast)) $return = true;\n return $return;\n }", "public function hasExcecuted()\n {\n return $this->executed;\n }", "public function isSystemCall() {\n\t\treturn !( $this->user instanceof User );\n\t}", "public function hasTimeEvents(){\n return $this->_has(8);\n }", "public function isDelegated(): string {\n return $this->context->isDelegated;\n }", "public function isBroadcasted();", "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 isRouted() {\n\t\treturn $this->routed;\n\t}", "public function hasDispatchedRoutes()\n {\n return $this->routesDispatched > 0;\n }", "public function supportsHookSubscribers()\n {\n return false;\n }", "public static function is_callback() {\n echo $_SERVER['HTTP_X_REQUESTED_WITH'];\n\n return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) &&\n strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');\n }", "function isListening() {\n\t\treturn !empty($this->data['INFO_REMOTE_METHOD']) && !empty($this->data['INFO_REMOTE_URI']);\n\t}", "public function hasCatchCallbacks()\n {\n return isset($this->options['catch']) && ! empty($this->options['catch']);\n }", "public function isForwarded()\n {\n return $this->forward_from!==null;\n }", "public function getIsHandled();" ]
[ "0.6848045", "0.6518737", "0.6367256", "0.6243978", "0.61851954", "0.60979146", "0.60219926", "0.601686", "0.6006428", "0.5933898", "0.5916839", "0.58976793", "0.58310074", "0.5808363", "0.5730961", "0.568006", "0.5655343", "0.5643727", "0.563176", "0.5627944", "0.562742", "0.56191343", "0.5613005", "0.56092036", "0.55888754", "0.55839854", "0.55523324", "0.554959", "0.5532112", "0.5522217", "0.5514121", "0.5506499", "0.5495478", "0.54852366", "0.54848486", "0.5471972", "0.54533833", "0.5451929", "0.54089624", "0.54040414", "0.54040414", "0.5388791", "0.538672", "0.5378704", "0.5371149", "0.53649294", "0.53585315", "0.53577036", "0.53575647", "0.53441864", "0.53428465", "0.5333877", "0.53226954", "0.53183377", "0.5308994", "0.53066516", "0.5301625", "0.5300837", "0.529918", "0.52975476", "0.52856636", "0.5282085", "0.5276929", "0.5269315", "0.52670926", "0.526136", "0.5254373", "0.5243081", "0.52425605", "0.52425605", "0.522838", "0.5218825", "0.5213441", "0.52088606", "0.5207016", "0.52067184", "0.52056473", "0.51988256", "0.5197032", "0.51935834", "0.5193004", "0.519299", "0.5192848", "0.5190424", "0.5187529", "0.5183676", "0.5182896", "0.5178144", "0.5173483", "0.51707965", "0.51702446", "0.5163861", "0.516183", "0.5159244", "0.514785", "0.5145359", "0.5126459", "0.5109699", "0.5097557", "0.50967085" ]
0.56627923
16
Determine if the event is ignored manually.
protected function eventIsIgnored($eventName) { return Str::is($this->options['ignore'] ?? [], $eventName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isIgnoreObserver(){\n\t\t$ignore = true;\n\t\t$data = Mage::app()->getRequest()->getParams();\n\t\tif (isset($data['echeck_dropship']) && $data['echeck_dropship'] == 1)$ignore = false;\n\t\treturn $ignore;\n\t}", "public function isUnknownEvent()\n {\n return $this->baseEvent->isUnknownEvent();\n }", "protected function eventIsIgnored($eventName): bool\n {\n return Str::is($this->options['ignore'] ?? [], $eventName);\n }", "public function isIgnored(): bool;", "protected function shouldIgnore($eventName): bool\n {\n return $this->eventIsIgnored($eventName) || $this->eventIsFiredByTheFramework($eventName);\n }", "public function test_is_event_ignored(event_base $event) {\n if (!PHPUNIT_TEST) {\n throw new \\coding_exception('Public test method can only be invoked by PHPUnit');\n }\n return $this->is_event_ignored($event);\n }", "public function getIgnored() : bool\n {\n return $this->ignored;\n }", "public function isHandled(): bool;", "public function shouldntRaiseAnEvent()\n {\n }", "public function getIsHandled();", "public function eIgnore(bool $ignore) : bool\n {\n $this->errignore = $ignore;\n $wi = $this->wasignored;\n $this->wasignored = FALSE;\n return $wi;\n }", "protected function shouldIgnore($eventName)\n {\n return $this->eventIsIgnored($eventName) ||\n (Telescope::$ignoreFrameworkEvents && $this->eventIsFiredByTheFramework($eventName));\n }", "public function whenAddressed(): bool\n {\n return false;\n }", "final public function getIgnore()\n {\n return (bool)$this->getOption('data-ignore');\n }", "public function isHandled() {\n return $this->_isHandled;\n }", "public function getShouldNotProcess()\n\t{\n\t\t$state = $this->data->get(\"state\");\n\t\treturn !$state || $state == self::STATE_NONE || $state == self::STATE_STOPPED;\n\t}", "public function didSkip()\n {\n return (bool) ($this->status & static::DID_SKIP);\n }", "public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }", "final public function allowsEvents() {\n\t\treturn false;\n\t}", "public function isNotReceived()\n\t{\n\t\tif($this->test_status_id == Test::NOT_RECEIVED)\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t}", "public function canSkipOrderReviewStep()\n {\n return !$this->_quote->getPayment()->getAdditionalInformation(self::PAYMENT_INFO_BUTTON);\n }", "public function beforeSave($event=null) {\n if ($this->_ignoreEvent)\n return true;\n else\n throw new CDbException(Yii::t('yiiext', 'You should not use CActiveRecord::save() method when NestedSetBehavior attached.'));\n }", "private function checkEventNotBookedByCreator(){\n $event = Event::find($this->id);\n\n return($event->host != Auth::id());\n }", "public function isIgnoreMinimumExecutionTime()\n\t{\n\t\treturn $this->ignoreMinimumExecutionTime;\n\t}", "public function shouldHide() {\n // \"alice set this event to repeat weekly.\" event in normal circumstances\n // anyway.\n return true;\n }", "public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}", "public function isEvent()\n {\n return isset($this->status_changed) && ! is_null($this->status_changed);\n }", "public function handles_events()\n\t{\n\t\treturn false;\n\t}", "function notification_ignore() {\n\n $ignore_key = CUSTOM_LOGIN_OPTION . '_ignore_announcement';\n\n // Bail if not set\n if ( ! isset( $_GET[ $ignore_key ] ) ) {\n return;\n }\n\n // Check nonce\n check_admin_referer( $ignore_key, $ignore_key );\n\n // If user clicks to ignore the notice, add that to their user meta\n add_user_meta( get_current_user_id(), $ignore_key, 1, true );\n }", "public static function shouldIgnoreBotRequests(): bool\n {\n return config('laravel-server-analytics.ignore_bot_requests');\n }", "public function do_not_track()\n\t{\n\t\tstatic $shifted;\n\t\tif ($shifted !== TRUE)\n\t\t{\n\t\t\tarray_shift($this->tracker);\n\t\t\t$shifted = TRUE;\n\t\t}\n\t\t$this->set_tracker_cookie();\n\t}", "public function isUnsentOrderAdjustmentEnabled()\n {\n $flag = (integer) $this->scopeConfig->getValue(\n 'orderflow_inventory_import/settings/adjust_inventory',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_WEBSITE\n );\n\n return $flag > 0;\n }", "public function isEvaled()\n {\n return false;\n }", "public function didNotExistBefore(): bool\n {\n return $this->beforeDoesNotExist;\n }", "public function shouldLogEvent()\n {\n return config('ldap.logging', false);\n }", "public function hasIgnoreEnabledFlag()\n {\n return $this->ignore_enabled_flag !== null;\n }", "public function testTaskBlockedNotifyProjectOwnerListenerWithoutPo()\n {\n // Get new project\n $project = $this->getNewProject();\n $project->save();\n\n // Assigned 30 minutes ago\n $minutesWorking = 30;\n $assignedAgo = (int)(new \\DateTime())->sub(new \\DateInterval('PT' . $minutesWorking . 'M'))->format('U');\n\n $task = $this->getAssignedTask($assignedAgo);\n $task->title = 'Test';\n $task->project_id = $project->id;\n $task->save();\n\n // Call event and listener\n $task->blocked = true;\n $event = new \\App\\Events\\TaskBlockedNotifyProjectOwner($task);\n $listener = new TaskBlockedNotifyProjectOwner($task);\n $response = $listener->handle($event);\n\n $this->assertEquals(false, $response);\n }", "public function isNotSent()\n {\n return ! $this->isSent();\n }", "public function getIgnore()\n {\n return $this->ignore;\n }", "public function isOffHook() {\n\t\treturn $this->offHook;\n\t}", "public function isExcluded(): bool\n {\n return $this->exclude ?? false;\n }", "private function shouldHookBeMoved(): bool\n {\n return !empty($this->moveExistingTo);\n }", "public function isDisabled($operation = OperationTypes::OP_UPDATE, $ignore_op = FALSE);", "public function isDoNotTrack(): bool\n {\n return $this->headers->get('DNT', '0') == '1';\n }", "private function shouldHookBeSkipped(string $hook): bool\n {\n return $this->skipExisting && $this->repository->hookExists($hook);\n }", "private function shouldHookBeSkipped(string $hook): bool\n {\n return $this->skipExisting && $this->repository->hookExists($hook);\n }", "function GetExcludedEvents();", "public function isPropagationStopped($event = null) : bool;", "public static function failed_event_method()\n {\n return false;\n }", "protected function assertCancelingEvent($event_type) {\n return !empty($this->configuration['event_settings'][$event_type]);\n }", "private static function _skip_tracking() {\n\n\t\tif ( function_exists( 'apply_filters_deprecated' ) ) {\n\t\t\tapply_filters_deprecated( 'statify_skip_tracking', array( '' ), '1.5.0', 'statify__skip_tracking' );\n\t\t}\n\t\t// Skip tracking via Hook.\n\t\t$skip_hook = apply_filters( 'statify__skip_tracking', null );\n\t\tif ( null !== $skip_hook ) {\n\t\t\treturn $skip_hook;\n\t\t}\n\n\t\t// Skip tracking via User Agent.\n\t\t$user_agent = filter_var(\n\t\t\t( isset( $_SERVER['HTTP_USER_AGENT'] ) ? wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) : '' ),\n\t\t\tFILTER_SANITIZE_STRING\n\t\t);\n\t\tif ( is_null( $user_agent )\n\t\t\t|| false === $user_agent\n\t\t\t|| self::is_bot( $user_agent ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip tracking via Referrer check.\n\t\tif ( self::check_referrer() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip for trackbacks and robots.\n\t\tif ( is_trackback() || is_robots() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip logged in users, if enabled.\n\t\tif ( self::$_options['skip']['logged_in'] && is_user_logged_in() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Skip for \"internal\" requests.\n\t\treturn self::_is_internal();\n\t}", "public function testComposerPrePackageUninstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package('dummy', '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('uninstall');\n $this->app->handleEvent($event);\n }", "public static function suppressed(): bool\n {\n return @trigger_error('hello');\n }", "protected function onBeforeUnlock($ignored = array())\n\t{\n\t\t$this->ignorePreSaveChecks = true;\n\t}", "public function isOverridden(): bool\n {\n return $this->interval !== null;\n }", "public function fireEventCancel(string $eventName): bool;", "public function getHasBeenRejectedBefore(): bool;", "public function isSignal()\n {\n return ! $this->isDice() && ! $this->isVariable() && empty($this->number);\n }", "public function testComposerPostPackageInstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package(App::PACKAGE_NAME, '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('install');\n $this->app->handleEvent($event);\n }", "public function didNotExistAfter(): bool\n {\n return $this->afterDoesNotExist;\n }", "public function failNoisily() :bool{\n\t\treturn !$this->failSilently;\n\t}", "public function isEventRecurs() {\n\t\treturn ($this->eventRecurs);\n\t}", "public function shouldDiscoverEvents(): bool\n {\n return false;\n }", "public function isCancelled(){\n return (bool) $this->cancelled_on != null;\n }", "function lcars_notice_ignore() {\n\t\tglobal $current_user;\n\t\t$user_id = $current_user->ID;\n\t\tif ( isset( $_GET['lcarsframework_nag_ignore'] ) && '0' == $_GET['lcarsframework_nag_ignore'] ) {\n\t\t\tadd_user_meta( $user_id, 'lcarsframework_ignore_notice', 'true', true );\n\t\t}\n\t}", "public function isDoNotSpellCheckSet() {}", "public function cancelled()\n {\n return ! is_null($this->cancelledAt);\n }", "public function test_events_are_not_triggered_for_invalid_entities() {\n $client = m::mock('\\GuzzleHttp\\Client');\n $client->shouldReceive('createRequest')->never();\n $client->shouldReceive('send')->never();\n $course = $this->getDataGenerator()->create_course();\n $return = $this->_app['dragdrop_event']->handle_event('sentence', array(), NOGROUPS, m::mock('dragdrop_user'), m::mock('dragdrop_model_manager'), $client);\n $this->assertEmpty($return);\n }", "public function getIgnoreRepeat(): bool\n {\n return $this->ignoreRepeat;\n }", "public function isToIgnoreColumn(): bool\n {\n if ($this->entity->code['name'] === 'deleted_at') {\n return true;\n }\n\n\n if (ArraySearcher::arraySearchByAttribute(\n $this->entity->code['name'],\n $this->parentEntity->system->relations,\n 'morph_type'\n )\n ) {\n return true;\n }\n return false;\n }", "protected function setInvoiceCancelled(): bool\n {\n if (!$this->isUserInvoiceImplemented()) {\n return parent::setInvoiceCancelled();\n } else {\n return false;\n }\n }", "public function exclude_sale_items() {\n\t\treturn 'yes' === $this->exclude_sale_items;\n\t}", "public function shouldSkipUnknownProperties(): bool\n {\n return $this->skipUnknownProperties;\n }", "protected function _shouldProcess($event, Model $model) {\n return in_array($event, $this->settings[$model->alias]['on']);\n }", "public function disableCommand(): bool\n {\n return $this->commandShouldRun = false;\n }", "public function setIgnore(bool $ignore): void;", "public function isNot()\n {\n return $this->not;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function getStillWanted() {\n $wanted = Event::fireReturn($this->getEventID(), $this->type, $this->filter, 'ping');\n if ($wanted || count($wanted)) {\n return true;\n }\n return false;\n }", "public function isDeclined(): bool;", "public function shouldBeSkipped();", "public function getIgnoreQuestionValidation()\n {\n return $this->ignoreQuestionValidation;\n }", "public function isAppEventEnabled()\n {\n return true;\n }", "public function testNotRun(\\unittest\\TestSkipped $ignore) {\n $this->stats['notrun']++;\n }", "public function isNoop(): bool\n {\n return $this->__call(__FUNCTION__, func_get_args());\n }", "public function isExcluded()\n {\n return $this->excluded;\n }", "public function isSkip()\n {\n return $this->skip;\n }", "public function isCancelable(): bool;", "public function isMissed(): bool\n {\n return $this->status == 'missed';\n }", "public function excludeNotification( $row )\n \t{\n \t\treturn false;\n \t}", "public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }", "public function testComposerPostPackageUpdateEventHandlerDoesNotRunWithOtherEvents(): void {\n // Update must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $initial = new Package(App::PACKAGE_NAME, '1.0.0.0', '^1.0');\n $operation = new InstallOperation($initial);\n $packageEvent = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n\n $this->configUpdateManager\n ->expects(self::never())\n ->method('update');\n\n $this->app->handleEvent($packageEvent);\n }", "protected function isUnchanged() {}", "public function shouldBeSkipped() {\n\t\treturn !$this->countItems();\n\t}", "public function testIgnoreCustom()\n {\n $this->app['config']->set('jsvalidation.ignore', ':hidden');\n $jsValidator = $this->app['jsvalidator']->make([]);\n\n $this->assertArrayHasKey('ignore', $jsValidator->toArray());\n $this->assertEquals(\":hidden\", $jsValidator->toArray()['ignore']);\n }", "public function isUserEvent()\n {\n return $this->baseEvent->isUserEvent();\n }", "public function isHit()\n {\n return false;\n }", "private function _isRejected($event)\n {\n return in_array(\n $event,\n array('catalogsearch_advanced_result', 'catalogsearch_advanced_index')\n );\n }", "private function checkEventDateNotDue(){\n $event = Event::find($this->id);\n $now = Carbon::now();\n \n $startTime = Carbon::createFromFormat('Y-m-d H:i:s', $event->start_time);\n return $startTime->gt($now);\n }", "public function testIgnoreCustom2()\n {\n $jsValidator = $this->app['jsvalidator']->make([]);\n $jsValidator->ignore(':hidden');\n\n $this->assertArrayHasKey('ignore', $jsValidator->toArray());\n $this->assertEquals(\":hidden\", $jsValidator->toArray()['ignore']);\n }" ]
[ "0.69420135", "0.67698324", "0.67114353", "0.6691921", "0.65381765", "0.6518036", "0.6389979", "0.636376", "0.63080126", "0.6291757", "0.611743", "0.60616046", "0.60272646", "0.5942199", "0.5920974", "0.5884376", "0.58364475", "0.58233994", "0.5808858", "0.57748795", "0.5772133", "0.5719919", "0.5689207", "0.5560389", "0.55518717", "0.5549325", "0.5499445", "0.5480972", "0.5480962", "0.5468767", "0.545062", "0.5443626", "0.5410881", "0.5392003", "0.53725946", "0.5371714", "0.5365567", "0.5354187", "0.53518903", "0.5333675", "0.532791", "0.53231424", "0.53113943", "0.529145", "0.5289769", "0.5289769", "0.52893317", "0.5282404", "0.5275377", "0.5266879", "0.52593046", "0.5239256", "0.5231924", "0.52275676", "0.5214955", "0.52139306", "0.5211988", "0.52099967", "0.5206757", "0.51948214", "0.519404", "0.5192412", "0.5185748", "0.51565176", "0.51509047", "0.5143859", "0.51286364", "0.5115362", "0.51092154", "0.5105898", "0.5087525", "0.50731945", "0.5072362", "0.50627875", "0.5062685", "0.5061654", "0.5059219", "0.5059219", "0.5054988", "0.5049634", "0.5049296", "0.50422233", "0.50368476", "0.5035367", "0.5027551", "0.5024414", "0.50221777", "0.50179106", "0.5015738", "0.5011368", "0.5007664", "0.5004031", "0.4996507", "0.49928808", "0.49889424", "0.49830332", "0.49806276", "0.49742395", "0.4968544", "0.4960518" ]
0.66110426
4
Response with error status code 422
protected function responseErrors($errors) { Yii::$app->response->setStatusCode(422); return [ 'errors' => $errors ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function error422(): JsonResponse\n {\n $mensaje = [\n 'code' => Response::HTTP_UNPROCESSABLE_ENTITY,\n 'message' => 'Unprocessable Entity'\n ];\n\n return new JsonResponse(\n $mensaje,\n Response::HTTP_UNPROCESSABLE_ENTITY\n );\n }", "protected function notValid()\n {\n $this->response = $this->response->withStatus(422);\n $this->jsonBody([\n 'input' => $this->payload->getInput(),\n 'output' => $this->payload->getOutput(),\n 'messages' => $this->payload->getMessages(),\n ]);\n }", "private function unprocessableResponse() {\r\n $response['status_code_header'] = HTTP_UNPROCESSABLE;\r\n $response['body'] = json_encode([\r\n 'error' => 'Invalid input'\r\n ]);\r\n\r\n return $response;\r\n }", "protected function invalidResponse(){\n return response()->json([\n 'ResultCode' => 1,\n 'ResultDesc' => 'Failed to complete the transaction',\n 'ThirdPartyTransID' => 0\n ]);\n\n }", "public function badRequestResponse(){\n $this->response->statusCode(400);\n return $this->response;\n }", "protected function errorResponse($message = null, $code = 422)\n {\n return response()->json([\n 'status'=>'Error!',\n 'errors' => $message,\n 'data' => null\n ], $code);\n }", "public function response(array $errors): Response\n {\n return response($errors, 422);\n }", "protected function failure()\n {\n $this->response = $this->response->withStatus(400);\n $this->jsonBody($this->payload->getInput());\n }", "protected function error()\n {\n $this->response = $this->response->withStatus(500);\n $this->jsonBody([\n 'input' => $this->payload->getInput(),\n 'error' => $this->payload->getOutput(),\n ]);\n }", "private function error400(): JsonResponse\n {\n $mensaje = [\n 'code' => Response::HTTP_BAD_REQUEST,\n 'message' => 'Bad Request'\n ];\n\n return new JsonResponse(\n $mensaje,\n Response::HTTP_BAD_REQUEST\n );\n }", "public function respondWithError(array $data = [])\n\t{\n\t\treturn $this->setStatusCode(Response::HTTP_UNPROCESSABLE_ENTITY)\n\t\t\t->respond(array_merge(['status' => 'ERROR'], $data));\n\t}", "function jsonErrorResponse($message = 'Error', $code = 400)\n{\n $data = [\n 'success' => false,\n 'code' => $code,\n ];\n\n if (is_array($message)) {\n $data = array_merge($data, $message);\n } else {\n $data['message'] = $message;\n }\n \n return\n response()\n ->json($data, $code);\n}", "public function apiValidate($errors, $message = false)\n {\n Yii::$app->response->statusCode = 422;\n return [\n 'statusCode' => 422,\n 'name' => 'ValidateErrorException',\n 'message' => $message ? $message : 'Error validation',\n 'errors' => $errors\n ];\n }", "public function response(array $errors)\n {\n return new JsonResponse($errors, 422);\n }", "public function throwValidation(array $errors = [])\n {\n $response = new JsonResponse($errors, 422);\n\n die($response->send());\n }", "function missingParamToPostResponse(){\n\n $return = array(\n 'status' => 400,\n 'message' => \"Missing params to post.\"\n );\n\n http_response_code(400);\n\n //Send back response to client. \n print_r(json_encode($return));\n\n}", "protected static function apiResponseValidationError($errors){\n self::setStatusCode(Response::HTTP_UNPROCESSABLE_ENTITY);\n return self::apiResponse([\n 'status' => 'error',\n 'status_code' => self::getStatusCode(),\n 'error' => $errors\n ]);\n }", "public function s409($message = '') { self::respondWithJSON($message, 409); }", "public function formError($error = [])\n {\n return $this->setStatusCode(422)->respond(['message' => \"The given data was invalid.\", 'error' => $error]);\n }", "public function error(int $status, $message = null, array $headers = []): ResponseInterface;", "public function errorValidation(array $data): Response\n {\n $response = [];\n $response['id'] = Uuid::uuid1();\n $response['title'] = 'Validation error';\n $response['detail'] = 'Some fields are not correctly sent';\n $response['source']['pointer'] = $data;\n $response['status'] = 400;\n\n return $this->withJson(['error' => $response], 400);\n }", "public function apiValidate($errors, $message = false)\n {\n Yii::$app->response->statusCode = 422;\n return [\n 'statusCode' => 422,\n 'name' => 'ValidateErrorException',\n 'message' => $message ? $message : 'Error validation',\n 'errors' => $errors\n ];\n }", "public function response(array $errors) {\n\n return response()->json(['errors' => $errors, \"code\" => 422], 422);\n // if ($this->ajax() || $this->wantsJson()) {\n // return new JsonResponse($errors, 422);\n // }\n\n // return $this->redirector\n // ->to($this->getRedirectUrl())\n // ->withInput($this->except($this->dontFlash))\n // ->withErrors($errors, $this->errorBag);\n }", "public function validationError($validator)\n {\n $messages = $validator->errors()->getMessages();\n $this->response = $this->laravelResponse->setContent(json_encode(['ErrorCode' => 'ValidationFail',\n 'ErrorDescription' => 'The input validation failed', 'errors' => $messages]))->setStatusCode(400);\n return $this->respond();\n }", "public function respondValidationError($message = 'Validation errors')\n {\n return $this->setStatusCode(422)->respondWithErrors($message);\n }", "function errorMessage($status, $message)\n {\n return response([\n 'status' => $status,\n 'message' => $message\n ]);\n }", "private function returnError($message){\n return response()->json([\n 'status' => 'error',\n 'error' => $message\n ], 200);\n }", "public static function pushException($response)\n {\n return response()->json(\n [\n 'error' => [\n 'message' => $response\n ]\n ], 422);\n }", "private function createValidationErrorResponse(FormInterface $form)\n {\n $errors = $this->getErrorsFromForm($form);\n $data = [\n 'type' => 'validation_error',\n 'title' => 'There was a validation error',\n 'errors' => $errors,\n ];\n return new JsonResponse($data, JsonResponse::HTTP_BAD_REQUEST);\n }", "public function responseError($key, $value) {\n return response()->json([\n 'code' => $key,\n 'message' => $value\n ]\n );\n }", "public static function buildInvalidJsonResponse(): static\n {\n $dto = static::buildBadRequestErrorResponse();\n $dto->setMessage(self::MESSAGE_INVALID_JSON);\n return $dto;\n }", "protected function sendFailedLoginResponse()\n {\n return response()->json([\n 'message' => $this->errorMessage,\n ], 401);\n }", "private function createBadRequestResponse(): Response\n {\n return new Response(\n $this->getStatusTextForResponseCode(Response::HTTP_BAD_REQUEST),\n Response::HTTP_BAD_REQUEST\n );\n }", "protected static function apiResponseError($message)\n {\n self::setStatusCode(Response::HTTP_BAD_REQUEST);\n return self::apiResponse([\n 'status' => 'error',\n 'status_code' => self::getStatusCode(),\n 'message' => $message,\n ]);\n }", "public function postErrorResponse()\n {\n $this->getResponse()->code(400)->redirect();\n return $this->form;\n }", "public function getErrorResponseJson()\n { \n $data = array();\n \n foreach ($this->_fields as $name => $info) {\n $errors = array();\n if (isset($this->_errors[$name]) && is_array($this->_errors[$name]) && count($this->_errors[$name]) > 0) { \n $errors = $this->_errors[$name];\n }\n $fieldData = ' \"' . $name . '\" : { \"value\" : \"' . $info['value'] . '\"';\n if (count($errors) > 0) {\n $fieldData .= ', \"errors\" : [ \"' . join('\", \"', $errors) . '\" ]';\n }\n $fieldData .= ' }';\n \n $data[] = $fieldData;\n }\n \n $response = '{ \"type\" : \"error\", \"data\" : { ' . join(', ', $data) . ' } }';\n return $response;\n }", "protected function respondInvalidRequest($message)\n {\n return response()->json([\n 'success' => false,\n 'message' => $message\n ], 200);\n }", "protected function validationErrorToResponse(ValidationException $e, int $status = 400): JsonResponse\n {\n $response = [\n 'status' => $status,\n 'code' => ResponseStatus::VALIDATION_FAILED,\n 'title' => 'Some validation errors were encountered while processing your request',\n 'source' => validation_errors_to_messages($e)\n ];\n # convert the error\n return response()->json(['errors' => [$response]], $status);\n }", "public function prefillBaseFieldsForBadRequestResponse(): void\n {\n $this->setCode(Response::HTTP_BAD_REQUEST);;\n $this->setSuccess(false);\n }", "public function testPostPerson422UnprocessableEntity(): void\n {\n $p_data = [\n // 'name' => self::$faker->words(3, true),\n 'birthDate' => self::$faker->date(),\n 'deathDate' => self::$faker->date(),\n 'imageUrl' => self::$faker->imageUrl(),\n 'wikiUrl' => self::$faker->url\n ];\n $response = $this->runApp(\n 'POST',\n self::RUTA_API,\n $p_data,\n $this->getTokenHeaders(parent::$writer['username'], parent::$writer['password'])\n );\n $this->internalTestError($response, StatusCode::STATUS_UNPROCESSABLE_ENTITY);\n }", "private function notFoundResponse(){\n \n $response['status_code_header'] = 'HTTP/1.1 404 Not Found';\n $response['body'] = null;\n return $response;\n }", "public function response(array $errors)\n\t{\n//\t\ttried but didn't work\n//\t\t return Response::json(array(\n//\t\t\t\t array(\n//\t\t\t\t 'message' => 'Validation Failed',\n//\t\t\t\t 'errors' => $errors),\n//\t\t\t \t\t'404'\n//\t\t\t )\n//\n//\t\t );\n\t\t$e = array(\n\t\t\t'error' => 'Validation Failed',\n\t\t\t'errors' => $errors);\n\t\treturn response($e, 400)->header('Content-Type', 'application/json');\n\n\t}", "public function error(BaseResponse $response);", "protected function getBadRequestResponse()\n {\n $response = new Response();\n $response->setStatusCode(400);\n $response->setContent('Bad request');\n\n return $response;\n }", "function respondWithError($message, $httpCode = 500) {\n header('Content-Type: application/json');\n http_response_code($httpCode);\n $json = json_encode([\n 'ok' => false,\n 'error' => $message,\n ], JSON_PRETTY_PRINT);\n echo $json;\n exit();\n}", "function failure($error) {\r\n $data = array();\r\n $data['success'] = false;\r\n $data['error'] = $error;\r\n\r\n header('Content-Type: application/json');\r\n exit(json_encode($data));\r\n}", "private function responseErrors($errors)\n {\n $code = Response::HTTP_UNPROCESSABLE_ENTITY;\n\n //FIXME add extra metadata to this response\n $response = [\n 'code' => $code,\n 'message' => $this->translator->trans('VALIDATION_ERROR')\n ];\n\n $response['errors'] = $errors;\n\n return new JsonResponse($response, $code);\n }", "function invalidMethodResponse(){\n\n $return = array(\n 'status' => 400,\n 'message' => \"Bad method given\"\n );\n\n http_response_code(400);\n\n //Send back response to client. \n print_r(json_encode($return));\n\n}", "public function __construct()\n {\n return response([],400);\n }", "public function getInvalidRequestResponse()\n {\n $result['responseCode'] = self::RESPONSE_INVALID_REQUEST;\n return $result;\n }", "public static function getResponseError($code = '')\n {\n return response()->json([\n CommonConstant::KEY_ERROR => [\n CommonConstant::KEY_CODE => $code\n ],\n ], 200);\n }", "function errorJSON(){\n header('Content-Type: application/json');\n $output['Error'] = \"Invalid Request\";\n die(json_encode($output));\n }", "protected function buildFailedValidationResponse(Request $request, array $errors)\n {\n return new JsonResponse($errors, 422);\n }", "private function getMockResponseWithInvalidStatusCode()\n {\n $response = $this->getBaseMockResponse();\n\n $apiRawResponse = <<<JSON\n{\n \"data\": {\n \"global_hash\": \"900913\",\n \"hash\": \"ze6poY\",\n \"long_url\": \"http://www.google.com/\",\n \"new_hash\": 0,\n \"url\": \"http://bit.ly/ze6poY\"\n },\n \"status_code\": 500,\n \"status_txt\": \"KO\"\n}\nJSON;\n\n $response\n ->expects($this->once())\n ->method('getBody')\n ->will($this->returnValue($apiRawResponse));\n\n return $response;\n }", "protected function unknown()\n {\n $this->response = $this->response->withStatus(500);\n $this->jsonBody([\n 'error' => 'Unknown domain payload status',\n 'status' => $this->payload->getStatus(),\n ]);\n }", "function json_response($code = 200, $message = null)\n{\n header_remove();\n // set the actual code\n http_response_code($code);\n // set the header to make sure cache is forced\n header(\"Cache-Control: no-transform,public,max-age=300,s-maxage=900\");\n // treat this as json\n header('Content-Type: application/json');\n $status = array(\n 200 => '200 OK',\n 400 => '400 Bad Request',\n 422 => 'Unprocessable Entity',\n 500 => '500 Internal Server Error'\n );\n // ok, validation error, or failure\n header('Status: '.$status[$code]);\n // return the encoded json\n return json_encode(array(\n 'status' => $code < 300, // success or not?\n 'message' => $message\n ));\n}", "function json_response($code = 200, $message = null, $error = false)\n{\n header_remove();\n // set the actual code\n http_response_code($code);\n // set the header to make sure cache is forced\n header('Cache-Control: no-transform,public,max-age=300,s-maxage=900');\n // treat this as json\n header('Content-Type: application/json');\n $status = array(\n 200 => '200 OK',\n 400 => '400 Bad Request',\n 404 => '404 Not Found',\n 422 => 'Unprocessable Entity',\n 500 => '500 Internal Server Error'\n );\n // ok, validation error, or failure\n header('Status: '.$status[$code]);\n // return the encoded json\n if ($error){\n return json_encode(array(\n 'status' => $status[$code] === 200,\n 'error' => array('errorCode'=>0,'message' => $message)\n ));\n }\n return json_encode(array(\n 'success' => array('message' => $message)\n ));\n}", "public function baseError($data,$statusCode=400, $options=null){\n\t\t$contents = array('status' => 'error', 'response' => $data, 'options' => $options);\n\n\t\t$response = Response::make($contents, $statusCode);\n\n\t\t$response->header('Content-Type', $this->contentType);\n\n\t\treturn $response;\n\n\n\t}", "public static function badRequestException(Validator $validator): JsonResponse\n {\n static::$statusCode = Response::HTTP_BAD_REQUEST;\n static::$content = [\n 'message' => $validator->errors()->first(),\n 'error' => $validator->errors()\n ];\n return static::sendResponse();\n }", "public function testSendMalformed()\n {\n $this->setMockHttpResponse('JsonPurchaseResponseMalformed.txt');\n $response = $this->request->send();\n\n $code = $response->response->getStatusCode();\n $this->assertFalse($response->isSuccessful());\n $this->assertEquals(400, $code);\n $this->assertNull($response->getCode());\n $this->assertNull($response->getMessage());\n $this->assertNull($response->getTransactionReference());\n $this->assertNull($response->getCardReference());\n }", "public function failAction()\n {\n //====================================================================//\n // Return Dummy Response\n return new JsonResponse(array('result' => 'Ko'), 500);\n }", "public function invalid(BaseResponse $response);", "public function test_create_fail()\n {\n $response = $this->withHeaders([\n 'Accept' => 'application/json',\n ])->post('api/comments');\n\n $response->assertStatus(422);\n\n }", "private function json_error($error)\n {\n return response()->json($error,500);\n }", "function api_error($code=5000, $data = [], $msg = '')\n{\n if (empty($data)) $data = (object)[];\n if ($msg == '') {\n $msg = config('api_response_code')[$code];\n }\n $json = [\n 'code'=>$code,\n 'data'=>$data,\n 'msg'=>$msg\n ];\n return response()->json($json);\n}", "public function failed($message = 'Request format error!', $code = FoundationResponse::HTTP_BAD_REQUEST)\n {\n return $this->setStatusCode($code)->respond(['message' => $message]);\n }", "private function createStatusErrorResponse(): stdClass\n {\n $response = new stdClass();\n $response->statusErrors = new stdClass();\n $response->statusErrors->error = new stdClass();\n $response->statusErrors->error->_ = 'Order could not be found with the given key.';\n $response->statusErrors->error->code = 'REQUEST_DATA_INCORRECT';\n\n return $response;\n }", "protected function respondBadRequest($message)\n {\n return response()->json([\n 'success' => false,\n 'message' => $message\n ], 400);\n }", "function json_response($code = 200, $message = null, $error = false)\n{\n header_remove();\n // set the actual code\n http_response_code($code);\n // set the header to make sure cache is forced\n header('Cache-Control: no-transform,public,max-age=300,s-maxage=900');\n // treat this as json\n header('Content-Type: application/json');\n $status = array(\n 200 => '200 OK',\n 201 => '201 Created',\n 400 => '400 Bad Request',\n 401 => '401 Unauthorized',\n 404 => '404 Not Found',\n 409 => '409 Conflict',\n 422 => 'Unprocessable Entity',\n 500 => '500 Internal Server Error'\n );\n // ok, validation error, or failure\n header('Status: '.$status[$code]);\n // return the encoded json\n if ($error){\n return json_encode(array(\n 'status' => $status[$code] === 200,\n 'error' => array('errorCode'=>0,'message' => $message)\n ));\n }\n return json_encode(array(\n 'success' => array('message' => $message)\n ));\n}", "private function error404(): JsonResponse\n {\n $mensaje = [\n 'code' => Response::HTTP_NOT_FOUND,\n 'message' => 'Not Found'\n ];\n\n return new JsonResponse(\n $mensaje,\n Response::HTTP_NOT_FOUND\n );\n }", "public static function error($params = array())\n {\n $response = new static(json_encode($params));\n $response\n ->set_status(400)\n ->header('Content-type', 'application/json');\n return $response;\n }", "protected function validationExceptionToResponse(ValidationException $exception, $request)\n {\n return Response::make()->addErrorMessage($exception->getMessage(), 422)\n ->setValidation($exception->errors())\n ->setStatusCode(422)\n ->toResponse($request);\n }", "public function respondWithError($message)\n {\n return $this->setStatusCode(IlluminateResponse::HTTP_OK)\n ->respond([\n 'status' => self::FAIL_STATUS,\n 'message' => $message,\n 'data' => []\n ]);\n }", "public function respondWithError($message)\n {\n return $this->respond([\n 'error' => [\n 'message' => $message,\n 'status_code' => $this->getStatusCode()\n ]\n ]);\n }", "private function throwFriendlyErrors(\\Exception $e)\n {\n $errors = $e->errors();\n\n $response = response()->json([\n 'message' => 'Invalid data, please re-review the data you sent.',\n 'details' => $errors\n ], 422);\n\n throw new HttpResponseException($response);\n }", "protected function invalidJson($request, ValidationException $exception)\n {\n return api_response()->fail()->message($exception->getMessage())->errors($exception->errors())->response($exception->status);\n }", "public function empty_response(){\n $response['status']=502;\n $response['error']=true;\n $response['message']='Field tidak boleh kosong!';\n return $response;\n }", "public static function throwInputNotFoundException()\n {\n return Response::json([\n 'message' => 'Could not get data from request'\n ], 422);\n\n /**\n * if running tests on call\n */\n if (app()->environment() === 'testing') {\n dd('Could not get data from request');\n }\n }", "protected function errorResponse($message, $code)\n {\n return response()->json(['error' => $message, 'code' => $code], $code);\n }", "public function respondWithError($message)\n {\n return $this->respond([\n 'error' => [\n 'message' => $message,\n 'code' => $this->getStatusCode()\n ]\n ]);\n }", "private function fail() {\n\t\theader('HTTP/1.1 400 BAD REQUEST');\n\t\tdie('400 BAD REQUEST');\n\t}", "function Error(){\n header('Content-Type: application/json');\n echo ('false');\n http_response_code(200);\n }", "public function error(string $message = 'error', mixed $payload = []): \\Illuminate\\Http\\JsonResponse\n {\n return $this->build(false, $message, payload: $payload);\n }", "public static function respondWithError($status,$message)\n {\n $array = [\n \"error\" => [\n \"message\" => $message\n ]\n ];\n return self::respond($status,$array);\n }", "public function empty_response(){\r\n $response['status']=502;\r\n $response['error']=true;\r\n $response['message']='Field tidak boleh kosong';\r\n return $response;\r\n }", "public function youCanOmitStatusCode()\n {\n // Arrange...\n $fruit = $this->createTestModel();\n $meta = [\n 'foo' => 'bar'\n ];\n\n // Act...\n $response = $this->responder->success( $fruit, $meta );\n\n // Assert...\n $this->assertEquals( $response->getStatusCode(), 200 );\n $this->assertContains( $meta, $response->getData( true ) );\n }", "public function testImportRawHttpResponseWithADifferentStatusCode()\n {\n $this->testImportingRawHttpResponseString(array('status' => 201));\n }", "function formatResponse($code = 500, $message = 'Internal Server Error', $success = false, $data = [])\n{\n return response()->json([\n 'success' => $success,\n 'status_code' => $code,\n 'message' => $message,\n 'data' => $data\n ], $code);\n}", "public function testBlankFields()\n {\n $response = $this->call('POST','api/auth/login');\n\n $this->assertEquals(422,$response->status());\n }", "function setErrorHeader($message){\n\thttp_response_code(404);\n\theader('Content-Type: application/json');\n\techo $message;\n}", "protected function validationError(Exception $exception)\n {\n $validationErrors = $exception->validator->errors()->getMessages();\n\n return $this->jsonResponse($exception->getMessage(), Response::HTTP_UNPROCESSABLE_ENTITY, $validationErrors);\n }", "public static function throwRequestNotFoundException()\n {\n return Response::json([\n 'message' => 'Your request could not be found try again'\n ], 300);\n }", "public function failedValidation(Validator $validator) {\n dump($validator->errors()->messages());\n throw new HttpResponseException($this->response($validator->errors()->messages()), 422);\n }", "public function checkValidResponse()\n {\n // do nothing if validation is disabled or request method not set\n if ( ! $this->options['validate'] || empty( $this->method ) ) return;\n\n $this->expected = $this->expectByMethod( $this->method );\n\n if ( $this->check( $this->getStatusCode(), $this->expected ) ) return;\n\n $exception = new ResponseException( \"The request was not successful! Response message was: '{$this->response}'\", $this->getStatusCode() );\n\n $exception->setExpectedStatusCode( $this->expected );\n\n throw $exception;\n }", "public function testPostUserAction422()\n {\n $rand_num = mt_rand(0, 1000000);\n $nombre = 'Nuevo UsEr POST * ' . $rand_num;\n $p_data = [\n // 'username' => $nombre,\n 'email' => 'email' . $rand_num . '@example.com',\n 'password' => 'PassW0r4 UsEr POST * ñ?¿' . $rand_num\n ];\n\n self::$_client->request(\n Request::METHOD_POST, self::RUTA_API,\n [], [], [], json_encode($p_data)\n );\n $response = self::$_client->getResponse();\n\n self::assertEquals(\n Response::HTTP_UNPROCESSABLE_ENTITY,\n $response->getStatusCode()\n );\n $r_body = (string) $response->getContent();\n self::assertJson($r_body);\n self::assertContains('code', $r_body);\n self::assertContains('message', $r_body);\n $r_data = json_decode($r_body, true);\n self::assertEquals(Response::HTTP_UNPROCESSABLE_ENTITY, $r_data['code']);\n self::assertEquals(\n Response::$statusTexts[422],\n $r_data['message']\n );\n\n $p_data = [\n 'username' => $nombre,\n // 'email' => 'email' . $rand_num . '@example.com',\n 'password' => 'PassW0r4 UsEr POST * ñ?¿' . $rand_num\n ];\n self::$_client->request(\n Request::METHOD_POST, self::RUTA_API,\n [], [], [], json_encode($p_data)\n );\n $response = self::$_client->getResponse();\n\n self::assertEquals(\n Response::HTTP_UNPROCESSABLE_ENTITY,\n $response->getStatusCode()\n );\n $r_body = (string) $response->getContent();\n self::assertJson($r_body);\n self::assertContains('code', $r_body);\n self::assertContains('message', $r_body);\n $r_data = json_decode($r_body, true);\n self::assertEquals(Response::HTTP_UNPROCESSABLE_ENTITY, $r_data['code']);\n self::assertEquals(\n Response::$statusTexts[422],\n $r_data['message']\n );\n\n $p_data = [\n 'username' => $nombre,\n 'email' => 'email' . $rand_num . '@example.com',\n // 'password' => 'PassW0r4 UsEr POST * ñ?¿' . $rand_num\n ];\n self::$_client->request(\n Request::METHOD_POST, self::RUTA_API,\n [], [], [], json_encode($p_data)\n );\n $response = self::$_client->getResponse();\n\n self::assertEquals(\n Response::HTTP_UNPROCESSABLE_ENTITY,\n $response->getStatusCode()\n );\n $r_body = (string) $response->getContent();\n self::assertJson($r_body);\n self::assertContains('code', $r_body);\n self::assertContains('message', $r_body);\n $r_data = json_decode($r_body, true);\n self::assertEquals(Response::HTTP_UNPROCESSABLE_ENTITY, $r_data['code']);\n self::assertEquals(\n Response::$statusTexts[422],\n $r_data['message']\n );\n\n $p_data = [\n 'username' => $nombre,\n // 'email' => 'email' . $rand_num . '@example.com',\n // 'password' => 'PassW0r4 UsEr POST * ñ?¿' . $rand_num\n ];\n self::$_client->request(\n Request::METHOD_POST, self::RUTA_API,\n [], [], [], json_encode($p_data)\n );\n $response = self::$_client->getResponse();\n\n self::assertEquals(\n Response::HTTP_UNPROCESSABLE_ENTITY,\n $response->getStatusCode()\n );\n $r_body = (string) $response->getContent();\n self::assertJson($r_body);\n self::assertContains('code', $r_body);\n self::assertContains('message', $r_body);\n $r_data = json_decode($r_body, true);\n self::assertEquals(Response::HTTP_UNPROCESSABLE_ENTITY, $r_data['code']);\n self::assertEquals(\n Response::$statusTexts[422],\n $r_data['message']\n );\n }", "public function error($data)\n {\n $data = ['erro'=>$data];\n return $this->coreResponse($data);\n }", "private function errorResponse($error)\n {\n $response['status_code_header'] = 'HTTP/1.1 404 Not Found';\n $response['status'] = '400';\n $response['error'] = $error;\n header('HTTP/1.1 404 Not Found');\n echo json_encode($response);\n }", "private function createErrorResponse($body) {\r\n\t\treturn $this->createResponse('<div class=\"yammer-error-body\"><h2>Error:</h2>'.$body.'</div>');\r\n\t}", "public function respondWithError($message = null)\n {\n $data['error']['message'] = $message;\n if ($this->errorCode) {\n $data['error']['error_code'] = $this->errorCode;\n }\n if (env('APP_DEBUG', 'false')) {\n $data['error']['error_details'] = (!!$this->exception) ? $this->exception : null;\n //log the exception for monitoring\n Log::error($this->exception);\n }\n $data['status'] = $this->customStatusCode;\n return $this->respond($data);\n }", "public function testSendError()\n {\n $this->setMockHttpResponse('JsonPurchaseResponseError.txt');\n $response = $this->request->send();\n\n $data = $this->request->getData();\n\n $code = $response->response->getStatusCode();\n $this->assertFalse($response->isSuccessful());\n $this->assertEquals(500, $data['amount']);\n $this->assertEquals(400, $code);\n $this->assertSame('BAD_REQUEST', $response->getCode());\n $this->assertSame(\"This card is not accepted for Test transactions\", $response->getMessage());\n $this->assertNull($response->getTransactionReference());\n $this->assertNull($response->getCardReference());\n }" ]
[ "0.7548715", "0.7383691", "0.7250906", "0.72123915", "0.7188516", "0.6860525", "0.68418294", "0.67586225", "0.6638448", "0.65961695", "0.6553359", "0.65382606", "0.6502357", "0.64936835", "0.6491254", "0.6484224", "0.6479144", "0.64687717", "0.6425929", "0.64039373", "0.63960797", "0.63856244", "0.63682956", "0.6351148", "0.63411903", "0.6313742", "0.6276752", "0.62734157", "0.6267533", "0.62650687", "0.62541044", "0.62518543", "0.6246343", "0.62438554", "0.6242251", "0.62265205", "0.61818147", "0.61693656", "0.6168761", "0.6152777", "0.61363673", "0.6129592", "0.6121534", "0.61078787", "0.610322", "0.61025417", "0.610191", "0.6097699", "0.6096547", "0.60837156", "0.6070944", "0.60585135", "0.60565066", "0.604512", "0.6032881", "0.6032485", "0.60311544", "0.6025856", "0.6024551", "0.6022727", "0.60068244", "0.60060424", "0.6003259", "0.5988761", "0.5988315", "0.59844935", "0.59708506", "0.5966016", "0.59628814", "0.5955198", "0.5935598", "0.59209955", "0.59146905", "0.59113437", "0.59110254", "0.5898079", "0.58956945", "0.58939195", "0.5886163", "0.5884893", "0.5882565", "0.5875723", "0.58681405", "0.58619857", "0.5861422", "0.58555114", "0.58422124", "0.5837057", "0.5826906", "0.5823948", "0.58233964", "0.58176243", "0.581699", "0.58160126", "0.58159477", "0.5810939", "0.58071023", "0.5803981", "0.5799944", "0.5797168" ]
0.5799053
99
Display a listing of the resource.
public function __construct() { $this->middleware('auth'); $this->middleware('has.permission:estudiantes.index')->only(['index']); $this->middleware('has.permission:estudiantes.show')->only(['show']); $this->middleware('has.permission:estudiantes.create')->only(['create', 'store']); $this->middleware('has.permission:estudiantes.edit')->only(['edit', 'update']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { $grados = Grado::with('subGrados') ->orderBy('abre_grad') ->get(); return view('estudiantes.create', compact('grados')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}" ]
[ "0.7594622", "0.7594622", "0.7588457", "0.7580005", "0.75723624", "0.7499764", "0.7436887", "0.74322647", "0.7387517", "0.735172", "0.73381543", "0.73117113", "0.72958225", "0.7280436", "0.7273787", "0.72433424", "0.7230227", "0.7225085", "0.71851814", "0.71781176", "0.7174025", "0.7149406", "0.71431303", "0.7142905", "0.7136737", "0.712733", "0.7122102", "0.71148264", "0.71148264", "0.71148264", "0.7111841", "0.7092733", "0.70843536", "0.70822084", "0.7079442", "0.70571405", "0.70571405", "0.7055195", "0.70391846", "0.7039114", "0.7035626", "0.7033991", "0.70300245", "0.7026507", "0.7026417", "0.7019451", "0.7017105", "0.7004775", "0.70031846", "0.6999904", "0.6995238", "0.6994825", "0.699354", "0.6988824", "0.6986871", "0.6965804", "0.6965542", "0.69560695", "0.69515944", "0.6950682", "0.6947703", "0.69433117", "0.6941539", "0.6939613", "0.69377476", "0.69377476", "0.693678", "0.69344354", "0.69314486", "0.6927608", "0.69264024", "0.6922966", "0.69181216", "0.69150716", "0.6911192", "0.69095594", "0.69092506", "0.6907887", "0.69018227", "0.69008595", "0.69006085", "0.6900209", "0.68949944", "0.6892768", "0.6891944", "0.6891552", "0.6891552", "0.6891443", "0.68886423", "0.6888326", "0.68856037", "0.68835604", "0.68813664", "0.6878345", "0.6876079", "0.6873206", "0.6873183", "0.687048", "0.687014", "0.686966", "0.68695843" ]
0.0
-1
Store a newly created resource in storage.
public function store(EstudianteCreateRequest $request) { $request->validate(); try { DB::beginTransaction(); /** * Registrar el acudiente */ if ($request->has('acudiente_id')) { $acudiente_id = $request->acudiente_id; } else { /** * Registrar el usuario acudiente */ $usuarioAcudiente = User::create([ 'nombre' => trim("{$request->nomb_acud} {$request->pape_acud} {$request->sape_acud}"), 'email' => $request->corr_acud, 'password' => $request->docu_acud, 'estado' => Estado::activo(), ]); /** * Obtener el rol acudiente */ $roleAcudiente = Role::where('slug', SpecialRole::acudiente())->value('id'); /** * Asignar rol al usuario acudiente */ $usuarioAcudiente->syncRoles([$roleAcudiente]); $request->merge([ 'user_id' => $usuarioAcudiente->id, ]); $acudiente = Acudiente::create($request->only('tipo_docu', 'docu_acud', 'nomb_acud', 'pape_acud', 'sape_acud', 'sexo_acud', 'dire_acud', 'barr_acud', 'corr_acud', 'tele_acud', 'prof_acud', 'user_id')); $acudiente_id = $acudiente->id; } /** * Registrar el usuario estudiante */ $usuarioEstudiante = User::create([ 'nombre' => trim("{$request->nomb_estu} {$request->pape_estu} {$request->sape_estu}"), 'email' => $request->corr_estu, 'password' => $request->docu_estu, 'estado' => Estado::activo(), ]); /** * Obtener el rol estudiante */ $roleEstudiante = Role::where('slug', SpecialRole::estudiante())->value('id'); /** * Asignar rol al usuario estudiante */ $usuarioEstudiante->syncRoles([$roleEstudiante]); /** * Registrar el estudiante */ $estudiante = new Estudiante; $estudiante->tipo_docu = $request->tipo_docu_estu; $estudiante->docu_estu = $request->docu_estu; $estudiante->nomb_estu = $request->nomb_estu; $estudiante->pape_estu = $request->pape_estu; $estudiante->sape_estu = $request->sape_estu; $estudiante->sexo_estu = $request->sexo_estu; $estudiante->fech_naci = $request->fech_naci; $estudiante->dire_estu = $request->dire_estu; $estudiante->barr_estu = $request->barr_estu; $estudiante->corr_estu = $request->corr_estu; $estudiante->tele_estu = $request->tele_estu; $estudiante->padr_estu = $request->padr_estu; $estudiante->madr_estu = $request->madr_estu; $estudiante->pare_acud = $request->pare_acud; $estudiante->cole_prov = $request->cole_prov; $estudiante->eps_estu = $request->eps_estu; $estudiante->copi_docu = $request->file('copi_docu')->store('', 'estudiante'); if ($request->hasFile('copi_grad')) { $estudiante->copi_grad = $request->file('copi_grad')->store('', 'estudiante'); } $estudiante->tipo_estu = $request->tipo_estu; if ($request->hasFile('carn_vacu')) { $estudiante->carn_vacu = $request->file('carn_vacu')->store('', 'estudiante'); } $estudiante->foto_estu = $request->file('foto_estu')->store('', 'estudiante.foto'); $estudiante->obse_estu = $request->obse_estu; $estudiante->acudiente_id = $acudiente_id; $estudiante->sub_grado_id = $request->sub_grado_id; $estudiante->user_id = $usuarioEstudiante->id; $estudiante->save(); DB::commit(); toast('¡El estudiante ha sido registrado correctamente!', 'success', 'top-right'); return redirect()->route('estudiantes.edit', $estudiante->id); } catch (\Symfony\Component\HttpKernel\Exception\HttpException $e) { DB::rollback(); toast('¡Se ha producido un error al registrar el estudiante!', 'error', 'top-right'); return redirect()->back()->withInput(); } catch (\Exception $e) { DB::rollback(); toast('¡Se ha producido un error al registrar el estudiante!', 'error', 'top-right'); return redirect()->back()->withInput(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.7285922", "0.714503", "0.71324795", "0.6639801", "0.6620405", "0.6568167", "0.65257645", "0.650948", "0.64484984", "0.6375281", "0.6373189", "0.63650924", "0.63650924", "0.63650924", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731", "0.6341731" ]
0.0
-1
Display the specified resource.
public function show(Estudiante $estudiante) { $estudiante->loadMissing('acudiente', 'subGrado.grado'); $implementos = $estudiante->implementos()->paginate(); return view('estudiantes.show', compact('estudiante', 'implementos')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show(Resena $resena)\n {\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function show()\n\t{\n\t\t\n\t}", "public function get_resource();", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "public function display() {\n echo $this->render();\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n {\n //\n $this->_show($id);\n }", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public abstract function display();", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "abstract public function resource($resource);", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8232636", "0.81890994", "0.68296117", "0.64987075", "0.649589", "0.64692974", "0.64633286", "0.63640857", "0.6307513", "0.6281809", "0.621944", "0.61926234", "0.61803305", "0.6173143", "0.61398774", "0.6119022", "0.61085826", "0.6106046", "0.60947937", "0.6078597", "0.6047151", "0.60409963", "0.6021287", "0.5989136", "0.5964405", "0.5962407", "0.59518087", "0.59309924", "0.5921466", "0.5908002", "0.5908002", "0.5908002", "0.59051657", "0.5894554", "0.5871459", "0.5870088", "0.586883", "0.5851384", "0.58168566", "0.58166975", "0.5815869", "0.58056176", "0.5799148", "0.5795126", "0.5791158", "0.57857597", "0.5783371", "0.5761351", "0.57592535", "0.57587147", "0.5746491", "0.57460666", "0.574066", "0.5739448", "0.5739448", "0.57295275", "0.57293373", "0.5729069", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57253987", "0.57214445", "0.57149816", "0.5712036", "0.5710076", "0.57073003", "0.5707059", "0.5705454", "0.5705454", "0.5700382", "0.56997055", "0.5693362", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868", "0.5687868" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Estudiante $estudiante) { $estudiante->loadMissing('subGrado.grado'); $implementos = Implemento::query() ->select('id', 'nomb_util') ->subGrado($estudiante->sub_grado_id) ->orderby('nomb_util') ->get() ->toArray(); return view('estudiantes.edit', compact('estudiante', 'implementos')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(EstudianteEditRequest $request, Estudiante $estudiante) { $request->validate(); try { $estudiante->tipo_docu = $request->tipo_docu; $estudiante->docu_estu = $request->docu_estu; $estudiante->nomb_estu = $request->nomb_estu; $estudiante->pape_estu = $request->pape_estu; $estudiante->sape_estu = $request->sape_estu; $estudiante->sexo_estu = $request->sexo_estu; $estudiante->fech_naci = $request->fech_naci; $estudiante->dire_estu = $request->dire_estu; $estudiante->barr_estu = $request->barr_estu; $estudiante->corr_estu = $request->corr_estu; $estudiante->tele_estu = $request->tele_estu; $estudiante->padr_estu = $request->padr_estu; $estudiante->madr_estu = $request->madr_estu; $estudiante->pare_acud = $request->pare_acud; $estudiante->cole_prov = $request->cole_prov; $estudiante->eps_estu = $request->eps_estu; $estudiante->tipo_estu = $request->tipo_estu; if ($request->hasFile('foto_estu')) { $this->deleteFile('estudiante.foto', $estudiante->foto_estu); $estudiante->foto_estu = $request->file('foto_estu')->store('', 'estudiante.foto'); } if ($request->hasFile('copi_docu')) { $this->deleteFile('estudiante', $estudiante->copi_docu); $estudiante->copi_docu = $request->file('copi_docu')->store('', 'estudiante'); } if ($request->hasFile('copi_grad')) { $this->deleteFile('estudiante', $estudiante->copi_grad); $estudiante->copi_grad = $request->file('copi_grad')->store('', 'estudiante'); } if ($request->hasFile('carn_vacu')) { $this->deleteFile('estudiante', $estudiante->carn_vacu); $estudiante->carn_vacu = $request->file('carn_vacu')->store('', 'estudiante'); } $estudiante->obse_estu = $request->obse_estu; $estudiante->sub_grado_id = $request->sub_grado_id; $estudiante->save(); toast('¡El estudiante ha sido actualizado correctamente!', 'success', 'top-right'); return redirect()->route('estudiantes.show', $estudiante->id); } catch (\Exception $e) { toast('¡Se ha producido un error al actualizar la estudiante!', 'error', 'top-right'); return redirect()->back()->withInput(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "public function update($request, $id);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "abstract public function put($data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public abstract function update($object);", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update($id, $input);", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function put($path, $data = null);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7424578", "0.7062392", "0.7056844", "0.6897447", "0.65815884", "0.6451359", "0.634689", "0.62107086", "0.6145251", "0.6121901", "0.6115076", "0.61009926", "0.60885817", "0.6053816", "0.6018965", "0.6007763", "0.5973282", "0.59455335", "0.593951", "0.59388787", "0.5892445", "0.58630455", "0.58540666", "0.58540666", "0.5851948", "0.5816257", "0.58070177", "0.5752376", "0.5752376", "0.57359827", "0.5723941", "0.57152426", "0.56958807", "0.5691061", "0.56881654", "0.5669518", "0.5655434", "0.5651897", "0.56480426", "0.5636727", "0.56354004", "0.5633156", "0.5632135", "0.5629063", "0.5621358", "0.56089175", "0.5602031", "0.55927175", "0.5582773", "0.558176", "0.5581365", "0.5575607", "0.5571989", "0.55672973", "0.5562929", "0.55623275", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55602384", "0.55598706", "0.55560726", "0.55558753", "0.5554241", "0.55534166", "0.5552986", "0.55440396", "0.55438566", "0.5540619", "0.55394524", "0.5536144", "0.5535339", "0.5534803", "0.5524157", "0.55188423", "0.55163455", "0.55135876", "0.5509835", "0.5507501", "0.55068344", "0.55034274", "0.5501476", "0.55010915", "0.5499286", "0.5497852", "0.54958415", "0.54958415", "0.5494513", "0.5494261", "0.54935366", "0.54931587", "0.54917634", "0.54836094", "0.5479455", "0.5478885", "0.5478268", "0.54654354", "0.54645413", "0.5461025", "0.54568535" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(Estudiante $estudiante) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Download the specified resource.
public function download(Estudiante $estudiante, $campo) { try { $campo = decrypt($campo); $disco = 'estudiante'; switch ($campo) { case 'foto_estu': $nombre = 'Fotografia'; $disco = 'estudiante.foto'; break; case 'copi_docu': $nombre = 'Documento de identidad'; break; case 'copi_grad': $nombre = 'Certificado de grado'; break; case 'carn_vacu': $nombre = 'Carnet de vacunacion'; break; default: $nombre = 'Sin titulo'; break; } if (! is_null($estudiante->{$campo}) && Storage::disk($disco)->exists($estudiante->{$campo})) { $titulo = $nombre . ' ' . $estudiante->docu_estu . '.' . File::extension(Storage::disk($disco)->url($estudiante->{$campo})); return Storage::disk($disco)->download($estudiante->{$campo}, $titulo); } else { toast('¡El archivo no existe!', 'error', 'top-right'); return redirect()->back()->withInput(); } } catch (\Exception $e) { toast('¡Se ha producido un error al descargar el archivo!', 'error', 'top-right'); return redirect()->back()->withInput(); } catch (DecryptException $e) { toast('¡La ruta del archivo a descargar no es correcta!', 'error', 'top-right'); return redirect()->back()->withInput(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function downloadFile();", "public function download(string $url);", "public function download() {\t\t}", "public function downloadAction()\n\t{\n\t\t$settings = $this->getProgressParameters();\n\n\t\tif (!empty($settings['downloadParams']['filePath']) && !empty($settings['downloadParams']['fileName']))\n\t\t{\n\t\t\t$file = new Main\\IO\\File($settings['downloadParams']['filePath']);\n\t\t\tif ($file->isExists())\n\t\t\t{\n\t\t\t\t$response = new Main\\Engine\\Response\\File(\n\t\t\t\t\t$file->getPath(),\n\t\t\t\t\t$settings['downloadParams']['fileName'],\n\t\t\t\t\t$settings['downloadParams']['fileType']\n\t\t\t\t);\n\n\t\t\t\treturn $response;\n\t\t\t}\n\t\t}\n\n\t\t$this->addError(new Error('File not found'));\n\t}", "public function download()\n {\n $encrypt = $this->services['encrypt'];\n $file_name = $encrypt->decode($this->getPost('id'));\n $type = $this->getPost('type');\n $storage = $this->services['backup']->setStoragePath($this->settings['working_directory']);\n if($type == 'files')\n {\n $file = $storage->getStorage()->getFileBackupNamePath($file_name);\n }\n else\n {\n $file = $storage->getStorage()->getDbBackupNamePath($file_name);\n }\n \n \n $backup_info = $this->services['backups']->setLocations($this->settings['storage_details'])->getBackupData($file);\n $download_file_path = false;\n if( !empty($backup_info['storage_locations']) && is_array($backup_info['storage_locations']) )\n {\n foreach($backup_info['storage_locations'] AS $storage_location)\n {\n if( $storage_location['obj']->canDownload() )\n {\n $download_file_path = $storage_location['obj']->getFilePath($backup_info['file_name'], $backup_info['backup_type']); //next, get file path\n break;\n }\n }\n }\n \n if($download_file_path && file_exists($download_file_path))\n {\n $this->services['files']->fileDownload($download_file_path);\n exit;\n }\n }", "public function download()\n {\n $download_path = parse_url($this->links['download_location'], PHP_URL_PATH);\n $download_query = parse_url($this->links['download_location'], PHP_URL_QUERY);\n $link = self::get($download_path . \"?\" . $download_query);\n $linkClass = \\GuzzleHttp\\json_decode($link->getBody());\n return $linkClass->url;\n }", "abstract function download($rempath, $locpath, $mode = 'auto');", "public function download($id);", "public function download()\n {\n header('Content-Description: File Transfer');\n header('Content-Type: application/octet-stream');\n header('Content-Disposition: attachment; filename=' . $this->getFilename());\n header('Content-Transfer-Encoding: binary');\n header('Expires: 0');\n header('Cache-Control: must-revalidate, post-check=0, pre-check=0');\n header('Pragma: public');\n header('Content-Length: ' . $this->getSize());\n \\Oka\\Web\\Buffer::Clean();\n\n $this->read();\n exit;\n }", "public function download()\n\t{\n\t\t$sfUsers = sfCore::getClass('sfUsers');\n\t\tif($this->auth_requirement != 0)\n\t\t{\n\t\t\tif($sfUsers::translateAuthLevelString($sfUsers::getUserAuthLevel()) < $this->auth_requirement)\n\t\t\t{\n\t\t\t\tthrow new sfAuthorizationException();\n\t\t\t}\n\t\t}\n\n\t\t$update = sfCore::db->query(\"UPDATE `swoosh_file_storage` SET `downloads` = `downloads`+1 WHERE `id` = '%i' LIMIT 1;\",\n\t\t\t$this->id);\n\t\tfSession::close();\n\t\t$this->fFile->output(true, true);\n\t}", "public function downloadFile()\n {\n // Check for request forgeries.\n Session::checkToken('get') or jexit(Text::_('JINVALID_TOKEN'));\n\n $model = $this->getModel();\n $model->downloadFile();\n }", "public function Download(){\n\t\t\n\t\t\n\t}", "public function download()\n {\n return Storage::download(request('path'));\n }", "function downloadFile($url, $output)\n{\n $readableStream = fopen($url, 'rb');\n if ($readableStream === false) {\n throw new Exception(\"Something went wrong while fetching \" . $url);\n }\n $writableStream = fopen($output, 'wb');\n\n stream_copy_to_stream($readableStream, $writableStream);\n\n fclose($writableStream);\n}", "public function download()\n {\n $hashids = new Hashids(Configure::read('Security.salt'));\n $pk = $hashids->decode($this->request->query['i'])[0];\n $this->loadModel($this->request->query['m']);\n $data = $this->{$this->request->query['m']}->find('first', array(\n 'recursive' => -1,\n 'conditions' => array(\n \"{$this->request->query['m']}.\" . $this->{$this->request->query['m']}->primaryKey => $pk\n ),\n 'fields' => array(\n \"{$this->request->query['m']}.{$this->request->query['f']}\"\n )\n ));\n $file = json_decode($data[$this->request->query['m']][$this->request->query['f']], true);\n\n header('Content-length: ' . $file['size']);\n header('Content-type: ' . $file['type']);\n header('Content-Disposition: inline; filename=' . $file['name']);\n echo base64_decode($file['content']);\n\n die();\n }", "public function download($file, $local_file);", "public function download($id) {\n\t\tif (!$this->request->is('post')) {\n\t\t\tthrow new MethodNotAllowedException();\n\t\t}\n\t\tConfigure::write('debug', 0);\n\t\t$file = $this->Resource->findById($id);\n\t\t\n\t\t//header('Content-type: ' . $file['MyFile']['type']);\n//\t\theader('Content-length: ' . $file['MyFile']['size']); // some people reported problems with this line (see the comments), \t\t\tcommenting out this line helped in those cases\n\t\theader('Content-Disposition: attachment; filename=\"'.$file['Resource']['title'].'\"');\n\t\techo $file['Resource']['data'];\n\t\t\t\n\t\texit();\n}", "public function download()\n\t{\n\t\tR::selectDatabase('oxid');\n\t\t$files = $this->getFilesByName(Flight::request()->query->file);\n\t\tif (empty($files)) $this->redirect('/');\n\t\t$file = reset($files);\n\t\t$dwnloadDir = substr($file['OXSTOREHASH'], 0, 2);\n\t\t$dwnloadFile = Flight::get('oxid_dir_downloads').$dwnloadDir.'/'.$file['OXSTOREHASH'];\n\t\tif ( ! is_file($dwnloadFile)) $this->redirect('/');\n\t\t//error_log($dwnloadFile);\n\t\theader('Content-type: application/pdf');\n\t\theader('Content-Disposition: inline; filename=\"'.$file['OXFILENAME'].'\"');\n\t\t@readfile($dwnloadFile);\n\t}", "private function fileDownload()\n {\n /**\n * Defined variables\n */\n $configHelper = $this->dataHelper;\n $request = $this->getRequest();\n $ds = DIRECTORY_SEPARATOR;\n $baseDir = DirectoryList::VAR_DIR;\n $fileFactory = $this->fileFactory;\n $contentType = 'application/octet-stream';\n $paramNameRequest = $request->getParam('m');\n $packagePathDir = $configHelper->getConfigAbsoluteDir();\n\n $lastItem = $this->packageFilter();\n $versionPackageData = $lastItem;\n $file = $versionPackageData->getData('file');\n\n $packageName = str_replace('_', '/', $paramNameRequest);\n $correctPathFile = $packagePathDir . $ds . $packageName . $ds . $file;\n\n $fileName = $file;\n $content = file_get_contents($correctPathFile, true);\n $fileDownload = $fileFactory->create($fileName, $content, $baseDir, $contentType);\n\n return $fileDownload;\n }", "public function download( $args, $assoc_args ) {\n\t\tself::run( 'core download', $args, $assoc_args );\n\t}", "public function download() {\n $file_name = get('name');\n// return \\Response::download(temp_path($file_name));\n return \\Response::download(storage_path('app') . '/' . $file_name);\n }", "public function downloadMaterialAction()\n {\n $codigo = $this->_getParam('codigo');\n $anexo = $this->getService('AnexoArtefatoVinculo')->find($codigo);\n $path = explode('/',$anexo->getDeCaminhoAnexo());\n $registry = \\Zend_Registry::get('configs');\n $options = array('path' => $registry['upload']['material']);\n $file = \"{$path['4']}\";\n $this->_helper->download($file, $options);\n }", "public function download() {\n $this->autoRender = false;\n $filename = $this->request->params['pass'][3];\n $orgfilename = $this->request->params['pass'][4];\n// pr($this->request->params); exit;\n $this->response->file(\n 'webroot/uploads/post/files/' . $filename, array(\n 'download' => true,\n 'name' => $orgfilename\n )\n );\n// return $this->response;\n }", "public function downloadUrlFile()\r\n\t{\r\n\t\t$url = $this->outputReferenceFile;\r\n\t\t$fileName = explode('.', basename($this->targetFile));\r\n\t\t$this->referenceFile = dirname($this->targetFile) . \"/\" . $fileName[0] . 'ProductionDownload.' . $fileName[1];\r\n\t\tfile_put_contents($this->referenceFile, file_get_contents($url));\t\t\r\n\t}", "public function downloadAction() {}", "function download($filename){\n\t\t$this->downloadFile('files/pdf/',$filename);\n\t}", "abstract function download_asynch($rempath, $locpath, $mode = 'auto');", "public function download(){\n\t\treturn $this->fpdi->Output($this->fileName, 'D');\n\t}", "public function downloadAction()\n {\n $url = $this->getRequest()->REQUEST_URI;\n $url = str_replace('/stream/download/', '/', '../data/uploads/images' . $url);\n $this->download($url, null, 'application/jpg');\n $this->view->message = \"Download erfolgreich.\";\n }", "public function download($id, $optParams = array())\n {\n $params = array('id' => $id);\n $params = array_merge($params, $optParams);\n return $this->call('download', array($params));\n }", "public function getResource($filename)\n {\n $path = storage_path().'/'.'app/resources/'.$filename;\n return response()->download($path, null, [], null);\n }", "function download_file($url, $destination)\n {\n $fr = fopen($url, 'r');\n $fw = fopen($destination, 'w');\n\n while (! feof($fr)) {\n fwrite($fw, fread($fr, 4096));\n\n flush();\n }\n\n fclose($fr);\n fclose($fw);\n\n chmod($destination, 0644);\n }", "private function downloadFileAction($os)\n {\n $basePath = $this->container->getParameter('kernel.root_dir').'/Resources/my_custom_folder';\n $dir = \"../../builds/quota\";\n $handle = fopen(\"$dir/index.txt\", \"r\");\n if ($handle) {\n $version=\"0.0.0\";\n $link=\"\";\n while (($line = fgets($handle)) !== false) {\n $s=explode('#',$line);\n if(version_compare($s[0],$version)==1){\n $link=$s[1];\n $version=$s[0];\n }\n }\n\n fclose($handle);\n } else {\n // error opening the file.\n }\n\n $a=explode(\"/\",$link);\n $filename = trim(end($a));\n $filePath=\"$dir/$filename\";\n // check if file exists\n $fs = new FileSystem();\n if (!$fs->exists($filePath)) {\n throw $this->createNotFoundException();\n }\n $filename=\"Quota_Setup_$os.exe\";\n // prepare BinaryFileResponse\n $response = new BinaryFileResponse($filePath);\n $response->trustXSendfileTypeHeader();\n $response->setContentDisposition(\n ResponseHeaderBag::DISPOSITION_INLINE,\n $filename,\n iconv('UTF-8', 'ASCII//TRANSLIT', $filename)\n );\n\n return $response;\n }", "public function download(string $filename, string $name = null, array $headers = []): ResponseInterface;", "protected function _download()\n {\n $url = @parse_url($this->_params['location']);\n if (!isset($url['scheme'])) {\n throw new Horde_Timezone_Exception('\"location\" parameter is missing an URL scheme.');\n }\n if (!in_array($url['scheme'], array('http', 'ftp', 'file'))) {\n throw new Horde_Timezone_Exception(sprintf('Unsupported URL scheme \"%s\"', $url['scheme']));\n }\n if ($url['scheme'] == 'http') {\n if (isset($this->_params['client'])) {\n $client = $this->_params['client'];\n } else {\n $client = new Horde_Http_Client();\n }\n $response = $client->get($this->_params['location']);\n $this->_tmpfile = Horde_Util::getTempFile(\n '', true,\n isset($this->_params['temp']) ? $this->_params['temp'] : '');\n stream_copy_to_stream($response->getStream(), fopen($this->_tmpfile, 'w'));\n return;\n }\n try { \n if ($url['scheme'] == 'ftp') {\n $vfs = new Horde_Vfs_Ftp(array('hostspec' => $url['host'],\n 'username' => 'anonymous',\n 'password' => 'anonymous'));\n } else {\n $vfs = new Horde_Vfs_File();\n }\n $this->_tmpfile = $vfs->readFile(dirname($url['path']),\n basename($url['path']));\n } catch (Horde_Vfs_Exception $e) {\n throw new Horde_Timezone_Exception($e);\n }\n }", "public function download($requestId)\r\n {\r\n if ($this->token) {\r\n $headers = array(\r\n \"Authorization: Token {$this->token}\"\r\n );\r\n $url = $this->url . DS . $requestId . DS . 'download';\r\n $this->_request($url, array(), $headers, 1, true);\r\n }\r\n\r\n return false;\r\n }", "function download($file = \"\") {\n\t\t// Set maximum execution time in seconds (0 means no limit).\n\n\t\tset_time_limit(0);\n\t\t\n\t\t// Check downloader is admin or manager\n\t\tif(!empty($file)) {\n\t\t\t$file = SITE_DIR.\"public\".base64_decode($file);\n\n\t\t\t$this->output_file($file);\n\t\t} else\n\t\t\t$this->download_forbidden();\n\t\texit;\n\t}", "public function download(): void\n\t{\n\t\t/** @var ExtensionModel $model */\n\t\t$model = $this->getModel();\n\t\t$id = $this->input->getInt('id');\n\t\t$fileDetails = $model->getFilename($id);\n\n\t\tif (!file_exists($fileDetails->file))\n\t\t{\n\t\t\tthrow new InvalidArgumentException(Text::sprintf('COM_JED_EXTENSIONS_DOWNLOAD_NOT_FOUND',\n\t\t\t\t$fileDetails->file));\n\t\t}\n\n\t\theader('Content-type: application/zip');\n\t\theader('Content-Disposition: attachment; filename=' . $fileDetails->originalFile);\n\t\theader('Content-length: ' . filesize($fileDetails->file));\n\t\theader('Pragma: no-cache');\n\t\theader('Expires: 0');\n\t\treadfile($fileDetails->file);\n\n\t\tFactory::getApplication()->close();\n\t}", "function download()\n {\n $field = $this->GET('field');\n $id = $this->GET('id');\n $file = $this->table->data[$id][$field];\n header('Content-Type: ' . $this->_mime_content_type($file));\n header('Content-Length: ' . strlen($file));\n header('Content-Disposition: attachment; filename=\"' . $field . '_' . $id . '\";');\n echo $file;\n }", "public function pushDownload()\n\t{\n\t\t$alias = Request::getString('alias', '');\n\n\t\t$this->id = '';\n\t\tif (substr($alias, -4) == '.rdf')\n\t\t{\n\t\t\t$lastSlash = strrpos($alias, '/');\n\t\t\t$lastDot = strrpos($alias, '.rdf');\n\n\t\t\t$this->id = substr($alias, $lastSlash, $lastDot);\n\t\t}\n\n\t\t$rdfa = $this->getResourceMap();\n\n\t\tif ($rdfa == null)\n\t\t{\n\t\t\tthrow new Exception(Lang::txt('COM_PUBLICATIONS_FILE_NOT_FOUND'), 404);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Creates download headers\n\t\theader('Content-Type: application/rdf+xml');\n\t\theader('Content-Disposition: attachment; filename=' . $alias);\n\t\theader('Content-Length: ' . strlen($rdfa));\n\n\t\t// Push the data for download\n\t\techo $rdfa;\n\t\texit;\n\t}", "function download($id){\r\n\t\t\r\n\t\t$id = Sanitize::escape($id);\r\n\t\t//$this->Version->unbind();\r\n\t\t$archivo = $this->Version->findById($id);\r\n\t\t$archivo_id = $archivo['Archivo']['id'];\r\n\t\t\r\n\t\t#Permitir la descarga del archivo si tiene los permisos\r\n\t\tif(!$this->Archivo->verificarPermiso($archivo_id, $this->Session->read('usuario_id'), 'read', $this->Session->read('alias')) ){\r\n\t\t\t$this->flash(\"Existio un error no es posible descargar el Archivo\", \"/categorias/index\");\r\n\t\t}else{\r\n\t\t\t$f = new File($archivo['Version']['nombre']);\r\n\t\t\theader('Content-type: ' . $archivo['Archivo']['type']);\r\n\t\t\theader('Content-length: ' . $archivo['Version']['size']);\r\n\t\t\theader('Content-Disposition: attachment; filename=\"'.$archivo['Archivo']['nombre'].'\"');\r\n\t\t\techo $f->read();\r\n\t\t\tConfigure::write('debug',0);\r\n\t\t\texit(0);\r\n\t\t}\r\n\t}", "public function downloadAction()\n {\n $pdf = $this->manager->get();\n\n // Generate response\n $response = new Response();\n\n // Set headers\n $response->headers->set('Cache-Control', 'private');\n $response->headers->set('Content-type', 'application/pdf');\n $response->headers->set('Content-Disposition', 'attachment; filename=\"'.basename($pdf).'\";');\n $response->headers->set('Content-length', filesize($pdf));\n\n // Send headers before outputting anything\n $response->sendHeaders();\n\n $response->setContent(file_get_contents($pdf));\n\n return $response;\n }", "private function fetchResource() {\n\t\t$ch = curl_init();\n\t\tif ((php_sapi_name() != 'cli')) {\n\t\t\tcurl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (compatible; ' . TITLE . '/' . HOST . ')');\n\t\t}\n\t\tcurl_setopt($ch, CURLOPT_URL, $this->url);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($ch, CURLOPT_MAXREDIRS, 10);\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 30); // times out after 30s\n\t\t$this->content = curl_exec($ch);\n\t\t$info = curl_getinfo($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\t$this->httpCode = $info['http_code'];\n\t\t$this->contentType = $info['content_type'];\n\t\t\n\t\tif (((int) $this->httpCode) >= 400) {\n\t\t\tthrow new Exception('STATUS CODE: ' . $this->httpCode);\n\t\t}\n\t}", "protected function download($url)\n\t{\n\t\t$remote = file_get_contents($url);\n\n\t\t// If we were unable to download the zip archive correctly\n\t\t// we'll bomb out since we don't want to extract the last\n\t\t// zip that was put in the storage directory.\n\t\tif ($remote === false)\n\t\t{\n\t\t\tthrow new \\Exception(\"Error downloading the requested bundle.\");\n\t\t}\n\n\t\treturn $remote;\n\t}", "public function downloadAction(){\n //These are the files that are downloadable.\n $pathToDocs = RAIZ. \"/docs\";\n $param_to_file = array( \"milestone1\" => $pathToDocs . \"/milestone 1/group13-milestone1.pdf\",\n \"milestone2\" => $pathToDocs . \"/milestone 2/group13-milestone2.pdf\",\n \"milestone2-revision1\" => $pathToDocs . \"/milestone 2/group13-milestone2-comments.pdf\",\n \"milestone2-presentation\" => $pathToDocs . \"/milestone 2/group13-milestone2-presentation.pptx\");\n $file = $param_to_file[$this->_getParam('file')];\n //If we are being ask for a file that is not in the previous array, throw an Exception.\n if(is_null($file)){\n throw new Exception(\"Unknown file\");\n }\n //Disable view and layout\n $this->_helper->layout()->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true);\n //The file is in the previous array. So, fetch it and force the download.\n if (file_exists($file) && is_file($file)) {\n header('Content-Description: File Transfer');\n header('Content-Type: application/octet-stream');\n header('Content-Disposition: attachment; filename='.basename($file));\n header('Content-Transfer-Encoding: binary');\n header('Expires: 0');\n header('Cache-Control: must-revalidate, post-check=0, pre-check=0');\n header('Pragma: public');\n header('Content-Length: ' . filesize($file));\n ob_clean();\n flush();\n readfile($file);\n exit;\n }else{\n echo \"<pre style='color:red'>The file does not exists</pre>\";\n } \n }", "public function downloadBackup() {\n $nonce = $this->getNonce();\n\n if ($nonce && isset($_GET['download'])) {\n $zipfile = $this->tempPath() . self::ZIPCOMP_STUB;\n if (file_exists($zipfile)) {\n $this->loadManifest();\n\n $filename = array(\n __CLASS__,\n $nonce,\n preg_replace('/(?:https?)?[^a-z0-9]+/i', '-', $this->manifest['home_url']),\n );\n\n header('Content-Description: File Transfer');\n header('Content-Type: application/octet-stream');\n header('Content-Disposition: attachment; filename=' . implode('-', $filename) . '.zip');\n header('Expires: 0');\n header('Cache-Control: no-cache');\n header('Content-Length: ' . filesize($zipfile));\n readfile($zipfile);\n $this->doCleanup();\n exit();\n } else {\n wp_die('No matching cambrian archive found');\n }\n }\n }", "public function download()\n {\n $this->pdf->Output(\n $this->fileName,\n self::EXPORT_TYPE_DOWNLOAD\n );\n }", "function download_activity_file($filename)\n\t{\n\t\t$this->http_set_content_type(NULL);\n\t\t$this->load_url(\"activities/$filename\", 'get');\n\t\treturn $this->http_response_body;\n\t}", "public function get_download($id){\n\n\t\t$data = Media::find($id);\n\n\t\treturn Response::download('public/'.$data->original, $data->name);\n\t}", "public function downloadArchive() {\n\t\t$parsedUrl = parse_url($this->archive);\n\t\t$prefix = 'package';\n\t\t\n\t\t// file transfer via hypertext transfer protocol.\n\t\tif ($parsedUrl['scheme'] == 'http') {\n\t\t\t$this->archive = FileUtil::downloadFileFromHttp($this->archive, $prefix);\n\t\t}\n\t\t// file transfer via file transfer protocol.\n\t\telseif ($parsedUrl['scheme'] == 'ftp') {\n\t\t\t$this->archive = FTPUtil::downloadFileFromFtp($this->archive, $prefix);\n\t\t}\n\t\t\n\t\t// unzip tar\n\t\t$this->archive = self::unzipPackageArchive($this->archive);\n\t\t\n\t\treturn $this->archive;\n\t}", "public function download() : bool {\t\n\t\t$req = self::init_req( ( (object) self::$URLS )->download );\n\t\tif( is_null( $req ) ){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tcurl_exec( $req );\n\t\t\tself::$httpCode = curl_getinfo( $req, CURLINFO_HTTP_CODE );\n\t\t\tcurl_close( $req );\n\t\t\treturn true;\n\t\t}\n\t}", "function download_attachment($key, $filename)\n {\n global $standard_headers;\n global $cookie;\n\n $fp = fopen($filename, 'w');\n\n $ch = curl_init('https://www.tadpoles.com/remote/v1/attachment?key=' . $key);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $standard_headers);\n curl_setopt($ch, CURLOPT_COOKIE, $cookie);\n curl_setopt($ch, CURLOPT_FILE, $fp);\n\n $response = curl_exec($ch);\n curl_close($ch);\n fclose($fp);\n }", "public function onJSpaceAssetDownload($asset)\n {\n $credentials = new Credentials(\n $this->params->get('access_key_id'), \n $this->params->get('secret_access_key')); \n\n $s3 = S3Client::factory(array('credentials'=>$credentials));\n\n $storage = JSpaceArchiveAssetHelper::buildStoragePath($asset->record_id);\n $path = $storage.$asset->hash;\n\n $options = array('ResponseContentDisposition'=>'attachment; filename=\"'.$asset->getMetadata()->get('fileName', $path).'\"');\n\n $url = $s3->getObjectUrl($this->params->get('bucket'), $path, \"+10minute\", $options);\n \n JFactory::getApplication()->redirect($url);\n }", "abstract public function downloadFile(FileData $fileData);", "public function getDownload()\n {\n return $this->download;\n }", "public function download()\n {\n\n $hashes = explode(',', $this->request->get('hashes'));\n $ids = array_map(function($hash) {\n return $this->fileEntry->decodeHash($hash);\n }, $hashes);\n\n $entries = $this->fileEntry->whereIn('id', $ids)->get();\n\n // TODO: refactor file entry policy to accent multiple IDs\n $entries->each(function($entry) {\n $this->authorize('show', [FileEntry::class, $entry]);\n });\n\n if ($entries->count() === 1 && $entries->first()->type !== 'folder') {\n $entry = $entries->first();\n\n $disk = $entry->getDisk();\n $stream = $disk->readStream($entry->getStoragePath());\n\n return response()->stream(function() use($stream) {\n fpassthru($stream);\n }, 200, [\n \"Content-Type\" => $entry->mime,\n \"Content-Length\" => $disk->size($entry->getStoragePath()),\n \"Content-disposition\" => \"attachment; filename=\\\"\" . $entry->name . \"\\\"\",\n ]);\n } else {\n $path = $this->createZip($entries);\n $timestamp = Carbon::now()->getTimestamp();\n return response()->download($path, \"download-$timestamp.zip\");\n }\n }", "public function downloadFile($filename)\n {\n if (!Storage::has('files/' . auth()->user()->id . '/' . $filename)) {\n abort(404);\n }\n\n return response()->streamDownload(function () use ($filename) {\n FileVault::streamDecrypt('cabinet_management/nexasoftware/BDA/' . $filename);\n }, Str::replaceLast('.enc', '', $filename));\n }", "public function download($id)\n\t{\n\t\t$fileInfo = $this->m_admin->getRows(array('name' => $id));\n\t\t//file path\n\t\t$filename = $fileInfo['name'] ?? 'default value';\n\t\t$filepath = 'C:\\xampp\\htdocs\\repositori\\uploads\\file_aplikasi/' . $fileInfo['name'];\n\t\t$data = file_get_contents($filepath);\n\t\t//download file from directory\n\t\t$mime = get_mime_by_extension($filepath);\n\t\theader('Content-Type: ' . $mime); // Add the mime type from Code igniter.\n\n\t\treturn force_download($filename, $data);\n\t}", "public function get()\n {\n // Remove old one\n if(file_exists(Cyaneus::path()->draft)) {\n exec(escapeshellcmd('rm -r '.Cyaneus::path()->draft).' 2>&1', $rmr_output, $rmr_error);\n }\n\n $wget = '/usr/bin/wget --no-check-certificate ';\n $url = Cyaneus::path()->repositoryUrl;\n $file = __DIR__.DIRECTORY_SEPARATOR.'file.zip';\n\n exec(escapeshellcmd($wget.$url.' -O '.$file).' 2>&1', $wget_output, $wget_error);\n\n if($wget_error) {\n throw new \\RuntimeException('An error has occurred with wget: '.var_export($wget_output, true));\n }\n\n $this->extract($file);\n }", "function curl_download($Url){ if (!function_exists('curl_init')){\n die('Sorry cURL is not installed!');\n }\n \n // OK cool - then let's create a new cURL resource handle\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $Url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $output = curl_exec($ch);\n\n return $output;\n}", "public function download()\n {\n $this->user->downloaded();\n\n return response()->download($this->user->me()->data->file);\n }", "public function download(string $file, string $name = ''): PsrResponseInterface;", "public function download($hash, $type);", "public function download( $args, $assoc_args ) {\n\n\t\t$site_id = $assoc_args['site-id'];\n\n\t\tlist( $backup_id ) = $args;\n\n\t\t$this->set_account();\n\n\t\t$args = array(\n\t\t\t'endpoint' => '/site/' . (int)$site_id . '/backup/' . (int)$backup_id,\n\t\t\t'method' => 'GET',\n\t\t\t);\n\t\t$backup = $this->api_request( $args );\n\n\t\tif ( is_wp_error( $backup ) )\n\t\t\tWP_CLI::error( $backup->get_error_message() );\n\n\t\tWP_CLI::launch( sprintf( \"wget '%s'\", $backup->url ) );\n\n\t\tWP_CLI::success( \"Backup downloaded.\" );\n\t}", "public function getDownloadPath() {}", "public function http($data)\n {\n $this->http = $data;\n return self::$downloadObj;\n }", "protected function fileTransfer($resource)\n {\n $date = date('D, d M Y H:i:s T', Encryptor::lastModified($resource->file_location));\n $size = Encryptor::size($resource->file_location);\n $type = Encryptor::mimeType($resource->file_location);\n\n return response(Encryptor::get($resource->file_location))\n ->header('Content-Type', $type)\n ->header('Accept-Ranges', 'bytes')\n ->header('Cache-Control', 'no-cache, private')\n ->header('Content-Length', $size)\n ->header('Last-Modified', $date);\n }", "public function downloadFileAction($hash)\n {\n $em = $this->getDoctrine()->getManager();\n\n $link = $em->getRepository('TimeBoxMainBundle:Link')->findOneByDownloadHash($hash);\n if (!$link) {\n return $this->redirect($this->generateUrl('fos_user_registration_register'));\n }\n\n $file = $link->getFile();\n $version = $link->getVersion();\n\n if (!is_null($file)) {\n $fileId = $file->getId();\n $version = $em->getRepository('TimeBoxMainBundle:Version')->getLastestFileVersionById($fileId);\n }\n\n if (!is_null($version)) {\n $file = $version->getFile();\n $filename = $file->getName();\n $type = $file->getType();\n if (!is_null($type)) {\n $filename .= '.'.$type;\n }\n\n $filePath = $version->getAbsolutePath();\n if (!file_exists($filePath)) {\n throw $this->createNotFoundException();\n }\n\n // Trigger file download\n $response = new Response();\n $response->headers->set('Content-type', 'application/octet-stream');\n $response->headers->set('Content-Disposition', sprintf('attachment; filename=\"%s\"', $filename));\n $response->setContent(file_get_contents($filePath));\n return $response;\n }\n\n return $this->redirect($this->generateUrl('fos_user_registration_register'));\n }", "function downloadDistantFile($url, $dest)\r\n {\r\n $options = array(\r\n CURLOPT_FILE => is_resource($dest) ? $dest : fopen($dest, 'w'),\r\n CURLOPT_FOLLOWLOCATION => true,\r\n CURLOPT_URL => $url,\r\n\t CURLOPT_REFERER => \"http://trailers.to\",\r\n CURLOPT_FAILONERROR => true, // HTTP code > 400 will throw curl error\r\n );\r\n\r\n $ch = curl_init();\r\n curl_setopt_array($ch, $options);\r\n $return = curl_exec($ch);\r\n\r\n if ($return === false)\r\n {\r\n\t\techo \"1\";\r\n return curl_error($ch);\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }", "public function action_doc_quick_download()\n\t{\n\t\t$document_id = $this->request->param('id');\n\t\t$knowledgetree_data = Kohana::$config->load('config')->get('KnowledgeTree');\n\t\t$kt_connection = New KTClient($knowledgetree_data['url']);\n\t\t$kt_connection->initSession($knowledgetree_data['username'], $knowledgetree_data['password']);\n\t\t$kt_connection->downloadDocument($document_id);\n\t}", "public function download($url, $filename)\n {\n $this->client->download($url, $filename);\n }", "public function retrieve(Resource $resource);", "public function downloadAction() {\r\n $file_id = $this->getRequest()->getParam('file_id');\r\n $chanelphoto = Engine_Api::_()->getItem('sesvideo_chanelphoto', $this->getRequest()->getParam('photo_id'));\r\n if (!$chanelphoto)\r\n return;\r\n $chanelphoto->download_count = $chanelphoto->download_count + 1;\r\n $chanelphoto->save();\r\n $file_id = $chanelphoto->file_id;\r\n if ($file_id == '' || intval($file_id) == 0)\r\n return;\r\n $storageTable = Engine_Api::_()->getDbTable('files', 'storage');\r\n $select = $storageTable->select()->from($storageTable->info('name'), array('storage_path', 'name'))->where('file_id = ?', $file_id);\r\n $storageData = $storageTable->fetchRow($select);\r\n $storageData = (object) $storageData->toArray();\r\n if (empty($storageData->name) || $storageData->name == '' || empty($storageData->storage_path) || $storageData->storage_path == '')\r\n return;\r\n //Get base path\r\n $basePath = APPLICATION_PATH . '/' . $storageData->storage_path;\r\n @chmod($basePath, 0777);\r\n header(\"Content-Disposition: attachment; filename=\" . urlencode(basename($storageData->name)), true);\r\n header(\"Content-Transfer-Encoding: Binary\", true);\r\n header(\"Content-Type: application/force-download\", true);\r\n header(\"Content-Type: application/octet-stream\", true);\r\n header(\"Content-Type: application/download\", true);\r\n header(\"Content-Description: File Transfer\", true);\r\n header(\"Content-Length: \" . filesize($basePath), true);\r\n readfile(\"$basePath\");\r\n exit();\r\n // for safety resason double check\r\n return;\r\n }", "protected function download($uri) {\n if (file_exists($uri)) {\n $headers = [\n 'Content-Description' => 'File Transfer',\n 'Content-Disposition' => 'attachment; filename=\"' . $this->fileSystem->basename($uri) . '\"',\n ];\n return new BinaryFileResponse($uri, 200, $headers);\n }\n else {\n throw new NotFoundHttpException();\n }\n\n }", "public function downloadFile()\n { \n $urls = [];\n $file = a2_path('workflows/downloadable-urls.yaml');\n $response = json_decode(file_get_contents('php://input'), true);\n \n if(!file_exists($file)){\n file_put_contents($file, '');\n }\n\n if(isset($response['urls'])){\n $urls = $response['urls'];\n file_put_contents($file, Yaml::dump($urls));\n }\n\n if(isset($response['sync'])){\n $urls = Yaml::parseFile($file );\n\n }\n\n $client = new Client();\n foreach ($urls as $key => $url) {\n $res = $client->request('GET', $urls[$key], ['headers' => array(\n 'A2-TECHNOLOGY' => getenv('A2_TECHNOLOGY'),\n 'A2-TOKEN' => getenv('A2_TOKEN'),\n 'Content-Type: text/plain'\n )]);\n if ($res->getStatusCode() == 200) {\n\n $path = \\explode('?path=', $urls[$key])[1];\n if(!file_exists($path=base_path($path))){\n \\file_put_contents($path, $res->getBody());\n }\n unset($urls[$key]);\n }\n }\n // save data\n if(count($urls)){\n file_put_contents($file, Yaml::dump($urls));\n }else {\n file_put_contents($file, '');\n }\n }", "protected static function _get_local_resource( $resource ) {\r\n return file_get_contents( \r\n $resource \r\n ); \r\n }", "function download_file(string $filename, string $root_path = '/cloud'): void {\n\tif (!file_exists($filename))\n\t\tthrow new InvalidArgumentException('The file \"' . basename($filename) . '\" does not exist.');\n\tif (!Common::isAuthorizedPath($filename, $root_path))\n\t\tthrow new InvalidArgumentException('The file \"' . basename($filename) . '\" is invalid.');\n\n\t// get file info\n\t$content_type = mime_content_type($filename);\n\t$basename = basename($filename);\n\t$content_length = filesize($filename);\n\n\t// set headers\n\theader(\"Content-Type: $content_type\");\n\theader(\"Content-Disposition: attachment; filename=\\\"$basename\\\"\");\n\theader(\"Content-Length: $content_length\");\n\n\t// clear buffer and flush headers\n\tob_clean();\n\tflush();\n\n\t// output file contents\n\treadfile($filename);\n}", "public function getDownload($filename)\n {\n if (Auth::check()) {\n $file = Upload::where('filename_saved_as', '=', $filename)->first();\n $download = public_path('uploads').'/'.$filename;\n\n return Response::download($download, $file->original_name);\n }\n }", "public function actionDownload($id){\n $model = $this->findModel($id);\n $file = $model->file_surat;\n $path = Yii::getAlias('@webroot').'/'.$file;\n if(file_exists($path)){\n Yii::$app->response->sendFile($path);\n }else{\n $this->render('download404');\n }\n }", "function downloadFile($args) {\n\t\t$monographId = isset($args[0]) ? $args[0] : 0;\n\t\t$fileId = isset($args[1]) ? $args[1] : 0;\n\t\t$revision = isset($args[2]) ? $args[2] : null;\n\n\t\t$this->validate($monographId);\n\t\t$submission =& $this->submission;\n\t\tif (!CopyeditorAction::downloadCopyeditorFile($submission, $fileId, $revision)) {\n\t\t\tRequest::redirect(null, null, 'submission', $monographId);\n\t\t}\n\t}", "public function download()\n {\n if ( ! $this->exists() ) {\n throw new FileExistException('Remote template does not exist');\n }\n\n try {\n $result = $this->getSoapClient()->DownloadTemplate(array(\n 'filename' => basename($this->getName()) ));\n\n return base64_decode($result->DownloadTemplateResult);\n } catch ( SoapException $ex ) {\n throw new DownloadException('Error while downloading the remote template from Livedocx service' , $ex);\n }\n }", "static function download($url, $username, $return = NULL)\r\n\t\t{\r\n\t\t\tshell_exec('mkdir /mnt/static/bdb-download/' . escapeshellarg($username));\r\n\t\t\t\r\n\t\t\t// Get image to Hamsterpajs server\r\n\t\t\tshell_exec('wget ' . escapeshellarg($url) . ' -O /mnt/static/bdb-download/' . escapeshellarg($username) . '/' . md5($url) . '.jpg');\r\n\t\t\t\t\r\n\t\t\tif($return == 'path')\r\n\t\t\t{\r\n\t\t\t\treturn '/mnt/static/bdb-download/' . $username . '/' . md5($url) . '.jpg';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Url to image on hamsterpajs server\r\n\t\t\t\treturn 'http://static.hamsterpaj.net/bdb-download/' . $username . '/' . md5($url) . '.jpg';\r\n\t\t\t}\r\n\t\t}", "function downloadFile($local_file, $download_file) {\n\t\t\t\t$download_rate = 20.5;\n\t\t\t\tif(file_exists($local_file) && is_file($local_file)) {\n\t\t\t\t\theader('Cache-control: private');\n\t\t\t\t\theader('Content-Type: application/octet-stream');\n\t\t\t\t\theader('Content-Length: '.filesize($local_file));\n\t\t\t\t\t//header('Content-Disposition: filename='.$download_file);\n\t\t\t\t\theader('Content-Disposition: attachment; filename=\"' . str_replace('\"', '\\\\\"', ($mask ? $mask : basename($download_file))) . '\"');\n\t\t\t\t\tflush();\n\t\t\t\t\t$file = fopen($local_file, \"r\");\n\t\t\t\t\twhile(!feof($file))\n\t\t\t\t\t{\n\t\t\t\t\t\t// send the current file part to the browser\n\t\t\t\t\t\tprint fread($file, round($download_rate * 1024));\n\t\t\t\t\t\t// flush the content to the browser\n\t\t\t\t\t\tflush();\n\t\t\t\t\t\t// sleep one second\n\t\t\t\t\t\tsleep(.1);\n\t\t\t\t\t}\n\t\t\t\t\tfclose($file);}\n\t\t\t\telse {\n\t\t\t\t\tdie('Error: The file '.$local_file.' does not exist!');\n\t\t\t\t}\n\t\t\t}", "public function download() {\n\t\theader('Content-Disposition: attachment; filename=\"' . basename($this->fileName) . '\"');\n\t\t$this->show();\n\t}", "public function DownoadFile()\r\n\t{\r\n\t\theader(\"download.php?key=\".$this->secretKey);\r\n\t}", "public function getDownloadUrl()\n\t{\n\t\treturn $this->downloadUrl; \n\n\t}", "public function getLink() {\r\n\r\n\t\t// init vars\r\n\t\t$download_mode = $this->config->get('download_mode');\r\n\r\n\t\t// create download link\r\n\t\t$query = array('task' => 'callelement', 'format' => 'raw', 'item_id' => $this->_item->id, 'element' => $this->identifier, 'method' => 'download');\r\n\r\n\t\tif ($download_mode == 1) {\r\n\t\t\treturn $this->app->link($query);\r\n\t\t} else if ($download_mode == 2) {\r\n\t\t\t$query['args[0]'] = $this->filecheck();\r\n\t\t\treturn $this->app->link($query);\r\n\t\t} else {\r\n\t\t\treturn $this->get('file');\r\n\t\t}\r\n\r\n\t}", "protected function getUrl()\r\n\t{\r\n\t\t$xmlData = file_get_contents($this->url);\r\n\t\tif (file_put_contents($this->localFile, $xmlData)) {\r\n\t\t\t$this->log->write(Logger::SUCCESS,'Saved '.$this->localFile);\r\n\t\t}\r\n\t\t\r\n\t\t/* //CURL\r\n\t\t$ch = curl_init();\r\n\t\tcurl_setopt($ch, CURLOPT_URL,$this->url);\r\n\t\t$this->log->write(Logger::SUCCESS,'Downloaded '.$this->url);\r\n\t\t$fp = fopen($this->localFile, 'w');\r\n\t\tcurl_setopt($ch, CURLOPT_FILE, $fp);\r\n\t\tcurl_exec ($ch);\r\n\t\tcurl_close ($ch);\r\n\t\tfclose($fp);\r\n\t\t$this->log->write(Logger::SUCCESS,'Saved '.$this->localFile);\r\n\t\t*/\r\n\t}", "function httpdownload($product_id) {\n \n \t //extra security set form must be filled as session param\n\t //to prevent cmd instant download without it.\n\t if (GetSessionParam('FORMSUBMITED')) {//&&\n\t //(GetGlobal('controller')->calldpc_method('httpdownload.get_filename'))) {\t \n\n $file = $this->wherethefileis . $product_id . $this->file_epithema . $this->ftype;\t \n\t $title = $this->get_product_info($product_id);\t\t \n \n \n if ($this->download_link) { \n //$d = new httpdownload($file);\n\t //$ret = $d->select_download_type();\t \n\t\t //$ret = GetGlobal('controller')->calldpc_method('httpdownload.select_download_type');\n\t\t $ret = GetGlobal('controller')->calldpc_method('httpdownload.set_download use NRSPEED');\n\t\t //infoem by mail and sms\n\t\t $this->send_downloaded_mail($product_id);\n\t }\n\t else\n\t $ret = \"ERROR:file not exist!\";\t \n\t \n\t $w = new window($title. \" SHAREWARE EDITION\",\"<h2>\".$ret.\"</h2>\");//$link);\n\t $out = $w->render();\n\t unset($w);\t\n\t }\n\t else\n\t $out = \"Prohibited area!\"; \n\t \n\t return ($out);\n }", "protected function download($component, $ext)\n {\n $archive = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . $component . $ext;\n $file = fopen ($this->url . '/' . $component . $ext, \"rb\");\n if ($file) {\n $arc = fopen ($archive, \"wb\");\n if ($arc) {\n while(!feof($file)) {\n echo '.';\n fwrite($arc, fread($file, 1024 * 8 ), 1024 * 8 );\n }\n }\n }\n if ($file) {\n fclose($file);\n }\n if ($arc) {\n fclose($arc);\n }\n }", "public function downloadFile($id) {\n $lmsFile = LMSFile::find($id);\n //$file = Storage::disk('local')->get('lms/'.$lmsFile->hash);\n //Alternaive method\n $url = public_path().'/../storage/lms/'.$lmsFile->hash;\n return response()->download($url);\n //return (new Response($file, 200));\n }", "private function download()\n {\n $response = $this->httpClient->request('GET', env('PHOTO_ENDPOINT'));\n $content = json_decode($response->getBody()->getContents());\n\n if (! json_last_error() and property_exists($content, 'images')) {\n\n $requests = function ($images) {\n foreach ($images as $image) {\n yield new \\GuzzleHttp\\Psr7\\Request('GET', $image->url);\n }\n };\n\n $pool = new Pool($this->httpClient, $requests($content->images), [\n 'concurrency' => count($content->images),\n 'fulfilled' => function ($response, $index) use ($content) {\n $exp = explode('/', $content->images[$index]->url);\n\n $imageId = end($exp);\n\n $fileName = env('PHOTO_PATH') . $imageId;\n\n if (! Storage::exists($fileName)) {\n Storage::put($fileName, $response->getBody()->getContents(), 'public');\n }\n },\n 'rejected' => function ($reason, $index) {\n die('fail');\n },\n ]);\n\n $promise = $pool->promise();\n $promise->wait();\n }\n }", "function downloadFile($filename, $downloadPath)\n{\n App::set_response_header('Content-Type', 'text/plain');\n App::set_response_header('Pragma', 'no-cache');\n App::set_response_header(\n 'Content-Disposition',\n \"attachment; filename={$filename}\"\n );\n readfile($downloadPath);\n}", "public function downloadReport($filename);", "public function getDownload(Request $request)\n {\n //dd($request->filename);\n $file = storage_path() . '/app/public/' . $request->filename;\n return response()->file($file);\n }", "public function action_download($file = NULL) {\n $path_file = DOCROOT.\"sites\" . DIRECTORY_SEPARATOR . \"$file.zip\";\n \n //Verifica se o arquivo existe\n if (\\File::exists($path_file)) {\n //Download do arquivo \n \\Sucker::Download($path_file, \"$file\");\n }else{\n //Redireciona caso o arquivo não exista\n \\Response::redirect('home');\n }\n \n }", "public function InitiateDownload()\n\t{\n\t\t//Register the download\n\t\t$pdo = new Database();\n\t\t$statement = $pdo->prepare('INSERT INTO download_log SET DownloadID=?');\n\t\t$statement->bindParam(1, $this->ID);\n\t\t$statement->execute();\n\n\t\tif (preg_match('/http(s{0,1}):\\/\\/(.*)/', $this->Link))\n\t\t{\n\t\t\theader('location: ' . $this->Link);\n\t\t}\n\t\telse if (substr($this->Link, 0, 1) == '?')\n\t\t{\n\t\t\t//Get a name to call the file.\n\t\t\t$filePath = dirname(__FILE__) . '/../downloads/' . substr($this->Link, 1);\n\t\t\t$pathInfo = pathinfo($filePath);\n\t\t\t$downloadName = empty($pathInfo['extension']) ?\n\t\t\t\t$this->Name : sprintf('%s.%s', $this->Name, $pathInfo['extension']);\n\n\t\t\t//Transfer the file.\n\t\t\t$stream = fopen($filePath, 'rb');\n\t\t\tDownload::TransferDownload($stream, $downloadName);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception('Unknown download link');\n\t\t}\n\t}", "public function getTemporaryDownloadLink()\n {\n if (!$this->ID) {\n return false;\n }\n $s3 = $this->getS3Client();\n\n $cmd = $s3->getCommand('GetObject', [\n 'Bucket' => $this->Bucket,\n 'Key' => $this->Key,\n 'ResponseContentDisposition' => 'attachment; filename=\"'. $this->Name .'\"'\n ]);\n\n $request = $s3->createPresignedRequest($cmd, '+60 minutes');\n\n return (string) $request->getUri();\n }", "public static function getHttpFile($file, $pr_transfer = null) {\n\t\ttry{\n\t \tif(!self::remoteFileExists($file)) {\n\t \t\treturn 'The file does not exists ...';\n\t \t}\n\n\t\t\tif(!isset($pr_transfer)) {\n\t\t\t\t$fileinfo = pathinfo($file);\n\t\t\t}else{\n\t\t\t\t$fileinfo = pathinfo($pr_transfer);\n\t\t\t}\n\t\t\t$filename = (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) ? preg_replace('/\\./', '%2e', $fileinfo['basename'], substr_count($fileinfo['basename'], '.') - 1) : $fileinfo['basename'];\n\n\t\t\tif(strpos($filename, 'rsapi.cgi')) {\n\t\t\t\t$filename = substr($filename, 0, strpos($filename, '&'));\n\t\t\t}\n\n\t\t\tif(OC_Filesystem::file_exists('/Downloads/' . $filename)) {\n\t\t\t\t$filename = md5(rand()) . '_' . $filename;\n\t\t\t}\n\t\t\t$fs = OC_Filesystem::fopen('/Downloads/' . $filename, 'w');\n\n\t\t\t$size = self::getRemoteFileSize($file);\n\t\t\tif($size == 0) {\n\t\t\t\treturn 'Error ! Null file size.';\n\t\t\t}\n\n\t\t switch(strtolower($fileinfo['extension'])) {\n\t\t case 'exe': $ctype = 'application/octet-stream'; break;\n\t\t case 'zip': $ctype = 'application/zip'; break;\n\t\t case 'mp3': $ctype = 'audio/mpeg'; break;\n\t\t case 'mpg': $ctype = 'video/mpeg'; break;\n\t\t case 'avi': $ctype = 'video/x-msvideo'; break;\n\t\t\t\tcase 'png': $ctype = 'image/png'; break;\n\t\t default: $ctype = 'application/force-download';\n\t\t }\n\n\t\t $seek_end = (empty($seek_end)) ? ($size - 1) : min(abs(intval($seek_end)),($size - 1));\n\t\t $seek_start = (empty($seek_start) || $seek_end < abs(intval($seek_start))) ? 0 : max(abs(intval($seek_start)),0);\n\n\t\t /*header(\"Cache-Control: cache, must-revalidate\");\n\t\t header(\"Pragma: public\");\n\t\t header('Content-Type: ' . $ctype);\n\t\t header('Content-Disposition: attachment; filename=\"' . $filename . '\"');\n\t\t header('Content-Length: ' . ($seek_end - $seek_start + 1));*/\n\n\t\t $fp = fopen($file, 'rb');\n\t\t\tset_time_limit(0);\n\t\t while(!feof($fp)) {\n\t\t $data = fread($fp, 1024*8);\n\t\t if($data == '') {\n\t\t \tbreak;\n\t\t }\n\t\t\t\tfwrite($fs, $data);\n\t\t }\n\n\t\t fclose($fp);\n\t\t\tfclose($fs);\n\n\t\t\treturn Array('ok' => 'Transfer completed successfully. The file has been moved in your Downloads folder.');\n\t\t}catch(exception $e) {\n\t\t\treturn Array('error' => $e->getMessage());\n\t\t}\n\t}", "public static function downloadFile($path)\n {\n return BaseUrl::to([self::$fileflyApiUrl, 'action' => 'download', 'path' => $path]);\n }", "public static function fetch($link, $savePath = null, $size = 0, $isMultiThreaded = true)\n {\n self::$savePath = $savePath;\n self::$downloadObj = new Download($link, false, $isMultiThreaded, true, $size);\n return self::$downloadObj;\n }" ]
[ "0.7287939", "0.71210974", "0.7109359", "0.65900975", "0.6570303", "0.65637344", "0.65519667", "0.65041083", "0.6481862", "0.6445193", "0.6437006", "0.6404818", "0.6378274", "0.6368267", "0.62918365", "0.62871253", "0.62813455", "0.6259295", "0.62572646", "0.6256687", "0.6205838", "0.61777997", "0.6124894", "0.6095891", "0.609552", "0.6094883", "0.60564625", "0.6043224", "0.6040308", "0.60229725", "0.60002273", "0.59974325", "0.5982549", "0.5970067", "0.5952331", "0.5949107", "0.59233963", "0.5915001", "0.59077775", "0.58851945", "0.5858752", "0.58408475", "0.5838845", "0.58233845", "0.58228403", "0.58211744", "0.5804076", "0.57969016", "0.5778037", "0.5767302", "0.57605124", "0.5754677", "0.5748712", "0.57432055", "0.5740968", "0.57389325", "0.5718905", "0.5715223", "0.57053673", "0.5702152", "0.56995875", "0.5693512", "0.5691721", "0.569076", "0.56840885", "0.5669563", "0.5668236", "0.5665722", "0.56636864", "0.56598836", "0.5657393", "0.5656525", "0.5655589", "0.5651326", "0.564614", "0.56458396", "0.5644499", "0.5638397", "0.5638335", "0.5617499", "0.5611238", "0.55863124", "0.55784655", "0.55657464", "0.55630827", "0.5555815", "0.5552988", "0.5545732", "0.5545344", "0.5544573", "0.5536082", "0.55316055", "0.5531571", "0.5529", "0.55262333", "0.55034435", "0.55024207", "0.54988533", "0.54905653", "0.5487138", "0.54789215" ]
0.0
-1
Elimina el documento del disco estudiante
protected function deleteFile($disco, $campo) { if (! is_null($campo) && Storage::disk($disco)->exists($campo)) { Storage::disk($disco)->delete($campo); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteDocumentAction()\n {\n try {\n $this->_helper->viewRenderer->setNoRender();\n\n // Les modèles\n $model_commission = new Model_DbTable_Commission();\n\n $commission = $model_commission->find($this->_request->id_commission)->current();\n\n // On supprime le fichier\n unlink(REAL_DATA_PATH.DS.'uploads'.DS.'documents_commission'.DS.$commission->DOCUMENT_CR);\n\n // On met à null dans la DB\n $commission->DOCUMENT_CR = null;\n $commission->save();\n\n $this->_helper->flashMessenger([\n 'context' => 'success',\n 'title' => 'Le document a bien été supprimé',\n 'message' => '',\n ]);\n } catch (Exception $e) {\n $this->_helper->flashMessenger([\n 'context' => 'error',\n 'title' => 'Erreur lors de la suppression du document',\n 'message' => $e->getMessage(),\n ]);\n }\n }", "public function DeleteDocente() {\n\t\t\t$this->objDocente->Delete();\n\t\t}", "function deleteDocument() {\n \tglobal $synAbsolutePath;\n global ${$this->name}, ${$this->name.\"_name\"}, ${$this->name.\"_old\"}; // ${$this->name} = ${\"surname\"} = $surname\n include_once(\"../../includes/php/utility.php\");\n $ext=$this->translate($this->getValue());\n $mat=$this->translatePath($this->mat);\n $filename=$this->createFilename(false);\n $documentRoot=$synAbsolutePath.\"/\";\n $fileToBeRemoved=$documentRoot.$mat.$filename.\"*\";\n foreach (glob($fileToBeRemoved) as $filename)\n unlink($filename);\n }", "public function deleteDocument() {\n $file = $this->getDocumentFile().$this->getAttribute('evidencias')[2];\n\n// check if file exists on server\n if (empty($file) || !file_exists($file)) {\n return false;\n }\n\n// check if uploaded file can be deleted on server\n if (!unlink($file)) {\n return false;\n }\n\n// if deletion successful, reset your file attributes\n $this->evidencias = null;\n\n return true;\n }", "public function DeleteDocumentosFase() {\n\t\t\t$this->objDocumentosFase->Delete();\n\t\t}", "function eliminar(){\n\t\t$this->load->helper('url');\n\t\t$id=$this->input->post('documento');\n\t\t\n\t\t$this->load->model('Investigador_Model');\n\t\t$this->Investigador_Model->eliminar($id);\n\t\tredirect('Investigador_Controller');\n\t}", "public function delete() {\n // Find document ID.\n if (!$this->find()) {\n debugging('Failed to find ousearch document');\n return false;\n }\n self::wipe_document($this->id);\n }", "public function deleteFilesClient($doc){\n $sql = \"DELETE FROM archivo_organizado WHERE NUMERO_IDENT_CLIENTE = :doc\";\n $result = $this->_db->prepare($sql);\n $result->bindValue(':doc', $doc);\n $result->execute();\n\n if(!is_null($result->errorInfo()[2]))\n return array('error' => $result->errorInfo()[2]);\n else\n return $result->fetch(PDO::FETCH_ASSOC);\n }", "function delete_item($id,$id_documento){\n $db = new MySQL();\n $sql = \"DELETE FROM facturas_detalle WHERE id='$id'\";\n $db->consulta($sql);\n \n /*\n * actualizar nuevos saldos\n */\n $this->actualizar_totales($id_documento);\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 }", "protected function doDeleteDocument() {\n try{\n $this->service->remove($this->owner);\n }\n catch(NotFoundException $e)\n {\n trigger_error(\"Deleted document not found in search index.\", E_USER_NOTICE);\n }\n\n }", "public function delete($fisicasuelo);", "public static function eliminarDocumentoCascada($idDocumento)\n {\n //Se iterra la lista y se busca si el lugar esta en otro documento y si está se borra solo la referencia\n //Si no se busca en la tabla obraLugar si hay un registro existente se elimina solo la referencia\n //si no se busca en la tabla LugarEtnia si hay registros se elimina la referencia si no se elimina solo el lugar\n //too hard :´v\n\n\n $documentoLugares= DocumentoLugar::where('fk_doc', $idDocumento)->get();\n\n foreach ($documentoLugares as $documentoLugar) {\n\n $auxNumDocumentoLugares=DocumentoLugar::where('fk_lugar',$documentoLugar->fk_lugar)->count();\n\n if($auxNumDocumentoLugares!=0){\n if($auxNumDocumentoLugares==1){\n\n $auxDocumentoLugar= DocumentoLugar::where('fk_lugar', $documentoLugar->fk_lugar)->first();\n $numObraLugar=ObraLugar::where('fk_lugar',$auxDocumentoLugar->fk_lugar)->count();\n\n if($numObraLugar==0){\n\n $numLugarEtnia=LugarEtnia::where('fk_lugar', $auxDocumentoLugar->fk_lugar)->count();\n\n if($numLugarEtnia==0){\n\n DocumentoLugar::where('fk_lugar', $documentoLugar->fk_lugar)->delete();\n Lugar::where('id_lugar', $documentoLugar->fk_lugar)->delete();\n return;\n }\n }\n DocumentoLugar::where('fk_lugar', $documentoLugar->fk_lugar)->delete();\n }else{\n DocumentoLugar::where('fk_lugar', $documentoLugar->fk_lugar)\n ->where('fk_doc', $idDocumento)\n ->delete();\n }\n }\n }\n }", "function eliminarDocumento($id, $confirmado) {\n global $textos;\n\n $archivo = new Documento($id);\n $moduloInicio = new Modulo(\"DOCUMENTOS\");\n $destino = \"/ajax/\".$moduloInicio->url.\"/deleteDocument\";\n $respuesta = array();\n\n if (!$confirmado) {\n $nombre = HTML::frase($archivo->descripcion, \"negrilla\");\n $nombre = str_replace(\"%1\", $nombre, $textos->id(\"CONFIRMAR_ELIMINACION_ARCHIVO\"));\n $codigo = HTML::campoOculto(\"procesar\", \"true\");\n $codigo .= HTML::campoOculto(\"id\", $id);\n $codigo .= HTML::parrafo($nombre);\n $codigo .= HTML::parrafo(HTML::boton(\"chequeo\", $textos->id(\"ACEPTAR\"), \"botonOk\", \"botonOk\", \"botonOk\"), \"margenSuperior\");\n $codigo .= HTML::parrafo($textos->id(\"REGISTRO_ELIMINADO\"), \"textoExitoso\", \"textoExitoso\");\n $codigo = HTML::forma($destino, $codigo);\n\n $respuesta[\"generar\"] = true;\n $respuesta[\"codigo\"] = $codigo;\n $respuesta[\"destino\"] = \"#cuadroDialogo\";\n $respuesta[\"titulo\"] = HTML::parrafo($textos->id('ELIMINAR_ARCHIVO'), 'letraBlanca negrilla subtitulo');\n $respuesta[\"ancho\"] = 350;\n $respuesta[\"alto\"] = 170;\n\n } else {\n\n if ($archivo->eliminar()) {\n $respuesta[\"error\"] = false;\n $respuesta[\"accion\"] = \"insertar\";\n $respuesta[\"idContenedor\"] = \"#contenedorDocumento\".$id;\n $respuesta[\"eliminarAjaxLista\"] = true;\n\n } else {\n $respuesta[\"mensaje\"] = $textos->id(\"ERROR_DESCONOCIDO\");\n }\n }\n\n Servidor::enviarJSON($respuesta);\n}", "public function destroy($id)\n {\n $docente = Docente::find($id);\n if (count($docente->cargaacademicas) > 0) {\n flash(\"El Docente <strong>\" . $docente->primer_nombre . \" \" . $docente->primer_apellido . \"</strong> no pudo ser eliminado porque tiene grupos asociados.\")->warning();\n return redirect()->route('docente.index');\n } else {\n $result = $docente->delete();\n if ($result) {\n $user = User::where('identificacion', $docente->identificacion)->first();\n $user->delete();\n $aud = new Auditoriaacademico();\n $u = Auth::user();\n $aud->usuario = \"ID: \" . $u->identificacion . \", USUARIO: \" . $u->nombres . \" \" . $u->apellidos;\n $aud->operacion = \"ELIMINAR\";\n $str = \"ELIMINACIÓN DE DOCENTE. DATOS ELIMINADOS: \";\n foreach ($docente->attributesToArray() as $key => $value) {\n if ($key == 'departamento_id') {\n $str = $str . \", \" . $key . \": \" . $value . \", departamento:\" . $docente->departamento->nombre;\n } else {\n $str = $str . \", \" . $key . \": \" . $value;\n }\n }\n $aud->detalles = $str;\n $aud->save();\n flash(\"El Docente <strong>\" . $docente->primer_nombre . \" \" . $docente->primer_apellido . \"</strong> fue eliminado de forma exitosa!\")->success();\n return redirect()->route('docente.index');\n } else {\n flash(\"El Docente <strong>\" . $docente->primer_nombre . \" \" . $docente->primer_apellido . \"</strong> no pudo ser eliminado. Error: \" . $result)->error();\n return redirect()->route('docente.index');\n }\n }\n }", "public function deleting(Seguimiento $Seguimiento){\n \n }", "public function eliminarPorDominio($dominio)\n {\n }", "function delete() {\n\n $document = Doctrine::getTable('DocDocument')->find($this->input->post('doc_document_id'));\n $node = Doctrine::getTable('Node')->find($document->node_id);\n\n if ($document && $document->delete()) {\n//echo '{\"success\": true}';\n\n $this->syslog->register('delete_document', array(\n $document->doc_document_filename,\n $node->getPath()\n )); // registering log\n\n $success = 'true';\n $msg = $this->translateTag('General', 'operation_successful');\n } else {\n//echo '{\"success\": false}';\n $success = 'false';\n $msg = $e->getMessage();\n }\n\n $json_data = $this->json->encode(array('success' => $success, 'msg' => $msg));\n echo $json_data;\n }", "public function delete($document_id);", "public function destroy(Document $document)\n {\n\n $user = Auth::user();\n\n if(($document->situation == 'Pendente de Envio' or $document->situation == 'Devolvida') and $document->user_id == $user->id){\n\n Storage::delete('ordinance/'.$document->ordinance);\n Storage::delete('declaration/'.$document->declaration);\n\n $document->delete();\n session()->flash('message','Solicitação excluída com sucesso');\n return redirect()->route('documents.index');\n }\n\n return redirect()\n ->back()\n ->with('error', 'Essa solicitação não pode ser excluida!')\n ->withInput();\n }", "public function destroy(Tipo_documento $tipo_documento)\n {\n //dd(count($tipo_documento->expedientes));\n if(count($tipo_documento->expedientes) == 0){\n $tipo_documento->delete();\n Session::flash('estado', 'ok');\n \n }else{\n Session::flash('estado', 'error');\n }\n \n return redirect()\n ->route('admin.tipodocumento.index')\n ->with('flash', 'La publicación ha sido eliminada.');\n \n \n }", "function opcion__eliminar()\n\t{\n\t\t$id_proyecto = $this->get_id_proyecto_actual();\n\t\tif ( $id_proyecto == 'toba' ) {\n\t\t\tthrow new toba_error(\"No es posible eliminar el proyecto 'toba'\");\n\t\t}\n\t\ttry {\n\t\t\t$p = $this->get_proyecto();\n\t\t\tif ( $this->consola->dialogo_simple(\"Desea ELIMINAR los metadatos y DESVINCULAR el proyecto '\"\n\t\t\t\t\t.$id_proyecto.\"' de la instancia '\"\n\t\t\t\t\t.$this->get_id_instancia_actual().\"'\") ) {\n\t\t\t\t$p->eliminar_autonomo();\n\t\t\t}\n\t\t} catch (toba_error $e) {\n\t\t\t$this->consola->error($e->__toString());\n\t\t}\n\t\t$this->get_instancia()->desvincular_proyecto( $id_proyecto );\n\t}", "public function eliminarNovedadesController()\n\t{\n\t\tif (isset($_GET[\"doc\"])) \n\t\t{\n\t\t\t$doc=strip_tags($_GET[\"doc\"]);\n\t\t\t$respuesta = CrudNovedades::eliminarNovedadesModel($doc,\"novedad\",\"usuario\");\n\n\t\t\tif ($respuesta==\"exito\") \n\t\t\t{\n\t\t\t\t$_SESSION[\"borrado\"]=1;\n\t\t\t\techo '<meta http-equiv=\"refresh\" content=\"0; url=consulta_novedades\">';\n\t\t\t}\n\n\t\t\tif ($respuesta==\"error\")\n\t\t\t{\n\t\t\t\techo \"no se pudo eliminar el registro\";\n\t\t\t}\n\t\t}\n\t}", "public function deletedocument($id)\n {\n $document = $this->documentModel->find($id);\n // hapus file\n unlink('archive/' . $document['filename']);\n // hapus databasenya\n $this->documentModel->delete($id);\n session()->setFlashdata('pesan', 'Data berhasil dihapus.');\n return redirect()->to('/myarchive/document');\n }", "public function deleteDocument() {\n\n // should get instance of model and run delete-function\n\n // softdeletes-column is found inside database table\n\n return redirect('/home');\n }", "public function eliminar($objeto){\r\n\t}", "public function delete(){\n $record = actualite::find($this->selectedId);\n $record->delete();\n\n /* update image file */\n Storage::delete('public/_actualite/'.$this->selectedId.'.png');\n /* $this->photo->storePubliclyAs('public/_actualite/'.$this->selectedId.'.png'); */\n\n session()->flash('message', 'actualite modifié avec succès');\n $this->emit('Deleted');\n $this->dispatchBrowserEvent('Deleted');\n $this->resetFields();\n }", "public function Eliminar(){\n\t\t\t$enlace = AccesoBD::Conexion();\n\n\t\t\t$sql = \"DELETE FROM denuncia WHERE ID_DENUNCIA = '$this->idDenuncia'\";\n\n\t\t\tif ($enlace->query($sql) !== TRUE) {\n \t\t\techo \"Error al eliminar la denuncia\";\n \t\t\texit();\n\t\t\t}\n\t\t\techo \"Denuncia eliminada\";\n\t\t}", "function setDeleteSocio(){\n\t\t$socio\t\t= $this->mCodigo;\n\t\t$msg \t\t= \"\";\n\t\t$msg \t\t.= \"================== ELIMINANDO UN NUMERO DE SOCIO \\r\\n\";\n\t\t$msg \t\t.= \"================== SOCIO $socio \\r\\n\";\n\t\t$xRuls\t= new cReglaDeNegocio();\n\t\t$xRuls->reglas()->RN_ELIMINAR_PERSONA;\t\t\n\t\t/**\n\t\t * Elimina un socio de las Tabla de Socios\n\t\t */\n\t\t//Eliminar Socio\n\t\t$sqlD[] = \"DELETE FROM socios_general WHERE codigo=$socio \";\n\t\t//Eliminar Relaciones\n\t\t$sqlD[] = \"DELETE FROM socios_relaciones WHERE socio_relacionado=$socio \";\n\t\t//Eliminar\n\t\t$sqlD[] = \"DELETE FROM socios_vivienda WHERE socio_numero=$socio \";\n\t\t//Eliminar actividad economica\n\t\t$sqlD[] = \"DELETE FROM socios_aeconomica WHERE socio_aeconomica=$socio \";\n\t\t//Eliminar Patrimonio\n\t\t$sqlD[] = \"DELETE FROM socios_patrimonio WHERE socio_patrimonio=$socio \";\n\t\t$sqlD[]\t= \"DELETE FROM creditos_solicitud WHERE numero_socio = $socio \";\n\t\t\n\t\t$sqlD[]\t= \"DELETE FROM captacion_cuentas WHERE numero_socio = $socio \";\n\t\t$sqlD[]\t= \"DELETE FROM captacion_sdpm_historico WHERE numero_de_socio = $socio \";\n\t\t$sqlD[]\t= \"DELETE FROM creditos_flujoefvo WHERE socio_flujo = $socio \";\n\t\t$sqlD[]\t= \"DELETE FROM creditos_garantias WHERE socio_garantia = $socio \";\n\t\t$sqlD[]\t= \"DELETE FROM creditos_lineas WHERE numero_socio = $socio \";\n\t\t\n\t\t//Eliminar Memos\n\t\t$sqlD[] = \"DELETE FROM socios_memo WHERE numero_socio=$socio \";\n\t\t$sqlD[] = \"DELETE FROM operaciones_mvtos WHERE socio_afectado =$socio \";\n\t\t$sqlD[] = \"DELETE FROM operaciones_recibos WHERE numero_socio =$socio \";\n\t\t//Nuevos\n\t\t$sqlD[] = \"DELETE FROM socios_baja WHERE numero_de_socio = $socio\";\n\t\t//creditos\n\t\t$sqlD[]\t= \"DELETE FROM creditos_parametros_negociados \t\t\t\t\t\tWHERE numero_de_socio=$socio\";\n\t\t$sqlD[]\t= \"DELETE FROM creditos_sdpm_historico \t\t\t\t\t\t\t\tWHERE numero_de_socio = $socio \";\n\t\t\n\t\t$sqlD[]\t= \"DELETE FROM `seguimiento_compromisos` \t\t\t\t\t\t\tWHERE `socio_comprometido`=$socio\";\n\t\t$sqlD[]\t= \"DELETE FROM `seguimiento_llamadas` \t\t\t\t\t\t\t\tWHERE `numero_socio`=$socio\";\n\t\t$sqlD[]\t= \"DELETE FROM `seguimiento_notificaciones` \t\t\t\t\t\tWHERE `socio_notificado`=$socio\";\n\n\t\t$sqlD[]\t= \"DELETE FROM `socios_memo` \t\t\t\t\t\t\t\t\t\tWHERE `numero_socio`=$socio\";\n\t\t$sqlD[]\t= \"DELETE FROM `socios_otros_parametros`\t\t\t\t\t\t\tWHERE `clave_de_persona`=$socio\";\n\t\t\n\t\t$sqlD[]\t= \"DELETE FROM `personas_documentacion`\t\t\t\t\t\t\tWHERE `clave_de_persona`=$socio\";\n\t\t$sqlD[]\t= \"DELETE FROM `personas_perfil_transaccional`\t\t\t\t\t\tWHERE `clave_de_persona`=$socio\";\n\t\t\n\t\t$sqlD[]\t= \"UPDATE contable_polizas_proforma SET socio=\" . DEFAULT_SOCIO . \" WHERE socio=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `usuarios_web_notas` SET `socio`=\" . DEFAULT_SOCIO . \" \tWHERE `socio`=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `socios_aeconomica_dependencias` SET `clave_de_persona`\t\t=\" . DEFAULT_SOCIO . \" \tWHERE `clave_de_persona`=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `socios_grupossolidarios` SET `representante_numerosocio`\t\t=\" . DEFAULT_SOCIO . \" \tWHERE `representante_numerosocio`=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `socios_grupossolidarios` SET `vocalvigilancia_numerosocio`\t=\" . DEFAULT_SOCIO . \" WHERE `vocalvigilancia_numerosocio`=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `socios_grupossolidarios` SET `clave_de_persona`\t\t=\" . DEFAULT_SOCIO . \" \tWHERE `clave_de_persona`=$socio\";\n\t\t\n\t\t$sqlD[]\t= \"UPDATE `aml_alerts` SET `persona_de_destino`\t=\" . DEFAULT_SOCIO . \" WHERE `persona_de_destino`=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `aml_alerts` SET `persona_de_origen`\t=\" . DEFAULT_SOCIO . \" WHERE `persona_de_origen`=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `aml_risk_register` SET `persona_relacionada`\t=\" . DEFAULT_SOCIO . \" WHERE `persona_relacionada`=$socio\";\n\t\t$sqlD[]\t= \"UPDATE `bancos_operaciones` SET `numero_de_socio`\t=\" . DEFAULT_SOCIO . \" WHERE `numero_de_socio`=$socio\";\n\t\t\n\t\t$sqlD[]\t= \" UPDATE creditos_solicitud SET persona_asociada = \" . DEFAULT_SOCIO . \" WHERE persona_asociada = $socio \";\n\t\t$sqlD[]\t= \" UPDATE `t_03f996214fba4a1d05a68b18fece8e71` SET `codigo_de_persona` = \" . DEFAULT_SOCIO . \" WHERE `codigo_de_persona` = $socio \";\n\t\t$sqlD[]\t= \" UPDATE `tesoreria_cajas_movimientos` SET `persona` = \" . DEFAULT_SOCIO . \" WHERE `persona` = $socio \";\n\t\t$sqlD[]\t= \" UPDATE `socios_relaciones` SET `numero_socio` = \" . DEFAULT_SOCIO . \" WHERE `numero_socio` = $socio \";\n\t\t\n\t\t$sqlD[]\t= \" UPDATE `general_sucursales` SET `clave_de_persona` = \" . DEFAULT_SOCIO . \" WHERE `clave_de_persona` = $socio \";\n\t\t$sqlD[]\t= \" UPDATE `operaciones_recibos` SET `persona_asociada` = \" . DEFAULT_SOCIO . \" WHERE `persona_asociada` = $socio \";\n\t\t$sqlD[]\t= \" UPDATE `socios_aeconomica_dependencias` SET `clave_de_persona` = \" . DEFAULT_SOCIO . \" WHERE `clave_de_persona` = $socio \";\n\t\t\n\t\t//$sqlD[] = \" UPDATE operaciones_mvtos SET socio_afectado = \" . DEFAULT_SOCIO . \" WHERE socio_afectado =$socio \";\n\t\t//$sqlD[] = \" UPDATE operaciones_recibos SET numero_socio = \" . DEFAULT_SOCIO . \" WHERE numero_socio =$socio \";\n\t\t//\n\t\t\n\t\t//Cambiar referencias, garantias\n\t\tforeach ($sqlD as $key => $send){\n\t\t\t$x\t= my_query($send);\n\t\t\t$msg\t.= $x[SYS_INFO];\n\t\t}\n\t\treturn $msg;\n\t}", "public function eliminar() {\n $fecha = $this->fecha;\n return ($fecha) ? Funciones::gEjecutarSQL(\"DELETE FROM ASISTENTES WHERE FECHA='$fecha'\") : FALSE;\n }", "public function deleteFromIndex()\n {\n if ($this->es_info) {\n ESHelper::deleteDocumentFromType($this);\n }\n }", "public function eliminarDocumento($ID_DOCUMENTO)\n {\n try\n {\n $dao=new DocumentoSalidaDAO();\n $rec = $dao->eliminarDocumentoSalidaSinFolio($ID_DOCUMENTO);\n if($rec <= 0)\n $rec = $dao->eliminarDocumentoSalidaConFolio($ID_DOCUMENTO);\n return $rec;\n } catch (Exception $ex) \n {\n throw $ex;\n return -1;\n }\n }", "final public function delete() {\n global $config; \n # Borrar el elemento de la base de datos\n $this->db->query(\"DELETE FROM guarderia_2 WHERE id_guarderia = $this->id\");\n # Redireccionar a la página principal del controlador\n $this->functions->redir($config['site']['url'] . 'sedes/&success=true');\n }", "public function delete($idconvenio);", "function procesar_delete ($datos){\n \n $this->dep('datos')->tabla('asignacion')->cargar(array('id_asignacion'=>$this->s__id_asignacion));\n $asignacion=$this->dep('datos')->tabla('asignacion')->get();\n $this->dep('datos')->tabla('asignacion')->eliminar_fila($asignacion['x_dbr_clave']);\n $this->dep('datos')->tabla('asignacion')->sincronizar();\n }", "public function eliminar() {\n\t\t\n\t\t\n\t\t$juradodni = $_GET[\"dniJurado\"];\n\t\t\n\t\t$this -> JuradoMapper -> delete($juradodni);\n\n\t\t\n\t\t$this -> view -> redirect(\"jurado\", \"listar\");\n\t\t//falta cambiar\n\t}", "public function deleted(Saida $saida)\n {\n //\n }", "public function deleted(Document $document)\n {\n if(isset($document->path)) {\n // delete the associated file\n $path = $document->path;\n $fileExists = Storage::disk('spaces')->exists($path);\n if($fileExists) {\n Storage::disk('spaces')->delete($path);\n }\n } \n }", "public function eliminarderivoAction()\n {\n $this->disableAutoRender();\n\n /* Recibo la lista de Ids separado por comas */\n $idList = $this->_getParam('id');\n\n if ($idList) {\n /* Convierto la lista a un Array */\n $idArray = explode (\",\", $idList);\n\n /* Recorro el array eliminando cada Id */\n foreach ($idArray as $id) {\n try {\n $resultado = $this->_modeloDerivotemporal->eliminar($id, $this->_usuario);\n\t\t\t\t\t\n if($resultado == 0) { /* Si no se eliminó */\n echo 'error|No está autorizado a eliminar este registro'; \n exit;\n }\n\t\t\t\t\n\t\t} catch(Exception $ex) {\n $message = $ex->getMessage();\n echo 'error|'.$message;\n }\n }\n }\n }", "public function delete() {\n $this->remove_content();\n\n parent::delete();\n }", "public function delete($id_soal_siswa);", "public function Eliminar()\n {\n $sentenciaSql = \"DELETE FROM \n detalle_orden \n WHERE \n id_detalle_orden = $this->idDetalleOrden\";\n $this->conn->preparar($sentenciaSql);\n $this->conn->ejecutar();\n }", "public function delete () {\n $this->db->delete('emprestimos', array('id_emprestimo' => $this->id_emprestimo));\n }", "function deleteInformationDocument($doc_id) {\n global $pdo;\n\n $document = getInformationDocument($doc_id); // get information for file delete\n\n $statement = $pdo->prepare('DELETE FROM `infodoc` WHERE `id` = :id');\n $statement->bindParam(\":id\", $doc_id);\n $statement->execute();\n\n deleteFile($document['file']); // delete file out of database\n}", "public function delete_tripartite_docs($id){ \n $id = decrypt($id);\n $society = SocietyOfferLetter::where('user_id', auth()->user()->id)->first();\n $delete_document_details = OlSocietyDocumentsStatus::with('document_name')->where('society_id', $society->id)->where('id', $id)->first();\n $documents = OlSocietyDocumentsMaster::where('application_id', $delete_document_details->document_name->application_id)->where('is_admin', 0)->with(['documents_uploaded' => function($q) use ($society){\n $q->where('society_id', $society->id)->get();\n }])->get();\n\n $docs_uploaded = 0;\n $docs_remain = 0;\n foreach($documents as $document){\n if(count($document->documents_uploaded) > 0){\n $docs_uploaded++;\n }else{\n $docs_remain++;\n }\n }\n $stored_filepath = explode('/', $delete_document_details->society_document_path);\n $folder_name = \"society_offer_letter_documents\";\n $path = $folder_name.'/'.$stored_filepath[count($stored_filepath)-1];\n $delete = Storage::disk('ftp')->delete($path);\n OlSocietyDocumentsStatus::where('society_id', $society->id)->where('id', $id)->delete();\n\n return redirect()->back();\n }", "function Delete($id,$HOST_URL=\"/home/hmongbee/public_html/\"){\n\t\t//chmod(\"/home/hmongbee/public_html/tailieu\",0777);\n\t\t\n\t\t$dirname = $this->fileName($id,\"/home/hmongbee/public_html/\"); \n\t\tchmod($dirname, 0777);\n\t\t\n\t\tif(is_dir($dirname)) { \n\t\t\trmdir($dirname);\n\t\t}\n\t\tif(is_file($dirname) && file_exists($dirname)) {\n\t\t\tunlink($dirname);\n\t\t}\n\t\t// Read and write for owner, read for everybody else\n\t\t//chmod(\"/home/hmongbee/public_html/tailieu\",0644);\n\t\t\n\t\t$sql=\"DELETE FROM `tbl_document` WHERE `doc_id` in ('$id')\"; //echo $sql; die;\n\t\t$objdata=new CLS_MYSQL();\n\t\treturn $objdata->Query($sql);\n\t}", "function deleted_open() {\n $this->doc .= '<del>';\n }", "function deletePreDetalle(){\n $sql='DELETE FROM predetalle WHERE idCliente = ?';\n $params=array($this->cliente);\n return Database::executeRow($sql, $params);\n }", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "public function destroy($id)\n {\n //\n $this->authorize('delete', DocumentoCabecera::class);\n\n $items = DocumentoDetalle::where('id_documentocabecera', '=', $id)->get();\n $documentoCabecera = DocumentoCabecera::find($id);\n $totalcompra = $items->count();\n\n $documets = DocumentoCabecera::where('id', '<>' , $id)\n ->where('id_cliente', '=', $documentoCabecera->id_cliente)\n -> orderByDesc('id')->take(1)->get();\n\n foreach ($items as $key => $value) {\n\n $producto = Product::find($value->id_producto);\n $producto->ventas = $producto->ventas - $value->cantidad;\n $producto->stock = $producto->stock + $value->cantidad;\n $producto->save();\n\n DocumentoDetalle::destroy($value->id);\n }\n\n $documentoCabecera->delete();\n\n\n\n\n $cliente = Client::find($documentoCabecera->id_cliente);\n $cliente->compras = $cliente->compras - $totalcompra;\n if (Carbon::parse($documentoCabecera->fechaemision)->greaterThanOrEqualTo($cliente->ultima_compra)){\n if($documets->count() > 0)\n $cliente->ultima_compra = $documets[0]->fechaemision;\n else {\n $cliente->ultima_compra = null;\n }\n }\n else if ($documets->count() == 0)\n $cliente->ultima_compra = null;\n\n $cliente->save();\n\n return response()->json([\n 'error' => false,\n 'message' => 'La venta se elimino con exito.',\n 'redirect' => ''\n ], 200);\n }", "public function excluir(){\n\t\tglobal $tabela_links;\n\t\t$consulta = new conexao();\n\t\t$endereco = $consulta->sanitizaString($this->end_link);\n\t\t$funcionalidade_tipo = (int) $this->funcionalidade_tipo;\n\t\t$funcionalidade_id = (int) $this->funcionalidade_id;\n\t\t//echo(\"$endereco\t $funcionalidade_tipo\t$funcionalidade_id\");\n\t\t$consulta->connect();\n\t\t$consulta->solicitar(\"DELETE FROM $tabela_links \n\t\t\t\t\t\t\t\tWHERE endereco = '$endereco'\n\t\t\t\t\t\t\t\tAND funcionalidade_tipo\t= '$funcionalidade_tipo'\n\t\t\t\t\t\t\t\tAND funcionalidade_id\t= '$funcionalidade_id'\");\n\t\t\n\t\n\t}", "function setDelete(){\n\t\t$msg\t= \"===========\\tELIMINADO LA CUENTA \" . $this->mNumeroCuenta . \"\\r\\n\";\n\t\t$cuenta\t= $this->mNumeroCuenta;\n\t\t$socio\t= $this->mSocioTitular;\n\t\t$xQL\t= new MQL();\n\t\t\t//Cuenta\n\t\t\t$SQLDCuenta \t= \"DELETE FROM captacion_cuentas WHERE numero_cuenta = $cuenta AND numero_socio = $socio \";\n\t\t\t$x = $xQL->setRawQuery($SQLDCuenta);\n\n\t\t\tif ($x[\"stat\"] == false ){\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tERROR\\t\" . $x[\"error\"] . \"\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tSUCESS\\t Eliminando la Cuenta (\" . $x[\"info\"] . \")\\r\\n\";\n\t\t\t}\n\t\t\t//Firma\n\t\t\t/*$SQLDFirma \t= \"DELETE FROM socios_firmas WHERE numero_de_cuenta = $cuenta \";\n\t\t\t$x = my_query($SQLDFirma);\n\n\t\t\tif ($x[\"stat\"] == false ){\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tERROR\\t\" . $x[\"error\"] . \"\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tSUCESS\\tEliminando las Firmas (\" . $x[\"info\"] . \")\\r\\n\";\n\t\t\t}*/\n\t\t\t//sdpm\n\t\t\t$SQLD_SDPM \t= \"DELETE FROM captacion_sdpm_historico WHERE cuenta = $cuenta \";\n\t\t\t$x = $xQL->setRawQuery($SQLD_SDPM);\n\n\t\t\tif ($x[\"stat\"] == false ){\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tERROR\\t\" . $x[\"error\"] . \"\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tSUCESS\\t\" . $x[\"info\"] . \"\\r\\n\";\n\t\t\t}\n\n\t\t\t//Movimientos\n\t\t\t$SQLDOpes\t= \"DELETE FROM operaciones_mvtos WHERE docto_afectado = $cuenta AND socio_afectado = $socio \";\n\t\t\t$x = $xQL->setRawQuery($SQLDOpes);\n\t\t\tif ($x[\"stat\"] == false ){\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tERROR\\t\" . $x[\"error\"] . \"\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tSUCESS\\t\" . $x[\"info\"] . \"\\r\\n\";\n\t\t\t}\n\n\t\t\t$SQLDRecs\t= \"DELETE FROM operaciones_recibos WHERE docto_afectado = $cuenta AND numero_socio = $socio \";\n\t\t\t$x = $xQL->setRawQuery($SQLDRecs);\n\t\t\tif ($x[\"stat\"] == false ){\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tERROR\\t\" . $x[\"error\"] . \"\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tSUCESS\\t\" . $x[\"info\"] . \"\\r\\n\";\n\t\t\t}\n\n\t\t\t//Actualizar el Credito Relacionado\n\t\t\t$SQLDCC\t= \"UPDATE creditos_solicitud\n\t\t\t\t\t\tSET contrato_corriente_relacionado = \" . CTA_GLOBAL_CORRIENTE . \"\n\t\t\t\t\t\tWHERE contrato_corriente_relacionado = $cuenta \";\n\t\t\t$x = $xQL->setRawQuery($SQLDCC);\n\t\t\tif ($x[\"stat\"] == false ){\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tERROR\\t\" . $x[\"error\"] . \"\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$msg\t.= date(\"H:i:s\") . \"\\tSUCESS\\tActualizando Creditos Relacionados (\" . $x[\"info\"] . \") \\r\\n\";\n\t\t\t}\n\t\treturn $msg;\n\t}", "public function eliminaNews($cod)\n {\n $database=$this->database;\n // chiamata alla funzione di connessione\n $database->connetti();\n // interrogazione della tabella\n $auth = $database->query(\"DELETE FROM `database`.`newsletter` WHERE `codice_news`='$cod'\");\n \n $database->disconnetti();\n \n }", "public function documentdelete($employer_id,$id) {\n\t\t$document = DB::table('employer_documents as ed')\n\t\t\t\t\t\t->select( \"ed.title\")\n\t\t\t\t\t\t->where('employer_id', '=', $employer_id)->where('id', '=', $id)->get();\n\t\tunlink('uploads/employer_document/'.$document[0]->title);\t\t\t\t\n\t\tDB::table('employer_documents')->where('employer_id', '=', $employer_id)->where('id', '=', $id)->delete();\n\t\t\\Session::flash('success', 'Document deleted successfully.');\n\t\treturn redirect(\"employer/\".$employer_id.\"/edit?tab=tab1\");\n\t}", "function autoriser_document_supprimer($faire, $type, $id, $qui, $opt){\r\n\tif (!intval($id)\r\n\t\tOR !$qui['id_auteur']\r\n\t\tOR !autoriser('ecrire','','',$qui))\r\n\t\treturn false;\r\n\t// ne pas considerer le document parent\r\n\t// (cas des vignettes ou autre document annexe rattache a un document)\r\n\tif (sql_countsel('spip_documents_liens', \"objet!='document' AND id_document=\".intval($id)))\r\n\t\treturn false;\r\n\r\n\treturn autoriser('modifier','document',$id,$qui,$opt);\r\n}", "public function destroy($id_doc)\n {\n $doc = Document::findOrFail($id_doc);\n Document::destroy($id_doc);\n $id = $doc->lesson_id ;\n $less = Lesson::find($id);\n $documents = $less->docx_child;\n Session::flash('flash_message', 'Документ Удален!');\n return view('admin.documents.index',compact('documents','id'));\n // return redirect('admin/documents')->with('flash_message', 'Role deleted!');\n }", "public function deleteSeguimientos(Request $request){\n $this->validate($request,['id' => 'required']);\n $id = $request->input('id');\n $seguimiento = Seguimiento::where('paciente_id',$id)->get()->toArray();\n foreach($seguimiento as $seg){\n $file = storage_path('recursos/seguimientos/'.$seg['foto']);\n unlink($file);\n }\n\n DB::table('seguimientos')->where('paciente_id',$id)->delete();\n\n return response()->json([\n 'status' => 'ok',\n 'code' => 200,\n 'result' => 'Se elimino el seguimiento'\n ],200)\n ->header('Access-Control-Allow-Origin','*')\n ->header('Content-Type', 'application/json');\n\n }", "public function excluir(){\n\t\n\t\t$idcomentario = $this->uri->segment(3);\n\t\tif ($idcomentario != NULL):\n\t\t\t$query = $this->Comentarios->get_byid($idcomentario);\n\t\t\tif ($query->num_rows()==1):\n\t\t\t\t$query = $query->row();\n\t\t\t\t$this->Comentarios->do_delete(array('id_comentario'=>$query->id_comentario), FALSE);\n\t\t\tendif;\n\t\telse:\n\t\t\tset_msg('msgerro', 'Escolha um comentario para excluir', 'erro');\n\t\tendif;\n\t\t\tredirect('comentarios/gerenciar');\n\t}", "function delete(){\n\t\t$eventDet = $this->get_full_details();\n\t\t//print_r($eventDet);\n\t\t#unlink all images for the event\n\t\tif ($eventDet->news_image_logo) { \n\t\t\t//unlink($this->imgPath.$eventDet->news_image_logo);\n\t\t}\n\t\tif ($eventDet->news_photo1) { \n\t\t\tunlink($this->imgPath.$eventDet->news_photo1);\n\t\t}\n\t\tif ($eventDet->news_photo2) { \n\t\t\tunlink($this->imgPath.$eventDet->news_photo2);\n\t\t}\n\t\tif ($eventDet->news_photo3) { \n\t\t\tunlink($this->imgPath.$eventDet->news_photo3);\n\t\t}\t\t\t\t\t\t\n\t\t\n\t\t#remove event entry from the db\n\t\tglobal $db;\n\t\t$sQl = \"delete from cms_news where id = '\".$this->event_id.\"'\";\n\t\tif ($db->query($sQl)){\n\t\t\t$this->message = \"Event \".$eventDet->news_title.\" deleted successfully\";\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$this->error = \"Cannot delete Event \".$eventDet->news_title.\"\";\n\t\t\treturn false;\n\t\t}\n\t}", "public function eliminar_producto_institucion(Request $dato)\n {\n\n //$getFoto = foto_producto::where('id_producto',$dato->idProducto)->get();\n //return $getFoto[0]->foto;\n //\\File::delete($getFoto[0]->foto);/*ELIMINAR FOTO*/\n \n //$foto_prod = foto_producto::borrar($getFoto[0]->id);\n $tienda_prod_inst = Tienda_producto_institucion::borrar($dato->idProducto);\n //$prod_insti = producto::borrar($dato->idProducto);\n\n return \"true\";\n }", "public function delete($cotizacion);", "public function destroy($id)\n { \n $userid = Auth::user()->id;\n $documento = Doc_Usuario::existedocumento($userid, $id);\n Doc_Usuario::borradocumento($userid, $id);\n \\Storage::delete($documento->documento);\n return redirect('/empresadocumentos')->with('success','Documento borrado correctamente');\n }", "function borrarInscrito() {\n //Creamos la evaluacion\n leerClase('Evaluacion');\n leerClase('Estudiante');\n leerClase('Proyecto_dicta');\n $estudiante = new Estudiante($this->estudiante_id);\n $evaluacion = new Evaluacion($this->evaluacion_id);\n $protecto=$estudiante->getProyecto();\n $sql = \"select p.id as id from \" . $this->getTableName('Proyecto_dicta') . \" as p where p.proyecto_id = '$protecto->id' and p.dicta_id = '$this->dicta_id' \";\n $resultado = mysql_query($sql);\n\n $proyecto_array = mysql_fetch_array($resultado);\n $proyecto_dicta = new Proyecto_dicta($proyecto_array);\n $proyecto_dicta->delete();\n $evaluacion->delete();\n $this->delete();\n }", "function Eliminar()\n{\n /**\n * Se crea una instanica a Concesion\n */\n $Concesion = new Titulo();\n /**\n * Se coloca el Id del acuifero a eliminar por medio del metodo SET\n */\n $Concesion->setId_titulo(filter_input(INPUT_GET, \"ID\"));\n /**\n * Se manda a llamar a la funcion de eliminar.\n */\n echo $Concesion->delete();\n}", "function deletePreDetalle2()\n {\n $sql='DELETE FROM predetalle WHERE idPreDetalle = ?';\n $params=array($this->idPre);\n return Database::executeRow($sql, $params);\n }", "public function EliminarDetallesVentas()\n{\n\tif($_SESSION['acceso'] == \"administrador\") {\n\n\t\tself::SetNames();\n\n\t\t$sql = \" select * from detalleventas where codventa = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array(strip_tags($_GET[\"codventa\"])) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num > 1)\n\t\t{\n\n\t$sql2 = \"select existencia from productos where codproducto = ?\";\n\t$stmt = $this->dbh->prepare($sql2);\n\t$stmt->execute( array(base64_decode($_GET[\"codproducto\"])));\n\t$num = $stmt->rowCount();\n\n\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t{\n\t\t\t$p[] = $row;\n\t\t}\n\t$existenciadb = $p[0][\"existencia\"];\n\n###################### ACTUALIZAMOS LOS DATOS DEL PRODUCTO EN ALMACEN ############################\n\t$sql = \" update productos set \"\n\t.\" existencia = ? \"\n\t.\" where \"\n\t.\" codproducto = ?;\n\t\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindParam(1, $existencia);\n\t$stmt->bindParam(2, $codproducto);\n\t$cantventa = strip_tags(base64_decode($_GET[\"cantventa\"]));\n\t$codproducto = strip_tags(base64_decode($_GET[\"codproducto\"]));\n\t$existencia = $existenciadb + $cantventa;\n\t$stmt->execute();\n\n\t$sql = \" delete from detalleventas where coddetalleventa = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindParam(1,$coddetalleventa);\n\t$coddetalleventa = base64_decode($_GET[\"coddetalleventa\"]);\n\t$stmt->execute();\n\n###################### REALIZAMOS LA ELIMINACION DEL PRODUCTO EN KARDEX ############################\n\t$sql = \" delete from kardexproductos where codproceso = ? and codproducto = ?\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindParam(1,$codventa);\n\t$stmt->bindParam(2,$codproducto);\n\t$codventa = strip_tags(strip_tags($_GET[\"codventa\"]));\n\t$codproducto = strip_tags(base64_decode($_GET[\"codproducto\"]));\n\t$stmt->execute();\n\n################## CONSULTO LA TABLA PARA VERIFICAR SI EXISTEN PRODUCTOS #################\n$sql = \"select * from productosvsingredientes where codproducto = ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($codproducto));\n\t\t$num = $stmt->rowCount();\n if($num>0) {\n\n$sql = \"select * from productosvsingredientes LEFT JOIN ingredientes ON productosvsingredientes.codingrediente = ingredientes.codingrediente where productosvsingredientes.codproducto = '\".$codproducto.\"'\";\n\n\t$array=array();\n\n\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t{\n\t\t$this->p[] = $row;\n\n\t\t$codproducto = $row['codproducto'];\n\t\t$codingrediente = $row['codingrediente'];\n\t\t$cantracion = $row['cantracion'];\n\t\t$cantingrediente = $row['cantingrediente'];\n\t\t$costoingrediente = $row['costoingrediente'];\n\n###################### REALIZAMOS LA ELIMINACION DEL PRODUCTO EN KARDEX ############################\n\t\t$sql = \" delete from kardexingredientes where codprocesoing = ? and codproducto = ? and codingrediente = ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1,$codventa);\n\t\t$stmt->bindParam(2,$codproducto);\n\t\t$stmt->bindParam(3,$codingrediente);\n\t\t$codventa = strip_tags(strip_tags($_GET[\"codventa\"]));\n\t\t$codproducto = strip_tags(base64_decode($_GET[\"codproducto\"]));\n\t\t$codingrediente = strip_tags($codingrediente);\n\t\t$stmt->execute();\n\n\t\t$update = \" update ingredientes set \"\n\t\t.\" cantingrediente = ? \"\n\t\t.\" where \"\n\t\t.\" codingrediente = ?;\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($update);\n\t\t$stmt->bindParam(1, $cantidadracion);\n\t\t$stmt->bindParam(2, $codingrediente);\n\n\t\t$cantventa = strip_tags(base64_decode($_GET[\"cantventa\"]));\n\t\t$racion = rount($cantracion*$cantventa,2);\n\t\t$cantidadracion = rount($cantingrediente+$racion,2);\n\t\t$stmt->execute();\n\n\t\t }\n}\n############ FIN DE CONSULTO LA TABLA PARA VERIFICAR SI EXISTEN PRODUCTOS REGISTRADOS ##############\n\n\t$sql4 = \"select * from ventas where codventa = ? \";\n\t\t$stmt = $this->dbh->prepare($sql4);\n\t\t$stmt->execute( array(strip_tags($_GET[\"codventa\"])) );\n\t\t$num = $stmt->rowCount();\n\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t{\n\t\t\t$paea[] = $row;\n\t\t}\n\t\t$subtotalivasive = $paea[0][\"subtotalivasive\"];\n\t\t$subtotalivanove = $paea[0][\"subtotalivanove\"];\n\t\t$iva = $paea[0][\"ivave\"]/100;\n\t\t$descuento = $paea[0][\"descuentove\"]/100;\n\t\t$totalivave = $paea[0][\"totalivave\"];\n\t\t$totaldescuentove = $paea[0][\"totaldescuentove\"];\n\t\t$totaldb = $paea[0][\"totalpago\"];\n\t\t$montopagado = $paea[0][\"montopagado\"];\n\t\t\t\n\t\t\n$sql3 = \"select sum(importe) as importe, sum(importe2) as importe2, sum(preciocompra) as preciocompra from detalleventas where codventa = ? and ivaproducto = 'SI'\";\n\t\t$stmt = $this->dbh->prepare($sql3);\n\t\t$stmt->execute( array(strip_tags($_GET[\"codventa\"])));\n\t\t$num = $stmt->rowCount();\n\t\t \n\t\t if($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$pae[] = $row;\n\t\t\t}\n\t\t$preciocompraiva = ($pae[0][\"preciocompra\"]== \"\" ? \"0\" : $pae[0][\"preciocompra\"]);\n\t\t$importeivasi = ($pae[0][\"importe\"]== \"\" ? \"0\" : $pae[0][\"importe\"]);\n\t\t$importe2si = ($pae[0][\"importe2\"]== \"\" ? \"0\" : $pae[0][\"importe2\"]);\n\t\n$sql5 = \"select sum(importe) as importe, sum(importe2) as importe2, sum(preciocompra) as preciocompra from detalleventas where codventa = ? and ivaproducto = 'NO'\";\n\t\t$stmt = $this->dbh->prepare($sql5);\n\t\t$stmt->execute( array(strip_tags($_GET[\"codventa\"])));\n\t\t$num = $stmt->rowCount();\n\t\t \n\t\t if($roww = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$p[] = $roww;\n\t\t\t}\n\t\t$preciocompra = ($roww[\"preciocompra\"]== \"\" ? \"0\" : $roww[\"preciocompra\"]);\n\t\t$importeivano = ($roww[\"importe\"]== \"\" ? \"0\" : $roww[\"importe\"]);\n\t\t$importe2 = ($roww[\"importe2\"]== \"\" ? \"0\" : $roww[\"importe2\"]);\n\t\t\nif(base64_decode($_GET[\"ivaproducto\"])==\"SI\"){\t\n\n\t\t$sql = \" update ventas set \"\n\t\t\t .\" subtotalivasive = ?, \"\n\t\t\t .\" totalivave = ?, \"\n\t\t\t .\" totaldescuentove = ?, \"\n\t\t\t .\" totalpago= ?, \"\n\t\t\t .\" montodevuelto= ? \"\n\t\t\t .\" where \"\n\t\t\t .\" codventa = ?;\n\t\t\t \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $subtotal);\n\t\t$stmt->bindParam(2, $totaliva);\n\t\t$stmt->bindParam(3, $totaldescuentove);\n\t\t$stmt->bindParam(4, $totalpago);\n\t\t$stmt->bindParam(5, $devuelto);\n\t\t$stmt->bindParam(6, $codventa);\n\t\t\n\t\t$subtotal= strip_tags($importeivasi);\n $totaliva= rount($subtotal*$iva,2);\n\t\t$tot= rount($subtotal+$subtotalivanove+$totaliva,2);\n\t\t$totaldescuentove= rount($tot*$descuento,2);\n\t\t$totalpago= rount($tot-$totaldescuentove,2);\n\t\t$devuelto= ($montopagado== \"0.00\" ? \"0\" : rount($montopagado-$totalpago,2));\n\t\t$codventa = strip_tags($_GET[\"codventa\"]);\n\t\t$stmt->execute();\n\n#################### AQUI AGREGAMOS EL INGRESO A ARQUEO DE CAJA ####################\nif (base64_decode($_GET[\"tipopagove\"])==\"CONTADO\"){\n\n$sql = \"select ingresos from arqueocaja where codcaja = '\".strip_tags($_GET[\"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']== \"\" ? \"0.00\" : $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$calculo=rount($totaldb-$totalpago,2);\n\t\t$txtTotal = rount($ingreso-$calculo,2);\n\t\t$codcaja = strip_tags($_GET[\"codcaja\"]);\n\t\t$stmt->execute();\n\t}\n#################### AQUI AGREGAMOS EL INGRESO A ARQUEO DE CAJA ####################\n\t\t\n\t\t } else {\n\n $sql = \" update ventas set \"\n\t\t\t .\" subtotalivanove = ?, \"\n\t\t\t .\" totaldescuentove = ?, \"\n\t\t\t .\" totalpago= ?, \"\n\t\t\t .\" montodevuelto= ? \"\n\t\t\t .\" where \"\n\t\t\t .\" codventa = ?;\n\t\t\t \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $subtotal);\n\t\t$stmt->bindParam(2, $totaldescuentove);\n\t\t$stmt->bindParam(3, $totalpago);\n\t\t$stmt->bindParam(4, $devuelto);\n\t\t$stmt->bindParam(5, $codventa);\n\t\t\n\t\t$subtotal= strip_tags($importeivano);\n\t\t$tot= rount($subtotal+$subtotalivasive+$totalivave,2);\n\t\t$totaldescuentove= rount($tot*$descuento,2);\n\t\t$totalpago= rount($tot-$totaldescuentove,2);\n\t\t$devuelto= ($montopagado== \"0.00\" ? \"0\" : rount($montopagado-$totalpago,2));\n\t\t$codventa = strip_tags($_GET[\"codventa\"]);\n\t\t$stmt->execute();\n\n#################### AQUI AGREGAMOS EL INGRESO A ARQUEO DE CAJA ####################\nif (base64_decode($_GET[\"tipopagove\"])==\"CONTADO\"){\n\n$sql = \"select ingresos from arqueocaja where codcaja = '\".strip_tags($_GET[\"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']== \"\" ? \"0.00\" : $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$calculo=rount($totaldb-$totalpago,2);\n\t\t$txtTotal = rount($ingreso-$calculo,2);\n\t\t$codcaja = strip_tags($_GET[\"codcaja\"]);\n\t\t$stmt->execute();\n\t}\n#################### AQUI AGREGAMOS EL INGRESO A ARQUEO DE CAJA ####################\n\t\t\n\t } \n\necho \"<div class='alert alert-info'>\";\necho \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\necho \"<center><span class='fa fa-check-square-o'></span> EL DETALLE DE VENTA DE PRODUCTO FUE ELIMINADO EXITOSAMENTE </center>\";\necho \"</div>\";\nexit;\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\t$sql2 = \"select existencia from productos where codproducto = ?\";\n\t\t\t$stmt = $this->dbh->prepare($sql2);\n\t\t\t$stmt->execute( array(base64_decode($_GET[\"codproducto\"])));\n\t\t\t$num = $stmt->rowCount();\n\n\t\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$p[] = $row;\n\t\t\t}\n\t\t\t$existenciadb = $p[0][\"existencia\"];\n\n###################### ACTUALIZAMOS LOS DATOS DEL PRODUCTO EN ALMACEN ############################\n\t\t\t$sql = \" update productos set \"\n\t\t\t.\" existencia = ? \"\n\t\t\t.\" where \"\n\t\t\t.\" codproducto = ?;\n\t\t\t\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->bindParam(1, $existencia);\n\t\t\t$stmt->bindParam(2, $codproducto);\n\t\t\t$cantventa = strip_tags(base64_decode($_GET[\"cantventa\"]));\n\t\t\t$codproducto = strip_tags(base64_decode($_GET[\"codproducto\"]));\n\t\t\t$existencia = $existenciadb + $cantventa;\n\t\t\t$stmt->execute();\n\n###################### REALIZAMOS LA ELIMINACION DEL PRODUCTO EN KARDEX ############################\n\t\t\t$sql = \" delete from kardexproductos where codproceso = ? and codproducto = ?\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->bindParam(1,$codventa);\n\t\t\t$stmt->bindParam(2,$codproducto);\n\t\t\t$codventa = strip_tags(strip_tags($_GET[\"codventa\"]));\n\t\t\t$codproducto = strip_tags(base64_decode($_GET[\"codproducto\"]));\n\t\t\t$stmt->execute();\n\n\n################## CONSULTO LA TABLA PARA VERIFICAR SI EXISTEN PRODUCTOS #######################\n$sql = \"select * from productosvsingredientes where codproducto = ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($codproducto));\n\t\t$num = $stmt->rowCount();\nif($num>0) {\n\n\n\t$sql = \"select * from productosvsingredientes LEFT JOIN ingredientes ON productosvsingredientes.codingrediente = ingredientes.codingrediente where productosvsingredientes.codproducto = '\".$codproducto.\"'\";\n\n\t$array=array();\n\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\n\t\t$codproducto = $row['codproducto'];\n\t\t$codingrediente = $row['codingrediente'];\n\t\t$cantracion = $row['cantracion'];\n\t\t$cantingrediente = $row['cantingrediente'];\n\t\t$costoingrediente = $row['costoingrediente'];\n\n###################### REALIZAMOS LA ELIMINACION DEL PRODUCTO EN KARDEX ############################\n\t\t$sql = \" delete from kardexingredientes where codprocesoing = ? and codproducto = ? and codingrediente = ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1,$codventa);\n\t\t$stmt->bindParam(2,$codproducto);\n\t\t$stmt->bindParam(3,$codingrediente);\n\t\t$codventa = strip_tags(strip_tags($_GET[\"codventa\"]));\n\t\t$codproducto = strip_tags(base64_decode($_GET[\"codproducto\"]));\n\t\t$codingrediente = strip_tags($codingrediente);\n\t\t$stmt->execute();\n\n\n\t\t$update = \" update ingredientes set \"\n\t\t.\" cantingrediente = ? \"\n\t\t.\" where \"\n\t\t.\" codingrediente = ?;\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($update);\n\t\t$stmt->bindParam(1, $cantidadracion);\n\t\t$stmt->bindParam(2, $codingrediente);\n\n\t\t$cantventa = strip_tags(base64_decode($_GET[\"cantventa\"]));\n\t\t$racion = rount($cantracion*$cantventa,2);\n\t\t$cantidadracion = rount($cantingrediente+$racion,2);\n\t\t$stmt->execute();\n\n\n\t\t }\n\n}\n################### FIN DE CONSULTO LA TABLA PARA VERIFICAR SI EXISTEN PRODUCTOS ###################\n\n\n#################### AQUI AGREGAMOS EL INGRESO A ARQUEO DE CAJA ####################\n\tif (base64_decode($_GET[\"tipopagove\"])==\"CONTADO\"){\n\n\t\t$sql4 = \"select * from ventas where codventa = ? \";\n\t\t$stmt = $this->dbh->prepare($sql4);\n\t\t$stmt->execute( array(strip_tags($_GET[\"codventa\"])) );\n\t\t$num = $stmt->rowCount();\n\n\t\t\tif($roww = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$paea[] = $roww;\n\t\t\t}\n\t\t$totaldb = $roww[\"totalpago\"];\n\n\t\t$sql = \"select ingresos from arqueocaja where codcaja = '\".strip_tags($_GET[\"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\tif (isset($row['ingresos'])) { $ingreso = $row['ingresos']; } else { $ingreso ='0.00'; }\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 = rount($ingreso-$totaldb,2);\n\t\t$codcaja = strip_tags($_GET[\"codcaja\"]);\n\t\t$stmt->execute();\n\t}\n#################### AQUI AGREGAMOS EL INGRESO A ARQUEO DE CAJA ####################\n\n#################### AQUI ACTUALIZAMOS EL STATUS DE MESA ####################\n\t\t$sql = \" update mesas set \"\n\t\t.\" statusmesa = ? \"\n\t\t.\" where \"\n\t\t.\" codmesa = ?;\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $statusmesa);\n\t\t$stmt->bindParam(2, $codmesa);\n\n\t\t$statusmesa = strip_tags('0');\n\t\t$codmesa = base64_decode($_GET[\"codmesa\"]);\n\t\t$stmt->execute();\n#################### AQUI ACTUALIZAMOS EL STATUS DE MESA ####################\n\n\t\t$sql = \" delete from ventas where codventa = ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1,$codventa);\n\t\t$codventa = strip_tags($_GET[\"codventa\"]);\n\t\t$stmt->execute();\n\n\t\t$sql = \" delete from detalleventas where coddetalleventa = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1,$coddetalleventa);\n\t\t$coddetalleventa = base64_decode($_GET[\"coddetalleventa\"]);\n\t\t$stmt->execute();\n\n\techo \"<div class='alert alert-info'>\";\n\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\techo \"<center><span class='fa fa-check-square-o'></span> EL DETALLE DE VENTA DE PRODUCTO FUE ELIMINADO EXITOSAMENTE </center>\";\n\techo \"</div>\";\n\texit;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\techo \"<div class='alert alert-info'>\";\n\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\techo \"<center><span class='fa fa-check-square-o'></span> USTED NO PUEDE ELIMINAR DETALLES EN VENTAS, NO ERES EL ADMINISTRADOR DEL SISTEMA</center>\";\n\techo \"</div>\";\n\texit;\n\t\t}\n\t}", "public function postEliminarcfamiliar(){\n $cfamiliar=Cuadrofamiliar::find(Input::get('id'));\n $id=$cfamiliar->user->id;\n CuadroFamiliar::destroy(Input::get('id'));\n return $this->recargarFormularios('users.psico.inicio.vermas.formularios.step-22',$id);\n }", "public function softdelete(){\n $articulo = Articulo::find(2);\n $articulo->delete();\n return\"enviado a la papeleria de reciclaje\";\n \n }", "public function destroy(documento $documento)\n {\n //\n }", "function delete_commun($id_img)\r\n\t{\r\n\t\tglobal $nuked, $user, $language, $rep_comun, $niveau_upload, $galerie_adm, $nb_quotas;\r\n\r\n\t\t$sql = mysql_query(\"SELECT fichier FROM \".ESPACE_MEMBRE_COMMUN_TABLE.\" WHERE id = '\" . $id_img . \"' \");\r\n\t\tlist($fichier) = mysql_fetch_array($sql);\r\n\r\n\t\t$img = $rep_comun.$fichier;\r\n\techo $id_img;\r\n\t\t$del=mysql_query(\"DELETE FROM \".ESPACE_MEMBRE_COMMUN_TABLE.\" WHERE id='\".$id_img.\"' \");\r\n\t\t@unlink($img);\r\n\t\techo\"\t<div style=\\\"text-align: center;\\\"><br /><br /><b>\"._IMGDELETE.\"</b><br /><br /></div>\";\r\n\r\n\t\tredirect(\"index.php?file=Espace_membre\",3);\r\n\t}", "public function deleteAction()\n {\n if ( $this->getRequest()->getParam('id') > 0) {\n try {\n $traineedoc = Mage::getModel('bs_traineedoc/traineedoc');\n $traineedoc->setId($this->getRequest()->getParam('id'))->delete();\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('bs_traineedoc')->__('Trainee Document was successfully deleted.')\n );\n $this->_redirect('*/*/');\n return;\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_traineedoc')->__('There was an error deleting trainee document.')\n );\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n Mage::logException($e);\n return;\n }\n }\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_traineedoc')->__('Could not find trainee document to delete.')\n );\n $this->_redirect('*/*/');\n }", "public function remove($document)\n {\n $visited = array();\n $this->doRemove($document, $visited);\n }", "function eliminarPresupuesto(){\n\t\t$this->procedimiento='pre.ft_presupuesto_ime';\n\t\t$this->transaccion='PRE_PRE_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_presupuesto','id_presupuesto','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function filecabinet_document_delete($node) {\n $files = db_query(\"SELECT DISTINCT afid FROM {org_documents} WHERE nid = %d\", $node->nid);\n // Then delete the document node\n db_query(\"DELETE FROM {org_documents} WHERE nid = %d\", $node->nid);\n // delete and doclinks that exist\n db_query(\"DELETE FROM {org_doclinks} WHERE dnid = %d\", $node->nid);\n // Now delete the files if they are not used\n module_load_include('inc', 'filecabinet', 'filecabinet_file');\n while ($file = db_fetch_object($files)) {\n filecabinet_delete_file($file->afid);\n }\n}", "public function destroy($id){$userLogin = Auth::user();\n $docente = pdg_dcn_docenteModel::where(\"id_gen_usuario\",\"=\",$userLogin->id)->first();\n $idDocente = $docente->id_pdg_dcn; \n $skillEliminar = rel_ski_dcn_skill_docenteModel::where(\"id_cat_ski\",\"=\",$id)->where(\"id_pdg_dcn\",\"=\",$idDocente)->first();\n rel_ski_dcn_skill_docenteModel::destroy($skillEliminar->id_rel_ski_dcn);\n Session::flash('message','Se eliminó la habilidad correctamente de su perfil!');\n Session::flash('apartado','5');\n return Redirect::to('DashboardPerfilDocente'); \n \n }", "public function destroy(Request $request)\n {\n $Documentos_Adjuntos = new Documentos_Adjuntos;\n $val= $Documentos_Adjuntos::where(\"id_doc_adj\",\"=\",$request['id_doc_adj'] )->first();\n if(count($val)>=1)\n {\n $val->delete();\n }\n return \"destroy \".$request['id_doc_adj'];\n }", "public function delete($objet);", "function deleteDocument($userSpace){\n unlink(\"$userSpace/friends.txt\");\n if ( $handle = opendir( \"$userSpace/files\" ) ) {\n while ( false !== ( $item = readdir( $handle ) ) ) {\n if ( $item != \".\" && $item != \"..\" ) {\n if( unlink( \"$userSpace/files/$item\" ) ) echo \"delete the file successfully:$userSpace/$item \\n\"; \n }\n }\n closedir( $handle );\n rmdir(\"$userSpace/files\");\n if( rmdir( $userSpace ) ) echo \"delete Directory successfully: $userSpace \\n\";\n }\n }", "function delete_usager() {\r\n\t\t\t\r\n\t\tglobal $LEA_REP;\r\n\t\t\t\r\n\t\t$this->set_detail();\r\n\t\t\t\r\n\t\tif($this->profil == 'app') {\r\n\t\t\t$apprenti = new Apprenti($this->id_usager);\r\n\t\t\t$apprenti->set_detail();\r\n\t\t\t$apprenti->delete_parent();\r\n\t\t\t$apprenti->delete_documents_apprenti();\r\n\r\n\t\t}\r\n\t\t\t\r\n\t\t// suppression de fichiers joints avec les message de cet usager\r\n\r\n\t\t$sql = \"SELECT fichier_joint\r\n\t\t\t\tFROM\tles_messages\r\n\t\t\t WHERE id_usager = '$this->id_usager'\"; \t\t\t \r\n\r\n\t\t$result = $this->bdd->executer($sql);\r\n\t\t\t\r\n\t\twhile($ligne = mysql_fetch_assoc($result)) {\r\n\r\n\t\t\tif(file_exists($LEA_REP.'documents/fichiers_joints_msg/'.$ligne['fichier_joint']))\r\n\t\t\t@unlink($LEA_REP.'documents/fichiers_joints_msg/'.$ligne['fichier_joint']);\r\n\r\n\t\t}\r\n\t\t\t\r\n\t\t// suppression de son images d'accueil\r\n\r\n\t\t$sql = \"SELECT img_accueil\r\n\t\t\t\tFROM\tles_usagers\r\n\t\t\t WHERE id_usager = '$this->id_usager'\"; \t\t\t \r\n\r\n\t\t$result = $this->bdd->executer($sql);\r\n\t\t\t\r\n\t\tif($ligne = mysql_fetch_assoc($result)) {\r\n\r\n\t\t\tif(file_exists($LEA_REP.'images/img_accueil/'.$ligne['img_accueil']))\r\n\t\t\t@unlink($LEA_REP.'images/img_accueil/'.$ligne['img_accueil']);\r\n\r\n\t\t}\r\n\t\t\t\r\n\t\t// suppression de ses documents partagés\r\n\r\n\t\t$sql = \"SELECT id_espace_partage, nom_fichier , lien_id_espace\r\n\t\t\t\tFROM\tespace_partage\r\n\t\t\t WHERE \tid_auteur_espace_partage = '$this->id_usager'\"; \t\t\t \r\n\r\n\t\t$result = $this->bdd->executer($sql);\r\n\t\t\t\r\n\t\twhile($ligne = mysql_fetch_assoc($result)) {\r\n\r\n\t\t\t$fichier = $ligne['lien_id_espace'].'_'.$ligne['id_espace_partage'].'_'.$ligne['nom_fichier'];\r\n\r\n\t\t\tif(file_exists($LEA_REP.'espace_de_partage/fichiers/'.$fichier))\r\n\t\t\t@unlink($LEA_REP.'espace_de_partage/fichiers/'.$fichier);\r\n\r\n\t\t}\r\n\t\t\t\r\n\t\t// suppression de l'usager\r\n\t\t$sql = \"DELETE FROM les_usagers where id_usager='$this->id_usager'\";\r\n\t\t$result = $this->bdd->executer($sql);\r\n\r\n\t}", "function delete_document_process()\n\t{\n\t\t$this->load->model('document_model');\n\t\treturn $this->document_model->delete_document_process();\t\n\t\t\n\t}", "public function index_delete(){\n\t\t\n\t\t}", "function deleteFile($db, $strDetailID = \"\")\n{\n global $words;\n $bolNewData = true;\n if ($strDetailID != \"\") {\n $strSQL = \"SELECT * FROM hrd_training_request \";\n $strSQL .= \"WHERE id = '$strDetailID' \";\n $resDb = $db->execute($strSQL);\n if ($rowDb = $db->fetchrow($resDb)) {\n $strFile = $rowDb['doc'];\n if ($strFile != \"\") {\n if (file_exists(\"trainingdoc/\" . $strFile)) {\n unlink(\"trainingdoc/\" . $strFile);\n }\n $strSQL = \"UPDATE hrd_training_request SET doc = '' WHERE id = '$strDetailID' \";\n $resExec = $db->execute($strSQL);\n //writeLog(ACTIVITY_DELETE, MODULE_PAYROLL,\"file $strDetailID\",0);\n }\n }\n }\n return true;\n}", "public function Excluir(){\n $idMotorista = $_GET['id'];\n\n $motorista = new Motorista();\n\n $motorista->id = $idMotorista;\n\n $motorista::Delete($motorista);\n\n\n }", "public function EliminarMediosPagos()\n\t\t{\n\n\t\t\t$sql = \" select codmediopago from ventas where codmediopago = ? \";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->execute( array(base64_decode($_GET[\"codmediopago\"])) );\n\t\t\t$num = $stmt->rowCount();\n\t\t\tif($num == 0)\n\t\t\t{\n\n\t\t\t\t$sql = \" delete from mediospagos where codmediopago = ? \";\n\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t$stmt->bindParam(1,$codmediopago);\n\t\t\t\t$codmediopago = base64_decode($_GET[\"codmediopago\"]);\n\t\t\t\t$stmt->execute();\n\n\t\t\t\theader(\"Location: mediospagos?mesage=1\");\n\t\t\t\texit;\n\n\t\t\t}else {\n\n\t\t\t\theader(\"Location: mediospagos?mesage=2\");\n\t\t\t\texit;\n\t\t\t}\n\n\t\t}", "public function deleteSeguimiento(Request $request){\n $this->validate($request,['id' => 'required']);\n $id = $request->input('id');\n $seguimiento = Seguimiento::find($id);\n if($seguimiento != null){\n $file = storage_path('recursos/seguimientos/'.$seguimiento->foto);\n unlink($file);\n $seguimiento->delete();\n }\n\n return response()->json([\n 'status' => 'ok',\n 'code' => 200,\n 'result' => 'Se elimino el seguimiento'\n ],200)\n ->header('Access-Control-Allow-Origin','*')\n ->header('Content-Type', 'application/json');\n }", "function delete() {\n\t\t$sql = \"DELETE FROM cost_detail\n\t\t\t\tWHERE cd_fr_id=?, cd_seq=?\";\n\t\t$this->ffm->query($sql, array($this->cd_fr_id, $this->cd_seq));\n\t}", "public static function eliminar(){\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n $cita = Cita::find($_POST['id']);\n $cita->eliminar();\n header('Location:' . $_SERVER['HTTP_REFERER']);\n }\n }", "function\tdel_student($login)\n{\n $c = new MongoClient();\n $db = $c->mydb;\n $collection = $c->mydb->selectCollection('student');\n $user = $collection->findOne(array(\"login\" => $login));\n if (!isset($user))\n {\n echo \"\\nL'utilisateur \".$login.\" n'existe pas dans la base de donnees !\\n\\n\";\n return (0);\n }\n else\n {\n echo \"\\nEtes-vous sur de vouloir supprimer l'utilisateur \".$login.\" ?\\n\";\n $cmdline = fopen(\"php://stdin\", \"r\");\n echo \"> \";\n $ent = fgets($cmdline);\n preg_match(\"/^.*$/\", $ent, $rep);\n if ($rep[0] == \"oui\")\n\t{\n\t $collection->remove(array(\"login\" => $login));\n\t echo \"L'utilisateur \".$login.\" a ete supprime !\\n\\n\";\n\t return (0);\n\t}\n else if ($rep[0] == \"non\")\n\t{\n\t echo \"L'utilisateur \".$login.\" n'as pas ete supprime !\\n\\n\";\n\t return (0);\n\t}\n else if ($rep[0] == \"exit\" || $rep[0] == \"quit\")\n\t{\n\t echo \"Bye !\\n\\n\";\n\t return (0);\n\t}\n else\n\t{\n\t echo \"'oui' ou 'non' ?\\n\";\n\t del_student($login);\n\t}\n }\n}", "public function Removedocument(Request $request)\n {\n $lead_id = $request->input('lead_id');\n $leadDetails = LeadDetails::find($lead_id);\n $value = $request->input('value');\n //\t\t$comments=$leadDetails->comments;\n LeadDetails::where('_id', new ObjectId($lead_id))->pull('comments', ['docId' => $value]);\n //\t\tforeach($comments as $comment){\n //\t\t $dicid=$comment['docId'];\n //\t\t if($dicid == $value ){\n // LeadDetails::where('_id', new ObjectId($lead_id))->pull('$comment');\n // }\n // }\n //\t\t$leads = $leadDetails['dispatchDetails']['documentDetails'];\n //\t\tforeach ($leads as $count => $reply) {\n //\t\t\tif ($reply['id'] == $value) {\n //\t\t\t\tLeadDetails::where('_id',\n //\t\t\t\t\tnew ObjectId($lead_id))->update(array('dispatchDetails.documentDetails.' . $count . '.DocumentCurrentStatus' => 11));\n //\t\t\t}\n //\t\t}\n $leadDetails->save();\n return response()->json(['status' => 'go_recep']);\n }", "function eliminarUcedifobracivil(){\n\t\t$this->procedimiento='snx.ft_ucedifobracivil_ime';\n\t\t$this->transaccion='SNX_UDOC_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_ucedifobracivil','id_ucedifobracivil','int4');\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 excluir()\n {\n $pdo = new \\PDO(DSN, USER, PASSWD);\n //cria sql\n $sql = \"DELETE FROM EquipeDiscipulos WHERE discipuloId = ?\n AND equipeId = ?\n \";\n\n //prepara sql\n $stm = $pdo->prepare($sql);\n //trocar valores\n $stm->bindParam(1, $this->discipuloId );\n $stm->bindParam(2, $this->equipeId );\n\n $resposta = $stm->execute();\n\n $erro = $stm->errorInfo();\n\n //fechar conexão\n $pdo = null ;\n\n return $resposta;\n\n }", "public function desArchivar(Request $request, $id){\n $documento = Documento::findOrFail($id);\n //ASIGNA A UNA VARIABLE EL DEPARTAMENTO DEL USUARIO EN SESION\n $depto_user = Auth::user()->departamento_id;\n \n //ACTUALIZA EL DOCUMENTO CON LOS DATOS DEL ULTIMO REGISTO DEL DOCUMENTO PARA SACARLO DEL ARCHIVADOR DIGITAL\n ActualizarDocumento::dispatch($documento, 1, $documento->origen, $documento->destino, $documento->destino_actual);\n\n CrearDocumento::dispatch($documento, $depto_user, 1, $depto_user, $depto_user, \"El documento ha sido desarchivado\");\n\n $documento->archivador_id = null;\n $documento->save();\n\n }", "public function eliminar()\n\t{\n\t\t$idestado = $_POST['idestado'];\n\t\t//en viamos por parametro el id del estado a eliminar\n\t\tEstado::delete($idestado);\n\t}", "public function eliminaReserva($cod) {\n // 1ro actualizamos la existencia de los productos adicionando lo que no se ha vendido\n $modelocantidad = $this->db->query(\"SELECT p.modelo,(d.cantidad+p.existencia) as existencia FROM producto p,detalle_venta d WHERE p.modelo LIKE d.modelo AND d.cod_venta LIKE '\" . $cod . \"';\")->result_array(); //obtenemos los datos del detalle\n if (sizeof($modelocantidad) > 0) {\n //actualizamos la existencia en producto\n $this->db->update_batch('producto', $modelocantidad, 'modelo');\n if ($this->db->affected_rows() > 0) {\n //3ro eliminamos el detalle de venta de la venta\n $this->db->query(\"delete from detalle_venta where cod_venta like '\" . $cod . \"'\");\n if ($this->db->affected_rows() > 0) {\n //eliminamos los datos de la venta\n $this->db->query(\"delete from venta where cod_venta like '\" . $cod . \"'\");\n if ($this->db->affected_rows() > 0) {\n return \"Exito! Se ha eliminado la reserva de\"; //el nombre se muestra en jquery\n } else {\n return \"Error: No se ha eliminado la reserva de\";\n }\n } else {\n return \"Error: No se ha eliminado el Detalle de la venta de\";\n }\n } else {\n return \"Error: No se ha actualizado la existencia de productos\";\n }\n } else {\n return \"No se tiene registro del detalle de la venta de\";\n }\n }", "public function delete($producto);", "function eliminar()\n{\n\t$sql=\"delete FROM slc_unid_medida WHERE id_unid_medida ='$this->cod'\";\n\t\t$result=mysql_query($sql,$this->conexion);\n\t\tif ($result) \n\t\t\t return true;\n\t\telse\n\t\t\t return false;\n\t\n}", "function __safeDeleteDocument() {\n\t\ttry {\n\t\t\t$this->solr->deleteById($this->__createDocId());\n\t\t\t$this->solr->commit();\n\t\t\t$this->solr->optimize();\t\n\t\t} catch (Exception $e) {\n\t\t\t$this->log($e, 'solr');\n\t\t}\n\t}", "public function destroy(Request $request, $id)\n {\n $request->session()->flash('success', 'Le doc à été Supprimé !');\n\n $doc = Document::find($id);\n \n File::delete(\"doc/\" . $doc->fichier);\n \n\n $doc->delete();\n\n return redirect()->route(\"document.index\");\n }", "function Delete($id_fichero,$inmueble)\n { \n\t\t// Consulta para obtener el nombre de la fichero\n\t\t$sql_atribs=\"SELECT * FROM ficheros_inmuebles WHERE inmueble=\".$inmueble.\" AND id_fichero=\".$id_fichero;\n\t\t$atribs = $this->Execute($sql_atribs) or die($this->ErrorMsg());\n\t\t$num_atribs = $atribs->RecordCount();\n\t\t$atrib = $atribs->FetchRow();\n\t\t// Finalmente borra la ficherografía\n\t\t$sql = sprintf(\"DELETE FROM ficheros_inmuebles WHERE inmueble=%s AND id_fichero=%s\",\n\t\t\t\t\t\t\tGetSQLValueString($inmueble, \"int\"),\n\t\t\t\t\t\t\tGetSQLValueString($id_fichero, \"int\"));\n\t\t$this->Execute($sql) or die($this->ErrorMsg());\n\t\t// Según el tipo de fichero se borrará de una determinada carpeta\n\t\tswitch($atrib['tipo_fichero'])\n\t\t{\n\t\t\tcase '1': $nombre_carpeta=\"adjuntos\"; break;\n\t\t\tcase '2': $nombre_carpeta=\"fotos\"; break;\n\t\t\tcase '3': $nombre_carpeta=\"planos\"; break;\n\t\t\tcase '4': $nombre_carpeta=\"videos\"; break;\n\t\t\tcase '5': $nombre_carpeta=\"cert_energetica\"; break;\n\t\t}\n\t\t// Borramos la ficheros asociadas\n\t\t$path_fichero=PATHINCLUDE_FRAMEWORK_DOC . \"inmuebles/inmueble_\".$inmueble.\"/\".$nombre_carpeta.\"/\".$atrib['fichero'];\n\t\tunlink($path_fichero);\n }", "public function excluir()\n {\n $pdo = new \\PDO(DSN, USER, PASSWD);\n //cria sql\n $sql = \"DELETE FROM EncontroComDeus WHERE id = ?\n \";\n\n //prepara sql\n $stm = $pdo->prepare($sql);\n //trocar valores\n $stm->bindParam(1, $this->id );\n\n $resposta = $stm->execute();\n\n $erro = $stm->errorInfo();\n\n //fechar conexão\n $pdo = null ;\n\n return $resposta;\n\n }", "public function delete($calendario);" ]
[ "0.729089", "0.72153956", "0.7120464", "0.71196914", "0.69624954", "0.67365086", "0.6674209", "0.66175514", "0.6564739", "0.6556674", "0.64762866", "0.6462488", "0.6450921", "0.64143425", "0.63967955", "0.6368484", "0.6366306", "0.6340594", "0.6310784", "0.62826693", "0.62801844", "0.6266964", "0.62640005", "0.6259468", "0.6254803", "0.6246251", "0.6230744", "0.6205607", "0.6204358", "0.62008", "0.6197187", "0.6196936", "0.6187013", "0.6186658", "0.61853343", "0.6179964", "0.6174053", "0.61684865", "0.61618024", "0.6161638", "0.6153306", "0.6153056", "0.61502546", "0.6134363", "0.6103463", "0.6099107", "0.60856265", "0.6085461", "0.6077813", "0.60768425", "0.60683304", "0.6067365", "0.60672444", "0.60626405", "0.60582", "0.6054777", "0.6036988", "0.6024192", "0.6022716", "0.6022223", "0.6015572", "0.600555", "0.60046655", "0.59948236", "0.59903985", "0.59858507", "0.5963431", "0.59631383", "0.596227", "0.59549785", "0.5954541", "0.5944077", "0.59435433", "0.59434074", "0.594322", "0.5940933", "0.5938104", "0.59369975", "0.5932855", "0.5930412", "0.5929566", "0.5929099", "0.5921278", "0.5914473", "0.59115064", "0.5911115", "0.5908139", "0.59080356", "0.5907122", "0.5899375", "0.5895854", "0.5895255", "0.5892855", "0.5891938", "0.589093", "0.58895993", "0.5886681", "0.5884957", "0.58767486", "0.58764577", "0.58756953" ]
0.0
-1
Tries authorization with credentials.
public function authorize($silent = false, &$body = [], &$headers = []) { return $this->isPremium ? $this->premiumAuthorization($silent) : $this->legacyAuthorization($body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function login()\n {\n if (!isset($_SERVER['PHP_AUTH_USER']) || !$this->isAdmin()) {\n header('WWW-Authenticate: Basic realm=\"My Realm\"');\n header('HTTP/1.0 401 Unauthorized');\n exit;\n }\n }", "public function authorize() {\n\t\ttry {\n\t\t\t$authenticationStatus = $this->OAuth2Lib->checkUserCredentials(\n\t\t\t\t\t\t\t\t\t\t$this->data['client_id'], \n\t\t\t\t\t\t\t\t\t\t$this->data['username'], \n\t\t\t\t\t\t\t\t\t\t$this->data['password']\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\n\t\t\t$this->OAuth2Lib->finishClientAuthorization(\n\t\t\t\t(boolean) $authenticationStatus,\n\t\t\t\tarray(\n\t\t\t\t\t'response_type' => $this->data['response_type'],\n\t\t\t\t\t'client_id' => $this->data['client_id'],\n\t\t\t\t\t'redirect_uri' => $this->data['redirect_uri'],\n\t\t\t\t\t'state' => $this->data['state'],\n\t\t\t\t\t'scope' => $this->data['scope'],\n\t\t\t\t\t'username' => $this->data['username']\n\t\t\t\t)\n\t\t\t);\n\t\t} catch(Exception $e) {\n\t\t\t$this->fail($e);\n\t\t}\n\t}", "abstract protected function auth();", "public function doAuthentication();", "function check_auth() {\n global $conf;\n if ($_SERVER['PHP_AUTH_USER'] !== $conf['username'] && $_SERVER['PHP_AUTH_PW'] !== $conf['password']) {\n header('WWW-Authenticate: Basic realm=\"CMS\"');\n header('HTTP/1.0 401 Unauthorized');\n print 'Could not authorise.';\n die();\n }\n}", "private function authenticate()\n {\n $this->client->authenticate($this->token, null, Client::AUTH_HTTP_TOKEN);\n }", "abstract public function authorize();", "abstract public function authorize();", "private function _getAuth()\n {\n if (!isset($_SERVER['PHP_AUTH_USER'])) {\n header('WWW-Authenticate: Basic realm=\"My Realm\"');\n header('HTTP/1.0 401 Unauthorized');\n echo 'Sorry this action is not allowed for you';\n return false;\n } else {\n \n if ($_SERVER['PHP_AUTH_USER'] == 'testUser' && $_SERVER['PHP_AUTH_PW'] == 'testPassword') {\n return true;\n }\n \n return false;\n \n }\n }", "public function auth ()\n {\n $params = ['grant_type'=>'client_credentials'];\n $headers = ['Authorization' => 'Basic ' . base64_encode($this->_client_id.':'.$this->_client_secret)];\n $this->_request(Request::AUTH_URL, CurlClient::POST, $params, $headers);\n $token = Arr::get ($this->_body, 'access_token');\n $this->token($token);\n return ( ! empty ($token));\n }", "function auth() {\n header('WWW-Authenticate: Basic realm=\"Citations\"');\n header('HTTP/1.0 401 Unauthorized');\n print 'authorisation required';\n exit;\n }", "private function auth()\n {\n if (!$this->username)\n {\n throw new PhpOpenSIPsException(\"Missing username\");\n }\n \n if (!$this->password)\n {\n throw new PhpOpenSIPsException(\"Missing password\");\n }\n \n // realm\n $result = array();\n if (!preg_match('/^Proxy-Authenticate: .* realm=\"(.*)\"/imU',$this->response, $result))\n {\n throw new PhpOpenSIPsException(\"Can't find realm in proxy-auth\");\n }\n \n $realm = $result[1];\n \n // nonce\n $result = array();\n if (!preg_match('/^Proxy-Authenticate: .* nonce=\"(.*)\"/imU',$this->response, $result))\n {\n throw new PhpOpenSIPsException(\"Can't find nonce in proxy-auth\");\n }\n \n $nonce = $result[1];\n \n $ha1 = md5($this->username.':'.$realm.':'.$this->password);\n $ha2 = md5($this->method.':'.$this->uri);\n \n $res = md5($ha1.':'.$nonce.':'.$ha2);\n \n $this->auth = 'Proxy-Authorization: Digest username=\"'.$this->username.'\", realm=\"'.$realm.'\", nonce=\"'.$nonce.'\", uri=\"'.$this->uri.'\", response=\"'.$res.'\", algorithm=MD5';\n }", "public function checkAuthentication() {}", "public function login()\n\t{\n\n\t\tif ( ( $this->get_access_key() === null || $this->get_access_secret() === null ) )\n\t\t{\n echo 'case 1';\n $oauth = new \\OAuth( $this->tokens['consumer_key'], $this->tokens['consumer_secret'] );\n\n $request_token_info = $oauth->getRequestToken( $this->request_token_url, $this->get_callback() );\n\n if ($request_token_info)\n {\n\n $this->set_request_tokens( $request_token_info );\n }\n\n // Now we have the temp credentials, let's get the real ones.\n\n // Now let's get the OAuth token\n\t\t\t\\Response::redirect( $this->get_auth_url() );\n return;\n\t\t}\n\n\t\treturn $this->check_login();\n\t}", "function authenticate() {}", "public function call()\n {\n $req = $this->app->request();\n $res = $this->app->response();\n $authUser = $req->headers('PHP_AUTH_USER');\n $authPass = $req->headers('PHP_AUTH_PW');\n $dbUserAuthenticated = false;\n if ($authUser && $authPass){\n \t$stmt = $this->db->prepare('SELECT * FROM user WHERE username=:username AND password=:password;');\n \t$stmt->bindValue(':username', $authUser);\n \t$stmt->bindValue(':password', $authPass);\n\t\t\t$result = $stmt->execute();\n\t\t\tif($row = $result->fetchArray()){\n\t\t\t\t$dbUserAuthenticated = true;\n\t\t\t}\n }\n \n if ($authUser && $authPass && $dbUserAuthenticated) {\n $this->next->call();\n } \n else {\n \t//Statuscode 403 statt 401 zurückliefern, damit Browser kein Auth Fenster öffnet\n $res->setStatus(403);\n //Auth Header nicht setzen, da Statuscode sonst irgendwie auf 401 geändert wird\n //$res->header('WWW-Authenticate', sprintf('Basic realm=\"%s\"', $this->realm));\n }\n }", "public function checkAccess()\n {\n if (!$this->isAuthenticated()) {\n header('HTTP/1.1 401 Unauthorized');\n exit();\n }\n }", "protected function loginIfRequested() {}", "public function invoke()\n {\n try {\n $this->authenticationManager->authenticate();\n } catch (\\Doctrine\\ORM\\EntityNotFoundException $exception) {\n throw new \\TYPO3\\Flow\\Security\\Exception\\AuthenticationRequiredException('Could not authenticate. Looks like a broken session.', 1358971444, $exception);\n } catch (\\TYPO3\\Flow\\Security\\Exception\\NoTokensAuthenticatedException $noTokensAuthenticatedException) {\n // We still need to check if the resource is available to \"Everybody\".\n try {\n $this->accessDecisionManager->decideOnJoinPoint($this->joinPoint);\n return;\n } catch (\\TYPO3\\Flow\\Security\\Exception\\AccessDeniedException $accessDeniedException) {\n throw $noTokensAuthenticatedException;\n }\n }\n $this->accessDecisionManager->decideOnJoinPoint($this->joinPoint);\n }", "public function authenticate() {}", "public function authenticate()\n {\n if (!isset($_SERVER['PHP_AUTH_DIGEST']) || empty($_SERVER['PHP_AUTH_DIGEST'])) {\n\t\t\t//error_log(\"...\".$_SERVER['PHP_AUTH_DIGEST'].\"...\");\n\t\t\terror_log(\"Not Authorized\");\n\t\t\t$e = new Exception('Authentication required.', self::ERROR_DIGEST_MISSING, null);\n $this->handleError($e);\n }\n \n $data = $this->_parseDigest();\n\t\t\n\t\tif (!$data) {\n\t\t\t$e = new Exception('Invalid authorization digest.', self::ERROR_DIGEST_INVALID, null);\n $this->handleError($e); \n }\n\t\tif ($data['username']==\"anonymous\" || $data['username']==\"\") {\n\t\t\tZend_Registry::set('userID', -1);\n\t\t\treturn true;\n\t\t} else if (strpos($data['username'],\"uuid_\")===0) {\n\t\t\tZend_Registry::set('userID', $data['username']);\n\t\t\treturn true;\n\t\t}\n // Make sure the user exists.\n \n $knownUserData = mysql_query(\"SELECT * FROM `accounts` WHERE `username`='\".mysql_real_escape_string($data['username']).\"' OR `email`='\".mysql_real_escape_string($data['username']).\"'\") or die(mysql_error());\n //if (!isset($this->_users[$data['username']])) {\n if (mysql_num_rows($knownUserData)!==1) { \n\t\t\t$e = new Exception('Invalid credentials', self::ERROR_CREDENTIALS_INVALID, null);\n throw $e;\n }\n\t\t\n\t\t$knownUserData = mysql_fetch_assoc($knownUserData);\n\t\t// Save the username so we can use it for access control checks\n // in other scripts.\n Zend_Registry::set('username', $data['username']);\n \n // Generate the server response.\n $password = $knownUserData['lastKnownPassword']; //$this->_users[$data['username']];\n\t\tZend_Registry::set('userID', $knownUserData['userID']);\n\t\tZend_Registry::set('userIDEncrypted', $knownUserData['userIDEncrypted']);\n\t\t//check password & username against thinklg.com data\n\t\t\n\t\t\n $HA1 = md5($data['username'] . ':' . self::AUTH_REALM . ':' . $password);\n\t\t$HA2 = md5($_SERVER['REQUEST_METHOD'] . ':' . $data['uri']);\n\t\t$valid_response = md5(\n $HA1 // hash 1\n . ':' // separator\n . $data['nonce'] // nonce\n . ':' // separator\n . $data['nc'] // nonce count \n . ':' // separator\n . $data['cnonce'] // client nonce\n . ':' // separator\n . $data['qop'] // quality of protection\n . ':' // separator\n . $HA2 // hash 2\n );\n // Compare the server response to the client response.\n if ( $data['response'] != $valid_response ) {\n // The username is ok, but the password is wrong.\n $e = new Exception('Invalid credentials.', self::ERROR_CREDENTIALS_INVALID, null);\n throw $e;\n }\n }", "private function authenticate()\n {\n $this->_validator->setCredentials($this->_user, $this->_pass);\n if ($this->_validator->authenticate()) {\n $this->_accepted = true;\n }\n }", "private function authCredUser(){\n\t\t\n\t\t// UC 3 1: User wants to authenticate with saved credentials\n\t\t\t// - System authenticates the user and presents that the authentication succeeded and that it happened with saved credentials\n\t\t$inpName = $this->view->getInputName(true);\t\n\t\t$inpPass = $this->view->getInputPassword(true);\n\n\t\t$answer = $this->model->loginCredentialsUser($inpName, $inpPass, $this->view->getServerInfo());\n\t\t\n\t\tif($answer == null){\n\t\t\t$this->view->showLogin(false);\n\t\t\t\n\t\t} else if($answer == true){\t\t\n\t\t\t$this->view->storeMessage(\"Inloggning lyckades via cookies\");\n\t\t\treturn $this->view->showLogin(true);\n\t\t} else {\t\t\n\t\t\t// 2a. The user could not be authenticated (too old credentials > 30 days) (Wrong credentials) Manipulated credentials.\n\t\t\t\t// 1. System presents error message\n\t\t\t\t// Step 2 in UC 1\t\t\t\t\n\t\t\t$this->view->removeCredentials();\n\t\t\t$this->view->storeMessage(\"Felaktig eller föråldrad information i cookie\");\n\t\t\treturn $this->view->showLogin(false);\n\t\t}\n\t}", "private function _checkAuth()\n { if(!(isset($_SERVER['HTTP_X_USERNAME']) and isset($_SERVER['HTTP_X_PASSWORD']))) {\n // Error: Unauthorized\n $this->_sendResponse(401);\n }\n $username = $_SERVER['HTTP_X_USERNAME'];\n $password = $_SERVER['HTTP_X_PASSWORD'];\n // Find the user\n $user=User::model()->find('LOWER(username)=?',array(strtolower($username)));\n if($user===null) {\n // Error: Unauthorized\n $this->_sendResponse(401, 'Error: User Name is invalid');\n } else if(!$user->validatePassword($password)) {\n // Error: Unauthorized\n $this->_sendResponse(401, 'Error: User Password is invalid');\n }\n }", "public function authUser(){\n if(!isset($this->sessionBool) || empty($this->sessionBool)){\n die($this->alerts->ACCESS_DENIED);\n }else{\n if(!$this->sessionBool){\n die($this->alerts->ACCESS_DENIED);\n }\n } \n }", "public function authenticate(){\n $user = $_SERVER['PHP_AUTH_USER'];\n $pass = $_SERVER['PHP_AUTH_PW'];\n\n if(!empty($user) && $this->api_config['allowed_users'][$user] === $pass){\n return True;\n }\n return False;\n }", "public function authenticate();", "public function authenticate();", "public function authenticate();", "private function auth()\n {\n if (!$this->username)\n {\n throw new PhpSIPException(\"Missing username\");\n }\n \n if (!$this->password)\n {\n throw new PhpSIPException(\"Missing password\");\n }\n \n // realm\n $result = [];\n if (!preg_match('/^Proxy-Authenticate: .* realm=\"(.*)\"/imU',$this->response, $result))\n {\n throw new PhpSIPException(\"Can't find realm in proxy-auth\");\n }\n \n $realm = $result[1];\n \n // nonce\n $result = [];\n if (!preg_match('/^Proxy-Authenticate: .* nonce=\"(.*)\"/imU',$this->response, $result))\n {\n throw new PhpSIPException(\"Can't find nonce in proxy-auth\");\n }\n \n $nonce = $result[1];\n \n $ha1 = md5($this->username.':'.$realm.':'.$this->password);\n $ha2 = md5($this->method.':'.$this->uri);\n \n $res = md5($ha1.':'.$nonce.':'.$ha2);\n \n $this->auth = 'Proxy-Authorization: Digest username=\"'.$this->username.'\", realm=\"'.$realm.'\", nonce=\"'.$nonce.'\", uri=\"'.$this->uri.'\", response=\"'.$res.'\", algorithm=MD5';\n }", "function authenticate() {\n //this would be for hard-coded username/password, sometimes useful if you \n //don't have a database\n //echo $_SERVER[\"PHP_AUTH_USER\"] . \"<BR>\";\n if ((isset($_SERVER[\"PHP_AUTH_USER\"]) && ($_SERVER['PHP_AUTH_USER'] == 'client') &&\n isset($_SERVER['PHP_AUTH_PW']) && ($_SERVER[\"PHP_AUTH_PW\"] == 'secret'))) {\n header('HTTP/1.0 200 OK'); //all is good!\n } else {\n -\n //don't let them in!\n header('WWW-Authenticate: Basic realm=\"Test Authentication System\"');\n header('HTTP/1.0 401 Unauthorized');\n echo \"You must enter a valid login ID and password to access this resource\\n\";\n }\n exit; //stop execution of the program so we don't get any more errors\n}", "public function authenticate()\n {\n \t$reports = $this->getEntityManager()->getRepository('Application\\Entity\\Report');\n \t$report = $reports->findOneBy(array(\n \t\t'password' => md5($this->password),\n \t\t'campaign' => $this->id,\n \t));\n \t\n \tif($report){\n \t\treturn new Result(Result::SUCCESS, 53);\n \t} else {\n \t\treturn new Result(Result::FAILURE_CREDENTIAL_INVALID, 53);\n \t}\n }", "public function invoke()\n {\n $this->authenticationManager->authenticate();\n }", "public function authenticateCredential()\n {\n $sessionToken = $this->login();\n $this->credential->setSessionToken($sessionToken);\n }", "public function authorize()\n {\n return auth();\n }", "abstract public function credentials();", "public function auth()\n {\n\n if (Auth::attempt(['email' => $this->request->header('email'), 'password' => $this->request->header('password')])) {\n $this->user = Auth::user();\n\n } else {\n echo json_encode(['error' => 'Unauthorised']);\n die();\n }\n }", "public function checkAuth();", "public function checkAuth();", "function auth(){\n\t\t//TODO auth implementieren\n\t\treturn true;\n\t}", "private function _checkAuth()\n {\n // check login or not\n if (!$this->getUser()->isAuthenticated()) {\n $this->redirect('login');\n }\n }", "private function _secureBackend()\n\t{\n\t\tif (!$this->_isAuthenticated()) {\n\t\t\theader(\"HTTP/1.1 401 Unauthorized\");\n\t\t\texit();\n\t\t}\n\t}", "function req_auth($realm = 'Secret Realm') {\n\theader('WWW-Authenticate: Basic realm=\"'.$realm.'\"');\n\theader('HTTP/1.1 401 Unauthorized');\n\tprint '<h1>Error 401: Authorization Required</h1>';\n\texit;\n}", "public static function authenticate(): void\n {\n $headers = getallheaders();\n $token = $headers['Authorization'] ?? null;\n\n if ($token === null\n || !self::validate($token)\n ) {\n header('Not authorized', true, 403);\n exit;\n }\n }", "function authorize()\n {\n try {\n $authRequest = $this->heimdall->validateAuth();\n $authRequest->setUser(new UserEntity());\n $this->heimdall->completeAuth($authRequest);\n } catch (Exception $exception) {\n $this->heimdall->handleException($exception);\n }\n }", "public function authorize();", "public function authorize();", "public function use_authentication()\n {\n }", "private function checkUserAuthenticated () {\n if (empty($this->userIdentifier)) {\n #yes 403 - 401 is not appropriate for X509 authentication\n $this->exceptionWithResponseCode(403,\n \"You need to be authenticated to access this resource. \" .\n \"Please provide a valid IGTF X509 Certificate\"\n );\n }\n }", "public function authorize(){\n $token = $this->retrieveToken(); $this->setToken($token);\n }", "private function authenticate()\n {\n self::assertValidAuthType();\n\n $this->client\n ->getEmitter()\n ->attach(new $this->authenticators[$this->authType]($this));\n }", "function authorise() {\n\t\tif ( ! isset($_SESSION['oauth2_params'])) {\n\t\t\tthrow new Exception('Missing auth parameters');\n\t\t}\n\n\t\t$params = unserialize($_SESSION['oauth2_params']);\n\n\t\t// TODO L('ME')\n\t\t// Check the user is signed in\n\t\tif ( ! isset($params['user_id']) ) {\n\t\t\t// $app->redirect('/oauth.php/signin');\n\t\t\tURI::redirect('!oauth/provider2/signin');\n\t\t}\n\n\t\t// 可配置自动授权\n\t\t$client_id = $params['client_id'];\n\t\tforeach (Config::get('oauth.consumers') as $consumer) {\n\t\t\tif ( $consumer['key'] == $client_id && $consumer['auto_authorise'] ) {\n\n\t\t\t\t$authCode = $this->server->newAuthoriseRequest('user', $params['user_id'], $params);\n\n\t\t\t\t$redirect_uri = OAuth2\\Util\\RedirectUri::make($params['redirect_uri'], array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'code' => $authCode,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'state'\t=> $params['state']\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\t\tURI::redirect($redirect_uri);\n\t\t\t}\n\t\t}\n\n\t\t// 否则需手动授权\n\t\t// If the user approves the client then generate an authoriztion code\n\t\tif (isset($_POST['approve'])) { // TODO fix this auto authorise\n\n\t\t\t$authCode = $this->server->newAuthoriseRequest('user', $params['user_id'], $params);\n\n\t\t\t// Generate the redirect URI\n\t\t\t$redirect_uri = OAuth2\\Util\\RedirectUri::make($params['redirect_uri'], array(\n\t\t\t\t\t\t\t\t\t\t\t\t 'code' => $authCode,\n\t\t\t\t\t\t\t\t\t\t\t\t 'state'\t=> $params['state']\n\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\tURI::redirect($redirect_uri);\n\t\t}\n\t\t// The user denied the request so send them back to the client with an error\n\t\telseif (isset($_POST['deny']))\n\t\t{\n\t\t\t// echo '<p>The user denied the request and so would be redirected back to the client...</p>';\n\t\t\t$redirect_uri = OAuth2\\Util\\RedirectUri::make($params['redirect_uri'], array(\n\t\t\t\t\t\t\t\t\t\t\t\t 'error' => 'access_denied',\n\t\t\t\t\t\t\t\t\t\t\t\t // 'error_message' => $this->server::getExceptionMessage('access_denied'),\n\t\t\t\t\t\t\t\t\t\t\t\t 'error_message' => \\OAuth2\\AuthServer::getExceptionMessage('access_denied'),\n\t\t\t\t\t\t\t\t\t\t\t\t 'state'\t=> $params['state']\n\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\tURI::redirect($redirect_uri);\n\t\t}\n\t\telse {\n\t// GET\n\t?>\n\n\t<h1>Authorise <?php echo $params['client_details']['name']; ?></h1>\n\n\t<p>\n\t\tThe application <strong><?php echo $params['client_details']['name']; ?></strong> would like permission to access your:\n\t</p>\n\n\t<ul>\n\t\t<?php foreach ($params['scopes'] as $scope): ?>\n\t\t\t<li>\n\t\t\t\t<?php echo $scope['name']; ?>\n\t\t\t</li>\n\t\t<?php endforeach; ?>\n\t</ul>\n\n\t<p>\n\t\t<form method=\"post\" style=\"display:inline\">\n\t\t\t<input type=\"submit\" name=\"approve\" id=\"approve\" value=\"Approve\">\n\t\t</form>\n\n\t\t<form method=\"post\" style=\"display:inline\">\n\t\t\t<input type=\"submit\" name=\"deny\" id=\"deny\" value=\"Deny\">\n\t\t</form>\n\t</p>\n\n\t<?php\n\t\t // TODO 由于此处是自定义 view, 输出完就 die 以防 layout view 污染\n\t\t die;\n\n\t\t }\n\t}", "function checkAuthorized() {\n\t if (AUTHORIZED === true) {\n\t \t// authorized\n\t } else {\n\t \theader('HTTP/1.0 401 Unauthorized');\n\t \techo 'failed authorization';\n\t \texit(401);\n\t } \n }", "protected function authorization()\n {\n $this->gate();\n\n FlowDash::auth(function ($request) {\n return app()->environment('local') ||\n Gate::check('viewFlowDash', [$request->user()]);\n });\n }", "final public function perform() {\n try {\n $this->checkSecurity();\n }\n catch (Exception $e) {\n $ppal = WebSession::getInstance()->getPrincipal();\n $username = $ppal->getName();\n\n $message = \"User is not authorized - Authentication Error\";\n $info = $ppal->isAnonymous() ? \"Anonymous user\" : '';\n\n $logger = Logger::getLogger(\"auth\");\n $logger->info(\"{$_SERVER['SERVER_ADDR']}|{$_SERVER['REMOTE_ADDR']}|\".LOG_APP_NAME.\"|LOGIN|114|{$message}|{$username}||||{$info}\");\n\n //Throw exception to continue with predefined workflow\n throw $e;\n }\n\n try {\n \t $retVal = $this->performImpl(); \n \n $this->logActionOK($this->getAction4Logger());\n\n return $retVal; \n } catch (Exception $e) {\n $this->logActionERROR($this->getAction4Logger(), $e);\n\n throw $e;\n }\n }", "public function authenticate()\n {\n $core = Zend_Controller_Front::getInstance()->getParam(\"bootstrap\")->getResource(\"core\");\n /* @var $response Adsolut_Http_Response */\n $response = $core->get($this->endpoint, \n array(\n 'email' => $this->username,\n 'password' => $this->password));\n $result = Zend_Auth_Result::FAILURE;\n if (!$response->hasErrors()) {\n $result = Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND;\n $data = $response->getData();\n if (!empty($data)) {\n $result = Zend_Auth_Result::SUCCESS;\n }\n } \n return new Zend_Auth_Result($result, $response->getData());\n }", "public function canManageCredentials()\n {\n return true;\n }", "public function OAuthAuthenticate()\n {\n throw new Exception( \"OAuthAuthenticate Not yet implemented\" );\n \n// $response = Auth1::legs(2)\n// ->set( 'key', $this->OAuthConsumerKey )\n// ->set( 'secret', $this->OAuthConsumerSecret )\n// ->request( $this->OAuthRequestURI );\n }", "private function authenticate() {\n\t\t//we do not need a session, so we don't need to have unnused db-entries in session db\n\t\tsession_destroy();\n\n\t\t$token = FormUtil::getPassedValue('token', null, 'GETPOST');\n\t\t$addr = $_SERVER['REMOTE_ADDR'];\n\n\t\tif($token == $this->getVar('Authtoken') && $this->getVar('Authtoken') != null && ($addr == $this->getVar('AllowedHost') || $this->getVar('AllowedHost') == '*')) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\techo 'You are a hacker, right?';\n\t\t\texit();\n\t\t}\n\t}", "public function authorize()\n {\n return $this->container['auth']->check();\n }", "private function checkAuth()\n {\n $this->isAuthenticated = false;\n $isLoggedIn = is_user_logged_in();\n\n if ($isLoggedIn) {\n $this->username = wp_get_current_user()->user_login;\n $id = wp_get_current_user()->ID;\n $meta = get_user_meta($id, 'wp_capabilities', false);\n foreach ($meta[0] as $key => $value) {\n $k = strtoupper($key);\n if (($k == $this->PluginRole) or\n ($k == $this->AdminRole)) {\n $this->isAuthenticated = true;\n }\n }\n }\n }", "function http_require_auth() {\n\theader('WWW-Authenticate: Basic realm=\"HTTP Authentication System\"');\n\theader('HTTP/1.0 401 Unauthorized');\n\techo \"You must enter a valid login ID and password to access this resource\\n\";\n\texit;\n}", "public function authentication()\n {\n }", "public function authenticate() {\n }", "public function testCorrectCredentialsLogin()\n {\n $this->browse( function( Browser $browser ){\n $browser->visit( '/admin' );\n $browser->type( 'email', 'admin@example.com' );\n $browser->type( 'password', 'password' );\n $browser->click( '.button.is-primary' );\n $browser->waitFor( 'header' );\n $browser->assertSee( 'Dashboard' );\n });\n }", "protected function protect()\n {\n header('HTTP/1.1 401 Unauthorized');\n\n switch ($this->type) {\n default:\n case self::AUTH_BASIC:\n header('WWW-Authenticate: Basic realm=\"' . $this->realm . '\"');\n break;\n case self::AUTH_DIGEST:\n header(\n 'WWW-Authenticate: Digest realm=\"' . $this->realm .\n '\", qop=\"auth\", nonce=\"' . md5(uniqid()) . '\", opaque=\"' . md5(uniqid()) . '\"'\n );\n break;\n }\n }", "public function testAuthenticationServiceAuthenticate()\n {\n $response = self::$av->authenticate(self::$credentials);\n $this->assertFalse($response->hasError);\n\n $this->assertNotEmpty($response->reply->getAccessToken());\n self::$accessToken = $response->reply->getAccessToken();\n }", "public function auth() {\n \n // state 1 requires a GET variable to exist\n if($this->state == 1 && !isset($_GET['oauth_verifier'])) {\n $this->state = 0;\n }\n\n // Step 1: Get a request token\n if($this->state == 0) {\n return $this->getRequestToken();\n }\n\n // Step 2: Get an access token\n elseif($this->state == 1) {\n return $this->getAccessToken();\n }\n\n // Step 3: Verify the access token\n return $this->verifyAccessToken();\n }", "function unauthorized($realm = 'PHPRestSQL') {\n header('WWW-Authenticate: Basic realm=\"'.$realm.'\"');\n header('HTTP/1.0 401 Unauthorized');\n }", "function test_authourization_fun( $vars ){\r\n\r\n if (isset($_GET['user']) && $_GET['user']){\r\n $_SERVER[\"PHP_AUTH_USER\"] = $_GET['user'];\r\n }else{\r\n $_SERVER[\"PHP_AUTH_USER\"] = 'NOUSER';\r\n }\r\n if (isset($_GET['pw']) && $_GET['pw']){\r\n $_SERVER[\"PHP_AUTH_PW\"] = $_GET['pw'];\r\n }else{\r\n $_SERVER[\"PHP_AUTH_PW\"] = 'ERRORPASSWORD';\r\n }\r\n}", "function authorize() {\n if (!$this->auth_required()) {\n return TRUE; //we are authorized as authorization is not required\n }\n else {\n $microservice_users_file = $this->location . '/microservice_users.xml';\n $microservice_users_xml = simplexml_load_file($microservice_users_file);\n if (empty($microservice_users_xml)) {\n $this->log->lwrite(\"Could not load microservices user file\", 'SOAP_SERVER', NULL, NULL, 'INFO');\n return FALSE;\n }\n $users = $microservice_users_xml->xpath(\"//user\");\n if (empty($users)) {\n $this->log->lwrite(\"No Users found in microserices user file\", 'SOAP_SERVER', NULL, NULL, 'INFO');\n return FALSE;\n }\n foreach ($users as $user) {\n if (strcmp($_SERVER['PHP_AUTH_USER'], $user['username']) == 0 && strcmp($_SERVER['PHP_AUTH_PW'], $user['password']) == 0) {\n return TRUE;\n }\n }\n }\n return FALSE;\n }", "function authenticate()\n {\n $endpoint = $this->endpoints['authenticate'];\n return $this->sendRequest($endpoint['method'], $endpoint['uri']);\n }", "public function authenticate()\n {\n $response = $this->client->write(\n sprintf('/auth/userpass/login/%s', $this->username),\n ['password' => $this->password]\n );\n\n return $response->getAuth();\n }", "public function authenticate(ICredential $credential);", "public function authenticationReqd(){\n\t\theader('HTTP/1.0 401 Unauthorized');\n\t\t$this['app']['hologram']->setModule(\"WWW\")->log(\\Bakery\\Utilities\\Hologram::NORMAL, \"Response: Page requires authentication\");\r\n\t\t\n\t\t$_SESSION['redirect_to'] = $this['request']['uri'];\n\t\t\n\t\tif($this->isJson()){\n\n\t\t\treturn array(\"response\" => \"authentication required\");\n\t\t\t\n\t\t}\n\t\t\n\t\theader(\"Location: {$this['app']['security.login']['handler']}\");\n\t\t\n\t}", "private function isCorrectCredentials ()\n {\n\n try {\n $this->httpClient->request (\"GET\", \"http://livescore-api.com/api-client/users/pair.json?key=\" . $this->apiKey . \"&secret=\" . $this->apiSecret);\n } catch (ClientException $e) {\n $response = json_decode ((string) $e->getResponse ()->getBody (), true);\n\n throw new WrongAPICredentialsException($response['error'], $e->getResponse ()->getStatusCode ());\n }\n }", "public function authenticate()\n {\n $allowOverride = $this->shardServiceManager->getAllowOverride();\n $this->shardServiceManager->setAllowOverride(true);\n\n $sysUser = new User;\n $sysUser->addRole('sys::authenticate');\n $this->shardServiceManager->setService('user', $sysUser);\n \n $this->doctrineAdapter->setIdentity($this->identity);\n $this->doctrineAdapter->setCredential($this->credential);\n $result = $this->doctrineAdapter->authenticate();\n \n if ($result->isValid()) {\n $this->shardServiceManager->setService('user', $result->getIdentity());\n } else {\n $sysUser->removeRole('sys::authenticate');\n }\n $this->shardServiceManager->setAllowOverride($allowOverride);\n \n return $result;\n }", "protected function _login()\n\t{\n\t\t// Is user previously authenticated?\n\t\tif ($this->auth->logged_in())\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\t//Get username and password\n\t\telseif (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']))\n\t\t{\n\t\t\t$username = filter_var($_SERVER['PHP_AUTH_USER'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_HIGH | FILTER_FLAG_ENCODE_LOW);\n\t\t\t$password = filter_var($_SERVER['PHP_AUTH_PW'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_HIGH | FILTER_FLAG_ENCODE_LOW);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif ($this->auth->login($username, $password))\n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception $e)\n\t\t\t{\n\t\t\t}\n\t\t\t\n\t\t\t// Return access denied\n\t\t\t$this->rest_error(401);\n\t\t}\n\n\t\t// Fail with a 401 if we admin=1\n\t\t// Bit of a hack but I haven't got a better way to handle it\n\t\tif (!empty($_GET['admin'])) $this->rest_error(401);\n\t\t\n\t\t// No auth details passed - return FALSE (not logged in)\n\t\treturn FALSE;\n\t}", "private function authWWW()\n {\n if (!$this->username)\n {\n throw new PhpOpenSIPsException(\"Missing auth username\");\n }\n \n if (!$this->password)\n {\n throw new PhpOpenSIPsException(\"Missing auth password\");\n }\n \n $qop_present = false;\n if (strpos($this->response,'qop=') !== false)\n {\n $qop_present = true;\n \n // we can only do qop=\"auth\"\n if (strpos($this->response,'qop=\"auth\"') === false)\n {\n throw new PhpOpenSIPsException('Only qop=\"auth\" digest authentication supported.');\n }\n }\n \n // realm\n $result = array();\n if (!preg_match('/^WWW-Authenticate: .* realm=\"(.*)\"/imU',$this->response, $result))\n {\n throw new PhpOpenSIPsException(\"Can't find realm in www-auth\");\n }\n \n $realm = $result[1];\n \n // nonce\n $result = array();\n if (!preg_match('/^WWW-Authenticate: .* nonce=\"(.*)\"/imU',$this->response, $result))\n {\n throw new PhpOpenSIPsException(\"Can't find nonce in www-auth\");\n }\n \n $nonce = $result[1];\n \n $ha1 = md5($this->username.':'.$realm.':'.$this->password);\n $ha2 = md5($this->method.':'.$this->uri);\n \n if ($qop_present)\n {\n $cnonce = md5(time());\n \n $res = md5($ha1.':'.$nonce.':00000001:'.$cnonce.':auth:'.$ha2);\n }\n else\n {\n $res = md5($ha1.':'.$nonce.':'.$ha2);\n }\n \n $this->auth = 'Authorization: Digest username=\"'.$this->username.'\", realm=\"'.$realm.'\", nonce=\"'.$nonce.'\", uri=\"'.$this->uri.'\", response=\"'.$res.'\", algorithm=MD5';\n \n if ($qop_present)\n {\n $this->auth.= ', qop=\"auth\", nc=\"00000001\", cnonce=\"'.$cnonce.'\"';\n }\n }", "public function authorize(): bool\n {\n return auth('api')->check();\n }", "public function authorize(): bool\n {\n return auth('api')->check();\n }", "private function _prompt_login($user_id = 0)\n {\n header('WWW-Authenticate: Basic realm=\"'.$user_id.'\"');\n header('HTTP/1.0 401 Unauthorized');\n }", "public function authenticate()\n {\n return $this->auth_system();\n }", "function auth_required() {\n $authinconfig = $this->config->taverna->needAuth;\n if (strcasecmp($authinconfig, 'false') == 0) {\n return FALSE; //no authorization required so we are authorized\n }\n return TRUE;\n }", "public function authenticate() { return false; }", "abstract public function getCredentials();", "public function authenticate()\n\t{\n\t\t$this->errorCode==self::ERROR_NONE;\n\t}", "public function attempt(Credentials $credentials): bool\n {\n }", "public function authenticating($credentials)\n\t{\n\t\t$user \t= $this->model->key($credentials['key'])->first();\n\n\t\tif(!$user)\n\t\t{\n\t\t\tthrow new Exception(\"Key tidak terdaftar!\", 1);\n\t\t}\n\n\t\tif(!Hash::check($credentials['secret'], $user->secret))\n\t\t{\n\t\t\tthrow new Exception(\"secret Tidak Cocok!\", 1);\n\t\t}\n\n\t\treturn true;\n\t}", "private function clientLogin() {\r\n $apikey = $this->input->server('PHP_AUTH_USER');\r\n $apisecret = $this->input->server('PHP_AUTH_PW');\r\n\r\n if (strlen(trim($apikey)) < 2 || strlen(trim($apisecret)) < 2) {\r\n throw new Exception('', 401000);\r\n }\r\n return $this->apiv1_core->clientLogin($apikey, $apisecret);\r\n }", "public function authorize() {\n\t\t$authorization = false;\n\t\t// Clickjacking prevention (supported by IE8+, FF3.6.9+, Opera10.5+, Safari4+, Chrome 4.1.249.1042+)\n\t\t$this->OAuth->setVariable('auth_code_lifetime', 60);\n\t\t$this->response->header('X-Frame-Options: DENY');\n\t\ttry {\n\t\t\t$OAuthParams = $this->OAuth->getAuthorizeParams();\n\t\t} catch (Exception $e){\n\t\t\t$e->sendHttpResponse();\n\t\t}\n\t\tif (!empty($OAuthParams)) {\n\t\t\t$clientCredencials = $this->OAuth->checkClientCredentials($OAuthParams['client_id']);\n\t\t\tlist($redirectUri, $authorization) = $this->OAuth->getAuthResult($clientCredencials, $clientCredencials['user_id'], $OAuthParams);\n\t\t\tif (!empty($authorization['query']['code'])) {\n\t\t\t\t$authorization = $authorization['query'];\n\t\t\t}\n\t\t}\n\n\t\t$this->set(array('authorization' => $authorization, '_serialize' => 'authorization'));\n\t}", "protected function checkCredentials() {\n $client = \\Drupal::service('akamai.edgegridclient');\n if ($client->isAuthorized()) {\n drupal_set_message('Authenticated to Akamai.');\n }\n else {\n drupal_set_message('Akamai authentication failed.', 'error');\n }\n }", "public function authenticate()\n {\n $user = Proxy_users::get()->auth($this->username, $this->password);\n if (!$user) {\n return new Result(Result::FAILURE, null, array(\"The username or password you have entered is incorrect.\"));\n }\n return new Result(Result::SUCCESS, $user->user_id);\n }", "public function authenticate_credentials($work_order_objects) {\r\n\t\trequire_once (DOCROOT . '/include/ConnectPHP/Connect_init.phph');\r\n\t\t$result = -1;\r\n\t\ttry{\r\n\t\t\t$first_work_order = $work_order_objects[0];\r\n\t\t\t$AgentLogin = $first_work_order->getUsername();\r\n\t\t\t$AgentPassword = $first_work_order->getPassword();\r\n\t\t\t\r\n\t\t\tif(!isset($AgentLogin) || trim($AgentLogin)===''){\r\n\t\t\t\tforeach ($work_order_objects as $wo){\r\n\t\t\t\t\t$wo->setResponseStatus('failed');\r\n\t\t\t\t\t$wo->setResponseDescription('Authentication Failed');\r\n\t\t\t\t}\r\n\t\t\t$this->logAuthFailure(\"Login failed due to empty/null username.\");\r\n\t\t\treturn ($result);\r\n\t\t\t}\r\n\r\n\t\t\tinitConnectAPI($AgentLogin, $AgentPassword, null, \"RightNow\\Connect\\v1_2\\ConnectAPI::AuthOptTransient\");\r\n\t\t\t\r\n\t\t\t$queryString = \"SELECT Account FROM Account WHERE Login = '\" . $AgentLogin .\"' limit 1\";\r\n\t\t\t$res = RightNow\\Connect\\v1_2\\ROQL::queryObject($queryString)->next();\r\n\t\t\twhile($acc = $res->next()){\r\n\t\t\t\t$result = $acc->ID;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\r\n\t\t\t$isIPValid = $this->validateIPAddress($ip, $this->isIPv6($ip));\r\n\t\t\tif(!$isIPValid){\r\n\t\t\t\tforeach ($work_order_objects as $wo){\r\n\t\t\t\t\t$wo->setResponseStatus('failed');\r\n\t\t\t\t\t$wo->setResponseDescription('Authentication Failed');\r\n\t\t\t\t}\r\n\t\t\t\t$this->logAuthFailure(\"Invalid IP detected : \" . $ip);\r\n\t\t\t\treturn (-1);\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t//Setting up log\t\t\t\r\n\t\t\t$log = ToaLogService::GetLog();\r\n\t\t\t\r\n\t\t\tif($log != null){\r\n\t\t\t\t$log->debug(\"Login successful !\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn ($result);\r\n\t\t}\r\n\t\tcatch(RightNow\\Connect\\v1_2\\ConnectAPIError $err){\r\n\t\t\tforeach ($work_order_objects as $wo){\r\n\t\t\t\t$wo->setResponseStatus('failed');\r\n\t\t\t\t$wo->setResponseDescription('Authentication Failed');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->logAuthFailure(\"Login failed ! \");\r\n\t\t\treturn ($result); \r\n\t\t}\r\n\t}", "public function authorize()\n {\n if (!auth()->check()) {\n return false;\n }\n return true;\n }", "protected function loginAuthenticate(){\n\n\t\t\n\t}", "public function checkAuthorizationData() {\n \n $config = Mage::getModel('storesms/config');\n \n if ($config->isApiEnabled()==0) return;\n \n try {\n $creditsXML = Mage::getModel('storesms/apiClient')->getCredits();\n $ExceptionMessage = $creditsXML->requestError->serviceException->messageId;\n\n if ($ExceptionMessage=='UNAUTHORIZED') {\n throw new Exception(Mage::helper('storesms')->__($config::WRONG_AUTH_DATA));\n }\n else {\n Mage::getSingleton('core/session')->addSuccess(Mage::helper('storesms')->__('Success. Logged into Storesms API.'));\n }\n\n }\n catch (Exception $e) {\n Mage::getSingleton('core/session')->addError($e->getMessage());\n }\n \n }", "public function authenticate()\n {\n $urlAccessToken = Client::BASE_URL.'/v1/token';\n\n // we are using a very simple password grant AdForm\n // doesn't event return a Refresh Token AF\n $provider = new GenericProvider([\n 'clientId' => '',\n 'clientSecret' => '',\n 'redirectUri' => '',\n 'urlAuthorize' => '',\n 'urlAccessToken' => $urlAccessToken,\n 'urlResourceOwnerDetails' => ''\n ]);\n\n try {\n $this->accessToken = $provider->getAccessToken('password', [\n 'username' => $this->username,\n 'password' => $this->password\n ]);\n } catch (IdentityProviderException $e) {\n throw OauthException::connect($e->getMessage());\n }\n }", "private function _login() {\n if( !$this->_connection->getCookieJar()->getCookie( $this->_baseUrl,\n 'auth_tkt', Zend_Http_CookieJar::COOKIE_OBJECT ) ) {\n $this->_connection->setUri( $this->_baseUrl . self::URL_LOGIN );\n $this->_connection->setParameterPost( array(\n 'login_username' => $this->_username,\n 'login_password' => $this->_password,\n 'back' => $this->_baseUrl,\n 'login' => 'Log In' ) );\n $this->_doRequest( Zend_Http_Client::POST );\n if( !$this->_connection->getCookieJar()->getCookie( $this->_baseUrl,\n 'auth_tkt', Zend_Http_CookieJar::COOKIE_OBJECT ) ) {\n throw new Opsview_Remote_Exception( 'Login failed for unknown reason' );\n }\n }\n }", "protected function authorize() {\r\n\t\t$authurl = $this->tmhOAuth->url(\"oauth/authorize\", '') . \"?oauth_token={$_SESSION['oauth']['oauth_token']}\";\r\n\t\theader(\"Location: \".$authurl);\r\n\t\texit;\r\n\r\n\t\t// in case the redirect doesn't fire\r\n\t\t$this->addMsg('<p>To complete the OAuth flow please visit URL: <a href=\"' . $authurl . '\">' . $authurl . '</a></p>');\r\n\t}", "public static function checkCredentials()\n {\n if (null === self::username() || null === self::password()) {\n echo self::errorMessage();\n die(1);\n }\n\n return true;\n }" ]
[ "0.6820848", "0.67551017", "0.666207", "0.66199404", "0.6556706", "0.6487349", "0.6484759", "0.6484759", "0.6413065", "0.64033663", "0.6400007", "0.6399531", "0.6389186", "0.63559395", "0.63464046", "0.6320477", "0.6302735", "0.6290169", "0.62706876", "0.6269093", "0.6250835", "0.6248367", "0.62453586", "0.6218484", "0.62028176", "0.6185497", "0.6179009", "0.6179009", "0.6179009", "0.6177024", "0.6154329", "0.61504203", "0.614906", "0.61195683", "0.61175627", "0.6117299", "0.61053103", "0.6102938", "0.6102938", "0.6090342", "0.606582", "0.6064198", "0.6060049", "0.6052856", "0.60386264", "0.6031232", "0.6031232", "0.6011057", "0.5999647", "0.5985838", "0.59847015", "0.5982169", "0.5977234", "0.59690666", "0.596766", "0.5965806", "0.5964448", "0.59596986", "0.59471464", "0.5946613", "0.5943909", "0.5942847", "0.5941304", "0.5930243", "0.5925943", "0.5912636", "0.591055", "0.58954114", "0.5876387", "0.58738726", "0.587155", "0.5862602", "0.5859627", "0.584314", "0.5835065", "0.5829428", "0.58234423", "0.58182555", "0.5817505", "0.58160836", "0.58160836", "0.58149946", "0.58122784", "0.5809316", "0.58029145", "0.5802767", "0.5799666", "0.5799648", "0.57995534", "0.579096", "0.5782789", "0.57783985", "0.57771724", "0.5773832", "0.5770886", "0.5770721", "0.57697904", "0.5766187", "0.57646525", "0.5763579", "0.57616514" ]
0.0
-1
open database connection for class
function __construct(){ $this->con = new db_connect('', '', '', ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function openConn() {\n $database = new Database();\n $this->conn = $database->getConnection();\n }", "protected function openConn()\n {\n $database = new Database();\n $this->conn = $database->getConnection();\n }", "private function open_db() {\n\n\t\t//var_dump($this->connection); exit;\n\n\t\t\n\n\t}", "private function openDb() {\n if(!$this->db) {\n $this->db = new Db();\n }\n }", "public function open_db_connection() {\n $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n // cgecking if the connection has errors\n if($this->connection->connect_errno) {\n die(\"Database connection failed\" . $this->connection->connect_error);\n }\n }", "public static function open_db_connection(){\r\n self::$connection = new mysqli(DB_SERVER, DB_USER, DB_PASS, DB_NAME);\r\n\t\t}", "public function __construct(){\n $this->open_db();\n }", "private function openDatabaseConnection()\n {\n\n // set the (optional) options of the PDO connection. in this case, we set the fetch mode to\n // \"objects\", which means all results will be objects, like this: $result->user_name !\n // For example, fetch mode FETCH_ASSOC would return results like this: $result[\"user_name] !\n // @see http://www.php.net/manual/en/pdostatement.fetch.php\n $options = array(\\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_OBJ, \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_WARNING);\n\n // generate a database connection, using the PDO connector\n // @see http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/\n $this->db = new \\PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=' . DB_CHARSET, DB_USER, DB_PASS, $options);\n }", "public static function connect() {\n $databaseConfig = Config::getDatabase();\n $databaseClass = $databaseConfig['class'];\n $databaseFile = SRC.'lib/db/databases/'.$databaseClass.'.php';\n if (!file_exists($databaseFile)) {\n throw new SynopsyException(\"Database class file '$databaseFile' doesn't exist!\");\n }\n require_once($databaseFile);\n $c = \"\\Synopsy\\Db\\Databases\\\\$databaseClass\";\n self::$instance = new $c();\n if (!self::$instance instanceof DatabaseInterface) {\n throw new SynopsyException(\"Database class '$databaseClass' doesn't implement DatabaseInterface interface!\");\n }\t\n self::$instance->connect($databaseConfig);\n }", "public function connectToDB() {}", "function __construct(){\n $this->open_db_connection();\n }", "public function open_db_connection() {\n //$this->connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n //the more \"object oriented\" way of doing this is this next line:\n $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n if( $this->connection->connect_errno ) {\n die(\"Database connection failed badly\" . $this->connection->connect_error);\n }\n\n }", "function __construct() {\n $this->open_db_connection();\n }", "private function open_connection(){\n\t\t$this -> conn = new mysqli(self::$SERVER, self::$USER, self::$PASS, $this -> DATABASE);\n\t}", "function __construct() {\n $this->open_db_connection();\n }", "function __construct(){\r\n\t\t\t$this->open_db_connection();\r\n\t\t}", "public function open_db_connection(){\n\n // refer to this class connection -> procedural way\n // $this->connection = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n // refer to this class connection -> oriented way\n $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n // when error occurs during attempt of database connection\n // if(mysqli_connect_errno()){\n\n // when error occurs during attempt of database connection\n // using connect_errno is a build in function from mysqli\n if($this->connection->connect_errno){ \n // exit with message and error\n // using connect_errno is a build in function from mysqli\n die(\"Database connection failed badly!\" . $this->connection->connect_error);\n }\n }", "function __construct(){\n //call open connection\n $this->open_db_connection();\n\n }", "public function openConnection() {\n $this->connection = new mysqli($this->host, $this->username, $this->password, $this->database);\n\n if ($this->connection->connect_error) {\n die(\"Error: \" . $this->connection->connect_error);\n }\n }", "public function open_db_connection()\n\t{\n\n\t\t$this->connection = new mysqli(DB_HOST,DB_USER,\n\t\t\tDB_PASS,DB_NAME);\n\n\t\tif ($this->connection->connect_errno):\n\t\t\tdie('database connection failed badly' . $this->connection->connect_error);\n\t\tendif;\n\n\t}", "function __construct(){\n\t\t$this->open_db_connection();\n\t}", "private function openConnection() {\n $this->db = new PDO(\"mysql:host=127.0.0.1;dbname=mvc\", \"gert\", \"becode\");\n }", "public function connectDB() {}", "public function connect_db() {\n }", "public function openConnection() {\n if($this->database != null) return;\n\n $config = $this->getDatabaseConfig();\n\n try {\n $this->database = new \\PDO(\n 'mysql:dbname=' . $config['database'] . ';host=' . $config['host'] . ':' . $config['port'],\n $config['username'],\n $config['password'],\n [\n \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION,\n \\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_ASSOC\n ]\n );\n } catch(\\PDOException $exception) {\n die('Connection to mysql-server failed: ' . $exception->getMessage());\n }\n }", "private function open_db_connection(){\n $this->connection = new mysqli(DB_HOST,DB_USER,DB_PASS,DB_NAME) \n or\n die(\"database connection failed\" . $this->connection->connect_error);\n \n }", "public function openConnection() {\n\t\t$this->connection = new mysqli($this->host, $this->username, $this->password, $this->database);\n\n\t\tif ($this->connection->connect_error) {\n\t\t\tdie(\"<p>Error:\" . $this->connection->connect_error . \"</p>\");\n\t\t}\n\t }", "private function databaseConnection()\n {\n // Les connexions sont établies en créant des instances de la classe de base de PDO\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS, $options);\n }", "function _getConnection()\n {\n $this->_con = Pluf::db();\n }", "private function openDatabaseConnection()\n {\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS, $options);\n\n //UTF-8 encoding queries\n $this->db->exec(\"SET NAMES 'utf8'\");\n $this->db->exec(\"SET CHARACTER SET utf8\");\n $this->db->exec(\"SET COLLATION_CONNECTION='utf8_unicode_ci'\");\n }", "private function dbConnect(){\n $database=new \\Database();\n return $database->getConnection();\n }", "function DBClass()\n {\n // Load settings from parent class\n $settings = DatabaseSettings::getSettings();\n \n // Get the main settings from the array we just loaded\n $host = $settings['dbhost'];\n $name = $settings['dbname'];\n $user = $settings['dbusername'];\n $pass = $settings['dbpassword'];\n \n // Connect to the database\n $this->link = new mysqli($host, $user, $pass, $name);\n }", "function __construct(){\n $this->open_connection();\n }", "private function connectToDB()\n {\n $this->handler = new DBConnect();\n $this->handler = $this->handler->startConnection();\n }", "public function open()\n {\n $this->conexion= mysqli_connect(\"localhost:3306\",\"root\") or die (msql_error());\n mysqli_select_db($this->conexion, 'alsaplane') or die (msql_error());\n }", "private function openconnection(){\r\n $options = array(\r\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\r\n PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING\r\n\r\n // PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\r\n // PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\r\n // PDO::ATTR_EMULATE_PREPARES => false,\r\n );\r\n try{\r\n $this->db = new PDO('mysql' . ':host=' . DBHOST . DBPORT . ';dbname=' . DBNAME.';charset='.CHARSET, DBUSER, DBPASS, $options);\r\n } catch (Exception $e) {\r\n throw new Exception($e->getMessage(), (int)$e->getCode());\r\n }\r\n }", "private function connectDB()\n\t{\n\t\t$this->db = ECash::getMasterDb();\n\t\t\n\t//\t$this->dbconn = $this->db->getConnection();\n\t}", "public function open_connection() {\n try{\n \t\t$conn_string = \"mysql:host=\" . DB_SERVER . \";dbname=\" . DB_NAME . \";charset=utf8\";\n \t\t$this->connection = new PDO($conn_string, DB_USER, DB_PASS);\n \t\t$this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n \t} catch (PDOException $e) {\n \t\techo \"Connection failed: \" . $e->getMessage();\n \t}\n }", "function establish_connection() {\n\t \t\tself::$db = Registry()->db = SqlFactory::factory(Config()->DSN);\n\t \t\tself::$has_update_blob = method_exists(self::$db, 'UpdateBlob');\n\t\t\treturn self::$db;\n\t\t}", "function Open(){\n\t\t$this->con = pg_connect($this->strCon);\n\t}", "private function openConnection()\n\t{\n if (!($this->link = mysql_connect($this->host, $this->user, $this->pass))){\n throw new DatabaseExceptions(302);\n }\n\n $db_selected = mysql_select_db($this->db, $this->link);\n if (!$db_selected) {\n throw new DatabaseExceptions(303);\n }\n\n\t}", "public function open_connection()\n {\n $this->connection = new mysqli(DB_SERVER, DB_USER, DB_USR_PASS, DB_NAME);\n if (mysqli_connect_errno()) \n {\n exit('Connect failed: '. mysqli_connect_error());\n }\n }", "function __construct() {\n $this->open_connection();\n }", "function __construct() {\n $connector = new DbConnection();\n $conn = $connector->connect(); \n }", "function connectToDb()\n {\n \n $this->db = new Database_2('localhost','root','project');\n }", "public function __construct(){\n $database = new Database();\n $db = $database->getConnection();\n $this->conn = $db;\n }", "public function __construct(){\n $database = new Database();\n $db = $database->getConnection();\n $this->conn = $db;\n }", "public function __construct()\n {\n $this->db = ConnectionClass::conn();\n }", "function __construct(){\n $this->_db = (new DataBaseServices())->connect();\n }", "public function connect()\n {\n $driver = 'DB'; // default driver\n $dsn = $this->getParameter('dsn');\n\n $do = $this->getParameter('dataobject');\n if ($do && isset($do['db_driver'])) {\n $driver = $do['db_driver'];\n }\n\n if ('DB' == $driver) {\n\n if (!class_exists('DB')) {\n include('DB.php');\n }\n\n $options = PEAR::getStaticProperty('DB', 'options');\n if ($options) {\n $this->connection = DB::connect($dsn, $options);\n } else {\n $this->connection = DB::connect($dsn);\n }\n \n } else {\n\n if (!class_exists('MDB2')) {\n include('MDB2.php');\n }\n \n $options = PEAR::getStaticProperty('MDB2', 'options');\n $this->connection = MDB2::connect($dsn, $options);\n }\n\n if (PEAR::isError($this->connection)) {\n\n throw new AgaviDatabaseException($this->connection->getMessage());\n $this->connection = Null;\n }\n }", "private function dbConnection() {\r\n //if (!is_resource($this->connessione))\r\n // $this->connessione = mysql_connect($this->db_server,$this->db_username,$this->db_pass) or die(\"Error connectin to the DBMS: \" . mysql_error());\r\n if (!is_resource($this->connessione)) {\r\n try {\r\n $this->connessione = new PDO($this->db_type . \":dbname=\" . $this->db_name . \";host=\" . $this->db_server, $this->db_username, $this->db_pass);\r\n //echo \"PDO connection object created\";\r\n $this->setupSQLStatement();\r\n } catch (PDOException $e) {\r\n echo $e->getMessage();\r\n die();\r\n }\r\n }\r\n }", "function __construct() {\n\n\t\t$this->open_db_connection();\n\n\t}", "public function connect($db_properties);", "public function __construct(){\n\t\t$database = new Database();\n\t\t$db = $database->getConnection();\n $this->conn = $db;\n }", "public function openConnection() {\n $this->mysqli = new mysqli($this->hostname, $this->username, $this->password, $this->database);\n if (mysqli_connect_errno()) {\n header( 'HTTP/1.1 500 DB Error' );\n die(mysqli_connect_error());\n }\n }", "public function __construct(){\n $database = new Database();\n $db = $database->getConnection();\n \n $this->conn = $db;\n }", "public function open_conn(){\n \n \n $this->connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS);\n \n if(!$this->connection){\n die(\"Database Connection Failed because: \" . mysql_error());\n }else{\n $db_select = mysql_select_db(DB_NAME,$this->connection);\n if(!$db_select){\n die(\"Database Connection Failed because: \" .mysql_error());\n }\n }\n }", "public function __construct( )\n {\n $this->openConnection();\n }", "public function connect(){ //connrct to database\r\t\tif ($this->connected==false){\r\t\t\tif ($this->pers){\r\t\t\t\t$this->handle=sqlite_popen($this->server);\r\t\t\t}else{\r\t\t\t\t$this->handle=sqlite_open($this->server);\r\t\t\t}\r\t\t\t\r\t\t\t//$this->engine = new SQLiteDatabase($this->server);\r\t\t\t$this->connected=true;\r\t\t}//\r\t}", "public function __construct() {\n // Making a connection with the database\n $database = new Database();\n $this->conn = $database->getConnection();\n }", "function create_connection(){\n\t\t$this->dbconn =& new DBConn();\r\n\t\tif($this->dbconn == NULL)\r\n\t\t\tdie('Could not create connection object');\n\t}", "function openConnection() {\n\t\t$this->conn = new mysqli(self::$host, self::$user, self::$pass, $this->db_name);\n\t\tmysqli_set_charset($this->conn, 'utf8');\n\t}", "public function __construct(){\n $database = new Database();\n $db = $database->dbConnection();\n $this->conn = $db;\n }", "public function __construct(){\r\n\r\n $db = new DB;\r\n\r\n $this->db = $db->get_connection();\r\n\r\n }", "private function connectDatabase() {\r\r\n\t\t$this->dbHandle = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Database\\\\DatabaseConnection');\r\r\n\t\t$this->dbHandle->setDatabaseHost($this->dbHost);\r\r\n\t\t$this->dbHandle->setDatabaseUsername($this->dbUsername);\r\r\n\t\t$this->dbHandle->setDatabasePassword($this->dbPassword);\r\r\n\t\t$this->dbHandle->setDatabaseName($this->db);\r\r\n\t\t$this->dbHandle->sql_pconnect();\r\r\n\t\t$this->dbHandle->sql_select_db();\r\r\n\t}", "private function connect() {\r\n\t\tunset($this->dbLink);\r\n\t\t/* create connection to database host */\r\n\t\t// $dbLink = mysql_connect(\"mysql.localhost\", \"de88623\", \"proberaum1\");\r\n\t\t$dbLink = mysql_connect(\"localhost\", \"robert\", \"YMbHFY+On2\");\r\n\t\t/* select database */\r\n\t\tmysql_select_db(\"robert_www_parkdrei_de\");\r\n\t\t/* set link to database as a object attribute */\r\n\t\t$this->dbLink = $dbLink;\r\n\t}", "protected function CeateDatabaseConnection()\r\n\t{\r\n\t\t// Create an instance of the database for use in the system\r\n\t\tif($this->InProduction($_SERVER['SERVER_NAME']))\r\n\t\t\t//$this->Database\t= new Database('gstour.db.4628821.hostedresource.com','gstour','Golf1215','gstour');\r\n\t\t\t$this->Database\t= new Database('97.74.149.114','gstour','Golf1215','gstour');\r\n\t\telse\r\n\t\t\t$this->Database\t= new Database('localhost','root','','test');\r\n\t}", "function connect()\n\t{\n\t\t$this->db=new MySQLi($this->localhos,$this->username,$this->passw,$this->data_name)or die(\"could not connect\");\n\t\t\n\t\treturn $this->db;\n\t}", "public static function getConnection(){\n return static::$db;\n }", "private function connect(){\n\t\trequire (__DIR__ . '/../../config.php');\n\t\t$mysqlCFG =$database['mysql'];\n\t\t\n\t\tif(!self::$db){\n\t\t\t$connectionString = \"mysql:host=$mysqlCFG[host];dbname=$mysqlCFG[dbname]\";\n\t\t\ttry{\n\t\t\t\tself::$db = new \\PDO($connectionString, $mysqlCFG['user'], $mysqlCFG['password']);\n\t\t\t\tself::$db->setAttribute( \\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\t\t\t}catch(\\PDOException $e){\n\t\t\t\tdie(\"Ocurrio un error al conectar con la base de datos: $e->getMessage()\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public function open()\n {\n if (!isset($this->handle)) {\n $this->stats->benchmark('bedrockWorkerManager.db.open', function () {\n $this->handle = new SQLite3($this->location);\n $this->handle->busyTimeout(15000);\n $this->handle->enableExceptions(true);\n });\n }\n }", "public function __construct() {\n $db = new Connection();\n $this->conn = $db->connect();\n }", "public function __construct(){\n $this->db = new Conect();//criando o objeto Conect\n $this->db = $this->db->Conn();//executando metodo e pondo em uma variavel\n}", "public function open_database_connection()\n {\n $server = 'blog';\n $dbname = 'blog';\n $username = 'root';\n $password = 'root';\n\n $link = new \\PDO(\"mysql:host=$server;dbname=$dbname\", $username, $password);\n\n return $link;\n }", "public function openConnection() { \n\t\t\t// Try and connect to the database\n\t\t\tif(!isset(self::$connection)) {\n\t\t\t\t// Load configuration as an array. Use the actual location of your configuration file\n\t\t\t\t$config = parse_ini_file(\"../scripts/config.ini\");\n\t\t\t\tself::$connection = new mysqli($config['host'], $config['user'], $config['pass'], $config['db']);\n\n\t\t\t\t// If connection was not successful, handle the error\n\t\t\t\tif(self::$connection === false) {\n\t\t\t\t\t// Handle error\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn self::$connection;\n\t\t\t}\n\t\t}", "public function __construct(){\n require_once \"database.php\";\n $this->connection = new Database(DB_NAME);\n }", "private function connect()\n {\n $this->db = new mysqli($this->host_name, $this->user_name, $this->password, $this->database_name);\n if ($this->db->connect_error) {\n die(\"Connect failed: \". $this->db->connect_error);\n exit();\n }\n }", "public function getDbConnection()\n {\n $this->conn = Registry::get('db');\n }", "private function connect()\n {\n if ($this->configuration->get('db.connector') == 'PDO') {\n $dsn = \"mysql:host=\" . $this->configuration->get('db.host') . \";dbname=\" . $this->configuration->get('db.name');\n $options = array();\n $this->db = new PDO(\n $dsn, $this->configuration->get('db.username'), $this->configuration->get('db.password'), $options\n );\n } elseif ($this->configuration->get('db.connector') == 'mysqli') {\n $this->db = mysqli_connect(\n $this->configuration->get('db.host'), $this->configuration->get('db.username'), $this->configuration->get('db.password'), $this->configuration->get('db.name')\n );\n }\n }", "public function settaDB()\n {\n include \"MySqlClass.php\";\n // istanza della classe\n $this->database = new MysqlClass();\n }", "function DB_manager (){\n //parse configuration file\n $ini_array = parse_ini_file($this->configuration_file_path);\n $db_host = $ini_array['db_host'];\n $db_name = $ini_array['db_name'];\n $db_user = $ini_array['db_user'];\n $db_password = $ini_array['db_password'];\n\n //make a connection\n $mysqli = new mysqli($db_host, $db_user , $db_password, $db_name);\n if (mysqli_connect_errno()) {\n printf(\"Connect failed: %s\\n\", mysqli_connect_error());\n exit();\n }\n\n $this->db = $mysqli;\n }", "private function connecDb()\n {\n try{\n $dsn = \"{$this->db_type}:host={$this->db_host};port={$this->db_port};\";\n $dsn .= \"dbname={$this->db_name};charset={$this->db_charset}\";\n //echo \"$dsn, $this->db_user, $this->db_pass\";\n $this->pdo = new PDO($dsn,$this->db_user,$this->db_pass);\n }catch(PDOException $e){\n echo\"<h2>创建POD对象失败</h2>\";\n $this->ShowErrorMessage($e);\n die();\n }\n }", "public static function connection() {\n\t\t\n\t\tif (!self::$instance) {\n\t\t\t\n\t\t\tself::$instance = new Database();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn self::$instance;\n\n\t}", "public static function connect()\n {\n //if the $db static attribute of this object (self) is empty ( self:: targets a static element of an object)\n if(empty(self::$db))\n {\n //assignment to the attribute $db of the intanciation of the hydrated PDO object with the connection parameters\n self::$db = new PDO(\n \"mysql:host=\".DB_HOST.\";dbname=\".DB_NAME.\";charset=utf8\", \n DB_USER, DB_PASS,\n [\n // display errors related to the Data Base\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, \n // return an associative array(string based) not numeric\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, \n // request send only to execute / not to prepare \n PDO::ATTR_EMULATE_PREPARES => false, \n ]\n ); \n }\n return self::$db;\n }", "public function __construct()\n {\n $this -> connection = $this ->connecdatabase();\n }", "public function getConnect()\n {\n $this->conn = Registry::get('db');\n }", "function openDB() {\r\n global $db;\r\n if(!is_resource($db)) {\r\n /* Conection String eg.: mysqli(\"localhost\", \"lpaecomms\", \"letmein\", \"lpaecomms\")\r\n * - Replace the connection string tags below with your MySQL parameters\r\n */\r\n $db = new mysqli(\r\n \"localhost\",\r\n \"root\",\r\n \"\",\r\n \"lpa_ecomms\"\r\n );\r\n if ($db->connect_errno) {\r\n echo \"Failed to connect to MySQL: (\" .\r\n $db->connect_errno . \") \" .\r\n $db->connect_error;\r\n }\r\n }\r\n}", "public function getConnection(){\n \n \n $this->db_conn = OCILogon($this->username, $this->password,$this->db_name); \n \n return $this->db_conn;\n }", "public static function connect()\n\t\t{\n\t\t\tif(is_null(self::$instance))\n\t\t\t{\n\t\t\t\tself::$instance = new db;\n\t\t\t}\n\t\t\treturn self::$instance;\n\t\t}", "function db_connect() {\n\t$database = new mysqli(DB_SERVER, DB_USER, DB_PASS, DB_NAME); //create the object $connection\n\tconfirm_db_connect($database);\n\n\t// this function returns the object $connection with the database\n\treturn $database; \n\t}", "function OpenCon() {\n $dbhost = \"\";\n $dbuser = \"\";\n $dbpass = \"\";\n if($_SERVER['SERVER_NAME'] == \"localhost\"){\n $dbhost = \"localhost\";\n $dbuser = \"root\";\n $dbpass = \"root\";\n }\n else{\n $dbhost = \"db.cs.dal.ca\";\n $dbuser = \"aio\";\n $dbpass = \"ge7ochooCae7\";\n }\n $db = \"aio\";\n $conn = new mysqli($dbhost, $dbuser, $dbpass, $db) or die(\"Connect failed: %s\\n\". $conn -> error);\n return $conn;\n }", "public function __construct() {\n $this->_db = DB::connect();\n }", "function startDBConnection() {\n $connectionObject = new DatabaseFactory();\n return $connectionObject->getConnection();\n}", "function DbConnection() { \n\t\t/*if(file_exists('../lib/dbconfig.xml')){\n\t\t\t\n\t\t $xml = simplexml_load_file('../lib/dbconfig.xml');\n\t\t\t$this->user =$xml->user;\n\t\t\t$this->password =$xml->password;\n\t\t\t$this->host =$xml->host;\n\t\t\t$this->database =$xml->name;\n\t\t \n\t\t} \n\t\telse{\n\t\t\t\n\t\t exit('Failed to open :database_configuration.xml');\n\t\t \n\t\t}*/\n\t\t$this->host='localhost';\n\t\t$this->user='root';\n\t\t$this->database='iims';\n\t\t$this->password='';\n\t\t\n\t\t\n\t\t $this->linkId = @mysql_connect($this->host, $this->user,$this->password)or die(\"Error in connecting to db server: \".mysql_error()); \n\t\t$this->db = @mysql_select_db($this->database,$this->linkId)or die(\"Error in connecting to database: \".mysql_error()); \n\t}", "public function __construct()\n {\n $this->_dbInstance = Database::getInstance();\n $this->_dbHandle = $this->_dbInstance->getConnection();\n }", "public function __construct(){\n $this->dbConnection = new database_connection();\n }", "public function open_connection() {\n $this->link = mysql_connect(parent::get_host(), parent::get_user(), parent::get_pass());\n\n # setting charset mysql \n mysql_set_charset('utf8', $this->link);\n }", "public static function connect() {\n\t\tif(!self::$conn) {\n\t\t\tnew Database();\n\t\t}\n\t\treturn self::$conn;\n\t}", "public function __construct()\n {\n $this->db = DataBase::dbConnect();\n }", "public function getConnection();" ]
[ "0.7988954", "0.79616934", "0.79167354", "0.7853317", "0.7725257", "0.7710728", "0.77038413", "0.7696117", "0.76311594", "0.7620197", "0.7605166", "0.75801086", "0.75762916", "0.7538515", "0.753134", "0.7481532", "0.7456883", "0.7443391", "0.7431239", "0.74156725", "0.74143314", "0.7400067", "0.73740095", "0.73710823", "0.7369592", "0.7328954", "0.7321593", "0.73133624", "0.73013127", "0.7270593", "0.72627556", "0.72582775", "0.7244566", "0.72253233", "0.72028065", "0.71779114", "0.7158253", "0.71403044", "0.71370834", "0.7136734", "0.71300334", "0.71125734", "0.71080995", "0.7102678", "0.7100781", "0.7095614", "0.7095614", "0.7091434", "0.7091113", "0.7083037", "0.70818317", "0.7079969", "0.7073136", "0.706536", "0.70597047", "0.7053511", "0.7051814", "0.70498157", "0.70495474", "0.70155305", "0.70036674", "0.69955325", "0.6991845", "0.6978297", "0.69781244", "0.6976943", "0.69714665", "0.6964084", "0.69576204", "0.69474506", "0.69465125", "0.6944776", "0.694148", "0.6941405", "0.6933916", "0.6925912", "0.69255906", "0.6924792", "0.69160014", "0.6906873", "0.69033664", "0.6903036", "0.69023144", "0.68994254", "0.68991196", "0.68953156", "0.6886613", "0.6884549", "0.68811965", "0.6879517", "0.6879359", "0.68761444", "0.68747735", "0.687413", "0.6873175", "0.68543935", "0.6844402", "0.6844361", "0.68410957", "0.6838124" ]
0.70168114
59
Method to format/prepare query results for JSON array
protected function formatResponse($preparedQuery, $type = "select") { if($preparedQuery['status']){ if($type == "select"){ for($c = 0; $c < count($preparedQuery['results']); $c++){ $response_array['results'][] = array($preparedQuery['results'][$c]['title'] => $preparedQuery['results'][$c]['id']); } $response_array['status'] = 'success'; } elseif($type === "insert" or $type === "update" or $type === 'drop') { $response_array['status'] = 'success'; } elseif($type == 'getbf'){ $response_array['status'] = 'success'; $response_array['id'] = $preparedQuery["results"][0]['id']; $response_array['area_id'] = $preparedQuery["results"][0]['area_id']; $response_array['title'] = $preparedQuery["results"][0]['title']; $response_array['body'] = stripslashes($preparedQuery["results"][0]['body']); $response_array['file_under'] = strtoupper($preparedQuery["results"][0]['file_under']); } } elseif($type == 'update'){ $response_array['status'] = 'no change (else_error)'; } else { $response_array['status'] = 'else_error'; } return $response_array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resultsToJson ()\n {\n// $res = array();\n// foreach ($this->results() as $result)\n// {\n// array_push($res, array($result));\n// }\n return json_encode($this->results());\n }", "function fire_query_get_json() {\n $res = $this->fire_query();\n $res_arr = array();\n while($row = $res->fetch_array(MYSQL_ASSOC)) {\n $res_arr[] = $row;\n }\n return json_encode($res_arr);\n }", "function queryResultToJSON($qResult,$parameters=NULL,$allFields=NULL)\r\n\t{\r\n//If configuration is not defined we add the fields in the result of the query by default.\r\n\t\tif (!is_array($parameters['columns']))\r\n\t\t{\r\n\t\t\t$fieldNum = mysql_num_fields($qResult);\r\n\t\t\t$fields = array();\r\n\t\t\tfor ($i=0; $i<$fieldNum; $i++)\r\n\t\t\t\t$fields []= mysql_field_name($qResult,$i);\r\n\t\t\t$parameters['columns'] = fieldsToParams($fields);\t\r\n\t\t}\r\n\t\treturn resultToJSON($qResult,$parameters,$allFields);\r\n\t}", "public function formatResult($result,$offset = 0){\r\n \r\n $newResultRows = array();\r\n \r\n foreach($result as $row){\r\n \r\n $newResultRows[] = array(\r\n 'id' => $row['_id'],\r\n 'key' => $row['_id'],\r\n 'value' => $row\r\n );\r\n \r\n }\r\n \r\n return array(\r\n 'total_rows' => count($result),\r\n 'offset' => $offset,\r\n 'rows' => $newResultRows\r\n );\r\n }", "public function queryFormat(): string\n {\n return 'JSONEachRow';\n }", "protected function format( $results )\n {\n return json_decode( json_encode( $results ) );\n }", "public function jsonSerialize()\n {\n return\n [\n 'kind' => $this->getKind(),\n 'result' => $this->getResult(),\n 'sql' => Functions::formatSql($this->getSql()->getSentence(), $this->getSql()->getParams()),\n 'performance' => $this->getPerformance()\n ];\n }", "function resultToJSON($result,$parameters,$allFields=null)\r\n\t{\r\n\t\t$array=resultToArray($result,extractFields($parameters));\r\n\t\treturn arrayToDBGridJSON($array,$parameters,$allFields);\r\n\t}", "public function json_table() {\n\t\t\techo json_encode($this->populate_rows());\n\t\t}", "function queryToJson($t_mysqli, $t_query){\n $query_res = array('errors' => array(), 'query_data' => NULL);\n \n $queryarray_res = queryToArray($t_mysqli, $t_query);\n \n $query_res['errors'] = $queryarray_res['errors'];\n $query_res['query_data'] = json_encode($queryarray_res['query_data']);\n \n return $query_res;\n}", "public function getArrayDataListToJson($query,$params = array()) {\n try{\n $q = $this->_adapter->prepare($query);\n $q->execute($params);\n $result = $q->fetchAll();\n $json= json_encode($result);\n return str_replace(\"'\",'', $json);\n } catch (PDOException $exc) {\n return $exc->getTraceAsString();\n }\n }", "public function jsonSerialize()\n\t{\n\t\treturn array(\n\t\t\t'count' => $this->count, \n\t\t\t'objects' => $this->tableObjects\n\t\t\t);\n }", "public function results()\n {\n //by default data get as array/stdclasses\n\n // to trunit to arrays of arrays\n // return json_decode(json_encode($this->_results), true);\n return $this->_results;\n // gives array data with column name and itsvalue not index array\n }", "public function getJSON ( $sql, $params = array()){\r\n\t\tif (!empty($params)) {\r\n\t\t $resultArray = parent::boundQuery($sql, $params);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$resultArray = parent::query($sql);\r\n\t\t}\r\n\t\t$result = array ( 'data' => $resultArray);\r\n\t\treturn (json_encode($result));\r\n\t}", "function returnJSON($stmt){\n $stmt->execute();\n $stmt->store_result();\n $meta = $stmt->result_metadata();\n $bindVarsArray = array();\n //using the stmt, get it's metadata (so we can get the name of the name=val pair for the associate array)!\n while ($column = $meta->fetch_field()) {\n $bindVarsArray[] = &$results[$column->name];\n }\n //bind it!\n call_user_func_array(array($stmt, 'bind_result'), $bindVarsArray);\n //now, go through each row returned,\n while($stmt->fetch()) {\n $clone = array();\n foreach ($results as $k => $v) {\n $clone[$k] = $v;\n }\n $data[] = $clone;\n }\n return json_encode($data);\n}", "public function getResultsInJSON(): string {\n return json_encode($this->getResults());\n }", "function jsonSerialize()\n {\n return [\n 'meta' => [\n 'offset' => $this->page->getOffset(),\n 'limit' => $this->page->getLimit(),\n 'total' => $this->total,\n ],\n 'data' => $this->results,\n ];\n }", "public function JSONifyResults($result)\n {\n $output = array();\n $output = $result->fetch_all(MYSQLI_ASSOC);\n echo json_encode($output, JSON_PRETTY_PRINT);\n }", "function sqlData($sql){\n // \n $result = $this->query($sql);\n //\n //\n if (!$result) {\n print \"<p>Could not retrieve data: </p>\";\n }\n while ($row = $result->fetchAll()) {\n $data = $row;\n return json_encode($data);\n }\n }", "private function set_response_rows($result) { \n $rows = [];\n foreach ($result as $r) {\n $cell = [];\n foreach ($r as $column => $value) {\n $cell[] = call_user_func($this->format, $column, $value, $r);\n }\n\n $rows[] = [\n 'id' => $r->id,\n 'cell' => $cell\n ];\n }\n return $rows;\n }", "public function get_results() {\n return (JsonParser::encode($this->__results));\n }", "public function getSimpleJSON ( $sql, $params = array() ){\r\n\t\tif (!empty($params)) {\r\n\t\t $resultArray = parent::boundQuery($sql, $params);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$resultArray = parent::query($sql);\r\n\t\t}\r\n\t\treturn (json_encode($resultArray));\r\n\t}", "public function getResult()\n {\n $data = [\n 'query' => $this->getQuery(),\n 'table' => $this->table,\n ];\n\n if (isset($this->columns)) {\n $data['columns'] = $this->columns;\n }\n if (isset($this->with)) {\n $data['with'] = $this->with;\n }\n if (isset($this->where)) {\n $data['where'] = $this->where;\n }\n if (isset($this->data)) {\n $data['data'] = $this->data;\n }\n if (isset($this->order)) {\n $data['order'] = $this->order;\n }\n if (isset($this->limit)) {\n $data['limit'] = $this->limit;\n }\n\n return $data;\n }", "public function GetJSON()\r\n\t{\r\n\t\tif( $this->last_result )\r\n\t\t{\r\n\t\t\tif( $this->RowCount() > 0 )\r\n\t\t\t{\r\n\t\t\t\tfor( $i = 0, $il = mysql_num_fields( $this->last_result ); $i < $il; $i++ )\r\n\t\t\t\t{\r\n\t\t\t\t\t$types[$i] = mysql_field_type( $this->last_result, $i );\r\n\t\t\t\t}\r\n\t\t\t\t$json = '[';\r\n\t\t\t\t$this->MoveFirst();\r\n\t\t\t\twhile( $member = mysql_fetch_object( $this->last_result ) )\r\n\t\t\t\t{\r\n\t\t\t\t\t$json .= json_encode( $member ) . \",\";\r\n\t\t\t\t}\r\n\t\t\t\t$json .= ']';\r\n\t\t\t\t$json = str_replace(\"},]\", \"}]\", $json );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$json = 'null';\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->active_row = -1;\r\n\t\t\t$json = 'null';\r\n\t\t}\r\n\t\treturn $json;\r\n\t}", "public function jsonSerialize()\n {\n return [['id' => $this->id,\n 'users_id' => $this->users,\n 'result' => $this->result,\n 'time' => $this->time]\n\n ];\n }", "public function json()\n {\n //\n return Laratables::recordsOf(Record::class, function ($query) {\n return $query->where('user_id', Auth::id());\n });\n }", "function getJsonArray($sql){\r\n\r\n\tif($sql) {\r\n\r\n\t\tglobal $db;\r\n\t\tif(!$db) connectDb();\r\n\t\t$result = $db->query($sql);\r\n\r\n\t\t$questionId = 0;\r\n\t\t$jsonArray = array(\"answers\"=>array());\r\n\t\t$index = -1;\r\n\t\tforeach($result as $row) {\r\n\t\t\tif($row[\"questionId\"] != $questionId) {\r\n\t\t\t\t$index++;\r\n\t\t\t\t$jsonArray[\"answers\"][] = array(\"question\"=>$row[\"question\"], \"type\"=>\"multiple\", \"form_name\"=>$row[\"formName\"]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$jsonArray[\"answers\"][$index][\"answer\"][] = array(\"option_id\"=>$row[\"choice_id\"], \"option\"=>$row[\"choice\"], \"votes\"=>$row[\"vote\"]);\r\n\t\t\t$questionId = $row[\"questionId\"];\r\n\t\t}\r\n\t\t\r\n\t\treturn $jsonArray;\r\n\t\t\r\n\t\t//$jsonArray = array(\"answers\"=> array(array(\"question\"=>\"Please provide us with your technical area of expertise\",\"type\"=>\"multiple\", \"answer\"=>array(array(\"title\"=>\"Financial Services\", \"votes\"=>\"111111\"), array(\"title\"=>\"Enterprise Development\", \"votes\"=>\"222\"), array(\"title\"=>\"Economic Strengthening\", \"votes\"=>\"333\"), array(\"title\"=>\"Other\", \"votes\"=>array(\"IT\", \"Health\", \"Administrative\")))), array(\"question\"=>\"What is you level of Interest in cross sectoral programming?\", \"type\"=>\"multiple\", \"answer\"=>array(array(\"title\"=>\"Financial Services\", \"votes\"=>\"111111\"), array(\"title\"=>\"Enterprise Development\", \"votes\"=>\"222\"), array(\"title\"=>\"Economic Strengthening\", \"votes\"=>\"333\"), array(\"title\"=>\"Other\", \"votes\"=>array(\"IT\", \"Health\", \"Administrative\"))))));\r\n\t}\r\n\telse return null;\r\n}", "public function get_json_results() {\n }", "function getJsonObjFromResult(&$result){\n // by reference doorgeven, waardoor deze niet gekopieerd word\n // naar een nieuwe variabele voor deze functie.\n\n $fixed = array();\n \n $typeArray = array(\n MYSQLI_TYPE_TINY, MYSQLI_TYPE_SHORT, MYSQLI_TYPE_INT24, \n MYSQLI_TYPE_LONG, MYSQLI_TYPE_LONGLONG,\n MYSQLI_TYPE_DECIMAL, \n MYSQLI_TYPE_FLOAT, MYSQLI_TYPE_DOUBLE );\n $fieldList = array();\n // haal de veldinformatie van de velden in deze resultset op\n while($info = $result->fetch_field()){\n $fieldList[] = $info;\n }\n // haal de data uit de result en pas deze aan als het veld een\n // getaltype zou moeten bevatten\n while ($row = $result -> fetch_assoc()) {\n $fixedRow = array();\n $teller = 0;\n\n foreach ($row as $key => $value) {\n if (in_array($fieldList[$teller] -> type, $typeArray )) {\n $fixedRow[$key] = 0 + $value;\n } else {\n $fixedRow[$key] = $value;\n }\n $teller++;\n }\n $fixed[] = $fixedRow;\n }\n\n // geef een json object terug\n return '{\"data\":'.json_encode($fixed).'}';\n}", "public function queryAll()\n {\n $statement = sprintf(\"SELECT %s, %s, %s, %s, %s FROM %s WHERE deleted = 0\",\n static::FIELDS[0], static::FIELDS[1], static::FIELDS[2], static::FIELDS[3], static::FIELDS[4], static::TABLE);\n $req = $this->db->query($statement);\n $response = $req->fetchAll(PDO::FETCH_ASSOC);\n\n return json_encode($response);\n }", "public function toArray(){\n\t\treturn json_decode(json_encode($this->rows), true);\n\t}", "private function prepareMultiResultTestJson(): string\n {\n $firstDataChildren = [['_name' => 'test1', 'middle' => 'value1'], ['_name' => 'test2', 'middle' => 'value2']];\n $firstData = [['top' => 'first', 'bottom' => 'first', '_children' => $firstDataChildren]];\n $secondDataGrandchildren =\n [['_name' => 'test3', 'bottom' => 'value3'], ['_name' => 'test4', 'bottom' => 'value4']];\n $secondData =\n [['top' => 'second', '_children' => [['middle' => 'second', '_children' => $secondDataGrandchildren]]]];\n $thirdData = [['top' => 'third', 'middle' => 'third', 'bottom' => 'third', '_name' => 'test5']];\n\n return json_encode(array_merge($firstData, $secondData, $thirdData));\n }", "protected function formatResult()\n\t{\n\t\tglobal $APPLICATION;\n\n\t\t$arResult = array();\n\n\t\t// references\n\t\t$arResult[\"INFO\"][\"STATUS\"] = $this->dbResult['STATUS'];\n\t\t$arResult[\"INFO\"][\"PAY_SYSTEM\"] = $this->dbResult['PAYSYS'];\n\t\t$arResult[\"INFO\"][\"DELIVERY\"] = $this->dbResult['DELIVERY'];\n\t\t$arResult[\"INFO\"][\"DELIVERY_HANDLERS\"] = $this->dbResult['DELIVERY_HANDLERS'];\n\n\t\t$arResult[\"CURRENT_PAGE\"] = $APPLICATION->GetCurPage();\n\t\t$arResult[\"NAV_STRING\"] = $this->dbQueryResult['ORDERS']->GetPageNavString(Localization\\Loc::getMessage(\"SPOL_PAGES\"), $this->arParams[\"NAV_TEMPLATE\"]);\n\n\t\t// bug walkaround\n\t\t$this->arParams[\"PATH_TO_COPY\"] .= (strpos($this->arParams[\"PATH_TO_COPY\"], \"?\") === false ? \"?\" : \"&amp;\");\n\t\t$this->arParams[\"PATH_TO_CANCEL\"] .= (strpos($this->arParams[\"PATH_TO_CANCEL\"], \"?\") === false ? \"?\" : \"&amp;\");\n\n\t\tif(self::isNonemptyArray($this->dbResult['ORDERS']))\n\t\t{\n\t\t\tforeach ($this->dbResult['ORDERS'] as $k => $orderInfo)\n\t\t\t{\n\t\t\t\t$arOrder =& $this->dbResult['ORDERS'][$k]['ORDER'];\n\t\t\t\t$arOBasket =& $this->dbResult['ORDERS'][$k]['BASKET_ITEMS'];\n\n\t\t\t\t$arOrder[\"FORMATED_PRICE\"] = SaleFormatCurrency($arOrder[\"PRICE\"], $arOrder[\"CURRENCY\"]);\n\n\t\t\t\t$this->formatDate($arOrder, $this->orderDateFields2Convert);\n\n\t\t\t\t$arOrder[\"CAN_CANCEL\"] = (($arOrder[\"CANCELED\"] != \"Y\" && $arOrder[\"STATUS_ID\"] != \"F\" && $arOrder[\"PAYED\"] != \"Y\") ? \"Y\" : \"N\");\n\n\t\t\t\t$arOrder[\"URL_TO_DETAIL\"] = CComponentEngine::MakePathFromTemplate($this->arParams[\"PATH_TO_DETAIL\"], array(\"ID\" => urlencode(urlencode($arOrder[\"ACCOUNT_NUMBER\"]))));\n\t\t\t\t$arOrder[\"URL_TO_COPY\"] = CComponentEngine::MakePathFromTemplate($this->arParams[\"PATH_TO_COPY\"], array(\"ID\" => urlencode(urlencode($arOrder[\"ACCOUNT_NUMBER\"])))).\"COPY_ORDER=Y\";\n\t\t\t\t$arOrder[\"URL_TO_CANCEL\"] = CComponentEngine::MakePathFromTemplate($this->arParams[\"PATH_TO_CANCEL\"], array(\"ID\" => urlencode(urlencode($arOrder[\"ACCOUNT_NUMBER\"])))).\"CANCEL=Y\";\n\n\t\t\t\tif(self::isNonemptyArray($arOBasket))\n\t\t\t\t{\n\t\t\t\t\tforeach ($arOBasket as $n => $basketInfo)\n\t\t\t\t\t{\n\t\t\t\t\t\t$arBasket =& $arOBasket[$n];\n\n\t\t\t\t\t\t$arBasket[\"NAME~\"] = $arBasket[\"NAME\"];\n\t\t\t\t\t\t$arBasket[\"NOTES~\"] = $arBasket[\"NOTES\"];\n\t\t\t\t\t\t$arBasket[\"NAME\"] = htmlspecialcharsEx($arBasket[\"NAME\"]);\n\t\t\t\t\t\t$arBasket[\"NOTES\"] = htmlspecialcharsEx($arBasket[\"NOTES\"]);\n\t\t\t\t\t\t$arBasket[\"QUANTITY\"] = doubleval($arBasket[\"QUANTITY\"]);\n\n\t\t\t\t\t\t// backward compatibility\n\t\t\t\t\t\t$arBasket[\"MEASURE_TEXT\"] = $arBasket[\"MEASURE_NAME\"];\n\n\t\t\t\t\t\t$this->formatDate($arBasket, $this->basketDateFields2Convert);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$arResult[\"ORDERS\"] = $this->dbResult['ORDERS'];\n\t\t}\n\t\telse\n\t\t\t$arResult[\"ORDERS\"] = array();\n\n\t\t$this->arResult = $arResult;\n\t}", "public function initContent()\n {\n /**\n * !!! Do not call parent::initContent().\n * Use it only for collections.\n * Custom output do not have an id and will generate error.\n */\n\n foreach ($this->sql as $key => $query) {\n try {\n $result = Db::getInstance()->executeS($query);\n if (isset($result)) {\n $this->jsonContent[$key] = $result[0][$key];\n }\n } catch (PrestaShopDatabaseException $exception) {\n ClaroLogger::errorLog(__METHOD__ . ' : DBException: ' . $exception->getMessage()\n . ' at line ' . $exception->getLine());\n\n $this->jsonContent = [\n 'status' => 'error',\n 'error' => $exception->getMessage()\n ];\n die(json_encode($this->jsonContent));\n }\n }\n die(json_encode($this->jsonContent));\n }", "public function buildJson();", "public function toArray()\n {\n return ['rows' => $this->rows] + parent::toArray();\n }", "private function prepare_data(){\r\n\t\t\t$this->data_table['cols'] = array();\r\n\t\t\t\r\n\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\tswitch($column_info['type']){\r\n\t\t\t\t\tcase 'number':\r\n\t\t\t\t\tcase 'float':\r\n\t\t\t\t\tcase 'currency':\r\n\t\t\t\t\t\t$column_info['type'] = 'number';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$column_info['type'] = 'string';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['cols'][] = array_merge(array('id' => $column_id), $column_info);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rows_count = sizeof(reset($this->data));\r\n\t\t\t\r\n\t\t\tfor($i = 0; $i < $rows_count; $i++){\r\n\t\t\t\t$c = array();\r\n\t\t\t\t\r\n\t\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\t\t$value = $this->data[$column_id][$i];\r\n\t\t\t\t\t$c[] = array('v' => $value);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['rows'][] = array('c' => $c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->data_table = json_encode($this->data_table);\r\n\t\t}", "public function json()\n\t{\n\t\t$data = [\n\t\t\t'totalResults' => '3',\n\t\t\t'values' => [\n\t\t\t\t['name' => 'John', 'age' => 30],\n\t\t\t\t['name' => 'Mary', 'age' => 24],\n\t\t\t\t['name' => 'Petter', 'age' => 18],\n\t\t\t],\n\t\t];\n\n\t\treturn $data;\n\t}", "public function getJsonData()\n {$query = \"SELECT TYPE_F,COUNT(PPR) AS'count' FROM fonctionnaire GROUP BY TYPE_F\";\n $result = $this->db->prepare($query);\n $result->execute();\n $results=$result->fetchALL(PDO::FETCH_ASSOC);\n return $results;}", "public function getJsonBroDeployOverseas(){\n\t\t$query = \"Select BroDeployOverseas.post, Sum(bandwidth.capacity) as capacity, BroDeployOverseas.regularworkstation, BroDeployOverseas.regworkdeployed, BroDeployOverseas.regworkremaining,\n\t\t\tBroDeployOverseas.latitude, BroDeployOverseas.longitude, BroDeployOverseas.regworkpercentcompleted, BroDeployOverseas.vsenpercentcompleted,\n\t\t\tBroDeployOverseas.region, BroDeployOverseas.vsencompatableworkstation, BroDeployOverseas.vsendeployed, BroDeployOverseas.vsenremaining\n\t\t\tFrom public.BroDeployOverseas, public.bandwidth\n\t\t\tWhere BroDeployOverseas.post = bandwidth.post\n\t\t\tGroup By BroDeployOverseas.post, BroDeployOverseas.region, \n\t\t\tBroDeployOverseas.regworkpercentcompleted, BroDeployOverseas.vsenpercentcompleted, \n\t\t\tBroDeployOverseas.regularworkstation, BroDeployOverseas.regworkdeployed, BroDeployOverseas.regworkremaining,\n\t\t\tBroDeployOverseas.vsencompatableworkstation,\n\t\t\tBroDeployOverseas.vsendeployed, BroDeployOverseas.vsenremaining,\n\t\t\tBroDeployOverseas.latitude, BroDeployOverseas.longitude; \n\t\t\"; // There might be a better way to do this.\n\t\t$result = $this->connectPG($query);\t\t\t\n\t\t$rows = pg_fetch_all($result);\t\n\n\t\t$jsonArrayOfObjs = \"[\";\n\t\tforeach($rows as $keys => $datums){\n\t\t\t//Build JSON string\n\t\t\t$rows2 = array_keys($rows);\n\t\t\tif(end($rows2) == $keys){\n\t\t\t\t//This will be the last element in the array of objects\n\t\t\t\t$jsonArrayOfObjs .= \"{\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"region\\\":\\\"\".trim($datums['region']).\"\\\", \\\"post\\\":\\\"\".trim($datums['post']).\"\\\",\"; \n\t\t\t \t$jsonArrayOfObjs .= \"\\\"regularworkstation\\\":\".$datums['regularworkstation'].\", \\\"regworkdeployed\\\":\".$datums['regworkdeployed'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"regworkremaining\\\":\".$datums['regworkremaining'].\", \\\"regworkpercentcompleted\\\":\".$datums['regworkpercentcompleted'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"vsencompatableworkstation\\\":\".$datums['vsencompatableworkstation'].\", \\\"vsendeployed\\\":\".$datums['vsendeployed'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"vsenremaining\\\":\".$datums['vsenremaining'].\", \\\"vsenpercentcompleted\\\":\".$datums['vsenpercentcompleted'].\", \\\"capacity\\\":\".$datums['capacity'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"latitude\\\":\".$datums['latitude'].\", \\\"longitude\\\":\".$datums['longitude'].\"\";\n\t\t \t$jsonArrayOfObjs .= \"}\";\n\t\t\t}else{\n\t\t\t\t$jsonArrayOfObjs .= \"{\";\n\t\t\t \t\t$jsonArrayOfObjs .= \"\\\"region\\\":\\\"\".trim($datums['region']).\"\\\", \\\"post\\\":\\\"\".trim($datums['post']).\"\\\",\"; \n\t\t\t \t$jsonArrayOfObjs .= \"\\\"regularworkstation\\\":\".$datums['regularworkstation'].\", \\\"regworkdeployed\\\":\".$datums['regworkdeployed'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"regworkremaining\\\":\".$datums['regworkremaining'].\", \\\"regworkpercentcompleted\\\":\".$datums['regworkpercentcompleted'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"vsencompatableworkstation\\\":\".$datums['vsencompatableworkstation'].\", \\\"vsendeployed\\\":\".$datums['vsendeployed'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"vsenremaining\\\":\".$datums['vsenremaining'].\", \\\"vsenpercentcompleted\\\":\".$datums['vsenpercentcompleted'].\", \\\"capacity\\\":\".$datums['capacity'].\",\";\n\t\t\t \t$jsonArrayOfObjs .= \"\\\"latitude\\\":\".$datums['latitude'].\", \\\"longitude\\\":\".$datums['longitude'].\"\";\n\t\t \t$jsonArrayOfObjs .= \"},\";\n\t\t\t}\n\n\t\t} \n\t\t$jsonArrayOfObjs .= \"]\"; \n\t\t//error_log($jsonArrayOfObjs);\n\n\t\t$cleanJsonStr = json_decode($jsonArrayOfObjs);\n\n\t\t//Validate the JSON\n\t\tif($cleanJsonStr === NULL){error_log(\"Error in JSON in getJsonBroDeployOverseas() method.\"); }else{return $jsonArrayOfObjs;}\n\t}", "protected function initializeResultArray() {}", "public function getResult()\n {\n $json = $this->object->toJsonEncodeable();\n\n if(! $this->showEmpty) {\n $json = $this->removeEmpty($json);\n }\n\n if(! $this->showType) {\n $json = $this->removeType($json);\n }\n\n if($this->dataGroup) {\n $output = new \\stdClass();\n $group = $this->dataGroup;\n\n if(!empty($this->extraInfo) && is_array($this->extraInfo)) {\n foreach($this->extraInfo as $key => $value) {\n if($key === $group) {\n continue;\n }\n\n $output->$key = $value;\n }\n }\n $output->$group = $json;\n\n } else {\n if(!empty($this->extraInfo) && is_array($this->extraInfo)) {\n $output = new \\stdClass();\n foreach($this->extraInfo as $key => $value) {\n if($key === \"body\") {\n continue;\n }\n $output->$key = $value;\n }\n $output->body = $json;\n } else {\n $output = $json;\n }\n }\n\n return json_encode($output, $this->jsonOptions);\n }", "public function jsonize()\n {\n return json_encode($this->toArray());\n }", "public function arraytojson2 ($arraytosend) {\n\t\t$page = 1; //$_GET['page']; \n\t$limit = 9999; // $_GET['rows']; \n\t$sidx = 'id';//$_GET['sidx']; \n\t$sord = 'asc';//$_GET['sord']; \n\t$count= count($arraytosend);\n\t $response = new stdClass();\n\t \t$response->page = 1;\n\t$response->page = $page;\n\t//$response->total = $total_pages;\n\t$response->records = $count;\n\t$i=0;\t\n\tforeach($arraytosend as $key=>$record) {\n\t//$response->rows[$i]['id']=$i+1;\n\t//$response->rows[$i]['id']=$key;\n\t//$response->rows[$i]['cell']=array($key);\n\t$response->rows[$i]['cell']=array_values($arraytosend[$key]);\n\tarray_unshift($response->rows[$i]['cell'],intval($key)+1);\n\t// moves forward even when the internal pointer is on last record\n\t//printf(\" atj2 #634 %s <br>\",var_export($response,true));\n\t$i++;\t\n\t}\n\treturn json_encode($response);\n\t\n}", "public function customQueryJson($query, $paginate='') {\n $statement = Connect::ArangoStatementHandlerArray(\n $this->_arangoConnect, $query\n );\n // execute the statement\n $cursor = $statement->execute(); \n return $cursor = $cursor->getAll();\n }", "function asJSON(){\n\t\t\treturn json_encode($this->asArray());\n\t\t}", "public function getResult() {\n return json_encode($this->result);\n }", "public function to_array()\r\n {\r\n $d = array();\r\n\r\n if (!empty($this->http_status_code)) {\r\n $d['@http_status_code'] = $this->http_status_code;\r\n }\r\n if (!empty($this->visible_sources)) {\r\n $d['@visible_sources'] = $this->visible_sources;\r\n }\r\n if (!empty($this->available_sources)) {\r\n $d['@available_sources'] = $this->available_sources;\r\n }\r\n if (!empty($this->search_id)) {\r\n $d['@search_id'] = $this->search_id;\r\n }\r\n if (!empty($this->persons_count)) {\r\n $d['@persons_count'] = $this->persons_count;\r\n }\r\n\r\n if (!empty($this->warnings)) {\r\n $d['warnings'] = $this->warnings;\r\n }\r\n if (!empty($this->query)) {\r\n $d['query'] = $this->query->to_array();\r\n }\r\n if (!empty($this->person)) {\r\n $d['person'] = $this->person->to_array();\r\n }\r\n if (!empty($this->possible_persons)) {\r\n $d['possible_persons'] = array();\r\n foreach ($this->possible_persons as $possible_person) {\r\n $d['possible_persons'][] = $possible_person->to_array();\r\n }\r\n }\r\n if (!empty($this->sources)) {\r\n $d['sources'] = array();\r\n foreach ($this->sources as $source) {\r\n $d['sources'][] = $source->to_array();\r\n }\r\n }\r\n\r\n if (!empty($this->available_data)) {\r\n $d['available_data'] = $this->available_data->to_array();\r\n }\r\n\r\n if (!empty($this->match_requirements)) {\r\n $d['match_requirements'] = $this->match_requirements;\r\n }\r\n\r\n return $d;\r\n }", "public function toJson(){\n\t\t$array = $this->toArray();\n\t\treturn json_encode($array);\n\t}", "function getRelatedJsonArray($sql){\r\n\r\n\tif($sql) {\r\n\r\n\t\tglobal $db;\r\n\t\tif(!$db) connectDb();\r\n\r\n\t \t$jsonArray = array(\"groups\"=> array());\r\n\t\t$choiceId = 0;\r\n\t\t$total = 0;\r\n\t\t$result = $db->query($sql);\r\n\t\t$index = -1;\r\n\t\tforeach($result as $row) {\r\n\t\t\t$jsonArray[\"grouping_question\"] = $row[\"question1\"];\r\n\t\t\t$jsonArray[\"grouping_question_id\"] = $row[\"question_id1\"];\r\n\t\t\t$jsonArray[\"form_name\"]=$row[\"formName\"];\r\n\t\t\tif($row[\"choice_id1\"] != $choiceId) {\r\n\t\t\t\t$index++;\r\n\t\t\t\t$jsonArray[\"groups\"][] = array(\"option_id\"=>$row[\"choice_id1\"], \"option\"=>$row[\"choice1\"], \"answer\"=>array(\"question\"=>$row[\"question2\"], \"options\"=>array()));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$jsonArray[\"groups\"][$index][\"answer\"][\"options\"][] = array(\"title\"=>$row[\"choice2\"], \"votes\"=>$row[\"votes\"]);\r\n\t\t\t$choiceId = $row[\"choice_id1\"];\r\n\t\t}\r\n\t\t$jsonArray = array($jsonArray);\r\n\t\treturn array(\"answers\"=>$jsonArray);\n\t}\r\n\telse return null;\r\n}", "private function JSON($result)\n {\n // Check numb of rows\n if ($result) {\n $num = $result->num_rows;\n } else {\n $num = '';\n }\n // Create array\n $outputArr = [];\n // Output object\n if ($num > 0) {\n while ($row = $result->fetch_assoc()) {\n // Extract each value\n extract($row);\n // Create array items\n $arrItem = [\n 'Wid' => $Wid,\n 'Wname' => $Wname,\n 'Wtitle' => $Wtitle,\n 'WstartDate' => $WstartDate,\n 'WendDate' => $WendDate,\n 'Wdesc' => $Wdesc,\n 'UserID' => $UserID\n ];\n // Push to array\n array_push($outputArr, $arrItem);\n }\n // OK response\n http_response_code(200);\n\n // Output JSON\n echo json_encode($outputArr);\n } else {\n // Add error response code\n http_response_code(404);\n\n // If no items found\n echo json_encode(\n ['message' => 'No work found']\n );\n }\n }", "public static function toArray() {\n $str = \"\n SELECT id, firstName, lastName, email, password\n FROM indPrj_persons\";\n \n // Obtain an array of persons records.\n $records = Database::query($str);\n \n // Push each row into a new array to be outputted.\n $x = 0;\n $output = array();\n while($row = mysql_fetch_array($records)){\n $output[$x]['id'] = $row['id'];\n $output[$x]['firstName'] = $row['firstName'];\n $output[$x]['lastName'] = $row['lastName'];\n $output[$x]['email'] = $row['email'];\n $output[$x]['password'] = $row['password'];\n $x++;\n }\n \n return $output;\n }", "function return_json($sqlresult) {\n header(\"Content-type:application/json;charset=utf-8\");\n echo json_encode($sqlresult);\n }", "public function jsonSerialize()\n {\n return $this->all();\n }", "public function jsonSerialize()\n {\n return $this->all();\n }", "public function jsonSerialize()\n {\n return $this->all();\n }", "public function actionGetResultsListJson()\n {\n // Get params\n $year = (int)$this->request->getParam('year');\n $geo = $this->request->getParam('geo');\n $lang = \\yii::app()->languageCore;\n\n // Get jqGrid params\n $criteria = new \\EMongoCriteria();\n $criteria\n ->addCond('year', '==', $year)\n ->addCond('geo', '==', $geo)\n ->sort('prizePlace', \\EMongoCriteria::SORT_ASC);\n $jqgrid = $this->_getJqgridParams(Result::model(), $criteria);\n\n // Fill rows\n $rows = array();\n foreach ($jqgrid['itemList'] as $result) {\n $arrayToAdd = array(\n 'id' => (string)$result->_id,\n 'place' => $this->renderPartial('view/place', array('result' => $result), true),\n 'teamName' => $this->renderPartial('view/teamName', array('result' => $result), true),\n 'coachId' => $result->coachId,\n 'schoolName'.ucfirst($lang) => $result->schoolName,\n 'coachName'.ucfirst($lang) => $result->coachName,\n 'total' => $result->total,\n 'penalty' => $result->penalty\n );\n foreach ($result->tasksTries as $letter => $tries) {\n if (isset($tries)) {\n $arrayToAdd[$letter] = $tries;\n if ($tries > 0) {\n $datetime = new \\DateTime();\n $datetime->setTime(0, 0, $result->tasksTime[$letter]);\n $arrayToAdd[$letter] .= '&nbsp;(' . $datetime->format('G:i') . ')';\n }\n }\n }\n $rows[] = $arrayToAdd;\n }\n $this->renderJson(array(\n 'page' => $jqgrid['page'],\n 'total' => ceil($jqgrid['totalCount'] / $jqgrid['perPage']),\n 'records' => count($jqgrid['itemList']),\n 'rows' => $rows,\n ));\n }", "public function JsonDioceses() {\n $o_data = new Db();\n $qr_result = $o_data->query(\"select grandsparents.idno, CASE objects.status WHEN 0 THEN \\\"en attente\\\" WHEN 1 THEN \\\"en cours\\\" WHEN 2 THEN \\\"à valider\\\" WHEN 3 THEN \\\"validé\\\" ELSE \\\"valeur incohérente\\\" END as statut, count(*) as nombre from ca_objects as objects left join ca_objects as parents on parents.object_id=objects.parent_id left join ca_objects as grandsparents on parents.parent_id=grandsparents.object_id and grandsparents.type_id=261 where objects.type_id = 262 and objects.deleted=0 and parents.type_id=23 and parents.parent_id is not null and grandsparents.object_id is not null group by parents.parent_id, objects.status;\");\n $first=1;\n print \"[\";\n while($qr_result->nextRow()) {\n if(!$first) print \",\";\n print \"{\\\"idno\\\":\\\"\".$qr_result->get('idno').\"\\\",\\n\";\n print \"\\\"statut\\\":\\\"\".$qr_result->get('statut').\"\\\",\\n\";\n print \"\\\"nombre\\\":\\\"\".$qr_result->get('nombre').\"\\\"}\\n\";\n $first=0;\n }\n print \"]\\n\";\n exit;\n }", "public function query_result_ready_for_display($data){\n if($data != null && !empty($data)){\n foreach($data as &$row){\n $was_object = false;\n if(is_object($row)){\n $was_object = true;\n $row = json_decode(json_encode($row),true);\n }\n foreach($row as &$cell){\n if(is_array($cell)){\n $cell = $this->str_array_ready_for_display($cell);\n }else\n $cell = htmlspecialchars(stripslashes(trim($cell)));\n }\n if($was_object){\n $row = json_decode(json_encode($row));\n }\n }\n }\n\n return $data;\n }", "protected function prepareJsonStructure(){\n\t\t\n\t}", "protected function formatResult()\n\t{\n\t\t$this->arResult =& $this->dbResult;\n\t\t$this->arResult['ERRORS'] =& $this->errors;\n\n\t\t$this->arResult['FORM_ID'] = 'CRM_LOC_EDIT_FORM';\n\t\t$this->arResult['GRID_ID'] = 'CRM_LOC_EDIT_GRID';\n\n\t\tforeach($this->componentData['FORM_ROWS'] as $code => $row)\n\t\t{\n\t\t\t$required = $row['required'];\n\n\t\t\tif(!$required && mb_substr($code, 0, 5) == 'NAME_')\n\t\t\t\t$required = true;\n\n\t\t\t$this->arResult['FIELDS'][] = array(\n\t\t\t\t'id' => $code,\n\t\t\t\t'name' => $row['title'],\n\t\t\t\t'value' => Helper::makeSafeDisplay($this->arResult['FORM_DATA'][$code], $code),\n\t\t\t\t'required' => $required,\n\t\t\t\t'type' => 'text' // can and will be redefined at the template\n\t\t\t);\n\t\t}\n\n\t\tif($this->checkIsNonemptyArray($this->arResult['EXTERNAL_SERVICES']))\n\t\t{\n\t\t\t$this->arResult['FIELDS'][] = array(\n\t\t\t\t'id' => 'EXTERNAL',\n\t\t\t\t'required' => false\n\t\t\t);\n\t\t}\n\n\t\t$this->arResult['EXTERNAL_TABLE_COLUMNS'] = Helper::getExternalMap();\n\n\t\tunset($this->componentData);\n\t}", "function fetch_json_data($db_connection, $query)\n{\n if ($result = mysqli_query($db_connection, $query)) {\n while ($row = $result->fetch_array(MYSQLI_ASSOC)) {\n $jsondata[] = $row;\n }\n return json_encode($jsondata);\n }\n}", "function resultToArray($result,$fields,$encoding='')\r\n\t{\r\n\t\t$result_array = array();\r\n\t\twhile ($one_row=mysql_fetch_assoc($result))\r\n\t\t\t\t$result_array[]=$one_row;\r\n\t\treturn $result_array;\r\n\t}", "public function outputFilterJSON() {\n $filters = array(\n 'os' => array('WINNT', 'Darwin'),\n 'date' => array()\n );\n \n $_dates = $this->db->query_stats(\"SELECT DISTINCT date FROM {$this->table} ORDER BY date DESC\");\n while ($date = mysql_fetch_array($_dates, MYSQL_ASSOC)) $filters['date'][] = $date['date'];\n \n echo json_encode($filters);\n }", "public function resultToArray() {\n $array = array();\n\n if (is_array($this->_result)) {\n foreach ($this->_result as $res) {\n if (is_array($res)) {\n $array[] = $res;\n } else {\n $array[] = $this->fromObjectToArray($res);\n }\n }\n } else {\n $array[] = $this->fromObjectToArray($this->_result);\n }\n\n return $array;\n }", "public function get_all_items() {\n $this->get_all_statement->execute();\n\n $result = $this->get_all_statement->get_result();\n\n $rows = $result->fetch_all(MYSQLI_ASSOC);\n\n return json_encode($rows);\n }", "public function json_encode() {\n try{\n return json_encode((array)array_values(self::get_items()));\n }catch(Exception $e){\n throw $e;\n }\n }", "public function getAppointmentsListJSON() {\nglobal $_LW;\n$output=[];\nforeach($_LW->dbo->query('select', 'id, title', 'livewhale_appointments', false, 'title ASC')->run() as $res2) { // loop through and add appointments\n\t$output[]=['id'=>$res2['id'], 'title'=>$res2['title']];\n};\nreturn json_encode($output);\n}", "public function func_json_builder () {\n return json_encode ($this -> raw_data);\n }", "function get_special_filter_data(){\n include('../db.php');\n $query = \"SELECT * FROM FoodTruckHunter.SPECIAL_FOOD_TYPE\";\n $results = $db->query($query);\n if ($results === false){\n // db query returns false if the call failed\n echo \"Error, query failed.\";\n exit();\n }\n $num_query_results = $results->num_rows;\n if ($num_query_results == 0){\n // no results from the successful search\n echo \"Error, Special Food Type table appears to be empty\";\n exit();\n }\n\n // fetch first row from query. From the first row, ignore all key value pairs that are simply integers/numeric values\n // ie: 1: food-truck-name, 2: food-truck-id\n $output = array();\n $row = $results->fetch_array();\n foreach ($row as $key => $value){\n if (is_numeric($key) == false){\n $output[$key] = $value;\n }\n }\n\n\n while($row = $results->fetch_array()) {\n $rows[] = [\n 'id' => $row['foodtypeid'],\n \"food_type_name\" => $row['food_type_name'],\n \"creation_date\" => $row['creation_date'], //last_update_date\n \"last_update_date\" => $row['last_update_date']\n ];\n }\n header('Content-Type: application/json');\n echo json_encode($rows, JSON_PRETTY_PRINT);\n $db->close();\n}", "private function executeMultiResultQuery($query){\n\t\t// Perform Query\n\t\t$result = mysql_query($query);\n\t\t\n\t\t$rows = array();\n\t\t\n\t\twhile($row = mysql_fetch_assoc($result)) {\n\t\t\t$rows[] = $row;\n\t\t}\n\t\t\n\t\t// Free the resources associated with the result set\n\t\tmysql_free_result($result);\t\n\t\n\t\treturn json_encode($rows);\n\t}", "public function toJson();", "public function toJson();", "function queryAll() {\n\t$sql = \"select postcode,place_name,latitude,longitude FROM geo ORDER BY postcode\";\n\ttry {\n\t\t$db = getConnection();\n\t\t$stmt = $db->query($sql); \n\t\t$geoList = $stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t$db = null;\n\t\techo '{\"geo\": ' . json_encode($geoList) . '}';\n\t} catch(PDOException $e) {\n\t\techo '{\"error\":{\"text\":'. $e->getMessage() .'}}'; \n\t}\n}", "public function results(): array;", "public function getJson($statement, ...$column_names){\n $json_array = array();\n\n while ($row = $statement->fetchObject()){\n $tmp_data = null;\n foreach ($column_names as $key){\n\t$tmp_array[$key] = $row->$key;\n }\n $json_array[] = $tmp_array;\n }\n return json_encode($json_array, JSON_UNESCAPED_UNICODE);\n }", "protected function formatSingleResult(array $result)\n {\n $type = (string) $result['type'];\n if ($type === \"movie\") {\n $title = (string) Movie::render($result);\n } else {\n $title = (string) Show::render($result);\n }\n $year = (int) $result[$type]['year'];\n $traktId = (int) $result[$type]['ids']['trakt'];\n \n $arrJson = [\n \"type\" => $type,\n \"title\" => $title,\n \"year\" => $year,\n \"traktId\" => $traktId,\n ];\n return $arrJson;\n }", "private function tableJson() {\n $json = DB::table('products')\n ->leftjoin('categories', 'products.cid', '=', 'categories.id')\n ->leftjoin('sub_categories', 'products.scid', '=', 'sub_categories.id')\n ->select('products.*', 'categories.name as cname', 'sub_categories.name as sname')\n ->orderBy('products.id', 'DESC')\n ->get();\n\n return $json;\n }", "private function parse_result(){\n return json_decode($this->result);\n }", "public function formatToArray(){\n return [\n 'nombre' => $this->name,\n 'ciudad' => $this->cityId,\n 'email' => $this->email,\n 'telefono' => $this->tel,\n 'tipo_documento' => $this->typeDoc,\n 'documento' => $this->doc,\n 'direccion' => $this->addr,\n 'direccion_referencia' => $this->addRef,\n 'coordenadas' => $this->addrCoo,\n 'ruc' => $this->ruc,\n 'razon_social' => $this->socialReason,\n ];\n }", "public function toJson()\n {\n return json_encode($this->dataSource->toArray());\n }", "public function api_format_results( $pms=array() ) {\n\t\t\textract($pms);\n\n\t\t\t{\n\t\t\t\t$rsp = $this->api_search_set_stats(array(\n\t\t\t\t\t'requestData'\t\t\t\t=> $requestData,\n\t\t\t\t\t'response'\t\t\t\t\t=> $response,\n\t\t\t\t));\n\t\t\t\t$requestData = $rsp['requestData'];\n\t\t\t}\n\n // verify array of Items or array of Item elements\n if ( isset($response['Items']['Item']['ASIN']) ) {\n\t\t\t\t$response['Items']['Item'] = array( $response['Items']['Item'] );\n }\n\n\t\t\t$_response = array();\n\t\t\tforeach ( $response['Items']['Item'] as $key => $value){\n\t\t\t\t$_response[\"$key\"] = $value;\n\t\t\t}\n\t\t\t//var_dump('<pre>', $_response, '</pre>'); die('debug...');\n\n\t\t\treturn array(\n\t\t\t\t'requestData'\t=> $requestData,\n\t\t\t\t'response'\t\t=> $_response,\n\t\t\t);\n\t\t}", "public function get_json($path_name){\n\t\t$array=array();\n\t\twhile($row=@$this->fetch($this->assoc)){\n\t\t\t\t$array[(!empty($path_name)?$path_name:$this->qresult->table)][]=$row;\n\t\t}\n\t\t@$this->qresult->data_seek(0);\n\t\t@$this->qresult->field_seek(0);\n\t\treturn json_encode($array);\n\t}", "private function json_allSurveys()\n {\n $query = \"SELECT * FROM Surveys ORDER BY surveyID DESC LIMIT 1;\";\n $params = [];\n\n $nextpage = null;\n\n // This decodes the JSON encoded by getJSONRecordSet() from an associative array\n $res = json_decode($this->recordset->getJSONRecordSet($query, $params), true);\n\n $res['status'] = 200;\n $res['message'] = \"ok\";\n $res['next_page'] = $nextpage;\n return json_encode($res);\n }", "function json_FinishingList2() {\n\t\t$query = \"SELECT * FROM finishing DESC\";\n\t\t\n\t\tmysql_connect(DB_SERVER, DB_USER, DB_PASSWORD);\n\t\tmysql_select_db(DB_NAME);\n \t\n\t\t\t$result = mysql_query($query) or die(mysql_error());\t\n\t\t\t$rows = Array(); // returned object\n\t\t\t$rows['identifier'] = \"FinID\";\n\t\t\t\n \t\t\twhile($r=mysql_fetch_assoc($result)) {\n \t\t\t $rows['items'][] = $r;\n \t\t\t}\n\n\t\t\treturn json_encode($rows);\n\t\t\n\t}", "public function getData()\n {\n $row = $this->_row;\n $data = array(\n 'id' => intval($row['id']),\n 'mls_number' => $row['mls_number'],\n 'type' => $row['type'],\n 'price' => intval($row['price']),\n 'city' => $row['city'],\n 'subdivision' => $row['subdivision'],\n 'num_bedrooms' => ($row['bedrooms'] == 0 ? null : intval($row['bedrooms'])),\n 'num_bathrooms' => ($row['bathrooms'] == 0 ? null : floatval($row['bathrooms'])),\n 'num_sqft' => ($row['sqft'] == 0 ? null : intval($row['sqft'])),\n 'feed' => $row['idx'],\n 'source' => $row['table'],\n );\n return $data;\n }", "public function json(){\n $data = pinjamkbl::all();\n return DataTables::of($data)\n\n ->addColumn('buku',function($data){\n return $data->Buku->judul;\n })\n \n ->addColumn('anggota',function($data){\n return $data->Anggota->namaagt;\n })\n ->rawColumns(['buku','anggota'])->make(true);\n }", "public function toJson()\n {\n return Json::encode($this->toArray(), false, array(\n 'enableJsonExprFinder' => TRUE,\n ));\n }", "function parseFullResults($results) {\n\t\tfor ($i = 0; $i < count($results); $i++) {\n\t\t\t$results[$i][\"hash\"] = getHashCode($results[$i][\"id\"]);\n\t\t\t$results[$i][\"title\"] = stripslashes($results[$i][\"title\"]);\n\t\t}\n\t\treturn $results;\n\t}", "public function result_json($date = null)\n {\n $prizes = self::_get_result_from_date($date);\n return response()->json($prizes);\n }", "public function get_rows_json(){\n // Get query array of object with user items\n $userQuery = $this->user_model->get();\n // check if data from query is no null\n if ( count( $userQuery ) ) { \n foreach ( $userQuery as $row ) {\n switch ( $row->accessLevel ) {\n case '99':\n $type = \"Super Admin\";\n break;\n case '50':\n $type = \"Admin\";\n break;\n case '0':\n $type = \"User\";\n break;\n }\n $active = ( ( $row->active == 1 ) ? \"Active\" : \"Inactive\" );\n\n $arrayName[] = array(\n \"name\" => $row->firstName . ' ' . $row->surname . ' (' . $row->initials . ')',\n \"username\" => $row->username,\n \"chargeRate\" => $row->chargeRate,\n \"accessLevel\"=> $type,\n \"status\" => $active,\n \"actions\" => '<a href=\"#modalForm\" data-id=\"' . $row->userId . '\" class=\"modal-with-form modal-with-zoom-anim edit\"><i class=\"fa fa-pencil\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"\" data-original-title=\"Edit user details\"></i></a> <a href=\"#modalFormPassword\" data-id=\"' . $row->userId . '\" class=\"modal-with-form modal-with-zoom-anim update-password\"><i class=\"fa fa-key\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"\" data-original-title=\"Update password\"></i></a>',\n );\n }\n }else{ // return $arrayName empty\n $arrayName = empty( $arrayName ); \n }\n header( 'Content-Type: application/json' );\n echo '{ \"data\": ' . json_encode( $arrayName ) . '}';\n\n }", "function generateJSON(){\n\t\t $metadata = array();\n\t\t $metadata[\"tableID\"] = $this->tableID;\n\t\t $metadata[\"tableGroupID\"] = $this->tableGroupID;\n\t\t $metadata[\"tablePage\"] = $this->tablePage +0 ;\n\t\t $metadata[\"title\"] = $this->tableName;\n\t\t $metadata[\"description\"] = $this->tableDesciption;\n\t\t $metadata[\"tags\"] = $this->tableTags;\n\t\t $metadata[\"doi\"] = $this->tableDOI;\n\t\t $metadata[\"ark\"] = $this->tableARK;\n\t\t $metadata[\"versionControl\"] = $this->versionControl;\n\t\t $metadata[\"license\"] = $this->license;\n\t\t $metadata[\"recordCount\"] = $this->recordCount+0;\n\t\t $metadata[\"rawCreators\"] = $this->rawCreators;\n\t\t $metadata[\"rawContributors\"] = $this->rawContributors;\n\t\t $metadata[\"rawLinkedPersons\"] = $this->rawLinkedPersons;\n\t\t $metadata[\"projects\"] = $this->projects;\n\t\t $metadata[\"files\"] = $this->files;\n\t\t $metadata[\"tableFields\"] = $this->tableFields;\n\t\t $this->metadata = $metadata;\n\t\t return Zend_Json::encode($metadata);\n\t }", "public function get_results_as_JSON($chars){\n\t\t$query = \"SELECT $this->column_name FROM \" . $this->table . \" WHERE $this->column_name LIKE '\" . $chars . \"%' ORDER BY $this->column_name\";\n\t\t//if there are results for the current characters requested\n\t\t$data = array();\n\t\tif($matching_strings = Database::get_results_as_numerical_array($query, $this->column_name)){\n\t\t\tforeach($matching_strings as $matching_string){\n\t\t\t\t$json = array();\n\t\t\t\t$json['name'] = $matching_string;\n\t\t\t\t$json['value'] = $matching_string;\n\t\t\t\t$data[] = $json;\n\t\t\t}\n\t\t\treturn json_encode($data);\n\t\t}else return \"{ \\\"error\\\" : \\\"no results found\\\"}\";\n\t}", "function getInfoFromBD($sql)\n{\n $mysqli = makeSqlConnection();\n\t\t\n\t\t$res = $mysqli->query($sql);\n\n $rows = array();\n while($r = mysqli_fetch_assoc($res))\n {\n $obj = (object) $r;\n\n //$obj->assigned_user_name = getUserName($obj->assigned_user_id);\n $obj->contact_name = getContactName($obj->contact_id);\n $obj->parent_name = getParentName($obj->parent_type,$obj->parent_id);\n\n $a = (array) $obj;\n $rows[] = $a;\n }\n\n if( empty( $rows ) )\n {\n return '{\"results\" :[]}';\n }\n else\n {\n //Convierte el arreglo en json y lo retorna\n $temp = json_encode(utf8ize($rows));\n return '{\"results\" :'.$temp.'}';\n }\n}", "public function toJson()\n\t{\n\t\treturn json_encode($this->toArray(), \\JSON_PARTIAL_OUTPUT_ON_ERROR);\n\t}", "function queryToArray($t_mysqli, $t_query){\n $query_res = array('errors' => array(), 'query_data' => NULL);\n \n // ESEGUI LA QUERY\n $result = $t_mysqli->query($t_query);\n \n // LOOP PER OTTENERE ARRAY DEI DATI RACCOLTI\n $data = array();\n \n foreach ($result as $row) {\n $data[] = $row;\n }\n \n if (count($data) == 0) {\n array_push($query_res['errors'], array('id' => 120,\n 'htmlcode' => 500,\n 'message' => \"Select returned nothing\"));\n }\n \n // LIBERA MEMORIA OCCUPATA DA \"result\"\n $result->close();\n \n $query_res['query_data'] = $data;\n \n // RESTITUISCI I DATI SOTTO FORMA DI ARRAY\n return $query_res;\n}", "function getDatos(){\n $res = $this->Consulta('SELECT C.*, P.id_planta FROM '.$this->Table .' C\n INNER JOIN\n equipos E ON E.id_equipos = C.`id_equipos`\n INNER JOIN\n secciones S ON S.id_secciones = E.id_secciones\n INNER JOIN\n plantas P ON P.id_planta = S.id_planta\n \n WHERE '.$this->PrimaryKey.' = '.$this->_datos);\n $resultado = $res[0];\n // $resultado = array_map('utf8_encode',$resultado);\n \n print_r( json_encode( $resultado ) );\n }", "public function result()\n\t{\n\t\tif ($this->_result !== NULL)\n\t\t\treturn $this->_result;\n\t\t\n\t\t$result = array();\n\t\t\n\t\tif (count($this->items) > 0)\n\t\t{\n\t\t\t$result['rows'] = array();\n//\t\t\tLog::instance()->add(Log::NOTICE, Debug::vars($this->items));\n\t\t\t\n\t\t\tforeach ($this->items as $item)\n\t\t\t{\n\t\t\t\t// Extract aliased values from self::columns()\n\t\t\t\t$aliases \t= Arr::pluck($this->columns(), 'alias');\n\t\t\t\t$extracted \t= Arr::extract($item->as_array(), $aliases);\n\t\t\t\t\n\t\t\t\t// Remove the options aliased column\n\t\t\t\tunset($extracted[static::OPTIONS_ALIAS]);\n\t\t\t\t\n\t\t\t\t$values = array_values($extracted);\n\t\t\t\t\n\t\t\t\t// Map all values to array('value' => $value)\n\t\t\t\t$values = array_map(function($val) { \n\t\t\t\t\t\n\t\t\t\t\treturn array('value' => $val);\n\t\t\t\t\n\t\t\t\t}, $values);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Map options\n\t\t\t\t$options = array();\n\t\t\t\t\n\t\t\t\tforeach ($this->options() as $action => $details)\n\t\t\t\t{\n\t\t\t\t\t$options[] = array(\n\t\t\t\t\t\t'class' => $details['class'],\n\t\t\t\t\t\t'text' \t=> $details['text'],\n\t\t\t\t\t\t'url'\t=> Route::url('useradmin', array(\n\t\t\t\t\t\t\t'controller' \t=> $this->controller,\n\t\t\t\t\t\t\t'action'\t\t=> $action,\n\t\t\t\t\t\t\t'id'\t\t\t=> $item->id,\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// Push data to the rows array\n\t\t\t\t$result['rows'][] = array(\n\t\t\t\t\t'item'\t\t=> $item,\n\t\t\t\t\t'options' \t=> $options,\n\t\t\t\t\t'values' \t=> $values,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->_result = $result;\n\t}", "private function json()\n {\n return json_encode($this->data);\n }", "public function getFormattedQueryResults( $queryResults ) {\n\t\t$formattedQueryResults = $queryResults;\n\t\tforeach ( $queryResults as $rowNum => $row ) {\n\t\t\tforeach ( $row as $fieldName => $value ) {\n\t\t\t\tif ( trim( $value ) == '' ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( !array_key_exists( $fieldName, $this->mFieldDescriptions ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$fieldDescription = $this->mFieldDescriptions[$fieldName];\n\t\t\t\t$tableName = $this->mFieldTables[$fieldName];\n\t\t\t\t$fieldType = $fieldDescription->mType;\n\n\t\t\t\t$text = '';\n\t\t\t\tif ( $fieldDescription->mIsList ) {\n\t\t\t\t\t// There's probably an easier way to do\n\t\t\t\t\t// this, using array_map().\n\t\t\t\t\t$delimiter = $fieldDescription->mDelimiter;\n\t\t\t\t\t$fieldValues = explode( $delimiter, $value );\n\t\t\t\t\tforeach( $fieldValues as $i => $fieldValue ) {\n\t\t\t\t\t\tif ( trim( $fieldValue ) == '' ) continue;\n\t\t\t\t\t\tif ( $i > 0 ) $text .= \"$delimiter \";\n\t\t\t\t\t\t$text .= self::formatFieldValue( $fieldValue, $fieldType, $fieldDescription, $this->mParser );\n\t\t\t\t\t}\n\t\t\t\t} elseif ( $fieldType == 'Date' || $fieldType == 'Datetime' ) {\n\t\t\t\t\t$datePrecisionField = str_replace( ' ', '_', $fieldName ) . '__precision';\n\t\t\t\t\tif ( array_key_exists( $datePrecisionField, $row ) ) {\n\t\t\t\t\t\t$datePrecision = $row[$datePrecisionField];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$fullDatePrecisionField = $tableName . '.' . $datePrecisionField;\n\t\t\t\t\t\tif ( array_key_exists( $fullDatePrecisionField, $row ) ) {\n\t\t\t\t\t\t\t$datePrecision = $row[$fullDatePrecisionField];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// This should never\n\t\t\t\t\t\t\t// happen, but if it\n\t\t\t\t\t\t\t// does - let's just\n\t\t\t\t\t\t\t// give up.\n\t\t\t\t\t\t\t$datePrecision = CargoStore::FULL_PRECISION;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$text = self::formatDateFieldValue( $value, $datePrecision, $fieldType );\n\t\t\t\t} else {\n\t\t\t\t\t$text = self::formatFieldValue( $value, $fieldType, $fieldDescription, $this->mParser );\n\t\t\t\t}\n\t\t\t\tif ( $text != '' ) {\n\t\t\t\t\t$formattedQueryResults[$rowNum][$fieldName] = $text;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $formattedQueryResults;\n\t}" ]
[ "0.7135597", "0.7012307", "0.6724033", "0.66656214", "0.6651744", "0.66295654", "0.65153795", "0.6463572", "0.6425703", "0.6423361", "0.6412793", "0.6403433", "0.6393355", "0.635282", "0.627933", "0.626441", "0.6256797", "0.6250295", "0.62402874", "0.6205178", "0.6204832", "0.6155786", "0.61514795", "0.61360985", "0.6117803", "0.61017424", "0.6076484", "0.60712636", "0.6066659", "0.6056894", "0.60418063", "0.60410833", "0.6027852", "0.6026218", "0.6019081", "0.5982926", "0.59687614", "0.596629", "0.5958509", "0.5941799", "0.5941598", "0.59112227", "0.5901261", "0.58771914", "0.5861345", "0.58505243", "0.58465344", "0.5842376", "0.5828046", "0.58127636", "0.5811968", "0.5809835", "0.5808975", "0.5799001", "0.5799001", "0.5799001", "0.57935065", "0.579339", "0.5782188", "0.5781978", "0.5780901", "0.57790005", "0.5774753", "0.5764953", "0.57648635", "0.5745724", "0.57437587", "0.5729763", "0.57259023", "0.5713526", "0.57097167", "0.5708881", "0.5708881", "0.56961024", "0.5691453", "0.5685239", "0.56742984", "0.5671297", "0.56696916", "0.56655616", "0.5661957", "0.5653597", "0.56530565", "0.56512284", "0.5649583", "0.5645561", "0.56434196", "0.56359464", "0.5635039", "0.56299067", "0.562692", "0.56263405", "0.56249994", "0.5623936", "0.56221545", "0.562195", "0.5605462", "0.5585879", "0.55750674", "0.5572525" ]
0.60190475
35
Method fetchPreparedResults used to fetch an unknown number of rows from a db using prepared statements
protected function fetchPreparedResults($stmt, $columns){ // Array that accepts the data $data = array() ; // Parameter array passed to 'bind_result()' $params = array() ; foreach($columns as $col_name){ // 'fetch()' will assign fetched value to the variable '$data[$col_name]' $params[] =& $data[$col_name] ; } $res = call_user_func_array( array(&$stmt, "bind_result"), $params); // if success fetch results if(!$res){ $query_result = "bind_result() failed: " . $this->con->error . "\n" ; $query_status = false; } else { $i = 0; // fetch all rows of result and store in $query_result while($stmt->fetch()){ foreach($data as $key => $value){ $query_result[$i][$key] = $value; } $i++; } $query_status = true; } // close open connections $stmt->close(); $this->con->close(); // prepare and return results $results = array('results' => $query_result, 'status' => $query_status); return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchAll($statement, array $params = array());", "function getResultOfPreparedStatement($result){\n try {\n if($result->num_rows > 0){\n $DbResult = $result->fetch_all(MYSQLI_ASSOC);\n return $DbResult;\n }\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n}", "private function fetch_data($stmt) {\n\t\n\t\t$result = array();\n\t\n\t\tif ($stmt) {\n\t\n\t\t\t$metadata = $stmt->result_metadata();\n\t\t\t$fields = $metadata->fetch_fields();\n\t\n\t\t\tfor (;;) {\n\t\t\t\t$pointers = array();\n\t\t\t\t$row = new stdClass();\n\t\t\t\t$pointers[] = $stmt;\n\t\n\t\t\t\tforeach ($fields as $field) {\n\t\t\t\t\t$fieldname = $field->name;\n\t\t\t\t\t$pointers[] = &$row->$fieldname;\n\t\t\t\t}\n\t\n\t\t\t\tcall_user_func_array('mysqli_stmt_bind_result', $pointers);\n\t\n\t\t\t\tif ( !$stmt->fetch() ) { \n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t$result[] = $row;\n\t\t\t}\n\t\n\t\t\t$metadata->free();\n\t\t\t\n\t\t} else {\n\t\t\t$this->except( MYSQLI_ERR_FETCH_FAIL );\n\t\t}\n\t\n\t\treturn $result;\n\t\n\t}", "public function fetch_all($index=null)\n {\n $host = preg_replace('/^([^\\s]+).*$/', '\\1', mysqli_get_host_info(self::$db));\n\n $sql = $this->rs_sql ? $this->rs_sql: $this->get_select();\n $md5 = md5($sql);\n\n if (!$this->rs)\n {\n $rows = null;\n if ($this->cache && isset(self::$_result_cache[$md5]))\n {\n $rows = unserialize(gzuncompress(self::$_result_cache[$md5]));\n }\n\n if (($data_obj = Cache::get($md5)) && is_array($data_obj))\n {\n $rows = $data_obj;\n }\n\n if ($rows)\n {\n if ($this->debug)\n error_log('cached ('.count($rows).'): '.$sql);\n foreach ($rows as $i => $row)\n $rows[$i] = dict($row);\n return $rows;\n }\n\n $this->execute($sql);\n }\n\n $rows = array();\n while ($this->rs && ($row = mysqli_fetch_array($this->rs, MYSQLI_NUM)) && $row)\n {\n $j = count($rows);\n $res = array();\n $pri = array();\n foreach ($row as $i => $value)\n {\n $field = $this->rs_fields[$i];\n $res[$field->name] = $value;\n\n // NOT_NULL_FLAG = 1\n // PRI_KEY_FLAG = 2\n // UNIQUE_KEY_FLAG = 4\n // BLOB_FLAG = 16\n // UNSIGNED_FLAG = 32\n // ZEROFILL_FLAG = 64\n // BINARY_FLAG = 128\n // ENUM_FLAG = 256\n // AUTO_INCREMENT_FLAG = 512\n // TIMESTAMP_FLAG = 1024\n // SET_FLAG = 2048\n // NUM_FLAG = 32768\n // PART_KEY_FLAG = 16384\n // GROUP_FLAG = 32768\n // UNIQUE_FLAG = 65536\n\n if (!is_null($value))\n {\n if ($field->flags & 32768)\n $res[$field->name] = intval($value);\n }\n\n if ($field->flags & 2)\n $pri[] = $value;\n }\n if ($pri) $j = join(':', $pri);\n $rows[$index && array_key_exists($index, $res) ? $res[$index]: $j] = $res;\n }\n\n $this->recache($rows);\n\n foreach ($rows as $i => $row)\n $rows[$i] = dict($row);\n\n return $rows;\n }", "public function fetchAll($sql, $params = array());", "public function fetchAll($sql, $bind = [], $mode = PDO::FETCH_ASSOC, $useMaster = false);", "public function fetchPairs($sql, $params = array());", "public function fetchAll($queryString, array $preparedStatements = array())\n {\n return $this->query($queryString, $preparedStatements)->fetchAll(PDO::FETCH_OBJ);\n }", "protected function prepareSelectStatement() {}", "protected function fetchAll( $sql, $params = null ) {\n\t\t$this->logger->debug( $sql, $params ?: array() );\n\t\t$stmt = $this->dbh->prepare( $sql );\n\t\t$this->bind( $stmt, $params );\n\t\t$stmt->execute();\n\t\treturn $stmt->fetchAll();\n\t}", "public function executeGetRows($result) {\n try { \n if ($result->execute()) return $result->fetchAll(PDO::FETCH_ASSOC);\n else return 0;\n }\n catch (PDOException $e){ $this->reportDBError($e->getMessage().\"<hr>\".$e->getTraceAsString()); } \n }", "public function executePreparedSelect(string $queryString, string $types, array $vars, &...$results) {\n\n foreach($vars as $var) {\n $var = $this->dbConnection->real_escape_string($var);\n }\n\n $sqlStatement = $this->dbConnection->prepare($queryString);\n $sqlStatement->bind_param($types, ...$vars);\n\n $sqlStatement->execute();\n $sqlStatement->bind_result(...$results);\n $sqlStatement->store_result();\n return $sqlStatement;\n }", "public function fetchAll(&$statement)\n {\n return $this->db_handler->fetchAllRows($statement);\n }", "public function fetch_multi($s_where=null,$i_start=null,$i_limit=null)\r\n {\r\n try\r\n {\r\n \t$ret_=array();\r\n \t$s_qry=\"SELECT * \r\n\t\t\t\t\tFROM \".$this->tbl.\" n \"\r\n\t\t\t\t\t.($s_where!=\"\"?$s_where:\"\" ).(is_numeric($i_start) && is_numeric($i_limit)?\r\n\t\t\t\t\t\"Limit \".intval($i_start).\",\".intval($i_limit):\"\" );\r\n $rs=$this->db->query($s_qry);\r\n $i_cnt=0;\r\n if($rs->num_rows()>0)\r\n {\r\n foreach($rs->result() as $row)\r\n {\r\n $ret_[$i_cnt][\"id\"]\t\t\t\t=\t$row->i_id;////always integer\r\n $ret_[$i_cnt][\"s_title\"]\t\t\t=\tstripslashes($row->s_title); \r\n\t\t\t\t $s_desc \t\t\t\t\t\t\t= \tstrip_tags(stripslashes($row->s_description));\r\n\t\t\t\t if(strlen($s_desc)>197)\r\n\t\t\t\t \t$s_desc \t\t\t\t\t\t= \tsubstr_replace($s_desc,'...',200);\r\n $ret_[$i_cnt][\"s_description\"]\t= \t$s_desc ; \r\n $ret_[$i_cnt][\"s_photo\"]\t\t\t=\tstripslashes($row->s_photo); \r\n $ret_[$i_cnt][\"dt_created_on\"]\t=\tdate($this->conf[\"site_date_format\"],intval($row->dt_cr_date)); \r\n $ret_[$i_cnt][\"i_is_active\"]\t\t=\tintval($row->i_is_active); \r\n\t\t\t\t $ret_[$i_cnt][\"s_is_active\"]\t\t=\t(intval($row->i_is_active)==1?\"Active\":\"Inactive\");\r\n \r\n $i_cnt++;\r\n } \r\n $rs->free_result(); \r\n }\r\n unset($s_qry,$rs,$row,$i_cnt,$s_where,$i_start,$i_limit, $s_desc);\r\n return $ret_;\r\n \r\n }\r\n catch(Exception $err_obj)\r\n {\r\n show_error($err_obj->getMessage());\r\n } \r\n }", "public function fetchData()\n\t{\n\t\tif (isset($this->rows))\n\t\t{\n\t\t\treturn $this->rows;\n\t\t}\n\t\t$this->rows = parent::fetchData();\n\t\tif ($this->force_count)\n\t\t{\n\t\t\treturn $this->rows;\n\t\t}\n\n\t\tif (count($this->rows) > $this->pagination->pageSize)\n\t\t{\n\t\t\t$this->hasMore = true;\n\t\t\tarray_pop($this->rows);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->hasMore = false;\n\t\t}\n\t\t$this->totalItemCount = $this->pagination->offset + count($this->rows);\n\t\t$this->pagination->itemCount = $this->totalItemCount + ($this->hasMore ? 1 : 0);\n\t\treturn $this->rows;\n\t}", "function loadMoreRows($sql,$options=[]){\n $stmt = $this->prepareParams($sql,$options);\n $check = $stmt->execute();\n if($check){\n return $stmt->fetchAll(PDO::FETCH_OBJ);\n }\n else return false;\n }", "public function fetch_multi($s_where=null,$i_start=null,$i_limit=null)\r\n {\r\n \r\n }", "public function fetchAll($sql);", "public function fetchAll($sql);", "public abstract function fetchRow($result_set);", "function numRows( $res );", "public function bindResults(array $bind_results);", "public function fetchRowset()\n\t{\n\t\t$this->_query();\n\n\t\treturn $this->stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "public function fetch($stmt_string, $types, $array_of_bindings) {\n\t\tif (!($conn = $this->connect())) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!($stmt = $conn->prepare($stmt_string))) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor ($i = 0; $i < count($array_of_bindings); $i++) {\n\t\t\t$bind_name = 'bind' . $i;\n\t\t\t$$bind_name = $array_of_bindings[$i];\n\t\t\t$bind_names[] = &$$bind_name;\n\t\t}\n\n\t\tif (!call_user_func_array(array($stmt, \"bind_param\"), array_merge(array($types), $bind_names))) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!($stmt->execute())) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$result = $stmt->get_result();\n\t\tif (!$result) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t$rows = [];\n\t\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t\t$rows[] = $row;\n\t\t\t}\n\t\t}\n\n\t\t$stmt->close();\n\t\treturn $rows;\n\t}", "public function fetch($stmt = false) {\r\n\t$results = array();\r\n\t\r\n\t//$stmt->store_result();\r\n\r\n\tif ($stmt) {\r\n\t $fields = $stmt->result_metadata()->fetch_fields();\r\n\t $args = array();\r\n\t foreach ($fields AS $field) {\r\n\t\t$key = str_replace(' ', '_', $field->name); // space may be valid SQL, but not PHP\r\n\t\t$args[$key] = &$field->name; // this way the array key is also preserved\r\n\t }\r\n\t call_user_func_array(array($stmt, \"bind_result\"), $args);\r\n\t if ($stmt->fetch()) {\r\n\t\t$results = array_map(\"copy_value\", $args);\r\n\t } else if($stmt->errno != 0) {\r\n\t\t $this->oops($stmt->error);\r\n\t } else {\r\n\t\treturn null;\r\n\t }\r\n\t} else {\r\n\t $this->oops(\"Invalid statement. Records could not be fetched.\");\r\n\t}\r\n\r\n\treturn $results;\r\n }", "function ExecutePreparedQuery($sql, $vars)\n\t{\n\t\tif(empty($pdo))\n\t\t{\n\t\t\t$connectDb = \"mysql:host=\" . $dbServer . \";dbname=\" . $dbName;\n\t\t\t$pdo = new pdo($connectDb, $dbUser, $dbPass);\n\t\t\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t$query = $pdo->prepare($sql);\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\techo(\"<b><font color=\\\"red\\\">Error executing sql query:</font><br><br>\");\n\t\t\tprint_r($e->getMessage());\n\t\t\tdie();\n\t\t}\n\t\tif($query)\n\t\t\t$query->execute($vars);\n\t\telse\n\t\t{\n\t\t\tprint_r($pdo->errorInfo);\n\t\t\tdie();\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\treturn $query->fetchAll(PDO::FETCH_ASSOC);\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\t// An insert will throw, this is crappy and should probably be handled better\n\t\t\treturn \"\";\n\t\t}\n\t}", "function execute_params($sql, $param_array)\n\t{\n\t\t// Using an empty string as stmtname here overwrites any\n\t\t// previous prepared statement making multiple prepares\n\t\t// easily doable\n\t\t$q = pg_prepare($this->connection, '', $sql);\n\t\t$q = pg_execute($this->connection, '', $param_array);\n\t\t$rows = array();\n while($r = pg_fetch_array($q, null, PGSQL_ASSOC))\n {\n array_push($rows, $r);\n }\n\t\tpg_free_result($q);\n\n\t\treturn $rows;\n\t}", "function fetch_all($sql, $values = false)\n {\n $sth = $this->dbh->prepare($sql);\n\n if ($sth == false) {\n $this->err(\"fetch_all: $sql\");\n return null;\n }\n\n if ($values) {\n $sth->execute($this->_ensure_array($values));\n } else {\n $sth->execute(); \n }\n \n $rows = $sth->fetchAll(PDO::FETCH_ASSOC);\n\n return $rows;\n }", "public function fetchAll()\r\n {\r\n $this->query();\r\n return $this->sth->fetchAll();\r\n }", "public function fetchAll($sql, $bind){\n $sth = $this->db->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));\n /* example:\n $bind = array(':calories' => 150, ':colour' => 'red');\n */\n $sth->execute($bind);\n return $sth->fetchAll(PDO::FETCH_ASSOC);\n }", "function &SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$arg3=false,$secs2cache=0) \r\n\t {\r\n\t $offsetStr = ($offset >= 0) ? \" OFFSET $offset\" : '';\r\n\t $limitStr = ($nrows >= 0) ? \" LIMIT $nrows\" : '';\r\n\t return $secs2cache ?\r\n\t $this->CacheExecute($secs2cache,$sql.\"$limitStr$offsetStr\",$inputarr,$arg3)\r\n\t :\r\n\t $this->Execute($sql.\"$limitStr$offsetStr\",$inputarr,$arg3);\r\n\t }", "public function fetch()\n {\n try {\n $sth = $this->conn->prepare($this->query);\n if ($sth->execute($this->bind) !== false)\n {\n if ($sth->execute() !== false) {\n $result = $sth->fetchAll(PDO::FETCH_ASSOC);\n $this->countable = sizeof($result);\n return $result;\n }\n }\n }\n catch(PDOException $e) {\n $this->errors[] = $e->getMessage();\n return false;\n }\n }", "function getNProducts($bdd, $n){\n\t$reponse = $bdd->prepare('SELECT * FROM products LIMIT :limit');\n\t$reponse->bindValue(':limit', $n, PDO::PARAM_INT);\n\t$reponse->execute();\n\treturn $reponse->fetchAll();\n}", "public function fetchAll($sql, array $parameters = [])\n {\n $stm = $this->lazyLoad()->prepare($sql);\n $stm->execute($parameters);\n $array = $stm->fetchAll(\\PDO::FETCH_ASSOC);\n // @see https://stackoverflow.com/a/883382/1335142\n #$this->numRows = $stm->rowCount();\n\n return $array;\n }", "protected function _fetchAll($results)\r\n {\r\n return pg_fetch_all($results);\r\n }", "abstract protected function doFetchAll();", "function db2_fetch_row($stmt, $row_number = NULL)\n{\n}", "protected final function fetchRecords()\n {\n $this->query->setLimit(\n (($this->parameters->getCurrentPage() - 1) * $this->parameters->getResultsPerPage()),\n $this->parameters->getResultsPerPage()\n );\n\n $this->data = $this->query->execute()->getAssociative();\n }", "function getMany($query, array $binds = [], $conn)\n{\n $statement = $conn->prepare($query);\n foreach($binds as $key => $value) {\n $statement->bindValue($key, $value);\n }\n $statement->execute();\n $results = $statement->fetchAll();\n $statement->closeCursor();\n return $results;\n}", "function spilit_result($page,$results_per_page,$base_query,$query_param){\r\n\ttry{\r\n\t\tglobal $conn;\r\n\t\t$start = ($page-1) * $results_per_page;\r\n\t\t$sql_quary = $base_query.\" LIMIT \".$start.\", \".$results_per_page;\r\n\t\t$sql = $conn->prepare($sql_quary);\r\n\r\n\t\tif(count($query_param)>0){\r\n\t\t\tforeach($query_param as $key => &$val){\r\n\t \t\t$sql->bindparam($key, $val);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$sql->execute();\r\n\t\t$numRows = $sql->fetchAll();\r\n\r\n\t\t$sql = $conn->prepare($base_query);\r\n\t\tif(count($query_param)>0){\r\n\t\t\tforeach($query_param as $key => &$val){\r\n\t \t\t$sql->bindparam($key, $val);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t$sql->execute();\r\n\t\t$num_results = count($sql->fetchAll());\r\n\t\t$total_pages = ceil($num_results/$results_per_page);\r\n\r\n\t\treturn array($numRows,$total_pages);\r\n\t}\r\n\tcatch(Exception $e){\r\n\t\t//header(\"Location:index.php\");\r\n\t}\r\n}", "function fetchAll($sql, $array, $objectName = null);", "public function executeSQL($stmt) {\n try {\n $stmt->execute();\n $rows = $stmt->fetchAll();\n } catch(PDOException $e) {\n die(\"Query failed: \" . $e->getMessage());\n }\n return $rows;\n }", "function fetchAll($res = null, $fmt = 'a')\n{\n\t$rows = array();\n\twhile ($row = $this->drv->fetch($res, $fmt)) {\n\t\t$rows[] = $row;\n\t}\n\treturn $rows;\n}", "abstract protected function getRows();", "abstract public function get_rows();", "function oci_set_prefetch($statement, $rows)\n{\n}", "function getRows() {\n if ($this->_recordset === null) {\n // begin processing result into recordset\n $this->_entries = ldap_get_entries($this->dbh->connection, $this->result);\n $this->row_counter = $this->_entries['count'];\n $i = 1;\n $rs_template = array();\n if (count($this->dbh->attributes) > 0) {\n reset($this->dbh->attributes);\n while (list($a_index, $a_name) = each($this->dbh->attributes)) $rs_template[$a_name] = '';\n }\n while (list($entry_idx, $entry) = each($this->_entries)) {\n // begin first loop, iterate through entries\n if (!empty($this->dbh->limit_from) && ($i < $this->dbh->limit_from)) continue;\n if (!empty($this->dbh->limit_count) && ($i > $this->dbh->limit_count)) break;\n $rs = $rs_template;\n if (!is_array($entry)) continue;\n while (list($attr, $attr_values) = each($entry)) {\n // begin second loop, iterate through attributes\n if (is_int($attr) || $attr == 'count') continue;\n if (is_string($attr_values)) $rs[$attr] = $attr_values;\n else {\n $value = '';\n while (list($value_idx, $attr_value) = each($attr_values)) {\n // begin third loop, iterate through attribute values\n if (!is_int($value_idx)) continue;\n if (empty($value)) $value = $attr_value;\n else {\n if (is_array($value)) $value[] = $attr_value;\n else $value = array($value, $attr_value);\n }\n// else $value .= \"\\n$attr_value\";\n // end third loop\n }\n $rs[$attr] = $value;\n }\n // end second loop\n }\n reset($rs);\n $this->_recordset[$entry_idx] = $rs;\n $i++;\n // end first loop\n }\n $this->_entries = null;\n if (!is_array($this->_recordset))\n $this->_recordset = array();\n if (!empty($this->dbh->sorting)) {\n $sorting_method = (!empty($this->dbh->sorting_method) ? $this->dbh->sorting_method : 'cmp');\n uksort($this->_recordset, array(&$this, $sorting_method));\n }\n reset($this->_recordset);\n // end processing result into recordset\n }\n return DB_OK;\n }", "function pdo_preparedStmt($pdo,$query,$parmList,$parmData){\n$sql = $pdo->prepare($query);\nfor ($i=0; $i < count($parmList); $i++) { \n $sql->bindParam($parmList[$i], $parmData[$i]);\n}\n\nreturn $sql->execute();\n}", "public function fetchRow();", "public function resultset($bind_array=array());", "function db2_next_result($stmt)\n{\n}", "public function testFetchReturnsMultipleRowsFromResultSet() {\n $fixtures = array(\n array(\n \"r1c1\" => \"v1\",\n \"r1c2\" => \"v2\"\n ),\n array(\n \"r2c1\" => \"v1\",\n \"r2c2\" => \"v2\"\n ) \n );\n \n $stub = $this->getMockBuilder(\"\\Examples\\ThriftServices\\Hive\\HivePDOStatement\")\n ->disableOriginalConstructor()\n ->setMethods(array(\"getResultSet\", \"hasResultSet\", \"_fetch\"))\n ->getMock();\n \n $rs = $this->getMockBuilder(\"\\Examples\\ThriftServices\\Hive\\HivePDOResultSet\")\n ->disableOriginalConstructor()\n ->setMethods(array())\n ->getMock();\n \n $rs->expects($this->exactly(2))\n ->method(\"getRow\")\n ->will($this->onConsecutiveCalls($fixtures[0], $fixtures[1]));\n \n $stub->expects($this->exactly(3))\n ->method(\"hasResultSet\")\n ->will($this->onConsecutiveCalls(false, true, true));\n \n $stub->expects($this->exactly(2))\n ->method(\"_fetch\")\n ->will($this->returnValue($rs));\n \n $rs->expects($this->exactly(5))\n ->method(\"isEmpty\")\n ->will($this->onConsecutiveCalls(false, false, false, false, true));\n \n $rs->expects($this->exactly(2))\n ->method(\"key\")\n ->will($this->onConsecutiveCalls(1, null));\n \n $stub->expects($this->exactly(2))\n ->method(\"getResultSet\")\n ->will($this->returnValue($rs));\n \n \n $result = array();\n while($row = $stub->fetch()) {\n array_push($result, $row);\n }\n \n $this->assertEquals(count($fixtures), count($result));\n $this->assertInternalType('array', $result);\n $this->assertSame($fixtures, $result);\n }", "public static function fetch_all($params) {}", "public function fetchAll($fetch_style = null, $fetch_argument = null, $ctor_args = []) {\n $result = [];\n if (!$this->success) return false;\n $num_rows = odbc_num_rows($this->stmt);\n if ($this->fetch_mode === false || !$num_rows) return [];\n \n if ($fetch_style === PDO::FETCH_COLUMN) {\n while ($_fetch_response = $this->fetchColumn($fetch_argument ?: 0)) {\n $result[] = $_fetch_response;\n }\n return $result;\n } else {\n $current_fetch = $this->_get_fetch_mode_complete();\n //Set the fetch mode temporarily in this case\n if ($fetch_style === PDO::FETCH_OBJ || $fetch_style === PDO::FETCH_CLASS) {\n $this->setFetchMode($fetch_style, $fetch_argument, $ctor_args);\n }\n $exception = false;\n $count = 0;\n $continue_fetching = true;\n while ($continue_fetching) {\n try {\n $_fetch_response = $this->fetch($fetch_style);\n } catch (Exception $e) {\n $exception = $e;\n $continue_fetching = false;\n break;\n }\n if (!$_fetch_response) break;\n $result[] = $_fetch_response;\n $count++;\n }\n if (($num_rows != $count) && $exception) throw $exception;\n $this->_set_fetch_mode_complete($current_fetch);\n }\n \n return $result;\n }", "public function fetchAllPaginated($sql, $params = array(), $itemsPerPage, $isFirstPage);", "public function fetchArray($statement, array $params = array());", "public function query($stmt, $params = []){\n // Prepare statement to avoid all SQL injection\n\t\t\t$query = $this->connection->prepare($stmt);\n\t\t\t$query->execute($params);\n $result = $query->fetchAll();\n $this->rowCount = $query->rowCount();\n return $result;\n }", "public function fetchRow($sql);", "public function fetchRow($sql);", "function sql_fetch_row($res)\n {\n $results = array();\n if ($res)\n $results = $res->fetch(PDO::FETCH_NUM); \n return $results;\n }", "function fetchList($select,$where = \"\",$order = \"\",$values = null){\n //if( ! is_object($this)) {\n // print_pre(debug_backtrace(),\"fetchList: debug_backtrace\");\n //}\n \n $qstr = \"select $select\";\n if( $where != \"\" ) $qstr .= \" where $where\";\n if( $order != \"\" ) $qstr .= \" order by $order\";\n \n //print \"fetchVal: qstr: $qstr<br>\\n\";\n $result = $this->query(\"$qstr\",$values);\n //print_pre($result,\"dbh\");\n $r = $result->fetchAll(PDO::FETCH_COLUMN);\n //print_pre($r,\"result fetchAll\");\n //print_pre($dbh,\"dbh\");\n return $r;\n }", "public function getFoundRows();", "public function fetchAll()\n {\n $this->execute();\n return $this->dbStmt->fetchAll(PDO::FETCH_ASSOC);\n }", "public function fetchAll() {\n $this->execute();\n return $this->stmt->fetchAll(PDO::FETCH_OBJ);\n }", "public function fetch(){\n\n $rows = [];\n\n while($row = $this->result->fetch(PDO::FETCH_ASSOC)) {\n $rows[]=$row;\n }\n\n $this->result=null;\n\n return $rows;\n\n }", "public function fetchRows( $type = FETCH_OBJ );", "public function getSqlResults() \n\t{\n\t\t$array = $this->getSqlStatments();\n\t\tfor ($i=0; $i < count($array); $i++) {\n\t\t\t$q = $this->connection->prepare($array[$i]);\n\t\t\t$q->execute();\n\t\t\t$r = $q->fetchAll(\\PDO::FETCH_ASSOC);\n\t\t\t$this->sql_query_results[] = $r;\n\t\t}\n\t\treturn $this->sql_query_results;\n\t}", "public function testFetchAllWithParameters()\n {\n $this->mockPdoStatement->shouldReceive('execute')->once()->withNoArgs();\n $this->mockPdoStatement->shouldReceive('setFetchMode')->once()->with('parameters', 'value')->andReturnSelf();\n $this->mockPdoStatement->shouldReceive('fetchAll')->once()->withNoArgs()->andReturn('fetched');\n $this->mockPdo->shouldReceive('prepare')->once()->with('SQL')->andReturn($this->mockPdoStatement);\n\n\n $query = (new Select($this->mockConnection));\n $query->query('SQL', []);\n $this->assertEquals('fetched', $query->fetchAll('parameters', 'value'));\n }", "public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function fetchAll($fetchMode = \\PDO::FETCH_BOTH);", "function fetch($result)\n{ \n// This function will turn mysqli results into an array\n\n $array = array();\n\n if($result instanceof mysqli_stmt)\n {\n $result->store_result();\n\n $variables = array();\n $data = array();\n $meta = $result->result_metadata();\n\n while($field = $meta->fetch_field())\n $variables[] = &$data[$field->name];\n\n call_user_func_array(array($result, 'bind_result'), $variables);\n\n $i=0;\n while($result->fetch())\n {\n $array[$i] = array();\n foreach($data as $k=>$v)\n $array[$i][$k] = $v;\n $i++;\n }\n }\n elseif($result instanceof mysqli_result)\n {\n while($row = $result->fetch_assoc())\n $array[] = $row;\n }\n\n return $array;\n}", "function query_array($sql=null)\n{\nglobal $db,$debug;\n \ntry { \n if ($debug) \n $time_start = microtime(true); \n \n $stmt = $this->db['conn']->prepare($sql);\n $stmt->execute();\n \n if ($debug){\n $time = microtime(true)- $time_start; \n echo \"<HR>Executed SQL:<strong> $sql </strong> in <strong>$time</strong> s<HR>\";\n }\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC); //PDO::FETCH_NUM | PDO::FETCH_ASSOC\n return $results ;\n} catch (PDOException $e) {\n $this->fatal_error(\" Database Error!: <strong>\". $e->getMessage() .\"</strong> SQL: $sql <br /> Using DSN \".$this->db['dsn'].\"<br/>\");\n die(); die();\n}\n\n}", "public static function prepareQueryResult($res) {\r\n $keys = call_user_func(array(get_called_class(), 'getKeys'));\r\n //identify all parameters with \"colname\" set\r\n $column_keys = array();\r\n foreach ($keys as $key => $val) {\r\n if (isset($val['colname']) && $val['colname'] != null)\r\n $column_keys[$key] = $val['colname'];\r\n }\r\n\r\n //for all items\r\n $ret = array();\r\n foreach ($res as $row) {\r\n $ret_row = array();\r\n //for the identified parameters\r\n foreach ($column_keys as $key => $val)\r\n //execute $row->get<ParameterColname>\r\n $ret_row[$key] = call_user_func(array($row, \"get\" . $val));\r\n $ret[] = $ret_row;\r\n }\r\n return $ret;\r\n }", "public function simple_fetch($stmt_string) {\n\t\tif (!($conn = $this->connect())) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!($stmt = $conn->prepare($stmt_string))) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!$stmt->execute()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$result = $stmt->get_result();\n\t\tif (!$result) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t$rows = [];\n\t\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t\t$rows[] = $row;\n\t\t\t}\n\t\t}\n\n\t\treturn $rows;\n\t}", "protected function bind_results($stmt) {\n\t\t\t$fields_var = array();\n\t\t\t$results = null;\n\t\t\t\n\t\t\t$meta = $stmt->result_metadata();\n\n\t\t\t//check if it's INSERT, if so return ID;\n\t\t\tif($meta) {\n\t\t\t\twhile ($field = $meta->fetch_field()) {\n\t\t\t\t\t$field_name = $field->name;\n\t\t\t\t\t$$field_name = null;\n\t\t\t\t\t$fields_var[$field_name] = &$$field_name;\n\t\t\t\t}\n\t\t\t\tcall_user_func_array(array($stmt,'bind_result'),$fields_var);\n\t\t\t\t$results = array();\n\t\t\t\t\n\t\t\t\tif($stmt->num_rows == 1) {\n\t\t\t\t\t$stmt->fetch();\n\t\t\t\t\tforeach($fields_var as $k => $v) {\n\t\t\t\t\t\t$results[$k] = $v;\n\t\t\t\t\t\t$this->{$k} = $v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if($stmt->num_rows > 1) {\n\t\t\t\t\t$i = 0;\n\t\t\t\t\twhile($stmt->fetch()) {\n\t\t\t\t\t\t$results[$i] = array();\n\t\t\t\t\t\tforeach($fields_var as $k => $v) {\n\t\t\t\t\t\t\t$results[$i][$k] = $v;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $results;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $stmt->insert_id;\n\t\t\t}\n\n\t\t}", "function pdo_fetch_all(PDOStatement $pdo_statement, $fetch_style = PDO::FETCH_ASSOC)\n {\n return $pdo_statement->fetchAll($fetch_style);\n }", "public function fetchAll() {\r\n\t\t$result = array();\r\n\r\n\t\twhile ($data = $this->fetch()) {\r\n\t\t\t$result[] = $data;\r\n\t\t}\r\n\r\n\t\t$this->freeResult();\r\n\r\n\t\treturn $result;\r\n\t}", "function fetch_first_row() {\n $args = func_get_args();\n $args_count = func_num_args();\n if ($args_count == 1) {\n $sql = $args[0];\n }\n else {\n $sql = $args[0];\n }\n\n global $db_host, $db_user, $db_pass, $db_name;\n $conn = new mysqli($db_host, $db_user, $db_pass, $db_name);\n if ($conn->connect_errno) {\n echo T_(\"<h1>데이터베이스에 연결하던 도중 오류가 발생했습니다.</h1>\");\n exit;\n }\n $conn->query(\"SET time_zone = '+9:00'\");\n $stmt = $conn->prepare($sql);\n if ($args_count != 1) {\n $sliced = array_slice($args, 1);\n call_user_func_array(array($stmt, \"bind_param\"), make_values_referenced($sliced));\n }\n $stmt->execute();\n $stmt->store_result();\n\n if ($stmt->num_rows > 0) {\n bind_array($stmt, $row);\n $stmt->fetch();\n $stmt->close();\n $conn->close();\n return $row;\n }\n else {\n $stmt->close();\n $conn->close();\n return false;\n }\n}", "public function executePreparedQuery($rq, &$args) {\n $rqType = explode(' ', $rq);\n $stmt = $this->con->prepare($rq);\n\n foreach ($args as $k => $v) {\n $stmt->bindValue($k + 1, $v);\n }\n $stmt->execute();\n if ($this->debug)\n {\n error_log(serialize($stmt->errorInfo()));\n }\n if (preg_match(\"/insert|delete|update/\", strtolower($rqType[0]))) {\n return $stmt->rowCount();\n } else {\n return $stmt->fetchall();\n }\n }", "abstract public function prepareSelect();", "public function rawFetch(array $param = array('query'=>'','arrData'=>[])) {\n $qry = isset($param['query']) ? $param['query'] : '';\n $arrData = isset($param['arrData']) ? $param['arrData'] : [];\n\n if( empty( $qry ) ) {\n echo \"missing query\";\n die;\n }\n \n $insert_values = [];\n \n $qry = trim(preg_replace('/\\s+/', ' ', $qry));\n\n if( !empty( $qry ) ) {\n $countQuestionMarks = substr_count($qry,\"?\");\n\n if( count($arrData) != $countQuestionMarks ) {\n echo \"data count doesn't match with column count.\";\n die;\n }\n\n if( count( $arrData ) ) {\n $insert_values = $arrData;\n }\n }\n\n $strQry = $qry;\n $pdo = $this->getConnection();\n $this->stmt = $pdo->prepare($strQry);\n\n if( count( $insert_values ) ) {\n $executed = $this->stmt->execute($insert_values);\n } else {\n $executed = $this->stmt->execute();\n }\n \n if( $executed ) {\n $count = $this->stmt->rowCount(); // effected rows if updated with same value\n $result = $this->stmt->fetchAll();\n \n if( count($result) > 0 ) {\n // echo count($result) . ' record(s) found.<br>';\n // echo $count . ' record(s) found.<br>';\n // print_r( $result );\n return [\n 'success' => true,\n 'message' => $count . ' record(s) found.',\n 'data' => $result,\n ];\n } else {\n return [\n 'success' => false,\n 'message' => 'fails to get record(s)',\n 'data' => null,\n ];\n }\n } else {\n return [\n 'success' => false,\n 'message' => 'fails to get record(s)',\n 'data' => null,\n ];\n }\n\n $this->stmt = null;\n die;\n }", "function fetchAll() {\r\n if($this->getNumRows() <= 0)\r\n throw new Exception(\"No Recored Found\");\r\n \r\n while ($row = mysql_fetch_array($this->m_Result)) {\r\n $a_rs[] = $row;\r\n }\r\n mysql_free_result($this->m_Result);\r\n return $a_rs;\r\n \r\n }", "public function all(string $sql, $params = null)\n\t{\n\t\t$resultSet = null;\n\t\t\n\t\ttry {\n\t\t\t$preparedStatement = $this->_instance->prepare($sql);\n\t\t\t$preparedStatement->execute($params);\n\t\t\t$resultSet = $preparedStatement->fetchAll(PDO::FETCH_ASSOC);\n\t\t} catch(PDOException $e) {\n\t\t\tthrow new Exception('Could not fetch records:<br>' . $e->getMessage());\n\t\t}\n\t\t\n\t\treturn $resultSet;\n\t}", "public function getRows()\n {\n \treturn $this->previouslyExecuted->fetch_array(MYSQLI_ASSOC);\n }", "abstract public function fetchAll($fetchType = \\PDO::FETCH_ASSOC);", "public function queryFetchAll($statement) {\n try{\n return $this->connection->query($statement)->fetchAll();\n }catch(PDOException $e){\n echo 'Connection failed: ' . $e->getMessage();\n }\n }", "public function fetch_multi($s_where=null,$i_start=null,$i_limit=null)\r\n {\r\n try\r\n {\t\r\n \t$ret_=array();\r\n\t\t\t$s_qry=\"SELECT * FROM \".$this->tbl_recom.\" n \"\r\n .($s_where!=\"\"?$s_where:\"\" ).(is_numeric($i_start) && is_numeric($i_limit)?\" Limit \".intval($i_start).\",\".intval($i_limit):\"\" );\r\n\t\t\t//\techo $s_qry;\r\n $rs=$this->db->query($s_qry);\r\n $i_cnt=0;\r\n if($rs->num_rows()>0)\r\n {\r\n foreach($rs->result() as $row)\r\n {\r\n $ret_[$i_cnt][\"id\"]=$row->id;////always integer\r\n $ret_[$i_cnt][\"s_email\"]\t\t\t=\tget_unformatted_string($row->s_referred_email); \r\n\t\t\t\t $ret_[$i_cnt][\"s_name\"]\t\t\t=\tget_unformatted_string($row->s_referred_name); \r\n $ret_[$i_cnt][\"dt_recommend_on\"]\t=\tdate($this->conf[\"site_date_format\"],intval($row->i_created_date)); \r\n\t\t\t\t $ret_[$i_cnt][\"i_is_active\"]\t\t=\tintval($row->i_is_active); \r\n\t\t\t\t //$ret_[$i_cnt][\"s_is_active\"]\t\t=\t(intval($row->i_is_active)==1?\"Accepted\":\"Pending\");\r\n\t\t\t\t $ret_[$i_cnt][\"s_is_active\"]\t\t=\t(intval($row->i_is_active)==1?addslashes(t(\"Accepted\")):addslashes(t(\"Pending\")));\r\n \r\n $i_cnt++;\r\n } \r\n $rs->free_result(); \r\n }\r\n unset($s_qry,$rs,$row,$i_cnt,$s_where,$i_start,$i_limit, $s_desc);\r\n return $ret_;\r\n \r\n }\r\n catch(Exception $err_obj)\r\n {\r\n show_error($err_obj->getMessage());\r\n } \r\n }", "private function fetch($result) {\n $lines =& $this->lines;\n\n $lines = array();\n while ($r = sqlsrv_fetch_array($result)) {\n $lines[] = $r;\n }\n \n sqlsrv_free_stmt($result); //frees the memory resource, since we will not need it again travels\n }", "function fetchList($limit, $offset);", "private function executeAndFetchStatement($select){\n $this->statement = $this->connection->prepare($select);\n $this->statement->execute();\n $result = $this->statement->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n }", "protected function fetch( $sql, $params = null ) {\n\t\t$stmt = $this->dbh->prepare( $sql );\n\t\t$this->bind( $stmt, $params );\n\t\t$stmt->execute();\n\t\treturn $stmt->fetch();\n\t}", "public abstract function fetchAll();", "protected function fetchAll(\\PDOStatement $statement)\n {\n return $statement->fetchAll();\n }", "public function getRows($sql,$params = null){\n $result = $this->getResult($sql,$params);\n $rows = [];\n while ($row = $result->fetch_assoc()) {\n $rows[] = $row;\n }\n\n $result->close();\n\n return $rows;\n }", "public function _fetchAll()\n\t\t{\t\t\t\n\t\t\t$data = '';\n\t\t\twhile (($chunk = $this->_fetch(4096)) !== false)\n\t\t\t\t$data .= $chunk;\n\t\t\treturn $data;\n\t\t}", "public function fetchAll($fetch_style = NULL, $fetch_argument = NULL, $ctor_args = array())\n {\n }", "function sqlsrv_next_result($stmt)\n{\n}", "public function fetchAll($fetch_style = \\PDO::FETCH_ASSOC)\n\t{\n\t\treturn $this->getStatement()\n\t\t\t\t\t->fetchAll($fetch_style);\n\t}", "function getAllPosts() {\n global $db;\n\n $query = \"SELECT * FROM post\"; //selecting all posts\n $statement = $db->prepare($query);\n $statement->execute();\n\n //fetchAll() --> retrieve all rows\n $results = $statement->fetchAll();\n $statement->closeCursor();\n return $results;\n}", "public function fetch(array $params) {\n\t\t\t$numrows = isset($params['pagesize']) ? $params['pagesize'] : 0;\n\t\t\t$page = isset($params['page']) ? intval($params['page']) : 0;\n\t\t\t$limit = ($numrows > 1) ? ' limit ' . ($page * $numrows) . ', ' . $numrows : ($numrows == 1 ? ' limit 1' : '');\n\t\t\t$desc = isset($params['desc']) ? ($params['desc'] ? ' desc' : $params['desc']) : 0;\n\t\t\t$order = isset($params['order']) ? $params['order'] : '`time`';\n\t\t\t$order = ($desc !== 0) ? \" order by $order $desc\" : '';\n\t\t\t$nocalc = isset($params['nocalc']) ? $params['nocalc'] : 0;\n\t\t\t$filter = isset($params['filter']) ? $params['filter'] : '';\n\t\t\t$group = isset($params['group']) ? \" group by {$params['group']}\" : '';\n\t\t\t$collumns = isset($params['collumns']) ? $params['collumns'] : '*';\n\t\t\t$countrows = $numrows != 1 && !$nocalc;\n\n\t\t\t$s = $this->dbc->select(\n\t\t\t\t\t$this->TBL_FETCH\n\t\t\t\t, \"{$filter}{$group}{$order}{$limit}\"\n\t\t\t\t, $countrows ? \"SQL_CALC_FOUND_ROWS $collumns\" : $collumns\n\t\t\t);\n\n\t\t\tif ($countrows && $s) {\n\t\t\t\t$s1 = $this->dbc->query('SELECT FOUND_ROWS()');\n\t\t\t\t$t = @mysql_fetch_row($s1);\n\t\t\t\t$total = $t[0];\n\t\t\t} else\n\t\t\t\t$total = $s ? $this->dbc->rows($s) : 0;\n\n\t\t\t$this->data = array('result' => $s, 'data' => $this->dbc->fetchrows($s), 'total' => intval($total));\n\t\t\t$link = &$this->data;\n\t\t\treturn $link;\n\t\t}" ]
[ "0.62421596", "0.61208093", "0.60747963", "0.5992481", "0.59656554", "0.58737934", "0.5857025", "0.5850041", "0.5841614", "0.58274895", "0.5823429", "0.58059525", "0.5789907", "0.5776023", "0.57752967", "0.57750446", "0.5774707", "0.57599896", "0.57599896", "0.5749013", "0.572639", "0.5726129", "0.572295", "0.5717419", "0.5714469", "0.5708845", "0.57003164", "0.5687981", "0.5687677", "0.5672824", "0.56690675", "0.56507283", "0.56487566", "0.56456494", "0.5643319", "0.5642968", "0.5636546", "0.5635166", "0.56273246", "0.56016886", "0.5598231", "0.55707455", "0.555697", "0.5550575", "0.55458075", "0.5537994", "0.55369675", "0.553226", "0.55236655", "0.5515907", "0.549953", "0.5499055", "0.5494859", "0.5494321", "0.5489592", "0.5489239", "0.54819876", "0.54798853", "0.54798853", "0.5477664", "0.54681474", "0.5465803", "0.54639053", "0.5461306", "0.5454595", "0.5448667", "0.5445641", "0.5444634", "0.54349285", "0.5432886", "0.5429979", "0.542692", "0.5425041", "0.5413154", "0.541049", "0.54072964", "0.5406158", "0.5400945", "0.5389645", "0.53737634", "0.5373509", "0.5364333", "0.5359968", "0.5352494", "0.534873", "0.53447586", "0.53431493", "0.5339896", "0.53390867", "0.5322565", "0.5318133", "0.5317253", "0.53142196", "0.5309274", "0.530586", "0.5305706", "0.5302856", "0.5299461", "0.5299383", "0.5296928" ]
0.70996433
0
Method used for passing arrays by reference
private function refValues($arr){ $refs = array(); foreach ($arr as $key => $value){ $refs[] = &$arr[$key]; } return $refs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function passByReference($arr){\n if (strnatcmp(phpversion(),'5.3') >= 0){ \n $refs = array();\n foreach($arr as $key => $value)\n $refs[$key] = &$arr[$key];\n return $refs;\n }\n return $arr;\n}", "function &getarraybyref(&$array) {\n\tif (!isset($array)) {\n\t\treturn false;\n\t}\n\tif (!is_array($array)) {\n\t\t$array = array();\n\t}\n\t$item = &$array;\n\t$arg = func_get_args();\n\tfor($i = 1; $i < count($arg); $i++) {\n\t\t$itemindex = $arg[$i];\n\t\tif (!is_array($item[$itemindex])) {\n\t\t\t$item[$itemindex] = array();\n\t\t}\n\t\t$item = &$item[$itemindex];\n\t}\n\treturn $item;\n}", "function arrayReplace()\n {\n $a = func_get_args();\n // Do not make this reference,\n // it helpful if you just pass pure array without assign.\n $new = $a[0];\n if (!isArray($new)) {\n return triggerJson(\n '\\PMVC\\arrayReplace Param1 should be array type.',\n ['Array' => $new]\n );\n }\n for ($i = 1, $j = count($a); $i < $j; $i++) {\n // This is for handle empty array not empty value\n if (is_null($a[$i])) {\n continue;\n }\n if (!isArray($a[$i])) {\n $new[] = $a[$i];\n } else {\n foreach ($a[$i] as $k => $v) {\n $new[$k] = $v;\n }\n }\n }\n\n return $new;\n }", "function getArrayCopy() : array;", "public function getArrayCopy();", "private function ref_values($arr){\n\t if (strnatcmp(phpversion(),'5.3') >= 0) //Reference is required for PHP 5.3+\n\t {\n\t $refs = array();\n\t foreach($arr as $key => $value)\n\t $refs[$key] = &$arr[$key];\n\t return $refs;\n\t }\n\t return $arr;\n\t}", "public function setFromArray(array &$_data);", "function reference($arr){\n if (strnatcmp(phpversion(),'5.3') >= 0) \n {\n $refs = array();\n foreach($arr as $key => $value)\n $refs[$key] = &$arr[$key];\n return $refs;\n }\n return $arr;\n }", "function ref_values($arr)\n{\n\t$refs = array();\n\n\tforeach ($arr as $key => $value)\n\t{\n\t\t$refs[$key] = &$arr[$key];\n\t}\n\n\treturn $refs;\n}", "function array_pass($array)\r\n{\r\n $array[0] *= 2;\r\n $array[1] *= 2;\r\n}", "function makeValuesReferenced($arr){\n $refs = array();\n foreach($arr as $key => $value)\n $refs[$key] = &$arr[$key];\n return $refs;\n}", "function array_pass($array)\n{\n $array[0] *= 2;\n $array[1] *= 2;\n}", "public function getArrayCopy() : array;", "public abstract function retain_array(Array $array);", "public function setDataAsRef(array &$data)\n {\n $this->data = &$data;\n }", "function prev(&$array)\n{\n}", "function Update($array){\n\n }", "public function setPropArrayByRef(&$array)\n {\n $this->engine->assignByRef($array);\n }", "public function aArray() {}", "public function &getArrayReference()\n {\n return $this->array;\n }", "public function exchangeArray(array $array);", "protected function refValues($arr)\n\t{\n\t\tif (strnatcmp ( phpversion (), '5.3' ) >= 0)\n\t\t{\n\t\t\t$refs = array ();\n\t\t\tforeach ( $arr as $key => $value )\n\t\t\t{\n\t\t\t\t$refs [$key] = & $arr [$key];\n\t\t\t}\n\t\t\treturn $refs;\n\t\t}\n\t\treturn $arr;\n\t}", "function do_action_ref_array($hook_name, $args)\n {\n }", "function apply_filters_ref_array($hook_name, $args)\n {\n }", "function array_push_ex(array &$arr1,$arr2) {\n foreach ($arr2 as $key => $value) {\n $arr2[$key] = ($value);\n }\n array_push($arr1,$arr2);\n}", "private function & refArrayItemByPath(& $array)\n\t{\n\t\t$p = & $array;\n\t\t$argc = func_num_args();\n\t\tfor ($i = 1; $i < $argc; $i++) {\n\t\t\t$k = func_get_arg($i);\n\t\t\tif ($k === null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (is_array($k)) {\n\t\t\t\tforeach ($k as $kk) {\n\t\t\t\t\tif (!isset($p[$kk])) {\n\t\t\t\t\t\t$p[$kk] = array();\n\t\t\t\t\t}\n\t\t\t\t\t$p = & $p[$kk];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!isset($p[$k])) {\n\t\t\t\t\t$p[$k] = array();\n\t\t\t\t}\n\t\t\t\t$p = & $p[$k];\n\t\t\t}\n\t\t}\n\n\t\treturn $p;\n\t}", "public function __construct(array $arrayPassed){\n $this->arrayPassed = $arrayPassed;\n }", "function array_cycle() {\n $y = array();\n $x = new Cycler();\n $x->x =& $y;\n $y[\"one\"][\"bar\"] = $x;\n $y[\"two\"][\"bar\"] =& $y;\n $y[\"three\"] = \"string data\";\n}", "function array_replace_recursive($array, $array1) {\n $args = func_get_args();\n $array = $args[0];\n if (!is_array($array)) {\n return $array;\n }\n for ($i = 1; $i < count($args); $i++) {\n if (is_array($args[$i])) {\n $array = _array_replace_recursive_recurse($array, $args[$i]);\n }\n }\n return $array;\n }", "protected /*array*/ function copyOf(array $array)\n\t{\n\t\t// Arrays are passed by value, so simply return.\n\t\treturn $array;\n\t}", "function array_replace_recursive($array, $array1)\r\n\t{\r\n\t\t$args = func_get_args();\r\n\t\t$array = $args[0];\r\n\t\tif (!is_array($array))\r\n\t\t{\r\n\t\t\treturn $array;\r\n\t\t}\r\n\t\tfor ($i = 1; $i < count($args); $i++)\r\n\t\t{\r\n\t\t\tif (is_array($args[$i]))\r\n\t\t\t{\r\n\t\t\t\t$array = recurse($array, $args[$i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $array;\r\n\t}", "function array_replace_recursive($array, $array1)\n\t{\n\t\t$args = func_get_args();\n\t\t$array = $args[0];\n\t\tif (!is_array($array))\n\t\t{\n\t\t return $array;\n\t\t}\n\t\tfor ($i = 1; $i < count($args); $i++)\n\t\t{\n\t\t if (is_array($args[$i]))\n\t\t {\n\t\t\t$array = recurse($array, $args[$i]);\n\t\t }\n\t\t}\n\t\treturn $array;\n\t}", "public function getInternalArray() {}", "public static function fixArrays(){\n if( self::$postGetFixed ) return;\n if( count($_POST) > 0 )\n self::doFixArray($_POST);\n if( count($_GET) > 0 )\n self::doFixArray($_GET);\n self::$postGetFixed = true;\n }", "function C() {\n $arr = func_get_args();\n return Carr($arr);\n }", "abstract protected function snapshot(array $input);", "function b(Array $y = array()) {}", "function getArray();", "abstract public function getArray();", "public function arrayAssign($scope, $array);", "function array_replace_recursive($array, $array1) {\n\t\t$args = func_get_args();\n\t\t$array = $args[0];\n\t\tif (!is_array($array)) {\n\t\t\treturn $array;\n\t\t}\n\t\tfor ($i = 1; $i < count($args); $i++) {\n\t\t\tif (is_array($args[$i])) {\n\t\t\t\t$array = recurse($array, $args[$i]);\n\t\t\t}\n\t\t}\n\t\treturn $array;\n\t}", "function array_set($key, $value, &$array)\n {\n return arr::set($key, $value, $array);\n }", "public function myRevert(array $array);", "function &arr(array $value, string $namespace = 'default'): array\n{\n $var = new Variable\\ArrayVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "public function setParametersByRef (&$parameters)\n {\n\n foreach ($parameters as $key => &$value)\n {\n\n $this->parameters[$key] =& $value;\n\n }\n\n }", "public function getArrayCopy()\n {\n \treturn get_object_vars($this);\n }", "function &_deepCopyArray ( &$array ) {\n \t\t$newArray = array();\n \t\t\n \t\tforeach (array_keys($array) as $key) {\n \t\t\t// Use deep-copy if we can on Objects\n\t\t\tif (is_object($array[$key]) \n\t\t\t\t&& method_exists($array[$key], 'deepCopy'))\n\t\t\t{\n\t\t\t\t$newArray[$key] =& $array[$key]->deepCopy();\n\t\t\t}\n\t\t\t\n\t\t\t// If it is an Array, copy the values\n\t\t\telse if (is_array($array[$key])) {\n\t\t\t\t$newArray[$key] =& SObject::_deepCopyArray($array[$key]);\n\t\t\t}\n\t\t\t\n\t\t\t// Otherwise use PHP's copy-by-value\n\t\t\telse {\n\t\t\t\t$newArray[$key] = $array[$key];\n\t\t\t}\n \t\t}\n \t\t\n \t\treturn $newArray;\n \t}", "function acf_unarray($val)\n{\n}", "function _memcpy( &$arr1, $off1, $arr2, $off2, $len) {\n for ($i = 0; $i < $len; $i++) {\n $arr1[$off1 + $i] = $arr2[$off2 + $i];\n }\n}", "public function getArrayParameters(): array;", "public function b(Array $y = array()) {}", "public function __invoke() : array;", "public function __invoke() : array;", "public function getArrayCopy()\r\n {\r\n \treturn get_object_vars($this);\r\n }", "abstract protected function inputs(): array;", "abstract protected function toArray();", "function mdl_array_wrap($value)\n{\n return is_array($value) ? $value : [$value];\n}", "abstract public function diffWith(array $array);", "function &vector(array $value, string $namespace = 'default'): array\n{\n return arr(array_values($value), $namespace);\n}", "public function test_attribute_copy_array()\n {\n $src = [\n \"1\" => \"shallow\",\n \"2\" => \"shallow\",\n \"3\" => [\n \"1\" => \"notshallow\",\n \"2\" => \"notshallow\",\n ],\n \"4\" => \"shallow\",\n \"5\" => [],\n ];\n $dist = shallow_copy_array($src);\n $expect = [\n \"1\" => \"shallow\",\n \"2\" => \"shallow\",\n \"4\" => \"shallow\"\n ];\n $this->assertTrue($this->arrays_are_similar($dist, $expect));\n }", "function get_array(){\n return $this->getArrayCopy();\n }", "function get_array(){\n return $this->getArrayCopy();\n }", "public function asExposedChangedIndexedArray(): array;", "public function testAssignWrongTypedValueToArray()\n {\n $array = new TypedObjectArray(ArrayObject::class);\n $array[] = new SplStack();\n }", "function arrayDiff(array $a, array $b):array {\n \n}", "function setArray( array $storearray ) {\n$this->array = $storearray;\n}", "public function getArrayCopy(){\n return get_object_vars($this);\n }", "public function getArrayCopy(){\n return get_object_vars($this);\n }", "function aarr(&$R,$nn,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"int8\",$n,$m);\t\t\t\n\t\t}", "public function getArrayCopy(){\n return get_object_vars($this);\n }", "public function getArrayCopy(){\n return get_object_vars($this);\n }", "function array_walk_recursive_referential(&$array, $function, $parameters = array()) {\n $reference_function = function(&$value, $key, $userdata) {\n $parameters = array_merge(array($value), $userdata[1]);\n $value = call_user_func_array($userdata[0], $parameters);\n };\n array_walk_recursive($array, $reference_function, array($function, $parameters));\n}", "static function replace_recursive($x,$y){\n\t\t$arrays = func_get_args();\n\t\t$result = [];\n\t\tforeach($arrays as $array){\n\t\t\tif(is_object($array)){\n\t\t\t\t$array = self::from($array);\n\t\t\t}\n\t\t\tif(is_array($array)){\n\t\t\t\t$result = array_replace_recursive($result,$array);\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "function array_pop(&$array)\n{\n}", "public function with(array $input);", "public function getArrayCopy()\n {\n return get_object_vars($this);\n }", "public function getArrayCopy()\r\n\t{\r\n\t\treturn get_object_vars($this);\r\n\t}", "public function AsArray();", "public function getArrayCopy() \n {\n return get_object_vars($this);\n }", "public function getArrayCopy() \n {\n return get_object_vars($this);\n }", "public function getArrayCopy() \n {\n return get_object_vars($this);\n }", "public function getArrayCopy()\n\t{\n\t\treturn get_object_vars($this);\n\t}", "public function getArrayCopy()\n\t{\n\t\treturn get_object_vars($this);\n\t}", "public function getArrayCopy()\n\t{\n\t\treturn get_object_vars($this);\n\t}", "public function getArrayCopy()\n\t{\n\t\treturn get_object_vars($this);\n\t}", "public function getArrayCopy()\n\t{\n\t\treturn get_object_vars($this);\n\t}", "function convArrayForSanitizing($src, &$array)\n{\n $array = array();\n foreach ($src as $key => $val) {\n if (key_exists($key, $_GET)) {\n array_push($array, sprintf(\"%s=%s\", $key, $val));\n }\n }\n}", "public function substituteSubpartArrayDataProvider() {}", "function _wp_array_set(&$input_array, $path, $value = \\null)\n {\n }", "function arr($array) {\n if (is_array($array)) {\n return new Arr($array);\n }\n return $array;\n}", "function arrayIntoArray ($array1,$array2) {\nwhile(list($key,$val)=@each($array2)) {\n $array1[$key] = $val;\n}\nreturn $array1;\n}", "function inputData(&$data)\n{\n echo (\"tampil data\");\n}", "function array_grab($toGrab, $arr2) {\t\t// array_map(function to execute() then the array that you're working with)\n\t// The function below will call the function() on this line for every item within the $arr2. use() is for CLOSURE (global and local vars)\n\treturn array_map(function($item2) use($toGrab) {\n\t\treturn $item2[$toGrab]; \n\t}, $arr2);\n}", "function a(&$b)\n{\n $b++;\n}", "public function getArrayCopy()\n {\n return $this->data;\n }", "public abstract function FetchArray();", "function e(array $a = [1, 2, 3, 4], $b = \"hi\") {}", "public function asArray();", "public function asArray();", "public function asArray();" ]
[ "0.7083298", "0.68043417", "0.6427269", "0.6332179", "0.6317677", "0.6260255", "0.6192703", "0.61645144", "0.6153595", "0.6142862", "0.6023858", "0.5990772", "0.59889215", "0.5965764", "0.59376246", "0.5923548", "0.591921", "0.58970976", "0.58893454", "0.5880747", "0.5865384", "0.5854328", "0.5843684", "0.58118916", "0.57907575", "0.5719843", "0.56913334", "0.5687552", "0.56807506", "0.5667757", "0.5619945", "0.56161547", "0.56090236", "0.558656", "0.55701756", "0.5563512", "0.5557454", "0.55467796", "0.5532115", "0.55319893", "0.55305946", "0.5523741", "0.54665065", "0.54655176", "0.5448515", "0.54354537", "0.54326475", "0.54253614", "0.54216564", "0.5409038", "0.54072857", "0.53975624", "0.53975624", "0.53734183", "0.5368805", "0.5364879", "0.53549695", "0.5327843", "0.5325236", "0.53208786", "0.5319599", "0.5319599", "0.5306241", "0.5304207", "0.5301564", "0.52779704", "0.5270032", "0.5270032", "0.5267719", "0.5263248", "0.5263248", "0.5259223", "0.52579623", "0.5256784", "0.52534795", "0.524574", "0.5242456", "0.5239941", "0.52371544", "0.52371544", "0.52371544", "0.52306694", "0.52306694", "0.52306694", "0.52306694", "0.52306694", "0.5227819", "0.52190256", "0.52141696", "0.5209016", "0.52005893", "0.51970154", "0.5184773", "0.51817364", "0.51775604", "0.5174524", "0.51682466", "0.51660424", "0.51660424", "0.51660424" ]
0.5848041
22
MASK FORMAT [XXXXXX] 'X' this is random symbols '' this is separator
static public function generate($options = []) { $length = (isset($options['length']) ? filter_var($options['length'], FILTER_VALIDATE_INT, ['options' => ['default' => self::MIN_LENGTH, 'min_range' => 1]]) : self::MIN_LENGTH ); $prefix = (isset($options['prefix']) ? self::cleanString(filter_var($options['prefix'], FILTER_SANITIZE_STRING)) : '' ); $suffix = (isset($options['suffix']) ? self::cleanString(filter_var($options['suffix'], FILTER_SANITIZE_STRING)) : '' ); $useLetters = (isset($options['letters']) ? filter_var($options['letters'], FILTER_VALIDATE_BOOLEAN) : true ); $useNumbers = (isset($options['numbers']) ? filter_var($options['numbers'], FILTER_VALIDATE_BOOLEAN) : false ); $useSymbols = (isset($options['symbols']) ? filter_var($options['symbols'], FILTER_VALIDATE_BOOLEAN) : false ); $useMixedCase = (isset($options['mixed_case']) ? filter_var($options['mixed_case'], FILTER_VALIDATE_BOOLEAN) : false ); $mask = (isset($options['mask']) ? filter_var($options['mask'], FILTER_SANITIZE_STRING) : false ); $uppercase = ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M']; $lowercase = ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm']; $numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; $symbols = ['`', '~', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '_', '=', '+', '\\', '|', '/', '[', ']', '{', '}', '"', "'", ';', ':', '<', '>', ',', '.', '?']; $characters = []; $coupon = ''; if ($useLetters) { if ($useMixedCase) { $characters = array_merge($characters, $lowercase, $uppercase); } else { $characters = array_merge($characters, $uppercase); } } if ($useNumbers) { $characters = array_merge($characters, $numbers); } if ($useSymbols) { $characters = array_merge($characters, $symbols); } if ($mask) { for ($i = 0; $i < strlen($mask); $i++) { if ($mask[$i] === 'X') { $coupon .= $characters[mt_rand(0, count($characters) - 1)]; } else { $coupon .= $mask[$i]; } } } else { for ($i = 0; $i < $length; $i++) { $coupon .= $characters[mt_rand(0, count($characters) - 1)]; } } return $prefix . $coupon . $suffix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaskingString(): string;", "function mask_format($nric) {\n if (is_numeric($nric) == 1) {\n return $nric;\n } else {\n $new_nric = substr_replace($nric, 'XXXXX', 0, 5);\n //$new_nric = substr_replace($nric,'XXXX',5); \n return $new_nric;\n }\n }", "function mask($text)\r\n{\r\n\t$b1 = 0x80 | (0x1 & 0x0f);\r\n\t$length = strlen($text);\r\n\t\r\n\tif($length <= 125)\r\n\t\t$header = pack('CC', $b1, $length);\r\n\telseif($length > 125 && $length < 65536)\r\n\t\t$header = pack('CCn', $b1, 126, $length);\r\n\telseif($length >= 65536)\r\n\t\t$header = pack('CCNN', $b1, 127, $length);\r\n\treturn $header.$text;\r\n}", "public function doubleMaskValue()\n {\n return '**** ******';\n }", "function mask($text)\n{\n\t$b1 = 0x80 | (0x1 & 0x0f);\n\t$length = strlen($text);\n\t\n\tif($length <= 125)\n\t\t$header = pack('CC', $b1, $length);\n\telseif($length > 125 && $length < 65536)\n\t\t$header = pack('CCn', $b1, 126, $length);\n\telseif($length >= 65536)\n\t\t$header = pack('CCNN', $b1, 127, $length);\n\treturn $header.$text;\n}", "public function getMask(): string {\n return $this->mask;\n }", "public function getMask()\n {\n return self::prefix_to_mask($this->prefix, $this->version);\n }", "function printMasked(& $hangman) {\r\n $str = \"\";\r\n for($i = 0; $i<count($hangman); $i++){\r\n if($hangman[$i][1]){\r\n print strtoupper($hangman[$i][0]);\r\n } else {\r\n print \"*\";\r\n }\r\n }\r\n print \"\\n\";\r\n}", "public static function maskPhoneNumber($_input = NULL) {\n\n $_string = self::getNumbers($_input);\n\n switch (strlen($_string)) {\n\n case 7 :\n $_mask = '###-####';\n break;\n\n case 8 :\n $_mask = '####-####';\n break;\n\n case 9 :\n $_mask = '####-#####';\n break;\n\n case 10 :\n $_mask = '(##) ####-####';\n break;\n\n case 11 :\n $_mask = '(##) ###-###-###';\n break;\n\n case 12 :\n $_mask = '(##) (##) ####-####';\n break;\n\n case 13 :\n $_mask = '(##) (##) ###-###-###';\n break;\n\n default :\n return $_input;\n }\n\n for ($count = 0; $count < strlen($_string); $count++) {\n $_mask[strpos($_mask, \"#\")] = $_string[$count];\n }\n\n return $_mask;\n }", "private function mask($text)\n\t{\n\t\t\t$b1 = 0x80 | (0x1 & 0x0f);\n\t\t\t$length = strlen($text);\n\t\t\t\n\t\t\tif ($length <= 125)\n\t\t\t\t\t$header = pack('CC', $b1, $length);\n\t\t\telseif ($length > 125 && $length < 65536)\n\t\t\t\t\t$header = pack('CCn', $b1, 126, $length);\n\t\t\telseif ($length >= 65536)\n\t\t\t\t\t$header = pack('CCNN', $b1, 127, $length);\n\t\t\treturn $header . $text;\n }", "public static function mask($text)\n\t{\n\t\t$b1 = 0x80 | (0x1 & 0x0f);\n\t\t$length = strlen($text);\n\t\tif ($length <= 125) \n\t\t{\n\t\t\t$header = pack('CC', $b1, $length);\n\t\t}\n\t\telse if ($length > 125 && $length < 65536)\n\t\t{ \n\t\t\t$header = pack('CCn', $b1, 126, $length);\n\t\t}\n\t\telse if($length >= 65536)\n\t\t{\n\t\t\t$header = pack('CCNN', $b1, 127, $length);\n\t\t} \n\t\treturn $header . $text;\n\t}", "public static function maskCep($_input = NULL) {\n\n $_string = self::getNumbers($_input);\n\n switch (strlen($_string)) {\n\n case 8 :\n $_mask = '#####-###';\n break;\n\n default :\n return $_input;\n }\n\n for ($count = 0; $count < strlen($_string); $count++) {\n $_mask[strpos($_mask, \"#\")] = $_string[$count];\n }\n\n return $_mask;\n }", "function Mask($mask, $str){\n if(strlen($str) > 0){ \n $str = str_replace(\" \",\"\",$str);\n \n for($i=0;$i<strlen($str);$i++){\n $mask[strpos($mask,\"#\")] = $str[$i];\n }\n \n return $mask;\n }\n }", "function MaskCreditCard($cc){\n\t$cc_length = strlen($cc);\n\t// Replace all characters of credit card except the last four and dashes\n\tfor($i=0; $i<$cc_length-4; $i++){\n\t\tif($cc[$i] == '-'){continue;}\n\t\t$cc[$i] = 'X';\n\t}\n\t// Return the masked Credit Card #\n\treturn $cc;\n}", "private static function buildControlCharacters()\n {\n for ($i = 0; $i <= 31; ++$i) {\n if ($i != 9 && $i != 10 && $i != 13) {\n $find = '_x' . sprintf('%04s', strtoupper(dechex($i))) . '_';\n $replace = chr($i);\n self::$controlCharacters[$find] = $replace;\n }\n }\n }", "function dotbin($binin,$cdr_nmask){\r\n\tif ($binin==\"N/A\") return $binin;\r\n\t$oct=rtrim(chunk_split($binin,8,\".\"),\".\");\r\n\tif ($cdr_nmask > 0){\r\n\t\t$offset=sprintf(\"%u\",$cdr_nmask/8) + $cdr_nmask ;\r\n\t\treturn mb_substr($oct,0,$offset ) . \"&nbsp;&nbsp;&nbsp;\" . mb_substr($oct,$offset) ;\r\n\t} else {\r\n\treturn $oct;\r\n\t}\r\n}", "public function getMask()\n {\n return 'table|thead|tbody|tfoot|th|tr|td';\n }", "public static function Mask($val, $mask){\n\n\t\t$maskared = '';\n\t\t$k = 0;\n\t\t\n\t\tfor ($i = 0; $i<=strlen($mask)-1; $i++) {\n\t\t \t\n\t\t \tif ($mask[$i] == '#') {\n\t\t \t\tif (isset($val[$k]))\n\t\t \t\t $maskared .= $val[$k++];\t\n\t\t \t\n\t\t \t} else {\n\t\t \t\n\t\t \tif (isset($mask[$i]))\n\t\t \t\t$maskared .= $mask[$i];\n\t\t \t}\n\t\t}\n\t\n\t\treturn $maskared;\n\n\t}", "private static function buildControlCharacters()\n {\n for ($i = 0; $i <= 19; ++$i) {\n if ($i != 9 && $i != 10 && $i != 13) {\n $find = '_x' . sprintf('%04s', strtoupper(dechex($i))) . '_';\n $replace = chr($i);\n self::$controlCharacters[$find] = $replace;\n }\n }\n }", "function sprintfshell($mask){\n $args = func_get_args();\n $args = array_map('escapeshellarg', array_slice($args, 1));\n return call_user_func('vsprintf', $mask, $args);\n}", "function define_pattern($s) {\n if(fmod($s,2) == 1) {\n return 'o';\n } else {\n return 'x';\n }\n }", "static public function mask($message)\n\t{\n\t\t$masks = array(\n\t\t\t'<SessionTicket>', \n\t\t\t'<ConnectionTicket>', \n\t\t\t'<CreditCardNumber>', \n\t\t\t'<AppID>', \n\t\t\t);\n\t\t\n\t\tforeach ($masks as $key)\n\t\t{\n\t\t\tif ($key{0} == '<')\n\t\t\t{\n\t\t\t\t// It's an XML tag\n\t\t\t\t$contents = QuickBooks_Utilities::_extractTagContents(trim($key, '<> '), $message);\n\t\t\t\t\n\t\t\t\t$masked = str_repeat('x', min(strlen($contents), 12)) . substr($contents, 12);\n\t\t\t\t\n\t\t\t\t$message = str_replace($key . $contents . '</' . trim($key, '<> ') . '>', $key . $masked . '</' . trim($key, '<> ') . '>', $message);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $message;\n\t}", "public function getMaskingCharacter(): CharacterInterface;", "public function getDashPattern() {}", "public function mask($text)\n {\n $b1 = 0x80 | (0x1 & 0x0f);\n $length = strlen($text);\n\n if ($length <= 125)\n $header = pack('CC', $b1, $length);\n elseif ($length > 125 && $length < 65536)\n $header = pack('CCn', $b1, 126, $length);\n elseif ($length >= 65536)\n $header = pack('CCNN', $b1, 127, $length);\n return $header . $text;\n }", "function dotbin($binin,$cdr_nmask){\n\tif ($binin==\"N/A\") return $binin;\n\t$oct=rtrim(chunk_split($binin,8,\".\"),\".\");\n\tif ($cdr_nmask > 0){\n\t\t$offset=sprintf(\"%u\",$cdr_nmask/8) + $cdr_nmask ;\n\t\treturn substr($oct,0,$offset ) . \"&nbsp;&nbsp;&nbsp;\" . substr($oct,$offset) ;\n\t} else {\n\treturn $oct;\n\t}\n}", "function maskString($s, $start=1, $end=null, $char = '*') {\n $start = $start - 1;\n\n $array = str_split($s);\n\n $end = strlen($s) < $end ? strlen($s) : $end ? : strlen($s);\n\n for ($start; $start < $end; $start++) {\n $array[$start] = $char;\n }\n return join('',$array);\n }", "private function mask($string)\n {\n return str_repeat(\"*\", strlen($string));\n }", "function FormatWithPrefixString( &$pContent, $pPutNewLine, $pFormattingSymbolsCount ){\n\tif( $pPutNewLine ){\n\t\t$pContent .= \"\\n\";\n\t}\n\t//~ var_dump($lPutFormattingSymbols);\n\tif( $pFormattingSymbolsCount < 0 ){//Ako trqbva da rejem simvoli ot teksta\n\t\t$pContent = mb_substr($pContent, 0, $pFormattingSymbolsCount);\n\t}else{//Ako trqbva da dobavqme simvoli\n\t\tfor( $i = 0; $i < $pFormattingSymbolsCount; ++$i)\n\t\t\t$pContent .= XML_FORMATTING_SYMBOL;\n\t}\n}", "function markSanitizer($mrk){\r\n\t\t$mk = $mrk;\r\n\t\tglobal $std_mark;\r\n\t\tif($mk==-1){\r\n\t\t\t$std_mark = '__';\r\n\t\t}if($mk==-2){\r\n\t\t\t$std_mark = '';\r\n\t\t}\r\n\t\tif($mk==''){\r\n\t\t\t$std_mark = '00';\r\n\t\t}\r\n\t\tif($mk!=-1 AND $mk!=-2 AND $mk!='' AND $mk!=NULL){\r\n\t\t\t$std_mark = $mk;\r\n\t\t}\r\n\t\tif($mk>=0 AND $mk<=9 AND $mk != NULL){\r\n\t\t\t$std_mark = '0'.$mk;\r\n\t\t}\r\n\t\treturn $std_mark;\r\n\t}", "function get_placeholder($num)\n\n{\n\n return \"\\x01\".str_repeat(\"\\x00\", $num+1).\"\\x01\";\n\n}", "function unmask($text) {\r\n\t\r\n\t$length = ord($text[1]) & 127;\r\n\tif($length == 126) {\r\n\t\t$masks = substr($text, 4, 4);\r\n\t\t$data = substr($text, 8);\r\n\t}\r\n\telseif($length == 127) {\r\n\t\t$masks = substr($text, 10, 4);\r\n\t\t$data = substr($text, 14);\r\n\t}\r\n\telse {\r\n\t\t$masks = substr($text, 2, 4);\r\n\t\t$data = substr($text, 6);\r\n\t}\r\n\t$text = \"\";\r\n\tfor ($i = 0; $i < strlen($data); ++$i) {\r\n\t\t$text .= $data[$i] ^ $masks[$i%4];\r\n\t}\r\n\treturn $text;\r\n}", "public static function mask(string $mask, string $value, string $ch = '#') : string\n {\n $c = 0;\n $result = '';\n\n for ($i = 0; $i < strlen($mask); $i++) {\n if ($mask[$i] == $ch) {\n $result .= $value[$c];\n $c++;\n } else {\n $result .= $mask[$i];\n }\n }\n\n return $result;\n }", "public static function maskCPF_CNPJ($_input = NULL) {\n\n $number = self::getNumbers($_input);\n $length = strlen($number);\n\n if ($length != 11 && $length != 14) {\n return $_input;\n }\n\n $return = ($length == 11) ? '###.###.###-##' : '##.###.###/####-##';\n $key = -1;\n\n for ($i = 0, $size = strlen($return); $i < $size; $i++) {\n\n if ($return[$i] == '#') {\n $return[$i] = $number[++$key];\n }\n }\n\n return $return;\n }", "function gen_pass($mask) {\n $extended_chars = \"!@#$%^&*()\";\n $length = strlen($mask);\n $pwd = '';\n for ($c=0;$c<$length;$c++) {\n $ch = $mask[$c];\n switch ($ch) {\n case '#':\n $p_char = rand(0,9);\n break;\n case 'C':\n $p_char = chr(rand(65,90));\n break;\n case 'c':\n $p_char = chr(rand(97,122));\n break;\n case 'X':\n do {\n $p_char = rand(65,122);\n } while ($p_char > 90 && $p_char < 97);\n $p_char = chr($p_char);\n break;\n case '!':\n $p_char = $extended_chars[rand(0,strlen($extended_chars)-1)];\n break;\n }\n $pwd .= $p_char;\n }\n return $pwd; \n}", "public function maskString(string $str): string;", "final public static function hex ($str, $spacing = TRUE) {\r\n return preg_replace ('/[\\s\\r\\n\\t]/', $spacing === TRUE ? ' ' : '', substr (preg_replace ('/./se', 'sprintf (\\'%02x \\', ord (\"$0\"))', $str), 0, -1));\r\n }", "function unmask($text) {\n\t$length = ord($text[1]) & 127;\n\tif($length == 126) {\n\t\t$masks = substr($text, 4, 4);\n\t\t$data = substr($text, 8);\n\t}\n\telseif($length == 127) {\n\t\t$masks = substr($text, 10, 4);\n\t\t$data = substr($text, 14);\n\t}\n\telse {\n\t\t$masks = substr($text, 2, 4);\n\t\t$data = substr($text, 6);\n\t}\n\t$text = \"\";\n\tfor ($i = 0; $i < strlen($data); ++$i) {\n\t\t$text .= $data[$i] ^ $masks[$i%4];\n\t}\n\treturn $text;\n}", "public function withMaskingCharacter(CharacterInterface $maskingCharacter): static;", "public function formatRowWPadsWithGivenChar()\n {\n // Given\n $fieldSpecs = array(\n array(\"len\" => \"10\", \"type\" => \"s\"),\n array(\"len\" => \"15\", \"type\" => \"s\"),\n );\n $values = array(\"first\", \"second\");\n\n // When\n $result = RowFormatter::format($values, $fieldSpecs, \"0\");\n\n // Then\n $this->assertEquals($result, \"00000first000000000second\");\n }", "public function withMaskingStringLength(PositiveInteger $maskingStringLength): static;", "function bitadma_get_admarula_tmt_data_hex( $raw_data, $pattern ) {\n\n\t// pattern\n\t$matches = array();\n\t$has_match = preg_match( $pattern, $raw_data, $matches );\n\n\t// return match or false.\n\tif ( $has_match ) {\n\t\tif (isset($matches[1])) {\n\n\t\t\treturn bitadma_strip_whitespace($matches[1]);\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t} else {\n\t\treturn false;\n\t}\n\n}", "public function getMask()\n {\n return $this->mask;\n }", "public function getMask()\n {\n return $this->mask;\n }", "public function getMask()\n {\n return $this->mask;\n }", "public function getMaskingStringLength(): PositiveInteger;", "function terbilang($x, $style=4) {\n\t\tif($x<0) {\n\t\t\t$hasil = \"minus \". trim($this->kekata($x));\n\t\t} else {\n\t\t\t$hasil = trim($this->kekata($x));\n\t\t} \n\t\tswitch ($style) {\n\t\t\tcase 1:\n\t\t\t\t$hasil = strtoupper($hasil);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$hasil = strtolower($hasil);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$hasil = ucwords($hasil);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$hasil = ucfirst($hasil);\n\t\t\t\tbreak;\n\t\t} \n\t\treturn $hasil;\n\t}", "protected static function get_mask_string( array $field ){\n\t\t$mask = '';\n\t\tif ( 'phone' != Caldera_Forms_Field_Util::get_type( $field ) ) {\n\t\t\tif ( ! empty( $field[ 'config' ][ 'masked' ] ) ) {\n\t\t\t\t$mask = $field[ 'config' ][ 'mask' ];\n\t\t\t}\n\t\t} else {\n\t\t\t$mask = '(999)999-9999';\n\t\t\tif( $field['config']['type'] == 'international' ){\n\t\t\t\t$mask = '+99 99 999 9999';\n\t\t\t}elseif ( $field['config']['type'] == 'custom' ) {\n\t\t\t\t$mask = $field['config']['custom'];\n\t\t\t}\n\n\t\t}\n\n\t\tif( ! empty( $mask ) ){\n\t\t\t$mask = \"data-inputmask=\\\"'mask': '\" . $mask . \"'\\\" \";\n\t\t}\n\n\t\treturn $mask;\n\t}", "private function _createMaskStream($transparencyMask) {}", "protected function createPrefix(): string\n {\n return date('Y-m-d_h-i') . '-' . GeneralUtility::makeInstance(Random::class)->generateRandomHexString(16);\n }", "public function testBitImageColumnFormatBlack()\n {\n $this -> requireGraphicsLibrary();\n $img = EscposImage::load(dirname(__FILE__).\"/resources/canvas_black.png\");\n $this -> printer -> bitImageColumnFormat($img);\n $this -> checkOutput(\"\\x1b@\\x1b3\\x10\\x1b*!\\x01\\x00\\x80\\x00\\x00\\x0a\\x1b2\");\n }", "static function createFilterChar() {\r\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n return $characters[rand(0, strlen($characters) - 1)];\r\n }", "function markSanitizer($mrk){\r\n\t\t\t$mk = $mrk;\r\n\t\t\tglobal $std_mark;\r\n\t\t\tif($mk==-1){\r\n\t\t\t\t$std_mark = '__';\r\n\t\t\t}if($mk==-2){\r\n\t\t\t\t$std_mark = '';\r\n\t\t\t}\r\n\t\t\tif($mk==''){\r\n\t\t\t\t$std_mark = '';\r\n\t\t\t}\r\n\t\t\tif($mk!=-1 AND $mk!=-2 AND $mk!='' AND $mk!=NULL){\r\n\t\t\t\t$std_mark = $mk;\r\n\t\t\t}\r\n\t\t\tif($mk>=0 AND $mk<=9 AND $mk != NULL){\r\n\t\t\t\t$std_mark = '0'.$mk;\r\n\t\t\t}\r\n\t\t\treturn $std_mark;\r\n\t\t}", "public function __toString()\n\t{\n\t\treturn sprintf(\"%02X\", $this->getValue());\n\t}", "protected function markupFill() {\r\n\t\t\tif($this->_fill) {\r\n\t\t\t\treturn '&amp;chm=B,'.$this->_fill;\r\n\t\t\t} else {\r\n\t\t\t\treturn '';\r\n\t\t\t}\r\n\t\t}", "function Scaffold_hextorgb($hex,$format='preformatted') {\n\t// Regexp for a valid hex digit\n\t$d = '[a-fA-F0-9]';\n\t// Make sure $hex is valid\n\tif (preg_match(\"/^#($d$d)($d$d)($d$d)\\$/\", $hex, $rgb)) {\n\t $rgb_values = hexdec($rgb[1]).','.hexdec($rgb[2]).','.hexdec($rgb[3]);\n\t if ($format != 'preformatted') {\n\t\t return $rgb_values;\n\t }\n\t return 'rgb('.$rgb_values.')';\n\t}\n\tif (preg_match(\"/^($d)($d)($d)$/\", $hex, $rgb)) {\n\t $rgb_values = hexdec($rgb[1] . $rgb[1]).','.hexdec($rgb[2] . $rgb[2]).','.hexdec($rgb[3] . $rgb[3]);\n\t\tif ($format != 'preformatted') {\n\t\t return $rgb_values;\n\t }\n\t return 'rgb('.$rgb_values.')';\n\t}\n\treturn $hex;\n}", "function fill_zeroes_dots()\n{\n $generated = '';\n\n for ($i = 0; $i < 39; $i++) {\n if ($i % 10 == 9) {\n $generated .= '.';\n } else {\n $generated .= '#';\n }\n }\n\n return $generated;\n}", "public function setTokenMask ( array $mask )\n {\n $this->mask = $mask;\n return $this;\n }", "function Get_admin_system_emails_tmpl_bits()\r\n {\r\n $tpls=Get_admin_system_emails_tmpl_names();\r\n $tpls=array_values(preg_grep(\"/^your_[a-z_]+/\",$tpls,PREG_GREP_INVERT));\r\n $result=array_flip($tpls);\r\n $counter=0;\r\n foreach($result as $key => $value)\r\n {\r\n $result[$key]=(0x1 << $counter);\r\n $counter++;\r\n }\r\n return $result;\r\n }", "public function generateRowFillPatterns() : void\n {\n for($n = 0; $n < 512; $n++) {\n $pattern = str_split(sprintf(\"%09d\", decbin($n)), 1);\n if($this->isValid($pattern)) {\n $this->add($pattern);\n }\n }\n $this->shuffle();\n }", "public function format(string $mask) : string\n {\n //First we swap the original format patterns with temporary glyphs\n $patterns = ['/D/', '/l/', '/M/', '/F/'];\n $replacements = ['##', 'qq', '%%', '}}'];\n $mask = preg_replace($patterns, $replacements, $mask);\n\n if ($mask === null) {\n throw new \\RuntimeException('Something went wrong when formatting with mask ' . $mask);\n }\n\n $mask = date($mask, $this->getUnixTimestamp());\n $patterns = ['/##/', '/qq/', '/%%/', '/}}/'];\n $replacements = [\n $this->textProvider->weekAbbr($this->time),\n $this->textProvider->week($this->time),\n $this->textProvider->monthAbbr($this->time),\n $this->textProvider->month($this->time),\n ];\n\n $formattedTime = preg_replace($patterns, $replacements, $mask);\n\n if ($formattedTime === null) {\n throw new \\RuntimeException('Something went wrong when formatting with mask ' . $mask);\n }\n\n return $formattedTime;\n }", "function mascara($string, $mascara)\n{\n $maskared = '';\n $k = 0;\n for($i=0; $i<=strlen($mascara)-1; $i++){\n if($mascara[$i] == '#'){\n if(isset($string[$k]))\n $maskared .= $string[$k++];\n }else{\n if(isset($mascara[$i]))\n $maskared .= $mascara[$i];\n }\n }\n\n return $maskared;\n}", "function char_translate($u1)\n{ \n $conv = array(0,0xffff,0,0xffff); \n //echo \"len=\".mb_strlen($u1).\" , \".bin2hex($u1).\" , \".mb_decode_numericentity($u1,$conv).\"<br>\";\n switch (mb_strlen($u1))\n {\n case 1:\n $mask = 0x7f;\n break;\n case 2:\n $mask = 0x1f3f; /* U+80 - U+7ff : 110x-xxxx-10xx-xxxx */\n break;\n case 3:\n $mask = 0x0f3f3f; /* U+800 - U+ffff : 1110-xxxx-10xx-xxxx-10xx-xxxx */\n break;\n case 4:\n $mask = 0x073f3f3f; /* U+10000 - U+1fffff : 1111-0xxx-10xx-xxxx-10xx-xxxx-10xx-xxxx */\n break;\n }\n $a = intval(bin2hex($u1),16);\n $n = $a & $mask;\n $val = intval($n); \n //var_dump($a);\n //var_dump($mask);\n //var_dump($n);\n return $val;\n}", "public function testGenerateFormatWithoutReplaceChar()\n {\n $key = Keys::Generate(\"hdjas-skajdkasj-dj938-8848\");\n }", "function createKgMid() {\n $randomStr = '';\n $splitIndex = [8, 12, 16, 20];\n for ($index=0; $index < 32; $index++) {\n if (in_array($index, $splitIndex)) {\n $randomStr .= '-';\n }\n $randomStr .= dechex(random_int(0, 15));\n }\n return md5($randomStr);\n}", "public function testWhitelistSettingShortcutWithMultipleRanges()\n {\n $expected = 'tesseract image.png stdout'\n .\" -c 'tessedit_char_whitelist=0123456789ABCDEF-_@'\";\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->whitelist(range(0, 9), range('A', 'F'), '-_@')\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "function get_spill_pattern($of_what) {\r\n\r\n $length_of_what = strlen($of_what);\r\n $result = '/';\r\n\r\n for ($i = 0; $i < $length_of_what; $i++) {\r\n\r\n if ($i != $length_of_what - 1) $result .= $of_what[$i] . '[^' . $of_what[$i + 1] .']+'; else $result .= $of_what[$i] . '[^' . $of_what[0] .']*';\r\n\r\n }\r\n\r\n return $result . '/';\r\n\r\n}", "private function getMaskForPlugin(DisplayPlugin $plugin, $baseMask): string\n {\n $color = $this->getColorForPlugin($plugin);\n\n if (!$this->config['general']['enableRepositoryColors'] || !$plugin || !$color) {\n $baseMask = \\str_replace(['#COL_START#', '#COL_END#'], '', $baseMask);\n } else {\n $baseMask = \\str_replace(['#COL_START#', '#COL_END#'], [\"<fg={$color}>\", \"</fg={$color}>\"], $baseMask);\n }\n\n return $baseMask;\n }", "public function getPattern(): string;", "public function getPattern(): string;", "function random_color_part() {\n\t\treturn str_pad( dechex( mt_rand( 0, 255 ) ), 2, '0', STR_PAD_LEFT);\n\t}", "private function _formatSensitiveNumbers($number)\n {\n return strlen($number) - 4 > 0 ? str_repeat(\"*\", strlen($number) - 4) . substr($number, -4) : $number;\n }", "private function unmask($text)\n\t{\n\t\t\t$length = ord($text[1]) & 127;\n\t\t\tif ($length == 126) {\n\t\t\t\t\t$masks = substr($text, 4, 4);\n\t\t\t\t\t$data = substr($text, 8);\n\t\t\t} elseif ($length == 127) {\n\t\t\t\t\t$masks = substr($text, 10, 4);\n\t\t\t\t\t$data = substr($text, 14);\n\t\t\t} else {\n\t\t\t\t\t$masks = substr($text, 2, 4);\n\t\t\t\t\t$data = substr($text, 6);\n\t\t\t}\n\t\t\t$text = \"\";\n\t\t\tfor ($i = 0; $i < strlen($data); ++ $i) {\n\t\t\t\t\t$text .= $data[$i] ^ $masks[$i % 4];\n\t\t\t}\n\t\t\treturn $text;\n\t}", "public function getGlyphDataFormat() {}", "function terbilang($x, $style) {\n // untuk menggunakan gunakan cara berikut\n // terbilang('your_number', 'style_number')\n // style_number [1=> Untuk huruf terbilang besar seluruhnya, 2 => untuk huruf kecil seluruhnya, 3 => untuk huruf awal besar, 4 => untuk huruf pertama besar]\n if($x<0) {\n $hasil = \"minus \". trim(kekata($x));\n } else {\n $hasil = trim(kekata($x));\n } \n switch ($style) {\n case 1:\n $hasil = strtoupper($hasil);\n break;\n case 2:\n $hasil = strtolower($hasil);\n break;\n case 3:\n $hasil = ucwords($hasil);\n break;\n default:\n $hasil = ucfirst($hasil);\n break;\n } \n return $hasil;\n}", "public function getName()\n {\n return 'datemask';\n }", "function random_color_part() {\n return str_pad( dechex( mt_rand( 0, 255 ) ), 2, '0', STR_PAD_LEFT);\n}", "static function getCharacters()\n {\n return '\\x{00E5}\\x{00E4}\\x{00F6}';\n }", "function generateFlag($bit){\n\t\t$flag = 8-strlen($bit)%8 == 8 ? 0 : 8-strlen($bit)%8;\t\t//menghitung jumlah padding bit\n\t\t$finalbit = $bit;\t\t\t\t//menginisialisasi bit akhir\n\n\t\tfor($i=0;$i<$flag;$i++)\t\t\t//melakukan perulangan sebanyak padding bit\n\t\t $finalbit.=\"0\";\t\t\t\t//menambahkan 0 di akhir final bit\n\t\t\n\t\t$finalbit.=sprintf(\"%08d\",decbin($flag));\t\t//menambahkan flag bit ke final bit\n\n\t\treturn $finalbit; \t\t\t\t//mengembalikan final bit\n\t}", "public function createMaskBuilder()\n {\n return new MaskBuilder();\n }", "protected static function ownBuildPattern($masks)\n\t\t{\n\t\t\t$pattern = array();\n\t\t\t// TODO: accept regexp\n\t\t\tforeach ($masks as $mask)\n\t\t\t{\n\t\t\t\t$mask = rtrim(strtr($mask, '\\\\', '/'), '/');\n\t\t\t\t$prefix = '';\n\t\t\t\t\n\t\t\t\tif ($mask === '')\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telseif($mask === '*')\n\t\t\t\t{\n\t\t\t\t\treturn NULL;\n\t\t\t\t}\n\t\t\t\telseif($mask[0] === '/') // absolute fixing\n\t\t\t\t{\n\t\t\t\t\t$mask = ltrim($mask, '/');\n\t\t\t\t\t$prefix = '(?<=^/)';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$pattern[] = $prefix . strtr(preg_quote($mask, '#'),\n\t\t\t\t\tarray('\\*\\*' => '.*', '\\*' => '[^/]*', '\\?' => '[^/]', '\\[\\!' => '[^', '\\[' => '[', '\\]' => ']', '\\-' => '-')\n\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\treturn $pattern ? '#/(' . implode('|', $pattern) . ')\\z#i' : NULL;\n\t\t}", "function ifx_create_char($param)\n{\n}", "public function getImpermissible()\n {\n return 'x0x0x1' !== $this->impermissible ? $this->impermissible : $this->default;\n }", "function strip_zeros_from_date($marked_string = \"\") {\r\n $no_zeros = str_replace('*0', '', $marked_string);\r\n // then remove any remaining marks\r\n $cleaned_string = str_replace('*', '', $no_zeros);\r\n return $cleaned_string;\r\n}", "public function getNumberMasked($mask = 'X')\n {\n $maskLength = strlen($this->getNumber()) - 4;\n\n return str_repeat($mask, $maskLength) . $this->getNumberLastFour();\n }", "function sanitize_hex_color($color)\n {\n }", "private static function generateHexTimestamp() : string\n {\n $time = microtime(false);\n [$microseconds, $seconds] = explode(' ', $time);\n \n // Keep only millisecond digits.\n $microseconds = substr($microseconds, 2,3);\n \n $hex = base_convert($seconds . $microseconds, 10, 16);\n \n return str_pad($hex, self::TOTAL_CHARS_LENGTH - self::RANDOM_CHARS_LENGTH, '0', STR_PAD_LEFT);\n }", "function space1_8(&$fp) {\n\n fwrite($fp, chr(27).\"0\");\n }", "function antri($value) {\n $jml = strlen($value);\n if ($jml == 1)\n $no = \"000\" . $value;\n else if ($jml == 2)\n $no = \"00\" . $value;\n else if ($jml == 3)\n $no = \"0\" . $value;\n else if ($jml == 4)\n $no = $value;\n return $no;\n}", "public function generate(?string $mask = null, ?string $characters = null): string\n {\n $mask = $mask ?: $this->config->getMask();\n $characters = $characters ?: $this->config->getCharacters();\n\n $code = preg_replace_callback('/\\*/', function (array $matches) use ($characters) {\n return $characters[random_int(0, mb_strlen($characters) - 1)];\n }, $mask);\n\n return $this->wrap(\n $code,\n $this->config->getPrefix(),\n $this->config->getSuffix(),\n $this->config->getSeparator()\n );\n }", "public function setDashPattern($pattern) {}", "function fill_z_behind(&$str)\n{\n $len = strlen($str);\n\n for ($i = $len - 1; $i > 0; $i--) {\n if ($str[$i] == '#') {\n $str[$i] = 'Z';\n } elseif ($str[$i] == '.') {\n continue;\n } else {\n break;\n }\n }\n\n replace_hash_to_zero($str);\n}", "function generateBit($freq = array(), $codes = array()){\n\t\t$bit = \"\";\t\t//inisialisasi bit\n\n\t for($i = 0; $i < strlen($this->textInside); $i++)\t\t//melakukan perulangan sebanyak text \n\t $bit.=$codes[array_search($this->textInside[$i], array_keys($freq))]; //mencari char ke-i dalam freq dan menambahkannya ke dalam bit\n\n\t return $bit;\t\t//mengembalikan nilai bit\n\t}", "function strip_zeros_from_date($marked_string) {\n $no_zeros = str_replace('*0','',$marked_string);\n\n //Remove any remaining marks.\n $cleaned_string = str_replace('*','', $no_zeros);\n\n return $cleaned_string;\n }", "public function format($mask = self::MASK_TIMESTAMP_USER)\r\n {\r\n return $this->getValue($mask);\r\n }", "public function getKeyMask() {\r\n return $this->keyShift;\r\n }", "public function getMaskBuilder()\n {\n return new MaskBuilder();\n }", "public function getExpectedMask()\n {\n return isset($this->expected_mask) ? $this->expected_mask : null;\n }", "private function randHex()\n\t{\n\t\treturn dechex(floor(rand(100,65536)));\n\t}", "function gen_subnet_mask($bits) {\n\treturn long2ip(gen_subnet_mask_long($bits));\n}", "function perms($oct) {\n $str = decoct($oct);\n $out = substr($str, -5, 1) & 4 ? 'd' : '-';\n for ($i = -3; $i < 0; $i++) {\n $perm = substr($str, $i, 1);\n $out .= $perm & 4 ? 'r' : '-';\n $out .= $perm & 2 ? 'w' : '-';\n $out .= $perm & 1 ? 'x' : '-';\n }\n return $out;\n}" ]
[ "0.7030329", "0.6570189", "0.62926984", "0.6221535", "0.6150284", "0.5893773", "0.58568937", "0.58348495", "0.58256745", "0.58058727", "0.57693046", "0.5697905", "0.55844164", "0.5569644", "0.5522143", "0.5483221", "0.5473494", "0.5456519", "0.54529405", "0.54477346", "0.5432602", "0.54259413", "0.5412483", "0.53990656", "0.5395078", "0.53040415", "0.5281562", "0.52772415", "0.5261868", "0.5250177", "0.52259994", "0.5211032", "0.5208426", "0.5197826", "0.5169126", "0.5159914", "0.51426935", "0.51391906", "0.5123327", "0.5073904", "0.50523514", "0.50410604", "0.5039773", "0.5039773", "0.5039773", "0.50333506", "0.5026359", "0.50172913", "0.4960757", "0.4957126", "0.49379754", "0.49360573", "0.4915598", "0.49065226", "0.4902991", "0.49023956", "0.48979032", "0.48952663", "0.48799273", "0.48686567", "0.48556486", "0.4851768", "0.4838707", "0.48227206", "0.48223755", "0.48213974", "0.47898254", "0.47810775", "0.47540024", "0.47540024", "0.4740476", "0.47302613", "0.47231877", "0.47196355", "0.47053203", "0.4700911", "0.46876043", "0.46810386", "0.4664313", "0.46633732", "0.46530002", "0.4645251", "0.4637272", "0.46273318", "0.46257707", "0.46251717", "0.46210685", "0.46112862", "0.4607961", "0.46036178", "0.4598327", "0.45930845", "0.45908275", "0.45854625", "0.45818087", "0.45801544", "0.4572766", "0.45712325", "0.45666152", "0.45657212", "0.45587227" ]
0.0
-1
Strip all characters but letters and numbers
static private function cleanString($string, $options = []) { $toUpper = (isset($options['uppercase']) ? filter_var($options['uppercase'], FILTER_VALIDATE_BOOLEAN) : false); $toLower = (isset($options['lowercase']) ? filter_var($options['lowercase'], FILTER_VALIDATE_BOOLEAN) : false); $striped = preg_replace('/[^a-zA-Z0-9]/', '', trim($string)); // make uppercase if ($toLower && $toUpper) { throw new Exception('You cannot set both options (uppercase|lowercase) to "true"!'); } else if ($toLower) { return strtolower($striped); } else if ($toUpper) { return strtoupper($striped); } else { return $striped; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filter_alphanum($input) {\n return preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $input);\n}", "function filter_chars($str) {\n\treturn preg_replace(\"/[^A-Za-z0-9_]*/\", \"\", $str);\n}", "function scrub($str) {\n\t$str = preg_replace('/[^A-Za-z0-9]/','',$str);\n\treturn $str;\n}", "protected function filterAlphanum($value) {\n return preg_replace(\"/[^a-z0-9]/i\", \"\", $value);\n }", "function Strip_Bad_chars($input)\n{\n //$output = preg_replace(\"/[^a-zA-Z0-9_-]/\", \"\", $input);\n $output = preg_replace(\"/[^0-9]/\", \"\", $input);\n return $output;\n}", "function remove_nonalphanum( $data ) {\n\t$text = trim( $data, ' ' );\n\t$text = str_replace( ' ', '-', $text );\n\t$text = preg_replace( '/[^A-Za-z0-9-]/', '', $text );\n\treturn strtolower( $text );\n}", "function justAlphanumeric($var)\n{\n return preg_replace('/[^0-9A-Za-z]/', '', $var);\n}", "function removeNonAlphabets($character){\n return (ctype_alpha($character));\n}", "function strip_bad_chars( $input ) {\n $output = preg_replace( \"/[^a-zA-Z0-9_-]/\", \"\", $input );\n return $output;\n }", "function filteralpha($s){\n return preg_replace(\"/[^: ()_\\-a-zA-Z0-9+]/\",\"\", $s);\n}", "function sanitizeAlphaNum($var)\n{\n return preg_replace('/[^a-zA-Z0-9]/', '', $var);\n}", "function remove_special_chars($string) {\n\t return preg_replace ('/[^a-zA-Z0-9]/', '', $string);\n\t}", "static function ExtractAlphanumeric($string) {\n return @eregi_replace('[^0-9A-Za-z]', '', $string);\n }", "function sAlphanumeric( $string )\r\n\t\t{\r\n\t\t\t\treturn preg_replace( '/[^a-zA-Z0-9]/', '', $string );\r\n\t\t\t\t\r\n\t\t}", "function april_sanitize_alphanumeric ( $s ) {\n\treturn preg_replace(\"/[^a-zA-Z0-9\\\\-]+/\", \"\", $s);\n}", "public function filterInput(string $input) : string {\n return trim(preg_replace('/[^a-zA-Z0-9\\s]/', '',$input));\t\n }", "private function _removeNonAlphaCharacters($string)\n\t{\n\t\treturn preg_replace(\"/(\\W*)/i\", \"\", $string);\n\t}", "function doMkAlpha ($string)\n{\n return preg_replace ('/[^a-z0-9]/i', '', $string);\n}", "public static function removeNonAlphanumericCharacters( $input ) {\n if ( is_array( $input ) ) {\n $output = array();\n foreach ( $input as $data ) {\n $output[] = preg_replace('/[^A-Za-z0-9]/', '', $data);\n }\n return $output;\n } else {\n return preg_replace('/[^A-Za-z0-9]/', '', $input);\n }\n\t}", "public static function onlyAlphaNum($value)\n {\n return preg_replace('#[^[:alnum:]]#', '', $value);\n }", "function my_filter($string, $regex_chars)\n{\n for ($i=0; $i<strlen($regex_chars); $i++)\n {\n $char = substr($regex_chars, $i, 1);\n $string = str_replace($char, '', $string);\n// echo $string . '<br>';\n }\n return $string;\n}", "public static function GetAlphaNumericCharacters()\n {\n $ascii = self::GetCharacters();\n\n return preg_replace('/[^A-Z0-9]*/i', '', $ascii);\n }", "function clean_special_character_from_string($string) {\n $string = str_replace(' ', '-', $string); \n // Removes special chars.\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $string);\n}", "function removeUnnecessaryCharas($string)\n{\n return preg_replace('~\\s+~s', '', $string);\n}", "function remove_allpuncutation($text)\n{\n\t$otext = $text;\n\t$text = preg_replace('/[^a-zA-Z0-9|+|-|\\*|Š|š|Ž|ž|À|Á|Â|Ã|Ä|Å|Æ|Ç|È|É|Ê|Ë|Ì|Í|Î|Ï|Ñ|Ò|Ó|Ô|Õ|Ö|Ø|Ù|Ú|Û|Ü|Ý|Þ|ß|à|á|â|ã|ä|å|æ|ç|è|é|ê|ë|ì|í|î|ï|ð|ñ|ò|ó|ô|õ|ö|ø|ù|ú|û|ý|þ|ÿ]/is', ' ', $text);\n\t\n\trunDebug( __FILE__, __FUNCTION__, __LINE__, \"In: $otext Out:$text\",3);\n\t\n\treturn $text;\n}", "function alphaNumeric($string) {\n\treturn preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $string);\n}", "function soNumero($str) {\r\nreturn preg_replace(\"/[^0-9]/\", \"\", $str);\r\n\r\n}", "public function cleanToName($name){\n // Remove empty space\n $name = str_replace(' ', '', $name);\n // Remove special character\n $name = preg_replace('/[^A-Za-z0-9\\-]/', '', $name);\n // Return without numbers\n return preg_replace('/[0-9]+/', '', $name);\n \n }", "public static function strip_non_ascii($str) {\n\t\treturn preg_replace('/[^\\x00-\\x7F]+/S', '', $str);\n\t}", "public function filter($value)\n {\n $whiteSpace = $this->allowWhiteSpace ? '\\s' : '';\n\n if ($this->englishAlphabethOnly || !self::$unicodeEnabled) {\n $pattern = '/[^a-zA-Z' . $whiteSpace . ']/';\n }\n else {\n $pattern = '/[^\\p{L}' . $whiteSpace . ']/u';\n }\n\n return preg_replace($pattern, '', (string) $value);\n }", "public static function string_sanitize($s) {\n $result = preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", html_entity_decode($s, ENT_QUOTES));\n return $result;\n }", "function filter($word)\r\n{\r\n $word = trim($word);\r\n $word = preg_replace('/[^A-Za-z0-9\\-]/','', $word);\r\n return strtolower($word);\r\n}", "function format($line) {\n return preg_replace(\"/[^A-Za-z0-9]/\", '', $line);\n}", "public static function clean($text)\n {\n $text = preg_replace('/\\W+/', '', $text);\n \n // trim and lowercase\n $text = strtolower(trim($text, '-'));\n \n return $text;\n }", "function make_clean($value) {\n\t\t$legal_chars = \"%[^0-9a-zA-Z������� ]%\"; //allow letters, numbers & space\n\t\t$new_value = preg_replace($legal_chars,\"\",$value); //replace with \"\"\n\t\treturn $new_value;\n\t}", "function filterString($string){\n $string = filter_var(trim($string), FILTER_SANITIZE_SPECIAL_CHARS); // Removes a small list of special chars\n // $string = filter_var(trim($string), FILTER_SANITIZE_FULL_SPECIAL_CHARS); // Removes all special chars\n return $string;\n}", "function remove_strange_chars($txt){\n\t\treturn(str_replace(array('<','>',\"'\",\";\",\"&\",\"\\\\\"),'',$txt));\n\t}", "function sanitize($name)\n {\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $name);\n }", "function safeString($string)\n {\n return eregi_replace('[^[:alnum:] ]', '', $string);\n }", "public function removeSpecialChars()\n {\n $this->input = preg_replace(\"/[^A-Za-z0-9\\-]/\", \" \", $this->input);\n return $this;\n }", "function clean($string) {\r\n $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.\r\n\r\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $string); // Removes special chars.\r\n}", "function remove_puncutation($text)\n{\t\n\t$otext = $text;\n\t$text = preg_replace('/[^a-zA-Z0-9|+|-|*|\\/|\\.|?|!|Š|š|Ž|ž|À|Á|Â|Ã|Ä|Å|Æ|Ç|È|É|Ê|Ë|Ì|Í|Î|Ï|Ñ|Ò|Ó|Ô|Õ|Ö|Ø|Ù|Ú|Û|Ü|Ý|Þ|ß|à|á|â|ã|ä|å|æ|ç|è|é|ê|ë|ì| í|î|ï|ð|ñ|ò|ó|ô|õ|ö|ø|ù|ú|û|ý|þ|ÿ]/i', ' ', $text);\n\t\n\trunDebug( __FILE__, __FUNCTION__, __LINE__, \"In: $otext Out:$text\",3);\n\t\n\treturn $text;\n}", "function unmaskString($val)\n {\n return preg_replace(\"/[^a-zA-Z 0-9]+/\", \"\", $val);\n }", "private function process_alphanum($value)\n {\n return ! preg_match('/[^a-zA-Z0-9]/', $value);\n }", "public static function clean($string){\n $string = str_replace(' ','',$string);\n return strtolower(preg_replace('/[^A-Za-z0-9-]/','',$string));\n }", "function removeSpecialChars($oldText)\r\n{\r\n // Se corrige os acentos com iso, taca iso\r\n if ( strlen($oldText) > strlen(utf8_decode($oldText)) )\r\n {\r\n $oldText = utf8_decode($oldText);\r\n }\r\n\r\n /*\r\n * A função \"strtr\" substitui os caracteres acentuados pelos não acentuados.\r\n * A função \"ereg_replace\" utiliza uma expressão regular que remove todos os\r\n * caracteres que não são letras, números e são diferentes de \"_\" (underscore).\r\n */\r\n $newText = preg_replace('[^a-zA-Z0-9_-.]', '', strtr($oldText, 'áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ ', 'aaaaeeiooouucAAAAEEIOOOUUC_'));\r\n\r\n if ( !(strlen($newText) > 0) )\r\n {\r\n $newText = 'nome_invalido-'.getRandomNumbers().getRandomNumbers();\r\n }\r\n\r\n return $newText;\r\n}", "function justNumbers($var)\n{\n return preg_replace('/[^0-9]/', '', $var);\n}", "public static function clearString(string $str)\n {\n return preg_replace(\"[^a-zA-Z0-9]\", \"\", $str);\n }", "function clean($string) {\n $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $string); // Removes special chars.\n}", "function clean($string) {\n $string = str_replace('%', ' ', $string); // Replaces all spaces with hyphens.\n\n return $result = preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $string); // Removes special chars. // Removes special chars.\n }", "function cleanText($text)\n{\n\t$text = strtolower($text);\n\t//$text = iconv('utf-8', 'ascii//TRANSLIT', $text);\n\t$text = preg_replace(\"/&([a-z])[a-z]+;/i\", \"$1\", htmlentities($text));\n\t$text = preg_replace(\"#[[:punct:]]#\", \"\", $text);\n\treturn ($text);\n}", "function sanitize(){\r\n\t\t $outar = Array();\r\n \t $arg_list = func_get_args();\r\n\t\t foreach($arg_list[0] as $key => $value){\r\n\t\t\t\t $data = $value;\r\n\t\t\t\t $data = PREG_REPLACE(\"/[^0-9a-zA-Z]/i\", '', $data);\r\n\t\t\t\t array_push($outar,$data);\r\n\t\t }\r\n\t\treturn $outar;\r\n\t }", "public function just_clean($string)\n {\n $s = '!@#$%^&*()_+-={}[]:\";\\'?/.,<>`~';\n for($i=0;$i<mb_strlen($s,'utf-8');$i++)\n {\n $string = str_replace(mb_substr($s,$i,1,'utf-8'),'', $string);\n $string = str_replace(' ',' ', $string);\n }\n return trim($string);\n }", "function char_filter($ojb)\n {\n $badchars='Ý`~!@$%^()+-_=[]{}\\'\\\\:\"|,/<>? '; # Nhung ky tu khong cho phep duoc len danh sach tai day\n for ($i=0;$i<strlen($badchars);$i++){\n $ojb=str_replace($badchars[$i],\"\",$ojb);\n\n }\n\n return $ojb;\n }", "function clean($string) {\r\n $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.\r\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $string); // Removes special chars.\r\n }", "public function removeNonAlphanumeric()\n {\n $this->provider->removeNonAlphanumeric();\n \n return $this;\n }", "public function filter($var) {\n\t\treturn preg_replace('/[^-a-zA-Z0-9@. \\/]/', '', $var);\n }", "function preclean($dirtyString){\n\t\t//1. removes any bad characters\n\t\t//2. trims whitespace\n\n\t\treturn ereg_replace(\"[^A-Za-z0-9-]\", \"\", trim($dirtyString));\n\t}", "function strip_invalid($arr) {\r\n return array_filter($arr, function($val) {\r\n return !preg_match('|[^A-Z0-9\\-\\.]|i', $val);\r\n });\r\n}", "public static function removeSpecialCharacters(string $string): string\n {\n return preg_replace('/[^a-zA-Z0-9]/', '', $string);\n }", "function clean_unwanted_characters($oneStr){\n\t$cleaned_str = $oneStr;\r\n// \t$cleaned_str = str_ireplace(\"\\\"\", \"/\", $oneStr);\r\n// \t$cleaned_str = str_ireplace(\"\\\\\", \"/\", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\b\", \" \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\f\", \" / \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\r\", \" / \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\t\", \" \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\u\", \" \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"</\", \"<\\/\", $cleaned_str);\r\n\treturn $cleaned_str;\n\r\n}", "function purge ($str)\n {\n $purged_str = preg_replace(\"/\\W/\", \"\", $str);\n return $purged_str;\n }", "public static function stripFunkyChars($string = '') {\n\n foreach (StringTools::funkyCharsMap() as $weird => $normal) {\n $string = str_replace($weird, '', $string);\n }\n\n return $string;\n }", "function Strip($value)\n{\n\t$value = StripGPC($value);\n\t$value = str_replace(\"\\\"\",\"'\",$value);\n\t$value = preg_replace('/[[:cntrl:][:space:]]+/',\" \",$value);\t// zap all control chars and multiple blanks\n\treturn ($value);\n}", "public static function AlphaNumeric($Mixed) {\n if (!is_string($Mixed))\n return self::To($Mixed, 'ForAlphaNumeric');\n else\n return preg_replace('/([^\\w\\d_-])/', '', $Mixed);\n }", "function cardNumberClean($number)\n {\n return preg_replace(\"/[^0-9]/\", \"\", $number);\n }", "function string_filter($string)\n{\n $string = preg_replace(\"/[^A-Za-z']/\", \"\", $string);\n $string = trim(ucfirst(strtolower($string)));\n $string = str_replace(\"'\", \"\\'\", $string);\n return $string;\n}", "public static function clean ($text) {\n\t\t$to_return = strtolower($text);\n\t\t$to_return = preg_replace(\"/(?![.=$'€%-])\\p{P}/u\", \"\", $to_return);\n\t\t$to_return = trim($to_return);\n\t\t// remove double spacing\n\t\twhile (strpos($to_return, ' ')) {\n\t\t\t$to_return = str_replace(' ', ' ', $to_return);\n\t\t}\n\t\treturn $to_return;\n\t}", "function sa_sanitize_chars($filename) {\n return strtolower(preg_replace('/[^a-zA-Z0-9-_\\.]/', '', $filename));\n}", "static function removePunctuation($string)\n {\n return preg_replace(\"/[^A-Za-z0-9 ]/\", '', $string);\n }", "function txt_alphanumerical_clean( $t, $additional_tags=\"\" )\n\t{\n\t\tif ( $additional_tags )\n\t\t{\n\t\t\t$additional_tags = preg_quote( $additional_tags, \"/\" );\n\t\t}\n\t\t\n\t\treturn preg_replace( \"/[^a-zA-Z0-9\\-\\_\".$additional_tags.\"]/\", \"\" , $t );\n }", "public static function onlyAlpha($value)\n {\n return preg_replace('#[^[:alpha:]]#', '', $value);\n }", "function sanitize_username($s) {\n\treturn preg_replace(\"/[^a-zA-Z0-9-_]/\", '', trim($s));\n}", "function vAlphanumeric( $string )\r\n\t\t{\r\n\t\t\treturn ctype_alnum ( $string );\r\n\t\t\t\t\r\n\t\t}", "function htmlRemoveSpecialCharacters($input){\n\t\tfor($i=0; $i<strlen($input); $i++){\n\n\t\t\t$value = ord($input[$i]);\n\t\t\tif($value >= 48 && $value <= 57);\n\t\t\telseif ($value >= 65 && $value <= 90) ;\n\t\t\telseif ($value >= 97 && $value <= 122) ;\n\t\t\telseif ($value == 32) ;\n\t\t\telse{\n\t\t\t\t$input = substr($input, 0, $i) . '\\\\' . substr($input, $i);\n\t\t\t}\n\t\t}\n\t\techo $input;\n\t\treturn $input;\n\t}", "public function trimText($str) {\n $str = preg_replace('/^\\p{Z}+|\\p{Z}+$/u', '', $str);\n return $str;\n }", "function clean_number($phone_number){\n\treturn preg_replace(\"/[^0-9]/\", \"\", $phone_number);\n}", "function _remove_invisible_characters($str)\n\t{\n\t\tstatic $non_displayables;\n\n\t\tif ( ! isset($non_displayables))\n\t\t{\n\t\t\t// every control character except newline (dec 10), carriage return (dec 13), and horizontal tab (dec 09),\n\t\t\t$non_displayables = array(\n\t\t\t\t\t\t\t\t\t\t'/%0[0-8bcef]/',\t\t\t// url encoded 00-08, 11, 12, 14, 15\n\t\t\t\t\t\t\t\t\t\t'/%1[0-9a-f]/',\t\t\t\t// url encoded 16-31\n\t\t\t\t\t\t\t\t\t\t'/[\\x00-\\x08]/',\t\t\t// 00-08\n\t\t\t\t\t\t\t\t\t\t'/\\x0b/', '/\\x0c/',\t\t\t// 11, 12\n\t\t\t\t\t\t\t\t\t\t'/[\\x0e-\\x1f]/'\t\t\t\t// 14-31\n\t\t\t\t\t\t\t\t\t);\n\t\t}\n\n\t\tdo\n\t\t{\n\t\t\t$cleaned = $str;\n\t\t\t$str = preg_replace($non_displayables, '', $str);\n\t\t}\n\t\twhile ($cleaned != $str);\n\n\t\treturn $str;\n\t}", "function cws_clean( $string ) {\n\t$string = str_replace( array( '[\\', \\']' ), '', $string);\n\t$string = preg_replace( '/\\[.*\\]/U', '', $string );\n\t$string = preg_replace( '/&(amp;)?#?[a-z0-9]+;/i', '-', $string );\n\t$string = htmlentities( $string, ENT_COMPAT, 'utf-8' );\n\t$string = preg_replace( '/&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);/i', '\\\\1', $string );\n\t$string = preg_replace( array('/[^a-z0-9]/i', '/[-]+/') , '-', $string );\n\n\treturn strtolower( trim( $string, '-' ) );\n}", "public static function strip_ascii_ctrl($str) {\n\t\treturn preg_replace('/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]+/S', '', $str);\n\t}", "function sanitize($str){\n $find = array( 'á', 'é', 'í', 'ó', 'ú', 'Á', 'É', 'Í', 'Ó', 'Ú', 'ñ', 'Ñ' );\n $replace = array( 'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U', 'n', 'N' );\n return strtolower(preg_replace('/[^a-zA-Z0-9 ]/s', '',str_ireplace($find, $replace, preg_replace('/[^\\w ]/', '', $str))));\n\n }", "private function strip($given) {\n\t\t$stripped = preg_replace(array('/\\s{2,}/', '/[\\t\\n]/'), ' ', trim($given));\n\t\t\n\t\t// For each of these characters, remove any surrounding white space\n\t\t$clean = array(';', ',', '(', ')', '=', ':', '[', ']', '/', '!', '>', '<', '&lt;', '&gt;');\n\t\tforeach($clean as $c) {\n\t\t\t$stripped = preg_replace('/\\s*\\\\' . $c . '\\s*/', $c, $stripped);\n\t\t}\n\n\t\treturn $stripped;\n\t}", "static function alphaNum( $st_data )\r\n {\r\n $st_data = preg_replace(\"([[:punct:]]| )\",'',$st_data);\r\n return $st_data;\r\n }", "protected static function removePunctuationAndSpaces(string $string): string\n {\n return preg_replace('/[^[:alnum:]]/u', '', $string);\n }", "public static function str_clean($str){\n\t $str = str_replace(' ', '-', $str); // Replaces all spaces with hyphens.\n\t $str = preg_replace('/[^A-Za-z0-9\\-]/', '', $str); // Removes special chars.\n\t return preg_replace('/-+/', '-', $str); // Replaces multiple hyphens with single one.\n\t}", "public static function strip_2_kb_chars($string = '')\n\t\t{\n\t\t\treturn preg_replace('/[^0-9A-Z'.\"\\r\\n\\t\".'\\s`\\=\\[\\]\\\\\\;\\',\\.\\/~\\!@#\\$%\\^&\\*\\(\\)_\\+\\|\\}\\{\\:\"\\?\\>\\<\\-]/i', '', remove_accents((string)$string));\n\t\t}", "protected function remove_non_ascii( $string ) {\n\t\treturn preg_replace( '/[\\x00-\\x1F\\x7F-\\xFF]/', '', $string );\n\t}", "function make_clean_str($str) {\n\treturn ucwords(trim(preg_replace('/[ ]+/',' ',preg_replace('/[^0-9a-zA-Z\\+]/',' ',strtolower($str))),' '));\n}", "public static function unicodeAlphaNumeric($string)\n {\n $clean = preg_replace(\"/[^\\p{L}|\\p{N}]+/u\", \" \", $string);\n $clean = preg_replace(\"/[\\p{Z}]{2,}/u\", \" \", $clean);\n\n return $clean;\n }", "private static function stripIllegalChars()\n {\n $input_arr = array();\n foreach ($_POST as $key => $input_arr)\n {\n $_POST[$key] = preg_replace(\"/[^a-zA-Z0-9\\s!@#$%&*()_\\-=+?.,:\\/]/\", \"\", $input_arr);\n }\n }", "private function filter() : string\r\n {\r\n return preg_filter('|([^\\(\\)]*)|m', '', $this->string);\r\n }", "function doMkCharacter ($string)\n{\n return preg_replace ('/[^a-zA-Z0-9\\-_:\\.=;]/i', '', trim (substr ($string, 0, 35)));\n}", "function remove_numbers($string) {\n $vowels = array(\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\", \" \");\n $string = str_replace($vowels, ' ', $string);\n return $string;\n}", "public static function sanitize($input){\n\t\t\t\t\n \t\t return $s = preg_replace(\"/[^A-Z0-9a-z\\w ]/u\",\"\", $input);\n\n\t\t}", "function search_strip_badchars($line) {\n// \n $line = str_replace(\".\", \" \", $line);\n $line = str_replace(\"\\\"\", \" \", $line);\n $line = str_replace(\"'\", \"\", $line);\n $line = str_replace(\"+\", \" \", $line);\n $line = str_replace(\"-\", \" \", $line);\n $line = str_replace(\"*\", \" \", $line);\n $line = str_replace(\"/\", \" \", $line);\n $line = str_replace(\"!\", \" \", $line);\n $line = str_replace(\"%\", \" \", $line);\n $line = str_replace(\">\", \" \", $line);\n $line = str_replace(\"<\", \" \", $line);\n $line = str_replace(\"^\", \" \", $line);\n $line = str_replace(\"(\", \" \", $line);\n $line = str_replace(\")\", \" \", $line);\n $line = str_replace(\"[\", \" \", $line);\n $line = str_replace(\"]\", \" \", $line);\n $line = str_replace(\"{\", \" \", $line);\n $line = str_replace(\"}\", \" \", $line);\n $line = str_replace(\"\\\\\", \" \", $line);\n $line = str_replace(\"=\", \" \", $line);\n $line = str_replace(\"$\", \" \", $line);\n $line = str_replace(\"#\", \" \", $line);\n $line = str_replace(\"?\", \" \", $line);\n $line = str_replace(\"~\", \" \", $line);\n $line = str_replace(\":\", \" \", $line);\n $line = str_replace(\"_\", \" \", $line);\n $line = str_replace(\" \", \" \", $line);\n $line = str_replace(\"&amp;\", \" \", $line);\n $line = str_replace(\"&copy;\", \" \", $line);\n $line = str_replace(\"&nbsp;\", \" \", $line);\n $line = str_replace(\"&quot;\", \" \", $line);\n $line = str_replace(\"&\", \" \", $line);\n $line = str_replace(\";\", \" \", $line);\n $line = str_replace(\"\\n\", \" \", $line);\n return $line;\n}", "public function clean($string) {\n\t\t$string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.\n\n\t\treturn preg_replace('/[^A-Za-z0-9\\-]/', '', $string); // Removes special chars.\n\t}", "function clean($filename) \n {\n return preg_replace('/[^0-9a-z\\.\\_\\-]/i','', strtolower($filename));\n }", "protected function strip_non_numeric($cardno) {\n return preg_replace('/[^0-9]/', null, $cardno);\n }", "public function phoneClean():string\n {\n $phone = '';\n if (!empty($this->phone)) {\n $phone = preg_replace('#[^\\d\\+]#si', '', $this->phone);\n }\n return $phone;\n }", "function normalize_special_characters($str, $unwanted=false) {\n \n\t# Quotes cleanup\n\t$str = str_replace(chr(ord(\"`\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"´\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"„\")), \",\", $str);\n\t$str = str_replace(chr(ord(\"`\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"´\")), \"'\", $str);\n\t$str = str_replace(chr(ord(\"“\")), \"\\\"\", $str);\n\t$str = str_replace(chr(ord(\"”\")), \"\\\"\", $str);\n\t$str = str_replace(chr(ord(\"´\")), \"'\", $str);\n\n\t$unwanted_array = array('Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss', 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y');\n\tif($unwanted)\n \t$str = strtr($str, $unwanted_array);\n\n\t# Bullets, dashes, and trademarks\n\t$str = str_replace(chr(149), \"&#8226;\", $str);\t# bullet •\n\t$str = str_replace(chr(150), \"&ndash;\", $str);\t# en dash\n\t$str = str_replace(chr(151), \"&mdash;\", $str);\t# em dash\n\t$str = str_replace(chr(153), \"&#8482;\", $str);\t# trademark\n\t$str = str_replace(chr(169), \"&copy;\", $str);\t# copyright mark\n\t$str = str_replace(chr(174), \"&reg;\", $str);\t# registration mark\n\n\treturn $str;\n}", "function txt_md5_clean( $t )\n\t{\n\t\treturn preg_replace( \"/[^a-zA-Z0-9]/\", \"\" , substr( $t, 0, 32 ) );\n }" ]
[ "0.82023156", "0.77356166", "0.75885504", "0.74948305", "0.74496245", "0.7437641", "0.73685175", "0.71756965", "0.71596277", "0.7157122", "0.7136199", "0.7010739", "0.69139147", "0.682295", "0.6788369", "0.675117", "0.6750461", "0.67427504", "0.6725067", "0.6665459", "0.6649597", "0.6599964", "0.65852475", "0.644806", "0.6444858", "0.6441443", "0.6414453", "0.63711375", "0.6331554", "0.63217765", "0.6318243", "0.6315201", "0.62993395", "0.6290414", "0.6272332", "0.6243578", "0.62413836", "0.62144893", "0.6208278", "0.62015074", "0.61900395", "0.6180222", "0.6178284", "0.6176537", "0.61737305", "0.615767", "0.61569166", "0.6155127", "0.6147982", "0.6147329", "0.6144753", "0.6142944", "0.6129934", "0.6129462", "0.61238545", "0.6105018", "0.60991806", "0.6098088", "0.60882807", "0.6083864", "0.60780734", "0.6071048", "0.6063057", "0.60588443", "0.6055813", "0.60505974", "0.6037098", "0.6013196", "0.60126567", "0.5941246", "0.5937581", "0.59148914", "0.5903273", "0.58825606", "0.58790505", "0.5875347", "0.58654755", "0.5860287", "0.5859203", "0.5854104", "0.58520657", "0.5837111", "0.5832706", "0.58312285", "0.58191234", "0.58187395", "0.58129704", "0.5810273", "0.5783729", "0.577471", "0.5769274", "0.5768526", "0.5767686", "0.5763364", "0.5746547", "0.57366765", "0.5733159", "0.57256883", "0.57143754", "0.57007664", "0.5691071" ]
0.0
-1
author : Troy Mokoagow
function __construct(){ parent::__construct(); $this->load->model('transaksi_model'); if(!$this->session->userdata('nama')) { redirect('auth'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _i() {\n }", "public function helper()\n\t{\n\t\n\t}", "final function velcom(){\n }", "public function nadar()\n {\n }", "public function ogs()\r\n {\r\n }", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function serch()\n {\n }", "private function __() {\n }", "public function masodik()\n {\n }", "private function __construct()\t{}", "private function j() {\n }", "private function __construct() { \n\t\t\n\n\t}", "final private function __construct(){\r\r\n\t}", "public function hapus_toko(){\n\t}", "private function __construct() {\r\n\t\t\r\n\t}", "function __construct() ;", "public function elso()\n {\n }", "private function __construct () {}", "private function __construct()\r\n {\r\n }", "private function __construct()\r\n {\r\n }", "public function __init(){}", "function __construct()\n\t{\n\t\t\n\t\t\n\t}", "public function init() {\t\t\n\n }", "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}", "public function __construct() {\n\t\t\n\t}", "public function __construct()\n\t\t{\n\t\t\t\n\t\t}", "abstract public function getPasiekimai();", "public function obtener()\n {\n }", "private function __construct() {\r\n\t\r\n\t}", "private function __construct() \n {\n\t\t\n }", "private function __construct( )\n {\n\t}", "public function __construct() {\n \t\t \t\n\t\t}", "public function custom()\n\t{\n\t}", "private function __construct () \n\t{\n\t}", "public function __construct()\n\t\t{\t\t\t\n\t\t}", "function __construct (){\n\t\t}", "private function __construct()\n\t{\n\t\t\n\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "public function __construct(){\n\t\t\n\t}", "public function __construct(){\n\t\t\n\t}", "public function inOriginal();", "public function ex4()\n {\n }", "public static function main(){\n\t\t\t\n\t\t}", "private function __construct()\r\r\n\t{\r\r\n\t}", "public function __construct() {\n\n \t}", "private function __construct(){\n\t\n\t}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "public function init(){\n\t\t\n\t}", "protected function test9() {\n\n }", "private function __construct(){\n\t\t }", "public function __construct() {\r\n\t\t\r\n\t}", "private function __construct() {}", "public function andar()\n {\n }", "public function init()\n { \t\n }", "public function abono();", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.5762448", "0.5726687", "0.5537998", "0.5517289", "0.55092007", "0.55091494", "0.5499905", "0.5495255", "0.545369", "0.5388123", "0.53817385", "0.5379319", "0.53563255", "0.5352458", "0.5336452", "0.5330083", "0.53028744", "0.52673674", "0.52548134", "0.5250418", "0.5250418", "0.5246861", "0.5245466", "0.52398133", "0.52358896", "0.52358896", "0.52358896", "0.52358896", "0.52358896", "0.5234732", "0.52339125", "0.522981", "0.5218478", "0.5207541", "0.52066755", "0.5202737", "0.5187621", "0.5175527", "0.5172349", "0.51722723", "0.51677597", "0.5156905", "0.5151454", "0.5151454", "0.51507264", "0.5142267", "0.5134843", "0.51318336", "0.51261866", "0.51228356", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5114119", "0.5109586", "0.5104826", "0.510394", "0.5102657", "0.5099584", "0.50995255", "0.50983745", "0.50978714", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687", "0.5097687" ]
0.0
-1
forcibly cast to an integer
public function __construct($id) { $id = (int)$id; $sql = "select * from sm16_surveys where SurveyID = " . $id; $result = mysqli_query(IDB::conn(),$sql) or die(trigger_error(mysqli_error(IDB::conn()), E_USER_ERROR)); if(mysqli_num_rows($result) > 0) {#records exist - process $this->SurveyID = $id; $this->isValid = true; while ($row = mysqli_fetch_assoc($result)) { $this->Title = dbOut($row['Title']); $this->Description = dbOut($row['Description']); } } @mysqli_free_result($result); # We're done with the data! }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function o_castInt($value) {\n\t\t\treturn Obj::singleton()->castInt($value);\n\t\t}", "public function toInt()\n {\n return $this->cast('int');\n }", "public function toInt()\n {\n return self::infer((int) $this->value);\n }", "public function & toInt()\n\t{\n\t\t$x = integer((int)$this->data);\n\t\treturn $x;\n\t}", "public function toInt() : int\n {\n return intval($this->value);\n }", "public function toInt(): int\n {\n return (int) $this->getValue();\n }", "public function toNative(): int\n {\n return \\intval(parent::toNative());\n }", "public function toInt(): int\n\t{\n\t\treturn 0;\n\t}", "public function toNative()\n {\n $value = parent::toNative();\n\n return \\intval($value);\n }", "public function asInt($key)\n {\n\n if (isset($this->data[$key]))\n return (int)$this->data[$key];\n else\n return 0;\n\n }", "protected function typeCast($value) {\n\t\t# Cast\n\t\treturn (int) $value;\n\t}", "#[@test]\n public function integerCast() {\n $this->assertSourcecodeEquals(\n '$i= (int)$str;',\n $this->emit('$i= (int)$str;')\n );\n }", "function int($value)\n{\n return intval($value);\n}", "public function castToInt($number)\n {\n return (int)$number;\n }", "public function toInteger(&$value = false)\n {\n try{\n $value = (int)$value;\n }\n catch(\\Exception $e){\n $value = 0;\n }\n }", "public static function cast($value)\n {\n if(strlen($value)) {\n return (int) $value;\n }\n return null;\n }", "function getInteger($input) : int {\n return $input;\n}", "public function toInt($name)\n {\n return (int) $this->$name;\n }", "function to_int ($int) {\n\t\n\t\tif (is_integer($int)) return $int;\n\t\t\n\t\tif (\n\t\t\tis_numeric($int) &&\n\t\t\t(($intval=intval($int))==floatval($int))\n\t\t) return $intval;\n\t\t\n\t\treturn null;\n\t\n\t}", "public function scrubInt(int $data) : int;", "public function cast()\n {\n $this->id = (int)$this->id;\n $this->onboarding_percentage = (int)$this->onboarding_percentage;\n $this->count_applications = (int)$this->count_applications;\n $this->count_accepted_applications = (int)$this->count_accepted_applications;\n }", "function db_intval($int)\n{\n\treturn $int + 0;\n}", "public function testCastToInteger($data) {\n\t\t$this->assertTrue(is_int(Convertor::cast($data)), \"[{$data}] is not Integer\");\n\t\t$this->assertGreaterThan(0, Convertor::cast($data), \"[{$data}] is not greater than 0\");\n\t}", "public static function toInt($val) {\n return self::between($val, PHP_INT_MIN, PHP_INT_MAX) ? (int)$val : (string)$val;\n }", "public static function GetInt($key)\n {\n return (int)self::Get($key);\n }", "public static function integer()\n {\n return self::builtinType('int');\n }", "public function getInt32Field()\n {\n $value = $this->get(self::INT32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "public function asNumber(): int\n {\n return $this->value;\n }", "public static function intval($integer, ORM $object = NULL)\n {\n return intval($integer);\n }", "function toInt ($value) {\n assert(count(func_get_args()) == 1);\n if (is_scalar($value)) {\n /**\n * Conversion to float is being applied to the value to allow leading zeros.\n * @see https://bugs.php.net/bug.php?id=43372\n */\n $floatValue = filter_var($value, FILTER_VALIDATE_FLOAT, FILTER_NULL_ON_FAILURE);\n $convertedValue = filter_var($floatValue, FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE);\n if ($convertedValue !== null)\n return $convertedValue;\n }\n if (is_object($value) && hasMember($value, 'toInt'))\n return toInt($value->toInt());\n throw new RuntimeException('Unable to convert to int.');\n}", "public static function toInteger(IInt32\\Type $x) : IInteger\\Type {\n\t\t\treturn IInteger\\Type::make($x->unbox());\n\t\t}", "public function & toInt () {\n return $this->varContainer;\n }", "public static function ensureInteger($value)\n\t{\n\t\treturn (integer)$value;\n\t}", "public function toInt(): int\n {\n if ($this->ipVersion == 4) {\n return ip2long($this->addrStr);\n } else {\n throw new \\LogicException('IPv6 address cannot be converted to long');\n }\n }", "function castInts() {\n\t\t$this->id = (null === $this->id) ? null : (int) $this->id;\n\t\t$this->session_id = (null === $this->session_id) ? null : (int) $this->session_id;\n\t\t$this->classroom_id = (null === $this->classroom_id) ? null : (int) $this->classroom_id;\n\t\t$this->archived = (null === $this->archived) ? null : (int) $this->archived;\n\t\t$this->created = (null === $this->created) ? null : (int) $this->created;\n\t\t$this->updated = (null === $this->updated) ? null : (int) $this->updated;\n\t\treturn $this;\n\t}", "public function convertToUserIntObject() {}", "private static function _intVal($int)\n {\n return $int + 0;\n }", "public function integer()\n\t{\n\t\treturn $this->filter(FILTER_SANITIZE_NUMBER_INT);\n\t}", "public static function int() {}", "protected function getValCast()\n {\n if (is_null($this->value)) {\n return null;\n }\n if (mb_strpos($this->value, '.') !== false) {\n $temp = rtrim($this->value, '0');\n return ((mb_substr($temp, -1) == '.') ? (int) $this->value : (float) $this->value);\n }\n return (int) $this->value;\n }", "public static function integer(): Integer\n {\n return new Integer();\n }", "function genesisawesome_intval( $new_val, $old_val ) {\n\t\n\treturn intval( $new_val );\n\n}", "function int_or_null($i) {\n return $i === null ? null : (int) $i;\n}", "public function readInteger()\n {\n $count = 1;\n $intReference = $this->_stream->readByte();\n $result = 0;\n while ((($intReference & 0x80) != 0) && $count < 4) {\n $result <<= 7;\n $result |= ($intReference & 0x7f);\n $intReference = $this->_stream->readByte();\n $count++;\n }\n if ($count < 4) {\n $result <<= 7;\n $result |= $intReference;\n } else {\n // Use all 8 bits from the 4th byte\n $result <<= 8;\n $result |= $intReference;\n\n // Check if the integer should be negative\n if (($result & 0x10000000) != 0) {\n //and extend the sign bit\n $result |= ~0xFFFFFFF;\n }\n }\n return $result;\n }", "public function getInt($key)\n {\n\n if (isset($this->data[$key]))\n return (int)$this->data[$key];\n else\n return 0;\n\n }", "public function stdWrap_intval($content = '')\n {\n return (int)$content;\n }", "function gmp_intval($gmpnumber)\n{\n}", "function decodeInteger($integer);", "function stringToInt($strInt) {\n return $strInt;\n}", "function calc_integ($str)\r\n\t{\r\n\treturn (int)$str;\r\n\t}", "public function getInt($key)\n {\n return (int) $this->get($key, 0);\n }", "public function testInteger()\n {\n set_error_handler([$this->instance, 'handleError'], E_NOTICE);\n $int = $this->instance|0;\n restore_error_handler();\n\n self::assertTrue(\n is_int($int),\n 'Instance cannot be typecast to an integer'\n );\n }", "public function getInt($i);", "function variant_int($variant) {}", "public static function to_int(string $str)\n {\n if (\\is_numeric($str)) {\n return (int) $str;\n }\n\n return null;\n }", "private function readInt() {\n $unsigned = $this->unpack(\"N\", 4);\n return unpack(\"l\", pack(\"l\", $unsigned))[1];\n }", "public static function toInt32(IInt32\\Type $x) : IInt32\\Type {\n\t\t\treturn $x;\n\t\t}", "public static function toInt($data): int\n {\n return is_int($data) ? $data : (int) preg_replace('[\\D]', '', substr(md5(json_encode($data)), 0, 16));\n }", "public function getSint32Field()\n {\n $value = $this->get(self::SINT32_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "static function integer($value){\n\t\treturn DBValue::decimal($value);\n\t}", "function vInt( $value )\r\n\t\t{\r\n\t\t\t#return filter_var($value, FILTER_VALIDATE_FLOAT); // float\r\n\t\t\treturn filter_var( $value, FILTER_VALIDATE_INT ); # int\r\n\t\t\t\r\n\t\t}", "public function getInt(string $field): int\n {\n return intval($this->get($field));\n }", "function df_is_int($v):bool {return is_numeric($v) && ($v == (int)$v);}", "public function getInt(string $key): int\n {\n return intval($this->get($key));\n }", "function toNumber($dest)\n {\n if ($dest)\n return ord(strtolower($dest)) - 96;\n else\n return 0;\n }", "public function readint32()\n {\n }", "protected function ip2int($ip_address)\n\t{\n\t\treturn sprintf(\"%u\", ip2long($ip_address));\n\t}", "function o_isInt($value) {\n\t\t\treturn Obj::singleton()->isInt($value);\n\t\t}", "function getIdAttribute ($val) { return (int) $val; }", "public function intValue($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function INT($d) {\n\treturn Math.floor($d);\n}", "public function checkInteger(): int\n {\n if (!is_int($this->getValue())) {\n throw new TypeInvalidException('int', gettype($this->getValue()));\n }\n\n return $this->getValue();\n }", "function sanitize_int( $value, $key, array $data ) {\n\treturn (int) $value;\n}", "public function convert ($value): int\n {\n $this -> getValidator()::apply('number', $value);\n return (int) $value;\n }", "abstract public function cast($value);", "public function int($value) : int|array\n\t{\n\t\treturn $this->handlers->map($value, function ($value) {\n\t\t\treturn (int)$value;\n\t\t});\n\t}", "public static function ip2int($ip) {\n return sprintf(\"%u\", ip2long($ip));\n }", "public function getInteger($index)\r\n\t{\r\n\t $this->_checkIndex($index);\r\n\t\r\n if(isset($this->row[$index]))\r\n {\r\n\t return intval($this->row[$index]);\r\n\t }\r\n\t \r\n\t throw($this->_throwInvalidIndex($index));\r\n\t}", "function readInt1(): int {\n return \\ord($this->read(1));\n }", "public function toInteger(int $default = 0)\n\t{\n\t\t// Execute the conversion and return the result\n\t\treturn is_null($this -> container) ? $default : intval(round($this -> container));\n\t}", "function get_int($value) {\n return is_numeric($value) && !preg_match('/x/i', $value) ? $value : '0';\n}", "public function getInt64Field()\n {\n $value = $this->get(self::INT64_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "public function toInt()\n {\n return $this->level;\n }", "public function getIntegerSubType() {\n // Integer check\n if ($this->getDataType() != IESDataColumnType::INTEGER) {\n return null;\n }\n\n if ($this->isSignedInteger()) {\n if ($this->intLowestValue >= -128 && $this->intHighestValue <= 127) {\n return IESDataColumnIntegerTypes::SIGNED_BYTE;\n } else if ($this->intLowestValue >= -32768 && $this->intHighestValue <= 32767) {\n return IESDataColumnIntegerTypes::SIGNED_SHORT;\n } else if ($this->intLowestValue >= -2147483648 && $this->intHighestValue <= 2147483647) {\n return IESDataColumnIntegerTypes::SIGNED_INTEGER;\n } else if ($this->intLowestValue >= -9223372036854775808 && $this->intLowestValue <= 9223372036854775807) {\n return IESDataColumnIntegerTypes::SIGNED_LONG;\n } else {\n return null; // Not an int/too big number\n }\n } else {\n if ($this->intHighestValue <= 255) {\n return IESDataColumnIntegerTypes::UNSIGNED_BYTE;\n } else if ($this->intHighestValue <= 65535) {\n return IESDataColumnIntegerTypes::UNSIGNED_SHORT;\n } else if ($this->intHighestValue <= 4294967295) {\n return IESDataColumnIntegerTypes::UNSIGNED_INTEGER;\n } else if ($this->intHighestValue <= 18446744073709551615) {\n return IESDataColumnIntegerTypes::UNSIGNED_LONG;\n } else {\n return null; // Not an int/too big number\n }\n }\n }", "private function stringToInteger(string $value): int\n {\n // empty value is prevented by the schema validator\n return match ($value[0]) {\n '0' => match ($value[1] ?? null) {\n null => 0,\n 'x', 'X' => hexdec($value),\n default => octdec($value),\n },\n default => (int)$value,\n };\n }", "function string_to_int($str){\n\t\treturn sprintf(\"%u\",crc32($str));\n\t}", "function vcex_intval( $val = null, $fallback = null ) {\n\tif ( 0 === $val ) {\n\t\treturn 0; // Some settings may need empty values.\n\t}\n\n\t$val = intval( $val ); // sanitize $val first incase it returns 0\n\n\treturn $val ?: $fallback;\n}", "public function integerMethod($integer)\n {\n }", "function vancode2int($c = '00') {\n\t\treturn base_convert(substr($c, 1), 36, 10);\n\t}", "public function getDirect()\n {\n $value = $this->get(self::DIRECT);\n return $value === null ? (integer)$value : $value;\n }", "public function wt_parse_int_field($value) {\n // Remove the ' prepended to fields that start with - if needed.\n//\t\t$value = $this->unescape_data( $value );\n\n return intval($value);\n }", "protected function _getInteger($input)\n {\n $f1 = str_pad(ord($input[0]), 2, '0', STR_PAD_LEFT);\n $f1 .= str_pad(ord($input[1]), 2, '0', STR_PAD_LEFT);\n $f1 .= str_pad(ord($input[2]), 2, '0', STR_PAD_LEFT);\n $f1 .= str_pad(ord($input[3]), 2, '0', STR_PAD_LEFT);\n return (int) $f1;\n }", "function rest_is_integer($maybe_integer)\n {\n }", "public function getSint64Field()\n {\n $value = $this->get(self::SINT64_FIELD);\n return $value === null ? (integer)$value : $value;\n }", "public function getInteger( Inx_Api_Recipient_Attribute $oAttribute );", "function bin2int($value)\n\t{\n\t\t$x = 1;\n\t\t$tmp = 0;\n\t\tfor ($i = 0; $i < strlen($value);$i++)\n\t\t{\n\t\t\t$tmp = $tmp + ($x * ord($value{$i}));\n\t\t\t$x = $x *256;\n\t\t\n\t\t}\n\t\treturn($tmp);\n\t}", "private function int ($param)\n {\n $this->type = 'int';\n $this->value = (int)$this->value;\n return true;\n }", "public function getInt($name);", "private function baseToInt($i) {\n\t\tif(!isset($i)) {\n\t\t\tthrow new Exception(\"Missing parameter, aborting.\", 0);\n\t\t}\n\n\t\treturn base_convert($i, 36, 10);\n\t}", "public function type(): int\n {\n return (int) $this->type;\n }", "public function value(): int;" ]
[ "0.81668484", "0.7811383", "0.77182525", "0.7575393", "0.7460498", "0.74557346", "0.7452719", "0.73068273", "0.72003883", "0.71857625", "0.7139732", "0.68840396", "0.68820524", "0.6871703", "0.6845088", "0.6766769", "0.67340887", "0.66543275", "0.65630937", "0.6561069", "0.6546099", "0.652874", "0.6492401", "0.64887524", "0.64771444", "0.6471358", "0.6461433", "0.64166516", "0.63795", "0.6372062", "0.634856", "0.6314087", "0.63025016", "0.62746704", "0.6253826", "0.62380993", "0.6232229", "0.6222469", "0.6221529", "0.6185292", "0.61734426", "0.61701775", "0.6164757", "0.6163715", "0.6157657", "0.6154744", "0.61416715", "0.6080812", "0.6077428", "0.6050343", "0.60393095", "0.60339767", "0.6017888", "0.60094965", "0.5997467", "0.59924227", "0.5986923", "0.5976292", "0.5967176", "0.5964987", "0.59343207", "0.5929329", "0.5917884", "0.5907752", "0.5905592", "0.59013504", "0.5894471", "0.58879393", "0.58647585", "0.5863198", "0.58511275", "0.58413804", "0.58371913", "0.58100104", "0.5809215", "0.5808802", "0.5795661", "0.5783199", "0.57796913", "0.5758573", "0.5740717", "0.5739583", "0.572277", "0.5722091", "0.5681875", "0.56780803", "0.5676933", "0.5674236", "0.56582314", "0.5653131", "0.5647756", "0.56273836", "0.5618723", "0.5616596", "0.5615363", "0.5609985", "0.55822575", "0.55798036", "0.557608", "0.55704075", "0.5547713" ]
0.0
-1
Retrieves the all the attributes.
public function getPluginAttributes() { return $this->getModelPlugin()->getAttributes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributes() {}", "public function getAttributes() {}", "public function getAttributes(){\n\t\t$this->_connect();\n\t\treturn $this->_getAttributes();\n\t}", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function get_attributes()\n {\n }", "public function get_attributes()\n {\n }", "public function all()\n\t{\n\t\treturn $this->attributes;\n\t}", "function attributes() {\n\t\t$this->load_attributes();\n\t\treturn $this->_attributes;\n\t}", "public function getAttributes(){ }", "public function getAttributes()\n {\n }", "function getAttributes()\n {\n }", "public function getAttributes(){\n\t\treturn $this->_attributes;\n\t}", "public function getAttributesList() {\n return $this->_get(9);\n }", "public function getAttributes(){\n return $this->attributes;\n }", "public function getAttributesList() {\n return $this->_get(3);\n }", "public function getAttributes()\n {\n return $this->_attributes;\n }", "public function getAttributes()\n {\n return $this->_attributes;\n }", "public function getAttributes(): iterable;", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributes()\n {\n return $this->attributes;\n }", "public function getAttributesList() {\n return $this->_get(2);\n }", "protected function getAttributes()\n {\n return [];\n }", "public function getAllAtributes() {\r\n $class = get_class($this->getInvoker());\r\n return mdAttributeHandler::getAllAttributes($class);\r\n }", "public function attributes() { return $this->attributes; }", "public function getAttributes() {\n return $this->_attributes;\n }", "public function getAttributesList() {\n return $this->_get(24);\n }", "public function getAttributes() {\n\t\treturn $this->_attributes;\n\t}", "public function getAttributes() {\n\t\treturn $this->_attributes;\n\t}", "public function getAttributesList() {\n return $this->_get(7);\n }", "public static function getAttributes() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::getAttributes();\t\t\n\t}", "public function getAttributes() {\n return $this->attributes;\n }", "public function getAttributesList() {\n return $this->_get(15);\n }", "public function getAttributesList() {\n return $this->_get(15);\n }", "public function getAttributes() {\n\t\treturn $this->attributes;\n\t}", "public function getAttributes() {\n return $this->attributes->getArray();\n }", "public function getAttributes()\n {\n // We don't error check because phpCAS has it's own error handling\n return phpCAS::getAttributes();\n }", "public function getAttributesList()\n {\n }", "public function getAttributes() {\n return array_merge($this->getFields(), $this->getProperties());\n }", "public function attributes()\n {\n return parent::attributes();\n }", "public function getAllAttributes()\n\t{\n\t\t$intID\t = $this->Input->get('id');\n\t\t$intPID\t = $this->Input->get('pid');\n\n\t\t$arrReturn = array();\n\n\t\t// Add meta fields.\n\t\t$arrReturn['meta'] = $GLOBALS['METAMODELS_SYSTEM_COLUMNS'];\n\n\t\tif (empty($intPID))\n\t\t{\n\t\t\t$objResult = $this->Database\n\t\t\t\t\t->prepare('SELECT pid FROM tl_metamodel_attribute WHERE id=?')\n\t\t\t\t\t->limit(1)\n\t\t\t\t\t->execute($intID);\n\n\t\t\tif ($objResult->numRows == 0)\n\t\t\t{\n\t\t\t\treturn $arrReturn;\n\t\t\t}\n\n\t\t\t$objMetaModel = MetaModelFactory::byId($objResult->pid);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$objMetaModel = MetaModelFactory::byId($intPID);\n\t\t}\n\n\t\tforeach ($objMetaModel->getAttributes() as $objAttribute)\n\t\t{\n\t\t\t$arrReturn['attributes'][$objAttribute->getColName()] = sprintf('%s (%s)', $objAttribute->getName(), str_replace('MetaModelAttribute', '', get_class($objAttribute)));\n\t\t}\n\n\t\treturn $arrReturn;\n\t}", "public function getAttributes()\n {\n return $this->where('isRelation', false)->pluck('attribute')->toArray();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes() {\n $toReturn = array();\n $toReturn[\"id\"] = $this->id_;\n $toReturn[\"username\"] = $this->username_;\n $toReturn[\"email\"] = $this->email_;\n $toReturn[\"displayName\"] = $this->displayName_;\n $toReturn[\"firstName\"] = $this->firstName_;\n $toReturn[\"lastName\"] = $this->lastName_;\n $toReturn[\"postalCode\"] = $this->postalCode_;\n if ($this->privileges_ !== null) {\n $toReturn[\"privileges\"] = $this->privileges_;\n } else {\n $toReturn[\"privileges\"] = array();\n }\n \n $toReturn[\"isVerified\"] = $this->isVerified_;\n return $toReturn;\n }", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array {\n return $this->attributes;\n }", "public function getAttributes() {\n $attr = array();\n \n $attr[\"id\"] = $this->id_;\n $attr[\"taxonId\"] = $this->taxonId_;\n $attr[\"dbh\"] = $this->dbh_;\n $attr[\"lat\"] = $this->lat_;\n $attr[\"lng\"] = $this->lng_;\n $attr[\"layers\"] = $this->layers_;\n \n return $attr;\n }", "protected function getAttributes()\n {\n try {\n return $this->attributeManagement->getAttributes(Product::ENTITY, $this->getDefaultAttributeSetId());\n } catch (NoSuchEntityException $e) {\n echo $e->getMessage();die;\n }\n }", "public function attributes()\n\t{\n\t\treturn $this->attribs;\n\t}", "public function getAttributes(): array\n {\n return $this->_attributes;\n }", "public function getAttributes(): array\n {\n return $this->attributes;\n }", "public function getAll() {\n return array_keys($this->attrs);\n }", "protected function attributes()\n {\n return [];\n }", "public function attributes()\r\n\t{\r\n\t\treturn $this->attribs;\r\n\t}", "public function attributes()\n {\n return [];\n }", "public function attributes()\n {\n return [];\n }", "public function attributes()\n {\n return [];\n }", "public static function getAllAttributes()\n {\n $contact = new Contact();\n $adapter = new ContactWebFormModelAttributesAdapter($contact);\n $attributes = $adapter->getAttributes();\n $placeAbleAttributes = array();\n foreach ($attributes as $attributeName => $attributeData)\n {\n if (!$attributeData['isReadOnly'] && $attributeName != 'googleWebTrackingId')\n {\n $placeAbleAttributes[$attributeName] = $attributeData;\n }\n }\n $placeAbleAttributes = ArrayUtil::subValueSort($placeAbleAttributes, 'attributeLabel', 'asort');\n return $placeAbleAttributes;\n }", "public function attributes()\n {\n return $this->activeAttributes();\n }", "public function getAttributes()\n {\n $return = [];\n foreach ($this->attr as $attr => $info) {\n $return[$attr] = $this->getAttribute($attr);\n }\n\n return $return;\n }", "public function getAttributes()\n {\n return [\n Attributes\\IdAttribute::make(),\n Attributes\\CreatedAtAttribute::make(),\n Attributes\\UpdatedAtAttribute::make(),\n ];\n }", "public function getAttributes()\r\n\t{\r\n\t\treturn $this->attr;\r\n\t}", "public function attributes();", "public function getAttributes()\n {\n $this->attributes['id'] = $this->getId();\n\n return $this->attributes;\n }", "public function getAttributes() : array\n {\n\n return $this->attributes;\n }", "public function getAll()\n {\n $valueArray = [];\n\n foreach(self::$validAttributes as $attribute) {\n $valueArray[$attribute] = $this->$attribute;\n }\n\n return $valueArray;\n }", "public function getAttributes()\n\t{\n\t\treturn array(\n\t\t\t'usuario' => $this->usuario,\n\t\t\t'correo' => $this->correo,\n\t\t\t'cedula'=>$this->cedula,\n\t\t\t//'firstName' => $this->firstName,\n\t\t\t//'lastName' => $this->lastName,\n\t\t);\n\t}", "public function getAttributes() {\n\t\tif(NULL === $this->cachedAttributes) {\n\t\t\t$this->cachedAttributes = [];\n\t\t\tforeach($this->PDO->select(\"SELECT\n SKY_USER_ATTRIBUTE.id,\n valueType,\n SKY_USER_ATTRIBUTE.name,\n SKY_USER_ATTRIBUTE.description,\n icon,\n multiple,\n enabled,\n SKY_USER_ATTRIBUTE_GROUP.name as groupName,\n SKY_USER_ATTRIBUTE_GROUP.description as groupDescription,\n SKY_USER_ATTRIBUTE_GROUP.id as gid\nFROM SKY_USER_ATTRIBUTE\nLEFT JOIN SKY_USER_ATTRIBUTE_GROUP on attr_group = SKY_USER_ATTRIBUTE_GROUP.id\nORDER BY indexing, name\") as $record) {\n\t\t\t\t$attr = AbstractAttribute::create($record);\n\t\t\t\tif ($attr) {\n\t\t\t\t\t$this->cachedAttributes[$record[\"id\"] * 1] = $attr;\n\t\t\t\t\t$this->attributeName2ID[strtolower($record[\"name\"])] = $record[\"id\"] * 1;\n\n\t\t\t\t\tif($gid = $record[\"gid\"]) {\n\t\t\t\t\t\t$this->cachedAttributeGroups[$gid*1][\"name\"] = $name = $record[\"groupName\"];\n\t\t\t\t\t\t$this->cachedAttributeGroups[$gid*1][\"description\"] = $record[\"groupDescription\"];\n\t\t\t\t\t\t$this->cachedAttributeGroupNames2ID[strtolower($name)] = $gid*1;\n\t\t\t\t\t\t$this->attribute2Group[$attr->getId()] = $gid*1;\n\t\t\t\t\t\t$this->group2Attribute[$gid*1][] = $attr->getId();\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\ttrigger_error(\"Can not create user attribute {$record[\"name\"]}\", E_USER_NOTICE);\n\t\t\t}\n\t\t}\n\t\treturn $this->cachedAttributes;\n\t}", "public function getAttributes()\n {\n /* @var $attributes Mage_Catalog_Model_Resource_Eav_Resource_Product_Attribute_Collection */\n $attributes = $this->getData('attributes');\n if (is_null($attributes)) {\n $product = Mage::getModel('catalog/product');\n $attributes = Mage::getResourceModel('catalog/product_attribute_collection')\n ->addHasOptionsFilter()\n ->addDisplayInAdvancedSearchFilter()\n ->addStoreLabel(Mage::app()->getStore()->getId())\n ->setOrder('main_table.attribute_id', 'asc')\n ->load();\n foreach ($attributes as $attribute) {\n $attribute->setEntity($product->getResource());\n }\n $this->setData('attributes', $attributes);\n }\n return $attributes;\n }" ]
[ "0.8468476", "0.8467322", "0.84267837", "0.8331723", "0.8331723", "0.8331723", "0.8331723", "0.8331723", "0.8331723", "0.8331723", "0.8331723", "0.8331723", "0.81900805", "0.81900805", "0.81525666", "0.813602", "0.8122199", "0.8112261", "0.80665773", "0.7864133", "0.7815675", "0.78111684", "0.7804197", "0.7796064", "0.7796064", "0.7774407", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.7769005", "0.77631205", "0.7758654", "0.77482086", "0.77458215", "0.7740555", "0.7733474", "0.7731322", "0.7731322", "0.77245015", "0.7711489", "0.77052945", "0.7702051", "0.7702051", "0.7700758", "0.7669973", "0.7636044", "0.7606625", "0.7601941", "0.7599079", "0.7597424", "0.7560208", "0.7554642", "0.7554642", "0.7554642", "0.7554642", "0.75540376", "0.7551419", "0.7551419", "0.7551419", "0.7551419", "0.75250155", "0.7508277", "0.748904", "0.7488056", "0.7486542", "0.7477744", "0.746974", "0.74686825", "0.7466872", "0.7451617", "0.7451617", "0.7451617", "0.7400479", "0.7388906", "0.7386942", "0.7384685", "0.7374711", "0.737107", "0.735093", "0.7337592", "0.73061264", "0.7250032", "0.724449", "0.7197072" ]
0.0
-1
Retrieves the attribute by the key name.
public function getPluginAttributeByKey($key) { return $this->getModelPlugin()->getAttributeByKey($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttribute($key);", "public function get_attribute($key) {\n\t\treturn array_get($this->attributes, $key);\n\t}", "public function getAttribute($key)\n {\n return $this->attributes[$key];\n }", "abstract public function getAttribute($key);", "public function getAttribute($key)\n {\n return $this->getAttributeValue($key);\n }", "function get_attribute( $key ) {\n\t\treturn isset( $this->attributes[$key] ) ? $this->attributes[$key] : null;\n\t}", "public function getAttribute($key)\n {\n if (! $key) {\n return;\n }\n\n if ( array_key_exists($key, $this->attributes) ) {\n return $this->getAttributeValue($key);\n }\n\n if (method_exists(self::class, $key)) {\n return;\n }\n\n return;\n }", "public function __get($key)\n {\n return $this->attributes[$key];\n }", "public function offsetGet($key)\n {\n return $this->attributes->get($key);\n }", "public function getAttr(string $key) {\n return (array_key_exists($key, $this->attributes) ? $this->attributes[$key] : null);\n }", "public function offsetGet($key)\n {\n return $this->attributes[$key];\n }", "public function getAttribute($key)\n\t{\n\t\t$value = null;\n\t\tif (array_key_exists($key, $this->attributes)) {\n\t\t\tif (array_key_exists($key, $this->attributes)) {\n\t\t\t\t$value = $this->attributes[$key];\n\t\t\t}\n\t\t}\n\t\treturn $value;\n\t}", "public function getAttribute($key)\n {\n if (array_key_exists($key,$this->_attributes)) {\n return $this->_attributes[$key];\n }\n return false;\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function getAttribute($key)\n {\n $inAttributes = array_key_exists($key, $this->attributes);\n\n // If the key references an attribute, we can just go ahead and return the\n // plain attribute value from the model. This allows every attribute to\n // be dynamically accessed through the __get method without accessors.\n if ($inAttributes || $this->hasGetMutator($key)) {\n return $this->getAttributeValue($key);\n }\n }", "public function __get($key)\n\t{\n\t\treturn $this->getAttribute($key);\n\t}", "public function getAttribute($name);", "public function attr($key) {\n\t\treturn isset($this->attributes[$key]) ? $this->attributes[$key] : null;\n\t}", "public function __get($key)\n {\n return $this->getAttribute($key);\n }", "public function offsetGet($key)\n\t{\n\t\treturn $this->getAttribute($key);\n\t}", "public function getAttribute($scope, $key);", "public function getAttribute(string $name);", "public function getAttribute($key)\n {\n $data = $this->getDataType($key);\n\n $value = parent::getAttribute($key);\n\n if ($data) {\n $value = (new $data($key, $this))->get($value);\n }\n\n return $value;\n }", "public function get_attribute($key, $defaut = NULL);", "public function getAttribute($name) {\n\t\tif (isset ( $this->$name ))\treturn $this->$name;\n\t}", "public function getAttribute($key)\n {\n if (array_key_exists($key, $this->attributes)) {\n return $this->attributes[$key];\n }\n\n return self::UNKNOWN;\n }", "public function getAttribute($key)\n {\n // Check if the key is an array dot notation.\n if (str_contains($key, '.') and array_has($this->attributes, $key)) {\n return $this->getAttributeValue($key);\n }\n\n $camelKey = camel_case($key);\n\n // If the \"attribute\" exists as a method on the model, it may be an\n // embedded model. If so, we need to return the result before it\n // is handled by the parent method.\n if (method_exists($this, $camelKey)) {\n $method = new ReflectionMethod(get_called_class(), $camelKey);\n }\n\n return parent::getAttribute($key);\n }", "public function getAttribute($key)\n {\n if (! isset($this->attributes[$key])) {\n return null;\n }\n\n return $this->attributes[$key];\n }", "public function getAttribute($key)\n\t{\n\t\treturn (($this->_attributes !== NULL && array_key_exists($key, $this->_attributes))? $this->_attributes[$key] : NULL);\n\t}", "public function getAttribute($key)\n {\n // If not key provided return void.\n if (!$key) {\n return;\n }\n\n // Make sure the attribute exists in the attributes array.\n if (array_key_exists($key, $this->attributes)) {\n return $this->attributes[$key];\n }\n }", "protected function getAttributeValue($key)\n {\n if (array_key_exists($key, $this->attributes)) {\n return $this->attributes[$key];\n }\n }", "public function getAttribute($key)\n {\n return $this->getValueByKey($this->response, (string) $key);\n }", "public function getAttribute($key)\n {\n return $this->getValueByKey($this->response, (string) $key);\n }", "public function get($keyName);", "public function getAttribute($name)\r\n\t{\r\n\t\treturn $this->__get($name);\r\n\t}", "public function __get($name)\n\t{\n\t\tif(array_key_exists($name, $this->_attributes))\n\t\t\treturn $this->_attributes[$name];\n\t\telse\n\t\t\treturn parent::__get($name);\n\t}", "public function getAttribute($name)\n\t{\n\t\tif(property_exists($this,$name))\n\t\t\treturn $this->$name;\n\t\telseif(isset($this->_attributes[$name])) {\n\t\t\treturn $this->_attributes[$name];\n\t\t}\n\t}", "public function getAttribute($name) {\n\t\tif (property_exists($this, $name))\n\t\t\treturn $this->$name;\n\t\telse if ($this->hasAttribute($name))\n\t\t\treturn $this->_attributes[$name];\n\t}", "public function __get($name)\n {\n return $this->attributes[$name];\n }", "public function __get($key)\n {\n // is the requested keyiable in the fields array?\n if(isset($this->fields[$key]))\n {\n // if so, find out what it's database column name is\n $db_column_name = $this->fields[$key]['name'];\n // return $this->attributes->string1 (or text3, decimal5 etc.)\n if(isset($this->attributes[$db_column_name]))\n return $this->attributes[$db_column_name];\n \n // otherwise, check if its in the attributes as named (such as $this->id)\n }elseif(isset($this->attributes[$key])){\n return $this->attributes[$key];\n }\n\n return parent::__get($key);\n }", "public function getAttribute($key)\n {\n // Before Event\n if (($attr = $this->fireEvent('model.beforeGetAttribute', [$key], true)) !== null) {\n return $attr;\n }\n\n $value = $this->getAttributeFromArray($key);\n\n // If the attribute has a get mutator, we will call that then return what\n // it returns as the value, which is useful for transforming values on\n // retrieval from the model to a form that is more useful for usage.\n if ($this->hasGetMutator($key)) {\n return $this->mutateAttribute($key, $value);\n }\n\n // After Event\n if (($_attr = $this->fireEvent('model.getAttribute', [$key, $attr], true)) !== null) {\n return $_attr;\n }\n\n return $value;\n }", "public function getAttribute($key)\n {\n $value = parent::getAttribute($key);\n\n if ($this->encryptable($key)) {\n $value = $this->decryptAttribute($value);\n }\n\n return $value;\n }", "function getAttributeValue($name) {\n if(array_key_exists($name, $this->_attributes)) {\n return $this->_attributes[$name];\n } else {\n return null;\n }\n }", "public function getAttribute($key)\n {\n $value = $this->getAttributeValue($key);\n\n // First we will check for the presence of a mutator for the set operation\n // which simply lets the developers tweak the attribute as it is set.\n if ($this->hasGetMutator($key)) {\n $method = 'get' . Str::studly($key) . 'Attribute';\n\n return $this->{$method}($value);\n }\n\n return $value;\n }", "public function get_attribute($name)\n {\n }", "public function getAttribute($name)\n {\n if (in_array($name, static::$fields)) {\n return $this->attributes[$name];\n }\n }", "public function __get($name) {\n\t\tif ($this->hasAttribute($name))\n\t\t\treturn $this->_attributes[$name];\n\t\telse\n\t\t\treturn parent::__get($name);\n\t}", "public function __get($key)\n {\n return isset($this->attributes[$key]) ? $this->attributes[$key] : null;\n }", "public function attribute(string $name) {\n\t\treturn $this->m_attributes[$name] ?? null;\n\t}", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($name): Attribute {\n $name = str_replace([\"-\", \" \"], \"_\", strtolower($name));\n if (isset($this->attributes[$name])) {\n return $this->attributes[$name];\n }\n\n return new Attribute($name);\n }", "public static function get($key);", "public static function get($key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "function get_atribute_by_name($name,$name_attr)\n {\n return $this->get_attribute_by_name($name,$name_attr);\n }", "public function getAttributeValue($key)\n {\n $value = $this->getAttributeFromArray($key);\n\n return $value;\n }", "function get( $key ){\r\n\t\treturn $this->$key;\r\n\t}" ]
[ "0.8345765", "0.80324936", "0.78799146", "0.7849721", "0.7648089", "0.7607736", "0.75773257", "0.7565597", "0.75261605", "0.7508828", "0.74878466", "0.7454534", "0.73799056", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.73763925", "0.7369461", "0.7344455", "0.7340873", "0.7335477", "0.73091775", "0.730615", "0.7300863", "0.72951114", "0.7294976", "0.7266286", "0.7264819", "0.7260837", "0.7247073", "0.7236991", "0.7197611", "0.7175362", "0.7173387", "0.7134474", "0.7134474", "0.7117443", "0.70823646", "0.7058007", "0.7046382", "0.70421773", "0.7034048", "0.7001002", "0.69945914", "0.6993066", "0.6968319", "0.6958833", "0.69240415", "0.69151086", "0.6906887", "0.689162", "0.6839993", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.6824068", "0.68127906", "0.68107194", "0.68107194", "0.6797066", "0.6797066", "0.6797066", "0.6797066", "0.6797066", "0.6797066", "0.6797066", "0.6797066", "0.67932874", "0.67837554", "0.6776242" ]
0.0
-1
Retrieves the model of the current plugin.
public function getModelPlugin() { return $this->_model_plugin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getModel()\n {\n return self::$model;\n }", "public function getModel() {\n return $this->model;\n }", "protected function _getModel() {\n\n\t\t$config = Configure::read('Leaflet.model');\n\n\t\tif (!is_array($config) && strpos($config, '.')) {\n\t\t\t$config = explode('.', $config);\n\t\t}\n\n\t\tif (is_array($config)) {\n\t\t\tlist($plugin, $model) = $config;\n\t\t} else {\n\t\t\t$model = $config;\n\t\t}\n\n\t\t$model = ClassRegistry::init((!empty($plugin) ? $plugin . '.' : '') . $model);\n\n\t\tif (!$model->hasMethod('_findPlots')) {\n\t\t\t$model->Behaviors->attach('Leaflet.Plottable');\n\t\t}\n\n\t\treturn $model;\n\t}", "function model() {\r\n\t\treturn $this->params['models'][0];\r\n\t}", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model;\n }", "public function getModel() {\n\t\treturn $this->model;\n\t}", "public function getModel()\n {\n return $this->_model;\n }", "public function getModel() {\n\t\treturn $this->_model;\n\t}", "public function getModel(){\n\t\treturn $this->model;\n\t}", "public function getModel()\n {\n\treturn $this->model;\n }", "public function getModel()\n {\n return $this->data['fields']['model'];\n }", "public function getModel()\n\t{\n\t\treturn $this->model;\n\t}", "public function getModel()\n {\n if (array_key_exists(\"model\", $this->_propDict)) {\n return $this->_propDict[\"model\"];\n } else {\n return null;\n }\n }", "public function getModel()\n {\n if (array_key_exists(\"model\", $this->_propDict)) {\n return $this->_propDict[\"model\"];\n } else {\n return null;\n }\n }", "public function getModel()\n\t{\n\t\treturn $this->_model;\n\t}", "public function getModel()\n\t{\n\t\treturn $this->_model;\n\t}", "public function model()\n {\n return $this->model;\n }", "public function GetModel()\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->model->newInstance();\n }", "protected function _model() {\n\t\treturn $this->_container->model;\n\t}", "protected function _getModel() {\n $model = Configure::read('Postmark.Inbound.model');\n return $model ? ClassRegistry::init($model) : false;\n }", "public function getModel(): string\n {\n return $this->model;\n }", "public function getModel(): string\n {\n return $this->model;\n }", "public function getModel(): string\n {\n return $this->model;\n }", "public function getModel()\n {\n if (! $this->_model) {\n $this->_model = $this->createModel();\n }\n\n return $this->_model;\n }", "public static function model() {\n return parent::model(get_called_class());\n }", "public function getModel(){ }", "protected function get_model()\n {\n if( ! isset(self::$models[$this->_model]))\n {\n $model = $this->_model;\n self::$models[$this->_model] = new $model;\n }\n return self::$models[$this->_model];\n }", "protected function getModel()\n {\n return App::make($this->getModelNamespace());\n }", "public function getModel()\n {\n $id = $this->model_id;\n\n $model_name = Lang::get('offers::offers.type.' . $this->model_type, [], 'en');\n\n if ($model_name == 'Category') {\n $model = $this->findModel(Category::class, $id);\n } elseif ($model_name == 'Product') {\n $model = $this->findModel(Product::class, $id);\n } else {\n $model = $this->findModel(Store::class, $id);\n }\n\n return $model;\n }", "public function getModel() : Model\n {\n return $this->model;\n }", "public function getModel(): Model;", "public function getModel(): Model;", "protected function getModel()\n {\n if (! $this->model) {\n $this->model = $this->createModel();\n\n $this->prepareModel($this->model);\n }\n\n return $this->model;\n }", "public function getModel();", "public function getModel();", "public function getModel();", "public function getModel(): Model\n {\n return $this->model;\n }", "public function getModel(): Model\n {\n return $this->model;\n }", "protected function GetModel() {\n\t\treturn parent::GetModel();\n\t}", "public function getModel()\n {\n return $this->type;\n }", "private function _getModel()\n {\n if (NULL === $this->_model) {\n $this->_model = new Model();\n }\n\n return $this->_model;\n }", "public function getModel()\n {\n return new $this->model;\n }", "private function getModel(): ParseDataProvider\n {\n return $this->model;\n }", "public function getModel()\n {\n return $this->row->getModel();\n }", "public function getModel() {\n\t\treturn null;\n\t}", "public function getModel()\n {\n $post = Post::class;\n return $post;\n }", "public function getModel()\n {\n $model = new $this->versionable_type();\n $model->unguard();\n $model->fill(unserialize($this->model_data));\n $model->exists = true;\n $model->reguard();\n return $model;\n }", "public function entity()\n {\n return $this->model;\n }", "public function getModel($model = null);", "private function get_model() : ModelInterface\n {\n return $this->model;\n }", "public function getModel()\n {\n $this->model = Booking::class;\n return $this->model;\n }", "protected function getModel($name) {\n\t\treturn $this->getContext()->getModel($name);\n\t}", "protected function getModel()\n {\n return empty($this->model) ?\n explode('Controller', substr(strrchr(get_class($this), '\\\\'), 1))[0] :\n $this->model;\n }", "public function model()\n {\n return config('litecms.portfolio.portfolio.model.model');\n }", "public function makeModel()\n {\n return $this->model;\n }", "public function getModel() {\r\n\tforeach (glob('modules/' . $this->name . '/model/*.php') as $filename) {\r\n\t $model = basename($filename, '.php');\r\n\t $this->model[$model] = $this->getEntity($model);\r\n\t}\r\n\treturn $this->model;\r\n }", "public function getModel()\n {\n $modelData = is_resource($this->model_data)\n ? stream_get_contents($this->model_data,-1,0)\n : $this->model_data;\n\n $className = self::getActualClassNameForMorph($this->versionable_type);\n $model = new $className();\n $model->unguard();\n $model->fill(unserialize($modelData));\n $model->exists = true;\n $model->reguard();\n return $model;\n }", "abstract public function getModel();", "public final function getModel($model_name = null)\n {\n if (!isset($model_name))\n $model_name = $this->getName();\n\n return $this->app->getModel($model_name);\n }", "public function getModel(){\n\t\tif( isset($this->model) ){\n\t\t\treturn $this->model;\n\t\t}\n\t\t$nameModel = str_replace(' View' , 'Model' ,__CLASS__ );\n\t\t$this->model = new $nameModel();\n\t}", "public function show()\n {\n return $this->model;\n }", "protected function getModel()\n {\n return $this->makeModel(BindingManager::MODEL_ROUTE);\n }", "public function getModel():IModel;", "abstract protected function getModel();", "public function model()\n {\n return $this;\n }", "public function model()\n {\n return config('teams.team.model.model');\n }", "public function getModel()\n\t{\n\t\treturn $this->resource->name;\n\t}", "public function getModel()\n{\nreturn $this->model;\n}", "abstract function getModel();", "public function getLocalModel(): Model\n {\n return $this->localModel;\n }", "public function model()\n\t{\n\t\treturn $this->Players->model($this->SqueezePlyrID);\n\t}", "public function getModel() {\n\t\tif ($this->model === null) {\n\t\t\t/* $modelName = str_replace('Controller', '', get_class($this)); */\n\t\t\t$modelName = 'Image';\n\t\t\t$this->model = new $modelName ();\n\t\t}\n\t\t$this->_attachBehaviors ( $this->model );\n\t\treturn $this->model;\n\t}", "protected function getModelClass()\n {\n return Model::class;\n }", "public function getCounterpartModel(){\n\n\t\t$controllerName = get_class( $this );\n\n\t\t//check if OC controller\n\t\tif( strpos( $controllerName, 'Controller' ) === 0 ) {\n\t\t\t$modelName = Advertikon::underscore( substr( $controllerName , strlen( 'Controller' ) ) );\n\t\t\t$realName = 'Model' . substr( $controllerName , strlen( 'Controller' ) );\n\t\t\t$parts = explode( '_' , $modelName , 2 );\n\t\t\t$modelPath= implode( '/' , $parts );\n\t\t\t$this->load->model( $modelPath );\n\t\t\t$loadedModel = 'model_' . $modelName;\n\t\t\treturn new $realName( $this->registry );\n\t\t}\n\t}", "public function model()\n {\n return Model::class;\n }", "public function model()\n {\n return Model::class;\n }", "public function model()\n {\n return Model::class;\n }", "public function model()\n {\n $model = $this->_model;\n return new $model;\n\n }", "public function model()\n {\n return $this->resource;\n }", "public function getModel() {\n\t\t$temp=$this->_templateobject;\n\t\treturn $temp;\n\t}", "protected static function getModel()\n {\n $modelName = get_called_class();\n $model = new $modelName();\n $model->setFetchMode(\\Phalcon\\Db::FETCH_OBJ);\n return $model;\n }", "public function get_model() {\r\n\t\t$model = null;\r\n\t\t\r\n\t\t//Includes the shared model, if exists.\r\n\t\t$path_shared = 'models/shared.php';\r\n\t\tif (file_exists($path_shared)) include($path_shared);\r\n\t\t\r\n\t\t//Checks if the models' file for the current controller exists.\r\n\t\t$path_current_model = 'models/'.$this->controller.'.php';\r\n\t\t\r\n\t\tif (file_exists($path_current_model)) {\r\n\t\t\t//If the file exists, checks if the class for the current action exists.\r\n\t\t\tinclude($path_current_model);\r\n\t\t\t$class_name = ucwords($this->controller).ucwords($this->action).\"Model\";\r\n\t\t\t\r\n\t\t\tif (class_exists($class_name)) {\r\n\t\t\t\t//Creates the class and populates its properties.\r\n\t\t\t\t$model = new $class_name();\r\n\t\t\t\t\r\n\t\t\t\t//Iterates through all request values and check for properties with the same name.\r\n\t\t\t\tforeach ($_REQUEST as $key => $value) {\r\n\t\t\t\t\tif (property_exists($model, $key)) {\r\n\t\t\t\t\t\t$model->$key = $value;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $model;\r\n\t}", "public function getModelClass();" ]
[ "0.7736932", "0.76884526", "0.7683193", "0.7660871", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.7638063", "0.76304364", "0.76023626", "0.75859934", "0.75584316", "0.7533114", "0.7523819", "0.75040275", "0.74636734", "0.74636734", "0.7453967", "0.7453967", "0.7449659", "0.74421006", "0.74223185", "0.73555225", "0.72604513", "0.7259009", "0.7259009", "0.7259009", "0.72421193", "0.7214376", "0.72084653", "0.7188672", "0.7166383", "0.71469265", "0.7139829", "0.71376675", "0.71376675", "0.71225876", "0.70880514", "0.70880514", "0.70880514", "0.70851827", "0.70851827", "0.7077273", "0.7062528", "0.7047962", "0.7026106", "0.698888", "0.697075", "0.69683146", "0.6910999", "0.687513", "0.6864141", "0.68100375", "0.67967564", "0.6781728", "0.67788637", "0.67700404", "0.67635804", "0.67634344", "0.67220074", "0.6714575", "0.6687839", "0.6681901", "0.66815996", "0.6672633", "0.66665936", "0.66664225", "0.666641", "0.66618526", "0.6654349", "0.6645422", "0.6643897", "0.6616876", "0.66148335", "0.66024673", "0.65957904", "0.65949374", "0.6585434", "0.657712", "0.657712", "0.657712", "0.65690523", "0.65594155", "0.6556284", "0.6552641", "0.65513515", "0.6538072" ]
0.8136629
0
Retrieves the network configuration.
public function getConfig () { $config = Mage::getModel('socnet/network') ->getConfigByNetworkKey($this->getNetworkKey()); return $config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNetworkSettings() : NetworkSettings\n {\n return $this->networkSettings;\n }", "public function getConfig(){\n\t\t$request = $this->_sendPacketToController(self::GET_CONFIG);\n\t\tif ($request->getState() == self::STATE_OK) // If the packet is send sucefully\n\t\t\treturn $this->_getResponse(); // TODO mettre en forme la sortie\n\t\telse\n\t\t\treturn $request;\n\t}", "public function config_get(){\n\t\treturn $this->fb->exec('dhcp.config_get');\n\t}", "public function getNetwork() {\n return $this->getValue('network');\n }", "public function getNetwork()\n {\n return $this->network;\n }", "public function getNetwork()\n {\n return $this->network;\n }", "function getConfig()\n {\n return $this->_api->doRequest(\"GET\", \"{$this->getBaseApiPath()}/config\");\n }", "public function getNetwork() {\n return $this->_network;\n }", "public function getConfig()\n {\n return $this->get('config');\n }", "public static function getNetworkConfig($network)\n {\n $id = $network instanceof tx_t3socials_models_Network ? $network->getNetwork() : $network;\n if (!isset(self::$networks[$id])) {\n throw new Exception('Unknown network type: '.$id);\n }\n\n return self::$networks[$id];\n }", "public function getConfig() {\n \t\n \t// Return our configuration\n \treturn $this->aConfig;\n }", "public function get_config()\n\t{\n\t\treturn $this->cfg;\n\t}", "protected function getConfig()\n\t{\n\t\treturn $this->oConfig;\n\t}", "public static function getConfig()\n {\n return self::$config;\n }", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfiguration() {\n\t\treturn $this->_getResponse(self::URL_CONFIGURATION);\n\t}", "public function retrieveSystemConfiguration()\n {\n return $this->start()->uri(\"/api/system-configuration\")\n ->get()\n ->go();\n }", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig()\n {\n return $this->_config;\n }", "public function getConfig()\n {\n return $this->_config;\n }", "public function getConfig ()\n {\n return $this->web->getConfig();\n }", "public function getConfig()\n {\n return $this['config'];\n }", "public function getConfig() {\n return $this->_config;\n }", "public function getConfig(){\n\t\treturn $this->_config;\n\t}", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "private function getConfig() {\n // call the GetConfig API\n $args = array('hostname' => $this->hostname);\n $api = new \\xmlAPI('GetConfig', $this->_default_key, 'xml', $args);\n $api->server_url = $this->_default_server;\n $api->send();\n\n // change hostname if found by custom_name\n $this->hostname = $api->hostname;\n \n // save fields in metadata\n $this->key = $api->api_key ? $api->api_key : $this->_default_key;\n $this->server = $api->api_server ? $api->api_server : $this->_default_server;\n $this->controller_path = $api->controller_path;\n $this->controller = $api->controller;\n $this->error_page = $api->error_page ? $api->error_page : '404';\n $this->mode = $api->mode ? $api->mode : 'test';\n $this->site_path = $api->site_path ? $api->site_path : $this->hostname;\n $this->default_site_path = $api->default_site_path;\n $this->secure_domain = $api->secure_domain;\n \n // set the list of controllers this site can use\n $this->setRights($api->row);\n }", "function getConfig() {\n\t\tif($this->_oConfig === null) {\n\t\t\tif(isset($this->_options['cacheConfig']) && $this->_options['cacheConfig']) {\n\t\t\t\t$this->_oConfig = $this->cacheConfig();\n\t\t\t} else {\n\t\t\t\t$this->_oConfig = $this->parseConfig();\n\t\t\t}\n\t\t}\n\t\treturn $this->_oConfig;\n\t}", "public function getConfig()\n {\n return $this->traitGetConfig();\n }", "public function getConfig() \n {\n return $this->config;\n }", "public function getConfig() {\r\n return $this->config;\r\n }", "protected function getConfig()\n {\n\n return $this->app['config']['manticore'];\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig() : \\codename\\core\\config {\r\n return $this->config;\r\n }", "public function get()\r\n {\r\n $this->ensureLoaded();\r\n return $this->config;\r\n }", "public function getConfig()\n {\n return $this->config ?: $this->setConfig()->getConfig();\n }", "protected function _getConfig()\n {\n if (Zend_Registry::isRegistered('Zend_Cache_Manager') && Zend_Registry::get('Zend_Cache_Manager')->hasCache('navigation')) {\n $cache = Zend_Registry::get('Zend_Cache_Manager')->getCache('navigation');\n Core_Module_Config_Xml::setCache($cache);\n }\n $moduleConfig = new Core_Module_Config_Xml($this->_options);\n $config = $moduleConfig->readConfigs(true);\n return $config;\n }", "public function getConfiguration()\n {\n return $this->getResponse(self::URL_CONFIGURATION);\n }", "public function getConfig() {}", "public function getConfiguration()\n {\n return $this->_config;\n }", "public function getConfig() {\n if (is_null($this->getData(\"config\"))) {\n $this->setData(\"config\", Mage::getModel(\"cloudiq_callme/config\"));\n }\n\n return $this->getData(\"config\");\n }", "public static function read()\n {\n return self::$config;\n }", "function getConfig()\n {\n return $this->config;\n }", "public function getNetworkInfo(): \\stdClass\n {\n return $this->get('net_info');\n }", "public function getConfig(){\n return $this->config;\n }", "public function get_networks()\n {\n }", "private function get_config() {\n if (isset($this->config)) {\n return $this->config;\n }\n\n $this->config = get_config('tool_coursebank');\n\n return $this->config;\n }", "function getConfig() {\n\t\tif (null === $this->_config) {\n\t\t\t$sql = \"\n\t\t\t\tSELECT c.node_id FROM synd_inv_config c\n\t\t\t\tWHERE c.parent_node_id = \".$this->_db->quote($this->nodeId);\n\t\t\t$this->_config = (string)$this->_db->getOne($sql);\n\t\t\t$this->_node_onchange_internal();\n\t\t}\n\n\t\tif ('' == $this->_config || null === ($config = $this->_storage->getInstance($this->_config))) {\n\t\t\t$config = $this->appendChild($this->_storage->factory('config'));\n\t\t\t$this->_config = $config->nodeId;\n\t\t\t$this->_node_onchange_internal();\n\t\t}\n\n\t\treturn $config;\n\t}", "abstract public function getConfig();", "public function getConfigurarion()\n {\n return $this->configuration;\n }", "public final function getConfig()\n {\n return clone($this->config);\n }", "public function getNetworkProfile()\n {\n return $this->network_profile;\n }", "abstract protected function getConfig();", "public function getConfig() {\r\n\r\n\t}", "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "public function getNetworkUri()\n {\n return $this->network_uri;\n }", "public function getNetworkUri()\n {\n return $this->network_uri;\n }", "public function getConfig() : Config\n {\n return $this->config;\n }", "public function get() {\n return $this->_configuration;\n }", "public function getConfig()\n {\n if (null === $this->_config) {\n $this->setConfig(new Configuration());\n }\n\n return $this->_config;\n }", "static function getConfig() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_CONFIG);\n\t}", "public function getConfig() {\n return $this->container->offsetGet('config');\n }", "public function &getConfig() {\n return $this->config;\n }", "public function getConfig(): StandaloneServer\\Config\n {\n return $this->config;\n }", "public function getSystemConfig()\n {\n return $this->systemConfig;\n }", "public function config()\n {\n return $this->config;\n }", "public function GetNetworks()\n {\n return $this->networkManager;\n }", "public function getConfig() {\n return Mage::getSingleton('profileolabs_shoppingflux/config');\n }", "public function getConfig()\n { // Try the template specific path first\n $fname = APPLICATION_PATH.$this->_paths['pkg_template'].'/config.json';\n if( file_exists($fname) ) {\n return json_decode(file_get_contents($fname));\n }\n // Next try the domain common path\n $fname = APPLICATION_PATH.$this->_paths['pkg_common'].'/config.json';\n if( file_exists($fname) ) {\n return json_decode(file_get_contents($fname));\n }\n // Finally, try the app common path\n $fname = APPLICATION_PATH.$this->_paths['app_common'].'/config.json';\n if( file_exists($fname) ) {\n return json_decode(file_get_contents($fname));\n }\n // If none of these files were found, return false to indicate failure\n if( !$this->_config) throw new CException('Configuration not found');\n }", "public function getCfg()\n {\n return $this->get(self::_CFG);\n }", "public function getConfig()\n\t{\n\t\t$config = new \\stdClass();\n\t\t$config->siteurl = $this->_config->siteurl;\n\t\t$config->host = $this->_config->host;\n\t\t$config->port = $this->_config->port;\n\t\t$config->dbname = $this->_config->dbname;\n\t\t$config->username = $this->_config->username;\n\t\t$config->password = $this->_config->password;\n\t\t$config->path = $this->_config->path;\n\t\t$config->options = $this->_config->options;\n\t\t$config->affiliateId = $this->_config->affiliateId;\n\n\t\treturn $config;\n\t}", "public function getConfig()\n {\n return $this->_getConfigFile();\n }", "public function getConfig(): Configuration;", "public function getConfig()\r\n {\r\n $db = $this->_getDb();\r\n\r\n // Get the database configuration information\r\n return $this->_db->getConfig();\r\n\r\n }", "public static function get_configuration()\n\t{\n\t\tif (empty(self::$_configuration))\n\t\t{\n\t\t\tself::check();\n\t\t}\n\t\treturn self::$_configuration;\n\t}", "public function getConfig()\r\n {\r\n return Zend_Registry::get('config');\r\n }" ]
[ "0.7212014", "0.7201091", "0.69407284", "0.6929543", "0.6872039", "0.6872039", "0.68612576", "0.6799283", "0.6661275", "0.6646977", "0.6623688", "0.662052", "0.6612372", "0.6608215", "0.65831375", "0.65831375", "0.65831375", "0.65831375", "0.65471095", "0.6536459", "0.6531513", "0.6531513", "0.6531513", "0.6531513", "0.6531513", "0.6531513", "0.6531513", "0.6531513", "0.6523339", "0.6523339", "0.65184706", "0.65034664", "0.6501205", "0.6500389", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.64920473", "0.6485031", "0.64837533", "0.64732265", "0.6467791", "0.6463405", "0.6423584", "0.64232385", "0.6414725", "0.63816565", "0.6374258", "0.6356523", "0.6356394", "0.6354449", "0.6343375", "0.63191545", "0.6316127", "0.6308421", "0.6304522", "0.63039434", "0.6282219", "0.6264503", "0.62586826", "0.625823", "0.6254021", "0.6246223", "0.62055916", "0.6201373", "0.61988866", "0.61887056", "0.61887056", "0.61832875", "0.61832875", "0.61590904", "0.6158956", "0.6144736", "0.61442703", "0.6139622", "0.6134715", "0.6128233", "0.612605", "0.61108804", "0.60881275", "0.6075206", "0.60748637", "0.607403", "0.6073287", "0.6072988", "0.6069621", "0.60691833", "0.6066262", "0.60647947" ]
0.83134544
0
Getter for the plugin key.
abstract function getPluginKey();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKey()\n {\n return $this->__get(\"key\");\n }", "public function getKey(): string\n {\n return $this->key;\n }", "public function get_key() {\n\t\treturn WC_Checkout_Add_Ons::PLUGIN_PREFIX . $this->id;\n\t}", "public function getKey() {\n return $this->key;\n }", "public function getKey() : string\n {\n return $this->key;\n }", "public function getKey() {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\r\n {\r\n return $this->key;\r\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "public function getKey() {\n return $this->key;\n }", "public static function key() {\n return self::$key;\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function getKey()\n {\n return $this->key;\n }", "function getKey() {\r\n return $this->key;\r\n }", "public function getKey()\n {\n return $this->data['key'];\n }", "public function getKey()\n {\n return $this->__key;\n }", "public function getKey() \n {\n return $this->_key;\n }", "public function getKey() {\n\t\treturn $this -> key;\n\t}", "function GetKey() { return( $this->key ); }", "protected function getKey(): Key {\n return $this->key;\n }", "public function getKey()\n\t{\n\t\treturn $this->data['key'];\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function GetKey() {\n\t\treturn $this->_key;\n\t}", "protected function getCacheKey() {\n $plugin_id = hash('sha256', $this->getPluginId());\n $uri = $this->config('uri');\n\n return $plugin_id . ':' . $uri;\n }", "public function getKey()\n {\n return $this->getInternalKey();\n }", "public function getKey(): string;", "public function getKey(): string;", "public function getKey() {}", "public function getKey() {}", "public function getKey()\n {\n return Config::getKey(get_class($this->config));\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 }", "public function getKey()\n {\n return $this->params['Key'];\n }", "public function getConfigKey(): string;", "public function key() {\n return $this->key;\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 }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function getKeyString()\n {\n return $this->key_string;\n }", "public function getKey(){\n return $this->_section->key;\n }", "public function key() {\n return $this->_key;\n }", "public static function getKey();", "public static function getKey();", "public function key() {\n\t\treturn $this->key;\n\t}", "public function key()\n {\n return $this->_key;\n }", "private function getKey() {\n\t\tif ( !$this->key )\n\t\t\t$this->key = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->key;\n\t}", "public function get_key() {\n\t\treturn c27()->class2file( static::class );\n\t}", "public function getKey()\n {\n return $this->getProperty()->getKey();\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();" ]
[ "0.74019367", "0.74006855", "0.7379942", "0.72984475", "0.72594273", "0.72576684", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7248835", "0.7239185", "0.72166437", "0.72166437", "0.72053546", "0.71994746", "0.7163503", "0.7163503", "0.7121043", "0.71111315", "0.7106216", "0.7098483", "0.7084687", "0.7029316", "0.70230675", "0.7012583", "0.701004", "0.69888127", "0.69888127", "0.69888127", "0.69888127", "0.69888127", "0.6978292", "0.69560736", "0.6944214", "0.69397104", "0.69397104", "0.69390583", "0.69390583", "0.69089186", "0.6905661", "0.6899592", "0.6883358", "0.68733215", "0.6870407", "0.6864267", "0.6864267", "0.6864267", "0.6864267", "0.6864267", "0.6837001", "0.68205863", "0.6814637", "0.6799093", "0.6799093", "0.67916167", "0.6762141", "0.674138", "0.67314035", "0.6731303", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245", "0.67214245" ]
0.8495407
0
Answer if this plugin is enabled.
public function isActive() { return $this->getModelPlugin()->isActive($this->getPluginKey()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_enabled() {\n\t\t\t$enabled = get_option( $this->_plugin_prefix . '_enabled' );\n\t\t\tif ( $enabled == 1 ) {\n\t\t\t\t$enabled = true;\n\t\t\t} else {\n\t\t\t\t$enabled = false;\n\t\t\t}\n\t\t\treturn $enabled;\n\t\t}", "public function isEnabled()\n {\n if ((string)$this->global->enabled === \"1\") {\n return true;\n }\n return false;\n }", "public static function is_enabled() {\n\t\tif (self::$enabled) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function is_enabled() {\n $enabled = file_exists(ABSPATH . '!sak4wp.php');\n return $enabled;\n }", "public function enabled()\n\t{\n\t\tif ($this->isLocked())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->issetCustomExec())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn $this->fields['USE']->getValue() == 'Y';\n\t}", "public function isEnabled()\n {\n return $this->helper->isEnabled();\n }", "public function is_enabled() {\n\n\t\t// Check if debug is on\n\t\tif ( 'on' === $this->settings->get_option( 'debug' ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "private function isEnabled()\n {\n return $this->getConfigBool('enable', false);\n }", "public function isEnabled()\n {\n return $this->_helperData->isEnabled();\n }", "public function _isEnable(){\n return true;\n if(!array_key_exists('enable', $this->moduleConfig)) return false;\n return $this->moduleConfig['enable'];\n }", "public function is_enabled() {\n $settings = get_option('woocommerce_enda_bundle_rate_settings');\n return $settings['enabled'] == 'yes' ? true : false;\n }", "public function is_enabled()\n {\n }", "public static function is_enable() {\n\t\treturn true;\n\t}", "public static function enabled(): bool\n {\n return static::$_enabled;\n }", "public function is_enabled() : Bool\n\t{\n\t\treturn $this->_enabled;\n\t}", "public static function isEnabled(): bool\n {\n return self::$enabled;\n }", "public function isEnabled()\n {\n return $this->config->isEnabled();\n }", "public function isEnabled() : bool {\n\n\t\t\treturn $this->enabled;\n\t\t}", "public function isEnabled()\n {\n return Mage::getStoreConfig('refersion/refersion_settings/refersion_active');\n }", "public function isEnabled(): bool\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->getStoreConfig(self::MODULE_ENABLED);\n }", "public static function isEnabled() {\n return self::$enabled;\n }", "public function is_enabled(){\n\t\treturn !!$this->_enabled;\n\t}", "public static function isEnabled()\n {\n return self::$enabled;\n }", "public static function isEnabled()\n {\n return self::$enabled;\n }", "protected function isInstalledAndEnabled()\n {\n return $this->isPluginAvailable($this->identifier)\n && Settings::get('octoshop_products_enabled', true);\n }", "public function isEnabled() {\n\t\treturn $this->_runtime['enabled'];\n\t}", "public function isEnabled(): bool\n\t{\n\t\treturn $this->enabled;\n\t}", "public function is_powered_by_enabled() {\n\t\t$enabled = get_option( 'algolia_powered_by_enabled', 'yes' );\n\n\t\treturn 'yes' === $enabled;\n\t}", "public function isEnabled()\n\t{\n\t\t// note: don't use $this->_main->.. as it might not exist when this func is called.\n\t\treturn Mage::helper('shoptimally_upsalecoupons/main')->isEnabled();\n\t}", "public function enabled()\n {\n return (bool) Mage::getStoreConfig('actions/settings/enabled');\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "public function isEnabled()\n {\n return $this->enabled;\n }", "protected function isEnabled() {\n\t\treturn (\n\t\t\t$this->getPageService()->isEnabled() &&\n\t\t\t(bool) $this->getTypoScriptService()->resolve('settings.enable')\n\t\t);\n\t}", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "protected function isEnabled()\n {\n $store = Mage::app()->getStore();\n return $store->getConfig('cueconnect/enabled/enabled');\n }", "public function isEnabled()\r\n {\r\n return $this->enabled;\r\n }", "public function isEnabled()\r\n {\r\n return $this->enabled;\r\n }", "public function isEnabled()\n {\n return $this->config->isEnabledSDK($this->_storeManager->getStore()->getId());\n }", "public function is_enabled() {\n $enabled = get_option( 'edd_commissions_payout_schedule_enabled', '' );\n\n if ( 'enabled' === $enabled ) {\n return true;\n }\n\n return false;\n }", "public static function installerEnabled()\n {\n /** @var \\Nwidart\\Modules\\Module $installer */\n $installer = Module::find('installer');\n if (!$installer) {\n return false;\n }\n\n return $installer->isEnabled();\n }", "public function is_enabled()\n {\n }", "public function isModuleEnable()\n {\n return $this->helperData->getEnabled();\n }", "public static function isEnabled()\n {\n return self::get('is_enabled', false);\n }", "public function hasEnabled()\n {\n return $this->enabled !== null;\n }", "public function isEnabled($pluginName) {\n foreach($this->defaultIncludes as $name => $doInclude) {\n if($pluginName == $name) {\n return $doInclude;\n }\n }\n return false;\n }", "public function isEnabled( $name ) {\n if ( is_null($this->_plugins) ) $this->getPlugins();\n return isset($this->_plugins[ $name ]) && $this->_plugins[ $name ]->isEnabled();\n }", "public function isEnabled()\n {\n\t\tif($this->actif == 1) return true;\n \telse return false;\n }", "public static function enabled() {\r\n\t\treturn self::$enabled;\r\n\t}", "public function isEnabled()\n {\n return $this->isEnabled;\n }", "public static function enabled()\n {\n return (extension_loaded('apc') && ini_get('apc.enabled')) ? true : false;\n }", "public function getIsEnabled()\n {\n return $this->helper->isEnabled();\n }", "public function hasEnabled()\n {\n return $this->Enabled !== null;\n }", "public function isEnabled()\n {\n return true;\n\n }", "public function isEnabled()\n {\n return $this->status == 1;\n }", "public static function isEnabled()\n {\n $app_model = new waAppSettingsModel();\n $is_enabled = $app_model->get(array('shop', self::PLUGIN_ID), self::PLUGIN_ID . '-profile');\n $profile_cookie = $app_model->get(array('shop', self::PLUGIN_ID), self::PLUGIN_ID_SHORT . '-profile-cookie');\n $cookie_enabled = $profile_cookie && waRequest::cookie($profile_cookie, '');\n return $is_enabled && $cookie_enabled;\n }", "public function isEnabled()\n {\n return (bool)Mage::getStoreConfig(self::CONFIG_ENABLED);\n }", "public function isEnabled()\n {\n return $this->_getConfig(self::XML_CONFIG_ENABLED);\n }", "public function isEnabled()\n {\n return Mage::getStoreConfig('quickview/settings/enabled', Mage::app()->getStore());\n }", "function acadp_registration_enabled() {\n\n\t$registration_settings = get_option( 'acadp_registration_settings', array() );\n\n\tif( ! empty( $registration_settings['engine'] ) && 'acadp' == $registration_settings['engine'] ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n\n}", "public function isEnabled()\n {\n return (int)$this->getIsEnabled() === self::STATUS_ENABLED;\n }", "public function enabled()\n {\n if (!empty($this->_data[self::BUSINESS])) {\n return true;\n }\n\n return false;\n }", "public function isEnabled() {\n return true;\n }", "public function getEnabled() : bool\n {\n return $this->enabled;\n }", "public function getEnabled() : bool\n {\n return $this->enabled;\n }", "public function isActive()\n {\n If ($this->theme_active == 1)\n {\n //plugin is active\n return true;\n\n } else {\n \n //plugin is not active\n return false;\n }\n\n }", "public function get_enabled() {\n $enabled = get_post_meta( $this->post_id, '_wcs_enabled', true );\n $enabled_exists = metadata_exists( 'post', $this->post_id, '_wcs_enabled' );\n\n // Metadata doesn't exist yet so we assume it's enabled\n if ( ! $enabled_exists ) {\n return true;\n }\n\n return $enabled === 'yes';\n }", "public function is_enabled($name)\n\t{\n\t\treturn isset($this->extensions[$name]['ext_active']) && $this->extensions[$name]['ext_active'];\n\t}", "private function isEnabled()\n {\n if(is_file(JPATH_SITE.DS.'components'.DS.'com_magebridge'.DS.'models'.DS.'config.php')) {\n return true;\n }\n return false;\n }", "public function is_elex_dpd_enabled() {\n\t\treturn class_exists( 'Elex_dp_dynamic_pricing_plugin' );\n\t}", "public function is_available() {\n\t\tif ( 'yes' === $this->enabled ) {\n\t\t\tif ( ! $this->testmode && is_checkout() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif ( ! $this->secret_key || ! $this->publishable_key ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function is_available() {\n if ($this->enabled == \"yes\") {\n if (!is_ssl() && !$this->testmode) {\n return false;\n }\n // Required fields check\n if (!$this->secret_key || !$this->publishable_key) {\n return false;\n }\n return true;\n }\n return false;\n }", "public function isEnabled(): bool\n {\n return config('theme-system.enable', true) ?? true;\n }", "public function isEnabled()\r\n {\r\n if ($this->enabled === null) {\r\n $enabled = config::get('debugbar.enabled');\r\n if (is_null($enabled)) {\r\n $enabled = config::get('app.debug', false);\r\n } else {\r\n $eabled = (bool)$enabled;\r\n }\r\n }\r\n\r\n return $this->enabled = $enabled;\r\n }", "public function isEnabled()\n {\n return (bool)Mage::helper('mobweb_captcha/config')->isEnabled();\n }", "public function isEnabled()\n {\n return (bool)Mage::helper('Core')->isModuleEnabled('Faonni_AccountNavigation') && \n\t\t\tMage::getStoreConfig('faonni_accountnavigation/general/active');\n }", "function IsEnabled()\n {\n $states =& CCDebug::_states();\n return( isset($states['enabled']) && ($states['enabled'] === true) );\n }", "public function get_enabled() \n {\n return $this->enabled;\n }", "public function enabled()\n {\n return $this->context->enabled();\n }", "public function isEnabled() {\n return ($this->auth_type != \"0\");\n }", "public function isEnabled()\n {\n return Mage::getStoreConfigFlag('training_layred/catalog/enabled');\n }", "public function is_enabled() {\n $enabled = (bool) get_config('reportgen', 'DBdetails');\n return $enabled;\n }", "public function isEnabled(): bool\n\t{\n\t\treturn ($this->disabled_at === null);\n\t}", "public function isEnabled()\n\t{\n\t\treturn Mage::helper('wordpress')->isPluginEnabled('wordpress-seo/wp-seo.php') \n\t\t\t|| Mage::helper('wordpress')->isPluginEnabled('wordpress-seo-premium/wp-seo-premium.php');\n\t}", "function is_plugin_enabled($plugin)\n\t{\n\t\tglobal $CONFIG;\n\t\t\n\t\treturn in_array($plugin, $CONFIG->enabled_plugins);\n\t}", "public function is_enabled() {\n return $this->proxy_host && $this->proxy_port;\n }", "public function isEnabled()\n {\n return $this->status == self::STATUS_ENABLED || $this->status == self::STATUS_LOCKED;\n }", "protected function _isModuleEnabled()\n {\n return $this->_helper->isEnabled();\n }", "public function isEnable ()\n {\n return $this->scopeConfig->isSetFlag(\n self::SYSTEM_CONFIG_GENERAL_ENABLE,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getEnabled()\n {\n return isset($this->enabled) ? $this->enabled : false;\n }", "public function getEnabled()\n {\n return isset($this->enabled) ? $this->enabled : false;\n }", "public function getEnabled()\n {\n return (bool) $this->enabled;\n }", "public function isEnabled()\n {\n return $this->profiler['enabled'];\n }", "protected function isServiceAvailable()\n {\n return (boolean) $this->extConfig['providers'][strtolower($this->provider)]['enabled'];\n }" ]
[ "0.79082406", "0.76814836", "0.7677769", "0.76069456", "0.7562482", "0.752538", "0.75184685", "0.75083053", "0.7507383", "0.7498623", "0.7459514", "0.741441", "0.74056137", "0.7388812", "0.7371772", "0.7363548", "0.7362832", "0.73317176", "0.7314334", "0.73121434", "0.72949123", "0.7284984", "0.7277159", "0.72767645", "0.72767645", "0.7268497", "0.7267745", "0.7259352", "0.72505885", "0.72411364", "0.72339344", "0.72286785", "0.72286785", "0.72286785", "0.72286785", "0.72286785", "0.7225643", "0.7217026", "0.7217026", "0.7217026", "0.7217026", "0.7217026", "0.72139806", "0.718496", "0.718496", "0.71818984", "0.7170717", "0.7169866", "0.716929", "0.71581346", "0.71579635", "0.71400505", "0.7127489", "0.7088744", "0.70848995", "0.70831347", "0.7070494", "0.7064007", "0.7056565", "0.705257", "0.70418936", "0.70342755", "0.7026366", "0.6995926", "0.69781333", "0.69718033", "0.69688034", "0.6967788", "0.6959948", "0.6950809", "0.6946217", "0.6946217", "0.693618", "0.6932651", "0.69196284", "0.6903309", "0.6893679", "0.6891427", "0.689066", "0.68824106", "0.6881705", "0.6877779", "0.68722713", "0.68709767", "0.68662727", "0.68562853", "0.6855506", "0.68538934", "0.6853212", "0.6843348", "0.6838865", "0.6831067", "0.68152094", "0.67818516", "0.6777311", "0.67733955", "0.6754586", "0.6754586", "0.67497605", "0.67282945", "0.67219645" ]
0.0
-1
Retrieve this network key. Getter.
public function getNetworkKey () { return $this->getModelPlugin()->getNetworkKey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getKey(): Key {\n return $this->key;\n }", "public function GetKey() {\n\t\treturn $this->_key;\n\t}", "public function getKey() {\n return $this->key;\n }", "function GetKey() { return( $this->key ); }", "public function getKey() {\n return $this->key;\n }", "public function getKey() {\n return $this->key;\n }", "public function getKey()\r\n {\r\n return $this->key;\r\n }", "function getKey() {\r\n return $this->key;\r\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey() \n {\n return $this->_key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "public function getKey()\n {\n return $this->getInternalKey();\n }", "public function getKey(): string\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->__get(\"key\");\n }", "public function getKey() : string\n {\n return $this->key;\n }", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n {\n return $this->__key;\n }", "public function getKey() {\n\t\treturn $this -> key;\n\t}", "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();", "public function getKey()\n {\n return $this->getAttribute($this->getKeyName());\n }", "public function getKey()\n {\n return $this->getAttribute($this->getKeyName());\n }", "public function getKey() {}", "public function getKey() {}", "public function key() { return $this->_m_key; }", "public function getPrivateKey() {\n return @$this->attributes['private_key'];\n }", "public function getKey()\n {\n return $this->data['key'];\n }", "public function getInternalKey()\n {\n return $this->_key;\n }", "public function getKey(): string;", "public function getKey(): string;", "public function key() {\n return $this->key;\n }", "public function getKey()\n\t{\n\t\treturn $this->data['key'];\n\t}", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function key() {\n return serialize($this->currentKey);\n }", "public function key() {\n return $this->_key;\n }", "public function getPrivkey()\n {\n return $this->privkey;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key() {\n\t\treturn $this->key;\n\t}", "public function getKey()\n {\n return $this->getData($this->getKeyName()) ?: $this->getContent($this->getKeyName());\n }", "public function key()\n {\n return $this->_key;\n }", "public function getKey(): KeyInterface;", "public function key() {\n\t\treturn $this->_key;\n\t}", "public function getPrivateKey(): string\n {\n return $this->privateKey;\n }" ]
[ "0.71883124", "0.71605194", "0.7135306", "0.71296346", "0.7103151", "0.71002233", "0.70592374", "0.70456976", "0.7044265", "0.70201963", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.7018119", "0.6946489", "0.6946489", "0.69456977", "0.6930541", "0.692239", "0.6908718", "0.6860858", "0.6860858", "0.6860858", "0.6860858", "0.6860858", "0.6839527", "0.6793758", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765764", "0.6765482", "0.6765482", "0.6710769", "0.6710769", "0.66988575", "0.66651505", "0.66450816", "0.65861744", "0.6583968", "0.6583968", "0.6527921", "0.6522931", "0.65156317", "0.65156317", "0.6511107", "0.648336", "0.6441335", "0.64177966", "0.64177966", "0.64177966", "0.64177966", "0.64177966", "0.6411383", "0.64066356", "0.63995904", "0.6383911", "0.6379682", "0.63791907" ]
0.74695104
0
TODO: Implement supports() method.
public function supports($data): bool { return $data instanceof Caissier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function supports( $what );", "public function isSupported();", "public function isSupported();", "abstract function isSupported(): bool;", "public function supports($data);", "public function add_supports()\n {\n }", "public function isSupported(): bool;", "static public function isSupported();", "public function is_supported()\n\t{\n\t\treturn true;\n\t}", "public function is_supported() : bool\n\t{\n\t\treturn true;\n\t}", "public function testSupports(): void\n {\n $builder = $this->getBuilder();\n\n self::assertFalse($builder->supports('PurpleElephant'));\n self::assertTrue($builder->supports(PublicProperties::class));\n }", "public function supports($type);", "public function isSupported()\n {\n return true;\n }", "public function isSupported()\n {\n return true;\n }", "public function isSupported()\n {\n return true;\n }", "public function getTheSupports();", "public function isSupported()\n {\n return $this->supported;\n }", "public static function isSupported(): bool;", "public function getIsSupported() {\n return $this->get(self::IS_SUPPORTED);\n }", "public function isSupported()\n\t{\n\t\treturn $this->isSupported;\n\t}", "public function supports($feature) { return true; }", "public static function isSupported()\n\t{\n\t\treturn true;\n\t}", "public static function isSupported()\n\t{\n\t\treturn true;\n\t}", "public function testSupports(): void\n {\n $this->assertTrue($this->driver->supports(DriverInterface::FEATURE_SAVEPOINT));\n $this->assertTrue($this->driver->supports(DriverInterface::FEATURE_QUOTE));\n\n $this->assertFalse($this->driver->supports(DriverInterface::FEATURE_CTE));\n $this->assertFalse($this->driver->supports(DriverInterface::FEATURE_JSON));\n $this->assertFalse($this->driver->supports(DriverInterface::FEATURE_WINDOW));\n\n $this->assertFalse($this->driver->supports('this-is-fake'));\n }", "public static function isSupported()\n {\n return static::$supported;\n }", "public function isSupported()\n {\n return null !== $this->name();\n }", "public function supports($args);", "abstract protected function supports($document);", "abstract protected function supports($document);", "protected abstract function supportsObject($object);", "public static function isSupported()\n {\n return true;\n }", "public function supports(){\n\t\t#Default support array\n\t\t$supports = array();\n\t\tif ($this->options('use_title')){\n\t\t\t$supports[] = 'title';\n\t\t}\n\t\tif ($this->options('use_order')){\n\t\t\t$supports[] = 'page-attributes';\n\t\t}\n\t\tif ($this->options('use_thumbnails')){\n\t\t\t$supports[] = 'thumbnail';\n\t\t}\n\t\tif ($this->options('use_editor')){\n\t\t\t$supports[] = 'editor';\n\t\t}\n\t\tif ($this->options('use_revisions')){\n\t\t\t$supports[] = 'revisions';\n\t\t}\n\t\treturn $supports;\n\t}", "public function supports(string $type): bool;", "function supports($format);", "public function isApplicable();", "public function supports($method = '');", "public function supports(string $string): bool;", "public function supports(Request $request);", "public function supportsValues();", "public function supportsClass($class)\n {\n }", "public function checkFeatureImplemented();", "public function testSupports()\n {\n $validator = $this->createValidatorMock();\n\n $injector = new Validator($validator);\n\n $intention = $this->createIntentionMock('ParametersIntentionInterface');\n $this->assertTrue($injector->supports($intention));\n\n $intention = $this->createIntentionMock('PagingAwareIntentionInterface');\n $this->assertFalse($injector->supports($intention));\n\n $intention = $this->createIntentionMock('IntentionInterface');\n $this->assertFalse($injector->supports($intention));\n }", "public function supports(File $file);", "public function supports(string $class): bool;", "public function supportsClass($class);", "public function supportsClass($class);", "public function supports(Target $target): bool;", "public function supports(string $file): bool;", "public function testCallbackSupport()\n {\n // make sure we don't get false positives\n self::assertFalse($this->processor->supports('test.jpg'));\n\n // make sure we get true positives\n self::assertTrue($this->processor->supports('test.php'));\n }", "public function mt_supportedMethods()\n {\n }", "public function supports(TokenInterface $token)\n {\n \n // return false;\n }", "public function available();", "public function available();", "public function remove_supports()\n {\n }", "public function supports(UploadedFile $file);", "public static function supports($name)\n {\n return in_array($name, self::available());\n }", "public function supportsClass($class)\n {\n // TODO: Implement supportsClass() method.\n }", "public function supported(Model $model): bool;", "static public function supports($path);", "abstract protected function getSupportedClasses();", "abstract public function is_have();", "public function doesSupportRichMessage()\n {\n return in_array($this->requestSource, $this->supportedRichMessagePlatforms);\n }", "public function supports($name, $supports)\n {\n if (!isset($this->adapters[$name])) {\n return false;\n }\n\n return $this->adapters[$name][$supports];\n }", "public function supports($resource, $type = null)\n {\n return true;\n }", "function post_type_supports($post_type, $feature)\n {\n }", "public function setSupports($supports = array('title','editor','thumbnail')){\n\t\t$this->supports = $supports;\n\t}", "abstract public function isAvailable() ;", "public function supportsFormat($format);", "public function getSupportedFeatures()\n {\n return $this->supported_features;\n }", "public function testSupportClass(): void\n {\n self::assertTrue($this->userRepository->supportsClass(User::class));\n self::assertFalse($this->userRepository->supportsClass(UserRepository::class));\n }", "abstract public function canHandle(): bool;", "public function supports_users() {\n return true;\n }", "public function supported($scheme);", "public function testCallableResourceShouldBeSupported()\n {\n self::assertTrue(\n $this->factory->supportsResource(function () {}, null),\n 'The resource type was not supported.'\n );\n }", "public function testIsApplicable(): void\n {\n $this->assertTrue($this->provider->isApplicable());\n }", "public function getSupportedTargetType() {}", "public function hasFeature(){\n return true;\n }", "abstract public static function detect();", "public function supportedFormats();", "public static function isApplicable(): bool;", "public function apply_block_supports()\n {\n }", "function supported($mime_type, $mode) {\r\r\n\t\treturn in_array(\r\r\n\t\t\tstrToLower($mime_type),\r\r\n\t\t\t$this->get_supported_types($mode)\r\r\n\t\t\t);\r\r\n\t\t}", "public function supportsCapability(string $capability): bool;", "public function testIsApplicable(): void\n {\n $this->assertTrue($this->createProvider(false)->isApplicable());\n }", "public function getCapabilities() {}", "public function getCapabilities() {}", "public function supports($resource)\n {\n return is_string($resource) && 'xml' === pathinfo($resource, PATHINFO_EXTENSION);\n }", "protected function _supports($type)\n {\n return in_array($type, $this->supports);\n }", "function getSupportedTargetType() ;", "public function supports(\\SplFileInfo $file): bool;", "function getNotSupportedMessage() {return $this->readNotSupportedMessage();}", "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 static function supportedAttributes();", "public function getCapabilities(): array;", "public function isEnabled() {}", "public function is_supported() {\n\t\treturn in_array( WC()->countries->get_base_country(), $this->_supported_countries );\n\t}", "function supports(&$input, &$output) {\n\t\t// Validate input\n\t\tif (!$this->_complies($input, $this->getFromSchema())) return false;\n\n\t\t// Validate output\n\t\tif (is_null($output)) return true;\n\t\treturn $this->_complies($output, $this->getToSchema());\n\t}", "function isAvailable()\n {\n }", "public function testUnsupportedFeatures()\n {\n $notSupported = [\n 'getPublishedList' => function () { return $this->api->getPublishedList(); },\n 'create' => function () { return $this->api->create([]); },\n 'edit' => function () { return $this->api->edit('x', []); },\n 'delete' => function () { return $this->api->delete('x'); },\n ];\n foreach ($notSupported as $key => $closure) {\n $response = $closure();\n $this->assertTrue(!empty($response['errors']), 'Should contain Error element');\n $this->assertEquals($response['errors'][0]['code'], 500, 'Should contain code 500');\n $this->assertEquals($response['errors'][0]['message'], $key.' is not supported at this time.', 'Should be equal');\n }\n }", "public function getIsAvailable() {}", "private function supportData()\n {\n $dataClass = $this->type->getDataClass();\n\n return $this->data instanceof $dataClass || $dataClass === get_class($this->data);\n }" ]
[ "0.75313747", "0.745375", "0.745375", "0.7330664", "0.72238696", "0.71381986", "0.70770943", "0.70603395", "0.70033497", "0.69836754", "0.6812075", "0.68061304", "0.6805844", "0.6805844", "0.6805844", "0.6792912", "0.67488146", "0.6730948", "0.6653355", "0.66326535", "0.6629685", "0.6620025", "0.6620025", "0.6618685", "0.6590117", "0.6572912", "0.65729064", "0.6559313", "0.6559313", "0.6433175", "0.64301884", "0.64067316", "0.6384074", "0.6377582", "0.637484", "0.6369796", "0.6351688", "0.6323482", "0.6297095", "0.6187852", "0.61832064", "0.6172288", "0.612463", "0.6123525", "0.61117876", "0.61117876", "0.6111463", "0.6030134", "0.60130125", "0.6011789", "0.60056984", "0.5979137", "0.5979137", "0.59644616", "0.5891618", "0.5879708", "0.5856969", "0.58322924", "0.5792553", "0.5788961", "0.57733756", "0.5765626", "0.57357794", "0.5729769", "0.5727489", "0.57144487", "0.5713502", "0.5691287", "0.566084", "0.56546515", "0.5650182", "0.564658", "0.5607647", "0.5602711", "0.5599651", "0.5592442", "0.55834436", "0.5564546", "0.55589455", "0.55512", "0.5542117", "0.554106", "0.553623", "0.55231047", "0.55225766", "0.55225766", "0.55220616", "0.5518742", "0.5514875", "0.55144095", "0.5513887", "0.5512161", "0.5503777", "0.5503429", "0.55018866", "0.54923695", "0.54898536", "0.54758614", "0.54668736", "0.54564685", "0.545215" ]
0.0
-1
Create a new job instance.
public function __construct(Post $post, $rePublish = false, $providerOrProviders = null) { $this->post = $post; $this->publisher = (new SocialAutoPilot($this->post, $rePublish)); $this->rePublish = $rePublish; $this->providerOrProviders = $providerOrProviders; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createJob( $creationParameters ){ return $this->APICallSub( '/jobs', array( 'create' => $creationParameters ), \"Could not create new job with query \" . $creationParameters['query'] . \" and operation \" . $creationParameters['operation'] ); }", "abstract public function makeJob();", "abstract public function makeJob();", "private function createSearchJob() {\n $response = $this->client->request('POST','search/jobs', [\n 'json' => [\n 'query' => $this->getSumoQuery(),\n 'from' => $this->start->format(DateTime::ATOM),\n 'to' => $this->end->format(DateTime::ATOM),\n 'timeZone' => $this->profile->getTimezone()\n ]\n ]);\n $code = $response->getStatusCode();\n if ($code !== 202) {\n throw new \\Exception('Error getting data from Sumologic, error was HTTP ' . $code . ' - ' . $response->getBody() . '.');\n }\n $data = json_decode($response->getBody());\n $this->jobId = $data->id;\n if ($this->output->isVerbose()) {\n $this->output->writeln(\" > Debug: Search job ID {$this->jobId} created.\");\n }\n }", "public function createJobObject($payload)\n {\n $job = new Job([\n 'title' => $payload['title'],\n 'name' => $payload['title'],\n 'description' => $payload['description'],\n 'url' => $payload['url'],\n 'location' => $payload['locations'],\n ]);\n\n $job->setCompany($payload['company'])\n ->setDatePostedAsString($payload['date'])\n ->setBaseSalary($payload['salary']);\n\n return $job;\n }", "public function createJobExecution(JobInstance $job)\n {\n return new JobExecution();\n }", "public function setJobName(string $jobName): JobInstanceInterface;", "public function __construct(Job $job)\n {\n $this->job = $job;\n }", "public static function createJob($project, $jobOptions, $parentJob = null) {\n\n // Check if the job must be CC\n $isCC = ($jobOptions->getProjectJobFileType() && $jobOptions->getProjectJobFileType() == ProjectJobFile::TYPE_CC);\n\n if ($jobOptions->getJobType())\n Subtitle::defineSubtitleExtension($jobOptions->getJobType());\n\n // Get job type service id\n $jobOptionsTypeService = JobTypeService::model()->byJobTypeAndService(\n $jobOptions->getJobType(),\n $jobOptions->getService()\n )->find();\n\n // Set attributes\n $projectJob = new PRMProjectJob();\n $projectJob->source_lang_id = $jobOptions->getSourceLanguage();\n $projectJob->target_lang_id = $jobOptions->getTargetLanguage();\n $projectJob->project_id = $project->id;\n $projectJob->job_type_id = $jobOptions->getJobType();\n $projectJob->job_type_service_id = $jobOptionsTypeService->id;\n $projectJob->subtitle_provided = $jobOptions->isSubtitleProvided() ? 1 : 0;\n $projectJob->status = parent::STATUS_NEW;\n $projectJob->due_date = $jobOptions->getDueDate();\n $projectJob->is_billable = ($jobOptions->getJobType() != JobType::TYPE_ACCEPTANCE) ? 1 : 0;\n $projectJob->is_cc = (int) $isCC;\n $projectJob->forced_subtitle = $jobOptions->getIsForced() ? 1 : 0;\n $projectJob->job_meta_type_id = $jobOptions->getMetaType();\n\n if($projectJob->save(false)) {\n\n $deliverySpecComponent = new DeliverySpecComponent();\n $projectJobPreference = $deliverySpecComponent->copyTerritoriesToJobPreferences($projectJob, $project->delivery_spec_id);\n // Set max_box_lines = 3 for CC jobs\n if($projectJobPreference instanceof ProjectJobPreference && $isCC) {\n $projectJobPreference->max_box_lines = 3;\n $projectJobPreference->save(false);\n }\n\n ProjectBreakdownReport::create(ProjectBreakdownReportActions::TASK_ADDED)\n ->forProjectJob($projectJob)\n ->save();\n\n if ($project->user_id){\n PUserJob::model()->assignJob($project->user_id, $projectJob->id);\n }\n\n ProjectJobParent::link($parentJob ? $parentJob->id : 0, $projectJob->id);\n\n if ($jobOptions->getOutputSupportedFile() instanceof ProjectSupportedFile) {\n $deliverableFile = new ProjectJobDeliverableFiles();\n $deliverableFile->project_job_id = $projectJob->id;\n $deliverableFile->project_supported_file_id = $jobOptions->getOutputSupportedFile()->id;\n $deliverableFile->file_name = $jobOptions->getOutputFileName();\n\n if ($jobOptions->getOutputPositioningType()){\n $deliverableFile->positioning_profile = \"0;{$jobOptions->getOutputPositioningType()};{$jobOptions->getOutputAspect()};{$jobOptions->getOutputAspectRatio()}\";\n }\n\n $deliverableFile->save(false);\n }\n\n // Return job\n return $projectJob;\n }\n\n return false;\n }", "public function createJobObject($payload)\n {\n $job = new Job;\n\n $map = $this->getJobSetterMap();\n\n array_walk($map, function ($path, $setter) use ($payload, &$job) {\n try {\n $value = static::getValue(explode('.', $path), $payload);\n $job->$setter($value);\n } catch (\\OutOfRangeException $e) {\n // do nothing\n }\n });\n\n return $job;\n }", "public function create(JobRequest $jobRequest)\n {\n $job = new Job();\n\n $job->business_person = $jobRequest->business_person;\n $job->principal_phone = $jobRequest->principal_phone;\n $job->optional_phone = $jobRequest->optional_phone;\n $job->init_date = $jobRequest->init_date;\n $job->finish_date = $jobRequest->finish_date;\n $job->city = $jobRequest->city;\n\n $job->save();\n\n return compact('job');\n }", "public function createNewJob($jobBody, $queue)\n {\n $job = new Job($jobBody, $queue);\n\n if ($this->jobHasBeenAddedFromOutside($job)) {\n $this->addMissingJobTimeData($job);\n }\n\n return $job;\n }", "protected function createJobFromPayload($payload = [])\n {\n return new Job([\n 'title' => $payload['jobTitle'],\n 'name' => $payload['jobTitle'],\n 'description' => $payload['descriptionFragment'],\n 'url' => $payload['jobViewUrl'],\n 'sourceId' => $payload['jobListingId'],\n 'location' => $payload['location'],\n 'industry' => $payload['jobCategory']\n ]);\n }", "public function created(Job $job)\n {\n //\n }", "protected function generateJob()\n\t{\n\t\t$name = $this->inflector->getJob();\n\n\t\t$this->call('make:job', compact('name'));\n\t}", "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}", "static public function factory($job, $conn, $handle, $initParams=array())\n {\n if (empty($initParams['path'])) {\n $paths = explode(',', NET_GEARMAN_JOB_PATH);\n $file = null;\n\n foreach ($paths as $path) {\n $tmpFile = $path . '/' . $job . '.php';\n\n if (file_exists(realpath($tmpFile))) {\n $file = $tmpFile;\n break;\n }\n }\n }\n else {\n $file = $initParams['path'];\n }\n\n if ( ! file_exists($file) ) {\n throw new Net_Gearman_Job_Exception('Invalid Job class file: ' . (empty($file) ? '<empty>' : $file));\n }\n\n include_once $file;\n\n if (empty($initParams['class_name'])) {\n $class = NET_GEARMAN_JOB_CLASS_PREFIX . $job;\n }\n else {\n $class = $initParams['class_name'];\n }\n\n if (!class_exists($class)) {\n throw new Net_Gearman_Job_Exception('Invalid Job class: ' . (empty($class) ? '<empty>' : $class) . ' in ' . (empty($file) ? '<empty>' : $file) );\n }\n\n $instance = new $class($conn, $handle, $initParams);\n if (!$instance instanceof Net_Gearman_Job_Common) {\n throw new Net_Gearman_Job_Exception('Job is of invalid type: ' . get_class($instance));\n }\n\n return $instance;\n }", "public function creating(Job $job)\n {\n $job->setTokenValue();\n $job->setExpiresAtValue();\n $job->is_activated = 1;\n }", "private function createJob (string $cronTab) : CronJobInterface\n {\n return new class ($cronTab) implements CronJobInterface\n {\n /** @var string */\n private $cronTab;\n\n\n /**\n */\n public function __construct (string $cronTab)\n {\n $this->cronTab = $cronTab;\n }\n\n\n /**\n */\n public function getCronTab () : string\n {\n return $this->cronTab;\n }\n\n\n /**\n */\n public function getName () : string\n {\n return \"My Job\";\n }\n\n\n /**\n */\n public function execute (BufferedSymfonyStyle $io) : CronStatus\n {\n return new CronStatus(true);\n }\n };\n }", "private function createJob(array $data = [])\n {\n $workflow = fake(WorkflowModel::class);\n $stage = fake(StageModel::class, [\n 'action_id' => 'info',\n 'workflow_id' => $workflow->id,\n 'required' => 1,\n ]);\n fake(StageModel::class, [\n 'action_id' => 'button',\n 'workflow_id' => $workflow->id,\n 'required' => 0,\n ]);\n\n $data = array_merge([\n 'workflow_id' => $workflow->id,\n 'stage_id' => $stage->id,\n ], $data);\n\n return fake(JobModel::class, $data);\n }", "public function getNewJob() {\n # we can grab a locked job if we own the lock\n $rs = $this->runQuery(\"\n SELECT id\n FROM \" . self::$jobsTable . \"\n WHERE queue = ?\n AND (run_at IS NULL OR NOW() >= run_at)\n AND (locked_at IS NULL OR locked_by = ?)\n AND failed_at IS NULL\n AND attempts < ?\n ORDER BY created_at DESC\n LIMIT 10\n \", array($this->queue, $this->name, $this->max_attempts));\n\n // randomly order the 10 to prevent lock contention among workers\n shuffle($rs);\n\n foreach ($rs as $r) {\n $job = new DJJob($this->name, $r[\"id\"], array(\n \"max_attempts\" => $this->max_attempts,\n \"fail_on_output\" => $this->fail_on_output\n ));\n if ($job->acquireLock()) return $job;\n }\n\n return false;\n }", "public function store(Request $request): JobResource\n {\n $jobTypes = Factory::listTypes();\n $validValues = $this->validate(\n $request,\n [\n 'sample_code' => ['filled', 'string', 'alpha_dash'],\n 'name' => ['required', 'string'],\n 'type' => ['required', 'string', Rule::in($jobTypes->pluck('id'))],\n 'parameters' => ['filled', 'array'],\n ]\n );\n $parametersValidation = $this->_prepareNestedValidation(\n Factory::validationSpec($validValues['type'], $request)\n );\n $validParameters = $this->validate($request, $parametersValidation);\n $type = $validValues['type'];\n $validParameters = $validParameters['parameters'] ?? [];\n $job = Job::create(\n [\n 'sample_code' => $validValues['sample_code'] ?? null,\n 'name' => $validValues['name'],\n 'job_type' => $type,\n 'status' => Job::READY,\n 'job_parameters' => [],\n 'job_output' => [],\n 'log' => '',\n 'user_id' => \\Auth::guard('api')->id(),\n ]\n );\n $job->setParameters(Arr::dot($validParameters));\n $job->save();\n $job->getJobDirectory();\n\n return new JobResource($job);\n }", "public function __construct(JobPoster $job)\n {\n $this->job = $job;\n }", "public function create()\n {\n // Display form to create a new job\n return view('jobs.create');\n }", "public function __construct(Job $job)\n {\n parent::__construct();\n\n $this->job = $job;\n }", "protected function getJobInstance(): JobInstance\n {\n if (!isset($this->jobInstance)) {\n $id = $this->argument('instanceId');\n /** @noinspection PhpIncompatibleReturnTypeInspection */\n $this->jobInstance = JobInstance::findOrFail(intval($id));\n }\n\n return $this->jobInstance;\n }", "public function getInstance()\n {\n if (!is_null($this->instance)) {\n return $this->instance;\n }\n\n if (!class_exists($this->class)) {\n throw new \\RuntimeException('Could not find job class \"'.$this->class.'\"');\n }\n\n if (!method_exists($this->class, $this->method) or !is_callable(array($this->class, $this->method))) {\n throw new \\RuntimeException('Job class \"'.$this->class.'\" does not contain a public \"'.$this->method.'\" method');\n }\n\n $class = new \\ReflectionClass($this->class);\n\n if ($class->isAbstract()) {\n throw new \\RuntimeException('Job class \"'.$this->class.'\" cannot be an abstract class');\n }\n\n $instance = $class->newInstance();\n\n return $this->instance = $instance;\n }", "static function createJobDescriptorFromInput()\n {\n $obj = b2input()->json();\n $job = new \\scheduler\\JobDescriptor();\n\n $job->group = trim($obj->group) ?: b2config()->scheduler['defaultGroupName'];\n $job->name = $obj->name;\n $job->type = $obj->type;\n $job->description = $obj->description;\n\n if ($obj->data) {\n $job->data = parse_ini_string($obj->data);\n }\n if (empty($job->data)) {\n $job->data = null;\n }\n\n// var_dump($job);\n\n return $job;\n }", "public function create() {}", "public function __construct()\n {\n $this->jobService = new JobService();\n }", "public function create()\n {\n $job=new Job;\n return view('jobs.create',[\n 'job'=>$job,]);\n //\n }", "public function store(CreateJobFormRequest $request)\n {\n $job = Job::create($request->input());\n\n return response()->json($job, 201);\n\n }", "public function create()\n {\n return view('admin.job.create');\n }", "public function createAction(Request $request)\n {\n $entity = new Job();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('job_show', array('id' => $entity->getId())));\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public function create(){}", "public function create(Request $request) {\n $jobPost = new Job();\n $jobPost->user_id = Auth::user()->id;\n\n // Substract one credit from user's subscription\n $userPlans = Auth::user()->plans;\n\n foreach ($userPlans as $plan) {\n if ($plan->credits > 0) {\n $plan->credits = $plan->credits - 1;\n $plan->save();\n }\n }\n\n $jobPostData = $request::input('jobPost');\n foreach ($jobPostData as $key => $value) {\n $jobPost[$key] = $value;\n }\n\n $jobPost->save();\n\n return $jobPost;\n }", "public function __construct($job)\n {\n $payload = [];\n $this->job = $job;\n $payload['data'] = json_encode($this->job);\n\n $payload['classname'] = $this->job->getNameOfClass();\n $this->payload = $payload;\n\n }", "public function create()\n {\n return view('profile.job.create');\n }", "public function create()\n {\n return view('job.add_job');\n }", "public function store(CreateRequest $request, Job $job)\n {\n $newTask = $request->validated();\n $newTask['job_id'] = $job->id;\n $task = Task::create($newTask);\n\n flash(__('task.created'), 'success');\n\n return redirect()->route('jobs.show', $job);\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function create()\n {}", "public function createTask()\n {\n return factory($this->model)->create();\n }", "public function newAction()\n {\n $entity = new Job();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function createJob(array $settings, $metaData = [], $priority = 0)\n {\n return $this->client->createJob([\n 'Role' => config('media-converter.iam_arn'),\n 'Settings' => $settings,\n 'Queue' => config('media-converter.queue_arn'),\n 'UserMetadata' => $metaData,\n 'StatusUpdateInterval' => $this->getStatusUpdateInterval(),\n 'Priority' => $priority,\n ]);\n }", "public function addNewJobOpo()\n {\n }", "public function insert($projectId, Google_Job $postBody, $optParams = array()) {\n $params = array('projectId' => $projectId, 'postBody' => $postBody);\n $params = array_merge($params, $optParams);\n $data = $this->__call('insert', array($params));\n if ($this->useObjects()) {\n return new Google_Job($data);\n } else {\n return $data;\n }\n }", "public function run()\n {\n Job::create([\n \"name\" => \"Wirausaha\"\n ]);\n\n Job::create([\n \"name\" => \"Wiraswasta\"\n ]);\n\n Job::create([\n \"name\" => \"Freelance\"\n ]);\n\n Job::create([\n \"name\" => \"Pelajar\"\n ]);\n }", "public function create() {\n \n }", "public function create() {\n \n }", "public static function createJob($mysqli,$name, $jobdesc, $cust_email, $trade, $area, $jobcost, $jobdate, $estdate){\n $insert = \"INSERT INTO job (job_name,job_desc,cust_email,trade_name,area,preferred_cost,date_needed,offer_end_date) VALUES (?,?,?,?,?,?,?,?)\";\n $stmt = $mysqli->prepare($insert);\n $stmt->bind_param('sssssiss', $name, $jobdesc, $cust_email, $trade, $area, $jobcost, $jobdate, $estdate); \n $stmt->execute();\n $stmt->close();\n $job = new Job(['JobName'],['JobDesc'],['Email'],['Trade'],['Area'],['JobCost'],['JobDate'],['EstDate']);\n return $job;\n }", "public function store(Request $request)\n {\n $job = new Job();\n $job->title = $request->title;\n $job->description = $request->description;\n $job->company_name = $request->company_name;\n $this->repo->save($job);\n return new JobsResources($job);\n }", "public function create()\n {\n $fields = Field::all();\n $jobTypes = config('user.job_type');\n\n return view('job.create', [\n 'fields' => $fields,\n 'jobTypes' => $jobTypes,\n ]);\n }", "public static function create($queue, $class, array $data = null, $run_at = 0)\n {\n $id = static::createId($queue, $class, $data, $run_at);\n\n $job = new static($queue, $id, $class, $data);\n\n if ($run_at > 0) {\n if (!$job->delay($run_at)) {\n return false;\n }\n } elseif (!$job->queue()) {\n return false;\n }\n\n Stats::incr('total', 1);\n Stats::incr('total', 1, Queue::redisKey($queue, 'stats'));\n\n return $job;\n }", "public function create()\n {\n return $this->objectManager->create($this->className);\n }", "public function create() {\r\n }", "public function create()\n {\n //TODO\n }", "public function submit(Job $job): JobResource\n {\n if (!$job->canBeModified()) {\n abort(400, 'Unable to submit a job that is already submitted.');\n }\n $job->setStatus(Job::QUEUED);\n JobRequest::dispatch($job);\n\n return new JobResource($job);\n }", "public function __construct(int $status, Job $job)\n {\n $this->status = $status;\n $this->job = $job;\n\n $this->updateTask($this->status, $this->job);\n }", "public function create()\n {\n return new $this->class;\n }", "public function create() {\n }", "public function create() {\n }", "public function create() {\n\t \n }", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create();", "public function create()\n {\n return view('admin.jobs.create');\n }", "public function fake(Generator &$faker): Job\n {\n return new Job([\n 'name' => $faker->catchPhrase,\n 'summary' => $faker->sentence,\n 'workflow_id' => random_int(1, Fabricator::getCount('workflows') ?: 4),\n 'stage_id' => random_int(1, Fabricator::getCount('stages') ?: 99),\n ]);\n }", "public function run()\n {\n Job::factory()->count(100)->create();\n \n }", "public function create() {\n\t\t\t//\n\t\t}", "public function create()\n {\n return view('admin.jobs.create');\n\n }", "public function create() {\n\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 create() {\n\t\t//\n\t}", "protected function _createJob($type, $job)\n\t{\n\t\treturn strtoupper($type) . ' ' . json_encode($job);\n\t}", "public function createJobWithSalesPrices(array $inputData): Job;", "public function create(Job $job)\n {\n $states = $job->prepareStates();\n $countries = $job->prepareCountries();\n $hours = $job->prepareHours();\n $minutes = $job->prepareMinutes();\n $ampm = $job->prepareAmpm();\n $open = $job->prepareOpen();\n return view('companies.create', compact(['states','countries','hours','minutes','ampm','open']));\n }", "public function create()\n {\n return view('jobs.create');\n }", "public function create()\n {\n return view('jobs.create');\n }", "public function create()\n {\n return view('jobs.create');\n }" ]
[ "0.6920272", "0.6905722", "0.6905722", "0.6869542", "0.6808916", "0.65271425", "0.65184414", "0.64918077", "0.6489135", "0.6468623", "0.6425879", "0.64058304", "0.63938236", "0.63899404", "0.63753885", "0.6304669", "0.6256802", "0.6241474", "0.620155", "0.61789167", "0.60741454", "0.60695714", "0.6047274", "0.60462874", "0.6028435", "0.6027225", "0.6021894", "0.60214204", "0.59231514", "0.58802027", "0.5874528", "0.58576655", "0.58098435", "0.5805053", "0.58005697", "0.5789109", "0.57851434", "0.57767034", "0.5775661", "0.5755982", "0.5702295", "0.5683395", "0.5683395", "0.5683395", "0.5683376", "0.5679739", "0.5678496", "0.5659406", "0.56529284", "0.56470996", "0.5634536", "0.5632702", "0.5632702", "0.5628215", "0.5625956", "0.5621957", "0.56141514", "0.56048644", "0.5604791", "0.5601149", "0.5601067", "0.5599652", "0.5595376", "0.55932534", "0.55932534", "0.55932015", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55778396", "0.55362236", "0.5534658", "0.5531583", "0.55224913", "0.5522197", "0.5517534", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.55171794", "0.5514842", "0.549955", "0.5497938", "0.54876786", "0.54876786", "0.54876786" ]
0.0
-1
deze function handeld alle get acties af
public function getAccessToken() { $token = \Yii::$app->user->identity->token; if (!empty(($token = \Yii::$app->user->identity->token))) { $this->_client->setDefaultAccessToken($token->token); } if (!empty(($access_token = $this->_client->getRedirectLoginHelper()->getAccessToken()))) { return $access_token; } elseif (!empty($token->token)) { $newToken = $this->getExtendedAccessToken($token->token); $token->token = $newToken; if ($token->save()) { $this->_client->setDefaultAccessToken(new AccessToken(['access_token' => $token->token])); return $newToken; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGet ();", "abstract public function get() ;", "abstract function get();", "abstract function getdata();", "public function get( /* void */ );", "public function obtenerViajesplus();", "function get()\n {\n }", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "abstract public function get();", "public function get_data();", "public function get_data()\n\t\t{\t\t// Should there be a common method for this?\n\t\t}", "public function Individualgetdata();", "public function get_data()\n {\n\n\n }", "function get_data()\n {\n }", "public static function getters();", "abstract public function getPasiekimai();", "public function get_all ();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "public function get();", "function get_value() {return $this->get();}", "function GETDataKelas_All(){\r\n\r\n // Perintah Get Data Kelas\r\n return $this->MKelas->GET();\r\n }", "function getAll()\r\n {\r\n\r\n }", "function allGet()\n {\n $get = $this->unsafeAllGet();\n return array_map(array($this->sec, 'clean'), $get);\n }", "public function gets() {\r\n $query = $this->db->query(\"SELECT o.*, f.fabrica, p.producto, a.articulo, a.posicion, pl.idplano, pl.plano, pl.revision\r\n FROM ((((ots o INNER JOIN fabricas f ON o.idfabrica = f.idfabrica AND o.activo = '1')\r\n INNER JOIN articulos a ON a.idarticulo = o.idarticulo)\r\n INNER JOIN productos p ON a.idproducto = p.idproducto)\r\n LEFT JOIN planos pl ON a.idplano = pl.idplano)\r\n ORDER BY\r\n o.numero_ot DESC\");\r\n \r\n return $query->result_array();\r\n }", "public function getDetalle();", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "public function read(){\r\n foreach ($this as $key=>$valor){\r\n $this->$key= Request::req($key);\r\n }\r\n }", "function getAll();", "function getAll();", "public function get_post_get()\n {\n $this->get_post_get_action();\n $this->get_post_get_query();\n $this->get_post_get_andor();\n $this->get_post_get_uid();\n $this->get_post_get_mid();\n $this->get_post_get_start();\n $this->get_post_get_mids();\n $this->get_post_get_showcontext();\n $this->get_post_get_mark();\n $this->get_post_get_cid();\n $this->get_post_get_subcat();\n }", "function getItem() ;", "public function processGet() {\n if (!isset($this->arguments[\"data\"])) {\n $this->inmueblesDestacados();\n } else if (is_numeric($this->arguments[\"data\"])) {\n $this->view((int) $this->arguments[\"data\"]);\n } else {\n $this->findByfilters($this->arguments[\"data\"]);\n }\n }", "abstract public function retrieve();", "protected function doGet()\n {\n }", "public static function get_data(){\n\n }", "public function obat_get()\n\t{\n\t\t$data = $this->Obat->getAllObat();\n\t\tif ($data) {\n\t\t\t$this->response($data,200);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->response([\n\t\t\t\t'error'=>false,\n\t\t\t\t'message'=>'Obat kosong'\n\t\t\t],200);\n\t\t}\n\t}", "function all_get(){\n $akhir = $this->get('akhir');\n\n $allwaktu = $this->db->query(\"SELECT id_waktu FROM waktu WHERE mulai <= \".$akhir.\"-1 AND selesai > \".$akhir.\"-1\")->result();\n $this->response(array('result' => $allwaktu));\n }", "abstract protected function getDirectGetters();", "function processGetVars()\n {\n //assignGetIfExists ( $fullList, NULL, 'full' );\n //$this->fullList = (bool) $fullList;\n self::dumpThis();\n }", "private function GET() {\n global $_GET;\n $getData = array();\n foreach($_GET as $key => $value) {\n $getData[$key] = $value;\n }\n $this -> response[\"response\"] = $getData;\n return;\n }", "public function getUtilisateurs();", "public function gett()\n {\n return \"hello from gett\";\n }", "public function __GET($name){\n\t\t\t//LEARNED imeto na promenlivata !\n\t\t\t//echo $name;\n\t\t\treturn $this->data[$name];\n\t\t}", "public function obtenerViajesplusAbonados();", "function actionsForGetMethod()\n {\n if (isset($this->id)) { /* If the variable id exists, it request to the model for the specific element */\n $data = $this->api->get($this->id);\n } else { /* If it does not exist, request all the elements */\n $data = $this->api->get();\n }\n\n /* It eliminates the last element of the array $ data, since usually, it usually brings two elements,\n one with the information, and another NULL which is not needed */\n array_pop($data);\n\n if (count($data) == 0) {\n /* If the variable id exists but the array of $ data does not produce a result,\n it means that the element does not exist */\n if (isset($this->id)) {\n $this->print_json(404, \"Not Found\", null);\n } else {\n /* But if the variable id exists and does not bring $ data, since we do not look for a specific\n element, it means that the entity has no elements to show */\n $this->print_json(204, \"Not Content\", null);\n }\n } else {\n $this->print_json(200, \"OK\", $data); /* Print the requested information */\n }\n }", "public function extract_data_get()\r\n {\r\n if(isset($this->id)){\r\n $search = $this->Ajax->extract($this->id);\r\n foreach ($search as $row) {\r\n echo $row['word'].'<br>';\r\n }\r\n }\r\n }", "public function obtener()\n {\n }", "function getParams()\n {\n }", "private function setGetParameters() {\n\t\tforeach(array_keys($_GET) as $currentKey) {\n\t\t\t$this->getArray[$currentKey] = $_GET[$currentKey];\n\t\t}\n\t}", "function getFrom();", "public function get() : array;", "protected function getAll() {}", "protected static function getAll()\n {\n }", "abstract protected function alter_get($name);", "public function getDataList(){\n return $this->_get(1);\n }", "function index_get() {\n $id = $this->get('id_formk');\n if ($id == '') {\n $admintaxi = $this->db->get('t_form_kotamobagu')->result();\n } else {\n $this->db->where('id_formk', $id);\n $admintaxi = $this->db->get('t_form_kotamobagu')->result();\n }\n $this->response($admintaxi, 200);\n }", "public final function get_all()\n {\n }", "public function afficherAll()\n {\n }", "public function get(): array;", "public function get(): array;", "public function isGet();", "public function get($_id, $_getDeleted = FALSE) {\n }", "private function loadGetParams()\n {\n if(isset($_GET)) {\n $this->getParams = $_GET;\n }\n }", "function getGetList() {\n return $this->getList;\n }", "abstract public function getAll();", "abstract public function getAll();", "abstract public function getAll();", "private function getDataByGet($params){\n \tforeach($params as $key=>$val){\n \t\t$s .= \"&\".$key.\"=\".$val;\n \t}\n \t$val = file_get_contents($this->url.\"?\".substr($s,1));\n \treturn $val;\n }", "function getItems();", "function getItems();", "public function willGenerateGet(): bool;", "function index_get() {\n $id = $this->get('id'); // Mengecek apakah ada property id pada address sehingga data yang ditampilkan dapat diseleksi berdasarkan id atau ditampikan semua\n if ($id == '') {\n $kontak = $this->db->get('telepon')->result(); // Jika id tidak ada maka data ditampilkan semua\n } else {\n $this->db->where('id', $id);\n $kontak = $this->db->get('telepon')->result(); // Data ditampilkan berdasarkan id yang terdapat di property address\n }\n $this->response($kontak, 200);\n }", "function getAll(){\r\n \treturn $this->data;\r\n }", "function getData();", "public function get() {}", "abstract public function getList();", "public function get() {}" ]
[ "0.7161435", "0.6726495", "0.6634451", "0.65490264", "0.6463341", "0.6456045", "0.6419286", "0.6362399", "0.6362399", "0.6362399", "0.63616145", "0.63404214", "0.63404214", "0.63404214", "0.63404214", "0.63404214", "0.63404214", "0.6285438", "0.6264291", "0.61638826", "0.61469764", "0.6103325", "0.60610884", "0.6038935", "0.603028", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.60227585", "0.6013677", "0.5965428", "0.59487456", "0.5920919", "0.58803856", "0.587301", "0.58557594", "0.5846052", "0.5839912", "0.5839912", "0.58331925", "0.582278", "0.57900625", "0.5784927", "0.5783948", "0.576697", "0.57652897", "0.57535803", "0.57483315", "0.5738653", "0.572259", "0.57221425", "0.572211", "0.5720295", "0.57183653", "0.57092583", "0.5708848", "0.5699918", "0.5698708", "0.56921434", "0.5678662", "0.56751907", "0.56751305", "0.56636685", "0.56634414", "0.5651544", "0.56334424", "0.56233644", "0.56226015", "0.56132114", "0.56132114", "0.56028223", "0.5591936", "0.55684334", "0.5563678", "0.55606455", "0.55606455", "0.55606455", "0.5554748", "0.55496633", "0.55496633", "0.5548661", "0.5545462", "0.5538065", "0.5537575", "0.55352706", "0.5534982", "0.55334765" ]
0.0
-1
funcao construtor da classe
function cl_tipovistoriasrec() { //classes dos rotulos dos campos $this->rotulo = new rotulo("tipovistoriasrec"); $this->pagina_retorno = basename($GLOBALS["HTTP_SERVER_VARS"]["PHP_SELF"]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct() ;", "function _construct() {\n \t\n\t\t\n\t}", "function __construct (){\n\t\t}", "function _construct(){ }", "public function _construct()\n\t{\n\n\t}", "function __construct(){\n\n\t\t}", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct() {}", "function __construct()\n\t{\n\t\t\n\t\t\n\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\t\t\n\t\t}", "function __construct() {\n\t\t\t\n\t\t}", "function __construct() {}", "function __construct(){\n\t\t// nowt much...\n\t}", "function __construct(){}", "function __construct(){}", "function __construct(){}", "public function __construct (){}", "function __construct(){\n\t\t}", "function __construct()\n\t{\n\n\t}", "function __construct() {\n\n\t\t}", "function __construct(){\r\n\t\t}", "public function __construct() { \n\t\t\n\n\t\t}", "function __construct()\r\n\t{\r\n\t}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private final function __construct() {}", "private function __construct() { \n\t\t\n\n\t}", "function __construct()\n\t{\n\t\t# code...\n\t}", "function __construct()\r\n\t{\r\n\t\t\r\n\t}", "function __construct()\n\t{\n\t}", "function __construct()\n\t{\n\t}", "function __construct()\n\t{\n\t}", "private function __construct()\t{}", "public function __construct()\n\t{\n\t}", "final private function __construct(){\r\r\n\t}", "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "private function __construct(){\n\t\t }", "protected abstract function __construct();", "function __construct(){\n\n\t}", "public function __construct()\r\n\t\t{\r\n\t\t}", "public function __construct()\n\t{\n\t\n\t}", "public function __construct()\n\t{\n\t\n\t}", "function __construct(){\r\n\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "public function __construct()\n\t{}", "function __construct()\n\t{\n \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\n\t}", "public function __construct()\n\t{\n\n\t}", "public function __construct()\n\t{\n\n\t}", "public function __construct(){\n\t\t//\n\t}", "public function __construct(){\n\t\t//\n\t}", "public function __construct()\n\t\t{\t\t\t\n\t\t}", "private function __construct(){\n\t\n\t}", "function __construct() {\n\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}", "public function __construct() {\n\t\t\n\t}", "private function __construct( )\n {\n\t}", "public function __construct() {\n\n\t\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}", "private function __construct(){\n \t\n }", "private function __construct() {\r\n\t\r\n\t}", "function __construct() {\r\n\t}", "function __construct() {\r\n\t}" ]
[ "0.82710814", "0.8201428", "0.8043516", "0.80062735", "0.796183", "0.7928873", "0.7894286", "0.78932434", "0.78932434", "0.78932434", "0.78932434", "0.78932434", "0.78932434", "0.7892753", "0.7887893", "0.788242", "0.78764445", "0.7872269", "0.78641057", "0.78625774", "0.78625774", "0.78625774", "0.78494614", "0.78404146", "0.782691", "0.7825362", "0.78223693", "0.7772932", "0.7767797", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77637684", "0.77618545", "0.7750897", "0.77469", "0.77464163", "0.7745494", "0.7745494", "0.7745494", "0.7743061", "0.7741989", "0.7735934", "0.7732405", "0.7731418", "0.77172667", "0.77101105", "0.77092403", "0.7702783", "0.7702783", "0.77001476", "0.76978403", "0.76866823", "0.76810014", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7678487", "0.7661576", "0.7661576", "0.7661576", "0.7661339", "0.7661339", "0.7661082", "0.76529324", "0.76510185", "0.7649274", "0.7649274", "0.7649274", "0.7649274", "0.7649274", "0.76464516", "0.7643331", "0.76395047", "0.76395047", "0.76395047", "0.76395047", "0.76395047", "0.7639284", "0.7633727", "0.7633691", "0.7633691" ]
0.0
-1
funcao para atualizar campos
function atualizacampos($exclusao=false) { if($exclusao==false){ $this->y78_codtipo = ($this->y78_codtipo == ""?@$GLOBALS["HTTP_POST_VARS"]["y78_codtipo"]:$this->y78_codtipo); $this->y78_receit = ($this->y78_receit == ""?@$GLOBALS["HTTP_POST_VARS"]["y78_receit"]:$this->y78_receit); $this->y78_valor = ($this->y78_valor == ""?@$GLOBALS["HTTP_POST_VARS"]["y78_valor"]:$this->y78_valor); $this->y78_descr = ($this->y78_descr == ""?@$GLOBALS["HTTP_POST_VARS"]["y78_descr"]:$this->y78_descr); }else{ $this->y78_codtipo = ($this->y78_codtipo == ""?@$GLOBALS["HTTP_POST_VARS"]["y78_codtipo"]:$this->y78_codtipo); $this->y78_receit = ($this->y78_receit == ""?@$GLOBALS["HTTP_POST_VARS"]["y78_receit"]:$this->y78_receit); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _updatefields() {}", "function _set_editable_fields()\n\t{\n\t\tif (empty($this->fields))\n\t\t{\n\t\t\t// pull the fields dynamically from the database\n\t\t\t$this->db->cache_on();\n\t\t\t$this->fields = $this->db->list_fields($this->primary_table);\n\t\t\t$this->db->cache_off();\n\t\t}\n\t}", "private function camposObligatorios()\n {\n $this->setRequiredField(\"mascara\");\n $this->setRequiredField(\"etiqueta\");\n/*\n $this->setRequiredField(\"id_padre\");\n*/\n $this->setRequiredField(\"posicion\");\n $this->setRequiredField(\"visible\");\n $this->setRequiredField(\"nivel_acceso\");\n/*\n $this->setRequiredField(\"accion\");\n*/\n\n return;\n }", "public function actualizarCampos(){\n //---- eliminamos todos los registros\n $sql = \"DELETE FROM \". TABLE_EMPRESA .\"_campo WHERE uid_empresa = \". $this->getUID();\n if( !$this->db->query($sql) ){ return $this->db->lastErrorString(); }\n\n //---- asignamos los que se han indicado en el formulario\n $inserts = array();\n $asignados = isset($_REQUEST[\"elementos-asignados\"]) ? $_REQUEST[\"elementos-asignados\"] : [];\n foreach ($asignados as $idCampoAsignado) {\n $inserts[] = \"(\". $this->getUID() .\", \". $idCampoAsignado .\")\";\n }\n\n if (!count($inserts)) return true;\n\n $sql = \"INSERT INTO \". TABLE_EMPRESA .\"_campo ( uid_empresa, uid_campo ) VALUES \". implode(\",\", $inserts);\n if( !$this->db->query($sql) ){ return $this->db->lastErrorString(); }\n\n //----- si todo va bien\n return true;\n }", "protected abstract function setFields();", "function asignar_valores2(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->telefono=$_POST['telefono'];\n\t\t$this->email=$_POST['email'];\n\t\t\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->modelo=$_POST['modelo'];\n\t\t$this->ano=$_POST['ano'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t}", "private function resetInputFields(){\n $this->nom = '';\n $this->departements_id = '';\n $this->arrondissement_id = '';\n }", "function asignar_valores(){\n\t\t$this->tabla=$_POST['tabla'];\n\t\t$this->pertenece=$_POST['pertenece'];\n\t\t$this->asunto=$_POST['asunto'];\n\t\t$this->descripcion=$_POST['contenido'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->hora=$_POST['hora'];\n\t\t$this->fechamod=$_POST['fechamod'];\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_asignatura('');\n $this->setId_situacion('');\n // la fecha debe estar antes del acta por si hay que usar la funcion inventarActa.\n $this->setF_acta('');\n $this->setActa('');\n $this->setDetalle('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setEpoca('');\n $this->setId_activ('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setTipo_acta('');\n $this->setPrimary_key($aPK);\n }", "public function presupuestoModificado(){\n $this->iPresupuestoModificado = $this->iPresupuestoInicial;\n $this->save();\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "private function resetInputFields()\n {\n $this->name = '';\n $this->code = '';\n $this->agency_id = '';\n\n $this->phone = '';\n $this->fax = '';\n\n $this->email = '';\n $this->address = '';\n $this->country = '';\n }", "function set_field($field,$edit=\"\",$view=\"\")\r\n {\r\n $userID = session::get(\"user\");\r\n \r\n if ($userID)\r\n {\r\n if (!right::get_field($field))\r\n database::query(\"INSERT INTO system SET name='$field',edit='$edit',view='$view'\");\r\n else\r\n database::query(\"UPDATE system SET edit='$edit',view='$view' WHERE name='$field'\");\r\n } \r\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "private function _set_fields()\n {\n @$this->form_data->question_id = 0;\n\n $this->form_data->category_id = 0;\n $this->form_data->sub_category_id = 0;\n $this->form_data->sub_two_category_id = 0;\n $this->form_data->sub_three_category_id = 0;\n $this->form_data->sub_four_category_id = 0;\n\n $this->form_data->ques_text = '';\n $this->form_data->survey_weight = '';\n $this->form_data->ques_type = '';\n $this->form_data->qus_fixed = 0;\n $this->form_data->ques_expiry_date = '';\n\n\n $this->form_data->filter_question = '';\n $this->form_data->filter_category = 0;\n $this->form_data->filter_type = '';\n $this->form_data->filter_expired = '';\n }", "function asignar_valores(){\n $this->nombre=$_POST['nombre'];\n $this->prioridad=$_POST['prioridad'];\n $this->etiqueta=$_POST['etiqueta'];\n $this->descripcion=$_POST['descripcion'];\n $this->claves=$_POST['claves'];\n $this->tipo=$_POST['tipo'];\n }", "function asignar_valores(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->cedula=$_POST['cedula'];\n\t\t$this->correo=$_POST['correo'];\n\t}", "private function resetInputFields(){\n $this->teacher_id = '';\n $this->lending_id = '';\n $this->note = '';\n $this->device_id = '';\n $this->org_id_1 = '';\n $this->org_id_2 = '';\n $this->lendingDate = '';\n $this->returnDate = '';\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->icono=$_POST['icono'];\n\t}", "private function setAutofillFields() {\n foreach (static::getFields() as $field_name => $field) {\n if ($field instanceof AutofillField) {\n $this->values[$field_name] = $field->fill();\n }\n }\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_enc('');\n $this->setId_nom('');\n $this->setModo('');\n $this->setF_ini('');\n $this->setF_fin('');\n $this->setId_nom_new('');\n $this->setPrimary_key($aPK);\n }", "private function _set_fields()\n {\n @$this->form_data->survey_id = 0;\n $this->form_data->survey_title = '';\n $this->form_data->survey_description = '';\n $this->form_data->survey_status = 'open';\n $this->form_data->survey_anms = 'yes';\n $this->form_data->survey_expiry_date = '';\n $this->form_data->question_ids = array();\n\n $this->form_data->filter_survey_title = '';\n $this->form_data->filter_status = '';\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->ativo = true;\n\t\t$this->tipo_acesso = 'M';\n\t\t$this->estado_civil = 'O';\n\t\t$this->nivel_acesso = '1';\n\t\t$this->usuario_validado = false;\n\t}", "public function atualizar()\n {\n //Executa o processo de validação\n $validacao = self::validar('update');\n\n //Verifica o status da validação do formulário\n //Se não houveram erros, insere no banco de dados\n //Caso contrário, informa ao usuário os erros de validação\n if($validacao)\n {\n //Obtem os dados do formulário preenchido\n $empresa = $this->input->post();\n\n //Obtem o id da empresa a ser atualizada\n $id = $empresa['id_empresa'];\n\n //Atualiza os dados da empresa a partir do seu id e retorna o status da operação\n $status = $this->EmpresasModel->atualizar($id, $empresa);\n\n //Checa o status da operação\n //Se bem sucedida, carrega a tela de visualizar a empresa \n //Caso contrário, informa ao usuário\n if(!$status){\n\t\t\t\t$this->session->set_flashdata('error', 'Não foi possível alterar as informações.');\n\t\t\t}else{\n //Consulta os dados da empresa que foi atualizada\n $resultado = $this->EmpresasModel->getById($id);\n $dados = array(\"empresaid\" => $resultado, \"success\" => 'Informações alteradas com sucesso.'); \n //Carrega a tela com os dados atualizados\n $this->load->view(\"Empresas/empresa\", $dados);\n\t\t\t}\n }\n else\n {\n\t\t\t$this->session->set_flashdata('error', validation_errors('<p>','</p>'));\n }\n //Carrega a página de alterar os dados da empresa com as informações atuais\n $dados['empresaid'] = $this->EmpresasModel->getById($id);\n $this->load->view(\"Empresas/altera\", $dados); \n }", "private function resetInputFields()\n {\n $this->agency_id = '';\n $this->state_id = '';\n $this->name = '';\n $this->logo = '';\n $this->email = '';\n $this->phone = '';\n $this->fax = '';\n $this->address = '';\n $this->facebook = '';\n $this->instagram = '';\n $this->youtube = '';\n $this->viber = '';\n $this->whatsapp = '';\n $this->url = '';\n }", "public function atualizar() {\n $query = '\n UPDATE tb_atividade \n set \n nome = :nome,\n qntd_part = :qntd_part,\n inscricao = :inscricao,\n valor = :valor,\n tipo = :tipo,\n carga_hr = :carga_hr,\n data_inicio = :data_inicio,\n data_fim = :data_fim\n WHERE\n id = :id\n ';\n\n $stmt = $this->conexao->prepare($query);\n $stmt->bindValue(':id', $_GET['id_att']);\n $stmt->bindValue(':nome', $this->atividade->__get('nome'));\n $stmt->bindValue(':qntd_part', $this->atividade->__get('qntd_part'));\n $stmt->bindValue(':inscricao', $this->atividade->__get('inscricao'));\n $stmt->bindValue(':valor', $this->atividade->__get('valor'));\n $stmt->bindValue(':tipo', $this->atividade->__get('tipo'));\n $stmt->bindValue(':carga_hr', $this->atividade->__get('carga_hr'));\n $stmt->bindValue(':data_inicio', $this->atividade->__get('data_inicio'));\n $stmt->bindValue(':data_fim', $this->atividade->__get('data_fim'));\n\n return $stmt->execute();\n }", "public function testUpdateExtraFields(): void { }", "protected function setupUpdateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n $readonly = [];\n if (User::min('id') !== backpack_user()->id) {\n $readonly = ['readonly' => 'readonly'];\n }\n\n CRUD::field('key')->type('text')->label('ID key')->attributes($readonly);\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('value')->type(CRUD::getCurrentEntry()->type)->label('Contenu');\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_activ('');\n $this->setId_asignatura('');\n $this->setId_nom('');\n $this->setId_nivel('');\n $this->setId_situacion('');\n $this->setPreceptor('');\n $this->setId_preceptor('');\n $this->setNota_num('');\n $this->setNota_max('');\n $this->setActa('');\n $this->setPrimary_key($aPK);\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "private function resetInputFields(){\n $this->name = '';\n $this->content = '';\n $this->todo_id = '';\n }", "public function prepAttributesForSave()\n\t{\n\t\t$attributes = $this->defineAttributes();\n\t\t$attributes['dateUpdated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\t\t$attributes['dateCreated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\n\t\tforeach ($attributes as $name => $config)\n\t\t{\n\t\t\t$config = ModelHelper::normalizeAttributeConfig($config);\n\t\t\t$value = $this->getAttribute($name);\n\n\t\t\t$this->setAttribute($name, ModelHelper::packageAttributeValue($config, $value, true));\n\t\t}\n\n\t\t// Populate dateCreated and uid if this is a new record\n\t\tif ($this->isNewRecord())\n\t\t{\n\t\t\t$this->dateCreated = DateTimeHelper::currentTimeForDb();\n\t\t\t$this->uid = StringHelper::UUID();\n\t\t}\n\n\t\t// Update the dateUpdated\n\t\t$this->dateUpdated = DateTimeHelper::currentTimeForDb();\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 dbSetVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->set($f,$this->$f);\n }\n\n }", "public function beforeSave() {\n\t\t\t\t\t\t\tif ($this->isNewRecord) {\n\t\t\t\t\t\t\t\t\t\t$this->usuario=Yii::app()->user->name;\n\t\t\t\t\t\t\t\t\t\t$this->creadoel=date(\"Y-m-d H:i:s\");\n\t\t\t\t\t\t\t\t $this->iduser=Yii::app()->user->id;\n\t\t\t\t\t\t\t\t\t\t$this->mes=substr($this->fechacontable,5,2);\n\t\t\t\t\t\t\t\t\t\t$this->ano=substr($this->fechacontable,0,4);\n\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn parent::beforeSave();\n\t\t\t\t}", "function updateField() {\n DATABASE::INIT_TABLE($this->database, $this->table);\n $fname = $this->urlParam('fname');\n $fvalue = $this->urlParam('fvalue');\n $id = $this->urlParam('id');\n DATABASE::UPDATE($this->table, [$fname], [$fvalue], $id);\n }", "protected function asignarCamposRelacionales() {\n foreach($this->campos as $nombre=>$campo) {\n if($campo->tipo!='relacional'||($campo->relacion!='1:1'&&$campo->relacion!='1:0')) continue;\n $columna=$campo->columna;\n if(is_object($this->consultaValores->$nombre)) {\n //Asignado como entidad u objeto anónimo\n $this->consultaValores->$columna=$this->consultaValores->$nombre->id;\n } elseif(is_array($this->consultaValores->$nombre)) {\n //Asignado como array\n $this->consultaValores->$columna=$this->consultaValores->$nombre['id'];\n }\n }\n }", "private function resetInputFields(){\n $this->title = '';\n $this->original_url = '';\n $this->platform_id = '';\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_situacion('');\n $this->setDescripcion('');\n $this->setSuperada('');\n $this->setBreve('');\n $this->setPrimary_key($aPK);\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->telefono=$_POST['telefono'];\n\t\t$this->email=$_POST['email'];\n\t\t\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->ano=$_POST['ano'];\n\t\t$this->valor_vehiculo=$_POST['valor_vehiculo'];\n\t\t$this->saldo=$_POST['saldo'];\n\t\t$this->valor_inicial=$_POST['valor_inicial'];\n\t\t$this->comision=$_POST['comision'];\n\t\t$this->plazo=$_POST['plazo'];\n\t\t$this->cuotas=$_POST['cuotas'];\n\t\t$this->total=$_POST['total'];\n\t}", "public function update($aluno){\n\t\t$campos = \"\";\n \n \n\t\t if(!empty($aluno->nome)) $campos .=' nome = ?,';\n\t\t if(!empty($aluno->endereco)) $campos .=' endereco = ?,';\n\t\t if(!empty($aluno->numero)) $campos .=' numero = ?,';\n\t\t if(!empty($aluno->bairro)) $campos .=' bairro = ?,';\n\t\t if(!empty($aluno->cidade)) $campos .=' cidade = ?,';\n\t\t if(!empty($aluno->nacionalidade)) $campos .=' nacionalidade = ?,';\n\t\t if(!empty($aluno->cep)) $campos .=' cep = ?,';\n\t\t if(!empty($aluno->uf)) $campos .=' uf = ?,';\n\t\t if(!empty($aluno->local)) $campos .=' local = ?,';\n\t\t if(!empty($aluno->complemento)) $campos .=' complemento = ?,';\n\t\t if(!empty($aluno->inep)) $campos .=' inep = ?,';\n\t\t if(!empty($aluno->ni)) $campos .=' nis = ?,';\n\t\t if(!empty($aluno->telefone)) $campos .=' telefone = ?,';\n\t\t if(!empty($aluno->celular)) $campos .=' celular = ?,';\n\t\t if(!empty($aluno->email)) $campos .=' email = ?,';\n\t\t if(!empty($aluno->peso)) $campos .=' peso = ?,';\n\t\t if(!empty($aluno->altura)) $campos .=' altura = ?,';\n\t\t if(!empty($aluno->raca)) $campos .=' raca = ?,';\n\t\t if(!empty($aluno->tipoDefic)) $campos .=' tipo_defic = ?,';\n\t\t if(!empty($aluno->tipoTranspEscolar)) $campos .=' tipo_transp_escolar = ?,';\n\t\t if(!empty($aluno->idEducCenso)) $campos .=' id_educ_censo = ?,';\n\t\t if(!empty($aluno->tipoUsoInternet)) $campos .=' tipo_uso_internet = ?,';\n\t\t if(!empty($aluno->sexo)) $campos .=' sexo = ?,';\n\t\t if(!empty($aluno->regNascimento)) $campos .=' reg_nascimento = ?,';\n\t\t if(!empty($aluno->regLivroNum)) $campos .=' reg_livro_num = ?,';\n\t\t if(!empty($aluno->regFolhaNum)) $campos .=' reg_folha_num = ?,';\n\t\t if(!empty($aluno->regComarca)) $campos .=' reg_comarca = ?,';\n\t\t if(!empty($aluno->rg)) $campos .=' rg = ?,';\n\t\t if(!empty($aluno->rgOrgao)) $campos .=' rg_orgao = ?,';\n\t\t if(!empty($aluno->rgDataExpedicao)) $campos .=' rg_data_expedicao = ?,';\n\t\t if(!empty($aluno->titulo)) $campos .=' titulo = ?,';\n\t\t if(!empty($aluno->tituloZona)) $campos .=' titulo_zona = ?,';\n\t\t if(!empty($aluno->tituloSecao)) $campos .=' titulo_secao = ?,';\n\t\t if(!empty($aluno->reservista)) $campos .=' reservista = ?,';\n\t\t if(!empty($aluno->reservistaSerie)) $campos .=' reservista_serie = ?,';\n\t\t if(!empty($aluno->reservistaNumero)) $campos .=' reservista_numero = ?,';\n\t\t if(!empty($aluno->reservistaCategNum)) $campos .=' reservista_categ_num = ?,';\n\t\t if(!empty($aluno->reservistaCsm)) $campos .=' reservista_csm = ?,';\n\t\t if(!empty($aluno->cartProf)) $campos .=' cart_prof = ?,';\n\t\t if(!empty($aluno->grupoSangue)) $campos .=' grupo_sangue = ?,';\n\t\t if(!empty($aluno->grupoSangueRh)) $campos .=' grupo_sangue_rh = ?,';\n\t\t if(!empty($aluno->grupoSangueAlergia)) $campos .=' grupo_sangue_alergia = ?,';\n\t\t if(!empty($aluno->grupoSangueDiabetico)) $campos .=' grupo_sangue_diabetico = ?,';\n\t\t if(!empty($aluno->outraDoenca)) $campos .=' outra_doenca = ?,';\n\t\t if(!empty($aluno->familiaComposta)) $campos .=' familia_composta = ?,';\n\t\t if(!empty($aluno->estadoCivil)) $campos .=' estado_civil = ?,';\n\t\t if(!empty($aluno->usaOculo)) $campos .=' usa_oculos = ?,';\n\t\t if(!empty($aluno->destro)) $campos .=' destro = ?,';\n\t\t if(!empty($aluno->convenio)) $campos .=' convenio = ?,';\n\t\t if(!empty($aluno->nomePai)) $campos .=' nome_pai = ?,';\n\t\t if(!empty($aluno->paiVivo)) $campos .=' pai_vivo = ?,';\n\t\t if(!empty($aluno->paiNacionalidade)) $campos .=' pai_nacionalidade = ?,';\n\t\t if(!empty($aluno->paiNaturalidade)) $campos .=' pai_naturalidade = ?,';\n\t\t if(!empty($aluno->paiNivEscolar)) $campos .=' pai_niv_escolar = ?,';\n\t\t if(!empty($aluno->paiReligiao)) $campos .=' pai_religiao = ?,';\n\t\t if(!empty($aluno->paiProfissao)) $campos .=' pai_profissao = ?,';\n\t\t if(!empty($aluno->paiEnderTrab)) $campos .=' pai_ender_trab = ?,';\n\t\t if(!empty($aluno->paiTelefone)) $campos .=' pai_telefone = ?,';\n\t\t if(!empty($aluno->paiEmail)) $campos .=' pai_email = ?,';\n\t\t if(!empty($aluno->paiTitulo)) $campos .=' pai_titulo = ?,';\n\t\t if(!empty($aluno->paiTituloZona)) $campos .=' pai_titulo_zona = ?,';\n\t\t if(!empty($aluno->paiTituloSecao)) $campos .=' pai_titulo_secao = ?,';\n\t\t if(!empty($aluno->nomeMae)) $campos .=' nome_mae = ?,';\n\t\t if(!empty($aluno->maeViva)) $campos .=' mae_viva = ?,';\n\t\t if(!empty($aluno->maeNacionalidade)) $campos .=' mae_nacionalidade = ?,';\n\t\t if(!empty($aluno->maeNaturalidade)) $campos .=' mae_naturalidade = ?,';\n\t\t if(!empty($aluno->maeNivEscolar)) $campos .=' mae_niv_escolar = ?,';\n\t\t if(!empty($aluno->maeReligiao)) $campos .=' mae_religiao = ?,';\n\t\t if(!empty($aluno->maeProfissao)) $campos .=' mae_profissao = ?,';\n\t\t if(!empty($aluno->maeEnderTrab)) $campos .=' mae_ender_trab = ?,';\n\t\t if(!empty($aluno->maeTelefone)) $campos .=' mae_telefone = ?,';\n\t\t if(!empty($aluno->maeEmail)) $campos .=' mae_email = ?,';\n\t\t if(!empty($aluno->maeTitulo)) $campos .=' mae_titulo = ?,';\n\t\t if(!empty($aluno->maeTituloZona)) $campos .=' mae_titulo_zona = ?,';\n\t\t if(!empty($aluno->maeTituloSecao)) $campos .=' mae_titulo_secao = ?,';\n\t\t if(!empty($aluno->maeNi)) $campos .=' mae_nis = ?,';\n\t\t if(!empty($aluno->paiNi)) $campos .=' pai_nis = ?,';\n\t\t if(!empty($aluno->nomeResponsavel)) $campos .=' nome_responsavel = ?,';\n\t\t if(!empty($aluno->parentescoResponsavel)) $campos .=' parentesco_responsavel = ?,';\n\t\t if(!empty($aluno->nacionalResponsavel)) $campos .=' nacional_responsavel = ?,';\n\t\t if(!empty($aluno->naturalResponsavel)) $campos .=' natural_responsavel = ?,';\n\t\t if(!empty($aluno->nivEscolarResponsavel)) $campos .=' niv_escolar_responsavel = ?,';\n\t\t if(!empty($aluno->religiaoResponsavel)) $campos .=' religiao_responsavel = ?,';\n\t\t if(!empty($aluno->profissaoResponsavel)) $campos .=' profissao_responsavel = ?,';\n\t\t if(!empty($aluno->enderTrabResponsavel)) $campos .=' ender_trab_responsavel = ?,';\n\t\t if(!empty($aluno->telefResponsavel)) $campos .=' telef_responsavel = ?,';\n\t\t if(!empty($aluno->emailResponsavel)) $campos .=' email_responsavel = ?,';\n\t\t if(!empty($aluno->tituloResponsavel)) $campos .=' titulo_responsavel = ?,';\n\t\t if(!empty($aluno->tituloZonaResponsavel)) $campos .=' titulo_zona_responsavel = ?,';\n\t\t if(!empty($aluno->tituloSecaoResponsavel)) $campos .=' titulo_secao_responsavel = ?,';\n\t\t if(!empty($aluno->descriTranspEscolar)) $campos .=' descri_transp_escolar = ?,';\n\t\t if(!empty($aluno->paiUf)) $campos .=' pai_uf = ?,';\n\t\t if(!empty($aluno->maeUf)) $campos .=' mae_uf = ?,';\n\t\t if(!empty($aluno->responsavelUf)) $campos .=' responsavel_uf = ?,';\n\t\t if(!empty($aluno->dataNascimento)) $campos .=' data_nascimento = ?,';\n\t\t if(!empty($aluno->ufRegComarca)) $campos .=' uf_reg_comarca = ?,';\n\t\t if(!empty($aluno->cpfAluno)) $campos .=' cpf_aluno = ?,';\n\t\t if(!empty($aluno->cpfPai)) $campos .=' cpf_pai = ?,';\n\t\t if(!empty($aluno->cpfMae)) $campos .=' cpf_mae = ?,';\n\t\t if(!empty($aluno->cpfResponsavel)) $campos .=' cpf_responsavel = ?,';\n\t\t if(!empty($aluno->codUf)) $campos .=' cod_uf = ?,';\n\t\t if(!empty($aluno->codCidade)) $campos .=' cod_cidade = ?,';\n\t\t if(!empty($aluno->codPai)) $campos .=' cod_pais = ?,';\n\t\t if(!empty($aluno->created)) $campos .=' created = ?,';\n\t\t if(!empty($aluno->status)) $campos .=' status = ?,';\n\t\t if(!empty($aluno->senha)) $campos .=' senha = ?,';\n\t\t if(!empty($aluno->foto)) $campos .=' foto = ?,';\n\t\t if(!empty($aluno->colaboraRendaFamiliar)) $campos .=' colabora_renda_familiar = ?,';\n\n \n $campos = substr($campos,0,-1);\n \n $sql = 'UPDATE aluno SET '.$campos.' WHERE id = ?';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t\n\t\t if(!empty($aluno->nome)) \t\t$sqlQuery->set($aluno->nome);\n\t\t if(!empty($aluno->endereco)) \t\t$sqlQuery->set($aluno->endereco);\n\t\t if(!empty($aluno->numero)) \t\t$sqlQuery->set($aluno->numero);\n\t\t if(!empty($aluno->bairro)) \t\t$sqlQuery->set($aluno->bairro);\n\t\t if(!empty($aluno->cidade)) \t\t$sqlQuery->set($aluno->cidade);\n\t\t if(!empty($aluno->nacionalidade)) \t\t$sqlQuery->set($aluno->nacionalidade);\n\t\t if(!empty($aluno->cep)) \t\t$sqlQuery->set($aluno->cep);\n\t\t if(!empty($aluno->uf)) \t\t$sqlQuery->set($aluno->uf);\n\t\t if(!empty($aluno->local)) \t\t$sqlQuery->set($aluno->local);\n\t\t if(!empty($aluno->complemento)) \t\t$sqlQuery->set($aluno->complemento);\n\t\t if(!empty($aluno->inep)) \t\t$sqlQuery->set($aluno->inep);\n\t\t if(!empty($aluno->ni)) \t\t$sqlQuery->set($aluno->ni);\n\t\t if(!empty($aluno->telefone)) \t\t$sqlQuery->set($aluno->telefone);\n\t\t if(!empty($aluno->celular)) \t\t$sqlQuery->set($aluno->celular);\n\t\t if(!empty($aluno->email)) \t\t$sqlQuery->set($aluno->email);\n\t\t if(!empty($aluno->peso)) \t\t$sqlQuery->set($aluno->peso);\n\t\t if(!empty($aluno->altura)) \t\t$sqlQuery->set($aluno->altura);\n\t\t if(!empty($aluno->raca)) \t\t$sqlQuery->set($aluno->raca);\n\t\t if(!empty($aluno->tipoDefic)) \t\t$sqlQuery->set($aluno->tipoDefic);\n\t\t if(!empty($aluno->tipoTranspEscolar)) \t\t$sqlQuery->set($aluno->tipoTranspEscolar);\n\t\t if(!empty($aluno->idEducCenso)) \t\t$sqlQuery->set($aluno->idEducCenso);\n\t\t if(!empty($aluno->tipoUsoInternet)) \t\t$sqlQuery->set($aluno->tipoUsoInternet);\n\t\t if(!empty($aluno->sexo)) \t\t$sqlQuery->set($aluno->sexo);\n\t\t if(!empty($aluno->regNascimento)) \t\t$sqlQuery->set($aluno->regNascimento);\n\t\t if(!empty($aluno->regLivroNum)) \t\t$sqlQuery->set($aluno->regLivroNum);\n\t\t if(!empty($aluno->regFolhaNum)) \t\t$sqlQuery->set($aluno->regFolhaNum);\n\t\t if(!empty($aluno->regComarca)) \t\t$sqlQuery->set($aluno->regComarca);\n\t\t if(!empty($aluno->rg)) \t\t$sqlQuery->set($aluno->rg);\n\t\t if(!empty($aluno->rgOrgao)) \t\t$sqlQuery->set($aluno->rgOrgao);\n\t\t if(!empty($aluno->rgDataExpedicao)) \t\t$sqlQuery->set($aluno->rgDataExpedicao);\n\t\t if(!empty($aluno->titulo)) \t\t$sqlQuery->set($aluno->titulo);\n\t\t if(!empty($aluno->tituloZona)) \t\t$sqlQuery->set($aluno->tituloZona);\n\t\t if(!empty($aluno->tituloSecao)) \t\t$sqlQuery->set($aluno->tituloSecao);\n\t\t if(!empty($aluno->reservista)) \t\t$sqlQuery->set($aluno->reservista);\n\t\t if(!empty($aluno->reservistaSerie)) \t\t$sqlQuery->set($aluno->reservistaSerie);\n\t\t if(!empty($aluno->reservistaNumero)) \t\t$sqlQuery->set($aluno->reservistaNumero);\n\t\t if(!empty($aluno->reservistaCategNum)) \t\t$sqlQuery->set($aluno->reservistaCategNum);\n\t\t if(!empty($aluno->reservistaCsm)) \t\t$sqlQuery->set($aluno->reservistaCsm);\n\t\t if(!empty($aluno->cartProf)) \t\t$sqlQuery->set($aluno->cartProf);\n\t\t if(!empty($aluno->grupoSangue)) \t\t$sqlQuery->set($aluno->grupoSangue);\n\t\t if(!empty($aluno->grupoSangueRh)) \t\t$sqlQuery->set($aluno->grupoSangueRh);\n\t\t if(!empty($aluno->grupoSangueAlergia)) \t\t$sqlQuery->set($aluno->grupoSangueAlergia);\n\t\t if(!empty($aluno->grupoSangueDiabetico)) \t\t$sqlQuery->set($aluno->grupoSangueDiabetico);\n\t\t if(!empty($aluno->outraDoenca)) \t\t$sqlQuery->set($aluno->outraDoenca);\n\t\t if(!empty($aluno->familiaComposta)) \t\t$sqlQuery->set($aluno->familiaComposta);\n\t\t if(!empty($aluno->estadoCivil)) \t\t$sqlQuery->set($aluno->estadoCivil);\n\t\t if(!empty($aluno->usaOculo)) \t\t$sqlQuery->set($aluno->usaOculo);\n\t\t if(!empty($aluno->destro)) \t\t$sqlQuery->set($aluno->destro);\n\t\t if(!empty($aluno->convenio)) \t\t$sqlQuery->set($aluno->convenio);\n\t\t if(!empty($aluno->nomePai)) \t\t$sqlQuery->set($aluno->nomePai);\n\t\t if(!empty($aluno->paiVivo)) \t\t$sqlQuery->set($aluno->paiVivo);\n\t\t if(!empty($aluno->paiNacionalidade)) \t\t$sqlQuery->set($aluno->paiNacionalidade);\n\t\t if(!empty($aluno->paiNaturalidade)) \t\t$sqlQuery->set($aluno->paiNaturalidade);\n\t\t if(!empty($aluno->paiNivEscolar)) \t\t$sqlQuery->set($aluno->paiNivEscolar);\n\t\t if(!empty($aluno->paiReligiao)) \t\t$sqlQuery->set($aluno->paiReligiao);\n\t\t if(!empty($aluno->paiProfissao)) \t\t$sqlQuery->set($aluno->paiProfissao);\n\t\t if(!empty($aluno->paiEnderTrab)) \t\t$sqlQuery->set($aluno->paiEnderTrab);\n\t\t if(!empty($aluno->paiTelefone)) \t\t$sqlQuery->set($aluno->paiTelefone);\n\t\t if(!empty($aluno->paiEmail)) \t\t$sqlQuery->set($aluno->paiEmail);\n\t\t if(!empty($aluno->paiTitulo)) \t\t$sqlQuery->set($aluno->paiTitulo);\n\t\t if(!empty($aluno->paiTituloZona)) \t\t$sqlQuery->set($aluno->paiTituloZona);\n\t\t if(!empty($aluno->paiTituloSecao)) \t\t$sqlQuery->set($aluno->paiTituloSecao);\n\t\t if(!empty($aluno->nomeMae)) \t\t$sqlQuery->set($aluno->nomeMae);\n\t\t if(!empty($aluno->maeViva)) \t\t$sqlQuery->set($aluno->maeViva);\n\t\t if(!empty($aluno->maeNacionalidade)) \t\t$sqlQuery->set($aluno->maeNacionalidade);\n\t\t if(!empty($aluno->maeNaturalidade)) \t\t$sqlQuery->set($aluno->maeNaturalidade);\n\t\t if(!empty($aluno->maeNivEscolar)) \t\t$sqlQuery->set($aluno->maeNivEscolar);\n\t\t if(!empty($aluno->maeReligiao)) \t\t$sqlQuery->set($aluno->maeReligiao);\n\t\t if(!empty($aluno->maeProfissao)) \t\t$sqlQuery->set($aluno->maeProfissao);\n\t\t if(!empty($aluno->maeEnderTrab)) \t\t$sqlQuery->set($aluno->maeEnderTrab);\n\t\t if(!empty($aluno->maeTelefone)) \t\t$sqlQuery->set($aluno->maeTelefone);\n\t\t if(!empty($aluno->maeEmail)) \t\t$sqlQuery->set($aluno->maeEmail);\n\t\t if(!empty($aluno->maeTitulo)) \t\t$sqlQuery->set($aluno->maeTitulo);\n\t\t if(!empty($aluno->maeTituloZona)) \t\t$sqlQuery->set($aluno->maeTituloZona);\n\t\t if(!empty($aluno->maeTituloSecao)) \t\t$sqlQuery->set($aluno->maeTituloSecao);\n\t\t if(!empty($aluno->maeNi)) \t\t$sqlQuery->set($aluno->maeNi);\n\t\t if(!empty($aluno->paiNi)) \t\t$sqlQuery->set($aluno->paiNi);\n\t\t if(!empty($aluno->nomeResponsavel)) \t\t$sqlQuery->set($aluno->nomeResponsavel);\n\t\t if(!empty($aluno->parentescoResponsavel)) \t\t$sqlQuery->set($aluno->parentescoResponsavel);\n\t\t if(!empty($aluno->nacionalResponsavel)) \t\t$sqlQuery->set($aluno->nacionalResponsavel);\n\t\t if(!empty($aluno->naturalResponsavel)) \t\t$sqlQuery->set($aluno->naturalResponsavel);\n\t\t if(!empty($aluno->nivEscolarResponsavel)) \t\t$sqlQuery->set($aluno->nivEscolarResponsavel);\n\t\t if(!empty($aluno->religiaoResponsavel)) \t\t$sqlQuery->set($aluno->religiaoResponsavel);\n\t\t if(!empty($aluno->profissaoResponsavel)) \t\t$sqlQuery->set($aluno->profissaoResponsavel);\n\t\t if(!empty($aluno->enderTrabResponsavel)) \t\t$sqlQuery->set($aluno->enderTrabResponsavel);\n\t\t if(!empty($aluno->telefResponsavel)) \t\t$sqlQuery->set($aluno->telefResponsavel);\n\t\t if(!empty($aluno->emailResponsavel)) \t\t$sqlQuery->set($aluno->emailResponsavel);\n\t\t if(!empty($aluno->tituloResponsavel)) \t\t$sqlQuery->set($aluno->tituloResponsavel);\n\t\t if(!empty($aluno->tituloZonaResponsavel)) \t\t$sqlQuery->set($aluno->tituloZonaResponsavel);\n\t\t if(!empty($aluno->tituloSecaoResponsavel)) \t\t$sqlQuery->set($aluno->tituloSecaoResponsavel);\n\t\t if(!empty($aluno->descriTranspEscolar)) \t\t$sqlQuery->set($aluno->descriTranspEscolar);\n\t\t if(!empty($aluno->paiUf)) \t\t$sqlQuery->set($aluno->paiUf);\n\t\t if(!empty($aluno->maeUf)) \t\t$sqlQuery->set($aluno->maeUf);\n\t\t if(!empty($aluno->responsavelUf)) \t\t$sqlQuery->set($aluno->responsavelUf);\n\t\t if(!empty($aluno->dataNascimento)) \t\t$sqlQuery->set($aluno->dataNascimento);\n\t\t if(!empty($aluno->ufRegComarca)) \t\t$sqlQuery->set($aluno->ufRegComarca);\n\t\t if(!empty($aluno->cpfAluno)) \t\t$sqlQuery->set($aluno->cpfAluno);\n\t\t if(!empty($aluno->cpfPai)) \t\t$sqlQuery->set($aluno->cpfPai);\n\t\t if(!empty($aluno->cpfMae)) \t\t$sqlQuery->set($aluno->cpfMae);\n\t\t if(!empty($aluno->cpfResponsavel)) \t\t$sqlQuery->set($aluno->cpfResponsavel);\n\t\t if(!empty($aluno->codUf)) \t\t$sqlQuery->set($aluno->codUf);\n\t\t if(!empty($aluno->codCidade)) \t\t$sqlQuery->set($aluno->codCidade);\n\t\t if(!empty($aluno->codPai)) \t\t$sqlQuery->set($aluno->codPai);\n\t\t if(!empty($aluno->created)) \t\t$sqlQuery->set($aluno->created);\n\t\t if(!empty($aluno->status)) \t\t$sqlQuery->set($aluno->status);\n\t\t if(!empty($aluno->senha)) \t\t$sqlQuery->set($aluno->senha);\n\t\t if(!empty($aluno->foto)) \t\t$sqlQuery->set($aluno->foto);\n\t\t if(!empty($aluno->colaboraRendaFamiliar)) \t\t$sqlQuery->set($aluno->colaboraRendaFamiliar);\n\n\t\t$sqlQuery->setNumber($aluno->id);\n\t\treturn $this->executeUpdate($sqlQuery);\n\t}", "function asignar_valores(){\n\t\t$this->codigo=$_POST['codigo'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->hotel=$_POST['hoteles'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->lugar=$_POST['lugar'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->detal=$_POST['detal'];\n\t\t$this->mayor=$_POST['mayor'];\n\t\t$this->limite=$_POST['limite'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->segmento=$_POST['segmento'];\n\t\t$this->principal=$_POST['principal'];\n\t\t\n\t\t\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setId_tarifa('');\n $this->setYear('');\n $this->setCantidad('');\n $this->setObserv('');\n $this->setId_serie('');\n $this->setPrimary_key($aPK);\n }", "protected function setDbalInputFieldsToRender() {}", "public static function setters();", "private function addAtrributesToCRUD() {\r\n if (!empty($this->__attributes)) {\r\n $this->myCRUD()->setAtributes($this->__attributes);\r\n }\r\n }", "protected function prepareForValidation()\n {\n $this->merge([\n 'nome' => $this->nome,\n 'nascimento' => convertDateToDatabase($this->nascimento),\n 'cpf' => returnOnlyNumbers($this->cpf),\n 'email' => $this->email,\n ]);\n }", "public function atualizar(){\r\n return (new Database('atividades'))->update('id = '.$this->id,[\r\n 'titulo' => $this->titulo,\r\n 'descricao' => $this->descricao,\r\n 'ativo' => $this->ativo,\r\n 'data' => $this->data\r\n ]);\r\n }", "function _prep_for_form($field)\r\n\t{\r\n\t\t$this->{$field} = $this->form_validation->prep_for_form($this->{$field});\r\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setF_gasto('');\n $this->setTipo('');\n $this->setCantidad('');\n $this->setPrimary_key($aPK);\n }", "protected function prepareForValidation(): void\n {\n // $this->merge([\n // 'created_by' => Auth::user()->id\n // ]);\n // $this->merge([\n // 'updated_by' => Auth::user()->id\n // ]);\n\n // $this->merge([\n // 'status' => 'Active',\n // 'name' => $this->input('display_name'),\n // 'password' => ''\n // ]);\n\n\n // $this->merge([\n // 'slug' => str_slug($this->input('title'))\n // ]);\n // $this->merge([\n // 'posted_at' => Carbon::parse($this->input('posted_at'))\n // ]);\n }", "function asignar_valores3(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->temporada=$_POST['temporada'];\n\t\t$this->nombre=$_POST['nombre_plan'];\n\t\t$this->descripcion=$_POST['descripcion_plan'];\n\t\t$this->precio=$_POST['precio_plan'];\n\t\t$this->maxadultos=$_POST['maxadultos'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t}", "function asignar_valores2(){\n\t\t/* Metodo para recibir valores del exterior. */\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->desde=$_POST['desde'];\n\t\t$this->hasta=$_POST['hasta'];\n\t\t$this->titulo=$_POST['titulo'];\n\t\t$this->alternativo=$_POST['alternativo'];\n\t\t$this->paxadicional=$_POST['paxadicional'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t\t$this->desde_a=$_POST['desde_a'];\n\t\t$this->hasta_a=$_POST['hasta_a'];\n\t\t$this->precio_a=$_POST['precio_a'];\n\t\t$this->desde_b=$_POST['desde_b'];\n\t\t$this->hasta_b=$_POST['hasta_b'];\n\t\t$this->precio_b=$_POST['precio_b'];\n\t\t\n\t}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed222_i_codigo = ($this->ed222_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_codigo\"]:$this->ed222_i_codigo);\n $this->ed222_i_itinerario = ($this->ed222_i_itinerario == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_itinerario\"]:$this->ed222_i_itinerario);\n $this->ed222_i_escolaproc = ($this->ed222_i_escolaproc == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_escolaproc\"]:$this->ed222_i_escolaproc);\n }else{\n $this->ed222_i_codigo = ($this->ed222_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed222_i_codigo\"]:$this->ed222_i_codigo);\n }\n }", "public function postHydrate(): void\n {\n if ('invalid' === $this->value) {\n $this->value = 'valid';\n }\n }", "function after_validation_on_update() {}", "public function setAttributes()\n\t{\n\t\t$this->title \t\t= Input::get( 'title' );\n\t\t$this->description \t= Input::get( 'description' );\n\t\t$this->color \t\t= Input::get( 'color' );\n\t\t$this->type \t\t= Input::get( 'type' );\n\t\t$this->canvas_id\t= Input::get( 'canvas_id', Input::get( 'canvasId' ) );\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_region('');\n $this->setRegion('');\n $this->setNombre_region('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "public function actualiza($dataArray){\n //deleted, created_at y updated_at son comunes, pero estos jamas se actualizaran por acá\n if (array_key_exists('fechaNac',$dataArray))\n $dataArray['fechaNac'] = DateFormat::spanishDateToEnglishDate($dataArray['fechaNac']);\n if (array_key_exists('password',$dataArray))\n $dataArray['password'] = bcrypt($dataArray['password']);\n $this->personaNatural->update($dataArray);\n $this->model->update($dataArray); //set data only in its PersonaNatural model\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed03_i_codigo = ($this->ed03_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_codigo\"]:$this->ed03_i_codigo);\n $this->ed03_i_rechumanoativ = ($this->ed03_i_rechumanoativ == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_rechumanoativ\"]:$this->ed03_i_rechumanoativ);\n $this->ed03_i_relacaotrabalho = ($this->ed03_i_relacaotrabalho == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_relacaotrabalho\"]:$this->ed03_i_relacaotrabalho);\n }else{\n $this->ed03_i_codigo = ($this->ed03_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed03_i_codigo\"]:$this->ed03_i_codigo);\n }\n }", "function setInputValues()\n {\n // Set input type based on GET/POST\n $inputType = ($_SERVER['REQUEST_METHOD'] === 'POST') ? INPUT_POST : INPUT_GET;\n // Init global variables\n global $typeID, $classID, $makeID, $price, $model, $year;\n global $sort, $sortDirection;\n // Set each variable, escape special characters\n $typeID = filter_input($inputType, 'typeID', FILTER_VALIDATE_INT);\n $classID = filter_input($inputType, 'classID', FILTER_VALIDATE_INT);\n $makeID = filter_input($inputType, 'makeID', FILTER_VALIDATE_INT);\n $sort = filter_input($inputType, 'sort', FILTER_VALIDATE_INT);\n $sortDirection = filter_input($inputType, 'sortDirection', FILTER_VALIDATE_INT);\n $price = filter_input($inputType, 'price', FILTER_VALIDATE_INT);\n $year = filter_input($inputType, 'year', FILTER_VALIDATE_INT);\n $model = htmlspecialchars(filter_input($inputType, 'model'));\n }", "public function setModelDefaults() \n {\n if (!empty($this->model->defaultFieldValues())) {\n \n foreach($this->model->defaultFieldValues() as $field => $defaultValue) {\n\n $this->model->$field = $defaultValue;\n }\n } \n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->c64_codpla = ($this->c64_codpla == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_codpla\"]:$this->c64_codpla);\n $this->c64_estrut = ($this->c64_estrut == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_estrut\"]:$this->c64_estrut);\n $this->c64_descr = ($this->c64_descr == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_descr\"]:$this->c64_descr);\n }else{\n $this->c64_codpla = ($this->c64_codpla == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"c64_codpla\"]:$this->c64_codpla);\n }\n }", "public function _set_model_fields(){\n // set fields only when they have not been set for this object\n if($this->_fields_loaded===FALSE){\n\n foreach ($this->_meta() as $meta) {\n\n $this->{$meta->name} = '';\n }\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed77_i_codigo = ($this->ed77_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_codigo\"]:$this->ed77_i_codigo);\n $this->ed77_i_base = ($this->ed77_i_base == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_base\"]:$this->ed77_i_base);\n $this->ed77_i_escola = ($this->ed77_i_escola == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_escola\"]:$this->ed77_i_escola);\n $this->ed77_i_basecont = ($this->ed77_i_basecont == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_basecont\"]:$this->ed77_i_basecont);\n }else{\n $this->ed77_i_codigo = ($this->ed77_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed77_i_codigo\"]:$this->ed77_i_codigo);\n }\n }", "public function atualizar($oficina){\r\n\t\t$sql = 'UPDATE oficina SET id = :id, nome = :nome, data = :data, carga_horaria = :carga_horaria, horario = :horario, id_evento = :id_evento, tipo = :tipo, vagas = :vagas WHERE id = :id';\r\n\t\t$consulta = $conexao->prepare($sql);\r\n\t\t$consulta->bindValue(':id',$oficina->getId()); \n\r\t\t$consulta->bindValue(':nome',$oficina->getNome()); \n\r\t\t$consulta->bindValue(':data',$oficina->getData()); \n\r\t\t$consulta->bindValue(':carga_horaria',$oficina->getCarga_horaria()); \n\r\t\t$consulta->bindValue(':horario',$oficina->getHorario()); \n\r\t\t$consulta->bindValue(':id_evento',$oficina->getId_evento()); \n\r\t\t$consulta->bindValue(':tipo',$oficina->getTipo()); \n\r\t\t$consulta->bindValue(':vagas',$oficina->getVagas()); \r\n\t\t$consulta->execute();\r\n\t}", "function before_validation_on_update() {}", "protected function editar()\n {\n }", "public function onBeforeWrite()\n {\n foreach (self::$defaults as $field => $value) {\n if (empty($this->$field)) {\n $this->$field = $value;\n }\n }\n //TODO: prevent non-heirarichal entries, eg country = '*', then state = 'blah'\n parent::onBeforeWrite();\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->fa35_i_codigo = ($this->fa35_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_codigo\"]:$this->fa35_i_codigo);\n $this->fa35_i_listacontrolado = ($this->fa35_i_listacontrolado == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_listacontrolado\"]:$this->fa35_i_listacontrolado);\n $this->fa35_i_medanvisa = ($this->fa35_i_medanvisa == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_medanvisa\"]:$this->fa35_i_medanvisa);\n }else{\n $this->fa35_i_codigo = ($this->fa35_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"fa35_i_codigo\"]:$this->fa35_i_codigo);\n }\n }", "public function beforeValidation() {\n\t\t$this->modified = new RawValue('now()');\n\t}", "public function beforeSave()\n {\n $value = $this->getValue();\n $value = $this->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "public function setFielda($campos) {\n $fields = $this->separate($campos[0]);\n\n # Get the query based in filters\n $this->checkFields($fields);\n # If exists two type fields, check table\n $this->checkTable($campos[1]);\n # Check type of data\n $this->checkType();\n}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->tr20_id = ($this->tr20_id == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_id\"]:$this->tr20_id);\n if($this->tr20_dtalvara == \"\"){\n $this->tr20_dtalvara_dia = ($this->tr20_dtalvara_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_dtalvara_dia\"]:$this->tr20_dtalvara_dia);\n $this->tr20_dtalvara_mes = ($this->tr20_dtalvara_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_dtalvara_mes\"]:$this->tr20_dtalvara_mes);\n $this->tr20_dtalvara_ano = ($this->tr20_dtalvara_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_dtalvara_ano\"]:$this->tr20_dtalvara_ano);\n if($this->tr20_dtalvara_dia != \"\"){\n $this->tr20_dtalvara = $this->tr20_dtalvara_ano.\"-\".$this->tr20_dtalvara_mes.\"-\".$this->tr20_dtalvara_dia;\n }\n }\n $this->tr20_numcgm = ($this->tr20_numcgm == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_numcgm\"]:$this->tr20_numcgm);\n $this->tr20_ruaid = ($this->tr20_ruaid == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_ruaid\"]:$this->tr20_ruaid);\n $this->tr20_nro = ($this->tr20_nro == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_nro\"]:$this->tr20_nro);\n $this->tr20_bairroid = ($this->tr20_bairroid == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_bairroid\"]:$this->tr20_bairroid);\n $this->tr20_complem = ($this->tr20_complem == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_complem\"]:$this->tr20_complem);\n $this->tr20_fone = ($this->tr20_fone == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_fone\"]:$this->tr20_fone);\n $this->tr20_prefixo = ($this->tr20_prefixo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_prefixo\"]:$this->tr20_prefixo);\n }else{\n $this->tr20_id = ($this->tr20_id == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"tr20_id\"]:$this->tr20_id);\n }\n }", "function SeteoCampos(){\n\t\t// Campos que van en en detalle, deben empezar su nombre con 'C'\n\t\t$this->addField('C1', 99999,\t0, 15);\n $this->addField('C2', 99999,\t0, 15);\n $this->addField('C3', 99999,\t0, 40);\t\t\n $this->addField('C4', 99999,\t0, 65);\t\t\n $this->addField('C5', 99999,\t0, 40);\n $this->addField('C6', 99999,\t0, 25);\t\t\n $this->addField('C7', 99999,\t0, 65);\t\t\n\t\t\n\t\t$this->addField('HG1', 0,\t0,\t160);\n\t\t\t\t\n\t}", "protected function prepareForValidation()\n {\n\n $attrs = $this->all();\n $attrs['day'] = ucfirst($attrs['day']);\n $hours = $this->transformHoursAndMinutes();\n $attrs['time_start'] = $hours[0];\n $attrs['time_end'] = $hours[1];\n $this->replace($attrs);\n }", "public function atualiza($aluno){\n\t\t\t$sql = \"UPDATE aluno SET nome=:nome,turma=:turma,telefone=:telefone,cidade=:cidade,bairro=:bairro,rua=:rua,numero_casa=:numero_casa,complementos=:complementos WHERE id=:id\";\n\n\t\t\t$query = $this->conexao->prepare($sql);\n\n\t\t\t$query->execute(['nome'=>$aluno->getNome(),'turma'=>$aluno->getTurma(),'telefone'=>$aluno->getTelefone(), 'cidade'=>$aluno->getCidade(), 'bairro'=>$aluno->getBairro(), 'rua'=>$aluno->getRua(), 'numero_casa'=>$aluno->getNumeroCasa(), 'complementos'=>$aluno->getComplementos(), 'id'=>$aluno->getId()]);\n\n\t\t}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed276_i_codigo = ($this->ed276_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_i_codigo\"]:$this->ed276_i_codigo);\n $this->ed276_i_alunoalt = ($this->ed276_i_alunoalt == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_i_alunoalt\"]:$this->ed276_i_alunoalt);\n $this->ed276_c_campo = ($this->ed276_c_campo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_c_campo\"]:$this->ed276_c_campo);\n $this->ed276_c_contant = ($this->ed276_c_contant == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_c_contant\"]:$this->ed276_c_contant);\n $this->ed276_c_contatual = ($this->ed276_c_contatual == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_c_contatual\"]:$this->ed276_c_contatual);\n }else{\n $this->ed276_i_codigo = ($this->ed276_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed276_i_codigo\"]:$this->ed276_i_codigo);\n }\n }", "function save_user_fields ($user_id) {\n if ( isset($_POST['billing_first_name']) ){\n update_user_meta($user_id, 'billing_first_name', sanitize_text_field($_POST['billing_first_name']));\n }\n \n if ( isset($_POST['billing_last_name']) ){\n update_user_meta($user_id, 'billing_last_name', sanitize_text_field($_POST['billing_last_name']));\n }\n\n if ( isset($_POST['billing_tipo_documento']) ){\n update_user_meta($user_id, 'billing_tipo_documento', sanitize_text_field($_POST['billing_tipo_documento']));\n }\n\n if ( isset($_POST['billing_numero_documento']) ){\n update_user_meta($user_id, 'billing_numero_documento', sanitize_text_field($_POST['billing_numero_documento']));\n }\n \n}", "private function setupFieldsAttributes() {\n\n\t\tforeach ( $this->form as $field ) {\n\n\t\t\tif ( ! $field->hasAttribute( 'id' ) ) {\n\t\t\t\t$field->setAttribute( 'id', esc_attr( sanitize_title( $field->getName() ) ) );\n\t\t\t}\n\t\t}\n\n\t}", "function save() {\n //save the added fields\n }", "public function actualizar_perfil(Request $request){\n // 'dato_opcion1' => $request->dato_opcion1 , 'dato_opcion2' => $request->dato_opcion2 , 'dato_opcion3' => $request->dato_opcion3 , 'opcion1_valor' => $request->opcion1_valor , 'opcion2_valor' => $request->opcion2_valor, 'opcion3_valor' => $request->opcion3_valor]);\n\nif ($request->nombre != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['nombre' => $request->nombre]);\n}\nif ($request->apellidos != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['apellidos' => $request->apellidos]);\n}\nif ($request->dni != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dni' => $request->dni]);\n}\nif ($request->email != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['alumno.email' => $request->email]);\n}\nif ($request->direccion != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['direccion' => $request->direccion]);\n}\nif ($request->carrera != \"-\") {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['carrera' => $request->carrera]);\n}\n\nif ($request->dato_opcion1 != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dato_opcion1' => $request->dato_opcion1]);\n}\nif ($request->dato_opcion2 != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dato_opcion2' => $request->dato_opcion2]);\n}\nif ($request->dato_opcion3 != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['dato_opcion3' => $request->dato_opcion3]);\n}\n\nif ($request->opcion1_valor != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['opcion1_valor' => $request->opcion1_valor]);\n}\nif ($request->opcion2_valor != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['opcion2_valor' => $request->opcion2_valor]);\n}\nif ($request->opcion3_valor != NULL) {\n DB::table('alumno')\n ->join('users','users.id','=','user_id')\n ->where('users.id','=', Auth::user()->id)\n ->update(['opcion3_valor' => $request->opcion3_valor]);\n}\n\nreturn redirect()->back()->with('message', 'INFORMACIÓN DE PERFIL ACTUALIZADA CORRECTAMENTE');\n\n\n}", "public function actualizar(){\n }", "public function actualizar(){\n }", "public function beforeSave()\n {\n $this->setParams([\n 'url' => $this->getValue(),\n 'apiKey' => $this->getFieldsetDataValue('api_key'),\n 'version' => $this->getFieldsetDataValue('api_version')\n ]);\n\n if (!$this->isUrl($this->getValue())) {\n throw new \\Magento\\Framework\\Exception\\ValidatorException(__('Invalid CRM url'));\n }\n\n if (!$this->isHttps($this->getValue())) {\n $this->schemeEdit($this->getValue());\n }\n\n if ($this->validateApiUrl($this->api)) {\n $this->setValue($this->getValue());\n }\n\n parent::beforeSave();\n }", "protected function setNullAllAttributes()\n\t{\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\tif( $value == \"real\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"int\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"date\" ) $this->$field = \"\" ;\n\t\t\telse if( $value == \"string\" ) $this->$field = null ;\n\t\t}\n\t}", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->l30_codigo = ($this->l30_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_codigo\"]:$this->l30_codigo);\n if($this->l30_data == \"\"){\n $this->l30_data_dia = ($this->l30_data_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_data_dia\"]:$this->l30_data_dia);\n $this->l30_data_mes = ($this->l30_data_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_data_mes\"]:$this->l30_data_mes);\n $this->l30_data_ano = ($this->l30_data_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_data_ano\"]:$this->l30_data_ano);\n if($this->l30_data_dia != \"\"){\n $this->l30_data = $this->l30_data_ano.\"-\".$this->l30_data_mes.\"-\".$this->l30_data_dia;\n }\n }\n $this->l30_portaria = ($this->l30_portaria == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_portaria\"]:$this->l30_portaria);\n if($this->l30_datavalid == \"\"){\n $this->l30_datavalid_dia = ($this->l30_datavalid_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_datavalid_dia\"]:$this->l30_datavalid_dia);\n $this->l30_datavalid_mes = ($this->l30_datavalid_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_datavalid_mes\"]:$this->l30_datavalid_mes);\n $this->l30_datavalid_ano = ($this->l30_datavalid_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_datavalid_ano\"]:$this->l30_datavalid_ano);\n if($this->l30_datavalid_dia != \"\"){\n $this->l30_datavalid = $this->l30_datavalid_ano.\"-\".$this->l30_datavalid_mes.\"-\".$this->l30_datavalid_dia;\n }\n }\n $this->l30_tipo = ($this->l30_tipo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_tipo\"]:$this->l30_tipo);\n $this->l30_nomearquivo = ($this->l30_nomearquivo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_nomearquivo\"]:$this->l30_nomearquivo);\n }else{\n $this->l30_codigo = ($this->l30_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"l30_codigo\"]:$this->l30_codigo);\n }\n }", "public function beforeSave()\n {\n $value = $this->getValue();\n if (is_array($value)) {\n $value = $this->_helper->makeStorableArrayFieldValue($value);\n }\n \n $this->setValue($value);\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->v59_inicial = ($this->v59_inicial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_inicial\"]:$this->v59_inicial);\n $this->v59_numpre = ($this->v59_numpre == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_numpre\"]:$this->v59_numpre);\n }else{\n $this->v59_inicial = ($this->v59_inicial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_inicial\"]:$this->v59_inicial);\n $this->v59_numpre = ($this->v59_numpre == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"v59_numpre\"]:$this->v59_numpre);\n }\n }", "public function beforeValidationOnUpdate()\n {\n // Timestamp on the update\n $this->modifyAt = time();\n }", "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "private function before_custom_save()\n\t\t{\n\t\t\t$fields = self::$db->table_info($this->table_name);\n\t\t\tforeach($fields AS $field)\n\t\t\t{\n\t\t\t\tif(!strlen($this->$field['name'])) {\n\t\t\t\t\t$this->$field['name'] = 'NULL';\n\t\t\t\t}\n\t\t\t\tif(method_exists($this, 'preSave_'.$field['name'])) {\n\t\t\t\t\t$this->{'preSave_'.$field['name']}($field);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private function resetInputFields(){\n $this->name = '';\n }", "protected function _beforeSave()\n {\n $value = $this->getValue();\n $value = Mage::helper('mail/connectfields')->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->pc31_orcamforne = ($this->pc31_orcamforne == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_orcamforne\"]:$this->pc31_orcamforne);\n $this->pc31_nomeretira = ($this->pc31_nomeretira == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_nomeretira\"]:$this->pc31_nomeretira);\n if($this->pc31_dtretira == \"\"){\n $this->pc31_dtretira_dia = ($this->pc31_dtretira_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_dtretira_dia\"]:$this->pc31_dtretira_dia);\n $this->pc31_dtretira_mes = ($this->pc31_dtretira_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_dtretira_mes\"]:$this->pc31_dtretira_mes);\n $this->pc31_dtretira_ano = ($this->pc31_dtretira_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_dtretira_ano\"]:$this->pc31_dtretira_ano);\n if($this->pc31_dtretira_dia != \"\"){\n $this->pc31_dtretira = $this->pc31_dtretira_ano.\"-\".$this->pc31_dtretira_mes.\"-\".$this->pc31_dtretira_dia;\n }\n }\n $this->pc31_horaretira = ($this->pc31_horaretira == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_horaretira\"]:$this->pc31_horaretira);\n $this->pc31_liclicitatipoempresa = ($this->pc31_liclicitatipoempresa == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_liclicitatipoempresa\"]:$this->pc31_liclicitatipoempresa);\n $this->pc31_tipocondicao = ($this->pc31_tipocondicao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_tipocondicao\"]:$this->pc31_tipocondicao);\n }else{\n $this->pc31_orcamforne = ($this->pc31_orcamforne == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"pc31_orcamforne\"]:$this->pc31_orcamforne);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->rh157_sequencial = ($this->rh157_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_sequencial\"]:$this->rh157_sequencial);\n $this->rh157_usuario = ($this->rh157_usuario == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_usuario\"]:$this->rh157_usuario);\n $this->rh157_lotacao = ($this->rh157_lotacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_lotacao\"]:$this->rh157_lotacao);\n }else{\n $this->rh157_sequencial = ($this->rh157_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"rh157_sequencial\"]:$this->rh157_sequencial);\n }\n }", "public function actualizar(){\n }", "public function atualizar(){\r\n return (new Database('cartao'))->update(' id = '.$this->id, [\r\n 'bandeira' => $this->bandeira,\r\n 'numero' => $this->numero,\r\n 'doador' => $this->doador,\r\n ]);\r\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ov01_sequencial = ($this->ov01_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_sequencial\"]:$this->ov01_sequencial);\n $this->ov01_situacaoouvidoriaatendimento = ($this->ov01_situacaoouvidoriaatendimento == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_situacaoouvidoriaatendimento\"]:$this->ov01_situacaoouvidoriaatendimento);\n $this->ov01_tipoprocesso = ($this->ov01_tipoprocesso == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_tipoprocesso\"]:$this->ov01_tipoprocesso);\n $this->ov01_formareclamacao = ($this->ov01_formareclamacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_formareclamacao\"]:$this->ov01_formareclamacao);\n $this->ov01_tipoidentificacao = ($this->ov01_tipoidentificacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_tipoidentificacao\"]:$this->ov01_tipoidentificacao);\n $this->ov01_usuario = ($this->ov01_usuario == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_usuario\"]:$this->ov01_usuario);\n $this->ov01_depart = ($this->ov01_depart == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_depart\"]:$this->ov01_depart);\n $this->ov01_instit = ($this->ov01_instit == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_instit\"]:$this->ov01_instit);\n $this->ov01_numero = ($this->ov01_numero == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_numero\"]:$this->ov01_numero);\n $this->ov01_anousu = ($this->ov01_anousu == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_anousu\"]:$this->ov01_anousu);\n if($this->ov01_dataatend == \"\"){\n $this->ov01_dataatend_dia = ($this->ov01_dataatend_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_dataatend_dia\"]:$this->ov01_dataatend_dia);\n $this->ov01_dataatend_mes = ($this->ov01_dataatend_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_dataatend_mes\"]:$this->ov01_dataatend_mes);\n $this->ov01_dataatend_ano = ($this->ov01_dataatend_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_dataatend_ano\"]:$this->ov01_dataatend_ano);\n if($this->ov01_dataatend_dia != \"\"){\n $this->ov01_dataatend = $this->ov01_dataatend_ano.\"-\".$this->ov01_dataatend_mes.\"-\".$this->ov01_dataatend_dia;\n }\n }\n $this->ov01_horaatend = ($this->ov01_horaatend == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_horaatend\"]:$this->ov01_horaatend);\n $this->ov01_requerente = ($this->ov01_requerente == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_requerente\"]:$this->ov01_requerente);\n $this->ov01_solicitacao = ($this->ov01_solicitacao == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_solicitacao\"]:$this->ov01_solicitacao);\n $this->ov01_executado = ($this->ov01_executado == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_executado\"]:$this->ov01_executado);\n }else{\n $this->ov01_sequencial = ($this->ov01_sequencial == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ov01_sequencial\"]:$this->ov01_sequencial);\n }\n }", "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->bo04_codmov = ($this->bo04_codmov == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_codmov\"]:$this->bo04_codmov);\n $this->bo04_codbo = ($this->bo04_codbo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_codbo\"]:$this->bo04_codbo);\n if($this->bo04_datamov == \"\"){\n $this->bo04_datamov_dia = ($this->bo04_datamov_dia == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_datamov_dia\"]:$this->bo04_datamov_dia);\n $this->bo04_datamov_mes = ($this->bo04_datamov_mes == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_datamov_mes\"]:$this->bo04_datamov_mes);\n $this->bo04_datamov_ano = ($this->bo04_datamov_ano == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_datamov_ano\"]:$this->bo04_datamov_ano);\n if($this->bo04_datamov_dia != \"\"){\n $this->bo04_datamov = $this->bo04_datamov_ano.\"-\".$this->bo04_datamov_mes.\"-\".$this->bo04_datamov_dia;\n }\n }\n $this->bo04_coddepto_ori = ($this->bo04_coddepto_ori == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_coddepto_ori\"]:$this->bo04_coddepto_ori);\n $this->bo04_coddepto_dest = ($this->bo04_coddepto_dest == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_coddepto_dest\"]:$this->bo04_coddepto_dest);\n $this->bo04_entrada = ($this->bo04_entrada == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_entrada\"]:$this->bo04_entrada);\n $this->bo04_saida = ($this->bo04_saida == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_saida\"]:$this->bo04_saida);\n }else{\n $this->bo04_codmov = ($this->bo04_codmov == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"bo04_codmov\"]:$this->bo04_codmov);\n }\n }" ]
[ "0.669761", "0.66056526", "0.6434542", "0.63157016", "0.6284376", "0.62573045", "0.61485505", "0.61103976", "0.6085046", "0.6074483", "0.6016825", "0.59978336", "0.5996459", "0.59896666", "0.59826577", "0.59784704", "0.59572226", "0.5953781", "0.5948681", "0.5884618", "0.58800876", "0.587711", "0.5876764", "0.58616745", "0.5850968", "0.5849681", "0.5848052", "0.5845457", "0.5837371", "0.58326083", "0.58236426", "0.5821634", "0.5813485", "0.58104366", "0.5800943", "0.57994187", "0.5793486", "0.57783824", "0.5760692", "0.5756276", "0.5754108", "0.57509005", "0.57363904", "0.5734667", "0.5713368", "0.57080925", "0.57061166", "0.56838346", "0.56758434", "0.5669243", "0.566117", "0.56591773", "0.56569135", "0.5652533", "0.56458247", "0.5626095", "0.5624534", "0.5623498", "0.5618222", "0.56145126", "0.561313", "0.5607044", "0.5601988", "0.55996203", "0.5592561", "0.55788785", "0.55744", "0.55733246", "0.5571833", "0.5571074", "0.55691385", "0.5568024", "0.5563378", "0.55542475", "0.5550692", "0.5547976", "0.55444163", "0.55438375", "0.5543725", "0.55436426", "0.554273", "0.5541416", "0.5540246", "0.5540246", "0.55371404", "0.5533893", "0.55278766", "0.55240357", "0.55233747", "0.55221236", "0.5516621", "0.55152935", "0.55152816", "0.54952556", "0.5493498", "0.5492669", "0.54920703", "0.5487733", "0.54867214", "0.5482071" ]
0.56500417
54
Old functions below. TODO: Refactor code. = static string datetime_to_string(datetime_string $value)
public static function datetime_to_string($value) { if (!preg_match('/(\d\d\d\d)-(\d\d)-(\d\d)\s(\d\d):(\d\d):(\d\d)/', $value, $m)) return ''; return date(conf('format.datetime'), mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString($value): string\n {\n if (!$value instanceof DateTimeInterface) {\n $value = new \\DateTime($value);\n }\n\n return $value->format('Y-m-d H:i:s');\n }", "private function convertValue($value): string\n {\n if ($value instanceof \\DateTime) {\n return $value->format('Y-m-d H:i:s');\n }\n return (string)$value;\n }", "public static function date_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.date'), mktime(0, 0, 0, $m[2], $m[3], $m[1]));\n\t}", "protected function dateTimeToString(\\DateTime $datetime) {\n $string = $datetime->format(\\DateTime::ISO8601);\n\n return $string ? $string : 'Invalid DateTime object';\n }", "protected function valueToString($value): string\n {\n if (\\is_string($value)) {\n return $value;\n }\n if (\\is_int($value)) {\n return (string) $value;\n }\n if (\\is_float($value)) {\n return (string) $value;\n }\n return \\gettype($value) . ' - can´t be casted to string';\n }", "protected function convertPregDateToString($value) {\n \t/**\n \t * 1 => year\n \t * 2 => month\n \t * 3 => day\n \t * 4 => hour\n \t * 5 => minute\n \t * 6 => second\n \t * 7 => microsecond or null\n \t */\n \treturn sprintf(\n \t\t'%04d-%02d-%02d %02d:%02d:%02d',\n \t\t$value[1],\n \t\t$value[2],\n \t\t$value[3],\n \t\t$value[4],\n \t\t$value[5],\n \t\tisset($value[6]) ? $value[6] : 0 \n \t);\n }", "function format_datetime($value) {\n\t$value = (int)$value;\n\tif($value > 0 )\n\t\treturn date($GLOBALS['i18']['formats']['date_time'],$value);\n\telse\n\t\treturn '';\n}", "public function formatString(string $value): string\n {\n // regex source https://stackoverflow.com/a/3143231\n if (preg_match(\"/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/\", $value)) {\n return Carbon::parse($value)->format('Y-m-d H:i:s');\n }\n return $value;\n }", "public static function string_to_datetime($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.datetime\"), $value, $m)) return '0000-01-01 00:00:00';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2].' '.$m[4].':'.$m[5].':'.(isset($m[7]) ? $m[7] : '00');\n\t}", "public function fromDateTime($value)\n {\n // ensure that if the datetime or carbon object we were given contained a timezone, we convert to the app timezone (instead of stripping it) before outputting a storable string\n if ($value) {\n return $this->asDateTime($value)->setTimeZone(config('app.timezone'))->format($this->getDateFormat());\n }\n\n return $value;\n }", "public function getAsString($value)\n {\n if (is_string($value)) {\n return $value;\n }\n if (is_bool($value)) {\n return $value ? 'TRUE' : 'FALSE';\n }\n if (is_null($value)) {\n return 'NULL';\n }\n if (is_resource($value)) {\n return get_resource_type($value);\n }\n if (is_object($value)) {\n return '{'.get_class($value).'}';\n }\n\n return (string) $value;\n }", "public function testCastToString()\n {\n $datetime = DateTime::createFromFormat('Y-m-d H:i:s', '2020-06-18 14:11:22', DateTimeZone::BrokenHillAustralia());\n $this->assertSame('2020-06-18T14:11:22+09:30', (string) $datetime);\n }", "public static function dateTimeToString(DateTime $date) {\n return $date->format('Y-m-d H:i:sO');\n }", "public function formatDatetime($value)\n\t{\n\t\treturn $value;\n\t}", "public function toDateTimeString()\n {\n return $this->toLocalizedString('yyyy-MM-dd HH:mm:ss');\n }", "function o_castString($value) {\n\t\t\treturn Obj::singleton()->castString($value);\n\t\t}", "function datetime_en2sql($datetime)\r\n\t{\r\n\t\tif (!empty($datetime))\r\n\t\t{\r\n\t\t\t$datetime = explode(\" \", $datetime);\r\n\t\t\t$datetime[\"date\"] = explode(\"/\", $datetime[0]);\r\n\t\t\t$date_sql = self::date_en2sql($datetime[0]);\r\n\t\t\t$time_sql = $datetime[1];\r\n\t\t\t$datetime_sql = $date_sql.\" \".$time_sql;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$datetime_sql = \"\";\r\n\t\t}\r\n\t\treturn $datetime_sql;\r\n\t}", "public static function stringOf($value) {\n return null === $value ? 'null' : Objects::stringOf($value);\n }", "public function convert($value): string;", "function value_datetime($value){\r\n\t$value = explode(\" \", $value);\r\n\t$date = value_date($value[0]);\r\n\t$time = value_time($value[1]);\r\n\tif(strlen($date) === 0){\r\n\t\treturn null;\r\n\t}\r\n\tif(strlen($time) === 0){\r\n\t\t$time = \"00:00:00\";\r\n\t}\r\n\treturn \"{$date} {$time}\";\r\n}", "static function datetime($value){\n\t\t$arr_value = explode(\" \", $value);\n\t\t$date = DBValue::date($arr_value[0]);\n\t\tif(is_null($date)){\n\t\t\treturn null;\n\t\t}\n\t\t$time = DBValue::time($arr_value[1]);\n\t\tif(is_null($time)){\n\t\t\t$time = \"00:00:00\";\n\t\t}\n\t\treturn $date.\" \".$time;\n\t}", "protected function formatDateTimeAsString($dateTime)\n {\n return $dateTime instanceof \\DateTime ? $dateTime->format(static::$dateTimeFormat) : null;\n }", "public static function convertStringDate($datetime, $pattern)\r\n\t{\r\n\t\treturn date($pattern, strtotime($datetime));\r\n\t}", "public static function prepareDatetime($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to datetime automatically\n return $value;\n }", "public function formatString($value)\n {\n $return = \"null\";\n\n if ($value && $this->isConnected()) {\n $return = \"'\" . $value . \"'\";\n }\n\n return $return;\n }", "public static function Cast($value, $replacement = \"\")\n {\n if ($value != null && gettype($value) == \"DateTime\") {\n if ((int)DateTime::createFromFormat(\"yyyy-MM-dd\", $value) != 0) {\n return DateTime::createFromFormat(\"yyyy-MM-dd\", $value);\n }\n }\n\n if ($value == null) {\n return $replacement;\n }\n\n return (string)$value;\n\n }", "public static function timestampToDateTimeString($timestamp)\n {\n $timezone = Session::get(SESSION_TIMEZONE, conf('user::default_timezone'));\n $date_format = Session::get(SESSION_DATE_FORMAT, conf('admin::default_datetime_format'));\n $time_format = Session::get(SESSION_TIME_FORMAT, conf('user::default_time_format'));\n\n $format = $date_format . ' ' . $time_format;\n return Utils::timestampToString($timestamp, $timezone, $format);\n }", "private static function convertNowString() {\n\n $date = new DateTime(null);\n return [$date, 'Y-m-d\\TH:i:sO', []];\n // return $date->format('Y-m-d\\TH:i:sO');\n\n }", "protected function escapeDateTime(DateTime $value)\n {\n $value->setTimezone(new DateTimeZone('UTC'));\n return $this->escapeString($value->format('Y-m-d\\TH:i:s.u\\Z'));\n }", "function datetime_sql2en($datetime)\r\n\t{\r\n\t\tif (!empty($datetime))\r\n\t\t{\r\n\t\t\t$datetime = explode(\" \", $datetime);\r\n\t\t\t$date_en = self::date_sql2en($datetime[0]);\r\n\t\t\t$time_en = $datetime[1];\r\n\t\t\t$datetime_en = array(\"date\" => $date_en, \"time\" => $time_en);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$datetime_en = \"\";\r\n\t\t}\r\n\t\treturn $datetime_en;\r\n\t}", "public function toDateTimeString()\n {\n return $this->format('Y-m-d H:i:s');\n }", "function timestampToString($time) {\n\treturn date('Y-m-d H:i:s', $time);\n}", "public static function getPrintableDatetime(): string\n {\n return (new DateTime())->format(\"Y-m-d\\TH:i:s.vP\");\n }", "function string_value($value) {\r\n\t\t// objects should have a to_string a value to compare to\r\n\t\tif (is_object($value)) {\r\n\t\t\tif (method_exists($value, 'to_string')) {\r\n\t\t\t\t$value = $value->to_string();\r\n\t\t\t} else {\r\n\t\t\t\ttrigger_error(\"Cannot convert $value to string\", E_USER_WARNING);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t\t\r\n\r\n\t\t// arrays simply return true\r\n\t\tif (is_array($value)) {\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $value;\r\n\t}", "public function formatValueForDatabase($value) {\n\t\tswitch ($this->type) {\n\t\t\tcase 'Date':\n\t\t\t\t/**\n\t\t\t\t * @var \\DateTime $value\n\t\t\t\t */\n\t\t\t\t$value = $value->format('Y-m-d');\n\t\t\t\tbreak;\n\n\t\t\tcase 'DateTime':\n\t\t\t\t/**\n\t\t\t\t * @var \\DateTime $value\n\t\t\t\t */\n\t\t\t\t$value = $value->format('Y-m-d H:i:s');\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $value;\n\t}", "function datetime_fr2sql($datetime)\r\n\t{\r\n\t\tif (!empty($datetime))\r\n\t\t{\r\n\t\t\t$datetime = explode(\" \", $datetime);\r\n\t\t\t$datetime[\"date\"] = explode(\"/\", $datetime[0]);\r\n\t\t\t$date_sql = self::date_fr2sql($datetime[0]);\r\n\t\t\t$time_sql = $datetime[1];\r\n\t\t\t$datetime_sql = $date_sql.\" \".$time_sql;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$datetime_sql = \"\";\r\n\t\t}\r\n\t\treturn $datetime_sql;\r\n\t}", "private function ensureString($value)\n {\n if (is_string($value)) {\n return $value;\n }\n\n if (is_array($value) || $value instanceOf \\Traversable) {\n $string = array();\n foreach ($value as $val) {\n if (is_object($val) && method_exists($val, '__toString')) {\n $string[] = $val->__toString();\n }\n else {\n $string[] = (string) $val;\n }\n }\n return implode(',', $string);\n }\n\n if (is_object($value) && method_exists($value, '__toString')) {\n return $value->__toString();\n }\n }", "public function datetime_format($datetime, $type = 0) {\n\t\tif ($datetime == '' || $datetime == \"0000-00-00 00:00:00\" || $datetime == '1970-01-01 05:30:00') {\n\t\t\treturn \"\";\n\t\t}\n\t\t$st = Yii::$app->getTable;\n\n\t\t$df = $st->settings('local', 'date_format');\n\t\tsetlocale(LC_TIME, 'en_US');\n\t\tif ($type == 1) {\n\t\t\t$result1 = date(\"$df\", $datetime); // date($df,strtotime($date));\n\t\t} else {\n\t\t\t$result1 = date(\"$df\", strtotime($datetime)); // date($df,strtotime($date));\n\n\t\t}\n\n\t\t$tf = $st->settings('local', 'time_format');\n\t\tif ($type == 1) {\n\t\t\t$result2 = date($tf, $datetime);\n\t\t} else {\n\t\t\t$result2 = date($tf, strtotime($datetime));\n\n\t\t}\n\t\t$result = $result1 . \" \" . $result2;\n\n\t\treturn $result;\n\t}", "protected function valueToString($value) {\n\n\t\t\t// Is it null?\n\t\t\tif (is_null($value)) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Array?\n\t\t\tif (is_array($value)) {\n\t\t\t\t$processed = array();\n\t\t\t\tforeach($value as $val) {\n\n\t\t\t\t\t// Another array?\n\t\t\t\t\tif (is_array($val)) {\n\n\t\t\t\t\t\t$processed[] = $this->valueToString($val);\n\n\t\t\t\t\t}\n\t\t\t\t\t// String?\n\t\t\t\t\telseif (is_string($val)) {\n\t\t\t\t\t\t$processed[] = $this->connection->Escape($val);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$processed[] = $val;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn implode(\", \", $processed);\n\t\t\t}\n\n\t\t\treturn $value;\n\n\t\t}", "function getTimeString($DateTime){\n return $DateTime->format(\"Y-m-d H:i:s\"); \n}", "public function exportValue($value)\r\n {\r\n if (is_object($value)) {\r\n return sprintf('Object(%s)', get_class($value));\r\n }\r\n\r\n if (is_array($value)) {\r\n $a = array();\r\n foreach ($value as $k => $v) {\r\n $a[] = sprintf('%s => %s', $k, $this->exportValue($v));\r\n }\r\n\r\n return sprintf(\"Array(%s)\", implode(', ', $a));\r\n }\r\n\r\n if (is_resource($value)) {\r\n return sprintf('Resource(%s)', get_resource_type($value));\r\n }\r\n\r\n if (null === $value) {\r\n return 'null';\r\n }\r\n\r\n if (false === $value) {\r\n return 'false';\r\n }\r\n\r\n if (true === $value) {\r\n return 'true';\r\n }\r\n\r\n return (string) $value;\r\n }", "public function formatDateTime($datetime = null);", "protected function formatDateTime(\n Chronos|ChronosDate|DateTimeInterface|string|int|null $value,\n array $options\n ): string {\n if ($value === '' || $value === null) {\n return '';\n }\n\n try {\n if ($value instanceof Chronos || $value instanceof ChronosDate || $value instanceof DateTimeInterface) {\n /** @var \\Cake\\Chronos\\Chronos|\\Cake\\Chronos\\ChronosDate|\\DateTime|\\DateTimeImmutable $dateTime Expand type for phpstan */\n $dateTime = clone $value;\n } elseif (is_string($value) && !is_numeric($value)) {\n $dateTime = new DateTime($value);\n } elseif (is_numeric($value)) {\n $dateTime = new DateTime('@' . $value);\n } else {\n $dateTime = new DateTime();\n }\n } catch (Exception) {\n $dateTime = new DateTime();\n }\n\n if (isset($options['timezone'])) {\n $timezone = $options['timezone'];\n if (!$timezone instanceof DateTimeZone) {\n $timezone = new DateTimeZone($timezone);\n }\n\n $dateTime = $dateTime->setTimezone($timezone);\n }\n\n if (isset($options['format'])) {\n $format = $options['format'];\n } else {\n $format = $this->formatMap[$options['type']];\n\n if (\n $options['type'] === 'datetime-local'\n && is_numeric($options['step'])\n && $options['step'] < 1\n ) {\n $format = 'Y-m-d\\TH:i:s.v';\n }\n }\n\n return $dateTime->format($format);\n }", "abstract function to_str();", "public static function dateToString($date)\n {\n $dateTime = new DateTime($date);\n $timestamp = $dateTime->getTimestamp();\n $format = Session::get(SESSION_DATE_FORMAT, conf('user::default_date_format'));\n return Utils::timestampToString($timestamp, false, $format);\n }", "public function asText(): string\n {\n return (DateTimeImmutable::createFromFormat($this->dt_format, $this->value))\n ->format(self::FORMAT_FULL_TEXT);\n }", "protected function responseToDateTimeString(): void\n {\n Carbon::macro('responseToDateTimeString', function (string $datetime, bool $addOffset = false): string {\n $date = Carbon::createFromFormat(DateTimeInterface::ATOM, $datetime);\n if ($addOffset) {\n $offset = $date->getOffset();$date\n ->addSeconds($offset);\n }\n\n return $date->toDateTimeString();\n });\n }", "public function format ($value)\n {\n try {\n $date = new Zend_Date($value);\n }\n catch (Exception $e) {\n return $value;\n }\n\n return $date->toString($this->date_format, $this->type, $this->locale);\n }", "protected function convertDateArrayToString($value)\n {\n foreach (array('year', 'month', 'day', 'hour', 'minute', 'second') as $key)\n {\n if (isset($value[$key]) && !preg_match('#^\\d+$#', $value[$key]) && !empty($value[$key]))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n }\n\n // if one date value is empty, other must be empty too\n $empties =\n (!isset($value['year']) || !$value['year'] ? 1 : 0) +\n (!isset($value['month']) || !$value['month'] ? 1 : 0)\n ;\n if ($empties > 0 && $empties < 2)\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n else if (2 == $empties)\n {\n return $this->getEmptyValue();\n }\n\n if (!checkdate(intval($value['month']), 1, intval($value['year'])))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n\n $clean = sprintf(\n \"%04d-%02d\",\n intval($value['year']),\n intval($value['month'])\n );\n\n return $clean;\n }", "public function toString(&$value = false)\n {\n try{\n $value = (string)$value;\n }\n catch(\\Exception $e){\n $value = '';\n }\n }", "function value2sql( $type, $value )\n\t\t{\n\t\tif( $type == \"VARCHAR\" || $type == \"varchar\" || $type == \"char\" )\n\t\t\t{\n\t\t\tif( $value == \"\") return \" null\" ;\n\t\t\treturn \"'\" . $value . \"'\" ;\n\t\t\t}\n\t\telse if( $type == \"DATETIME\" )\n\t\t\t{\n\t\t\tif( $value == \"\") return \" null\" ;\n\t\t\treturn strftime( \"#%Y-%m-%d %H:%M:%S#\", $value ) ;\n\t\t\t}\n\t\treturn $value ;\n\t\t}", "public function convertToDbDateTime(\\DateTimeInterface $phpValue): string;", "public function formatDate($value)\n\t{\n\t\treturn $value;\n\t}", "function generateDateTime( $value )\r\n\t{\r\n\t\treturn( strftime( \"%Y-%m-%d %H:%M:%S\", $value ) );\r\n\t}", "public function toString() {\n switch (xp::typeOf($this->value)) {\n case 'boolean': \n return $this->value ? 'T' : 'F';\n\n case 'util.Date':\n $this->attributes['xmlns:b']= 'urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/';\n $this->attributes['b:dt']= 'dateTime.rfc1123';\n return $this->value->toString($this->name == 'getlastmodified' ? 'D, j M Y H:m:s \\G\\M\\T' : 'Y-m-d\\TH:m:s\\Z');\n\n default:\n return (string)$this->value;\n }\n }", "function convert_datetime($date_time) {\n if(strtotime($date_time) >= strtotime('today')):\n return 'Today '.gmdate('h:ia', strtotime($date_time));\n elseif(strtotime($date_time) >= strtotime('yesterday')):\n return 'Yesterday '.gmdate('h:ia', strtotime($date_time));\n else:\n return gmdate('d.m.Y, h:ia', strtotime($date_time));\n endif;\n }", "public static function strval($value)\n\t{\n\t\treturn is_bool($value)\n\t\t\t? ($value ? 'true' : 'false')\n\t\t\t: strval($value);\n\t}", "protected static function stringify($value)\n {\n if (is_bool($value)) {\n return $value ? '<TRUE>' : '<FALSE>';\n }\n\n if (is_scalar($value)) {\n $val = (string)$value;\n\n if (strlen($val) > 100) {\n $val = substr($val, 0, 97) . '...';\n }\n\n return $val;\n }\n\n if (is_array($value)) {\n return '<ARRAY>';\n }\n\n if (is_object($value)) {\n return get_class($value);\n }\n\n if (is_resource($value)) {\n return '<RESOURCE>';\n }\n\n if ($value === NULL) {\n return '<NULL>';\n }\n\n return 'unknown';\n }", "public static function convertStringToDate($date) {\n $date = new DateTime($date); \n $date = $date->format(\"Y-m-d\"); \n return $date;\n }", "function bool_to_string($value) {\n return $value ? 'true' : 'false';\n }", "public function formatDate($value)\n {\n $return = \"'\" . date($this->dateFormat, strtotime($value)) . \"'\";\n\n return $return;\n }", "function parse_datetime_to_readable_format($datetime) {\n return $datetime->format(get_string('dateformat', 'tool_attestoodle'));\n}", "function buildDateTimeString()\n{\n return buildDateString(getdate()).' '.buildTimeString(localtime(time() , 1));\n}", "protected function serializeDate(DateTimeInterface $date): string\n {\n return $date->format('Y-m-d H:i:s');\n }", "protected function serializeDate(DateTimeInterface $date): string\n {\n return $date->format('Y-m-d H:i:s');\n }", "public function formatAsString()\n {\n return $this->formatTimeAsString(\n $this->value,\n $this->nanoSeconds\n );\n }", "public function toString(mixed $value): string;", "public static function string_to_date($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.date\"), $value, $m)) return '0000-01-01';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2];\n\t}", "public static function boolToString($value)\n {\n $value = $value === true ? 'true' : $value;\n $value = $value === false ? 'false' : $value;\n return $value;\n }", "public static function toStringUuid($value)\n\t{\n\t\tif (!$value)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t$uuid = Dc_Uuid::stringUuid($value);\n\t\tif (!$uuid)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif (self::isZeroUuid($uuid->string))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn $uuid->string;\n\t}", "function to_export($value) {\n return (string) $value;\n }", "public function testToString()\n {\n $datetime = DateTime::createFromFormat('Y-m-d H:i:s', '2020-06-18 14:11:22', DateTimeZone::BrokenHillAustralia());\n $this->assertSame('2020-06-18T14:11:22+09:30', $datetime->toString());\n }", "private function check_date($date_value)\n {\n $format = $this->settings['format'];\n $date_value = strval($date_value);\n $date_obj = new DateTime($date_value);\n\n $date_value = $date_obj->format($format);\n return $date_value;\n }", "private function boolToString ($value)\n\t{\n\t\tif (true === $value)\n\t\t{\n\t\t\treturn 'true';\n\t\t}\n\t\telseif (false === $value)\n\t\t{\n\t\t\treturn 'false';\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn $value;\n\t\t}\n\t}", "public function asString(): string\n {\n $hours = floor($this->value / 3600);\n $minutes = floor($this->value / 60) - ($hours * 60);\n $seconds = $this->value - ($minutes * 60) - ($hours * 3600);\n\n $hours = ($hours < 10) ? \"0{$hours}\" : $hours;\n $minutes = ($minutes < 10) ? \"0{$minutes}\" : $minutes;\n $seconds = ($seconds < 10) ? \"0{$seconds}\" : $seconds;\n\n return \"{$hours}:{$minutes}:{$seconds}\";\n }", "function format_date($value) {\t\n\t$value = (int)$value;\n\tif($value > 0)\n\t\treturn date($GLOBALS['i18']['date_format'],$value);\n\telse\n\t\treturn '';\n}", "protected function _quoteString($value)\n {\n return (string)$value;\n }", "function ToDateTime($datetime) {\n\t\tif (strlen($datetime) == 14) {\n\t\t\treturn preg_replace(\"~([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})~\", \"\\\\1-\\\\2-\\\\3 \\\\4:\\\\5:\\\\6\", $datetime);\n\t\t} else {\n\t\t\treturn $datetime;\n\t\t}\n\t}", "public function transform($datetime)\n {\n if (null === $datetime) {\n return '';\n }\n\n return $datetime->format('d/m/Y H:i');\n }", "public function convert_to_iso_8601($datetime) {\n if(empty($datetime)) \n $datetime = time();\n else\n $datetime = strtotime($datetime);\n if($this->is_valid_date($datetime))\n return date('c',$datetime);\n return date('c',0);\n }", "function toDB($value, $type) {\n\t\t// everything is nullable\n\t\tif($value === null) return null;\n\t\t\n\t\tswitch($type) {\n\t\t\tcase 'datetime': // ISO-8601\n\t\t\tcase 'date':\n\t\t\t\tif($value instanceof DateTime) return $value->format('c');\n\t\t}\n\t\treturn $value;\n\t}", "public function testToStringMagicMethod()\n {\n $datetime = DateTime::createFromFormat('Y-m-d H:i:s', '2020-06-18 14:11:22', DateTimeZone::BrokenHillAustralia());\n $this->assertSame('2020-06-18T14:11:22+09:30', $datetime->__toString());\n }", "public static function to_server_datetime( $datetime, $format = 'Y-m-d H:i:s' )\n {\n if( is_null( $datetime ) || !is_string( $datetime ) ) return $datetime;\n\n $datetime_obj = self::get_datetime_object( $datetime );\n $datetime_obj->setTimeZone( self::get_timezone_object( true ) );\n return $datetime_obj->format( $format );\n }", "function time2string($timestamp=''){\n $meses = array('01' => 'enero','02'=>'febrero','03'=>'marzo','04'=>'abril','05'=>'mayo','06'=>'junio','07'=>'julio','08'=>'agosto','09'=>'septiembre','10'=>'octubre','11'=>'noviembre','12'=>'diciembre');\n $partes = preg_split('/[\\s,-]+/',$timestamp);\n $fecha = $partes[2].' de '.$meses[$partes[1]].' de '.$partes[0].' a las '.$partes[3];\n return $fecha;\n}", "private function status_to_string($value) {\n if ($value == 0) {\n $status = \"Inactive\";\n } else if ($value == 1) {\n $status = \"Active\";\n }\n return $status;\n }", "public function format(string $value): string;", "function formatDate(string $date): string\n{\n $dateTimeObject = new DateTime($date);\n $formattedDate = $dateTimeObject->format('d F Y');\n\n return $formattedDate;\n}", "protected function formatValue($value)\n {\n // If the value is a date we'll format it according to the specified\n // date format.\n if ($value instanceof DateTime || $value instanceof Carbon) {\n $value = $value->format($this->grammar->getDateFormat());\n }\n\n return $value;\n }", "public static function get_formatted_datetime(\n $datetime, $include_seconds = true, $invalid = 'unknown' )\n {\n if( is_null( $datetime ) || !is_string( $datetime ) ) return $invalid;\n\n $time_obj = self::get_datetime_object( $datetime );\n return $time_obj->format( 'Y-m-d '.( $include_seconds ? 'g:i:s A, T' : 'g:i A, T' ) );\n }", "function beauty_date($datetime)\n{\n\t\n\t$year = substr($datetime,0,4);\n\t$month = substr($datetime,5,2);\n\t$day = substr($datetime,8,2);\n\t\n\t$hour = substr($datetime,11,2);\n\t$minute = substr($datetime,14,2);\n\t\n\t$beauty = \"$day.$month.$year - $hour:$minute\";\n\t\n\treturn $beauty;\n\n}", "public static function timestampToDateString($timestamp)\n {\n $timezone = Session::get(SESSION_TIMEZONE, conf('user::default_timezone'));\n $format = Session::get(SESSION_DATE_FORMAT, conf('user::default_date_format'));\n return Utils::timestampToString($timestamp, $timezone, $format);\n }", "public static function prepareDate($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to MM/DD/YYYY automatically\n return $value;\n }", "function DateIntToStr ($i) {\n\tGlobal $iTimeType;\n\tif ($iTimeType == 1) return date('Y-m-d H:i:s',$i);\n\t\n\t$n = $i % 100;\n\t$i = (int)($i / 100);\n\t$h = $i % 100;\n\t$i = (int)($i / 100);\n\t$d = $i % 50;\n\t$i = (int)($i / 50);\n\t$m = ($i % 20) -1;\n\t$i = (int)($i / 20);\n\t$y = ($i % 1000) + 2000;\n\treturn sprintf (\"%04d-%02d-%02d %02d:%02d\", $y,$m,$d,$h,$n);\n}", "public static function convertToEdmDateTime($value)\n {\n if (empty($value)) {\n return $value;\n }\n\n if (is_string($value)) {\n $value = self::convertToDateTime($value);\n }\n\n Validate::isDate($value, 'value');\n\n $cloned = clone $value;\n $cloned->setTimezone(new \\DateTimeZone('UTC'));\n\n return str_replace('+0000', 'Z', $cloned->format(\\DateTime::ISO8601));\n }", "protected function convertString($value, $addErrors = true)\r\n {\r\n // Custom week format support\r\n if (strpos($this->format, 'Y-\\WW') === 0\r\n && preg_match('/^([0-9]{4})\\-W([0-9]{2})/', $value, $matches)\r\n ) {\r\n $date = new DateTime;\r\n $date->setISODate($matches[1], $matches[2]);\r\n } else {\r\n $date = DateTime::createFromFormat($this->format, $value, $this->timezone);\r\n }\r\n\r\n // Invalid dates can show up as warnings (ie. \"2007-02-99\")\r\n // and still return a DateTime object.\r\n $errors = DateTime::getLastErrors();\r\n if ($errors['warning_count'] > 0) {\r\n if ($addErrors) {\r\n $this->error(self::FALSE_FORMAT);\r\n }\r\n return false;\r\n }\r\n\r\n return $date;\r\n }", "public function formatDTS($value)\n {\n $return = \"null\";\n\n if ($value) {\n $return = \"'\" . date($this->dtsFormat, strtotime($value)) . \"'\";\n }\n return $return;\n }", "function asString();", "function asString();", "public function datetime_to_date($datetime) {\r\n\t\t\r\n\t}", "public static function toDate(?string $value, bool $datetime = false)\n {\n $d1 = $d2 = $d3 = $h = $m = $s = null;\n if (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})(?: (\\d{2}):(\\d{2}):(\\d{2}))?/', $value, $m)) {\n if (isset($m[6])) {\n [, $year, $month, $day, $h, $m, $s] = $m;\n } else {\n [, $year, $month, $day] = $m;\n }\n } else {\n sscanf($value, self::$formats[self::P_DATETIMESEC_FMT], $d1, $d2, $d3, $h, $m, $s);\n [$year, $month, $day] = explode('-', sprintf(self::$formats[self::P_DATEREV_FMT], $d1, $d2, $d3));\n }\n\n if (empty($year)) {\n $year = date('Y');\n } elseif ($year < 50) {\n $year += 2000;\n } elseif ($year < 100) {\n $year += 1900;\n }\n\n if (!checkdate($month, $day, $year)) {\n return false;\n } else {\n return $datetime\n ? sprintf('%04d-%02d-%02d %02d:%02d:%02d', $year, $month, $day, $h, $m, $s)\n : sprintf('%04d-%02d-%02d', $year, $month, $day);\n }\n }" ]
[ "0.7498882", "0.7392207", "0.73864645", "0.65529764", "0.6478975", "0.64374125", "0.64206964", "0.63483334", "0.62647796", "0.61477065", "0.6129186", "0.5976402", "0.5970017", "0.5959529", "0.5934787", "0.5895182", "0.5892442", "0.58835423", "0.58419776", "0.58373374", "0.5801784", "0.57912207", "0.5782046", "0.57351345", "0.57308173", "0.5697796", "0.5691409", "0.56772494", "0.56753135", "0.5664492", "0.56561047", "0.5630912", "0.5608731", "0.5591851", "0.55815715", "0.55420476", "0.5521925", "0.55136347", "0.5509716", "0.55066216", "0.55039775", "0.54917365", "0.5484859", "0.5482846", "0.5476547", "0.5469409", "0.54664564", "0.5463478", "0.54608434", "0.5456018", "0.54470557", "0.5446906", "0.5443579", "0.544016", "0.5430176", "0.5420539", "0.5413933", "0.5411958", "0.53992575", "0.5394593", "0.53933424", "0.5376233", "0.5373037", "0.5358705", "0.5358705", "0.5354155", "0.5325147", "0.532082", "0.53155035", "0.53098756", "0.5302482", "0.5295847", "0.52788967", "0.5274017", "0.52719253", "0.5269436", "0.52660733", "0.5266002", "0.5250648", "0.52501345", "0.52500135", "0.5245254", "0.5243734", "0.5230828", "0.5229318", "0.52283776", "0.522794", "0.52269423", "0.52267516", "0.5225437", "0.5204405", "0.5204303", "0.51917356", "0.5190176", "0.51850486", "0.51831585", "0.51730025", "0.51730025", "0.5160199", "0.515307" ]
0.8278501
0
= static string date_to_string(date_string $value)
public static function date_to_string($value) { if (!preg_match('/(\d\d\d\d)-(\d\d)-(\d\d)/', $value, $m)) return ''; return date(conf('format.date'), mktime(0, 0, 0, $m[2], $m[3], $m[1])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function datetime_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)\\s(\\d\\d):(\\d\\d):(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.datetime'), mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]));\n\t}", "public static function convertStringToDate($date) {\n $date = new DateTime($date); \n $date = $date->format(\"Y-m-d\"); \n return $date;\n }", "protected function convertPregDateToString($value) {\n \t/**\n \t * 1 => year\n \t * 2 => month\n \t * 3 => day\n \t * 4 => hour\n \t * 5 => minute\n \t * 6 => second\n \t * 7 => microsecond or null\n \t */\n \treturn sprintf(\n \t\t'%04d-%02d-%02d %02d:%02d:%02d',\n \t\t$value[1],\n \t\t$value[2],\n \t\t$value[3],\n \t\t$value[4],\n \t\t$value[5],\n \t\tisset($value[6]) ? $value[6] : 0 \n \t);\n }", "public static function string_to_date($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.date\"), $value, $m)) return '0000-01-01';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2];\n\t}", "private function convertValue($value): string\n {\n if ($value instanceof \\DateTime) {\n return $value->format('Y-m-d H:i:s');\n }\n return (string)$value;\n }", "public static function dateToString($date)\n {\n $dateTime = new DateTime($date);\n $timestamp = $dateTime->getTimestamp();\n $format = Session::get(SESSION_DATE_FORMAT, conf('user::default_date_format'));\n return Utils::timestampToString($timestamp, false, $format);\n }", "function formatDate(string $date): string\n{\n $dateTimeObject = new DateTime($date);\n $formattedDate = $dateTimeObject->format('d F Y');\n\n return $formattedDate;\n}", "private function check_date($date_value)\n {\n $format = $this->settings['format'];\n $date_value = strval($date_value);\n $date_obj = new DateTime($date_value);\n\n $date_value = $date_obj->format($format);\n return $date_value;\n }", "public function toString($value): string\n {\n if (!$value instanceof DateTimeInterface) {\n $value = new \\DateTime($value);\n }\n\n return $value->format('Y-m-d H:i:s');\n }", "public static function StrToDate($date) {\n $ar = explode('/',$date);\n return $ar[2].'-'.$ar[1].'-'.$ar[0];\n }", "function format_date($value) {\t\n\t$value = (int)$value;\n\tif($value > 0)\n\t\treturn date($GLOBALS['i18']['date_format'],$value);\n\telse\n\t\treturn '';\n}", "public function formatDate($value)\n\t{\n\t\treturn $value;\n\t}", "public function format ($value)\n {\n try {\n $date = new Zend_Date($value);\n }\n catch (Exception $e) {\n return $value;\n }\n\n return $date->toString($this->date_format, $this->type, $this->locale);\n }", "public function formatDate($value)\n {\n $return = \"'\" . date($this->dateFormat, strtotime($value)) . \"'\";\n\n return $return;\n }", "function value_date($value){\r\n\tif(substr($value, 4, 1) == \"-\" && substr($value, 7, 1) == \"-\" && strlen($value) == 10){\r\n\t\t$value = implode(\"/\", array_reverse(explode(\"-\", $value)));\r\n\t}\r\n\tif(valid_date($value)){\r\n\t\treturn date_year($value).\"-\".date_month($value).\"-\".date_day($value);\r\n\t}else{\r\n\t\treturn NULL;\r\n\t}\r\n}", "public function toDateString()\n {\n return $this->toLocalizedString('yyyy-MM-dd');\n }", "public function formatString(string $value): string\n {\n // regex source https://stackoverflow.com/a/3143231\n if (preg_match(\"/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/\", $value)) {\n return Carbon::parse($value)->format('Y-m-d H:i:s');\n }\n return $value;\n }", "public static function prepareDate($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to MM/DD/YYYY automatically\n return $value;\n }", "function convert_date( $uglydate ){\n\t$date = new DateTime( $uglydate );\n\treturn $nicedate = $date->format('F j, Y');\n}", "function create_date_value($date) {\n\t\t// Since no calendar is specified, should we always convert to gregorian?\n\t\t$date=$date->convert_to_cal('gregorian');\n\t\treturn\n\t\t\t($date->y==0 ? '????' : $date->Format('Y')) .'-'.\n\t\t\t($date->m==0 ? '??' : $date->Format('m')) .'-'.\n\t\t\t($date->d==0 ? '??' : $date->Format('d'));\n\t}", "function date_encode($date) {\n\tif (is_numeric(substr($date, 2, 1))) {\n\t\t$day = substr($date, 8, 2);\n\t\t$month = substr($date, 5, 2);\n\t\t$year = substr($date, 0, 4);\n\t} else {\n\t\t$day = substr($date, 0, 2);\n\t\t$month = substr($date, 3, 2);\n\t\t$year = substr($date, 6, 4);\n\t}\n\treturn $year . '-' . $month . '-' . $day;\n}", "function conv_date($date)\n\t{\n\t\t$arr = explode(' ', $date);\n\t\t$y = $arr[2];\n\t\t$m = $this->convert_month_name('Eng-Num', str_replace(',','',$arr[0]));\n\t\t$d = $arr[1];\n\t\t\n\t\treturn $y.'-'.$m.'-'.$d; // output : 1986-1-24\n\t}", "function uwwtd_get_DD_MM_YYYY_from_YYYY_MM_DD_XXX($date) {\n $return = '';\n if (!empty($date)) {\n if (strlen($date) > 10) {\n $date = substr($date, 0, 10);\n }\n $dateObj = new DateTime($date);\n $return = $dateObj->format('d/m/Y');\n }\n return $return;\n}", "protected function convertDateArrayToString($value)\n {\n foreach (array('year', 'month', 'day', 'hour', 'minute', 'second') as $key)\n {\n if (isset($value[$key]) && !preg_match('#^\\d+$#', $value[$key]) && !empty($value[$key]))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n }\n\n // if one date value is empty, other must be empty too\n $empties =\n (!isset($value['year']) || !$value['year'] ? 1 : 0) +\n (!isset($value['month']) || !$value['month'] ? 1 : 0)\n ;\n if ($empties > 0 && $empties < 2)\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n else if (2 == $empties)\n {\n return $this->getEmptyValue();\n }\n\n if (!checkdate(intval($value['month']), 1, intval($value['year'])))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n\n $clean = sprintf(\n \"%04d-%02d\",\n intval($value['year']),\n intval($value['month'])\n );\n\n return $clean;\n }", "protected function serializeDate(DateTimeInterface $date): string\n {\n return $date->format('d.m.Y');\n }", "function format_date($date)\n{\n return date('d.m.Y', $date);\n}", "function convertDate($date){\n\treturn implode('.', array_reverse(explode('-', $date)));\n}", "public function date_as_string ()\n {\n $f = $this->parent_folder ();\n return $f->format_date ($this->date);\n }", "public function formatDate($value)\n {\n \tif($value !== NULL):\n\t \tif(strpos($value, '/') !== false)\n\t \t\t$value = AFormatter::revertDate($value);\n\t\t\t\t\n\t //if(!is_numeric($value)) $value=strtotime ($value);\n\t //return date($this->dateFormat,$value);\n\t \n\t \n\t //LO: To format date that falls outside of 32 bit integer range \n\t if(DateTime::createFromFormat('Y-m-d',$value))\n\t \t\treturn DateTime::createFromFormat('Y-m-d',$value)->format($this->dateFormat);\n\t\t\telse if(DateTime::createFromFormat('Y-m-d G:i:s',$value))\n\t\t\t\treturn DateTime::createFromFormat('Y-m-d G:i:s',$value)->format($this->dateFormat);\t\n\t\t\telse if(DateTime::createFromFormat('Y/m/d',$value))\n\t\t\t\treturn DateTime::createFromFormat('Y/m/d',$value)->format($this->dateFormat);\n\t\t\telse if(DateTime::createFromFormat('d-m-Y',$value))\n\t\t\t\treturn DateTime::createFromFormat('d-m-Y',$value)->format($this->dateFormat);\n\t\t\telse \n\t\t\t\treturn $value;\n\n\t\telse:\n\t\t\treturn $value;\n\t\tendif;\n }", "public static function formatDate($date): string\n\t{\n\t\treturn ($timestamp = strtotime($date)) ?\n\t\t\tdate('d/m/Y', $timestamp) :\n\t\t\t'-';\n\t}", "public function getDate4String($date=null){\n\t\treturn $this->getDateLang(date_format($this->createDate($date),\"d M Y\"));\n\t}", "function uwwtd_get_MM_DD_YYYY_from_YYYY_MM_DD_XXX($date) {\n $return = '';\n if (!empty($date)) {\n if (strlen($date) > 10) {\n $date = substr($date, 0, 10);\n }\n $dateObj = new DateTime($date);\n $return = $dateObj->format('m/d/Y');\n }\n return $return;\n}", "function date_conv($dateString) {\n\t$newDateString = \"00/00/0000\";\n\t\n\t// remover aspas simples e duplas\n\t$dateString = str_replace(\"'\",\"\",$dateString);\n\t$dateString = str_replace(\"\\\"\",\"\",$dateString);\n\t//se estiver no formato normal \tdd/mm/YYYY\n\tif( strlen($dateString) == 10 &&\n\t\tsubstr($dateString,2,1)=='/' &&\n\t\tsubstr($dateString,5,1)=='/') {\n\t\t$date = explode(\"/\",$dateString);\n\t\t$newDateString = $date[2].\"-\".$date[1].\"-\".$date[0];\n\t}\n\t//se estiver no formato do banco YYYY-mm-dd\n\telseif( strlen($dateString) == 10 &&\n\t\t\tsubstr($dateString,4,1)=='-' &&\n\t\t\tsubstr($dateString,7,1)=='-') {\n\t\t$date = explode(\"-\",$dateString);\n\t\t$newDateString = $date[2].\"/\".$date[1].\"/\".$date[0];\n\t}\n\treturn $newDateString;\n}", "function generateDate( $value )\r\n\t{\r\n\t\treturn( strftime( \"%Y-%m-%d\", $value ) );\r\n\t}", "protected function makeDateString($dateArray) {\n\t\t\tswitch ($this->simu->getDateFormat()) {\n\t\t\t\tcase 'd/m/Y':\n\t\t\t\t\treturn $dateArray['day'] . \"/\" . $dateArray['month'] . \"/\" . $dateArray['year'];\n\t\t\t\tcase 'm/d/Y':\n\t\t\t\t\treturn $dateArray['month'] . \"/\" . $dateArray['day'] . \"/\" . $dateArray['year'];\n\t\t\t\tcase 'd-m-Y':\n\t\t\t\t\treturn $dateArray['day'] . \"-\" . $dateArray['month'] . \"-\" . $dateArray['year'];\n\t\t\t\tcase 'm-d-Y':\n\t\t\t\t\treturn $dateArray['month'] . \"-\" . $dateArray['day'] . \"-\" . $dateArray['year'];\n\t\t\t\tcase 'd.m.Y':\n\t\t\t\t\treturn $dateArray['day'] . \".\" . $dateArray['month'] . \".\" . $dateArray['year'];\n\t\t\t\tcase 'm.d.Y':\n\t\t\t\t\treturn $dateArray['month'] . \".\" . $dateArray['day'] . \".\" . $dateArray['year'];\n\t\t\t\tcase 'Y-m-d':\n\t\t\t\t\treturn $dateArray['year'] . \"-\" . $dateArray['month'] . \"-\" . $dateArray['day'];\n\t\t\t\tcase 'Y.m.d':\n\t\t\t\t\treturn $dateArray['year'] . \".\" . $dateArray['month'] . \".\" . $dateArray['day'];\n\t\t\t\tcase 'Y/m/d':\n\t\t\t\t\treturn $dateArray['year'] . \"/\" . $dateArray['month'] . \"/\" . $dateArray['day'];\n\t\t\t\tcase 'Y-d-m':\n\t\t\t\t\treturn $dateArray['year'] . \"-\" . $dateArray['day'] . \"-\" . $dateArray['month'];\n\t\t\t\tcase 'Y.d.m':\n\t\t\t\t\treturn $dateArray['year'] . \".\" . $dateArray['day'] . \".\" . $dateArray['month'];\n\t\t\t\tcase 'Y/d/m':\n\t\t\t\t\treturn $dateArray['year'] . \"/\" . $dateArray['day'] . \"/\" . $dateArray['month'];\n\t\t\t}\n\t\t\treturn null;\n\t}", "function text_date_to_iso8601($date){\n\treturn date('Y-m-d',strtotime($date));\n}", "function buildDateString($date_array)\n{\n return $date_array[\"year\"].'-'.$date_array[\"mon\"].'-'.$date_array[\"mday\"];\n}", "public function getDateFromString($date){\n\t\t$date = strtotime($date);\n\t\treturn $date;\n\t}", "function format_date(string $date_string = null, $format = 'd/m/Y') {\n return date_format(new \\DateTime($date_string), $format);\n }", "function format_date(string $date_string = null, $format = 'd/m/Y') {\n return date_format(new \\DateTime($date_string), $format);\n }", "function cfdef_prepare_date_value_for_email( $p_value ) {\n\tif( $p_value != null ) {\n\t\treturn date( config_get( 'short_date_format' ), $p_value ) ;\n\t}\n}", "static public function formatDate($string) {\n if (self::$_static_handler == null) {\n self::$_static_handler = slDatabaseManager::getConnection();\n }\n $format = self::$_static_handler->getDateTimeFormat();\n return date($format, strtotime($string));\n }", "function convertDate_Amj_string($date) \n{\n\tsetlocale (LC_TIME, 'fr_FR','fra'); \n\treturn strftime(\"%A %d %B %Y\", strtotime($date)); \n}", "function format_date($date) {\n return substr($date, 8, 2) . '/' . substr($date, 5, 2) . '/' . substr($date, 0, 4);\n }", "public function get_value($value)\n {\n if (is_null($value))\n return null;\n else\n return date($this->date_format, strtotime($value));\n }", "function convDate($theDate) {\r\n return date(\"Y-m-d H:i:s\", strtotime($theDate));\r\n}", "function sc_us_date_format($date){\n\treturn date('m/d/Y', $date);\n}", "public static function dbDateFormat(string $date): string\n\t{\n\t\t$date = str_replace('/', '-', $date);\n\t\treturn strtotime($date) ?\n\t\t\tdate('Y-m-d', strtotime($date)) :\n\t\t\t'';\n\t}", "function formatDate($date){\n\tif(validateDate($date)){\n\t\t$year = substr($date,0,4);\n\t\t$month = substr($date,4,2);\n\t\t$day = substr($date,6,2);\n\t\treturn $year.C('STR_YEAR').$month.C('STR_MONTH').$day.C('STR_DAY');\n\t}\n\telse\n\t\treturn C('STR_FORMAT_DATE_FAIL');\n}", "public function convertDateToHTML($_date) {\n\t\tif(ereg(\"^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}).*$\",\n\t\t\t$_date, $_arrdt) !== false) {\n\t\t\treturn sprintf(\"%02.2d-%02.2d-%04.4d\",\n\t\t\t\t$_arrdt[3], $_arrdt[2], $_arrdt[1]);\n\t\t\t}\n\t\treturn $_date;\n\t}", "function DBDatetoDate($date, $dateOnly = true)\n\t{\n\n\t\tif ($date == '0000-00-00') return '';\n\n\t\tif ($dateOnly && strtotime($date) != 0) return date('d.m.Y', strtotime($date));\n\t\telse if (strtotime($date) != 0) return date('d.m.Y H:i:s', strtotime($date));\n\n\t}", "public function toDateString()\n {\n return $this->format('Y-m-d');\n }", "function getDate( $date='' ) {\r\n\t\t\t$date = $this->_getDateOrTime( $date, $this->_fmtDate );\r\n\t\t\tif ( $date == 'null' ) {\r\n\t\t\t\treturn $date;\r\n\t\t\t} else {\r\n\t\t\t\treturn 'TO_DATE ( \\'' . $date . '\\', \\'YYYY-MM-DD\\' )';\r\n\t\t\t}\r\n\t\t}", "public function search_engine_client_format_date( $date_str ) {\n\t\treturn \\Elastica\\Util::convertDate( $date_str );\n\t}", "function onlyDate($date) {\r\n\r\n if ($date == null)\r\n $rtn = \"\";\r\n else\r\n $rtn = substr($date,0,10);\r\n\r\n return $rtn;\r\n}", "protected function valueToString($value): string\n {\n if (\\is_string($value)) {\n return $value;\n }\n if (\\is_int($value)) {\n return (string) $value;\n }\n if (\\is_float($value)) {\n return (string) $value;\n }\n return \\gettype($value) . ' - can´t be casted to string';\n }", "public function convert($value): string;", "public static function dateTimeToString(DateTime $date) {\n return $date->format('Y-m-d H:i:sO');\n }", "public static function date(\\DateTime $date): string\n {\n return $date->format('Ymd\\THis');\n }", "function string_format_complete_date( $p_date ) {\r\n\t$t_timestamp = db_unixtimestamp( $p_date );\r\n\treturn date( config_get( 'complete_date_format' ), $t_timestamp );\r\n}", "function format_datetime($value) {\n\t$value = (int)$value;\n\tif($value > 0 )\n\t\treturn date($GLOBALS['i18']['formats']['date_time'],$value);\n\telse\n\t\treturn '';\n}", "function toDate($string, $format){\r\n\t\t$months = ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'];\r\n\r\n\t\t$date = explode(' ', $string)[0];\r\n\t\t$time = substr(explode(' ', $string)[1], 0, 5);\r\n\r\n\t\t$day = explode('-', $date)[2];\r\n\t\t$monthS = explode('-', $date)[1];\r\n\t\t$monthL = $months[intval($monthS) - 1];\r\n\t\t$year = explode('-', $date)[0];\r\n\r\n\t\tif($format == 'short')\r\n\t\t\treturn $day.'/'.$monthS.'/'.$year.' '.$time;\r\n\t\telse\r\n\t\t\treturn $day.' '.$monthL.' '.$year.' '.$time;\r\n\t}", "static function formatDateToString(Carbon $date, $culture = null)\n {\n if ($culture) {\n setlocale(LC_TIME, $culture);\n App::setLocale($culture);\n }\n return $date->formatLocalized('%a %d %b %Y');\n }", "function _elastic_email_format_date($date_field) {\n $data = sprintf('%d/%d/%d', $date_field['month'], $date_field['day'], $date_field['year']);\n $time = sprintf('%s:%s %s', $date_field['hour'], $date_field['minute'], $date_field['ampm']);\n\n return $data . ' ' . $time;\n}", "protected function serializeDate(DateTimeInterface $date): string\n {\n return $date->format('Y-m-d H:i:s');\n }", "protected function serializeDate(DateTimeInterface $date): string\n {\n return $date->format('Y-m-d H:i:s');\n }", "public static function convertToDateTimeToString($date)\n {\n if (!($date instanceof Carbon)) {\n if (is_numeric($date)) {\n // Assume Timestamp\n $date = Carbon::createFromTimestamp($date);\n } else {\n $date = Carbon::parse($date);\n }\n }\n $getTimeZone = TenantSettings::where('TenantId', Auth::user()->TenantId)->first();\n if ($getTimeZone) {\n return $date->setTimezone($getTimeZone->ValueData)->format('jS F Y g:ia');\n } else {\n return $date->setTimezone('UTC')->format('jS F Y g:ia');\n }\n }", "public static function Cast($value, $replacement = \"\")\n {\n if ($value != null && gettype($value) == \"DateTime\") {\n if ((int)DateTime::createFromFormat(\"yyyy-MM-dd\", $value) != 0) {\n return DateTime::createFromFormat(\"yyyy-MM-dd\", $value);\n }\n }\n\n if ($value == null) {\n return $replacement;\n }\n\n return (string)$value;\n\n }", "function aDate($string){\n\n\n\t\t}", "static public function formatDate($date)\n {\n $objDate = new DateTime($date);\n return $objDate->format('d/m/Y');\n }", "function date_sql2en($date)\r\n\t{\r\n\t\tif (!empty($date))\r\n\t\t{\r\n\t\t\t$date = explode(\"-\", $date);\r\n\t\t\t$date_fr = $date[1].\"/\".$date[2].\"/\".$date[0];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$date_fr = \"\";\r\n\t\t}\r\n\t\treturn $date_fr;\r\n\t}", "private function formatDate($date) {\n\t\tif ($date === '' || !$date) {\n\t\t\treturn;\n\t\t}\n\t\tif (DateTime::createFromFormat('Y-m-d', $date)) {\n\t\t\t$formatedDate = $date;\n }elseif (\\Zend_Date::isDate($date, \\Zend_Date::ISO_8601)) {\n $tmpDt = new \\Zend_Date($date, \\Zend_Date::ISO_8601);\n $formatedDate = $tmpDt->toString('Y-MM-dd');\n\t\t} else {\n\t\t\t$tmpDt = DateTime::createFromFormat('d/m/Y', $date);\n\t\t\t$formatedDate = $tmpDt->format('Y-m-d');\n\t\t}\n\t\treturn $formatedDate;\n\t}", "public function formatDate ($date)\n\t{\n\t\tif (!$date) {\n\t\t\treturn '';\n\t\t}\n\t\treturn date('m/d/Y', strtotime($date));\n\t}", "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 o_castString($value) {\n\t\t\treturn Obj::singleton()->castString($value);\n\t\t}", "function dateToDBDate($date)\n\t{\n\n\t\tif (is_numeric($date))\n\t\t{\n\t\t\treturn date('Y-m-d', $date);\n\t\t}\n\t\telse if (preg_match('/\\d{2}\\.\\d{2}\\.\\d{4}/', $date))\n\t\t{\n\t\t\t$arDate = explode('.', $date);\n\n\t\t\treturn $arDate[2].'-'.$arDate[1].'-'.$arDate[0];\n\t\t}\n\t\telse if (strtotime($date) > 0)\n\t\t{\n\t\t\treturn date('Y-m-d', strtotime($date));\n\t\t}\n\n\t\treturn '0000-00-00';\n\n\t}", "function format_data_in($string_date)\n{\n // $formatted_date = \"DATE_FORMAT($db_date_column, '%a, %e %b %Y ')\";\n $temp = strtotime($string_date);\n $date = date('Y-m-d', $temp);\n $date = DateTime::createFromFormat('D, j M Y', $temp)->format('Y-m-d');\n print_r($date);\n return $date;\n}", "public function reverseTransform($dateString)\n {\n if (!$dateString) {\n return;\n }\n return date_create_from_format('d/m/Y', $dateString);\n }", "public function reverseTransform($dateString)\n {\n if (!$dateString) {\n return;\n }\n\n return date_create_from_format('d/m/Y', $dateString);\n }", "function get_str_date( $strdate, $month_as_str=1 )\r\n{\r\n if( $strdate == \"\")\r\n {\r\n $cStr = \"00-00-0000\";\r\n }\r\n else\r\n {\r\n if( getsessionvar(\"db_type\") == \"mysql\" )\r\n\t $cmonth = substr( $strdate, 5, 2);\r\n\r\n if( $month_as_str == 1 )\r\n\t {\r\n\t\t if( $cmonth == \"01\" ) { $cmonth = \"Ene\"; }\r\n\t\t elseif( $cmonth == \"02\" ) { $cmonth = \"Feb\"; }\r\n\t\t elseif( $cmonth == \"03\" ) { $cmonth = \"Mar\"; }\r\n\t\t elseif( $cmonth == \"04\" ) { $cmonth = \"Abr\"; }\r\n\t\t elseif( $cmonth == \"05\" ) { $cmonth = \"May\"; }\r\n\t\t elseif( $cmonth == \"06\" ) { $cmonth = \"Jun\"; }\r\n\t\t elseif( $cmonth == \"07\" ) { $cmonth = \"Jul\"; }\r\n\t\t elseif( $cmonth == \"08\" ) { $cmonth = \"Ago\"; }\r\n\t\t elseif( $cmonth == \"09\" ) { $cmonth = \"Sep\"; }\r\n\t\t elseif( $cmonth == \"10\" ) { $cmonth = \"Oct\"; }\r\n\t\t elseif( $cmonth == \"11\" ) { $cmonth = \"Nov\"; }\r\n\t\t elseif( $cmonth == \"12\" ) { $cmonth = \"Dic\"; }\r\n\t }\r\n\r\n if( getsessionvar(\"db_type\") == \"mysql\" )\r\n $cStr = substr( $strdate, 8, 2) . \"-\" . $cmonth . \"-\" . substr( $strdate, 0, 4);\r\n }\r\n \r\n return $cStr;\r\n}", "private function convertDate($date)\n {\n $strDate = implode(\"-\",array_reverse(explode(\"/\", $date)));\n #CONVERTE AS DATAS DE STRING PARA DATE\n $dateConverted = new \\DateTime($strDate);\n #RETORNA DATA CONVERTIDA\n return $dateConverted;\n }", "function get_date_literal($date) {\n\t$days = array(1 => 'lunes', 2 => 'martes', 3 => 'miércoles', 4 => 'jueves', 5 => 'viernes', 6 => 'sábado', 7 => 'domingo');\n\t$months = array(1 => 'enero', 2 => 'febrero', 3 => 'marzo', 4 => 'abril', 5 => 'mayo', 6 => 'junio', 7 => 'julio', 8 => 'agosto', 9 => 'septiembre', 10 => 'octubre', 11 => 'noviembre', 12 => 'diciembre');\n\t$day = $days[date('N', strtotime($date))];\n\t$date = explode('-', $date);\n\treturn $day . ' ' . intval($date[2]) . ' de ' . $months[intval($date[1])] . ' de ' . intval($date[0]);\n}", "public function formatDateStrf(string $value, string $format): string\n {\n if (strlen($value) > 0) {\n $format = $this->convertZendToStrftime($format);\n if (strtoupper(substr((string)PHP_OS, 0, 3)) == 'WIN') {\n $format = preg_replace('#(?<!%)((?:%%)*)%e#', '\\1%#d', $format);\n }\n\n return date($format, strtotime($value));\n }\n return '';\n }", "function internationalDate($todate)\n\t{\n\t\t$myDate=date_create($todate);\n\t\treturn date_format($myDate, \"m/d/y\");\n\t}", "public static function toStringDateSgbd($pDate)\n {\n return self::changeDateFormat($pDate, 'd/m/Y', 'Y-m-d');\n }", "protected function cnew_convert_date_to_db( $date ) {\r\n $current_date = DateTime::createFromFormat('d/m/Y', $date );\r\n return $current_date ? $current_date->format('Y-m-d') : $current_date;\r\n }", "private function formatDate($date)\n {\n if (!$date instanceof \\DateTime) {\n return date(self::DATE_FORMAT, strtotime($date));\n }\n\n return $date->format(self::DATE_FORMAT);\n }", "function convertdate($date) {\r\n\t$date = strtotime($date);\r\n\treturn date(\"M j, Y g:ia\", $date);\r\n}", "public function formatDate($date = null);", "public static function convert($string) {\n \n if(strpos($string, 'Now') !== false) {\n\n list($date, $format, $exceptions) = self::convertNowString($string);\n\n } else if(strpos($string, 'Today') !== false) {\n\n list($date, $format, $exceptions) = self::convertTodayString($string);\n\n } else if(strpos($string, 'Yesterday') !== false) {\n\n list($date, $format, $exceptions) = self::convertYesterdayString($string);\n\n } else if(strpos($string, 'ago') !== false) {\n\n // Note that these are returning approximate values.\n list($date, $format, $exceptions) = self::convertAgoString($string);\n\n } else if(strpos($string, 'AM') !== false ||strpos($string, 'PM') !== false) {\n\n list($date, $format, $exceptions) = self::convertExactDateString($string);\n\n } else if(strpos($string, ', ') !== false) {\n\n list($date, $format, $exceptions) = self::convertDateNoTimeString($string);\n\n } else if(strpos($string, '/') !== false) {\n\n list($date, $format, $exceptions) = self::convertSlashDateString($string);\n\n } else if(strpos($string, '-') !== false && strlen($string) === 8) {\n\n list($date, $format, $exceptions) = self::convertSearchDateString($string);\n\n } else {\n \n list($date, $format, $exceptions) = self::convertYearString($string);\n\n }\n\n if($date === false || $date === null || $format === null) {\n return null;\n }\n\n $date->setTimeZone(new DateTimeZone(self::$tz_final));\n \n return self::convertDateTimeArray($date, $format, $exceptions);\n \n }", "protected function _formatDate($date_obj) {\n if (is_string($date_obj)) {\n $date_obj = DateTime::createFromFormat('Y-m-d H:i:s', $date_obj);\n }\n return $date_obj->format('d/m/Y');\n }", "public static function get_formatted_date( $date, $invalid = 'unknown' )\n {\n if( is_null( $date ) || !is_string( $date ) ) return $invalid;\n\n $datetime_obj = self::get_datetime_object( $date );\n return $datetime_obj->format( 'l, F jS, Y' );\n }", "function DateIntToStr ($i) {\n\tGlobal $iTimeType;\n\tif ($iTimeType == 1) return date('Y-m-d H:i:s',$i);\n\t\n\t$n = $i % 100;\n\t$i = (int)($i / 100);\n\t$h = $i % 100;\n\t$i = (int)($i / 100);\n\t$d = $i % 50;\n\t$i = (int)($i / 50);\n\t$m = ($i % 20) -1;\n\t$i = (int)($i / 20);\n\t$y = ($i % 1000) + 2000;\n\treturn sprintf (\"%04d-%02d-%02d %02d:%02d\", $y,$m,$d,$h,$n);\n}", "public function convertValue($value)\n {\n // Use date_create to make a DateTime object or return false\n return date_create($value);\n }", "public function formatValueForDatabase($value) {\n\t\tswitch ($this->type) {\n\t\t\tcase 'Date':\n\t\t\t\t/**\n\t\t\t\t * @var \\DateTime $value\n\t\t\t\t */\n\t\t\t\t$value = $value->format('Y-m-d');\n\t\t\t\tbreak;\n\n\t\t\tcase 'DateTime':\n\t\t\t\t/**\n\t\t\t\t * @var \\DateTime $value\n\t\t\t\t */\n\t\t\t\t$value = $value->format('Y-m-d H:i:s');\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $value;\n\t}", "function date_to_str ( $indate, $format=\"\", $show_weekday=true, $short_months=false, $server_time=\"\" ) {\n\tglobal $DATE_FORMAT, $TZ_OFFSET;\n\n\tif ( strlen ( $indate ) == 0 ) {\n\t\t$indate = date ( \"Ymd\" );\n\t}\n\n\t$newdate = $indate;\n\tif ( $server_time != \"\" && $server_time >= 0 ) {\n\t\t$y = substr ( $indate, 0, 4 );\n\t\t$m = substr ( $indate, 4, 2 );\n\t\t$d = substr ( $indate, 6, 2 );\n\t\tif ( $server_time + $TZ_OFFSET * 10000 > 240000 ) {\n\t\t\t$newdate = date ( \"Ymd\", mktime ( 3, 0, 0, $m, $d + 1, $y ) );\n\t\t} else if ( $server_time + $TZ_OFFSET * 10000 < 0 ) {\n\t\t\t$newdate = date ( \"Ymd\", mktime ( 3, 0, 0, $m, $d - 1, $y ) );\n\t\t}\n\t}\n\n\t// if they have not set a preference yet...\n\tif ( $DATE_FORMAT == \"\" )\n\t$DATE_FORMAT = \"__month__ __dd__, __yyyy__\";\n\n\tif ( empty ( $format ) )\n\t$format = $DATE_FORMAT;\n\n\t$y = (int) ( $newdate / 10000 );\n\t$m = (int) ( $newdate / 100 ) % 100;\n\t$d = $newdate % 100;\n\t$date = mktime ( 3, 0, 0, $m, $d, $y );\n\t$wday = strftime ( \"%w\", $date );\n\n\tif ( $short_months ) {\n\t\t$weekday = weekday_short_name ( $wday );\n\t\t$month = month_short_name ( $m - 1 );\n\t} else {\n\t\t$weekday = weekday_name ( $wday );\n\t\t$month = month_name ( $m - 1 );\n\t}\n\t$yyyy = $y;\n\t$yy = sprintf ( \"%02d\", $y %= 100 );\n\n\t$ret = $format;\n\t$ret = str_replace ( \"__yyyy__\", $yyyy, $ret );\n\t$ret = str_replace ( \"__yy__\", $yy, $ret );\n\t$ret = str_replace ( \"__month__\", $month, $ret );\n\t$ret = str_replace ( \"__mon__\", $month, $ret );\n\t$ret = str_replace ( \"__dd__\", $d, $ret );\n\t$ret = str_replace ( \"__mm__\", $m, $ret );\n\n\tif ( $show_weekday )\n\treturn \"$weekday, $ret\";\n\telse\n\treturn $ret;\n}", "function convertdate($date) {\n\t$date = strtotime($date);\n\treturn date(\"M j, Y g:ia\", $date);\n}", "function mysql_to_date ($datestr) {\n\t\t$tempDate=array(substr($datestr,0,4),substr($datestr,4,2),substr($datestr,6,2));\n\t\t$tempTime=array(substr($datestr,8,2),substr($datestr,10,2),substr($datestr,12,2));\n\t\t$datestr=implode(\"-\",$tempDate).\" \".implode(\":\",$tempTime);\n\t\treturn $datestr;\n\t}", "function extract_date_from_str($date) {\n\t\t$year = substr($date, 0, 4);\n\t\t$month = substr($date, 4, 2);\n\t\t$day = substr($date, 6, 2);\n\n\t\t$hour = substr($date, 9, 2);\n\t\t$minutes = substr($date, 11, 2);\n\t\t$seconds = substr($date, 13, 2);\n\n\t\treturn $year . \"/\" . $month . \"/\" . $day . \"_\" . $hour . \":\" . $minutes . \":\" . $seconds;\n\t}", "function dateFormat($date)\n{\n\t$date_formated = '';\n \tif($date!='')\n \t{\n \t$date_formated = date('Y-m-d',strtotime($date));\n \t}\n \treturn $date_formated; \n}" ]
[ "0.7288859", "0.72115856", "0.6889615", "0.68339664", "0.67992777", "0.6742052", "0.6557343", "0.6550465", "0.65400857", "0.64952064", "0.6492495", "0.64791363", "0.64006114", "0.6277639", "0.62688684", "0.6243748", "0.62245715", "0.62039554", "0.61411333", "0.61359996", "0.607908", "0.6059962", "0.5985072", "0.5980969", "0.5968913", "0.5948915", "0.59382445", "0.593443", "0.59260917", "0.5910184", "0.59084374", "0.58982646", "0.58866334", "0.5884678", "0.58601654", "0.58501357", "0.5848422", "0.58421654", "0.5835619", "0.5835619", "0.5828485", "0.5816444", "0.5808417", "0.58015865", "0.5785864", "0.57826525", "0.57624394", "0.5760962", "0.5753153", "0.5745553", "0.5739776", "0.57319623", "0.5719836", "0.57172674", "0.56981367", "0.56955814", "0.5682273", "0.56811726", "0.56795037", "0.56709576", "0.56708276", "0.5670398", "0.5663639", "0.5663159", "0.56594276", "0.56594276", "0.5654275", "0.5646325", "0.56417316", "0.56372756", "0.5630227", "0.5628174", "0.561814", "0.56105155", "0.56053436", "0.55994004", "0.5586535", "0.5583979", "0.5583957", "0.5582611", "0.55780596", "0.55743384", "0.55693555", "0.5558477", "0.55306005", "0.5530021", "0.55276924", "0.5522771", "0.55198586", "0.5516758", "0.55131197", "0.5500269", "0.54938185", "0.5492586", "0.54911715", "0.54910797", "0.54761225", "0.54727703", "0.54720557", "0.54718184" ]
0.8330341
0
= static int date_to_unix_timestamp(date_string $value)
public static function date_to_unix_timestamp($value) { if (!preg_match('/(\d\d\d\d)-(\d\d)-(\d\d)/', $value, $m)) return 0; return mktime(0, 0, 0, $m[2], $m[3], $m[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _unix_timestamp($date) { return strtotime($date); }", "public static function datetime_to_unix_timestamp($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)\\s(\\d\\d):(\\d\\d):(\\d\\d)/', $value, $m)) return 0;\n\t\treturn mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]);\n\t}", "function _convert_to_unix_timestamp($timestamp)\n\t{\n\t\tlist($time, $date) = explode('.', $timestamp);\n\t\t\n\t\t// breakdown time\n\t\t$hour = substr($time, 0, 2);\n\t\t$minute = substr($time, 2, 2);\n\t\t$second = substr($time, 4, 2);\n\t\t\n\t\t// breakdown date\n\t\t$day = substr($date, 0, 2);\n\t\t$month = substr($date, 2, 2);\n\t\t$year = substr($date, 4, 2);\n\t\t\n\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\n\t}", "function datetime_mysql2unix($str) {\n\tlist($date, $time) = explode(' ', $str);\n\tlist($year, $month, $day) = explode('-', $date);\n\tlist($hour, $minute, $second) = explode(':', $time);\n\n\t$timestamp = mktime((int)$hour, (int)$minute, (int)$second, (int)$month, (int)$day, (int)$year);\n\n\treturn $timestamp;\n}", "public function fw_convert_date_to_timestamp($date_string) {\n if ($date_string) {\n $timestamp = date(\"U\", strtotime($date_string));\n return $timestamp;\n }\n else {\n return NULL;\n }\n }", "function unixtimestamp($date, $rule='dd/mm/YYYY') {\n\n $_date = null;\n $_date = preg_split('/[\\/\\-]/', $date);\n if ($rule=='dd/mm/YYYY' || $rule=='dd/mm/yy')\n $_date = $_date[2].'-'.$_date[1].'-'.$_date[0];\n if ($rule=='mm/dd/YYYY' || $rule=='mm/dd/yy')\n $_date = $_date[2].'-'.$_date[0].'-'.$_date[1];\n if ($rule=='YYYY/mm/dd' || $rule=='yy/mm/dd')\n $_date = $date;\n\n $unix = strtotime($_date);\n return $unix;\n}", "function scrappy_dateToTimestamp($string)\n{\n $check = (is_int($string) OR is_float($string)) ? $string : (string) (int) $string;\n\tif (($check === $string) AND ( (int) $string <= PHP_INT_MAX) AND ( (int) $string >= ~PHP_INT_MAX)) return $string;\n return (bool)strtotime($string) ? strtotime($string) : $string;\n}", "public static function unixDateFromString($string, $format = \"dd/mm/yyyy\")\n\t{\n\t}", "protected function dateToTimestamp(string $date): int\n {\n return Carbon::parse($date)->getTimestamp();\n }", "function conv_date_unix($date = NULL, $format = 'Y-m-d')\n{\n\t$pdate = date_parse_from_format($format, $date);\n\t\n\t// make sure date is valid\n\tif (checkdate($pdate['month'], $pdate['day'], $pdate['year']))\n\t{\n\t\treturn mktime($pdate['hour'], $pdate['minute'], $pdate['second'], $pdate['month'], $pdate['day'], $pdate['year']);\n\t}\n\telse // bad date, return false\n\t{\n\t\treturn false;\n\t}\n}", "function cata_ts2unixts($timestamp) {\n\tif (strlen($timestamp) == 14) {\n\t\t$year = intval(substr($timestamp, 0, 4));\n\t\t$month = intval(substr($timestamp, 4, 2));\n\t\t$day = intval(substr($timestamp, 6, 2));\n\t\t$hour = intval(substr($timestamp, 8, 2));\n\t\t$minute = intval(substr($timestamp, 10, 2));\n\t\t$second = intval(substr($timestamp, 12, 2));\n\n\t\treturn mktime($hour, $minute, $second, $month, $day, $year);\n\t} else {\n\t\treturn 0;\n\t}\n}", "function MysqlToUnix($timestamp)\n\t{\n\t\t// and returns the unix timestamp in seconds since 1970\n\t\t$timestamp = (string)$timestamp;\n\t\t$yyyy = substr($timestamp, 0, 4);\n\t\t$month = substr($timestamp, 4, 2);\n\t\t$dd = substr($timestamp, 6, 2);\n\t\t$hh = substr($timestamp, 8, 2);\n\t\t$mm = substr($timestamp, 10, 2);\n\t\t$ss = substr($timestamp, 12, 2);\n\t\t$time = mktime($hh, $mm, $ss, $month, $dd, $yyyy);\n\t\treturn $time;\n\t}", "function date_to_ts($value) {\n\treturn strtotime($value);\n}", "private function ical_date_to_unix($ical_date)\n\t{\n\t$ical_date = preg_replace(['/T/', '/Z/'], '', $ical_date); // remove T and Z from strig\n\n\tif (preg_match('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})([0-9]{0,2})/', $ical_date, $date))\n\t{\n\n\t\tif ($date[1] <= 1970)\n\t\t{\n\t\t$date[1] = 1971; // FIXME UNIX timestamps can't deal with pre 1970 dates\n\t\t}\n\n\t\treturn mktime((int) $date[4], (int) $date[5], (int) $date[6], (int) $date[2], (int) $date[3], (int) $date[1]);\n\t}\n\telse\n\t{\n\t\treturn null;\n\t}\n\t}", "public static function unix_timestamp_to_datetime($value)\n\t{\n\t\treturn date(conf(\"format.datetime\"), $value);\n\t}", "function dateToTimestamp($date){\n\t$dia=substr($date,0,2);\n\t$mes=substr($date,3,2);\n\t$ano=substr($date, 6,4);\t\n\t\n\t$timestamp= mktime(0,0,0,$mes,$dia,$ano);\n\treturn $timestamp;\n }", "public static function convertQuickformDateToUnixTimestamp(array $value) {\n\n\t\t/*\n\t\t D = Short names of days\n\t\t l = Long names of days\n\t\t d = Day numbers\n\t\t M = Short names of months\n\t\t F = Long names of months\n\t\t m = Month numbers\n\t\t Y = Four digit year\n\t\t h = 12 hour format\n\t\t H = 23 hour format\n\t\t i = Minutes\n\t\t s = Seconds\n\t\t a = am/pm\n\t\t A = AM/PM\n\n\t\t see: http://midnighthax.com/quickform.php\n\n\t\t */\n\t\t$day = max($value['D'], $value['l'], $value['d'], 1);\n\t\t$month = max($value['M'], $value['F'], $value['m'], 1);\n\t\t$year = $value['Y'];\n\t\t// TODO: support other formats\n\n\t\tif (empty($day) || empty($month) || empty($year)) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn mktime(0, 0, 0, $month, $day, $year);\n\t\t}\n\t}", "function crystal_sqlite_from_unixtime($timestamp)\n {\n $timestamp = trim($timestamp);\n if (!preg_match(\"/^[0-9]+$/is\", $timestamp))\n $ret = strtotime($timestamp);\n else\n $ret = $timestamp;\n \n $ret = date(\"Y-m-d H:i:s\", $ret);\n crystal_sqlite_debug(\"FROM_UNIXTIME ($timestamp) = $ret\");\n return $ret;\n }", "function en2timestamp($date,$sep='-') {\n\n\n $date = explode($sep,$date);\n $unix = mktime(0,0,0,$date[1],$date[2],$date[0]);\n\n\n return $unix;\n\n }", "function date_to_timestamp($d) {\n return mktime(substr($d, 8, 2), // hour\n substr($d, 10, 2), // minute\n 0, // second\n substr($d, 4, 2), // month\n substr($d, 6, 2), // day\n substr($d, 0, 4)); // year\n}", "function date2Timestamp($date) {\r\n //2003-04-12 00:05:43\r\n if ($date == null) {\r\n return 0;\r\n }\r\n list($y, $mth, $d, $h, $min, $sec) = sscanf($date,\"%d-%d-%d %d:%d:%d\");\r\n return mktime ( $h, $min, $sec, $mth, $d, $y);\r\n}", "public abstract function fromUnixtime ($timestamp);", "public static function ADToUnixTimestamp($date){\n\t\tif (strpos($date, '.') === false){\n\t\t\t$win_secs = substr($date,0,strlen($date)-7); // divide by 10 000 000 to get seconds\n\t\t\treturn ($win_secs - 11644473600); // 1.1.1600 -> 1.1.1970 difference in seconds\n\t\t}else{\n\t\t\t// La date dans l'AD est déjà réglée selon le fuseau horaire dans lequel se trouve le serveur, pour obtenir un timestamp correct, il faut remettre tricher avec les fuseaux horaires\n\t\t\tdate_default_timezone_set('UTC');\n\t\t\t$tab = explode('.', $date);\n\t\t\tlist($millenium, $year, $month, $day, $hours, $minutes, $seconds) = str_split($tab[0], 2);\n\t\t\t$time = mktime($hours, $minutes, $seconds, $month, $day, $millenium.$year);\n\t\t\tdate_default_timezone_set('Europe/Paris');\n\t\t\treturn (int)$time;\n\t\t}\n\t}", "public function convertDateToUnix()\n {\n if (!is_numeric($this->rent_available_date) && $this->rent_available_date != '') {\n $this->rent_available_date = strtotime($this->rent_available_date);\n }\n }", "function dbdatetime2unix ($tanggal = '') {\r\n list($year,$month,$day,$hour,$minute,$second) = sscanf($tanggal,'%4d-%2d-%2d %2d:%2d:%2d');\r\n return mktime($hour,$minute,$second,$month,$day,$year);\r\n}", "function datetime_unix2mysql($timestamp) {\n\treturn date('Y-m-d H:i:s', $timestamp);\n}", "function mysql_to_unix($time = '')\n\t{\n\t\t// since the formatting changed with MySQL 4.1\n\t\t// YYYY-MM-DD HH:MM:SS\n\n\t\t$time = str_replace('-', '', $time);\n\t\t$time = str_replace(':', '', $time);\n\t\t$time = str_replace(' ', '', $time);\n\n\t\t// YYYYMMDDHHMMSS\n\t\treturn mktime(\n\t\t\t\t\t\tsubstr($time, 8, 2),\n\t\t\t\t\t\tsubstr($time, 10, 2),\n\t\t\t\t\t\tsubstr($time, 12, 2),\n\t\t\t\t\t\tsubstr($time, 4, 2),\n\t\t\t\t\t\tsubstr($time, 6, 2),\n\t\t\t\t\t\tsubstr($time, 0, 4)\n\t\t\t\t\t\t);\n\t}", "function mysqldatetime_to_unix($datetime = '')\r\n {\r\n // function is only applicable for valid MySQL DATETIME (19 characters) and DATE (10 characters)\r\n $l = strlen($datetime);\r\n if(!($l == 10 || $l == 19))\r\n {\r\n return 0;\r\n }\r\n \r\n $date = $datetime;\r\n $hours = 0;\r\n $minutes = 0;\r\n $seconds = 0;\r\n\r\n // DATETIME only\r\n if($l == 19)\r\n {\r\n list($date, $time) = explode(\" \", $datetime);\r\n list($hours, $minutes, $seconds) = explode(\":\", $time);\r\n }\r\n\r\n list($year, $month, $day) = explode(\"-\", $date);\r\n\r\n return mktime($hours, $minutes, $seconds, $month, $day, $year);\r\n }", "function str2date($in){\n\n\t$t = split(\"/\",$in);\n\n\tif (count($t)!=3) return -1;\n\n\tif (!is_numeric($t[0])) return -1;\n\tif (!is_numeric($t[1])) return -2;\n\tif (!is_numeric($t[2])) return -3;\n\n\tif ($t[2]<1902 || $t[2]>2037) return -3;\n\n\treturn mktime (0,0,0, $t[1], $t[0], $t[2]);\n}", "public function unix_time($date, $is_start= true)\n {\n $date = explode('-', $date);\n if ($is_start === false) $date = strtotime($date[2].'/'.$date[1].'/'.$date[0].' 23:59:59');\n else $date = strtotime($date[2].'/'.$date[1].'/'.$date[0].' 00:00:00');\n return $date;\n }", "public function convertToUnix($varValue,$objDC=null)\n\t{\n\t\tif(empty($varValue))\n\t\t{\n\t\t\treturn $varValue;\n\t\t}\n\t\t\n\t\t$varValue = deserialize($varValue);\n\t\t\n\t\tif(!is_array($varValue))\n\t\t{\n\t\t\t$varValue = explode(',',$varValue);\n\t\t}\n\t\t\n\t\t$strFormat = 'm/d/Y';\n\t\tif(strlen($objDC->customFormat) > 0)\n\t\t{\n\t\t\t$strFormat = $objDC->customFormat;\n\t\t}\n\t\t\n\t\t$arrReturn = array();\n\t\tforeach($varValue as $value)\n\t\t{\n\t\t\t// convert date formats to unix timestamps\n\t\t\tif(is_string($value) && !is_numeric($value) && !is_int($value))\n\t\t\t{\n\t\t\t\t$objDate = new \\Date($value,$strFormat);\n\t\t\t\t$value = $objDate->__get('tstamp');\n\t\t\t}\n\t\t\t$arrReturn[] = $value;\n\t\t}\n\t\t\n\t\t// sort values\n\t\tsort($arrReturn);\n\t\t\n\t\treturn $arrReturn;\n\t}", "function date_sql2timestamp($date)\r\n\t{\r\n\t\t$date = explode(\"-\", $date);\r\n\r\n\t\t$timestamp = mktime(0, 0, 0, $date[1], $date[2], $date[0]);\r\n\t\treturn $timestamp;\r\n\t}", "function timestamp($date){\n\t \n\t$return = strtotime($date);\n\treturn $return;\n}", "function shadow_to_unixtime($t) {\n return (int)($t * 24 * 60 * 60);\n}", "public static function dateToTimestamp ($date)\n\t{\n\t\n\t\treturn $date != '0000-00-00' ? \n\t\t\tmktime (\n\t\t\t\n\t\t\t\t0,\n\t\t\t\t0,\n\t\t\t\t1,\n\t\t\t\tsubstr ($date, 5, 2),\n\t\t\t\tsubstr ($date, 8, 2),\n\t\t\t\tsubstr ($date, 0, 4)\n\t\t\t \n\t\t): false;\n\t\n\t}", "function mkUnixTimestampFromDateTime( $datetime ) {\n\t\n\t$year\t\t\t= substr( $datetime, 0, 4 );\n\t$month\t\t\t= substr( $datetime, 4, 2 );\n\t$day\t\t\t= substr( $datetime, 6, 2 );\n\t$hour\t\t\t= substr( $datetime, 8, 2 );\n\t$min\t\t\t= substr( $datetime, 10, 2 );\n\t$sec\t\t\t= substr( $datetime, 12, 2 );\n\t\n\t$timestamp\t\t= mktime( $hour, $min, $sec, $month, $day, $year, -1 );\n\t\n\treturn $timestamp;\n}", "protected function _makeTimestamp($string)\n {\n if (empty($string)) {\n // use \"now\":\n $time = time();\n } elseif (preg_match('/^\\d{14}$/', $string)) {\n // it is mysql timestamp format of YYYYMMDDHHMMSS? \n $time = mktime(\n substr($string, 8, 2),\n substr($string, 10, 2),\n substr($string, 12, 2),\n substr($string, 4, 2),\n substr($string, 6, 2),\n substr($string, 0, 4)\n );\n \n } elseif (is_numeric($string)) {\n // it is a numeric string, we handle it as timestamp\n $time = (int)$string;\n \n } else {\n // strtotime should handle it\n $time = strtotime($string);\n if ($time == -1 || $time === false) {\n // strtotime() was not able to parse $string, use \"now\":\n $time = time();\n }\n }\n \n return $time;\n }", "function dateYMD_toTimestamp($strDate) {\n $date = new DateTime($strDate);\n return $date->getTimestamp();\n}", "public static function unix_time($timestamp, ORM $object = NULL)\n {\n return (int) $timestamp * 1000;\n }", "public static function get_timestamp($value)\n\t{\n\t\t$date = isset($value[\"date\"]) ? $value[\"date\"] : \"\";\n\t\t$time = isset($value[\"time\"]) ? $value[\"time\"] : \"\";\n\t\t$day = $month = $year = $hour = $min = 0;\n\n\t\tif (!empty($date))\n\t\t{\n\t\t\tlist($day, $month, $year) = explode(\".\", $date, 3);\n\t\t}\n\n\t\tif (!empty($time))\n\t\t{\n\t\t\tlist($hour, $min) = explode(\":\", $time, 2);\n\t\t}\n\n\t\t$timestamp = $year ? mktime((int)$hour, (int)$min, 0, (int)$month, (int)$day, (int)$year) : 0;\n\t\treturn $timestamp;\n\t}", "function date_to_timestamp($date)\n {\n $with_time = explode(' ', $date);\n $date = explode('/', $with_time[0]);\n\n if (count($date) == 3) {\n $hour = null;\n $minutes = null;\n\n if (isset($with_time[1])) {\n $time = explode(':', $with_time[1]);\n\n $hour = $time[0];\n $minutes = $time[1];\n }\n\n if ($timestamp = \\Carbon\\Carbon::create($date[2], $date[1], $date [0], $hour, $minutes)) {\n return $timestamp->format(\\DateTime::RFC3339);\n }\n }\n }", "function jd_to_unix($jd) {\n\t\t$val=(($jd-UNIX_EPOCH) * SECS_IN_DAY * 1000);\n\t\treturn ( round($val/1000) ) ;\n\t}", "function fechaDesdeUnix($fecha){\n\t$fecha2 = date('Y-m-d H:i:s', $fecha);\n\treturn $fecha2;\n}", "function MakeDateForDb($date)\n\t{\n\t\tif (strpos($date, '-'))\n\t\t{\n\t\t\t$dateArray = explode('-', $date);\n\t\t}\n\t\telse if (strpos($date, '/'))\n\t\t{\n\t\t\t$dateArray = explode('/', $date);\n\t\t}\n\t\telse\n\t\t{\n echo ERROR_DOB;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$dateArray = explode('-', $date);\n\t\t// $dateArray is somethink like [0]=01, [1]=22, [2]=1975\n\t\t// make a unix timestamp out of the original date string.\n\t\t$timestamp = mktime(0, 0, 0, $dateArray[0], $dateArray[1], $dateArray[2]);\n\t\treturn $timestamp;\n\t}", "function convert_timestamp($timestamp){ \n $limit=date(\"U\"); \n $limiting=$timestamp-$limit; \n return date (\"Ymd\", mktime (0,0,$limiting)); \n}", "private static function processInputAsDateString() {\n $unix = strtotime(self::$input);\n\n if ($unix) { \n self::$timestamp = $unix;\n self::setDateFromTimestamp(self::$timestamp);\n } else {\n self::setMessage(\"Sorry. Your input was invalid.\");\n }\n }", "public function toUnix(\n Chronos|ChronosDate|DateTimeInterface|string|int $dateString,\n DateTimeZone|string|null $timezone = null\n ): string {\n return (new DateTime($dateString, $timezone))->toUnixString();\n }", "function convert_local_date_to_unix( $time=array() )\n {\n \t//-----------------------------------------\n \t// Get the local offset\n \t//-----------------------------------------\n \t\n \t$offset = $this->get_time_offset();\n \t$time = gmmktime( intval($time['hour']), intval($time['minute']), 0, intval($time['month']), intval($time['day']), intval($time['year']) );\n \t\n \treturn $time - $offset;\n }", "public function convert_ldap_to_epoch($ldap_date=false) {\n if(empty($ldap_date)) return 0;\n $years_from_1601_to_1970 = 1970 - 1601;\n $days_from_1601_to_1970 = $years_from_1601_to_1970 * 365;\n $days_from_1601_to_1970 += ($years_from_1601_to_1970 / 4); // leap years\n $days_from_1601_to_1970 -= 3; // non-leap centuries (1700,1800,1900). 2000 is a leap century\n $seconds_from_1601_to_1970 = $days_from_1601_to_1970 * 24 * 60 * 60;\n $total_seconds_since_1601 = ($ldap_date / 10000000);\n $total_seconds_since_1970 = $total_seconds_since_1601 - $seconds_from_1601_to_1970;\n \n return $total_seconds_since_1970;\n }", "private function makeTimestamp($date) \n\t{\n\t\tglobal $user;\n\n\t\t$this->stamp = strtotime($date);\n\t\treturn ($this->stamp);\n\t}", "public static function timeStringToStamp($string)\r\n {\r\n return strtotime($string);\r\n }", "static public function timestamp($value) {\n // Default empty values to now\n if (empty($value)) {\n return time();\n }\n\n // Does it look like it's already a timestamp? Just return it\n if (is_numeric($value)) {\n return $value;\n }\n\n $time = strtotime($value);\n if ($time == FALSE) {\n // Handles form YYYY-MM-DD HH:MM:SS.garbage\n if (drupal_strlen($value) > 19) {\n $time = strtotime(drupal_substr($value, 0, 19));\n }\n }\n return $time;\n }", "public static function dateFromVal($date) {\n return strtotime($date);\n }", "public static function stringToSerial($dateString) {\n $unixTime = strtotime($dateString);\n $unixTime/= Date::$secPerDay;\n return $unixTime+= Date::$unixBegin;\n }", "function timestamp_from_mysql($timestamp)\n{\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\n\tif (sizeof($regs)>1)\n\t{\n\t\tif (sizeof($regs)>4)\n\t\t{\n\t\t\t$date=mktime($regs[4],$regs[5],$regs[6],$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$date=mktime(0,0,0,$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t}\n\telse\n\t{\n\t\t$date=0;\n\t}\n\treturn $date;\n}", "function convert_time($value)\n\t{\n\t\t$dateLargeInt=$value; // nano secondes depuis 1601 !!!!\n\t\t$secsAfterADEpoch = $dateLargeInt / (10000000); // secondes depuis le 1 jan 1601\n\t\t$ADToUnixConvertor=((1970-1601) * 365.242190) * 86400; // UNIX start date - AD start date * jours * secondes\n\t\t$unixTimeStamp=intval($secsAfterADEpoch-$ADToUnixConvertor); // Unix time stamp\n\t\treturn $unixTimeStamp;\n\t}", "function utime2timestamp($string2format) {\n \t\treturn date(\"YmdHis\",$string2format);\n \t}", "function variant_date_from_timestamp($timestamp) {}", "function variant_date_to_timestamp($variant) {}", "public static function toUnix($time) {\n\t\tif (!$time) {\n\t\t\treturn time();\n\n\t\t} else if ($time instanceof DateTime) {\n\t\t\treturn $time->format('U');\n\t\t}\n\n\t\treturn is_string($time) ? strtotime($time) : (int) $time;\n\t}", "public static function convertDateToTimestamp($strValue)\n {\n if (empty($strValue))\n return;\n if (self::isDateTemplate($strValue))\n $strMethod = 'convertDateTemplateToTimestamp';\n elseif (self::isDateBase($strValue))\n $strMethod = 'convertDateBaseToTimestamp';\n elseif (self::isDateWs($strValue))\n $strMethod = 'convertDateWsToTimestamp';\n else\n return;\n return self::$strMethod($strValue);\n }", "public function convertToUnix($string)\n\t{\n\t\treturn str_replace(array(\"\\r\\n\", \"\\r\"), \"\\n\", $string);\n\t}", "public function timestamp_format($format_str = false, $date_str=false)\n\t{\n\t\tif (empty($format_str))\n\t\t\t$format_str = self::date_format(); # fetch if not set\n\n\t\t# use now as date if nothing supplied as input\n\t\t$date_str = empty($date_str) ? date($format_str) : $date_str;\n\t\t$format_str = trim($format_str);\n\t\t$timestamp_format = false;\n\t\tif ($format_str == 'm-d-Y H:i:s') {\n\t\t\t$date_str = str_replace('-', '/', $date_str);\n\t\t}\n\t\treturn strtotime($date_str);\n\t}", "public function getUnixTimestamp() : int\n {\n return $this->time->getTimestamp();\n }", "function toUnix($local = false)\n\t{\n\t\t$date = null;\n\t\tif ($this->_date !== false) {\n\t\t\t$date = ($local) ? $this->_date + $this->_offset : $this->_date;\n\t\t}\n\t\treturn $date;\n\t}", "public function set($value)\n\t{\n\t\tif (FALSE !== strtotime($value))\n\t\t{\n\t\t\treturn strtotime($value);\n\t\t}\n\t\t// Already a timestamp?\n\t\telseif (is_numeric($value))\n\t\t{\n\t\t\treturn (int) $value;\n\t\t}\n\n\t\treturn $value;\n\t}", "function safestrtotime($strInput)\n /* \n Takes a date between 1900 and 1969 and converts it to a usable,\n negative UNIX time stamp. doesn't work on pre-1900 dates.\n\n http://nosheep.net/story/php-strtotime-limitation/\n */\n\n{\n $iVal = -1;\n for ($i=1900; $i<=1969; $i++)\n {\n // Check for this year string in date\n $strYear = (string)$i;\n if (!(strpos($strInput, $strYear)===false))\n\t{\n\t $replYear = $strYear;\n\t $yearSkew = 1970 - $i;\n\t $strInput = str_replace($strYear, '1970', $strInput);\n\t}\n }\n $iVal = strtotime($strInput);\n if ($yearSkew> 0)\n {\n $numSecs = (60 * 60 * 24 * 365 * $yearSkew);\n $iVal = $iVal - $numSecs;\n $numLeapYears = 0; // determine number of leap years in period\n for ($j=$replYear; $j<=1969; $j++)\n\t{\n\t $thisYear = $j;\n\t $isLeapYear = false;\n\t // Is div by 4?\n\t if (($thisYear % 4) == 0)\n\t {\n\t $isLeapYear = true;\n\t }\n\t // Is div by 100?\n\t if (($thisYear % 100) == 0)\n\t {\n\t $isLeapYear = false;\n\t }\n\t // Is div by 1000?\n\t if (($thisYear % 1000) == 0)\n\t {\n\t $isLeapYear = true;\n\t }\n if ($isLeapYear == true)\n {\n\t$numLeapYears++;\n }\n\t}\n $iVal = $iVal - (60 * 60 * 24 * $numLeapYears);\n }\n return $iVal;\n}", "private function relativeDateToTimestamp($str)\n {\n $date = new DateTime();\n\n // In case of update date, replace it by the regular relative date first word\n $str = str_replace($this->i8n('relative-date-alt-prefixes'), $this->i8n('local-time-relative')[0], $str);\n\n $str = $this->removeRelativeDateSuffixes($str);\n\n $search = $this->i8n('local-time-relative');\n\n $replace = [\n '-',\n 'minute',\n 'hour',\n 'day',\n 'month',\n 'year',\n ''\n ];\n $date->modify(str_replace($search, $replace, $str));\n return $date->getTimestamp();\n }", "function get_unix_time()\n {\n return $this->timestamp;\n }", "public static function getTimestampFromPaylineDate($date)\n {\n $hour = $minutes = $seconds = 0;\n list($day, $month, $year) = explode('/', $date);\n if (strpos($year, ':')) {\n list($year, $hour) = explode(' ', $year);\n $timestamp = explode(':', $hour);\n if (sizeof($timestamp) == 3) {\n list($hour, $minutes, $seconds) = explode(':', $hour);\n } else {\n list($hour, $minutes) = explode(':', $hour);\n $seconds = 0;\n }\n }\n\n return mktime((int)$hour, (int)$minutes, (int)$seconds, (int)$month, (int)$day, (int)$year);\n }", "public static function convertDateBaseToTimestamp($strValue)\n {\n return self::convertDateToTimestampAction($strValue, self::TYPE_DATE_BASE);\n }", "public static function string_to_date($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.date\"), $value, $m)) return '0000-01-01';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2];\n\t}", "function shadow_from_unixtime($t=null) {\n if($t === null)\n $t = time();\n\n return (int)($t / 24 / 60 / 60);\n}", "function convert_timestamp($timestamp)\n\t{\n\t\t$timestamp_bits = explode('T', $timestamp);\n\n\t\tif(isset($timestamp_bits[0], $timestamp_bits[0])):\n\t\t\t$date_bits = explode('-', $timestamp_bits[0]);\n\t\t\t$time_bits = explode(':', $timestamp_bits[1]);\n\t\t\t$year = $date_bits[0];\n\t\t\t$month = $date_bits[1];\n\t\t\t$day = $date_bits[2];\n\t\t\t$hour = $time_bits[0];\n\t\t\t$minute = $time_bits[1];\n\t\t\t$second = $time_bits[2];\n\n\t\t\treturn mktime($hour,$minute,$second, $month, $day, $year);\n\t\tendif;\n\n\t\treturn false;\n\n\t}", "public function getTimestampUnix()\r\n {\r\n if ($this->month && $this->day && $this->year)\r\n {\r\n return mktime($this->hour, $this->minute, $this->second, $this->month, $this->day, $this->year);\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }", "protected function createTimestampFromDate($date_field) {\n // date of event if existing, else current time\n if ($date_field != \"\") {\n $date_field = trim($date_field);\n // Assuming dd/mm/yy or dd-mm-yy\n $dateParts = explode(\"/\", $date_field);\n if (sizeof($dateParts) == 1) {\n $dateParts = explode(\"-\", $date_field);\n }\n if ($this -> options['date_format'] == \"MM/DD/YYYY\") {\n $timestamp = mktime(0,0,0,$dateParts[0],$dateParts[1],$dateParts[2]);\n } else if ($this -> options['date_format'] == \"YYYY/MM/DD\") {\n $timestamp = mktime(0,0,0,$dateParts[2],$dateParts[0],$dateParts[1]);\n } else {\n $timestamp = mktime(0,0,0,$dateParts[1],$dateParts[0],$dateParts[2]);\n }\n return $timestamp;\n } else {\n return \"\";\n }\n }", "public static function convertUnixToReadableFormat($val)\n {\n\n// Grab the milliseconds as the initial value mod 1000\n $milliseconds = $val % 1000;\n\n// Divide by 1000 to obtain the actual timestamp\n $ts = intval($val / 1000);\n\n// Parse into a DateTime object\n $date = DateTime::createFromFormat('U', $ts);\n\n// Formatted output\n return $date->format('D, d M Y H:i:s');\n }", "public function from_unixtime($field, $format){\n\t\t//convert to ISO time\n\t\t$date = date(\"Y-m-d H:i:s\", $field);\n\t\t//now submit to dateformat\n\t\treturn $self->dateformat($date, $format);\n\t}", "function unix_to_jd($t) {\n\t\treturn ( UNIX_EPOCH + t / SECS_IN_DAY);\n\t}", "function custom_unixtimesamp ( $post_id ) {\r\n if ( get_post_type( $post_id ) == 'event_type' ) {\r\n\t$event_date = get_post_meta($post_id, 'event_date', true);\r\n\r\n\t\tif($event_date) {\r\n\t\t\t$dateparts = explode('/', $event_date);\r\n\t\t\t$newdate1 = strtotime(date('d.m.Y H:i:s', strtotime($dateparts[1].'/'.$dateparts[0].'/'.$dateparts[2])));\r\n\t\t\tupdate_post_meta($post_id, 'unixstartdate', $newdate1 );\r\n\t\t}\r\n\t}\r\n}", "function sc_strtotime($date){\n\t$CI =& get_instance();\n\n\tif($CI->session->userdata('locale') == 'uk')\n\t\treturn strtotime(str_replace('/', '-', $date));\n\n\treturn strtotime($date);\n}", "function getTimestamp($data) {\r\n\t// yyyy-mm-dd HH:ii:ss\r\n\t// 0123456789012345678\r\n\t$h = substr($data, 11, 2);\r\n\t$i = substr($data, 14, 2);\r\n\t$s = substr($data, 17, 2);\r\n\t$m = substr($data, 5, 2);\r\n\t$d = substr($data, 8, 2);\r\n\t$y = substr($data, 0, 4);\r\n\t//**************\r\n\treturn mktime($h, $i, $s, $m, $d, $y);\r\n}", "public static function convertDateWsToTimestamp($strValue)\n {\n return self::convertDateToTimestampAction($strValue, self::TYPE_DATE_WS);\n }", "function tstamptotime($tstamp) {\n // 1984-09-01T14:21:31Z\n sscanf($tstamp,\"%u-%u-%uT%u:%u:%uZ\",$year,$month,$day,\n $hour,$min,$sec);\n $newtstamp=mktime($hour,$min,$sec,$month,$day,$year);\n return $newtstamp;\n }", "public static function serialToUnixTime($serialDate) {\n $serialDate-= Date::$unixBegin;\n return $serialDate * Date::$secPerDay;\n }", "public static function getRealTimestamp($date){\n\t\t$dateObject = new Date($date);\n\t\t$hour = substr($date, 11, 2);\n\t\t$minutes = substr($date, 14, 2);\n\t\t$seconds = substr($date, 17, 2);\n\t\treturn mktime($hour, $minutes, $seconds, $dateObject->getMonth(), $dateObject->getDay(), $dateObject->getYear());\n\t}", "public function fromDateTime($value){\n return strtotime(parent::fromDateTime($value));\n }", "public static function convertDateToTimestampAction($strValue, $strTypeDate = null)\n {\n $arrInfoDate = self::getInfoDate($strValue, $strTypeDate);\n if (!is_array($arrInfoDate))\n return;\n $arrDate = $arrInfoDate[0];\n $arrTime = $arrInfoDate[1];\n return mktime($arrTime[0], $arrTime[1], $arrTime[2], $arrDate[1], $arrDate[0], $arrDate[2]);\n }", "public static function dateToInt($data) {\n return strtotime($data);\n }", "public static function strtotime($timestamp, ORM $object = NULL)\n {\n return strtotime($timestamp) * 1000;\n }", "protected function DatetimeToUnix($DateTime)\n\t{\n\t\tif($DateTime == '') {\n\t\t\treturn 0;\n\t\t}\n\t\treturn strtotime($DateTime);\n\t}", "function timestampToDate($t) {\n return date(\"d-m-Y\",$t);\n}", "public static function getTimeStamp($date)\n {\n list($year, $month, $day) = explode('-', $date);\n return mktime(0, 0, 0, $month, $day, $year);\n }", "function UnixToMysql($timestamp)\n\t{\n\t\t// and returns the mySQL timestamp - format YYYYMMDDHHMMSS\n\t\t$time = date('YmdHis', $timestamp);\n\t\treturn $time;\n\t}", "function _unix2DOSTime($unixtime = null) \n {\n $timearray = (is_null($unixtime)) ? getdate() : getdate($unixtime);\n if ($timearray['year'] < 1980) {\n $timearray['year'] = 1980;\n $timearray['mon'] = 1;\n $timearray['mday'] = 1;\n $timearray['hours'] = 0;\n $timearray['minutes'] = 0;\n $timearray['seconds'] = 0;\n }\n return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);\n }", "function wp_exif_date2ts($str)\n {\n }", "private function parseDate($string)\n {\n $month_local = $this->i8n('local-months');\n $month_en = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ];\n\n // A date can be prfixed with some words, we remove theme\n $string = $this->removeDatePrefixes($string);\n // We translate the local months name in the english one\n $date_str = trim(str_replace($month_local, $month_en, $string));\n\n // If the date does not contain any year, we add the current year\n if (!preg_match('/[0-9]{4}/', $string)) {\n $date_str .= ' ' . date('Y');\n }\n\n // Add the Hour and minutes\n $date_str .= ' 00:00';\n $date = DateTime::createFromFormat('j F Y H:i', $date_str);\n // In some case, the date is not recognized : as a workaround the actual date is taken\n if ($date === false) {\n $date = new DateTime();\n }\n return $date->getTimestamp();\n }", "public static function convertDateTemplateToTimestamp($strValue)\n {\n return self::convertDateToTimestampAction($strValue, self::TYPE_DATE_TEMPLATE);\n }", "static public function formatDateFromTimestamp($string) {\n if (self::$_static_handler == null) {\n self::$_static_handler = slDatabaseManager::getConnection();\n }\n $format = self::$_static_handler->getDateTimeFormat();\n return date($format, $string);\n }", "function convertTimestamp($timestamp, $timezone = \"-0000\"){\r\n \treturn \"/Date($timestamp$timezone)/\";\r\n }" ]
[ "0.80906785", "0.76321065", "0.73058194", "0.726018", "0.6973853", "0.6945684", "0.69213545", "0.6853198", "0.6812291", "0.67766875", "0.6717959", "0.66637546", "0.66192096", "0.65921134", "0.6579048", "0.654535", "0.65247333", "0.651309", "0.6492", "0.6472972", "0.64198333", "0.6417701", "0.64066344", "0.63647085", "0.63645303", "0.63605034", "0.63376987", "0.63300455", "0.6276317", "0.62694013", "0.62074447", "0.62048984", "0.61961085", "0.6183471", "0.6167418", "0.6123746", "0.6108775", "0.6017151", "0.6015948", "0.5996594", "0.5945584", "0.5941031", "0.58655", "0.5845597", "0.58416986", "0.5814183", "0.58088815", "0.58002865", "0.5789218", "0.57336617", "0.5728865", "0.5721461", "0.5675597", "0.5663425", "0.56430477", "0.5633796", "0.562065", "0.56149465", "0.56123066", "0.5610883", "0.5595194", "0.5594489", "0.5592135", "0.5581841", "0.5557992", "0.54920113", "0.54899615", "0.54833853", "0.5480694", "0.5469113", "0.54560167", "0.5440832", "0.5434698", "0.54132384", "0.5406939", "0.5391891", "0.5374285", "0.5360084", "0.53555363", "0.5308818", "0.53083766", "0.5307341", "0.52902323", "0.5289198", "0.52838707", "0.52837175", "0.5274802", "0.5269621", "0.5258971", "0.52575076", "0.52350795", "0.5211087", "0.5210081", "0.52044517", "0.51635224", "0.5155447", "0.51502395", "0.5139348", "0.51337105", "0.51051927" ]
0.8164076
0
= static int datetime_to_unix_timestamp(datetime_string $value)
public static function datetime_to_unix_timestamp($value) { if (!preg_match('/(\d\d\d\d)-(\d\d)-(\d\d)\s(\d\d):(\d\d):(\d\d)/', $value, $m)) return 0; return mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function date_to_unix_timestamp($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return 0;\n\t\treturn mktime(0, 0, 0, $m[2], $m[3], $m[1]);\n\t}", "function _unix_timestamp($date) { return strtotime($date); }", "public static function unix_timestamp_to_datetime($value)\n\t{\n\t\treturn date(conf(\"format.datetime\"), $value);\n\t}", "function datetime_mysql2unix($str) {\n\tlist($date, $time) = explode(' ', $str);\n\tlist($year, $month, $day) = explode('-', $date);\n\tlist($hour, $minute, $second) = explode(':', $time);\n\n\t$timestamp = mktime((int)$hour, (int)$minute, (int)$second, (int)$month, (int)$day, (int)$year);\n\n\treturn $timestamp;\n}", "function _convert_to_unix_timestamp($timestamp)\n\t{\n\t\tlist($time, $date) = explode('.', $timestamp);\n\t\t\n\t\t// breakdown time\n\t\t$hour = substr($time, 0, 2);\n\t\t$minute = substr($time, 2, 2);\n\t\t$second = substr($time, 4, 2);\n\t\t\n\t\t// breakdown date\n\t\t$day = substr($date, 0, 2);\n\t\t$month = substr($date, 2, 2);\n\t\t$year = substr($date, 4, 2);\n\t\t\n\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\n\t}", "function mysqldatetime_to_unix($datetime = '')\r\n {\r\n // function is only applicable for valid MySQL DATETIME (19 characters) and DATE (10 characters)\r\n $l = strlen($datetime);\r\n if(!($l == 10 || $l == 19))\r\n {\r\n return 0;\r\n }\r\n \r\n $date = $datetime;\r\n $hours = 0;\r\n $minutes = 0;\r\n $seconds = 0;\r\n\r\n // DATETIME only\r\n if($l == 19)\r\n {\r\n list($date, $time) = explode(\" \", $datetime);\r\n list($hours, $minutes, $seconds) = explode(\":\", $time);\r\n }\r\n\r\n list($year, $month, $day) = explode(\"-\", $date);\r\n\r\n return mktime($hours, $minutes, $seconds, $month, $day, $year);\r\n }", "function mkUnixTimestampFromDateTime( $datetime ) {\n\t\n\t$year\t\t\t= substr( $datetime, 0, 4 );\n\t$month\t\t\t= substr( $datetime, 4, 2 );\n\t$day\t\t\t= substr( $datetime, 6, 2 );\n\t$hour\t\t\t= substr( $datetime, 8, 2 );\n\t$min\t\t\t= substr( $datetime, 10, 2 );\n\t$sec\t\t\t= substr( $datetime, 12, 2 );\n\t\n\t$timestamp\t\t= mktime( $hour, $min, $sec, $month, $day, $year, -1 );\n\t\n\treturn $timestamp;\n}", "function cata_ts2unixts($timestamp) {\n\tif (strlen($timestamp) == 14) {\n\t\t$year = intval(substr($timestamp, 0, 4));\n\t\t$month = intval(substr($timestamp, 4, 2));\n\t\t$day = intval(substr($timestamp, 6, 2));\n\t\t$hour = intval(substr($timestamp, 8, 2));\n\t\t$minute = intval(substr($timestamp, 10, 2));\n\t\t$second = intval(substr($timestamp, 12, 2));\n\n\t\treturn mktime($hour, $minute, $second, $month, $day, $year);\n\t} else {\n\t\treturn 0;\n\t}\n}", "function MysqlToUnix($timestamp)\n\t{\n\t\t// and returns the unix timestamp in seconds since 1970\n\t\t$timestamp = (string)$timestamp;\n\t\t$yyyy = substr($timestamp, 0, 4);\n\t\t$month = substr($timestamp, 4, 2);\n\t\t$dd = substr($timestamp, 6, 2);\n\t\t$hh = substr($timestamp, 8, 2);\n\t\t$mm = substr($timestamp, 10, 2);\n\t\t$ss = substr($timestamp, 12, 2);\n\t\t$time = mktime($hh, $mm, $ss, $month, $dd, $yyyy);\n\t\treturn $time;\n\t}", "function dbdatetime2unix ($tanggal = '') {\r\n list($year,$month,$day,$hour,$minute,$second) = sscanf($tanggal,'%4d-%2d-%2d %2d:%2d:%2d');\r\n return mktime($hour,$minute,$second,$month,$day,$year);\r\n}", "function datetime_unix2mysql($timestamp) {\n\treturn date('Y-m-d H:i:s', $timestamp);\n}", "public abstract function fromUnixtime ($timestamp);", "function crystal_sqlite_from_unixtime($timestamp)\n {\n $timestamp = trim($timestamp);\n if (!preg_match(\"/^[0-9]+$/is\", $timestamp))\n $ret = strtotime($timestamp);\n else\n $ret = $timestamp;\n \n $ret = date(\"Y-m-d H:i:s\", $ret);\n crystal_sqlite_debug(\"FROM_UNIXTIME ($timestamp) = $ret\");\n return $ret;\n }", "public static function unix_time($timestamp, ORM $object = NULL)\n {\n return (int) $timestamp * 1000;\n }", "public static function unixDateFromString($string, $format = \"dd/mm/yyyy\")\n\t{\n\t}", "function shadow_to_unixtime($t) {\n return (int)($t * 24 * 60 * 60);\n}", "public static function convertQuickformDateToUnixTimestamp(array $value) {\n\n\t\t/*\n\t\t D = Short names of days\n\t\t l = Long names of days\n\t\t d = Day numbers\n\t\t M = Short names of months\n\t\t F = Long names of months\n\t\t m = Month numbers\n\t\t Y = Four digit year\n\t\t h = 12 hour format\n\t\t H = 23 hour format\n\t\t i = Minutes\n\t\t s = Seconds\n\t\t a = am/pm\n\t\t A = AM/PM\n\n\t\t see: http://midnighthax.com/quickform.php\n\n\t\t */\n\t\t$day = max($value['D'], $value['l'], $value['d'], 1);\n\t\t$month = max($value['M'], $value['F'], $value['m'], 1);\n\t\t$year = $value['Y'];\n\t\t// TODO: support other formats\n\n\t\tif (empty($day) || empty($month) || empty($year)) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn mktime(0, 0, 0, $month, $day, $year);\n\t\t}\n\t}", "function scrappy_dateToTimestamp($string)\n{\n $check = (is_int($string) OR is_float($string)) ? $string : (string) (int) $string;\n\tif (($check === $string) AND ( (int) $string <= PHP_INT_MAX) AND ( (int) $string >= ~PHP_INT_MAX)) return $string;\n return (bool)strtotime($string) ? strtotime($string) : $string;\n}", "function mysql_to_unix($time = '')\n\t{\n\t\t// since the formatting changed with MySQL 4.1\n\t\t// YYYY-MM-DD HH:MM:SS\n\n\t\t$time = str_replace('-', '', $time);\n\t\t$time = str_replace(':', '', $time);\n\t\t$time = str_replace(' ', '', $time);\n\n\t\t// YYYYMMDDHHMMSS\n\t\treturn mktime(\n\t\t\t\t\t\tsubstr($time, 8, 2),\n\t\t\t\t\t\tsubstr($time, 10, 2),\n\t\t\t\t\t\tsubstr($time, 12, 2),\n\t\t\t\t\t\tsubstr($time, 4, 2),\n\t\t\t\t\t\tsubstr($time, 6, 2),\n\t\t\t\t\t\tsubstr($time, 0, 4)\n\t\t\t\t\t\t);\n\t}", "function date_to_ts($value) {\n\treturn strtotime($value);\n}", "function unixtimestamp($date, $rule='dd/mm/YYYY') {\n\n $_date = null;\n $_date = preg_split('/[\\/\\-]/', $date);\n if ($rule=='dd/mm/YYYY' || $rule=='dd/mm/yy')\n $_date = $_date[2].'-'.$_date[1].'-'.$_date[0];\n if ($rule=='mm/dd/YYYY' || $rule=='mm/dd/yy')\n $_date = $_date[2].'-'.$_date[0].'-'.$_date[1];\n if ($rule=='YYYY/mm/dd' || $rule=='yy/mm/dd')\n $_date = $date;\n\n $unix = strtotime($_date);\n return $unix;\n}", "public function convertToUnix($varValue,$objDC=null)\n\t{\n\t\tif(empty($varValue))\n\t\t{\n\t\t\treturn $varValue;\n\t\t}\n\t\t\n\t\t$varValue = deserialize($varValue);\n\t\t\n\t\tif(!is_array($varValue))\n\t\t{\n\t\t\t$varValue = explode(',',$varValue);\n\t\t}\n\t\t\n\t\t$strFormat = 'm/d/Y';\n\t\tif(strlen($objDC->customFormat) > 0)\n\t\t{\n\t\t\t$strFormat = $objDC->customFormat;\n\t\t}\n\t\t\n\t\t$arrReturn = array();\n\t\tforeach($varValue as $value)\n\t\t{\n\t\t\t// convert date formats to unix timestamps\n\t\t\tif(is_string($value) && !is_numeric($value) && !is_int($value))\n\t\t\t{\n\t\t\t\t$objDate = new \\Date($value,$strFormat);\n\t\t\t\t$value = $objDate->__get('tstamp');\n\t\t\t}\n\t\t\t$arrReturn[] = $value;\n\t\t}\n\t\t\n\t\t// sort values\n\t\tsort($arrReturn);\n\t\t\n\t\treturn $arrReturn;\n\t}", "public static function datetimeToTs($datetime)\n {\n /*\n $keys = array('ye', 'mo', 'da', 'hr', 'mi', 'se');\n $values = \\sscanf($datetime, '%4s%2s%2s%2s%2s%2s');\n $parts = array_combine($keys, $values)\n return \\mktime($parts['hr'], $parts['mi'], $parts['se'], $parts['mo'], $parts['da'], $parts['ye']);\n */\n $datetime = self::getDateTime($datetime);\n return (int) $datetime->format('U');\n }", "public static function get_timestamp($value)\n\t{\n\t\t$date = isset($value[\"date\"]) ? $value[\"date\"] : \"\";\n\t\t$time = isset($value[\"time\"]) ? $value[\"time\"] : \"\";\n\t\t$day = $month = $year = $hour = $min = 0;\n\n\t\tif (!empty($date))\n\t\t{\n\t\t\tlist($day, $month, $year) = explode(\".\", $date, 3);\n\t\t}\n\n\t\tif (!empty($time))\n\t\t{\n\t\t\tlist($hour, $min) = explode(\":\", $time, 2);\n\t\t}\n\n\t\t$timestamp = $year ? mktime((int)$hour, (int)$min, 0, (int)$month, (int)$day, (int)$year) : 0;\n\t\treturn $timestamp;\n\t}", "public function getUnixTimestamp() : int\n {\n return $this->time->getTimestamp();\n }", "protected function _makeTimestamp($string)\n {\n if (empty($string)) {\n // use \"now\":\n $time = time();\n } elseif (preg_match('/^\\d{14}$/', $string)) {\n // it is mysql timestamp format of YYYYMMDDHHMMSS? \n $time = mktime(\n substr($string, 8, 2),\n substr($string, 10, 2),\n substr($string, 12, 2),\n substr($string, 4, 2),\n substr($string, 6, 2),\n substr($string, 0, 4)\n );\n \n } elseif (is_numeric($string)) {\n // it is a numeric string, we handle it as timestamp\n $time = (int)$string;\n \n } else {\n // strtotime should handle it\n $time = strtotime($string);\n if ($time == -1 || $time === false) {\n // strtotime() was not able to parse $string, use \"now\":\n $time = time();\n }\n }\n \n return $time;\n }", "protected function DatetimeToUnix($DateTime)\n\t{\n\t\tif($DateTime == '') {\n\t\t\treturn 0;\n\t\t}\n\t\treturn strtotime($DateTime);\n\t}", "public function fw_convert_date_to_timestamp($date_string) {\n if ($date_string) {\n $timestamp = date(\"U\", strtotime($date_string));\n return $timestamp;\n }\n else {\n return NULL;\n }\n }", "static public function timestamp($value) {\n // Default empty values to now\n if (empty($value)) {\n return time();\n }\n\n // Does it look like it's already a timestamp? Just return it\n if (is_numeric($value)) {\n return $value;\n }\n\n $time = strtotime($value);\n if ($time == FALSE) {\n // Handles form YYYY-MM-DD HH:MM:SS.garbage\n if (drupal_strlen($value) > 19) {\n $time = strtotime(drupal_substr($value, 0, 19));\n }\n }\n return $time;\n }", "function get_unix_time()\n {\n return $this->timestamp;\n }", "function datetime_sql2timestamp($datetime)\r\n\t{\r\n\t\t$datetime = explode(\" \", $datetime);\r\n\t\t$datetime[\"date\"] = explode(\"-\", $datetime[0]);\r\n\t\t$datetime[\"time\"] = explode(\":\", $datetime[1]);\r\n\t\t\r\n\t\t$timestamp = mktime($datetime[\"time\"][0], $datetime[\"time\"][1], $datetime[\"time\"][2], $datetime[\"date\"][1], $datetime[\"date\"][2], $datetime[\"date\"][0]);\r\n\t\treturn $timestamp;\r\n\t}", "public function fromDateTime($value){\n return strtotime(parent::fromDateTime($value));\n }", "function en2timestamp($date,$sep='-') {\n\n\n $date = explode($sep,$date);\n $unix = mktime(0,0,0,$date[1],$date[2],$date[0]);\n\n\n return $unix;\n\n }", "protected function dateToTimestamp(string $date): int\n {\n return Carbon::parse($date)->getTimestamp();\n }", "public function convertToUnix($string)\n\t{\n\t\treturn str_replace(array(\"\\r\\n\", \"\\r\"), \"\\n\", $string);\n\t}", "public static function toUnix($time) {\n\t\tif (!$time) {\n\t\t\treturn time();\n\n\t\t} else if ($time instanceof DateTime) {\n\t\t\treturn $time->format('U');\n\t\t}\n\n\t\treturn is_string($time) ? strtotime($time) : (int) $time;\n\t}", "function convert_time($value)\n\t{\n\t\t$dateLargeInt=$value; // nano secondes depuis 1601 !!!!\n\t\t$secsAfterADEpoch = $dateLargeInt / (10000000); // secondes depuis le 1 jan 1601\n\t\t$ADToUnixConvertor=((1970-1601) * 365.242190) * 86400; // UNIX start date - AD start date * jours * secondes\n\t\t$unixTimeStamp=intval($secsAfterADEpoch-$ADToUnixConvertor); // Unix time stamp\n\t\treturn $unixTimeStamp;\n\t}", "function conv_date_unix($date = NULL, $format = 'Y-m-d')\n{\n\t$pdate = date_parse_from_format($format, $date);\n\t\n\t// make sure date is valid\n\tif (checkdate($pdate['month'], $pdate['day'], $pdate['year']))\n\t{\n\t\treturn mktime($pdate['hour'], $pdate['minute'], $pdate['second'], $pdate['month'], $pdate['day'], $pdate['year']);\n\t}\n\telse // bad date, return false\n\t{\n\t\treturn false;\n\t}\n}", "public static function convertUnixToReadableFormat($val)\n {\n\n// Grab the milliseconds as the initial value mod 1000\n $milliseconds = $val % 1000;\n\n// Divide by 1000 to obtain the actual timestamp\n $ts = intval($val / 1000);\n\n// Parse into a DateTime object\n $date = DateTime::createFromFormat('U', $ts);\n\n// Formatted output\n return $date->format('D, d M Y H:i:s');\n }", "function utime2timestamp($string2format) {\n \t\treturn date(\"YmdHis\",$string2format);\n \t}", "function convert_timestamp($timestamp){ \n $limit=date(\"U\"); \n $limiting=$timestamp-$limit; \n return date (\"Ymd\", mktime (0,0,$limiting)); \n}", "public function set($value)\n\t{\n\t\tif (FALSE !== strtotime($value))\n\t\t{\n\t\t\treturn strtotime($value);\n\t\t}\n\t\t// Already a timestamp?\n\t\telseif (is_numeric($value))\n\t\t{\n\t\t\treturn (int) $value;\n\t\t}\n\n\t\treturn $value;\n\t}", "public static function ADToUnixTimestamp($date){\n\t\tif (strpos($date, '.') === false){\n\t\t\t$win_secs = substr($date,0,strlen($date)-7); // divide by 10 000 000 to get seconds\n\t\t\treturn ($win_secs - 11644473600); // 1.1.1600 -> 1.1.1970 difference in seconds\n\t\t}else{\n\t\t\t// La date dans l'AD est déjà réglée selon le fuseau horaire dans lequel se trouve le serveur, pour obtenir un timestamp correct, il faut remettre tricher avec les fuseaux horaires\n\t\t\tdate_default_timezone_set('UTC');\n\t\t\t$tab = explode('.', $date);\n\t\t\tlist($millenium, $year, $month, $day, $hours, $minutes, $seconds) = str_split($tab[0], 2);\n\t\t\t$time = mktime($hours, $minutes, $seconds, $month, $day, $millenium.$year);\n\t\t\tdate_default_timezone_set('Europe/Paris');\n\t\t\treturn (int)$time;\n\t\t}\n\t}", "function date_to_timestamp($d) {\n return mktime(substr($d, 8, 2), // hour\n substr($d, 10, 2), // minute\n 0, // second\n substr($d, 4, 2), // month\n substr($d, 6, 2), // day\n substr($d, 0, 4)); // year\n}", "public function getTimestampUnix()\r\n {\r\n if ($this->month && $this->day && $this->year)\r\n {\r\n return mktime($this->hour, $this->minute, $this->second, $this->month, $this->day, $this->year);\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }", "public function toUnix(\n Chronos|ChronosDate|DateTimeInterface|string|int $dateString,\n DateTimeZone|string|null $timezone = null\n ): string {\n return (new DateTime($dateString, $timezone))->toUnixString();\n }", "private function ical_date_to_unix($ical_date)\n\t{\n\t$ical_date = preg_replace(['/T/', '/Z/'], '', $ical_date); // remove T and Z from strig\n\n\tif (preg_match('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})([0-9]{0,2})/', $ical_date, $date))\n\t{\n\n\t\tif ($date[1] <= 1970)\n\t\t{\n\t\t$date[1] = 1971; // FIXME UNIX timestamps can't deal with pre 1970 dates\n\t\t}\n\n\t\treturn mktime((int) $date[4], (int) $date[5], (int) $date[6], (int) $date[2], (int) $date[3], (int) $date[1]);\n\t}\n\telse\n\t{\n\t\treturn null;\n\t}\n\t}", "function tstamptotime($tstamp) {\n // 1984-09-01T14:21:31Z\n sscanf($tstamp,\"%u-%u-%uT%u:%u:%uZ\",$year,$month,$day,\n $hour,$min,$sec);\n $newtstamp=mktime($hour,$min,$sec,$month,$day,$year);\n return $newtstamp;\n }", "public function unix_time($date, $is_start= true)\n {\n $date = explode('-', $date);\n if ($is_start === false) $date = strtotime($date[2].'/'.$date[1].'/'.$date[0].' 23:59:59');\n else $date = strtotime($date[2].'/'.$date[1].'/'.$date[0].' 00:00:00');\n return $date;\n }", "function jd_to_unix($jd) {\n\t\t$val=(($jd-UNIX_EPOCH) * SECS_IN_DAY * 1000);\n\t\treturn ( round($val/1000) ) ;\n\t}", "public static function timeStringToStamp($string)\r\n {\r\n return strtotime($string);\r\n }", "function shadow_from_unixtime($t=null) {\n if($t === null)\n $t = time();\n\n return (int)($t / 24 / 60 / 60);\n}", "function fechaDesdeUnix($fecha){\n\t$fecha2 = date('Y-m-d H:i:s', $fecha);\n\treturn $fecha2;\n}", "function date2Timestamp($date) {\r\n //2003-04-12 00:05:43\r\n if ($date == null) {\r\n return 0;\r\n }\r\n list($y, $mth, $d, $h, $min, $sec) = sscanf($date,\"%d-%d-%d %d:%d:%d\");\r\n return mktime ( $h, $min, $sec, $mth, $d, $y);\r\n}", "function UnixToMysql($timestamp)\n\t{\n\t\t// and returns the mySQL timestamp - format YYYYMMDDHHMMSS\n\t\t$time = date('YmdHis', $timestamp);\n\t\treturn $time;\n\t}", "function convert_local_date_to_unix( $time=array() )\n {\n \t//-----------------------------------------\n \t// Get the local offset\n \t//-----------------------------------------\n \t\n \t$offset = $this->get_time_offset();\n \t$time = gmmktime( intval($time['hour']), intval($time['minute']), 0, intval($time['month']), intval($time['day']), intval($time['year']) );\n \t\n \treturn $time - $offset;\n }", "function str2date($in){\n\n\t$t = split(\"/\",$in);\n\n\tif (count($t)!=3) return -1;\n\n\tif (!is_numeric($t[0])) return -1;\n\tif (!is_numeric($t[1])) return -2;\n\tif (!is_numeric($t[2])) return -3;\n\n\tif ($t[2]<1902 || $t[2]>2037) return -3;\n\n\treturn mktime (0,0,0, $t[1], $t[0], $t[2]);\n}", "function convert_timestamp($timestamp)\n\t{\n\t\t$timestamp_bits = explode('T', $timestamp);\n\n\t\tif(isset($timestamp_bits[0], $timestamp_bits[0])):\n\t\t\t$date_bits = explode('-', $timestamp_bits[0]);\n\t\t\t$time_bits = explode(':', $timestamp_bits[1]);\n\t\t\t$year = $date_bits[0];\n\t\t\t$month = $date_bits[1];\n\t\t\t$day = $date_bits[2];\n\t\t\t$hour = $time_bits[0];\n\t\t\t$minute = $time_bits[1];\n\t\t\t$second = $time_bits[2];\n\n\t\t\treturn mktime($hour,$minute,$second, $month, $day, $year);\n\t\tendif;\n\n\t\treturn false;\n\n\t}", "function dateYMD_toTimestamp($strDate) {\n $date = new DateTime($strDate);\n return $date->getTimestamp();\n}", "function WindowsTime2UnixTime($WindowsTime) {\n\t$UnixTime = $WindowsTime / 10000000 - 11644473600;\n\treturn $UnxiTime; \n}", "public static function strtotime($timestamp, ORM $object = NULL)\n {\n return strtotime($timestamp) * 1000;\n }", "public static function string_to_datetime($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.datetime\"), $value, $m)) return '0000-01-01 00:00:00';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2].' '.$m[4].':'.$m[5].':'.(isset($m[7]) ? $m[7] : '00');\n\t}", "public function convertDateToUnix()\n {\n if (!is_numeric($this->rent_available_date) && $this->rent_available_date != '') {\n $this->rent_available_date = strtotime($this->rent_available_date);\n }\n }", "function timestamp($date){\n\t \n\t$return = strtotime($date);\n\treturn $return;\n}", "function dateToTimestamp($date){\n\t$dia=substr($date,0,2);\n\t$mes=substr($date,3,2);\n\t$ano=substr($date, 6,4);\t\n\t\n\t$timestamp= mktime(0,0,0,$mes,$dia,$ano);\n\treturn $timestamp;\n }", "function timestamp_from_mysql($timestamp)\n{\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\n\tif (sizeof($regs)>1)\n\t{\n\t\tif (sizeof($regs)>4)\n\t\t{\n\t\t\t$date=mktime($regs[4],$regs[5],$regs[6],$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$date=mktime(0,0,0,$regs[2],$regs[3],$regs[1]);\n\t\t}\n\t}\n\telse\n\t{\n\t\t$date=0;\n\t}\n\treturn $date;\n}", "public static function apacheToEpoch(string $apacheTimestamp): int {\r\n list($d, $M, $y, $h, $i, $s, $z) = sscanf($apacheTimestamp,\r\n \"%2d/%3s/%4d:%2d:%2d:%2d %5s\");\r\n return strtotime(\"$d $M $y $h:$i:$s $z\");\r\n }", "public function readableTimeStamp($unixtime): string\n {\n return human_time_diff($unixtime, current_time('timestamp'));\n }", "public function convert_datetime_to_epoch( $datetime = '1971-01-01 12:00:00' ) {\n list( $date, $time ) = explode( ' ', $datetime );\n list( $year, $month, $day) = explode( '-', $date );\n list( $hour, $min, $sec) = explode( ':', $time );\n return mktime( $hour, $min, $sec, $month, $day, $year );\n }", "function set_time_from_unix_time($unixtime)\n {\n $this->timestamp=$unixtime;\n }", "public function from_unixtime($field, $format){\n\t\t//convert to ISO time\n\t\t$date = date(\"Y-m-d H:i:s\", $field);\n\t\t//now submit to dateformat\n\t\treturn $self->dateformat($date, $format);\n\t}", "function date_sql2timestamp($date)\r\n\t{\r\n\t\t$date = explode(\"-\", $date);\r\n\r\n\t\t$timestamp = mktime(0, 0, 0, $date[1], $date[2], $date[0]);\r\n\t\treturn $timestamp;\r\n\t}", "function readTimestamp(): int;", "private function _convertUnixTimestampToDateTime($unixts) {\n $datetime = new DateTime();\n $datetime->setTimestamp($unixts);\n\n return $datetime->format('Y-m-d H:i:s');\n }", "function timestamp2utime($string2format) {\n \t\treturn mktime(substr($string2format, 8,2), substr($string2format, 10, 2), substr($string2format, 12, 2), substr($string2format, 4,2), substr($string2format, 6, 2), substr($string2format, 0, 4));\n \t}", "public static function convertDateBaseToTimestamp($strValue)\n {\n return self::convertDateToTimestampAction($strValue, self::TYPE_DATE_BASE);\n }", "public static function str2time($datetime) {\n return strtotime($datetime);\n }", "protected function convertTimeArrayToTimestamp($value)\n {\n foreach (array('hour', 'minute', 'second') as $key)\n {\n if (isset($value[$key]) && !preg_match('#^\\d+$#', $value[$key]) && !empty($value[$key]))\n {\n throw new mfValidatorError($this, 'invalid', array('value' => $value));\n }\n }\n // if second is set, minute and hour must be set\n // if minute is set, hour must be set\n if (\n $this->isValueSet($value, 'second') && (!$this->isValueSet($value, 'minute') || !$this->isValueSet($value, 'hour'))\n ||\n $this->isValueSet($value, 'minute') && !$this->isValueSet($value, 'hour')\n )\n {\n throw new mfValidatorError($this, 'invalid', array('value' => $value));\n }\n $clean = mktime(\n isset($value['hour']) ? intval($value['hour']) : 0,\n isset($value['minute']) ? intval($value['minute']) : 0,\n isset($value['second']) ? intval($value['second']) : 0\n ) - mktime(0,0,0);\n $clean=isset($value['sign']) && $value['sign']=='-'?-$clean:$clean; \n if (false === $clean)\n {\n throw new mfValidatorError($this, 'invalid', array('value' => var_export($value, true)));\n } \n return $clean;\n }", "private static function processInputAsDateString() {\n $unix = strtotime(self::$input);\n\n if ($unix) { \n self::$timestamp = $unix;\n self::setDateFromTimestamp(self::$timestamp);\n } else {\n self::setMessage(\"Sorry. Your input was invalid.\");\n }\n }", "function toUnix($local = false)\n\t{\n\t\t$date = null;\n\t\tif ($this->_date !== false) {\n\t\t\t$date = ($local) ? $this->_date + $this->_offset : $this->_date;\n\t\t}\n\t\treturn $date;\n\t}", "function custom_unixtimesamp ( $post_id ) {\r\n if ( get_post_type( $post_id ) == 'event_type' ) {\r\n\t$event_date = get_post_meta($post_id, 'event_date', true);\r\n\r\n\t\tif($event_date) {\r\n\t\t\t$dateparts = explode('/', $event_date);\r\n\t\t\t$newdate1 = strtotime(date('d.m.Y H:i:s', strtotime($dateparts[1].'/'.$dateparts[0].'/'.$dateparts[2])));\r\n\t\t\tupdate_post_meta($post_id, 'unixstartdate', $newdate1 );\r\n\t\t}\r\n\t}\r\n}", "public static function timeStampToEpoch($f)\n {\n if (self::isPostgress()) {\n return \"extract(epoch from \" . $f . \")\";\n }\n if (self::isMySQL()) {\n return \"UNIX_TIMESTAMP(\" . $f .\")\";\n }\n throw new DBIBackendExplicitHandlerUnimplementedException(\n 'SQLUNIMP timeStampToEpoch() called on unsupported backend'\n );\n }", "function unix_to_jd($t) {\n\t\treturn ( UNIX_EPOCH + t / SECS_IN_DAY);\n\t}", "public function convert_ldap_to_epoch($ldap_date=false) {\n if(empty($ldap_date)) return 0;\n $years_from_1601_to_1970 = 1970 - 1601;\n $days_from_1601_to_1970 = $years_from_1601_to_1970 * 365;\n $days_from_1601_to_1970 += ($years_from_1601_to_1970 / 4); // leap years\n $days_from_1601_to_1970 -= 3; // non-leap centuries (1700,1800,1900). 2000 is a leap century\n $seconds_from_1601_to_1970 = $days_from_1601_to_1970 * 24 * 60 * 60;\n $total_seconds_since_1601 = ($ldap_date / 10000000);\n $total_seconds_since_1970 = $total_seconds_since_1601 - $seconds_from_1601_to_1970;\n \n return $total_seconds_since_1970;\n }", "function getTimestamp($data) {\r\n\t// yyyy-mm-dd HH:ii:ss\r\n\t// 0123456789012345678\r\n\t$h = substr($data, 11, 2);\r\n\t$i = substr($data, 14, 2);\r\n\t$s = substr($data, 17, 2);\r\n\t$m = substr($data, 5, 2);\r\n\t$d = substr($data, 8, 2);\r\n\t$y = substr($data, 0, 4);\r\n\t//**************\r\n\treturn mktime($h, $i, $s, $m, $d, $y);\r\n}", "function convertTimestamp($timestamp, $timezone = \"-0000\"){\r\n \treturn \"/Date($timestamp$timezone)/\";\r\n }", "public static function parseDateTimeToTimestamp($value, $timeValue = null)\n {\n return DbDateValidator::parseDateTime($value, $timeValue);\n }", "public function toTimestamp(): ?int\n {\n $gc = new GregorianCalendar();\n $julianDay = $gc->ymdToJd(($this->year > 0 && $this->epoch) ? -$this->year : $this->year, $this->monthDigital ?: 1, $this->day ?: 1);\n return ($julianDay - 2440588) * 86400;\n }", "function unix2DosTime($unixtime = 0) {\n $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);\n\n if ($timearray['year'] < 1980) {\n $timearray['year'] = 1980;\n $timearray['mon'] = 1;\n $timearray['mday'] = 1;\n $timearray['hours'] = 0;\n $timearray['minutes'] = 0;\n $timearray['seconds'] = 0;\n } // end if\n\n return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) |\n ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);\n }", "function mysqldatetime_to_date($datetime = '', $format = 'd.m.Y, H:i:s')\r\n {\r\n return date($format, mysqldatetime_to_unix($datetime));\r\n }", "private static function getTimestamp($timestamp)\n\t{\n\t\tif ($timestamp instanceof DateTime) {\n\t\t\t$timestamp = $timestamp->getTimestamp();\n\t\t}\n\t\t\n\t\tif ((int)$timestamp != $timestamp) {\n\t\t\tthrow new ResqueScheduler_InvalidTimestampException(\n\t\t\t\t'The supplied timestamp value could not be converted to an integer.'\n\t\t\t);\n\t\t}\n\n\t\treturn (int)$timestamp;\n\t}", "public static function convertDateToTimestamp($strValue)\n {\n if (empty($strValue))\n return;\n if (self::isDateTemplate($strValue))\n $strMethod = 'convertDateTemplateToTimestamp';\n elseif (self::isDateBase($strValue))\n $strMethod = 'convertDateBaseToTimestamp';\n elseif (self::isDateWs($strValue))\n $strMethod = 'convertDateWsToTimestamp';\n else\n return;\n return self::$strMethod($strValue);\n }", "public function timestamp($unixTimestamp)\n {\n return $this->setTimestamp($unixTimestamp);\n }", "function DateTimeToInt ($s) {\n\tGlobal $iTimeType;\n\t\n\t$y = (int)substr($s, 0, 4);\t\t// year\n\t$m = (int)substr($s, 4, 2);\t\t// month\n\t$d = (int)substr($s, 6, 2);\t\t// day\n\t$h = (int)substr($s, 8, 2);\t\t// hour\n\t$n = (int)substr($s,10, 2);\t\t// minute\n\t\n\tif ($m < 1) $m = 1;\n\tif (12 < $m) $m = 12;\n\tif ($d < 1) $d = 1;\n\tif (31 < $d) $d = 31;\n\tif ($h < 0) $h = 0;\n\tif (23 < $h) $h = 23;\n\tif ($n < 0) $n = 0;\n\tif (59 < $n) $n = 59;\n\t\n\tif ($iTimeType == 1) {\n\t\t$z = (int)substr($s,12, 2);\t// second\n\t\tif ($y < 1970) $y = 1970;\n\t\tif (2037 < $y) $y = 2037;\n\t\tif ($z < 0) $z = 0;\n\t\tif (59 < $z) $z = 59;\n\t\treturn mktime($h,$n,$z,$m,$d,$y);\n\t}\n\t\n\t$y -= 2000;\n\tif ($y < 0) $y = 0;\n\tif (213 < $y) $y = 213;\n\treturn ($y*10000000)+((50+$m*50+$d)*10000) + ($h*100) + $n;\t// 3+3+2+2\n}", "protected function _getTimestamp($input)\n {\n $f1 = (ord($input[0]) * pow(256, 3));\n $f1 += (ord($input[1]) * pow(256, 2));\n $f1 += (ord($input[2]) * pow(256, 1));\n $f1 += (ord($input[3]));\n $f1 -= 2208988800;\n\n $f2 = (ord($input[4]) * pow(256, 3));\n $f2 += (ord($input[5]) * pow(256, 2));\n $f2 += (ord($input[6]) * pow(256, 1));\n $f2 += (ord($input[7]));\n\n return (float) ($f1 . \".\" . $f2);\n }", "public static function serialToUnixTime($serialDate) {\n $serialDate-= Date::$unixBegin;\n return $serialDate * Date::$secPerDay;\n }", "function _unix2DOSTime($unixtime = null) \n {\n $timearray = (is_null($unixtime)) ? getdate() : getdate($unixtime);\n if ($timearray['year'] < 1980) {\n $timearray['year'] = 1980;\n $timearray['mon'] = 1;\n $timearray['mday'] = 1;\n $timearray['hours'] = 0;\n $timearray['minutes'] = 0;\n $timearray['seconds'] = 0;\n }\n return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) | ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);\n }", "public function setUnix($unixTimeStamp = null){\n \n if ($unixTimeStamp===null){\n $unixTimeStamp = mktime();\n }\n \n $this->_unix = $unixTimeStamp;\n return $this->init();\n }", "function variant_date_to_timestamp($variant) {}", "protected function makeTimestamp($timestamp = null)\n {\n if (is_null($timestamp)) {\n return $this->getTimestamp();\n }\n\n return (int) $timestamp;\n }" ]
[ "0.7897694", "0.7302782", "0.7188694", "0.71812564", "0.7141923", "0.71174234", "0.68739533", "0.6850151", "0.6763558", "0.6709572", "0.66927236", "0.6688938", "0.66436774", "0.63504285", "0.63266504", "0.6304142", "0.6303068", "0.6301359", "0.6215526", "0.6185395", "0.6153398", "0.6131717", "0.61230135", "0.60910726", "0.5983557", "0.59646314", "0.5853209", "0.5845182", "0.58192164", "0.58155274", "0.58145463", "0.58042735", "0.5801575", "0.579367", "0.57850087", "0.5781155", "0.5752937", "0.5679445", "0.5672473", "0.56673694", "0.56495976", "0.5639414", "0.56195587", "0.5613347", "0.55646515", "0.5563833", "0.55580646", "0.55517787", "0.5550776", "0.55485255", "0.5542142", "0.5530761", "0.5511064", "0.5497711", "0.543694", "0.5429723", "0.5407572", "0.5397932", "0.539181", "0.53862363", "0.5385895", "0.5382733", "0.53712815", "0.53641605", "0.5360082", "0.535582", "0.53180605", "0.5297877", "0.52966315", "0.5281361", "0.5270793", "0.5261249", "0.52143806", "0.52130836", "0.5196646", "0.5164384", "0.5162581", "0.5158684", "0.51499254", "0.5122332", "0.51160234", "0.50983506", "0.50961995", "0.50927836", "0.5091605", "0.5084643", "0.5080844", "0.50799173", "0.50296026", "0.5024642", "0.49906495", "0.49841556", "0.4978169", "0.49709225", "0.49682066", "0.4966316", "0.49654272", "0.49616557", "0.49509642", "0.4935467" ]
0.82878506
0
= static string unix_timestamp_to_datetime(int $value)
public static function unix_timestamp_to_datetime($value) { return date(conf("format.datetime"), $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function datetime_to_unix_timestamp($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)\\s(\\d\\d):(\\d\\d):(\\d\\d)/', $value, $m)) return 0;\n\t\treturn mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]);\n\t}", "public static function date_to_unix_timestamp($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return 0;\n\t\treturn mktime(0, 0, 0, $m[2], $m[3], $m[1]);\n\t}", "public static function string_to_datetime($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.datetime\"), $value, $m)) return '0000-01-01 00:00:00';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2].' '.$m[4].':'.$m[5].':'.(isset($m[7]) ? $m[7] : '00');\n\t}", "public static function get_timestamp($value)\n\t{\n\t\t$date = isset($value[\"date\"]) ? $value[\"date\"] : \"\";\n\t\t$time = isset($value[\"time\"]) ? $value[\"time\"] : \"\";\n\t\t$day = $month = $year = $hour = $min = 0;\n\n\t\tif (!empty($date))\n\t\t{\n\t\t\tlist($day, $month, $year) = explode(\".\", $date, 3);\n\t\t}\n\n\t\tif (!empty($time))\n\t\t{\n\t\t\tlist($hour, $min) = explode(\":\", $time, 2);\n\t\t}\n\n\t\t$timestamp = $year ? mktime((int)$hour, (int)$min, 0, (int)$month, (int)$day, (int)$year) : 0;\n\t\treturn $timestamp;\n\t}", "function convert_time($value)\n\t{\n\t\t$dateLargeInt=$value; // nano secondes depuis 1601 !!!!\n\t\t$secsAfterADEpoch = $dateLargeInt / (10000000); // secondes depuis le 1 jan 1601\n\t\t$ADToUnixConvertor=((1970-1601) * 365.242190) * 86400; // UNIX start date - AD start date * jours * secondes\n\t\t$unixTimeStamp=intval($secsAfterADEpoch-$ADToUnixConvertor); // Unix time stamp\n\t\treturn $unixTimeStamp;\n\t}", "static public function timestamp($value) {\n // Default empty values to now\n if (empty($value)) {\n return time();\n }\n\n // Does it look like it's already a timestamp? Just return it\n if (is_numeric($value)) {\n return $value;\n }\n\n $time = strtotime($value);\n if ($time == FALSE) {\n // Handles form YYYY-MM-DD HH:MM:SS.garbage\n if (drupal_strlen($value) > 19) {\n $time = strtotime(drupal_substr($value, 0, 19));\n }\n }\n return $time;\n }", "public function getCreatedAtAttribute($value)\n {\n $d = new \\DateTime($value);\n return $d->getTimestamp();\n }", "function generateDateTime( $value )\r\n\t{\r\n\t\treturn( strftime( \"%Y-%m-%d %H:%M:%S\", $value ) );\r\n\t}", "function format_datetime($value) {\n\t$value = (int)$value;\n\tif($value > 0 )\n\t\treturn date($GLOBALS['i18']['formats']['date_time'],$value);\n\telse\n\t\treturn '';\n}", "function date_to_ts($value) {\n\treturn strtotime($value);\n}", "public function convertValue($value)\n {\n // Use date_create to make a DateTime object or return false\n return date_create($value);\n }", "public static function datetime_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)\\s(\\d\\d):(\\d\\d):(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.datetime'), mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]));\n\t}", "public static function prepareDatetime($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to datetime automatically\n return $value;\n }", "public function fromDateTime($value){\n return strtotime(parent::fromDateTime($value));\n }", "public function getCreatedAtAttribute($value)\n {\n return DateTime::createFromFormat('j/n/Y g:i A', $value);\n }", "function datetime_unix2mysql($timestamp) {\n\treturn date('Y-m-d H:i:s', $timestamp);\n}", "function dbdatetime2unix ($tanggal = '') {\r\n list($year,$month,$day,$hour,$minute,$second) = sscanf($tanggal,'%4d-%2d-%2d %2d:%2d:%2d');\r\n return mktime($hour,$minute,$second,$month,$day,$year);\r\n}", "public static function convertQuickformDateToUnixTimestamp(array $value) {\n\n\t\t/*\n\t\t D = Short names of days\n\t\t l = Long names of days\n\t\t d = Day numbers\n\t\t M = Short names of months\n\t\t F = Long names of months\n\t\t m = Month numbers\n\t\t Y = Four digit year\n\t\t h = 12 hour format\n\t\t H = 23 hour format\n\t\t i = Minutes\n\t\t s = Seconds\n\t\t a = am/pm\n\t\t A = AM/PM\n\n\t\t see: http://midnighthax.com/quickform.php\n\n\t\t */\n\t\t$day = max($value['D'], $value['l'], $value['d'], 1);\n\t\t$month = max($value['M'], $value['F'], $value['m'], 1);\n\t\t$year = $value['Y'];\n\t\t// TODO: support other formats\n\n\t\tif (empty($day) || empty($month) || empty($year)) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn mktime(0, 0, 0, $month, $day, $year);\n\t\t}\n\t}", "public function loadDate($value)\n\t{\n\t\treturn strtotime(date('Y-m-d', $value) . ' 00:00:00');\n\t}", "function _convert_to_unix_timestamp($timestamp)\n\t{\n\t\tlist($time, $date) = explode('.', $timestamp);\n\t\t\n\t\t// breakdown time\n\t\t$hour = substr($time, 0, 2);\n\t\t$minute = substr($time, 2, 2);\n\t\t$second = substr($time, 4, 2);\n\t\t\n\t\t// breakdown date\n\t\t$day = substr($date, 0, 2);\n\t\t$month = substr($date, 2, 2);\n\t\t$year = substr($date, 4, 2);\n\t\t\n\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\n\t}", "protected function asDateTime($value)\n {\n // If this value is an integer, we will assume it is a UNIX timestamp's value\n // and format a Carbon object from this timestamp. This allows flexibility\n // when defining your date fields as they might be UNIX timestamps here.\n if (is_numeric($value)) {\n return Carbon::createFromTimestamp($value);\n }\n\n // If the value is in simply year, month, day format, we will instantiate the\n // Carbon instances from that format. Again, this provides for simple date\n // fields on the database, while still supporting Carbonized conversion.\n elseif (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})$/', $value)) {\n return Carbon::createFromFormat('Y-m-d', $value)->startOfDay();\n }\n\n return Carbon::instance($value);\n }", "function crystal_sqlite_from_unixtime($timestamp)\n {\n $timestamp = trim($timestamp);\n if (!preg_match(\"/^[0-9]+$/is\", $timestamp))\n $ret = strtotime($timestamp);\n else\n $ret = $timestamp;\n \n $ret = date(\"Y-m-d H:i:s\", $ret);\n crystal_sqlite_debug(\"FROM_UNIXTIME ($timestamp) = $ret\");\n return $ret;\n }", "protected function asDateTime($value)\n {\n return $value;\n }", "function mkUnixTimestampFromDateTime( $datetime ) {\n\t\n\t$year\t\t\t= substr( $datetime, 0, 4 );\n\t$month\t\t\t= substr( $datetime, 4, 2 );\n\t$day\t\t\t= substr( $datetime, 6, 2 );\n\t$hour\t\t\t= substr( $datetime, 8, 2 );\n\t$min\t\t\t= substr( $datetime, 10, 2 );\n\t$sec\t\t\t= substr( $datetime, 12, 2 );\n\t\n\t$timestamp\t\t= mktime( $hour, $min, $sec, $month, $day, $year, -1 );\n\t\n\treturn $timestamp;\n}", "public function getCreatedAtAttribute($value)\n {\n return \\DateTime::createFromFormat('j/n/Y g:i A', $value);\n\n }", "public static function convertUnixToReadableFormat($val)\n {\n\n// Grab the milliseconds as the initial value mod 1000\n $milliseconds = $val % 1000;\n\n// Divide by 1000 to obtain the actual timestamp\n $ts = intval($val / 1000);\n\n// Parse into a DateTime object\n $date = DateTime::createFromFormat('U', $ts);\n\n// Formatted output\n return $date->format('D, d M Y H:i:s');\n }", "public function parseDatetime($value)\n\t{\n\t\treturn $value;\n\t}", "public function getUpdatedAtAttribute($value)\n {\n return DateTime::createFromFormat('j/n/Y g:i A', $value);\n }", "function ts2dt($timestamp) {\n $pieces = explode(\"_\",$timestamp);\n $date = new DateTime();\n $date->setDate($pieces[0],$pieces[1],$pieces[2]);\n $date->setTime($pieces[3],$pieces[4],$pieces[5]);\n return $date;\n}", "public function getUpdatedAtAttribute($value)\n {\n $d = new \\DateTime($value);\n return $d->getTimestamp();\n }", "public function getCreatedAtAttribute($value)\n {\n return \\DateTime::createFromFormat($this->getDateFormat(), $value)->format('j/n/Y g:i A');\n }", "public function getCreatedAtAttribute($value)\n {\n return \\DateTime::createFromFormat($this->getDateFormat(), $value)->format('j/n/Y g:i A');\n }", "private function castToDate($value)\n {\n if ($value instanceof \\DateTimeInterface) {\n return \\DateTimeImmutable::createFromFormat('Y-m-d H:i:s.u', $value->format('Y-m-d H:i:s.u'), $value->getTimezone());\n }\n if (is_numeric($value)) {\n return \\DateTimeImmutable::createFromFormat(\\DateTimeImmutable::ATOM, date(\\DateTimeImmutable::ATOM, (int) $value));\n }\n try {\n // Try to parse using database connection format\n $date = \\DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $value);\n } catch (\\InvalidArgumentException $e) {\n // fallback to ISO8601 standard if format does not match database connection format\n $date = \\DateTimeImmutable::createFromFormat(\\DateTime::ATOM, $value);\n }\n return $date ?: \\DateTimeImmutable::createFromFormat(\\DateTime::ATOM, $value);\n }", "protected function asDateTime($value)\n {\n\n $value = \\App\\Http\\Controllers\\Base::ConvertTimezone($value);\n\n return $value;\n\n }", "protected function asDateTime($value)\n {\n\n $value = \\App\\Http\\Controllers\\Base::ConvertTimezone($value);\n\n return $value;\n\n }", "public static function database_datetime($unix_timestamp = NULL)\n\t{\n\t\tif (is_null($unix_timestamp)) {\n\t\t\t$unix_timestamp = time();\n\t\t}\n\n\t\treturn date('Y-m-d H:i:s', $unix_timestamp);\n\t}", "function convert_timestamp($timestamp){ \n $limit=date(\"U\"); \n $limiting=$timestamp-$limit; \n return date (\"Ymd\", mktime (0,0,$limiting)); \n}", "static function datetime($value){\n\t\t$arr_value = explode(\" \", $value);\n\t\t$date = DBValue::date($arr_value[0]);\n\t\tif(is_null($date)){\n\t\t\treturn null;\n\t\t}\n\t\t$time = DBValue::time($arr_value[1]);\n\t\tif(is_null($time)){\n\t\t\t$time = \"00:00:00\";\n\t\t}\n\t\treturn $date.\" \".$time;\n\t}", "public function getCreatedAtAttribute($value)\n {\n return Carbon::parse($value)->format('Y-m-d');\n }", "public static function convertToDateTime($value)\n {\n if ($value instanceof \\DateTime) {\n return $value;\n }\n\n if (substr($value, -1) == 'Z') {\n $value = substr($value, 0, strlen($value) - 1);\n }\n\n return new \\DateTime($value, new \\DateTimeZone('UTC'));\n }", "public abstract function fromUnixtime ($timestamp);", "function datetime_sql2timestamp($datetime)\r\n\t{\r\n\t\t$datetime = explode(\" \", $datetime);\r\n\t\t$datetime[\"date\"] = explode(\"-\", $datetime[0]);\r\n\t\t$datetime[\"time\"] = explode(\":\", $datetime[1]);\r\n\t\t\r\n\t\t$timestamp = mktime($datetime[\"time\"][0], $datetime[\"time\"][1], $datetime[\"time\"][2], $datetime[\"date\"][1], $datetime[\"date\"][2], $datetime[\"date\"][0]);\r\n\t\treturn $timestamp;\r\n\t}", "function value_datetime($value){\r\n\t$value = explode(\" \", $value);\r\n\t$date = value_date($value[0]);\r\n\t$time = value_time($value[1]);\r\n\tif(strlen($date) === 0){\r\n\t\treturn null;\r\n\t}\r\n\tif(strlen($time) === 0){\r\n\t\t$time = \"00:00:00\";\r\n\t}\r\n\treturn \"{$date} {$time}\";\r\n}", "function cata_ts2unixts($timestamp) {\n\tif (strlen($timestamp) == 14) {\n\t\t$year = intval(substr($timestamp, 0, 4));\n\t\t$month = intval(substr($timestamp, 4, 2));\n\t\t$day = intval(substr($timestamp, 6, 2));\n\t\t$hour = intval(substr($timestamp, 8, 2));\n\t\t$minute = intval(substr($timestamp, 10, 2));\n\t\t$second = intval(substr($timestamp, 12, 2));\n\n\t\treturn mktime($hour, $minute, $second, $month, $day, $year);\n\t} else {\n\t\treturn 0;\n\t}\n}", "public function getCreatedAtAttribute($value)\n {\n return date('j/n/Y g:i A', strtotime($value));\n }", "function WindowsTime2DateTime($WindowsTime) {\n\t$UnixTime = $WindowsTime / 10000000 - 11644473600;\n\treturn date('Y-m-d H:i:s', $UnixTime); \n}", "public static function timestampToDateTime($timestamp) {\n\t\treturn date(self::MYSQL_DATETIME_FORMAT, $timestamp);\n\t}", "function shadow_to_unixtime($t) {\n return (int)($t * 24 * 60 * 60);\n}", "public function set($value)\n\t{\n\t\tif (FALSE !== strtotime($value))\n\t\t{\n\t\t\treturn strtotime($value);\n\t\t}\n\t\t// Already a timestamp?\n\t\telseif (is_numeric($value))\n\t\t{\n\t\t\treturn (int) $value;\n\t\t}\n\n\t\treturn $value;\n\t}", "function date_to_timestamp($d) {\n return mktime(substr($d, 8, 2), // hour\n substr($d, 10, 2), // minute\n 0, // second\n substr($d, 4, 2), // month\n substr($d, 6, 2), // day\n substr($d, 0, 4)); // year\n}", "public function getDateTime($unixTimeStamp){\n\t\t$unixTimeStamp = (int)$unixTimeStamp;\n\t\t$dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];\n\t\t$timeFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];\n\t\treturn date($dateFormat . ', ' . $timeFormat,$unixTimeStamp);\n\t}", "function MysqlToUnix($timestamp)\n\t{\n\t\t// and returns the unix timestamp in seconds since 1970\n\t\t$timestamp = (string)$timestamp;\n\t\t$yyyy = substr($timestamp, 0, 4);\n\t\t$month = substr($timestamp, 4, 2);\n\t\t$dd = substr($timestamp, 6, 2);\n\t\t$hh = substr($timestamp, 8, 2);\n\t\t$mm = substr($timestamp, 10, 2);\n\t\t$ss = substr($timestamp, 12, 2);\n\t\t$time = mktime($hh, $mm, $ss, $month, $dd, $yyyy);\n\t\treturn $time;\n\t}", "function _unix_timestamp($date) { return strtotime($date); }", "public function getUpdatedAtAttribute($value)\n {\n return \\DateTime::createFromFormat($this->getDateFormat(), $value)->format('j/n/Y g:i A');\n }", "public function getUpdatedAtAttribute($value)\n {\n return \\DateTime::createFromFormat($this->getDateFormat(), $value)->format('j/n/Y g:i A');\n }", "public function formatDatetime($value)\n\t{\n\t\treturn $value;\n\t}", "private function _convertUnixTimestampToDateTime($unixts) {\n $datetime = new DateTime();\n $datetime->setTimestamp($unixts);\n\n return $datetime->format('Y-m-d H:i:s');\n }", "function generateDate( $value )\r\n\t{\r\n\t\treturn( strftime( \"%Y-%m-%d\", $value ) );\r\n\t}", "public static function get_value_dt($value)\n\t{\n\t\tif (preg_match('/(\\d{4})-W(\\d{2})/i', $value, $matches))\n\t\t{\n\t\t\t$year = $matches[1];\n\t\t\t$week = $matches[2];\n\t\t\treturn new DateTime(\"{$year}W{$week} UTC\");\n\t\t}\n\t\treturn NULL;\n\t}", "public static function parseDateTimeToTimestamp($value, $timeValue = null)\n {\n return DbDateValidator::parseDateTime($value, $timeValue);\n }", "protected function mutateDate($value)\n\t{\n\t\tif ($value instanceof Timestamp)\n\t\t{\n\t\t\t// Convert to an int timestamp\n\t\t\t$value = $value->formatForApi()['seconds'];\n\t\t}\n\n\t\treturn parent::mutateDate($value);\n\t}", "public static function unix_time($timestamp, ORM $object = NULL)\n {\n return (int) $timestamp * 1000;\n }", "public static function datetimeToTs($datetime)\n {\n /*\n $keys = array('ye', 'mo', 'da', 'hr', 'mi', 'se');\n $values = \\sscanf($datetime, '%4s%2s%2s%2s%2s%2s');\n $parts = array_combine($keys, $values)\n return \\mktime($parts['hr'], $parts['mi'], $parts['se'], $parts['mo'], $parts['da'], $parts['ye']);\n */\n $datetime = self::getDateTime($datetime);\n return (int) $datetime->format('U');\n }", "public function getUpdatedAtAttribute($value)\n {\n return date('j/n/Y g:i A', strtotime($value));\n }", "function dateToTimestamp($date){\n\t$dia=substr($date,0,2);\n\t$mes=substr($date,3,2);\n\t$ano=substr($date, 6,4);\t\n\t\n\t$timestamp= mktime(0,0,0,$mes,$dia,$ano);\n\treturn $timestamp;\n }", "function datetime_mysql2unix($str) {\n\tlist($date, $time) = explode(' ', $str);\n\tlist($year, $month, $day) = explode('-', $date);\n\tlist($hour, $minute, $second) = explode(':', $time);\n\n\t$timestamp = mktime((int)$hour, (int)$minute, (int)$second, (int)$month, (int)$day, (int)$year);\n\n\treturn $timestamp;\n}", "public function getDateAttribute($value)\n {\n return Carbon::createFromFormat('U', $value);\n }", "public function get_value($value)\n {\n if (is_null($value))\n return null;\n else\n return date($this->date_format, strtotime($value));\n }", "public function getUpdatedAtAttribute($value)\n {\n \treturn Carbon::parse($value)->toDayDateTimeString();\n }", "function timestampToDate($t) {\n return date(\"d-m-Y\",$t);\n}", "public function getCreatedAtAttribute($value)\n {\n return \\Carbon\\Carbon::createFromFormat('Y-m-d H:i:s', $value)->diffForHumans();\n }", "public static function getDateTime($value)\n {\n $dateTime = parent::getDateTime($value);\n\n return $dateTime instanceof DateTimeImmutable\n ? $dateTime\n : DateTimeImmutable::createFromMutable($dateTime);\n }", "public static function date_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.date'), mktime(0, 0, 0, $m[2], $m[3], $m[1]));\n\t}", "function toDateTime ($timestamp)\n\t{\n\t\treturn date('Y-m-d h:i:s', $timestamp);\n\t}", "private function convertValue($value): string\n {\n if ($value instanceof \\DateTime) {\n return $value->format('Y-m-d H:i:s');\n }\n return (string)$value;\n }", "public function getCreatedAtAttribute($value)\n {\n return date(config('app.date_format'), strtotime($value));\n \n \n }", "public function toTimestamp(): ?int\n {\n $gc = new GregorianCalendar();\n $julianDay = $gc->ymdToJd(($this->year > 0 && $this->epoch) ? -$this->year : $this->year, $this->monthDigital ?: 1, $this->day ?: 1);\n return ($julianDay - 2440588) * 86400;\n }", "function date2Timestamp($date) {\r\n //2003-04-12 00:05:43\r\n if ($date == null) {\r\n return 0;\r\n }\r\n list($y, $mth, $d, $h, $min, $sec) = sscanf($date,\"%d-%d-%d %d:%d:%d\");\r\n return mktime ( $h, $min, $sec, $mth, $d, $y);\r\n}", "function mysqldatetime_to_unix($datetime = '')\r\n {\r\n // function is only applicable for valid MySQL DATETIME (19 characters) and DATE (10 characters)\r\n $l = strlen($datetime);\r\n if(!($l == 10 || $l == 19))\r\n {\r\n return 0;\r\n }\r\n \r\n $date = $datetime;\r\n $hours = 0;\r\n $minutes = 0;\r\n $seconds = 0;\r\n\r\n // DATETIME only\r\n if($l == 19)\r\n {\r\n list($date, $time) = explode(\" \", $datetime);\r\n list($hours, $minutes, $seconds) = explode(\":\", $time);\r\n }\r\n\r\n list($year, $month, $day) = explode(\"-\", $date);\r\n\r\n return mktime($hours, $minutes, $seconds, $month, $day, $year);\r\n }", "public function getCreatedAtAttribute($value)\n {\n return Carbon::parse($value)->setTimezone(config('constants.default-timezone'))->format('Y-m-d H:i:s');\n }", "public function getTAttr($value)\r\n {\r\n return date(\"Y-m-d H:i:s\", $value);\r\n }", "public function toDateTime(&$value = false)\n {\n try{\n $value = (\\DateTime)$value;\n }\n catch(\\Exception $e){\n $value = new \\DateTime('0');\n }\n }", "public function convert_epoch_to_datetime($epoch=false) {\n if(!$epoch) { $epoch = time(); }\n return date('Y-m-d h:i:s',$epoch);\n }", "function epochToDate($epoch,$format){\n /*\n @epoch = 1483228800;\n $format= Y,m,d,j,n,H,i,s\n */\n $dt = new DateTime(\"@$epoch\");\n $convert= $dt->format($format);\n return $convert;\n}", "static public function toDatetime($timestamp) {\r\n\t\tif ($timestamp === null) return null;\r\n\t\telse return \\date('Y-m-d H:i:s', $timestamp);\r\n\t}", "public function coerce($value)\n {\n if ($value instanceof Date) {\n return $value;\n }\n return Date::createFromISO8601($value);\n }", "protected function convertTimeArrayToTimestamp($value)\n {\n foreach (array('hour', 'minute', 'second') as $key)\n {\n if (isset($value[$key]) && !preg_match('#^\\d+$#', $value[$key]) && !empty($value[$key]))\n {\n throw new mfValidatorError($this, 'invalid', array('value' => $value));\n }\n }\n // if second is set, minute and hour must be set\n // if minute is set, hour must be set\n if (\n $this->isValueSet($value, 'second') && (!$this->isValueSet($value, 'minute') || !$this->isValueSet($value, 'hour'))\n ||\n $this->isValueSet($value, 'minute') && !$this->isValueSet($value, 'hour')\n )\n {\n throw new mfValidatorError($this, 'invalid', array('value' => $value));\n }\n $clean = mktime(\n isset($value['hour']) ? intval($value['hour']) : 0,\n isset($value['minute']) ? intval($value['minute']) : 0,\n isset($value['second']) ? intval($value['second']) : 0\n ) - mktime(0,0,0);\n $clean=isset($value['sign']) && $value['sign']=='-'?-$clean:$clean; \n if (false === $clean)\n {\n throw new mfValidatorError($this, 'invalid', array('value' => var_export($value, true)));\n } \n return $clean;\n }", "function getTimestamp($data) {\r\n\t// yyyy-mm-dd HH:ii:ss\r\n\t// 0123456789012345678\r\n\t$h = substr($data, 11, 2);\r\n\t$i = substr($data, 14, 2);\r\n\t$s = substr($data, 17, 2);\r\n\t$m = substr($data, 5, 2);\r\n\t$d = substr($data, 8, 2);\r\n\t$y = substr($data, 0, 4);\r\n\t//**************\r\n\treturn mktime($h, $i, $s, $m, $d, $y);\r\n}", "public static function string_to_date($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.date\"), $value, $m)) return '0000-01-01';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2];\n\t}", "function variant_date_from_timestamp($timestamp) {}", "public function getTimestamp()\n {\n return strtotime($this->getValue());\n }", "function tstamptotime($tstamp) {\n // 1984-09-01T14:21:31Z\n sscanf($tstamp,\"%u-%u-%uT%u:%u:%uZ\",$year,$month,$day,\n $hour,$min,$sec);\n $newtstamp=mktime($hour,$min,$sec,$month,$day,$year);\n return $newtstamp;\n }", "function fechaDesdeUnix($fecha){\n\t$fecha2 = date('Y-m-d H:i:s', $fecha);\n\treturn $fecha2;\n}", "function convertTimestamp($timestamp, $timezone = \"-0000\"){\r\n \treturn \"/Date($timestamp$timezone)/\";\r\n }", "function variant_date_to_timestamp($variant) {}", "protected function asDateTime($value)\n {\n try {\n return parent::asDateTime($value);\n } catch (InvalidArgumentException $e) {\n return parent::asDateTime(new DateTimeImmutable($value));\n }\n }", "public function getUltimaFechaAttribute($value)\n {\n return \\DateTime::createFromFormat($this->getDateFormat(), $value)->format('j/n/Y g:i A');\n }", "function readTimestamp(): int;", "function unix_to_jd($t) {\n\t\treturn ( UNIX_EPOCH + t / SECS_IN_DAY);\n\t}", "public function getDatetimeFormat() : string\n\t{\n\t\treturn 'epoch';\n\t}" ]
[ "0.7584465", "0.72931343", "0.6784168", "0.6769246", "0.6748805", "0.66498107", "0.65533596", "0.6519839", "0.6469967", "0.64350116", "0.6389717", "0.6291606", "0.61732364", "0.61682993", "0.61510736", "0.6127323", "0.6112436", "0.61120355", "0.61012495", "0.6077324", "0.60237515", "0.60108805", "0.6002458", "0.6001243", "0.5996486", "0.59944534", "0.5993947", "0.59816015", "0.59781456", "0.59525657", "0.59431005", "0.59431005", "0.59331316", "0.59292346", "0.5921986", "0.58836097", "0.58780646", "0.5868709", "0.5840636", "0.5837314", "0.58199024", "0.580539", "0.57953775", "0.57872015", "0.57741964", "0.5740298", "0.5712921", "0.5695046", "0.569105", "0.5673211", "0.56723815", "0.567081", "0.5662371", "0.5637644", "0.5637644", "0.5635927", "0.56318676", "0.5628479", "0.55809027", "0.5570027", "0.555909", "0.55551815", "0.55537087", "0.5542482", "0.5540205", "0.55345714", "0.5532361", "0.55310196", "0.5522252", "0.55214614", "0.55209494", "0.5515873", "0.5513789", "0.5497028", "0.5489657", "0.5487054", "0.5481736", "0.5472137", "0.5461842", "0.54618335", "0.54582816", "0.54456186", "0.54407907", "0.5435747", "0.5430165", "0.54065853", "0.53990215", "0.539549", "0.53943586", "0.53803796", "0.5374666", "0.53726196", "0.5363429", "0.5359455", "0.53427726", "0.53298557", "0.53270376", "0.53157735", "0.5315589", "0.53017694" ]
0.8710713
0
= static date_string string_to_date(string $value)
public static function string_to_date($value) { if (!preg_match(conf("regexp.date"), $value, $m)) return '0000-01-01'; return $m[3].'-'.$m[1].'-'.$m[2]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function string_to_datetime($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.datetime\"), $value, $m)) return '0000-01-01 00:00:00';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2].' '.$m[4].':'.$m[5].':'.(isset($m[7]) ? $m[7] : '00');\n\t}", "public function parseDate($value)\n\t{\n\t\treturn $value;\n\t}", "function str2date($str, $default = null)\n{\n if (!is_null($str) && strlen($str) != 0)\n {\n try\n {\n $value = new DateTime((new DateTime($str))->format(\"Y-m-d\"));\n }\n catch (Exception $e)\n {\n $value = $default;\n }\n }\n else\n {\n $value = $default;\n }\n return $value;\n}", "public static function date_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.date'), mktime(0, 0, 0, $m[2], $m[3], $m[1]));\n\t}", "public static function stringToDateTime($string) {}", "public function fromString(string $value): \\DateTime\n {\n return new \\DateTime($value);\n }", "function value_date($value){\r\n\tif(substr($value, 4, 1) == \"-\" && substr($value, 7, 1) == \"-\" && strlen($value) == 10){\r\n\t\t$value = implode(\"/\", array_reverse(explode(\"-\", $value)));\r\n\t}\r\n\tif(valid_date($value)){\r\n\t\treturn date_year($value).\"-\".date_month($value).\"-\".date_day($value);\r\n\t}else{\r\n\t\treturn NULL;\r\n\t}\r\n}", "private function castToDate($value)\n {\n if ($value instanceof \\DateTimeInterface) {\n return \\DateTimeImmutable::createFromFormat('Y-m-d H:i:s.u', $value->format('Y-m-d H:i:s.u'), $value->getTimezone());\n }\n if (is_numeric($value)) {\n return \\DateTimeImmutable::createFromFormat(\\DateTimeImmutable::ATOM, date(\\DateTimeImmutable::ATOM, (int) $value));\n }\n try {\n // Try to parse using database connection format\n $date = \\DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $value);\n } catch (\\InvalidArgumentException $e) {\n // fallback to ISO8601 standard if format does not match database connection format\n $date = \\DateTimeImmutable::createFromFormat(\\DateTime::ATOM, $value);\n }\n return $date ?: \\DateTimeImmutable::createFromFormat(\\DateTime::ATOM, $value);\n }", "public static function prepareDate($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to MM/DD/YYYY automatically\n return $value;\n }", "public function loadDate($value)\n\t{\n\t\treturn strtotime(date('Y-m-d', $value) . ' 00:00:00');\n\t}", "private function validateDate($value) {\n\n is_a($value, 'DateTime') ||\n $value = strtotime($value);\n\n $value = date('Y-m-d', $value);\n\n if (!$value)\n $this->errors[] = 'Date ' . $value . ' is not a valid date';\n\n return $value;\n\n }", "public function convertValue($value)\n {\n // Use date_create to make a DateTime object or return false\n return date_create($value);\n }", "function aDate($string){\n\n\n\t\t}", "function str2date($in){\n\n\t$t = split(\"/\",$in);\n\n\tif (count($t)!=3) return -1;\n\n\tif (!is_numeric($t[0])) return -1;\n\tif (!is_numeric($t[1])) return -2;\n\tif (!is_numeric($t[2])) return -3;\n\n\tif ($t[2]<1902 || $t[2]>2037) return -3;\n\n\treturn mktime (0,0,0, $t[1], $t[0], $t[2]);\n}", "public static function convert($string) {\n \n if(strpos($string, 'Now') !== false) {\n\n list($date, $format, $exceptions) = self::convertNowString($string);\n\n } else if(strpos($string, 'Today') !== false) {\n\n list($date, $format, $exceptions) = self::convertTodayString($string);\n\n } else if(strpos($string, 'Yesterday') !== false) {\n\n list($date, $format, $exceptions) = self::convertYesterdayString($string);\n\n } else if(strpos($string, 'ago') !== false) {\n\n // Note that these are returning approximate values.\n list($date, $format, $exceptions) = self::convertAgoString($string);\n\n } else if(strpos($string, 'AM') !== false ||strpos($string, 'PM') !== false) {\n\n list($date, $format, $exceptions) = self::convertExactDateString($string);\n\n } else if(strpos($string, ', ') !== false) {\n\n list($date, $format, $exceptions) = self::convertDateNoTimeString($string);\n\n } else if(strpos($string, '/') !== false) {\n\n list($date, $format, $exceptions) = self::convertSlashDateString($string);\n\n } else if(strpos($string, '-') !== false && strlen($string) === 8) {\n\n list($date, $format, $exceptions) = self::convertSearchDateString($string);\n\n } else {\n \n list($date, $format, $exceptions) = self::convertYearString($string);\n\n }\n\n if($date === false || $date === null || $format === null) {\n return null;\n }\n\n $date->setTimeZone(new DateTimeZone(self::$tz_final));\n \n return self::convertDateTimeArray($date, $format, $exceptions);\n \n }", "public static function convertStringToDate($date) {\n $date = new DateTime($date); \n $date = $date->format(\"Y-m-d\"); \n return $date;\n }", "private function check_date($date_value)\n {\n $format = $this->settings['format'];\n $date_value = strval($date_value);\n $date_obj = new DateTime($date_value);\n\n $date_value = $date_obj->format($format);\n return $date_value;\n }", "protected function convertString($value, $addErrors = true)\r\n {\r\n // Custom week format support\r\n if (strpos($this->format, 'Y-\\WW') === 0\r\n && preg_match('/^([0-9]{4})\\-W([0-9]{2})/', $value, $matches)\r\n ) {\r\n $date = new DateTime;\r\n $date->setISODate($matches[1], $matches[2]);\r\n } else {\r\n $date = DateTime::createFromFormat($this->format, $value, $this->timezone);\r\n }\r\n\r\n // Invalid dates can show up as warnings (ie. \"2007-02-99\")\r\n // and still return a DateTime object.\r\n $errors = DateTime::getLastErrors();\r\n if ($errors['warning_count'] > 0) {\r\n if ($addErrors) {\r\n $this->error(self::FALSE_FORMAT);\r\n }\r\n return false;\r\n }\r\n\r\n return $date;\r\n }", "function evalDate($value) {\n\t\tif (!$value) {\n\t\t\treturn false;\n\t\t}\n\t\t$checkValue = trim($value);\n\t\tif (strlen($checkValue) == 8) {\n\t\t\t$checkValue = substr($checkValue,0,2).'.'.substr($checkValue,2,2)\n\t\t\t\t.'.'.substr($checkValue,4,4) ;\n\t\t}\n\t\tlist($day,$month,$year) = split('\\.', $checkValue, 3);\n\t\tif(is_numeric($year) && is_numeric($month) && is_numeric($day)) {\n\t\t\treturn checkdate($month, $day, $year);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function coerce($value)\n {\n if ($value instanceof Date) {\n return $value;\n }\n return Date::createFromISO8601($value);\n }", "function toDate($string, $format){\r\n\t\t$months = ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'];\r\n\r\n\t\t$date = explode(' ', $string)[0];\r\n\t\t$time = substr(explode(' ', $string)[1], 0, 5);\r\n\r\n\t\t$day = explode('-', $date)[2];\r\n\t\t$monthS = explode('-', $date)[1];\r\n\t\t$monthL = $months[intval($monthS) - 1];\r\n\t\t$year = explode('-', $date)[0];\r\n\r\n\t\tif($format == 'short')\r\n\t\t\treturn $day.'/'.$monthS.'/'.$year.' '.$time;\r\n\t\telse\r\n\t\t\treturn $day.' '.$monthL.' '.$year.' '.$time;\r\n\t}", "public function getDateFromString($date){\n\t\t$date = strtotime($date);\n\t\treturn $date;\n\t}", "public function format ($value)\n {\n try {\n $date = new Zend_Date($value);\n }\n catch (Exception $e) {\n return $value;\n }\n\n return $date->toString($this->date_format, $this->type, $this->locale);\n }", "public function parseDatetime($value)\n\t{\n\t\treturn $value;\n\t}", "public function parse($value)\n {\n if(empty($value)) return '';\n if($this->validation_format == DateTimeFormat::REDCAP_TIME) return $value; // skip parsing for time\n $datetime = \\DateTime::createFromFormat($this->from, $value);\n if(!($datetime instanceof \\DateTime)) throw new \\Exception(\"The value '{$value}' is not in the expected format '{$this->from}\", 1);\n // Dates must be imported here only in \"Y-m-d H:i:[s]\" format, regardless of the specific date format designated for this field.)\n $date_string = $this->convert($datetime, $this->validation_format);\n return $date_string;\n }", "function str2datetime($str, $default = null)\n{\n if (!is_null($str) && strlen($str) != 0)\n {\n try\n {\n $value = new DateTime($str);\n }\n catch (Exception $e)\n {\n $value = $default;\n }\n }\n else\n {\n $value = $default;\n }\n return $value;\n}", "protected static function field($value)\n { if ( ! is_string($value)) {\n return $value;\n }\n\n if (preg_match('/^\\d{4}\\D\\d{2}\\D\\d{2}(?:\\D?\\d{2}:\\d{2}(?::\\d{2})?)?$/', $value)) {\n return new \\MongoDate(strtotime($value));\n }\n }", "public function get_value($value)\n {\n if (is_null($value))\n return null;\n else\n return date($this->date_format, strtotime($value));\n }", "public function formatDate($value)\n\t{\n\t\treturn $value;\n\t}", "public function formatDate($value)\n {\n \tif($value !== NULL):\n\t \tif(strpos($value, '/') !== false)\n\t \t\t$value = AFormatter::revertDate($value);\n\t\t\t\t\n\t //if(!is_numeric($value)) $value=strtotime ($value);\n\t //return date($this->dateFormat,$value);\n\t \n\t \n\t //LO: To format date that falls outside of 32 bit integer range \n\t if(DateTime::createFromFormat('Y-m-d',$value))\n\t \t\treturn DateTime::createFromFormat('Y-m-d',$value)->format($this->dateFormat);\n\t\t\telse if(DateTime::createFromFormat('Y-m-d G:i:s',$value))\n\t\t\t\treturn DateTime::createFromFormat('Y-m-d G:i:s',$value)->format($this->dateFormat);\t\n\t\t\telse if(DateTime::createFromFormat('Y/m/d',$value))\n\t\t\t\treturn DateTime::createFromFormat('Y/m/d',$value)->format($this->dateFormat);\n\t\t\telse if(DateTime::createFromFormat('d-m-Y',$value))\n\t\t\t\treturn DateTime::createFromFormat('d-m-Y',$value)->format($this->dateFormat);\n\t\t\telse \n\t\t\t\treturn $value;\n\n\t\telse:\n\t\t\treturn $value;\n\t\tendif;\n }", "public static function parseDate(string $value): DateTimeImmutable\n {\n return self::parseDateTime($value)->setTime(0, 0);\n }", "public static function convertDate($strValue, $strFormat = 'Y-m-d')\n {\n if (empty($strValue))\n return;\n if (self::isDateTemplate($strValue))\n $strMethod = 'convertDateTemplate';\n elseif (self::isDateBase($strValue))\n $strMethod = 'convertDateBase';\n elseif (self::isDateWs($strValue))\n $strMethod = 'convertDateWs';\n return (empty($strMethod)) ? $strValue : self::$strMethod($strValue, $strFormat);\n }", "public static function isDateString($value, $name)\n {\n self::isString($value, 'value');\n\n try {\n new \\DateTime($value);\n\n return true;\n } catch (\\Exception $e) {\n throw new \\InvalidArgumentException(\n sprintf(\n Resources::ERROR_INVALID_DATE_STRING,\n $name,\n $value\n )\n );\n }\n }", "public static function datetime_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)\\s(\\d\\d):(\\d\\d):(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.datetime'), mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]));\n\t}", "function parsedate($datestring)\r\n\t{\r\n\r\n\r\n\t}", "public static function isDate($strValue, $strTypeDate = null)\n {\n $mixDateParse = self::getDateParse($strValue, $strTypeDate);\n if (is_bool($mixDateParse))\n return $mixDateParse;\n return checkdate((integer) $mixDateParse['month'], (integer) $mixDateParse['day'], (integer) $mixDateParse['year']);\n }", "public static function prepareDatetime($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to datetime automatically\n return $value;\n }", "function format_date($value) {\t\n\t$value = (int)$value;\n\tif($value > 0)\n\t\treturn date($GLOBALS['i18']['date_format'],$value);\n\telse\n\t\treturn '';\n}", "private static function convertDateNoTimeString($string) {\n\n if(strlen(explode(', ', $string)[0]) > 3) {\n\n $date = DateTime::createFromFormat('!M j, Y', $string);\n \n return [$date, 'Y-m-d', []];\n\n } else if(strlen(explode(', ', $string)[0]) > 2) {\n\n $date = DateTime::createFromFormat('!M, Y', $string);\n \n return [$date, 'Y-m', []];\n\n }\n\n }", "function convert_date($date, $from_format, $to_format){\r\n\t// exemplo: convert_date(\"20/02/2009\",\"d/m/Y\",\"Y-m-d\"); (retorna \"2009-02-20\")\r\n\tif(strlen($date) == 0){\r\n\t\treturn $date;\r\n\t}\r\n\tif(strlen($from_format) == 3){\r\n\t\t$date = substr($date, 0, 2).\"-\".substr($date, 2, 2).\"-\".substr($date, 4);\r\n\t\t$from_format = substr($from_format, 0, 1).\"-\".substr($from_format, 1, 1).\"-\".substr($from_format, 2);\r\n\t}\r\n\t$separator = substr($from_format, 1, 1);\r\n\t$format = explode($separator, strtoupper($from_format));\r\n\t$date = explode($separator, $date);\r\n\tforeach($format as $i => $char){\r\n\t\tswitch($char){\r\n\t\t\tcase \"D\": $day = $date[$i];\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"M\": $mon = $date[$i];\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Y\": $yea = $date[$i];\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\t$date = mktime(0, 0, 0, $mon, $day, $yea);\r\n\treturn date($to_format, $date);\r\n}", "public static function convertDateWs($strValue, $strFormat = 'd/m/Y')\n {\n return self::convertDateAction($strValue, self::TYPE_DATE_WS, $strFormat);\n }", "public function getFromWebserviceImport($value)\n {\n $timestamp = strtotime($value);\n if (empty($value)) {\n return null;\n } else if ($timestamp !== FALSE) {\n return new Pimcore_Date($timestamp);\n } else {\n throw new Exception(\"cannot get values from web service import - invalid data\");\n }\n }", "function convert_date($date) {\n\t// Bad date format: 01.09.2012\n\n\t// Detect date format\n\tif (preg_match('/20[0-9][0-9]-[0-9][0-9]-[0-3][0-9]/', $date)) {\n\t\t// Good format already\n\t\treturn $date;\n\t}\n\t$d = date_parse_from_format('j.n.Y', $date);\n\treturn date('Y-m-d', mktime(0,0,0,$d['month'], $d['day'], $d['year']));\n}", "public static function getDateParse($strValue, $strTypeDate = null)\n {\n $arrDateFormat = self::getDateFormat($strValue, $strTypeDate);\n if (is_bool($arrDateFormat))\n return $arrDateFormat;\n $strFormat = $arrDateFormat[0];\n $strTypeDate = $arrDateFormat[1];\n $arrDateParse = date_parse_from_format($strFormat, $strValue);\n if (is_array($arrDateParse)) {\n $arrDateParse['format'] = $strFormat;\n $arrDateParse['type_intern'] = $strTypeDate;\n }\n return $arrDateParse;\n }", "public static function strToDateTime($data) {\r\n $match = [];\r\n preg_match(\"/[0-9]{2}\\/[0-9]{2}\\/[0-9]{4}/\", $data, $match);\r\n return \\DateTime::createFromFormat('Y-m-d', $match[0]);\r\n }", "public function convertToDate($varValue,$objDC=null)\n\t{\n\t\tif(empty($varValue))\n\t\t{\n\t\t\treturn $varValue;\n\t\t}\n\t\t\n\t\t$varValue = deserialize($varValue);\n\t\t\n\t\tif(!is_array($varValue))\n\t\t{\n\t\t\t$varValue = explode(',',$varValue);\n\t\t}\n\t\t\n\t\t$strFormat = 'm/d/Y';\n\t\tif(strlen($objDC->customFormat) > 0)\n\t\t{\n\t\t\t$strFormat = $objDC->customFormat;\n\t\t}\n\t\t\n\t\t$arrReturn = array();\n\t\tforeach($varValue as $value)\n\t\t{\n\t\t\t// convert unix timestamps back to date format\n\t\t\tif(is_int((int)$value) && is_numeric($value))\n\t\t\t{\n\t\t\t\t$value = \\System::parseDate($strFormat,$value);\n\t\t\t}\n\t\t\t$arrReturn[] = $value;\n\t\t}\n\t\t\n\t\t// sort values\n\t\tsort($arrReturn);\n\t\t\n\t\treturn $arrReturn;\n\t}", "function stringToDate($datestring,$format=DATE_FORMAT){\r\n\t$thedate=NULL;\r\n\tif($datestring){\r\n\t\tswitch($format){\r\n\r\n\t\t\tcase \"SQL\":\r\n\t\t\t\t$temparray=explode(\"-\",$datestring);\r\n\t\t\t\tif(count($temparray)==3)\r\n\t\t\t\t\t$thedate=mktime(0,0,0,(int) $temparray[1],(int) $temparray[2],(int) $temparray[0]);\r\n\t\t\t\telse\r\n\t\t\t\t\treturn false;\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase \"English, US\":\r\n\t\t\t\t$datestring=\"/\".preg_replace(\"/,./\",\"/\",$datestring);\r\n\t\t\t\t$temparray=explode(\"/\",$datestring);\r\n\t\t\t\tif(count($temparray)==4)\r\n\t\t\t\t\t$thedate=mktime(0,0,0,(int) $temparray[1],(int) $temparray[2],(int) $temparray[3]);\r\n\t\t\t\telse\r\n\t\t\t\t\treturn false;\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase \"English, UK\":\r\n\t\t\t\t$datestring=\"/\".preg_replace(\"/,./\",\"/\",$datestring);\r\n\t\t\t\t$temparray=explode(\"/\",$datestring);\r\n\t\t\t\tif(count($temparray)==4)\r\n\t\t\t\t\t$thedate=mktime(0,0,0,(int) $temparray[2],(int) $temparray[1],(int) $temparray[3]);\r\n\t\t\t\telse\r\n\t\t\t\t\treturn false;\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase \"Dutch, NL\":\r\n\t\t\t\t$datestring=\"-\".preg_replace(\"/,./\",\"-\",$datestring);\r\n\t\t\t\t$temparray=explode(\"-\",$datestring);\r\n\t\t\t\tif(count($temparray)==4)\r\n\t\t\t\t\t$thedate=mktime(0,0,0,(int) $temparray[2],(int) $temparray[1],(int) $temparray[3]);\r\n\t\t\t\telse\r\n\t\t\t\t\treturn false;\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\t}\r\n\treturn $thedate;\r\n}", "protected function asDate($value)\n {\n return $this->asDateTime($value)->startOfDay();\n }", "function generateDate( $value )\r\n\t{\r\n\t\treturn( strftime( \"%Y-%m-%d\", $value ) );\r\n\t}", "function str2DBDT($str)\n{\n $intTime = strtotime($str);\n if ($intTime === false)\n return NULL;\n return date(\"Y-m-d H:i:s\", $intTime);\n}", "public static function toDate(?string $value, bool $datetime = false)\n {\n $d1 = $d2 = $d3 = $h = $m = $s = null;\n if (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})(?: (\\d{2}):(\\d{2}):(\\d{2}))?/', $value, $m)) {\n if (isset($m[6])) {\n [, $year, $month, $day, $h, $m, $s] = $m;\n } else {\n [, $year, $month, $day] = $m;\n }\n } else {\n sscanf($value, self::$formats[self::P_DATETIMESEC_FMT], $d1, $d2, $d3, $h, $m, $s);\n [$year, $month, $day] = explode('-', sprintf(self::$formats[self::P_DATEREV_FMT], $d1, $d2, $d3));\n }\n\n if (empty($year)) {\n $year = date('Y');\n } elseif ($year < 50) {\n $year += 2000;\n } elseif ($year < 100) {\n $year += 1900;\n }\n\n if (!checkdate($month, $day, $year)) {\n return false;\n } else {\n return $datetime\n ? sprintf('%04d-%02d-%02d %02d:%02d:%02d', $year, $month, $day, $h, $m, $s)\n : sprintf('%04d-%02d-%02d', $year, $month, $day);\n }\n }", "protected function convertPregDateToString($value) {\n \t/**\n \t * 1 => year\n \t * 2 => month\n \t * 3 => day\n \t * 4 => hour\n \t * 5 => minute\n \t * 6 => second\n \t * 7 => microsecond or null\n \t */\n \treturn sprintf(\n \t\t'%04d-%02d-%02d %02d:%02d:%02d',\n \t\t$value[1],\n \t\t$value[2],\n \t\t$value[3],\n \t\t$value[4],\n \t\t$value[5],\n \t\tisset($value[6]) ? $value[6] : 0 \n \t);\n }", "function read_date($str){\n if($str)\n return date('F j, Y, g:i:s a', strtotime($str));\n else\n return null;\n\n}", "public static function convertDateTemplate($strValue, $strFormat = 'Y-m-d')\n {\n return self::convertDateAction($strValue, self::TYPE_DATE_TEMPLATE, $strFormat);\n }", "public function formatDate($value)\n {\n $return = \"'\" . date($this->dateFormat, strtotime($value)) . \"'\";\n\n return $return;\n }", "public function getDateAttribute($value)\n {\n return Carbon::parse($value)->format(self::DATE_FORMAT_GET);\n }", "private static function convertSearchDateString($string) {\n\n if(preg_match('/(?:^|\\s|$)\\d{2}-\\d{2}-\\d{2}(?:^|\\s|$)/', $string, $matches)) {\n\n // MM-DD-YY\n if(substr($matches[0], 6, 2) > 30) {\n $date = DateTime::createFromFormat('m-d-Y', substr($matches[0], 0, 6) . '19' . substr($matches[0], 6, 2));\n } else {\n $date = DateTime::createFromFormat('m-d-Y', substr($matches[0], 0, 6) . '20' . substr($matches[0], 6, 2));\n }\n\n return [$date, 'Y-m-d', []];\n // return $date->format('Y-m-d');\n\n } else if(preg_match('/(?:^|\\s|$)\\d{2}-\\d{2}-\\?\\?(?:^|\\s|$)/', $string, $matches)) {\n\n // MM-DD-??\n $date = DateTime::createFromFormat('m-d', substr($matches[0], 0, 5));\n\n return [$date, '', [\n 'Y' => null\n ]];\n\n } else if(preg_match('/(?:^|\\s|$)\\d{2}-\\?\\?-\\d{2}(?:^|\\s|$)/', $string, $matches)) {\n\n // MM-??-YY\n if(substr($matches[0], 6, 2) > 30) {\n $date = DateTime::createFromFormat('mY', substr($matches[0], 0, 2) . '19' . substr($matches[0], 6, 2));\n } else {\n $date = DateTime::createFromFormat('mY', substr($matches[0], 0, 2) . '20' . substr($matches[0], 6, 2));\n }\n\n return [$date, 'Y-m', [\n 'd' => null\n ]];\n\n } else if(preg_match('/(?:^|\\s|$)\\d{2}-\\?\\?-\\?\\?(?:^|\\s|$)/', $string, $matches)) {\n\n // MM-??-??\n $date = DateTime::createFromFormat('m', substr($matches[0], 0, 2));\n\n return [$date, '', [\n 'Y' => null,\n 'd' => null\n ]];\n\n } else if(preg_match('/(?:^|\\s|$)\\?\\?-\\d{2}-\\d{2}(?:^|\\s|$)/', $string, $matches)) {\n\n // ??-DD-YY\n if(substr($matches[0], 6, 2) > 30) { \n $date = DateTime::createFromFormat('dY', substr($matches[0], 3, 2) . '19' . substr($matches[0], 6, 2));\n } else {\n $date = DateTime::createFromFormat('dY', substr($matches[0], 3, 2) . '20' . substr($matches[0], 6, 2));\n }\n \n return [$date, 'Y', [\n 'm' => null\n ]];\n\n } else if(preg_match('/(?:^|\\s|$)\\?\\?-\\d{2}-\\?\\?(?:^|\\s|$)/', $string, $matches)) {\n\n // ??-DD-??\n $date = DateTime::createFromFormat('d', substr($matches[0], 3, 2));\n\n return [$date, '', [\n 'Y' => null,\n 'm' => null\n ]];\n\n } else if(preg_match('/(?:^|\\s|$)\\?\\?-\\?\\?-\\d{2}(?:^|\\s|$)/', $string, $matches)) {\n\n // ??-??-YY\n if(substr($matches[0], 6, 2) > 30) {\n $date = DateTime::createFromFormat('Y', '19' . substr($matches[0], 6, 2));\n } else {\n $date = DateTime::createFromFormat('Y', '20' . substr($matches[0], 6, 2));\n }\n\n return [$date, 'Y', [\n 'm' => null,\n 'd' => null\n ]];\n\n } else if(preg_match('/(?:^|\\s|$)\\?\\?-\\?\\?-\\?\\?(?:^|\\s|$)/', $string, $matches)) {\n\n // ??-??-??\n return [null, null, []];\n\n }\n\n return [null, null, []];\n \n }", "public static function convertDateAction($strValue, $strTypeDate = null, $strFormat = 'Y-m-d')\n {\n $arrInfoDate = self::getInfoDate($strValue, $strTypeDate);\n if (!is_array($arrInfoDate))\n return;\n $arrDate = $arrInfoDate[0];\n $arrTime = $arrInfoDate[1];\n $strTypeDate = $arrInfoDate[3];\n $intTimestamp = null;\n if (($arrDate[2] < 1970) || ($arrDate[2] > 2037)) {\n $intTimestamp = strtotime($strValue);\n if ((is_null($intTimestamp)) || (is_bool($intTimestamp)) || ($intTimestamp < 0)) {\n foreach ($arrDate as $intKey => $strPartDate)\n $arrDate[$intKey] = str_pad($strPartDate, ($intKey == 2) ? 4 : 2, '0', STR_PAD_LEFT);\n foreach ($arrTime as $intKey => $strPartTime)\n $arrTime[$intKey] = str_pad($strPartTime, 2, '0', STR_PAD_LEFT);\n $strDateFinal = str_replace(array('Y', 'y', 'o'), $arrDate[2], $strFormat);\n $strDateFinal = str_replace(array('m', 'M', 'n', 'F'), $arrDate[1], $strDateFinal);\n $strDateFinal = str_replace(array('d', 'j'), $arrDate[0], $strDateFinal);\n if (count($arrTime) > 0) {\n $strDateFinal = str_replace('H', $arrTime[0], $strDateFinal);\n $strDateFinal = str_replace('i', $arrTime[1], $strDateFinal);\n $strDateFinal = str_replace('s', $arrTime[2], $strDateFinal);\n }\n return $strDateFinal;\n }\n } else {\n $strMethod = null;\n if ($strTypeDate == self::TYPE_DATE_BASE)\n $strMethod = 'convertDateBaseToTimestamp';\n elseif ($strTypeDate == self::TYPE_DATE_TEMPLATE)\n $strMethod = 'convertDateTemplateToTimestamp';\n elseif ($strTypeDate == self::TYPE_DATE_WS)\n $strMethod = 'convertDateWsToTimestamp';\n if (empty($strMethod))\n return;\n $intTimestamp = self::$strMethod($strValue);\n }\n return (empty($intTimestamp)) ? null : date($strFormat, $intTimestamp);\n }", "public function formatString(string $value): string\n {\n // regex source https://stackoverflow.com/a/3143231\n if (preg_match(\"/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/\", $value)) {\n return Carbon::parse($value)->format('Y-m-d H:i:s');\n }\n return $value;\n }", "private function parseDate($string)\n {\n $month_local = $this->i8n('local-months');\n $month_en = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ];\n\n // A date can be prfixed with some words, we remove theme\n $string = $this->removeDatePrefixes($string);\n // We translate the local months name in the english one\n $date_str = trim(str_replace($month_local, $month_en, $string));\n\n // If the date does not contain any year, we add the current year\n if (!preg_match('/[0-9]{4}/', $string)) {\n $date_str .= ' ' . date('Y');\n }\n\n // Add the Hour and minutes\n $date_str .= ' 00:00';\n $date = DateTime::createFromFormat('j F Y H:i', $date_str);\n // In some case, the date is not recognized : as a workaround the actual date is taken\n if ($date === false) {\n $date = new DateTime();\n }\n return $date->getTimestamp();\n }", "function date_conv($dateString) {\n\t$newDateString = \"00/00/0000\";\n\t\n\t// remover aspas simples e duplas\n\t$dateString = str_replace(\"'\",\"\",$dateString);\n\t$dateString = str_replace(\"\\\"\",\"\",$dateString);\n\t//se estiver no formato normal \tdd/mm/YYYY\n\tif( strlen($dateString) == 10 &&\n\t\tsubstr($dateString,2,1)=='/' &&\n\t\tsubstr($dateString,5,1)=='/') {\n\t\t$date = explode(\"/\",$dateString);\n\t\t$newDateString = $date[2].\"-\".$date[1].\"-\".$date[0];\n\t}\n\t//se estiver no formato do banco YYYY-mm-dd\n\telseif( strlen($dateString) == 10 &&\n\t\t\tsubstr($dateString,4,1)=='-' &&\n\t\t\tsubstr($dateString,7,1)=='-') {\n\t\t$date = explode(\"-\",$dateString);\n\t\t$newDateString = $date[2].\"/\".$date[1].\"/\".$date[0];\n\t}\n\treturn $newDateString;\n}", "function mysql_to_date ($datestr) {\n\t\t$tempDate=array(substr($datestr,0,4),substr($datestr,4,2),substr($datestr,6,2));\n\t\t$tempTime=array(substr($datestr,8,2),substr($datestr,10,2),substr($datestr,12,2));\n\t\t$datestr=implode(\"-\",$tempDate).\" \".implode(\":\",$tempTime);\n\t\treturn $datestr;\n\t}", "protected function convertDateArrayToString($value)\n {\n foreach (array('year', 'month', 'day', 'hour', 'minute', 'second') as $key)\n {\n if (isset($value[$key]) && !preg_match('#^\\d+$#', $value[$key]) && !empty($value[$key]))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n }\n\n // if one date value is empty, other must be empty too\n $empties =\n (!isset($value['year']) || !$value['year'] ? 1 : 0) +\n (!isset($value['month']) || !$value['month'] ? 1 : 0)\n ;\n if ($empties > 0 && $empties < 2)\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n else if (2 == $empties)\n {\n return $this->getEmptyValue();\n }\n\n if (!checkdate(intval($value['month']), 1, intval($value['year'])))\n {\n throw new sfValidatorError($this, 'invalid', array('value' => $value));\n }\n\n $clean = sprintf(\n \"%04d-%02d\",\n intval($value['year']),\n intval($value['month'])\n );\n\n return $clean;\n }", "function date_to_ts($value) {\n\treturn strtotime($value);\n}", "public static function convertToDateTime($value)\n {\n if ($value instanceof \\DateTime) {\n return $value;\n }\n\n if (substr($value, -1) == 'Z') {\n $value = substr($value, 0, strlen($value) - 1);\n }\n\n return new \\DateTime($value, new \\DateTimeZone('UTC'));\n }", "protected function _convertToDateTime($value = '')\n {\n \tif ($value === '') {\n \t\treturn false;\n \t}\n\n \tif ($value instanceof DateTime) {\n \t\treturn $value;\n \t}\n\n \tif (@strtotime($value) !== false) {\n\t \ttry {\n\t \t\tif (substr($value, -1) == 'Z') {\n\t \t\t\t$value = substr($value, 0, strlen($value) - 1);\n\t \t\t}\n\t \t\treturn new DateTime($value, new DateTimeZone('UTC'));\n\t \t}\n\t \tcatch (Exception $ex) {\n\t \t\treturn false;\n\t \t}\n\t }\n\n \treturn false;\n }", "public static function convertDateBase($strValue, $strFormat = 'd/m/Y')\n {\n return self::convertDateAction($strValue, self::TYPE_DATE_BASE, $strFormat);\n }", "function read_date($str){\n date_default_timezone_set(\"America/Mexico_City\");\n if($str)\n return date('d/m/Y', strtotime($str));\n else\n return null;\n }", "public function setDateFormat(?string $value): void {\n $this->getBackingStore()->set('dateFormat', $value);\n }", "public static function converterDate($value, $entrada, $saida)\n\t{\n\t\tswitch ($entrada) {\n\t\t\tcase 'YYYY-MM-DD':\n\t\t\t\tswitch ($saida) {\n\t\t\t\t\tcase 'DD/MM/YYYY':\n\t\t\t\t\t\t$data = explode(\"-\", $value);\n return \"{$data[2]}/{$data[1]}/{$data[0]}\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'DD/MM/YYYY':\n\t\t\t\tswitch ($saida) {\n\t\t\t\t\tcase 'YYYY-MM-DD':\n\t\t\t\t\t\t$data = explode(\"/\", $value);\n return \"{$data[2]}-{$data[1]}-{$data[0]}\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\t}", "function dateConvert($str){\n\t$GMT = 8;\t// Time zones with GMT+8\n\tif($str=='NULL' || $str ==''){\n\t\treturn $str;\n\t}else{\n\t\treturn date('Y-m-d H:i:s', strtotime($str) + $GMT * 3600);\n\t}\n}", "public static function from_checkfront_date($valueOrArray, $key = null) {\n $value = CheckfrontModule::NullDate;\n\n if ($valueOrArray) {\n if (is_array($valueOrArray)) {\n if ($key && isset($valueOrArray[$key])) {\n\n $value = $valueOrArray[$key];\n $year = substr($value, 0, 4);\n $month = substr($value, 5, 2);\n $day = substr($value, 7, 2);\n\n $value = date('Y-m-d', mktime(0, 0, 0, (int)$month, (int)$day, (int)$year));\n } else {\n throw new CheckfrontException(\"Invalid date passed: '\" . implode(',', $valueOrArray) . \"'\", CheckfrontException::TypeError);\n }\n } elseif (is_numeric($valueOrArray)) {\n $year = substr($valueOrArray, 0, 4);\n $month = substr($valueOrArray, 5, 2);\n $day = substr($valueOrArray, 7, 2);\n\n $value = date('Y-m-d', mktime(0, 0, 0, (int)$month, (int)$day, (int)$year));\n } else {\n throw new CheckfrontException(\"Invalid date passed: '$valueOrArray'\", CheckfrontException::TypeError);\n }\n } else {\n // no date is OK, just return default null date\n }\n\n return $value;\n }", "public function getStartDateAttribute($value){\n\t\tif( $value == \"0000-00-00\" || $value == NULL ){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\treturn date(\"d/m/Y\", strtotime($value));\n\t\t}\n\t}", "function convertDate($date) {\n\tif ($date == '')\n\t\treturn false;\n\tlist ($d, $m, $Y, $H, $M, $S) = sscanf($date, \"%2d-%2d-%4d %2d:%2d:%2d\");\n\tif (!$H && !$M && !$S)\n\t\treturn strtotime(\"$m/$d/$Y\");\n\telse\n\t\treturn strtotime(\"$m/$d/$Y $H:$M:$S\");\n}", "public static function StrToDateTime($date) {\n return date('Y-m-d H:i:s', CDateTimeParser::parse($date, Yii::app()->params['dtTimeFormat']));\n }", "function dateFromStr1($strDate){\n $d=explode('/',$strDate);\n $year = $d[2];\n $month = $d[0];\n $day = $d[1];\n return mktime(0,0,0,$month,$day,$year);\n\n}", "public function getStartDateAttribute($value)\n {\n return Carbon::parse($value)->format('m/d/Y');\n }", "static public function formatDate($string) {\n if (self::$_static_handler == null) {\n self::$_static_handler = slDatabaseManager::getConnection();\n }\n $format = self::$_static_handler->getDateTimeFormat();\n return date($format, strtotime($string));\n }", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->toDateTimeString();\n }", "public static function parse($str) {\n if (($str === null) || ($str == '')) {\n return null;\n }\n\n $ary = explode('-', $str);\n\n $year = (integer) $ary[0];\n $month = (integer) $ary[1];\n $day = (integer) $ary[2];\n\n return new Date($year, $month, $day);\n }", "public static function getDateFormat($strValue, $strTypeDate = null)\n {\n if ((empty($strValue)) || (is_array($strValue)))\n return false;\n if ((is_object($strValue)) && ($strValue instanceof \\DateTime))\n $strValue = $strValue->date;\n $arrValue = explode(' ', $strValue);\n if (count($arrValue) > 2)\n return false;\n $strDateValue = trim($arrValue[0]);\n $strTimeValue = (count($arrValue) > 1) ? trim($arrValue[1]) : null;\n if (($strTypeDate == self::TYPE_DATE_BASE) || ((is_null($strTypeDate)) && (stripos($strDateValue, '-') !== false))) {\n $arrValue = explode('-', $strDateValue);\n if (count($arrValue) != 3)\n return false;\n $strFormatDays = (empty($arrValue[2])) ? '' : ((is_numeric($arrValue[2])) ? 'd' : 'D');\n $strFormatMonths = (empty($arrValue[1])) ? '' : ((is_numeric($arrValue[1])) ? 'm' : 'M');\n $strFormatYears = (empty($arrValue[0])) ? '' : ((strlen((integer) $arrValue[0]) == 2) ? 'y' : 'Y');\n $strFormat = $strFormatYears . '-' . $strFormatMonths . '-' . $strFormatDays;\n $strTypeDate = self::TYPE_DATE_BASE;\n } elseif (($strTypeDate == self::TYPE_DATE_TEMPLATE) || ((is_null($strTypeDate)) && (stripos($strDateValue, '/') !== false))) {\n $arrValue = explode('/', $strDateValue);\n if (count($arrValue) != 3)\n return false;\n $strFormatDays = (empty($arrValue[0])) ? '' : ((is_numeric($arrValue[0])) ? 'd' : 'D');\n $strFormatMonths = (empty($arrValue[1])) ? '' : ((is_numeric($arrValue[1])) ? 'm' : 'M');\n $strFormatYears = (empty($arrValue[2])) ? '' : ((strlen((integer) $arrValue[2]) == 2) ? 'y' : 'Y');\n $strFormat = $strFormatDays . '/' . $strFormatMonths . '/' . $strFormatYears;\n $strTypeDate = self::TYPE_DATE_TEMPLATE;\n } elseif (($strTypeDate == self::TYPE_DATE_WS) || ((is_null($strTypeDate)) && (stripos($strDateValue, '/') === false) && (stripos($strDateValue, '-') === false))) {\n if (!preg_match('/\\d{8}/', $strValue))\n return false;\n $strFormat = 'Ymd';\n $strTypeDate = self::TYPE_DATE_WS;\n } else\n return false;\n if (!empty($strTimeValue)) {\n if (strpos($strTimeValue, ':') !== false) {\n $arrTimeValue = explode(':', $strTimeValue);\n if (array_key_exists(0, $arrTimeValue))\n $strFormat .= ' H';\n if (array_key_exists(1, $arrTimeValue))\n $strFormat .= ':i';\n if (array_key_exists(2, $arrTimeValue))\n $strFormat .= ':s';\n } elseif (strlen($strTimeValue) <= 2)\n $strFormat .= ' H';\n elseif (strlen($strTimeValue) <= 4)\n $strFormat .= ' Hi';\n else\n $strFormat .= ' His';\n }\n return array($strFormat, $strTypeDate);\n }", "private static function processInputAsDateString() {\n $unix = strtotime(self::$input);\n\n if ($unix) { \n self::$timestamp = $unix;\n self::setDateFromTimestamp(self::$timestamp);\n } else {\n self::setMessage(\"Sorry. Your input was invalid.\");\n }\n }", "public function parseDate($string = null)\n {\n if ($string == null) {\n return null;\n }\n\n return Carbon::parse($string);\n }", "public static function parseDateTime(string $value): DateTimeImmutable\n {\n try {\n return new DateTimeImmutable($value);\n } catch (Exception $e) {\n throw new InvalidInputException('Cannot parse date. Got: ' . $value);\n }\n }", "public function getDateAttribute($value)\n {\n return Carbon::parse($value)->format('d/m/Y');\n }", "function parse_date($date_in){\n $explode = explode('.', $date_in);\n\n // If not period type of date format, then try dashes\n if (count($explode) == 1) {\n $explode = explode('-', $date_in);\n }\n\n // If neither of above formats, assume special case\n if (count($explode) != 3) {\n return \"SPECIAL_CASE\";\n }\n\n $day = trim($explode[0]);\n $month = parse_month(trim($explode[1]));\n $year = trim($explode[2]);\n\n if ($month == 0) {\n return \"SPECIAL_CASE\";\n }\n\n return $year.'.'.$month.'.'.$day;\n}", "function api_date($str){\n\t\treturn datetime_convert('UTC', 'UTC', $str, 'D M d H:i:s +0000 Y' );\n\t}", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->format('Y-m-d');\n }", "function format_data_in($string_date)\n{\n // $formatted_date = \"DATE_FORMAT($db_date_column, '%a, %e %b %Y ')\";\n $temp = strtotime($string_date);\n $date = date('Y-m-d', $temp);\n $date = DateTime::createFromFormat('D, j M Y', $temp)->format('Y-m-d');\n print_r($date);\n return $date;\n}", "public function reverseTransform($dateString)\n {\n if (!$dateString) {\n return;\n }\n return date_create_from_format('d/m/Y', $dateString);\n }", "function conv_date($date)\n\t{\n\t\t$arr = explode(' ', $date);\n\t\t$y = $arr[2];\n\t\t$m = $this->convert_month_name('Eng-Num', str_replace(',','',$arr[0]));\n\t\t$d = $arr[1];\n\t\t\n\t\treturn $y.'-'.$m.'-'.$d; // output : 1986-1-24\n\t}", "public function setDateFormat($value)\n {\n if (is_string($value) === false)\n throw new SystemException(SystemException::EX_INVALIDPARAMETER, 'Parameter = value');\n \n $this->dateFormat = $value;\n }", "function custDateFormat($string, $format = 'Y-m-d H:i:s') {\n $return = date($format,strtotime($string));\n return $return;\n}", "public static function convertDateWsToTimestamp($strValue)\n {\n return self::convertDateToTimestampAction($strValue, self::TYPE_DATE_WS);\n }", "public function reverseTransform($dateString)\n {\n if (!$dateString) {\n return;\n }\n\n return date_create_from_format('d/m/Y', $dateString);\n }", "public static function StrToDate($date) {\n $ar = explode('/',$date);\n return $ar[2].'-'.$ar[1].'-'.$ar[0];\n }", "public function setDateAttribute($value)\n {\n $this->attributes['date'] = Carbon::parse($value)->format(self::DATE_FORMAT_SET);\n }", "function value_datetime($value){\r\n\t$value = explode(\" \", $value);\r\n\t$date = value_date($value[0]);\r\n\t$time = value_time($value[1]);\r\n\tif(strlen($date) === 0){\r\n\t\treturn null;\r\n\t}\r\n\tif(strlen($time) === 0){\r\n\t\t$time = \"00:00:00\";\r\n\t}\r\n\treturn \"{$date} {$time}\";\r\n}", "public function formatDateStrf(string $value, string $format): string\n {\n if (strlen($value) > 0) {\n $format = $this->convertZendToStrftime($format);\n if (strtoupper(substr((string)PHP_OS, 0, 3)) == 'WIN') {\n $format = preg_replace('#(?<!%)((?:%%)*)%e#', '\\1%#d', $format);\n }\n\n return date($format, strtotime($value));\n }\n return '';\n }", "public function getReleaseDateAttribute($value)\n {\n //format release date if not already formatted\n if ( ! preg_match('/[a-z]|[A-Z]|-/', $value) && strlen($value) > 4)\n {\n return Carbon::createFromFormat('Y-m-d', $value)->toFormattedDateString();\n }\n\n return $value;\n }" ]
[ "0.71707165", "0.71324104", "0.68610954", "0.6846299", "0.6825893", "0.66422594", "0.6566953", "0.64734954", "0.645276", "0.63821316", "0.6359672", "0.6306294", "0.628081", "0.627937", "0.62144727", "0.6204261", "0.6128746", "0.6095755", "0.60848206", "0.6077337", "0.6077138", "0.60670274", "0.6064361", "0.60486305", "0.6048509", "0.60431397", "0.604265", "0.60169005", "0.59790516", "0.59299964", "0.5901992", "0.58962005", "0.58701104", "0.5864277", "0.5792074", "0.57864183", "0.57845217", "0.57844543", "0.57781625", "0.5769152", "0.5724664", "0.5693804", "0.568787", "0.5682421", "0.56820476", "0.5662615", "0.56616557", "0.5657864", "0.56434876", "0.5636532", "0.56177723", "0.5599419", "0.559607", "0.5594745", "0.5591881", "0.55689496", "0.5549173", "0.5547335", "0.55457014", "0.55437994", "0.5540961", "0.5535536", "0.553081", "0.5504059", "0.54720724", "0.54577667", "0.54570657", "0.5448185", "0.5434026", "0.5432859", "0.5426514", "0.54176885", "0.5413956", "0.54139525", "0.5413527", "0.5396626", "0.53851026", "0.53681254", "0.53654146", "0.5343205", "0.53417474", "0.53384125", "0.5319204", "0.53187114", "0.5314586", "0.53116024", "0.53029203", "0.52898973", "0.5288656", "0.5281683", "0.5275932", "0.52758634", "0.52744436", "0.5273559", "0.5272059", "0.52700216", "0.5269739", "0.5267817", "0.52670574", "0.526438" ]
0.87530357
0
= static datetime_string string_to_datetime(string $value)
public static function string_to_datetime($value) { if (!preg_match(conf("regexp.datetime"), $value, $m)) return '0000-01-01 00:00:00'; return $m[3].'-'.$m[1].'-'.$m[2].' '.$m[4].':'.$m[5].':'.(isset($m[7]) ? $m[7] : '00'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fromString(string $value): \\DateTime\n {\n return new \\DateTime($value);\n }", "public static function stringToDateTime($string) {}", "public static function string_to_date($value)\n\t{\n\t\tif (!preg_match(conf(\"regexp.date\"), $value, $m)) return '0000-01-01';\n\t\treturn $m[3].'-'.$m[1].'-'.$m[2];\n\t}", "public function parseDatetime($value)\n\t{\n\t\treturn $value;\n\t}", "public static function convertToDateTime($value)\n {\n if ($value instanceof \\DateTime) {\n return $value;\n }\n\n if (substr($value, -1) == 'Z') {\n $value = substr($value, 0, strlen($value) - 1);\n }\n\n return new \\DateTime($value, new \\DateTimeZone('UTC'));\n }", "public static function prepareDatetime($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to datetime automatically\n return $value;\n }", "public function createDateTime(string $value): DateTime\n {\n return (new DateTime($value))->setTimezone($this->getDateTimeZone());\n }", "protected function _convertToDateTime($value = '')\n {\n \tif ($value === '') {\n \t\treturn false;\n \t}\n\n \tif ($value instanceof DateTime) {\n \t\treturn $value;\n \t}\n\n \tif (@strtotime($value) !== false) {\n\t \ttry {\n\t \t\tif (substr($value, -1) == 'Z') {\n\t \t\t\t$value = substr($value, 0, strlen($value) - 1);\n\t \t\t}\n\t \t\treturn new DateTime($value, new DateTimeZone('UTC'));\n\t \t}\n\t \tcatch (Exception $ex) {\n\t \t\treturn false;\n\t \t}\n\t }\n\n \treturn false;\n }", "public static function datetime_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)\\s(\\d\\d):(\\d\\d):(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.datetime'), mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]));\n\t}", "protected function asDateTime($value)\n {\n\n $value = \\App\\Http\\Controllers\\Base::ConvertTimezone($value);\n\n return $value;\n\n }", "function value_datetime($value){\r\n\t$value = explode(\" \", $value);\r\n\t$date = value_date($value[0]);\r\n\t$time = value_time($value[1]);\r\n\tif(strlen($date) === 0){\r\n\t\treturn null;\r\n\t}\r\n\tif(strlen($time) === 0){\r\n\t\t$time = \"00:00:00\";\r\n\t}\r\n\treturn \"{$date} {$time}\";\r\n}", "function str2datetime($str, $default = null)\n{\n if (!is_null($str) && strlen($str) != 0)\n {\n try\n {\n $value = new DateTime($str);\n }\n catch (Exception $e)\n {\n $value = $default;\n }\n }\n else\n {\n $value = $default;\n }\n return $value;\n}", "public static function parseDateTime(string $value): DateTimeImmutable\n {\n try {\n return new DateTimeImmutable($value);\n } catch (Exception $e) {\n throw new InvalidInputException('Cannot parse date. Got: ' . $value);\n }\n }", "protected function asDateTime($value)\n {\n\n $value = \\App\\Http\\Controllers\\Base::ConvertTimezone($value);\n\n return $value;\n\n }", "private function castToDate($value)\n {\n if ($value instanceof \\DateTimeInterface) {\n return \\DateTimeImmutable::createFromFormat('Y-m-d H:i:s.u', $value->format('Y-m-d H:i:s.u'), $value->getTimezone());\n }\n if (is_numeric($value)) {\n return \\DateTimeImmutable::createFromFormat(\\DateTimeImmutable::ATOM, date(\\DateTimeImmutable::ATOM, (int) $value));\n }\n try {\n // Try to parse using database connection format\n $date = \\DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $value);\n } catch (\\InvalidArgumentException $e) {\n // fallback to ISO8601 standard if format does not match database connection format\n $date = \\DateTimeImmutable::createFromFormat(\\DateTime::ATOM, $value);\n }\n return $date ?: \\DateTimeImmutable::createFromFormat(\\DateTime::ATOM, $value);\n }", "public static function unix_timestamp_to_datetime($value)\n\t{\n\t\treturn date(conf(\"format.datetime\"), $value);\n\t}", "public function parse($value)\n {\n if(empty($value)) return '';\n if($this->validation_format == DateTimeFormat::REDCAP_TIME) return $value; // skip parsing for time\n $datetime = \\DateTime::createFromFormat($this->from, $value);\n if(!($datetime instanceof \\DateTime)) throw new \\Exception(\"The value '{$value}' is not in the expected format '{$this->from}\", 1);\n // Dates must be imported here only in \"Y-m-d H:i:[s]\" format, regardless of the specific date format designated for this field.)\n $date_string = $this->convert($datetime, $this->validation_format);\n return $date_string;\n }", "public static function StrToDateTime($date) {\n return date('Y-m-d H:i:s', CDateTimeParser::parse($date, Yii::app()->params['dtTimeFormat']));\n }", "public static function toDate(?string $value, bool $datetime = false)\n {\n $d1 = $d2 = $d3 = $h = $m = $s = null;\n if (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})(?: (\\d{2}):(\\d{2}):(\\d{2}))?/', $value, $m)) {\n if (isset($m[6])) {\n [, $year, $month, $day, $h, $m, $s] = $m;\n } else {\n [, $year, $month, $day] = $m;\n }\n } else {\n sscanf($value, self::$formats[self::P_DATETIMESEC_FMT], $d1, $d2, $d3, $h, $m, $s);\n [$year, $month, $day] = explode('-', sprintf(self::$formats[self::P_DATEREV_FMT], $d1, $d2, $d3));\n }\n\n if (empty($year)) {\n $year = date('Y');\n } elseif ($year < 50) {\n $year += 2000;\n } elseif ($year < 100) {\n $year += 1900;\n }\n\n if (!checkdate($month, $day, $year)) {\n return false;\n } else {\n return $datetime\n ? sprintf('%04d-%02d-%02d %02d:%02d:%02d', $year, $month, $day, $h, $m, $s)\n : sprintf('%04d-%02d-%02d', $year, $month, $day);\n }\n }", "static function datetime($value){\n\t\t$arr_value = explode(\" \", $value);\n\t\t$date = DBValue::date($arr_value[0]);\n\t\tif(is_null($date)){\n\t\t\treturn null;\n\t\t}\n\t\t$time = DBValue::time($arr_value[1]);\n\t\tif(is_null($time)){\n\t\t\t$time = \"00:00:00\";\n\t\t}\n\t\treturn $date.\" \".$time;\n\t}", "protected function asDateTime($value)\n {\n return $value;\n }", "protected function asDateTime($value)\n {\n try {\n return parent::asDateTime($value);\n } catch (InvalidArgumentException $e) {\n return parent::asDateTime(new DateTimeImmutable($value));\n }\n }", "public static function strToDateTime($data) {\r\n $match = [];\r\n preg_match(\"/[0-9]{2}\\/[0-9]{2}\\/[0-9]{4}/\", $data, $match);\r\n return \\DateTime::createFromFormat('Y-m-d', $match[0]);\r\n }", "public function parseDate($value)\n\t{\n\t\treturn $value;\n\t}", "public function convertValue($value)\n {\n // Use date_create to make a DateTime object or return false\n return date_create($value);\n }", "public function fromDateTime($value){\n return strtotime(parent::fromDateTime($value));\n }", "private function toDateTime($string)\n\t{\n\t\tif ($dateTime = date_create($string)) {\n\t\t\treturn $dateTime;\n\t\t}\n\n\t\treturn null;\n\t}", "public static function parseDate(string $value): DateTimeImmutable\n {\n return self::parseDateTime($value)->setTime(0, 0);\n }", "protected function asDateTime($value)\n {\n // If this value is an integer, we will assume it is a UNIX timestamp's value\n // and format a Carbon object from this timestamp. This allows flexibility\n // when defining your date fields as they might be UNIX timestamps here.\n if (is_numeric($value)) {\n return Carbon::createFromTimestamp($value);\n }\n\n // If the value is in simply year, month, day format, we will instantiate the\n // Carbon instances from that format. Again, this provides for simple date\n // fields on the database, while still supporting Carbonized conversion.\n elseif (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})$/', $value)) {\n return Carbon::createFromFormat('Y-m-d', $value)->startOfDay();\n }\n\n return Carbon::instance($value);\n }", "public static function getDateTime($value)\n {\n $dateTime = parent::getDateTime($value);\n\n return $dateTime instanceof DateTimeImmutable\n ? $dateTime\n : DateTimeImmutable::createFromMutable($dateTime);\n }", "function ToDateTime($datetime) {\n\t\tif (strlen($datetime) == 14) {\n\t\t\treturn preg_replace(\"~([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})~\", \"\\\\1-\\\\2-\\\\3 \\\\4:\\\\5:\\\\6\", $datetime);\n\t\t} else {\n\t\t\treturn $datetime;\n\t\t}\n\t}", "protected function convertString($value, $addErrors = true)\r\n {\r\n // Custom week format support\r\n if (strpos($this->format, 'Y-\\WW') === 0\r\n && preg_match('/^([0-9]{4})\\-W([0-9]{2})/', $value, $matches)\r\n ) {\r\n $date = new DateTime;\r\n $date->setISODate($matches[1], $matches[2]);\r\n } else {\r\n $date = DateTime::createFromFormat($this->format, $value, $this->timezone);\r\n }\r\n\r\n // Invalid dates can show up as warnings (ie. \"2007-02-99\")\r\n // and still return a DateTime object.\r\n $errors = DateTime::getLastErrors();\r\n if ($errors['warning_count'] > 0) {\r\n if ($addErrors) {\r\n $this->error(self::FALSE_FORMAT);\r\n }\r\n return false;\r\n }\r\n\r\n return $date;\r\n }", "public function loadDate($value)\n\t{\n\t\treturn strtotime(date('Y-m-d', $value) . ' 00:00:00');\n\t}", "public static function datetime($string) {\n \tif (preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2}( [0-9]{2}:[0-9]{2}(:[0-9]{2})?)?$/', trim($string))) {\n \t\treturn trim($string);\n \t} else {\n \t\treturn false;\n \t}\n }", "public function formatDatetime($value)\n\t{\n\t\treturn $value;\n\t}", "protected function asDateTime($value)\n {\n // If the value is already a Carbon instance, we will just skip the rest of\n // these checks since they will be a waste of time, and hinder performance\n // when checking the field. We will just return the Carbon right away.\n if ($value instanceof Carbon) {\n //\n }\n\n // If this value is an integer, we will assume it is a UNIX timestamp's value\n // and format a Carbon object from this timestamp. This allows flexibility\n // when defining your date fields as they might be UNIX timestamps here.\n elseif (is_numeric($value)) {\n $date = new Carbon();\n return $date->setTimestamp($value);\n }\n\n // If the value is in simply year, month, day format, we will instantiate the\n // Carbon instances from that format. Again, this provides for simple date\n // fields on the database, while still supporting Carbonized conversion.\n elseif (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})$/', $value)) {\n return Carbon::createFromFormat('Y-m-d', $value);\n }\n\n // If the value is in simply hour, minute, second format, we will instantiate the\n // Carbon instances from that format.\n elseif (preg_match('/^(\\d{2}):(\\d{2}):(\\d{2})$/', $value)) {\n return Carbon::createFromFormat('H:i:s', $value);\n }\n\n // If the value is in zulu format, we will instantiate the\n // Carbon instances from that format.\n elseif (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})Z$/', $value)) {\n return Carbon::createFromFormat('Y-m-d\\TH:i:s\\Z', $value);\n }\n\n return new Carbon($value->format('Y-m-d H:i:s.u'), $value->getTimeZone());\n }", "public static function isDateString($value, $name)\n {\n self::isString($value, 'value');\n\n try {\n new \\DateTime($value);\n\n return true;\n } catch (\\Exception $e) {\n throw new \\InvalidArgumentException(\n sprintf(\n Resources::ERROR_INVALID_DATE_STRING,\n $name,\n $value\n )\n );\n }\n }", "function format_datetime($value) {\n\t$value = (int)$value;\n\tif($value > 0 )\n\t\treturn date($GLOBALS['i18']['formats']['date_time'],$value);\n\telse\n\t\treturn '';\n}", "public function testDatetimeValidation($value) {\n $this->expectException(AssertionFailedError::class);\n\n $this->fieldStorage->setSetting('datetime_type', DateTimeItem::DATETIME_TYPE_DATETIME);\n $this->fieldStorage->save();\n $entity = EntityTest::create();\n\n $entity->set('field_datetime', $value);\n $this->entityValidateAndSave($entity);\n }", "private function validateDate($value) {\n\n is_a($value, 'DateTime') ||\n $value = strtotime($value);\n\n $value = date('Y-m-d', $value);\n\n if (!$value)\n $this->errors[] = 'Date ' . $value . ' is not a valid date';\n\n return $value;\n\n }", "public static function createFromString($string)\n {\n return new self(\\DateTime::createFromFormat(self::FORMAT, $string));\n }", "public static function get_value_dt($value)\n\t{\n\t\tif (preg_match('/(\\d{4})-W(\\d{2})/i', $value, $matches))\n\t\t{\n\t\t\t$year = $matches[1];\n\t\t\t$week = $matches[2];\n\t\t\treturn new DateTime(\"{$year}W{$week} UTC\");\n\t\t}\n\t\treturn NULL;\n\t}", "public function coerce($value)\n {\n if ($value instanceof Date) {\n return $value;\n }\n return Date::createFromISO8601($value);\n }", "protected static function field($value)\n { if ( ! is_string($value)) {\n return $value;\n }\n\n if (preg_match('/^\\d{4}\\D\\d{2}\\D\\d{2}(?:\\D?\\d{2}:\\d{2}(?::\\d{2})?)?$/', $value)) {\n return new \\MongoDate(strtotime($value));\n }\n }", "function str2date($str, $default = null)\n{\n if (!is_null($str) && strlen($str) != 0)\n {\n try\n {\n $value = new DateTime((new DateTime($str))->format(\"Y-m-d\"));\n }\n catch (Exception $e)\n {\n $value = $default;\n }\n }\n else\n {\n $value = $default;\n }\n return $value;\n}", "protected function asDateTime($value)\n {\n // If this value is already a Carbon instance, we shall just return it as is.\n // This prevents us having to re-instantiate a Carbon instance when we know\n // it already is one, which wouldn't be fulfilled by the DateTime check.\n if ($value instanceof \\Carbon\\Carbon) {\n return $value;\n }\n\n // If the value is already a DateTime instance, we will just skip the rest of\n // these checks since they will be a waste of time, and hinder performance\n // when checking the field. We will just return the DateTime right away.\n if ($value instanceof DateTimeInterface) {\n return new \\Carbon\\Carbon(\n $value->format('Y-m-d H:i:s.u'), $value->getTimezone()\n );\n }\n\n // If this value is an integer, we will assume it is a UNIX timestamp's value\n // and format a Carbon object from this timestamp. This allows flexibility\n // when defining your date fields as they might be UNIX timestamps here.\n if (is_numeric($value)) {\n return \\Carbon\\Carbon::createFromTimestamp($value);\n }\n\n // If the value is in simply year, month, day format, we will instantiate the\n // Carbon instances from that format. Again, this provides for simple date\n // fields on the database, while still supporting Carbonized conversion.\n if ($this->isStandardDateFormat($value)) {\n return \\Carbon\\Carbon::createFromFormat('Y-m-d', $value)->startOfDay();\n }\n\n // Finally, we will just assume this date is in the format used by default on\n // the database connection and use that format to create the Carbon object\n // that is returned back out to the developers after we convert it here.\n\n// return \\Carbon\\Carbon::createFromFormat(\n// $this->getDateFormat(), $value\n// );\n\n try{\n return \\Carbon\\Carbon::createFromFormat(\n 'Y-m-d H:i:s', $value\n );\n }\n catch(\\Exception $e){\n return \\Carbon\\Carbon::createFromFormat(\n 'Y-m-d H:i:se', $value\n );\n }\n }", "public static function convertToEdmDateTime($value)\n {\n if (empty($value)) {\n return $value;\n }\n\n if (is_string($value)) {\n $value = self::convertToDateTime($value);\n }\n\n Validate::isDate($value, 'value');\n\n $cloned = clone $value;\n $cloned->setTimezone(new \\DateTimeZone('UTC'));\n\n return str_replace('+0000', 'Z', $cloned->format(\\DateTime::ISO8601));\n }", "public static function prepareDate($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to MM/DD/YYYY automatically\n return $value;\n }", "function generateDateTime( $value )\r\n\t{\r\n\t\treturn( strftime( \"%Y-%m-%d %H:%M:%S\", $value ) );\r\n\t}", "public function getFromWebserviceImport($value)\n {\n $timestamp = strtotime($value);\n if (empty($value)) {\n return null;\n } else if ($timestamp !== FALSE) {\n return new Pimcore_Date($timestamp);\n } else {\n throw new Exception(\"cannot get values from web service import - invalid data\");\n }\n }", "public function getCreatedAtAttribute($value)\n {\n return DateTime::createFromFormat('j/n/Y g:i A', $value);\n }", "protected function validateDateTimeValue($value, $column)\n {\n $value = DateTimeHelper::makeCarbon($value, false);\n\n if (!$value instanceof Carbon) {\n throw new ApplicationException(Lang::get(\n 'backend::lang.list.invalid_column_datetime',\n ['column' => $column->columnName]\n ));\n }\n\n return $value;\n }", "public static function str2time($datetime) {\n return strtotime($datetime);\n }", "public static function date_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.date'), mktime(0, 0, 0, $m[2], $m[3], $m[1]));\n\t}", "public function toDateTime(&$value = false)\n {\n try{\n $value = (\\DateTime)$value;\n }\n catch(\\Exception $e){\n $value = new \\DateTime('0');\n }\n }", "protected function asDateTime($value)\n {\n // If this value is already a Carbon instance, we shall just return it as is.\n // This prevents us having to re-instantiate a Carbon instance when we know\n // it already is one, which wouldn't be fulfilled by the DateTime check.\n if ($value instanceof CarbonInterface) {\n return Carbon::instance($value);\n }\n\n // If the value is already a DateTime instance, we will just skip the rest of\n // these checks since they will be a waste of time, and hinder performance\n // when checking the field. We will just return the DateTime right away.\n if ($value instanceof \\DateTimeInterface) {\n return Carbon::parse(\n $value->format('Y-m-d H:i:s.u'),\n $value->getTimezone()\n );\n }\n\n // If this value is an integer, we will assume it is a UNIX timestamp's value\n // and format a Carbon object from this timestamp. This allows flexibility\n // when defining your date fields as they might be UNIX timestamps here.\n if (is_numeric($value)) {\n return Carbon::createFromTimestamp($value);\n }\n\n // If the value is in simply year, month, day format, we will instantiate the\n // Carbon instances from that format. Again, this provides for simple date\n // fields on the database, while still supporting Carbonized conversion.\n if ($this->isStandardDateFormat($value)) {\n return Carbon::instance(Carbon::createFromFormat('Y-m-d', $value)->startOfDay());\n }\n\n $format = $this->getDateFormat();\n\n // Finally, we will just assume this date is in the format used by default on\n // the database connection and use that format to create the Carbon object\n // that is returned back out to the developers after we convert it here.\n try {\n $date = Carbon::createFromFormat($format, $value);\n } catch (\\InvalidArgumentException $e) {\n $date = false;\n }\n\n return $date ?: Carbon::parse($value);\n }", "public function fromDateTime($value)\n {\n // ensure that if the datetime or carbon object we were given contained a timezone, we convert to the app timezone (instead of stripping it) before outputting a storable string\n if ($value) {\n return $this->asDateTime($value)->setTimeZone(config('app.timezone'))->format($this->getDateFormat());\n }\n\n return $value;\n }", "function str2DBDT($str)\n{\n $intTime = strtotime($str);\n if ($intTime === false)\n return NULL;\n return date(\"Y-m-d H:i:s\", $intTime);\n}", "public function datetime_to_date($datetime) {\r\n\t\t\r\n\t}", "public function getUpdatedAtAttribute($value)\n {\n return DateTime::createFromFormat('j/n/Y g:i A', $value);\n }", "public static function convert($string) {\n \n if(strpos($string, 'Now') !== false) {\n\n list($date, $format, $exceptions) = self::convertNowString($string);\n\n } else if(strpos($string, 'Today') !== false) {\n\n list($date, $format, $exceptions) = self::convertTodayString($string);\n\n } else if(strpos($string, 'Yesterday') !== false) {\n\n list($date, $format, $exceptions) = self::convertYesterdayString($string);\n\n } else if(strpos($string, 'ago') !== false) {\n\n // Note that these are returning approximate values.\n list($date, $format, $exceptions) = self::convertAgoString($string);\n\n } else if(strpos($string, 'AM') !== false ||strpos($string, 'PM') !== false) {\n\n list($date, $format, $exceptions) = self::convertExactDateString($string);\n\n } else if(strpos($string, ', ') !== false) {\n\n list($date, $format, $exceptions) = self::convertDateNoTimeString($string);\n\n } else if(strpos($string, '/') !== false) {\n\n list($date, $format, $exceptions) = self::convertSlashDateString($string);\n\n } else if(strpos($string, '-') !== false && strlen($string) === 8) {\n\n list($date, $format, $exceptions) = self::convertSearchDateString($string);\n\n } else {\n \n list($date, $format, $exceptions) = self::convertYearString($string);\n\n }\n\n if($date === false || $date === null || $format === null) {\n return null;\n }\n\n $date->setTimeZone(new DateTimeZone(self::$tz_final));\n \n return self::convertDateTimeArray($date, $format, $exceptions);\n \n }", "public function getCreatedAtAttribute($value)\n {\n return \\DateTime::createFromFormat('j/n/Y g:i A', $value);\n\n }", "private static function convertDateNoTimeString($string) {\n\n if(strlen(explode(', ', $string)[0]) > 3) {\n\n $date = DateTime::createFromFormat('!M j, Y', $string);\n \n return [$date, 'Y-m-d', []];\n\n } else if(strlen(explode(', ', $string)[0]) > 2) {\n\n $date = DateTime::createFromFormat('!M, Y', $string);\n \n return [$date, 'Y-m', []];\n\n }\n\n }", "public function parseValue($value)\n {\n return Carbon::parse($value)->toIso8601String();\n }", "public static function parseDateTimeToTimestamp($value, $timeValue = null)\n {\n return DbDateValidator::parseDateTime($value, $timeValue);\n }", "static public function fromDateTime($datetime){\n\t\t$dateParts = explode(' ', $datetime);\n\t\treturn new Date($dateParts[0]);\n\t}", "function parse_input_date(string $value): ?array\n{\n $parsed_date = date_parse_from_format(\"Y-m-d H:i\", $value);\n if ($parsed_date[\"error_count\"] > 0) {\n return null;\n }\n return [\n \"epoch\" => mktime($parsed_date['hour'], $parsed_date['minute'], 0, $parsed_date['month'], $parsed_date['day'], $parsed_date['year']),\n \"date\" => explode(\" \", $value)[0],\n \"time_hour\" => $parsed_date['hour'],\n \"time_minute\" => $parsed_date['minute']\n ];\n}", "static public function fromDatetime($datetime) {\r\n\t\tif ($datetime === null) return null;\r\n\t\telse return \\strtotime($datetime);\r\n\t}", "protected function asDateTime($value)\n {\n // Convert UTCDateTime instances.\n if ($value instanceof Timestamp) {\n return Carbon::createFromTimestamp($value->time());\n }\n\n return parent::asDateTime($value);\n }", "private function convertValue($value): string\n {\n if ($value instanceof \\DateTime) {\n return $value->format('Y-m-d H:i:s');\n }\n return (string)$value;\n }", "static function fromDatetime($datetime) {\n\t\tif (!preg_match(\"/^(\\d{4})-?(\\d{2})-?(\\d{2})T?(\\d{2}):?(\\d{2}):?(\\d{2})(.?)$/\", $datetime, $a)) {\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\t$obj = new Date();\n\t\t$obj->setDate($a[1], $a[2], $a[3]);\n\t\t$obj->setTime($a[4], $a[5], $a[6]);\n\t\t\n\t\treturn $obj;\n\t}", "public static function Parse($stringValue, $format)\r\n {\r\n if (is_object($stringValue))\r\n {\r\n if (get_class($stringValue) == 'DateTime')\r\n return new SMDateTime(strtotime($stringValue->format('d-m-Y H:i:s')));\r\n else\r\n return new SMDateTime(strtotime($stringValue));\r\n }\r\n else\r\n return new SMDateTime(strtotime($stringValue));\r\n }", "private function _convertDateTimes(&$value, $timezone = null)\n\t{\n\t\tif (is_array($value) && ($columns = $this->getSettings()->columns))\n\t\t{\n\t\t\tforeach ($value as &$row)\n\t\t\t{\n\t\t\t\tforeach ($columns as $colId => $col)\n\t\t\t\t{\n\t\t\t\t\tif ((array_key_exists($colId, $row)) && (in_array($col['type'], array('datetime', 'date', 'time'))))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((is_string($row[$colId]) && $row[$colId]) || (is_array($row[$colId]) && (isset($row[$colId]['date']) || isset($row[$colId]['time']))))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row[$colId] = DateTime::createFromString($row[$colId], $timezone);\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$row[$colId] = '';\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}", "public function parse(string $value);", "public function fromDateTime($value)\n {\n // If the value is already a UTCDateTime instance, we don't need to parse it.\n if ($value instanceof Timestamp) {\n return $value;\n }\n\n // Let Eloquent convert the value to a DateTime instance.\n if (!$value instanceof DateTime) {\n $value = parent::asDateTime($value);\n }\n\n return new Timestamp($value->timestamp);\n }", "public function stringToSQL($string)\r\n\t\t{\r\n\t\t\treturn $this->timeToSQL($this->stringToTime($string, \"datetime\"));\r\n\t\t}", "function date_to_ts($value) {\n\treturn strtotime($value);\n}", "public function mustBeDateTime($value, string $propertyPath = null, UIValidatorInterface $parentValidator = null, string $exceptionMessage = null)\n {\n $dateValidation = new DateValidation();\n\n $this->validationEngine->validateFieldValue(\n $parentValidator ?: $this,\n function() use ($value, $propertyPath, $exceptionMessage, $dateValidation) {\n if (null === $value || ! $dateValidation->isDateTimeValid($value)) {\n throw new InvalidArgumentException(\n $exceptionMessage ?: sprintf('Datetime \"%s\" format invalid, must be Y-m-d\\TH:i:sP (RFC3339). Ex: 2016-06-01T00:00:00+00:00.', $value),\n 0,\n $propertyPath,\n $value\n );\n }\n }\n );\n\n if (null === $value) {\n return $this->createDefaultDateTime(); // Invalid\n }\n\n $date = $dateValidation->createDateTimeFromString($value);\n\n if ($date instanceof \\DateTime) {\n return $date; // Valid\n }\n\n return $this->createDefaultDateTime(); // Invalid\n }", "public static function datetime_to_unix_timestamp($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)\\s(\\d\\d):(\\d\\d):(\\d\\d)/', $value, $m)) return 0;\n\t\treturn mktime($m[4], $m[5], $m[6], $m[2], $m[3], $m[1]);\n\t}", "public function ov_datetime($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('datetime', $name, $value, true, $args);\n }", "public function convertToPhpDateTime(?string $dbValue): ?\\DateTimeImmutable;", "public function getStartDateAttribute($value) {\n $value = Carbon::parse($value);\n return $value->format(\"Y-m-d H:i\");\n }", "public static function convertToDateTime($stringDate)\n {\n $timestamp = strtotime($stringDate);\n return date(\"Y-m-d H:i:s\", $timestamp);\n }", "protected function metadataTimestampToDateTime(string $timestamp) : \\DateTimeImmutable\n {\n $dateTime = \\DateTimeImmutable::createFromFormat(\"Y-m-d\\TH:i:sT\", $timestamp);\n if ($dateTime === false) {\n throw new FormatException($timestamp, \"Could not be interpreted as a DateTime\");\n }\n return $dateTime;\n }", "public function get_value($value)\n {\n if (is_null($value))\n return null;\n else\n return date($this->date_format, strtotime($value));\n }", "public static function convertDateBaseToTimestamp($strValue)\n {\n return self::convertDateToTimestampAction($strValue, self::TYPE_DATE_BASE);\n }", "function uk_datetime_from_mysql($timestamp, $date_seperator=\"/\", $time_seperator=\":\", $seperator=\" \")\n{\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\tereg (\"([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\n\tif (sizeof($regs)>1)\n\t{\n\t\tif (sizeof($regs)>4)\n\t\t{\n\t\t\t$date=$regs[3].$date_seperator.$regs[2].$date_seperator.$regs[1].$seperator.$regs[4].$time_seperator.$regs[5].$time_seperator.$regs[6];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$date=$regs[3].$date_seperator.$regs[2].$date_seperator.$regs[1];\n\t\t}\n\t}\n\telse\n\t{\n\t\t$date=\"unavailable\";\n\t}\n\treturn $date;\n}", "private function getDatetime($string)\n {\n $pattern = '/title=\"([^\"]+)\"/';\n $str = Common::getFirstMatch($string, $pattern);\n $date = DateTime::createFromFormat('M d Y, H:m', $str);\n return $date->getTimestamp();\n }", "public static function convertStringDate($datetime, $pattern)\r\n\t{\r\n\t\treturn date($pattern, strtotime($datetime));\r\n\t}", "public function getStartDateAttribute($value)\n {\n return Carbon::parse($value);\n }", "public function getDateAttribute($value)\n {\n return Carbon::parse($value)->format(self::DATE_FORMAT_GET);\n }", "public static function parseDateTime($value, $pattern = 'Y-m-d', $timeValue = null)\n {\n $ts = self::parseDateTimeToTimestamp($value, $timeValue);\n $dt = new \\DateTime();\n $dt->setTimestamp($ts);\n return $dt->format($pattern);\n }", "public static function parse($string)\n {\n $string = File_Therion_Line::unescape($string);\n $data = explode(' ', $string, 3);\n \n if (count($data) > 1) {\n return array(\n new File_Therion_Date($data[0]),\n // data[1] must contain a '-'\n new File_Therion_Date($data[2])\n );\n } else {\n return new File_Therion_Date($data[0]);\n }\n }", "public static function convertDateWsToTimestamp($strValue)\n {\n return self::convertDateToTimestampAction($strValue, self::TYPE_DATE_WS);\n }", "private static function convertExactDateString($string) {\n\n if(strlen($string) > 15) {\n\n // Only month and date -> This year\n $date = DateTime::createFromFormat('!M j, g:i A', $string, new DateTimeZone(self::$tz_mal));\n \n } else {\n\n // Contains Year\n $date = DateTime::createFromFormat('!M j, Y g:i A', $string, new DateTimeZone(self::$tz_mal));\n\n }\n\n return [$date, 'Y-m-d\\TH:iO', []];\n\n // return $date->format('Y-m-d\\TH:iO');\n \n\n }", "public function getDateAttribute($value)\n {\n return Carbon::createFromFormat('U', $value);\n }", "public static function validateDate($value)\n {\n if (preg_match('/^' .\n '(\\d{4})-(\\d{2})-(\\d{2})T' . // YYYY-MM-DDT ex: 2014-01-01T\n '(\\d{2}):(\\d{2}):(\\d{2})' . // HH-MM-SS ex: 17:00:00\n '(Z|((-|\\+)\\d{2}:\\d{2}))' . // Z or +01:00 or -01:00\n '$/', $value, $parts) == true) {\n try {\n new \\DateTime($value);\n return true;\n } catch (\\Exception $e) {\n return false;\n }\n } else {\n return false;\n }\n }", "public function testDateonlyValidation($value) {\n $this->expectException(AssertionFailedError::class);\n\n $this->fieldStorage->setSetting('datetime_type', DateTimeItem::DATETIME_TYPE_DATE);\n $this->fieldStorage->save();\n $entity = EntityTest::create();\n\n $entity->set('field_datetime', $value);\n $this->entityValidateAndSave($entity);\n }", "public function getDateTime(): DateTime\n {\n $datetime = DateTime::createFromFormat('!ymd', $this->field1);\n\n if (checkdate(\n (int) substr($this->field1, 2, 2),\n (int) substr($this->field1, 4, 2),\n (int) substr($this->field1, 0, 2)\n ) === false\n ) {\n throw new Exception(\"field1 value is not a valid gregorian date string; $this->field1\");\n }\n\n if ($datetime === false) {\n throw new Exception(\"Unable to convert parsed field1 into DateTime; $this->field1\");\n }\n\n return $datetime;\n }", "function ts2dt($timestamp) {\n $pieces = explode(\"_\",$timestamp);\n $date = new DateTime();\n $date->setDate($pieces[0],$pieces[1],$pieces[2]);\n $date->setTime($pieces[3],$pieces[4],$pieces[5]);\n return $date;\n}" ]
[ "0.804302", "0.7945321", "0.73805994", "0.72598", "0.6998354", "0.695208", "0.6930708", "0.66155654", "0.65443987", "0.65354544", "0.6523276", "0.65147656", "0.6501732", "0.6453573", "0.6392331", "0.6361307", "0.6322311", "0.6289856", "0.6249858", "0.623177", "0.61882776", "0.6181865", "0.6177841", "0.6120893", "0.611069", "0.6074315", "0.60121876", "0.59815085", "0.5875552", "0.58451426", "0.58120936", "0.57901895", "0.5769214", "0.5740335", "0.56241953", "0.5618823", "0.56172144", "0.55810535", "0.55790275", "0.557866", "0.55735135", "0.5570737", "0.5563039", "0.5557144", "0.55536723", "0.5551428", "0.55509794", "0.55375475", "0.55109644", "0.5510364", "0.5504945", "0.5491529", "0.54836494", "0.54821247", "0.5449489", "0.5416576", "0.5408366", "0.5390722", "0.536951", "0.53568137", "0.5347919", "0.53457856", "0.53225654", "0.53040695", "0.5290737", "0.52853143", "0.5283153", "0.52566814", "0.52537286", "0.5243058", "0.5241546", "0.523991", "0.5228252", "0.52211505", "0.5215181", "0.52015084", "0.5171328", "0.5162781", "0.5148266", "0.5147833", "0.51408327", "0.513543", "0.5133126", "0.51177984", "0.51130545", "0.51080644", "0.5093832", "0.50932485", "0.5093051", "0.50838125", "0.5078028", "0.5077547", "0.5076189", "0.50521463", "0.5049931", "0.5045802", "0.50382215", "0.503112", "0.50250953", "0.5022306" ]
0.89176124
0
$inst_table = BDD::getInstance()>query("select , '' as m from system." . self::claseMinus());
public function listarTodos() { $inst_table = BDD::getInstance()->query("select * from system.". self::claseMinus()); $i = 0; while ($fila = $inst_table->_fetchRow()) { foreach ($fila as $campo => $valor) { $data[$i][$campo] = $valor; } $i++; } echo (json_encode($data)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSystems()\r\n{\r\n $query_string = \"SELECT systemid, systemname \";\r\n $query_string .= \"FROM voting_system\";\r\n\r\n return $query_string;\r\n}", "static function custom_get_sql() {\n # this is the default functionality\n $table = static::get_tablename();\n return \"select * from $table\";\n }", "public function getSystem()\r\n{\r\n $query_string = \"SELECT systemname, systemtypeid, systemsummary, systeminformation FROM voting_system \";\r\n $query_string .= \"WHERE systemid = :systemid\";\r\n\r\n return $query_string;\r\n}", "static function getLoadQry()\n {\n return \"SELECT `smartukm_band`.*, \n `td`.`td_demand`,\n `td`.`td_konferansier`\n \";\n }", "function afficherReclamations(){\n\t\t$sql=\"SElECT * From Reclamation\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "public function getSystemTypes()\r\n{\r\n $query_string = \"SELECT systemtypeid, systemtypename, systemtypedesc FROM system_type\";\r\n\r\n return $query_string;\r\n}", "function afficherU(){\n $sql=\"SElECT * From client\";\n $db = config::getConnexion();\n try{\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n } \n }", "function sqlGradeList()\n\t{\n\t\t//echo '<hr>Nama class ini :' . __METHOD__ . '()<hr>';\n\t\t$sql = \" SELECT * FROM tbl_grade \"\n\t\t. \"\";\n\n\t\treturn $sql;\n\t}", "public function getSystemId()\r\n{\r\n $query_string = \"SELECT systemid FROM voting_system \";\r\n $query_string .= \"WHERE systemname = :systemname\";\r\n\r\n return $query_string;\r\n\r\n}", "abstract function getSQL();", "function listQueryBaru() {\n\t\t\t$sql = \"select r.* from \".self::table('v_kelas3new').\" r join gate.ms_unit u on r.kodeunit = u.kodeunit\";\n\t\t\t\n\t\t\treturn $sql;\n\t\t}", "public function getSystemIds()\r\n{\r\n $query_string = \"SELECT systemid FROM voting_system \";\r\n $query_string .= \"WHERE systemname = :systemname AND systemid != :systemid\";\r\n\r\n return $query_string;\r\n\r\n}", "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}", "public function getSQL();", "function getUnits(){\n $sql = \"SELECT * FROM units\";\n return runQuery($sql);\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 getTable();", "public function selectcontractormaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM contractormaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "function listado() {\r\n return self::consulta('SELECT * FROM \".self::$nTabla.\"');\r\n }", "function cons_todo($table){\n $result=mysql_query(\"SELECT * FROM $table\");\n return $result;\n }", "static public function mdlCustomer($table){\n\n\t\t$stmt = Connect::connection()->prepare(\"SELECT * FROM $table\");\n\n\t\t$stmt -> execute();\n\n\t\treturn $stmt -> fetchAll();\n\n\t\t$stmt -> close();\n\n\t\t$stmt = null;\n\n\t}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public static function getTable() {}", "public function ambilkampus(){\r\n $sql = \"SELECT * FROM tbl_kampus\";\r\n $query = mysql_query($sql);\r\n return $query;\r\n }", "public function Mostrar()\n\t{\n\t\t$data_table = $this->data_source->ejecutarConsulta(\"SELECT * FROM noticias order by 1 desc\");\n\n\t\treturn $data_table;\n\t}", "function getSchools()\n{\n return $GLOBALS['conn']->query(\"SELECT * FROM `schools`\");\n}", "static public function ctrMostrarActividades(){\n\n $tabla = \"actividades\";\n\n $respuesta = ModeloActividades::mdlMostrarActividades($tabla);\n \n return $respuesta;\n\n\n}", "function yy_r113(){\n $this->_retvalue = new SQL\\Table($this->yystack[$this->yyidx + -4]->minor, $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor);\n }", "public function hack($tabel){\n\t\t$this->db->select('*');\n\t\t$this->db->from($tabel);\n\t\t$this->show($this->db->get()); // SELECT * FROM $tabel;\t\n\t}", "function datask() {\n\t\t\t\t$koneksi = $this->koneksi;\n\t\t\t\t// SQL\n\t\t\t\t$query\t\t\t= \"SELECT * FROM sk\";\n\t\t\t\t\n\t\t\t\t$sql\t\t\t= mysqli_query($koneksi,$query);\n\t\t\t\t\n\t\t\t\treturn $sql;\n\t\t\t}", "function prikazi_sve($nesto) {\n\n\tglobal $db;\n\n\t$komanda = \"SELECT * FROM $nesto\";\n\techo prikazi($komanda);\n\n}", "private static function getTable(){ // on crée la function getTable static protected\n\t\tif(static::$table===null){ // si $table === null alors \n\t\t\t$class_name = explode('\\\\', get_called_class()); //$class_name = explode (separe une chaine de caractère (exemple : USER\\Table\\mika) \\ USER= array(0) \\Table = array(1) \\mika = array(2)) get_called_class retourne le parent de la class qu'on appelle\n\t\t\tstatic::$table = strtolower(end($class_name)).\"s\";\n\t\t}\t// strtolower transforme tout en minuscule et rajoute un \"s\" à la fin\n\t\treturn static::$table; // retourne $table\n\t\t\n\t}", "function listQueryPajak() {\n $sql = \"select * from \" . static::table('ms_pajak');\n\n return $sql;\n }", "function afficherreservation(){\n\t\t$sql=\"SElECT * From reservation\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "abstract protected function _getSQL(): String;", "function all2($cod_programa) {\n \n $sql = \"SELECT * FROM inasistencia_grupo_motivos\";\n \n return DB::query($sql);\n }", "abstract public function getTable();", "abstract public function getTable();", "function afficherclientfideless(){\n\t\t$sql=\"SElECT * From clientfideles\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "public function select(){\n\t$sql=\"SELECT * FROM tipousuario\";\n\treturn ejecutarConsulta($sql);\n}", "abstract protected function getTable();", "public function get_sql()\n {\n }", "public function getSystemType()\r\n{\r\n $query_string = \"SELECT systemtypename, systemtypedesc FROM system_type \";\r\n $query_string .= \"WHERE systemtypeid = :systemtypeid\";\r\n\r\n return $query_string;\r\n}", "public function fetchAll(){\r\n$table=$this->getTable();\r\nreturn $this->fetch_array($this->query(\"SELECT * FROM {$table}\"));\r\n}", "public function get_content($table){\n return \"SELECT * FROM $table \";\n }", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "function db_table() {\n\t\t\t$vars = get_class_vars(__CLASS__);\n\t\t\treturn $vars[__FUNCTION__];\n\t\t}", "function afficherAvis(){\r\n\t\t$sql=\"SElECT * From avis\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry{\r\n\t\t$liste=$db->query($sql);\r\n\t\treturn $liste;\r\n\t\t}\r\n catch (Exception $e){\r\n die('Erreur: '.$e->getMessage());\r\n }\t\r\n\t}", "function display_table_cndtn($tab_name, $cndtn) {\n $mysqli = $this->mysqli;\n $sql = \"SELECT * FROM $tab_name where $cndtn\";\n if ($val = $mysqli->query($sql)) return $val;\n else {\n echo $mysqli->error;\n }\n }", "function afficherCategoriess(){\n $sql=\"SElECT * From categorie\";\n $db = config2::getConnexion(); //config\n try{\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\n }", "public static function getTable();", "function newskomentar_listdata($tbl_newskomentar){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_newskomentar\");\n\t\treturn $sql;\n}", "public static function getTable() : string {\n\t\t$namespacedClassParts = explode(\"\\\\\", get_called_class());\n\t\t$table = array_pop($namespacedClassParts);\n\t\t$table = preg_replace(\"/([a-z0-9])([A-Z0-9])/\", '$1_$2', $table);\n\t\t$table = strtolower($table);\n\t\treturn $table;\n\t}", "static public function mdlMostrarClases($tabla){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"SELECT * FROM $tabla\");\n\n\t\t$stmt -> execute();\n\n\t\treturn $stmt -> fetch();\n\n\t\t$stmt -> close();\n\t\t\n\t\t$stmt = null;\n\t\n\t}", "private function _fetch_table()\n {\n if ($this->table_name == null) {\n $this->table_name = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this)));\n }\n }", "private function _fetch_table()\n {\n if ($this->table_name == null) {\n $this->table_name = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this)));\n }\n }", "public function getTable() { return( $this->_table ); }", "protected function getBaseSelect()\n {\n return \"SELECT * FROM \" . $this->getTableName();\n }", "function listQueryTunjangan() {\n $sql = \"select * from \" . static::table('ms_tunjangan');\n\n return $sql;\n }", "function sql_table($name) {\n global $MYSQL_PREFIX;\n\n if ($MYSQL_PREFIX) {\n return $MYSQL_PREFIX . 'nucleus_' . $name;\n } else {\n return 'nucleus_' . $name;\n }\n}", "abstract public static function tableName() : string;", "public function getTable()\n {\n\n }", "function getQryFromOtherTable($column){\n\t$statement = \"\";\n\t$col = null;\n\t$relTable = null;\n\t$priKey = null;\n\t$criteria = null;\n\t\n\tswitch($_SESSION['table']){\n\t\tcase 'Drug':\n\t\t\t$col = 'drug_cpr_no';\n\t\t\t$priKey = 'cpr_no';\n\t\t\tbreak;\n\t\tcase 'Food':\n\t\t\t$col = 'food_cpr_no';\n\t\t\t$priKey = 'cpr_no';\n\t\t\tbreak;\n\t\tcase 'School':\n\t\t\t$col = 'school_id';\n\t\t\t$priKey = 'school_id';\n\t\t\tbreak;\t\t\n\t\tdefault:\n\t\t\t$col = null;\n\t\t\t$priKey = null;\t\t\t\n\t}\t\t\n\t\n\tswitch($column){\n\t\tcase 'manufacturer':\n\t\t\t$relTable = 'Manufactures';\n\t\t\t$criteria = \"{$col} in (select {$priKey} from {$_SESSION['table']}) and {$col} not in ('0'))\";\n\t\t\tbreak;\n\t\tcase 'importer':\n\t\t\t$relTable = 'Imports';\n\t\t\t$criteria = \"{$col} in (select {$priKey} from {$_SESSION['table']}) and {$col} not in ('0'))\";\n\t\t\tbreak;\n\t\tcase 'trader':\n\t\t\t$relTable = 'Trades';\n\t\t\t$criteria = \"{$col} in (select {$priKey} from {$_SESSION['table']}) and {$col} not in ('0'))\";\n\t\t\tbreak;\n\t\tcase 'distributor':\n\t\t\t$relTable = 'Distributes';\n\t\t\t$criteria = \"{$col} in (select {$priKey} from {$_SESSION['table']}) and {$col} not in ('0'))\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$relTable = null;\n\t}\n\t\n\treturn \",(select count({$col}) from {$relTable} where {$criteria} as {$column}\";\n\t\n}", "function sql($table=null)\n{\n return SQL::query($table);\n}", "public function getTable() {}", "function DanhSachNhomBenh()\n{\n\t$qr=\"\n\t\t\tSELECT *FROM nhombenh\n\t\";\n\treturn mysql_query($qr);\n}", "public function getTable() {}", "public function getTable() {}", "function display_table($tab_name) {\n $mysqli = $this->mysqli;\n $sql = \"SELECT * FROM $tab_name\";\n if ($val = $mysqli->query($sql)) return $val;\n else {\n echo $mysqli->error;\n }\n }", "public function __toString(){\n return $this->execute();\n }", "public static function tableName(): string;", "public function getSql();", "public function getSql();", "public function make(){\n $query=$this->select.\" \".$this->from;\n if(!empty($this->where)){\n\t$query=$query.\" \".$this->where;\n }\n if(!empty($this->order)){\n\t$query= $query.\" \".$this->order;\n }\n return $query;\n}", "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 }", "public function viewVotingInformation()\r\n{\r\n $query_string = \"SELECT systemname, systeminformation FROM voting_system\";\r\n $query_string .= \"WHERE systemid = :systemid\";\r\n\r\n return $query_string;\r\n}", "public function fetchSqlString();", "public function busca() {\r\n $this->SQL = \"SELECT rcja_usuarios.empleado, rcja_usuarios.nif, rcja_usuarios.nombre, \";\r\n $this->SQL .= \"\t\t rcja_usuarios.perfil_Usuario, rcja_usuarios.etiqueta_Emp, rcja_usuarios.observaciones_Emp, rcja_usuarios.centro_Directivo_Depart, \";\r\n $this->SQL .= \"\t\t rcja_usuarios.centro_Trabajo, rcja_usuarios.puesto_Trabajo, rcja_usuarios.servicio, rcja_usuarios.tipo_Usuario, rcja_usuarios.grupo_Nivel \";\r\n $this->SQL .= \" FROM rcja_usuarios\";\r\n //$this->debug($this->SQL);\r\n return $this->SQL;\r\n }", "public static function tableName()\r\n {\r\n return '{{dbm002.a0001}}';\r\n }", "public function testSelectStatementAddTable()\n {\n\n $query = new Query(\"SELECT id, description FROM `test` WHERE xy > 10\", 'mysql');\n $query->from(\"abc\", Query::APPEND);\n $this->assertEquals(\"SELECT id, description FROM `test` , `abc` WHERE xy > 10\", (string)$query);\n }", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "function sqlStudentAll()\n\t{\n\t\t//echo '<hr>Nama class ini :' . __METHOD__ . '()<hr>';\n\t\t$sql = \"SELECT student_name,student_roll_number,student_dob,student_grade_id,student_id\"\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 $sql;\n\t}", "function query(\\database $dbase){\n //\n //Get the sql string \n $sql=$this->to_str();\n //\n // Execute the $sql on columns to get the $result\n $dbase->query($sql);\n \n }", "function getTable($table, $exhibit)\n\t{\n\t\ttry\n\t\t{\n \n\t\t\t$dbcon=new PDO('mysql:host='.$GLOBALS['host'].';dbname='.$GLOBALS['dbase'], $GLOBALS['lin'], $GLOBALS['pwd']);\n\t\t\t$dbcon->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t\n\t\t\t$state=$dbcon->prepare(\"SELECT ename FROM $exhibit WHERE tname=? AND layer='l2';\");\n\t\t\t$state->execute(array($table));\n\t\t\t\n\t\t\t$row=$state->fetchAll();\n\t\t\t\n\t\t\treturn $row;\n\t\t}\n\t\tcatch(PDOException $e)\n\t\t{\n\t\t\techo $e->getMessage();\n\t\t}\n\t\t\n\t}", "function select_query( $tablepre = \"euconnect_\" ) {\n\t$select_sql = \" \" ;\n\t$sort_sql = \" ORDER BY fullname ASC\" ;\n\t$sql = \"SELECT euid , RTRIM( CONCAT( lastname,\\\", \\\", firstname) ) AS fullname , username FROM \" . $tablepre . \"members WHERE active = 1 \" ;\n\treturn $sql . $select_sql . $sort_sql ;\n}", "function getSQLCleanup() {\n\n\t\t$sql = \"DELETE FROM `security_action` WHERE `module` = \" . \"'\" . $this->getModule() . \"'\" . ';';\n\t\treturn $sql;\n\t\t\n\t}", "public function sql(): string;", "public static function tableName()\n {\n return '{{dbm002.a0001}}';\n }", "public function listForTable (){\r\n //generamo la query final que precisamos\r\n $queryResult= \"SELECT id,dni,nombre,apellido,mail FROM usuario.usuario ORDER BY id;\";\r\n\r\n //Ejecutamos la query\r\n $this->stmt=pg_query($this->link,$queryResult) or die(\"Error en la consulta,function listForTable :\".preg_last_error());\r\n\r\n return $this->stmt;\r\n }", "public function __toString(): string\n {\n return \"DELETE FROM \".$this->table.$this->getWhere();\n }" ]
[ "0.6670991", "0.6295678", "0.6164527", "0.6038812", "0.60133517", "0.59800386", "0.5964404", "0.5945468", "0.59161776", "0.59038407", "0.58919877", "0.5881374", "0.5858709", "0.58373255", "0.583117", "0.58240616", "0.5813842", "0.57855785", "0.5746188", "0.5742221", "0.5730024", "0.5720737", "0.5720737", "0.5720737", "0.5720737", "0.5720737", "0.5720737", "0.5720602", "0.57157767", "0.5713261", "0.5706239", "0.5698702", "0.56896794", "0.5681", "0.56808877", "0.5673798", "0.56666654", "0.5666046", "0.56655663", "0.5654943", "0.5651809", "0.56507885", "0.56507885", "0.56484896", "0.56467026", "0.56455165", "0.5635807", "0.5635111", "0.56207585", "0.5616313", "0.560837", "0.56074774", "0.5597493", "0.55914056", "0.5588974", "0.55849814", "0.5573176", "0.55670834", "0.55648077", "0.5564439", "0.5564439", "0.5560724", "0.5559467", "0.55587804", "0.5556058", "0.55530965", "0.5552837", "0.5549446", "0.5547638", "0.55467796", "0.5546694", "0.5546682", "0.55463314", "0.5541541", "0.5540796", "0.5529662", "0.5529386", "0.5529386", "0.5527853", "0.55226666", "0.5520467", "0.55171055", "0.5515023", "0.5512586", "0.5512475", "0.550961", "0.550961", "0.550961", "0.550961", "0.550961", "0.550961", "0.550961", "0.5497318", "0.54948694", "0.5479307", "0.5478399", "0.5478074", "0.54763746", "0.5472759", "0.5472727", "0.547028" ]
0.0
-1
Asserts that Default Billing Address and Default Shipping Address equal to data from fixture.
public function processAssert( CustomerAccountIndex $customerAccountIndex, CustomerAccountAddress $customerAccountAddress, Address $address ) { $customerAccountIndex->getAccountMenuBlock()->openMenuItem('Address Book'); $addressRenderer = $this->objectManager->create( \Magento\Customer\Test\Block\Address\Renderer::class, ['address' => $address, 'type' => 'html'] ); $addressToVerify = $addressRenderer->render(); \PHPUnit_Framework_Assert::assertTrue( $addressToVerify == $customerAccountAddress->getDefaultAddressBlock()->getDefaultBillingAddress() && $addressToVerify == $customerAccountAddress->getDefaultAddressBlock()->getDefaultShippingAddress(), 'Customer default address on address book tab is not matching the fixture.' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDebtorSaveAddressEmpty()\n {\n $aDados = [\n 'name' => 'Carlos Vinicius',\n 'email' => 'cvmm121@gmail.com',\n 'cpf_cnpj' => '1234567890',\n 'birthdate' => '12/01/1994',\n 'phone_number' => '(79) 9 9999-9999',\n 'zipcode' => '99999-999',\n 'address' => '',\n 'number' => '25',\n 'complement' => 'Conjunto Teste 2',\n 'neighborhood' => 'Bairro Teste 2',\n 'city' => 'Aracaju',\n 'state' => 'SE'\n ];\n\n $this->expectException(InvalidAttributeException::class);\n $oDebtor = Debtor::createFromRequest($aDados);\n }", "public function dataProviderForTestIsValid()\n {\n $addressArchive = new Request\\AddressArchive();\n $addressArchive->setAddress('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n\n $addressBalance = new Request\\AddressBalance();\n $addressBalance->setAddress('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n\n $addressBalanceInvalid = clone $addressBalance;\n $addressBalanceInvalid->setConfirmations(-1);\n\n $addressUnarchive = new Request\\AddressUnarchive();\n $addressUnarchive->setAddress('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n\n $autoConsolidateAddresses = new Request\\AutoConsolidateAddresses();\n $autoConsolidateAddresses->setDays(60);\n\n $listAddressesInvalid = new Request\\ListAddresses();\n $listAddressesInvalid->setConfirmations(400);\n\n $send = new Request\\Send();\n $send->setTo('13c7aMAEoS1QkwK49GctvEE7ZBkSfvaXCo');\n $send->setAmount(10000);\n\n return array(\n array(\n 'request' => $addressArchive,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\AddressArchive(),\n 'expected' => false,\n ),\n array(\n 'request' => $addressBalance,\n 'expected' => true,\n ),\n array(\n 'request' => $addressBalanceInvalid,\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\AddressBalance(),\n 'expected' => false,\n ),\n array(\n 'request' => $addressUnarchive,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\AddressUnarchive(),\n 'expected' => false,\n ),\n array(\n 'request' => $autoConsolidateAddresses,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\AutoConsolidateAddresses(),\n 'expected' => false,\n ),\n array(\n 'request' => $listAddressesInvalid,\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\ListAddresses(),\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\NewAddress(),\n 'expected' => true,\n ),\n array(\n 'request' => $send,\n 'expected' => true,\n ),\n array(\n 'request' => new Request\\Send(),\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\SendMany(),\n 'expected' => false,\n ),\n array(\n 'request' => new Request\\WalletBalance(),\n 'expected' => true,\n ),\n );\n }", "private function saveAddresses() {\n\t\t\t$billingSaved = false;\n\t\t\t$shippingSaved = false;\n\t\t\tif ($this->memberID && $this->billingAddress->validAddress() && $this->shippingAddress->validAddress()) {\n\t\t\t\t// compare billing and shipping addresses\n\t\t\t\t$billingIsShipping = true;\n\t\t\t\tforeach ($this->billingAddress->get('addressForm') as $key => $val) {\n\t\t\t\t\tif ($val != $this->shippingAddress->getArrayData('addressForm', $key)) {\n\t\t\t\t\t\t$billingIsShipping = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($billingIsShipping) {\n\t\t\t\t\t// if the billing address is the same as the shipping address\n\t\t\t\t\t// address record will retain the shipping address name\n\t\t\t\t\t// billing address does not have a name\n\t\t\t\t\t// (payment method name will be in the payment record)\n\t\t\t\t\t$this->shippingAddress->addType('billing');\n\t\t\t\t\tif ($this->shippingAddress->get('saveAddress') || systemSettings::get('FORCESAVESHIPPING')) {\n\t\t\t\t\t\tif (!$this->shippingAddress->get('addressID')) {\n\t\t\t\t\t\t\tif ($this->shippingAddress->saveAddress($this->memberID)) {\n\t\t\t\t\t\t\t\t$shippingSaved = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ($this->shippingAddress->updateAddress()) {\n\t\t\t\t\t\t\t\t$shippingSaved = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($this->shippingAddress->get('defaultAddress')) {\n\t\t\t\t\t\t\t$this->dbh->query(\"UPDATE `customers` SET `shippingID` = '\".$this->shippingAddress->get('addressID').\"' WHERE `memberID` = '\".$this->memberID.\"'\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$billingIsDefault = false;\n\t\t\t\t\t\tif ($this->billingAddress->get('defaultAddress')) {\n\t\t\t\t\t\t\t$billingIsDefault = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($this->billingAddress->loadAddress($this->shippingAddress->get('addressID'))) {\n\t\t\t\t\t\t\t$billingSaved = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ($this->billingAddress->get('saveAddress') || systemSettings::get('FORCESAVEBILLING')) {\n\t\t\t\t\t\tif (!$this->billingAddress->get('addressID')) {\n\t\t\t\t\t\t\tif ($this->billingAddress->saveAddress($this->memberID)) {\n\t\t\t\t\t\t\t\t$billingSaved = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ($this->billingAddress->updateAddress()) {\n\t\t\t\t\t\t\t\t$billingSaved = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($this->billingAddress->get('defaultAddress')) {\n\t\t\t\t\t\t\t$this->dbh->query(\"UPDATE `customers` SET `billingID` = '\".$this->billingAddress->get('addressID').\"' WHERE `memberID` = '\".$this->memberID.\"'\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$billingSaved = true;\n\t\t\t\t\t}\n\t\t\t\t\tif ($this->shippingAddress->get('saveAddress') || systemSettings::get('FORCESAVESHIPPING')) {\n\t\t\t\t\t\tif (!$this->shippingAddress->get('addressID')) {\n\t\t\t\t\t\t\tif ($this->shippingAddress->saveAddress($this->memberID)) {\n\t\t\t\t\t\t\t\t$shippingSaved = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ($this->shippingAddress->updateAddress()) {\n\t\t\t\t\t\t\t\t$shippingSaved = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($this->shippingAddress->get('defaultAddress')) {\n\t\t\t\t\t\t\t$this->dbh->query(\"UPDATE `customers` SET `shippingID` = '\".$this->shippingAddress->get('addressID').\"' WHERE `memberID` = '\".$this->memberID.\"'\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$shippingSaved = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn ($billingSaved && $shippingSaved);\n\t\t}", "public function testAddress()\n {\n $this->assertTrue(RuValidation::address1('Московский пр., д. 100'));\n $this->assertTrue(RuValidation::address1('Moskovskiy ave., bld. 100'));\n\n $this->assertFalse(RuValidation::address1('I would not tell'));\n }", "public function testAddressSeeder()\n {\n $this->assertEquals(0, Address::all()->count());\n $this->seedAddresses();\n $this->assertEquals(15, Address::all()->count());\n }", "public function isBillingEqualShipping()\n {\n $user = Shopware()->Modules()->Admin()->sGetUserData();\n\n $billingAddress = $user[\"billingaddress\"][\"street\"].' '.$user[\"billingaddress\"][\"city\"].\n ' '.$user[\"billingaddress\"][\"zipcode\"].' '.$user[\"billingaddress\"][\"countryID\"];\n\n $shippingAddress = $user[\"shippingaddress\"][\"street\"].' '.$user[\"shippingaddress\"][\"city\"].\n ' '.$user[\"shippingaddress\"][\"zipcode\"].' '.$user[\"shippingaddress\"][\"countryID\"];\n\n if ($billingAddress == $shippingAddress) {\n return true;\n }\n return false;\n }", "public function testCheckAddress() {\n\t$this->assertTrue(Bitcoin::checkAddress(\"1pA14Ga5dtzA1fbeFRS74Ri32dQjkdKe5\"));\n\t$this->assertTrue(Bitcoin::checkAddress(\"1MU97wyf7msCVdaapneW2dW1uXP7oEQsFA\"));\n\t$this->assertTrue(Bitcoin::checkAddress(\"1F417eczAAbh41V4oLGNf3DqXLY72hsM73\"));\n\t$this->assertTrue(Bitcoin::checkAddress(\"1ASgNrpNNejRJVfqK2jHmfJ3ZQnMSUJkwJ\"));\n\t$this->assertFalse(Bitcoin::checkAddress(\"1ASgNrpNNejRJVfqK2jHmfJ3ZQnMSUJ\"));\n\t$this->assertFalse(Bitcoin::checkAddress(\"1111111fnord\"));\n\t}", "protected function setUp()\n {\n $mockData = $this->mockConfigData = [\n Information::XML_PATH_STORE_INFO_NAME => 'Country Furnishings',\n Information::XML_PATH_STORE_INFO_PHONE => '000-000-0000',\n Information::XML_PATH_STORE_INFO_HOURS => '9 AM to 5 PM',\n Information::XML_PATH_STORE_INFO_STREET_LINE1 => '1234 Example Ct',\n Information::XML_PATH_STORE_INFO_STREET_LINE2 => 'Suite A',\n Information::XML_PATH_STORE_INFO_CITY => 'Aldburg',\n Information::XML_PATH_STORE_INFO_POSTCODE => '65804',\n Information::XML_PATH_STORE_INFO_REGION_CODE => 1989,\n Information::XML_PATH_STORE_INFO_COUNTRY_CODE => 'ED',\n Information::XML_PATH_STORE_INFO_VAT_NUMBER => '123456789',\n ];\n\n $this->store = $this->createMock(\\Magento\\Store\\Model\\Store::class);\n\n $this->store->expects($this->any())\n ->method('getConfig')\n ->willReturnCallback(function ($path) use ($mockData) {\n return isset($mockData[$path]) ? $mockData[$path] : null;\n });\n\n $this->renderer = $this->getMockBuilder(\\Magento\\Store\\Model\\Address\\Renderer::class)\n ->disableOriginalConstructor()\n ->setMethods(['format'])\n ->getMock();\n\n $this->renderer->expects($this->once())\n ->method('format')\n ->willReturnCallback(function ($storeInfo) {\n return implode(\"\\n\", $storeInfo->getData());\n });\n\n $region = $this->createPartialMock(\\Magento\\Framework\\DataObject::class, ['load', 'getName']);\n $region->expects($this->once())->method('load')->willReturnSelf();\n $region->expects($this->once())->method('getName')->willReturn('Rohan');\n\n $this->regionFactory = $this->createMock(\\Magento\\Directory\\Model\\RegionFactory::class);\n $this->regionFactory->expects($this->once())->method('create')->willReturn($region);\n\n $country = $this->createPartialMock(\\Magento\\Framework\\DataObject::class, ['loadByCode', 'getName']);\n $country->expects($this->once())->method('loadByCode')->with('ED')->willReturnSelf();\n $country->expects($this->once())->method('getName')->willReturn('Edoras');\n\n $this->countryFactory = $this->createMock(\\Magento\\Directory\\Model\\CountryFactory::class);\n $this->countryFactory->expects($this->once())->method('create')->willReturn($country);\n\n $this->model = new Information(\n $this->renderer,\n $this->regionFactory,\n $this->countryFactory\n );\n }", "protected function _getDefaultAddress()\n {\n $result = array(\n 'shipping' => array(\n 'country_id' => null,\n 'city' => null,\n 'region_id' => null,\n 'postcode' => null,\n 'customer_address_id' => false\n ),\n 'billing' => array(\n 'country_id' => null,\n 'city' => null,\n 'region_id' => null,\n 'postcode' => null,\n 'customer_address_id' => false,\n 'use_for_shipping' => Mage::getStoreConfig('firecheckout/general/shipping_address_checkbox_state'),\n 'register_account' => 0\n )\n );\n if (($customer = Mage::getSingleton('customer/session')->getCustomer())\n && ($addresses = $customer->getAddresses())) {\n\n if (!$shippingAddress = $customer->getPrimaryShippingAddress()) {\n foreach ($addresses as $address) {\n $shippingAddress = $address;\n break;\n }\n }\n if (!$billingAddress = $customer->getPrimaryBillingAddress()) {\n foreach ($addresses as $address) {\n $billingAddress = $address;\n break;\n }\n }\n $result['shipping'] = $shippingAddress->getData();\n $result['shipping']['country_id'] = $shippingAddress->getCountryId();\n $result['shipping']['customer_address_id'] = $shippingAddress->getId();\n $result['billing'] = $billingAddress->getData();\n $result['billing']['country_id'] = $billingAddress->getCountryId();\n $result['billing']['customer_address_id'] = $billingAddress->getId();\n $result['billing']['use_for_shipping'] = $shippingAddress->getId() === $billingAddress->getId();\n } else if ($this->getQuote()->getShippingAddress()->getCountryId()) {\n // Estimated shipping cost from shopping cart\n $address = $this->getQuote()->getShippingAddress();\n $result['shipping'] = $address->getData();\n if (!$address->getSameAsBilling()) {\n $address = $this->getQuote()->getBillingAddress();\n $result['billing'] = $address->getData();\n $result['billing']['use_for_shipping'] = false;\n } else {\n $result['billing'] = $result['shipping'];\n $result['billing']['use_for_shipping'] = true;\n }\n } else {\n $detectCountry = Mage::getStoreConfig('firecheckout/geo_ip/country');\n $detectCity = Mage::getStoreConfig('firecheckout/geo_ip/city');\n if ($detectCountry || $detectCity) {\n $remoteAddr = Mage::helper('core/http')->getRemoteAddr();\n try {\n $data = Mage::helper('firecheckout/geoip')->detect($remoteAddr);\n foreach ($data as $key => $value) {\n $result['shipping'][$key] =\n $result['billing'][$key] = $value;\n }\n } catch (Exception $e) {\n $this->_checkoutSession->addError($e->getMessage());\n }\n }\n\n if (empty($result['shipping']['country_id'])\n || !Mage::getResourceModel('directory/country_collection')\n ->addCountryCodeFilter($result['shipping']['country_id'])\n ->loadByStore()\n ->count()) {\n\n $result['shipping']['country_id'] =\n $result['billing']['country_id'] = Mage::helper('core')->getDefaultCountry();\n }\n }\n\n return $result;\n }", "public function testShouldShowAllAddress()\n {\n $request = $this->call('GET', '/api/address');\n\n $request->assertStatus(200);\n }", "public function testBillingSources()\n {\n }", "private function getTestAddresses()\n {\n return [\n [\n 'source' => [\n 'address1' => '877 S Figueroa St',\n 'city' => 'Los Angeles',\n 'country' => 'US',\n 'state_province' => 'CA',\n 'postal_code' => '90017',\n ],\n 'expected' => [\n 'text' => (\n '877 S Figueroa St' . \"\\n\" .\n 'Los Angeles, %administrative% 90017' . \"\\n\" .\n '%country%'\n ),\n 'html' => (\n '<span class=\"address-line1\">877 S Figueroa St</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"locality\">Los Angeles</span>, ' .\n '<span class=\"administrative-area\">%administrative%</span> ' .\n '<span class=\"postal-code\">90017</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"country\">%country%</span>'\n ),\n ],\n ],\n [\n 'source' => [\n 'address1' => '30 Rockefeller Plaza',\n 'address2' => 'NBC Studio 6A',\n 'city' => 'New York',\n 'country' => 'US',\n 'state_province' => 'NY',\n 'postal_code' => '10111',\n ],\n 'expected' => [\n 'text' => (\n '30 Rockefeller Plaza' . \"\\n\" .\n 'NBC Studio 6A' . \"\\n\" .\n 'New York, %administrative% 10111' . \"\\n\" .\n '%country%'\n ),\n 'html' => (\n '<span class=\"address-line1\">30 Rockefeller Plaza</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"address-line2\">NBC Studio 6A</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"locality\">New York</span>, ' .\n '<span class=\"administrative-area\">%administrative%</span> ' .\n '<span class=\"postal-code\">10111</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"country\">%country%</span>'\n ),\n ],\n ],\n [\n 'source' => [\n 'address1' => '1321 Commerce St',\n 'address2' => '#APT 123',\n 'address3' => 'Mr. Smith',\n 'city' => 'Dallas',\n 'country' => 'US',\n 'state_province' => 'TX',\n 'postal_code' => '75202',\n ],\n 'expected' => [\n 'text' => (\n '1321 Commerce St' . \"\\n\" .\n '#APT 123, Mr. Smith' . \"\\n\" .\n 'Dallas, %administrative% 75202' . \"\\n\" .\n '%country%'\n ),\n 'html' => (\n '<span class=\"address-line1\">1321 Commerce St</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"address-line2\">#APT 123, Mr. Smith</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"locality\">Dallas</span>, ' .\n '<span class=\"administrative-area\">%administrative%</span> ' .\n '<span class=\"postal-code\">75202</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"country\">%country%</span>'\n ),\n ],\n ],\n [\n 'source' => [\n 'address1' => 'Veneentekijäntie 4 A',\n 'city' => 'Helsinki',\n 'country' => 'FI',\n 'postal_code' => '00210',\n ],\n 'expected' => [\n 'text' => (\n 'Veneentekijäntie 4 A' . \"\\n\" .\n '00210 Helsinki' . \"\\n\" .\n '%country%'\n ),\n 'html' => (\n '<span class=\"address-line1\">Veneentekijäntie 4 A</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"postal-code\">00210</span> ' .\n '<span class=\"locality\">Helsinki</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"country\">%country%</span>'\n ),\n ],\n ],\n [\n 'source' => [\n 'address1' => 'Kungsgatan 44',\n 'city' => 'Stockholm',\n 'country' => 'SE',\n 'postal_code' => '111 35',\n ],\n 'expected' => [\n 'text' => (\n 'Kungsgatan 44' . \"\\n\" .\n '111 35 Stockholm' . \"\\n\" .\n '%country%'\n ),\n 'html' => (\n '<span class=\"address-line1\">Kungsgatan 44</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"postal-code\">111 35</span> ' .\n '<span class=\"locality\">Stockholm</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"country\">%country%</span>'\n ),\n ],\n ],\n [\n 'source' => [\n 'address1' => 'Plaza de España, 1',\n 'city' => 'Mostoles',\n 'country' => 'ES',\n 'state_province' => 'Madrid',\n 'postal_code' => '28934',\n ],\n 'expected' => [\n 'text' => (\n 'Plaza de España, 1' . \"\\n\" .\n '28934 Mostoles %administrative%' . \"\\n\" .\n '%country%'\n ),\n 'html' => (\n '<span class=\"address-line1\">Plaza de España, 1</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"postal-code\">28934</span> ' .\n '<span class=\"locality\">Mostoles</span> ' .\n '<span class=\"administrative-area\">%administrative%</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"country\">%country%</span>'\n ),\n ],\n ],\n [\n 'source' => [\n 'address1' => 'Леонтьевская ул., 28',\n 'city' => 'Пушкин',\n 'country' => 'RU',\n 'state_province' => 'Санкт-Петербург',\n 'postal_code' => '196601',\n ],\n 'expected' => [\n 'text' => (\n 'Леонтьевская ул., 28' . \"\\n\" .\n 'Пушкин' . \"\\n\" .\n '%administrative%' . \"\\n\" .\n '196601' . \"\\n\" .\n '%country%'\n ),\n 'html' => (\n '<span class=\"address-line1\">Леонтьевская ул., 28</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"locality\">Пушкин</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"administrative-area\">%administrative%</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"postal-code\">196601</span>' .\n '<br>' . \"\\n\" .\n '<span class=\"country\">%country%</span>'\n ),\n ],\n ],\n ];\n }", "public function testGetAddress()\n {\n\n }", "public function dataProviderForTestIfResponseDataCanBeSet()\n {\n $address = new Address();\n $address->setBalance(100000);\n $address->setAddress('sdfwfjdsfg4wr23fecdsb');\n $address->setLabel('test address');\n $address->setTotalReceived(1000000);\n\n $addresses = array(\n $address->getAddress() => $address\n );\n\n return array(\n array(\n 'addresses' => $addresses,\n 'expectedAddresses' => $addresses,\n ),\n );\n }", "public function testBasic() {\n\t\t$driver = $this->db->driver();\n\t\t$this->skipIf(!($driver instanceof Mysql), 'The virtualFields test is only compatible with Mysql.');\n\n\t\t$data = [\n\t\t\t'street' => 'Krebenweg 22',\n\t\t\t'zip' => '74523',\n\t\t\t'city' => 'Bibersfeld'\n\t\t];\n\t\t$entity = $this->_getEntity($data);\n\t\t$res = $this->Addresses->save($entity);\n\n\t\t$this->assertTrue(!empty($res['lat']) && !empty($res['lng']) && round($res['lat']) === 49.0 && round($res['lng']) === 10.0);\n\n\t\t// inconclusive\n\t\t$data = [\n\t\t\t//'street' => 'Leopoldstraße',\n\t\t\t'city' => 'München'\n\t\t];\n\t\t$entity = $this->_getEntity($data);\n\t\t$res = $this->Addresses->save($entity);\n\t\t$this->assertEquals('', $this->Addresses->behaviors()->Geocoder->Geocode->error());\n\n\t\t$this->assertTrue(!empty($res['lat']) && !empty($res['lng']));\n\t\t$this->assertEquals('München, Deutschland', $res['geocoder_result']['formatted_address']);\n\n\t\t$data = [\n\t\t\t'city' => 'Bibersfeld'\n\t\t];\n\t\t$entity = $this->_getEntity($data);\n\t\t$res = $this->Addresses->save($entity);\n\n\t\t$this->assertTrue(!empty($res));\n\t\t$this->assertEquals('', $this->Addresses->behaviors()->Geocoder->Geocode->error());\n\t}", "public function test_address_country_validation()\n {\n /*\n * Valid\n */\n $validCountryLocation = Location::factory()->make([\n 'addressCountry' => 'United Kingdom',\n ]);\n $validCountryData = $validCountryLocation->toArray();\n $this->post($this->route(), $validCountryData)->assertStatus(201);\n\n /*\n * Invalid: missing\n */\n $missingCountryLocation = Location::factory()->make();\n $missingCountryData = $missingCountryLocation->toArray();\n unset($missingCountryData['addressCountry']);\n\n $response = $this->post($this->route(), $missingCountryData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.addressCountry', 'The address country field is required.');\n\n /**\n * Invalid: not a string\n */\n $nonStringLocation = Location::factory()->make([\n 'addressCountry' => ['invalid'],\n ]);\n $nonStringData = $nonStringLocation->toArray();\n\n $response = $this->post($this->route(), $nonStringData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.addressCountry', 'The address country must be a string.');\n }", "public function test_user_can_create_an_address()\n {\n $this->actingAs(factory(User::class)->create())->post('/address', [\n 'street' => \"new\",\n 'city' => \"rneogr\",\n 'pincode' => 1233221,\n 'state' => 'penns',\n 'phone_number' => 8909456721\n ])->assertSuccessful();\n\n }", "public function test_street_address_validation()\n {\n /*\n * Valid\n */\n $validStreetLocation = Location::factory()->make([\n 'streetAddress' => '123 Valid Address',\n ]);\n $validStreetData = $validStreetLocation->toArray();\n $response = $this->post($this->route(), $validStreetData);\n $response->assertStatus(201);\n\n /*\n * Invalid: missing\n */\n $missingStreetLocation = Location::factory()->make();\n $missingStreetData = $missingStreetLocation->toArray();\n unset($missingStreetData['streetAddress']);\n\n $response = $this->post($this->route(), $missingStreetData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.streetAddress', 'The street address field is required.');\n\n /**\n * Invalid: not a string\n */\n $nonStringLocation = Location::factory()->make([\n 'streetAddress' => ['invalid'],\n ]);\n $nonStringData = $nonStringLocation->toArray();\n\n $response = $this->post($this->route(), $nonStringData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.streetAddress', 'The street address must be a string.');\n }", "public function testRandomEthereumAddress()\n {\n $initial_value = random_ethereum_address();\n $this->assertInternalType('string', $initial_value);\n \n CryptoStat::setCurrency('ETH');\n $is_valid = CryptoStat::validateAddress($initial_value); \n \n $this->assertTrue($is_valid);\n }", "protected function checkCopyAddress(ParameterBag $parameters)\n {\n if (1 === (int)$parameters->get('copyAddress')) {\n $billingAddress = $parameters->get('billingAddress');\n\n $parameters->set('shippingAddress', [\n 'shippingAddress.firstName' => $billingAddress['billingAddress.firstName'],\n 'shippingAddress.lastName' => $billingAddress['billingAddress.lastName'],\n 'shippingAddress.street' => $billingAddress['billingAddress.street'],\n 'shippingAddress.streetNo' => $billingAddress['billingAddress.streetNo'],\n 'shippingAddress.flatNo' => $billingAddress['billingAddress.flatNo'],\n 'shippingAddress.city' => $billingAddress['billingAddress.city'],\n 'shippingAddress.postCode' => $billingAddress['billingAddress.postCode'],\n 'shippingAddress.country' => $billingAddress['billingAddress.country']\n ]);\n }\n }", "public function testBillingInvoices()\n {\n }", "public function setSameAsBillingShippingAddress()\n {\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->hover();\n $this->browser->find($this->accountInformationBlock)->hover();\n $this->_rootElement->find($this->sameAsBilling, Locator::SELECTOR_CSS, 'checkbox')->setValue('Yes');\n }", "function testGetBusinessAddress()\n {\n //Arrange\n $business_name=\"IBM\";\n $business_phone= \"5033133131\";\n $business_contact = \"john\";\n $business_website = \"walkins.com\";\n $business_address =\"123 fake st.\";\n $business_contact_email = \"me@fake.email\";\n $id= 5;\n $test_business = new Business ($business_name, $business_phone, $business_contact, $business_website, $business_address, $business_contact_email, $id = null);\n\n //Act\n $result = $test_business->getBusinessAddress();\n\n //Assert\n $this->assertEquals (\"123 fake st.\", $result);\n }", "public function testEditAddress()\n {\n\n }", "public function testDebtorSaveZipcodeEmpty()\n {\n $aDados = [\n 'name' => 'Carlos Vinicius',\n 'email' => 'cvmm121@gmail.com',\n 'cpf_cnpj' => '1234567890',\n 'birthdate' => '12/01/1994',\n 'phone_number' => '(79) 9 9999-9999',\n 'zipcode' => '',\n 'address' => 'Rua Teste',\n 'number' => '25',\n 'complement' => 'Conjunto Teste 2',\n 'neighborhood' => 'Bairro Teste 2',\n 'city' => 'Aracaju',\n 'state' => 'SE'\n ];\n\n $this->expectException(InvalidAttributeException::class);\n $oDebtor = Debtor::createFromRequest($aDados);\n }", "public function test_4_1()\n {\n global $Address;\n\n // setup\n $out = SetupTestData::hasmany_save_4();\n\n $address = $Address->create([\n 'line1' => 'line1_1',\n 'zipcode' => '11111',\n 'state' => 'MN'\n ]);\n\n $out['person']->add_to_addresses($address);\n\n $out['person']->save();\n\n\n // tests\n $this->assert($out['result'] !== NULL, 'Save successful');\n\n $this->assert($address->id !== NULL, 'New object id is set');\n\n $this->assert($out['person']->size_addresses() === 1, 'Has many has 1 objects');\n\n foreach ($out['person']->get_addresses() as $i => $address)\n {\n $this->assert($address->zipcode === str_repeat(($i+1).'', 5), 'Address zipcode correct');\n }\n }", "private function _generateShippingAddressData(){\n \n $address = new PagSeguroAddress();\n $delivery_address = new Address($this->context->cart->id_address_delivery);\n \n if (!is_null($delivery_address)){\n $address->setCity($delivery_address->city);\n $address->setPostalCode($delivery_address->postcode);\n $address->setStreet($delivery_address->address1);\n $address->setDistrict($delivery_address->address2);\n $address->setComplement($delivery_address->other);\n $address->setCity($delivery_address->city);\n \n $country = new Country($delivery_address->id_country);\n $address->setCountry($country->iso_code);\n \n $state = new State($delivery_address->id_state);\n $address->setState($state->iso_code);\n }\n \n return $address;\n }", "public function testFindAddresses()\n {\n\n }", "public function testPostal()\n {\n $this->assertFalse(BrValidation::postal('111'));\n $this->assertFalse(BrValidation::postal('1111'));\n $this->assertFalse(BrValidation::postal('1234-123'));\n $this->assertFalse(BrValidation::postal('12345-12'));\n\n $this->assertTrue(BrValidation::postal('88000-123'));\n $this->assertTrue(BrValidation::postal('01234-123'));\n $this->assertTrue(BrValidation::postal('01234123'));\n }", "public function testDataCanBeSet()\n {\n $cut = new Recipient();\n\n $cut->setAddress('sdfwfjdsfg4wr23fecdsb');\n $cut->setAmount('100000');\n\n $this->assertEquals(100000, $cut->getAmount());\n $this->assertEquals('sdfwfjdsfg4wr23fecdsb', $cut->getAddress());\n }", "#[@test]\n public function withAddresses() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation :addresses [\"me@example.com\", \"you@example.com\"] \"Out of office\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertEquals(array('me@example.com', 'you@example.com'), $action->addresses);\n }", "public function test_2_1()\n {\n global $Address;\n\n // setup\n $out = SetupTestData::hasmany_save_2();\n\n $address = $Address->create([\n 'line1' => 'line1_4',\n 'zipcode' => '44444',\n 'state' => 'MN'\n ]);\n\n $out['person']->add_to_addresses($address);\n\n $out['person']->save();\n\n\n // tests\n $this->assert($address->id !== NULL, 'New object id is set');\n\n $this->assert($out['person']->size_addresses() === 4, 'Has many has 4 objects');\n\n foreach ($out['person']->get_addresses() as $i => $address)\n {\n $this->assert($address->zipcode === str_repeat(($i+1).'', 5), 'Address zipcode correct');\n }\n }", "public function test_1_1()\n {\n global $Address;\n\n $out = SetupTestData::hasmany_save_1();\n\n $address = $Address->create([\n 'line1' => 'line1_4',\n 'zipcode' => '44444',\n 'state' => 'MN'\n ]);\n\n $out['person']->add_to_addresses($address);\n\n $out['person']->save();\n\n\n // tests\n $this->assert($address->id !== NULL, 'New object id is set');\n\n $this->assert($out['person']->size_addresses() === 4, 'Has many has 4 objects');\n\n foreach ($out['person']->get_addresses() as $i => $address)\n {\n $this->assert($address->zipcode === str_repeat(($i+1).'', 5), 'Address zipcode correct');\n }\n }", "public function setAttributeByDefault() {\n $userinfo = UserProfile::model()->findByPk(Yii::app()->user->id);\n // in this case when user has set bit that\n // user want to use orignial address to 1\n \n /**\n * in this case when user has its own \n * billing address then it will be same address as shipping\n */\n if(!empty($_REQUEST['billing'])){\n $billing = UserOrderBilling::model()->findByPk($_REQUEST['billing']);\n \n $this->shipping_first_name = $billing->billing_first_name;\n $this->shipping_last_name = $billing->billing_last_name;\n $this->shipping_address1 = $billing->billing_address1;\n $this->shipping_address2 = $billing->billing_address2;\n $this->shipping_country = $billing->billing_country;\n $this->shipping_state = $billing->billing_state;\n $this->shipping_city = $billing->billing_city;\n $this->shipping_zip = $billing->billing_zip;\n $this->shipping_phone = $billing->billing_phone;\n $this->shipping_mobile = $billing->billing_mobile;\n }\n else if (isset($userinfo->is_shipping_address) && $userinfo->is_shipping_address == 1) {\n $this->shipping_first_name = $userinfo->first_name;\n $this->shipping_last_name = $userinfo->last_name;\n $this->shipping_address1 = $userinfo->address;\n $this->shipping_country = $userinfo->country;\n $this->shipping_state = $userinfo->state_province;\n $this->shipping_city = $userinfo->city;\n $this->shipping_zip = $userinfo->zip_code;\n $this->shipping_phone = $userinfo->contact_number;\n \n } else {\n $criteria = new CDbCriteria();\n $criteria->addCondition(\"user_id = \" . Yii::app()->user->id);\n $criteria->order = \"id DESC\";\n\n $user_order_shipping = UserOrderShipping::model()->find($criteria);\n\n if (!empty($user_order_shipping)) {\n $this->shipping_first_name = $user_order_shipping->shipping_first_name;\n $this->shipping_last_name = $user_order_shipping->shipping_last_name;\n $this->shipping_address1 = $user_order_shipping->shipping_address1;\n $this->shipping_address2 = $user_order_shipping->shipping_address2;\n $this->shipping_country = $user_order_shipping->shipping_country;\n $this->shipping_state = $user_order_shipping->shipping_state;\n $this->shipping_city = $user_order_shipping->shipping_city;\n $this->shipping_zip = $user_order_shipping->shipping_zip;\n $this->shipping_phone = $user_order_shipping->shipping_phone;\n $this->shipping_mobile = $user_order_shipping->shipping_mobile;\n }\n }\n $this->_states = $this->getStates();\n }", "public function getBillingAddress();", "public function getBillingAddress();", "public function testAddAddress()\n {\n\n }", "public function testValueIsAngleAddrWithValidAddress()\n {\n\n $header = $this->_getHeader('Return-Path');\n $header->setAddress('chris@swiftmailer.org');\n $this->assertEquals('<chris@swiftmailer.org>', $header->getFieldBody());\n }", "public function testReturnTrueOnValidDogecoinAddress()\n {\n $result = Wallet::validate(self::VALID_DOGECOIN_ADDRESS, Wallet::DOGECOIN);\n\n $this->assertTrue($result);\n }", "public function getBillingAddress() : Address;", "public function set_sess_cart_shipping_address()\n {\n $std = new stdClass();\n $std->shipping_first_name = $this->input->post('shipping_first_name', true);\n $std->shipping_last_name = $this->input->post('shipping_last_name', true);\n $std->shipping_email = $this->input->post('shipping_email', true);\n $std->shipping_phone_number = $this->input->post('shipping_phone_number', true);\n $std->shipping_address_1 = $this->input->post('shipping_address_1', true);\n $std->shipping_address_2 = $this->input->post('shipping_address_2', true);\n $std->shipping_country_id = $this->input->post('shipping_country_id', true);\n $std->shipping_state = $this->input->post('shipping_state', true);\n $std->shipping_city = $this->input->post('shipping_city', true);\n $std->shipping_zip_code = $this->input->post('shipping_zip_code', true);\n $std->billing_first_name = $this->input->post('billing_first_name', true);\n $std->billing_last_name = $this->input->post('billing_last_name', true);\n $std->billing_email = $this->input->post('billing_email', true);\n $std->billing_phone_number = $this->input->post('billing_phone_number', true);\n $std->billing_address_1 = $this->input->post('billing_address_1', true);\n $std->billing_address_2 = $this->input->post('billing_address_2', true);\n $std->billing_country_id = $this->input->post('billing_country_id', true);\n $std->billing_state = $this->input->post('billing_state', true);\n $std->billing_city = $this->input->post('billing_city', true);\n $std->billing_zip_code = $this->input->post('billing_zip_code', true);\n $std->use_same_address_for_billing = $this->input->post('use_same_address_for_billing', true);\n if (!isset($std->use_same_address_for_billing)) {\n $std->use_same_address_for_billing = 0;\n }\n\n if ($std->use_same_address_for_billing == 1) {\n $std->billing_first_name = $std->shipping_first_name;\n $std->billing_last_name = $std->shipping_last_name;\n $std->billing_email = $std->shipping_email;\n $std->billing_phone_number = $std->shipping_phone_number;\n $std->billing_address_1 = $std->shipping_address_1;\n $std->billing_address_2 = $std->shipping_address_2;\n $std->billing_country_id = $std->shipping_country_id;\n $std->billing_state = $std->shipping_state;\n $std->billing_city = $std->shipping_city;\n $std->billing_zip_code = $std->shipping_zip_code;\n } else {\n if (empty($std->billing_first_name)) {\n $std->billing_first_name = $std->shipping_first_name;\n }\n if (empty($std->billing_last_name)) {\n $std->billing_last_name = $std->shipping_last_name;\n }\n if (empty($std->billing_email)) {\n $std->billing_email = $std->shipping_email;\n }\n if (empty($std->billing_phone_number)) {\n $std->billing_phone_number = $std->shipping_phone_number;\n }\n if (empty($std->billing_address_1)) {\n $std->billing_address_1 = $std->shipping_address_1;\n }\n if (empty($std->billing_address_2)) {\n $std->billing_address_2 = $std->shipping_address_2;\n }\n if (empty($std->billing_country_id)) {\n $std->billing_country_id = $std->shipping_country_id;\n }\n if (empty($std->billing_state)) {\n $std->billing_state = $std->shipping_state;\n }\n if (empty($std->billing_city)) {\n $std->billing_city = $std->shipping_state;\n }\n if (empty($std->billing_zip_code)) {\n $std->billing_zip_code = $std->shipping_zip_code;\n }\n }\n $this->session->set_userdata('mds_cart_shipping_address', $std);\n }", "public function testThrowExceptionOnInvalidDogecoinAddress()\n {\n $this->expectException(Exceptions\\InvalidAddressFormatException::class);\n Wallet::validate(self::INVALID_ADDRESS, Wallet::DOGECOIN);\n }", "public function testCompanyPrefix0()\n{\n\n $actual = $this->company->companyPrefix();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testPostal()\n {\n $this->assertTrue(RuValidation::postal('101135'));\n $this->assertTrue(RuValidation::postal('693000'));\n\n $this->assertFalse(RuValidation::postal('100123'));\n $this->assertFalse(RuValidation::postal('200321'));\n }", "public function testIfResponseDataCanBeSet($addresses, $expectedAddresses)\n {\n $cut = new ListAddresses();\n\n $cut->setAddresses($addresses);\n\n $this->assertEquals($expectedAddresses, $cut->getAddresses());\n }", "public function testBuildCreditCardSaleWithAddress()\n {\n $config = new SinglePayConfig();\n $config->setServiceConfig(self::$testConfig);\n\n $card = new Card();\n $card->setName('TEST')\n ->setNumber('8696969')\n ->setExpiryMonth('09')\n ->setExpiryYear('18')\n ->setCvv('200');\n\n $billingAddress = new Address();\n $billingAddress->setAddress1('Test Street')\n ->setCity('Test City')\n ->setState('Test County')\n ->setZipcode('545454');\n\n $shippingAddress = new Address();\n $shippingAddress->setAddress1('Test Street')\n ->setCity('Test City')\n ->setState('Test County')\n ->setZipcode('545454');\n\n $data = new SinglePayData();\n $data->setOrderAmount('10.00')\n ->setCard($card)\n ->setBillingAddress($billingAddress)\n ->setShippingAddress($shippingAddress);\n\n $creditCardSale = ExpressFactory::buildCreditCardSale($config, $data);\n $this->assertInstanceOf('\\SinglePay\\PaymentService\\Element\\Express\\Method\\CreditCardSale', $creditCardSale);\n $this->assertFalse(is_null($creditCardSale->address));\n $this->assertNull($creditCardSale->extendedParameters);\n }", "public function isDefaultBillingAddress()\n {\n return $this->default_billing == 'Y' ? true : false;\n }", "public function test_3_1()\n {\n global $Address;\n\n // setup\n $out = SetupTestData::hasmany_save_3();\n\n $address = $Address->create([\n 'line1' => 'line1_4',\n 'zipcode' => '44444',\n 'state' => 'MN'\n ]);\n\n $out['person']->add_to_addresses($address);\n\n $out['person']->save();\n\n\n // tests\n $this->assert($address->id !== NULL, 'New object id is set');\n\n $this->assert($out['person']->size_addresses() === 4, 'Has many has 4 objects');\n\n foreach ($out['person']->get_addresses() as $i => $address)\n {\n $this->assert($address->zipcode === str_repeat(($i+1).'', 5), 'Address zipcode correct');\n }\n }", "public function testCreateEntityAndGetDefaultDataSuccessfully(): void\n {\n $entityFactoryManager = $this->getEntityFactoryManager([\n 'Tests\\EoneoPay\\Externals\\ORM\\Stubs\\Factories\\\\' => 'Tests\\EoneoPay\\Externals\\ORM\\Stubs'\n ]);\n\n $entity1 = $entityFactoryManager->get(EntityStub::class);\n $entity2 = $entityFactoryManager->get(EntityStub::class);\n $entity3 = $entityFactoryManager->create(EntityStub::class, ['string' => 'different']);\n\n foreach ([$entity1, $entity2, $entity3] as $entity) {\n self::assertInstanceOf(EntityStub::class, $entity);\n }\n\n self::assertEquals(\\spl_object_hash($entity1), \\spl_object_hash($entity2));\n self::assertNotEquals(\\spl_object_hash($entity1), \\spl_object_hash($entity3));\n\n /** @noinspection UnnecessaryAssertionInspection Create returns EntityInterface */\n self::assertInstanceOf(EntityWithRulesStub::class, $entityFactoryManager->create(EntityWithRulesStub::class));\n\n self::assertEquals(\n ['integer' => 1, 'string' => 'string'],\n $entityFactoryManager->getDefaultData(EntityStub::class)\n );\n }", "public function testGetAddressToken()\n {\n\n }", "function testValidate(){\n\t\t$useraccount = new UserAccount();\n\t\t$data_without_firstname = $this->test_data;\t\t\n\t\t$data_without_firstname['firstname'] = \"\";\n\t\t$useraccount->processPost($data_without_firstname);\n\t\t$this->assertRegExp(\"/First Name/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that the lastname must have a value\n\t\t$useraccount = new UserAccount();\n\t\t$data_without_lastname = $this->test_data;\n\t\t$data_without_lastname['lastname'] = \"\";\n\t\t$useraccount->processPost($data_without_lastname);\n\t\t$this->assertRegExp(\"/last name/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that the email must have a value\n\t\t $useraccount = new UserAccount();\n\t\t$data_without_email = $this->test_data;\n\t\t$data_without_email['email'] = \"\";\n\t\t$useraccount->processPost($data_without_email);\n\t\t$this->assertRegExp(\"/email/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that atleast one group has been selected\n\t\t$useraccount = new UserAccount();\n\t\t$data_without_group = $this->test_data;\n\t\t$data_without_group['usergroups_groupid'] = array();\n\t\t$useraccount->processPost($data_without_group);\t\t\n\t\t$this->assertRegExp(\"/Group/i\", $useraccount->getErrorStackAsString());\n\t\t\n\t\t# check that the email is unique \n\t\t$useraccount = new UserAccount();\n\t\t$data_with_duplicate_email = $this->test_data;\n\t\t$data_with_duplicate_email['email'] = \"elawrence@devmail.infomacorp.com\";\n\t\t$useraccount->processPost($data_with_duplicate_email);\t\t\n\t\t$this->assertRegExp(\"/already exists/i\", $useraccount->getErrorStackAsString());\n\t}", "public function testSetGetAddress()\n {\n $address = 'Address';\n $event = (new Event())->setAddress($address);\n $this->assertEquals($address, $event->getAddress());\n }", "public function testDebtorSavePhoneNumberEmpty()\n {\n $aDados = [\n 'name' => 'Carlos Vinicius',\n 'email' => 'cvmm121@gmail.com',\n 'cpf_cnpj' => '1234567890',\n 'birthdate' => '12/01/1994',\n 'phone_number' => '',\n 'zipcode' => '99999-999',\n 'address' => 'Rua Teste',\n 'number' => '25',\n 'complement' => 'Conjunto Teste 2',\n 'neighborhood' => 'Bairro Teste 2',\n 'city' => 'Aracaju',\n 'state' => 'SE'\n ];\n\n $this->expectException(InvalidAttributeException::class);\n $oDebtor = Debtor::createFromRequest($aDados);\n }", "private function SaveBillingAddress()\n\t{\n\t\tif(isset($_SESSION['CHECKOUT']['CHECKOUT_TYPE']) && $_SESSION['CHECKOUT']['CHECKOUT_TYPE'] == 'express') {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=express';\n\t\t}\n\t\telse {\n\t\t\t$redirectOnError = getConfig('ShopPath').'/checkout.php?action=checkout';\n\t\t}\n\n\t\t// If guest checkout is not enabled and the customer isn't signed in then send the customer\n\t\t// back to the beginning of the checkout process.\n\t\tif(!GetConfig('GuestCheckoutEnabled') && !CustomerIsSignedIn()) {\n\t\t\tredirect($redirectOnError);\n\t\t}\n\n\t\t// If the customer isn't signed in then they've just entered an address that we need to validate\n\t\tif(!CustomerIsSignedIn()) {\n\t\t\t$errors = array();\n\t\t\t// An invalid address was entered, show the form again\n\t\t\t$addressDetails = $this->ValidateGuestCheckoutAddress('billing', $errors);\n\t\t\tif(!$addressDetails) {\n\t\t\t\t$this->ChooseBillingAddress($errors);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// We've just selected an address\n\t\t\tif(isset($_GET['address_id'])) {\n\t\t\t\t$addressDetails = (int)$_GET['address_id'];\n\t\t\t}\n\t\t}\n\n\t\t// There was a problem saving the selected billing address\n\t\tif(!$this->SetOrderBillingAddress($addressDetails)) {\n\t\t\t$this->ChooseBillingAddress();\n\t\t\treturn;\n\t\t}\n\n\t\t// If we're automatically creating accounts for customers then we need to save those details too\n\t\tif(!CustomerIsSignedIn() && GetConfig('GuestCheckoutCreateAccounts')) {\n\t\t\t$password = substr(md5(uniqid(true)), 0, 8);\n\t\t\t$autoAccount = 1;\n\t\t\t$_SESSION['CHECKOUT']['CREATE_ACCOUNT'] = 1;\n\t\t\t$_SESSION['CHECKOUT']['ACCOUNT_DETAILS'] = array(\n\t\t\t\t'email' => $addressDetails['shipemail'],\n\t\t\t\t'password' => $password,\n\t\t\t\t'firstname' => $addressDetails['shipfirstname'],\n\t\t\t\t'lastname' => $addressDetails['shiplastname'],\n\t\t\t\t'company' => '',\n\t\t\t\t'phone' => $addressDetails['shipphone'],\n\t\t\t\t'autoAccount' => $autoAccount\n\t\t\t);\n\t\t}\n\n\t\tif($this->getQuote()->isDigital()) {\n\t\t\t@ob_end_clean();\n\t\t\theader(sprintf(\"location:%s/checkout.php?action=confirm_order\", $GLOBALS['ShopPath']));\n\t\t}\n\t\telse {\n\t\t\t// Are we shipping to the same address?\n\t\t\tif(isset($_POST['ship_to_billing'])) {\n\t\t\t\tif(!$this->SetOrderShippingAddress($addressDetails, true)) {\n\t\t\t\t\t$this->ChooseShippingAddress();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Now they need to choose the shipping provider for their order\n\t\t\t\t@ob_end_clean();\n\t\t\t\theader(\"Location: \".GetConfig('ShopPath').\"/checkout.php?action=choose_shipper\");\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t// Otherwise, we just move to the next step\n\t\t\t@ob_end_clean();\n\t\t\theader(sprintf(\"location:%s/checkout.php?action=choose_shipping_address\", $GLOBALS['ShopPath']));\n\t\t}\n\t\texit;\n\t}", "public function testIfCustomersHasData()\n {\n $this->assertNotEmpty($this->customersInstance->getData());\n }", "public function testDebtorSaveEmailEmpty()\n {\n $aDados = [\n 'name' => 'Carlos Vinicius',\n 'email' => '',\n 'cpf_cnpj' => '1234567890',\n 'birthdate' => '15/01/1996',\n 'phone_number' => '(79) 9 9999-9999',\n 'zipcode' => '99999-999',\n 'address' => 'Rua Teste',\n 'number' => '25',\n 'complement' => 'Conjunto Teste 2',\n 'neighborhood' => 'Bairro Teste 2',\n 'city' => 'Aracaju',\n 'state' => 'SE'\n ];\n\n $this->expectException(InvalidAttributeException::class);\n $oDebtor = Debtor::createFromRequest($aDados);\n }", "public function setAddress($data=null) {\n if(!is_array($data)) {\n $b = $this->getBilling();\n $p = $this->getPayment();\n $data = array(\n 'STREET' => $b['address'],\n 'STREET2' => $b['address2'],\n 'CITY' => $b['city'],\n 'STATE' => $b['state'],\n 'COUNTRYCODE' => $b['country'],\n 'ZIP' => $b['zip'],\n 'SHIPTOPHONENUM' => $p['phone']\n );\n }\n $this->_payerAddress = $data;\n }", "public function testShowUserWithAddresses()\n {\n $user = factory(User::class)->state('administration_worker')->create();\n $response = $this->withHeaders([\n ])->getJson(\"/api/user/{$user->id}\", []);\n\n $response->assertStatus(200)\n ->assertJson([\"user\" => $user->toArray()])\n ->assertJsonPath(\"user.address.id\", $user->address_id)\n ->assertJsonPath(\"user.correspondal_address.id\", $user->correspondal_address_id);\n }", "function useDifferentShippingAddress($data, $form, $request) {\n\t\t$order = ShoppingCart::curr();\n\t\t$order->SeparateBillingAddress = true;\n\t\t$order->write();\n\t\t$this->saveDataToSession($data);\n\t\tController::curr()->redirectBack();\n\t}", "public function setBillingAddressAction()\n {\n $data = $this->Request()->getParams();\n\n /** @var Shopware\\Models\\Customer\\Customer $customerModel */\n $customerModel = Shopware()->Models()->find('Shopware\\Models\\Customer\\Customer', $data['userId']);\n\n $billingAddressModel = $customerModel->getBilling();\n\n $billingAddressModel->fromArray($data);\n\n Shopware()->Models()->persist($billingAddressModel);\n Shopware()->Models()->flush();\n\n $this->view->assign(['billingAddressId' => $billingAddressModel->getId()]);\n }", "public function testAddressToJson(): void\n {\n $dateFormat = 'Y-m-d H:i:s';\n\n $job = new Job();\n $job->setIsLive(true);\n $job->setApiToken(\"APITOKEN1234567\");\n $job->setOrderContactName(\"Contact name\");\n $job->setOrderContactPhone(\"5141234567\");\n\n $readyTime = date_create_from_format($dateFormat, '2019-02-15 15:16:17', new DateTimeZone('America/Toronto'));\n $job->setReadyTime($readyTime);\n\n $deliverFromTime = date_create_from_format($dateFormat, '2019-02-15 18:16:17', new DateTimeZone('America/Toronto'));\n $job->setDeliverFromDateTime($deliverFromTime);\n\n $deliverToTime = date_create_from_format($dateFormat, '2019-02-15 18:36:17', new DateTimeZone('America/Toronto'));\n $job->setDeliverToDateTime($deliverToTime);\n\n $job->setWebhookUrl(\"http://foo.com/callback\");\n $job->setReference(\"ReferenceCode\");\n $job->setServiceId(2);\n $job->setPaymentMethod(PaymentMethod::CUSTOMER_CASH);\n $job->setOrderTotal(100);\n $job->setDeliveryFee(10);\n $job->setTip(1.5);\n\n $item1 = new JobItem();\n $item1->setSku(\"SKU1\");\n $item1->setDescription(\"SKU one\");\n $item1->setQuantity(1);\n $job->addJobItem($item1);\n\n $item2 = new JobItem();\n $item2->setSku(\"SKU2\");\n $item2->setDescription(\"SKU two\");\n $item2->setQuantity(2);\n $job->addJobItem($item2);\n\n $job->setSpecialInstructions(\"Special instructions\");\n $job->setRequirePhotoOnDelivery(true);\n $job->setExternalId(\"External ID\");\n\n $pickAddress = new Address();\n $pickAddress->setAddressName(\"P. Sherman\");\n $pickAddress->setStreetAddress(\"32 Wallaby Way\");\n $pickAddress->setFloor(\"1\");\n $pickAddress->setCity(\"Sydney\");\n $pickAddress->setState(\"CA\");\n $pickAddress->setZipCode(\"123456\");\n $pickAddress->setContact(\"P. Sherman\");\n $pickAddress->setPhoneNumber(\"5141234567\");\n $pickAddress->setSpecialInstructions(\"Large delivery\");\n\n $deliveryAddress = new Address();\n $deliveryAddress->setAddressName(\"Mr J. Recipient\");\n $deliveryAddress->setStreetAddress(\"101 Foo Street\");\n $deliveryAddress->setFloor(\"1\");\n $deliveryAddress->setCity(\"Melbourne\");\n $deliveryAddress->setState(\"CA\");\n $deliveryAddress->setZipCode(\"876543\");\n $deliveryAddress->setContact(\"Mr Recipient\");\n $deliveryAddress->setPhoneNumber(\"4381234567\");\n $deliveryAddress->setSpecialInstructions(\"Ring doorbell\");\n\n $job->setPickupAddress($pickAddress);\n $job->setDeliveryAddress($deliveryAddress);\n $job->setSpecialInstructions(\"Job-level special instructions\");\n\n $expected = <<<JSON\n{\n \"live\": true,\n \"api_token\": \"APITOKEN1234567\",\n \"order_contact_name\": \"Contact name\",\n \"order_contact_phone\": \"5141234567\",\n \"pick_address\": {\n \"address_name\": \"P. Sherman\",\n \"street_address\": \"32 Wallaby Way\",\n \"floor\": \"1\",\n \"city\": \"Sydney\",\n \"state\": \"CA\",\n \"zip_code\": \"123456\",\n \"contact\": \"P. Sherman\",\n \"special_instructions\": \"Large delivery\",\n \"phone_number\" : \"5141234567\"\n },\n \"deliver_address\": {\n \"address_name\": \"Mr J. Recipient\",\n \"street_address\": \"101 Foo Street\",\n \"floor\": \"1\",\n \"city\": \"Melbourne\",\n \"state\": \"CA\",\n \"zip_code\": \"876543\",\n \"contact\": \"Mr Recipient\",\n \"special_instructions\": \"Ring doorbell\",\n \"phone_number\" : \"4381234567\"\n },\n \"ready_time\": \"2019-02-15T15:16:17-0500\",\n \"deliver_from_time\": \"2019-02-15T18:16:17-0500\",\n \"deliver_to_time\": \"2019-02-15T18:36:17-0500\",\n \"service_id\": 2,\n \"order_total\": 100,\n \"tip\": 1.5,\n \"webhook_url\": \"http:\\/\\/foo.com\\/callback\",\n \"payment_method\":6,\n \"job_items\": [\n {\n \"quantity\": 1,\n \"description\": \"SKU one\",\n \"sku\": \"SKU1\"\n },\n {\n \"quantity\": 2,\n \"description\": \"SKU two\",\n \"sku\": \"SKU2\"\n }\n ],\n \"reference\" : \"ReferenceCode\",\n \"external_id\" : \"External ID\",\n \"photo\" : true,\n \"special_instructions\" : \"Job-level special instructions\"\n}\nJSON;\n\n\t $expectedJson = json_decode($expected);\n\t $this->assertEquals($expectedJson,json_decode(json_encode($job)));\n }", "public function setTestValues()\r\n {\r\n $fname = array(\"Jesper\", \"Nicolai\", \"Alex\", \"Stefan\", \"Helmut\", \"Elvis\");\r\n $lname = array(\"Gødvad\", \"Lundgaard\", \"Killing\", \"Meyer\", \"Schottmüller\", \"Presly\");\r\n $city = array(\"Copenhagen\", \"Århus\", \"Collonge\", \"Bremen\", \"SecretPlace\" );\r\n $country = array(\"Denmark\", \"Germany\", \"France\", \"Ümlaudia\", \"Graceland\");\r\n $road = array(\" Straße\", \" Road\", \"vej\", \" Boulevard\");\r\n \r\n $this->number = rand(1000,1010);\r\n $this->name = $fname[rand(0,5)] . \" \" . $lname[rand(0,5)];\r\n $this->email = \"noreply@ilias.dk\";\r\n $this->address= \"Ilias\" . $road[rand(0,3)] .\" \" . rand(1,100);\r\n $this->postalcode = rand(2000,7000);\r\n $this->city = $city[rand(0,3)];\r\n $this->country = $country[rand(0,4)];\r\n $this->phone = \"+\" . rand(1,45) . \" \" . rand(100,999) . \" \" . rand(1000, 9999);\r\n $this->ean = 0;\r\n $this->website = ilERPDebtor::website; \r\n }", "public function testFormat($data, $expected)\n {\n $this->assertEquals($expected, (new VenueAddress(new Address(new DataHelperService())))->format($data));\n }", "public function updateBillingAddress() {\n Log::debug(\"Entering updateBillingAddress\");\n DB::transaction(function () {\n $order = $this->getOrderData();\n if (isset($order)) {\n // update the existing billing adress or create a new one\n $address = $order->billingAddress;\n if (!isset($address))\n $address = new Address();\n $address = $this->fillOrderAddress($address);\n $address->save();\n $order->billing_address = $address->id;\n $order->save();\n }\n });\n }", "public function testReturnTrueOnValidDashAddress()\n {\n $result = Wallet::validate(self::VALID_DASH_ADDRESS, Wallet::DASH);\n\n $this->assertTrue($result);\n }", "public function test_postal_code_validation()\n {\n /*\n * Valid\n */\n $validPostalCodeLocation = Location::factory()->make([\n 'postalCode' => 'A9 9AA',\n ]);\n $validPostalCodeData = $validPostalCodeLocation->toArray();\n $this->post($this->route(), $validPostalCodeData)->assertStatus(201);\n\n /*\n * Invalid: missing\n */\n $missingPostalCodeLocation = Location::factory()->make();\n $missingPostalCodeData = $missingPostalCodeLocation->toArray();\n unset($missingPostalCodeData['postalCode']);\n\n $response = $this->post($this->route(), $missingPostalCodeData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.postalCode', 'The postal code field is required.');\n\n /**\n * Invalid: not a string\n */\n $nonStringLocation = Location::factory()->make([\n 'postalCode' => ['invalid'],\n ]);\n $nonStringData = $nonStringLocation->toArray();\n\n $response = $this->post($this->route(), $nonStringData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.postalCode', 'The postal code must be a string.');\n\n /**\n * Invalid: No space\n */\n $noSpaceLocation = Location::factory()->make([\n 'postalCode' => 'A99AA',\n ]);\n $noSpaceData = $noSpaceLocation->toArray();\n\n $response = $this->post($this->route(), $noSpaceData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.postalCode', 'The postal code format is invalid.');\n\n /**\n * Invalid: Too many outcode characters\n */\n $outcodeSurplusLocation = Location::factory()->make([\n 'postalCode' => 'AA999 9AA',\n ]);\n $outcodeSurplusData = $outcodeSurplusLocation->toArray();\n\n $response = $this->post($this->route(), $outcodeSurplusData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.postalCode', 'The postal code format is invalid.');\n\n /**\n * Invalid: Too many incode characters\n */\n $incodeSurplusLocation = Location::factory()->make([\n 'postalCode' => 'AA99 9AAA',\n ]);\n $incodeSurplusData = $incodeSurplusLocation->toArray();\n\n $response = $this->post($this->route(), $incodeSurplusData);\n $response->assertStatus(400);\n $response->assertJsonPath('meta.field_errors.postalCode', 'The postal code format is invalid.');\n }", "public function setShipToAddress($data=null) {\n if(!is_array($data)) {\n $s = $this->getShipping();\n $data = array(\n 'SHIPTONAME' => $s['firstName'] . ' ' . $s['lastName'],\n 'SHIPTOSTREET' => $s['address'],\n 'SHIPTOSTREET2' => $s['address2'],\n 'SHIPTOCITY' => $s['city'],\n 'SHIPTOSTATE' => $s['state'],\n 'SHIPTOCOUNTRYCODE' => $s['country'],\n 'SHIPTOZIP' => $s['zip']\n );\n }\n $this->_payerShipToAddress = $data;\n }", "function edd_stripe_setup_billing_address_fields() {\n\n\tif( ! function_exists( 'edd_use_taxes' ) ) {\n\t\treturn;\n\t}\n\n\tif( edd_use_taxes() || 'stripe' !== edd_get_chosen_gateway() || ! edd_get_cart_total() > 0 ) {\n\t\treturn;\n\t}\n\n\t$display = edd_get_option( 'stripe_billing_fields', 'full' );\n\n\tswitch( $display ) {\n\n\t\tcase 'full' :\n\n\t\t\t// Make address fields required\n\t\t\tadd_filter( 'edd_require_billing_address', '__return_true' );\n\n\t\t\tbreak;\n\n\t\tcase 'zip_country' :\n\n\t\t\tremove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields', 10 );\n\t\t\tadd_action( 'edd_after_cc_fields', 'edd_stripe_zip_and_country', 9 );\n\n\t\t\t// Make Zip required\n\t\t\tadd_filter( 'edd_purchase_form_required_fields', 'edd_stripe_require_zip_and_country' );\n\n\t\t\tbreak;\n\n\t\tcase 'none' :\n\n\t\t\tremove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields', 10 );\n\n\t\t\tbreak;\n\n\t}\n\n}", "public function testPrepareApiRequest()\n {\n /** @var array $billingData */\n $billingData = [\n 'firstname' => 'Someone',\n 'lastname' => 'Somebody',\n 'telephone' => '555-555-5555',\n 'street' => '630 Allendale Rd',\n 'city' => 'King of Prussia',\n 'region_code' => 'PA',\n 'country' => 'US',\n 'postcode' => '19604',\n ];\n /** @var Mage_Sales_Model_Order_Address $shippingAddress */\n $shippingAddress = Mage::getModel('sales/order_address', ['id' => 1]);\n /** @var Mage_Sales_Model_Order_Address $billingAddress */\n $billingAddress = Mage::getModel('sales/order_address', array_merge($billingData, ['id' => 2]));\n /** @var Mage_Sales_Model_Order $order */\n $order = Mage::getModel('sales/order', [\n 'is_virtual' => true\n ]);\n $order->setShippingAddress($shippingAddress)\n ->setBillingAddress($billingAddress);\n /** @var Mage_Sales_Model_Order_Payment $orderPayment */\n $orderPayment = Mage::getModel('sales/order_payment', ['cc_exp_year' => 2023, 'cc_exp_month' => 8])->setOrder($order);\n\n $mockMethods = [\n 'setIsEncrypted' => null,\n 'setRequestId' => null,\n 'setOrderId' => null,\n 'setPanIsToken' => null,\n 'setCardNumber' => null,\n 'setExpirationDate' => null,\n 'setCardSecurityCode' => null,\n 'setAmount' => null,\n 'setCurrencyCode' => null,\n 'setEmail' => null,\n 'setIp' => null,\n 'setBillingFirstName' => $billingData['firstname'],\n 'setBillingLastName' => $billingData['lastname'],\n 'setBillingPhone' => $billingData['telephone'],\n 'setBillingLines' => $billingData['street'],\n 'setBillingCity' => $billingData['city'],\n 'setBillingMainDivision' => $billingData['region_code'],\n 'setBillingCountryCode' => $billingData['country'],\n 'setBillingPostalCode' => $billingData['postcode'],\n // Expecting shipping setter methods for the request payload to be\n // fill-out with billing data.\n 'setShipToFirstName' => $billingData['firstname'],\n 'setShipToLastName' => $billingData['lastname'],\n 'setShipToPhone' => $billingData['telephone'],\n 'setShipToLines' => $billingData['street'],\n 'setShipToCity' => $billingData['city'],\n 'setShipToMainDivision' => $billingData['region_code'],\n 'setShipToCountryCode' => $billingData['country'],\n 'setShipToPostalCode' => $billingData['postcode'],\n ];\n /** @var ICreditCardAuthRequest $request **/\n $request = $this->getMockForAbstractClass('\\eBayEnterprise\\RetailOrderManagement\\Payload\\Payment\\ICreditCardAuthRequest', [], '', true, true, true, array_keys($mockMethods));\n foreach ($mockMethods as $method => $with) {\n if (is_null($with)) {\n $request->expects($this->once())\n ->method($method)\n ->will($this->returnSelf());\n } else {\n // Using \"with\" only when there's an actual value\n $request->expects($this->once())\n ->method($method)\n ->with($this->identicalTo($with))\n ->will($this->returnSelf());\n }\n }\n /** @var IBidirectionalApi $api */\n $api = $this->getMockForAbstractClass('\\eBayEnterprise\\RetailOrderManagement\\Api\\IBidirectionalApi', [], '', true, true, true, ['getRequestBody']);\n $api->expects($this->once())\n ->method('getRequestBody')\n ->will($this->returnValue($request));\n\n /** @var Radial_CreditCard_Model_Method_Ccpayment $payment */\n $payment = Mage::getModel('radial_creditcard/method_ccpayment');\n\n $this->assertSame($payment, EcomDev_Utils_Reflection::invokeRestrictedMethod($payment, '_prepareAuthRequest', [$api, $orderPayment]));\n }", "public function testRegonLocal1()\n{\n\n // Traversed conditions\n // for (...) == false (line 65)\n // for (...) == false (line 69)\n // if ($checksum == 10) == true (line 73)\n\n $actual = $this->company->regonLocal();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function save_addressAction() {\r\n\t\t$billing_data = $this->getRequest()->getPost('billing', false);\r\n\t\t$shipping_data = $this->getRequest()->getPost('shipping', false);\r\n\t\t$shipping_method = $this->getRequest()->getPost('shipping_method', false);\r\n\t\t$billing_address_id = $this->getRequest()->getPost('billing_address_id', false);\t\r\n\t\t\r\n\t\t//load default data for disabled fields\r\n\t\tif (Mage::helper('onestepcheckout')->isUseDefaultDataforDisabledFields()) {\r\n\t\t\tMage::helper('onestepcheckout')->setDefaultDataforDisabledFields($billing_data);\r\n\t\t\tMage::helper('onestepcheckout')->setDefaultDataforDisabledFields($shipping_data);\r\n\t\t}\r\n\t\t\r\n\t\tif (isset($billing_data['use_for_shipping']) && $billing_data['use_for_shipping'] == '1') {\r\n\t\t\t$shipping_address_data = $billing_data;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$shipping_address_data = $shipping_data;\r\n\t\t}\r\n\t\t\r\n\t\t$billing_street = trim(implode(\"\\n\", $billing_data['street']));\r\n\t\t$shipping_street = trim(implode(\"\\n\", $shipping_address_data['street']));\r\n\t\t\r\n\t\tif(isset($billing_data['email'])) {\r\n\t\t\t$billing_data['email'] = trim($billing_data['email']);\r\n\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t// Ignore disable fields validation --- Only for 1..4.1.1\r\n\t\t$this->setIgnoreValidation();\r\n\t\tif(Mage::helper('onestepcheckout')->isShowShippingAddress()) {\r\n\t\t\tif(!isset($billing_data['use_for_shipping']) || $billing_data['use_for_shipping'] != '1')\t{\t\t\r\n\t\t\t\t$shipping_address_id = $this->getRequest()->getPost('shipping_address_id', false);\r\n\t\t\t\t$this->getOnepage()->saveShipping($shipping_data, $shipping_address_id);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t$this->getOnepage()->saveBilling($billing_data, $billing_address_id);\r\n\t\tif($billing_data['country_id']){\r\n\t\t\tMage::getModel('checkout/session')->getQuote()->getBillingAddress()->setData('country_id',$billing_data['country_id'])->save();\r\n\t\t}\r\n\t\t//var_dump($billing_data['country_id']);die();\r\n\t\t//Mage::getModel('core/session')->setData('country',$billing_data['country_id']);\r\n\t\t// if different shipping address is enabled and customer ship to another address, save it\r\n\t\t\r\n\t\t\r\n\t\tif ($shipping_method && $shipping_method != '') {\r\n\t\t\tMage::helper('onestepcheckout')->saveShippingMethod($shipping_method);\r\n\t\t}\r\n\t\t$this->loadLayout(false);\r\n\t\t$this->renderLayout();\t\r\n\t}", "public function testGenerateAddressAuthCode()\n {\n\n }", "public function testSetAddressLineWithStringsMustPass(): void\n {\n $instance = self::getWhlAddressTypeInstance();\n\n $this->assertSame(\n $instance,\n $instance->setAddressLine([\n 'a',\n 'b',\n ])\n );\n }", "public function testDeleteAddress()\n {\n\n }", "public function testSetCodePostal() {\n\n $obj = new Employes();\n\n $obj->setCodePostal(\"codePostal\");\n $this->assertEquals(\"codePostal\", $obj->getCodePostal());\n }", "public function testDebtorSaveNeighborhoodEmpty()\n {\n $aDados = [\n 'name' => 'Carlos Vinicius',\n 'email' => 'cvmm121@gmail.com',\n 'cpf_cnpj' => '1234567890',\n 'birthdate' => '12/01/1994',\n 'phone_number' => '(79) 9 9999-9999',\n 'zipcode' => '99999-999',\n 'address' => 'Rua Teste',\n 'number' => '25',\n 'complement' => 'Complemento Teste',\n 'neighborhood' => '',\n 'city' => 'Aracaju',\n 'state' => 'SE'\n ];\n\n $this->expectException(InvalidAttributeException::class);\n $oDebtor = Debtor::createFromRequest($aDados);\n }", "public function testSendWithRequestAddressBalance()\n {\n $service = $this->getStubForTest(file_get_contents(__DIR__ . '/TestAsset/Response/address_balance.txt'));\n\n $request = new Request\\AddressBalance();\n $request->setAddress('efjsdkfjkwefkwejfkesf');\n\n /* @var $response Response\\AddressBalance */\n $response = $service->send($request);\n\n $this->assertEquals(0, $response->getBalance());\n\n $this->assertEquals(\n $this->getLastRawRequestExpected(__DIR__ . '/TestAsset/Request/address_balance.txt'),\n $this->getLastRawRequest($service),\n 'Requests does not match'\n );\n }", "public static function setUpBeforeClass(): void\n {\n // create instance of IntlVerificationsApiSpecTest & an editable address for other tests\n self::$config = new Configuration();\n self::$config->setApiKey('basic', getenv('LOB_API_LIVE_KEY'));\n self::$intlvApi200 = new IntlVerificationsApi(self::$config);\n\n self::$validAddress1 = new IntlVerificationWritable();\n self::$validAddress1->setPrimaryLine(\"10 DOWNING ST\");\n self::$validAddress1->setCity(\"LONDON\");\n self::$validAddress1->setPostalCode(\"SW1A 2AA\");\n self::$validAddress1->setCountry(\"GB\");\n\n self::$validAddress2 = new IntlVerificationWritable();\n self::$validAddress2->setPrimaryLine(\"36 TOWER HILL\");\n self::$validAddress2->setCity(\"LONDON\");\n self::$validAddress2->setPostalCode(\"EC3N 4DR\");\n self::$validAddress2->setCountry(\"GB\");\n\n $mc1 = new MultipleComponentsIntl();\n $mc1->setPrimaryLine(\"10 DOWNING ST\");\n $mc1->setCity(\"LONDON\");\n $mc1->setPostalCode(\"SW1A 2AA\");\n $mc1->setCountry(\"GB\");\n\n\n $mc2 = new MultipleComponentsIntl();\n $mc2->setPrimaryLine(\"1 FAKE POTATO LANE\");\n $mc2->setCity(\"LONDON\");\n $mc2->setPostalCode(\"ZC4Z 46Z\");\n $mc2->setCountry(\"GB\");\n\n // multiple components list for bulk verification test\n self::$multipleAddressList = new IntlVerificationsPayload();\n self::$multipleAddressList->setAddresses([$mc1, $mc2]);\n\n self::$undeliverableAddress = new IntlVerificationWritable();\n self::$undeliverableAddress->setPrimaryLine(\"1 CEMETERY ST\");\n self::$undeliverableAddress->setCity(\"POTATOFIELD\");\n self::$undeliverableAddress->setPostalCode(\"EC3N 40R\");\n self::$undeliverableAddress->setCountry(\"GB\");\n }", "public function testRegon1()\n{\n\n // Traversed conditions\n // for (...) == false (line 40)\n // for (...) == false (line 44)\n // if ($checksum == 10) == true (line 48)\n\n $actual = $this->company->regon();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "protected function _initBillingAddress($shouldIgnoreBillingValidation = null)\n {\n /**\n *\n * @note Check if it is necessary to validate billing address information\n *\n */\n if (!$shouldIgnoreBillingValidation) {\n /**\n *\n * @note Import customer default billing address\n *\n */\n $this->getQuote()->getBillingAddress()->importCustomerAddressData(\n $this->getCustomerSession()->getCustomer()->getDefaultBillingAddress()->getDataModel()\n );\n }\n else {\n /**\n *\n * @note Skip billing address validation\n *\n */\n $this->getQuote()->getBillingAddress()->setData('should_ignore_validation', true);\n\n /**\n *\n * @note Add customer generic data to billing address\n * @note For some reason, if this generic customer data is not set to the quote billing address, the order billing information breaks when someone tries to watch it on frontend/backend\n *\n */\n $customerSession = $this->getCustomerSession();\n $customer = $customerSession->getCustomerDataObject();\n if ($customer->getId()) {\n $this->getQuote()->getBillingAddress()->setCustomerId($customer->getId());\n $this->getQuote()->getBillingAddress()->setEmail($customer->getEmail());\n $this->getQuote()->getBillingAddress()->setFirstname($customer->getFirstname());\n $this->getQuote()->getBillingAddress()->setLastname($customer->getLastname());\n }\n }\n }", "public function testGetRegionData(): void\n {\n $this->assertInstanceOf(CadastralRegionEntry::class, $this->instance->getRegionData());\n\n $this->instance->setValue('');\n $this->assertNull($this->instance->getRegionData());\n }", "public function testAddressSeedCommand()\n {\n $this->assertEquals(0, Address::all()->count());\n $this->artisan('app', [\n '--seed' => true\n ]);\n $this->assertEquals(15, Address::all()->count());\n\n }", "public function testGetAddressFromServiceGoodWay()\n {\n $response = Mockery::mock('Psr\\Http\\Message\\MessageInterface');\n $response->shouldReceive('getBody')->andReturn($this->getAddressFromServiceJson(true));\n $client_mock = Mockery::mock('GuzzleHttp\\Client');\n $client_mock->shouldReceive('request')->andReturn($response);\n $service = new GoogleInformationAddressService($client_mock);\n $service_respose = $service->getAddressFromService(31.4256195, 64.1876011);\n $this->assertEquals(\"False Street\", $service_respose);\n }", "public function testRegonLocal0()\n{\n\n // Traversed conditions\n // for (...) == false (line 65)\n // for (...) == false (line 69)\n // if ($checksum == 10) == false (line 73)\n\n $actual = $this->company->regonLocal();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testRegonLocal3()\n{\n\n // Traversed conditions\n // for (...) == false (line 65)\n // for (...) == true (line 69)\n // for (...) == false (line 69)\n // if ($checksum == 10) == true (line 73)\n\n $actual = $this->company->regonLocal();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testRegonLocal5()\n{\n\n // Traversed conditions\n // for (...) == true (line 65)\n // for (...) == false (line 65)\n // for (...) == false (line 69)\n // if ($checksum == 10) == true (line 73)\n\n $actual = $this->company->regonLocal();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testFormCountryMissingAddressVisible() {\n $form = new RedirectForm();\n $form_state = [];\n $payment = $this->mockPayment([\n 'firstname' => 'First',\n 'lastname' => 'Last',\n 'address1' => 'Address1',\n 'postcode' => 'TEST',\n 'city' => 'London',\n ]);\n $element = $form->form([], $form_state, $payment);\n $pd = $element['personal_data'];\n $pd['address'] += ['#access' => TRUE];\n $this->assertTrue($pd['address']['#access']);\n $this->assertTrue($pd['address']['city']['#access']);\n $this->assertEquals('London', $pd['address']['city']['#default_value']);\n }", "function testGetBusinessContactEmail()\n {\n //Arrange\n $business_name=\"IBM\";\n $business_phone= \"5033133131\";\n $business_contact = \"john\";\n $business_website = \"walkins.com\";\n $business_address =\"123 fake st\";\n $business_contact_email = \"me@fakeemail.com\";\n $id= 5;\n $test_business = new Business ($business_name, $business_phone, $business_contact, $business_website, $business_address, $business_contact_email, $id = null);\n\n //Act\n $result = $test_business->getBusinessContactEmail();\n\n //Assert\n $this->assertEquals (\"me@fakeemail.com\", $result);\n }", "public function compare_addresses($post_id, $envio_email) {\n\n\t\t$WooCommerceNFeFormat = new WooCommerceNFeFormat;\n\n\t\t$phone = (get_user_meta($post_id, 'billing_phone', true) ? get_user_meta($post_id, 'billing_phone', true) : get_post_meta($post_id, '_billing_phone', true));\n\t\t$email = ($envio_email && $envio_email == 'yes' ? get_post_meta($post_id, '_billing_email', true) : '');\n\n\t\t$billing = array(\n\t\t\t'endereco' => get_post_meta($post_id, '_billing_address_1', true),\n\t\t\t'complemento' => get_post_meta($post_id, '_billing_address_2', true),\n\t\t\t'numero' => get_post_meta($post_id, '_billing_number', true),\n\t\t\t'bairro' => get_post_meta($post_id, '_billing_neighborhood', true),\n\t\t\t'cidade' => get_post_meta($post_id, '_billing_city', true),\n\t\t\t'uf' => get_post_meta($post_id, '_billing_state', true),\n\t\t\t'cep' => $WooCommerceNFeFormat->cep(get_post_meta($post_id, '_billing_postcode', true)),\n\t\t\t'telefone' => $phone,\n\t\t\t'email' => $email,\n\t\t\t'pais' => get_post_meta($post_id, '_billing_country', true)\n\t\t);\n\t\t$shipping = array(\n\t\t\t'endereco' => get_post_meta($post_id, '_shipping_address_1', true),\n\t\t\t'complemento' => get_post_meta($post_id, '_shipping_address_2', true),\n\t\t\t'numero' => get_post_meta($post_id, '_shipping_number', true),\n\t\t\t'bairro' => get_post_meta($post_id, '_shipping_neighborhood', true),\n\t\t\t'cidade' => get_post_meta($post_id, '_shipping_city', true),\n\t\t\t'uf' => get_post_meta($post_id, '_shipping_state', true),\n\t\t\t'cep' => $WooCommerceNFeFormat->cep(get_post_meta($post_id, '_shipping_postcode', true)),\n\t\t\t'telefone' => $phone,\n\t\t\t'email' => $email,\n\t\t\t'pais' => get_post_meta($post_id, '_shipping_country', true)\n\t\t);\n\n\t\tif ( $shipping['endereco'] == '' ) {\n\t\t\t$is_digital_order = $this->is_digital_order($post_id);\n\n\t\t\tif ( $is_digital_order ) {\n\t\t\t\t$tipo_pessoa_billing = $this->detect_persontype($post_id, '_billing');\n\t\t\t\t$billing = array_merge( $this->get_persontype_info($post_id, $tipo_pessoa_billing, '_billing'), $billing);\n\n\t\t\t\t$return['cliente'] = $billing;\n\t\t\t\treturn $return;\n\t\t\t}\n\t\t}\n\n\t\t// Compare and return transporte->entrega if are different addressses\n\t\tif ( $billing === $shipping ) {\n\n\t\t\t// Detect persontype and merge informations\n\t\t\t$tipo_pessoa_billing = $this->detect_persontype($post_id, '_billing');\n\t\t\t$billing = array_merge( $this->get_persontype_info($post_id, $tipo_pessoa_billing, '_billing'), $billing);\n\n\t\t\t$return['cliente'] = $billing;\n\n\t\t} else {\n\n\t\t\t// Detect persontype and merge informations\n\t\t\t$tipo_pessoa_billing = $this->detect_persontype($post_id, '_billing');\n\t\t\t$tipo_pessoa_shipping = $this->detect_persontype($post_id, '_shipping');\n\n\t\t\t$billing = array_merge( $this->get_persontype_info($post_id, $tipo_pessoa_billing, '_billing'), $billing);\n\t\t\t$shipping = array_merge( $this->get_persontype_info($post_id, $tipo_pessoa_shipping, '_shipping'), $shipping);\n\n\t\t\t$return['cliente'] = $billing;\n\t\t\t$return['transporte']['entrega'] = $shipping;\n\t\t}\n\n\t\t//Foreign customer NFS-e\n\t\tif (!empty($return['cliente']['pais'])) {\n\t\t\t$pais = $return['cliente']['pais'];\n\t\t\tif ($pais != 'BR') {\n\t\t\t\t//Remove address fields\n\t\t\t\tunset($return['cliente']['endereco']);\n\t\t\t\tunset($return['cliente']['complemento']);\n\t\t\t\tunset($return['cliente']['numero']);\n\t\t\t\tunset($return['cliente']['bairro']);\n\t\t\t\tunset($return['cliente']['cidade']);\n\t\t\t\tunset($return['cliente']['uf']);\n\t\t\t\tunset($return['cliente']['cep']);\n\n\t\t\t\t$return['cliente']['sigla_pais'] = $pais;\n\t\t\t\tif (isset($return['cliente']['nome_completo'])) {\n\t\t\t\t\t$return['cliente']['nome_estrangeiro'] = $return['cliente']['nome_completo'];\n\t\t\t\t\tunset($return['cliente']['cpf']);\n\t\t\t\t\tunset($return['cliente']['nome_completo']);\n\t\t\t\t}\n\t\t\t\telse if (isset($return['cliente']['razao_social'])) {\n\t\t\t\t\t$return['cliente']['nome_estrangeiro'] = $return['cliente']['razao_social'];\n\t\t\t\t\tunset($return['cliente']['cnpj']);\n\t\t\t\t\tunset($return['cliente']['razao_social']);\n\t\t\t\t}\n\t\t\t}\n\t\t\tunset($return['cliente']['pais']);\n\t\t}\n\n\t\treturn $return;\n\n\t}", "public function testRegonLocal4()\n{\n\n // Traversed conditions\n // for (...) == true (line 65)\n // for (...) == false (line 65)\n // for (...) == false (line 69)\n // if ($checksum == 10) == false (line 73)\n\n $actual = $this->company->regonLocal();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function testCreate() {\n $address_params = array(\"street1\" => \"388 Townsend St\",\n \"street2\" => \"Apt 20\",\n \"city\" => \"San Francisco\",\n \"state\" => \"CA\",\n \"zip\" => \"94107\");\n $address = EasyPost_Address::create($address_params);\n $this->assertInstanceOf('EasyPost_Address', $address);\n $this->assertInternalType('string', $address->id);\n $this->assertStringMatchesFormat(\"adr_%s\", $address->id);\n $this->assertNull($address->name);\n\n return $address;\n }", "public function testRegonLocal7()\n{\n\n // Traversed conditions\n // for (...) == true (line 65)\n // for (...) == false (line 65)\n // for (...) == true (line 69)\n // for (...) == false (line 69)\n // if ($checksum == 10) == true (line 73)\n\n $actual = $this->company->regonLocal();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}", "public function updateShippingAddress() {\n Log::debug(\"Entering updateShipping\");\n DB::transaction(function () {\n $order = $this->getOrderData();\n if (isset($order)) {\n // If set shipping addres same as billing\n if (isset($_POST['useBillingAddress'])) {\n $useBilling = $_POST['useBillingAddress'];\n if ($useBilling == \"1\") {\n $order->shipping_address = $order->billing_address;\n }\n // Not using billing address\n } else {\n // update the existing billing adress or create a new one\n $address = $order->shippingAddress;\n // if no existing address or changing from billing address\n if (!isset($address) || $order->billing_address == $order->shipping_address)\n $address = new Address();\n\n $address = $this->fillOrderAddress($address);\n $address->save();\n $order->shipping_address = $address->id;\n }\n $order->save();\n }\n });\n }", "public function testCanSetAndGetPostalCode()\n {\n $mockPostalCode = '00000';\n\n $this->dataCenter->setPostalCode($mockPostalCode);\n\n $this->assertEquals($mockPostalCode, $this->dataCenter->getPostalCode());\n }", "public function testGetIpAddress() {\n/******************************************************************************\n ** **\n ** The IP Address should be equal to whatever we set the remote address to **\n ** be in the request object we mocked in our setUp method. **\n ** **\n ******************************************************************************/\n $this->assertEquals('127.0.0.1', $this->personalizationIpService->getIpAddress());\n }", "public function testGetConfigDataOverride()\n {\n $availableCardTypes = array('AE' => 'American Express', 'VI' => 'Visa', 'MC' => 'Master Card');\n $helper = $this->getHelperMock('radial_creditcard', array('getAvailableCardTypes'));\n $helper->expects($this->any())\n ->method('getAvailableCardTypes')\n ->will($this->returnValue($availableCardTypes));\n\n $method = Mage::getModel('radial_creditcard/method_ccpayment', array('helper' => $helper));\n $this->assertSame(\n 'AE,VI,MC',\n $method->getConfigData('cctypes', null)\n );\n }", "public function getBillingAddress() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->billingAddress;\r\n\t}", "public function testDebtorSaveCityEmpty()\n {\n $aDados = [\n 'name' => 'Carlos Vinicius',\n 'email' => 'cvmm121@gmail.com',\n 'cpf_cnpj' => '1234567890',\n 'birthdate' => '12/01/1994',\n 'phone_number' => '(79) 9 9999-9999',\n 'zipcode' => '99999-999',\n 'address' => 'Rua Teste',\n 'number' => '25',\n 'complement' => 'Conjunto Teste 2',\n 'neighborhood' => 'Bairro Teste 2',\n 'city' => '',\n 'state' => 'SE'\n ];\n\n $this->expectException(InvalidAttributeException::class);\n $oDebtor = Debtor::createFromRequest($aDados);\n }", "public function setOrderAddresses(\n Commerce_OrderModel $order,\n Commerce_AddressModel $shippingAddress,\n Commerce_AddressModel $billingAddress\n )\n {\n CommerceDbHelper::beginStackedTransaction();\n try {\n $result1 = craft()->commerce_customers->saveAddress($shippingAddress);\n\n if (($billingAddress->id && $billingAddress->id == $shippingAddress->id) || $shippingAddress === $billingAddress) {\n $result2 = true;\n } else {\n $result2 = craft()->commerce_customers->saveAddress($billingAddress);\n }\n\n $order->setShippingAddress($shippingAddress);\n $order->setBillingAddress($billingAddress);\n\n if ($result1 && $result2) {\n\n $order->shippingAddressId = $shippingAddress->id;\n $order->billingAddressId = $billingAddress->id;\n\n $this->saveOrder($order);\n CommerceDbHelper::commitStackedTransaction();\n\n return true;\n }\n } catch (\\Exception $e) {\n CommerceDbHelper::rollbackStackedTransaction();\n throw $e;\n }\n\n CommerceDbHelper::rollbackStackedTransaction();\n\n return false;\n }", "public function getBillingAddress(): Address\n {\n if (!isset($this->billingAddress)) {\n throw new LocalizedException(__('Billing address is not defined for instance purchase.'));\n }\n return $this->billingAddress;\n }" ]
[ "0.63627845", "0.63119614", "0.6140343", "0.60929555", "0.6057413", "0.6035734", "0.5957584", "0.589207", "0.5886813", "0.5867346", "0.58502513", "0.5828037", "0.58146036", "0.57928663", "0.5789982", "0.57838774", "0.57737523", "0.5772729", "0.5759779", "0.5738197", "0.5736685", "0.5720802", "0.5719441", "0.56921554", "0.5692054", "0.56758714", "0.56644845", "0.5661359", "0.56502175", "0.5623983", "0.5617955", "0.5594575", "0.5594106", "0.5573416", "0.55716646", "0.55716646", "0.55588484", "0.55432343", "0.5530179", "0.5521439", "0.5508155", "0.55031836", "0.5496118", "0.54933923", "0.54655343", "0.5442818", "0.5435817", "0.54344416", "0.54329044", "0.5373998", "0.5364825", "0.53641117", "0.5364073", "0.534946", "0.53446746", "0.53234595", "0.5317379", "0.53124905", "0.5303253", "0.5294678", "0.5294101", "0.5284183", "0.5277844", "0.5276232", "0.526085", "0.526039", "0.52551097", "0.52530825", "0.5252223", "0.5244866", "0.52397746", "0.52375215", "0.523159", "0.523057", "0.52273905", "0.5220989", "0.52185667", "0.5217047", "0.52035236", "0.5197946", "0.5197868", "0.5189435", "0.51866734", "0.5184715", "0.5184591", "0.51825225", "0.5181241", "0.51798856", "0.5177736", "0.5176231", "0.5166464", "0.5164704", "0.5160907", "0.51558745", "0.5151587", "0.51504683", "0.5147911", "0.5146748", "0.5144564", "0.5135429" ]
0.5208182
78
String representation of success assert.
public function toString() { return 'Default billing and shipping address form is correct.'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString()\n {\n return 'Assert that success message is displayed';\n }", "public function toString()\n {\n return 'Assert that notice message is displayed';\n }", "public function toString()\n {\n return 'Template success create message is present.';\n }", "public function toStringResult()\n {\n $this->assertEquals(\"net::stubbles::lang::exceptions::stubException {\\n message(string): message\\n file(string): \" . __FILE__ . \"\\n line(integer): \" . $this->stubException3->getLine() . \"\\n code(integer): 0\\n stacktrace(string): \" . $this->stubException3->getTraceAsString() . \"\\n}\\n\",\n (string) $this->stubException3\n );\n }", "public function toString()\n {\n return 'Success customer info save message on customer account index page is correct.';\n }", "public function toString()\n {\n return \"has the correct amount, expecting {$this->amountExpected}\";\n }", "function toString() {\n return sprintf(\n \"TestCase %s->%s() failed: %s\\n\",\n\n get_class($this->_failedTest),\n $this->_failedTest->getName(),\n $this->_thrownException\n );\n }", "public function toString()\n {\n return 'Assert that product data from CSV import file and data from product edit page are correct and match.';\n }", "public function toString()\n {\n $ret_val = 'matches expected Array (';\n\n foreach ($this->value as $key => $value) {\n $ret_val .= \"\\n\\t '\" . $key . \" => '\" . $value . \"'\";\n }\n\n $ret_val .= \"\\n]\";\n\n if (!empty($ret_val)) {\n $ret_val .= \"\\n\" . $this->failureMessage;\n }\n\n return $ret_val;\n }", "public function printResults() {\n $assertions = $this->getAssertions();\n $failures = $this->getFailures();\n $errors = $this->getErrors();\n return \"Assertions: \" . $assertions . \", Failures: \" . $failures . \" and \" . $errors . \" errors.\";\n }", "public function toString()\n {\n return 'Rating success save message is present.';\n }", "public function getSuccessMessageText()\r\n {\r\n return $this->scopeConfig->getValue(\r\n self::XML_PATH_SUCCESS_MESSAGE_TEXT,\r\n ScopeInterface::SCOPE_STORE\r\n );\r\n }", "public function toString()\n {\n return 'Success delete message on users page is correct.';\n }", "public function fuPrimaryPuccessAsText()\n {\n return ($this->fu_primary_success == 0) ? \"No\" : \"Yes\";\n }", "public function toString()\n {\n return sprintf('is equal to %s', $this->exporter->export($this->value));\n }", "public function toString()\n {\n return 'Correct error message is displayed.';\n }", "public function toString()\n {\n return 'Currency Symbol success save message is correct.';\n }", "public function __toString()\n {\n $string = '';\n\n foreach ($this->errors as $error) {\n $string .= $error.\"\\n\";\n }\n\n return $string;\n }", "public function get_success_message() {\r\n\t\treturn '';\r\n\t}", "public function __toString() {\n\t\tif (!empty($this->message) and $this->errNum != 0) {\n\t\t\treturn 'Response: ' . $this->errNum . ': ' . $this->message;\n\t\t} else {\n\t\t\treturn 'Response: No Error: 0';\n\t\t}\n\t}", "public function success()\n {\n return $this->type('success');\n }", "public function successMessage() { return $this->successMessage; }", "public function __toString(): string\n {\n return 'matches expected exception \"' . $this->expectedType . '\"';\n }", "public function getSuccess()\n {\n return $this->_get('success');\n }", "public function toString()\n {\n return 'Mapping Locations - Success message is displayed.';\n }", "public function getSuccess(): ?string\n {\n return $this->success;\n }", "public function allSuccess() {\n return $this->successMsg;\n }", "public static function getSuccessMessage(int $code): string\n {\n return sprintf(\n '%s - Code = [%d]'\n , self::$success[$code]\n , $code\n );\n }", "public function __toString()\n {\n return $this->error;\n }", "public function toString()\n {\n $this->assertEquals(\"net::stubbles::reflection::stubReflectionProperty[stubTestProperty1::property] {\\n}\\n\", (string) $this->stubRefProperty);\n }", "public function toString()\n {\n return 'GUI Zreport error';\n }", "public function getSuccess()\n {\n return $this->get('Success');\n }", "public function getSuccess() {\n\t\treturn $this->data[\"success\"];\n\t}", "public function testSuccess()\n {\n $this->_package->success(\"Successful test\");\n $this->assertTrue($this->_result->wasSuccessful());\n }", "public function __toString()\n {\n $transaction_id = $this->transaction ? $this->transaction->id : null;\n $transaction_payment_provider = $this->transaction ? intval($this->transaction->payment_provider) : null;\n $transaction_livemode=$this->transaction?intval($this->transaction->livemode):'-';\n\n $processing_payment_provider = $this->paymentProvider ? $this->paymentProvider->getProvider() : null;\n\n $payment_provider_livemode=$this->paymentProvider?intval($this->paymentProvider->isLivemode()):'-';\n\n $payment_response_errors = $this->paymentResponse ? implode('. ', $this->paymentResponse->errors) : null;\n \n $parent_str= parent::__toString();\n\n return \"Transaction: {$transaction_id},\n Transaction livemode:{$transaction_livemode},\n Transaction payment provider: {$transaction_payment_provider},\n processor payment provider: {$processing_payment_provider}, \n processing payment provider live mode: {$payment_provider_livemode}, \n payment response errors: {$payment_response_errors}, \n Message: {$this->getMessage()} \n ------------\n {$parent_str}\n \";\n }", "public function getSuccess();", "protected function outOK()\n\t{\n\t\treturn $this->out('<ok>ok</ok>');\n\t}", "public static function success(string $msg): string\n {\n $msg = 'Success: ' . $msg;\n $space = self::tabSpaces($msg);\n $out = static::colorize(str_pad(' ', $space), Color::FG_WHITE, Color::AT_BOLD, Color::BG_GREEN) . PHP_EOL;\n $out .= static::colorize(' ' . $msg . ' ', Color::FG_WHITE, Color::AT_BOLD, Color::BG_GREEN) . PHP_EOL;\n $out .= static::colorize(str_pad(' ', $space), Color::FG_WHITE, Color::AT_BOLD, Color::BG_GREEN) . PHP_EOL;\n\n return $out;\n }", "public function __tostring()\n {\n $res = __CLASS__ . \": [{$this->code}]: {$this->message}\";\n $res.= ': ' . $this->_storage->id . '\\n';\n return $res;\n }", "public function getSuccess()\r\n {\r\n return $this->success;\r\n }", "public function __string()\n {\n return $this->_result;\n }", "public function getSuccess()\n {\n return $this->success;\n }", "public function __toString() {\n\t\treturn self::getErrorString( $this->message, $this->code, $this->getFile(), $this->getLine() );\n }", "public function message()\n {\n return $this->validationFailures;\n }", "public function __toString()\n\t{\n\t\treturn $this->displayError();\n\t}", "public function toString()\n {\n return 'Some Poses don\\'t display correct';\n }", "public function as_string() {\n return sprintf('%d %s', $this->code, self::$messages[$this->code]);\n }", "public function getSucessText(): string{\n return \"\\n\\e[33mCreated new migration \".$this->name.\"\\e[0m\\n\";\n }", "public function getSuccess()\n {\n return $this->success;\n }", "public function toString()\n\t{\n\t\treturn \"Order History - Cancel Order - Popup Display: Pass\";\n\t}", "public function __toString() {\n\t\treturn \"A question was asked. This is the question: \" . $this->getQuestionText();\n\t}", "public function asString(): string\n {\n return $this->result;\n }", "public function buildAssertion()\n {\n // check that uid attribute is present\n if (!isset($this->attributes['uid']))\n {\n throw new Exception('user identifier parameter \"uid\" is missing');\n }\n\n $assertion = '';\n\n // Add attribute to assertion\n $k = 0;\n foreach ($this->attributes as $key => $value)\n {\n $assertion .= ( 0 == $k) ? '' : ',';\n if (is_array($value))\n {\n $i = 0;\n $lastElemI = count($value) - 1;\n foreach ($value as $value2)\n {\n $assertion .= ( $i == 0) ? $key . '=' . $value2 : $value2;\n $assertion .= ( $lastElemI != $i) ? '|' : '';\n $i++;\n $k++;\n }\n } else\n {\n $assertion .= $key . '=' . $value;\n $k++;\n }\n }\n // Add assertion identifier\n $assertion .= ( 0 == $k) ? '' : ',';\n $assertion .= $this->attributes['uid'] . '@' . sfConfig::get('app_sft_papi_plugin_as_id', 'example_AS');\n $this->assertion = $assertion;\n// echo '<pre>';\n// print_r($this->attributes);\n// echo $assertion;\n// echo '</pre>';//\n// exit;\n return $this;\n }", "public function __toString() {\n if ($this->code) {\n return \"[{$this->code}] {$this->message}\\n\";\n } else {\n return \"{$this->message}\\n\";\n }\n }", "public function toString() {\n $constraints = [];\n\n $constraints[] = $this->getCanBeNull() ? \"Can be null.\" : \"Can not be null.\";\n $constraints[] = $this->getMandatory() ? \"Is mandatory.\" : \"Is not mandatory.\";\n $constraints[] = $this->getValidator() ? \"Has a validator.\" : \"Does not have a validator.\";\n return join(\" \", $constraints);\n }", "public function toString(): string\n {\n $allowedValues = [];\n\n foreach ($this->allowedValues as $value) {\n $this->allowedValues[] = VarDumper::create($value)->asString();\n }\n\n $expectedAsString = implode(', ', $allowedValues);\n\n return \"is one of $expectedAsString\";\n }", "public function success() {\n return array(\n '#type' => 'markup',\n '#markup' => '<h1>Congratulations</h1><p>You just completed a purchase.</p>',\n );\n }", "public function toString()\n {\n return \"Application new version is correct.\";\n }", "public function testSuccessIsTrue(): void\n {\n $this->assertTrue($this->get_reflection_property_value('success'));\n }", "public function __toString()\n {\n $output = array();\n foreach ($this->_data as $status) {\n $output[] = '\"' . $status->getCode() . '\" -- \"' . $status->getMessage() . '\"';\n }\n return join(\"<br />\\n\", $output);\n }", "public function __toString()\n {\n $str = $this->getType().': ';\n\n if ($this->code != 0) {\n $str .= $this->code.': ';\n }\n\n return $str.$this->message;\n }", "public function toString()\n {\n return \"is equivalent to the SQL query \". \\PHPUnit_Util_Type::toString($this->sql);\n }", "public function __toString()\n\t{\n\t\t$str = '' ;\n\t\tif ($this->code != 0) {\n\t\t\t$str .= $this->code . ': ';\n\t\t}\n\t\treturn $str . $this->message;\n\t}", "public static function SUCCESS()\n {\n return self::getInstance(__METHOD__);\n }", "function toString() {\n return $this->getClassName().'('.$this->code.') {\"'.$this->message.'\"}';\n }", "public function __toString() {\n if ($this->code) {\n return \"{$this->code} - {$this->message}\";\n }\n return \"{$this->message}\";\n }", "public function __toString(){\r\n\t\t$res = array();\r\n\t\tif (!empty($this->_errorMessage)){\r\n\t\t\t$res['errorMessage'] = $this->_errorMessage;\r\n\t\t}\r\n\t\tif (!empty($this->_move)){\r\n\t\t\t$res['move'] = $this->_move;\r\n\t\t}\r\n\t\treturn json_encode($res);\r\n\t}", "public function toString() {\n $s= $this->getClassName().'@('.$this->hashCode().\"){\\n\";\n $s.= ' [ name ] '.$this->name.\"\\n\";\n $s.= ' [ value ] '.$this->value.\"\\n\";\n $s.= ' [ mustUnderstand ] '.xp::stringOf($this->mustUnderstand).\"\\n\";\n $s.= ' [ encodingStyle ] '.$this->encodingStyle.\"\\n\";\n $s.= ' [ actor ] '.$this->actor.\"\\n\";\n return $s.'}';\n }", "public function getErrorsAsString(): string\n {\n $errors = $this->getErrors();\n if (0 === $errors->count()) {\n return '';\n }\n $message = 'found ' . $errors->count() . ' errors validating '\n . get_class($this->dataObject);\n foreach ($errors as $error) {\n $message .= \"\\n\\n\" . $error->getPropertyPath() . ': ' . $error->getMessage();\n }\n\n return $message;\n }", "public function __toString()\n {\n return (string) $this->exportTo(SanitasiPeer::DEFAULT_STRING_FORMAT);\n }", "public function testSendAlertSuccess()\n {\n $this->exec('alert-upcoming-expirations');\n $this->assertOutputContains('Expiring memberships found:');\n $this->assertOutputContains('User with membership expiring tomorrow');\n $this->assertOutputContains('User with membership auto-renewing tomorrow');\n $this->assertOutputContains('Sent');\n $this->assertOutputNotContains('Exception');\n $this->assertOutputNotContains('Member User');\n $this->assertErrorEmpty();\n }", "public function strRepresentation() {\n\t\t$retstr = \"\";\n\t\t$retstr .= \"Card \".$this->name.\" - \".$this->id.\" is a(n) \".$this->getTypeAsStr().\" card with a cost of \".$this->cost.\".<br />It boosts the following stats:<br />\";\n\t\t$retstr .= \"Body: \";\n\t\t$retstr .= print_r($this->body, true);\n\t\t$retstr .= \"<br />Mind: \";\n\t\t$retstr .= print_r($this->mind, true);\n\t\t$retstr .= \"<br />Soul: \";\n\t\t$retstr .= print_r($this->soul, true);\n\t\t$retstr .= \"<br />And gives a vitality boost of \".$this->vit;\n\t\treturn $retstr;\n\t}", "public function __toString() {\n\t\treturn $this->debug();\n\t}", "function __toString(){\n\t\tif($this->ERROR!==false) return $this->ERROR;\n\t\telse return $this->HTML;\n\t}", "function testMessage($parameters) {\n if ($this->test($parameters)) {\n return \"Expectation of \" . count($this->expected) .\n \" arguments of [\" . $this->renderArguments($this->expected) .\n \"] is correct\";\n } else {\n return $this->describeDifference($this->expected, $parameters);\n }\n }", "public function assertSuccessResult($data) {\n $this->assertTrue(isset($data->success));\n $this->assertTrue($data->success);\n }", "public function __toString()\n {\n return __CLASS__.\": [{$this->code}]: {$this->message}\\n\";\n }", "public function getErrorMessage(): string\n {\n if ($this->getSuccess()) {\n return '';\n }\n\n return (string) $this->errorMessage;\n }", "public function assertions()\n {\n return $this->assertions;\n }", "public function assertions()\n {\n return $this->assertions;\n }", "public function __toString() {\n\n return $this->result->body;\n }", "public function getFailureMessage()\n {\n\t\tif(null !== $this->_failed_index)\n\t\t\treturn $this->_items[$this->_failed_index]->getFailureMessage();\n\t\treturn '';\n }", "public function getResultMessage()\n\t{\n\t\t// TODO: Implement getResultMessage() method.\n\t\t$message = array();\n\n\t\t$message[] = '';\n\t\t$message[] = 'Wordpress has been installed succesfully.';\n\t\t$message[] = '';\n\t\t$message[] = 'Credentials:';\n\t\t$message[] = 'Admin user : ' . $this->config->get('admin_user');\n\t\t$message[] = 'Admin password : ' . $this->config->get('admin_password');\n\t\t$message[] = '';\n\n\t\treturn $message;\n\t}", "public function success()\n {\n return $this->success;\n }", "public function __toString()\n {\n return __CLASS__.\": [{$this->code}]: {$this->message}\".\\PHP_EOL;\n }", "public function getExpected()\r\n {\r\n return $this->expected;\r\n }", "public function printSuccessMessage()\n {\n printf('Successfully checked %d lines in %d files :)'. PHP_EOL, $this->lines, $this->files);\n }", "private function getOutput() : string\n {\n if ($this->response === null) {\n throw new LogicException('Must call call() before assertions');\n }\n\n rewind($this->response->getStream());\n\n return stream_get_contents($this->response->getStream());\n }", "public function getResponseStatusMessage()\r\n\t{\r\n\t\treturn $this->statusMessage;\r\n\t}", "public function __toString() {\n return parent::__toString() . self::EOL . 'Registered: ' . (self::$registered ? 'Yes' : 'No') . self::EOL .\n 'Previous exception recursion limit: ' . ($this->config->prevExceptionDepth) . self::EOL .\n 'Last reported exception: ' . (self::$lastReported ? self::$lastReported->__toString() : '[none]');\n }", "public function __toString()\n {\n \tif ($this->result) {\n \t\treturn $this->result;\n \t}\n }", "public function getMessage()\n {\n return isset($this->data->failure_msg) ? $this->data->failure_msg : '';\n }", "public function getStandardOutputMessage()\n {\n return $this->behatProcess->getOutput();\n }", "abstract protected function getSuccessMessage(string $environment): string;", "public function __toString() {\r\n $mensaje = \"CLASE PEDIDO\";\r\n return $mensaje;\r\n }", "public function __toString()\n {\n $headers = $this->headers();\n\n $buffer = [];\n foreach ($headers as $k => $v) {\n $buffer[] = $k . ': ' . $v;\n }\n\n return implode(\"\\t\", $buffer);\n }", "protected function _getAddSuccessMessage($record)\n {\n return __('The mapping set \"%s\" was successfully added!', $record->name);\n }", "public function __toString() {\n return sprintf('HTTP/1.1 %d %s', $this->getStatus(), $this->getDescription());\n }", "public function __toString()\n {\n $lines = array();\n foreach ($this->transactions as $entry) {\n $response = isset($entry['response']) ? $entry['response'] : '';\n $lines[] = '> ' . trim($entry['request']) . \"\\n\\n< \" . trim($response) . \"\\n\";\n }\n\n return implode(\"\\n\", $lines);\n }", "function getSuccessReason() {\n\t\treturn __( \"You don't have a user account sporting the admin username, great.\", \"defender-security\" );\n\t}", "function asString () {\n \t\treturn $this->printableString();\n \t}" ]
[ "0.83982736", "0.71729314", "0.70929617", "0.6982421", "0.68664074", "0.68524736", "0.67158294", "0.6652032", "0.6570098", "0.6547689", "0.649706", "0.6493389", "0.64832616", "0.64150923", "0.6392716", "0.6379779", "0.63034", "0.61766493", "0.614834", "0.61343694", "0.61134505", "0.6033325", "0.60276586", "0.59725463", "0.59433395", "0.5897253", "0.58901525", "0.5880966", "0.58771986", "0.5823423", "0.5819417", "0.58121926", "0.58117986", "0.5806088", "0.57842755", "0.5769108", "0.5766139", "0.57514775", "0.5729899", "0.57096756", "0.56959647", "0.5681576", "0.5676252", "0.56085396", "0.56070924", "0.5600197", "0.55841875", "0.5578749", "0.55745393", "0.5560108", "0.5552417", "0.5550848", "0.5548639", "0.5546554", "0.5532116", "0.5527095", "0.5523839", "0.55067754", "0.5506175", "0.5505045", "0.5502381", "0.5489796", "0.5466582", "0.54646164", "0.54575986", "0.5450949", "0.5437293", "0.54360163", "0.54314375", "0.54277766", "0.54156065", "0.5396577", "0.5377766", "0.53715295", "0.53688556", "0.5366875", "0.53647023", "0.53500295", "0.53482395", "0.53482395", "0.53418267", "0.53417736", "0.53337336", "0.5332023", "0.5332015", "0.53284335", "0.53279763", "0.5323557", "0.5321676", "0.5319358", "0.53180337", "0.5317975", "0.530718", "0.52962357", "0.5292088", "0.5290778", "0.52873397", "0.5286106", "0.5283636", "0.5283273", "0.52804685" ]
0.0
-1
public $permissions = ['company']; Display a listing of the resource.
public function index(Request $request) { $company = new Company; $size = $request->input('size') ?: config('size.models.'.$company->getTable(), config('size.common')); //view's variant $this->_size = $size; $this->_filters = $this->_getFilters($request); $this->_queries = $this->_getQueries($request); return $this->view('property.company.list'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n //\n $company = Company::where('representative_id',Auth::user()->id)->get();\n return CompanyResource::collection($company);\n }", "public function indexCompany()\n {\n return TimelineResource::collection(\n $this->user->company->timeline()\n ->with(['pictures', 'videos', 'geo', 'links'])\n ->paginate(request()->get('per_page') ?? 15)->appends(request()->all())\n );\n }", "public function index()\n {\n $query = Company::query();\n\n $parameters = $parameters = request()->query->all();\n\n $this->sortBy(Company::class, $query, $parameters);\n\n $this->filterBy(Company::class, $query, $parameters);\n \n return CompanyResource::collection($query->paginate(10));\n }", "public function index()\n {\n if (! Gate::allows('company_access')) {\n return abort(401);\n }\n\n\n if (request('show_deleted') == 1) {\n if (! Gate::allows('company_delete')) {\n return abort(401);\n }\n $companies = Company::onlyTrashed()->get();\n } else {\n $companies = Company::all();\n }\n\n return view('admin.companies.index', compact('companies'));\n }", "public function index()\n {\n return CompanyResource::collection(Company::orderBy('id','desc')->paginate(10));\n }", "public function show(Company $company)\n {\n\n }", "public function index()\n {\n $permissions = Permission::get();\n\n return $this->respond([\n 'items' => $this->transformCollection($permissions, new PermissionTransformer()),\n ]);\n }", "public function index ()\n {\n $company = Company::orderBy('created_at', 'desc')->paginate(5);\n return CompanyResource::collection($company);\n }", "public function show(Company $company)\n {\n //\n }", "public function show(Company $company)\n {\n //\n }", "public function show(Company $company)\n {\n //\n }", "public function show(Company $company)\n {\n //\n }", "public function show(Company $company)\n {\n //\n }", "public function show(Company $company)\n {\n //\n }", "public function show(Company $company)\n {\n //\n }", "public function index()\n {\n return Role::with('permissions')\n ->client()\n ->get();\n }", "function list()\n {\n if($this->checkAccess('permission.list') == 1)\n {\n $this->loadAccessRestricted();\n }\n else\n { \n \n $data['permissionRecords'] = $this->permission_model->permissionListing();\n \n $this->global['pageTitle'] = 'School : Permission Listing';\n \n $this->loadViews(\"permission/list\", $this->global, $data, NULL);\n }\n }", "public function index()\n {\n return $this->respondWithCollection(\n $this->permissions->all(),\n new PermissionTransformer\n );\n }", "public function index()\n {\n if (! Gate::allows('Admin_Manage')) {\n return abort(401);\n }\n\n $company = Company::all();\n\n return view('system.company.index', compact('company'));\n }", "public function index()\n {\n $permissions = Permission::paginate(20);\n return view('backend.permissions', ['permissions' => $permissions]);\n }", "public function companylist() {\r\n $companies = $this->model->getCompanies();\r\n return $this->view('company/companylist', $companies);\r\n }", "public function index()\n {\n return $permissions = $this->permission->all();\n }", "public function index()\n {\n $order = $this->get->get('order', 'ASC');\n $by = $this->get->get('by', 'name');\n $companies = $this->company->orderBy($by, $order)->paginate($this->totalPage);\n return view('admin.company.index', compact('companies'));\n }", "public function index()\n\t\t{\n\n\t\t\t$businessUnit = $this->service->getAll();\n\t\t\t$permissions = [];\n\n\t\t\treturn $this->respond([\n\t\t\t\t\t\t\t\t\t 'data' => $this->dataTransformer->transformCollection($businessUnit, $permissions),\n\t\t\t\t\t\t\t\t ]);\n\t\t}", "public function index()\n {\n return Company::all();\n }", "public function index()\n {\n return Company::all();\n }", "public function list() {\n \n $companies = Companies::all();\n $companies->load('hasUserCompany'); \n // return response()->json($companies);\n\n return response()->json(['companies' => $companies]);\n }", "public function index()\n {\n return response()->json(new PermissionsCollection(Permission::all()), 200);\n }", "public function show()\n {\n return view('admin.company.representative.list');\n }", "public function index()\n {\n $permissions = $this->permission->whereClientId(Auth::user()->client_id)->get();\n\n return view('humanresources.permissions.index', compact('permissions'));\n }", "public function action_index()\n\t{\n\t\tif ( ! Auth::instance()->logged_in('admin'))\n\t\t\tthrow new HTTP_Exception_403();\n\t\t\n\t\t// show admin page\n\t\t$companies = ORM::factory('company')->find_all();\n\t\t$this->template->content = View::factory('admin/admin')->bind('companies', $companies);\n\t\t\n\t}", "public function showListCompanyPage()\n {\n $company = new Company();\n if ($this->checkSession()) {\n $data[] = array();\n $data['navbar'] = view('includes.navbar');\n\n $data['listCompany'] = $company->showListCompany(Session::get('univID'), \"\", \"asc\", \"\", \"\");\n $data['listCompanyIndustry'] = $company->showIndustry(Session::get('univID'));\n // $data['totalCompany'] = $company->GetTotalCompany();\n return view('pages.companylist')->with('data', $data);\n }\n return redirect(\"/login\");\n }", "public function index()\n {\n return view('laralum_permissions::index', ['permissions' => Permission::paginate(50)]);\n }", "public function index()\n {\n \n return Inertia::render('Company/Index',[\n 'companies' => Auth::user()->companies,\n \n ]);\n }", "public function index()\n {\n $companies = $this->userRepository->getCompanies(Auth::id());\n\n return view('admin.company.index', ['companies' => $companies]);\n }", "public function index()\n {\n $permissions = Permission::all();\n\n return $this->respondWithJson($permissions);\n }", "public function show(Companies $companies)\n {\n //\n }", "public function index()\n {\n $roles = Role::whereIn('id',[1,2])->get();\n $permissions = Permission::all();\n return view('backend.permissions',compact('roles','permissions'));\n }", "public function indexAction()\n {\n $realtyCompanies = $this->getRealtyCompanyRepository()\n ->findAllRealtyCompany()->getQuery()->getResult();\n\n return [\n 'realtyCompanies' => $realtyCompanies,\n ];\n }", "public function index()\n {\n $company = $this->repository->all();\n return $company;\n }", "public function index()\n {\n return Company::paginate(10);\n }", "public function actionIndex()\n\t{\t\t\n\t$model=new Company('search');\n\t\t$model->unsetAttributes(); // clear any default values\n\t\tif(isset($_GET['Company']))\n\t\t\t$model->attributes=$_GET['Company'];\n\n\t\t$this->render('managecompany',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function index()\n {\n\t if(Auth::user()->role_id == Role::SUPER_ADMIN) {\n\t\t $companies = Company::all();\n\t }\n \telse {\n \t\t$companies = Company::where(\"user_id\", Auth::user()->id)->get();\n\t }\n\n return view(\"companies.index\", array(\"companies\" => $companies));\n }", "public function index()\n {\n $permissions = Permission::all();\n return view('admin.permission.show',compact('permissions'));\n }", "public function actionIndex()\n {\n $searchModel = new PersoncompanySearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\t\tActivityLog::logUserActivity(Yii::$app->user->id,Yii::$app->params['audit_log_screen_name']['PersonCompany'],Yii::$app->params['audit_log_action']['ACCESS'],'Accessed person company listing page',\"\");\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index() {\n $permissions = Permission::orderBy('id','desc')->paginate(10); //Get all permissions\n\n return view('permissions.index')->with('permissions', $permissions);\n }", "public function index()\n {\n $companies = Auth::user()->companies;\n $hasCompany = Auth::user()->companies()->exists();\n return view('account.company.index', [\n 'companies' => $companies,\n 'hasCompany' => $hasCompany,\n ]);\n }", "public function index()\n {\n $data['MainMenus'] = MenuSystem::where('menu_system_part', 'Company')->with('MainMenu')->first();\n $data['Menus'] = MenuSystem::ActiveMenu()->get();\n $data['CustomerType'] = CustomerType::where('customer_type_status', '1')->get();\n $data['SaleArea'] = SaleArea::where('sale_team_sub_status', '1')->get();\n $data['Provinces'] = Provinces::where('provinces_status', 1)->get();\n $data['TypeDocument'] = TypeDocument::where('type_doc_customer_status', '1')->get();\n $data['ContactInfoes'] = ContactInfo::where('customer_status', '1')->get();\n $data['Members'] = Member::where('member_status', '1')->get();\n\n if (Helper::CheckPermissionMenu('Company', '1')) {\n return view('admin.Company.company', $data);\n } else {\n return redirect('admin/');\n }\n }", "public function index()\n {\n //1\n $companies = Company::all();\n return view('admin.companies.index',compact('companies'));\n }", "public function index()\n {\n return view('back_end.permissions');\n }", "public function index()\n {\n $companys = Company::all();\n\n return view('company.company', compact('companys'));\n }", "public function show(Company $company)\n {\n\t $company = $company->find($company->id);\n\n\t if(Auth::user()->role_id != 1 && $company->user_id !== Auth::user()->id) {\n\t\t return $this->accessDenied();\n\t }\n\n\t $task_statuses = TaskStatus::all();\n\t $comments = $company->comments()->orderBy('updated_at','created_at')->get();\n\t $files = $company->files()->orderBy('updated_at','created_at')->get();\n\n\t $data = array(\n\t\t 'company' => $company,\n\t\t 'comments' => $comments,\n\t\t 'files' => $files,\n\t\t 'commentable_type' => \"App\\Company\",\n\t\t 'commentable_id' => $company->id,\n\t\t 'uploadable_type' => \"App\\Company\",\n\t\t 'uploadable_id' => $company->id,\n\t\t 'task_statuses' => $task_statuses\n\t );\n\n return view(\"companies.show\", $data);\n }", "public function index()\n { \n $company = Company::paginate(10);\n return view('company.viewcompany',compact('company'));\n }", "public function index()\n {\n \n return $this->repository->findWithOwnerAndMember(\\Authorizer::getResourceOwnerId());\n }", "public function index()\n {\n $user = Auth::user();\n $created_by = ($user->created_by == \"sys\")? $user->email : $user->created_by;\n $results = Company::where('created_by',$created_by)->first(); \n return view('backend.pages.company.index', compact('results'));\n }", "public function index()\n {\n $roles = Role::all();\n return view('permissions.index', compact('roles'));\n }", "public function index()\n {\n if (Auth::user()->ability('superadministrator', 'read-permissions')){\n return view('permission.read',[\n 'pageheader'=>'权限',\n 'pagedescription'=>'列表',\n 'permissions'=>Permission::all(),\n 'enableUpdate'=>Auth::user()->hasPermission('update-permissions'),\n 'enableDelete'=>Auth::user()->hasPermission('delete-permissions'),\n ]);\n }\n return abort(403,config('yyxt.permission_deny'));\n }", "public function indexAction()\n {\n $this->get('Services')->setMenuItem('Permission');\n $em = $this->getDoctrine()->getManager();\n\n $permissions = $em->getRepository('WbcAdministratorBundle:Permission')->findAll();\n\n return $this->render('permission/index.html.twig', array(\n 'permissions' => $permissions,\n ));\n }", "public function index()\n {\n //Affiche tout les objects company avec une pagination de 10 objet par page\n //Show all of the company objects with a pagination of 10 objects per page\n $list = DB::table('companies')->paginate(10);\n return view('companies.index')->with('list', $list);\n }", "public function index()\n {\n if (Gate::denies('permission.index')) {\n abort(403);\n }\n\n $this->template = 'permission.index';\n\n $roles = $this->roleService->getRoles();\n $permissions = $this->permissionService->getAll();\n \n $this->addTemplateVariable('roles', $roles);\n $this->addTemplateVariable('permissions', $permissions);\n\n return $this->render();\n }", "public function index()\n {\n $companies = Company::orderBy('created_at', 'desc')->paginate(10);\n return view('Admin.pages.company.index')->with('companies', $companies);\n }", "public function index(Company $company)\n {\n //\n }", "public function index(Company $company)\n {\n //\n }", "public function index()\n {\n // if (! Gate::allows('users_manage')) {\n // return abort(401);\n // }\n\n $permissions = Permission::all()->groupBy(function($permission){\n return explode('.', $permission->name)[0]??null;\n });\n $roles = Role::all();\n //dd($permissions);\n return view('admin.permissions.index', compact('permissions', 'roles'));\n }", "public function index()\n {\n $companies = Company::orderBy('id','desc')->paginate(10);\n return view('companies',['companies' => $companies]);\n }", "function index() {\n if($this->request->isApiCall()) {\n $this->serveData(Companies::findByIds($this->logged_user->visibleCompanyIds()), 'companies');\n } else {\n $page = (integer) $this->request->get('page');\n if($page < 1) {\n $page = 1;\n } // if\n \n list($companies, $pagination) = Companies::paginateActive($this->logged_user, $page, 30);\n \n $this->smarty->assign(array(\n 'companies' => $companies,\n 'pagination' => $pagination,\n ));\n } // if\n }", "public function index()\n {\n $company = Company::latest();\n\n if (request('search')) {\n $company->where('name', 'like', '%' . request('search') . '%')\n ->orwhere('email', 'like', '%' . request('search') . '%')\n ->orwhere('website', 'like', '%' . request('search') . '%');\n }\n\n return view('dashboard.company', [\n \"title\" => \"Company\",\n \"active\" => \"company\",\n \"company\" => $company->paginate(5)\n ]);\n }", "public function index()\n {\n return view(\"role_permission.permissionlist\");\n }", "public function index()\n {\n return view('company');\n }", "public function index() {\n\t\t// Entrust::hasRole('role-name');\n\t\t// Entrust::can('permission-name');\n\t\tif(!(Entrust::hasRole(['support', 'admin']) || Entrust::can('permission.view'))) return redirect()->route('home');\n\n\t\t$permission = $this->getRequest('Permission');\n\n\t\t// using an implementation of the Permission Repository Interface\n\t\t$permissions = $this->permissionRepository->paginate($permission);\n\n\t\t// Using the view(..) helper function\n\t\treturn view('pages.permission.index', compact('permission', 'permissions'));\n\t}", "public function index()\n {\n $permissions = Permission::with('roles','users')->orderBy('name')->get();\n\n return $permissions;\n }", "public function index()\n {\n if (! Gate::allows('documents_manage')) {\n return abort(500);\n }\n\n $companies = Company::all();\n\n return view('admin.companies.index', compact('companies'));\n }", "public function index()\n {\n $data['tree'] = $this->repository->getTreeData();\n $data['select'] = $this->repository->getSelectList();\n return $this->response->withData($data);\n $this->repository->pushCriteria(app('Prettus\\Repository\\Criteria\\RequestCriteria'));\n $permissions = $this->repository->all();\n if (request()->wantsJson())\n {\n return response()->json([\n 'data' => $permissions,\n ]);\n }\n\n return view('permissions.index', compact('permissions'));\n }", "function index() {\n\n // Phone people\n if($this->request->isPhone()) {\n $companies = Companies::findActive($this->logged_user);\n $this->response->assign(array(\n 'companies' => $companies,\n 'archived_companies_url' => Router::assemble('people_archive'),\n 'visible_user_ids' => $this->logged_user->visibleUserIds()\n ));\n\n // Tablet people\n } elseif($this->request->isTablet()) {\n throw new NotImplementedError(__METHOD__);\n\n // API people\n } elseif($this->request->isApiCall()) {\n $this->response->respondWithData(Companies::findActive($this->logged_user), array(\n 'as' => 'companies', \n ));\n \n // Printer\n } else if ($this->request->isPrintCall()) {\n $group_by = strtolower($this->request->get('group_by', null));\n $filter_by = $this->request->get('filter_by', null);\n \n // page title\n $filter_by_status = array_var($filter_by, 'is_archived', null); \n if ($filter_by_status === '0') {\n $page_title = lang('Active Companies');\n } else if ($filter_by_status === '1') {\n $page_title = lang('Archived Companies');\n } else {\n $page_title = lang('All Companies');\n } // if\n\n // find tasks\n $companies = Companies::findForPrint($this->logged_user, $filter_by);\n \n $this->smarty->assignByRef('companies', $companies);\n \n $this->response->assign(array(\n 'page_title' => $page_title,\n )); \n \n // Regular people\n } else {\n $this->wireframe->showPrintButton(Router::assemble('people_printable'));\n $this->wireframe->list_mode->enable();\n\n $companies_map = Companies::findForObjectsList($this->logged_user);\n $users_map = Users::findForObjectsList($this->logged_user);\n \n $this->response->assign(array(\n 'can_manage_people' => ($this->logged_user->isPeopleManager() || $this->logged_user->isAdministrator()),\n 'users' => $users_map,\n 'companies_map' => $companies_map,\n 'active_user' => isset($this->active_user) && $this->active_user instanceof User ? $this->active_user : Users::getUserInstance(),\n 'active_company' => isset($this->active_company) && $this->active_company instanceof Company ? $this->active_company : new Company()\n ));\n \n // mass manager\n if ($this->logged_user->isPeopleManager() || $this->logged_user->isAdministrator()) {\n \t$mass_manager = new MassManager($this->logged_user, Users::getUserInstance());\n \t$this->response->assign('mass_manager', $mass_manager->describe($this->logged_user));\n } // if\n \n } // if\n }", "public function actionIndex()\n {\n \t// $company=Company::find()->where(['IsDelete'=>1])->all();\n $searchModel = new CompanySearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n // 'company' => $company,\n ]);\n }", "public function index()\n {\n $companies = Company::paginate(10);\n return $this->success(($companies), __('Companies'));\n }", "public function index()\n {\n //\n // $permissions = Permissions::orderBy('id')->get();\n\n $permissions = DB::table('permissions')->select('id','name', 'slug')->orderBy('id')->get();\n\n return view('admin.permission.indexP',compact('permissions'));\n }", "public function index()\n {\n $portfoliotype = Portfoliotype::where('company_id', Auth::user()->company_id)->get();\n return view('admin.portftype.portfoliotype', compact('portfoliotype'));\n }", "public function index()\n {\n $permissions = !empty(request()->all()) ? Permission::filter()->get() : Permission::all();\n $permissions = new PermissionCollection($permissions);\n\n return $this->sendResponse(trans('response.success_permission_index'), $permissions);\n }", "public function getIndex(Request $request) {\n if (($return = UserRoles::hasAccess('demon', $request)) !== true) {\n return redirect()->action($return);\n }\n /* end permission code */\n $results = $this->getCompanyListPaging($request);\n $total_page = Company::getCompanyCount();\n $table_header = array('Company Name', 'Email', 'Domain', 'Plan', 'Validity', 'Action');\n $return = view('company.index', ['count' => $total_page, 'results' => $results, 'tbl_header' => $table_header]);\n return $return;\n }", "public function index()\n {\n return view('company.index',[\n 'companies' => Company::orderBy('created_at', 'desc')->paginate(10)\n ]);\n }", "public function index(){\n return Responser::ok('Projects available',Auth::user()->companies->reduce(function($carry,$company){\n $company->projects->each(function($project) use(&$carry){\n $project->load('company');\n $carry[] = $project;\n });\n\n return $carry;\n },[]));\n }", "public function index()\n {\n $search = request()->query('search');\n if ($search) {\n $company = Company::where('name', 'LIKE', \"%{$search}%\")->simplePaginate(10);\n } else {\n $company = Company::simplePaginate(10);\n }\n\n if (Company::onlyTrashed()->get()->count() > 0) {\n $trashed_button = true;\n }\n\n return view('companies.index')\n ->with('companies', $company)\n ->with('title', 'Agencies')\n ->with('trashed_button', $trashed_button ?? false);\n }", "public function index()\n {\n \n $companies = Company::latest()->paginate(10);\n return view('company.index',compact('companies'))\n ->with('i', (request()->input('page', 1) - 1) * 10);\n }", "public function index()\n\t{\n\n\t\t$query = Permission::query();\n\n\t\tif(Input::has('search') && Input::has('keyword')) {\n\t\t\t$query->where(Input::get('search'), 'LIKE', '%'.Input::get('keyword').'%');\n\t\t}\n\n\t\t$permissions = $query->orderBy('name','asc')->orderBy('created_at','asc')->paginate(Config::get('constants.common.paginate'));\n\t\treturn view(\"Admin::permissionindex\", ['pagetitle'=>__('Admin::permission.permission'), 'pagedesc'=>__('Admin::base.list'), 'permissions'=> $permissions]);\n\n\t}", "public function index()\n\t{\n $companies = $this->ModelCompany->getCompanies();\n\t\t$this->load->view('admin', array('companies' => $companies));\n\t}", "public function index()\n {\n $permissions = Permission::paginate();\n return view('privilegios.index', compact('permissions'));\n }", "public function index()\n {\n return view('admin.companies.index', [\n 'companies' => Company::paginate(10)\n ]);\n }", "public function index()\n {\n $roles = Role::all();\n //dd($role->permissions()->get());\n\t\t\n return view('admin.permissions.index', [\n 'roles' => $roles,\n 'roles_count' => count($roles),\n ]);\n }", "public function index()\n {\n $permissionsList = Permission::all();\n return view('UserCenter.Permissions.index', compact('permissionsList'));\n }", "public function index()\n {\n $companies = WlaCompany::get();\n return view('admin.companies.index', [\n 'companies' => $companies\n ]);\n }", "public function index()\n {\n $companies = Company::orderBy('name', 'asc')->paginate(10);\n return view('company.index')->with('companies', $companies);\n }", "public function index()\n {\n if (Auth::user()->can('Read-Company')) \n {\n $company=Company::orderBy('created_at','desc')->get();\n $setModal=0;\n $companyData=0;\n return view('Company.index',compact('company','setModal','companyData'));\n }\n else{\n abort(500);\n } //\n }", "public function actionIndex()\n {\n $searchModel = new CompanySearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function actionIndex()\n {\n $searchModel = new CompanySearch();\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 $company = Company::paginate();\n // dd($company);\n\n return view('company.index', compact('company'));\n }", "public function index()\n {\n $permissions = Permission::all();\n return view('permissions.index_permission', compact('permissions'));\n }", "function showCompany() {\n\t\t\t\t\t$company = Partner::find_by_name(params(0));\n\n\t\t\t\t\t$editForm = new h2o('views/editCompany.html');\n\t\t\t\t\techo $editForm->render(compact('company'));\n\t\t\t\t}", "public function index()\n {\n if(Auth::check() && Auth::user()->hasPermission('permissions.show')) {\n $permissions = Permission::all();\n return response()->json($permissions, 200);\n }\n\n return response(null, 401);\n }", "public function index(Request $request)\n {\n if (\\Auth::user()->isAdmin()) {\n if ($request->has(\"all\") && !!$request->input(\"all\")) {\n return response(Company::all());\n } else {\n return response(Company::paginate(10));\n }\n } else {\n return response(\\Auth::user()->companies()->paginate(10));\n }\n }", "public function index()\n {\n // return $companies = Company::paginate(10);\n $companies = Company::orderBy('created_at', request('sorted', 'ASC'))\n ->paginate(10);\n return view('companies.index', compact('companies'));\n }" ]
[ "0.75053924", "0.71464926", "0.710394", "0.7087206", "0.70596015", "0.6979766", "0.69608223", "0.6940064", "0.6915239", "0.6915239", "0.6915239", "0.6915239", "0.6915239", "0.6915239", "0.6915239", "0.68850553", "0.68845475", "0.6861535", "0.6835331", "0.6819218", "0.68146956", "0.6797819", "0.67843646", "0.67454046", "0.67397505", "0.67397505", "0.67202526", "0.66993564", "0.6693103", "0.66658145", "0.665047", "0.66502047", "0.6617464", "0.66072047", "0.66025615", "0.6561796", "0.65559626", "0.6551748", "0.6548597", "0.65454036", "0.65376765", "0.65223396", "0.65079784", "0.6503826", "0.6481913", "0.6480411", "0.6467245", "0.64665174", "0.6465962", "0.6450987", "0.64407945", "0.6437766", "0.6434807", "0.64181095", "0.64180875", "0.640832", "0.64036244", "0.6401272", "0.63960123", "0.6393997", "0.6373667", "0.63700765", "0.63700765", "0.63515246", "0.6350208", "0.634728", "0.63437694", "0.6341519", "0.63391846", "0.6338786", "0.633143", "0.632764", "0.6326096", "0.63211995", "0.6318028", "0.6312814", "0.6297543", "0.62915844", "0.6291569", "0.6287501", "0.6286329", "0.6281445", "0.6276225", "0.6272297", "0.6270207", "0.62687314", "0.62642014", "0.6263502", "0.625712", "0.6250317", "0.62462735", "0.6245014", "0.62420666", "0.6240432", "0.6240432", "0.62375766", "0.62330997", "0.62248147", "0.62224597", "0.6222362", "0.6217392" ]
0.0
-1
Observations: Category = Album
function index(){ //Alert msg. about insert process. if($_GET[success]) $this->view->assign('success', "El Album ha sido creado correctamente." ); if($_GET[alert]) $this->view->assign('alert', "Hubo un error al crear el Album, porfavor intente nuevamente."); if($_GET[exists]) $this->view->assign('alert', "Esta categoria ya existe en la base de datos, favor vreifique esta información."); $this->view->assign('stylesheets', array($this->helpers->load_css('admin'))); $this->view->assign('javascripts', array($this->helpers->load_javascript())); $this->view->assign('title','Agregar Album'); $this->view->assign('helper',$this->helpers); //Display dinamic alert if($_GET[success]) $this->view->display('success'); if($_GET[alert]) $this->view->display('alert'); if($_GET[exists]) $this->view->display('alert'); $this->view->display('header'); $this->view->display('menu'); $this->view->display('addCategoryView'); $this->view->display('footer'); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAlbum(): Album;", "public function findCategories();", "public function testAlbumBelongtoCategory()\n {\n $this->assertInstanceOf(Category::class, $this->album->category);\n }", "public function getCategory() {}", "public function getCategory();", "public function getCategory();", "public function getType() {\r\n return 'album';\r\n }", "public function getStoriesByCategory($category_name){\n\n\n }", "public function category()\n\t{\n\t\treturn $this->belongsTo('SongCategory','category');\n\t}", "public function getCategories();", "public function getCategories();", "public function getCategory(): string;", "public function testCategoryMap()\n {\n $this->assertEquals(Record::mapCategory('Labor'), 'labor');\n $this->assertEquals(Record::mapCategory('工具器具備品'), 'tools_equipment');\n $this->assertEquals(Record::mapCategory('広告宣伝費'), 'promotion');\n $this->assertEquals(Record::mapCategory('販売キャンペーン'), 'promotion');\n $this->assertEquals(Record::mapCategory('SEO'), 'promotion');\n $this->assertEquals(Record::mapCategory('SEO', true), 'seo');\n $this->assertEquals(Record::mapCategory('地代家賃'), 'rent');\n $this->assertEquals(Record::mapCategory('packing & delivery expenses'), 'delivery');\n $this->assertEquals(Record::mapCategory('Revenue'), 'revenue');\n $this->assertEquals(Record::mapCategory('収益'), 'revenue');\n $this->assertEquals(Record::mapCategory('水道光熱費'), 'utility');\n $this->assertEquals(Record::mapCategory('法定福利費'), 'labor');\n $this->assertEquals(Record::mapCategory('法定福利費', true), 'welfare');\n }", "public function getCategoriesForListView(): Collection;", "public function getAlbum()\n {\n return $this->album;\n }", "public function getAlbum()\n {\n return $this->album;\n }", "public function getViewedCategory();", "public function getAlbums()\n {\n return $this->albums;\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function setAlbum($value)\n {\n return $this->set('Album', $value);\n }", "public function getAllWithCategory();", "public function getCategories() : array;", "public function category(){\n\n Excel::import(new ComponentsImport,'/imports/categories.csv');\n $cats = array_values(array_unique(Cache::get('category')));\n for($i=0;$i<count($cats);$i++){\n $sub = new Category();\n $sub->name = $cats[$i];\n $sub->save();\n }\n }", "public function findAllCategories(): iterable;", "function Categories() {\n\t\treturn DataObject::get('categoryobject', '', 'Title');\n\t}", "public function album()\n {\n \treturn $this->belongsTo('Album');\n }", "private function getAlbumCategory($category_id)\n {\n\t\t//Albums can only have one category. \n\t\t$cat_sql = \"SELECT * FROM categories WHERE category_id = :category_id LIMIT 1\";\n $stmt= $this->db->prepare($cat_sql);\n\t\t\t\n\t\t$data = [\n\t\t\t'category_id' => $category_id,\n\t\t];\n\t\t\t\n\t\t$stmt->execute($data);\n\t\t\n\t\t$results = [];\n\t\twhile ($category = $stmt->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$results[] = $category;\n\t\t}\n\t\t\n\t\treturn $results;\n\t}", "public function hasCategory(): bool;", "function setup_cat()\n {\n $this->ipsclass->DB->simple_construct( array( \"select\" => 'perms_view, def_view, id, name', 'from' => 'gallery_categories', 'where' => \"id={$this->ipsclass->input['cat']}\" ) );\n $this->ipsclass->DB->simple_exec(); \n $cat = $this->ipsclass->DB->fetch_row();\n\n // Are we allowed to view this category?\n if( ! $this->ipsclass->check_perms( $cat['perms_view'] ) )\n {\n $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) ); \n }\n\n return $cat;\n }", "public function get_albums()\r\n\t{\r\n\t\t$xml = $this->call(PicasaAPI::$QUERY_URLS['picasa'] . \"?kind=album&alt=rss&prettyprint=true\");\r\n\t\treturn $xml;\r\n\t}", "public function albums()\n {\n return $this\n ->hasMany('App\\Album', 'artist')\n ->selectRaw('*, albums.title as album_title, albums.slug as album_slug, count(songs.id) as song_total')\n ->leftJoin('songs', 'albums.id', '=', 'songs.album')\n ->orderBy('released', 'asc')\n ->groupBy('albums.id');\n }", "public function getCategory()\n {\n }", "function showCategory()\r\n {\r\n }", "public function getAlbums()\n {\n return GalleryAlbum::get()->filter('ParentID', $this->ID);\n }", "public function categories() {\n return $this->belongsToMany('App\\PodcastMetaData', 'podcast_metas', 'podcast_id', 'meta_id')->where('meta_type', 'podcast_category');\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "public function get_category()\n {\n return 'Fun and Games';\n }", "private function groupByCategory(){\n \n $searchResults = null;\n $items = $this->items; \n \n foreach($items as $item){\n foreach($item->categories as $category_tmp){ \n $searchResults[$category_tmp][] = $item;\n } \n }\n \n return $searchResults;\n }", "function getCategories($object) { \n\n $R1 = new Category(); // R1 --\n $R11 = new Category(); // | | - R11 --\n $R111 = new Category(); // | | - R111\n $R112 = new Category(); // | | - R112\n $R11->addSubcategory($R111); // |\n $R11->addSubcategory($R112); // |\n $R1->addSubcategory($R11); // |\n $R2 = new Category(); // R2 --\n $R21 = new Category(); // | - R21 --\n $R211 = new Category(); // | | - R211\n $R22 = new Category(); // |\n $R221 = new Category(); // | - R22 --\n $R21->addSubcategory($R211); // | - R221\n $R22->addSubcategory($R221);\n $R2->addSubcategory($R21);\n $R2->addSubcategory($R22);\n\n $object->addCollectionEntry($R1); \n $object->addCollectionEntry($R2); \n}", "public function getCat() {\n return DB::q_array(\"SELECT id, title, image FROM news_category WHERE published = 1\");\n }", "function showAllAlbum() {\n $sql = \"SELECT * FROM `itf_album`\";\n return $this->dbcon->FetchAllResults($sql);\n }", "public function get_category()\n {\n return 'Graphical';\n }", "public function get_category()\n {\n return 'Graphical';\n }", "function index() {\t\n\t $this->account();\t \n\t // $conditions=array('Catproduct.status'=>1);\t\n\t $this->paginate = array('limit' => '15','order' => 'Album.id ASC');\n\t $this->set('Album', $this->paginate('Album',array()));\n $list_cat = $this->Album->generatetreelist(null,null,null,\" _ \");\n\t $this->set(compact('list_cat'));\n\t}", "public function testCategoryData(){\n\n $count = Category::all()->count();\n $this->assertEquals($count, 3);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería Windows']);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería Linux']);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería IOS']);\n }", "public function getArtistWithAlbum()\n {\n return $this\n ->selectRaw('artists.id, artists.name, avatar, artists.slug, title, cover, count(*) as album_total')\n ->leftJoin('albums', 'artists.id', '=', 'albums.artist')\n ->groupBy('artists.id')\n ->orderBy('artists.name', 'asc')\n ->paginate(15);\n }", "public static function getAlbumsForDropdown()\n\t{\n\t\treturn BackendModel::getDB()->getPairs('SELECT i.id, d.title FROM pictures_albums AS i\n\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN pictures_albums_data AS d ON d.album_id = i.id AND d.language = ?', BackendLanguage::getInterfaceLanguage());\n\t}", "public function findCategoryBy(array $criteria);", "function albumSummary() {\n $ro = new AlbumSummaryRO();\n \n $files = glob('Pics/*');\n $ro->numAlbums = count($files);\n\n $ro->usedSpace = round(filesize_r('Pics') / 1000000); // space in MiB\n $ro->totalSpace = $ro->usedSpace + round(disk_free_space(\"/\") / 1000000); // space in GiB\n\n return $ro;\n}", "function getCategory($id_category){\n $db = db();\n $db->begin();\n $data = $db->exec('SELECT * FROM m_song WHERE fk_id_category = '.$id_category);\n\n return $data;\n }", "public function album()\n {\n return $this->belongsTo('App\\Models\\Album');\n }", "public function getCategory($name);", "public function get_album_suite()\n {\n $results = array();\n\n $catalog_where = \"\";\n $catalog_join = \"LEFT JOIN `catalog` ON `catalog`.`id` = `song`.`catalog`\";\n if ($catalog) {\n $catalog_where .= \" AND `catalog`.`id` = '$catalog'\";\n }\n if (AmpConfig::get('catalog_disable')) {\n $catalog_where .= \" AND `catalog`.`enabled` = '1'\";\n }\n\n $sql = \"SELECT DISTINCT `album`.`id` FROM album LEFT JOIN `song` ON `song`.`album`=`album`.`id` $catalog_join \" .\n \"WHERE `album`.`mbid`='$this->mbid' $catalog_where ORDER BY `album`.`disk` ASC\";\n\n $db_results = Dba::read($sql);\n\n while ($r = Dba::fetch_assoc($db_results)) {\n $results[] = $r['id'];\n }\n\n return $results;\n\n }", "function getCategories() {\r\n\t\t$categories = $this->find('all');\r\n\t\t$result = array();\r\n\t\tforeach ($categories as $category) {\r\n\t\t\t$result[$category['NbCategory']['id']] = array(\r\n\t\t\t\t'probability' => $category['NbCategory']['probability'],\r\n\t\t\t\t'word_count' => $category['NbCategory']['word_count']\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "public function album() {\n return $this->belongsTo('App\\Album');\n }", "public function getHistoryCategoryAttribute()\n {\n if ($this->histories->count() == 0) {\n return 'rendah';\n }\n\n if ($this->histories->count() == 1) {\n return 'sedang';\n }\n\n if ($this->histories->count() >= 2) {\n return 'tinggi';\n }\n }", "public function album()\n {\n return $this->hasOne('App\\Albumes', 'id', 'albumid');\n }", "public function createCategory();", "public function album()\n {\n return $this->belongsTo('App\\Album');\n }", "public function album()\n {\n return $this->belongsTo('App\\Album');\n }", "public function album()\n {\n return $this->belongsTo(Album::class, 'album_id', 'id');\n }", "public function albums(){\n return $this->belongsToMany(Album::class);\n }", "function setup_album()\n {\n $this->ipsclass->DB->simple_construct( array( \"select\" => 'id, name, member_id, public_album', 'from' => 'gallery_albums', 'where' => \"id={$this->ipsclass->input['album']}\" ) );\n $this->ipsclass->DB->simple_exec(); \n $info = $this->ipsclass->DB->fetch_row();\n\n // Are we allowed to view this album?\n if( $info['member_id'] == $this->ipsclass->member['id'] )\n {\n $own = true;\n }\n\n if( ! $info['public_album'] && ! $own )\n {\n $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );\n }\n\n return $info;\n }", "function getGenreCategoryMapping() {\n\t\tassert(false);\n\t}", "public function categoryArray() {\n\t\tif($this->data['mdid'] != \"\") {\n\t\t\treturn getCategoryArray($this->data['mdid'],'media');\n\t\t}\n\t\treturn ;\n\t}", "public function loadAlbums()\n {\n\t\t$json = file_get_contents('https://itunes.apple.com/us/rss/topalbums/limit=100/json');\n \n $albums = json_decode($json, true);\n $category_sql = \"INSERT IGNORE INTO categories (name, category_id, link) VALUES (:name, :category_id, :link)\";\n\t\t$album_sql = \"INSERT IGNORE INTO albums (album_id, name, artist, artist_link, category_id, release_date, rank) VALUES (:album_id, :name, :artist, :artist_link, :category_id, :release_date, :rank)\";\n\t\t$images_sql = \"INSERT IGNORE INTO album_art (album_id, album_image, image_size) VALUES (:album_id, :album_image, :image_size)\";\n\n\t\t//Lets delete whatever is in these tables before adding to them.\n\t\t$this->purgeTables();\n \n foreach($albums['feed']['entry'] as $rank=>$album) {\n\t\t\t\n\t\t\t//Insterts categories\n\t\t\t$stmt= $this->db->prepare($category_sql);\n\t\t\t\n\t\t\t$data = [\n\t\t\t\t'name' => $album['category']['attributes']['label'],\n\t\t\t\t'category_id' => $album['category']['attributes']['im:id'],\n\t\t\t\t'link' => $album['category']['attributes']['scheme'],\n\t\t\t];\n\t\t\t\n\t\t\t$stmt->execute($data);\n\t\t\t\n\t\t\t//Insterts album info\n\t\t\t$stmt= $this->db->prepare($album_sql);\n\t\t\t\n\t\t\t$data = [\n\t\t\t\t'album_id' => $album['id']['attributes']['im:id'],\n\t\t\t\t'name' => $album['title']['label'],\n\t\t\t\t'artist' => $album['im:artist']['label'],\n\t\t\t\t'artist_link' => (isset($album['im:artist']['attributes'])) ? $album['im:artist']['attributes']['href'] : '',\n\t\t\t\t'category_id' => $album['category']['attributes']['im:id'],\n\t\t\t\t'release_date' => $album['im:releaseDate']['label'],\n\t\t\t\t'rank' => $rank,\n\t\t\t];\n\n\t\t\t$stmt->execute($data);\n\t\t\t\n\t\t\t//inserts album images\n\t\t\t$stmt= $this->db->prepare($images_sql);\n\t\t\t\n\t\t\tforeach($album['im:image'] as $image){\n\t\t\t\t$data = [\n\t\t\t\t\t'album_id' => $album['id']['attributes']['im:id'],\n\t\t\t\t\t'album_image' => $image['label'],\n\t\t\t\t\t'image_size' => $image['attributes']['height'],\n\t\t\t\t];\n\t\t\t\t\n\t\t\t\t$stmt->execute($data);\n\t\t\t}\n\t\t}\n\t}", "public function toTagAlbum(): TagAlbum\n\t{\n\t\t$tag_album = resolve(TagAlbum::class);\n\t\t$tag_album->id = $this->id;\n\t\t$tag_album->title = $this->title;\n\t\t$tag_album->owner_id = $this->owner_id;\n\t\t$tag_album->parent_id = $this->parent_id;\n\t\t$tag_album->_lft = $this->_lft;\n\t\t$tag_album->_rgt = $this->_rgt;\n\t\t$tag_album->description = $this->description ?? '';\n\t\t$tag_album->min_taken_at = $this->min_taken_at;\n\t\t$tag_album->max_taken_at = $this->max_taken_at;\n\t\t$tag_album->public = $this->public;\n\t\t$tag_album->full_photo = $this->full_photo;\n\t\t$tag_album->viewable = $this->viewable;\n\t\t$tag_album->nsfw = $this->nsfw;\n\t\t$tag_album->downloadable = $this->downloadable;\n\t\t$tag_album->password = $this->password;\n\t\t$tag_album->license = $this->license;\n\t\t$tag_album->created_at = $this->created_at;\n\t\t$tag_album->updated_at = $this->updated_at;\n\t\t$tag_album->share_button_visible = $this->share_button_visible;\n\t\t$tag_album->smart = $this->smart;\n\t\t$tag_album->showtags = $this->showtags;\n\n\t\treturn $tag_album;\n\t}", "public function getAllCategories();", "public function setMusicAlbum($attributes = []);", "public function setCategory() {\n /**\n *\n * @todo make a separate config file for the default category ?!\n */\n $defaultCategory = 1;\n $category = Category::find()->all();\n $newCat = $this->strProcessing($this->category);\n $k = NULL;\n if (!empty($newCat)) {\n foreach ($category as $value) {\n $cat = explode(',', $value['synonyms']);\n $cat = array_map(array($this, 'strProcessing'), $cat);\n $k = array_search($newCat, $cat);\n if ($k !== NULL && $k !== FALSE) {\n $k = $value['id'];\n break;\n }\n }\n }\n if ($k) {\n $this->category = $k;\n } else {\n $this->category = $defaultCategory;\n }\n return TRUE;\n }", "function init_category($title) {\n $category = ORM::for_table('pw_category')->create();\n $category->cat_title = $title;\n $category->save();\n return $category;\n}", "function read_Categories() {\n\n\t\tglobal $myCategories;\n\t\tglobal $gesamt;\n\t\t\n\t\t$i = 0;\n\t\t\n\t\tforeach ($myCategories as $catInfo):\n\t\t\n\t\t$test=$myCategories->category[$i]['typ'];\n\t\t\n\t\tarray_push($gesamt, $test);\n\t\t\n\t\t$i++;\n\t\tendforeach;\t\n\t\t\n\t}", "function setCategory($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "public function getAlbums()\n {\n $url = str_replace(\"[:action]\", \"albums\", self::ImgUrAPI_MINE_URL);\n $url = str_replace(\"[:user_id]\", $this->user_id, $url);\n $result = self::excuteHTTPSRequest($url, $this->accessToken);\n\n $_albums = '';\n\n foreach ($result['data'] as $item) {\n $_album = new ImgUrAlbum();\n $_album->setAttributes($item);\n $_albums[] = $_album;\n }\n\n return $_albums;\n }", "public function getAlbums($id){\n $artist = Artist::find($id);\n return $artist->albums;\n }", "public function show(Album $album)\n {\n //\n }", "public function getCategory()\n {\n return $this->readOneof(2);\n }", "public function Albums(){\n return $this->hasMany('App\\Album');\n }", "public function getAlbums()\n\t{\n\t\treturn Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'azgallery_album`');\n\t}", "public static function categories() {\n\t\t// can take a long time\n\t\tset_time_limit(0);\n\n\t\t// select all uncategorized monuments\n\t\t$monuments = ORM::factory('monument')->where('id_category','is',null)->or_where('id_category','=',12)->find_all();\n\t\t$i = 0;\n\t\tforeach($monuments as $monument) {\n\n\t\t\t$category = $monument->extractCategory();\n\n\t\t\t// save the extracted category to the database\n\t\t\t$monument->id_category = $category;\n\t\t\t$monument->category_extracted = 1;\n\t\t\tif($category > 0) {\n\t\t\t\t$i++;\n\t\t\t\t$monument->save();\n\t\t\t}\n\t\t}\n\n\t\treturn $i;\n\t}", "function getSubAlbums($album)\n{\n $list = [];\n $albumObj = new Album($album);\n $albumID = $albumObj->getID();\n $parentID = getItemByID('albums', $albumID);\n if ($albumObj->isDynamic() || !$albumID) {\n return $list;\n }\n $subalbums = $albumObj->getAlbums(null, null, null, null, true);\n $subalbums = $parentID->getAlbums(null, null, null, null, true);\n if (is_array($subalbums)) {\n foreach ($subalbums as $subalbum) {\n $list[] = $subalbum;\n $list = array_merge($list, getSubAlbums($subalbum));\n } //$subalbums as $subalbum\n } //is_array($subalbums)\n return $list;\n}", "public function getAlbumsAction()\n {\n $em = $this->getDoctrine()->getManager();\n $albums = $em->getRepository(Album::class)->findAll();\n\n return $this->handleView($this->view($albums));\n }", "protected function _initCatagory()\r\n\t{\r\n\t\tMage::dispatchEvent('vendor_catalog_controller_category_init_before', array('controller_action' => $this));\r\n\t\t$categoryId = (int) $this->getRequest()->getParam('id', false);\r\n\t\tif (!$categoryId) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t$category = Mage::getModel('vendorscategory/category')\r\n\t\t->load($categoryId);\r\n\t\tif (!Mage::helper('vendorscategory')->canShow($category)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif(!Mage::registry(\"vendor_id\") && !Mage::registry(\"vendor\") && !Mage::registry(\"current_vendor\")){\r\n\t\t\t//echo $category->getVendorId();exit;\r\n\t\t\t$vendorObj = Mage::getModel('vendors/vendor')->load($category->getVendorId());\r\n\r\n\t\t\t//var_dump($vendorObj->getData());exit;\r\n\t\t\tMage::register('vendor_id', $vendorObj->getVendorId());\r\n\t\t\tMage::register('vendor', $vendorObj);\r\n\t\t\tMage::register('current_vendor', $vendorObj);\r\n\t\t}\r\n\t\t\r\n\t\tMage::register('current_vendor_category', $category);\r\n\t\tMage::register('current_vendor_entity_key', $category->getPath());\r\n\t\ttry {\r\n\t\t\tMage::dispatchEvent(\r\n\t\t\t'vendor_catalog_controller_category_init_after',\r\n\t\t\tarray(\r\n\t\t\t'category' => $category,\r\n\t\t\t'controller_action' => $this\r\n\t\t\t)\r\n\t\t\t);\r\n\t\t} catch (Mage_Core_Exception $e) {\r\n\t\t\tMage::logException($e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\r\n\t\treturn $category;\r\n\t}", "public static function getCategoryData()\n\t{\n\n\t\tstatic $cats;\n\n\t\t$app = Factory::getApplication();\n\n\t\tif (!isset($cats))\n\t\t{\n\t\t\t$db = Factory::getDbo();\n\n\t\t\t$sql = \"SELECT c.* FROM #__categories as c WHERE extension='\" . JEV_COM_COMPONENT . \"' order by c.lft asc\";\n\t\t\t$db->setQuery($sql);\n\t\t\t$cats = $db->loadObjectList('id');\n\t\t\tforeach ($cats as &$cat)\n\t\t\t{\n\t\t\t\t$cat->name = $cat->title;\n\t\t\t\t$params = new JevRegistry($cat->params);\n\t\t\t\t$cat->color = $params->get(\"catcolour\", \"\");\n\t\t\t\t$cat->overlaps = $params->get(\"overlaps\", 0);\n\t\t\t}\n\t\t\tunset ($cat);\n\n\t\t\t$app->triggerEvent('onGetCategoryData', array(& $cats));\n\n\t\t}\n\n\t\t$app->triggerEvent('onGetAccessibleCategories', array(& $cats, false));\n\n\n\t\treturn $cats;\n\t}", "public function get_category_permastruct()\n {\n }", "private function getAlbums($aData)\n {\n /**\n * @var string\n */\n $sAction = (isset($aData['sAction']) && $aData['sAction'] == 'new') ? 'new' : 'more';\n /**\n * @var int\n */\n $iLastTimeStamp = isset($aData['iLastTimeStamp']) ? (int) $aData['iLastTimeStamp'] : 0;\n /**\n * @var string\n */\n $sView = isset($aData['sView']) ? $aData['sView'] : '';\n /**\n * @var int\n */\n $iAmountOfAlbum = isset($aData['iAmountOfAlbum']) ? (int) $aData['iAmountOfAlbum'] : 10;\n /**\n * @var string\n */\n $sSearch = isset($aData['sSearch']) ? $aData['sSearch'] : '';\n /**\n * @var array\n */\n $aCond = array();\n\n if (!empty($sSearch))\n {\n $aCond[] = 'm.name LIKE \"' . Phpfox::getLib('parse.input')->clean('%' . $sSearch . '%') . '\"';\n }\n switch ($sView) {\n case 'my':\n $aCond[] = 'm.user_id = ' . Phpfox::getUserId();\n break;\n\n case 'all':\n default:\n $aCond[] = 'm.view_id = 0';\n $aCond[] = 'm.privacy IN(0)';\n break;\n }\n if ($iLastTimeStamp > 0)\n {\n if ($sAction == 'more')\n {\n $aCond[] = 'm.time_stamp < ' . $iLastTimeStamp;\n }\n else\n {\n $aCond[] = 'm.time_stamp > ' . $iLastTimeStamp;\n }\n }\n $this->database()\n ->select('COUNT(*)')\n ->from(Phpfox::getT('music_album'), 'm');\n /**\n * @var int\n */\n $iCount = $this->database()\n ->where(implode(' AND ', $aCond))\n ->limit(1)\n ->execute('getField');\n if ($iCount == 0)\n {\n return array();\n }\n /**\n * @var array\n */\n $aAlbums = $this->database()\n ->select('lik.like_id AS is_liked, m.*, u.user_id, u.profile_page_id, u.server_id AS user_server_id, u.user_name, u.full_name, u.gender, u.user_image, u.is_invisible, u.user_group_id, u.language_id')\n ->from(Phpfox::getT('music_album'), 'm')\n ->leftJoin(Phpfox::getT('like'), 'lik', 'lik.type_id = \\'music_album\\' AND lik.item_id = m.album_id AND lik.user_id = ' . Phpfox::getUserId())\n ->join(Phpfox::getT('user'), 'u', 'u.user_id = m.user_id')\n ->where(implode(' AND ', $aCond))\n ->order('m.time_stamp DESC')\n ->limit(0, $iAmountOfAlbum, $iCount)\n ->execute('getRows');\n /**\n * @var array\n */\n $aResult = array();\n foreach ($aAlbums as $aAlbum)\n {\n $aResult[] = array(\n 'bIsLiked' => isset($aAlbum['is_liked']) ? (bool) $aAlbum['is_liked'] : false,\n 'iAlbumId' => $aAlbum['album_id'],\n 'iViewId' => $aAlbum['view_id'],\n 'iPrivacy' => $aAlbum['privacy'],\n 'iPrivacyComment' => $aAlbum['privacy_comment'],\n 'bIsFeatured' => (bool) $aAlbum['is_featured'],\n 'bIsSponsor' => (bool) $aAlbum['is_sponsor'],\n 'iUserId' => $aAlbum['user_id'],\n 'sName' => $aAlbum['name'],\n 'iYear' => $aAlbum['year'],\n 'sImagePath' => Phpfox::getLib('image.helper')->display(array(\n 'server_id' => $aAlbum['server_id'],\n 'path' => 'music.url_image',\n 'file' => $aAlbum['image_path'],\n 'suffix' => '_50_square',\n 'return_url' => true\n )\n ),\n 'iTotalTrack' => $aAlbum['total_track'],\n 'iTotalPlay' => $aAlbum['total_play'],\n 'iTotalComment' => $aAlbum['total_comment'],\n 'iTotalLike' => $aAlbum['total_like'],\n 'iTotalDislike' => $aAlbum['total_dislike'],\n 'iTotalScore' => $aAlbum['total_score'],\n 'iTotalRating' => $aAlbum['total_rating'],\n 'iTimeStamp' => $aAlbum['time_stamp'],\n 'sTimeStamp' => date('l, F j', $aAlbum['time_stamp']),\n 'sFullTimeStamp' => date('l, F j', $aAlbum['time_stamp']) . ' at ' . date('g:i a', $aAlbum['time_stamp']),\n 'sModuleId' => isset($aAlbum['module_id']) ? $aAlbum['module_id'] : 0,\n 'iItemId' => $aAlbum['item_id'],\n 'iProfilePageId' => $aAlbum['profile_page_id'],\n 'iUserServerId' => $aAlbum['user_server_id'],\n 'sUsername' => $aAlbum['user_name'],\n 'sFullname' => $aAlbum['full_name'],\n 'iGender' => $aAlbum['gender'],\n 'sUserImage' => Phpfox::getLib('image.helper')->display(array(\n 'server_id' => $aAlbum['user_server_id'],\n 'path' => 'core.url_user',\n 'file' => $aAlbum['user_image'],\n 'suffix' => '_50_square',\n 'return_url' => true\n )\n ),\n 'bIsInvisible' => $aAlbum['is_invisible'],\n 'iUserGroupId' => $aAlbum['user_group_id'],\n 'iLanguageId' => isset($aAlbum['language_id']) ? $aAlbum['language_id'] : 0\n );\n }\n return $aResult;\n }", "public function category() {\n\t\treturn $this->belongsToMany('Category');\n\t}", "public function getCategoryDataFront()\n {\n // Get Categorys\n $categories = CategoryWiseSpecification::orderBy('updated_at', 'desc')->Where('deactivate', 0)->take(4)->get();\n\n foreach($categories as $categoryWiseResource)\n {\n $files = explode(\",\", $categoryWiseResource['file']);\n $categoryWiseResource['attachments'] = Attachment::WhereIn('id', $files)->get();\n }\n \n // Return collection of Categorys as a resource\n return CategoryWiseSpecificationResouerce::collection($categories);\n }", "public function testListCategories()\n {\n }", "public function getCategory()\n {\n return $this->category;\n }", "public function getCategory()\n {\n return $this->category;\n }", "function getAlbums() {\n\n $ro = new GetAlbumsRO();\n $files = glob('Pics/*');\n $numfiles = count($files);\t\n\n for ($i=0; $i < $numfiles; $i++)\n {\n $onefile = $files[$i];\n $imgs_in_album = glob(\"$onefile/*.[jJ][pP][gG]\");\n if (count($imgs_in_album) > 0)\n $album_image = $imgs_in_album[0];\n else\n $album_image = \"res/GenericAlbum.jpg\";\n $album_name = basename($onefile);\n\n $oneAlbum = new AlbumInfo($album_name, $album_image);\n array_push($ro->albums, $oneAlbum);\n }\n\n return $ro;\n}", "function getItemsByCategory($name)\n {\n $metadataDao = MidasLoader::loadModel('Metadata')->getMetadata(MIDAS_METADATA_TEXT, \"mrbextrator\", \"category\");\n $enabledDao = MidasLoader::loadModel('Metadata')->getMetadata(MIDAS_METADATA_TEXT, \"mrbextrator\", \"slicerdatastore\");\n $items = array(); \n if($metadataDao)\n {\n $db = Zend_Registry::get('dbAdapter');\n $escaped = $db->quote(\"%zzz\".$name.\"zzz%\");\n $results = $db->query(\"SELECT itemrevision_id FROM metadatavalue WHERE value LIKE $escaped AND metadata_id='\".$metadataDao->getKey().\"'\")\n ->fetchAll();\n \n foreach($results as $result)\n {\n $tmpResults = $db->query(\"SELECT value FROM metadatavalue WHERE itemrevision_id='\".$result['itemrevision_id'].\"' AND metadata_id='\".$enabledDao->getKey().\"'\")\n ->fetchAll();\n if(empty($tmpResults))continue;\n $revision = MidasLoader::loadModel(\"ItemRevision\")->load($result['itemrevision_id']);\n if($revision)\n {\n $items[] = $revision->getItem()->getKey();\n }\n } \n }\n return $items;\n }" ]
[ "0.60834104", "0.60481185", "0.5909416", "0.58799964", "0.5803549", "0.5803549", "0.5781606", "0.57082087", "0.5608187", "0.5604649", "0.5604649", "0.55970734", "0.5536188", "0.55265254", "0.5509678", "0.5509678", "0.5501041", "0.54851353", "0.5464697", "0.5464697", "0.5464697", "0.5464697", "0.5464697", "0.5464697", "0.5464697", "0.5464697", "0.5464697", "0.54589593", "0.54450214", "0.54252344", "0.541473", "0.5413225", "0.54030657", "0.53945035", "0.5392823", "0.5383865", "0.5320157", "0.53127986", "0.53086936", "0.5262127", "0.5261956", "0.52605426", "0.52513033", "0.52513033", "0.52513033", "0.52440417", "0.5242396", "0.52302116", "0.52278274", "0.5222534", "0.5222534", "0.52146596", "0.5212825", "0.51870704", "0.5179837", "0.5177074", "0.51761144", "0.51687515", "0.51607656", "0.51572293", "0.51349604", "0.5131454", "0.5126432", "0.5117994", "0.5113457", "0.5107923", "0.5104914", "0.5104914", "0.5102312", "0.5090284", "0.50894344", "0.5087053", "0.50817335", "0.5076151", "0.5075499", "0.5067228", "0.5027817", "0.50114936", "0.50087583", "0.50079453", "0.50064814", "0.50037014", "0.5001956", "0.49956438", "0.49829495", "0.4981759", "0.4978555", "0.4978521", "0.49698353", "0.49543503", "0.49438745", "0.49409133", "0.49305975", "0.49275437", "0.49263543", "0.4925307", "0.4923241", "0.49230045", "0.49230045", "0.49201307", "0.49096224" ]
0.0
-1
Current order type Table caption
function TableCaption() { global $ReportLanguage; return $ReportLanguage->TablePhrase($this->TableVar, "TblCaption"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTableDescription();", "public function getOrderColumn()\n {\n return 'order';\n }", "public static function getTablename() { return \"Productos_01\"; }", "public static function getTableName()\n\t{\n\t\treturn 'api_orderstatus_tpl';\n\t}", "public function getOrderType();", "protected function outputTableBeforeListing()\n {\n return (in_array(mb_substr($this->tableAdmin->getTable(), mb_strlen(TAB_PREFIX)), ['content'])) ?\n $this->tableAdmin->contentByType(['table' => 'content', 'type' => 'type']) : '';\n }", "public function print_table_description()\n {\n }", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "function wv_commission_table_heading_list($type = \"thead\") {\n $output = \"\";\n\n //verify the header and footer of the table list\n $type = ($type == \"thead\") ? \"thead\" : \"tfoot\";\n\n $output .=\"<$type>\";\n $output .=\" <tr>\n <th>#OrderId</th>\n <th>Order Date</th>\n <th>ProductName</th>\n <th>Vendor</th>\n <th>Commission</th>\n <th>Status</th>\n <th>Commission Date</th>\n </tr>\";\n\n $output .=\"</$type>\";\n return $output;\n }", "public function show_table_sturcture()\n\t{\n\t\t$str_input_html = \"\";\n\t\t$table = \"default_module_test\";\n\t\t$table = $this->db->escape_str($table);\n\t\t//$sql = \"DESCRIBE `$table`\";\n\t\t//$desc = $this->db->where('Field','sorts')->query($sql)->row();\n\t\t$desc = Easy_Database_Manage::get_table_desc($table);\n\t\techo \"<pre>\";\n\t\techo print_r($desc);\n\t\techo \"</pre>\";\n\t\n\t}", "public static function laratablesOrderName()\n\t\t{\n\t\t\treturn 'coa_name';\n\t\t}", "function post_comment_meta_box_thead($result)\n {\n }", "public function getOrdertype()\n {\n return $this->ordertype;\n }", "public static function table_top_label () \n {\n $html = null;\n\n $html .= '<thead>\n <tr>\n <td id=\"cb\" class=\"manage-column column-cb check-column\">\n <label class=\"screen-reader-text\" for=\"cb-select-all-1\">\n Select All\n </label>\n <input id=\"cb-select-all-1\" type=\"checkbox\">\n </td>\n <th scope=\"col\" id=\"title\" class=\"manage-column column-title\">\n Name\n </th>\n <th scope=\"col\" id=\"tags\" class=\"manage-column column-tags column-primary\">\n Excerpt\n </th>\n <th scope=\"col\" id=\"author\" class=\"manage-column column-author\">\n Author\n </th>\n <th scope=\"col\" id=\"comments\" class=\"manage-column column-comments\">\n <span class=\"vers comment-grey-bubble\" title=\"Comments\">\n <span class=\"screen-reader-text\">\n Comments\n </span>\n </span>\n </th>\n <th scope=\"col\" id=\"date\" class=\"manage-column column-date\">\n Date\n </th> \n </tr>\n </thead>';\n\n return $html; \n }", "function tableize(){\n\t\treturn $this->underscore()->pluralize();\n\t}", "public function getOrderType()\n {\n return $this->order_type;\n }", "protected function TitleTable() {\n\treturn $this->GetConnection()->MakeTableWrapper(KS_CLASS_CATALOG_TITLES);\n }", "function action_woocommerce_order_items_table( $order ) {\n\t\t// make action magic happen here... \n\t\t$data = get_post_meta( $order->id, '_metatest_data', true );\n\t\techo '<tr>\n\t\t\t\t<th scope=\"row\"><span class=\"np_forudpdate\">Накладная (Новая почта):</span></th>\n\t\t\t\t\t<td>' . $data . '</td>\n\t\t\t\t</tr>';\n\t}", "public function get_order() {\n\t\treturn self::TAB_ORDER;\n\t}", "function getTableHtml(){\n\t\treturn $this->translator->basicTable($this->table, 'test');\n\t}", "function column_orderinfo($item) {\n\t\t$actions = array(\n\t\t\t'edit' => sprintf('<a href=\"?page=%s&edit=%s\">Edit</a>', $_REQUEST['page'], $item['id']),\n\t\t\t'delete' => sprintf('<a href=\"?page=%s&delete=%s\">Delete</a>', $_REQUEST['page'], $item['id'])\n\t\t);\n\t\treturn sprintf('%1$s %2$s', $item['orderinfo'], $this->row_actions($actions));\n\t}", "function render_table_header_footer($orderBy, $order) {\n?>\n\t\t<tr>\n<?php\n\t\t\t$this->render_th('title', 'Title', $orderBy, $order); \n\t\t\t$this->render_th('date', 'Date', $orderBy, $order); \n\t\t\t$this->render_th('facilitators', 'Facilitators', $orderBy, $order); \n\t\t\t$this->render_th('categories', 'Categories', $orderBy, $order); \n?>\n\t\t</tr>\n<?php\n\t}", "private function getEntryOrderType()\n {\n return ($this->content)\n ? $this->content->orderType()\n : $this->request->input('extra.order_type');\n }", "public function getZodekenAutoLabel()\n {\n return $this->idetablissement;\n }", "function header() {\n //\n //Get the fields in this sql \n $cols= $this->fields->get_array();\n //\n //Loop through the fields and display the <tds>\n foreach ($cols as $col) {\n //\n $name= is_null($col->alias) ? $col->to_str():$col->alias;\n echo \"<th>$name</th>\"; \n }\n }", "public function getOrderType()\n {\n return $this->orderType;\n }", "public function table() \n {\n return $this->model->table?? '';\n }", "public function getLabel()\n {\n return 'Individuelle Sortierung';\n }", "public function getTableRowNames()\n \t{\n \t\treturn array('title', 'author', 'date', 'email', 'website', 'comment', 'relevantSection', 'relevantItemId', 'isApproved', 'isPrivate', 'isAdminComment');\n \t}", "public function getOrderMeaning() {\n return $this->orderMeaning;\n }", "public function orderField() {\n $orderAttribute = (string)$this->object->info->info->form->orderBy;\n if ($orderAttribute!='') {\n $orderAttribute = explode(',', $orderAttribute);\n $orderAttribute = explode(' ', $orderAttribute[0]);\n $orderAttribute = $orderAttribute[0];\n $orderInfo = $this->object->attributeInfo($orderAttribute);\n return (is_object($orderInfo) && (string)$orderInfo->lang == \"true\") ? $orderAttribute.'_'.Lang::active() : $orderAttribute;\n }\n }", "public function getDefaultOrderCol() ;", "public function header()\n\t{\n\t\treturn array(\t'Translation ID (Do not change)',\n\t\t\t\t\t\t'Translation Group (Do not change)',\n\t\t\t\t\t\t'Original Text (Do not change)',\n\t\t\t\t\t\t'Translated Text (Change only this column to new translated text)');\n\t}", "public function getTableHeaders()\n {\n return ['#', 'Fatura','Ordem Servico'];\n }", "public function getOrderType()\n {\n return $this->firstNodeAttribute(\"IDOC/E1EDK01/ZE1EDK01\",'ZAUART', null);\n }", "public function getTypeLabel(){\r\n\t\t$ret = \" \";\r\n\t\tswitch ($this->type){\r\n\t\t\tcase 0 : $ret = $_LANG->get('Artikel'); break;\r\n\t\t\tcase 1 : $ret = $_LANG->get('Produkt'); break;\r\n\t\t\tcase 2 : $ret = $_LANG->get('Personalisierung'); break;\r\n\t\t\tdefault: $ret = \"n.A.\";\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "public function getTypeText()\n\t{\n\t\treturn Menus::getMenuTypeName($this->owner->type);\n\t}", "public static function laratablesOrderStatus()\n {\n return 'status';\n }", "protected static function order_index() {\n\t\t\treturn self::index() . 'orders';\n\t\t}", "public function getTabOrder() {}", "public function table()\n {\n return \"stocks\";\n }", "protected function OrderLineTable() {\n\treturn $this->GetConnection()->MakeTableWrapper(KS_CLASS_ORDER_LINES);\n }", "static function generateTableHeaderHTML()\n\t{\n\t\techo \"<p class=left>Description:</p>\\n\";\n\t}", "function which_type($table) {\n\n\tif ($table['type'] == \"text\") {\n\t\treturn print_text($table);\n\t}\n\telse if ($table['type'] == \"photo\") {\n\t\treturn print_photo($table);\n\t}\n\telse if ($table['type'] == \"photo and text\") {\n\t\treturn print_photo_text($table);\n\t}\n\telse if ($table['type'] == \"link and photo\") {\n\t\treturn print_link_photo($table);\n\t}\n\telse if ($table['type'] == \"link and text\") {\n\t\treturn print_link_text($table);\n\t}\n}", "public function getTblName()\n {\n return $this->tbl_name;\n }", "public function getType()\n {\n \n $tipos = \n\n $TypeOfProduct = TypeOfProduct::find($this->type_id); \n\n return $TypeOfProduct->description;\n }", "protected function getEventTypeTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_event_type')\n ->getMetaData()\n ->getName(); \n \n }", "function t_taxonomy_column($columns, $column, $id) {\n global $wp_query,$wpdb;\n \n if ($column == 'tax_disp_order'){\n //$columns = '<span>' . get_option('t_taxonomy_displayorder' . $id) . '</span>';\n $terms = $wpdb->prefix . \"terms\";\n $sql = \"SELECT term_order FROM $terms WHERE term_id = {$taxonomy->term_id}\";\n $term = $wpdb->get_row($sql);\n if($term){\n $displayorder = $term->term_order;\n }else{\n $displayorder = 0;\n }\n $columns = '<span>' . $displayorder . '</span>';\n }\n\n return $columns;\n}", "public function getTabLabel()\n {\n return __('Store Information');\n }", "public function getTableHeaders()\n {\n return ['#', 'Autor', 'Título', 'Subtítulo', 'Preço', 'Categorias'];\n }", "public function getTableContent() {\n\t\treturn \"<tr data-key='\" . $this -> getKey() . \"'><td>\" . $this -> key . \"</td><td contenteditable='true'>\" . $this -> value . \"</td><td>\" . $this -> dataType . \"</td></tr>\";\n\t}", "public function supported_kind_as_text ()\n {\n switch ($this->kind)\n {\n case History_item_deleted:\n return 'deleted';\n case History_item_hidden:\n return 'hidden';\n case History_item_restored:\n return 'restored';\n case History_item_locked:\n return 'locked';\n default:\n return parent::supported_kind_as_text ();\n }\n }", "private function _table() {\n if ($this->table == NULL) {\n $this->load->helper('inflector');\n $class = preg_replace('#((_m|_model)$|$(m_))?#', '', strtolower(get_class($this)));\n $this->table = plural(strtolower($class));\n }\n return $this->table;\n }", "function get_control_order() {\n $this->control_order_by->OP_[option]->set(array_merge(array(\n '' => ''\n ), $this->caption_fields));\n return $this->control_order_by->get_tag();\n }", "function createEditForm_getItemHead()\t{\n\t\tGLOBAL $LANG;\n\t\tif ($this->MOD_SETTINGS['editLang'])\t{\n\n\t\t\t\t// Width of each label column is set by a clear-gif:\n\t\t\t$clearGif = '<br/><img src=\"clear.gif\" width=\"250\" height=\"1\" alt=\"\" />';\n\n\t\t\t$tCells = array();\n\t\t\t$tCells[] = '<th>'.$LANG->getLL('form_key').'</th>';\n\t\t\t$tCells[] = '<th style=\"width:50%\">'.$LANG->getLL('form_default').$clearGif.'</th>';\n\t\t\t$tCells[] = '<th>'.$this->MOD_SETTINGS['editLang'].'</th>';\n\t\t\t$tCells[] = '<th>'.$LANG->getLL('form_status').'</th>';\n\n\t\t\tforeach($this->langKeys as $langK)\t{\n\t\t\t\tif ($this->MOD_SETTINGS['addLang_'.$langK])\t{\n\t\t\t\t\t$tCells[] = '<td>'.$langK.$clearGif.'</td>';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\t// Return row:\n\t\t\treturn '\n\t\t\t<tr class=\"bgColor5\" style=\"font-weight: bold;\">\n\t\t\t\t'.implode('\n\t\t\t\t',$tCells).'\n\t\t\t</tr>';\n\t\t}\n\t}", "public function ListTable()\n {\n echo $this->ListTableText();\n }", "function View_Cat_Industry_Order()\n\t{\n\t\tglobal $db;\n\t\t$sql= \"SELECT * FROM \".INDUSTRY_MASTER\n\t \t\t .\" ORDER BY display_order ASC \";\n\t\t$db->query($sql);\n\t}", "public function getTableRowNames()\n \t{\n \t\treturn array('title', 'author', 'publishDate', 'client', 'workType', 'briefDescription', 'description', 'caseStudyID', 'isPrivate', 'commentsAllowed', 'screenshots', 'prevImageURL', 'finalURL');\n \t}", "public function getHeaderText()\n {\n return Mage::helper('jaro_bibleteacher')->__('Bible');\n }", "function as_table() \n {\n #$str = \"<table> \\n\";\n $str = \"\";\n foreach(get_object_vars($this) as $name => $obj) \n {\n if ($obj != NULL) \n {\n $str .= \"<tr>\\n\\t<td>\".$obj->label().\"</td>\\n\\t\";\n $str .= \"<td>\".$obj.\"</td>\\n</tr>\\n\";\n }\n }\n #$str .= \"</table>\\n\";\n return $str;\n }", "public function getDrumTypeTable() {\n return $this->param['tblDrumType'];\n }", "function tableName($tableStatus) {\n\t\t\t$allowed_tables = Array('balances', 'designations', 'employees', 'leaves');\n\t\t\tif (in_array($tableStatus[\"Name\"], $allowed_tables))\n\t\t\t\treturn h($tableStatus[\"Comment\"]);\n\t\t\telse \n\t\t\t\treturn '';\n\t\t\t}", "function drawHeader(){\n switch ($this->doing){\n case 'budget_byProjects':\n case 'myguests':\n if (!(@$this->t instanceof b_table)){\n\t$this->dbg('CANCEL header');\n\t$this->t = new b_table_dummy();\n }\n break;\n\n default:\n parent::drawHeader();\n break;\n }\n }", "public static function tablename() {\n return self::TABLE;\n }", "public function getTabLabel()\r\n {\r\n return __('Conditions');\r\n }", "function Trigger_SetOrderColumn(&$tNG) {\n $orderFieldObj = new tNG_SetOrderField($tNG);\n $orderFieldObj->setFieldName(\"menubar2orderlist\");\n return $orderFieldObj->Execute();\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 }", "function showTableHeader($phaseName) {\n?>\n\t<table>\n\t\t<colgroup>\n\t\t\t<col width='4%'>\n\t\t\t<col width='10%'>\n\t\t\t<col width='15%'>\n\t\t\t<col width='5%'>\n\t\t\t<col width='23%'>\n\t\t\t<col width='10%'>\n\t\t\t<col width='23%'>\n\t\t\t<!--<col width='10%'>\n\t\t\t<col width='*'>-->\n\t\t</colgroup>\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<th>#</th>\n\t\t\t\t<th>Datum/Zeit</th>\n\t\t\t\t<th>Ort</th>\n\t\t\t\t<?php echo ($phaseName == 'Gruppenphase') ? \"<th>Grp</th>\" : \"<th></th>\" ?>\n\t\t\t\t<th colspan='3'>Resultat</th>\n\t\t\t\t<!--<th>Tipp</th>\n\t\t\t\t<th>Pkt</th>-->\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n<?php\n}", "function table($level){\n\t\treturn \"<div class=\\\"word quoted final\\\"><span>\".htmlspecialchars($this->id).\"</span></div>\";\t\n\t}", "public function getOrderType()\n {\n return _('Subscription');\n }", "public function tab()\n\t{\n\t\treturn 'cash';\n\t}", "public function getContentTable()\n\t{\n\t\treturn craft()->sproutForms_forms->getContentTableName($this);\n\t}", "public static function getTableName()\n\t{\n\t\treturn 'b_catalog_extra';\n\t}", "protected function getDescription()\n {\n $AllOrderIds = $this->checkoutSession->getLastRealOrder()->getRealOrderId().'/'.$this->checkoutSession->getLastRealOrder()->getEntityId();\n return __('Order ID: %1', $AllOrderIds);\n // return __('Order ID: %1', $this->checkoutSession->getLastRealOrder()->getRealOrderId());\n }", "function titulopersonal(){\n print (\"\\n<tr>\");\n if($this->titulo !=\"\")\n foreach ($this->titulo as $titulo){\n print (\"\\n<th>$titulo</th>\");\n }\n print (\"\\n<tr>\"); \n }", "static function tableName() {\n global $wpdb;\n return sprintf( '%s%s', $wpdb->prefix, WPXSMARTSHOP_DB_TABLENAME_STATS );\n }", "function getCaption() {\n\t\treturn $this->lobSub->lobCaption;\n\t}", "public function getTabla(){\n return $this->table;\n }", "public function getCaption() {}", "public function getTitleColTemplate(): TitleColTemplate;", "public function toString()\n {\n return $this->table_name; // this attribute can be modified\n }", "function _get_meta_table($type)\n {\n }", "function type_of_table($db,$tb_pre,$tb_name){\n\tglobal $conn;\n\t$sql=\"select table_type from information_schema.tables where table_schema='$db' and table_name='$tb_name'\";\n\t$res=mysqli_query($conn,$sql);\n\tif($res) $rs=mysqli_fetch_array($res);\n\tif($rs['table_type']==\"VIEW\") return 'V';\n\telse {\t// table\n\t\tif(strtolower(substr($tb_name,strlen($tb_pre),6))==\"_code_\") return 'C'; // code table\n\t\telse return 'T'; // normal table\n\t}\n}", "private function _getNoteTableRowLabel($tableName,$col,$alt){\n\t\tglobal $TCA;\n\t\t$label = isset($TCA[$tableName]['columns'][$col]['label']) ? $GLOBALS['LANG']->sL( $TCA[$tableName]['columns'][$col]['label']) : $alt;\n\t\tif( empty($label) ){ $label = $alt; }\n\t\treturn $label;\n\t}", "public function getTabLabel()\n {\n return __('Entities');\n }", "public function return_table()\n {\n $table = \"sub_classes\";\n return $table;\n }", "public function htmlTemplate()\n\t{\t\n\t\treturn 'stock_row';\n\t}", "public function getDefaultOrderInfo()\n {\n return array(\n 'column' => $this->getDefaultOrder(),\n 'sort' => $this->orderType,\n );\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }", "public function getOrder()\n {\n return 1;\n }" ]
[ "0.6192931", "0.6188133", "0.6177511", "0.6081596", "0.6013225", "0.59720266", "0.59715974", "0.5952166", "0.59015685", "0.58849114", "0.58798176", "0.58757997", "0.58624035", "0.5822314", "0.5808908", "0.5802866", "0.58016187", "0.5800808", "0.57749516", "0.57486755", "0.5726033", "0.5721089", "0.571269", "0.57010275", "0.569512", "0.5692069", "0.5689597", "0.56862354", "0.56856424", "0.5678065", "0.5639799", "0.5634729", "0.5626406", "0.56144744", "0.56054646", "0.5588889", "0.5580303", "0.5543156", "0.5541676", "0.5540406", "0.5537951", "0.55310786", "0.55291075", "0.5527051", "0.55175745", "0.55092716", "0.5499343", "0.54953766", "0.5488703", "0.5485016", "0.5482341", "0.54713255", "0.5465934", "0.5451406", "0.5451169", "0.54482806", "0.5434582", "0.54261136", "0.5421494", "0.54168385", "0.5411632", "0.54102165", "0.5402413", "0.54007304", "0.53950965", "0.5390185", "0.53856987", "0.53822905", "0.5382086", "0.537722", "0.53771734", "0.5375596", "0.53711057", "0.53680664", "0.536523", "0.5358649", "0.5355977", "0.53550565", "0.5353324", "0.53522325", "0.53451455", "0.5344132", "0.5342907", "0.53407955", "0.5339098", "0.5332871", "0.5328557", "0.5328229", "0.5324578", "0.5324578", "0.5324578", "0.5324578", "0.5324578", "0.5324578", "0.5324578", "0.5324578", "0.5324578", "0.5324578", "0.5324578" ]
0.65196717
1
Session Group Per Page
function getGroupPerPage() { return @$_SESSION[EWRPT_PROJECT_VAR . "_" . $this->TableVar . "_grpperpage"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGroupByPage() {}", "protected abstract function get_sessions();", "protected function get_sessions()\n {\n }", "public function init()\n {\n if(!isset($_SESSION[$this->_sGroup]))\n $_SESSION[$this->_sGroup]=[];\n }", "function wp_get_all_sessions()\n {\n }", "function SetUpDisplayGrps() {\n\tglobal $PHP_GET;\n\tglobal $PHP_SESSION;\n\tglobal $nDisplayGrps;\n\tglobal $nStartGrp;\n\t$sWrk = @$PHP_GET[EW_TABLE_GROUP_PER_PAGE];\n\tif ($sWrk <> \"\") {\n\t\tif (is_numeric($sWrk)) {\n\t\t\t$nDisplayGrps = intval($sWrk);\n\t\t} else {\n\t\t\tif (strtoupper($sWrk) == \"ALL\") { // Display All Records\n\t\t\t\t$nDisplayGrps = -1;\n\t\t\t} else {\n\t\t\t\t$nDisplayGrps = 3; // Non-numeric, Load Default\n\t\t\t}\n\t\t}\n\t\t$PHP_SESSION[EW_TABLE_SESSION_GROUP_PER_PAGE] = $nDisplayGrps; // Save to Session\n\n\t\t// Reset Start Position (Reset Command)\n\t\t$nStartGrp = 1;\n\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t} else {\n\t\tif (@$PHP_SESSION[EW_TABLE_SESSION_GROUP_PER_PAGE] <> \"\") {\n\t\t\t$nDisplayGrps = $PHP_SESSION[EW_TABLE_SESSION_GROUP_PER_PAGE]; // Restore from Session\n\t\t} else {\n\t\t\t$nDisplayGrps = 3; // Load Default\n\t\t}\n\t}\n}", "function parseSessions($urls, $organization_id)\n{\n global $http_response_header;\n foreach ($urls as $url) {\n\n // Log\n logger('SESSIONS: ' . $url);\n\n //\tGet main page\n $base = downloadPage($url);\n\n //\tRetrieve cookies\n $cookiess = '';\n if (isset($http_response_header)) {\n foreach ($http_response_header as $s) {\n if (preg_match('|^Set-Cookie:\\s*([^=]+)=([^;]+);(.+)$|', $s, $parts))\n $cookiess .= $parts[1] . '=' . $parts[2] . '; ';\n }\n }\n $cookiess = substr($cookiess, 0, -2);\n\n\n //\tParse main page\n//\t\tparseSessionsList ($base, $organization_id);\n\n // Search on DT page or not TODO: better solution needed\n preg_match('/form id=\"(.*?):sf:form1\"/', $base, $fmatches);\n $form_id = $fmatches[1];\n\n //\tRetreive pager form action\n preg_match('/form id=\"' . $form_id . ':sf:form1\".*?action=\"(.*?)\"/', $base, $matches);\n\n //\tRetreive some ViewState I have no fucking clue what it is for, but it must be present in POST\n preg_match('/id=\"javax\\.faces\\.ViewState\" value=\"(.*?)\"/', $base, $matchess);\n\n //\tRetreive number of pages\n preg_match('/Page 1 of (\\d+)/i', $base, $matchesp);\n\n if (!empty($matchesp[1]) && (int)$matchesp[1] > 0) {\n\n for ($i = 1; $i <= (int)$matchesp[1]; $i++) {\n\n //\tGet next page\n $postdata = http_build_query(\n array(\n $form_id . ':sf:form1' => $form_id . ':sf:form1',\n $form_id . ':sf:form1:menu1' => CURRENT_SESSION,\n $form_id . ':sf:form1:tableEx1:goto1__pagerGoButton.x' => 1,\n $form_id . ':sf:form1:tableEx1:goto1__pagerGoText' => $i,\n $form_id . ':sf:form1_SUBMIT' => 1,\n 'javax.faces.ViewState' => $matchess[1]\n )\n );\n $opts = array('http' =>\n array(\n 'method' => 'POST',\n 'header' => 'Cookie: ' . $cookiess . \"\\r\\n\" . 'Content-type: application/x-www-form-urlencoded',\n 'content' => $postdata\n )\n );\n $context = stream_context_create($opts);\n\n if ($subpage = file_get_contents(DZ_URL . $matches[1], false, $context)) {\n\n //\tParse sub page\n parseSessionsList($subpage, $organization_id);\n }\n }\n\n }\n }\n}", "public static function put_privilages_in_session($user_id){\n $conn= DBConnect::getConnection();\n if ($conn->connect_error) {\n die(\"Connection failed: \" . $conn->connect_error);\n }\n $sql=\"SELECT * FROM privilages where user_id=$user_id\";\n $result=$conn->query($sql);\n if ($result->num_rows ==0 ){ \n echo \"Error while fetching user privilages\";\n }\n else{\n while($row = $result->fetch_assoc()) {\n $_SESSION[\"customers_page\"]=$row[\"customers_page\"];\n $_SESSION[\"sessions_page\"]=$row[\"sessions_page\"];\n $_SESSION[\"financial_page\"]=$row[\"financial_page\"];\n $_SESSION[\"users_page\"]=$row[\"users_page\"];\n $_SESSION[\"ended_procecutions\"]=$row[\"ended_procecutions\"];\n \n } \n echo $_SESSION[\"customers_page\"];\n echo $_SESSION[\"sessions_page\"];\n echo $_SESSION[\"financial_page\"];\n echo $_SESSION[\"users_page\"];\n echo $_SESSION[\"ended_procecutions\"];\n }\n}", "function SetUpStartGroup() {\n\tglobal $PHP_SESSION, $PHP_GET;\n\tglobal $nStartGrp, $nTotalGrps, $nDisplayGrps;\n\n\t// Check for a START parameter\n\tif (@$PHP_GET[EW_TABLE_START_GROUP] != \"\") {\n\t\t$nStartGrp = $PHP_GET[EW_TABLE_START_GROUP];\n\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t} elseif (@$PHP_GET[\"pageno\"] != \"\") {\n\t\t$nPageNo = $PHP_GET[\"pageno\"];\n\t\tif (is_numeric($nPageNo)) {\n\t\t\t$nStartGrp = ($nPageNo-1)*$nDisplayGrps+1;\n\t\t\tif ($nStartGrp <= 0) {\n\t\t\t\t$nStartGrp = 1;\n\t\t\t} elseif ($nStartGrp >= intval(($nTotalGrps-1)/$nDisplayGrps)*$nDisplayGrps+1) {\n\t\t\t\t$nStartGrp = intval(($nTotalGrps-1)/$nDisplayGrps)*$nDisplayGrps+1;\n\t\t\t}\n\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t} else {\n\t\t\t$nStartGrp = @$PHP_SESSION[EW_TABLE_SESSION_START_GROUP];\n\t\t\tif (!is_numeric($nStartGrp) || $nStartGrp == \"\") {\n\t\t\t\t$nStartGrp = 1; // Reset start record counter\n\t\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t\t}\n\t\t}\n\t} else {\n\t\t$nStartGrp = @$PHP_SESSION[EW_TABLE_SESSION_START_GROUP];\n\t\tif (!is_numeric($nStartGrp) || $nStartGrp == \"\") {\n\t\t\t$nStartGrp = 1; // Reset start record counter\n\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t}\n\t}\n}", "function getSessionGroups($schedarray) {\n\t\t\t$sessiongroup = array();\n\t\t\tfor($i = 0; $i < count($schedarray); $i++) {\n\t\t\t\tif($schedarray[$i]['Date'] == $schedarray[$i+1]['Date']\n\t\t\t\t\t&& $schedarray[$i]['UserChildNo'] == $schedarray[$i+1]['UserChildNo']\n\t\t\t\t\t&& $schedarray[$i]['BookingStatus'] == $schedarray[$i+1]['BookingStatus']\n\t\t\t\t\t&& $schedarray[$i]['TeacherNo'] == $schedarray[$i+1]['TeacherNo']\n\t\t\t\t\t&& $schedarray[$i]['SubjectNo'] == $schedarray[$i+1]['SubjectNo']) {\n\t\t\t\t\t$plusone = strtotime($schedarray[$i]['StartTime']) + 3600;\n\t\t\t\t\t$nextone = strtotime($schedarray[$i+1]['StartTime']);\n\t\t\t\t\tif($plusone == $nextone) {\n\t\t\t\t\t\tif($timestart == \"\")\n\t\t\t\t\t\t\t$timestart = $schedarray[$i]['StartTime'];\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$timeend = strtotime($schedarray[$i+1]['StartTime']) + 3600;\n\t\t\t\t\t\t\t$timeend = date(\"H:i:s\", $timeend);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$timeend = strtotime($schedarray[$i]['StartTime']) + 3600;\n\t\t\t\t\t\t$timeend = date(\"H:i:s\", $timeend);\n\t\t\t\t\t\t$sesh = array(\"Date\" => $schedarray[$i]['Date'],\n\t\t\t\t\t\t\t\"UserChildNo\" => $schedarray[$i]['UserChildNo'],\n\t\t\t\t\t\t\t\"KidName\" => $schedarray[$i]['KidName'],\n\t\t\t\t\t\t\t\"TeacherNo\" => $schedarray[$i]['TeacherNo'],\n\t\t\t\t\t\t\t\"NickName\" => $schedarray[$i]['NickName'],\n\t\t\t\t\t\t\t\"SubjectNo\" => $schedarray[$i]['SubjectNo'],\n\t\t\t\t\t\t\t\"Subject\" => $schedarray[$i]['Subject'],\n\t\t\t\t\t\t\t\"Level\" => $schedarray[$i]['Level'],\n\t\t\t\t\t\t\t\"Status\" => $schedarray[$i]['BookingStatus'],\n\t\t\t\t\t\t\t\"TimeStart\" => $timestart,\n\t\t\t\t\t\t\t\"TimeEnd\" => $timeend);\n\t\t\t\t\t\tarray_push($sessiongroup, $sesh);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif($timestart == \"\") {\n\t\t\t\t\t\t$timestart = $schedarray[$i]['StartTime'];\n\t\t\t\t\t}\n\t\t\t\t\tif($timeend == \"\") {\n\t\t\t\t\t\t$timeend = strtotime($schedarray[$i]['StartTime']) + 3600;\n\t\t\t\t\t\t$timeend = date(\"H:i:s\", $timeend);\n\t\t\t\t\t}\n\t\t\t\t\t$sesh = array(\"Date\" => $schedarray[$i]['Date'],\n\t\t\t\t\t\t\"UserChildNo\" => $schedarray[$i]['UserChildNo'],\n\t\t\t\t\t\t\"KidName\" => $schedarray[$i]['KidName'],\n\t\t\t\t\t\t\"TeacherNo\" => $schedarray[$i]['TeacherNo'],\n\t\t\t\t\t\t\"NickName\" => $schedarray[$i]['NickName'],\n\t\t\t\t\t\t\"SubjectNo\" => $schedarray[$i]['SubjectNo'],\n\t\t\t\t\t\t\"Subject\" => $schedarray[$i]['Subject'],\n\t\t\t\t\t\t\"Level\" => $schedarray[$i]['Level'],\n\t\t\t\t\t\t\"Status\" => $schedarray[$i]['BookingStatus'],\n\t\t\t\t\t\t\"TimeStart\" => $timestart,\n\t\t\t\t\t\t\"TimeEnd\" => $timeend);\n\t\t\t\t\tarray_push($sessiongroup, $sesh);\n\t\t\t\t\t$timestart = \"\"; $timeend = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $sessiongroup;\n\t\t}", "function set_lines_per_page ($lines_per_page)\r\n {\r\n $_SESSION[\"lines_per_page\"] = $lines_per_page;\r\n }", "function pagination()\n {\n $qgroups = $this->db->query(\"SELECT COUNT(id) AS total FROM groups WHERE id_user='\".$this->general->id_user().\"'\");\n return $qgroups->row()->total;\n }", "public function get_all_session()\n\t\t{\n\t\t\treturn parent::get_all_items('session_items');\n\t\t}", "function sessionFields($resultSet){\r\n\t\t$_SESSION['id'] = $resultSet[0]->id;\r\n\t\t$_SESSION['username'] = $resultSet[0]->username;\r\n\t\t$_SESSION['name'] = $resultSet[0]->name;\r\n\t\t$_SESSION['surname'] = $resultSet[0]->surname;\r\n\t\t$_SESSION['email'] = $resultSet[0]->email;\r\n\t\t$_SESSION['role'] = $resultSet[0]->role;\r\n\t\t$_SESSION['picture'] = $resultSet[0]->picture;\r\n\t}", "function setGuestSubmissionsInSession(&$model) {\n\n $User = cmsFramework::getUser();\n\n // For guest users store newly submitted review ids for this user's session so they can be used for media submissions\n if(Sanitize::getBool($model->data,'isNew') && $User->id == 0) {\n\n switch($model->name) {\n\n case 'Review':\n\n $id = Sanitize::getInt($model->data[$model->name],'id');\n\n $session_ids = cmsFramework::getSessionVar('reviews','jreviews');\n\n $session_ids[$id] = cmsFramework::getCustomToken($id);\n\n cmsFramework::setSessionVar('reviews',$session_ids,'jreviews');\n\n break;\n\n case 'Listing':\n\n $id = Sanitize::getInt($model->data[$model->name],'id');\n\n $session_ids = cmsFramework::getSessionVar('listings','jreviews');\n\n $session_ids[$id] = cmsFramework::getCustomToken($id);\n\n cmsFramework::setSessionVar('listings',$session_ids,'jreviews');\n\n break;\n }\n }\n\n }", "public static function reloadSession(){\n $auth = App_Auth::getInstance();\n\n $userModel = new FrontendUser();\n $user = $userModel->findById(self::getSession()->id);\n $user->groups = $user->findManyToManyRowset('Group', 'FrontendUserGroup');\n $user->group = $user->groups[0];\n\n $session = new stdClass();\n foreach($user as $k => $v){\n $session->{$k} = $v;\n }\n $session->group->name = $user->get('group')->name;\n\n $auth->getStorage()->write($session);\n }", "public function sessions() {\n return $this->rich_model->get_sessions();\n // return $this->rich_model->get_mikrotik_sessions();\n }", "public function count_session()\n\t\t{\n\t\t\treturn parent::count_list('session_items');\n\t\t}", "function tx_wseevents_sessionslist(&$page) {\n\t\tglobal $BACK_PATH;\n\n\t\tparent::tx_wseevents_backendlist($page);\n\t\t$this->tableName = $this->tableSessions;\n\n\t\t$this->backPath = $BACK_PATH;\n#debug($BACK_PATH,'BACK_PATH');\n#\t\t$this->page = $page;\n\t}", "public function getPageviewsPerSession(Period $period);", "function requestSessionInfo()\n {\n //para pasarselo al aside;\n\n $sessionLevel = $this->loginController->GetSessionAuthLevel();\n $this->view->setSessionLevel($sessionLevel);\n\n $sessionName = $this->loginController->GetSessionUsername();\n $this->view->setSessionName($sessionName);\n }", "public function listSessions(Request $request, $id = null, $page='page_a') {\n $lifetime = 300; // 5 min.\n $this->repo->setModel('\\App\\Models\\Session')->where('last_activity', '>=', Carbon::now()->getTimestamp() - $lifetime);\n if (!is_null($id)) $this->repo->where('user_id','=',$id);\n return $this->repo->paginateArraySearch($request,$page);\n }", "protected function manageSession()\n {\n $this->session = new WebsiteSession();\n foreach ($this->eventRequest->getSession() as $key => $value) {\n\n if ($key == 'createdAt') {\n $value = time();\n }\n\n $method = 'set' . ucwords($key);\n if (method_exists($this->session, $method)) {\n $this->session->$method($value);\n }\n }\n }", "public function scrapeUniqueActivities($activitySessions);", "function session(){\n\t\t$t = strtolower($_SERVER['HTTP_USER_AGENT']);\n\t\tif(strpos($t,'esnc.net') !== FALSE || strpos($t,'search') !== FALSE || strpos($t,'bot') !== FALSE || strpos($t,'spider') !== FALSE || strpos($t,'crawler') !== FALSE) return;//exclude search engine and other browser\n\t\tsession_save_path(PATH_SESSION);\n\t\tsession_cache_limiter(SESSION_CACHE);\n\t\tsession_cache_expire(SESSION_TIMEOUT);\n\t\tsession_name(SESSION_NAME);\n\t\tsession_set_cookie_params(0,URL_ROOT);\n\t\tsession_start();\n\t\tif(!isset($_SESSION['ctrl'])){\n\t\t\t$_SESSION['USip'] = $t=$_SERVER['REMOTE_ADDR'];\n\t\t\t$_SESSION['UA'] = $_SERVER['HTTP_USER_AGENT'];\n\t\t\t$_SESSION['ctrl']=1;//guest session start\n\t\t\t$_SESSION['USid']=-1;\n\t\t\t$_SESSION['USname']='';\n\t\t\t$_SESSION['USemail']='';\n\t\t\t$_SESSION['USlastlogin']='';\n\t\t\t$_SESSION['priv']=0;\n\t\t\t$_SESSION['logontries'] = 0;\n\t\t\t/* implement hit counter\t\n\t\t\texclude ip from 192.168.0.x,10.x.x.x,\n\t\t\t*/\n\t\t\tif(strpos($t,'192.') !== 0 && strpos($t,'10.') !== 0 && ($visit=(int)@file_get_contents(PATH_GLOBAL.'visit.txt')))\n\t\t\t\tfile_put_contents(PATH_GLOBAL.'visit.txt',++$visit,LOCK_EX);\n\t\t};\n\t\t$this->load();\n\t}", "function attendance_fill_groupid($formdata, &$sessions, $sess) {\n if ($formdata->sessiontype == mod_attendance_structure::SESSION_COMMON) {\n $sess = clone $sess;\n $sess->groupid = 0;\n $sessions[] = $sess;\n } else {\n foreach ($formdata->groups as $groupid) {\n $sess = clone $sess;\n $sess->groupid = $groupid;\n $sessions[] = $sess;\n }\n }\n}", "public function testGroupPagesLoads() {\n\t\t$categoryElementLocator = $this->locatorObj->readConfigData ( \"categoryLocator\" );\n\t\t$articleCountLocator = $this->locatorObj->readConfigData ( \"articleCounter\" );\n\t\t$this->currentWindow ()->maximize ();\n\t\t$this->url ( \"/\" );\n\t\t$this->logger->info ( \"*************** start of GroupPagesLoads testcase*********** \" );\n\t\t$this->applicationFunctionObj->navigateToMainPage ( $this );\n\t\t$this->applicationFunctionObj->waitUntilElementIsVisible ( $this,$categoryElementLocator,\"name\" );\n\t\t$this->byName ( $categoryElementLocator)->click ();\n\t\t$this->applicationFunctionObj->waitUntilElementIsVisible ( $this,$articleCountLocator,\"xpath\");\n\t\t$GrouppageCount = $this->byXPath ( $articleCountLocator )->text ();\n\t\t$this->logger->info ( \"The count value of the available results is fetched\" );\n\t\t$parts = explode ( ' ', $GrouppageCount );\n\t\t$count = ( int ) array_values ( $parts ) [0];\n\t\tif ($count > 1500) {\n\t\t\t$this->logger->info ( \"Group page is loaded successfully and count is greater than 1500\" );\n\t\t} else {\n\t\t\t$this->fail ( \"Group page is not fully loaded\" );\n\t\t}\n\t\t$this->logger->info ( \"*************** end of GroupPagesLoads testcase********** \" );\n\t}", "public function load_group(){\n $this->_compteur = 0;\n $this->_id_list_group = null;\n $this->_statut_group = null;\n $this->_list_group=null;\n $this->_users_group = null;\n $this->_all_group = null;\n\n /* $groups = array();\n if (!session()->has('group')) {\n session(['group' => $groups]);\n }//*/\n\n\n $this->_all_group = DB::table('group')->get();\n $this->_users_group = usergroup::where('user_ID', '=', Auth::id())->where('statut','=', 'actif')->get();\n\n $_users_group2 = usergroup::where('user_ID', '=', Auth::id())->get();\n foreach ($_users_group2 as $_el){\n $this->_statut_group[''.$_el->group_ID.''] = $_el->statut;\n\n }\n\n foreach ($this->_users_group as $element){\n $this->_list_group[$this->_compteur] = group::where('id','=',$element['group_ID'])->first();\n $this->_id_list_group[$this->_compteur] = $this->_list_group[$this->_compteur]['id'];\n //$this->_statut_group[''.$this->_id_list_group[$this->_compteur].''] = $element->statut;\n\n /* if(!array_has(session('group'),$this->_compteur))\n {\n session()->push('group',$element['group_ID']);\n }//*/\n $this->_compteur++;\n session(['menu' => 'groupe']);\n\n }\n\n }", "public function sessions() {\r\n\t\treturn self::request(self::HTTP_GET, 'sessions');\r\n\t}", "function add_session_group_user() {\r\n // set connection var\r\n global $db;\r\n\r\n // protect from unauthorized access\r\n if (!isset($_SESSION['user']) or !isset($_SESSION['group'])) {\r\n logout();\r\n die();\r\n }\r\n\r\n if (!isset($_POST['formSurveyGroupUserUsername']) || \r\n (($_POST['formSurveyGroupUserUsername'] == '') && ($_POST['formSurveyGroupUserEmail'] == ''))) {\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Моля, въведете Потребителско Име или Email за търсене на потребителя!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=survey_group');\r\n die();\r\n }\r\n\r\n $username = $_POST['formSurveyGroupUserUsername'];\r\n\r\n $sql = \"SELECT id\r\n FROM users\r\n WHERE username = '$username'\r\n AND is_active = '1';\";\r\n\r\n $users = array();\r\n $new_group_user = null;\r\n foreach ($db->query($sql) as $key => $value) {\r\n $users[$key] = $value;\r\n foreach ($users[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $new_group_user = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n if ($new_group_user != null) {\r\n $group = new Group();\r\n $group = unserialize($_SESSION['group']);\r\n $session_group = new Group;\r\n $session_group = unserialize($_SESSION['group']);\r\n $users = $session_group->getMembersArray();\r\n if (!in_array($new_group_user, $users)) {\r\n array_push($users, $new_group_user);\r\n $session_group->setMembers(serialize($users));\r\n $_SESSION['group'] = serialize($session_group);\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Вие успешно добавихте потребител към групата!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=survey_group');\r\n } else {\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Този потребител е вече добавен към групата!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=survey_group');\r\n }\r\n } else {\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Няма открит потребител с тези данни!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=survey_group');\r\n }\r\n}", "function index($page = 0)\n\t{\n\t\t$this->auth->restrict('groups.view');\n\t\t\n\t\t$filter = $this->input->get(NULL, TRUE);\n\t\t$filter['pp'] = element('pp', $filter, 10);\n\t\t\n\t\t$this->load->library('pagination');\n\t\t$config = array(\n\t\t\t'base_url' => site_url('groups/index'),\n\t\t\t'total_rows' => $this->groups_model->count_all(),\n\t\t\t'per_page' => $filter['pp'],\n\t\t\t'uri_segment' => 3,\n\t\t);\n\t\t$this->pagination->initialize($config);\n\t\t\n\t\t$this->users_model->set_filter($filter);\n\t\t$this->users_model->order_by('g_name', 'asc');\n\t\t$this->users_model->limit($config['per_page'], $page);\n\t\t\n\t\t$this->data['filter'] = $filter;\n\t\t$this->data['groups'] = $this->groups_model->get_all();\n\t\t\n\t\t$this->layout->set_js('views/groups/index');\n\t\t\n\t\t$this->layout->set_title(lang('configure_groups'));\n\t\t$this->data['subnav_active'] = 'groups';\n\t}", "public function paginateMentorshipSessions($items, $perPage = 10) {\n $currentPage = LengthAwarePaginator::resolveCurrentPage();\n $itemsCount = $items ? count($items) : 0;\n // FIX for searching with page number, when search has fetched less results\n // (fix: go to the first page!)\n if($currentPage > ceil($itemsCount / $perPage))\n $currentPage = \"1\";\n\n if (!empty($items)) {\n //Slice the collection to get the items to display in current page\n $currentPageItems = $items->slice(($currentPage - 1) * $perPage, $perPage);\n } else {\n $currentPageItems = new Collection();\n }\n\n //Create our paginator and pass it to the view\n return new LengthAwarePaginator($currentPageItems, $itemsCount, $perPage);\n }", "public function getSessionInstances()\n {\n $sessionObjects = [];\n foreach ($this->objects as $information) {\n if (isset($information['i']) && $information['s'] === ObjectConfiguration::SCOPE_SESSION) {\n $sessionObjects[] = $information['i'];\n }\n }\n return $sessionObjects;\n }", "function pageGroup() {\n $thisDir = pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME);\n $thisPage = pathinfo($_SERVER['PHP_SELF'], PATHINFO_BASENAME);\n\n $result = '';\n\n if (($thisDir == '/') && ($thisPage == 'index.php')) {\n $result = 'Home';\n }\n else if ($thisDir == '/why-choose-us') {\n $result = 'Why Choose Us?';\n }\n else if (($thisDir == '/big-button-cell-phone') && ($thisPage == 'index.php')) {\n $result = 'Phone';\n }\n else if ($thisDir == '/senior-cell-phone-plans') {\n $result = 'Plans';\n }\n else if ($thisDir == '/shop') {\n $result = 'Shop';\n }\n else if ($thisDir == '/catalog') {\n $result = 'Shop';\n }\n else if ($thisDir == '/one-call') {\n $result = 'oneCall';\n }\n else if ($thisDir == '/activate') {\n $result = 'Activate Phone';\n }\n\n return $result;\n //error_log(\"result: \" . $result);\n }", "public function loadGroupAction () {\r\n \t\r\n \t$currentCity = $this->get('session_service')->getCity();\r\n \t$city = $this->getDoctrine()->getEntityManager()->getRepository('CTRVCommonBundle:City')->find($currentCity->getId());\r\n \tif ($currentCity == null) {\r\n \t\t$this->get('session')->getFlashBag()->add('error', $this->get('translator')->trans('session.city.not_found'));\r\n \t\t$this->redirect($this->generateUrl(\"home\"));\r\n \t}\r\n \t\r\n \t$page = intval ($this->getRequest()->get(\"page\",1));\r\n \t//recupére l'ensemble des groupes existants\r\n \t$groups = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroup();\r\n \t//recupére l'ensemble des groupes de la ville courante\r\n \t$groups_by_city = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupByCity($city);\r\n \t// on crée un tableau\r\n \t$tab = array();\r\n \t// On récupére le nombre de membres de chaque groupe pour le placer dans le tableau\r\n \tforeach ($groups_by_city as $entity) {\r\n \t\t$tab[$entity->getId()] = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupMemberNumber($entity);\r\n \t}\r\n \t\r\n \t //pagination\r\n $group_number = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupNumber();\r\n $nb_entities1 = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupByCityNumber($city);\r\n $nb_entities_page = Constants::groupes_number_per_page;\r\n $nb_pages = ceil($nb_entities1/$nb_entities_page);\r\n $offset = ($page-1) * $nb_entities_page;\r\n \r\n $groups_by_city = array_slice($groups_by_city, $offset,$nb_entities_page);\r\n \t\r\n \treturn array (\r\n 'group_member'=>$tab,\r\n 'entities' => $groups,\r\n \t\t\t'entities1' => $groups_by_city,\r\n 'nb_pages' => $nb_pages,\r\n 'page' => $page,\r\n 'nb_entities' => $group_number,\r\n \t\t\t'nb_entities1' => $nb_entities1,\r\n 'city'=>$currentCity\r\n );\r\n }", "function setSessions(array $array = array())\n{\n foreach ($array as $key => $value)\n {\n setSession($key, $value);\n }\n}", "public function getShoppingAdGroups(\n $session\n ) {\n $reportType = \"ADGROUP_PERFORMANCE_REPORT\";\n $reportRange = \"LAST_30_DAYS\";\n $selectedFields = self::$REPORT_TYPE_TO_DEFAULT_SELECTED_FIELDS[$reportType];\n\n // There is no paging mechanism for reporting, so we fetch all\n // results at once.\n $collection = self::downloadReport(\n $reportType,\n $reportRange,\n new ReportDownloader($session),\n $selectedFields\n );\n\n $shoppingAdGroups = [];\n foreach ($collection as $el) {\n $a = $el[\"@attributes\"];\n $id = $a[\"adGroupID\"];\n if (($a[\"adGroupType\"] == \"Shopping - Product\") && ($a[\"adGroupState\"] == \"enabled\")) {\n $shoppingAdGroups[$id] = [\n \"adGroupID\" => $a[\"adGroupID\"],\n \"adGroup\" => $a[\"adGroup\"],\n \"adGroupType\" => $a[\"adGroupType\"],\n \"adGroupState\" => $a[\"adGroupState\"],\n \"campaignID\" => $a[\"campaignID\"],\n \"impressions\" => $a[\"impressions\"],\n \"clicks\" => $a[\"clicks\"],\n \"ctr\" => $a[\"ctr\"],\n \"cost\" => self::conv($a[\"cost\"]),\n \"defaultMaxCPC\" => self::conv($a[\"defaultMaxCPC\"]),\n \"conversions\" => $a[\"conversions\"],\n \"totalConvValue\" => $a[\"totalConvValue\"]\n ];\n }\n }\n\n // print_r($shoppingAdGroups);\n // $pageNo = 1;\n // exit;\n return $shoppingAdGroups;\n\n // Create a length aware paginator to supply report results for the\n // view, based on the specified number of entries per page.\n // $reportResults = new LengthAwarePaginator(\n // $collection->forPage($pageNo, $entriesPerPage),\n // $collection->count(),\n // $entriesPerPage,\n // $pageNo,\n // ['path' => url('download-report')]\n // );\n\n // return view(\n // 'report-results',\n // compact('reportResults', 'selectedFields')\n // );\n }", "public static function all()\n {\n return $_SESSION;\n }", "public function get_sessions($request){\r\n\t\treturn $request['session'];\r\n\t}", "function session_enter()\n{\n $sess_name = session_name(\"FormatikAPI\");\n session_start();\n}", "public function getNGroups() {}", "protected function _session()\n {\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'set data on session markers',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n if ($this->_session && $this->_session->returns('display')) {\n foreach ($this->_session->returns('display') as $key => $val) {\n $this->generate('session_display;' . $key, $val);\n }\n }\n }", "function SetUpDisplayGrps() {\n\t\tglobal $deals_details;\n\t\t$sWrk = @$_GET[EWRPT_TABLE_GROUP_PER_PAGE];\n\t\tif ($sWrk <> \"\") {\n\t\t\tif (is_numeric($sWrk)) {\n\t\t\t\t$this->DisplayGrps = intval($sWrk);\n\t\t\t} else {\n\t\t\t\tif (strtoupper($sWrk) == \"ALL\") { // display all groups\n\t\t\t\t\t$this->DisplayGrps = -1;\n\t\t\t\t} else {\n\t\t\t\t\t$this->DisplayGrps = 50; // Non-numeric, load default\n\t\t\t\t}\n\t\t\t}\n\t\t\t$deals_details->setGroupPerPage($this->DisplayGrps); // Save to session\n\n\t\t\t// Reset start position (reset command)\n\t\t\t$this->StartGrp = 1;\n\t\t\t$deals_details->setStartGroup($this->StartGrp);\n\t\t} else {\n\t\t\tif ($deals_details->getGroupPerPage() <> \"\") {\n\t\t\t\t$this->DisplayGrps = $deals_details->getGroupPerPage(); // Restore from session\n\t\t\t} else {\n\t\t\t\t$this->DisplayGrps = 50; // Load default\n\t\t\t}\n\t\t}\n\t}", "function add_survey_group_susi_student() {\r\n // get global user object\r\n global $user;\r\n\r\n // protect from unauthorized access\r\n if (!isset($user) or ! isset($_POST['formSurveyAddGroupSusiStudentSubmit']) or ! isset($_POST['formSurveyAddGroupSusiStudent'])) {\r\n if ($_POST['formSurveyAddGroupSusiStudent'] != 'formSurveyAddGroupSusiStudentGroup') {\r\n logout();\r\n die();\r\n }\r\n }\r\n\r\n $session_groups = unserialize($_SESSION['session_groups']);\r\n if ($_POST['formSurveyAddGroupSusiStudentGroup'][0] == '0') {\r\n $session_groups['student'] = get_susi_student_groups();\r\n } else {\r\n $session_groups['student'] = $_POST['formSurveyAddGroupSusiStudentGroup'];\r\n }\r\n\r\n $session_groups['type'] = '';\r\n\r\n $_SESSION['session_groups'] = serialize($session_groups);\r\n\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Вие добавихте анкетната група студенти!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=survey_edit');\r\n}", "public function actionGetListaSessions()\r\n\t\t{\r\n\t\t\treturn $varSession = [\r\n\t\t\t\t\t\t\t'postData',\r\n\t\t\t\t\t\t\t'conf',\r\n\t\t\t\t\t\t\t'begin',\r\n\t\t\t\t\t];\r\n\r\n\t\t}", "function set_current_group($courseid, $groupid) {\n global $SESSION;\n return $SESSION->currentgroup[$courseid] = $groupid;\n}", "function SetUpDisplayGrps() {\n\t\tglobal $dealers_reports;\n\t\t$sWrk = @$_GET[EWRPT_TABLE_GROUP_PER_PAGE];\n\t\tif ($sWrk <> \"\") {\n\t\t\tif (is_numeric($sWrk)) {\n\t\t\t\t$this->DisplayGrps = intval($sWrk);\n\t\t\t} else {\n\t\t\t\tif (strtoupper($sWrk) == \"ALL\") { // display all groups\n\t\t\t\t\t$this->DisplayGrps = -1;\n\t\t\t\t} else {\n\t\t\t\t\t$this->DisplayGrps = 50; // Non-numeric, load default\n\t\t\t\t}\n\t\t\t}\n\t\t\t$dealers_reports->setGroupPerPage($this->DisplayGrps); // Save to session\n\n\t\t\t// Reset start position (reset command)\n\t\t\t$this->StartGrp = 1;\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} else {\n\t\t\tif ($dealers_reports->getGroupPerPage() <> \"\") {\n\t\t\t\t$this->DisplayGrps = $dealers_reports->getGroupPerPage(); // Restore from session\n\t\t\t} else {\n\t\t\t\t$this->DisplayGrps = 50; // Load default\n\t\t\t}\n\t\t}\n\t}", "function delete_session_group_user() {\r\n // protect from unauthorized access\r\n if (!isset($_SESSION['user']) or ! isset($_SESSION['group'])) {\r\n logout();\r\n die();\r\n }\r\n\r\n // get the URL query string\r\n $query_str = $_SERVER['QUERY_STRING'];\r\n\r\n // parse the URL query string to array\r\n $query = array();\r\n parse_str($query_str, $query);\r\n\r\n if (!isset($query['user_id'])) {\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Невалиден адрес!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=my_surveys');\r\n }\r\n\r\n $session_group = new Group;\r\n $session_group = unserialize($_SESSION['group']);\r\n $users = $session_group->getMembersArray();\r\n if (($key = array_search($query['user_id'], $users)) !== false) {\r\n unset($users[$key]);\r\n }\r\n $session_group->setMembers(serialize($users));\r\n $_SESSION['group'] = serialize($session_group);\r\n\r\n $cookie_key = 'msg';\r\n $cookie_value = 'Вие успешно изтрихте потребител от групата!';\r\n setcookie($cookie_key, $cookie_value, time() + 1);\r\n header('Location: ' . ROOT_DIR . '?page=survey_group');\r\n}", "public function getSession();", "function get_lines_per_page ()\r\n {\r\n return $_SESSION[\"lines_per_page\"];\r\n }", "public function getGroups(Request $request, $page) {\n $filter = $request->input('filter');\n $user = $request->get('auth');\n $immunity = User::getImmunity($user->userId);\n\n $getGroupSql = Group::where('immunity', '<', $immunity)\n ->where('name', 'LIKE', Value::getFilterValue($request, $filter))\n ->orderBy('name', 'ASC');\n\n $total = PaginationUtil::getTotalPages($getGroupSql->count('groupId'));\n $groups = $getGroupSql->take($this->perPage)->skip(PaginationUtil::getOffset($page))->get();\n\n foreach ($groups as $group) {\n $group->sitecpPermissions = $this->buildSitecpPermissions($user, $group);\n }\n\n return response()->json(\n [\n 'groups' => $groups,\n 'page' => $page,\n 'total' => $total\n ]\n );\n }", "function geefSession() {\n echo '<pre>';\n print_r( $_SESSION );\n echo '</pre>';\n}", "public function index()\n {\n return view('groups.index' , ['groups' => Auth::user()->groups()->paginate(10)]);\n }", "private function page()\n {\n $records = array();\n $uid = $this->pObj->zz_getMaxDbUid('sys_template');\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrg($uid);\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgCalCaddy($uid);\n\n // #61838, 140923, dwildt, 2+\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgCal($uid);\n\n // #61826, 140923, dwildt, 2+\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgCalEvents($uid);\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgCalLocations($uid);\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgDocuments($uid);\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgDocumentsCaddy($uid);\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgHeadquarters($uid);\n\n // #61779, 140921, dwildt, 2+\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgJobs($uid);\n\n // #61779, 140921, dwildt, 2+\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgJobsJobsApply($uid);\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgNews($uid);\n\n // #61779, 140921, dwildt, 2+\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgService($uid);\n\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgStaff($uid);\n\n // #67210, 150531, dwildt, 2+\n $uid = $uid + 1;\n $records[$uid] = $this->pageOrgStaffVcard($uid);\n\n return $records;\n }", "static function getUserGroups(){\n \n }", "function attendance_get_user_sessions_log_full($userid, $pageparams) {\n global $DB;\n // All taken sessions (including previous groups).\n\n $usercourses = enrol_get_users_courses($userid);\n list($usql, $uparams) = $DB->get_in_or_equal(array_keys($usercourses), SQL_PARAMS_NAMED, 'cid0');\n\n $coursesql = \"(1 = 1)\";\n $courseparams = array();\n $now = time();\n if ($pageparams->sesscourses === 'current') {\n $coursesql = \"(c.startdate = 0 OR c.startdate <= :now1) AND (c.enddate = 0 OR c.enddate >= :now2)\";\n $courseparams = array(\n 'now1' => $now,\n 'now2' => $now,\n );\n }\n\n $datesql = \"(1 = 1)\";\n $dateparams = array();\n if ($pageparams->startdate && $pageparams->enddate) {\n $datesql = \"ats.sessdate >= :sdate AND ats.sessdate < :edate\";\n $dateparams = array(\n 'sdate' => $pageparams->startdate,\n 'edate' => $pageparams->enddate,\n );\n }\n\n if ($pageparams->groupby === 'date') {\n $ordersql = \"ats.sessdate ASC, c.fullname ASC, att.name ASC, att.id ASC\";\n } else {\n $ordersql = \"c.fullname ASC, att.name ASC, att.id ASC, ats.sessdate ASC\";\n }\n\n // WHERE clause is important:\n // gm.userid not null => get unmarked attendances for user's current groups\n // ats.groupid 0 => get all sessions that are for all students enrolled in course\n // al.id not null => get all marked sessions whether or not user currently still in group.\n $sql = \"SELECT ats.id, ats.groupid, ats.sessdate, ats.duration, ats.description, ats.statusset,\n al.statusid, al.remarks, ats.studentscanmark, ats.allowupdatestatus, ats.autoassignstatus,\n ats.preventsharedip, ats.preventsharediptime, ats.studentsearlyopentime,\n ats.attendanceid, att.name AS attname, att.course AS courseid, c.fullname AS cname\n FROM {attendance_sessions} ats\n JOIN {attendance} att\n ON att.id = ats.attendanceid\n JOIN {course} c\n ON att.course = c.id\n LEFT JOIN {attendance_log} al\n ON ats.id = al.sessionid AND al.studentid = :uid\n LEFT JOIN {groups_members} gm\n ON (ats.groupid = gm.groupid AND gm.userid = :uid1)\n WHERE (gm.userid IS NOT NULL OR ats.groupid = 0 OR al.id IS NOT NULL)\n AND att.course $usql\n AND $datesql\n AND $coursesql\n ORDER BY $ordersql\";\n\n $params = array(\n 'uid' => $userid,\n 'uid1' => $userid,\n );\n $params = array_merge($params, $uparams);\n $params = array_merge($params, $dateparams);\n $params = array_merge($params, $courseparams);\n $sessions = $DB->get_records_sql($sql, $params);\n\n foreach ($sessions as $sess) {\n if (empty($sess->description)) {\n $sess->description = get_string('nodescription', 'attendance');\n } else {\n $modinfo = get_fast_modinfo($sess->courseid);\n $cmid = $modinfo->instances['attendance'][$sess->attendanceid]->get_course_module_record()->id;\n $ctx = context_module::instance($cmid);\n $sess->description = format_text(file_rewrite_pluginfile_urls($sess->description,\n 'pluginfile.php', $ctx->id, 'mod_attendance', 'session', $sess->id));\n }\n }\n\n return $sessions;\n}", "function save_session() {\n $this->operation_result=DAL_Website_Visitor::{\"save_session\"}($this->visited_page,$this->visit_start,$this->visit_end);\n return $this->operation_result;\n }", "function member_groups_page() {\r\n require_once( $plugin_dir . \"email-newsletter-files/page-groups.php\" );\r\n }", "public function itemsperpageAction()\r\n {\r\n $itemCountPerPageSession = new Zend_Session_Namespace('itemCountPerPage');\r\n $itemCountPerPageSession->itemCountPerPage['citype'] = $this->_getParam('rowCount');\r\n $this->_redirect('citype/index');\r\n exit;\r\n }", "function email_manage_mailsperpage() {\n\tglobal $SESSION;\nprint_object($_POST);\n\tif ( ! empty( $_POST['perpage'] ) and is_int($_POST['perpage']) ) {\n\t\t$SESSION->email_mailsperpage = $_POST['perpage'];\n\t\techo 'Change for: '.$_POST['perpage'];\n\t} else {\n\t\t$SESSION->email_mailsperpage = 10; // Default value\n\t}\n}", "private function _get_groups() {\n\n\t\t$request = new Gitlab();\n\t\t$gitlab = $request->init_request();\n\n\t\t$groups = [];\n\t\t$page_index = 1;\n\n\t\tdo {\n\n\t\t\t$response = $gitlab->get( \"groups?per_page=100&page=$page_index\" );\n\t\t\t$response_arr = json_decode( $response->body, true );\n\n\t\t\t$groups = array_merge( $groups, $response_arr );\n\n\t\t\t$page_index = get_next_page( $response );\n\n\t\t} while ( ! empty( $page_index ) );\n\n\t\treturn $groups;\n\n\t}", "public function retrieveConcurrentSessions()\n {\n $endpoint = self::$endpoint . '/statistics' . SessionEndpoint::$endpoint;\n return self::sendRequest(Method::GET, $endpoint);\n }", "function fetchGroupPages($group_id) {\n try {\n global $db_table_prefix;\n\n $results = array();\n\n $db = pdoConnect();\n\n $sqlVars = array();\n\n $query = \"SELECT\n\t\tid,\n\t\tpage_id\n\t\tFROM \".$db_table_prefix.\"group_page_matches\n\t\tWHERE group_id = :group_id\n\t\t\";\n\n $stmt = $db->prepare($query);\n\n $sqlVars[':page_id'] = $page_id;\n\n if (!$stmt->execute($sqlVars)){\n // Error\n return false;\n }\n\n while ($r = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $page_id = $r['page_id'];\n $results[$page_id] = $r;\n }\n $stmt = null;\n\n return $results;\n } catch (PDOException $e) {\n addAlert(\"danger\", \"Oops, looks like our database encountered an error.\");\n error_log(\"Error in \" . $e->getFile() . \" on line \" . $e->getLine() . \": \" . $e->getMessage());\n return false;\n } catch (ErrorException $e) {\n addAlert(\"danger\", \"Oops, looks like our server might have goofed. If you're an admin, please check the PHP error logs.\");\n return false;\n }\n}", "function index( $page = 0 )\n{\n$this->model_group->pagination( TRUE );\n$data_info = $this->model_group->lister( $page );\n$fields = $this->model_group->fields( TRUE );\n\n$this->template->assign( 'pager', $this->model_group->pager );\n$this->template->assign( 'group_fields', $fields );\n$this->template->assign( 'group_data', $data_info );\n$this->template->assign( 'table_name', 'group' );\n$this->template->assign( 'template', 'list_group' );\n$this->template->display( 'frame_admin.tpl' );\n}", "public function groups();", "public function groups();", "public static function use_sessions()\n {\n \\Session::started() or \\Session::load();\n }", "public function findGroups() {\n\t\t\n\t}", "function fetchPageGroups($page_id) {\n try {\n global $db_table_prefix;\n\n $results = array();\n\n $db = pdoConnect();\n\n $sqlVars = array();\n\n $query = \"SELECT\n id,\n group_id\n FROM \".$db_table_prefix.\"group_page_matches\n WHERE page_id = :page_id\n \";\n $stmt = $db->prepare($query);\n\n $sqlVars[':page_id'] = $page_id;\n\n if (!$stmt->execute($sqlVars)){\n // Error\n return false;\n }\n\n while ($r = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $group_id = $r['group_id'];\n $results[$group_id] = $r;\n }\n $stmt = null;\n\n return $results;\n } catch (PDOException $e) {\n addAlert(\"danger\", \"Oops, looks like our database encountered an error.\");\n error_log(\"Error in \" . $e->getFile() . \" on line \" . $e->getLine() . \": \" . $e->getMessage());\n return false;\n } catch (ErrorException $e) {\n addAlert(\"danger\", \"Oops, looks like our server might have goofed. If you're an admin, please check the PHP error logs.\");\n return false;\n }\n}", "public function scrapeActivitySessions($crawlerObj);", "abstract protected function getSession();", "function cek_session(){\n echo '<pre>';\n print_r($this->session->all_userdata());\n echo '</pre>';\n }", "public function getAll() {\n \n $this->start();\n return $_SESSION;\n \n }", "public function group_list()\n\t{\n\t\t$data = [\n\t\t\t'group' => $this->todo->get_group_list((int) $this->session->userdata('uid'))\n\t\t];\n\t\t$this->page->set_title(\"Group List\");\n\t\t$this->page->build('friend/group_list', $data);\n\t}", "function get_groups() {\n\t\tif (!isset($_SESSION['groups']))\n\t\t\tlgi_mysql_fetch_session(\"SELECT GROUP_CONCAT(`name`) AS `groups` FROM %t(usergroups) AS p, %t(usercerts) AS c WHERE p.`usercertid`=c.`id` AND c.`user`='%%'\", $this->userid);\n\t\treturn explode(',', $_SESSION['groups']);\n\t}", "public function fetchSessionData() {}", "static function PageMembergroups(Page $page)\n {\n if (!$page->Exists())\n {\n return array();\n }\n $sql = Access::SqlBuilder();\n $tblPmg = PageMembergroup::Schema()->Table();\n $tblMg = Membergroup::Schema()->Table();\n $join = $sql->Join($tblPmg);\n $joinCondition = $sql->Equals($tblPmg->Field('MemberGroup'), $tblMg->Field('ID'));\n $where = $sql->Equals($tblPmg->Field('Page'), $sql->Value($page->GetID()));\n $orderBy = $sql->OrderList($sql->OrderAsc($tblMg->Field('Name')));\n \n return Membergroup::Schema()->Fetch(false, $where, $orderBy, null, 0, null, $join, JoinType::Inner(), $joinCondition);\n }", "public function testSession(Request $request) {\n $counter = $request->getSession()->get('menu_test', 0);\n $request->getSession()->set('menu_test', ++$counter);\n return ['#markup' => new FormattableMarkup('Session menu_test is @count', ['@count' => $counter])];\n }", "private function construct_user_allsessions_log(user_data $userdata) {\n global $USER;\n\n $allsessions = new stdClass();\n\n $shortform = false;\n if ($USER->id == $userdata->user->id) {\n // This is a user viewing their own stuff - hide non-relevant columns.\n $shortform = true;\n }\n\n $groupby = $userdata->pageparams->groupby;\n\n $table = new html_table();\n $table->attributes['class'] = 'generaltable attwidth boxaligncenter allsessions';\n $table->head = array();\n $table->align = array();\n $table->size = array();\n $table->colclasses = array();\n $colcount = 0;\n $summarywidth = 0;\n\n // If grouping by date, we need some form of date up front.\n // Only need course column if we are not using course to group\n // (currently date is only option which does not use course).\n if ($groupby === 'date') {\n $table->head[] = '';\n $table->align[] = 'left';\n $table->colclasses[] = 'grouper';\n $table->size[] = '1px';\n\n $table->head[] = get_string('date');\n $table->align[] = 'left';\n $table->colclasses[] = 'datecol';\n $table->size[] = '1px';\n $colcount++;\n\n $table->head[] = get_string('course');\n $table->align[] = 'left';\n $table->colclasses[] = 'colcourse';\n $colcount++;\n } else {\n $table->head[] = '';\n $table->align[] = 'left';\n $table->colclasses[] = 'grouper';\n $table->size[] = '1px';\n if ($groupby === 'activity') {\n $table->head[] = '';\n $table->align[] = 'left';\n $table->colclasses[] = 'grouper';\n $table->size[] = '1px';\n }\n }\n\n // Need activity column unless we are using activity to group.\n if ($groupby !== 'activity') {\n $table->head[] = get_string('pluginname', 'mod_attendance');\n $table->align[] = 'left';\n $table->colclasses[] = 'colcourse';\n $table->size[] = '*';\n $colcount++;\n }\n\n // If grouping by date, it belongs up front rather than here.\n if ($groupby !== 'date') {\n $table->head[] = get_string('date');\n $table->align[] = 'left';\n $table->colclasses[] = 'datecol';\n $table->size[] = '1px';\n $colcount++;\n }\n\n // Use \"session\" instead of \"description\".\n $table->head[] = get_string('session', 'attendance');\n $table->align[] = 'left';\n $table->colclasses[] = 'desccol';\n $table->size[] = '*';\n $colcount++;\n\n if (!$shortform) {\n $table->head[] = get_string('sessiontypeshort', 'attendance');\n $table->align[] = '';\n $table->size[] = '*';\n $table->colclasses[] = '';\n $colcount++;\n }\n\n if (!empty($USER->attendanceediting)) {\n $table->head[] = get_string('status', 'attendance');\n $table->align[] = 'center';\n $table->colclasses[] = 'statuscol';\n $table->size[] = '*';\n $colcount++;\n $summarywidth++;\n\n $table->head[] = get_string('remarks', 'attendance');\n $table->align[] = 'center';\n $table->colclasses[] = 'remarkscol';\n $table->size[] = '*';\n $colcount++;\n $summarywidth++;\n } else {\n $table->head[] = get_string('status', 'attendance');\n $table->align[] = 'center';\n $table->colclasses[] = 'statuscol';\n $table->size[] = '*';\n $colcount++;\n $summarywidth++;\n\n $table->head[] = get_string('points', 'attendance');\n $table->align[] = 'center';\n $table->colclasses[] = 'pointscol';\n $table->size[] = '1px';\n $colcount++;\n $summarywidth++;\n\n $table->head[] = get_string('remarks', 'attendance');\n $table->align[] = 'center';\n $table->colclasses[] = 'remarkscol';\n $table->size[] = '*';\n $colcount++;\n $summarywidth++;\n }\n\n $statusmaxpoints = array();\n foreach ($userdata->statuses as $attid => $attstatuses) {\n $statusmaxpoints[$attid] = attendance_get_statusset_maxpoints($attstatuses);\n }\n\n $lastgroup = array(null, null);\n $groups = array();\n $stats = array(\n 'course' => array(),\n 'activity' => array(),\n 'date' => array(),\n 'overall' => array(\n 'points' => 0,\n 'maxpointstodate' => 0,\n 'maxpoints' => 0,\n 'pcpointstodate' => null,\n 'pcpoints' => null,\n 'statuses' => array()\n )\n );\n $group = null;\n if ($userdata->sessionslog) {\n foreach ($userdata->sessionslog as $sess) {\n if ($groupby === 'date') {\n $weekformat = date(\"YW\", $sess->sessdate);\n if ($weekformat != $lastgroup[0]) {\n if ($group !== null) {\n array_push($groups, $group);\n }\n $group = array();\n $lastgroup[0] = $weekformat;\n }\n if (!array_key_exists($weekformat, $stats['date'])) {\n $stats['date'][$weekformat] = array(\n 'points' => 0,\n 'maxpointstodate' => 0,\n 'maxpoints' => 0,\n 'pcpointstodate' => null,\n 'pcpoints' => null,\n 'statuses' => array()\n );\n }\n $statussetmaxpoints = $statusmaxpoints[$sess->attendanceid];\n // Ensure all possible acronyms for current sess's statusset are available as\n // keys in status array for period.\n //\n // A bit yucky because we can't tell whether we've seen statusset before, and\n // we usually will have, so much wasted spinning.\n foreach ($userdata->statuses[$sess->attendanceid] as $attstatus) {\n if ($attstatus->setnumber === $sess->statusset) {\n if (!array_key_exists($attstatus->acronym, $stats['date'][$weekformat]['statuses'])) {\n $stats['date'][$weekformat]['statuses'][$attstatus->acronym] =\n array('count' => 0, 'description' => $attstatus->description);\n }\n if (!array_key_exists($attstatus->acronym, $stats['overall']['statuses'])) {\n $stats['overall']['statuses'][$attstatus->acronym] =\n array('count' => 0, 'description' => $attstatus->description);\n }\n }\n }\n // The array_key_exists check is for hidden statuses.\n if (isset($sess->statusid) && array_key_exists($sess->statusid, $userdata->statuses[$sess->attendanceid])) {\n $status = $userdata->statuses[$sess->attendanceid][$sess->statusid];\n $stats['date'][$weekformat]['statuses'][$status->acronym]['count']++;\n $stats['date'][$weekformat]['points'] += $status->grade;\n $stats['date'][$weekformat]['maxpointstodate'] += $statussetmaxpoints[$sess->statusset];\n $stats['overall']['statuses'][$status->acronym]['count']++;\n $stats['overall']['points'] += $status->grade;\n $stats['overall']['maxpointstodate'] += $statussetmaxpoints[$sess->statusset];\n }\n $stats['date'][$weekformat]['maxpoints'] += $statussetmaxpoints[$sess->statusset];\n $stats['overall']['maxpoints'] += $statussetmaxpoints[$sess->statusset];\n } else {\n // By course and perhaps activity.\n if (\n ($sess->courseid != $lastgroup[0]) ||\n ($groupby === 'activity' && $sess->cmid != $lastgroup[1])\n ) {\n if ($group !== null) {\n array_push($groups, $group);\n }\n $group = array();\n $lastgroup[0] = $sess->courseid;\n $lastgroup[1] = $sess->cmid;\n }\n if (!array_key_exists($sess->courseid, $stats['course'])) {\n $stats['course'][$sess->courseid] = array(\n 'points' => 0,\n 'maxpointstodate' => 0,\n 'maxpoints' => 0,\n 'pcpointstodate' => null,\n 'pcpoints' => null,\n 'statuses' => array()\n );\n }\n $statussetmaxpoints = $statusmaxpoints[$sess->attendanceid];\n // Ensure all possible acronyms for current sess's statusset are available as\n // keys in status array for course\n //\n // A bit yucky because we can't tell whether we've seen statusset before, and\n // we usually will have, so much wasted spinning.\n foreach ($userdata->statuses[$sess->attendanceid] as $attstatus) {\n if ($attstatus->setnumber === $sess->statusset) {\n if (!array_key_exists($attstatus->acronym, $stats['course'][$sess->courseid]['statuses'])) {\n $stats['course'][$sess->courseid]['statuses'][$attstatus->acronym] =\n array('count' => 0, 'description' => $attstatus->description);\n }\n if (!array_key_exists($attstatus->acronym, $stats['overall']['statuses'])) {\n $stats['overall']['statuses'][$attstatus->acronym] =\n array('count' => 0, 'description' => $attstatus->description);\n }\n }\n }\n // The array_key_exists check is for hidden statuses.\n if (isset($sess->statusid) && array_key_exists($sess->statusid, $userdata->statuses[$sess->attendanceid])) {\n $status = $userdata->statuses[$sess->attendanceid][$sess->statusid];\n $stats['course'][$sess->courseid]['statuses'][$status->acronym]['count']++;\n $stats['course'][$sess->courseid]['points'] += $status->grade;\n $stats['course'][$sess->courseid]['maxpointstodate'] += $statussetmaxpoints[$sess->statusset];\n $stats['overall']['statuses'][$status->acronym]['count']++;\n $stats['overall']['points'] += $status->grade;\n $stats['overall']['maxpointstodate'] += $statussetmaxpoints[$sess->statusset];\n }\n $stats['course'][$sess->courseid]['maxpoints'] += $statussetmaxpoints[$sess->statusset];\n $stats['overall']['maxpoints'] += $statussetmaxpoints[$sess->statusset];\n\n if (!array_key_exists($sess->cmid, $stats['activity'])) {\n $stats['activity'][$sess->cmid] = array(\n 'points' => 0,\n 'maxpointstodate' => 0,\n 'maxpoints' => 0,\n 'pcpointstodate' => null,\n 'pcpoints' => null,\n 'statuses' => array()\n );\n }\n $statussetmaxpoints = $statusmaxpoints[$sess->attendanceid];\n // Ensure all possible acronyms for current sess's statusset are available as\n // keys in status array for period\n //\n // A bit yucky because we can't tell whether we've seen statusset before, and\n // we usually will have, so much wasted spinning.\n foreach ($userdata->statuses[$sess->attendanceid] as $attstatus) {\n if ($attstatus->setnumber === $sess->statusset) {\n if (!array_key_exists($attstatus->acronym, $stats['activity'][$sess->cmid]['statuses'])) {\n $stats['activity'][$sess->cmid]['statuses'][$attstatus->acronym] =\n array('count' => 0, 'description' => $attstatus->description);\n }\n if (!array_key_exists($attstatus->acronym, $stats['overall']['statuses'])) {\n $stats['overall']['statuses'][$attstatus->acronym] =\n array('count' => 0, 'description' => $attstatus->description);\n }\n }\n }\n // The array_key_exists check is for hidden statuses.\n if (isset($sess->statusid) && array_key_exists($sess->statusid, $userdata->statuses[$sess->attendanceid])) {\n $status = $userdata->statuses[$sess->attendanceid][$sess->statusid];\n $stats['activity'][$sess->cmid]['statuses'][$status->acronym]['count']++;\n $stats['activity'][$sess->cmid]['points'] += $status->grade;\n $stats['activity'][$sess->cmid]['maxpointstodate'] += $statussetmaxpoints[$sess->statusset];\n }\n $stats['activity'][$sess->cmid]['maxpoints'] += $statussetmaxpoints[$sess->statusset];\n $stats['overall']['maxpoints'] += $statussetmaxpoints[$sess->statusset];\n }\n array_push($group, $sess);\n }\n array_push($groups, $group);\n }\n\n $points = $stats['overall']['points'];\n $maxpoints = $stats['overall']['maxpointstodate'];\n $summarytable = new html_table();\n $summarytable->attributes['class'] = 'generaltable table-bordered table-condensed';\n $row = new html_table_row();\n $cell = new html_table_cell(get_string('allsessionstotals', 'attendance'));\n $cell->colspan = 2;\n $cell->header = true;\n $row->cells[] = $cell;\n $summarytable->data[] = $row;\n foreach ($stats['overall']['statuses'] as $acronym => $status) {\n $row = new html_table_row();\n $row->cells[] = $status['description'] . \":\";\n $row->cells[] = $status['count'];\n $summarytable->data[] = $row;\n }\n\n $row = new html_table_row();\n if ($maxpoints !== 0) {\n $pctodate = format_float( $points * 100 / $maxpoints);\n $pointsinfo = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n $pointsinfo .= \" (\" . $pctodate . \"%)\";\n } else {\n $pointsinfo = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n }\n $pointsinfo .= \" \" . get_string('todate', 'attendance');\n $cell = new html_table_cell($pointsinfo);\n $cell->colspan = 2;\n $row->cells[] = $cell;\n $summarytable->data[] = $row;\n $allsessions->summary = html_writer::table($summarytable);\n\n $lastgroup = array(null, null);\n foreach ($groups as $group) {\n\n $statussetmaxpoints = $statusmaxpoints[$sess->attendanceid];\n\n // For use in headings etc.\n $sess = $group[0];\n\n if ($groupby === 'date') {\n $row = new html_table_row();\n $row->attributes['class'] = 'grouper';\n $cell = new html_table_cell();\n $cell->rowspan = count($group) + 2;\n $row->cells[] = $cell;\n $week = date(\"W\", $sess->sessdate);\n $year = date(\"Y\", $sess->sessdate);\n // ISO week starts on day 1, Monday.\n $weekstart = date_timestamp_get(date_isodate_set(date_create(), $year, $week, 1));\n $dmywformat = get_string('strftimedmyw', 'attendance');\n $cell = new html_table_cell(get_string('weekcommencing', 'attendance') . \": \" . userdate($weekstart, $dmywformat));\n $cell->colspan = $colcount - $summarywidth;\n $cell->rowspan = 2;\n $cell->attributes['class'] = 'groupheading';\n $row->cells[] = $cell;\n $weekformat = date(\"YW\", $sess->sessdate);\n $points = $stats['date'][$weekformat]['points'];\n $maxpoints = $stats['date'][$weekformat]['maxpointstodate'];\n if ($maxpoints !== 0) {\n $pctodate = format_float( $points * 100 / $maxpoints);\n $summary = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n $summary .= \" (\" . $pctodate . \"%)\";\n } else {\n $summary = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n }\n $summary .= \" \" . get_string('todate', 'attendance');\n $cell = new html_table_cell($summary);\n $cell->colspan = $summarywidth;\n $row->cells[] = $cell;\n $table->data[] = $row;\n $row = new html_table_row();\n $row->attributes['class'] = 'grouper';\n $summary = array();\n foreach ($stats['date'][$weekformat]['statuses'] as $acronym => $status) {\n array_push($summary, html_writer::tag('b', $acronym) . $status['count']);\n }\n $cell = new html_table_cell(implode(\" \", $summary));\n $cell->colspan = $summarywidth;\n $row->cells[] = $cell;\n $table->data[] = $row;\n $lastgroup[0] = date(\"YW\", $weekstart);\n } else {\n if ($groupby === 'course' || $sess->courseid !== $lastgroup[0]) {\n $row = new html_table_row();\n $row->attributes['class'] = 'grouper';\n $cell = new html_table_cell();\n $cell->rowspan = count($group) + 2;\n if ($groupby === 'activity') {\n $headcell = $cell; // Keep ref to be able to adjust rowspan later.\n $cell->rowspan += 2;\n $row->cells[] = $cell;\n $cell = new html_table_cell();\n $cell->rowspan = 2;\n }\n $row->cells[] = $cell;\n $courseurl = new moodle_url('/course/view.php', array('id' => $sess->courseid));\n $cell = new html_table_cell(get_string('course', 'attendance') . \": \" .\n html_writer::link($courseurl, $sess->cname));\n $cell->colspan = $colcount - $summarywidth;\n $cell->rowspan = 2;\n $cell->attributes['class'] = 'groupheading';\n $row->cells[] = $cell;\n $points = $stats['course'][$sess->courseid]['points'];\n $maxpoints = $stats['course'][$sess->courseid]['maxpointstodate'];\n if ($maxpoints !== 0) {\n $pctodate = format_float( $points * 100 / $maxpoints);\n $summary = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n $summary .= \" (\" . $pctodate . \"%)\";\n } else {\n $summary = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n }\n $summary .= \" \" . get_string('todate', 'attendance');\n $cell = new html_table_cell($summary);\n $cell->colspan = $summarywidth;\n $row->cells[] = $cell;\n $table->data[] = $row;\n $row = new html_table_row();\n $row->attributes['class'] = 'grouper';\n $summary = array();\n foreach ($stats['course'][$sess->courseid]['statuses'] as $acronym => $status) {\n array_push($summary, html_writer::tag('b', $acronym) . $status['count']);\n }\n $cell = new html_table_cell(implode(\" \", $summary));\n $cell->colspan = $summarywidth;\n $row->cells[] = $cell;\n $table->data[] = $row;\n }\n if ($groupby === 'activity') {\n if ($sess->courseid === $lastgroup[0]) {\n $headcell->rowspan += count($group) + 2;\n }\n $row = new html_table_row();\n $row->attributes['class'] = 'grouper';\n $cell = new html_table_cell();\n $cell->rowspan = count($group) + 2;\n $row->cells[] = $cell;\n $attendanceurl = new moodle_url('/mod/attendance/view.php', array('id' => $sess->cmid,\n 'studentid' => $userdata->user->id,\n 'view' => ATT_VIEW_ALL));\n $cell = new html_table_cell(get_string('pluginname', 'mod_attendance') .\n \": \" . html_writer::link($attendanceurl, $sess->attname));\n $cell->colspan = $colcount - $summarywidth;\n $cell->rowspan = 2;\n $cell->attributes['class'] = 'groupheading';\n $row->cells[] = $cell;\n $points = $stats['activity'][$sess->cmid]['points'];\n $maxpoints = $stats['activity'][$sess->cmid]['maxpointstodate'];\n if ($maxpoints !== 0) {\n $pctodate = format_float( $points * 100 / $maxpoints);\n $summary = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n $summary .= \" (\" . $pctodate . \"%)\";\n } else {\n $summary = get_string('points', 'attendance') . \": \" . $points . \"/\" . $maxpoints;\n }\n $summary .= \" \" . get_string('todate', 'attendance');\n $cell = new html_table_cell($summary);\n $cell->colspan = $summarywidth;\n $row->cells[] = $cell;\n $table->data[] = $row;\n $row = new html_table_row();\n $row->attributes['class'] = 'grouper';\n $summary = array();\n foreach ($stats['activity'][$sess->cmid]['statuses'] as $acronym => $status) {\n array_push($summary, html_writer::tag('b', $acronym) . $status['count']);\n }\n $cell = new html_table_cell(implode(\" \", $summary));\n $cell->colspan = $summarywidth;\n $row->cells[] = $cell;\n $table->data[] = $row;\n }\n $lastgroup[0] = $sess->courseid;\n $lastgroup[1] = $sess->cmid;\n }\n\n // Now iterate over sessions in group...\n\n foreach ($group as $sess) {\n $row = new html_table_row();\n\n // If grouping by date, we need some form of date up front.\n // Only need course column if we are not using course to group\n // (currently date is only option which does not use course).\n if ($groupby === 'date') {\n // What part of date do we want if grouped by it already?\n $row->cells[] = userdate($sess->sessdate, get_string('strftimedmw', 'attendance')) .\n \" \". $this->construct_time($sess->sessdate, $sess->duration);\n\n $courseurl = new moodle_url('/course/view.php', array('id' => $sess->courseid));\n $row->cells[] = html_writer::link($courseurl, $sess->cname);\n }\n\n // Need activity column unless we are using activity to group.\n if ($groupby !== 'activity') {\n $attendanceurl = new moodle_url('/mod/attendance/view.php', array('id' => $sess->cmid,\n 'studentid' => $userdata->user->id,\n 'view' => ATT_VIEW_ALL));\n $row->cells[] = html_writer::link($attendanceurl, $sess->attname);\n }\n\n // If grouping by date, it belongs up front rather than here.\n if ($groupby !== 'date') {\n $row->cells[] = userdate($sess->sessdate, get_string('strftimedmyw', 'attendance')) .\n \" \". $this->construct_time($sess->sessdate, $sess->duration);\n }\n\n $sesscontext = context_module::instance($sess->cmid);\n if (has_capability('mod/attendance:takeattendances', $sesscontext)) {\n $sessionurl = new moodle_url('/mod/attendance/take.php', array('id' => $sess->cmid,\n 'sessionid' => $sess->id,\n 'grouptype' => $sess->groupid));\n $description = html_writer::link($sessionurl, $sess->description);\n } else {\n $description = $sess->description;\n }\n $row->cells[] = $description;\n\n if (!$shortform) {\n if ($sess->groupid) {\n $sessiontypeshort = get_string('group') . ': ' . $userdata->groups[$sess->courseid][$sess->groupid]->name;\n } else {\n $sessiontypeshort = get_string('commonsession', 'attendance');\n }\n $row->cells[] = html_writer::tag('nobr', $sessiontypeshort);\n }\n\n if (!empty($USER->attendanceediting)) {\n $context = context_module::instance($sess->cmid);\n if (has_capability('mod/attendance:takeattendances', $context)) {\n // Takedata needs:\n // sessioninfo->sessdate\n // sessioninfo->duration\n // statuses\n // updatemode\n // sessionlog[userid]->statusid\n // sessionlog[userid]->remarks\n // pageparams->viewmode == mod_attendance_take_page_params::SORTED_GRID\n // and urlparams to be able to use url method later.\n //\n // user needs:\n // enrolmentstart\n // enrolmentend\n // enrolmentstatus\n // id.\n\n $nastyhack = new \\ReflectionClass('mod_attendance\\output\\take_data');\n $takedata = $nastyhack->newInstanceWithoutConstructor();\n $takedata->sessioninfo = $sess;\n $takedata->statuses = array_filter($userdata->statuses[$sess->attendanceid], function($x) use ($sess) {\n return ($x->setnumber == $sess->statusset);\n });\n $takedata->updatemode = true;\n $takedata->sessionlog = array($userdata->user->id => $sess);\n $takedata->pageparams = new stdClass();\n $takedata->pageparams->viewmode = mod_attendance_take_page_params::SORTED_GRID;\n $ucdata = $this->construct_take_session_controls($takedata, $userdata->user);\n\n $celltext = join($ucdata['text']);\n\n if (array_key_exists('warning', $ucdata)) {\n $celltext .= html_writer::empty_tag('br');\n $celltext .= $ucdata['warning'];\n }\n if (array_key_exists('class', $ucdata)) {\n $row->attributes['class'] = $ucdata['class'];\n }\n\n $cell = new html_table_cell($celltext);\n $row->cells[] = $cell;\n\n $celltext = empty($ucdata['remarks']) ? '' : $ucdata['remarks'];\n $cell = new html_table_cell($celltext);\n $row->cells[] = $cell;\n\n } else {\n if (!empty($sess->statusid)) {\n $status = $userdata->statuses[$sess->attendanceid][$sess->statusid];\n $row->cells[] = $status->description;\n $row->cells[] = $sess->remarks;\n }\n }\n\n } else {\n if (!empty($sess->statusid)) {\n $status = $userdata->statuses[$sess->attendanceid][$sess->statusid];\n $row->cells[] = $status->description;\n $row->cells[] = format_float($status->grade, 1, true, true) . ' / ' .\n format_float($statussetmaxpoints[$status->setnumber], 1, true, true);\n $row->cells[] = $sess->remarks;\n } else if (($sess->sessdate + $sess->duration) < $userdata->user->enrolmentstart) {\n $cell = new html_table_cell(get_string('enrolmentstart', 'attendance',\n userdate($userdata->user->enrolmentstart, '%d.%m.%Y')));\n $cell->colspan = 3;\n $row->cells[] = $cell;\n } else if ($userdata->user->enrolmentend && $sess->sessdate > $userdata->user->enrolmentend) {\n $cell = new html_table_cell(get_string('enrolmentend', 'attendance',\n userdate($userdata->user->enrolmentend, '%d.%m.%Y')));\n $cell->colspan = 3;\n $row->cells[] = $cell;\n } else {\n list($canmark, $reason) = attendance_can_student_mark($sess, false);\n if ($canmark) {\n // Student can mark their own attendance.\n // URL to the page that lets the student modify their attendance.\n\n $url = new moodle_url('/mod/attendance/attendance.php',\n array('sessid' => $sess->id, 'sesskey' => sesskey()));\n if (attendance_session_open_for_students($sess)) {\n $cell = new html_table_cell(html_writer::link($url, get_string('submitattendance', 'attendance')));\n } else {\n $cell = new html_table_cell(html_writer::link($url, get_string('submitattendancefuture', 'attendance')));\n }\n $cell->colspan = 3;\n $row->cells[] = $cell;\n } else { // Student cannot mark their own attendace.\n $row->cells[] = '?';\n $row->cells[] = '? / ' . format_float($statussetmaxpoints[$sess->statusset], 1, true, true);\n $row->cells[] = '';\n }\n }\n }\n\n $table->data[] = $row;\n }\n }\n\n if (!empty($USER->attendanceediting)) {\n $row = new html_table_row();\n $params = array(\n 'type' => 'submit',\n 'class' => 'btn btn-primary',\n 'value' => get_string('save', 'attendance'));\n $cell = new html_table_cell(html_writer::tag('center', html_writer::empty_tag('input', $params)));\n $cell->colspan = $colcount + (($groupby == 'activity') ? 2 : 1);\n $row->cells[] = $cell;\n $table->data[] = $row;\n }\n\n $logtext = html_writer::table($table);\n\n if (!empty($USER->attendanceediting)) {\n $formtext = html_writer::start_div('no-overflow');\n $formtext .= $logtext;\n $formtext .= html_writer::input_hidden_params($userdata->url(array('sesskey' => sesskey())));\n $formtext .= html_writer::end_div();\n // Could use userdata->urlpath if not private or userdata->url_path() if existed, but '' turns\n // out to DTRT.\n $logtext = html_writer::tag('form', $formtext, array('method' => 'post', 'action' => '',\n 'id' => 'attendancetakeform'));\n }\n $allsessions->detail = $logtext;\n return $allsessions;\n }", "function start_session() {\n session_start();\n\n if (!isset($_SESSION['initiated'])) {\n session_regenerate_id();\n $_SESSION['initiated'] = 1;\n }\n\n if (!isset($_SESSION['count'])) $_SESSION['count'] = 0;\n else ++$_SESSION['count'];\n }", "function groups() {\n\t\t$this->validate();\n\t\t$this->setupTemplate();\n\n\t\t$journal =& Request::getJournal();\n\n\t\t$rangeInfo =& $this->getRangeInfo('groups');\n\n\t\t$groupDao =& DAORegistry::getDAO('GroupDAO');\n\t\t$groups =& $groupDao->getGroups(ASSOC_TYPE_JOURNAL, $journal->getId(), null, $rangeInfo);\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->addJavaScript('lib/pkp/js/lib/jquery/plugins/jquery.tablednd.js');\n\t\t$templateMgr->addJavaScript('lib/pkp/js/functions/tablednd.js');\n\t\t$templateMgr->assign_by_ref('groups', $groups);\n\t\t$templateMgr->assign('boardEnabled', $journal->getSetting('boardEnabled'));\n\t\t$templateMgr->display('manager/groups/groups.tpl');\n\t}", "function bdd2session() {\n\tif (!empty($_SESSION['dims']['userid'])) {\n\t\tinclude_once DIMS_APP_PATH.'/modules/catalogue/include/class_panier.php';\n\t\t$panier = new cata_panier();\n\t\t$panier->open($_SESSION['dims']['userid']);\n\n\t\tforeach ($panier->articles as $art) {\n\t\t\t$_SESSION['catalogue']['panier']['articles'][$art['ref']]['qte'] = $art['qte'];\n\n\t\t\tif (isset($art['forced_price'])) {\n\t\t\t\t$_SESSION['catalogue']['panier']['articles'][$art['ref']]['forced_price'] = $art['forced_price'];\n\t\t\t}\n\t\t}\n\t\t// update_montant_panier();\n\t}\n}", "function AfterSuccessfulLogin($username, $password, &$data, &$pageObject)\n{\n\n\t\t $_SESSION[\"loginID\"] = $data[\"LogID\"];\n $_SESSION[\"sect\"] = $data[\"Section\"];\n $_SESSION[\"EmpoyeeI\"] = $data[\"EmployeeID\"];\n\n;\t\t\n}", "public function sessions() {\n $sessions = Session::all();\n $active_ses = Session::where('status', 'active')->first();\n $data['activeses'] = $active_ses;\n $data['sessions'] = $sessions;\n return view('admin.sessions', $data);\n \n \n }", "public function SchoolSession($uid) {\n\t\n\t\t//$start = intval($page - 1) * @$perPage;\n\t\t$nowTime = date('Y-m-d H:i:s');\n\t\t$sql = \"SELECT COUNT(*) as cnt from class where endTime < '{$nowTime}' AND school_id = {$uid} \";\n\t\t$query = $this->db->query($sql);\n\t\tif ($query->num_rows() > 0) {\n\t\t\t$result = $query->row_array();\n\t\t}\n\t \n\t\treturn $result;\n\t}", "protected function getSampleSessions() {\n // Select a maximum of 20 random sessions that are on or have passed this unit\n $results = [];\n $rs = [];\n $rows = $this->db->select('session, id, position')\n ->from('survey_run_sessions')\n ->order('position', 'desc')->order('RAND')\n ->where(array('run_id' => $this->run->id, 'position >=' => $this->position))\n ->limit(20)->fetchAll();\n \n foreach ($rows as $row) {\n if (!isset($rs[$row['id']])) {\n $rs[$row['id']] = new RunSession($row['session'], $this->run, ['id' => $row['id']]);\n }\n\n $unitSession = (new UnitSession($rs[$row['id']], $this))->load();\n if ($unitSession->id) {\n $results[] = $unitSession;\n }\n }\n\n return $results;\n }", "public function all()\n {\n return $_SESSION;\n }", "function get_fixedgroups() {\n\t\tif (!isset($_SESSION['fixedgroups']))\n\t\t\tlgi_mysql_fetch_session(\"SELECT `fixedgroups` AS `fixedgroups` FROM %t(usercerts) WHERE `user`='%%'\", $this->userid);\n\t\treturn (bool)$_SESSION['fixedgroups'];\n\t}", "private function getAllNotifHistoryByPage() {\n $this->user_panel->checkAuthAdmin();\n $this->notif_history->findAllByPage();\n }", "function getInstitutionsession() {\n $model = \\common\\models\\Staff::findOne([\"user_id\" => Yii::$app->user->identity->user_id]);\n\n //end \n /*\n * Set global\n */\n $session = Yii::$app->session;\n if (isset($session['learn_institution_id'])) {\n $session->remove('learn_institution_id');\n unset($session['learn_institution_id']);\n if (count($model) > 0) {\n $session['learn_institution_id'] = $model->learning_institution_id;\n }\n } else {\n if (count($model) > 0) {\n $session['learn_institution_id'] = $model->learning_institution_id;\n }\n }\n }", "public function add_all_session($session_items)\n\t\t{\n\t\t\tparent::add_all_items($session_items,'session_items');\n\t\t}", "public function getSession() {}", "function setSession() {\n $layout = $this->input->post('layout');\n $_SESSION['standingLayout'] = $layout;\n \n // gets value for order and stores in session variable\n $order = $this->input->post('order');\n $_SESSION['standingOrder'] = $order;\n \n // gets value for data source and stores in session variable\n $dataSource = $this->input->post('dataSource');\n $_SESSION['standingDataSource'] = $dataSource;\n \n redirect('/standing');\n }", "public function sessions()\n {\n return $this->hasMany(config('laragram.auth.session.model'))->orderBy('last_activity', 'desc');\n }", "function view(){\n\t\t\t$this->hold_globals['globals']['domain_name'] = $GLOBALS['DOMAIN_PARTS'];\n\t\t\t$this->hold_session['session'] = $_SESSION; \n\t}", "public function session_list()\n\t{\n\t\t$query=$this->db->get('session');\n\t\treturn $query->result();\n\t}", "static function setUpReporticoSession($namespace)\n {\n // Get current session\n $session_name = session_id();\n\n // Check for Posted Session Name and use that if specified\n if (isset($_REQUEST['reportico_session_name'])) {\n $session_name = $_REQUEST['reportico_session_name'];\n if (preg_match(\"/_/\", $session_name)) {\n $ar = explode(\"_\", $session_name);\n ReporticoApp::set(\"session_namespace\", $ar[1]);\n if (ReporticoApp::get(\"session_namespace\")) {\n ReporticoApp::set(\"session_namespace_key\", \"reportico_\" . ReporticoApp::get(\"session_namespace\"));\n }\n\n // Set session to join only if it is not NS meaning its called from framework and existing session\n // should be used\n if ($ar[0] != \"NS\") {\n $session_name = $ar[0];\n }\n\n }\n } \n\n // If the session_name starts with NS_ then it is a namespace for reportico\n // embedded in a framework or for multiple concurrent reportico instances\n // , so set the current namespace. All sessiion variables for this namespace\n // will be stored in a namspaces specific session array\n if (strlen($session_name) >= 3 && substr($session_name, 0, 3) == \"NS_\") {\n if (!$session_name || !isset($_SESSION)) {\n session_start();\n }\n\n ReporticoApp::set(\"session_namespace\", substr($session_name, 3));\n\n // IF NS_NEW passed then autogenerate session namespace from current time\n if (ReporticoApp::get(\"session_namespace\") == \"NEW\") {\n ReporticoApp::set(\"session_namespace\", date(\"YmdHis\"));\n }\n if (ReporticoApp::get(\"session_namespace\")) {\n ReporticoApp::set(\"session_namespace_key\", \"reportico_\" . ReporticoApp::get(\"session_namespace\"));\n }\n\n if (isset($_REQUEST['clear_session']) && isset($_SESSION)) {\n self::initializeReporticoNamespace(self::reporticoNamespace());\n }\n return;\n }\n\n // If no current or specified session start one, or if request to clear session (it really means clear namespace)\n // then clear this out\n if (!$session_name || isset($_REQUEST['clear_session'])) {\n\n // If no session current then create a new one\n if (!$session_name || !isset($_SESSION)) {\n session_start();\n }\n\n if (isset($_REQUEST['new_session']) && $_REQUEST['new_session']) {\n session_regenerate_id(false);\n }\n\n //unsetReporticoSessionParam(\"template\");\n //session_regenerate_id(false);\n $session_name = session_id();\n\n \n // If no session set ( a new session ) set the namespace to be called default\n if ( !$namespace ) {\n $namespace = \"default\";\n }\n\n if (isset($_REQUEST['clear_session'])) {\n ReporticoApp::set(\"session_namespace\", $namespace);\n ReporticoApp::set(\"session_namespace_key\", \"reportico_\" . ReporticoApp::get(\"session_namespace\"));\n self::initializeReporticoNamespace(self::reporticoNamespace());\n }\n } else {\n if (session_id() != $session_name) {\n session_id($session_name);\n session_start();\n }\n\n if ( !$namespace ) {\n $namespace = \"default\";\n }\n //ReporticoApp::set(\"session_namespace\", $namespace);\n ReporticoApp::set(\"session_namespace_key\", \"reportico_\" . ReporticoApp::get(\"session_namespace\"));\n $namespace = ReporticoApp::get(\"session_namespace\");\n $session_name = session_id();\n }\n\n }", "function parseSessionsList($content, $organization_id)\n{\n\n $data = str_get_html($content);\n\n //\tCheck for single sessions\n $islist = $data->find('table.dataTableExHov', 0);\n if (!empty ($islist)) {\n $content = $data->find('table.dataTableExHov', 0)->find('tbody a.outputLink');\n } else {\n return false;\n }\n\n global $http_response_header;\n foreach ($content as $link) {\n\n $session_name = $link->text();\n var_dumpp($session_name);\n $session_link = $link->href;\n $session_nouid = preg_replace('/\\&uid.*$/is', '', $session_link);\n\n // Date\n if ($organization_id != 95) {\n $date = trim($link->parent()->next_sibling()->next_sibling()->next_sibling()->text());\n } else {\n $date = trim($link->parent()->next_sibling()->next_sibling()->text());\n }\n $date = str_replace('(', '', $date);\n $date = str_replace(')', '', $date);\n $date = DateTime::createFromFormat('d.m.Y', $date);\n $session_date = $date->format('Y-m-d');\n\n $tmp = array(\n 'name' => trim($session_name),\n 'link' => trim($session_link),\n 'link_noid' => trim($session_nouid),\n 'date' => trim($session_date),\n 'review' => false,\n 'review_ext' => false\n );\n\n if ($date <= new DateTime('NOW')) {\n\n if(sessionDeleted($session_nouid)){\n continue;\n }\n // Check if session already imported\n if ($exists = sessionExists($session_nouid)) {\n if ($exists['in_review'] == 'f' || ($exists['in_review'] == 't' && !UPDATE_SESSIONS_IN_REVIEW)) continue;\n $tmp['id'] = $exists['id']; // Set that session exists\n $tmp['review_ext'] = true;\n }\n var_dumpp($tmp);\n var_dumpp($exists);\n\n // Log\n logger('FETCH SESSION: ' . DZ_URL . $session_link);\n\n // Get session\n $session_link = str_replace('&amp;', '&', $session_link); // Some weird shit changed recently on DZRS server\n $session = str_get_html(downloadPage(DZ_URL . $session_link));\n\n //\tRetrieve cookies\n $cookiess = '';\n if (isset($http_response_header)) {\n foreach ($http_response_header as $s) {\n if (preg_match('/^Set-Cookie:\\s*([^=]+)=([^;]+);(.+)$/', $s, $parts))\n $cookiess .= $parts[1] . '=' . $parts[2] . '; ';\n }\n }\n $cookiess = substr($cookiess, 0, -2);\n\n // Parse data\n $tmp['speeches'] = array();\n $k = 0;\n if (PARSE_SPEECHES) {\n if ($session->find('td.vaTop', 3)) {\n $sptable = $session->find('td.vaTop', 3)->find('a.outputLink');\n\n if (!empty ($sptable)) {\n $parseSpeeches = array();\n foreach ($sptable as $speeches) {\n $in_review = (bool)(stripos($speeches->innerText(), \"pregled\") !== false);\n if ($in_review && SKIP_WHEN_REVIEWS) continue 2;\n\n if ($in_review) $tmp['review'] = true;\n\n $datum = '';\n if (preg_match('/(\\d{2}\\.\\d{2}\\.\\d{4})/is', $speeches->innerText(), $matches)) {\n $datum = DateTime::createFromFormat('d.m.Y', $matches[1])->format('Y-m-d');\n }\n\n //check here\n $parseSpeeches[$k]['dateStart'] = $datum;\n $parseSpeeches[$k]['url'] = DZ_URL . $speeches->href;\n $parseSpeeches[$k]['in_review'] = $tmp['review'];\n $parseSpeeches[$k]['sessionId'] = $tmp['id'];\n\n $k++;\n }\n if (count($parseSpeeches) > 0) {\n foreach ($parseSpeeches as $parseSpeeche) {\n var_dumpp($parseSpeeche);\n if (!$parseSpeeche['sessionId']) {\n\n $speech = parseSpeeches($parseSpeeche['url'], $parseSpeeche['dateStart']);\n $tmp['speeches'][$speech['datum']] = $speech;\n $tmp['speeches'][$speech['datum']]['review'] = $parseSpeeche['in_review'];\n $tmp['speeches'][$speech['datum']]['insertToDb'] = 'parladata_speechinreview';\n sleep(FETCH_TIMEOUT);\n\n } else {\n\n $speech = parseSpeeches($parseSpeeche['url'], $parseSpeeche['dateStart']);\n $tmp['speeches'][$speech['datum']] = $speech;\n $tmp['speeches'][$speech['datum']]['review'] = $parseSpeeche['in_review'];\n sleep(FETCH_TIMEOUT);\n\n if(isSpeechInReviewStatusChanged($parseSpeeche['sessionId'], $parseSpeeche['in_review'])){\n $tmp['speeches'][$speech['datum']]['insertToDb'] = 'parladata_speech';\n }else{\n $tmp['speeches'][$speech['datum']]['insertToDb'] = 'parladata_speechinreview';\n }\n\n }\n }\n //var_dumpp($tmp['speeches'][$speech['datum']]);\n }\n\n }\n }\n }\n\n $tmp['documents'] = array();\n if (PARSE_DOCS) {\n if ($session->find('td.vaTop', 3)) {\n $doctable = $session->find('td.vaTop', 2)->find('a');\n\n if (!empty ($doctable)) {\n foreach ($doctable as $doc) {\n if (stripos($doc->innerText(), \"pregled\") === false) {\n $tmp['documents'][] = parseDocument(DZ_URL . $doc->href);\n sleep(FETCH_TIMEOUT);\n\n if(empty($tmp['id'])){\n var_dump($tmp['link_noid']);\n //continue 2;\n }\n var_dump(\"documetn parse\" . $tmp['id']);\n\n\n } else {\n if (SKIP_WHEN_REVIEWS) continue 2;\n }\n }\n }\n }\n }\n\n // Parse voting data\n $tmp['voting'] = array();\n if (PARSE_VOTES) {\n var_dump(\"VOTES\");\n // Search on DT page or not TODO: better solution needed\n preg_match('/form id=\"(.*?):form1\"/', $session, $fmatches);\n $form_id = $fmatches[1];\n\n //\tRetreive pager form action\n preg_match('/form id=\"' . $form_id . ':form1\".*?action=\"(.*?)\"/', $session, $matches);\n\n //\tRetreive some ViewState I have no fucking clue what it is for, but it must be present in POST\n preg_match('/id=\"javax\\.faces\\.ViewState\" value=\"(.*?)\"/', $session, $matchess);\n\n //\tRetreive number of pages\n preg_match('/Page 1 of (\\d+)/i', $session, $matchesp);\n\n if (!empty($matchesp[1]) && (int)$matchesp[1] > 0) {\n\n\n for ($i = 1; $i <= (int)$matchesp[1]; $i++) {\n\n var_dumpp($i);\n\n //\tGet next page\n $postdata = http_build_query(\n array(\n $form_id . ':form1' => $form_id . ':form1',\n // $form_id . ':form1:menu1' => CURRENT_SESSION,\n $form_id . ':form1:tableEx1:goto1__pagerGoButton.x' => 11,\n $form_id . ':form1:tableEx1:goto1__pagerGoButton.y' => 11,\n $form_id . ':form1:tableEx1:goto1__pagerGoText' => $i,\n $form_id . ':form1_SUBMIT' => 1,\n 'javax.faces.ViewState' => $matchess[1],\n // 'javax.faces.ViewState' => '/wps/PA_DZ-LN-Seje/portlet/SejeIzbranaSejaView.jsp',\n )\n );\n $opts = array('http' =>\n array(\n 'method' => 'POST',\n 'header' => 'Cookie: ' . $cookiess . \"\\r\\n\" . 'Content-type: application/x-www-form-urlencoded',\n 'content' => $postdata\n )\n );\n $context = stream_context_create($opts);\n\n if ($subpage = file_get_contents(DZ_URL . $matches[1], false, $context)) {\n\n $votearea = str_get_html($subpage)->find('table.dataTableExHov', 0);\n if (!empty ($votearea)) {\n\n foreach ($votearea->find('tbody td a.outputLink') as $votes) {\n if (preg_match('/\\d{2}\\.\\d{2}\\.\\d{4}/is', $votes->text())) {\n $tmp['voting'][] = parseVotes(DZ_URL . $votes->href);\n sleep(FETCH_TIMEOUT);\n }\n }\n }\n }\n }\n\n //saveVotes($tmp, $organization_id);\n\n }\n\n }\n\n //\tTest: Izpis podatkov celotne seje\n //print_r ($tmp);\n //exit();\n\n\n //\tAdd to DB\n saveSession($tmp, $organization_id);\n var_dumpp(\"SAVE:\");\n var_dumpp($organization_id);\n }\n }\n}", "function get_number_of_sessions()\n {\n\t\treturn count($this->sessions);\n\t}" ]
[ "0.6354537", "0.62476444", "0.5945571", "0.58207285", "0.58042485", "0.577732", "0.5757235", "0.57081074", "0.5701268", "0.55865073", "0.5565728", "0.55438083", "0.55030185", "0.54554814", "0.5438581", "0.5430128", "0.53634614", "0.53364277", "0.53309757", "0.5305257", "0.52928025", "0.5279621", "0.52766436", "0.5240331", "0.5232714", "0.52141017", "0.5203791", "0.5201715", "0.5167271", "0.5160889", "0.5159232", "0.5158324", "0.51544785", "0.51372856", "0.51306814", "0.5124793", "0.51222074", "0.5116066", "0.5097618", "0.5096176", "0.5092115", "0.5084544", "0.50777555", "0.5071848", "0.5070517", "0.50662035", "0.5043362", "0.5039168", "0.50344014", "0.502413", "0.5020533", "0.5016063", "0.5009863", "0.49991068", "0.4997029", "0.49914178", "0.49848", "0.49808758", "0.49795586", "0.49791983", "0.49615678", "0.49595776", "0.49424198", "0.49353325", "0.4931379", "0.4931379", "0.4924154", "0.49169892", "0.4911825", "0.49098176", "0.49068582", "0.49029484", "0.48996466", "0.48940775", "0.48920706", "0.48906496", "0.488838", "0.48859227", "0.48800796", "0.48624018", "0.4855541", "0.48537615", "0.48450878", "0.4843458", "0.48427883", "0.48413375", "0.48407093", "0.48371586", "0.48313403", "0.4829319", "0.48279482", "0.48210618", "0.48193863", "0.48154986", "0.4805908", "0.48040357", "0.48037615", "0.47893548", "0.4788985" ]
0.61118084
3
Row attributes Reset CSS styles for table object
function ResetCSS() { $this->RowAttrs["style"] = ""; $this->RowAttrs["class"] = ""; foreach ($this->fields as $fld) { $fld->ResetCSS(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetStyle($tagName = '')\n {\n // prepare somme values\n $border = $this->readBorder('solid 1px #000000');\n $units = array(\n '1px' => $this->convertToMM('1px'),\n '5px' => $this->convertToMM('5px'),\n );\n\n\n // prepare the Collapse attribute\n $collapse = isset($this->value['border']['collapse']) ? $this->value['border']['collapse'] : false;\n if (!in_array($tagName, array('tr', 'td', 'th', 'thead', 'tbody', 'tfoot'))) $collapse = false;\n\n // set the global css values\n $this->value['position'] = null;\n $this->value['x'] = null;\n $this->value['y'] = null;\n $this->value['width'] = 0;\n $this->value['height'] = 0;\n $this->value['top'] = null;\n $this->value['right'] = null;\n $this->value['bottom'] = null;\n $this->value['left'] = null;\n $this->value['float'] = null;\n $this->value['display'] = null;\n $this->value['rotate'] = null;\n $this->value['overflow'] = 'visible';\n $this->value['background'] = array('color' => null, 'image' => null, 'position' => null, 'repeat' => null);\n $this->value['border'] = array(\n 't' => $this->readBorder('none'),\n 'r' => $this->readBorder('none'),\n 'b' => $this->readBorder('none'),\n 'l' => $this->readBorder('none'),\n 'radius' => array(\n 'tl' => array(0, 0),\n 'tr' => array(0, 0),\n 'br' => array(0, 0),\n 'bl' => array(0, 0)\n ),\n 'collapse' => $collapse,\n );\n\n // specific values for some tags\n if (!in_array($tagName, array('h1', 'h2', 'h3', 'h4', 'h5', 'h6'))) {\n $this->value['margin'] = array('t'=>0,'r'=>0,'b'=>0,'l'=>0);\n }\n\n if (in_array($tagName, array('input', 'select', 'textarea'))) {\n $this->value['border']['t'] = null;\n $this->value['border']['r'] = null;\n $this->value['border']['b'] = null;\n $this->value['border']['l'] = null;\n }\n\n if ($tagName=='p') {\n $this->value['margin']['t'] = null;\n $this->value['margin']['b'] = null;\n }\n if ($tagName=='blockquote') {\n $this->value['margin']['t'] = 3;\n $this->value['margin']['r'] = 3;\n $this->value['margin']['b'] = 3;\n $this->value['margin']['l'] = 6;\n }\n $this->value['margin-auto'] = false;\n\n if (in_array($tagName, array('blockquote', 'div', 'fieldset'))) {\n $this->value['vertical-align'] = 'top';\n }\n\n if (in_array($tagName, array('fieldset', 'legend'))) {\n $this->value['border'] = array(\n 't' => $border,\n 'r' => $border,\n 'b' => $border,\n 'l' => $border,\n 'radius' => array(\n 'tl' => array($units['5px'], $units['5px']),\n 'tr' => array($units['5px'], $units['5px']),\n 'br' => array($units['5px'], $units['5px']),\n 'bl' => array($units['5px'], $units['5px'])\n ),\n 'collapse' => false,\n );\n }\n\n if (in_array($tagName, array('ul', 'li'))) {\n $this->value['list-style-type'] = '';\n $this->value['list-style-image'] = '';\n }\n\n if (!in_array($tagName, array('tr', 'td'))) {\n $this->value['padding'] = array(\n 't' => 0,\n 'r' => 0,\n 'b' => 0,\n 'l' => 0\n );\n } else {\n $this->value['padding'] = array(\n 't' => $units['1px'],\n 'r' => $units['1px'],\n 'b' => $units['1px'],\n 'l' => $units['1px']\n );\n }\n\n if ($tagName=='hr') {\n $this->value['border'] = array(\n 't' => $border,\n 'r' => $border,\n 'b' => $border,\n 'l' => $border,\n 'radius' => array(\n 'tl' => array(0, 0),\n 'tr' => array(0, 0),\n 'br' => array(0, 0),\n 'bl' => array(0, 0)\n ),\n 'collapse' => false,\n );\n $this->convertBackground('#FFFFFF', $this->value['background']);\n }\n\n $this->value['xc'] = null;\n $this->value['yc'] = null;\n }", "public function resetTable();", "function reset_rows()\n{\n}", "public function mergeRowData( $row ){\n\t\t$row->attrs = '';\n\t\t$styles = array();\n\n\t\tif( isset($row->clss) && $row->clss ){\n\t\t\t$row->clss = trim( $row->clss );\n\t\t}else {\n\t\t\t$row->clss = '';\n\t\t}\n\n\t\treturn $row;\n\t}", "public function resetExpandedRows()\n\t{\n\t\t$this->setExpandedRows();\n\t}", "function setRowPrototype($row) {\n\t\t$this->row = $row;\n\t\treturn $this;\n\t}", "function DOM_analyze_table($table) {\r\n\t\tif(false) {\r\n\t\t\t$this->table_style = \"chart\";\r\n\t\t} else {\r\n\t\t\t$this->table_style = \"normal\";\r\n\t\t}\r\n\t}", "public function setTrTdAttr ($attr, $row=null) {\n if (is_numeric ($row))\n $this->_setAttr ($attr, $this->trtdAttr[$row]);\n else\n $this->_setAttr ($attr, $this->trtdAttr[]);\n }", "protected function rowStyleOptions() {\n // Get all available row plugins by default.\n $options = Views::fetchPluginNames('row', 'normal', [$this->base_table]);\n return $options;\n }", "function setRowClasses($field, $map)\n\t{\n\t\t$this->table->rowclasses['field'] = $field;\n\t\t$this->table->rowclasses['classes'] = $map;\n\t}", "public function set_alt_rows() { $this->alt_rows = true; }", "abstract protected function updateSpecificProperties($row);", "public function clearColgroupClass()\n {\n $this->html_colgroup_class = [];\n }", "function formatRow(){\n $this->hook('formatRow');\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "private function setTableHeader($row){\n\t\t$header_data=false;\n\t\tif($this->header){\n\t\t\t$header_data=$this->header;\n\t\t}\n\t\telse{\n\t\t\tif(!empty($row) && is_array($row) && count($row)){\n\t\t\t\tforeach($row as $i => $v){\n\t\t\t\t\t$header_data[$i]=$i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!empty($header_data)){\n\t\t\t$this->table_header.=_N_T.'<tr>';\n\t\t\t$this->table_header.=_N_T_T.'<th class=\"th.LineNum\">#</th>';\n\t\t\tforeach($header_data as $name => $value){\n\t\t\t\t$this->table_header.=_N_T_T.'<th nowrap=\"nowrap\">'.$value.$this->getOrderBy($name).'</th>';\n\t\t\t}\n\t\t\t$this->table_header.=_N_T.'</tr>';\n\t\t}\n\t\treturn $this;\n\t}", "public function reset() {\n\t\t// Get the default values for the class from the table.\n\t\tforeach ($this->getFields() as $k => $v) {\n\t\t\t// If the property is not private, reset it.\n\t\t\tif (strpos($k, '_') !== 0) {\n\t\t\t\t$this->$k = NULL;\n\t\t\t}\n\t\t}\n\t}", "protected function clearRow()\n {\n return $this->clearRowData($this->row, true);\n }", "public function changeRowData(&$row){}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// ContentDate\n\t\t$patient_detail->ContentDate->CellCssStyle = \"\";\n\t\t$patient_detail->ContentDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// ContentTime\n\t\t$patient_detail->ContentTime->CellCssStyle = \"\";\n\t\t$patient_detail->ContentTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function RenderRow() {\n\tglobal $conn, $Security, $dpp_proveedores;\n\n\t// Call Row Rendering event\n\t$dpp_proveedores->Row_Rendering();\n\n\t// Common render codes for all row types\n\t// provee_id\n\n\t$dpp_proveedores->provee_id->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_id->CellCssClass = \"\";\n\n\t// provee_rut\n\t$dpp_proveedores->provee_rut->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_rut->CellCssClass = \"\";\n\n\t// provee_dig\n\t$dpp_proveedores->provee_dig->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dig->CellCssClass = \"\";\n\n\t// provee_cat_juri\n\t$dpp_proveedores->provee_cat_juri->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_cat_juri->CellCssClass = \"\";\n\n\t// provee_nombre\n\t$dpp_proveedores->provee_nombre->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_nombre->CellCssClass = \"\";\n\n\t// provee_paterno\n\t$dpp_proveedores->provee_paterno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_paterno->CellCssClass = \"\";\n\n\t// provee_materno\n\t$dpp_proveedores->provee_materno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_materno->CellCssClass = \"\";\n\n\t// provee_dir\n\t$dpp_proveedores->provee_dir->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dir->CellCssClass = \"\";\n\n\t// provee_fono\n\t$dpp_proveedores->provee_fono->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_fono->CellCssClass = \"\";\n\tif ($dpp_proveedores->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->ViewValue = $dpp_proveedores->provee_id->CurrentValue;\n\t\t$dpp_proveedores->provee_id->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_id->CssClass = \"\";\n\t\t$dpp_proveedores->provee_id->ViewCustomAttributes = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->ViewValue = $dpp_proveedores->provee_rut->CurrentValue;\n\t\t$dpp_proveedores->provee_rut->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_rut->CssClass = \"\";\n\t\t$dpp_proveedores->provee_rut->ViewCustomAttributes = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->ViewValue = $dpp_proveedores->provee_dig->CurrentValue;\n\t\t$dpp_proveedores->provee_dig->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dig->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dig->ViewCustomAttributes = \"\";\n\n\t\t// provee_cat_juri\n\t\tif (!is_null($dpp_proveedores->provee_cat_juri->CurrentValue)) {\n\t\t\tswitch ($dpp_proveedores->provee_cat_juri->CurrentValue) {\n\t\t\t\tcase \"Natural\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Natural\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Juridica\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Juridica\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = $dpp_proveedores->provee_cat_juri->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = NULL;\n\t\t}\n\t\t$dpp_proveedores->provee_cat_juri->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->CssClass = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->ViewCustomAttributes = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->ViewValue = $dpp_proveedores->provee_nombre->CurrentValue;\n\t\t$dpp_proveedores->provee_nombre->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_nombre->CssClass = \"\";\n\t\t$dpp_proveedores->provee_nombre->ViewCustomAttributes = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->ViewValue = $dpp_proveedores->provee_paterno->CurrentValue;\n\t\t$dpp_proveedores->provee_paterno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_paterno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_paterno->ViewCustomAttributes = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->ViewValue = $dpp_proveedores->provee_materno->CurrentValue;\n\t\t$dpp_proveedores->provee_materno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_materno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_materno->ViewCustomAttributes = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->ViewValue = $dpp_proveedores->provee_dir->CurrentValue;\n\t\t$dpp_proveedores->provee_dir->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dir->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dir->ViewCustomAttributes = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->ViewValue = $dpp_proveedores->provee_fono->CurrentValue;\n\t\t$dpp_proveedores->provee_fono->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_fono->CssClass = \"\";\n\t\t$dpp_proveedores->provee_fono->ViewCustomAttributes = \"\";\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->HrefValue = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->HrefValue = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->HrefValue = \"\";\n\n\t\t// provee_cat_juri\n\t\t$dpp_proveedores->provee_cat_juri->HrefValue = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->HrefValue = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->HrefValue = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->HrefValue = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->HrefValue = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->HrefValue = \"\";\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_ADD) { // Add row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\t}\n\n\t// Call Row Rendered event\n\t$dpp_proveedores->Row_Rendered();\n}", "function RenderRow() {\n\t\tglobal $conn, $Security, $planilla;\n\n\t\t// Call Row_Rendering event\n\t\t$planilla->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idPlanilla\n\n\t\t$planilla->idPlanilla->CellCssStyle = \"\";\n\t\t$planilla->idPlanilla->CellCssClass = \"\";\n\n\t\t// Nombre\n\t\t$planilla->Nombre->CellCssStyle = \"\";\n\t\t$planilla->Nombre->CellCssClass = \"\";\n\t\tif ($planilla->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->ViewValue = $planilla->idPlanilla->CurrentValue;\n\t\t\t$planilla->idPlanilla->CssStyle = \"\";\n\t\t\t$planilla->idPlanilla->CssClass = \"\";\n\t\t\t$planilla->idPlanilla->ViewCustomAttributes = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->ViewValue = $planilla->Nombre->CurrentValue;\n\t\t\t$planilla->Nombre->CssStyle = \"\";\n\t\t\t$planilla->Nombre->CssClass = \"\";\n\t\t\t$planilla->Nombre->ViewCustomAttributes = \"\";\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->HrefValue = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$planilla->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$filesystem->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$filesystem->id->CellCssStyle = \"\";\r\n\t\t$filesystem->id->CellCssClass = \"\";\r\n\r\n\t\t// mount\r\n\t\t$filesystem->mount->CellCssStyle = \"\";\r\n\t\t$filesystem->mount->CellCssClass = \"\";\r\n\r\n\t\t// path\r\n\t\t$filesystem->path->CellCssStyle = \"\";\r\n\t\t$filesystem->path->CellCssClass = \"\";\r\n\r\n\t\t// parent\r\n\t\t$filesystem->parent->CellCssStyle = \"\";\r\n\t\t$filesystem->parent->CellCssClass = \"\";\r\n\r\n\t\t// deprecated\r\n\t\t$filesystem->deprecated->CellCssStyle = \"\";\r\n\t\t$filesystem->deprecated->CellCssClass = \"\";\r\n\r\n\t\t// gid\r\n\t\t$filesystem->gid->CellCssStyle = \"\";\r\n\t\t$filesystem->gid->CellCssClass = \"\";\r\n\r\n\t\t// snapshot\r\n\t\t$filesystem->snapshot->CellCssStyle = \"\";\r\n\t\t$filesystem->snapshot->CellCssClass = \"\";\r\n\r\n\t\t// tapebackup\r\n\t\t$filesystem->tapebackup->CellCssStyle = \"\";\r\n\t\t$filesystem->tapebackup->CellCssClass = \"\";\r\n\r\n\t\t// diskbackup\r\n\t\t$filesystem->diskbackup->CellCssStyle = \"\";\r\n\t\t$filesystem->diskbackup->CellCssClass = \"\";\r\n\r\n\t\t// type\r\n\t\t$filesystem->type->CellCssStyle = \"\";\r\n\t\t$filesystem->type->CellCssClass = \"\";\r\n\r\n\t\t// contact\r\n\t\t$filesystem->contact->CellCssStyle = \"\";\r\n\t\t$filesystem->contact->CellCssClass = \"\";\r\n\r\n\t\t// contact2\r\n\t\t$filesystem->contact2->CellCssStyle = \"\";\r\n\t\t$filesystem->contact2->CellCssClass = \"\";\r\n\r\n\t\t// rescomp\r\n\t\t$filesystem->rescomp->CellCssStyle = \"\";\r\n\t\t$filesystem->rescomp->CellCssClass = \"\";\r\n\t\tif ($filesystem->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->ViewValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->ViewValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->ViewValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->ViewValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->ViewValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->ViewValue = $filesystem->snapshot->CurrentValue;\r\n\t\t\t$filesystem->snapshot->CssStyle = \"\";\r\n\t\t\t$filesystem->snapshot->CssClass = \"\";\r\n\t\t\t$filesystem->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->ViewValue = $filesystem->tapebackup->CurrentValue;\r\n\t\t\t$filesystem->tapebackup->CssStyle = \"\";\r\n\t\t\t$filesystem->tapebackup->CssClass = \"\";\r\n\t\t\t$filesystem->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->ViewValue = $filesystem->diskbackup->CurrentValue;\r\n\t\t\t$filesystem->diskbackup->CssStyle = \"\";\r\n\t\t\t$filesystem->diskbackup->CssClass = \"\";\r\n\t\t\t$filesystem->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->ViewValue = $filesystem->contact2->CurrentValue;\r\n\t\t\t$filesystem->contact2->CssStyle = \"\";\r\n\t\t\t$filesystem->contact2->CssClass = \"\";\r\n\t\t\t$filesystem->contact2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->ViewValue = $filesystem->rescomp->CurrentValue;\r\n\t\t\t$filesystem->rescomp->CssStyle = \"\";\r\n\t\t\t$filesystem->rescomp->CssClass = \"\";\r\n\t\t\t$filesystem->rescomp->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t} elseif ($filesystem->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->id->EditValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->mount->EditValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->path->EditValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->parent->EditValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->deprecated->EditValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->gid->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->gid->CurrentValue = $filesystem->gid->getSessionValue();\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `grp`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->gid->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->snapshot->EditValue = ew_HtmlEncode($filesystem->snapshot->CurrentValue);\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->tapebackup->EditValue = ew_HtmlEncode($filesystem->tapebackup->CurrentValue);\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->diskbackup->EditValue = ew_HtmlEncode($filesystem->diskbackup->CurrentValue);\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->type->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->type->CurrentValue = $filesystem->type->getSessionValue();\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `server_type`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->type->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->contact->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->contact->CurrentValue = $filesystem->contact->getSessionValue();\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$filesystem->contact->EditValue = ew_HtmlEncode($filesystem->contact->CurrentValue);\r\n\t\t\t}\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->contact2->EditValue = ew_HtmlEncode($filesystem->contact2->CurrentValue);\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->rescomp->EditValue = ew_HtmlEncode($filesystem->rescomp->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// id\r\n\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\t$filesystem->Row_Rendered();\r\n\t}", "function setCellAttributes(array $values)\n\t{\n\t\t$this->attrs = $values;\n\t\treturn $this;\n\t}", "function setCellAttributes(array $values)\n\t{\n\t\t$this->attrs = $values;\n\t\treturn $this;\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $mst_vendor;\n\n\t\t// Call Row_Rendering event\n\t\t$mst_vendor->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// kode\n\n\t\t$mst_vendor->kode->CellCssStyle = \"\";\n\t\t$mst_vendor->kode->CellCssClass = \"\";\n\n\t\t// nama\n\t\t$mst_vendor->nama->CellCssStyle = \"\";\n\t\t$mst_vendor->nama->CellCssClass = \"\";\n\n\t\t// alamat\n\t\t$mst_vendor->alamat->CellCssStyle = \"\";\n\t\t$mst_vendor->alamat->CellCssClass = \"\";\n\n\t\t// alamatpajak\n\t\t$mst_vendor->alamatpajak->CellCssStyle = \"\";\n\t\t$mst_vendor->alamatpajak->CellCssClass = \"\";\n\n\t\t// npwp\n\t\t$mst_vendor->npwp->CellCssStyle = \"\";\n\t\t$mst_vendor->npwp->CellCssClass = \"\";\n\n\t\t// pic\n\t\t$mst_vendor->pic->CellCssStyle = \"\";\n\t\t$mst_vendor->pic->CellCssClass = \"\";\n\n\t\t// phone\n\t\t$mst_vendor->phone->CellCssStyle = \"\";\n\t\t$mst_vendor->phone->CellCssClass = \"\";\n\n\t\t// fax\n\t\t$mst_vendor->fax->CellCssStyle = \"\";\n\t\t$mst_vendor->fax->CellCssClass = \"\";\n\n\t\t// email\n\t\t$mst_vendor->zemail->CellCssStyle = \"\";\n\t\t$mst_vendor->zemail->CellCssClass = \"\";\n\n\t\t// peruntukan\n\t\t$mst_vendor->peruntukan->CellCssStyle = \"\";\n\t\t$mst_vendor->peruntukan->CellCssClass = \"\";\n\t\tif ($mst_vendor->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->ViewValue = $mst_vendor->kode->CurrentValue;\n\t\t\t$mst_vendor->kode->CssStyle = \"\";\n\t\t\t$mst_vendor->kode->CssClass = \"\";\n\t\t\t$mst_vendor->kode->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->ViewValue = $mst_vendor->nama->CurrentValue;\n\t\t\t$mst_vendor->nama->CssStyle = \"\";\n\t\t\t$mst_vendor->nama->CssClass = \"\";\n\t\t\t$mst_vendor->nama->ViewCustomAttributes = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->ViewValue = $mst_vendor->alamat->CurrentValue;\n\t\t\t$mst_vendor->alamat->CssStyle = \"\";\n\t\t\t$mst_vendor->alamat->CssClass = \"\";\n\t\t\t$mst_vendor->alamat->ViewCustomAttributes = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->ViewValue = $mst_vendor->alamatpajak->CurrentValue;\n\t\t\t$mst_vendor->alamatpajak->CssStyle = \"\";\n\t\t\t$mst_vendor->alamatpajak->CssClass = \"\";\n\t\t\t$mst_vendor->alamatpajak->ViewCustomAttributes = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->ViewValue = $mst_vendor->npwp->CurrentValue;\n\t\t\t$mst_vendor->npwp->CssStyle = \"\";\n\t\t\t$mst_vendor->npwp->CssClass = \"\";\n\t\t\t$mst_vendor->npwp->ViewCustomAttributes = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->ViewValue = $mst_vendor->pic->CurrentValue;\n\t\t\t$mst_vendor->pic->CssStyle = \"\";\n\t\t\t$mst_vendor->pic->CssClass = \"\";\n\t\t\t$mst_vendor->pic->ViewCustomAttributes = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->ViewValue = $mst_vendor->phone->CurrentValue;\n\t\t\t$mst_vendor->phone->CssStyle = \"\";\n\t\t\t$mst_vendor->phone->CssClass = \"\";\n\t\t\t$mst_vendor->phone->ViewCustomAttributes = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->ViewValue = $mst_vendor->fax->CurrentValue;\n\t\t\t$mst_vendor->fax->CssStyle = \"\";\n\t\t\t$mst_vendor->fax->CssClass = \"\";\n\t\t\t$mst_vendor->fax->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->ViewValue = $mst_vendor->zemail->CurrentValue;\n\t\t\t$mst_vendor->zemail->CssStyle = \"\";\n\t\t\t$mst_vendor->zemail->CssClass = \"\";\n\t\t\t$mst_vendor->zemail->ViewCustomAttributes = \"\";\n\n\t\t\t// peruntukan\n\t\t\tif (strval($mst_vendor->peruntukan->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($mst_vendor->peruntukan->CurrentValue) {\n\t\t\t\t\tcase \"unit\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Unit\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"part\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Part\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"material\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Material\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = $mst_vendor->peruntukan->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$mst_vendor->peruntukan->ViewValue = NULL;\n\t\t\t}\n\t\t\t$mst_vendor->peruntukan->CssStyle = \"\";\n\t\t\t$mst_vendor->peruntukan->CssClass = \"\";\n\t\t\t$mst_vendor->peruntukan->ViewCustomAttributes = \"\";\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->HrefValue = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->HrefValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->HrefValue = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->HrefValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->HrefValue = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->HrefValue = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->HrefValue = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->HrefValue = \"\";\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->HrefValue = \"\";\n\t\t} elseif ($mst_vendor->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->kode->EditValue = ew_HtmlEncode($mst_vendor->kode->CurrentValue);\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->nama->EditValue = ew_HtmlEncode($mst_vendor->nama->CurrentValue);\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamat->EditValue = ew_HtmlEncode($mst_vendor->alamat->CurrentValue);\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamatpajak->EditValue = ew_HtmlEncode($mst_vendor->alamatpajak->CurrentValue);\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->npwp->EditValue = ew_HtmlEncode($mst_vendor->npwp->CurrentValue);\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->pic->EditValue = ew_HtmlEncode($mst_vendor->pic->CurrentValue);\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->phone->EditValue = ew_HtmlEncode($mst_vendor->phone->CurrentValue);\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->fax->EditValue = ew_HtmlEncode($mst_vendor->fax->CurrentValue);\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->zemail->EditValue = ew_HtmlEncode($mst_vendor->zemail->CurrentValue);\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"unit\", \"Unit\");\n\t\t\t$arwrk[] = array(\"part\", \"Part\");\n\t\t\t$arwrk[] = array(\"material\", \"Material\");\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\"));\n\t\t\t$mst_vendor->peruntukan->EditValue = $arwrk;\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$mst_vendor->Row_Rendered();\n\t}", "public function refreshRows(){\n if (count($this->rows) > 0){\n foreach ($this->rows as $row){\n $this->removeRow($row);\n }\n }\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->total_gross->FormValue == $this->total_gross->CurrentValue && is_numeric(ew_StrToFloat($this->total_gross->CurrentValue)))\n\t\t\t$this->total_gross->CurrentValue = ew_StrToFloat($this->total_gross->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\n\t\t$this->row_id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_date\n\t\t$this->auc_date->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_number\n\t\t$this->auc_number->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_place\n\t\t$this->auc_place->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// start_bid\n\t\t$this->start_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// close_bid\n\t\t$this->close_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_notes\n\t\t// total_sack\n\n\t\t$this->total_sack->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_netto\n\t\t$this->total_netto->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_gross\n\t\t$this->total_gross->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_status\n\t\t$this->auc_status->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// rate\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// auc_date\n\t\t$this->auc_date->ViewValue = $this->auc_date->CurrentValue;\n\t\t$this->auc_date->ViewValue = ew_FormatDateTime($this->auc_date->ViewValue, 7);\n\t\t$this->auc_date->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_date->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// auc_place\n\t\t$this->auc_place->ViewValue = $this->auc_place->CurrentValue;\n\t\t$this->auc_place->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// auc_notes\n\t\t$this->auc_notes->ViewValue = $this->auc_notes->CurrentValue;\n\t\t$this->auc_notes->ViewCustomAttributes = \"\";\n\n\t\t// total_sack\n\t\t$this->total_sack->ViewValue = $this->total_sack->CurrentValue;\n\t\t$this->total_sack->ViewValue = ew_FormatNumber($this->total_sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_sack->ViewCustomAttributes = \"\";\n\n\t\t// total_netto\n\t\t$this->total_netto->ViewValue = $this->total_netto->CurrentValue;\n\t\t$this->total_netto->ViewValue = ew_FormatNumber($this->total_netto->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_netto->ViewCustomAttributes = \"\";\n\n\t\t// total_gross\n\t\t$this->total_gross->ViewValue = $this->total_gross->CurrentValue;\n\t\t$this->total_gross->ViewValue = ew_FormatNumber($this->total_gross->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_gross->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_gross->ViewCustomAttributes = \"\";\n\n\t\t// auc_status\n\t\tif (strval($this->auc_status->CurrentValue) <> \"\") {\n\t\t\t$this->auc_status->ViewValue = $this->auc_status->OptionCaption($this->auc_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auc_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auc_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_status->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// auc_place\n\t\t\t$this->auc_place->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_place->HrefValue = \"\";\n\t\t\t$this->auc_place->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// auc_notes\n\t\t\t$this->auc_notes->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_notes->HrefValue = \"\";\n\t\t\t$this->auc_notes->TooltipValue = \"\";\n\n\t\t\t// total_sack\n\t\t\t$this->total_sack->LinkCustomAttributes = \"\";\n\t\t\t$this->total_sack->HrefValue = \"\";\n\t\t\t$this->total_sack->TooltipValue = \"\";\n\n\t\t\t// total_gross\n\t\t\t$this->total_gross->LinkCustomAttributes = \"\";\n\t\t\t$this->total_gross->HrefValue = \"\";\n\t\t\t$this->total_gross->TooltipValue = \"\";\n\n\t\t\t// auc_status\n\t\t\t$this->auc_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_status->HrefValue = \"\";\n\t\t\t$this->auc_status->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function reset()\n\t\t{\n\t\t\t$this->styles = [];\n\t\t}", "private function makeTableRows($rowAttr = [])\n {\n // Reshape array $this->tableData such that each array entry contains\n // $this->nCols nodes. => Each array entry corresponds to one\n // row of table elements.\n $tableData = array_chunk(\n $this->makeTableData($this->inputData),\n $this->nCols\n );\n // Set up table content\n $rowCount = 0;\n $altRowCount = 0;\n $tr = new HtmlNode(kind: 'tr');\n foreach ($tableData as $nodesPerRow) {\n $tr_tmp = clone $tr;\n // Set (imported) row attributes\n if (isset($rowAttr[$rowCount])) {\n $tr_tmp->setAttributes($rowAttr[$rowCount]);\n }\n // Label alternative rows\n if (($rowCount >= $this->rowOffset)) {\n if (($altRowCount % $this->rowAlt) === 0) {\n $tr_tmp->setAttributes(['class' => 'alt'], 'add');\n }\n ++$altRowCount;\n }\n ++$rowCount;\n $tr_tmp->append($nodesPerRow);\n $tableRows[] = $tr_tmp;\n }\n return $tableRows;\n }", "public function testSetStyleWithNonNovelDuplicateValuesAndUnsetRowValues()\n {\n\n // Create a record.\n $exhibit = $this->_createNeatline();\n\n // Set.\n $this->assertFalse($exhibit->setStyle('vector_color', get_option('vector_color')));\n $this->assertFalse($exhibit->setStyle('vector_opacity', get_option('vector_opacity')));\n $this->assertFalse($exhibit->setStyle('stroke_color', get_option('stroke_color')));\n $this->assertFalse($exhibit->setStyle('stroke_opacity', get_option('stroke_opacity')));\n $this->assertFalse($exhibit->setStyle('stroke_width', get_option('stroke_width')));\n $this->assertFalse($exhibit->setStyle('point_radius', get_option('point_radius')));\n\n // Check.\n $this->assertNull($exhibit->default_vector_color);\n $this->assertNull($exhibit->default_vector_opacity);\n $this->assertNull($exhibit->default_stroke_color);\n $this->assertNull($exhibit->default_stroke_opacity);\n $this->assertNull($exhibit->default_stroke_width);\n $this->assertNull($exhibit->default_point_radius);\n\n }", "public function clearTable()\r\n {\r\n $write = $this->getResource()->cleanTable();\r\n return $this;\r\n }", "public function setRow($Row) \n \t{\n \t\treturn false;\n \t\t//parent::setRow($Row);\n \t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\n\t\t$this->id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// nombre_contacto\n\t\t// name\n\t\t// lastname\n\t\t// email\n\t\t// address\n\t\t// phone\n\t\t// cell\n\t\t// is_active\n\n\t\t$this->is_active->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// created_at\n\t\t// id_sucursal\n\t\t// documentos\n\n\t\t$this->documentos->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateModified\n\t\t$this->DateModified->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateDeleted\n\t\t$this->DateDeleted->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// CreatedBy\n\t\t$this->CreatedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// ModifiedBy\n\t\t$this->ModifiedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DeletedBy\n\t\t$this->DeletedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// latitud\n\t\t$this->latitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// longitud\n\t\t$this->longitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipoinmueble\n\t\t// id_ciudad_inmueble\n\t\t// id_provincia_inmueble\n\t\t// imagen_inmueble01\n\n\t\t$this->imagen_inmueble01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble02\n\t\t// imagen_inmueble03\n\t\t// imagen_inmueble04\n\t\t// imagen_inmueble05\n\t\t// imagen_inmueble06\n\n\t\t$this->imagen_inmueble06->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble07\n\t\t$this->imagen_inmueble07->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble08\n\t\t$this->imagen_inmueble08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipovehiculo\n\t\t// id_ciudad_vehiculo\n\t\t// id_provincia_vehiculo\n\t\t// imagen_vehiculo01\n\n\t\t$this->imagen_vehiculo01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo02\n\t\t// imagen_vehiculo03\n\n\t\t$this->imagen_vehiculo03->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo04\n\t\t$this->imagen_vehiculo04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo05\n\t\t// imagen_vehiculo06\n\t\t// imagen_vehiculo07\n\t\t// imagen_vehiculo08\n\n\t\t$this->imagen_vehiculo08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomaquinaria\n\t\t// id_ciudad_maquinaria\n\t\t// id_provincia_maquinaria\n\t\t// imagen_maquinaria01\n\n\t\t$this->imagen_maquinaria01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria02\n\t\t// imagen_maquinaria03\n\t\t// imagen_maquinaria04\n\n\t\t$this->imagen_maquinaria04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria05\n\t\t// imagen_maquinaria06\n\t\t// imagen_maquinaria07\n\t\t// imagen_maquinaria08\n\n\t\t$this->imagen_maquinaria08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomercaderia\n\t\t// imagen_mercaderia01\n\t\t// documento_mercaderia\n\t\t// tipoespecial\n\t\t// imagen_tipoespecial01\n\t\t// email_contacto\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// nombre_contacto\n\t\t$this->nombre_contacto->ViewValue = $this->nombre_contacto->CurrentValue;\n\t\t$this->nombre_contacto->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// lastname\n\t\t$this->lastname->ViewValue = $this->lastname->CurrentValue;\n\t\t$this->lastname->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// address\n\t\t$this->address->ViewValue = $this->address->CurrentValue;\n\t\t$this->address->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// cell\n\t\t$this->cell->ViewValue = $this->cell->CurrentValue;\n\t\t$this->cell->ViewCustomAttributes = \"\";\n\n\t\t// created_at\n\t\t$this->created_at->ViewValue = $this->created_at->CurrentValue;\n\t\t$this->created_at->ViewValue = ew_FormatDateTime($this->created_at->ViewValue, 17);\n\t\t$this->created_at->ViewCustomAttributes = \"\";\n\n\t\t// id_sucursal\n\t\tif (strval($this->id_sucursal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sucursal->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sucursal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sucursal->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`id`='\".$_SESSION[\"sucursal\"].\"'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sucursal, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sucursal->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sucursal->ViewCustomAttributes = \"\";\n\n\t\t// tipoinmueble\n\t\tif (strval($this->tipoinmueble->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoinmueble->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoinmueble->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='INMUEBLE'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoinmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoinmueble->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoinmueble->ViewValue .= $this->tipoinmueble->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoinmueble->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoinmueble->ViewValue = $this->tipoinmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoinmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoinmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_inmueble\n\t\tif (strval($this->id_ciudad_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_inmueble\n\t\tif (strval($this->id_provincia_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// tipovehiculo\n\t\tif (strval($this->tipovehiculo->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipovehiculo->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipovehiculo->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='VEHICULO'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipovehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipovehiculo->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipovehiculo->ViewValue .= $this->tipovehiculo->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipovehiculo->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipovehiculo->ViewValue = $this->tipovehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipovehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipovehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_vehiculo\n\t\tif (strval($this->id_ciudad_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_vehiculo\n\t\tif (strval($this->id_provincia_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// tipomaquinaria\n\t\tif (strval($this->tipomaquinaria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomaquinaria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomaquinaria->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='MAQUINARIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomaquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomaquinaria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomaquinaria->ViewValue .= $this->tipomaquinaria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomaquinaria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomaquinaria->ViewValue = $this->tipomaquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomaquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomaquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_maquinaria\n\t\tif (strval($this->id_ciudad_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_maquinaria\n\t\tif (strval($this->id_provincia_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// tipomercaderia\n\t\tif (strval($this->tipomercaderia->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomercaderia->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomercaderia->LookupFilters = array();\n\t\t$lookuptblfilter = \"`tipo`='MERCADERIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomercaderia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomercaderia->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomercaderia->ViewValue .= $this->tipomercaderia->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomercaderia->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomercaderia->ViewValue = $this->tipomercaderia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomercaderia->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomercaderia->ViewCustomAttributes = \"\";\n\n\t\t// documento_mercaderia\n\t\t$this->documento_mercaderia->ViewValue = $this->documento_mercaderia->CurrentValue;\n\t\t$this->documento_mercaderia->ViewCustomAttributes = \"\";\n\n\t\t// tipoespecial\n\t\tif (strval($this->tipoespecial->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoespecial->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoespecial->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='ESPECIAL'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoespecial, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoespecial->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoespecial->ViewValue .= $this->tipoespecial->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoespecial->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoespecial->ViewValue = $this->tipoespecial->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoespecial->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoespecial->ViewCustomAttributes = \"\";\n\n\t\t// email_contacto\n\t\tif (strval($this->email_contacto->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`login`\" . ew_SearchString(\"=\", $this->email_contacto->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `login`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `oficialcredito`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->email_contacto->LookupFilters = array(\"dx1\" => '`nombre`', \"dx2\" => '`apellido`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->email_contacto, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->email_contacto->ViewValue = NULL;\n\t\t}\n\t\t$this->email_contacto->ViewCustomAttributes = \"\";\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->HrefValue = \"\";\n\t\t\t$this->nombre_contacto->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// lastname\n\t\t\t$this->lastname->LinkCustomAttributes = \"\";\n\t\t\t$this->lastname->HrefValue = \"\";\n\t\t\t$this->lastname->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// address\n\t\t\t$this->address->LinkCustomAttributes = \"\";\n\t\t\t$this->address->HrefValue = \"\";\n\t\t\t$this->address->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// cell\n\t\t\t$this->cell->LinkCustomAttributes = \"\";\n\t\t\t$this->cell->HrefValue = \"\";\n\t\t\t$this->cell->TooltipValue = \"\";\n\n\t\t\t// created_at\n\t\t\t$this->created_at->LinkCustomAttributes = \"\";\n\t\t\t$this->created_at->HrefValue = \"\";\n\t\t\t$this->created_at->TooltipValue = \"\";\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sucursal->HrefValue = \"\";\n\t\t\t$this->id_sucursal->TooltipValue = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoinmueble->HrefValue = \"\";\n\t\t\t$this->tipoinmueble->TooltipValue = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipovehiculo->HrefValue = \"\";\n\t\t\t$this->tipovehiculo->TooltipValue = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomaquinaria->HrefValue = \"\";\n\t\t\t$this->tipomaquinaria->TooltipValue = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomercaderia->HrefValue = \"\";\n\t\t\t$this->tipomercaderia->TooltipValue = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoespecial->HrefValue = \"\";\n\t\t\t$this->tipoespecial->TooltipValue = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->email_contacto->HrefValue = \"\";\n\t\t\t$this->email_contacto->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre_contacto->EditCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->EditValue = ew_HtmlEncode($this->nombre_contacto->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre_contacto->PlaceHolder = ew_RemoveHtml($this->nombre_contacto->FldTitle());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldTitle());\n\n\t\t\t// lastname\n\t\t\t$this->lastname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lastname->EditCustomAttributes = \"\";\n\t\t\t$this->lastname->EditValue = ew_HtmlEncode($this->lastname->AdvancedSearch->SearchValue);\n\t\t\t$this->lastname->PlaceHolder = ew_RemoveHtml($this->lastname->FldTitle());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldTitle());\n\n\t\t\t// address\n\t\t\t$this->address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->address->EditCustomAttributes = \"\";\n\t\t\t$this->address->EditValue = ew_HtmlEncode($this->address->AdvancedSearch->SearchValue);\n\t\t\t$this->address->PlaceHolder = ew_RemoveHtml($this->address->FldTitle());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldTitle());\n\n\t\t\t// cell\n\t\t\t$this->cell->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cell->EditCustomAttributes = \"\";\n\t\t\t$this->cell->EditValue = ew_HtmlEncode($this->cell->AdvancedSearch->SearchValue);\n\t\t\t$this->cell->PlaceHolder = ew_RemoveHtml($this->cell->FldTitle());\n\n\t\t\t// created_at\n\t\t\t$this->created_at->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->created_at->EditCustomAttributes = \"\";\n\t\t\t$this->created_at->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->created_at->AdvancedSearch->SearchValue, 17), 17));\n\t\t\t$this->created_at->PlaceHolder = ew_RemoveHtml($this->created_at->FldTitle());\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_sucursal->EditCustomAttributes = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoinmueble->EditCustomAttributes = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipovehiculo->EditCustomAttributes = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomaquinaria->EditCustomAttributes = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomercaderia->EditCustomAttributes = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoespecial->EditCustomAttributes = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->email_contacto->EditCustomAttributes = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function setRow($row)\n {\n $this->row = $row;\n return $this;\n }", "function reset(){\n\t\t$this->__columns = array();\n\t\t$this->__actions = array();\n\t}", "function SetRowWidth()\n\t{\n\t\t// FIX IT!\n\t\t// Defining column widths to be applied to a single row, doesn't currently work.\n\t\t// For some annoying reason you can specify the alignment of columns at the <td></td> level, but if you\n\t\t// specify column widths at this level, they get applied to all the other columns\n\t\t// For now just use the SetRowColumnSpan method, although this means you can't add a row that has more columns than previous rows have had\n\t\t\n\t\tif ((!func_num_args()) || (!isset($this->_intCurrentRow)))\n\t\t{\n\t\t\t// no parameters were passed or there is no current row\n\t\t\treturn NULL;\n\t\t}\n\t\t\n\t\t// retrieve the width values\n\t\t$arrRowWidths = func_get_args();\n\t\t\n\t\t$this->_arrRows[$this->_intCurrentRow]['Widths'] = $arrRowWidths;\n\n\t\treturn $this->_intCurrentRow;\n\t}", "function failedTableData()\n{\n global $html;\n\n $td = $html->createElement(\"td\",\"FAILED\");\n $tdStyle = $html->createAttribute(\"style\");\n $tdStyle->value = \"background-color: #ff6600\";\n $td->appendChild($tdStyle);\n\n return $td;\n}", "function setRowDatas(&$row) {\r\n\t\t\r\n }", "public final function setRows(array $rows){\n\t\t$this->rows=$rows;\n\t\t$this->table=false;\n\t\t$this->table_header=false;\n\t\treturn $this;\n\t}", "protected function initRowRenderer()\n {\n $this->rowRenderer = new RowRenderer();\n $this->rowRenderer->injectRendererConfiguration($this->rendererConfiguration);\n $this->rowRenderer->injectCellRenderer(new CellRenderer($this->rendererConfiguration));\n }", "function revert_table() {\r\n $this->_table = $this->_table_org;\r\n $this->_table_org = NULL;\r\n }", "function PDFTable($attrs) \n\t{\n\t\tglobal $DC,$DG;\n\n\t\t// recupera ogni proprietà passata dall'XML\n\t\tforeach($attrs as $key=>$value){\n\t\t\teval('$this->'.$key.' = \"$value\";');\n\t\t}\n\n\t\t// dichiara i valori di default...\n\t\t$default['COLS'][] = 1; // numero di ripetizioni orrizzontali dell'area di disegno\n\n\t\t// ... e li imposta\n\t\tforeach($default as $key=>$value){\n\t\t\tforeach ($value as $local){ eval('if ($local and !$this->'.$key.') { $this->'.$key.' = \"'.$local.'\"; }'); \t}\n\t\t}\n\t\t\n\t\t// dichiara la lista degli attributi obbligatori...\n\t\t$reqiured[] = \"GEOMETRY\";\n\t\t$reqiured[] = \"ROWS\";\n\t\t$reqiured[] = \"DSN\";\n\t\t\n\t\t// ... e li verifica\n\t\tforeach($reqiured as $value){\n\t\t\teval('if(!isset($this->'.$value.')){die (\"The property \".$value.\" in PDFTable ID -> \".$this->ID.\" is required.\");}');\n\t\t}\n\n\t\t$this->GEOMETRY = explode(',',$this->GEOMETRY);\n\n\t\t$this->LEFT = $this->GEOMETRY[0];\n\t\t$this->TOP = $this->GEOMETRY[1];\n\t\t$this->WIDTH = $this->GEOMETRY[2];\n\t\t$this->HEIGHT = $this->GEOMETRY[3];\n\t}", "public function getRowClasses($row)\n {\n return null;\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}", "function RenderRow() {\n\t\tglobal $conn, $Security, $responsable;\n\n\t\t// Call Row_Rendering event\n\t\t$responsable->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idGerente\n\n\t\t$responsable->idGerente->CellCssStyle = \"\";\n\t\t$responsable->idGerente->CellCssClass = \"\";\n\n\t\t// idMer\n\t\t$responsable->idMer->CellCssStyle = \"\";\n\t\t$responsable->idMer->CellCssClass = \"\";\n\n\t\t// fecha\n\t\t$responsable->fecha->CellCssStyle = \"\";\n\t\t$responsable->fecha->CellCssClass = \"\";\n\n\t\t// habilitado\n\t\t$responsable->habilitado->CellCssStyle = \"\";\n\t\t$responsable->habilitado->CellCssClass = \"\";\n\t\tif ($responsable->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idResponsable\n\t\t\t$responsable->idResponsable->ViewValue = $responsable->idResponsable->CurrentValue;\n\t\t\t$responsable->idResponsable->CssStyle = \"\";\n\t\t\t$responsable->idResponsable->CssClass = \"\";\n\t\t\t$responsable->idResponsable->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\tif (strval($responsable->idGerente->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `nombre`, `paterno` FROM `usuario` WHERE `idUsuario` = \" . ew_AdjustSql($responsable->idGerente->CurrentValue) . \"\";\n\t\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idGerente->ViewValue = $rswrk->fields('nombre');\n\t\t\t\t\t$responsable->idGerente->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('paterno');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idGerente->ViewValue = $responsable->idGerente->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idGerente->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idGerente->CssStyle = \"\";\n\t\t\t$responsable->idGerente->CssClass = \"\";\n\t\t\t$responsable->idGerente->ViewCustomAttributes = \"\";\n\n\t\t\t// idMer\n\t\t\tif (strval($responsable->idMer->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `mer` FROM `mer` WHERE `idMer` = \" . ew_AdjustSql($responsable->idMer->CurrentValue) . \"\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idMer->ViewValue = $rswrk->fields('mer');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idMer->ViewValue = $responsable->idMer->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idMer->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idMer->CssStyle = \"\";\n\t\t\t$responsable->idMer->CssClass = \"\";\n\t\t\t$responsable->idMer->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->ViewValue = $responsable->fecha->CurrentValue;\n\t\t\t$responsable->fecha->ViewValue = ew_FormatDateTime($responsable->fecha->ViewValue, 7);\n\t\t\t$responsable->fecha->CssStyle = \"\";\n\t\t\t$responsable->fecha->CssClass = \"\";\n\t\t\t$responsable->fecha->ViewCustomAttributes = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->ViewValue = $responsable->habilitado->CurrentValue;\n\t\t\t$responsable->habilitado->CssStyle = \"\";\n\t\t\t$responsable->habilitado->CssClass = \"\";\n\t\t\t$responsable->habilitado->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->HrefValue = \"\";\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->HrefValue = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->HrefValue = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->HrefValue = \"\";\n\t\t} elseif ($responsable->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idUsuario`, `paterno`, `nombre`, '' AS SelectFilterFld FROM `usuario`\";\n\t\t\t$sWhereWrk = \"idRol='2'\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\", \"\"));\n\t\t\t$responsable->idGerente->EditValue = $arwrk;\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idMer`, `mer`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `mer`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `mer` Asc\";\n $rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\"));\n\t\t\t$responsable->idMer->EditValue = $arwrk;\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->EditCustomAttributes = \"\";\n\t\t\t$responsable->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($responsable->fecha->CurrentValue, 7));\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->EditCustomAttributes = \"\";\n\t\t\t$responsable->habilitado->EditValue = ew_HtmlEncode($responsable->habilitado->CurrentValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$responsable->Row_Rendered();\n\t}", "public function setElementRowClass(string $class)\n {\n $this->rowClass = $class;\n return $this;\n }", "public function getRowAttributes(RenderWalker $walker, int $index, array $row): array;", "function DOM_apply_table_scope($table) {\r\n\t\t//print('here2374785867970<br>');\r\n\t\t$query = './/' . ReTidy::get_html_namespace() . 'tr | .//' . ReTidy::get_html_namespace() . '*[@newtag=\"tr\"]';\r\n\t\t$trs = $this->xpath->query($query, $table);\r\n\t\tforeach($trs as $tr) {\r\n\t\t\t//print('here2374785867971<br>');\r\n\t\t\t// make <th>s in first row have scope=\"col\"\r\n\t\t\t//print($tr->nodeName . \"<br>\\r\\n\");\r\n\t\t\t$query = './/' . ReTidy::get_html_namespace() . 'th | .//' . ReTidy::get_html_namespace() . '*[@newtag=\"th\"]';\r\n\t\t\t$ths = $this->xpath->query($query, $tr);\r\n\t\t\tforeach($ths as $th) {\r\n\t\t\t\t//print('here2374785867972<br>');\r\n\t\t\t\t$spans_cols = false;\r\n\t\t\t\tif($th->hasAttributes()) {\r\n\t\t\t\t\tforeach ($th->attributes as $attribute) {\r\n\t\t\t\t\t\tif($attribute->nodeName === \"colspan\") {\r\n\t\t\t\t\t\t\t$th->setAttribute('scope', 'colgroup');\r\n\t\t\t\t\t\t\tcontinue 2;\r\n\t\t\t\t\t\t} elseif($attribute->nodeName === \"rowspan\") {\r\n\t\t\t\t\t\t\t$th->setAttribute('scope', 'rowgroup');\r\n\t\t\t\t\t\t\tcontinue 2;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$th->setAttribute('scope', 'col');\r\n\t\t\t}\r\n\t\t\t//print('here2374785867973<br>');\r\n\t\t\t/*$query = './/' . ReTidy::get_html_namespace() . 'th | .//' . ReTidy::get_html_namespace() . 'td';\r\n\t\t\t$cells = $this->xpath->query($query, $tr);\r\n\t\t\tforeach($cells as $cell) {\r\n\t\t\t\r\n\t\t\tif(ReTidy::getAttribute($th, 'newtag')->nodeValue !== \"td\") {\r\n\t\t\t\t$th->setAttribute('id', $this->table_headers_string . $this->page_id_counter);\r\n\t\t\t\t$this->page_id_counter++;\r\n\t\t\t}*/\r\n\t\t\t//break; // only doing the first row is simplistic...\r\n\t\t}\r\n\t\t\r\n\t\t// make <th>s in first column have scope=\"row\"\r\n\t\t$did_top_left_cell = false;\r\n\t\tforeach($trs as $tr) {\r\n\t\t\tif($tr->parentNode->nodeName === 'thead') {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t//print('here2374785867974<br>');\r\n\t\t\t$query = './/' . ReTidy::get_html_namespace() . 'th | .//' . ReTidy::get_html_namespace() . '*[@newtag=\"th\"]';\r\n\t\t\t$ths = $this->xpath->query($query, $tr);\r\n\t\t\tforeach($ths as $th) {\r\n\t\t\t\t// it's difficult for a program to determine what sort of scope the top left cell of a table should have, but we'll try\r\n\t\t\t\t/*$apply_row_scope_to_first_th = true;\r\n\t\t\t\t\r\n\t\t\t\tif(!$did_top_left_cell) {\r\n\t\t\t\t\t$did_top_left_cell = true;\r\n\t\t\t\t\tif(!$apply_row_scope_to_first_th) {\r\n\t\t\t\t\t\tbreak; // ?\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t\t//print('here2374785867975<br>');\r\n\t\t\t\t$spans_rows = false;\r\n\t\t\t\tif($th->hasAttributes()) {\r\n\t\t\t\t\tforeach($th->attributes as $attribute) {\r\n\t\t\t\t\t\tif($attribute->nodeName === \"rowspan\") {\r\n\t\t\t\t\t\t\t$th->setAttribute('scope', 'rowgroup');\r\n\t\t\t\t\t\t\tbreak 2;\r\n\t\t\t\t\t\t} elseif($attribute->nodeName === \"colspan\") {\r\n\t\t\t\t\t\t\t$th->setAttribute('scope', 'colgroup');\r\n\t\t\t\t\t\t\tbreak 2;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$th->setAttribute('scope', 'row');\r\n\t\t\t\tbreak; // only looking at the first th in a tr is simplistic...\r\n\t\t\t}\r\n\t\t}\r\n\t\t//print('here2374785867976<br>');\r\n\t\treturn true;\r\n\t\t\r\n\t}", "public function clearAttribs()\n {\n $this->attribs = [];\n return $this;\n }", "public static function row_classes($classes, $row, $builder_id) {\n return !empty($row['styling'])?self::get_classes($row['styling'], $classes, 'row'):$classes;\n }", "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 }", "function initialize () {\n $this->set_openingtag ( \"<TR[attributes]>\" );\n\t$this->set_closingtag ( \"</TR>\" );\n }", "function training_theme_table() {\n $my_header = array(\n t('header 1'),\n t('header 2'),\n t('header 3'),\n );\n $rows = array(\n array(\n 'data' => array('1', array('data' => t('Oleg'), 'colspan' => 2)),\n 'class' => array('rowClass'),\n ),\n array(\n 'data' => array('2', array('data' => t('Oleg'), 'colspan' => 2)),\n 'class' => array('rowClass'),\n ),\n );\n $caption = t('Theme table sample');\n $attributes = array(\n 'id' => 'table-test',\n );\n\n return theme('table', array(\n 'header' => $my_header,\n 'rows' => $rows,\n 'attributes' => $attributes,\n 'caption' => $caption,\n ));\n}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $sponsored_student;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$sponsored_student->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// sponsored_student_id\n\n\t\t$sponsored_student->sponsored_student_id->CellCssStyle = \"\"; $sponsored_student->sponsored_student_id->CellCssClass = \"\";\n\t\t$sponsored_student->sponsored_student_id->CellAttrs = array(); $sponsored_student->sponsored_student_id->ViewAttrs = array(); $sponsored_student->sponsored_student_id->EditAttrs = array();\n\n\t\t// student_firstname\n\t\t$sponsored_student->student_firstname->CellCssStyle = \"\"; $sponsored_student->student_firstname->CellCssClass = \"\";\n\t\t$sponsored_student->student_firstname->CellAttrs = array(); $sponsored_student->student_firstname->ViewAttrs = array(); $sponsored_student->student_firstname->EditAttrs = array();\n\n\t\t// student_middlename\n\t\t$sponsored_student->student_middlename->CellCssStyle = \"\"; $sponsored_student->student_middlename->CellCssClass = \"\";\n\t\t$sponsored_student->student_middlename->CellAttrs = array(); $sponsored_student->student_middlename->ViewAttrs = array(); $sponsored_student->student_middlename->EditAttrs = array();\n\n\t\t// student_lastname\n\t\t$sponsored_student->student_lastname->CellCssStyle = \"\"; $sponsored_student->student_lastname->CellCssClass = \"\";\n\t\t$sponsored_student->student_lastname->CellAttrs = array(); $sponsored_student->student_lastname->ViewAttrs = array(); $sponsored_student->student_lastname->EditAttrs = array();\n\n\t\t// student_grades\n\t\t$sponsored_student->student_grades->CellCssStyle = \"\"; $sponsored_student->student_grades->CellCssClass = \"\";\n\t\t$sponsored_student->student_grades->CellAttrs = array(); $sponsored_student->student_grades->ViewAttrs = array(); $sponsored_student->student_grades->EditAttrs = array();\n\n\t\t// student_resident_programarea_id\n\t\t$sponsored_student->student_resident_programarea_id->CellCssStyle = \"\"; $sponsored_student->student_resident_programarea_id->CellCssClass = \"\";\n\t\t$sponsored_student->student_resident_programarea_id->CellAttrs = array(); $sponsored_student->student_resident_programarea_id->ViewAttrs = array(); $sponsored_student->student_resident_programarea_id->EditAttrs = array();\n\n\t\t// group_id\n\t\t$sponsored_student->group_id->CellCssStyle = \"\"; $sponsored_student->group_id->CellCssClass = \"\";\n\t\t$sponsored_student->group_id->CellAttrs = array(); $sponsored_student->group_id->ViewAttrs = array(); $sponsored_student->group_id->EditAttrs = array();\n\n\t\t// community_community_id\n\t\t$sponsored_student->community_community_id->CellCssStyle = \"\"; $sponsored_student->community_community_id->CellCssClass = \"\";\n\t\t$sponsored_student->community_community_id->CellAttrs = array(); $sponsored_student->community_community_id->ViewAttrs = array(); $sponsored_student->community_community_id->EditAttrs = array();\n\t\tif ($sponsored_student->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->ViewValue = $sponsored_student->sponsored_student_id->CurrentValue;\n\t\t\t$sponsored_student->sponsored_student_id->CssStyle = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->CssClass = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->ViewValue = $sponsored_student->student_firstname->CurrentValue;\n\t\t\t$sponsored_student->student_firstname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_firstname->CssClass = \"\";\n\t\t\t$sponsored_student->student_firstname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->ViewValue = $sponsored_student->student_middlename->CurrentValue;\n\t\t\t$sponsored_student->student_middlename->CssStyle = \"\";\n\t\t\t$sponsored_student->student_middlename->CssClass = \"\";\n\t\t\t$sponsored_student->student_middlename->ViewCustomAttributes = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->ViewValue = $sponsored_student->student_lastname->CurrentValue;\n\t\t\t$sponsored_student->student_lastname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_lastname->CssClass = \"\";\n\t\t\t$sponsored_student->student_lastname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->ViewValue = $sponsored_student->student_grades->CurrentValue;\n\t\t\t$sponsored_student->student_grades->CssStyle = \"\";\n\t\t\t$sponsored_student->student_grades->CssClass = \"\";\n\t\t\t$sponsored_student->student_grades->ViewCustomAttributes = \"\";\n\n\t\t\t// student_applicant_student_applicant_id\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\tif (strval($sponsored_student->student_applicant_student_applicant_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`student_applicant_id` = \" . ew_AdjustSql($sponsored_student->student_applicant_student_applicant_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `student_lastname`, `student_firstname` FROM `student_applicant`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $rswrk->fields('student_lastname');\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('student_firstname');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\tif (strval($sponsored_student->student_resident_programarea_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`programarea_id` = \" . ew_AdjustSql($sponsored_student->student_resident_programarea_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_name` FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $rswrk->fields('programarea_name');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $sponsored_student->student_resident_programarea_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_resident_programarea_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->ViewCustomAttributes = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->ViewValue = $sponsored_student->group_id->CurrentValue;\n\t\t\t$sponsored_student->group_id->CssStyle = \"\";\n\t\t\t$sponsored_student->group_id->CssClass = \"\";\n\t\t\t$sponsored_student->group_id->ViewCustomAttributes = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->ViewValue = $sponsored_student->community_community_id->CurrentValue;\n\t\t\t$sponsored_student->community_community_id->CssStyle = \"\";\n\t\t\t$sponsored_student->community_community_id->CssClass = \"\";\n\t\t\t$sponsored_student->community_community_id->ViewCustomAttributes = \"\";\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->HrefValue = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->TooltipValue = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_firstname->TooltipValue = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->HrefValue = \"\";\n\t\t\t$sponsored_student->student_middlename->TooltipValue = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_lastname->TooltipValue = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->HrefValue = \"\";\n\t\t\t$sponsored_student->student_grades->TooltipValue = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->HrefValue = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->TooltipValue = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->HrefValue = \"\";\n\t\t\t$sponsored_student->group_id->TooltipValue = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->HrefValue = \"\";\n\t\t\t$sponsored_student->community_community_id->TooltipValue = \"\";\n\t\t} elseif ($sponsored_student->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->EditValue = ew_HtmlEncode($sponsored_student->sponsored_student_id->AdvancedSearch->SearchValue);\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue2 = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue2 = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue2 = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_grades->EditValue = ew_HtmlEncode($sponsored_student->student_grades->AdvancedSearch->SearchValue);\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_id`, `programarea_name`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$sponsored_student->student_resident_programarea_id->EditValue = $arwrk;\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->EditCustomAttributes = \"\";\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn()) { // Non system admin\n\t\t\t$sFilterWrk = \"\";\n\t\t\t$sFilterWrk = $GLOBALS[\"users\"]->AddUserIDFilter(\"\");\n\t\t\t$sSqlWrk = \"SELECT `userlevelid`, `userlevelid` FROM `users`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$sponsored_student->group_id->EditValue = $arwrk;\n\t\t\t} else {\n\t\t\t$sponsored_student->group_id->EditValue = ew_HtmlEncode($sponsored_student->group_id->AdvancedSearch->SearchValue);\n\t\t\t}\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->community_community_id->EditValue = ew_HtmlEncode($sponsored_student->community_community_id->AdvancedSearch->SearchValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($sponsored_student->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$sponsored_student->Row_Rendered();\n\t}", "public function reset()\n {\n parent::reset();\n $this->attr('Material')->shader('flat');\n $this->attr('Material')->side('double');\n $this->color('#FFF');\n $this->transparent(true);\n $this->height(1.75);\n $this->width(1.75);\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fecha_tamizaje\n\t\t// id_centro\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// ci\n\t\t// fecha_nacimiento\n\t\t// dias\n\t\t// semanas\n\t\t// meses\n\t\t// sexo\n\t\t// discapacidad\n\t\t// id_tipodiscapacidad\n\t\t// resultado\n\t\t// resultadotamizaje\n\t\t// tapon\n\t\t// tipo\n\t\t// repetirprueba\n\t\t// observaciones\n\t\t// id_apoderado\n\t\t// id_referencia\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha_tamizaje\n\t\t$this->fecha_tamizaje->ViewValue = $this->fecha_tamizaje->CurrentValue;\n\t\t$this->fecha_tamizaje->ViewValue = ew_FormatDateTime($this->fecha_tamizaje->ViewValue, 0);\n\t\t$this->fecha_tamizaje->ViewCustomAttributes = \"\";\n\n\t\t// id_centro\n\t\tif (strval($this->id_centro->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_centro->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `institucionesdesalud`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_centro->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_centro, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_centro->ViewValue = NULL;\n\t\t}\n\t\t$this->id_centro->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 0);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// dias\n\t\t$this->dias->ViewValue = $this->dias->CurrentValue;\n\t\t$this->dias->ViewCustomAttributes = \"\";\n\n\t\t// semanas\n\t\t$this->semanas->ViewValue = $this->semanas->CurrentValue;\n\t\t$this->semanas->ViewCustomAttributes = \"\";\n\n\t\t// meses\n\t\t$this->meses->ViewValue = $this->meses->CurrentValue;\n\t\t$this->meses->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// discapacidad\n\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\tif (strval($this->discapacidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->discapacidad->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->discapacidad->ViewValue = NULL;\n\t\t}\n\t\t$this->discapacidad->ViewCustomAttributes = \"\";\n\n\t\t// id_tipodiscapacidad\n\t\t$this->id_tipodiscapacidad->ViewValue = $this->id_tipodiscapacidad->CurrentValue;\n\t\t$this->id_tipodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// resultado\n\t\t$this->resultado->ViewValue = $this->resultado->CurrentValue;\n\t\t$this->resultado->ViewCustomAttributes = \"\";\n\n\t\t// resultadotamizaje\n\t\t$this->resultadotamizaje->ViewValue = $this->resultadotamizaje->CurrentValue;\n\t\t$this->resultadotamizaje->ViewCustomAttributes = \"\";\n\n\t\t// tapon\n\t\tif (strval($this->tapon->CurrentValue) <> \"\") {\n\t\t\t$this->tapon->ViewValue = $this->tapon->OptionCaption($this->tapon->CurrentValue);\n\t\t} else {\n\t\t\t$this->tapon->ViewValue = NULL;\n\t\t}\n\t\t$this->tapon->ViewCustomAttributes = \"\";\n\n\t\t// tipo\n\t\tif (strval($this->tipo->CurrentValue) <> \"\") {\n\t\t\t$this->tipo->ViewValue = $this->tipo->OptionCaption($this->tipo->CurrentValue);\n\t\t} else {\n\t\t\t$this->tipo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo->ViewCustomAttributes = \"\";\n\n\t\t// repetirprueba\n\t\tif (strval($this->repetirprueba->CurrentValue) <> \"\") {\n\t\t\t$this->repetirprueba->ViewValue = $this->repetirprueba->OptionCaption($this->repetirprueba->CurrentValue);\n\t\t} else {\n\t\t\t$this->repetirprueba->ViewValue = NULL;\n\t\t}\n\t\t$this->repetirprueba->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// id_apoderado\n\t\tif ($this->id_apoderado->VirtualValue <> \"\") {\n\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_apoderado->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_apoderado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombres` AS `DispFld`, `apellidopaterno` AS `Disp2Fld`, `apellidopaterno` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `apoderado`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_apoderado->LookupFilters = array(\"dx1\" => '`nombres`', \"dx2\" => '`apellidopaterno`', \"dx3\" => '`apellidopaterno`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_apoderado, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_apoderado->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_apoderado->ViewCustomAttributes = \"\";\n\n\t\t// id_referencia\n\t\tif ($this->id_referencia->VirtualValue <> \"\") {\n\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_referencia->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_referencia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombrescentromedico` AS `DispFld`, `nombrescompleto` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `referencia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_referencia->LookupFilters = array(\"dx1\" => '`nombrescentromedico`', \"dx2\" => '`nombrescompleto`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_referencia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_referencia->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_referencia->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->HrefValue = \"\";\n\t\t\t$this->fecha_tamizaje->TooltipValue = \"\";\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->LinkCustomAttributes = \"\";\n\t\t\t$this->id_centro->HrefValue = \"\";\n\t\t\t$this->id_centro->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// dias\n\t\t\t$this->dias->LinkCustomAttributes = \"\";\n\t\t\t$this->dias->HrefValue = \"\";\n\t\t\t$this->dias->TooltipValue = \"\";\n\n\t\t\t// semanas\n\t\t\t$this->semanas->LinkCustomAttributes = \"\";\n\t\t\t$this->semanas->HrefValue = \"\";\n\t\t\t$this->semanas->TooltipValue = \"\";\n\n\t\t\t// meses\n\t\t\t$this->meses->LinkCustomAttributes = \"\";\n\t\t\t$this->meses->HrefValue = \"\";\n\t\t\t$this->meses->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->discapacidad->HrefValue = \"\";\n\t\t\t$this->discapacidad->TooltipValue = \"\";\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->HrefValue = \"\";\n\t\t\t$this->id_tipodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// resultado\n\t\t\t$this->resultado->LinkCustomAttributes = \"\";\n\t\t\t$this->resultado->HrefValue = \"\";\n\t\t\t$this->resultado->TooltipValue = \"\";\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->HrefValue = \"\";\n\t\t\t$this->resultadotamizaje->TooltipValue = \"\";\n\n\t\t\t// tapon\n\t\t\t$this->tapon->LinkCustomAttributes = \"\";\n\t\t\t$this->tapon->HrefValue = \"\";\n\t\t\t$this->tapon->TooltipValue = \"\";\n\n\t\t\t// tipo\n\t\t\t$this->tipo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo->HrefValue = \"\";\n\t\t\t$this->tipo->TooltipValue = \"\";\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->LinkCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->HrefValue = \"\";\n\t\t\t$this->repetirprueba->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->LinkCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->HrefValue = \"\";\n\t\t\t$this->id_apoderado->TooltipValue = \"\";\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->LinkCustomAttributes = \"\";\n\t\t\t$this->id_referencia->HrefValue = \"\";\n\t\t\t$this->id_referencia->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_tamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_tamizaje->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_tamizaje->PlaceHolder = ew_RemoveHtml($this->fecha_tamizaje->FldCaption());\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_centro->EditCustomAttributes = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidopaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->EditValue = ew_HtmlEncode($this->apellidopaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidopaterno->PlaceHolder = ew_RemoveHtml($this->apellidopaterno->FldCaption());\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidomaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->EditValue = ew_HtmlEncode($this->apellidomaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidomaterno->PlaceHolder = ew_RemoveHtml($this->apellidomaterno->FldCaption());\n\n\t\t\t// nombre\n\t\t\t$this->nombre->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre->EditCustomAttributes = \"\";\n\t\t\t$this->nombre->EditValue = ew_HtmlEncode($this->nombre->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre->PlaceHolder = ew_RemoveHtml($this->nombre->FldCaption());\n\n\t\t\t// ci\n\t\t\t$this->ci->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ci->EditCustomAttributes = \"\";\n\t\t\t$this->ci->EditValue = ew_HtmlEncode($this->ci->AdvancedSearch->SearchValue);\n\t\t\t$this->ci->PlaceHolder = ew_RemoveHtml($this->ci->FldCaption());\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_nacimiento->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_nacimiento->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_nacimiento->PlaceHolder = ew_RemoveHtml($this->fecha_nacimiento->FldCaption());\n\n\t\t\t// dias\n\t\t\t$this->dias->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dias->EditCustomAttributes = \"\";\n\t\t\t$this->dias->EditValue = ew_HtmlEncode($this->dias->AdvancedSearch->SearchValue);\n\t\t\t$this->dias->PlaceHolder = ew_RemoveHtml($this->dias->FldCaption());\n\n\t\t\t// semanas\n\t\t\t$this->semanas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->semanas->EditCustomAttributes = \"\";\n\t\t\t$this->semanas->EditValue = ew_HtmlEncode($this->semanas->AdvancedSearch->SearchValue);\n\t\t\t$this->semanas->PlaceHolder = ew_RemoveHtml($this->semanas->FldCaption());\n\n\t\t\t// meses\n\t\t\t$this->meses->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->meses->EditCustomAttributes = \"\";\n\t\t\t$this->meses->EditValue = ew_HtmlEncode($this->meses->AdvancedSearch->SearchValue);\n\t\t\t$this->meses->PlaceHolder = ew_RemoveHtml($this->meses->FldCaption());\n\n\t\t\t// sexo\n\t\t\t$this->sexo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sexo->EditCustomAttributes = \"\";\n\t\t\t$this->sexo->EditValue = $this->sexo->Options(TRUE);\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->discapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\tif (strval($this->discapacidad->AdvancedSearch->SearchValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->discapacidad->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->discapacidad->EditValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->discapacidad->PlaceHolder = ew_RemoveHtml($this->discapacidad->FldCaption());\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_tipodiscapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->EditValue = ew_HtmlEncode($this->id_tipodiscapacidad->AdvancedSearch->SearchValue);\n\t\t\t$this->id_tipodiscapacidad->PlaceHolder = ew_RemoveHtml($this->id_tipodiscapacidad->FldCaption());\n\n\t\t\t// resultado\n\t\t\t$this->resultado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultado->EditCustomAttributes = \"\";\n\t\t\t$this->resultado->EditValue = ew_HtmlEncode($this->resultado->AdvancedSearch->SearchValue);\n\t\t\t$this->resultado->PlaceHolder = ew_RemoveHtml($this->resultado->FldCaption());\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultadotamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->EditValue = ew_HtmlEncode($this->resultadotamizaje->AdvancedSearch->SearchValue);\n\t\t\t$this->resultadotamizaje->PlaceHolder = ew_RemoveHtml($this->resultadotamizaje->FldCaption());\n\n\t\t\t// tapon\n\t\t\t$this->tapon->EditCustomAttributes = \"\";\n\t\t\t$this->tapon->EditValue = $this->tapon->Options(FALSE);\n\n\t\t\t// tipo\n\t\t\t$this->tipo->EditCustomAttributes = \"\";\n\t\t\t$this->tipo->EditValue = $this->tipo->Options(FALSE);\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->EditCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->EditValue = $this->repetirprueba->Options(FALSE);\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->observaciones->EditCustomAttributes = \"\";\n\t\t\t$this->observaciones->EditValue = ew_HtmlEncode($this->observaciones->AdvancedSearch->SearchValue);\n\t\t\t$this->observaciones->PlaceHolder = ew_RemoveHtml($this->observaciones->FldCaption());\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_apoderado->EditCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->EditValue = ew_HtmlEncode($this->id_apoderado->AdvancedSearch->SearchValue);\n\t\t\t$this->id_apoderado->PlaceHolder = ew_RemoveHtml($this->id_apoderado->FldCaption());\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_referencia->EditCustomAttributes = \"\";\n\t\t\t$this->id_referencia->EditValue = ew_HtmlEncode($this->id_referencia->AdvancedSearch->SearchValue);\n\t\t\t$this->id_referencia->PlaceHolder = ew_RemoveHtml($this->id_referencia->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idservicio_medico_prestado\n\t\t// idcuenta\n\t\t// fecha_inicio\n\t\t// fecha_final\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;\n\t\t\t$this->idservicio_medico_prestado->ViewCustomAttributes = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->ViewValue = $this->idcuenta->CurrentValue;\n\t\t\t$this->idcuenta->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->ViewValue = $this->fecha_inicio->CurrentValue;\n\t\t\t$this->fecha_inicio->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->ViewValue = $this->fecha_final->CurrentValue;\n\t\t\t$this->fecha_final->ViewCustomAttributes = \"\";\n\n\t\t\t// estado\n\t\t\tif (strval($this->estado->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->estado->CurrentValue) {\n\t\t\t\t\tcase $this->estado->FldTagValue(1):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(1) <> \"\" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(2):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(2) <> \"\" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(3):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(3) <> \"\" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->estado->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->LinkCustomAttributes = \"\";\n\t\t\t$this->idservicio_medico_prestado->HrefValue = \"\";\n\t\t\t$this->idservicio_medico_prestado->TooltipValue = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->LinkCustomAttributes = \"\";\n\t\t\t$this->idcuenta->HrefValue = \"\";\n\t\t\t$this->idcuenta->TooltipValue = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_inicio->HrefValue = \"\";\n\t\t\t$this->fecha_inicio->TooltipValue = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_final->HrefValue = \"\";\n\t\t\t$this->fecha_final->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function clear() {\r\n $this->rows = array();\r\n $this->heading = array();\r\n $this->footer = array();\r\n $this->auto_heading = TRUE;\r\n return $this;\r\n }", "private function resetRowsAffected() {\n $this->setRowsAffected(0);\n }", "public function formatRow($row){\r\n \tif(!empty($row))\r\n \t$row['_rev'] = \"\";\r\n return $row;\r\n }", "public function getRow() {}", "protected function _prepareRowsAction() {\n \n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $financial_year;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$financial_year->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// financial_year_id\n\n\t\t$financial_year->financial_year_id->CellCssStyle = \"\"; $financial_year->financial_year_id->CellCssClass = \"\";\n\t\t$financial_year->financial_year_id->CellAttrs = array(); $financial_year->financial_year_id->ViewAttrs = array(); $financial_year->financial_year_id->EditAttrs = array();\n\n\t\t// year_name\n\t\t$financial_year->year_name->CellCssStyle = \"\"; $financial_year->year_name->CellCssClass = \"\";\n\t\t$financial_year->year_name->CellAttrs = array(); $financial_year->year_name->ViewAttrs = array(); $financial_year->year_name->EditAttrs = array();\n\n\t\t// date_start\n\t\t$financial_year->date_start->CellCssStyle = \"\"; $financial_year->date_start->CellCssClass = \"\";\n\t\t$financial_year->date_start->CellAttrs = array(); $financial_year->date_start->ViewAttrs = array(); $financial_year->date_start->EditAttrs = array();\n\n\t\t// date_end\n\t\t$financial_year->date_end->CellCssStyle = \"\"; $financial_year->date_end->CellCssClass = \"\";\n\t\t$financial_year->date_end->CellAttrs = array(); $financial_year->date_end->ViewAttrs = array(); $financial_year->date_end->EditAttrs = array();\n\t\tif ($financial_year->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->ViewValue = $financial_year->financial_year_id->CurrentValue;\n\t\t\t$financial_year->financial_year_id->CssStyle = \"\";\n\t\t\t$financial_year->financial_year_id->CssClass = \"\";\n\t\t\t$financial_year->financial_year_id->ViewCustomAttributes = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->ViewValue = $financial_year->year_name->CurrentValue;\n\t\t\t$financial_year->year_name->CssStyle = \"\";\n\t\t\t$financial_year->year_name->CssClass = \"\";\n\t\t\t$financial_year->year_name->ViewCustomAttributes = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->ViewValue = $financial_year->date_start->CurrentValue;\n\t\t\t$financial_year->date_start->ViewValue = ew_FormatDateTime($financial_year->date_start->ViewValue, 7);\n\t\t\t$financial_year->date_start->CssStyle = \"\";\n\t\t\t$financial_year->date_start->CssClass = \"\";\n\t\t\t$financial_year->date_start->ViewCustomAttributes = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->ViewValue = $financial_year->date_end->CurrentValue;\n\t\t\t$financial_year->date_end->ViewValue = ew_FormatDateTime($financial_year->date_end->ViewValue, 7);\n\t\t\t$financial_year->date_end->CssStyle = \"\";\n\t\t\t$financial_year->date_end->CssClass = \"\";\n\t\t\t$financial_year->date_end->ViewCustomAttributes = \"\";\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->HrefValue = \"\";\n\t\t\t$financial_year->financial_year_id->TooltipValue = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->HrefValue = \"\";\n\t\t\t$financial_year->year_name->TooltipValue = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->HrefValue = \"\";\n\t\t\t$financial_year->date_start->TooltipValue = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->HrefValue = \"\";\n\t\t\t$financial_year->date_end->TooltipValue = \"\";\n\t\t} elseif ($financial_year->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->EditCustomAttributes = \"\";\n\t\t\t$financial_year->financial_year_id->EditValue = $financial_year->financial_year_id->CurrentValue;\n\t\t\t$financial_year->financial_year_id->CssStyle = \"\";\n\t\t\t$financial_year->financial_year_id->CssClass = \"\";\n\t\t\t$financial_year->financial_year_id->ViewCustomAttributes = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->EditCustomAttributes = \"\";\n\t\t\t$financial_year->year_name->EditValue = ew_HtmlEncode($financial_year->year_name->CurrentValue);\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->EditCustomAttributes = \"\";\n\t\t\t$financial_year->date_start->EditValue = ew_HtmlEncode(ew_FormatDateTime($financial_year->date_start->CurrentValue, 7));\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->EditCustomAttributes = \"\";\n\t\t\t$financial_year->date_end->EditValue = ew_HtmlEncode(ew_FormatDateTime($financial_year->date_end->CurrentValue, 7));\n\n\t\t\t// Edit refer script\n\t\t\t// financial_year_id\n\n\t\t\t$financial_year->financial_year_id->HrefValue = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->HrefValue = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->HrefValue = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($financial_year->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$financial_year->Row_Rendered();\n\t}", "function build_row($row)\n{\n\t$name = $row->getColumnVal('Name');\n\t$id = $row->getColumnVal('Id');\n\n\t// Setup the columns you want to work with\n\t$idCol = $row->getCol('Id');\n\t$nameCol = $row->getCol('Name');\n\t$actionCol = $row->getCol('Action');\n\t$typeCol = $row->getCol('Type');\n\n\t// Set some HTML properties on the give column\n\t$idCol->setProp('width','50');\n\t$typeCol->setProp('width','50');\n\t$typeCol->addClass('center');\n\n\t// Add some CSS classes to the action column\n\t$actionCol\n\t\t-> addClass('center')\n\t\t-> addClass('btn');\n\n\t// Add an action link to the Action column\n\t$row->addLink('Action', \"examples.php?id=$id\", '[edit]', \"\", \"no-un\");\n\t$row->addLink('Action', \"examples.php?id=$id\", '[delete]', \"\", \"no-un\");\n\n\t// Set an ID on the row\n\t$row->setProp('id', \"tr_$id\");\n\n\t// set the background of the strawberry column to black\n\tif($name == \"Strawberry\")\n\t{\n\t\t// get an instance of the column and set a css class\n\t\t$nameCol->addClass('strawberry');\n\t}\n\n\t// set the background of the entire shoe row to red\n\tif($name == \"Chocolate\")\t\n\t{\n\t\t$row->addClass('chocolate');\n\t}\n\n\t// change one of the cell values\n\tif($name == \"Banana\")\t\n\t{\n\t\t$row->setVal('Name', $name . \" (favorite) <img src='https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcROTNegrNoPzMFMcpQ4pl7tko9LMwgoXuZyjTmX8vpUuPS_RfZr' />\");\n\t}\n\n\treturn $row;\n}", "function successTableData()\n{\n global $html;\n\n $td = $html->createElement(\"td\",\"OK\");\n $tdStyle = $html->createAttribute(\"style\");\n $tdStyle->value = \"background-color: #00ff00\";\n $td->appendChild($tdStyle);\n\n return $td;\n}", "public function stylingColumn()\n {\n return $this;\n }", "public function setRow($row)\n {\n $this->row = $row;\n }", "function resetRow($Old,$Current,$Row)\n{\n if($Old != $Current)\n {\n $Row = 2;\n $Zone= '';\n }\n\n return $Row;\n}", "public function testSetStyleWithNonNovelDuplicateValuesAndSetRowValues()\n {\n\n // Create a record.\n $exhibit = $this->_createNeatline();\n $exhibit->default_vector_color = '#000000';\n $exhibit->default_stroke_color = '#000000';\n $exhibit->default_vector_opacity = 1;\n $exhibit->default_stroke_opacity = 1;\n $exhibit->default_stroke_width = 1;\n $exhibit->default_point_radius = 1;\n $exhibit->save();\n\n // Set system styling defaults.\n set_option('vector_color', '#5033de');\n set_option('stroke_color', '#1e2ee6');\n set_option('vector_opacity', 20);\n set_option('stroke_opacity', 70);\n set_option('stroke_width', 4);\n set_option('point_radius', 6);\n\n // Set.\n $this->assertTrue($exhibit->setStyle('vector_color', '#5033de'));\n $this->assertTrue($exhibit->setStyle('vector_opacity', 20));\n $this->assertTrue($exhibit->setStyle('stroke_color', '#1e2ee6'));\n $this->assertTrue($exhibit->setStyle('stroke_opacity', 70));\n $this->assertTrue($exhibit->setStyle('stroke_width', 4));\n $this->assertTrue($exhibit->setStyle('point_radius', 6));\n\n // Check.\n $this->assertNull($exhibit->default_vector_color);\n $this->assertNull($exhibit->default_stroke_color);\n $this->assertNull($exhibit->default_vector_opacity);\n $this->assertNull($exhibit->default_stroke_opacity);\n $this->assertNull($exhibit->default_stroke_width);\n $this->assertNull($exhibit->default_point_radius);\n\n }", "public function setRowsetClass($rowsetClass)\n {\n $this->_rowsetClass = (string)$rowsetClass;\n\n return $this;\n }", "function setRowDatas(&$row) {\r\n\t\t/* for optimization reason, do not save row. save just needed parameters */\r\n\t}", "function getCellAttributes()\n\t{\n\t\treturn $this->attrs;\n\t}", "function getCellAttributes()\n\t{\n\t\treturn $this->attrs;\n\t}", "public function reset(): self {\n\t\t$this->_lines = $this->_indexing = $this->_header = $this->_headerRead\n\t\t\t= $this->_linesInvalidSize = $this->_aliasedHeader = [];\n\t\t$this->_columnDelimiter = $this->_enclosure = $this->_escape = '';\n\t\t$this->_amountReadLines = $this->_amountProcessedLines = 0;\n\t\treturn $this;\n\t}", "public function setRowClass($rowClass)\n {\n $this->_rowClass = (string)$rowClass;\n\n return $this;\n }", "public function calculateRowClass($row)\n {\n return \"\";\n }", "public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// id\n\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->id->EditCustomAttributes = \"\";\n\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha\n\t\t$this->fecha->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fecha->EditCustomAttributes = \"\";\n\t\t$this->fecha->EditValue = FormatDateTime($this->fecha->CurrentValue, 8);\n\t\t$this->fecha->PlaceHolder = RemoveHtml($this->fecha->caption());\n\n\t\t// hora\n\t\t$this->hora->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->hora->EditCustomAttributes = \"\";\n\t\t$this->hora->EditValue = $this->hora->CurrentValue;\n\t\t$this->hora->PlaceHolder = RemoveHtml($this->hora->caption());\n\n\t\t// audio\n\t\t$this->audio->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->audio->EditCustomAttributes = \"\";\n\t\tif (!$this->audio->Raw)\n\t\t\t$this->audio->CurrentValue = HtmlDecode($this->audio->CurrentValue);\n\t\t$this->audio->EditValue = $this->audio->CurrentValue;\n\t\t$this->audio->PlaceHolder = RemoveHtml($this->audio->caption());\n\n\t\t// st\n\t\t$this->st->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->st->EditCustomAttributes = \"\";\n\t\tif (!$this->st->Raw)\n\t\t\t$this->st->CurrentValue = HtmlDecode($this->st->CurrentValue);\n\t\t$this->st->EditValue = $this->st->CurrentValue;\n\t\t$this->st->PlaceHolder = RemoveHtml($this->st->caption());\n\n\t\t// fechaHoraIni\n\t\t$this->fechaHoraIni->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechaHoraIni->EditCustomAttributes = \"\";\n\t\t$this->fechaHoraIni->EditValue = FormatDateTime($this->fechaHoraIni->CurrentValue, 8);\n\t\t$this->fechaHoraIni->PlaceHolder = RemoveHtml($this->fechaHoraIni->caption());\n\n\t\t// fechaHoraFin\n\t\t$this->fechaHoraFin->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechaHoraFin->EditCustomAttributes = \"\";\n\t\t$this->fechaHoraFin->EditValue = FormatDateTime($this->fechaHoraFin->CurrentValue, 8);\n\t\t$this->fechaHoraFin->PlaceHolder = RemoveHtml($this->fechaHoraFin->caption());\n\n\t\t// telefono\n\t\t$this->telefono->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->telefono->EditCustomAttributes = \"\";\n\t\tif (!$this->telefono->Raw)\n\t\t\t$this->telefono->CurrentValue = HtmlDecode($this->telefono->CurrentValue);\n\t\t$this->telefono->EditValue = $this->telefono->CurrentValue;\n\t\t$this->telefono->PlaceHolder = RemoveHtml($this->telefono->caption());\n\n\t\t// agente\n\t\t$this->agente->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->agente->EditCustomAttributes = \"\";\n\t\t$this->agente->EditValue = $this->agente->CurrentValue;\n\t\t$this->agente->PlaceHolder = RemoveHtml($this->agente->caption());\n\n\t\t// fechabo\n\t\t$this->fechabo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechabo->EditCustomAttributes = \"\";\n\t\t$this->fechabo->EditValue = FormatDateTime($this->fechabo->CurrentValue, 8);\n\t\t$this->fechabo->PlaceHolder = RemoveHtml($this->fechabo->caption());\n\n\t\t// agentebo\n\t\t$this->agentebo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->agentebo->EditCustomAttributes = \"\";\n\t\t$this->agentebo->EditValue = $this->agentebo->CurrentValue;\n\t\t$this->agentebo->PlaceHolder = RemoveHtml($this->agentebo->caption());\n\n\t\t// comentariosbo\n\t\t$this->comentariosbo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->comentariosbo->EditCustomAttributes = \"\";\n\t\t$this->comentariosbo->EditValue = $this->comentariosbo->CurrentValue;\n\t\t$this->comentariosbo->PlaceHolder = RemoveHtml($this->comentariosbo->caption());\n\n\t\t// IP\n\t\t$this->IP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IP->EditCustomAttributes = \"\";\n\t\tif (!$this->IP->Raw)\n\t\t\t$this->IP->CurrentValue = HtmlDecode($this->IP->CurrentValue);\n\t\t$this->IP->EditValue = $this->IP->CurrentValue;\n\t\t$this->IP->PlaceHolder = RemoveHtml($this->IP->caption());\n\n\t\t// actual\n\t\t$this->actual->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->actual->EditCustomAttributes = \"\";\n\t\tif (!$this->actual->Raw)\n\t\t\t$this->actual->CurrentValue = HtmlDecode($this->actual->CurrentValue);\n\t\t$this->actual->EditValue = $this->actual->CurrentValue;\n\t\t$this->actual->PlaceHolder = RemoveHtml($this->actual->caption());\n\n\t\t// completado\n\t\t$this->completado->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->completado->EditCustomAttributes = \"\";\n\t\tif (!$this->completado->Raw)\n\t\t\t$this->completado->CurrentValue = HtmlDecode($this->completado->CurrentValue);\n\t\t$this->completado->EditValue = $this->completado->CurrentValue;\n\t\t$this->completado->PlaceHolder = RemoveHtml($this->completado->caption());\n\n\t\t// 2_1_R\n\t\t$this->_2_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_1_R->EditCustomAttributes = \"\";\n\t\t$this->_2_1_R->EditValue = $this->_2_1_R->CurrentValue;\n\t\t$this->_2_1_R->PlaceHolder = RemoveHtml($this->_2_1_R->caption());\n\n\t\t// 2_2_R\n\t\t$this->_2_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_2_R->EditCustomAttributes = \"\";\n\t\t$this->_2_2_R->EditValue = $this->_2_2_R->CurrentValue;\n\t\t$this->_2_2_R->PlaceHolder = RemoveHtml($this->_2_2_R->caption());\n\n\t\t// 2_3_R\n\t\t$this->_2_3_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_3_R->EditCustomAttributes = \"\";\n\t\t$this->_2_3_R->EditValue = $this->_2_3_R->CurrentValue;\n\t\t$this->_2_3_R->PlaceHolder = RemoveHtml($this->_2_3_R->caption());\n\n\t\t// 3_4_R\n\t\t$this->_3_4_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_3_4_R->EditCustomAttributes = \"\";\n\t\t$this->_3_4_R->EditValue = $this->_3_4_R->CurrentValue;\n\t\t$this->_3_4_R->PlaceHolder = RemoveHtml($this->_3_4_R->caption());\n\n\t\t// 4_5_R\n\t\t$this->_4_5_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_5_R->EditCustomAttributes = \"\";\n\t\t$this->_4_5_R->EditValue = $this->_4_5_R->CurrentValue;\n\t\t$this->_4_5_R->PlaceHolder = RemoveHtml($this->_4_5_R->caption());\n\n\t\t// 4_6_R\n\t\t$this->_4_6_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_6_R->EditCustomAttributes = \"\";\n\t\t$this->_4_6_R->EditValue = $this->_4_6_R->CurrentValue;\n\t\t$this->_4_6_R->PlaceHolder = RemoveHtml($this->_4_6_R->caption());\n\n\t\t// 4_7_R\n\t\t$this->_4_7_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_7_R->EditCustomAttributes = \"\";\n\t\t$this->_4_7_R->EditValue = $this->_4_7_R->CurrentValue;\n\t\t$this->_4_7_R->PlaceHolder = RemoveHtml($this->_4_7_R->caption());\n\n\t\t// 4_8_R\n\t\t$this->_4_8_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_8_R->EditCustomAttributes = \"\";\n\t\t$this->_4_8_R->EditValue = $this->_4_8_R->CurrentValue;\n\t\t$this->_4_8_R->PlaceHolder = RemoveHtml($this->_4_8_R->caption());\n\n\t\t// 5_9_R\n\t\t$this->_5_9_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_9_R->EditCustomAttributes = \"\";\n\t\t$this->_5_9_R->EditValue = $this->_5_9_R->CurrentValue;\n\t\t$this->_5_9_R->PlaceHolder = RemoveHtml($this->_5_9_R->caption());\n\n\t\t// 5_10_R\n\t\t$this->_5_10_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_10_R->EditCustomAttributes = \"\";\n\t\t$this->_5_10_R->EditValue = $this->_5_10_R->CurrentValue;\n\t\t$this->_5_10_R->PlaceHolder = RemoveHtml($this->_5_10_R->caption());\n\n\t\t// 5_11_R\n\t\t$this->_5_11_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_11_R->EditCustomAttributes = \"\";\n\t\t$this->_5_11_R->EditValue = $this->_5_11_R->CurrentValue;\n\t\t$this->_5_11_R->PlaceHolder = RemoveHtml($this->_5_11_R->caption());\n\n\t\t// 5_12_R\n\t\t$this->_5_12_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_12_R->EditCustomAttributes = \"\";\n\t\t$this->_5_12_R->EditValue = $this->_5_12_R->CurrentValue;\n\t\t$this->_5_12_R->PlaceHolder = RemoveHtml($this->_5_12_R->caption());\n\n\t\t// 5_13_R\n\t\t$this->_5_13_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_13_R->EditCustomAttributes = \"\";\n\t\t$this->_5_13_R->EditValue = $this->_5_13_R->CurrentValue;\n\t\t$this->_5_13_R->PlaceHolder = RemoveHtml($this->_5_13_R->caption());\n\n\t\t// 5_14_R\n\t\t$this->_5_14_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_14_R->EditCustomAttributes = \"\";\n\t\t$this->_5_14_R->EditValue = $this->_5_14_R->CurrentValue;\n\t\t$this->_5_14_R->PlaceHolder = RemoveHtml($this->_5_14_R->caption());\n\n\t\t// 5_51_R\n\t\t$this->_5_51_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_51_R->EditCustomAttributes = \"\";\n\t\t$this->_5_51_R->EditValue = $this->_5_51_R->CurrentValue;\n\t\t$this->_5_51_R->PlaceHolder = RemoveHtml($this->_5_51_R->caption());\n\n\t\t// 6_15_R\n\t\t$this->_6_15_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_15_R->EditCustomAttributes = \"\";\n\t\t$this->_6_15_R->EditValue = $this->_6_15_R->CurrentValue;\n\t\t$this->_6_15_R->PlaceHolder = RemoveHtml($this->_6_15_R->caption());\n\n\t\t// 6_16_R\n\t\t$this->_6_16_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_16_R->EditCustomAttributes = \"\";\n\t\t$this->_6_16_R->EditValue = $this->_6_16_R->CurrentValue;\n\t\t$this->_6_16_R->PlaceHolder = RemoveHtml($this->_6_16_R->caption());\n\n\t\t// 6_17_R\n\t\t$this->_6_17_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_17_R->EditCustomAttributes = \"\";\n\t\t$this->_6_17_R->EditValue = $this->_6_17_R->CurrentValue;\n\t\t$this->_6_17_R->PlaceHolder = RemoveHtml($this->_6_17_R->caption());\n\n\t\t// 6_18_R\n\t\t$this->_6_18_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_18_R->EditCustomAttributes = \"\";\n\t\t$this->_6_18_R->EditValue = $this->_6_18_R->CurrentValue;\n\t\t$this->_6_18_R->PlaceHolder = RemoveHtml($this->_6_18_R->caption());\n\n\t\t// 6_19_R\n\t\t$this->_6_19_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_19_R->EditCustomAttributes = \"\";\n\t\t$this->_6_19_R->EditValue = $this->_6_19_R->CurrentValue;\n\t\t$this->_6_19_R->PlaceHolder = RemoveHtml($this->_6_19_R->caption());\n\n\t\t// 6_20_R\n\t\t$this->_6_20_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_20_R->EditCustomAttributes = \"\";\n\t\t$this->_6_20_R->EditValue = $this->_6_20_R->CurrentValue;\n\t\t$this->_6_20_R->PlaceHolder = RemoveHtml($this->_6_20_R->caption());\n\n\t\t// 6_52_R\n\t\t$this->_6_52_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_52_R->EditCustomAttributes = \"\";\n\t\t$this->_6_52_R->EditValue = $this->_6_52_R->CurrentValue;\n\t\t$this->_6_52_R->PlaceHolder = RemoveHtml($this->_6_52_R->caption());\n\n\t\t// 7_21_R\n\t\t$this->_7_21_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_7_21_R->EditCustomAttributes = \"\";\n\t\t$this->_7_21_R->EditValue = $this->_7_21_R->CurrentValue;\n\t\t$this->_7_21_R->PlaceHolder = RemoveHtml($this->_7_21_R->caption());\n\n\t\t// 8_22_R\n\t\t$this->_8_22_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_22_R->EditCustomAttributes = \"\";\n\t\t$this->_8_22_R->EditValue = $this->_8_22_R->CurrentValue;\n\t\t$this->_8_22_R->PlaceHolder = RemoveHtml($this->_8_22_R->caption());\n\n\t\t// 8_23_R\n\t\t$this->_8_23_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_23_R->EditCustomAttributes = \"\";\n\t\t$this->_8_23_R->EditValue = $this->_8_23_R->CurrentValue;\n\t\t$this->_8_23_R->PlaceHolder = RemoveHtml($this->_8_23_R->caption());\n\n\t\t// 8_24_R\n\t\t$this->_8_24_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_24_R->EditCustomAttributes = \"\";\n\t\t$this->_8_24_R->EditValue = $this->_8_24_R->CurrentValue;\n\t\t$this->_8_24_R->PlaceHolder = RemoveHtml($this->_8_24_R->caption());\n\n\t\t// 8_25_R\n\t\t$this->_8_25_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_25_R->EditCustomAttributes = \"\";\n\t\t$this->_8_25_R->EditValue = $this->_8_25_R->CurrentValue;\n\t\t$this->_8_25_R->PlaceHolder = RemoveHtml($this->_8_25_R->caption());\n\n\t\t// 9_26_R\n\t\t$this->_9_26_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_26_R->EditCustomAttributes = \"\";\n\t\t$this->_9_26_R->EditValue = $this->_9_26_R->CurrentValue;\n\t\t$this->_9_26_R->PlaceHolder = RemoveHtml($this->_9_26_R->caption());\n\n\t\t// 9_27_R\n\t\t$this->_9_27_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_27_R->EditCustomAttributes = \"\";\n\t\t$this->_9_27_R->EditValue = $this->_9_27_R->CurrentValue;\n\t\t$this->_9_27_R->PlaceHolder = RemoveHtml($this->_9_27_R->caption());\n\n\t\t// 9_28_R\n\t\t$this->_9_28_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_28_R->EditCustomAttributes = \"\";\n\t\t$this->_9_28_R->EditValue = $this->_9_28_R->CurrentValue;\n\t\t$this->_9_28_R->PlaceHolder = RemoveHtml($this->_9_28_R->caption());\n\n\t\t// 9_29_R\n\t\t$this->_9_29_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_29_R->EditCustomAttributes = \"\";\n\t\t$this->_9_29_R->EditValue = $this->_9_29_R->CurrentValue;\n\t\t$this->_9_29_R->PlaceHolder = RemoveHtml($this->_9_29_R->caption());\n\n\t\t// 9_30_R\n\t\t$this->_9_30_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_30_R->EditCustomAttributes = \"\";\n\t\t$this->_9_30_R->EditValue = $this->_9_30_R->CurrentValue;\n\t\t$this->_9_30_R->PlaceHolder = RemoveHtml($this->_9_30_R->caption());\n\n\t\t// 9_31_R\n\t\t$this->_9_31_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_31_R->EditCustomAttributes = \"\";\n\t\t$this->_9_31_R->EditValue = $this->_9_31_R->CurrentValue;\n\t\t$this->_9_31_R->PlaceHolder = RemoveHtml($this->_9_31_R->caption());\n\n\t\t// 9_32_R\n\t\t$this->_9_32_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_32_R->EditCustomAttributes = \"\";\n\t\t$this->_9_32_R->EditValue = $this->_9_32_R->CurrentValue;\n\t\t$this->_9_32_R->PlaceHolder = RemoveHtml($this->_9_32_R->caption());\n\n\t\t// 9_33_R\n\t\t$this->_9_33_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_33_R->EditCustomAttributes = \"\";\n\t\t$this->_9_33_R->EditValue = $this->_9_33_R->CurrentValue;\n\t\t$this->_9_33_R->PlaceHolder = RemoveHtml($this->_9_33_R->caption());\n\n\t\t// 9_34_R\n\t\t$this->_9_34_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_34_R->EditCustomAttributes = \"\";\n\t\t$this->_9_34_R->EditValue = $this->_9_34_R->CurrentValue;\n\t\t$this->_9_34_R->PlaceHolder = RemoveHtml($this->_9_34_R->caption());\n\n\t\t// 9_35_R\n\t\t$this->_9_35_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_35_R->EditCustomAttributes = \"\";\n\t\t$this->_9_35_R->EditValue = $this->_9_35_R->CurrentValue;\n\t\t$this->_9_35_R->PlaceHolder = RemoveHtml($this->_9_35_R->caption());\n\n\t\t// 9_36_R\n\t\t$this->_9_36_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_36_R->EditCustomAttributes = \"\";\n\t\t$this->_9_36_R->EditValue = $this->_9_36_R->CurrentValue;\n\t\t$this->_9_36_R->PlaceHolder = RemoveHtml($this->_9_36_R->caption());\n\n\t\t// 9_37_R\n\t\t$this->_9_37_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_37_R->EditCustomAttributes = \"\";\n\t\t$this->_9_37_R->EditValue = $this->_9_37_R->CurrentValue;\n\t\t$this->_9_37_R->PlaceHolder = RemoveHtml($this->_9_37_R->caption());\n\n\t\t// 9_38_R\n\t\t$this->_9_38_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_38_R->EditCustomAttributes = \"\";\n\t\t$this->_9_38_R->EditValue = $this->_9_38_R->CurrentValue;\n\t\t$this->_9_38_R->PlaceHolder = RemoveHtml($this->_9_38_R->caption());\n\n\t\t// 9_39_R\n\t\t$this->_9_39_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_39_R->EditCustomAttributes = \"\";\n\t\t$this->_9_39_R->EditValue = $this->_9_39_R->CurrentValue;\n\t\t$this->_9_39_R->PlaceHolder = RemoveHtml($this->_9_39_R->caption());\n\n\t\t// 10_40_R\n\t\t$this->_10_40_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_10_40_R->EditCustomAttributes = \"\";\n\t\t$this->_10_40_R->EditValue = $this->_10_40_R->CurrentValue;\n\t\t$this->_10_40_R->PlaceHolder = RemoveHtml($this->_10_40_R->caption());\n\n\t\t// 10_41_R\n\t\t$this->_10_41_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_10_41_R->EditCustomAttributes = \"\";\n\t\t$this->_10_41_R->EditValue = $this->_10_41_R->CurrentValue;\n\t\t$this->_10_41_R->PlaceHolder = RemoveHtml($this->_10_41_R->caption());\n\n\t\t// 11_42_R\n\t\t$this->_11_42_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_11_42_R->EditCustomAttributes = \"\";\n\t\t$this->_11_42_R->EditValue = $this->_11_42_R->CurrentValue;\n\t\t$this->_11_42_R->PlaceHolder = RemoveHtml($this->_11_42_R->caption());\n\n\t\t// 11_43_R\n\t\t$this->_11_43_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_11_43_R->EditCustomAttributes = \"\";\n\t\t$this->_11_43_R->EditValue = $this->_11_43_R->CurrentValue;\n\t\t$this->_11_43_R->PlaceHolder = RemoveHtml($this->_11_43_R->caption());\n\n\t\t// 12_44_R\n\t\t$this->_12_44_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_44_R->EditCustomAttributes = \"\";\n\t\t$this->_12_44_R->EditValue = $this->_12_44_R->CurrentValue;\n\t\t$this->_12_44_R->PlaceHolder = RemoveHtml($this->_12_44_R->caption());\n\n\t\t// 12_45_R\n\t\t$this->_12_45_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_45_R->EditCustomAttributes = \"\";\n\t\t$this->_12_45_R->EditValue = $this->_12_45_R->CurrentValue;\n\t\t$this->_12_45_R->PlaceHolder = RemoveHtml($this->_12_45_R->caption());\n\n\t\t// 12_46_R\n\t\t$this->_12_46_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_46_R->EditCustomAttributes = \"\";\n\t\t$this->_12_46_R->EditValue = $this->_12_46_R->CurrentValue;\n\t\t$this->_12_46_R->PlaceHolder = RemoveHtml($this->_12_46_R->caption());\n\n\t\t// 12_47_R\n\t\t$this->_12_47_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_47_R->EditCustomAttributes = \"\";\n\t\t$this->_12_47_R->EditValue = $this->_12_47_R->CurrentValue;\n\t\t$this->_12_47_R->PlaceHolder = RemoveHtml($this->_12_47_R->caption());\n\n\t\t// 12_48_R\n\t\t$this->_12_48_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_48_R->EditCustomAttributes = \"\";\n\t\t$this->_12_48_R->EditValue = $this->_12_48_R->CurrentValue;\n\t\t$this->_12_48_R->PlaceHolder = RemoveHtml($this->_12_48_R->caption());\n\n\t\t// 12_49_R\n\t\t$this->_12_49_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_49_R->EditCustomAttributes = \"\";\n\t\t$this->_12_49_R->EditValue = $this->_12_49_R->CurrentValue;\n\t\t$this->_12_49_R->PlaceHolder = RemoveHtml($this->_12_49_R->caption());\n\n\t\t// 12_50_R\n\t\t$this->_12_50_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_50_R->EditCustomAttributes = \"\";\n\t\t$this->_12_50_R->EditValue = $this->_12_50_R->CurrentValue;\n\t\t$this->_12_50_R->PlaceHolder = RemoveHtml($this->_12_50_R->caption());\n\n\t\t// 1__R\n\t\t$this->_1__R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_1__R->EditCustomAttributes = \"\";\n\t\t$this->_1__R->EditValue = $this->_1__R->CurrentValue;\n\t\t$this->_1__R->PlaceHolder = RemoveHtml($this->_1__R->caption());\n\n\t\t// 13_54_R\n\t\t$this->_13_54_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_R->EditValue = $this->_13_54_R->CurrentValue;\n\t\t$this->_13_54_R->PlaceHolder = RemoveHtml($this->_13_54_R->caption());\n\n\t\t// 13_54_1_R\n\t\t$this->_13_54_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_1_R->EditValue = $this->_13_54_1_R->CurrentValue;\n\t\t$this->_13_54_1_R->PlaceHolder = RemoveHtml($this->_13_54_1_R->caption());\n\n\t\t// 13_54_2_R\n\t\t$this->_13_54_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_2_R->EditValue = $this->_13_54_2_R->CurrentValue;\n\t\t$this->_13_54_2_R->PlaceHolder = RemoveHtml($this->_13_54_2_R->caption());\n\n\t\t// 13_55_R\n\t\t$this->_13_55_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_R->EditValue = $this->_13_55_R->CurrentValue;\n\t\t$this->_13_55_R->PlaceHolder = RemoveHtml($this->_13_55_R->caption());\n\n\t\t// 13_55_1_R\n\t\t$this->_13_55_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_1_R->EditValue = $this->_13_55_1_R->CurrentValue;\n\t\t$this->_13_55_1_R->PlaceHolder = RemoveHtml($this->_13_55_1_R->caption());\n\n\t\t// 13_55_2_R\n\t\t$this->_13_55_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_2_R->EditValue = $this->_13_55_2_R->CurrentValue;\n\t\t$this->_13_55_2_R->PlaceHolder = RemoveHtml($this->_13_55_2_R->caption());\n\n\t\t// 13_56_R\n\t\t$this->_13_56_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_R->EditValue = $this->_13_56_R->CurrentValue;\n\t\t$this->_13_56_R->PlaceHolder = RemoveHtml($this->_13_56_R->caption());\n\n\t\t// 13_56_1_R\n\t\t$this->_13_56_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_1_R->EditValue = $this->_13_56_1_R->CurrentValue;\n\t\t$this->_13_56_1_R->PlaceHolder = RemoveHtml($this->_13_56_1_R->caption());\n\n\t\t// 13_56_2_R\n\t\t$this->_13_56_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_2_R->EditValue = $this->_13_56_2_R->CurrentValue;\n\t\t$this->_13_56_2_R->PlaceHolder = RemoveHtml($this->_13_56_2_R->caption());\n\n\t\t// 12_53_R\n\t\t$this->_12_53_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_R->EditValue = $this->_12_53_R->CurrentValue;\n\t\t$this->_12_53_R->PlaceHolder = RemoveHtml($this->_12_53_R->caption());\n\n\t\t// 12_53_1_R\n\t\t$this->_12_53_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_1_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_1_R->EditValue = $this->_12_53_1_R->CurrentValue;\n\t\t$this->_12_53_1_R->PlaceHolder = RemoveHtml($this->_12_53_1_R->caption());\n\n\t\t// 12_53_2_R\n\t\t$this->_12_53_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_2_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_2_R->EditValue = $this->_12_53_2_R->CurrentValue;\n\t\t$this->_12_53_2_R->PlaceHolder = RemoveHtml($this->_12_53_2_R->caption());\n\n\t\t// 12_53_3_R\n\t\t$this->_12_53_3_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_3_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_3_R->EditValue = $this->_12_53_3_R->CurrentValue;\n\t\t$this->_12_53_3_R->PlaceHolder = RemoveHtml($this->_12_53_3_R->caption());\n\n\t\t// 12_53_4_R\n\t\t$this->_12_53_4_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_4_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_4_R->EditValue = $this->_12_53_4_R->CurrentValue;\n\t\t$this->_12_53_4_R->PlaceHolder = RemoveHtml($this->_12_53_4_R->caption());\n\n\t\t// 12_53_5_R\n\t\t$this->_12_53_5_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_5_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_5_R->EditValue = $this->_12_53_5_R->CurrentValue;\n\t\t$this->_12_53_5_R->PlaceHolder = RemoveHtml($this->_12_53_5_R->caption());\n\n\t\t// 12_53_6_R\n\t\t$this->_12_53_6_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_6_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_6_R->EditValue = $this->_12_53_6_R->CurrentValue;\n\t\t$this->_12_53_6_R->PlaceHolder = RemoveHtml($this->_12_53_6_R->caption());\n\n\t\t// 13_57_R\n\t\t$this->_13_57_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_R->EditValue = $this->_13_57_R->CurrentValue;\n\t\t$this->_13_57_R->PlaceHolder = RemoveHtml($this->_13_57_R->caption());\n\n\t\t// 13_57_1_R\n\t\t$this->_13_57_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_1_R->EditValue = $this->_13_57_1_R->CurrentValue;\n\t\t$this->_13_57_1_R->PlaceHolder = RemoveHtml($this->_13_57_1_R->caption());\n\n\t\t// 13_57_2_R\n\t\t$this->_13_57_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_2_R->EditValue = $this->_13_57_2_R->CurrentValue;\n\t\t$this->_13_57_2_R->PlaceHolder = RemoveHtml($this->_13_57_2_R->caption());\n\n\t\t// 13_58_R\n\t\t$this->_13_58_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_R->EditValue = $this->_13_58_R->CurrentValue;\n\t\t$this->_13_58_R->PlaceHolder = RemoveHtml($this->_13_58_R->caption());\n\n\t\t// 13_58_1_R\n\t\t$this->_13_58_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_1_R->EditValue = $this->_13_58_1_R->CurrentValue;\n\t\t$this->_13_58_1_R->PlaceHolder = RemoveHtml($this->_13_58_1_R->caption());\n\n\t\t// 13_58_2_R\n\t\t$this->_13_58_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_2_R->EditValue = $this->_13_58_2_R->CurrentValue;\n\t\t$this->_13_58_2_R->PlaceHolder = RemoveHtml($this->_13_58_2_R->caption());\n\n\t\t// 13_59_R\n\t\t$this->_13_59_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_R->EditValue = $this->_13_59_R->CurrentValue;\n\t\t$this->_13_59_R->PlaceHolder = RemoveHtml($this->_13_59_R->caption());\n\n\t\t// 13_59_1_R\n\t\t$this->_13_59_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_1_R->EditValue = $this->_13_59_1_R->CurrentValue;\n\t\t$this->_13_59_1_R->PlaceHolder = RemoveHtml($this->_13_59_1_R->caption());\n\n\t\t// 13_59_2_R\n\t\t$this->_13_59_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_2_R->EditValue = $this->_13_59_2_R->CurrentValue;\n\t\t$this->_13_59_2_R->PlaceHolder = RemoveHtml($this->_13_59_2_R->caption());\n\n\t\t// 13_60_R\n\t\t$this->_13_60_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_60_R->EditCustomAttributes = \"\";\n\t\t$this->_13_60_R->EditValue = $this->_13_60_R->CurrentValue;\n\t\t$this->_13_60_R->PlaceHolder = RemoveHtml($this->_13_60_R->caption());\n\n\t\t// 12_53_7_R\n\t\t$this->_12_53_7_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_7_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_7_R->EditValue = $this->_12_53_7_R->CurrentValue;\n\t\t$this->_12_53_7_R->PlaceHolder = RemoveHtml($this->_12_53_7_R->caption());\n\n\t\t// 12_53_8_R\n\t\t$this->_12_53_8_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_8_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_8_R->EditValue = $this->_12_53_8_R->CurrentValue;\n\t\t$this->_12_53_8_R->PlaceHolder = RemoveHtml($this->_12_53_8_R->caption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function renderTableRow($model) {\n $cells = [];\n /* @var $column Column */\n foreach ($this->columns as $column) {\n $cells[] = $column->renderContentCell($model);\n }\n\tif (is_callable($this->rowOptions) && $model !== null)\n\t $options = call_user_func($this->rowOptions, $model, $this);\n\telse\n\t $options = $this->rowOptions;\n\n $options['data-key'] = (string)$model->key();\n\n return Widget::html()->tag('table-row', array('content' => implode('', $cells)), $options);\n }", "public function Clear() {\n $this->_row = '';\n $this->_table = '';\n $this->_itemcount = 0;\n $this->_rown = 0;\n }", "public function setRow($row)\n\t{\n\t\t$this->cells[] = new Hypertable_ThriftGen_Cell(array('key' => new Hypertable_ThriftGen_Key( array('row'=> $row, 'flag' => 0))));\n\t\treturn $this;\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $fs_multijoin_v;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $fs_multijoin_v->ViewUrl();\r\n\t\t$this->EditUrl = $fs_multijoin_v->EditUrl();\r\n\t\t$this->InlineEditUrl = $fs_multijoin_v->InlineEditUrl();\r\n\t\t$this->CopyUrl = $fs_multijoin_v->CopyUrl();\r\n\t\t$this->InlineCopyUrl = $fs_multijoin_v->InlineCopyUrl();\r\n\t\t$this->DeleteUrl = $fs_multijoin_v->DeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$fs_multijoin_v->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$fs_multijoin_v->id->CellCssStyle = \"\"; $fs_multijoin_v->id->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->id->CellAttrs = array(); $fs_multijoin_v->id->ViewAttrs = array(); $fs_multijoin_v->id->EditAttrs = array();\r\n\r\n\t\t// mount\r\n\t\t$fs_multijoin_v->mount->CellCssStyle = \"\"; $fs_multijoin_v->mount->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->mount->CellAttrs = array(); $fs_multijoin_v->mount->ViewAttrs = array(); $fs_multijoin_v->mount->EditAttrs = array();\r\n\r\n\t\t// path\r\n\t\t$fs_multijoin_v->path->CellCssStyle = \"\"; $fs_multijoin_v->path->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->path->CellAttrs = array(); $fs_multijoin_v->path->ViewAttrs = array(); $fs_multijoin_v->path->EditAttrs = array();\r\n\r\n\t\t// parent\r\n\t\t$fs_multijoin_v->parent->CellCssStyle = \"\"; $fs_multijoin_v->parent->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->parent->CellAttrs = array(); $fs_multijoin_v->parent->ViewAttrs = array(); $fs_multijoin_v->parent->EditAttrs = array();\r\n\r\n\t\t// deprecated\r\n\t\t$fs_multijoin_v->deprecated->CellCssStyle = \"\"; $fs_multijoin_v->deprecated->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->deprecated->CellAttrs = array(); $fs_multijoin_v->deprecated->ViewAttrs = array(); $fs_multijoin_v->deprecated->EditAttrs = array();\r\n\r\n\t\t// name\r\n\t\t$fs_multijoin_v->name->CellCssStyle = \"\"; $fs_multijoin_v->name->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->name->CellAttrs = array(); $fs_multijoin_v->name->ViewAttrs = array(); $fs_multijoin_v->name->EditAttrs = array();\r\n\r\n\t\t// snapshot\r\n\t\t$fs_multijoin_v->snapshot->CellCssStyle = \"\"; $fs_multijoin_v->snapshot->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->snapshot->CellAttrs = array(); $fs_multijoin_v->snapshot->ViewAttrs = array(); $fs_multijoin_v->snapshot->EditAttrs = array();\r\n\r\n\t\t// tapebackup\r\n\t\t$fs_multijoin_v->tapebackup->CellCssStyle = \"\"; $fs_multijoin_v->tapebackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->tapebackup->CellAttrs = array(); $fs_multijoin_v->tapebackup->ViewAttrs = array(); $fs_multijoin_v->tapebackup->EditAttrs = array();\r\n\r\n\t\t// diskbackup\r\n\t\t$fs_multijoin_v->diskbackup->CellCssStyle = \"\"; $fs_multijoin_v->diskbackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->diskbackup->CellAttrs = array(); $fs_multijoin_v->diskbackup->ViewAttrs = array(); $fs_multijoin_v->diskbackup->EditAttrs = array();\r\n\r\n\t\t// type\r\n\t\t$fs_multijoin_v->type->CellCssStyle = \"\"; $fs_multijoin_v->type->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->type->CellAttrs = array(); $fs_multijoin_v->type->ViewAttrs = array(); $fs_multijoin_v->type->EditAttrs = array();\r\n\r\n\t\t// CONTACT\r\n\t\t$fs_multijoin_v->CONTACT->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT->CellAttrs = array(); $fs_multijoin_v->CONTACT->ViewAttrs = array(); $fs_multijoin_v->CONTACT->EditAttrs = array();\r\n\r\n\t\t// CONTACT2\r\n\t\t$fs_multijoin_v->CONTACT2->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT2->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT2->CellAttrs = array(); $fs_multijoin_v->CONTACT2->ViewAttrs = array(); $fs_multijoin_v->CONTACT2->EditAttrs = array();\r\n\r\n\t\t// RESCOMP\r\n\t\t$fs_multijoin_v->RESCOMP->CellCssStyle = \"\"; $fs_multijoin_v->RESCOMP->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->RESCOMP->CellAttrs = array(); $fs_multijoin_v->RESCOMP->ViewAttrs = array(); $fs_multijoin_v->RESCOMP->EditAttrs = array();\r\n\t\tif ($fs_multijoin_v->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->ViewValue = $fs_multijoin_v->id->CurrentValue;\r\n\t\t\t$fs_multijoin_v->id->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->id->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->ViewValue = $fs_multijoin_v->mount->CurrentValue;\r\n\t\t\t$fs_multijoin_v->mount->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->mount->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->ViewValue = $fs_multijoin_v->path->CurrentValue;\r\n\t\t\t$fs_multijoin_v->path->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->path->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->ViewValue = $fs_multijoin_v->parent->CurrentValue;\r\n\t\t\t$fs_multijoin_v->parent->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->parent->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->ViewValue = $fs_multijoin_v->deprecated->CurrentValue;\r\n\t\t\t$fs_multijoin_v->deprecated->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->ViewValue = $fs_multijoin_v->name->CurrentValue;\r\n\t\t\t$fs_multijoin_v->name->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->name->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->ViewValue = $fs_multijoin_v->snapshot->CurrentValue;\r\n\t\t\t$fs_multijoin_v->snapshot->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewValue = $fs_multijoin_v->tapebackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->tapebackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewValue = $fs_multijoin_v->diskbackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->diskbackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->ViewValue = $fs_multijoin_v->type->CurrentValue;\r\n\t\t\t$fs_multijoin_v->type->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->type->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewValue = $fs_multijoin_v->CONTACT->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewValue = $fs_multijoin_v->CONTACT2->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewValue = $fs_multijoin_v->RESCOMP->CurrentValue;\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->id->TooltipValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->mount->TooltipValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->path->TooltipValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->parent->TooltipValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->name->TooltipValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->TooltipValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->TooltipValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->type->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->TooltipValue = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($fs_multijoin_v->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$fs_multijoin_v->Row_Rendered();\r\n\t}", "function DOM_clean_table($table) {\r\n\t\t$parentNode = $table->parentNode;\r\n\t\tif($parentNode->nodeName === \"div\" && ReTidy::DOM_isConflationaryWithParentIgnoringWhitespace($table) && !$parentNode->hasAttributes()) {\r\n\t\t\t$parentNode->setAttribute(\"stripme\", \"y\");\r\n\t\t\tReTidy::DOM_strip_node($parentNode);\r\n\t\t}\r\n\t\t\r\n\t\t// empty tables...\r\n\t\tif(ReTidy::isEmptyElement($table)) {\r\n\t\t\t$table->setAttribute(\"stripme\", \"y\");\r\n\t\t\tReTidy::DOM_strip_node($table);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// tables with only one datum\r\n\t\t$border_attribute = ReTidy::getAttribute($table, \"border\");\r\n\t\t//$blockString = DTD::getBlock();\r\n\t\t//$query = ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'thead/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'thead/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'tfoot/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tfoot/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'tbody/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tbody/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th';\r\n\t\t$query = ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'thead/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'tfoot/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'tbody/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'thead/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tfoot/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tbody/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td';\r\n\t\t$cells = $this->xpath->query($query, $table);\r\n\t\t$count_cells = $count_empty_cells = 0;\r\n\t\t$last_cell_with_content = false;\r\n\t\tforeach($cells as $cell) {\r\n\t\t\t$count_cells++;\r\n\t\t\tif(ReTidy::isEmptyElement($cell)) {\r\n\t\t\t\t$count_empty_cells++;\r\n\t\t\t} else {\r\n\t\t\t\t$last_cell_with_content = $cell;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if($count_cells - $count_empty_cells < 2 && isset($last_cell_with_content)) {\r\n\t\tif($count_cells - $count_empty_cells < 2) {\r\n\t\t\t/*$table->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t$firstElementChild = ReTidy::getFirstElementChild($last_cell_with_content);\r\n\t\t\t$isConflationaryBlock = false;\r\n\t\t\t// notice that this is not smart enough to catch multiple block elements as the single datum in a table.\r\n\t\t\tif($firstElementChild && ReTidy::DOM_isConflationaryWithParentIgnoringWhitespace($firstElementChild)) {\r\n\t\t\t\tforeach(explode(\"|\", $blockString) as $blockName) {\r\n\t\t\t\t\tif($blockName === $firstElementChild->nodeName) {\r\n\t\t\t\t\t\t$isConflationaryBlock = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($isConflationaryBlock) {\r\n\t\t\t\t$new_node = $firstElementChild->cloneNode(true);\r\n\t\t\t} else {\r\n\t\t\t\t$last_cell_with_content->setAttribute(\"divme\", \"y\");\r\n\t\t\t\t$new_node = $last_cell_with_content->cloneNode(true);\r\n\t\t\t}*/\r\n\t\t\tif($border_attribute !== false) {\r\n\t\t\t\t//var_dump($border_attribute->nodeValue);\r\n\t\t\t\tif($border_attribute->nodeValue == 0) {\r\n\t\t\t\t\t// do nothing\r\n\t\t\t\t\t//$last_cell_with_content->setAttribute(\"divme\", \"stripme\");\r\n\t\t\t\t\t//$last_cell_with_content->setAttribute(\"stripme\", \"y\");\r\n\t\t\t\t\t//ReTidy::DOM_strip_node($last_cell_with_content);\r\n\t\t\t\t\tReTidy::DOM_strip_one_cell_table($table);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif($last_cell_with_content !== false) {\r\n\t\t\t\t\t\t$last_cell_with_content->setAttribute(\"divme\", \"y\");\r\n\t\t\t\t\t\tReTidy::addStyleWithoutOverwrite($last_cell_with_content, \"border: \" . $border_attribute->nodeValue . \"px solid black;\");\r\n\t\t\t\t\t\tReTidy::DOM_strip_all_but_datum_of_one_datum_table($table, $last_cell_with_content);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tReTidy::DOM_strip_one_cell_table($table);\r\n\t\t\t}\r\n\t\t\t//$table->parentNode->insertBefore($new_node, $table);\r\n\t\t}\r\n\t\t\r\n\t\t// eliminate layout tables (at least the kind that is only one cell with a table in it)\r\n\t\t// seems to be taken care of by the above\r\n\t\t/*$query = ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'thead/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'thead/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'tfoot/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tfoot/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th | ' . ReTidy::get_html_namespace() . 'tbody/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'tbody/' . ReTidy::get_html_namespace() . 'tr/' . ReTidy::get_html_namespace() . 'th';\r\n\t\t$cells = $this->xpath->query($query, $table);\r\n\t\t$count_cells = 0;\r\n\t\tforeach($cells as $cell) {\r\n\t\t\t$count_cells++;\r\n\t\t}\r\n\t\tif($count_cells === 1) {\r\n\t\t\t$query = '//' . ReTidy::get_html_namespace() . 'table';\r\n\t\t\t$tables_in_single_cell = $this->xpath->query($query, $table);\r\n\t\t\t$count_tables_in_single_cell = 0;\r\n\t\t\tforeach($tables_in_single_cell as $table_in_single_cell) {\r\n\t\t\t\t$count_tables_in_single_cell++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif($count_tables_in_single_cell > 0) {\r\n\t\t\t\tReTidy::DOM_strip_one_cell_table($table);\r\n\t\t\t}\r\n\t\t}*/\r\n\t\t\r\n\t\t/*\r\n\t\t// take \"captions\" out of tables\r\n\t\t$query = ReTidy::get_html_namespace() . 'thead';\r\n\t\t$theads = $this->xpath->query($query, $table);\r\n\t\tforeach($theads as $thead) {\r\n\t\t\t$query = ReTidy::get_html_namespace() . 'tr[1]';\r\n\t\t\t$first_tr_in_theads = $this->xpath->query($query, $thead);\r\n\t\t\tforeach($first_tr_in_theads as $first_tr_in_thead) {\r\n\t\t\t\t// (there should only be one <thead> and only one first <tr> therein.\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($first_tr_in_thead) {\r\n\t\t\t$first_tr_table = $first_tr_in_thead;\r\n\t\t} else {\r\n\t\t\t$query = ReTidy::get_html_namespace() . 'tr[1]';\r\n\t\t\t$first_tr_tables = $this->xpath->query($query, $table);\r\n\t\t\tforeach($first_tr_tables as $first_tr_table) {\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t$query = ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'th';\r\n\t\t$cells_in_first_tr = $this->xpath->query($query, $first_tr_table);\r\n\t\tforeach($cells_in_first_tr as $cell_in_first_tr) {\r\n\t\t\t$count429++;\r\n\t\t}\r\n\t\tif(strpos(trim(ReTidy::tagless($first_tr_table)), \"Table\") === 0 && $count429 === 1) {\r\n\t\t\t// then we want to take the caption out of the table\r\n\t\t\tif($thead) {\r\n\t\t\t\t// not sure if this is right since a thead could encompass many rows.\r\n\t\t\t\t//$thead->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\t// so:\r\n\t\t\t\t//$thead->setAttribute(\"stripme\", \"y\");\r\n\t\t\t\t//ReTidy::DOM_strip_node($thead);\r\n\t\t\t\t// maybe we do not want to do this at all\r\n\t\t\t}\r\n\t\t\tif($this->config['turn_captions_into'] === 'paragraphs') {\r\n\t\t\t\t$new_node = ReTidy::firstElementChild($first_tr_table)->cloneNode(true);\r\n\t\t\t\t$ps_in_new_node = $this->xpath->query('.//' . ReTidy::get_html_namespace() . 'p', $new_node);\r\n\t\t\t\t$number_of_ps = 0;\r\n\t\t\t\tforeach($ps_in_new_node as $index356435 => $value356435) {\r\n\t\t\t\t\tif($index356435 === 0) {\r\n\t\t\t\t\t\t$first_p_in_new_node = $value356435;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$number_of_ps++;\r\n\t\t\t\t}\r\n\t\t\t\tif($number_of_ps > 0) {\r\n\t\t\t\t\tif($number_of_ps === 1) {\r\n\t\t\t\t\t\tif(ReTidy::areConflationaryIgnoringWhiteSpace($new_node, $first_p_in_new_node)) {\r\n\t\t\t\t\t\t\t// it is unlikely but possible to have one paragraph that is not conflationary with the cell.\r\n\t\t\t\t\t\t\t$new_node = $first_p_in_new_node->cloneNode(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tprint(\"deal with one non-conflationary paragraph in the cell 43490434<br>\\r\\n\");\r\n\t\t\t\t\t\t\tprint(\"cell: \");var_dump(ReTidy::DOM_getNodeString($new_node));\r\n\t\t\t\t\t\t\texit(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tprint(\"deal with more than one paragraph in a table caption 43490435<br>\\r\\n\");\r\n\t\t\t\t\t\tprint(\"cell: \");var_dump(ReTidy::DOM_getNodeString($new_node));\r\n\t\t\t\t\t\texit(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$new_node->setAttribute('newtag', 'p');\r\n\t\t\t\t}\r\n\t\t\t\t$first_tr_table->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\tforeach($new_node->attributes as $attribute) {\r\n\t\t\t\t\t$attribute->nodeValue = \"stripme\";\r\n\t\t\t\t}\r\n\t\t\t\t$new_node->insertBefore(new DOMText('XXX9o9NewTagBeginXXXstrong9o9XXX'), $new_node->firstChild);\r\n\t\t\t\t$new_node->appendChild(new DOMText('XXX9o9NewTagEndXXXstrong9o9XXX'));\r\n\t\t\t\t$table->parentNode->insertBefore($new_node, $table);\r\n\t\t\t} elseif($this->config['turn_captions_into'] === 'captions') {\r\n\t\t\t\t$first_tr_table->setAttribute(\"stripme\", \"y\");\r\n\t\t\t\tReTidy::DOM_strip_node($first_tr_table);\r\n\t\t\t\tif($cell_in_first_tr->hasAttributes()) {\r\n\t\t\t\t\tforeach($cell_in_first_tr->attributes as $attribute) {\r\n\t\t\t\t\t\t$attribute->nodeValue = \"stripme\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$cell_in_first_tr->setAttribute('newtag', 'caption');\r\n\t\t\t\t$cell_in_first_tr->setAttribute('style', 'text-align: left;');\r\n\t\t\t\t$cell_in_first_tr->insertBefore(new DOMText(\"XXX9o9NewTagBeginXXXstrong9o9XXX\"), $cell_in_first_tr->firstChild);\r\n\t\t\t\t$cell_in_first_tr->appendChild(new DOMText(\"XXX9o9NewTagEndXXXstrong9o9XXX\"));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t//$previousElement = ReTidy::previousElement($table);\r\n\t\t\t$previousElement = ReTidy::previousElementIgnoringNesting($table);\r\n\t\t\t$tagless = trim(ReTidy::tagless($previousElement));\r\n\t\t\tpreg_match('/Table(au){0,1} [0-9]*:/is', $tagless, $matches45089);\r\n\t\t\tif(strpos($tagless, $matches45089[0]) === 0 && $previousElement->nodeName === \"p\") {\r\n\t\t\t\tif($this->config['turn_captions_into'] === 'captions') {\r\n\t\t\t\t\t$new_node = $previousElement->cloneNode(true);\r\n\t\t\t\t\t$previousElement->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\t\tif($new_node->hasAttributes()) {\r\n\t\t\t\t\t\tforeach($new_node->attributes as $attribute) {\r\n\t\t\t\t\t\t\t$attribute->nodeValue = \"stripme\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$new_node->setAttribute('newtag', 'caption');\r\n\t\t\t\t\t$new_node->setAttribute('style', 'text-align: left;');\r\n\t\t\t\t\t$new_node->insertBefore(new DOMText(\"XXX9o9NewTagBeginXXXstrong9o9XXX\"), $new_node->firstChild);\r\n\t\t\t\t\t$new_node->appendChild(new DOMText(\"XXX9o9NewTagEndXXXstrong9o9XXX\"));\r\n\t\t\t\t\tif($thead) {\r\n\t\t\t\t\t\t$table->insertBefore($new_node, $thead);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$table->insertBefore($new_node, $first_tr_table);\r\n\t\t\t\t\t}\r\n\t\t\t\t} elseif($this->config['turn_captions_into'] === 'paragraphs') {\r\n\t\t\t\t\t$query = './/' . ReTidy::get_html_namespace() . 'strong';\r\n\t\t\t\t\t$strongs735 = $this->xpath->query($query, $previousElement);\r\n\t\t\t\t\t$found_strong735 = false;\r\n\t\t\t\t\tforeach($strongs735 as $strong735) {\r\n\t\t\t\t\t\t$found_strong735 = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!$found_strong735) {\r\n\t\t\t\t\t\t$previousElement->insertBefore(new DOMText(\"XXX9o9NewTagBeginXXXstrong9o9XXX\"), $previousElement->firstChild);\r\n\t\t\t\t\t\t$previousElement->appendChild(new DOMText(\"XXX9o9NewTagEndXXXstrong9o9XXX\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// take bottom table notes (source information, etc...) out of tables\r\n\t\t// needs work to properly identify only bottom table notes...\r\n\t\t$query = ReTidy::get_html_namespace() . 'tfoot';\r\n\t\t$tfoots = $this->xpath->query($query, $table);\r\n\t\tforeach($tfoots as $tfoot) {\r\n\t\t\t$query = ReTidy::get_html_namespace() . 'tr[last()]';\r\n\t\t\t$first_tr_in_tfoots = $this->xpath->query($query, $tfoot);\r\n\t\t\tforeach($first_tr_in_tfoots as $first_tr_in_tfoot) {\r\n\t\t\t\t// (there should only be one <tfoot> and only one first <tr> therein.\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($first_tr_in_tfoot) {\r\n\t\t\t$last_tr_table = $first_tr_in_tfoot;\r\n\t\t} else {\r\n\t\t\t$query = ReTidy::get_html_namespace() . 'tr[last()]';\r\n\t\t\t$last_tr_tables = $this->xpath->query($query, $table);\r\n\t\t\tforeach($last_tr_tables as $last_tr_table) { }\r\n\t\t}\r\n\t\t$query = ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'th';\r\n\t\t$cells_in_last_tr = $this->xpath->query($query, $last_tr_table);\r\n\t\t$count430 = 0;\r\n\t\tforeach($cells_in_last_tr as $cell_in_last_tr) {\r\n\t\t\t$count430++;\r\n\t\t}\r\n\t\t$tagless = ReTidy::tagless($cell_in_last_tr);\r\n\t\tif($count430 === 1 && (stripos(trim($tagless), \"source\") === 0 || ReTidy::hasABulletForThePurposesOfTableSourceInformation(trim($tagless)))) {\r\n\t\t\t// then we want to take the table notes out of the table\r\n\t\t\t$last_tr_table->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t$new_node = ReTidy::lastElementChild($last_tr_table)->cloneNode(true);\r\n\t\t\tforeach($new_node->attributes as $attribute) {\r\n\t\t\t\t$attribute->nodeValue = \"stripme\";\r\n\t\t\t}\r\n\t\t\t$new_node->setAttribute('newtag', 'div');\r\n\t\t\tif($this->config['table_note_size'] == '80percent') {\r\n\t\t\t\t//$new_node->setAttribute('class', 'fontSize80');\r\n\t\t\t\t// the file is not necessarily CLF2\r\n\t\t\t\t$new_node->setAttribute('style', 'font-size: 80%;');\r\n\t\t\t}\r\n\t\t\t//if($border_attribute !== false) { // ???\r\n\t\t\t//\tif($border_attribute->nodeValue === 0) {\r\n\t\t\t//\t\t// do nothing\r\n\t\t\t//\t} else {\r\n\t\t\t//\t\tReTidy::addStyleWithoutOverwrite($new_node, \"border: \" . $border_attribute->nodeValue . \"px solid black;\");\r\n\t\t\t//\t}\r\n\t\t\t//}\r\n\t\t\t$table->parentNode->insertBefore($new_node, $table->nextSibling);\r\n\t\t}\r\n\t\t*/\r\n\t\t$query = './/' . ReTidy::get_html_namespace() . 'tr';\r\n\t\t$trs = $this->xpath->query($query, $table);\r\n\t\t// another case that we would want to merge in: when for some number of columns; in each row out of these columns,\r\n\t\t// there is only content in one of the cells... not necessarily; empty cells could be considered data.\r\n\t\t/*\r\n\t\t\r\n\t\t// merge cells\r\n\t\t// check if this table is a difficult one that we want to avoid\r\n\t\t$proceed_with_merging = true;\r\n\t\tforeach($trs as $tr) {\r\n\t\t\t$query = ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'th';\r\n\t\t\t$cells = $this->xpath->query($query, $tr);\r\n\t\t\t$count_cells_in_row = 0;\r\n\t\t\tforeach($cells as $cell) {\r\n\t\t\t\t$colspan_amount = ReTidy::getColspan($cell);\r\n\t\t\t\twhile($colspan_amount > 1) {\r\n\t\t\t\t\t$colspan_amount--;\r\n\t\t\t\t\t$count_cells_in_row++;\r\n\t\t\t\t}\r\n\t\t\t\t$count_cells_in_row++;\r\n\t\t\t}\r\n\t\t\tif($count_cells_in_row !== $this->table_width) {\r\n\t\t\t\t$proceed_with_merging = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($proceed_with_merging) {\r\n\t\t\tforeach($trs as $tr) {\r\n\t\t\t\t// merge cells containing text that belongs in the same cell:\r\n\t\t\t\t// criteria for determining if cells should be joined:\r\n\t\t\t\t\t// * the text content of cells in a column that should be joined is of about the same length \r\n\t\t\t\t\t// (because a new cell exists where the text should simply wrap)?\r\n\t\t\t\t\t// * merging should begin at a row that has content in every cell?\r\n\t\t\t\t\t// * merging should end at the row before one where it could begin or at the end of the table\r\n\t\t\t\t\r\n\t\t\t\t// to simplify matters, we choose in rows without any rowspan or colspan\r\n\t\t\t\t// although we may want to consider rowspan later (because of the case where \"one part of a column\r\n\t\t\t\t// that should be joined is already joined\")\r\n\t\t\t\t$query = ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'th';\r\n\t\t\t\t$tr_cells = $cells = $this->xpath->query($query, $tr);\r\n\t\t\t\t$number_cells_in_row = 0;\r\n\t\t\t\tforeach($cells as $cell) {\r\n\t\t\t\t\t$number_cells_in_row++;\r\n\t\t\t\t}\r\n\t\t\t\tif($number_cells_in_row === $this->table_width) {\r\n\t\t\t\t\t$cells_in_this_row_have_content = true;\r\n\t\t\t\t\tforeach($cells as $cell) {\r\n\t\t\t\t\t\tif(ReTidy::isEmptyTag($cell)) {\r\n\t\t\t\t\t\t\t$cells_in_this_row_have_content = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif($cells_in_this_row_have_content) {\r\n\t\t\t\t\t\t// then this is a candidate for merging so check the criteria\r\n\t\t\t\t\t\t// check if the text content in the cells is about the same length:\r\n\t\t\t\t\t\t// check if the cells look like they should be merged to a similar row or the end of the table:\r\n\t\t\t\t\t\t$nextElement = $tr;\r\n\t\t\t\t\t\twhile($nextElement = ReTidy::nextElement($nextElement)) {\r\n\t\t\t\t\t\t\t$query = ReTidy::get_html_namespace() . 'td | ' . ReTidy::get_html_namespace() . 'th';\r\n\t\t\t\t\t\t\t$cells4 = $this->xpath->query($query, $nextElement);\r\n\t\t\t\t\t\t\t$number_cells_in_row4 = 0;\r\n\t\t\t\t\t\t\tforeach($cells4 as $cell4) {\r\n\t\t\t\t\t\t\t\t$number_cells_in_row4++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif($number_cells_in_row4 === $this->table_width) {\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$cells_in_this_row_have_content4 = true;\r\n\t\t\t\t\t\t\t\tforeach($cells4 as $cell4) {\r\n\t\t\t\t\t\t\t\t\tif(ReTidy::isEmptyTag($cell4)) {\r\n\t\t\t\t\t\t\t\t\t\t$cells_in_this_row_have_content4 = false;\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\tif($cells_in_this_row_have_content4) {\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$element_cell_count = 0;\r\n\t\t\t\t\t\t\t\tforeach($cells4 as $element_cell) {\r\n\t\t\t\t\t\t\t\t\t$element_cell_count++;\r\n\t\t\t\t\t\t\t\t\t$tr_cell_count = 0;\r\n\t\t\t\t\t\t\t\t\tforeach($tr_cells as $tr_cell) {\r\n\t\t\t\t\t\t\t\t\t\t$tr_cell_count++;\r\n\t\t\t\t\t\t\t\t\t\tif($tr_cell_count === $element_cell_count) {\r\n\t\t\t\t\t\t\t\t\t\t\t//print(\"tr_cell\" . htmlentities(ReTidy::DOM_getNodeString($tr_cell)) . \"<br>\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t\tif($element_cell->hasChildNodes()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif(!ReTidy::isEmptyTag($element_cell)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//$tr_cell->nodeValue = ReTidy::decode_for_DOM($tr_cell->nodeValue) . \" \";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$tr_cell->nodeValue .= \" \";\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$tr_cell->appendChild(new DOMText(ReTidy::DOM_decoded_for_DOM_child_of($element_cell)));\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$element_cell->nodeValue = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$element_cell->parentNode->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\t// (2011-10-26) we are doing very little table cleaning by now, due simply to the variety of ways <table>s may be misused (or possibly my lack of DOM coding skills)\r\n\t\t/*\r\n\t\t// eliminate empty rows then reduce rowspan on previous (along their column) cells\r\n\t\tforeach($trs as $tr) {\r\n\t\t\tif(ReTidy::isSpace(ReTidy::tagless($tr))) {\r\n\t\t\t\t$tr->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\t//if($tr->hasChildNodes()) {\r\n\t\t\t\t//\tforeach($tr->childNodes as $child) {\r\n\t\t\t\t//\t\tif($child->nodeType === 1) {\r\n\t\t\t\t//\t\t\t$child->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\t//\t\t}\r\n\t\t\t\t//\t}\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tReTidy::DOM_build_table_grid($table);\r\n\t\t$mirrored_array = ReTidy::array_mirror($this->table_grid);\r\n\t\tforeach($mirrored_array as $index => $row) {\r\n\t\t\t$empty_row = true;\r\n\t\t\tforeach($row as $index2 => $value2) {\r\n\t\t\t\t$cell = $value2[0];\r\n\t\t\t\t//if(ReTidy::isEmpty($cell)) {\r\n\t\t\t\tif(ReTidy::isSpace(ReTidy::tagless($cell))) {\r\n\t\t\t\t\t//$last_non_spanning_cell = $cell;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$rowspan = ReTidy::getRowspan($cell);\r\n\t\t\t\tif($rowspan > 1 && $mirrored_array[$index-1][$index2][0] === $cell) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$empty_row = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif($empty_row) {\r\n\t\t\t\t//$tr = $last_non_spanning_cell->parentNode;\r\n\t\t\t\t//$tr->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\tforeach($row as $index2 => $value2) {\r\n\t\t\t\t\t$cell = $value2[0];\r\n\t\t\t\t\t$rowspan = ReTidy::getRowspan($cell);\r\n\t\t\t\t\tif($rowspan > 1) {\r\n\t\t\t\t\t\t$rowspan--;\r\n\t\t\t\t\t\tif($rowspan === 1) {\r\n\t\t\t\t\t\t\t$cell->setAttribute('rowspan', 'stripme');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$cell->setAttribute('rowspan', $rowspan);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$cell->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// eliminate empty columns then reduce colspan on previous sibling cells\r\n\t\tReTidy::DOM_build_table_grid($table);\r\n\t\tforeach($this->table_grid as $index => $column) {\r\n\t\t\t$empty_column = true;\r\n\t\t\tforeach($column as $index2 => $value2) {\r\n\t\t\t\t$cell = $value2[0];\r\n\t\t\t\t//if(ReTidy::isEmpty($cell)) {\r\n\t\t\t\tif(ReTidy::isSpace(ReTidy::tagless($cell))) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$colspan = ReTidy::getColspan($cell);\r\n\t\t\t\tif($colspan > 1 && $this->table_grid[$index-1][$index2][0] === $cell) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$empty_column = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif($empty_column) {\r\n\t\t\t\tforeach($column as $index2 => $value2) {\r\n\t\t\t\t\t$cell = $value2[0];\r\n\t\t\t\t\t$colspan = ReTidy::getColspan($cell);\r\n\t\t\t\t\tif($colspan > 1) {\r\n\t\t\t\t\t\t$colspan--;\r\n\t\t\t\t\t\tif($colspan === 1) {\r\n\t\t\t\t\t\t\t$cell->setAttribute('colspan', 'stripme');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$cell->setAttribute('colspan', $colspan);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//var_dump(ReTidy::DOM_getNodeString($cell));print(\"<br>\\r\\n\");\r\n\t\t\t\t\t\t$cell->setAttribute(\"deleteme\", \"y\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t*/\r\n\t\t\r\n\r\n\t\tReTidy::DOM_empty_ths($table);\r\n\t\t/*\r\n\t\t// remove unnecessary <tbody>\r\n\t\t//$query = ReTidy::get_html_namespace() . 'tbody';\r\n\t\t//$tbodys = $this->xpath->query($query, $table);\r\n\t\t//foreach($tbodys as $tbody) {\r\n\t\t//\tif(ReTidy::DOM_isConflationaryWithParentIgnoringWhitespace($tbody)) {\r\n\t\t//\t\t$tbody->setAttribute(\"stripme\", \"y\");\r\n\t\t//\t\tReTidy::DOM_strip_node($tbody);\r\n\t\t//\t}\r\n\t\t//}\r\n\t\t// remove empty <thead>, <tbody>, <tfoot>? no.\r\n\t\t\r\n\t\t// cell splitting\r\n\t\t// it seems to be a rare case where the program will be able to determine when cells should be split\r\n\t\t// in other words; to determine when a putative datum cell is really many data\r\n\t\t// disabled 2011-09-09\r\n\t\tforeach($trs as $tr) {\r\n\t\t\t$array_cells_to_split = array();\r\n\t\t\t$saved_p_count = 0;\r\n\t\t\t$count_cells_with_large_number_of_ps = 0;\r\n\t\t\t$cells = $this->xpath->query('.//' . ReTidy::get_html_namespace() . 'td | .//' . ReTidy::get_html_namespace() . 'th', $tr);\r\n\t\t\tforeach($cells as $cell) {\r\n\t\t\t\t$p_in_cells = $this->xpath->query('.//' . ReTidy::get_html_namespace() . 'p', $cell);\r\n\t\t\t\t$count_ps_for_this_cell = 0;\r\n\t\t\t\tforeach($p_in_cells as $p_in_cell) {\r\n\t\t\t\t\t$count_ps_for_this_cell++;\r\n\t\t\t\t}\r\n\t\t\t\tif($count_ps_for_this_cell > 4) {\r\n\t\t\t\t\tif($saved_p_count < $count_ps_for_this_cell) {\r\n\t\t\t\t\t\t$saved_p_count = $count_ps_for_this_cell;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$array_cells_to_split[] = $cell;\r\n\t\t\t\t\t$count_cells_with_large_number_of_ps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($count_cells_with_large_number_of_ps > 2) { // then do the splitting\r\n\t\t\t\tReTidy::splitCells($array_cells_to_split, $saved_p_count, 'row', $table);\r\n\t\t\t}\r\n\t\t}*/\r\n\t\treturn true;\r\n\t}", "public function getRowClass()\n {\n return ( $this->_end_date != $this->_begin_date && $this->_is_cotis) ?\n 'cotis-normal' :\n 'cotis-give';\n }", "public function resetDecorate()\n {\n $this->reset_rules = [Decorate::RESET];\n\n return $this;\n }", "function rowcolor()\n {\n static $rowclass;\n\n if (empty($rowclass)) {\n $rowclass = 1;\n }\n\n if ($rowclass == 2) {\n $rowclass = 1;\n return \"row2\";\n } else {\n $rowclass = 2;\n return \"row1\";\n }\n }", "function Clean()\n\t{\n\t\t$this->_arrRows\t\t\t\t= Array();\n\t\t$this->_arrHeader\t\t\t= Array();\n\t\t$this->_arrWidths\t\t\t= Array();\n\t\t$this->_arrAlignments\t\t= Array();\n\t\t$this->_arrLinkedTables\t\t= Array();\n\t\t$this->_bolRowHighlighting\t= FALSE;\n\t\t$this->_bolDetails\t\t\t= FALSE;\n\t\t$this->_bolToolTips\t\t\t= FALSE;\n\t\t$this->_bolLinked\t\t\t= FALSE;\n\t\t$this->_intCurrentRow\t\t= NULL;\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_schema('');\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setId_tarifa('');\n $this->setYear('');\n $this->setCantidad('');\n $this->setObserv('');\n $this->setId_serie('');\n $this->setPrimary_key($aPK);\n }", "function multiTableRow($row_attrs, $cell_data, $istitle = false) {\n\t\t$ap = html_ap();\n\t\t(isset($row_attrs['class'])) ? $row_attrs['class'] .= ' ff' : $row_attrs['class'] = 'ff';\n\t\tif ( $istitle ) {\n\t\t\t$row_attrs['class'] .= ' align-center';\n\t\t}\n\t\t$return = html_ao('tr', $row_attrs);\n\t\tfor ( $c = 0; $c < count($cell_data); $c++ ) {\n\t\t\t$locAp = html_ap();\n\t\t\t$cellAttrs = array();\n\t\t\tforeach (array_slice($cell_data[$c],1) as $k => $v) {\n\t\t\t\t$cellAttrs[$k] = $v;\n\t\t\t}\n\t\t\t(isset($cellAttrs['class'])) ? $cellAttrs['class'] .= ' ff' : $cellAttrs['class'] = 'ff';\n\t\t\t$return .= html_ao('td', $cellAttrs);\n\t\t\tif ( $istitle ) {\n\t\t\t\t$return .= html_ao('strong');\n\t\t\t}\n\t\t\t$return .= $cell_data[$c][0];\n\t\t\tif ( $istitle ) {\n\t\t\t\t$return .= html_ac(html_ap() -1);\n\t\t\t}\n\t\t\t$return .= html_ac($locAp);\n\t\t}\n\t\t$return .= html_ac($ap);\n\t\treturn $return;\n\t}", "public function reset()\n {\n parent::reset();\n $this->attr('Light');\n \n }", "protected function tableModel()\n {\n }", "public function prepareRow($row) {\n if ($row->parent_id == 0) {\n $row->parent_id = NULL;\n }\n }", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\t\t// datetime\r\n\t\t// script\r\n\t\t// user\r\n\t\t// action\r\n\t\t// table\r\n\t\t// field\r\n\t\t// keyvalue\r\n\t\t// oldvalue\r\n\t\t// newvalue\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->ViewValue = $this->datetime->CurrentValue;\r\n\t\t\t$this->datetime->ViewValue = ew_FormatDateTime($this->datetime->ViewValue, 5);\r\n\t\t\t$this->datetime->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->ViewValue = $this->script->CurrentValue;\r\n\t\t\t$this->script->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->ViewValue = $this->user->CurrentValue;\r\n\t\t\t$this->user->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->ViewValue = $this->action->CurrentValue;\r\n\t\t\t$this->action->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->ViewValue = $this->_table->CurrentValue;\r\n\t\t\t$this->_table->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->ViewValue = $this->_field->CurrentValue;\r\n\t\t\t$this->_field->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->ViewValue = $this->keyvalue->CurrentValue;\r\n\t\t\t$this->keyvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->ViewValue = $this->oldvalue->CurrentValue;\r\n\t\t\t$this->oldvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->ViewValue = $this->newvalue->CurrentValue;\r\n\t\t\t$this->newvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->LinkCustomAttributes = \"\";\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\t\t\t$this->datetime->TooltipValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->LinkCustomAttributes = \"\";\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\t\t\t$this->script->TooltipValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->LinkCustomAttributes = \"\";\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\t\t\t$this->user->TooltipValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->LinkCustomAttributes = \"\";\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\t\t\t$this->action->TooltipValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\t\t\t$this->_table->TooltipValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\t\t\t$this->_field->TooltipValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\t\t\t$this->keyvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\t\t\t$this->oldvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t\t$this->newvalue->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->EditCustomAttributes = \"\";\r\n\t\t\t$this->datetime->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->datetime->CurrentValue, 5));\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->EditCustomAttributes = \"\";\r\n\t\t\t$this->script->EditValue = ew_HtmlEncode($this->script->CurrentValue);\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->EditCustomAttributes = \"\";\r\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->EditCustomAttributes = \"\";\r\n\t\t\t$this->action->EditValue = ew_HtmlEncode($this->action->CurrentValue);\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->EditCustomAttributes = \"\";\r\n\t\t\t$this->_table->EditValue = ew_HtmlEncode($this->_table->CurrentValue);\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->EditCustomAttributes = \"\";\r\n\t\t\t$this->_field->EditValue = ew_HtmlEncode($this->_field->CurrentValue);\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->EditValue = ew_HtmlEncode($this->keyvalue->CurrentValue);\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->EditValue = ew_HtmlEncode($this->oldvalue->CurrentValue);\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->EditValue = ew_HtmlEncode($this->newvalue->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// datetime\r\n\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $tbl_profile;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$tbl_profile->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// facultyprofile_ID\n\n\t\t$tbl_profile->facultyprofile_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// faculty_ID\n\t\t$tbl_profile->faculty_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// faculty_name\n\t\t$tbl_profile->faculty_name->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_ID\n\t\t$tbl_profile->collectionPeriod_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// cu\n\t\t$tbl_profile->cu->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_ay\n\t\t$tbl_profile->collectionPeriod_ay->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_sem\n\t\t$tbl_profile->collectionPeriod_sem->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_cutOffDate\n\t\t$tbl_profile->collectionPeriod_cutOffDate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// unitID\n\t\t$tbl_profile->unitID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_homeUnit_ID\n\t\t$tbl_profile->facultyprofile_homeUnit_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_isHomeUnit\n\t\t$tbl_profile->facultyprofile_isHomeUnit->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyGroup_CHEDCode\n\t\t$tbl_profile->facultyGroup_CHEDCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyRank_ID\n\t\t$tbl_profile->facultyRank_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_sg\n\t\t$tbl_profile->facultyprofile_sg->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_annualSalary\n\t\t$tbl_profile->facultyprofile_annualSalary->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_fte\n\t\t$tbl_profile->facultyprofile_fte->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_tenureCode\n\t\t$tbl_profile->facultyprofile_tenureCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_leaveCode\n\t\t$tbl_profile->facultyprofile_leaveCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_disCHED_disciplineMajorCode_gen\n\t\t$tbl_profile->facultyprofile_disCHED_disciplineMajorCode_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// disCHED_disciplineCode_gen\n\t\t$tbl_profile->disCHED_disciplineCode_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_specificDiscipline_2_primaryTeachingLoad\n\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_basic\n\t\t$tbl_profile->facultyprofile_labHrs_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_basic\n\t\t$tbl_profile->facultyprofile_lecHrs_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_basic\n\t\t// facultyprofile_labSCH_basic\n\n\t\t$tbl_profile->facultyprofile_labSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_basic\n\t\t$tbl_profile->facultyprofile_lecSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_basic\n\t\t$tbl_profile->facultyprofile_totalSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labCr_ugrad\n\t\t$tbl_profile->facultyprofile_labCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecCr_ugrad\n\t\t$tbl_profile->facultyprofile_lecCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecCr_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalCr_ugrad\n\t\t$tbl_profile->facultyprofile_totalCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_ugrad\n\t\t$tbl_profile->facultyprofile_labHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_ugrad\n\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecHrs_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_ugrad\n\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labSCH_ugrad\n\t\t$tbl_profile->facultyprofile_labSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_ugrad\n\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecSCH_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_ugrad\n\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labCr_graduate\n\t\t$tbl_profile->facultyprofile_labCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecCr_graduate\n\t\t$tbl_profile->facultyprofile_lecCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecCr_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalCr_graduate\n\t\t$tbl_profile->facultyprofile_totalCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_graduate\n\t\t$tbl_profile->facultyprofile_labHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_graduate\n\t\t$tbl_profile->facultyprofile_lecHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecHrs_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_graduate\n\t\t$tbl_profile->facultyprofile_totalHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labSCH_graduate\n\t\t$tbl_profile->facultyprofile_labSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_graduate\n\t\t$tbl_profile->facultyprofile_lecSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecSCH_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_graduate\n\t\t$tbl_profile->facultyprofile_totalSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_researchLoad\n\t\t$tbl_profile->facultyprofile_researchLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_extensionServicesLoad\n\t\t$tbl_profile->facultyprofile_extensionServicesLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_studyLoad\n\t\t$tbl_profile->facultyprofile_studyLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_forProductionLoad\n\t\t$tbl_profile->facultyprofile_forProductionLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_administrativeLoad\n\t\t$tbl_profile->facultyprofile_administrativeLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_otherLoadCredits\n\t\t$tbl_profile->facultyprofile_otherLoadCredits->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_total_nonTeachingLoad\n\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_remarks\n\t\t$tbl_profile->facultyprofile_remarks->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_status\n\t\t$tbl_profile->collectionPeriod_status->CellCssStyle = \"white-space: nowrap;\";\n\t\tif ($tbl_profile->RowType == UP_ROWTYPE_VIEW) { // View row\n\n\t\t\t// faculty_name\n\t\t\t$tbl_profile->faculty_name->ViewValue = $tbl_profile->faculty_name->CurrentValue;\n\t\t\t$tbl_profile->faculty_name->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyGroup_CHEDCode\n\t\t\tif (strval($tbl_profile->facultyGroup_CHEDCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`facultyGroup_CHEDCode` = '\" . up_AdjustSql($tbl_profile->facultyGroup_CHEDCode->CurrentValue) . \"'\";\n\t\t\t$sSqlWrk = \"SELECT `facultyGroup_description` FROM `ref_facultygroup`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `facultyGroup_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = $rswrk->fields('facultyGroup_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = $tbl_profile->facultyGroup_CHEDCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyRank_ID\n\t\t\tif (strval($tbl_profile->facultyRank_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`facultyRank_ID` = \" . up_AdjustSql($tbl_profile->facultyRank_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `facultyRank_UPRank` FROM `ref_facultyrank`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `facultyRank_UPRank` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = $rswrk->fields('facultyRank_UPRank');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = $tbl_profile->facultyRank_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyRank_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_sg\n\t\t\t$tbl_profile->facultyprofile_sg->ViewValue = $tbl_profile->facultyprofile_sg->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_sg->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_annualSalary\n\t\t\t$tbl_profile->facultyprofile_annualSalary->ViewValue = $tbl_profile->facultyprofile_annualSalary->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_annualSalary->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_tenureCode\n\t\t\tif (strval($tbl_profile->facultyprofile_tenureCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`tenureCode_ID` = \" . up_AdjustSql($tbl_profile->facultyprofile_tenureCode->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `tenureCode_description` FROM `ref_tenurecode`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `tenureCode_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = $rswrk->fields('tenureCode_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = $tbl_profile->facultyprofile_tenureCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_leaveCode\n\t\t\tif (strval($tbl_profile->facultyprofile_leaveCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`leaveCode_ID` = \" . up_AdjustSql($tbl_profile->facultyprofile_leaveCode->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `leaveCode_description` FROM `ref_leavecode`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `leaveCode_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = $rswrk->fields('leaveCode_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = $tbl_profile->facultyprofile_leaveCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t\tif (strval($tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`disCHED_disciplineSpecific_code` = \" . up_AdjustSql($tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `disCHED_disciplineSpecific_nameList` FROM `ref_disciplinechedcodes_minor`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `disCHED_disciplineSpecific_nameList` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = $rswrk->fields('disCHED_disciplineSpecific_nameList');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = $tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_2_primaryTeachingLoad\n\t\t\tif (strval($tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`disCHED_disciplineSpecific_code` = \" . up_AdjustSql($tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `disCHED_disciplineSpecific_nameList` FROM `ref_disciplinechedcodes_minor`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `disCHED_disciplineSpecific_nameList` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = $rswrk->fields('disCHED_disciplineSpecific_nameList');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = $tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_basic\n\t\t\t$tbl_profile->facultyprofile_labHrs_basic->ViewValue = $tbl_profile->facultyprofile_labHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_basic\n\t\t\t$tbl_profile->facultyprofile_lecHrs_basic->ViewValue = $tbl_profile->facultyprofile_lecHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_basic\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->ViewValue = $tbl_profile->facultyprofile_totalHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_basic\n\t\t\t$tbl_profile->facultyprofile_labSCH_basic->ViewValue = $tbl_profile->facultyprofile_labSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_basic\n\t\t\t$tbl_profile->facultyprofile_lecSCH_basic->ViewValue = $tbl_profile->facultyprofile_lecSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_basic\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->ViewValue = $tbl_profile->facultyprofile_totalSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_labCr_ugrad->ViewValue = $tbl_profile->facultyprofile_labCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecCr_ugrad->ViewValue = $tbl_profile->facultyprofile_lecCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->ViewValue = $tbl_profile->facultyprofile_totalCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_labHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_labHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_lecHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_totalHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_labSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_labSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_lecSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_totalSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labCr_graduate\n\t\t\t$tbl_profile->facultyprofile_labCr_graduate->ViewValue = $tbl_profile->facultyprofile_labCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecCr_graduate\n\t\t\t$tbl_profile->facultyprofile_lecCr_graduate->ViewValue = $tbl_profile->facultyprofile_lecCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecCr_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalCr_graduate\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->ViewValue = $tbl_profile->facultyprofile_totalCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_labHrs_graduate->ViewValue = $tbl_profile->facultyprofile_labHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_lecHrs_graduate->ViewValue = $tbl_profile->facultyprofile_lecHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->ViewValue = $tbl_profile->facultyprofile_totalHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_labSCH_graduate->ViewValue = $tbl_profile->facultyprofile_labSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_lecSCH_graduate->ViewValue = $tbl_profile->facultyprofile_lecSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->ViewValue = $tbl_profile->facultyprofile_totalSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_researchLoad\n\t\t\t$tbl_profile->facultyprofile_researchLoad->ViewValue = $tbl_profile->facultyprofile_researchLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_researchLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_extensionServicesLoad\n\t\t\t$tbl_profile->facultyprofile_extensionServicesLoad->ViewValue = $tbl_profile->facultyprofile_extensionServicesLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_extensionServicesLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_studyLoad\n\t\t\t$tbl_profile->facultyprofile_studyLoad->ViewValue = $tbl_profile->facultyprofile_studyLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_studyLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_forProductionLoad\n\t\t\t$tbl_profile->facultyprofile_forProductionLoad->ViewValue = $tbl_profile->facultyprofile_forProductionLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_forProductionLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_administrativeLoad\n\t\t\t$tbl_profile->facultyprofile_administrativeLoad->ViewValue = $tbl_profile->facultyprofile_administrativeLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_administrativeLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_otherLoadCredits\n\t\t\t$tbl_profile->facultyprofile_otherLoadCredits->ViewValue = $tbl_profile->facultyprofile_otherLoadCredits->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_otherLoadCredits->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_total_nonTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->ViewValue = $tbl_profile->facultyprofile_total_nonTeachingLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->ViewValue = $tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_remarks\n\t\t\t$tbl_profile->facultyprofile_remarks->ViewValue = $tbl_profile->facultyprofile_remarks->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_remarks->ViewCustomAttributes = \"\";\n\n\t\t\t// faculty_name\n\t\t\t$tbl_profile->faculty_name->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->faculty_name->HrefValue = \"\";\n\t\t\t$tbl_profile->faculty_name->TooltipValue = \"\";\n\n\t\t\t// facultyGroup_CHEDCode\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->TooltipValue = \"\";\n\n\t\t\t// facultyRank_ID\n\t\t\t$tbl_profile->facultyRank_ID->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyRank_ID->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyRank_ID->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_tenureCode\n\t\t\t$tbl_profile->facultyprofile_tenureCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_tenureCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_tenureCode->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_leaveCode\n\t\t\t$tbl_profile->facultyprofile_leaveCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_leaveCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_leaveCode->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_basic\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_basic\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalCr_graduate\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_total_nonTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($tbl_profile->RowType <> UP_ROWTYPE_AGGREGATEINIT)\n\t\t\t$tbl_profile->Row_Rendered();\n\t}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// rid\n\t\t$this->rid->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->rid->EditCustomAttributes = \"\";\n\t\t$this->rid->EditValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->usn->EditCustomAttributes = \"\";\n\t\t$this->usn->EditValue = $this->usn->CurrentValue;\n\t\t$this->usn->PlaceHolder = ew_RemoveHtml($this->usn->FldCaption());\n\n\t\t// name\n\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->name->EditCustomAttributes = \"\";\n\t\t$this->name->EditValue = $this->name->CurrentValue;\n\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption());\n\n\t\t// sc1\n\t\t$this->sc1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc1->EditCustomAttributes = \"\";\n\t\t$this->sc1->EditValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->PlaceHolder = ew_RemoveHtml($this->sc1->FldCaption());\n\n\t\t// s1\n\t\t$this->s1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s1->EditCustomAttributes = \"\";\n\t\t$this->s1->EditValue = $this->s1->CurrentValue;\n\t\t$this->s1->PlaceHolder = ew_RemoveHtml($this->s1->FldCaption());\n\n\t\t// sc2\n\t\t$this->sc2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc2->EditCustomAttributes = \"\";\n\t\t$this->sc2->EditValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->PlaceHolder = ew_RemoveHtml($this->sc2->FldCaption());\n\n\t\t// s2\n\t\t$this->s2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s2->EditCustomAttributes = \"\";\n\t\t$this->s2->EditValue = $this->s2->CurrentValue;\n\t\t$this->s2->PlaceHolder = ew_RemoveHtml($this->s2->FldCaption());\n\n\t\t// sc3\n\t\t$this->sc3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc3->EditCustomAttributes = \"\";\n\t\t$this->sc3->EditValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->PlaceHolder = ew_RemoveHtml($this->sc3->FldCaption());\n\n\t\t// s3\n\t\t$this->s3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s3->EditCustomAttributes = \"\";\n\t\t$this->s3->EditValue = $this->s3->CurrentValue;\n\t\t$this->s3->PlaceHolder = ew_RemoveHtml($this->s3->FldCaption());\n\n\t\t// sc4\n\t\t$this->sc4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc4->EditCustomAttributes = \"\";\n\t\t$this->sc4->EditValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->PlaceHolder = ew_RemoveHtml($this->sc4->FldCaption());\n\n\t\t// s4\n\t\t$this->s4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s4->EditCustomAttributes = \"\";\n\t\t$this->s4->EditValue = $this->s4->CurrentValue;\n\t\t$this->s4->PlaceHolder = ew_RemoveHtml($this->s4->FldCaption());\n\n\t\t// sc5\n\t\t$this->sc5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc5->EditCustomAttributes = \"\";\n\t\t$this->sc5->EditValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->PlaceHolder = ew_RemoveHtml($this->sc5->FldCaption());\n\n\t\t// s5\n\t\t$this->s5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s5->EditCustomAttributes = \"\";\n\t\t$this->s5->EditValue = $this->s5->CurrentValue;\n\t\t$this->s5->PlaceHolder = ew_RemoveHtml($this->s5->FldCaption());\n\n\t\t// sc6\n\t\t$this->sc6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc6->EditCustomAttributes = \"\";\n\t\t$this->sc6->EditValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->PlaceHolder = ew_RemoveHtml($this->sc6->FldCaption());\n\n\t\t// s6\n\t\t$this->s6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s6->EditCustomAttributes = \"\";\n\t\t$this->s6->EditValue = $this->s6->CurrentValue;\n\t\t$this->s6->PlaceHolder = ew_RemoveHtml($this->s6->FldCaption());\n\n\t\t// sc7\n\t\t$this->sc7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc7->EditCustomAttributes = \"\";\n\t\t$this->sc7->EditValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->PlaceHolder = ew_RemoveHtml($this->sc7->FldCaption());\n\n\t\t// s7\n\t\t$this->s7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s7->EditCustomAttributes = \"\";\n\t\t$this->s7->EditValue = $this->s7->CurrentValue;\n\t\t$this->s7->PlaceHolder = ew_RemoveHtml($this->s7->FldCaption());\n\n\t\t// sc8\n\t\t$this->sc8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc8->EditCustomAttributes = \"\";\n\t\t$this->sc8->EditValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->PlaceHolder = ew_RemoveHtml($this->sc8->FldCaption());\n\n\t\t// s8\n\t\t$this->s8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s8->EditCustomAttributes = \"\";\n\t\t$this->s8->EditValue = $this->s8->CurrentValue;\n\t\t$this->s8->PlaceHolder = ew_RemoveHtml($this->s8->FldCaption());\n\n\t\t// total\n\t\t$this->total->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->total->EditCustomAttributes = \"\";\n\t\t$this->total->EditValue = $this->total->CurrentValue;\n\t\t$this->total->PlaceHolder = ew_RemoveHtml($this->total->FldCaption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\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 setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_region('');\n $this->setRegion('');\n $this->setNombre_region('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $t_tinbai_mainsite;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $t_tinbai_mainsite->ViewUrl();\n\t\t$this->EditUrl = $t_tinbai_mainsite->EditUrl();\n\t\t$this->InlineEditUrl = $t_tinbai_mainsite->InlineEditUrl();\n\t\t$this->CopyUrl = $t_tinbai_mainsite->CopyUrl();\n\t\t$this->InlineCopyUrl = $t_tinbai_mainsite->InlineCopyUrl();\n\t\t$this->DeleteUrl = $t_tinbai_mainsite->DeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$t_tinbai_mainsite->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// FK_CONGTY_ID\n\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_CONGTY_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_CONGTY_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_CONGTY_ID->EditAttrs = array();\n\n\t\t// FK_DMGIOITHIEU_ID\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditAttrs = array();\n\n\t\t// FK_DMTUYENSINH_ID\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditAttrs = array();\n\n\t\t// FK_DTSVTUONGLAI_ID\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditAttrs = array();\n\n\t\t// FK_DTSVDANGHOC_ID\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditAttrs = array();\n\n\t\t// FK_DTCUUSV_ID\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTCUUSV_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTCUUSV_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTCUUSV_ID->EditAttrs = array();\n\n\t\t// FK_DTDOANHNGHIEP_ID\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditAttrs = array();\n\n\t\t// C_TITLE\n\t\t$t_tinbai_mainsite->C_TITLE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_TITLE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_TITLE->CellAttrs = array(); $t_tinbai_mainsite->C_TITLE->ViewAttrs = array(); $t_tinbai_mainsite->C_TITLE->EditAttrs = array();\n\n\t\t// C_HIT_MAINSITE\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_HIT_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_HIT_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_HIT_MAINSITE->EditAttrs = array();\n\n\t\t// C_NEW_MYSEFLT\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CellCssStyle = \"\"; $t_tinbai_mainsite->C_NEW_MYSEFLT->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CellAttrs = array(); $t_tinbai_mainsite->C_NEW_MYSEFLT->ViewAttrs = array(); $t_tinbai_mainsite->C_NEW_MYSEFLT->EditAttrs = array();\n\n\t\t// C_COMMENT_MAINSITE\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_COMMENT_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_COMMENT_MAINSITE->EditAttrs = array();\n\n\t\t// C_ORDER_MAINSITE\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ORDER_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_ORDER_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_ORDER_MAINSITE->EditAttrs = array();\n\n\t\t// C_STATUS_MAINSITE\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_STATUS_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_STATUS_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_STATUS_MAINSITE->EditAttrs = array();\n\n\t\t// C_VISITOR_MAINSITE\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_VISITOR_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_VISITOR_MAINSITE->EditAttrs = array();\n\n\t\t// C_ACTIVE_MAINSITE\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditAttrs = array();\n\n\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditAttrs = array();\n\n\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditAttrs = array();\n\n\t\t// C_NOTE\n\t\t$t_tinbai_mainsite->C_NOTE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_NOTE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_NOTE->CellAttrs = array(); $t_tinbai_mainsite->C_NOTE->ViewAttrs = array(); $t_tinbai_mainsite->C_NOTE->EditAttrs = array();\n\n\t\t// C_USER_ADD\n\t\t$t_tinbai_mainsite->C_USER_ADD->CellCssStyle = \"\"; $t_tinbai_mainsite->C_USER_ADD->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_USER_ADD->CellAttrs = array(); $t_tinbai_mainsite->C_USER_ADD->ViewAttrs = array(); $t_tinbai_mainsite->C_USER_ADD->EditAttrs = array();\n\n\t\t// C_ADD_TIME\n\t\t$t_tinbai_mainsite->C_ADD_TIME->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ADD_TIME->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ADD_TIME->CellAttrs = array(); $t_tinbai_mainsite->C_ADD_TIME->ViewAttrs = array(); $t_tinbai_mainsite->C_ADD_TIME->EditAttrs = array();\n\n\t\t// C_USER_EDIT\n\t\t$t_tinbai_mainsite->C_USER_EDIT->CellCssStyle = \"\"; $t_tinbai_mainsite->C_USER_EDIT->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_USER_EDIT->CellAttrs = array(); $t_tinbai_mainsite->C_USER_EDIT->ViewAttrs = array(); $t_tinbai_mainsite->C_USER_EDIT->EditAttrs = array();\n\n\t\t// C_EDIT_TIME\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->CellCssStyle = \"\"; $t_tinbai_mainsite->C_EDIT_TIME->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->CellAttrs = array(); $t_tinbai_mainsite->C_EDIT_TIME->ViewAttrs = array(); $t_tinbai_mainsite->C_EDIT_TIME->EditAttrs = array();\n\n\t\t// FK_EDITOR_ID\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_EDITOR_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_EDITOR_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_EDITOR_ID->EditAttrs = array();\n\t\tif ($t_tinbai_mainsite->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// PK_TINBAI_ID\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->ViewValue = $t_tinbai_mainsite->PK_TINBAI_ID->CurrentValue;\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_CONGTY_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_MACONGTY` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = $rswrk->fields('C_TENCONGTY');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = $t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_DANHMUCGIOITHIEU` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_danhmucgioithieu`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_DANHMUCTUYENSINH` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_danhmuctuyensinh`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = $t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTSVTUONGLAI_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_svtuonglai`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTSVDANGHOC_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_svdanghoc`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTCUUSV_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_cuusv`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = $t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTDOANHNGHIEP_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_doanhnghiep`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->ViewValue = $t_tinbai_mainsite->C_TITLE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_TITLE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_HIT_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue = \"\";\n\t\t\t\t$arwrk = explode(\",\", strval($t_tinbai_mainsite->C_HIT_MAINSITE->CurrentValue));\n\t\t\t\tfor ($ari = 0; $ari < count($arwrk); $ari++) {\n\t\t\t\t\tswitch (trim($arwrk[$ari])) {\n\t\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Không nổi bật\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật trang chủ\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật tuyển sinh\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"3\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật sinh viên đang học\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= trim($arwrk[$ari]);\n\t\t\t\t\t}\n\t\t\t\t\tif ($ari < count($arwrk)-1) $t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\tif (strval($t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = \"Không là tin chúng tôi\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = \"<b>Tin chúng tôi </b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = $t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewCustomAttributes = \"\";\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = \"Không cho phép\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = \"<b>Cho phép comnet</b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = $t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue = $t_tinbai_mainsite->C_ORDER_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Không duyệt <img src=\\\"images/alert-small.gif\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Đã duyệt <img src=\\\"images/icon-xac-thuc.jpg\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Chờ duyệt <img src=\\\"images/new.gif\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = $t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewValue = $t_tinbai_mainsite->C_VISITOR_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = \"<span style=\\\"color:red\\\">Không xuất bản</span>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = \"<b>Xuất bản</b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = $t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue = $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->ViewValue = $t_tinbai_mainsite->C_NOTE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_NOTE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $t_tinbai_levelsite->C_USER_ADD->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->C_USER_ADD->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->C_USER_ADD->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n \n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n \n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $t_tinbai_mainsite->C_USER_ADD->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewCustomAttributes = \"\";\n\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewValue = $t_tinbai_mainsite->C_ADD_TIME->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_ADD_TIME->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewCustomAttributes = \"\";\n\n\t\t\t// C_USER_EDIT\n \n $t_tinbai_mainsite->C_USER_EDIT->ViewValue = $t_tinbai_levelsite->C_USER_EDIT->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->C_USER_ADD->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->C_USER_EDIT->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n \n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n \n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewValue = $t_tinbai_mainsite->C_USER_EDIT->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewCustomAttributes = \"\";\n \n\t\t\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewValue = $t_tinbai_mainsite->C_EDIT_TIME->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_EDIT_TIME->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewValue = $t_tinbai_mainsite->FK_EDITOR_ID->CurrentValue;\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewValue = ew_FormatNumber($t_tinbai_mainsite->FK_EDITOR_ID->ViewValue, 0, -2, -2, -2);\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_CONGTY_ID\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->TooltipValue = \"\";\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->TooltipValue = \"\";\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->TooltipValue = \"\";\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->TooltipValue = \"\";\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->TooltipValue = \"\";\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->TooltipValue = \"\";\n\n\t\t\t// C_USER_EDIT\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->TooltipValue = \"\";\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->TooltipValue = \"\";\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->TooltipValue = \"\";\n\t\t} elseif ($t_tinbai_mainsite->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// FK_CONGTY_ID\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_MACONGTY`, `C_TENCONGTY`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_congty`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_DANHMUCGIOITHIEU`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_danhmucgioithieu`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_DANHMUCTUYENSINH`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_danhmuctuyensinh`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTSVTUONGLAI_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_svtuonglai`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTSVDANGHOC_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_svdanghoc`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTCUUSV_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_cuusv`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTDOANHNGHIEP_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_doanhnghiep`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditValue = $arwrk;\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_TITLE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không là tin nổi bật\");\n\t\t\t$arwrk[] = array(\"1\", \"Tin nổi bật trang chủ\");\n\t\t\t$arwrk[] = array(\"2\", \"Tin nổi bật trang tuyển sinh\");\n\t\t\t$arwrk[] = array(\"3\", \"Tin nổi bật sinh viên đang học\");\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không \");\n\t\t\t$arwrk[] = array(\"1\", \"Tin chúng tôi\");\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->EditValue = $arwrk;\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không cho phép\");\n\t\t\t$arwrk[] = array(\"1\", \"Cho phép commnet facebook\");\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_ORDER_MAINSITE->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không duyệt\");\n\t\t\t$arwrk[] = array(\"1\", \"Đã duyệt\");\n $arwrk[] = array(\"2\", \"Chờ xét\");\n\t\t\t$arwrk[] = array(\"\", \"\");\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_VISITOR_MAINSITE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"khong active len mainsite\");\n\t\t\t$arwrk[] = array(\"1\", \"Active lenmainsite\");\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_NOTE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_USER_ADD->AdvancedSearch->SearchValue);\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_ADD_TIME->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// C_USER_EDIT\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_USER_EDIT->AdvancedSearch->SearchValue);\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_EDIT_TIME->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->EditValue = ew_HtmlEncode($t_tinbai_mainsite->FK_EDITOR_ID->AdvancedSearch->SearchValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($t_tinbai_mainsite->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$t_tinbai_mainsite->Row_Rendered();\n\t}", "public function clearAtributes() {\r\n $this->myCRUD()->clearAtributes();\r\n return $this;\r\n }" ]
[ "0.60180837", "0.5952381", "0.5921542", "0.5867666", "0.553025", "0.547629", "0.5470205", "0.5462031", "0.5430527", "0.53933954", "0.53618443", "0.53398365", "0.53094405", "0.5282539", "0.5281451", "0.527327", "0.52712494", "0.5260996", "0.525202", "0.524922", "0.5242105", "0.52365905", "0.5173351", "0.5168792", "0.5168792", "0.51683414", "0.5166992", "0.5166241", "0.51654565", "0.5131736", "0.51118994", "0.5107385", "0.5097054", "0.50903434", "0.50714195", "0.5067437", "0.5065492", "0.50639397", "0.50633156", "0.5059942", "0.5059404", "0.5047976", "0.50432587", "0.50185585", "0.5005318", "0.5001811", "0.5001707", "0.49980912", "0.4983262", "0.49810714", "0.49735826", "0.49731043", "0.49720237", "0.49664602", "0.49565053", "0.49548918", "0.49528456", "0.4951855", "0.49498996", "0.4949288", "0.49492213", "0.4947214", "0.49365866", "0.49210995", "0.49178168", "0.49158773", "0.4915717", "0.4909414", "0.49076554", "0.49070072", "0.49012887", "0.4901195", "0.4894789", "0.4894789", "0.48946175", "0.48939168", "0.48837566", "0.4883627", "0.48810425", "0.4880139", "0.48783144", "0.4873491", "0.4870701", "0.48693877", "0.48673847", "0.4859743", "0.48558387", "0.4843669", "0.48397276", "0.48358357", "0.4831319", "0.48278207", "0.48243234", "0.48216513", "0.48183674", "0.4814578", "0.4811129", "0.481072", "0.4808664" ]
0.7216974
1
Table Level Group SQL
function SqlFirstGroupField() { return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _buildGroupBy( $group );", "public function &getGroupBy();", "public function groups();", "public function groups();", "function getGroup() ;", "public function getGroup();", "public function getGroup();", "public function getGroup();", "public abstract function getGroup();", "public function group($group);", "function get_grouping_fields() {\n //field that is used to compare one record from the next\n $compare_field = sql_concat('user.lastname', \"'_'\", 'user.firstname', \"'_'\", 'user.id');\n\n //field used to order for groupings\n $order_field = sql_concat('lastname', \"'_'\", 'firstname', \"'_'\", 'userid');\n\n $cluster_label = get_string('grouping_cluster', 'rlreport_course_completion_by_cluster');\n $cluster_grouping = new table_report_grouping('cluster', 'cluster.id', $cluster_label, 'ASC',\n array('cluster.name'), 'above', 'path');\n \n $user_grouping_fields = array(\n 'user.idnumber AS useridnumber', 'user.firstname');\n $user_grouping = new table_report_grouping('groupuseridnumber', $compare_field, '', 'ASC', \n $user_grouping_fields, 'below', $order_field);\n\n //these groupings will always be used\n $result = array(\n $cluster_grouping, $user_grouping);\n\n //determine whether or not we should use the curriculum grouping\n $preferences = php_report_filtering_get_active_filter_values($this->get_report_shortname(),\n 'columns'.'_curriculum', $this->filter);\n\n $show_curriculum = true;\n if (isset($preferences['0']['value'])) {\n $show_curriculum = $preferences['0']['value'];\n }\n\n if ($show_curriculum) {\n $curriculum_label = get_string('grouping_curriculum', 'rlreport_course_completion_by_cluster');\n $result[] = new table_report_grouping('groupcurriculumid', 'curriculum.id', $curriculum_label, 'ASC', array(),\n 'below', 'curriculumname, curriculumid');\n }\n\n return $result;\n }", "function wc_tab_manager_tabs_posts_groupby( $groupby, $query ) {\n\tglobal $wpdb, $typenow;\n\n\tif ( 'wc_product_tab' === $typenow ) {\n\t\t$groupby = \"{$wpdb->posts}.ID\";\n\t}\n\n\treturn $groupby;\n}", "abstract protected function getGroupStructure();", "public function groupBy($field);", "public function groupBy($field);", "public function group(): Collection;", "public function groupBy($sql);", "function sortbygroup($col,$groupby) {\n $unique = array();\n $sorted = array();\n foreach ($col as $val) { //get all the unique values\n if (!in_array($val[$groupby],$unique)) {\n $unique[] = $val[$groupby];\n } \n }\n \n foreach($unique as $key) {\n foreach($col as $val) {//reads off the collection\n if($key == $val[$groupby]) {\n $sorted[] = $val;\n }\n }\n }\n return $sorted;\n}", "public function getGroupTables($table_name)\n {\n return $this->renderView(\n __DIR__ . DIRECTORY_SEPARATOR . 'views/group_table.php',\n [\n 'center_id' => $this->centerID,\n 'token' => $this->token,\n 'station_group_tables' => $this->tableBaseUrl,\n 'station_group_tables_config' => $this->groupTablesConfig[$table_name],\n 'group_table_name' => $table_name\n ]\n );\n }", "public function get_group_by()\n\t{\n\t\treturn NULL;\n\t}", "function groupControl() {\n $arrFunctions = array(\n 'row_up' => '$intKey-1',\n 'row_down' => '$intKey+1',\n 'row_turndown' => 'intGroups',\n 'row_turnup' => '1',\n 'row_remove' => '[$intGroups]',\n 'rule_remove' => \"[$intKey]['rule'][$grplength-1]\",\n );\n foreach($this->arrTableParameters['grps'] as $intGroup => $arrGroup) {\n foreach ($arrGroup['rule'] as $intRule => $arrRule) {\n $arrRule['field'] = stripslashes($arrRule['field']);\n if ($arrRule['field'] == $this->extKey.'_new') {\n if ($intRule==0) {\n unset($this->arrTableParameters['grps'][$intGroup]);\n } else {\n unset($this->arrTableParameters['grps'][$intGroup]['rule'][$intRule]);\n }\n }\n }\n }\n $intGroups = count($this->arrTableParameters['grps']);\n foreach ($arrFunctions as $strKey => $strValue) {\n if (is_array($this->arrTableParameters[$strKey])) {\n $intKey = key($this->arrTableParameters[$strKey]);\n if (is_array($this->arrTableParameters['rule_remove'])) {\n \t$intRule = key($this->arrTableParameters['rule_remove'][$intKey]);\n }\n if ($strKey!='row_turndown') {\n $arrTemp = $this->arrTableParameters['grps'][$intKey];\n } else {\n $arrTemp = $this->arrTableParameters['grps'][1];\n }\n if ($strKey=='row_up') {\n $this->arrTableParameters['grps'][$intKey] = $this->arrTableParameters['grps'][$intKey-1];\n } elseif ($strKey=='row_down') {\n $this->arrTableParameters['grps'][$intKey] = $this->arrTableParameters['grps'][$intKey+1];\n } elseif ($strKey=='row_turndown') {\n for ($intCounter=2;$intCounter<=$intGroups;$intCounter++) {\n $this->arrTableParameters['grps'][$intCounter-1] = $this->arrTableParameters['grps'][$intCounter];\n }\n } elseif ($strKey=='row_turnup') {\n for ($intCounter=$intGroups;$intCounter>1;$intCounter--) {\n $this->arrTableParameters['grps'][$intCounter] = $this->arrTableParameters['grps'][$intCounter-1];\n }\n } elseif ($strKey=='row_remove') {\n for ($intCounter=$intKey;$intCounter<=$intGroups;$intCounter++) {\n $this->arrTableParameters['grps'][$intCounter] = $this->arrTableParameters['grps'][$intCounter+1];\n }\n } elseif ($strKey=='rule_remove') {\n if (count($this->arrTableParameters['grps'][$intKey]['rule'])>1) {\n for ($intCounter=$intRule;$intCounter<count($this->arrTableParameters['grps'][$intKey]['rule']);$intCounter++) {\n $this->arrTableParameters['grps'][$intKey]['rule'][$intCounter] = $this->arrTableParameters['grps'][$intKey]['rule'][$intCounter+1];\n }\n }\n }\n if (in_array($strKey,array('row_up','row_down','row_turndown','row_turnup'))) {\n eval(\"\\$this->arrTableParameters['grps'][\".$strValue.\"] = \\$arrTemp;\");\n } elseif ($strKey=='row_remove') {\n unset($this->arrTableParameters['grps'][$intGroups]);\n } else {\n \tunset($this->arrTableParameters['grps'][$intKey]['rule'][count($this->arrTableParameters['grps'][$intKey]['rule'])-1]);\n }\n }\n }\n }", "public function testGroupByBaseField() {\n $this->setupTestEntities();\n\n $view = Views::getView('test_group_by_count');\n $view->setDisplay();\n // This tests that the GROUP BY portion of the query is properly formatted\n // to include the base table to avoid ambiguous field errors.\n $view->displayHandlers->get('default')->options['fields']['name']['group_type'] = 'min';\n unset($view->displayHandlers->get('default')->options['fields']['id']['group_type']);\n $this->executeView($view);\n $this->assertStringContainsString('GROUP BY entity_test.id', (string) $view->build_info['query'], 'GROUP BY field includes the base table name when grouping on the base field.');\n }", "public function getGroupByPage() {}", "function group_totals($data){\n $group_label = $data['record_params']['group_label'];\n $unique_groups = array();\n $sql_records = $data['data'];\n $sub_group_labels = $data['record_params']['sub_group_labels'];\n foreach($sql_records as $record){\n $unique_groups[] = $record->$data['record_params']['group_label'];\n }\n $unique_groups = array_unique($unique_groups);\n $records = array();\n $grand_total = array();\n $grand_total[$group_label] = 'Grand Total';\n foreach($data['record_params']['sub_group_labels'] as $sub_group_label){\n $grand_total[$sub_group_label] = '';\n }\n foreach($data['numeric'] as $numeric_label){\n $grand_total[$numeric_label] = 0;\n }\n foreach($unique_groups as $group){\n $totals = array();\n $totals[$group_label] = ''; \n $record_label = '';\n foreach($data['record_params']['sub_group_labels'] as $sub_group_label){\n $totals[$sub_group_label] = '';\n }\n foreach($data['numeric'] as $numeric_label){\n $totals[$numeric_label] = 0;\n }\n foreach($sql_records as $record){\n if($record->$group_label == $group){\n $records[] = $record;\n foreach($data['numeric'] as $numeric_label){\n if(sizeof($sub_group_labels) > 0)\n $totals[$numeric_label] = $totals[$numeric_label] + $record->$numeric_label;\n $grand_total[$numeric_label] = $grand_total[$numeric_label] + $record->$numeric_label;\n }\n }\n }\n if(sizeof($sub_group_labels) > 0){\n $totals[$group_label] = $group.' Total';\n $records[] = (object)$totals;\n }\n }\n $records[] = (object)$grand_total;\n return $records;\n }", "public function getGroupTable()\n {\n if (!$this->groupTable) {\n $sm = $this->getServiceLocator();\n\t\t\t$this->groupTable = $sm->get('Group\\Model\\GroupTable');\n }\n return $this->groupTable;\n }", "abstract protected function getGroupList() ;", "private function groupBy() {\n $this->sql .= 'GROUP BY inv_agent_id ';\n }", "public function implicitGroupby() {\n\t\treturn true;\n\t}", "public function meta(): Group;", "private function sql_groupBy()\n {\n // Get WHERE statement\n $groupBy = $this->curr_tableField;\n\n // RETURN GROUP BY statement without GROUP BY\n return $groupBy;\n }", "function grouping(){\n\n return $this->db->table('posts')\n ->groupStart()\n ->where(['post_id >'=> '25', 'post_created_at <' => '1990-01-01 00:00:00'])\n ->groupEnd()\n ->orWhere('post_author', 10)\n ->join('users', 'posts.post_author=users.user_id')\n ->get()\n ->getResult();\n }", "public static abstract function getGroupList();", "public function getUserGroupToObjectTable(): string\n {\n return $this->wpDatabase->prefix . self::USER_GROUP_TO_OBJECT_TABLE_NAME;\n }", "public function groupBy($callback);", "public function visitGroupClause(\n /*IGroupClause*/ $node) /*: mixed*/ {\n $collection = /*(string)*/$node->getCollection()->accept($this);\n $key = /*(string)*/$node->getKey()->accept($this);\n\n return 'group '.$collection.' by '.$key;\n }", "public function findGroups() {\n\t\t\n\t}", "function genTLGrp($empId) {\n $select = ['employe_table_employe_id', 'employe_table_employe_name', 'employe_table_employe_hierarchy'];\n $this->db->select($select);\n $this->db->order_by('employe_table_employe_name', 'ASC');\n\n $empInfo = $this->db->get_where('employe_table', array('under_TL_EmpId' => $empId))->result_array();\n foreach ($empInfo as $value) {\n $empArr[$value['employe_table_employe_name']] = $value;\n }\n return $empArr;\n }", "public function groupBy($columns);", "function get_group($group, $query) {\r\n $qy=db_query(\"SELECT * FROM (\".$query .\") q WHERE \".($group=='Z99'?'idCND IS NULL': \"idCND= '\".$group.\"'\"));\r\n while ($fields=db_fetch_object($qy)) {\r\n $elements[$fields->nid][]=array(\r\n '#type'=>'checkbox',\r\n '#title'=>l($fields->title,'node/'.$fields->nid),\r\n '#description'=>get_cud_description($fields->cud),\r\n '#default_value'=>1,\r\n '#parents' => array($group,$fields->nid), // per mantenre l'array dei checkbos in $form_state[$group]\r\n );\r\n $elements[$fields->nid][]=array('#value'=>'Quantit&agrave;:<b>'.$fields->qta.'<b>','#prefix'=>'<small><small><table><tr><td>','#suffix'=>'</td>');\r\n $elements[$fields->nid][]=array('#value'=>'Valore:<b>'.currencyFormat($fields->value).'<b>','#prefix'=>'<td>','#suffix'=>'</td>',);\r\n $elements[$fields->nid][]=array('#value'=>'Struttura:<b>'.get_structure($fields->struct).'<b>','#prefix'=>'<td>','#suffix'=>'</td></tr></table></small></small>',);\r\n }\r\n\r\n return $elements;\r\n}", "function skin_diff_row_newgroup( $group_name ) {\n\n$IPBHTML = \"\";\n//--starthtml--//\n\n$IPBHTML .= <<<EOF\n<tr>\n <td colspan='4' class='tablerow3'>\n <strong>{$group_name}</strong>\n </td>\nEOF;\n\n//--endhtml--//\nreturn $IPBHTML;\n}", "public function groups()\n {\n #$ignore = array('internal', 'id', 'toc', 'todo', 'method');\n $titles = array(\n 'return' => 'Response',\n 'example' => $this->hasMany('example') ? 'Examples' : 'Example',\n 'copyright' => 'Copyright',\n 'see' => 'See also',\n 'link' => $this->hasMany('link') ? 'Links' : 'Link',\n );\n $groups = array();\n\n foreach ($titles as $key => $title) {\n if(\n isset($this->{$key})\n #&& !in_array($key, $ignore)\n ) {\n $groups[] = array(\n 'title' => $title,\n 'items' => (array) $this->get($key)\n );\n }\n }\n\n return $groups;\n }", "public function getCategorizedTables() {}", "public function getQueryGroupby() {\n $R = 'R_'. $this->id;\n return \"$R.value_id\";\n }", "protected function getGroupList() {}", "protected function getGroupList() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "public function getGroup() {}", "protected function setGroup() {\r\n //var_dump($this->sql);\r\n if( $this->sqlGroupBy ) {\r\n var_dump($this->sql);\r\n $this->sql .= ' GROUP BY ' . $this->sqlGroupBy;\r\n }\r\n //var_dump($this->sql);\r\n }", "public static function getGroups(?string $table=null): ?array\n {\n if(null === $table)\n {\n return static::$arrGroups;\n }\n\n $arrObjStyleGroups = null;\n\n if(static::$arrGroups)\n {\n foreach (static::$arrGroups as $combinedAlias => $objStyleGroup)\n {\n // Skip if the group is not allowed for the current table\n if(StyleManager::isVisibleGroup($objStyleGroup, $table))\n {\n $arrObjStyleGroups[ $combinedAlias ] = $objStyleGroup;\n }\n }\n }\n\n return $arrObjStyleGroups;\n }", "public function groupJoin($values);", "public static function groupList()\r\n\t{\r\n\t\t$arrayData = array();\r\n\t\t$criteria=new CDbCriteria;\r\n\t\t$criteria->order = 'level DESC';\r\n\t\t$criteria->compare('level <',Yii::app()->user->level -1,false);\r\n\t\t$result = self::model()->findAll($criteria);\r\n\t\tforeach ($result as $r) {\r\n\t\t\t$arrayData[$r->id] = $r->groupname;\r\n\t\t}\r\n\t\treturn $arrayData;\r\n\t}", "protected abstract function getGroupByClause(array $grouping);", "public abstract function getGroupedAttributesForMatching();", "function testGroupingGen()\r\n\t{\r\n\t\t// \"project_story\" does not exist anymore in app_object_types\r\n\t\treturn; \r\n\t\t$dbh = $this->dbh;\r\n\r\n\t\t$cust = new CAntObject($dbh, \"project_story\", null, $this->user);\r\n\t\t$cust->setValue(\"name\", \"UnitTest-testGrouping\");\r\n\r\n\t\t// Priority\r\n\t\t$grp = $cust->addGroupingEntry(\"priority_id\", \"Unit Test Group\", \"e3e3e3\");\r\n\t\t$cust->setMValue(\"priority_id\", $grp['id']);\r\n\t\t$data = $cust->getDataArray();\r\n\t\t$this->assertEquals($data['name'], \"UnitTest-testGrouping\");\r\n\t\t$this->assertEquals($data['priority_id_mvfval'][$grp['id']], \"Unit Test Group\");\r\n\r\n\t\t// Type\r\n\t\t$grp2 = $cust->addGroupingEntry(\"type_id\", \"Unit Test Group\", \"e3e3e3\");\r\n\t\t$cust->setMValue(\"type_id\", $grp2['id']);\r\n\t\t$data = $cust->getDataArray();\r\n\t\t$this->assertEquals($data['name'], \"UnitTest-testGrouping\");\r\n\t\t$this->assertEquals($data['type_id_mvfval'][$grp2['id']], \"Unit Test Group\");\r\n\r\n\t\t// Test delete\r\n\t\t$ret = $cust->deleteGroupingEntry(\"priority_id\", $grp['id']);\r\n\t\t$this->assertTrue($ret);\r\n\r\n\t\t$ret = $cust->deleteGroupingEntry(\"type_id\", $grp2['id']);\r\n\t\t$this->assertTrue($ret);\r\n\r\n\t\t// Cleanup\r\n\t\t$cust->removeHard();\r\n\t}", "public function getGroups();", "public function getGroups();", "public function groupBy(callable $function);", "protected function getScoreGroupTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_score_group')\n ->getMetaData()\n ->getName(); \n \n }", "public function groupRows($row_start, $row_end, $collapse = false) {\n\t}", "function new_groups()\n {\n \n }", "public function getSubgroup() {}", "public function getGrouping()\n {\n return $this->result->getGrouping();\n }", "function colgroup ( $arguments = \"\" ) {\n $arguments = func_get_args ();\n $rc = new ReflectionClass('tcolgroup');\n return $rc->newInstanceArgs ( $arguments );\n}", "public function getUserGroupTable()\n {\n if (!$this->userGroupTable) {\n $sm = $this->getServiceLocator();\n\t\t\t$this->userGroupTable = $sm->get('Group\\Model\\UserGroupTable');\n }\n return $this->userGroupTable;\n }", "public function group(string $group);", "public function groupCallback($group, $mode, $field, $objModelRow);", "public function groups(): MorphToMany;", "function testGroupings()\r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\r\n\t\t$cust = new CAntObject($dbh, \"customer\", null, $this->user);\r\n\r\n\t\t// Test add new category\r\n\t\t$data = $cust->addGroupingEntry(\"groups\", \"Unit Test Group\", \"e3e3e3\");\r\n\t\t$this->assertTrue(is_array($data));\r\n\t\t$this->assertTrue($data['id'] > 0);\r\n\t\t$eid = $data['id'];\r\n\r\n\t\t// Test get grouping data\r\n\r\n\t\t// Test update color\r\n\t\t$ret = $cust->updateGroupingEntry(\"groups\", $eid, null, \"cccccc\");\r\n\t\t$this->assertTrue($ret);\r\n\t\t$this->assertEquals($this->dbh->GetValue($this->dbh->Query(\"select color from customer_labels where id='$eid'\"), 0, \"color\"), \"cccccc\");\r\n\t\t\r\n\t\t// Test delete\r\n\t\t$ret = $cust->deleteGroupingEntry(\"groups\", $eid);\r\n\t\t$this->assertTrue($ret);\r\n\t}", "public function getGroupedRules(): array;", "function display_lights_groups($prefid = \"\", $cbpos = \"E\", $brislider = false) {\n\tglobal $HueAPI, $trs;\n\t\n\techo \"<TABLE CLASS=det_table>\";\n\techo \"<THEAD>\";\n\techo \"<TR CLASS=grp>\";\n\techo \"<TD><SPAN CLASS=\\\"grp ui-icon ui-icon-circle-minus\\\" gnum=0 open></SPAN>\";\n\tif ($cbpos == \"B\") {\n\t\tdisplay_td_checkbox($prefid, \"all\");\n\t}\n\techo \"<TD CLASS=\\\"label all\\\"><LABEL FOR=\" . $prefid . \"cb_all>\" . $trs[\"All\"] . \"</LABEL>\";\n\techo \"<TD><BUTTON ID=\" . $prefid . \"allon>On</BUTTON><BUTTON ID=\" . $prefid . \"alloff>Off</BUTTON>\";\n\tif ($cbpos == \"E\") {\n\t\tdisplay_td_checkbox($prefid, \"all\");\n\t}\n\tif ($brislider) {\n\t\tdisplay_bri_slider($prefid, \"all\", \"all\");\n\t}\n\t\n\techo \"<TBODY>\";\n\tforeach ($HueAPI->info['groups'] as $gnum => $gval) { // Existing groups\n\t\techo \"<TR CLASS=grp gnum=$gnum>\";\n\t\techo \"<TD><SPAN CLASS=\\\"grp ui-icon ui-icon-circle-minus\\\" gnum=$gnum open></SPAN>\";\n\t\tif ($cbpos == \"B\") {\n\t\t\tdisplay_td_checkbox($prefid, \"$gnum\", \"grp\", $gnum);\n\t\t}\n\t\techo \"<TD CLASS=\\\"label grp\\\"><LABEL FOR=\" . $prefid . \"cb_$gnum gnum=$gnum>\" . $gval['name'] . \"</LABEL>\";\n\t\techo \"<TD><BUTTON CLASS=gron gnum=$gnum>On</BUTTON><BUTTON CLASS=groff gnum=$gnum>Off</BUTTON>\";\n\t\tif ($cbpos == \"E\") {\n\t\t\tdisplay_td_checkbox($prefid, $gnum, \"grp\", $gnum);\n\t\t}\n\t\tif ($brislider) {\n\t\t\tdisplay_bri_slider($prefid, $gnum, $gnum);\n\t\t}\n\t\tforeach ($gval['lights'] as $internal => $lnum) {\n\t\t\tdisplay_light_row($prefid, $lnum, $gnum, $cbpos, $brislider);\n\t\t}\n\t}\n\t\n\t// Lamps without group\n\techo \"<TR CLASS=grp gnum=other>\";\n\techo \"<TD><SPAN CLASS=\\\"grp ui-icon ui-icon-circle-minus\\\" gnum=other open></SPAN>\";\n\tif ($cbpos == \"B\") {\n\t\tdisplay_td_checkbox($prefid, \"other\", \"grp\", \"other\");\n\t}\n\techo \"<TD CLASS=\\\"label grp\\\"><LABEL FOR=\" . $prefid . \"cb_other>\" . $trs[\"Lamps\"] . \"</LABEL>\";\n\techo \"<TD><BUTTON ID=\" . $prefid . \"otheron>On</BUTTON><BUTTON ID=\" . $prefid . \"otheroff>Off</BUTTON>\";\n\tif ($cbpos == \"E\") {\n\t\tdisplay_td_checkbox($prefid, \"other\", \"grp\", \"other\");\n\t}\n\tif ($brislider) {\n\t\tdisplay_bri_slider($prefid, \"other\", \"other\");\n\t}\n\tforeach ($HueAPI->info['lights'] as $lnum => $lval) {\n\t\tif (!isset($lval['grp'])) {\n\t\t\tdisplay_light_row($prefid, $lnum, \"other\", $cbpos, $brislider);\n\t\t}\n\t}\n\techo \"</DIV>\";\n\t\n\techo \"</TABLE>\";\n}", "function groupsHTML($arrAllGroups) {\n global $LANG;\n $intLastGroup=0;\n if (is_array($arrAllGroups)) {\n $intGroups = count($arrAllGroups);\n // Build Groups\n foreach($arrAllGroups as $intGroupKey => $arrSingleGroup) {\n $strOutput .= '<tr class=\"bgColor5\">\n <td colspan=\"3\"><b><em>'.$LANG->getLL(\"conditions_group\").' ' . ($intLastGroup+1) .'</em></b></td>\n <td colspan=\"2\"><b>'.$LANG->getLL(\"conditions_condition\").'</b></td>\n </tr>'.chr(10);\n $strGroupButtons = !$this->blnLocalization?implode(chr(10),$this->getGroupButtons($intGroupKey,$intGroups)):'&nbsp;';\n // Build Rules\n foreach($arrSingleGroup['rule'] as $intRuleKey => $arrRule) {\n $arrRule['field'] = stripslashes($arrRule['field']);\n $strOutput .= '<tr class=\"bgColor4\">'.chr(10);\n if ($intRuleKey!=0) {\n $strOutput .= '<td align=\"right\">'.$LANG->getLL(\"conditions_and\").'</td>'.chr(10);\n } else {\n \t$intExtraRow = !$this->blnLocalization?1:0;\n $strOutput .= '<td rowspan=\"'.(count($arrSingleGroup['rule'])+$intExtraRow).'\" class=\"bgColor5\">\n \t\t\t'.$strGroupButtons.'\n \t\t\t</td>\n <td><b>'.$LANG->getLL(\"conditions_rules\").'</b></td>'.chr(10);\n }\n $strOutput .= '<td style=\"white-space:nowrap;\">';\n if (!$this->blnLocalization) {\n\t\t\t\t\t\t$strOutput .= '<select name=\"'.$this->strExtKey.'[grps]['.$intGroupKey.'][rule]['.$intRuleKey.'][field]\" onChange=\"submit();\">\n\t \t\t\t'.implode(chr(10),$this->getFields($arrRule['field'])).'\n\t \t\t\t</select>';\n } else {\n \t$arrFields = $this->getFields($arrRule['field']);\n \t$strOutput .= '<input name=\"'.$this->strExtKey.'[grps]['.$intGroupKey.'][rule]['.$intRuleKey.'][field]\" type=\"hidden\" value=\"'.$arrFields['uid'].'\" />'.$arrFields['title'];\n }\n\t\t\t\t\t$strOutput .= '</td>\n <td style=\"white-space:nowrap;\">';\n $strOutput .= implode(chr(10),$this->getOperators($this->strExtKey.'[grps]['.$intGroupKey.'][rule]['.$intRuleKey.']',$arrRule));\n $strOutput .= '</td>\n <td width=\"11\">';\n // No trashbin when single rule in a group\n if (!$this->blnLocalization && count($arrSingleGroup['rule'])>1) {\n $strOutput .= '<input type=\"image\" name=\"'.$this->strExtKey.'[rule_remove]['.$intGroupKey.']['.$intRuleKey.']\"'.IconUtility::skinImg($this->objDoc->backPath,'gfx/garbage.gif').BackendUtility::titleAltAttrib($LANG->getLL(\"conditions_ruleRemove\")).' />'.chr(10);\n } else {\n \t$strOutput .='&nbsp;';\n }\n $strOutput .= '</td></tr>'.chr(10);\n }\n if (!$this->blnLocalization) {\n\t $strOutput .= '<tr class=\"bgColor4\">\n\t <td align=\"right\">'.$LANG->getLL(\"conditions_and\").'</td>\n\t <td><select name=\"'.$this->strExtKey.'[grps]['.$intGroupKey.'][rule]['.($intRuleKey+1).'][field]\" onChange=\"submit();\">\n\t <option value=\"'.$this->extKey.'_new\">'.$LANG->getLL('conditions_newField').'</option>\n\t '. implode(chr(10),$this->getFields()).'\n\t </select></td>\n\t <td colspan=\"2\"></td>\n\t </tr>'.chr(10);\n }\n $intLastGroup = $intGroupKey;\n }\n }\n // Build New Group\n if (!$this->blnLocalization) {\n\t $strOutput .= '<tr class=\"bgColor6\">\n\t <td colspan=\"5\"><b>'.$LANG->getLL(\"conditions_new\").'</b></td>\n\t </tr>\n\t <tr class=\"bgColor6\">\n\t <td>&nbsp;</td>\n\t <td><b>'.$LANG->getLL(\"conditions_rules\").'</b></td>\n\t <td colspan=\"3\"><select name=\"'.$this->strExtKey.'[grps]['.($intLastGroup+1).'][rule][0][field]\" onChange=\"submit();\">\n\t <option value=\"'.$this->extKey.'_new\">'.$LANG->getLL('conditions_newField').'</option>'\n\t . implode(chr(10),$this->getFields()).'\n\t </select></td>\n\t </tr>'.chr(10);\n }\n return $strOutput;\n\t}", "function groups() {\n\t\t$this->validate();\n\t\t$this->setupTemplate();\n\n\t\t$journal =& Request::getJournal();\n\n\t\t$rangeInfo =& $this->getRangeInfo('groups');\n\n\t\t$groupDao =& DAORegistry::getDAO('GroupDAO');\n\t\t$groups =& $groupDao->getGroups(ASSOC_TYPE_JOURNAL, $journal->getId(), null, $rangeInfo);\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->addJavaScript('lib/pkp/js/lib/jquery/plugins/jquery.tablednd.js');\n\t\t$templateMgr->addJavaScript('lib/pkp/js/functions/tablednd.js');\n\t\t$templateMgr->assign_by_ref('groups', $groups);\n\t\t$templateMgr->assign('boardEnabled', $journal->getSetting('boardEnabled'));\n\t\t$templateMgr->display('manager/groups/groups.tpl');\n\t}", "public function getUserGroupTable(): string\n {\n return $this->wpDatabase->prefix . self::USER_GROUP_TABLE_NAME;\n }", "function get_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->get_by($field, $match);\n\t}", "function icress_getSubject_wrapper($campus, $faculty, $subject) {\n $jadual = file_get_contents(getTimetableURL(true) . \"/list/{$campus}/{$faculty}/{$subject}.html\");\n $http_response_header or die(\"Alert_Error: Icress timeout! Please try again later.\"); \n\t\n # parse the html to more neat representation about classes\n $jadual = str_replace(array(\"\\r\", \"\\n\"), '', $jadual);\n\n\t// set error level\n\t$internalErrors = libxml_use_internal_errors(true);\n\t$htmlDoc = new DOMDocument();\n\t$htmlDoc->loadHTML($jadual);\n\t// Restore error level\n\tlibxml_use_internal_errors($internalErrors);\n\n\t$tableRows = $htmlDoc->getElementsByTagName('tr');\n\t$groups = [];\n\n\tforeach ($tableRows as $key => $row) {\n\t\tif ($key === 0 || $key === 1) {\n\t\t\tcontinue;\n\t\t}\n\t\t$tableDatas = [];\n\t\tforeach($row->childNodes as $tableData) {\n\t\t\tif (strcmp($tableData->nodeName, 'td') === 0) {\n\t\t\t\tarray_push($tableDatas, $tableData->nodeValue);\n\t\t\t}\n\t\t}\n\n\t\t$group = trim($row->childNodes[5]->nodeValue);\n\t\tarray_shift($tableDatas);\n\t\t$groups[$group][] = $tableDatas;\n\t}\n\n return $groups;\n}", "public function groupBy($group=null)\n {\n $group = LambdaUtils::toSelectCallable($group);\n\n $result = new ObjectArray(array());\n if($this instanceof ObjectArray)\n {\n $result = $this->newInstance();\n }\n\n foreach($this as $record)\n {\n $key = call_user_func($group, $record);\n\n $data = array();\n if($this->__converter instanceof IListConverter)\n {\n $data = $this->newConverterInstance();\n }\n $newitemtype = new ArrayList($data);\n\n $result->get($key, $newitemtype, true)->add($record);\n }\n\n return $result;\n }", "function buildGroup($entity) {\n // The the standard group name.\n $group = parent::buildGroup($entity);\n // Add the scheme.\n if ($this->conf['group_by_scheme']) {\n // Get all stream wrappers.\n $stream_wrapper = file_get_stream_wrappers();\n $group .= ' · ' . $stream_wrapper[file_uri_scheme($entity->uri)]['name'];\n }\n return $group;\n }", "function groupByHeader(&$conf,$GBCode,$menuRow,&$groupBy,&$lastgroupBy,&$evalGroupBy,$GrpByField,&$lc,&$gc,&$i,&$pagejump,&$sql,$end=false,&$DEBUG,$nbrow) {\n\t\t// group by field handling\n\t\t//if ($end) return;\n\t\t$GBmarkerArray=array();\n\t\t$groupByFields=\"\";\n\t\t$gbflag=0;\n\t\t$newGroupBy=array();\n\t\tif ($conf['list.']['groupByFieldBreaks']) {\n\t\t\t$fNA=t3lib_div::trimexplode(',',$conf['list.']['groupByFieldBreaks']);\n\t\t\tforeach($fNA as $fN) {\n\t\t\t\t$fN2=t3lib_div::trimexplode(':',$fN);\n\t\t\t\t$fN=$fN2[0];\n\t\t\t\t//if ($conf['list.']['hiddenGroupByField.'][$fN]) continue;\n\n\t\t\t\t$GBmarkerArray['###GROUPBY_'.$fN.'###']=\"\";\n\t\t\t\t//error_log(__METHOD__.\": -\".$groupBy[$fN].\"!==\".$this->metafeeditlib->transformGroupByData($fN,$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN],$conf));\n\t\t\t\tif (($groupBy[$fN]!==$this->metafeeditlib->transformGroupByData($fN,$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN],$conf) || $end) && !$conf['list.']['hiddenGroupByField.'][$fN]) {\n\t\t\t\t\t// Group by field change !\n\t\t\t\t\t$GBmarkerArray['###FOOTERSUM_'.$fN.'_FIELD_metafeeditnbelts###']='';\n\t\t\t\t\t//error_log(__METHOD__.\": aa- $nbrow : \".$evalGroupBy[$fN]);\n\t\t\t\t\tif ($nbrow>1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$GBmarkerArray['###GROUPBYFOOTER_'.$fN.'###']=$evalGroupBy[$fN]; \n\t\t\t\t\t\t$this->metafeeditlib->getGroupByFooterSums($conf,'FOOTERSUM',$GBmarkerArray,$fN,$sql,$lastgroupBy,$end,$DEBUG);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFOOTERFIELD_'.$fN.'###','');\n\t\t\t\t\t}\n\t\t\t\t\t$std=$menuRow[$fN];\n\n\t\t\t\t\t// Default we get value from std group by field ...\n\t\t\t\t\tif ($GrpByField[$fN]) {\n\t\t\t\t\t $std=$menuRow[$GrpByField[$fN]];\n\t\t\t\t\t if ($menuRow['EVAL_'.str_replace('.','_',$GrpByField[$fN])]) $std=$menuRow['EVAL_'.str_replace('.','_',$GrpByField[$fN])];\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t// stdWrap on group by.\t\t\n\t\t\t\t\t$_fN=str_replace('.','_',$fN);\n\t\t\t\t\tif ($conf['list.']['groupByFields.']['stdWrap.'][$_fN.'.']) {\n\t\t\t\t\t $this->cObj->start($menuRow,$this->theTable);\n\t\t\t\t\t $std=$this->cObj->stdWrap($std,$conf['list.']['groupByFields.']['stdWrap.'][$_fN.'.']);\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t// ??? \t\n\t\t\t\t\t\n\t\t\t\t\tif ($GrpByField[$fN]) {\n\t\t\t\t\t\t$newGroupBy[$fN]=$menuRow[$GrpByField[$fN]];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$newGroupBy[$fN]=$menuRow[$fN];\n\t\t\t\t\t\tif ($menuRow['EVAL_'.$_fN]) $std=$menuRow['EVAL_'.$_fN];\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\t// we set group by flag\n\t\t\t\t\t$gbflag=1;\n\t\t\t\t\t$GBmarkerArray['###GROUPBY_'.$fN.'###']=$std;\n\t\t\t\t\t$evalGroupBy[$fN]=$std;\n\t\t\t\t\t// We have to reset all son groupbys so that the headers will be regenerated...\n\t\t\t\t\t$resetgbf=FALSE;\n\t\t\t\t\tif (is_array($groupBy)) foreach ($groupBy as $gbf=>$val) {\n\t\t\t\t\t\tif ( $resetgbf) unset($groupBy[$gbf]);\n\t\t\t\t\t\tif ($gbf==$fN) $resetgbf=TRUE;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// we clear unused group bys \n\t\t\t\t\t$GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFIELD_'.$fN.'###','');\n\t\t\t\t\t$GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFOOTERFIELD_'.$fN.'###','');\n\t\t\t\t}\n\t\t\t\t// We clear next group by if end of list is reached\n\t\t\t\tif ($end) $GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFIELD_'.$fN.'###','');\n\t\t\t}\n\t\t\tforeach($newGroupBy as $fN=>$val) {\n\t\t\t\t$groupBy[$fN]=$this->metafeeditlib->transformGroupByData($fN,$val,$conf);\n\t\t\t\t//$lastgroupBy[$fN]=$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN];\n\t\t\t\t$lastgroupBy[$fN]=$this->metafeeditlib->transformGroupByData($fN,$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN],$conf);\n\t\t\t}\n\t\t}\n\t\tif ($gbflag) {\n\t\t\t$groupByFields=$this->cObj->substituteMarkerArray($GBCode, $GBmarkerArray);\n\t\t\t$gc++;\n\t\t\t// Jump page on group by\n\t\t\tif ($gc>1 && $conf['list.']['jumpPageOnGroupBy']) {\n\t\t\t $pagejump=1;\n\t\t\t}\n\t\t\tif ($conf['list.']['groupBySize']) {\n\t\t\t\t$lc=$lc+$conf['list.']['groupBySize'];\n\t\t\t}\n\t\t\tif ($conf['list.']['no_detail']) $lc++; //MMM\n\n\t\t\tif ($gc>1 && $dispDir=='Right') $lc++;\n\t\t\t$i=0; // pour fin de ligne\n\t\t}\n\t\t//error_log(__METHOD__.\"end: -\".print_r($groupByFields,true)); \n\t\treturn $groupByFields;\n\t}", "public function groups()\n {\n return $this->hasMany(static::class, 'parent_id');\n }", "function acf_get_field_groups($filter = array())\n{\n}", "public function groupIds();", "function secGroups($function, $group=NULL) {\n $g=array();\n $g['preDel']=array('rw','rwv','admin');\n $g['dashboard']=array('ro','rw','rwv','admin');\n if(isset($g[$function])) {\n if(!empty($group)) return in_array($group, $g[$function]);\n return $g[$function];\n }\n return parent::secGroups($function,$group);\n }", "function get_usersTable(){\n $result = array();\n $users = selectQuery(TAB_USERS, \"\", \"id DESC\");\n $user_groups =\n $i = 0;\n\n foreach($users as $user){\n $id = $user['id'];\n $result[$i]['id'] = $id;\n $result[$i]['username'] = $user['username'];\n $result[$i]['password'] = \"**********\";\n $result[$i]['email'] = $user['email'];\n $result[$i]['group'] = selectJoin(TAB_USR_ROLE, TAB_GROUPS, \"groupId = id\", \"userId = $id\")[0]['role'];\n $i++;\n }\n return $result;\n}", "public function scopeRoot($query){\n return $query->groupBy('value1');\n }", "function groupBy(callable $grouper, iterable $items) : iterable\n{\n $grouped = [];\n foreach ($items as $key => $value) {\n $group = $grouper($value, $key);\n $grouped[$group] []= $value;\n }\n return $grouped;\n}", "private function insertGroups() {\n\t DB::table('base_group')->insert(['group_name' => 'sales.reporting', 'group_info' => 'Sales Reporting', 'group_alias' => 'National', 'active' => 1]);\n\t DB::table('base_group')->insert(['group_name' => 'customer.analytics', 'group_info' => 'Customer Analytics', 'group_alias' => 'National', 'active' => 1]);\n\t}", "private function createGroupXML()\r\n\t{\r\n\t\t$rows = $this->getGroups();\r\n\t\t$groups = $this->doc->createElement('groups');\r\n\r\n\t\tforeach ($rows as $row)\r\n\t\t{\r\n\t\t\t$group = $this->doc->createElement('group');\r\n\r\n\t\t\tforeach ($row as $key => $value)\r\n\t\t\t{\r\n\t\t\t\t$group->setAttribute($key, $value);\r\n\t\t\t}\r\n\t\t\t$groups->appendChild($group);\r\n\t\t}\r\n\r\n\t\treturn $groups;\r\n\t}", "function acf_get_local_field_group($key = '')\n{\n}", "public function getSubGroups() {}", "public function groupBy(array $fields, $order = null);", "function cata_getallgroups_treeview(&$ar, $idgroup, $depthlimit, $idgroupstop, $depth=1)\n{\n\n\tglobal $db;\n\t$groups = array();\n\n\t$select = \"SELECT * FROM dims_group WHERE system = 0 ORDER BY label\";\n\t$result = $db->query($select);\n\twhile ($fields = $db->fetchrow($result))\n\t{\n\t\t$groups[$fields['id_group']][$fields['id']] = $fields;\n\t}\n\n\treturn(cata_getallgroupsrec($ar, $groups, $idgroup, $depthlimit, $idgroupstop, $depth));\n}", "abstract public function getPanelGroup();", "function get_group_array()\n{\n\tglobal $db_raid, $table_prefix, $db_raid;\n\tglobal $db_allgroups_id, $db_allgroups_name, $db_table_allgroups ;\n\n\t$group = array();\n\t\n\t$sql = sprintf(\"SELECT \" . $db_allgroups_id . \" , \". $db_allgroups_name .\n\t\t\t\" FROM \" . $table_prefix . $db_table_allgroups .\n\t\t\t\" ORDER BY \". $db_allgroups_id);\n\t\n\t$result_group = $db_raid->sql_query($sql) or print_error($sql, $db_raid->sql_error(), 1);\n\twhile ($data_wrm = $db_raid->sql_fetchrow($result_group,true))\n\t{\n\t\t$group[$data_wrm[$db_allgroups_id]] = $data_wrm[$db_allgroups_name];\n\t}\n\n\treturn $group;\n}", "public function testCreateGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function getGroups(): array;", "public function currentGroup();", "function get_group_by_name($group_name) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated groups\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1'\r\n AND local = '0'\r\n AND name = '$group_name'\r\n ORDER BY name ASC;\";\r\n\r\n $groups_data = array();\r\n $groups = array();\r\n\r\n foreach ($db->query($sql) as $key => $value) {\r\n $groups_data[$key] = $value;\r\n foreach ($groups_data[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $groups[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $groups;\r\n}", "function acf_get_field_group($id = 0)\n{\n}", "public function getGroups() {}" ]
[ "0.60637414", "0.59652793", "0.59538054", "0.59538054", "0.55782235", "0.55187386", "0.55187386", "0.55187386", "0.5511969", "0.54874337", "0.54667044", "0.54597163", "0.5453317", "0.5420147", "0.5420147", "0.5402979", "0.5354351", "0.53471684", "0.5325017", "0.53106683", "0.53084475", "0.5303837", "0.5282482", "0.52043104", "0.51826024", "0.51610655", "0.51200604", "0.51132303", "0.5074833", "0.50595474", "0.5032165", "0.50136405", "0.49991336", "0.49837634", "0.49344862", "0.49121863", "0.49104273", "0.49066493", "0.49057046", "0.4899689", "0.48971102", "0.48960963", "0.4885784", "0.48780584", "0.48780584", "0.48712423", "0.48712423", "0.48712423", "0.48712423", "0.48692346", "0.4868162", "0.4847937", "0.48371717", "0.4830183", "0.4829827", "0.4828321", "0.48209792", "0.48209792", "0.48126096", "0.48089507", "0.47935063", "0.47933576", "0.47932976", "0.4783773", "0.47698942", "0.47691876", "0.47590542", "0.47582966", "0.47478792", "0.4747783", "0.47441396", "0.47428614", "0.47363722", "0.4724057", "0.47121444", "0.47104734", "0.4709295", "0.47080004", "0.47072226", "0.4703928", "0.4698463", "0.46964952", "0.46912074", "0.46778947", "0.46766993", "0.4669926", "0.46659002", "0.46633843", "0.46620822", "0.46539393", "0.46521503", "0.46514863", "0.4641192", "0.46380854", "0.463342", "0.46316347", "0.4627714", "0.46269426", "0.4623536", "0.46188405", "0.46178916" ]
0.0
-1
Field object by fldvar
function &fields($fldvar) { return $this->fields[$fldvar]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFieldValue($field);", "public function getFieldObject() {}", "public function getField();", "public function getField();", "public function getField();", "public function getField($field_name);", "public function getField($fieldName) {}", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "public function get($field);", "public function get($field);", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public abstract function FetchField();", "public function getSearchField($class, $field);", "public function fetchField();", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "function load_field($field)\n {\n }", "public abstract function GetCurrentField();", "function f($field) {\n\t\treturn($this->fetchfield($field));\n\t}", "public function getFieldValue(/*string*/ $fieldName);", "function tk_template_get_field (&$this, &$res, $field)\n{\n $ui =& $app->ui;\n\n $res[\"form_$field\"] = $ui->new_formfield ($field);\n $res[$field] = $ui->value ($field);\n}", "public function fieldfromid($fieldid) {\n if (empty($fieldid) OR stripos($fieldid, \"field\") === false) {\n return false;\n }\n if (strpos($fieldid, \"siteField\") > 0) {\n //a siteField\n $id = substr($fieldid, 14);\n return ORM::factory(\"siteField\", $id);\n } else {\n //a normal field\n $id = substr($fieldid, 10);\n return ORM::factory(\"field\", $id);\n }\n }", "function field() {\n\t/* Note: This function depends on special PHP functions, which cannot be used outside of a function definition. The behavior of the functions is somewhat inconsistent with the behavior of normal functions.\n\t */\n\t$numargs = func_num_args(); // function cannot be used directly as a function parameter\n\t \n\tif ($numargs > 1) {\n\n\t\t/**\n\t\t * Field Assign\n\t\t *\n\t\t */\n\t\t\t \n\t\t$arg_list = func_get_args();\n\t\t \n\t\t$field_name = $arg_list[0];\n\t\t$field_value = $arg_list[1];\n\t\t\t \n\t\t/* I suppose this would work too\n\t\t $field_name = func_get_arg(0);\n\t\t $field_value = func_get_arg(1);\n\t\t*/\n\t\t\n\t\t// debug\t\n\t\t//print \"Assigning value \" \t. $field_value .\" to \". $field_name .\" field<br>\";\n\t\n\t\t$this->fields[$field_name]['value'] = $field_value;\n\t\t \n\t} else {\n\t\n\t/**\n\t * Field Retrieve\n\t *\n\t */\n\t\t\t\n\t$arg_list = func_get_args();\n\n\t$field_name = $arg_list[0];\n\t\t \n\t/* I suppose this would work too\n\t $field_name = func_get_arg(0);\n\t */\n\t \n\treturn $this->value( $field_name );\n\t }\n\t}", "function get_field($uniqueid, $tablealias, $fieldname, $advanced, $displayname, $type, $options) {\n global $USER, $CFG, $SITE;\n\n if (file_exists($CFG->dirroot . '/curriculum/lib/filtering/' . $type . '.php')) {\n require_once($CFG->dirroot . '/curriculum/lib/filtering/' . $type . '.php');\n }\n\n $classname = 'generalized_filter_' . $type;\n\n return new $classname ($uniqueid, $tablealias, $fieldname, $displayname, $advanced, $fieldname, $options);\n }", "public function getDbField($fieldName,$className,$isVector=false){\n $r=array(\n \"name\"=>$fieldName\n );\n\n $areFields=array(\n \"IdField\",\n \"CodeField\",\n \"CreatedField\",\n \"ModifiedField\",\n \"TextField\",\n \"BoolField\",\n \"EnumField\",\n \"HtmlField\",\n \"FileField\",\n \"ImageField\",\n );\n\n if(in_array($className,$areFields)){\n //standard field\n $options=array();\n switch($className){\n case \"EnumField\":\n $options[EnumField::STATES]=self::getStates(get_class($this),$fieldName);\n $options[Field::DEFAULT_VALUE]=$options[EnumField::STATES][0];\n /*$states=$fieldName.\"States\";\n $options[EnumField::STATES]=$this->$states;\n\n */\n break;\n\t }\n $r[\"options\"]=$options;\n $r[\"type\"]=$className;\n return $r;\n\t \n\t }else if(class_exists ($className) && is_subclass_of($className,\"M_\")){\n //an association\n if($isVector){\n //N to N assoc\n $r[\"options\"]=array( Assoc::TO => $className,NtoNAssoc::LINK_MODEL=>$this->modelName.\"_\".$className );\n //Field::create(\"Product.countries\" , NtoNAssoc , array(Assoc::TO => Country, NtoNAssoc::LINK_MODEL => Product_Country ));\n $r[\"type\"]=\"NtoNAssoc\";\n }else{\n //one to One\n $r[\"options\"]=array( Assoc::TO => $className );\n $r[\"type\"]=\"OneToOneAssoc\";\n }\n\n return $r;\n }else{\n\t // $className is not a field...so false.\n return false;\n }\n }", "function get_field($type, $type_id = '', $field = 'name')\n {\n if ($type_id != '') {\n $l = $this->db->get_where($type, array(\n $type . '_id' => $type_id\n ));\n $n = $l->num_rows();\n if ($n > 0) {\n return $l->row()->$field;\n }\n }\n }", "function get_field($id=false, $field=false) {\n\t\tif(!$id && !$field) return false;\n\t\tglobal $wpdb;\n\t\t$query = \"SELECT wposts.$field FROM $wpdb->posts wposts WHERE wposts.ID=$id\";\n\t\t$results = $this->query($query);\n\t\tif(isset($results[0])) return $results[0]->$field;\n\t}", "function get_field_object($selector, $post_id = \\false, $format_value = \\true, $load_value = \\true)\n{\n}", "public function fld(mixed $field): mixed\n\t{\n\t\treturn self::$regs[$field];\n\t}", "function load_field( $field )\n\t{\n\t\t// Note: This function can be removed if not used\n\t\treturn $field;\n\t}", "public function getField(string $name, string $class=null): Field;", "function FetchField($fieldOffset = -1) \n\t{\n\t\tif ($fieldOffset != -1) {\n\t\t\t$this->fieldmeta_offset = $fieldOffset;\n\t\t}\n\t\t$fieldObject = false;\n\t\t$i=0;\n\t\tforeach($this->fieldmeta as $o) {\n\t\t\tif($i==$this->fieldmeta_offset) {\n\t\t\t\t$fieldObject = $o;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\t$this->fieldmeta_offset++;\n\t\treturn $fieldObject;\n\t}", "function variableGetFromStruct($var, $field, $default = '', $set = false) {\n $arr = variable_get($var);\n if ($arr && isset($arr[$field])) {\n return $arr[$field];\n } else {\n if ($default && $set) {\n variable_set($var, $default);\n }\n return $default;\n }\n}", "function getValue(int $field);", "public function getProperty($field);", "public function field($field, $name = FALSE)\n\t{\n\t\tif (empty($this->_fields[$field]))\n\t\t{\n\t\t\t$this->_fields[$field] = Jelly_Meta::field($this, $field);\n\t\t}\n\t\t\n\t\tif ($name)\n\t\t{\n\t\t\tif (is_object($this->_fields[$field]))\n\t\t\t{\n\t\t\t\treturn $this->_fields[$field]->name;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->_fields[$field];\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "function fields($fldname) {\n\t\treturn $this->fields[$fldname];\n\t}", "public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}", "function getField($campo)\n{\n\treturn $this->res2[$campo];\n}", "public function __get($field){\n if ($field == 'usuario_id'){\n return $this->codigo;\n }\n else{\n return $this->fields[$field];\n }\n }", "public function field_object( $field_name ) {\n\t\t$value = apply_filters('timber/post/meta_object_field', null, $this->ID, $field_name, $this);\n\t\t$value = $this->convert($value);\n\t\treturn $value;\n\t}", "function FetchField($off = 0)\n\t{\n\n\t\t$o= new ADOFieldObject();\n\t\t$o->name = @pg_field_name($this->_queryID,$off);\n\t\t$o->type = @pg_field_type($this->_queryID,$off);\n\t\t$o->max_length = @pg_fieldsize($this->_queryID,$off);\n\t\treturn $o;\n\t}", "function create_field($field)\n{\n}", "function prepare_field_for_db($field)\n {\n }", "function getRecordFields($recordFields)\n{\n\tforeach($recordFields as $field)\n\t{\n\t\t$varName = $field[0];\n\t\t$varValue = $field[2];\n\t\t$$varName = $varValue;\n\t}\n\t// what to return?\n}", "function acf_prepare_field($field)\n{\n}", "public static function field($model, $field, $name = FALSE)\n\t{\n\t\tif (FALSE == ($meta = Jelly_Meta::get($model)))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t// Check to see if the field is aliased\n\t\tif (isset($meta->aliases[$field]))\n\t\t{\n\t\t\t$field = $meta->aliases[$field];\n\t\t}\n\t\t\n\t\tif (isset($meta->fields[$field]))\n\t\t{\n\t\t\tif ($name)\n\t\t\t{\n\t\t\t\treturn $field;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $meta->fields[$field];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn NULL;\n\t}", "function drupal_unpack($obj, $field = 'data') {\n if ($obj->$field && $data = unserialize($obj->$field)) {\n foreach ($data as $key => $value) {\n if (!isset($obj->$key)) {\n $obj->$key = $value;\n }\n }\n }\n return $obj;\n}", "function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}", "abstract public function convertField($field);", "public function get_field_name();", "public function __get ($field) {\n return $this->__fields[$field]['data'];\n }", "public function getField()\n {\n if ($this->field) return $this->field;\n\n if (!($field = $this->fieldAble->getField($this->fieldTemplate->program_name))) {\n\n $field = new Field();\n $field->common_fields_template_id = $this->fieldTemplate->id;\n $field->field_reference = $this->fieldAble->getFieldReference();\n $field->visible = true;\n $field->editable = true;\n\n $field->save(false);\n\n $this->fieldAble->getFieldHandler()->setToCache($this->fieldTemplate->program_name, $field);\n }\n\n $this->field = $field;\n\n return $this->field;\n }", "function getField(){\n\t\treturn $this->Field;\n\t}", "function prepare_field($field)\n {\n }", "public function __get($field){\n if ($field == 'ENTIDAD_ID'){\n return $this->codigo;\n }\n else{\n return $this->fields;\n }\n }", "public function getFieldByLang($field_name, $lang_id = null){\n //$definition = ObjectModel::getDefinition($this);\n // Is field in definition\n $field = $this->{$field_name};\n // Is field multilang?\n if (isset($field['lang']) && $field['lang']) {\n if (is_array($this->{$field_name}))\n return $this->{$field_name}[$lang_id ? $lang_id : JeproshopContext::getContext()->language->lang_id];\n }\n return $this->{$field_name};\n }", "function acf_get_field($id = 0)\n{\n}", "function field($fieldarray, $dbconnname)\n\t{\n\t\tglobal $$dbconnname;\n\t\t$this->dbconnname = $dbconnname;\n\t\t$this->name = $fieldarray[\"name\"];\n\t\t$this->type = $fieldarray[\"type\"];\n\n\t\tif (strstr($fieldarray[\"flags\"], \"auto_increment\") || (strstr($fieldarray[\"flags\"], \"seq\")))\n\t\t\t\t$this->autoincrement = 1;\n\t\tif (strstr($fieldarray[\"flags\"], \"primary_key\"))\n\t\t\t\t$this->key = 1;\n\t}", "function __get($n, $field) {\n // from core function field_info_field_map <- FieldInfo::getFieldMap (not available in Drupal 6) \n // to obtain field type from $field_map[field_name]['type']\n $upsert_field_map = field_info_field_map();\n\n switch ($field) {\n case 'nid':\n case 'vid':\n case 'type':\n case 'language':\n case 'title':\n case 'uid':\n case 'name':\n case 'created':\n case 'changed':\n return $n->{$field};\n break;\n case 'status':\n return ($n->status) ? TRUE:FALSE;\n break;\n case 'disabled':\n return ($n->status) ? FALSE:TRUE;\n break;\n case 'meta_data':\n return __get_meta_data($n);\n default:\n // get field type from field map info\n $type = $upsert_field_map[$field]['type'];\n\n// print \"field: \" . $field . \" field type: \" . $type . \"\\n\";\n\n // return result from function __get_{$n, $field}\n if ($type) {\n if ($type == 'file' || $type == 'image') return __get_media($n, $field);\n $function = '__get_' . $type;\n return $function($n, $field);\n }\n else {\n return '';\n }\n break;\n }\n}", "public function getField(): string;", "public function getFieldParams($fieldName);", "function acf_get_local_field($key = '')\n{\n}", "public function setField($field);", "public function setField($field);", "public function getField($name) { return $this->fields[$name]; }", "static function mega_get_field( $field_id ) {\n\t\tif ( is_post_type_archive() ) {\n\t\t\t// acf archive fields must have a prefix with single post name, i.e: product-content.\n\t\t\t$obj = get_queried_object();\n\t\t\t$name = $obj->name;\n\t\t\t$field = get_field( \"{$name}_{$field_id}\", 'option' );\n\t\t} elseif ( is_tax() || is_category() ) {\n\t\t\t$term = get_queried_object();\n\n\t\t\tif ( get_field( $field_id, $term ) ) {\n\t\t\t\t$field = get_field( $field_id, $term );\n\t\t\t} elseif ( $term->parent && get_field( $field_id, $term->taxonomy . '_' . $term->parent ) ) {\n\t\t\t\t$field = get_field( $field_id, $term->taxonomy . '_' . $term->parent );\n\t\t\t}\n\t\t} elseif ( get_field( $field_id ) ) {\n\t\t\t$field = get_field( $field_id );\n\t\t}\n\n\t\tif ( ! isset( $field ) && get_field( $field_id, 'option' ) ) {\n\t\t\t$field = get_field( $field_id, 'option' );\n\t\t}\n\n\t\tif ( isset( $field ) ) {\n\t\t\treturn $field;\n\t\t}\n\t}", "public function getLookupField() {}", "public function getUserfield();", "private function getField($fieldName)\n {\n $form = $this->form;\n $field = $form->get($fieldName)->getConfig();\n $field->typeName = $this->getFieldTypeName($field);\n return $field;\n }", "public function getField($field_name) {\n $retval = NULL;\n // if field exists\n if (array_key_exists($field_name,$this->form_fields)) {\n $retval = $this->form_fields[$field_name];\n }\n return $retval;\n }", "public function __construct($field){\n $this->field = $field;\n }", "function field($id, $field, $default=null) {\n\t\tif(array_key_exists($field, $this->schema())) {\n\t\t\t$res = $this->query('SELECT `'.$field.'` FROM `'.$this->table.'` WHERE `'.$this->primaryKey.'` = \\''.$this->escape($id).'\\' LIMIT 1');\n\t\t\tif($row = $res->fetch_row()) {\n\t\t\t\t$res->free();\n\t\t\t\treturn $row[0];\n\t\t\t}\n\t\t} else { /* throw error? */ }\n\t\treturn $default;\n\t}", "function &getField($name){\n\t\t$fields =& $this->fields();\n\t\tif ( !isset($fields[$name]) ){\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $fields[$name];\n\t\t}\n\t}", "public function getField(string $key);", "public function retrieveFieldValue(Field $field, $model);", "public function getField(){\n return $this->field;\n }", "public function getFieldValue(Field $field, $model);", "function df_meta_fields( $post, $mph_var ) {\n\t\t$date_field_object = $mph_var['args'];\n\t\t$date_field_object->df_create_fields();\n\t}", "public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }", "function fieldInfo( $table, $field );", "private function _getField($field, array &$fieldHandleParts = null)\n {\n if (is_numeric($field)) {\n $fieldHandleParts = null;\n return Craft::$app->getFields()->getFieldById($field);\n }\n\n $fieldHandleParts = explode('.', $field);\n return $this->fields[$fieldHandleParts[0]] ?? null;\n }", "private function isField($fld)\n {\n return isset($this->columns->{$fld});\n }", "abstract function fields();", "function get_field( $field, $query = null ){\r\n\t\tif( $row = $this->get_row( $query ) and isset( $row[$field] ) )\r\n\t\t\treturn $row[$field];\r\n\r\n\t}", "function GetField($field=0){\n\t\t\treturn @mysql_result($this->result,0,$field);\n\t\t}", "public function returnFindByField($field);", "public function getFieldFromModel($field)\n {\n return Data::getAdvanced(\n $this->model->fieldsIndex[$field],\n $this->model->fields[$this->model->fieldsIndex[$field]],\n static::FIELD_PREFIX . $this->getID(),\n $this,\n );\n }", "function acf_get_raw_field($id = 0)\n{\n}", "public function get_field( $id )\n {\n \tif( isset( $this->_fields[ $id ] ) ){\n return $this->_fields[ $id ];\n }\n\n /* MISSING FORM ID FALLBACK */\n /*\n if( ! $form_id ){\n $form_id = $wpdb->get_var( $wpdb->prepare(\n \"SELECT parent_id from {$wpdb->prefix}nf3_fields WHERE id = %d\", $id\n ));\n $this->_object = $this->_form = new NF_Database_Models_Form( $this->_db, $id );\n }\n */\n\n if( ! $this->_fields ){\n\t\t\t$this->get_fields();\n }\n\n if( ! isset( $this->_fields[ $id ] ) ){\n $form_id = $this->_object->get_id();\n $this->_fields[ $id ] = new NF_Database_Models_Field( $this->_db, $id, $form_id );\n }\n\n return $this->_fields[ $id ];\n }", "public function getField()\n {\n return $this->_field;\n }", "function getDataField() {return $this->_datafield;}", "function GetFields($s, &$form, $id, $data) {}", "function getFields();", "public function _get($field) {\n\t\tif(property_exists($this, $field)) return $this->{$field}; \n\t\telse return NULL;\n\t}", "public function getField(int $position): FieldInterface\n {\n return $this->fields[$position] ?? $this->fields[$position] = $this->instantiateField($position);\n }", "public function get_field_value($field)\n\t{\n\t\t//$field = strtoupper($field);\t\t\n\t\tif ($this->is_bound($field))\n\t\t{\n\t\t\treturn $this->get_bound_value($field);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->_fields[$field];\n\t\t}\n\t}" ]
[ "0.70172405", "0.6968433", "0.68760514", "0.68760514", "0.68760514", "0.680923", "0.67495114", "0.66692966", "0.6586472", "0.6586472", "0.6547807", "0.6516663", "0.64797294", "0.64658976", "0.64171755", "0.64171755", "0.64171755", "0.64171755", "0.64171755", "0.6408191", "0.63074356", "0.62678874", "0.62130505", "0.6176428", "0.6153865", "0.61484146", "0.60963017", "0.6082553", "0.60803246", "0.6066274", "0.6062509", "0.60546273", "0.60426056", "0.5978525", "0.5974363", "0.5972828", "0.5972281", "0.5970393", "0.5965703", "0.59570646", "0.59205776", "0.59107107", "0.5908525", "0.5893521", "0.5891294", "0.5890597", "0.58836675", "0.58543265", "0.58542234", "0.5852991", "0.5849588", "0.5844907", "0.58445597", "0.58400995", "0.5837923", "0.58373624", "0.58365583", "0.5834556", "0.58282596", "0.5810471", "0.5810357", "0.5810068", "0.5808903", "0.5808308", "0.58040154", "0.579666", "0.579666", "0.5792183", "0.5788469", "0.57855046", "0.5778198", "0.5762677", "0.5756931", "0.5749285", "0.5742298", "0.57279", "0.5726304", "0.5720312", "0.5708539", "0.5703931", "0.5694905", "0.56943643", "0.5692118", "0.56887907", "0.56877285", "0.5678077", "0.56770813", "0.56739277", "0.5671739", "0.5669772", "0.56676143", "0.5661818", "0.5658085", "0.56562287", "0.5652919", "0.5642978", "0.5640368", "0.56364185", "0.56334144" ]
0.6920136
3
Table level events Row Rendering event
function Row_Rendering() { // Enter your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $planilla;\n\n\t\t// Call Row_Rendering event\n\t\t$planilla->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idPlanilla\n\n\t\t$planilla->idPlanilla->CellCssStyle = \"\";\n\t\t$planilla->idPlanilla->CellCssClass = \"\";\n\n\t\t// Nombre\n\t\t$planilla->Nombre->CellCssStyle = \"\";\n\t\t$planilla->Nombre->CellCssClass = \"\";\n\t\tif ($planilla->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->ViewValue = $planilla->idPlanilla->CurrentValue;\n\t\t\t$planilla->idPlanilla->CssStyle = \"\";\n\t\t\t$planilla->idPlanilla->CssClass = \"\";\n\t\t\t$planilla->idPlanilla->ViewCustomAttributes = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->ViewValue = $planilla->Nombre->CurrentValue;\n\t\t\t$planilla->Nombre->CssStyle = \"\";\n\t\t\t$planilla->Nombre->CssClass = \"\";\n\t\t\t$planilla->Nombre->ViewCustomAttributes = \"\";\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->HrefValue = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$planilla->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idservicio_medico_prestado\n\t\t// idcuenta\n\t\t// fecha_inicio\n\t\t// fecha_final\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;\n\t\t\t$this->idservicio_medico_prestado->ViewCustomAttributes = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->ViewValue = $this->idcuenta->CurrentValue;\n\t\t\t$this->idcuenta->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->ViewValue = $this->fecha_inicio->CurrentValue;\n\t\t\t$this->fecha_inicio->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->ViewValue = $this->fecha_final->CurrentValue;\n\t\t\t$this->fecha_final->ViewCustomAttributes = \"\";\n\n\t\t\t// estado\n\t\t\tif (strval($this->estado->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->estado->CurrentValue) {\n\t\t\t\t\tcase $this->estado->FldTagValue(1):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(1) <> \"\" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(2):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(2) <> \"\" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(3):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(3) <> \"\" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->estado->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->LinkCustomAttributes = \"\";\n\t\t\t$this->idservicio_medico_prestado->HrefValue = \"\";\n\t\t\t$this->idservicio_medico_prestado->TooltipValue = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->LinkCustomAttributes = \"\";\n\t\t\t$this->idcuenta->HrefValue = \"\";\n\t\t\t$this->idcuenta->TooltipValue = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_inicio->HrefValue = \"\";\n\t\t\t$this->fecha_inicio->TooltipValue = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_final->HrefValue = \"\";\n\t\t\t$this->fecha_final->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderListRow() {\n\t\tglobal $conn, $Security;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// C_EVENT_ID\n\n\t\t$this->C_EVENT_ID->CellCssStyle = \"\"; $this->C_EVENT_ID->CellCssClass = \"\";\n\t\t$this->C_EVENT_ID->CellAttrs = array(); $this->C_EVENT_ID->ViewAttrs = array(); $this->C_EVENT_ID->EditAttrs = array();\n\n\t\t// FK_CONGTY_ID\n\t\t$this->FK_CONGTY_ID->CellCssStyle = \"\"; $this->FK_CONGTY_ID->CellCssClass = \"\";\n\t\t$this->FK_CONGTY_ID->CellAttrs = array(); $this->FK_CONGTY_ID->ViewAttrs = array(); $this->FK_CONGTY_ID->EditAttrs = array();\n\n\t\t// C_TYPE_EVENT\n\t\t$this->C_TYPE_EVENT->CellCssStyle = \"\"; $this->C_TYPE_EVENT->CellCssClass = \"\";\n\t\t$this->C_TYPE_EVENT->CellAttrs = array(); $this->C_TYPE_EVENT->ViewAttrs = array(); $this->C_TYPE_EVENT->EditAttrs = array();\n\n\t\t// C_POST\n\t\t$this->C_POST->CellCssStyle = \"\"; $this->C_POST->CellCssClass = \"\";\n\t\t$this->C_POST->CellAttrs = array(); $this->C_POST->ViewAttrs = array(); $this->C_POST->EditAttrs = array();\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->CellCssStyle = \"\"; $this->C_DATETIME_BEGIN->CellCssClass = \"\";\n\t\t$this->C_DATETIME_BEGIN->CellAttrs = array(); $this->C_DATETIME_BEGIN->ViewAttrs = array(); $this->C_DATETIME_BEGIN->EditAttrs = array();\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->CellCssStyle = \"\"; $this->C_DATETIME_END->CellCssClass = \"\";\n\t\t$this->C_DATETIME_END->CellAttrs = array(); $this->C_DATETIME_END->ViewAttrs = array(); $this->C_DATETIME_END->EditAttrs = array();\n\n\t\t// C_ODER\n\t\t$this->C_ODER->CellCssStyle = \"\"; $this->C_ODER->CellCssClass = \"\";\n\t\t$this->C_ODER->CellAttrs = array(); $this->C_ODER->ViewAttrs = array(); $this->C_ODER->EditAttrs = array();\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->CellCssStyle = \"\"; $this->C_USER_ADD->CellCssClass = \"\";\n\t\t$this->C_USER_ADD->CellAttrs = array(); $this->C_USER_ADD->ViewAttrs = array(); $this->C_USER_ADD->EditAttrs = array();\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->CellCssStyle = \"\"; $this->C_ADD_TIME->CellCssClass = \"\";\n\t\t$this->C_ADD_TIME->CellAttrs = array(); $this->C_ADD_TIME->ViewAttrs = array(); $this->C_ADD_TIME->EditAttrs = array();\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->CellCssStyle = \"\"; $this->C_USER_EDIT->CellCssClass = \"\";\n\t\t$this->C_USER_EDIT->CellAttrs = array(); $this->C_USER_EDIT->ViewAttrs = array(); $this->C_USER_EDIT->EditAttrs = array();\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->CellCssStyle = \"\"; $this->C_EDIT_TIME->CellCssClass = \"\";\n\t\t$this->C_EDIT_TIME->CellAttrs = array(); $this->C_EDIT_TIME->ViewAttrs = array(); $this->C_EDIT_TIME->EditAttrs = array();\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\t$this->C_ACTIVE_LEVELSITE->CellCssStyle = \"\"; $this->C_ACTIVE_LEVELSITE->CellCssClass = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->CellAttrs = array(); $this->C_ACTIVE_LEVELSITE->ViewAttrs = array(); $this->C_ACTIVE_LEVELSITE->EditAttrs = array();\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->CellCssStyle = \"\"; $this->C_TIME_ACTIVE->CellCssClass = \"\";\n\t\t$this->C_TIME_ACTIVE->CellAttrs = array(); $this->C_TIME_ACTIVE->ViewAttrs = array(); $this->C_TIME_ACTIVE->EditAttrs = array();\n\n\t\t// C_SEND_MAIL\n\t\t$this->C_SEND_MAIL->CellCssStyle = \"\"; $this->C_SEND_MAIL->CellCssClass = \"\";\n\t\t$this->C_SEND_MAIL->CellAttrs = array(); $this->C_SEND_MAIL->ViewAttrs = array(); $this->C_SEND_MAIL->EditAttrs = array();\n\n\t\t// C_FK_BROWSE\n\t\t$this->C_FK_BROWSE->CellCssStyle = \"\"; $this->C_FK_BROWSE->CellCssClass = \"\";\n\t\t$this->C_FK_BROWSE->CellAttrs = array(); $this->C_FK_BROWSE->ViewAttrs = array(); $this->C_FK_BROWSE->EditAttrs = array();\n\n\t\t// FK_ARRAY_TINBAI\n\t\t$this->FK_ARRAY_TINBAI->CellCssStyle = \"\"; $this->FK_ARRAY_TINBAI->CellCssClass = \"\";\n\t\t$this->FK_ARRAY_TINBAI->CellAttrs = array(); $this->FK_ARRAY_TINBAI->ViewAttrs = array(); $this->FK_ARRAY_TINBAI->EditAttrs = array();\n\n\t\t// FK_ARRAY_CONGTY\n\t\t$this->FK_ARRAY_CONGTY->CellCssStyle = \"\"; $this->FK_ARRAY_CONGTY->CellCssClass = \"\";\n\t\t$this->FK_ARRAY_CONGTY->CellAttrs = array(); $this->FK_ARRAY_CONGTY->ViewAttrs = array(); $this->FK_ARRAY_CONGTY->EditAttrs = array();\n\n\t\t// C_EVENT_ID\n\t\t$this->C_EVENT_ID->ViewValue = $this->C_EVENT_ID->CurrentValue;\n\t\t$this->C_EVENT_ID->CssStyle = \"\";\n\t\t$this->C_EVENT_ID->CssClass = \"\";\n\t\t$this->C_EVENT_ID->ViewCustomAttributes = \"\";\n\n\t\t// FK_CONGTY_ID\n\t\tif (strval($this->FK_CONGTY_ID->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`PK_MACONGTY` = \" . ew_AdjustSql($this->FK_CONGTY_ID->CurrentValue) . \"\";\n\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_CONGTY_ID->ViewValue = $rswrk->fields('C_TENCONGTY');\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_CONGTY_ID->ViewValue = $this->FK_CONGTY_ID->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_CONGTY_ID->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_CONGTY_ID->CssStyle = \"\";\n\t\t$this->FK_CONGTY_ID->CssClass = \"\";\n\t\t$this->FK_CONGTY_ID->ViewCustomAttributes = \"\";\n\n\t\t// C_TYPE_EVENT\n\t\tif (strval($this->C_TYPE_EVENT->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_TYPE_EVENT->CurrentValue) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai Popup\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai su kien theo bai viet\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"3\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai su kien lien ket\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = $this->C_TYPE_EVENT->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_TYPE_EVENT->ViewValue = NULL;\n\t\t}\n\t\t$this->C_TYPE_EVENT->CssStyle = \"\";\n\t\t$this->C_TYPE_EVENT->CssClass = \"\";\n\t\t$this->C_TYPE_EVENT->ViewCustomAttributes = \"\";\n\n\t\t// C_POST\n\t\tif (strval($this->C_POST->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_POST->CurrentValue) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"trang chu\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"trang tuyen sinh\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_POST->ViewValue = $this->C_POST->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_POST->ViewValue = NULL;\n\t\t}\n\t\t$this->C_POST->CssStyle = \"\";\n\t\t$this->C_POST->CssClass = \"\";\n\t\t$this->C_POST->ViewCustomAttributes = \"\";\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->ViewValue = $this->C_DATETIME_BEGIN->CurrentValue;\n\t\t$this->C_DATETIME_BEGIN->ViewValue = ew_FormatDateTime($this->C_DATETIME_BEGIN->ViewValue, 7);\n\t\t$this->C_DATETIME_BEGIN->CssStyle = \"\";\n\t\t$this->C_DATETIME_BEGIN->CssClass = \"\";\n\t\t$this->C_DATETIME_BEGIN->ViewCustomAttributes = \"\";\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->ViewValue = $this->C_DATETIME_END->CurrentValue;\n\t\t$this->C_DATETIME_END->ViewValue = ew_FormatDateTime($this->C_DATETIME_END->ViewValue, 7);\n\t\t$this->C_DATETIME_END->CssStyle = \"\";\n\t\t$this->C_DATETIME_END->CssClass = \"\";\n\t\t$this->C_DATETIME_END->ViewCustomAttributes = \"\";\n\n\t\t// C_ODER\n\t\t$this->C_ODER->ViewValue = $this->C_ODER->CurrentValue;\n\t\t$this->C_ODER->ViewValue = ew_FormatDateTime($this->C_ODER->ViewValue, 7);\n\t\t$this->C_ODER->CssStyle = \"\";\n\t\t$this->C_ODER->CssClass = \"\";\n\t\t$this->C_ODER->ViewCustomAttributes = \"\";\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->ViewValue = $this->C_USER_ADD->CurrentValue;\n\t\t$this->C_USER_ADD->CssStyle = \"\";\n\t\t$this->C_USER_ADD->CssClass = \"\";\n\t\t$this->C_USER_ADD->ViewCustomAttributes = \"\";\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->ViewValue = $this->C_ADD_TIME->CurrentValue;\n\t\t$this->C_ADD_TIME->ViewValue = ew_FormatDateTime($this->C_ADD_TIME->ViewValue, 7);\n\t\t$this->C_ADD_TIME->CssStyle = \"\";\n\t\t$this->C_ADD_TIME->CssClass = \"\";\n\t\t$this->C_ADD_TIME->ViewCustomAttributes = \"\";\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->ViewValue = $this->C_USER_EDIT->CurrentValue;\n\t\t$this->C_USER_EDIT->CssStyle = \"\";\n\t\t$this->C_USER_EDIT->CssClass = \"\";\n\t\t$this->C_USER_EDIT->ViewCustomAttributes = \"\";\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->ViewValue = $this->C_EDIT_TIME->CurrentValue;\n\t\t$this->C_EDIT_TIME->ViewValue = ew_FormatDateTime($this->C_EDIT_TIME->ViewValue, 7);\n\t\t$this->C_EDIT_TIME->CssStyle = \"\";\n\t\t$this->C_EDIT_TIME->CssClass = \"\";\n\t\t$this->C_EDIT_TIME->ViewCustomAttributes = \"\";\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\tif (strval($this->C_ACTIVE_LEVELSITE->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_ACTIVE_LEVELSITE->CurrentValue) {\n\t\t\t\tcase \"0\":\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = \"khong kich hoat\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = \"Kich hoat\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = $this->C_ACTIVE_LEVELSITE->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = NULL;\n\t\t}\n\t\t$this->C_ACTIVE_LEVELSITE->CssStyle = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->CssClass = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->ViewCustomAttributes = \"\";\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->ViewValue = $this->C_TIME_ACTIVE->CurrentValue;\n\t\t$this->C_TIME_ACTIVE->ViewValue = ew_FormatDateTime($this->C_TIME_ACTIVE->ViewValue, 7);\n\t\t$this->C_TIME_ACTIVE->CssStyle = \"\";\n\t\t$this->C_TIME_ACTIVE->CssClass = \"\";\n\t\t$this->C_TIME_ACTIVE->ViewCustomAttributes = \"\";\n\n\t\t// C_SEND_MAIL\n\t\tif (strval($this->C_SEND_MAIL->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_SEND_MAIL->CurrentValue) {\n\t\t\t\tcase \"0\":\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = \"khong gui mail\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = \"gui mail\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = $this->C_SEND_MAIL->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_SEND_MAIL->ViewValue = NULL;\n\t\t}\n\t\t$this->C_SEND_MAIL->CssStyle = \"\";\n\t\t$this->C_SEND_MAIL->CssClass = \"\";\n\t\t$this->C_SEND_MAIL->ViewCustomAttributes = \"\";\n\n\t\t// C_FK_BROWSE\n\t\tif (strval($this->C_FK_BROWSE->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->C_FK_BROWSE->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`C_HOTEN` = '\" . ew_AdjustSql(trim($wrk)) . \"'\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_EMAIL` FROM `t_nguoidung`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->C_FK_BROWSE->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->C_FK_BROWSE->ViewValue .= $rswrk->fields('C_EMAIL');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->C_FK_BROWSE->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->C_FK_BROWSE->ViewValue = $this->C_FK_BROWSE->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_FK_BROWSE->ViewValue = NULL;\n\t\t}\n\t\t$this->C_FK_BROWSE->CssStyle = \"\";\n\t\t$this->C_FK_BROWSE->CssClass = \"\";\n\t\t$this->C_FK_BROWSE->ViewCustomAttributes = \"\";\n\n\t\t// FK_ARRAY_TINBAI\n\t\tif (strval($this->FK_ARRAY_TINBAI->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->FK_ARRAY_TINBAI->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`PK_TINBAI_ID` = \" . ew_AdjustSql(trim($wrk)) . \"\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_TITLE` FROM `t_tinbai_levelsite`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue .= $rswrk->fields('C_TITLE');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->FK_ARRAY_TINBAI->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = $this->FK_ARRAY_TINBAI->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_ARRAY_TINBAI->CssStyle = \"\";\n\t\t$this->FK_ARRAY_TINBAI->CssClass = \"\";\n\t\t$this->FK_ARRAY_TINBAI->ViewCustomAttributes = \"\";\n\n\t\t// FK_ARRAY_CONGTY\n\t\tif (strval($this->FK_ARRAY_CONGTY->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->FK_ARRAY_CONGTY->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`PK_MACONGTY` = \" . ew_AdjustSql(trim($wrk)) . \"\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue .= $rswrk->fields('C_TENCONGTY');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->FK_ARRAY_CONGTY->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = $this->FK_ARRAY_CONGTY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_ARRAY_CONGTY->CssStyle = \"\";\n\t\t$this->FK_ARRAY_CONGTY->CssClass = \"\";\n\t\t$this->FK_ARRAY_CONGTY->ViewCustomAttributes = \"\";\n\n\t\t// C_EVENT_ID\n\t\t$this->C_EVENT_ID->HrefValue = \"\";\n\t\t$this->C_EVENT_ID->TooltipValue = \"\";\n\n\t\t// FK_CONGTY_ID\n\t\t$this->FK_CONGTY_ID->HrefValue = \"\";\n\t\t$this->FK_CONGTY_ID->TooltipValue = \"\";\n\n\t\t// C_TYPE_EVENT\n\t\t$this->C_TYPE_EVENT->HrefValue = \"\";\n\t\t$this->C_TYPE_EVENT->TooltipValue = \"\";\n\n\t\t// C_POST\n\t\t$this->C_POST->HrefValue = \"\";\n\t\t$this->C_POST->TooltipValue = \"\";\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->HrefValue = \"\";\n\t\t$this->C_DATETIME_BEGIN->TooltipValue = \"\";\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->HrefValue = \"\";\n\t\t$this->C_DATETIME_END->TooltipValue = \"\";\n\n\t\t// C_ODER\n\t\t$this->C_ODER->HrefValue = \"\";\n\t\t$this->C_ODER->TooltipValue = \"\";\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->HrefValue = \"\";\n\t\t$this->C_USER_ADD->TooltipValue = \"\";\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->HrefValue = \"\";\n\t\t$this->C_ADD_TIME->TooltipValue = \"\";\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->HrefValue = \"\";\n\t\t$this->C_USER_EDIT->TooltipValue = \"\";\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->HrefValue = \"\";\n\t\t$this->C_EDIT_TIME->TooltipValue = \"\";\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\t$this->C_ACTIVE_LEVELSITE->HrefValue = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->TooltipValue = \"\";\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->HrefValue = \"\";\n\t\t$this->C_TIME_ACTIVE->TooltipValue = \"\";\n\n\t\t// C_SEND_MAIL\n\t\t$this->C_SEND_MAIL->HrefValue = \"\";\n\t\t$this->C_SEND_MAIL->TooltipValue = \"\";\n\n\t\t// C_FK_BROWSE\n\t\t$this->C_FK_BROWSE->HrefValue = \"\";\n\t\t$this->C_FK_BROWSE->TooltipValue = \"\";\n\n\t\t// FK_ARRAY_TINBAI\n\t\t$this->FK_ARRAY_TINBAI->HrefValue = \"\";\n\t\t$this->FK_ARRAY_TINBAI->TooltipValue = \"\";\n\n\t\t// FK_ARRAY_CONGTY\n\t\t$this->FK_ARRAY_CONGTY->HrefValue = \"\";\n\t\t$this->FK_ARRAY_CONGTY->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// ContentDate\n\t\t$patient_detail->ContentDate->CellCssStyle = \"\";\n\t\t$patient_detail->ContentDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// ContentTime\n\t\t$patient_detail->ContentTime->CellCssStyle = \"\";\n\t\t$patient_detail->ContentTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fecha_tamizaje\n\t\t// id_centro\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// ci\n\t\t// fecha_nacimiento\n\t\t// dias\n\t\t// semanas\n\t\t// meses\n\t\t// sexo\n\t\t// discapacidad\n\t\t// id_tipodiscapacidad\n\t\t// resultado\n\t\t// resultadotamizaje\n\t\t// tapon\n\t\t// tipo\n\t\t// repetirprueba\n\t\t// observaciones\n\t\t// id_apoderado\n\t\t// id_referencia\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha_tamizaje\n\t\t$this->fecha_tamizaje->ViewValue = $this->fecha_tamizaje->CurrentValue;\n\t\t$this->fecha_tamizaje->ViewValue = ew_FormatDateTime($this->fecha_tamizaje->ViewValue, 0);\n\t\t$this->fecha_tamizaje->ViewCustomAttributes = \"\";\n\n\t\t// id_centro\n\t\tif (strval($this->id_centro->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_centro->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `institucionesdesalud`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_centro->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_centro, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_centro->ViewValue = NULL;\n\t\t}\n\t\t$this->id_centro->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 0);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// dias\n\t\t$this->dias->ViewValue = $this->dias->CurrentValue;\n\t\t$this->dias->ViewCustomAttributes = \"\";\n\n\t\t// semanas\n\t\t$this->semanas->ViewValue = $this->semanas->CurrentValue;\n\t\t$this->semanas->ViewCustomAttributes = \"\";\n\n\t\t// meses\n\t\t$this->meses->ViewValue = $this->meses->CurrentValue;\n\t\t$this->meses->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// discapacidad\n\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\tif (strval($this->discapacidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->discapacidad->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->discapacidad->ViewValue = NULL;\n\t\t}\n\t\t$this->discapacidad->ViewCustomAttributes = \"\";\n\n\t\t// id_tipodiscapacidad\n\t\t$this->id_tipodiscapacidad->ViewValue = $this->id_tipodiscapacidad->CurrentValue;\n\t\t$this->id_tipodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// resultado\n\t\t$this->resultado->ViewValue = $this->resultado->CurrentValue;\n\t\t$this->resultado->ViewCustomAttributes = \"\";\n\n\t\t// resultadotamizaje\n\t\t$this->resultadotamizaje->ViewValue = $this->resultadotamizaje->CurrentValue;\n\t\t$this->resultadotamizaje->ViewCustomAttributes = \"\";\n\n\t\t// tapon\n\t\tif (strval($this->tapon->CurrentValue) <> \"\") {\n\t\t\t$this->tapon->ViewValue = $this->tapon->OptionCaption($this->tapon->CurrentValue);\n\t\t} else {\n\t\t\t$this->tapon->ViewValue = NULL;\n\t\t}\n\t\t$this->tapon->ViewCustomAttributes = \"\";\n\n\t\t// tipo\n\t\tif (strval($this->tipo->CurrentValue) <> \"\") {\n\t\t\t$this->tipo->ViewValue = $this->tipo->OptionCaption($this->tipo->CurrentValue);\n\t\t} else {\n\t\t\t$this->tipo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo->ViewCustomAttributes = \"\";\n\n\t\t// repetirprueba\n\t\tif (strval($this->repetirprueba->CurrentValue) <> \"\") {\n\t\t\t$this->repetirprueba->ViewValue = $this->repetirprueba->OptionCaption($this->repetirprueba->CurrentValue);\n\t\t} else {\n\t\t\t$this->repetirprueba->ViewValue = NULL;\n\t\t}\n\t\t$this->repetirprueba->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// id_apoderado\n\t\tif ($this->id_apoderado->VirtualValue <> \"\") {\n\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_apoderado->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_apoderado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombres` AS `DispFld`, `apellidopaterno` AS `Disp2Fld`, `apellidopaterno` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `apoderado`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_apoderado->LookupFilters = array(\"dx1\" => '`nombres`', \"dx2\" => '`apellidopaterno`', \"dx3\" => '`apellidopaterno`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_apoderado, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_apoderado->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_apoderado->ViewCustomAttributes = \"\";\n\n\t\t// id_referencia\n\t\tif ($this->id_referencia->VirtualValue <> \"\") {\n\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_referencia->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_referencia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombrescentromedico` AS `DispFld`, `nombrescompleto` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `referencia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_referencia->LookupFilters = array(\"dx1\" => '`nombrescentromedico`', \"dx2\" => '`nombrescompleto`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_referencia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_referencia->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_referencia->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->HrefValue = \"\";\n\t\t\t$this->fecha_tamizaje->TooltipValue = \"\";\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->LinkCustomAttributes = \"\";\n\t\t\t$this->id_centro->HrefValue = \"\";\n\t\t\t$this->id_centro->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// dias\n\t\t\t$this->dias->LinkCustomAttributes = \"\";\n\t\t\t$this->dias->HrefValue = \"\";\n\t\t\t$this->dias->TooltipValue = \"\";\n\n\t\t\t// semanas\n\t\t\t$this->semanas->LinkCustomAttributes = \"\";\n\t\t\t$this->semanas->HrefValue = \"\";\n\t\t\t$this->semanas->TooltipValue = \"\";\n\n\t\t\t// meses\n\t\t\t$this->meses->LinkCustomAttributes = \"\";\n\t\t\t$this->meses->HrefValue = \"\";\n\t\t\t$this->meses->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->discapacidad->HrefValue = \"\";\n\t\t\t$this->discapacidad->TooltipValue = \"\";\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->HrefValue = \"\";\n\t\t\t$this->id_tipodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// resultado\n\t\t\t$this->resultado->LinkCustomAttributes = \"\";\n\t\t\t$this->resultado->HrefValue = \"\";\n\t\t\t$this->resultado->TooltipValue = \"\";\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->HrefValue = \"\";\n\t\t\t$this->resultadotamizaje->TooltipValue = \"\";\n\n\t\t\t// tapon\n\t\t\t$this->tapon->LinkCustomAttributes = \"\";\n\t\t\t$this->tapon->HrefValue = \"\";\n\t\t\t$this->tapon->TooltipValue = \"\";\n\n\t\t\t// tipo\n\t\t\t$this->tipo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo->HrefValue = \"\";\n\t\t\t$this->tipo->TooltipValue = \"\";\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->LinkCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->HrefValue = \"\";\n\t\t\t$this->repetirprueba->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->LinkCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->HrefValue = \"\";\n\t\t\t$this->id_apoderado->TooltipValue = \"\";\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->LinkCustomAttributes = \"\";\n\t\t\t$this->id_referencia->HrefValue = \"\";\n\t\t\t$this->id_referencia->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_tamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_tamizaje->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_tamizaje->PlaceHolder = ew_RemoveHtml($this->fecha_tamizaje->FldCaption());\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_centro->EditCustomAttributes = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidopaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->EditValue = ew_HtmlEncode($this->apellidopaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidopaterno->PlaceHolder = ew_RemoveHtml($this->apellidopaterno->FldCaption());\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidomaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->EditValue = ew_HtmlEncode($this->apellidomaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidomaterno->PlaceHolder = ew_RemoveHtml($this->apellidomaterno->FldCaption());\n\n\t\t\t// nombre\n\t\t\t$this->nombre->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre->EditCustomAttributes = \"\";\n\t\t\t$this->nombre->EditValue = ew_HtmlEncode($this->nombre->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre->PlaceHolder = ew_RemoveHtml($this->nombre->FldCaption());\n\n\t\t\t// ci\n\t\t\t$this->ci->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ci->EditCustomAttributes = \"\";\n\t\t\t$this->ci->EditValue = ew_HtmlEncode($this->ci->AdvancedSearch->SearchValue);\n\t\t\t$this->ci->PlaceHolder = ew_RemoveHtml($this->ci->FldCaption());\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_nacimiento->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_nacimiento->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_nacimiento->PlaceHolder = ew_RemoveHtml($this->fecha_nacimiento->FldCaption());\n\n\t\t\t// dias\n\t\t\t$this->dias->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dias->EditCustomAttributes = \"\";\n\t\t\t$this->dias->EditValue = ew_HtmlEncode($this->dias->AdvancedSearch->SearchValue);\n\t\t\t$this->dias->PlaceHolder = ew_RemoveHtml($this->dias->FldCaption());\n\n\t\t\t// semanas\n\t\t\t$this->semanas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->semanas->EditCustomAttributes = \"\";\n\t\t\t$this->semanas->EditValue = ew_HtmlEncode($this->semanas->AdvancedSearch->SearchValue);\n\t\t\t$this->semanas->PlaceHolder = ew_RemoveHtml($this->semanas->FldCaption());\n\n\t\t\t// meses\n\t\t\t$this->meses->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->meses->EditCustomAttributes = \"\";\n\t\t\t$this->meses->EditValue = ew_HtmlEncode($this->meses->AdvancedSearch->SearchValue);\n\t\t\t$this->meses->PlaceHolder = ew_RemoveHtml($this->meses->FldCaption());\n\n\t\t\t// sexo\n\t\t\t$this->sexo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sexo->EditCustomAttributes = \"\";\n\t\t\t$this->sexo->EditValue = $this->sexo->Options(TRUE);\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->discapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\tif (strval($this->discapacidad->AdvancedSearch->SearchValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->discapacidad->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->discapacidad->EditValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->discapacidad->PlaceHolder = ew_RemoveHtml($this->discapacidad->FldCaption());\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_tipodiscapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->EditValue = ew_HtmlEncode($this->id_tipodiscapacidad->AdvancedSearch->SearchValue);\n\t\t\t$this->id_tipodiscapacidad->PlaceHolder = ew_RemoveHtml($this->id_tipodiscapacidad->FldCaption());\n\n\t\t\t// resultado\n\t\t\t$this->resultado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultado->EditCustomAttributes = \"\";\n\t\t\t$this->resultado->EditValue = ew_HtmlEncode($this->resultado->AdvancedSearch->SearchValue);\n\t\t\t$this->resultado->PlaceHolder = ew_RemoveHtml($this->resultado->FldCaption());\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultadotamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->EditValue = ew_HtmlEncode($this->resultadotamizaje->AdvancedSearch->SearchValue);\n\t\t\t$this->resultadotamizaje->PlaceHolder = ew_RemoveHtml($this->resultadotamizaje->FldCaption());\n\n\t\t\t// tapon\n\t\t\t$this->tapon->EditCustomAttributes = \"\";\n\t\t\t$this->tapon->EditValue = $this->tapon->Options(FALSE);\n\n\t\t\t// tipo\n\t\t\t$this->tipo->EditCustomAttributes = \"\";\n\t\t\t$this->tipo->EditValue = $this->tipo->Options(FALSE);\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->EditCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->EditValue = $this->repetirprueba->Options(FALSE);\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->observaciones->EditCustomAttributes = \"\";\n\t\t\t$this->observaciones->EditValue = ew_HtmlEncode($this->observaciones->AdvancedSearch->SearchValue);\n\t\t\t$this->observaciones->PlaceHolder = ew_RemoveHtml($this->observaciones->FldCaption());\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_apoderado->EditCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->EditValue = ew_HtmlEncode($this->id_apoderado->AdvancedSearch->SearchValue);\n\t\t\t$this->id_apoderado->PlaceHolder = ew_RemoveHtml($this->id_apoderado->FldCaption());\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_referencia->EditCustomAttributes = \"\";\n\t\t\t$this->id_referencia->EditValue = ew_HtmlEncode($this->id_referencia->AdvancedSearch->SearchValue);\n\t\t\t$this->id_referencia->PlaceHolder = ew_RemoveHtml($this->id_referencia->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\t\t// datetime\r\n\t\t// script\r\n\t\t// user\r\n\t\t// action\r\n\t\t// table\r\n\t\t// field\r\n\t\t// keyvalue\r\n\t\t// oldvalue\r\n\t\t// newvalue\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->ViewValue = $this->datetime->CurrentValue;\r\n\t\t\t$this->datetime->ViewValue = ew_FormatDateTime($this->datetime->ViewValue, 5);\r\n\t\t\t$this->datetime->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->ViewValue = $this->script->CurrentValue;\r\n\t\t\t$this->script->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->ViewValue = $this->user->CurrentValue;\r\n\t\t\t$this->user->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->ViewValue = $this->action->CurrentValue;\r\n\t\t\t$this->action->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->ViewValue = $this->_table->CurrentValue;\r\n\t\t\t$this->_table->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->ViewValue = $this->_field->CurrentValue;\r\n\t\t\t$this->_field->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->ViewValue = $this->keyvalue->CurrentValue;\r\n\t\t\t$this->keyvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->ViewValue = $this->oldvalue->CurrentValue;\r\n\t\t\t$this->oldvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->ViewValue = $this->newvalue->CurrentValue;\r\n\t\t\t$this->newvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->LinkCustomAttributes = \"\";\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\t\t\t$this->datetime->TooltipValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->LinkCustomAttributes = \"\";\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\t\t\t$this->script->TooltipValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->LinkCustomAttributes = \"\";\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\t\t\t$this->user->TooltipValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->LinkCustomAttributes = \"\";\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\t\t\t$this->action->TooltipValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\t\t\t$this->_table->TooltipValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\t\t\t$this->_field->TooltipValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\t\t\t$this->keyvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\t\t\t$this->oldvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t\t$this->newvalue->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->EditCustomAttributes = \"\";\r\n\t\t\t$this->datetime->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->datetime->CurrentValue, 5));\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->EditCustomAttributes = \"\";\r\n\t\t\t$this->script->EditValue = ew_HtmlEncode($this->script->CurrentValue);\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->EditCustomAttributes = \"\";\r\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->EditCustomAttributes = \"\";\r\n\t\t\t$this->action->EditValue = ew_HtmlEncode($this->action->CurrentValue);\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->EditCustomAttributes = \"\";\r\n\t\t\t$this->_table->EditValue = ew_HtmlEncode($this->_table->CurrentValue);\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->EditCustomAttributes = \"\";\r\n\t\t\t$this->_field->EditValue = ew_HtmlEncode($this->_field->CurrentValue);\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->EditValue = ew_HtmlEncode($this->keyvalue->CurrentValue);\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->EditValue = ew_HtmlEncode($this->oldvalue->CurrentValue);\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->EditValue = ew_HtmlEncode($this->newvalue->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// datetime\r\n\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Id_tercero\n\t\t// nombre_tercero\n\t\t// direccion_tercero\n\t\t// telefono1_tercero\n\t\t// telefono2_tercero\n\t\t// fax_tercero\n\t\t// nit_tercero\n\t\t// tipo_tercero\n\t\t// e_mail_tercero\n\t\t// Contacto_tercero\n\t\t// gran_contrib_tercero\n\t\t// autoretenedor_tercero\n\t\t// activo_tercero\n\t\t// tercero_ registrado_por\n\t\t// reg_comun_tercero\n\t\t// responsable_materiales_tercero\n\t\t// grupo_nomina_tercero\n\t\t// tercero_ lider_Obra\n\t\t// tercero_nombre_lider\n\t\t// empresa_tercero\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Id_tercero\n\t\t$this->Id_tercero->ViewValue = $this->Id_tercero->CurrentValue;\n\t\t$this->Id_tercero->ViewCustomAttributes = \"\";\n\n\t\t// nombre_tercero\n\t\t$this->nombre_tercero->ViewValue = $this->nombre_tercero->CurrentValue;\n\t\t$this->nombre_tercero->ViewCustomAttributes = \"\";\n\n\t\t// direccion_tercero\n\t\t$this->direccion_tercero->ViewValue = $this->direccion_tercero->CurrentValue;\n\t\t$this->direccion_tercero->ViewCustomAttributes = \"\";\n\n\t\t// telefono1_tercero\n\t\t$this->telefono1_tercero->ViewValue = $this->telefono1_tercero->CurrentValue;\n\t\t$this->telefono1_tercero->ViewCustomAttributes = \"\";\n\n\t\t// telefono2_tercero\n\t\t$this->telefono2_tercero->ViewValue = $this->telefono2_tercero->CurrentValue;\n\t\t$this->telefono2_tercero->ViewCustomAttributes = \"\";\n\n\t\t// fax_tercero\n\t\t$this->fax_tercero->ViewValue = $this->fax_tercero->CurrentValue;\n\t\t$this->fax_tercero->ViewCustomAttributes = \"\";\n\n\t\t// nit_tercero\n\t\t$this->nit_tercero->ViewValue = $this->nit_tercero->CurrentValue;\n\t\t$this->nit_tercero->ViewCustomAttributes = \"\";\n\n\t\t// tipo_tercero\n\t\t$this->tipo_tercero->ViewValue = $this->tipo_tercero->CurrentValue;\n\t\t$this->tipo_tercero->ViewCustomAttributes = \"\";\n\n\t\t// e_mail_tercero\n\t\t$this->e_mail_tercero->ViewValue = $this->e_mail_tercero->CurrentValue;\n\t\t$this->e_mail_tercero->ViewCustomAttributes = \"\";\n\n\t\t// Contacto_tercero\n\t\t$this->Contacto_tercero->ViewValue = $this->Contacto_tercero->CurrentValue;\n\t\t$this->Contacto_tercero->ViewCustomAttributes = \"\";\n\n\t\t// gran_contrib_tercero\n\t\t$this->gran_contrib_tercero->ViewValue = $this->gran_contrib_tercero->CurrentValue;\n\t\t$this->gran_contrib_tercero->ViewCustomAttributes = \"\";\n\n\t\t// autoretenedor_tercero\n\t\t$this->autoretenedor_tercero->ViewValue = $this->autoretenedor_tercero->CurrentValue;\n\t\t$this->autoretenedor_tercero->ViewCustomAttributes = \"\";\n\n\t\t// activo_tercero\n\t\t$this->activo_tercero->ViewValue = $this->activo_tercero->CurrentValue;\n\t\t$this->activo_tercero->ViewCustomAttributes = \"\";\n\n\t\t// tercero_ registrado_por\n\t\t$this->tercero__registrado_por->ViewValue = $this->tercero__registrado_por->CurrentValue;\n\t\t$this->tercero__registrado_por->ViewCustomAttributes = \"\";\n\n\t\t// reg_comun_tercero\n\t\t$this->reg_comun_tercero->ViewValue = $this->reg_comun_tercero->CurrentValue;\n\t\t$this->reg_comun_tercero->ViewCustomAttributes = \"\";\n\n\t\t// responsable_materiales_tercero\n\t\t$this->responsable_materiales_tercero->ViewValue = $this->responsable_materiales_tercero->CurrentValue;\n\t\t$this->responsable_materiales_tercero->ViewCustomAttributes = \"\";\n\n\t\t// grupo_nomina_tercero\n\t\t$this->grupo_nomina_tercero->ViewValue = $this->grupo_nomina_tercero->CurrentValue;\n\t\t$this->grupo_nomina_tercero->ViewCustomAttributes = \"\";\n\n\t\t// tercero_ lider_Obra\n\t\t$this->tercero__lider_Obra->ViewValue = $this->tercero__lider_Obra->CurrentValue;\n\t\t$this->tercero__lider_Obra->ViewCustomAttributes = \"\";\n\n\t\t// tercero_nombre_lider\n\t\t$this->tercero_nombre_lider->ViewValue = $this->tercero_nombre_lider->CurrentValue;\n\t\t$this->tercero_nombre_lider->ViewCustomAttributes = \"\";\n\n\t\t// empresa_tercero\n\t\t$this->empresa_tercero->ViewValue = $this->empresa_tercero->CurrentValue;\n\t\t$this->empresa_tercero->ViewCustomAttributes = \"\";\n\n\t\t\t// Id_tercero\n\t\t\t$this->Id_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->Id_tercero->HrefValue = \"\";\n\t\t\t$this->Id_tercero->TooltipValue = \"\";\n\n\t\t\t// nombre_tercero\n\t\t\t$this->nombre_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_tercero->HrefValue = \"\";\n\t\t\t$this->nombre_tercero->TooltipValue = \"\";\n\n\t\t\t// direccion_tercero\n\t\t\t$this->direccion_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->direccion_tercero->HrefValue = \"\";\n\t\t\t$this->direccion_tercero->TooltipValue = \"\";\n\n\t\t\t// telefono1_tercero\n\t\t\t$this->telefono1_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono1_tercero->HrefValue = \"\";\n\t\t\t$this->telefono1_tercero->TooltipValue = \"\";\n\n\t\t\t// telefono2_tercero\n\t\t\t$this->telefono2_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono2_tercero->HrefValue = \"\";\n\t\t\t$this->telefono2_tercero->TooltipValue = \"\";\n\n\t\t\t// fax_tercero\n\t\t\t$this->fax_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->fax_tercero->HrefValue = \"\";\n\t\t\t$this->fax_tercero->TooltipValue = \"\";\n\n\t\t\t// nit_tercero\n\t\t\t$this->nit_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->nit_tercero->HrefValue = \"\";\n\t\t\t$this->nit_tercero->TooltipValue = \"\";\n\n\t\t\t// tipo_tercero\n\t\t\t$this->tipo_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_tercero->HrefValue = \"\";\n\t\t\t$this->tipo_tercero->TooltipValue = \"\";\n\n\t\t\t// e_mail_tercero\n\t\t\t$this->e_mail_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->e_mail_tercero->HrefValue = \"\";\n\t\t\t$this->e_mail_tercero->TooltipValue = \"\";\n\n\t\t\t// Contacto_tercero\n\t\t\t$this->Contacto_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->Contacto_tercero->HrefValue = \"\";\n\t\t\t$this->Contacto_tercero->TooltipValue = \"\";\n\n\t\t\t// gran_contrib_tercero\n\t\t\t$this->gran_contrib_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->gran_contrib_tercero->HrefValue = \"\";\n\t\t\t$this->gran_contrib_tercero->TooltipValue = \"\";\n\n\t\t\t// autoretenedor_tercero\n\t\t\t$this->autoretenedor_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->autoretenedor_tercero->HrefValue = \"\";\n\t\t\t$this->autoretenedor_tercero->TooltipValue = \"\";\n\n\t\t\t// activo_tercero\n\t\t\t$this->activo_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->activo_tercero->HrefValue = \"\";\n\t\t\t$this->activo_tercero->TooltipValue = \"\";\n\n\t\t\t// tercero_ registrado_por\n\t\t\t$this->tercero__registrado_por->LinkCustomAttributes = \"\";\n\t\t\t$this->tercero__registrado_por->HrefValue = \"\";\n\t\t\t$this->tercero__registrado_por->TooltipValue = \"\";\n\n\t\t\t// reg_comun_tercero\n\t\t\t$this->reg_comun_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->reg_comun_tercero->HrefValue = \"\";\n\t\t\t$this->reg_comun_tercero->TooltipValue = \"\";\n\n\t\t\t// responsable_materiales_tercero\n\t\t\t$this->responsable_materiales_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->responsable_materiales_tercero->HrefValue = \"\";\n\t\t\t$this->responsable_materiales_tercero->TooltipValue = \"\";\n\n\t\t\t// grupo_nomina_tercero\n\t\t\t$this->grupo_nomina_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->grupo_nomina_tercero->HrefValue = \"\";\n\t\t\t$this->grupo_nomina_tercero->TooltipValue = \"\";\n\n\t\t\t// tercero_ lider_Obra\n\t\t\t$this->tercero__lider_Obra->LinkCustomAttributes = \"\";\n\t\t\t$this->tercero__lider_Obra->HrefValue = \"\";\n\t\t\t$this->tercero__lider_Obra->TooltipValue = \"\";\n\n\t\t\t// tercero_nombre_lider\n\t\t\t$this->tercero_nombre_lider->LinkCustomAttributes = \"\";\n\t\t\t$this->tercero_nombre_lider->HrefValue = \"\";\n\t\t\t$this->tercero_nombre_lider->TooltipValue = \"\";\n\n\t\t\t// empresa_tercero\n\t\t\t$this->empresa_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->empresa_tercero->HrefValue = \"\";\n\t\t\t$this->empresa_tercero->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tgl\n\t\t// no_spp\n\t\t// jns_spp\n\t\t// kd_mata\n\t\t// urai\n\t\t// jmlh\n\t\t// jmlh1\n\t\t// jmlh2\n\t\t// jmlh3\n\t\t// jmlh4\n\t\t// nm_perus\n\t\t// alamat\n\t\t// npwp\n\t\t// pimpinan\n\t\t// bank\n\t\t// rek\n\t\t// nospm\n\t\t// tglspm\n\t\t// ppn\n\t\t// ps21\n\t\t// ps22\n\t\t// ps23\n\t\t// ps4\n\t\t// kodespm\n\t\t// nambud\n\t\t// nppk\n\t\t// nipppk\n\t\t// prog\n\t\t// prog1\n\t\t// bayar\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tgl\n\t\t$this->tgl->ViewValue = $this->tgl->CurrentValue;\n\t\t$this->tgl->ViewValue = ew_FormatDateTime($this->tgl->ViewValue, 0);\n\t\t$this->tgl->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// jns_spp\n\t\t$this->jns_spp->ViewValue = $this->jns_spp->CurrentValue;\n\t\t$this->jns_spp->ViewCustomAttributes = \"\";\n\n\t\t// kd_mata\n\t\t$this->kd_mata->ViewValue = $this->kd_mata->CurrentValue;\n\t\t$this->kd_mata->ViewCustomAttributes = \"\";\n\n\t\t// urai\n\t\t$this->urai->ViewValue = $this->urai->CurrentValue;\n\t\t$this->urai->ViewCustomAttributes = \"\";\n\n\t\t// jmlh\n\t\t$this->jmlh->ViewValue = $this->jmlh->CurrentValue;\n\t\t$this->jmlh->ViewCustomAttributes = \"\";\n\n\t\t// jmlh1\n\t\t$this->jmlh1->ViewValue = $this->jmlh1->CurrentValue;\n\t\t$this->jmlh1->ViewCustomAttributes = \"\";\n\n\t\t// jmlh2\n\t\t$this->jmlh2->ViewValue = $this->jmlh2->CurrentValue;\n\t\t$this->jmlh2->ViewCustomAttributes = \"\";\n\n\t\t// jmlh3\n\t\t$this->jmlh3->ViewValue = $this->jmlh3->CurrentValue;\n\t\t$this->jmlh3->ViewCustomAttributes = \"\";\n\n\t\t// jmlh4\n\t\t$this->jmlh4->ViewValue = $this->jmlh4->CurrentValue;\n\t\t$this->jmlh4->ViewCustomAttributes = \"\";\n\n\t\t// nm_perus\n\t\t$this->nm_perus->ViewValue = $this->nm_perus->CurrentValue;\n\t\t$this->nm_perus->ViewCustomAttributes = \"\";\n\n\t\t// alamat\n\t\t$this->alamat->ViewValue = $this->alamat->CurrentValue;\n\t\t$this->alamat->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan\n\t\t$this->pimpinan->ViewValue = $this->pimpinan->CurrentValue;\n\t\t$this->pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// bank\n\t\t$this->bank->ViewValue = $this->bank->CurrentValue;\n\t\t$this->bank->ViewCustomAttributes = \"\";\n\n\t\t// rek\n\t\t$this->rek->ViewValue = $this->rek->CurrentValue;\n\t\t$this->rek->ViewCustomAttributes = \"\";\n\n\t\t// nospm\n\t\t$this->nospm->ViewValue = $this->nospm->CurrentValue;\n\t\t$this->nospm->ViewCustomAttributes = \"\";\n\n\t\t// tglspm\n\t\t$this->tglspm->ViewValue = $this->tglspm->CurrentValue;\n\t\t$this->tglspm->ViewValue = ew_FormatDateTime($this->tglspm->ViewValue, 0);\n\t\t$this->tglspm->ViewCustomAttributes = \"\";\n\n\t\t// ppn\n\t\t$this->ppn->ViewValue = $this->ppn->CurrentValue;\n\t\t$this->ppn->ViewCustomAttributes = \"\";\n\n\t\t// ps21\n\t\t$this->ps21->ViewValue = $this->ps21->CurrentValue;\n\t\t$this->ps21->ViewCustomAttributes = \"\";\n\n\t\t// ps22\n\t\t$this->ps22->ViewValue = $this->ps22->CurrentValue;\n\t\t$this->ps22->ViewCustomAttributes = \"\";\n\n\t\t// ps23\n\t\t$this->ps23->ViewValue = $this->ps23->CurrentValue;\n\t\t$this->ps23->ViewCustomAttributes = \"\";\n\n\t\t// ps4\n\t\t$this->ps4->ViewValue = $this->ps4->CurrentValue;\n\t\t$this->ps4->ViewCustomAttributes = \"\";\n\n\t\t// kodespm\n\t\t$this->kodespm->ViewValue = $this->kodespm->CurrentValue;\n\t\t$this->kodespm->ViewCustomAttributes = \"\";\n\n\t\t// nambud\n\t\t$this->nambud->ViewValue = $this->nambud->CurrentValue;\n\t\t$this->nambud->ViewCustomAttributes = \"\";\n\n\t\t// nppk\n\t\t$this->nppk->ViewValue = $this->nppk->CurrentValue;\n\t\t$this->nppk->ViewCustomAttributes = \"\";\n\n\t\t// nipppk\n\t\t$this->nipppk->ViewValue = $this->nipppk->CurrentValue;\n\t\t$this->nipppk->ViewCustomAttributes = \"\";\n\n\t\t// prog\n\t\t$this->prog->ViewValue = $this->prog->CurrentValue;\n\t\t$this->prog->ViewCustomAttributes = \"\";\n\n\t\t// prog1\n\t\t$this->prog1->ViewValue = $this->prog1->CurrentValue;\n\t\t$this->prog1->ViewCustomAttributes = \"\";\n\n\t\t// bayar\n\t\t$this->bayar->ViewValue = $this->bayar->CurrentValue;\n\t\t$this->bayar->ViewCustomAttributes = \"\";\n\n\t\t\t// tgl\n\t\t\t$this->tgl->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl->HrefValue = \"\";\n\t\t\t$this->tgl->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// jns_spp\n\t\t\t$this->jns_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_spp->HrefValue = \"\";\n\t\t\t$this->jns_spp->TooltipValue = \"\";\n\n\t\t\t// kd_mata\n\t\t\t$this->kd_mata->LinkCustomAttributes = \"\";\n\t\t\t$this->kd_mata->HrefValue = \"\";\n\t\t\t$this->kd_mata->TooltipValue = \"\";\n\n\t\t\t// urai\n\t\t\t$this->urai->LinkCustomAttributes = \"\";\n\t\t\t$this->urai->HrefValue = \"\";\n\t\t\t$this->urai->TooltipValue = \"\";\n\n\t\t\t// jmlh\n\t\t\t$this->jmlh->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh->HrefValue = \"\";\n\t\t\t$this->jmlh->TooltipValue = \"\";\n\n\t\t\t// jmlh1\n\t\t\t$this->jmlh1->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh1->HrefValue = \"\";\n\t\t\t$this->jmlh1->TooltipValue = \"\";\n\n\t\t\t// jmlh2\n\t\t\t$this->jmlh2->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh2->HrefValue = \"\";\n\t\t\t$this->jmlh2->TooltipValue = \"\";\n\n\t\t\t// jmlh3\n\t\t\t$this->jmlh3->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh3->HrefValue = \"\";\n\t\t\t$this->jmlh3->TooltipValue = \"\";\n\n\t\t\t// jmlh4\n\t\t\t$this->jmlh4->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh4->HrefValue = \"\";\n\t\t\t$this->jmlh4->TooltipValue = \"\";\n\n\t\t\t// nm_perus\n\t\t\t$this->nm_perus->LinkCustomAttributes = \"\";\n\t\t\t$this->nm_perus->HrefValue = \"\";\n\t\t\t$this->nm_perus->TooltipValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$this->alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->alamat->HrefValue = \"\";\n\t\t\t$this->alamat->TooltipValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$this->npwp->LinkCustomAttributes = \"\";\n\t\t\t$this->npwp->HrefValue = \"\";\n\t\t\t$this->npwp->TooltipValue = \"\";\n\n\t\t\t// pimpinan\n\t\t\t$this->pimpinan->LinkCustomAttributes = \"\";\n\t\t\t$this->pimpinan->HrefValue = \"\";\n\t\t\t$this->pimpinan->TooltipValue = \"\";\n\n\t\t\t// bank\n\t\t\t$this->bank->LinkCustomAttributes = \"\";\n\t\t\t$this->bank->HrefValue = \"\";\n\t\t\t$this->bank->TooltipValue = \"\";\n\n\t\t\t// rek\n\t\t\t$this->rek->LinkCustomAttributes = \"\";\n\t\t\t$this->rek->HrefValue = \"\";\n\t\t\t$this->rek->TooltipValue = \"\";\n\n\t\t\t// nospm\n\t\t\t$this->nospm->LinkCustomAttributes = \"\";\n\t\t\t$this->nospm->HrefValue = \"\";\n\t\t\t$this->nospm->TooltipValue = \"\";\n\n\t\t\t// tglspm\n\t\t\t$this->tglspm->LinkCustomAttributes = \"\";\n\t\t\t$this->tglspm->HrefValue = \"\";\n\t\t\t$this->tglspm->TooltipValue = \"\";\n\n\t\t\t// ppn\n\t\t\t$this->ppn->LinkCustomAttributes = \"\";\n\t\t\t$this->ppn->HrefValue = \"\";\n\t\t\t$this->ppn->TooltipValue = \"\";\n\n\t\t\t// ps21\n\t\t\t$this->ps21->LinkCustomAttributes = \"\";\n\t\t\t$this->ps21->HrefValue = \"\";\n\t\t\t$this->ps21->TooltipValue = \"\";\n\n\t\t\t// ps22\n\t\t\t$this->ps22->LinkCustomAttributes = \"\";\n\t\t\t$this->ps22->HrefValue = \"\";\n\t\t\t$this->ps22->TooltipValue = \"\";\n\n\t\t\t// ps23\n\t\t\t$this->ps23->LinkCustomAttributes = \"\";\n\t\t\t$this->ps23->HrefValue = \"\";\n\t\t\t$this->ps23->TooltipValue = \"\";\n\n\t\t\t// ps4\n\t\t\t$this->ps4->LinkCustomAttributes = \"\";\n\t\t\t$this->ps4->HrefValue = \"\";\n\t\t\t$this->ps4->TooltipValue = \"\";\n\n\t\t\t// kodespm\n\t\t\t$this->kodespm->LinkCustomAttributes = \"\";\n\t\t\t$this->kodespm->HrefValue = \"\";\n\t\t\t$this->kodespm->TooltipValue = \"\";\n\n\t\t\t// nambud\n\t\t\t$this->nambud->LinkCustomAttributes = \"\";\n\t\t\t$this->nambud->HrefValue = \"\";\n\t\t\t$this->nambud->TooltipValue = \"\";\n\n\t\t\t// nppk\n\t\t\t$this->nppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nppk->HrefValue = \"\";\n\t\t\t$this->nppk->TooltipValue = \"\";\n\n\t\t\t// nipppk\n\t\t\t$this->nipppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nipppk->HrefValue = \"\";\n\t\t\t$this->nipppk->TooltipValue = \"\";\n\n\t\t\t// prog\n\t\t\t$this->prog->LinkCustomAttributes = \"\";\n\t\t\t$this->prog->HrefValue = \"\";\n\t\t\t$this->prog->TooltipValue = \"\";\n\n\t\t\t// prog1\n\t\t\t$this->prog1->LinkCustomAttributes = \"\";\n\t\t\t$this->prog1->HrefValue = \"\";\n\t\t\t$this->prog1->TooltipValue = \"\";\n\n\t\t\t// bayar\n\t\t\t$this->bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->bayar->HrefValue = \"\";\n\t\t\t$this->bayar->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Pase\r\n\t\t// Serie_Equipo\r\n\t\t// Id_Hardware\r\n\t\t// SN\r\n\t\t// Modelo_Net\r\n\t\t// Marca_Arranque\r\n\t\t// Nombre_Titular\r\n\t\t// Dni_Titular\r\n\t\t// Cuil_Titular\r\n\t\t// Nombre_Tutor\r\n\t\t// DniTutor\r\n\t\t// Domicilio\r\n\t\t// Tel_Tutor\r\n\t\t// CelTutor\r\n\t\t// Cue_Establecimiento_Alta\r\n\t\t// Escuela_Alta\r\n\t\t// Directivo_Alta\r\n\t\t// Cuil_Directivo_Alta\r\n\t\t// Dpto_Esc_alta\r\n\t\t// Localidad_Esc_Alta\r\n\t\t// Domicilio_Esc_Alta\r\n\t\t// Rte_Alta\r\n\t\t// Tel_Rte_Alta\r\n\t\t// Email_Rte_Alta\r\n\t\t// Serie_Server_Alta\r\n\t\t// Cue_Establecimiento_Baja\r\n\t\t// Escuela_Baja\r\n\t\t// Directivo_Baja\r\n\t\t// Cuil_Directivo_Baja\r\n\t\t// Dpto_Esc_Baja\r\n\t\t// Localidad_Esc_Baja\r\n\t\t// Domicilio_Esc_Baja\r\n\t\t// Rte_Baja\r\n\t\t// Tel_Rte_Baja\r\n\t\t// Email_Rte_Baja\r\n\t\t// Serie_Server_Baja\r\n\t\t// Fecha_Pase\r\n\t\t// Id_Estado_Pase\r\n\t\t// Ruta_Archivo\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Serie_Equipo\r\n\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->CurrentValue;\r\n\t\tif (strval($this->Serie_Equipo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->Serie_Equipo->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Serie_Equipo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Serie_Equipo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Hardware\r\n\t\t$this->Id_Hardware->ViewValue = $this->Id_Hardware->CurrentValue;\r\n\t\t$this->Id_Hardware->ViewCustomAttributes = \"\";\r\n\r\n\t\t// SN\r\n\t\t$this->SN->ViewValue = $this->SN->CurrentValue;\r\n\t\t$this->SN->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Modelo_Net\r\n\t\tif (strval($this->Modelo_Net->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Descripcion`\" . ew_SearchString(\"=\", $this->Modelo_Net->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Descripcion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Modelo_Net->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Modelo_Net, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Modelo_Net->ViewValue = $this->Modelo_Net->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Modelo_Net->ViewValue = $this->Modelo_Net->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Modelo_Net->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Modelo_Net->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Marca_Arranque\r\n\t\t$this->Marca_Arranque->ViewValue = $this->Marca_Arranque->CurrentValue;\r\n\t\t$this->Marca_Arranque->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nombre_Titular\r\n\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->CurrentValue;\r\n\t\tif (strval($this->Nombre_Titular->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nombre_Titular->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nombre_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni_Titular\r\n\t\t$this->Dni_Titular->ViewValue = $this->Dni_Titular->CurrentValue;\r\n\t\t$this->Dni_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Titular\r\n\t\t$this->Cuil_Titular->ViewValue = $this->Cuil_Titular->CurrentValue;\r\n\t\t$this->Cuil_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nombre_Tutor\r\n\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->CurrentValue;\r\n\t\tif (strval($this->Nombre_Tutor->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Tutor->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tutores`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nombre_Tutor->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nombre_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// DniTutor\r\n\t\t$this->DniTutor->ViewValue = $this->DniTutor->CurrentValue;\r\n\t\t$this->DniTutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio\r\n\t\t$this->Domicilio->ViewValue = $this->Domicilio->CurrentValue;\r\n\t\t$this->Domicilio->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Tutor\r\n\t\t$this->Tel_Tutor->ViewValue = $this->Tel_Tutor->CurrentValue;\r\n\t\t$this->Tel_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// CelTutor\r\n\t\t$this->CelTutor->ViewValue = $this->CelTutor->CurrentValue;\r\n\t\t$this->CelTutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue_Establecimiento_Alta\r\n\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->CurrentValue;\r\n\t\tif (strval($this->Cue_Establecimiento_Alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Alta->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Cue_Establecimiento_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Escuela_Alta\r\n\t\t$this->Escuela_Alta->ViewValue = $this->Escuela_Alta->CurrentValue;\r\n\t\t$this->Escuela_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Directivo_Alta\r\n\t\t$this->Directivo_Alta->ViewValue = $this->Directivo_Alta->CurrentValue;\r\n\t\t$this->Directivo_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Directivo_Alta\r\n\t\t$this->Cuil_Directivo_Alta->ViewValue = $this->Cuil_Directivo_Alta->CurrentValue;\r\n\t\t$this->Cuil_Directivo_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dpto_Esc_alta\r\n\t\tif (strval($this->Dpto_Esc_alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Dpto_Esc_alta->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Dpto_Esc_alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Dpto_Esc_alta->ViewValue = $this->Dpto_Esc_alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Dpto_Esc_alta->ViewValue = $this->Dpto_Esc_alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Dpto_Esc_alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Dpto_Esc_alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Localidad_Esc_Alta\r\n\t\tif (strval($this->Localidad_Esc_Alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Localidad_Esc_Alta->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Localidad_Esc_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Localidad_Esc_Alta->ViewValue = $this->Localidad_Esc_Alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Localidad_Esc_Alta->ViewValue = $this->Localidad_Esc_Alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Localidad_Esc_Alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Localidad_Esc_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio_Esc_Alta\r\n\t\t$this->Domicilio_Esc_Alta->ViewValue = $this->Domicilio_Esc_Alta->CurrentValue;\r\n\t\t$this->Domicilio_Esc_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Rte_Alta\r\n\t\t$this->Rte_Alta->ViewValue = $this->Rte_Alta->CurrentValue;\r\n\t\t$this->Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Rte_Alta\r\n\t\t$this->Tel_Rte_Alta->ViewValue = $this->Tel_Rte_Alta->CurrentValue;\r\n\t\t$this->Tel_Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Email_Rte_Alta\r\n\t\t$this->Email_Rte_Alta->ViewValue = $this->Email_Rte_Alta->CurrentValue;\r\n\t\t$this->Email_Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Serie_Server_Alta\r\n\t\t$this->Serie_Server_Alta->ViewValue = $this->Serie_Server_Alta->CurrentValue;\r\n\t\t$this->Serie_Server_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue_Establecimiento_Baja\r\n\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->CurrentValue;\r\n\t\tif (strval($this->Cue_Establecimiento_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Baja->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Cue_Establecimiento_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Escuela_Baja\r\n\t\t$this->Escuela_Baja->ViewValue = $this->Escuela_Baja->CurrentValue;\r\n\t\t$this->Escuela_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Directivo_Baja\r\n\t\t$this->Directivo_Baja->ViewValue = $this->Directivo_Baja->CurrentValue;\r\n\t\t$this->Directivo_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Directivo_Baja\r\n\t\t$this->Cuil_Directivo_Baja->ViewValue = $this->Cuil_Directivo_Baja->CurrentValue;\r\n\t\t$this->Cuil_Directivo_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dpto_Esc_Baja\r\n\t\tif (strval($this->Dpto_Esc_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Dpto_Esc_Baja->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Dpto_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Dpto_Esc_Baja->ViewValue = $this->Dpto_Esc_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Dpto_Esc_Baja->ViewValue = $this->Dpto_Esc_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Dpto_Esc_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Dpto_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Localidad_Esc_Baja\r\n\t\tif (strval($this->Localidad_Esc_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Localidad_Esc_Baja->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Localidad_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Localidad_Esc_Baja->ViewValue = $this->Localidad_Esc_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Localidad_Esc_Baja->ViewValue = $this->Localidad_Esc_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Localidad_Esc_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Localidad_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio_Esc_Baja\r\n\t\t$this->Domicilio_Esc_Baja->ViewValue = $this->Domicilio_Esc_Baja->CurrentValue;\r\n\t\t$this->Domicilio_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Rte_Baja\r\n\t\t$this->Rte_Baja->ViewValue = $this->Rte_Baja->CurrentValue;\r\n\t\t$this->Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Rte_Baja\r\n\t\t$this->Tel_Rte_Baja->ViewValue = $this->Tel_Rte_Baja->CurrentValue;\r\n\t\t$this->Tel_Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Email_Rte_Baja\r\n\t\t$this->Email_Rte_Baja->ViewValue = $this->Email_Rte_Baja->CurrentValue;\r\n\t\t$this->Email_Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Serie_Server_Baja\r\n\t\t$this->Serie_Server_Baja->ViewValue = $this->Serie_Server_Baja->CurrentValue;\r\n\t\t$this->Serie_Server_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Pase\r\n\t\t$this->Fecha_Pase->ViewValue = $this->Fecha_Pase->CurrentValue;\r\n\t\t$this->Fecha_Pase->ViewValue = ew_FormatDateTime($this->Fecha_Pase->ViewValue, 7);\r\n\t\t$this->Fecha_Pase->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado_Pase\r\n\t\tif (strval($this->Id_Estado_Pase->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado_Pase`\" . ew_SearchString(\"=\", $this->Id_Estado_Pase->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado_Pase`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado_Pase->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado_Pase, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado_Pase->ViewValue = $this->Id_Estado_Pase->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado_Pase->ViewValue = $this->Id_Estado_Pase->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado_Pase->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado_Pase->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Ruta_Archivo\r\n\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->DbValue)) {\r\n\t\t\t$this->Ruta_Archivo->ViewValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t} else {\r\n\t\t\t$this->Ruta_Archivo->ViewValue = \"\";\r\n\t\t}\r\n\t\t$this->Ruta_Archivo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->HrefValue = \"\";\r\n\t\t\t$this->Serie_Equipo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->HrefValue = \"\";\r\n\t\t\t$this->Id_Hardware->TooltipValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\t\t\t$this->SN->TooltipValue = \"\";\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Modelo_Net->HrefValue = \"\";\r\n\t\t\t$this->Modelo_Net->TooltipValue = \"\";\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->HrefValue = \"\";\r\n\t\t\t$this->Marca_Arranque->TooltipValue = \"\";\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->HrefValue = \"\";\r\n\t\t\t$this->Nombre_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->HrefValue = \"\";\r\n\t\t\t$this->Dni_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Nombre_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->HrefValue = \"\";\r\n\t\t\t$this->DniTutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\t\t\t$this->Domicilio->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Tel_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->HrefValue = \"\";\r\n\t\t\t$this->CelTutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->HrefValue = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->HrefValue = \"\";\r\n\t\t\t$this->Escuela_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->HrefValue = \"\";\r\n\t\t\t$this->Directivo_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->HrefValue = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->HrefValue = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->HrefValue = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Email_Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->HrefValue = \"\";\r\n\t\t\t$this->Serie_Server_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->HrefValue = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->HrefValue = \"\";\r\n\t\t\t$this->Escuela_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->HrefValue = \"\";\r\n\t\t\t$this->Directivo_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Email_Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->HrefValue = \"\";\r\n\t\t\t$this->Serie_Server_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Pase->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Pase->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado_Pase->TooltipValue = \"\";\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue2 = $this->Ruta_Archivo->UploadPath . $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t\t$this->Ruta_Archivo->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Equipo->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->EditValue = ew_HtmlEncode($this->Serie_Equipo->CurrentValue);\r\n\t\t\tif (strval($this->Serie_Equipo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->Serie_Equipo->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Serie_Equipo->EditValue = $this->Serie_Equipo->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Serie_Equipo->EditValue = ew_HtmlEncode($this->Serie_Equipo->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Serie_Equipo->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Serie_Equipo->PlaceHolder = ew_RemoveHtml($this->Serie_Equipo->FldCaption());\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Hardware->EditCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->EditValue = ew_HtmlEncode($this->Id_Hardware->CurrentValue);\r\n\t\t\t$this->Id_Hardware->PlaceHolder = ew_RemoveHtml($this->Id_Hardware->FldCaption());\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->SN->EditCustomAttributes = \"\";\r\n\t\t\t$this->SN->EditValue = ew_HtmlEncode($this->SN->CurrentValue);\r\n\t\t\t$this->SN->PlaceHolder = ew_RemoveHtml($this->SN->FldCaption());\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Modelo_Net->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Modelo_Net->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Descripcion`\" . ew_SearchString(\"=\", $this->Modelo_Net->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Descripcion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `modelo`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Modelo_Net->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Modelo_Net, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Modelo_Net->EditValue = $arwrk;\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Marca_Arranque->EditCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->EditValue = ew_HtmlEncode($this->Marca_Arranque->CurrentValue);\r\n\t\t\t$this->Marca_Arranque->PlaceHolder = ew_RemoveHtml($this->Marca_Arranque->FldCaption());\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nombre_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->EditValue = ew_HtmlEncode($this->Nombre_Titular->CurrentValue);\r\n\t\t\tif (strval($this->Nombre_Titular->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nombre_Titular->EditValue = $this->Nombre_Titular->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nombre_Titular->EditValue = ew_HtmlEncode($this->Nombre_Titular->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Titular->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nombre_Titular->PlaceHolder = ew_RemoveHtml($this->Nombre_Titular->FldCaption());\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->EditValue = ew_HtmlEncode($this->Dni_Titular->CurrentValue);\r\n\t\t\t$this->Dni_Titular->PlaceHolder = ew_RemoveHtml($this->Dni_Titular->FldCaption());\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->EditValue = ew_HtmlEncode($this->Cuil_Titular->CurrentValue);\r\n\t\t\t$this->Cuil_Titular->PlaceHolder = ew_RemoveHtml($this->Cuil_Titular->FldCaption());\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nombre_Tutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->EditValue = ew_HtmlEncode($this->Nombre_Tutor->CurrentValue);\r\n\t\t\tif (strval($this->Nombre_Tutor->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Tutor->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tutores`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nombre_Tutor->EditValue = $this->Nombre_Tutor->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nombre_Tutor->EditValue = ew_HtmlEncode($this->Nombre_Tutor->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Tutor->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nombre_Tutor->PlaceHolder = ew_RemoveHtml($this->Nombre_Tutor->FldCaption());\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->DniTutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->EditValue = ew_HtmlEncode($this->DniTutor->CurrentValue);\r\n\t\t\t$this->DniTutor->PlaceHolder = ew_RemoveHtml($this->DniTutor->FldCaption());\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->EditValue = ew_HtmlEncode($this->Domicilio->CurrentValue);\r\n\t\t\t$this->Domicilio->PlaceHolder = ew_RemoveHtml($this->Domicilio->FldCaption());\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Tutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->EditValue = ew_HtmlEncode($this->Tel_Tutor->CurrentValue);\r\n\t\t\t$this->Tel_Tutor->PlaceHolder = ew_RemoveHtml($this->Tel_Tutor->FldCaption());\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->CelTutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->EditValue = ew_HtmlEncode($this->CelTutor->CurrentValue);\r\n\t\t\t$this->CelTutor->PlaceHolder = ew_RemoveHtml($this->CelTutor->FldCaption());\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Alta->CurrentValue);\r\n\t\t\tif (strval($this->Cue_Establecimiento_Alta->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Alta->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\r\n\t\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = $this->Cue_Establecimiento_Alta->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Alta->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Cue_Establecimiento_Alta->PlaceHolder = ew_RemoveHtml($this->Cue_Establecimiento_Alta->FldCaption());\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Escuela_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->EditValue = ew_HtmlEncode($this->Escuela_Alta->CurrentValue);\r\n\t\t\t$this->Escuela_Alta->PlaceHolder = ew_RemoveHtml($this->Escuela_Alta->FldCaption());\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Directivo_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->EditValue = ew_HtmlEncode($this->Directivo_Alta->CurrentValue);\r\n\t\t\t$this->Directivo_Alta->PlaceHolder = ew_RemoveHtml($this->Directivo_Alta->FldCaption());\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Directivo_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->EditValue = ew_HtmlEncode($this->Cuil_Directivo_Alta->CurrentValue);\r\n\t\t\t$this->Cuil_Directivo_Alta->PlaceHolder = ew_RemoveHtml($this->Cuil_Directivo_Alta->FldCaption());\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dpto_Esc_alta->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Dpto_Esc_alta->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Dpto_Esc_alta->EditValue = $arwrk;\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Localidad_Esc_Alta->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Localidad_Esc_Alta->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Localidad_Esc_Alta->EditValue = $arwrk;\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio_Esc_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->EditValue = ew_HtmlEncode($this->Domicilio_Esc_Alta->CurrentValue);\r\n\t\t\t$this->Domicilio_Esc_Alta->PlaceHolder = ew_RemoveHtml($this->Domicilio_Esc_Alta->FldCaption());\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->EditValue = ew_HtmlEncode($this->Rte_Alta->CurrentValue);\r\n\t\t\t$this->Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->EditValue = ew_HtmlEncode($this->Tel_Rte_Alta->CurrentValue);\r\n\t\t\t$this->Tel_Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Tel_Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Email_Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->EditValue = ew_HtmlEncode($this->Email_Rte_Alta->CurrentValue);\r\n\t\t\t$this->Email_Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Email_Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Server_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->EditValue = ew_HtmlEncode($this->Serie_Server_Alta->CurrentValue);\r\n\t\t\t$this->Serie_Server_Alta->PlaceHolder = ew_RemoveHtml($this->Serie_Server_Alta->FldCaption());\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Baja->CurrentValue);\r\n\t\t\tif (strval($this->Cue_Establecimiento_Baja->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Baja->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\r\n\t\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = $this->Cue_Establecimiento_Baja->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Baja->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Cue_Establecimiento_Baja->PlaceHolder = ew_RemoveHtml($this->Cue_Establecimiento_Baja->FldCaption());\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Escuela_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->EditValue = ew_HtmlEncode($this->Escuela_Baja->CurrentValue);\r\n\t\t\t$this->Escuela_Baja->PlaceHolder = ew_RemoveHtml($this->Escuela_Baja->FldCaption());\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Directivo_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->EditValue = ew_HtmlEncode($this->Directivo_Baja->CurrentValue);\r\n\t\t\t$this->Directivo_Baja->PlaceHolder = ew_RemoveHtml($this->Directivo_Baja->FldCaption());\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Directivo_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->EditValue = ew_HtmlEncode($this->Cuil_Directivo_Baja->CurrentValue);\r\n\t\t\t$this->Cuil_Directivo_Baja->PlaceHolder = ew_RemoveHtml($this->Cuil_Directivo_Baja->FldCaption());\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dpto_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Dpto_Esc_Baja->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Dpto_Esc_Baja->EditValue = $arwrk;\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Localidad_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Localidad_Esc_Baja->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Localidad_Esc_Baja->EditValue = $arwrk;\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->EditValue = ew_HtmlEncode($this->Domicilio_Esc_Baja->CurrentValue);\r\n\t\t\t$this->Domicilio_Esc_Baja->PlaceHolder = ew_RemoveHtml($this->Domicilio_Esc_Baja->FldCaption());\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->EditValue = ew_HtmlEncode($this->Rte_Baja->CurrentValue);\r\n\t\t\t$this->Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->EditValue = ew_HtmlEncode($this->Tel_Rte_Baja->CurrentValue);\r\n\t\t\t$this->Tel_Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Tel_Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Email_Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->EditValue = ew_HtmlEncode($this->Email_Rte_Baja->CurrentValue);\r\n\t\t\t$this->Email_Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Email_Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Server_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->EditValue = ew_HtmlEncode($this->Serie_Server_Baja->CurrentValue);\r\n\t\t\t$this->Serie_Server_Baja->PlaceHolder = ew_RemoveHtml($this->Serie_Server_Baja->FldCaption());\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Pase->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->Fecha_Pase->CurrentValue, 7));\r\n\t\t\t$this->Fecha_Pase->PlaceHolder = ew_RemoveHtml($this->Fecha_Pase->FldCaption());\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Estado_Pase->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Estado_Pase->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Estado_Pase`\" . ew_SearchString(\"=\", $this->Id_Estado_Pase->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado_Pase`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `estado_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado_Pase->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado_Pase, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Estado_Pase->EditValue = $arwrk;\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Ruta_Archivo->EditCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->DbValue)) {\r\n\t\t\t\t$this->Ruta_Archivo->EditValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t\t} else {\r\n\t\t\t\t$this->Ruta_Archivo->EditValue = \"\";\r\n\t\t\t}\r\n\t\t\tif (!ew_Empty($this->Ruta_Archivo->CurrentValue))\r\n\t\t\t\t$this->Ruta_Archivo->Upload->FileName = $this->Ruta_Archivo->CurrentValue;\r\n\t\t\tif ($this->CurrentAction == \"I\" && !$this->EventCancelled) ew_RenderUploadField($this->Ruta_Archivo);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// Serie_Equipo\r\n\r\n\t\t\t$this->Serie_Equipo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->HrefValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Modelo_Net->HrefValue = \"\";\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->HrefValue = \"\";\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->HrefValue = \"\";\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->HrefValue = \"\";\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->HrefValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->HrefValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Pase->HrefValue = \"\";\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue2 = $this->Ruta_Archivo->UploadPath . $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Nro_Serie\r\n\t\t// SN\r\n\t\t// Cant_Net_Asoc\r\n\t\t// Id_Marca\r\n\t\t// Id_Modelo\r\n\t\t// Id_SO\r\n\t\t// Id_Estado\r\n\t\t// User_Server\r\n\t\t// Pass_Server\r\n\t\t// User_TdServer\r\n\t\t// Pass_TdServer\r\n\t\t// Cue\r\n\t\t// Fecha_Actualizacion\r\n\t\t// Usuario\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Nro_Serie\r\n\t\t$this->Nro_Serie->ViewValue = $this->Nro_Serie->CurrentValue;\r\n\t\t$this->Nro_Serie->ViewCustomAttributes = \"\";\r\n\r\n\t\t// SN\r\n\t\t$this->SN->ViewValue = $this->SN->CurrentValue;\r\n\t\t$this->SN->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cant_Net_Asoc\r\n\t\t$this->Cant_Net_Asoc->ViewValue = $this->Cant_Net_Asoc->CurrentValue;\r\n\t\t$this->Cant_Net_Asoc->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Marca\r\n\t\tif (strval($this->Id_Marca->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Marca`\" . ew_SearchString(\"=\", $this->Id_Marca->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Marca`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `marca_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Marca->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Marca, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Marca->ViewValue = $this->Id_Marca->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Marca->ViewValue = $this->Id_Marca->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Marca->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Marca->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Modelo\r\n\t\tif (strval($this->Id_Modelo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Modelo`\" . ew_SearchString(\"=\", $this->Id_Modelo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Modelo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Modelo->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Modelo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Modelo->ViewValue = $this->Id_Modelo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Modelo->ViewValue = $this->Id_Modelo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Modelo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Modelo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_SO\r\n\t\tif (strval($this->Id_SO->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_SO`\" . ew_SearchString(\"=\", $this->Id_SO->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_SO`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `so_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_SO->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_SO, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_SO->ViewValue = $this->Id_SO->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_SO->ViewValue = $this->Id_SO->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_SO->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_SO->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado\r\n\t\tif (strval($this->Id_Estado->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado->ViewCustomAttributes = \"\";\r\n\r\n\t\t// User_Server\r\n\t\t$this->User_Server->ViewValue = $this->User_Server->CurrentValue;\r\n\t\t$this->User_Server->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Pass_Server\r\n\t\t$this->Pass_Server->ViewValue = $this->Pass_Server->CurrentValue;\r\n\t\t$this->Pass_Server->ViewCustomAttributes = \"\";\r\n\r\n\t\t// User_TdServer\r\n\t\t$this->User_TdServer->ViewValue = $this->User_TdServer->CurrentValue;\r\n\t\t$this->User_TdServer->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Pass_TdServer\r\n\t\t$this->Pass_TdServer->ViewValue = $this->Pass_TdServer->CurrentValue;\r\n\t\t$this->Pass_TdServer->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue\r\n\t\t$this->Cue->ViewValue = $this->Cue->CurrentValue;\r\n\t\t$this->Cue->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 7);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->HrefValue = \"\";\r\n\t\t\t$this->Nro_Serie->TooltipValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\t\t\t$this->SN->TooltipValue = \"\";\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->HrefValue = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Marca->HrefValue = \"\";\r\n\t\t\t$this->Id_Marca->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Modelo->HrefValue = \"\";\r\n\t\t\t$this->Id_Modelo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_SO->HrefValue = \"\";\r\n\t\t\t$this->Id_SO->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado->TooltipValue = \"\";\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->HrefValue = \"\";\r\n\t\t\t$this->User_Server->TooltipValue = \"\";\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->HrefValue = \"\";\r\n\t\t\t$this->Pass_Server->TooltipValue = \"\";\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->HrefValue = \"\";\r\n\t\t\t$this->User_TdServer->TooltipValue = \"\";\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->HrefValue = \"\";\r\n\t\t\t$this->Pass_TdServer->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue->HrefValue = \"\";\r\n\t\t\t$this->Cue->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nro_Serie->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->EditValue = ew_HtmlEncode($this->Nro_Serie->CurrentValue);\r\n\t\t\t$this->Nro_Serie->PlaceHolder = ew_RemoveHtml($this->Nro_Serie->FldCaption());\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->SN->EditCustomAttributes = \"\";\r\n\t\t\t$this->SN->EditValue = ew_HtmlEncode($this->SN->CurrentValue);\r\n\t\t\t$this->SN->PlaceHolder = ew_RemoveHtml($this->SN->FldCaption());\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cant_Net_Asoc->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->EditValue = ew_HtmlEncode($this->Cant_Net_Asoc->CurrentValue);\r\n\t\t\t$this->Cant_Net_Asoc->PlaceHolder = ew_RemoveHtml($this->Cant_Net_Asoc->FldCaption());\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Marca->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Marca->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Marca`\" . ew_SearchString(\"=\", $this->Id_Marca->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Marca`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `marca_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Marca->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Marca, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Marca->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Modelo->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Modelo->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Modelo`\" . ew_SearchString(\"=\", $this->Id_Modelo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Modelo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `modelo_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Modelo->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Modelo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Modelo->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_SO->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_SO->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_SO`\" . ew_SearchString(\"=\", $this->Id_SO->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_SO`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `so_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_SO->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_SO, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_SO->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Estado->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Estado->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `estado_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Estado->EditValue = $arwrk;\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->User_Server->EditCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->EditValue = ew_HtmlEncode($this->User_Server->CurrentValue);\r\n\t\t\t$this->User_Server->PlaceHolder = ew_RemoveHtml($this->User_Server->FldCaption());\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Pass_Server->EditCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->EditValue = ew_HtmlEncode($this->Pass_Server->CurrentValue);\r\n\t\t\t$this->Pass_Server->PlaceHolder = ew_RemoveHtml($this->Pass_Server->FldCaption());\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->User_TdServer->EditCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->EditValue = ew_HtmlEncode($this->User_TdServer->CurrentValue);\r\n\t\t\t$this->User_TdServer->PlaceHolder = ew_RemoveHtml($this->User_TdServer->FldCaption());\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Pass_TdServer->EditCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->EditValue = ew_HtmlEncode($this->Pass_TdServer->CurrentValue);\r\n\t\t\t$this->Pass_TdServer->PlaceHolder = ew_RemoveHtml($this->Pass_TdServer->FldCaption());\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue->EditCustomAttributes = \"\";\r\n\t\t\tif ($this->Cue->getSessionValue() <> \"\") {\r\n\t\t\t\t$this->Cue->CurrentValue = $this->Cue->getSessionValue();\r\n\t\t\t$this->Cue->ViewValue = $this->Cue->CurrentValue;\r\n\t\t\t$this->Cue->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t}\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t// Usuario\r\n\t\t\t// Edit refer script\r\n\t\t\t// Nro_Serie\r\n\r\n\t\t\t$this->Nro_Serie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->HrefValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Marca->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Modelo->HrefValue = \"\";\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_SO->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->HrefValue = \"\";\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->HrefValue = \"\";\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->HrefValue = \"\";\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->HrefValue = \"\";\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue->HrefValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// idfb_posts\r\n\t\t// id\r\n\t\t// created_time\r\n\t\t// actions\r\n\t\t// icon\r\n\t\t// is_published\r\n\t\t// message\r\n\t\t// link\r\n\t\t// object_id\r\n\t\t// picture\r\n\t\t// privacy\r\n\t\t// promotion_status\r\n\t\t// timeline_visibility\r\n\t\t// type\r\n\t\t// updated_time\r\n\t\t// caption\r\n\t\t// description\r\n\t\t// name\r\n\t\t// source\r\n\t\t// from\r\n\t\t// to\r\n\t\t// comments\r\n\t\t// id_grupo\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// idfb_posts\r\n\t\t\t$this->idfb_posts->ViewValue = $this->idfb_posts->CurrentValue;\r\n\t\t\t$this->idfb_posts->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->ViewValue = $this->created_time->CurrentValue;\r\n\t\t\t$this->created_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// actions\r\n\t\t\t$this->actions->ViewValue = $this->actions->CurrentValue;\r\n\t\t\t$this->actions->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// icon\r\n\t\t\t$this->icon->ViewValue = $this->icon->CurrentValue;\r\n\t\t\t$this->icon->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// is_published\r\n\t\t\t$this->is_published->ViewValue = $this->is_published->CurrentValue;\r\n\t\t\t$this->is_published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->ViewValue = $this->message->CurrentValue;\r\n\t\t\t$this->message->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->ViewValue = $this->link->CurrentValue;\r\n\t\t\t$this->link->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// object_id\r\n\t\t\t$this->object_id->ViewValue = $this->object_id->CurrentValue;\r\n\t\t\t$this->object_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// picture\r\n\t\t\t$this->picture->ViewValue = $this->picture->CurrentValue;\r\n\t\t\t$this->picture->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// privacy\r\n\t\t\t$this->privacy->ViewValue = $this->privacy->CurrentValue;\r\n\t\t\t$this->privacy->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// promotion_status\r\n\t\t\t$this->promotion_status->ViewValue = $this->promotion_status->CurrentValue;\r\n\t\t\t$this->promotion_status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// timeline_visibility\r\n\t\t\t$this->timeline_visibility->ViewValue = $this->timeline_visibility->CurrentValue;\r\n\t\t\t$this->timeline_visibility->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->ViewValue = $this->type->CurrentValue;\r\n\t\t\t$this->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated_time\r\n\t\t\t$this->updated_time->ViewValue = $this->updated_time->CurrentValue;\r\n\t\t\t$this->updated_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->ViewValue = $this->caption->CurrentValue;\r\n\t\t\t$this->caption->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->ViewValue = $this->description->CurrentValue;\r\n\t\t\t$this->description->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\r\n\t\t\t$this->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->ViewValue = $this->source->CurrentValue;\r\n\t\t\t$this->source->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->ViewValue = $this->from->CurrentValue;\r\n\t\t\t$this->from->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// to\r\n\t\t\t$this->to->ViewValue = $this->to->CurrentValue;\r\n\t\t\t$this->to->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id_grupo\r\n\t\t\t$this->id_grupo->ViewValue = $this->id_grupo->CurrentValue;\r\n\t\t\t$this->id_grupo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->LinkCustomAttributes = \"\";\r\n\t\t\t$this->created_time->HrefValue = \"\";\r\n\t\t\t$this->created_time->TooltipValue = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->LinkCustomAttributes = \"\";\r\n\t\t\t$this->message->HrefValue = \"\";\r\n\t\t\t$this->message->TooltipValue = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->LinkCustomAttributes = \"\";\r\n\t\t\t$this->link->HrefValue = \"\";\r\n\t\t\t$this->link->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->type->HrefValue = \"\";\r\n\t\t\t$this->type->TooltipValue = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->LinkCustomAttributes = \"\";\r\n\t\t\t$this->caption->HrefValue = \"\";\r\n\t\t\t$this->caption->TooltipValue = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->LinkCustomAttributes = \"\";\r\n\t\t\t$this->description->HrefValue = \"\";\r\n\t\t\t$this->description->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->LinkCustomAttributes = \"\";\r\n\t\t\t$this->name->HrefValue = \"\";\r\n\t\t\t$this->name->TooltipValue = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->LinkCustomAttributes = \"\";\r\n\t\t\t$this->source->HrefValue = \"\";\r\n\t\t\t$this->source->TooltipValue = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->LinkCustomAttributes = \"\";\r\n\t\t\t$this->from->HrefValue = \"\";\r\n\t\t\t$this->from->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $mst_vendor;\n\n\t\t// Call Row_Rendering event\n\t\t$mst_vendor->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// kode\n\n\t\t$mst_vendor->kode->CellCssStyle = \"\";\n\t\t$mst_vendor->kode->CellCssClass = \"\";\n\n\t\t// nama\n\t\t$mst_vendor->nama->CellCssStyle = \"\";\n\t\t$mst_vendor->nama->CellCssClass = \"\";\n\n\t\t// alamat\n\t\t$mst_vendor->alamat->CellCssStyle = \"\";\n\t\t$mst_vendor->alamat->CellCssClass = \"\";\n\n\t\t// alamatpajak\n\t\t$mst_vendor->alamatpajak->CellCssStyle = \"\";\n\t\t$mst_vendor->alamatpajak->CellCssClass = \"\";\n\n\t\t// npwp\n\t\t$mst_vendor->npwp->CellCssStyle = \"\";\n\t\t$mst_vendor->npwp->CellCssClass = \"\";\n\n\t\t// pic\n\t\t$mst_vendor->pic->CellCssStyle = \"\";\n\t\t$mst_vendor->pic->CellCssClass = \"\";\n\n\t\t// phone\n\t\t$mst_vendor->phone->CellCssStyle = \"\";\n\t\t$mst_vendor->phone->CellCssClass = \"\";\n\n\t\t// fax\n\t\t$mst_vendor->fax->CellCssStyle = \"\";\n\t\t$mst_vendor->fax->CellCssClass = \"\";\n\n\t\t// email\n\t\t$mst_vendor->zemail->CellCssStyle = \"\";\n\t\t$mst_vendor->zemail->CellCssClass = \"\";\n\n\t\t// peruntukan\n\t\t$mst_vendor->peruntukan->CellCssStyle = \"\";\n\t\t$mst_vendor->peruntukan->CellCssClass = \"\";\n\t\tif ($mst_vendor->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->ViewValue = $mst_vendor->kode->CurrentValue;\n\t\t\t$mst_vendor->kode->CssStyle = \"\";\n\t\t\t$mst_vendor->kode->CssClass = \"\";\n\t\t\t$mst_vendor->kode->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->ViewValue = $mst_vendor->nama->CurrentValue;\n\t\t\t$mst_vendor->nama->CssStyle = \"\";\n\t\t\t$mst_vendor->nama->CssClass = \"\";\n\t\t\t$mst_vendor->nama->ViewCustomAttributes = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->ViewValue = $mst_vendor->alamat->CurrentValue;\n\t\t\t$mst_vendor->alamat->CssStyle = \"\";\n\t\t\t$mst_vendor->alamat->CssClass = \"\";\n\t\t\t$mst_vendor->alamat->ViewCustomAttributes = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->ViewValue = $mst_vendor->alamatpajak->CurrentValue;\n\t\t\t$mst_vendor->alamatpajak->CssStyle = \"\";\n\t\t\t$mst_vendor->alamatpajak->CssClass = \"\";\n\t\t\t$mst_vendor->alamatpajak->ViewCustomAttributes = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->ViewValue = $mst_vendor->npwp->CurrentValue;\n\t\t\t$mst_vendor->npwp->CssStyle = \"\";\n\t\t\t$mst_vendor->npwp->CssClass = \"\";\n\t\t\t$mst_vendor->npwp->ViewCustomAttributes = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->ViewValue = $mst_vendor->pic->CurrentValue;\n\t\t\t$mst_vendor->pic->CssStyle = \"\";\n\t\t\t$mst_vendor->pic->CssClass = \"\";\n\t\t\t$mst_vendor->pic->ViewCustomAttributes = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->ViewValue = $mst_vendor->phone->CurrentValue;\n\t\t\t$mst_vendor->phone->CssStyle = \"\";\n\t\t\t$mst_vendor->phone->CssClass = \"\";\n\t\t\t$mst_vendor->phone->ViewCustomAttributes = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->ViewValue = $mst_vendor->fax->CurrentValue;\n\t\t\t$mst_vendor->fax->CssStyle = \"\";\n\t\t\t$mst_vendor->fax->CssClass = \"\";\n\t\t\t$mst_vendor->fax->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->ViewValue = $mst_vendor->zemail->CurrentValue;\n\t\t\t$mst_vendor->zemail->CssStyle = \"\";\n\t\t\t$mst_vendor->zemail->CssClass = \"\";\n\t\t\t$mst_vendor->zemail->ViewCustomAttributes = \"\";\n\n\t\t\t// peruntukan\n\t\t\tif (strval($mst_vendor->peruntukan->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($mst_vendor->peruntukan->CurrentValue) {\n\t\t\t\t\tcase \"unit\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Unit\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"part\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Part\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"material\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Material\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = $mst_vendor->peruntukan->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$mst_vendor->peruntukan->ViewValue = NULL;\n\t\t\t}\n\t\t\t$mst_vendor->peruntukan->CssStyle = \"\";\n\t\t\t$mst_vendor->peruntukan->CssClass = \"\";\n\t\t\t$mst_vendor->peruntukan->ViewCustomAttributes = \"\";\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->HrefValue = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->HrefValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->HrefValue = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->HrefValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->HrefValue = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->HrefValue = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->HrefValue = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->HrefValue = \"\";\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->HrefValue = \"\";\n\t\t} elseif ($mst_vendor->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->kode->EditValue = ew_HtmlEncode($mst_vendor->kode->CurrentValue);\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->nama->EditValue = ew_HtmlEncode($mst_vendor->nama->CurrentValue);\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamat->EditValue = ew_HtmlEncode($mst_vendor->alamat->CurrentValue);\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamatpajak->EditValue = ew_HtmlEncode($mst_vendor->alamatpajak->CurrentValue);\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->npwp->EditValue = ew_HtmlEncode($mst_vendor->npwp->CurrentValue);\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->pic->EditValue = ew_HtmlEncode($mst_vendor->pic->CurrentValue);\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->phone->EditValue = ew_HtmlEncode($mst_vendor->phone->CurrentValue);\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->fax->EditValue = ew_HtmlEncode($mst_vendor->fax->CurrentValue);\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->zemail->EditValue = ew_HtmlEncode($mst_vendor->zemail->CurrentValue);\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"unit\", \"Unit\");\n\t\t\t$arwrk[] = array(\"part\", \"Part\");\n\t\t\t$arwrk[] = array(\"material\", \"Material\");\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\"));\n\t\t\t$mst_vendor->peruntukan->EditValue = $arwrk;\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$mst_vendor->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->total_gross->FormValue == $this->total_gross->CurrentValue && is_numeric(ew_StrToFloat($this->total_gross->CurrentValue)))\n\t\t\t$this->total_gross->CurrentValue = ew_StrToFloat($this->total_gross->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\n\t\t$this->row_id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_date\n\t\t$this->auc_date->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_number\n\t\t$this->auc_number->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_place\n\t\t$this->auc_place->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// start_bid\n\t\t$this->start_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// close_bid\n\t\t$this->close_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_notes\n\t\t// total_sack\n\n\t\t$this->total_sack->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_netto\n\t\t$this->total_netto->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_gross\n\t\t$this->total_gross->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_status\n\t\t$this->auc_status->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// rate\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// auc_date\n\t\t$this->auc_date->ViewValue = $this->auc_date->CurrentValue;\n\t\t$this->auc_date->ViewValue = ew_FormatDateTime($this->auc_date->ViewValue, 7);\n\t\t$this->auc_date->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_date->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// auc_place\n\t\t$this->auc_place->ViewValue = $this->auc_place->CurrentValue;\n\t\t$this->auc_place->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// auc_notes\n\t\t$this->auc_notes->ViewValue = $this->auc_notes->CurrentValue;\n\t\t$this->auc_notes->ViewCustomAttributes = \"\";\n\n\t\t// total_sack\n\t\t$this->total_sack->ViewValue = $this->total_sack->CurrentValue;\n\t\t$this->total_sack->ViewValue = ew_FormatNumber($this->total_sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_sack->ViewCustomAttributes = \"\";\n\n\t\t// total_netto\n\t\t$this->total_netto->ViewValue = $this->total_netto->CurrentValue;\n\t\t$this->total_netto->ViewValue = ew_FormatNumber($this->total_netto->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_netto->ViewCustomAttributes = \"\";\n\n\t\t// total_gross\n\t\t$this->total_gross->ViewValue = $this->total_gross->CurrentValue;\n\t\t$this->total_gross->ViewValue = ew_FormatNumber($this->total_gross->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_gross->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_gross->ViewCustomAttributes = \"\";\n\n\t\t// auc_status\n\t\tif (strval($this->auc_status->CurrentValue) <> \"\") {\n\t\t\t$this->auc_status->ViewValue = $this->auc_status->OptionCaption($this->auc_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auc_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auc_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_status->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// auc_place\n\t\t\t$this->auc_place->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_place->HrefValue = \"\";\n\t\t\t$this->auc_place->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// auc_notes\n\t\t\t$this->auc_notes->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_notes->HrefValue = \"\";\n\t\t\t$this->auc_notes->TooltipValue = \"\";\n\n\t\t\t// total_sack\n\t\t\t$this->total_sack->LinkCustomAttributes = \"\";\n\t\t\t$this->total_sack->HrefValue = \"\";\n\t\t\t$this->total_sack->TooltipValue = \"\";\n\n\t\t\t// total_gross\n\t\t\t$this->total_gross->LinkCustomAttributes = \"\";\n\t\t\t$this->total_gross->HrefValue = \"\";\n\t\t\t$this->total_gross->TooltipValue = \"\";\n\n\t\t\t// auc_status\n\t\t\t$this->auc_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_status->HrefValue = \"\";\n\t\t\t$this->auc_status->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->highest_bid->FormValue == $this->highest_bid->CurrentValue && is_numeric(ew_StrToFloat($this->highest_bid->CurrentValue)))\n\t\t\t$this->highest_bid->CurrentValue = ew_StrToFloat($this->highest_bid->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tanggal\n\t\t// auc_number\n\t\t// start_bid\n\t\t// close_bid\n\t\t// lot_number\n\t\t// chop\n\t\t// grade\n\t\t// estate\n\t\t// sack\n\t\t// netto\n\t\t// open_bid\n\t\t// last_bid\n\t\t// highest_bid\n\t\t// enter_bid\n\t\t// auction_status\n\t\t// gross\n\t\t// row_id\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->CellCssStyle .= \"text-align: center;\";\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewValue = ew_FormatNumber($this->last_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->last_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewValue = ew_FormatNumber($this->highest_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->highest_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewValue = ew_FormatNumber($this->enter_bid->ViewValue, 0, -2, -2, -2);\n\t\t$this->enter_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// row_id\n\t\t$this->row_id->ViewValue = $this->row_id->CurrentValue;\n\t\t$this->row_id->ViewCustomAttributes = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->highest_bid->HrefValue = \"\";\n\t\t\t$this->highest_bid->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->tanggal->AdvancedSearch->SearchValue, 7), 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->auc_number->EditCustomAttributes = \"\";\n\t\t\t$this->auc_number->EditValue = ew_HtmlEncode($this->auc_number->AdvancedSearch->SearchValue);\n\t\t\t$this->auc_number->PlaceHolder = ew_RemoveHtml($this->auc_number->FldCaption());\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->start_bid->EditCustomAttributes = \"\";\n\t\t\t$this->start_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->start_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->start_bid->PlaceHolder = ew_RemoveHtml($this->start_bid->FldCaption());\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->close_bid->EditCustomAttributes = \"\";\n\t\t\t$this->close_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->close_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->close_bid->PlaceHolder = ew_RemoveHtml($this->close_bid->FldCaption());\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->AdvancedSearch->SearchValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->AdvancedSearch->SearchValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->AdvancedSearch->SearchValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->AdvancedSearch->SearchValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->AdvancedSearch->SearchValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->AdvancedSearch->SearchValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->highest_bid->EditCustomAttributes = \"\";\n\t\t\t$this->highest_bid->EditValue = ew_HtmlEncode($this->highest_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->highest_bid->PlaceHolder = ew_RemoveHtml($this->highest_bid->FldCaption());\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(FALSE);\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Convert decimal values if posted back\r\n\r\n\t\tif ($this->PrecioUnitario->FormValue == $this->PrecioUnitario->CurrentValue && is_numeric(ew_StrToFloat($this->PrecioUnitario->CurrentValue)))\r\n\t\t\t$this->PrecioUnitario->CurrentValue = ew_StrToFloat($this->PrecioUnitario->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->MontoDescuento->FormValue == $this->MontoDescuento->CurrentValue && is_numeric(ew_StrToFloat($this->MontoDescuento->CurrentValue)))\r\n\t\t\t$this->MontoDescuento->CurrentValue = ew_StrToFloat($this->MontoDescuento->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Precio_SIM->FormValue == $this->Precio_SIM->CurrentValue && is_numeric(ew_StrToFloat($this->Precio_SIM->CurrentValue)))\r\n\t\t\t$this->Precio_SIM->CurrentValue = ew_StrToFloat($this->Precio_SIM->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Monto->FormValue == $this->Monto->CurrentValue && is_numeric(ew_StrToFloat($this->Monto->CurrentValue)))\r\n\t\t\t$this->Monto->CurrentValue = ew_StrToFloat($this->Monto->CurrentValue);\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Venta_Eq\r\n\t\t// CLIENTE\r\n\t\t// Id_Articulo\r\n\t\t// Acabado_eq\r\n\t\t// Num_IMEI\r\n\t\t// Num_ICCID\r\n\t\t// Num_CEL\r\n\t\t// Causa\r\n\t\t// Con_SIM\r\n\t\t// Observaciones\r\n\t\t// PrecioUnitario\r\n\t\t// MontoDescuento\r\n\t\t// Precio_SIM\r\n\t\t// Monto\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id_Venta_Eq\r\n\t\t\t$this->Id_Venta_Eq->ViewValue = $this->Id_Venta_Eq->CurrentValue;\r\n\t\t\t$this->Id_Venta_Eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->ViewValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->ViewValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->ViewValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->ViewValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->ViewValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\tif (strval($this->Con_SIM->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Con_SIM->CurrentValue) {\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Con_SIM->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Con_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->ViewValue = $this->Observaciones->CurrentValue;\r\n\t\t\t$this->Observaciones->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->ViewValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->ViewValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->ViewValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->ViewValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\t\t\t$this->CLIENTE->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\t\t\t$this->Id_Articulo->TooltipValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\t\t\t$this->Acabado_eq->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\t\t\t$this->Num_IMEI->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\t\t\t$this->Num_ICCID->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\t\t\t$this->Num_CEL->TooltipValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\t\t\t$this->Causa->TooltipValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\t\t\t$this->Con_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\t\t\t$this->Observaciones->TooltipValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\t\t\t$this->PrecioUnitario->TooltipValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\t\t\t$this->MontoDescuento->TooltipValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\t\t\t$this->Precio_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t\t$this->Monto->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->EditCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->EditValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->EditCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->EditValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->EditValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->EditCustomAttributes = \"onchange= 'ValidaICCID(this);' \";\r\n\t\t\t$this->Num_ICCID->EditValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->EditValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(1), $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(2), $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->FldTagValue(2));\r\n\t\t\t$this->Con_SIM->EditValue = $arwrk;\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->EditCustomAttributes = 'class=\"mayusculas\" onchange=\"conMayusculas(this)\" autocomplete=\"off\" ';\r\n\t\t\t$this->Observaciones->EditValue = ew_HtmlEncode($this->Observaciones->CurrentValue);\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->EditCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->EditValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->EditCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->EditValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->EditValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->EditCustomAttributes = \"\";\r\n\t\t\t$this->Monto->EditValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// CLIENTE\r\n\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function formatRow(){\n $this->hook('formatRow');\n }", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Reasignacion\r\n\t\t// Titular_Original\r\n\t\t// Dni\r\n\t\t// NroSerie\r\n\t\t// Nuevo_Titular\r\n\t\t// Dni_Nuevo_Tit\r\n\t\t// Id_Motivo_Reasig\r\n\t\t// Observacion\r\n\t\t// Fecha_Reasignacion\r\n\t\t// Usuario\r\n\t\t// Fecha_Actualizacion\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Id_Reasignacion\r\n\t\t$this->Id_Reasignacion->ViewValue = $this->Id_Reasignacion->CurrentValue;\r\n\t\t$this->Id_Reasignacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Titular_Original\r\n\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->CurrentValue;\r\n\t\tif (strval($this->Titular_Original->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Titular_Original->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Titular_Original->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Titular_Original->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni\r\n\t\t$this->Dni->ViewValue = $this->Dni->CurrentValue;\r\n\t\t$this->Dni->ViewCustomAttributes = \"\";\r\n\r\n\t\t// NroSerie\r\n\t\t$this->NroSerie->ViewValue = $this->NroSerie->CurrentValue;\r\n\t\tif (strval($this->NroSerie->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->NroSerie->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->NroSerie->ViewValue = $this->NroSerie->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->NroSerie->ViewValue = $this->NroSerie->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->NroSerie->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->NroSerie->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nuevo_Titular\r\n\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->CurrentValue;\r\n\t\tif (strval($this->Nuevo_Titular->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nuevo_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nuevo_Titular->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nuevo_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni_Nuevo_Tit\r\n\t\t$this->Dni_Nuevo_Tit->ViewValue = $this->Dni_Nuevo_Tit->CurrentValue;\r\n\t\t$this->Dni_Nuevo_Tit->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Motivo_Reasig\r\n\t\tif (strval($this->Id_Motivo_Reasig->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Motivo_Reasig`\" . ew_SearchString(\"=\", $this->Id_Motivo_Reasig->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Motivo_Reasig`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `motivo_reasignacion`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Motivo_Reasig->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Motivo_Reasig, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Motivo_Reasig->ViewValue = $this->Id_Motivo_Reasig->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Motivo_Reasig->ViewValue = $this->Id_Motivo_Reasig->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Motivo_Reasig->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Motivo_Reasig->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Observacion\r\n\t\t$this->Observacion->ViewValue = $this->Observacion->CurrentValue;\r\n\t\t$this->Observacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Reasignacion\r\n\t\t$this->Fecha_Reasignacion->ViewValue = $this->Fecha_Reasignacion->CurrentValue;\r\n\t\t$this->Fecha_Reasignacion->ViewValue = ew_FormatDateTime($this->Fecha_Reasignacion->ViewValue, 7);\r\n\t\t$this->Fecha_Reasignacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 0);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Reasignacion\r\n\t\t\t$this->Id_Reasignacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Reasignacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Reasignacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Titular_Original\r\n\t\t\t$this->Titular_Original->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Titular_Original->HrefValue = \"\";\r\n\t\t\t$this->Titular_Original->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni\r\n\t\t\t$this->Dni->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni->HrefValue = \"\";\r\n\t\t\t$this->Dni->TooltipValue = \"\";\r\n\r\n\t\t\t// NroSerie\r\n\t\t\t$this->NroSerie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->NroSerie->HrefValue = \"\";\r\n\t\t\t$this->NroSerie->TooltipValue = \"\";\r\n\r\n\t\t\t// Nuevo_Titular\r\n\t\t\t$this->Nuevo_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nuevo_Titular->HrefValue = \"\";\r\n\t\t\t$this->Nuevo_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni_Nuevo_Tit\r\n\t\t\t$this->Dni_Nuevo_Tit->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->HrefValue = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Motivo_Reasig\r\n\t\t\t$this->Id_Motivo_Reasig->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->HrefValue = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->TooltipValue = \"\";\r\n\r\n\t\t\t// Observacion\r\n\t\t\t$this->Observacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Observacion->HrefValue = \"\";\r\n\t\t\t$this->Observacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Reasignacion\r\n\t\t\t$this->Fecha_Reasignacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// Id_Reasignacion\r\n\t\t\t$this->Id_Reasignacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Reasignacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Id_Reasignacion->EditValue = ew_HtmlEncode($this->Id_Reasignacion->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Id_Reasignacion->PlaceHolder = ew_RemoveHtml($this->Id_Reasignacion->FldCaption());\r\n\r\n\t\t\t// Titular_Original\r\n\t\t\t$this->Titular_Original->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Titular_Original->EditCustomAttributes = \"\";\r\n\t\t\t$this->Titular_Original->EditValue = ew_HtmlEncode($this->Titular_Original->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->Titular_Original->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Titular_Original->AdvancedSearch->SearchValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Titular_Original->EditValue = $this->Titular_Original->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Titular_Original->EditValue = ew_HtmlEncode($this->Titular_Original->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Titular_Original->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Titular_Original->PlaceHolder = ew_RemoveHtml($this->Titular_Original->FldCaption());\r\n\r\n\t\t\t// Dni\r\n\t\t\t$this->Dni->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni->EditValue = ew_HtmlEncode($this->Dni->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Dni->PlaceHolder = ew_RemoveHtml($this->Dni->FldCaption());\r\n\r\n\t\t\t// NroSerie\r\n\t\t\t$this->NroSerie->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->NroSerie->EditCustomAttributes = \"\";\r\n\t\t\t$this->NroSerie->EditValue = ew_HtmlEncode($this->NroSerie->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->NroSerie->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->NroSerie->AdvancedSearch->SearchValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->NroSerie->EditValue = $this->NroSerie->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->NroSerie->EditValue = ew_HtmlEncode($this->NroSerie->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->NroSerie->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->NroSerie->PlaceHolder = ew_RemoveHtml($this->NroSerie->FldCaption());\r\n\r\n\t\t\t// Nuevo_Titular\r\n\t\t\t$this->Nuevo_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nuevo_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nuevo_Titular->EditValue = ew_HtmlEncode($this->Nuevo_Titular->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->Nuevo_Titular->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nuevo_Titular->AdvancedSearch->SearchValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nuevo_Titular->EditValue = $this->Nuevo_Titular->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nuevo_Titular->EditValue = ew_HtmlEncode($this->Nuevo_Titular->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nuevo_Titular->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nuevo_Titular->PlaceHolder = ew_RemoveHtml($this->Nuevo_Titular->FldCaption());\r\n\r\n\t\t\t// Dni_Nuevo_Tit\r\n\t\t\t$this->Dni_Nuevo_Tit->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni_Nuevo_Tit->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->EditValue = ew_HtmlEncode($this->Dni_Nuevo_Tit->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Dni_Nuevo_Tit->PlaceHolder = ew_RemoveHtml($this->Dni_Nuevo_Tit->FldCaption());\r\n\r\n\t\t\t// Id_Motivo_Reasig\r\n\t\t\t$this->Id_Motivo_Reasig->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Motivo_Reasig->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Motivo_Reasig->AdvancedSearch->SearchValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Motivo_Reasig`\" . ew_SearchString(\"=\", $this->Id_Motivo_Reasig->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Motivo_Reasig`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `motivo_reasignacion`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Motivo_Reasig, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Motivo_Reasig->EditValue = $arwrk;\r\n\r\n\t\t\t// Observacion\r\n\t\t\t$this->Observacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Observacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Observacion->EditValue = ew_HtmlEncode($this->Observacion->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Observacion->PlaceHolder = ew_RemoveHtml($this->Observacion->FldCaption());\r\n\r\n\t\t\t// Fecha_Reasignacion\r\n\t\t\t$this->Fecha_Reasignacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Reasignacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Fecha_Reasignacion->AdvancedSearch->SearchValue, 7), 7));\r\n\t\t\t$this->Fecha_Reasignacion->PlaceHolder = ew_RemoveHtml($this->Fecha_Reasignacion->FldCaption());\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Usuario->EditCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->EditValue = ew_HtmlEncode($this->Usuario->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Usuario->PlaceHolder = ew_RemoveHtml($this->Usuario->FldCaption());\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Actualizacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Fecha_Actualizacion->AdvancedSearch->SearchValue, 0), 8));\r\n\t\t\t$this->Fecha_Actualizacion->PlaceHolder = ew_RemoveHtml($this->Fecha_Actualizacion->FldCaption());\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$filesystem->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$filesystem->id->CellCssStyle = \"\";\r\n\t\t$filesystem->id->CellCssClass = \"\";\r\n\r\n\t\t// mount\r\n\t\t$filesystem->mount->CellCssStyle = \"\";\r\n\t\t$filesystem->mount->CellCssClass = \"\";\r\n\r\n\t\t// path\r\n\t\t$filesystem->path->CellCssStyle = \"\";\r\n\t\t$filesystem->path->CellCssClass = \"\";\r\n\r\n\t\t// parent\r\n\t\t$filesystem->parent->CellCssStyle = \"\";\r\n\t\t$filesystem->parent->CellCssClass = \"\";\r\n\r\n\t\t// deprecated\r\n\t\t$filesystem->deprecated->CellCssStyle = \"\";\r\n\t\t$filesystem->deprecated->CellCssClass = \"\";\r\n\r\n\t\t// gid\r\n\t\t$filesystem->gid->CellCssStyle = \"\";\r\n\t\t$filesystem->gid->CellCssClass = \"\";\r\n\r\n\t\t// snapshot\r\n\t\t$filesystem->snapshot->CellCssStyle = \"\";\r\n\t\t$filesystem->snapshot->CellCssClass = \"\";\r\n\r\n\t\t// tapebackup\r\n\t\t$filesystem->tapebackup->CellCssStyle = \"\";\r\n\t\t$filesystem->tapebackup->CellCssClass = \"\";\r\n\r\n\t\t// diskbackup\r\n\t\t$filesystem->diskbackup->CellCssStyle = \"\";\r\n\t\t$filesystem->diskbackup->CellCssClass = \"\";\r\n\r\n\t\t// type\r\n\t\t$filesystem->type->CellCssStyle = \"\";\r\n\t\t$filesystem->type->CellCssClass = \"\";\r\n\r\n\t\t// contact\r\n\t\t$filesystem->contact->CellCssStyle = \"\";\r\n\t\t$filesystem->contact->CellCssClass = \"\";\r\n\r\n\t\t// contact2\r\n\t\t$filesystem->contact2->CellCssStyle = \"\";\r\n\t\t$filesystem->contact2->CellCssClass = \"\";\r\n\r\n\t\t// rescomp\r\n\t\t$filesystem->rescomp->CellCssStyle = \"\";\r\n\t\t$filesystem->rescomp->CellCssClass = \"\";\r\n\t\tif ($filesystem->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->ViewValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->ViewValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->ViewValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->ViewValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->ViewValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->ViewValue = $filesystem->snapshot->CurrentValue;\r\n\t\t\t$filesystem->snapshot->CssStyle = \"\";\r\n\t\t\t$filesystem->snapshot->CssClass = \"\";\r\n\t\t\t$filesystem->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->ViewValue = $filesystem->tapebackup->CurrentValue;\r\n\t\t\t$filesystem->tapebackup->CssStyle = \"\";\r\n\t\t\t$filesystem->tapebackup->CssClass = \"\";\r\n\t\t\t$filesystem->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->ViewValue = $filesystem->diskbackup->CurrentValue;\r\n\t\t\t$filesystem->diskbackup->CssStyle = \"\";\r\n\t\t\t$filesystem->diskbackup->CssClass = \"\";\r\n\t\t\t$filesystem->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->ViewValue = $filesystem->contact2->CurrentValue;\r\n\t\t\t$filesystem->contact2->CssStyle = \"\";\r\n\t\t\t$filesystem->contact2->CssClass = \"\";\r\n\t\t\t$filesystem->contact2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->ViewValue = $filesystem->rescomp->CurrentValue;\r\n\t\t\t$filesystem->rescomp->CssStyle = \"\";\r\n\t\t\t$filesystem->rescomp->CssClass = \"\";\r\n\t\t\t$filesystem->rescomp->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t} elseif ($filesystem->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->id->EditValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->mount->EditValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->path->EditValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->parent->EditValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->deprecated->EditValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->gid->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->gid->CurrentValue = $filesystem->gid->getSessionValue();\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `grp`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->gid->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->snapshot->EditValue = ew_HtmlEncode($filesystem->snapshot->CurrentValue);\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->tapebackup->EditValue = ew_HtmlEncode($filesystem->tapebackup->CurrentValue);\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->diskbackup->EditValue = ew_HtmlEncode($filesystem->diskbackup->CurrentValue);\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->type->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->type->CurrentValue = $filesystem->type->getSessionValue();\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `server_type`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->type->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->contact->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->contact->CurrentValue = $filesystem->contact->getSessionValue();\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$filesystem->contact->EditValue = ew_HtmlEncode($filesystem->contact->CurrentValue);\r\n\t\t\t}\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->contact2->EditValue = ew_HtmlEncode($filesystem->contact2->CurrentValue);\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->rescomp->EditValue = ew_HtmlEncode($filesystem->rescomp->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// id\r\n\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\t$filesystem->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $responsable;\n\n\t\t// Call Row_Rendering event\n\t\t$responsable->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idGerente\n\n\t\t$responsable->idGerente->CellCssStyle = \"\";\n\t\t$responsable->idGerente->CellCssClass = \"\";\n\n\t\t// idMer\n\t\t$responsable->idMer->CellCssStyle = \"\";\n\t\t$responsable->idMer->CellCssClass = \"\";\n\n\t\t// fecha\n\t\t$responsable->fecha->CellCssStyle = \"\";\n\t\t$responsable->fecha->CellCssClass = \"\";\n\n\t\t// habilitado\n\t\t$responsable->habilitado->CellCssStyle = \"\";\n\t\t$responsable->habilitado->CellCssClass = \"\";\n\t\tif ($responsable->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idResponsable\n\t\t\t$responsable->idResponsable->ViewValue = $responsable->idResponsable->CurrentValue;\n\t\t\t$responsable->idResponsable->CssStyle = \"\";\n\t\t\t$responsable->idResponsable->CssClass = \"\";\n\t\t\t$responsable->idResponsable->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\tif (strval($responsable->idGerente->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `nombre`, `paterno` FROM `usuario` WHERE `idUsuario` = \" . ew_AdjustSql($responsable->idGerente->CurrentValue) . \"\";\n\t\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idGerente->ViewValue = $rswrk->fields('nombre');\n\t\t\t\t\t$responsable->idGerente->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('paterno');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idGerente->ViewValue = $responsable->idGerente->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idGerente->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idGerente->CssStyle = \"\";\n\t\t\t$responsable->idGerente->CssClass = \"\";\n\t\t\t$responsable->idGerente->ViewCustomAttributes = \"\";\n\n\t\t\t// idMer\n\t\t\tif (strval($responsable->idMer->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `mer` FROM `mer` WHERE `idMer` = \" . ew_AdjustSql($responsable->idMer->CurrentValue) . \"\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idMer->ViewValue = $rswrk->fields('mer');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idMer->ViewValue = $responsable->idMer->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idMer->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idMer->CssStyle = \"\";\n\t\t\t$responsable->idMer->CssClass = \"\";\n\t\t\t$responsable->idMer->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->ViewValue = $responsable->fecha->CurrentValue;\n\t\t\t$responsable->fecha->ViewValue = ew_FormatDateTime($responsable->fecha->ViewValue, 7);\n\t\t\t$responsable->fecha->CssStyle = \"\";\n\t\t\t$responsable->fecha->CssClass = \"\";\n\t\t\t$responsable->fecha->ViewCustomAttributes = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->ViewValue = $responsable->habilitado->CurrentValue;\n\t\t\t$responsable->habilitado->CssStyle = \"\";\n\t\t\t$responsable->habilitado->CssClass = \"\";\n\t\t\t$responsable->habilitado->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->HrefValue = \"\";\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->HrefValue = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->HrefValue = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->HrefValue = \"\";\n\t\t} elseif ($responsable->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idUsuario`, `paterno`, `nombre`, '' AS SelectFilterFld FROM `usuario`\";\n\t\t\t$sWhereWrk = \"idRol='2'\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\", \"\"));\n\t\t\t$responsable->idGerente->EditValue = $arwrk;\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idMer`, `mer`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `mer`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `mer` Asc\";\n $rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\"));\n\t\t\t$responsable->idMer->EditValue = $arwrk;\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->EditCustomAttributes = \"\";\n\t\t\t$responsable->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($responsable->fecha->CurrentValue, 7));\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->EditCustomAttributes = \"\";\n\t\t\t$responsable->habilitado->EditValue = ew_HtmlEncode($responsable->habilitado->CurrentValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$responsable->Row_Rendered();\n\t}", "function RenderRow() {\r\r\tglobal $conn, $Security, $ratings;\r\r\r\r\t// Call Row Rendering event\r\r\t$ratings->Row_Rendering();\r\r\r\r\t// Common render codes for all row types\r\r\t// id\r\r\r\r\t$ratings->id->CellCssStyle = \"\";\r\r\t$ratings->id->CellCssClass = \"\";\r\r\r\r\t// rating\r\r\t$ratings->rating->CellCssStyle = \"\";\r\r\t$ratings->rating->CellCssClass = \"\";\r\r\r\r\t// domain\r\r\t$ratings->domain->CellCssStyle = \"\";\r\r\t$ratings->domain->CellCssClass = \"\";\r\r\tif ($ratings->RowType == EW_ROWTYPE_VIEW) { // View row\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_ADD) { // Add row\r\r\r\r\t\t// id\r\r\t\t$ratings->id->EditCustomAttributes = \"\";\r\r\t\t$ratings->id->EditValue = ew_HtmlEncode($ratings->id->CurrentValue);\r\r\r\r\t\t// rating\r\r\t\t$ratings->rating->EditCustomAttributes = \"\";\r\r\t\t$ratings->rating->EditValue = ew_HtmlEncode($ratings->rating->CurrentValue);\r\r\r\r\t\t// domain\r\r\t\t$ratings->domain->EditCustomAttributes = \"\";\r\r\t\t$ratings->domain->EditValue = ew_HtmlEncode($ratings->domain->CurrentValue);\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\r\t}\r\r\r\r\t// Call Row Rendered event\r\r\t$ratings->Row_Rendered();\r\r}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// detail_jenis_spp\n\t\t// id_jenis_spp\n\t\t// status_spp\n\t\t// no_spp\n\t\t// tgl_spp\n\t\t// keterangan\n\t\t// jumlah_up\n\t\t// bendahara\n\t\t// nama_pptk\n\t\t// nip_pptk\n\t\t// kode_program\n\t\t// kode_kegiatan\n\t\t// kode_sub_kegiatan\n\t\t// tahun_anggaran\n\t\t// jumlah_spd\n\t\t// nomer_dasar_spd\n\t\t// tanggal_spd\n\t\t// id_spd\n\t\t// kode_rekening\n\t\t// nama_bendahara\n\t\t// nip_bendahara\n\t\t// no_spm\n\t\t// tgl_spm\n\t\t// status_spm\n\t\t// nama_bank\n\t\t// nomer_rekening_bank\n\t\t// npwp\n\t\t// pimpinan_blud\n\t\t// nip_pimpinan\n\t\t// no_sptb\n\t\t// tgl_sptb\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// detail_jenis_spp\n\t\tif (strval($this->detail_jenis_spp->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->detail_jenis_spp->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `detail_jenis_spp` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jenis_detail_spp`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->detail_jenis_spp->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->detail_jenis_spp, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->detail_jenis_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->detail_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// id_jenis_spp\n\t\t$this->id_jenis_spp->ViewValue = $this->id_jenis_spp->CurrentValue;\n\t\t$this->id_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// status_spp\n\t\tif (strval($this->status_spp->CurrentValue) <> \"\") {\n\t\t\t$this->status_spp->ViewValue = $this->status_spp->OptionCaption($this->status_spp->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spp->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spp\n\t\t$this->tgl_spp->ViewValue = $this->tgl_spp->CurrentValue;\n\t\t$this->tgl_spp->ViewValue = ew_FormatDateTime($this->tgl_spp->ViewValue, 0);\n\t\t$this->tgl_spp->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_up\n\t\t$this->jumlah_up->ViewValue = $this->jumlah_up->CurrentValue;\n\t\t$this->jumlah_up->ViewCustomAttributes = \"\";\n\n\t\t// bendahara\n\t\t$this->bendahara->ViewValue = $this->bendahara->CurrentValue;\n\t\t$this->bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nama_pptk\n\t\t$this->nama_pptk->ViewValue = $this->nama_pptk->CurrentValue;\n\t\t$this->nama_pptk->ViewCustomAttributes = \"\";\n\n\t\t// nip_pptk\n\t\t$this->nip_pptk->ViewValue = $this->nip_pptk->CurrentValue;\n\t\t$this->nip_pptk->ViewCustomAttributes = \"\";\n\n\t\t// kode_program\n\t\t$this->kode_program->ViewValue = $this->kode_program->CurrentValue;\n\t\t$this->kode_program->ViewCustomAttributes = \"\";\n\n\t\t// kode_kegiatan\n\t\t$this->kode_kegiatan->ViewValue = $this->kode_kegiatan->CurrentValue;\n\t\t$this->kode_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// kode_sub_kegiatan\n\t\t$this->kode_sub_kegiatan->ViewValue = $this->kode_sub_kegiatan->CurrentValue;\n\t\t$this->kode_sub_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// tahun_anggaran\n\t\t$this->tahun_anggaran->ViewValue = $this->tahun_anggaran->CurrentValue;\n\t\t$this->tahun_anggaran->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_spd\n\t\t$this->jumlah_spd->ViewValue = $this->jumlah_spd->CurrentValue;\n\t\t$this->jumlah_spd->ViewCustomAttributes = \"\";\n\n\t\t// nomer_dasar_spd\n\t\t$this->nomer_dasar_spd->ViewValue = $this->nomer_dasar_spd->CurrentValue;\n\t\t$this->nomer_dasar_spd->ViewCustomAttributes = \"\";\n\n\t\t// tanggal_spd\n\t\t$this->tanggal_spd->ViewValue = $this->tanggal_spd->CurrentValue;\n\t\t$this->tanggal_spd->ViewValue = ew_FormatDateTime($this->tanggal_spd->ViewValue, 0);\n\t\t$this->tanggal_spd->ViewCustomAttributes = \"\";\n\n\t\t// id_spd\n\t\t$this->id_spd->ViewValue = $this->id_spd->CurrentValue;\n\t\t$this->id_spd->ViewCustomAttributes = \"\";\n\n\t\t// kode_rekening\n\t\t$this->kode_rekening->ViewValue = $this->kode_rekening->CurrentValue;\n\t\t$this->kode_rekening->ViewCustomAttributes = \"\";\n\n\t\t// nama_bendahara\n\t\t$this->nama_bendahara->ViewValue = $this->nama_bendahara->CurrentValue;\n\t\t$this->nama_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nip_bendahara\n\t\t$this->nip_bendahara->ViewValue = $this->nip_bendahara->CurrentValue;\n\t\t$this->nip_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// no_spm\n\t\t$this->no_spm->ViewValue = $this->no_spm->CurrentValue;\n\t\t$this->no_spm->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spm\n\t\t$this->tgl_spm->ViewValue = $this->tgl_spm->CurrentValue;\n\t\t$this->tgl_spm->ViewValue = ew_FormatDateTime($this->tgl_spm->ViewValue, 7);\n\t\t$this->tgl_spm->ViewCustomAttributes = \"\";\n\n\t\t// status_spm\n\t\tif (strval($this->status_spm->CurrentValue) <> \"\") {\n\t\t\t$this->status_spm->ViewValue = $this->status_spm->OptionCaption($this->status_spm->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spm->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spm->ViewCustomAttributes = \"\";\n\n\t\t// nama_bank\n\t\tif (strval($this->nama_bank->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`rekening`\" . ew_SearchString(\"=\", $this->nama_bank->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `rekening`, `rekening` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_blud_rs`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->nama_bank->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nama_bank, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nama_bank->ViewValue = NULL;\n\t\t}\n\t\t$this->nama_bank->ViewCustomAttributes = \"\";\n\n\t\t// nomer_rekening_bank\n\t\t$this->nomer_rekening_bank->ViewValue = $this->nomer_rekening_bank->CurrentValue;\n\t\t$this->nomer_rekening_bank->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan_blud\n\t\t$this->pimpinan_blud->ViewValue = $this->pimpinan_blud->CurrentValue;\n\t\t$this->pimpinan_blud->ViewCustomAttributes = \"\";\n\n\t\t// nip_pimpinan\n\t\t$this->nip_pimpinan->ViewValue = $this->nip_pimpinan->CurrentValue;\n\t\t$this->nip_pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// no_sptb\n\t\t$this->no_sptb->ViewValue = $this->no_sptb->CurrentValue;\n\t\t$this->no_sptb->ViewCustomAttributes = \"\";\n\n\t\t// tgl_sptb\n\t\t$this->tgl_sptb->ViewValue = $this->tgl_sptb->CurrentValue;\n\t\t$this->tgl_sptb->ViewValue = ew_FormatDateTime($this->tgl_sptb->ViewValue, 7);\n\t\t$this->tgl_sptb->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// detail_jenis_spp\n\t\t\t$this->detail_jenis_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->detail_jenis_spp->HrefValue = \"\";\n\t\t\t$this->detail_jenis_spp->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// tgl_spp\n\t\t\t$this->tgl_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spp->HrefValue = \"\";\n\t\t\t$this->tgl_spp->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// no_spm\n\t\t\t$this->no_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spm->HrefValue = \"\";\n\t\t\t$this->no_spm->TooltipValue = \"\";\n\n\t\t\t// tgl_spm\n\t\t\t$this->tgl_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spm->HrefValue = \"\";\n\t\t\t$this->tgl_spm->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->tarif->FormValue == $this->tarif->CurrentValue && is_numeric(ew_StrToFloat($this->tarif->CurrentValue)))\n\t\t\t$this->tarif->CurrentValue = ew_StrToFloat($this->tarif->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bhp->FormValue == $this->bhp->CurrentValue && is_numeric(ew_StrToFloat($this->bhp->CurrentValue)))\n\t\t\t$this->bhp->CurrentValue = ew_StrToFloat($this->bhp->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_admission\n\t\t// nomr\n\t\t// statusbayar\n\t\t// kelas\n\t\t// tanggal\n\t\t// kode_tindakan\n\t\t// qty\n\t\t// tarif\n\t\t// bhp\n\t\t// user\n\t\t// nama_tindakan\n\t\t// kelompok_tindakan\n\t\t// kelompok1\n\t\t// kelompok2\n\t\t// kode_dokter\n\t\t// no_ruang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kelas\n\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t$this->kelas->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// kode_tindakan\n\t\tif (strval($this->kode_tindakan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kode_tindakan->ViewValue = NULL;\n\t\t}\n\t\t$this->kode_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// qty\n\t\t$this->qty->ViewValue = $this->qty->CurrentValue;\n\t\t$this->qty->ViewCustomAttributes = \"\";\n\n\t\t// tarif\n\t\t$this->tarif->ViewValue = $this->tarif->CurrentValue;\n\t\t$this->tarif->ViewCustomAttributes = \"\";\n\n\t\t// bhp\n\t\t$this->bhp->ViewValue = $this->bhp->CurrentValue;\n\t\t$this->bhp->ViewCustomAttributes = \"\";\n\n\t\t// user\n\t\t$this->user->ViewValue = $this->user->CurrentValue;\n\t\t$this->user->ViewCustomAttributes = \"\";\n\n\t\t// nama_tindakan\n\t\t$this->nama_tindakan->ViewValue = $this->nama_tindakan->CurrentValue;\n\t\t$this->nama_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok_tindakan\n\t\t$this->kelompok_tindakan->ViewValue = $this->kelompok_tindakan->CurrentValue;\n\t\t$this->kelompok_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok1\n\t\t$this->kelompok1->ViewValue = $this->kelompok1->CurrentValue;\n\t\t$this->kelompok1->ViewCustomAttributes = \"\";\n\n\t\t// kelompok2\n\t\t$this->kelompok2->ViewValue = $this->kelompok2->CurrentValue;\n\t\t$this->kelompok2->ViewCustomAttributes = \"\";\n\n\t\t// kode_dokter\n\t\t$this->kode_dokter->ViewValue = $this->kode_dokter->CurrentValue;\n\t\t$this->kode_dokter->ViewCustomAttributes = \"\";\n\n\t\t// no_ruang\n\t\t$this->no_ruang->ViewValue = $this->no_ruang->CurrentValue;\n\t\t$this->no_ruang->ViewCustomAttributes = \"\";\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\t\t\t$this->id_admission->TooltipValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\t\t\t$this->kelas->TooltipValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\t\t\t$this->kode_tindakan->TooltipValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\t\t\t$this->qty->TooltipValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\t\t\t$this->tarif->TooltipValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\t\t\t$this->bhp->TooltipValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\t\t\t$this->user->TooltipValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\t\t\t$this->nama_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\t\t\t$this->kelompok_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\t\t\t$this->kelompok1->TooltipValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\t\t\t$this->kelompok2->TooltipValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\t\t\t$this->kode_dokter->TooltipValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t\t$this->no_ruang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_admission->EditCustomAttributes = \"\";\n\t\t\tif ($this->id_admission->getSessionValue() <> \"\") {\n\t\t\t\t$this->id_admission->CurrentValue = $this->id_admission->getSessionValue();\n\t\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->id_admission->EditValue = ew_HtmlEncode($this->id_admission->CurrentValue);\n\t\t\t$this->id_admission->PlaceHolder = ew_RemoveHtml($this->id_admission->FldCaption());\n\t\t\t}\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\tif ($this->nomr->getSessionValue() <> \"\") {\n\t\t\t\t$this->nomr->CurrentValue = $this->nomr->getSessionValue();\n\t\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t\t$this->nomr->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\t\t\t}\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\tif ($this->statusbayar->getSessionValue() <> \"\") {\n\t\t\t\t$this->statusbayar->CurrentValue = $this->statusbayar->getSessionValue();\n\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\t\t\t}\n\n\t\t\t// kelas\n\t\t\t$this->kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelas->EditCustomAttributes = \"\";\n\t\t\tif ($this->kelas->getSessionValue() <> \"\") {\n\t\t\t\t$this->kelas->CurrentValue = $this->kelas->getSessionValue();\n\t\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t\t$this->kelas->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->kelas->EditValue = ew_HtmlEncode($this->kelas->CurrentValue);\n\t\t\t$this->kelas->PlaceHolder = ew_RemoveHtml($this->kelas->FldCaption());\n\t\t\t}\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tanggal->CurrentValue, 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_tindakan->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->kode_tindakan->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->kode_tindakan->EditValue = $arwrk;\n\n\t\t\t// qty\n\t\t\t$this->qty->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->qty->EditCustomAttributes = \"\";\n\t\t\t$this->qty->EditValue = ew_HtmlEncode($this->qty->CurrentValue);\n\t\t\t$this->qty->PlaceHolder = ew_RemoveHtml($this->qty->FldCaption());\n\n\t\t\t// tarif\n\t\t\t$this->tarif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tarif->EditCustomAttributes = \"\";\n\t\t\t$this->tarif->EditValue = ew_HtmlEncode($this->tarif->CurrentValue);\n\t\t\t$this->tarif->PlaceHolder = ew_RemoveHtml($this->tarif->FldCaption());\n\t\t\tif (strval($this->tarif->EditValue) <> \"\" && is_numeric($this->tarif->EditValue)) $this->tarif->EditValue = ew_FormatNumber($this->tarif->EditValue, -2, -1, -2, 0);\n\n\t\t\t// bhp\n\t\t\t$this->bhp->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bhp->EditCustomAttributes = \"\";\n\t\t\t$this->bhp->EditValue = ew_HtmlEncode($this->bhp->CurrentValue);\n\t\t\t$this->bhp->PlaceHolder = ew_RemoveHtml($this->bhp->FldCaption());\n\t\t\tif (strval($this->bhp->EditValue) <> \"\" && is_numeric($this->bhp->EditValue)) $this->bhp->EditValue = ew_FormatNumber($this->bhp->EditValue, -2, -1, -2, 0);\n\n\t\t\t// user\n\t\t\t$this->user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->user->EditCustomAttributes = \"\";\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\n\t\t\t$this->user->PlaceHolder = ew_RemoveHtml($this->user->FldCaption());\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->EditValue = ew_HtmlEncode($this->nama_tindakan->CurrentValue);\n\t\t\t$this->nama_tindakan->PlaceHolder = ew_RemoveHtml($this->nama_tindakan->FldCaption());\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->EditValue = ew_HtmlEncode($this->kelompok_tindakan->CurrentValue);\n\t\t\t$this->kelompok_tindakan->PlaceHolder = ew_RemoveHtml($this->kelompok_tindakan->FldCaption());\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok1->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok1->EditValue = ew_HtmlEncode($this->kelompok1->CurrentValue);\n\t\t\t$this->kelompok1->PlaceHolder = ew_RemoveHtml($this->kelompok1->FldCaption());\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok2->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok2->EditValue = ew_HtmlEncode($this->kelompok2->CurrentValue);\n\t\t\t$this->kelompok2->PlaceHolder = ew_RemoveHtml($this->kelompok2->FldCaption());\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_dokter->EditCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->EditValue = ew_HtmlEncode($this->kode_dokter->CurrentValue);\n\t\t\t$this->kode_dokter->PlaceHolder = ew_RemoveHtml($this->kode_dokter->FldCaption());\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->no_ruang->EditCustomAttributes = \"\";\n\t\t\t$this->no_ruang->EditValue = ew_HtmlEncode($this->no_ruang->CurrentValue);\n\t\t\t$this->no_ruang->PlaceHolder = ew_RemoveHtml($this->no_ruang->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// id_admission\n\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id\r\n\t\t// Nama\r\n\t\t// Alamat\r\n\t\t// Jumlah\r\n\t\t// Provinsi\r\n\t\t// Area\r\n\t\t// CP\r\n\t\t// NoContact\r\n\t\t// Tanggal\r\n\t\t// Jam\r\n\t\t// Vechicle\r\n\t\t// Type\r\n\t\t// Site\r\n\t\t// Status\r\n\t\t// UserID\r\n\t\t// TglInput\r\n\t\t// visit\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id\r\n\t\t\t$this->Id->ViewValue = $this->Id->CurrentValue;\r\n\t\t\t$this->Id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->ViewValue = $this->Nama->CurrentValue;\r\n\t\t\t$this->Nama->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jumlah\r\n\t\t\t$this->Jumlah->ViewValue = $this->Jumlah->CurrentValue;\r\n\t\t\t$this->Jumlah->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\tif (strval($this->Provinsi->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Provinsi->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $this->Provinsi->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Provinsi->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Provinsi->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\tif (strval($this->Area->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Area->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Area->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Area->ViewValue = $this->Area->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Area->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Area->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->ViewValue = $this->CP->CurrentValue;\r\n\t\t\t$this->CP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NoContact\r\n\t\t\t$this->NoContact->ViewValue = $this->NoContact->CurrentValue;\r\n\t\t\t$this->NoContact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->ViewValue = $this->Tanggal->CurrentValue;\r\n\t\t\t$this->Tanggal->ViewValue = ew_FormatDateTime($this->Tanggal->ViewValue, 7);\r\n\t\t\t$this->Tanggal->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jam\r\n\t\t\t$this->Jam->ViewValue = $this->Jam->CurrentValue;\r\n\t\t\t$this->Jam->ViewValue = ew_FormatDateTime($this->Jam->ViewValue, 4);\r\n\t\t\t$this->Jam->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\tif (strval($this->Vechicle->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Vechicle->CurrentValue) {\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Vechicle->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Vechicle->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\tif (strval($this->Type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id`\" . ew_SearchString(\"=\", $this->Type->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Type->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\tif (strval($this->Site->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Site->CurrentValue) {\r\n\t\t\t\t\tcase $this->Site->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Site->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Site->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Site->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\tif (strval($this->Status->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Status->CurrentValue) {\r\n\t\t\t\t\tcase $this->Status->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Status->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Status->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// UserID\r\n\t\t\t$this->_UserID->ViewValue = $this->_UserID->CurrentValue;\r\n\t\t\t$this->_UserID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// TglInput\r\n\t\t\t$this->TglInput->ViewValue = $this->TglInput->CurrentValue;\r\n\t\t\t$this->TglInput->ViewValue = ew_FormatDateTime($this->TglInput->ViewValue, 7);\r\n\t\t\t$this->TglInput->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\tif (strval($this->visit->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->visit->CurrentValue) {\r\n\t\t\t\t\tcase $this->visit->FldTagValue(1):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->visit->FldTagValue(2):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->visit->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->visit->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nama->HrefValue = \"\";\r\n\t\t\t$this->Nama->TooltipValue = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Provinsi->HrefValue = \"\";\r\n\t\t\t$this->Provinsi->TooltipValue = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Area->HrefValue = \"\";\r\n\t\t\t$this->Area->TooltipValue = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CP->HrefValue = \"\";\r\n\t\t\t$this->CP->TooltipValue = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->HrefValue = \"\";\r\n\t\t\t$this->Tanggal->TooltipValue = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Vechicle->HrefValue = \"\";\r\n\t\t\t$this->Vechicle->TooltipValue = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Type->HrefValue = \"\";\r\n\t\t\t$this->Type->TooltipValue = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Site->HrefValue = \"\";\r\n\t\t\t$this->Site->TooltipValue = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Status->HrefValue = \"\";\r\n\t\t\t$this->Status->TooltipValue = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->LinkCustomAttributes = \"\";\r\n\t\t\t$this->visit->HrefValue = \"\";\r\n\t\t\t$this->visit->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nama->EditValue = ew_HtmlEncode($this->Nama->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Nama->PlaceHolder = ew_RemoveHtml($this->Nama->FldCaption());\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Provinsi->EditValue = $arwrk;\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Prov` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Area->EditValue = $arwrk;\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->EditCustomAttributes = \"\";\r\n\t\t\t$this->CP->EditValue = ew_HtmlEncode($this->CP->AdvancedSearch->SearchValue);\r\n\t\t\t$this->CP->PlaceHolder = ew_RemoveHtml($this->CP->FldCaption());\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue2, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(1), $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(2), $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Vechicle->EditValue = $arwrk;\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Type->EditValue = $arwrk;\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->EditCustomAttributes = \"\";\r\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn() && !$this->UserIDAllow(\"search\")) { // Non system admin\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sFilterWrk = $GLOBALS[\"user\"]->AddUserIDFilter(\"\");\r\n\t\t\t$sSqlWrk = \"SELECT `site`, `site` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `user`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Site, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t} else {\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(1), $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(2), $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(1), $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(2), $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->FldTagValue(2));\r\n\t\t\t$this->Status->EditValue = $arwrk;\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(1), $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(2), $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->FldTagValue(2));\r\n\t\t\t$this->visit->EditValue = $arwrk;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $archv_finished;\n\n\t\t// Initialize URLs\n\t\t$this->ExportPrintUrl = $this->PageUrl() . \"export=print&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportHtmlUrl = $this->PageUrl() . \"export=html&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportExcelUrl = $this->PageUrl() . \"export=excel&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportWordUrl = $this->PageUrl() . \"export=word&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportXmlUrl = $this->PageUrl() . \"export=xml&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportCsvUrl = $this->PageUrl() . \"export=csv&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->AddUrl = $archv_finished->AddUrl();\n\t\t$this->EditUrl = $archv_finished->EditUrl();\n\t\t$this->CopyUrl = $archv_finished->CopyUrl();\n\t\t$this->DeleteUrl = $archv_finished->DeleteUrl();\n\t\t$this->ListUrl = $archv_finished->ListUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$archv_finished->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// ID\n\n\t\t$archv_finished->ID->CellCssStyle = \"\"; $archv_finished->ID->CellCssClass = \"\";\n\t\t$archv_finished->ID->CellAttrs = array(); $archv_finished->ID->ViewAttrs = array(); $archv_finished->ID->EditAttrs = array();\n\n\t\t// strjrfnum\n\t\t$archv_finished->strjrfnum->CellCssStyle = \"\"; $archv_finished->strjrfnum->CellCssClass = \"\";\n\t\t$archv_finished->strjrfnum->CellAttrs = array(); $archv_finished->strjrfnum->ViewAttrs = array(); $archv_finished->strjrfnum->EditAttrs = array();\n\n\t\t// strquarter\n\t\t$archv_finished->strquarter->CellCssStyle = \"\"; $archv_finished->strquarter->CellCssClass = \"\";\n\t\t$archv_finished->strquarter->CellAttrs = array(); $archv_finished->strquarter->ViewAttrs = array(); $archv_finished->strquarter->EditAttrs = array();\n\n\t\t// strmon\n\t\t$archv_finished->strmon->CellCssStyle = \"\"; $archv_finished->strmon->CellCssClass = \"\";\n\t\t$archv_finished->strmon->CellAttrs = array(); $archv_finished->strmon->ViewAttrs = array(); $archv_finished->strmon->EditAttrs = array();\n\n\t\t// stryear\n\t\t$archv_finished->stryear->CellCssStyle = \"\"; $archv_finished->stryear->CellCssClass = \"\";\n\t\t$archv_finished->stryear->CellAttrs = array(); $archv_finished->stryear->ViewAttrs = array(); $archv_finished->stryear->EditAttrs = array();\n\n\t\t// strdate\n\t\t$archv_finished->strdate->CellCssStyle = \"\"; $archv_finished->strdate->CellCssClass = \"\";\n\t\t$archv_finished->strdate->CellAttrs = array(); $archv_finished->strdate->ViewAttrs = array(); $archv_finished->strdate->EditAttrs = array();\n\n\t\t// strtime\n\t\t$archv_finished->strtime->CellCssStyle = \"\"; $archv_finished->strtime->CellCssClass = \"\";\n\t\t$archv_finished->strtime->CellAttrs = array(); $archv_finished->strtime->ViewAttrs = array(); $archv_finished->strtime->EditAttrs = array();\n\n\t\t// strusername\n\t\t$archv_finished->strusername->CellCssStyle = \"\"; $archv_finished->strusername->CellCssClass = \"\";\n\t\t$archv_finished->strusername->CellAttrs = array(); $archv_finished->strusername->ViewAttrs = array(); $archv_finished->strusername->EditAttrs = array();\n\n\t\t// strusereadd\n\t\t$archv_finished->strusereadd->CellCssStyle = \"\"; $archv_finished->strusereadd->CellCssClass = \"\";\n\t\t$archv_finished->strusereadd->CellAttrs = array(); $archv_finished->strusereadd->ViewAttrs = array(); $archv_finished->strusereadd->EditAttrs = array();\n\n\t\t// strcompany\n\t\t$archv_finished->strcompany->CellCssStyle = \"\"; $archv_finished->strcompany->CellCssClass = \"\";\n\t\t$archv_finished->strcompany->CellAttrs = array(); $archv_finished->strcompany->ViewAttrs = array(); $archv_finished->strcompany->EditAttrs = array();\n\n\t\t// strdepartment\n\t\t$archv_finished->strdepartment->CellCssStyle = \"\"; $archv_finished->strdepartment->CellCssClass = \"\";\n\t\t$archv_finished->strdepartment->CellAttrs = array(); $archv_finished->strdepartment->ViewAttrs = array(); $archv_finished->strdepartment->EditAttrs = array();\n\n\t\t// strloc\n\t\t$archv_finished->strloc->CellCssStyle = \"\"; $archv_finished->strloc->CellCssClass = \"\";\n\t\t$archv_finished->strloc->CellAttrs = array(); $archv_finished->strloc->ViewAttrs = array(); $archv_finished->strloc->EditAttrs = array();\n\n\t\t// strposition\n\t\t$archv_finished->strposition->CellCssStyle = \"\"; $archv_finished->strposition->CellCssClass = \"\";\n\t\t$archv_finished->strposition->CellAttrs = array(); $archv_finished->strposition->ViewAttrs = array(); $archv_finished->strposition->EditAttrs = array();\n\n\t\t// strtelephone\n\t\t$archv_finished->strtelephone->CellCssStyle = \"\"; $archv_finished->strtelephone->CellCssClass = \"\";\n\t\t$archv_finished->strtelephone->CellAttrs = array(); $archv_finished->strtelephone->ViewAttrs = array(); $archv_finished->strtelephone->EditAttrs = array();\n\n\t\t// strcostcent\n\t\t$archv_finished->strcostcent->CellCssStyle = \"\"; $archv_finished->strcostcent->CellCssClass = \"\";\n\t\t$archv_finished->strcostcent->CellAttrs = array(); $archv_finished->strcostcent->ViewAttrs = array(); $archv_finished->strcostcent->EditAttrs = array();\n\n\t\t// strsubject\n\t\t$archv_finished->strsubject->CellCssStyle = \"\"; $archv_finished->strsubject->CellCssClass = \"\";\n\t\t$archv_finished->strsubject->CellAttrs = array(); $archv_finished->strsubject->ViewAttrs = array(); $archv_finished->strsubject->EditAttrs = array();\n\n\t\t// strnature\n\t\t$archv_finished->strnature->CellCssStyle = \"\"; $archv_finished->strnature->CellCssClass = \"\";\n\t\t$archv_finished->strnature->CellAttrs = array(); $archv_finished->strnature->ViewAttrs = array(); $archv_finished->strnature->EditAttrs = array();\n\n\t\t// strdescript\n\t\t$archv_finished->strdescript->CellCssStyle = \"\"; $archv_finished->strdescript->CellCssClass = \"\";\n\t\t$archv_finished->strdescript->CellAttrs = array(); $archv_finished->strdescript->ViewAttrs = array(); $archv_finished->strdescript->EditAttrs = array();\n\n\t\t// strarea\n\t\t$archv_finished->strarea->CellCssStyle = \"\"; $archv_finished->strarea->CellCssClass = \"\";\n\t\t$archv_finished->strarea->CellAttrs = array(); $archv_finished->strarea->ViewAttrs = array(); $archv_finished->strarea->EditAttrs = array();\n\n\t\t// strattach\n\t\t$archv_finished->strattach->CellCssStyle = \"\"; $archv_finished->strattach->CellCssClass = \"\";\n\t\t$archv_finished->strattach->CellAttrs = array(); $archv_finished->strattach->ViewAttrs = array(); $archv_finished->strattach->EditAttrs = array();\n\n\t\t// strpriority\n\t\t$archv_finished->strpriority->CellCssStyle = \"\"; $archv_finished->strpriority->CellCssClass = \"\";\n\t\t$archv_finished->strpriority->CellAttrs = array(); $archv_finished->strpriority->ViewAttrs = array(); $archv_finished->strpriority->EditAttrs = array();\n\n\t\t// strduedate\n\t\t$archv_finished->strduedate->CellCssStyle = \"\"; $archv_finished->strduedate->CellCssClass = \"\";\n\t\t$archv_finished->strduedate->CellAttrs = array(); $archv_finished->strduedate->ViewAttrs = array(); $archv_finished->strduedate->EditAttrs = array();\n\n\t\t// strstatus\n\t\t$archv_finished->strstatus->CellCssStyle = \"\"; $archv_finished->strstatus->CellCssClass = \"\";\n\t\t$archv_finished->strstatus->CellAttrs = array(); $archv_finished->strstatus->ViewAttrs = array(); $archv_finished->strstatus->EditAttrs = array();\n\n\t\t// strlastedit\n\t\t$archv_finished->strlastedit->CellCssStyle = \"\"; $archv_finished->strlastedit->CellCssClass = \"\";\n\t\t$archv_finished->strlastedit->CellAttrs = array(); $archv_finished->strlastedit->ViewAttrs = array(); $archv_finished->strlastedit->EditAttrs = array();\n\n\t\t// strcategory\n\t\t$archv_finished->strcategory->CellCssStyle = \"\"; $archv_finished->strcategory->CellCssClass = \"\";\n\t\t$archv_finished->strcategory->CellAttrs = array(); $archv_finished->strcategory->ViewAttrs = array(); $archv_finished->strcategory->EditAttrs = array();\n\n\t\t// strassigned\n\t\t$archv_finished->strassigned->CellCssStyle = \"\"; $archv_finished->strassigned->CellCssClass = \"\";\n\t\t$archv_finished->strassigned->CellAttrs = array(); $archv_finished->strassigned->ViewAttrs = array(); $archv_finished->strassigned->EditAttrs = array();\n\n\t\t// strdatecomplete\n\t\t$archv_finished->strdatecomplete->CellCssStyle = \"\"; $archv_finished->strdatecomplete->CellCssClass = \"\";\n\t\t$archv_finished->strdatecomplete->CellAttrs = array(); $archv_finished->strdatecomplete->ViewAttrs = array(); $archv_finished->strdatecomplete->EditAttrs = array();\n\n\t\t// strwithpr\n\t\t$archv_finished->strwithpr->CellCssStyle = \"\"; $archv_finished->strwithpr->CellCssClass = \"\";\n\t\t$archv_finished->strwithpr->CellAttrs = array(); $archv_finished->strwithpr->ViewAttrs = array(); $archv_finished->strwithpr->EditAttrs = array();\n\n\t\t// strremarks\n\t\t$archv_finished->strremarks->CellCssStyle = \"\"; $archv_finished->strremarks->CellCssClass = \"\";\n\t\t$archv_finished->strremarks->CellAttrs = array(); $archv_finished->strremarks->ViewAttrs = array(); $archv_finished->strremarks->EditAttrs = array();\n\n\t\t// sap_num\n\t\t$archv_finished->sap_num->CellCssStyle = \"\"; $archv_finished->sap_num->CellCssClass = \"\";\n\t\t$archv_finished->sap_num->CellAttrs = array(); $archv_finished->sap_num->ViewAttrs = array(); $archv_finished->sap_num->EditAttrs = array();\n\n\t\t// work_days\n\t\t$archv_finished->work_days->CellCssStyle = \"\"; $archv_finished->work_days->CellCssClass = \"\";\n\t\t$archv_finished->work_days->CellAttrs = array(); $archv_finished->work_days->ViewAttrs = array(); $archv_finished->work_days->EditAttrs = array();\n\t\tif ($archv_finished->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->ViewValue = $archv_finished->ID->CurrentValue;\n\t\t\t$archv_finished->ID->CssStyle = \"\";\n\t\t\t$archv_finished->ID->CssClass = \"\";\n\t\t\t$archv_finished->ID->ViewCustomAttributes = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->ViewValue = $archv_finished->strjrfnum->CurrentValue;\n\t\t\t$archv_finished->strjrfnum->CssStyle = \"\";\n\t\t\t$archv_finished->strjrfnum->CssClass = \"\";\n\t\t\t$archv_finished->strjrfnum->ViewCustomAttributes = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->ViewValue = $archv_finished->strquarter->CurrentValue;\n\t\t\t$archv_finished->strquarter->CssStyle = \"\";\n\t\t\t$archv_finished->strquarter->CssClass = \"\";\n\t\t\t$archv_finished->strquarter->ViewCustomAttributes = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->ViewValue = $archv_finished->strmon->CurrentValue;\n\t\t\t$archv_finished->strmon->CssStyle = \"\";\n\t\t\t$archv_finished->strmon->CssClass = \"\";\n\t\t\t$archv_finished->strmon->ViewCustomAttributes = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->ViewValue = $archv_finished->stryear->CurrentValue;\n\t\t\t$archv_finished->stryear->CssStyle = \"\";\n\t\t\t$archv_finished->stryear->CssClass = \"\";\n\t\t\t$archv_finished->stryear->ViewCustomAttributes = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->ViewValue = $archv_finished->strdate->CurrentValue;\n\t\t\t$archv_finished->strdate->CssStyle = \"\";\n\t\t\t$archv_finished->strdate->CssClass = \"\";\n\t\t\t$archv_finished->strdate->ViewCustomAttributes = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->ViewValue = $archv_finished->strtime->CurrentValue;\n\t\t\t$archv_finished->strtime->CssStyle = \"\";\n\t\t\t$archv_finished->strtime->CssClass = \"\";\n\t\t\t$archv_finished->strtime->ViewCustomAttributes = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->ViewValue = $archv_finished->strusername->CurrentValue;\n\t\t\t$archv_finished->strusername->CssStyle = \"\";\n\t\t\t$archv_finished->strusername->CssClass = \"\";\n\t\t\t$archv_finished->strusername->ViewCustomAttributes = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->ViewValue = $archv_finished->strusereadd->CurrentValue;\n\t\t\t$archv_finished->strusereadd->CssStyle = \"\";\n\t\t\t$archv_finished->strusereadd->CssClass = \"\";\n\t\t\t$archv_finished->strusereadd->ViewCustomAttributes = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->ViewValue = $archv_finished->strcompany->CurrentValue;\n\t\t\t$archv_finished->strcompany->CssStyle = \"\";\n\t\t\t$archv_finished->strcompany->CssClass = \"\";\n\t\t\t$archv_finished->strcompany->ViewCustomAttributes = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->ViewValue = $archv_finished->strdepartment->CurrentValue;\n\t\t\t$archv_finished->strdepartment->CssStyle = \"\";\n\t\t\t$archv_finished->strdepartment->CssClass = \"\";\n\t\t\t$archv_finished->strdepartment->ViewCustomAttributes = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->ViewValue = $archv_finished->strloc->CurrentValue;\n\t\t\t$archv_finished->strloc->CssStyle = \"\";\n\t\t\t$archv_finished->strloc->CssClass = \"\";\n\t\t\t$archv_finished->strloc->ViewCustomAttributes = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->ViewValue = $archv_finished->strposition->CurrentValue;\n\t\t\t$archv_finished->strposition->CssStyle = \"\";\n\t\t\t$archv_finished->strposition->CssClass = \"\";\n\t\t\t$archv_finished->strposition->ViewCustomAttributes = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->ViewValue = $archv_finished->strtelephone->CurrentValue;\n\t\t\t$archv_finished->strtelephone->CssStyle = \"\";\n\t\t\t$archv_finished->strtelephone->CssClass = \"\";\n\t\t\t$archv_finished->strtelephone->ViewCustomAttributes = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->ViewValue = $archv_finished->strcostcent->CurrentValue;\n\t\t\t$archv_finished->strcostcent->CssStyle = \"\";\n\t\t\t$archv_finished->strcostcent->CssClass = \"\";\n\t\t\t$archv_finished->strcostcent->ViewCustomAttributes = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->ViewValue = $archv_finished->strsubject->CurrentValue;\n\t\t\t$archv_finished->strsubject->CssStyle = \"\";\n\t\t\t$archv_finished->strsubject->CssClass = \"\";\n\t\t\t$archv_finished->strsubject->ViewCustomAttributes = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->ViewValue = $archv_finished->strnature->CurrentValue;\n\t\t\t$archv_finished->strnature->CssStyle = \"\";\n\t\t\t$archv_finished->strnature->CssClass = \"\";\n\t\t\t$archv_finished->strnature->ViewCustomAttributes = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->ViewValue = $archv_finished->strdescript->CurrentValue;\n\t\t\t$archv_finished->strdescript->CssStyle = \"\";\n\t\t\t$archv_finished->strdescript->CssClass = \"\";\n\t\t\t$archv_finished->strdescript->ViewCustomAttributes = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->ViewValue = $archv_finished->strarea->CurrentValue;\n\t\t\t$archv_finished->strarea->CssStyle = \"\";\n\t\t\t$archv_finished->strarea->CssClass = \"\";\n\t\t\t$archv_finished->strarea->ViewCustomAttributes = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->ViewValue = $archv_finished->strattach->CurrentValue;\n\t\t\t$archv_finished->strattach->CssStyle = \"\";\n\t\t\t$archv_finished->strattach->CssClass = \"\";\n\t\t\t$archv_finished->strattach->ViewCustomAttributes = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->ViewValue = $archv_finished->strpriority->CurrentValue;\n\t\t\t$archv_finished->strpriority->CssStyle = \"\";\n\t\t\t$archv_finished->strpriority->CssClass = \"\";\n\t\t\t$archv_finished->strpriority->ViewCustomAttributes = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->ViewValue = $archv_finished->strduedate->CurrentValue;\n\t\t\t$archv_finished->strduedate->CssStyle = \"\";\n\t\t\t$archv_finished->strduedate->CssClass = \"\";\n\t\t\t$archv_finished->strduedate->ViewCustomAttributes = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->ViewValue = $archv_finished->strstatus->CurrentValue;\n\t\t\t$archv_finished->strstatus->CssStyle = \"\";\n\t\t\t$archv_finished->strstatus->CssClass = \"\";\n\t\t\t$archv_finished->strstatus->ViewCustomAttributes = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->ViewValue = $archv_finished->strlastedit->CurrentValue;\n\t\t\t$archv_finished->strlastedit->CssStyle = \"\";\n\t\t\t$archv_finished->strlastedit->CssClass = \"\";\n\t\t\t$archv_finished->strlastedit->ViewCustomAttributes = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->ViewValue = $archv_finished->strcategory->CurrentValue;\n\t\t\t$archv_finished->strcategory->CssStyle = \"\";\n\t\t\t$archv_finished->strcategory->CssClass = \"\";\n\t\t\t$archv_finished->strcategory->ViewCustomAttributes = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->ViewValue = $archv_finished->strassigned->CurrentValue;\n\t\t\t$archv_finished->strassigned->CssStyle = \"\";\n\t\t\t$archv_finished->strassigned->CssClass = \"\";\n\t\t\t$archv_finished->strassigned->ViewCustomAttributes = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->ViewValue = $archv_finished->strdatecomplete->CurrentValue;\n\t\t\t$archv_finished->strdatecomplete->CssStyle = \"\";\n\t\t\t$archv_finished->strdatecomplete->CssClass = \"\";\n\t\t\t$archv_finished->strdatecomplete->ViewCustomAttributes = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->ViewValue = $archv_finished->strwithpr->CurrentValue;\n\t\t\t$archv_finished->strwithpr->CssStyle = \"\";\n\t\t\t$archv_finished->strwithpr->CssClass = \"\";\n\t\t\t$archv_finished->strwithpr->ViewCustomAttributes = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->ViewValue = $archv_finished->strremarks->CurrentValue;\n\t\t\t$archv_finished->strremarks->CssStyle = \"\";\n\t\t\t$archv_finished->strremarks->CssClass = \"\";\n\t\t\t$archv_finished->strremarks->ViewCustomAttributes = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->ViewValue = $archv_finished->sap_num->CurrentValue;\n\t\t\t$archv_finished->sap_num->CssStyle = \"\";\n\t\t\t$archv_finished->sap_num->CssClass = \"\";\n\t\t\t$archv_finished->sap_num->ViewCustomAttributes = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->ViewValue = $archv_finished->work_days->CurrentValue;\n\t\t\t$archv_finished->work_days->CssStyle = \"\";\n\t\t\t$archv_finished->work_days->CssClass = \"\";\n\t\t\t$archv_finished->work_days->ViewCustomAttributes = \"\";\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->HrefValue = \"\";\n\t\t\t$archv_finished->ID->TooltipValue = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->HrefValue = \"\";\n\t\t\t$archv_finished->strjrfnum->TooltipValue = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->HrefValue = \"\";\n\t\t\t$archv_finished->strquarter->TooltipValue = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->HrefValue = \"\";\n\t\t\t$archv_finished->strmon->TooltipValue = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->HrefValue = \"\";\n\t\t\t$archv_finished->stryear->TooltipValue = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->HrefValue = \"\";\n\t\t\t$archv_finished->strdate->TooltipValue = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->HrefValue = \"\";\n\t\t\t$archv_finished->strtime->TooltipValue = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->HrefValue = \"\";\n\t\t\t$archv_finished->strusername->TooltipValue = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->HrefValue = \"\";\n\t\t\t$archv_finished->strusereadd->TooltipValue = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->HrefValue = \"\";\n\t\t\t$archv_finished->strcompany->TooltipValue = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->HrefValue = \"\";\n\t\t\t$archv_finished->strdepartment->TooltipValue = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->HrefValue = \"\";\n\t\t\t$archv_finished->strloc->TooltipValue = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->HrefValue = \"\";\n\t\t\t$archv_finished->strposition->TooltipValue = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->HrefValue = \"\";\n\t\t\t$archv_finished->strtelephone->TooltipValue = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->HrefValue = \"\";\n\t\t\t$archv_finished->strcostcent->TooltipValue = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->HrefValue = \"\";\n\t\t\t$archv_finished->strsubject->TooltipValue = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->HrefValue = \"\";\n\t\t\t$archv_finished->strnature->TooltipValue = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->HrefValue = \"\";\n\t\t\t$archv_finished->strdescript->TooltipValue = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->HrefValue = \"\";\n\t\t\t$archv_finished->strarea->TooltipValue = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->HrefValue = \"\";\n\t\t\t$archv_finished->strattach->TooltipValue = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->HrefValue = \"\";\n\t\t\t$archv_finished->strpriority->TooltipValue = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->HrefValue = \"\";\n\t\t\t$archv_finished->strduedate->TooltipValue = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->HrefValue = \"\";\n\t\t\t$archv_finished->strstatus->TooltipValue = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->HrefValue = \"\";\n\t\t\t$archv_finished->strlastedit->TooltipValue = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->HrefValue = \"\";\n\t\t\t$archv_finished->strcategory->TooltipValue = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->HrefValue = \"\";\n\t\t\t$archv_finished->strassigned->TooltipValue = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->HrefValue = \"\";\n\t\t\t$archv_finished->strdatecomplete->TooltipValue = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->HrefValue = \"\";\n\t\t\t$archv_finished->strwithpr->TooltipValue = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->HrefValue = \"\";\n\t\t\t$archv_finished->strremarks->TooltipValue = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->HrefValue = \"\";\n\t\t\t$archv_finished->sap_num->TooltipValue = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->HrefValue = \"\";\n\t\t\t$archv_finished->work_days->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($archv_finished->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$archv_finished->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\n\t\t$this->id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// nombre_contacto\n\t\t// name\n\t\t// lastname\n\t\t// email\n\t\t// address\n\t\t// phone\n\t\t// cell\n\t\t// is_active\n\n\t\t$this->is_active->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// created_at\n\t\t// id_sucursal\n\t\t// documentos\n\n\t\t$this->documentos->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateModified\n\t\t$this->DateModified->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateDeleted\n\t\t$this->DateDeleted->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// CreatedBy\n\t\t$this->CreatedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// ModifiedBy\n\t\t$this->ModifiedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DeletedBy\n\t\t$this->DeletedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// latitud\n\t\t$this->latitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// longitud\n\t\t$this->longitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipoinmueble\n\t\t// id_ciudad_inmueble\n\t\t// id_provincia_inmueble\n\t\t// imagen_inmueble01\n\n\t\t$this->imagen_inmueble01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble02\n\t\t// imagen_inmueble03\n\t\t// imagen_inmueble04\n\t\t// imagen_inmueble05\n\t\t// imagen_inmueble06\n\n\t\t$this->imagen_inmueble06->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble07\n\t\t$this->imagen_inmueble07->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble08\n\t\t$this->imagen_inmueble08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipovehiculo\n\t\t// id_ciudad_vehiculo\n\t\t// id_provincia_vehiculo\n\t\t// imagen_vehiculo01\n\n\t\t$this->imagen_vehiculo01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo02\n\t\t// imagen_vehiculo03\n\n\t\t$this->imagen_vehiculo03->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo04\n\t\t$this->imagen_vehiculo04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo05\n\t\t// imagen_vehiculo06\n\t\t// imagen_vehiculo07\n\t\t// imagen_vehiculo08\n\n\t\t$this->imagen_vehiculo08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomaquinaria\n\t\t// id_ciudad_maquinaria\n\t\t// id_provincia_maquinaria\n\t\t// imagen_maquinaria01\n\n\t\t$this->imagen_maquinaria01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria02\n\t\t// imagen_maquinaria03\n\t\t// imagen_maquinaria04\n\n\t\t$this->imagen_maquinaria04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria05\n\t\t// imagen_maquinaria06\n\t\t// imagen_maquinaria07\n\t\t// imagen_maquinaria08\n\n\t\t$this->imagen_maquinaria08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomercaderia\n\t\t// imagen_mercaderia01\n\t\t// documento_mercaderia\n\t\t// tipoespecial\n\t\t// imagen_tipoespecial01\n\t\t// email_contacto\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// nombre_contacto\n\t\t$this->nombre_contacto->ViewValue = $this->nombre_contacto->CurrentValue;\n\t\t$this->nombre_contacto->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// lastname\n\t\t$this->lastname->ViewValue = $this->lastname->CurrentValue;\n\t\t$this->lastname->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// address\n\t\t$this->address->ViewValue = $this->address->CurrentValue;\n\t\t$this->address->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// cell\n\t\t$this->cell->ViewValue = $this->cell->CurrentValue;\n\t\t$this->cell->ViewCustomAttributes = \"\";\n\n\t\t// created_at\n\t\t$this->created_at->ViewValue = $this->created_at->CurrentValue;\n\t\t$this->created_at->ViewValue = ew_FormatDateTime($this->created_at->ViewValue, 17);\n\t\t$this->created_at->ViewCustomAttributes = \"\";\n\n\t\t// id_sucursal\n\t\tif (strval($this->id_sucursal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sucursal->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sucursal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sucursal->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`id`='\".$_SESSION[\"sucursal\"].\"'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sucursal, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sucursal->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sucursal->ViewCustomAttributes = \"\";\n\n\t\t// tipoinmueble\n\t\tif (strval($this->tipoinmueble->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoinmueble->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoinmueble->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='INMUEBLE'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoinmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoinmueble->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoinmueble->ViewValue .= $this->tipoinmueble->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoinmueble->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoinmueble->ViewValue = $this->tipoinmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoinmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoinmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_inmueble\n\t\tif (strval($this->id_ciudad_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_inmueble\n\t\tif (strval($this->id_provincia_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// tipovehiculo\n\t\tif (strval($this->tipovehiculo->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipovehiculo->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipovehiculo->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='VEHICULO'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipovehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipovehiculo->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipovehiculo->ViewValue .= $this->tipovehiculo->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipovehiculo->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipovehiculo->ViewValue = $this->tipovehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipovehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipovehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_vehiculo\n\t\tif (strval($this->id_ciudad_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_vehiculo\n\t\tif (strval($this->id_provincia_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// tipomaquinaria\n\t\tif (strval($this->tipomaquinaria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomaquinaria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomaquinaria->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='MAQUINARIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomaquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomaquinaria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomaquinaria->ViewValue .= $this->tipomaquinaria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomaquinaria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomaquinaria->ViewValue = $this->tipomaquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomaquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomaquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_maquinaria\n\t\tif (strval($this->id_ciudad_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_maquinaria\n\t\tif (strval($this->id_provincia_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// tipomercaderia\n\t\tif (strval($this->tipomercaderia->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomercaderia->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomercaderia->LookupFilters = array();\n\t\t$lookuptblfilter = \"`tipo`='MERCADERIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomercaderia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomercaderia->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomercaderia->ViewValue .= $this->tipomercaderia->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomercaderia->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomercaderia->ViewValue = $this->tipomercaderia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomercaderia->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomercaderia->ViewCustomAttributes = \"\";\n\n\t\t// documento_mercaderia\n\t\t$this->documento_mercaderia->ViewValue = $this->documento_mercaderia->CurrentValue;\n\t\t$this->documento_mercaderia->ViewCustomAttributes = \"\";\n\n\t\t// tipoespecial\n\t\tif (strval($this->tipoespecial->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoespecial->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoespecial->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='ESPECIAL'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoespecial, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoespecial->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoespecial->ViewValue .= $this->tipoespecial->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoespecial->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoespecial->ViewValue = $this->tipoespecial->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoespecial->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoespecial->ViewCustomAttributes = \"\";\n\n\t\t// email_contacto\n\t\tif (strval($this->email_contacto->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`login`\" . ew_SearchString(\"=\", $this->email_contacto->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `login`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `oficialcredito`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->email_contacto->LookupFilters = array(\"dx1\" => '`nombre`', \"dx2\" => '`apellido`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->email_contacto, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->email_contacto->ViewValue = NULL;\n\t\t}\n\t\t$this->email_contacto->ViewCustomAttributes = \"\";\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->HrefValue = \"\";\n\t\t\t$this->nombre_contacto->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// lastname\n\t\t\t$this->lastname->LinkCustomAttributes = \"\";\n\t\t\t$this->lastname->HrefValue = \"\";\n\t\t\t$this->lastname->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// address\n\t\t\t$this->address->LinkCustomAttributes = \"\";\n\t\t\t$this->address->HrefValue = \"\";\n\t\t\t$this->address->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// cell\n\t\t\t$this->cell->LinkCustomAttributes = \"\";\n\t\t\t$this->cell->HrefValue = \"\";\n\t\t\t$this->cell->TooltipValue = \"\";\n\n\t\t\t// created_at\n\t\t\t$this->created_at->LinkCustomAttributes = \"\";\n\t\t\t$this->created_at->HrefValue = \"\";\n\t\t\t$this->created_at->TooltipValue = \"\";\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sucursal->HrefValue = \"\";\n\t\t\t$this->id_sucursal->TooltipValue = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoinmueble->HrefValue = \"\";\n\t\t\t$this->tipoinmueble->TooltipValue = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipovehiculo->HrefValue = \"\";\n\t\t\t$this->tipovehiculo->TooltipValue = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomaquinaria->HrefValue = \"\";\n\t\t\t$this->tipomaquinaria->TooltipValue = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomercaderia->HrefValue = \"\";\n\t\t\t$this->tipomercaderia->TooltipValue = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoespecial->HrefValue = \"\";\n\t\t\t$this->tipoespecial->TooltipValue = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->email_contacto->HrefValue = \"\";\n\t\t\t$this->email_contacto->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre_contacto->EditCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->EditValue = ew_HtmlEncode($this->nombre_contacto->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre_contacto->PlaceHolder = ew_RemoveHtml($this->nombre_contacto->FldTitle());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldTitle());\n\n\t\t\t// lastname\n\t\t\t$this->lastname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lastname->EditCustomAttributes = \"\";\n\t\t\t$this->lastname->EditValue = ew_HtmlEncode($this->lastname->AdvancedSearch->SearchValue);\n\t\t\t$this->lastname->PlaceHolder = ew_RemoveHtml($this->lastname->FldTitle());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldTitle());\n\n\t\t\t// address\n\t\t\t$this->address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->address->EditCustomAttributes = \"\";\n\t\t\t$this->address->EditValue = ew_HtmlEncode($this->address->AdvancedSearch->SearchValue);\n\t\t\t$this->address->PlaceHolder = ew_RemoveHtml($this->address->FldTitle());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldTitle());\n\n\t\t\t// cell\n\t\t\t$this->cell->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cell->EditCustomAttributes = \"\";\n\t\t\t$this->cell->EditValue = ew_HtmlEncode($this->cell->AdvancedSearch->SearchValue);\n\t\t\t$this->cell->PlaceHolder = ew_RemoveHtml($this->cell->FldTitle());\n\n\t\t\t// created_at\n\t\t\t$this->created_at->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->created_at->EditCustomAttributes = \"\";\n\t\t\t$this->created_at->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->created_at->AdvancedSearch->SearchValue, 17), 17));\n\t\t\t$this->created_at->PlaceHolder = ew_RemoveHtml($this->created_at->FldTitle());\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_sucursal->EditCustomAttributes = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoinmueble->EditCustomAttributes = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipovehiculo->EditCustomAttributes = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomaquinaria->EditCustomAttributes = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomercaderia->EditCustomAttributes = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoespecial->EditCustomAttributes = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->email_contacto->EditCustomAttributes = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Proveedor\r\n\t\t// RazonSocial\r\n\t\t// RFC\r\n\t\t// NombreContacto\r\n\t\t// CalleYNumero\r\n\t\t// Colonia\r\n\t\t// Poblacion\r\n\t\t// Municipio_Delegacion\r\n\t\t// Id_Estado\r\n\t\t// CP\r\n\t\t// EMail\r\n\t\t// Telefonos\r\n\t\t// Celular\r\n\t\t// Fax\r\n\t\t// Banco\r\n\t\t// NumCuenta\r\n\t\t// CLABE\r\n\t\t// Maneja_Papeleta\r\n\t\t// Observaciones\r\n\t\t// Maneja_Activacion_Movi\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// RazonSocial\r\n\t\t\t$this->RazonSocial->ViewValue = $this->RazonSocial->CurrentValue;\r\n\t\t\t$this->RazonSocial->ViewValue = strtoupper($this->RazonSocial->ViewValue);\r\n\t\t\t$this->RazonSocial->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NombreContacto\r\n\t\t\t$this->NombreContacto->ViewValue = $this->NombreContacto->CurrentValue;\r\n\t\t\t$this->NombreContacto->ViewValue = strtoupper($this->NombreContacto->ViewValue);\r\n\t\t\t$this->NombreContacto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Poblacion\r\n\t\t\t$this->Poblacion->ViewValue = $this->Poblacion->CurrentValue;\r\n\t\t\t$this->Poblacion->ViewValue = strtoupper($this->Poblacion->ViewValue);\r\n\t\t\t$this->Poblacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\tif (strval($this->Id_Estado->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_estado`, `Estado` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `li_estados`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Estado` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Estado->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Estado->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Telefonos\r\n\t\t\t$this->Telefonos->ViewValue = $this->Telefonos->CurrentValue;\r\n\t\t\t$this->Telefonos->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Celular\r\n\t\t\t$this->Celular->ViewValue = $this->Celular->CurrentValue;\r\n\t\t\t$this->Celular->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Maneja_Papeleta\r\n\t\t\tif (strval($this->Maneja_Papeleta->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Maneja_Papeleta->CurrentValue) {\r\n\t\t\t\t\tcase $this->Maneja_Papeleta->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->FldTagCaption(1) <> \"\" ? $this->Maneja_Papeleta->FldTagCaption(1) : $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Maneja_Papeleta->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->FldTagCaption(2) <> \"\" ? $this->Maneja_Papeleta->FldTagCaption(2) : $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Maneja_Papeleta->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Maneja_Papeleta->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Maneja_Activacion_Movi\r\n\t\t\tif (strval($this->Maneja_Activacion_Movi->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Maneja_Activacion_Movi->CurrentValue) {\r\n\t\t\t\t\tcase $this->Maneja_Activacion_Movi->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->FldTagCaption(1) <> \"\" ? $this->Maneja_Activacion_Movi->FldTagCaption(1) : $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Maneja_Activacion_Movi->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->FldTagCaption(2) <> \"\" ? $this->Maneja_Activacion_Movi->FldTagCaption(2) : $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Maneja_Activacion_Movi->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RazonSocial\r\n\t\t\t$this->RazonSocial->LinkCustomAttributes = \"\";\r\n\t\t\t$this->RazonSocial->HrefValue = \"\";\r\n\t\t\t$this->RazonSocial->TooltipValue = \"\";\r\n\r\n\t\t\t// NombreContacto\r\n\t\t\t$this->NombreContacto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->NombreContacto->HrefValue = \"\";\r\n\t\t\t$this->NombreContacto->TooltipValue = \"\";\r\n\r\n\t\t\t// Poblacion\r\n\t\t\t$this->Poblacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Poblacion->HrefValue = \"\";\r\n\t\t\t$this->Poblacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado->TooltipValue = \"\";\r\n\r\n\t\t\t// Telefonos\r\n\t\t\t$this->Telefonos->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Telefonos->HrefValue = \"\";\r\n\t\t\t$this->Telefonos->TooltipValue = \"\";\r\n\r\n\t\t\t// Celular\r\n\t\t\t$this->Celular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Celular->HrefValue = \"\";\r\n\t\t\t$this->Celular->TooltipValue = \"\";\r\n\r\n\t\t\t// Maneja_Papeleta\r\n\t\t\t$this->Maneja_Papeleta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Maneja_Papeleta->HrefValue = \"\";\r\n\t\t\t$this->Maneja_Papeleta->TooltipValue = \"\";\r\n\r\n\t\t\t// Maneja_Activacion_Movi\r\n\t\t\t$this->Maneja_Activacion_Movi->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Maneja_Activacion_Movi->HrefValue = \"\";\r\n\t\t\t$this->Maneja_Activacion_Movi->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Title\n\t\t// LV\n\t\t// Type\n\t\t// ResetTime\n\t\t// ResetType\n\t\t// CompleteTask\n\t\t// Occupation\n\t\t// Target\n\t\t// Data\n\t\t// Reward_Gold\n\t\t// Reward_Diamonds\n\t\t// Reward_EXP\n\t\t// Reward_Goods\n\t\t// Info\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Title\n\t\t$this->Title->ViewValue = $this->Title->CurrentValue;\n\t\t$this->Title->ViewCustomAttributes = \"\";\n\n\t\t// LV\n\t\t$this->LV->ViewValue = $this->LV->CurrentValue;\n\t\t$this->LV->ViewCustomAttributes = \"\";\n\n\t\t// Type\n\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\n\t\t$this->Type->ViewCustomAttributes = \"\";\n\n\t\t// ResetTime\n\t\t$this->ResetTime->ViewValue = $this->ResetTime->CurrentValue;\n\t\t$this->ResetTime->ViewCustomAttributes = \"\";\n\n\t\t// ResetType\n\t\t$this->ResetType->ViewValue = $this->ResetType->CurrentValue;\n\t\t$this->ResetType->ViewCustomAttributes = \"\";\n\n\t\t// CompleteTask\n\t\t$this->CompleteTask->ViewValue = $this->CompleteTask->CurrentValue;\n\t\t$this->CompleteTask->ViewCustomAttributes = \"\";\n\n\t\t// Occupation\n\t\t$this->Occupation->ViewValue = $this->Occupation->CurrentValue;\n\t\t$this->Occupation->ViewCustomAttributes = \"\";\n\n\t\t// Target\n\t\t$this->Target->ViewValue = $this->Target->CurrentValue;\n\t\t$this->Target->ViewCustomAttributes = \"\";\n\n\t\t// Data\n\t\t$this->Data->ViewValue = $this->Data->CurrentValue;\n\t\t$this->Data->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Gold\n\t\t$this->Reward_Gold->ViewValue = $this->Reward_Gold->CurrentValue;\n\t\t$this->Reward_Gold->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Diamonds\n\t\t$this->Reward_Diamonds->ViewValue = $this->Reward_Diamonds->CurrentValue;\n\t\t$this->Reward_Diamonds->ViewCustomAttributes = \"\";\n\n\t\t// Reward_EXP\n\t\t$this->Reward_EXP->ViewValue = $this->Reward_EXP->CurrentValue;\n\t\t$this->Reward_EXP->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Goods\n\t\t$this->Reward_Goods->ViewValue = $this->Reward_Goods->CurrentValue;\n\t\t$this->Reward_Goods->ViewCustomAttributes = \"\";\n\n\t\t// Info\n\t\t$this->Info->ViewValue = $this->Info->CurrentValue;\n\t\t$this->Info->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Title\n\t\t\t$this->Title->LinkCustomAttributes = \"\";\n\t\t\t$this->Title->HrefValue = \"\";\n\t\t\t$this->Title->TooltipValue = \"\";\n\n\t\t\t// LV\n\t\t\t$this->LV->LinkCustomAttributes = \"\";\n\t\t\t$this->LV->HrefValue = \"\";\n\t\t\t$this->LV->TooltipValue = \"\";\n\n\t\t\t// Type\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\n\t\t\t$this->Type->HrefValue = \"\";\n\t\t\t$this->Type->TooltipValue = \"\";\n\n\t\t\t// ResetTime\n\t\t\t$this->ResetTime->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetTime->HrefValue = \"\";\n\t\t\t$this->ResetTime->TooltipValue = \"\";\n\n\t\t\t// ResetType\n\t\t\t$this->ResetType->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetType->HrefValue = \"\";\n\t\t\t$this->ResetType->TooltipValue = \"\";\n\n\t\t\t// CompleteTask\n\t\t\t$this->CompleteTask->LinkCustomAttributes = \"\";\n\t\t\t$this->CompleteTask->HrefValue = \"\";\n\t\t\t$this->CompleteTask->TooltipValue = \"\";\n\n\t\t\t// Occupation\n\t\t\t$this->Occupation->LinkCustomAttributes = \"\";\n\t\t\t$this->Occupation->HrefValue = \"\";\n\t\t\t$this->Occupation->TooltipValue = \"\";\n\n\t\t\t// Target\n\t\t\t$this->Target->LinkCustomAttributes = \"\";\n\t\t\t$this->Target->HrefValue = \"\";\n\t\t\t$this->Target->TooltipValue = \"\";\n\n\t\t\t// Data\n\t\t\t$this->Data->LinkCustomAttributes = \"\";\n\t\t\t$this->Data->HrefValue = \"\";\n\t\t\t$this->Data->TooltipValue = \"\";\n\n\t\t\t// Reward_Gold\n\t\t\t$this->Reward_Gold->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Gold->HrefValue = \"\";\n\t\t\t$this->Reward_Gold->TooltipValue = \"\";\n\n\t\t\t// Reward_Diamonds\n\t\t\t$this->Reward_Diamonds->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Diamonds->HrefValue = \"\";\n\t\t\t$this->Reward_Diamonds->TooltipValue = \"\";\n\n\t\t\t// Reward_EXP\n\t\t\t$this->Reward_EXP->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_EXP->HrefValue = \"\";\n\t\t\t$this->Reward_EXP->TooltipValue = \"\";\n\n\t\t\t// Reward_Goods\n\t\t\t$this->Reward_Goods->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Goods->HrefValue = \"\";\n\t\t\t$this->Reward_Goods->TooltipValue = \"\";\n\n\t\t\t// Info\n\t\t\t$this->Info->LinkCustomAttributes = \"\";\n\t\t\t$this->Info->HrefValue = \"\";\n\t\t\t$this->Info->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->late->FormValue == $this->late->CurrentValue && is_numeric(ew_StrToFloat($this->late->CurrentValue)))\n\t\t\t$this->late->CurrentValue = ew_StrToFloat($this->late->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break->FormValue == $this->break->CurrentValue && is_numeric(ew_StrToFloat($this->break->CurrentValue)))\n\t\t\t$this->break->CurrentValue = ew_StrToFloat($this->break->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break_ot->FormValue == $this->break_ot->CurrentValue && is_numeric(ew_StrToFloat($this->break_ot->CurrentValue)))\n\t\t\t$this->break_ot->CurrentValue = ew_StrToFloat($this->break_ot->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->early->FormValue == $this->early->CurrentValue && is_numeric(ew_StrToFloat($this->early->CurrentValue)))\n\t\t\t$this->early->CurrentValue = ew_StrToFloat($this->early->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->durasi->FormValue == $this->durasi->CurrentValue && is_numeric(ew_StrToFloat($this->durasi->CurrentValue)))\n\t\t\t$this->durasi->CurrentValue = ew_StrToFloat($this->durasi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->jk_count_as->FormValue == $this->jk_count_as->CurrentValue && is_numeric(ew_StrToFloat($this->jk_count_as->CurrentValue)))\n\t\t\t$this->jk_count_as->CurrentValue = ew_StrToFloat($this->jk_count_as->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// pegawai_id\n\t\t// tgl_shift\n\t\t// khusus_lembur\n\t\t// khusus_extra\n\t\t// temp_id_auto\n\t\t// jdw_kerja_m_id\n\t\t// jk_id\n\t\t// jns_dok\n\t\t// izin_jenis_id\n\t\t// cuti_n_id\n\t\t// libur_umum\n\t\t// libur_rutin\n\t\t// jk_ot\n\t\t// scan_in\n\t\t// att_id_in\n\t\t// late_permission\n\t\t// late_minute\n\t\t// late\n\t\t// break_out\n\t\t// att_id_break1\n\t\t// break_in\n\t\t// att_id_break2\n\t\t// break_minute\n\t\t// break\n\t\t// break_ot_minute\n\t\t// break_ot\n\t\t// early_permission\n\t\t// early_minute\n\t\t// early\n\t\t// scan_out\n\t\t// att_id_out\n\t\t// durasi_minute\n\t\t// durasi\n\t\t// durasi_eot_minute\n\t\t// jk_count_as\n\t\t// status_jk\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// pegawai_id\n\t\t$this->pegawai_id->ViewValue = $this->pegawai_id->CurrentValue;\n\t\t$this->pegawai_id->ViewCustomAttributes = \"\";\n\n\t\t// tgl_shift\n\t\t$this->tgl_shift->ViewValue = $this->tgl_shift->CurrentValue;\n\t\t$this->tgl_shift->ViewValue = ew_FormatDateTime($this->tgl_shift->ViewValue, 0);\n\t\t$this->tgl_shift->ViewCustomAttributes = \"\";\n\n\t\t// khusus_lembur\n\t\t$this->khusus_lembur->ViewValue = $this->khusus_lembur->CurrentValue;\n\t\t$this->khusus_lembur->ViewCustomAttributes = \"\";\n\n\t\t// khusus_extra\n\t\t$this->khusus_extra->ViewValue = $this->khusus_extra->CurrentValue;\n\t\t$this->khusus_extra->ViewCustomAttributes = \"\";\n\n\t\t// temp_id_auto\n\t\t$this->temp_id_auto->ViewValue = $this->temp_id_auto->CurrentValue;\n\t\t$this->temp_id_auto->ViewCustomAttributes = \"\";\n\n\t\t// jdw_kerja_m_id\n\t\t$this->jdw_kerja_m_id->ViewValue = $this->jdw_kerja_m_id->CurrentValue;\n\t\t$this->jdw_kerja_m_id->ViewCustomAttributes = \"\";\n\n\t\t// jk_id\n\t\t$this->jk_id->ViewValue = $this->jk_id->CurrentValue;\n\t\t$this->jk_id->ViewCustomAttributes = \"\";\n\n\t\t// jns_dok\n\t\t$this->jns_dok->ViewValue = $this->jns_dok->CurrentValue;\n\t\t$this->jns_dok->ViewCustomAttributes = \"\";\n\n\t\t// izin_jenis_id\n\t\t$this->izin_jenis_id->ViewValue = $this->izin_jenis_id->CurrentValue;\n\t\t$this->izin_jenis_id->ViewCustomAttributes = \"\";\n\n\t\t// cuti_n_id\n\t\t$this->cuti_n_id->ViewValue = $this->cuti_n_id->CurrentValue;\n\t\t$this->cuti_n_id->ViewCustomAttributes = \"\";\n\n\t\t// libur_umum\n\t\t$this->libur_umum->ViewValue = $this->libur_umum->CurrentValue;\n\t\t$this->libur_umum->ViewCustomAttributes = \"\";\n\n\t\t// libur_rutin\n\t\t$this->libur_rutin->ViewValue = $this->libur_rutin->CurrentValue;\n\t\t$this->libur_rutin->ViewCustomAttributes = \"\";\n\n\t\t// jk_ot\n\t\t$this->jk_ot->ViewValue = $this->jk_ot->CurrentValue;\n\t\t$this->jk_ot->ViewCustomAttributes = \"\";\n\n\t\t// scan_in\n\t\t$this->scan_in->ViewValue = $this->scan_in->CurrentValue;\n\t\t$this->scan_in->ViewValue = ew_FormatDateTime($this->scan_in->ViewValue, 0);\n\t\t$this->scan_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_in\n\t\t$this->att_id_in->ViewValue = $this->att_id_in->CurrentValue;\n\t\t$this->att_id_in->ViewCustomAttributes = \"\";\n\n\t\t// late_permission\n\t\t$this->late_permission->ViewValue = $this->late_permission->CurrentValue;\n\t\t$this->late_permission->ViewCustomAttributes = \"\";\n\n\t\t// late_minute\n\t\t$this->late_minute->ViewValue = $this->late_minute->CurrentValue;\n\t\t$this->late_minute->ViewCustomAttributes = \"\";\n\n\t\t// late\n\t\t$this->late->ViewValue = $this->late->CurrentValue;\n\t\t$this->late->ViewCustomAttributes = \"\";\n\n\t\t// break_out\n\t\t$this->break_out->ViewValue = $this->break_out->CurrentValue;\n\t\t$this->break_out->ViewValue = ew_FormatDateTime($this->break_out->ViewValue, 0);\n\t\t$this->break_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break1\n\t\t$this->att_id_break1->ViewValue = $this->att_id_break1->CurrentValue;\n\t\t$this->att_id_break1->ViewCustomAttributes = \"\";\n\n\t\t// break_in\n\t\t$this->break_in->ViewValue = $this->break_in->CurrentValue;\n\t\t$this->break_in->ViewValue = ew_FormatDateTime($this->break_in->ViewValue, 0);\n\t\t$this->break_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break2\n\t\t$this->att_id_break2->ViewValue = $this->att_id_break2->CurrentValue;\n\t\t$this->att_id_break2->ViewCustomAttributes = \"\";\n\n\t\t// break_minute\n\t\t$this->break_minute->ViewValue = $this->break_minute->CurrentValue;\n\t\t$this->break_minute->ViewCustomAttributes = \"\";\n\n\t\t// break\n\t\t$this->break->ViewValue = $this->break->CurrentValue;\n\t\t$this->break->ViewCustomAttributes = \"\";\n\n\t\t// break_ot_minute\n\t\t$this->break_ot_minute->ViewValue = $this->break_ot_minute->CurrentValue;\n\t\t$this->break_ot_minute->ViewCustomAttributes = \"\";\n\n\t\t// break_ot\n\t\t$this->break_ot->ViewValue = $this->break_ot->CurrentValue;\n\t\t$this->break_ot->ViewCustomAttributes = \"\";\n\n\t\t// early_permission\n\t\t$this->early_permission->ViewValue = $this->early_permission->CurrentValue;\n\t\t$this->early_permission->ViewCustomAttributes = \"\";\n\n\t\t// early_minute\n\t\t$this->early_minute->ViewValue = $this->early_minute->CurrentValue;\n\t\t$this->early_minute->ViewCustomAttributes = \"\";\n\n\t\t// early\n\t\t$this->early->ViewValue = $this->early->CurrentValue;\n\t\t$this->early->ViewCustomAttributes = \"\";\n\n\t\t// scan_out\n\t\t$this->scan_out->ViewValue = $this->scan_out->CurrentValue;\n\t\t$this->scan_out->ViewValue = ew_FormatDateTime($this->scan_out->ViewValue, 0);\n\t\t$this->scan_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_out\n\t\t$this->att_id_out->ViewValue = $this->att_id_out->CurrentValue;\n\t\t$this->att_id_out->ViewCustomAttributes = \"\";\n\n\t\t// durasi_minute\n\t\t$this->durasi_minute->ViewValue = $this->durasi_minute->CurrentValue;\n\t\t$this->durasi_minute->ViewCustomAttributes = \"\";\n\n\t\t// durasi\n\t\t$this->durasi->ViewValue = $this->durasi->CurrentValue;\n\t\t$this->durasi->ViewCustomAttributes = \"\";\n\n\t\t// durasi_eot_minute\n\t\t$this->durasi_eot_minute->ViewValue = $this->durasi_eot_minute->CurrentValue;\n\t\t$this->durasi_eot_minute->ViewCustomAttributes = \"\";\n\n\t\t// jk_count_as\n\t\t$this->jk_count_as->ViewValue = $this->jk_count_as->CurrentValue;\n\t\t$this->jk_count_as->ViewCustomAttributes = \"\";\n\n\t\t// status_jk\n\t\t$this->status_jk->ViewValue = $this->status_jk->CurrentValue;\n\t\t$this->status_jk->ViewCustomAttributes = \"\";\n\n\t\t\t// pegawai_id\n\t\t\t$this->pegawai_id->LinkCustomAttributes = \"\";\n\t\t\t$this->pegawai_id->HrefValue = \"\";\n\t\t\t$this->pegawai_id->TooltipValue = \"\";\n\n\t\t\t// tgl_shift\n\t\t\t$this->tgl_shift->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_shift->HrefValue = \"\";\n\t\t\t$this->tgl_shift->TooltipValue = \"\";\n\n\t\t\t// khusus_lembur\n\t\t\t$this->khusus_lembur->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_lembur->HrefValue = \"\";\n\t\t\t$this->khusus_lembur->TooltipValue = \"\";\n\n\t\t\t// khusus_extra\n\t\t\t$this->khusus_extra->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_extra->HrefValue = \"\";\n\t\t\t$this->khusus_extra->TooltipValue = \"\";\n\n\t\t\t// temp_id_auto\n\t\t\t$this->temp_id_auto->LinkCustomAttributes = \"\";\n\t\t\t$this->temp_id_auto->HrefValue = \"\";\n\t\t\t$this->temp_id_auto->TooltipValue = \"\";\n\n\t\t\t// jdw_kerja_m_id\n\t\t\t$this->jdw_kerja_m_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jdw_kerja_m_id->HrefValue = \"\";\n\t\t\t$this->jdw_kerja_m_id->TooltipValue = \"\";\n\n\t\t\t// jk_id\n\t\t\t$this->jk_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_id->HrefValue = \"\";\n\t\t\t$this->jk_id->TooltipValue = \"\";\n\n\t\t\t// jns_dok\n\t\t\t$this->jns_dok->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_dok->HrefValue = \"\";\n\t\t\t$this->jns_dok->TooltipValue = \"\";\n\n\t\t\t// izin_jenis_id\n\t\t\t$this->izin_jenis_id->LinkCustomAttributes = \"\";\n\t\t\t$this->izin_jenis_id->HrefValue = \"\";\n\t\t\t$this->izin_jenis_id->TooltipValue = \"\";\n\n\t\t\t// cuti_n_id\n\t\t\t$this->cuti_n_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cuti_n_id->HrefValue = \"\";\n\t\t\t$this->cuti_n_id->TooltipValue = \"\";\n\n\t\t\t// libur_umum\n\t\t\t$this->libur_umum->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_umum->HrefValue = \"\";\n\t\t\t$this->libur_umum->TooltipValue = \"\";\n\n\t\t\t// libur_rutin\n\t\t\t$this->libur_rutin->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_rutin->HrefValue = \"\";\n\t\t\t$this->libur_rutin->TooltipValue = \"\";\n\n\t\t\t// jk_ot\n\t\t\t$this->jk_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_ot->HrefValue = \"\";\n\t\t\t$this->jk_ot->TooltipValue = \"\";\n\n\t\t\t// scan_in\n\t\t\t$this->scan_in->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_in->HrefValue = \"\";\n\t\t\t$this->scan_in->TooltipValue = \"\";\n\n\t\t\t// att_id_in\n\t\t\t$this->att_id_in->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_in->HrefValue = \"\";\n\t\t\t$this->att_id_in->TooltipValue = \"\";\n\n\t\t\t// late_permission\n\t\t\t$this->late_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->late_permission->HrefValue = \"\";\n\t\t\t$this->late_permission->TooltipValue = \"\";\n\n\t\t\t// late_minute\n\t\t\t$this->late_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->late_minute->HrefValue = \"\";\n\t\t\t$this->late_minute->TooltipValue = \"\";\n\n\t\t\t// late\n\t\t\t$this->late->LinkCustomAttributes = \"\";\n\t\t\t$this->late->HrefValue = \"\";\n\t\t\t$this->late->TooltipValue = \"\";\n\n\t\t\t// break_out\n\t\t\t$this->break_out->LinkCustomAttributes = \"\";\n\t\t\t$this->break_out->HrefValue = \"\";\n\t\t\t$this->break_out->TooltipValue = \"\";\n\n\t\t\t// att_id_break1\n\t\t\t$this->att_id_break1->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break1->HrefValue = \"\";\n\t\t\t$this->att_id_break1->TooltipValue = \"\";\n\n\t\t\t// break_in\n\t\t\t$this->break_in->LinkCustomAttributes = \"\";\n\t\t\t$this->break_in->HrefValue = \"\";\n\t\t\t$this->break_in->TooltipValue = \"\";\n\n\t\t\t// att_id_break2\n\t\t\t$this->att_id_break2->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break2->HrefValue = \"\";\n\t\t\t$this->att_id_break2->TooltipValue = \"\";\n\n\t\t\t// break_minute\n\t\t\t$this->break_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_minute->HrefValue = \"\";\n\t\t\t$this->break_minute->TooltipValue = \"\";\n\n\t\t\t// break\n\t\t\t$this->break->LinkCustomAttributes = \"\";\n\t\t\t$this->break->HrefValue = \"\";\n\t\t\t$this->break->TooltipValue = \"\";\n\n\t\t\t// break_ot_minute\n\t\t\t$this->break_ot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot_minute->HrefValue = \"\";\n\t\t\t$this->break_ot_minute->TooltipValue = \"\";\n\n\t\t\t// break_ot\n\t\t\t$this->break_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot->HrefValue = \"\";\n\t\t\t$this->break_ot->TooltipValue = \"\";\n\n\t\t\t// early_permission\n\t\t\t$this->early_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->early_permission->HrefValue = \"\";\n\t\t\t$this->early_permission->TooltipValue = \"\";\n\n\t\t\t// early_minute\n\t\t\t$this->early_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->early_minute->HrefValue = \"\";\n\t\t\t$this->early_minute->TooltipValue = \"\";\n\n\t\t\t// early\n\t\t\t$this->early->LinkCustomAttributes = \"\";\n\t\t\t$this->early->HrefValue = \"\";\n\t\t\t$this->early->TooltipValue = \"\";\n\n\t\t\t// scan_out\n\t\t\t$this->scan_out->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_out->HrefValue = \"\";\n\t\t\t$this->scan_out->TooltipValue = \"\";\n\n\t\t\t// att_id_out\n\t\t\t$this->att_id_out->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_out->HrefValue = \"\";\n\t\t\t$this->att_id_out->TooltipValue = \"\";\n\n\t\t\t// durasi_minute\n\t\t\t$this->durasi_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_minute->HrefValue = \"\";\n\t\t\t$this->durasi_minute->TooltipValue = \"\";\n\n\t\t\t// durasi\n\t\t\t$this->durasi->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi->HrefValue = \"\";\n\t\t\t$this->durasi->TooltipValue = \"\";\n\n\t\t\t// durasi_eot_minute\n\t\t\t$this->durasi_eot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_eot_minute->HrefValue = \"\";\n\t\t\t$this->durasi_eot_minute->TooltipValue = \"\";\n\n\t\t\t// jk_count_as\n\t\t\t$this->jk_count_as->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_count_as->HrefValue = \"\";\n\t\t\t$this->jk_count_as->TooltipValue = \"\";\n\n\t\t\t// status_jk\n\t\t\t$this->status_jk->LinkCustomAttributes = \"\";\n\t\t\t$this->status_jk->HrefValue = \"\";\n\t\t\t$this->status_jk->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// identries\r\n\t\t// domain_id\r\n\t\t// hash_content\r\n\t\t// fuente\r\n\t\t// published\r\n\t\t// updated\r\n\t\t// categorias\r\n\t\t// titulo\r\n\t\t// contenido\r\n\t\t// id\r\n\t\t// islive\r\n\t\t// thumbnail\r\n\t\t// reqdate\r\n\t\t// author\r\n\t\t// trans_en\r\n\t\t// trans_es\r\n\t\t// trans_fr\r\n\t\t// trans_it\r\n\t\t// fid\r\n\t\t// fmd5\r\n\t\t// tool_id\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->ViewValue = $this->identries->CurrentValue;\r\n\t\t\t$this->identries->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// domain_id\r\n\t\t\tif (strval($this->domain_id->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id_domains`\" . ew_SearchString(\"=\", $this->domain_id->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id_domains`, `dominio` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `domains`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->domain_id->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->domain_id->ViewValue = $this->domain_id->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->domain_id->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->domain_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// hash_content\r\n\t\t\t$this->hash_content->ViewValue = $this->hash_content->CurrentValue;\r\n\t\t\t$this->hash_content->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fuente\r\n\t\t\t$this->fuente->ViewValue = $this->fuente->CurrentValue;\r\n\t\t\t$this->fuente->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// published\r\n\t\t\t$this->published->ViewValue = $this->published->CurrentValue;\r\n\t\t\t$this->published->ViewValue = ew_FormatDateTime($this->published->ViewValue, 5);\r\n\t\t\t$this->published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated\r\n\t\t\t$this->updated->ViewValue = $this->updated->CurrentValue;\r\n\t\t\t$this->updated->ViewValue = ew_FormatDateTime($this->updated->ViewValue, 5);\r\n\t\t\t$this->updated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// categorias\r\n\t\t\t$this->categorias->ViewValue = $this->categorias->CurrentValue;\r\n\t\t\t$this->categorias->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->ViewValue = $this->titulo->CurrentValue;\r\n\t\t\t$this->titulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->ViewValue = $this->islive->CurrentValue;\r\n\t\t\t$this->islive->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// thumbnail\r\n\t\t\t$this->thumbnail->ViewValue = $this->thumbnail->CurrentValue;\r\n\t\t\t$this->thumbnail->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// reqdate\r\n\t\t\t$this->reqdate->ViewValue = $this->reqdate->CurrentValue;\r\n\t\t\t$this->reqdate->ViewValue = ew_FormatDateTime($this->reqdate->ViewValue, 5);\r\n\t\t\t$this->reqdate->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// author\r\n\t\t\t$this->author->ViewValue = $this->author->CurrentValue;\r\n\t\t\t$this->author->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_en\r\n\t\t\t$this->trans_en->ViewValue = $this->trans_en->CurrentValue;\r\n\t\t\t$this->trans_en->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_es\r\n\t\t\t$this->trans_es->ViewValue = $this->trans_es->CurrentValue;\r\n\t\t\t$this->trans_es->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_fr\r\n\t\t\t$this->trans_fr->ViewValue = $this->trans_fr->CurrentValue;\r\n\t\t\t$this->trans_fr->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_it\r\n\t\t\t$this->trans_it->ViewValue = $this->trans_it->CurrentValue;\r\n\t\t\t$this->trans_it->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fid\r\n\t\t\t$this->fid->ViewValue = $this->fid->CurrentValue;\r\n\t\t\t$this->fid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fmd5\r\n\t\t\t$this->fmd5->ViewValue = $this->fmd5->CurrentValue;\r\n\t\t\t$this->fmd5->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->ViewValue = $this->tool_id->CurrentValue;\r\n\t\t\t$this->tool_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->LinkCustomAttributes = \"\";\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\t\t\t$this->identries->TooltipValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\t\t\t$this->titulo->TooltipValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\t\t\t$this->id->TooltipValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->LinkCustomAttributes = \"\";\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\t\t\t$this->islive->TooltipValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t\t$this->tool_id->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// identries\r\n\t\t\t// titulo\r\n\r\n\t\t\t$this->titulo->EditCustomAttributes = \"\";\r\n\t\t\t$this->titulo->EditValue = ew_HtmlEncode($this->titulo->CurrentValue);\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->EditCustomAttributes = \"\";\r\n\t\t\t$this->id->EditValue = ew_HtmlEncode($this->id->CurrentValue);\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->EditCustomAttributes = \"\";\r\n\t\t\t$this->islive->EditValue = ew_HtmlEncode($this->islive->CurrentValue);\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->EditCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->EditValue = ew_HtmlEncode($this->tool_id->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// identries\r\n\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// spec_id\n\t\t// model_id\n\t\t// title\n\t\t// description\n\t\t// s_order\n\t\t// status\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->ViewValue = $this->spec_id->CurrentValue;\n\t\t\t$this->spec_id->ViewCustomAttributes = \"\";\n\n\t\t\t// model_id\n\t\t\tif (strval($this->model_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->model_id->CurrentValue, EW_DATATYPE_NUMBER);\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->model_id->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->model_id->ViewValue = $this->model_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->model_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->model_id->ViewCustomAttributes = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->ViewValue = $this->title->CurrentValue;\n\t\t\t$this->title->ViewCustomAttributes = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->ViewValue = $this->description->CurrentValue;\n\t\t\t$this->description->ViewCustomAttributes = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->ViewValue = $this->s_order->CurrentValue;\n\t\t\t$this->s_order->ViewCustomAttributes = \"\";\n\n\t\t\t// status\n\t\t\tif (strval($this->status->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->status->CurrentValue) {\n\t\t\t\t\tcase $this->status->FldTagValue(1):\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->FldTagCaption(1) <> \"\" ? $this->status->FldTagCaption(1) : $this->status->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->status->FldTagValue(2):\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->FldTagCaption(2) <> \"\" ? $this->status->FldTagCaption(2) : $this->status->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->status->ViewCustomAttributes = \"\";\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->LinkCustomAttributes = \"\";\n\t\t\t$this->spec_id->HrefValue = \"\";\n\t\t\t$this->spec_id->TooltipValue = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->LinkCustomAttributes = \"\";\n\t\t\t$this->model_id->HrefValue = \"\";\n\t\t\t$this->model_id->TooltipValue = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->LinkCustomAttributes = \"\";\n\t\t\t$this->title->HrefValue = \"\";\n\t\t\t$this->title->TooltipValue = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->LinkCustomAttributes = \"\";\n\t\t\t$this->description->HrefValue = \"\";\n\t\t\t$this->description->TooltipValue = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->LinkCustomAttributes = \"\";\n\t\t\t$this->s_order->HrefValue = \"\";\n\t\t\t$this->s_order->TooltipValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->LinkCustomAttributes = \"\";\n\t\t\t$this->status->HrefValue = \"\";\n\t\t\t$this->status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->EditCustomAttributes = \"\";\n\t\t\t$this->spec_id->EditValue = $this->spec_id->CurrentValue;\n\t\t\t$this->spec_id->ViewCustomAttributes = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->EditCustomAttributes = \"\";\n\t\t\tif ($this->model_id->getSessionValue() <> \"\") {\n\t\t\t\t$this->model_id->CurrentValue = $this->model_id->getSessionValue();\n\t\t\tif (strval($this->model_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->model_id->CurrentValue, EW_DATATYPE_NUMBER);\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->model_id->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->model_id->ViewValue = $this->model_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->model_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->model_id->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->model_id->EditValue = $arwrk;\n\t\t\t}\n\n\t\t\t// title\n\t\t\t$this->title->EditCustomAttributes = \"\";\n\t\t\t$this->title->EditValue = ew_HtmlEncode($this->title->CurrentValue);\n\n\t\t\t// description\n\t\t\t$this->description->EditCustomAttributes = \"\";\n\t\t\t$this->description->EditValue = ew_HtmlEncode($this->description->CurrentValue);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->EditCustomAttributes = \"\";\n\t\t\t$this->s_order->EditValue = ew_HtmlEncode($this->s_order->CurrentValue);\n\n\t\t\t// status\n\t\t\t$this->status->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->status->FldTagValue(1), $this->status->FldTagCaption(1) <> \"\" ? $this->status->FldTagCaption(1) : $this->status->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->status->FldTagValue(2), $this->status->FldTagCaption(2) <> \"\" ? $this->status->FldTagCaption(2) : $this->status->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->status->EditValue = $arwrk;\n\n\t\t\t// Edit refer script\n\t\t\t// spec_id\n\n\t\t\t$this->spec_id->HrefValue = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->HrefValue = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->HrefValue = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->HrefValue = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->HrefValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// empleado_id\n\t\t// codigo\n\t\t// cui\n\t\t// nombre\n\t\t// apellido\n\t\t// direccion\n\t\t// departamento_origen_id\n\t\t// municipio_id\n\t\t// telefono_residencia\n\t\t// telefono_celular\n\t\t// fecha_nacimiento\n\t\t// nacionalidad\n\t\t// estado_civil\n\t\t// sexo\n\t\t// igss\n\t\t// nit\n\t\t// licencia_conducir\n\t\t// area_id\n\t\t// departmento_id\n\t\t// seccion_id\n\t\t// puesto_id\n\t\t// observaciones\n\t\t// tipo_sangre_id\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// codigo\n\t\t$this->codigo->ViewValue = $this->codigo->CurrentValue;\n\t\t$this->codigo->ViewCustomAttributes = \"\";\n\n\t\t// cui\n\t\t$this->cui->ViewValue = $this->cui->CurrentValue;\n\t\t$this->cui->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// apellido\n\t\t$this->apellido->ViewValue = $this->apellido->CurrentValue;\n\t\t$this->apellido->ViewCustomAttributes = \"\";\n\n\t\t// direccion\n\t\t$this->direccion->ViewValue = $this->direccion->CurrentValue;\n\t\t$this->direccion->ViewCustomAttributes = \"\";\n\n\t\t// departamento_origen_id\n\t\tif (strval($this->departamento_origen_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_origen_id`\" . ew_SearchString(\"=\", $this->departamento_origen_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_origen_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento_origen`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departamento_origen_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departamento_origen_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departamento_origen_id->ViewCustomAttributes = \"\";\n\n\t\t// municipio_id\n\t\tif (strval($this->municipio_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`municipio_id`\" . ew_SearchString(\"=\", $this->municipio_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `municipio_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `municipio`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->municipio_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->municipio_id->ViewValue = NULL;\n\t\t}\n\t\t$this->municipio_id->ViewCustomAttributes = \"\";\n\n\t\t// telefono_residencia\n\t\t$this->telefono_residencia->ViewValue = $this->telefono_residencia->CurrentValue;\n\t\t$this->telefono_residencia->ViewCustomAttributes = \"\";\n\n\t\t// telefono_celular\n\t\t$this->telefono_celular->ViewValue = $this->telefono_celular->CurrentValue;\n\t\t$this->telefono_celular->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// nacionalidad\n\t\tif (strval($this->nacionalidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`nacionalidad_id`\" . ew_SearchString(\"=\", $this->nacionalidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `nacionalidad_id`, `nacionalidad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `nacionalidad`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nacionalidad, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nacionalidad->ViewValue = NULL;\n\t\t}\n\t\t$this->nacionalidad->ViewCustomAttributes = \"\";\n\n\t\t// estado_civil\n\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\tif (strval($this->estado_civil->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`estado_civil_id`\" . ew_SearchString(\"=\", $this->estado_civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `estado_civil_id`, `estado_civil` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->estado_civil, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->estado_civil->ViewValue = NULL;\n\t\t}\n\t\t$this->estado_civil->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`sexo_id`\" . ew_SearchString(\"=\", $this->sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `sexo_id`, `sexo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sexo, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// igss\n\t\t$this->igss->ViewValue = $this->igss->CurrentValue;\n\t\t$this->igss->ViewCustomAttributes = \"\";\n\n\t\t// nit\n\t\t$this->nit->ViewValue = $this->nit->CurrentValue;\n\t\t$this->nit->ViewCustomAttributes = \"\";\n\n\t\t// licencia_conducir\n\t\t$this->licencia_conducir->ViewValue = $this->licencia_conducir->CurrentValue;\n\t\t$this->licencia_conducir->ViewCustomAttributes = \"\";\n\n\t\t// area_id\n\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\tif (strval($this->area_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`area_id`\" . ew_SearchString(\"=\", $this->area_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `area_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `area`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->area_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->area_id->ViewValue = NULL;\n\t\t}\n\t\t$this->area_id->ViewCustomAttributes = \"\";\n\n\t\t// departmento_id\n\t\tif (strval($this->departmento_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_id`\" . ew_SearchString(\"=\", $this->departmento_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departmento_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departmento_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departmento_id->ViewCustomAttributes = \"\";\n\n\t\t// seccion_id\n\t\tif (strval($this->seccion_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`seccion_id`\" . ew_SearchString(\"=\", $this->seccion_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `seccion_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `seccion`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->seccion_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->seccion_id->ViewValue = NULL;\n\t\t}\n\t\t$this->seccion_id->ViewCustomAttributes = \"\";\n\n\t\t// puesto_id\n\t\tif (strval($this->puesto_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`puesto_id`\" . ew_SearchString(\"=\", $this->puesto_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `puesto_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `puesto`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->puesto_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->puesto_id->ViewValue = NULL;\n\t\t}\n\t\t$this->puesto_id->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// tipo_sangre_id\n\t\tif (strval($this->tipo_sangre_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`tipo_sangre_id`\" . ew_SearchString(\"=\", $this->tipo_sangre_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `tipo_sangre_id`, `tipo_sangre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_sangre`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipo_sangre_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipo_sangre_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo_sangre_id->ViewCustomAttributes = \"\";\n\n\t\t// estado\n\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// codigo\n\t\t\t$this->codigo->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo->HrefValue = \"\";\n\t\t\t$this->codigo->TooltipValue = \"\";\n\n\t\t\t// cui\n\t\t\t$this->cui->LinkCustomAttributes = \"\";\n\t\t\t$this->cui->HrefValue = \"\";\n\t\t\t$this->cui->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// apellido\n\t\t\t$this->apellido->LinkCustomAttributes = \"\";\n\t\t\t$this->apellido->HrefValue = \"\";\n\t\t\t$this->apellido->TooltipValue = \"\";\n\n\t\t\t// direccion\n\t\t\t$this->direccion->LinkCustomAttributes = \"\";\n\t\t\t$this->direccion->HrefValue = \"\";\n\t\t\t$this->direccion->TooltipValue = \"\";\n\n\t\t\t// departamento_origen_id\n\t\t\t$this->departamento_origen_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departamento_origen_id->HrefValue = \"\";\n\t\t\t$this->departamento_origen_id->TooltipValue = \"\";\n\n\t\t\t// municipio_id\n\t\t\t$this->municipio_id->LinkCustomAttributes = \"\";\n\t\t\t$this->municipio_id->HrefValue = \"\";\n\t\t\t$this->municipio_id->TooltipValue = \"\";\n\n\t\t\t// telefono_residencia\n\t\t\t$this->telefono_residencia->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_residencia->HrefValue = \"\";\n\t\t\t$this->telefono_residencia->TooltipValue = \"\";\n\n\t\t\t// telefono_celular\n\t\t\t$this->telefono_celular->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_celular->HrefValue = \"\";\n\t\t\t$this->telefono_celular->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// nacionalidad\n\t\t\t$this->nacionalidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nacionalidad->HrefValue = \"\";\n\t\t\t$this->nacionalidad->TooltipValue = \"\";\n\n\t\t\t// estado_civil\n\t\t\t$this->estado_civil->LinkCustomAttributes = \"\";\n\t\t\t$this->estado_civil->HrefValue = \"\";\n\t\t\t$this->estado_civil->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// igss\n\t\t\t$this->igss->LinkCustomAttributes = \"\";\n\t\t\t$this->igss->HrefValue = \"\";\n\t\t\t$this->igss->TooltipValue = \"\";\n\n\t\t\t// nit\n\t\t\t$this->nit->LinkCustomAttributes = \"\";\n\t\t\t$this->nit->HrefValue = \"\";\n\t\t\t$this->nit->TooltipValue = \"\";\n\n\t\t\t// licencia_conducir\n\t\t\t$this->licencia_conducir->LinkCustomAttributes = \"\";\n\t\t\t$this->licencia_conducir->HrefValue = \"\";\n\t\t\t$this->licencia_conducir->TooltipValue = \"\";\n\n\t\t\t// area_id\n\t\t\t$this->area_id->LinkCustomAttributes = \"\";\n\t\t\t$this->area_id->HrefValue = \"\";\n\t\t\t$this->area_id->TooltipValue = \"\";\n\n\t\t\t// departmento_id\n\t\t\t$this->departmento_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departmento_id->HrefValue = \"\";\n\t\t\t$this->departmento_id->TooltipValue = \"\";\n\n\t\t\t// seccion_id\n\t\t\t$this->seccion_id->LinkCustomAttributes = \"\";\n\t\t\t$this->seccion_id->HrefValue = \"\";\n\t\t\t$this->seccion_id->TooltipValue = \"\";\n\n\t\t\t// puesto_id\n\t\t\t$this->puesto_id->LinkCustomAttributes = \"\";\n\t\t\t$this->puesto_id->HrefValue = \"\";\n\t\t\t$this->puesto_id->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// tipo_sangre_id\n\t\t\t$this->tipo_sangre_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_sangre_id->HrefValue = \"\";\n\t\t\t$this->tipo_sangre_id->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $t_tinbai_mainsite;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $t_tinbai_mainsite->ViewUrl();\n\t\t$this->EditUrl = $t_tinbai_mainsite->EditUrl();\n\t\t$this->InlineEditUrl = $t_tinbai_mainsite->InlineEditUrl();\n\t\t$this->CopyUrl = $t_tinbai_mainsite->CopyUrl();\n\t\t$this->InlineCopyUrl = $t_tinbai_mainsite->InlineCopyUrl();\n\t\t$this->DeleteUrl = $t_tinbai_mainsite->DeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$t_tinbai_mainsite->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// FK_CONGTY_ID\n\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_CONGTY_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_CONGTY_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_CONGTY_ID->EditAttrs = array();\n\n\t\t// FK_DMGIOITHIEU_ID\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditAttrs = array();\n\n\t\t// FK_DMTUYENSINH_ID\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditAttrs = array();\n\n\t\t// FK_DTSVTUONGLAI_ID\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditAttrs = array();\n\n\t\t// FK_DTSVDANGHOC_ID\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditAttrs = array();\n\n\t\t// FK_DTCUUSV_ID\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTCUUSV_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTCUUSV_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTCUUSV_ID->EditAttrs = array();\n\n\t\t// FK_DTDOANHNGHIEP_ID\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditAttrs = array();\n\n\t\t// C_TITLE\n\t\t$t_tinbai_mainsite->C_TITLE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_TITLE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_TITLE->CellAttrs = array(); $t_tinbai_mainsite->C_TITLE->ViewAttrs = array(); $t_tinbai_mainsite->C_TITLE->EditAttrs = array();\n\n\t\t// C_HIT_MAINSITE\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_HIT_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_HIT_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_HIT_MAINSITE->EditAttrs = array();\n\n\t\t// C_NEW_MYSEFLT\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CellCssStyle = \"\"; $t_tinbai_mainsite->C_NEW_MYSEFLT->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CellAttrs = array(); $t_tinbai_mainsite->C_NEW_MYSEFLT->ViewAttrs = array(); $t_tinbai_mainsite->C_NEW_MYSEFLT->EditAttrs = array();\n\n\t\t// C_COMMENT_MAINSITE\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_COMMENT_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_COMMENT_MAINSITE->EditAttrs = array();\n\n\t\t// C_ORDER_MAINSITE\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ORDER_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_ORDER_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_ORDER_MAINSITE->EditAttrs = array();\n\n\t\t// C_STATUS_MAINSITE\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_STATUS_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_STATUS_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_STATUS_MAINSITE->EditAttrs = array();\n\n\t\t// C_VISITOR_MAINSITE\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_VISITOR_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_VISITOR_MAINSITE->EditAttrs = array();\n\n\t\t// C_ACTIVE_MAINSITE\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditAttrs = array();\n\n\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditAttrs = array();\n\n\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditAttrs = array();\n\n\t\t// C_NOTE\n\t\t$t_tinbai_mainsite->C_NOTE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_NOTE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_NOTE->CellAttrs = array(); $t_tinbai_mainsite->C_NOTE->ViewAttrs = array(); $t_tinbai_mainsite->C_NOTE->EditAttrs = array();\n\n\t\t// C_USER_ADD\n\t\t$t_tinbai_mainsite->C_USER_ADD->CellCssStyle = \"\"; $t_tinbai_mainsite->C_USER_ADD->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_USER_ADD->CellAttrs = array(); $t_tinbai_mainsite->C_USER_ADD->ViewAttrs = array(); $t_tinbai_mainsite->C_USER_ADD->EditAttrs = array();\n\n\t\t// C_ADD_TIME\n\t\t$t_tinbai_mainsite->C_ADD_TIME->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ADD_TIME->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ADD_TIME->CellAttrs = array(); $t_tinbai_mainsite->C_ADD_TIME->ViewAttrs = array(); $t_tinbai_mainsite->C_ADD_TIME->EditAttrs = array();\n\n\t\t// C_USER_EDIT\n\t\t$t_tinbai_mainsite->C_USER_EDIT->CellCssStyle = \"\"; $t_tinbai_mainsite->C_USER_EDIT->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_USER_EDIT->CellAttrs = array(); $t_tinbai_mainsite->C_USER_EDIT->ViewAttrs = array(); $t_tinbai_mainsite->C_USER_EDIT->EditAttrs = array();\n\n\t\t// C_EDIT_TIME\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->CellCssStyle = \"\"; $t_tinbai_mainsite->C_EDIT_TIME->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->CellAttrs = array(); $t_tinbai_mainsite->C_EDIT_TIME->ViewAttrs = array(); $t_tinbai_mainsite->C_EDIT_TIME->EditAttrs = array();\n\n\t\t// FK_EDITOR_ID\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_EDITOR_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_EDITOR_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_EDITOR_ID->EditAttrs = array();\n\t\tif ($t_tinbai_mainsite->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// PK_TINBAI_ID\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->ViewValue = $t_tinbai_mainsite->PK_TINBAI_ID->CurrentValue;\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_CONGTY_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_MACONGTY` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = $rswrk->fields('C_TENCONGTY');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = $t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_DANHMUCGIOITHIEU` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_danhmucgioithieu`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_DANHMUCTUYENSINH` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_danhmuctuyensinh`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = $t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTSVTUONGLAI_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_svtuonglai`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTSVDANGHOC_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_svdanghoc`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTCUUSV_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_cuusv`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = $t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTDOANHNGHIEP_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_doanhnghiep`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->ViewValue = $t_tinbai_mainsite->C_TITLE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_TITLE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_HIT_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue = \"\";\n\t\t\t\t$arwrk = explode(\",\", strval($t_tinbai_mainsite->C_HIT_MAINSITE->CurrentValue));\n\t\t\t\tfor ($ari = 0; $ari < count($arwrk); $ari++) {\n\t\t\t\t\tswitch (trim($arwrk[$ari])) {\n\t\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Không nổi bật\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật trang chủ\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật tuyển sinh\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"3\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật sinh viên đang học\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= trim($arwrk[$ari]);\n\t\t\t\t\t}\n\t\t\t\t\tif ($ari < count($arwrk)-1) $t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\tif (strval($t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = \"Không là tin chúng tôi\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = \"<b>Tin chúng tôi </b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = $t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewCustomAttributes = \"\";\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = \"Không cho phép\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = \"<b>Cho phép comnet</b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = $t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue = $t_tinbai_mainsite->C_ORDER_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Không duyệt <img src=\\\"images/alert-small.gif\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Đã duyệt <img src=\\\"images/icon-xac-thuc.jpg\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Chờ duyệt <img src=\\\"images/new.gif\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = $t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewValue = $t_tinbai_mainsite->C_VISITOR_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = \"<span style=\\\"color:red\\\">Không xuất bản</span>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = \"<b>Xuất bản</b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = $t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue = $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->ViewValue = $t_tinbai_mainsite->C_NOTE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_NOTE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $t_tinbai_levelsite->C_USER_ADD->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->C_USER_ADD->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->C_USER_ADD->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n \n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n \n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $t_tinbai_mainsite->C_USER_ADD->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewCustomAttributes = \"\";\n\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewValue = $t_tinbai_mainsite->C_ADD_TIME->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_ADD_TIME->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewCustomAttributes = \"\";\n\n\t\t\t// C_USER_EDIT\n \n $t_tinbai_mainsite->C_USER_EDIT->ViewValue = $t_tinbai_levelsite->C_USER_EDIT->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->C_USER_ADD->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->C_USER_EDIT->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n \n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n \n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewValue = $t_tinbai_mainsite->C_USER_EDIT->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewCustomAttributes = \"\";\n \n\t\t\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewValue = $t_tinbai_mainsite->C_EDIT_TIME->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_EDIT_TIME->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewValue = $t_tinbai_mainsite->FK_EDITOR_ID->CurrentValue;\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewValue = ew_FormatNumber($t_tinbai_mainsite->FK_EDITOR_ID->ViewValue, 0, -2, -2, -2);\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_CONGTY_ID\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->TooltipValue = \"\";\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->TooltipValue = \"\";\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->TooltipValue = \"\";\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->TooltipValue = \"\";\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->TooltipValue = \"\";\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->TooltipValue = \"\";\n\n\t\t\t// C_USER_EDIT\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->TooltipValue = \"\";\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->TooltipValue = \"\";\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->TooltipValue = \"\";\n\t\t} elseif ($t_tinbai_mainsite->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// FK_CONGTY_ID\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_MACONGTY`, `C_TENCONGTY`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_congty`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_DANHMUCGIOITHIEU`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_danhmucgioithieu`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_DANHMUCTUYENSINH`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_danhmuctuyensinh`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTSVTUONGLAI_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_svtuonglai`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTSVDANGHOC_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_svdanghoc`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTCUUSV_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_cuusv`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTDOANHNGHIEP_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_doanhnghiep`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditValue = $arwrk;\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_TITLE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không là tin nổi bật\");\n\t\t\t$arwrk[] = array(\"1\", \"Tin nổi bật trang chủ\");\n\t\t\t$arwrk[] = array(\"2\", \"Tin nổi bật trang tuyển sinh\");\n\t\t\t$arwrk[] = array(\"3\", \"Tin nổi bật sinh viên đang học\");\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không \");\n\t\t\t$arwrk[] = array(\"1\", \"Tin chúng tôi\");\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->EditValue = $arwrk;\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không cho phép\");\n\t\t\t$arwrk[] = array(\"1\", \"Cho phép commnet facebook\");\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_ORDER_MAINSITE->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không duyệt\");\n\t\t\t$arwrk[] = array(\"1\", \"Đã duyệt\");\n $arwrk[] = array(\"2\", \"Chờ xét\");\n\t\t\t$arwrk[] = array(\"\", \"\");\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_VISITOR_MAINSITE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"khong active len mainsite\");\n\t\t\t$arwrk[] = array(\"1\", \"Active lenmainsite\");\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_NOTE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_USER_ADD->AdvancedSearch->SearchValue);\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_ADD_TIME->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// C_USER_EDIT\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_USER_EDIT->AdvancedSearch->SearchValue);\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_EDIT_TIME->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->EditValue = ew_HtmlEncode($t_tinbai_mainsite->FK_EDITOR_ID->AdvancedSearch->SearchValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($t_tinbai_mainsite->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$t_tinbai_mainsite->Row_Rendered();\n\t}", "public function renderRow()\n\t{\n\t\tglobal $Security, $Language, $CurrentLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// document_sequence\n\t\t// firelink_doc_no\n\t\t// project_name\n\t\t// document_tittle\n\t\t// submit_no\n\t\t// revision_no\n\t\t// transmit_no\n\t\t// transmit_date\n\t\t// direction\n\t\t// approval_status\n\t\t// document_link\n\t\t// transaction_date\n\t\t// document_native\n\t\t// username\n\t\t// expiry_date\n\n\t\tif ($this->RowType == ROWTYPE_VIEW) { // View row\n\n\t\t\t// document_sequence\n\t\t\t$this->document_sequence->ViewValue = $this->document_sequence->CurrentValue;\n\t\t\t$this->document_sequence->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->document_sequence->ViewCustomAttributes = \"\";\n\n\t\t\t// firelink_doc_no\n\t\t\tif ($this->firelink_doc_no->VirtualValue <> \"\") {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->VirtualValue;\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->CurrentValue;\n\t\t\t$curVal = strval($this->firelink_doc_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->firelink_doc_no->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"firelink_doc_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->firelink_doc_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$arwrk[2] = strtoupper($rswrk->fields('df2'));\n\t\t\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->ViewValue = NULL;\n\t\t\t}\n\t\t\t}\n\t\t\t$this->firelink_doc_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->firelink_doc_no->ViewCustomAttributes = \"\";\n\n\t\t\t// project_name\n\t\t\t$this->project_name->ViewValue = $this->project_name->CurrentValue;\n\t\t\t$this->project_name->ViewCustomAttributes = \"\";\n\n\t\t\t// document_tittle\n\t\t\t$this->document_tittle->ViewValue = $this->document_tittle->CurrentValue;\n\t\t\t$this->document_tittle->ViewValue = strtoupper($this->document_tittle->ViewValue);\n\t\t\t$this->document_tittle->ViewCustomAttributes = \"\";\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->ViewValue = $this->submit_no->CurrentValue;\n\t\t\t$this->submit_no->ViewValue = FormatNumber($this->submit_no->ViewValue, 0, -1, -2, -2);\n\t\t\t$this->submit_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->submit_no->ViewCustomAttributes = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->ViewValue = $this->revision_no->CurrentValue;\n\t\t\t$this->revision_no->ViewValue = strtoupper($this->revision_no->ViewValue);\n\t\t\t$this->revision_no->ViewCustomAttributes = \"\";\n\n\t\t\t// transmit_no\n\t\t\tif ($this->transmit_no->VirtualValue <> \"\") {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->VirtualValue;\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->CurrentValue;\n\t\t\t$curVal = strval($this->transmit_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->transmit_no->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"transmittal_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->transmit_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->ViewValue = NULL;\n\t\t\t}\n\t\t\t}\n\t\t\t$this->transmit_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->transmit_no->ViewCustomAttributes = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->ViewValue = $this->transmit_date->CurrentValue;\n\t\t\t$this->transmit_date->ViewValue = FormatDateTime($this->transmit_date->ViewValue, 0);\n\t\t\t$this->transmit_date->ViewCustomAttributes = \"\";\n\n\t\t\t// direction\n\t\t\tif (strval($this->direction->CurrentValue) <> \"\") {\n\t\t\t\t$this->direction->ViewValue = $this->direction->optionCaption($this->direction->CurrentValue);\n\t\t\t} else {\n\t\t\t\t$this->direction->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->direction->ViewCustomAttributes = \"\";\n\n\t\t\t// approval_status\n\t\t\t$curVal = strval($this->approval_status->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->lookupCacheOption($curVal);\n\t\t\t\tif ($this->approval_status->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"short_code\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->approval_status->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$arwrk[2] = strtoupper($rswrk->fields('df2'));\n\t\t\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->approval_status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->approval_status->ViewCustomAttributes = \"\";\n\n\t\t\t// document_link\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->ViewValue = $this->document_link->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->document_link->ViewValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ViewCustomAttributes = \"\";\n\n\t\t\t// transaction_date\n\t\t\t$this->transaction_date->ViewValue = $this->transaction_date->CurrentValue;\n\t\t\t$this->transaction_date->ViewValue = FormatDateTime($this->transaction_date->ViewValue, 0);\n\t\t\t$this->transaction_date->ViewCustomAttributes = \"\";\n\n\t\t\t// document_native\n\t\t\t$this->document_native->ViewValue = $this->document_native->CurrentValue;\n\t\t\t$this->document_native->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->document_native->ViewCustomAttributes = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->ViewValue = $this->expiry_date->CurrentValue;\n\t\t\t$this->expiry_date->ViewValue = FormatDateTime($this->expiry_date->ViewValue, 0);\n\t\t\t$this->expiry_date->ViewCustomAttributes = \"\";\n\n\t\t\t// firelink_doc_no\n\t\t\t$this->firelink_doc_no->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->firelink_doc_no->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->firelink_doc_no->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->firelink_doc_no->HrefValue = FullUrl($this->firelink_doc_no->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->firelink_doc_no->TooltipValue = \"\";\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->submit_no->HrefValue = \"\";\n\t\t\t$this->submit_no->TooltipValue = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->LinkCustomAttributes = \"\";\n\t\t\t$this->revision_no->HrefValue = \"\";\n\t\t\t$this->revision_no->TooltipValue = \"\";\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_no->HrefValue = \"\";\n\t\t\t$this->transmit_no->TooltipValue = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_date->HrefValue = \"\";\n\t\t\t$this->transmit_date->TooltipValue = \"\";\n\n\t\t\t// direction\n\t\t\t$this->direction->LinkCustomAttributes = \"\";\n\t\t\t$this->direction->HrefValue = \"\";\n\t\t\t$this->direction->TooltipValue = \"\";\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->LinkCustomAttributes = \"\";\n\t\t\t$this->approval_status->HrefValue = \"\";\n\t\t\t$this->approval_status->TooltipValue = \"\";\n\n\t\t\t// document_link\n\t\t\t$this->document_link->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->document_link->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->document_link->HrefValue = FullUrl($this->document_link->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->document_link->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ExportHrefValue = $this->document_link->UploadPath . $this->document_link->Upload->DbValue;\n\t\t\t$this->document_link->TooltipValue = \"\";\n\n\t\t\t// document_native\n\t\t\t$this->document_native->LinkCustomAttributes = \"\";\n\t\t\t$this->document_native->HrefValue = \"\";\n\t\t\t$this->document_native->TooltipValue = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->LinkCustomAttributes = \"\";\n\t\t\t$this->expiry_date->HrefValue = \"\";\n\t\t\t$this->expiry_date->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == ROWTYPE_ADD) { // Add row\n\n\t\t\t// firelink_doc_no\n\t\t\t$this->firelink_doc_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->firelink_doc_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->firelink_doc_no->CurrentValue = HtmlDecode($this->firelink_doc_no->CurrentValue);\n\t\t\t$this->firelink_doc_no->EditValue = HtmlEncode($this->firelink_doc_no->CurrentValue);\n\t\t\t$curVal = strval($this->firelink_doc_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->firelink_doc_no->EditValue = $this->firelink_doc_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->firelink_doc_no->EditValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"firelink_doc_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->firelink_doc_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = HtmlEncode(strtoupper($rswrk->fields('df')));\n\t\t\t\t\t\t$arwrk[2] = HtmlEncode(strtoupper($rswrk->fields('df2')));\n\t\t\t\t\t\t$this->firelink_doc_no->EditValue = $this->firelink_doc_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->firelink_doc_no->EditValue = HtmlEncode($this->firelink_doc_no->CurrentValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->firelink_doc_no->PlaceHolder = RemoveHtml($this->firelink_doc_no->caption());\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->submit_no->EditCustomAttributes = \"\";\n\t\t\t$this->submit_no->EditValue = HtmlEncode($this->submit_no->CurrentValue);\n\t\t\t$this->submit_no->PlaceHolder = RemoveHtml($this->submit_no->caption());\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->revision_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->revision_no->CurrentValue = HtmlDecode($this->revision_no->CurrentValue);\n\t\t\t$this->revision_no->EditValue = HtmlEncode($this->revision_no->CurrentValue);\n\t\t\t$this->revision_no->PlaceHolder = RemoveHtml($this->revision_no->caption());\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->transmit_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->transmit_no->CurrentValue = HtmlDecode($this->transmit_no->CurrentValue);\n\t\t\t$this->transmit_no->EditValue = HtmlEncode($this->transmit_no->CurrentValue);\n\t\t\t$curVal = strval($this->transmit_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->transmit_no->EditValue = $this->transmit_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->transmit_no->EditValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"transmittal_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->transmit_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = HtmlEncode(strtoupper($rswrk->fields('df')));\n\t\t\t\t\t\t$this->transmit_no->EditValue = $this->transmit_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->transmit_no->EditValue = HtmlEncode($this->transmit_no->CurrentValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->transmit_no->PlaceHolder = RemoveHtml($this->transmit_no->caption());\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->transmit_date->EditCustomAttributes = \"\";\n\t\t\t$this->transmit_date->EditValue = HtmlEncode(FormatDateTime($this->transmit_date->CurrentValue, 8));\n\t\t\t$this->transmit_date->PlaceHolder = RemoveHtml($this->transmit_date->caption());\n\n\t\t\t// direction\n\t\t\t$this->direction->EditCustomAttributes = \"\";\n\t\t\t$this->direction->EditValue = $this->direction->options(FALSE);\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->approval_status->EditCustomAttributes = \"\";\n\t\t\t$curVal = trim(strval($this->approval_status->CurrentValue));\n\t\t\tif ($curVal <> \"\")\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->lookupCacheOption($curVal);\n\t\t\telse\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->Lookup !== NULL && is_array($this->approval_status->Lookup->Options) ? $curVal : NULL;\n\t\t\tif ($this->approval_status->ViewValue !== NULL) { // Load from cache\n\t\t\t\t$this->approval_status->EditValue = array_values($this->approval_status->Lookup->Options);\n\t\t\t} else { // Lookup from database\n\t\t\t\tif ($curVal == \"\") {\n\t\t\t\t\t$filterWrk = \"0=1\";\n\t\t\t\t} else {\n\t\t\t\t\t$filterWrk = \"\\\"short_code\\\"\" . SearchString(\"=\", $this->approval_status->CurrentValue, DATATYPE_STRING, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->approval_status->Lookup->getSql(TRUE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t\t$rowcnt = count($arwrk);\n\t\t\t\tfor ($i = 0; $i < $rowcnt; $i++) {\n\t\t\t\t\t$arwrk[$i][1] = strtoupper($arwrk[$i][1]);\n\t\t\t\t\t$arwrk[$i][2] = strtoupper($arwrk[$i][2]);\n\t\t\t\t}\n\t\t\t\t$this->approval_status->EditValue = $arwrk;\n\t\t\t}\n\n\t\t\t// document_link\n\t\t\t$this->document_link->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->document_link->EditCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->EditValue = $this->document_link->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->document_link->EditValue = \"\";\n\t\t\t}\n\t\t\tif (!EmptyValue($this->document_link->CurrentValue))\n\t\t\t\t\t$this->document_link->Upload->FileName = $this->document_link->CurrentValue;\n\t\t\tif (($this->isShow() || $this->isCopy()) && !$this->EventCancelled)\n\t\t\t\tRenderUploadField($this->document_link);\n\n\t\t\t// document_native\n\t\t\t$this->document_native->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->document_native->EditCustomAttributes = \"\";\n\t\t\t$this->document_native->EditValue = HtmlEncode($this->document_native->CurrentValue);\n\t\t\t$this->document_native->PlaceHolder = RemoveHtml($this->document_native->caption());\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->expiry_date->EditCustomAttributes = \"\";\n\t\t\t$this->expiry_date->EditValue = HtmlEncode(FormatDateTime($this->expiry_date->CurrentValue, 8));\n\t\t\t$this->expiry_date->PlaceHolder = RemoveHtml($this->expiry_date->caption());\n\n\t\t\t// Add refer script\n\t\t\t// firelink_doc_no\n\n\t\t\t$this->firelink_doc_no->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->firelink_doc_no->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->firelink_doc_no->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->firelink_doc_no->HrefValue = FullUrl($this->firelink_doc_no->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->HrefValue = \"\";\n\t\t\t}\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->submit_no->HrefValue = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->LinkCustomAttributes = \"\";\n\t\t\t$this->revision_no->HrefValue = \"\";\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_no->HrefValue = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_date->HrefValue = \"\";\n\n\t\t\t// direction\n\t\t\t$this->direction->LinkCustomAttributes = \"\";\n\t\t\t$this->direction->HrefValue = \"\";\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->LinkCustomAttributes = \"\";\n\t\t\t$this->approval_status->HrefValue = \"\";\n\n\t\t\t// document_link\n\t\t\t$this->document_link->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->document_link->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->document_link->HrefValue = FullUrl($this->document_link->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->document_link->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ExportHrefValue = $this->document_link->UploadPath . $this->document_link->Upload->DbValue;\n\n\t\t\t// document_native\n\t\t\t$this->document_native->LinkCustomAttributes = \"\";\n\t\t\t$this->document_native->HrefValue = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->LinkCustomAttributes = \"\";\n\t\t\t$this->expiry_date->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == ROWTYPE_ADD || $this->RowType == ROWTYPE_EDIT || $this->RowType == ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->setupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fbid\n\t\t// name\n\t\t// email\n\t\t// password\n\t\t// validated_mobile\n\t\t// role_id\n\t\t// image\n\t\t// newsletter\n\t\t// points\n\t\t// last_modified\n\t\t// p2\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// id\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->ViewValue = $this->fbid->CurrentValue;\n\t\t\t$this->fbid->ViewCustomAttributes = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->ViewValue = $this->password->CurrentValue;\n\t\t\t$this->password->ViewCustomAttributes = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->ViewValue = $this->validated_mobile->CurrentValue;\n\t\t\t$this->validated_mobile->ViewCustomAttributes = \"\";\n\n\t\t\t// role_id\n\t\t\tif (strval($this->role_id->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->role_id->CurrentValue) {\n\t\t\t\t\tcase $this->role_id->FldTagValue(1):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->role_id->FldTagValue(2):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->role_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->role_id->ViewCustomAttributes = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->ViewValue = $this->image->CurrentValue;\n\t\t\t$this->image->ViewCustomAttributes = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->ViewValue = $this->newsletter->CurrentValue;\n\t\t\t$this->newsletter->ViewCustomAttributes = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->ViewValue = $this->points->CurrentValue;\n\t\t\t$this->points->ViewCustomAttributes = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->ViewValue = $this->last_modified->CurrentValue;\n\t\t\t$this->last_modified->ViewValue = ew_FormatDateTime($this->last_modified->ViewValue, 7);\n\t\t\t$this->last_modified->ViewCustomAttributes = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->ViewValue = $this->p2->CurrentValue;\n\t\t\t$this->p2->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->LinkCustomAttributes = \"\";\n\t\t\t$this->fbid->HrefValue = \"\";\n\t\t\t$this->fbid->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->LinkCustomAttributes = \"\";\n\t\t\t$this->password->HrefValue = \"\";\n\t\t\t$this->password->TooltipValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->LinkCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\t\t\t$this->validated_mobile->TooltipValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->LinkCustomAttributes = \"\";\n\t\t\t$this->role_id->HrefValue = \"\";\n\t\t\t$this->role_id->TooltipValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->LinkCustomAttributes = \"\";\n\t\t\t$this->image->HrefValue = \"\";\n\t\t\t$this->image->TooltipValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->LinkCustomAttributes = \"\";\n\t\t\t$this->newsletter->HrefValue = \"\";\n\t\t\t$this->newsletter->TooltipValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->LinkCustomAttributes = \"\";\n\t\t\t$this->points->HrefValue = \"\";\n\t\t\t$this->points->TooltipValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->LinkCustomAttributes = \"\";\n\t\t\t$this->last_modified->HrefValue = \"\";\n\t\t\t$this->last_modified->TooltipValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->LinkCustomAttributes = \"\";\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t\t$this->p2->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// id\n\t\t\t$this->id->EditCustomAttributes = \"\";\n\t\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->EditCustomAttributes = \"\";\n\t\t\t$this->fbid->EditValue = ew_HtmlEncode($this->fbid->CurrentValue);\n\n\t\t\t// name\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->CurrentValue);\n\n\t\t\t// email\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->CurrentValue);\n\n\t\t\t// password\n\t\t\t$this->password->EditCustomAttributes = \"\";\n\t\t\t$this->password->EditValue = ew_HtmlEncode($this->password->CurrentValue);\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->EditCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->EditValue = ew_HtmlEncode($this->validated_mobile->CurrentValue);\n\n\t\t\t// role_id\n\t\t\t$this->role_id->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(1), $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(2), $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->role_id->EditValue = $arwrk;\n\n\t\t\t// image\n\t\t\t$this->image->EditCustomAttributes = \"\";\n\t\t\t$this->image->EditValue = ew_HtmlEncode($this->image->CurrentValue);\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->EditCustomAttributes = \"\";\n\t\t\t$this->newsletter->EditValue = ew_HtmlEncode($this->newsletter->CurrentValue);\n\n\t\t\t// points\n\t\t\t$this->points->EditCustomAttributes = \"\";\n\t\t\t$this->points->EditValue = ew_HtmlEncode($this->points->CurrentValue);\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->EditCustomAttributes = \"\";\n\t\t\t$this->last_modified->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->last_modified->CurrentValue, 7));\n\n\t\t\t// p2\n\t\t\t$this->p2->EditCustomAttributes = \"\";\n\t\t\t$this->p2->EditValue = ew_HtmlEncode($this->p2->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// id\n\n\t\t\t$this->id->HrefValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->HrefValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->HrefValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->HrefValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->HrefValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->HrefValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->HrefValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->HrefValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->HrefValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_sector\n\t\t// id_actividad\n\t\t// id_categoria\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// fecha_nacimiento\n\t\t// sexo\n\t\t// ci\n\t\t// nrodiscapacidad\n\t\t// celular\n\t\t// direcciondomicilio\n\t\t// ocupacion\n\t\t// email\n\t\t// cargo\n\t\t// nivelestudio\n\t\t// id_institucion\n\t\t// observaciones\n\t\t// id_centro\n\n\t\t$this->id_centro->CellCssStyle = \"white-space: nowrap;\";\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_sector\n\t\tif (strval($this->id_sector->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sector->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sector`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sector->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sector, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sector->ViewValue = $this->id_sector->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sector->ViewValue = $this->id_sector->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sector->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sector->ViewCustomAttributes = \"\";\n\n\t\t// id_actividad\n\t\tif (strval($this->id_actividad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_actividad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombreactividad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `actividad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_actividad->LookupFilters = array(\"dx1\" => '`nombreactividad`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_actividad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_actividad->ViewValue = $this->id_actividad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_actividad->ViewValue = $this->id_actividad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_actividad->ViewValue = NULL;\n\t\t}\n\t\t$this->id_actividad->ViewCustomAttributes = \"\";\n\n\t\t// id_categoria\n\t\tif (strval($this->id_categoria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->id_categoria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categoria`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_categoria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_categoria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->id_categoria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->id_categoria->ViewValue .= $this->id_categoria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->id_categoria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_categoria->ViewValue = $this->id_categoria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_categoria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_categoria->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// nrodiscapacidad\n\t\t$this->nrodiscapacidad->ViewValue = $this->nrodiscapacidad->CurrentValue;\n\t\t$this->nrodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// celular\n\t\t$this->celular->ViewValue = $this->celular->CurrentValue;\n\t\t$this->celular->ViewCustomAttributes = \"\";\n\n\t\t// direcciondomicilio\n\t\t$this->direcciondomicilio->ViewValue = $this->direcciondomicilio->CurrentValue;\n\t\t$this->direcciondomicilio->ViewCustomAttributes = \"\";\n\n\t\t// ocupacion\n\t\t$this->ocupacion->ViewValue = $this->ocupacion->CurrentValue;\n\t\t$this->ocupacion->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// cargo\n\t\t$this->cargo->ViewValue = $this->cargo->CurrentValue;\n\t\t$this->cargo->ViewCustomAttributes = \"\";\n\n\t\t// nivelestudio\n\t\t$this->nivelestudio->ViewValue = $this->nivelestudio->CurrentValue;\n\t\t$this->nivelestudio->ViewCustomAttributes = \"\";\n\n\t\t// id_institucion\n\t\t$this->id_institucion->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// id_sector\n\t\t\t$this->id_sector->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sector->HrefValue = \"\";\n\t\t\t$this->id_sector->TooltipValue = \"\";\n\n\t\t\t// id_actividad\n\t\t\t$this->id_actividad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_actividad->HrefValue = \"\";\n\t\t\t$this->id_actividad->TooltipValue = \"\";\n\n\t\t\t// id_categoria\n\t\t\t$this->id_categoria->LinkCustomAttributes = \"\";\n\t\t\t$this->id_categoria->HrefValue = \"\";\n\t\t\t$this->id_categoria->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// nrodiscapacidad\n\t\t\t$this->nrodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nrodiscapacidad->HrefValue = \"\";\n\t\t\t$this->nrodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// celular\n\t\t\t$this->celular->LinkCustomAttributes = \"\";\n\t\t\t$this->celular->HrefValue = \"\";\n\t\t\t$this->celular->TooltipValue = \"\";\n\n\t\t\t// direcciondomicilio\n\t\t\t$this->direcciondomicilio->LinkCustomAttributes = \"\";\n\t\t\t$this->direcciondomicilio->HrefValue = \"\";\n\t\t\t$this->direcciondomicilio->TooltipValue = \"\";\n\n\t\t\t// ocupacion\n\t\t\t$this->ocupacion->LinkCustomAttributes = \"\";\n\t\t\t$this->ocupacion->HrefValue = \"\";\n\t\t\t$this->ocupacion->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// cargo\n\t\t\t$this->cargo->LinkCustomAttributes = \"\";\n\t\t\t$this->cargo->HrefValue = \"\";\n\t\t\t$this->cargo->TooltipValue = \"\";\n\n\t\t\t// nivelestudio\n\t\t\t$this->nivelestudio->LinkCustomAttributes = \"\";\n\t\t\t$this->nivelestudio->HrefValue = \"\";\n\t\t\t$this->nivelestudio->TooltipValue = \"\";\n\n\t\t\t// id_institucion\n\t\t\t$this->id_institucion->LinkCustomAttributes = \"\";\n\t\t\t$this->id_institucion->HrefValue = \"\";\n\t\t\t$this->id_institucion->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Name\n\t\t// Basics\n\t\t// HP\n\t\t// MP\n\t\t// AD\n\t\t// AP\n\t\t// Defense\n\t\t// Hit\n\t\t// Dodge\n\t\t// Crit\n\t\t// AbsorbHP\n\t\t// ADPTV\n\t\t// ADPTR\n\t\t// APPTR\n\t\t// APPTV\n\t\t// ImmuneDamage\n\t\t// Intro\n\t\t// ExclusiveSkills\n\t\t// TransferDemand\n\t\t// TransferLevel\n\t\t// FormerOccupation\n\t\t// Belong\n\t\t// AttackEffect\n\t\t// AttackTips\n\t\t// MagicResistance\n\t\t// IgnoreShield\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Name\n\t\t$this->Name->ViewValue = $this->Name->CurrentValue;\n\t\t$this->Name->ViewCustomAttributes = \"\";\n\n\t\t// Basics\n\t\t$this->Basics->ViewValue = $this->Basics->CurrentValue;\n\t\t$this->Basics->ViewCustomAttributes = \"\";\n\n\t\t// HP\n\t\t$this->HP->ViewValue = $this->HP->CurrentValue;\n\t\t$this->HP->ViewCustomAttributes = \"\";\n\n\t\t// MP\n\t\t$this->MP->ViewValue = $this->MP->CurrentValue;\n\t\t$this->MP->ViewCustomAttributes = \"\";\n\n\t\t// AD\n\t\t$this->AD->ViewValue = $this->AD->CurrentValue;\n\t\t$this->AD->ViewCustomAttributes = \"\";\n\n\t\t// AP\n\t\t$this->AP->ViewValue = $this->AP->CurrentValue;\n\t\t$this->AP->ViewCustomAttributes = \"\";\n\n\t\t// Defense\n\t\t$this->Defense->ViewValue = $this->Defense->CurrentValue;\n\t\t$this->Defense->ViewCustomAttributes = \"\";\n\n\t\t// Hit\n\t\t$this->Hit->ViewValue = $this->Hit->CurrentValue;\n\t\t$this->Hit->ViewCustomAttributes = \"\";\n\n\t\t// Dodge\n\t\t$this->Dodge->ViewValue = $this->Dodge->CurrentValue;\n\t\t$this->Dodge->ViewCustomAttributes = \"\";\n\n\t\t// Crit\n\t\t$this->Crit->ViewValue = $this->Crit->CurrentValue;\n\t\t$this->Crit->ViewCustomAttributes = \"\";\n\n\t\t// AbsorbHP\n\t\t$this->AbsorbHP->ViewValue = $this->AbsorbHP->CurrentValue;\n\t\t$this->AbsorbHP->ViewCustomAttributes = \"\";\n\n\t\t// ADPTV\n\t\t$this->ADPTV->ViewValue = $this->ADPTV->CurrentValue;\n\t\t$this->ADPTV->ViewCustomAttributes = \"\";\n\n\t\t// ADPTR\n\t\t$this->ADPTR->ViewValue = $this->ADPTR->CurrentValue;\n\t\t$this->ADPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTR\n\t\t$this->APPTR->ViewValue = $this->APPTR->CurrentValue;\n\t\t$this->APPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTV\n\t\t$this->APPTV->ViewValue = $this->APPTV->CurrentValue;\n\t\t$this->APPTV->ViewCustomAttributes = \"\";\n\n\t\t// ImmuneDamage\n\t\t$this->ImmuneDamage->ViewValue = $this->ImmuneDamage->CurrentValue;\n\t\t$this->ImmuneDamage->ViewCustomAttributes = \"\";\n\n\t\t// Intro\n\t\t$this->Intro->ViewValue = $this->Intro->CurrentValue;\n\t\t$this->Intro->ViewCustomAttributes = \"\";\n\n\t\t// ExclusiveSkills\n\t\t$this->ExclusiveSkills->ViewValue = $this->ExclusiveSkills->CurrentValue;\n\t\t$this->ExclusiveSkills->ViewCustomAttributes = \"\";\n\n\t\t// TransferDemand\n\t\t$this->TransferDemand->ViewValue = $this->TransferDemand->CurrentValue;\n\t\t$this->TransferDemand->ViewCustomAttributes = \"\";\n\n\t\t// TransferLevel\n\t\t$this->TransferLevel->ViewValue = $this->TransferLevel->CurrentValue;\n\t\t$this->TransferLevel->ViewCustomAttributes = \"\";\n\n\t\t// FormerOccupation\n\t\t$this->FormerOccupation->ViewValue = $this->FormerOccupation->CurrentValue;\n\t\t$this->FormerOccupation->ViewCustomAttributes = \"\";\n\n\t\t// Belong\n\t\t$this->Belong->ViewValue = $this->Belong->CurrentValue;\n\t\t$this->Belong->ViewCustomAttributes = \"\";\n\n\t\t// AttackEffect\n\t\t$this->AttackEffect->ViewValue = $this->AttackEffect->CurrentValue;\n\t\t$this->AttackEffect->ViewCustomAttributes = \"\";\n\n\t\t// AttackTips\n\t\t$this->AttackTips->ViewValue = $this->AttackTips->CurrentValue;\n\t\t$this->AttackTips->ViewCustomAttributes = \"\";\n\n\t\t// MagicResistance\n\t\t$this->MagicResistance->ViewValue = $this->MagicResistance->CurrentValue;\n\t\t$this->MagicResistance->ViewCustomAttributes = \"\";\n\n\t\t// IgnoreShield\n\t\t$this->IgnoreShield->ViewValue = $this->IgnoreShield->CurrentValue;\n\t\t$this->IgnoreShield->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Name\n\t\t\t$this->Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Name->HrefValue = \"\";\n\t\t\t$this->Name->TooltipValue = \"\";\n\n\t\t\t// Basics\n\t\t\t$this->Basics->LinkCustomAttributes = \"\";\n\t\t\t$this->Basics->HrefValue = \"\";\n\t\t\t$this->Basics->TooltipValue = \"\";\n\n\t\t\t// HP\n\t\t\t$this->HP->LinkCustomAttributes = \"\";\n\t\t\t$this->HP->HrefValue = \"\";\n\t\t\t$this->HP->TooltipValue = \"\";\n\n\t\t\t// MP\n\t\t\t$this->MP->LinkCustomAttributes = \"\";\n\t\t\t$this->MP->HrefValue = \"\";\n\t\t\t$this->MP->TooltipValue = \"\";\n\n\t\t\t// AD\n\t\t\t$this->AD->LinkCustomAttributes = \"\";\n\t\t\t$this->AD->HrefValue = \"\";\n\t\t\t$this->AD->TooltipValue = \"\";\n\n\t\t\t// AP\n\t\t\t$this->AP->LinkCustomAttributes = \"\";\n\t\t\t$this->AP->HrefValue = \"\";\n\t\t\t$this->AP->TooltipValue = \"\";\n\n\t\t\t// Defense\n\t\t\t$this->Defense->LinkCustomAttributes = \"\";\n\t\t\t$this->Defense->HrefValue = \"\";\n\t\t\t$this->Defense->TooltipValue = \"\";\n\n\t\t\t// Hit\n\t\t\t$this->Hit->LinkCustomAttributes = \"\";\n\t\t\t$this->Hit->HrefValue = \"\";\n\t\t\t$this->Hit->TooltipValue = \"\";\n\n\t\t\t// Dodge\n\t\t\t$this->Dodge->LinkCustomAttributes = \"\";\n\t\t\t$this->Dodge->HrefValue = \"\";\n\t\t\t$this->Dodge->TooltipValue = \"\";\n\n\t\t\t// Crit\n\t\t\t$this->Crit->LinkCustomAttributes = \"\";\n\t\t\t$this->Crit->HrefValue = \"\";\n\t\t\t$this->Crit->TooltipValue = \"\";\n\n\t\t\t// AbsorbHP\n\t\t\t$this->AbsorbHP->LinkCustomAttributes = \"\";\n\t\t\t$this->AbsorbHP->HrefValue = \"\";\n\t\t\t$this->AbsorbHP->TooltipValue = \"\";\n\n\t\t\t// ADPTV\n\t\t\t$this->ADPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTV->HrefValue = \"\";\n\t\t\t$this->ADPTV->TooltipValue = \"\";\n\n\t\t\t// ADPTR\n\t\t\t$this->ADPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTR->HrefValue = \"\";\n\t\t\t$this->ADPTR->TooltipValue = \"\";\n\n\t\t\t// APPTR\n\t\t\t$this->APPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTR->HrefValue = \"\";\n\t\t\t$this->APPTR->TooltipValue = \"\";\n\n\t\t\t// APPTV\n\t\t\t$this->APPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTV->HrefValue = \"\";\n\t\t\t$this->APPTV->TooltipValue = \"\";\n\n\t\t\t// ImmuneDamage\n\t\t\t$this->ImmuneDamage->LinkCustomAttributes = \"\";\n\t\t\t$this->ImmuneDamage->HrefValue = \"\";\n\t\t\t$this->ImmuneDamage->TooltipValue = \"\";\n\n\t\t\t// Intro\n\t\t\t$this->Intro->LinkCustomAttributes = \"\";\n\t\t\t$this->Intro->HrefValue = \"\";\n\t\t\t$this->Intro->TooltipValue = \"\";\n\n\t\t\t// ExclusiveSkills\n\t\t\t$this->ExclusiveSkills->LinkCustomAttributes = \"\";\n\t\t\t$this->ExclusiveSkills->HrefValue = \"\";\n\t\t\t$this->ExclusiveSkills->TooltipValue = \"\";\n\n\t\t\t// TransferDemand\n\t\t\t$this->TransferDemand->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferDemand->HrefValue = \"\";\n\t\t\t$this->TransferDemand->TooltipValue = \"\";\n\n\t\t\t// TransferLevel\n\t\t\t$this->TransferLevel->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferLevel->HrefValue = \"\";\n\t\t\t$this->TransferLevel->TooltipValue = \"\";\n\n\t\t\t// FormerOccupation\n\t\t\t$this->FormerOccupation->LinkCustomAttributes = \"\";\n\t\t\t$this->FormerOccupation->HrefValue = \"\";\n\t\t\t$this->FormerOccupation->TooltipValue = \"\";\n\n\t\t\t// Belong\n\t\t\t$this->Belong->LinkCustomAttributes = \"\";\n\t\t\t$this->Belong->HrefValue = \"\";\n\t\t\t$this->Belong->TooltipValue = \"\";\n\n\t\t\t// AttackEffect\n\t\t\t$this->AttackEffect->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackEffect->HrefValue = \"\";\n\t\t\t$this->AttackEffect->TooltipValue = \"\";\n\n\t\t\t// AttackTips\n\t\t\t$this->AttackTips->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackTips->HrefValue = \"\";\n\t\t\t$this->AttackTips->TooltipValue = \"\";\n\n\t\t\t// MagicResistance\n\t\t\t$this->MagicResistance->LinkCustomAttributes = \"\";\n\t\t\t$this->MagicResistance->HrefValue = \"\";\n\t\t\t$this->MagicResistance->TooltipValue = \"\";\n\n\t\t\t// IgnoreShield\n\t\t\t$this->IgnoreShield->LinkCustomAttributes = \"\";\n\t\t\t$this->IgnoreShield->HrefValue = \"\";\n\t\t\t$this->IgnoreShield->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $sponsored_student;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$sponsored_student->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// sponsored_student_id\n\n\t\t$sponsored_student->sponsored_student_id->CellCssStyle = \"\"; $sponsored_student->sponsored_student_id->CellCssClass = \"\";\n\t\t$sponsored_student->sponsored_student_id->CellAttrs = array(); $sponsored_student->sponsored_student_id->ViewAttrs = array(); $sponsored_student->sponsored_student_id->EditAttrs = array();\n\n\t\t// student_firstname\n\t\t$sponsored_student->student_firstname->CellCssStyle = \"\"; $sponsored_student->student_firstname->CellCssClass = \"\";\n\t\t$sponsored_student->student_firstname->CellAttrs = array(); $sponsored_student->student_firstname->ViewAttrs = array(); $sponsored_student->student_firstname->EditAttrs = array();\n\n\t\t// student_middlename\n\t\t$sponsored_student->student_middlename->CellCssStyle = \"\"; $sponsored_student->student_middlename->CellCssClass = \"\";\n\t\t$sponsored_student->student_middlename->CellAttrs = array(); $sponsored_student->student_middlename->ViewAttrs = array(); $sponsored_student->student_middlename->EditAttrs = array();\n\n\t\t// student_lastname\n\t\t$sponsored_student->student_lastname->CellCssStyle = \"\"; $sponsored_student->student_lastname->CellCssClass = \"\";\n\t\t$sponsored_student->student_lastname->CellAttrs = array(); $sponsored_student->student_lastname->ViewAttrs = array(); $sponsored_student->student_lastname->EditAttrs = array();\n\n\t\t// student_grades\n\t\t$sponsored_student->student_grades->CellCssStyle = \"\"; $sponsored_student->student_grades->CellCssClass = \"\";\n\t\t$sponsored_student->student_grades->CellAttrs = array(); $sponsored_student->student_grades->ViewAttrs = array(); $sponsored_student->student_grades->EditAttrs = array();\n\n\t\t// student_resident_programarea_id\n\t\t$sponsored_student->student_resident_programarea_id->CellCssStyle = \"\"; $sponsored_student->student_resident_programarea_id->CellCssClass = \"\";\n\t\t$sponsored_student->student_resident_programarea_id->CellAttrs = array(); $sponsored_student->student_resident_programarea_id->ViewAttrs = array(); $sponsored_student->student_resident_programarea_id->EditAttrs = array();\n\n\t\t// group_id\n\t\t$sponsored_student->group_id->CellCssStyle = \"\"; $sponsored_student->group_id->CellCssClass = \"\";\n\t\t$sponsored_student->group_id->CellAttrs = array(); $sponsored_student->group_id->ViewAttrs = array(); $sponsored_student->group_id->EditAttrs = array();\n\n\t\t// community_community_id\n\t\t$sponsored_student->community_community_id->CellCssStyle = \"\"; $sponsored_student->community_community_id->CellCssClass = \"\";\n\t\t$sponsored_student->community_community_id->CellAttrs = array(); $sponsored_student->community_community_id->ViewAttrs = array(); $sponsored_student->community_community_id->EditAttrs = array();\n\t\tif ($sponsored_student->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->ViewValue = $sponsored_student->sponsored_student_id->CurrentValue;\n\t\t\t$sponsored_student->sponsored_student_id->CssStyle = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->CssClass = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->ViewValue = $sponsored_student->student_firstname->CurrentValue;\n\t\t\t$sponsored_student->student_firstname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_firstname->CssClass = \"\";\n\t\t\t$sponsored_student->student_firstname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->ViewValue = $sponsored_student->student_middlename->CurrentValue;\n\t\t\t$sponsored_student->student_middlename->CssStyle = \"\";\n\t\t\t$sponsored_student->student_middlename->CssClass = \"\";\n\t\t\t$sponsored_student->student_middlename->ViewCustomAttributes = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->ViewValue = $sponsored_student->student_lastname->CurrentValue;\n\t\t\t$sponsored_student->student_lastname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_lastname->CssClass = \"\";\n\t\t\t$sponsored_student->student_lastname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->ViewValue = $sponsored_student->student_grades->CurrentValue;\n\t\t\t$sponsored_student->student_grades->CssStyle = \"\";\n\t\t\t$sponsored_student->student_grades->CssClass = \"\";\n\t\t\t$sponsored_student->student_grades->ViewCustomAttributes = \"\";\n\n\t\t\t// student_applicant_student_applicant_id\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\tif (strval($sponsored_student->student_applicant_student_applicant_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`student_applicant_id` = \" . ew_AdjustSql($sponsored_student->student_applicant_student_applicant_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `student_lastname`, `student_firstname` FROM `student_applicant`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $rswrk->fields('student_lastname');\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('student_firstname');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\tif (strval($sponsored_student->student_resident_programarea_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`programarea_id` = \" . ew_AdjustSql($sponsored_student->student_resident_programarea_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_name` FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $rswrk->fields('programarea_name');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $sponsored_student->student_resident_programarea_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_resident_programarea_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->ViewCustomAttributes = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->ViewValue = $sponsored_student->group_id->CurrentValue;\n\t\t\t$sponsored_student->group_id->CssStyle = \"\";\n\t\t\t$sponsored_student->group_id->CssClass = \"\";\n\t\t\t$sponsored_student->group_id->ViewCustomAttributes = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->ViewValue = $sponsored_student->community_community_id->CurrentValue;\n\t\t\t$sponsored_student->community_community_id->CssStyle = \"\";\n\t\t\t$sponsored_student->community_community_id->CssClass = \"\";\n\t\t\t$sponsored_student->community_community_id->ViewCustomAttributes = \"\";\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->HrefValue = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->TooltipValue = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_firstname->TooltipValue = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->HrefValue = \"\";\n\t\t\t$sponsored_student->student_middlename->TooltipValue = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_lastname->TooltipValue = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->HrefValue = \"\";\n\t\t\t$sponsored_student->student_grades->TooltipValue = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->HrefValue = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->TooltipValue = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->HrefValue = \"\";\n\t\t\t$sponsored_student->group_id->TooltipValue = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->HrefValue = \"\";\n\t\t\t$sponsored_student->community_community_id->TooltipValue = \"\";\n\t\t} elseif ($sponsored_student->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->EditValue = ew_HtmlEncode($sponsored_student->sponsored_student_id->AdvancedSearch->SearchValue);\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue2 = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue2 = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue2 = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_grades->EditValue = ew_HtmlEncode($sponsored_student->student_grades->AdvancedSearch->SearchValue);\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_id`, `programarea_name`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$sponsored_student->student_resident_programarea_id->EditValue = $arwrk;\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->EditCustomAttributes = \"\";\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn()) { // Non system admin\n\t\t\t$sFilterWrk = \"\";\n\t\t\t$sFilterWrk = $GLOBALS[\"users\"]->AddUserIDFilter(\"\");\n\t\t\t$sSqlWrk = \"SELECT `userlevelid`, `userlevelid` FROM `users`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$sponsored_student->group_id->EditValue = $arwrk;\n\t\t\t} else {\n\t\t\t$sponsored_student->group_id->EditValue = ew_HtmlEncode($sponsored_student->group_id->AdvancedSearch->SearchValue);\n\t\t\t}\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->community_community_id->EditValue = ew_HtmlEncode($sponsored_student->community_community_id->AdvancedSearch->SearchValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($sponsored_student->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$sponsored_student->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->gross->FormValue == $this->gross->CurrentValue && is_numeric(ew_StrToFloat($this->gross->CurrentValue)))\n\t\t\t$this->gross->CurrentValue = ew_StrToFloat($this->gross->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bid_step->FormValue == $this->bid_step->CurrentValue && is_numeric(ew_StrToFloat($this->bid_step->CurrentValue)))\n\t\t\t$this->bid_step->CurrentValue = ew_StrToFloat($this->bid_step->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->rate->FormValue == $this->rate->CurrentValue && is_numeric(ew_StrToFloat($this->rate->CurrentValue)))\n\t\t\t$this->rate->CurrentValue = ew_StrToFloat($this->rate->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->proforma_amount->FormValue == $this->proforma_amount->CurrentValue && is_numeric(ew_StrToFloat($this->proforma_amount->CurrentValue)))\n\t\t\t$this->proforma_amount->CurrentValue = ew_StrToFloat($this->proforma_amount->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\t\t// master_id\n\t\t// lot_number\n\t\t// chop\n\t\t// estate\n\t\t// grade\n\t\t// jenis\n\t\t// sack\n\t\t// netto\n\t\t// gross\n\t\t// open_bid\n\t\t// currency\n\t\t// bid_step\n\t\t// rate\n\t\t// winner_id\n\t\t// sold_bid\n\t\t// proforma_number\n\t\t// proforma_amount\n\t\t// proforma_status\n\t\t// auction_status\n\t\t// enter_bid\n\t\t// last_bid\n\t\t// highest_bid\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// jenis\n\t\t$this->jenis->ViewValue = $this->jenis->CurrentValue;\n\t\t$this->jenis->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewValue = ew_FormatNumber($this->gross->ViewValue, 2, -2, -2, -2);\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// currency\n\t\tif (strval($this->currency->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tbl_currency`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->currency->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $this->currency->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->currency->ViewValue = NULL;\n\t\t}\n\t\t$this->currency->ViewCustomAttributes = \"\";\n\n\t\t// bid_step\n\t\t$this->bid_step->ViewValue = $this->bid_step->CurrentValue;\n\t\t$this->bid_step->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t// winner_id\n\t\t$this->winner_id->ViewValue = $this->winner_id->CurrentValue;\n\t\t$this->winner_id->ViewCustomAttributes = \"\";\n\n\t\t// sold_bid\n\t\t$this->sold_bid->ViewValue = $this->sold_bid->CurrentValue;\n\t\t$this->sold_bid->ViewCustomAttributes = \"\";\n\n\t\t// proforma_number\n\t\t$this->proforma_number->ViewValue = $this->proforma_number->CurrentValue;\n\t\t$this->proforma_number->ViewCustomAttributes = \"\";\n\n\t\t// proforma_amount\n\t\t$this->proforma_amount->ViewValue = $this->proforma_amount->CurrentValue;\n\t\t$this->proforma_amount->ViewCustomAttributes = \"\";\n\n\t\t// proforma_status\n\t\tif (strval($this->proforma_status->CurrentValue) <> \"\") {\n\t\t\t$this->proforma_status->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->proforma_status->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->proforma_status->ViewValue .= $this->proforma_status->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->proforma_status->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->proforma_status->ViewValue = NULL;\n\t\t}\n\t\t$this->proforma_status->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\t\t\t$this->jenis->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\t\t\t$this->gross->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\t\t\t$this->currency->TooltipValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\t\t\t$this->bid_step->TooltipValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\t\t\t$this->rate->TooltipValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\t\t\t$this->proforma_number->TooltipValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\t\t\t$this->proforma_amount->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->CurrentValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->CurrentValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->CurrentValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->CurrentValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// jenis\n\t\t\t$this->jenis->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->jenis->EditCustomAttributes = \"\";\n\t\t\t$this->jenis->EditValue = ew_HtmlEncode($this->jenis->CurrentValue);\n\t\t\t$this->jenis->PlaceHolder = ew_RemoveHtml($this->jenis->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->CurrentValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->CurrentValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\t\t\tif (strval($this->netto->EditValue) <> \"\" && is_numeric($this->netto->EditValue)) $this->netto->EditValue = ew_FormatNumber($this->netto->EditValue, -2, -2, -2, -2);\n\n\t\t\t// gross\n\t\t\t$this->gross->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->gross->EditCustomAttributes = \"\";\n\t\t\t$this->gross->EditValue = ew_HtmlEncode($this->gross->CurrentValue);\n\t\t\t$this->gross->PlaceHolder = ew_RemoveHtml($this->gross->FldCaption());\n\t\t\tif (strval($this->gross->EditValue) <> \"\" && is_numeric($this->gross->EditValue)) $this->gross->EditValue = ew_FormatNumber($this->gross->EditValue, -2, -2, -2, -2);\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->CurrentValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\t\t\tif (strval($this->open_bid->EditValue) <> \"\" && is_numeric($this->open_bid->EditValue)) $this->open_bid->EditValue = ew_FormatNumber($this->open_bid->EditValue, -2, -2, -2, -2);\n\n\t\t\t// currency\n\t\t\t$this->currency->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->currency->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tbl_currency`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->currency->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->currency->EditValue = $arwrk;\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bid_step->EditCustomAttributes = \"\";\n\t\t\t$this->bid_step->EditValue = ew_HtmlEncode($this->bid_step->CurrentValue);\n\t\t\t$this->bid_step->PlaceHolder = ew_RemoveHtml($this->bid_step->FldCaption());\n\t\t\tif (strval($this->bid_step->EditValue) <> \"\" && is_numeric($this->bid_step->EditValue)) $this->bid_step->EditValue = ew_FormatNumber($this->bid_step->EditValue, -2, -1, -2, 0);\n\n\t\t\t// rate\n\t\t\t$this->rate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rate->EditCustomAttributes = \"\";\n\t\t\t$this->rate->EditValue = ew_HtmlEncode($this->rate->CurrentValue);\n\t\t\t$this->rate->PlaceHolder = ew_RemoveHtml($this->rate->FldCaption());\n\t\t\tif (strval($this->rate->EditValue) <> \"\" && is_numeric($this->rate->EditValue)) $this->rate->EditValue = ew_FormatNumber($this->rate->EditValue, -2, -1, -2, 0);\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_number->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_number->EditValue = ew_HtmlEncode($this->proforma_number->CurrentValue);\n\t\t\t$this->proforma_number->PlaceHolder = ew_RemoveHtml($this->proforma_number->FldCaption());\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_amount->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->EditValue = ew_HtmlEncode($this->proforma_amount->CurrentValue);\n\t\t\t$this->proforma_amount->PlaceHolder = ew_RemoveHtml($this->proforma_amount->FldCaption());\n\t\t\tif (strval($this->proforma_amount->EditValue) <> \"\" && is_numeric($this->proforma_amount->EditValue)) $this->proforma_amount->EditValue = ew_FormatNumber($this->proforma_amount->EditValue, -2, -1, -2, 0);\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(TRUE);\n\n\t\t\t// Add refer script\n\t\t\t// lot_number\n\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->pro_base_price->FormValue == $this->pro_base_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_base_price->CurrentValue)))\n\t\t\t$this->pro_base_price->CurrentValue = ew_StrToFloat($this->pro_base_price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pro_sell_price->FormValue == $this->pro_sell_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_sell_price->CurrentValue)))\n\t\t\t$this->pro_sell_price->CurrentValue = ew_StrToFloat($this->pro_sell_price->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// product_id\n\t\t// cat_id\n\t\t// company_id\n\t\t// pro_model\n\t\t// pro_name\n\t\t// pro_description\n\t\t// pro_condition\n\t\t// pro_features\n\t\t// post_date\n\t\t// ads_id\n\t\t// pro_base_price\n\t\t// pro_sell_price\n\t\t// featured_image\n\t\t// folder_image\n\t\t// pro_status\n\t\t// branch_id\n\t\t// lang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// product_id\n\t\t$this->product_id->ViewValue = $this->product_id->CurrentValue;\n\t\t$this->product_id->ViewCustomAttributes = \"\";\n\n\t\t// cat_id\n\t\tif ($this->cat_id->VirtualValue <> \"\") {\n\t\t\t$this->cat_id->ViewValue = $this->cat_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->cat_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categories`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->cat_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->cat_id->ViewCustomAttributes = \"\";\n\n\t\t// company_id\n\t\tif ($this->company_id->VirtualValue <> \"\") {\n\t\t\t$this->company_id->ViewValue = $this->company_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->company_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `company`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->company_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->company_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_model\n\t\tif ($this->pro_model->VirtualValue <> \"\") {\n\t\t\t$this->pro_model->ViewValue = $this->pro_model->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->pro_model->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->pro_model->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->pro_model->ViewCustomAttributes = \"\";\n\n\t\t// pro_name\n\t\t$this->pro_name->ViewValue = $this->pro_name->CurrentValue;\n\t\t$this->pro_name->ViewCustomAttributes = \"\";\n\n\t\t// pro_description\n\t\t$this->pro_description->ViewValue = $this->pro_description->CurrentValue;\n\t\t$this->pro_description->ViewCustomAttributes = \"\";\n\n\t\t// pro_condition\n\t\tif (strval($this->pro_condition->CurrentValue) <> \"\") {\n\t\t\t$this->pro_condition->ViewValue = $this->pro_condition->OptionCaption($this->pro_condition->CurrentValue);\n\t\t} else {\n\t\t\t$this->pro_condition->ViewValue = NULL;\n\t\t}\n\t\t$this->pro_condition->ViewCustomAttributes = \"\";\n\n\t\t// pro_features\n\t\t$this->pro_features->ViewValue = $this->pro_features->CurrentValue;\n\t\t$this->pro_features->ViewCustomAttributes = \"\";\n\n\t\t// post_date\n\t\t$this->post_date->ViewValue = $this->post_date->CurrentValue;\n\t\t$this->post_date->ViewValue = ew_FormatDateTime($this->post_date->ViewValue, 1);\n\t\t$this->post_date->ViewCustomAttributes = \"\";\n\n\t\t// ads_id\n\t\t$this->ads_id->ViewValue = $this->ads_id->CurrentValue;\n\t\t$this->ads_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_base_price\n\t\t$this->pro_base_price->ViewValue = $this->pro_base_price->CurrentValue;\n\t\t$this->pro_base_price->ViewCustomAttributes = \"\";\n\n\t\t// pro_sell_price\n\t\t$this->pro_sell_price->ViewValue = $this->pro_sell_price->CurrentValue;\n\t\t$this->pro_sell_price->ViewCustomAttributes = \"\";\n\n\t\t// featured_image\n\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t$this->featured_image->ViewValue = $this->featured_image->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->featured_image->ViewValue = \"\";\n\t\t}\n\t\t$this->featured_image->ViewCustomAttributes = \"\";\n\n\t\t// folder_image\n\t\tif ($this->folder_image->VirtualValue <> \"\") {\n\t\t\t$this->folder_image->ViewValue = $this->folder_image->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->folder_image->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `product_gallery`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $this->folder_image->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->folder_image->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->folder_image->ViewCustomAttributes = \"\";\n\n\t\t// pro_status\n\t\tif (ew_ConvertToBool($this->pro_status->CurrentValue)) {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(1) <> \"\" ? $this->pro_status->FldTagCaption(1) : \"Yes\";\n\t\t} else {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(2) <> \"\" ? $this->pro_status->FldTagCaption(2) : \"No\";\n\t\t}\n\t\t$this->pro_status->ViewCustomAttributes = \"\";\n\n\t\t// branch_id\n\t\tif (strval($this->branch_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `branch`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->branch_id->ViewValue = NULL;\n\t\t}\n\t\t$this->branch_id->ViewCustomAttributes = \"\";\n\n\t\t// lang\n\t\tif (strval($this->lang->CurrentValue) <> \"\") {\n\t\t\t$this->lang->ViewValue = $this->lang->OptionCaption($this->lang->CurrentValue);\n\t\t} else {\n\t\t\t$this->lang->ViewValue = NULL;\n\t\t}\n\t\t$this->lang->ViewCustomAttributes = \"\";\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\t\t\t$this->cat_id->TooltipValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\t\t\t$this->company_id->TooltipValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\t\t\t$this->pro_model->TooltipValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\t\t\t$this->pro_name->TooltipValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\t\t\t$this->pro_description->TooltipValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\t\t\t$this->pro_condition->TooltipValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\t\t\t$this->pro_features->TooltipValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\t\t\t$this->post_date->TooltipValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\t\t\t$this->ads_id->TooltipValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\t\t\t$this->pro_base_price->TooltipValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\t\t\t$this->pro_sell_price->TooltipValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\t\t\t$this->featured_image->TooltipValue = \"\";\n\t\t\tif ($this->featured_image->UseColorbox) {\n\t\t\t\tif (ew_Empty($this->featured_image->TooltipValue))\n\t\t\t\t\t$this->featured_image->LinkAttrs[\"title\"] = $Language->Phrase(\"ViewImageGallery\");\n\t\t\t\t$this->featured_image->LinkAttrs[\"data-rel\"] = \"products_x_featured_image\";\n\t\t\t\tew_AppendClass($this->featured_image->LinkAttrs[\"class\"], \"ewLightbox\");\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\t\t\t$this->folder_image->TooltipValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\t\t\t$this->pro_status->TooltipValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\t\t\t$this->branch_id->TooltipValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t\t$this->lang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->cat_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `categories`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->cat_id->EditValue = $arwrk;\n\n\t\t\t// company_id\n\t\t\t$this->company_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->company_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `company`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->company_id->EditValue = $arwrk;\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->pro_model->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->pro_model->EditValue = $arwrk;\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_name->EditCustomAttributes = \"\";\n\t\t\t$this->pro_name->EditValue = ew_HtmlEncode($this->pro_name->CurrentValue);\n\t\t\t$this->pro_name->PlaceHolder = ew_RemoveHtml($this->pro_name->FldCaption());\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_description->EditCustomAttributes = \"\";\n\t\t\t$this->pro_description->EditValue = ew_HtmlEncode($this->pro_description->CurrentValue);\n\t\t\t$this->pro_description->PlaceHolder = ew_RemoveHtml($this->pro_description->FldCaption());\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_condition->EditCustomAttributes = \"\";\n\t\t\t$this->pro_condition->EditValue = $this->pro_condition->Options(TRUE);\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_features->EditCustomAttributes = \"\";\n\t\t\t$this->pro_features->EditValue = ew_HtmlEncode($this->pro_features->CurrentValue);\n\t\t\t$this->pro_features->PlaceHolder = ew_RemoveHtml($this->pro_features->FldCaption());\n\n\t\t\t// post_date\n\t\t\t// ads_id\n\n\t\t\t$this->ads_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ads_id->EditCustomAttributes = \"\";\n\t\t\t$this->ads_id->EditValue = ew_HtmlEncode($this->ads_id->CurrentValue);\n\t\t\t$this->ads_id->PlaceHolder = ew_RemoveHtml($this->ads_id->FldCaption());\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_base_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->EditValue = ew_HtmlEncode($this->pro_base_price->CurrentValue);\n\t\t\t$this->pro_base_price->PlaceHolder = ew_RemoveHtml($this->pro_base_price->FldCaption());\n\t\t\tif (strval($this->pro_base_price->EditValue) <> \"\" && is_numeric($this->pro_base_price->EditValue)) $this->pro_base_price->EditValue = ew_FormatNumber($this->pro_base_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_sell_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->EditValue = ew_HtmlEncode($this->pro_sell_price->CurrentValue);\n\t\t\t$this->pro_sell_price->PlaceHolder = ew_RemoveHtml($this->pro_sell_price->FldCaption());\n\t\t\tif (strval($this->pro_sell_price->EditValue) <> \"\" && is_numeric($this->pro_sell_price->EditValue)) $this->pro_sell_price->EditValue = ew_FormatNumber($this->pro_sell_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->featured_image->EditCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t\t$this->featured_image->EditValue = $this->featured_image->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->featured_image->EditValue = \"\";\n\t\t\t}\n\t\t\tif (!ew_Empty($this->featured_image->CurrentValue))\n\t\t\t\t\t$this->featured_image->Upload->FileName = $this->featured_image->CurrentValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->folder_image->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `product_gallery`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->MoveFirst();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->folder_image->EditValue = $arwrk;\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->EditCustomAttributes = \"\";\n\t\t\t$this->pro_status->EditValue = $this->pro_status->Options(FALSE);\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->branch_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `branch`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->branch_id->EditValue = $arwrk;\n\n\t\t\t// lang\n\t\t\t$this->lang->EditCustomAttributes = \"\";\n\t\t\t$this->lang->EditValue = $this->lang->Options(TRUE);\n\n\t\t\t// Edit refer script\n\t\t\t// cat_id\n\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $selection_grade_point;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$selection_grade_point->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// selection_grade_points_id\n\n\t\t$selection_grade_point->selection_grade_points_id->CellCssStyle = \"\"; $selection_grade_point->selection_grade_points_id->CellCssClass = \"\";\n\t\t$selection_grade_point->selection_grade_points_id->CellAttrs = array(); $selection_grade_point->selection_grade_points_id->ViewAttrs = array(); $selection_grade_point->selection_grade_points_id->EditAttrs = array();\n\n\t\t// grade_point\n\t\t$selection_grade_point->grade_point->CellCssStyle = \"\"; $selection_grade_point->grade_point->CellCssClass = \"\";\n\t\t$selection_grade_point->grade_point->CellAttrs = array(); $selection_grade_point->grade_point->ViewAttrs = array(); $selection_grade_point->grade_point->EditAttrs = array();\n\n\t\t// min_grade\n\t\t$selection_grade_point->min_grade->CellCssStyle = \"\"; $selection_grade_point->min_grade->CellCssClass = \"\";\n\t\t$selection_grade_point->min_grade->CellAttrs = array(); $selection_grade_point->min_grade->ViewAttrs = array(); $selection_grade_point->min_grade->EditAttrs = array();\n\n\t\t// max_grade\n\t\t$selection_grade_point->max_grade->CellCssStyle = \"\"; $selection_grade_point->max_grade->CellCssClass = \"\";\n\t\t$selection_grade_point->max_grade->CellAttrs = array(); $selection_grade_point->max_grade->ViewAttrs = array(); $selection_grade_point->max_grade->EditAttrs = array();\n\t\tif ($selection_grade_point->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewValue = $selection_grade_point->selection_grade_points_id->CurrentValue;\n\t\t\t$selection_grade_point->selection_grade_points_id->CssStyle = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->CssClass = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewCustomAttributes = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->ViewValue = $selection_grade_point->grade_point->CurrentValue;\n\t\t\t$selection_grade_point->grade_point->CssStyle = \"\";\n\t\t\t$selection_grade_point->grade_point->CssClass = \"\";\n\t\t\t$selection_grade_point->grade_point->ViewCustomAttributes = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->ViewValue = $selection_grade_point->min_grade->CurrentValue;\n\t\t\t$selection_grade_point->min_grade->CssStyle = \"\";\n\t\t\t$selection_grade_point->min_grade->CssClass = \"\";\n\t\t\t$selection_grade_point->min_grade->ViewCustomAttributes = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->ViewValue = $selection_grade_point->max_grade->CurrentValue;\n\t\t\t$selection_grade_point->max_grade->CssStyle = \"\";\n\t\t\t$selection_grade_point->max_grade->CssClass = \"\";\n\t\t\t$selection_grade_point->max_grade->ViewCustomAttributes = \"\";\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->HrefValue = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->TooltipValue = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->HrefValue = \"\";\n\t\t\t$selection_grade_point->grade_point->TooltipValue = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->HrefValue = \"\";\n\t\t\t$selection_grade_point->min_grade->TooltipValue = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->HrefValue = \"\";\n\t\t\t$selection_grade_point->max_grade->TooltipValue = \"\";\n\t\t} elseif ($selection_grade_point->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->EditValue = $selection_grade_point->selection_grade_points_id->CurrentValue;\n\t\t\t$selection_grade_point->selection_grade_points_id->CssStyle = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->CssClass = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewCustomAttributes = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->grade_point->EditValue = ew_HtmlEncode($selection_grade_point->grade_point->CurrentValue);\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->min_grade->EditValue = ew_HtmlEncode($selection_grade_point->min_grade->CurrentValue);\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->max_grade->EditValue = ew_HtmlEncode($selection_grade_point->max_grade->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// selection_grade_points_id\n\n\t\t\t$selection_grade_point->selection_grade_points_id->HrefValue = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->HrefValue = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->HrefValue = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($selection_grade_point->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$selection_grade_point->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->AddUrl = $this->GetAddUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\t\t$this->ListUrl = $this->GetListUrl();\r\n\t\t$this->SetupOtherOptions();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Dni_Tutor\r\n\t\t// Apellidos_Nombres\r\n\t\t// Edad\r\n\t\t// Domicilio\r\n\t\t// Tel_Contacto\r\n\t\t// Fecha_Nac\r\n\t\t// Cuil\r\n\t\t// MasHijos\r\n\t\t// Id_Estado_Civil\r\n\t\t// Id_Sexo\r\n\t\t// Id_Relacion\r\n\t\t// Id_Ocupacion\r\n\t\t// Lugar_Nacimiento\r\n\t\t// Id_Provincia\r\n\t\t// Id_Departamento\r\n\t\t// Id_Localidad\r\n\t\t// Fecha_Actualizacion\r\n\t\t// Usuario\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Dni_Tutor\r\n\t\t$this->Dni_Tutor->ViewValue = $this->Dni_Tutor->CurrentValue;\r\n\t\t$this->Dni_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Apellidos_Nombres\r\n\t\t$this->Apellidos_Nombres->ViewValue = $this->Apellidos_Nombres->CurrentValue;\r\n\t\t$this->Apellidos_Nombres->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Edad\r\n\t\t$this->Edad->ViewValue = $this->Edad->CurrentValue;\r\n\t\t$this->Edad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio\r\n\t\t$this->Domicilio->ViewValue = $this->Domicilio->CurrentValue;\r\n\t\t$this->Domicilio->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Contacto\r\n\t\t$this->Tel_Contacto->ViewValue = $this->Tel_Contacto->CurrentValue;\r\n\t\t$this->Tel_Contacto->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Nac\r\n\t\t$this->Fecha_Nac->ViewValue = $this->Fecha_Nac->CurrentValue;\r\n\t\t$this->Fecha_Nac->ViewValue = ew_FormatDateTime($this->Fecha_Nac->ViewValue, 7);\r\n\t\t$this->Fecha_Nac->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil\r\n\t\t$this->Cuil->ViewValue = $this->Cuil->CurrentValue;\r\n\t\t$this->Cuil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// MasHijos\r\n\t\tif (strval($this->MasHijos->CurrentValue) <> \"\") {\r\n\t\t\t$this->MasHijos->ViewValue = $this->MasHijos->OptionCaption($this->MasHijos->CurrentValue);\r\n\t\t} else {\r\n\t\t\t$this->MasHijos->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->MasHijos->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado_Civil\r\n\t\tif (strval($this->Id_Estado_Civil->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado_Civil`\" . ew_SearchString(\"=\", $this->Id_Estado_Civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado_Civil`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado_Civil->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado_Civil, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado_Civil->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado_Civil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Sexo\r\n\t\tif (strval($this->Id_Sexo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Sexo`\" . ew_SearchString(\"=\", $this->Id_Sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Sexo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo_personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Sexo->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Sexo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Sexo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Sexo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Relacion\r\n\t\tif (strval($this->Id_Relacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Relacion`\" . ew_SearchString(\"=\", $this->Id_Relacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Relacion`, `Desripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_relacion_alumno_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Relacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Relacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Desripcion` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Relacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Relacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Ocupacion\r\n\t\tif (strval($this->Id_Ocupacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Ocupacion`\" . ew_SearchString(\"=\", $this->Id_Ocupacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Ocupacion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ocupacion_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Ocupacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Ocupacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Ocupacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Ocupacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Lugar_Nacimiento\r\n\t\t$this->Lugar_Nacimiento->ViewValue = $this->Lugar_Nacimiento->CurrentValue;\r\n\t\t$this->Lugar_Nacimiento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Provincia\r\n\t\tif (strval($this->Id_Provincia->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Provincia`\" . ew_SearchString(\"=\", $this->Id_Provincia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Provincia`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincias`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Provincia->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Provincia, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Provincia->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Provincia->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Departamento\r\n\t\tif (strval($this->Id_Departamento->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Departamento`\" . ew_SearchString(\"=\", $this->Id_Departamento->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Departamento`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Departamento->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Departamento, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Departamento->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Departamento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Localidad\r\n\t\tif (strval($this->Id_Localidad->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Localidad`\" . ew_SearchString(\"=\", $this->Id_Localidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Localidad`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Localidad->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Localidad, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Localidad->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Localidad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 7);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Dni_Tutor\r\n\t\t\t$this->Dni_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Dni_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Apellidos_Nombres\r\n\t\t\t$this->Apellidos_Nombres->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Apellidos_Nombres->HrefValue = \"\";\r\n\t\t\t$this->Apellidos_Nombres->TooltipValue = \"\";\r\n\r\n\t\t\t// Edad\r\n\t\t\t$this->Edad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Edad->HrefValue = \"\";\r\n\t\t\t$this->Edad->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\t\t\t$this->Domicilio->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Contacto\r\n\t\t\t$this->Tel_Contacto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Contacto->HrefValue = \"\";\r\n\t\t\t$this->Tel_Contacto->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Nac\r\n\t\t\t$this->Fecha_Nac->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Nac->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Nac->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil\r\n\t\t\t$this->Cuil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil->HrefValue = \"\";\r\n\t\t\t$this->Cuil->TooltipValue = \"\";\r\n\r\n\t\t\t// MasHijos\r\n\t\t\t$this->MasHijos->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MasHijos->HrefValue = \"\";\r\n\t\t\t$this->MasHijos->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Civil\r\n\t\t\t$this->Id_Estado_Civil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Civil->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado_Civil->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Sexo\r\n\t\t\t$this->Id_Sexo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Sexo->HrefValue = \"\";\r\n\t\t\t$this->Id_Sexo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Relacion\r\n\t\t\t$this->Id_Relacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Relacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Relacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Ocupacion\r\n\t\t\t$this->Id_Ocupacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Ocupacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Ocupacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Lugar_Nacimiento\r\n\t\t\t$this->Lugar_Nacimiento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->HrefValue = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Provincia\r\n\t\t\t$this->Id_Provincia->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Provincia->HrefValue = \"\";\r\n\t\t\t$this->Id_Provincia->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Departamento\r\n\t\t\t$this->Id_Departamento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Departamento->HrefValue = \"\";\r\n\t\t\t$this->Id_Departamento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Localidad\r\n\t\t\t$this->Id_Localidad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Localidad->HrefValue = \"\";\r\n\t\t\t$this->Id_Localidad->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\tglobal $conn, $Security, $dpp_proveedores;\n\n\t// Call Row Rendering event\n\t$dpp_proveedores->Row_Rendering();\n\n\t// Common render codes for all row types\n\t// provee_id\n\n\t$dpp_proveedores->provee_id->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_id->CellCssClass = \"\";\n\n\t// provee_rut\n\t$dpp_proveedores->provee_rut->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_rut->CellCssClass = \"\";\n\n\t// provee_dig\n\t$dpp_proveedores->provee_dig->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dig->CellCssClass = \"\";\n\n\t// provee_cat_juri\n\t$dpp_proveedores->provee_cat_juri->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_cat_juri->CellCssClass = \"\";\n\n\t// provee_nombre\n\t$dpp_proveedores->provee_nombre->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_nombre->CellCssClass = \"\";\n\n\t// provee_paterno\n\t$dpp_proveedores->provee_paterno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_paterno->CellCssClass = \"\";\n\n\t// provee_materno\n\t$dpp_proveedores->provee_materno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_materno->CellCssClass = \"\";\n\n\t// provee_dir\n\t$dpp_proveedores->provee_dir->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dir->CellCssClass = \"\";\n\n\t// provee_fono\n\t$dpp_proveedores->provee_fono->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_fono->CellCssClass = \"\";\n\tif ($dpp_proveedores->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->ViewValue = $dpp_proveedores->provee_id->CurrentValue;\n\t\t$dpp_proveedores->provee_id->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_id->CssClass = \"\";\n\t\t$dpp_proveedores->provee_id->ViewCustomAttributes = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->ViewValue = $dpp_proveedores->provee_rut->CurrentValue;\n\t\t$dpp_proveedores->provee_rut->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_rut->CssClass = \"\";\n\t\t$dpp_proveedores->provee_rut->ViewCustomAttributes = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->ViewValue = $dpp_proveedores->provee_dig->CurrentValue;\n\t\t$dpp_proveedores->provee_dig->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dig->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dig->ViewCustomAttributes = \"\";\n\n\t\t// provee_cat_juri\n\t\tif (!is_null($dpp_proveedores->provee_cat_juri->CurrentValue)) {\n\t\t\tswitch ($dpp_proveedores->provee_cat_juri->CurrentValue) {\n\t\t\t\tcase \"Natural\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Natural\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Juridica\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Juridica\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = $dpp_proveedores->provee_cat_juri->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = NULL;\n\t\t}\n\t\t$dpp_proveedores->provee_cat_juri->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->CssClass = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->ViewCustomAttributes = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->ViewValue = $dpp_proveedores->provee_nombre->CurrentValue;\n\t\t$dpp_proveedores->provee_nombre->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_nombre->CssClass = \"\";\n\t\t$dpp_proveedores->provee_nombre->ViewCustomAttributes = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->ViewValue = $dpp_proveedores->provee_paterno->CurrentValue;\n\t\t$dpp_proveedores->provee_paterno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_paterno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_paterno->ViewCustomAttributes = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->ViewValue = $dpp_proveedores->provee_materno->CurrentValue;\n\t\t$dpp_proveedores->provee_materno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_materno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_materno->ViewCustomAttributes = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->ViewValue = $dpp_proveedores->provee_dir->CurrentValue;\n\t\t$dpp_proveedores->provee_dir->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dir->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dir->ViewCustomAttributes = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->ViewValue = $dpp_proveedores->provee_fono->CurrentValue;\n\t\t$dpp_proveedores->provee_fono->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_fono->CssClass = \"\";\n\t\t$dpp_proveedores->provee_fono->ViewCustomAttributes = \"\";\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->HrefValue = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->HrefValue = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->HrefValue = \"\";\n\n\t\t// provee_cat_juri\n\t\t$dpp_proveedores->provee_cat_juri->HrefValue = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->HrefValue = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->HrefValue = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->HrefValue = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->HrefValue = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->HrefValue = \"\";\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_ADD) { // Add row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\t}\n\n\t// Call Row Rendered event\n\t$dpp_proveedores->Row_Rendered();\n}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Purchasing_Quantity->FormValue == $this->Purchasing_Quantity->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Quantity->CurrentValue)))\n\t\t\t$this->Purchasing_Quantity->CurrentValue = ew_StrToFloat($this->Purchasing_Quantity->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Purchasing_Price->FormValue == $this->Purchasing_Price->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Price->CurrentValue)))\n\t\t\t$this->Purchasing_Price->CurrentValue = ew_StrToFloat($this->Purchasing_Price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Selling_Price->FormValue == $this->Selling_Price->CurrentValue && is_numeric(ew_StrToFloat($this->Selling_Price->CurrentValue)))\n\t\t\t$this->Selling_Price->CurrentValue = ew_StrToFloat($this->Selling_Price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Purchasing_Total_Amount->FormValue == $this->Purchasing_Total_Amount->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Total_Amount->CurrentValue)))\n\t\t\t$this->Purchasing_Total_Amount->CurrentValue = ew_StrToFloat($this->Purchasing_Total_Amount->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Purchase_ID\n\t\t// Purchase_Number\n\t\t// Supplier_Number\n\t\t// Stock_Item\n\t\t// Purchasing_Quantity\n\t\t// Purchasing_Price\n\t\t// Selling_Price\n\t\t// Purchasing_Total_Amount\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->ViewValue = $this->Purchase_ID->CurrentValue;\n\t\t\t$this->Purchase_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->ViewValue = $this->Purchase_Number->CurrentValue;\n\t\t\t$this->Purchase_Number->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\tif (strval($this->Supplier_Number->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Supplier_Number`\" . ew_SearchString(\"=\", $this->Supplier_Number->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Supplier_Number->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Supplier_Number->ViewValue = $this->Supplier_Number->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Supplier_Number->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Supplier_Number->ViewCustomAttributes = \"\";\n\n\t\t\t// Stock_Item\n\t\t\tif (strval($this->Stock_Item->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Stock_Number`\" . ew_SearchString(\"=\", $this->Stock_Item->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Stock_Item->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Stock_Item->ViewValue = $this->Stock_Item->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Stock_Item->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Stock_Item->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->ViewValue = $this->Purchasing_Quantity->CurrentValue;\n\t\t\t$this->Purchasing_Quantity->ViewValue = ew_FormatNumber($this->Purchasing_Quantity->ViewValue, 0, -1, -1, -1);\n\t\t\t$this->Purchasing_Quantity->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Quantity->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->ViewValue = $this->Purchasing_Price->CurrentValue;\n\t\t\t$this->Purchasing_Price->ViewValue = ew_FormatCurrency($this->Purchasing_Price->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Purchasing_Price->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Price->ViewCustomAttributes = \"\";\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->ViewValue = $this->Selling_Price->CurrentValue;\n\t\t\t$this->Selling_Price->ViewValue = ew_FormatCurrency($this->Selling_Price->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Selling_Price->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Selling_Price->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->ViewValue = $this->Purchasing_Total_Amount->CurrentValue;\n\t\t\t$this->Purchasing_Total_Amount->ViewValue = ew_FormatCurrency($this->Purchasing_Total_Amount->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Purchasing_Total_Amount->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Total_Amount->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->HrefValue = \"\";\n\t\t\t$this->Purchase_ID->TooltipValue = \"\";\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->HrefValue = \"\";\n\t\t\t$this->Purchase_Number->TooltipValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\t\t\t$this->Supplier_Number->TooltipValue = \"\";\n\n\t\t\t// Stock_Item\n\t\t\t$this->Stock_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Stock_Item->HrefValue = \"\";\n\t\t\t$this->Stock_Item->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->HrefValue = \"\";\n\t\t\t$this->Purchasing_Quantity->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->HrefValue = \"\";\n\t\t\t$this->Purchasing_Price->TooltipValue = \"\";\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->LinkCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->HrefValue = \"\";\n\t\t\t$this->Selling_Price->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->HrefValue = \"\";\n\t\t\t$this->Purchasing_Total_Amount->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->EditValue = ew_HtmlEncode($this->Purchase_ID->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchase_ID->PlaceHolder = ew_RemoveHtml($this->Purchase_ID->FldCaption());\n\t\t\t$this->Purchase_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->EditValue2 = ew_HtmlEncode($this->Purchase_ID->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchase_ID->PlaceHolder = ew_RemoveHtml($this->Purchase_ID->FldCaption());\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->EditValue = ew_HtmlEncode($this->Purchase_Number->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchase_Number->PlaceHolder = ew_RemoveHtml($this->Purchase_Number->FldCaption());\n\t\t\t$this->Purchase_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->EditValue2 = ew_HtmlEncode($this->Purchase_Number->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchase_Number->PlaceHolder = ew_RemoveHtml($this->Purchase_Number->FldCaption());\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Supplier_Number->EditValue = $arwrk;\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Supplier_Number->EditValue2 = $arwrk;\n\n\t\t\t// Stock_Item\n\t\t\t$this->Stock_Item->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Stock_Item->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Stock_Item->EditValue = $arwrk;\n\t\t\t$this->Stock_Item->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Stock_Item->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Stock_Item->EditValue2 = $arwrk;\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Quantity->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->EditValue = ew_HtmlEncode($this->Purchasing_Quantity->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Quantity->PlaceHolder = ew_RemoveHtml($this->Purchasing_Quantity->FldCaption());\n\t\t\t$this->Purchasing_Quantity->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Quantity->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->EditValue2 = ew_HtmlEncode($this->Purchasing_Quantity->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Quantity->PlaceHolder = ew_RemoveHtml($this->Purchasing_Quantity->FldCaption());\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->EditValue = ew_HtmlEncode($this->Purchasing_Price->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Price->PlaceHolder = ew_RemoveHtml($this->Purchasing_Price->FldCaption());\n\t\t\t$this->Purchasing_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->EditValue2 = ew_HtmlEncode($this->Purchasing_Price->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Price->PlaceHolder = ew_RemoveHtml($this->Purchasing_Price->FldCaption());\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Selling_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->EditValue = ew_HtmlEncode($this->Selling_Price->AdvancedSearch->SearchValue);\n\t\t\t$this->Selling_Price->PlaceHolder = ew_RemoveHtml($this->Selling_Price->FldCaption());\n\t\t\t$this->Selling_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Selling_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->EditValue2 = ew_HtmlEncode($this->Selling_Price->AdvancedSearch->SearchValue2);\n\t\t\t$this->Selling_Price->PlaceHolder = ew_RemoveHtml($this->Selling_Price->FldCaption());\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Total_Amount->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->EditValue = ew_HtmlEncode($this->Purchasing_Total_Amount->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Total_Amount->PlaceHolder = ew_RemoveHtml($this->Purchasing_Total_Amount->FldCaption());\n\t\t\t$this->Purchasing_Total_Amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Total_Amount->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->EditValue2 = ew_HtmlEncode($this->Purchasing_Total_Amount->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Total_Amount->PlaceHolder = ew_RemoveHtml($this->Purchasing_Total_Amount->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $fs_multijoin_v;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $fs_multijoin_v->ViewUrl();\r\n\t\t$this->EditUrl = $fs_multijoin_v->EditUrl();\r\n\t\t$this->InlineEditUrl = $fs_multijoin_v->InlineEditUrl();\r\n\t\t$this->CopyUrl = $fs_multijoin_v->CopyUrl();\r\n\t\t$this->InlineCopyUrl = $fs_multijoin_v->InlineCopyUrl();\r\n\t\t$this->DeleteUrl = $fs_multijoin_v->DeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$fs_multijoin_v->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$fs_multijoin_v->id->CellCssStyle = \"\"; $fs_multijoin_v->id->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->id->CellAttrs = array(); $fs_multijoin_v->id->ViewAttrs = array(); $fs_multijoin_v->id->EditAttrs = array();\r\n\r\n\t\t// mount\r\n\t\t$fs_multijoin_v->mount->CellCssStyle = \"\"; $fs_multijoin_v->mount->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->mount->CellAttrs = array(); $fs_multijoin_v->mount->ViewAttrs = array(); $fs_multijoin_v->mount->EditAttrs = array();\r\n\r\n\t\t// path\r\n\t\t$fs_multijoin_v->path->CellCssStyle = \"\"; $fs_multijoin_v->path->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->path->CellAttrs = array(); $fs_multijoin_v->path->ViewAttrs = array(); $fs_multijoin_v->path->EditAttrs = array();\r\n\r\n\t\t// parent\r\n\t\t$fs_multijoin_v->parent->CellCssStyle = \"\"; $fs_multijoin_v->parent->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->parent->CellAttrs = array(); $fs_multijoin_v->parent->ViewAttrs = array(); $fs_multijoin_v->parent->EditAttrs = array();\r\n\r\n\t\t// deprecated\r\n\t\t$fs_multijoin_v->deprecated->CellCssStyle = \"\"; $fs_multijoin_v->deprecated->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->deprecated->CellAttrs = array(); $fs_multijoin_v->deprecated->ViewAttrs = array(); $fs_multijoin_v->deprecated->EditAttrs = array();\r\n\r\n\t\t// name\r\n\t\t$fs_multijoin_v->name->CellCssStyle = \"\"; $fs_multijoin_v->name->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->name->CellAttrs = array(); $fs_multijoin_v->name->ViewAttrs = array(); $fs_multijoin_v->name->EditAttrs = array();\r\n\r\n\t\t// snapshot\r\n\t\t$fs_multijoin_v->snapshot->CellCssStyle = \"\"; $fs_multijoin_v->snapshot->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->snapshot->CellAttrs = array(); $fs_multijoin_v->snapshot->ViewAttrs = array(); $fs_multijoin_v->snapshot->EditAttrs = array();\r\n\r\n\t\t// tapebackup\r\n\t\t$fs_multijoin_v->tapebackup->CellCssStyle = \"\"; $fs_multijoin_v->tapebackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->tapebackup->CellAttrs = array(); $fs_multijoin_v->tapebackup->ViewAttrs = array(); $fs_multijoin_v->tapebackup->EditAttrs = array();\r\n\r\n\t\t// diskbackup\r\n\t\t$fs_multijoin_v->diskbackup->CellCssStyle = \"\"; $fs_multijoin_v->diskbackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->diskbackup->CellAttrs = array(); $fs_multijoin_v->diskbackup->ViewAttrs = array(); $fs_multijoin_v->diskbackup->EditAttrs = array();\r\n\r\n\t\t// type\r\n\t\t$fs_multijoin_v->type->CellCssStyle = \"\"; $fs_multijoin_v->type->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->type->CellAttrs = array(); $fs_multijoin_v->type->ViewAttrs = array(); $fs_multijoin_v->type->EditAttrs = array();\r\n\r\n\t\t// CONTACT\r\n\t\t$fs_multijoin_v->CONTACT->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT->CellAttrs = array(); $fs_multijoin_v->CONTACT->ViewAttrs = array(); $fs_multijoin_v->CONTACT->EditAttrs = array();\r\n\r\n\t\t// CONTACT2\r\n\t\t$fs_multijoin_v->CONTACT2->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT2->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT2->CellAttrs = array(); $fs_multijoin_v->CONTACT2->ViewAttrs = array(); $fs_multijoin_v->CONTACT2->EditAttrs = array();\r\n\r\n\t\t// RESCOMP\r\n\t\t$fs_multijoin_v->RESCOMP->CellCssStyle = \"\"; $fs_multijoin_v->RESCOMP->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->RESCOMP->CellAttrs = array(); $fs_multijoin_v->RESCOMP->ViewAttrs = array(); $fs_multijoin_v->RESCOMP->EditAttrs = array();\r\n\t\tif ($fs_multijoin_v->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->ViewValue = $fs_multijoin_v->id->CurrentValue;\r\n\t\t\t$fs_multijoin_v->id->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->id->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->ViewValue = $fs_multijoin_v->mount->CurrentValue;\r\n\t\t\t$fs_multijoin_v->mount->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->mount->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->ViewValue = $fs_multijoin_v->path->CurrentValue;\r\n\t\t\t$fs_multijoin_v->path->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->path->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->ViewValue = $fs_multijoin_v->parent->CurrentValue;\r\n\t\t\t$fs_multijoin_v->parent->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->parent->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->ViewValue = $fs_multijoin_v->deprecated->CurrentValue;\r\n\t\t\t$fs_multijoin_v->deprecated->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->ViewValue = $fs_multijoin_v->name->CurrentValue;\r\n\t\t\t$fs_multijoin_v->name->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->name->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->ViewValue = $fs_multijoin_v->snapshot->CurrentValue;\r\n\t\t\t$fs_multijoin_v->snapshot->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewValue = $fs_multijoin_v->tapebackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->tapebackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewValue = $fs_multijoin_v->diskbackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->diskbackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->ViewValue = $fs_multijoin_v->type->CurrentValue;\r\n\t\t\t$fs_multijoin_v->type->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->type->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewValue = $fs_multijoin_v->CONTACT->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewValue = $fs_multijoin_v->CONTACT2->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewValue = $fs_multijoin_v->RESCOMP->CurrentValue;\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->id->TooltipValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->mount->TooltipValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->path->TooltipValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->parent->TooltipValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->name->TooltipValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->TooltipValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->TooltipValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->type->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->TooltipValue = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($fs_multijoin_v->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$fs_multijoin_v->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// IDXDAFTAR\n\t\t// NOMR\n\t\t// KDPOLY\n\t\t// KDCARABAYAR\n\t\t// NIP\n\t\t// TGLREG\n\t\t// JAMREG\n\t\t// NO_SJP\n\t\t// NOKARTU\n\t\t// TANGGAL_SEP\n\t\t// TANGGALRUJUK_SEP\n\t\t// KELASRAWAT_SEP\n\t\t// NORUJUKAN_SEP\n\t\t// PPKPELAYANAN_SEP\n\t\t// JENISPERAWATAN_SEP\n\t\t// CATATAN_SEP\n\t\t// DIAGNOSAAWAL_SEP\n\t\t// NAMADIAGNOSA_SEP\n\t\t// LAKALANTAS_SEP\n\t\t// LOKASILAKALANTAS\n\t\t// USER\n\t\t// generate_sep\n\t\t// PESERTANIK_SEP\n\t\t// PESERTANAMA_SEP\n\t\t// PESERTAJENISKELAMIN_SEP\n\t\t// PESERTANAMAKELAS_SEP\n\t\t// PESERTAPISAT\n\t\t// PESERTATGLLAHIR\n\t\t// PESERTAJENISPESERTA_SEP\n\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t// POLITUJUAN_SEP\n\t\t// NAMAPOLITUJUAN_SEP\n\t\t// KDPPKRUJUKAN_SEP\n\t\t// NMPPKRUJUKAN_SEP\n\t\t// mapingtransaksi\n\t\t// bridging_kepesertaan_by_no_ka\n\t\t// pasien_NOTELP\n\t\t// penjamin_kkl_id\n\t\t// asalfaskesrujukan_id\n\t\t// peserta_cob\n\t\t// poli_eksekutif\n\t\t// status_kepesertaan_BPJS\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->ViewValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->ViewValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->ViewValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->ViewValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->ViewValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->ViewValue = ew_FormatDateTime($this->TGLREG->ViewValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->ViewValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->ViewValue = ew_FormatDateTime($this->JAMREG->ViewValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->ViewValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->ViewValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->ViewValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->ViewValue = ew_FormatDateTime($this->TANGGAL_SEP->ViewValue, 5);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->ViewValue, 5);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->ViewValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->ViewValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->ViewValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\tif (strval($this->JENISPERAWATAN_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`jeniskeperawatan_id`\" . ew_SearchString(\"=\", $this->JENISPERAWATAN_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `jeniskeperawatan_id`, `jeniskeperawatan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jeniskeperawatan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->JENISPERAWATAN_SEP->LookupFilters = array();\n\t\t$lookuptblfilter = \"`jeniskeperawatan_id`='2'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->JENISPERAWATAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->ViewValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\tif (strval($this->DIAGNOSAAWAL_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`Code`\" . ew_SearchString(\"=\", $this->DIAGNOSAAWAL_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refdiagnosis`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->ViewValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\tif (strval($this->LAKALANTAS_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->LAKALANTAS_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->LAKALANTAS_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->LAKALANTAS_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->LAKALANTAS_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->ViewValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->ViewValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANIK_SEP\n\t\t$this->PESERTANIK_SEP->ViewValue = $this->PESERTANIK_SEP->CurrentValue;\n\t\t$this->PESERTANIK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMA_SEP\n\t\t$this->PESERTANAMA_SEP->ViewValue = $this->PESERTANAMA_SEP->CurrentValue;\n\t\t$this->PESERTANAMA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAJENISKELAMIN_SEP\n\t\t$this->PESERTAJENISKELAMIN_SEP->ViewValue = $this->PESERTAJENISKELAMIN_SEP->CurrentValue;\n\t\t$this->PESERTAJENISKELAMIN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMAKELAS_SEP\n\t\t$this->PESERTANAMAKELAS_SEP->ViewValue = $this->PESERTANAMAKELAS_SEP->CurrentValue;\n\t\t$this->PESERTANAMAKELAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAPISAT\n\t\t$this->PESERTAPISAT->ViewValue = $this->PESERTAPISAT->CurrentValue;\n\t\t$this->PESERTAPISAT->ViewCustomAttributes = \"\";\n\n\t\t// PESERTATGLLAHIR\n\t\t$this->PESERTATGLLAHIR->ViewValue = $this->PESERTATGLLAHIR->CurrentValue;\n\t\t$this->PESERTATGLLAHIR->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAJENISPESERTA_SEP\n\t\t$this->PESERTAJENISPESERTA_SEP->ViewValue = $this->PESERTAJENISPESERTA_SEP->CurrentValue;\n\t\t$this->PESERTAJENISPESERTA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->ViewValue = $this->PESERTANAMAJENISPESERTA_SEP->CurrentValue;\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// POLITUJUAN_SEP\n\t\tif (strval($this->POLITUJUAN_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDPOLI`\" . ew_SearchString(\"=\", $this->POLITUJUAN_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `KDPOLI`, `KDPOLI` AS `DispFld`, `NMPOLI` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refpoli`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->POLITUJUAN_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->POLITUJUAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->POLITUJUAN_SEP->ViewValue = $this->POLITUJUAN_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->POLITUJUAN_SEP->ViewValue = $this->POLITUJUAN_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->POLITUJUAN_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->POLITUJUAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPOLITUJUAN_SEP\n\t\t$this->NAMAPOLITUJUAN_SEP->ViewValue = $this->NAMAPOLITUJUAN_SEP->CurrentValue;\n\t\t$this->NAMAPOLITUJUAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KDPPKRUJUKAN_SEP\n\t\t$this->KDPPKRUJUKAN_SEP->ViewValue = $this->KDPPKRUJUKAN_SEP->CurrentValue;\n\t\t$this->KDPPKRUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NMPPKRUJUKAN_SEP\n\t\t$this->NMPPKRUJUKAN_SEP->ViewValue = $this->NMPPKRUJUKAN_SEP->CurrentValue;\n\t\t$this->NMPPKRUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// pasien_NOTELP\n\t\t$this->pasien_NOTELP->ViewValue = $this->pasien_NOTELP->CurrentValue;\n\t\t$this->pasien_NOTELP->ViewCustomAttributes = \"\";\n\n\t\t// penjamin_kkl_id\n\t\tif (strval($this->penjamin_kkl_id->CurrentValue) <> \"\") {\n\t\t\t$this->penjamin_kkl_id->ViewValue = $this->penjamin_kkl_id->OptionCaption($this->penjamin_kkl_id->CurrentValue);\n\t\t} else {\n\t\t\t$this->penjamin_kkl_id->ViewValue = NULL;\n\t\t}\n\t\t$this->penjamin_kkl_id->ViewCustomAttributes = \"\";\n\n\t\t// asalfaskesrujukan_id\n\t\tif (strval($this->asalfaskesrujukan_id->CurrentValue) <> \"\") {\n\t\t\t$this->asalfaskesrujukan_id->ViewValue = $this->asalfaskesrujukan_id->OptionCaption($this->asalfaskesrujukan_id->CurrentValue);\n\t\t} else {\n\t\t\t$this->asalfaskesrujukan_id->ViewValue = NULL;\n\t\t}\n\t\t$this->asalfaskesrujukan_id->ViewCustomAttributes = \"\";\n\n\t\t// peserta_cob\n\t\tif (strval($this->peserta_cob->CurrentValue) <> \"\") {\n\t\t\t$this->peserta_cob->ViewValue = $this->peserta_cob->OptionCaption($this->peserta_cob->CurrentValue);\n\t\t} else {\n\t\t\t$this->peserta_cob->ViewValue = NULL;\n\t\t}\n\t\t$this->peserta_cob->ViewCustomAttributes = \"\";\n\n\t\t// poli_eksekutif\n\t\tif (strval($this->poli_eksekutif->CurrentValue) <> \"\") {\n\t\t\t$this->poli_eksekutif->ViewValue = $this->poli_eksekutif->OptionCaption($this->poli_eksekutif->CurrentValue);\n\t\t} else {\n\t\t\t$this->poli_eksekutif->ViewValue = NULL;\n\t\t}\n\t\t$this->poli_eksekutif->ViewCustomAttributes = \"\";\n\n\t\t// status_kepesertaan_BPJS\n\t\t$this->status_kepesertaan_BPJS->ViewValue = $this->status_kepesertaan_BPJS->CurrentValue;\n\t\t$this->status_kepesertaan_BPJS->ViewCustomAttributes = \"\";\n\n\t\t\t// NOMR\n\t\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t\t$this->NOMR->HrefValue = \"\";\n\t\t\t$this->NOMR->TooltipValue = \"\";\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPOLY->HrefValue = \"\";\n\t\t\t$this->KDPOLY->TooltipValue = \"\";\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\t\t\t$this->KDCARABAYAR->TooltipValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\t\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t\t$this->TGLREG->HrefValue = \"\";\n\t\t\t$this->TGLREG->TooltipValue = \"\";\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t\t$this->JAMREG->HrefValue = \"\";\n\t\t\t$this->JAMREG->TooltipValue = \"\";\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->HrefValue = \"\";\n\t\t\t$this->NO_SJP->TooltipValue = \"\";\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->HrefValue = \"\";\n\t\t\t$this->NOKARTU->TooltipValue = \"\";\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\t\t\t$this->TANGGAL_SEP->TooltipValue = \"\";\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->TooltipValue = \"\";\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\t\t\t$this->KELASRAWAT_SEP->TooltipValue = \"\";\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->NORUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->TooltipValue = \"\";\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->TooltipValue = \"\";\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\t\t\t$this->CATATAN_SEP->TooltipValue = \"\";\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->TooltipValue = \"\";\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->TooltipValue = \"\";\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\t\t\t$this->LAKALANTAS_SEP->TooltipValue = \"\";\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\t\t\t$this->LOKASILAKALANTAS->TooltipValue = \"\";\n\n\t\t\t// USER\n\t\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t\t$this->USER->HrefValue = \"\";\n\t\t\t$this->USER->TooltipValue = \"\";\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->HrefValue = \"\";\n\t\t\tif ($this->Export == \"\") {\n\t\t\t\t$this->PESERTANIK_SEP->TooltipValue = ($this->PESERTANIK_SEP->ViewValue <> \"\") ? $this->PESERTANIK_SEP->ViewValue : $this->PESERTANIK_SEP->CurrentValue;\n\t\t\t\tif ($this->PESERTANIK_SEP->HrefValue == \"\") $this->PESERTANIK_SEP->HrefValue = \"javascript:void(0);\";\n\t\t\t\tew_AppendClass($this->PESERTANIK_SEP->LinkAttrs[\"class\"], \"ewTooltipLink\");\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-tooltip-id\"] = \"tt_vw_bridging_sep_by_no_kartu_x_PESERTANIK_SEP\";\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-tooltip-width\"] = $this->PESERTANIK_SEP->TooltipWidth;\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-placement\"] = $GLOBALS[\"EW_CSS_FLIP\"] ? \"left\" : \"right\";\n\t\t\t}\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMA_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->HrefValue = \"\";\n\t\t\t$this->PESERTAPISAT->TooltipValue = \"\";\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->HrefValue = \"\";\n\t\t\t$this->PESERTATGLLAHIR->TooltipValue = \"\";\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->TooltipValue = \"\";\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->POLITUJUAN_SEP->HrefValue = \"\";\n\t\t\t$this->POLITUJUAN_SEP->TooltipValue = \"\";\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->HrefValue = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->TooltipValue = \"\";\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->LinkCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->HrefValue = \"\";\n\t\t\t$this->pasien_NOTELP->TooltipValue = \"\";\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->HrefValue = \"\";\n\t\t\t$this->penjamin_kkl_id->TooltipValue = \"\";\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->HrefValue = \"\";\n\t\t\t$this->asalfaskesrujukan_id->TooltipValue = \"\";\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->LinkCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->HrefValue = \"\";\n\t\t\t$this->peserta_cob->TooltipValue = \"\";\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->LinkCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->HrefValue = \"\";\n\t\t\t$this->poli_eksekutif->TooltipValue = \"\";\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->LinkCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->HrefValue = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// NOMR\n\t\t\t$this->NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOMR->EditCustomAttributes = \"\";\n\t\t\t$this->NOMR->EditValue = ew_HtmlEncode($this->NOMR->CurrentValue);\n\t\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->NOMR->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->NOMR->EditValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->NOMR->EditValue = ew_HtmlEncode($this->NOMR->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->NOMR->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->NOMR->PlaceHolder = ew_RemoveHtml($this->NOMR->FldCaption());\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDPOLY->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->KDPOLY->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDPOLY->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->KDPOLY->EditValue = $arwrk;\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDCARABAYAR->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->KDCARABAYAR->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->KDCARABAYAR->EditValue = $arwrk;\n\n\t\t\t// NIP\n\t\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t\t$this->NIP->EditValue = ew_HtmlEncode($this->NIP->CurrentValue);\n\t\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TGLREG->EditCustomAttributes = \"\";\n\t\t\t$this->TGLREG->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TGLREG->CurrentValue, 8));\n\t\t\t$this->TGLREG->PlaceHolder = ew_RemoveHtml($this->TGLREG->FldCaption());\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->JAMREG->EditCustomAttributes = \"\";\n\t\t\t$this->JAMREG->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->JAMREG->CurrentValue, 8));\n\t\t\t$this->JAMREG->PlaceHolder = ew_RemoveHtml($this->JAMREG->FldCaption());\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NO_SJP->EditCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->EditValue = ew_HtmlEncode($this->NO_SJP->CurrentValue);\n\t\t\t$this->NO_SJP->PlaceHolder = ew_RemoveHtml($this->NO_SJP->FldCaption());\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOKARTU->EditCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->EditValue = ew_HtmlEncode($this->NOKARTU->CurrentValue);\n\t\t\t$this->NOKARTU->PlaceHolder = ew_RemoveHtml($this->NOKARTU->FldCaption());\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TANGGAL_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TANGGAL_SEP->CurrentValue, 5));\n\t\t\t$this->TANGGAL_SEP->PlaceHolder = ew_RemoveHtml($this->TANGGAL_SEP->FldCaption());\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TANGGALRUJUK_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TANGGALRUJUK_SEP->CurrentValue, 5));\n\t\t\t$this->TANGGALRUJUK_SEP->PlaceHolder = ew_RemoveHtml($this->TANGGALRUJUK_SEP->FldCaption());\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KELASRAWAT_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->EditValue = ew_HtmlEncode($this->KELASRAWAT_SEP->CurrentValue);\n\t\t\t$this->KELASRAWAT_SEP->PlaceHolder = ew_RemoveHtml($this->KELASRAWAT_SEP->FldCaption());\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NORUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->EditValue = ew_HtmlEncode($this->NORUJUKAN_SEP->CurrentValue);\n\t\t\t$this->NORUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->NORUJUKAN_SEP->FldCaption());\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PPKPELAYANAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->EditValue = ew_HtmlEncode($this->PPKPELAYANAN_SEP->CurrentValue);\n\t\t\t$this->PPKPELAYANAN_SEP->PlaceHolder = ew_RemoveHtml($this->PPKPELAYANAN_SEP->FldCaption());\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->JENISPERAWATAN_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`jeniskeperawatan_id`\" . ew_SearchString(\"=\", $this->JENISPERAWATAN_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `jeniskeperawatan_id`, `jeniskeperawatan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_jeniskeperawatan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`jeniskeperawatan_id`='2'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->JENISPERAWATAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->JENISPERAWATAN_SEP->EditValue = $arwrk;\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CATATAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->EditValue = ew_HtmlEncode($this->CATATAN_SEP->CurrentValue);\n\t\t\t$this->CATATAN_SEP->PlaceHolder = ew_RemoveHtml($this->CATATAN_SEP->FldCaption());\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = ew_HtmlEncode($this->DIAGNOSAAWAL_SEP->CurrentValue);\n\t\t\tif (strval($this->DIAGNOSAAWAL_SEP->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Code`\" . ew_SearchString(\"=\", $this->DIAGNOSAAWAL_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refdiagnosis`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = $this->DIAGNOSAAWAL_SEP->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = ew_HtmlEncode($this->DIAGNOSAAWAL_SEP->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->DIAGNOSAAWAL_SEP->PlaceHolder = ew_RemoveHtml($this->DIAGNOSAAWAL_SEP->FldCaption());\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NAMADIAGNOSA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->EditValue = ew_HtmlEncode($this->NAMADIAGNOSA_SEP->CurrentValue);\n\t\t\t$this->NAMADIAGNOSA_SEP->PlaceHolder = ew_RemoveHtml($this->NAMADIAGNOSA_SEP->FldCaption());\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->LAKALANTAS_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->LAKALANTAS_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->LAKALANTAS_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->LAKALANTAS_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->LAKALANTAS_SEP->EditValue = $arwrk;\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LOKASILAKALANTAS->EditCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->EditValue = ew_HtmlEncode($this->LOKASILAKALANTAS->CurrentValue);\n\t\t\t$this->LOKASILAKALANTAS->PlaceHolder = ew_RemoveHtml($this->LOKASILAKALANTAS->FldCaption());\n\n\t\t\t// USER\n\t\t\t$this->USER->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->USER->EditCustomAttributes = \"\";\n\t\t\t$this->USER->EditValue = ew_HtmlEncode($this->USER->CurrentValue);\n\t\t\t$this->USER->PlaceHolder = ew_RemoveHtml($this->USER->FldCaption());\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANIK_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->EditValue = ew_HtmlEncode($this->PESERTANIK_SEP->CurrentValue);\n\t\t\t$this->PESERTANIK_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANIK_SEP->FldCaption());\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMA_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMA_SEP->FldCaption());\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditValue = ew_HtmlEncode($this->PESERTAJENISKELAMIN_SEP->CurrentValue);\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTAJENISKELAMIN_SEP->FldCaption());\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMAKELAS_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMAKELAS_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMAKELAS_SEP->FldCaption());\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAPISAT->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->EditValue = ew_HtmlEncode($this->PESERTAPISAT->CurrentValue);\n\t\t\t$this->PESERTAPISAT->PlaceHolder = ew_RemoveHtml($this->PESERTAPISAT->FldCaption());\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTATGLLAHIR->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->EditValue = ew_HtmlEncode($this->PESERTATGLLAHIR->CurrentValue);\n\t\t\t$this->PESERTATGLLAHIR->PlaceHolder = ew_RemoveHtml($this->PESERTATGLLAHIR->FldCaption());\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditValue = ew_HtmlEncode($this->PESERTAJENISPESERTA_SEP->CurrentValue);\n\t\t\t$this->PESERTAJENISPESERTA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTAJENISPESERTA_SEP->FldCaption());\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMAJENISPESERTA_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMAJENISPESERTA_SEP->FldCaption());\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->POLITUJUAN_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->POLITUJUAN_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KDPOLI`\" . ew_SearchString(\"=\", $this->POLITUJUAN_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KDPOLI`, `KDPOLI` AS `DispFld`, `NMPOLI` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `refpoli`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->POLITUJUAN_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->POLITUJUAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->POLITUJUAN_SEP->EditValue = $arwrk;\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditValue = ew_HtmlEncode($this->NAMAPOLITUJUAN_SEP->CurrentValue);\n\t\t\t$this->NAMAPOLITUJUAN_SEP->PlaceHolder = ew_RemoveHtml($this->NAMAPOLITUJUAN_SEP->FldCaption());\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditValue = ew_HtmlEncode($this->KDPPKRUJUKAN_SEP->CurrentValue);\n\t\t\t$this->KDPPKRUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->KDPPKRUJUKAN_SEP->FldCaption());\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditValue = ew_HtmlEncode($this->NMPPKRUJUKAN_SEP->CurrentValue);\n\t\t\t$this->NMPPKRUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->NMPPKRUJUKAN_SEP->FldCaption());\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pasien_NOTELP->EditCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->EditValue = ew_HtmlEncode($this->pasien_NOTELP->CurrentValue);\n\t\t\t$this->pasien_NOTELP->PlaceHolder = ew_RemoveHtml($this->pasien_NOTELP->FldCaption());\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->penjamin_kkl_id->EditCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->EditValue = $this->penjamin_kkl_id->Options(TRUE);\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->asalfaskesrujukan_id->EditCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->EditValue = $this->asalfaskesrujukan_id->Options(TRUE);\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->peserta_cob->EditCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->EditValue = $this->peserta_cob->Options(TRUE);\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->poli_eksekutif->EditCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->EditValue = $this->poli_eksekutif->Options(TRUE);\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->status_kepesertaan_BPJS->EditCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->EditValue = ew_HtmlEncode($this->status_kepesertaan_BPJS->CurrentValue);\n\t\t\t$this->status_kepesertaan_BPJS->PlaceHolder = ew_RemoveHtml($this->status_kepesertaan_BPJS->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// NOMR\n\n\t\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t\t$this->NOMR->HrefValue = \"\";\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPOLY->HrefValue = \"\";\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t\t$this->TGLREG->HrefValue = \"\";\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t\t$this->JAMREG->HrefValue = \"\";\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->HrefValue = \"\";\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->HrefValue = \"\";\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\n\t\t\t// USER\n\t\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t\t$this->USER->HrefValue = \"\";\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->HrefValue = \"\";\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->HrefValue = \"\";\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->HrefValue = \"\";\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->POLITUJUAN_SEP->HrefValue = \"\";\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->HrefValue = \"\";\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->LinkCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->HrefValue = \"\";\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->HrefValue = \"\";\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->HrefValue = \"\";\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->LinkCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->HrefValue = \"\";\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->LinkCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->HrefValue = \"\";\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->LinkCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// identries\r\n\t\t// domain_id\r\n\t\t// hash_content\r\n\t\t// fuente\r\n\t\t// published\r\n\t\t// updated\r\n\t\t// categorias\r\n\t\t// titulo\r\n\t\t// contenido\r\n\t\t// id\r\n\t\t// islive\r\n\t\t// thumbnail\r\n\t\t// reqdate\r\n\t\t// author\r\n\t\t// trans_en\r\n\t\t// trans_es\r\n\t\t// trans_fr\r\n\t\t// trans_it\r\n\t\t// fid\r\n\t\t// fmd5\r\n\t\t// tool_id\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->ViewValue = $this->identries->CurrentValue;\r\n\t\t\t$this->identries->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// domain_id\r\n\t\t\tif (strval($this->domain_id->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id_domains`\" . ew_SearchString(\"=\", $this->domain_id->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id_domains`, `dominio` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `domains`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->domain_id->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->domain_id->ViewValue = $this->domain_id->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->domain_id->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->domain_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// hash_content\r\n\t\t\t$this->hash_content->ViewValue = $this->hash_content->CurrentValue;\r\n\t\t\t$this->hash_content->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fuente\r\n\t\t\t$this->fuente->ViewValue = $this->fuente->CurrentValue;\r\n\t\t\t$this->fuente->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// published\r\n\t\t\t$this->published->ViewValue = $this->published->CurrentValue;\r\n\t\t\t$this->published->ViewValue = ew_FormatDateTime($this->published->ViewValue, 5);\r\n\t\t\t$this->published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated\r\n\t\t\t$this->updated->ViewValue = $this->updated->CurrentValue;\r\n\t\t\t$this->updated->ViewValue = ew_FormatDateTime($this->updated->ViewValue, 5);\r\n\t\t\t$this->updated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// categorias\r\n\t\t\t$this->categorias->ViewValue = $this->categorias->CurrentValue;\r\n\t\t\t$this->categorias->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->ViewValue = $this->titulo->CurrentValue;\r\n\t\t\t$this->titulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->ViewValue = $this->islive->CurrentValue;\r\n\t\t\t$this->islive->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// thumbnail\r\n\t\t\t$this->thumbnail->ViewValue = $this->thumbnail->CurrentValue;\r\n\t\t\t$this->thumbnail->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// reqdate\r\n\t\t\t$this->reqdate->ViewValue = $this->reqdate->CurrentValue;\r\n\t\t\t$this->reqdate->ViewValue = ew_FormatDateTime($this->reqdate->ViewValue, 5);\r\n\t\t\t$this->reqdate->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// author\r\n\t\t\t$this->author->ViewValue = $this->author->CurrentValue;\r\n\t\t\t$this->author->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_en\r\n\t\t\t$this->trans_en->ViewValue = $this->trans_en->CurrentValue;\r\n\t\t\t$this->trans_en->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_es\r\n\t\t\t$this->trans_es->ViewValue = $this->trans_es->CurrentValue;\r\n\t\t\t$this->trans_es->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_fr\r\n\t\t\t$this->trans_fr->ViewValue = $this->trans_fr->CurrentValue;\r\n\t\t\t$this->trans_fr->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_it\r\n\t\t\t$this->trans_it->ViewValue = $this->trans_it->CurrentValue;\r\n\t\t\t$this->trans_it->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fid\r\n\t\t\t$this->fid->ViewValue = $this->fid->CurrentValue;\r\n\t\t\t$this->fid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fmd5\r\n\t\t\t$this->fmd5->ViewValue = $this->fmd5->CurrentValue;\r\n\t\t\t$this->fmd5->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->ViewValue = $this->tool_id->CurrentValue;\r\n\t\t\t$this->tool_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->LinkCustomAttributes = \"\";\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\t\t\t$this->identries->TooltipValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\t\t\t$this->titulo->TooltipValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\t\t\t$this->id->TooltipValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->LinkCustomAttributes = \"\";\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\t\t\t$this->islive->TooltipValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t\t$this->tool_id->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// userlevelid\n\t\t// userlevelname\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->ViewValue = $this->userlevelid->CurrentValue;\n\t\t\t$this->userlevelid->ViewCustomAttributes = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->ViewValue = $this->userlevelname->CurrentValue;\n\t\t\t$this->userlevelname->ViewCustomAttributes = \"\";\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->LinkCustomAttributes = \"\";\n\t\t\t$this->userlevelid->HrefValue = \"\";\n\t\t\t$this->userlevelid->TooltipValue = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->LinkCustomAttributes = \"\";\n\t\t\t$this->userlevelname->HrefValue = \"\";\n\t\t\t$this->userlevelname->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->EditCustomAttributes = \"\";\n\t\t\t$this->userlevelid->EditValue = ew_HtmlEncode($this->userlevelid->CurrentValue);\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->EditCustomAttributes = \"\";\n\t\t\t$this->userlevelname->EditValue = ew_HtmlEncode($this->userlevelname->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// userlevelid\n\n\t\t\t$this->userlevelid->HrefValue = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $st_peserta_kelas_kelompok;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$st_peserta_kelas_kelompok->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// identitas\r\n\t\t// kode_otomatis_kelompok\r\n\t\t// kode_otomatis\r\n\r\n\t\tif ($st_peserta_kelas_kelompok->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// identitas\r\n\t\t\tif (strval($st_peserta_kelas_kelompok->identitas->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`A_nis_nasional` = '\" . ew_AdjustSql($st_peserta_kelas_kelompok->identitas->CurrentValue) . \"'\";\r\n\t\t\t$sSqlWrk = \"SELECT `A_nis_nasional`, `A_nama_Lengkap` FROM `master_siswa`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$lookuptblfilter = \" D_saat_ini_tingkat ='\" . $_SESSION['kode_otomatis_tingkat'] . \"' \" . \" AND apakah_valid='y' \" . \" AND NOT EXISTS (SELECT identitas,apakah_valid FROM st_peserta_kelas_kelompok,st_master_kelas_kelompok WHERE st_peserta_kelas_kelompok.kode_otomatis_kelompok=st_master_kelas_kelompok.kode_otomatis AND apakah_valid='y' AND kode_otomatis_tingkat='\" . $_SESSION[\"kode_otomatis_tingkat\"] . \"' AND A_nis_nasional=identitas \" . \") \";\r\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $lookuptblfilter . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$st_peserta_kelas_kelompok->identitas->ViewValue = $rswrk->fields('A_nis_nasional');\r\n\t\t\t\t\t$st_peserta_kelas_kelompok->identitas->ViewValue .= ew_ValueSeparator(0,1,$st_peserta_kelas_kelompok->identitas) . $rswrk->fields('A_nama_Lengkap');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$st_peserta_kelas_kelompok->identitas->ViewValue = $st_peserta_kelas_kelompok->identitas->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$st_peserta_kelas_kelompok->identitas->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis_kelompok\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->ViewValue = $st_peserta_kelas_kelompok->kode_otomatis_kelompok->CurrentValue;\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis->ViewValue = $st_peserta_kelas_kelompok->kode_otomatis->CurrentValue;\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// identitas\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->LinkCustomAttributes = \"\";\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->HrefValue = \"\";\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_kelompok\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->LinkCustomAttributes = \"\";\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->HrefValue = \"\";\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis->LinkCustomAttributes = \"\";\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis->HrefValue = \"\";\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis->TooltipValue = \"\";\r\n\t\t} elseif ($st_peserta_kelas_kelompok->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// identitas\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->EditCustomAttributes = \"\";\r\n\t\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `A_nis_nasional`, `A_nis_nasional` AS `DispFld`, `A_nama_Lengkap` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld` FROM `master_siswa`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$lookuptblfilter = \" D_saat_ini_tingkat ='\" . $_SESSION['kode_otomatis_tingkat'] . \"' \" . \" AND apakah_valid='y' \" . \" AND NOT EXISTS (SELECT identitas,apakah_valid FROM st_peserta_kelas_kelompok,st_master_kelas_kelompok WHERE st_peserta_kelas_kelompok.kode_otomatis_kelompok=st_master_kelas_kelompok.kode_otomatis AND apakah_valid='y' AND kode_otomatis_tingkat='\" . $_SESSION[\"kode_otomatis_tingkat\"] . \"' AND A_nis_nasional=identitas \" . \") \";\r\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $lookuptblfilter . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\"));\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->EditValue = $arwrk;\r\n\r\n\t\t\t// kode_otomatis_kelompok\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->EditCustomAttributes = \"\";\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->EditValue = ew_HtmlEncode($st_peserta_kelas_kelompok->kode_otomatis_kelompok->CurrentValue);\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// identitas\r\n\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_kelompok\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($st_peserta_kelas_kelompok->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$st_peserta_kelas_kelompok->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$st_peserta_kelas_kelompok->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$st_peserta_kelas_kelompok->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($st_peserta_kelas_kelompok->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$st_peserta_kelas_kelompok->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id_admission\n\t\t// nomr\n\t\t// ket_nama\n\t\t// ket_tgllahir\n\t\t// ket_alamat\n\t\t// ket_jeniskelamin\n\t\t// ket_title\n\t\t// dokterpengirim\n\t\t// statusbayar\n\t\t// kirimdari\n\t\t// keluargadekat\n\t\t// panggungjawab\n\t\t// masukrs\n\t\t// noruang\n\t\t// tempat_tidur_id\n\t\t// nott\n\t\t// NIP\n\t\t// dokter_penanggungjawab\n\t\t// KELASPERAWATAN_ID\n\t\t// NO_SKP\n\t\t// sep_tglsep\n\t\t// sep_tglrujuk\n\t\t// sep_kodekelasrawat\n\t\t// sep_norujukan\n\t\t// sep_kodeppkasal\n\t\t// sep_namappkasal\n\t\t// sep_kodeppkpelayanan\n\t\t// sep_jenisperawatan\n\t\t// sep_catatan\n\t\t// sep_kodediagnosaawal\n\t\t// sep_namadiagnosaawal\n\t\t// sep_lakalantas\n\t\t// sep_lokasilaka\n\t\t// sep_user\n\t\t// sep_flag_cekpeserta\n\t\t// sep_flag_generatesep\n\t\t// sep_nik\n\t\t// sep_namapeserta\n\t\t// sep_jeniskelamin\n\t\t// sep_pisat\n\t\t// sep_tgllahir\n\t\t// sep_kodejeniskepesertaan\n\t\t// sep_namajeniskepesertaan\n\t\t// sep_nokabpjs\n\t\t// sep_status_peserta\n\t\t// sep_umur_pasien_sekarang\n\t\t// statuskeluarranap_id\n\t\t// keluarrs\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// ket_nama\n\t\t$this->ket_nama->ViewValue = $this->ket_nama->CurrentValue;\n\t\t$this->ket_nama->ViewCustomAttributes = \"\";\n\n\t\t// ket_tgllahir\n\t\t$this->ket_tgllahir->ViewValue = $this->ket_tgllahir->CurrentValue;\n\t\t$this->ket_tgllahir->ViewValue = ew_FormatDateTime($this->ket_tgllahir->ViewValue, 0);\n\t\t$this->ket_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// ket_alamat\n\t\t$this->ket_alamat->ViewValue = $this->ket_alamat->CurrentValue;\n\t\t$this->ket_alamat->ViewCustomAttributes = \"\";\n\n\t\t// ket_jeniskelamin\n\t\t$this->ket_jeniskelamin->ViewValue = $this->ket_jeniskelamin->CurrentValue;\n\t\t$this->ket_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// ket_title\n\t\t$this->ket_title->ViewValue = $this->ket_title->CurrentValue;\n\t\t$this->ket_title->ViewCustomAttributes = \"\";\n\n\t\t// dokterpengirim\n\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->CurrentValue;\n\t\tif (strval($this->dokterpengirim->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokterpengirim->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokterpengirim->ViewValue = NULL;\n\t\t}\n\t\t$this->dokterpengirim->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\tif (strval($this->statusbayar->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->statusbayar->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->statusbayar->ViewValue = NULL;\n\t\t}\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kirimdari\n\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kirimdari->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kirimdari->ViewValue = NULL;\n\t\t}\n\t\t$this->kirimdari->ViewCustomAttributes = \"\";\n\n\t\t// keluargadekat\n\t\t$this->keluargadekat->ViewValue = $this->keluargadekat->CurrentValue;\n\t\t$this->keluargadekat->ViewCustomAttributes = \"\";\n\n\t\t// panggungjawab\n\t\t$this->panggungjawab->ViewValue = $this->panggungjawab->CurrentValue;\n\t\t$this->panggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// masukrs\n\t\t$this->masukrs->ViewValue = $this->masukrs->CurrentValue;\n\t\t$this->masukrs->ViewValue = ew_FormatDateTime($this->masukrs->ViewValue, 0);\n\t\t$this->masukrs->ViewCustomAttributes = \"\";\n\n\t\t// noruang\n\t\t$this->noruang->ViewValue = $this->noruang->CurrentValue;\n\t\tif (strval($this->noruang->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->noruang->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->noruang->ViewValue = NULL;\n\t\t}\n\t\t$this->noruang->ViewCustomAttributes = \"\";\n\n\t\t// tempat_tidur_id\n\t\t$this->tempat_tidur_id->ViewValue = $this->tempat_tidur_id->CurrentValue;\n\t\t$this->tempat_tidur_id->ViewCustomAttributes = \"\";\n\n\t\t// nott\n\t\t$this->nott->ViewValue = $this->nott->CurrentValue;\n\t\t$this->nott->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// dokter_penanggungjawab\n\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\tif (strval($this->dokter_penanggungjawab->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokter_penanggungjawab->ViewValue = NULL;\n\t\t}\n\t\t$this->dokter_penanggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// KELASPERAWATAN_ID\n\t\t$this->KELASPERAWATAN_ID->ViewValue = $this->KELASPERAWATAN_ID->CurrentValue;\n\t\t$this->KELASPERAWATAN_ID->ViewCustomAttributes = \"\";\n\n\t\t// NO_SKP\n\t\t$this->NO_SKP->ViewValue = $this->NO_SKP->CurrentValue;\n\t\t$this->NO_SKP->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglsep\n\t\t$this->sep_tglsep->ViewValue = $this->sep_tglsep->CurrentValue;\n\t\t$this->sep_tglsep->ViewValue = ew_FormatDateTime($this->sep_tglsep->ViewValue, 5);\n\t\t$this->sep_tglsep->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglrujuk\n\t\t$this->sep_tglrujuk->ViewValue = $this->sep_tglrujuk->CurrentValue;\n\t\t$this->sep_tglrujuk->ViewValue = ew_FormatDateTime($this->sep_tglrujuk->ViewValue, 5);\n\t\t$this->sep_tglrujuk->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodekelasrawat\n\t\t$this->sep_kodekelasrawat->ViewValue = $this->sep_kodekelasrawat->CurrentValue;\n\t\t$this->sep_kodekelasrawat->ViewCustomAttributes = \"\";\n\n\t\t// sep_norujukan\n\t\t$this->sep_norujukan->ViewValue = $this->sep_norujukan->CurrentValue;\n\t\t$this->sep_norujukan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkasal\n\t\t$this->sep_kodeppkasal->ViewValue = $this->sep_kodeppkasal->CurrentValue;\n\t\t$this->sep_kodeppkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namappkasal\n\t\t$this->sep_namappkasal->ViewValue = $this->sep_namappkasal->CurrentValue;\n\t\t$this->sep_namappkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkpelayanan\n\t\t$this->sep_kodeppkpelayanan->ViewValue = $this->sep_kodeppkpelayanan->CurrentValue;\n\t\t$this->sep_kodeppkpelayanan->ViewCustomAttributes = \"\";\n\n\t\t// sep_jenisperawatan\n\t\t$this->sep_jenisperawatan->ViewValue = $this->sep_jenisperawatan->CurrentValue;\n\t\t$this->sep_jenisperawatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_catatan\n\t\t$this->sep_catatan->ViewValue = $this->sep_catatan->CurrentValue;\n\t\t$this->sep_catatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodediagnosaawal\n\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\tif (strval($this->sep_kodediagnosaawal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->sep_kodediagnosaawal->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_kodediagnosaawal->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_kodediagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namadiagnosaawal\n\t\t$this->sep_namadiagnosaawal->ViewValue = $this->sep_namadiagnosaawal->CurrentValue;\n\t\t$this->sep_namadiagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_lakalantas\n\t\tif (strval($this->sep_lakalantas->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->sep_lakalantas->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->sep_lakalantas->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sep_lakalantas, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sep_lakalantas->ViewValue = $this->sep_lakalantas->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sep_lakalantas->ViewValue = $this->sep_lakalantas->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_lakalantas->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_lakalantas->ViewCustomAttributes = \"\";\n\n\t\t// sep_lokasilaka\n\t\t$this->sep_lokasilaka->ViewValue = $this->sep_lokasilaka->CurrentValue;\n\t\t$this->sep_lokasilaka->ViewCustomAttributes = \"\";\n\n\t\t// sep_user\n\t\t$this->sep_user->ViewValue = $this->sep_user->CurrentValue;\n\t\t$this->sep_user->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_cekpeserta\n\t\tif (strval($this->sep_flag_cekpeserta->CurrentValue) <> \"\") {\n\t\t\t$this->sep_flag_cekpeserta->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->sep_flag_cekpeserta->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->sep_flag_cekpeserta->ViewValue .= $this->sep_flag_cekpeserta->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->sep_flag_cekpeserta->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_flag_cekpeserta->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_flag_cekpeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_generatesep\n\t\tif (strval($this->sep_flag_generatesep->CurrentValue) <> \"\") {\n\t\t\t$this->sep_flag_generatesep->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->sep_flag_generatesep->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->sep_flag_generatesep->ViewValue .= $this->sep_flag_generatesep->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->sep_flag_generatesep->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_flag_generatesep->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_flag_generatesep->ViewCustomAttributes = \"\";\n\n\t\t// sep_nik\n\t\t$this->sep_nik->ViewValue = $this->sep_nik->CurrentValue;\n\t\t$this->sep_nik->ViewCustomAttributes = \"\";\n\n\t\t// sep_namapeserta\n\t\t$this->sep_namapeserta->ViewValue = $this->sep_namapeserta->CurrentValue;\n\t\t$this->sep_namapeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_jeniskelamin\n\t\t$this->sep_jeniskelamin->ViewValue = $this->sep_jeniskelamin->CurrentValue;\n\t\t$this->sep_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// sep_pisat\n\t\t$this->sep_pisat->ViewValue = $this->sep_pisat->CurrentValue;\n\t\t$this->sep_pisat->ViewCustomAttributes = \"\";\n\n\t\t// sep_tgllahir\n\t\t$this->sep_tgllahir->ViewValue = $this->sep_tgllahir->CurrentValue;\n\t\t$this->sep_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodejeniskepesertaan\n\t\t$this->sep_kodejeniskepesertaan->ViewValue = $this->sep_kodejeniskepesertaan->CurrentValue;\n\t\t$this->sep_kodejeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_namajeniskepesertaan\n\t\t$this->sep_namajeniskepesertaan->ViewValue = $this->sep_namajeniskepesertaan->CurrentValue;\n\t\t$this->sep_namajeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_nokabpjs\n\t\t$this->sep_nokabpjs->ViewValue = $this->sep_nokabpjs->CurrentValue;\n\t\t$this->sep_nokabpjs->ViewCustomAttributes = \"\";\n\n\t\t// sep_status_peserta\n\t\t$this->sep_status_peserta->ViewValue = $this->sep_status_peserta->CurrentValue;\n\t\t$this->sep_status_peserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_umur_pasien_sekarang\n\t\t$this->sep_umur_pasien_sekarang->ViewValue = $this->sep_umur_pasien_sekarang->CurrentValue;\n\t\t$this->sep_umur_pasien_sekarang->ViewCustomAttributes = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\t\t\t$this->ket_nama->TooltipValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\t\t\t$this->ket_tgllahir->TooltipValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\t\t\t$this->ket_alamat->TooltipValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->ket_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\t\t\t$this->ket_title->TooltipValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\t\t\t$this->dokterpengirim->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\t\t\t$this->kirimdari->TooltipValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\t\t\t$this->keluargadekat->TooltipValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\t\t\t$this->panggungjawab->TooltipValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\t\t\t$this->masukrs->TooltipValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\t\t\t$this->noruang->TooltipValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\t\t\t$this->tempat_tidur_id->TooltipValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\t\t\t$this->nott->TooltipValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\t\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\t\t\t$this->dokter_penanggungjawab->TooltipValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->TooltipValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\t\t\t$this->NO_SKP->TooltipValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\t\t\t$this->sep_tglsep->TooltipValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\t\t\t$this->sep_tglrujuk->TooltipValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\t\t\t$this->sep_kodekelasrawat->TooltipValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\t\t\t$this->sep_norujukan->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkasal->TooltipValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\t\t\t$this->sep_namappkasal->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->TooltipValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\t\t\t$this->sep_jenisperawatan->TooltipValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\t\t\t$this->sep_catatan->TooltipValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_kodediagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_namadiagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\t\t\t$this->sep_lakalantas->TooltipValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\t\t\t$this->sep_lokasilaka->TooltipValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\t\t\t$this->sep_user->TooltipValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\t\t\t$this->sep_flag_cekpeserta->TooltipValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\t\t\t$this->sep_flag_generatesep->TooltipValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\t\t\t$this->sep_nik->TooltipValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\t\t\t$this->sep_namapeserta->TooltipValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->sep_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\t\t\t$this->sep_pisat->TooltipValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\t\t\t$this->sep_tgllahir->TooltipValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\t\t\t$this->sep_nokabpjs->TooltipValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\t\t\t$this->sep_status_peserta->TooltipValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_nama->EditCustomAttributes = \"\";\n\t\t\t$this->ket_nama->EditValue = ew_HtmlEncode($this->ket_nama->CurrentValue);\n\t\t\t$this->ket_nama->PlaceHolder = ew_RemoveHtml($this->ket_nama->FldCaption());\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ket_tgllahir->CurrentValue, 8));\n\t\t\t$this->ket_tgllahir->PlaceHolder = ew_RemoveHtml($this->ket_tgllahir->FldCaption());\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_alamat->EditCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->EditValue = ew_HtmlEncode($this->ket_alamat->CurrentValue);\n\t\t\t$this->ket_alamat->PlaceHolder = ew_RemoveHtml($this->ket_alamat->FldCaption());\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->EditValue = ew_HtmlEncode($this->ket_jeniskelamin->CurrentValue);\n\t\t\t$this->ket_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->ket_jeniskelamin->FldCaption());\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_title->EditCustomAttributes = \"\";\n\t\t\t$this->ket_title->EditValue = ew_HtmlEncode($this->ket_title->CurrentValue);\n\t\t\t$this->ket_title->PlaceHolder = ew_RemoveHtml($this->ket_title->FldCaption());\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokterpengirim->EditCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->EditValue = ew_HtmlEncode($this->dokterpengirim->CurrentValue);\n\t\t\tif (strval($this->dokterpengirim->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokterpengirim->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->dokterpengirim->EditValue = $this->dokterpengirim->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->dokterpengirim->EditValue = ew_HtmlEncode($this->dokterpengirim->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->dokterpengirim->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->dokterpengirim->PlaceHolder = ew_RemoveHtml($this->dokterpengirim->FldCaption());\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\tif (strval($this->statusbayar->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->statusbayar->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->statusbayar->EditValue = $this->statusbayar->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->statusbayar->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kirimdari->EditCustomAttributes = \"\";\n\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kirimdari->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->kirimdari->EditValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->kirimdari->PlaceHolder = ew_RemoveHtml($this->kirimdari->FldCaption());\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keluargadekat->EditCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->EditValue = ew_HtmlEncode($this->keluargadekat->CurrentValue);\n\t\t\t$this->keluargadekat->PlaceHolder = ew_RemoveHtml($this->keluargadekat->FldCaption());\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->panggungjawab->EditCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->EditValue = ew_HtmlEncode($this->panggungjawab->CurrentValue);\n\t\t\t$this->panggungjawab->PlaceHolder = ew_RemoveHtml($this->panggungjawab->FldCaption());\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->masukrs->EditCustomAttributes = \"\";\n\t\t\t$this->masukrs->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->masukrs->CurrentValue, 8));\n\t\t\t$this->masukrs->PlaceHolder = ew_RemoveHtml($this->masukrs->FldCaption());\n\n\t\t\t// noruang\n\t\t\t$this->noruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->noruang->EditCustomAttributes = \"\";\n\t\t\t$this->noruang->EditValue = ew_HtmlEncode($this->noruang->CurrentValue);\n\t\t\tif (strval($this->noruang->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->noruang->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->noruang->EditValue = $this->noruang->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->noruang->EditValue = ew_HtmlEncode($this->noruang->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->noruang->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->noruang->PlaceHolder = ew_RemoveHtml($this->noruang->FldCaption());\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tempat_tidur_id->EditCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->EditValue = ew_HtmlEncode($this->tempat_tidur_id->CurrentValue);\n\t\t\t$this->tempat_tidur_id->PlaceHolder = ew_RemoveHtml($this->tempat_tidur_id->FldCaption());\n\n\t\t\t// nott\n\t\t\t$this->nott->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nott->EditCustomAttributes = \"\";\n\t\t\t$this->nott->EditValue = ew_HtmlEncode($this->nott->CurrentValue);\n\t\t\t$this->nott->PlaceHolder = ew_RemoveHtml($this->nott->FldCaption());\n\n\t\t\t// NIP\n\t\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t\t$this->NIP->EditValue = ew_HtmlEncode($this->NIP->CurrentValue);\n\t\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokter_penanggungjawab->EditCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->EditValue = ew_HtmlEncode($this->dokter_penanggungjawab->CurrentValue);\n\t\t\tif (strval($this->dokter_penanggungjawab->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->dokter_penanggungjawab->EditValue = $this->dokter_penanggungjawab->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->dokter_penanggungjawab->EditValue = ew_HtmlEncode($this->dokter_penanggungjawab->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->dokter_penanggungjawab->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->dokter_penanggungjawab->PlaceHolder = ew_RemoveHtml($this->dokter_penanggungjawab->FldCaption());\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KELASPERAWATAN_ID->EditCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->EditValue = ew_HtmlEncode($this->KELASPERAWATAN_ID->CurrentValue);\n\t\t\t$this->KELASPERAWATAN_ID->PlaceHolder = ew_RemoveHtml($this->KELASPERAWATAN_ID->FldCaption());\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NO_SKP->EditCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->EditValue = ew_HtmlEncode($this->NO_SKP->CurrentValue);\n\t\t\t$this->NO_SKP->PlaceHolder = ew_RemoveHtml($this->NO_SKP->FldCaption());\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglsep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglsep->CurrentValue, 5));\n\t\t\t$this->sep_tglsep->PlaceHolder = ew_RemoveHtml($this->sep_tglsep->FldCaption());\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglrujuk->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglrujuk->CurrentValue, 5));\n\t\t\t$this->sep_tglrujuk->PlaceHolder = ew_RemoveHtml($this->sep_tglrujuk->FldCaption());\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodekelasrawat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->EditValue = ew_HtmlEncode($this->sep_kodekelasrawat->CurrentValue);\n\t\t\t$this->sep_kodekelasrawat->PlaceHolder = ew_RemoveHtml($this->sep_kodekelasrawat->FldCaption());\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_norujukan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->EditValue = ew_HtmlEncode($this->sep_norujukan->CurrentValue);\n\t\t\t$this->sep_norujukan->PlaceHolder = ew_RemoveHtml($this->sep_norujukan->FldCaption());\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->EditValue = ew_HtmlEncode($this->sep_kodeppkasal->CurrentValue);\n\t\t\t$this->sep_kodeppkasal->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkasal->FldCaption());\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namappkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->EditValue = ew_HtmlEncode($this->sep_namappkasal->CurrentValue);\n\t\t\t$this->sep_namappkasal->PlaceHolder = ew_RemoveHtml($this->sep_namappkasal->FldCaption());\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkpelayanan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->EditValue = ew_HtmlEncode($this->sep_kodeppkpelayanan->CurrentValue);\n\t\t\t$this->sep_kodeppkpelayanan->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkpelayanan->FldCaption());\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jenisperawatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->EditValue = ew_HtmlEncode($this->sep_jenisperawatan->CurrentValue);\n\t\t\t$this->sep_jenisperawatan->PlaceHolder = ew_RemoveHtml($this->sep_jenisperawatan->FldCaption());\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_catatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->EditValue = ew_HtmlEncode($this->sep_catatan->CurrentValue);\n\t\t\t$this->sep_catatan->PlaceHolder = ew_RemoveHtml($this->sep_catatan->FldCaption());\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodediagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->EditValue = ew_HtmlEncode($this->sep_kodediagnosaawal->CurrentValue);\n\t\t\tif (strval($this->sep_kodediagnosaawal->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->sep_kodediagnosaawal->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->sep_kodediagnosaawal->EditValue = $this->sep_kodediagnosaawal->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->sep_kodediagnosaawal->EditValue = ew_HtmlEncode($this->sep_kodediagnosaawal->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->sep_kodediagnosaawal->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->sep_kodediagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_kodediagnosaawal->FldCaption());\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namadiagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->EditValue = ew_HtmlEncode($this->sep_namadiagnosaawal->CurrentValue);\n\t\t\t$this->sep_namadiagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_namadiagnosaawal->FldCaption());\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->sep_lakalantas->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->sep_lakalantas->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->sep_lakalantas->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->sep_lakalantas, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->sep_lakalantas->EditValue = $arwrk;\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_lokasilaka->EditCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->EditValue = ew_HtmlEncode($this->sep_lokasilaka->CurrentValue);\n\t\t\t$this->sep_lokasilaka->PlaceHolder = ew_RemoveHtml($this->sep_lokasilaka->FldCaption());\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_user->EditCustomAttributes = \"\";\n\t\t\t$this->sep_user->EditValue = ew_HtmlEncode($this->sep_user->CurrentValue);\n\t\t\t$this->sep_user->PlaceHolder = ew_RemoveHtml($this->sep_user->FldCaption());\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->EditValue = $this->sep_flag_cekpeserta->Options(FALSE);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->EditValue = $this->sep_flag_generatesep->Options(FALSE);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nik->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nik->EditValue = ew_HtmlEncode($this->sep_nik->CurrentValue);\n\t\t\t$this->sep_nik->PlaceHolder = ew_RemoveHtml($this->sep_nik->FldCaption());\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namapeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->EditValue = ew_HtmlEncode($this->sep_namapeserta->CurrentValue);\n\t\t\t$this->sep_namapeserta->PlaceHolder = ew_RemoveHtml($this->sep_namapeserta->FldCaption());\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->EditValue = ew_HtmlEncode($this->sep_jeniskelamin->CurrentValue);\n\t\t\t$this->sep_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->sep_jeniskelamin->FldCaption());\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_pisat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->EditValue = ew_HtmlEncode($this->sep_pisat->CurrentValue);\n\t\t\t$this->sep_pisat->PlaceHolder = ew_RemoveHtml($this->sep_pisat->FldCaption());\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->EditValue = ew_HtmlEncode($this->sep_tgllahir->CurrentValue);\n\t\t\t$this->sep_tgllahir->PlaceHolder = ew_RemoveHtml($this->sep_tgllahir->FldCaption());\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_kodejeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_kodejeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_kodejeniskepesertaan->FldCaption());\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namajeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_namajeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_namajeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_namajeniskepesertaan->FldCaption());\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nokabpjs->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->EditValue = ew_HtmlEncode($this->sep_nokabpjs->CurrentValue);\n\t\t\t$this->sep_nokabpjs->PlaceHolder = ew_RemoveHtml($this->sep_nokabpjs->FldCaption());\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_status_peserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->EditValue = ew_HtmlEncode($this->sep_status_peserta->CurrentValue);\n\t\t\t$this->sep_status_peserta->PlaceHolder = ew_RemoveHtml($this->sep_status_peserta->FldCaption());\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditValue = ew_HtmlEncode($this->sep_umur_pasien_sekarang->CurrentValue);\n\t\t\t$this->sep_umur_pasien_sekarang->PlaceHolder = ew_RemoveHtml($this->sep_umur_pasien_sekarang->FldCaption());\n\n\t\t\t// Edit refer script\n\t\t\t// nomr\n\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $rekeningju;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$rekeningju->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// NoRek\r\n\t\t// Keterangan\r\n\t\t// debet\r\n\t\t// kredit\r\n\t\t// kode_bukti\r\n\t\t// tanggal\r\n\t\t// kode_otomatis_master\r\n\r\n\t\t$rekeningju->kode_otomatis_master->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// tanggal_nota\r\n\t\t// kode_otomatis\r\n\r\n\t\t$rekeningju->kode_otomatis->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// kode_otomatis_tingkat\r\n\t\t$rekeningju->kode_otomatis_tingkat->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// id\r\n\t\t$rekeningju->id->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// apakah_original\r\n\t\tif ($rekeningju->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// NoRek\r\n\t\t\tif (strval($rekeningju->NoRek->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Norek` = '\" . ew_AdjustSql($rekeningju->NoRek->CurrentValue) . \"'\";\r\n\t\t\t$sSqlWrk = \"SELECT `Norek`, `Keterangan` FROM `rekening2`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Norek` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue = $rswrk->fields('Norek');\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue .= ew_ValueSeparator(0,1,$rekeningju->NoRek) . $rswrk->fields('Keterangan');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue = $rekeningju->NoRek->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$rekeningju->NoRek->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$rekeningju->NoRek->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->ViewValue = $rekeningju->Keterangan->CurrentValue;\r\n\t\t\t$rekeningju->Keterangan->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->ViewValue = $rekeningju->debet->CurrentValue;\r\n\t\t\t$rekeningju->debet->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->ViewValue = $rekeningju->kredit->CurrentValue;\r\n\t\t\t$rekeningju->kredit->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->ViewValue = $rekeningju->kode_bukti->CurrentValue;\r\n\t\t\t$rekeningju->kode_bukti->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->ViewValue = $rekeningju->tanggal->CurrentValue;\r\n\t\t\t$rekeningju->tanggal->ViewValue = ew_FormatDateTime($rekeningju->tanggal->ViewValue, 7);\r\n\t\t\t$rekeningju->tanggal->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->ViewValue = $rekeningju->tanggal_nota->CurrentValue;\r\n\t\t\t$rekeningju->tanggal_nota->ViewValue = ew_FormatDateTime($rekeningju->tanggal_nota->ViewValue, 7);\r\n\t\t\t$rekeningju->tanggal_nota->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->ViewValue = $rekeningju->kode_otomatis->CurrentValue;\r\n\t\t\t$rekeningju->kode_otomatis->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->ViewValue = $rekeningju->kode_otomatis_tingkat->CurrentValue;\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->ViewValue = $rekeningju->apakah_original->CurrentValue;\r\n\t\t\t$rekeningju->apakah_original->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\t\t\t$rekeningju->NoRek->TooltipValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\t\t\t$rekeningju->Keterangan->TooltipValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\t\t\t$rekeningju->debet->TooltipValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\t\t\t$rekeningju->kredit->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_bukti->TooltipValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\t\t\t$rekeningju->tanggal->TooltipValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->TooltipValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t\t$rekeningju->apakah_original->TooltipValue = \"\";\r\n\t\t} elseif ($rekeningju->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->EditCustomAttributes = \"\";\r\n\t\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Norek`, `Norek` AS `DispFld`, `Keterangan` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld` FROM `rekening2`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Norek` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\"));\r\n\t\t\t$rekeningju->NoRek->EditValue = $arwrk;\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->EditValue = ew_HtmlEncode($rekeningju->Keterangan->CurrentValue);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->EditValue = ew_HtmlEncode($rekeningju->debet->CurrentValue);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->EditValue = ew_HtmlEncode($rekeningju->kredit->CurrentValue);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->EditValue = ew_HtmlEncode($rekeningju->kode_bukti->CurrentValue);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal->CurrentValue, 7));\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7));\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->CurrentValue = unik();\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->CurrentValue = $_SESSION[\"kode_otomatis_tingkat\"];\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->EditValue = ew_HtmlEncode($rekeningju->apakah_original->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// NoRek\r\n\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t} elseif ($rekeningju->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->EditValue = ew_HtmlEncode($rekeningju->Keterangan->CurrentValue);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->EditValue = ew_HtmlEncode($rekeningju->debet->CurrentValue);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->EditValue = ew_HtmlEncode($rekeningju->kredit->CurrentValue);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->EditValue = ew_HtmlEncode($rekeningju->kode_bukti->CurrentValue);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal->CurrentValue, 7));\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7));\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->EditValue = ew_HtmlEncode($rekeningju->apakah_original->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// NoRek\r\n\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($rekeningju->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$rekeningju->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$rekeningju->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$rekeningju->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($rekeningju->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$rekeningju->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->besar->FormValue == $this->besar->CurrentValue && is_numeric(ew_StrToFloat($this->besar->CurrentValue)))\n\t\t\t$this->besar->CurrentValue = ew_StrToFloat($this->besar->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// replid\n\t\t// nama\n\t\t// besar\n\t\t// idkategori\n\t\t// rekkas\n\t\t// rekpendapatan\n\t\t// rekpiutang\n\t\t// aktif\n\t\t// keterangan\n\t\t// departemen\n\t\t// info1\n\t\t// info2\n\t\t// info3\n\t\t// ts\n\t\t// token\n\t\t// issync\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// replid\n\t\t$this->replid->ViewValue = $this->replid->CurrentValue;\n\t\t$this->replid->ViewCustomAttributes = \"\";\n\n\t\t// nama\n\t\t$this->nama->ViewValue = $this->nama->CurrentValue;\n\t\t$this->nama->ViewCustomAttributes = \"\";\n\n\t\t// besar\n\t\t$this->besar->ViewValue = $this->besar->CurrentValue;\n\t\t$this->besar->ViewCustomAttributes = \"\";\n\n\t\t// idkategori\n\t\t$this->idkategori->ViewValue = $this->idkategori->CurrentValue;\n\t\t$this->idkategori->ViewCustomAttributes = \"\";\n\n\t\t// rekkas\n\t\t$this->rekkas->ViewValue = $this->rekkas->CurrentValue;\n\t\t$this->rekkas->ViewCustomAttributes = \"\";\n\n\t\t// rekpendapatan\n\t\t$this->rekpendapatan->ViewValue = $this->rekpendapatan->CurrentValue;\n\t\t$this->rekpendapatan->ViewCustomAttributes = \"\";\n\n\t\t// rekpiutang\n\t\t$this->rekpiutang->ViewValue = $this->rekpiutang->CurrentValue;\n\t\t$this->rekpiutang->ViewCustomAttributes = \"\";\n\n\t\t// aktif\n\t\t$this->aktif->ViewValue = $this->aktif->CurrentValue;\n\t\t$this->aktif->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// departemen\n\t\t$this->departemen->ViewValue = $this->departemen->CurrentValue;\n\t\t$this->departemen->ViewCustomAttributes = \"\";\n\n\t\t// info1\n\t\t$this->info1->ViewValue = $this->info1->CurrentValue;\n\t\t$this->info1->ViewCustomAttributes = \"\";\n\n\t\t// info2\n\t\t$this->info2->ViewValue = $this->info2->CurrentValue;\n\t\t$this->info2->ViewCustomAttributes = \"\";\n\n\t\t// info3\n\t\t$this->info3->ViewValue = $this->info3->CurrentValue;\n\t\t$this->info3->ViewCustomAttributes = \"\";\n\n\t\t// ts\n\t\t$this->ts->ViewValue = $this->ts->CurrentValue;\n\t\t$this->ts->ViewValue = ew_FormatDateTime($this->ts->ViewValue, 0);\n\t\t$this->ts->ViewCustomAttributes = \"\";\n\n\t\t// token\n\t\t$this->token->ViewValue = $this->token->CurrentValue;\n\t\t$this->token->ViewCustomAttributes = \"\";\n\n\t\t// issync\n\t\t$this->issync->ViewValue = $this->issync->CurrentValue;\n\t\t$this->issync->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\t\t\t$this->nama->TooltipValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\t\t\t$this->besar->TooltipValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\t\t\t$this->idkategori->TooltipValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\t\t\t$this->rekkas->TooltipValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\t\t\t$this->rekpendapatan->TooltipValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\t\t\t$this->rekpiutang->TooltipValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\t\t\t$this->aktif->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\t\t\t$this->departemen->TooltipValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\t\t\t$this->info1->TooltipValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\t\t\t$this->info2->TooltipValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\t\t\t$this->info3->TooltipValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\t\t\t$this->ts->TooltipValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\t\t\t$this->token->TooltipValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t\t$this->issync->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// nama\n\t\t\t$this->nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama->EditCustomAttributes = \"\";\n\t\t\t$this->nama->EditValue = ew_HtmlEncode($this->nama->CurrentValue);\n\t\t\t$this->nama->PlaceHolder = ew_RemoveHtml($this->nama->FldCaption());\n\n\t\t\t// besar\n\t\t\t$this->besar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->besar->EditCustomAttributes = \"\";\n\t\t\t$this->besar->EditValue = ew_HtmlEncode($this->besar->CurrentValue);\n\t\t\t$this->besar->PlaceHolder = ew_RemoveHtml($this->besar->FldCaption());\n\t\t\tif (strval($this->besar->EditValue) <> \"\" && is_numeric($this->besar->EditValue)) $this->besar->EditValue = ew_FormatNumber($this->besar->EditValue, -2, -1, -2, 0);\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->idkategori->EditCustomAttributes = \"\";\n\t\t\t$this->idkategori->EditValue = ew_HtmlEncode($this->idkategori->CurrentValue);\n\t\t\t$this->idkategori->PlaceHolder = ew_RemoveHtml($this->idkategori->FldCaption());\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekkas->EditCustomAttributes = \"\";\n\t\t\t$this->rekkas->EditValue = ew_HtmlEncode($this->rekkas->CurrentValue);\n\t\t\t$this->rekkas->PlaceHolder = ew_RemoveHtml($this->rekkas->FldCaption());\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpendapatan->EditCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->EditValue = ew_HtmlEncode($this->rekpendapatan->CurrentValue);\n\t\t\t$this->rekpendapatan->PlaceHolder = ew_RemoveHtml($this->rekpendapatan->FldCaption());\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpiutang->EditCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->EditValue = ew_HtmlEncode($this->rekpiutang->CurrentValue);\n\t\t\t$this->rekpiutang->PlaceHolder = ew_RemoveHtml($this->rekpiutang->FldCaption());\n\n\t\t\t// aktif\n\t\t\t$this->aktif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->aktif->EditCustomAttributes = \"\";\n\t\t\t$this->aktif->EditValue = ew_HtmlEncode($this->aktif->CurrentValue);\n\t\t\t$this->aktif->PlaceHolder = ew_RemoveHtml($this->aktif->FldCaption());\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t\t$this->keterangan->EditValue = ew_HtmlEncode($this->keterangan->CurrentValue);\n\t\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t\t// departemen\n\t\t\t$this->departemen->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->departemen->EditCustomAttributes = \"\";\n\t\t\t$this->departemen->EditValue = ew_HtmlEncode($this->departemen->CurrentValue);\n\t\t\t$this->departemen->PlaceHolder = ew_RemoveHtml($this->departemen->FldCaption());\n\n\t\t\t// info1\n\t\t\t$this->info1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info1->EditCustomAttributes = \"\";\n\t\t\t$this->info1->EditValue = ew_HtmlEncode($this->info1->CurrentValue);\n\t\t\t$this->info1->PlaceHolder = ew_RemoveHtml($this->info1->FldCaption());\n\n\t\t\t// info2\n\t\t\t$this->info2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info2->EditCustomAttributes = \"\";\n\t\t\t$this->info2->EditValue = ew_HtmlEncode($this->info2->CurrentValue);\n\t\t\t$this->info2->PlaceHolder = ew_RemoveHtml($this->info2->FldCaption());\n\n\t\t\t// info3\n\t\t\t$this->info3->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info3->EditCustomAttributes = \"\";\n\t\t\t$this->info3->EditValue = ew_HtmlEncode($this->info3->CurrentValue);\n\t\t\t$this->info3->PlaceHolder = ew_RemoveHtml($this->info3->FldCaption());\n\n\t\t\t// ts\n\t\t\t$this->ts->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ts->EditCustomAttributes = \"\";\n\t\t\t$this->ts->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ts->CurrentValue, 8));\n\t\t\t$this->ts->PlaceHolder = ew_RemoveHtml($this->ts->FldCaption());\n\n\t\t\t// token\n\t\t\t$this->token->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->token->EditCustomAttributes = \"\";\n\t\t\t$this->token->EditValue = ew_HtmlEncode($this->token->CurrentValue);\n\t\t\t$this->token->PlaceHolder = ew_RemoveHtml($this->token->FldCaption());\n\n\t\t\t// issync\n\t\t\t$this->issync->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->issync->EditCustomAttributes = \"\";\n\t\t\t$this->issync->EditValue = ew_HtmlEncode($this->issync->CurrentValue);\n\t\t\t$this->issync->PlaceHolder = ew_RemoveHtml($this->issync->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// nama\n\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->precio_item->FormValue == $this->precio_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_item->CurrentValue)))\n\t\t\t$this->precio_item->CurrentValue = ew_StrToFloat($this->precio_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_item->FormValue == $this->costo_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_item->CurrentValue)))\n\t\t\t$this->costo_item->CurrentValue = ew_StrToFloat($this->costo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldo_item->FormValue == $this->saldo_item->CurrentValue && is_numeric(ew_StrToFloat($this->saldo_item->CurrentValue)))\n\t\t\t$this->saldo_item->CurrentValue = ew_StrToFloat($this->saldo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->precio_old_item->FormValue == $this->precio_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_old_item->CurrentValue)))\n\t\t\t$this->precio_old_item->CurrentValue = ew_StrToFloat($this->precio_old_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_old_item->FormValue == $this->costo_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_old_item->CurrentValue)))\n\t\t\t$this->costo_old_item->CurrentValue = ew_StrToFloat($this->costo_old_item->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Id_Item\n\t\t// codigo_item\n\t\t// nombre_item\n\t\t// und_item\n\t\t// precio_item\n\t\t// costo_item\n\t\t// tipo_item\n\t\t// marca_item\n\t\t// cod_marca_item\n\t\t// detalle_item\n\t\t// saldo_item\n\t\t// activo_item\n\t\t// maneja_serial_item\n\t\t// asignado_item\n\t\t// si_no_item\n\t\t// precio_old_item\n\t\t// costo_old_item\n\t\t// registra_item\n\t\t// fecha_registro_item\n\t\t// empresa_item\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Id_Item\n\t\t$this->Id_Item->ViewValue = $this->Id_Item->CurrentValue;\n\t\t$this->Id_Item->ViewCustomAttributes = \"\";\n\n\t\t// codigo_item\n\t\t$this->codigo_item->ViewValue = $this->codigo_item->CurrentValue;\n\t\t$this->codigo_item->ViewCustomAttributes = \"\";\n\n\t\t// nombre_item\n\t\t$this->nombre_item->ViewValue = $this->nombre_item->CurrentValue;\n\t\t$this->nombre_item->ViewCustomAttributes = \"\";\n\n\t\t// und_item\n\t\t$this->und_item->ViewValue = $this->und_item->CurrentValue;\n\t\t$this->und_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_item\n\t\t$this->precio_item->ViewValue = $this->precio_item->CurrentValue;\n\t\t$this->precio_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_item\n\t\t$this->costo_item->ViewValue = $this->costo_item->CurrentValue;\n\t\t$this->costo_item->ViewCustomAttributes = \"\";\n\n\t\t// tipo_item\n\t\t$this->tipo_item->ViewValue = $this->tipo_item->CurrentValue;\n\t\t$this->tipo_item->ViewCustomAttributes = \"\";\n\n\t\t// marca_item\n\t\t$this->marca_item->ViewValue = $this->marca_item->CurrentValue;\n\t\t$this->marca_item->ViewCustomAttributes = \"\";\n\n\t\t// cod_marca_item\n\t\t$this->cod_marca_item->ViewValue = $this->cod_marca_item->CurrentValue;\n\t\t$this->cod_marca_item->ViewCustomAttributes = \"\";\n\n\t\t// detalle_item\n\t\t$this->detalle_item->ViewValue = $this->detalle_item->CurrentValue;\n\t\t$this->detalle_item->ViewCustomAttributes = \"\";\n\n\t\t// saldo_item\n\t\t$this->saldo_item->ViewValue = $this->saldo_item->CurrentValue;\n\t\t$this->saldo_item->ViewCustomAttributes = \"\";\n\n\t\t// activo_item\n\t\t$this->activo_item->ViewValue = $this->activo_item->CurrentValue;\n\t\t$this->activo_item->ViewCustomAttributes = \"\";\n\n\t\t// maneja_serial_item\n\t\t$this->maneja_serial_item->ViewValue = $this->maneja_serial_item->CurrentValue;\n\t\t$this->maneja_serial_item->ViewCustomAttributes = \"\";\n\n\t\t// asignado_item\n\t\t$this->asignado_item->ViewValue = $this->asignado_item->CurrentValue;\n\t\t$this->asignado_item->ViewCustomAttributes = \"\";\n\n\t\t// si_no_item\n\t\t$this->si_no_item->ViewValue = $this->si_no_item->CurrentValue;\n\t\t$this->si_no_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_old_item\n\t\t$this->precio_old_item->ViewValue = $this->precio_old_item->CurrentValue;\n\t\t$this->precio_old_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_old_item\n\t\t$this->costo_old_item->ViewValue = $this->costo_old_item->CurrentValue;\n\t\t$this->costo_old_item->ViewCustomAttributes = \"\";\n\n\t\t// registra_item\n\t\t$this->registra_item->ViewValue = $this->registra_item->CurrentValue;\n\t\t$this->registra_item->ViewCustomAttributes = \"\";\n\n\t\t// fecha_registro_item\n\t\t$this->fecha_registro_item->ViewValue = $this->fecha_registro_item->CurrentValue;\n\t\t$this->fecha_registro_item->ViewValue = ew_FormatDateTime($this->fecha_registro_item->ViewValue, 0);\n\t\t$this->fecha_registro_item->ViewCustomAttributes = \"\";\n\n\t\t// empresa_item\n\t\t$this->empresa_item->ViewValue = $this->empresa_item->CurrentValue;\n\t\t$this->empresa_item->ViewCustomAttributes = \"\";\n\n\t\t\t// Id_Item\n\t\t\t$this->Id_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Id_Item->HrefValue = \"\";\n\t\t\t$this->Id_Item->TooltipValue = \"\";\n\n\t\t\t// codigo_item\n\t\t\t$this->codigo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo_item->HrefValue = \"\";\n\t\t\t$this->codigo_item->TooltipValue = \"\";\n\n\t\t\t// nombre_item\n\t\t\t$this->nombre_item->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_item->HrefValue = \"\";\n\t\t\t$this->nombre_item->TooltipValue = \"\";\n\n\t\t\t// und_item\n\t\t\t$this->und_item->LinkCustomAttributes = \"\";\n\t\t\t$this->und_item->HrefValue = \"\";\n\t\t\t$this->und_item->TooltipValue = \"\";\n\n\t\t\t// precio_item\n\t\t\t$this->precio_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_item->HrefValue = \"\";\n\t\t\t$this->precio_item->TooltipValue = \"\";\n\n\t\t\t// costo_item\n\t\t\t$this->costo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_item->HrefValue = \"\";\n\t\t\t$this->costo_item->TooltipValue = \"\";\n\n\t\t\t// tipo_item\n\t\t\t$this->tipo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_item->HrefValue = \"\";\n\t\t\t$this->tipo_item->TooltipValue = \"\";\n\n\t\t\t// marca_item\n\t\t\t$this->marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->marca_item->HrefValue = \"\";\n\t\t\t$this->marca_item->TooltipValue = \"\";\n\n\t\t\t// cod_marca_item\n\t\t\t$this->cod_marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->cod_marca_item->HrefValue = \"\";\n\t\t\t$this->cod_marca_item->TooltipValue = \"\";\n\n\t\t\t// detalle_item\n\t\t\t$this->detalle_item->LinkCustomAttributes = \"\";\n\t\t\t$this->detalle_item->HrefValue = \"\";\n\t\t\t$this->detalle_item->TooltipValue = \"\";\n\n\t\t\t// saldo_item\n\t\t\t$this->saldo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->saldo_item->HrefValue = \"\";\n\t\t\t$this->saldo_item->TooltipValue = \"\";\n\n\t\t\t// activo_item\n\t\t\t$this->activo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->activo_item->HrefValue = \"\";\n\t\t\t$this->activo_item->TooltipValue = \"\";\n\n\t\t\t// maneja_serial_item\n\t\t\t$this->maneja_serial_item->LinkCustomAttributes = \"\";\n\t\t\t$this->maneja_serial_item->HrefValue = \"\";\n\t\t\t$this->maneja_serial_item->TooltipValue = \"\";\n\n\t\t\t// asignado_item\n\t\t\t$this->asignado_item->LinkCustomAttributes = \"\";\n\t\t\t$this->asignado_item->HrefValue = \"\";\n\t\t\t$this->asignado_item->TooltipValue = \"\";\n\n\t\t\t// si_no_item\n\t\t\t$this->si_no_item->LinkCustomAttributes = \"\";\n\t\t\t$this->si_no_item->HrefValue = \"\";\n\t\t\t$this->si_no_item->TooltipValue = \"\";\n\n\t\t\t// precio_old_item\n\t\t\t$this->precio_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_old_item->HrefValue = \"\";\n\t\t\t$this->precio_old_item->TooltipValue = \"\";\n\n\t\t\t// costo_old_item\n\t\t\t$this->costo_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_old_item->HrefValue = \"\";\n\t\t\t$this->costo_old_item->TooltipValue = \"\";\n\n\t\t\t// registra_item\n\t\t\t$this->registra_item->LinkCustomAttributes = \"\";\n\t\t\t$this->registra_item->HrefValue = \"\";\n\t\t\t$this->registra_item->TooltipValue = \"\";\n\n\t\t\t// fecha_registro_item\n\t\t\t$this->fecha_registro_item->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_registro_item->HrefValue = \"\";\n\t\t\t$this->fecha_registro_item->TooltipValue = \"\";\n\n\t\t\t// empresa_item\n\t\t\t$this->empresa_item->LinkCustomAttributes = \"\";\n\t\t\t$this->empresa_item->HrefValue = \"\";\n\t\t\t$this->empresa_item->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// name\n\t\t// email\n\t\t// password\n\n\t\t$this->password->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// companyname\n\t\t// servicetime\n\t\t// country\n\t\t// phone\n\t\t// skype\n\t\t// website\n\t\t// linkedin\n\t\t// facebook\n\t\t// twitter\n\t\t// active_code\n\t\t// identification\n\t\t// link_expired\n\t\t// isactive\n\t\t// pio\n\t\t// google\n\t\t// instagram\n\t\t// account_type\n\t\t// logo\n\t\t// profilepic\n\t\t// mailref\n\t\t// deleted\n\t\t// deletefeedback\n\t\t// account_id\n\t\t// start_date\n\t\t// end_date\n\t\t// year_moth\n\t\t// registerdate\n\t\t// login_type\n\t\t// accountstatus\n\t\t// ispay\n\t\t// profilelink\n\t\t// source\n\t\t// agree\n\t\t// balance\n\t\t// job_title\n\t\t// projects\n\t\t// opportunities\n\t\t// isconsaltant\n\t\t// isagent\n\t\t// isinvestor\n\t\t// isbusinessman\n\t\t// isprovider\n\t\t// isproductowner\n\t\t// states\n\t\t// cities\n\t\t// offers\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// companyname\n\t\t$this->companyname->ViewValue = $this->companyname->CurrentValue;\n\t\t$this->companyname->ViewCustomAttributes = \"\";\n\n\t\t// servicetime\n\t\t$this->servicetime->ViewValue = $this->servicetime->CurrentValue;\n\t\t$this->servicetime->ViewCustomAttributes = \"\";\n\n\t\t// country\n\t\t$this->country->ViewValue = $this->country->CurrentValue;\n\t\t$this->country->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// skype\n\t\t$this->skype->ViewValue = $this->skype->CurrentValue;\n\t\t$this->skype->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// linkedin\n\t\t$this->linkedin->ViewValue = $this->linkedin->CurrentValue;\n\t\t$this->linkedin->ViewCustomAttributes = \"\";\n\n\t\t// facebook\n\t\t$this->facebook->ViewValue = $this->facebook->CurrentValue;\n\t\t$this->facebook->ViewCustomAttributes = \"\";\n\n\t\t// twitter\n\t\t$this->twitter->ViewValue = $this->twitter->CurrentValue;\n\t\t$this->twitter->ViewCustomAttributes = \"\";\n\n\t\t// active_code\n\t\t$this->active_code->ViewValue = $this->active_code->CurrentValue;\n\t\t$this->active_code->ViewCustomAttributes = \"\";\n\n\t\t// identification\n\t\t$this->identification->ViewValue = $this->identification->CurrentValue;\n\t\t$this->identification->ViewCustomAttributes = \"\";\n\n\t\t// link_expired\n\t\t$this->link_expired->ViewValue = $this->link_expired->CurrentValue;\n\t\t$this->link_expired->ViewValue = ew_FormatDateTime($this->link_expired->ViewValue, 5);\n\t\t$this->link_expired->ViewCustomAttributes = \"\";\n\n\t\t// isactive\n\t\t$this->isactive->ViewValue = $this->isactive->CurrentValue;\n\t\t$this->isactive->ViewCustomAttributes = \"\";\n\n\t\t// google\n\t\t$this->google->ViewValue = $this->google->CurrentValue;\n\t\t$this->google->ViewCustomAttributes = \"\";\n\n\t\t// instagram\n\t\t$this->instagram->ViewValue = $this->instagram->CurrentValue;\n\t\t$this->instagram->ViewCustomAttributes = \"\";\n\n\t\t// account_type\n\t\t$this->account_type->ViewValue = $this->account_type->CurrentValue;\n\t\t$this->account_type->ViewCustomAttributes = \"\";\n\n\t\t// logo\n\t\t$this->logo->ViewValue = $this->logo->CurrentValue;\n\t\t$this->logo->ViewCustomAttributes = \"\";\n\n\t\t// profilepic\n\t\t$this->profilepic->ViewValue = $this->profilepic->CurrentValue;\n\t\t$this->profilepic->ViewCustomAttributes = \"\";\n\n\t\t// mailref\n\t\t$this->mailref->ViewValue = $this->mailref->CurrentValue;\n\t\t$this->mailref->ViewCustomAttributes = \"\";\n\n\t\t// deleted\n\t\t$this->deleted->ViewValue = $this->deleted->CurrentValue;\n\t\t$this->deleted->ViewCustomAttributes = \"\";\n\n\t\t// deletefeedback\n\t\t$this->deletefeedback->ViewValue = $this->deletefeedback->CurrentValue;\n\t\t$this->deletefeedback->ViewCustomAttributes = \"\";\n\n\t\t// account_id\n\t\t$this->account_id->ViewValue = $this->account_id->CurrentValue;\n\t\t$this->account_id->ViewCustomAttributes = \"\";\n\n\t\t// start_date\n\t\t$this->start_date->ViewValue = $this->start_date->CurrentValue;\n\t\t$this->start_date->ViewValue = ew_FormatDateTime($this->start_date->ViewValue, 5);\n\t\t$this->start_date->ViewCustomAttributes = \"\";\n\n\t\t// end_date\n\t\t$this->end_date->ViewValue = $this->end_date->CurrentValue;\n\t\t$this->end_date->ViewValue = ew_FormatDateTime($this->end_date->ViewValue, 5);\n\t\t$this->end_date->ViewCustomAttributes = \"\";\n\n\t\t// year_moth\n\t\t$this->year_moth->ViewValue = $this->year_moth->CurrentValue;\n\t\t$this->year_moth->ViewCustomAttributes = \"\";\n\n\t\t// registerdate\n\t\t$this->registerdate->ViewValue = $this->registerdate->CurrentValue;\n\t\t$this->registerdate->ViewValue = ew_FormatDateTime($this->registerdate->ViewValue, 5);\n\t\t$this->registerdate->ViewCustomAttributes = \"\";\n\n\t\t// login_type\n\t\t$this->login_type->ViewValue = $this->login_type->CurrentValue;\n\t\t$this->login_type->ViewCustomAttributes = \"\";\n\n\t\t// accountstatus\n\t\t$this->accountstatus->ViewValue = $this->accountstatus->CurrentValue;\n\t\t$this->accountstatus->ViewCustomAttributes = \"\";\n\n\t\t// ispay\n\t\t$this->ispay->ViewValue = $this->ispay->CurrentValue;\n\t\t$this->ispay->ViewCustomAttributes = \"\";\n\n\t\t// profilelink\n\t\t$this->profilelink->ViewValue = $this->profilelink->CurrentValue;\n\t\t$this->profilelink->ViewCustomAttributes = \"\";\n\n\t\t// source\n\t\t$this->source->ViewValue = $this->source->CurrentValue;\n\t\t$this->source->ViewCustomAttributes = \"\";\n\n\t\t// agree\n\t\t$this->agree->ViewValue = $this->agree->CurrentValue;\n\t\t$this->agree->ViewCustomAttributes = \"\";\n\n\t\t// balance\n\t\t$this->balance->ViewValue = $this->balance->CurrentValue;\n\t\t$this->balance->ViewCustomAttributes = \"\";\n\n\t\t// job_title\n\t\t$this->job_title->ViewValue = $this->job_title->CurrentValue;\n\t\t$this->job_title->ViewCustomAttributes = \"\";\n\n\t\t// projects\n\t\t$this->projects->ViewValue = $this->projects->CurrentValue;\n\t\t$this->projects->ViewCustomAttributes = \"\";\n\n\t\t// opportunities\n\t\t$this->opportunities->ViewValue = $this->opportunities->CurrentValue;\n\t\t$this->opportunities->ViewCustomAttributes = \"\";\n\n\t\t// isconsaltant\n\t\t$this->isconsaltant->ViewCustomAttributes = \"\";\n\n\t\t// isagent\n\t\t$this->isagent->ViewCustomAttributes = \"\";\n\n\t\t// isinvestor\n\t\t$this->isinvestor->ViewCustomAttributes = \"\";\n\n\t\t// isbusinessman\n\t\t$this->isbusinessman->ViewCustomAttributes = \"\";\n\n\t\t// isprovider\n\t\t$this->isprovider->ViewCustomAttributes = \"\";\n\n\t\t// isproductowner\n\t\t$this->isproductowner->ViewCustomAttributes = \"\";\n\n\t\t// states\n\t\t$this->states->ViewValue = $this->states->CurrentValue;\n\t\t$this->states->ViewCustomAttributes = \"\";\n\n\t\t// cities\n\t\t$this->cities->ViewValue = $this->cities->CurrentValue;\n\t\t$this->cities->ViewCustomAttributes = \"\";\n\n\t\t// offers\n\t\t$this->offers->ViewValue = $this->offers->CurrentValue;\n\t\t$this->offers->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// companyname\n\t\t\t$this->companyname->LinkCustomAttributes = \"\";\n\t\t\t$this->companyname->HrefValue = \"\";\n\t\t\t$this->companyname->TooltipValue = \"\";\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->LinkCustomAttributes = \"\";\n\t\t\t$this->servicetime->HrefValue = \"\";\n\t\t\t$this->servicetime->TooltipValue = \"\";\n\n\t\t\t// country\n\t\t\t$this->country->LinkCustomAttributes = \"\";\n\t\t\t$this->country->HrefValue = \"\";\n\t\t\t$this->country->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// skype\n\t\t\t$this->skype->LinkCustomAttributes = \"\";\n\t\t\t$this->skype->HrefValue = \"\";\n\t\t\t$this->skype->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->LinkCustomAttributes = \"\";\n\t\t\t$this->linkedin->HrefValue = \"\";\n\t\t\t$this->linkedin->TooltipValue = \"\";\n\n\t\t\t// facebook\n\t\t\t$this->facebook->LinkCustomAttributes = \"\";\n\t\t\t$this->facebook->HrefValue = \"\";\n\t\t\t$this->facebook->TooltipValue = \"\";\n\n\t\t\t// twitter\n\t\t\t$this->twitter->LinkCustomAttributes = \"\";\n\t\t\t$this->twitter->HrefValue = \"\";\n\t\t\t$this->twitter->TooltipValue = \"\";\n\n\t\t\t// active_code\n\t\t\t$this->active_code->LinkCustomAttributes = \"\";\n\t\t\t$this->active_code->HrefValue = \"\";\n\t\t\t$this->active_code->TooltipValue = \"\";\n\n\t\t\t// identification\n\t\t\t$this->identification->LinkCustomAttributes = \"\";\n\t\t\t$this->identification->HrefValue = \"\";\n\t\t\t$this->identification->TooltipValue = \"\";\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->LinkCustomAttributes = \"\";\n\t\t\t$this->link_expired->HrefValue = \"\";\n\t\t\t$this->link_expired->TooltipValue = \"\";\n\n\t\t\t// isactive\n\t\t\t$this->isactive->LinkCustomAttributes = \"\";\n\t\t\t$this->isactive->HrefValue = \"\";\n\t\t\t$this->isactive->TooltipValue = \"\";\n\n\t\t\t// google\n\t\t\t$this->google->LinkCustomAttributes = \"\";\n\t\t\t$this->google->HrefValue = \"\";\n\t\t\t$this->google->TooltipValue = \"\";\n\n\t\t\t// instagram\n\t\t\t$this->instagram->LinkCustomAttributes = \"\";\n\t\t\t$this->instagram->HrefValue = \"\";\n\t\t\t$this->instagram->TooltipValue = \"\";\n\n\t\t\t// account_type\n\t\t\t$this->account_type->LinkCustomAttributes = \"\";\n\t\t\t$this->account_type->HrefValue = \"\";\n\t\t\t$this->account_type->TooltipValue = \"\";\n\n\t\t\t// logo\n\t\t\t$this->logo->LinkCustomAttributes = \"\";\n\t\t\t$this->logo->HrefValue = \"\";\n\t\t\t$this->logo->TooltipValue = \"\";\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->LinkCustomAttributes = \"\";\n\t\t\t$this->profilepic->HrefValue = \"\";\n\t\t\t$this->profilepic->TooltipValue = \"\";\n\n\t\t\t// mailref\n\t\t\t$this->mailref->LinkCustomAttributes = \"\";\n\t\t\t$this->mailref->HrefValue = \"\";\n\t\t\t$this->mailref->TooltipValue = \"\";\n\n\t\t\t// deleted\n\t\t\t$this->deleted->LinkCustomAttributes = \"\";\n\t\t\t$this->deleted->HrefValue = \"\";\n\t\t\t$this->deleted->TooltipValue = \"\";\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->LinkCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->HrefValue = \"\";\n\t\t\t$this->deletefeedback->TooltipValue = \"\";\n\n\t\t\t// account_id\n\t\t\t$this->account_id->LinkCustomAttributes = \"\";\n\t\t\t$this->account_id->HrefValue = \"\";\n\t\t\t$this->account_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$this->start_date->LinkCustomAttributes = \"\";\n\t\t\t$this->start_date->HrefValue = \"\";\n\t\t\t$this->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$this->end_date->LinkCustomAttributes = \"\";\n\t\t\t$this->end_date->HrefValue = \"\";\n\t\t\t$this->end_date->TooltipValue = \"\";\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->LinkCustomAttributes = \"\";\n\t\t\t$this->year_moth->HrefValue = \"\";\n\t\t\t$this->year_moth->TooltipValue = \"\";\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->LinkCustomAttributes = \"\";\n\t\t\t$this->registerdate->HrefValue = \"\";\n\t\t\t$this->registerdate->TooltipValue = \"\";\n\n\t\t\t// login_type\n\t\t\t$this->login_type->LinkCustomAttributes = \"\";\n\t\t\t$this->login_type->HrefValue = \"\";\n\t\t\t$this->login_type->TooltipValue = \"\";\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->LinkCustomAttributes = \"\";\n\t\t\t$this->accountstatus->HrefValue = \"\";\n\t\t\t$this->accountstatus->TooltipValue = \"\";\n\n\t\t\t// ispay\n\t\t\t$this->ispay->LinkCustomAttributes = \"\";\n\t\t\t$this->ispay->HrefValue = \"\";\n\t\t\t$this->ispay->TooltipValue = \"\";\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->LinkCustomAttributes = \"\";\n\t\t\t$this->profilelink->HrefValue = \"\";\n\t\t\t$this->profilelink->TooltipValue = \"\";\n\n\t\t\t// source\n\t\t\t$this->source->LinkCustomAttributes = \"\";\n\t\t\t$this->source->HrefValue = \"\";\n\t\t\t$this->source->TooltipValue = \"\";\n\n\t\t\t// agree\n\t\t\t$this->agree->LinkCustomAttributes = \"\";\n\t\t\t$this->agree->HrefValue = \"\";\n\t\t\t$this->agree->TooltipValue = \"\";\n\n\t\t\t// balance\n\t\t\t$this->balance->LinkCustomAttributes = \"\";\n\t\t\t$this->balance->HrefValue = \"\";\n\t\t\t$this->balance->TooltipValue = \"\";\n\n\t\t\t// job_title\n\t\t\t$this->job_title->LinkCustomAttributes = \"\";\n\t\t\t$this->job_title->HrefValue = \"\";\n\t\t\t$this->job_title->TooltipValue = \"\";\n\n\t\t\t// projects\n\t\t\t$this->projects->LinkCustomAttributes = \"\";\n\t\t\t$this->projects->HrefValue = \"\";\n\t\t\t$this->projects->TooltipValue = \"\";\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->LinkCustomAttributes = \"\";\n\t\t\t$this->opportunities->HrefValue = \"\";\n\t\t\t$this->opportunities->TooltipValue = \"\";\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->LinkCustomAttributes = \"\";\n\t\t\t$this->isconsaltant->HrefValue = \"\";\n\t\t\t$this->isconsaltant->TooltipValue = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->LinkCustomAttributes = \"\";\n\t\t\t$this->isagent->HrefValue = \"\";\n\t\t\t$this->isagent->TooltipValue = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->LinkCustomAttributes = \"\";\n\t\t\t$this->isinvestor->HrefValue = \"\";\n\t\t\t$this->isinvestor->TooltipValue = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->LinkCustomAttributes = \"\";\n\t\t\t$this->isbusinessman->HrefValue = \"\";\n\t\t\t$this->isbusinessman->TooltipValue = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->LinkCustomAttributes = \"\";\n\t\t\t$this->isprovider->HrefValue = \"\";\n\t\t\t$this->isprovider->TooltipValue = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->LinkCustomAttributes = \"\";\n\t\t\t$this->isproductowner->HrefValue = \"\";\n\t\t\t$this->isproductowner->TooltipValue = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->LinkCustomAttributes = \"\";\n\t\t\t$this->states->HrefValue = \"\";\n\t\t\t$this->states->TooltipValue = \"\";\n\n\t\t\t// cities\n\t\t\t$this->cities->LinkCustomAttributes = \"\";\n\t\t\t$this->cities->HrefValue = \"\";\n\t\t\t$this->cities->TooltipValue = \"\";\n\n\t\t\t// offers\n\t\t\t$this->offers->LinkCustomAttributes = \"\";\n\t\t\t$this->offers->HrefValue = \"\";\n\t\t\t$this->offers->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// id\n\t\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id->EditCustomAttributes = \"\";\n\t\t\t$this->id->EditValue = ew_HtmlEncode($this->id->AdvancedSearch->SearchValue);\n\t\t\t$this->id->PlaceHolder = ew_RemoveHtml($this->id->FldCaption());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldCaption());\n\n\t\t\t// companyname\n\t\t\t$this->companyname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->companyname->EditCustomAttributes = \"\";\n\t\t\t$this->companyname->EditValue = ew_HtmlEncode($this->companyname->AdvancedSearch->SearchValue);\n\t\t\t$this->companyname->PlaceHolder = ew_RemoveHtml($this->companyname->FldCaption());\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->servicetime->EditCustomAttributes = \"\";\n\t\t\t$this->servicetime->EditValue = ew_HtmlEncode($this->servicetime->AdvancedSearch->SearchValue);\n\t\t\t$this->servicetime->PlaceHolder = ew_RemoveHtml($this->servicetime->FldCaption());\n\n\t\t\t// country\n\t\t\t$this->country->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->country->EditCustomAttributes = \"\";\n\t\t\t$this->country->EditValue = ew_HtmlEncode($this->country->AdvancedSearch->SearchValue);\n\t\t\t$this->country->PlaceHolder = ew_RemoveHtml($this->country->FldCaption());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldCaption());\n\n\t\t\t// skype\n\t\t\t$this->skype->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->skype->EditCustomAttributes = \"\";\n\t\t\t$this->skype->EditValue = ew_HtmlEncode($this->skype->AdvancedSearch->SearchValue);\n\t\t\t$this->skype->PlaceHolder = ew_RemoveHtml($this->skype->FldCaption());\n\n\t\t\t// website\n\t\t\t$this->website->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->website->EditCustomAttributes = \"\";\n\t\t\t$this->website->EditValue = ew_HtmlEncode($this->website->AdvancedSearch->SearchValue);\n\t\t\t$this->website->PlaceHolder = ew_RemoveHtml($this->website->FldCaption());\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->linkedin->EditCustomAttributes = \"\";\n\t\t\t$this->linkedin->EditValue = ew_HtmlEncode($this->linkedin->AdvancedSearch->SearchValue);\n\t\t\t$this->linkedin->PlaceHolder = ew_RemoveHtml($this->linkedin->FldCaption());\n\n\t\t\t// facebook\n\t\t\t$this->facebook->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->facebook->EditCustomAttributes = \"\";\n\t\t\t$this->facebook->EditValue = ew_HtmlEncode($this->facebook->AdvancedSearch->SearchValue);\n\t\t\t$this->facebook->PlaceHolder = ew_RemoveHtml($this->facebook->FldCaption());\n\n\t\t\t// twitter\n\t\t\t$this->twitter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->twitter->EditCustomAttributes = \"\";\n\t\t\t$this->twitter->EditValue = ew_HtmlEncode($this->twitter->AdvancedSearch->SearchValue);\n\t\t\t$this->twitter->PlaceHolder = ew_RemoveHtml($this->twitter->FldCaption());\n\n\t\t\t// active_code\n\t\t\t$this->active_code->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->active_code->EditCustomAttributes = \"\";\n\t\t\t$this->active_code->EditValue = ew_HtmlEncode($this->active_code->AdvancedSearch->SearchValue);\n\t\t\t$this->active_code->PlaceHolder = ew_RemoveHtml($this->active_code->FldCaption());\n\n\t\t\t// identification\n\t\t\t$this->identification->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->identification->EditCustomAttributes = \"\";\n\t\t\t$this->identification->EditValue = ew_HtmlEncode($this->identification->AdvancedSearch->SearchValue);\n\t\t\t$this->identification->PlaceHolder = ew_RemoveHtml($this->identification->FldCaption());\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->link_expired->EditCustomAttributes = \"\";\n\t\t\t$this->link_expired->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->link_expired->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->link_expired->PlaceHolder = ew_RemoveHtml($this->link_expired->FldCaption());\n\n\t\t\t// isactive\n\t\t\t$this->isactive->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->isactive->EditCustomAttributes = \"\";\n\t\t\t$this->isactive->EditValue = ew_HtmlEncode($this->isactive->AdvancedSearch->SearchValue);\n\t\t\t$this->isactive->PlaceHolder = ew_RemoveHtml($this->isactive->FldCaption());\n\n\t\t\t// google\n\t\t\t$this->google->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->google->EditCustomAttributes = \"\";\n\t\t\t$this->google->EditValue = ew_HtmlEncode($this->google->AdvancedSearch->SearchValue);\n\t\t\t$this->google->PlaceHolder = ew_RemoveHtml($this->google->FldCaption());\n\n\t\t\t// instagram\n\t\t\t$this->instagram->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->instagram->EditCustomAttributes = \"\";\n\t\t\t$this->instagram->EditValue = ew_HtmlEncode($this->instagram->AdvancedSearch->SearchValue);\n\t\t\t$this->instagram->PlaceHolder = ew_RemoveHtml($this->instagram->FldCaption());\n\n\t\t\t// account_type\n\t\t\t$this->account_type->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->account_type->EditCustomAttributes = \"\";\n\t\t\t$this->account_type->EditValue = ew_HtmlEncode($this->account_type->AdvancedSearch->SearchValue);\n\t\t\t$this->account_type->PlaceHolder = ew_RemoveHtml($this->account_type->FldCaption());\n\n\t\t\t// logo\n\t\t\t$this->logo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->logo->EditCustomAttributes = \"\";\n\t\t\t$this->logo->EditValue = ew_HtmlEncode($this->logo->AdvancedSearch->SearchValue);\n\t\t\t$this->logo->PlaceHolder = ew_RemoveHtml($this->logo->FldCaption());\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->profilepic->EditCustomAttributes = \"\";\n\t\t\t$this->profilepic->EditValue = ew_HtmlEncode($this->profilepic->AdvancedSearch->SearchValue);\n\t\t\t$this->profilepic->PlaceHolder = ew_RemoveHtml($this->profilepic->FldCaption());\n\n\t\t\t// mailref\n\t\t\t$this->mailref->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->mailref->EditCustomAttributes = \"\";\n\t\t\t$this->mailref->EditValue = ew_HtmlEncode($this->mailref->AdvancedSearch->SearchValue);\n\t\t\t$this->mailref->PlaceHolder = ew_RemoveHtml($this->mailref->FldCaption());\n\n\t\t\t// deleted\n\t\t\t$this->deleted->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->deleted->EditCustomAttributes = \"\";\n\t\t\t$this->deleted->EditValue = ew_HtmlEncode($this->deleted->AdvancedSearch->SearchValue);\n\t\t\t$this->deleted->PlaceHolder = ew_RemoveHtml($this->deleted->FldCaption());\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->deletefeedback->EditCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->EditValue = ew_HtmlEncode($this->deletefeedback->AdvancedSearch->SearchValue);\n\t\t\t$this->deletefeedback->PlaceHolder = ew_RemoveHtml($this->deletefeedback->FldCaption());\n\n\t\t\t// account_id\n\t\t\t$this->account_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->account_id->EditCustomAttributes = \"\";\n\t\t\t$this->account_id->EditValue = ew_HtmlEncode($this->account_id->AdvancedSearch->SearchValue);\n\t\t\t$this->account_id->PlaceHolder = ew_RemoveHtml($this->account_id->FldCaption());\n\n\t\t\t// start_date\n\t\t\t$this->start_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->start_date->EditCustomAttributes = \"\";\n\t\t\t$this->start_date->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->start_date->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->start_date->PlaceHolder = ew_RemoveHtml($this->start_date->FldCaption());\n\n\t\t\t// end_date\n\t\t\t$this->end_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->end_date->EditCustomAttributes = \"\";\n\t\t\t$this->end_date->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->end_date->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->end_date->PlaceHolder = ew_RemoveHtml($this->end_date->FldCaption());\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->year_moth->EditCustomAttributes = \"\";\n\t\t\t$this->year_moth->EditValue = ew_HtmlEncode($this->year_moth->AdvancedSearch->SearchValue);\n\t\t\t$this->year_moth->PlaceHolder = ew_RemoveHtml($this->year_moth->FldCaption());\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->registerdate->EditCustomAttributes = \"\";\n\t\t\t$this->registerdate->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->registerdate->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->registerdate->PlaceHolder = ew_RemoveHtml($this->registerdate->FldCaption());\n\t\t\t$this->registerdate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->registerdate->EditCustomAttributes = \"\";\n\t\t\t$this->registerdate->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->registerdate->AdvancedSearch->SearchValue2, 5), 5));\n\t\t\t$this->registerdate->PlaceHolder = ew_RemoveHtml($this->registerdate->FldCaption());\n\n\t\t\t// login_type\n\t\t\t$this->login_type->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->login_type->EditCustomAttributes = \"\";\n\t\t\t$this->login_type->EditValue = ew_HtmlEncode($this->login_type->AdvancedSearch->SearchValue);\n\t\t\t$this->login_type->PlaceHolder = ew_RemoveHtml($this->login_type->FldCaption());\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->accountstatus->EditCustomAttributes = \"\";\n\t\t\t$this->accountstatus->EditValue = ew_HtmlEncode($this->accountstatus->AdvancedSearch->SearchValue);\n\t\t\t$this->accountstatus->PlaceHolder = ew_RemoveHtml($this->accountstatus->FldCaption());\n\n\t\t\t// ispay\n\t\t\t$this->ispay->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ispay->EditCustomAttributes = \"\";\n\t\t\t$this->ispay->EditValue = ew_HtmlEncode($this->ispay->AdvancedSearch->SearchValue);\n\t\t\t$this->ispay->PlaceHolder = ew_RemoveHtml($this->ispay->FldCaption());\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->profilelink->EditCustomAttributes = \"\";\n\t\t\t$this->profilelink->EditValue = ew_HtmlEncode($this->profilelink->AdvancedSearch->SearchValue);\n\t\t\t$this->profilelink->PlaceHolder = ew_RemoveHtml($this->profilelink->FldCaption());\n\n\t\t\t// source\n\t\t\t$this->source->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->source->EditCustomAttributes = \"\";\n\t\t\t$this->source->EditValue = ew_HtmlEncode($this->source->AdvancedSearch->SearchValue);\n\t\t\t$this->source->PlaceHolder = ew_RemoveHtml($this->source->FldCaption());\n\n\t\t\t// agree\n\t\t\t$this->agree->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->agree->EditCustomAttributes = \"\";\n\t\t\t$this->agree->EditValue = ew_HtmlEncode($this->agree->AdvancedSearch->SearchValue);\n\t\t\t$this->agree->PlaceHolder = ew_RemoveHtml($this->agree->FldCaption());\n\n\t\t\t// balance\n\t\t\t$this->balance->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->balance->EditCustomAttributes = \"\";\n\t\t\t$this->balance->EditValue = ew_HtmlEncode($this->balance->AdvancedSearch->SearchValue);\n\t\t\t$this->balance->PlaceHolder = ew_RemoveHtml($this->balance->FldCaption());\n\n\t\t\t// job_title\n\t\t\t$this->job_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->job_title->EditCustomAttributes = \"\";\n\t\t\t$this->job_title->EditValue = ew_HtmlEncode($this->job_title->AdvancedSearch->SearchValue);\n\t\t\t$this->job_title->PlaceHolder = ew_RemoveHtml($this->job_title->FldCaption());\n\n\t\t\t// projects\n\t\t\t$this->projects->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->projects->EditCustomAttributes = \"\";\n\t\t\t$this->projects->EditValue = ew_HtmlEncode($this->projects->AdvancedSearch->SearchValue);\n\t\t\t$this->projects->PlaceHolder = ew_RemoveHtml($this->projects->FldCaption());\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->opportunities->EditCustomAttributes = \"\";\n\t\t\t$this->opportunities->EditValue = ew_HtmlEncode($this->opportunities->AdvancedSearch->SearchValue);\n\t\t\t$this->opportunities->PlaceHolder = ew_RemoveHtml($this->opportunities->FldCaption());\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->EditCustomAttributes = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->EditCustomAttributes = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->EditCustomAttributes = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->EditCustomAttributes = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->EditCustomAttributes = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->EditCustomAttributes = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->states->EditCustomAttributes = \"\";\n\t\t\t$this->states->EditValue = ew_HtmlEncode($this->states->AdvancedSearch->SearchValue);\n\t\t\t$this->states->PlaceHolder = ew_RemoveHtml($this->states->FldCaption());\n\n\t\t\t// cities\n\t\t\t$this->cities->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cities->EditCustomAttributes = \"\";\n\t\t\t$this->cities->EditValue = ew_HtmlEncode($this->cities->AdvancedSearch->SearchValue);\n\t\t\t$this->cities->PlaceHolder = ew_RemoveHtml($this->cities->FldCaption());\n\n\t\t\t// offers\n\t\t\t$this->offers->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->offers->EditCustomAttributes = \"\";\n\t\t\t$this->offers->EditValue = ew_HtmlEncode($this->offers->AdvancedSearch->SearchValue);\n\t\t\t$this->offers->PlaceHolder = ew_RemoveHtml($this->offers->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $financial_year;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$financial_year->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// financial_year_id\n\n\t\t$financial_year->financial_year_id->CellCssStyle = \"\"; $financial_year->financial_year_id->CellCssClass = \"\";\n\t\t$financial_year->financial_year_id->CellAttrs = array(); $financial_year->financial_year_id->ViewAttrs = array(); $financial_year->financial_year_id->EditAttrs = array();\n\n\t\t// year_name\n\t\t$financial_year->year_name->CellCssStyle = \"\"; $financial_year->year_name->CellCssClass = \"\";\n\t\t$financial_year->year_name->CellAttrs = array(); $financial_year->year_name->ViewAttrs = array(); $financial_year->year_name->EditAttrs = array();\n\n\t\t// date_start\n\t\t$financial_year->date_start->CellCssStyle = \"\"; $financial_year->date_start->CellCssClass = \"\";\n\t\t$financial_year->date_start->CellAttrs = array(); $financial_year->date_start->ViewAttrs = array(); $financial_year->date_start->EditAttrs = array();\n\n\t\t// date_end\n\t\t$financial_year->date_end->CellCssStyle = \"\"; $financial_year->date_end->CellCssClass = \"\";\n\t\t$financial_year->date_end->CellAttrs = array(); $financial_year->date_end->ViewAttrs = array(); $financial_year->date_end->EditAttrs = array();\n\t\tif ($financial_year->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->ViewValue = $financial_year->financial_year_id->CurrentValue;\n\t\t\t$financial_year->financial_year_id->CssStyle = \"\";\n\t\t\t$financial_year->financial_year_id->CssClass = \"\";\n\t\t\t$financial_year->financial_year_id->ViewCustomAttributes = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->ViewValue = $financial_year->year_name->CurrentValue;\n\t\t\t$financial_year->year_name->CssStyle = \"\";\n\t\t\t$financial_year->year_name->CssClass = \"\";\n\t\t\t$financial_year->year_name->ViewCustomAttributes = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->ViewValue = $financial_year->date_start->CurrentValue;\n\t\t\t$financial_year->date_start->ViewValue = ew_FormatDateTime($financial_year->date_start->ViewValue, 7);\n\t\t\t$financial_year->date_start->CssStyle = \"\";\n\t\t\t$financial_year->date_start->CssClass = \"\";\n\t\t\t$financial_year->date_start->ViewCustomAttributes = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->ViewValue = $financial_year->date_end->CurrentValue;\n\t\t\t$financial_year->date_end->ViewValue = ew_FormatDateTime($financial_year->date_end->ViewValue, 7);\n\t\t\t$financial_year->date_end->CssStyle = \"\";\n\t\t\t$financial_year->date_end->CssClass = \"\";\n\t\t\t$financial_year->date_end->ViewCustomAttributes = \"\";\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->HrefValue = \"\";\n\t\t\t$financial_year->financial_year_id->TooltipValue = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->HrefValue = \"\";\n\t\t\t$financial_year->year_name->TooltipValue = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->HrefValue = \"\";\n\t\t\t$financial_year->date_start->TooltipValue = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->HrefValue = \"\";\n\t\t\t$financial_year->date_end->TooltipValue = \"\";\n\t\t} elseif ($financial_year->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// financial_year_id\n\t\t\t$financial_year->financial_year_id->EditCustomAttributes = \"\";\n\t\t\t$financial_year->financial_year_id->EditValue = $financial_year->financial_year_id->CurrentValue;\n\t\t\t$financial_year->financial_year_id->CssStyle = \"\";\n\t\t\t$financial_year->financial_year_id->CssClass = \"\";\n\t\t\t$financial_year->financial_year_id->ViewCustomAttributes = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->EditCustomAttributes = \"\";\n\t\t\t$financial_year->year_name->EditValue = ew_HtmlEncode($financial_year->year_name->CurrentValue);\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->EditCustomAttributes = \"\";\n\t\t\t$financial_year->date_start->EditValue = ew_HtmlEncode(ew_FormatDateTime($financial_year->date_start->CurrentValue, 7));\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->EditCustomAttributes = \"\";\n\t\t\t$financial_year->date_end->EditValue = ew_HtmlEncode(ew_FormatDateTime($financial_year->date_end->CurrentValue, 7));\n\n\t\t\t// Edit refer script\n\t\t\t// financial_year_id\n\n\t\t\t$financial_year->financial_year_id->HrefValue = \"\";\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->HrefValue = \"\";\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->HrefValue = \"\";\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($financial_year->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$financial_year->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// name\n\t\t// email\n\t\t// password\n\n\t\t$this->password->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// companyname\n\t\t// servicetime\n\t\t// country\n\t\t// phone\n\t\t// skype\n\t\t// website\n\t\t// linkedin\n\t\t// facebook\n\t\t// twitter\n\t\t// active_code\n\t\t// identification\n\t\t// link_expired\n\t\t// isactive\n\t\t// pio\n\t\t// google\n\t\t// instagram\n\t\t// account_type\n\t\t// logo\n\t\t// profilepic\n\t\t// mailref\n\t\t// deleted\n\t\t// deletefeedback\n\t\t// account_id\n\t\t// start_date\n\t\t// end_date\n\t\t// year_moth\n\t\t// registerdate\n\t\t// login_type\n\t\t// accountstatus\n\t\t// ispay\n\t\t// profilelink\n\t\t// source\n\t\t// agree\n\t\t// balance\n\t\t// job_title\n\t\t// projects\n\t\t// opportunities\n\t\t// isconsaltant\n\t\t// isagent\n\t\t// isinvestor\n\t\t// isbusinessman\n\t\t// isprovider\n\t\t// isproductowner\n\t\t// states\n\t\t// cities\n\t\t// offers\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// companyname\n\t\t$this->companyname->ViewValue = $this->companyname->CurrentValue;\n\t\t$this->companyname->ViewCustomAttributes = \"\";\n\n\t\t// servicetime\n\t\t$this->servicetime->ViewValue = $this->servicetime->CurrentValue;\n\t\t$this->servicetime->ViewCustomAttributes = \"\";\n\n\t\t// country\n\t\t$this->country->ViewValue = $this->country->CurrentValue;\n\t\t$this->country->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// skype\n\t\t$this->skype->ViewValue = $this->skype->CurrentValue;\n\t\t$this->skype->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// linkedin\n\t\t$this->linkedin->ViewValue = $this->linkedin->CurrentValue;\n\t\t$this->linkedin->ViewCustomAttributes = \"\";\n\n\t\t// facebook\n\t\t$this->facebook->ViewValue = $this->facebook->CurrentValue;\n\t\t$this->facebook->ViewCustomAttributes = \"\";\n\n\t\t// twitter\n\t\t$this->twitter->ViewValue = $this->twitter->CurrentValue;\n\t\t$this->twitter->ViewCustomAttributes = \"\";\n\n\t\t// active_code\n\t\t$this->active_code->ViewValue = $this->active_code->CurrentValue;\n\t\t$this->active_code->ViewCustomAttributes = \"\";\n\n\t\t// identification\n\t\t$this->identification->ViewValue = $this->identification->CurrentValue;\n\t\t$this->identification->ViewCustomAttributes = \"\";\n\n\t\t// link_expired\n\t\t$this->link_expired->ViewValue = $this->link_expired->CurrentValue;\n\t\t$this->link_expired->ViewValue = ew_FormatDateTime($this->link_expired->ViewValue, 5);\n\t\t$this->link_expired->ViewCustomAttributes = \"\";\n\n\t\t// isactive\n\t\t$this->isactive->ViewValue = $this->isactive->CurrentValue;\n\t\t$this->isactive->ViewCustomAttributes = \"\";\n\n\t\t// google\n\t\t$this->google->ViewValue = $this->google->CurrentValue;\n\t\t$this->google->ViewCustomAttributes = \"\";\n\n\t\t// instagram\n\t\t$this->instagram->ViewValue = $this->instagram->CurrentValue;\n\t\t$this->instagram->ViewCustomAttributes = \"\";\n\n\t\t// account_type\n\t\t$this->account_type->ViewValue = $this->account_type->CurrentValue;\n\t\t$this->account_type->ViewCustomAttributes = \"\";\n\n\t\t// logo\n\t\t$this->logo->ViewValue = $this->logo->CurrentValue;\n\t\t$this->logo->ViewCustomAttributes = \"\";\n\n\t\t// profilepic\n\t\t$this->profilepic->ViewValue = $this->profilepic->CurrentValue;\n\t\t$this->profilepic->ViewCustomAttributes = \"\";\n\n\t\t// mailref\n\t\t$this->mailref->ViewValue = $this->mailref->CurrentValue;\n\t\t$this->mailref->ViewCustomAttributes = \"\";\n\n\t\t// deleted\n\t\t$this->deleted->ViewValue = $this->deleted->CurrentValue;\n\t\t$this->deleted->ViewCustomAttributes = \"\";\n\n\t\t// deletefeedback\n\t\t$this->deletefeedback->ViewValue = $this->deletefeedback->CurrentValue;\n\t\t$this->deletefeedback->ViewCustomAttributes = \"\";\n\n\t\t// account_id\n\t\t$this->account_id->ViewValue = $this->account_id->CurrentValue;\n\t\t$this->account_id->ViewCustomAttributes = \"\";\n\n\t\t// start_date\n\t\t$this->start_date->ViewValue = $this->start_date->CurrentValue;\n\t\t$this->start_date->ViewValue = ew_FormatDateTime($this->start_date->ViewValue, 5);\n\t\t$this->start_date->ViewCustomAttributes = \"\";\n\n\t\t// end_date\n\t\t$this->end_date->ViewValue = $this->end_date->CurrentValue;\n\t\t$this->end_date->ViewValue = ew_FormatDateTime($this->end_date->ViewValue, 5);\n\t\t$this->end_date->ViewCustomAttributes = \"\";\n\n\t\t// year_moth\n\t\t$this->year_moth->ViewValue = $this->year_moth->CurrentValue;\n\t\t$this->year_moth->ViewCustomAttributes = \"\";\n\n\t\t// registerdate\n\t\t$this->registerdate->ViewValue = $this->registerdate->CurrentValue;\n\t\t$this->registerdate->ViewValue = ew_FormatDateTime($this->registerdate->ViewValue, 5);\n\t\t$this->registerdate->ViewCustomAttributes = \"\";\n\n\t\t// login_type\n\t\t$this->login_type->ViewValue = $this->login_type->CurrentValue;\n\t\t$this->login_type->ViewCustomAttributes = \"\";\n\n\t\t// accountstatus\n\t\t$this->accountstatus->ViewValue = $this->accountstatus->CurrentValue;\n\t\t$this->accountstatus->ViewCustomAttributes = \"\";\n\n\t\t// ispay\n\t\t$this->ispay->ViewValue = $this->ispay->CurrentValue;\n\t\t$this->ispay->ViewCustomAttributes = \"\";\n\n\t\t// profilelink\n\t\t$this->profilelink->ViewValue = $this->profilelink->CurrentValue;\n\t\t$this->profilelink->ViewCustomAttributes = \"\";\n\n\t\t// source\n\t\t$this->source->ViewValue = $this->source->CurrentValue;\n\t\t$this->source->ViewCustomAttributes = \"\";\n\n\t\t// agree\n\t\t$this->agree->ViewValue = $this->agree->CurrentValue;\n\t\t$this->agree->ViewCustomAttributes = \"\";\n\n\t\t// balance\n\t\t$this->balance->ViewValue = $this->balance->CurrentValue;\n\t\t$this->balance->ViewCustomAttributes = \"\";\n\n\t\t// job_title\n\t\t$this->job_title->ViewValue = $this->job_title->CurrentValue;\n\t\t$this->job_title->ViewCustomAttributes = \"\";\n\n\t\t// projects\n\t\t$this->projects->ViewValue = $this->projects->CurrentValue;\n\t\t$this->projects->ViewCustomAttributes = \"\";\n\n\t\t// opportunities\n\t\t$this->opportunities->ViewValue = $this->opportunities->CurrentValue;\n\t\t$this->opportunities->ViewCustomAttributes = \"\";\n\n\t\t// isconsaltant\n\t\t$this->isconsaltant->ViewCustomAttributes = \"\";\n\n\t\t// isagent\n\t\t$this->isagent->ViewCustomAttributes = \"\";\n\n\t\t// isinvestor\n\t\t$this->isinvestor->ViewCustomAttributes = \"\";\n\n\t\t// isbusinessman\n\t\t$this->isbusinessman->ViewCustomAttributes = \"\";\n\n\t\t// isprovider\n\t\t$this->isprovider->ViewCustomAttributes = \"\";\n\n\t\t// isproductowner\n\t\t$this->isproductowner->ViewCustomAttributes = \"\";\n\n\t\t// states\n\t\t$this->states->ViewValue = $this->states->CurrentValue;\n\t\t$this->states->ViewCustomAttributes = \"\";\n\n\t\t// cities\n\t\t$this->cities->ViewValue = $this->cities->CurrentValue;\n\t\t$this->cities->ViewCustomAttributes = \"\";\n\n\t\t// offers\n\t\t$this->offers->ViewValue = $this->offers->CurrentValue;\n\t\t$this->offers->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// companyname\n\t\t\t$this->companyname->LinkCustomAttributes = \"\";\n\t\t\t$this->companyname->HrefValue = \"\";\n\t\t\t$this->companyname->TooltipValue = \"\";\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->LinkCustomAttributes = \"\";\n\t\t\t$this->servicetime->HrefValue = \"\";\n\t\t\t$this->servicetime->TooltipValue = \"\";\n\n\t\t\t// country\n\t\t\t$this->country->LinkCustomAttributes = \"\";\n\t\t\t$this->country->HrefValue = \"\";\n\t\t\t$this->country->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// skype\n\t\t\t$this->skype->LinkCustomAttributes = \"\";\n\t\t\t$this->skype->HrefValue = \"\";\n\t\t\t$this->skype->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->LinkCustomAttributes = \"\";\n\t\t\t$this->linkedin->HrefValue = \"\";\n\t\t\t$this->linkedin->TooltipValue = \"\";\n\n\t\t\t// facebook\n\t\t\t$this->facebook->LinkCustomAttributes = \"\";\n\t\t\t$this->facebook->HrefValue = \"\";\n\t\t\t$this->facebook->TooltipValue = \"\";\n\n\t\t\t// twitter\n\t\t\t$this->twitter->LinkCustomAttributes = \"\";\n\t\t\t$this->twitter->HrefValue = \"\";\n\t\t\t$this->twitter->TooltipValue = \"\";\n\n\t\t\t// active_code\n\t\t\t$this->active_code->LinkCustomAttributes = \"\";\n\t\t\t$this->active_code->HrefValue = \"\";\n\t\t\t$this->active_code->TooltipValue = \"\";\n\n\t\t\t// identification\n\t\t\t$this->identification->LinkCustomAttributes = \"\";\n\t\t\t$this->identification->HrefValue = \"\";\n\t\t\t$this->identification->TooltipValue = \"\";\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->LinkCustomAttributes = \"\";\n\t\t\t$this->link_expired->HrefValue = \"\";\n\t\t\t$this->link_expired->TooltipValue = \"\";\n\n\t\t\t// isactive\n\t\t\t$this->isactive->LinkCustomAttributes = \"\";\n\t\t\t$this->isactive->HrefValue = \"\";\n\t\t\t$this->isactive->TooltipValue = \"\";\n\n\t\t\t// google\n\t\t\t$this->google->LinkCustomAttributes = \"\";\n\t\t\t$this->google->HrefValue = \"\";\n\t\t\t$this->google->TooltipValue = \"\";\n\n\t\t\t// instagram\n\t\t\t$this->instagram->LinkCustomAttributes = \"\";\n\t\t\t$this->instagram->HrefValue = \"\";\n\t\t\t$this->instagram->TooltipValue = \"\";\n\n\t\t\t// account_type\n\t\t\t$this->account_type->LinkCustomAttributes = \"\";\n\t\t\t$this->account_type->HrefValue = \"\";\n\t\t\t$this->account_type->TooltipValue = \"\";\n\n\t\t\t// logo\n\t\t\t$this->logo->LinkCustomAttributes = \"\";\n\t\t\t$this->logo->HrefValue = \"\";\n\t\t\t$this->logo->TooltipValue = \"\";\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->LinkCustomAttributes = \"\";\n\t\t\t$this->profilepic->HrefValue = \"\";\n\t\t\t$this->profilepic->TooltipValue = \"\";\n\n\t\t\t// mailref\n\t\t\t$this->mailref->LinkCustomAttributes = \"\";\n\t\t\t$this->mailref->HrefValue = \"\";\n\t\t\t$this->mailref->TooltipValue = \"\";\n\n\t\t\t// deleted\n\t\t\t$this->deleted->LinkCustomAttributes = \"\";\n\t\t\t$this->deleted->HrefValue = \"\";\n\t\t\t$this->deleted->TooltipValue = \"\";\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->LinkCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->HrefValue = \"\";\n\t\t\t$this->deletefeedback->TooltipValue = \"\";\n\n\t\t\t// account_id\n\t\t\t$this->account_id->LinkCustomAttributes = \"\";\n\t\t\t$this->account_id->HrefValue = \"\";\n\t\t\t$this->account_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$this->start_date->LinkCustomAttributes = \"\";\n\t\t\t$this->start_date->HrefValue = \"\";\n\t\t\t$this->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$this->end_date->LinkCustomAttributes = \"\";\n\t\t\t$this->end_date->HrefValue = \"\";\n\t\t\t$this->end_date->TooltipValue = \"\";\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->LinkCustomAttributes = \"\";\n\t\t\t$this->year_moth->HrefValue = \"\";\n\t\t\t$this->year_moth->TooltipValue = \"\";\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->LinkCustomAttributes = \"\";\n\t\t\t$this->registerdate->HrefValue = \"\";\n\t\t\t$this->registerdate->TooltipValue = \"\";\n\n\t\t\t// login_type\n\t\t\t$this->login_type->LinkCustomAttributes = \"\";\n\t\t\t$this->login_type->HrefValue = \"\";\n\t\t\t$this->login_type->TooltipValue = \"\";\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->LinkCustomAttributes = \"\";\n\t\t\t$this->accountstatus->HrefValue = \"\";\n\t\t\t$this->accountstatus->TooltipValue = \"\";\n\n\t\t\t// ispay\n\t\t\t$this->ispay->LinkCustomAttributes = \"\";\n\t\t\t$this->ispay->HrefValue = \"\";\n\t\t\t$this->ispay->TooltipValue = \"\";\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->LinkCustomAttributes = \"\";\n\t\t\t$this->profilelink->HrefValue = \"\";\n\t\t\t$this->profilelink->TooltipValue = \"\";\n\n\t\t\t// source\n\t\t\t$this->source->LinkCustomAttributes = \"\";\n\t\t\t$this->source->HrefValue = \"\";\n\t\t\t$this->source->TooltipValue = \"\";\n\n\t\t\t// agree\n\t\t\t$this->agree->LinkCustomAttributes = \"\";\n\t\t\t$this->agree->HrefValue = \"\";\n\t\t\t$this->agree->TooltipValue = \"\";\n\n\t\t\t// balance\n\t\t\t$this->balance->LinkCustomAttributes = \"\";\n\t\t\t$this->balance->HrefValue = \"\";\n\t\t\t$this->balance->TooltipValue = \"\";\n\n\t\t\t// job_title\n\t\t\t$this->job_title->LinkCustomAttributes = \"\";\n\t\t\t$this->job_title->HrefValue = \"\";\n\t\t\t$this->job_title->TooltipValue = \"\";\n\n\t\t\t// projects\n\t\t\t$this->projects->LinkCustomAttributes = \"\";\n\t\t\t$this->projects->HrefValue = \"\";\n\t\t\t$this->projects->TooltipValue = \"\";\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->LinkCustomAttributes = \"\";\n\t\t\t$this->opportunities->HrefValue = \"\";\n\t\t\t$this->opportunities->TooltipValue = \"\";\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->LinkCustomAttributes = \"\";\n\t\t\t$this->isconsaltant->HrefValue = \"\";\n\t\t\t$this->isconsaltant->TooltipValue = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->LinkCustomAttributes = \"\";\n\t\t\t$this->isagent->HrefValue = \"\";\n\t\t\t$this->isagent->TooltipValue = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->LinkCustomAttributes = \"\";\n\t\t\t$this->isinvestor->HrefValue = \"\";\n\t\t\t$this->isinvestor->TooltipValue = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->LinkCustomAttributes = \"\";\n\t\t\t$this->isbusinessman->HrefValue = \"\";\n\t\t\t$this->isbusinessman->TooltipValue = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->LinkCustomAttributes = \"\";\n\t\t\t$this->isprovider->HrefValue = \"\";\n\t\t\t$this->isprovider->TooltipValue = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->LinkCustomAttributes = \"\";\n\t\t\t$this->isproductowner->HrefValue = \"\";\n\t\t\t$this->isproductowner->TooltipValue = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->LinkCustomAttributes = \"\";\n\t\t\t$this->states->HrefValue = \"\";\n\t\t\t$this->states->TooltipValue = \"\";\n\n\t\t\t// cities\n\t\t\t$this->cities->LinkCustomAttributes = \"\";\n\t\t\t$this->cities->HrefValue = \"\";\n\t\t\t$this->cities->TooltipValue = \"\";\n\n\t\t\t// offers\n\t\t\t$this->offers->LinkCustomAttributes = \"\";\n\t\t\t$this->offers->HrefValue = \"\";\n\t\t\t$this->offers->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $frm_fp_units_accomplishment;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$frm_fp_units_accomplishment->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// units_id\n\t\t// focal_person_id\n\t\t// unit_id\n\t\t// cu_sequence\n\t\t// cu_short_name\n\t\t// cu_unit_name\n\t\t// unit_name\n\t\t// unit_name_short\n\t\t// personnel_count\n\t\t// mfo_1\n\t\t// mfo_2\n\t\t// mfo_3\n\t\t// mfo_4\n\t\t// mfo_5\n\t\t// sto\n\t\t// gass\n\t\t// users_name\n\t\t// users_nameLast\n\t\t// users_nameFirst\n\t\t// users_nameMiddle\n\t\t// users_userLoginName\n\t\t// users_password\n\t\t// users_email\n\t\t// users_contactNo\n\t\t// tbl_cutOffDate_id\n\t\t// t_cutOffDate\n\t\t// t_cutOffDate_remarks\n\n\t\tif ($frm_fp_units_accomplishment->RowType == UP_ROWTYPE_VIEW) { // View row\n\n\t\t\t// units_id\n\t\t\t$frm_fp_units_accomplishment->units_id->ViewValue = $frm_fp_units_accomplishment->units_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->units_id->ViewCustomAttributes = \"\";\n\n\t\t\t// focal_person_id\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->ViewValue = $frm_fp_units_accomplishment->focal_person_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_id\n\t\t\t$frm_fp_units_accomplishment->unit_id->ViewValue = $frm_fp_units_accomplishment->unit_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_id->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_sequence\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->ViewValue = $frm_fp_units_accomplishment->cu_sequence->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_short_name\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->ViewValue = $frm_fp_units_accomplishment->cu_short_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_unit_name\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->ViewValue = $frm_fp_units_accomplishment->cu_unit_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_name\n\t\t\t$frm_fp_units_accomplishment->unit_name->ViewValue = $frm_fp_units_accomplishment->unit_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_name->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_name_short\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->ViewValue = $frm_fp_units_accomplishment->unit_name_short->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->ViewCustomAttributes = \"\";\n\n\t\t\t// personnel_count\n\t\t\t$frm_fp_units_accomplishment->personnel_count->ViewValue = $frm_fp_units_accomplishment->personnel_count->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->personnel_count->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_1\n\t\t\t$frm_fp_units_accomplishment->mfo_1->ViewValue = $frm_fp_units_accomplishment->mfo_1->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_1->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_2\n\t\t\t$frm_fp_units_accomplishment->mfo_2->ViewValue = $frm_fp_units_accomplishment->mfo_2->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_2->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_3\n\t\t\t$frm_fp_units_accomplishment->mfo_3->ViewValue = $frm_fp_units_accomplishment->mfo_3->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_3->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_4\n\t\t\t$frm_fp_units_accomplishment->mfo_4->ViewValue = $frm_fp_units_accomplishment->mfo_4->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_4->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_5\n\t\t\t$frm_fp_units_accomplishment->mfo_5->ViewValue = $frm_fp_units_accomplishment->mfo_5->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_5->ViewCustomAttributes = \"\";\n\n\t\t\t// sto\n\t\t\t$frm_fp_units_accomplishment->sto->ViewValue = $frm_fp_units_accomplishment->sto->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->sto->ViewCustomAttributes = \"\";\n\n\t\t\t// gass\n\t\t\t$frm_fp_units_accomplishment->gass->ViewValue = $frm_fp_units_accomplishment->gass->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->gass->ViewCustomAttributes = \"\";\n\n\t\t\t// users_name\n\t\t\t$frm_fp_units_accomplishment->users_name->ViewValue = $frm_fp_units_accomplishment->users_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_name->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameLast\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->ViewValue = $frm_fp_units_accomplishment->users_nameLast->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameFirst\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->ViewValue = $frm_fp_units_accomplishment->users_nameFirst->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameMiddle\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->ViewValue = $frm_fp_units_accomplishment->users_nameMiddle->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->ViewCustomAttributes = \"\";\n\n\t\t\t// users_userLoginName\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->ViewValue = $frm_fp_units_accomplishment->users_userLoginName->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->ViewCustomAttributes = \"\";\n\n\t\t\t// users_password\n\t\t\t$frm_fp_units_accomplishment->users_password->ViewValue = $frm_fp_units_accomplishment->users_password->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_password->ViewCustomAttributes = \"\";\n\n\t\t\t// users_email\n\t\t\t$frm_fp_units_accomplishment->users_email->ViewValue = $frm_fp_units_accomplishment->users_email->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_email->ViewCustomAttributes = \"\";\n\n\t\t\t// users_contactNo\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->ViewValue = $frm_fp_units_accomplishment->users_contactNo->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->ViewCustomAttributes = \"\";\n\n\t\t\t// tbl_cutOffDate_id\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->ViewValue = $frm_fp_units_accomplishment->tbl_cutOffDate_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->ViewCustomAttributes = \"\";\n\n\t\t\t// t_cutOffDate\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewValue = $frm_fp_units_accomplishment->t_cutOffDate->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewValue = up_FormatDateTime($frm_fp_units_accomplishment->t_cutOffDate->ViewValue, 6);\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewCustomAttributes = \"\";\n\n\t\t\t// t_cutOffDate_remarks\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->ViewValue = $frm_fp_units_accomplishment->t_cutOffDate_remarks->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->ViewCustomAttributes = \"\";\n\n\t\t\t// units_id\n\t\t\t$frm_fp_units_accomplishment->units_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->units_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->units_id->TooltipValue = \"\";\n\n\t\t\t// focal_person_id\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->TooltipValue = \"\";\n\n\t\t\t// unit_id\n\t\t\t$frm_fp_units_accomplishment->unit_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_id->TooltipValue = \"\";\n\n\t\t\t// cu_sequence\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->TooltipValue = \"\";\n\n\t\t\t// cu_short_name\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->TooltipValue = \"\";\n\n\t\t\t// cu_unit_name\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->TooltipValue = \"\";\n\n\t\t\t// unit_name\n\t\t\t$frm_fp_units_accomplishment->unit_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name->TooltipValue = \"\";\n\n\t\t\t// unit_name_short\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->TooltipValue = \"\";\n\n\t\t\t// personnel_count\n\t\t\t$frm_fp_units_accomplishment->personnel_count->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->personnel_count->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->personnel_count->TooltipValue = \"\";\n\n\t\t\t// mfo_1\n\t\t\t$frm_fp_units_accomplishment->mfo_1->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_1->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_1->TooltipValue = \"\";\n\n\t\t\t// mfo_2\n\t\t\t$frm_fp_units_accomplishment->mfo_2->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_2->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_2->TooltipValue = \"\";\n\n\t\t\t// mfo_3\n\t\t\t$frm_fp_units_accomplishment->mfo_3->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_3->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_3->TooltipValue = \"\";\n\n\t\t\t// mfo_4\n\t\t\t$frm_fp_units_accomplishment->mfo_4->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_4->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_4->TooltipValue = \"\";\n\n\t\t\t// mfo_5\n\t\t\t$frm_fp_units_accomplishment->mfo_5->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_5->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_5->TooltipValue = \"\";\n\n\t\t\t// sto\n\t\t\t$frm_fp_units_accomplishment->sto->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->sto->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->sto->TooltipValue = \"\";\n\n\t\t\t// gass\n\t\t\t$frm_fp_units_accomplishment->gass->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->gass->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->gass->TooltipValue = \"\";\n\n\t\t\t// users_name\n\t\t\t$frm_fp_units_accomplishment->users_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_name->TooltipValue = \"\";\n\n\t\t\t// users_nameLast\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->TooltipValue = \"\";\n\n\t\t\t// users_nameFirst\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->TooltipValue = \"\";\n\n\t\t\t// users_nameMiddle\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->TooltipValue = \"\";\n\n\t\t\t// users_userLoginName\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->TooltipValue = \"\";\n\n\t\t\t// users_password\n\t\t\t$frm_fp_units_accomplishment->users_password->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_password->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_password->TooltipValue = \"\";\n\n\t\t\t// users_email\n\t\t\t$frm_fp_units_accomplishment->users_email->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_email->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_email->TooltipValue = \"\";\n\n\t\t\t// users_contactNo\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->TooltipValue = \"\";\n\n\t\t\t// tbl_cutOffDate_id\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->TooltipValue = \"\";\n\n\t\t\t// t_cutOffDate\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->TooltipValue = \"\";\n\n\t\t\t// t_cutOffDate_remarks\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($frm_fp_units_accomplishment->RowType <> UP_ROWTYPE_AGGREGATEINIT)\n\t\t\t$frm_fp_units_accomplishment->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// period_id\n\t\t// person_id\n\t\t// tipejurnal_id\n\t\t// nomer\n\t\t// createon\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// period_id\n\t\tif (strval($this->period_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->period_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `start` AS `DispFld`, `end` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `periode`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->period_id->LookupFilters = array(\"df1\" => \"7\", \"df2\" => \"7\");\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->period_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_FormatDateTime($rswrk->fields('DispFld'), 7);\n\t\t\t\t$arwrk[2] = ew_FormatDateTime($rswrk->fields('Disp2Fld'), 7);\n\t\t\t\t$this->period_id->ViewValue = $this->period_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->period_id->ViewValue = $this->period_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->period_id->ViewValue = NULL;\n\t\t}\n\t\t$this->period_id->ViewCustomAttributes = \"\";\n\n\t\t// person_id\n\t\t$this->person_id->ViewValue = $this->person_id->CurrentValue;\n\t\t$this->person_id->ViewCustomAttributes = \"\";\n\n\t\t// tipejurnal_id\n\t\tif (strval($this->tipejurnal_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tipejurnal_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipejurnal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipejurnal_id->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipejurnal_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipejurnal_id->ViewValue = $this->tipejurnal_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipejurnal_id->ViewValue = $this->tipejurnal_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipejurnal_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipejurnal_id->ViewCustomAttributes = \"\";\n\n\t\t// nomer\n\t\t$this->nomer->ViewValue = $this->nomer->CurrentValue;\n\t\t$this->nomer->ViewCustomAttributes = \"\";\n\n\t\t// createon\n\t\t$this->createon->ViewValue = $this->createon->CurrentValue;\n\t\t$this->createon->ViewValue = ew_FormatDateTime($this->createon->ViewValue, 7);\n\t\t$this->createon->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t\t// tipejurnal_id\n\t\t\t$this->tipejurnal_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipejurnal_id->HrefValue = \"\";\n\t\t\t$this->tipejurnal_id->TooltipValue = \"\";\n\n\t\t\t// nomer\n\t\t\t$this->nomer->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer->HrefValue = \"\";\n\t\t\t$this->nomer->TooltipValue = \"\";\n\n\t\t\t// createon\n\t\t\t$this->createon->LinkCustomAttributes = \"\";\n\t\t\t$this->createon->HrefValue = \"\";\n\t\t\t$this->createon->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// tipejurnal_id\n\t\t\t$this->tipejurnal_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipejurnal_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->tipejurnal_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tipejurnal_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tipejurnal`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->tipejurnal_id->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->tipejurnal_id, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->tipejurnal_id->EditValue = $arwrk;\n\n\t\t\t// nomer\n\t\t\t$this->nomer->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomer->EditCustomAttributes = \"\";\n\t\t\t$this->nomer->EditValue = ew_HtmlEncode($this->nomer->CurrentValue);\n\t\t\t$this->nomer->PlaceHolder = ew_RemoveHtml($this->nomer->FldCaption());\n\n\t\t\t// createon\n\t\t\t$this->createon->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->createon->EditCustomAttributes = \"style='width: 115px;'\";\n\t\t\t$this->createon->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->createon->CurrentValue, 7));\n\t\t\t$this->createon->PlaceHolder = ew_RemoveHtml($this->createon->FldCaption());\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t\t$this->keterangan->EditValue = ew_HtmlEncode($this->keterangan->CurrentValue);\n\t\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// tipejurnal_id\n\n\t\t\t$this->tipejurnal_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipejurnal_id->HrefValue = \"\";\n\n\t\t\t// nomer\n\t\t\t$this->nomer->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer->HrefValue = \"\";\n\n\t\t\t// createon\n\t\t\t$this->createon->LinkCustomAttributes = \"\";\n\t\t\t$this->createon->HrefValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $scholarship_package;\n\n\t\t// Initialize URLs\n\t\t$this->ExportPrintUrl = $this->PageUrl() . \"export=print&\" . \"scholarship_package_id=\" . urlencode($scholarship_package->scholarship_package_id->CurrentValue);\n\t\t$this->ExportHtmlUrl = $this->PageUrl() . \"export=html&\" . \"scholarship_package_id=\" . urlencode($scholarship_package->scholarship_package_id->CurrentValue);\n\t\t$this->ExportExcelUrl = $this->PageUrl() . \"export=excel&\" . \"scholarship_package_id=\" . urlencode($scholarship_package->scholarship_package_id->CurrentValue);\n\t\t$this->ExportWordUrl = $this->PageUrl() . \"export=word&\" . \"scholarship_package_id=\" . urlencode($scholarship_package->scholarship_package_id->CurrentValue);\n\t\t$this->ExportXmlUrl = $this->PageUrl() . \"export=xml&\" . \"scholarship_package_id=\" . urlencode($scholarship_package->scholarship_package_id->CurrentValue);\n\t\t$this->ExportCsvUrl = $this->PageUrl() . \"export=csv&\" . \"scholarship_package_id=\" . urlencode($scholarship_package->scholarship_package_id->CurrentValue);\n\t\t$this->AddUrl = $scholarship_package->AddUrl();\n\t\t$this->EditUrl = $scholarship_package->EditUrl();\n\t\t$this->CopyUrl = $scholarship_package->CopyUrl();\n\t\t$this->DeleteUrl = $scholarship_package->DeleteUrl();\n\t\t$this->ListUrl = $scholarship_package->ListUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$scholarship_package->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// scholarship_package_id\n\n\t\t$scholarship_package->scholarship_package_id->CellCssStyle = \"\"; $scholarship_package->scholarship_package_id->CellCssClass = \"\";\n\t\t$scholarship_package->scholarship_package_id->CellAttrs = array(); $scholarship_package->scholarship_package_id->ViewAttrs = array(); $scholarship_package->scholarship_package_id->EditAttrs = array();\n\n\t\t// start_date\n\t\t$scholarship_package->start_date->CellCssStyle = \"\"; $scholarship_package->start_date->CellCssClass = \"\";\n\t\t$scholarship_package->start_date->CellAttrs = array(); $scholarship_package->start_date->ViewAttrs = array(); $scholarship_package->start_date->EditAttrs = array();\n\n\t\t// end_date\n\t\t$scholarship_package->end_date->CellCssStyle = \"\"; $scholarship_package->end_date->CellCssClass = \"\";\n\t\t$scholarship_package->end_date->CellAttrs = array(); $scholarship_package->end_date->ViewAttrs = array(); $scholarship_package->end_date->EditAttrs = array();\n\n\t\t// status\n\t\t$scholarship_package->status->CellCssStyle = \"\"; $scholarship_package->status->CellCssClass = \"\";\n\t\t$scholarship_package->status->CellAttrs = array(); $scholarship_package->status->ViewAttrs = array(); $scholarship_package->status->EditAttrs = array();\n\n\t\t// annual_amount\n\t\t$scholarship_package->annual_amount->CellCssStyle = \"\"; $scholarship_package->annual_amount->CellCssClass = \"\";\n\t\t$scholarship_package->annual_amount->CellAttrs = array(); $scholarship_package->annual_amount->ViewAttrs = array(); $scholarship_package->annual_amount->EditAttrs = array();\n\n\t\t// grant_package_grant_package_id\n\t\t$scholarship_package->grant_package_grant_package_id->CellCssStyle = \"\"; $scholarship_package->grant_package_grant_package_id->CellCssClass = \"\";\n\t\t$scholarship_package->grant_package_grant_package_id->CellAttrs = array(); $scholarship_package->grant_package_grant_package_id->ViewAttrs = array(); $scholarship_package->grant_package_grant_package_id->EditAttrs = array();\n\n\t\t// sponsored_student_sponsored_student_id\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->CellCssStyle = \"\"; $scholarship_package->sponsored_student_sponsored_student_id->CellCssClass = \"\";\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->CellAttrs = array(); $scholarship_package->sponsored_student_sponsored_student_id->ViewAttrs = array(); $scholarship_package->sponsored_student_sponsored_student_id->EditAttrs = array();\n\n\t\t// scholarship_type\n\t\t$scholarship_package->scholarship_type->CellCssStyle = \"\"; $scholarship_package->scholarship_type->CellCssClass = \"\";\n\t\t$scholarship_package->scholarship_type->CellAttrs = array(); $scholarship_package->scholarship_type->ViewAttrs = array(); $scholarship_package->scholarship_type->EditAttrs = array();\n\n\t\t// scholarship_type_scholarship_type\n\t\t$scholarship_package->scholarship_type_scholarship_type->CellCssStyle = \"\"; $scholarship_package->scholarship_type_scholarship_type->CellCssClass = \"\";\n\t\t$scholarship_package->scholarship_type_scholarship_type->CellAttrs = array(); $scholarship_package->scholarship_type_scholarship_type->ViewAttrs = array(); $scholarship_package->scholarship_type_scholarship_type->EditAttrs = array();\n\n\t\t// group_id\n\t\t$scholarship_package->group_id->CellCssStyle = \"\"; $scholarship_package->group_id->CellCssClass = \"\";\n\t\t$scholarship_package->group_id->CellAttrs = array(); $scholarship_package->group_id->ViewAttrs = array(); $scholarship_package->group_id->EditAttrs = array();\n\t\tif ($scholarship_package->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// scholarship_package_id\n\t\t\t$scholarship_package->scholarship_package_id->ViewValue = $scholarship_package->scholarship_package_id->CurrentValue;\n\t\t\t$scholarship_package->scholarship_package_id->CssStyle = \"\";\n\t\t\t$scholarship_package->scholarship_package_id->CssClass = \"\";\n\t\t\t$scholarship_package->scholarship_package_id->ViewCustomAttributes = \"\";\n\n\t\t\t// start_date\n\t\t\t$scholarship_package->start_date->ViewValue = $scholarship_package->start_date->CurrentValue;\n\t\t\t$scholarship_package->start_date->ViewValue = ew_FormatDateTime($scholarship_package->start_date->ViewValue, 7);\n\t\t\t$scholarship_package->start_date->CssStyle = \"\";\n\t\t\t$scholarship_package->start_date->CssClass = \"\";\n\t\t\t$scholarship_package->start_date->ViewCustomAttributes = \"\";\n\n\t\t\t// end_date\n\t\t\t$scholarship_package->end_date->ViewValue = $scholarship_package->end_date->CurrentValue;\n\t\t\t$scholarship_package->end_date->ViewValue = ew_FormatDateTime($scholarship_package->end_date->ViewValue, 7);\n\t\t\t$scholarship_package->end_date->CssStyle = \"\";\n\t\t\t$scholarship_package->end_date->CssClass = \"\";\n\t\t\t$scholarship_package->end_date->ViewCustomAttributes = \"\";\n\n\t\t\t// status\n\t\t\tif (strval($scholarship_package->status->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($scholarship_package->status->CurrentValue) {\n\t\t\t\t\tcase \"active\":\n\t\t\t\t\t\t$scholarship_package->status->ViewValue = \"Active\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"suspended\":\n\t\t\t\t\t\t$scholarship_package->status->ViewValue = \"Suspended\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$scholarship_package->status->ViewValue = $scholarship_package->status->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$scholarship_package->status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$scholarship_package->status->CssStyle = \"\";\n\t\t\t$scholarship_package->status->CssClass = \"\";\n\t\t\t$scholarship_package->status->ViewCustomAttributes = \"\";\n\n\t\t\t// annual_amount\n\t\t\t$scholarship_package->annual_amount->ViewValue = $scholarship_package->annual_amount->CurrentValue;\n\t\t\t$scholarship_package->annual_amount->CssStyle = \"\";\n\t\t\t$scholarship_package->annual_amount->CssClass = \"\";\n\t\t\t$scholarship_package->annual_amount->ViewCustomAttributes = \"\";\n\n\t\t\t// grant_package_grant_package_id\n\t\t\t$scholarship_package->grant_package_grant_package_id->ViewValue = $scholarship_package->grant_package_grant_package_id->CurrentValue;\n\t\t\t$scholarship_package->grant_package_grant_package_id->CssStyle = \"\";\n\t\t\t$scholarship_package->grant_package_grant_package_id->CssClass = \"\";\n\t\t\t$scholarship_package->grant_package_grant_package_id->ViewCustomAttributes = \"\";\n\n\t\t\t// sponsored_student_sponsored_student_id\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->ViewValue = $scholarship_package->sponsored_student_sponsored_student_id->CurrentValue;\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->CssStyle = \"\";\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->CssClass = \"\";\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->ViewCustomAttributes = \"\";\n\n\t\t\t// scholarship_type\n\t\t\t$scholarship_package->scholarship_type->ViewValue = $scholarship_package->scholarship_type->CurrentValue;\n\t\t\t$scholarship_package->scholarship_type->CssStyle = \"\";\n\t\t\t$scholarship_package->scholarship_type->CssClass = \"\";\n\t\t\t$scholarship_package->scholarship_type->ViewCustomAttributes = \"\";\n\n\t\t\t// scholarship_type_scholarship_type\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->ViewValue = $scholarship_package->scholarship_type_scholarship_type->CurrentValue;\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->CssStyle = \"\";\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->CssClass = \"\";\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->ViewCustomAttributes = \"\";\n\n\t\t\t// group_id\n\t\t\t$scholarship_package->group_id->ViewValue = $scholarship_package->group_id->CurrentValue;\n\t\t\t$scholarship_package->group_id->CssStyle = \"\";\n\t\t\t$scholarship_package->group_id->CssClass = \"\";\n\t\t\t$scholarship_package->group_id->ViewCustomAttributes = \"\";\n\n\t\t\t// scholarship_package_id\n\t\t\t$scholarship_package->scholarship_package_id->HrefValue = \"\";\n\t\t\t$scholarship_package->scholarship_package_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$scholarship_package->start_date->HrefValue = \"\";\n\t\t\t$scholarship_package->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$scholarship_package->end_date->HrefValue = \"\";\n\t\t\t$scholarship_package->end_date->TooltipValue = \"\";\n\n\t\t\t// status\n\t\t\t$scholarship_package->status->HrefValue = \"\";\n\t\t\t$scholarship_package->status->TooltipValue = \"\";\n\n\t\t\t// annual_amount\n\t\t\t$scholarship_package->annual_amount->HrefValue = \"\";\n\t\t\t$scholarship_package->annual_amount->TooltipValue = \"\";\n\n\t\t\t// grant_package_grant_package_id\n\t\t\t$scholarship_package->grant_package_grant_package_id->HrefValue = \"\";\n\t\t\t$scholarship_package->grant_package_grant_package_id->TooltipValue = \"\";\n\n\t\t\t// sponsored_student_sponsored_student_id\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->HrefValue = \"\";\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->TooltipValue = \"\";\n\n\t\t\t// scholarship_type\n\t\t\t$scholarship_package->scholarship_type->HrefValue = \"\";\n\t\t\t$scholarship_package->scholarship_type->TooltipValue = \"\";\n\n\t\t\t// scholarship_type_scholarship_type\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->HrefValue = \"\";\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->TooltipValue = \"\";\n\n\t\t\t// group_id\n\t\t\t$scholarship_package->group_id->HrefValue = \"\";\n\t\t\t$scholarship_package->group_id->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($scholarship_package->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$scholarship_package->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $scholarship_package;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $scholarship_package->ViewUrl();\n\t\t$this->EditUrl = $scholarship_package->EditUrl();\n\t\t$this->InlineEditUrl = $scholarship_package->InlineEditUrl();\n\t\t$this->CopyUrl = $scholarship_package->CopyUrl();\n\t\t$this->InlineCopyUrl = $scholarship_package->InlineCopyUrl();\n\t\t$this->DeleteUrl = $scholarship_package->DeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$scholarship_package->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// scholarship_package_id\n\n\t\t$scholarship_package->scholarship_package_id->CellCssStyle = \"\"; $scholarship_package->scholarship_package_id->CellCssClass = \"\";\n\t\t$scholarship_package->scholarship_package_id->CellAttrs = array(); $scholarship_package->scholarship_package_id->ViewAttrs = array(); $scholarship_package->scholarship_package_id->EditAttrs = array();\n\n\t\t// start_date\n\t\t$scholarship_package->start_date->CellCssStyle = \"\"; $scholarship_package->start_date->CellCssClass = \"\";\n\t\t$scholarship_package->start_date->CellAttrs = array(); $scholarship_package->start_date->ViewAttrs = array(); $scholarship_package->start_date->EditAttrs = array();\n\n\t\t// end_date\n\t\t$scholarship_package->end_date->CellCssStyle = \"\"; $scholarship_package->end_date->CellCssClass = \"\";\n\t\t$scholarship_package->end_date->CellAttrs = array(); $scholarship_package->end_date->ViewAttrs = array(); $scholarship_package->end_date->EditAttrs = array();\n\n\t\t// status\n\t\t$scholarship_package->status->CellCssStyle = \"\"; $scholarship_package->status->CellCssClass = \"\";\n\t\t$scholarship_package->status->CellAttrs = array(); $scholarship_package->status->ViewAttrs = array(); $scholarship_package->status->EditAttrs = array();\n\n\t\t// annual_amount\n\t\t$scholarship_package->annual_amount->CellCssStyle = \"\"; $scholarship_package->annual_amount->CellCssClass = \"\";\n\t\t$scholarship_package->annual_amount->CellAttrs = array(); $scholarship_package->annual_amount->ViewAttrs = array(); $scholarship_package->annual_amount->EditAttrs = array();\n\n\t\t// grant_package_grant_package_id\n\t\t$scholarship_package->grant_package_grant_package_id->CellCssStyle = \"\"; $scholarship_package->grant_package_grant_package_id->CellCssClass = \"\";\n\t\t$scholarship_package->grant_package_grant_package_id->CellAttrs = array(); $scholarship_package->grant_package_grant_package_id->ViewAttrs = array(); $scholarship_package->grant_package_grant_package_id->EditAttrs = array();\n\n\t\t// sponsored_student_sponsored_student_id\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->CellCssStyle = \"\"; $scholarship_package->sponsored_student_sponsored_student_id->CellCssClass = \"\";\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->CellAttrs = array(); $scholarship_package->sponsored_student_sponsored_student_id->ViewAttrs = array(); $scholarship_package->sponsored_student_sponsored_student_id->EditAttrs = array();\n\n\t\t// scholarship_type\n\t\t$scholarship_package->scholarship_type->CellCssStyle = \"\"; $scholarship_package->scholarship_type->CellCssClass = \"\";\n\t\t$scholarship_package->scholarship_type->CellAttrs = array(); $scholarship_package->scholarship_type->ViewAttrs = array(); $scholarship_package->scholarship_type->EditAttrs = array();\n\n\t\t// scholarship_type_scholarship_type\n\t\t$scholarship_package->scholarship_type_scholarship_type->CellCssStyle = \"\"; $scholarship_package->scholarship_type_scholarship_type->CellCssClass = \"\";\n\t\t$scholarship_package->scholarship_type_scholarship_type->CellAttrs = array(); $scholarship_package->scholarship_type_scholarship_type->ViewAttrs = array(); $scholarship_package->scholarship_type_scholarship_type->EditAttrs = array();\n\t\tif ($scholarship_package->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// scholarship_package_id\n\t\t\t$scholarship_package->scholarship_package_id->ViewValue = $scholarship_package->scholarship_package_id->CurrentValue;\n\t\t\t$scholarship_package->scholarship_package_id->CssStyle = \"\";\n\t\t\t$scholarship_package->scholarship_package_id->CssClass = \"\";\n\t\t\t$scholarship_package->scholarship_package_id->ViewCustomAttributes = \"\";\n\n\t\t\t// start_date\n\t\t\t$scholarship_package->start_date->ViewValue = $scholarship_package->start_date->CurrentValue;\n\t\t\t$scholarship_package->start_date->ViewValue = ew_FormatNumber($scholarship_package->start_date->ViewValue, 0, 0, 0, 0);\n\t\t\t$scholarship_package->start_date->CssStyle = \"\";\n\t\t\t$scholarship_package->start_date->CssClass = \"\";\n\t\t\t$scholarship_package->start_date->ViewCustomAttributes = \"\";\n\n\t\t\t// end_date\n\t\t\t$scholarship_package->end_date->ViewValue = $scholarship_package->end_date->CurrentValue;\n\t\t\t$scholarship_package->end_date->ViewValue = ew_FormatNumber($scholarship_package->end_date->ViewValue, 0, 0, 0, 0);\n\t\t\t$scholarship_package->end_date->CssStyle = \"\";\n\t\t\t$scholarship_package->end_date->CssClass = \"\";\n\t\t\t$scholarship_package->end_date->ViewCustomAttributes = \"\";\n\n\t\t\t// status\n\t\t\tif (strval($scholarship_package->status->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($scholarship_package->status->CurrentValue) {\n\t\t\t\t\tcase \"active\":\n\t\t\t\t\t\t$scholarship_package->status->ViewValue = \"Active\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"suspended\":\n\t\t\t\t\t\t$scholarship_package->status->ViewValue = \"Suspended\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$scholarship_package->status->ViewValue = $scholarship_package->status->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$scholarship_package->status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$scholarship_package->status->CssStyle = \"\";\n\t\t\t$scholarship_package->status->CssClass = \"\";\n\t\t\t$scholarship_package->status->ViewCustomAttributes = \"\";\n\n\t\t\t// annual_amount\n\t\t\t$scholarship_package->annual_amount->ViewValue = $scholarship_package->annual_amount->CurrentValue;\n\t\t\t$scholarship_package->annual_amount->CssStyle = \"\";\n\t\t\t$scholarship_package->annual_amount->CssClass = \"\";\n\t\t\t$scholarship_package->annual_amount->ViewCustomAttributes = \"\";\n\n\t\t\t// grant_package_grant_package_id\n\t\t\t$scholarship_package->grant_package_grant_package_id->ViewValue = $scholarship_package->grant_package_grant_package_id->CurrentValue;\n\t\t\tif (strval($scholarship_package->grant_package_grant_package_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`grant_package_id` = \" . ew_AdjustSql($scholarship_package->grant_package_grant_package_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `name` FROM `grant_package`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$scholarship_package->grant_package_grant_package_id->ViewValue = $rswrk->fields('name');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$scholarship_package->grant_package_grant_package_id->ViewValue = $scholarship_package->grant_package_grant_package_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$scholarship_package->grant_package_grant_package_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$scholarship_package->grant_package_grant_package_id->CssStyle = \"\";\n\t\t\t$scholarship_package->grant_package_grant_package_id->CssClass = \"\";\n\t\t\t$scholarship_package->grant_package_grant_package_id->ViewCustomAttributes = \"\";\n\n\t\t\t// sponsored_student_sponsored_student_id\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->ViewValue = $scholarship_package->sponsored_student_sponsored_student_id->CurrentValue;\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->CssStyle = \"\";\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->CssClass = \"\";\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->ViewCustomAttributes = \"\";\n\n\t\t\t// scholarship_type\n\t\t\t$scholarship_package->scholarship_type->ViewValue = $scholarship_package->scholarship_type->CurrentValue;\n\t\t\tif (strval($scholarship_package->scholarship_type->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`scholarship_type_id` = \" . ew_AdjustSql($scholarship_package->scholarship_type->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `scholarship_type_name` FROM `scholarship_type`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$scholarship_package->scholarship_type->ViewValue = $rswrk->fields('scholarship_type_name');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$scholarship_package->scholarship_type->ViewValue = $scholarship_package->scholarship_type->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$scholarship_package->scholarship_type->ViewValue = NULL;\n\t\t\t}\n\t\t\t$scholarship_package->scholarship_type->CssStyle = \"\";\n\t\t\t$scholarship_package->scholarship_type->CssClass = \"\";\n\t\t\t$scholarship_package->scholarship_type->ViewCustomAttributes = \"\";\n\n\t\t\t// scholarship_type_scholarship_type\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->ViewValue = $scholarship_package->scholarship_type_scholarship_type->CurrentValue;\n\t\t\tif (strval($scholarship_package->scholarship_type_scholarship_type->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`scholarship_type_id` = \" . ew_AdjustSql($scholarship_package->scholarship_type_scholarship_type->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `scholarship_type_name` FROM `scholarship_type`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$scholarship_package->scholarship_type_scholarship_type->ViewValue = $rswrk->fields('scholarship_type_name');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$scholarship_package->scholarship_type_scholarship_type->ViewValue = $scholarship_package->scholarship_type_scholarship_type->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$scholarship_package->scholarship_type_scholarship_type->ViewValue = NULL;\n\t\t\t}\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->CssStyle = \"\";\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->CssClass = \"\";\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->ViewCustomAttributes = \"\";\n\n\t\t\t// scholarship_package_id\n\t\t\t$scholarship_package->scholarship_package_id->HrefValue = \"\";\n\t\t\t$scholarship_package->scholarship_package_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$scholarship_package->start_date->HrefValue = \"\";\n\t\t\t$scholarship_package->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$scholarship_package->end_date->HrefValue = \"\";\n\t\t\t$scholarship_package->end_date->TooltipValue = \"\";\n\n\t\t\t// status\n\t\t\t$scholarship_package->status->HrefValue = \"\";\n\t\t\t$scholarship_package->status->TooltipValue = \"\";\n\n\t\t\t// annual_amount\n\t\t\t$scholarship_package->annual_amount->HrefValue = \"\";\n\t\t\t$scholarship_package->annual_amount->TooltipValue = \"\";\n\n\t\t\t// grant_package_grant_package_id\n\t\t\t$scholarship_package->grant_package_grant_package_id->HrefValue = \"\";\n\t\t\t$scholarship_package->grant_package_grant_package_id->TooltipValue = \"\";\n\n\t\t\t// sponsored_student_sponsored_student_id\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->HrefValue = \"\";\n\t\t\t$scholarship_package->sponsored_student_sponsored_student_id->TooltipValue = \"\";\n\n\t\t\t// scholarship_type\n\t\t\t$scholarship_package->scholarship_type->HrefValue = \"\";\n\t\t\t$scholarship_package->scholarship_type->TooltipValue = \"\";\n\n\t\t\t// scholarship_type_scholarship_type\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->HrefValue = \"\";\n\t\t\t$scholarship_package->scholarship_type_scholarship_type->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($scholarship_package->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$scholarship_package->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $tbl_slide;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $tbl_slide->ViewUrl();\n\t\t$this->EditUrl = $tbl_slide->EditUrl();\n\t\t$this->InlineEditUrl = $tbl_slide->InlineEditUrl();\n\t\t$this->CopyUrl = $tbl_slide->CopyUrl();\n\t\t$this->InlineCopyUrl = $tbl_slide->InlineCopyUrl();\n\t\t$this->DeleteUrl = $tbl_slide->DeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$tbl_slide->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// title\n\n\t\t$tbl_slide->title->CellCssStyle = \"\"; $tbl_slide->title->CellCssClass = \"\";\n\t\t$tbl_slide->title->CellAttrs = array(); $tbl_slide->title->ViewAttrs = array(); $tbl_slide->title->EditAttrs = array();\n\n\t\t// images\n\t\t$tbl_slide->images->CellCssStyle = \"\"; $tbl_slide->images->CellCssClass = \"\";\n\t\t$tbl_slide->images->CellAttrs = array(); $tbl_slide->images->ViewAttrs = array(); $tbl_slide->images->EditAttrs = array();\n\n\t\t// order_by\n\t\t$tbl_slide->order_by->CellCssStyle = \"\"; $tbl_slide->order_by->CellCssClass = \"\";\n\t\t$tbl_slide->order_by->CellAttrs = array(); $tbl_slide->order_by->ViewAttrs = array(); $tbl_slide->order_by->EditAttrs = array();\n\t\tif ($tbl_slide->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// banner_id\n\t\t\t$tbl_slide->banner_id->ViewValue = $tbl_slide->banner_id->CurrentValue;\n\t\t\t$tbl_slide->banner_id->CssStyle = \"\";\n\t\t\t$tbl_slide->banner_id->CssClass = \"\";\n\t\t\t$tbl_slide->banner_id->ViewCustomAttributes = \"\";\n\n\t\t\t// title\n\t\t\t$tbl_slide->title->ViewValue = $tbl_slide->title->CurrentValue;\n\t\t\t$tbl_slide->title->CssStyle = \"\";\n\t\t\t$tbl_slide->title->CssClass = \"\";\n\t\t\t$tbl_slide->title->ViewCustomAttributes = \"\";\n\n\t\t\t// images\n\t\t\tif (!ew_Empty($tbl_slide->images->Upload->DbValue)) {\n\t\t\t\t$tbl_slide->images->ViewValue = $tbl_slide->images->Upload->DbValue;\n\t\t\t\t$tbl_slide->images->ImageWidth = 300;\n\t\t\t\t$tbl_slide->images->ImageHeight = 180;\n\t\t\t\t$tbl_slide->images->ImageAlt = $tbl_slide->images->FldAlt();\n\t\t\t} else {\n\t\t\t\t$tbl_slide->images->ViewValue = \"\";\n\t\t\t}\n\t\t\t$tbl_slide->images->CssStyle = \"\";\n\t\t\t$tbl_slide->images->CssClass = \"\";\n\t\t\t$tbl_slide->images->ViewCustomAttributes = \"\";\n\n\t\t\t// order_by\n\t\t\t$tbl_slide->order_by->ViewValue = $tbl_slide->order_by->CurrentValue;\n\t\t\t$tbl_slide->order_by->CssStyle = \"\";\n\t\t\t$tbl_slide->order_by->CssClass = \"\";\n\t\t\t$tbl_slide->order_by->ViewCustomAttributes = \"\";\n\n\t\t\t// title\n\t\t\t$tbl_slide->title->HrefValue = \"\";\n\t\t\t$tbl_slide->title->TooltipValue = \"\";\n\n\t\t\t// images\n\t\t\t$tbl_slide->images->HrefValue = \"\";\n\t\t\t$tbl_slide->images->TooltipValue = \"\";\n\n\t\t\t// order_by\n\t\t\t$tbl_slide->order_by->HrefValue = \"\";\n\t\t\t$tbl_slide->order_by->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($tbl_slide->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$tbl_slide->Row_Rendered();\n\t}", "public function getRow() {}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $tbl_profile;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$tbl_profile->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// facultyprofile_ID\n\n\t\t$tbl_profile->facultyprofile_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// faculty_ID\n\t\t$tbl_profile->faculty_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// faculty_name\n\t\t$tbl_profile->faculty_name->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_ID\n\t\t$tbl_profile->collectionPeriod_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// cu\n\t\t$tbl_profile->cu->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_ay\n\t\t$tbl_profile->collectionPeriod_ay->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_sem\n\t\t$tbl_profile->collectionPeriod_sem->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_cutOffDate\n\t\t$tbl_profile->collectionPeriod_cutOffDate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// unitID\n\t\t$tbl_profile->unitID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_homeUnit_ID\n\t\t$tbl_profile->facultyprofile_homeUnit_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_isHomeUnit\n\t\t$tbl_profile->facultyprofile_isHomeUnit->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyGroup_CHEDCode\n\t\t$tbl_profile->facultyGroup_CHEDCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyRank_ID\n\t\t$tbl_profile->facultyRank_ID->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_sg\n\t\t$tbl_profile->facultyprofile_sg->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_annualSalary\n\t\t$tbl_profile->facultyprofile_annualSalary->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_fte\n\t\t$tbl_profile->facultyprofile_fte->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_tenureCode\n\t\t$tbl_profile->facultyprofile_tenureCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_leaveCode\n\t\t$tbl_profile->facultyprofile_leaveCode->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_disCHED_disciplineMajorCode_gen\n\t\t$tbl_profile->facultyprofile_disCHED_disciplineMajorCode_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// disCHED_disciplineCode_gen\n\t\t$tbl_profile->disCHED_disciplineCode_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_specificDiscipline_2_primaryTeachingLoad\n\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_basic\n\t\t$tbl_profile->facultyprofile_labHrs_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_basic\n\t\t$tbl_profile->facultyprofile_lecHrs_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_basic\n\t\t// facultyprofile_labSCH_basic\n\n\t\t$tbl_profile->facultyprofile_labSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_basic\n\t\t$tbl_profile->facultyprofile_lecSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_basic\n\t\t$tbl_profile->facultyprofile_totalSCH_basic->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labCr_ugrad\n\t\t$tbl_profile->facultyprofile_labCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecCr_ugrad\n\t\t$tbl_profile->facultyprofile_lecCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecCr_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalCr_ugrad\n\t\t$tbl_profile->facultyprofile_totalCr_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_ugrad\n\t\t$tbl_profile->facultyprofile_labHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_ugrad\n\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecHrs_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_ugrad\n\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labSCH_ugrad\n\t\t$tbl_profile->facultyprofile_labSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_ugrad\n\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecSCH_ugrad\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_ugrad\n\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labCr_graduate\n\t\t$tbl_profile->facultyprofile_labCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecCr_graduate\n\t\t$tbl_profile->facultyprofile_lecCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecCr_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalCr_graduate\n\t\t$tbl_profile->facultyprofile_totalCr_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labHrs_graduate\n\t\t$tbl_profile->facultyprofile_labHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecHrs_graduate\n\t\t$tbl_profile->facultyprofile_lecHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecHrs_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalHrs_graduate\n\t\t$tbl_profile->facultyprofile_totalHrs_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_labSCH_graduate\n\t\t$tbl_profile->facultyprofile_labSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_lecSCH_graduate\n\t\t$tbl_profile->facultyprofile_lecSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_mixedLabLecSCH_graduate\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalSCH_graduate\n\t\t$tbl_profile->facultyprofile_totalSCH_graduate->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_researchLoad\n\t\t$tbl_profile->facultyprofile_researchLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_extensionServicesLoad\n\t\t$tbl_profile->facultyprofile_extensionServicesLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_studyLoad\n\t\t$tbl_profile->facultyprofile_studyLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_forProductionLoad\n\t\t$tbl_profile->facultyprofile_forProductionLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_administrativeLoad\n\t\t$tbl_profile->facultyprofile_administrativeLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_otherLoadCredits\n\t\t$tbl_profile->facultyprofile_otherLoadCredits->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_total_nonTeachingLoad\n\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// facultyprofile_remarks\n\t\t$tbl_profile->facultyprofile_remarks->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// collectionPeriod_status\n\t\t$tbl_profile->collectionPeriod_status->CellCssStyle = \"white-space: nowrap;\";\n\t\tif ($tbl_profile->RowType == UP_ROWTYPE_VIEW) { // View row\n\n\t\t\t// faculty_name\n\t\t\t$tbl_profile->faculty_name->ViewValue = $tbl_profile->faculty_name->CurrentValue;\n\t\t\t$tbl_profile->faculty_name->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyGroup_CHEDCode\n\t\t\tif (strval($tbl_profile->facultyGroup_CHEDCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`facultyGroup_CHEDCode` = '\" . up_AdjustSql($tbl_profile->facultyGroup_CHEDCode->CurrentValue) . \"'\";\n\t\t\t$sSqlWrk = \"SELECT `facultyGroup_description` FROM `ref_facultygroup`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `facultyGroup_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = $rswrk->fields('facultyGroup_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = $tbl_profile->facultyGroup_CHEDCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyRank_ID\n\t\t\tif (strval($tbl_profile->facultyRank_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`facultyRank_ID` = \" . up_AdjustSql($tbl_profile->facultyRank_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `facultyRank_UPRank` FROM `ref_facultyrank`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `facultyRank_UPRank` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = $rswrk->fields('facultyRank_UPRank');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = $tbl_profile->facultyRank_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyRank_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyRank_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_sg\n\t\t\t$tbl_profile->facultyprofile_sg->ViewValue = $tbl_profile->facultyprofile_sg->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_sg->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_annualSalary\n\t\t\t$tbl_profile->facultyprofile_annualSalary->ViewValue = $tbl_profile->facultyprofile_annualSalary->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_annualSalary->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_tenureCode\n\t\t\tif (strval($tbl_profile->facultyprofile_tenureCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`tenureCode_ID` = \" . up_AdjustSql($tbl_profile->facultyprofile_tenureCode->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `tenureCode_description` FROM `ref_tenurecode`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `tenureCode_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = $rswrk->fields('tenureCode_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = $tbl_profile->facultyprofile_tenureCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_tenureCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_leaveCode\n\t\t\tif (strval($tbl_profile->facultyprofile_leaveCode->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`leaveCode_ID` = \" . up_AdjustSql($tbl_profile->facultyprofile_leaveCode->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `leaveCode_description` FROM `ref_leavecode`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `leaveCode_description` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = $rswrk->fields('leaveCode_description');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = $tbl_profile->facultyprofile_leaveCode->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_leaveCode->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t\tif (strval($tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`disCHED_disciplineSpecific_code` = \" . up_AdjustSql($tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `disCHED_disciplineSpecific_nameList` FROM `ref_disciplinechedcodes_minor`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `disCHED_disciplineSpecific_nameList` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = $rswrk->fields('disCHED_disciplineSpecific_nameList');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = $tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_2_primaryTeachingLoad\n\t\t\tif (strval($tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`disCHED_disciplineSpecific_code` = \" . up_AdjustSql($tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `disCHED_disciplineSpecific_nameList` FROM `ref_disciplinechedcodes_minor`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `disCHED_disciplineSpecific_nameList` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = $rswrk->fields('disCHED_disciplineSpecific_nameList');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = $tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewValue = NULL;\n\t\t\t}\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_basic\n\t\t\t$tbl_profile->facultyprofile_labHrs_basic->ViewValue = $tbl_profile->facultyprofile_labHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_basic\n\t\t\t$tbl_profile->facultyprofile_lecHrs_basic->ViewValue = $tbl_profile->facultyprofile_lecHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_basic\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->ViewValue = $tbl_profile->facultyprofile_totalHrs_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_basic\n\t\t\t$tbl_profile->facultyprofile_labSCH_basic->ViewValue = $tbl_profile->facultyprofile_labSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_basic\n\t\t\t$tbl_profile->facultyprofile_lecSCH_basic->ViewValue = $tbl_profile->facultyprofile_lecSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_basic\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->ViewValue = $tbl_profile->facultyprofile_totalSCH_basic->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_labCr_ugrad->ViewValue = $tbl_profile->facultyprofile_labCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecCr_ugrad->ViewValue = $tbl_profile->facultyprofile_lecCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->ViewValue = $tbl_profile->facultyprofile_totalCr_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_labHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_labHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_lecHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->ViewValue = $tbl_profile->facultyprofile_totalHrs_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_labSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_labSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_lecSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->ViewValue = $tbl_profile->facultyprofile_totalSCH_ugrad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labCr_graduate\n\t\t\t$tbl_profile->facultyprofile_labCr_graduate->ViewValue = $tbl_profile->facultyprofile_labCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecCr_graduate\n\t\t\t$tbl_profile->facultyprofile_lecCr_graduate->ViewValue = $tbl_profile->facultyprofile_lecCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecCr_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalCr_graduate\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->ViewValue = $tbl_profile->facultyprofile_totalCr_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_labHrs_graduate->ViewValue = $tbl_profile->facultyprofile_labHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_lecHrs_graduate->ViewValue = $tbl_profile->facultyprofile_lecHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->ViewValue = $tbl_profile->facultyprofile_totalHrs_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_labSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_labSCH_graduate->ViewValue = $tbl_profile->facultyprofile_labSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_labSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_lecSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_lecSCH_graduate->ViewValue = $tbl_profile->facultyprofile_lecSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_lecSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_mixedLabLecSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->ViewValue = $tbl_profile->facultyprofile_mixedLabLecSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->ViewValue = $tbl_profile->facultyprofile_totalSCH_graduate->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_researchLoad\n\t\t\t$tbl_profile->facultyprofile_researchLoad->ViewValue = $tbl_profile->facultyprofile_researchLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_researchLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_extensionServicesLoad\n\t\t\t$tbl_profile->facultyprofile_extensionServicesLoad->ViewValue = $tbl_profile->facultyprofile_extensionServicesLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_extensionServicesLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_studyLoad\n\t\t\t$tbl_profile->facultyprofile_studyLoad->ViewValue = $tbl_profile->facultyprofile_studyLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_studyLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_forProductionLoad\n\t\t\t$tbl_profile->facultyprofile_forProductionLoad->ViewValue = $tbl_profile->facultyprofile_forProductionLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_forProductionLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_administrativeLoad\n\t\t\t$tbl_profile->facultyprofile_administrativeLoad->ViewValue = $tbl_profile->facultyprofile_administrativeLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_administrativeLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_otherLoadCredits\n\t\t\t$tbl_profile->facultyprofile_otherLoadCredits->ViewValue = $tbl_profile->facultyprofile_otherLoadCredits->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_otherLoadCredits->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_total_nonTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->ViewValue = $tbl_profile->facultyprofile_total_nonTeachingLoad->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->ViewValue = $tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->ViewCustomAttributes = \"\";\n\n\t\t\t// facultyprofile_remarks\n\t\t\t$tbl_profile->facultyprofile_remarks->ViewValue = $tbl_profile->facultyprofile_remarks->CurrentValue;\n\t\t\t$tbl_profile->facultyprofile_remarks->ViewCustomAttributes = \"\";\n\n\t\t\t// faculty_name\n\t\t\t$tbl_profile->faculty_name->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->faculty_name->HrefValue = \"\";\n\t\t\t$tbl_profile->faculty_name->TooltipValue = \"\";\n\n\t\t\t// facultyGroup_CHEDCode\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyGroup_CHEDCode->TooltipValue = \"\";\n\n\t\t\t// facultyRank_ID\n\t\t\t$tbl_profile->facultyRank_ID->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyRank_ID->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyRank_ID->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_tenureCode\n\t\t\t$tbl_profile->facultyprofile_tenureCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_tenureCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_tenureCode->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_leaveCode\n\t\t\t$tbl_profile->facultyprofile_leaveCode->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_leaveCode->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_leaveCode->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_specificDiscipline_1_primaryTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_basic\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_basic->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_basic\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_basic->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalCr_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_ugrad\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalCr_graduate\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalCr_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalHrs_graduate\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalHrs_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalSCH_graduate\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalSCH_graduate->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_total_nonTeachingLoad\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->TooltipValue = \"\";\n\n\t\t\t// facultyprofile_totalWorkloadInCreditUnits_gen\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->LinkCustomAttributes = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->HrefValue = \"\";\n\t\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($tbl_profile->RowType <> UP_ROWTYPE_AGGREGATEINIT)\n\t\t\t$tbl_profile->Row_Rendered();\n\t}", "public function renderTableRow($model) {\n $cells = [];\n /* @var $column Column */\n foreach ($this->columns as $column) {\n $cells[] = $column->renderContentCell($model);\n }\n\tif (is_callable($this->rowOptions) && $model !== null)\n\t $options = call_user_func($this->rowOptions, $model, $this);\n\telse\n\t $options = $this->rowOptions;\n\n $options['data-key'] = (string)$model->key();\n\n return Widget::html()->tag('table-row', array('content' => implode('', $cells)), $options);\n }", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t// Common render codes\n\t\t// rid\n\t\t// usn\n\t\t// name\n\t\t// sc1\n\t\t// s1\n\t\t// sc2\n\t\t// s2\n\t\t// sc3\n\t\t// s3\n\t\t// sc4\n\t\t// s4\n\t\t// sc5\n\t\t// s5\n\t\t// sc6\n\t\t// s6\n\t\t// sc7\n\t\t// s7\n\t\t// sc8\n\t\t// s8\n\t\t// total\n\t\t// rid\n\n\t\t$this->rid->ViewValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->ViewValue = $this->usn->CurrentValue;\n\t\t$this->usn->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->ViewValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->ViewCustomAttributes = \"\";\n\n\t\t// s1\n\t\t$this->s1->ViewValue = $this->s1->CurrentValue;\n\t\t$this->s1->ViewCustomAttributes = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->ViewValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->ViewCustomAttributes = \"\";\n\n\t\t// s2\n\t\t$this->s2->ViewValue = $this->s2->CurrentValue;\n\t\t$this->s2->ViewCustomAttributes = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->ViewValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->ViewCustomAttributes = \"\";\n\n\t\t// s3\n\t\t$this->s3->ViewValue = $this->s3->CurrentValue;\n\t\t$this->s3->ViewCustomAttributes = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->ViewValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->ViewCustomAttributes = \"\";\n\n\t\t// s4\n\t\t$this->s4->ViewValue = $this->s4->CurrentValue;\n\t\t$this->s4->ViewCustomAttributes = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->ViewValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->ViewCustomAttributes = \"\";\n\n\t\t// s5\n\t\t$this->s5->ViewValue = $this->s5->CurrentValue;\n\t\t$this->s5->ViewCustomAttributes = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->ViewValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->ViewCustomAttributes = \"\";\n\n\t\t// s6\n\t\t$this->s6->ViewValue = $this->s6->CurrentValue;\n\t\t$this->s6->ViewCustomAttributes = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->ViewValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->ViewCustomAttributes = \"\";\n\n\t\t// s7\n\t\t$this->s7->ViewValue = $this->s7->CurrentValue;\n\t\t$this->s7->ViewCustomAttributes = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->ViewValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->ViewCustomAttributes = \"\";\n\n\t\t// s8\n\t\t$this->s8->ViewValue = $this->s8->CurrentValue;\n\t\t$this->s8->ViewCustomAttributes = \"\";\n\n\t\t// total\n\t\t$this->total->ViewValue = $this->total->CurrentValue;\n\t\t$this->total->ViewCustomAttributes = \"\";\n\n\t\t// rid\n\t\t$this->rid->LinkCustomAttributes = \"\";\n\t\t$this->rid->HrefValue = \"\";\n\t\t$this->rid->TooltipValue = \"\";\n\n\t\t// usn\n\t\t$this->usn->LinkCustomAttributes = \"\";\n\t\t$this->usn->HrefValue = \"\";\n\t\t$this->usn->TooltipValue = \"\";\n\n\t\t// name\n\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t$this->name->HrefValue = \"\";\n\t\t$this->name->TooltipValue = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->LinkCustomAttributes = \"\";\n\t\t$this->sc1->HrefValue = \"\";\n\t\t$this->sc1->TooltipValue = \"\";\n\n\t\t// s1\n\t\t$this->s1->LinkCustomAttributes = \"\";\n\t\t$this->s1->HrefValue = \"\";\n\t\t$this->s1->TooltipValue = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->LinkCustomAttributes = \"\";\n\t\t$this->sc2->HrefValue = \"\";\n\t\t$this->sc2->TooltipValue = \"\";\n\n\t\t// s2\n\t\t$this->s2->LinkCustomAttributes = \"\";\n\t\t$this->s2->HrefValue = \"\";\n\t\t$this->s2->TooltipValue = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->LinkCustomAttributes = \"\";\n\t\t$this->sc3->HrefValue = \"\";\n\t\t$this->sc3->TooltipValue = \"\";\n\n\t\t// s3\n\t\t$this->s3->LinkCustomAttributes = \"\";\n\t\t$this->s3->HrefValue = \"\";\n\t\t$this->s3->TooltipValue = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->LinkCustomAttributes = \"\";\n\t\t$this->sc4->HrefValue = \"\";\n\t\t$this->sc4->TooltipValue = \"\";\n\n\t\t// s4\n\t\t$this->s4->LinkCustomAttributes = \"\";\n\t\t$this->s4->HrefValue = \"\";\n\t\t$this->s4->TooltipValue = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->LinkCustomAttributes = \"\";\n\t\t$this->sc5->HrefValue = \"\";\n\t\t$this->sc5->TooltipValue = \"\";\n\n\t\t// s5\n\t\t$this->s5->LinkCustomAttributes = \"\";\n\t\t$this->s5->HrefValue = \"\";\n\t\t$this->s5->TooltipValue = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->LinkCustomAttributes = \"\";\n\t\t$this->sc6->HrefValue = \"\";\n\t\t$this->sc6->TooltipValue = \"\";\n\n\t\t// s6\n\t\t$this->s6->LinkCustomAttributes = \"\";\n\t\t$this->s6->HrefValue = \"\";\n\t\t$this->s6->TooltipValue = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->LinkCustomAttributes = \"\";\n\t\t$this->sc7->HrefValue = \"\";\n\t\t$this->sc7->TooltipValue = \"\";\n\n\t\t// s7\n\t\t$this->s7->LinkCustomAttributes = \"\";\n\t\t$this->s7->HrefValue = \"\";\n\t\t$this->s7->TooltipValue = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->LinkCustomAttributes = \"\";\n\t\t$this->sc8->HrefValue = \"\";\n\t\t$this->sc8->TooltipValue = \"\";\n\n\t\t// s8\n\t\t$this->s8->LinkCustomAttributes = \"\";\n\t\t$this->s8->HrefValue = \"\";\n\t\t$this->s8->TooltipValue = \"\";\n\n\t\t// total\n\t\t$this->total->LinkCustomAttributes = \"\";\n\t\t$this->total->HrefValue = \"\";\n\t\t$this->total->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->CustomTemplateFieldValues();\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// gjd_id\n\t\t// gjm_id\n\t\t// peg_id\n\t\t// b_mn\n\t\t// b_sn\n\t\t// b_sl\n\t\t// b_rb\n\t\t// b_km\n\t\t// b_jm\n\t\t// b_sb\n\t\t// l_mn\n\t\t// l_sn\n\t\t// l_sl\n\t\t// l_rb\n\t\t// l_km\n\t\t// l_jm\n\t\t// l_sb\n\t\t// gjd_id\n\n\t\t$this->gjd_id->ViewValue = $this->gjd_id->CurrentValue;\n\t\t$this->gjd_id->ViewCustomAttributes = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->ViewValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->ViewCustomAttributes = \"\";\n\n\t\t// peg_id\n\t\tif (strval($this->peg_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`peg_id`\" . ew_SearchString(\"=\", $this->peg_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `peg_id`, `peg_nama` AS `DispFld`, `peg_jabatan` AS `Disp2Fld`, `peg_upah` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `t_pegawai`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->peg_id->LookupFilters = array(\"dx1\" => '`peg_nama`', \"dx2\" => '`peg_jabatan`', \"dx3\" => '`peg_upah`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->peg_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = ew_FormatNumber($rswrk->fields('Disp3Fld'), 0, -2, -2, -1);\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->peg_id->ViewValue = NULL;\n\t\t}\n\t\t$this->peg_id->ViewCustomAttributes = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->ViewValue = $this->b_mn->CurrentValue;\n\t\t$this->b_mn->ViewCustomAttributes = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->ViewValue = $this->b_sn->CurrentValue;\n\t\t$this->b_sn->ViewCustomAttributes = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->ViewValue = $this->b_sl->CurrentValue;\n\t\t$this->b_sl->ViewCustomAttributes = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->ViewValue = $this->b_rb->CurrentValue;\n\t\t$this->b_rb->ViewCustomAttributes = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->ViewValue = $this->b_km->CurrentValue;\n\t\t$this->b_km->ViewCustomAttributes = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->ViewValue = $this->b_jm->CurrentValue;\n\t\t$this->b_jm->ViewCustomAttributes = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->ViewValue = $this->b_sb->CurrentValue;\n\t\t$this->b_sb->ViewCustomAttributes = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->ViewValue = $this->l_mn->CurrentValue;\n\t\t$this->l_mn->ViewCustomAttributes = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->ViewValue = $this->l_sn->CurrentValue;\n\t\t$this->l_sn->ViewCustomAttributes = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->ViewValue = $this->l_sl->CurrentValue;\n\t\t$this->l_sl->ViewCustomAttributes = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->ViewValue = $this->l_rb->CurrentValue;\n\t\t$this->l_rb->ViewCustomAttributes = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->ViewValue = $this->l_km->CurrentValue;\n\t\t$this->l_km->ViewCustomAttributes = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->ViewValue = $this->l_jm->CurrentValue;\n\t\t$this->l_jm->ViewCustomAttributes = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->ViewValue = $this->l_sb->CurrentValue;\n\t\t$this->l_sb->ViewCustomAttributes = \"\";\n\n\t\t// gjd_id\n\t\t$this->gjd_id->LinkCustomAttributes = \"\";\n\t\t$this->gjd_id->HrefValue = \"\";\n\t\t$this->gjd_id->TooltipValue = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->LinkCustomAttributes = \"\";\n\t\t$this->gjm_id->HrefValue = \"\";\n\t\t$this->gjm_id->TooltipValue = \"\";\n\n\t\t// peg_id\n\t\t$this->peg_id->LinkCustomAttributes = \"\";\n\t\t$this->peg_id->HrefValue = \"\";\n\t\t$this->peg_id->TooltipValue = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->LinkCustomAttributes = \"\";\n\t\t$this->b_mn->HrefValue = \"\";\n\t\t$this->b_mn->TooltipValue = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->LinkCustomAttributes = \"\";\n\t\t$this->b_sn->HrefValue = \"\";\n\t\t$this->b_sn->TooltipValue = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->LinkCustomAttributes = \"\";\n\t\t$this->b_sl->HrefValue = \"\";\n\t\t$this->b_sl->TooltipValue = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->LinkCustomAttributes = \"\";\n\t\t$this->b_rb->HrefValue = \"\";\n\t\t$this->b_rb->TooltipValue = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->LinkCustomAttributes = \"\";\n\t\t$this->b_km->HrefValue = \"\";\n\t\t$this->b_km->TooltipValue = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->LinkCustomAttributes = \"\";\n\t\t$this->b_jm->HrefValue = \"\";\n\t\t$this->b_jm->TooltipValue = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->LinkCustomAttributes = \"\";\n\t\t$this->b_sb->HrefValue = \"\";\n\t\t$this->b_sb->TooltipValue = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->LinkCustomAttributes = \"\";\n\t\t$this->l_mn->HrefValue = \"\";\n\t\t$this->l_mn->TooltipValue = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->LinkCustomAttributes = \"\";\n\t\t$this->l_sn->HrefValue = \"\";\n\t\t$this->l_sn->TooltipValue = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->LinkCustomAttributes = \"\";\n\t\t$this->l_sl->HrefValue = \"\";\n\t\t$this->l_sl->TooltipValue = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->LinkCustomAttributes = \"\";\n\t\t$this->l_rb->HrefValue = \"\";\n\t\t$this->l_rb->TooltipValue = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->LinkCustomAttributes = \"\";\n\t\t$this->l_km->HrefValue = \"\";\n\t\t$this->l_km->TooltipValue = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->LinkCustomAttributes = \"\";\n\t\t$this->l_jm->HrefValue = \"\";\n\t\t$this->l_jm->TooltipValue = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->LinkCustomAttributes = \"\";\n\t\t$this->l_sb->HrefValue = \"\";\n\t\t$this->l_sb->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// IDXDAFTAR\n\t\t// TGLREG\n\t\t// NOMR\n\t\t// KETERANGAN\n\t\t// NOKARTU_BPJS\n\t\t// NOKTP\n\t\t// KDDOKTER\n\t\t// KDPOLY\n\t\t// KDRUJUK\n\t\t// KDCARABAYAR\n\t\t// NOJAMINAN\n\t\t// SHIFT\n\t\t// STATUS\n\t\t// KETERANGAN_STATUS\n\t\t// PASIENBARU\n\t\t// NIP\n\t\t// MASUKPOLY\n\t\t// KELUARPOLY\n\t\t// KETRUJUK\n\t\t// KETBAYAR\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t// JAMREG\n\t\t// BATAL\n\t\t// NO_SJP\n\t\t// NO_PESERTA\n\t\t// NOKARTU\n\t\t// TANGGAL_SEP\n\t\t// TANGGALRUJUK_SEP\n\t\t// KELASRAWAT_SEP\n\t\t// MINTA_RUJUKAN\n\t\t// NORUJUKAN_SEP\n\t\t// PPKRUJUKANASAL_SEP\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t// PPKPELAYANAN_SEP\n\t\t// JENISPERAWATAN_SEP\n\t\t// CATATAN_SEP\n\t\t// DIAGNOSAAWAL_SEP\n\t\t// NAMADIAGNOSA_SEP\n\t\t// LAKALANTAS_SEP\n\t\t// LOKASILAKALANTAS\n\t\t// USER\n\t\t// tanggal\n\t\t// bulan\n\t\t// tahun\n\t\t// IDXDAFTAR\n\n\t\t$this->IDXDAFTAR->ViewValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->ViewValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->ViewValue = ew_FormatDateTime($this->TGLREG->ViewValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->ViewValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->ViewValue = $this->KETERANGAN->CurrentValue;\n\t\t$this->KETERANGAN->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->ViewValue = $this->NOKARTU_BPJS->CurrentValue;\n\t\t$this->NOKARTU_BPJS->ViewCustomAttributes = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->ViewValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->ViewCustomAttributes = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\tif (strval($this->KDDOKTER->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->KDDOKTER->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDDOKTER->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDDOKTER, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDDOKTER->ViewValue = NULL;\n\t\t}\n\t\t$this->KDDOKTER->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->ViewValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\tif (strval($this->KDRUJUK->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDRUJUK->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDRUJUK->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDRUJUK, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDRUJUK->ViewValue = NULL;\n\t\t}\n\t\t$this->KDRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->ViewValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->ViewValue = $this->NOJAMINAN->CurrentValue;\n\t\t$this->NOJAMINAN->ViewCustomAttributes = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->ViewValue = $this->SHIFT->CurrentValue;\n\t\t$this->SHIFT->ViewCustomAttributes = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->ViewValue = $this->STATUS->CurrentValue;\n\t\t$this->STATUS->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->ViewValue = $this->KETERANGAN_STATUS->CurrentValue;\n\t\t$this->KETERANGAN_STATUS->ViewCustomAttributes = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->ViewValue = $this->PASIENBARU->CurrentValue;\n\t\t$this->PASIENBARU->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->ViewValue = $this->MASUKPOLY->CurrentValue;\n\t\t$this->MASUKPOLY->ViewValue = ew_FormatDateTime($this->MASUKPOLY->ViewValue, 4);\n\t\t$this->MASUKPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->ViewValue = $this->KELUARPOLY->CurrentValue;\n\t\t$this->KELUARPOLY->ViewValue = ew_FormatDateTime($this->KELUARPOLY->ViewValue, 4);\n\t\t$this->KELUARPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->ViewValue = $this->KETRUJUK->CurrentValue;\n\t\t$this->KETRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->ViewValue = $this->KETBAYAR->CurrentValue;\n\t\t$this->KETBAYAR->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->ViewValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->ViewValue = ew_FormatDateTime($this->JAMREG->ViewValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->ViewValue = $this->BATAL->CurrentValue;\n\t\t$this->BATAL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->ViewValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->ViewValue = $this->NO_PESERTA->CurrentValue;\n\t\t$this->NO_PESERTA->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->ViewValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->ViewValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->ViewValue = ew_FormatDateTime($this->TANGGAL_SEP->ViewValue, 0);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->ViewValue, 0);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->ViewValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->ViewValue = $this->MINTA_RUJUKAN->CurrentValue;\n\t\t$this->MINTA_RUJUKAN->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->ViewValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->ViewValue = $this->PPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->PPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewValue = $this->NAMAPPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->ViewValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->ViewValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->ViewValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->ViewValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->ViewValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// bulan\n\t\tif (strval($this->bulan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`bulan_id`\" . ew_SearchString(\"=\", $this->bulan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `bulan_id`, `bulan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_bulan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->bulan->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->bulan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->bulan->ViewValue = NULL;\n\t\t}\n\t\t$this->bulan->ViewCustomAttributes = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->ViewValue = $this->tahun->CurrentValue;\n\t\t$this->tahun->ViewCustomAttributes = \"\";\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->LinkCustomAttributes = \"\";\n\t\t$this->IDXDAFTAR->HrefValue = \"\";\n\t\t$this->IDXDAFTAR->TooltipValue = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t$this->TGLREG->HrefValue = \"\";\n\t\t$this->TGLREG->TooltipValue = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t$this->NOMR->HrefValue = \"\";\n\t\t$this->NOMR->TooltipValue = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN->HrefValue = \"\";\n\t\t$this->KETERANGAN->TooltipValue = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU_BPJS->HrefValue = \"\";\n\t\t$this->NOKARTU_BPJS->TooltipValue = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->LinkCustomAttributes = \"\";\n\t\t$this->NOKTP->HrefValue = \"\";\n\t\t$this->NOKTP->TooltipValue = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->LinkCustomAttributes = \"\";\n\t\t$this->KDDOKTER->HrefValue = \"\";\n\t\t$this->KDDOKTER->TooltipValue = \"\";\n\n\t\t// KDPOLY\n\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KDPOLY->HrefValue = \"\";\n\t\t$this->KDPOLY->TooltipValue = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KDRUJUK->HrefValue = \"\";\n\t\t$this->KDRUJUK->TooltipValue = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\t\t$this->KDCARABAYAR->TooltipValue = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->LinkCustomAttributes = \"\";\n\t\t$this->NOJAMINAN->HrefValue = \"\";\n\t\t$this->NOJAMINAN->TooltipValue = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->LinkCustomAttributes = \"\";\n\t\t$this->SHIFT->HrefValue = \"\";\n\t\t$this->SHIFT->TooltipValue = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->LinkCustomAttributes = \"\";\n\t\t$this->STATUS->HrefValue = \"\";\n\t\t$this->STATUS->TooltipValue = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN_STATUS->HrefValue = \"\";\n\t\t$this->KETERANGAN_STATUS->TooltipValue = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->LinkCustomAttributes = \"\";\n\t\t$this->PASIENBARU->HrefValue = \"\";\n\t\t$this->PASIENBARU->TooltipValue = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t$this->NIP->HrefValue = \"\";\n\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->LinkCustomAttributes = \"\";\n\t\t$this->MASUKPOLY->HrefValue = \"\";\n\t\t$this->MASUKPOLY->TooltipValue = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KELUARPOLY->HrefValue = \"\";\n\t\t$this->KELUARPOLY->TooltipValue = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KETRUJUK->HrefValue = \"\";\n\t\t$this->KETRUJUK->TooltipValue = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KETBAYAR->HrefValue = \"\";\n\t\t$this->KETBAYAR->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->TooltipValue = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t$this->JAMREG->HrefValue = \"\";\n\t\t$this->JAMREG->TooltipValue = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->LinkCustomAttributes = \"\";\n\t\t$this->BATAL->HrefValue = \"\";\n\t\t$this->BATAL->TooltipValue = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t$this->NO_SJP->HrefValue = \"\";\n\t\t$this->NO_SJP->TooltipValue = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->LinkCustomAttributes = \"\";\n\t\t$this->NO_PESERTA->HrefValue = \"\";\n\t\t$this->NO_PESERTA->TooltipValue = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU->HrefValue = \"\";\n\t\t$this->NOKARTU->TooltipValue = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\t\t$this->TANGGAL_SEP->TooltipValue = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\t\t$this->TANGGALRUJUK_SEP->TooltipValue = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\t\t$this->KELASRAWAT_SEP->TooltipValue = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->LinkCustomAttributes = \"\";\n\t\t$this->MINTA_RUJUKAN->HrefValue = \"\";\n\t\t$this->MINTA_RUJUKAN->TooltipValue = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\t\t$this->NORUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\t\t$this->PPKPELAYANAN_SEP->TooltipValue = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\t\t$this->JENISPERAWATAN_SEP->TooltipValue = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\t\t$this->CATATAN_SEP->TooltipValue = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->TooltipValue = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\t\t$this->LAKALANTAS_SEP->TooltipValue = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\t\t$this->LOKASILAKALANTAS->TooltipValue = \"\";\n\n\t\t// USER\n\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t$this->USER->HrefValue = \"\";\n\t\t$this->USER->TooltipValue = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t$this->tanggal->HrefValue = \"\";\n\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t// bulan\n\t\t$this->bulan->LinkCustomAttributes = \"\";\n\t\t$this->bulan->HrefValue = \"\";\n\t\t$this->bulan->TooltipValue = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->LinkCustomAttributes = \"\";\n\t\t$this->tahun->HrefValue = \"\";\n\t\t$this->tahun->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function render()\n\t{\n\n\t\t$table = \"<table\";\n\n\t\t// Add all attributes\n\t\tforeach ($this->attributes as $key => $value) {\n\t\t\t$table .= ' ' . $key . '=\"' . $value .'\"';\n\t\t}\n\n\t\t$table .= \">\"; // Close table\n\n\t\t// Add the head\n\t\tif ($this->showHeadRow) {\n\t\t\t$table .= \"<thead><tr>\";\n\n\t\t\t// Show the number header.\n\t\t\tif ($this->showNumberColumn) {\n\t\t\t\t$table .= \"<th>#</th>\";\n\t\t\t}\n\n\t\t\tforeach ($this->columns as $column) {\n\t\t\t\t$columnHeadTitle = isset($column['headTitle']) ? $column['headTitle'] : $column[0];\n\t\t\t\t$table .= \"<th>\" . $columnHeadTitle . \"</th>\";\n\t\t\t}\n\n\t\t\t$table .= \"</tr></thead>\"; // finish head\n\t\t}\n\n\t\t// Body\n\t\t$table .= \"<tbody>\";\n\n\t\t$row = $this->numberColumnOffset;\n\n\t\tif (count($this->data) == 0) {\n\t\t\t// Show a no data entry\n\t\t\t$colspan = count($this->columns) + ($this->showNumberColumn ? 1 : 0);\n\t\t\t$table .= '<tr><td colspan=\"'.$colspan.'\"><p align=\"center\" style=\"font-weight:bold;\">Keine Einträge</p></td></tr>';\n\t\t}\n\t\telse {\n\t\t\tforeach ($this->data as $dataObject) {\n\n\t\t\t\t// Row attributes\n\t\t\t\t$attributes = $this->rowAttributes;\n\t\t\t\tif (!is_array($attributes)) {\n\t\t\t\t\tif (is_callable($this->rowAttributes)) {\n\t\t\t\t\t\t$callable = $this->rowAttributes;\n\t\t\t\t\t\t$attributes = $callable($dataObject);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$attributeString = '';\n\t\t\t\tif ($attributes) {\t\t// Add attributes if we have some\n\t\t\t\t\tforeach ($attributes as $attributeName => $attributeValue) {\n\t\t\t\t\t\t$attributeString .= $attributeName . '=\"' . $attributeValue . '\" ' ;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->rowIdDataMethod) {\n\t\t\t\t\t// method name or closure?\n\t\t\t\t\t$id = '';\n\t\t\t\t\tif (is_string($this->rowIdDataMethod)) {\n\t\t\t\t\t\t$id = $dataObject->{$this->rowIdDataMethod}(); // Call the row data method\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$rf = new \\ReflectionFunction($this->rowIdDataMethod);\n\t\t\t\t\t\tif ($rf->isClosure()) {\n\t\t\t\t\t\t\t// we got a closure\n\t\t\t\t\t\t\t$closure = $this->rowIdDataMethod;\n\t\t\t\t\t\t\t$id = $closure($dataObject);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t$table .= '<tr id=\"'. $id .'\" ' . $attributeString . '>'; // Start row with id\n\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$table .= \"<tr \". $attributeString .\">\";\t// Start row without id\n\t\t\t\t}\n\n\t\t\t\t// Number?\n\t\t\t\tif ($this->showNumberColumn) {\n\t\t\t\t\t$table .= \"<td>\" . $row . \"</td>\";\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->columns as $column) {\n\t\t\t\t\t$dataMethod = isset($column['dataMethod']) ? $column['dataMethod'] : $column[1];\n\t\t\t\t\tif (is_string($dataMethod)) {\n\t\t\t\t\t\t// Just call the method an insert the return value into the table cell\n\t\t\t\t\t\t$table .= \"<td>\". $dataObject->$dataMethod() .\"</td>\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$rf = new \\ReflectionFunction($dataMethod);\n\t\t\t\t\t\tif ($rf->isClosure()) {\n\n\t\t\t\t\t\t\t// Call the closure and get the result\n\t\t\t\t\t\t\t$value = $dataMethod($dataObject, $this);\n\n\t\t\t\t\t\t\t$table .= \"<td>\". $value .\"</td>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$table .= \"</tr>\";\t// End the table row\n\t\t\t\t$row++;\n\t\t\t}\n\n\t\t\t// Render the footer row\n\t\t\t$table = $this->renderFooter($table);\n\n\t\t}\n\n\t\t$table .= \"</tbody>\";\n\n\t\t$table .= \"</table>\";\n\t\treturn $table;\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Balance->FormValue == $this->Balance->CurrentValue && is_numeric(ew_StrToFloat($this->Balance->CurrentValue)))\n\t\t\t$this->Balance->CurrentValue = ew_StrToFloat($this->Balance->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Supplier_ID\n\t\t// Supplier_Number\n\t\t// Supplier_Name\n\t\t// Address\n\t\t// City\n\t\t// Country\n\t\t// Contact_Person\n\t\t// Phone_Number\n\t\t// Email\n\t\t// Mobile_Number\n\t\t// Notes\n\t\t// Balance\n\t\t// Is_Stock_Available\n\t\t// Date_Added\n\t\t// Added_By\n\t\t// Date_Updated\n\t\t// Updated_By\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Supplier_ID\n\t\t$this->Supplier_ID->ViewValue = $this->Supplier_ID->CurrentValue;\n\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Number\n\t\t$this->Supplier_Number->ViewValue = $this->Supplier_Number->CurrentValue;\n\t\t$this->Supplier_Number->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Name\n\t\t$this->Supplier_Name->ViewValue = $this->Supplier_Name->CurrentValue;\n\t\t$this->Supplier_Name->ViewCustomAttributes = \"\";\n\n\t\t// Address\n\t\t$this->Address->ViewValue = $this->Address->CurrentValue;\n\t\t$this->Address->ViewCustomAttributes = \"\";\n\n\t\t// City\n\t\t$this->City->ViewValue = $this->City->CurrentValue;\n\t\t$this->City->ViewCustomAttributes = \"\";\n\n\t\t// Country\n\t\t$this->Country->ViewValue = $this->Country->CurrentValue;\n\t\t$this->Country->ViewCustomAttributes = \"\";\n\n\t\t// Contact_Person\n\t\t$this->Contact_Person->ViewValue = $this->Contact_Person->CurrentValue;\n\t\t$this->Contact_Person->ViewCustomAttributes = \"\";\n\n\t\t// Phone_Number\n\t\t$this->Phone_Number->ViewValue = $this->Phone_Number->CurrentValue;\n\t\t$this->Phone_Number->ViewCustomAttributes = \"\";\n\n\t\t// Email\n\t\t$this->_Email->ViewValue = $this->_Email->CurrentValue;\n\t\t$this->_Email->ViewCustomAttributes = \"\";\n\n\t\t// Mobile_Number\n\t\t$this->Mobile_Number->ViewValue = $this->Mobile_Number->CurrentValue;\n\t\t$this->Mobile_Number->ViewCustomAttributes = \"\";\n\n\t\t// Notes\n\t\t$this->Notes->ViewValue = $this->Notes->CurrentValue;\n\t\t$this->Notes->ViewCustomAttributes = \"\";\n\n\t\t// Balance\n\t\t$this->Balance->ViewValue = $this->Balance->CurrentValue;\n\t\t$this->Balance->ViewValue = ew_FormatCurrency($this->Balance->ViewValue, 2, -2, -2, -2);\n\t\t$this->Balance->CellCssStyle .= \"text-align: right;\";\n\t\t$this->Balance->ViewCustomAttributes = \"\";\n\n\t\t// Is_Stock_Available\n\t\tif (ew_ConvertToBool($this->Is_Stock_Available->CurrentValue)) {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(2) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(2) : \"Y\";\n\t\t} else {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(1) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(1) : \"N\";\n\t\t}\n\t\t$this->Is_Stock_Available->ViewCustomAttributes = \"\";\n\n\t\t// Date_Added\n\t\t$this->Date_Added->ViewValue = $this->Date_Added->CurrentValue;\n\t\t$this->Date_Added->ViewCustomAttributes = \"\";\n\n\t\t// Added_By\n\t\t$this->Added_By->ViewValue = $this->Added_By->CurrentValue;\n\t\t$this->Added_By->ViewCustomAttributes = \"\";\n\n\t\t// Date_Updated\n\t\t$this->Date_Updated->ViewValue = $this->Date_Updated->CurrentValue;\n\t\t$this->Date_Updated->ViewCustomAttributes = \"\";\n\n\t\t// Updated_By\n\t\t$this->Updated_By->ViewValue = $this->Updated_By->CurrentValue;\n\t\t$this->Updated_By->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\t\t\t$this->Supplier_ID->TooltipValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\t\t\t$this->Supplier_Number->TooltipValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\t\t\t$this->Supplier_Name->TooltipValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\t\t\t$this->Address->TooltipValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\t\t\t$this->City->TooltipValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\t\t\t$this->Country->TooltipValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\t\t\t$this->Contact_Person->TooltipValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\t\t\t$this->Phone_Number->TooltipValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\t\t\t$this->_Email->TooltipValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\t\t\t$this->Mobile_Number->TooltipValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\t\t\t$this->Notes->TooltipValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\t\t\t$this->Balance->TooltipValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\t\t\t$this->Is_Stock_Available->TooltipValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\t\t\t$this->Date_Added->TooltipValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\t\t\t$this->Added_By->TooltipValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\t\t\t$this->Date_Updated->TooltipValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t\t$this->Updated_By->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->EditValue = $this->Supplier_ID->CurrentValue;\n\t\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->EditValue = ew_HtmlEncode($this->Supplier_Number->CurrentValue);\n\t\t\t$this->Supplier_Number->PlaceHolder = ew_RemoveHtml($this->Supplier_Number->FldCaption());\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Name->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->EditValue = ew_HtmlEncode($this->Supplier_Name->CurrentValue);\n\t\t\t$this->Supplier_Name->PlaceHolder = ew_RemoveHtml($this->Supplier_Name->FldCaption());\n\n\t\t\t// Address\n\t\t\t$this->Address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Address->EditCustomAttributes = \"\";\n\t\t\t$this->Address->EditValue = ew_HtmlEncode($this->Address->CurrentValue);\n\t\t\t$this->Address->PlaceHolder = ew_RemoveHtml($this->Address->FldCaption());\n\n\t\t\t// City\n\t\t\t$this->City->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->City->EditCustomAttributes = \"\";\n\t\t\t$this->City->EditValue = ew_HtmlEncode($this->City->CurrentValue);\n\t\t\t$this->City->PlaceHolder = ew_RemoveHtml($this->City->FldCaption());\n\n\t\t\t// Country\n\t\t\t$this->Country->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Country->EditCustomAttributes = \"\";\n\t\t\t$this->Country->EditValue = ew_HtmlEncode($this->Country->CurrentValue);\n\t\t\t$this->Country->PlaceHolder = ew_RemoveHtml($this->Country->FldCaption());\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Contact_Person->EditCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->EditValue = ew_HtmlEncode($this->Contact_Person->CurrentValue);\n\t\t\t$this->Contact_Person->PlaceHolder = ew_RemoveHtml($this->Contact_Person->FldCaption());\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Phone_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->EditValue = ew_HtmlEncode($this->Phone_Number->CurrentValue);\n\t\t\t$this->Phone_Number->PlaceHolder = ew_RemoveHtml($this->Phone_Number->FldCaption());\n\n\t\t\t// Email\n\t\t\t$this->_Email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_Email->EditCustomAttributes = \"\";\n\t\t\t$this->_Email->EditValue = ew_HtmlEncode($this->_Email->CurrentValue);\n\t\t\t$this->_Email->PlaceHolder = ew_RemoveHtml($this->_Email->FldCaption());\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Mobile_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->EditValue = ew_HtmlEncode($this->Mobile_Number->CurrentValue);\n\t\t\t$this->Mobile_Number->PlaceHolder = ew_RemoveHtml($this->Mobile_Number->FldCaption());\n\n\t\t\t// Notes\n\t\t\t$this->Notes->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Notes->EditCustomAttributes = \"\";\n\t\t\t$this->Notes->EditValue = ew_HtmlEncode($this->Notes->CurrentValue);\n\t\t\t$this->Notes->PlaceHolder = ew_RemoveHtml($this->Notes->FldCaption());\n\n\t\t\t// Balance\n\t\t\t$this->Balance->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Balance->EditCustomAttributes = \"\";\n\t\t\t$this->Balance->EditValue = ew_HtmlEncode($this->Balance->CurrentValue);\n\t\t\t$this->Balance->PlaceHolder = ew_RemoveHtml($this->Balance->FldCaption());\n\t\t\tif (strval($this->Balance->EditValue) <> \"\" && is_numeric($this->Balance->EditValue)) $this->Balance->EditValue = ew_FormatNumber($this->Balance->EditValue, -2, -2, -2, -2);\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Is_Stock_Available->EditCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->EditValue = $this->Is_Stock_Available->Options(TRUE);\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Date_Added->EditCustomAttributes = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Added_By->EditCustomAttributes = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t// Updated_By\n\t\t\t// Edit refer script\n\t\t\t// Supplier_ID\n\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function getRow();", "public function AdminOrdersAfterTableDraw(){\n }", "public function renderTableBody() {\n //$models = array_values($this->dataProvider->getModels());\n //$keys = $this->dataProvider->getKeys();\n $rows = [];\n \n foreach ($this->dataProvider as $model) {\n if (is_callable($this->beforeRow)) {\n $row = call_user_func($this->beforeRow, $model, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n\n $rows[] = $this->renderTableRow($model);\n\n if ($this->afterRow !== null) {\n $row = call_user_func($this->afterRow, $model, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n }\n\n if (empty($rows)) {\n $colspan = count($this->columns);\n\n return \"<tbody>\\n<tr><td colspan=\\\"$colspan\\\">\" . $this->renderEmpty() . \"</td></tr>\\n</tbody>\";\n } else {\n return \"<tbody>\\n\" . implode(\"\\n\", $rows) . \"\\n</tbody>\";\n }\n }", "function ods_render_row($row, $data = array()) {\n $cells = $row->getElementsByTagName('table-cell');\n\n foreach ($cells as $cell) {\n $value_type = $cell\n ->getAttribute('office:value-type');\n\n //get text data\n $p1 = $cell\n ->getElementsByTagName('p'); \n\n foreach ($p1 as $p) {\n\n $orig_cell_text = $p->nodeValue;\n\n $data_val = false;\n\n if (!empty($orig_cell_text)) {\n if ($this->string_has_params($orig_cell_text)) {\n\n if ($this->parse_string_is_once_param($orig_cell_text)) {\n $param_key = $this->parse_string_extract_param($orig_cell_text);\n\n if ($this->parse_param_exists($param_key, $data)) {\n\n $data_val = $this->parse_param_value(\n $param_key, $data\n );\n $this->ods_cell_set_val($cell, $p, $data_val, array());\n }\n } else {\n $p->nodeValue = $this->parse_string($orig_cell_text, $data);\n }\n }\n }\n }\n \n $this->ods_render_cell_images($cell, $data); \n \n }\n return $row;\n }", "function render_row ($row_info, $lang)\n {\n global $func, $DB, $conf, $vnT;\n $row = $row_info;\n // Xu ly tung ROW\n $id = $row['id'];\n $row_id = \"row_\" . $id;\n //if ($id > 7) {\n $output['check_box'] = vnT_HTML::checkbox(\"del_id[]\", $id, 0, \" \");\n //}\n $link_edit = $this->linkUrl . \"&sub=edit&id={$id}\";\n $link_del = \"javascript:del_item('\" . $this->linkUrl . \"&sub=del&csrf_token=\".$_SESSION['vnt_csrf_token'].\"&id={$id}')\";\n $output['order'] = \"<input name=\\\"txt_Order[{$id}]\\\" type=\\\"text\\\" size=\\\"2\\\" maxlength=\\\"2\\\" style=\\\"text-align:center\\\" value=\\\"{$row['display_order']}\\\" onkeypress=\\\"return is_num(event,'txtOrder')\\\" onchange='javascript:do_check($id)' />\";\n $output['name'] = \"<a href=\\\"{$link_edit}\\\"><strong>\" . $row['name'] . \"</strong></a>\";\n $output['kichthuoc'] = $row['width'] . \" X \" . $row['height'];\n $arr_type_show = array(\n 0 => 'Theo chiều dọc' , \n 1 => 'Theo chiều ngang' , \n 2 => 'Marquee up' , \n 3 => 'Marquee down' , \n 4 => 'Marquee left' , \n 5 => 'Marquee right');\n $output['type_show'] = $arr_type_show[$row['type_show']];\n $output['align'] = $row['align'];\n $text_edit = \"ad_pos|title|id=\" . $id;\n $output['title'] = \"<strong><span id='edit-text-\" . $id . \"' onClick=\\\"quick_edit('edit-text-\" . $id . \"','$text_edit');\\\">\" . $func->HTML($row['title']) . \"</span></strong>\";\n\n\n $link_display = $this->linkUrl . $row['ext_link'].\"&csrf_token=\".$_SESSION['vnt_csrf_token'];\n if ($row['display'] == 1) {\n $display = \"<a class='i-display' href='\" . $link_display . \"&do_hidden=$id' data-toggle='tooltip' data-placement='top' title='\" . $vnT->lang['click_do_hidden'] . \"' ><i class='fa fa-eye' ></i></a>\";\n } else {\n $display = \"<a class='i-display' href='\" . $link_display . \"&do_display=$id' data-toggle='tooltip' data-placement='top' title='\" . $vnT->lang['click_do_display'] . \"' ><i class='fa fa-eye-slash' ></i></a>\";\n }\n\n\n $output['action'] = '<div class=\"action-buttons\"><input name=h_id[]\" type=\"hidden\" value=\"' . $id . '\" />';\n $output['action'] .= '<a href=\"' . $link_edit . '\" class=\"i-edit\" ><i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i></a>';\n $output['action'] .= $display;\n $output['action'] .= '<a href=\"' . $link_del . '\" class=\"i-del\" ><i class=\"fa fa-trash-o\" aria-hidden=\"true\"></i></a>';\n $output['action'] .= '</div>';\n\n return $output;\n }", "public function render()\n {\n return view('components.table.row');\n }", "public function rowsAction() {\n parent::rowsAction();\n }", "abstract public function getRow();", "abstract public function getRow();", "public function render()\n {\n $this->view->setData(call_user_func($this->getUrlGenerator(), $this->getGrid()->getCurrentRow()));\n return SolidRow::render();\n }", "public function changeRowData(&$row){}", "function view_new(){\n echo \"<tr onclick='record.select(this)' id='{$this->entity->name}'>\";\n //\n //loop through the column and out puts its td element.\n foreach ($this->entity->columns as $col){\n //\n //Get the tds for every column\n echo $col->view();\n }\n //\n echo \"</tr>\";\n }", "function rowClickedTable($id) { ?>\r\n <script type=\"text/javascript\">\r\n $(\"#resultsTable<?php echo $id;?>\").find('tr').click( function(){\r\n var table = document.getElementById(\"resultsTable<?php echo $id; ?>\");\r\n var alltr = table.querySelectorAll(\"tr\");\r\n var row = $(this).index()+1;\r\n\r\n var lenghtalltr = Object.keys(alltr).length;\r\n console.log(\"- \" + lenghtalltr + \"-\" + row + \" = \" + (lenghtalltr - row));\r\n // show all\r\n for (var i = 1; i < lenghtalltr; i++) { alltr[i].style.display = \"table-row\"; }\r\n // hide before click row\r\n for (var i = 1; i < row; i++) { alltr[i-1].style.display = \"none\"; }\r\n\r\n //document.getElementById(\"visiblelines<?php echo $id;?>\").innerHTML = \"&nbsp;&nbsp;Lines: \" + ((lenghtalltr+1) - row);\r\n });\r\n </script>\r\n <?php \r\n}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IDXDAFTAR->EditCustomAttributes = \"\";\n\t\t$this->IDXDAFTAR->EditValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TGLREG->EditCustomAttributes = \"\";\n\t\t$this->TGLREG->EditValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->EditValue = ew_FormatDateTime($this->TGLREG->EditValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOMR->EditCustomAttributes = \"\";\n\t\t$this->NOMR->EditValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->EditValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->EditValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->EditValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETERANGAN->EditCustomAttributes = \"\";\n\t\t$this->KETERANGAN->EditValue = $this->KETERANGAN->CurrentValue;\n\t\t$this->KETERANGAN->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKARTU_BPJS->EditCustomAttributes = \"\";\n\t\t$this->NOKARTU_BPJS->EditValue = $this->NOKARTU_BPJS->CurrentValue;\n\t\t$this->NOKARTU_BPJS->ViewCustomAttributes = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKTP->EditCustomAttributes = \"\";\n\t\t$this->NOKTP->EditValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->ViewCustomAttributes = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDDOKTER->EditCustomAttributes = \"\";\n\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->CurrentValue;\n\t\tif (strval($this->KDDOKTER->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->KDDOKTER->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDDOKTER->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDDOKTER, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDDOKTER->EditValue = NULL;\n\t\t}\n\t\t$this->KDDOKTER->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\t$this->KDPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDPOLY->EditCustomAttributes = \"\";\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->EditValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->EditValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->EditValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDRUJUK->EditCustomAttributes = \"\";\n\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->CurrentValue;\n\t\tif (strval($this->KDRUJUK->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDRUJUK->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDRUJUK->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDRUJUK, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDRUJUK->EditValue = NULL;\n\t\t}\n\t\t$this->KDRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDCARABAYAR->EditCustomAttributes = \"\";\n\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->CurrentValue;\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->EditValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOJAMINAN->EditCustomAttributes = \"\";\n\t\t$this->NOJAMINAN->EditValue = $this->NOJAMINAN->CurrentValue;\n\t\t$this->NOJAMINAN->ViewCustomAttributes = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SHIFT->EditCustomAttributes = \"\";\n\t\t$this->SHIFT->EditValue = $this->SHIFT->CurrentValue;\n\t\t$this->SHIFT->ViewCustomAttributes = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->STATUS->EditCustomAttributes = \"\";\n\t\t$this->STATUS->EditValue = $this->STATUS->CurrentValue;\n\t\t$this->STATUS->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETERANGAN_STATUS->EditCustomAttributes = \"\";\n\t\t$this->KETERANGAN_STATUS->EditValue = $this->KETERANGAN_STATUS->CurrentValue;\n\t\t$this->KETERANGAN_STATUS->ViewCustomAttributes = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PASIENBARU->EditCustomAttributes = \"\";\n\t\t$this->PASIENBARU->EditValue = $this->PASIENBARU->CurrentValue;\n\t\t$this->PASIENBARU->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t$this->NIP->EditValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASUKPOLY->EditCustomAttributes = \"\";\n\t\t$this->MASUKPOLY->EditValue = $this->MASUKPOLY->CurrentValue;\n\t\t$this->MASUKPOLY->EditValue = ew_FormatDateTime($this->MASUKPOLY->EditValue, 4);\n\t\t$this->MASUKPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELUARPOLY->EditCustomAttributes = \"\";\n\t\t$this->KELUARPOLY->EditValue = $this->KELUARPOLY->CurrentValue;\n\t\t$this->KELUARPOLY->EditValue = ew_FormatDateTime($this->KELUARPOLY->EditValue, 4);\n\t\t$this->KELUARPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETRUJUK->EditCustomAttributes = \"\";\n\t\t$this->KETRUJUK->EditValue = $this->KETRUJUK->CurrentValue;\n\t\t$this->KETRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETBAYAR->EditCustomAttributes = \"\";\n\t\t$this->KETBAYAR->EditValue = $this->KETBAYAR->CurrentValue;\n\t\t$this->KETBAYAR->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JAMREG->EditCustomAttributes = \"\";\n\t\t$this->JAMREG->EditValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->EditValue = ew_FormatDateTime($this->JAMREG->EditValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BATAL->EditCustomAttributes = \"\";\n\t\t$this->BATAL->EditValue = $this->BATAL->CurrentValue;\n\t\t$this->BATAL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_SJP->EditCustomAttributes = \"\";\n\t\t$this->NO_SJP->EditValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_PESERTA->EditCustomAttributes = \"\";\n\t\t$this->NO_PESERTA->EditValue = $this->NO_PESERTA->CurrentValue;\n\t\t$this->NO_PESERTA->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKARTU->EditCustomAttributes = \"\";\n\t\t$this->NOKARTU->EditValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TANGGAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->TANGGAL_SEP->EditValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->EditValue = ew_FormatDateTime($this->TANGGAL_SEP->EditValue, 0);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TANGGALRUJUK_SEP->EditCustomAttributes = \"\";\n\t\t$this->TANGGALRUJUK_SEP->EditValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->EditValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->EditValue, 0);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELASRAWAT_SEP->EditCustomAttributes = \"\";\n\t\t$this->KELASRAWAT_SEP->EditValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MINTA_RUJUKAN->EditCustomAttributes = \"\";\n\t\t$this->MINTA_RUJUKAN->EditValue = $this->MINTA_RUJUKAN->CurrentValue;\n\t\t$this->MINTA_RUJUKAN->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NORUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->NORUJUKAN_SEP->EditValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PPKRUJUKANASAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->EditValue = $this->PPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->PPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditValue = $this->NAMAPPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PPKPELAYANAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->PPKPELAYANAN_SEP->EditValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JENISPERAWATAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->JENISPERAWATAN_SEP->EditValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CATATAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->CATATAN_SEP->EditValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DIAGNOSAAWAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->EditValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMADIAGNOSA_SEP->EditCustomAttributes = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->EditValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LAKALANTAS_SEP->EditCustomAttributes = \"\";\n\t\t$this->LAKALANTAS_SEP->EditValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LOKASILAKALANTAS->EditCustomAttributes = \"\";\n\t\t$this->LOKASILAKALANTAS->EditValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->USER->EditCustomAttributes = \"\";\n\t\t$this->USER->EditValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t$this->tanggal->EditValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// bulan\n\t\t$this->bulan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->bulan->EditCustomAttributes = \"\";\n\t\tif (strval($this->bulan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`bulan_id`\" . ew_SearchString(\"=\", $this->bulan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `bulan_id`, `bulan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_bulan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->bulan->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->bulan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->bulan->EditValue = $this->bulan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->bulan->EditValue = $this->bulan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->bulan->EditValue = NULL;\n\t\t}\n\t\t$this->bulan->ViewCustomAttributes = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tahun->EditCustomAttributes = \"\";\n\t\t$this->tahun->EditValue = $this->tahun->CurrentValue;\n\t\t$this->tahun->ViewCustomAttributes = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function display_rows() {\n \n //Get the records registered in the prepare_items method\n $records = $this->items;\n \n //Get the columns registered in the get_columns and get_sortable_columns methods\n list( $columns, $hidden ) = $this->get_column_info();\n \n //Loop for each record\n if(!empty($records)){foreach($records as $rec){\n \n // Format the status output\n if ( strtotime($rec->until) <= 0 ) {\n $rec->until = false;\n } else {\n //$rec->until = __('Membership ended','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->until));\n $rec->until = '&nbsp;|&nbsp;Active until '.strftime('%Y-%m-%d',strtotime($rec->until));\n }\n $rec->since = __('Applied','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->since));\n \n // Pre-define the edit link\n //$editlink = '/wp-admin/link.php?action=edit&link_id='.(int)$rec->link_id;\n\n //Open the line\n echo \"<tr id=\\\"record_\".$rec->groupID.\"\\\" class=\\\"row-active-\".$rec->active.\"\\\">\\n\";\n foreach ( $columns as $column_name => $column_display_name ) {\n \n //Style attributes for each col\n $class = \"class='$column_name column-$column_name'\";\n \n // Create output in cell\n switch ( $column_name ) {\n case \"col_what\": echo \"<td \".$class.\">\".$this->show_what($rec).\"</td>\\n\"; break;\n case \"col_user\": echo \"<td \".$class.\">\".$this->add_actions($rec).\"</td>\\n\"; break;\n case \"col_groupName\": echo \"<td \".$class.\">\".$rec->groupName.\"</td>\\n\"; break;\n case \"col_application\": echo \"<td \".$class.\">\".$rec->application\n .\"<br><b>\".$rec->since.\"</b></td>\\n\"; break;\n }\n }\n \n //Close the line\n echo \"</tr>\\n\";\n }}\n }", "function krnEmit_recordEditTitleRow($appEmitter,$title, $colSpan) {\n // used once in roster-results-games\n // $s1 = '<div class=\"draff-report-top-left\"></div>';\n $s2 = '<div class=\"draff-report-top-middle\">'.$title.'</div>';\n // $s3 = '<div class=\"draff-report-top-right\">'.draff_dateTimeAsString(rc_getNow(),'M j, Y' ).'</div>';\n $appEmitter->row_start();\n $appEmitter->cell_block($title ,'draff-edit-top', 'colspan=\"'.$colSpan.'\"');\n $appEmitter->row_end();\n}", "public function render()\n {\n return view('components.table-row');\n }", "public function getCellValueForRendering($row, $cell=null);", "abstract protected function getRow($row);", "public function renderTableRow($model, $key, $index)\n {\n $cells = [];\n /* @var $column Column */\n foreach ($this->columns as $column) {\n $cells[] = $column->renderDataCell($model, $key, $index);\n }\n if ($this->rowOptions instanceof Closure) {\n $options = call_user_func($this->rowOptions, $model, $key, $index, $this);\n } else {\n $options = $this->rowOptions;\n }\n $options['data-key'] = is_array($key) ? json_encode($key) : (string) $key;\n\n return Html::tag('tr', implode('', $cells), $options);\n }", "function display_rows(){\n\n\t\t//Get the records registered in the prepare_items method\n\t\t$records = $this->items;\n\n\t\t//Get the columns registered in the get_columns and get_sortable_columns methods\n\t\tlist( $columns ) = $this->get_column_info();\n\n\t\t//Loop for each record\n\t\tif( ! empty( $records ) ){\n\n\t\t\tforeach( $records as $rec ){\n\n\t\t\t\t$position = ( $rec->post_order ) ? $rec->post_order : 0;\n\t\t\t\t$id = ( $rec->ID ) ? $rec->ID : 'N/A';\n\t\t\t\t$title = ( $rec->post_title ) ? $rec->post_title : 'N/A';\n\t\t\t\t$author = ( $rec->post_author ) ? $rec->post_author : 'N/A';\n\t\t\t\t$date = ( $rec->post_date ) ? $rec->post_date : 'N/A';\n\n\t\t\t\t//Open the line\n\t\t\t\techo '<tr id=\"record_' . $id . '\" class=\"draggable-tr\" data-order=\"' . $position . '\" data-post-id=\"' . $id . '\" draggable=\"true\">';\n\t\t\t\tforeach( $columns as $column_name => $column_display_name ){\n\n\n\t\t\t\t\t//Style attributes for each col\n\t\t\t\t\t$class = \"class='$column_name column-$column_name'\";\n\t\t\t\t\t$style = \"\";\n\t\t\t\t\tif( in_array( $column_name ) ){\n\t\t\t\t\t\t$style = ' style=\"display:none;\"';\n\t\t\t\t\t}\n\t\t\t\t\t$attributes = $class . $style;\n\n\n\t\t\t\t\t//Display the cell\n\t\t\t\t\tswitch( $column_name ){\n\t\t\t\t\t\tcase \"post_order\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $position ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_title\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $title ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_author\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( get_the_author_meta( 'nicename', $author ) ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_date\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . $date . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ID\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $id ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// gjd_id\n\t\t$this->gjd_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->gjd_id->EditCustomAttributes = \"\";\n\t\t$this->gjd_id->EditValue = $this->gjd_id->CurrentValue;\n\t\t$this->gjd_id->ViewCustomAttributes = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->gjm_id->EditCustomAttributes = \"\";\n\t\tif ($this->gjm_id->getSessionValue() <> \"\") {\n\t\t\t$this->gjm_id->CurrentValue = $this->gjm_id->getSessionValue();\n\t\t$this->gjm_id->ViewValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->ViewCustomAttributes = \"\";\n\t\t} else {\n\t\t$this->gjm_id->EditValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->PlaceHolder = ew_RemoveHtml($this->gjm_id->FldCaption());\n\t\t}\n\n\t\t// peg_id\n\t\t$this->peg_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->peg_id->EditCustomAttributes = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_mn->EditCustomAttributes = \"\";\n\t\t$this->b_mn->EditValue = $this->b_mn->CurrentValue;\n\t\t$this->b_mn->PlaceHolder = ew_RemoveHtml($this->b_mn->FldCaption());\n\n\t\t// b_sn\n\t\t$this->b_sn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_sn->EditCustomAttributes = \"\";\n\t\t$this->b_sn->EditValue = $this->b_sn->CurrentValue;\n\t\t$this->b_sn->PlaceHolder = ew_RemoveHtml($this->b_sn->FldCaption());\n\n\t\t// b_sl\n\t\t$this->b_sl->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_sl->EditCustomAttributes = \"\";\n\t\t$this->b_sl->EditValue = $this->b_sl->CurrentValue;\n\t\t$this->b_sl->PlaceHolder = ew_RemoveHtml($this->b_sl->FldCaption());\n\n\t\t// b_rb\n\t\t$this->b_rb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_rb->EditCustomAttributes = \"\";\n\t\t$this->b_rb->EditValue = $this->b_rb->CurrentValue;\n\t\t$this->b_rb->PlaceHolder = ew_RemoveHtml($this->b_rb->FldCaption());\n\n\t\t// b_km\n\t\t$this->b_km->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_km->EditCustomAttributes = \"\";\n\t\t$this->b_km->EditValue = $this->b_km->CurrentValue;\n\t\t$this->b_km->PlaceHolder = ew_RemoveHtml($this->b_km->FldCaption());\n\n\t\t// b_jm\n\t\t$this->b_jm->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_jm->EditCustomAttributes = \"\";\n\t\t$this->b_jm->EditValue = $this->b_jm->CurrentValue;\n\t\t$this->b_jm->PlaceHolder = ew_RemoveHtml($this->b_jm->FldCaption());\n\n\t\t// b_sb\n\t\t$this->b_sb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->b_sb->EditCustomAttributes = \"\";\n\t\t$this->b_sb->EditValue = $this->b_sb->CurrentValue;\n\t\t$this->b_sb->PlaceHolder = ew_RemoveHtml($this->b_sb->FldCaption());\n\n\t\t// l_mn\n\t\t$this->l_mn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_mn->EditCustomAttributes = \"\";\n\t\t$this->l_mn->EditValue = $this->l_mn->CurrentValue;\n\t\t$this->l_mn->PlaceHolder = ew_RemoveHtml($this->l_mn->FldCaption());\n\n\t\t// l_sn\n\t\t$this->l_sn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_sn->EditCustomAttributes = \"\";\n\t\t$this->l_sn->EditValue = $this->l_sn->CurrentValue;\n\t\t$this->l_sn->PlaceHolder = ew_RemoveHtml($this->l_sn->FldCaption());\n\n\t\t// l_sl\n\t\t$this->l_sl->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_sl->EditCustomAttributes = \"\";\n\t\t$this->l_sl->EditValue = $this->l_sl->CurrentValue;\n\t\t$this->l_sl->PlaceHolder = ew_RemoveHtml($this->l_sl->FldCaption());\n\n\t\t// l_rb\n\t\t$this->l_rb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_rb->EditCustomAttributes = \"\";\n\t\t$this->l_rb->EditValue = $this->l_rb->CurrentValue;\n\t\t$this->l_rb->PlaceHolder = ew_RemoveHtml($this->l_rb->FldCaption());\n\n\t\t// l_km\n\t\t$this->l_km->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_km->EditCustomAttributes = \"\";\n\t\t$this->l_km->EditValue = $this->l_km->CurrentValue;\n\t\t$this->l_km->PlaceHolder = ew_RemoveHtml($this->l_km->FldCaption());\n\n\t\t// l_jm\n\t\t$this->l_jm->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_jm->EditCustomAttributes = \"\";\n\t\t$this->l_jm->EditValue = $this->l_jm->CurrentValue;\n\t\t$this->l_jm->PlaceHolder = ew_RemoveHtml($this->l_jm->FldCaption());\n\n\t\t// l_sb\n\t\t$this->l_sb->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->l_sb->EditCustomAttributes = \"\";\n\t\t$this->l_sb->EditValue = $this->l_sb->CurrentValue;\n\t\t$this->l_sb->PlaceHolder = ew_RemoveHtml($this->l_sb->FldCaption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function renderListRow($table, $row, $cc, $titleCol, $thumbsCol, $indent = 0)\n { \n if (!is_array($row)) {\n return '';\n } \n \n $this->fieldArray[] = '_CONTROL_';\n $this->fieldArray[] = '_CLIPBOARD_';\n $rowOutput = '';\n $id_orig = null;\n // If in search mode, make sure the preview will show the correct page\n if ((string)$this->searchString !== '') {\n $id_orig = $this->id;\n $this->id = $row['pid'];\n }\n \n $tagAttributes = [\n 'class' => ['t3js-entity'],\n 'data-table' => $table,\n 'title' => 'id=' . $row['uid'],\n ];\n \n // Add special classes for first and last row\n if ($cc == 1 && $indent == 0) {\n $tagAttributes['class'][] = 'firstcol';\n }\n if ($cc == $this->totalRowCount || $cc == $this->iLimit) {\n $tagAttributes['class'][] = 'lastcol';\n }\n // Overriding with versions background color if any:\n if (!empty($row['_CSSCLASS'])) {\n $tagAttributes['class'] = [$row['_CSSCLASS']];\n }\n // Incr. counter.\n $this->counter++;\n // The icon with link\n $toolTip = BackendUtility::getRecordToolTip($row, $table);\n\n \n\n $additionalStyle = $indent ? ' style=\"margin-left: ' . $indent . 'px;\"' : '';\n $iconImg = '<span ' . $toolTip . ' ' . $additionalStyle . '>'\n . $this->iconFactory->getIconForRecord($table, $row, Icon::SIZE_SMALL)->render()\n . '</span>'; \n $theIcon = $this->clickMenuEnabled ? BackendUtility::wrapClickMenuOnIcon($iconImg, $table, $row['uid']) : $iconImg;\n // Preparing and getting the data-array\n $theData = [];\n $localizationMarkerClass = '';\n foreach ($this->fieldArray as $fCol) {\n \n if ($fCol == $titleCol) {\n $recTitle = BackendUtility::getRecordTitle($table, $row, false, true);\n $warning = '';\n // If the record is edit-locked\tby another user, we will show a little warning sign:\n $lockInfo = BackendUtility::isRecordLocked($table, $row['uid']);\n if ($lockInfo) {\n $warning = '<span data-toggle=\"tooltip\" data-placement=\"right\" data-title=\"' . htmlspecialchars($lockInfo['msg']) . '\">'\n . $this->iconFactory->getIcon('status-warning-in-use', Icon::SIZE_SMALL)->render() . '</span>';\n }\n $theData[$fCol] = $theData['__label'] = $warning . $this->linkWrapItems($table, $row['uid'], $recTitle, $row);\n // Render thumbnails, if:\n // - a thumbnail column exists\n // - there is content in it\n // - the thumbnail column is visible for the current type\n $type = 0;\n if (isset($GLOBALS['TCA'][$table]['ctrl']['type'])) {\n $typeColumn = $GLOBALS['TCA'][$table]['ctrl']['type'];\n $type = $row[$typeColumn];\n }\n // If current type doesn't exist, set it to 0 (or to 1 for historical reasons,\n // if 0 doesn't exist)\n if (!isset($GLOBALS['TCA'][$table]['types'][$type])) {\n $type = isset($GLOBALS['TCA'][$table]['types'][0]) ? 0 : 1;\n }\n $visibleColumns = $GLOBALS['TCA'][$table]['types'][$type]['showitem'];\n \n if ($this->thumbs &&\n trim($row[$thumbsCol]) &&\n preg_match('/(^|(.*(;|,)?))' . $thumbsCol . '(((;|,).*)|$)/', $visibleColumns) === 1\n ) {\n $thumbCode = '<br />' . $this->thumbCode($row, $table, $thumbsCol);\n $theData[$fCol] .= $thumbCode;\n $theData['__label'] .= $thumbCode;\n }\n if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])\n && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] != 0\n && $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']] != 0\n ) {\n // It's a translated record with a language parent\n $localizationMarkerClass = ' localization';\n }\n } elseif ($fCol === 'pid') {\n $theData[$fCol] = $row[$fCol];\n } elseif ($fCol === '_PATH_') {\n $theData[$fCol] = $this->recPath($row['pid']);\n } elseif ($fCol === '_REF_') {\n $theData[$fCol] = $this->createReferenceHtml($table, $row['uid']);\n } elseif ($fCol === '_CONTROL_') {\n $theData[$fCol] = $this->makeControl($table, $row);\n } elseif ($fCol === '_CLIPBOARD_') {\n $theData[$fCol] = $this->makeClip($table, $row);\n } elseif ($fCol === '_LOCALIZATION_') {\n list($lC1, $lC2) = $this->makeLocalizationPanel($table, $row);\n $theData[$fCol] = $lC1;\n $theData[$fCol . 'b'] = '<div class=\"btn-group\">' . $lC2 . '</div>';\n } elseif ($fCol === '_LOCALIZATION_b') {\n // deliberately empty\n } else {\n $pageId = $table === 'pages' ? $row['uid'] : $row['pid'];\n $tmpProc = BackendUtility::getProcessedValueExtra($table, $fCol, $row[$fCol], 100, $row['uid'], true, $pageId);\n $theData[$fCol] = $this->linkUrlMail(htmlspecialchars($tmpProc), $row[$fCol]);\n if ($this->csvOutput) {\n $row[$fCol] = BackendUtility::getProcessedValueExtra($table, $fCol, $row[$fCol], 0, $row['uid']);\n }\n }\n }\n // Reset the ID if it was overwritten\n if ((string)$this->searchString !== '') {\n $this->id = $id_orig;\n }\n // Add row to CSV list:\n if ($this->csvOutput) {\n $this->addToCSV($row);\n }\n // Add classes to table cells\n $this->addElement_tdCssClass[$titleCol] = 'col-title col-responsive' . $localizationMarkerClass;\n $this->addElement_tdCssClass['__label'] = $this->addElement_tdCssClass[$titleCol];\n $this->addElement_tdCssClass['_CONTROL_'] = 'col-control';\n if ($this->getModule()->MOD_SETTINGS['clipBoard']) {\n $this->addElement_tdCssClass['_CLIPBOARD_'] = 'col-clipboard';\n }\n $this->addElement_tdCssClass['_PATH_'] = 'col-path';\n $this->addElement_tdCssClass['_LOCALIZATION_'] = 'col-localizationa';\n $this->addElement_tdCssClass['_LOCALIZATION_b'] = 'col-localizationb';\n // Create element in table cells:\n $theData['uid'] = $row['uid'];\n if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])\n && isset($GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'])\n && $table !== 'pages_language_overlay'\n ) {\n $theData['_l10nparent_'] = $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']];\n }\n \n $tagAttributes = array_map(\n function ($attributeValue) {\n if (is_array($attributeValue)) {\n return implode(' ', $attributeValue);\n }\n return $attributeValue;\n },\n $tagAttributes\n );\n \n $rowOutput .= $this->addElement(1, $theIcon, $theData, GeneralUtility::implodeAttributes($tagAttributes, true));\n // Finally, return table row element:\n return $rowOutput;\n }", "public function display_rows()\n {\n }", "function renderTableData( $data, $oAllRowsData )\r\n\t{\r\n\t\treturn parent::renderTableData( $data, $oAllRowsData );\r\n\t}" ]
[ "0.7020346", "0.7020346", "0.7020346", "0.695297", "0.6733067", "0.6730292", "0.67149246", "0.67131615", "0.67072433", "0.66922516", "0.66656685", "0.66647094", "0.6615203", "0.6615203", "0.6615017", "0.66053045", "0.6586726", "0.65837026", "0.65791017", "0.6568388", "0.65646017", "0.65564513", "0.65512586", "0.6549448", "0.6536123", "0.6534726", "0.6533732", "0.6532974", "0.6523123", "0.65219176", "0.6514486", "0.65047145", "0.6475552", "0.64554614", "0.6433602", "0.64263994", "0.6422401", "0.64146787", "0.640783", "0.6404356", "0.63936603", "0.6392542", "0.638039", "0.6378312", "0.63590145", "0.63426274", "0.6342057", "0.63353395", "0.6328018", "0.63263905", "0.6291869", "0.628703", "0.6283951", "0.6281865", "0.6253981", "0.6210897", "0.6202715", "0.61939937", "0.619068", "0.615854", "0.61466706", "0.61261517", "0.6120905", "0.61039084", "0.6088741", "0.601814", "0.60135484", "0.60132647", "0.60061604", "0.5937342", "0.5918336", "0.59162927", "0.590245", "0.58873093", "0.5887165", "0.58800596", "0.5858436", "0.58282566", "0.5826783", "0.5787061", "0.57752526", "0.5754328", "0.5754328", "0.57538676", "0.57503194", "0.5749858", "0.57444394", "0.5729275", "0.5714833", "0.57055235", "0.56724846", "0.56485903", "0.564112", "0.56059057", "0.5600291", "0.5582244", "0.5566494", "0.55405885", "0.5539716" ]
0.76333064
1
Page Filter Validated event
function Page_FilterValidated() { // Example: //global $MyTable; //$MyTable->MyField1->SearchValue = "your search criteria"; // Search value }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "public function onFilter()\n {\n // $this->currentPageNumber = 1;\n return $this->onRefresh();\n }", "public function onFilter()\n {\n $this->currentPageNumber = 1;\n return $this->onRefresh();\n }", "public function requireFilterSubmit()\n\t{\n\t}", "protected function preValidate()\n {\n $this->setFilter( preg_quote($this->getFilter()) );\n }", "function validate_page()\n {\n }", "function validate_page()\n {\n }", "public function validate( $p_filter_input ) {\n\t\treturn true;\n\t}", "public function _post_filter()\n {\n }", "public function beforeFilter() {\n \n //$this->redirect($this->referer());\n }", "protected function preValidate() {}", "function Page_Selecting(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function Page_Selecting(&$filter) {\n\n\t\t// Enter your code here\n\t}", "public function beforeFilter() {\n\t\tparent::beforeFilter();\n\t\tif ($this->Components->enabled('Auth')) {\n\t\t\t$this->Auth->allow('process');\n\t\t}\n\t\tif (isset($this->Security) && $this->action === 'process') {\n\t\t\t$this->Security->validatePost = false;\n\t\t}\n\t}", "protected function pageFilterProcessing(&$data) {\n\t\t\n\t\t$filters = array();\n\t\t$token = $this->session->data['token'];\n\t\t$url = $this->url->link('common/orders_dashboard', \"token=$token\", true);\n\t\t$data['day_selected'] = \"\";\n\t\t$data['week_selected'] = \"\";\n\t\t$data['month_selected'] = \"\";\n\t\t$data['year_selected'] = \"\";\n\t\t$data['custom_selected'] = \"\";\n\t\t$data['allow_next_click'] = \"\";\n\t\t$data['tf_range'] = \"\";\n\t\t$data['tf_no_range'] = \"\";\n\t\t$data['filter_date_from'] = date(\"d F Y\", strtotime(\"first day of this month\"));\n\t\t$data['filter_date_to'] = date(\"d F Y\", strtotime(\"last day of this month\"));\n\t\t$data['filter_form_action'] = $url;\t\t# form action\n\t\t\n\t\t/*===== End of Initialization ======*/\n\n\t\t/*============================================\n\t\t= User Role Management =\n\t\t============================================*/\n\t\t\n\t\t$this->load->model('user/user_group');\n\t\t$this->load->model('user/user');\n\t\t$currentUser = $this->session->data['user_id'];\n\t\t$currentUserGroupId = $this->model_user_user->getUser($currentUser);\n\t\t$currentUserGroup = $this->model_user_user_group->getUserGroup($currentUserGroupId['user_group_id']);\n\t\t\n\t\tif ($currentUserGroup['name'] == 'Company admin' || $currentUserGroup['name'] == 'Administrator') {\n\t\t\t$allAccess = true;\n\t\t\t$currentUserId = 0;\n\t\t} else { \n\t\t\t$allAccess = false;\n\t\t\t$currentUserId = $this->session->data['user_id'];\n\t\t}\n\t\t\n\t\t/*===== End of User Role Management ======*/\n\n\t\t/*===============================\n\t\t= Filters =\n\t\t===============================*/\n\t\t\n\t\tif (isset($this->request->get['filter_time_frame'])) {\n\t\t\tswitch ($this->request->get['filter_time_frame']) {\n\n\t\t\t\t/*---------- filter by day ----------*/\n\t\t\t\tcase \"day\":\n\t\t\t\t\t$url .= \"&filter_time_frame=day\";\n\t\t\t\t\tif (isset($this->request->get['filter_date'])) {\n\t\t\t\t\t\t$filters['filter_date'] = $this->request->get['filter_date'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$filters['filter_date'] = date(\"Y-m-d\");\n\t\t\t\t\t}\n\n\t\t\t\t\t$data['filter_time_frame'] = $this->request->get['filter_time_frame'];\n\t\t\t\t\t$data['filter_display'] = date(\"l, d F Y\", strtotime($filters['filter_date']));\n\t\t\t\t\t$data['day_selected'] = \"selected\";\n\t\t\t\t\t$data['tf_range'] = 'style=\"display:none\"';\n\n\t\t\t\t\t# prev and next links\n\t\t\t\t\t$data['filter_prev_link'] = \"$url&filter_date=\".date(\"Y-m-d\", strtotime($filters['filter_date'].\" -1 day\"));\n\t\t\t\t\t$data['filter_next_link'] = \"$url&filter_date=\".date(\"Y-m-d\", strtotime($filters['filter_date'].\" +1 day\"));\n\t\t\t\t\t$data['allow_next_click'] = ($filters['filter_date'] >= date(\"Y-m-d\")) ? \"disabled\": \"\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t/*---------- filter by week ----------*/\n\t\t\t\tcase \"week\":\n\t\t\t\t\t$url .= \"&filter_time_frame=week\";\n\t\t\t\t\tif (isset($this->request->get['filter_date_from']) && isset($this->request->get['filter_date_to'])) {\n\t\t\t\t\t\t$filters['filter_date_from'] = $this->request->get['filter_date_from'];\n\t\t\t\t\t\t$filters['filter_date_to'] = $this->request->get['filter_date_to'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$filters['filter_date_from'] = date(\"Y-m-d\", strtotime(\"monday this week\"));\n\t\t\t\t\t\t$filters['filter_date_to'] = date(\"Y-m-d\", strtotime(\"friday this week\"));\n\t\t\t\t\t}\n\n\t\t\t\t\t$data['filter_time_frame'] = \"week\";\n\t\t\t\t\t$data['filter_display'] = date('d F', strtotime($filters['filter_date_from'])).\" - \".date('d F, Y', strtotime($filters['filter_date_to']));\n\t\t\t\t\t$data['week_selected'] = \"selected\";\n\t\t\t\t\t$data['tf_range'] = 'style=\"display:none\"';\n\n\t\t\t\t\t# prev and next links\n\t\t\t\t\t$data['filter_prev_link'] = \"$url&filter_date_from=\".date('Y-m-d', strtotime($filters['filter_date_from'].\" -7 days\")).\"&filter_date_to=\".date('Y-m-d', strtotime($filters['filter_date_to'].\" -7 days\"));\n\t\t\t\t\t$data['filter_next_link'] = \"$url&filter_date_from=\".date('Y-m-d', strtotime($filters['filter_date_from'].\" +7 days\")).\"&filter_date_to=\".date('Y-m-d', strtotime($filters['filter_date_to'].\" +7 days\"));\n\t\t\t\t\t$data['allow_next_click'] = ($filters['filter_date_to'] >= date(\"Y-m-d\")) ? \"disabled\" : \"\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t/*---------- filter by month ----------*/\n\t\t\t\tcase \"month\":\n\t\t\t\t\t$url .= \"&filter_time_frame=month\";\n\t\t\t\t\tif (isset($this->request->get['filter_month'])) {\n\t\t\t\t\t\t$filters['filter_month'] = $this->request->get['filter_month'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$filters['filter_month'] = date(\"Y-m\");\n\t\t\t\t\t}\n\n\t\t\t\t\t$data['filter_time_frame'] = \"month\";\n\t\t\t\t\t$data['filter_display'] = date('1 M - 30 M, Y', strtotime($filters['filter_month']));\n\t\t\t\t\t$data['month_selected'] = \"selected\";\n\t\t\t\t\t$data['tf_range'] = 'style=\"display:none\"';\n\n\t\t\t\t\t# prev and next links\n\t\t\t\t\t$data['filter_prev_link'] = \"$url&filter_month=\".date('Y-m', strtotime($filters['filter_month'].\" -1 month\"));\n\t\t\t\t\t$data['filter_next_link'] = \"$url&filter_month=\".date('Y-m', strtotime($filters['filter_month'].\" +1 month\"));\n\t\t\t\t\t$data['allow_next_click'] = ($filters['filter_month'] >= date(\"Y-m\")) ? \"disabled\" : \"\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t/*---------- filter by year ----------*/\n\t\t\t\tcase \"year\":\n\t\t\t\t\t$url .= \"&filter_time_frame=year\";\n\t\t\t\t\tif (isset($this->request->get['filter_year'])) {\n\t\t\t\t\t\t$filters['filter_year'] = $this->request->get['filter_year'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$filters['filter_year'] = date(\"Y\");\n\t\t\t\t\t}\n\n\t\t\t\t\t$data['filter_time_frame'] = \"year\";\n\t\t\t\t\t$data['filter_display'] = \"1 January - 31 December, \".$filters['filter_year'];\n\t\t\t\t\t$data['year_selected'] = \"selected\";\n\t\t\t\t\t$data['tf_range'] = 'style=\"display:none\"';\n\n\t\t\t\t\t# prev and next links\n\t\t\t\t\t$data['filter_prev_link'] = \"$url&filter_year=\".($filters['filter_year']-1);\n\t\t\t\t\t$data['filter_next_link'] = \"$url&filter_year=\".($filters['filter_year']+1);\n\t\t\t\t\t$data['allow_next_click'] = ($filters['filter_year'] >= date(\"Y\")) ? \"disabled\" : \"\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t/*---------- filter by custom [date range] ----------*/\n\t\t\t\tcase \"custom\":\n\t\t\t\t\t$url .= \"&filter_time_frame=custom\";\n\t\t\t\t\t$filters['filter_date_from'] = date(\"Y-m-d\", strtotime($this->request->get['filter_date_from']));\n\t\t\t\t\t$filters['filter_date_to'] = date(\"Y-m-d\", strtotime($this->request->get['filter_date_to']));\n\n\t\t\t\t\t$data['custom_selected'] = \"selected\";\n\t\t\t\t\t$data['tf_no_range'] = 'style=\"display:none\"';\n\t\t\t\t\t$data['filter_date_from'] = $this->request->get['filter_date_from'];\n\t\t\t\t\t$data['filter_date_to'] = $this->request->get['filter_date_to'];\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\t/*---------- Default [month] ----------*/\n\t\t\t$url .= \"&filter_time_frame=month\";\n\t\t\t$filters['filter_month'] = date('Y-m');\n\n\t\t\t$data['filter_time_frame'] = \"month\";\n\t\t\t$data['filter_display'] = date('d M', strtotime(\"first day of this month\")) . \" - \" . date('d M, Y', strtotime(\"last day of this month\"));\n\t\t\t$data['month_selected'] = \"selected\";\n\t\t\t$data['tf_range'] = 'style=\"display:none\"';\n\n\t\t\t# prev and next links\n\t\t\t$data['filter_prev_link'] = \"$url&filter_month=\".date('Y-m', strtotime(\"last month\"));\n\t\t\t$data['filter_next_link'] = \"$url&filter_month=\".date('Y-m', strtotime(\"next month\"));\n\t\t\t$data['allow_next_click'] = \"disabled\";\n\t\t}\n\t\t\n\t\t/*===== End of Filters ======*/\n\n\t\t\n\t\t/*=============================\n\t\t= Tiles =\n\t\t=============================*/\n\t\n\t\t$this->load->model('sale/order');\n\n\t\t/*---------- Orders In Progress ----------*/\n\t\t$data['orders_in_progress'] = $this->model_sale_order->getOrdersInProgressCount($filters);\n\n\t\t/*---------- Orders Completed ----------*/\n\t\t$data['orders_completed'] = $this->model_sale_order->getOrdersCompletedCount($filters);\n\n\t\t/*---------- Product Stock Alerts ----------*/\n\t\t$this->load->model('catalog/product');\n\t\t$filters['filter_quantity'] = 0;\n\t\t$data['stock_alerts'] = $this->model_catalog_product->getProductStockAlerts($filters);\n\t\t$data['stock_alerts_tile'] = ($data['stock_alerts'] == 0) ? \"tile-default\" : \"tile-warning\";\n\n\t\t/*---------- Quotes Awaiting Approval ----------*/\n\t\t$this->load->model('replogic/order_quotes');\n\n\t\t# get number of quotes awaiting approval\n\t\t$data['unapproved_quotes'] = $this->model_replogic_order_quotes->getQuotesAwaitingApprovalCount($filters);\t\t\n\t\t$data['unapproved_quotes_tile'] = ($data['unapproved_quotes'] == 0) ? \"tile-default\" : \"tile-danger\";\n\t\t\n\t\t# View more link(s)\n\t\t$data['order_view_more'] = $this->url->link('sale/order', \"token=$token\", true);\n\t\t$data['orders_processing_view_more'] = $this->url->link('sale/order', \"token=$token&filter_order_status=\" . $this->language->get('order_status_processing_id'), true);\n\t\t$data['orders_completed_view_more'] = $this->url->link('sale/order', \"token=$token&filter_order_status=\" . $this->language->get('order_status_confirmed_id'), true);\n\t\t$data['stock_alert_view_more'] = $this->url->link('catalog/product', \"token=$token&filter_quantity=0\", true);\n\t\t$data['quotes_view_more'] = $this->url->link('replogic/order_quotes', \"token=$token&filter_order_status=\" . $this->language->get('quote_status_pending_id'), true);\n\t\n\t\t/*===== End of Tiles ======*/\n\t\t\n\t\t/*=============================================\n\t\t= Customers by Orders [table] =\n\t\t=============================================*/\n\n\t\t$this->load->model('customer/customer');\n\t\t$this->load->model('replogic/sales_rep_management');\n\t\t\n\t\t$data['customers_by_orders'] = array();\n\t\t$customersByOrders = $this->model_sale_order->getCustomersByOrders($filters);\n\n\t\tif (!empty($customersByOrders) && is_array($customersByOrders)) {\n\t\t\tforeach ($customersByOrders as $key => $value) {\n\t\t\t\t# get customer and sales rep details\n\t\t\t\t$customer = $this->model_customer_customer->getCustomer($value['customer_id']);\n\t\t\t\t$salesrep = $this->model_replogic_sales_rep_management->getsalesrep($customer['salesrep_id']);\n\n\t\t\t\t# Last order date\n\t\t\t\t$lastOrderDate = date(\"d M Y\", strtotime($value['last_order_date']));\n\t\t\t\t$lastOrderDate.= \" at \" . date(\"<b>g:i A</b>\", strtotime($value['last_order_date']));\n\n\t\t\t\t$data['customers_by_orders'][] = array(\n\t\t\t\t\t'customer_name' => $value['customer'],\n\t\t\t\t\t'total_value' => number_format($value['total_value'], 2),\n\t\t\t\t\t'last_order_date' => $lastOrderDate,\n\t\t\t\t\t'sales_rep' => $salesrep['salesrep_name'].' '.$salesrep['salesrep_lastname'],\n\t\t\t\t\t'wholesale_activity' => '', /** @TODO: add wholesale activity */\n\t\t\t\t\t'view' => $this->url->link('sale/order', \"token=$token&filter_customer_id=\".$value['customer_id'], true)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\n\t\t/*===== End of Customers by Orders ======*/ \n\n\t}", "function beforeFilter() {\n }", "public function beforeValidate($event)\n {\n $this->owner->validators[] = Validator::createValidator(FilterValidator::class, $this->owner, array_keys($this->owner->getAttributes()), ['filter' => '\\yii\\helpers\\HtmlPurifier::process']);\n $this->owner->validators[] = Validator::createValidator(FilterValidator::class, $this->owner, array_keys($this->owner->getAttributes()), ['filter' => 'trim']);\n }", "function apply_page_filter($eids)\n\t{\n\t\t$res = MyEDB_Pager::apply_page_filter($eids);\n\t//\techo \"<br>RecordSearcher: after calling Myedb pager apply_page_filter, result:\".$res;\n\t\treturn $res;\n\t}", "public function afterFilter()\n\t{\n\n\t}", "public function beforeFilter(){\n\t\tparent::beforeFilter();\n// debug('test');\n\t\tif (isset($this->Auth)) {\n\t\t\t$this->Auth->allow('process');\n\t\t}\n\t\tif (isset($this->Security) && $this->action == 'process') {\n\t\t $this->Security->validatePost = false;\n\t\t}\n\t}", "public function addFilterFormInput(): void;", "public function beforeFilter() { \n\t\t//$this->disable_cache();\n\t\t$this->show_tabs(105);\n\t\t// check module access\n\t\t\n\t}", "private function filters() {\n\n\n\t}", "public function beforeFilter(Event $event) \n {\n }", "public function beforeFilter()\n\t{\n\n\t}", "public function beforeFilter() { \n\t\t//$this->disable_cache();\n\t\t$this->show_tabs(2);\n\t\t// check module access\n\t\t\n\t}", "public function beforeFilter(){ \n\t\t//$this->disable_cache();\n\t\t$this->show_tabs(100);\n\t}", "protected function willFilterPage(array $page) {\n return $page;\n }", "public static function filterFormAction() {\n\n $query = Request::segments();\n\n\n foreach ($query as $k => $q) {\n if (preg_match(\"/page-[0-9]+$/\", $q, $match)) {\n unset($query[$k]);\n };\n }\n $query = implode('/', $query);\n $url = Request::root() . \"/$query/\";\n\n return $url;\n }", "public function beforeFilter(){ \n\t\t$this->check_session();\n\t\t$this->check_role_access(2);\n\t}", "public function onInitIndexFlow(IPageFlowEvent $event)\n\t{\n\t\t// Add Step into Flow\n\t\t$flow = $event->getFlow();\n\t\t$path = $flow->getPath();\n\t\t$path->addVertex($first = new Page($path, 'first'));\n\t\t$path->addVertex($second = new Page($path, 'second', array($this, 'doSecond')));\n\t\t$path->addEdge(new Condition($first, $second, array($this, 'doValidateFirst')));\n\t}", "public function ajaxSubmitFilterForm(array &$form, FormStateInterface $form_state) {\n $form_state->set('page', 0);\n $form_state->setRebuild();\n }", "public function onBeforeValidate($event)\n\t{\n\t\t$this->raiseEvent('onBeforeValidate',$event);\n\t}", "public function filter_event() {\n\t\tif ( isset( $_POST['campus'] ) && isset( $_POST['month'] ) && isset( $_POST['year'] ) ) {\n\t\t\tTribeEventsQuery::init();\n\n\t\t\t$event_args = array(\n\t\t\t\t'eventDisplay' => 'upcoming',\n\t\t\t\t'post_type' => 'tribe_events',\n\t\t\t\t'posts_per_page' => 10,\n\t\t\t\t'post_status' => 'publish',\n\t\t\t);\n\n\t\t\tif ( '0' !== $_POST['month'] ) {\n\t\t\t\tif ( (int) $_POST['month'] >= (int) date( 'n' ) ) {\n\t\t\t\t\t$event_args['eventDisplay'] = 'monthly';\n\t\t\t\t} else {\n\t\t\t\t\t$event_args['eventDisplay'] = 'past';\n\t\t\t\t}\n\n\t\t\t\t$startdate = $_POST['year'] .'-'. $_POST['month'] . '-01 01:00:00';\n\t\t\t\tif ( $_POST['month'] === '12' ) {\n\t\t\t\t\t$enddate = $_POST['year'] .'-'. $_POST['month'] . '-31 23:00:00';\n\t\t\t\t} else {\n\t\t\t\t\t$enddate = $_POST['year'] .'-'. ( $_POST['month'] + 1 ) . '-01 01:00:00';\n\t\t\t\t}\n\n\t\t\t\t$event_args['meta_query'] = array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'key' => '_EventStartDate',\n\t\t\t\t\t\t'value' => $startdate,\n\t\t\t\t\t\t'type' => 'DATETIME',\n\t\t\t\t\t\t'compare' => '>='\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'key' => '_EventStartDate',\n\t\t\t\t\t\t'value' => $enddate,\n\t\t\t\t\t\t'type' => 'DATETIME',\n\t\t\t\t\t\t'compare' => '<'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( '0' !== $_POST['campus'] ) {\n\t\t\t\t$event_args['ctrs-campus'] = sanitize_text_field( $_POST['campus'] );\n\t\t\t}\n\n\t\t\tif ( '0' === $_POST['month'] ) {\n\t\t\t\t$event_query = TribeEventsQuery::getEvents( $event_args, true );\n\t\t\t} else {\n\t\t\t\t$event_query = new WP_Query( $event_args );\n\t\t\t}\n\n\t\t\tglobal $wp_query, $post;\n\t\t\t$wp_query = $event_query;\n\t\t\tif ( ! empty( $event_query->posts ) ) {\n\t\t\t\t$post = $event_query->posts[0];\n\t\t\t}\n\n\t\t\tob_start();\n\n\t\t\tif ( have_posts() ) { ?>\n\t\t\t\t<div class=\"events-container\">\n\t\t\t\t\t<!-- Notices -->\n\t\t\t\t\t<?php tribe_events_the_notices() ?>\n\n\t\t\t\t\t<!-- Events Loop -->\n\t\t\t\t\t<?php if ( have_posts() ) : ?>\n\t\t\t\t\t\t<?php do_action( 'tribe_events_before_loop' ); ?>\n\t\t\t\t\t\t<?php tribe_get_template_part( 'list/loop' ) ?>\n\t\t\t\t\t\t<?php do_action( 'tribe_events_after_loop' ); ?>\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t</div>\n\t\t\t<?php } else { ?>\n\t\t\t\t<div class=\"tribe-events-notices\"><ul><li>There were no results found.</li></ul></div>\n\t\t\t<?php }\n\n\t\t\t$filtered_events = ob_get_contents();\n\t\t\tob_end_clean();\n\n\t\t\twp_reset_postdata();\n\n\t\t\techo $filtered_events;\n\t\t\tdie();\n\t\t} else {\n\t\t\tdie();\n\t\t}\n\t}", "protected function before_filter() {\n\t}", "public function filter() {\r\n\t\t$this->resource->filter();\r\n\t}", "public function requireFilterSubmit_result()\n\t{\n\t\treturn false;\n\t}", "public function beforeFilter(Event $event)\n {\n }", "public function beforeFilter() {\n\t}", "public function beforeFilter(){\n\t\t$this->check_admin_session();\t\t\n\t}", "public function beforeFilter()\r\n {\r\n\t\t$this->Security->csrfCheck = true;\r\n $this->Security->disabledFields = array(\r\n\t\t\t'Hall.user_id',\r\n );\r\n\t\tif ((!empty($this->request->params['action']) and ($this->request->params['action'] == 'index'))) {\r\n $this->Security->validatePost = false;\r\n }\r\n parent::beforeFilter();\r\n }", "public function beforeFilter(\\Cake\\Event\\Event $event) {\n\t\tparent::beforeFilter($event);\n\t\tif (!stristr($this->request->referer(), DS . 'renumber?')) {\n\t\t\t$this->refererStack($this->request->referer());\n\t\t}\n\t}", "public function filter() {\n\t $this->model->filter(array(\"status\"=>array(0,1)));\n\t if(Request::post(\"section\")){\n\t $section = new CmsSection(Request::post(\"section\"));\n\t foreach($section->tree() as $section) $section_ids[] = $section->primval;\n\t $this->model->filter(array(\"cms_section_id\"=>$section_ids));\n }\n\t parent::filter();\n\t}", "function beforeFilter() {\r\n parent::beforeFilter();\r\n }", "public function __construct()\n {\n $this->beforeFilter('csfr', array('on' => 'post'));\n }", "private function processFilter(sfWebRequest $request)\n {\n $params = $this->getUser()->getAttribute('afaorg', array(), 'afaorg');\n\n if (!isset($params['name'])) $params['name'] = null;\n if (!isset($params['phone'])) $params['phone'] = null;\n if (!isset($params['fax'])) $params['fax'] = null;\n\n $this->max_array = array(5, 10, 20, 30);\n\n if (in_array($request->getParameter('max'), $this->max_array)) {\n $params['max'] = $request->getParameter('max');\n }else{\n if (!isset($params['max'])) $params['max'] = sfConfig::get('app_max_person_per_page', 10);\n }\n\n if ($request->hasParameter('filter')) {\n $params['name'] = $request->getParameter('name');\n $params['phone'] = $request->getParameter('phone');\n $params['fax'] = $request->getParameter('fax');\n }\n\n $this->page = $page = $request->getParameter('page', 1);\n $this->max = $params['max'];\n $this->name = $params['name'];\n $this->phone = $params['phone'];\n $this->fax = $params['fax'];\n\n $this->getUser()->setAttribute('afaorg', $params, 'afaorg');\n }", "function beforeFilter(){\n\t\tparent::beforeFilter(); \n\t}", "function shouldredirecttofilter() {\n if (!$this->has_filters()) {\n return false;\n }\n\n if ($data = data_submitted()) {\n //a forum submit action happened, so render the report\n return false;\n }\n\n if (!empty($_GET)) {\n //determine how many URL parameters were passed in\n $array_get = (array)$_GET;\n $num_elements = count($array_get);\n\n if (isset($array_get['report'])) {\n //don't count the report shortname\n $num_elements--;\n }\n\n if ($num_elements > 0) {\n //a non-innocuous URL parameter was passed in,\n //so render the report\n return false;\n }\n }\n\n return true;\n }", "public function register_filters() {\n\n\t\t}", "private static function _getFilter() {}", "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 setupFilterRules()\n { }", "function CheckFilter() {\n\t\tglobal $dealers_reports;\n\n\t\t// Check StartDate extended filter\n\t\tif ($this->NonTextFilterApplied($dealers_reports->StartDate))\n\t\t\treturn TRUE;\n\t\treturn FALSE;\n\t}", "function beforeFilter() {\n\t\t\n\t//\tparent::beforeFilter();\n\t\t\n\t\t$bypassPage = array(\n\t\t\t'index',\n\t\t\t'paypal',\n\t\t\t'select_type',\n\t\t\t'add_fund',\n\t\t\t'fund_add',\n 'error',\n\t\t\t'paypal_tutor',\n\t\t\t'paypal_non_profit',\n\t\t\t'simple_pay',\n\t\t\t'profiletutoravail',\n\t\t\t'tutor',\n\t\t\t'non_profit',\n\t\t\t'testEmail',\n\t\t\t'first_data_sucess',\n\t\t\t'yourpay',\n\t\t\t'cronjob',\n\t\t\t'reviewcronjob',\n\t\t\t'stripe_pay',\n\t\t\t'stripe_sucess',\n\t\t\t'logout',\n\t\t\t'registration',\n\t\t\t'non_profit_amount_raised',\n\t\t);\n\t\t\n\t\t\n\t\tif (isset($this->params['admin']) && $this->params['action'] != 'admin_login') {\n\t\t\tif (!$this->checkPrivilege($this->action, $this->Session->read(), true)) {\n\t\t\t\t$this->redirect(array(\n\t\t\t\t\t'controller' => 'members',\n\t\t\t\t\t'action' => 'login',\n\t\t\t\t\t'admin' => true\n\t\t\t\t));\n\t\t\t}\n\t\t} else if (isset($this->params['admin']) && $this->params['action'] == 'admin_login') {\n\t\t\tif ($this->checkPrivilege($this->action, $this->Session->read(), true)) {\n\t\t\t\t$this->redirect(array(\n\t\t\t\t\t'controller' => 'members',\n\t\t\t\t\t'action' => 'dashboard',\n\t\t\t\t\t'admin' => true\n\t\t\t\t));\n\t\t\t}\n\t\t} else if ((!isset($this->params['admin']) && $this->params['action'] == 'checkadminlogin') || in_array($this->action, $bypassPage) || $this->RequestHandler->isAjax()) {\n\t\t} else {\n\t\t\tif (!$this->checkPrivilege($this->action, $this->Session->read(), false)) {\n\t\t\t\n\t\t\t\t$this->redirect(array(\n\t\t\t\t\t'controller' => 'members',\n\t\t\t\t\t'action' => 'logout'\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public function filterBeforeAll($filter);", "public function requestFilters()\n\t{\n\t\t$this->services->Common->ajaxCheck();\n\t\t$this->timber->filter->issueDetect();\n\t\t$this->timber->filter->configLibs();\n\t}", "function after_filter($action, $args) {\n }", "function dblog_filter_form_validate($form, &$form_state) {\n if ($form_state['values']['op'] == t('Filter') && empty($form_state['values']['type']) && empty($form_state['values']['severity'])) {\n form_set_error('type', t('You must select something to filter by.'));\n }\n}", "function CheckFilter()\n{\n\tglobal $FilterArr, $lAdmin;\n\tforeach ($FilterArr as $f) global $$f;\n\t\n\treturn count($lAdmin->arFilterErrors) == 0; //if some errors took place, return false;\n}", "function beforeFilter() {\n parent::beforeFilter();\n }", "public function beforeFilter()\r\n\t {\r\n\t parent::beforeFilter();\r\n\t }", "public function init()\n {\n \t// Get filter form\n \t$filters = $this->_dataGrid->getFilter();\n \t\n \t// If send post request, inject into session\n \tif ($this->_dataGrid->getRequest()->isPost())\n \t{\n \t\t$this->_dataGrid->getSession()->filters = $this->_dataGrid->getRequest()->getPost();\n \t}\n \t \n \t// Get valid datas\n \tif ($this->_dataGrid->getSession()->filters)\n \t{\n \t\t$validDatas = $filters->getValidValues((array) $this->_dataGrid->getSession()->filters);\n \t\t$validDatas = isset($validDatas[$this->_dataGrid->getGridId()]['filter']) ? $validDatas[$this->_dataGrid->getGridId()]['filter'] : array();\n \t\t$this->_validDatas = array_filter($validDatas, 'count');\n \t}\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->inscricao_evento_id) AND ( (is_scalar($data->inscricao_evento_id) AND $data->inscricao_evento_id !== '') OR (is_array($data->inscricao_evento_id) AND (!empty($data->inscricao_evento_id)) )) )\n {\n\n $filters[] = new TFilter('inscricao_id', 'in', \"(SELECT id FROM inscricao WHERE evento_id = '{$data->inscricao_evento_id}')\");// create the filter \n }\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n }", "public function beforeFilter(Event $event)\n {\n if ($this->getController()->Auth->user('id') ) {\n if ($this->checkAppRegistration() === false) {\n // accessible actions\n\n if (!in_array($this->getController()->request->getParam('action'),$this->getConfig('allowedActions'))) {\n $event->stopPropagation(); // stop event propagation\n if ($this->getController()->request->is('ajax')) {\n throw new ForbiddenException('An Error Occurred processing your request');\n }\n return $this->getController()->redirect(['plugin'=>false,'prefix'=>false,'controller'=>'Dashboard','action'=>'registerApplication']);\n }\n }\n }\n }", "public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('checkthreshold');\n \n\n }", "function current_filter()\n {\n }", "function Recordset_SearchValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->AdvancedSearch->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Recordset_SearchValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->AdvancedSearch->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Recordset_SearchValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->AdvancedSearch->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Recordset_SearchValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->AdvancedSearch->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Recordset_SearchValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->AdvancedSearch->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "abstract public function prepareFilters();", "public function collectFilterValues ($save_filters=true )\n\t{\n\t\tparent::collectFilterValues($save_filters);\n\t\tif (!isset($this->page->value)) {\n\t\t\t$this->page->value = 1;\n\t\t}\n\t\tif (!isset($this->listingsLength->value)) {\n\t\t\t$this->listingsLength->value = $this->DEFAULT_PAGE_LEN();\n\t\t}\n\t\tif ($this->next->value==\"\") {\n\t\t\t$this->next->value = \"view\";\n\t\t}\n\t\t$this->gallery->collectFilterValues($save_filters);\n\t}", "public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('indexOfMember', 'search');\n }", "function smarty_function_pagesetter_CreateFilter($args, &$smarty)\r\n{\r\n //$smarty->caching = 0; // Nice for debugging ...\r\n \r\n // pagesetter_userapi_getPubList\r\n if (!isset($args['filter']))\r\n return \"Missing 'filter' argument in Smarty plugin 'pagesetter_CreateFilter'\";\r\n\r\n if (!pnModAPILoad('pagesetter', 'admin'))\r\n return pagesetterErrorPage(__FILE__, __LINE__, 'Failed to load Pagesetter admin API');\r\n\r\n $filter = array(); \r\n\r\n // Get unnumbered filter string\r\n $filterStr = $args['filter'];\r\n\r\n if (isset($filterStr))\r\n $filter[] = pagesetterReplaceFilterVariable($filterStr); \r\n\r\n // Get filter1 ... filterN\r\n $i = 1;\r\n while (true) {\r\n $filterURLName = \"filter$i\";\r\n $filterStr = $args[$filterURLName];\r\n\r\n if (empty($filterStr))\r\n break;\r\n\r\n $filter[] = pagesetterReplaceFilterVariable($filterStr);\r\n $i++;\r\n } \r\n\r\n if (isset($args['assign'])) {\r\n $smarty->assign($args['assign'], $filter);\r\n } else {\r\n return $filter; \r\n } \r\n}", "function before_filter(&$action, &$args) {\n }", "public function beforeValidate() {\n return parent::beforeValidate();\n }", "public function beforeSave()\r\n {\r\n $pageToShow = $this->getData('fieldset_data')['which_page_to_show'];\r\n $inPage = $this->getData('fieldset_data')['include_pages'];\r\n $inPageUrl = $this->getData('fieldset_data')['include_pages_with_url'];\r\n\r\n if ($pageToShow == 1 && !($inPage || $inPageUrl)) {\r\n throw new Exception(__('Please enter the value into one of the following boxes: Include page(s) and Include Page(s) with URL contains.'));\r\n }\r\n\r\n return parent::beforeSave();\r\n }", "function SetFilter ( $cFilterExp )\n{\n if ( $cFilterExp <> $this->_FilterExp ) {\n $this->FilterExp($cFilterExp);\n if (!$this->SearchCurr()) $this->FirstPage();\n }\n}", "public function valid()\n {\n return $this->pager->valid();\n }", "public function beforeFilter(\\Cake\\Event\\Event $event) {\n\t\tparent::beforeFilter($event);\n\n\t\tif (!stristr($this->request->referer(), DS . 'dispositions' . DS)) {\n\t\t\t$this->refererStack($this->request->referer());\n\t\t}\n\t}", "public function beforeFilter() {\n\t\t\n\t\tif($this->Auth->user('professor')==true) {\n\t\t\t$this->Ressource->Behaviors->attach('LightAuthFiltered', array('match_field'=>'creator'));\n\t\t} else {\n\t\t\t$this->Ressource->Behaviors->attach('LightAuthFiltered', array('match_field'=>'cours_id', 'auth_field'=>'cours_id'));\n\t\t}\n\t\t\n\t\tparent::beforeFilter();\n\t\t$this->Auth->authorize = 'Controller';\n\n if (isset($this->Security) && in_array($this->action, array('display'))) {\n\t\t$this->Security->validatePost = false;\n\t\t$this->Security->csrfCheck = false;\n\t}\n\n // Controller specific beforeFilter \n }", "private function setFilter(): void\n {\n // start date is set\n if ($this->getRequest()->query->has('start_date') && $this->getRequest()->query->get('start_date', '') !== '') {\n // redefine\n $startDate = $this->getRequest()->query->get('start_date', '');\n\n // explode date parts\n $chunks = explode('/', $startDate);\n\n // valid date\n if (count($chunks) == 3 && checkdate((int) $chunks[1], (int) $chunks[0], (int) $chunks[2])) {\n $this->filter['start_date'] = $startDate;\n } else {\n // invalid date\n $this->filter['start_date'] = '';\n }\n } else {\n // not set\n $this->filter['start_date'] = '';\n }\n\n // end date is set\n if ($this->getRequest()->query->has('end_date') && $this->getRequest()->query->get('end_date', '') !== '') {\n // redefine\n $endDate = $this->getRequest()->query->get('end_date', '');\n\n // explode date parts\n $chunks = explode('/', $endDate);\n\n // valid date\n if (count($chunks) == 3 && checkdate((int) $chunks[1], (int) $chunks[0], (int) $chunks[2])) {\n $this->filter['end_date'] = $endDate;\n } else {\n // invalid date\n $this->filter['end_date'] = '';\n }\n } else {\n // not set\n $this->filter['end_date'] = '';\n }\n }", "public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow(array('register', 'check_existing_email'));\n }", "private function setup_filters() {\n\n\t\tadd_filter( 'pre_option_posts_per_page', array( $this, 'filter_posts_per_page' ) );\n\n\t\tadd_filter( 'plugins_url', array( $this, 'filter_plugins_url' ) );\n\n\t}", "public function addFilters()\n {\n }", "function paginationConditions() {\n // Only retrieve attributes in the current data filter scrubber\n\n $ret = array();\n\n $ret['conditions']['DataScrubberFilterAttribute.data_scrubber_filter_id'] = $this->request->params['named']['datascrubberfilter'];\n\n return $ret;\n }", "abstract protected function filterFieldvalue();", "abstract public function filters();", "private function handleTagFilter()\n {\n $this->tagFilterEnabled = false;\n\n switch ($this->enableTagFilter) {\n // fall-through is intentional here, setting of tagFilterEnabled to true is valid for both cases\n case self::TAG_FILTER_ON_OVERFLOW:\n if (!($this->totalCount > $this->limit)) {\n break;\n }\n case self::TAG_FILTER_ALWAYS:\n $this->tagFilterEnabled = true;\n }\n\n if ($this->tagFilterEnabled) {\n $this->addJs('/plugins/' . Plugin::DIRECTORY_KEY . '/assets/js/jquery.mark.min.js');\n }\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n \n if ($this->formFilters)\n {\n foreach ($this->formFilters as $filterKey => $formFilter)\n {\n $operator = isset($this->operators[$filterKey]) ? $this->operators[$filterKey] : 'like';\n $filterField = isset($this->filterFields[$filterKey]) ? $this->filterFields[$filterKey] : $formFilter;\n $filterFunction = isset($this->filterTransformers[$filterKey]) ? $this->filterTransformers[$filterKey] : null;\n \n // check if the user has filled the form\n if (isset($data->{$formFilter}) AND $data->{$formFilter})\n {\n // $this->filterTransformers\n if ($filterFunction)\n {\n $fieldData = $filterFunction($data->{$formFilter});\n }\n else\n {\n $fieldData = $data->{$formFilter};\n }\n \n // creates a filter using what the user has typed\n if (stristr($operator, 'like'))\n {\n $filter = new TFilter($filterField, $operator, \"%{$fieldData}%\");\n }\n else\n {\n $filter = new TFilter($filterField, $operator, $fieldData);\n }\n \n // stores the filter in the session\n TSession::setValue($this->activeRecord.'_filter', $filter); // BC compatibility\n TSession::setValue($this->activeRecord.'_filter_'.$formFilter, $filter);\n TSession::setValue($this->activeRecord.'_'.$formFilter, $data->{$formFilter});\n }\n else\n {\n TSession::setValue($this->activeRecord.'_filter', NULL); // BC compatibility\n TSession::setValue($this->activeRecord.'_filter_'.$formFilter, NULL);\n TSession::setValue($this->activeRecord.'_'.$formFilter, '');\n }\n }\n }\n \n TSession::setValue($this->activeRecord.'_filter_data', $data);\n TSession::setValue(get_class($this).'_filter_data', $data);\n \n // fill the form with data again\n $this->form->setData($data);\n \n $param=array();\n $param['offset'] =0;\n $param['first_page']=1;\n $this->onReload($param);\n }", "function before_validation(){}", "public function beforeFilter()\n {\n $this->Auth->allow('index');\n //$this->Auth->allow('ajax_mypage');\n $this->Auth->allow('ajax_index');\n }", "abstract protected function validateFilterArguments($filters);", "public function addFilters() {\n\t\t\tadd_filter( 'muut_validate_setting', array( $this, 'validateSettings' ), 10, 2 );\n\t\t}", "function after_validation() {}", "public function handleFilters()\n\t{\n\t\t$profile = $this->profile;\n\n\t\t$data = Input::get('filteroption');\n\t\tforeach($data as &$value)\n\t\t{\n\t\t\t$value = (array) $value;\n\t\t}\n\n\t\t$this->profileService->syncProfileProperties($profile, $data);\n\n\t\treturn Redirect::action('datacollector.controller@index');\n\t}", "public function filtering();" ]
[ "0.7723713", "0.7723713", "0.6569364", "0.6460507", "0.6100119", "0.6073535", "0.5889451", "0.5889451", "0.5813859", "0.58027166", "0.5757468", "0.5704214", "0.5654849", "0.5654849", "0.5646634", "0.564627", "0.56447905", "0.56422627", "0.564125", "0.5614257", "0.55620635", "0.5513479", "0.54958594", "0.5484593", "0.5475579", "0.5462466", "0.54610324", "0.5453185", "0.54404086", "0.542549", "0.5423976", "0.54123443", "0.5395016", "0.5368557", "0.53357005", "0.5335611", "0.53025395", "0.526666", "0.5253768", "0.52509534", "0.5242946", "0.5239185", "0.5232728", "0.52268356", "0.5212864", "0.5203188", "0.51979905", "0.5193365", "0.5168232", "0.5164363", "0.51560277", "0.51441944", "0.5141605", "0.5136035", "0.51345336", "0.5130382", "0.5125386", "0.5124926", "0.51229054", "0.5118644", "0.5118195", "0.51106876", "0.51090604", "0.5098459", "0.50957626", "0.5095365", "0.50918865", "0.508009", "0.508009", "0.508009", "0.508009", "0.508009", "0.50774556", "0.50772876", "0.5076251", "0.50745344", "0.50720716", "0.5071008", "0.5069921", "0.506672", "0.5065626", "0.5060444", "0.50534153", "0.50467414", "0.5045348", "0.502388", "0.5007023", "0.5004663", "0.4994867", "0.49929824", "0.49842763", "0.49813804", "0.49781492", "0.49731177", "0.49717388", "0.49702862", "0.49543172", "0.4954073", "0.49533507" ]
0.75285935
3
Set up export options
function SetupExportOptions() { global $ReportLanguage, $deals_details; // Printer friendly $item =& $this->ExportOptions->Add("print"); $item->Body = "<a href=\"" . $this->ExportPrintUrl . "\">" . $ReportLanguage->Phrase("PrinterFriendly") . "</a>"; $item->Visible = TRUE; // Export to Excel $item =& $this->ExportOptions->Add("excel"); $item->Body = "<a href=\"" . $this->ExportExcelUrl . "\">" . $ReportLanguage->Phrase("ExportToExcel") . "</a>"; $item->Visible = TRUE; // Export to Word $item =& $this->ExportOptions->Add("word"); $item->Body = "<a href=\"" . $this->ExportWordUrl . "\">" . $ReportLanguage->Phrase("ExportToWord") . "</a>"; $item->Visible = TRUE; // Export to Pdf $item =& $this->ExportOptions->Add("pdf"); $item->Body = "<a href=\"" . $this->ExportPdfUrl . "\">" . $ReportLanguage->Phrase("ExportToPDF") . "</a>"; $item->Visible = FALSE; // Uncomment codes below to show export to Pdf link // $item->Visible = FALSE; // Export to Email $item =& $this->ExportOptions->Add("email"); $item->Body = "<a name=\"emf_deals_details\" id=\"emf_deals_details\" href=\"javascript:void(0);\" onclick=\"ewrpt_EmailDialogShow({lnk:'emf_deals_details',hdr:ewLanguage.Phrase('ExportToEmail')});\">" . $ReportLanguage->Phrase("ExportToEmail") . "</a>"; $item->Visible = FALSE; // Reset filter $item =& $this->ExportOptions->Add("resetfilter"); $item->Body = "<a href=\"" . ewrpt_CurrentPage() . "?cmd=reset\">" . $ReportLanguage->Phrase("ResetAllFilter") . "</a>"; $item->Visible = TRUE; $this->SetupExportOptionsExt(); // Hide options for export if ($deals_details->Export <> "") $this->ExportOptions->HideAllOptions(); // Set up table class if ($deals_details->Export == "word" || $deals_details->Export == "excel" || $deals_details->Export == "pdf") $this->ReportTableClass = "ewTable"; else $this->ReportTableClass = "ewTable ewTableSeparate"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetupExportOptions() {\n\t\tglobal $ReportLanguage, $dealers_reports;\n\n\t\t// Printer friendly\n\t\t$item =& $this->ExportOptions->Add(\"print\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPrintUrl . \"\\\">\" . $ReportLanguage->Phrase(\"PrinterFriendly\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Export to Excel\n\t\t$item =& $this->ExportOptions->Add(\"excel\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportExcelUrl . \"\\\">\" . $ReportLanguage->Phrase(\"ExportToExcel\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Export to Word\n\t\t$item =& $this->ExportOptions->Add(\"word\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportWordUrl . \"\\\">\" . $ReportLanguage->Phrase(\"ExportToWord\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Export to Pdf\n\t\t$item =& $this->ExportOptions->Add(\"pdf\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPdfUrl . \"\\\">\" . $ReportLanguage->Phrase(\"ExportToPDF\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Uncomment codes below to show export to Pdf link\n//\t\t$item->Visible = FALSE;\n\t\t// Export to Email\n\n\t\t$item =& $this->ExportOptions->Add(\"email\");\n\t\t$item->Body = \"<a name=\\\"emf_dealers_reports\\\" id=\\\"emf_dealers_reports\\\" href=\\\"javascript:void(0);\\\" onclick=\\\"ewrpt_EmailDialogShow({lnk:'emf_dealers_reports',hdr:ewLanguage.Phrase('ExportToEmail')});\\\">\" . $ReportLanguage->Phrase(\"ExportToEmail\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Reset filter\n\t\t$item =& $this->ExportOptions->Add(\"resetfilter\");\n\t\t$item->Body = \"<a href=\\\"\" . ewrpt_CurrentPage() . \"?cmd=reset\\\">\" . $ReportLanguage->Phrase(\"ResetAllFilter\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\t\t$this->SetupExportOptionsExt();\n\n\t\t// Hide options for export\n\t\tif ($dealers_reports->Export <> \"\")\n\t\t\t$this->ExportOptions->HideAllOptions();\n\n\t\t// Set up table class\n\t\tif ($dealers_reports->Export == \"word\" || $dealers_reports->Export == \"excel\" || $dealers_reports->Export == \"pdf\")\n\t\t\t$this->ReportTableClass = \"ewTable\";\n\t\telse\n\t\t\t$this->ReportTableClass = \"ewTable ewTableSeparate\";\n\t}", "function SetupExportOptions() {\n\t\tglobal $Language;\n\n\t\t// Printer friendly\n\t\t$item = &$this->ExportOptions->Add(\"print\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPrintUrl . \"\\\">\" . $Language->Phrase(\"PrinterFriendly\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Excel\n\t\t$item = &$this->ExportOptions->Add(\"excel\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportExcelUrl . \"\\\">\" . $Language->Phrase(\"ExportToExcel\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Export to Word\n\t\t$item = &$this->ExportOptions->Add(\"word\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportWordUrl . \"\\\">\" . $Language->Phrase(\"ExportToWord\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Html\n\t\t$item = &$this->ExportOptions->Add(\"html\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportHtmlUrl . \"\\\">\" . $Language->Phrase(\"ExportToHtml\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Xml\n\t\t$item = &$this->ExportOptions->Add(\"xml\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportXmlUrl . \"\\\">\" . $Language->Phrase(\"ExportToXml\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Csv\n\t\t$item = &$this->ExportOptions->Add(\"csv\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportCsvUrl . \"\\\">\" . $Language->Phrase(\"ExportToCsv\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Pdf\n\t\t$item = &$this->ExportOptions->Add(\"pdf\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPdfUrl . \"\\\">\" . $Language->Phrase(\"ExportToPDF\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Email\n\t\t$item = &$this->ExportOptions->Add(\"email\");\n\t\t$item->Body = \"<a id=\\\"emf_userlevels\\\" href=\\\"javascript:void(0);\\\" onclick=\\\"ew_EmailDialogShow({lnk:'emf_userlevels',hdr:ewLanguage.Phrase('ExportToEmail'),f:document.fuserlevelslist,sel:false});\\\">\" . $Language->Phrase(\"ExportToEmail\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Hide options for export/action\n\t\tif ($this->Export <> \"\" || $this->CurrentAction <> \"\")\n\t\t\t$this->ExportOptions->HideAllOptions();\n\t}", "function SetupExportOptions() {\r\n\t\tglobal $Language;\r\n\r\n\t\t// Printer friendly\r\n\t\t$item = &$this->ExportOptions->Add(\"print\");\r\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPrintUrl . \"\\\" class=\\\"ewExportLink ewPrint\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"PrinterFriendlyText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"PrinterFriendlyText\")) . \"\\\">\" . $Language->Phrase(\"PrinterFriendly\") . \"</a>\";\r\n\t\t$item->Visible = TRUE;\r\n\r\n\t\t// Export to Excel\r\n\t\t$item = &$this->ExportOptions->Add(\"excel\");\r\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportExcelUrl . \"\\\" class=\\\"ewExportLink ewExcel\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToExcelText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToExcelText\")) . \"\\\">\" . $Language->Phrase(\"ExportToExcel\") . \"</a>\";\r\n\t\t$item->Visible = TRUE;\r\n\r\n\t\t// Export to Word\r\n\t\t$item = &$this->ExportOptions->Add(\"word\");\r\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportWordUrl . \"\\\" class=\\\"ewExportLink ewWord\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToWordText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToWordText\")) . \"\\\">\" . $Language->Phrase(\"ExportToWord\") . \"</a>\";\r\n\t\t$item->Visible = TRUE;\r\n\r\n\t\t// Export to Html\r\n\t\t$item = &$this->ExportOptions->Add(\"html\");\r\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportHtmlUrl . \"\\\" class=\\\"ewExportLink ewHtml\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToHtmlText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToHtmlText\")) . \"\\\">\" . $Language->Phrase(\"ExportToHtml\") . \"</a>\";\r\n\t\t$item->Visible = TRUE;\r\n\r\n\t\t// Export to Xml\r\n\t\t$item = &$this->ExportOptions->Add(\"xml\");\r\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportXmlUrl . \"\\\" class=\\\"ewExportLink ewXml\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToXmlText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToXmlText\")) . \"\\\">\" . $Language->Phrase(\"ExportToXml\") . \"</a>\";\r\n\t\t$item->Visible = TRUE;\r\n\r\n\t\t// Export to Csv\r\n\t\t$item = &$this->ExportOptions->Add(\"csv\");\r\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportCsvUrl . \"\\\" class=\\\"ewExportLink ewCsv\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToCsvText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToCsvText\")) . \"\\\">\" . $Language->Phrase(\"ExportToCsv\") . \"</a>\";\r\n\t\t$item->Visible = TRUE;\r\n\r\n\t\t// Export to Pdf\r\n\t\t$item = &$this->ExportOptions->Add(\"pdf\");\r\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPdfUrl . \"\\\" class=\\\"ewExportLink ewPdf\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToPDFText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToPDFText\")) . \"\\\">\" . $Language->Phrase(\"ExportToPDF\") . \"</a>\";\r\n\t\t$item->Visible = TRUE;\r\n\r\n\t\t// Export to Email\r\n\t\t$item = &$this->ExportOptions->Add(\"email\");\r\n\t\t$url = \"\";\r\n\t\t$item->Body = \"<button id=\\\"emf_tutores\\\" class=\\\"ewExportLink ewEmail\\\" title=\\\"\" . $Language->Phrase(\"ExportToEmailText\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"ExportToEmailText\") . \"\\\" onclick=\\\"ew_EmailDialogShow({lnk:'emf_tutores',hdr:ewLanguage.Phrase('ExportToEmailText'),f:document.ftutoresview,key:\" . ew_ArrayToJsonAttr($this->RecKey) . \",sel:false\" . $url . \"});\\\">\" . $Language->Phrase(\"ExportToEmail\") . \"</button>\";\r\n\t\t$item->Visible = FALSE;\r\n\r\n\t\t// Drop down button for export\r\n\t\t$this->ExportOptions->UseButtonGroup = TRUE;\r\n\t\t$this->ExportOptions->UseImageAndText = TRUE;\r\n\t\t$this->ExportOptions->UseDropDownButton = TRUE;\r\n\t\tif ($this->ExportOptions->UseButtonGroup && ew_IsMobile())\r\n\t\t\t$this->ExportOptions->UseDropDownButton = TRUE;\r\n\t\t$this->ExportOptions->DropDownButtonPhrase = $Language->Phrase(\"ButtonExport\");\r\n\r\n\t\t// Add group option item\r\n\t\t$item = &$this->ExportOptions->Add($this->ExportOptions->GroupOptionName);\r\n\t\t$item->Body = \"\";\r\n\t\t$item->Visible = FALSE;\r\n\r\n\t\t// Hide options for export\r\n\t\tif ($this->Export <> \"\")\r\n\t\t\t$this->ExportOptions->HideAllOptions();\r\n\t}", "function SetupExportOptions() {\n\t\tglobal $Language;\n\n\t\t// Printer friendly\n\t\t$item = &$this->ExportOptions->Add(\"print\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPrintUrl . \"\\\" class=\\\"ewExportLink ewPrint\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"PrinterFriendlyText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"PrinterFriendlyText\")) . \"\\\">\" . $Language->Phrase(\"PrinterFriendly\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Export to Excel\n\t\t$item = &$this->ExportOptions->Add(\"excel\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportExcelUrl . \"\\\" class=\\\"ewExportLink ewExcel\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToExcelText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToExcelText\")) . \"\\\">\" . $Language->Phrase(\"ExportToExcel\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Export to Word\n\t\t$item = &$this->ExportOptions->Add(\"word\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportWordUrl . \"\\\" class=\\\"ewExportLink ewWord\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToWordText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToWordText\")) . \"\\\">\" . $Language->Phrase(\"ExportToWord\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Html\n\t\t$item = &$this->ExportOptions->Add(\"html\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportHtmlUrl . \"\\\" class=\\\"ewExportLink ewHtml\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToHtmlText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToHtmlText\")) . \"\\\">\" . $Language->Phrase(\"ExportToHtml\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Xml\n\t\t$item = &$this->ExportOptions->Add(\"xml\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportXmlUrl . \"\\\" class=\\\"ewExportLink ewXml\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToXmlText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToXmlText\")) . \"\\\">\" . $Language->Phrase(\"ExportToXml\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Csv\n\t\t$item = &$this->ExportOptions->Add(\"csv\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportCsvUrl . \"\\\" class=\\\"ewExportLink ewCsv\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToCsvText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToCsvText\")) . \"\\\">\" . $Language->Phrase(\"ExportToCsv\") . \"</a>\";\n\t\t$item->Visible = TRUE;\n\n\t\t// Export to Pdf\n\t\t$item = &$this->ExportOptions->Add(\"pdf\");\n\t\t$item->Body = \"<a href=\\\"\" . $this->ExportPdfUrl . \"\\\" class=\\\"ewExportLink ewPdf\\\" title=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToPDFText\")) . \"\\\" data-caption=\\\"\" . ew_HtmlEncode($Language->Phrase(\"ExportToPDFText\")) . \"\\\">\" . $Language->Phrase(\"ExportToPDF\") . \"</a>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Export to Email\n\t\t$item = &$this->ExportOptions->Add(\"email\");\n\t\t$url = \"\";\n\t\t$item->Body = \"<button id=\\\"emf_users\\\" class=\\\"ewExportLink ewEmail\\\" title=\\\"\" . $Language->Phrase(\"ExportToEmailText\") . \"\\\" data-caption=\\\"\" . $Language->Phrase(\"ExportToEmailText\") . \"\\\" onclick=\\\"ew_EmailDialogShow({lnk:'emf_users',hdr:ewLanguage.Phrase('ExportToEmailText'),f:document.fuserslist,sel:false\" . $url . \"});\\\">\" . $Language->Phrase(\"ExportToEmail\") . \"</button>\";\n\t\t$item->Visible = FALSE;\n\n\t\t// Drop down button for export\n\t\t$this->ExportOptions->UseButtonGroup = TRUE;\n\t\t$this->ExportOptions->UseImageAndText = TRUE;\n\t\t$this->ExportOptions->UseDropDownButton = TRUE;\n\t\tif ($this->ExportOptions->UseButtonGroup && ew_IsMobile())\n\t\t\t$this->ExportOptions->UseDropDownButton = TRUE;\n\t\t$this->ExportOptions->DropDownButtonPhrase = $Language->Phrase(\"ButtonExport\");\n\n\t\t// Add group option item\n\t\t$item = &$this->ExportOptions->Add($this->ExportOptions->GroupOptionName);\n\t\t$item->Body = \"\";\n\t\t$item->Visible = FALSE;\n\t}", "private function export_options ( $export ) {\n\t\t\t\n\t\t\t$properties = $export->addChild( 'extended-properties' );\n\t\t\t\n\t\t\t$options = DB::get_results( 'select name, value, type from {options}' );\n\t\t\tforeach ( $options as $option ) {\n\t\t\t\t\n\t\t\t\t$property = $properties->addChild( 'property' );\n\t\t\t\t$property->addAttribute( 'name', $option->name );\n\t\t\t\t$property->addAttribute( 'value', $option->value );\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "protected function setProperties()\n {\n $exportPluginProperties = new ExportPluginProperties();\n $exportPluginProperties->setText('CSV for MS Excel');\n $exportPluginProperties->setExtension('csv');\n $exportPluginProperties->setMimeType('text/comma-separated-values');\n $exportPluginProperties->setOptionsText(__('Options'));\n\n // create the root group that will be the options field for\n // $exportPluginProperties\n // this will be shown as \"Format specific options\"\n $exportSpecificOptions = new OptionsPropertyRootGroup(\n \"Format Specific Options\"\n );\n\n // general options main group\n $generalOptions = new OptionsPropertyMainGroup(\"general_opts\");\n // create primary items and add them to the group\n $leaf = new TextPropertyItem(\n 'null',\n __('Replace NULL with:')\n );\n $generalOptions->addProperty($leaf);\n $leaf = new BoolPropertyItem(\n 'removeCRLF',\n __('Remove carriage return/line feed characters within columns')\n );\n $generalOptions->addProperty($leaf);\n $leaf = new BoolPropertyItem(\n 'columns',\n __('Put columns names in the first row')\n );\n $generalOptions->addProperty($leaf);\n $leaf = new SelectPropertyItem(\n 'edition',\n __('Excel edition:')\n );\n $leaf->setValues(\n array(\n 'win' => 'Windows',\n 'mac_excel2003' => 'Excel 2003 / Macintosh',\n 'mac_excel2008' => 'Excel 2008 / Macintosh',\n )\n );\n $generalOptions->addProperty($leaf);\n $leaf = new HiddenPropertyItem(\n 'structure_or_data'\n );\n $generalOptions->addProperty($leaf);\n // add the main group to the root group\n $exportSpecificOptions->addProperty($generalOptions);\n\n // set the options for the export plugin property item\n $exportPluginProperties->setOptions($exportSpecificOptions);\n $this->properties = $exportPluginProperties;\n }", "public function setupOptions()\n {\n $action = new Action('generate', 'Generate fake data');\n //output adapter\n $option = new Option('o', 'output', 'Specify output adapter. Available outputs: db.[orm|odm], file.[csv|json|xml]');\n $option->setRequired(true);\n $action->addOption($option);\n\n $option = new Option('d', 'dest', 'Specify the destination point. It might be a file, or database collection or table');\n $option->setRequired(true);\n $action->addOption($option);\n\n //data specification\n $option = new Option('s', 'spec', 'Specify the file path containing data specification in JSON format');\n $option->setRequired(true);\n $action->addOption($option);\n\n //count of data\n $option = new Option('c', 'count', 'Specify the count of data to generate');\n $option->setRequired(true);\n $action->addOption($option);\n\n $this->addTaskAction($action);\n }", "public function export() {\n\t\t\t// Check if export is allowed.\n\t\t\t$wp_nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ) : '?'; // input var okay.\n\t\t\tif ( ! wp_verify_nonce( $wp_nonce, 'wpda-export-*' ) ) {\n\t\t\t\twp_die();\n\t\t\t}\n\n\t\t\t// Get arguments.\n\t\t\t$this->mysql_set = isset( $_REQUEST['mysql_set'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['mysql_set'] ) ) : 'on'; // input var okay.\n\t\t\t$this->show_comments = isset( $_REQUEST['show_comments'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['show_comments'] ) ) : 'on'; // input var okay.\n\t\t\t$this->show_create = isset( $_REQUEST['show_create'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['show_create'] ) ) : 'on'; // input var okay.\n\t\t\t$this->include_table_settings = isset( $_REQUEST['include_table_settings'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['include_table_settings'] ) ) : 'off'; // input var okay.\n\n\t\t\tif ( isset( $_REQUEST['schema_name'] ) ) {\n\t\t\t\t$this->schema_name = sanitize_text_field( wp_unslash( $_REQUEST['schema_name'] ) ); // input var okay.\n\t\t\t\tif ( '' !== $this->schema_name ) {\n\t\t\t\t\t$wpdadb = WPDADB::get_db_connection( $this->schema_name );\n\t\t\t\t\t$this->schema_name_prefix = \"`{$wpdadb->dbname}`.\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( isset( $_REQUEST['type'] ) && isset( $_REQUEST['table_names'] ) ) { // input var okay.\n\t\t\t\t// Get table_name(s) from URL. Type is string for single table export and array for multi table export.\n\t\t\t\t// Row export implies single table export.\n\t\t\t\t$this->table_list = $_REQUEST['table_names'];\n\n\t\t\t\tif ( 'table' === sanitize_text_field( wp_unslash( $_REQUEST['type'] ) ) ) { // input var okay.\n\t\t\t\t\t// Table export.\n\t\t\t\t\t$this->export_tables();\n\t\t\t\t} else {\n\t\t\t\t\t// Row export.\n\t\t\t\t\tif ( is_array( $this->table_list ) ) {\n\t\t\t\t\t\t// For row exports a single table name must be supplied as a string.\n\t\t\t\t\t\t$this->wrong_arguments();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->export_rows();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->wrong_arguments();\n\t\t\t}\n\t\t}", "public static function get_export_options() {\n\n\t\t$order_statuses = wc_get_order_statuses();\n\t\t$product_categories = array();\n\n\t\tforeach ( get_terms( 'product_cat' ) as $term ) {\n\t\t\t$product_categories[ $term->term_id ] = $term->name;\n\t\t}\n\n\t\t$options = array(\n\n\t\t\t'export_section_title' => array(\n\t\t\t\t'name' => __( 'Export', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'title',\n\t\t\t),\n\n\t\t\t'type' => array(\n\t\t\t\t'id' => 'type',\n\t\t\t\t'name' => __( 'Export Type', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'radio',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'orders' => __( 'Orders', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t\t'customers' => __( 'Customers', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t),\n\t\t\t\t'default' => 'orders',\n\t\t\t),\n\n\t\t\t'export_section_end' => array( 'type' => 'sectionend' ),\n\n\t\t\t'export_options_section_title' => array(\n\t\t\t\t'name' => __( 'Export Options', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'title',\n\t\t\t),\n\n\t\t\t'statuses' => array(\n\t\t\t\t'id' => 'statuses',\n\t\t\t\t'name' => __( 'Order Statuses', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc_tip' => __( 'Orders with these statuses will be included in the export.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'multiselect',\n\t\t\t\t'options' => $order_statuses,\n\t\t\t\t'default' => '',\n\t\t\t\t'class' => 'wc-enhanced-select show_if_orders',\n\t\t\t\t'css' => 'min-width: 250px',\n\t\t\t\t'custom_attributes' => array(\n\t\t\t\t\t'data-placeholder' => __( 'Leave blank to export orders with any status.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t),\n\t\t\t),\n\n\t\t\t'product_categories' => array(\n\t\t\t\t'id' => 'product_categories',\n\t\t\t\t'name' => __( 'Product Categories', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc_tip' => __( 'Orders with products in these categories will be included in the export.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'multiselect',\n\t\t\t\t'options' => $product_categories,\n\t\t\t\t'default' => '',\n\t\t\t\t'class' => 'wc-enhanced-select show_if_orders',\n\t\t\t\t'css' => 'min-width: 250px',\n\t\t\t\t'custom_attributes' => array(\n\t\t\t\t\t'data-placeholder' => __( 'Leave blank to export orders with products in any category.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t),\n\t\t\t),\n\n\t\t\t'products' => array(\n\t\t\t\t'id' => 'products',\n\t\t\t\t'name' => __( 'Products', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc_tip' => __( 'Orders with these products will be included in the export.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'csv_product_search',\n\t\t\t\t'default' => '',\n\t\t\t\t'class' => 'wc-product-search show_if_orders',\n\t\t\t\t'css' => 'min-width: 250px',\n\t\t\t\t'custom_attributes' => array(\n\t\t\t\t\t'data-multiple' => 'true',\n\t\t\t\t\t'data-action' => 'woocommerce_json_search_products_and_variations',\n\t\t\t\t\t'data-placeholder' => __( 'Leave blank to export orders with any products.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t),\n\t\t\t),\n\n\t\t\t'coupon_product_categories' => array(\n\t\t\t\t'id' => 'coupon_product_categories',\n\t\t\t\t'name' => __( 'Product Categories', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc_tip' => __( 'Coupons that apply to these categories will be included in the export.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'multiselect',\n\t\t\t\t'options' => $product_categories,\n\t\t\t\t'default' => '',\n\t\t\t\t'class' => 'wc-enhanced-select show_if_coupons',\n\t\t\t\t'css' => 'min-width: 250px',\n\t\t\t\t'custom_attributes' => array(\n\t\t\t\t\t'data-placeholder' => __( 'Leave blank to export coupons that apply to any category.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t),\n\t\t\t),\n\n\t\t\t'coupon_products' => array(\n\t\t\t\t'id' => 'coupon_products',\n\t\t\t\t'name' => __( 'Products', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc_tip' => __( 'Coupons that apply to these products will be included in the export.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'csv_product_search',\n\t\t\t\t'default' => '',\n\t\t\t\t'class' => 'wc-product-search show_if_coupons',\n\t\t\t\t'css' => 'min-width: 250px',\n\t\t\t\t'custom_attributes' => array(\n\t\t\t\t\t'data-multiple' => 'true',\n\t\t\t\t\t'data-action' => 'woocommerce_json_search_products_and_variations',\n\t\t\t\t\t'data-placeholder' => __( 'Leave blank to export coupons that apply to any products.', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t),\n\t\t\t),\n\n\t\t\t'start_date' => array(\n\t\t\t\t'id' => 'start_date',\n\t\t\t\t'name' => __( 'Start Date', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc' => __( 'Start date of customers or orders to include in the exported file, in the format <code>YYYY-MM-DD.</code>', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'text',\n\t\t\t),\n\n\t\t\t'end_date' => array(\n\t\t\t\t'id' => 'end_date',\n\t\t\t\t'name' => __( 'End Date', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc' => __( 'End date of customers or orders to include in the exported file, in the format <code>YYYY-MM-DD.</code>', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'text',\n\t\t\t),\n\n\t\t\t'export_options_section_end' => array( 'type' => 'sectionend' ),\n\n\t\t);\n\n\t\t// add Coupons to export types only if enabled\n\t\tif ( wc_customer_order_csv_export()->is_coupon_export_enabled() ) {\n\t\t\t$options['type']['options']['coupons'] = __( 'Coupons', 'woocommerce-customer-order-csv-export' );\n\t\t}\n\n\t\tif ( wc_customer_order_csv_export()->is_plugin_active( 'woocommerce-subscriptions.php' ) ) {\n\n\t\t\t$options['subscription_options_section_title'] = array(\n\t\t\t\t'name' => __( 'Subscriptions Options', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'title',\n\t\t\t);\n\n\t\t\t$options['subscription_orders'] = array(\n\t\t\t\t'id' => 'subscription_orders',\n\t\t\t\t'title' => __( 'Export Subscriptions Orders Only', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'desc' => __( 'Export subscription orders', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'checkbox',\n\t\t\t\t'checkboxgroup' => 'start',\n\t\t\t);\n\n\t\t\t$options['subscription_renewals'] = array(\n\t\t\t\t'id' => 'subscription_renewals',\n\t\t\t\t'desc' => __( 'Export renewal orders', 'woocommerce-customer-order-csv-export' ),\n\t\t\t\t'type' => 'checkbox',\n\t\t\t\t'checkboxgroup' => 'end',\n\t\t\t);\n\n\t\t\t$options['subscription_options_section_end'] = array( 'type' => 'sectionend' );\n\n\t\t}\n\n\n\t\t/**\n\t\t * Allow actors to add or remove options from the CSV export page.\n\t\t *\n\t\t * @since 4.0.0\n\t\t * @param array $options an array of options for the export tab\n\t\t */\n\t\treturn apply_filters( 'wc_customer_order_csv_export_options', $options );\n\t}", "public function createExport();", "function init__user_export()\n{\n define('USER_EXPORT_ENABLED', false);\n define('USER_EXPORT_MINUTES', 60 * 24);\n\n define('USER_EXPORT_DELIM', ',');\n\n define('USER_EXPORT_PATH', 'data_custom/modules/user_export/out.csv');\n\n define('USER_EXPORT_IPC_AUTO_REEXPORT', false);\n define('USER_EXPORT_IPC_URL_EDIT', null); // add or edit\n define('USER_EXPORT_IPC_URL_DELETE', null);\n define('USER_EXPORT_EMAIL', null);\n\n global $USER_EXPORT_WANTED;\n $USER_EXPORT_WANTED = array(\n // LOCAL => REMOTE\n 'id' => 'Composr member ID',\n 'm_username' => 'Username',\n 'm_email_address' => 'E-mail address',\n );\n}", "public function exportFields()\r\n\t{\r\n\t\treturn $this->exportOptions;\r\n\t}", "function genesiawesome_childtheme_export_options( $options ) {\n\n\t$options['portlight'] = array(\n\t\t'label' => __( 'Portlight Child Theme Settings', 'genesisawesome' ),\n\t\t'settings-field' => GA_CHILDTHEME_FIELD,\n\t);\n\t$options['portlighthomepage'] = array(\n\t\t'label' => __( 'Portlight Homepage Settings', 'genesisawesome' ),\n\t\t'settings-field' => GA_HOMEPAGE_FIELD,\n\t);\n\n\treturn $options;\n\n}", "public function exportConfiguration() {}", "function get_export_formats() {\n //default to no export (override in report class)\n return array();\n }", "public function export();", "public function export();", "public function export();", "public function export();", "public function export();", "public function jltma_mcb_export_settings() {\n\n $export_options = [];\n $options = wp_load_alloptions();\n foreach($options as $option_name => $option_value) {\n if(preg_match('/jltma_mcb/', $option_name)) {\n $export_options[$option_name] = $option_value;\n }\n }\n $export_options[\"jltma_mcb\"] = file_get_contents( JLTMA_MCB_PLUGIN_PATH . '/custom_breakpoints.json');\n\n header(\"Content-type: text/plain\");\n header(\"Content-Disposition: attachment; filename=master_custom_breakpoints_backup.json\");\n\n echo json_encode($export_options);\n\n }", "public function allowExport()\n {\n return $this->option('useExporter');\n }", "function opcion__exportar()\n\t{\n\t\t$p = $this->get_proyecto();\n\t\t$p->exportar();\n\t\t$p->get_instancia()->exportar_local();\n\t}", "public function export()\n {\n \n }", "protected function doExport(array $options)\n\t{\n\t\t/*\n\t\t * get data in an array\n\t\t */\n\t\t$exportClass = $options['exportClass'];\n\t\t$export = new $exportClass($options['module']->getTable(), $this->getI18n());\n\t\t$data = $export->generate($options['format']);\n\n\t\t/*\n\t\t * transform into downloadable data\n\t\t */\n\t\tswitch($options['extension'])\n\t\t{\n\t\t\tdefault:\n\t\t\t\t$csv = new dmCsvWriter(',', '\"');\n\t\t\t\t$csv->setCharset($options['encoding']);\n\t\t\t\t$data = $csv->convert($data);\n\t\t\t\t$mime = 'text/csv';\n\t\t}\n\n\t\t$this->download($data, array(\n 'file_name' => sprintf('%s-%s_%s.%s',\n\t\tdmConfig::get('site_name'),\n\t\t$this->getI18n()->__($options['module']->getName()),\n\t\tdate('Y-m-d'),\n\t\t$options['extension']\n\t\t),\n 'mime_type' => sprintf('%s; charset=%s', $mime, $options['encoding'])\n\t\t));\n\t}", "public function exportData(): void\n\t{\n\t\t$entries = [];\n\t\tif (!$this->exportColumns && $this->quickExport && $this->queryOptions['viewname']) {\n\t\t\t[$headers, $entries] = $this->getEntriesForQuickExport();\n\t\t} else {\n\t\t\t[$headers, $entries] = $this->getEntriesExport();\n\t\t}\n\t\t$this->output($headers, $entries);\n\t}", "function get_export_choices() {\n $export = [];\n\n $settings = FWP()->helper->settings;\n\n foreach ( $settings['facets'] as $facet ) {\n $export['facet-' . $facet['name']] = 'Facet - ' . $facet['label'];\n }\n\n foreach ( $settings['templates'] as $template ) {\n $export['template-' . $template['name']] = 'Template - '. $template['label'];\n }\n\n return $export;\n }", "function export(){\n\t\t$this->db_tools->export();\n\t\t$this->db_tools->echo_export();\n\t}", "public function export()\n {\n }", "public function export()\n {\n //\n }", "function export()\n {\n $form = new Apeform(0, 0, false);\n $form->hidden(\"export\", \"method\");\n $table = $form->hidden($this->table->tablename(), \"table\");\n $options = array(\n 'csv' => '<acronym title=\"Comma Separated Values\"><u>C</u>SV</acronym>/TXT',\n 'sql' => '<acronym title=\"Structured Query Language\"><u>S</u>QL</acronym> dump',\n 'xml' => '<acronym title=\"Extensible Markup Language\"><u>X</u>ML</acronym> <span style=\"font-size:smaller\">(<a href=\"http://www.google.de/search?q=FlatXmlDataSet\">FlatXmlDataSet</a>)</span>'\n );\n $type = $form->radio(\"Export as\", \"\", $options, \"csv\");\n $options = array(\n \",\" => \"Comma (,)\",\n \";\" => \"Semikolon (;)\",\n \"\\t\" => \"Tabulator\",\n \"\\\\0\" => \"Nul\",\n \"|\" => \"Pipe (|)\",\n \"&\" => \"Ampersand (&amp;)\",\n \":\" => \"Colon (:)\",\n \" \" => \"Space\"\n );\n $delimiter = $form->select(\"CSV/TXT <u>d</u>elimiter\", \"\", $options, \",\");\n if ($delimiter == \"\\\\0\")\n $delimiter = chr(0);\n $sections = $form->checkbox(\"SQL sections\", \"\", \"Structure|Data\", \"Structure|Data\");\n $save = $form->checkbox(\"Save as <u>f</u>ile\");\n if (function_exists(\"gzencode\"))\n $compress = $form->checkbox(\"Save <u>g</u>zip compressed\");\n $form->submit(\"Export\");\n\n $tablename = preg_replace('/\\W+/', '_', basename($this->table->tablename()));\n\n if ($form->isValid() && $type == \"csv\") {\n $this->table->delimiter = $delimiter;\n $export = $this->table->export();\n } elseif ($form->isValid() && $type == \"sql\") {\n $export = \"CREATE TABLE `\" . $tablename . \"` (\\n\";\n foreach ($this->table->fields as $field) {\n $export .= \" `\" . preg_replace('/\\W+/', '_', $field) . \"` \";\n if ($this->types[$field] == \"varchar\" || $this->types[$field] == \"null\")\n $export .= \"VARCHAR(255)\";\n elseif ($this->types[$field] == \"bool\")\n $export .= \"TINYINT\";\n else\n $export .= strtoupper($this->types[$field]);\n $export .= \" NOT NULL\";\n if ($field == \"id\")\n $export .= \" AUTO_INCREMENT\";\n $export .= \",\\n\";\n }\n $export .= \" PRIMARY KEY (`id`)\\n);\\n\\n\";\n if (! in_array(\"Structure\", $sections))\n $export = \"\";\n if (! in_array(\"Data\", $sections))\n $this->table->delete();\n while ($row = $this->table->each()) {\n foreach ($row as $field => $value) {\n $sqlRow[preg_replace('/\\W+/', '_', $field)] = \"'\" . addslashes($value) . \"'\";\n }\n $export .= \"INSERT INTO `\" . $tablename;\n $export .= \"` (`\" . implode(\"`, `\", array_keys($sqlRow)) . \"`) VALUES (\" . implode(\", \", $sqlRow) . \");\\n\";\n }\n } elseif ($form->isValid() && $type == \"xml\") {\n $export = '<?xml version=\"1.0\" encoding=\"' . $this->charset . \"\\\"?>\\n\";\n $export .= \"<dataset>\\n\";\n while ($row = $this->table->each()) {\n $export .= ' <' . $tablename . ' id=\"' . $row['id'] . '\"';\n unset($row['id']);\n foreach ($row as $field => $value) {\n $field = preg_replace('/[^a-z0-9-]+/i', '_', $field);\n if (! preg_match('/^[a-z]/i', $field))\n $field = \"field\" . $field;\n $export .= ' ' . $field . '=\"' . htmlspecialchars($value) . '\"';\n }\n $export .= \" />\\n\";\n }\n $export .= \"</dataset>\\n\";\n }\n\n if ($save) {\n $mimeType = 'text/comma-separated-values';\n $extension = \".\" . $type;\n if ($type == \"csv\" && $delimiter == \"\\t\") {\n $mimeType = 'text/tab-separated-values';\n $extension = \".txt\";\n } elseif ($type == \"sql\")\n $mimeType = 'application/octet-stream';\n elseif ($type == \"xml\")\n $mimeType = 'text/xml';\n if (isset($compress) && $compress) {\n $export = gzencode($export);\n $mimeType = 'application/x-gzip';\n $extension .= \".gz\";\n }\n $filename = basename($this->table->tablename()) . $extension;\n header('Content-Type: ' . $mimeType);\n header('Content-Length: ' . strlen($export));\n header('Content-Disposition: attachement; filename=\"' . $filename . '\";');\n echo $export;\n return;\n }\n\n $this->displayHead();\n\n $form->display();\n\n echo \"<pre>\";\n if (isset($export))\n echo htmlentities($export, ENT_NOQUOTES, $this->charset);\n }", "public function export() { \n\t\t$type = $this->uri->segment ( 4 );\n\n\t\t$uri_array = $this->uri->uri_to_assoc ( 3, array (\n\t\t\t\t'export' \n\t\t) );\n\n\t\t// Export selected data\n\t\tif (($uri_array ['export'] == 'csv') || ($uri_array ['export'] == 'xls') && $type == \"user\") {\n\t\t\t$this->export_user ( $uri_array, $uri_array ['export'] );\n\t\t}\n\t\t\n\t}", "private function set_end_options(): void {\n Simply_Static\\Options::instance()\n ->set('additional_files', Utils::array_to_option_string($this->files))\n ->set('additional_urls', Utils::array_to_option_string($this->urls))\n ->set('archive_end_time', Simply_Static\\Util::formatted_datetime())\n ->save();\n }", "function init_args()\r\n{\r\n $_REQUEST = strings_stripSlashes($_REQUEST);\r\n\r\n $args = new stdClass();\r\n $args->doExport = isset($_REQUEST['export']) ? $_REQUEST['export'] : null;\r\n $args->exportType = isset($_REQUEST['exportType']) ? $_REQUEST['exportType'] : null;\r\n $args->closeOnCancel = isset($_REQUEST['closeOnCancel']) ? $_REQUEST['closeOnCancel'] : 0;\r\n\r\n // ------------------------------------------------------------------------------------------------\r\n // IMPORTANT NOTICE - 20101101 - franciscom\r\n // This page is called (@20101101) from two places\r\n //\r\n // From test plan management to export linked test cases & platforms\r\n // From execution to export test plan contents\r\n // I've found problems when using in 'execution feature' when I've choose to name hidden inputs\r\n // on tpl with a name different to that used on execSetResults.php.\r\n // This resulted on weird effects on execNavigator.tpl\r\n // Propably one option can be to save 'form_token'.\r\n // I've used a simple (and may be more suggest to new bugs in future):\r\n // maintain same names -> build_id instead of buildID, and so on.\r\n // A change was also needed on JS support function openExportTestPlan().\r\n // ------------------------------------------------------------------------------------------------\r\n $args->tproject_id = isset($_REQUEST['tproject_id']) ? intval($_REQUEST['tproject_id']) : 0;\r\n $args->build_id = isset($_REQUEST['build_id']) ? intval($_REQUEST['build_id']) : 0;\r\n $args->tplan_id = isset($_REQUEST['tplan_id']) ? intval($_REQUEST['tplan_id']) : 0;\r\n $args->platform_id = isset($_REQUEST['platform_id']) ? intval($_REQUEST['platform_id']) : 0;\r\n\r\n $args->export_filename = isset($_REQUEST['export_filename']) ? $_REQUEST['export_filename'] : null;\r\n $args->export_filename = trim($args->export_filename);\r\n\r\n // replace blank on name with _\r\n if( !is_null($args->export_filename) )\r\n { \r\n $args->export_filename = str_replace(' ','_',$args->export_filename);\r\n }\r\n \r\n $args->goback_url = isset($_REQUEST['goback_url']) ? $_REQUEST['goback_url'] : null;\r\n \r\n // TICKET 6498: Cross-Site Scripting on /lib/plan/planExport.php (CWE-80)\r\n $default = 'linkedItems';\r\n $args->exportContent = isset($_REQUEST['exportContent']) ? substr($_REQUEST['exportContent'],0,strlen($default)) : $default;\r\n switch ($args->exportContent)\r\n {\r\n case 'tree':\r\n case '4results':\r\n case 'linkedItems':\r\n break;\r\n\r\n default:\r\n $args->exportContent = $default;\r\n break;\r\n }\r\n\r\n // Vulnerable ?\r\n $args->treeFormToken = isset($_REQUEST['form_token']) ? $_REQUEST['form_token'] : 0;\r\n $args->testCaseSet = null;\r\n if($args->treeFormToken >0)\r\n { \r\n $mode = 'execution_mode';\r\n $session_data = isset($_SESSION[$mode]) && isset($_SESSION[$mode][$args->treeFormToken]) ? \r\n $_SESSION[$mode][$args->treeFormToken] : null;\r\n\r\n $args->testCaseSet = $session_data['testcases_to_show'];\r\n }\r\n return $args;\r\n}", "protected function onConstruct()\n {\n $this\n ->option('-t --to <directory>', 'Output directory')\n ->option('-o --overwrite', 'Overwrite if target file exists', 'boolval', false)\n ->usage(\n '<bold> phint export</end> -t . Exports to current dir<eol/>' .\n '<bold> phint e</end> <comment>--to ~/myphint</end> Exports to ~/myphint dir<eol/>'\n );\n }", "public function alm_filters_export(){\n\n \tif( isset( $_POST[\"alm_filters_export\"] ) ) {\n\n $filename = 'alm-filters';\n \tif(!empty($_POST['filter_keys'])){\n \t$export_array = array();\n foreach($_POST['filter_keys'] as $name){\n $option = get_option($name);\n $export_array[] = unserialize($option);\n $filename .= '['. ALMFilters::alm_filters_replace_string($name) .']';\n }\n\n\t \t$filename = $filename .= '.json';\n\t \t\theader( \"Content-Description: File Transfer\" );\n\t \t\theader( \"Content-Disposition: attachment; filename={$filename}\" );\n\t \t\theader( \"Content-Type: application/json; charset=utf-8\" );\n\n\t \t\t// return\n\t \t\techo json_encode($export_array, JSON_PRETTY_PRINT);\n\n\t \t\tdie();\n\n \t\t} else {\n\n \t$this->alm_filters_add_admin_notice(__('No filter groups selected', 'ajax-load-more-filters'), 'error');\n\n \t\t}\n }\n \t}", "public function exportAction()\r\n {\r\n $this->_setParam('outputformat', 'csv');\r\n $this->indexAction(); \r\n }", "function export_date_options($post_type = 'post')\n {\n }", "public function export() {\n if ( ! $this->can_export() || 0 !== count( get_defined_vars() ) ) {\n return;\n }\n check_admin_referer( self::EXPORT_NONCE );\n include self::$cache_config_file;\n $wp_cache_config_vars = get_defined_vars();\n $wp_cache_config_options = $this->gather_plugin_options();\n nocache_headers();\n header( \"Content-disposition: attachment; filename=\" . self::FILENAME );\n header( 'Content-Type: application/octet-stream;' );\n echo wp_json_encode( array_merge($wp_cache_config_vars, $wp_cache_config_options ), JSON_PRETTY_PRINT );\n die();\n }", "public function enableExports()\n {\n /** @var Connection $dbal */\n $dbal = Shopware()->Container()->get('dbal_connection');\n $dump = <<<'SQL'\nINSERT INTO s_export VALUES (4711,'csv','2000-01-01 00:00:00',1,'4ebfa063359a73c356913df45b3fbe7f',1,0,'2017-02-27 14:10:18',0,1,'2017-02-27 14:10:18','export.csv',2,NULL,1,1,'',NULL,0,0,0,0,0,'','{strip}id{#S#}title{#S#}url{#S#}image{#S#}price{#S#}versand{#S#}währung {/strip}{#L#}','{strip}\\n{$sArticle.ordernumber|escape}{#S#}\\n{$sArticle.name|strip_tags|strip|truncate:80:\\\"...\\\":true|escape|htmlentities}{#S#}\\n{$sArticle.articleID|link:$sArticle.name|escape}{#S#}\\n{$sArticle.image|image:2}{#S#}\\n{$sArticle.price|escape:\\\"number\\\"}{#S#}\\nDE::DHL:{$sArticle|@shippingcost:\\\"prepayment\\\":\\\"de\\\"}{#S#}\\n{$sCurrency.currency}\\n{/strip}{#L#}','',0,1,1,'2000-01-01 00:00:00',0),(4712,'txt tab','2000-01-01 00:00:00',1,'4ebfa063359a73c356913df45b3fbe7f',1,0,'2017-02-27 14:10:18',0,2,'2017-02-27 14:10:18','export.txt',2,NULL,1,1,'',NULL,0,0,0,0,0,'','{strip}id{#S#}title{#S#}url{#S#}image{#S#}price{#S#}versand{#S#}währung{/strip}{#L#}','{strip}\\n{$sArticle.ordernumber|escape}{#S#}\\n{$sArticle.name|strip_tags|strip|truncate:80:\"...\":true|escape|htmlentities}{#S#}\\n{$sArticle.articleID|link:$sArticle.name|escape}{#S#}\\n{$sArticle.image|image:2}{#S#}\\n{$sArticle.price|escape:\"number\"}{#S#}\\nDE::DHL:{$sArticle|@shippingcost:\"prepayment\":\"de\"}{#S#}\\n{$sCurrency.currency}\\n{/strip}{#L#}','',0,1,1,'2000-01-01 00:00:00',0),(4713,'xml','2000-01-01 00:00:00',1,'4ebfa063359a73c356913df45b3fbe7f',1,0,'2000-01-01 00:00:00',0,3,'0000-00-00 00:00:00','export.xml',2,NULL,1,1,'',NULL,0,0,0,0,0,'','<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\\n<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\\n<channel>\\n <atom:link href=\"http://{$sConfig.sBASEPATH}/engine/connectors/export/{$sSettings.id}/{$sSettings.hash}/{$sSettings.filename}\" rel=\"self\" type=\"application/rss+xml\" />\\n <title>{$sConfig.sSHOPNAME}</title>\\n<link>http://{$sConfig.sBASEPATH}</link>\\n <language>{$sLanguage.isocode}-{$sLanguage.isocode}</language>\\n <image>\\n <url>http://{$sConfig.sBASEPATH}/templates/0/de/media/img/default/store/logo.gif</url>\\n <title>{$sConfig.sSHOPNAME}</title>\\n <link>http://{$sConfig.sBASEPATH}</link>\\n </image>{#L#}','<item> \\n <title>{$sArticle.name|strip_tags|htmlspecialchars_decode|strip|escape}</title>\\n <id>{$sArticle.ordernumber|escape}</id>\\n <url>{$sArticle.articleID|link:$sArticle.name}</url>\\n <description>{if $sArticle.image}\\n <a href=\"{$sArticle.articleID|link:$sArticle.name}\" style=\"border:0 none;\">\\n <img src=\"{$sArticle.image|image:0}\" align=\"right\" style=\"padding: 0pt 0pt 12px 12px; float: right;\" />\\n </a>\\n{/if}\\n {$sArticle.description_long|strip_tags|regex_replace:\"/[^\\\\wöäüÖÄÜß .?!,&:%;\\\\-\\\\\"\\']/i\":\"\"|trim|truncate:900:\"...\"|escape}\\n </description>\\n <image>{$sArticle.image|image:2}</image>\\n <price>{$sArticle.price|escape:\"number\"}</price><category>{$sArticle.articleID|category:\">\"|htmlspecialchars_decode|escape}</category>\\n{if $sArticle.changed} {assign var=\"sArticleChanged\" value=$sArticle.changed|strtotime}<pubDate>{\"r\"|date:$sArticleChanged}</pubDate>{\"rn\"}{/if}\\n</item>{#L#}','</channel>\\n</rss>',0,1,1,'2000-01-01 00:00:00',0),(4714,'txt pipe','2000-01-01 00:00:00',1,'4ebfa063359a73c356913df45b3fbe7f',1,0,'2017-02-27 14:10:18',0,4,'2017-02-27 14:10:18','export.txt',2,NULL,1,1,'',NULL,0,0,0,0,0,'','{strip}id{#S#}title{#S#}url{#S#}image{#S#}price{#S#}versand{#S#}währung{/strip}{#L#}','{strip}\\n{$sArticle.ordernumber|escape}{#S#}\\n{$sArticle.name|strip_tags|strip|truncate:80:\"...\":true|escape|htmlentities}{#S#}\\n{$sArticle.articleID|link:$sArticle.name|escape}{#S#}\\n{$sArticle.image|image:2}{#S#}\\n{$sArticle.price|escape:\"number\"}{#S#}\\nDE::DHL:{$sArticle|@shippingcost:\"prepayment\":\"de\"}{#S#}\\n{$sCurrency.currency}\\n{/strip}{#L#}','',0,1,1,'2000-01-01 00:00:00',0)\nSQL;\n\n $dbal->exec($dump);\n }", "public function testExportWithMultipleOptions(): void\n {\n $expectedCount = 1;\n $resultsFilename = 'export_results.csv';\n $this->model->setWriter(\n $this->objectManager->create(\n \\Magento\\ImportExport\\Model\\Export\\Adapter\\Csv::class\n )\n );\n $exportData = $this->model->export();\n\n $varDirectory = $this->objectManager->get(\\Magento\\Framework\\Filesystem::class)\n ->getDirectoryWrite(\\Magento\\Framework\\App\\Filesystem\\DirectoryList::VAR_DIR);\n $varDirectory->writeFile($resultsFilename, $exportData);\n /** @var \\Magento\\Framework\\File\\Csv $csv */\n $csv = $this->objectManager->get(\\Magento\\Framework\\File\\Csv::class);\n $data = $csv->getData($varDirectory->getAbsolutePath($resultsFilename));\n $actualCount = count($data) - 1;\n\n $this->assertSame($expectedCount, $actualCount);\n }", "private function export() {\r\n $this->app->setTemplateData(array(\"content\" => $this->content, \"content-title\" => \"Oudermisbehandeling\", \"content-sub-title\" => $this->title, \"title\" => \"Ecareplan ~ Oudermisbehandeling - \" . $this->title, \"headscript\" => $this->script));\r\n }", "function Page_Exporting() {\r\n\r\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\r\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\r\n\r\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\r\n\t}", "public static function exportGiudeReport()\n {\n /**\n * TODO\n */\n }", "private function exportStore()\n {\n if (!is_numeric($this->getArg(self::EXPORT_STORE))) {\n echo $this->usageHelp();\n return;\n }\n\n $file = Mage::getModel('factfinder/export_type_product')->saveExport($this->getArg(self::EXPORT_STORE));\n printf(\"Successfully generated export to: %s\\n\", $file);\n }", "function cs_theme_option_import_export() {\n\t$a = unserialize(base64_decode($_POST['theme_option_data']));\n\tupdate_option( \"cs_theme_option\", $a );\n\techo \"Otions Imported\";\n\tdie();\n}", "function erp_process_import_export() {\n if ( ! isset( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( $_REQUEST['_wpnonce'] ), 'erp-import-export-nonce' ) ) {\n return;\n }\n\n $is_crm_activated = erp_is_module_active( 'crm' );\n $is_hrm_activated = erp_is_module_active( 'hrm' );\n\n $departments = $is_hrm_activated ? erp_hr_get_departments_dropdown_raw() : [];\n $designations = $is_hrm_activated ? erp_hr_get_designation_dropdown_raw() : [];\n\n $field_builder_contact_options = get_option( 'erp-contact-fields' );\n $field_builder_contacts_fields = [];\n\n if ( ! empty( $field_builder_contact_options ) ) {\n foreach ( $field_builder_contact_options as $field ) {\n $field_builder_contacts_fields[] = $field['name'];\n }\n }\n\n $field_builder_company_options = get_option( 'erp-company-fields' );\n $field_builder_companies_fields = [];\n\n if ( ! empty( $field_builder_company_options ) ) {\n foreach ( $field_builder_company_options as $field ) {\n $field_builder_companies_fields[] = $field['name'];\n }\n }\n\n $field_builder_employee_options = get_option( 'erp-employee-fields' );\n $field_builder_employees_fields = array();\n\n if ( ! empty( $field_builder_employee_options ) ) {\n foreach ( $field_builder_employee_options as $field ) {\n $field_builder_employees_fields[] = $field['name'];\n }\n }\n\n if ( isset( $_POST['erp_import_csv'] ) ) {\n define( 'ERP_IS_IMPORTING', true );\n\n $fields = ! empty( $_POST['fields'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['fields'] ) ) : [];\n $type = isset( $_POST['type'] ) ? sanitize_text_field( wp_unslash( $_POST['type'] ) ) : '';\n\n if ( empty( $type ) ) {\n return;\n }\n\n $csv_file = isset( $_FILES['csv_file'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_FILES['csv_file'] ) ) : [];\n\n $data = [ 'type' => $type, 'fields' => $fields, 'file' => $csv_file ];\n\n do_action( 'erp_tool_import_csv_action', $data );\n\n if ( ! in_array( $type, [ 'contact', 'company', 'employee' ] ) ) {\n return;\n }\n\n $employee_fields = [\n 'work' => [\n 'designation',\n 'department',\n 'location',\n 'hiring_source',\n 'hiring_date',\n 'date_of_birth',\n 'reporting_to',\n 'pay_rate',\n 'pay_type',\n 'type',\n 'status',\n ],\n 'personal' => [\n 'photo_id',\n 'user_id',\n 'first_name',\n 'middle_name',\n 'last_name',\n 'other_email',\n 'phone',\n 'work_phone',\n 'mobile',\n 'address',\n 'gender',\n 'marital_status',\n 'nationality',\n 'driving_license',\n 'hobbies',\n 'user_url',\n 'description',\n 'street_1',\n 'street_2',\n 'city',\n 'country',\n 'state',\n 'postal_code',\n ]\n ];\n\n require_once WPERP_INCLUDES . '/lib/parsecsv.lib.php';\n\n $csv = new ParseCsv();\n $csv->encoding( null, 'UTF-8' );\n $csv->parse( $csv_file['tmp_name'] );\n\n if ( empty( $csv->data ) ) {\n wp_redirect( admin_url( \"admin.php?page=erp-tools&tab=import\" ) );\n exit;\n }\n\n $csv_data = [];\n\n $csv_data[] = array_keys( $csv->data[0] );\n\n foreach ( $csv->data as $data_item ) {\n $csv_data[] = array_values( $data_item );\n }\n\n if ( ! empty( $csv_data ) ) {\n $count = 0;\n\n foreach ( $csv_data as $line ) {\n if ( empty( $line ) ) {\n continue;\n }\n\n $line_data = [];\n\n if ( is_array( $fields ) && ! empty( $fields ) ) {\n foreach ($fields as $key => $value) {\n\n if (!empty($line[$value]) && is_numeric($value)) {\n if ($type == 'employee') {\n if (in_array($key, $employee_fields['work'])) {\n if ($key == 'designation') {\n $line_data['work'][$key] = array_search($line[$value], $designations);\n } else if ($key == 'department') {\n $line_data['work'][$key] = array_search($line[$value], $departments);\n } else {\n $line_data['work'][$key] = $line[$value];\n }\n\n } else if (in_array($key, $employee_fields['personal'])) {\n $line_data['personal'][$key] = $line[$value];\n } else {\n $line_data[$key] = $line[$value];\n }\n } else {\n $line_data[$key] = isset($line[$value]) ? $line[$value] : '';\n $line_data['type'] = $type;\n }\n }\n }\n }\n\n if ( $type == 'employee' && $is_hrm_activated ) {\n if ( ! isset( $line_data['work']['status'] ) ) {\n $line_data['work']['status'] = 'active';\n }\n\n\n $item_insert_id = erp_hr_employee_create( $line_data );\n\n if ( is_wp_error( $item_insert_id ) ) {\n continue;\n }\n }\n\n if ( ( $type == 'contact' || $type == 'company' ) && $is_crm_activated ) {\n $contact_owner = isset( $_POST['contact_owner'] ) ? absint( $_POST['contact_owner'] ) : erp_crm_get_default_contact_owner();\n $line_data['contact_owner'] = $contact_owner;\n $people = erp_insert_people( $line_data, true );\n\n if ( is_wp_error( $people ) ) {\n continue;\n } else {\n $contact = new \\WeDevs\\ERP\\CRM\\Contact( absint( $people->id ), 'contact' );\n $life_stage = isset( $_POST['life_stage'] ) ? sanitize_key( $_POST['life_stage'] ) : '';\n\n if ( ! $people->exists ) {\n $contact->update_life_stage( $life_stage );\n\n } else {\n if ( ! $contact->get_life_stage() ) {\n $contact->update_life_stage( $life_stage );\n }\n }\n\n if ( ! empty( $_POST['contact_group'] ) ) {\n $contact_group = absint( $_POST['contact_group'] );\n\n $existing_data = \\WeDevs\\ERP\\CRM\\Models\\ContactSubscriber::where( [\n 'group_id' => $contact_group,\n 'user_id' => $people->id\n ] )->first();\n\n if ( empty( $existing_data ) ) {\n $hash = sha1( microtime() . 'erp-subscription-form' . $contact_group . $people->id );\n\n erp_crm_create_new_contact_subscriber( [\n 'group_id' => $contact_group,\n 'user_id' => $people->id,\n 'status' => 'subscribe',\n 'subscribe_at' => current_time( 'mysql' ),\n 'unsubscribe_at' => null,\n 'hash' => $hash\n ] );\n }\n }\n\n\n if ( ! empty( $field_builder_contacts_fields ) ) {\n foreach ( $field_builder_contacts_fields as $field ) {\n if ( isset( $line_data[ $field ] ) ) {\n erp_people_update_meta( $people->id, $field, $line_data[ $field ] );\n }\n }\n }\n }\n }\n\n ++ $count;\n }\n\n }\n\n wp_redirect( admin_url( \"admin.php?page=erp-tools&tab=import&imported=$count\" ) );\n exit;\n }\n\n if ( isset( $_POST['erp_export_csv'] ) ) {\n if ( ! empty( $_POST['type'] ) && ! empty( $_POST['fields'] ) ) {\n $type = isset( $_POST['type'] ) ? sanitize_text_field( wp_unslash( $_POST['type'] ) ) : '';\n $fields = array_map( 'sanitize_text_field', wp_unslash( $_POST['fields'] ) );\n\n if ( $type == 'employee' && $is_hrm_activated ) {\n $args = [\n 'number' => - 1,\n 'status' => 'all'\n ];\n\n $items = erp_hr_get_employees( $args );\n }\n\n if ( ( $type == 'contact' || $type == 'company' ) && $is_crm_activated ) {\n $args = [\n 'type' => $type,\n 'count' => true,\n ];\n $total_items = erp_get_peoples( $args );\n\n $args = [\n 'type' => $type,\n 'offset' => 0,\n 'number' => - 1,\n ];\n $items = erp_get_peoples( $args );\n }\n\n //@todo do_action()\n $csv_items = [];\n\n $x = 0;\n foreach ( $items as $item ) {\n\n if ( empty( $fields ) ) {\n continue;\n }\n\n foreach ( $fields as $field ) {\n if ( $type == 'employee' ) {\n\n if ( in_array( $field, $field_builder_employees_fields ) ) {\n $csv_items[ $x ][ $field ] = get_user_meta( $item->id, $field, true );\n } else {\n switch ( $field ) {\n case 'department':\n $csv_items[ $x ][ $field ] = $item->get_department_title();\n break;\n\n case 'designation':\n $csv_items[ $x ][ $field ] = $item->get_job_title();\n break;\n\n default:\n $csv_items[ $x ][ $field ] = $item->{$field};\n break;\n }\n }\n\n } else {\n if ( $type == 'contact' ) {\n if ( in_array( $field, $field_builder_contacts_fields ) ) {\n $csv_items[ $x ][ $field ] = erp_people_get_meta( $item->id, $field, true );\n } else {\n $csv_items[ $x ][ $field ] = $item->{$field};\n }\n }\n if ( $type == 'company' ) {\n if ( in_array( $field, $field_builder_companies_fields ) ) {\n $csv_items[ $x ][ $field ] = erp_people_get_meta( $item->id, $field, true );\n } else {\n $csv_items[ $x ][ $field ] = $item->{$field};\n }\n }\n }\n }\n\n $x ++;\n }\n\n $file_name = 'export_' . date( 'd_m_Y' ) . '.csv';\n\n erp_make_csv_file( $csv_items, $file_name );\n\n } else {\n wp_redirect( admin_url( \"admin.php?page=erp-tools&tab=export\" ) );\n exit();\n }\n }\n}", "private function export() {\n\t\t// export is in PipelineExportContoller\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "public function setCanExport($export = true){\n\t\t$this->canExport = $export;\n\t}", "private function can_export() {\n return isset( $_POST[ self::NAME ] ) &&\n $_POST[ self::NAME ] === 'export' &&\n current_user_can( 'manage_options' );\n }", "public function export(): array\n {\n $config = parent::export();\n\n $config['media_upload'] = true;\n\n return $config;\n }", "public function admin_init() {\n\t\tif ( isset( $_GET['ep_export'] ) && wp_verify_nonce( $_GET['ep_export'], 'ep_export' ) ) {\n\t\t\t$this->output_file();\n\t\t\tdie();\n\t\t}\n\t}", "public function getExportModes() {\n\t\t\treturn array(\n\t\t\t\t'getUnformatted' =>\tExportableField::UNFORMATTED,\n\t\t\t\t'getPostdata' =>\tExportableField::POSTDATA\n\t\t\t);\n\t\t}", "function export()\n\t{\n\t\t$zip = $this->buildExportFile();\n\t\t\n\t ilUtil::deliverFile($zip, $this->object->getTitle().\".zip\", '', false, true);\n\t}", "public function export_entries()\n {\n }", "function fmp_plugin_menu() {\n\tadd_options_page( 'FilemakerPro Importer', 'FilemakerPro Importer', 'manage_options', 'fmp-importer-options', 'fmp_plugin_options');\n}", "private function set_start_options(): void {\n $files = has_filter(static::FILES_FILTER)\n ? apply_filters(static::FILES_FILTER, $this->files)\n : $this->resolve_additional_files($this->files);\n $urls = has_filter(static::URLS_FILTER)\n ? apply_filters(static::URLS_FILTER, $this->urls)\n : $this->enrich_additional_urls($this->urls);\n\n Simply_Static\\Options::instance()\n ->set('archive_status_messages', [])\n ->set('additional_files', Utils::array_to_option_string($files))\n ->set('additional_urls', Utils::array_to_option_string($urls))\n ->set('archive_start_time', Simply_Static\\Util::formatted_datetime())\n ->set('archive_end_time', '')\n ->save();\n }", "public function export()\n {\n $this->loadModel(\"ExportModel\")->exportCSVResults();\n }", "public function export (){\n\n }", "function erp_import_export_javascript() {\n global $current_screen;\n $hook = str_replace( sanitize_title( __( 'ERP Settings', 'erp' ) ), 'erp-settings', $current_screen->base );\n if ( 'wp-erp_page_erp-tools' !== $current_screen->base ) {\n return;\n }\n\n if ( ! isset( $_GET['tab'] ) || ! in_array( $_GET['tab'], [ 'import', 'export' ] ) ) {\n return;\n }\n\n $erp_fields = erp_get_import_export_fields();\n ?>\n <script type=\"text/javascript\">\n jQuery(document).ready(function ($) {\n\n function erp_str_title_case(string) {\n var str = string.replace(/_/g, ' ');\n\n return str.toLowerCase().split(' ').map(function (word) {\n return (word.charAt(0).toUpperCase() + word.slice(1));\n }).join(' ');\n }\n\n function erp_csv_field_mapper(file_selector, fields_selector) {\n var file = file_selector.files[0];\n\n var reader = new FileReader();\n\n var first5000 = file.slice(0, 5000);\n reader.readAsText(first5000);\n\n reader.onload = function (e) {\n var csv = reader.result;\n // Split the input into lines\n lines = csv.split('\\n'),\n // Extract column names from the first line\n columnNamesLine = lines[0];\n columnNames = columnNamesLine.split(',');\n\n var html = '';\n\n html += '<option value=\"\">&mdash; Select Field &mdash;</option>';\n columnNames.forEach(function (item, index) {\n item = item.replace(/\"/g, \"\");\n\n html += '<option value=\"' + index + '\">' + item + '</option>';\n });\n\n if (html) {\n $(fields_selector).html(html);\n\n var field, field_label;\n $(fields_selector).each(function () {\n field_label = $(this).parent().parent().find('label').text();\n\n var options = $(this).find('option');\n var targetOption = $(options).filter(function () {\n var option_text = $(this).html();\n\n var re = new RegExp(field_label, 'i');\n\n return re.test(option_text);\n });\n\n if (targetOption) {\n $(options).removeAttr(\"selected\");\n $(this).val($(targetOption).val());\n }\n });\n }\n };\n }\n\n function erp_csv_importer_field_handler(file_selector) {\n $('#fields_container').show();\n\n var fields_html = '';\n\n var type = $('form#import_form #type').val();\n\n fields = erp_fields[type] ? erp_fields[type].fields : [];\n required_fields = erp_fields[type] ? erp_fields[type].required_fields : [];\n\n var required = '';\n var red_span = '';\n for (var i = 0; i < fields.length; i++) {\n\n if (required_fields.indexOf(fields[i]) !== -1) {\n required = 'required';\n red_span = ' <span class=\"required\">*</span>';\n } else {\n required = '';\n red_span = '';\n }\n\n fields_html += `\n <tr>\n <th>\n <label for=\"fields[` + fields[i] + `]\" class=\"csv_field_labels\">` + erp_str_title_case(fields[i]) + red_span + `</label>\n </th>\n <td>\n <select name=\"fields[` + fields[i] + `]\" class=\"csv_fields\" ` + required + `>\n </select>\n </td>\n </tr>`;\n }\n\n $('#fields_container').html(fields_html);\n\n erp_csv_field_mapper(file_selector, '.csv_fields');\n }\n\n var fields = [];\n var required_fields = [];\n\n var erp_fields = <?php echo json_encode( $erp_fields ); ?>;\n\n var type = $('form#export_form #type').val();\n\n fields = erp_fields[type] ? erp_fields[type].fields : [];\n\n var html = '<ul class=\"erp-list list-inline\">';\n for (var i = 0; i < fields.length; i++) {\n html += '<li><label><input type=\"checkbox\" name=\"fields[]\" value=\"' + fields[i] + '\"> ' + erp_str_title_case(fields[i]) + '</label></li>';\n }\n\n html += '<ul>';\n\n if (html) {\n $('#fields').html(html);\n }\n\n $('form#export_form #type').on('change', function (e) {\n e.preventDefault();\n $(\"#export_form #selecctall\").prop('checked', false);\n var type = $(this).val();\n fields = erp_fields[type] ? erp_fields[type].fields : [];\n\n html = '<ul class=\"erp-list list-inline\">';\n for (var i = 0; i < fields.length; i++) {\n html += '<li><label><input type=\"checkbox\" name=\"fields[]\" value=\"' + fields[i] + '\"> ' + erp_str_title_case(fields[i]) + '</label></li>';\n }\n\n html += '<ul>';\n\n if (html) {\n $('form#export_form #fields').html(html);\n }\n });\n\n $('form#import_form #csv_file').on('change', function (e) {\n e.preventDefault();\n\n if (!this) {\n return;\n }\n\n erp_csv_importer_field_handler(this);\n });\n\n if ($('form#import_form').find('#type').val() == 'employee') {\n $('form#import_form').find('#crm_contact_lifestage_owner_wrap').hide();\n } else {\n $('form#import_form').find('#crm_contact_lifestage_owner_wrap').show();\n }\n\n $('form#import_form #type').on('change', function (e) {\n $('#fields_container').html('');\n $('#fields_container').hide();\n\n if ($(this).val() == 'employee') {\n $('form#import_form').find('#crm_contact_lifestage_owner_wrap').hide();\n } else {\n $('form#import_form').find('#crm_contact_lifestage_owner_wrap').show();\n }\n\n var sample_csv_url = $('form#import_form').find('#download_sample_wrap input').val();\n $('form#import_form').find('#download_sample_wrap a').attr('href', sample_csv_url + '&type=' + $(this).val());\n\n if ($('form#import_form #csv_file').val() == \"\") {\n return;\n } else {\n erp_csv_importer_field_handler($('form#import_form #csv_file').get(0));\n }\n });\n\n $(\"#export_form #selecctall\").change(function (e) {\n e.preventDefault();\n\n $(\"#export_form #fields input[type=checkbox]\").prop('checked', $(this).prop(\"checked\"));\n });\n\n $(\"#users_import_form\").on('submit', function (e) {\n e.preventDefault();\n statusDiv = $(\"div#import-status-indicator\");\n\n statusDiv.show();\n\n var form = $(this),\n submit = form.find('input[type=submit]');\n submit.attr('disabled', 'disabled');\n\n var data = {\n 'action': 'erp_import_users_as_contacts',\n 'user_role': $(this).find('select[name=user_role]').val(),\n 'contact_owner': $(this).find('select[name=contact_owner]').val(),\n 'life_stage': $(this).find('select[name=life_stage]').val(),\n 'contact_group': $(this).find('select[name=contact_group]').val(),\n '_wpnonce': $(this).find('input[name=_wpnonce]').val()\n };\n\n var total_items = 0, left = 0, imported = 0, exists = 0, percent = 0, type = 'success', message = '';\n\n $.post(ajaxurl, data, function (response) {\n if (response.success) {\n total_items = response.data.total_items;\n left = response.data.left;\n exists = response.data.exists;\n imported = total_items - left;\n done = imported - exists;\n\n if (imported > 0 || total_items > 0) {\n percent = Math.floor((100 / total_items) * (imported));\n\n type = 'success';\n message = 'Successfully imported all users!';\n } else {\n message = 'No users found to import!';\n type = 'error';\n }\n\n statusDiv.find('#progress-total').html(percent + '%');\n statusDiv.find('#progressbar-total').val(percent);\n statusDiv.find('#completed-total').html('Imported ' + done + ' out of ' + response.data.total_items);\n if (exists > 0) {\n statusDiv.find('#failed-total').html('Already Exist ' + exists);\n }\n\n if (response.data.left > 0) {\n form.submit();\n return;\n } else {\n submit.removeAttr('disabled');\n\n swal({\n title: '',\n text: message,\n type: type,\n confirmButtonText: 'OK',\n confirmButtonColor: '#008ec2'\n });\n }\n }\n });\n });\n\n });\n </script>\n <?php\n}", "public function export_with_arguments(\n\t\t\t$mysql_set,\n\t\t\t$show_comments,\n\t\t\t$show_create,\n\t\t\t$schema_name,\n\t\t\t$table_names,\n\t\t\t$export_type,\n\t\t\t$include_table_settings = 'on'\n\t\t) {\n\t\t\t$this->mysql_set = 'on' === $mysql_set ? 'on' : 'off';\n\t\t\t$this->show_comments = 'on' === $show_comments ? 'on' : 'off';\n\t\t\t$this->show_create = 'on' === $show_create ? 'on' : 'off';\n\t\t\t$this->include_table_settings = 'on' === $include_table_settings ? 'on' : 'off';\n\n\t\t\tif ( '' !== $schema_name ) {\n\t\t\t\t$wpdadb = WPDADB::get_db_connection( $schema_name );\n\t\t\t\t$this->schema_name = $schema_name;\n\t\t\t\t$this->schema_name_prefix = \"`{$wpdadb->dbname}`.\";\n\t\t\t}\n\n\t\t\t$this->table_list = $table_names;\n\n\t\t\tif ( 'table' === $export_type ) {\n\t\t\t\t// Table export.\n\t\t\t\t$this->export_tables();\n\t\t\t} else {\n\t\t\t\t// Row export.\n\t\t\t\tif ( is_array( $this->table_list ) ) {\n\t\t\t\t\t// For row exports a single table name must be supplied as a string.\n\t\t\t\t\t$this->wrong_arguments();\n\t\t\t\t} else {\n\t\t\t\t\t$this->export_rows();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function charity_is_hope_trx_donations_importer_set_options($options=array()) {\n\t\tif ( in_array('trx_donations', (array)charity_is_hope_storage_get('required_plugins')) && charity_is_hope_exists_trx_donations() ) {\n\t\t\t// Add slugs to export options for this plugin\n\t\t\t$options['additional_options'][] = 'trx_donations_options';\n\t\t}\n\t\treturn $options;\n\t}", "private function set_options()\n\t{\n\t\t$this->dompdf->set_paper(array(0, 0, 325.98, 646.299), 'landscape');\n\t\t$this->dompdf->set_option('isHtml5ParserEnabled', true);\n\t\t$this->dompdf->set_option('isRemoteEnabled', true);\n\t\t$this->dompdf->set_option('chroot', __DIR__ . '/templates');\n\t}", "public function export(){\r\n $specified = $this->__isExportFieldSpecified();\r\n if($specified){\r\n $csv = $this->Student->export($specified);\r\n $this->Response->csv($csv);\r\n }else{\r\n $schemas = $this->Student->export();\r\n $this->set(compact('specified', 'schemas'));\r\n }\r\n }", "function TS_VCSC_ExportPluginSettings() {\r\n if (!isset($_GET['secret']) || $_GET['secret'] != md5( md5( AUTH_KEY . SECURE_AUTH_KEY ) . '-' . 'ts-vcsc-extend') ) {\r\n wp_die( 'Invalid Secret for options use' );\r\n exit;\r\n }\t\t\t\r\n\t\t\t$content \t= get_option('ts_vcsc_extend_settings_exportSettings', '');\r\n\t\t\t$siteturl\t= site_url();\r\n\t\t\t$find_h \t= '#^http(s)?://#';\r\n\t\t\t$find_w \t= '/^www\\./';\r\n\t\t\t$siteturl \t= preg_replace($find_h, '', $siteturl);\r\n\t\t\t$siteturl \t= preg_replace($find_w, '', $siteturl);\r\n\t\t\t$siteturl \t= str_replace('/', '.', $siteturl);\r\n\t\t\tif (isset($_GET['action']) && $_GET['action'] == 'ts_export_settings') {\r\n\t\t\t\theader( 'Content-Description: File Transfer' );\r\n\t\t\t\theader( 'Content-type: application/txt' );\r\n\t\t\t\theader( 'Content-Disposition: attachment; filename=\"' . $siteturl . '-vcextensions-settings.json\"' );\r\n\t\t\t\theader( 'Content-Transfer-Encoding: binary' );\r\n\t\t\t\theader( 'Expires: 0' );\r\n\t\t\t\theader( 'Cache-Control: must-revalidate' );\r\n\t\t\t\theader( 'Pragma: public' );\r\n\t\t\t\techo $content;\r\n\t\t\t\tExit();\r\n\t\t\t} else {\r\n\t\t\t\theader( \"Expires: Mon, 26 Jul 1997 05:00:00 GMT\" );\r\n\t\t\t\theader( \"Last-Modified: \" . gmdate( \"D, d M Y H:i:s\" ) . \"GMT\" );\r\n\t\t\t\theader( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );\r\n\t\t\t\theader( 'Cache-Control: no-store, no-cache, must-revalidate' );\r\n\t\t\t\theader( 'Cache-Control: post-check=0, pre-check=0', false );\r\n\t\t\t\theader( 'Pragma: no-cache' );\r\n\t\t\t\t// Can't include the type. Thanks old Firefox and IE. BAH.\r\n\t\t\t\t//header(\"Content-type: application/json\");\r\n\t\t\t\techo $content;\r\n\t\t\t\tExit();\r\n\t\t\t}\r\n\t\t}", "function csv_export($extConf,$results,$q_data,$ff_data,$temp_file,$only_this_lang,$only_finished,$with_authcode,$feUserFields=array()){\r\n $this->extConf = $extConf;\r\n $this->results = $results;\r\n $this->q_data = $q_data;\r\n $this->ff_data = $ff_data;\r\n $this->temp_file = $temp_file;\r\n\t\t$this->only_this_lang = $only_this_lang;\r\n\t\t$this->only_finished = $only_finished;\r\n\t\t$this->with_authcode = $with_authcode;\r\n\t\t$this->feUserFields = $feUserFields;\r\n \r\n //t3lib_div::devLog('extConf', 'ke_questionnaire Export Mod', 0, $this->extConf);\r\n\t\t//t3lib_div::devLog('with_authcode', 'ke_questionnaire Export Mod', 0, array($this->with_authcode));\r\n }", "public static function add_options(){\n\n \t\t$settings = array(\n \t\t\t'foundation' => 0\n \t\t);\n\n \t\tadd_option( 'zip_downloads', $settings ); \n\t}", "function export_data() {\n\t\t$sync_tables = $this->config->item('sync_tables');\n\n\t\t$this->db_tools->export_data( $sync_tables );\n\t\t$this->db_tools->echo_export_data();\n\t}", "function export_json_file() {\n\n\t\t// Export requested.\n\t\tif ( isset( $_GET['action'] ) && 'export' == sanitize_text_field( $_GET['action'] ) ) {\n\n\t\t\t// Check referer before doing anything else.\n\t\t\tcheck_admin_referer( 'widgeopts_export', 'widgeopts_nonce_export' );\n\n\t\t\t$inactive \t\t= false;\n\t\t\t$single_sidebar = false;\n\n\t\t\tif( isset( $_GET['inactive'] ) && !empty( $_GET['inactive'] ) ){\n\t\t\t\t$inactive \t= true;\n\t\t\t}\n\n\t\t\tif ( isset( $_GET['single_sidebar'] ) && !empty( $_GET['single_sidebar'] ) ) {\n\t\t\t\t$single_sidebar = sanitize_text_field( $_GET['single_sidebar'] );\n\t\t\t}\n\n\t\t\t// Build filename similar with Widget Importer & Exporter Plugin but on json extension\n\t\t\t// Single Site: yoursite.com-widgets.json\n\t\t\t// Multisite: site.multisite.com-widgets.json or multisite.com-site-widgets.json.\n\t\t\t$site_url = site_url( '', 'http' );\n\t\t\t$site_url = trim( $site_url, '/\\\\' ); // Remove trailing slash.\n\t\t\t$filename = str_replace( 'http://', '', $site_url ); // Remove http://.\n\t\t\t$filename = str_replace( array( '/', '\\\\' ), '-', $filename ); // Replace slashes with - .\n\n\t\t\tif( $single_sidebar ){\n\t\t\t\t$filename .= '-' . $single_sidebar;\n\t\t\t}\n\n\t\t\t$filename .= '-widgets.json'; // Append.\n\t\t\t$filename = apply_filters( 'widgetopts_exported_file', $filename );\n\n\n\t\t\t$file_contents \t= $this->generate_export_data( $inactive, $single_sidebar );\n\t\t\t$filesize \t\t= strlen( $file_contents );\n\n\t\t\t// Headers to prompt \"Save As\".\n\t\t\theader( 'Content-Type: application/octet-stream' );\n\t\t\theader( 'Content-Disposition: attachment; filename=' . $filename );\n\t\t\theader( 'Expires: 0' );\n\t\t\theader( 'Cache-Control: must-revalidate' );\n\t\t\theader( 'Pragma: public' );\n\t\t\theader( 'Content-Length: ' . $filesize );\n\n\t\t\t// Clear buffering just in case.\n\t\t\t// @codingStandardsIgnoreLine\n\t\t\t@ob_end_clean();\n\t\t\tflush();\n\n\t\t\t// Output file contents.\n\t\t\techo $file_contents;\n\n\t\t\t// Stop execution.\n\t\t\texit;\n\n\t\t}\n\n\t}", "public function exportProvider() {\n\t\treturn array(\n\t\t\t//set #0\n\t\t\tarray(\n\t\t\t\t//output\n\t\t\t\t'{\"Export\":{\"created_timestamp\":1414143865,\"created\":\"2014-10-24 12:44:25\"},\"Languages\":[],\"Messages\":[],\"References\":[],\"Translations\":[]}',\n\t\t\t\t//headers\n\t\t\t\tarray(\n\t\t\t\t\t'Content-Disposition' => 'attachment; filename=\"localization_export_2014-10-24 12:44:25.json\"'\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "function emb_save_options() {\n\t}", "protected function defineCommandOptions(){}", "public function setupOptions()\n {\n $this->addTaskAction(new Action('test', 't', 'Test action'));\n }", "public function export_actions() {\n\t\t\tglobal $post_type;\n\t\t\t\n\t\t\tif ( WPO_WCPDF_Dropbox()->api->is_enabled() !== false && 'shop_order' == $post_type ) {\n\t\t\t\t?>\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\tjQuery('<option>').val('dropbox_export_invoices').text('<?php _e( 'PDF Invoices to Dropbox', 'wpo_wcpdf_pro' )?>').appendTo(\"select[name='action']\");\n\t\t\t\t\tjQuery('<option>').val('dropbox_export_invoices').text('<?php _e( 'PDF Invoices to Dropbox', 'wpo_wcpdf_pro' )?>').appendTo(\"select[name='action2']\");\n\t\t\t\t\tjQuery('<option>').val('dropbox_export_packing_slips').text('<?php _e( 'PDF Packing Slips to Dropbox', 'wpo_wcpdf_pro' )?>').appendTo(\"select[name='action']\");\n\t\t\t\t\tjQuery('<option>').val('dropbox_export_packing_slips').text('<?php _e( 'PDF Packing Slips to Dropbox', 'wpo_wcpdf_pro' )?>').appendTo(\"select[name='action2']\");\n\t\t\t\t});\n\t\t\t\t</script>\n\t\t\t\t<?php\n\t\t\t}\n\t\t}", "function customizer_export() {\n\t\t\tif (isset($_GET['export']) && 'themify-customizer' === $_GET['export']) {\n\t\t\t\tcheck_admin_referer('themify_customizer_export_nonce');\n\t\t\t\t$theme = wp_get_theme();\n\t\t\t\t$mods = get_theme_mods();\n\t\t\t\t$mods['theme'] = strtolower($theme->display('Name'));\n\t\t\t\t$mods['timestamp'] = dechex(time());\n\n\t\t\t\tif (!function_exists('WP_Filesystem')) {\n\t\t\t\t\trequire_once ABSPATH . 'wp-admin/includes/file.php';\n\t\t\t\t}\n\t\t\t\tWP_Filesystem();\n\t\t\t\tglobal $wp_filesystem;\n\n\t\t\t\tif (class_exists('ZipArchive')) {\n\t\t\t\t\t$datafile = 'customizer_export.txt';\n\t\t\t\t\t$wp_filesystem->put_contents($datafile, serialize($mods));\n\t\t\t\t\t$files_to_zip = array($datafile);\n\t\t\t\t\t$file = $mods['theme'] . '_themify_customizer_export_' . date('Y_m_d') . '.zip';\n\t\t\t\t\t$result = themify_create_zip($files_to_zip, $file, true);\n\t\t\t\t}\n\t\t\t\tif (isset($result) && $result) {\n\t\t\t\t\tif (( isset($file) ) && ( $wp_filesystem->exists($file) )) {\n\t\t\t\t\t\tob_start();\n\t\t\t\t\t\theader('Pragma: public');\n\t\t\t\t\t\theader('Expires: 0');\n\t\t\t\t\t\theader(\"Content-type: application/force-download\");\n\t\t\t\t\t\theader('Content-Disposition: attachment; filename=\"' . $file . '\"');\n\t\t\t\t\t\theader(\"Content-Transfer-Encoding: Binary\");\n\t\t\t\t\t\theader(\"Content-length: \" . filesize($file));\n\t\t\t\t\t\theader('Connection: close');\n\t\t\t\t\t\tob_clean();\n\t\t\t\t\t\tflush();\n\t\t\t\t\t\techo $wp_filesystem->get_contents($file);\n\t\t\t\t\t\t$wp_filesystem->delete($datafile);\n\t\t\t\t\t\t$wp_filesystem->delete($file);\n\t\t\t\t\t\texit();\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (ini_get('zlib.output_compression')) {\n\t\t\t\t\t\tini_set('zlib.output_compression', 'Off');\n\t\t\t\t\t}\n\t\t\t\t\tob_start();\n\t\t\t\t\theader('Content-Type: application/force-download');\n\t\t\t\t\theader('Pragma: public');\n\t\t\t\t\theader('Expires: 0');\n\t\t\t\t\theader('Cache-Control: must-revalidate, post-check=0, pre-check=0');\n\t\t\t\t\theader('Cache-Control: private', false);\n\t\t\t\t\theader('Content-Disposition: attachment; filename=\"' . $mods['theme'] . '_themify_customizer_export_' . date(\"Y_m_d\") . '.txt\"');\n\t\t\t\t\theader('Content-Transfer-Encoding: binary');\n\t\t\t\t\tob_clean();\n\t\t\t\t\tflush();\n\t\t\t\t\techo serialize($mods);\n\t\t\t\t\texit();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "function prepareOptionsForWriting()\n {\n $content = $this->bindFields();\n $filename = $this->prepareFile();\n return (object)compact('content','filename');\n }", "private function exportAll()\n {\n $files = Mage::getModel('factfinder/export_type_product')->saveAll();\n echo \"Successfully generated the following files:\\n\";\n foreach ($files as $file) {\n echo $file . \"\\n\";\n }\n }", "public static function generate_options ()\n\t{\n\t\t// Location options\n\t\tadd_option(\"wustache_base_folder\", 'templates');\n\t}", "public static function exportOptionalTourGuide()\n {\n /**\n * TODO\n */\n }", "public function exportAction() {\n\t\tInvoices::Export();\n\t}", "public function export($include_headers = \\true)\n {\n }", "public function maybe_export_properties_to_scv() {\n\n if(\n !empty( $_REQUEST[ 'action' ] ) &&\n $_REQUEST[ 'action' ] == 'wpp_export_to_scv' &&\n !empty( $_REQUEST[ 'nonce' ] ) &&\n wp_verify_nonce( $_REQUEST[ 'nonce' ],'export_properties_to_scv' )\n ) {\n\n // output headers so that the file is downloaded rather than displayed\n header('Content-Type: text/csv; charset=utf-8');\n header('Content-Disposition: attachment; filename=properties.csv');\n\n $headings = array(\n 'ID' => __( 'ID', ud_get_wp_property( 'domain' ) ),\n 'post_title' => __( 'Title', ud_get_wp_property( 'domain' ) ),\n 'post_content' => __( 'Content', ud_get_wp_property( 'domain' ) ),\n 'post_date' => __( 'Date', ud_get_wp_property( 'domain' ) ),\n 'post_modified' => __( 'Modified Date', ud_get_wp_property( 'domain' ) ),\n 'post_parent' => __( 'Falls Under', ud_get_wp_property( 'domain' ) ),\n 'menu_order' => __( 'Menu Order', ud_get_wp_property( 'domain' ) ),\n 'post_author' => __( 'Author', ud_get_wp_property( 'domain' ) ),\n 'property_type_label' => __( 'Property Type', ud_get_wp_property( 'domain' ) ),\n );\n\n $headings = array_merge( $headings, (array) ud_get_wp_property( 'property_stats', array() ) );\n $headings = array_merge( $headings, (array) ud_get_wp_property( 'property_meta', array() ) );\n\n foreach( (array) ud_get_wp_property( 'geo_type_attributes', array() ) as $k ) {\n $headings[$k] = \\WPP_F::de_slug($k);\n }\n $headings[ 'latitude' ] = __( 'Latitude', ud_get_wp_property( 'domain' ) );\n $headings[ 'longitude' ] = __( 'Longitude', ud_get_wp_property( 'domain' ) );\n $headings[ 'permalink' ] = __( 'Permalink', ud_get_wp_property( 'domain' ) );\n\n // create a file pointer connected to the output stream\n $output = fopen('php://output', 'w');\n // output the column headings\n fputcsv( $output, array_values( $headings ) );\n\n $ids = \\WPP_F::get_properties();\n $keys = array_keys( $headings );\n foreach( $ids as $id ) {\n $property = Property_Factory::get( $id, array(\n 'get_children' => 'false',\n 'load_gallery' => 'false',\n 'load_thumbnail' => 'true',\n 'load_parent' => 'false',\n ) );\n\n $data = array();\n foreach ( $keys as $k ) {\n $v = isset( $property[ $k ] ) ? $property[ $k ] : '';\n if( is_array( $v ) ) {\n $v = implode( ',', $v );\n }\n\n switch( $k ) {\n case 'post_content':\n $v = strip_shortcodes( $v );\n $v = apply_filters( 'the_content', $v );\n $v = str_replace(']]>', ']]&gt;', $v);\n $v = wp_trim_words( $v, 55, '...' );\n break;\n case 'author':\n $v = get_the_author_meta('display_name', $v);\n break;\n }\n\n $data[$k] = $v;\n }\n fputcsv( $output, $data );\n }\n\n exit;\n\n }\n\n }", "function woocommerce_export_csv_page() {\n\t\t\tglobal $wpdb;\n\t\t\twoocommerce_export_csv_template_header();\n\t\t\twoocommerce_export_csv_template_form();\n\t\t\twoocommerce_export_csv_template_footer();\n\t\t}", "public function help_tab() {\n $export_url = $this->get_property_export_url();\n\n if ( !$export_url ) {\n return;\n }\n\n $export_url = $export_url . '&limit=10&format=xml';\n\n $this->get_template_part( 'admin/settings-help-export', array(\n 'export_url' => $export_url,\n ) );\n }", "function _export()\n\t{\n\t\t$title=get_page_title('EXPORT');\n\n\t\tif (!array_key_exists('tables',$_POST)) warn_exit(do_lang_tempcode('IMPROPERLY_FILLED_IN'));\n\n\t\t$xml=export_to_xml($_POST['tables'],post_param_integer('comcode_xml',0)==1);\n\n\t\tbreadcrumb_set_self(do_lang_tempcode('_RESULTS'));\n\t\tbreadcrumb_set_parents(array(array('_SELF:_SELF:misc',do_lang_tempcode('XML_DATA_MANAGEMENT'))));\n\n\t\treturn do_template('XML_STORAGE_EXPORT_RESULTS_SCREEN',array('TITLE'=>$title,'XML'=>$xml));\n\t}", "function erp_import_export_download_sample_action() {\n\n $type = isset( $_POST['type'] ) ? sanitize_text_field( wp_unslash( $_POST['type'] ) ) : '';\n\n if ( ! isset( $_GET['action'] ) || $_GET['action'] != 'download_sample' ) {\n return;\n }\n\n if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( sanitize_key( $_GET['_wpnonce'] ), 'erp-emport-export-sample-nonce' ) ) {\n return;\n }\n\n if ( ! isset( $type ) ) {\n return;\n }\n\n $type = strtolower( $type );\n $fields = erp_get_import_export_fields();\n\n if ( isset( $fields[ $type ] ) ) {\n $keys = $fields[ $type ]['fields'];\n $keys = array_flip( $keys );\n $file_name = \"sample_csv_{$type}.csv\";\n\n erp_make_csv_file( [ $keys ], $file_name, false );\n }\n\n return;\n}", "function ExportData() {\n\t\tglobal $archv_finished;\n\t\t$utf8 = FALSE;\n\t\t$bSelectLimit = FALSE;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->lTotalRecs = $archv_finished->SelectRecordCount();\n\t\t} else {\n\t\t\tif ($rs = $this->LoadRecordset())\n\t\t\t\t$this->lTotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->lStartRec = 1;\n\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t// Set the last record to display\n\t\tif ($this->lDisplayRecs < 0) {\n\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t} else {\n\t\t\t$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;\n\t\t}\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\tif ($archv_finished->Export == \"xml\") {\n\t\t\t$XmlDoc = new cXMLDocument(EW_XML_ENCODING);\n\t\t\t$XmlDoc->AddRoot();\n\t\t} else {\n\t\t\t$ExportDoc = new cExportDocument($archv_finished, \"v\");\n\t\t\t$ExportDoc->ExportHeader();\n\t\t\tif ($ExportDoc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$ExportDoc->BeginExportRow();\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->ID);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strjrfnum);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strquarter);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strmon);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->stryear);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strdate);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strtime);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strusername);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strusereadd);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strcompany);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strdepartment);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strloc);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strposition);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strtelephone);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strcostcent);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strsubject);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strnature);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strdescript);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strarea);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strattach);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strpriority);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strduedate);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strstatus);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strlastedit);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strcategory);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strassigned);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strdatecomplete);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strwithpr);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->strremarks);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->sap_num);\n\t\t\t\t$ExportDoc->ExportCaption($archv_finished->work_days);\n\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$this->lRecCnt = $this->lStartRec - 1;\n\t\tif (!$rs->EOF) {\n\t\t\t$rs->MoveFirst();\n\t\t\tif (!$bSelectLimit && $this->lStartRec > 1)\n\t\t\t\t$rs->Move($this->lStartRec - 1);\n\t\t}\n\t\twhile (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {\n\t\t\t$this->lRecCnt++;\n\t\t\tif (intval($this->lRecCnt) >= intval($this->lStartRec)) {\n\t\t\t\t$this->LoadRowValues($rs);\n\n\t\t\t\t// Render row\n\t\t\t\t$archv_finished->CssClass = \"\";\n\t\t\t\t$archv_finished->CssStyle = \"\";\n\t\t\t\t$archv_finished->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->RenderRow();\n\t\t\t\tif ($archv_finished->Export == \"xml\") {\n\t\t\t\t\t$XmlDoc->AddRow();\n\t\t\t\t\t$XmlDoc->AddField('ID', $archv_finished->ID->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strjrfnum', $archv_finished->strjrfnum->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strquarter', $archv_finished->strquarter->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strmon', $archv_finished->strmon->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('stryear', $archv_finished->stryear->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strdate', $archv_finished->strdate->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strtime', $archv_finished->strtime->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strusername', $archv_finished->strusername->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strusereadd', $archv_finished->strusereadd->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strcompany', $archv_finished->strcompany->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strdepartment', $archv_finished->strdepartment->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strloc', $archv_finished->strloc->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strposition', $archv_finished->strposition->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strtelephone', $archv_finished->strtelephone->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strcostcent', $archv_finished->strcostcent->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strsubject', $archv_finished->strsubject->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strnature', $archv_finished->strnature->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strdescript', $archv_finished->strdescript->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strarea', $archv_finished->strarea->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strattach', $archv_finished->strattach->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strpriority', $archv_finished->strpriority->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strduedate', $archv_finished->strduedate->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strstatus', $archv_finished->strstatus->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strlastedit', $archv_finished->strlastedit->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strcategory', $archv_finished->strcategory->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strassigned', $archv_finished->strassigned->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strdatecomplete', $archv_finished->strdatecomplete->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strwithpr', $archv_finished->strwithpr->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('strremarks', $archv_finished->strremarks->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('sap_num', $archv_finished->sap_num->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('work_days', $archv_finished->work_days->ExportValue($archv_finished->Export, $archv_finished->ExportOriginalValue));\n\t\t\t\t} else {\n\t\t\t\t\t$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->ID);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strjrfnum);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strquarter);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strmon);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->stryear);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strdate);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strtime);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strusername);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strusereadd);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strcompany);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strdepartment);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strloc);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strposition);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strtelephone);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strcostcent);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strsubject);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strnature);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strdescript);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strarea);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strattach);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strpriority);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strduedate);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strstatus);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strlastedit);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strcategory);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strassigned);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strdatecomplete);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strwithpr);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->strremarks);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->sap_num);\n\t\t\t\t\t$ExportDoc->ExportField($archv_finished->work_days);\n\t\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\tif ($archv_finished->Export <> \"xml\")\n\t\t\t$ExportDoc->ExportFooter();\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write BOM if utf-8\n\t\tif ($utf8 && !in_array($archv_finished->Export, array(\"email\", \"xml\")))\n\t\t\techo \"\\xEF\\xBB\\xBF\";\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\tif ($archv_finished->Export == \"xml\") {\n\t\t\theader(\"Content-Type: text/xml\");\n\t\t\techo $XmlDoc->XML();\n\t\t} elseif ($archv_finished->Export == \"email\") {\n\t\t\t$this->ExportEmail($ExportDoc->Text);\n\t\t\t$this->Page_Terminate($archv_finished->ExportReturnUrl());\n\t\t} else {\n\t\t\techo $ExportDoc->Text;\n\t\t}\n\t}", "public function exportButton ()\n\t{\n\t}", "protected function exportClipElementParameters() {}", "function export_csv()\n {\n $filter_custom_fields = JRequest::getVar('filter_custom_fields');\n $a_custom_fields = $this->_build_a_custom_fields($filter_custom_fields);\n $data = array();\n $k=0;\n for($i=0; $i<count($a_custom_fields);$i++ )\n {\n $custom_field = $a_custom_fields[$i];\n $query = &$this->_buils_export_query($custom_field);\n $this->_db->setQuery((string)$query);\n $rows = $this->_db->loadAssocList();\n foreach ($rows as $row)\n {\n $data[$k]['virtuemart_custom_id'] = $row['virtuemart_custom_id'];\n $data[$k]['virtuemart_product_id'] = $row['virtuemart_product_id'];\n $data[$k]['product_name'] = iconv(\"utf-8\", \"windows-1251\",$row['product_name']);\n $data[$k]['intvalue'] = iconv(\"utf-8\", \"windows-1251\",str_replace('.', ',', $row['intvalue']));\n $data[$k]['custom_title'] = iconv(\"utf-8\", \"windows-1251\",$row['custom_title']);\n $k++;\n }\n }\n $name = 'com_condpower.csv';\n $path = JPATH_ROOT.DS.'tmp'.DS.$name;\n if ($fp = fopen($path, \"w+\"))\n {\n foreach ($data as $fields) {\n fputcsv($fp, $fields, ';', '\"');\n }\n fclose($fp);\n }\n else\n {\n return array(FALSE, JTEXT::_('COM_CONDPOWER_ERROR_OPEN_TO_EXPORT'));\n }\n// $href = str_replace('administrator/', '', JURI::base()).'tmp/'.$name;\n// $href = JURI::base().'components/com_condpower/download.php?path='.$path;\n return array(TRUE,'OK');\n\n }", "public function acf_options_page()\n {\n if( function_exists('acf_add_options_page') ) {\n\n acf_add_options_page(array(\n 'page_title' \t=> 'Import / Export',\n 'menu_title'\t=> 'Import / Export',\n 'menu_slug' \t=> 'import-export-addressbook',\n 'capability'\t=> 'edit_posts',\n 'parent_slug' => 'edit.php?post_type=mv_address_book',\n 'redirect'\t\t=> false\n ));\n\n }\n }" ]
[ "0.8117866", "0.8116921", "0.7913093", "0.7906472", "0.7398681", "0.6738692", "0.6642337", "0.6396378", "0.6315322", "0.6263428", "0.6230382", "0.6196745", "0.61895317", "0.6176403", "0.6168445", "0.6158828", "0.6158828", "0.6158828", "0.6158828", "0.6158828", "0.6067895", "0.6058684", "0.60576713", "0.6050881", "0.60416096", "0.60194486", "0.59953624", "0.599135", "0.5973449", "0.5972581", "0.59522045", "0.5941659", "0.59361744", "0.5929358", "0.59173834", "0.59139746", "0.5910353", "0.59019774", "0.58937436", "0.5826114", "0.5817378", "0.5765903", "0.5758918", "0.57564306", "0.5733119", "0.5728355", "0.5724424", "0.57089186", "0.56953657", "0.56953657", "0.56953657", "0.56953657", "0.56953657", "0.56953657", "0.56953657", "0.56953657", "0.56953657", "0.5664934", "0.5633447", "0.5625532", "0.56159484", "0.56095237", "0.5605141", "0.5602466", "0.5602214", "0.5594402", "0.5593111", "0.5587704", "0.55740994", "0.5564156", "0.5556598", "0.5548104", "0.55411714", "0.55327094", "0.55236405", "0.55212516", "0.5508052", "0.55066174", "0.54980284", "0.54830766", "0.5474733", "0.5473014", "0.54678214", "0.54397655", "0.54267937", "0.5417147", "0.5416457", "0.54156464", "0.54153496", "0.54146385", "0.539941", "0.53849876", "0.5375926", "0.5374971", "0.5367792", "0.5367636", "0.53648967", "0.53416526", "0.5327757", "0.5326866" ]
0.8126372
0
Set up starting group
function SetUpStartGroup() { global $deals_details; // Exit if no groups if ($this->DisplayGrps == 0) return; // Check for a 'start' parameter if (@$_GET[EWRPT_TABLE_START_GROUP] != "") { $this->StartGrp = $_GET[EWRPT_TABLE_START_GROUP]; $deals_details->setStartGroup($this->StartGrp); } elseif (@$_GET["pageno"] != "") { $nPageNo = $_GET["pageno"]; if (is_numeric($nPageNo)) { $this->StartGrp = ($nPageNo-1)*$this->DisplayGrps+1; if ($this->StartGrp <= 0) { $this->StartGrp = 1; } elseif ($this->StartGrp >= intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1) { $this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1; } $deals_details->setStartGroup($this->StartGrp); } else { $this->StartGrp = $deals_details->getStartGroup(); } } else { $this->StartGrp = $deals_details->getStartGroup(); } // Check if correct start group counter if (!is_numeric($this->StartGrp) || $this->StartGrp == "") { // Avoid invalid start group counter $this->StartGrp = 1; // Reset start group counter $deals_details->setStartGroup($this->StartGrp); } elseif (intval($this->StartGrp) > intval($this->TotalGrps)) { // Avoid starting group > total groups $this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to last page first group $deals_details->setStartGroup($this->StartGrp); } elseif (($this->StartGrp-1) % $this->DisplayGrps <> 0) { $this->StartGrp = intval(($this->StartGrp-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to page boundary $deals_details->setStartGroup($this->StartGrp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function set_initial_groups()\n {\n $this->_groups = apply_filters('ngg_admin_requirements_manager_groups', array('phpext' => __('NextGen Gallery requires the following PHP extensions to function correctly. Please contact your hosting provider or systems admin and ask them for assistance:', 'nggallery'), 'phpver' => __('NextGen Gallery has degraded functionality because of your PHP version. Please contact your hosting provider or systems admin and ask them for assistance:', 'nggallery'), 'dirperms' => __('NextGen Gallery has found an issue trying to access the following files or directories. Please ensure the following locations have the correct permissions:', 'nggallery')));\n }", "function SetUpStartGroup() {\n\t\tglobal $dealers_reports;\n\n\t\t// Exit if no groups\n\t\tif ($this->DisplayGrps == 0)\n\t\t\treturn;\n\n\t\t// Check for a 'start' parameter\n\t\tif (@$_GET[EWRPT_TABLE_START_GROUP] != \"\") {\n\t\t\t$this->StartGrp = $_GET[EWRPT_TABLE_START_GROUP];\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} elseif (@$_GET[\"pageno\"] != \"\") {\n\t\t\t$nPageNo = $_GET[\"pageno\"];\n\t\t\tif (is_numeric($nPageNo)) {\n\t\t\t\t$this->StartGrp = ($nPageNo-1)*$this->DisplayGrps+1;\n\t\t\t\tif ($this->StartGrp <= 0) {\n\t\t\t\t\t$this->StartGrp = 1;\n\t\t\t\t} elseif ($this->StartGrp >= intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1) {\n\t\t\t\t\t$this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1;\n\t\t\t\t}\n\t\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t\t} else {\n\t\t\t\t$this->StartGrp = $dealers_reports->getStartGroup();\n\t\t\t}\n\t\t} else {\n\t\t\t$this->StartGrp = $dealers_reports->getStartGroup();\n\t\t}\n\n\t\t// Check if correct start group counter\n\t\tif (!is_numeric($this->StartGrp) || $this->StartGrp == \"\") { // Avoid invalid start group counter\n\t\t\t$this->StartGrp = 1; // Reset start group counter\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} elseif (intval($this->StartGrp) > intval($this->TotalGrps)) { // Avoid starting group > total groups\n\t\t\t$this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to last page first group\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} elseif (($this->StartGrp-1) % $this->DisplayGrps <> 0) {\n\t\t\t$this->StartGrp = intval(($this->StartGrp-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to page boundary\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t}\n\t}", "public function run()\n {\n factory(\\Unscode\\Pingo\\Models\\Group::class, 250)->create();\n }", "function setup_groups() {\n global $CFG;\n\n /// find out current groups mode\n $this->group_selector = groups_print_course_menu($this->course, $this->pbarurl, true);\n $this->currentgroup = groups_get_course_group($this->course);\n\n if ($this->currentgroup) {\n $this->groupsql = \" LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id \";\n $this->groupwheresql = \" AND gm.groupid = $this->currentgroup \";\n }\n }", "function setupNewsgroups() {\n\t\t$this->setIfNot('hdr_group', 'free.pt');\n\t\t$this->setIfNot('nzb_group', 'alt.binaries.ftd');\n\t\t$this->setIfNot('comment_group', 'free.usenet');\n\t\t$this->setIfNot('report_group', 'free.willey');\n\t\t$this->setIfNot('report_group', 'free.willey');\n\t}", "public function initUserGroups() {}", "public function run()\n {\n UserGroup::create([\n 'class_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n $groups=[\n ['name'=>'普通会员组','is_default'=>true],\n ['name'=>'VIP'],\n ];\n collect($groups)->map(function ($group) {\n Group::create($group);\n });\n }", "public function run()\n {\n Group::create([\n 'group_name' => 'Finanzen',\n 'admin_group' => true\n ]);\n\n $groups = [\n 'RF',\n 'Kommunikation',\n 'Transport',\n 'Material',\n 'Sicherheit',\n 'Küche',\n 'Pio',\n 'Rover',\n ];\n\n foreach ($groups as $group) {\n Group::create([\n 'group_name' => $group,\n 'admin_group' => false\n ]);\n }\n }", "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}", "function init_groups() {\r\n\tif (!HYPEGALLERY_GROUP_ALBUMS) {\r\n\t\treturn;\r\n\t}\r\n\tadd_group_tool_option('albums', elgg_echo('gallery:groupoption:enable'), true);\r\n\telgg_extend_view('groups/tool_latest', 'framework/gallery/group_module');\r\n}", "public function run(): void\n {\n $groups = factory(Group::class, 20)->create();\n $group = $groups->first();\n $user = User::query()->inRandomOrder()->first();\n $server = Server::query()->inRandomOrder()->first();\n\n /** @var \\App\\Models\\Group $group */\n $group->users()->attach($user);\n $group->servers()->attach($server);\n }", "public function __construct() {\n\t\t$this->group = new Group();\n\t}", "public function run()\n {\n LogGroup::create(array(\n 'id' => 1,\n 'name' => 'Generic',\n 'slug' => 'generic',\n 'description' => 'This is the group which used by default on logging.',\n ));\n\n LogGroup::create(array(\n 'id' => 2,\n 'name' => 'System',\n 'slug' => 'system',\n 'description' => 'This is the group which used for logging of the System actions.',\n ));\n\n LogGroup::create(array(\n 'id' => 3,\n 'name' => 'Database',\n 'slug' => 'database',\n 'description' => 'This is the group which used for logging of the ORM actions.',\n ));\n\n LogGroup::create(array(\n 'id' => 4,\n 'name' => 'Auth',\n 'slug' => 'auth',\n 'description' => 'This is the group which used for logging of the Auth System actions.',\n ));\n }", "public function bootstrap()\n\t{ \n\t\t// Load the current instances id\n\t\t$this->getInstanceId();\n\n\t\t// Load the current instances description (boss/worker)\n\t\t$this->getInstanceType();\n\n\t\t// If this is a dev instance\n\t\tif($this->instanceDev)\n\t\t{\n\t\t\t// Update app again to get dev branch\n\t\t\t$this->updateApp();\t\n\t\t}\n\n\t\t// Save all server settings to config files\n\t\t$this->saveType();\t \n\t\t\n\t\t// Set up which core daemon supervisord will controll\n\t\t$this->editSupervisord(); \n\t\t\n\t\t// Include all required core files (Dependencies and helper classes)\n\t\trequire_once('config/instance.config.php'); \t\t\t\t\t\t \t\t\t\t\n\t\trequire_once('config/environment.config.php'); \t\t\t\t\t\t \t\t\t\t\n\n\t\t// If this is a redis server\n\t\tif($this->instanceType == \"redis\" || $this->instanceType == \"boss\")\n\t\t{\t\n\t\t\t// If this is a overlord instance\n\t\t\tif($this->instanceType == \"boss\")\n\t\t\t{\n\t\t\t\t// Assign the boss elastic ip to this instance\n\t\t\t\t$this->assignIp(BOSS_IP);\t\t\t\n\t\t\t}\n\t\t\telseif($this->instanceName == 'redisSerps' || $this->instanceName == 'redisSerpsDev')\n\t\t\t{\n\t\t\t\t// Assign the redis serps elastic ip to this instance\n\t\t\t\t$this->assignIp(REDIS_SERPS_IP);\t\n\t\t\t}\n\t\t\telseif($this->instanceName == 'redisSerpsSlave' || $this->instanceName == 'redisSerpsSlaveDev')\n\t\t\t{\n\t\t\t\t// Assign the redis serps elastic ip to this instance\n\t\t\t\t$this->assignIp(REDIS_SERPS_SLAVE_IP);\t\n\t\t\t}\t\t\t\n\t\t\telseif($this->instanceName == 'redisProxies' || $this->instanceName == 'redisProxiesDev')\n\t\t\t{\n\t\t\t\t// Assign the redis proxy elastic ip to this instance\n\t\t\t\t$this->assignIp(REDIS_PROXY_IP);\t\t\t\t\t\n\t\t\t}\n\t\t\telseif($this->instanceName == 'searches' || $this->instanceName == 'searchesDev')\n\t\t\t{\n\t\t\t\t// Assign the redis searches elastic ip to this instance\n\t\t\t\t$this->assignIp(REDIS_SEARCHES_IP);\t\t\t\t\t\n\t\t\t}\t\n\t\t\telseif($this->instanceName == 'frontCache' || $this->instanceName == 'frontCacheDev')\n\t\t\t{\n\t\t\t\t// Assign the redis searches elastic ip to this instance\n\t\t\t\t$this->assignIp(REDIS_CACHE_IP);\t\t\t\t\t\n\t\t\t}\t\n\t\t}\t\t\n\t\t// If this is the flagship worker instance\n\t\telseif($this->instanceName == \"google1\" || $this->instanceName == \"google1Dev\")\n\t\t{\t\n\t\t\t// Assign the worker elastic ip to this instance\n\t\t\t$this->assignIp(GOOGLE_IP);\t\t\t\t\t\n\t\t}\t\t\t\n\n\t\t// Start system monitor and detach from script\n\t\texec(\"php /home/ec2-user/scraper/router.php monitor &> /dev/null &\");\n\n\t\t// Bootstrap complete\n\t\texit(\"Server successfully configured\\n\");\n\t}", "function SetUpStartGroup() {\n\tglobal $PHP_SESSION, $PHP_GET;\n\tglobal $nStartGrp, $nTotalGrps, $nDisplayGrps;\n\n\t// Check for a START parameter\n\tif (@$PHP_GET[EW_TABLE_START_GROUP] != \"\") {\n\t\t$nStartGrp = $PHP_GET[EW_TABLE_START_GROUP];\n\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t} elseif (@$PHP_GET[\"pageno\"] != \"\") {\n\t\t$nPageNo = $PHP_GET[\"pageno\"];\n\t\tif (is_numeric($nPageNo)) {\n\t\t\t$nStartGrp = ($nPageNo-1)*$nDisplayGrps+1;\n\t\t\tif ($nStartGrp <= 0) {\n\t\t\t\t$nStartGrp = 1;\n\t\t\t} elseif ($nStartGrp >= intval(($nTotalGrps-1)/$nDisplayGrps)*$nDisplayGrps+1) {\n\t\t\t\t$nStartGrp = intval(($nTotalGrps-1)/$nDisplayGrps)*$nDisplayGrps+1;\n\t\t\t}\n\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t} else {\n\t\t\t$nStartGrp = @$PHP_SESSION[EW_TABLE_SESSION_START_GROUP];\n\t\t\tif (!is_numeric($nStartGrp) || $nStartGrp == \"\") {\n\t\t\t\t$nStartGrp = 1; // Reset start record counter\n\t\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t\t}\n\t\t}\n\t} else {\n\t\t$nStartGrp = @$PHP_SESSION[EW_TABLE_SESSION_START_GROUP];\n\t\tif (!is_numeric($nStartGrp) || $nStartGrp == \"\") {\n\t\t\t$nStartGrp = 1; // Reset start record counter\n\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t}\n\t}\n}", "public function run()\n\t{\n\t\tDB::table('groups')->delete();\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Users',\n\t 'permissions' => array(\n\t 'admin' => 0,\n\t 'users' => 1,\n\t )));\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Admins',\n\t 'permissions' => array(\n\t 'admin' => 1,\n\t 'users' => 1,\n\t )));\n\t}", "protected function setUp() {\n\t\t_elgg_services()->setValue('session', new \\ElggSession(new \\Elgg_Http_MockSessionStorage()));\n\t\t$this->object = new Group;\n\t}", "public function run()\n {\n Group::create(['name' => 'General'])->tasks()->createMany([\n ['name' => 'Wash the car'],\n ['name' => 'Do the dishes'],\n ['name' => 'Clean my room'],\n ]);\n\n Group::create(['name' => 'Groceries'])->tasks()->createMany([\n ['name' => 'Milk'],\n ['name' => 'Eggs'],\n ['name' => 'Bread'],\n ]);\n }", "public function main() {\n\n\t\t$this->out('Group Shell');\n\t\t$this->hr();\n\t\t$this->out('[C]reate a group');\n\t\t$this->out('[Q]uit');\n\n\t\t$classToBake = strtoupper($this->in('What would you like to do?', array('C', 'Q')));\n\t\tswitch ($classToBake) {\n\t\t\tcase 'C':\n\t\t\t\t$this->hr();\n\t\t\t\t$this->create();\n\t\t\t\tbreak;\n\t\t\tcase 'Q':\n\t\t\t\texit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->out('You have made an invalid selection. Please choose an action from the list.');\n\t\t}\n\t\t$this->hr();\n\t\t$this->main();\n\t}", "public function start()\n {\n // Este módulo requiere a un usuario logueado\n $this -> setRequireUser( true );\n }", "abstract public function bootStartTabSet($group, $attr = array());", "public function run()\n {\n \\App\\AttributeGroup::create([\n 'name' => \"Test Group\",\n 'category_id' => \\App\\Category::all()->first()->id,\n 'is_active' => true\n ]);\n }", "public function run()\n\t{\n\t\tDB::table('groups')->delete();\n\t\t// creating super user\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'SuperUser',\n\t 'permissions' => array(\n\t 'superuser' => 1\n\t )));\n\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Branch-Admin',\n\t 'permissions' => array(\n\t 'associate-view' => 1,\n\t 'associate-edit' => 1,\n\t 'associate-delete' => 1,\n\t 'associate-create' => 1,\n\t 'policy-view' => 1,\n\t 'policy-edit' => 1,\n\t 'policy-delete' => 1,\n\t 'policy-create' => 1,\n\t \t'user-view' => 1,\n\t 'user-edit' => 1,\n\t 'user-delete' => 1,\n\t 'user-create' => 1,\n\t 'rank-view' => 1,\n\t 'rank-edit' => 0,\n\t 'rank-delete' => 0,\n\t 'rank-create' => 0,\n\n\t )));\n\n\t\tSentry::getGroupProvider()->create(array(\n\t 'name' => 'Branch-User',\n\t 'permissions' => array(\n\t 'associate-view' => 1,\n\t 'associate-edit' => 0,\n\t 'associate-delete' => 0,\n\t 'associate-create' => 1,\n\t 'policy-view' => 1,\n\t 'policy-edit' => 0,\n\t 'policy-delete' => 0,\n\t 'policy-create' => 1,\n\t \t'user-view' => 1,\n\t 'user-edit' => 0,\n\t 'user-delete' => 0,\n\t 'user-create' => 0,\n\t 'rank-view' => 1,\n\t 'rank-edit' => 0,\n\t 'rank-delete' => 0,\n\t 'rank-create' => 0,\n\t )));\n\n\t}", "function initGroups() {\n $groups = array(0 => array('alias' => 'members',\n 'model' => 'Group',\n 'foreign_key' => 1),\n 1 => array('alias' => 'moderators',\n 'model' => 'Group',\n 'foreign_key' => 2),\n 2 => array('alias' => 'administrators',\n 'model' => 'Group',\n 'foreign_key' => 3));\n\n foreach ($groups as $data) {\n $this->Acl->Aro->create();\n $this->Acl->Aro->save($data);\n }\n }", "public function run()\n {\n $usgs = [\"Arma\", \"SWE\", \"KBSE\"];\n\n foreach ($usgs as $usg){\n Group::create([\n 'name' => $usg \n ]);\n }\n }", "public function create_group()\r\n\t{\r\n\t\t// Load template\r\n\t\tinclude(BLUPATH_TEMPLATES .'/site/modules/create_group.php');\r\n\t}", "public function run(){\n\n\t\tSetting::create(['name' => 'registration_group', 'setting' => env('REGISTRATION_GROUP')]);\n\t\tSetting::create(['name' => 'registration_group_id', 'setting' => env('REGISTRATION_GROUP_ID')]);\n\t\tSetting::create(['name' => 'default_home_directory', 'setting' => env('DEFAULT_HOME_DIRECTORY')]);\n\t\tSetting::create(['name' => 'default_shell', 'setting' => env('DEFAULT_SHELL')]);\n\t\tSetting::create(['name' => 'db_manager_url', 'setting' => env('DB_MANAGER_URL')]);\n\n\n\t\tSetting::create(['name' => 'current_uid_number', 'setting' => env('INITIAL_UID_NUMBER')]);\t\t\n\t}", "public function startup();", "public function start()\n {\n Session::start();\n\n Environment::start();\n \n Database::start($withDatabase = true);\n \n Router::start();\n }", "protected function setUp()\n {\n $this->object = new SqlGroup();\n }", "public function run()\n {\n $groups = config('groups');\n\n foreach ($groups as $group) {\n $new_group_obj = new Group();\n $new_group_obj->name = $group['name'];\n $new_group_obj->save();\n }\n }", "public function init_group_options() {\r\n\t\tif ( ! empty( $this->settings['options'] ) ) {\r\n\r\n\t\t\tif ( is_array( $this->settings['options'] ) ) {\r\n\r\n\t\t\t\tforeach ( $this->settings['options'] as $settings ) {\r\n\r\n\t\t\t\t\tif ( ! apply_filters( 'tf_create_option_continue_' . $this->getOptionNamespace(), true, $settings ) ) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$obj = TitanFrameworkOption::factory( $settings, $this->owner );\r\n\t\t\t\t\t$this->options[] = $obj;\r\n\r\n\t\t\t\t\tdo_action( 'tf_create_option_' . $this->getOptionNamespace(), $obj );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function _start_group($key='', $value='', $name=''){\n\t$out = array(\n\t\t'id' => $name.'__group-'.$key,\n\t\t'type' => 'group-start',\n\t\t'name' => $value['name'],\n\t\t'desc' => $value['desc'],\n\t\t'no_esc_html' => true,\n\t\t'label_tag' => 'h3',\n\t\t'class' => 'custom_layout_options',\n\t); \n\treturn $out;\n}", "public function start()\n\t{\n\t\t$this->define_home_dir_constant();\n\t\t$this->register_root_namespace();\n\t\tspl_autoload_register(array($this, 'autoload'));\n\t}", "protected function setUp()\n {\n $this->object = new UserGroup();\n }", "function splashgate_admin_init(){\n\t\t\tregister_setting(\tSPLASHGATE_SETTINGS_GROUP, 'splashgate_options' ); // 'options' will be an array holding everything\n\t\t}", "protected function setStartupModule() {}", "private function startup()\n\t{\n\t\t$this->registerSigHandlers();\n\t\t$this->pruneDeadWorkers();\n\t\tEvent::trigger('beforeFirstFork', $this);\n\t\t$this->registerWorker();\n\t}", "public function start()\n {\n // For example you can check Auth\n }", "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "function __construct() {\n\t\tparent::start(\n\t\t\t'stacks',\n\t\t\t__( 'Stacks', 'buddypress' ),\n\t\t\tBP_PLUGIN_DIR\n\t\t);\n\t}", "public function initStep()\n\t{\n\t\t$this->component = $this->GetWizard()->GetVar(\"component\");\n\n\t\t$this->SetStepID($this->currentStepName);\n\t\t$this->SetTitle(Loc::getMessage(\"SALE_CSM_WIZARD_CRMGROUPSTEP_TITLE\"));\n\n\t\t$this->request = Application::getInstance()->getContext()->getRequest();\n\n\t\t$this->prepareButtons();\n\n\t\t$this->setStepErrors();\n\t}", "public function run()\n {\n Group::truncate();\n\n foreach (array_keys(Group::GROUPS) as $group) {\n Group::create(['name' => $group]);\n }\n }", "public function bootstrap();", "public function bootstrap();", "public function start()\n {\n }", "public function start()\n {\n }", "public function start()\n {\n }", "abstract protected function bootstrap();", "function startGroup(&$group, $required, $error)\n {\n parent::startGroup($group, $required, $error);\n $this->_groupElementIdx = 1;\n }", "protected function setUp() {\n\t\tob_start ();\n\t\t$this->object = new groupe_forks ( false, 'TESTS groupe_forks' );\n\t\t$this->object->setListeOptions($this->getListeOption());\n\t/********************************************/\n\t\t/* CLASS IMPOSSIBLE EN TESTS UNITAIRES */\n\t/********************************************/\n\t}", "function startTest() {\n $this->CalendarRecursion =& ClassRegistry::init('CalendarRecursion');\n $this->CalendarInstance =& ClassRegistry::init('CalendarInstance');\n $this->Activity =& ClassRegistry::init('Activity');\n }", "public function setStartGroupId($value)\n {\n if ($value !== null) {\n $this->_params['start'] = $value;\n } else {\n unset($this->_params['start']);\n }\n }", "protected function configure()\n {\n $this->setName( 'ezp_cookbook:createcontenttypegroup' )->setDefinition(\n array(\n new InputArgument( 'content_type_group_identifier', InputArgument::REQUIRED, 'a content type group identifier' ),\n )\n );\n }", "public function run()\n {\n \\App\\Keywordgroup::create([\n 'name' => 'Shoes'\n ]);\n }", "private function init()\n {\n $this->registerSignalHandlers();\n $this->checkUndefinedQueues();\n\n $this->consumerProcesses = $this->createConfiguredConsumers();\n\n $defaultConsumer = $this->createDefaultConsumer();\n if (isset($defaultConsumer)) {\n $this->consumerProcesses[] = $defaultConsumer;\n }\n\n if (empty($this->consumerProcesses)) {\n die('Supervisor has nothing to do');\n }\n\n }", "public function createDefaultSDLTMemberGroups()\n {\n $cisoGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_CISO);\n\n if (!($cisoGroup && $cisoGroup->ID)) {\n $cisoGroup = Group::create();\n $cisoGroup->Title = 'NZTA-SDLT-CISO';\n $cisoGroup->Code = UserGroupConstant::GROUP_CODE_CISO;\n $cisoGroup->write();\n }\n\n $saGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_SA);\n\n if (!($saGroup && $saGroup->ID)) {\n $saGroup = Group::create();\n $saGroup->Title = 'NZTA-SDLT-SecurityArchitect';\n $saGroup->Code = UserGroupConstant::GROUP_CODE_SA;\n $saGroup->write();\n }\n\n $usersGroup = Group::get()->find('Code', UserGroupConstant::GROUP_CODE_USER);\n\n if (!($usersGroup && $usersGroup->ID)) {\n $usersGroup = Group::create();\n $usersGroup->Title = 'NZTA-SDLT-Users';\n $usersGroup->Code = UserGroupConstant::GROUP_CODE_USER;\n $usersGroup->write();\n }\n }", "public function run()\n {\n $group = \\Coyote\\Group::create([\n 'name' => 'Administrator'\n ]);\n\n $user = DB::table('users')->orderBy('id')->first();\n\n \\Coyote\\Group\\User::create([\n 'group_id' => $group->id,\n 'user_id' => $user->id\n ]);\n }", "public function run()\n {\n $group = new Group();\n $group->name = 'Group 1';\n $group->save();\n\n $group = new Group();\n $group->name = 'Group 2';\n $group->save();\n\n $group = new Group();\n $group->name = 'Group 3';\n $group->save();\n }", "public function run()\n {\n $faker = Faker\\Factory::create('ja_JP');\n for($n = 0;$n < 20;$n++)\n {\n\n App\\Group::create([ 'group_name' => $faker->word(),// 文字列\n 'group_img' => \"css/assets/img/user_icon/no_icon.jpg\",\n 'administrator_id' => $n + 1,//管理者ID\n ]);\n\n }\n }", "public function run()\n {\n $userGroup = UserGroups::updateOrCreate([\n 'name' => 'Royal'\n ]);\n\n $userGroup = UserGroups::updateOrCreate([\n 'name' => 'Store'\n ]);\n }", "public function run()\n {\n $group = new group([\n 'name'=> 'Assemblée Générale',\n 'description' =>'Le grand groupe assemblée générale',\n 'user_ID' => 1,\n 'logo' => 'default.png'\n ]);\n $group->save();\n\n /**on le role de administrateur pour AG****/\n $admin = new Role();\n $admin->name = 'admin_1';\n $admin->display_name = 'User Administrator of AG group'; // optional\n $admin->description = 'User is allowed to manage and edit other users'; // optional\n $admin->group_ID = 1; // optional\n $admin->save();\n\n $permission = \\App\\Permission::find(1);\n $admin->attachPermission($permission);\n\n //on attache le rôle admin au créateur du groupe\n $user = \\App\\User::find(1);\n $user->attachRole($admin);\n\n $user = \\App\\User::find(2);\n $user->attachRole($admin);\n\n $user = \\App\\User::find(3);\n $user->attachRole($admin);\n\n $user = \\App\\User::find(4);\n $user->attachRole($admin);\n }", "public function start()\n\t{\n\t\t// reset first, will start automaticly after a full reset\n\t\t$this->data->directSet(\"resetNeeded\", 1);\n\t}", "public function __construct()\n {\n $this->Service = new GroupService();\n }", "private function __construct() {\n\n\t\t// Load plugin text domain\n\t\tadd_action( 'init', array( $this, 'load_plugin_textdomain' ) );\n\n\t\t// Add a meta box to the group's \"admin>settings\" tab.\n\t\t// We're also using BP_Group_Extension's admin_screen method to add this meta box to the WP-admin group edit\n\t\tadd_filter( 'groups_custom_group_fields_editable', array( $this, 'meta_form_markup' ) );\n\t\t// Catch the saving of the meta form, fired when create>settings pane is saved or admin>settings is saved\n\t\tadd_action( 'groups_group_details_edited', array( $this, 'meta_form_save') );\n\t\tadd_action( 'groups_created_group', array( $this, 'meta_form_save' ) );\n\t}", "protected function SetupPanel() {\n\t\t\t$this->objGroup = Group::Load($this->strUrlHashArgument);\n\t\t\tif (!$this->objGroup) return $this->ReturnTo('#groups');\n\t\t\tif (!$this->objGroup->IsLoginCanView(QApplication::$Login)) return $this->ReturnTo('#groups');\n\n\t\t\t$this->objDelegate = new EditGroupParticipationDelegate($this, '#groups');\n\t\t}", "public function run()\n {\n $group = Group::factory()\n ->count(1)\n ->create();\n \n Plan::first()->groups()->attach($group->first()->id);\n }", "public function run()\n {\n \\App\\GroupType::create([\n 'type'=>'Take Course then exam'\n ]);\n \\App\\GroupType::create([\n 'type'=>'Take exam without course'\n ]);\n }", "public function group()\n {\n $this->doGroup('group', \\func_get_args());\n }", "public function run()\n\t{\n\t\tDB::table('users_groups')->delete();\n\t\t$userUser = Sentry::getUserProvider()->findByLogin('user@user.com');\n\t\t$adminUser = Sentry::getUserProvider()->findByLogin('admin@admin.com');\n\t\t$userGroup = Sentry::getGroupProvider()->findByName('Users');\n\t\t$adminGroup = Sentry::getGroupProvider()->findByName('Admins');\n // Assign the groups to the users\n $userUser->addGroup($userGroup);\n $adminUser->addGroup($userGroup);\n $adminUser->addGroup($adminGroup);\n\t}", "public function start()\n {\n die(\"Must override this function in a driver\");\n }", "public static function startGroup($groupName)\n {\n if (self::$_sessionBenchmarkOn) {\n self::$_backgroundColor += 0x101010;\n\n self::$_sessionBenchmarkMarkers[] = array(\n 'marker_name' => $groupName . ' START',\n 'marker_time' => '',\n 'marker_memory' => '',\n 'marker_color' => self::$_backgroundColor\n );\n\n self::$_group[$groupName]['memory'] = memory_get_usage();\n self::$_groupOn[$groupName] = $groupName;\n }\n }", "public function init()\n {\n if(!isset($_SESSION[$this->_sGroup]))\n $_SESSION[$this->_sGroup]=[];\n }", "protected function configure()\n {\n // command configuration\n $this->setName('cs:generate:group')\n ->setDescription('Create and register new group')\n ->addArgument('name', InputArgument::OPTIONAL, \"What's the group name?\")\n ->addArgument('locked', InputArgument::OPTIONAL, \"What's the group locked state?\")\n ->addArgument('expiration', InputArgument::OPTIONAL, \"What's the group expiration date?\")\n ->addArgument('roles', InputArgument::IS_ARRAY, \"What's the group roles?\");\n }", "public static function setupBeforeClass()\n {\n self::$client = new \\GearmanClient();\n self::$client->addServer();\n self::$client->setCompleteCallback(array(__CLASS__, 'gearman_task_complete'));\n\n }", "public function startup()\n {\n parent::startup();\n Configure::write( 'debug', 2 );\n Configure::write( 'Cache.disable', 1 );\n\n $task = Inflector::classify( $this->command );\n }", "public function run()\n {\n Group::insert([\n ['name' => 'Disbursement', 'branch_id' => 1]\n ]);\n }", "function createGroup($args) {\n\t\t$this->editGroup($args);\n\t}", "public function setUp() {\n $this->model = new Groups();\n }", "public function bootstrapSystem() {}", "public function bootstrapSystem() {}", "public function start() {\n\t\t$this->invoke(\"start\");\n\t}", "protected function setupUser(): void\n {\n $this->createTestUser(true, true);\n\n // Create test role\n $fm = $this->ci->factory;\n $fm->create(Group::class, [\n 'slug' => 'foo',\n 'name' => 'bar',\n ]);\n }", "public function run()\n\t{\n\t\tGrupos::create(['nome' => 'Administradores']);\n\t\t$this->command->info('Grupos padrao adicionado!');\n\t}", "protected function configure()\n {\n $this->setName('tangoman:privileges')\n ->setDescription('Creates default privileges');\n }", "function new_groups()\n {\n \n }", "function groupmessageboard_init() {\n\n\telgg_extend_view('groups/tool_latest','gmessageboard/group_module',1);\n}", "function setup_groups() {\n\t$taxonomy_capabilities = array(\n\t\t'manage_terms' => 'manage_categories',\n\t\t'edit_terms' => 'manage_categories',\n\t\t'delete_terms' => 'manage_categories',\n\t\t'assign_terms' => 'edit_posts',\n\t);\n\n\t$taxonomy_labels = array(\n\t\t'name' => esc_html__( 'External Connection Groups' ),\n\t\t'singular_name' => esc_html__( 'External Connection Group' ),\n\t\t'search_items' => esc_html__( 'Search External Connection Groups' ),\n\t\t'popular_items' => esc_html__( 'Popular External Connection Groups' ),\n\t\t'all_items' => esc_html__( 'All External Connection Groups' ),\n\t\t'parent_item' => esc_html__( 'Parent External Connection Group' ),\n\t\t'parent_item_colon' => esc_html__( 'Parent External Connection Group' ),\n\t\t'edit_item' => esc_html__( 'Edit External Connection Group' ),\n\t\t'update_item' => esc_html__( 'Update External Connection Group' ),\n\t\t'add_new_item' => esc_html__( 'Add New External Connection Group' ),\n\t\t'new_item_name' => esc_html__( 'New External Connection Group Name' ),\n\n\t);\n\t$args = array(\n\t\t'labels' => $taxonomy_labels,\n\t\t'public' => false,\n\t\t'show_ui' => true,\n\t\t'meta_box_cb' => false,\n\t\t'show_tagcloud' => false,\n\t\t'show_in_nav_menus' => false,\n\t\t'hierarchical' => true,\n\t\t'rewrite' => false,\n\t\t'capabilities' => $taxonomy_capabilities,\n\n\t);\n\tregister_taxonomy( 'dt_ext_connection_group', 'dt_ext_connection', $args );\n}", "public function run()\n {\n factory(Hosting::class, 3)->create();\n }" ]
[ "0.6377519", "0.6331447", "0.62298703", "0.62292314", "0.6131164", "0.6038964", "0.60323966", "0.60156053", "0.60142136", "0.5972116", "0.59543943", "0.5951712", "0.58339024", "0.58016545", "0.5798183", "0.5782466", "0.5737487", "0.5722555", "0.57203823", "0.5718729", "0.57138187", "0.570187", "0.5701414", "0.5700076", "0.5669582", "0.56467545", "0.5625976", "0.5593747", "0.55916274", "0.55880773", "0.5575378", "0.5555865", "0.5541348", "0.5538709", "0.5492746", "0.54887766", "0.54873765", "0.54858285", "0.5485238", "0.547345", "0.546985", "0.54617333", "0.54617333", "0.54615206", "0.5461016", "0.5460449", "0.5460449", "0.5460449", "0.5460449", "0.5460449", "0.5460449", "0.5454043", "0.54502296", "0.5437496", "0.5412889", "0.5412889", "0.54106617", "0.54106617", "0.54106617", "0.53964466", "0.5394367", "0.5392303", "0.53915715", "0.53873307", "0.5384363", "0.537927", "0.5371986", "0.536992", "0.53627634", "0.53589374", "0.53570336", "0.53509426", "0.5337644", "0.53309745", "0.5329472", "0.53251296", "0.5325115", "0.52966774", "0.52958494", "0.5295729", "0.5290919", "0.52800447", "0.52800035", "0.52759856", "0.52708036", "0.52707636", "0.5270187", "0.52674836", "0.5264271", "0.52568233", "0.52559304", "0.52549154", "0.5252142", "0.5246746", "0.52452666", "0.52435064", "0.52421415", "0.524014", "0.52388304", "0.5220889" ]
0.61929584
4
Set up number of groups displayed per page
function SetUpDisplayGrps() { global $deals_details; $sWrk = @$_GET[EWRPT_TABLE_GROUP_PER_PAGE]; if ($sWrk <> "") { if (is_numeric($sWrk)) { $this->DisplayGrps = intval($sWrk); } else { if (strtoupper($sWrk) == "ALL") { // display all groups $this->DisplayGrps = -1; } else { $this->DisplayGrps = 50; // Non-numeric, load default } } $deals_details->setGroupPerPage($this->DisplayGrps); // Save to session // Reset start position (reset command) $this->StartGrp = 1; $deals_details->setStartGroup($this->StartGrp); } else { if ($deals_details->getGroupPerPage() <> "") { $this->DisplayGrps = $deals_details->getGroupPerPage(); // Restore from session } else { $this->DisplayGrps = 50; // Load default } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNGroups() {}", "function SetUpDisplayGrps() {\n\t\tglobal $dealers_reports;\n\t\t$sWrk = @$_GET[EWRPT_TABLE_GROUP_PER_PAGE];\n\t\tif ($sWrk <> \"\") {\n\t\t\tif (is_numeric($sWrk)) {\n\t\t\t\t$this->DisplayGrps = intval($sWrk);\n\t\t\t} else {\n\t\t\t\tif (strtoupper($sWrk) == \"ALL\") { // display all groups\n\t\t\t\t\t$this->DisplayGrps = -1;\n\t\t\t\t} else {\n\t\t\t\t\t$this->DisplayGrps = 50; // Non-numeric, load default\n\t\t\t\t}\n\t\t\t}\n\t\t\t$dealers_reports->setGroupPerPage($this->DisplayGrps); // Save to session\n\n\t\t\t// Reset start position (reset command)\n\t\t\t$this->StartGrp = 1;\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} else {\n\t\t\tif ($dealers_reports->getGroupPerPage() <> \"\") {\n\t\t\t\t$this->DisplayGrps = $dealers_reports->getGroupPerPage(); // Restore from session\n\t\t\t} else {\n\t\t\t\t$this->DisplayGrps = 50; // Load default\n\t\t\t}\n\t\t}\n\t}", "function SetUpDisplayGrps() {\n\tglobal $PHP_GET;\n\tglobal $PHP_SESSION;\n\tglobal $nDisplayGrps;\n\tglobal $nStartGrp;\n\t$sWrk = @$PHP_GET[EW_TABLE_GROUP_PER_PAGE];\n\tif ($sWrk <> \"\") {\n\t\tif (is_numeric($sWrk)) {\n\t\t\t$nDisplayGrps = intval($sWrk);\n\t\t} else {\n\t\t\tif (strtoupper($sWrk) == \"ALL\") { // Display All Records\n\t\t\t\t$nDisplayGrps = -1;\n\t\t\t} else {\n\t\t\t\t$nDisplayGrps = 3; // Non-numeric, Load Default\n\t\t\t}\n\t\t}\n\t\t$PHP_SESSION[EW_TABLE_SESSION_GROUP_PER_PAGE] = $nDisplayGrps; // Save to Session\n\n\t\t// Reset Start Position (Reset Command)\n\t\t$nStartGrp = 1;\n\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t} else {\n\t\tif (@$PHP_SESSION[EW_TABLE_SESSION_GROUP_PER_PAGE] <> \"\") {\n\t\t\t$nDisplayGrps = $PHP_SESSION[EW_TABLE_SESSION_GROUP_PER_PAGE]; // Restore from Session\n\t\t} else {\n\t\t\t$nDisplayGrps = 3; // Load Default\n\t\t}\n\t}\n}", "public function getGroupByPage() {}", "private function getNumPages() {\n //display all in one page\n if (($this->limit < 1) || ($this->limit > $this->itemscount)) {\n $this->numpages = 1;\n } else {\n //Calculate rest numbers from dividing operation so we can add one\n //more page for this items\n $restItemsNum = $this->itemscount % $this->limit;\n //if rest items > 0 then add one more page else just divide items\n //by limit\n $restItemsNum > 0 ? $this->numpages = intval($this->itemscount / $this->limit) + 1 : $this->numpages = intval($this->itemscount / $this->limit);\n }\n }", "public function testGroupPagesLoads() {\n\t\t$categoryElementLocator = $this->locatorObj->readConfigData ( \"categoryLocator\" );\n\t\t$articleCountLocator = $this->locatorObj->readConfigData ( \"articleCounter\" );\n\t\t$this->currentWindow ()->maximize ();\n\t\t$this->url ( \"/\" );\n\t\t$this->logger->info ( \"*************** start of GroupPagesLoads testcase*********** \" );\n\t\t$this->applicationFunctionObj->navigateToMainPage ( $this );\n\t\t$this->applicationFunctionObj->waitUntilElementIsVisible ( $this,$categoryElementLocator,\"name\" );\n\t\t$this->byName ( $categoryElementLocator)->click ();\n\t\t$this->applicationFunctionObj->waitUntilElementIsVisible ( $this,$articleCountLocator,\"xpath\");\n\t\t$GrouppageCount = $this->byXPath ( $articleCountLocator )->text ();\n\t\t$this->logger->info ( \"The count value of the available results is fetched\" );\n\t\t$parts = explode ( ' ', $GrouppageCount );\n\t\t$count = ( int ) array_values ( $parts ) [0];\n\t\tif ($count > 1500) {\n\t\t\t$this->logger->info ( \"Group page is loaded successfully and count is greater than 1500\" );\n\t\t} else {\n\t\t\t$this->fail ( \"Group page is not fully loaded\" );\n\t\t}\n\t\t$this->logger->info ( \"*************** end of GroupPagesLoads testcase********** \" );\n\t}", "function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n }\n elseif ($this->NumberOfItems>0)\n {\n $this->MyMod_Paging_N=1;\n }\n else\n {\n $this->MyMod_Paging_N=0;\n }\n }", "public function SetNumPages()\n\t\t{\n\t\t\t$this->_pricenumpages = ceil($this->GetNumProducts() / GetConfig('CategoryProductsPerPage'));\n\t\t}", "function pagination()\n {\n $qgroups = $this->db->query(\"SELECT COUNT(id) AS total FROM groups WHERE id_user='\".$this->general->id_user().\"'\");\n return $qgroups->row()->total;\n }", "function groups() {\n\t\t$this->validate();\n\t\t$this->setupTemplate();\n\n\t\t$journal =& Request::getJournal();\n\n\t\t$rangeInfo =& $this->getRangeInfo('groups');\n\n\t\t$groupDao =& DAORegistry::getDAO('GroupDAO');\n\t\t$groups =& $groupDao->getGroups(ASSOC_TYPE_JOURNAL, $journal->getId(), null, $rangeInfo);\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->addJavaScript('lib/pkp/js/lib/jquery/plugins/jquery.tablednd.js');\n\t\t$templateMgr->addJavaScript('lib/pkp/js/functions/tablednd.js');\n\t\t$templateMgr->assign_by_ref('groups', $groups);\n\t\t$templateMgr->assign('boardEnabled', $journal->getSetting('boardEnabled'));\n\t\t$templateMgr->display('manager/groups/groups.tpl');\n\t}", "private function setNumberOfPages(): void\n {\n $this->number_of_pages = (int)ceil($this->number_of_records / $this->per_page);\n }", "function index( $page = 0 )\n{\n$this->model_group->pagination( TRUE );\n$data_info = $this->model_group->lister( $page );\n$fields = $this->model_group->fields( TRUE );\n\n$this->template->assign( 'pager', $this->model_group->pager );\n$this->template->assign( 'group_fields', $fields );\n$this->template->assign( 'group_data', $data_info );\n$this->template->assign( 'table_name', 'group' );\n$this->template->assign( 'template', 'list_group' );\n$this->template->display( 'frame_admin.tpl' );\n}", "function SetUpStartGroup() {\n\t\tglobal $deals_details;\n\n\t\t// Exit if no groups\n\t\tif ($this->DisplayGrps == 0)\n\t\t\treturn;\n\n\t\t// Check for a 'start' parameter\n\t\tif (@$_GET[EWRPT_TABLE_START_GROUP] != \"\") {\n\t\t\t$this->StartGrp = $_GET[EWRPT_TABLE_START_GROUP];\n\t\t\t$deals_details->setStartGroup($this->StartGrp);\n\t\t} elseif (@$_GET[\"pageno\"] != \"\") {\n\t\t\t$nPageNo = $_GET[\"pageno\"];\n\t\t\tif (is_numeric($nPageNo)) {\n\t\t\t\t$this->StartGrp = ($nPageNo-1)*$this->DisplayGrps+1;\n\t\t\t\tif ($this->StartGrp <= 0) {\n\t\t\t\t\t$this->StartGrp = 1;\n\t\t\t\t} elseif ($this->StartGrp >= intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1) {\n\t\t\t\t\t$this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1;\n\t\t\t\t}\n\t\t\t\t$deals_details->setStartGroup($this->StartGrp);\n\t\t\t} else {\n\t\t\t\t$this->StartGrp = $deals_details->getStartGroup();\n\t\t\t}\n\t\t} else {\n\t\t\t$this->StartGrp = $deals_details->getStartGroup();\n\t\t}\n\n\t\t// Check if correct start group counter\n\t\tif (!is_numeric($this->StartGrp) || $this->StartGrp == \"\") { // Avoid invalid start group counter\n\t\t\t$this->StartGrp = 1; // Reset start group counter\n\t\t\t$deals_details->setStartGroup($this->StartGrp);\n\t\t} elseif (intval($this->StartGrp) > intval($this->TotalGrps)) { // Avoid starting group > total groups\n\t\t\t$this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to last page first group\n\t\t\t$deals_details->setStartGroup($this->StartGrp);\n\t\t} elseif (($this->StartGrp-1) % $this->DisplayGrps <> 0) {\n\t\t\t$this->StartGrp = intval(($this->StartGrp-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to page boundary\n\t\t\t$deals_details->setStartGroup($this->StartGrp);\n\t\t}\n\t}", "function SetUpStartGroup() {\n\t\tglobal $dealers_reports;\n\n\t\t// Exit if no groups\n\t\tif ($this->DisplayGrps == 0)\n\t\t\treturn;\n\n\t\t// Check for a 'start' parameter\n\t\tif (@$_GET[EWRPT_TABLE_START_GROUP] != \"\") {\n\t\t\t$this->StartGrp = $_GET[EWRPT_TABLE_START_GROUP];\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} elseif (@$_GET[\"pageno\"] != \"\") {\n\t\t\t$nPageNo = $_GET[\"pageno\"];\n\t\t\tif (is_numeric($nPageNo)) {\n\t\t\t\t$this->StartGrp = ($nPageNo-1)*$this->DisplayGrps+1;\n\t\t\t\tif ($this->StartGrp <= 0) {\n\t\t\t\t\t$this->StartGrp = 1;\n\t\t\t\t} elseif ($this->StartGrp >= intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1) {\n\t\t\t\t\t$this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps)*$this->DisplayGrps+1;\n\t\t\t\t}\n\t\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t\t} else {\n\t\t\t\t$this->StartGrp = $dealers_reports->getStartGroup();\n\t\t\t}\n\t\t} else {\n\t\t\t$this->StartGrp = $dealers_reports->getStartGroup();\n\t\t}\n\n\t\t// Check if correct start group counter\n\t\tif (!is_numeric($this->StartGrp) || $this->StartGrp == \"\") { // Avoid invalid start group counter\n\t\t\t$this->StartGrp = 1; // Reset start group counter\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} elseif (intval($this->StartGrp) > intval($this->TotalGrps)) { // Avoid starting group > total groups\n\t\t\t$this->StartGrp = intval(($this->TotalGrps-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to last page first group\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t} elseif (($this->StartGrp-1) % $this->DisplayGrps <> 0) {\n\t\t\t$this->StartGrp = intval(($this->StartGrp-1)/$this->DisplayGrps) * $this->DisplayGrps + 1; // Point to page boundary\n\t\t\t$dealers_reports->setStartGroup($this->StartGrp);\n\t\t}\n\t}", "public function indexAction(){\n $this->title = '';\n \n $groupModel = new Group();\n $this->view->paginator = $groupModel->findAll($this->_getPage());\n }", "function ajax_get_all_groups() {\r\n global $wpdb;\r\n\r\n $groups = $this->get_groups();\r\n\r\n if ( is_array( $groups ) && 0 < count( $groups ) ) {\r\n\r\n $i = 0;\r\n $n = ceil( count( $groups ) / 5 );\r\n\r\n $html = '';\r\n $html .= '<ul class=\"clients_list\">';\r\n\r\n\r\n\r\n foreach ( $groups as $group ) {\r\n if ( $i%$n == 0 && 0 != $i )\r\n $html .= '</ul><ul class=\"clients_list\">';\r\n\r\n $html .= '<li><label>';\r\n $html .= '<input type=\"checkbox\" name=\"groups_id[]\" value=\"' . $group['group_id'] . '\" /> ';\r\n $html .= $group['group_id'] . ' - ' . $group['group_name'];\r\n $html .= '</label></li>';\r\n\r\n $i++;\r\n }\r\n\r\n $html .= '</ul>';\r\n } else {\r\n $html = 'false';\r\n }\r\n\r\n die( $html );\r\n\r\n }", "private function refreshNbPages()\n {\n $this->_nbPages = $this->_limit ? ceil($this->_count/$this->_limit) : 0;\n }", "function SetUpStartGroup() {\n\tglobal $PHP_SESSION, $PHP_GET;\n\tglobal $nStartGrp, $nTotalGrps, $nDisplayGrps;\n\n\t// Check for a START parameter\n\tif (@$PHP_GET[EW_TABLE_START_GROUP] != \"\") {\n\t\t$nStartGrp = $PHP_GET[EW_TABLE_START_GROUP];\n\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t} elseif (@$PHP_GET[\"pageno\"] != \"\") {\n\t\t$nPageNo = $PHP_GET[\"pageno\"];\n\t\tif (is_numeric($nPageNo)) {\n\t\t\t$nStartGrp = ($nPageNo-1)*$nDisplayGrps+1;\n\t\t\tif ($nStartGrp <= 0) {\n\t\t\t\t$nStartGrp = 1;\n\t\t\t} elseif ($nStartGrp >= intval(($nTotalGrps-1)/$nDisplayGrps)*$nDisplayGrps+1) {\n\t\t\t\t$nStartGrp = intval(($nTotalGrps-1)/$nDisplayGrps)*$nDisplayGrps+1;\n\t\t\t}\n\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t} else {\n\t\t\t$nStartGrp = @$PHP_SESSION[EW_TABLE_SESSION_START_GROUP];\n\t\t\tif (!is_numeric($nStartGrp) || $nStartGrp == \"\") {\n\t\t\t\t$nStartGrp = 1; // Reset start record counter\n\t\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t\t}\n\t\t}\n\t} else {\n\t\t$nStartGrp = @$PHP_SESSION[EW_TABLE_SESSION_START_GROUP];\n\t\tif (!is_numeric($nStartGrp) || $nStartGrp == \"\") {\n\t\t\t$nStartGrp = 1; // Reset start record counter\n\t\t\t$PHP_SESSION[EW_TABLE_SESSION_START_GROUP] = $nStartGrp;\n\t\t}\n\t}\n}", "function init_groups() {\r\n\tif (!HYPEGALLERY_GROUP_ALBUMS) {\r\n\t\treturn;\r\n\t}\r\n\tadd_group_tool_option('albums', elgg_echo('gallery:groupoption:enable'), true);\r\n\telgg_extend_view('groups/tool_latest', 'framework/gallery/group_module');\r\n}", "function index($page = 0)\n\t{\n\t\t$this->auth->restrict('groups.view');\n\t\t\n\t\t$filter = $this->input->get(NULL, TRUE);\n\t\t$filter['pp'] = element('pp', $filter, 10);\n\t\t\n\t\t$this->load->library('pagination');\n\t\t$config = array(\n\t\t\t'base_url' => site_url('groups/index'),\n\t\t\t'total_rows' => $this->groups_model->count_all(),\n\t\t\t'per_page' => $filter['pp'],\n\t\t\t'uri_segment' => 3,\n\t\t);\n\t\t$this->pagination->initialize($config);\n\t\t\n\t\t$this->users_model->set_filter($filter);\n\t\t$this->users_model->order_by('g_name', 'asc');\n\t\t$this->users_model->limit($config['per_page'], $page);\n\t\t\n\t\t$this->data['filter'] = $filter;\n\t\t$this->data['groups'] = $this->groups_model->get_all();\n\t\t\n\t\t$this->layout->set_js('views/groups/index');\n\t\t\n\t\t$this->layout->set_title(lang('configure_groups'));\n\t\t$this->data['subnav_active'] = 'groups';\n\t}", "function new_groups()\n {\n \n }", "public function group_list()\n\t{\n\t\t$data = [\n\t\t\t'group' => $this->todo->get_group_list((int) $this->session->userdata('uid'))\n\t\t];\n\t\t$this->page->set_title(\"Group List\");\n\t\t$this->page->build('friend/group_list', $data);\n\t}", "function getGroupPerPage() {\n\t\treturn @$_SESSION[EWRPT_PROJECT_VAR . \"_\" . $this->TableVar . \"_grpperpage\"];\n\t}", "function getGroupPerPage() {\n\t\treturn @$_SESSION[EWRPT_PROJECT_VAR . \"_\" . $this->TableVar . \"_grpperpage\"];\n\t}", "function createSummaryDivs($numRows, $groupType) {\n\n\nfor ($i = 1; $i <= $numRows; $i++) { \n $divs .= \"<div id=\\\"$i$groupType\\\"></div>\\n\"; \n }\n\nreturn $divs;\n}", "public function groups();", "public function groups();", "public function index() {\n $groups = Group::latest()->paginate(15);\n $group_count = Group::count();\n return view('groups.index', ['groups' => $groups, 'group_count' => $group_count]);\n }", "function MyMod_Paging_NItemsPerPage_Set()\n {\n $val=$this->CGI_VarValue($this->ModuleName.\"_NItemsPerPage\");;\n if (!empty($val) && preg_match('/^\\d+$/',$val))\n {\n $this->NItemsPerPage=$val;\n }\n }", "private function setNumResults()\n\t{\n\t\t$this->numResults = (int) count($this->data);\n\t}", "public function recordsperpageAction() {\n\t\t$this->_helper->ajaxgrid->setRowNum ();\n\t}", "public function recordsperpageAction() {\n\t\t$this->_helper->ajaxgrid->setRowNum ();\n\t}", "function SetupMultiPages() {\r\n\t\t$pages = new cSubPages();\r\n\t\t$pages->Add(0);\r\n\t\t$pages->Add(1);\r\n\t\t$pages->Add(2);\r\n\t\t$pages->Add(3);\r\n\t\t$pages->Add(4);\r\n\t\t$pages->Add(5);\r\n\t\t$pages->Add(6);\r\n\t\t$this->MultiPages = $pages;\r\n\t}", "function setup_groups() {\n global $CFG;\n\n /// find out current groups mode\n $this->group_selector = groups_print_course_menu($this->course, $this->pbarurl, true);\n $this->currentgroup = groups_get_course_group($this->course);\n\n if ($this->currentgroup) {\n $this->groupsql = \" LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id \";\n $this->groupwheresql = \" AND gm.groupid = $this->currentgroup \";\n }\n }", "public function setElementsPerPage($count);", "public function genPageNums()\n\t{\n\t\t$pageLinks = array();\t\n\t\n\t\tfor($i=1; $i<=$this->numofpages; $i++)\n\t\t{\n\t\t\t$page = $i;\n\t\t\t$item = $this->itemTpl;\t\t\t\n\t\t\tif($this->page == $i)\n\t\t\t{\n\t\t\t\t$styleclass = 'page_current';\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$styleclass = 'page';\n\t\t\t}\n\t\t\t$item = str_replace(array('{pageclass}','{pagelink}', '{pagetext}'),\n\t\t\t\t\t\t\t\tarray($styleclass, $this->prepend.$page.$this->append, $i),\n\t\t\t\t\t\t\t\t$item);\t\n\t\t\t$pageLinks[$i] = $item;\n\t\t}\t\n\t\n\t\tif(($this->totalrows % $this->limit) != 0)\n\t\t{\n\t\t\t$this->numofpages++;\n\t\t\t$page = $i;\n\t\t\t$item = $this->itemTpl;\t\t\t\n\t\t\tif($this->page == $i)\n\t\t\t{\n\t\t\t\t$styleclass = 'page_current';\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$styleclass = 'page';\n\t\t\t}\n\t\t\t$item = str_replace(array('{pageclass}','{pagelink}', '{pagetext}'),\n\t\t\t\t\t\t\t\tarray($styleclass, $this->prepend.$page.$this->append, $i),\n\t\t\t\t\t\t\t\t$item);\t\t\t\t\t\n\t\t\t$pageLinks[$i] = $item;\n\t\t}\n\t\tksort($pageLinks);\n\t\t$this->pagination['nums'] = $pageLinks;\n\t}", "function fillGroups() \n\t{\n\t\t$this->groups[] = array(-1,\"<\".\"Admin\".\">\");\n\t\t$this->groupFullChecked[] = true;\n\t\t\n\t\t$trs = db_query(\"select , from `uggroups` order by \",$this->conn);\n\t\twhile($tdata = db_fetch_numarray($trs))\n\t\t{\n\t\t\t$this->groups[] = array($tdata[0],$tdata[1]);\n\t\t\t$this->groupFullChecked[] = true;\n\t\t}\n\t}", "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 setupNewsgroups() {\n\t\t$this->setIfNot('hdr_group', 'free.pt');\n\t\t$this->setIfNot('nzb_group', 'alt.binaries.ftd');\n\t\t$this->setIfNot('comment_group', 'free.usenet');\n\t\t$this->setIfNot('report_group', 'free.willey');\n\t\t$this->setIfNot('report_group', 'free.willey');\n\t}", "public function getPageNumbers();", "public function index()\n {\n return Group::latest()->paginate(10);\n }", "function new_loop_shop_per_page( $cols ) {\r\n // Return the number of products you wanna show per page.\r\n $cols = 12;\r\n\r\n return $cols;\r\n\r\n}", "public function itemsperpageAction()\r\n {\r\n $itemCountPerPageSession = new Zend_Session_Namespace('itemCountPerPage');\r\n $itemCountPerPageSession->itemCountPerPage['citype'] = $this->_getParam('rowCount');\r\n $this->_redirect('citype/index');\r\n exit;\r\n }", "function bt_new_loop_shop_per_page( $cols ) {\n // $cols contains the current number of products per page based on the value stored on Options -> Reading\n // Return the number of products you wanna show per page.\n $cols = 12;\n return $cols;\n}", "function addGroup($modulo) {\n\t\t\t$this->modulo *= $modulo; \n\t\t\t$this->count = ceil($this->count / $this->modulo) * $this->modulo;\n\t\t}", "function renderSmallGroupList($db, $group, $groupLeader) { \n ?><div class=\"content\">\n <!-- make sure theyre in a group -->\n <?php if ($group == 0) {\n echo \"<h2>You're not in a group yet!</h2>\";\n } else {\n $myGroup = getGroup($db, $group);\n ?>\n <h2 class=\"subtitle\"><?php echo sizeof($myGroup) ?> members</h2>\n <table>\n <?php // start looping through group members\n foreach ($myGroup as $a) {\n ?>\n <tr>\n <td>\n <a href=\"/?page=viewProfile&amp;id=<?=$a['id']?>\">\n <?php \n if($a['displayName'] == \"\") {\n echo $a['name'];\n } else {\n echo $a['displayName'];\n } \n ?>\n </a>\n </td>\n </tr>\n <?php } // end looping through group members ?>\n </table>\n <a class=\"button left\" href=\"/?page=group\">Manage Group</a>\n <?php } // end if?>\n </div><?php \n}", "public function index()\n {\n return view('groups.index' , ['groups' => Auth::user()->groups()->paginate(10)]);\n }", "protected function getGroupList() {}", "protected function getGroupList() {}", "public function render_per_page_options()\n {\n }", "function new_loop_shop_per_page( $cols ) {\n // Return the number of products you wanna show per page.\n $cols = 9;\n return $cols;\n}", "function _recount_section( $group )\n\t{\n\t\t$conf = $this->ipsclass->DB->build_and_exec_query( array( 'select' => 'COUNT(*) AS count',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'conf_settings',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => 'conf_group='.$group,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t )\t\t);\n\t\t\n\t\t$this->ipsclass->DB->do_update( 'conf_settings_titles', array( 'conf_title_count' => intval( $conf['count'] ) ), 'conf_title_id='.$group );\n\t}", "function new_loop_shop_per_page( $cols ) {\n // Return the number of products you wanna show per page.\n $cols = 12;\n return $cols;\n}", "function searchResultGroup(){\n $searchArray = $this->input->post('searchName');\n $result['page'] = $this->input->post('page');\n $filter = $this->input->post('filter');\n\n $limit = 6;\n //$start = $result['page']*$limit;\n $start = $result['page'];\n $id = $_SESSION[USER_SESS_KEY]['userId'];\n $table= USERS;\n $result['group_data'] = $this->group_model->group_get($table,$limit,$start,$searchArray,$filter,$id);\n //lq($result['postDetail']);\n $limi ='';\n $star = '';\n $count = $this->group_model->group_get($table,$limi,$star,$searchArray,$filter,$id);\n /* is_next: var to check we have records available in next set or not\n * 0: NO, 1: YES\n */\n $countData = !empty($count['count'])?$count['count']:0;\n $is_next = 0;\n $new_offset = $result['page'] + $limit;\n if($new_offset < $countData){\n $is_next = 1;\n }\n\n if((!empty($searchArray) OR !empty($filter)) AND $result['page'] < 5){\n $result['isFilter'] = 1;\n $result['record_count'] = !empty($countData)?$countData:strval(0);\n }\n \n $groupView = $this->load->view('all_group_view',$result, true);\n echo json_encode( array('status'=>1, 'html'=>$groupView, 'isNext'=>$is_next, 'newOffset'=>$new_offset)); exit;\n }", "function member_groups_page() {\r\n require_once( $plugin_dir . \"email-newsletter-files/page-groups.php\" );\r\n }", "function mapgroups() {\r\n global $xdb;\r\n\t$limit = (!empty($_GET[\"groupslimit\"])) ? $_REQUEST[\"groupslimit\"] :X1_adminquerylimit ;\r\n\t$page = (!empty($_GET[\"groupspage\"])) ? $_REQUEST[\"groupspage\"] :1;\r\n\t$limitvalue = $page * $limit - ($limit); \r\n\t$result = $xdb->GetAll(\"SELECT * FROM \".X1_prefix.X1_DB_mapgroups);\r\n\t$totalgroups = count($result);\r\n\t$c =\"<table class='\".X1plugin_admintable.\"' width='100%'>\r\n\t<thead class='\".X1plugin_tablehead.\"'>\r\n\t\t<tr>\r\n\t\t\t<th colspan='4' align='left'>\".XL_amapgroups_add.\"</th>\r\n\t\t\t<th>\".XL_save.\"</th>\r\n\t\t</tr>\r\n </thead>\r\n <tbody class='\".X1plugin_tablebody.\"'>\r\n\t\t<tr>\r\n\t\t\t<td class='alt1' width='96%' colspan='4'>\r\n\t\t\t\t<form method='post' action='\".X1_adminpostfile.\"' style='\".X1_formstyle.\"'>\r\n\t\t\t\t\t<input type='int' value='2' size='2' name='num_mapgroups'>\r\n\t\t\t\t\t<input type='image' title='\".XL_amapgroups_add.\"' src='\".X1_imgpath.X1_addimage.\"'>\r\n\t\t\t\t\t<input name='\".X1_actionoperator.\"' type='hidden' value='addmapgroups''>\r\n\t\t\t\t</form>\r\n\t\t\t</td>\r\n\t\t\t<td class='alt2' width='4%' align='center'>\r\n\t\t\t\t<form action='\".X1_adminpostfile.\"' method='POST' style='\".X1_formstyle.\"'>\r\n\t\t\t\t<input type='image' title='\".XL_save.\"' src='\".X1_imgpath.X1_saveimage.\"'>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t</tbody>\r\n\t\t<thead class='\".X1plugin_tablehead.\"'>\r\n\t\t\t<tr>\r\n\t\t\t\t<th>\".XL_amapgroups_id.\"</th>\r\n\t\t\t\t<th>\".XL_amapgroups_name.\"</th>\r\n\t\t\t\t<th>\".XL_amapgroups_contents.\"</th>\r\n\t\t\t\t<th>\".XL_amapgroups_edit.\"</th>\r\n\t\t\t\t<th><img src='\".X1_imgpath.X1_delimage.\"' title='\".XL_delete.\"' border='0'></td>\r\n\t\t\t</tr>\r\n </thead>\r\n <tbody class='\".X1plugin_tablebody.\"'>\";\r\n\t$rows = $xdb->GetAll(\"SELECT * FROM \".X1_prefix.X1_DB_mapgroups.\" ORDER BY id LIMIT 500\");\r\n\t$count = 0;\r\n\tif($rows){\r\n\t\tforeach($rows AS $row){\r\n\t\t\t$tents = explode(\",\",$row[2]);\r\n\t\t\t$tents = array_chunk($tents, 3);\r\n\t\t\tif(is_array($tents))$contents = implode(\",\", X1_mapid2names($tents[0]));\r\n\t\t\t$c .= \"<tr>\r\n\t\t\t\t\t<td class='alt1'><input type='text' name='nlv_\".$count.\"[]' value='\".$row[0].\"' readonly size='2'></td>\r\n\t\t\t\t\t<td class='alt2'><input type='text' name='nlv_\".$count.\"[]' value='\".$row[1].\"' size='30'></td>\r\n\t\t\t\t\t<td class='alt1'>$contents</td>\r\n\t\t\t\t\t<td class='alt2'><a href='\".$_SERVER['SCRIPT_NAME'].\"?\".X1_linkactionoperator.\"=addmapstogroup&amp;groupid=$row[0]'>\".XL_edit.\"</a></td>\r\n\t\t\t\t\t<td class='alt1' align='center'><input type='checkbox' name='nlv_\".$count.\"[]' value='checked'>\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\";\r\n\t\t\t\t$count++;\r\n\t\t}\r\n\t}else{\r\n\t\t$c .= \"<tr><td colspan='6'>\".XL_amapgroups_none.\"</td></tr>\";\r\n\t}\r\n\t\t$c .= \"\r\n\t\t\t</tbody>\r\n <tfoot class='\".X1plugin_tablefoot.\"'>\r\n <tr>\r\n <td colspan='6'>&nbsp;\r\n <input type='hidden' name='\".X1_actionoperator.\"' value='updatemapgroups'>\r\n <input type='hidden' name='num_rows' value='$count'>\r\n </td>\r\n </tr>\r\n </tfoot>\r\n </table>\r\n\t</form>\";\r\n\treturn X1plugin_output($c, 1);\r\n}", "private function calcNumPages()\n\t{\n\t\t$this->totalPages=ceil($this->totalRecords/$this->recordsPerPage);\n\t}", "function setRecordsPerPage($count) {\n $this->records_per_page = $count;\n}", "public function index()\n {\n $groups = Group::paginate(10);\n\n return $this->showAll($groups);\n }", "public function index() {\n\t\t$data = Group::get()->map( function ( $s ) {\n\t\t\treturn [\n\t\t\t\t'id' => $s->id,\n\t\t\t\t'name' => $s->getShortName(),\n\t\t\t\t'content' => $s->getShortContent(),\n\t\t\t\t'created_at' => $s->created_at_formatted,\n\t\t\t\t'created_at_time' => $s->created_at_time,\n\t\t\t\t'active' => $s->getActiveFullResponse()\n\t\t\t];\n\t\t} );\n\n\t\t$this->page->response = $data;\n\t\t$this->page->create_option = 1;\n\t\treturn view('pages.settings.parts.groups.index' )\n\t\t\t->with( 'Page', $this->page );\n\t}", "public function pagination_numbers_set(){\n\t\t\t$this->pages_show_array = array();\n\t\t\t$this->pages_show_array['middle'] = array();\n\t\t\t$this->pages_show_array['prev'] = null;\n\t\t\t$this->pages_show_array['next'] = null;\n\t\t\t$this->pages_show_array['first'] = null;\n\t\t\t$this->pages_show_array['last'] = null;\n\n\t\t\t\n\t\t\tfor ($i=0; $i < sizeof($this->pages_array) ;$i++){\n\n\t\t\t\t//first iteration\n\t\t\t\tif ($i == 0){\n\t\t\t\t\t//prev\n\t\t\t\t\tif ($this->current_page <= 1){\n\t\t\t\t\t\t$this->pages_show_array['prev'] = null;\n\t\t\t\t\t}\n\t\t\t\t\telse if ($this->current_page >= $this->total_pages){\n\t\t\t\t\t\t$this->pages_show_array['prev'] = $this->total_pages - 1;\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$this->pages_show_array['prev'] = $this->current_page - 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($this->current_page > $this->pages_to_show){\n\t\t\t\t\t\t$this->pages_show_array['first'] = \"1 ...\";\n\t\t\t\t\t}\n\n\n\t\t\t\t\tarray_push($this->pages_show_array['middle'], $this->pages_array[$i]);\n\n\n\t\t\t\t}\n\n\t\t\t\t//last iteration\n\t\t\t\telse if ($i == sizeof($this->pages_array)-1){\n\n\t\t\t\t\tif ($this->current_page < $this->total_pages - $this->pages_to_show){\n\t\t\t\t\t\t$this->pages_show_array['last'] = \"...\" . $this->total_pages;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//next\n\t\t\t\t\tif ($this->current_page >= $this->total_pages){\n\t\t\t\t\t\t$this->pages_show_array['next'] = null;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$this->pages_show_array['next'] = $this->current_page + 1;\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t//middle iterations\n\t\t\t\telse {\n\t\t\t\t\tarray_push($this->pages_show_array['middle'], $this->pages_array[$i]);\n\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif (empty($this->pages_show_array['next'])){\n\t\t\t\t\t$this->pages_show_array['next'] = null;\n\t\t\t\t}\n\t\t\t\n\n\t\t}", "public function displayPage()\n {\n $this->getState()->template = 'displaygroup-page';\n }", "public function index()\n {\n $limit = (isset($_GET[\"limit\"]) ? trim($_GET[\"limit\"]) : 25);\n $page = (isset($_GET[\"page\"]) ? trim($_GET[\"page\"]) : 0);\n $search = (isset($_GET[\"search_word\"]) ? trim($_GET[\"search_word\"]) : \"\");\n $data[\"search\"] = $search;\n $data[\"page_num\"] = $page;\n $data[\"limit\"] = $limit;\n $data[\"target\"] = \"numbers_groups\";\n $groups = $this->mnumbers->getUserMainGroups($this->USER_ID, $limit, $limit * $page, $search);\n $data[\"groups\"] = $groups;\n $data[\"all_groups\"] = $this->mnumbers->getUserMainGroups($this->USER_ID);\n if (isset($_POST[\"submit\"])) {\n if ($_POST[\"action\"] == \"\") {\n $this->session->set_flashdata(array(\n \"msg\" => - 1,\n \"message\" => lang(\"no_action\")\n ));\n redirect($this->REFERER, \"refresh\");\n }\n $action_groups = null;\n if (isset($_POST[\"check_all\"])) {\n $action_groups = $this->mnumbers->getUserMainGroups($this->USER_ID);\n $action_groups = $action_groups[\"results\"];\n } else {\n $action_groups = (isset($_POST[\"checks\"]) ? $_POST[\"checks\"] : false);\n }\n if ($action_groups != null) {\n foreach ($action_groups as $group) {\n $group1 = (isset($_POST[\"check_all\"]) ? $group->id : $group);\n switch ($_POST[\"action\"]) {\n case \"delete\":\n $this->mnumbers->deleteUserGroup($this->USER_ID, $group1);\n break;\n case \"empty\":\n $this->mnumbers->emptyUserGroup($this->USER_ID, $group1);\n break;\n case \"delete_sub\":\n $this->mnumbers->deleteUserGroup($this->USER_ID, $group1, 1);\n break;\n }\n }\n $this->session->set_flashdata(array(\n \"msg\" => 1\n ));\n redirect($this->REFERER, \"refresh\");\n } else {\n $this->session->set_flashdata(array(\n \"msg\" => - 1,\n \"message\" => lang(\"no_checks\")\n ));\n redirect($this->REFERER, \"refresh\");\n }\n } else {\n $this->load->view(\"site/cp/index\", $data);\n }\n }", "function fantacalcio_admin_groups_list() {\n $out = \"\";\n \n $out .= l(\"Aggiungi girone\", \"admin/fantacalcio/groups/add\", array(\n \"attributes\" => array(\"class\" => \"btn btn-info\"))) . \"<br/><br/>\";\n \n $groups = Group::all();\n $competitions = Competition::all();\n if ($groups) {\n $header = array(\n t(\"Girone\"), \n t(\"Attivo\"), \n t(\"Calendario\"), \n t(\"Classfica\"), \n t(\"Formazioni\"), \n t(\"Newsletter\"));\n foreach ($groups as $g_id => $group) {\n $rows[] = array(\n l($competitions[$group->competition_id]->name . \" - \" . $group->name, \"admin/fantacalcio/groups/\" . $g_id), \n fantacalcio_check_value($group->active), \n \n // \"<img src='\" .base_path() . drupal_get_path(\"module\", \"fantacalcio\") . \"/images/\" . get_image_check($group->active) . \"'>\",\n $group->matches_order, \n $group->standings_order, \n $group->lineups_order, \n $group->newsletters_order);\n }\n $out .= theme(\"table\", (array(\n \"header\" => $header, \n \"rows\" => $rows, \n \"attributes\" => array(\"class\" => array(\"table\", \"table-responsive\")), \n \"empty\" => t(\"Nessun gruppo\"))));\n }\n \n return $out;\n}", "function new_loop_shop_per_page( $cols ) {\n // Return the number of products you wanna show per page.\n $cols = 18;\n return $cols;\n}", "public function testQueryGroupCount()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function set_num_items($num){\n $this -> num_of_items = $num;\n }", "function showcaseGallery($groupId, $title) {\n\t$config = new ConfigReader();\n\t$config->loadConfigFile('assets/core/config/widgets/showGroup/gallery.properties');\n\t\n\t$maxDisplay = $config->readValue('maxDisplay');\n\t$maxPerRow = $config->readValue('maxPerRow');\n\t$w = $config->readValue('maxImageSizeX');\n\t$h = $config->readValue('maxImageSizeY');\n\t\n\t//if the user is not an admin, validate that the user is a member of this group\n\t$result = mysql_query(\"SELECT parentId, imageUrl FROM imagesGroups WHERE parentId = '{$groupId}' AND inSeriesImage = 1 ORDER BY RAND() LIMIT $maxDisplay\");\n\t$total = mysql_num_rows($result);\n\t\n\tif ($total > 0) {\n\t\t\n\t\t$urlCategory =urlencode($row->category);\n\t\t$caption = htmlentities($row->caption);\n\t\t\n\t\t$x = 0;\n\t\t$count = 0;\n\t\t\n\t\t//adjust maxPerRow is it's greater than the returned number of objects\n\t\tif ($maxPerRow > $total) {\n\t\t\t\n\t\t\t$maxPerRow = $total;\n\t\t\t\n\t\t}\n\t\t\n\t\t$return .= \"\t\t\t\t<div id=\\\"gallery_container\\\">\\n\";\n\t\t$return .= \"\t\t\t\t\t<div class=\\\"header\\\"><a href=\\\"/groupgalleries/id/$groupId\\\">$title</a></div>\\n\";\n\t\t$return .= \"\t\t\t\t\t<div class=\\\"body\\\">\\n\";\n\t\t\n\t\twhile ($row = mysql_fetch_object($result)) {\n\t\t\t\n\t\t\t//count this row's column itteration\n\t\t\t$x++;\n\t\t\t\n\t\t\t//keep track of total displayed so far\n\t\t\t$count++;\n\t\t\t\n\t\t\t//determine if separator class is applied\n\t\t\tif ($x % $maxPerRow != 0) {\n\t\t\t\t\n\t\t\t\t$separator = \" separator\";\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$separator = \"\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$return .= \"<div class=\\\"gallery_image_container$separator\\\">\\n\";\n\t\t\t$return .= \"\t<a href=\\\"/groupgalleries/id/$groupId\\\"><img src=\\\"/file.php?load=$row->imageUrl&w=$w&h=$h\\\" border=\\\"0\\\"></a>\\n\";\n\t\t\t$return .= \"</div>\\n\";\n\t\t\t\n\t\t\t//row separator\n\t\t\tif ($x == $maxPerRow && $count < $total) {\n\t\t\t\t\n\t\t\t\t$return .= \"\t\t\t<div class=\\\"gallery_image_row_separator\\\"></div>\\n\";\n\t\t\t\t$x = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t$return .= \"\t\t\t\t\t</div>\\n\";\n\t\t$return .= \"\t\t\t\t</div>\\n\";\n\t\t\n\t}\t\n\t\n\treturn($return);\n\t\n}", "public function loadGroupAction () {\r\n \t\r\n \t$currentCity = $this->get('session_service')->getCity();\r\n \t$city = $this->getDoctrine()->getEntityManager()->getRepository('CTRVCommonBundle:City')->find($currentCity->getId());\r\n \tif ($currentCity == null) {\r\n \t\t$this->get('session')->getFlashBag()->add('error', $this->get('translator')->trans('session.city.not_found'));\r\n \t\t$this->redirect($this->generateUrl(\"home\"));\r\n \t}\r\n \t\r\n \t$page = intval ($this->getRequest()->get(\"page\",1));\r\n \t//recupére l'ensemble des groupes existants\r\n \t$groups = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroup();\r\n \t//recupére l'ensemble des groupes de la ville courante\r\n \t$groups_by_city = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupByCity($city);\r\n \t// on crée un tableau\r\n \t$tab = array();\r\n \t// On récupére le nombre de membres de chaque groupe pour le placer dans le tableau\r\n \tforeach ($groups_by_city as $entity) {\r\n \t\t$tab[$entity->getId()] = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupMemberNumber($entity);\r\n \t}\r\n \t\r\n \t //pagination\r\n $group_number = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupNumber();\r\n $nb_entities1 = $this->getDoctrine()->getRepository('CTRVFlowBundle:GroupUser')->getGroupByCityNumber($city);\r\n $nb_entities_page = Constants::groupes_number_per_page;\r\n $nb_pages = ceil($nb_entities1/$nb_entities_page);\r\n $offset = ($page-1) * $nb_entities_page;\r\n \r\n $groups_by_city = array_slice($groups_by_city, $offset,$nb_entities_page);\r\n \t\r\n \treturn array (\r\n 'group_member'=>$tab,\r\n 'entities' => $groups,\r\n \t\t\t'entities1' => $groups_by_city,\r\n 'nb_pages' => $nb_pages,\r\n 'page' => $page,\r\n 'nb_entities' => $group_number,\r\n \t\t\t'nb_entities1' => $nb_entities1,\r\n 'city'=>$currentCity\r\n );\r\n }", "function set_lines_per_page ($lines_per_page)\r\n {\r\n $_SESSION[\"lines_per_page\"] = $lines_per_page;\r\n }", "public function findGroups() {\n\t\t\n\t}", "function zwemlijst_taxonomy_get_groups() {\n\n $page = filter_input( INPUT_GET, 'page' , FILTER_SANITIZE_NUMBER_INT );\n $q = filter_input( INPUT_GET, 'q' , FILTER_SANITIZE_STRING );\n\n $max_per_page = 10;\n\n $terms = get_terms( [ 'taxonomy' => 'groep' , 'hide_empty' => false ] );\n\n $row = array();\n\n foreach ( $terms as $term ) {\n\n \t\tif ( $term->slug == 'gestopt' ) continue;\n\n $row[] = array( 'id' => $term->term_id , 'text' => $term->name . \" (aantal: {$term->count})\" );\n\n }\n\n // only return a select number of results\n $row = array_slice( $row , ( $page - 1 ) * $max_per_page , $max_per_page );\n\n echo json_encode( array( 'results' => $row , 'pagination' => array( 'more' => ( sizeof( $terms ) > ( $page * $max_per_page ) ) ) ) );\n\n\n wp_die();\n}", "private function setTotalPages()\n {\n $this->totalPages = ceil($this->totalData / $this->limit);\n }", "protected function buildPagination() {}", "protected function buildPagination() {}", "public function groups() {\n\t\t//variabel\n\t\t$data['datas'] = $this->PbkGroups_model->get_all();\n\t\t\n\t\t$template_data['title'] = 'SMS Gateway ';\n\t\t$template_data['subtitle'] = 'Kirim SMS';\n $template_data['crumb'] = ['SMS Gateway' => 'smsgateway', 'SMS Groups' => 'smsgateway/kirimsms/groups',];\n\t\t//view\n\t\t$this->layout->set_wrapper('groups_form', $data);\n\t\t$this->layout->auth();\n\t\t$this->layout->render('admin', $template_data);\n\t}", "private function generatePages()\n {\n $all_pages = self::getPages($this->records, $this->recordsInPage);\n $total = 0;\n $start = 1;\n while ($total < $all_pages) {\n $shift = $this->getShift();\n $paging_start = $total < $this->getLeftShift() ? true : false;\n $paging_end = $total >= ($all_pages - $this->getRightShift()) ? true : false;\n\n if ($this->currentPage == $start) {\n $this->appendData(sprintf('<li class=\"active\"><span>%d</span></li>', $start));\n }\n elseif ($paging_start|| $paging_end) {\n $this->appendData(sprintf('<li><a href=\"%s%d\">%d</a></li>', $this->url, $start, $start));\n }\n elseif (($this->currentPage == $start - $shift) || ($this->currentPage == $start + $shift)) {\n $this->appendData('<li><span>...</span></li>');\n }\n $total++;\n $start++;\n }\n }", "function statistics_extended_groups_property_count($property){\r\n\tglobal $CONFIG;\r\n\t$properties = $CONFIG->group;\r\n\t$labels = array();\r\n\t$totals = array();\r\n\tif(array_key_exists($property,$properties)){\r\n\t\tlist($type,$values) = $properties[$property];\r\n\t\tswitch($type){\r\n\t\t\tcase \"checkboxes\":\r\n\t\t\tcase \"radio\":\r\n\t\t\t\tforeach($values as $label=>$value){\r\n\t\t\t\t\t$options = array(\"types\"=>\"group\",\"count\"=>true,\"metadata_names\"=>$property,\"metadata_values\"=>$value);\r\n\t\t\t\t\t$total = elgg_get_entities_from_metadata($options);\r\n\t\t\t\t\t$labels[]=$value;\r\n\t\t\t\t\t$totals[$value]=$total;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"organizational_unit\":\r\n\t\t\t\t$query = \"SELECT string FROM {$CONFIG->dbprefix}metastrings WHERE id IN \";\r\n\t\t\t\t$query.=\"(SELECT value_id FROM {$CONFIG->dbprefix}metadata WHERE name_id=\";\r\n\t\t\t\t$query.=\"(SELECT id FROM {$CONFIG->dbprefix}metastrings WHERE string='{$property}'))\";\r\n\t\t\t\t$categories = get_data($query);\r\n\t\t\t\tif(!empty($categories)){\r\n\t\t\t\t\tforeach($categories as $category){\r\n\t\t\t\t\t\t$category = $category->string;\r\n\t\t\t\t\t\t$options = array(\"types\"=>\"group\",\"count\"=>true,\"metadata_names\"=>$property,\"metadata_values\"=>$category);\r\n\t\t\t\t\t\t$total = elgg_get_entities_from_metadata($options);\r\n\t\t\t\t\t\tlist($section,$department,$unit) = explode(\"||\",$category);\r\n\r\n\t\t\t\t\t\t$labels[$section]=$section;\r\n\t\t\t\t\t\t$totals[$section]+=$total;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"status\":\r\n\t\t\t\t$options = array(\"types\"=>\"group\",\"count\"=>true);\r\n\t\t\t\t$all_groups = elgg_get_entities($options);\r\n\t\t\t\t$values = array(\"preparation\"=>\"groups:extras:status:preparation\",\r\n\t\t\t\t\t\t\t\t\"active\"=>\"groups:extras:status:active\",\r\n\t\t\t\t\t\t\t\t\"inactive\"=>\"groups:extras:status:inactive\",\r\n\t\t\t\t\t\t\t\t\"closed\"=>\"groups:extras:status:closed\");\r\n\t\t\t\tforeach($values as $value=>$label){\r\n\t\t\t\t\t$options = array(\"types\"=>\"group\",\"count\"=>true,\"metadata_names\"=>$property,\"metadata_values\"=>$value);\r\n\t\t\t\t\t$total = elgg_get_entities_from_metadata($options);\r\n\t\t\t\t\t$labels[]=$label;\r\n\t\t\t\t\t$totals[$label]=(int)$total;\r\n\t\t\t\t}\r\n\t\t\t\t$totals[\"groups:extras:status:active\"]=$all_groups-$totals[\"groups:extras:status:inactive\"]-$totals[\"groups:extras:status:closed\"];\r\n\r\n\t\t\t\tbreak;\r\n\r\n\t\t}\r\n\t}\r\n\telse{\r\n\t\tswitch($property){\r\n\t\t\tcase \"content_privacy\":\r\n\t\t\t\t$options = array(\"types\"=>\"group\",\"count\"=>true,\"metadata_names\"=>$property,\"metadata_values\"=>\"no\");\r\n\t\t\t\t$count_no = elgg_get_entities_from_metadata($options);\r\n\t\t\t\t$options = array(\"types\"=>\"group\",\"count\"=>true,);\r\n\t\t\t\t$all_groups = elgg_get_entities($options);\r\n\r\n\t\t\t\t// How content_privacy is a new feature it is no available for all groups\r\n\t\t\t\t$labels[]=\"yes\";\r\n\t\t\t\t$totals[\"yes\"]=$all_groups - $count_no;\r\n\t\t\t\t$labels[]=\"no\";\r\n\t\t\t\t$totals[\"no\"]=$count_no;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"membership\":\r\n\t\t\t\t$values = array( ACCESS_PRIVATE => elgg_echo('groups:access:private'), ACCESS_PUBLIC => elgg_echo('groups:access:public'));\r\n\t\t\t\tforeach($values as $value=>$label){\r\n\t\t\t\t\t$options = array(\"types\"=>\"group\",\"count\"=>true,\"metadata_names\"=>$property,\"metadata_values\"=>$value);\r\n\t\t\t\t\t$total = elgg_get_entities_from_metadata($options);\r\n\t\t\t\t\t$labels[]=$value;\r\n\t\t\t\t\t$totals[$value]=$total;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn array($labels,$totals);\r\n}", "function group_list()\n {\n //create model object\n $groupObj=new groupModel();\n \n \n //get all listing\n $groupObj->getgroupList();\n \n \n $jsData = Layout::bufferContent(URI::getAbsModulePath().\"/js/group_list.php\");\n \n \n //create javascript variable for ajax url\n Layout::addFooter($jsData);\n\n //render layout\n Layout::renderLayout();\n \n }", "public function setItemCountPerPage($n = -1) {\n\t\t$this->setJqueryParam('iDisplayLength', $n);// paramètre jquery\n\t\treturn parent::setItemCountPerPage($n);\n\t}", "function pagination(){}", "function set_pagination(){\n\t\tif ($this->rpp>0)\n\t\t{\n\t\t\t$compensation= ($this->num_rowset % $this->rpp)>0 ? 1 : 0;\n\t\t\t$num_pages = (int)($this->num_rowset / $this->rpp) + $compensation;\n\t\t} else {\n\t\t\t$compensation = 0;\n\t\t\t$num_pages = 1;\n\t\t}\n\n\t\tif ($num_pages>1){\n\t\t\t$this->tpl->add(\"pagination\", \"SHOW\", \"TRUE\");\n\n\t\t\tfor ($i=0; $i<$num_pages; $i++){\n\t\t\t\t$this->tpl->add(\"page\", array(\n\t\t\t\t\t\"CLASS\"\t=> \"\",\n\t\t\t\t\t\"VALUE\"\t=> \"\",\n\t\t\t\t));\n\t\t\t\t$this->tpl->parse(\"page\", true);\n\t\t\t}\n\t\t}\n/*\n\t\t\t<patTemplate:tmpl name=\"pagination\" type=\"simplecondition\" requiredvars=\"SHOW\">\n\t\t\t<div class=\"pagination\">\n\t\t\t\t<ul>\t\n\t\t\t\t\t<patTemplate:tmpl name=\"prev_page\" type=\"simplecondition\" requiredvars=\"SHOW\">\n\t\t\t\t\t<li class=\"disablepage\"><a href=\"javascript: return false;\">« Предишна</a></li>\n\t\t\t\t\t</patTemplate:tmpl>\n\t\t\t\t\t<patTemplate:tmpl name=\"page\">\n\t\t\t\t\t<li {CLASS}>{VALUE}</li>\n\t\t\t\t\t</patTemplate:tmpl>\n<!--\n\t\t\t\t\t<li class=\"currentpage\">1</li>\n\t\t\t\t\t<li><a href=\"?page=1&sort=date&type=desc\">2</a></li>\n\t\t\t\t\t<li><a href=\"?page=2&sort=date&type=desc\">3</a></li>\n//-->\n\t\t\t\t\t<patTemplate:tmpl name=\"next_page\" type=\"simplecondition\" requiredvars=\"SHOW\">\n\t\t\t\t\t<li><a href=\"?page=1&sort=date&type=desc\">Следваща »</a></li>\n\t\t\t\t\t</patTemplate:tmpl>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t</patTemplate:tmpl>\n*/\n\t}", "abstract protected function prepareTotalCount();", "function filter_edit_posts_per_page( $per_page, $post_type ) {\n global $pagenow;\n\n if ( ( $pagenow == 'edit.php' ) && ($_GET['post_type'] == 'groups') ) {\n $per_page = 100;\n }\n\n return $per_page;\n}", "public function index()\n {\n\n $group = EmailGroup::paginate(20);\n return view('admin.email-marketing.Group.index')->with(['items' => $group]);\n }", "public function testMultiPageCount()\n {\n $this->mockHandler->append(\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_0', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_1', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_2', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_3', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_4', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_5', 'r'))\n );\n\n $issueCount = $this->issueCounter->getCounts(\n [\n 'status' => [\n 1, // Active\n 13, // Needs work\n 8, // Needs review\n 14, // Reviewed & tested by the community\n 15, // Patch (to be ported)\n 4, // Postponed\n ],\n ],\n [\n 'major_bugs' => [\n 'priorities' => [300],\n 'categories' => [1],\n ],\n ]\n );\n\n $this->assertEquals(271, $issueCount['major_bugs']);\n }", "public static function getNumberOfGroups()\n {\n return ValveGroup::count();\n }", "public function testModSelectCountPages()\n {\n $this->todo('stub');\n }", "public function testProfilePrototypeCountGroups()\n {\n\n }", "function index() {\n $this->set('groups', $this->Group->find('all'));\n }", "public function getShowGroups(): array;", "public function count()\n {\n return count($this->groups);\n }", "private function _show_list_of_groups() {\n // show groups of current user\n // create group button\n $this->load->model('membership_model');\n \n $user_id = $this->session->userdata('user')['id'];\n\n $where = array(\n 'm.user_id' => $user_id,\n 'm.status' => 1,\n 'g.status' => 1\n );\n \n $groups = $this->membership_model->fetch($where);\n\n // 1 is owner\n $where['m.type'] = 1;\n // allow status 2 for my groups for hidden\n // 0 is deleted\n unset($where['g.status']);\n $where['g.status !='] = 0;\n $my_groups = $this->membership_model->fetch($where);\n \n // membership type 2 is normal member\n $where['m.type'] = 2;\n $where['g.status'] = 1;\n $other_groups = $this->membership_model->fetch($where);\n\n // can be any type for invited\n unset($where['m.type']);\n $where['m.status'] = 2;\n $invited_groups = $this->membership_model->fetch($where);\n \n $data = array(\n 'title' => 'Groups',\n 'msg' => $this->session->flashdata('msg'),\n 'groups' => $groups,\n 'my_groups' => $my_groups,\n 'other_groups' => $other_groups,\n 'invited_groups' => $invited_groups\n );\n $this->_view(\n array('templates/nav', 'pages/dashboard/groups', 'alerts/msg'),\n array_merge($this->_nav_items, $data)\n );\n }", "public function getGroups() {}", "public function testGetGroupCount()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "protected function set_initial_groups()\n {\n $this->_groups = apply_filters('ngg_admin_requirements_manager_groups', array('phpext' => __('NextGen Gallery requires the following PHP extensions to function correctly. Please contact your hosting provider or systems admin and ask them for assistance:', 'nggallery'), 'phpver' => __('NextGen Gallery has degraded functionality because of your PHP version. Please contact your hosting provider or systems admin and ask them for assistance:', 'nggallery'), 'dirperms' => __('NextGen Gallery has found an issue trying to access the following files or directories. Please ensure the following locations have the correct permissions:', 'nggallery')));\n }", "function XMLGroupPeer() {\n global $g, $config;\n\n parent::AbstractGroupPeer();\n\n if (isset($config['system']['group'])) {\n $i = 0;\n\n foreach($config['system']['group'] as $groupent) {\n $this->group_index[$groupent['name']] = $i;\n $i++;\n }\n }\n }", "public function index()\n {\n //\n if(Auth::user()->hasRole('superadministrator')){\n $groups = Group::paginate(10);\n }else{\n $groups = Group::where('owner_client_id', Auth::user()->id)->paginate(10);\n }\n return view('manage.groups.index')->withGroups($groups);\n }", "function MyMod_Paging_Page_No_2_Item_Nos()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n if ($this->MyMod_Paging_Active_ID && $this->MyMod_Paging_Active_ID>0)\n {\n $this->FirstItemNo=0;\n foreach ($items as $id => $item)\n {\n if ($item[ \"ID\" ]==$this->MyMod_Paging_Active_ID)\n {\n $this->FirstItemNo=$id;\n $this->OffSet=$this->NumberOfItems;\n }\n }\n }\n else\n {\n if ($this->MyMod_Paging_No==0)\n {\n $this->FirstItemNo=0;\n $this->OffSet=$this->NumberOfItems;\n }\n elseif\n (\n preg_match('/\\d+/',$this->MyMod_Paging_No)\n &&\n $this->MyMod_Paging_No>0\n )\n {\n $res=$this->NItemsPerPage % $this->NumberOfItems;\n\n $this->FirstItemNo=($this->MyMod_Paging_No-1)*$this->NItemsPerPage;\n $this->OffSet=$res;\n }\n else\n {\n $this->FirstItemNo=0;\n $this->OffSet=0;\n }\n }\n }\n else\n {\n $this->FirstItemNo=0;\n $this->OffSet=$this->NumberOfItems;\n }\n\n $this->LastItemNo=$this->FirstItemNo+$this->OffSet;\n }", "public function refreshGroups()\n {\n $this->sortedAttributeGroups = AttributeGroup::whereAttributableType($this->typeClass)\n ->orderBy('position')->get();\n\n $this->showGroupCreate = false;\n }" ]
[ "0.707328", "0.7068468", "0.7005975", "0.68418676", "0.65544677", "0.6536148", "0.6451707", "0.6326838", "0.6319876", "0.62538445", "0.62412465", "0.6005927", "0.597366", "0.5971405", "0.596919", "0.5948917", "0.5912546", "0.5878975", "0.5866085", "0.58602464", "0.5782344", "0.57726014", "0.57519424", "0.57519424", "0.57365423", "0.57359827", "0.57359827", "0.5729408", "0.5726703", "0.57256204", "0.57244825", "0.57244825", "0.5699112", "0.56827086", "0.5666322", "0.5665928", "0.5649537", "0.56312644", "0.5620288", "0.5610562", "0.56099594", "0.56002825", "0.5595429", "0.55847967", "0.5584019", "0.55818915", "0.55725574", "0.5565549", "0.5565549", "0.55654025", "0.5531438", "0.5530873", "0.55241483", "0.55235183", "0.55129683", "0.5508317", "0.5493827", "0.5492872", "0.5489398", "0.5477668", "0.54540193", "0.54508525", "0.5443021", "0.54315865", "0.54297304", "0.542697", "0.541569", "0.54119754", "0.5389286", "0.538855", "0.53813124", "0.5379355", "0.5374583", "0.5371833", "0.5371833", "0.5362761", "0.53585833", "0.5358008", "0.53580046", "0.53549", "0.5353194", "0.53492826", "0.53416014", "0.53388864", "0.5334151", "0.5333028", "0.53322214", "0.53241813", "0.5324078", "0.53181785", "0.531502", "0.5303797", "0.5300796", "0.5298511", "0.5287843", "0.52826685", "0.5278287", "0.5277633", "0.52715814", "0.52710086" ]
0.7144504
0
Get extended filter values
function GetExtendedFilterValues() { global $deals_details; // Field dealer $sSelect = "SELECT DISTINCT rep.dealer FROM " . $deals_details->SqlFrom(); $sOrderBy = "rep.dealer ASC"; $wrkSql = ewrpt_BuildReportSql($sSelect, $deals_details->SqlWhere(), "", "", $sOrderBy, $this->UserIDFilter, ""); $deals_details->dealer->DropDownList = ewrpt_GetDistinctValues("", $wrkSql); // Field date_start $sSelect = "SELECT DISTINCT rep.date_start FROM " . $deals_details->SqlFrom(); $sOrderBy = "rep.date_start ASC"; $wrkSql = ewrpt_BuildReportSql($sSelect, $deals_details->SqlWhere(), "", "", $sOrderBy, $this->UserIDFilter, ""); $deals_details->date_start->DropDownList = ewrpt_GetDistinctValues($deals_details->date_start->DateFilter, $wrkSql); // Field status $sSelect = "SELECT DISTINCT rep.status FROM " . $deals_details->SqlFrom(); $sOrderBy = "rep.status ASC"; $wrkSql = ewrpt_BuildReportSql($sSelect, $deals_details->SqlWhere(), "", "", $sOrderBy, $this->UserIDFilter, ""); $deals_details->status->DropDownList = ewrpt_GetDistinctValues("", $wrkSql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilterValues()\n {\n return $this->filter_values;\n }", "public function getFilter();", "public function getFilter();", "public function getFilterParameters(): array;", "public function filters()\n\t{\n\t\treturn array(\n\t\t\t'amount' => array(\n\t\t\t\tarray('Num::filter_number')\n\t\t\t),\n\t\t\t'price' => array(\n\t\t\t\tarray('Num::filter_number')\n\t\t\t)\n\t\t);\n\t}", "function GetExtendedFilterValues() {\n\t\tglobal $dealers_reports;\n\n\t\t// Field StartDate\n\t\t$sSelect = \"SELECT DISTINCT agree.StartDate FROM \" . $dealers_reports->SqlFrom();\n\t\t$sOrderBy = \"agree.StartDate ASC\";\n\t\t$wrkSql = ewrpt_BuildReportSql($sSelect, $dealers_reports->SqlWhere(), \"\", \"\", $sOrderBy, $this->UserIDFilter, \"\");\n\t\t$dealers_reports->StartDate->DropDownList = ewrpt_GetDistinctValues($dealers_reports->StartDate->DateFilter, $wrkSql);\n\t}", "public function getFilter(){ }", "public function get_filtering()\r\n\t{\r\n\t\treturn $this->filtering->get_value();\r\n\t}", "abstract protected function getFilters();", "public function getFilter(): array\n {\n return $this->filter;\n }", "public function getFilter(): array\n {\n return $this->filter;\n }", "public function getFilterValue(): string;", "public function getFilter() :array;", "function GetFilter ( )\n{\n\treturn $this->FilterExp();\n}", "public function filters(){\r\r\n\t\treturn CMap::mergeArray(parent::filters(),array(\r\r\n\t\t\t\r\r\n\t\t));\r\r\n\t}", "public function getFilter(): string;", "public static function GET_FILTER(): array\n\t{\n\t\treturn self::$filters;\n\t}", "public function getFilters(): array;", "public function getFilters(): array;", "public function GetFilters ();", "public function getFilters();", "public function filters()\n {\n return array(\n 'value' => array(\n array(array($this, 'check_for_array_or_object')),\n )\n );\n }", "public function getFilter(): array\n {\n return $this->model->getFilter();\n }", "public function getFilteredDetails();", "public function getFilter()\n {\n return $this->get(self::FILTER);\n }", "public function getFilterDetailsArray()\n {\n return [\n 'id' => $this->id,\n 'radius' => $this->radius,\n 'sigma' => $this->sigma,\n 'channel' => $this->channel,\n ];\n }", "public function getFilterInput();", "public function getFilters() \n {\n return $this->filters;\n }", "protected function getFilter()\n {\n return $this->getSettingsValue('filter');\n }", "public function getPreparedFieldFilterValues () {\n return MLI18n::gi()->get(ucfirst(MLModul::gi()->getMarketPlaceName()).'_Productlist_Filter_aPreparedStatus');\n }", "public function getFilter()\n {\n return $this->filterComposite;\n }", "private static function _getFilter() {}", "public function getFilterOptions()\n {\n return $this->getOptions()\n ->joinWith(['lang','taxGroup'])\n ->where(['is_filter' => true]);\n }", "public function getFilter()\n {\n return($this->options['filter']);\n }", "public function getFilterResponse();", "public function getActiveFilters()\n {\n \t$ret = $this->getSettingValue('filters', []);\n \treturn (is_array($ret)) ? $ret : [];\n }", "public function getAdditionalFilter($dataProvider = null);", "function getDateFilter() {\n return $this->getAdditionalProperty('date_filter', self::DATE_FILTER_ANY);\n }", "public function getElasticaFilters()\n {\n return $this->elasticaFilters;\n }", "public function & GetFilters () {\n\t\t$filters = [];\n\t\tforeach ($this->filters as $direction => $handler) \n\t\t\t$filters[$direction] = $handler[1];\n\t\treturn $filters;\n\t}", "public function filters()\n {\n return [\n \n ];\n }", "public function getFilters()\n {\n return array();\n }", "function getFilter() {\n\t\treturn $this->_filter;\n\t}", "function readfilter()\n\t{\n\t\t$field = $this->input->post(\"namafield\");\n\t\t$value = $this->input->post(\"valfilter\");\n\n\t\treturn array(\n\t\t\t\t\"field\" => $field,\n\t\t\t\t\"value\" => $value\n\t\t\t);\n\t}", "protected function getInternalFilter()\n {\n return $this->getSettingsValue('internal_filter');\n }", "public function getFilters (): array\n\t{\n\t\treturn [\n\t\t\t\"itemName\" => \"itemName\"\n\t\t];\n\t}", "protected function getFilters() {\n return $this->getUser()->getAttribute(viewLeaveEntitlementsAction::FILTERS_ATTRIBUTE_NAME, array(), 'leave');\n }", "public function getFilters()\r\n {\r\n return $this->filters;\r\n }", "function get_active_filter_values($filter_name) {\n global $SESSION;\n\n mtrace('<br><font color=red>NOTICE: $this->get_active_filter_values() is now deprecated; use php_report_filtering_get_active_filter_values($this->get_report_shortname(),$filter_name) instead (sorry... lol)</font><br>');\n\n $result = array();\n\n /* DOES NOT WORK ANYMORE\n if(!empty($this->id)) {\n $filtering_array =& $SESSION->user_index_filtering[$this->id];\n } else {\n $filtering_array =& $SESSION->user_filtering;\n }\n\n if (isset($filtering_array[$filter_name])) {\n $result = $filtering_array[$filter_name];\n }\n */\n\n $reportid = 'php_report_' . $this->get_report_shortname();\n\n if (isset($SESSION->php_report_default_params)) {\n $params = $SESSION->php_report_default_params;\n\n foreach ($params as $key=>$val) {\n if ($key == $reportid.'/'.$filter_name) {\n $result[] = array('value'=>$val);\n }\n }\n }\n\n if (!empty($result)) {\n return $result;\n } else {\n return false;\n }\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "abstract public function filters();", "protected function getFilterTransformations()\n {\n return [\n 'id' => [[99, '99']],\n ];\n }", "public function getAdditional();", "public function filters()\n {\n return [\n \"info.gravatar\" => \"trim|cast:boolean\",\n \"info.first_name\" => \"trim|strip_tags|cast:string\",\n \"info.last_name\" => \"trim|strip_tags|cast:string\",\n \"info.gender\" => \"trim|strip_tags|cast:string\",\n \"info.birthday\" => \"trim|strip_tags|cast:string\",\n \"info.mobile_phone\" => \"trim|strip_tags|cast:string\",\n \"info.address\" => \"trim|strip_tags|cast:string\",\n \"info.city\" => \"trim|strip_tags|cast:string\",\n \"info.country\" => \"trim|strip_tags|cast:string\",\n\n \"info.username\" => \"trim|strip_tags|cast:string\",\n \"info.displayname\" => \"trim|strip_tags|cast:string\",\n \"info.email\" => \"trim|strip_tags|cast:string\",\n \"info.password\" => \"trim|strip_tags|cast:string\",\n\n \"action\" => \"trim|strip_tags|cast:string\",\n \"_token\" => \"trim|strip_tags|cast:string\",\n \"_method\" => \"trim|strip_tags|cast:string\"\n ];\n }", "public function filtering();", "function getFilter()\n\t{\n\t\treturn $this->_filter;\n\t}", "public function getFilters() {\n\t\treturn array(\n\t\t\t'size' => new Twig_Filter_Function('Cake_Number_Filters::size'),\n\t\t\t'pct' => new Twig_Filter_Function('Cake_Number_Filters::percentage'),\n\t\t\t'curr' => new Twig_Filter_Function('Cake_Number_Filters::currency'),\n\t\t\t'p' => new Twig_Filter_Function('Cake_Number_Filters::precision'),\n\t\t);\n\t}", "public function getFilters()\n {\n return array_merge(parent::getFilters(), array(\n 'date' => new \\Twig_Filter_Function('ionic_date'),\n 'relativedate' => new \\Twig_Filter_Function('ionic_date_rel'),\n 'specialdate' => new \\Twig_Filter_Function('ionic_date_special'),\n 'url' => new \\Twig_Filter_Function('url'),\n 'nl2br_noescape' => new \\Twig_Filter_Function('nl2br'),\n 'limit' => new \\Twig_Filter_Function('Str::limit'),\n 'md5' => new \\Twig_Filter_Function('md5'),\n 'addslashes' => new \\Twig_Filter_Function('addslashes')\n ));\n }", "public function getFilters()\n {\n return $this->getOptions()\n ->joinWith('taxGroup.lang')\n ->joinWith('lang');\n }", "protected function getFilter()\n {\n return $this->filter;\n }", "function acf_get_filters()\n{\n}", "public function getDefaultFilterParameters(): array;", "public function getFilters(): array\n {\n return [\n new \\Twig_SimpleFilter('extract', [$this, 'extract']),\n ];\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "function get_filters($init_data = true) {\n //no filters by default\n return array();\n }", "public function getExperienceSearchFilters() {\n return $this->filters;\n }", "public function getFilters() \r\n\t{\r\n\t\treturn $this->_filters;\r\n\t}", "public function getFilter()\n\t{\n\t\treturn $this->filter;\n\t}", "public function filters()\n {\n $filters = array(\n 'postOnly + delete',\n );\n\n return CMap::mergeArray($filters, parent::filters());\n }", "public function filters()\n {\n $filters = array(\n 'postOnly + delete',\n );\n\n return CMap::mergeArray($filters, parent::filters());\n }", "public function getFilteredInsights(string $extendedFrom): array;", "public function getPropertyFilter()\n {\n return $this->readOneof(2);\n }", "protected function getEmptyFilter()\n {\n return array('filters' => array());\n }", "protected function filters(): array\n {\n return $this->filters;\n }", "private function filterOptions(){\n $request = new Request();\n\n $key = $request->query->get('key') ? $this->global_helper_service->cleanDataInput($request->query->get('key')) : '';\n $date_range = $request->query->get('date_range') ? $request->query->get('date_range') : '';\n\n $array_filters = array();\n\n $array_filters['key'] = array(\n 'type' => 'input',\n 'title' => 'Search',\n 'default_value' => $key\n );\n\n $array_filters['date_range'] = array(\n 'type' => 'date_picker',\n 'title' => 'Date Range',\n 'options' => '',\n 'default_value' => $date_range\n );\n\n return $this->admincp_service->handleElementFormFilter($array_filters);\n }", "public function getInputFilter();" ]
[ "0.742924", "0.6932938", "0.6932938", "0.69204766", "0.68768793", "0.6874142", "0.68200123", "0.67950624", "0.6781657", "0.67690814", "0.67690814", "0.6760076", "0.67525136", "0.67012787", "0.662737", "0.64722776", "0.6449177", "0.64422977", "0.6435512", "0.64228076", "0.64195657", "0.6409829", "0.63743263", "0.63521385", "0.6346941", "0.6284772", "0.6282708", "0.62392086", "0.6237247", "0.6211709", "0.6208501", "0.62018", "0.619061", "0.61578214", "0.61506224", "0.6136519", "0.6135654", "0.6129259", "0.6103376", "0.6075167", "0.6052405", "0.6048416", "0.6048207", "0.60481185", "0.6044382", "0.60414815", "0.602216", "0.60220534", "0.6020342", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.6019477", "0.60186076", "0.6018569", "0.601611", "0.60086805", "0.60047174", "0.59926355", "0.59913564", "0.5985955", "0.5983474", "0.5954235", "0.5952238", "0.5950472", "0.59027445", "0.58937436", "0.58937436", "0.58937436", "0.58937436", "0.58937436", "0.58937436", "0.58937436", "0.58937436", "0.58937436", "0.5891704", "0.5881605", "0.58800066", "0.58750075", "0.58683115", "0.58683115", "0.5862851", "0.58611244", "0.58568156", "0.5845907", "0.5829792", "0.5827833" ]
0.73227525
1
Get drop down value from querystring
function GetDropDownValue(&$sv, $parm) { if (ewrpt_IsHttpPost()) return FALSE; // Skip post back if (isset($_GET["sv_$parm"])) { $sv = ewrpt_StripSlashes($_GET["sv_$parm"]); return TRUE; } return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function currSelection()\n{\n\tif(isset($_GET['p_drop']))\n\t\techo \"Municipality\";\n\telse if(isset($_GET['o_drop']))\n\t\techo \"District\";\n\telse if(isset($_GET['m_drop']))\n\t\techo \"Township\";\n\telse\n\t\techo \"Province\";\n}", "function get_options_url()\n{\n parse_str($_SERVER['QUERY_STRING'], $query);\n return $query;\n}", "function getDropDown() ;", "function getValue($fieldName) {\r\n $value = '';\r\n if (isset($_REQUEST[$fieldName])) { \r\n $value = $_REQUEST[$fieldName];\r\n }\r\n return $value;\r\n }", "function PKG_OptionPageGetValue($variable,$params)\n{\n\tif (isset($_GET[$variable]))\n\t\treturn($_GET[$variable]);\n\telse\n\t\treturn($params[$variable]);\n}", "function GetSessionDropDownValue(&$fld) {\n\t\t$parm = substr($fld->FldVar, 2);\n\t\t$this->GetSessionValue($fld->DropDownValue, 'sv_dealers_reports_' . $parm);\n\t}", "public function value()\n {\n return $this->app->input->get('option');\n }", "function get_query_str_value($name) {\n\n return (array_key_exists($name, $_GET) ? $_GET[$name] : null);\n}", "function GetSessionDropDownValue(&$fld) {\n\t\t$parm = substr($fld->FldVar, 2);\n\t\t$this->GetSessionValue($fld->DropDownValue, 'sv_deals_details_' . $parm);\n\t}", "function getSelectedAdTag() {\n\treturn constant($_GET['adTag']);\n}", "function GetFromGET($var) {\n //Note: some HTML elements are empty (such as radio button) if nothing is selected,\n //This will result in an error when looking it up in the GET array\n //Use empty to see if the value exists\n if(!empty($_GET[$var])) { \n $tmp = $_GET[$var]; \n } else {\n $tmp = \"\";\n }\n return $tmp;\n}", "public function getDropDown() {}", "public function getDropDown() {}", "function getFieldMainLanguageID($val = null){\n\t\tinclude('axcelerate_link_array_list.php');\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_MainLanguageID');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_MainLanguageID');\n\t\t$tooltip = setToolTipNotification(\"MainLanguageID\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('mlanguage') === 'mlanguage' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><select name='MainLanguageID' id='MainLanguageID' class='srms-field \".(get_axl_req_fields('mlanguage') === 'mlanguage' ? 'input-select-required' : '').\"'><option value=''> -- Select Language -- </option>\";\n\t\t\tasort($sacc_languages);\n\t\t\tforeach ($sacc_languages as $key => $value) {\n\t\t\t\tif(isLanguageDisabled($key)){\n\t\t\t\t\t$form_ret .= \"<option value='\".$key.\"' \".($val == $key ? 'selected' : '').\">\".$value.\"</option>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t$form_ret .= \"</select></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "function get_option() {\n\t\t\tcheck_ajax_referer('ajax-nonce', 'nonce');\n\t\t\tif (!empty($_POST['option'])) {\n\t\t\t\tswitch ($_POST['option']) {\n\t\t\t\t\tcase 'blogname':\n\t\t\t\t\t\techo preg_replace_callback(\"/(&#[0-9]+;)/\", array($this, 'decode_entities'), html_entity_decode(get_bloginfo('name')));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'blogdescription':\n\t\t\t\t\t\techo preg_replace_callback(\"/(&#[0-9]+;)/\", array($this, 'decode_entities'), html_entity_decode(get_bloginfo('description')));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\techo get_option($_POST['option']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\techo 'notfound';\n\t\t\t}\n\t\t\tdie;\n\t\t}", "function getOption($name);", "function get_query_string($key) {\n $val = null;\n if (!empty($_GET[$key])) {\n $val = $_GET[$key];\n }\n return $val;\n}", "function UrlParmGet( $fld, $k )\r\n /******************************\r\n Get the value from an urlparm\r\n */\r\n {\r\n $ra = $this->UrlParmGetRA( $fld );\r\n return( @$ra[$k] ?? \"\" );\r\n }", "function GetQueryString($name, $default=\"\") {\n return ValidRequiredQueryString($name) ? $_GET[$name] : $default;\n}", "public function getValueFromRequest() {\n\t\tglobal $wgRequest;\n\t\t$this->aActiveValues = $wgRequest->getArray( $this->getParamKey(), array() );\n\t}", "function _get($str)\n{\n $val = !empty($_GET[$str]) ? $_GET[$str] : null;\n return $val;\n}", "function url_get_param($name) {\n\tparse_str(parse_url(curPageURL(), PHP_URL_QUERY), $vars);\t\t\n\treturn isset($vars[$name]) ? $vars[$name] : null;\t\n}", "public static function getSelect()\n {\n return Hash::combine(self::getConstants(), '{s}.value', '{s}.name');\n }", "public function getValue()\n {\n return $this->getParameter('value');\n }", "public function getValue()\n {\n return $this->getParameter('value');\n }", "public static function getQueryParam(string $key)\n { \n $query = explode('&', self::$__query); \n\n foreach($query as $items){\n $item = explode('=', $items); \n if($item[0] == $key){\n return $item[1];\n }\n }\n\n return null;\n }", "function get_valueFromStringUrl($url_path_part , $parameter_name) {\n\t\t\t$parts = parse_url($_SERVER[\"REQUEST_URI\"]);\n\t\t\tif(isset($parts['query'])) {\n\t\t\t\tparse_str($parts['query'], $query);\n\t\t\t\tif(isset($query[$parameter_name])) {\n\t\t\t\t\treturn $query[$parameter_name];\n\t\t\t\t}\n\t\t\t\telse { return null; }\n\t\t\t}\n\t\t\telse { return null; }\n\t\t}", "function get_query_var($query_var, $default_value = '')\n {\n }", "function\tdropdown_list($dbconn) {\n\t$sqlcom=\"select distinct spec_id,name from info;\";\n\t$dbres = pg_exec($dbconn, $sqlcom );\n\tif ( ! $dbres ) {echo \"Error : \" + pg_errormessage( $dbconn ); exit();} \n\t$row=0;\n\t$rowmax=pg_NumRows($dbres);\n\tprint \"<form method=\\\"post\\\" action=\\\"libSpec.php\\\"><select name=\\\"organism\\\" onchange=\\\"this.form.submit();\\\">\\n<option value=\\\"select\\\">Select an organism...</option>\\n\"; \n\twhile ($row<$rowmax) {\n\t $do = pg_Fetch_Object($dbres, $row);\n\t $name=$do->name;\n\t print \"<option value=\\\"$name\\\">$name</option>\\n\";\n\t $row++;\n\t}\n\tprint(\"</select></form>\\n\\n\");\n}", "function fillCountrySelect(){\n global $db;\n\n $query = \"SELECT DISTINCT countryname FROM place ORDER BY countryname\";\n $results = $db->query($query)->fetchAll(PDO::FETCH_ASSOC);\n\n foreach ($results as $result){\n if (isset($_GET[\"CountrySubmit\"]) && $result[\"countryname\"] == $_GET[\"Country\"]) {\n echo \"<option value='{$result[\"countryname\"]}' selected>{$result[\"countryname\"]}</option>\";\n }\n else {\n echo \"<option value='{$result[\"countryname\"]}'>{$result[\"countryname\"]}</option>\";\n }\n\n }\n\n}", "public function get( $option );", "public function dropDownPostStatus($selected = \"\")\n{\n \n $name = 'post_status';\n \n $posts_status = array('publish' => 'Publish', 'draft' => 'Draft');\n \t\n if ($selected != '') {\n \n $selected = $selected;\n\n }\n \t\n return dropdown($name, $posts_status, $selected);\n \t\n}", "function getQueryParm($parm) { // not working too good!\n $return = \"\";\n $uri = parse_url(rawurldecode($_SERVER['REQUEST_URI']));\n if (isset($uri['query'])) {\n $query = $uri['query'];\n if ($parm) {\n $pos = $this->stripos($query, $parm . \"=\");\n if ($pos)\n $return = substr($query, $pos + strlen($parm) + 1);\n }\n }\n return $return;\n }", "function getFieldEnglishProficiencyID($val = null){\n\t\tinclude('axcelerate_link_array_list.php');\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_EnglishProficiencyID');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_EnglishProficiencyID');\n\t\t$tooltip = setToolTipNotification(\"EnglishProficiencyID\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('english_status') === 'english_status' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><select name='EnglishProficiencyID' id='EnglishProficiencyID' class='srms-field \".(get_axl_req_fields('english_status') === 'english_status' ? 'input-select-required' : '').\"'><option value=''> -- Select -- </option>\";\n\t\t\tforeach ($ProficiencyID as $key => $value) {\n\t\t\t\t$form_ret .= \"<option value='\".$key.\"' \".($val == $key ? 'selected' : '').\">\".$value.\"</option>\";\n\t\t\t}\n\t\t\t$form_ret .= \"</select></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "function langChoice()\n{\n\tglobal $supported;\n\n\tglobal $detailp; //is usefull when on the detail page\n\n\t$rep = '';\n\n\t$rep .= '<form method=\"get\" id=\"langForm\" action=\"' . $_SERVER[\"PHP_SELF\"] . '\">\n\t\t<select onchange=\"submitForm(\\'langForm\\')\" name=\"lang\">';\n\n\tforeach($supported as $elem)\n\t{\n\t\t$rep .= '<option value=\"' . $elem . '\"';\n\n\t\tif ($_SESSION['lang']===$elem)\n\t\t{\n\t\t\t$rep .= ' selected';\n\t\t}\n\t\t$rep .= '>';\n\n\t\t//we usually want 'Français' instead of 'fr' don't we\n\t\t$rep .= (isset(ABR_LANG[$elem])?ABR_LANG[$elem]:$elem);\n\t\t$rep .= '</option>' . PHP_EOL;\n\t}\n\n\t$rep .= '\t</select> ';\n\n\t\t//so that we keep the current IT (and don't redirect afterwards)\n\t\tif (isset($detailp))\n\t\t{\n\t\t\t$rep .= '<input type=\"hidden\" name=\"choix\" value=\"' . $_GET['choix'] . '\"/>';\n\t\t}\n$rep .= '\t</form>';\n\n\treturn $rep;\n}", "public function getSelectedItem()\n {\n $tab = intval($_REQUEST[\"tab\"]);\n $swagPostItems = $this->getSwagPostItems();\n return $swagPostItems[$tab];\n }", "protected function getSelectedValue() {}", "protected function getValue($name, $default='')\r\n {\r\n if (isset($_GET[$name])) {\r\n return $_GET[$name];\r\n } else {\r\n return $default;\r\n }\r\n }", "public function get(string $option);", "public function get(string $option);", "public function get_value() {\n return $this->get_selected_options();\n }", "public function get() {\n\t\treturn $this->options->get( self::OPTION );\n\t}", "function getUserFromForm()\n {\n $string= \"default\";\n\n if (isset($_POST['Parametro']))\n $string=$_POST['Parametro'];\n\n return $string;\n }", "public function getSiteOption($optionName){\n\t\ttry{\t\t\n\t\t\t$stmt = $this->db->prepare(\"SELECT optionValue FROM site_options WHERE optionName = :optionName\");\n\t\t\t$stmt->execute(array(':optionName'=>$optionName));\n\t\t\t$val=$stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\treturn $val['optionValue'];\t\t\t\n\t\t} catch(PDOException $e) {\n echo $e->getMessage();\n } \n }", "function fsf_cms_getStatsPages_dropDown()\n {\n $fsfcms_api_options = array();\n $fsfcms_api_options['apiFile'] = \"fsf.cms.getStatsPages.php\";\n\n $fsfcms_stats_pages_json = fsf_cms_accessAPI($fsfcms_api_options);\n $fsfcms_stats_pages = json_decode($fsfcms_stats_pages_json,TRUE);\n \n if(array_pop($fsfcms_stats_pages) == 200)\n {\n $fsfcms_statsPages_select .= \"<select name=\\\"statsPages\\\" onchange=\\\"self.location.href=this.options[this.selectedIndex].value;\\\">\";\n $fsfcms_statsPages_select .= \"<option value=\\\"\\\">SELECT AN OPTION...</option>\";\n\n foreach($fsfcms_stats_pages as $fsfcms_page_name => $fsfcms_page_slug)\n {\n $fsfcms_statsPages_select .= \"<option value=\\\"/statistics/\" . $fsfcms_page_slug . \"\\\">\" . strtoupper($fsfcms_page_name) . \"</option>\"; \n }\n $fsfcms_statsPages_select .= \"</select>\";\n }\n \n return $fsfcms_statsPages_select; \n }", "public function getSwitchParamValue(): ?string\n {\n if (!$this->request) {\n return null;\n }\n\n return $this->request->query->get($this->switchParam, self::VIEW_FULL);\n }", "function startup_get_option( $key = '' ) {\n\treturn cmb2_get_option( startup_admin()->key, $key );\n}", "function get_form_val($key, $default='', $getfirst=TRUE)\r\n{\r\n if ($getfirst)\r\n {\r\n return (empty($_GET[$key]) ? (empty($_POST[$key]) ? $default : $_POST[$key]) : $_GET[$key]);\r\n }\r\n else\r\n {\r\n return (empty($_POST[$key]) ? (empty($_GET[$key]) ? $default : $_GET[$key]) : $_POST[$key]);\r\n }\r\n}", "function select_option()\r\n{}", "function get_param($param_name)\n{\n $param_value = \"\";\n if(isset($_POST[$param_name]))\n $param_value = $_POST[$param_name];\n else if(isset($_GET[$param_name]))\n $param_value = $_GET[$param_name];\n\n return $param_value;\n}", "protected function getValue($name)\n { // Initialize to null\n $value = null;\n $value = Yii::app()->request->getParam('rbm_'.$this->_domain->type.'_'.$name); \n if( $value === null ) $value = Yii::app()->request->getParam('rbm_'.$name);\n if( $value === null ) $value = Yii::app()->request->getParam($name);\n // Return the value\n return $value;\n }", "public function getSelect();", "public function getSelect();", "function okrs_related_to_select($value)\n{\n\n $selected = '';\n if($value == 'okrs'){\n $selected = 'selected';\n }\n echo \"<option value='okrs' \".$selected.\">\".\n _l('okrs').\"\n </option>\";\n\n}", "public function get_query_var(string $name)\n {\n }", "static private function PickSource($source) {\r\n\t\t\r\n\t\tswitch( strtolower($source) ) {\r\n\t\t\t\r\n\t\t\tcase 'get': \treturn $_GET; break;\r\n\t\t\tcase 'post': \treturn $_POST; break;\r\n\t\t\tdefault: \r\n\t\t\tcase 'request': return $_REQUEST; break;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private function getOptionValue($form_field_list, $field_name, $option_value){\r\n \t\t\r\n \t\tforeach ($form_field_list as $form_row){\r\n \t\t\t\r\n \t\t\tif ($form_row['name'] == $field_name){\r\n \t\t\t\t\r\n \t\t\t\t$options = explode('::', $form_row['options']);\r\n \t\t\t\tarray_unshift($options, 0);\r\n \t\t\t\tunset($options[0]);\r\n \t\t\t\t\r\n \t\t\t\tif (@$options[$option_value])\r\n \t\t\t\t\treturn $options[$option_value];\r\n \t\t\t}\r\n \t\t\t\r\n \t\t} // foreach ($form_field_list as $form_row){\r\n \t\t\r\n \t}", "public function get_param($str, $default = null){\n\t\tif(isset($_GET[$str]))\n\t\t{\n\t\t\treturn $_GET[$str];\n\t\t}else if(isset($_POST[$str]))\n\t\t{\n\t\t\treturn $_POST[$str];\n\t\t}{\n\t\t\treturn $default;\n\t\t}\n\t}", "public function getQueryString()\n {\n return parse_str($this->partials['query']);\n }", "function _getn($v) {\r\n $r = isset($_GET[$v]) ? bwm_clean($_GET[$v]) : '';\r\n return $r == '' ? NULL : $r;\r\n}", "public function getValue() {\n \n $_aParams = func_get_args(); \n return AdminPageFramework_WPUtility::getOption( \n $this->oProp->sOptionKey, \n $_aParams, \n null, // default\n $this->getSavedOptions() + $this->oProp->getDefaultOptions( $this->oForm->aFields ) // additional array to merge with the options\n );\n \n }", "public function getLocationOption($psValue = '')\n {\n $asList = $this->getLocationList();\n\n /*$sOption = '<option value=\"\"> - </option>';\n foreach($asList as $sValue => $sLabel)\n {\n if($sValue == $psValue)\n $sOption.= '<option value=\"'.$sValue.'\" selected=\"selected\">'.$sLabel.'</option>';\n else\n $sOption.= '<option value=\"'.$sValue.'\">'.$sLabel.'</option>';\n }*/\n return $asList;\n }", "public function getOptionElement($value){\n\t\treturn $this->options[$value];\n\t}", "function get_param($name) {\n \n if (isset($_REQUEST[$name])) return $_REQUEST[$name];\n else return \"\";\n}", "function getNationalityDropdownList($name, $initVal=\"\", $js=\"\") {\n $dList = \"<SELECT id=\\\"$name\\\" name=\\\"$name\\\" $js class=\\\"select\\\"><option value=\\\"\\\">Select from List</option>\";\n $dList.=\"<option value=\\\"British\\\">British</option>\";\n $nationalities = $this->getDBRecords(\"select label as name,value as id from nationality order by label\");\n for ($i = 0; $i < count($nationalities); $i++) {\n\n if (rtrim($initVal) == rtrim($nationalities[$i][\"id\"])) {\n $sel = \"selected\";\n }\n else\n $sel=null;\n $dList.= \"<option $sel value=\\\"\" . rtrim($nationalities[$i][\"id\"]) . \"\\\">\" . $nationalities[$i][\"name\"] . \"</option>\";\n }\n $dList.= \"</SELECT>\";\n\n return $dList;\n }", "function EV_get_option( $key = '' ) {\n\treturn cmb2_get_option( EV_admin()->key, $key );\n}", "function getSelect($label, $name, $id, $options) {\r\n $return .= $this->getLabel($label, $id, $true);\r\n $return .= \"<select name='\".$name.\"' id='\".$id.\"'>\";\r\n if($this->getConfigurationValue($name) AND !$value){\r\n $value = $this->getConfigurationValue($name);\r\n }elseif($_POST[$name]){\r\n $data = $this->getFormData(array($name));\r\n $value = $data[$name];\r\n } \r\n foreach($options as $key=>$option){\r\n $selected = \"\";\r\n if($option==$value) $selected=\" selected='selected'\";\r\n $return .= \"<option value='\".$option.\"'\".$selected.\">\".$option.\"</option>\"; \r\n }\r\n $return .= \"</select>\";\r\n return $return;\r\n }", "public function queryString() {\n return $_SERVER['QUERY_STRING'];\n }", "static function getSelect($con,$val=false) {\n\t\t\tglobal $contents,$parts;\n\t\t\t$g = $parts[\"bills\"][\"settings\"];\n\t\t\t$out = \"<select name='$con'><option value=''>-</option>\";\n\t\t\t$val = @$g[$con];\n\t\t\tif ($con==\"minutes\")\n\t\t\t\treturn \"<input name='$con' type='number' value='$val'>\";\n\t\t\tif ($con==\"dropable\")\n\t\t\t\treturn \"<input name='$con' type='radio' value='0' \".($val?\"\":\"checked\").\"> Kapalı\n\t\t\t\t\t\t<input name='$con' type='radio' value='1' \".($val?\"checked\":\"\").\"> Açık\";\n\t\t\tswitch ($con) {\n\t\t\t\tcase \"connect\":\n\t\t\t\t\tforeach($contents as $k => $d)\n\t\t\t\t\t\t$out .= \"<option \".($val==$k?\"selected\":\"\").\" value='$k'>$d[name]</option>\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: \n\t\t\t\t\t$db = $g[\"connect\"];\n\t\t\t\t\tif (isset($contents[$db][\"parts\"])) \n\t\t\t\t\tforeach($contents[$db][\"parts\"] as $k => $d)\n\t\t\t\t\t\t$out .= \"<option \".($val==$k?\"selected\":\"\").\" value='$k'>\n\t\t\t\t\t\t\t\t\".@array_shift(explode(\"||\",$d[\"name\"])).\"</option>\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$out .= \"</select>\";\n\t\t\treturn $out;\n\t\t}", "function getFieldTitle($value = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_title');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_title');\n\t\t$tooltip = setToolTipNotification('title');\t\t\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('title') === 'title' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label></br><select name='title' id='title'><option value='Mr' \".($value == 'Mr'? 'selected': '').\">Mr</option><option value='Ms' \".($value == 'Ms'? 'selected': '').\">Ms</option><option value='Mrs' \".($value == 'Mrs'? 'selected': '').\">Mrs</option><option value='Others' \".($value == 'Others'? 'selected': '').\">Others</option></select></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "public function searchSelector($opt){\n\n\t$search = $this->searchGet(array(\n\t\t'searchType'\t=> $opt['searchType']\n\t));\n\n\tif($opt['multi']){\n\t\t$value = is_array($opt['value']) ? $opt['value'] : array();\n\n\t\t$form .= \"<select name=\\\"\".$opt['name'].\"\\\" id=\\\"\".$opt['id'].\"\\\" size=\\\"\".$opt['size'].\"\\\" multiple style=\\\"\".$opt['style'].\"\\\">\";\n\t\tforeach($search as $e){\n\t\t\t$selected = in_array($e['id_search'], $value) ? ' selected' : NULL;\n\t\t\t$form .= \"<option value=\\\"\".$e['id_search'].\"\\\"\".$selected.\">\".$e['searchName'].\"</option>\";\n\t\t}\n\t\t$form .= \"</select>\";\n\t}else\n\tif($opt['one']){\n\t\t$value = is_array($opt['value']) ? $opt['value'][0] : $opt['value'];\n\n\t\t$form .= \"<select name=\\\"\".$opt['name'].\"\\\" id=\\\"\".$opt['id'].\"\\\" style=\\\"\".$opt['style'].\"\\\">\";\n\t\tforeach($search as $e){\n\t\t\t$selected = ($e['id_search'] == $value) ? ' selected' : NULL;\n\t\t\t$form .= \"<option value=\\\"\".$e['id_search'].\"\\\"\".$selected.\">\".$e['searchName'].\"</option>\";\n\t\t}\n\t\t$form .= \"</select>\";\n\t}\n\t\n\treturn $form;\n}", "function GetVal( $sVar, $sDef = '' )\n{\n\tif( isset( $_REQUEST[ $sVar ] ) )\n\t{\n\t\treturn $_REQUEST[ $sVar ];\n\t}\n\t\n\treturn $sDef;\n}", "public function dropDownMediaAccess($selected = \"\")\n{\n $name = 'media_access';\n\n $media_access = array('public' => 'Public', 'private' => 'Private');\n\n if($selected != '') {\n \n $selected = $selected;\n\n }\n\n return dropdown($name, $media_access, $selected);\n\n}", "function getVal( $name, $default = '' ) {\r\n\t\t\r\n\t\tif( isset( $_REQUEST[$name] ) ) return $this->unquote( $_REQUEST[$name] );\r\n\t\telse return $this->unquote( $default );\r\n\t}", "function getFieldCountryOfCitizenship($val = null){\n\t\tinclude('axcelerate_link_array_list.php');\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_CountryofCitizenID');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_CountryofCitizenID');\n\t\t$tooltip = setToolTipNotification(\"CountryofCitizenID\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('cit_country') === 'cit_country' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><select name='CountryofCitizenID' id='CountryofCitizenID' class='srms-field \".(get_axl_req_fields('cit_country') === 'cit_country' ? 'input-select-required' : '').\"'><option value=''>-- Select Country --</option>\";\n\t\t\tforeach ($sacc_countries as $key => $value) {\n\t\t\t\tif(isCountryDisabled($key, 'Demographics')){\n\t\t\t\t\t$form_ret .= \"<option value='\".$key.\"' \".($val == $key ? 'selected' : '').\">\".$value.\"</option>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t$form_ret .= \"</select></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "function FillStaticCombo($arrStr,$selectvalue) {\n\t$selectvalue1=\"\";\n\tforeach($arrStr as $k=>$v){\n\t if($selectvalue===$k){\n\t\t echo\"<option value=\".$k.\" selected>\".$v.\"</option>\";\n\t\t $selectvalue1=$selectvalue;\n\t }\n\t else\n\t\t echo\"<option value=\".$k.\" >\".$v.\"</option>\";\n\t}\n return $selectvalue1;\n}", "function GetProjektSelectMitarbeiter($adresse)\n {\n // gibt man kein parameter an soll alles zurueck\n // entsprechen weitere parameter filtern die ausgabe\n $arr = $this->app->DB->SelectArr(\"SELECT adresse FROM bla bla where rolle=mitarbeiter von projekt xxx\");\n foreach($arr as $value)\n {\n if($selected==$value) $tmp = \"selected\"; else $tmp=\"\";\n $ret .= \"<option value=\\\"$value\\\" $tmp>$value</option>\";\n }\n return $ret;\n\n\n }", "public function getOpt($option) {}", "function DepartmentDropDown($link){\r\n \r\n $query = \"SELECT * FROM Department\";\r\n $result = mysqli_query($link, $query);\r\n \r\n if (mysqli_num_rows($result)){\r\n while($row = mysqli_fetch_assoc($result)) {\r\n echo ' <option value=' . $row[\"DepartmentID\"] . '>' . $row[\"Department\"] . '</option>';\r\n \r\n }\r\n } else {\r\n echo \"No results.\";\r\n }\r\n}", "function getSelectedValue ( $cd, $str )\n {\n $sql = \"SELECT \".$str.\" FROM Qst WHERE cd = \".$cd.\";\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute();\n $row = $stm->fetch(PDO::FETCH_ASSOC);\n return $row[$str];\n }", "function get($key) {\n\tif(isset($_GET[$key])) {\n\t\treturn $_GET[$key];\n\t}\n\telse {\n\t\treturn '';\n\t}\n}", "public static function get($var = '')\n {\n return self::getFilter($_GET, $var);\n }", "function mdl_opt($_opt, $_slc=false){\r\n\t\r\n\t$ci =& get_instance();\r\n\t\r\n\t$ci->load->model('foo/foo_m');\r\n\t\r\n\t$_ = $ci->foo_m->__select('mdl_options', 'OPT_VAL val', ['OPT'=>$_opt], false);\r\n\r\n\tif($_slc){\r\n\t\r\n\t\t$_j = json_decode($_->val, true);\r\n\t\r\n\t\treturn $_j[$_slc];\r\n\r\n\t} else return $_->val;\r\n}", "public function getSelectRegister()\n {\n return ($this->isValueNumeric('nb_catalog_item_id') && $this->isValueNumeric('nb_language_id'))\n ? $this->buildSentence(\n 'select * '\n . 'from nb_catalog_item_lang '\n . \"where nb_catalog_item_id=%nb_catalog_item_id\\$d \"\n . \"and nb_language_id=%nb_language_id\\$d \"\n )\n : null;\n }", "public function getOption($name);", "public function getOption($name);", "public function getOption($name);", "function _get($v) {\r\n return isset($_GET[$v]) ? bwm_clean($_GET[$v]) : NULL;\r\n}", "function get_param($param_name)\n{\n if($_POST[$param_name])\n\t\treturn $_POST[$param_name];\n\telse\n\t\treturn $_GET[$param_name];\n}", "public static function getItemOptions(){\n\t\t$item = \"\";\n\t\t// Loop through items to populate drop down\n\t\t$sql2 = \"\n\t\t\tSELECT * FROM item\n\t\t\t\";\n\t\t$prepare_values2 = [\n\t\t\t':id' => $_GET['id']\n\t\t\t];\n\n\t\t// Make a PDO statement\n\t\t$statement2 = DB::prepare($sql2);\n\n\t\t// Execute\n\t\tDB::execute($statement2);\n\n\t\t// Get all the results of the statement into an array\n\t\t$results2 = $statement2->fetchAll();\n\t\tforeach ($results2 as $heading2 => $row2) {\n\t\t\t$item .= '<option value=\"' . $row2['id'] . '\">' . $row2['name'] . '</option>';\n\t\t}\n\t\treturn $item;\n\t}", "function getSearchTerm() {\n if(isset($_POST['searchStr']))\n return $_POST['searchStr'];\n else\n return \"\";\n }", "function getPostVal ($stringName, $autoDefault) {\r\n\t\treturn ((isset($_POST[$stringName])) ? $_POST[$stringName] : $autoDefault);\r\n\t}", "function getFieldPortalAddressState($val = null){\n\t\tinclude('axcelerate_link_array_list.php');\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_state');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_state');\n\t\t$tooltip = setToolTipNotification(\"state\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('state') === 'state' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><select name='state' id='sel_state1' class='srms-field \".(get_axl_req_fields('state') === 'state' ? 'input-select-required' : '').\"'><option value=''>-- Select -- </option>\";\n\t\t\tforeach ($states as $key => $value) {\n\t\t\t\t$form_ret .= \"<option value='\".$key.\"' \".($val == $value ? 'selected' : '').\">\".$value.\"</option>\";\n\t\t\t}\n\t\t\t$form_ret .= \"</select></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "function creditcard_type_pulldown($selected = '', $fieldname = 'form[type]')\n {\n $html = '<select name=\"' . $fieldname . '\" style=\"font-family: Verdana\">';\n $html .= '<option value=\"visa\"';\n if ($selected == 'visa')\n {\n $html .= ' selected=\"selected\"';\n }\n $html .= '>Visa</option>';\n $html .= '<option value=\"mc\"';\n if ($selected == 'mc')\n {\n $html .= ' selected=\"selected\"';\n }\n $html .= '>Mastercard</option>';\n $html .= '<option value=\"amex\"';\n if ($selected == 'amex')\n {\n $html .= ' selected=\"selected\"';\n }\n $html .= '>American Express</option>';\n $html .= '<option value=\"disc\"';\n if ($selected == 'disc')\n {\n $html .= ' selected=\"selected\"';\n }\n $html .= '>Discover</option>';\n $html .= '</select>';\n return $html;\n }", "public function queryString();", "public function __get($name)\n\t{\n\t\tif($this->_options===null)\n\t\t\t$this->_options=array();\n\n\t\tforeach($this->_control->getValidOptions() as $option)\n\t\t{\n\t\t\tif(0 == strcasecmp($name, $option) && isset($this->_options[$option]))\n\t\t\t{\n\t\t\t\treturn $this->_options[$option];\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public function get($query_var, $default_value = '')\n {\n }", "public function getParameter();", "public function getParameter();" ]
[ "0.59460056", "0.5849532", "0.5798364", "0.5750936", "0.5705044", "0.567603", "0.5673113", "0.56242007", "0.5619953", "0.5498264", "0.5461942", "0.544161", "0.544161", "0.54206955", "0.5383842", "0.5379858", "0.53681564", "0.535839", "0.53305423", "0.5313062", "0.53004086", "0.5276687", "0.5266816", "0.5254896", "0.5254896", "0.52480185", "0.52452797", "0.52427614", "0.5231389", "0.52016056", "0.5173266", "0.51664996", "0.51583654", "0.51577955", "0.515141", "0.51483315", "0.5148076", "0.51465696", "0.5128542", "0.5128542", "0.51229656", "0.51228106", "0.51179355", "0.5107282", "0.50917524", "0.5089184", "0.5088782", "0.5060901", "0.50574", "0.5055016", "0.5042072", "0.5038195", "0.5038195", "0.50154275", "0.50079113", "0.4997134", "0.499495", "0.4993739", "0.49934176", "0.49908477", "0.4987266", "0.49850142", "0.49826923", "0.49714676", "0.49656203", "0.49650946", "0.49613023", "0.4959239", "0.49590027", "0.49555945", "0.49551204", "0.49274227", "0.492648", "0.49259552", "0.4923706", "0.49234617", "0.4923315", "0.49003568", "0.48939934", "0.48872775", "0.48864523", "0.48859125", "0.4884515", "0.48828715", "0.48693994", "0.48693994", "0.48693994", "0.48676628", "0.4866636", "0.48657206", "0.48612273", "0.4857092", "0.4851486", "0.48499852", "0.48499474", "0.48491606", "0.4844387", "0.48399833", "0.48399833" ]
0.6573484
1
Get filter values from querystring
function GetFilterValues(&$fld) { $parm = substr($fld->FldVar, 2); if (ewrpt_IsHttpPost()) return; // Skip post back $got = FALSE; if (isset($_GET["sv1_$parm"])) { $fld->SearchValue = ewrpt_StripSlashes($_GET["sv1_$parm"]); $got = TRUE; } if (isset($_GET["so1_$parm"])) { $fld->SearchOperator = ewrpt_StripSlashes($_GET["so1_$parm"]); $got = TRUE; } if (isset($_GET["sc_$parm"])) { $fld->SearchCondition = ewrpt_StripSlashes($_GET["sc_$parm"]); $got = TRUE; } if (isset($_GET["sv2_$parm"])) { $fld->SearchValue2 = ewrpt_StripSlashes($_GET["sv2_$parm"]); $got = TRUE; } if (isset($_GET["so2_$parm"])) { $fld->SearchOperator2 = ewrpt_StripSlashes($_GET["so2_$parm"]); $got = TRUE; } return $got; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFilterFromRequest() {\n\t\t$_filter = array();\n\n\t\tif(isset($_REQUEST['filterSelect_0'])) {\n\n\n\t\t\t$_parse = true;\n\t\t\t$_count = 0;\n\n\t\t\twhile ($_parse) {\n\t\t\t\tif(isset($_REQUEST['filterSelect_'.$_count])) {\n\n\t\t\t\t\tif(isset($_REQUEST['filterLogic_'.$_count]) && $_REQUEST['filterLogic_'.$_count]=='OR') {\n\t\t\t\t\t\t$_logic = 'OR';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$_logic = 'AND';\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($_REQUEST['filterValue_'.$_count]) && trim($_REQUEST['filterValue_'.$_count])<>'') {\n\t\t\t\t\t\t$_filter[] = array(\n\t\t\t\t\t\t\t\t'logic' => $_logic,\n\t\t\t\t\t\t\t\t'field' => $_REQUEST['filterSelect_'.$_count],\n\t\t\t\t\t\t\t\t'operation' => $_REQUEST['filterOperation_'.$_count],\n\t\t\t\t\t\t\t\t'value' => $_REQUEST['filterValue_'.$_count]\n\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t$_count++;\n\t\t\t\t} else {\n\t\t\t\t\t$_parse = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $_filter;\n\t}", "public function getUriParams()\n {\n $values = array();\n $string = parse_url(filter_input(INPUT_SERVER, 'REQUEST_URI'));\n if (isset($string['query'])) {\n $exp = explode('&', $string['query']);\n $count = count($exp);\n for ($i = 0; $i < $count; $i++) {\n $value = explode('=', $exp[$i]);\n $values[$value[0]] = self::setAntiInjection($value[1]);\n }\n }\n return $values;\n }", "function get_current_filters () \n{\n if (count($_GET) < 1) \n return array();\n \n foreach ($_GET as $field_name => $value) {\n if (strlen($value) < 1) continue;\n $filters[$field_name] = addslashes($value);\n }\n \n unset($filters[w]);\n \n return $filters;\n}", "function getParams()\n{\n $queryParams = array();\n $params = filter_input_array(INPUT_GET);\n if ($params) {\n foreach (array('page', 'pageSize', 'orderBy', 'fields', 'searchId') as $term) {\n if (filter_input(INPUT_GET, $term)) {\n $queryParams[$term] = filter_input(INPUT_GET, $term);\n unset($params[$term]);\n }\n }\n \n $queryParams['filter'] = http_build_query($params, null, ':');\n }\n \n return $queryParams;\n}", "public function get_filters_query_params() {\n\n\t\t$params = [\n\t\t\t'search' => $this->get_filtered_search_parts(),\n\t\t\t'status' => $this->get_filtered_status(),\n\t\t\t'date' => $this->get_filtered_dates(),\n\t\t];\n\n\t\treturn array_filter(\n\t\t\t$params,\n\t\t\tfunction ( $v ) {\n\n\t\t\t\treturn $v !== false;\n\t\t\t}\n\t\t);\n\t}", "public function queryParams();", "public function getQueryParams() {}", "public function getURLQuery() {\n\t\t$query = array();\n\t\tif (Request::getGET('key')) {\n\t\t\t$query['key'] = Request::getGET('key');\n\t\t}\n\t\treturn $query;\n\t}", "private function getQueryParams()\n {\n $documentType = $this->getConfig()->getDocumentType();\n $params = [\n 'page' => \\get_query_var('paged') ? \\get_query_var('paged') : 1,\n 'document_types' => [$this->getConfig()->getDocumentType()],\n ];\n\n $params = apply_filters('swiftype_search_params', $params);\n\n $facetsFields = $this->getFacetFields();\n\n if (!empty($facetsFields)) {\n $facetsFields = array_merge($facetsFields, !empty($params['facets'][$documentType]) ? $params['facets'][$documentType] : []);\n $params['facets'][$documentType] = array_unique($facetsFields);\n foreach ($facetsFields as $field) {\n if (!empty($_GET['st-filter-' . $field])) {\n $params['filters'][$documentType][$field] = \\sanitize_text_field($_GET['st-filter-' . $field]);\n }\n }\n }\n\n return $params;\n }", "public function getParams(){\n if( !empty($this->uri['query']) ):\n parse_str($this->uri['query'], $this->params);\n return $this->params;\n endif;\n }", "public function getStoredQueryParams();", "function getQueryParams()\n {\n $queryString = $_SERVER['QUERY_STRING'];\n $queryArray = explode('&', $queryString);\n $response = array();\n foreach ($queryArray as $query) {\n $query = explode('=', $query);\n $response[$query[0]] = $query[1];\n }\n return $response;\n }", "private function getQueryString(): array\n {\n parse_str($this->request->getUri()->getQuery(), $queryString);\n\n if (isset($queryString['p'])) {\n unset($queryString['p']);\n }\n\n return $queryString;\n }", "public function getFilterParameters(): array;", "private function detectQueryParams()\n {\n $uri = new Uri('http://example.org'.$this->getRequestTarget());\n parse_str($uri->getQuery(), $params);\n return array_merge($_GET, $params);\n }", "public function getQuery() {\n\t\t$queries = $_SERVER['QUERY_STRING'];\n\t\t$queries = explode('&', $queries);\n\t\t$ret = array();\n\t\tforeach($queries as $q) {\n\t\t\t$q_exp = explode('=', $q);\n\t\t\t$ret[$q_exp[0]] = isset($q_exp[1]) ? $q_exp[1] : null;\n\t\t}\n\t\treturn $ret;\n\t}", "public function getQueryString(): array\n {\n\n $buffer = explode('?', $_SERVER[\"REQUEST_URI\"]);\n\n $variable = explode('&', array_pop($buffer));\n\n $array_variable = [];\n\n foreach ($variable as $value) {\n\n $items = explode('=', $value);\n $array_variable[array_shift($items)] = array_pop($items);\n }\n\n return $array_variable;\n }", "function search_request_filter($query_vars) {\n if (isset($_GET['s']) && empty($_GET['s'])) {\n $query_vars['s'] = ' ';\n }\n\n return $query_vars;\n}", "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}", "public static function getFilters() {\n\t\t$filters = new stdClass();\n\n\t\t$filters->offset = array_key_exists('offset', $_GET) ? intval($_GET['offset']) : 0;\n\t\t$filters->count = array_key_exists('count', $_GET) ? intval($_GET['count']) : 100;\n\n\t\treturn $filters;\n\t}", "public function parse_query_vars()\n {\n }", "function parseGetParams()\n {\n $this->parameters = array();\n\n $uriParts = explode('?', $this->userURI);\n $itemCount = count($uriParts);\n if ($itemCount == 0)\n {\n return;\n }\n\n //remove last item if it's empty\n if (isset($uriParts[$itemCount - 1]) && $uriParts[$itemCount - 1] == '')\n {\n array_pop($uriParts);\n }\n \n //remove first item if it's empty\n if (isset($uriParts[0]) && $uriParts[0] == '')\n {\n array_shift($uriParts);\n }\n\n //if has no valid item then return\n if (count($uriParts) == 0)\n {\n return;\n }\n writeLog(print_r($uriParts, true));\n \n foreach($uriParts as $inputData)\n {\n $data = html_entity_decode($inputData);\n $pair = explode('=', $data);\n\n if (count($pair)>1)\n {\n $this->parameters[$pair[0]] = $pair[1];\n }\n }\n \n writeLog(\"params = \".print_r($this->parameters, true));\n }", "protected function getQueryParams() {\n\t\treturn $this->request->getQueryParams();\n\t}", "private function getQueryParams (): array\r\n {\r\n return $_GET;\r\n }", "function queryStringToArray($string) {\n $url = explode('&', $string);\n /* Request variable to store all parameters */\n $request = array();\n foreach ($url as $value) {\n $new = explode('=', $value);\n $request[$new[0]] = $new[1];\n }\n return $request;\n}", "public function getQueryParams() {\n if ($pos = strpos ( $this->url, '?' )) {\n $queryStr = substr ( $this->url, $pos + 1 );\n $params = array ();\n parse_str ( $queryStr, $params );\n return $params;\n }\n return array ();\n }", "public function getQueryStrParams ()\n {\n return $this->getParams(\"string\");\n }", "private static function filter_params($path){\n\t\tforeach($path as $key => $value){\n\t\t\tif(strpos($path[$key],\"?\") !== false) $path[$key] = substr($path[$key],0,strpos($path[$key],\"?\"));\n\t\t\tif(empty($path[$key])){ \n\t\t\t\tunset($path[$key]);\n\t\t\t}\n\t\t}\n\t\treturn $path;\n\t}", "protected function filterParams()\n {\n }", "private function getParameters()\n {\n $inputParametersStr = \"\";\n\n foreach ($_GET as $key => $input) {\n\n if(empty($input)){\n continue ; //ignore empty field \n }\n $inputParametersStr .= \"$key=\" . urlencode($input) . \"&\"; // convert string into url syntax.\n\n }\n $inputParametersStr = trim($inputParametersStr, '&'); // separate parameters by \"&\" .\n\n return $inputParametersStr ;\n }", "public function getGetValues()\n {\n // Define the check for params\n $get_check_array = array(\n // Action\n 'action' => array('filter' => FILTER_SANITIZE_STRING),\n // Id of current row\n 'vraagId' => array('filter' => FILTER_VALIDATE_INT)\n );\n // Get filtered input:\n $inputs = filter_input_array(INPUT_GET, $get_check_array);\n // RTS\n return $inputs;\n }", "public function parseGetData(): array {\n $data = (array)$this->getRequest()->getQuery();\n $data = $this->sanitizeData($data);\n\n return $data;\n }", "public function cleanGet($filter='string'){\n return $this->purify($_GET,$filter);\n }", "public function getParams()\n {\n $shift = array('CONTROLLER', 'ROUTE_CONTROLLER', 'ACTION', 'ROUTE_ACTION');\n $values = array();\n foreach ($this->joUrl as $key => $value) {\n if (!in_array($key, $shift)) {\n $values[] = self::setAntiInjection($value);\n }\n }\n return $values;\n }", "public function getQueryParams()\n {\n $query = $this->getUrl(true)->getQuery();\n $params = [];\n if ($query) {\n parse_str($query, $params);\n }\n return array_merge($params, $this->queryParams);\n }", "public static function getQuery()\n {\n return ServiceLocatorService::getServiceLocator()->get('Request')->getQuery()->toArray();\n }", "public static function filterFormAction() {\n\n $query = Request::segments();\n\n\n foreach ($query as $k => $q) {\n if (preg_match(\"/page-[0-9]+$/\", $q, $match)) {\n unset($query[$k]);\n };\n }\n $query = implode('/', $query);\n $url = Request::root() . \"/$query/\";\n\n return $url;\n }", "public function getFilterArray() {\n\t\t$filter = null;\n\t\tif (isset($_GET['sub_category'])) {\n\t\t\t$filter = array('category' => array($_GET['sub_category']));\n\t\t} else if (isset($_GET['category'])) {\n\t\t\t$filter = array('category' => array($_GET['category']));\n\n\t\t\t$subcategory_list = $this->category_model->get_sub_category_list_by_category_id($_GET['category'], array('id'));\n\t\t\tforeach ($subcategory_list as $subcategory) {\n\t\t\t\tarray_push($filter['category'], $subcategory->id);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($_GET['course'])){\n\t\t\t\t$filter['title'] = $_GET['course'];\n\t\t}\n\n\t\tif (isset($_GET['search'])) {\n\t\t\t$filter['search_text'] = $_GET['search'];\n\t\t}\n\n\t\t\n\t\treturn $filter;\n\t}", "public function queryString();", "function readfilter()\n\t{\n\t\t$field = $this->input->post(\"namafield\");\n\t\t$value = $this->input->post(\"valfilter\");\n\n\t\treturn array(\n\t\t\t\t\"field\" => $field,\n\t\t\t\t\"value\" => $value\n\t\t\t);\n\t}", "public function getFilter(): string;", "public function get_query_params()\n {\n }", "public function getFilterValues()\n {\n return $this->filter_values;\n }", "function fabric_request_filter($query_vars) {\n if (isset($_GET['s']) && empty($_GET['s'])) {\n $query_vars['s'] = ' ';\n }\n\n return $query_vars;\n}", "public function getQueryParams()\n {\n if ($this->queryParams) {\n return $this->queryParams;\n }\n\n if ($this->uri === null) {\n return [];\n }\n\n parse_str($this->uri->getQuery(), $this->queryParams); // <-- URL decodes data\n\n return $this->queryParams;\n }", "public function getURLQuery() {\n\t\t$query = array();\n\t\tif (Request::getGET('type') == 'login-confirmation') {\n\t\t\t$query['type'] = 'login-confirmation';\n\t\t\tif (Request::getGET('mode') == 'iframe')\n\t\t\t\t$query['mode'] = 'iframe';\n\t\t}\n\t\treturn $query;\n\t}", "private function filterOptions(){\n $request = new Request();\n\n $key = $request->query->get('key') ? $this->global_helper_service->cleanDataInput($request->query->get('key')) : '';\n $date_range = $request->query->get('date_range') ? $request->query->get('date_range') : '';\n\n $array_filters = array();\n\n $array_filters['key'] = array(\n 'type' => 'input',\n 'title' => 'Search',\n 'default_value' => $key\n );\n\n $array_filters['date_range'] = array(\n 'type' => 'date_picker',\n 'title' => 'Date Range',\n 'options' => '',\n 'default_value' => $date_range\n );\n\n return $this->admincp_service->handleElementFormFilter($array_filters);\n }", "public function global_filtering()\n {\n // filtering $_GET\n if (is_array(ctx()->getRequest()->get()) && ! empty(ctx()->getRequest()->get()))\n {\n foreach (ctx()->getRequest()->get() as $key => $val)\n ctx()->getRequest()->get($this->_clean_input_keys($key) , $this->_clean_input_data($val));\n }\n\n // filtering $_POST\n if (is_array(ctx()->getRequest()->post()) && ! empty(ctx()->getRequest()->post()))\n {\n foreach (ctx()->getRequest()->post() as $key => $val){\n ctx()->getRequest()->post($this->_clean_input_keys($key), $this->_clean_input_data($val));\n }\n }\n\n\n // filtering $_COOKIE\n if (is_array(ctx()->getRequest()->cookie()) && ! empty(ctx()->getRequest()->cookie()))\n {\n foreach (ctx()->getRequest()->cookie() as $key => $val)\n ctx()->getRequest()->cookie($this->_clean_input_keys($key), $this->_clean_input_data($val));\n }\n\n // filtering $_REQUEST\n if (is_array(ctx()->getRequest()->request()) && ! empty(ctx()->getRequest()->request()))\n {\n foreach (ctx()->getRequest()->request() as $key => $val){\n ctx()->getRequest()->request($this->_clean_input_keys($key), $this->_clean_input_data($val));\n }\n }\n }", "private static function getGetParams()\n\t{\n\t\treturn $_GET;\n\t}", "function fs_request_filter( $query_vars ) {\r\n\tif ( isset( $_GET['s'] ) && empty( $_GET['s'] ) ) {\r\n\t\t$query_vars['s'] = ' ';\r\n\t}\r\n\r\n\treturn $query_vars;\r\n}", "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 formParams() {\n\t\tswitch($this->method()) {\n\t\tcase 'GET':\n\t\tcase 'DELETE':\n\t\tcase 'HEAD':\n\t\tcase 'OPTIONS':\n\t\tcase 'TRACE':\n\t\t\t$query_str = $this->queryString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// TODO Validate Content-Type\n\t\t\t$query_str = $this->getBody();\n\t\t}\n\t\tparse_str($query_str, $result);\n\t\treturn $result;\n\t}", "public function getRequestParams();", "protected function getResultParams() {\n\t\t\tif (!($intNumResults = (int) $this->objUrl->getVariable('num'))) {\n\t\t\t\t$intNumResults = 10;\n\t\t\t}\n\t\t\tif (!($intPage = (int) $this->objUrl->getVariable('page'))) {\n\t\t\t\t$intPage = 1;\n\t\t\t}\n\t\t\t\n\t\t\t$arrFilters = array(\n\t\t\t\t'Conditions' => array(),\n\t\t\t\t'Limit' => $intNumResults, \n\t\t\t\t'Offset' => ($intPage - 1) * $intNumResults\n\t\t\t);\n\t\t\t\n\t\t\tif ($this->blnInternal) {\n\t\t\t\t$arrInternal = explode(',', $this->objUrl->getFilter('internal'));\n\t\t\t\tif (in_array('nocache', $arrInternal)) {\n\t\t\t\t\t$this->blnNoCache = true;\n\t\t\t\t}\n\t\t\t\tif (in_array('banned', $arrInternal)) {\n\t\t\t\t\t$arrFilters['AutoFilterOff'] = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$arrInternal = array();\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->objUrl->getFilter('include') == 'grouped') {\n\t\t\t\t$arrFilters['Grouped'] = true;\n\t\t\t}\n\t\t\t\n\t\t\treturn compact('arrFilters', 'arrInternal');\n\t\t}", "protected function getQueryStringParamsSepatator () {\n\t\tif ($this->queryParamsSepatator === NULL) {\n\t\t\t$response = \\MvcCore\\Application::GetInstance()->GetResponse();\n\t\t\tif ($response->HasHeader('Content-Type')) {\n\t\t\t\t$this->queryParamsSepatator = $response->IsXmlOutput() ? '&amp;' : '&';\n\t\t\t} else {\n\t\t\t\t$viewClass = $this->application->GetViewClass();\n\t\t\t\t$viewDocType = $viewClass::GetDoctype();\n\t\t\t\t$this->queryParamsSepatator = (\n\t\t\t\t\tstrpos($viewDocType, \\MvcCore\\IView::DOCTYPE_XML) !== FALSE ||\n\t\t\t\t\tstrpos($viewDocType, \\MvcCore\\IView::DOCTYPE_XHTML) !== FALSE\n\t\t\t\t) ? '&amp;' : '&';\n\t\t\t}\n\t\t}\n\t\treturn $this->queryParamsSepatator;\n\t}", "public function getQueryString() {\n\t\t\n\t}", "function getURLString(){\n $url = $_SERVER['REQUEST_URI'];\n $aurl = explode('?', $url);\n if(count($aurl) > 1)\n { \n $query = $aurl[1];\n parse_str($query, $params);\n return $params;\n }\n return array();\n}", "function getQueryString(){\n\tglobal $query_string;\n\t$query_string = array();\n\t$new_query_string = array();\n\tif(isset($_SERVER) && isset($_SERVER['REQUEST_URI'])){\n\t\tif(strpos($_SERVER['REQUEST_URI'], '?')){\n\t\t\t$query_string = explode('?', $_SERVER['REQUEST_URI']);\n\n\t\t\tif(strpos($query_string[1], '&')){\n\t\t\t\t$query_string = explode('&', $query_string[1]);\n\t\t\t\tforeach ($query_string as $value) {\n\t\t\t\t\t$value_array = explode('=', $value);\n\t\t\t\t\t$new_query_string[urldecode($value_array[0])] = urldecode($value_array[1]);\n\t\t\t\t}\n\t\t\t\t$query_string = $new_query_string;\n\t\t\t}else{\n\t\t\t\t$value_array = explode('=', $query_string[1]);\n\t\t\t\t$new_query_string[urldecode($value_array[0])] = urldecode($value_array[1]);\n\t\t\t}\n\t\t}\n\t}\n\t$query_string = $new_query_string;\n}", "private static function _getFilter() {}", "function get_query_array() {\r\n\t\t\t$parts = parse_url( $this->get_current_url() );\r\n\t\t\tif ( isset( $parts['query'] ) ) {\r\n\t\t\t\tparse_str( $parts['query'], $query );\r\n\t\t\t\treturn $query;\r\n\t\t\t}\r\n\r\n\t\t\treturn array();\r\n\t\t}", "public function getQueryParameters(): array;", "abstract protected function getFilters();", "public function getFilter();", "public function getFilter();", "public function getFilterValue(): string;", "private function defineFilters() {\n\n // init local filters variable as empty array\n $filters = [];\n\n // parse each filter to apply\n // and add the valid once to filters\n\n // filters by name\n if (isset($_GET['s'])) {\n\n $filters['name'] = $_GET['s'];\n\n }\n\n // filter by categories\n if (isset($_GET['c'])) {\n\n $categories = explode(\"_\", $_GET['c']);\n foreach ($categories as $key => $value) {\n if (is_numeric($value)) {\n $filters['categories'][] = $value;\n }\n }\n\n }\n\n // filter by areas\n if (isset($_GET['a'])) {\n\n $areas = explode(\"_\", $_GET['a']);\n foreach ($areas as $key => $value) {\n if (is_numeric($value)) {\n $filters['areas'][] = $value;\n }\n }\n\n }\n\n // Check if any filter has been set\n\n if (count($filters)>0) {\n\n $this->filters = $filters;\n return true;\n\n }\n\n\n return false;\n\n }", "public static function getAllURLParams()\n\t{\n\t\treturn explode('/', $_SERVER['REQUEST_URI']);\n\t}", "public function getRequestParams()\n {\n return array_merge(\n array(\n 'page' => $this->getPage(),\n 'pageSize' => $this->getPageSize(),\n 'filter' => urldecode($this->getFiltersString())\n ),\n $this->getAdditionalParams()\n );\n }", "function getParams($input) {\n $allowedFields = ['post_id', 'user_name', 'content'];\n $filterParams = [];\n foreach($input as $param => $value){\n if(in_array($param, $allowedFields)){\n $filterParams[] = \"$param=:$param\";\n }\n }\n return implode(\", \", $filterParams);\n}", "function parse_query($str) {\n \n $str = html_entity_decode($str);\n\n $arr = array();\n \n $pairs = explode('&', $str);\n \n foreach ($pairs as $i) {\n list($name,$value) = explode('=', $i, 2);\n\n if (isset($arr[$name])) {\n if (is_array($arr[$name])) {\n $arr[$name][] = $value;\n }\n else {\n $arr[$name] = array($arr[$name], $value);\n }\n }\n else {\n $arr[$name] = $value;\n }\n }\n return $arr;\n }", "private function _parseBFilterParam()\n\t{\n $map = array('a' => 'attribute', 'm' => 'manufacturer', 's' => 'stock_status', 'f' => 'filter', 'o' => 'option', 'r' => 'rating', 'c' => 'category');\n \n if (!isset($this->request->get['bfilter'])) {\n \n return;\n }\n\t\t$bfilter = $this->request->get['bfilter'];\n\n\t\t$params = explode(';', $bfilter);\n \n\t\tforeach ($params as $param) \n {\n if (!empty($param)) \n {\n $p = explode(':', $param);\n $pName = $p[0];\n $pValue = $p[1];\n if ($pName === 'price') \n {\n $p = explode('-', $pValue);\n if ((int)$p[0] > 0 || (int)$p[1] > 0) {\n $this->conditions->price = new stdClass();\n $this->conditions->price->min = null;\n $this->conditions->price->max = null;\n $this->conditions->price->inputMin = null;\n $this->conditions->price->inputMax = null;\n }\n if ((int)$p[0] > 0) {\n $this->conditions->price->min = $this->currency->convert($p[0], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMin = $p[0];\n }\n if ((int)$p[1] > 0) {\n $this->conditions->price->max = $this->currency->convert($p[1], $this->currency->getCode(), $this->config->get('config_currency'));\n $this->conditions->price->inputMax = $p[1];\n }\n } \n elseif ($pName === 'rating') \n {\n $this->conditions->rating = explode(',', $pValue);\n } \n elseif ($pName === 'search')\n {\n $this->conditions->search = $pValue;\n $this->searchNameString = $pValue;\n $this->searchTagString = $pValue;\n $this->searchDescriptionString = $pValue;\n }\n else \n {\n $type = $map[substr($pName, 0, 1)];\n $groupId = (int)substr($pName, 1);\n if ($type) {\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n if (isset($p[0]) && isset($p[1])) {\n $this->conditions->{$type}[$groupId] = array('min' => $p[0], 'max' => $p[1]);\n }\n } else {\n $this->conditions->{$type}[$groupId] = explode(',', $pValue);\n }\n\n if ($type !== 'rating') {\n $type = strtoupper($type);\n if (!isset($this->aggregate[$type])) {\n $this->aggregate[$type] = array();\n }\n if (strpos($pValue, '-') !== false) {\n $p = explode('-', $pValue);\n $range = $this->_getSliderIntermediateValues($type, $groupId, $p[0], $p[1]);\n if (!empty($range)) {\n $this->aggregate[$type][$groupId] = $range;\n }\n } else {\n $this->aggregate[$type][$groupId] = explode(',', $pValue);\n }\n }\n }\n }\n }\n\t\t}\n\t}", "public function getQueryParameters(): array\n {\n return $this->filterParameters(array_merge([\n 'upc' => $this->upc(),\n 'page' => $this->page(),\n 'ingr' => $this->ingredient(),\n 'calories' => $this->calories(),\n 'category' => $this->category(),\n 'health' => $this->healthLabel(),\n 'categoryLabel' => $this->categoryLabel(),\n 'nutrition-type' => $this->nutritionType(),\n ], $this->getAuthenticationParameters()));\n }", "private function get_query_string()\n {\n $query_string = '';\n foreach (explode('&', $_SERVER['QUERY_STRING']) as $key)\n {\n if( !preg_match('/org_openpsa_qbpager/', $key)\n && $key != '')\n {\n $query_string .= '&amp;'.$key;\n }\n }\n return $query_string;\n }", "public function explodeRequestParts()\n {\n $requestParts = null;\n\n if ( isset($_GET['params']) && !empty($_GET['params']) ) {\n $requestParts = explode( '/', filter_var( rtrim( $_GET['params'], '/' ), FILTER_SANITIZE_URL ) );\n }\n\n return $requestParts;\n }", "public function global_filter_field_expr()\n {\n\n // filtering $_GET\n if (is_array(ctx()->getRequest()->get()) && ! empty(ctx()->getRequest()->get()))\n {\n foreach (ctx()->getRequest()->get() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->get($key, $this->_clean_input_field_expr($val));\n }\n }\n\n }\n\n // filtering $_POST\n if (is_array(ctx()->getRequest()->post()) && ! empty(ctx()->getRequest()->post()))\n {\n foreach (ctx()->getRequest()->post() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->post($key, $this->_clean_input_field_expr($val));\n }\n }\n }\n\n // filtering $_COOKIE\n if (is_array(ctx()->getRequest()->cookie()) && ! empty(ctx()->getRequest()->cookie()))\n {\n foreach (ctx()->getRequest()->cookie() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->cookie($key, $this->_clean_input_field_expr($val));\n }\n\n }\n }\n\n\n // filtering $_REQUEST\n if (is_array(ctx()->getRequest()->request()) && ! empty(ctx()->getRequest()->request()))\n {\n foreach (ctx()->getRequest()->request() as $key => $val){\n $key=$this->_clean_input_keys($key);\n if($key){\n ctx()->getRequest()->request($key, $this->_clean_input_field_expr($val));\n }\n }\n }\n\n }", "private function getSearchConditions()\n {\n $searchConditions = [];\n\n $userIds = $this->request->get('ids') ?? [];\n if ($userIds) {\n $searchConditions['id'] = $userIds;\n }\n\n $email = $this->request->get('email') ?? '';\n if ($email) {\n $searchConditions['email'] = $email;\n }\n\n return $searchConditions;\n }", "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}", "function allowed_get_params($allowed_params = []){\r\n //$allowed_array will contain only allowed url parameters\r\n $allowed_array = [];\r\n foreach($allowed_params as $param){\r\n if(isset($_GET[$param])){\r\n $allowed_array[$param] = $_GET[$param];\r\n }else{\r\n $allowed_array[$param] = NULL;\r\n }\r\n }\r\n return $allowed_array;\r\n\r\n}", "public function getQueryParams()\n {\n return $this->get;\n }", "private function parseParams() : array\n {\n $querySting = (parse_url($_SERVER['QUERY_STRING']))['path'];\n parse_str($querySting, $params);\n return $params;\n }", "function filter_to_url ($filter) \n{\n /* Turns a filter into a usable URL, must provide url formatted $filter in \n order to work properly. Use the translate_filter function. */\n \n foreach ($filter as $key=>$param) $url[] = $key.'='.$param;\n $url = implode('&',$url);\n return '?'.$url;\n}", "private function getParams (Request $request)\n {\n // Step 1: Filter\n $datas = array_filter($request->getParsedBody(), function ($key) {\n return in_array($key, ['username', 'password']);\n }, ARRAY_FILTER_USE_KEY);\n return $datas;\n }", "public function get_query_args()\n {\n }", "public function get_query_args()\n {\n }", "public function get_query_args()\n {\n }", "public function get_query_args()\n {\n }", "public function getQueryString():string;", "function getParams($input)\n {\n $filterParams = [];\n foreach($input as $param => $value)\n {\n $filterParams[] = \"$param=:$param\";\n }\n return implode(\", \", $filterParams);\n }", "private function filter()\n {\n if ($this->allowsFilter()) {\n if ($this->hasFilters()) {\n $tmp = [];\n foreach ($this->filters as $filter) {\n // check, if it is a \"forbidden\" query parameter\n if ($this->isExcludedParameter($filter['key'])) {\n continue;\n }\n $tmp[] = $filter;\n }\n\n $this->filters = $tmp;\n\n return $this->operator->filter($this->filters);\n }\n }\n }", "public function getFilterInput();", "private function setFilter()\n\t{\n\t\t// get filter values\n\t\t$this->filter['language'] = ($this->getParameter('language', 'array') != '') ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();\n\t\t$this->filter['application'] = $this->getParameter('application');\n\t\t$this->filter['module'] = $this->getParameter('module');\n\t\t$this->filter['type'] = $this->getParameter('type', 'array');\n\t\t$this->filter['name'] = $this->getParameter('name');\n\t\t$this->filter['value'] = $this->getParameter('value');\n\n\t\t// build query for filter\n\t\t$this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);\n\t}", "public static function GET_FILTER(): array\n\t{\n\t\treturn self::$filters;\n\t}", "protected function getFilteredInput(): array\n {\n return (new Filter($this->getParams(), [\n Lines::_HSRC => FILTER_SANITIZE_STRING,\n Stations::_NAME => FILTER_SANITIZE_STRING,\n self::_LIMIT => FILTER_SANITIZE_NUMBER_INT,\n self::_PAGE => FILTER_SANITIZE_NUMBER_INT,\n ]))->process()->toArray();\n }", "public function getParameters()\n {\n $parameters = \"\";\n \n foreach($this->params as $param => $value)\n {\n $parameters .= urlencode($param.\"=\".$value).\";\"; \n }\n \n $parameters = trim($parameters, \";\");\n \n return($parameters);\n }", "function _load_get_params(&$app, &$c) {\n\t\t$params =& $c->param('app.view_http.request.params');\n\t\tif (is_array($params)) {\n\t\t\tforeach($params as $p_name => $p_value) {\n\t\t\t\t$this->_http->addQueryString($p_name, $p_value);\n\t\t\t}\n\t\t}\n\t}", "function searchRequestFilter( $query_vars ) {\n if( isset( $_GET['s']) && $_GET['s'] == '' ) {\n wp_redirect( site_url() );\n exit;\n }\n return $query_vars;\n}", "function add_query_vars_filter($vars) {\n $vars[] = \"sddsref-id\";\n $vars[] = \"src\";\n return $vars;\n}", "function get_req_vars( array $arr_input){\n\t\t\t$ret = array();\n\t\tforeach($arr_input as $k => $v){\n\t\t\tif(isset($_GET[$k])&&strlen($_GET[$k])){\n\n\t\t\t\t$ret[$k] = $k.'='.$_GET[$k];\n\t\t\t\n\t\t\t}\n\t\t\telse{\n\n\t\t\t\t$ret[$k] = $k.'='.$v;\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn implode('&',$ret);\n\t\t\n\t\t}", "private static function getParams(): array\n {\n $getParams = [];\n\n if (!empty($_GET)) {\n $getParams = filter_input_array(INPUT_GET, FILTER_DEFAULT);\n }\n\n return $getParams;\n }" ]
[ "0.7052815", "0.7041454", "0.70157313", "0.6880527", "0.67673594", "0.67673075", "0.6747433", "0.66933936", "0.6651317", "0.66152966", "0.6592551", "0.655804", "0.65413773", "0.65355533", "0.65230286", "0.6438991", "0.63998324", "0.6354433", "0.6333317", "0.63209355", "0.6294446", "0.6242016", "0.62373704", "0.6214149", "0.62128264", "0.6208967", "0.6198323", "0.61978334", "0.6193394", "0.61929095", "0.61875427", "0.6176547", "0.61763227", "0.6150404", "0.6145255", "0.6131012", "0.6129897", "0.6125298", "0.61104363", "0.6086246", "0.6072749", "0.606828", "0.6035554", "0.603081", "0.6000686", "0.5991588", "0.59537154", "0.59508467", "0.59497017", "0.5938909", "0.59307367", "0.59263927", "0.5909345", "0.5905618", "0.58802384", "0.5872347", "0.5861002", "0.58598065", "0.58423615", "0.58421624", "0.583857", "0.5834786", "0.5833196", "0.5833196", "0.58236575", "0.58119947", "0.5806355", "0.58009076", "0.579426", "0.57927245", "0.57879966", "0.57864076", "0.5786396", "0.5785449", "0.5775571", "0.57705873", "0.57669723", "0.5765577", "0.5760037", "0.57454115", "0.573857", "0.5738544", "0.5737586", "0.5737586", "0.5737586", "0.5737586", "0.5736651", "0.5731714", "0.5728258", "0.5722941", "0.57172453", "0.5714059", "0.5703284", "0.56913185", "0.56910664", "0.5688544", "0.5688298", "0.5686855", "0.5685065" ]
0.66532135
9
Set default ext filter
function SetDefaultExtFilter(&$fld, $so1, $sv1, $sc, $so2, $sv2) { $fld->DefaultSearchValue = $sv1; // Default ext filter value 1 $fld->DefaultSearchValue2 = $sv2; // Default ext filter value 2 (if operator 2 is enabled) $fld->DefaultSearchOperator = $so1; // Default search operator 1 $fld->DefaultSearchOperator2 = $so2; // Default search operator 2 (if operator 2 is enabled) $fld->DefaultSearchCondition = $sc; // Default search condition (if operator 2 is enabled) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ApplyDefaultExtFilter(&$fld) {\n\t\t$fld->SearchValue = $fld->DefaultSearchValue;\n\t\t$fld->SearchValue2 = $fld->DefaultSearchValue2;\n\t\t$fld->SearchOperator = $fld->DefaultSearchOperator;\n\t\t$fld->SearchOperator2 = $fld->DefaultSearchOperator2;\n\t\t$fld->SearchCondition = $fld->DefaultSearchCondition;\n\t}", "function ApplyDefaultExtFilter(&$fld) {\n\t\t$fld->SearchValue = $fld->DefaultSearchValue;\n\t\t$fld->SearchValue2 = $fld->DefaultSearchValue2;\n\t\t$fld->SearchOperator = $fld->DefaultSearchOperator;\n\t\t$fld->SearchOperator2 = $fld->DefaultSearchOperator2;\n\t\t$fld->SearchCondition = $fld->DefaultSearchCondition;\n\t}", "public function attachDefaultFilters() {\n\n /**\n * It's possible to extend what filters the content is subjected to.\n * By default, this is a URL filter, and a PATH filter. Other filters\n * can be implemented and attached if other conversions are also required.\n */\n $this->attachFilter('URL', 'TigerfishDTLReplaceHrefAndSrc');\n $this->filters['URL']->from($this->fromValue);\n $this->filters['URL']->to($this->toValue);\n $this->filters['URL']->relative($this->relative);\n $this->filters['URL']->https($this->https);\n $this->filters['URL']->debugMode($this->debug);\n\n $this->attachFilter('PATH', 'TigerfishDTLReplacePaths');\n $this->filters['PATH']->from($this->fromValue);\n $this->filters['PATH']->to($this->toValue);\n $this->filters['PATH']->relative($this->relative);\n $this->filters['PATH']->https($this->https);\n $this->filters['PATH']->debugMode($this->debug);\n\n }", "function LoadDefaultFilters() {\n\t\tglobal $dealers_reports;\n\n\t\t/**\n\t\t* Set up default values for non Text filters\n\t\t*/\n\n\t\t// Field StartDate\n\t\t$dealers_reports->StartDate->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$dealers_reports->StartDate->DropDownValue = $dealers_reports->StartDate->DefaultDropDownValue;\n\n\t\t/**\n\t\t* Set up default values for extended filters\n\t\t* function SetDefaultExtFilter(&$fld, $so1, $sv1, $sc, $so2, $sv2)\n\t\t* Parameters:\n\t\t* $fld - Field object\n\t\t* $so1 - Default search operator 1\n\t\t* $sv1 - Default ext filter value 1\n\t\t* $sc - Default search condition (if operator 2 is enabled)\n\t\t* $so2 - Default search operator 2 (if operator 2 is enabled)\n\t\t* $sv2 - Default ext filter value 2 (if operator 2 is enabled)\n\t\t*/\n\n\t\t/**\n\t\t* Set up default values for popup filters\n\t\t*/\n\t}", "function LoadDefaultFilters() {\n\t\tglobal $deals_details;\n\n\t\t/**\n\t\t* Set up default values for non Text filters\n\t\t*/\n\n\t\t// Field dealer\n\t\t$deals_details->dealer->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->dealer->DropDownValue = $deals_details->dealer->DefaultDropDownValue;\n\n\t\t// Field date_start\n\t\t$deals_details->date_start->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->date_start->DropDownValue = $deals_details->date_start->DefaultDropDownValue;\n\n\t\t// Field status\n\t\t$deals_details->status->DefaultDropDownValue = EWRPT_INIT_VALUE;\n\t\t$deals_details->status->DropDownValue = $deals_details->status->DefaultDropDownValue;\n\n\t\t/**\n\t\t* Set up default values for extended filters\n\t\t* function SetDefaultExtFilter(&$fld, $so1, $sv1, $sc, $so2, $sv2)\n\t\t* Parameters:\n\t\t* $fld - Field object\n\t\t* $so1 - Default search operator 1\n\t\t* $sv1 - Default ext filter value 1\n\t\t* $sc - Default search condition (if operator 2 is enabled)\n\t\t* $so2 - Default search operator 2 (if operator 2 is enabled)\n\t\t* $sv2 - Default ext filter value 2 (if operator 2 is enabled)\n\t\t*/\n\n\t\t/**\n\t\t* Set up default values for popup filters\n\t\t*/\n\t}", "public function setAdditionalFilter($dataProvider, $filter);", "function add_filters()\n {\n }", "public function register_filters() {\n\n\t\t}", "public function default_filters() {\n\t\tadd_filter( 'upload_mimes', array( $this, 'more_mimes' ) );\n\n\t\t// Live update when add new layouts (also their sidebars)\n\t\t// or add new positions into existed layouts\n\t\tadd_filter( 'kopa_get_option_layout_manager', array( $this, 'live_update_layout_manager' ), 10, 2 );\n\n\t\t/**\n\t\t * Disable help tab by default, determine its content later\n\t\t *\n\t\t * @see admin/class-kopa-admin.php\n\t\t * @since 1.0.0\n\t\t */\n\t\tadd_filter( 'kopa_enable_admin_help_tab', '__return_false' );\n\t}", "private function setFilter()\n\t{\n\t\t// get filter values\n\t\t$this->filter['language'] = ($this->getParameter('language', 'array') != '') ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();\n\t\t$this->filter['application'] = $this->getParameter('application');\n\t\t$this->filter['module'] = $this->getParameter('module');\n\t\t$this->filter['type'] = $this->getParameter('type', 'array');\n\t\t$this->filter['name'] = $this->getParameter('name');\n\t\t$this->filter['value'] = $this->getParameter('value');\n\n\t\t// build query for filter\n\t\t$this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);\n\t}", "protected function applyDefaultFiltering()\n\t{\n\t\tif (empty($this->filters) && !empty($this->defaultFilters)) {\n\t\t\t$this->filters = $this->defaultFilters;\n\t\t}\n\t}", "public function setFilter($filter){ }", "public function addFilters()\n {\n }", "public function setFilter(string $filter);", "private function setFilter()\n {\n $this->filter['value'] = $this->getParameter('value') == null ? '' : $this->getParameter('value');\n }", "public function addFilters() {\n\t\t\tadd_filter( 'muut_validate_setting', array( $this, 'validateSettings' ), 10, 2 );\n\t\t}", "function kses_init_filters()\n {\n }", "public function getDefaultFilterParameters(): array;", "public function setFilter($extension, $filterName)\n\t{\n\t\tif (isset($this->filters[$extension]) && in_array($filterName, $this->filters[$extension])) {\n\t\t\treturn $this;\n\t\t}\n\t\t$this->filters[$extension][] = $filterName;\n\t\treturn $this;\n\t}", "protected function init() {\n parent::init('search_template_filter');\n }", "function acf_enable_filter($name = '')\n{\n}", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "public function setFilter($arrFilter);", "public function setFilters()\n {\n if (class_exists('Twig_SimpleFilter')) {\n $class = 'Twig_SimpleFilter';\n } else {\n $class = 'Twig\\TwigFilter';\n }\n\n $filter_merge_str = new $class('merge_str', function ($attrs, array $options = array()) {\n $key = $options[0];\n $value = $options[1];\n\n if (array_key_exists($key, $attrs)) {\n $attrs[$key] = implode(' ', [$value, $attrs[$key]]);\n } else {\n $attrs[$key] = $value;\n }\n\n return $attrs;\n }, array('is_variadic' => true));\n\n $this->twig->addFilter($filter_merge_str);\n }", "function mgd_register_filter($name, $function)\n{\n $GLOBALS['midgard_filters'][\"x{$name}\"] = $function;\n}", "function rs_duotonefilters_init(){\n\n\tnew RsDuotoneFiltersBase();\n\t\n}", "public function setExtension($ext);", "function _activateFilterLevel( $objKey )\n {\n// FIXXME all filters that get registered before $tpl->setOption('filterLevel',x) will be lost !!!!\n// because of the following line!!!\n $this->_objectPool[$objKey]->unregisterFilter();\n $filterLevel = $this->_objectPool[$objKey]->getOption('filterLevel');\n if( $filterLevel > 0 )\n {\n require_once('HTML/Template/Xipe/Filter/TagLib.php');\n // pass the options used in the template class, so we set the same delimiters in the filter\n $tagLib = new HTML_Template_Xipe_Filter_TagLib($this->_objectPool[$objKey]->getOptions());\n $this->_objectPool[$objKey]->registerPrefilter(array(&$tagLib,'allPrefilters'),$filterLevel);\n\n require_once('HTML/Template/Xipe/Filter/Basic.php');\n $tplFilter = new HTML_Template_Xipe_Filter_Basic($this->_objectPool[$objKey]->getOptions());\n $this->_objectPool[$objKey]->registerPrefilter(array(&$tplFilter,'allPrefilters'),$filterLevel);\n $this->_objectPool[$objKey]->registerPostfilter(array(&$tplFilter,'allPostfilters'),$filterLevel);\n }\n }", "function SetFilter ( $cFilterExp )\n{\n if ( $cFilterExp <> $this->_FilterExp ) {\n $this->FilterExp($cFilterExp);\n if (!$this->SearchCurr()) $this->FirstPage();\n }\n}", "function get_filters($init_data = true) {\n //no filters by default\n return array();\n }", "protected function registerFilterChain()\n\t{\n\t\t//filters\n\t\t$this->filters['deserial'] = 'deserializationFilter';\n\t\t$this->filters['batch'] = 'batchProcessFilter';\n\t\t$this->filters['serialize'] = 'serializationFilter';\n\t}", "public function enable( FilterInterface $filter, array $config = array(), $default = NULL );", "public static function init() {\n\t\tadd_filter( 'attachment_fields_to_edit', array( self::$class_name, 'apply_filter_attachment_fields_to_edit' ), null, 2 );\n\n\t\t// Add the filter for saving the custom url field\n\t\tadd_filter( 'attachment_fields_to_save', array( self::$class_name, 'apply_filter_attachment_fields_to_save' ), null , 2 );\n\n\t\t// Add the filter for when the post_gallery is written out\n\t\tadd_filter( 'post_gallery', array( self::$class_name, 'apply_filter_post_gallery' ), 999, 2 );\n\n\n\t}", "public function onExtLocalConf(): void\n {\n HiddenRestriction::$hooks[static::class] = [$this, 'filterTables'];\n }", "function reset_filters()\r\n{\r\n\t//uitzoeken of het in js of php gedaan word\t\r\n}", "private function filters() {\n\n\n\t}", "public function getAdditionalFilter($dataProvider = null);", "function acf_set_filters($filters = array())\n{\n}", "private function addInputFilter()\n {\n $inputFilter = new InputFilter();\n $this->setInputFilter($inputFilter);\n\n }", "function was_filter_forced() {\r\n\r\n\t\treturn parent::$forced_filter;\r\n\r\n\t}", "private function getDefaultNodeFilters() {\r\n if(!empty($this->defaultNodeFilters)){\r\n return $this->defaultNodeFilters;\r\n }\r\n // Regular filters\r\n $this->defaultNodeFilters = array();\r\n $this->defaultNodeFilters['status'] = array(\r\n 'title' => t('status'),\r\n 'options' => array(\r\n '[any]' => t('any'),\r\n 'status-1' => t('published'),\r\n 'status-0' => t('not published'),\r\n 'promote-1' => t('promoted'),\r\n 'promote-0' => t('not promoted'),\r\n 'sticky-1' => t('sticky'),\r\n 'sticky-0' => t('not sticky'),\r\n ),\r\n );\r\n \r\n // Include translation states if we have this module enabled\r\n if (module_exists('translation')) {\r\n $this->defaultNodeFilters['status']['options'] += array(\r\n 'translate-0' => t('Up to date translation'),\r\n 'translate-1' => t('Outdated translation'),\r\n );\r\n }\r\n \r\n //Set type filter field\r\n $this->defaultNodeFilters['type'] = array('title' => t('type'),'options' => array('[any]' => t('any')));\r\n $this->defaultNodeFilters['type']['options'] += node_type_get_names();\r\n \r\n // Language filter if there is a list of languages\r\n if ($languages = module_invoke('locale', 'language_list')) {\r\n $languages = array(LANGUAGE_NONE => t('Language neutral')) + $languages;\r\n $this->defaultNodeFilters['language'] = array(\r\n 'title' => t('language'),\r\n 'options' => array('[any]' => t('any'))\r\n );\r\n $this->defaultNodeFilters['language']['options'] += $languages;\r\n }\r\n\r\n return $this->defaultNodeFilters;\r\n }", "private static function _getFilter() {}", "function init_filter($id, $init_data = true) {\n global $CFG;\n if (!isset($this->filter) && $filters = $this->get_filters($init_data)) {\n $dynamic_report_filter_url = $CFG->wwwroot . '/blocks/php_report/dynamicreport.php?id=' . $id;\n $this->filter = new php_report_default_capable_filtering($filters, $dynamic_report_filter_url, null, $id, $this->get_report_shortname());\n }\n }", "function acf_enable_filters($filters = array())\n{\n}", "public function getFilter(){ }", "function beforeFilter() {\r\n parent::beforeFilter();\r\n }", "public function configureReplicationFilter() {\n $filter['field_channel'] = [\n // Food.\n 'e4da9222-c270-43b7-abb9-2f83b1ad8716',\n ];\n $filter['field_tags'] = [\n // Quantum.\n '92af4c88-0b17-41be-b6d8-306766ae3377',\n // Cuba.\n '02c8cbd9-15b7-4231-b9ef-46c1ef37b233',\n ];\n\n Drupal::configFactory()\n ->getEditable('replication.replication_settings.contentpool')\n ->set('parameters.filter', $filter)\n ->save();\n }", "public function setDataFilter($filter)\n {\n // TODO: improve logging when we finally have a central Tesseract debugging workflow\n if (TYPO3_DLOG) {\n t3lib_div::devLog('Data filters are currently not supported!', 'tagpackprovider', 2);\n }\n }", "function beforeFilter() {\n\t\t$this->plugin = 'aqueous';\n\t\t$this->passedArgs = array_merge(array('layout'=>'default', 'theme'=>null), $this->passedArgs);\n\t}", "private function setSearchFilters()\n\t{\n\t\tif(sizeof($this->searchFilters) > 0)\n\t\t{\n\t\t\t$this->taskSearchHelperDA->setSearchFilters($this->searchFilters);\n\t\t}\n\t}", "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $grLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "protected function addFilter ()\n {\n global $database;\n\n if (defined('LEPTON_VERSION')) {\n // register the filter at LEPTON outputInterface\n if (! file_exists(WB_PATH . '/modules/output_interface/output_interface.php')) {\n throw new \\Exception('Missing LEPTON outputInterface, can\\'t register the kitFramework filter - installation is not complete!');\n } else {\n if (! function_exists('register_output_filter'))\n include_once (WB_PATH . '/modules/output_interface/output_interface.php');\n register_output_filter('kit_framework', 'kitFramework');\n }\n }\n elseif (defined('CAT_VERSION')) {\n // register the filter at the blackcatFilter\n require_once CAT_PATH.'/modules/blackcatFilter/filter.php';\n // first unregister to prevent trouble at re-install\n unregister_filter('kitCommands', 'kit_framework');\n // register the filter\n register_filter('kitCommands', 'kit_framework', 'Enable the usage of kitCommands within BlackCat');\n }\n else {\n if (version_compare(WB_VERSION, '2.8.3', '>=')) {\n // WebsiteBaker 2.8.3\n $filter_path = WB_PATH . '/modules/output_filter/index.php';\n } else {\n // all other WebsiteBaker versions\n $filter_path = WB_PATH . '/modules/output_filter/filter-routines.php';\n }\n if (file_exists($filter_path)) {\n if (! $this->websiteBakerIsPatched($filter_path)) {\n if (! $this->websiteBakerDoPatch($filter_path)) {\n throw new \\Exception('Failed to patch the WebsiteBaker output filter, please contact the support!');\n }\n }\n } else {\n throw new \\Exception('Can\\'t detect the correct method to patch the output filter, please contact the support!');\n }\n }\n return true;\n }", "public function addDefaultFiltering($value)\n\t{\n\t\tparse_str($this->getDataGrid()->defaultFilters, $list);\n\t\t$list[$this->getName()] = $value;\n\t\t$this->getDataGrid()->defaultFilters = http_build_query($list, '', '&');\n\n\t\treturn $this;\n\t}", "private function loadFilters()\n {\n require __DIR__.'/filters.php';\n }", "function acf_disable_filter($name = '')\n{\n}", "public function extend($extender_name);", "function allow_configured_filters() {\n return TRUE;\n }", "public function createFilter();", "public function setupFilterRules()\n { }", "function change_defaults( $defaults ) {\n $defaults['str_replace'] = 'Testing filter hook!';\n\n return $defaults;\n }", "protected function get_initial_filters() {\n $initialfilters = parent::get_initial_filters();\n $initialfilters[] = 'autoass';\n return $initialfilters;\n }", "function SetupAutoSuggestFilters($fld) {\n\t\tglobal $gsLanguage;\n\t\tswitch ($fld->FldVar) {\n\t\t}\n\t}", "public function setFilter($filter)\n {\n if($filter==self::FILTER_ALL or\n $filter==self::FILTER_ACCESSIBLE or\n $filter==self::FILTER_PUBLIC) $this->options['filter']=$filter;\n\n if($this->options['userMode']==self::USER_MODE_PUBLIC and\n !($this->options['filter']==self::FILTER_ACCESSIBLE or $this->options['filter']==self::FILTER_PUBLIC)) $this->options['filter']==self::FILTER_ACCESSIBLE;\n\n return($this->options['filter']);\n }", "function _dotgo_filter_prepare() {\n\n}", "public function load()\n\t{\n\t\t$this->options = apply_filters($this->filterName, get_option($this->filterName));\n\t}", "private function setup_filters() {\n add_filter( 'timber/twig', function( $twig ) {\n\n // ped_icon()\n $twig->addFunction( new \\Twig_SimpleFunction( PEDESTAL_PREFIX . 'icon',\n [ __CLASS__, 'get_icon' ]\n ) );\n\n // ped_logo()\n $twig->addFunction( new \\Twig_SimpleFunction( PEDESTAL_PREFIX . 'logo',\n [ __CLASS__, 'get_logo' ]\n ) );\n\n return $twig;\n }, 99 );\n }", "abstract public function getFilterClass();", "function beforeFilter() {\n }", "public function getFilter();", "public function getFilter();", "public function setFilter(BaseOperator $filter)\n {\n $this->filter = $filter;\n }", "function modify_filters ($filter,$mods) \n{ \n $new_filter = array_merge($filter,$mods);\n return $new_filter;\n}", "function current_filter()\n {\n }", "public function addFilters() {\n\t\t// $this->subscriber->addFilter( 'mdm_syndication_post_fields', [$this, 'addCustomFields'] );\n\t}", "function beforeFilter() {\n parent::beforeFilter();\n }", "public function use_default_gallery_style_filter() {\n \treturn false;\n }", "protected function registerDefaultFilterHandlers(): void\n {\n $this->setFilterHandler(FilterOperator::EXISTS, [$this, 'applyRelationExistsFilter']);\n $this->setFilterHandler(FilterOperator::DOES_NOT_EXIST, [$this, 'applyRelationDoesNotExistFilter']);\n }", "private function setup_filters() {\n\n\t\tadd_filter( 'pre_option_posts_per_page', array( $this, 'filter_posts_per_page' ) );\n\n\t\tadd_filter( 'plugins_url', array( $this, 'filter_plugins_url' ) );\n\n\t}", "public function registerFilters() {\n//\t $this->addFilter('get_avatar', ['Chayka\\\\LinkedIn\\\\LinkedInHelper', 'filterGetLinkedInAvatar'], 10, 3);\n\t $this->addFilter('CommentModel.created', ['Chayka\\\\LinkedIn\\\\LinkedInHelper', 'filterMarkCommentWithLinkedInUserId']);\n\t $this->addFilter('pre_comment_approved', ['Chayka\\\\LinkedIn\\\\LinkedInHelper', 'filterApproveLinkedInUserComment'], 10, 2);\n\t\t/* chayka: registerFilters */\n }", "function beforeFilter(){\n\t\tparent::beforeFilter(); \n\t}", "abstract public function prepareFilters();", "public function actionSetFilter()\n {\n $filter = $this->module->filter;\n\n //make css class for checkbox\n foreach ($filter as $key => $property) {\n if (isset($property['class'])) {\n if (is_array($property['class'])) {\n $filter[$key]['class'] = implode(' ', $property['class']);\n }\n } else {\n $filter[$key]['class'] = '';\n }\n }\n\n //set value for js ajax variable\n $useAjax = $this->module->useAjax ? 'true' : 'false';\n\n return $this->renderPartial('filter-list', ['filter' => $filter, 'useAjax' => $useAjax]);\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}", "public function removeDefaultFiltering()\n\t{\n\t\tparse_str($this->getDataGrid()->defaultFilters, $list);\n\t\tif (isset($list[$this->getName()])) unset($list[$this->getName()]);\n\t\t$this->getDataGrid()->defaultFilters = http_build_query($list, '', '&');\n\n\t\treturn $this;\n\t}", "function GetFilter ( )\n{\n\treturn $this->FilterExp();\n}", "public function setFilterType($types) {\n $this->_filterType = $types;\n }", "private function initInputFilter($di) {\n\t\t\t$di->set('inputFilter', function(){\n\t\t\t\n\t\t\t\treturn new FilterOptions();\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t}", "public function getFilter(): string;", "abstract protected function getFilters();", "public function resetFileAndFolderNameFiltersToDefault() {}", "function wp_render_duotone_filter_preset($preset)\n {\n }", "public function getFilter()\n {\n return($this->options['filter']);\n }", "function change_defaults($defaults) {\n $defaults['str_replace'] = 'Testing filter hook!';\n\n return $defaults;\n }", "protected function set_filters() {\n\t\t# Ignore all items with undefined price\n\t\t$this->generator->addFilter(\n\t\t\tfunction (\n\t\t\t\tarray $sf_product\n\t\t\t) {\n\t\t\t\t$sf_product = reset( $sf_product );\n\n\t\t\t\t/** @var Product $sf_product */\n\t\t\t\treturn ! empty( $sf_product->get_price() );\n\t\t\t}\n\t\t);\n\t}", "protected function setAvailableExtensions() {}", "public function SetFilters (array $filters = []);", "protected function setup_filters() {\n\t\tadd_filter( 'cron_schedules', array( $this, 'cron_schedules' ) );\n\t\tadd_filter('blmd_social_classes_button', function($classes, $network=null) {\n\t\t\tif ($network == 'twitter') { $classes .= ' native'; }\n\t\t\treturn $classes;\n\t\t}, 10, 2);\n\t}", "public function getFilters()\n {\n return array(\n 'shortenUrl' => new \\Twig_SimpleFilter('shorten_url', 'shortenUrl'),\n );\n }", "public function setExtension($name, $list=array());" ]
[ "0.7208455", "0.7208455", "0.6954057", "0.6760472", "0.66342443", "0.63784313", "0.6357309", "0.6321183", "0.62240034", "0.6221572", "0.6216634", "0.6165243", "0.60650855", "0.5938781", "0.5885807", "0.58754987", "0.5870441", "0.5840151", "0.58139414", "0.58067244", "0.580636", "0.5768626", "0.5757629", "0.5741265", "0.5740169", "0.57112926", "0.5709765", "0.57045597", "0.56856287", "0.56723696", "0.5668815", "0.5663563", "0.56545216", "0.5642088", "0.5641867", "0.5628359", "0.5612394", "0.56123054", "0.55567497", "0.5551804", "0.5533421", "0.5513225", "0.55103713", "0.5509472", "0.5506441", "0.5479602", "0.54792625", "0.5472631", "0.54715437", "0.54694885", "0.5464267", "0.5464099", "0.54452395", "0.5437198", "0.54274017", "0.54225254", "0.5411132", "0.5407753", "0.5404964", "0.5403734", "0.5399298", "0.5395001", "0.5393193", "0.5391387", "0.5389765", "0.53886926", "0.5387305", "0.5378897", "0.53777385", "0.53777385", "0.53698915", "0.53682125", "0.53599346", "0.5356288", "0.5350505", "0.5348355", "0.5341433", "0.53333825", "0.53292745", "0.5323877", "0.5322577", "0.5322193", "0.53069323", "0.5305742", "0.53038305", "0.5303329", "0.5302989", "0.53027284", "0.5301662", "0.5301284", "0.52956074", "0.5295535", "0.52923745", "0.52908987", "0.5290095", "0.5289049", "0.5281877", "0.52813315", "0.52790016" ]
0.7667739
1