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
Allows string or numeric values to be passed as input.
public function __construct($value = '') { if (!is_string($value) && !is_numeric($value)) { throw new InvalidNativeArgumentException($value, $this->allowedTypes); } $this->value = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate_input($input_data, $input_type) {\n $output_data = trim($input_data);\n $output_data = stripslashes($output_data);\n $output_data = htmlspecialchars($output_data);\n if($input_type == 'text') {\n // not sure what to do here; \n }\n if($input_type == 'number') {\n if(!is_numeric($output_data)) {\n return false;\n }\n }\n return $output_data;\n}", "public function numbers_only($value)\n{\n //return preg_match('/^([0-9]+)$/', $value);\n return ctype_digit(strval($value));\n}", "function isNumericType($type)\n{\n return(eregi('int',$type) or $type==\"real\" or $type==\"float\" or $type==\"double\" or $type==\"decimal\");\n}", "function isNumeric ($value)\r\n{\r\n\treturn is_numeric ($value);\r\n}", "public function isNumeric();", "function is_number(mixed $var): bool\n{\n return is_int($var) || is_float($var);\n}", "function isNum($s){return is_numeric($s) ? true : false;}", "function isNumber ($value)\r\n{\r\n\treturn is_double ($value);\r\n}", "abstract public function checkValueType($arg_value);", "function check_input($value)\n{\n $value = strip_tags($value);\n $value = htmlentities($value);\n // remove slash\n if (get_magic_quotes_gpc())\n {\n $value = stripslashes($value);\n }\n// add '' on string\n if (!is_numeric($value))\n {\n $value =mysqli_real_escape_string($GLOBALS['conn'],$value);\n }\n return $value;\n}", "function esNumero($n1, $n2){\n if(is_numeric($n1) && is_numeric($n2)){\n \n }\n\n}", "private function ignore_value( $_INPUT ){\n\t\tif (!isset( $_INPUT['value'] ) ){\n\t\t\treturn true;\n\t\t}\n\t\tif (!is_numeric( $_INPUT['value'] ) ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function NeedQuotesNumeric($type)\n{\n if($type == 203 || $type == 8 || $type == 129 || $type == 130 || \n\t\t$type == 7 || $type == 133 || $type == 134 || $type == 135 ||\n\t\t$type == 201 || $type == 205 || $type == 200 || $type == 202 || $type==72 || $type==13)\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "function validate_is_number($field_input, array &$field): bool\n{\n if (!is_numeric($field_input)) {\n $field['error'] = 'Type in integer';\n return false;\n }\n return true;\n}", "function sanitizeInput($input, $type = \"string\", $max = NULL, $min = NULL, $padding = \"_\"){\r\n\r\n \r\n switch($type){\r\n\r\n case \"string\":\r\n if(!is_string($input)){\r\n $input = strval($input);\r\n }\r\n \r\n if($min && strlen($input) < $min){\r\n $input = str_pad($input, $min, $padding);\r\n }\r\n\r\n if($max && strlen($input) > $max){\r\n $input = mb_substr($input, 0, $max);\r\n }\r\n\r\n break;\r\n\r\n case \"integer\":\r\n if(!is_int($input)){\r\n $input = intval($input);\r\n }\r\n\r\n if($min !== NULL && $input < $min){\r\n $input = $min;\r\n }\r\n\r\n if($max !== NULL && $input > $max){\r\n $input = $max;\r\n }\r\n\r\n break;\r\n\r\n case \"float\":\r\n if(!is_float($input)){\r\n $input = floatval($input);\r\n }\r\n\r\n if($min !== NULL && $input < $min){\r\n $input = $min;\r\n }\r\n\r\n if($max !== NULL && $input > $max){\r\n $input = $max;\r\n }\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n\r\n return $input;\r\n}", "function getType($input)\r\n {\r\n if (is_numeric(str_replace(\" \", \"\", trim($input)))) {\r\n return \"number\";\r\n } elseif (strpos($input, \"+\") !== false) {\r\n return \"number\";\r\n } elseif (is_string($input) && !empty($input)) {\r\n return \"name\";\r\n } elseif ($input == '') {\r\n return \"empty\";\r\n }\r\n }", "function sanitize_numbers($value)\n{\n return filter_var($value, FILTER_SANITIZE_NUMBER_INT);\n}", "abstract protected function validateValue($value);", "function check($a, $b) {\n if (is_numeric($a) && is_numeric($b)) {\n return true;\n } else {\n return \"please enter numbers only.\";\n }\n}", "function check_input($value)\n\t{\n\tif(!empty($value))\n\t\t{\n\t\t$value = substr($value,0,50); \n\t\t}\n\t\tif (get_magic_quotes_gpc()) \n\t\t\t{\n\t\t\t$value = stripslashes($value);\n\t\t\t}\n\t\tif (!ctype_digit($value)) \t\n\t\t\t{\n\t\t\t$value = \"'\" . mysql_real_escape_string($value) . \"'\";\n\t\t\t}\n\telse\n\t\t{\n\t\t$value = intval($value);\n\t\t}\n\treturn $value;\n\t}", "function validaOpcion($opcionSeleccionada) {\n if (is_numeric($opcionSeleccionada))\n return true;\n else\n return false;\n}", "function quote($val) {\n return is_int($val)?$val:\"\\\"\".$val.\"\\\"\";\n}", "function strNumValid($val = '',$type = 's', $min_len = 0) {\r\n if(!empty($val)) {\r\n\t\tif(strlen($val)>=$min_len) {\r\n\t\t\tif($type == 'n' && ctype_digit($val)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse if($type == 's' && is_string($val) && !ctype_digit($val)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse return false;\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}", "function sanitize_float( $value, $key, array $data ) {\n\treturn (float) $value;\n}", "function is_num($arg){ \n\tif (!(int)$arg) {\n\treturn false ;\n\t}\n\telse\n\t{\n\t\treturn true;\n\t}\n}", "protected function check_type()\n {\n $regex = \"/^int$|^bool$|^string$/\";\n\n $result = preg_match($regex, $this->token);\n\n if($result == 0 or $result == FALSE)\n {\n fwrite(STDERR, \"Error, expecting <type> function parameter! Line: \");\n fwrite(STDERR, $this->lineCount);\n fwrite(STDERR, \"\\n\");\n exit(23);\n } \n }", "function sanitizeAny($input = '')\r\n{\r\n if (!is_array($input) || !count($input)) {\r\n return sanitizeValue($input);\r\n } else {\r\n return sanitizeArray($input);\r\n }\r\n}", "function sanitize($type, $input) {\n\n switch ($type) {\n case 'int':\n $output = (int) strip_tags($input);\n break;\n case 'string':\n $output = (string) strip_tags($input);\n break;\n case 'double':\n $output = (double) strip_tags($input);\n break;\n default:\n echo \"Wrong Type\";\n $output = '';\n }\n \n return $output;\n }", "public static function validateData($data, $types) {\n $types = explode('|', $types);\n if (is_array($types)) {\n foreach ($types as $v) {\n if ($v === 'int') {\n $data = (int) $data;\n }\n if ($v === 'string') {\n $data = (string) $data;\n }\n if ($v === 'trim') {\n $data = trim($data);\n }\n if ($v === 'strip_tags') {\n $data = strip_tags($data);\n }\n if ($v === 'specialchars') {\n $data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8');\n }\n if ($v === 'filter_special_chars') {\n $data = str_replace(str_split('<>\"&*~|<>#@$%^()!?+-=/\\\\`.,:;_' . \"'\" . ''), ' ', $data);\n }\n }\n }\n return $data;\n }", "public static function validate_numeric_integer_or_decimal_values($val) { // {{{SYNC-DETECT-PURE-NUMERIC-INT-OR-DECIMAL-VALUES}}}\n\t//--\n\t$val = (string) $val; // do not use TRIM as it may strip out null or weird characters that may inject security issues if not trimmed outside (MUST VALIDATE THE REAL STRING !!!)\n\t//--\n\t$regex_decimal = (string) self::regex_stringvalidation_expression('number-decimal', 'full');\n\t//--\n\tif(((string)$val != '') AND (is_numeric($val)) AND (preg_match((string)$regex_decimal, (string)$val))) { // detect numbers: 0..9 - .\n\t\treturn true; // VALID\n\t} else {\n\t\treturn false; // NOT VALID\n\t} //end if else\n\t//--\n}", "function validateNumber ( $validatedValue, $stringName ) {\n\tif ( !is_numeric ( $validatedValue ) ) {\n\t\techo \"<script>alert('$stringName should be a number!!!!')</script>\";\n\t\texit ();\n\t} else if ( $validatedValue < 0 ) {\n\t\techo \"<script>alert('$stringName should be greater or equal 0!!!!')</script>\";\n\t\texit ();\n\t}\n}", "function est_entier($valeur): bool {\n return is_numeric($valeur);\n}", "private function validate()\n {\n if (! is_numeric($this->number)) {\n throw new \\InvalidArgumentException(\"Invalid numeric value provided ($this->number).\");\n }\n }", "function clean_input( $value ) {\n if ( is_numeric( $value ) ) {\n return( $value );\n }\n // Strip slashes if necessary\n if ( get_magic_quotes_gpc( ) ) {\n $value = stripslashes( $value );\n }\n // Make sure no sql-dangerous code gets through\n $value = mysql_real_escape_string( $value );\n // Strip HTML tags, to be sure\n // May need another routine to allow input of HTML\n $value = strip_tags( $value );\n \n return( $value );\n }", "function isNumeric ($s) {\r\n return is_numeric($s);\r\n }", "function sanitize_floats($value)\n{\n return filter_var($value, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION);\n}", "private function process_numeric($value)\n {\n return is_numeric($value);\n }", "public function testIsValidType()\n {\n $this->assertFalse(\n Method::invoke($this->type, 'isValidType', $this, 'test'),\n 'The value should not be valid.'\n );\n\n $this->assertTrue(\n Method::invoke($this->type, 'isValidType', $this, 1.23),\n 'The value should be valid.'\n );\n }", "function validateNumeric($string)\n\t\t{\n\t\t\tif(is_numeric($string)){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function bindValue(string | int $param, mixed $value, int $type = \\PDO::PARAM_STR);", "protected function _setNumeric($name, $value) {}", "public function testNotString()\n {\n $values = array(\n 1, 1.4, null, new stdClass(), true, false\n );\n\n foreach ($values as $value) {\n $this->assertSame(false, $this->_validator->isValid($value));\n }\n }", "function is_int_val( string $str )\n {\n return is_numeric( $str ) && \\intval( $str ) == $str;\n }", "protected function checkValueParam(&$value)\n {\n if (isset($value)) {\n if (is_object($value)) {\n if (!method_exists($value, 'toRdfPhp')) {\n // Convert to a literal object\n $value = Literal::create($value);\n }\n $value = $value->toRdfPhp();\n } elseif (is_array($value)) {\n if (!isset($value['type'])) {\n throw new \\InvalidArgumentException(\n \"\\$value is missing a 'type' key\"\n );\n }\n\n if (!isset($value['value'])) {\n throw new \\InvalidArgumentException(\n \"\\$value is missing a 'value' key\"\n );\n }\n\n // Fix ordering and remove unknown keys\n $value = array(\n 'type' => strval($value['type']),\n 'value' => strval($value['value']),\n 'lang' => isset($value['lang']) ? strval($value['lang']) : null,\n 'datatype' => isset($value['datatype']) ? strval($value['datatype']) : null\n );\n } else {\n $value = array(\n 'type' => 'literal',\n 'value' => strval($value),\n 'datatype' => Literal::getDatatypeForValue($value)\n );\n }\n if (!in_array($value['type'], array('uri', 'bnode', 'literal'), true)) {\n throw new \\InvalidArgumentException(\n \"\\$value does not have a valid type (\".$value['type'].\")\"\n );\n }\n if (empty($value['datatype'])) {\n unset($value['datatype']);\n }\n if (empty($value['lang'])) {\n unset($value['lang']);\n }\n if (isset($value['lang']) and isset($value['datatype'])) {\n throw new \\InvalidArgumentException(\n \"\\$value cannot have both and language and a datatype\"\n );\n }\n }\n }", "public function testTypes(){\n //assertEquals(2, \"2\") will pass\n\n //assertSame is strict. 1 != \"1\"\n //$this->assertSame(\"lol\" - 2, -2); // Non numeric value error\n //$this->assertSame(\"Anything\" - 1, -1); // Non numerif value error\n $this->assertSame(\"0\" + 4, 4);\n $this->assertSame(\"0\" . 4, \"04\");\n $this->assertSame(\"0\" - 4, -4);\n $this->assertSame(\"0\" * 4, 0);\n $this->assertSame(\"0\" / 4, 0);\n //$this->assertSame(\"0\" / 0, 0); //Division by Zero exception\n //$this->assertSame(\"foo\" - \"bar\", 0); //Non numeric error\n //$this->assertNotSame(\"foo\" - \"bar\", 2); Non numeric value\n //$this->assertNotSame(\"foo\" - \"bar\", false); //Non numeric value\n //$this->assertSame(\"foo\" * \"bar\", 0); //Non numeric value\n //$this->assertSame(\"foo\" / \"bar\", 0); //Division by Zero exception\n\n }", "function validaOpcion($opcionSeleccionada)\r\n{\r\n\tif(is_numeric($opcionSeleccionada)) return true;\r\n\telse return false;\r\n}", "public static function is_string_or_stringable($input)\n {\n }", "function has_number($value , $options = []){\r\n if(!is_numeric($value)){\r\n return false;\r\n }\r\n if(isset($options['max']) && ($value > (int) $options['max'])){\r\n return false;\r\n }\r\n if(isset($options['min'])&& ($value < (int) $options['min'])){\r\n return false;\r\n }\r\n return true;\r\n}", "function post($name, $default = false, $filter = false){\n if (isset($_POST[$name])) {\n if ($filter) {\n switch ($filter) {\n case 'int':\n return is_numeric($_POST[$name]) ? $_POST[$name] : $default;\n break;\n }\n } else {\n return $_POST[$name];\n }\n } else {\n return $default;\n }\n}", "function esUnNumero($string) {\n return is_numeric($string);\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 }", "function sNumber( $value )\r\n\t\t{\r\n\t\t\t#return filter_var($value, FILTER_SANITIZE_NUMBER_FLOAT); // float\r\n\t\t\treturn filter_var( $value, FILTER_SANITIZE_NUMBER_INT ); # int\r\n\t\t\t\r\n\t\t}", "function acf_get_numeric($value = '')\n{\n}", "public function setValueType($value)\n\t{\n\t\tif($value!='Integer' && $value!='Double' && $value!='Date' && $value!='Currency')\n\t\t\t$value='String';\n\t\t$this->setViewState('ValueType',$value,'String');\n\t}", "private function validateInputParameters($data)\n {\n }", "public function testValidateStringNumber(): void\n {\n $this->assertFalse($this->validate('1'));\n }", "function cleanInput($infoUser, $type)\r\n {\r\n switch($type)\r\n {\r\n case 0:\r\n $error = filter_var($infoUser, FILTER_SANITIZE_FULL_SPECIAL_CHARS);\r\n $error = filter_var($error, FILTER_DEFAULT);\r\n break;\r\n\r\n case 1:\r\n $error = filter_var($infoUser, FILTER_SANITIZE_EMAIL);\r\n $error = filter_var($error, FILTER_VALIDATE_EMAIL);\r\n break;\r\n\r\n case 2:\r\n\r\n\r\n //$error = filter_var($infoUser, FILTER_SANITIZE_NUMBER_INT);\r\n if (filter_var($infoUser, FILTER_VALIDATE_INT) === 0 || !filter_var($infoUser, FILTER_VALIDATE_INT) === false) {\r\n $error = filter_var($infoUser, FILTER_VALIDATE_INT);\r\n } else {\r\n echo(\"Integer is not valid\");\r\n }\r\n break;\r\n\r\n case 3:\r\n $error = filter_var($infoUser, FILTER_SANITIZE_FULL_SPECIAL_CHARS);\r\n $error = filter_var($error, FILTER_DEFAULT);\r\n break;\r\n\r\n\r\n }\r\n return $error;\r\n\r\n }", "function testTextFieldGivenNumberExpectsNumericStringValueReturned() {\n\n\t\t// arrange\n\t\tglobal $post;\n\t\t$TestValidTextField = new TestValidTextField();\n\t\t$TestValidTextField->fields['field']['type'] = 'text';\n\t\t$_POST = array(\n\t\t\t'post_ID' => 1,\n\t\t\t'field' => 1,\n\t\t);\n\t\t$validated = array();\n\n\t\t// act\n\t\t$TestValidTextField->validate($_POST['post_ID'], $TestValidTextField->fields['field'], $validated['field'], array());\n\n\t\t// assert\n\t\t$this->assertEquals('1', $validated['field']);\n\t}", "function __db_escape_values($mysqli, $type, $value)\n{\n\tswitch ($type) {\n\t\tcase 'string_n': //string that can be null\n\t\t\tif (!$value) {\n\t\t\t\treturn 'NULL';\n\t\t\t\tbreak;\n\t\t\t}\n\t\tcase 'string':\n\t\t\treturn '\\'' . $mysqli->real_escape_string($value) . '\\'';\n\t\t\tbreak;\n\t\tcase 'datetime':\n\t\t\treturn '\\'' . date(MYSQL_DATETIME_FMT, strtotime($value)) . '\\'';\n\t\t\tbreak;\n\t\tcase 'user':\n\t\tcase 'committee':\n\t\tcase 'event':\n\t\tcase 'int_n':\n\t\t\tif (!$value) {\n\t\t\t\treturn 'NULL';\n\t\t\t}\n\t\tcase 'int':\n\t\t\treturn (string)intval($value);\n\t\t\tbreak;\n\t\tcase 'double':\n\t\tcase 'float':\n\t\t\treturn (string)doubleval($value);\n\t\t\tbreak;\n\t\tcase 'bool':\n\t\t\treturn ($value) ? '1' : '0';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new Exception('invalid type' . $type);\n\t\t\tbreak;\n\t}\n}", "private function numeric($field, $value) {\n if(!is_numeric($value)) {\n $this->errors[$field][] = self::ERROR_NUMERIC;\n }\n }", "function wp_is_numeric_array($data)\n {\n }", "function validateAmount($amount)\n{ \n return is_numeric($amount) && $amount > 0;\n}", "function cleanInput($input,$type = null)\r\n{\r\n\tswitch($type) {\r\n\t\t//these are the parameters passed through function parameters, a,b,c,d etc..\r\n\t\tcase 'args':\r\n\t\t\tif(is_array($input)) {\r\n\t\t\t\tforeach($input as $k => $kv ) {\r\n\t\t\t\t\tif(!is_array($kv)) {\r\n\t\t\t\t\t\t$return[$k] = addslashes($kv);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tforeach($kv as $k_level => $v_level2) {\r\n\t\t\t\t\t\t\t$return[$k][$k_level] = $v_level2;\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$input = $return;\r\n\t\t\t} else {\r\n\t\t\t\t$input = addslashes($v);\r\n\t\t\t}\r\n\t\tbreak;\r\n\t\tcase '_REQUEST':\r\n\t\t\t//\r\n\t\tbreak;\r\n\t\tcase '_POST':\r\n\t\t\t//\r\n\t\tbreak;\r\n\t\tcase '_GET':\r\n\t\t\t//\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t//other inputs\r\n\t}\r\n\t\r\n\treturn $input;\r\n}", "function vNumber( $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}", "function df_is_int($v):bool {return is_numeric($v) && ($v == (int)$v);}", "public function quoteValue(mixed $value): mixed;", "function value_numeric($value){\r\n\t$value = trim($value);\r\n\t$v = strpos($value, \",\");\r\n\t$p = strpos($value, \".\");\r\n\tif($v === FALSE && $p === FALSE){ // Valor inteiro sem separador de decimal e milhar (nao precisa de tratamento)\r\n\t}elseif($v !== FALSE && $p === FALSE){ // Virgula no separador decimal e sem separador de milhar\r\n\t\t$value = str_replace(\",\", \".\", $value);\r\n\t}elseif($v === FALSE && $p !== FALSE){ // Ponto no separador de decimal e sem separador de milhar (nao precisa de tratamento)\r\n\t}elseif($v > $p){ // Virgula no separador de decimal e ponto no separador de milhar\r\n\t\t$value = str_replace(\".\", \"\", $value);\r\n\t\t$value = str_replace(\",\", \".\", $value);\r\n\t}elseif($p > $v){ // Ponto no separador de decimal e virgula no separador de milhar\r\n\t\t$value = str_replace(\",\", \"\", $value);\r\n\t}\r\n//\tif((string)(float) $value == $value){\r\n\tif(is_numeric($value)){\r\n\t\tif(strcmp($value, round($value)) == 0 && $value < 2147483647){\r\n\t\t\t$value = (int) $value;\r\n\t\t}else{\r\n\t\t\t$value = (float) $value;\r\n\t\t}\r\n\t\treturn $value;\r\n\t}else{\r\n\t\treturn NULL;\r\n\t}\r\n}", "function validateInput($type, &$error, $options_arr) {\n if (!filter_var($_POST[$type], FILTER_VALIDATE_INT, $options_arr)) {\n $error = \"* Invalid ${type}\";\n return false;\n } else {\n return true;\n }\n }", "public function requireNumericAndPositive($key)\n {\n $value = $this->getParam($key);\n if(!is_numeric($value) || $value <= 0){\n throw new InvalidParameterException($key, $value, __FUNCTION__);\n }\n\n return $value;\n }", "public function sanitize_value(){\n if(is_string($this->value)){\n $json_value = json_decode($this->value, true);\n if(json_last_error() == JSON_ERROR_NONE)\n $this->value = $json_value;\n }\n }", "public function sanitize_value(){\n if(is_string($this->value)){\n $json_value = json_decode($this->value, true);\n if(json_last_error() == JSON_ERROR_NONE)\n $this->value = $json_value;\n }\n }", "function test_ignoring_use_in_type_test_functions() {\n\tif ( ! is_numeric ( $_POST['foo'] ) ) { // OK.\n\t\treturn;\n\t}\n\n\twp_verify_nonce( 'some_action' );\n}", "function check_single_incomming_var($var, $request = FALSE, $url_decode = FALSE) {\n if ((is_string($var) || is_numeric($var)) && !is_array($var)) {\n if (($request == TRUE) && isset($_REQUEST[$var])) {\n $value = $_REQUEST[$var];\n } elseif ($request == FALSE) {\n $value = $var;\n } else {\n $value = NULL;\n }\n if ($value === '') {\n return NULL;\n } elseif (($value === 0)) {\n return 0;\n } elseif (($value === '0')) {\n return '0';\n } else {\n// $value = htmlspecialchars($value);\n }\n if ($url_decode) {\n $value = urldecode($value);\n }\n if (\\json_decode($value) === NULL) {\n// $search = ['\\\\', \"\\0\", \"\\n\", \"\\r\", \"'\", '\"', \"\\x1a\"];\n// $replace = ['\\\\\\\\', '\\\\0', '\\\\n', '\\\\r', \"\\\\'\", '\\\\\"', '\\\\Z'];\n// $value = str_replace($search, $replace, $value);\n// $value = @mysql_real_escape_string($value);\n }\n return $value;\n } else {\n return NULL;\n }\n}", "public static function user_floatInput(){\n fscanf(STDIN,\"%f\\n\",$number);\n if(filter_var($number,FILTER_VALIDATE_FLOAT)){\n return $number;\n }\n else{\n echo \"Invalid Input!\\n\";\n return Util::user_floatInput();\n }\n }", "public function validDataTypes();", "function isInteger($v) {\n return is_int($v) || (is_string($v) && preg_match('/^[0-9]+$/', $v));\n}", "public function testGetChoicesForValuesDealsWithNumericValues()\r\n {\r\n $values = array('0', '1');\r\n $this->assertSame(array(0, 1), $this->list->getChoicesForValues($values));\r\n }", "public static function string(?string $valueType = null);", "function validator_number($min = NULL, $max = NULL, $integer = NULL, $optional = NULL)\n{\n\tif (is_null($min))\n\t\t$min = -INF;\n\tif (is_null($max))\n\t\t$max = INF;\n\tif (is_null($integer))\n\t\t$integer = false;\n\tif (is_null($optional))\n\t\t$optional = false;\n\n\treturn array('optional' => $optional, 'validator' =>\n\t\tfunction($value) use ($min, $max, $integer)\n\t\t{\n\t\t\tif (!is_numeric($value)) {\n\t\t\t\tthrow new Exception('Could not validate number');\n\t\t\t}\n\n\t\t\tif ($integer) {\n\t\t\t\t$value = intval($value, 10);\n\t\t\t} else {\n\t\t\t\t$value = floatval($value);\n\t\t\t}\n\n\t\t\tif (is_numeric($value) && $value >= $min && $value <= $max) {\n\t\t\t\treturn $value;\n\t\t\t}\n\n\t\t\tthrow new Exception('Could not validate number');\n\t\t}\n\t);\n}", "public function testGetValuesForChoicesDealsWithNumericValues()\r\n {\r\n $values = array('0', '1');\r\n\r\n $this->assertSame(array('0', '1'), $this->list->getValuesForChoices($values));\r\n }", "function pgtype_isnumber ($field_type) {\n\tswitch (strtolower(trim($field_type))) {\n\t\tcase 'bool': // a boolean from a pg database\n\t\t\t$output = false;\n\t\t\tbreak;\n\t\tcase 'int2': // a small integer from a pg database\n\t\tcase 'int4': // an integer from a pg database\n\t\tcase 'int8': // a long integer from a pg database\n\t\t\t$output = true;\n\t\t\tbreak;\n\t\tcase 'numeric': // a \"numeric\" real number field from a pg database\n\t\tcase 'float4': // a single precision real number field from a pg database\n\t\tcase 'float8': // a double precision real number field from a pg database\n\t\t\t$output = true;\n\t\t\tbreak;\n\t\tcase 'date': // a date field from a pg database\n\t\t\t$output = false;\n\t\t\tbreak;\n\t\tcase 'time': // a time field from a pg database\n\t\tcase 'timetz': // a time field with timezone from a pg database\n\t\t\t$output = false;\n\t\t\tbreak;\n\t\tcase 'timestamp': // a timestamp field from a pg database\n\t\tcase 'timestamptz': // a timestamp field with timezone from a pg database\n\t\t\t$output = false;\n\t\t\tbreak;\n\t\tcase 'text': // a text field from a pg database\n\t\tcase 'varchar': // a varchar field from a pg database\n\t\tcase 'bpchar': // a bpchar field from a pg database\n\t\t\t$output = false;\n\t\t\tbreak;\n\t\tdefault: // an unanticipated field type, put a text box or single selects, but may not work\n\t\t\t$output = false;\n\t}\n\treturn $output;\n}", "function getAllowedTypes() {\n\treturn array('substition','formatting');\n}", "function broj()\n {\n $parametar = func_get_args();\n foreach ($parametar as $broj) {\n if (is_int($broj)) {\n echo $broj.' je broj<br>';\n } else {\n echo $broj.' je string <br>';\n }\n }\n }", "function validAge($age) {\r\n return is_numeric($age) && $age >= 18 && $age <= 118;\r\n}", "public function takingnuminput()\n {\n fscanf(STDIN, \"%s\\n\",$num);\n while((Utility::validating_float($num)))\n {\n echo \"Warning :the num should not be decimal and it should not contain char\\n\";\n fscanf(STDIN, \"%s\\n\",$num);\n\n }\n return $num;\n }", "function quote($in)\n {\n if (is_int($in) || is_double($in)) {\n return $in;\n } elseif (is_bool($in)) {\n return $in ? 1 : 0;\n } elseif (is_null($in)) {\n return 'NULL';\n } else {\n return $this->escapeSimple($in);\n }\n }", "function handle_escaping($a,$b)\n{\n\n\tif(gettype($b)==\"string\"){\n\t\t\n\t\treturn mysqli_real_escape_string($a,$b);\n\t}\n\telse if(gettype($b)==\"integer\" and is_numeric($b))\n\t{\n\t\treturn $b;\n\t}\n\telse\n\t{\n\t\treturn \"not fit\";\n\t\t\n\t}\n\t\n}", "private function applyTypesToParams(array &$words): void\n {\n $rules = $this->rules;\n $field = &$words[\\key($words)];\n\n //needed\n $number = new Number();\n\n //word variable need reference for point to value\n foreach ($field as &$word) {\n $types = $rules[$word[0]]['args_type'];\n\n foreach ($types as $key => $type) {\n $param = &$word[$key + 1];\n\n if ($type === 'number') {\n $number->sanitize($param);\n continue;\n }\n\n \\settype($param, $type);\n }\n }\n }", "function isNumber($value){\n \n if (!preg_match('/^[0-9]+(\\\\.[0-9]+)?$/', $value)){\n \n header(\"Location: ..\\Graduate_form.html?error=\"); \n \n }else{\n return $value; \n }\n}", "public static function validate_numeric_pure_valid_values($val) {\n\t//--\n\tif((self::validate_numeric_integer_or_decimal_values($val)) AND (!is_nan($val)) AND (!is_infinite($val)) AND ((string)$val == (string)(float)$val)) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t} //end if\n\t//--\n}", "function testInvalidNumericFieldExpectsDataRemoved() {\n\n\t\t// arrange\n\t\t$TestNumberField = new TestNumberField();\n\t\t$_POST = array(\n\t\t\t'post_ID' => 1,\n\t\t\t'field_one' => 'Two',\n\t\t);\n\t\t$validated = array();\n\n\t\t// act\n\t\t$TestNumberField->validate($_POST['post_ID'], $TestNumberField->fields['field_one'], $validated['field_one'], array());\n\t\t// assert\n\t\t$expected = null;\n\t\t$this->assertEquals(\n\t\t\t$expected,\n\t\t\t$validated['field_one'],\n\t\t\t'Non-numeric strings should not be accepted for a number input type.'\n\t\t);\n\t}", "function checkStrings($string) {\n $explodeAndCheck = array_filter(explode(', ', $string), 'is_numeric'); // explode on \", \" and only take the values which are numeric\n $finalParse = array_map('floatval', $explodeAndCheck); // convert from char to float\n\n $reconstructed = implode(\", \", $finalParse); // reconstruct the $finalParse with the reference (\", \") rule.\n\n // Compare the reconstructed and original versions.\n if (strcmp($string, $reconstructed) !== 0) return 0; // Not OK! There's an error: whether the user didn't use the proper \", \" rule, or he entered not numeric data.\n else return 1; // Alles gut!\n}", "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 validateType($value)\n {\n }", "function sanitize($input, $flags, $min='', $max='')\n{\n if($flags & UTF8) $input = my_utf8_decode($input);\n if($flags & PARANOID) $input = sanitize_paranoid_string($input, $min, $max);\n if($flags & INT) $input = sanitize_int($input, $min, $max);\n if($flags & FLOAT) $input = sanitize_float($input, $min, $max);\n if($flags & HTML) $input = sanitize_html_string($input, $min, $max);\n if($flags & SQL) $input = sanitize_sql_string($input, $min, $max);\n if($flags & LDAP) $input = sanitize_ldap_string($input, $min, $max);\n if($flags & SYSTEM) $input = sanitize_system_string($input, $min, $max);\n return $input;\n}", "public function testIsNumber() {\n\t\t$result = _::isNumber(1);\n\t\t$this->assertTrue($result);\n\n\t\t// test that a float is a number\n\t\t$result = _::isNumber(1.23);\n\t\t$this->assertTrue($result);\n\n\t\t// test that a numeric string is a number\n\t\t$result = _::isNumber('-1.23');\n\t\t$this->assertTrue($result);\n\n\t\t// test that a boolean is not a number\n\t\t$result = _::isNumber(false);\n\t\t$this->assertFalse($result);\n\t}", "private function defineInputType()\n {\n\n $input = '';\n\n switch ($this->type) {\n case 'integer':\n $input = 'number';\n break;\n case 'datetime':\n $input = 'datetime';\n break;\n case 'date':\n $input = 'date';\n break;\n case 'text':\n $input = 'textarea';\n break;\n case 'float':\n $input = 'decimal';\n break;\n case 'decimal':\n $input = 'decimal';\n break;\n case 'string':\n $input = 'text';\n break;\n case 'combo':\n $input = 'select';\n break;\n case 'hidden':\n $input = 'hidden';\n $this->notnull = false;\n break;\n case 'checkbox':\n $input = 'checkbox';\n break;\n\n }\n\n $this->input = $input;\n }", "abstract protected function isValidValue($value);" ]
[ "0.6741549", "0.6704163", "0.6642037", "0.6338752", "0.6319668", "0.6242936", "0.62384355", "0.61925167", "0.61604565", "0.5924805", "0.59055954", "0.58312714", "0.58262914", "0.5825531", "0.58028805", "0.57957673", "0.5774585", "0.5753051", "0.5743142", "0.5725007", "0.5711397", "0.5662848", "0.56280375", "0.56079435", "0.5597513", "0.5580804", "0.55752647", "0.5564628", "0.5564127", "0.556399", "0.55454457", "0.5534606", "0.5510764", "0.5507567", "0.54994625", "0.5495188", "0.54941475", "0.54843694", "0.5466032", "0.5428533", "0.54160005", "0.54136455", "0.5407469", "0.5404128", "0.53988975", "0.53870994", "0.5386781", "0.53825784", "0.53715134", "0.53522325", "0.5347179", "0.5347179", "0.5347179", "0.5347179", "0.5341369", "0.5338832", "0.53377247", "0.5337214", "0.53352904", "0.53235525", "0.5320447", "0.5318255", "0.53106725", "0.52950305", "0.5282731", "0.52814126", "0.52782935", "0.5265112", "0.52623785", "0.52623266", "0.52621716", "0.5257116", "0.5256294", "0.5256294", "0.52547073", "0.525211", "0.52490366", "0.52467716", "0.5240202", "0.52329844", "0.5232762", "0.5229812", "0.52297336", "0.52272445", "0.52208257", "0.5217626", "0.5214604", "0.5211532", "0.52046114", "0.5203632", "0.5198444", "0.5191711", "0.5190788", "0.51903075", "0.5189375", "0.5187345", "0.5186907", "0.518374", "0.5180304", "0.5171956", "0.5171951" ]
0.0
-1
Factory method that returns a FieldType object based on the first argument's contents.
public static function fromNative() { $value = func_get_arg(0); switch (true) { case preg_match(self::REGEX_TYPE_VARCHAR, $value, $matchesVarchar): $response = Varchar::fromNative($matchesVarchar[1]); break; case preg_match(self::REGEX_TYPE_CHAR, $value, $matchesVarchar): $response = Char::fromNative($matchesVarchar[1]); break; case preg_match(self::REGEX_TYPE_TIMESTAMP, $value, $matchesVarchar): $response = new Timestamp(); break; case preg_match(self::REGEX_TYPE_DATETIME, $value, $matchesVarchar): $response = new Datetime(); break; case preg_match(self::REGEX_TYPE_DATE, $value, $matchesVarchar): $response = new Date(); break; case preg_match(self::REGEX_TYPE_TEXT, $value, $matchesVarchar): $response = new Text(); break; case preg_match(self::REGEX_TYPE_INT_UNSIGNED, $value, $matchesVarchar): $response = IntUnsigned::fromNative($matchesVarchar[1]); break; case preg_match(self::REGEX_TYPE_INT_SIGNED, $value, $matchesVarchar): $response = IntSigned::fromNative($matchesVarchar[1]); break; case preg_match(self::REGEX_TYPE_DECIMAL, $value, $matchesVarchar): $response = Decimal::fromNative((int)$matchesVarchar[1], (int)$matchesVarchar[2]); break; case preg_match(self::REGEX_TYPE_TINYINT_SIGNED, $value, $matchesVarchar): $response = TinyIntSigned::fromNative($matchesVarchar[1]); break; case preg_match(self::REGEX_TYPE_ENUM, $value, $matchesVarchar): $response = Enum::fromNative($matchesVarchar[1]); break; // @todo Add more cases. http://dev.mysql.com/doc/refman/5.7/en/data-types.html default: $allowedPatterns = array_values(static::getConstants()); throw new UnexpectedValueException($value, $allowedPatterns); break; } return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldType($fieldname);", "public function getPatternedFieldType(string $field);", "public function getField(string $name, string $class=null): Field;", "public function fromDefinition(\n $definition\n ) {\n Assert::stringNotEmpty($definition);\n\n $array = explode('|', $definition);\n\n $name = array_key_exists(0, $array)\n ? $array[0]\n : null;\n\n $label = array_key_exists(1, $array)\n ? $array[1]\n : null;\n\n $type = array_key_exists(3, $array)\n ? $array[3]\n : null;\n\n $linked = array_key_exists(6, $array)\n ? (bool) $array[6]\n : false;\n\n if (!$name || !$label || !$type)\n throw new \\InvalidArgumentException(\n 'Определение дополнительного поля имеет неизвестный формат.'\n );\n\n $extraField = new ExtraField();\n $extraField->name = $name;\n $extraField->label = $label;\n $extraField->type = $type;\n $extraField->linked = $linked;\n\n return $extraField;\n }", "public function getField($name)\r\n {\r\n $className = $this->retrieveClassName($name);\r\n return new $className;\r\n }", "function get_field_type($name)\n {\n }", "function acf_get_field_type($name)\n{\n}", "protected function getFieldType(BuildFieldTypeCommand $command)\n {\n $fieldType = $command->getType();\n\n if ($fieldType instanceof FieldType) {\n return $fieldType;\n }\n\n if (starts_with($fieldType, 'Anomaly') && class_exists($fieldType)) {\n return app($command->getType());\n }\n\n return app('streams.field_types')->findBySlug($fieldType)->newInstance();\n }", "public static function make(string $field)\n\t{\n\t\treturn new static($field);\n\t}", "public function field(string $attribute)\n {\n if (! isset($this->attributeTypes()[$attribute])) {\n throw new AttributeTypeNotDefined($attribute, $this);\n }\n\n $attributeClass = $this->attributeTypes()[$attribute];\n\n if (is_array($attributeClass)) {\n return new $attributeClass[0](\n $attribute,\n array_slice($attributeClass, 1)[0]\n );\n }\n\n return new $attributeClass($attribute);\n }", "static function create($options = array()) {\n if (!@$options['type']) throw new Exception('Missing \"type\" in $options array argument');\n $class = \"xFormField{$options['type']}\";\n return new $class($options);\n }", "public function __construct(FieldType $fieldType)\n {\n $this->fieldType = $fieldType;\n }", "public function __construct(FieldType $fieldType)\n {\n $this->fieldType = $fieldType;\n }", "protected static function newFactory()\n {\n return TypeFactory::new();\n }", "public function __construct(SinglefileFieldType $fieldType)\n {\n $this->fieldType = $fieldType;\n }", "public static function create(object|string $object): Type\n {\n return new static(ClassName::canonical($object));\n }", "function getFieldType() {\n\t\treturn 'field';\n\t}", "public function setFieldType(string $type): self\n {\n $this->setOption('fieldtype', $type);\n\n return $this;\n }", "public static function fromField(FieldDescriptor $desc): Type\n {\n switch ($desc->getType()) {\n case GPBType::STRING:\n return static::string();\n case GPBType::MESSAGE:\n return static::fromMessage($desc->getMessage());\n default:\n throw new \\Exception(\"Cannot get field type of type: {$desc->getType()}\");\n }\n }", "public function get(string $name): FieldContract;", "public function getFieldType()\n {\n return $this->fieldType;\n }", "public function getFieldType()\n {\n return $this->fieldType;\n }", "public static function factory($tipo){\n if($tipo=='text')\n $campo=new CampoText();\n else if($tipo=='textarea')\n $campo=new CampoTextArea();\n else if($tipo=='select')\n $campo=new CampoSelect();\n else if($tipo=='radio')\n $campo=new CampoRadio();\n else if($tipo=='checkbox')\n $campo=new CampoCheckbox();\n else if($tipo=='file')\n $campo=new CampoFile();\n else if($tipo=='date')\n $campo=new CampoDate();\n else if($tipo=='instituciones_gob')\n $campo=new CampoInstitucionesGob();\n else if($tipo=='comunas')\n $campo=new CampoComunas();\n else if($tipo=='paises')\n $campo=new CampoPaises();\n else if($tipo=='moneda')\n $campo=new CampoMoneda();\n else if($tipo=='title')\n $campo=new CampoTitle();\n else if($tipo=='subtitle')\n $campo=new CampoSubtitle();\n else if($tipo=='paragraph')\n $campo=new CampoParagraph();\n else if($tipo=='documento')\n $campo=new CampoDocumento();\n else if($tipo=='javascript')\n $campo=new CampoJavascript();\n else if($tipo=='grid')\n $campo=new CampoGrid();\n else if($tipo=='agenda')\n $campo=new CampoAgenda();\n else if($tipo=='recaptcha')\n $campo=new CampoRecaptcha();\n else if($tipo=='maps')\n $campo=new CampoMaps();\n\n $campo->assignInheritanceValues();\n\n return $campo;\n }", "public function getDefinitionInstanceByType($a_type)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_type, \"Definition\");\t\t\r\n\t\treturn new $class();\t\t\r\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 }", "function getFieldType($fieldName) {\n\t\tswitch ($fieldName) {\n\t\t\tcase 'date':\n\t\t\t\t$returner = FIELD_TYPE_DATE;\n\t\t\t\tbreak;\n\t\t\tcase 'language':\n\t\t\t\t$returner = FIELD_TYPE_SELECT;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$returner = FIELD_TYPE_STRING;\n\t\t\t\tbreak;\n\t\t}\n\t\tHookRegistry::call('DublinCorePlugin::getFieldType', array(&$this, $fieldName, &$returner));\n\t\treturn $returner;\n\t}", "function registerFieldType($name, $type);", "protected static function newFactory()\n {\n return CharValueFactory::new();\n }", "public function getFieldType($fieldSlug);", "public function withFields(): Factory\n {\n return $this->afterCreating(function (Entry $entry) {\n $fields = $entry->toEntryClass()->getFields();\n\n foreach ($fields as $field) {\n Field::factory()->create([\n 'entry_id' => $entry->id,\n 'key' => $field->getKey(),\n 'value' => $field->getKey() . '_value',\n ]);\n }\n });\n }", "public function createType()\n {\n $o = new TypeSelector();\n $this->appendSelector($o);\n\n return $o;\n }", "public function testConstructWithType()\n {\n $oField = new Field('DATE');\n\n $this->assertInstanceOf('PhpOffice\\\\PhpWord\\\\Element\\\\Field', $oField);\n $this->assertEquals('DATE', $oField->getType());\n }", "public function getPatternedField(string $field);", "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 }", "public function make($type);", "public function getMockDataTypeFactory() {\n\t\t$stringType = new DataType( 'string', 'string' );\n\n\t\t$types = array(\n\t\t\t'string' => $stringType\n\t\t);\n\n\t\t$mock = $this->getMockBuilder( 'DataTypes\\DataTypeFactory' )\n\t\t\t->disableOriginalConstructor()\n\t\t\t->getMock();\n\t\t$mock->expects( PHPUnit_Framework_TestCase::any() )\n\t\t\t->method( 'getType' )\n\t\t\t->will( PHPUnit_Framework_TestCase::returnCallback( function( $id ) use ( $types ) {\n\t\t\t\tif ( !isset( $types[$id] ) ) {\n\t\t\t\t\tthrow new OutOfBoundsException( \"No such type: $id\" );\n\t\t\t\t}\n\n\t\t\t\treturn $types[$id];\n\t\t\t} ) );\n\n\t\treturn $mock;\n\t}", "function createField($pFieldDetails) {\r\n\t\tswitch ($pFieldDetails['html_control_type']) {\r\n\t\t\tdefault :\r\n\t\t\tcase (int) FIELD_HTML_INPUT_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_VIDEO_YOUTUBE_LINK_TYPE :\r\n\t\t\t\treturn new cfield_input($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_THESIS_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_ANTITHESIS_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_THESIS_NEXT_COUPLET_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_THESIS_TAXON_NAME_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_TABLE :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_MATERIAL_FIELD :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_REFERENCE_FIELD :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_SECTION_TITLE_FIELD :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_PLATE_DESCRIPTION_FIELD :\r\n\t\t\t\treturn new cfield_textarea($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_EDITOR_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_EDITOR_TYPE_ONLY_REFERENCE_CITATIONS :\r\n\t\t\t\treturn new cfield_editor($pFieldDetails);\r\n\t\t\t\r\n\t\t\tcase (int) FIELD_HTML_EDITOR_TYPE_NO_CITATIONS :\r\n\t\t\t\treturn new cfield_editor_no_citations($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_SIMPLE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_ROUNDED_SIMPLE_TEXTAREA :\r\n\t\t\tcase (int) FIELD_HTML_TEXTAREA_PLATE_DESCRIPTION_TYPE :\r\n\t\t\t\treturn new cfield_textarea_simple($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_SELECT_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_MULTIPLE_SELECT_TYPE :\r\n\t\t\t\treturn new cfield_select($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_RADIO_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_CHECKBOX_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_RADIO_PLATE_APPEARANCE_TYPE :\r\n\t\t\t\treturn new cfield_radio($pFieldDetails);\r\n\t\t\t\r\n\t\t\tcase (int) FIELD_HTML_AUTOCOMPLETE_TYPE :\r\n\t\t\t\treturn new cfield_autocomplete($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_FACEBOOK_AUTOCOMPLETE_TYPE :\r\n\t\t\t\treturn new cfield_facebookautocomplete($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_TAXON_CLASSIFICATION_AUTOCOMPLETE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_TAXON_CLASSIFICATION_AUTOCOMPLETE_SINGLE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_SUBJECT_CLASSIFICATION_AUTOCOMPLETE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_SUBJECT_CLASSIFICATION_AUTOCOMPLETE_SINGLE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_CHRONOLOGICAL_CLASSIFICATION_AUTOCOMPLETE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_CHRONOLOGICAL_CLASSIFICATION_AUTOCOMPLETE_SINGLE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_GEOGRAPHICAL_CLASSIFICATION_AUTOCOMPLETE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_GEOGRAPHICAL_CLASSIFICATION_AUTOCOMPLETE_SINGLE_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_TAXON_TREATMENT_CLASSIFICATION :\r\n\t\t\t\treturn new cfield_taxon_classification_autocomplete($pFieldDetails);\r\n\t\t\tcase (int) FIELD_HTML_FILE_UPLOAD_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_FILE_UPLOAD_MATERIAL_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_FILE_UPLOAD_CHECKLIST_TAXON_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_FILE_UPLOAD_TAXONOMIC_COVERAGE_TAXA_TYPE :\r\n\t\t\tcase (int) FIELD_HTML_FILE_UPLOAD_FIGURE_IMAGE :\r\n\t\t\tcase (int) FIELD_HTML_FILE_UPLOAD_FIGURE_PLATE_IMAGE :\r\n\t\t\t\treturn new cfield_file_upload($pFieldDetails);\r\n\t\t}\r\n\t}", "private function newCharacterField(stdClass $fieldDef): DBTable\\Field\n {\n $field = new Fld\\Character($fieldDef->column_name);\n $this->setProperties($field, $fieldDef);\n\n $field->setMaxCharacters( $fieldDef->character_maximum_length );\n\n return $field;\n }", "protected function createField($name,$arguments)\n {\n $label = array_get($arguments,0);\n $fieldType = array_get($arguments,1);\n $fieldArgs = null;\n $inputType = array_get($arguments,2);\n $inputOpts = array_get($arguments,3);\n\n if (is_array($fieldType)) {\n list ($fieldType,$fieldArgs) = $fieldType;\n }\n\n $field = FieldBlueprint::create($name,$fieldType,$fieldArgs,$this)\n ->withInput($label,$inputType,$this->fields->count(),$inputOpts);\n\n if ($fieldType === FieldBlueprint::TITLE) {\n $this->title = $field;\n }\n return $this->fields[$name] = $field;\n }", "protected abstract function get_rest_field_type();", "public function _typecastLoadField(Field $f, $value)\n {\n // LOB fields return resource stream\n if (is_resource($value)) {\n $value = stream_get_contents($value);\n }\n\n // work only on copied value not real one !!!\n $v = is_object($value) ? clone $value : $value;\n\n switch ($f->type) {\n case 'string':\n case 'text':\n // do nothing - it's ok as it is\n break;\n case 'integer':\n $v = (int) $v;\n break;\n case 'float':\n $v = (float) $v;\n break;\n case 'money':\n $v = round($v, 4);\n break;\n case 'boolean':\n if (isset($f->enum) && is_array($f->enum)) {\n if (isset($f->enum[0]) && $v == $f->enum[0]) {\n $v = false;\n } elseif (isset($f->enum[1]) && $v == $f->enum[1]) {\n $v = true;\n } else {\n $v = null;\n }\n } elseif ($v === '') {\n $v = null;\n } else {\n $v = (bool) $v;\n }\n break;\n case 'date':\n case 'datetime':\n case 'time':\n $dt_class = isset($f->dateTimeClass) ? $f->dateTimeClass : 'DateTime';\n $tz_class = isset($f->dateTimeZoneClass) ? $f->dateTimeZoneClass : 'DateTimeZone';\n\n if (is_numeric($v)) {\n $v = new $dt_class('@'.$v);\n } elseif (is_string($v)) {\n // ! symbol in date format is essential here to remove time part of DateTime - don't remove, this is not a bug\n $format = ['date' => '+!Y-m-d', 'datetime' => '+!Y-m-d H:i:s', 'time' => '+!H:i:s'];\n $format = $f->persist_format ?: $format[$f->type];\n\n // datetime only - set from persisting timezone\n if ($f->type == 'datetime' && isset($f->persist_timezone)) {\n $v = $dt_class::createFromFormat($format, $v, new $tz_class($f->persist_timezone));\n if ($v === false) {\n throw new Exception(['Incorrectly formatted datetime', 'format' => $format, 'value' => $value, 'field' => $f]);\n }\n $v->setTimeZone(new $tz_class(date_default_timezone_get()));\n } else {\n $v = $dt_class::createFromFormat($format, $v);\n if ($v === false) {\n throw new Exception(['Incorrectly formatted date/time', 'format' => $format, 'value' => $value, 'field' => $f]);\n }\n }\n\n // need to cast here because DateTime::createFromFormat returns DateTime object not $dt_class\n // this is what Carbon::instance(DateTime $dt) method does for example\n if ($dt_class != 'DateTime') {\n $v = new $dt_class($v->format('Y-m-d H:i:s.u'), $v->getTimeZone());\n }\n }\n break;\n case 'array':\n // don't decode if we already use some kind of serialization\n $v = $f->serialize ? $v : $this->jsonDecode($f, $v, true);\n break;\n case 'object':\n // don't decode if we already use some kind of serialization\n $v = $f->serialize ? $v : $this->jsonDecode($f, $v, false);\n break;\n }\n\n return $v;\n }", "protected function makeStandaloneField(): TcaField\n {\n $table = $this->getService(TableFactory::class)\n ->create('flex-form-dummy-table', $this->getService(ExtConfigContext::class));\n \n return $table->getType()->getField('flex');\n }", "public static function factory()\n {\n $class = get_called_class();\n $object = new $class();\n foreach (static::getDefaults() as $field => $value) {\n $object->{$field} = $value;\n }\n return $object;\n }", "public function createFieldFromArray($column)\n {\n $dataType = ArrayUtils::get($column, 'datatype');\n if (ArrayUtils::get($column, 'type') === null) {\n $column['type'] = $this->source->getTypeFromSource($dataType);\n }\n\n // PRIMARY KEY must be required\n if ($column['primary_key']) {\n $column['required'] = true;\n }\n\n $castAttributesToJSON = function (&$array, array $keys) {\n foreach ($keys as $key) {\n $value = json_decode(isset($array[$key]) ? $array[$key] : '', true);\n $array[$key] = $value ? $value : null;\n }\n };\n\n $castAttributesToJSON($column, ['options', 'translation']);\n\n $fieldType = ArrayUtils::get($column, 'type');\n // NOTE: Alias column must are nullable\n if (DataTypes::isAliasType($fieldType)) {\n $column['nullable'] = true;\n } \n \n if ($this->isFloatingPointType($dataType)) {\n $column['length'] = sprintf('%d,%d', $column['precision'], $column['scale']);\n } else if ($this->source->isIntegerType($dataType)) {\n $column['length'] = $column['precision'];\n } else if (in_array($dataType, $this->noLengthDataTypes)) {\n $column['length'] = null; \n } else {\n $column['length'] = $column['char_length'];\n }\n\n $castAttributesToBool = function (&$array, array $keys) {\n foreach ($keys as $key) {\n $array[$key] = (bool) ArrayUtils::get($array, $key);\n }\n };\n\n $castAttributesToBool($column, [\n 'auto_increment',\n 'unique',\n 'managed',\n 'primary_key',\n 'signed',\n 'hidden_detail',\n 'hidden_browse',\n 'required',\n 'nullable',\n 'readonly',\n ]);\n\n $this->setFieldDataDefaultValue($column);\n\n return new Field($column);\n }", "public static function factory($importerType, $file, $options = false) {\n if (!($file instanceof EfrontFile)) {\n $file = new EfrontFile($file);\n }\n switch ($importerType) {\n case 'csv' : $factory = new EfrontImportCsv($file['path'], $options); break;\n }\n return $factory;\n }", "function acf_register_field_type($class)\n{\n}", "public function getFieldType(EntryInterface $entry = null, $locale = null);", "public function getFieldType(){\n \treturn $this->field_type;\n }", "public function getFieldType() {\n\t\t$subject = $this->Changelog()->getSubject();\n\t\t$field = $this->FieldName;\n\n\t\tif ($class = $subject->db($field)) {\n\t\t\treturn Extension::get_classname_without_arguments($class);\n\t\t} elseif(substr($field, -2) == 'ID') {\n\t\t\tif ($subject->has_one(substr($field, 0, -2))) return 'ForeignKey';\n\t\t}\n\n\t\tthrow new Exception('The corresponding field type could not be found.');\n\t}", "private function determineFieldType($string) {\n\n // Return the type as-is if found in FeeldTypes.\n if (in_array($string, FeeldTypes::$options))\n return $string;\n\n // Determine if the client just left the namespaces off.\n if (in_array('\\\\Feeld\\\\' . $string, FeeldTypes::$options))\n return '\\\\Feeld\\\\' . $string;\n\n // Try some reasonable alternates the client may be\n // thinking will work.\n switch($string) {\n case 'text': return FeeldTypes::TEXT;\n case 'text-field': return FeeldTypes::TEXT;\n case 'text_field': return FeeldTypes::TEXT;\n case 'password': return FeeldTypes::PASSWORD;\n case 'password-field': return FeeldTypes::PASSWORD;\n case 'password_field': return FeeldTypes::PASSWORD;\n case 'checkbox': return FeeldTypes::CHECKBOX;\n case 'select': return FeeldTypes::SELECTMENU;\n case 'select-menu': return FeeldTypes::SELECTMENU;\n case 'select_menu': return FeeldTypes::SELECTMENU;\n case 'dropmenu': return FeeldTypes::SELECTMENU;\n case 'drop-menu': return FeeldTypes::SELECTMENU;\n case 'drop_menu': return FeeldTypes::SELECTMENU;\n case 'radio': return FeeldTypes::RADIOSERIES;\n case 'textarea': return FeeldTypes::TEXTAREA;\n case 'upload': return FeeldTypes::FILEUPLOAD;\n case 'file': return FeeldTypes::FILEUPLOAD;\n }\n\n return false;\n }", "public static function guessType($value) {\r\n\t\t\r\n\t\tif (is_array($value) && (count($value) > 0)) {\r\n\t\t\t$value = first($value);\r\n\t\t}\r\n\r\n\t\tif ($value === NULL) {\r\n\t\t\treturn NULL;\r\n\t\t} else if (is_bool($value)) {\r\n\t\t\treturn FieldType::BOOLEAN;\r\n\t\t} else if (is_numeric($value) && !is_string($value)) {\r\n\t\t\treturn FieldType::NUMBER;\r\n\t\t} else {\r\n\t\t\treturn FieldType::TEXT;\r\n\t\t}\r\n\t}", "function create_field($field)\n{\n}", "function register_field_type($class)\n {\n }", "abstract public function getColumnTypeByField(Entity\\ScalarField $field);", "abstract public function getFieldByColumnType($name, $type, array $parameters = null);", "function makeFieldTypeFunction( $field_type, $table = 'auto' )\n{\n\tswitch ( $field_type )\n\t{\n\t\tcase 'date':\n\n\t\t\treturn 'ProperDate';\n\n\t\tcase 'numeric':\n\n\t\t\treturn 'removeDot00';\n\n\t\tcase 'codeds':\n\t\tcase 'exports':\n\n\t\t\tif ( $table === 'STAFF' )\n\t\t\t{\n\t\t\t\treturn 'StaffDecodeds';\n\t\t\t}\n\n\t\t\treturn 'DeCodeds';\n\n\t\tcase 'radio':\n\n\t\t\treturn 'makeCheckbox';\n\n\t\tcase 'textarea':\n\n\t\t\treturn 'makeTextarea';\n\n\t\tcase 'multiple':\n\n\t\t\treturn 'makeMultiple';\n\t}\n\n\treturn '';\n}", "public abstract function getFieldConverterClass();", "public function setType(string $value): CustomField\n {\n $this->type = $value;\n\n return $this;\n }", "public function getDbFieldType()\n {\n }", "public static function createField(IndexInterface $index, $field_identifier) {\n return new Field($index, $field_identifier);\n }", "public static function getFieldTypeMapping() {\n // Check the static cache first.\n if (empty(static::$fieldTypeMapping)) {\n // It's easier to write and understand this array in the form of\n // $search_api_field_type => array($data_types) and flip it below.\n $default_mapping = array(\n 'text' => array(\n 'field_item:string_long.string',\n 'field_item:text_long.string',\n 'field_item:text_with_summary.string',\n 'text',\n ),\n 'string' => array(\n 'string',\n 'email',\n 'uri',\n 'filter_format',\n 'duration_iso8601',\n ),\n 'integer' => array(\n 'integer',\n 'timespan',\n ),\n 'decimal' => array(\n 'decimal',\n 'float',\n ),\n 'date' => array(\n 'datetime_iso8601',\n 'timestamp',\n ),\n 'boolean' => array(\n 'boolean',\n ),\n // Types we know about but want/have to ignore.\n NULL => array(\n 'language',\n ),\n );\n\n foreach ($default_mapping as $search_api_type => $data_types) {\n foreach ($data_types as $data_type) {\n $mapping[$data_type] = $search_api_type;\n }\n }\n\n // Allow other modules to intercept and define what default type they want\n // to use for their data type.\n \\Drupal::moduleHandler()->alter('search_api_field_type_mapping', $mapping);\n\n static::$fieldTypeMapping = $mapping;\n }\n\n return static::$fieldTypeMapping;\n }", "public function getInputFilter()\n {\n $template = $this->getTemplate();\n return new $template();\n }", "private function getFieldType($val) {\n\t\t$type = \"TEXT\";\n\t\tif (is_numeric($val)) {\n\t\t\tif (floatval($val) == intval($val)) $type = \"INT\";\n\t\t\telse $type = \"NUMERIC\";\n\t\t}\n\t\treturn $type;\n\t}", "protected function createField($type = 'fa_icon_class', $widget_type = 'fa_icon_class', $cardinality = '1', $fieldFormatter = 'fa_icon_class') {\n $this->drupalGet('admin/structure/types/manage/' . $this->contentTypeName . '/fields');\n\n // Go to the 'Add field' page.\n $this->clickLink('Add field');\n\n // Make a name for this field.\n $field_name = strtolower($this->randomMachineName(10));\n\n // Fill out the field form.\n $edit = array(\n 'new_storage_type' => $type,\n 'field_name' => $field_name,\n 'label' => $field_name,\n );\n $this->drupalPostForm(NULL, $edit, t('Save and continue'));\n\n // Fill out the $cardinality form as if we're not using an unlimited number\n // of values.\n $edit = array(\n 'cardinality' => 'number',\n 'cardinality_number' => (string) $cardinality,\n );\n // If we have -1 for $cardinality, we should change the form's drop-down\n // from 'Number' to 'Unlimited'.\n if (-1 == $cardinality) {\n $edit = array(\n 'cardinality' => '-1',\n 'cardinality_number' => '1',\n );\n }\n\n // And now we save the cardinality settings.\n $this->drupalPostForm(NULL, $edit, t('Save field settings'));\n debug(\n t('Saved settings for field %field_name with widget %widget_type and cardinality %cardinality',\n array(\n '%field_name' => $field_name,\n '%widget_type' => $widget_type,\n '%cardinality' => $cardinality,\n )\n )\n );\n $this->assertText(t('Updated field @name field settings.', array('@name' => $field_name)));\n\n // Set the widget type for the newly created field.\n $this->drupalGet('admin/structure/types/manage/' . $this->contentTypeName . '/form-display');\n $edit = array(\n 'fields[field_' . $field_name . '][type]' => $widget_type,\n );\n $this->drupalPostForm(NULL, $edit, t('Save'));\n\n // Set the field formatter for the newly created field.\n $this->drupalGet('admin/structure/types/manage/' . $this->contentTypeName . '/display');\n $edit1 = array(\n 'fields[field_' . $field_name . '][type]' => $fieldFormatter,\n );\n $this->drupalPostForm(NULL, $edit1, t('Save'));\n\n return $field_name;\n }", "protected function getFactoryByType( $type ) {\n\t\tif ( !$this->factories->hasKey( $type ) ) {\n\t\t\t$creator = new FactoryCreator();\n\t\t\t$factory = $creator->createFactoryByFileExtension( $type );\n\n\t\t\t$this->factories->set( $type, $factory );\n\t\t\treturn $factory;\n\t\t}\n\n\t\treturn $this->factories->get( $type );\n\t}", "public function create(string $fieldName, array $parameters): FieldMetadata\n {\n return new FieldMetadata($fieldName, $parameters);\n }", "public static function factory(string $fileContent): object {\n if (\"NadeoFile\" === substr($fileContent, 0, 9)) {\n return new Mux($fileContent);\n } else if (\"OggS\" === substr($fileContent, 0, 4)) {\n return new Ogg($fileContent);\n } else {\n throw new \\InvalidArgumentException(\"The file can neither be identified as .mux or .ogg.\");\n }\n }", "public function testAcceptsAnInputObjectTypeWithAFieldFunction()\n {\n /** @noinspection PhpUnhandledExceptionInspection */\n $inputObjectType = newInputObjectType([\n 'name' => 'SomeInputObject',\n 'fields' => function () {\n return ['f' => ['type' => stringType()]];\n },\n ]);\n\n /** @noinspection PhpUnhandledExceptionInspection */\n $field = $inputObjectType->getField('f');\n $this->assertEquals(stringType(), $field->getType());\n }", "public static function get_new($type) {\n // Get type name\n if (!$type) {\n $type = 'general';\n }\n if (!preg_match('~^[a-z][a-z0-9_]*$~', $type)) {\n throw new coding_exception(\"Invalid forum type name: $type\");\n }\n $classname = 'forumngtype_' . $type;\n\n // Require library\n global $CFG;\n require_once(dirname(__FILE__) . \"/$type/$classname.php\");\n\n // Create and return type object\n return new $classname;\n }", "function getFieldType() {\n\t\treturn 'contact_field';\n\t}", "public function createField($fieldName, $defaultValue = null, $main = false)\n {\n $fieldType = $this->fieldType;\n $field = $fieldType::create($fieldName, $this->Title, $defaultValue);\n $field->addExtraClass($this->ExtraClass);\n $this->extend('updateCreateField', $field);\n return $field;\n }", "public function makeField($name, $arguments) {\n $field = new FieldMetadata($name);\n foreach($arguments as $key => $value) {\n $field->$key = $value;\n }\n\n return $field;\n }", "abstract public function convertField($field);", "function getTypeOfField($fieldName);", "public function setType(string $type) : field {\r\n $this->type = $type;\r\n return $this;\r\n }", "public static function make(string $name = '', string $field = ''): static\n {\n return new static($name, $field);\n }", "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 testAcceptsAnObjectTypeWithAFieldFunction()\n {\n /** @noinspection PhpUnhandledExceptionInspection */\n $objectType = newObjectType([\n 'name' => 'SomeObject',\n 'fields' => function () {\n return ['f' => ['type' => stringType()]];\n }\n ]);\n\n /** @noinspection PhpUnhandledExceptionInspection */\n $this->assertEquals(stringType(), $objectType->getField('f')->getType());\n }", "function get_wordpress_custom_field_type($mytype) {\n $corresp = array(\n 'date' => 'string',\n 'email' => 'string',\n 'postal_code' => 'string',\n 'text' => 'string',\n 'tel' => 'string',\n 'number' => 'integer',\n 'radio' => 'string',\n 'dropdown' => 'string',\n );\n if (isset($corresp[$mytype])) return $corresp[$mytype];\n else return 'string';\n}", "public static function createSelf()\n {\n $dataTypeFactory = new self();\n\n $dataTypeFactory->addFactoryTypeHandler('bit', new BitTypeFactory());\n // Integer type mappers.\n $dataTypeFactory->addFactoryTypeHandler('tinyint', new TinyIntTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('smallint', new SmallIntTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('mediumint', new MediumIntTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('int', new IntTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('bigint', new BigIntTypeFactory());\n // Numeric-point type mappers.\n $dataTypeFactory->addFactoryTypeHandler('double', new DoubleTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('float', new FloatTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('decimal', new DecimalTypeFactory());\n // Date and time mappers.\n $dataTypeFactory->addFactoryTypeHandler('date', new DateTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('time', new TimeTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('timestamp', new TimestampTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('datetime', new DateTimeTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('year', new YearTypeFactory());\n // Char type mappers.\n $dataTypeFactory->addFactoryTypeHandler('char', new CharTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('varchar', new VarCharTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('binary', new BinaryTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('varbinary', new VarBinaryTypeFactory());\n // Blob type mappers.\n $dataTypeFactory->addFactoryTypeHandler('tinyblob', new TinyBlobTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('blob', new BlobTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('mediumblob', new MediumBlobTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('longblob', new LongBlobTypeFactory());\n // Text type mappers.\n $dataTypeFactory->addFactoryTypeHandler('tinytext', new TinyTextTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('text', new TextTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('mediumtext', new MediumTextTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('longtext', new LongTextTypeFactory());\n // Option type mappers.\n $dataTypeFactory->addFactoryTypeHandler('enum', new EnumTypeFactory());\n $dataTypeFactory->addFactoryTypeHandler('set', new SetTypeFactory());\n // Other type mappers.\n $dataTypeFactory->addFactoryTypeHandler('json', new JsonTypeFactory());\n\n return $dataTypeFactory;\n }", "public function createFrom()\n\t{\n\t\t$from = new AgaviFromType();\n\t\t$this->froms[] = $from;\n\t\treturn $from;\n\t}", "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 }", "public function factory($text)\n {\n if (!$this->isTag($text)) {\n return null;\n }\n preg_match('!\n @(\\w*)\n (?:\n \\s*(\\w*)\n ){0,1}\n !x', $text, $matches);\n\n array_shift($matches);\n list($name, $value) = $matches;\n\n return new TagReflection($name, $value);\n }", "public function getFieldType()\n {\n return self::TYPE_PARAMETERIZED;\n }", "private function getTypeOfData(string $fieldType, ?string $formatType): string\n {\n $type = $formatType;\n if ($fieldType == 'bool') {\n $type = 'string2bool';\n } elseif ($formatType == null) {\n $type = 'string';\n } elseif ($fieldType != $formatType) {\n if ($formatType == 'datetime') {\n $type = 'string2' . $type;\n }\n }\n return $type;\n }", "public function make($fieldType, $repository, $optionName, $failValue = false)\n {\n return call_user_func('Form::'.$fieldType, 'options['.$optionName.']', $this->get($repository, $optionName, $failValue));\n }", "private function getFilterType(Definition $definition) {\n\t\t$queryableFields = [];\n\t\tforeach ($definition->getFilterable() as $field => $filter) {\n\t\t\t$queryableFields[$field] = [\n\t\t\t\t\"type\" => Type::json(),\n\t\t\t\t\"filter\" => $filter,\n\t\t\t];\n\t\t}\n\n\t\treturn new InputObjectType([\n\t\t\t'name' => ucfirst($definition->getName()) . 'Filter',\n\t\t\t'fields' => $queryableFields,\n\t\t]);\n\t}", "public function testTypes()\n {\n $this->innerField->getFormType()->willReturn('FormType');\n $this->innerField->getViewType()->willReturn('ViewType');\n $this->innerField->getStorageType()->willReturn('StorageType');\n\n $field = $this->createField([]);\n $this->assertEquals('FormType', $field->getFormType());\n $this->assertEquals('StorageType', $field->getStorageType());\n $this->assertEquals('ViewType', $field->getViewType());\n }", "private function newEnumeratedField(stdClass $fieldDef): DBTable\\Field\n {\n $field = new Fld\\Enumerated($fieldDef->column_name);\n $this->setProperties($field, $fieldDef);\n $field->setEnumType($fieldDef->udt_name)\n ->setSchema($fieldDef->udt_schema)\n ->runEnumValues($this->db);\n\n return $field;\n }", "private function getTypeFile($type) {\n return new File($this->path, $type);\n }", "public function getTypes()\n {\n $val = parent::getTypes();\n if (!$val || !is_object($val)) {\n return $val;\n }\n $xml = $val->getValue();\n $xml .= <<<XML\n\n\t <fieldType name=\"autosuggest_text\" class=\"solr.TextField\"\n\t positionIncrementGap=\"100\">\n\t <analyzer type=\"index\">\n\t <tokenizer class=\"solr.StandardTokenizerFactory\"/>\n\t <filter class=\"solr.LowerCaseFilterFactory\"/>\n\t <filter class=\"solr.ShingleFilterFactory\" minShingleSize=\"2\" maxShingleSize=\"4\" outputUnigrams=\"true\" outputUnigramsIfNoShingles=\"true\" />\n\t <filter class=\"solr.PatternReplaceFilterFactory\" pattern=\"^([0-9. ])*$\" replacement=\"\"\n\t replace=\"all\"/>\n\t <filter class=\"solr.RemoveDuplicatesTokenFilterFactory\"/>\n\t </analyzer>\n\t <analyzer type=\"query\">\n\t <tokenizer class=\"solr.StandardTokenizerFactory\"/>\n\t <filter class=\"solr.LowerCaseFilterFactory\"/>\n\t </analyzer>\n\t </fieldType>\n\nXML;\n $val->setValue($xml);\n return $val;\n }", "private function newXMLField(stdClass $fieldDef): DBTable\\Field\n {\n $field = new Fld\\XML($fieldDef->column_name);\n $this->setProperties($field, $fieldDef);\n\n return $field;\n }", "public function getField(int $position): FieldInterface\n {\n return $this->fields[$position] ?? $this->fields[$position] = $this->instantiateField($position);\n }", "public function __construct(array $values, $entity_type = 'field_entity') {\n // Check required properties.\n if (empty($values['type'])) {\n throw new FieldException('Attempt to create a field with no type.');\n }\n // Temporary BC layer: accept both 'id' and 'field_name'.\n // @todo $field_name and the handling for it will be removed in\n // http://drupal.org/node/1953408.\n if (empty($values['field_name']) && empty($values['id'])) {\n throw new FieldException('Attempt to create an unnamed field.');\n }\n if (empty($values['id'])) {\n $values['id'] = $values['field_name'];\n unset($values['field_name']);\n }\n if (!preg_match('/^[_a-z]+[_a-z0-9]*$/', $values['id'])) {\n throw new FieldException('Attempt to create a field with invalid characters. Only lowercase alphanumeric characters and underscores are allowed, and only lowercase letters and underscore are allowed as the first character');\n }\n\n parent::__construct($values, $entity_type);\n }", "function GetFieldType($table,$field)\n\t{\n\t\t$tbl = $this->Table($table);\n\t\treturn $tbl->GetFieldType($field);\n\t}", "function getFieldType($n){\n\t\t$type = $this->fields[$n]['Type'];\n\t\t//split type\n\t\tereg('^([^ (]+)(\\((.+)\\))?([ ](.+))?$',$type,$split);\n\t\tif ($split[1] == 'enum' || $split[1] == 'set' || $split[1] == 'varchar')\n\t\t\treturn 'string';\n\t\telse if ($split[1] == 'tinytext' || $split[1] == 'text' || $split[1] == 'mediumtext' || $split[1] == 'longtext')\n\t\t\treturn 'blob';\n\t\telse if ($split[1] == 'tinyblob' || $split[1] == 'mediumblob' || $split[1] == 'longblob')\n\t\t\treturn 'blob';\n\t\telse if ($split[1] == 'tinyint' || $split[1] == 'smallint' || $split[1] == 'mediumint' || $split[1] == 'bigint')\n\t\t\treturn 'int';\n\t\telse\n\t\t\treturn $split[1];\t\t\n\t}", "public function getDataWithTypeField() {}", "public function get_field( $args, $name = '' ) {\n\n\t\tif ( empty( $name ) ) {\n\t\t\t$name = isset( $args['type'] ) ? $args['type'] : false;\n\t\t}\n\n\t\treturn $name ? $this->get_object( $name, 'field', $args ) : null;\n\t}", "public function fromValue(\n ExtraField $field,\n $value\n ) {\n Assert::stringNotEmpty($value);\n\n $name = $field->name;\n\n $matches = [];\n\n preg_match(\n \"/^$name\\|([^\\|]+)$/\",\n $value,\n $matches\n );\n\n if (count($matches) !== 2)\n throw new \\Exception(\n 'Значение дополнительного поля имеет неизвестный формат.'\n );\n\n $field->value = $matches[1];\n\n return $field;\n }", "public static function create() {\n $factory = new static();\n return $factory->createFlo();\n }", "public function getFieldType($fieldName) {\n\t\tif (is_int(strpos($fieldName, '--palette--'))) {\n\t\t\treturn 'palette';\n\t\t}\n\t\tif (is_int(strpos($fieldName, '--widget--'))) {\n\t\t\treturn 'widget';\n\t\t}\n\t\t$configuration = $this->getConfiguration($fieldName);\n\t\t$result = $configuration['type'];\n\n\t\tif (!empty($configuration['eval'])) {\n\t\t\t$parts = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::trimExplode(',', $configuration['eval']);\n\t\t\tif (in_array('datetime', $parts)) {\n\t\t\t\t$result = 'datetime';\n\t\t\t}\n\t\t\tif (in_array('date', $parts)) {\n\t\t\t\t$result = 'date';\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}" ]
[ "0.6028556", "0.58274305", "0.5769017", "0.5756089", "0.5676029", "0.5576192", "0.551755", "0.55102456", "0.5446041", "0.54235923", "0.5419205", "0.5396808", "0.5396808", "0.5388819", "0.538405", "0.53764224", "0.535508", "0.5354126", "0.53482753", "0.53230196", "0.5291476", "0.5291476", "0.5279963", "0.5236863", "0.5230959", "0.52233857", "0.52173465", "0.5208334", "0.5203876", "0.51513404", "0.51319385", "0.5106615", "0.5050025", "0.5044138", "0.50341964", "0.50288206", "0.50282866", "0.5023862", "0.50158745", "0.4990661", "0.49844515", "0.49781883", "0.49751407", "0.49641415", "0.49521598", "0.49494997", "0.49406296", "0.49314743", "0.49171486", "0.49109656", "0.49070522", "0.4902176", "0.48960748", "0.48939887", "0.48939824", "0.48929805", "0.48847455", "0.4881679", "0.48650768", "0.48639867", "0.48545325", "0.4841086", "0.48404515", "0.4837238", "0.48306015", "0.48256326", "0.48223683", "0.481722", "0.4813954", "0.4810282", "0.48037362", "0.48015264", "0.47995874", "0.4799328", "0.47947198", "0.4794591", "0.47934917", "0.47876394", "0.47856542", "0.4778955", "0.47789198", "0.47732854", "0.47702923", "0.47699067", "0.47643355", "0.47592565", "0.47537762", "0.47531182", "0.47505298", "0.47496164", "0.47489515", "0.4737559", "0.47226974", "0.4719728", "0.47158498", "0.47117066", "0.47081462", "0.47035357", "0.47013", "0.469618", "0.46944025" ]
0.0
-1
Gets the fontfile for current font.
public function getFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFontFile() {}", "public function getFontFile() {}", "public function getCurrentFont()\n {\n return $this->currentFont;\n }", "protected function _getFontPath()\n {\n\n $current_dir = rtrim(dirname(__FILE__), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;\n $font_file = 'captcha.ttf';\n\n return $current_dir . $font_file;\n\n }", "protected function _getFont()\n\t{\n\t\treturn $this->_font;\n\t}", "public function getFont() {}", "public function getFont() {}", "public function getFont() {}", "public function getFont()\n {\n return $this->font;\n }", "function getFont() { return $this->readFont(); }", "public function getFontFile2() {}", "public function getFontFile3() {}", "function getFont() {return $this->readFont();}", "public function getFont()\n {\n return $this->font[rand(0, count($this->font) - 1)];\n }", "public function getFonte() {\n return $this->fonte;\n }", "protected function getFont($path)\n {\n $styles = $this->config->getFonts();\n return $this->getUrl($styles.$path);\n }", "function getFont() { return $this->_font; }", "private function _getFontFile($key) {}", "public function getFont(XMLObj $name)\r\n\t{\r\n\t\treturn AD.$this->getConfig()->getChildren(\"image\")->getString(\"fontPath\").$name->getString(\"font\");\r\n\t}", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function getFontByName($name){\n $fontlist = $this->getFonts();\n\n // font found\n if (isset($fontlist[$name])){\n return $fontlist[$name];\n \n // get first font\n }else{\n return array_values($fontlist)[0];\n }\n }", "protected function loadFont()\n {\n $id = $this->getRequest()->getParam('id', 0);\n\n $font = $this->fontFactory->create();\n if ($id) {\n $font->load($id);\n }\n\n $this->registry->register('current_font', $font);\n\n return $font;\n }", "public function getFontName() {}", "public function getFontName() {}", "public function getFontDescriptor();", "public function getFontName() {}", "public function getFontName() {}", "public function getFontName() {}", "public function getFontName() {}", "public function getFontName() {}", "public function getFontName() {}", "public function getFontId()\n {\n return $this->font_id;\n }", "public function getFonts();", "public function getFontName()\n {\n if (array_key_exists(\"fontName\", $this->_propDict)) {\n return $this->_propDict[\"fontName\"];\n } else {\n return null;\n }\n }", "public function getFontName();", "public function getBaseFontName(): string\n {\n return $this->get(\"BaseFont\")->getValue();\n }", "public function getFontFamily() {\n\t\treturn $this->font_family;\n\t}", "public function getAppearanceFont() {}", "public function fontPath($name, $type = null)\n {\n $fileName = $name . '.' . ($type ?: 'ttf');\n\n if ($this->document instanceof DifferentFontsLocation) {\n $location = $this->document->fontsLocation();\n\n return $this->absolutPathForDifferentLocation($location, $fileName);\n }\n\n return self::absolutePath(\n config('pdf.fonts.disk', 'local'),\n config('pdf.fonts.path', ''),\n $fileName\n );\n }", "public static function get_font( $font_name ) {\n\n\t\t$fonts = self::get_all_fonts();\n\n\t\tif ( isset( $fonts[ $font_name ] ) ) {\n\t\t\treturn $fonts[ $font_name ];\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function getFontName() {\n\t\treturn $this->fontName;\n\t}", "public function getFontFamily() {}", "public function getFontFamily() {}", "public function getFontFamily() {}", "public function getFontFamily() {}", "public function getFontFamily() {}", "function getFontStyle(array $font = null)\n{\n if ($font && is_array($font)) {\n return \"@font-face { font-family: '\" . $font['name'] . \"'; src: url('\" . $font['path'] . \"') format('\" . $font['type'] . \"')\\n\" . strtolower($font['name']) . \"{font-family: '\" . $font['name'] . \"'\\n\";\n }\n return '';\n}", "public function fontsDirectory()\n {\n if ($this->document instanceof DifferentFontsLocation) {\n $location = $this->document->fontsLocation();\n\n return $this->absolutPathForDifferentLocation($location, null);\n }\n\n return self::absolutePath(\n config('pdf.fonts.disk', 'local'),\n config('pdf.fonts.path', '')\n );\n }", "function getParentFont() { return $this->readParentFont(); }", "protected function fontPath($font)\n {\n // Check all supported image formats:\n $filenames = ['css/font/' . $font];\n $fileMatch = $this->themeTools->findContainingTheme($filenames, true);\n return empty($fileMatch) ? false : $fileMatch;\n }", "public function get_fonts(){\n\t\treturn $this->_fonts;\n\t}", "function getParentFont() {return $this->readParentFont();}", "public function get_font_icon() {\n\t\t$icons = array(\n\t\t\t'twitter' => 'twitter',\n\t\t\t'instagram' => 'instagram'\n\t\t\t);\n\t\tif ( isset( $icons[ $this->get_embed_type() ] ) ) {\n\t\t\treturn $icons[ $this->get_embed_type() ];\n\t\t} else {\n\t\t\treturn 'flickr';\n\t\t}\n\t}", "static function load_font()\n\t{\n\t\t$font_configs \t= self::load_iconfont_list();\n\n\t\t$output\t\t\t= \"\";\n\t\t\n\t\tif(!empty($font_configs))\n\t\t{\n\t\t\t$output .=\"<style type='text/css'>\";\n\t\t\tforeach($font_configs as $font_name => $font_list)\n\t\t\t{\n\t\t\t\t$append = empty($font_list['append']) ? \"\" : $font_list['append'];\n\t\t\t\t$qmark\t= empty($append) ? \"?\" : $append;\n\t\t\t\n\t\t\t\t$fstring \t\t= $font_list['folder'].'/'.$font_name;\n\t\t\t\t\n\t\t\t\t$output .=\"\n@font-face {font-family: '{$font_name}'; font-weight: normal; font-style: normal;\nsrc: url('{$fstring}.eot{$append}');\nsrc: url('{$fstring}.eot{$qmark}#iefix') format('embedded-opentype'), \nurl('{$fstring}.woff{$append}') format('woff'), \nurl('{$fstring}.ttf{$append}') format('truetype'), \nurl('{$fstring}.svg{$append}#{$font_name}') format('svg');\n} #top .avia-font-{$font_name}, body .avia-font-{$font_name}, html body [data-av_iconfont='{$font_name}']:before{ font-family: '{$font_name}'; }\n\";\n\t\t\t}\n\t\t\t\n\t\t$output .=\"</style>\";\n\t\t\n\t\t}\n\t\treturn $output;\n\t}", "function fetch_fontlist()\n\t{\n\t\t$path = APPPATH.'/fonts/';\n\n\t\t$font_files = array();\n\n\t\tif ($fp = @opendir($path))\n\t\t{\n\t\t\twhile (false !== ($file = readdir($fp)))\n\t\t\t{\n\t\t\t\tif (stripos(substr($file, -4), '.ttf') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$name = substr($file, 0, -4);\n\t\t\t\t\t$name = ucwords(str_replace(\"_\", \" \", $name));\n\n\t\t\t\t\t$font_files[$file] = $name;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tclosedir($fp);\n\t\t}\n\n\t\treturn $font_files;\n\t}", "abstract public function getFontFamily();", "public function get_fonts() { return array(); }", "function getFontByName($name, $folder = 'assets/fonts')\n{\n try {\n $fonts = getFontsInFolder($folder);\n $i = -1;\n while (++$i < count($fonts)) {\n if ($fonts[$i]['name'] === $name) {\n return $fonts[$i];\n }\n }\n return null;\n } catch (Exception $e) {\n throw $e;\n }\n}", "function fonts($file)\n {\n return assets('fonts', $file);\n }", "private function getFontOptions()\n {\n return $this->fontOptions;\n }", "function find_svg()\n\t{\n\t\t$files = scandir($this->paths['tempdir']);\n\t\t\n\t\t//fetch the eot file first so we know the acutal filename, in case there are multiple svg files, then based on that find the svg file\n\t\t$filename = \"\";\n\t\tforeach($files as $file)\n\t\t{ \n\t\t\tif(strpos(strtolower($file), '.eot') !== false && $file[0] != '.')\n\t\t\t{\n\t\t\t\t$filename = strtolower( pathinfo($file, PATHINFO_FILENAME) );\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->origin_font_name = $filename;\n\t\t\n\t\tforeach($files as $file)\n\t\t{ \n\t\t\tif(strpos(strtolower($file), $filename.'.svg') !== false && $file[0] != '.')\n\t\t\t{\n\t\t\t\treturn $file;\n\t\t\t}\n\t\t}\n\t}", "function twentytwelve_get_font_url() {\n\t$font_url = '';\n\n\t/* translators: If there are characters in your language that are not supported\n\t * by Open Sans, translate this to 'off'. Do not translate into your own language.\n\t */\n\tif ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {\n\t\t$subsets = 'latin,latin-ext';\n\n\t\t/* translators: To add an additional Open Sans character subset specific to your language,\n\t\t * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.\n\t\t */\n\t\t$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );\n\n\t\tif ( 'cyrillic' == $subset ) {\n\t\t\t$subsets .= ',cyrillic,cyrillic-ext';\n\t\t} elseif ( 'greek' == $subset ) {\n\t\t\t$subsets .= ',greek,greek-ext';\n\t\t} elseif ( 'vietnamese' == $subset ) {\n\t\t\t$subsets .= ',vietnamese';\n\t\t}\n\n\t\t$query_args = array(\n\t\t\t'family' => 'Open+Sans:400italic,700italic,400,700',\n\t\t\t'subset' => $subsets,\n\t\t);\n\t\t$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );\n\t}\n\n\treturn $font_url;\n}", "function readFontString()\r\n {\r\n\r\n $styles=$this->fontStyles();\r\n\r\n $result=\" font-family: $this->_family; font-size: $this->_size; $styles\";\r\n return($result);\r\n }", "public function getDescendantFont() {}", "public function getCurrentFile()\n {\n return $this->currentFile;\n }", "function twentytwelve_get_font_url() {\n\t$font_url = '';\n\t/* translators: If there are characters in your language that are not supported\n\t * by Open Sans, translate this to 'off'. Do not translate into your own language.\n\t */\n\tif ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {\n\t\t$subsets = 'latin,latin-ext';\n\t\t/* translators: To add an additional Open Sans character subset specific to your language,\n\t\t * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.\n\t\t */\n\t\t$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );\n\t\tif ( 'cyrillic' == $subset )\n\t\t\t$subsets .= ',cyrillic,cyrillic-ext';\n\t\telseif ( 'greek' == $subset )\n\t\t\t$subsets .= ',greek,greek-ext';\n\t\telseif ( 'vietnamese' == $subset )\n\t\t\t$subsets .= ',vietnamese';\n\t\t$protocol = is_ssl() ? 'https' : 'http';\n\t\t$query_args = array(\n\t\t\t'family' => 'Open+Sans:400italic,700italic,400,700',\n\t\t\t'subset' => $subsets,\n\t\t);\n\t\t$font_url = add_query_arg( $query_args, \"$protocol://fonts.googleapis.com/css\" );\n\t}\n\treturn $font_url;\n}", "function twentytwelve_get_font_url() {\n $font_url = '';\n\n /* translators: If there are characters in your language that are not supported\n * by Open Sans, translate this to 'off'. Do not translate into your own language.\n */\n if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {\n $subsets = 'latin,latin-ext';\n\n /* translators: To add an additional Open Sans character subset specific to your language,\n * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.\n */\n $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );\n\n if ( 'cyrillic' == $subset )\n $subsets .= ',cyrillic,cyrillic-ext';\n elseif ( 'greek' == $subset )\n $subsets .= ',greek,greek-ext';\n elseif ( 'vietnamese' == $subset )\n $subsets .= ',vietnamese';\n\n $protocol = is_ssl() ? 'https' : 'http';\n $query_args = array(\n 'family' => 'Open+Sans:400italic,700italic,400,700',\n 'subset' => $subsets,\n );\n $font_url = add_query_arg( $query_args, \"$protocol://fonts.googleapis.com/css\" );\n }\n\n return $font_url;\n }", "public function &getFontMetric() {\r\n return $this->font_metric;\r\n }", "function _captcha_show_gd_img_get_fonts()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\t\t\n\t\t$fonts = array();\n\t\t$_path = $this->path_fonts;\n\t\t\n\t\tif ( $_dir = @opendir( $_path ) )\n\t\t{\n\t\t\twhile( false !== ( $_file = @readdir( $_dir ) ) )\n\t\t\t{\n\t\t\t\tif ( preg_match( \"#\\.(ttf)$#i\", $_file ) )\n\t\t\t\t{\n\t\t\t\t\t$fonts[] = $_path . '/' . $_file;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $fonts;\n\t}", "function updateFont($file){\n\t$filenamepart=explodeFile($file);\n\t$buffer=file_get_contents($file);\n\t$posL = getNextFontFace($buffer,0);\n\tif ($posL===false) {\n\t\techo \"\\n=> NOTICE: $file has no font-face! returning.\\n\"; return;\n\t}\n\tif (getNextFontFace($buffer,$posL+1)!==false) {\n\t\techo \"\\n=> ERROR: $file has more than one font-face! Doing nothing, returning.\\n\"; return;\n\t}\n\t$posR = getNextCurlyBracket($buffer,$posL);\n\t$out=getTextBefore($buffer,0,$posL-1);\n\t$out.=\"@font-face { font-family: Ostrich Sans; src: url(\\\"data:application/font-woff;charset=utf-8;base64,\".FONTBASE64.\"\\\"); }\";\n\t$out.=getTextAfter($buffer,$posR+1);\n\tfile_put_contents($file,$out);\n}", "public function get_fonts () {\r\n\t\treturn empty($this->_data[self::FONTS])\r\n\t\t\t? array()\r\n\t\t\t: $this->_data[self::FONTS]\r\n\t\t;\r\n\t}", "public function getConfigFileName() {\n return \\Config::get('fontello::config.file');\n }", "function customcert_get_fonts() {\n global $CFG;\n\n // Array to store the available fonts.\n $options = array();\n\n // Location of fonts in Moodle.\n $fontdir = \"$CFG->dirroot/lib/tcpdf/fonts\";\n // Check that the directory exists.\n if (file_exists($fontdir)) {\n // Get directory contents.\n $fonts = new DirectoryIterator($fontdir);\n // Loop through the font folder.\n foreach ($fonts as $font) {\n // If it is not a file, or either '.' or '..', or\n // the extension is not php, or we can not open file,\n // skip it.\n if (!$font->isFile() || $font->isDot() || ($font->getExtension() != 'php')) {\n continue;\n }\n // Set the name of the font to null, the include next should then set this\n // value, if it is not set then the file does not include the necessary data.\n $name = null;\n // Some files include a display name, the include next should then set this\n // value if it is present, if not then $name is used to create the display name.\n $displayname = null;\n // Some of the TCPDF files include files that are not present, so we have to\n // suppress warnings, this is the TCPDF libraries fault, grrr.\n @include(\"$fontdir/$font\");\n // If no $name variable in file, skip it.\n if (is_null($name)) {\n continue;\n }\n // Remove the extension of the \".php\" file that contains the font information.\n $filename = basename($font, \".php\");\n // Check if there is no display name to use.\n if (is_null($displayname)) {\n // Format the font name, so \"FontName-Style\" becomes \"Font Name - Style\".\n $displayname = preg_replace(\"/([a-z])([A-Z])/\", \"$1 $2\", $name);\n $displayname = preg_replace(\"/([a-zA-Z])-([a-zA-Z])/\", \"$1 - $2\", $displayname);\n }\n $options[$filename] = $displayname;\n }\n ksort($options);\n }\n\n return $options;\n}", "protected function _loadfont($font)\n {\n $path = $this->_pdfOutput->getDocument()->getFontPath();\n include($path.$font);\n $a = get_defined_vars();\n\n if (!isset($a['name'])) {\n throw new PdfException(\"Could not include font definition file\");\n }\n return $a;\n }", "protected function getFixtureFile()\n {\n return __DIR__ . '/_fixtures/' . $this->getName() . '.txt';\n }", "function getTemplateFile ()\n\t{\n\t\t//\n\t\t// Allow the template to override a specific file. If this file exist\n\t\t// (the file in the template directory), it will be loaded, otherwise\n\t\t// the default (in the plugin directory) will be loaded\n\t\t//\n\t\t$renderer = 'templates/'.$this->getTemplate ().'/'.$this->getRenderer ();\n\t\tif (!(file_exists ($renderer)))\n\t\t{\n\t\t\t$renderer = 'framework/view/'.$this->getRenderer ();\n\t\t}\n\t\treturn $renderer;\n\t}", "private function get_mime( $file_type ) {\n\t\t$path = FUSION_LIBRARY_URL . '/assets/fonts/icomoon/icomoon.' . $file_type;\n\t\tif ( file_exists( $path ) && function_exists( 'mime_content_type' ) ) {\n\t\t\treturn mime_content_type( $path );\n\t\t}\n\t\treturn 'font/' . $file_type;\n\n\t}", "function ac_skin_discover_theme_fonts($font = NULL){\n $settings = &drupal_static(__FUNCTION__, null);\n if (!isset($settings)) {\n\tacquia_include('theme');\n\t$settings = acquia_theme_discovery('font', variable_get('ACQUIA_BASE_THEME'), 'font_info');\n }\n if (isset($settings[$font])) {\n\treturn $settings[$font];\n }\n\n return $settings;\n}", "function getCurrentFile(){\n $stack = debug_backtrace();\n $firstFrame = $stack[count($stack) - 1];\n $initialFile = $firstFrame['file'];\n $prefix = 13;\n return substr($initialFile, $prefix, strlen($initialFile)-$prefix);\n}", "public static function fetchFontCSS($font)\n {\n $url = \"https://fonts.googleapis.com/css2?family=\" . str_replace(\" \", \"+\", $font);\n try {\n // get the CSS for the font\n $response = self::curl_get_contents($url);\n // find all font files and convert them to base64 Data URIs\n return self::encodeFonts($response);\n } catch (InvalidArgumentException $error) {\n return \"\";\n }\n }", "public function fontFamilyProvider()\n {\n return [[\"a string\"]];\n }", "public function fontFamilyProvider()\n {\n return [[\"a string\"]];\n }", "public function getFontWoffData();", "public function saveFont() {\r\n\t\t$saved = array();\r\n\t\t\r\n\t\t$saved[ 'family' ] \t= $this->FontFamily;\r\n\t\t$saved[ 'style' ] \t= $this->FontStyle;\r\n\t\t$saved[ 'sizePt' ] \t= $this->FontSizePt;\r\n\t\t$saved[ 'size' ] \t= $this->FontSize;\r\n\t\t$saved[ 'curr' ] \t=& $this->CurrentFont;\r\n\t\t\r\n\t\treturn $saved;\r\n\t}", "function twentyfourteen_font_url() {\n\t$font_url = '';\n\t/*\n\t * Translators: If there are characters in your language that are not supported\n\t * by Lato, translate this to 'off'. Do not translate into your own language.\n\t */\n\tif ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentyfourteen' ) ) {\n\t\t$query_args = array(\n\t\t\t'family' => urlencode( 'Open+Sans:400,300,600,700,800' ),\n\t\t\t'subset' => urlencode( 'latin,latin-ext' ),\n\t\t);\n\t\t$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css?' );\n\t}\n\n\treturn $font_url;\n}", "function PDF_findfont($p, $fontname, $encoding, $embed)\n{\n}", "public function sourceFile() {\n return $this->loader\n ? $this->loader->getResourceAsStream(strtr($this->name, '.', '/').'/package-info.xp')\n : NULL\n ;\n }", "public function getCurrentFile() {}", "protected function _outputFontFiles()\n {\n $output = $this->_pdfOutput;\n\n foreach ($this->_fontFiles as $file => $info) {\n if (!isset($info['type']) || $info['type'] != 'TTF') {\n $output->newObj();\n $this->_fontFiles[$file]['n'] = $output->getPdfObjects();\n $font = '';\n $f = fopen($output->getDocument()->getFontPath().$file, 'rb', 1);\n\n if (!$f) {\n throw new PdfException(\"Font file not found\");\n }\n\n while (!feof($f)) {\n $font .= fread($f, 8192);\n }\n fclose($f);\n\n $compressed = (substr($file, -2) == '.z');\n\n if (!$compressed && isset($info['length2'])) {\n $header = (ord($font[0]) == 128);\n\n if ($header) {\n $font = substr($font, 6);\n }\n if ($header && ord($font[$info['length1']]) == 128) {\n $font = substr($font, 0, $info['length1']).substr($font, $info['length1'] + 6);\n }\n }\n\n $output->out('<</Length '.strlen($font));\n if ($compressed) {\n $output->out('/Filter /FlateDecode');\n }\n $output->out('/Length1 '.$info['length1']);\n if (isset($info['length2'])) {\n $output->out('/Length2 '.$info['length2'].' /Length3 0');\n }\n $output->out('>>');\n $output->putStream($font);\n $output->out('endobj');\n }\n }\n }", "public function font($value) {\n return $this->setProperty('font', $value);\n }", "public function setDefaultFont($default = null)\n {\n $old = $this->_defaultFont;\n $this->_defaultFont = $default;\n if ($default) $this->value['font-family'] = $default;\n return $old;\n }", "function getNextFontFace($buffer,$pos){\n\treturn strpos($buffer,'@font-face',$pos);\n}", "public function setCurrentFont($currentFont)\n {\n $this->currentFont = $currentFont;\n }", "function twentyfourteen_font_url() {\n\t$font_url = '';\n\t/*\n\t * Translators: If there are characters in your language that are not supported\n\t * by Lato, translate this to 'off'. Do not translate into your own language.\n\t */\n\tif ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {\n\t\t$font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), \"//fonts.googleapis.com/css\" );\n\t}\n\n\treturn $font_url;\n}", "protected function hasApplicableFontFile()\n {\n if (is_string($this->file)) {\n return file_exists($this->file);\n }\n\n return false;\n }", "function saveFont()\n\t{\n\n\t\t$saved = array();\n\n\t\t$saved[ 'family' ] = $this->FontFamily;\n\t\t$saved[ 'style' ] = $this->FontStyle;\n\t\t$saved[ 'sizePt' ] = $this->FontSizePt;\n\t\t$saved[ 'size' ] = $this->FontSize;\n\t\t$saved[ 'curr' ] =& $this->CurrentFont;\n\n\t\treturn $saved;\n\n\t}", "public function fontNameProvider()\n {\n return [[\"a string\"]];\n }", "public function fontNameProvider()\n {\n return [[\"a string\"]];\n }" ]
[ "0.80277354", "0.8024368", "0.7884222", "0.7582509", "0.7158778", "0.7150189", "0.7150189", "0.7150189", "0.70973533", "0.7077328", "0.7035439", "0.69687444", "0.69631547", "0.6795249", "0.65737647", "0.6551832", "0.6468101", "0.6462867", "0.64505607", "0.6427325", "0.6427325", "0.6427325", "0.6427325", "0.64025", "0.63577104", "0.6339316", "0.6339316", "0.63376874", "0.63376707", "0.63376707", "0.63376707", "0.63376707", "0.63376707", "0.63376707", "0.6315445", "0.625638", "0.62174785", "0.6195306", "0.6172921", "0.6146286", "0.6135175", "0.6131177", "0.6095844", "0.6089404", "0.608525", "0.608525", "0.608525", "0.6085013", "0.6085013", "0.6017231", "0.5956549", "0.59391296", "0.59025234", "0.58890986", "0.58830607", "0.5817455", "0.579163", "0.5789887", "0.57636535", "0.57531005", "0.5699693", "0.5687107", "0.56689036", "0.5641113", "0.56387436", "0.56078774", "0.56035817", "0.5574633", "0.55727625", "0.5537342", "0.55241174", "0.54749024", "0.54278404", "0.5399514", "0.5396917", "0.5391486", "0.5388139", "0.5386121", "0.5384611", "0.53740615", "0.5336037", "0.5276077", "0.52584815", "0.52320266", "0.52320266", "0.5224823", "0.5215823", "0.52156913", "0.52151424", "0.5214967", "0.52097696", "0.5199507", "0.51994795", "0.5195134", "0.5176301", "0.51615685", "0.5135656", "0.5126079", "0.5111757", "0.510953", "0.510953" ]
0.0
-1
Gets font's integer point size.
public function getSize(): int;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFontSize() {\n\t\treturn $this->font_size;\n\t}", "public function getFontSize() {}", "public function getFontSize() {}", "public function getFontSize() {\n\t\treturn $this->fontSize;\n\t}", "public function getFontSize()\n {\n if (array_key_exists(\"fontSize\", $this->_propDict)) {\n return $this->_propDict[\"fontSize\"];\n } else {\n return null;\n }\n }", "public function getTextSize(): int\n {\n return $this->textSize;\n }", "public function getPx(): string {\n return $this->px;\n }", "public function get_size()\n\t\t{\n\t\t\treturn $this->width().'x'.$this->height();\n\t\t}", "public function getLineHeight()\n {\n $val = $this->value['line-height'];\n if ($val=='normal') $val = '108%';\n return $this->convertToMM($val, $this->value['font-size']);\n }", "public function getSize() : int \n\t{\n\t\t$s = count($this->xValues);\n\n\t\tif($s !== count($this->yValues)) //these *should* be the same, but it doesn't hurt to check\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn $s;\n\t}", "protected function getPageWidth()\n {\n return $this->inchToPoint(2.125);\n }", "public function getAppearanceFontSize() {}", "public function getSize()\n {\n // after the decimal dot (instead of rounding up), which might cause\n // incorrect size to be returned . So, we copied the code from the\n // Selenium client and instead of using \"rawPoint.get(...).intValue()\"\n // we return the double value, and use \"ceil\".\n $elementId = $this->getId();\n $response = $this->execute(DriverCommand::GET_ELEMENT_SIZE,\n array(\":id\" => $elementId));//ImmutableMap::of(\"id\", elementId));\n //$rawSize = $response->getValue();\n $width = floor($response[\"width\"]);\n $height = floor($response[\"height\"]);\n return new WebDriverDimension($width, $height);\n\n // TODO: Use the command delegation instead. (once the bug is fixed).\n// return webElement.getSize();\n }", "public function getOutputSize(): XY\n {\n return $this->outputSize;\n }", "public function getSuperscriptXSize() {}", "public function getSuperscriptYSize() {}", "public function getStrikeoutSize() {}", "public function getPageSize()\n {\n $value = $this->get(self::page_size);\n return $value === null ? (integer)$value : $value;\n }", "public function getCellSize(): int {\n return $this->cellSize;\n }", "function vcex_get_body_font_size() {\n\tif ( function_exists( 'wpex_get_body_font_size' ) ) {\n\t\treturn wpex_get_body_font_size();\n\t}\n\n\t/**\n\t * Filters the site body font size.\n\t *\n\t * @param string|int $font_size\n\t */\n\t$font_size = apply_filters( 'vcex_get_body_font_size', '13px' );\n\n\treturn $font_size;\n}", "public function setFontSize(int $width, int $height): int\r\n {\r\n return $width > $height ? $height / 10 : $width / 10;\r\n }", "protected function textWidth($text, $font, $size)\n {\n $p = imagettfbbox($size, 0, $font, $text);\n return $p[2] - $p[0] - 4;\n }", "public function getFormatSize() {}", "public function getSize() {\r\n return $this->iSize;\r\n }", "function customcert_get_font_sizes() {\n // Array to store the sizes.\n $sizes = array();\n\n for ($i = 1; $i <= 60; $i++) {\n $sizes[$i] = $i;\n }\n\n return $sizes;\n}", "public function getIntegerSize(): int;", "public function getSize()\n {\n return $this->item['size'];\n }", "protected function getPageHeight()\n {\n return $this->inchToPoint(3.75);\n }", "public function getFontBBox() {}", "public function getFontBBox() {}", "public function getFontBBox() {}", "public function getSizeInMb()\n {\n return $this->sizeInMb;\n }", "public function getFontBBox() {}", "public function getImageSize()\n {\n return (($this->isWrapped() || $this->isTemp()) ?\n getimagesizefromstring($this->getRaw())\n : getimagesize($this->getPathname())\n );\n }", "public function getSize()\n {\n return (int) $this->size;\n }", "public function getWidth(): int\n {\n return (int) $this->width;\n }", "public function getSize()\n {\n\n if ($this->size) {\n return $this->size;\n }\n\n $this->size = new Size($this->__get('width'), $this->__get('height'));\n\n return $this->size;\n }", "function getSize()\n {\n $this->loadStats();\n return $this->stat['size'];\n }", "public function getSizeAttribute()\n {\n return self::SIZES[$this->attributes['size']];\n }", "public function getDimensionsString()\n {\n $size = $this->getImageSize();\n\n return $size[3];\n }", "public function getCurrentSize() : int{\n return $this->currentSize;\n }", "public function getFontBBox();", "public function getFontSizes(): array {\n $sizes = [];\n for ($i = 6; $i <= 80; $i++) {\n $sizes[] = $i . 'px';\n }\n\n $sizes = apply_filter($sizes, 'font_sizes');\n return $sizes;\n }", "public function fontSizeProvider()\n {\n return [[1]];\n }", "public function fontSizeProvider()\n {\n return [[1]];\n }", "public function getSize(): int\n {\n return $this->size;\n }", "public function getShopSize()\n {\n $size = $this->ask('What is the size of the shop? [width:int height:int]');\n\n if (preg_match('/^[0-9]+ [0-9]+$/', $size)) {\n return $size;\n } else {\n $this->throwErrors('you have to enter the shop size in the format :int :int!');\n return $this->getGridSize();\n }\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getSize() : int\n {\n return $this->size;\n }", "public function getLabelSize() : string\n\t{\n\t\tif(is_null($this->labelSize)) {\n\t\t\t// default size\n\t\t\tif($this->getUseDestinationConfirmMail()) {\n\t\t\t\t// 7x3 is the default size for destination confirm mail\n\t\t\t\treturn LabelSize::SIZE_7X3;\n\t\t\t} else {\n\t\t\t\t// 4x6 is default size otherwise\n\t\t\t\treturn LabelSize::SIZE_4X6;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->labelSize;\n\t}", "public function get_size()\n\t{\n\t\treturn $this->area->get_size($this->path);\n\t}", "public function get_pagesize() {\n return $this->page_size;\n }", "public function getTeamSize() {\n\t\t$contest = $this->getCurrentContest();\n\t\treturn (int)($contest[0]['team_upper']);\n\t}", "public function getSize(): int\n {\n [$className, $methodName] = explode('::', $this->getName());\n\n return TestUtil::getSize($className, $methodName);\n }", "public function getSubscriptXSize() {}", "public function getUpperOpticalPointSize() {}", "public function getSizeGib()\n {\n return $this->size_gib;\n }", "public function getSize()\n {\n return $this->_Size;\n }", "function ConvertFeettoInch($size, $sizetype) {\r\n $vSize = @explode(\"x\", $size);\r\n if ($sizetype == 'feet') {\r\n $h = $vSize[0] * 12;\r\n $w = $vSize[1] * 12;\r\n } else {\r\n $h = $vSize[0];\r\n $w = $vSize[1];\r\n }\r\n $reqsize = $h . \"x\" . $w;\r\n return $reqsize;\r\n}", "public function getSize()\n {\n return $this->getStat('size');\n }", "private function getRenderWidth(): int\n {\n if ($this->cli->getWidth() - $this->pos['x'] <= $this->width) {\n return $this->cli->getWidth() - $this->pos['x'];\n }\n\n return $this->width;\n }", "public function size() : int\n {\n return $this->m * $this->n;\n }", "abstract public function getBoxSize();", "public function getFontStep()\n {\n $this->_minCount = min($this->items);\n $spread = max($this->items) - $this->_minCount;\n if ($spread <= 0) {\n $spread = 1;\n }\n $font_spread = $this->largest - $this->smallest;\n if ($font_spread < 0) {\n $font_spread = 1;\n }\n return $font_spread / $spread;\n }", "public function getSize()\n {\n return $this->shipSize;\n }", "public function getWidth(): int\n {\n return $this->width;\n }", "public function getFormattedSize() {\r\n\t\r\n\t $bytes = $this->getSize();\r\n\t\r\n\t if ($bytes >= 1073741824)\r\n\t {\r\n\t\t$bytes = number_format($bytes / 1073741824, 2) . ' GB';\r\n\t }\r\n\t elseif ($bytes >= 1048576)\r\n\t {\r\n\t\t$bytes = number_format($bytes / 1048576, 2) . ' MB';\r\n\t }\r\n\t elseif ($bytes >= 1024)\r\n\t {\r\n\t\t$bytes = number_format($bytes / 1024, 2) . ' KB';\r\n\t }\r\n\t elseif ($bytes > 1)\r\n\t {\r\n\t\t$bytes = $bytes . ' bytes';\r\n\t }\r\n\t elseif ($bytes == 1)\r\n\t {\r\n\t\t$bytes = $bytes . ' byte';\r\n\t }\r\n\t else\r\n\t {\r\n\t\t$bytes = '0 bytes';\r\n\t }\r\n\r\n\t return $bytes;\r\n\t \r\n }", "public function getNumFonts()\n {\n return $this->numFonts;\n }", "public function getReadableSize()\n {\n $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB'];\n\n for ($i = 0; $this->size > 1024; $i++) {\n $this->size /= 1024;\n }\n\n return round($this->size, 2).' '.$units[$i];\n }", "public function getLowerOpticalPointSize() {}", "public function getSize()\n {\n return $this->fileInfo['size'];\n }", "public function getTabSize(): ?int {\n return $this->tabSize;\n }", "public function getSize() {\n return array(\"x\" => imagesx($this->current), \"y\" => imagesy($this->current));\n }", "public function totalSize()\n {\n return cm_human_filesize($this->getItems()->sum('filesize'));\n }", "public function getSize() {\n\n return $this->size;\n }", "public function getWidth()\n {\n // Support for 'n%', relative to parent\n return $this->parseGlobalValue_h($this->w);\n }", "function GetStringWidth($s)\n\t\t{\n\t\t\t$s=(string)$s;\n\t\t\t$cw=&$this->CurrentFont['cw'];\n\t\t\t$w=0;\n\t\t\t$l=strlen($s);\n\t\t\tfor($i=0;$i<$l;$i++) $w+=$cw[$s{$i}];\n\t\t\treturn $w*$this->FontSize/1000;\n\t\t}", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "function getSize() {\n\t\treturn $this->data_array['filesize'];\n\t}", "public function printSize()\n {\n return $this->domain->printSize();\n }", "public function getHeight(): int\n {\n return (int) $this->height;\n }", "public function getUnitsPerEm() {}", "public function getSize() {\n return $this->size;\n }", "public function getDocumentSize() {\n return $this->document['size'];\n }", "public function getSize() {\n\t\t\treturn $this->getStats( 'bytes' );\n\t\t}", "public function getSize()\n\t{\n\t\treturn $this->size;\n\t}", "public function &getFontMetric() {\r\n return $this->font_metric;\r\n }", "public function getSize()\n {\n return \"Small\";\n }", "public function getSize() {\n return $this->_size;\n }" ]
[ "0.7283944", "0.6979363", "0.6979363", "0.6973038", "0.67311996", "0.6671982", "0.646339", "0.6206832", "0.6188305", "0.61849654", "0.6154216", "0.6062501", "0.6046236", "0.6028704", "0.6018823", "0.60056084", "0.59708273", "0.58861786", "0.58571506", "0.5854099", "0.5852314", "0.58444715", "0.5839519", "0.5833981", "0.5831051", "0.58056104", "0.58049875", "0.57163733", "0.57147306", "0.57147306", "0.57147306", "0.5713604", "0.5713217", "0.5708042", "0.5705366", "0.5703051", "0.5688759", "0.56840044", "0.56704175", "0.5663298", "0.5656556", "0.5652881", "0.56377554", "0.5616109", "0.5616109", "0.56095827", "0.5604265", "0.559691", "0.559691", "0.559691", "0.5585686", "0.5576026", "0.554699", "0.55202526", "0.5512952", "0.5508461", "0.54850465", "0.5482418", "0.5481818", "0.5472407", "0.54548293", "0.54537344", "0.54485625", "0.5439489", "0.54362345", "0.5432099", "0.54296005", "0.5412899", "0.5395832", "0.5374083", "0.53593075", "0.53564304", "0.5347546", "0.5347109", "0.53254193", "0.5320306", "0.5319852", "0.5319668", "0.53187597", "0.53187597", "0.53187597", "0.53187597", "0.53187597", "0.53187597", "0.53187597", "0.53187597", "0.530964", "0.5307579", "0.5303339", "0.5297953", "0.5296371", "0.52937645", "0.5292532", "0.5291025", "0.5284752", "0.5282257", "0.5276915" ]
0.53829646
72
Gets BoxInterface of font size on the image based on string and angle.
public function box(string $string, int $angle = 0): Box;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getTextBoundingBox($size, $angle, $font, $text)\n {\n // This does it properly by getting the bounding box for horizontal text then rotating it\n\n if (!file_exists($font)) {\n $this->error(\"Could not find font: '$font'\");\n }\n\n $box = imagettfbbox($size, 0, $font, $text);\n\n $s = sin(-$angle * 3.1415926 / 180);\n $c = cos(-$angle * 3.1415926 / 180);\n\n return array\n (\n $c * $box[0] - $s * $box[1],\n $s * $box[0] + $c * $box[1],\n $c * $box[2] - $s * $box[3],\n $s * $box[2] + $c * $box[3],\n $c * $box[4] - $s * $box[5],\n $s * $box[4] + $c * $box[5],\n $c * $box[6] - $s * $box[7],\n $s * $box[6] + $c * $box[7],\n );\n }", "private function getTextBoundingBox($size, $angle, $font, $text)\n {\n // This does it properly by getting the bounding box for horizontal text then rotating it\n\n if (!file_exists($font)) {\n $this->error(\"Could not find font '$font'\");\n }\n\n $box = imagettfbbox($size, 0, $font, $text);\n\n $s = sin(-$angle * 3.1415926 / 180);\n $c = cos(-$angle * 3.1415926 / 180);\n\n return array\n (\n $c * $box[0] - $s * $box[1],\n $s * $box[0] + $c * $box[1],\n $c * $box[2] - $s * $box[3],\n $s * $box[2] + $c * $box[3],\n $c * $box[4] - $s * $box[5],\n $s * $box[4] + $c * $box[5],\n $c * $box[6] - $s * $box[7],\n $s * $box[6] + $c * $box[7],\n );\n }", "function calculateTextBox($text,$fontFile,$fontSize,$fontAngle) { \n /************ \n simple function that calculates the *exact* bounding box (single pixel precision). \n The function returns an associative array with these keys: \n left, top: coordinates you will pass to imagettftext \n width, height: dimension of the image you have to create \n *************/ \n $rect = imagettfbbox($fontSize,$fontAngle,$fontFile,$text); \n $minX = min(array($rect[0],$rect[2],$rect[4],$rect[6])); \n $maxX = max(array($rect[0],$rect[2],$rect[4],$rect[6])); \n $minY = min(array($rect[1],$rect[3],$rect[5],$rect[7])); \n $maxY = max(array($rect[1],$rect[3],$rect[5],$rect[7])); \n \n return array( \n \"left\" => abs($minX) - 1, \n \"top\" => abs($minY) - 1, \n \"width\" => $maxX - $minX, \n \"height\" => $maxY - $minY, \n \"box\" => $rect \n ); \n}", "public function calculateTextBoxSize()\n {\n $angle = $this->angle % 180;\n\n $result = call_user_func($this->bbox, $this->size, $angle, $this->font, $this->text);\n\n $this->box = array();\n if (\n ($angle >= 0 && $angle < 90) ||\n ($angle > -180 && $angle <= -90)\n ) { // 1,3象限\n $this->box['width'] = abs($result[2] - $result[6]);\n $this->box['height'] = abs($result[1] - $result[5]);\n } else { // 2,4象限\n $this->box['width'] = abs($result[0] - $result[4]);\n $this->box['height'] = abs($result[3] - $result[7]);\n }\n }", "function textMetrics($string, $font, $fontsize)\n\t{\n\t\t$im = new Imagick();\n\n\t\t$fontfile = $this->fontTTF[$font];#fontfile($font);\n\t\t#error_log(\"FONT FILE=$fontfile\");\n\t\t$draw = new ImagickDraw();\n\t\t$draw->setFont(\"images/designs/fonts/$fontfile\");\n\t\t$draw->setFontSize($fontsize); # This needs to be in pixels.\n\t\t# TOMAS_MALY XXX not right - too small....\n\t\t$metric = $im->queryFontMetrics($draw, $string, false);\n\n\t\t$lastchar = substr($string,-1);\n\t\t$lastCharMetric = $im->queryFontMetrics($draw, $lastchar, false);\n\t\t$firstchar = substr($string,0,1);\n\t\t$firstCharMetric = $im->queryFontMetrics($draw, $firstchar, false);\n\n\t\t$firstedge = $firstCharMetric['originX'];\n\t\t$lastedge = $lastCharMetric['maxHorizontalAdvance'] - $lastCharMetric['characterWidth'] - $lastCharMetric['originX'];\n\n\n\t\t#error_log(\"FIRST CHAR($firstchar) METRICS=\".print_r($firstCharMetric,true));\n\t\t#error_log(\"LAST CHAR($lastchar) METRICS=\".print_r($lastCharMetric,true));\n\n\t\t# DISABLED We need to compensate by removing the last char's right edge and first char's left edge\n\t\t# To get accurate \"width\" (175 vs 180) - that the web uses...\n\n\t\t/*\n\t\tif(false && $string == 'orem ipsum dolor sit amet, ')\n\t\t{\n\t\t\t$draw->setFillColor(new ImagickPixel('blue'));\n\t\t\t$draw->annotation(0,25, $string);\n\t\t\t$im->newImage($metric['textWidth'], $metric['textHeight']*2, new ImagickPixel('white'));\n\t\t\t$im->drawImage($draw);\n\n\t\t\t$im->setImageFormat(\"png\");\n\t\t\theader(\"Content-Type: image/png\");\n\t\t\techo $im;\n\t\t\texit(0);\n\t\t}\n\t\t*/\n\t\t#error_log(\"FOR ($font/$fontfile) $string, METRICS=\".print_r($metric,true));\n\t\treturn array($metric['textWidth'], $metric['textHeight'], $metric['characterWidth'], $metric['characterHeight'], $metric['boundingBox']);\n\t\t#-$firstedge-$lastedge, \n\t}", "private function getTextAxisBoundingBox($size, $angle, $font, $text)\n {\n if (is_array($text)) {\n $x1 = $y1 = $x2 = $y2 = 0;\n\n foreach ($text as $item) {\n $box = $this->getTextAxisBoundingBox($size, $angle, $font, $item);\n if ($box[4] > $x2 - $x1) {\n $x1 = $box[0];\n $x2 = $box[2];\n }\n if ($box[5] > $y2 - $y1) {\n $y1 = $box[1];\n $y2 = $box[3];\n }\n }\n }\n else {\n $box = $this->getTextBoundingBox($size, $angle, $font, $text);\n\n $x1 = $box[0];\n if ($x1 > $box[2]) {\n $x1 = $box[2];\n }\n if ($x1 > $box[4]) {\n $x1 = $box[4];\n }\n if ($x1 > $box[6]) {\n $x1 = $box[6];\n }\n $x2 = $box[0];\n if ($x2 < $box[2]) {\n $x2 = $box[2];\n }\n if ($x2 < $box[4]) {\n $x2 = $box[4];\n }\n if ($x2 < $box[6]) {\n $x2 = $box[6];\n }\n\n $y1 = $box[1];\n if ($y1 > $box[3]) {\n $y1 = $box[3];\n }\n if ($y1 > $box[5]) {\n $y1 = $box[5];\n }\n if ($y1 > $box[7]) {\n $y1 = $box[7];\n }\n $y2 = $box[1];\n if ($y2 < $box[3]) {\n $y2 = $box[3];\n }\n if ($y2 < $box[5]) {\n $y2 = $box[5];\n }\n if ($y2 < $box[7]) {\n $y2 = $box[7];\n }\n }\n\n return array($x1, $y1, $x2, $y2, $x2 - $x1, $y2 - $y1);\n }", "abstract protected function getTextBoundings( $size, ezcGraphFontOptions $font, $text );", "private function _calculateDimensions($font)\r\n {\r\n // find the dimensions of the text being created\r\n $box = imagettfbbox($this->_size, 0, $font, $this->_text);\r\n $height = $box[7] - $box[1]; // upper left y - lower left y\r\n $width = $box[2] - $box[0]; // lower right x - lower left x\r\n \r\n // make sure we have positive numbers\r\n if ($height<0) $height *= -1;\r\n if ($width<0) $width *= -1;\r\n \r\n // set the offset\r\n $offset = $height - $box[1];\r\n \r\n // return array of data\r\n return array($height, $width, $offset);\r\n }", "public function getFontSize() {}", "public function getFontSize() {}", "public function getTextBoundingBox()\n {\n $this->calculateTextBoxSize();\n }", "function imagettftextSp($image, $size, $angle, $x, $y, $color, $font, $text, $spacing = 0){\n if ($spacing == 0) { imagettftext($image, $size, $angle, $x, $y, $color, $font, $text); }else{\n \t$temp_x = $x;\n \tfor ($i = 0; $i < strlen($text); $i++){\n \t\t$bbox = imagettftext($image, $size, $angle, $temp_x, $y, $color, $font, $text[$i]);\n \t\t$temp_x += $spacing + ($bbox[2] - $bbox[0]);\n \t}\n\t}\n}", "public function getTextWidth($text, $font, $fontSize, $unit = null);", "abstract public function getBoxSize();", "private function _wrapText($text, $font, $size, $width, $angle = 0)\n {\n $lines = array();\n $words = explode(' ', $text); // TODO: How about for line breaks or tabs.\n \n if (count($words)) {\n $currentLine = 0;\n $lines[$currentLine] = array_shift($words);\n foreach ($words as $word) {\n $line = imagettfbbox($size, $angle, $font, $lines[$currentLine] . ' ' . $word);\n if ($line[2] - $line[0] < $width) {\n $lines[$currentLine] .= ' ' . $word;\n } else {\n ++$currentLine;\n $lines[$currentLine] = $word;\n }\n }\n }\n\n return $lines;\n }", "protected function textWidth($text, $font, $size)\n {\n $p = imagettfbbox($size, 0, $font, $text);\n return $p[2] - $p[0] - 4;\n }", "abstract public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, $align, ezcGraphRotation $rotation = null );", "public function getFontBBox();", "private function _text2img($text, $length) {\r\n\t\t$width = $height = $offset_x = $offset_y = 0;\r\n\t\t\r\n\t\t// Sets modifiers of horizontal offset between chars and height,\r\n\t\t// because rotated chars require a larger image, because the offset of rotation is not the center of the char.\r\n\t\t$modifier = 4;\r\n\t\t$height_modifier = $width_modifier = 0;\r\n\t\tif ($this->useRandomRotation) {\r\n\t\t\t$modifier = 10;\r\n\t\t\t$height_modifier = $modifier;\r\n\t\t\t$width_modifier = $length * 3;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// Rotation is always 0, because we first create an image and rotate it afterwards. That's much easier, then creating a rotated one.\r\n\t\t// Get the font height.\r\n\t\t$bounds = ImageTTFBBox($this->_size, 0, $this->_font, \"W\");\r\n\t\t$font_height = abs($bounds[7] - $bounds[1]);\r\n\t\t\r\n\t\t// Determine bounding box. Again, rotation is always 0.\r\n\t\t$bounds = ImageTTFBBox($this->_size, 0, $this->_font, $text);\r\n\t\t$width = abs($bounds[4] - $bounds[6]);\r\n\t\t$height = abs($bounds[7] - $bounds[1]);\r\n\t\t$offset_y = $font_height;\r\n\t\t$offset_x = 0;\r\n\t\t\r\n\t\t\r\n\t\t// Adjust padding if random rotation is used.\r\n\t\t($this->useRandomRotation) ? $this->_padding = $this->_size * 1.1 : null;\r\n\t\t\r\n\t\t// Create image resource.\r\n\t\t$this->_resource = imagecreate($width + ($this->_padding* 2) + 1 + $width_modifier, $height + ($this->_padding) + 1 - $height_modifier);\r\n\t\t\r\n\t\t// Set image colors. The order is important. Background first, then foreground. Otherwise you'll get strange results.\r\n\t\t$background = imagecolorallocate($this->_resource, $this->_bg_color['R'], $this->_bg_color['G'], $this->_bg_color['B']);\r\n\t\t$foreground = imagecolorallocate($this->_resource, $this->_fg_color['R'], $this->_fg_color['G'], $this->_fg_color['B']);\r\n\t\t\r\n\t\t$this->_setTransparency($background);\r\n\r\n\t\t// Enable interlacing\r\n\t\timageinterlace($this->_resource, true);\r\n\r\n\t\t// Add some blots.\r\n\t\t($this->addBlots) ? $this->_addBlots() : null;\r\n\t\t\r\n\t\t// Add some arcs.\r\n\t\t($this->addArcs) ? $this->_addArcs() : null;\r\n\t\t\r\n\t\t// Add some lines.\r\n\t\t($this->addLines) ? $this->_addLines() : null;\r\n\t\t\r\n\t\t// Add some noise.\r\n\t\t($this->addNoise) ? $this->_addNoise() : null;\r\n\t\t\r\n\r\n\t\t// Default rotation angle to 0 (e.g. assume no rotation).\r\n\t\t$rotate = 0;\r\n\t\tforeach (str_split($text) as $ch) {\r\n\t\t\t($this->useRandomColors) ? $foreground = $this->_setRandomColor() : null;\r\n\t\t\t\r\n\t\t\tif ($this->useRandomRotation) {\r\n\t\t\t\t// Get random rotation angle for each char.\r\n\t\t\t\t$rotate = $this->_getRandomAngle();\r\n\t\t\t\t\r\n\t\t\t\t// Adjust vertical offset when rotating in relation to angle.\r\n\t\t\t\t$offset_y = abs($rotate / ($rotate - 100));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Add char to image\r\n\t\t\timagettftext($this->_resource, $this->_size, $rotate, $offset_x + $this->_padding, $offset_y + $this->_padding, $foreground, $this->_font, $ch);\r\n\t\t\t\r\n\t\t\t// Increase horizontal offset, so the next char won't overwrite the previous one.\r\n\t\t\t$offset_x += round($this->_size - ($this->_size/ $modifier));\r\n\t\t}\r\n\t\t\r\n\t\t// Init PHP's output buffer ...\r\n\t\tob_start();\r\n\t\t\r\n\t\t// ... and finally rotate the generated image\r\n\t\tif ($this->_angle != 0) {\r\n\t\t\t$this->_resource= imagerotate($this->_resource, $this->_angle, $background);\r\n\t\t\t($this->useTransparency) ? $this->_setTransparency($background) : null;\r\n\t\t}\r\n\t\t\r\n\t\t// Write image to output buffer ...\r\n\t\timagepng($this->_resource);\r\n\t\t// ... and destroy the image resource afterwards.\r\n\t\timagedestroy($this->_resource);\r\n\t\t\r\n\t\t// Fetch the binary represantation of the image in the output buffer.\r\n\t\t$contents = ob_get_clean();\r\n\r\n\t\t// Generate HTML image tag using inline base64 encoded image data and return the result.\r\n\t\treturn '<img src=\"data:image/png;base64,' . base64_encode($contents) . '\"/>';\r\n\t}", "public function getFontBBox() {}", "public function getFontBBox() {}", "public function getFontBBox() {}", "public function getFontBBox() {}", "public function getAppearanceFontSize() {}", "function widthForStringUsingFontSize($string, $font, $fontSize) {\n $drawingString = iconv('UTF-8', 'UTF-16BE//IGNORE', $string);\n $characters = array();\n for ($i = 0; $i < strlen($drawingString); $i++) {\n $characters[] = (ord($drawingString[$i++]) << 8 ) | ord($drawingString[$i]);\n }\n $glyphs = $font->glyphNumbersForCharacters($characters);\n $widths = $font->widthsForGlyphs($glyphs);\n $stringWidth = (array_sum($widths) / $font->getUnitsPerEm()) * $fontSize;\n return $stringWidth;\n}", "public function getStrikeoutSize() {}", "public function getFont() {}", "public function getFont() {}", "public function getFont() {}", "public function getTextHeight() {}", "function render_text_centered($im, $text,$font_size, $zone, $box){\n global $font_file;\n global $text_color;\n $type_space = imagettfbbox($font_size, 0, $font_file, $text);\n $fw = $type_space[4];\n $fh = abs($type_space[7]);\n $px = $box->center_text_in_zone($fw,$fh,$zone);\n imagettftext($im ,$font_size, 0, $px->x, $px->y, $text_color, $font_file, $text);\n}", "abstract public function getItalicAngle();", "public function fontSizeProvider()\n {\n return [[1]];\n }", "public function fontSizeProvider()\n {\n return [[1]];\n }", "public function ImageTTFBBoxWrapper(/**\n * Calculate Bounding Box for part.\n * Due to a PHP bug, we must retry if $calc[2] is negative.\n *\n * @see https://bugs.php.net/bug.php?id=51315\n * @see https://bugs.php.net/bug.php?id=22513\n */\n$fontSize, /**\n * Calculate Bounding Box for part.\n * Due to a PHP bug, we must retry if $calc[2] is negative.\n *\n * @see https://bugs.php.net/bug.php?id=51315\n * @see https://bugs.php.net/bug.php?id=22513\n */\n$angle, /**\n * Calculate Bounding Box for part.\n * Due to a PHP bug, we must retry if $calc[2] is negative.\n *\n * @see https://bugs.php.net/bug.php?id=51315\n * @see https://bugs.php.net/bug.php?id=22513\n */\n$fontFile, /**\n * Calculate Bounding Box for part.\n * Due to a PHP bug, we must retry if $calc[2] is negative.\n *\n * @see https://bugs.php.net/bug.php?id=51315\n * @see https://bugs.php.net/bug.php?id=22513\n */\n$string, /**\n * Calculate Bounding Box for part.\n * Due to a PHP bug, we must retry if $calc[2] is negative.\n *\n * @see https://bugs.php.net/bug.php?id=51315\n * @see https://bugs.php.net/bug.php?id=22513\n */\n$splitRendering, /**\n * Calculate Bounding Box for part.\n * Due to a PHP bug, we must retry if $calc[2] is negative.\n *\n * @see https://bugs.php.net/bug.php?id=51315\n * @see https://bugs.php.net/bug.php?id=22513\n */\n$sF = 1) {}", "private function getTextSize(array $data)\n {\n $rect = imagettfbbox($data['size'], $data['angle'], $data['font'], $data['text']);\n\n $ascent = abs($rect[7]);\n $descent = abs($rect[1]);\n $width = abs($rect[0]) + abs($rect[2]);\n\n return array(\n 'ascent' => $ascent,\n 'descent' => $descent,\n 'width' => $width,\n 'height' => ($ascent + $descent)\n );\n }", "function\nwidget_fontiles ($image_url, $image_width, $image_height, $text, $file_cols = 16, $file_rows = 16)\n{\n $char_w = $image_width / $file_cols; \n $char_h = $image_height / $file_rows;\n\n $p = '';\n for ($i = 0; $i < strlen ($text); $i++)\n {\n $c = ord ($text[$i]);\n\n $left = $c % $file_cols;\n $left *= $char_w;\n\n $top = (int) ($c / $file_rows);\n $top *= $char_h;\n\n $right = $left + $char_w;\n $bottom = $top + $char_h;\n\n $pos_left = $i * $char_w - $left;\n $pos_top = 0 - $top; \n\n $p .= '<img src=\"'.$image_url.'\" style=\"'\n .'position:absolute;'\n .'clip:rect('.$top.'px,'.$right.'px,'.$bottom.'px,'.$left.'px);'\n .'top:'.$pos_top.'px;left:'.$pos_left.'px;'\n .'width:'.$image_width.';height:'.$image_height.';'\n .'\">'.\"\\n\";\n }\n\n return $p;\n}", "function MakeSize($str, $type) {\r\n $rStr = @explode(\"x\", $str);\r\n if ($type == 'inch') {\r\n $reqSize = $rStr[0] . '\"' . \"x\" . $rStr[1] . '\"';\r\n } elseif ($type == 'feet') {\r\n $reqSize = $rStr[0] . \"'\" . 'x' . $rStr[1] . \"'\";\r\n }\r\n return $reqSize;\r\n}", "function velicinaFonta($fontSize)\n{\n $text = 'Neki tekst';\n echo \"<p style='font-size:$fontSize'>$text</p>\"; \n}", "function getFont() { return $this->readFont(); }", "function getFont() {return $this->readFont();}", "function draw_ttftext(&$im, $size, $angle, $x, $y, $color, $fontfile, $text, $shadow = false, $width_limit = false) {\r\n\tif (function_exists('imagettftext') AND $fontfile) {\r\n\t\tif ($width_limit !== false) {\r\n\t\t\tdo {\r\n\t\t\t\t$box = imagettfbbox($size,$angle,$fontfile,$text);\r\n\t\t\t\t$text_width = $box[2] - $box[0];\r\n\t\t\t\tif ($text_width > $width_limit) \r\n\t\t\t\t\t$text = substr($text,0,-1);\r\n\t\t\t} while ($text_width > $width_limit);\r\n\t\t}\r\n\t\r\n\t\tif ($shadow) draw_ttftext($im, $size, $angle, $x + 1, $y + 1, $shadow, $fontfile, $text);\r\n\t\treturn imagettftext($im, $size, $angle, $x, $y, $color, $fontfile, $text);\r\n\t} else {\r\n\t\tif (imagestring($im,floor(min($size,15)/3),$x,$y - $size - 2,$text,$color)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n}", "public function getFontSize()\n {\n if (array_key_exists(\"fontSize\", $this->_propDict)) {\n return $this->_propDict[\"fontSize\"];\n } else {\n return null;\n }\n }", "public function text_size($text) \r\n { \r\n $height=count($this->ascii_table[0]); \r\n $width=count($this->ascii_table[0][0]); \r\n $maxX=0; \r\n $maxY=$height; \r\n $baseX=0; \r\n for ($index=0;$index<strlen($text);++$index) \r\n { \r\n if ($text[$index]===PHP_EOL) \r\n { \r\n $maxY+=$height; \r\n $baseX=0; \r\n continue; \r\n } \r\n $baseX+=$width; \r\n if ($baseX>$maxX) \r\n $maxX=$baseX; \r\n } \r\n return array($maxX,$maxY); \r\n }", "function render_text_left($im, $text,$font_size, $zone, $box){\n global $font_file;\n global $text_color;\n $type_space = imagettfbbox(($font_size), 0, $font_file, $text);\n $fw = $type_space[4];\n $fh = abs($type_space[7]);\n $px = $box->left_text_in_zone($fw,$fh,$zone);\n //pretty_dump($px);\n imagettftext($im ,$font_size, 0, $px->x, $px->y, $text_color, $font_file, $text);\n}", "function check_text($type, $font_size, $text) {\n \n $values = array(\n \"font\" => $font_size,\n \"text\" => $text\n );\n \n $str_length_of_text = mb_strlen($text);\n $max_length = 0;\n \n switch($type) {\n case Instruction::TITLE:\n $max_length = $this->max_base_length_of_title;\n break;\n case Instruction::HEADER_TITLE:\n $max_length = $this->max_base_length_of_header_title;\n break;\n case Instruction::INFO:\n $max_length = $this->max_base_length_of_info;\n break;\n case Instruction::REVIEWER_NAME:\n $max_length = $this->max_base_length_of_name;\n break;\n default:\n throw new Exception(\"Bad type of text selected.\");\n break;\n } \n \n if($str_length_of_text <= $max_length) {\n return $values;\n }\n else {\n //calculate font and round it down\n $new_font_size = round(($font_size * $max_length) / $str_length_of_text, 0, PHP_ROUND_HALF_DOWN); \n return $this->reduce_text_if_too_long($type, $font_size, $max_length, $new_font_size, $text);\n }\n }", "function customcert_get_font_sizes() {\n // Array to store the sizes.\n $sizes = array();\n\n for ($i = 1; $i <= 60; $i++) {\n $sizes[$i] = $i;\n }\n\n return $sizes;\n}", "function imagettfstroketext($image, $size, $angle, $x, $y, $textcolor, $strokecolor, $fontfile, $text, $px) {\n\t\tfor ($c1 = ($x-abs($px)); $c1 <= ($x+abs($px)); $c1++)\n\t\t\tfor ($c2 = ($y-abs($px)); $c2 <= ($y+abs($px)); $c2++)\n\t\t\t\t$bg = imagettftext($image, $size, $angle, $c1, $c2, $strokecolor, $fontfile, $text);\n\t\treturn imagettftext($image, $size, $angle, $x, $y, $textcolor, $fontfile, $text);\n\t}", "function set_text($svg, $id, $string = null, $font = 'tk-adobe-garamond-pro', $fontsize = 16, $x = null, $y = null, $textstyle = null, $color = null)\n\t{\n\t\t$attribution = null;\n\t\tif(is_array($string))\n\t\t{\n\t\t\tlist($attribution,$string) = $string;\n\t\t}\n\n\t\t#error_log(\"FONT=$font\");\n\n\t\t$fontName = $this->fontNames[$font];\n\t\t$fontFamily = $this->fontFamilies[$font];\n\n\t\t$tweaks = !empty($this->fontTweaks[$font]) ? $this->fontTweaks[$font] : array();\n\t\t$textOptions = array_merge($this->textOptions, $tweaks);\n\n\n\t\t#error_log(\"FONT=$font, FN=$fontName\");\n\t\t/*\n\t\t$fontName = $font;\n\t\tif(!empty($font) && !empty($this->raster))\n\t\t{\n\t\t\t$fontfile = $this->fontfile($font);\n\t\t\t$fontAttributes = new FontAttributes($fontfile);\n\t\t\t# Need to give proper name of font installed on system.\n\n\t\t\t$fontName = $fontAttributes->getFontFamily();\n\t\t\terror_log(\"FONTNAME=\".$fontName);\n\t\t}\n\t\t*/\n\t\t# Font name is not consistent with filename, etc. must scan ttf file.\n\n\t\t#$rect = $svg->xpath(\"//svg:rect[@id='$id']\");\n\t\t$rect = $this->xpathOne($svg, \"//svg:rect[@id='$id']\");\n\t\t# For constraints\n\n\t\t# TEST XXX\n\t\t#$string = \"Is the\\n cutest baby on\\nearth, maybe the universe.\";\n\n\t\t# Fix newlines\n\t\t$string = preg_replace(\"/\\r\\n/\", \"\\n\", $string);\n\n\t\t# Swap special chars. (ellipsis)\n\t\t$string = preg_replace(\"/([.]\\s*[.]\\s*[.])/\", \"…\", $string);\n\n\n\t\t#$string = \"Lorem ipsum dolor sit amet\";#, todor monei faloush doupf.\";\n\t\t# XXX DUMMY\n\n\t\t$origX = $this->attr($rect,'x');#$rect[0]['x'];\n\t\t$origY = $this->attr($rect,'y');#$rect[0]['y'];\n\n\t\t$startX = !empty($x) ? $x : $this->attr($rect,'x');#$rect[0]['x']; \n\t\t$startY = !empty($y) ? $y : $this->attr($rect,'y');#$rect[0]['y']; \n\t\t$origWidth = $maxWidth = $this->attr($rect,'width'); // Make sure text fits within.\n\t\t$origHeight = $maxHeight = $this->attr($rect,'height'); // Make sure text fits within.\n\n\t\t#error_log(\"OW=$origWidth, OH=$origHeight\");\n\n\t\t# Remove placeholder\n\t\t$placeholder = $this->xpath($svg, \"//svg:text[@id='{$id}_text']\");\n\t\tif(!empty($placeholder)) { \n\t\t\t$this->deleteNode($placeholder[0]);\n\t\t}\n\n\t\tif(empty($string)) { return; }\n\n\t\t# Escape string, ampersands screw up XML...\n\t\t$unescaped_string = $string;\n\t\t$string = htmlspecialchars($unescaped_string);\n\n\t\t$text = $this->addChild($svg, \"text\");\n\t\t$text->setAttribute(\"x\", $startX);\n\t\t$text->setAttribute(\"y\", $startY);\n\t\t# Or elsewhere, based on x,y of coords\n\n\t\t$style = \"font-size: {$fontsize}px; \";\n\t\tif(!empty($fontName)) { $style .= \" font-family: $fontFamily;\"; }\n\t\t#error_log(\"SET FONT=$fontName\");\n\n\t\t#error_log(\"COLOR: $color\");\n\n\t\tif(!empty($color)) { \n\t\t\tif(!preg_match(\"/^#/\", $color)) { $color = \"#$color\"; }\n\t\t\t$style .= \" fill: $color;\"; \n\t\t}\n\n\t\t#error_log(\"STLE=$style\");\n\n\t\tif($textstyle == 'attribution')\n\t\t{\n\t\t\t$string = \"— $string\";\n\t\t\t$style .= \" font-style: italic;\"; \n\t\t}\n\n\t\t#if($textstyle == 'center') { $style .= \" text-align: center;\"; } # This doesn't work, since no width/height assigned...\n\t\t$text->setAttribute(\"style\", $style);\n\n\t\t$offsetX = $startX;\n\t\t$dropcapBottom = $offsetY = $startY;\n\t\t$maxX = $offsetX + $origWidth;#$startX + $maxWidth;\n\t\t$maxY = $offsetY + $origHeight;#$startY + $maxHeight;\n\n\t\t#error_log(\"X,Y=$x,$y; MAXX($id)=$maxX, $origX + W=$origWidth\");\n\n\n\t\t#error_log(\"WORDS=\".print_r($string,true));\n\n\t\t$dropcapY = $offsetY;\n\n\t\tlist($normalW,$normalH,$charW,$charH) = $normalMetrics = $this->textMetrics($unescaped_string, $font, $fontsize);\n\t\t# Move down a linespace, since start coordinate is at top edge of text.\n\t\t$offsetY += $charH*.9; \n\n\t\t# There is no 'line-height', so we have to adjust the offset to simulate.\n\t\t$lineHeightFactor = $textOptions['lineHeight'];\n\t\t# (we may need to adjust using a factor of the fontsize)\n\t\t$lineHeight = $fontsize*$lineHeightFactor;\n\t\t$originalLineHeight = $fontsize*$this->textOptions['lineHeight']; # For newlines.\n\n\t\t# Replace sets of double quotes with curly quotes.\n\t\t# Add margin to make room for quotes.\n\t\tif($quoted = preg_match('/\"(.+)\"/', $string))\n\t\t{\n\t\t\t$string = preg_replace('/\"(.+)\"/', '\\\\1', $string);\n\t\t}\n\n\t\tif($quoted) # Add left quote, but move over\n\t\t{\n\t\t\t$tspan = $this->addChild($text, \"tspan\", '“');\n\t\t\t$tspan->setAttribute(\"x\", $offsetX-($fontsize*$this->textOptions['leftQuoteOffsetX']));\n\t\t\t$tspan->setAttribute(\"y\", $offsetY-($fontsize*$this->textOptions['leftQuoteOffsetY']));\n\t\t\t$lquotefontsize = $fontsize * $this->textOptions['leftQuoteSize'];\n\t\t\t$tspan->setAttribute(\"style\", \"font-size: {$lquotefontsize}px;\");\n\t\t}\n\n\t\t# DROPCAP\n\t\tif($textstyle == 'dropcap')\n\t\t{\n\t\t\t# Need to support unicode ie special chars.\n\t\t\t#$dropcap = $string[0];\n\t\t\t$dropcap = mb_substr($string, 0, 1);\n\n\t\t\t$dropfontsize = $fontsize * $textOptions['dropcapFactor']; # ?? maybe ??\n\t\t\t$string = mb_substr($string, 1); // remove.\n\n\t\t\tlist($dropcapW,$dropcapH,$dropcharW,$dropcharH,$box) = $dropMetrics = $this->textMetrics($dropcap, $font, $dropfontsize);\n\t\t\t\n\t\t\t#error_log(\"DROPH=$dropcapH, NORMH=$normalH, CHARW=$charW, CHARH=$charH\");\n\t\t\t#error_log(\"BOX=\".print_r($box,true));\n\n\t\t\t#$offsetY += $dropcapH/2;\n\n\t\t\t$dropcapY = $offsetY + $dropcharH*$textOptions['dropcapDrop'] - $charH; #$startY+$charH*.95; # Lower dropcap. needs a tiny nudge, compared to webpage.\n\t\t\t#error_log(\"STARTY=$startY + DROPH $dropcapH = DROPZY=$dropcapY\");\n\n\n\t\t\t$tspan = $this->addChild($text, \"tspan\", $dropcap);\n\t\t\t$tspan->setAttribute(\"x\", $offsetX);\n\t\t\t$tspan->setAttribute(\"y\", $dropcapY); # Lower\n\t\t\t$tspan->setAttribute(\"style\", \"font-size: {$dropfontsize}px;\");\n\t\t\t# XXX instead of using padding/margin, we have to adjust x/y\n\n\t\t\t# OFFSET DEPENDS ON LETER ITSELF, EXACT CHAR METRICS!\n\n\n\t\t\t#$dropcapMarginRight = $textOptions['dropcapMarginRight']*$dropcapW;#dropcapW; # $fontsize\n\t\t\t$dropcapMarginRight = $textOptions['dropcapMarginRight']*$dropfontsize;\n\n\t\t\t#if(!empty($fontTweaks[$font]['dropcap_margin_right'])) {\n\t\t\t#\t$dropcapMarginRight = $dropfontsize*$fontTweaks[$font]['dropcap_margin_right'];\n\t\t\t#}\n\n\t\t\t$offsetX += $dropcapW + $dropcapMarginRight;\n\n\t\t\t$dropcapX = $offsetX; # Right edge of dropcap.\n\n\t\t\t#error_log(\"DROPCAP X,Y=$dropcapX,$dropcapY\");\n\n\t\t\t# Also include 1st line a tad closer to dropcap.\n\t\t\t$offsetX += $textOptions['dropcapTextIndent']*$dropfontsize;\n\n\t\t\t$dropcapBottom = $offsetY+$dropcapH;#-$normalH); # FIX\n\t\t}\n\t\t#error_log(\"STR_AFTER=$string, START=$offsetX, $offsetY, MH=$maxHeight\");\n\n\t\t$biggestX = 0;\n\n\t\twhile($string && $offsetY < $startY+$maxHeight)\n\t\t{\n\n\t\t\twhile(!empty($string) && $string[0] == \"\\n\") # Newlines found...\n\t\t\t{\n\t\t\t\tlist($w,$h) = $this->textMetrics(\"\\n\", $font, $fontsize);\n\t\t\t\t#error_log(\"NEWLINE, ADDING $h\");\n\t\t\t\t$offsetY += $lineHeight; # May need to adjust\n\t\t\t\tif($offsetY > $dropcapBottom)\n\t\t\t\t{\n\t\t\t\t\t$offsetX = $startX;\n\t\t\t\t} else {\n\t\t\t\t\t$offsetX = $dropcapX;\n\t\t\t\t}\n\n\t\t\t\t$string = substr($string, 1); # Advance.\n\t\t\t}\n\n\n\t\t\t$words = preg_split(\"/(\\s)/\", $string, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);\n\t\t\t#error_log(\"SPLIT_WORDS=\".print_r($words,true));\n\n\t\t\t$fits = false;\n\t\t\t# Only join up until next newline.\n\t\t\t$testend = count($words)-1;\n\t\t\tif($newlineIndex = array_search(\"\\n\", $words))\n\t\t\t{\n\t\t\t\t#error_log(\"NEWLINE FOUND AT $newlineIndex IN '$string'\");\n\t\t\t\t$testend = $newlineIndex-1;\n\t\t\t}\n\t\t\t# XXX TODO single words on a line do not get inserted.\n\t\t\t# If set i >= 0, then recurses forever.\n\n\t\t\tfor($i = $testend; $i >= 0 && !$fits && count($words); $i--) # Check how many words fit on the line.\n\t\t\t{\n\t\t\t\t# Properly trim entire entity if special....\n\t\t\t\t$chunk = join(\"\", array_slice($words, 0, $i+1));\n\t\t\t\t$trimmed_chunk = trim($chunk); # Get rid of spaces before/after.\n\t\t\t\t$unescaped_trimmed_chunk = htmlspecialchars_decode($trimmed_chunk);\n\n\t\t\t\tlist($w,$h) = $this->textMetrics($unescaped_trimmed_chunk, $font, $fontsize); # Ignore spaces on right end...\n\t\t\t\t#error_log(\"CHECK ($chunk/0-$i) $w + $offsetX <= $maxX\");\n\n\t\t\t\t# TEST HERE FOR FITTING ON LINE\n\t\t\t\t#if($w + $offsetX <= $maxX-($fontsize*$textOptions['bufferFactor'])) {\n\n\t\t\t\t#error_log(\"CHECK_FIT '$trimmed_chunk', START=$offsetX,$offsetY, W=$w, TESTED=\".($w+$offsetX).\", MAX=$maxX\");\n\t\t\t\tif($w + $offsetX <= max($maxX,$biggestX)) { #-($fontsize*$textOptions['bufferFactor'])) {\n\t\t\t\t\t#error_log(\"FITS/$fontsize/$font ($chunk), $w + $offsetX < $maxX + ($fontsize*{$textOptions['bufferFactor']}), Y=$offsetY\");\n\n\t\t\t\t\t$biggestX = max($biggestX, $maxX);\n\t\t\t\t\t#error_log(\"BIGGEST_X=$biggestX\");\n\n\t\t\t\t\t$fits = true;\n\t\t\t\t\t$string = substr($string, strlen($chunk)); # Skip # words matched.\n\n\t\t\t\t\t#error_log(\"FITS!\");\n\n\t\t\t\t\t# Add text.\n\t\t\t\t\t$tspan = $this->addChild($text, \"tspan\", $trimmed_chunk); # Skip spaces at start of line...\n\n\t\t\t\t\t# Factor in centered\n\t\t\t\t\t#error_log(\"TEXZTSTLYE($id)=$textstyle\");\n\t\t\t\t\tif($textstyle == 'center')\n\t\t\t\t\t{\n\t\t\t\t\t\t$offsetX += ($maxWidth - $w)/2;\n\t\t\t\t\t} else if ($textstyle == 'attribution') { # Right\n\t\t\t\t\t\t$offsetX += ($maxWidth - $w);\n\t\t\t\t\t}\n\n\t\t\t\t\t$tspan->setAttribute(\"x\", $offsetX);\n\t\t\t\t\t$tspan->setAttribute(\"y\", $offsetY);\n\t\t\t\t\t$offsetX += $w;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!$fits)\n\t\t\t{\n\t\t\t\t#error_log(\"DIDNT FIT ($string) AT $offsetX < $maxX, ADDING H=$h, OFFSETY=$offsetY, DROPY=$dropcapY\");\n\t\t\t\t# if still in dropcap, just go down, don't go over.\n\t\t\t\tif($offsetY >= $dropcapY)\n\t\t\t\t{\n\t\t\t\t\t#error_log(\"OUTSIDE OF DROPCAP, GOING LEFT\");\n\t\t\t\t\t$offsetX = $startX;\n\t\t\t\t} else {\n\t\t\t\t\t#error_log(\"BACKING TO DROPCAP\");\n\t\t\t\t\t$offsetX = $dropcapX; // Go only back to dropcap.\n\t\t\t\t}\n\t\t\t\t$offsetY += $lineHeight;\n\t\t\t\t# This kinda only lets for one font size...\n\t\t\t}\n\t\t\t#error_log(\"STR=$string, OY=$offsetY\");\n\t\t} \n\n\t\tif($quoted) # Add right quote\n\t\t{\n\t\t\t$rquote = '”';\n\t\t\t# XXX May need to move down to next line if this sticks over...\n\t\t\t# \n\t\t\tlist($w,$h) = $this->textMetrics($rquote, $font, $fontsize);\n\t\t\t#error_log(\"CHECK ($chunk/0-$i) $w + $offsetX <= $maxX\");\n\n\t\t\t# TEST HERE FOR FITTING ON LINE\n\t\t\tif(!($w + $offsetX <= $maxX-($fontsize*$textOptions['bufferFactor']))) \n\t\t\t{\n\t\t\t\t# DOESNT FIT. Advance a line.\n\t\t\t\t$offsetX = $startX;\n\t\t\t\t$offsetY += $lineHeight;\n\t\t\t}\n\n\t\t\t# Now add right quote\n\n\t\t\t$tspan = $this->addChild($text, \"tspan\", $rquote);\n\t\t\t$tspan->setAttribute(\"x\", $offsetX);\n\t\t\t$tspan->setAttribute(\"y\", $offsetY);\n\t\t\t$tspan->setAttribute(\"style\", \"font-family: '{$this->textOptions['quotedFont']}', Times New Roman, serif;\");\n\t\t}\n\n\t\treturn array($offsetX,$offsetY);\n\t}", "function readFontString()\r\n {\r\n\r\n $styles=$this->fontStyles();\r\n\r\n $result=\" font-family: $this->_family; font-size: $this->_size; $styles\";\r\n return($result);\r\n }", "private function getWrappedTextHeight($font, $size, $w, $text)\n {\n if ($text == '') {\n return 0;\n }\n\n $t = $this->getWrappedText($font, $size, $w, $text);\n\n $box = $this->getTextBoundingBox($size, 0, $font, join(\"\\n\", $t));\n $box_h = $box[1] - $box[5];\n\n $h = $box_h; //count( $t ) * $this->getTextLineHeight( $font, $size );\n\n return $h;\n }", "public function testConvertRecognizesFontSizeInConfiguration()\n {\n $config = new PHP_Depend_Util_Configuration('<?xml version=\"1.0\"?>\n <configuration>\n <imageConvert>\n <fontSize>14</fontSize>\n </imageConvert>\n </configuration>\n ');\n PHP_Depend_Util_ConfigurationInstance::set($config);\n\n $this->_out = self::createRunResourceURI('pdepend.svg');\n copy(dirname(__FILE__) . '/_input/pyramid.svg', $this->_out);\n\n $svg = file_get_contents($this->_out);\n preg_match_all('/font-size:\\s*11px/', $svg, $matches);\n $expected11 = count($matches[0]);\n preg_match_all('/font-size:\\s*14px/', $svg, $matches);\n $expected14 = count($matches[0]);\n\n\n $this->assertEquals(25, $expected11);\n $this->assertEquals(0, $expected14);\n\n PHP_Depend_Util_ImageConvert::convert($this->_out, $this->_out);\n\n $svg = file_get_contents($this->_out);\n preg_match_all('/font-size:\\s*11px/', $svg, $matches);\n $actual11 = count($matches[0]);\n preg_match_all('/font-size:\\s*14px/', $svg, $matches);\n $actual14 = count($matches[0]);\n\n $this->assertEquals(0, $actual11);\n $this->assertEquals(25, $actual14);\n }", "public function getTextWidth() {}", "public function getFontDescriptor();", "public function getSizeFormatted($si = false);", "public function getFontSize() {\n\t\treturn $this->fontSize;\n\t}", "public function getTextSize(): int\n {\n return $this->textSize;\n }", "public function getFontStretch() {}", "public function getItalicAngle() {}", "public function getItalicAngle() {}", "public function getItalicAngle() {}", "public function getItalicAngle() {}", "public function getItalicAngle() {}", "public function getElementSize($infobox, $corner);", "private function _getTextWidth($fontSize, array $lines) {}", "public function getFontSize() {\n\t\treturn $this->font_size;\n\t}", "public static function imageTtfTextJustified(\n $image,\n $text,\n $left = 20,\n $top = 50,\n $size = 25,\n $textColor = null,\n $strokeColor = null,\n $fontFile = null,\n $maxWidth = null,\n $minSpacing = 3,\n $lineSpacing = 1,\n $strokeSize = 2,\n $angle = 0\n ) {\n if (!$textColor) {\n $textColor = imagecolorallocate($image, 255, 255, 255);\n }\n if (!$strokeColor) {\n $strokeColor = imagecolorallocate($image, 0, 0, 0);\n }\n if (!$fontFile) {\n // Assumes macOS with SFCompact installed.\n if (!file_exists('/System/Library/Fonts/SFCompact.ttf')) {\n throw new \\Exception('You must provide a path to a valid TTF font file.');\n }\n $fontFile = '/System/Library/Fonts/SFCompact.ttf';\n }\n if (!$maxWidth) {\n $maxWidth = (imagesx($image) - (50 + $left));\n }\n\n $wordWidth = [];\n $lineWidth = [];\n $lineWordCount = [];\n $largest_line_height = 0;\n $lineno = 0;\n $words = explode(' ', $text);\n $wln = 0;\n $lineWidth[$lineno] = 0;\n $lineWordCount[$lineno] = 0;\n $wordText = [];\n foreach ($words as $word) {\n $dimensions = imagettfbbox($size, $angle, $fontFile, $word);\n $line_width = $dimensions[2] - $dimensions[0];\n $line_height = $dimensions[1] - $dimensions[7];\n if ($line_height > $largest_line_height) {\n $largest_line_height = $line_height;\n }\n if (($lineWidth[$lineno] + $line_width + $minSpacing) > $maxWidth) {\n $lineno++;\n $lineWidth[$lineno] = 0;\n $lineWordCount[$lineno] = 0;\n $wln = 0;\n }\n $lineWidth[$lineno] += $line_width + $minSpacing;\n $wordWidth[$lineno][$wln] = $line_width;\n $wordText[$lineno][$wln] = $word;\n $lineWordCount[$lineno]++;\n $wln++;\n }\n for ($ln = 0; $ln <= $lineno; $ln++) {\n $spacing = $minSpacing;\n\n $x = 0;\n for (\n $w = 0;\n $w < $lineWordCount[$ln];\n $w++\n ) {\n $single_word_text = $wordText[$ln][$w];\n self::imagettfstroketext(\n $image,\n $single_word_text,\n $size,\n $strokeSize,\n $left + intval($x),\n $top + $largest_line_height + ($largest_line_height * $ln * $lineSpacing),\n $textColor,\n $strokeColor,\n $fontFile,\n $angle\n );\n $x += $wordWidth[$ln][$w] + $spacing + $minSpacing;\n }\n }\n return $image;\n }", "function RenderAnnotation($str) {\r\n $this->SetAnnotationFont();\r\n $width = $this->GetStringWidth($str);\r\n $this->Cell($width, 0, $str);\r\n return $width;\r\n }", "public static function DeclarationIconWithStringValue($stringValue) {\n $instance = new parent(\"height\", $stringValue);\n return $instance;\n }", "public function getFormatSize() {}", "function Shaded_box($text, $font = '', $fontstyle = 'B', $szfont = '', $width = '70%', $style = 'DF', $radius = 2.5, $fill = '#FFFFFF', $color = '#000000', $pad = 2)\n\t{\n\t\tif (!$font) {\n\t\t\t$font = $this->mpdf->default_font;\n\t\t}\n\t\tif (!$szfont) {\n\t\t\t$szfont = $this->mpdf->default_font_size * 1.8;\n\t\t}\n\n\t\t$text = ' ' . $text . ' ';\n\t\t$this->mpdf->SetFont($font, $fontstyle, $szfont, false);\n\n\t\t$text = $this->mpdf->purify_utf8_text($text);\n\n\t\tif ($this->mpdf->text_input_as_HTML) {\n\t\t\t$text = $this->mpdf->all_entities_to_utf8($text);\n\t\t}\n\n\t\tif ($this->mpdf->usingCoreFont) {\n\t\t\t$text = mb_convert_encoding($text, $this->mpdf->mb_enc, 'UTF-8');\n\t\t}\n\n\n\t\t// DIRECTIONALITY\n\t\tif (preg_match('/([' . $this->mpdf->pregRTLchars . '])/u', $text)) {\n\t\t\t$this->mpdf->biDirectional = true;\n\t\t} // *RTL*\n\n\t\t$textvar = 0;\n\t\t$save_OTLtags = $this->mpdf->OTLtags;\n\t\t$this->mpdf->OTLtags = [];\n\n\t\tif ($this->mpdf->useKerning) {\n\t\t\tif ($this->mpdf->CurrentFont['haskernGPOS']) {\n\t\t\t\t$this->mpdf->OTLtags['Plus'] .= ' kern';\n\t\t\t} else {\n\t\t\t\t$textvar |= TextVars::FC_KERNING;\n\t\t\t}\n\t\t}\n\t\t// Use OTL OpenType Table Layout - GSUB & GPOS\n\t\tif (!empty($this->mpdf->CurrentFont['useOTL'])) {\n\t\t\t$text = $this->otl->applyOTL($text, $this->mpdf->CurrentFont['useOTL']);\n\t\t\t$OTLdata = $this->otl->OTLdata;\n\t\t}\n\t\t$this->mpdf->OTLtags = $save_OTLtags;\n\n\t\t$this->mpdf->magic_reverse_dir($text, $this->mpdf->directionality, $OTLdata);\n\n\t\tif (!$width) {\n\t\t\t$width = $this->mpdf->pgwidth;\n\t\t} else {\n\t\t\t$width = $this->sizeConverter->convert($width, $this->mpdf->pgwidth);\n\t\t}\n\t\t$midpt = $this->mpdf->lMargin + ($this->mpdf->pgwidth / 2);\n\t\t$r1 = $midpt - ($width / 2); //($this->mpdf->w / 2) - 40;\n\t\t$r2 = $r1 + $width; //$r1 + 80;\n\t\t$y1 = $this->mpdf->y;\n\n\t\t$loop = 0;\n\n\t\twhile ($loop === 0) {\n\t\t\t$this->mpdf->SetFont($font, $fontstyle, $szfont, false);\n\t\t\t$sz = $this->mpdf->GetStringWidth($text, true, $OTLdata, $textvar);\n\t\t\tif (($r1 + $sz) > $r2) {\n\t\t\t\t$szfont --;\n\t\t\t} else {\n\t\t\t\t$loop ++;\n\t\t\t}\n\t\t}\n\t\t$this->mpdf->SetFont($font, $fontstyle, $szfont, true, true);\n\n\t\t$y2 = $this->mpdf->FontSize + ($pad * 2);\n\n\t\t$this->mpdf->SetLineWidth(0.1);\n\t\t$fc = $this->colorConverter->convert($fill, $this->mpdf->PDFAXwarnings);\n\t\t$tc = $this->colorConverter->convert($color, $this->mpdf->PDFAXwarnings);\n\t\t$this->mpdf->SetFColor($fc);\n\t\t$this->mpdf->SetTColor($tc);\n\t\t$this->mpdf->RoundedRect($r1, $y1, $r2 - $r1, $y2, $radius, $style);\n\t\t$this->mpdf->SetX($r1);\n\t\t$this->mpdf->Cell($r2 - $r1, $y2, $text, 0, 1, 'C', 0, '', 0, 0, 0, 'M', 0, false, $OTLdata, $textvar);\n\t\t$this->mpdf->SetY($y1 + $y2 + 2); // +2 = mm margin below shaded box\n\t\t$this->mpdf->Reset();\n\t}", "public function getAppearanceFont() {}", "function fontsize($args) {\r\n\t\t$args['selections'] = array('6'=>'6','7'=>'7', '8'=>'8', '9'=>'9', '10'=>'10', '11'=>'11','12'=>'12', '14'=>'14', '16'=>'16', '18'=>'18');\r\n\t\t$args['multiple'] = false;\r\n\t\t$args['width'] = '60';\r\n\t\t$args['tooltip'] = 'Choose the font size';\r\n\t\t$this->select($args);\r\n\t}", "public function getSize(): string\n {\n $B = 1;\n $KB = $B * 1024;\n $MB = $KB * 1024;\n $GB = $MB * 1024;\n\n $bytes = filesize($this->filePath);\n\n $units = match (true)\n {\n $bytes >= $GB => ['suffix' => 'GiB', 'base' => $GB, 'css' => 'text-dark'],\n $bytes >= $MB => ['suffix' => 'MiB', 'base' => $MB, 'css' => 'text-light'],\n $bytes >= $KB => ['suffix' => 'KiB', 'base' => $KB, 'css' => 'text-muted'],\n default => ['suffix' => 'B', 'base' => $B, 'css' => 'text-danger']\n };\n\n return sprintf('%.3f', $bytes / $units['base']) . $units['suffix'];\n }", "public function getItalicAngle($round = true) {}", "function getFont() { return $this->_font; }", "protected function _drawText()\n {\n $x = $this->_width*0.05;\n $y = $this->_height*0.96;\n\n $text_color=ImageColorAllocate($this->_image, 0x00, 0x00, 0x00);\n\n $fontsize = $this->scale*7;\n $kerning = $fontsize*1;\n\n for($i=0;$i<strlen($this->number);$i++)\n {\n imagettftext($this->_image, $fontsize, 0, $x, $y, $text_color, $this->font, $this->number[$i]);\n if($i==0 || $i==6)\n $x += $kerning*0.5;\n $x += $kerning;\n }\n }", "function imagettfstroketext(&$image, $size, $angle, $x, $y, &$textcolor, &$strokecolor, $fontfile, $text, $px) {\n\t\tfor($c1 = ($x-abs($px)); $c1 <= ($x+abs($px)); $c1++)\n\t\t\tfor($c2 = ($y-abs($px)); $c2 <= ($y+abs($px)); $c2++)\n\t\t\t\t$bg = imagettftext($image, $size, $angle, $c1, $c2, $strokecolor, $fontfile, $text);\n\t\treturn imagettftext($image, $size, $angle, $x, $y, $textcolor, $fontfile, $text);\n\t}", "function reduce_text_if_too_long($type, $old_font_size, $old_max_base_length_of_text, $new_font_size, $text) {\n $min_font_size = 0;\n switch($type) {\n case Instruction::TITLE:\n $min_font_size = $this->min_font_size_of_title;\n break;\n case Instruction::HEADER_TITLE:\n $min_font_size = $this->min_font_size_of_header_title;\n break;\n case Instruction::INFO:\n $min_font_size = $this->min_font_size_of_info;\n break;\n case Instruction::REVIEWER_NAME:\n $min_font_size = $this->min_font_size_of_name;\n break;\n default:\n throw new Exception(\"Bad type of text selected.\");\n break;\n }\n \n \n $values = array(\n \"font\" => $new_font_size,\n \"text\" => $text\n );\n\n if ($new_font_size < $min_font_size) {\n $new_length_of_text = round(($old_font_size / $min_font_size) * $old_max_base_length_of_text, 0, PHP_ROUND_HALF_DOWN); \n //-3 because we want last 3 characters as 3 dots\n $rounded_text = substr($text, 0, $new_length_of_text - 3);\n $rounded_text .= \"...\"; \n \n $values[\"font\"] = $min_font_size;\n $values[\"text\"] = $rounded_text;\n } \n \n return $values; \n }", "function get_pdf_dimensions($path, $box=\"TrimBox\") {\n\n $stream = new SplFileObject($path); \n \n $result = false;\n\n while (!$stream->eof()) {\n \n if (preg_match(\"/\".$box.\"\\[[0-9]{1,}.[0-9]{1,} [0-9]{1,}.[0-9]{1,} ([0-9]{1,}.[0-9]{1,}) ([0-9]{1,}.[0-9]{1,})\\]/\", $stream->fgets(), $matches)) {\n $result[\"width\"] = $matches[1];\n $result[\"height\"] = $matches[2]; \n break;\n }\n }\n\n $stream = null;\n\n return $result;\n}", "function imagettfstroketext(&$image, $size, $angle, $x, $y, &$textcolor, &$strokecolor, $fontfile, $text, $px) {\n \n for($c1 = ($x-abs($px)); $c1 <= ($x+abs($px)); $c1++)\n for($c2 = ($y-abs($px)); $c2 <= ($y+abs($px)); $c2++)\n $bg = imagettftext($image, $size, $angle, $c1, $c2, $strokecolor, $fontfile, $text);\n \n return imagettftext($image, $size, $angle, $x, $y, $textcolor, $fontfile, $text);\n }", "public function getFont(XMLObj $name)\r\n\t{\r\n\t\treturn AD.$this->getConfig()->getChildren(\"image\")->getString(\"fontPath\").$name->getString(\"font\");\r\n\t}", "public static function addTextToImage($path, $text, $newNamePath, $option = array())\r\n {\r\n\r\n if(!empty($option[\"positionX\"]))\r\n $positionX = $option[\"positionX\"];\r\n else\r\n $positionX = 0;\r\n\r\n if(!empty($option[\"positionY\"]))\r\n $positionY = $option[\"positionY\"];\r\n else\r\n $positionY = 0;\r\n\r\n if(!empty($option[\"size\"]))\r\n $size = $option[\"size\"];\r\n else\r\n $size = 13;\r\n\r\n\r\n if(!empty($option[\"colorR\"]))\r\n $red = $option[\"colorR\"];\r\n else\r\n $red = 0;\r\n\r\n if(!empty($option[\"colorG\"]))\r\n $green = $option[\"colorG\"];\r\n else\r\n $green = 0;\r\n\r\n if(!empty($option[\"colorB\"]))\r\n $blue = $option[\"colorB\"];\r\n else\r\n $blue = 0;\r\n\r\n if(!empty($option[\"fontfile\"]))\r\n $fontfile = \"../../www/themes/default/fonts/\" . $option[\"fontfile\"];\r\n else\r\n $fontfile = \"../../www/themes/default/fonts/arial.ttf\";\r\n\r\n if(!empty($option[\"angle\"]))\r\n $angle = $option[\"angle\"];\r\n else\r\n $angle = 0;\r\n\r\n\r\n if(!empty($option[\"alignH\"])){\r\n $zoneWidth = 0;\r\n if(!empty($option[\"zoneWidth\"])){\r\n $zoneWidth = $option['zoneWidth'];\r\n }\r\n if($option[\"alignH\"]=='right'){\r\n list($left,, $right) = imageftbbox($size, 0, $fontfile, $text);\r\n $length = $right-$left;\r\n $positionX = $positionX - $length;\r\n }\r\n else if($option[\"alignH\"]=='center'){\r\n list($left,, $right) = imageftbbox($size, 0, $fontfile, $text);\r\n $center = ceil($zoneWidth / 2);\r\n $positionX = $positionX + $center - (ceil(($right-$left)/2));\r\n }\r\n }\r\n if(!empty($option[\"alignV\"])){\r\n $zoneHeight = 0;\r\n if(!empty($option[\"zoneHeight\"])){\r\n $zoneHeight = $option['zoneHeight'];\r\n }\r\n if($option[\"alignV\"]=='top'){\r\n list(,$bottom,,,,$top) = imageftbbox($size, 0, $fontfile, $text);\r\n $height = $bottom-$top;\r\n $positionY = $positionY - $zoneHeight + $height;\r\n }\r\n else if($option[\"alignV\"]=='middle'){\r\n list(,$bottom,,,,$top) = imageftbbox($size, 0, $fontfile, $text);\r\n $height = $bottom-$top;\r\n $center = ceil($zoneHeight / 2);\r\n $positionY = $positionY - $center + (ceil(($height)/2));\r\n }\r\n }\r\n\r\n $image['ext'] = strtolower(substr($path, strrpos($path, '.') + 1));\r\n list($image['width'], $image['height'], $image['type'], $image['attr']) = getimagesize($path);\r\n\r\n if($image['ext'] == 'jpeg' || $image['ext'] == 'jpg'){\r\n $newImage = imagecreatefromjpeg($path);\r\n $thumb = imagecreatetruecolor($image['width'],$image['height']);\r\n $text_color = imagecolorallocate($newImage, $red, $green, $blue);\r\n imagettftext($newImage, $size , $angle , $positionX, $positionY , $text_color , $fontfile , $text );\r\n imagecopyresampled($thumb,$newImage,0,0,0,0,$image['width'],$image['height'],$image['width'],$image['height']);\r\n imagejpeg($thumb, $newNamePath, 100);\r\n imagedestroy($newImage);\r\n }\r\n\r\n elseif($image['ext'] == 'gif'){\r\n $newImage = imagecreatefromgif($path);\r\n $thumb = imagecreate($image['width'],$image['height']);\r\n $text_color = imagecolorallocate($newImage, $red, $green, $blue);\r\n imagettftext($newImage, $size , $angle , $positionX, $positionY , $text_color , $fontfile , $text );\r\n $trans_color = imagecolorallocate($thumb, 255, 0, 0);\r\n imagecolortransparent($thumb, $trans_color);\r\n imagecopyresampled($thumb,$newImage,0,0,0,0,$image['width'],$image['height'],$image['width'],$image['height']);\r\n imagegif($thumb, $newNamePath);\r\n imagedestroy($newImage);\r\n }\r\n elseif($image['ext'] == 'png'){\r\n $image_source = imagecreatefrompng($path);\r\n $newImage = imagecreatetruecolor($image['width'],$image['height']);\r\n $text_color = imagecolorallocate($newImage, $red, $green, $blue);\r\n imagettftext($image_source, $size , $angle , $positionX, $positionY , $text_color , $fontfile , $text );\r\n if (function_exists('imagecolorallocatealpha')){\r\n imagealphablending($newImage, false);\r\n imagesavealpha($newImage, true);\r\n $transparent = imagecolorallocatealpha($newImage, 255, 255, 255, 127);\r\n imagefilledrectangle($newImage, 0, 0, $image['width'], $image['height'], $transparent);\r\n imagecolortransparent($newImage, $transparent);\r\n }\r\n\r\n imagecopyresampled($newImage, $image_source, 0, 0, 0, 0, $image['width'],$image['height'],$image['width'],$image['height']);\r\n imagepng($newImage, $newNamePath);\r\n imagedestroy($newImage);\r\n }\r\n }", "private function wrapText($size, $path, $text, $width) {\n $ret = \"\";\n $lines = explode(\"\\n\", $text);\n\n foreach ($lines as $line) {\n $words = explode(\" \", $line);\n foreach ($words as $word) {\n $testboxWord = imagettfbbox($size, 0, $path, $word);\n\n $len = strlen($word);\n while ($testboxWord[2] > $width && $len > 0) {\n $word = substr($word, 0, $len);\n $len--;\n $testboxWord = imagettfbbox($size, 0, $path, $word);\n }\n\n $teststring = $ret.\" \".$word;\n $testboxString = imagettfbbox($size, 0, $path, $teststring);\n if ($testboxString[2] > $width){\n $ret .= ($ret == \"\" ? \"\" : \"\\n\").$word;\n }else{\n $ret .= ($ret == \"\" ? \"\" : \" \").$word;\n }\n }\n $ret .= \"\\n\";\n }\n\n return $ret;\n }", "private function setText($text, $width, $height)\n {\n $strlen = strlen($text);\n $allFonts = Font::get();\n\n if (is_int(self::$padding)) {\n $maxWidth = $width - self::$padding;\n $maxHeight = $height - self::$padding;\n } else {\n $maxWidth = $width - ($width * self::$padding);\n $maxHeight = $height - ($height * self::$padding);\n }\n\n $letters = $previous = array();\n $fontSize = 14;\n\n while (true) {\n $letters = $this->getLetters($text, $strlen, $fontSize += 2, $allFonts, $width, $height, $maxWidth, $maxHeight);\n\n if ($letters === false) {\n $letters = $previous;\n break;\n }\n\n $previous = $letters;\n }\n\n if (self::$noisePoints) {\n $this->noisePoints($width, $height);\n }\n\n if (self::$noiseLines) {\n $this->noiseLines($width, $height);\n }\n\n $x = intval(($width - array_sum(array_map(function ($row) {\n return $row['width'];\n }, $letters))) / 2);\n\n foreach ($letters as $letter) {\n imagettftext(\n $this->image,\n $letter['size'],\n $letter['angle'],\n $x,\n $letter['y'],\n imagecolorallocate($this->image, self::$color[0], self::$color[1], self::$color[2]),\n $letter['font'],\n $letter['letter']\n );\n\n $x += $letter['width'];\n }\n }", "public function getFont()\n {\n return $this->font[rand(0, count($this->font) - 1)];\n }", "public function setText($text, $font, $position = array('top', 'left'), $size = 10, $margin = 0)\n {\n if (!$text && !$font && (!is_array($position) || count($position) != 2)) return; // TODO: Much better to throw an exception than just this check.\n \n $textArea = $this->_getWidth($this->layout) - ($margin * 2); // Consider both left and right edges.\n $lines = $this->_wrapText($text, $font, $size, $textArea);\n \n $position = array_map('strtolower', $position);\n // Reverse the lines if text is to be positioned at the bottom.\n if (in_array('bottom', $position)) {\n $lines = array_reverse($lines);\n }\n\n $lineHeight = 0;\n foreach ($lines as $line) {\n $bbox = imagettfbbox($size, 0, $font, $line);\n \n $x = null; \n $y = null;\n foreach ($position as $index => $value) {\n if (is_numeric($value)) {\n if (0 == $index) {\n $x = $value + $margin;\n } else {\n $y = $value + $bbox[1] + $margin - ($bbox[5] / 2) + $lineHeight;\n }\n } else {\n switch ($value) {\n case 'right':\n $x = floor($this->_getWidth($this->layout) - $bbox[2]) - $margin;\n break;\n case 'left':\n $x = $margin;\n break; \n case 'center':\n if ((0 == $index && !('left' == $position[1] || 'right' == $position[1])) || !empty($y)) {\n $x = $bbox[0] + ($this->_getWidth($this->layout) / 2) - ($bbox[4] / 2); \n } else {\n $y = $bbox[1] + ($this->_getHeight($this->layout) / 2) - ($bbox[5] / 2) + $lineHeight;\n }\n break;\n case 'bottom':\n $y = $this->_getHeight($this->layout) - ($bbox[1] + $margin - ($bbox[5] / 2) + $lineHeight);\n break;\n case 'top':\n $y = $bbox[1] + $margin - ($bbox[5] / 2) + $lineHeight;\n break;\n default:\n // TODO: Maybe throw another exception here.\n break;\n }\n }\n }\n $lineHeight += $bbox[1] - $bbox[7] + 5; // Set the line height for the next line of text.\n \n $black = imagecolorallocate($this->layout, 0, 0, 0);\n imagettftext($this->layout, $size, 0, $x, $y, $black, $font, $line);\n } \n }", "protected function testFitStringInTextBox( $string, ezcGraphCoordinate $position, $width, $height, $size )\n {\n // Tokenize String\n $tokens = preg_split( '/\\s+/', $string );\n $initialHeight = $height;\n\n $lines = array( array() );\n $line = 0;\n foreach ( $tokens as $nr => $token )\n {\n // Add token to tested line\n $selectedLine = $lines[$line];\n $selectedLine[] = $token;\n\n $boundings = $this->getTextBoundings( $size, $this->options->font, implode( ' ', $selectedLine ) );\n // Check if line is too long\n if ( $boundings->width > $width )\n {\n if ( count( $selectedLine ) == 1 )\n {\n // Return false if one single word does not fit into one line\n // Scale down font size to fit this word in one line\n return $width / $boundings->width;\n }\n else\n {\n // Put word in next line instead and reduce available height by used space\n $lines[++$line][] = $token;\n $height -= $size * ( 1 + $this->options->lineSpacing );\n }\n }\n else\n {\n // Everything is ok - put token in this line\n $lines[$line][] = $token;\n }\n \n // Return false if text exceeds vertical limit\n if ( $size > $height )\n {\n return 1;\n }\n }\n\n // Check width of last line\n $boundings = $this->getTextBoundings( $size, $this->options->font, implode( ' ', $lines[$line] ) );\n if ( $boundings->width > $width )\n {\n return 1;\n }\n\n // It seems to fit - return line array\n return $lines;\n }", "private static function imageTtfStrokeText(\n $image,\n $text,\n $size = 25,\n $strokeSize = 2,\n $xPosition = 20,\n $yPosition = 50,\n $textColor = null,\n $strokeColor = null,\n $fontFile = null,\n $angle = 0\n ) {\n for ($c1 = ($xPosition - abs($strokeSize)); $c1 <= ($xPosition + abs($strokeSize)); $c1++) {\n for ($c2 = ($yPosition - abs($strokeSize)); $c2 <= ($yPosition + abs($strokeSize)); $c2++) {\n imagettftext($image, $size, $angle, $c1, $c2, $strokeColor, $fontFile, $text);\n }\n }\n return imagettftext($image, $size, $angle, $xPosition, $yPosition, $textColor, $fontFile, $text);\n }", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "public function getFontDescriptor() {}", "private function build_text($im, $text, $x=6, $align='left', $y=12){\n\t\t// Font size\n\t\t$size = 8;\n\t\t// Sort out alignment\n\t\tif ($align=='right'){\n\t\t\t$dat = imagettfbbox($size, 0, \"visitor.ttf\", $text);\n\t\t\t$x -= $dat[2];\n\t\t}\n\t\t// Set up black and white colours\n\t\t$color2 = imagecolorallocate($im, 0, 0, 0);\n\t\t$color = imagecolorallocate($im, 255, 255, 255);\n\t\t// Write text border\n\t\timagettftext($im, $size, 0, $x-1, $y-1, $color2, \"visitor.ttf\", $text);\n\t\timagettftext($im, $size, 0, $x-1, $y, $color2, \"visitor.ttf\", $text);\n\t\timagettftext($im, $size, 0, $x-1, $y+1, $color2, \"visitor.ttf\", $text);\n\t\timagettftext($im, $size, 0, $x, $y+1, $color2, \"visitor.ttf\", $text);\n\t\timagettftext($im, $size, 0, $x, $y-1, $color2, \"visitor.ttf\", $text);\n\t\timagettftext($im, $size, 0, $x+1, $y-1, $color2, \"visitor.ttf\", $text);\n\t\timagettftext($im, $size, 0, $x+1, $y, $color2, \"visitor.ttf\", $text);\n\t\timagettftext($im, $size, 0, $x+1, $y+1, $color2, \"visitor.ttf\", $text);\n\t\t// Write text\n\t\timagettftext($im, $size, 0, $x, $y, $color, \"visitor.ttf\", $text);\n\t}", "function fontStyles()\r\n {\r\n /*\r\n if ($this->_control!=null)\r\n {\r\n if ($this->_control->ParentFont)\r\n {\r\n $parent=$this->_control->Parent;\r\n if ($parent!=null) return($parent->Font->readFontString());\r\n }\r\n }\r\n */\r\n\r\n $textalign=\"\";\r\n switch($this->_align)\r\n {\r\n case taLeft: $textalign=\"text-align: left;\"; break;\r\n case taRight: $textalign=\"text-align: right;\"; break;\r\n case taCenter: $textalign=\"text-align: center;\"; break;\r\n case taJustify: $textalign=\"text-align: justify;\"; break;\r\n }\r\n\r\n $fontstyle=\"\";\r\n switch($this->_style)\r\n {\r\n case fsNormal: $fontstyle=\"font-style: normal;\"; break;\r\n case fsItalic: $fontstyle=\"font-style: italic;\"; break;\r\n case fsOblique: $fontstyle=\"font-style: oblique;\"; break;\r\n }\r\n\r\n // changed to fix RAID#282144\r\n $fontvariant=\"\";\r\n switch($this->_variant)\r\n {\r\n case vaNormal: $fontvariant=\"font-variant: normal;\"; break;\r\n case vaSmallCaps: $fontvariant=\"font-variant: small-caps;\"; break;\r\n }\r\n\r\n $texttransform=\"\";\r\n switch($this->_case)\r\n {\r\n case caCapitalize: $texttransform=\"text-transform: capitalize;\"; break;\r\n case caUpperCase: $texttransform=\"text-transform: uppercase;\"; break;\r\n case caLowerCase: $texttransform=\"text-transform: lowercase;\"; break;\r\n case caNone: $texttransform=\"text-transform: none;\"; break;\r\n }\r\n\r\n $color=\"\";\r\n if ($this->_color!=\"\") $color=\"color: $this->_color;\";\r\n\r\n $lineheight=\"\";\r\n if ($this->_lineheight!=\"\") $lineheight=\"line-height: $this->_lineheight;\";\r\n\r\n $fontweight=\"\";\r\n if ($this->_weight!=\"\") $fontweight=\"font-weight: $this->_weight;\";\r\n\r\n return \" $color$fontweight$textalign$fontstyle$lineheight$fontvariant$texttransform \";\r\n }", "public function getFont()\n {\n return $this->font;\n }", "function imagettfstroketext(&$image, $size, $angle, $x, $y, &$textcolor, &$strokecolor, $fontfile, $text, $px)\n{\n for($c1 = ($x-abs($px)); $c1 <= ($x+abs($px)); $c1++)\n for($c2 = ($y-abs($px)); $c2 <= ($y+abs($px)); $c2++)\n $bg = imagettftext($image, $size, $angle, $c1, $c2, $strokecolor, $fontfile, $text);\n\n return imagettftext($image, $size, $angle, $x, $y, $textcolor, $fontfile, $text);\n}", "public function testScaleWithString()\n {\n $box = $this->box->scale('2.0');\n static::assertEquals(200, $box->getHeight());\n static::assertEquals(200, $box->getWidth());\n }", "protected function DrawText($im)\r\n {\r\n if ($this->textfont != 0) {\r\n $bar_color = (is_null($this->color1)) ? NULL : $this->color1->allocate($im);\r\n if (!is_null($bar_color)) {\r\n $rememberX = $this->positionX;\r\n $rememberH = $this->maxHeight;\r\n // We increase the bars\r\n $this->maxHeight = $this->maxHeight + 9;\r\n $this->positionX = 0;\r\n $this->DrawSingleBar($im, $this->color1);\r\n $this->positionX += $this->res * 2;\r\n $this->DrawSingleBar($im, $this->color1);\r\n // Center Guard Bar\r\n $this->positionX += $this->res * 30;\r\n $this->DrawSingleBar($im, $this->color1);\r\n $this->positionX += $this->res * 2;\r\n $this->DrawSingleBar($im, $this->color1);\r\n // Last Bars\r\n $this->positionX += $this->res * 30;\r\n $this->DrawSingleBar($im, $this->color1);\r\n $this->positionX += $this->res * 2;\r\n $this->DrawSingleBar($im, $this->color1);\r\n\r\n $this->positionX = $rememberX;\r\n $this->maxHeight = $rememberH;\r\n imagestring($im, $this->textfont, (3 * $this->res + 34 * $this->res) / 2 - imagefontwidth($this->textfont) * (4 / 2), $this->maxHeight + 1, substr($this->text, 0, 4), $bar_color);\r\n imagestring($im, $this->textfont, 32 * $this->res + (3 * $this->res + 32 * $this->res) / 2 - imagefontwidth($this->textfont) * (4 / 2), $this->maxHeight + 1, substr($this->text, 4, 4), $bar_color);\r\n }\r\n $this->lastY = $this->maxHeight + imagefontheight($this->textfont);\r\n }\r\n }", "public function setFont(\\SetaPDF_Core_Font_FontInterface $font, $size) {}" ]
[ "0.6692964", "0.6689716", "0.66579914", "0.64720815", "0.6220286", "0.6187818", "0.57844144", "0.5783131", "0.5703615", "0.5703615", "0.56903934", "0.568199", "0.5653628", "0.5593829", "0.54823786", "0.5457755", "0.5437412", "0.5416632", "0.53596175", "0.5358272", "0.5358272", "0.5358272", "0.5357765", "0.53564686", "0.53278244", "0.53179437", "0.5311555", "0.5311555", "0.5311555", "0.52881074", "0.52798593", "0.5264019", "0.5232762", "0.5232762", "0.52313375", "0.51980174", "0.51849014", "0.5180683", "0.5158327", "0.51545936", "0.51480573", "0.5147138", "0.51253456", "0.5102151", "0.50578314", "0.5026867", "0.502176", "0.5003718", "0.49996635", "0.4997872", "0.4989094", "0.49866417", "0.49705693", "0.4955853", "0.49462312", "0.49408466", "0.4937889", "0.49318647", "0.49172756", "0.49140716", "0.49140716", "0.49140716", "0.49140716", "0.48916182", "0.48891044", "0.48879108", "0.48721188", "0.4868407", "0.4859785", "0.48548928", "0.48470485", "0.48302656", "0.48258018", "0.48234275", "0.48098034", "0.48011822", "0.47946918", "0.47808552", "0.47732767", "0.47671184", "0.47638714", "0.47560975", "0.4749711", "0.47422895", "0.4735985", "0.47210935", "0.47209993", "0.47186992", "0.47183192", "0.4710698", "0.4710698", "0.4710698", "0.4710698", "0.47015062", "0.46917322", "0.4689317", "0.46786556", "0.46745953", "0.46732596", "0.46539778" ]
0.5095475
44
Split a string into multiple lines so that it fits a specific width.
public function wrapText(mixed $string, int $maxWidth, int $angle = 0): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lineBreaks($str, $lineLength = 80) {\n $lineBreak = '\\n';\n $tempString = $str;\n $returnString = '';\n \n while(strlen($tempString) > 0) {\n $buildString = substr($tempString, 0, $lineLength);\n $buildString .= $lineBreak;\n $returnString .= $buildString;\n \n $tempString = substr($tempString, $lineLength);\n }\n \n return $returnString;\n}", "function lineBreaks($str, $lineLength = 80) {\n\t$lineBreak = '\\n';\n\t$tempString = $str;\n\t$returnString = '';\n\t\n\twhile(strlen($tempString) > 0) {\n\t\t$buildString = substr($tempString, 0, $lineLength);\n\t\t$buildString .= $lineBreak;\n\t\t$returnString .= $buildString;\n\t\t\n\t\t$tempString = substr($tempString, $lineLength);\n\t}\n\t\n\treturn $returnString;\n}", "public static function wordwrap_per_line(\n string $str,\n int $width = 75,\n string $break = \"\\n\",\n bool $cut = false,\n bool $add_final_break = true,\n string $delimiter = null\n ): string {\n if ($delimiter === null) {\n $strings = \\preg_split('/\\\\r\\\\n|\\\\r|\\\\n/', $str);\n } else {\n $strings = \\explode($delimiter, $str);\n }\n\n $string_helper_array = [];\n if ($strings !== false) {\n foreach ($strings as $value) {\n $string_helper_array[] = self::wordwrap($value, $width, $break, $cut);\n }\n }\n\n if ($add_final_break) {\n $final_break = $break;\n } else {\n $final_break = '';\n }\n\n return \\implode($delimiter ?? \"\\n\", $string_helper_array) . $final_break;\n }", "function smart_wordwrap($string, $width = 75, $break = \"<br/>\") {\n $pattern = sprintf('/([^ ]{%d,})/', $width);\n $output = '';\n $words = preg_split($pattern, $string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\n foreach ($words as $word) {\n if (false !== strpos($word, ' ')) {\n // normal behaviour, rebuild the string\n $output .= $word;\n } else {\n // work out how many characters would be on the current line\n $wrapped = explode($break, wordwrap($output, $width, $break));\n $count = $width - (strlen(end($wrapped)) % $width);\n\n // fill the current line and add a break\n $output .= substr($word, 0, $count) . $break;\n\n // wrap any remaining characters from the problem word\n $output .= wordwrap(substr($word, $count), $width, $break, true);\n }\n }\n\n // wrap the final output\n return wordwrap($output, $width, $break);\n}", "function utf8_wordwrap($str, $width, $break = \"\\n\") // wordwrap() with utf-8 support\n{\n $str = preg_split('/([\\x20\\r\\n\\t]++|\\xc2\\xa0)/sSX', $str, -1, PREG_SPLIT_NO_EMPTY);\n $len = 0;\n $return = '';\n foreach ($str as $val) {\n $val .= ' ';\n $tmp = mb_strlen($val, 'utf-8');\n $len += $tmp;\n if ($len >= $width) {\n $return .= $break . $val;\n $len = $tmp;\n } else\n $return .= $val;\n }\n return $return;\n}", "function rc_wordwrap($string, $width=75, $break=\"\\n\", $cut=false)\n{\n $para = explode($break, $string);\n $string = '';\n while (count($para)) {\n $list = explode(' ', array_shift($para));\n $len = 0;\n while (count($list)) {\n $line = array_shift($list);\n $l = mb_strlen($line);\n $newlen = $len + $l + ($len ? 1 : 0);\n\n if ($newlen <= $width) {\n $string .= ($len ? ' ' : '').$line;\n $len += (1 + $l);\n } else {\n\tif ($l > $width) {\n\t if ($cut) {\n\t $start = 0;\n\t while ($l) {\n\t $str = mb_substr($line, $start, $width);\n\t $strlen = mb_strlen($str);\n\t $string .= ($len ? $break : '').$str;\n\t $start += $strlen;\n\t $l -= $strlen;\n\t $len = $strlen;\n\t }\n\t } else {\n $string .= ($len ? $break : '').$line;\n\t if (count($list)) $string .= $break;\n\t $len = 0;\n\t }\n\t} else {\n $string .= $break.$line;\n\t $len = $l;\n }\n }\n }\n if (count($para)) $string .= $break;\n }\n return $string;\n}", "function smart_wordwrap($string, $width = 75, $break = \"<br>\") {\n $pattern = sprintf('/([^ ]{%d,})/', $width);\n $output = '';\n $words = preg_split($pattern, $string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\n foreach ($words as $word) {\n // normal behaviour, rebuild the string\n if (false !== strpos($word, ' ')) {\n $output .= $word;\n } else {\n // work out how many characters would be on the current line\n $wrapped = explode($break, wordwrap($output, $width, $break));\n $count = $width - (strlen(end($wrapped)) % $width);\n\n // fill the current line and add a break\n $output .= substr($word, 0, $count) . $break;\n\n // wrap any remaining characters from the problem word\n $output .= wordwrap(substr($word, $count), $width, $break, true);\n }\n }\n\n // wrap the final output\n return wordwrap($output, $width, $break);\n }", "function splitLongLine($string, $maxWords = 96) {\n\n $oline = \"\";\n $strArry = explode(\"\\n\\r\", $string);\n foreach ($strArry as $line) {\n (strlen($line) > $maxWords) ? $strArray = self::splitWords($line, $maxWords) : $strArray = array();\n (!empty($strArray)) ? $oline .= implode(\"\\n\\r\", $strArray) : $oline .= $line;\n }\n return $oline;\n }", "function wrap($string, $length)\r\n{\r\n echo \"To confirm your string is \\\"\" . $string . \"\\\" and your length is \" . $length . \"\\nOutput: \\n\";\r\n \r\n //turn string into array of words\r\n $words = preg_split('/\\s+/', $string, -1, PREG_SPLIT_NO_EMPTY);\r\n //line length starts at 0\r\n $lineLen = 0;\r\n //string to hold output\r\n $newString = \"\";\r\n\r\n \r\n foreach ($words as $word) {\r\n //work out word length\r\n $wordLen = strlen($word);\r\n \r\n //if wordlength is greater than length it needs to be split up further\r\n if ($wordLen > $length) {\r\n $partWord = str_split($word, $length);\r\n foreach ($partWord as $parts) {\r\n if ($parts == $partWord[0]) {\r\n //first word does not need new line before it, only after\r\n //if last char in string is not \\n add \\n\r\n if(substr($newString, -1) != \"\\n\"){\r\n $newString .= \"\\n\";\r\n }\r\n $newString .= \"$parts\";\r\n \r\n\r\n } else {\r\n //splitting after first split space needs to go after word\r\n \r\n $newString .= \"\\n$parts \";\r\n \r\n }\r\n }\r\n //calculate total line length to ensure it is not over the required length\r\n $lineLen += $wordLen;\r\n } else /*word is equal to or under maximum line length */ {\r\n if (($lineLen + $wordLen) <= $length) /*check adding word to line won't make it go over length */{\r\n\r\n if (($lineLen + $wordLen) < $length) {\r\n $newString .= \"$word \";\r\n //add 1 to length to account for space\r\n $wordLen += 1;\r\n } else /*line is going to be too big */{\r\n $newString .= $word;\r\n }\r\n //recalculate line length\r\n $lineLen += $wordLen;\r\n } else {\r\n //add spaces and add word back into output \r\n $newString .= \"\\n\";\r\n $lineLen = $wordLen + 1;\r\n $newString .= \"$word \";\r\n }\r\n }\r\n }\r\n\r\n return $newString;\r\n}", "function linify($string, $fitwidth, $font, $size){\n\t\t$words = explode(' ', $string);\n\t\t$lines = array($words[0]);\n\t\t$currentLine = 0; \n\t for($i = 1; $i < count($words); $i++) { \n\t\t\t// see if next word fits\n\t $lineSize = imagettfbbox($size, 0, $font, $lines[$currentLine] . ' ' . $words[$i]);\n\t\t\t$linewidth = $lineSize[2] - $lineSize[0];\n\t if($linewidth < $fitwidth) { \n\t $lines[$currentLine] .= ' ' . $words[$i]; \n\t }else { \n\t $currentLine += 1;\n\t $lines[$currentLine] = $words[$i]; \n\t } \n\t }\n\t\treturn $lines;\n\t}", "function smart_wordwrap($string, $width = 75, $break = \"\\n\") {\n\t\t\t$pattern = sprintf('/([^ ]{%d,})/', $width);\n\t\t\t$output = '';\n\t\t\t$words = preg_split($pattern, $string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\n\t\t\tforeach ($words as $word) {\n\t\t\t\tif (false !== strpos($word, ' ')) {\n\t\t\t\t// normal behaviour, rebuild the string\n\t\t\t\t\t$output .= $word;\n\t\t\t\t} else {\n\t\t\t\t\t// work out how many characters would be on the current line\n\t\t\t\t\t$wrapped = explode($break, wordwrap($output, $width, $break));\n\t\t\t\t\t$count = $width - (strlen(end($wrapped)) % $width);\n\n\t\t\t\t\t// fill the current line and add a break\n\t\t\t\t\t$output .= substr($word, 0, $count) . $break;\n\n\t\t\t\t\t// wrap any remaining characters from the problem word\n\t\t\t\t\t$output .= wordwrap(substr($word, $count), $width, $break, true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// wrap the final output\n\t\t\treturn wordwrap($output, $width, $break);\n\t\t}", "function wrapWord($str, $width=50) {\r\n\tif (($width > -1) && ($width != 999999)) {\r\n\t $lines = explode(\"\\n\", $str);\r\n\t foreach ($lines as $line) {\r\n\t\t$words = explode(' ', $line );\r\n\t\tforeach ($words as $word) {\r\n\t\t $wordlength = JString::strlen($word);\r\n\t\t if($wordlength > $width) {\r\n\t\t\tfor($i =0; $i < $wordlength; $i = $i + $width) {\r\n\t\t\t $subword = JString::substr($word, $i, $width);\r\n\t\t\t $splitedArray[] = $subword;\r\n\t\t\t}\r\n\t\t } else {\r\n\t\t\t$splitedArray[] = $word;\r\n\t\t }\r\n\t\t}\r\n\t\t$linewords = implode(' ', $splitedArray);\r\n\t\t$splitedArray = '';\r\n\t\t$finalstring[] = $linewords;\r\n\t }\r\n\t return implode(\"\\n\",$finalstring);\r\n\t} else {\r\n\t return $str;\r\n\t}\r\n }", "function word_wrap_txt($string, $length){\n\t\t\n\t\t$line = '';\n\t\t$i = 0;\n\t\t\n\t\t$outputStringArray = str_split($string, $length);\n\t\t\n\t\t$noOFLines = count($outputStringArray) + 1;\n\t\t\n\t\tif (count($outputStringArray) == 1){\n\t\t\t\n\t\t\t$line .= \"\\t\".$outputStringArray[0].\"\\t\";\n\t\t\t\n\t\t\t$i++;\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\tforeach ($outputStringArray as $outputString){\n\t\t\t\t//,\"/t |\"\n\t\t\t\tif ($noOFLines == $i){\n\t\t\t\t\t\n\t\t\t\t\t$line .= '|'.\"\\t\".$outputString.\"\\t\".'|';\n\t\t\t\t\t$line .= $i;\n\t\t\t\t\t\n\t\t\t\t\t$i++;\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tif ($i != 0){\n\t\t\t\t\t\t$line .= \"\\t\".' '.\"\\t\".'|';\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$line .= '|'.\"\\t\".$outputString.\"\\t\".'|'.\"\\n\";\n\t\t\t\t\t//$line .= $i;\n\t\t\t\t\t\n\t\t\t\t\t$i++;\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\treturn $line;\n\t\t\n\t}", "public function wrap($string) {\n $lines = array();\n $array = preg_split(\"//u\", $string, -1, PREG_SPLIT_NO_EMPTY);\n\n $line = '';\n foreach ($array as $char) {\n $charLen = strlen($char);\n $lineLen = strlen($line);\n if ($lineLen + $charLen > 75) {\n $lines[] = $line;\n $line = ' ' . $char;\n } else {\n $line .= $char;\n }\n }\n $lines[] = $line;\n\n return implode(\"\\r\\n\", $lines);\n }", "public function smart_wordwrap($string, $width = 75, $break = \"\\n\") {\n\t\t// split on problem words over the line length\n\t\t$pattern = sprintf('/([^ ]{%d,})/', $width);\n\t\t$output = '';\n\t\t$words = preg_split($pattern, $string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\t\tforeach ($words as $word) {\n\t\t\tif (false !== strpos($word, ' ')) {\n\t\t\t\t// normal behaviour, rebuild the string\n\t\t\t\t$output .= $word;\n\t\t\t} else {\n\t\t\t\t// work out how many characters would be on the current line\n\t\t\t\t$wrapped = explode($break, wordwrap($output, $width, $break));\n\t\t\t\t$count = $width - (strlen(end($wrapped)) % $width);\n\t\t\t\t// fill the current line and add a break\n\t\t\t\t$output .= substr($word, 0, $count) . $break;\n\t\t\t\t// wrap any remaining characters from the problem word\n\t\t\t\t$output .= wordwrap(substr($word, $count), $width, $break, true);\n\t\t\t}\n\t\t}\n\t\t// wrap the final output\n\t\treturn wordwrap($output, $width, $break);\n\t}", "function stringLengthSplit($str, $stringLength = 50) {\n\t$returnString = '';\n\tif($stringLength < 5) return '...';\n\t\n\tif(strlen($str) > $stringLength) {\n\t\t$returnString = substr($str, 0, $stringLength - 3) . '...';\n\t} else {\n\t\t$returnString = $str;\n\t}\n\t\n\treturn $returnString;\n}", "function _wordwrap($line)\n{\n\treturn wordwrap($line,100,\"\\n\",1);\n}", "function stringLengthSplit($str, $stringLength = 50) {\n $returnString = '';\n if($stringLength < 5) return '...';\n \n if(strlen($str) > $stringLength) {\n $returnString = substr($str, 0, $stringLength - 3) . '...';\n } else {\n $returnString = $str;\n }\n \n return $returnString;\n}", "public function linebreaks($string, $chars, $maxLines = 0)\n {\n GeneralUtility::logDeprecatedFunction();\n $lines = explode(LF, $string);\n $lineArr = [];\n $c = 0;\n foreach ($lines as $paragraph) {\n $words = explode(' ', $paragraph);\n foreach ($words as $word) {\n if (strlen($lineArr[$c] . $word) > $chars) {\n $c++;\n }\n if (!$maxLines || $c < $maxLines) {\n $lineArr[$c] .= $word . ' ';\n }\n }\n $c++;\n }\n return $lineArr;\n }", "function stringBreak ($posterTxt, $breakLength)\n\t{\n\t\t$tempArray = explode(' ', $posterTxt);\n\t\t\t\t\n\t\t$runningLength = 0;\n\t\t$lastSize = 0;\n\t\t$finalString = \"\";\n\t\t\n\t\tforeach ($tempArray as $word)\n\t\t{\n\t\t\t$finalString .= $word. ' ';\n\t\t\t$runningLength = strlen($finalString);\n\t\t\tif (($runningLength - $lastSize) >= $breakLength)\n\t\t\t{\n\t\t\t\t$finalString .= \"<br>\";\n\t\t\t\t$lastSize = strlen($finalString);\n\t\t\t}\t\n\t\t}\t\n\t\treturn $finalString;\n\t}", "function getStrWithBreak($str) {\n $strArry = explode(PHP_EOL, $str);\n $length = count($strArry);\n\n $newStr = \"\";\n for ($i=0; $i < $length ; $i++) {\n if($i == $length - 1) {\n $newStr = $newStr . $strArry[$i];\n } else {\n $newStr = $newStr . $strArry[$i] . \"\\\\r\\\\n\";\n }\n }\n return $newStr;\n }", "public static function wordwrap($text, $width = null, $break = \"\\n\")\n {\n if (null === $width) {\n $window = Console\\Window::getSize();\n $width = $window['x'];\n }\n\n return wordwrap($text, $width, $break, true);\n }", "function tep_break_string($string, $len, $break_char = '-') {\n $l = 0;\n $output = '';\n for ($i=0, $n=strlen($string); $i<$n; $i++) {\n $char = substr($string, $i, 1);\n if ($char != ' ') {\n $l++;\n } else {\n $l = 0;\n }\n if ($l > $len) {\n $l = 1;\n $output .= $break_char;\n }\n $output .= $char;\n }\n\n return $output;\n }", "function modifier_mb_wordwrap($str, $width = 75, $break = \"\\n\", $cut = false)\n{\n // break words into tokens using white space as a delimiter\n $tokens = preg_split('!(\\s)!S' . $_UTF8_MODIFIER, $str, -1, PREG_SPLIT_NO_EMPTY + PREG_SPLIT_DELIM_CAPTURE);\n $length = 0;\n $t = '';\n $_previous = false;\n $_space = false;\n foreach ($tokens as $_token) {\n $token_length = mb_strlen($_token, $_CHARSET);\n $_tokens = array($_token);\n if ($token_length > $width) {\n if ($cut) {\n $_tokens = preg_split(\n '!(.{' . $width . '})!S' . $_UTF8_MODIFIER,\n $_token,\n -1,\n PREG_SPLIT_NO_EMPTY + PREG_SPLIT_DELIM_CAPTURE\n );\n }\n }\n foreach ($_tokens as $token) {\n $_space = !!preg_match('!^\\s$!S' . $_UTF8_MODIFIER, $token);\n $token_length = mb_strlen($token, $_CHARSET);\n $length += $token_length;\n if ($length > $width) {\n // remove space before inserted break\n if ($_previous) {\n $t = mb_substr($t, 0, -1, $_CHARSET);\n }\n if (!$_space) {\n // add the break before the token\n if (!empty($t)) {\n $t .= $break;\n }\n $length = $token_length;\n }\n } elseif ($token === \"\\n\") {\n // hard break must reset counters\n $length = 0;\n }\n $_previous = $_space;\n // add the token\n $t .= $token;\n }\n }\nreturn $t;\n}", "function NbLinesSplit($w,$txt,$lineno)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n $cnt=0;\n while($i<$nb)\n {\n $c=$s[$i];\n $cnt+=1;\n \t\t$a[$cnt]= $nl;\n if($nl==$lineno){\n \t$Stringposition=$i;\n \tbreak;\n }\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n \t \n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n \n }\n else{\n $i++;\n \n }\n /* if($nl=='12'){\n \t$Stringposition=$i;\n \tbreak;\n }*/\n }\n return $Stringposition;\n}", "function str_split($string, $split_length = 1)\n\t{\n\t\tif ($split_length < 1)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse if ($split_length >= strlen($string))\n\t\t{\n\t\t\treturn array($string);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpreg_match_all('#.{1,' . $split_length . '}#s', $string, $matches);\n\t\t\treturn $matches[0];\n\t\t}\n\t}", "function mb_eaw_wrap($string, $width = 75, $break = \"\\n\", $table = null, $encoding = null)\n{\n if (func_num_args() < 5) {\n $encoding = mb_internal_encoding();\n }\n $len = mb_strlen($string, $encoding);\n if ($len === false) {\n return false;\n }\n $line = '';\n $lineLen = 0;\n $retval = '';\n for ($start = 0; $start < $len; ++$start) {\n $char = mb_substr($string, $start, 1, $encoding);\n $charwidth = mb_eaw_strwidth($char, $table, $encoding);\n if (($lineLen + $charwidth) <= $width) {\n $line .= $char;\n $lineLen += $charwidth;\n } else {\n $retval .= $line.$break;\n $line = $char;\n $lineLen = $charwidth;\n }\n }\n if ($line !== '') {\n return $retval.$line.$break;\n }\n return $retval;\n}", "function wordbreak($text, $wordsize) \n{\n\nif (strlen($text) <= $wordsize) { return $text; } # No breaking necessary, return original text.\n\n$text = str_replace(\"\\n\", \"\", $text); # Strip linefeeds\n$done = \"false\";\n$newtext = \"\";\n$start = 0; # Initialize starting position\n$segment = substr($text, $start, $wordsize + 1); # Initialize first segment\n\nwhile ($done == \"false\") { # Parse text\n\n\t$lastspace = strrpos($segment, \" \");\n\t$lastbreak = strrpos($segment, \"\\r\");\n\n\tif ( $lastspace == \"\" AND $lastbreak == \"\" ) { # Break segment\n\t\t$newtext .= substr($text, $start, $wordsize) . \" \";\n\t\t$start = $start + $wordsize; }\n\telse { # Move start to last space or break\n\t\t$last = max($lastspace, $lastbreak);\n\t\t$newtext .= substr($segment, 0, $last + 1);\n\t\t$start = $start + $last + 1;\n\t} # End If - Break segment\n\n\t$segment = substr($text, $start, $wordsize + 1);\n\n\tif ( strlen($segment) <= $wordsize ) { # Final segment is smaller than word size.\n\t\t$newtext .= $segment;\n\t\t$done = \"true\";\n\t} # End If - Final segment is smaller than word size.\n\n} # End While - Parse text\n\n$newtext = str_replace(\"\\r\", \"\\r\\n\", $newtext); # Replace linefeeds\n\nreturn $newtext;\n\n}", "function wordbreak($text, $wordsize)\n{\n\nif (strlen($text) <= $wordsize) { return $text; } # No breaking necessary, return original text.\n\n$text = str_replace(\"\\n\", \"\", $text); # Strip linefeeds\n$done = \"false\";\n$newtext = \"\";\n$start = 0; # Initialize starting position\n$segment = substr($text, $start, $wordsize + 1); # Initialize first segment\n\nwhile ($done == \"false\") { # Parse text\n\n\t$lastspace = strrpos($segment, \" \");\n\t$lastbreak = strrpos($segment, \"\\r\");\n\n\tif ( $lastspace == \"\" AND $lastbreak == \"\" ) { # Break segment\n\t\t$newtext .= substr($text, $start, $wordsize) . \" \";\n\t\t$start = $start + $wordsize; }\n\telse { # Move start to last space or break\n\t\t$last = max($lastspace, $lastbreak);\n\t\t$newtext .= substr($segment, 0, $last + 1);\n\t\t$start = $start + $last + 1;\n\t} # End If - Break segment\n\n\t$segment = substr($text, $start, $wordsize + 1);\n\n\tif ( strlen($segment) <= $wordsize ) { # Final segment is smaller than word size.\n\t\t$newtext .= $segment;\n\t\t$done = \"true\";\n\t} # End If - Final segment is smaller than word size.\n\n} # End While - Parse text\n\n$newtext = str_replace(\"\\r\", \"\\r\\n\", $newtext); # Replace linefeeds\n\nreturn $newtext;\n\n}", "function breakword($array)\n{\n$array = explode(\" \", $array);\n\nforeach($array as $word)\n{\n$wrap = 0; $i = 0;\nwhile($i < strlen($word)) {\nif($wrap >= 45) {\n$word = wordwrap($word, 45, \"<br/>\", true);\n$wrap = 0;\n}\n$i++; $wrap++;\n}\n$text[] = $word;\n}\n$array = implode(\" \", $text);\nreturn $array;\n}", "function line_break($length = 40)\n{\n $output = \"\";\n for($i = 0; $i < $length; $i++) {\n $output .= '-';\n }\n return $output;\n}", "function split_lines( $text ) {\n\t\t$lines = preg_split( \"/(\\r\\n|\\n|\\r)/\", $text );\n\n\t\treturn $lines;\n\t}", "public static function wordwrap($str, $charLimit, $breakline = '<br/>') {\n\t\tif (! is_numeric ( $charLimit ))\n\t\t\t$charLimit = 76;\n\t\t\n\t\t$str = preg_replace ( \"| +|\", \" \", $str );\n\t\t$str = preg_replace ( \"/\\r\\n|\\r/\", \"\\n\", $str );\n\t\t\n\t\t$nowrap = array ();\n\t\tif (preg_match_all ( \"|(\\[nowrap\\].+?\\[/nowrap\\])|s\", $str, $matches )) {\n\t\t\t$count = count ( $matches ['0'] );\n\t\t\tfor($i = 0; $i < $count; $i ++) {\n\t\t\t\t$nowrap [] = $matches ['1'] [$i];\n\t\t\t\t$str = str_replace ( $matches ['1'] [$i], \"[[nowrapped\" . $i . \"]]\", $str );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$str = wordwrap ( $str, $charLimit, $breakline, false );\n\t\t\n\t\t$output = '';\n\t\tforeach ( explode ( $breakline, $str ) as $line ) {\n\t\t\tif (strlen ( $line ) <= $charLimit) {\n\t\t\t\t$output .= $line . $breakline;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t$temp = '';\n\t\t\twhile ( (strlen ( $line )) > $charLimit ) {\n\t\t\t\tif (preg_match ( \"!\\[url.+\\]|://|wwww.!\", $line ))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t$temp .= substr ( $line, 0, $charLimit - 1 );\n\t\t\t\t$line = substr ( $line, $charLimit - 1 );\n\t\t\t}\n\t\t\t$output .= ($temp != '' ? $temp . $line : $line) . $breakline;\n\t\t}\n\t\t\n\t\tif (count ( $nowrap ) > 0) {\n\t\t\tforeach ( $nowrap as $key => $val ) {\n\t\t\t\t$output = str_replace ( \"[[nowrapped\" . $key . \"]]\", $val, $output );\n\t\t\t}\n\t\t}\n\t\t\n\t\t$output = str_replace ( array (\n\t\t\t\t'[nowrap]',\n\t\t\t\t'[/nowrap]' \n\t\t), '', $output );\n\t\treturn $output;\n\t}", "static function ellipsize($string, $width) {\n if (strlen($string) <= $width)\n return $string;\n\n $ellipses = '...';\n\n $half = max(0, $width - strlen($ellipses)) / 2;\n $left = substr($string, 0, ceil($half));\n $right = substr($string, -floor($half));\n\n return $left . $ellipses . $right;\n }", "private function wrapText($size, $path, $text, $width) {\n $ret = \"\";\n $lines = explode(\"\\n\", $text);\n\n foreach ($lines as $line) {\n $words = explode(\" \", $line);\n foreach ($words as $word) {\n $testboxWord = imagettfbbox($size, 0, $path, $word);\n\n $len = strlen($word);\n while ($testboxWord[2] > $width && $len > 0) {\n $word = substr($word, 0, $len);\n $len--;\n $testboxWord = imagettfbbox($size, 0, $path, $word);\n }\n\n $teststring = $ret.\" \".$word;\n $testboxString = imagettfbbox($size, 0, $path, $teststring);\n if ($testboxString[2] > $width){\n $ret .= ($ret == \"\" ? \"\" : \"\\n\").$word;\n }else{\n $ret .= ($ret == \"\" ? \"\" : \" \").$word;\n }\n }\n $ret .= \"\\n\";\n }\n\n return $ret;\n }", "public static function writeLn($string)\n {\n print wordwrap($string, self::LINE_LENGTH);\n }", "protected function testFitStringInTextBox( $string, ezcGraphCoordinate $position, $width, $height, $size )\n {\n // Tokenize String\n $tokens = preg_split( '/\\s+/', $string );\n $initialHeight = $height;\n\n $lines = array( array() );\n $line = 0;\n foreach ( $tokens as $nr => $token )\n {\n // Add token to tested line\n $selectedLine = $lines[$line];\n $selectedLine[] = $token;\n\n $boundings = $this->getTextBoundings( $size, $this->options->font, implode( ' ', $selectedLine ) );\n // Check if line is too long\n if ( $boundings->width > $width )\n {\n if ( count( $selectedLine ) == 1 )\n {\n // Return false if one single word does not fit into one line\n // Scale down font size to fit this word in one line\n return $width / $boundings->width;\n }\n else\n {\n // Put word in next line instead and reduce available height by used space\n $lines[++$line][] = $token;\n $height -= $size * ( 1 + $this->options->lineSpacing );\n }\n }\n else\n {\n // Everything is ok - put token in this line\n $lines[$line][] = $token;\n }\n \n // Return false if text exceeds vertical limit\n if ( $size > $height )\n {\n return 1;\n }\n }\n\n // Check width of last line\n $boundings = $this->getTextBoundings( $size, $this->options->font, implode( ' ', $lines[$line] ) );\n if ( $boundings->width > $width )\n {\n return 1;\n }\n\n // It seems to fit - return line array\n return $lines;\n }", "public static function multiLineStringToArray($string) {\n return preg_split(\"/\\r?\\n/\", $string);\n }", "private function _getTextWidth($fontSize, array $lines) {}", "private function _wrapText($text, $font, $size, $width, $angle = 0)\n {\n $lines = array();\n $words = explode(' ', $text); // TODO: How about for line breaks or tabs.\n \n if (count($words)) {\n $currentLine = 0;\n $lines[$currentLine] = array_shift($words);\n foreach ($words as $word) {\n $line = imagettfbbox($size, $angle, $font, $lines[$currentLine] . ' ' . $word);\n if ($line[2] - $line[0] < $width) {\n $lines[$currentLine] .= ' ' . $word;\n } else {\n ++$currentLine;\n $lines[$currentLine] = $word;\n }\n }\n }\n\n return $lines;\n }", "function truncarLinhas($sText,$iTamanho) {\n \t\n \t$sRetorno = \"\";\n \t$aLinhas = explode(\"\\n\",$sText);\n \tforeach ($aLinhas as $sLinha) {\n \t\tif (strlen($sLinha) > $iTamanho) {\n \t\t\t$sRetorno .= \"\\n\".substr($sLinha,0,$iTamanho);\n \t\t}else{\n \t\t\t$sRetorno .= \"\\n\".$sLinha;\n \t\t}\n \t}\n \treturn $sRetorno;\n }", "private static function wordWrap(&$line, $wrap, $charset = null)\n {\n preg_match('/^([\\t >]*)([^\\t >].*)?$/', $line, $regs);\n $beginning_spaces = $regs[1];\n if (isset($regs[2])) {\n $words = explode(' ', $regs[2]);\n } else {\n $words = array();\n }\n $i = 0;\n $line = $beginning_spaces;\n while ($i < count($words)) {\n /* Force one word to be on a line (minimum) */\n $line .= $words[$i];\n $line_len = strlen($beginning_spaces) + mb_strlen($words[$i], $charset) + 2;\n if (isset($words[$i + 1]))\n $line_len += mb_strlen($words[$i + 1], $charset);\n $i ++;\n /* Add more words (as long as they fit) */\n while ($line_len < $wrap && $i < count($words)) {\n $line .= ' ' . $words[$i];\n $i ++;\n if (isset($words[$i]))\n $line_len += mb_strlen($words[$i], $charset) + 1;\n else\n $line_len += 1;\n }\n /* Skip spaces if they are the first thing on a continued line */\n while (! isset($words[$i]) && $i < count($words)) {\n $i ++;\n }\n /* Go to the next line if we have more to process */\n if ($i < count($words)) {\n $line .= \"\\n\";\n }\n }\n }", "function swf_textwidth($str)\n{\n}", "public static function strSplit($string, $encoding = 'UTF-8') {}", "public static function space($string)\n {\n $spaces = [' ', '\\n', '\\t'];\n\n return static::split($string, $spaces);\n }", "private function makeLineBreaks(): void {\n\t\tif($this->getMaxLineLength()) {\n\t\t\t$this->setMsg(wordwrap($this->getMsg(), $this->getMaxLineLength(), PHP_EOL));\n\t\t}\n\n\t\t$this->setMsg(str_replace('<br />', PHP_EOL, str_replace('<br>', PHP_EOL, $this->getMsg())));\n\t}", "public static function breaks(string $string): string\n {\n return nl2br($string);\n }", "private static function breakDownStringLinesIntoArray(string $string): array\n {\n $temp = str_replace(\"\\r\", \"\\n\", str_replace(\"\\r\\n\", \"\\n\", $string));\n return array_filter(explode(\"\\n\", $temp));\n }", "public function word_wrap($str, $limit = 100, $newline = \"\\n\")\n\t{\n\t\t$text = '';\n\t\t$string_helper = $this->config->helper('string');\n\t\t$string_length = $string_helper->strlen($str);\n\t\tdo\n\t\t{\n\t\t\t$line_text = $this->limit_chars($str, $limit, '', TRUE);\n\t\t\t$line_length = $string_helper->strlen($line_text);\n\t\t\t$str = ltrim($string_helper->substr($str, $line_length));\n\t\t\t$string_length = $string_helper->strlen($str);\n\t\t\t$text .= $line_text.$newline;\n\t\t}\n\t\twhile ($string_length > 0);\n\t\treturn rtrim($text, $newline);\n\t}", "public function splitMessage($text, $length)\n\t{\n\t\t// assert that no part ends in the escape char (\\null)\n\t\t$re = sprintf('/.{1,%d}(?<!%s)/', $length, '\\\\' . ord(self::ESCAPE_CHAR));\n\t\tpreg_match_all($re, $text, $text);\n\t\treturn reset($text);\n\t}", "public function splitLine() {\n $this->words = preg_split('/[\\' \\',\\t]+/', $this->line);\n }", "public function wordwrap( $string, $length ) {\n\t\tif ( $length < 1 or $length > $this->length( $string ) ) {\n\t\t\treturn $string;\n\t\t}\n\n\t\treturn preg_replace( '#[^\\s]{' . $length . '}(?=[^\\s])#u', '$0 ', $string );\n\t}", "public static function tokenTruncate($string, $your_desired_width) {\r\n if(strlen($string) < 1) return;\r\n \t\t$parts = preg_split('/([\\s\\n\\r]+)/u', $string, null, PREG_SPLIT_DELIM_CAPTURE);\r\n \t\t$parts_count = count($parts);\r\n\r\n \t\t$length = 0;\r\n \t\t$last_part = 0;\r\n \t\tfor (; $last_part < $parts_count; ++$last_part) {\r\n \t\t\t$length += strlen($parts[$last_part]);\r\n \t\t\tif ($length > $your_desired_width) { break; }\r\n \t\t}\r\n\r\n \t\t$text = trim(implode(array_slice($parts, 0, $last_part)));\r\n \t\t$text[strlen($text)-1] = (!ctype_alnum($text[strlen($text)-1])?\"\":$text[strlen($text)-1]);\r\n\r\n \t\treturn preg_replace('/\\s+/', ' ', trim($text));\r\n }", "protected function split($str)\n {\n return explode(' ', $str);\n }", "function text_split($in) {\r\n\t$len = count($in);\r\n\t$a = substr($in,0,$len/2);\r\n\t$b = substr($in,0,(0-($len/2)));\r\n\treturn array($a,$b);\r\n}", "function countLengthNewlinesOneCharacter($string)\n {\n $countNewlines = preg_match_all('/\\n/', $string);\n $countCharacters = preg_match_all('/[\\S\\s]/', str_replace([\"\\n\", \"\\r\\n\", \"\\r\"],\"\",$string));\n return $countNewlines + $countCharacters;\n }", "public static function getLines($text, $width = null, ?\\SetaPDF_Core_Font_Glyph_Collection_CollectionInterface $font = null, $fontSize = null, $charSpacing = 0, $wordSpacing = 0) {}", "function splitByWords($text, $splitLength = 200) {\r\n $wordArray = explode(' ', $text);\r\n\r\n // Too many words\r\n if (sizeof($wordArray) > $splitLength) {\r\n // Split words into two arrays\r\n $firstWordArray = array_slice($wordArray, 0, $splitLength);\r\n $lastWordArray = array_slice($wordArray, $splitLength + 1, sizeof($wordArray));\r\n\r\n // Turn array back into two split strings \r\n $firstString = implode(' ', $firstWordArray);\r\n $lastString = implode(' ', $lastWordArray);\r\n return array($firstString, $lastString);\r\n }\r\n // if our array is under the limit, just send it straight back\r\n return array($text);\r\n }", "public static function normalizeLineBreaks($text) {}", "public static function mb_str_split($str,$split_length=1,$charset=\"UTF-8\"){\n if(func_num_args()==1){\n return preg_split('/(?<!^)(?!$)/u', $str);\n }\n if($split_length<1)return false;\n $len = mb_strlen($str, $charset);\n $arr = array();\n for($i=0;$i<$len;$i+=$split_length){\n $s = mb_substr($str, $i, $split_length, $charset);\n $arr[] = $s;\n }\n return $arr;\n }", "public function testForSmallWords2() {\n $ret = $this->resolucao->textWrap($this->baseString, 12);\n $this->assertEquals(\"Se vi mais\", $ret[0]);\n $this->assertEquals(\"longe foi\", $ret[1]);\n $this->assertEquals(\"por estar de\", $ret[2]);\n $this->assertEquals(\"pé sobre\", $ret[3]);\n $this->assertEquals(\"ombros de\", $ret[4]);\n $this->assertEquals(\"gigantes\", $ret[5]);\n $this->assertCount(6, $ret);\n }", "function txt_wordwrap( $text, $breakpoint=80, $char='<br />' )\n\t{\n\t\t$breakpoint = intval($breakpoint) > 0 ? intval($breakpoint) : 80;\n\t\t\n\t\tif( $this->vars['multibyte_wordwrap'] )\n\t\t{\n\t\t\t$str_len = $this->txt_mb_strlen( $text );\n\t\t\t\n\t\t\tif( $str_len < $breakpoint )\n\t\t\t{\n\t\t\t\treturn $text;\n\t\t\t}\n\t\t\t\n\t\t\t$str \t\t= \"\";\n\t\t\t$str_arr\t= array();\n\t\t\t\n\t\t\tfor( $i=0; $i<strlen($text); $i++ )\n\t\t\t{\n\t\t\t\tif( ord( substr( $text, $i, 1 ) ) > 128 AND ord( substr( $text, $i, 1 ) ) < 256 ) \n\t\t\t\t{\n\t\t\t\t\t$str_arr[] = substr( $text, $i, 2 );\n\t\t\t\t\t$i += 1;\n\t\t\t\t}\n\t\t\t\telse if( ord( substr( $text, $i, 1 ) ) > 256 )\n\t\t\t\t{\n\t\t\t\t\t$str_arr[] = substr( $text, $i, 3 );\n\t\t\t\t\t$i += 2;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$str_arr[] = substr( $text, $i, 1 );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$tmp = array_chunk( $str_arr, $breakpoint );\n\t\n\t\t\tforeach( $tmp as $key => $val ) \n\t\t\t{\n\t\t\t\tif( preg_match( \"/\\s+/\", implode( \"\", $val ) ) )\n\t\t\t\t{\n\t\t\t\t\t$str .= implode( \"\", $val );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif( preg_match( \"/&[a-zA-Z0-9]$/\", implode( \"\", $val ) ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$str .= preg_replace( \"/&[a-zA-Z0-9]$/\", \" &\", implode( \"\", $val ) );\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$str .= implode( \"\", $val ) . $char;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\treturn $str;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn preg_replace( \"#([^\\s<>'\\\"/\\\\-\\?&\\n\\r\\%]{{$breakpoint}})#i\", \"\\\\1{$char}\", $text );\n\t\t}\n\t}", "function processString($str, $min)\n{\n /**\n * Get all partitions and split string using them\n **/\n return array_map(function($p) use ($str)\n {\n return splitString($str, $p);\n },\n partitions(strlen($str), $min)\n );\n}", "public function wktGenerateMultilinestring();", "function splitString($str, $partition)\n{\n /**\n * This would look better with simple foreach\n **/\n return array_reduce($partition, function($c, $p)\n {\n return [\n 'l' => array_merge($c['l'], [substr($c['s'], 0, $p)]),\n 's' => substr($c['s'], $p)\n ];\n },\n [\n 'l' => [],\n 's' => $str\n ]\n )['l'];\n}", "function trimWordLen($str, $max) {\n $str = cleanSpaces($str);\n $lines = explode(\"\\n\", $str);\n $ss = \"\";\n foreach ($lines as $i => $line) {\n $words = explode(\" \", $line);\n foreach ($words as $j => $w)\n $ss.=trimWord($w, $max) . \" \";\n $ss.=\"\\n\";\n }\n return cleanSpaces($ss);\n}", "protected function splitInLines(string $rawOutput)\n {\n $outputLines = preg_split(\"/\\r\\n|\\n|\\r/\", $rawOutput);\n\n return $outputLines;\n }", "static function chunkSplitUnicode($str, $l = 76, $e = \"\\r\\n\")\n {\n $tmp = array_chunk(\n preg_split(\"//u\", $str, -1, PREG_SPLIT_NO_EMPTY), $l\n );\n $str = \"\";\n foreach ($tmp as $t) {\n $str .= join(\"\", $t) . $e;\n }\n return $str;\n }", "public function getLineBreaks($text) {\r\n $mb_encoding = $this->encoding->getEncodingType();\r\n $use_mb = $this->encoding->useMB();\r\n if (!is_string($text)) { \r\n //make sure we have something\r\n if ($use_mb) {\r\n return array (mb_convert_encoding(\"\",$mb_encoding));\r\n }else {\r\n return array(\"\");\r\n }\r\n }\r\n //split up the paragaph along newlines\r\n $paragraphs = $this->getParagraphs($text);\r\n $text_lines = array();\r\n foreach ($paragraphs as $paragraph) {\r\n if ($use_mb) {\r\n $text_lines[] = mb_convert_encoding(\"\", $mb_encoding);\r\n } else {\r\n $text_lines[] = \"\";\r\n }\r\n switch ($this->algorithm) {\r\n case 'Knuth':\r\n $this->Knuth($paragraph,$text_lines);\r\n break;\r\n case 'Greedy':\r\n $this->Greedy($paragraph,$text_lines);\r\n break;\r\n default: //truncate\r\n $this->Truncate($paragraph,$text_lines);\r\n break;\r\n }\r\n }\r\n return $text_lines;\r\n }", "function getLines($string, $allow_empty = false)\n{\n $string = trim($string);\n $string = str_replace([\"\\r\\n\",PHP_EOL,\"<br>\",\"<br />\",\";\"], \"\\r\\n\", $string);\n\n if (!$string)\n {\n return [];\n }\n\n $string = explode(\"\\r\\n\", $string);\n foreach ($string as $i => $line)\n {\n $string[$i] = trim($line);\n if (!$allow_empty && empty($string[$i]))\n {\n unset($string[$i]);\n }\n }\n\n return $string;\n}", "function getLines()\n\t{\n\t\t//echo 'font file = ' . $this->calculateFontFile() . ' ' . $this->textFont . '<br>';\n\t\tif(isset($this->lines) && $this->width == $this->lines[\"width\"] && $this->textSize == $this->lines[\"textSize\"])\n\t\t{\n\t\t\treturn $this->lines;\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$rawPars = explode(\"\\r\\n\", $this->contents);\n\t\t\t\n\t\t\t//\tgo through each paragraph and find the line breaks\n\t\t\t//\t\twhen we're done we should have an array processed\n\t\t\t//\t\tparagraphs. Each paragraph should be an array of \n\t\t\t//\t\tlines.\n\t\t\t//echo \"the font it is selecting \" . $this->calculateFontFile() . '<br>';\n\t\t\t$this->pdf->selectFont($this->calculateFontFile());\n\t\t\t$lines = array();\n\t\t\t$lines2 = array();\n\t\t\t$lines[\"longest\"] = 0;\n\t\t\t$lines[\"width\"] = $this->width;\n\t\t\t$lines[\"textSize\"] = $this->textSize;\n\t\t\tif(strlen($this->contents) == 1)\n\t\t\t{\n\t\t\t\t$lines[\"longest\"] = $this->pdf->getTextWidth($this->textSize, $this->contents);\n\t\t\t\t$lines[\"length\"][] = $lines[\"longest\"];\n\t\t\t\t$lines[\"text\"][] = $this->contents;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile( list($parNum, $thisPar) = each($rawPars) )\n\t\t\t\t{\n\t\t\t\t\t//\tinit your data\n\n\t\t\t\t\t$len = strlen($thisPar);\n\t\t\t\t\t$last = $len - 1;\n\t\t\t\t\t$lastEnd = -1;\n\t\t\t\t\t$curStart = 0;\n\t\t\t\t\t$curLen = 0;\n\n\t\t\t\t\tif( strlen($thisPar) == 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\t$lines[\"text\"][] = \"\";\n\t\t\t\t\t\t$lines[\"length\"][] = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor($i = 1; $i < $len; $i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//\tif we are at a breaking point.\n\t\t\t\t\t\t//\t\ta breaking point is either\n\t\t\t\t\t\t//\t\t\ta real char before a space or\n\t\t\t\t\t\t//\t\t\tthe last char in the string\n\n\t\t\t\t\t\tif( (($thisPar[$i] == \" \") && ($thisPar[$i - 1] != \" \")) || ($i == $last) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$word = substr($thisPar, $lastEnd + 1, ($i) - $lastEnd);\n\n\t\t\t\t\t\t\t$wordLen = ($this->pdf->getTextWidth($this->textSize, $word));\n\n\t\t\t\t\t\t\t//\tdid we find a line break yet\n\n\t\t\t\t\t\t\tif($i == $last)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif( $curLen + $wordLen > $this->width )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$line = substr($thisPar, $curStart, $lastEnd - $curStart + 1);\n\n\t\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t\t$lines[\"length\"][] = $curLen;\n\t\t\t\t\t\t\t\t\tif($curLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $curLen;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$line = substr($thisPar, $lastEnd + 1, $i - $lastEnd);\n\t\t\t\t\t\t\t\t\t$word = trim($word);\n\t\t\t\t\t\t\t\t\t$this->pdf->getTextWidth($this->textSize, $word);\n\n\t\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t\t$lines[\"length\"][] = $wordLen;\n\t\t\t\t\t\t\t\t\tif($wordLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $wordLen;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$line = substr($thisPar, $curStart, $i - $curStart + 1);\n\t\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t\t$lines[\"length\"][] = $curLen + $wordLen;\n\t\t\t\t\t\t\t\t\tif($curLen + $wordLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $curLen + $wordLen;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( $curLen + $wordLen > $this->width )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$line = substr($thisPar, $curStart, $lastEnd - $curStart + 1);\n\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t$lines[\"length\"][] = $curLen;\n\t\t\t\t\t\t\t\tif($curLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $curLen;\n\n\t\t\t\t\t\t\t\t$curLen = $wordLen;\n\t\t\t\t\t\t\t\t$curStart = $lastEnd + 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$curLen += $wordLen;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t$lastEnd = $i;\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$this->lines = $lines;\n\t\t\t//$this->pdf->selectFont(ZOOP_DIR . \"/pdf/fonts/Helvetica-Bold.afm\");\n\t\t\t//echo_r($lines);\n\t\t\t//echo 'font = ' . $this->textFont . ' bold = ' . ($this->bold ? 1 : 0) . ' italics = ' . ($this->italics ? 1 : 0) . ' size = ' . $this->textSize . ' ' . $this->bold . ' ' . $this->bold . '<br>';\n\t\t\t//echo 'true length = ' . $this->pdf->getTextWidth($this->textSize, 'asdfkla sdfklasdfjlkas;dfgj aslkfj alkw[sfjeoifjsa fi;awesfil;ifas efjilse;filaws eji iiiiiiiiiiiiiii') . '<br>';\n\t\t\treturn $this->lines;\n\t\t}\n\t}", "public function testForSmallWords() {\n $ret = $this->resolucao->textWrap($this->baseString, 8);\n $this->assertEquals(\"Se vi\", $ret[0]);\n $this->assertEquals(\"mais\", $ret[1]);\n $this->assertEquals(\"longe\", $ret[2]);\n $this->assertEquals(\"foi por\", $ret[3]);\n $this->assertEquals(\"estar de\", $ret[4]);\n $this->assertEquals(\"pé sobre\", $ret[5]);\n $this->assertEquals(\"ombros\", $ret[6]);\n $this->assertEquals(\"de\", $ret[7]);\n $this->assertEquals(\"gigantes\", $ret[8]);\n $this->assertCount(9, $ret);\n }", "function strwidth( $string, $encoding = false ) {\n\t// Set the East Asian Width and Mark regexs.\n\tlist( $eaw_regex, $m_regex ) = get_unicode_regexs();\n\n\t// Allow for selective testings - \"1\" bit set tests grapheme_strlen(), \"2\" preg_match_all( '/\\X/u' ), \"4\" mb_strwidth(), \"other\" safe_strlen().\n\t$test_strwidth = getenv( 'PHP_CLI_TOOLS_TEST_STRWIDTH' );\n\n\t// Assume UTF-8 if no encoding given - `grapheme_strlen()` will return null if given non-UTF-8 string.\n\tif ( ( ! $encoding || 'UTF-8' === $encoding ) && can_use_icu() && null !== ( $width = grapheme_strlen( $string ) ) ) {\n\t\tif ( ! $test_strwidth || ( $test_strwidth & 1 ) ) {\n\t\t\treturn $width + preg_match_all( $eaw_regex, $string, $dummy /*needed for PHP 5.3*/ );\n\t\t}\n\t}\n\t// Assume UTF-8 if no encoding given - `preg_match_all()` will return false if given non-UTF-8 string.\n\tif ( ( ! $encoding || 'UTF-8' === $encoding ) && can_use_pcre_x() && false !== ( $width = preg_match_all( '/\\X/u', $string, $dummy /*needed for PHP 5.3*/ ) ) ) {\n\t\tif ( ! $test_strwidth || ( $test_strwidth & 2 ) ) {\n\t\t\treturn $width + preg_match_all( $eaw_regex, $string, $dummy /*needed for PHP 5.3*/ );\n\t\t}\n\t}\n\t// Legacy encodings and old PHPs will reach here.\n\tif ( function_exists( 'mb_strwidth' ) && ( $encoding || function_exists( 'mb_detect_encoding' ) ) ) {\n\t\tif ( ! $encoding ) {\n\t\t\t$encoding = mb_detect_encoding( $string, null, true /*strict*/ );\n\t\t}\n\t\t$width = $encoding ? mb_strwidth( $string, $encoding ) : mb_strwidth( $string ); // mbstring funcs can fail if given `$encoding` arg that evals to false.\n\t\tif ( 'UTF-8' === $encoding ) {\n\t\t\t// Subtract combining characters.\n\t\t\t$width -= preg_match_all( $m_regex, $string, $dummy /*needed for PHP 5.3*/ );\n\t\t}\n\t\tif ( ! $test_strwidth || ( $test_strwidth & 4 ) ) {\n\t\t\treturn $width;\n\t\t}\n\t}\n\treturn safe_strlen( $string, $encoding );\n}", "function twig_chunk_split(string $string, int $chunklen = 76): string\n{\n return chunk_split($string, $chunklen);\n}", "function NbLines($w,$txt)\r\n{\r\n $cw=&$this->CurrentFont['cw'];\r\n if($w==0)\r\n $w=$this->w-$this->rMargin-$this->x;\r\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n $s=str_replace(\"\\r\",'',$txt);\r\n $nb=strlen($s);\r\n if($nb>0 and $s[$nb-1]==\"\\n\")\r\n $nb--;\r\n $sep=-1;\r\n $i=0;\r\n $j=0;\r\n $l=0;\r\n $nl=1;\r\n while($i<$nb)\r\n {\r\n $c=$s[$i];\r\n if($c==\"\\n\")\r\n {\r\n $i++;\r\n $sep=-1;\r\n $j=$i;\r\n $l=0;\r\n $nl++;\r\n continue;\r\n }\r\n if($c==' ')\r\n $sep=$i;\r\n $l+=$cw[$c];\r\n if($l>$wmax)\r\n {\r\n if($sep==-1)\r\n {\r\n if($i==$j)\r\n $i++;\r\n }\r\n else\r\n $i=$sep+1;\r\n $sep=-1;\r\n $j=$i;\r\n $l=0;\r\n $nl++;\r\n }\r\n else\r\n $i++;\r\n }\r\n return $nl;\r\n}", "public function splitToBottom($string) {\n $piece = explode(addslashes($string));\n $piece[1] = str_replace(' ', '', $piece[1]);\n return $piece[1];\n }", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function WordWrap(&$text, $maxwidth)\n\t\t{\n\t\t\t$biggestword=0;//EDITEI\n\t\t\t$toonarrow=false;//EDITEI\n\n\t\t\t$text = trim($text);\n\t\t\tif ($text==='') return 0;\n\t\t\t$space = $this->GetStringWidth(' ');\n\t\t\t$lines = explode(\"\\n\", $text);\n\t\t\t$text = '';\n\t\t\t$count = 0;\n\n\t\t\tforeach ($lines as $line)\n\t\t\t{\n\t\t\t\t$words = preg_split('/ +/', $line);\n\t\t\t\t$width = 0;\n\n\t\t\t\tforeach ($words as $word)\n\t\t\t\t{\n\t\t\t\t\t$wordwidth = $this->GetStringWidth($word);\n\n\t\t\t\t\t //EDITEI\n\t\t\t\t\t //Warn user that maxwidth is insufficient\n\t\t\t\t\t if ($wordwidth > $maxwidth)\n\t\t\t\t\t {\n\t\t\t\t\t\t if ($wordwidth > $biggestword) $biggestword = $wordwidth;\n\t\t\t\t\t\t $toonarrow=true;//EDITEI\n\t\t\t\t\t }\n\t\t\t\t\tif ($width + $wordwidth <= $maxwidth)\n\t\t\t\t\t{\n\t\t\t\t\t\t$width += $wordwidth + $space;\n\t\t\t\t\t\t$text .= $word.' ';\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$width = $wordwidth + $space;\n\t\t\t\t\t\t$text = rtrim($text).\"\\n\".$word.' ';\n\t\t\t\t\t\t$count++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$text = rtrim($text).\"\\n\";\n\t\t\t\t$count++;\n\t\t\t}\n\t\t\t$text = rtrim($text);\n\n\t\t\t//Return -(wordsize) if word is bigger than maxwidth \n\t\t\tif ($toonarrow) return -$biggestword;\n\t\t\telse return $count;\n\t\t}", "private function getFieldSubRows(String $_field, int $_columnWidth, int $_paddingOnAutoLineBreak = 0, bool $_lineBreakOnEmptyWord = false)\n {\n $subRows = array();\n $currentRow = 0;\n\n while (mb_strlen($_field) > $_columnWidth)\n {\n if (! $_lineBreakOnEmptyWord) $endCharacterPosition = $_columnWidth - 1;\n else\n {\n $fieldWords = explode(\" \", $_field);\n\n if ($currentRow == 0) $padding = 0;\n else $padding = $_paddingOnAutoLineBreak;\n\n $endCharacterPosition = 0;\n $currentWord = 0;\n\n while (true)\n {\n if ($currentWord == 0) $emptySpaceBeforeWord = 0;\n else $emptySpaceBeforeWord = 1;\n\n $wordLength = mb_strlen($fieldWords[$currentWord]);\n\n $newEndCharacterPosition = $endCharacterPosition + $padding + $emptySpaceBeforeWord + $wordLength;\n if ($newEndCharacterPosition <= $_columnWidth - 1)\n {\n $endCharacterPosition = $newEndCharacterPosition;\n }\n else break;\n\n $currentWord++;\n }\n\n if ($currentWord == 0) $endCharacterPosition = $_columnWidth - 1;\n }\n\n $subRows[$currentRow] = substr($_field, 0, $endCharacterPosition);\n\n $padding = str_repeat(\" \", $_paddingOnAutoLineBreak);\n $_field = substr_replace($_field, \"\", 0, $endCharacterPosition);\n $_field = $padding . trim($_field);\n $currentRow++;\n }\n $subRows[$currentRow] = $_field;\n\n return $subRows;\n }", "public static function splitStrUtf8($str,$l = 0) \r\n {\r\n if($l > 0) {\r\n $ret = array();\r\n $len = mb_strlen($str, \"UTF-8\");\r\n for ($i = 0; $i < $len; $i += $l) {\r\n $ret[] = mb_substr($str, $i, $l, \"UTF-8\");\r\n }\r\n return $ret;\r\n }\r\n return preg_split(\"//u\", $str, -1, PREG_SPLIT_NO_EMPTY);\r\n }", "function protect_string($str)\n{\n // This may need to be more sophisticated, not sure whether it\n // allways works, what for example if a line starts with three\n // white spaces, will it then be turned into \"&nbsp:&nbsp;\n // some_text\" and still split at the wrong spot if there are too\n // many whitespaces?\n $str = str_replace(\"<\", \"&lt;\", $str);\n $str = str_replace(\" \", \"&nbsp;&nbsp;\", $str);\n $str = str_replace(\"\\n\", \"<br>\\n\", $str);\n return $str;\n}", "function string_cut_string($str, $length)\r\n\t{\r\n\t\t$str = strip_tags($str);\r\n\t\t/*\r\n\t\tif(strpos($str, \" \") === false) {\r\n\t\t\t$str = wordwrap($str, 25, \"<br />\\n\", true);\r\n\t\t}\r\n\t\t*/\r\n\t\tif (strlen($str) > $length)\r\n\t\t{\r\n\t\t\t$str = substr($str, 0, $length);\r\n\t\t\t$last_space = strrpos($str, \" \");\r\n\t\t\t$str = substr($str, 0, $last_space).\"...\";\r\n\t\t} \r\n\r\n\t\treturn $str;\r\n\t}", "public function lines()\n {\n $array = preg_split('/[\\r\\n]{1,2}/u', $this->str);\n /** @noinspection CallableInLoopTerminationConditionInspection */\n for ($i = 0; $i < count($array); $i++) {\n $array[$i] = static::create($array[$i], $this->encoding);\n }\n\n return $array;\n }", "public static function widont($str){\n $str = rtrim($str);\n $space = strrpos($str, ' ');\n\n if ($space !== FALSE){\n $str = substr($str, 0, $space).'&nbsp;'.substr($str, $space + 1);\n }\n\n return $str;\n }", "private function makeLineBreaksHTML(): void {\n\t\t$this->setMsg(str_replace([PHP_EOL, '\\r\\n'], '<br />', $this->getMsg()));\n\n\t\tif($this->getMaxLineLength()) {\n\t\t\t$this->setMsg(wordwrap($this->getMsg(), $this->getMaxLineLength(), '<br />' . PHP_EOL));\n\t\t}\n\t}", "public static function normalizeLineBreaks($string)\n {\n if (is_string($string)) {\n $result = str_replace(array(\"\\r\\n\", \"\\r\"), \"\\n\", $string);\n } else {\n $result = $string;\n }\n \n return $result;\n }", "function NbLines($w,$txt)\r\n{\r\n\t$cw=&$this->CurrentFont['cw'];\r\n\tif($w==0)\r\n\t\t$w=$this->w-$this->rMargin-$this->x;\r\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n\t$s=str_replace(\"\\r\",'',$txt);\r\n\t$nb=strlen($s);\r\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\r\n\t\t$nb--;\r\n\t$sep=-1;\r\n\t$i=0;\r\n\t$j=0;\r\n\t$l=0;\r\n\t$nl=1;\r\n\twhile($i<$nb)\r\n\t{\r\n\t\t$c=$s[$i];\r\n\t\tif($c==\"\\n\")\r\n\t\t{\r\n\t\t\t$i++;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tif($c==' ')\r\n\t\t\t$sep=$i;\r\n\t\t$l+=$cw[$c];\r\n\t\tif($l>$wmax)\r\n\t\t{\r\n\t\t\tif($sep==-1)\r\n\t\t\t{\r\n\t\t\t\tif($i==$j)\r\n\t\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t$i=$sep+1;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t}\r\n\t\telse\r\n\t\t\t$i++;\r\n\t}\r\n\treturn $nl;\r\n}", "function NbLines($w,$txt)\r\n{\r\n\t$cw=&$this->CurrentFont['cw'];\r\n\tif($w==0)\r\n\t\t$w=$this->w-$this->rMargin-$this->x;\r\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n\t$s=str_replace(\"\\r\",'',$txt);\r\n\t$nb=strlen($s);\r\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\r\n\t\t$nb--;\r\n\t$sep=-1;\r\n\t$i=0;\r\n\t$j=0;\r\n\t$l=0;\r\n\t$nl=1;\r\n\twhile($i<$nb)\r\n\t{\r\n\t\t$c=$s[$i];\r\n\t\tif($c==\"\\n\")\r\n\t\t{\r\n\t\t\t$i++;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tif($c==' ')\r\n\t\t\t$sep=$i;\r\n\t\t$l+=$cw[$c];\r\n\t\tif($l>$wmax)\r\n\t\t{\r\n\t\t\tif($sep==-1)\r\n\t\t\t{\r\n\t\t\t\tif($i==$j)\r\n\t\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t$i=$sep+1;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t}\r\n\t\telse\r\n\t\t\t$i++;\r\n\t}\r\n\treturn $nl;\r\n}", "function htmlwrap($str, $width = 60, $break = \"\\n\", $nobreak = \"\") {\n\n\t // Split HTML content into an array delimited by < and >\n\t // The flags save the delimeters and remove empty variables\n\t $content = preg_split(\"/([<>])/\", $str, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);\n\n\t // Transform protected element lists into arrays\n\t $nobreak = explode(\" \", strtolower($nobreak));\n\n\t // Variable setup\n\t $intag = false;\n\t $innbk = array();\n\t $drain = \"\";\n\n\t // List of characters it is \"safe\" to insert line-breaks at\n\t // It is not necessary to add < and > as they are automatically implied\n\t $lbrks = \"/?!%)-}]\\\\\\\"':;&\";\n\n\t // Is $str a UTF8 string?\n//\t $utf8 = (preg_match(\"/^([\\x09\\x0A\\x0D\\x20-\\x7E]|[\\xC2-\\xDF][\\x80-\\xBF]|\\xE0[\\xA0-\\xBF][\\x80-\\xBF]|[\\xE1-\\xEC\\xEE\\xEF][\\x80-\\xBF]{2}|\\xED[\\x80-\\x9F][\\x80-\\xBF]|\\xF0[\\x90-\\xBF][\\x80-\\xBF]{2}|[\\xF1-\\xF3][\\x80-\\xBF]{3}|\\xF4[\\x80-\\x8F][\\x80-\\xBF]{2})*$/\", $str)) ? \"u\" : \"\";\n\t // original utf8 problems seems to cause problems with very long text (forumposts)\n\t // replaced by a little simpler function call by fxstein 8-13-08\n\t $utf8 = (mb_detect_encoding($str . 'a' , 'UTF-8') == 'UTF-8') ? \"u\" : \"\";\n\n\t while (list(, $value) = each($content)) {\n\t switch ($value) {\n\n\t // If a < is encountered, set the \"in-tag\" flag\n\t case \"<\": $intag = true; break;\n\n\t // If a > is encountered, remove the flag\n\t case \">\": $intag = false; break;\n\n\t default:\n\n\t // If we are currently within a tag...\n\t if ($intag) {\n\n\t // Create a lowercase copy of this tag's contents\n\t $lvalue = strtolower($value);\n\n\t // If the first character is not a / then this is an opening tag\n\t if ($lvalue{0} != \"/\") {\n\n\t // Collect the tag name\n\t preg_match(\"/^(\\w*?)(\\s|$)/\", $lvalue, $t);\n\n\t // If this is a protected element, activate the associated protection flag\n\t if (in_array($t[1], $nobreak)) array_unshift($innbk, $t[1]);\n\n\t // Otherwise this is a closing tag\n\t } else {\n\n\t // If this is a closing tag for a protected element, unset the flag\n\t if (in_array(substr($lvalue, 1), $nobreak)) {\n\t reset($innbk);\n\t while (list($key, $tag) = each($innbk)) {\n\t if (substr($lvalue, 1) == $tag) {\n\t unset($innbk[$key]);\n\t break;\n\t }\n\t }\n\t $innbk = array_values($innbk);\n\t }\n\t }\n\n\t // Else if we're outside any tags...\n\t } else if ($value) {\n\n\t // If unprotected...\n\t if (!count($innbk)) {\n\n\t // Use the ACK (006) ASCII symbol to replace all HTML entities temporarily\n\t $value = str_replace(\"\\x06\", \"\", $value);\n\t preg_match_all(\"/&([a-z\\d]{2,7}|#\\d{2,5});/i\", $value, $ents);\n\t $value = preg_replace(\"/&([a-z\\d]{2,7}|#\\d{2,5});/i\", \"\\x06\", $value);\n\n\t // Enter the line-break loop\n\t do {\n\t $store = $value;\n\n\t // Find the first stretch of characters over the $width limit\n\t if (preg_match(\"/^(.*?\\s)?([^\\s]{\".$width.\"})(?!(\".preg_quote($break, \"/\").\"|\\s))(.*)$/s{$utf8}\", $value, $match)) {\n\n\t if (strlen($match[2])) {\n\t // Determine the last \"safe line-break\" character within this match\n\t for ($x = 0, $ledge = 0; $x < strlen($lbrks); $x++) $ledge = max($ledge, strrpos($match[2], $lbrks{$x}));\n\t if (!$ledge) $ledge = strlen($match[2]) - 1;\n\n\t // Insert the modified string\n\t $value = $match[1].substr($match[2], 0, $ledge + 1).$break.substr($match[2], $ledge + 1).$match[4];\n\t }\n\t }\n\n\t // Loop while overlimit strings are still being found\n\t } while ($store != $value);\n\n\t // Put captured HTML entities back into the string\n\t foreach ($ents[0] as $ent) $value = preg_replace(\"/\\x06/\", $ent, $value, 1);\n\t }\n\t }\n\t }\n\n\t // Send the modified segment down the drain\n\t $drain .= $value;\n\t }\n\n\t // Return contents of the drain\n\t return $drain;\n\t}", "public static function maintain_multiline($string)\n {\n if (strpos($string, \"\\n\") !== false) {\n return array('type' => 'multiline', 'lines' => explode(\"\\n\", $string));\n }\n else {\n return $string;\n }\n }", "function pun_linebreaks($str)\r\n{\r\n\treturn str_replace(\"\\r\", \"\\n\", str_replace(\"\\r\\n\", \"\\n\", $str));\r\n}", "function _putBaseStringWithLimit(&$pdf, $font, $font_size, $data, $line, $width, $margin_line, $widthCell, array $x, array $y, array $align) {\n $splitStr = array();\n $str = $data;\n for ($i = 0; $i < $line; $i++) {\n if ($width < mb_strwidth($str, 'utf-8')) {\n $splitStr[$i] = mb_strimwidth($str, 0, $width, '', 'utf-8');\n $str = mb_substr($str, mb_strlen($splitStr[$i], 'utf-8'), null, 'utf-8');\n } else {\n $splitStr[$i] = $str;\n break;\n }\n }\n\n $newStr = implode(\"\", $splitStr);\n if (mb_strwidth($newStr, 'utf8') <= $width) {\n $height = $y['y1'];\n } elseif ((mb_strwidth($newStr, 'utf8') > $width) && (mb_strwidth($newStr, 'utf8') <= $width * 2) && !empty($y['y2'])) {\n $height = $y['y2'];\n } elseif ((mb_strwidth($newStr, 'utf8') > $width * 2) && !empty($y['y3'])) {\n $height = $y['y3'];\n }\n\n $pdf->SetFont($font, null, $font_size, true);\n $margin_top = 0;\n foreach ($splitStr as $element) {\n if (count($splitStr) == 1 && !empty($x['x1'])) {\n $pdf->SetXY($x['x1'], $height + $margin_top);\n $pdf->MultiCell($widthCell, 5, $element, 0, $align['align1']);\n } else {\n $pdf->SetXY($x['x2'], $height + $margin_top);\n $pdf->MultiCell($widthCell, 5, $element, 0, $align['align2']);\n }\n $margin_top += $margin_line;\n }\n }", "protected function _explodeLongString($sLegalNotice, $sWrapBreak = '###', $iLineWidth = 90)\n {\n /** Wrap the legal notice text and explode it into an array */\n $aLegalNotice = explode($sWrapBreak, wordwrap($sLegalNotice, $iLineWidth, $sWrapBreak));\n\n return $aLegalNotice;\n }", "function NbLines($w,$txt)\n{\n\t$cw=&$this->CurrentFont['cw'];\n\tif($w==0)\n\t\t$w=$this->w-$this->rMargin-$this->x;\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s=str_replace(\"\\r\",'',$txt);\n\t$nb=strlen($s);\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t$nb--;\n\t$sep=-1;\n\t$i=0;\n\t$j=0;\n\t$l=0;\n\t$nl=1;\n\twhile($i<$nb)\n\t{\n\t\t$c=$s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t$i++;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t\t$sep=$i;\n\t\t$l+=$cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i=$sep+1;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\treturn $nl;\n}", "function NbLines($w,$txt)\n{\n\t$cw=&$this->CurrentFont['cw'];\n\tif($w==0)\n\t\t$w=$this->w-$this->rMargin-$this->x;\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s=str_replace(\"\\r\",'',$txt);\n\t$nb=strlen($s);\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t$nb--;\n\t$sep=-1;\n\t$i=0;\n\t$j=0;\n\t$l=0;\n\t$nl=1;\n\twhile($i<$nb)\n\t{\n\t\t$c=$s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t$i++;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t\t$sep=$i;\n\t\t$l+=$cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i=$sep+1;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\treturn $nl;\n}", "function NbLines($w,$txt)\n{\n\t$cw=&$this->CurrentFont['cw'];\n\tif($w==0)\n\t\t$w=$this->w-$this->rMargin-$this->x;\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s=str_replace(\"\\r\",'',$txt);\n\t$nb=strlen($s);\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t$nb--;\n\t$sep=-1;\n\t$i=0;\n\t$j=0;\n\t$l=0;\n\t$nl=1;\n\twhile($i<$nb)\n\t{\n\t\t$c=$s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t$i++;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t\t$sep=$i;\n\t\t$l+=$cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i=$sep+1;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\treturn $nl;\n}", "function NbLines($w, $txt)\n {\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\", '', $txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n }" ]
[ "0.66593343", "0.6617186", "0.65632015", "0.65515524", "0.6493815", "0.6485197", "0.6474137", "0.6431164", "0.6421302", "0.64169145", "0.6394122", "0.63889366", "0.61509144", "0.6073668", "0.6060487", "0.59946936", "0.5941083", "0.5902749", "0.5820008", "0.5809178", "0.577681", "0.5709809", "0.56736344", "0.5668625", "0.5630163", "0.561892", "0.5595812", "0.55504864", "0.55479825", "0.5534959", "0.5517065", "0.55039394", "0.54955834", "0.54497796", "0.5448321", "0.5413116", "0.538764", "0.53641033", "0.5361251", "0.53438884", "0.5338289", "0.5333056", "0.53092116", "0.52923244", "0.52678347", "0.5236418", "0.5195237", "0.5183151", "0.51739836", "0.5156026", "0.5150295", "0.5149101", "0.5148572", "0.5143047", "0.51415926", "0.5136328", "0.50895953", "0.50887054", "0.5078272", "0.5069588", "0.5064707", "0.5029189", "0.50270796", "0.5009667", "0.49921873", "0.4970886", "0.49616557", "0.4953176", "0.49425492", "0.49369475", "0.49298963", "0.49296498", "0.49264413", "0.49087816", "0.4893686", "0.4890853", "0.48901576", "0.48901576", "0.48901576", "0.48901576", "0.48775965", "0.486917", "0.48392436", "0.48345265", "0.48324183", "0.48286152", "0.48200342", "0.48142952", "0.4806044", "0.47990525", "0.47990525", "0.47930816", "0.4792253", "0.47782385", "0.47780263", "0.477527", "0.47632354", "0.47632354", "0.47632354", "0.47577038" ]
0.5059652
61
Initializes a PDO connection
public function __construct($db, $persistent = false) { try { $dsn = $db['type'].':host='.$db['host'].';dbname='.$db['name']; parent::__construct($dsn, $db['user'], $db['pass'] // , array( // PDO::ATTR_PERSISTENT => $persistent // ) ); // parent::setAttribute(PDO::ATTR_EMULATE_PREPARES, false); parent::setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT ); // 預設模式,不主動報錯 // // parent::setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING ); // 引發 E_WARNING 錯誤,主動報錯 // parent::setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); // 主動丟擲 exceptions 異常,需要以try{}cath(){}輸出錯誤資訊。 self::setCharset(); self::setFetchMode(); } catch (\PDOException $e) { die("==>".$e->getMessage().PHP_EOL); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function init(){\n //initialize the connection\n try {\n $this->CONNECTION = new \\PDO(\"mysql:host=$this->ADDRESS;dbname=$this->DATABASE\", $this->USER, $this->PASSWORD);\n if($this->DEBUG)\n $this->CONNECTION->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n else\n $this->CONNECTION->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_SILENT);\n } catch(\\PDOException $e) {\n \\bmca\\exception\\Handler::fatalException('ERROR: ' . $e->getMessage());\n }\n\n $this->initialized = true;\n }", "protected function _initDbConnection() {\n\t\tif (!empty($this->db)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Create a new connection\n\t\tif (empty($this->config['datasource'])) {\n\t\t\tdie(\"FeedAggregatorPdoStorage: no datasource configured\\n\");\n\t\t}\n\n\t\t// Initialise a new database connection and associated schema.\n\t\t$db = new PDO($this->config['datasource']); \n\t\t$this->_initDbSchema();\n\t\t\n\t\t// Check the database tables exist\n\t\t$this->_initDbTables($db);\n\n\t\t// Database successful, make it ready to use\n\t\t$this->db = $db;\n\t}", "public function connect(): void\n {\n $this->pdo = new PDO(\n $this->constructDns($this->config),\n $this->config['username'],\n $this->config['password'],\n $this->config['options'] ?? [],\n );\n }", "private function connect()\n {\n $connection_string = 'mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . ';';\n $this->connection = new PDO($connection_string, DB_USER, DB_PASS);\n }", "public function connect()\n {\n $dsn = sprintf(\"mysql:host=%s;port=%s;dbname=%s\", $this->configuration['host'], $this->configuration['port'], $this->configuration['database']);\n $this->pdo = new PDO($dsn, $this->configuration['username'], $this->configuration['password']);\n }", "function __construct() {\n if (defined('PDO::ATTR_DRIVER_NAME')) {\n try {\n $this->db_connection = new PDO($this->dsn, $this->username, $this->password, $this->options);\n //echo(\"Database connected<br/>\");\n }\n catch (PDOException $e) {\n error_log($e->getMessage());\n exit(\"Database PDO error\");\n }\n }\n else {\n echo(\"PDO is unavailable<br/>\");\n }\n }", "private function connect()\n {\n try {\n self::$connection = new PDO($this->buildDSN(), $this->user, $this->pass, $this->options);\n } catch (PDOException $e) {\n die('Connection failed: ' . $e->getMessage());\n }\n\n }", "public function __construct() {\n try {\n $handler = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS);\n $handler->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch(PDOException $e) {\n printf (\"Connect failed %s\\n\", $e->getMessage());\n exit();\n }\n\n $this->_connection = $handler;\n }", "function __construct()\n {\n $ATTR = array(\n PDO::ATTR_PERSISTENT => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n );\n\n // New PDO instance\n try{\n $this->_connect = new PDO($this->HOST, $this->USER, $this->PASS, $ATTR);\n } catch (PDOException $e) {\n $this->_error = $e->getMessage();\n }\n }", "private static function _connect()\n {\n try {\n self::$_dbh = new PDO(DB_DSN, DB_USERNAME, DB_PASSWORD);\n }\n catch (PDOException $e) {\n echo \"Failure to connect to database. \".$e->getMessage();\n }\n }", "public function __construct()\n {\n $this->pdo = new PDO('mysql:host=' . HOST_NAME . ';dbname=' . DB_NAME, USER_NAME, DB_PASSWORD);\n }", "public function __construct()\r\n {\r\n if(self::$pdo == null) {\r\n try {\r\n self::$pdo = new \\PDO(self::$dbHost,\r\n self::$dbUser,\r\n self::$dbPassword);\r\n } catch(\\PDOException $e) {\r\n // If we can't connect we die!\r\n die(\"Unable to select database\");\r\n }\r\n }\r\n }", "public function init()\n\t{\n\t\tphpCAS::traceBegin();\n\t\t// if the storage has already been initialized, return immediatly\n\t\tif ( $this->isInitialized() )\n\t\treturn;\n\n\t\t// initialize the base object\n\t\tparent::init();\n\n\t\t// create the PDO object if it doesn't exist already\n\t\tif(!($this->_pdo instanceof PDO)) {\n\t\t\ttry {\n\t\t\t\t$this->_pdo = new PDO($this->_dsn, $this->_username, $this->_password, $this->_driver_options);\n\t\t\t}\n\t\t\tcatch(PDOException $e) {\n\t\t\t\tphpCAS::error('Database connection error: ' . $e->getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\tphpCAS::traceEnd();\n\t}", "protected function setConnection () : void\n {\n $this->connection = new PDO(\"mysql:host=\" . $this->db_host, $this->db_user, $this->db_password , self::PDO_OPTIONS);\n }", "private function setConnection() {\n if( $this->_connection ) { # prevent creation of additional connection\n $this->_connection;\n }\n $db_dsn = \"mysql:host=\".$this->db_host.\";port=\".$this->db_port.\";dbname=\".$this->db_name.\";charset=\".$this->db_char;\n $this->_connection = new PDO($db_dsn,$this->db_user,$this->db_pass,$this->db_opts);\n }", "public function __construct()\n {\n $this->pdo = Db::getConnection();\n }", "public function __construct()\n {\n\n try {\n $this->pdo = new PDO($this->dsn, self::USERNAME, self::PASSWORD, $this->options);\n } catch (Exception $e) {\n error_log($e->getMessage());\n exit('Connection Failed');\n }\n\n }", "private function connectPdo() {\r\n\t\t$this -> link = new PDO('mysql:host=' . $this -> host . ';dbname=' . $this -> base, $this -> user, $this -> pass);\r\n\t\t$this -> link -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n\t}", "private function __construct()\n {\n $dsn = 'mysql:host=' . Config::read('db.host') .\n ';dbname=' . Config::read('db.basename') .\n ';charset=utf8';\n\n $user \t\t= Config::read('db.user');\n $password \t= Config::read('db.password');\n\n $this->dbh \t= new PDO($dsn, $user, $password);\n }", "public function static_construct()\n {\n if (!self::$pdo instanceof PDO) {\n self::$pdo = new PDO(DB_CONNECTION_STRING, DB_USERNAME, DB_PASSWORD);\n }\n }", "private function __construct() {\n // PDO connection variables\n $host = DBHOST;\n $db = DBDATABASE;\n $user = DBUSER;\n $pass = DBPASS;\n $charset = \"utf8\";\n\n $dsn = \"mysql:host=$host;dbname=$db;charset=$charset\";\n // PDO options for error mode, default fetch mode and prepare statement eumulation\n $opt = [\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\n PDO:: ATTR_EMULATE_PREPARES => false,\n ];\n\n // try - catch block for error handling\n try {\n // new PDO connection with set parameters\n $this -> pdo = new PDO($dsn, $user, $pass, $opt);\n } catch(PDOException $e) {\n die($e -> getMessage());\n }\n }", "static private function init()\n {\n\t\tself::$_mysqlErrorInfo = NULL;\n\t\t\n try\n {\n self::$_dbh = new PDO('mysql:host='.DBHOST.';dbname='.DBNAME, DBUSERNAME, DBPASSWORD);\n }\n catch( PDOException $e )\n {\n throw new PDOException(\"Database::init() error: \" . $e);\n }\n }", "private function __construct()\n {\n $dataSourceName = \"mysql:host=\" . DBHOST . \";dbname=\" . DBNAME . \";charset=utf8\";\n // on appelle le constructeur de la classe PDO\n $this->PDOInstance = new PDO($dataSourceName, DBUSER, DBPASSWD, array(\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));\n }", "private function __construct(){\n try{\n $this->_pdo = new PDO('mysql:host='.Config::get('mysql/host').';dbname='. Config::get('mysql/db'), Config::get('mysql/username'),Config::get('mysql/password'));\n //echo 'connected';\n }catch(PDOException $e){\n die($e->getMessage());\n }\n }", "public function connect()\n {\n if ($this->pdo !== null) {\n return;\n }\n\n $db = $this->configs['database'] ?? '';\n $hostname = $this->configs['hostname'] ?? '';\n $port = $this->configs['port'] ?? '';\n $charset = $this->configs['charset'] ?? '';\n $username = $this->configs['username'] ?? '';\n $password = $this->configs['password'] ?? '';\n\n $this->pdo = new PDO(\n \"mysql:dbname={$db};host={$hostname};port={$port};charset={$charset}\",\n $username,\n $password\n );\n }", "public static function connect() {\n $dsn = \"mysql:host=\" . Config::$DB_HOST\n . \";port=\" . Config::$DB_PORT\n . \";dbname=\" . Config::$DB_NAME\n . \";charset=\" . Config::$DB_CHAR;\n try {\n self::$PDO = new PDO($dsn, Config::$DB_USER, Config::$DB_PASS);\n self::$PDO->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Display SQL exceptions to the web page\n self::$PDO->setAttribute(PDO::MYSQL_ATTR_LOCAL_INFILE, true); // Allows use of MySQL 'LOAD DATA LOCAL INFILE' for mass data import\n } catch (PDOException $ex) {\n exit(\"Database failed to connect: \" . $ex->getMessage());\n }\n }", "public function __construct()\n {\n $dsn = 'mysql:host=' . Config::DB_HOST . ';dbname=' . Config::DB_NAME . ';port=' . Config::DB_PORT;\n try {\n $this->connection = new \\PDO($dsn, Config::DB_USER, Config::DB_PASS);\n } catch (\\PDOException $e) {\n throw new \\PDOException($e->getMessage());\n }\n }", "protected function _connect ()\n {\n // if we already have a PDO object, no need to re-connect.\n if ($this->_connection)\n\t\t{\n return;\n }\n\n // get the dsn first, because some adapters alter the $_pdoType\n $dsn = $this->_dsn();\n\n /*\n\n $PDOclass = 'PDO';\n\n // check for PDO extension\n if (! extension_loaded('pdo') || ! extension_loaded($this->_pdoType)) {\n $PDOclass = 'EhrlichAndreas_Pdo';\n }\n\n // check the PDO driver is available\n if (! in_array($this->_pdoType, call_user_func(array($PDOclass,'getAvailableDrivers')))) {\n /**\n *\n * @see EhrlichAndreas_Db_Exception\n */\n /* throw new EhrlichAndreas_Db_Exception('The ' . $this->_pdoType . ' driver is not currently installed');\n }\n\n */\n \n foreach ($this->_config as $key => $value)\n {\n if (stripos($key, 'user') !== false)\n {\n $this->_config['username'] = $value;\n }\n elseif (stripos($key, 'pass') !== false)\n {\n $this->_config['password'] = $value;\n }\n elseif (stripos($key, 'driver') !== false && stripos($key, 'option') !== false)\n {\n if (! isset($this->_config['driver_options']))\n {\n $this->_config['driver_options'] = $value;\n }\n else\n {\n // can't use array_merge() because keys might be integers\n foreach ((array) $value as $key => $val)\n {\n $this->_config['driver_options'][$key] = $val;\n }\n }\n }\n elseif (stripos($key, 'persistent') !== false)\n {\n $this->_config['persistent'] = $value;\n }\n elseif (stripos($key, 'charset') !== false)\n {\n $this->_config['charset'] = $value;\n }\n }\n\n // create PDO connection\n // $q = $this->_profiler->queryStart('connect',\n // EhrlichAndreas_Db_Profiler::CONNECT);\n\n // add the persistence flag if we find it in our config array\n if (isset($this->_config['persistent']) && ($this->_config['persistent'] == true))\n\t\t{\n $this->_config['driver_options'][EhrlichAndreas_Db_Abstract::ATTR_PERSISTENT] = true;\n }\n\t\t\n\t\t$pdoClass = '';\n\n try\n\t\t{\n if (extension_loaded('pdo') && in_array($this->_pdoType, PDO::getAvailableDrivers()))\n\t\t\t{\n\t\t\t\t$pdoClass = 'PDO';\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pdoClass = 'EhrlichAndreas_Pdo_Pdo';\n }\n\t\t\t\n $this->_connection = new $pdoClass($dsn, $this->_config['username'], $this->_config['password'], $this->_config['driver_options']);\n\n //$this->_profiler->queryEnd($q);\n\n // set the PDO connection to perform case-folding on array keys, or\n // not\n $this->_connection->setAttribute(EhrlichAndreas_Db_Abstract::ATTR_CASE, $this->_caseFolding);\n\n // always use exceptions.\n $this->_connection->setAttribute(EhrlichAndreas_Db_Abstract::ATTR_ERRMODE, EhrlichAndreas_Db_Abstract::ERRMODE_EXCEPTION);\n }\n\t\tcatch (Exception $e)\n\t\t{\n /**\n *\n * @see EhrlichAndreas_Db_Adapter_Exception\n */\n throw new EhrlichAndreas_Db_Exception($e->getMessage(), $e->getCode(), $e);\n }\n }", "protected function init()\n {\n $pdoConfig = $this->config->get('pdo.pdo');\n try {\n $pdo = new \\PDO(\n $pdoConfig['dns'],\n $pdoConfig['username'],\n $pdoConfig['password'],\n $pdoConfig['options']\n );\n if (ENV === ApplicationInterface::APPLICATION_ENV_DEV) {\n $pdo->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n }\n else {\n $pdo->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_WARNING);\n }\n\n $pdo->query('set character set cp1251');\n $pdo->query('set character_set_client=\\'cp1251\\'');\n $pdo->query('set names cp1251');\n }\n catch (\\PDOException $e) {\n throw new PdoStorageException('Unable to connect to pdo database', 0, $e);\n }\n\n $queryBuilder = new \\FluentPDO($pdo);\n if (ENV === ApplicationInterface::APPLICATION_ENV_DEV) {\n $queryBuilder->debug = array($this, 'dispatchQueryEvent');\n }\n $this->queryBuilder = $queryBuilder;\n }", "function __construct() {\n\t\t$this->dsn = \"mysql:host=\". DB_SERVER . \";dbname=\" . DB_NAME . \";charset=\" . DB_CHAR;\n\t\n\t $this->opt = [\n\t PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n\t PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\n\t PDO::ATTR_EMULATE_PREPARES => false,\n\t ];\n\t\t$this->openConnection();\n\t}", "static function init(){\n if (!self::$conn) {\n $KEYS = new Keys();\n $hostname = $KEYS->DATABASE_HOST;\n $dbname = $KEYS->DATABASE_NAME;\n $username = $KEYS->DATABASE_USERNAME;\n $password = $KEYS->DATABASE_PASSWORD;\n $db = $db = ($KEYS->DATABASE_TYPE == \"\")? \"mysql\": $KEYS->DATABASE_TYPE;\n $port = $port = ($KEYS->DATABASE_PORT == \"\")? \"\": \"port={$KEYS->DATABASE_PORT};\";\n \n self::$conn = null;\n \n try {\n self::$conn = new PDO(\"{$db}:host={$hostname};{$port}dbname={$dbname}\", $username, $password);\n self::$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch(PDOException $exception) {\n Response::send(null, 500, \"Connection error: \" . $exception->getMessage());\n }\n }\n }", "function __construct()\n {\n $this->db = new PDO ($this->dbSettings, $this->dbUsername, $this->dbPassword, $this->dbAttr);\n // TODO: Implement __construct() method.\n }", "private function __construct() {\n try {\n $this->_pdo = new PDO(Config::get('mysql/dsn'), Config::get('mysql/user'), Config::get('mysql/pass'), Config::get('mysql/opt')); \n } catch(PODExeception $e) {\n die($e->getMessage());\n }\n }", "public function __construct() {\n\t\ttry {\n\t\t\t$this->conn = new \\PDO(DRIVER . ':dbname=' . DBNAME . ';host=' . HOST, USERNAME, PASSWORD);\n\t\t\t$this->conn->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\t\t} catch (PDOException $e) {\n\t\t\techo $e->getMessage();\n\t\t\tdie();\n\t\t}\n\t}", "public function __construct(){\n global $dbconnection;\n $this->pdo = $dbconnection->open(); \n }", "public function __construct()\n\t{\n\t\t$this->conn = new PDO(\"mysql:host=localhost;dbname=dbphp7\", \"root\", \"\");\n\t}", "function __construct()\r\n {\r\n try {\r\n $this->_dbh = new PDO(DB_DSN, DB_USERNAME, DB_PASSWORD);\r\n return _dbh;\r\n } catch (PDOException $e) {\r\n echo $e->getMessage();\r\n }\r\n }", "public function __construct() {\n\t\t// Connect to the DB\n\t\t$this->PDODB = EP_Util_Database::pdo_connect();\n\t}", "public function __construct() {\n\t\t// Connect to the DB\n\t\t$this->PDODB = EP_Util_Database::pdo_connect();\n\t}", "private function initConnection() {\n\t\ttry {\n\t\t\t$this->m_Connection = new PDO(\"mysql:host=\".$this->m_DbHost.\";dbname=\".$this->m_DbName, $this->m_DbUserName, $this->m_DbPassword);\n\t\t\t$this->m_Connection-> exec(\"SET NAMES 'utf8';\");\n\t\t\t$this->m_Connection-> setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);\n\t\t\t$this->m_Connection-> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t$this->m_Connection-> setAttribute(PDO::ATTR_EMULATE_PREPARES, 1);\n\t\t\t$this->m_Connection-> setAttribute(PDO::ATTR_FETCH_TABLE_NAMES, true);\n\t\t\t\n\t\t} catch(PDOException $e) {\n\t\t\t$this->m_Response->SetMsg(\"ERROR, Could not connect to DB: \".$e->getMessage());\n\t\t\t$this->m_Response->SetFlag(false);\n\t\t\t$this->m_Response->SetData($e);\n\t\t\texit();\n\t\t}\t\t\n\t}", "private function __construct()\r\n {\r\n $this->conn = new PDO(\r\n \"mysql:host={$this->host};\r\n dbname={$this->name}\",\r\n $this->user,\r\n $this->pass,\r\n array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES 'utf8'\")\r\n );\r\n $this->conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\r\n $this->conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\r\n $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n }", "private function __construct()\n {\n $this->conn = new PDO(\"mysql:host={$this->host};\n dbname={$this->name}\", $this->user,$this->pass, $this->opt);\n }", "private function __construct()\n\t{\n\t\t$options = [\n\t\t PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,\n\t\t PDO::ATTR_EMULATE_PREPARES => false,\n\t\t];\n\t\tself::$instance = new PDO('mysql:host='.DBHOST.';dbname='.DBName, DBUsername, DBPassword, $options);\n\t}", "public function __construct()\n {\n $this->db = new PDO(DB_INFO,DB_USER,DB_PASS);\n }", "private function openConnection() {\n $this->db = new PDO(\"mysql:host=127.0.0.1;dbname=mvc\", \"gert\", \"becode\");\n }", "public function __construct()\n\t{\n\t\tglobal $conn;\n\t\t$this->pdo = $conn;\n\t}", "public function __construct()\n {\n // Connexion à la Base de Données\n $this->conn = new PDO(DATABASE, LOGIN, PASSWORD);\n \n }", "public function __construct()\n {\n\n $Dsn = \"mysql:host=\" . $this->dbHost . ';dbname=' . $this->dbName;\n\n\n $Options = array(\n PDO::ATTR_PERSISTENT => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n );\n\n try {\n $this->dbHandler = new PDO($Dsn, $this->dbUser, $this->dbPass, $Options);\n } catch (Exception $e) {\n echo 'Couldn\\'t Establish A Database Connection. Due to the following reason: ' . $e->getMessage();\n die();\n }\n }", "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 }", "public function __construct(){\n\t\t$dsn = 'mysql:host=' . $this->host . ';dbname=' . $this->dbname;\n\t\t\n\t\t//Set options\n\t\t$options = array(\n\t\t\tPDO::ATTR_PERSISTENT => true,\n\t\t\tPDO::ATTR_ERRMODE\t => PDO::ERRMODE_EXCEPTION\n\t\t);\n\t\t\n\t\t//Create a new PDO instance\n\t\ttry {\n\t\t\t$this->dbh = new PDO($dsn, $this->user, $this->pass, $options);\n\t\t}\n\t\t//Catch any errors\n\t\tcatch(\\PDOException $e){\n\t\t\t$this->error = $e->getMessage();\n\t\t}\n\t\t\n\t}", "private function connection(){\n\t\t\ttry{\n\n\t\t\t\t$this->connection = new PDO(\n\t\t\t\t\t$this->dsn,\n\t\t\t\t\t$this->username,\n\t\t\t\t\t$this->password\t\n\t\t\t\t);\n\t\t\t\t$this->connection->setAttribute(\n\t\t\t\t\tPDO::ATTR_ERRMODE,\n\t\t\t\t\tPDO::ERRMODE_EXCEPTION\n\t\t\t\t);\n\t\t\t}catch(PDOException $e){\n\t\t\t\techo \"ERROR: \".$e->getmessage();\n\t\t\t\tdie();\n\t\t\t}\n\t\t}", "public function __construct(PDO $connection = null)\n {\n $this->connection = $connection;\n if ($this->connection === null) {\n $this->connection = new PDO(\n 'mysql:host=localhost:3307;dbname=project',\n 'root',\n 'usbw'\n );\n $this->connection->setAttribute(\n PDO::ATTR_ERRMODE,\n PDO::ERRMODE_EXCEPTION\n );\n }\n }", "private function __connection()\n {\n include 'src/Config/database.php';\n try {\n $dns = \"mysql:host={$databaseConfig['host']};dbname={$databaseConfig['database']}\";\n $this->__connection = new PDO(\n $dns,\n $databaseConfig['username'],\n $databaseConfig['password']\n );\n } catch (PDOException $e) {\n echo $e->getMessage();\n die;\n }\n }", "private function setConnection(){\n try {\n $this->connection = new PDO('mysql:host='.self::HOST.';dbname='.self::NAME.';', self::USER, self::PASS);\n $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch (PDOException $e) {\n die('ERROR: '.$e->getMessage());\n }\n }", "public function __construct() {\n // Handle Exceptions\n try {\n // Setup PDO attributes\n $options = [\n PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,\n ];\n \n // Create a PDO Object\n $this->db = new PDO(self::DSN, self::UN, self::PW, $options);\n \n } catch (PDOException $e) {\n // Output Connection Errors\n echo $e->getMessage();\n // End the script's execution\n exit();\n }\n }", "function __construct()\n {\n $this->_dbh = new PDO(\"mysql:host=hostname;dbname=your_database_name\", \"username\", \"password\");\n }", "public function connect() {\n\n\t\t$db_info_string = $this->_db_info[0]. ':host=' . $this->_db_info[1] . ';';\n\t\t$db_info_string .= 'dbname='. $this->_db_info[4]; \n\n\t\ttry {\n\t\t\t$this->_db = new pdo($db_info_string, $this->_db_info[2], $this->_db_info[3] );\n\n\t\t//set Error mode to send out exceptions\n\t\t$this->_db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); \n\n\t\t} catch (PDOException $e) {\n\t\t\t//TODO Custom error reporting\n\t\t\techo $e->getMessage();\n\t\t}\n\n\t\t//TODO ATTEMPT TO CONNECT, IF PDO OBJECT CANNOT BE CREATED, return \n\t\t//false and use custome error reporting\n\t\t//TRY, CATCH that jazz tooo\n\t\t\n\t\t//Returns the object so that it can be chained\n\t\treturn $this;\n }", "public function __construct() {\n // Set DSN\n $dsn = 'mysql:host='.$this->host.';dbname='.$this->dbName;\n $options = array(\n PDO::ATTR_PERSISTENT => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n );\n \n // Create PDO Instance.\n try {\n $this->dbh = new PDO($dsn, $this->user, $this->pass, $options);\n } catch(PDOException $e) {\n $this->error = $e->getMessage();\n echo $this->error;\n }\n }", "private function connect()\n {\n $this->dbh = new PDO('sqlite:' . $this->sqlite);\n return;\n }", "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 }", "public function __construct() {\n parent::__construct();\n\n $dsn = 'mysql:host=' . $this->host;\n\n try {\n $this->dbh = new PDO($dsn, $this->user, $this->pass);\n $this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch (PDOException $e) {\n echo 'Connection failed: ' . $e->getMessage();\n }\n }", "public function __construct()\r\n {\r\n try {\r\n $this->conn = new PDO(\"mysql:host=$this->host;dbname=$this->dbname;charset=utf8\", $this->user, $this->pass);\r\n } catch (PDOException $e) {\r\n echo 'Connection failed: ' . $e->getMessage();\r\n }\r\n }", "public function __construct() {\n $conStr = sprintf(\"mysql:host=%s;dbname=%s;charset=utf8\", self::DB_HOST, self::DB_NAME);\n\n try {\n $this->pdo = new PDO($conStr, self::DB_USER, self::DB_PASSWORD);\n } catch (PDOException $e) {\n echo $e->getMessage();\n }\n }", "function connect()\n {\n $this->db = new PDO($this->dns,$this->user,$this->pass,$this->option);\n $this->db->setAttribute(PDO::ATTR_ERRMODE , PDO::ERRMODE_EXCEPTION);\n\n }", "protected function connect()\n\t{\n\t\t$strDSN = 'mysql:';\n\t\t$strDSN .= 'dbname=' . $GLOBALS['TL_CONFIG']['dbDatabase'] . ';';\n\t\t$strDSN .= 'host=' . $GLOBALS['TL_CONFIG']['dbHost'] . ';';\n\t\t$strDSN .= 'port=' . $GLOBALS['TL_CONFIG']['dbPort'] . ';';\n\t\t$strDSN .= 'charset=' . $GLOBALS['TL_CONFIG']['dbCharset'] . ';'; // supported only in PHP 5.3.6+\n\n\t\t$arrOptions = array(\n\t\t\tPDO::ATTR_PERSISTENT => $GLOBALS['TL_CONFIG']['dbPconnect'],\n\t\t\tPDO::MYSQL_ATTR_INIT_COMMAND => 'SET sql_mode=\\'\\'; SET NAMES ' . $GLOBALS['TL_CONFIG']['dbCharset'],\n\t\t\tPDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n\t\t);\n\n\t\t$this->resConnection = new PDO($strDSN, $GLOBALS['TL_CONFIG']['dbUser'], $GLOBALS['TL_CONFIG']['dbPass'], $arrOptions);\n\t}", "private function __construct(){\r\n\t\ttry{\r\n\t\t\t//self::$dbh = new PDO(\"mysql:host=\".Config::HOST_DB.\";dbname=\".Config::NAME_DB.\";charset=utf8;\", Config::LOGIN_DB, Config::PASS_DB);\r\n\t\t\tself::$dbh = new PDO(\"mysql:unix_socket=/var/lib/mysql/mysql.sock;dbname=\".Config::NAME_DB.\";charset=utf8;\", Config::LOGIN_DB, Config::PASS_DB);\r\n\t\t\tif(Constant::CURRENT_MODE == Constant::DEBUG_MODE){\r\n\t\t\t\tself::$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n\t\t\t}\r\n\t\t}catch(\\PDOException $e){\r\n\t\t\t//self::$dbh = new PDO(\"mysql:host=\".Config::HOST_DB.\";dbname=\".Config::NAME_DB.\";charset=utf8;\", Config::LOGIN_DB, Config::PASS_DB);\r\n\t\t\tself::$dbh = new PDO(\"mysql:unix_socket=/var/lib/mysql/mysql.sock;dbname=\".Config::NAME_DB.\";charset=utf8;\", Config::LOGIN_DB, Config::PASS_DB);\r\n\t\t\tif(Constant::CURRENT_MODE == Constant::DEBUG_MODE){\r\n\t\t\t\tself::$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t}", "private function __construct()\n\t{\n\t $this->DBH = new PDO(\"mysql:host=\".HOSTNAME.\";dbname=\".DBNAME, USERNAME, PASSWORD);\n\t}", "private function __construct()\n {\n $this->setDatabaseConfig();\n\n //set DSN\n $dsn = $this->_type . ':host=' . $this->_host . ';dbname=' . $this->_name;\n\n //set options\n $options = array(\n PDO::ATTR_PERSISTENT => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n );\n\n try {\n /*\n * PDO has three params upon construction\n * specify driver, username, password\n * specify driver: mysql,needs host and database name\n * host = server you are running usually 127.0.0.1\n */\n $this->_dbHandler = new PDO($dsn, $this->_user, $this->_pass, $options);\n } catch(PDOException $e){\n echo $e->getMessage();\n }\n }", "function __construct() {\r\n try {\r\n $db_host = DB_HOST;\r\n $db_name = DB_NAME;\r\n $db_user = DB_USER;\r\n $db_pass = DB_PASS;\r\n $this->db = new PDO(\"mysql:host=$db_host;dbname=$db_name\", $db_user, $db_pass);\r\n } catch (PDOException $e){\r\n echo \"Connection Failed \" . $e->getMessage();\r\n }\r\n }", "public function __construct() {\n// $this->dbconn = new PDO($dbURI, $_ENV['USER'], $_ENV['PASS']);\n\n $dbURI = 'mysql:host=' . 'localhost'.';port=3307;dbname=' . 'proj2';\n $this->dbconn = new PDO($dbURI, 'root', '');\n $this->dbconn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }", "public function __construct() {\n// $this->dbconn = new PDO($dbURI, $_ENV['USER'], $_ENV['PASS']);\n\n $dbURI = 'mysql:host=' . 'localhost'.';port=3307;dbname=' . 'proj2';\n $this->dbconn = new PDO($dbURI, 'root', '');\n $this->dbconn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }", "static function set_pdo () {\n\t\tself::$pdo = new PDO(APP_DATABASE_DRIVER.':host='.APP_DATABASE_HOST.';port='.APP_DATABASE_PORT.';dbname='.APP_DATABASE_NAME, APP_DATABASE_USERNAME, APP_DATABASE_PASSWORD);\n\t\tself::$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\tself::$pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);\n\t}", "public function connect()\n {\n try {\n\n $this->config = (new Config\\Config())->getConfig(); // load config file in config class\n\n // create pdo connection to DB by using config\n $this->_dbInstance = new \\PDO('mysql:host=' . $this->config['ServerName'] . ';dbname=' . $this->config['DBName'], $this->config['UserName'], $this->config['Password'],array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\n // set attributes for this connection\n $this->_dbInstance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch(\\PDOException $e)\n {\n echo $e->getMessage();\n }\n }", "function __construct()\n\t{\n\t\t$this->connect = new PDO(\"mysql:servername=localhost;dbname=lab2;charset=utf8\", \"root\", \"\");\n\t}", "private function connect()\n\t{\n\t\t$connectionData = $this->app->file->requireFile('config.php');\n\t\t\n\t\textract($connectionData);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tstatic::$connection = new PDO('mysql:host=' . $server . ';dbname=' . $dbname, $dbuser, $dbpass);\n\t\t\t\n\t\t\tstatic::$connection->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n\t\t\t\n\t\t\tstatic::$connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t\n\t\t\tstatic::$connection->exec('SET NAMES utf8');\n\t\t}\n\t\tcatch (PDOException $e)\n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\t\t\t\t\n\t}", "private function Connect()\n {\n $config = ConfigDb::dbConfig();\n $dsn = 'mysql:dbname='.$config['database'].';host='.$config['host'];\n try\n {\n $this->pdo = new PDO($dsn, $config['username'], $config['password'], array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);\n $this->bConnected = true;\n }\n catch (PDOException $e)\n {\n echo $this->ExceptionLog($e->getMessage());\n die();\n }\n }", "public function __construct()\n {\n $data = new Constant();\n $this->connect = new PDO(\"$data->database:host=$data->host;dbname=$data->dbname\", \"$data->user\", \"$data->password\");\n $this->connect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n }", "function __construct()\r\n {\r\n $this->_dbh = $this->connect();\r\n }", "public function __construct()\n {\n // open database connection\n $conStr = sprintf(\"mysql:host=%s;dbname=%s\", self::DB_HOST, self::DB_NAME);\n try {\n $this->pdo = new PDO($conStr, self::DB_USER, self::DB_PASSWORD);\n } catch (PDOException $e) {\n echo $e->getMessage();\n }\n }", "public function __construct(){\n $this->dbh = new PDO('mysql:dbname=test;host=localhost','root','admin');\n\n }", "function __construct()\n {\n $this->_dbh = $this->connect();\n }", "private function __construct()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// syntax différente de tableau :\n\t\t\t// $option = array(); = $option = [];\n\t\t\t$option =\n\t\t\t[\n\t\t\t\tPDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\",\n\t\t\t\tPDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // Signalisation des erreurs\n\t\t\t\tPDO::ATTR_EMULATE_PREPARES => false /* Vrai requêtes préparées */\n\t\t\t];\n\n\t\t\t$this->_PDOInstance = new PDO('mysql:host='.BDD_HOST.'; dbname='.BDD_DATABASE, BDD_USER, BDD_PASSWORD, $option);\n\t\t}\n\t\tcatch (PDOException $e)\n\t\t{\n\t\t\texit(\"Connexion à MySQL impossible : \" . $e->getMessage());\n\t\t}\n\t}", "private function __construct(){\n try{\n $this->_pdo=new PDO(\"mysql:host=\".config::get(\"mysql/host\").\";dbname=\".config::get(\"mysql/db\"),config::get(\"mysql/username\"),config::get(\"mysql/password\"));\n\n\n\n } catch(PDOException $e){\n echo $e->getMessage();\n die();\n }\n\n\n }", "public function __construct() {\n\n require 'db/config.php';\n\n $this->dbname = $dbname;\n\n try {\n $this->pdo = new \\PDO(\"mysql:host=$host\", $username, $password, $options);\n }\n catch(PDOException $error) {\n echo $error->getMessage() . \"\\n\";\n }\n }", "public function __construct() {\n// $this->dbconn = new PDO($dbURI, $_ENV['USER'], $_ENV['PASS']);\n\n $dbURI = 'mysql:host=' . 'localhost'.';port=3307;dbname=' . 'proj2';\n $this->dbconn = new PDO($dbURI, 'root', '');\n $this->dbconn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }", "private function __construct($dsn, $username, $password)\n {\n //If Error Occurred, Throws an Exception (caught at index.php).\n self::$connection = new \\PDO($dsn, $username, $password);\n }", "public function __construct()\n {\n $dsn = 'mysql:host='.$this->host.';port='.$this->porta.';dbname='.$this->banco;\n $opcoes = [\n //armazena em cache a conexao para ser reutilizada \n PDO::ATTR_PERSISTENT => TRUE,\n //lanca uma pdo exception se ocorrer um erro \n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n ];\n\n try {\n // cria a instancia do PDO \n $this->dbh = new PDO($dsn,$this->usuario,$this->senha,$opcoes);\n\n \n } catch (PDOException $e) {\n print \"Error!: \" . $e->getMessage() . \"<br/>\";\n die();\n }\n\n }", "public function __construct() {\n\n\t\t$dsn = 'mysql:host='. $this->dbhost . ';dbname='. $this->dbname .'';\n\n\t\t$options = [\n\t\t\tPDO::ATTR_PERSISTENT => true,\n\t\t\tPDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n\t\t];\n\n\t\ttry {\n\n\t\t\t$this->dbh = new PDO($dsn, $this->dbuser, $this->dbpass, $options);\n\n\n\t\t} catch (PDOException $e) {\n\n\t\t\tErrorHandler::sendError($e->getMessage(), true);\n\n\t\t}\n\n\t}", "public function __construct( $pdoObj )\n {\n if( $pdoObj instanceof \\PDO ) {\n $this->dbConnect( $pdoObj );\n } else {\n $this->connConfig = $pdoObj;\n $this->dbConnect();\n }\n }", "public function __construct() {\n $this->adapter = new PDOAdapter();\n }", "public function __construct() {\n try {\n $this->conn = new PDO(\"mysql:host=localhost;dbname=tryout\", self::$username, self::$password);\n $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n } catch (PDOException $e) {\n echo \"Connection failed: \" . $e->getMessage();\n }\n }", "private function __construct()\n {\n try \n {\n $this->pdo = new PDO(\"mysql:host=localhost;dbname=battleships;\", \"root\", \"root\"); // LOCAL DB Server\n } \n catch(PDOException $e)\n {\n die(\"Error connecting to database\");\n }\n }", "public function __construct()\n\t{\n\t\t$dsn = 'mysql:host=' . MYSQL_HOST . ';dbname=' . MYSQL_NAME . ';charset=utf8';\n\t\t\n\t\ttry {\n\t\t\t$this->_instance = new PDO($dsn, MYSQL_USER, MYSQL_PSWD, [PDO::ATTR_PERSISTENT => MYSQL_PERSIST]);\n\t\t\t$this->_instance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t} catch(PDOException $e) {\n\t\t\t$this->closeConnection();\n\t\t\tthrow new Exception('Could not connect to database:<br>' . $e->getMessage());\n\t\t}\n\t}", "function __construct(){\n try{\n $this->dbConnection = new PDO('mysql:host='.Config::get('db/host').';dbname='.Config::get('db/database'),Config::get('db/username'),Config::get('db/password'));\n $this->dbConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch(Exception $e){\n die($e->getMessage());\n }\n \n }", "public function setConnection(PDO $PDO)\n {\n $this->connection = $PDO;\n $this->setKeyWords();\n }", "protected function __construct()\n {\n try {\n $this->connection = new PDO($this->dns, $this->username, $this->password);\n // Affichage des erreurs en warning\n //$this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n // Activation des exceptions PDO\n $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch (Exception $ex) {\n trigger_error($ex->getMessage(), E_USER_ERROR);\n }\n }", "private function __construct() {\n\t\ttry \n\t\t{\n\t\t\t$this->pdo = new PDO($this->source, $this->user, $this->pass);\n\t\t} \n\t\tcatch (PDOException $e) \n\t\t{\n\t\t\tdie( $e->getMessage() );\n\t\t}\n\t}", "public function __construct() {\n\t\t\t//the special keywords self, static, and parent are used to access properties or methods from inside the class definition.\n\t\t\t$host = $this->do_config(0);\n\t\t\t$db = $this->do_config(1);\n\t\t\t$user = $this->do_config(2);\n\t\t\t$pass = $this->do_config(3);\t\t\t\n\t\t\t\n\t\t\t$conStr = sprintf(\"mysql:host=%s;dbname=%s\",$host, $db);\n\t\t\t//echo $conStr;\n\t\t\ttry {\n\t\t\t\t$this->pdo = new PDO($conStr, $user, $pass);\n\t\t\t} catch (PDOException $e) {\n\t\t\t\tdie($e->getMessage());\n\t\t\t}\n\t\t}", "public function connect()\n\t{\n\t\ttry {\n\t\t\t$this->_connection = new PDO(\n\t\t\t\t\"mysql:host=\" . $this->_host . \n\t\t\t\t\";dbname=\" . $this->_database,\n\t\t\t\t$this->_username,\n\t\t\t\t$this->_password,\n\t\t\t\tarray(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')\n\t\t\t); \n\t\t}\n\t\tcatch(PDOException $error) {\n\t\t\tdie('<br />MySQL error: Failed to connect.<br />' . $error->getMessage());\n\t\t}\n\t}", "public function __construct()\n {\n $cred = getDbCredentials();\n $dbhost = $cred['dbhost']; \n $dbuser = $cred['dbuser'];\n $dbname = $cred['dbname'];\n $dbpass = $cred['dbpass']; \n $conn = null;\n try{\n $conn = new PDO(\"mysql:host=$dbhost; dbname=$dbname\", $dbuser, $dbpass);\n $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch(PDOException $ex){\n echo \"Connection failed: \".$ex->getMessage();\n }\n \n $this->connection = $conn;\n }", "private function __construct(){\n try {\n $this->dbh = Conexion::singleton_conexion();\n } catch (PDOException $e) {\n print \"Error!: \" . $e->getMessage();\n die();\n }\n }" ]
[ "0.78495985", "0.77910984", "0.77306503", "0.7723347", "0.76575553", "0.76337516", "0.7595935", "0.75896204", "0.7568892", "0.7568167", "0.75650615", "0.75329757", "0.75255764", "0.75229174", "0.75175154", "0.7511115", "0.75021845", "0.75016195", "0.7498839", "0.74595475", "0.7449916", "0.744954", "0.74440354", "0.74440145", "0.7434821", "0.74282753", "0.74077696", "0.7388645", "0.73362815", "0.73320544", "0.732652", "0.73236597", "0.73068285", "0.73012716", "0.7300712", "0.72801536", "0.7259171", "0.7254061", "0.7254061", "0.7252945", "0.72495705", "0.72466856", "0.72439885", "0.72384405", "0.723782", "0.7229563", "0.7223391", "0.72233194", "0.722179", "0.72128326", "0.72106284", "0.72021955", "0.7198387", "0.7188273", "0.7183467", "0.71792006", "0.717266", "0.7166218", "0.71659774", "0.715645", "0.71508026", "0.7150467", "0.71428335", "0.7137864", "0.71337503", "0.7133363", "0.71230274", "0.7120373", "0.7105311", "0.7102619", "0.7102619", "0.71005917", "0.7096666", "0.70942837", "0.7094211", "0.70878506", "0.7079258", "0.7077731", "0.70770997", "0.70735586", "0.7073", "0.7061128", "0.7053259", "0.70531", "0.70522887", "0.7051886", "0.70515114", "0.70484436", "0.7040056", "0.70375586", "0.7037396", "0.70355725", "0.7030426", "0.7019001", "0.70174646", "0.7016726", "0.70162404", "0.70139366", "0.70137876", "0.70133513", "0.7010402" ]
0.0
-1
exec use in no return result, such as insert, update, delete etc.
private function _exec($sql){ // exec will return the number of data change. $affected = self::exec($sql); return $affected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function exec($sql);", "function exec($sql);", "function db_raw_exec( $sql )\n{\n return Chev_PDO::instance()->raw_exec( $sql );\n}", "abstract public function execute() ;", "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "abstract function execute();", "abstract function execute();", "abstract function execute ();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "function exec_query($conn, $query) {\n\tif ($conn) {\n\t\ttry {\n\t\t\t$stmt = $conn->prepare($query);\n\t\t\t$stmt->execute();\n\t\t\treturn $stmt->fetchAll();\n\t\t} catch (PDOException $e) {\n\t\t\techo \"<div>Could not access db: \" . $e->getMessage() . \"</div>\";\n\t\t}\n\t}\n\treturn NULL;\n}", "abstract public function exec($query='');", "public function execute()\n {\n \tif ( $this->cur_query != \"\" )\n \t{\n \t\t$res = $this->query( $this->cur_query );\n \t}\n \t\n \t$this->cur_query \t= \"\";\n \t$this->is_shutdown \t= false;\n\n \treturn $res;\n }", "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}", "protected function _exec()\n {\n }", "function insert_update_exec($sql){\n\t$conn = connect();\n\n\tif(($statement = oci_parse($conn, $sql)) == false){\n\t\t$err = oci_error($statement);\n\t\techo htmlentities($err['message']);\n\t\toci_close($conn);\n\t\treturn FALSE;\n\t}\n\n\t$exec = oci_execute($statement);\n\n\tif(!$exec){\n\t\t$err = oci_error($statement);\n\t\toci_free_statement($statement);\n\t\techo htmlentities($err['message']);\n\t\toci_close($conn);\n\t\treturn FALSE;\n\t}\n\toci_commit($conn);\n\toci_free_statement($statement);\n\toci_close($conn);\n\techo \"Success \";\n}", "public function execute() { \n return $this -> stmt -> execute();\n }", "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 abstract function execute();", "public abstract function execute();", "public abstract function execute();", "abstract public function execute($sql);", "public function executeStatement()\n {\n \n }", "public function execute(): Statement;", "public abstract function exec();", "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 execute($sql);", "public function execute($sql);", "protected abstract function _exec($params = array());", "public function execute() \r\n\t{\r\n\t\treturn $this->objStatement->execute();\r\n\t}", "function dbExec(PDO $db, $sql, array $paramsArray = array()) {\n\treturn executeQuery($db, $sql, $paramsArray, $__returnResultSet = false);\n}", "public abstract function execute($sql);", "function execute();", "protected function prepareExecute()\n {\n parent::prepareExecute();\n }", "private function func_execute () {\n $this -> connection = parent::func_query ($this -> query, $this -> query_data);\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}", "function kval_sqlite_exec($sql)\n{\n return kval_sqlite_queryexec(func_get_args())[0];\n}", "function db_exec($sql, $args=array()) {\n $sth = db_query($sql, $args);\n $affected = $sth->rowCount();\n $sth->closeCursor();\n return $affected;\n}", "public function execute() {\n $exec = $this->db->prepare($this->sql);\n $exec->execute($this->placeHolder);\n $this->placeHolder = array(); //make placeHolder array empty SO that placeholder property is ready for another action.\n $return = '';\n $this->count = $exec->rowCount();\n switch ($this->type) {\n case self::TYPE_SELECT:\n $return = $exec->fetchAll(PDO::FETCH_OBJ);\n break;\n case self::TYPE_DELETE:\n $return = $this->count;\n break;\n case self::TYPE_UPDATE:\n break;\n case self::TYPE_ALTER:\n break;\n default :\n $return = '';\n break;\n }\n return $return;\n }", "public function execSql(){\n\t\t$cant=func_num_args();\n\t\t$instSql=\"\";\n\t\t$instSql=$this->reemplazaParametro(func_get_args());\n//\t\techo \"<br>\".$instSql.\"<br>\";\n//\t\techo $this->tipodb.\"<br>\";\n//\t\t$this->registroLog($instSql,$_SESSION['PERMISO'][0],$_SESSION['PERMISO'][1]);\n\t\tswitch ($this->tipodb) {\n\t\t\tcase \"my\":\n\t\t\t\t$resultado=mysql_query($instSql,$this->conn);\n//echo mysql_errno().\"<br>\";\n\t\t\t\tbreak;\n\t\t\tcase \"pg\":\n\t\t\t\t$resultado=pg_query($this->conn,$instSql);\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $resultado;\n\t}", "public function exec_query($sql = null) {\n\t\t$this->setFoundRows();\n\t\tif($this->debug) {\n\t\t\ttry {\n\t\t\t\t// Execute query\n\t\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t\t//$this->writeQueryInLog($Rs->last_query, debug_backtrace());\n\n\t\t\t\t// $this->query_debugger($Rs->last_query); // Debug queries\n\t\t\t\t\n\t\t\t\t$this->resetVariables(); // reset all variables\t\t\t\t\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$newex = new Exception($e->getMessage());\n\t\t\t\t//echo 'ex :: '.$this->getSQL($this->getFullQuery());exit;\n\t\t\t\t$this->displayException($newex);\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t$this->resetVariables();\t\t\t\n\t\t}\n\t\t\n\t\t$this->query = trim($this->query);\n\t\tif(stripos($this->query, 'INSERT') === 0) {\n\t\t\treturn $this->Connection->getLastInsertedId();\n\t\t} \n\t\telseif(stripos($this->query, 'UPDATE') === 0) {\n\t\t\treturn $Rs;\n\t\t} \n\t\telse {\n\t\t\tif($Rs->RecordCount() == 0)\n\t\t\t\treturn false;\n return $Rs;\n\t\t}\n\t}", "public function rawExec(string $sql, array $params=[])\n {\n return $this->getConnection()->rawExec($sql, $params);\n }", "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 exec_catch( $cur ){\n try{\n oci_execute( $cur, OCI_DEFAULT );\n }catch(Exception $e){\n ##\n ## Might be something in buffer, so check first\n ##\n $this->get_dbms_output();\n $this->error( $e->getMessage() );\n }\n }", "function execQuery($query, $params) {\r\n $statement = performQuery($query, $params);\r\n\r\n return $statement === false ? false : $statement->rowCount();\r\n}", "public function exec ($sql) {\n $this->query = $this->conn->exec($sql);\n return $this->query;\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}", "function DBExecSP($connection, &$cursor, $sql, $params, $return = true, $mode = 1) {\n\n\t//\n}", "public function rawExec(string $sql, array $params = [], bool $autoTransactions = true): bool;", "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}", "public function exec($sql){\n try{\n return $this->pdo->exec($sql);\n }catch(\\PDOException $exception){\n echo \"Wrong Message: \".$exception->getMessage();\n }\n }", "public function exec($prepared_values = null) {\n if (!empty($this->_parts['query'])) {\n $res = null;\n foreach($this->_parts['query'] as $one) {\n $res = $this->_connection->query($one);\n }\n $this->_parts['query'] = array();\n return $res;\n }\n return $this->_connection->processQuery($this);\n }", "public function executeAllStrict();", "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 }", "final public function execute()\n {\n return $this\n ->finalize()\n ->getDB()\n ->execute($this);\n }", "public function executeQuery($sql)\r\n\t{\r\n\t\t//return qocqal_query($sql);\r\n\t}", "function _execute($sql) {\n\t\treturn mysql_query($sql, $this->connection);\n\t}", "function sql_execute($sql)\n{\n global $ctx;\n return $ctx['sqlconn']->query($sql);\n}", "public function exec($stmt, array $params = array())\n{\n\t$sth = db2_prepare($this->dbh, $stmt);\n\t$res = db2_execute($sth, $params);\n\treturn ($res) ? db2_num_rows($this->dbh) : $res;\n}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function exec($sql)\n\t{\n\t\t$res = parent::exec($sql);\n\n\t\tif($res == 1) return true;\n\t\telse return false;\n\t}", "function dbExec( $sql ) {\n\t\tGLOBAL $db;\n\t\t\n\t\tif ( ($db instanceof PDO) === true ) {\n\t\t\t$count = $db->exec( formatSQL($sql) );\n\t\t\treturn $count;\n\t\t}\n\t}", "abstract public function execute($query);" ]
[ "0.7379526", "0.72481847", "0.7066619", "0.70234215", "0.6883885", "0.6883885", "0.6883885", "0.6883885", "0.6870107", "0.6870107", "0.6828351", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.67470944", "0.66947794", "0.6693948", "0.66910946", "0.6657127", "0.665145", "0.66391665", "0.66271186", "0.66174394", "0.6581491", "0.6581491", "0.6581491", "0.65385306", "0.6532571", "0.6530708", "0.65289795", "0.65278184", "0.6517419", "0.6517419", "0.6513602", "0.6506165", "0.65049446", "0.6493287", "0.64876896", "0.64752305", "0.64530504", "0.64275205", "0.64275205", "0.6406493", "0.63888115", "0.63841623", "0.63825566", "0.6368957", "0.6360498", "0.6356021", "0.63534516", "0.6345879", "0.63401634", "0.63376385", "0.63315266", "0.6326817", "0.63264227", "0.6301918", "0.6294992", "0.6292191", "0.62882537", "0.62695444", "0.626482", "0.62623143", "0.62618417", "0.62594604", "0.6238955", "0.6238955", "0.6238955", "0.6238955", "0.6238955", "0.6238955", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.62384844", "0.6236287", "0.6236287", "0.62229556", "0.622065", "0.6216388" ]
0.6314106
67
Returns a single result row
public function row_array($query, $bindParams = array()) { try { $this->_sql = $query; if (!is_array($bindParams)) throw new Exception("$bindParams must be an array"); $sth = $this->_prepareAndBind($bindParams); if($sth === FALSE) { $this->_display_error(); return FALSE; } $res = $sth->execute(); if($res === FALSE) { $this->_display_error(); return FALSE; } $this->_handleError($res, __FUNCTION__); $result = $sth->fetchAll($this->_fetchMode); if (!isset($result[0])) { return array(); } return $result[0]; } catch (PDOException $e) { die($e->getMessage().PHP_EOL); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exec_SELECTgetSingleRow() {}", "public function singleRow(){\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "public function get_row();", "public function queryRow()\n\t{\n\t\treturn $this->queryInternal('fetch',$this->_fetchMode);\n\t}", "public function row() {\n\t\tif ($this->returned) return false;\n\t\t$this->returned = true;\n\t\treturn $this->query;\n\t}", "public function fetchRow();", "function FetchRow() {\n\t\t\treturn pg_fetch_row($this->result);\n\t\t}", "public function fetchSingleRow($result){\r\n\t\t\r\n\t\t$row = mysqli_fetch_assoc($result);\r\n\t\treturn $row;\r\n\t}", "public function getSingleRow()\r\n {\r\n echo 'hello';\r\n die();\r\n /* $this->db->select('*');\r\n $this->db->from($table);\r\n $this->db->where($condition);\r\n $query = $this->db->get();\r\n return $query->row(); */\r\n }", "public function getResultSingle() {\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "public abstract function FetchRow();", "public function getSingleResult()\n {\n }", "public function getSingleResult() {\n return mysql_fetch_array($this->result);\n }", "abstract public function FetchRow();", "public function result_row()\n {\n $output = is_bool($this->result) ? array() : $this->result->fetch_assoc();\n\n $this->free_result();\n\n return $output;\n }", "public function fetchRow()\n\t{\n\t\t$this->_query();\n\n\t\treturn $this->stmt->fetch(\\PDO::FETCH_ASSOC);\n\t}", "function FetchRow() {}", "abstract function res_row($res);", "abstract public function getSpecificRow();", "function db_get_row($result)\n{\n\treturn $result->fetch_assoc();\n}", "protected function getOne()\n {\n $statement = $this->connection->query($this->sqlToString());\n return $this->fetch($statement);\n }", "public function single()\n {\n $this->executeQuery($this->statement);\n return $this->fetch($this->statement);\n }", "public function fetch_row()\n {\n return $this->fetch_assoc();\n }", "public function get_row() {\n\t\tif (!isset($this->rows)) {\n\t\t\t$this->get_rows();\n\t\t}\n\t\t$value = current($this->rows);\n\t\tnext($this->rows);\n\t\treturn $value;\n\t}", "protected function fetch_row()\n\t{\n\t\treturn $this->resResult->fetch(PDO::FETCH_NUM);\n\t}", "function getResRow($tsql,$method=PDO::FETCH_ASSOC){ \n $rs=$this->DBH->prepare($tsql);\n $rs->execute();\n $row=$rs->fetch($method);\n \n return $row;\n }", "function fetchSingleRow($query) \t{\n\t\tif($query != '') \t\t{\n\t $res = $this->execute($query);\n\t $data = $this->fetchAll($res);\n\t if($data) return $data[0]; \n\t\t}\n\t}", "public function row($index = 0) {\n if($this->result) {\n if(isset($this->result[$index])) {\n return $this->result[$index];\n }\n }\n return null;\n }", "public function getRow() {\n\n if ($this->setRow($this->rs)) {\n $this->setId($this->row['id']);\n $this->setReg($this->row['reg']);\n $this->setCampo($this->row['campo']);\n $this->setCodigo($this->row['codigo']);\n $this->setDescricao($this->row['descricao']);\n return 1;\n } else {\n //$this->setError(mysql_error());\n return 0;\n }\n }", "public function singleResult() {\n $this->_pstmt->setFetchMode(PDO::FETCH_CLASS, $this->_className);\n return $this->_pstmt->fetch(PDO::FETCH_CLASS);\n }", "public function fetch_row()\n\t{\n\t\t$row = array();\n\t\tif (current($this->result)) {\n\t\t\tforeach (current($this->result) AS $value) {\n\t\t\t\t$row[] = $value;\n\t\t\t}\n\t\t}else {\n\t\t\t$row = FALSE;\n\t\t}\n\t\tnext($this->result);\n\t\treturn $row;\n\t}", "public function getRow() {}", "function readOne() {\n\t\t\t$query = \"SELECT * FROM `\".$this->table_name.\"` WHERE id ='\".$this->id.\"'\";\n\t\t \n\t\t\t// prepare query statement\n\t\t\t$hasil = mysqli_query($this->conn, $query);\n\t\t\t \n\t\t\t$row = mysqli_fetch_array($hasil);\n\t\t\t\n\t\t\treturn $row;\n\t\t}", "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t}", "public function result() {\n $this -> execute();\n return $this -> stmt -> fetch();\n }", "public function sql_fetch_row($result) {\n return @mysql_fetch_row($result);\n }", "public function getFirstResult();", "public function getFirstResult();", "protected function db_fetch_row($result)\n {\n return $result->fetch_row();\n }", "public function fetchRow()\n {\n if (!$this->_rs) {\n return false;\n }\n\n return new $this->_rowClass($this->_rs->FetchRow());\n }", "function fetchRow ()\n {\n return pg_fetch_array($this->_result);\n }", "public function single(){\r\n $this->execute();\r\n return $this->stmt->fetch(PDO::FETCH_OBJ);\r\n }", "public function getRow();", "public function single()\n\t{\n\t\t$this->execute();\n\t\treturn $this->stm->fetch(PDO::FETCH_OBJ);\n\t}", "public function single()\n {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "public function fetchSingle() {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "public function readone(){\r\t\t\t$query=\"select * from `\".$this->tablename.\"` where `id`='\".$this->id.\"'\";\r\t\t\t$result=mysqli_query($this->conn,$query);\r\t\t\t$value=mysqli_fetch_row($result);\r\t\t\treturn $value;\r\t\t}", "public function getRow() {\n\n if ($this->setRow($this->rs)) {\n $this->setIdProtocolosEntregas($this->row['id_protocolos_entregas']);\n $this->setIdRegiao($this->row['id_regiao']);\n $this->setIdProjeto($this->row['id_projeto']);\n $this->setMesCompetencia($this->row['mes_competencia']);\n $this->setAnoCompetencia($this->row['ano_competencia']);\n $this->setIdentificador($this->row['identificador']);\n $this->setDescricao($this->row['descricao']);\n $this->setIdTipoProtocolo($this->row['id_tipo_protocolo']);\n $this->setDataCad($this->row['data_cad']);\n $this->setStatus($this->row['status']);\n return 1;\n } else {\n //$this->setError(mysql_error());\n return 0;\n }\n }", "public function get_row($sql) {\n if ( !$results = $this->query($sql . \" LIMIT 1\") )\n return false;\n \n return $results->fetch_object();\n }", "public function fetch_row()\r\n{\r\n\t$tmp2 = $this->_result->fetch_row();\r\n\t$this->type = 1; // MYSQLI_ASSOC = 0, MYSQLI_NUM = 1, or MYSQLI_BOTH (To implement). \r\n\t$this->push_in($tmp2);\r\n\t\r\n\treturn $tmp2;\r\n}", "public function getRow($sql,$params = null){\n $result = $this->getResult($sql,$params);\n $row = $result->fetch_assoc();\n $result->close();\n return $row;\n }", "function getSingleResult($stmt) {\n $result = $stmt->get_result();\n return mysqli_fetch_assoc($result);\n}", "function GetRow()\n {\n return $this->row;\n }", "public function getRow()\n\t {\n\t\tif (($this->_result instanceof mysqli_result) === false)\n\t\t {\n\t\t\treturn false;\n\t\t }\n\t\telse\n\t\t {\n\t\t\treturn $this->_result->fetch_assoc();\n\t\t }\n\t }", "public function fetch() {\n\t\t$this->checkResultSet();\n\t\treturn $this->fetchRowAssoc();\n\t}", "function fetch_single($res)\n {\n $row=mysqli_fetch_row($res);\n if(!$row)\n {\n die(\"database error:\".mysqli_error($res));\n }\n return $row[0];\n }", "public function getResult()\n {\n if (!$this->_resultRow) {\n return false;\n }\n\n return $this->_resultRow;\n }", "public function single() {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "private static function getResultRow($result)\n\t{\n\t $row = $result->fetch_assoc();\n\t\t$result->free();\n\t return $row;\n\t}", "public function row($sql){\n\t\t\tif (!empty($sql['output'])){\n\t\t\t\tif ($sql['output'] == \"array\" || $sql['output'] == \"object\"){\n\t\t\t\t\t$type = $sql['output'];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$type = \"array\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$type = \"array\";\n\t\t\t}\n\n\t\t\t$args = func_get_args();\n\t\t\tarray_shift($args);\n\n\t\t\tif (isset($args[0]) and is_array($args[0])){\n\t\t\t\t$args = $args[0];\n\t\t\t}\n\n\t\t\t$result = $this->run_query($sql,$args);\n\n\t\t\tif ($result){\n\t\t\t\t$row = mysqli_fetch_assoc($result);\n\t\t\t\tif ($type == \"array\"){\n\t\t\t\t\treturn $row;\n\t\t\t\t}\n\t\t\t\tif ($type == \"object\"){\n\t\t\t\t\treturn (object) $row;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function fetchRow() {\n $result = $this->_conn->fetchRow();\n if ($result == false) {\n return false;\n }\n $dm = $this->_formatTag($result);\n return $dm;\n }", "function fetchRow($consulta = NULL){\n if(!$consulta) \n $consulta = $this->consulta;\n return pg_fetch_row($consulta);\n }", "function firstrow() {\r\n\t\t$result=@mysql_data_seek($this->result,0);\r\n\t\tif ($result) {\r\n\t\t\t$result=$this->getrow();\r\n\t\t}\r\n\t\treturn $this->row;\r\n\t}", "public function get_single_row() {\n $userId = $_POST['userId'];\n // Returns a single object with user detail\n $userDetails = $this->user_model->get_user_details( $userId );\n if( !empty( $userDetails ) ) {\n $data[] = $userDetails;\n } \n // Send back the entry details as JSON. Error if empty (Should always return an entry)\n $this->json_library->print_array_json_unless_empty( $data );\n }", "public function getOneRow($sql){\n\t\t$result = $this->query($sql);\n\t\tif($this->num_rows($result) == 1){\n\t\t\treturn $this->fetch_array($result);\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function GetSingleRow() : ARRAY\r\n {\r\n return($this->preparedStatement->fetch(\\PDO::FETCH_ASSOC));\r\n }", "function KM_getSingleRow($where=array(),$options=array())\n\t { \t\t\t\n\t\tif(is_array($where))\n\t\t{\n\t\t\t$where_cond=\"\";\n\t\t\tforeach($where as $key=>$value)\n\t\t\t{\n\t\t\t\tif($where_cond !=\"\") $where_cond.=\" and \";\n\t\t\t\t$where_cond.=$key.\"='\".$value.\"'\";\n\t\t\t}\n\t\t\t$where=$where_cond;\n\t\t}\t\t\n\t\tif(isset($options['class']))\t\t \n\t\t\t$table = $this->db->dbprefix($options['class']);\t\t \n\t\telse\n\t\t\t$table = $this->table;\n\t \t\n\t\t$sql=\"select * from $table where $where limit 0,1 \";\t\t\n\t\t\n\t\t$query = $this->db->query($sql);\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t return $query->row();\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn array();\n\t\t} \n\t\t \n\t }", "function fetchRow() {\r\n if($this->getNumRows() > 0)\r\n return mysql_fetch_array($this->m_Result);\r\n else\r\n return false;\r\n }", "public function row($query, $params = NULL)\n\t{\n\t\tif($statement = $this->query($query, $params))\n\t\t\treturn $statement->fetch();\n\t}", "public function getRow(){\n return oci_fetch_array($this->result);\n\n }", "public function getRow($arg)\n {\n $result = $this->resulter($arg);\n return $this->hasRows() ? $result->fetch_assoc() : false;\n }", "public function fetchRow($result)\n {\n return @mysqli_fetch_row($result);\n }", "public function fetchRow($result_set)\n\t{\n\t\treturn $result_set->fetch_row();\n\t}", "public function getRow()\n {\n return $this->row;\n }", "function dbRow(PDO $db, $sql, array $paramsArray = array()) {\n\treturn executeQuery($db, $sql, $paramsArray, $__returnResultSet = true, $__fetchOnlyOne = true);\n}", "public function fetchRow($result = false){\n $this->resCalc($result);\n return mysql_fetch_row($result);\n }", "public function row($key='*')\n {\n if(self::$use_cache && self::$is_cached !== false){\n $res= $this->mc->get(md5($this->sql));\n\n return $key=='*' ? $res : $res[$key];\n }\n \n $res = $this->result->fetch(DB::FETCH_ASSOC);\n if(self::$use_cache){\n $this->mc->set(md5($this->sql), $res, $this->mc_time);\n }\n return $key=='*' ? $res : $res[$key];\n }", "private function _selSingleRowCustom($sql)\n\t{\n\t\tglobal $con;\n\t\t$query=mysqli_query($con,$sql);\n\n $result=mysqli_fetch_object($query);\n mysqli_free_result($query);\n if(mysqli_more_results($con))\n {\n mysqli_next_result($con);\n }\n\t\tif(!empty($result))\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\t}", "public function get() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_get', array($where));\n\n if ($this->result_mode == 'object') {\n $row = $this->db->get($this->_table())->row();\n } else {\n $row = $this->db->get($this->_table())->row_array();\n }\n\n $row = $this->_callbacks('after_get', array($row));\n\n return $row;\n }", "public function fetch()\n {\n $row = oci_fetch_row($this->statement);\n return $row;\n }", "protected function row($row)\n { \n return DB::table($this->table)\n ->where('personal_access_client', 0)\n ->first()\n ->$row;\n }", "function get_row( $query = null ){\r\n\t\treturn mysql_fetch_assoc( $this->query( $query ) );\r\n\t}", "public function first_row($type = 'object')\n\t{\n\t\treturn $this->row(0, $type);\n\t}", "public function getRow(){\n return $this->_row;\n }", "function eeps_MySQL_getOneRow($db, $query, $params)\n{\n $result = eeps_MySQL_getQueryResult($db, $query . \" LIMIT 1\", $params);\n if (is_array($result)) {\n if (count($result) > 0) {\n return $result[0];\n }\n }\n return null;\n}", "abstract public function getRow();", "abstract public function getRow();", "public function findOne() {\n $this->buildSql();\n $rows = $this->db->findOne($this->sql);\n return $rows;\n }", "public function getFromCache_queryRow() {}", "public function testFetchReturnsSingleRowFromResultSet() {\n $fixture = array(\n \"col1\" => \"value1\",\n \"col2\" => \"value2\"\n );\n \n $stub = $this->getMockBuilder(\"\\Examples\\ThriftServices\\Hive\\HivePDOStatement\")\n ->disableOriginalConstructor()\n ->setMethods(array(\"hasResultSet\", \"_fetch\"))\n ->getMock();\n \n $stub->expects($this->once())\n ->method(\"hasResultSet\")\n ->will($this->returnValue(false));\n \n $rs = $this->getMockBuilder(\"\\Examples\\ThriftServices\\Hive\\HivePDOResultSet\")\n ->disableOriginalConstructor()\n ->getMock();\n \n $rs->expects($this->once())\n ->method(\"isEmpty\")\n ->will($this->returnValue(false));\n \n $rs->expects($this->once())\n ->method(\"getRow\")\n ->will($this->returnValue($fixture));\n \n $stub->expects($this->once())\n ->method(\"_fetch\")\n ->will($this->returnValue($rs));\n \n $result = $stub->fetch();\n $this->assertEquals(count($fixture), count($result));\n $this->assertInternalType('array', $result);\n $this->assertSame($fixture, $result);\n }", "static function select_row($sql, $params = array()) {\n $sth = static::execute($sql, $params);\n\n $result = $sth->fetch();\n\n if ($result === false) {\n return null;\n } else {\n return $result;\n }\n }", "public function fetchRow($sql);", "public function fetchRow($sql);", "public function get(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n\t\t\t\t\t ;\n return $this->db->getRows(array(\"where\"=>$condition,\"return_type\"=>\"single\"));\n\t\t\t\t\t }", "public function getRow()\n {\n return isset($this->row) ? $this->row : null;\n }", "public function getOne() {\n $prepareStatement = $this->pdo->prepare($this->sql);\n $prepareStatement->execute($this->param);\n\n Connection::disconnect();\n\n if ($this->fetch !== PDO::FETCH_CLASS) {\n if (1 == $prepareStatement->columnCount())\n return $prepareStatement->fetch(PDO::FETCH_COLUMN);\n return $prepareStatement->fetch($this->fetch);\n }\n\n return $prepareStatement->fetchObject();\n }", "public static function queryRow($sql)\n\t{\n\t\t$sql = $sql . ' LIMIT 0,1'; //TODO check not already in $sql!\n\t\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\t$row = $result->fetch_assoc();\n\t\t\n\t\t$result->close();\n\t\t\n\t\treturn $row;\n\t}", "function db_getone($sql, $index){\n\t\t$row = $this->db->query($sql)->row_array();\n\t\tif(!empty($row[$index])){\n\t\t\treturn $row[$index];\n\t\t}\n\t}", "function sql_fetch_row($query) {\n\t\treturn pg_fetch_row($query);\n\t}", "function getRow() {\r\n\t\t\tif($this->privateVars['resultset']) {\r\n\t\t\t\t$resultArray = mysql_fetch_array($this->privateVars['resultset']);\r\n\t\t\t\tif ($resultArray !== false) $this->privateVars['resultpointer']++;\r\n\t\t\t\treturn $resultArray;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "abstract public function GetRow($query, $type = DBA::ASSOC);" ]
[ "0.8180669", "0.8086175", "0.76303875", "0.7520272", "0.7459973", "0.74414104", "0.7413207", "0.7381834", "0.725953", "0.72545934", "0.7236171", "0.7225103", "0.7224577", "0.71951056", "0.71465504", "0.71337134", "0.71123576", "0.70953083", "0.7094896", "0.70522475", "0.70440876", "0.7024004", "0.69899964", "0.69840205", "0.6973933", "0.6971597", "0.69417113", "0.6905171", "0.690367", "0.68879807", "0.68779695", "0.6873194", "0.6837461", "0.6823706", "0.68211216", "0.68049014", "0.6803582", "0.6803582", "0.68034595", "0.6803139", "0.6801391", "0.6800499", "0.6785636", "0.67794824", "0.67766106", "0.6772213", "0.6732149", "0.6729755", "0.6719241", "0.6704863", "0.6686876", "0.66802216", "0.6673293", "0.6671561", "0.6665015", "0.6659582", "0.6658267", "0.66520834", "0.66517466", "0.66476", "0.66186994", "0.6615757", "0.6615188", "0.66139513", "0.6609294", "0.6608651", "0.66005504", "0.66001993", "0.65676963", "0.6549768", "0.6543814", "0.6534689", "0.653291", "0.6531847", "0.65173876", "0.6511342", "0.6502466", "0.6499574", "0.64990294", "0.6490549", "0.6486648", "0.6480698", "0.64806026", "0.6475987", "0.64672893", "0.64643914", "0.64643914", "0.6461803", "0.6461481", "0.6456308", "0.64518636", "0.6449292", "0.6449292", "0.64455825", "0.64440507", "0.64407414", "0.64396614", "0.64389247", "0.64383626", "0.64299196", "0.6426095" ]
0.0
-1
Return the last sql Query called
public function showQuery() { return $this->_sql; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function last_query()\n\t{\n\t\treturn $this->db->last_query();\n\t}", "function lastQuery() {\n\t\treturn $this->lastQuery;\n\t}", "public function lastQuery() {\r\n\r\n\t\treturn $this -> lastQuery;\r\n\r\n\t}", "public function getLastQuery(){\n\t\treturn $this->lastQuery;\n\t}", "protected function getLastSql() {\n return $this->last_sql;\n }", "public static function getLastQuery()\n {\n return self::$lastQuery;\n }", "public function getLastSQL()\n {\n return $this->last_sql;\n }", "public function GetLastSQL()\r\n\t{\r\n\t\treturn $this->last_sql;\r\n\t}", "public function lastQuery() {\n\t\treturn $this->mLastQuery;\n\t}", "public function lastQuery() {\n return $this->last_query;\n }", "static function getLastQuery()\r\n {\r\n return $_SESSION[\"last_query\"];\r\n }", "public function GetLastQuery()\r\n\t{\r\n\t\treturn $this->_lastQuery;\r\n\t}", "public function getLastQuery()\n {\n $query_num = $this->query_count - 1;\n if ($query_num < 0) {\n return \"\";\n } else {\n return $this->queries[$this->query_count - 1];\n }\n }", "public function get_last_query(){\n\t\treturn $_POST[\"__query___\"][ count( $_POST[\"__query___\"] ) - 1 ];\n\t}", "public function GetLastQuery()\r\n {\r\n return $this->_LastQuery;\r\n }", "final public function lastSql()\n {\n return $this->db()->lastSql();\n }", "public function getLastQuery()\r\n {\r\n $profile = $this->_db->getProfiler()->getLastQueryProfile();\r\n return $profile\r\n ? $profile->getQuery()\r\n : 'Database Profiler is disabled.';\r\n }", "function getLastSqlCmd()\n {\n return $this->lastSqlCmd;\n }", "public function getLastQuery(): Query;", "public function fetchSqlString()\n\t{\n\t\treturn $this->cur_query;\n\t}", "public function getLastQuery(): string;", "function get_executed_query( ){\r\n\t\treturn mysql::$nquery;\r\n\t}", "public function getLastQuery(): string\n {\n return array_values(array_slice($this->History, -1))[0];\n }", "protected function getLastUpdateQuery()\n {\n return $this->lastUpdateQuery;\n }", "public static function showsql(){\n echo self::table()->last_sql;\n die;\n }", "public function lastQuery($query = \"query\")\n\t{\n\n\t\ttry \n\t\t{\n\t\t\tif(empty($this->connection))\n\t\t\t{\n\t\t\t\t$this->openConnection();\n\n\t\t\t\tif($this->config->connector == \"mysql\")\n\t\t\t\t{\n\t\t\t\t\t$this->lastQuery = mysql_query($query);\n\t\t\t\t}\n\t\t\t\telseif($this->config->connector == \"mysqli\")\n\t\t\t\t{\n\t\t\t\t\t$this->lastQuery = mysqli_query($this->connection, ($query));\n\t\t\t\t}\n\n\t\t\t\t$this->closeConnection();\n\n\t\t\t\treturn $this->lastQuery;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($this->config->connector == \"mysql\")\n\t\t\t\t{\n\t\t\t\t\t$this->lastQuery = mysql_query($query);\n\t\t\t\t}\n\t\t\t\telseif($this->config->connector == \"mysqli\")\n\t\t\t\t{\n\t\t\t\t\t$this->lastQuery = mysqli_query($this->connection, ($query));\n\t\t\t\t}\n\n\t\t\t\treturn $this->lastQuery;\n\t\t\t}\n\n\t\t} \n\n\t\tcatch (Exception $e) \n\t\t{\n\t\t\treturn $e;\n\t\t}\n\t}", "public function getSql() {\n\t\t$val = $this->myQuery;\n\t\t$this->myQuery = array();\n\t\treturn $val;\n\t}", "public function getLastSelect();", "public function getLastQueryResult()\n {\n return $this->aLastResult;\n }", "public function get_sql() {\n\t\treturn $this->SQL1;\n\t}", "public function getQuery(): string {\n\t\t// Store previous output before changing to temp\n\t\t$output = $this->get('output');\n\t\t\n\t\ttry {\n\t\t\t$this->set('output', SqlAdapter::SQL_QUERY);\n\t\t\t$result = $this->run();\n\t\t} finally {\n\t\t\t$this->set('output', $output);\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "function lastId()\n {\n return isset($this->_query) ? $this->_query->lastId() : $this->_lastid;\n }", "public function getSql(){\n $val = $this->myQuery;\n $this->myQuery = array();\n return $val;\n }", "function getSQL() {\n\t\treturn $this->sql;\n\t}", "public function get_sql()\n\t{\n\t\treturn $this->sql;\n\t}", "public function showPreviousQuery(){\n\n\t\t\treturn $this->lastQuery;\n\t\t}", "public function getSql() { \n return $this->sql;\n }", "public function get_sql() {\n return $this->sql;\n }", "function get_sql(){\r\n\r\n\t\treturn $this->get_sql_select().$this->get_sql_where().$this->get_sql_order().$this->get_sql_limit();\r\n\r\n\t}", "public function getSql()\n {\n return $this->sql;\n }", "public function getSQL() {\n return $this->_connection->processQuery($this, true);\n }", "final protected function getSQL()\n {\n return $this->sql;\n }", "public function getLastExecuted()\r\n {\r\n return $this->last_executed;\r\n }", "public function GetOpenSql()\n\t{\n\t\treturn db_get_select_sql($this->fields, $this->tables, $this->filters, $this->sortfields, $this->limit);\n\t}", "public function getLastQueryStatistics(): QueryStatistic\n {\n return $this->getConnection()->getLastQueryStatistic();\n }", "function sql_query($query) {\n\t\t// Added to log select queries\n\t\tforeach($this->preProcessHookObjects as $preProcessHookObject) { /* @var $preProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPreProcessHookInterface */\n\t\t\t$preProcessHookObject->sql_query_preProcessAction($query);\n\t\t}\n\n\t\t$pointer = parent::sql_query($query);\n\n\t\t// Added to log select queries\n\t\tforeach($this->postProcessHookObjects as $postProcessHookObject) { /* @var $postProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPostProcessHookInterface */\n\t\t\t$postProcessHookObject->sql_query_postProcessAction($query);\n\t\t}\n\n\t\treturn $pointer;\n\t}", "function sql_query($query) {\n\t\t// Added to log select queries\n\t\tforeach($this->preProcessHookObjects as $preProcessHookObject) { /* @var $preProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPreProcessHookInterface */\n\t\t\t$preProcessHookObject->sql_query_preProcessAction($query);\n\t\t}\n\n\t\t$pointer = parent::sql_query($query);\n\n\t\t// Added to log select queries\n\t\tforeach($this->postProcessHookObjects as $postProcessHookObject) { /* @var $postProcessHookObject Tx_SandstormmediaPlumber_Hooks_DbPostProcessHookInterface */\n\t\t\t$postProcessHookObject->sql_query_postProcessAction($query);\n\t\t}\n\n\t\treturn $pointer;\n\t}", "public function last(): QueryInterface\n\t{\n\t\tif ($this->isEmpty()) {\n\t\t\treturn new Query();\n\t\t}\n\n\t\treturn $this[$this->count() - 1];\n\t}", "public function last()\n {\n return $this->execute(\n $this->syntax->selectSyntax(get_object_vars($this->order($this->key, 'DESC')->limit(1)))\n );\n }", "public function getLastQueryTime()\n\t{\n\t\treturn strftime($this->last_query_time);\n\t}", "public function getSqlLog(){\n\n $queryLog = DB::getQueryLog();\n\n var_dump($queryLog);\n }", "public function sql () {\n\n return $this->_sql;\n }", "function runQuery()\n\t{\n\t\treturn $this->query;\n\t}", "function query_info()\r\n\t\t{\r\n\t\t\techo \"<u>Your Previous Query Consisted of:</u><br>\";\r\n\t\t\techo \"SQL = '\".$this->last_query[\"sql\"].\"'<br>\";\r\n\t\t\t$temp = ($this->last_query[\"end_time\"] - $this->last_query[\"start_time\"]);\r\n\t\t\t$temp *= 1000;\r\n\t\t\t$temp = number_format($temp, 3);\r\n\t\t\techo \"Time Elapsed: \".$temp.\"(ms)<br>\";\r\n\t\t\techo \"Number of Records: \".$this->numrows.\"<br>\";\r\n\t\t\techo \"Number of Rows Affected: \".$this->affected_rows;\r\n\t\t}", "public function get_sql()\n {\n }", "function _logLastQuery($marca = null){\n $CI =& get_instance();\n log_message('error', $marca.' - '.$CI->db->last_query());\n }", "public function query($sql,$lastID=null){\n \n $sth = $this->conn->prepare($sql);\n $sth->execute();\n $arr = $sth->errorInfo();\n if(is_array($arr) and isset($arr[3])) die($arr[3]);\n \n if($lastID) return $this->conn->lastInsertId();\n else return $sth->rowCount();\n }", "function query($sql)\n\t{\n\t\t$ret = $this->db->query($sql);\n\t\tlog_message('info','SQL Query: ' . $this->db->last_query());\n\t\treturn $ret;\n\t}", "public function getSql() : string {\n return $this->sql;\n }", "function getLastRecord()\n\t{\n\t\t$this->db->select(\"que_Id,answer\");\n\t\t$this->db->limit(3);\n\t\t$this->db->order_by(\"answer_Id\", \"desc\");\n\t\t$query = $this->db->get(\"quiz\");\n\t\treturn $query;\n\t}", "public static function get_query()\n\t{\n\t\treturn self::new_instance_records()->get_query();\n\t}", "protected function get_query($sql) {\n $this->open_link();\n $result = $this->conx->query($sql);\n while ($this->rows[] = $result->fetch_assoc());\n $result->free();\n $this->close_link();\n array_pop($this->rows);\n \n return $this->rows[0];\n }", "public function lastQuery( $format = null )\n {\n if( $format == 'json' )\n return json_encode( $this->_queryLog );\n\n return $this->_queryLog;\n }", "public function getQueries(){\n \treturn $this->_execedQueries;\n }", "public function get_query_log()\n {\n }", "public function Query(){\r\n\t\treturn self::get_query();\r\n\t}", "public function GetSQL()\n\t{\n\t\treturn db_get_select_sql($this->fields, $this->tables, $this->groupby, $this->filters, $this->sortfields, $this->limit);\n\t}", "abstract protected function _getSQL(): String;", "public function lastsave() {\n return $this->returnCommand(['LASTSAVE']);\n }", "public function lastInsert(){\n\t\treturn $this->dbh->lastInsertId();\n\t}", "public function getSql();", "public function getSql();", "public function GetLastQueryElapsedTime()\r\n {\r\n return $this->_LastQueryElapsedTime;\r\n }", "public function getQueryLog() {\n return $this->_log_query;\n }", "public function getSQL();", "public function getSQL(): string\n {\n return $this->getQuery()->getSQL();\n }", "public static function getLastResult() {\n return self::$lastResult;\n }", "function lastID(){\n return pg_last_oid($this->consulta);\n }", "public function getQuery(){\n $sql = \"select %s from %s %s %s %s %s %s\";\n\n return sprintf($sql, $this->param, $this->table,\n empty($this->join) ? '' : implode($this->join),\n empty($this->where) ? '' : 'where '. $this->where,\n empty($this->having)? '' : 'having '. $this->having,\n empty($this->order) ? '' : 'order by '. $this->order,\n empty($this->setOperations) ? '' : implode($this->setOperations)\n );\n }", "public function GetSqlStatement(){\n return $this->sqlStatement;\n }", "static function setLastQuery($newQuery = \"\")\r\n {\r\n $_SESSION[\"last_query\"] = $newQuery;\r\n }", "function query()\n\t{\n\t\treturn $this->query;\n\t}", "public function getQuery($new = false)\n\t{\n\t\treturn $this->sql;\n\t}", "public function getQuerySql() {\n $sql = parent::getQuerySql();\n $connection = $this->model->getMeta()->getConnection();\n\n return $this->parseVariablesIntoSql($sql, $connection);\n }", "public function lastError()\r\n\t{\r\n\t\treturn @db2_stmt_errormsg();\r\n\t}", "public function getSQL()\n {\n if ($this->_sql !== null && $this->_state === self::STATE_CLEAN) {\n return $this->_sql;\n }\n\n $sql = '';\n\n switch ($this->_type) {\n case self::DELETE:\n $sql = $this->getSQLForDelete();\n break;\n\n case self::UPDATE:\n $sql = $this->getSQLForUpdate();\n break;\n\n case self::SELECT:\n default:\n $sql = $this->getSQLForSelect();\n break;\n }\n\n $this->_state = self::STATE_CLEAN;\n $this->_sql = $sql;\n\n return $sql;\n }", "function _getSQL(){\n\t\tif ( !isset($this->sql) ){\n\t\t\t$compiler =& $this->_getCompiler();\n\t\t\t$this->sql = $compiler->compile($this->sql_data);\n\t\t}\n\t\treturn $this->sql;\n\t}", "public function lastError()\r\n\t{\r\n\t\treturn @mssql_get_last_message();\r\n\t}", "public function exec_query($sql = null) {\n\t\t$this->setFoundRows();\n\t\tif($this->debug) {\n\t\t\ttry {\n\t\t\t\t// Execute query\n\t\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t\t//$this->writeQueryInLog($Rs->last_query, debug_backtrace());\n\n\t\t\t\t// $this->query_debugger($Rs->last_query); // Debug queries\n\t\t\t\t\n\t\t\t\t$this->resetVariables(); // reset all variables\t\t\t\t\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$newex = new Exception($e->getMessage());\n\t\t\t\t//echo 'ex :: '.$this->getSQL($this->getFullQuery());exit;\n\t\t\t\t$this->displayException($newex);\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t$this->resetVariables();\t\t\t\n\t\t}\n\t\t\n\t\t$this->query = trim($this->query);\n\t\tif(stripos($this->query, 'INSERT') === 0) {\n\t\t\treturn $this->Connection->getLastInsertedId();\n\t\t} \n\t\telseif(stripos($this->query, 'UPDATE') === 0) {\n\t\t\treturn $Rs;\n\t\t} \n\t\telse {\n\t\t\tif($Rs->RecordCount() == 0)\n\t\t\t\treturn false;\n return $Rs;\n\t\t}\n\t}", "abstract function getSQL();", "public function query( $sql ) {\r\n\t\tif (! $this->conn) {\r\n\t\t\t$this->connect ();\r\n\t\t}\r\n\t\t\r\n\t\t$this->last_link = mysql_query ( $sql, $this->conn );\r\n\t\t$this->last_query = $sql;\r\n\t\t\r\n\t\tif (! $this->last_link) {\r\n\t\t\t$this->log_error ( @mysql_error () );\r\n\t\t\tprint \"<span style='color: red'>SQL error occurred. Log written.</span>\";\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->last_link;\r\n\t}", "public function lastId() {\n\t\tif (is_null($this->lastId)) {\n\t\t\tthrow new Exception('Unable to get last ID - wrong query type');\n\t\t}\n\n\t\treturn $this->lastId;\n\t}", "public function getquery(){\n\t\treturn $this->query;\n\t}", "function oneQuery($sql){\n\t\treturn $this->fetch($this->query($sql))[0];\n\t}", "public function lastAffected()\n {\n if (!empty($this->_queryStats)) {\n foreach (['rows inserted', 'rows updated', 'rows deleted'] as $key) {\n if (array_key_exists($key, $this->_queryStats)) {\n return $this->_queryStats[$key];\n }\n }\n }\n\n return false;\n }", "public function getStatement();", "public function getStatement();", "public function getStatement();", "function runQuery()\r\n\t\t{\r\n\t\tif(!$this->conn)\r\n\t\t\t{\r\n\t\t\t$this->createConnect();\r\n\t\t\t}\r\n\t\tif($this->query)\r\n\t\t\t{\r\n\t\t\t$this->errors=\"\";\r\n\t\t\t$this->query.=\";\";\r\n\t\t\t$this->result = mysql_query($this->query);\r\n\t\t\tif(mysql_affected_rows()>=0)\r\n\t\t\t\t{\r\n\t\t\t\tunset($this->query);\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\techo \"<br>Error:<br>\";\r\n\t\t\t\t$debugging=debug_backtrace();\r\n\t\t\t\tforeach ($debugging as $debug)\r\n\t\t\t\t\t{\r\n\t\t\t\t\techo \"<b>File :</b> \".$debug[\"file\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Line :</b> \".$debug[\"line\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Function :</b> \".$debug[\"function\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Cause :</b> \".mysql_error().\"<br />\";\r\n\t\t\t\t\t}\r\n\t\t\t\techo \"<b>Query :</b> \".$this->query.\"<hr>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\telse\r\n\t\t\t{\r\n\t\t\techo \"<br>-- NULL Query --\";\r\n\t\t\t}\r\n\t\tif (!is_resource($this->result))\r\n\t\t\t{\r\n\t\t\t$this->errors=mysql_error();\r\n\t\t\tif($this->transaction)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->transaction=FALSE;\r\n\t\t\t\t\t$this->query=\"ROLLBACK TRANSACTION\";\r\n\t\t\t\t\t$this->runQuery();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}" ]
[ "0.8119012", "0.81078345", "0.8033009", "0.8032218", "0.801374", "0.80118996", "0.79896545", "0.7987808", "0.7937729", "0.7918277", "0.78318053", "0.7781763", "0.7771511", "0.7737085", "0.7693536", "0.7665586", "0.7626676", "0.7516122", "0.75034904", "0.7333942", "0.72671163", "0.7235683", "0.72355837", "0.7033402", "0.7027249", "0.6945345", "0.6937259", "0.6931408", "0.69287115", "0.67931", "0.6742392", "0.67340434", "0.6724612", "0.6721047", "0.66878045", "0.6655676", "0.6629465", "0.6591511", "0.65769243", "0.6576729", "0.6571398", "0.6538505", "0.65242046", "0.6497534", "0.64922297", "0.64838725", "0.64838725", "0.6467386", "0.64658815", "0.6446627", "0.64457965", "0.6412949", "0.64121485", "0.6384355", "0.6378124", "0.63778794", "0.63553166", "0.6329305", "0.6267094", "0.62642545", "0.6260559", "0.6250111", "0.62214655", "0.6212175", "0.62056786", "0.62036437", "0.62006503", "0.61998427", "0.6196998", "0.6191096", "0.6188675", "0.6188675", "0.6187278", "0.61830753", "0.6165483", "0.615594", "0.6142096", "0.61350304", "0.6132944", "0.6132195", "0.61201084", "0.6110073", "0.60996777", "0.60960805", "0.60818976", "0.60783696", "0.6065404", "0.60606647", "0.6049271", "0.60481435", "0.603842", "0.6036009", "0.6032698", "0.60253483", "0.60201204", "0.601538", "0.601538", "0.601538", "0.6014308" ]
0.6351663
58
showColumns Display the columns for a table (MySQL)
public function showColumns($table) { $result = $this->select("SHOW COLUMNS FROM `$table`", array(), PDO::FETCH_ASSOC); $output = array(); foreach ($result as $key => $value) { if ($value['Key'] == 'PRI') $output['primary'] = $value['Field']; $output['column'][$value['Field']] = $value['Type']; } return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function show_columns() {\n\t\tglobal $wpdb, $utils;\n\t\t$domain = $utils->text_domain;\n\t\t$tables = $wpdb->tables('all');\n\t\tif (!isset($_POST['table'])) {\n\t\t\t$message = __('Table name is not selected.', $domain);\n\t\t\treturn $message;\n\t\t} elseif (!in_array($_POST['table'], $tables)) {\n\t\t\t$message = __('There\\'s no such table.', $domain);\n\t\t\treturn $message;\n\t\t}\telse {\n\t\t\t$table_name = $_POST['table'];\n\t\t\t$results = $wpdb->get_results(\"SHOW COLUMNS FROM $table_name\");\n\t\t\treturn $results;\n\t\t}\n\t}", "public function getTableColumns(){\n\n $show_columns_statement = $this->grammer->compileShowColumns($this);\n return $this->connection->getTableColumns($show_columns_statement);\n\n }", "abstract public function listColumns();", "function listColumns($tablename);", "function show_columns ($table_name) {\n\tglobal $cxn;\n\t$columns_arr = NULL;\n\t\n\t$errArr=init_errArr(__FUNCTION__);\n\ttry\n\t{\n\t\t// Sql String\n\t\t$sqlString = \"SHOW COLUMNS FROM \" . $cxn->real_escape_string($table_name) ;\n\t\t// Bind variables\n\t\t$stmt = $cxn->prepare($sqlString);\n\t\t$stmt->execute();\n\t\t/* Bind results to variables */\n\t\tbind_array($stmt, $row);\n\t\twhile ($stmt->fetch()) {\n\t\t\t$columns_arr[]=cvt_to_key_values($row);\n\t\t}\n\t}\n\tcatch (mysqli_sql_exception $err)\n\t{\n\t\t// Error settings\n\t\t$err_code=1;\n\t\t$err_descr=\"Error showing columns from table: \" . $table_name;\n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t\n\t// Return Error code\n\t$errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn array($errArr, $columns_arr);\n}", "public function showColumns($table = '')\n {\n switch($this->db_type){\n case 'ibm':\n $sql = \"SELECT COLUMN_NAME FROM qsys2.syscolumns WHERE TABLE_NAME = '\".$this->db_prefix.$table.\"'\";\n break;\n case 'mssql':\n $sql = \"SELECT COLUMN_NAME, data_type, character_maximum_length FROM \".\n $this->db_name.\".information_schema.columns WHERE table_name = '\".$this->db_prefix.$table.\"'\";\n break;\n default:\n $sql = 'SHOW COLUMNS FROM `'.$this->db_prefix.$table.'`';\n break;\n }\n\n try{\n $sth = $this->query($sql);\n $result = $sth->fetchAll();\n }catch(PDOException $e){\n $this->error($e->getMessage());\n $result = false;\n }\n ++self::$count;\n\n return $result;\n }", "private function showColumn()\n\t{\n\t\techo '<thead>\n\t\t\t<th></th>';\n\t\t\t\n\t\t\tforeach ($this->col_show as $col)\n\t\t\t\techo '<th>' . $col . '</th>';\n\t\t\n\t\techo '</thead>';\n\t}", "public function summaryColumns();", "public function getTableColumns()\n\t{\n\t}", "public function getColumns()\n\t{\n\t\t\n $result = $this->fetchingData(array(\n 'query' => \"SHOW FULL COLUMNS FROM `$this->table`\"\n ));\n\n return $result;\n\t}", "public function show_columns($database=false, $table){\n\t\t\n\t\t$this->set_db($database);\n\t\t\n\t\tif(is_array($table)){\n\t\t\n\t\t\t$query = array();\n\t\t\t\n\t\t\tforeach($table as $key => $table_name){\n\t\t\t\n\t\t\t\t$query = \"SHOW COLUMNS FROM \" . $table_name . \"\";\n\t\t\t\n\t\t\t\t$result = $this->sql_query($query, 'LISTING TABLE FIELDS');\n\t\t\t\t\n\t\t\t\t$data[$table_name] = $this->fetch_data($result, 'assoc');\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\t$query = \"SHOW COLUMNS FROM \".$table[0].\"\";\n\t\t\t\t\n\t\t\t$result = $this->sql_query($query, 'TABLE FIELDS');\n\t\t\t\n\t\t\t$data = $this->fetch_data($result, 'assoc');\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $data;\n\n\t}", "public function showColumns($tableName){\n $this->debugBacktrace();\n $sql = \"SHOW COLUMNS FROM `$tableName`\";\n $queryObject = $this->_perform_mysql_query($sql);\n\n $rows = array();\n switch ($this->fetchType){\n case \"fetch_object\":\n while ($row = mysqli_fetch_object($queryObject)) {\n $rows[] = $row;\n }\n break;\n case \"fetch_assoc\":\n while ($row = mysqli_fetch_assoc($queryObject)) {\n $rows[] = $row;\n }\n break;\n case \"fetch_array\":\n while ($row = mysqli_fetch_array($queryObject)) {\n $rows[] = $row;\n }\n break;\n case \"fetch_row\":\n while ($row = mysqli_fetch_row($queryObject)) {\n $rows[] = $row;\n }\n break;\n case \"fetch_field\":\n while ($row = mysqli_fetch_field($queryObject)) {\n $rows[] = $row;\n }\n break;\n }\n\n mysqli_free_result($queryObject);\n return $rows;\n }", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "public function getColumns();", "abstract public function tableColumns();", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function previewColumns();", "public function renderColumns () {\n $cols = '';\n\n foreach (self::getColumnsArray() as $key => $num) {\n if ($key == 0) $cols .= \" \";\n\n $cols .= \" $num \";\n }\n\n return $cols;\n }", "public function columns($table_name);", "static function columns($instancia = null) {\n if ($instancia) {\n return fields_of($instancia->_tablename());\n } else {\n return fields_of(self::getInstance()->_tablename());\n }\n }", "public function getColumnsFromTable()\n {\n return Zend_Db_Table::getDefaultAdapter()->describeTable($this->_tableName);\n }", "public function showColumns($table) {\n $result = $this->select(\"SHOW COLUMNS FROM {$table}\", array(), PDO::FETCH_ASSOC);\n\n $output = array();\n foreach ($result as $key => $value) {\n\n if ($value['Key'] == 'PRI')\n $output['primary'] = $value['Field'];\n\n $output['column'][$value['Field']] = $value['Type'];\n }\n\n return $output;\n }", "public static function getColumnNames()\n {\n $class = new static([ ]);\n $result = database()->run('DESCRIBE ' . $class->table);\n\n $columns = [ ];\n foreach ($result->fetchAll(PDO::FETCH_COLUMN) as $column):\n if (in_array($column, $class->hidden)) continue;\n\n $columns[] = $column;\n endforeach;\n\n foreach ($class->functionsToShow as $function)\n $columns[] = $function;\n \n unset($class);\n return $columns;\n }", "public function getColumnsList(){\n return $this->_get(3);\n }", "abstract protected function columns();", "function getColumns($table) {\n return mysql_query(sprintf('SHOW COLUMNS FROM %s', $table), $this->db);\n }", "function get_movie_table_columns()\n{\n\t$db = open_database_connection();\n\t$stmt = $db->prepare(\"DESCRIBE movie\");\n\t$stmt->execute();\n\t$columns = $stmt->fetchAll(PDO::FETCH_COLUMN);\n close_database_connection($db);\n return $columns;\n}", "function db_list_fields($dbh,$tblname){\n \n$res=db_query(\"SHOW COLUMNS FROM {$tblname}\",$dbh);\nif ($res){\n \n return $res;\n}else{\n \n return false;\n}\n}", "public function describeColumns($table, $schema=null){ }", "public function describeColumns($table, $schema=null){ }", "public function get_columns($table){\n return $this->query(\"SHOW COLUMNS FROM {$table}\")->results();\n }", "public function getColumns()\r\n {\r\n }", "function columns($table)\n{\n\treturn $this->drv->columns($table);\n}", "public function getColumnNames();", "static function getColumns()\n {\n }", "function get_columns( ) {\r\n\t\treturn self::mla_manage_columns_filter();\r\n\t}", "public function getTableColumns() {\n return $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n }", "function get_display_columns() {\n return $columns = array('id' => __('id', 'kkl-ligatool'), 'name' => __('name', 'kkl-ligatool'), 'club_id' => __('club', 'kkl-ligatool'), 'season_id' => __('season', 'kkl-ligatool'), 'short_name' => __('url_code', 'kkl-ligatool'),);\n }", "public static function getColumns()\n {\n return array('title', 'bindingId', 'minYear', 'maxYear',\n 'preciseDate', 'placePublished', 'publisher', 'printVersion',\n 'firstPage', 'lastPage');\n }", "function lookup_columns()\n {\n // Avoid doing multiple SHOW COLUMNS if we can help it\n $key = C_Photocrati_Transient_Manager::create_key('col_in_' . $this->get_table_name(), 'columns');\n $this->_table_columns = C_Photocrati_Transient_Manager::fetch($key, FALSE);\n if (!$this->_table_columns) {\n $this->object->update_columns_cache();\n }\n return $this->_table_columns;\n }", "public function admin_table_columns($_columns)\n {\n }", "public function getListColumns(){\n\treturn \"id, codice_categoria, codice, descrizione\";\n}", "public abstract function get_columns($table);", "abstract public function getColNames();", "public function getTableColumns() { return $this->table->getColumns(); }", "public function tableColumns($table,$column);", "public function getShowColumn()\n {\n $arr_result = [];\n foreach ($this->Columns as $key => $value){\n if (!in_array($key, self::HIDDEN_COLUMNS)){\n $arr_result[$key] = $value;\n }\n }\n return $arr_result;\n }", "public function list_columns($table)\n\t{\n\t\t$columns = array();\n\t\tif ($this->db_type == 'mysql')\n\t\t{\n\t\t\t$table_desc = $this->execute(\"DESCRIBE `$table`\");\n\t\t\tforeach ($table_desc as $column)\n\t\t\t{\n\t\t\t\t$columns[] = $column->Field;\n\t\t\t}\n\t\t}\n\t\tif ($this->db_type == 'pgsql')\n\t\t{\n\t\t\t$table_desc = $this->execute(\"select column_name from information_schema.columns where table_name = '{$table}' and table_catalog=current_database();\");\n\t\t\tforeach ($table_desc as $column)\n\t\t\t{\n\t\t\t\t$columns[] = $column->column_name;\n\t\t\t}\n\t\t}\n\t\tif ($this->db_type == 'sqlite')\n\t\t{\n\t\t\t$table_desc = $this->execute(\"PRAGMA table_info('$table')\");\n\t\t\tforeach ($table_desc as $column)\n\t\t\t{\n\t\t\t\t$columns[] = $column->name;\n\t\t\t}\n\t\t}\n\t\treturn $columns;\n\t}", "public static function getColumns()\n {\n return array('libraryId', 'signature', 'summary', 'status', 'userId');\n }", "public function getColumns()\n {\n return array_flip($this->model->getStream()->view_options);\n }", "public function getTableColumns()\n {\n $tableColumns = $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());\n return $tableColumns;\n }", "function getColumns($table){\n $sql = 'SHOW COLUMNS FROM ' . $table;\n $names = array();\n $db = $this->prepare($sql);\n\n try {\n if($db->execute()){\n $raw_column_data = $db->fetchAll();\n\n foreach($raw_column_data as $outer_key => $array){\n foreach($array as $inner_key => $value){\n\n if ($inner_key === 'Field'){\n if (!(int)$inner_key){\n $names[] = $value;\n }\n }\n }\n }\n }\n return $names;\n } catch (Exception $e){\n return $e->getMessage(); //return exception\n }\n }", "public function getColumns() {\n\t\treturn( $this->getTable()->getColumns() );\n\t}", "function get_columns_name($table) {\n $columns_name=null;\n $query = \"SHOW COLUMNS FROM $table\";\n $result = Database::getInstance()->getConnection()->query($query);\n if (!$result){\n $_SESSION['message'] = \"<br>Eroare la get_columns_name\".Database::getInstance()->getConnection()->error;\n $_SESSION['status'] = \"danger\";\n $_SESSION['icon'] = \"exclamation-sign\";\n echo status_baloon();\n die(\"mort!!\");\n }\n while ($row = $result->fetch_row()){\n $columns_name[] =$row[0];\n }\n $result->free_result();\n return $columns_name;\n}", "public function getColumns()\n\t\t{\n\t\t\tstatic $columns = array(\n\t\t\t\t'date_modified', 'date_created', 'cfe_event_id', 'name','short_name'\n\t\t\t);\n\t\t\treturn $columns;\n\t\t}", "public static function columns()\n {\n return exec('/usr/bin/env tput cols');\n }", "public function getColumns(){\n $url = $this->urlWrapper() . URLResources::COLUMN;\n return $this->makeRequest($url, \"GET\", 2);\n }", "public static function columns()\n {\n return filterColumnByRole([\n 'plot_ref' => trans('system.code'),\n 'plot_name' => trans_title('plots'),\n 'user.name' => trans_title('users'),\n 'city.city_name' => trans_title('cities'),\n 'plot_percent_cultivated_land' => sections('plots.cultivated_land'),\n 'plot_real_area' => sections('plots.real_area'),\n 'plot_start_date' => sections('plots.start_date'),\n 'plot_active' => trans('persona.contact.active'),\n 'plot_green_cover' => sections('plots.green_cover'),\n 'plot_pond' => sections('plots.pond'),\n 'plot_road' => sections('plots.road'),\n ],\n $roleFilter = Credentials::isAdmin(),\n $newColumns = ['client.client_name' => trans_title('clients')],//Admits multiple arrays\n $addInPosition = 3\n );\n }", "public function getColumns($table){\n\n\t\t$query = $this->db->prepare(\"DESCRIBE $table\");\n\t\t$query->execute();\n\n\t\t//Returns associative array of column names.\t\n\t\treturn $query->fetchAll(PDO::FETCH_COLUMN);\n\t}", "public function get_columns() {\n\n\t\treturn array(\n\t\t\t'id' \t\t => '%d',\n\t\t\t'name' \t\t => '%s',\n\t\t\t'date_created' \t=> '%s',\n\t\t\t'date_modified' => '%s',\n\t\t\t'status'\t\t=> '%s',\n\t\t\t'ical_hash'\t\t=> '%s'\n\t\t);\n\n\t}", "function getColumns($table, $link = 0) {\n $this->link = $link ? $link : $this->link;\n $q = $this->query(\"SHOW COLUMNS FROM `{$table}`;\", $this->link);\n $columns = array();\n while ($row = $this->fetchArray($q)) $columns[] = $row['Field'];\n $this->freeResult($q);\n return $columns;\n }", "public static function getColumnTitles()\n {\n return array_keys(self::$columns);\n }", "private function table_columns(){\n $column = array();\n $query = $this->db->select('column_name')\n ->from('information_schema.columns')\n ->where('table_name', $this::$table_name)\n ->get($this::$table_name)->result_array();\n //return individual table column\n foreach($query as $column_array){\n foreach($column_array as $column_name){\n $column[] = $column_name;\n }\n }\n return $column;\n }", "public abstract function getColumns($table);", "function showtable()\r\n {\r\n $c=$this->connector();\r\n $r='';\r\n $r.=$this->logout();\r\n $r.=\"<div id='isi'>\r\n <center><a href='?act=mysql'>Show Database</a></center><br />\r\n <table width=50% align='center' class='xpltab' cellspacing=0 ><tr><th style='border-left:thin solid #f00;'>Table</th><th>Column count</th><th>Dump</th><th>Drop</th></tr>\";\r\n $db=$_GET['db'];\r\n $query=$this->qe(\"SHOW TABLES FROM $db\");\r\n while($data=mysql_fetch_array($query))\r\n {\r\n\r\n $iml=$this->qe(\"SHOW COLUMNS FROM $db.$data[0]\");\r\n $h=(mysql_num_rows($iml))?mysql_num_rows($iml):0;\r\n $r.= \"<tr><td><a href='?act=showcon&db=$db&table=$data[0]'>$data[0]</td><td>$h</td><td><a href='?act=downdb&db=$db&table=$data[0]'>Dump</a></td><td><a href='?act=dropdb&db=$db&tbl=$data[0]'>Drop</a></td></tr>\";\r\n \r\n }\r\n \r\n $r.= \"</table>\".$this->sqlcommand().\"</div>\";\r\n return $r;\r\n $this->free($query);\r\n $this->free($iml);\r\n mysql_close($c);\r\n }", "function getColumnas($conn, $exitosa) {\n\t\tif ($exitosa){\t\t\t\n\t\t\t$sql = 'SELECT c1_int, c2_int FROM #php_test_table';\n\t\t\t\n\t\t\techo '<table border=1 >';\t\t\n\t\t\tprint \"<tr>\";\n\t\t\tprint \"<td><b> c1_int </b></td>\";\n\t\t\tprint \"<td><b> c2_int </b></td>\";\n\t\t\tprint \"</tr>\";\n\t\t\tforeach ($conn->query($sql) as $row) {\n\t\t\t\tprint \"<tr>\";\n\t\t\t\tprint \"<td>\" . $row['c1_int'] . \"</td>\";\n\t\t\t\tprint \"<td>\" . $row['c2_int'] . \"</td>\";\n\t\t\t\tprint \"</tr>\";\n\t\t\t}\n\t\t\techo '</table>';\n\t\t}\n\t}", "function get_columns() {\n\t\t$columns = [\n\t\t\t'jumlahHTTPS' => 'Jumlah Domain HTTPS',\n\t\t\t'totalDomain' => 'Total Domain', \n\t\t\t'jumlahCert' => 'Jumlah Sertifikat Aktif',\n\t\t\t'totalCert' => 'Total Sertifikat'\n\t\t];\n\n\t\treturn $columns;\n\t}", "abstract public function getColsFields();", "public static function getColumns()\n {\n $type = static::getType();\n return $type::getColumns();\n }", "public function get_columns()\n {\n $columns = array(\n 'cb' => '<input type=\"checkbox\" />',\n 'perusahaan' => 'Name',\n 'total_ken' => 'Total Kendaraan',\n 'total_pen' => 'Total Pengemudi',\n 'tanggal' => 'Created Date' \n );\n return $columns;\n }", "function listColumns($args) {\n\n $conn = mysql_pconnect($args['server'], $args['username'], $args['password']);\n if($conn === false) {\n throw 'Connection failed.';\n }\n\n $results = mysql_list_fields($args['database'], $args['table'], $conn);\n $columns = array();\n while( $row = mysql_fetch_assoc($results) ) {\n $columns[] = $row;\n }\n\n return array( 'columns' => $columns );\n }", "function get_columns() {\n\n\t\treturn $columns = array(\n\t\t\t'cb'\t\t=> '<input type=\"checkbox\" />', //Render a checkbox instead of text\n\t\t\t'title'\t\t=> 'Title',\n\t\t\t'rating'\t=> 'Rating',\n\t\t\t'director'\t=> 'Director'\n\t\t);\n\t}", "public function columns()\n {\n return $this->get('columns', []);\n }", "public function get_columns() {\n\n $instance = Envira_Gallery_Common::get_instance();\n return $instance->get_columns();\n\n }", "public function get_columns() {\n\t\treturn array(\n\t\t\t'id' => '%d',\n\t\t\t'user_id' => '%d',\n\t\t\t'username' => '%s',\n\t\t\t'name' => '%s',\n\t\t\t'email' => '%s',\n\t\t\t'product_count' => '%d',\n\t\t\t'sales_count'\t => '%d',\n\t\t\t'sales_value'\t => '%f',\n\t\t\t'status'\t\t => '%s',\n\t\t\t'notes' => '%s',\n\t\t\t'date_created' => '%s',\n\t\t);\n\t}", "abstract public function getCols();", "function getColumns() {return $this->_columns;}", "public function getColumns()\n\t{\n\t\treturn $this->columns;\n\t}", "public function getColumns()\n\t{\n\t\treturn $this->columns;\n\t}", "public function form_columns($form_id){\n $columns = 0;\n \treturn $columns;\n\n }", "public function columns()\n\t{\n\t\treturn $this->columns;\n\t}", "public function columns()\n\t{\n\t\treturn $this->columns;\n\t}", "public function getColumns()\n\t{\n\t\tstatic $columns = array(\n\t\t\t'stat_track_id',\n\t\t\t'application_id',\n\t\t\t'stat_name_id',\n\t\t\t'date_created',\n\t\t);\n\t\t\n\t\treturn $columns;\n\t}", "function get_fields_in_table( ){\n\t\t\t\t $result = mysql_query(\"SHOW COLUMNS FROM \".$this->db.\".\".$this->table.\"\");\n\t\t\t\tif (!$result) {\n\t\t\t\t echo 'Could not run query: ' . mysql_error();\n\t\t\t\t exit;\n\t\t\t\t}\n\t\t\t\tif (mysql_num_rows($result) > 0) {\n\t\t\t\t while ($row = mysql_fetch_assoc($result)) {\n\t\t\t\t \n\t\t\t\t //$a_fields[]=$row;\n\t\t\t\t $a_fields[]=$row['Field'].\" | \".$row['Type'];\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\treturn $a_fields;\n\t\t\t }", "public function get_columns()\n {\n $columns = array(\n 'display_title' => 'Title',\n 'description' => 'Description',\n 'shortcode' => 'PUA Item Shortcode',\n 'tags' => 'WP Tags'\n );\n\n return $columns;\n }", "public function getColumnsQuery(): string\n {\n return \"SELECT * FROM information_schema.columns\n WHERE table_schema = 'public'\n AND table_name = 'orders'\";\n }", "public function getSqlStatments() \n\t{\n\t\tfor ($i=0; $i < count($this->array_result); $i++) { \n\t\t\t$this->array_sql[] = \"SHOW COLUMNS FROM \".$this->array_result[$i].\"\";\n\t\t}\n\t\treturn $this->array_sql;\n\t}", "public function getColumns()\n {\n return $this->allColumns ?: $this->defineListColumns();\n }", "function getTableFields($table_name)\n\t{\n\t\t$query = \"SHOW COLUMNS FROM $table_name\";\n\t\t$rs = $this->db->query($query);\n\t\treturn $rs->result_array();\n\t}", "function getTableFields($table_name)\n\t{\n\t\t$query = \"SHOW COLUMNS FROM $table_name\";\n\t\t$rs = $this->db->query($query);\n\t\treturn $rs->result_array();\n\t}" ]
[ "0.77584386", "0.77173764", "0.76583326", "0.76190215", "0.76125276", "0.7547015", "0.7492165", "0.7354916", "0.7257143", "0.72332", "0.72037095", "0.7197408", "0.7194069", "0.7194069", "0.7194069", "0.7194069", "0.7194069", "0.7194069", "0.7194069", "0.7128429", "0.7024742", "0.7024742", "0.7024742", "0.7024742", "0.7023309", "0.7023309", "0.69803226", "0.693556", "0.69098896", "0.6895396", "0.68832046", "0.68704164", "0.68211836", "0.6803516", "0.67731696", "0.6770771", "0.67578495", "0.6757484", "0.6739522", "0.6739522", "0.67294925", "0.67204666", "0.67078525", "0.6706948", "0.668228", "0.6679732", "0.66724664", "0.6664975", "0.6633734", "0.6628228", "0.661178", "0.66075295", "0.6606266", "0.6570658", "0.6566792", "0.6548495", "0.6544224", "0.6540872", "0.652561", "0.65164995", "0.65105635", "0.64750504", "0.6466507", "0.6465157", "0.64567983", "0.64489686", "0.6433226", "0.6406502", "0.63996124", "0.63921684", "0.63912266", "0.6391183", "0.6389434", "0.6388131", "0.6387507", "0.6377512", "0.6374577", "0.63665944", "0.63663435", "0.6365695", "0.63638973", "0.63637745", "0.636333", "0.6357148", "0.6339138", "0.6335369", "0.63341194", "0.63278127", "0.63278127", "0.63243204", "0.6321607", "0.6321607", "0.63067645", "0.6294225", "0.62918836", "0.6290326", "0.62872356", "0.62863046", "0.6286183", "0.6286183" ]
0.6908952
29
If it's an SQL error
private function _handleError($result, $method) { if ($this->errorCode() != '00000') throw new \Exception("Error: " . implode(',', $this->errorInfo())); if ($result === false) { echo $this->errorInfo(); $error = $method . " did not execute properly"; throw new \Exception($error); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sql_error() {}", "public function sql_error() {}", "public function sql_errno() {}", "public function sql_errno() {}", "function checkForDbError($preparedStatement) {\n\t\t\t$error = $preparedStatement->errorInfo();\n\t\t\tif ($error != null && count($error) > 0 && $error[0] > 0)\n\t\t\t\tdie(\"Insert failed on: $error[2]\");\n\t}", "public function sql_error()\n {\n return $this->link->error;\n }", "public function isError () {\n return $this->c2mysql->isError();\n }", "function checkSQL($db_link, $sqlquery){\n\t\tif (!$sqlquery) die ('SQL-Statement failed: '.mysqli_error($db_link));\n\t}", "public function sql_errno()\n {\n return $this->link->errno;\n }", "function msql_error()\n{\n}", "function query_error_check($passed_result, $passed_query, $note=\"\") {\n\tif (!$passed_result) {\n\t\thtml_header('HI Asset DB - Error','');\n\t\tinclude(\"top_menu.php\");\n\t\techo \"<h2>Problem with query - \" . $note . \"</h2>\\n\";\n\t\techo \"<pre>\" . $query . \"\\n\";\n\t\techo pg_last_error();\n\t\techo \"</pre></body></html>\\n\";\n\t\texit();\n\t}\n\treturn;\n}", "function sql_error($dbh=NULL)\n {\n global $SQL_DBH;\n $db = (!is_null($dbh) ? $dbh : $SQL_DBH);\n if ( is_object($db) )\n $error = $db->errorInfo();\n else\n $error = array('Handle is not object','','');\n if ($error[0] != '00000') {\n return $error[0].'-'.$error[1].' '.$error[2];\n }\n else return '';\n }", "public static function HasDatabaseError($data) {\n try {\n if ( empty($result) ) return false; // haven't error\n // Check SQL error\n if ( isset($result[0][0]['error_typ']) && $result[0][0]['error_typ'] != 0 ) {\n // SQL Exception\n if ( $result[0][0]['error_typ'] == 999 ) throw new \\Exception($result[0][0]['remark']);\n // Logic error\n return true;\n }\n return false;\n }\n catch(Exception $e) {\n throw $e;\n }\n }", "function error($err=''){\n\t\tif(!$this->Id_Connection){\n\t\t\treturn @pg_last_error() ? @pg_last_error() : \"[Error Desconocido en PostgreSQL $err]\";\n\t\t}\n\t\treturn pg_last_error($this->Id_Connection);\n\t}", "function cSsql_write_error($sql_query_result)\r\n{\r\n if (!$sql_query_result)\r\n {\r\n return_error('mysql', mysql_errno(), mysql_error());\r\n //echo('<error type=\"mysql\" no=\"'.mysql_errno().'\">'.mysql_error().'</error>');\r\n }\r\n return !$sql_query_result;\r\n}", "protected function error()\n\t{\t\t\n\t\tif(self::$arrDbConf[$this -> databaseName] !== 1)\n\t\tthrow new SystemException('Không tồn tại con trỏ database!');\n\t\telseif($this -> tableName ==='')\n\t\tthrow new SystemException('Không tồn tại tên bảng!');\n\t\telse\n\t\treturn true;\n\t}", "protected function _error($sql)\n\t{\n\t\t$params = compact('sql');\n\t\treturn $this->_filter(__METHOD__,\n\t\t\t\t\t\t\t $params,\n\t\t\tfunction ($self, $params) {\n\t\t\t\t$sql = $params['sql'];\n\t\t\t\tlist($code, $error) = $self->error();\n\t\t\t\tthrow new QueryException(\"{$sql}: {$error}\", $code);\n\t\t\t});\n\t}", "public function lastDBError() {\n\t\t\t// Connect to the database\n\t\t\t$connection = $this->openConnection();\n\t\t\treturn $connection->error;\n\t\t}", "private static function handleError($sql)\n\t{\n\t\t\n\t\t/*\n\t\tif(some condition ie. \"on development server\")\n\t\t{\n\t\t\techo '<div style=\"font-weight:bold; white-space:pre; border:1px dashed red;\"><span style=\"color:blue;\">' . $sql . '</span><br/>gave an error of: <span style=\"color:red;\">' . self::$link->error . '</span></div>';\n\t\t}\n\t\t*/\n\t\t\n\t\tlog_error($sql);\n\t}", "function database_error()\n {\n\t return mysql_error($this->database_connection);\n\t}", "public function lastError()\r\n\t{\r\n\t\treturn @db2_stmt_errormsg();\r\n\t}", "function checkError($db, $ret, $string){\n\t\tif(!$ret){\n\t echo pg_last_error($db);\n\t } else {\n\t echo $string;\n\t }\n\t}", "function die_if_sql_failed($result, $link, $data, $sql) // Colorize: green\n { // Colorize: green\n if (!$result) // Colorize: green\n { // Colorize: green\n $error_details = \"SQL Failed: \" . $sql . \" Error: \" . $link->error; // Colorize: green\n error_log($error_details); // Colorize: green\n // Colorize: green\n db_disconnect($link); // Colorize: green\n // Colorize: green\n $data[\"message\"] = \"Database error\"; // Colorize: green\n $data[\"details\"] = $error_details; // Colorize: green\n // Colorize: green\n die(json_encode($data)); // Colorize: green\n } // Colorize: green\n }", "function check_db_error($obj, $errmsg = '##Database Error##')\n {\n if ($this->isError($obj))\n $this->abort($errmsg, ': ', mysql_error());\n }", "protected function db_error()\n {\n return mysqli_error($this->db);\n }", "public function isQueryExceptions()\n {\n return $this->getAttribute(\\PDO::ATTR_ERRMODE) == \\PDO::ERRMODE_EXCEPTION;\n }", "public function error() {\n\t\tif (!$this->connection) return @pg_last_error();\n\t\treturn pg_last_error($this->connection);\n\t}", "public function isError()\n {\n return self::dbLink;\n }", "function guardar($sql)\n {\n $exit = false;\n $connection = $this->return_connection();\n $result = $connection->query($sql);\n if ($connection->affected_rows > 0) {\n $exit = true;\n }\n return $exit;\n }", "protected function checkInvalidSqlModes() {}", "function _sql_error()\n\t{\n\t\tif (!$this->dbh)\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'message'\t=> @mysqli_connect_error(),\n\t\t\t\t'code'\t\t=> @mysqli_connect_errno()\n\t\t\t);\n\t\t}\n\n\t\treturn array(\n\t\t\t'message'\t=> @mysqli_error($this->dbh),\n\t\t\t'code'\t\t=> @mysqli_errno($this->dbh)\n\t\t);\n\t}", "public function error()\n {\n return mysql_error($this->mysql);\n }", "function error($sql) {\n\tif (defined('DEBUG')) {\n\t\tdie($sql);\n\t}\n\theader('Content-Type: application/json');\n\tdie('{\"result\":\"error\"}');\n}", "private function runPrepStmtChkErr(&$stmt) {\n // Execute the query\n if($stmt->execute()) {\n return true;\n }\n\n // Print error if something goes wrong\n echo \"\\nPDOStatement::errorInfo():\\n\";\n $err_arr = $stmt->errorInfo();\n print_r($err_arr);\n\n return false;\n }", "function db_error($query, $errno, $error) { \n die('<font color=\"#000000\"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color=\"#ff0000\">[STOP]</font></small><br><br></b></font>');\n }", "function executeSQL($sql) {\n if(empty($sql))\n $res = 0; // Error in connection or SQL clausule.\n if (!($res = $this->query($sql))) {\n $res = 0; //Error occurred\n }\n return $res;\n }", "protected function _getErrorMessage()\n {\n return pg_last_error($this->conn_id);\n }", "function goSQL($sql) {\n\t\t$res = $this->mysqli->query ( $sql );\n\t\t$err = $this->mysqli->connect_error;\n\t\t$this->errorInfo = $this->mysqli->error;\n\t\tif (! $err)\n\t\t\treturn $res;\n\t\telse\n\t\t\treturn false;\n\t}", "function error($err=''){\n\t\tif(!$this->id_connection){\n\t\t\treturn @pg_last_error() ? @pg_last_error().$err : \"[Error Desconocido en PostgreSQL \\\"$err\\\"]\";\n\t\t}\n\t\t$this->last_error.= $err;\n\t\t$this->log($this->last_error, Logger::ERROR);\n\t\treturn pg_last_error($this->id_connection).$err;\n\t}", "function errortrap_odbc($conn, $statement, $values) {\n if(!$rs = odbc_execute($statement, $values)) {\n echo \"<br/>\" . odbc_errormsg($conn);\n }\n return $rs;\n}", "function logSQLerror($sqlStatement, $type, $errorFromSQLserver){\n\tcheckErrorTabelExists();\n\t\n\t$insert = new insert(\"INSERT INTO \" . ERROR_SQL_TABLE . \"(`sql`, `type`, uri, userIP, errorMsg, getVars, postVars, `date`) VALUES (\".\n\t\t\t\t\t\t prep($sqlStatement, \"text\"). \",\" .\n\t\t\t\t\t\t prep($type, \"text\") . \",\" .\n\t\t\t\t\t\t prep($_SERVER['REQUEST_URI'], \"text\"). \",\" .\n\t\t\t\t\t\t prep($_SERVER['REMOTE_ADDR'], \"text\"). \",\" .\n\t\t\t\t\t\t prep($errorFromSQLserver, \"text\") . \",\" .\n\t\t\t\t\t\t prep(getGETvars(), \"text\") . \",\" .\n\t\t\t\t\t\t prep(getPOSTvars(), \"text\") . \",\" .\n\t\t\t\t\t\t \"CURRENT_TIMESTAMP)\");\n\t\t\t\t\t\t \n\techo $errorFromSQLserver;\n}", "function error()\n {\n $_error = isset($this->sqlQUery) ? $this->sqlQUery->error() : $this->_error;\n $_error = isset($this->_query) ? $this->_query->error() : $this->_error;\n return $_error;\n }", "private function isExternalDatabaseError()\n {\n $db = new \\mysqli($this->clone->databaseServer, $this->clone->databaseUser, $this->clone->databasePassword, $this->clone->databaseDatabase);\n if ($db->connect_error) {\n return true;\n }\n\n return false;\n }", "public function error()\r\n\t{\r\n\t\treturn mysqli_error($this->link);\r\n\t}", "function _validate($sql)\n {\n $ret = $this->_validateSQL($this->service_link, $this->session_data,\n $sql, $this->output_type);\n return $ret;\n }", "function check_results($results) {\n global $dbc;\n if($results != true)\n echo '<p>SQL ERROR = ' . mysqli_error( $dbc ) . '</p>' ; \n}", "public function get_db_error()\n\t{\n\t\t$db_error = $this->db->error();\n\n\t\t$result['status'] = false;\n\t\t$result['data'] = $db_error['message'];\n\n\t\treturn $result;\n\t}", "protected function printSqlCheck() {}", "public function error() {\n\t\t$connection = $this -> connect();\n\t\treturn $connection -> error;\n\t}", "public function lasterror(){\n\t\treturn mysqli_error($this->connection);\t\n\t}", "function _db_errno($link = NULL) {\n\treturn @mysql_errno($link);\n}", "public function getError(){\n return $this->sqli->error;\n }", "function DieWithBadSql($loc, $sql)\n{\n DieWithMsg($loc, array(\"SQL Querry Failure!\", \"SQL=\" . $sql));\n}", "public function hasError();", "public function hasError();", "public function hasError();", "public function hasError();", "public function is_error()\n {\n }", "protected function errorCheck($query) : void\n {\n $info = $query->errorInfo();\n\n if ($info[0] !== \\PDO::ERR_NONE) {\n die('We have : ' . $info[2]);\n }\n }", "private function error()\n {\n // Throw an exception, as the query failed\n throw new QueryExecutionException('Mysqli error '.$this->client->errno.': '.$this->client->error);\n }", "abstract public function query($sql, $errorLevel = E_USER_ERROR);", "public function isError();", "public function lastError()\r\n\t{\r\n\t\treturn @mssql_get_last_message();\r\n\t}", "function sql_check($query)\n\t{\n $stmt = prepare($query);\n $return = $stmt->rowCount();\n return $return;\n\n\t\t//sql_connect();\n\t\t//global $defaultdb;\n\t\t//$return = $defaultdb->check($query);\n\t\t//return $return;\n\t}", "function db_driver_error()\n{\n global $_db;\n\n return pg_result_error($_db['resource'][$_db['target']]['dbh']);\n}", "function db_error() {\n\t$DB = DB::DB()->getLink();\n\treturn $DB->error;\n}", "public function lastError(){\n $error = '';\n \n if ($this->connection){\n $error = mysql_error( $this->connection );\n }\n \n return $error;\n }", "function _db_error($link = NULL) {\n\treturn @mysql_error($link);\n}", "public function isError() {}", "function sql_check($query) {\n\tsql_connect();\n\tglobal $defaultdb;\n\t$return = $defaultdb->check($query);\n\treturn $return;\n}", "function check_results($results) {\r\n global $dbc;\r\n\r\n if($results != true)\r\n echo '<p>SQL ERROR = ' . mysqli_error( $dbc ) . '</p>' ; \r\n}", "function querySQL($sql) {\n die ('unimplemented: '.__CLASS__.'::'.__FUNCTION__.' ('.__LINE__.':'.__FILE__.')');\n }", "function check_results($results) {\n global $dbc;\n\n if($results != true)\n echo '<p>SQL ERROR = ' . mysqli_error( $dbc ) . '</p>' ;\n}", "function check_results($results) {\n global $dbc;\n\n if($results != true)\n echo '<p>SQL ERROR = ' . mysqli_error( $dbc ) . '</p>' ;\n}", "function no_error(){\n\t\tif(!$this->id_connection){\n\t\t\treturn false;\n\t\t}\n\t\treturn \"0\"; //Codigo de Error?\n\t}", "function pm_die_if_error( $database_object ) {\n\n $newline = \"\\n\";\n\n if( DB::isError( $this->$database_object ) ) {\n\n echo $newline . '<br><br>' . $newline;\n\n if( $this->debug ) {\n echo 'Last recorded statement: ' . $this->statement;\n echo $newline . '<br><br>' . $newline;\n die ( $this->$database_object->getMessage() . '<br>' . $newline );\n }\n else # try not to give a potential hacker any useful info\n die ( 'An error has occurred.' . '<br>' . $newline );\n }\n }", "public function sql_failed($sql, $line, $file, $print=false) {\n $str = _QUERYERR . \": \" . htmlentities($sql)\n .\"<br/>\"\n . mysql_error($this->con) . \" \"\n . _ERRFROM . \" \" . $file . \" \" . _INLINE . \" \" . $line\n . Content::getLineShift();\n if($print) {\n echo $str;\n }\n return $str;\n }", "function check_results($results) {\n global $dbc;\n\n if($results != true)\n echo '<p>SQL ERROR = ' . mysqli_error( $dbc ) . '</p>' ;\n\n\n}", "function error_number()\n\t{\n\t\treturn $this->_mysql_errno;\n\t}", "function dbError() {\n exit(\"Error connecting to the database\");\n}", "function q($sql,$conn) {\n\t$dev = FALSE;\n\n\t$res =& $conn->query($sql);\n\tif(PEAR::isError($res)) {\n\t\tif($dev) {\n\t\t\techo $res->getMessage().'<br />';\n\t\t\techo '<pre>';\n\t\t\tprint_r($conn->dsn);\n\t\t\techo '</pre>';\n\t\t}\n\t\treturn FALSE;\n\t} else {\n\t\treturn $res;\n\t}\n}", "function get_last_error($conn) {\n return mysqli_error($conn);\n}", "function db_errorno($db_link) {\n return mysqli_errno($db_link);\n}", "protected function Query($sql) { \n if ((empty($sql)) || (empty($this->CONNECTION))) { \n $this->ERROR_MSG = \"\\r\\n\" . \"SQL Statement is <code>null</code> - \" . date('H:i:s'); \n $this->debug(); \n return false; \n } else { \n $conn = $this->CONNECTION; \n $results = mysql_query($sql,$conn); \n if (!$results) { \n $this->ERROR_MSG = \"\\r\\n\" . mysql_error().\" - \" . date('H:i:s'); \n $this->debug(); \n return false; \n } else { \n return true; \n } \n } \n }", "public function testErrornousNoResultSqlQuery() {\r\n $this->setExpectedException('Exception', 'Error in query: errornous sql query');\r\n $this->getPersistenceAdapter()->executeNoResultQuery('errornous sql query');\r\n }", "function SM_dbErrorCheck($rh, $obj=NULL, $fatal=true) {\n\n global $SM_siteManager, $SM_develState;\n\n if (isset($SM_siteManager)) {\n return $SM_siteManager->errorHandler->dbErrorCheck($rh, $obj,$fatal);\n }\n\n if (empty($rh)) {\n\n $msg = \"Database Query Error\";\n\n $lastid = $GLOBALS['SM_LAST_DB_ID'];\n if (empty($lastid))\n $lastid = 'default';\n \n if ($SM_develState && isset($this->dbHL[$lastid])) {\n $edata = $this->dbHL[$lastid]->errorInfo();\n $msg .= $edata[2];\n $msg .= ' <br>Query Was: ['.$this->dbHL[$lastid]->lastQuery.']';\n }\n\n if ($fatal) {\n SM_fatalErrorPage($msg,$obj);\n }\n else {\n // log error\n SM_debugLog($msg,$obj);\n // return\n return true;\n }\n\n }\n\n return false;\n\n}", "public function testErrornousSingleResultSqlQuery() {\r\n $this->setExpectedException('Exception', 'Error in query: errornous sql query');\r\n $this->getPersistenceAdapter()->executeSingleResultQuery('errornous sql query');\r\n }", "public function isError() {\n\t\t// Evaluates errors based on the signal variable.\n\t\tif( $this->connect_error ) { return true; }\n\t\t\n\t\t// Evaluate MySQL errors\n $error = $this->mysqli->error;\n if ( empty($error) )\n return false;\n else\n return true;\n\t}", "function db_error() {\n $connection = db_connect();\n $error = $connection->error;\n\n return $error;\n}", "function lastErrNo(){\n if ( $this->connection ){\n return mysql_errno( $this->connection );\n } else {\n return mysql_errno();\n }\n }", "function no_error(){\n\t\tif(!$this->Id_Connection){\n\t\t\treturn false;\n\t\t}\n\t\treturn \"0\"; //Codigo de Error?\n\t}", "function runMyQuery($sql){\n\tif(!mysqli_query($GLOBALS['conn'], $sql)){\n\t\tthrow new Exception(\"The following query did not succeed: \".$sql.\"\\n Because:\".$GLOBALS['conn']->error.\"\\n\");\n\t}\n}", "public function error()\n {\n return @mysqli_error();\n }", "protected function checkDbErrors($query) {\r\n if ($this->connection->errno) {\r\n switch ($this->connection->errno) {\r\n case 1062:\r\n $this->error->setError(TXT_ERROR_DUPLICATE_ENTRY);\r\n break;\r\n case 0:\r\n $this->error->setError(\"ERROR UNKNOWN\");\r\n\r\n default:\r\n $error = \"MySQL error \" . $this->connection->errno . \": \" .\r\n $this->connection->error . \"\\n<br><br>\\n$query\\n<br>\";\r\n $this->error->setError($error);\r\n break;\r\n }\r\n\r\n return TRUE;\r\n }\r\n $this->error->setError(\"No errors.\");\r\n return FALSE;\r\n }", "public function getLastError()\n {\n if (null !== $this->connection()) {\n $message = sprintf('%s (%i)', odbc_errormsg($this->connection()), odbc_error($this->connection()));\n return $message;\n }\n }", "private function throw_sql_exception($class)\r\n {\r\n\t\t$errno = mysqli_errno($this->cn); $error = mysqli_error($this->cn);\r\n\t\t$msg = $error.\"<br /><br /><b>Error number:</b> \".$errno;\r\n throw new Exception($msg);\r\n }", "public function error() {\n $connection = $this -> connect();\n return $connection -> error;\n }", "function log_pdo_db_error ( $php_self = '', $call_id = 0, $db = null, $sql = '' , $params = '' , $method_name = '', $call_style = '', $error = '' ) {\n\t\tif ( !$db ) {\n\t\t\t$db_connect_result = pdo_db_connect ();\n\t\t\tif ( $db_connect_result['rc'] == '1' ) {\n\t\t\t\t$db = $db_connect_result['db'];\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} //!$db\n\t\t\n\t\t$params = serialize( $params );\n\t\t$error_sql = \"INSERT INTO tbl_db_errors ( php_self, call_id, sql_query, params, method_name, call_style, member_id, error ) VALUES ( ?,?,?,?,?,?,?,? )\";\n\t\t$error_params = array( $php_self, $call_id, $sql, $params, $method_name, $call_style, NULL, $error );\n\t\t$stmt = $db->prepare( $error_sql );\n\t\t$stmt->execute( $error_params );\n\t\t$result = $stmt-> rowCount();\n\t\treturn true;\n\t}", "public function getLastError() {\n\t\tif (null !== $this->connection) {\n\t\t\t$message = sprintf('%s (%i)', odbc_errormsg($this->connection), odbc_error($this->connection));\n\t\t\treturn $message;\n\t\t}\n\t}", "public function valid()\n {\n throw new PDOException('valid() method is not implemented for Oci8PDO_Statement');\n }", "function pdo_errno($link=NULL) {\r\n $error = pdo_handle($link)->errorInfo();\r\n return $error[1];\r\n }" ]
[ "0.8199801", "0.8199801", "0.7653301", "0.7653301", "0.7583652", "0.7474405", "0.70926964", "0.6992399", "0.6965708", "0.6948633", "0.6935942", "0.6901283", "0.68952274", "0.6846561", "0.6809353", "0.6786902", "0.67550683", "0.66940135", "0.668804", "0.6672027", "0.65992254", "0.6585902", "0.65815187", "0.65617555", "0.6550033", "0.65409046", "0.6531445", "0.65115494", "0.6505098", "0.6482305", "0.6467252", "0.6455978", "0.64487416", "0.6443539", "0.64410615", "0.6396327", "0.6363301", "0.6344908", "0.63366854", "0.63223475", "0.6313514", "0.6304012", "0.6300122", "0.62977266", "0.6287209", "0.62784505", "0.62733716", "0.62663746", "0.62637436", "0.62631947", "0.62629753", "0.62612355", "0.6248733", "0.62447155", "0.62447155", "0.62447155", "0.62447155", "0.6242168", "0.62387705", "0.6234001", "0.62108976", "0.62083966", "0.61987", "0.61923546", "0.61916137", "0.6184111", "0.6175945", "0.61753464", "0.6165494", "0.6162632", "0.61596096", "0.61528915", "0.61527014", "0.61527014", "0.6128346", "0.6125296", "0.61231875", "0.61207646", "0.61203384", "0.6117821", "0.61111474", "0.61106247", "0.61097986", "0.6108527", "0.61062276", "0.6103126", "0.61018085", "0.60996795", "0.6097163", "0.60925615", "0.6073088", "0.6068263", "0.6037617", "0.60370606", "0.6033834", "0.60315406", "0.6031087", "0.60278493", "0.60146517", "0.6005522", "0.5999239" ]
0.0
-1
LISTS MODEL DATA INTO A TABLE
function index( $page = 0 ) { $this->model_group->pagination( TRUE ); $data_info = $this->model_group->lister( $page ); $fields = $this->model_group->fields( TRUE ); $this->template->assign( 'pager', $this->model_group->pager ); $this->template->assign( 'group_fields', $fields ); $this->template->assign( 'group_data', $data_info ); $this->template->assign( 'table_name', 'group' ); $this->template->assign( 'template', 'list_group' ); $this->template->display( 'frame_admin.tpl' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function populateDummyTable() {}", "protected function tableModel()\n {\n }", "public function listTable()\n {\n // Searching the data\n $vehicles = Vehicle::orderBy('id', 'ASC')\n ->get();\n\n // Setting the list in $data array\n $data = [\n 'vehicles' => $vehicles,\n ];\n\n //dd($data);\n\n return $data;\n }", "public function run()\n {\n foreach (range(1,25) as $index) {\n \t$table = new Table();\n \t$table->number_of_seats=6;\n \t$table->table_name = 'Table '.$index;\n \t$table->room_id = 1;\n \t$table->table_type_id = 2;\n $table->width = 6;\n \t$table->length = 6;\n \t$table->save();\n \n }\n }", "private function prepareTables() {}", "protected function getCleanableTableList() {}", "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 }", "protected function populateTable() {\n\t\t$query = \"\n\t\tINSERT INTO `items` VALUES (1, 'Candy', 'Crush', '1924 Sucka Drive', 'Stripper');\n\t\tINSERT INTO `items` VALUES (2, 'John', 'Smith', '9999 The Way', 'Unemployeed');\n\t\t\";\n\t\t$this->PDO->query($query);\n\t}", "private function createDummyTable() {}", "public function listTable()\n {\n // Searching the data\n $places = Place::orderBy('id', 'ASC')\n ->get();\n\n // Setting the list in $data array\n $data = [\n 'places' => $places,\n ];\n\n //dd($data);\n\n return $data;\n }", "protected function setupListOperation()\n {\n CRUD::column('key')->label('ID key')->type('text');\n CRUD::column('name')->label('Nom')->type('text')->limit(200);\n }", "public function fillOutDb()\n {\n /* Fill out the Contacts table. BatchInsert is a good idea for that */\n $this->batchInsert('Contacts', ['name', 'surname', 'description'], self::InitialContacts);\n\n /* Prepare array for batchInsert request at first */\n $list = [];\n foreach(self::InitialPhoneNumbers as $name => $numbers){\n $query = new \\yii\\db\\Query();\n $contact_id = $query->select('id')->from('Contacts')->where(['name' => $name])->one();\n foreach($numbers as $number){\n $list[] = ['number' => $number, 'contact_id' => $contact_id['id']];\n }\n }\n\n /* Fill out the Numbers table */\n $this->batchInsert('Numbers', ['number', 'contact_id'], $list);\n }", "protected function setupListOperation()\n {\n // $this->crud->setFromDb();\n $name = $this->textCol('name', ' Name');\n $email = $this->emailCol('email', 'Email');\n CRUD::addColumns([$name, $email]);\n }", "public function run()\n {\n \t\tDB::table('models')->insert($models);\n }", "protected function fillTable()\n {\n $names = [\n 'Anna', 'Betty', 'Clara', 'Donna', 'Fiona',\n 'Gertrude', 'Hanna', 'Ione', 'Julia', 'Kara',\n ];\n\n $stm = \"INSERT INTO {$this->table} (name) VALUES (:name)\";\n foreach ($names as $name) {\n $this->connection->perform($stm, ['name' => $name]);\n }\n }", "function diy_model_processing_table($data, $name) {\n\t\tif (!empty($data[$name])) {\n\t\t\t$model = $data[$name]['model'];\n\t\t\t\n\t\t\tif (false === $data[$name]['strict']) {\n\t\t\t\tdiy_db('purge', $data[$name]['connection']);\n\t\t\t\tconfig()->set(\"database.connections.{$data[$name]['connection']}.strict\", $data[$name]['strict']);\n\t\t\t\tdiy_db('reconnect');\n\t\t\t}\n\t\t\t\n\t\t\t$model->{$data[$name]['function']}();\n\t\t}\n\t}", "public function dataTable();", "protected function setupListOperation()\n {\n CRUD::setFromDb(); // columns\n\n /**\n * Columns can be defined using the fluent syntax or array syntax:\n * - CRUD::column('price')->type('number');\n * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);\n */\n }", "private function transfer_data()\n\t{\n\t\t$num_rows = db::select_one(\"select count(*) from {$this->table}\");\n\t\t\n\t\tfor ($i = 0; $i < $num_rows; $i += BATCH_SIZE)\n\t\t{\n\t\t\techo \"$i / $num_rows (select {$this->before_alter_select_query} from {$this->table})\\n\";\n\t\t\t$r = mysql_query(\"select {$this->before_alter_select_query} from {$this->table} limit $i, \".BATCH_SIZE);\n\t\t\twhile ($d = mysql_fetch_assoc($r))\n\t\t\t{\n\t\t\t\tif ($this->renamed_cols)\n\t\t\t\t{\n\t\t\t\t\tforeach ($this->renamed_cols as $before_key => $after_key)\n\t\t\t\t\t{\n\t\t\t\t\t\t$d[$after_key] = $d[$before_key];\n\t\t\t\t\t\tunset($d[$before_key]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb::insert($this->temp_table, $d);\n\t\t\t}\n\t\t}\n\t}", "public function FillTable(){\n\n $helpers = Helper::all();\n\n foreach ($helpers as $key=>$helper){\n\n $helper->update(['id'=>$key+1]);\n }\n }", "public static function getAll(){\n\t\t$sql = \"select * from \".self::$tablename;\n\t\t$query = Executor::doit($sql);\n\t\treturn Model::many($query[0],new TemparioData());\n\t}", "function get_subject_data_table()\n\t\t{\n\t\t\t$data['list']=$_POST['list'];\n\t\t\t$data['student_id']=$_POST['student_id'];\n\t\t\t\n\t\t\t$this->load->view('backend/parents/get_data_table',$data);\t\t \n\t\t}", "public function prepareData(ModelInterface $model);", "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 getTableData()\n\t{\n\t}", "public function listView(): void\n {\n $this->_data = $this->_entity->fetch();\n if (!$this->special) {\n $newData = $this->_builder->submitCreate();\n if ($newData) {\n array_push($this->_data, $newData);\n }\n }\n require VF . \"{$this->route}/list.php\";\n require VF . \"{$this->route}/create.php\";\n }", "private function _loadDataToTemporaryTable(){\n\n }", "public function seed()\n\t{\n\t\t$this->createDataType();\n\t\t$this->createDataRowForColumns();\n\t}", "private function createDataRowForColumns(){\n\t\t$DataRows = [];\n\t\tforeach (\\DB::select('show columns from ' . $this->model->getTable() ) as $column)\n\t\t\t$DataRows[] = (new DataRowColumn)->setModel($this->model)->setField($column->Field)->fillModel();\n\n\t\t$this->DataType->dataRows()->saveMany($DataRows);\n\t}", "public function createModels() {\n // On itère sur notre tableau de K,V\n // Où la K = nom de la marque\n // Où la V = tableau de K,V entre nom du modèle et de la catégorie\n foreach ($this->getModels() as $brandName=> $arrayInfosModels) {\n // On itère sur notre tableau de K,V\n // Où la K = nom du modèle\n // Où la V = nom de la catégorie\n foreach ($arrayInfosModels as $modelName => $categoryName) {\n // On peut donc récupérer en BDD nos catégories et nos marques respestives en fonction\n // des données de notre tableau\n $category = $this->categRepository->findOneBy(['name' => $categoryName]);\n $brand = $this->brandRepository->findOneBy(['name' => $brandName]);\n // Afin de pouvoir créer nos Model\n $model = (new Model())\n ->setName($modelName)\n ->setBrand($brand)\n ->setCategory($category)\n ;\n $this->em->persist($model);\n }\n }\n $this->em->flush();\n }", "public function newTable($items);", "private function prepare_table()\n {\n global $g_dirs;\n\n $l_dao = new isys_cmdb_dao($this->database);\n $l_quicky = new isys_ajax_handler_quick_info();\n\n $l_table = \"<table width=\\\"100%\\\" class=\\\"report_listing\\\">\";\n\n foreach ($this->m_its_arr as $l_obj_id => $l_title) {\n unset($this->m_obj_arr);\n $l_table .= \"<tr style=\\\"\\\"><td onclick=\\\"collapse_it_service('\" . $l_obj_id . \"')\\\" id=\\\"\" . $l_obj_id . \"\\\" class=\\\"report_listing\\\"><img id=\\\"\" . $l_obj_id .\n \"_plusminus\\\" src=\\\"\" . $g_dirs[\"images\"] . \"dtree/nolines_plus.gif\\\" class=\\\"vam\\\">\";\n\n $l_table .= $l_quicky->get_quick_info($l_obj_id, $l_dao->get_obj_name_by_id_as_string($l_obj_id), C__LINK__OBJECT);\n\n $l_table .= \"<img src=\\\"\" . $g_dirs[\"images\"] . \"ajax-loading.gif\\\" id=\\\"ajax_loading_view_\" . $l_obj_id . \"\\\" style=\\\"display:none;\\\" class=\\\"vam\\\" /></td></tr>\";\n\n $l_table .= \"<tr id=\\\"childs_\" . $l_obj_id . \"\\\" style=\\\"display:none;\\\"><td><div id=\\\"childs_content_\" . $l_obj_id . \"\\\"></div>\";\n $l_table .= \"</td></tr>\";\n }\n\n $l_table .= \"</table>\";\n\n return $l_table;\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 }", "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 __construct () {\n $this->model = 'App\\\\' . $this->model;\n $this->model = new $this->model();\n\n // Get the column listing for a given table\n $this->table_columns = Schema::getColumnListing( $this->table );\n }", "public function run()\n {\n DB::table(\"data\")->insert([\n \t\"name\"=>\"IVA\",\n \t\"data\"=>\"21\"\n ]);\n DB::table(\"data\")->insert([\n \t\"name\"=>\"DESIGN_INDEX\",\n \t\"data\"=>\"BUTTONS\"\n ]);\n\n }", "public function run()\n {\n $data = [\n ['name' => 'Kids'],\n ['name' => 'Husband'],\n ['name' => 'Sister'],\n ];\n\n \\App\\Models\\Relation::truncate();\n\n foreach ($data as $value) {\n \\App\\Models\\Relation::create($value);\n }\n }", "private function tableDataTable()\r\n\t{\r\n\t\t$source = $this->getSource();\r\n\r\n\t\t//$table = new TableExample\\DataTable();\r\n\t\t$table = new Model\\DataInsTable();\r\n\t\t$table->setAdapter($this->getDbAdapter())\r\n\t\t->setSource($source)\r\n\t\t->setParamAdapter(new AdapterDataTables($this->getRequest()->getPost()))\r\n\t\t;\r\n\t\treturn $table;\r\n\t}", "abstract protected function prepareModels();", "function createTableModel()\r\n {\r\n?>\r\n // table model\r\n var <?php echo $this->Name; ?>_tableModel = new qx.ui.table.SimpleTableModel();\r\n <?php\r\n if ($this->owner!=null)\r\n {\r\n ?>\r\n <?php echo $this->owner->Name.\".\".$this->Name; ?>_tableModel=<?php echo $this->Name; ?>_tableModel;\r\n <?php\r\n }\r\n ?>\r\n<?php\r\n }", "public function listtabelSDMAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('SDM');\n }", "public function run()\n {\n $data = collect([\n (object)[\n 'name' => 'Администратор',\n 'slug' => 'admin',\n ],\n (object)[\n 'name' => 'Финансист',\n 'slug' => 'financier',\n ],\n (object)[\n 'name' => 'Снабженец',\n 'slug' => 'supplier',\n ],\n (object)[\n 'name' => 'Закупщик',\n 'slug' => 'buyer',\n ],\n ]);\n\n $data->each(function ($item) {\n $model = new Model();\n $model->name = $item->name;\n $model->slug = $item->slug;\n\n $model->save();\n });\n }", "public function vehicle_model_datatable()\n\t\t{\n\t\t\t$list = $this->Vehicle_models->get_datatables();\n\t\t\t$data = array();\n\t\t\t$no = $_POST['start'];\n\t\t\t\n\t\t\tforeach ($list as $model) {\n\t\t\t\t$no++;\n\t\t\t\t$row = array();\n\t\t\t\t\n\t\t\t\t$make_name = '';\n\t\t\t\t$make_array = $this->Vehicle_makes->get_make_by_id($model->make_id);\n\t\t\t\tif($make_array){\n\t\t\t\t\tforeach($make_array as $make){\n\t\t\t\t\t\t$make_name = $make->title;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$row[] = '<div class=\"checkbox checkbox-primary pull-left\"><input type=\"checkbox\" name=\"cb[]\" class=\"cb\" onclick=\"enableButton(this)\" value=\"'.$model->id.'\"><label for=\"cb\"></label></div><div class=\"\" style=\"margin-left:30%; margin-right:30%;\"><strong>'.$make_name.'</strong> ('.$model->make_id.')</div>';\n\t\t\t\t\n\t\t\t\t//$row[] = '<div class=\"checkbox checkbox-primary\"><input type=\"checkbox\" name=\"cb[]\" class=\"cb\" onclick=\"enableButton(this)\" value=\"'.$model->id.'\"></div>';\n\t\t\t\t\n\t\t\t\t//$row[] = '<h4><a data-toggle=\"modal\" data-target=\"#editVehicleModelModal\" href=\"!#\" class=\"link\" onclick=\"editVehicleModel('.$model->id.')\" id=\"'.$model->id.'\" title=\"Click to Edit\"><strong>'.$make_name .'</strong> ('.$model->make_id.')</a></h4>';\n\t\t\t\t\n\t\t\t\t//$row[] = '<strong>'.$make_name .'</strong> ('.$model->make_id.')';\n\t\t\t\t\n\t\t\t\t$row[] = $model->code;\n\t\t\t\t$row[] = $model->title;\n\t\t\t\t//$row[] = 'ok';\n\t\t\t\t\n\t\t\t\t$url = 'admin/vehicle_model_details';\n\t\t\t\t\n\t\t\t\t$row[] = '<a data-toggle=\"modal\" data-target=\"#editModal\" class=\"btn btn-primary btn-xs\" onclick=\"editVehicleModel('.$model->id.',\\''.$url.'\\')\" id=\"'.$model->id.'\" title=\"Click to Edit\"><i class=\"fa fa-edit\"></i> Edit</a>';\n\t\t\t\t\n\t\t\t\t$data[] = $row;\n\t\t\t}\n\t \n\t\t\t$output = array(\n\t\t\t\t\n\t\t\t\t\"draw\" => $_POST['draw'],\n\t\t\t\t\"recordsTotal\" => $this->Vehicle_models->count_all(),\n\t\t\t\t\"recordsFiltered\" => $this->Vehicle_models->count_filtered(),\n\t\t\t\t\"data\" => $data,\n\t\t\t);\n\t\t\t//output to json format\n\t\t\techo json_encode($output);\n\t\t}", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "public function run()\n {\n DB::table('kereta_model')->insert([\n [\n 'model' => 'Persona 1.6 CVT Premium',\n 'buatan_id' => '1',\n 'fuel_id' => '1',\n 'status' => '1',\n 'created_at' => new DateTime,\n 'updated_at' => new DateTime,\n ],\n [\n 'model' => 'Saga 1.3L CVT Premium',\n 'buatan_id' => '1',\n 'fuel_id' => '1',\n 'status' => '1',\n 'created_at' => new DateTime,\n 'updated_at' => new DateTime,\n ],\n [\n 'model' => 'Persona 1.6 CVT Premium (MC)',\n 'buatan_id' => '1',\n 'fuel_id' => '1',\n 'status' => '1',\n 'created_at' => new DateTime,\n 'updated_at' => new DateTime,\n ],\n ]);\n }", "public function prepareData()\r\n {\r\n $users_model = new UsersModel();\r\n $users_all = $users_model->getAll(true, false, 'C_FULLNAME');\r\n $users = Groups::getUsers($this->group_id, 'C_FULLNAME');\r\n $users_include = array();\r\n \tforeach ($users as $user_info) {\r\n \t\t$users_include[$user_info['U_ID']] = array(\r\n \t\t\t$user_info['U_ID'],\r\n \t\t\t$user_info['C_FULLNAME']\r\n \t\t);\r\n \t} \r\n \t$users_exclude = array();\r\n \tforeach ($users_all as $user_info) {\r\n \t\tif (!isset($users_include[$user_info['U_ID']])) {\r\n\t \t\t$users_exclude[] = array(\r\n\t \t\t\t$user_info['U_ID'],\r\n\t \t\t\t$user_info['C_FULLNAME']\r\n\t \t\t);\r\n \t\t}\r\n \t}\r\n \t$this->smarty->assign('group_id', $this->group_id);\r\n \t$this->smarty->assign('users_in', json_encode(array_values($users_include)));\r\n \t$this->smarty->assign('users_out', json_encode($users_exclude)); \r\n }", "function seedCapacities()\n {\n echo \"ADD RECORDS IN TABLE capacities : \";\n for ($i=0;$i<8;$i++)\n {\n\n $labels=['addTask','assignTask','deleteTask','updateTask','displayStat','displayOwnTask','displayUsersByRole','displayAllTask'];\n $descriptions=['Peut ajouter des tâches' , 'Peut assigner des tâches' , 'Peut supprimer des tâches',\n 'Peut modifié une tâche' , 'Peut visualiser les graphiques' , 'Peut ses visualiser les tâches',\n 'Peut afficher la listes des utilisateurs par rôles','Peut afficher les tâches de tous les utilisateurs'];\n\n $capacities= [\n 'label' => $labels[$i],\n 'description' => $descriptions[$i]\n ];\n if (Capacities::count('label=\"'.$capacities['label'].'\"')==0)\n {\n Capacities::create($capacities);\n// Connection::insert('capacities',$capacities,null);\n }\n else{\n $i--;\n }\n echo '-';\n }\n echo \"\\n\";\n }", "public function initTable(){\n\t\t\t\n\t\t}", "public function getCpnyToTable() {\n return $this->db->selectObjList('SELECT company_id, longname, shortname, status, date_create FROM company ORDER BY company_id DESC;', $array = array(), \"Company\");\n }", "public function run()\n {\n DB::table('TYPES_TOURNAMENTS')->insert([\n 'NAME' => 'league'\n ]);\n\n DB::table('TYPES_TOURNAMENTS')->insert([\n 'NAME' => 'liguilla'\n ]);\n\n DB::table('TYPES_TOURNAMENTS')->insert([\n 'NAME' => 'elimination'\n ]);\n }", "public function load()\n\t{\n\t\t$this->list_table->load();\n\t}", "public function run()\n {\n $jbxxs = factory(\\App\\Models\\jbxx::class)->times(50)->make();\n \\App\\Models\\jbxx::insert($jbxxs->toArray());\n }", "public function run()\n {\n\t $now = Carbon\\Carbon::now();\n\t App\\Models\\TblItemType::insert([\n\t [\n\t \t'type' => 'ELECTRICAL & ELECTRONIC',\n\t \t'description' => 'ELECTRICAL & ELECTRONIC',\n\t \t'created_by' => 1,\n\t \t'last_updated_by' => 2,\n\t \t'created_at' => $now,\n\t \t'updated_at' => $now\n\t ],\n\t [\n\t 'type' => 'VALVE COMPLETE AND SPARE PARTS',\n\t 'description' => 'VALVE COMPLETE AND SPARE PARTS',\n\t 'created_by' => 1,\n\t \t'last_updated_by' => 2,\n\t 'created_at' => $now,\n\t 'updated_at' => $now\n\t ],\n\t [\n\t 'type' => 'AUTOMOTIVE MOBILE',\n\t 'description' => 'AUTOMOTIVE MOBILE',\n\t 'created_by' => 1,\n\t \t'last_updated_by' => 2,\n\t 'created_at' => $now,\n\t 'updated_at' => $now\n\t ],\n\t [\n\t 'type' => 'COMPRESSOR & PUMP',\n\t 'description' => 'COMPRESSOR & PUMP',\n\t 'created_by' => 1,\n\t \t'last_updated_by' => 2,\n\t 'created_at' => $now,\n\t 'updated_at' => $now\n\t ],\n\t [\n\t 'type' => 'FURNACE,STEAM PLANT,HEAT EXC',\n\t 'description' => 'FURNACE,STEAM PLANT,HEAT EXC',\n\t 'created_by' => 1,\n\t \t'last_updated_by' => 2,\n\t 'created_at' => $now,\n\t 'updated_at' => $now\n\t ],\n\t ]);\n }", "function tableData(){\n\t\t$entity_type = in(\"entity_type\");\t\t\n\t\t$table = $entity_type()->getTable();\n\t\t$test = in('test');\n\n\t\t// Table's primary key\n\t\t$primaryKey = 'id';\n\n\t\t// Array of database columns which should be read and sent back to DataTables.\n\t\t// The `db` parameter represents the column name in the database, while the `dt`\n\t\t// parameter represents the DataTables column identifier. In this case simple\n\t\t// indexes\n\t\t$columns = array(\n\t\t\tarray( \t'db' => 'id',\n\t\t\t\t\t'dt' => 0 \n\t\t\t\t ),\n\t\t\tarray( \t'db' => 'created', \n\t\t\t\t\t'dt' => 1, \n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t),\n\t\t\tarray( \t'db' => 'updated',\n\t\t\t\t\t'dt' => 2,\n\t\t\t\t\t'formatter' => function( $d, $row ) {\n\t\t\t\t\t\tif( $d == 0 ) return 0;\n\t\t\t\t\t\treturn date( 'M d, Y H:i', $d);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t ),\n\t\t);\n\t\t\n\t\t$additional_columns = self::getAdditionalFields( $entity_type );\n\t\t\n\t\t$columns = array_merge( $columns, $additional_columns );\n\n\t\t// SQL server connection information\n\t\t$sql_details = array(\n\t\t\t'user' => 'root',\n\t\t\t'pass' => '7777',\n\t\t\t'db' => 'ci3',\n\t\t\t'host' => 'localhost'\n\t\t);\n\t\n\t\trequire( 'theme/admin/scripts/ssp.class.php' );\t\t\n\t\t$date_from = in(\"date_from\");\n\t\t$date_to = in(\"date_to\");\n\t\t$extra_query = null;\n\t\tif( !empty( $date_from ) ){\n\t\t\t$stamp_from = strtotime( $date_from );\n\t\t\t$extra_query .= \"created > $stamp_from\";\n\t\t}\n\t\tif( !empty( $date_to ) ){\n\t\t\t$stamp_to = strtotime( $date_to.\" +1 day\" ) - 1;\n\t\t\tif( !empty( $extra_query ) ) $extra_query .= \" AND \";\n\t\t\t$extra_query .= \"created < $stamp_to\";\n\t\t\t\n\t\t}\t\t\n\t\t\n\t\techo json_encode(\n\t\t\tSSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, $extra_query )\n\t\t);\n\t}", "function get_model_list($where=\"1\",$where_array,$sort_by=\"\"){\n\t\t$data= $this->select_query(\"make_model\",\"id,name,del_status\",$where,$where_array,$sort_by);\n\t\treturn $data;\n\t}", "private function createListDataTable(Datastore $db)\n {\n $stmt = $db->prepare('CREATE TABLE ' . $this->dataTableName(). ' ('\n . Utils::primaryKeyColumnDeclaration($db->driver(), 'col_id') . ', '\n . 'col_sample_id INTEGER REFERENCES ' . $this->product()->dataTableName() . '(col_id) ON DELETE CASCADE)'\n );\n $db->execute($stmt);\n }", "private static function _loadModels(){\n if (self::$_models == null){\n $sql = 'SELECT id, uuid, name, description, version_id, created FROM v_model WHERE 1';\n $models = Mysql::query($sql);\n if ($models){\n $_models = array();\n foreach($models as $model){\n $sql = \"SELECT id, model_id, uuid, name, description, type, list, instance_model_id, version_id, created FROM v_property WHERE model_id = '{$model->id}'\";\n $properties = Mysql::query($sql);\n if ($properties){\n $model->properties = $properties;\n $_models[] = $model;\n }\n }\n self::$_models = $_models;\n }\n }\n }", "public function run()\n {\n \\DB::table('unities')->insert(array(\t\t\t\n\t\t\t'name'=>'unidad',\n 'contract'=>'un',\t\t\t\n\t\t\t)\n\t\t);\n \\DB::table('unities')->insert(array( \n 'name'=>'kilo', \n 'contract'=>'kl',\n )\n );\n \\DB::table('unities')->insert(array( \n 'name'=>'libra' , \n 'contract'=>'lb',\n )\n );\n \\DB::table('unities')->insert(array( \n 'name'=>'gramo' , \n 'contract'=>'gr',\n )\n );\n \\DB::table('unities')->insert(array( \n 'name'=>'onza', \n 'contract'=>'oz',\n )\n );\n \\DB::table('unities')->insert(array( \n 'name'=>'litro' , \n 'contract'=>'lr',\n )\n );\t\t\n \\DB::table('unities')->insert(array( \n 'name'=>'mililitro', \n 'contract'=>'ml',\n )\n );\n }", "function getListOfRecords(){\n // the orders will be display and the receipts from there \n \n $element = new Order();\n \n $receipts_filter_orders = cisess(\"receipts_filter_orders\");\n \n if ($receipts_filter_orders===FALSE){\n $receipts_filter_orders = \"Abierta\"; // default to abiertas\n }\n \n if (!empty($receipts_filter_orders))\n {\n $element->where(\"status\",$receipts_filter_orders);\n }\n \n \n $element->order_by(\"id\",\"desc\");\n \n $all = $element->get()->all;\n //echo $element->check_last_query();\n ///die();\n $table = $this->entable($all);\n \n return $table;\n \n \n }", "function table()\n {\n return array('pattern' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,\n 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);\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 run()\n {\n $data = [\n [\n 'title' => 'Экран 1',\n 'created_at' => now()\n ],\n [\n 'title' => 'Экран 2',\n 'created_at' => now()\n ],\n [\n 'title' => 'Экран 3',\n 'created_at' => now()\n ],\n [\n 'title' => 'Стена 1',\n 'created_at' => now()\n ],\n [\n 'title' => 'Стена 2',\n 'created_at' => now()\n ],\n [\n 'title' => 'Стена 3',\n 'created_at' => now()\n ],\n ];\n DB::table('tables')->insert($data);\n\n }", "public function run()\n\t{\n\t\t$collection = [];\n\n\t\tforeach (self::ITEMS as $item) {\n\t\t\t$collection[] = $item;\n\t\t}\n\n\t\tDB::table($this->table)->insert($collection);\n\t}", "public function run()\n\t{\n\t\t$collection = [];\n\n\t\tforeach (self::ITEMS as $item) {\n\t\t\t$collection[] = $item;\n\t\t}\n\n\t\tDB::table($this->table)->insert($collection);\n\t}", "public function create()\n {\n //$room_no = \\DB::table('room_info')->lists('room_no', 'id');\n }", "private function __construct() { \n $this->movieData = $this->generateTable();\n\n }", "abstract protected function _listTables();", "public function load()\n {\n $pdo = $this->getDbConnection();\n $query = \"SELECT * FROM {$this->dbTable}\";\n $data = $pdo->query($query)->fetchAll(\\PDO::FETCH_ASSOC);\n\n foreach ($data as ['key' => $key, 'value' => $value]) {\n $this->setData($key, $value);\n }\n }", "public function toTable(){\r\n\t\t$datas = array();\r\n\t\tforeach ($this as $key => $value) {\r\n\t\t\tif(!in_array($key, $this->arraysis)){\r\n\t\t\t\t$datas[$key] = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $datas;\r\n\t}", "protected function _initsTable() {}", "public function run()\n {\n DB::table('subjects')->insert([\n 'name' => 'URDU',\n ]);\n\n DB::table('subjects')->insert([\n 'name' => 'ENGLISH',\n ]);\n\n DB::table('subjects')->insert([\n 'name' => 'ISLAMIYAT',\n ]);\n\n DB::table('subjects')->insert([\n 'name' => 'PAK STUDIES',\n ]);\n\n DB::table('subjects')->insert([\n 'name' => 'PHYSICS',\n ]);\n\n DB::table('subjects')->insert([\n 'name' => 'CHEMISTRY',\n ]);\n\n DB::table('subjects')->insert([\n 'name' => 'BIOLOGY',\n ]);\n }", "public function run()\n {\n $data = [\n [\n \"rank\" => \"1等空佐\",\n \"abb_rank\" => \"1佐\",\n \"rank_sort_number\" => \"1\"\n ],\n [\n \"rank\" => \"2等空尉\",\n \"abb_rank\" => \"2尉\",\n \"rank_sort_number\" => \"5\"\n ],\n [\n \"rank\" => \"3等空曹\",\n \"abb_rank\" => \"3曹\",\n \"rank_sort_number\" => \"10\"\n ],\n [\n \"rank\" => \"空士長\",\n \"abb_rank\" => \"士長\",\n \"rank_sort_number\" => \"11\"\n ]\n ];\n\n $table = $this->table('ranks');\n $table->insert($data)->save();\n }", "function processData() \n {\n \n // store values in table manager object.\n $moduleID = $this->dataManager->getModuleID();\n $moduleCreator = new ModuleCreator( $moduleID, $this->pathModuleRoot);\n $moduleCreator->createModule();\n \n }", "public function run()\n {\n $data = [\n [\n 'name_id' => 'Bebek',\n 'name_en' => 'Moped'\n ],\n [\n 'name_id' => 'Matic',\n 'name_en' => 'Matic'\n ],\n [\n 'name_id' => 'Sporty',\n 'name_en' => 'Sporty'\n ],\n [\n 'name_id' => 'Moge',\n 'name_en' => 'Big Motorcycle'\n ],\n ];\n\n foreach( $data as $item ) {\n $item['created_at'] = new Carbon();\n $item['updated_at'] = new Carbon();\n\n DB::table('vehicle_classes')->insert($item);\n }\n }", "public function Allplanlist($model);", "public function run() {\n \\DB::table('vehicle_types')->insert(array(\n [\n 'name' => 'Taxi',\n 'group' => NULL,\n 'description' => 'Does not belong to any group'\n ],\n [\n 'name' => 'Matatu',\n 'group' => 'Matatu Sacco',\n 'description' => ''\n ],\n [\n 'name' => 'Bus',\n 'group' => 'Bus Company',\n 'description' => ''\n ],\n [\n 'name' => 'Taxi',\n 'group' => 'Taxi Company',\n 'description' => ''\n ],\n [\n 'name' => 'Company vehicle',\n 'group' => 'Company vehicle',\n 'description' => ''\n ],\n [\n 'name' => 'Tour van',\n 'group' => 'Tour Company',\n 'description' => ''\n ]\n ));\n }", "public function run()\n {\n //\n DB::table('subject_tables')->delete();\n $json= File::get(\"database/json/subject_list.json\");\n $data=json_decode($json);\n $dt=$data;\n foreach ($dt as $obj) {\n SubjectTable::create(array(\n 'subject_id'=>$obj->id,\n 'subject'=>$obj->subject,\n 'subject_group_id'=>$obj->id_subject_group\n ));\n\n }\n }", "public function insertTable($model)\n {\n\t$modelName= is_object($model) ? $model->getTableName() : $model;\n\t$sql=array();\n\t$sql[] = $this->sql('insert into [tables] values (null, %s, %s);', $model->getTableName(), $model->getHash() );\n\tforeach($model->getFields() as $field )\n\t{\n\t $sql[] = $this->sql('insert into [fields] values (null, %s, %s, %s, %s);',\n\t strtolower($field->getName()),\n\t $model->getTableName(),\n\t $field->getHash(),\n\t get_class($field));\n\t}\n\t$this->queue(\n\t PerfORMStorage::TABLE_ADD,\n\t $modelName,\n\t $sql,\n\t array(\n\t\t'model' => $model)\n\t );\n\n\t$key= $model->getHash();\n\tif ( key_exists($key, $this->renamedTables))\n\t{\n\t $array= $this->renamedTables[$key];\n\t $array->counter++;\n\t $array->to= $modelName;\n\t}\n\telse\n\t{\n\t $this->renamedTables[$key]= (object) array(\n\t 'counter' => 1,\n\t 'to' => $modelName,\n\t );\n\t}\n }", "public function listtabelAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('%');\n }", "public function run()\n {\n TipoListas::create(['nombre' =>'tipo_identificacion']);\n TipoListas::create(['nombre' =>'tipo_tercero']);\n TipoListas::create(['nombre' =>'ciudad']);\n TipoListas::create(['nombre' =>'tipo_contribuyente']);\n }", "public function getListOfTables() {}", "protected function populate_data($listings)\n {\n if(count($listings)):\n\n // Category layer\n foreach ($listings as $key => $data):\n \n // Get the data\n $data_status = $data['status'];\n $listing_data = $data['data'];\n $table_name = $data['tb_name'];\n \n if($data_status) {\n \n // Listing layer\n foreach ($listing_data as $listing) {\n \n // Check if listing already exists\n $matrix_id = $listing[\"Matrix Unique ID\"];\n \n // Store listing, flat table structure\n foreach ($listing as $key_name => $key_value) {\n \n // if the value is not empty\n if(!empty($key_value)){\n \n // clean the string\n $key_name = preg_replace(\"/\\s+/\", \"\", $key_name);\n \n // Insert to dababase\n $success = $this -> insert_data($matrix_id, $table_name, $key_name, $key_value);\n echo $success . \"<br>\";\n }\n } \n } \n \n }\n endforeach;\n endif;\n }", "function execute()\n {\n $this->OldModel = $this->getOldModelToUse();\n $this->OldModel->cacheQueries = false;\n $this->OldModel->cacheSQL = false;\n $this->NewModel = $this->getNewModelToUse();\n $this->NewModel->cacheQueries = false;\n $this->NewModel->cacheSQL = false;\n \n $tableMap = $this->getTableMap();\n debug($tableMap);\n if (!$tableMap)\n {\n $this->print_instructions();\n exit();\n }\n\n foreach ($tableMap as $table => $data)\n {\n if (!$this->specialProcessing($table, $data))\n {\n $this->import($table, $data);\n }\n }\n }", "function execute()\n\t{\n\t\t// define customer list table\n\t\t$this->obj_table_list\t\t\t= New table;\n\t\t$this->obj_table_list->language\t\t= $_SESSION[\"user\"][\"lang\"];\n\t\t$this->obj_table_list->tablename\t= \"customer_list\";\n\n\t\t// define all the columns and structure\n\t\t$this->obj_table_list->add_column(\"standard\", \"code_customer\", \"\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"name_customer\", \"\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"customer_reseller\", \"reseller_id\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"name_contact\", \"NONE\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"contact_phone\", \"NONE\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"contact_mobile\", \"NONE\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"contact_email\", \"NONE\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"contact_fax\", \"NONE\");\n\t\t$this->obj_table_list->add_column(\"date\", \"date_start\", \"\");\n\t\t$this->obj_table_list->add_column(\"date\", \"date_end\", \"\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"tax_number\", \"\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"address1_city\", \"\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"address1_state\", \"\");\n\t\t$this->obj_table_list->add_column(\"standard\", \"address1_country\", \"\");\n $this->obj_table_list->add_column(\"money\", \"service_price_monthly\", \"NONE\");\n\t\t$this->obj_table_list->add_column(\"money\", \"service_price_yearly\", \"NONE\");\n\t\t$this->obj_table_list->add_column(\"money\", \"balance_owed\", \"NONE\");\n\n\t\t// totals\n\t\t$this->obj_table_list->total_columns = array(\"balance_owed\");\n\n\t\t// defaults\n\t\t$this->obj_table_list->columns\t\t\t= array(\"code_customer\", \"name_customer\", \"name_contact\", \"contact_phone\", \"contact_email\");\n\t\t$this->obj_table_list->columns_order\t\t= array(\"name_customer\");\n\t\t$this->obj_table_list->columns_order_options\t= array(\"code_customer\", \"name_customer\", \"customer_reseller\", \"name_contact\", \"contact_phone\", \"contact_mobile\", \"contact_email\", \"contact_fax\", \"date_start\", \"date_end\", \"tax_number\", \"address1_city\", \"address1_state\", \"address1_country\");\n\n\t\t// define SQL structure\n\t\t$this->obj_table_list->sql_obj->prepare_sql_settable(\"customers\");\n\t\t$this->obj_table_list->sql_obj->prepare_sql_addfield(\"id\", \"\");\n\t\t\n\t\t// acceptable filter options\n\t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] = \"date_start\";\n\t\t$structure[\"type\"]\t= \"date\";\n\t\t$structure[\"sql\"]\t= \"date_start >= 'value'\";\n\t\t$this->obj_table_list->add_filter($structure);\n\n\t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] = \"date_end\";\n\t\t$structure[\"type\"]\t= \"date\";\n\t\t$structure[\"sql\"]\t= \"date_end <= 'value' AND date_end != '0000-00-00'\";\n\t\t$this->obj_table_list->add_filter($structure);\n\t\t\n\t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] = \"searchbox\";\n\t\t$structure[\"type\"]\t= \"input\";\n\t\t$structure[\"sql\"]\t= \"(code_customer LIKE '%value%' OR name_customer LIKE '%value%')\";\n\t\t$this->obj_table_list->add_filter($structure);\n\t\t\n\t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] \t= \"hide_ex_customers\";\n\t\t$structure[\"type\"]\t\t= \"checkbox\";\n\t\t$structure[\"sql\"]\t\t= \"date_end='0000-00-00'\";\n\t\t$structure[\"defaultvalue\"]\t= \"on\";\n\t\t$structure[\"options\"][\"label\"]\t= \"Hide any customers who are no longer active\";\n\t\t$this->obj_table_list->add_filter($structure);\n \n \t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] \t= \"show_prices_with_discount\";\n\t\t$structure[\"type\"]\t\t= \"checkbox\";\n\t\t$structure[\"options\"][\"label\"]\t= \"Display service prices with discounts applied\";\n\t\t$structure[\"defaultvalue\"]\t= \"1\";\n\t\t$structure[\"sql\"]\t\t= \"\";\n\t\t$this->obj_table_list->add_filter($structure);\n\n\n\t\t// load settings from options form\n\t\t$this->obj_table_list->load_options_form();\n\n\t\tif (in_array('customer_reseller', $this->obj_table_list->columns))\n\t\t{\n\t\t\t$this->obj_table_list->sql_obj->prepare_sql_addfield(\"reseller_customer\", \"\");\n\t\t}\n\n\n\t\t// fetch all the customer information\n\t\t$this->obj_table_list->generate_sql();\n\t\t$this->obj_table_list->load_data_sql();\n\n\t\n\t\t// handle balance owed\n\t\tif (in_array('balance_owed', $this->obj_table_list->columns)) {\n\n\t\t\t$obj_balance_owed_sql \t\t= New sql_query;\n\t\t\t$obj_balance_owed_sql->string\t= \n\t\t\t \"SELECT customerid, sum(bal) AS balance_owed FROM (\n\t\t\t\tSELECT ar.customerid, sum(ar.amount_total - ar.amount_paid) as bal \n\t\t\t\tFROM account_ar AS ar \n\t\t\t\tWHERE 1 GROUP BY ar.customerid\n\t\t\t\tUNION\n \t\t\t\tSELECT arc.id_customer AS customerid, - sum(arc.amount_total) as bal\n \t\t\t\tFROM customers_credits AS arc\n \t\t\t\tWHERE 1 GROUP BY arc.id_customer\n\t\t\t\t) as tbl GROUP by customerid\";\n\n\t\t\t$obj_balance_owed_sql->execute();\n\t\n\t\t\tif ($obj_balance_owed_sql->num_rows())\n\t\t\t{\n\t\t\t\t$obj_balance_owed_sql->fetch_array();\n\n\t\t\t\tforeach ($obj_balance_owed_sql->data as $data_balance_owed)\n\t\t\t\t{\n\t\t\t\t\t$map_balance_owed[ $data_balance_owed['customerid'] ] = $data_balance_owed['balance_owed'];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// replace with 0.00 or the calculated balance value\n\t\t\tfor ($i=0; $i < $this->obj_table_list->data_num_rows; $i++)\n\t\t\t{\n\t\t\t\t$this->obj_table_list->data[$i][\"balance_owed\"] = \"0.00\";\n\n\t\t\t\tif(isset($map_balance_owed[$this->obj_table_list->data[$i]['id']])) {\n\t\t\t\t\t$this->obj_table_list->data[$i][\"balance_owed\"] = $map_balance_owed[$this->obj_table_list->data[$i]['id']];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tunset($map_balance_owed);\n\t\t\tunset($obj_balance_owed_sql);\n\t\t\t\n\t\t}\n\n\t\t// handle reseller options\n\t\tif (in_array('customer_reseller', $this->obj_table_list->columns))\n\t\t{\n\t\t\t// fetch customer IDs to names DB\n\t\t\t$map_resellers = array();\n\n\t\t\t$obj_resellers_sql\t\t= New sql_query;\n\t\t\t$obj_resellers_sql->string\t= \"SELECT id, code_customer, name_customer FROM customers\";\n\t\t\t$obj_resellers_sql->execute();\n\n\t\t\tif ($obj_resellers_sql->num_rows())\n\t\t\t{\n\t\t\t\t$obj_resellers_sql->fetch_array();\n\n\t\t\t\tforeach ($obj_resellers_sql->data as $data_resellers)\n\t\t\t\t{\n\t\t\t\t\t$map_resellers[ $data_resellers[\"id\"] ] = $data_resellers[\"code_customer\"] .\" -- \". $data_resellers[\"name_customer\"];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// replace the ID with the names\n\t\t\tfor ($i=0; $i < $this->obj_table_list->data_num_rows; $i++)\n\t\t\t{\n\t\t\t\t// store the ID, we need this for later logic.\n\t\t\t\t$this->obj_table_list->data[$i][\"reseller_id\"] = $this->obj_table_list->data[$i][\"customer_reseller\"];\n\n\t\t\t\t// relabel with customer details\n\t\t\t\tswitch ($this->obj_table_list->data[$i][\"reseller_customer\"])\n\t\t\t\t{\n\t\t\t\t\tcase \"reseller\":\n\t\t\t\t\t\t$this->obj_table_list->data[$i][\"customer_reseller\"] = \"[reseller]\";\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"customer_of_reseller\":\n\t\t\t\t\t\t$this->obj_table_list->data[$i][\"customer_reseller\"] = $map_resellers[ $this->obj_table_list->data[$i][\"customer_reseller\"] ];\n\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase \"standalone\":\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// nothing todo\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tunset($map_resellers);\n\t\t\tunset($obj_resellers_sql);\n\t\t}\n\t\n\t\t// handle services, if columns selected\n if (in_array('service_price_yearly', $this->obj_table_list->columns)\n || in_array('service_price_monthly', $this->obj_table_list->columns))\n\t\t{\n\t\t\t/*\n\t\t\t\tForeach customer, we need to fetch all their service details and then determine the \n\t\t\t\tcost of those services.\n\n\t\t\t\tUnfortunatly we can't just do a table query, since we need to load the service details to\n\t\t\t\tcheck for stuff such as price overrides. :'(\n\t\t\t*/\n\t\n\t\t\t// fetch service billing cycle information\n\t\t\t$obj_cycles_sql\t\t= New sql_query;\n\t\t\t$obj_cycles_sql->string\t= \"SELECT id, name, priority FROM billing_cycles\";\n\t\t\t$obj_cycles_sql->execute();\n\t\t\t$obj_cycles_sql->fetch_array();\n\n\n\t\t\t// run through all returned customers\n\t\t\tfor ($i=0; $i < $this->obj_table_list->data_num_rows; $i++)\n\t\t\t{\n\t\t\t\t// fetch all services for the customer (if they have any)\n\t\t\t\t$obj_services_sql\t\t= New sql_query;\n\t\t\t\t$obj_services_sql->string\t= \"SELECT id as id_service_customer, serviceid as id_service FROM services_customers WHERE customerid='\". $this->obj_table_list->data[$i][\"id\"] .\"'\";\n\t\t\t\t$obj_services_sql->execute();\n\n\t\t\t\tif ($obj_services_sql->num_rows())\n\t\t\t\t{\n\t\t\t\t\t$obj_services_sql->fetch_array();\n\n\n\t\t\t\t\tforeach ($obj_services_sql->data as $data_service_list)\n\t\t\t\t\t{\n\t\t\t\t\t\t// query service details for each service\n\t\t\t\t\t\t$obj_service\t\t\t= New service;\n\n\t\t\t\t\t\t$obj_service->option_type\t= \"customer\";\n\t\t\t\t\t\t$obj_service->option_type_id\t= $data_service_list[\"id_service_customer\"];\n\t\t\t\t\t\t$obj_service->id\t\t= $data_service_list[\"id_service\"];\n\n\t\t\t\t\t\t$obj_service->load_data();\n\t\t\t\t\t\t$obj_service->load_data_options();\n\n\t\t\t\t\t\t// counting totals\n\t\t\t\t\t\t$service_price_monthly\t= 0;\n\t\t\t\t\t\t$service_price_yearly\t= 0;\n\n\t\t\t\t\t\t// calculate pricing\n\t\t\t\t\t\tforeach ($obj_cycles_sql->data as $data_cycles)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($obj_service->data[\"billing_cycle\"] == $data_cycles[\"id\"])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif ($data_cycles[\"priority\"] < 32)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// monthly or less\n\t\t\t\t\t\t\t\t\tif ($data_cycles[\"name\"] == \"monthly\")\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// monthly billed service\n\t\t\t\t\t\t\t\t\t\t$service_price_monthly = $obj_service->data[\"price\"];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// less than a month, calculate a month's amount\n\t\t\t\t\t\t\t\t\t\t$ratio = 28 / $data_cycles[\"priority\"];\n\n\t\t\t\t\t\t\t\t\t\t$service_price_monthly = $obj_service->data[\"price\"] * $ratio;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($data_cycles[\"name\"] == \"yearly\")\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// yearly billed service\n\t\t\t\t\t\t\t\t\t\t$service_price_yearly = $obj_service->data[\"price\"];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// more than a month, less than a year, calcuate a year's amount\n\t\t\t\t\t\t\t\t\t\t$ratio = 365 / $data_cycles[\"priority\"];\n\n\t\t\t\t\t\t\t\t\t\t$service_price_yearly = $obj_service->data[\"price\"] * $ratio;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} // end of calculate pricing\n\n\n\t\t\t\t\t\t// apply discount if enabled\n\t\t\t\t\t\tif ($_SESSION[\"form\"][\"customer_list\"][\"filters\"][\"filter_show_prices_with_discount\"])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!empty($service_price_monthly))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$service_price_monthly = $service_price_monthly - ($service_price_monthly * ($obj_service->data[\"discount\"] /100));\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!empty($service_price_yearly))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$service_price_yearly = $service_price_yearly - ($service_price_yearly * ($obj_service->data[\"discount\"] /100));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t// special handling for bundle items\n\t\t\t\t\t\tif ($obj_service->data[\"id_bundle_component\"])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// bundle items have no cost, since it's charged as part of the bundle\n\t\t\t\t\t\t\t$service_price_monthly\t= NULL;\n\t\t\t\t\t\t\t$service_price_yearly\t= NULL;\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t// save totals for this customer\n\t\t\t\t\t\t$this->obj_table_list->data[$i][\"service_price_monthly\"]\t= $this->obj_table_list->data[$i][\"service_price_monthly\"] + $service_price_monthly;\n\t\t\t\t\t\t$this->obj_table_list->data[$i][\"service_price_yearly\"]\t\t= $this->obj_table_list->data[$i][\"service_price_yearly\"] + $service_price_yearly;\n\n\t\t\t\t\t\tunset($obj_service);\n\n\t\t\t\t\t} // end of service loop\n\t\t\t\t\n\n\t\t\t\tunset($obj_services_sql);\n\n\t\t\t\t} // end if services exist\n\n\t\t\t} // end of table loop\n\n\t\t\tunset($obj_cycles_sql);\n\n\t\t} // end if service columns enabled\n\n\n\t}", "public function run()\n {\n db::truncate();\n foreach ([\n 'NP'=>'Draft','NJ'=>'Pending',\n 'CN'=>'Cancle','AJ'=>'Assigned',\n 'JC'=>'Evaluate','SC'=>'Success',\n ] as $key=>$value) {\n db::create([\n 'id'=>$key,\n 'name'=>$value\n ]);\n }\n }", "function listTables();", "function execute()\n\t{\n\t\t$this->obj_customer->load_data();\n\n\t\t// establish a new table object\n\t\t$this->obj_table = New table;\n\n\t\t$this->obj_table->language\t\t= $_SESSION[\"user\"][\"lang\"];\n\t\t$this->obj_table->tablename\t\t= \"orders_list\";\n\n\t\t// define all the columns and structure\n\t\t$this->obj_table->add_column(\"date\", \"date_ordered\", \"\");\n\t\t$this->obj_table->add_column(\"standard\", \"type\", \"\");\n\t\t$this->obj_table->add_column(\"standard\", \"item\", \"NONE\");\n\t\t$this->obj_table->add_column(\"standard\", \"quantity\", \"\");\n\t\t$this->obj_table->add_column(\"standard\", \"units\", \"\");\n\t\t$this->obj_table->add_column(\"money\", \"amount\", \"\");\n\t\t$this->obj_table->add_column(\"money\", \"price\", \"\");\n\t\t$this->obj_table->add_column(\"percentage\", \"discount\", \"\");\n\t\t$this->obj_table->add_column(\"standard\", \"description\", \"\");\n\n\t\t// defaults\n\t\t$this->obj_table->columns = array(\"date_ordered\", \"type\", \"item\", \"quantity\", \"units\", \"price\", \"discount\", \"amount\", \"description\");\n\n\t\t// define SQL structure\n\t\t$this->obj_table->sql_obj->prepare_sql_settable(\"customers_orders\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addfield(\"id_order\", \"id\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addfield(\"customid\", \"customid\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addwhere(\"id_customer = '\". $this->obj_customer->id .\"'\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addorderby_desc(\"date_ordered\");\n\n\t\t// run SQL query\n\t\t$this->obj_table->generate_sql();\n\t\t$this->obj_table->load_data_sql();\n\n\t\t// load service item data and optiosn\n\t\tfor ($i=0; $i < $this->obj_table->data_num_rows; $i++)\n\t\t{\n\t\t\tswitch ($this->obj_table->data[$i][\"type\"])\n\t\t\t{\n\t\t\t\tcase \"product\":\t\n\t\t\t\t\t// lookup product code + name\n\t\t\t\t\t$this->obj_table->data[$i][\"item\"] = sql_get_singlevalue(\"SELECT CONCAT_WS(' -- ',code_product,name_product) AS value FROM products WHERE id='\". $this->obj_table->data[$i][\"customid\"] .\"'\");\n\t\t\t\tbreak;\n\n\t\t\t\tcase \"service\":\n\t\t\t\t\t// lookup service name\n\t\t\t\t\t$this->obj_table->data[$i][\"item\"] = sql_get_singlevalue(\"SELECT name_service AS value FROM services WHERE id='\". $this->obj_table->data[$i][\"customid\"] .\"'\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}", "public function run()\n {\n $rec=[\n [ 'id'=>1,'name'=>'test-1','status'=>1],\n [ 'id'=>2,'name'=>'test-2','status'=>1],\n [ 'id'=>3,'name'=>'test-3','status'=>1],\n [ 'id'=>4,'name'=>'test-5','status'=>1],\n [ 'id'=>5,'name'=>'test-6','status'=>1],\n ];\n Brand::insert($rec);\n }", "public function run()\n {\n DB::table('modelo')->insert([\n ['mod_nome' => 'M7S Quad Core', 'for_id' => 3],\n ['mod_nome' => 'M9 Quad Core', 'for_id' => 3],\n ['mod_nome' => 'Galaxy Tab A', 'for_id' => 4],\n ['mod_nome' => 'BV-Quad', 'for_id' => 1]\n\n ]);\n }", "function get_exam_data_table()\n\t\t{\n\t\t\t$data['list']=$_POST['list'];\n\t\t\t$data['student_name']=$_POST['student_name'];\n\t\t\t$data['exam_name']=$_POST['exam_name'];\n\t\t\t$this->load->view('backend/parents/get_data_table',$data);\t\t \n\t\t}", "public function run()\n {\n $data0Length = [3, 5, 2];\n $data1Length = [4, 5, 4];\n\n for ($i = 0; $i < 3; $i++) {\n $no = $i + 1;\n\n\n\n $data0 = Data0::create([\n 'uraian' => \"Data$no\",\n 'jumlah' => $data0Length[$i] * 10000\n ]);\n\n for ($j = 0; $j < $data0Length[$i]; $j++) {\n $detail = DataDetail0::create([\n 'uraian' => \"Data_detail_$no.$j\",\n 'jumlah' => 10000\n ]);\n\n $data0->details()->save($detail);\n }\n\n $data1 = Data1::create([\n 'uraian' => \"Data$no\",\n 'jumlah' => $data1Length[$i] * 10000\n ]);\n\n for ($j = 0; $j < $data1Length[$i]; $j++) {\n $detail = DataDetail1::create([\n 'uraian' => \"Data_detail_$no.$j\",\n 'jumlah' => 10000\n ]);\n\n $data1->details()->save($detail);\n }\n }\n }", "public function run()\n {\n for ($i = 10; $i < rand(1910, 2010); $i++) {\n $pairValue = ['key' => \"key$i\", 'value' => \"value$i\", 'ttl' => '5 mins', 'delete_time' => Carbon::now()->addSeconds(rand(-300, 300))->toDateTimeString()];\n App\\DataModel::create($pairValue);\n }\n }", "public function run() {\n DB::table('subjects')->insert([\n ['code' => 'M001', 'title' => 'Mathematics I', 'status' => 'Active'],\n ['code' => 'M002', 'title' => 'Mathematics II', 'status' => 'Active'],\n ['code' => 'S001', 'title' => 'Sinhala', 'status' => 'Active'],\n ['code' => 'S002', 'title' => 'Sinhala Literature', 'status' => 'Active'],\n ['code' => 'ENG1', 'title' => 'English I', 'status' => 'Active'],\n ['code' => 'ENG2', 'title' => 'English II', 'status' => 'Active'],\n ['code' => 'ENGL', 'title' => 'English Literature', 'status' => 'Active'],\n ]);\n }", "private function getTables() {\n\t\t$this->_vm_product = $this->getTable('vm_product');\n\t}", "function __createBoostTable() {\n\t\tforeach ($this->settings[$this->model->alias]['fields'] as $fieldname => $value) {\n\t\t\tif (is_array($value) && isset($value['boost'])) {\n\t\t\t\t$this->__boostTable[$fieldname] = $value['boost'];\n\t\t\t}\n\t\t}\n\t}", "public function run()\n {\n $data=[];\n for($i=0;$i<100;$i++){\n \t$temp['typeid']=rand(1,11);\n \t$temp['goods']=str_random(10);\n \t$temp['price']=rand(1,10000);\n \t$temp['picname']='/upload/14869794804653.jpg';\n \t$temp['descr']='<p><img src=\"/upload/baidu/1486979474670564.jpg\" title=\"1486979474670564.jpg\"/></p><p><img src=\"/upload/baidu/1486922430402045.jpg\" title=\"1486922430402045.jpg\"/></p>';\n \t$temp['num']=rand(1,1000);\n \t$temp['created_at']=date('Y-m-d H:i:s');\n \t$temp['updated_at']=date('Y-m-d H:i:s');\n $temp['szie']=rand(0,2);\n \t$temp['state']=1;\n $data[]=$temp;\n }\n \\DB::table('goods')->insert($data);\n }", "public function run()\n {\n $data = [\n [\n 'id' => '1',\n 'nom' => 'Toronto',\n 'pays_code' => '2',\n ],\n [\n 'id' => '2',\n 'nom' => 'Montreal',\n 'pays_code' => '2',\n ],\n [\n 'id' => '3',\n 'nom' => 'Ottawa',\n 'pays_code' => '2',\n ],\n [\n 'id' => '4',\n 'nom' => 'Vancouver',\n 'pays_code' => '2',\n ],\n [\n 'id' => '5',\n 'nom' => 'Quebec',\n 'pays_code' => '2',\n ],\n [\n 'id' => '6',\n 'nom' => 'New York',\n 'pays_code' => '1',\n ],\n [\n 'id' => '7',\n 'nom' => 'Chicago',\n 'pays_code' => '1',\n ],\n [\n 'id' => '8',\n 'nom' => 'San Diego',\n 'pays_code' => '1',\n ],\n [\n 'id' => '9',\n 'nom' => 'San Francisco',\n 'pays_code' => '1',\n ],\n [\n 'id' => '10',\n 'nom' => 'Buffalo',\n 'pays_code' => '1',\n ],\n ];\n\n $table = $this->table('villes');\n $table->insert($data)->save();\n }", "public function run()\n {\n DB::table('vehicle_type')->insert([\n 'name' => 'Deluxe',\n 'layout' => '2-2',\n 'row' => '5',\n 'column' => '4',\n 'facility_id' => '1',\n ]);\n DB::table('vehicle_type')->insert([\n 'name' => 'AC Deluxe',\n 'layout' => '2-2',\n 'row' => '5',\n 'column' => '4',\n 'facility_id' => '2',\n ]);\n\n }", "public function run()\n {\n Business::create([\n \t'person_business_id' => 4,\n \t'business_type_id' => 1,\n ]);\n Business::create([\n \t'person_business_id' => 5,\n \t'business_type_id' => 2,\n ]);\n Business::create([\n \t'person_business_id' => 6,\n \t'business_type_id' => 2,\n ]);\n }" ]
[ "0.6454627", "0.59547454", "0.59134173", "0.5900989", "0.5843223", "0.5827523", "0.581223", "0.5790788", "0.5785692", "0.5778234", "0.5765918", "0.5676206", "0.5643386", "0.5624732", "0.5618678", "0.5613526", "0.5591926", "0.5565627", "0.5530442", "0.5528557", "0.55216116", "0.5513002", "0.5499471", "0.54971176", "0.54959714", "0.54743594", "0.54727036", "0.54724354", "0.54717106", "0.5454786", "0.5450722", "0.54492486", "0.5442422", "0.5442422", "0.54415435", "0.5438217", "0.54290736", "0.5428987", "0.54252964", "0.5417995", "0.5412293", "0.5411185", "0.5406764", "0.54056776", "0.54056776", "0.54056776", "0.5384486", "0.5377341", "0.5370657", "0.53677374", "0.5365667", "0.53594655", "0.5355145", "0.5333132", "0.53287405", "0.5324569", "0.53231573", "0.5317879", "0.531395", "0.53127795", "0.5310933", "0.5308594", "0.5307861", "0.53071195", "0.53037363", "0.53037363", "0.53036875", "0.5299885", "0.5282898", "0.5281158", "0.527905", "0.5276043", "0.5264745", "0.526339", "0.52614546", "0.5261294", "0.52610856", "0.52594095", "0.525841", "0.52582055", "0.52538556", "0.52526534", "0.52520055", "0.52482", "0.5247163", "0.52387345", "0.5233751", "0.5226925", "0.52262366", "0.5225768", "0.5224659", "0.52198046", "0.5219398", "0.52190787", "0.5218336", "0.5215493", "0.5214256", "0.521139", "0.52018195", "0.5200238", "0.5199431" ]
0.0
-1
SHOWS A RECORD VIEW
function show( $id ) { $data = $this->model_group->get( $id ); $fields = $this->model_group->fields( TRUE ); $this->template->assign( 'id', $id ); $this->template->assign( 'group_fields', $fields ); $this->template->assign( 'group_data', $data ); $this->template->assign( 'table_name', 'Group' ); $this->template->assign( 'template', 'show_group' ); $this->template->display( 'frame_admin.tpl' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function viewAction()\n {\n $id = $this->_getPrimaryId();\n $row = $this->_getRow($id);\n\n $this->view->row = $row;\n }", "public function viewAction() {\n\t\t$role = new Role_Model_Role();\n\t\t$this->view->record = $role->findById($this->getRequest()->getParam('id'));\n\t}", "public function recordacoes(){\n $this->validaAutenticacao();\n $comentario = Container::getModel('Comentarios');\n $this->view->comentarios = $comentario->getComentariosNaoAprovado();\n\n $vitimas = Container::getModel('Vitimas');\n $this->view->vitimas = $vitimas->getAllDashboard();\n\n $this->menu();\n $this->render('recordacoes', 'layout-dashboard');\n }", "public function view()\n\t{\n\t\t// TODO Implement\t\n\t}", "public function ViewAction()\r\n\t{\r\n\t\t$this->View->author = $this->Author->select();\r\n\t}", "protected function viewAction()\n {\n }", "public function companyrecord() {\r\n\r\n if (isset($_GET['id'])) {\r\n $preview = $this->model->companyPreview($_GET['id']);\r\n }\r\n return $this->view('/company/companyrecord', $preview);\r\n }", "function onView () {\r\n\r\n switch (parent::getAction()) {\r\n \tcase \"edit\":\r\n \t\tbreak;\r\n \tcase \"search\":\r\n \t\tbreak;\r\n default:\r\n $this->printSearchBoxView();\r\n }\r\n }", "function viewAction() {\r\n\r\n $photo_id = $this->_getParam('photo_id', false);\r\n if (!$photo_id)\r\n return $this->_forward('requireauth', 'error', 'core');\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n $this->view->photo = $photo = Engine_Api::_()->getItem('sesvideo_chanelphoto', $photo_id);\r\n $this->view->chanel = $chanel = $photo->getChanel();\r\n Engine_Api::_()->core()->setSubject($photo);\r\n if (!$viewer || !$viewer->getIdentity() || !$chanel->isOwner($viewer)) {\r\n $photo->view_count = new Zend_Db_Expr('view_count + 1');\r\n $photo->save();\r\n }\r\n if (!$this->_helper->requireAuth()->setAuthParams('sesvideo_chanelphoto', null, 'view')->isValid())\r\n return;\r\n $checkchanel = Engine_Api::_()->getItem('sesvideo_chanel', $this->_getParam('chanel_id'));\r\n if (!($checkchanel instanceof Core_Model_Item_Abstract) || !$checkchanel->getIdentity() || $checkchanel->chanel_id != $photo->chanel_id) {\r\n $this->_forward('requiresubject', 'error', 'core');\r\n return;\r\n }\r\n // Render\r\n $this->_helper->content->setEnabled();\r\n }", "public function ViewRecord($id, $field='')\n {\n if (empty($field)) {\n $field = $this->Index_Name;\n }\n\n echo $this->ViewRecordText($id, $field);\n }", "public function actionView()\n\t{\n $model = $this->loadModel();\n //如果不是已阅的,要更改阅读状态\n if(!$model->tag->rt_read){\n $tagModel = Residencetag::model()->findByAttributes(array(\"rt_rbiid\"=>$model->rbi_id));\n $tagModel->rt_read = 1;\n $tagModel->update();\n }\n\t\t$this->render('view',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function view(){\n\t\t$this->buildListing();\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 }", "function viewrec($recid)\r\n{\r\n\t$res = sql_select();\r\n \t$count = sql_getrecordcount();\r\n \tmysqli_data_seek($res, $recid);\r\n \t$row = mysqli_fetch_assoc($res);\r\n\t$customercode = $row[\"comp_id\"];\r\n\t$field=\"comp_id\";\r\n\t//echo \"View : OutletCode :\".$customercode;\r\n \tshowrecnav(\"view\", $recid, $count);\r\n?>\r\n\t<br>\r\n<?php\r\n\tshowrow($row, $recid); \r\n\t\r\n\t\r\n?>\r\n\t<br>\r\n\r\n\t<hr size=\"1\" noshade>\r\n\t<table class=\"bd\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">\r\n\t\t<tr>\r\n\t\t\t<td><input type=\"button\" name=\"btnEdit\" value=\"Edit Record\" onClick=\"javascript:LoadDiv('<?php echo CENTER_DIV ?>','company/company.php?status=true&a=edit&filter=<?php echo $customercode ?>&filter_field=<?php echo $field ?>')\"></td>\r\n\t\t</tr>\r\n\t</table>\r\n\t<?php\r\n \t\tmysqli_free_result($res);\r\n\t}", "public function view(){\n\t\t\t$this->__switchboard();\n\t\t}", "public function viewAction()\r\n {\r\n $this->indexAction();\r\n }", "public function viewAction()\n {\n $blogpostId = $this->_registry->args[0];\n $blogpost = new Rwtt_Entity_BlogPost();\n $blogpost->loadById($blogpostId);\n $this->view->title = $blogpost->title;\n $this->view->content = $blogpost->content;\n }", "public function detail(){\n\t\t\t$id = isset($_GET[\"id\"]) ? $_GET[\"id\"] : 0;\n\t\t\t$record = $this->modelGetRecord($id);\n\t\t\t//load view\n\t\t\tinclude \"Views/BlogsDetailView.php\";\n\t\t}", "function index()\n {\n $this->_view_edit('view');\n }", "function onView () {\n\n switch (parent::getAction()) {\n case \"edit\":\n if (Context::hasRole(\"user.friendRequest.edit\")) {\n $this->printEditView();\n }\n break;\n default:\n if (Context::hasRole(\"user.friendRequest.view\")) {\n $this->printMainView();\n }\n break;\n }\n }", "public function view() {\r\n\r\n\t}", "function renderSingleView($record) {\n\t\t$cObj = t3lib_div::makeInstance('tslib_cObj');\n\t\t$cObj->start($record, 'tx_dam');\n\t\t$single_Code = tslib_CObj::getSubpart($this->fileContent, '###SINGLEVIEW###');\n\n\t\t$this->pi_loadLL();\n\n\t\t// converting all fields in the record to marker (recordfields and markername must match)\n\t\t$markerArray = $this->recordToMarkerArray($record, 'singleView');\n\t\t$markerArray['###CRDATE_AGE###'] = $cObj->stdWrap($record['crdate'], $this->conf['renderFields.']['crdate_age.']);\n\t\t$markerArray['###LINK_DOWNLOAD###'] = $cObj->cObjGetSingle($this->conf['singleView.']['link_download'], $this->conf['singleView.']['link_download.']);\n\t\t$tsconf = $this->conf['singleView.']['link_download.'];\n\t\t$tsconf['stdWrap.']['typolink.']['additionalParams'] .= $this->makeDownloadHash($elem['uid']);\n\t\t$markerArray['###LINK_DOWNLOAD_HASH###'] = $cObj->cObjGetSingle($this->conf['singleView.']['link_download'], $tsconf);\n\n\t\t$markerArray['###BACK_LINK###'] = $this->cObj->typolink($cObj->cObjGetSingle($this->conf['singleView.']['backLink'], $this->conf['singleView.']['backLink.']), array('parameter' => $record['backPid']));\n\t\t$markerArray['###TX_DAMFRONTEND_FEUSER_UPLOAD###'] = $this->get_FEUserName($record['tx_damfrontend_feuser_upload']);\n\t\t$markerArray['###FILEICON###'] = $cObj->stdWrap('<img src=\"' . $this->getFileIconHref($record['file_mime_type'], $record['file_mime_subtype']) . '\" title=\"' . $record['title'] . '\" alt=\"' . $record['title'] . '\"/>', $this->conf['singleView.']['fileicon.']);\n\t\t//render deletion button\n\t\tif ($record['allowDeletion'] == 1 AND $this->conf['enableDeletions'] == 1) {\n\t\t\t$markerArray['###BUTTON_DELETE###'] = $cObj->cObjGetSingle($this->conf['filelist.']['button_delete'], $this->conf['filelist.']['button_delete.']);\n\t\t} else {\n\t\t\t$markerArray['###BUTTON_DELETE###'] = '';\n\t\t}\n\t\t//render edit button\n\t\tif ($record['allowEdit'] == 1 AND $this->conf['enableEdits'] == 1) {\n\t\t\t$markerArray['###BUTTON_EDIT###'] = $cObj->cObjGetSingle($this->conf['filelist.']['button_edit'], $this->conf['filelist.']['button_edit.']);\n\t\t\t$markerArray['###BUTTON_CATEDIT###'] = $cObj->cObjGetSingle($this->conf['filelist.']['button_catedit'], $this->conf['filelist.']['button_catedit.']);\n\t\t} else {\n\t\t\t$markerArray['###BUTTON_EDIT###'] = '';\n\t\t\t$markerArray['###BUTTON_CATEDIT###'] = '';\n\t\t}\n\n\t\t// adding static user definded markers\n\t\t$markerArray = $markerArray + $this->substituteLangMarkers($single_Code);\n\n\t\tif (!is_null($this->staticInfoObj)) {\n\t\t\t$markerArray['###LANGUAGE###'] = $this->staticInfoObj->getStaticInfoName('LANGUAGES', $record['language'], '', '', false);\n\t\t}\n\n\t\t// Hook for additional fields\n\t\tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['DAM_FRONTEND']['RENDER_SINGLE_VIEW'])) {\n\t\t\tforeach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['DAM_FRONTEND']['RENDER_SINGLE_VIEW'] as $_classRef) {\n\t\t\t\t$_procObj = &t3lib_div::getUserObj($_classRef);\n\t\t\t\t$_procObj->renderSingleView($markerArray, $this, $record);\n\t\t\t}\n\t\t}\n\t\t$content = tslib_cObj::substituteMarkerArray($single_Code, $markerArray);\n\n\t\t$content = tslib_cObj::substituteMarker($content, '###TITLE_SINGLEVIEW###', $markerArray['###TITLE###']);\n\t\t$content = tslib_cObj::substituteMarker($content, '###CR_DATE_HEADER###', $this->pi_getLL('CR_DATE_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###FILE_SIZE_HEADER###', $this->pi_getLL('FILE_SIZE_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###CR_DESCRIPTION_HEADER###', $this->pi_getLL('CR_DESCRIPTION_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###COPYRIGHT_HEADER###', $this->pi_getLL('COPYRIGHT_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###CATEGORY_HEADER###', $this->pi_getLL('CATEGORY_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###CATEGORY###', $cObj->cObjGetSingle($this->conf['singleView.']['category.']['cObject'], $this->conf['singleView.']['category.']['cObject.']));\n\t\t$content = tslib_cObj::substituteMarker($content, '###FILETYPE_HEADER###', $this->pi_getLL('FILETYPE_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###LINK_HEADER###', $this->pi_getLL('LINK_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###LANGUAGE_HEADER###', $this->pi_getLL('LANGUAGE_HEADER'));\n\t\t$content = tslib_cObj::substituteMarker($content, '###TITLE_SINGLEVIEW_HEADER###', $this->pi_getLL('TITLE_SINGLEVIEW_HEADER'));\n\t\treturn $content;\n\t}", "public function singleView();", "public function recordAction()\r\n {\r\n $task = $this->projectService->getTask($this->_getParam('id'));\r\n \r\n $user = za()->getUser();\r\n \r\n $time = time();\r\n $record = $this->projectService->addTimesheetRecord($task, $user, $time, $time);\r\n\r\n $this->view->task = $task;\r\n $this->view->record = $record;\r\n $this->view->relatedFaqs = $this->tagService->getRelatedItems($task);\r\n \r\n $this->renderRawView('timesheet/record.php');\r\n }", "public function view()\n {\n $this->redirect(\"dashboard/open_data/list_catalog\");\n }", "public function view() {\r\n $id = $this->api->getParam('id');\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n $object = $this->model->find_by_id($id);\r\n $images_array = $object->getFlickrImages($this->api->apikey);\r\n $this->api->loadView('contact-view', array(\r\n 'row' => $object,\r\n 'images' => $images_array\r\n ));\r\n }", "public function show(Ride $record)\n {\n //\n }", "public function index()\n {\n $this->load->model('Crud_model');\n $records = $this->Crud_model->getRecords();\n $this->load->view('Crud_view', ['records' => $records]);\n }", "function view() {\n $status_update = StatusUpdates::findById($this->request->get('status_update_id'));\n \n if (!instance_of($status_update, 'StatusUpdate')) {\n $this->httpError(HTTP_ERR_NOT_FOUND);\n } // if\n \n $this->redirectToUrl($status_update->getRealViewUrl($this->status_updates_per_page));\n die();\n }", "function onView () {\n\n switch (parent::getAction()) {\n \n case \"edit\":\n $this->printEditView();\n break;\n default:\n $userId = $this->getModeUserId();\n $user = UsersModel::getUser($userId);\n if (RolesModel::hasModuleRole($userId,\"user.files.owner\")) {\n if (empty($user->directoryid)) {\n $user->directoryid = UsersModel::setupUserDirectory($userId);\n }\n parent::onView($user->directoryid);\n }\n }\n }", "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 }", "public function doRestView($id)\n {\n $this->outputHelper(\n 'Record Retrieved Successfully', \n $this->loadOneModel($id),\n 1\n );\n\t}", "public function actionView()\n {\n \n }", "public function edit_record()\n {\n \t$id = $this->uri->segment(4);\n $table = CMS_TABLE.' as u';\n\t\t$fields = array('u.*');\n\t\t$match = array('u.cms_id' => $id);\n\t\t$result \t = $this->general_model->get_records($table,$fields,'','',$match);\n\t\t$data['editRecord'] = $result;\n\t\t$data['main_content'] = $this->type.'/'.$this->viewname.'/add';\n\t $this->load->view($this->type.'/assets/template',$data);\n }", "function runShowAction() {\n // Fetch data from database and pass it to the template\n $dao = new sample_SampleDAO;\n $this->samples = $dao->find(); // Get all 'samples'\n\n $this->title = \"'Show' Action\"; // Set the page (<h1>) title, and append to the document <title>\n $this->addNotice(\"Something happened.\"); // Send a notice to the user\n $this->greeting = \"Hello, world!\"; // Send some data to the template\n }", "function action_view()\n {\n $this->addStatusFields();\n return parent::action_view();\n }", "public function viewAction()\n\t{\n\t\t$log = $this->_initLog();\n\t\t\n if (!$log->getId()) {\n $this->_getSession()->addError(Mage::helper('logging')->__('This log no longer exists.'));\n $this->_redirect('*/*/');\n return;\n }\n\n $this->_title( Mage::helper('logging')->__('Showing log entry') );\n\n\t\t$this->loadLayout();\n\t\t\n\t\t$this->getLayout()->getBlock('head')->setCanLoadExtJs(false);\n\t\t$this->renderLayout();\n\t}", "public function record(){\r\n if($this->request->server['REQUEST_METHOD'] == 'POST'){\r\n\r\n $this->load->model($this->module_path);\r\n $this->module_search = $this->{$this->model};\r\n\r\n $this->load->library('search_plus');\r\n $this->client = $this->search_plus->client;\r\n $type = $this->request->post['type'];\r\n\r\n foreach ($this->request->post['data'] as $data){\r\n $views = [\r\n 'id' => $data['id'],\r\n 'name' => $data['name'],\r\n 'model' => $data['model'],\r\n 'category' => $data['category'],\r\n 'parent_category' => $data['category_parent'],\r\n 'datetime' => date('Y-m-d H:i:s'),\r\n 'type' => $type,\r\n ];\r\n $this->module_search->recordViews($views);\r\n }\r\n\r\n\r\n }\r\n }", "public function show(Record $record)\n {\n //\n return view('records.index');\n }", "public function show(BookRecord $bookRecord)\n {\n //\n }", "public function actionView() {}", "public function actionView() {}", "public function view(int $id)\r\n {\r\n }", "public function dsp_single_record()\n {\n $v_record_id = get_post_var('hdn_item_id',0);\n $VIEW_DATA['arr_single_record'] = $this->model->qry_single_record($v_record_id);\n $this->view->render('dsp_single_record',$VIEW_DATA);\n }", "public function view($id, $active, $fields, $with);", "public function view($rfp_id){\n\n $data['title'] = 'Admin View Request';\n $data['heading'] = 'View Request Page'; \n $data['rfp_id'] = decode($rfp_id);\n\n $data['record']=$this->Rfp_model->get_result('rfp',['id' => decode($rfp_id)],'1');\n // pr($data['record'],1);\n $data['subview'] = 'admin/rfp/view';\n $this->load->view('admin/layouts/layout_main', $data);\n }", "public function viewdetailsAction()\n {\n $productId = $this->_getParam('product_id');\n $product = $this->_model->setId($productId);\n $this->view->product = $product->fetch(); \n \n }", "public function views() {\n\t\t\t$views = $this->get_views();\n\n\t\t\t/** This filter is documented in wp-admin/inclues/class-wp-list-table.php */\n\t\t\t$views = apply_filters( \"views_{$this->screen->id}\", $views );\n\n\t\t\t$this->screen->render_screen_reader_content( 'heading_views' );\n\t\t\t?>\n\t\t\t<div class=\"wp-filter\">\n\t\t\t\t<ul class=\"filter-links\">\n\t\t\t\t\t<?php\n\t\t\t\t\tif ( ! empty( $views ) ) {\n\t\t\t\t\t\tforeach ( $views as $class => $view ) {\n\t\t\t\t\t\t\t$views[ $class ] = \"\\t<li class='$class'>$view\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo implode( \" </li>\\n\", $views ) . \"</li>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t</ul>\n\t\t\t\t<?php\n\t\t\t\tif ( 'learndash' === $this->current_tab ) {\n\t\t\t\t\t$this->show_update_button();\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</div>\n\t\t\t<?php\n\t\t}", "public function display()\n \t{\n \t\t$this->assign(\"__view\", $this->_view);\n \t\tparent::display();\n \t}", "public function index()\n {\n //\n check_admin_purview('1');\n return view('Admin.Record.list');\n }", "function show($view, $viewVars=null) {\r\n\t\t// TODO: db interaction should go into model\r\n\t\tglobal $wpdb;\r\n\r\n\t\tif (is_array($viewVars)) {\r\n\t\t\t$this->viewVars =& $viewVars;\r\n\t\t}\r\n/*\r\n\t\tif ('admin-edit' == $view) {\r\n\t\t\t$viewVars['action'] = empty($viewVars['eventId']) ? 'add' : 'edit';\r\n\t\t\t$this->viewVars['action'] = $viewVars['action'];\r\n\t\t}\r\n*/\t\t\r\n\t\t// TODO: make viewVars globally available?\r\n\r\n\t\t// TODO: make shure it is a valid view\r\n\t\t// TODO: look in theme folder!\r\n\t\t$template = 'views/uwr1results-'.$view.'.php';\r\n\t\t$rv = @require_once $template;\r\n\t}", "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 actionView()\n\t{\n\t\t$this->render('view');\n\t}", "public function actionView($id) {\n $this->redirect(['document/index', 'project_id' => $id]);\n }", "public function actionView()\n {\n \t$id = isset($_REQUEST['id'])?$_REQUEST['id']:null;\n \t$model = $this->findModel($id);\n \t \n \treturn CommonUtils::json_success($model);\n }", "public function showAction(Record $record)\n {\n $deleteForm = $this->createDeleteForm($record);\n\n return $this->render('record/show.html.twig', array(\n 'record' => $record,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "function printRecords ($show_edits = 1) {\n print \"<table border='1' width='90%'>\";\n foreach ($this->ids as $i) {\n print \"<tr><td>\";\n $this->link[$i]->printHTML($show_edits);\n print \"</td>\";\n print \"<td><p><a href='delete.php?id=$i'>Delete</a></p>\";\n print \"<p><a href='modify.php?id=$i'>Modify</a></p></td></tr>\";\n }\n print \"</table>\";\n }", "function onView () {\n\n switch (parent::getAction()) {\n case \"edit\":\n if (Context::hasRole(\"user.image.edit\")) {\n $this->printEditView();\n }\n break;\n case \"crop\":\n if (Context::hasRole(\"user.image.view\")) {\n $this->printCropImageView();\n }\n break;\n case \"upload\":\n if (Context::hasRole(\"user.image.view\")) {\n $this->printUploadImage();\n }\n break;\n default:\n if (Context::hasRole(\"user.image.view\")) {\n $this->printSelectImageView();\n }\n break;\n }\n }", "public function personHistoryView(){\n $this->view('auditor/personHistoryView');\n \n $this->view->render(); // This is how load the view\n }", "public function views()\n {\n }", "public function views()\n {\n }", "public function views()\n {\n }", "public function show(test_records $test_records)\n {\n //\n }", "function showView()\n\t{\n\t\ttrigger_error(\"showView() is not implemented\");\n\t}", "public function show() {\n $view = $this->model->record($id);\n return view('persons/record', compact('view'));\n }", "public function actionView() {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\n }", "public function edit(Record $record)\n {\n //\n }", "public static function view($item_id) { Events::view($item_id); }", "public function showAddNewRecordPage() {\n\n $permissions = $this->permission();\n $access = FALSE;\n foreach ($permissions as $per) {\n if ($per->permission == 'user-add-show') {\n $access = TRUE;\n break;\n }\n }\n if ($access) {\n $this->data['message'] = $this->session->flashdata('message');\n $this->set_view('user/add_new_record_page',$this->data);\n } else {\n echo \"access denied\";\n }\n }", "public function actionView()\n {\n $this->render('view', array(\n 'model' => $this->loadModel(),\n ));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function showEdit()\n {\n\n }", "function view( $id = NULL )\n {\n\tif ( !is_numeric( $id ) ) {\n\t $result = $this->_get( 'id' );\n\t $data = $this->page_settings( 'edit', $result, 'result', 'Edit', 'mdl_auth' );\n\t} else {\n\t $result = $this->get_where( $id );\n\t $data = $this->page_settings( 'edit', $result, 'result', 'Edit', 'mdl_auth' );\n\t}\n\n\t$this->templates->frontend( $data );\n }", "public function actionView()\n {\n $id=(int)Yii::$app->request->get('id');\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function index()\n\t{\n\t\t$this->view($this->user_id);\n\t}", "public function editRecord() {\n \n $permissions = $this->permission();\n $access = FALSE;\n foreach ($permissions as $per) {\n if ($per->permission == 'user-edit') {\n $access = TRUE;\n break;\n }\n }\n if ($access) {\n $id = $this->uri->segment(3);\n $user = $this->UserModel->getRecord($id);\n $permission_group = $this->UserModel->getUserType($user->id);\n $user->user_role = $permission_group->user_type;\n $this->data['result'] = $user;\n $this->set_view('user/edit_record_page',$this->data);\n } else {\n echo \"access denied\";\n }\n }", "public function actionView()\n\t{\n\t\t$model = $this->loadModel();\n\t\t$this->render('view',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function actionIndex(){\n\t\t$this->render('index',array('model'=>Yii::app()->user->record));\n\t}", "public function oldviewAction() {\n\t\t$id = (int)$this->_request->getParam('id');\n\t\tPageTitle::setTitle($this->view, $this->_request, array($id));\n\t\t$debugdate = $this->_request->getParam('debugdate');\n\t\t$layout = trim($this->_request->getParam('layout',''));\n\t\t\n\t\t$taFinder = new TeachingActivities();\n\t\t$ta = $taFinder->getTa($id);\n\t\t\n\t\tif ($ta->isReleased() != true) {\n\t\t\tthrow new Exception(\"Teaching activity $id is not released yet.\");\n\t\t}\n\t\t\n\t\t$this->view->ta = $ta;\n\n\t\t$resourceError = false;\n\t\ttry {\n\t\t\t$resourceService = new MediabankResourceService();\n\t\t\t$resources = $resourceService->getResources($id, 'ta');\n\t\t\t$allowAddResources = $resourceService->allowAdd();\n\t\t} catch (Exception $ex) {\n\t\t\t$resourceError = true;\n\t\t\t$resources = array();\n\t\t\t$allowAddResources = false;\n\t\t}\n\t\t$this->view->allowAddResources = $allowAddResources;\n\t\t$this->view->resourceError = $resourceError;\n\t\t$this->view->resources = $resources;\n\t\t\n\t\t//Check if user is a staff\n\t\t$this->view->isStaffOrAbove = UserAcl::isStaffOrAbove();\n //Store ACL for each resource action which can be accessed by the current user\n //And allow/disallow those actions. \n\t\t$this->view->resourceAcl = ResourceAcl::accessAll(array('type'=>'ta','auto_id'=>$id));\n\n\t\t$this->view->revisions = $taFinder->getTaRevisions($ta->taid);\n\t\t$this->view->released_los = $ta->getLinkedLearningObjectiveWithStatus(Status::$RELEASED);\n\t\t$this->view->title = 'Teaching Activity - '.$ta->auto_id;\n\t\t\n\t\t$studentEvaluateService = new StudentEvaluateService();\n\t\t$this->view->taEvaluations = $studentEvaluateService->getEvaluationForTaId($id);\n\n\t\t$this->view->isMyTa = Utilities::isMyTa($ta);\n\t\t$this->view->debugdate = $debugdate;\n\n if(!empty($layout)) {\n switch($layout) {\n case 'pblview': \n $this->view->pblTaTypePrev = $this->_request->getParam('pblTaTypePrev','');\n $this->view->pblTaTypeNext = $this->_request->getParam('pblTaTypeNext','');\n $this->render('pblview');\n break;\n }\n }\n\t}", "public function viewAclAction()\n {\n \tif($this->getRequest()->getParam('id')){\n \t\t$db = new Rsvacl_Model_DbTable_DbAcl();\n \t\t$acl_id = $this->getRequest()->getParam('id');\n \t\t$rs=$db->getAcl($acl_id);\n \t\t$this->view->rs=$rs;\n \t} \t \n \t\n }", "public function executeView()\n {\n $staff = $this->getUser()->isAuthenticated() && $this->getuser()->hasCredential('staff');\n $permalink = $this->getRequestParameter('permalink');\n\n if ($type = $this->getRequestParameter(\"latest\"))\n {\n $this->article = $article = ArticlePeer::retrieveLatestByType($this->getRequestParameter(\"type\"));\n }\n else\n {\n $this->article = $article = ArticlePeer::retrieveByPermalink($permalink, $staff);\n }\n \n $this->forward404Unless($article);\n\n if ($this->article->getArticleType() == ArticlePeer::INTERNAL_ARTICLE)\n {\n $this->forward404Unless($staff);\n }\n }", "public function view() {\n\n $this->db->where('VCIF', 'XYZ');\n $q = $this->db->get('STRUCTURE')->result();\n }", "public function getAction()\n {\n \t$id = $this->getRequest()->getParam('id');\n\t\t$this->_objectMapper->find($id, $this->_object);\n $this->view->question = $this->_object;\n\t\t$this->view->isMarked = $this->_objectMapper->isMarked($id);\n }", "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 show(reciclaeducate $reciclaeducate)\n {\n //\n }", "public function view() {\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $records = $em->getRepository('dswEvalBundle:Record')->findAll();\n\n return $this->render('record/index.html.twig', array(\n 'records' => $records,\n ));\n }", "function viewrec($recid)\r\n{\r\n\t$res = sql_select();\r\n \t$count = sql_getrecordcount();\r\n \tmysqli_data_seek($res, $recid);\r\n \t$row = mysqli_fetch_assoc($res);\r\n\t$prodcode = $row[\"prod_code\"];\r\n\t$field=\"prod_code\";\r\n\t//echo \"ViewRec : Rec ID :\".$recid.\" Count=\".$count.\"<br>\";\r\n \tshowrecnav(\"view\", $recid, $count);\r\n?>\r\n\t<br>\r\n<?php\r\n\tshowrow($row, $recid); \r\n\t\r\n\t\r\n?>\r\n\t<br>\r\n\r\n\t<?php\r\n \t\tmysqli_free_result($res);\r\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function actionView()\n\t{\n\t\t$this->render('view',array(\n\t\t\t'model'=>$this->loadModel(),\n\t\t));\n\t}", "public function view()\n {\n //\n }", "public function add_record()\n {\n $data['main_content'] = $this->type.'/'.$this->viewname.'/add';\n\t $this->load->view($this->type.'/assets/template',$data);\n }", "public function view() {\n\t\treturn;\n\t}", "public function index()\n\t{\n parent::show();\n\t\t//\n\t}", "function client_view($id = null) {\n\t\t$this->admin_view($id);\n\t}", "protected function view($view) {\n\n //Page subtitle\n switch($view) {\n case \"create\" :\n $this->page_subtitle = \"Create \".$this->model_name;\n break;\n case \"edit\" :\n $this->page_subtitle = \"Amend \".$this->model_name;\n break;\n\n case \"show\" :\n $this->page_subtitle =\"View \".$this->model_name;\n break;\n case \"list\" :\n $this->page_subtitle = \"List \".$this->model_name;\n break;\n case \"permissions\" :\n $this->page_subtitle = $this->model_name. \" Permissions\";\n break;\n }\n \n }", "function editads() \n\t{\n\t\t$view = $this->getView('ads');\n\t\t// Get/Create the model\n\t\tif ($model = $this->getModel('editads'))\n\t\t{\n\t\t\t//Push the model into the view (as default)\n\t\t\t//Second parameter indicates that it is the default model for the view\n\t\t\t$view->setModel($model, true);\n\t\t}\n\t\t$view->setLayout('adslayout');\n\t\t$view->editads();\n\t}", "function lb_show_add_record_page_action() {\n\tlb_show_templates(\n\t\tarray(\n\t\t\t'name' => 'add',\n\t\t)\n\t);\n}" ]
[ "0.7161275", "0.6696204", "0.6651303", "0.6442691", "0.64364904", "0.63876003", "0.63259274", "0.6299598", "0.6234117", "0.6228426", "0.6212987", "0.6208197", "0.6180099", "0.61563236", "0.61516845", "0.61410177", "0.6123241", "0.6117847", "0.6115944", "0.6102322", "0.60989136", "0.60596013", "0.6054693", "0.60496753", "0.60217845", "0.60044664", "0.5971962", "0.5970004", "0.59698147", "0.59634274", "0.5963073", "0.59493643", "0.5948878", "0.5943561", "0.59290284", "0.59140795", "0.5911631", "0.5894419", "0.58835423", "0.5881592", "0.58745605", "0.58745605", "0.58740026", "0.5873911", "0.58660805", "0.58543557", "0.58521885", "0.58482677", "0.5844774", "0.58438766", "0.5842806", "0.58423954", "0.5832502", "0.58322203", "0.5824011", "0.58142275", "0.58123493", "0.5811482", "0.5810055", "0.58075684", "0.58075684", "0.5807328", "0.5802331", "0.5801921", "0.58018756", "0.579925", "0.57900554", "0.5781255", "0.5774433", "0.5773833", "0.57691467", "0.5768114", "0.5764464", "0.57643014", "0.5764192", "0.5755861", "0.57543015", "0.57531446", "0.57520235", "0.5750533", "0.574039", "0.57332444", "0.57307357", "0.5729884", "0.5727133", "0.5720555", "0.5719686", "0.57114375", "0.5708657", "0.5708657", "0.5708657", "0.5708657", "0.5708657", "0.5705869", "0.5704776", "0.56985897", "0.56920254", "0.56918734", "0.5684598", "0.5682287", "0.5681912" ]
0.0
-1
SHOWS A FROM, AND HANDLES SAVING IT
function create( $id = false ) { $this->load->library('form_validation'); switch ( $_SERVER ['REQUEST_METHOD'] ) { case 'GET': $fields = $this->model_group->fields(); $this->template->assign( 'action_mode', 'create' ); $this->template->assign( 'group_fields', $fields ); $this->template->assign( 'metadata', $this->model_group->metadata() ); $this->template->assign( 'table_name', 'Group' ); $this->template->assign( 'template', 'form_group' ); $this->template->display( 'frame_admin.tpl' ); break; /** * Insert data TO group table */ case 'POST': $fields = $this->model_group->fields(); /* we set the rules */ /* don't forget to edit these */ $this->form_validation->set_rules( 'group_name', lang('group_name'), 'required|max_length[255]' ); $this->form_validation->set_rules( 'permission', lang('permission'), 'required' ); $data_post['group_name'] = $this->input->post( 'group_name' ); $data_post['permission'] = $this->input->post( 'permission' ); if ( $this->form_validation->run() == FALSE ) { $errors = validation_errors(); $this->template->assign( 'errors', $errors ); $this->template->assign( 'action_mode', 'create' ); $this->template->assign( 'group_data', $data_post ); $this->template->assign( 'group_fields', $fields ); $this->template->assign( 'metadata', $this->model_group->metadata() ); $this->template->assign( 'table_name', 'Group' ); $this->template->assign( 'template', 'form_group' ); $this->template->display( 'frame_admin.tpl' ); } elseif ( $this->form_validation->run() == TRUE ) { $insert_id = $this->model_group->insert( $data_post ); redirect( 'group' ); } break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function from($from);", "protected function setFrom() {}", "public function hasFrom() {\n return $this->_has(2);\n }", "public function hasFrom() {\n return $this->_has(2);\n }", "public function hasFrom() {\n return $this->_has(2);\n }", "public function hasFrom() {\n return $this->_has(2);\n }", "public function hasFrom() {\n return $this->_has(2);\n }", "function transferCardFromTo($card, $owner_to, $location_to, $bottom_to=false, $score_keyword=false) {\n if ($location_to == 'deck') { // We always return card at the bottom of the deck\n $bottom_to = true;\n }\n \n $id = $card['id'];\n $age = $card['age'];\n $color = $card['color'];\n $owner_from = $card['owner'];\n $location_from = $card['location'];\n $position_from = $card['position'];\n $splay_direction_from = $card['splay_direction'];\n \n // Determine the splay direction of destination if any\n if ($location_to == 'board') {\n // The card must continue the current splay\n $splay_direction_to = self::getCurrentSplayDirection($owner_to, $color);\n }\n else { // $location_to != 'board'\n $splay_direction_to = 'NULL';\n }\n \n // Filters for cards of the same family: the cards of the decks are grouped by age, whereas the cards of the board are grouped by player and by color\n // Filter from\n $filter_from = self::format(\"owner = {owner_from} AND location = '{location_from}'\", array('owner_from' => $owner_from, 'location_from' => $location_from));\n switch ($location_from) {\n case 'deck':\n case 'hand':\n case 'score':\n $filter_from .= self::format(\" AND age = {age}\", array('age' => $age));\n break;\n case 'board':\n $filter_from .= self::format(\" AND color = {color}\", array('color' => $color));\n break;\n default:\n break;\n }\n \n // Filter to\n $filter_to = self::format(\"owner = {owner_to} AND location = '{location_to}'\", array('owner_to' => $owner_to, 'location_to' => $location_to));\n switch ($location_to) {\n case 'deck':\n case 'hand':\n case 'score':\n $filter_to .= self::format(\" AND age = {age}\", array('age' => $age));\n break;\n case 'board':\n $filter_to .= self::format(\" AND color = {color}\", array('color' => $color));\n break;\n default:\n break;\n }\n \n // Get the position of destination and update some other card positions if needed\n if ($bottom_to) { // The card must go to bottom of the location: update the position of the other cards accordingly\n // Execution of the query\n self::DbQuery(self::format(\"\n UPDATE\n card\n SET\n position = position + 1\n WHERE\n {filter_to}\n \",\n array('filter_to' => $filter_to)\n ));\n $position_to = 0;\n }\n else { // $bottom_to is false\n // new_position = number of cards in the location\n $position_to = self::getUniqueValueFromDB(self::format(\"\n SELECT\n COUNT(position)\n FROM\n card\n WHERE\n {filter_to}\n \",\n array('filter_to' => $filter_to)\n )); \n }\n\n // Execute the transfer\n self::DbQuery(self::format(\"\n UPDATE\n card\n SET\n owner = {owner_to},\n location = '{location_to}',\n position = {position_to},\n selected = FALSE,\n splay_direction = {splay_direction_to}\n WHERE\n id = {id}\n \",\n array('owner_to' => $owner_to, 'location_to' => $location_to, 'position_to' => $position_to, 'id' => $id, 'splay_direction_to' => $splay_direction_to)\n ));\n \n // Update the position of the cards of the location the transferred card came from to fill the gap\n self::DbQuery(self::format(\"\n UPDATE\n card\n SET\n position = position - 1 \n WHERE\n {filter_from} AND\n position > {position_from}\n \",\n array('filter_from' => $filter_from, 'position_from' => $position_from)\n ));\n\n \n $transferInfo = array(\n 'owner_from' => $owner_from, 'location_from' => $location_from, 'position_from' => $position_from, 'splay_direction_from' => $splay_direction_from, \n 'owner_to' => $owner_to, 'location_to' => $location_to, 'position_to' => $position_to, 'splay_direction_to' => $splay_direction_to, \n 'bottom_to' => $bottom_to, 'score_keyword' => $score_keyword\n );\n \n // Update the current state of the card\n $card['owner'] = $owner_to;\n $card['location'] = $location_to;\n $card['position'] = $position_to; \n $card['splay_direction'] = $splay_direction_to;\n \n $current_state = $this->gamestate->state();\n if ($current_state['name'] != 'gameSetup') {\n try {\n self::updateGameSituation($card, $transferInfo);\n }\n catch (EndOfGame $e) {\n self::trace('EOG bubbled from self::transferCardFromTo');\n throw $e; // Re-throw exception to higher level\n }\n finally {\n // Determine if the loss of the card from its location of depart breaks a splay. If it's the case, change the splay_direction of the remaining card to unsplay (a notification being sent).\n if ($location_from == 'board' && $splay_direction_from > 0) {\n $number_of_cards_in_pile = self::getUniqueValueFromDB(self::format(\"\n SELECT\n COUNT(*)\n FROM\n card\n WHERE\n owner={owner_from} AND\n location='board' AND\n color={color}\n \",\n array('owner_from'=>$owner_from, 'color'=>$color)\n ));\n \n if ($number_of_cards_in_pile <= 1) {\n self::splay($owner_from, $color, 0); // Unsplay\n }\n }\n }\n }\n return $card;\n }", "function mFROM(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$FROM;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:146:3: ( 'from' ) \n // Tokenizer11.g:147:3: 'from' \n {\n $this->matchString(\"from\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public function hasFrom() {\n return $this->_has(1);\n }", "public function hasFrom() {\n return $this->_has(1);\n }", "public function from($from)\n\t{\n\t\tforeach ((array) $from as $val)\n\t\t{\n\t\t\tif (strpos($val, ',') !== FALSE)\n\t\t\t{\n\t\t\t\tforeach (explode(',', $val) as $v)\n\t\t\t\t{\n\t\t\t\t\t$v = trim($v);\n\t\t\t\t\t$this->_track_aliases($v);\n\n\t\t\t\t\t$this->qb_from[] = $v = $this->protect_identifiers($v, TRUE, NULL, FALSE);\n\n\t\t\t\t\tif ($this->qb_caching === TRUE)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->qb_cache_from[] = $v;\n\t\t\t\t\t\t$this->qb_cache_exists[] = 'from';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$val = trim($val);\n\n\t\t\t\t// Extract any aliases that might exist. We use this information\n\t\t\t\t// in the protect_identifiers to know whether to add a table prefix\n\t\t\t\t$this->_track_aliases($val);\n\n\t\t\t\t$this->qb_from[] = $val = $this->protect_identifiers($val, TRUE, NULL, FALSE);\n\n\t\t\t\tif ($this->qb_caching === TRUE)\n\t\t\t\t{\n\t\t\t\t\t$this->qb_cache_from[] = $val;\n\t\t\t\t\t$this->qb_cache_exists[] = 'from';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setFrom($from) {\r\n\t\t$this->from = $from;\r\n\t}", "public function setFrom($from) {\r\n $this->from = $from;\r\n }", "function copy($from) {\n if ($this->debug) print($this->debugbeg . \"copy(\\$from)<HR>\\n\");\n $this->name = $from->name;\n $this->artists = $from->artists;\n $this->album = $from->album;\n $this->year = $from->year;\n $this->comment = $from->comment;\n $this->track = $from->track;\n $this->genre = $from->genre;\n $this->genreno = $from->genreno;\n if ($this->debug) print($this->debugend);\n }", "private function move($from, $to)\n\t{\n\t\t$marble = & $this->board[$from[0]][$from[1]];\n\t\t$dest = & $this->board[$to[0]][$to[1]];\n\t\t\n\t\t$jump0 = $from[0];\n\t\t$jump1 = $from[1];\n\t\t\n\t\tif($from[0] < $to[0])\n\t\t{\n\t\t\t$jump0++;\n\t\t}\n\t\telseif($from[0] > $to[0])\n\t\t{\n\t\t\t$jump0--;\n\t\t}\n\t\telseif($from[1] < $to[1])\n\t\t{\n\t\t\t$jump1++;\n\t\t}\n\t\telseif($from[1] > $to[1])\n\t\t{\n\t\t\t$jump1--;\n\t\t}\n\t\t\n\t\t$jump = & $this->board[$jump0][$jump1];\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif($marble->hasMarble && $jump->hasMarble && !$dest->hasMarble)\n\t\t\t{\n\t\t\t\t$marble->hasMarble = false;\n\t\t\t\t$jump->hasMarble = false;\n\t\t\t\t$dest->hasMarble = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tif($this->renderPlay)\n\t\t\t{\n\t\t\t\techo $this->renderBoard();\n\t\t\t}\n\t\t\t\n\t\t\t$this->moves[] = array($from, $to);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception $e) // Not a valid move\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "private static function duplicateRecord($from, $to) {\n $fields = $from->as_array();\n unset($fields['id']);\n foreach ($fields as $name => $value) {\n $to->$name = $value;\n }\n\n return $to;\n }", "function From( $from )\r\n\t\t{\r\n\t\t$res = true;\r\n\t\t$this->from= $from;\r\n\t\tif( $this->checkAddress == true )\r\n\t\t\t$res = $this->CheckAdresses( $this->from );\r\n\t\treturn $res;\r\n\t\t}", "private function sql_from()\n {\n // Get table and field\n list( $table ) = explode( '.', $this->curr_tableField );\n // Flexform configuration\n $conf_flexform = $this->pObj->objFlexform->sheet_viewList_total_hits;\n\n // SWITCH\n switch ( true )\n {\n // 3.9.25, 120506, dwildt+\n case(!empty( $this->pObj->conf_sql[ 'andWhere' ] ) ):\n case( $this->pObj->localTable != $table ) :\n case( $conf_flexform == 'controlled' ) :\n case( isset( $this->pObj->piVars[ 'sword' ] ) ):\n $from = $this->pObj->objSqlInit->statements[ 'listView' ][ 'from' ];\n break;\n case( $conf_flexform == 'independent' ) :\n $from = $table;\n break;\n default;\n $header = 'FATAL ERROR!';\n $text = 'Undefined value: \"' . $conf_flexform . '\".';\n $this->pObj->drs_die( $header, $text );\n break;\n }\n // SWITCH\n\n $from = $from\n . $this->sql_fromRadialsearch()\n ;\n\n return $from;\n }", "public function from($fromData)\n {\n \t $this->_from = $this->clean($fromData);\n\n \t return $this;\n }", "private function addQueryFilter($fromValue, $toValue)\n {\n $sellerIdFilter = $this->queryFactory->create(\n QueryInterface::TYPE_TERM,\n ['field' => 'offer.seller_id', 'value' => $this->getRetailerId()]\n );\n $mustClause = ['must' => [$sellerIdFilter]];\n\n $rangeFilter = $this->queryFactory->create(\n QueryInterface::TYPE_RANGE,\n ['field' => 'offer.price', 'bounds' => ['gte' => $fromValue, 'lte' => $toValue]]\n );\n $mustClause['must'][] = $rangeFilter;\n\n $boolFilter = $this->queryFactory->create(QueryInterface::TYPE_BOOL, $mustClause);\n $nestedFilter = $this->queryFactory->create(QueryInterface::TYPE_NESTED, ['path' => 'offer', 'query' => $boolFilter]);\n\n $this->getLayer()->getProductCollection()->addQueryFilter($nestedFilter);\n }", "abstract public function withholdTargets();", "protected function setTo() {}", "public function getFrom();", "public function getFrom();", "function select_into($newtable, $fromcolumns, $oldtable=null, ...$fromwhere) {\n\t\t$this->isinto = true; \n\t\tif (isset($oldtable))\n\t\t\t$this->fromtable = $oldtable;\n\t\telse {\n\t\t\t$this->setParamaters();\n return false; \t\t\t\n\t\t} \n\t\t\t\n $newtablefromtable = $this->select_sql($newtable, $fromcolumns, ...$fromwhere);\n if (is_string($newtablefromtable))\n return (($this->getPrepare()) && !empty($this->getprepared())) ? $this->query($newtablefromtable, true) : $this->query($newtablefromtable); \n else {\n\t\t\t$this->setParamaters();\n return false; \t\t\t\n\t\t} \n }", "public function from(string $from) : self\n {\n // $from can either be\n // a) a field name indicating a reference to a different document. Currently, only REFERENCE_STORE_AS_ID is supported\n // b) a Class name\n // c) a collection name\n // In cases b) and c) the local and foreign fields need to be filled\n if ($this->class->hasReference($from)) {\n return $this->fromReference($from);\n }\n\n // Check if mapped class with given name exists\n try {\n $this->targetClass = $this->dm->getClassMetadata($from);\n } catch (BaseMappingException $e) {\n $this->from = $from;\n return $this;\n }\n\n if ($this->targetClass->isSharded()) {\n throw MappingException::cannotUseShardedCollectionInLookupStages($this->targetClass->name);\n }\n\n $this->from = $this->targetClass->getCollection();\n return $this;\n }", "public function scopeFrom($query, $from) {\n return $query->where('events.start_date_hour', '>=', $from);\n }", "public function from($from = false)\n {\n $this->from = $from;\n return $this;\n }", "function joinQuery()\n {\n }", "protected function setFrom(Query $query, QueryBuilder $qb)\n {\n $useFrom = true;\n foreach ($query->getFrom() as $from) {\n if ($from == '*') {\n $useFrom = false;\n }\n }\n if ($useFrom) {\n $qb->andWhere($qb->expr()->in('search.alias', $query->getFrom()));\n }\n }", "public function has_many($from_table, $to_table) {\r\n $result = true;\r\n $trough_table = $from_table . '_' . $to_table;\r\n $result = $result && $this->create_table($trough_table, array());\r\n $result = $result && $this->belongs_to($trough_table, $from_table);\r\n $result = $result && $this->belongs_to($trough_table, $to_table);\r\n return $result;\r\n }", "public function moveAsFirstChildOf(Doctrine_Record $dest);", "#[@test]\n public function withFrom() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation :from \"[email protected]\" \"I\\'ll be back\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertEquals('[email protected]', $action->from);\n $this->assertEquals('I\\'ll be back', $action->reason);\n }", "public function setFrom($from) {\n\t\t$this->attributes['from'] = $from;\n\t\t$this->from = $from;\n\t\treturn $this;\n\t}", "public function setFrom($from)\n {\n $this->from = $from;\n\n return $this;\n }", "public function setFrom($from)\n {\n $this->from = $from;\n\n return $this;\n }", "public function setFrom($from)\n {\n $this->from = $from;\n\n return $this;\n }", "function enterObject($target, $method) {\n\t\t//for buildings, it's \"enter\"\n\t\t$obj = new Obj($this->mysqli, $target);\n\t\t$rule = $obj->getGroupRule($method);\n\t\tif (!$rule) return -1;//nobody can join\n\t\tif ($rule==2) {\n\t\t\t//invitation only\n\t\t\t$cr = $this->getCharRule($target, 2);//right to join\n\t\t\tif ($cr<1) return -2;//You can't join\n\t\t\t//otherwise it's okay to continue\n\t\t}\n\t\t//rule is 2 and you are invited OR rule is 1 and everybody is invited\n\t\t$sql = \"UPDATE `objects` SET `global_x`=NULL, `global_y`=NULL, `local_x`=0, `local_y`=0, `parent`=$target WHERE `uid`=$this->bodyId LIMIT 1\";\n\t\t$this->mysqli->query($sql);\n\t\tif ($this->mysqli->affected_rows==0) {\n\t\t\treturn -3;//enter failed\n\t\t}\n\t\telse {\n\t\t\t$this->x = NULL;\n\t\t\t$this->y = NULL;\n\t\t\t$this->localx = 0;\n\t\t\t$this->localy = 0;\n\t\t\t$this->building = $target;\n\t\t\t$this->updateCharLocTime(NULL, NULL, 0, 0, $target, 2, 0);\n\t\t\treturn 1;//success\n\t\t}\n\t}", "public function payrent($from,$to,$rent){\n $to->collect($from->pay($rent));\n }", "public function move($from, $to)\n\t{\n\t\t$ret = $this->copy($from, $to);\n\n\t\tif ($ret)\n\t\t{\n\t\t\t$ret = $this->delete($from);\n\t\t}\n\n\t\treturn $ret;\n\t}", "function stocks_pre_boucle($boucle) {\n $id_table = $boucle->id_table;\n\n //Savoir si on consulté la table organisations_liens\n if ($jointure = array_keys($boucle->from, 'spip_stocks')) {\n //Vérifier qu'on est bien dans le cas d'une jointure automatique\n if (isset($boucle->join[$jointure[0]])\n and isset($boucle->join[$jointure[0]][3])\n and $boucle->join[$jointure[0]]\n and $boucle->join[$jointure[0]][3]\n ) {\n //Le critere ON de la jointure (index 3 dans le tableau de jointure) est incompléte\n //on fait en sorte de retomber sur ses pattes, en indiquant l'objet à joindre\n $boucle->join[$jointure[0]][3] = \"'L1.objet='.sql_quote('\".objet_type($id_table).\"')\";\n\t\t}\n }\n\n return $boucle;\n}", "public static function copyLanding($from, $to)\n\t{\n\t\t$originalEditMode = self::$editMode;\n\t\tif (!self::$editMode)\n\t\t{\n\t\t\tself::$editMode = true;\n\t\t}\n\t\tself::copy($from, $to, self::ENTITY_TYPE_LANDING);\n\t\tself::$editMode = $originalEditMode;\n\t}", "public function addUseStatementToFile(SplFileInfo $to, SplFileInfo $from)\n {\n $namespace = self::getNamespaceOfFile($from);\n $fullNamespace = $namespace . '\\\\' . str_replace('.php', '', $from->getFilename());\n if (\n ! $this->classHasUseStatement($to, $fullNamespace) &&\n self::getNamespaceOfFile($to) !== self::getNamespaceOfFile($from)\n ) {\n $file_contents = file_get_contents($to->getRealPath());\n $use = '/' . preg_quote('use', '/') . '/';\n\n $file_contents = preg_replace($use, \"use {$fullNamespace};\\nuse\", $file_contents, 1);\n file_put_contents($to->getRealPath(), $file_contents);\n }\n }", "public function moveTo($destination) {}", "public function has_many_trough($from_table, $to_table, $trough_table) {\r\n $result = true;\r\n $result = $result && $this->belongs_to($trough_table, $from_table);\r\n $result = $result && $this->belongs_to($trough_table, $to_table);\r\n return $result;\r\n }", "function getFrom();", "final public function addFrom(YMKM_SQL_Entity_From $s)\n {\n $this->doAddFrom($s);\n return $this;\n }", "public function hasTo() {\n return $this->_has(2);\n }", "function contentjoiner($what, $from, $contenttojoin, $rid){\n\t$sql='SELECT ids.*';\n\t//everything is connected to a story\n\tif($what=='all' || $what=='stories' || ($what=='tags' && $from!='story' && $from!='comment') || ($what=='comments' && $from!='story' && $from!='comment')){\n\t\t$sql=<<<SQL\n\t\t\t$sql, stories.CreationTime AS SCreation, stories.LastActionTime AS SAction, stories.URL,\n\t\t\tstories.Title, stories.InternalLink,\tstories.TheText AS SText, stories.Extra,\n\t\t\tstories.Privacy AS SPrivacy, stories.NSFW AS SNSFW, sauth.DisplayName AS SDName, sauth.UserName AS SUName\nSQL;\n\t\tif($rid){\n\t\t\t$sql.=', svotes.Sig AS SSig';\n\t\t\tif($_SESSION['IsFollowing'])$sql.=', sfollow.following AS SF';\n\t\t}//end rid\n\t}//end all stories tags....\n\t//do the comments if we need to \n\tif($what=='all' || $what=='comments'){\n\t\t$sql=<<<SQL\n\t\t\t$sql, comments.CreationTime AS CCreation, comments.LastActionTime AS CAction, commenttext.TheText AS CText,\n\t\t\tcomments.Privacy AS CPrivacy, comments.NSFW AS CNSFW, cauth.DisplayName AS CDName, cauth.UserName AS CUName \nSQL;\n\t\tif($rid){\n\t\t\t$sql.=', cvotes.Sig AS CSig';\n\t\t\tif($_SESSION['IsFollowing'])$sql.=', cfollow.Following AS CF';\n\t\t}//end rid\n\t}//end all comments\n\n\t//We've got the initial select statememt now lets get the from information\n\t$sql.=\" FROM ($contenttojoin) AS ids \";\n\n\tif($what=='all' || $what=='stories' || ($what=='tags' && $from!='story' && $from!='comment') || ($what=='comments' && $from!='story' && $from!='comment')){\n\t\t$sql.=<<<SQL\n\t\t\tLEFT JOIN stories ON stories.ID = ids.SID\n\t\t\tLEFT JOIN users AS sauth ON sauth.ID = stories.UserID \nSQL;\n\t\tif($rid){\n\t\t\t$sql.=<<<SQL\n\t\t\t\tLEFT JOIN (SELECT *\n\t\t\t\tFROM votes\n\t\t\t\tWHERE votes.UserID = $rid AND ContentType=0) AS svotes ON svotes.ContentID = stories.ID \nSQL;\n\t\t\tif($_SESSION['IsFollowing']){\n\t\t\t\t$sql.=<<<SQL\n\t\t\t\t\tLEFT JOIN (\n\t\t\t\t\t\tSELECT FollowedID, 1 AS Following\n\t\t\t\t\t\tFROM following\n\t\t\t\t\t\tWHERE FollowerID = $rid\n\t\t\t\t\t) AS sfollow ON sfollow.FollowedID = stories.UserID \nSQL;\n\t\t\t}//end $_SESSION\n\t\t}//end rid\n\t}//end all stories\n\tif($what=='all' || $what=='comments'){\n\t\t$sql.=<<<SQL\n\t\t\tLEFT JOIN comments ON comments.ID = ids.CID\n\t\t\tLEFT JOIN users AS cauth on cauth.ID = comments.UserID\n\t\t\tLEFT JOIN commenttext ON commenttext.ID = comments.ID \nSQL;\n\t\tif($rid){\n\t\t\t$sql.=<<<SQL\n\t\t\t\tLEFT JOIN (\n\t\t\t\t\tSELECT *\n\t\t\t\t\tFROM votes\n\t\t\t\t\tWHERE votes.UserID = $rid AND ContentType=1) AS cvotes ON cvotes.ContentID = comments.ID \nSQL;\n\t\t\tif($_SESSION['IsFollowing']){\n\t\t\t\t$sql.=<<<SQL\n\t\t\t\t\tLEFT JOIN (\n\t\t\t\t\t\tSELECT FollowedID, 1 AS Following\n\t\t\t\t\t\tFROM following\n\t\t\t\t\t\tWHERE FollowerID = $rid) AS cfollow ON cfollow.FollowedID = comments.UserID \nSQL;\n\t\t\t}//end $_SESSION\n\t\t}//end rid\n\t}//end all comments\n\n\treturn $sql;\n}", "function _getItemSearchFromStmt() {\n $sql = 'FROM plugin_docman_item AS i'.\n ' LEFT JOIN plugin_docman_version AS v'.\n ' ON (i.item_id = v.item_id)'.\n ' LEFT JOIN plugin_docman_version AS v2'.\n ' ON (v2.item_id = v.item_id AND v.number < v2.number) ';\n return $sql;\n }", "function extractdatalaporans($from, $to) {\n\t\t$db;\n\t\ttry {\n\t\t\t$db = connect_pdo();\n\t\t}\n\t\tcatch (PDOException $ex) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$string_prep_query = \"SELECT id, title, picture_url, description, `date`, caleg_id_API, latitude, longitude, party_id_API, user_id , area_id_API, coalesce(counter, 0) as sharecounter\n\t\t\t\tFROM report_tbl\n\t\t\t\tLEFT OUTER JOIN (\n\t\t\t\t\tSELECT report_id, count(*) as counter FROM shares_tbl GROUP BY report_id\n\t\t\t\t) tb2\n\t\t\t\tON report_tbl.id = tb2.report_id\n\t\t\t\torder by date desc\n\t\t\t\tlimit :from, :to;\";\n\t\t\n\t\t$prepared = $db->prepare($string_prep_query);\n\t\t$prepared->bindParam(\":from\", $from, PDO::PARAM_INT);\n $prepared->bindParam(\":to\", $to, PDO::PARAM_INT);\n\t\t$status = $prepared->execute();\n\t\t\n\t\t/*if($status)\n\t\t\tcetakDataPesanan($prepared->fetch());\n\t\t\n\t\t$db = null;\n\t\treturn $status;*/\n\t\t$ret = $prepared->fetchAll();\n\t\t$db = null;\n\t\treturn $ret;\n\t}", "function getTransferInfoWithOnePlayerInvolved($location_from, $location_to, $bottom_to, $you_must, $player_must, $player_name, $number, $cards, $targetable_players) {\n if ($location_from == $location_to && $location_from = 'board') { // Used only for Self service\n $message_for_player = clienttranslate('{You must} choose {number} other top {card} from your board');\n $message_for_others = clienttranslate('{player must} choose {number} other top {card} from his board'); \n }\n else if ($targetable_players !== null) { // Used when several players can be targeted\n switch($location_from . '->' . $location_to) {\n case 'score->deck':\n $message_for_player = clienttranslate('{You must} return {number} {card} from the score pile of {targetable_players}');\n $message_for_others = clienttranslate('{player must} return {number} {card} from the score pile of {targetable_players}');\n break;\n \n case 'board->deck':\n $message_for_player = clienttranslate('{You must} return {number} top {card} from the board of {targetable_players}');\n $message_for_others = clienttranslate('{player must} return {number} top {card} from the board of {targetable_players}');\n break;\n\n case 'board->score':\n $message_for_player = clienttranslate('{You must} transfer {number} top {card} from the board of {targetable_players} to your score pile');\n $message_for_others = clienttranslate('{player must} transfer {number} top {card} from the board of {targetable_players} to his score pile');\n break;\n \n default:\n break;\n }\n }\n else {\n switch($location_from . '->' . $location_to) { \n case 'hand->deck':\n $message_for_player = clienttranslate('{You must} return {number} {card} from your hand');\n $message_for_others = clienttranslate('{player must} return {number} {card} from his hand');\n break;\n case 'hand->hand':\n // Impossible case\n break; \n case 'hand->board':\n if ($bottom_to) {\n $message_for_player = clienttranslate('{You must} tuck {number} {card} from your hand');\n $message_for_others = clienttranslate('{player must} tuck {number} {card} from his hand');\n }\n else {\n $message_for_player = clienttranslate('{You must} meld {number} {card} from your hand');\n $message_for_others = clienttranslate('{player must} meld {number} {card} from his hand');\n }\n break;\n case 'hand->score':\n $message_for_player = clienttranslate('{You must} score {number} {card} from your hand');\n $message_for_others = clienttranslate('{player must} score {number} {card} from his hand');\n break;\n case 'hand->revealed':\n $message_for_player = clienttranslate('{You must} reveal {number} {card} from your hand');\n $message_for_others = clienttranslate('{player must} reveal {number} {card} from his hand');\n break;\n case 'hand->achievements':\n // Impossible case\n break;\n \n case 'board->deck':\n $message_for_player = clienttranslate('{You must} return {number} top {card} from your board');\n $message_for_others = clienttranslate('{player must} return {number} top {card} from his board');\n break;\n case 'board->hand':\n $message_for_player = clienttranslate('{You must} take back {number} top {card} from your board to your hand');\n $message_for_others = clienttranslate('{player must} take back {number} top {card} from his board to his hand');\n break;\n case 'board->board':\n // Impossible case\n break;\n case 'board->score':\n $message_for_player = clienttranslate('{You must} score {number} top {card} from your board');\n $message_for_others = clienttranslate('{player must} score {number} top {card} from his board');\n break;\n case 'board->revealed':\n // Impossible case\n break;\n case 'board->achievements':\n // Impossible case\n break;\n \n case 'score->deck':\n $message_for_player = clienttranslate('{You must} return {number} {card} from your score pile');\n $message_for_others = clienttranslate('{player must} return {number} {card} from his score pile');\n break;\n case 'score->hand':\n $message_for_player = clienttranslate('{You must} transfer {number} {card} from your score pile to your hand');\n $message_for_others = clienttranslate('{player must} transfer {number} {card} from his score pile to his hand');\n break;\n case 'score->board':\n if ($bottom_to) {\n $message_for_player = clienttranslate('{You must} tuck {number} {card} from your score pile');\n $message_for_others = clienttranslate('{player must} tucks {number} {card} from his score pile');\n }\n else {\n $message_for_player = clienttranslate('{You must} meld {number} {card} from your score pile');\n $message_for_others = clienttranslate('{player must} meld {number} {card} from his score pile');\n }\n break;\n case 'score->score':\n // Impossible case\n break;\n case 'score->revealed':\n // Impossible case\n break;\n case 'score->achievements':\n // Impossible case\n break;\n \n case 'revealed->deck':\n $message_for_player = clienttranslate('{You must} return {number} {card} you revealed');\n $message_for_others = clienttranslate('{player must} return {number} {card} he revealed');\n break; \n case 'revealed->hand':\n // Impossible case\n break;\n case 'revealed->board':\n // Impossible case\n break;\n case 'revealed->score':\n // Impossible case\n break;\n case 'revealed->revealed':\n // Impossible case\n break;\n case 'revealed->achievements':\n // Impossible case\n break;\n \n case 'achievements->deck':\n // Impossible case\n break;\n case 'achievements->hand':\n // Impossible case\n break;\n case 'achievements->board':\n // Impossible case\n break;\n case 'achievements->score':\n // Impossible case\n break;\n case 'achievements->revealed':\n // Impossible case\n break;\n case 'achievements->achievements': // That is: unclaimed achievement to achievement claimed by player\n // Impossible case\n break;\n \n case 'revealed,hand->deck': // Alchemy, Physics\n $message_for_player = clienttranslate('{You must} return {number} {card} you revealed and {number} {card} in your hand');\n $message_for_others = clienttranslate('{player must} return {number} {card} he revealed and {number} {card} in his hand');\n break;\n \n case 'hand->revealed,deck': // Measurement\n $message_for_player = clienttranslate('{You must} reveal and return {number} {card} from your hand');\n $message_for_others = clienttranslate('{player must} reveal and return {number} {card} from his hand');\n break;\n \n case 'pile->deck': // Skyscrapers\n $message_for_player = clienttranslate('{You must} return {number} {card} from your board');\n $message_for_others = clienttranslate('{player must} return {number} {card} from his board');\n break;\n \n default:\n break;\n }\n }\n $message_for_player = self::format($message_for_player, array('You must' => $you_must, 'number' => $number, 'card' => $cards, 'targetable_players' => $targetable_players));\n $message_for_others = self::format($message_for_others, array('player must' => $player_must, 'number' => $number, 'card' => $cards, 'targetable_players' => $targetable_players));\n \n return array(\n 'message_for_player' => $message_for_player,\n 'message_for_others' => $message_for_others\n );\n }", "function process_transfer($from_id, $to_id) {\n\t\tglobal $wpdb;\n\t\t$wpdb->query($wpdb->prepare(\"UPDATE {$wpdb->base_prefix}pro_sites_stripe_customers SET blog_id = %d WHERE blog_id = %d\", $to_id, $from_id) );\t\n\t}", "public function from($from)\n {\n $this->from = $from;\n\n return $this;\n }", "public function from($from)\n {\n $this->from = $from;\n\n return $this;\n }", "public function scopeFromTo($query, $from, $to)\n {\n return $query->where([\n ['currency_from', '=', $from],\n ['currency_to', '=', $to]\n ]);\n }", "public function setFrom($from) {\n\t\tif(!empty($from)){\n\t\t\t$this->from = trim($from);\n\t\t} elseif(!empty($_POST['from'])) {\n\t\t\t$this->from = trim($_POST['from']);\n\t\t}\n\t}", "private function mapsTo($from, $to, $wiresDefinition) {\n $mapsTo = false;\n $fromId = $from->getId();\n $toId = $to->getId();\n foreach ($wiresDefinition as $wire) {\n if ($wire->src->module == $fromId && $wire->tgt->module == $toId) {\n $mapsTo = true;\n break;\n }\n }\n return $mapsTo;\n }", "public function createFrom()\n\t{\n\t\t$from = new AgaviFromType();\n\t\t$this->froms[] = $from;\n\t\treturn $from;\n\t}", "function moveTo($list,$indexToMove,$toList){\r\n\t\tif($toList==null) $toList=new LinkedList();\r\n\t\tif($toList->searchObject($list->getIndex($indexToMove))) return false; //Metoda nie przeniesie objektu jeśli miałby on kolidować z innym objektem o tej samej wartości\r\n\t\t\t$movingObject=$list->getIndex($indexToMove);\r\n\t\t\t$list->deleteIndex($indexToMove);\t\t\r\n\t\t\t$toList->insertLastObj($movingObject);\r\n\t\treturn true;\t\r\n\t}", "public function fromAll(): self;", "public function link($from,$to)\n {\n //\n $relation = new Relation;\n\t$relation->from = $from;\n $relation->to = $to;\n\t$relation->save();\n\t\n }", "abstract public function get(Model $from);", "public function canFlow($fromEntity, $toEntity);", "function modifyLimitQuery($query, $from, $count)\n {\n $this->limit_from = $from;\n $this->limit_count = $count;\n return $query;\n }", "private function prepareMineOnly(Level $level, Position $destination) : void{\n $bb = $this->bb->expandedCopy(10, 10, 10);\n foreach($level->getPlayers() as $player){\n if($bb->isVectorInside($player)){\n $player->teleport($destination);\n $this->sendSavedMessage($player);\n }\n }\n }", "function execute( Player $sender, array $args ): bool\r\n\t{\r\n\t\t$main = $this->getManager();\r\n\t\t$wand = Item::get(Item::WOODEN_AXE);\r\n\r\n\t\tif( !$sender->getInventory()->canAddItem($wand) )\r\n\t\t{\r\n\t\t\t$sender->sendMessage($main->getValue('inventory_oversize'));\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\r\n\t\t$sender->getInventory()->addItem($wand);\r\n\t\t$sender->sendMessage($main->getValue('give_wand'));\r\n\t\treturn TRUE;\r\n\t}", "abstract public function belongs_to($from_table, $to_table, $to_column = NULL, $from_column = NULL);", "private function move_tags(&$from, &$to, &$tags) {\n//echo 'from: ' . var_export($from, TRUE) . \" <br/>\\n\";\n//echo 'to: ' . var_export($to, TRUE) . \" <br/>\\n\";\n//echo 'tags: ' . var_export($tags, TRUE) . \" <br/>\\n\";\n foreach ($tags as $tag) \n foreach ($from->getElementsByTagName($tag['from']) as $node) {\n if ($tag['from_attr'])\n $node_val = $node->getAttribute($tag['from_attr']);\n else\n $node_val = $node->nodeValue;\n//echo \"nodeval: $node_val <br/>\\n\";\n if ($tag['bool'])\n $to->{$tag['to']}[]->_value = ($node_val == $tag['bool'] ? 'true' : 'false');\n elseif ($tag['enum'] && isset($tag['enum'][$node_val]))\n $to->{$tag['to']}[]->_value = $tag['enum'][$node_val];\n elseif ($tag['obligatory'])\n $to->{$tag['to']}[]->_value = $node_val;\n elseif ($node_val <> NULL)\n if ($tag['date'] == 'swap')\n $to->{$tag['to']}[]->_value = self::from_zruth_date($node_val);\n elseif ($tag['decimal'])\n $to->{$tag['to']}[]->_value = self::from_zruth_decimal($node_val);\n elseif (empty($tag['non_empty']))\n $to->{$tag['to']}[]->_value = $node_val;\n }\n }", "public function itemTransfer($product,$quantity,$from,$to)\n {\n echo $product->getName().','. $quantity.','.$from->getName().','.$to->getName() . '<br />'; \n $entryDebit = $this->newEntry();\n $entryCredit = $this->newEntry();\n \n $entryCredit->setProduct($product)\n ->setInventoryAccount($from)\n ->setCredit($quantity)\n ->setDebit(0);\n \n $entryDebit->setProduct($product)\n ->setInventoryAccount($to)\n ->setDebit($quantity)\n ->setCredit(0);\n \n return [$entryCredit, $entryDebit];\n }", "public function __construct($from)\n {\n $this->from = $from;\n }", "abstract public function moveAllCardsInLocation(?string $from_location, string $to_location, ?int $from_location_arg = null, int $to_location_arg = 0);", "public function redirectConstellation(&$from, &$to) {\n if ($from == null || $from->getID() == null || $to == null || $to->getID() == null) {\n return false;\n }\n\n if ($this->connector != null) {\n // Find all in-relations to the from constellation\n $result = $this->connector->run(\"MATCH p=()-[]->(b:Identity {id: {icid}}) return p;\",\n [\n 'icid' => \"{$from->getID()}\"\n ]\n );\n\n foreach ($result->getRecords() as $record) {\n $path = $record->pathValue(\"p\");\n\n // Source of relation\n $startID = $path->start()->value(\"id\");\n $startLabels = $path->start()->labels();\n $startType = $startLabels[0] ?? null;\n\n if ($startType == null) {\n throw new \\snac\\exceptions\\SNACDatabaseException(\"Neo4J Node did not have a type\");\n }\n\n if (count($path->relationships()) > 1) {\n $this->logger->addWarning(\"Redirected a Constellation, {$from->getID()}, which had two in-relations from the same source.\");\n }\n // Relationship id/version\n foreach ($path->relationships() as $relation) {\n // Need to know Relation type (ICRELATION, RRELATION, HIRELATION)\n $type = $relation->type();\n\n $data = [];\n\n // Resource Relations have id/version\n if ($relation->hasValue('id'))\n $data[\"id\"] = $relation->value('id');\n if ($relation->hasValue('version'))\n $data[\"version\"] = $relation->value('version');\n\n // Constellation Relations have arcrole\n if ($relation->hasValue('arcrole'))\n $data[\"arcrole\"] = $relation->value('arcrole');\n\n // Add the relation to the other Constellation if the ids are different\n if ($startID != $to->getID()) {\n // Note: matches the two nodes, and if a relation already exists of this type (ICRELATION,\n // RRELATION, HIRELATION) then it will just update that relation and overwrite any\n // values in Neo4J. If the relation doesn't exist, it will instead create the\n // relation with the information.\n $result = $this->connector->run(\"MATCH (a:$startType {id: {id1} }),(b:Identity {id: {id2} })\n MERGE (a)-[r:$type]->(b) SET r += {infos}\",\n [\n 'id1' => $startID,\n 'id2' => \"{$to->getID()}\", // need a string for neo4j\n 'infos' => $data\n ]);\n }\n }\n\n }\n\n $this->deleteConstellation($from);\n\n return true;\n }\n\n return false;\n\n }", "public function from($from)\n {\n $this->modes[] = 'FROM \"' . $from . '\"';\n\n return $this;\n }", "public function setFrom($from)\n {\n $this->_param['from'] = Util::cleanNumber($from);\n return $this;\n }", "abstract public function sellToListManagement();", "public function scopeShift($query)\n {\n \t$query->join(\"tbl_payroll_shift_code\", \"tbl_payroll_shift_code.shift_code_id\", \"=\", \"tbl_payroll_group.shift_code_id\");\n }", "private function insertPlaylistEntry($qID,$from,$to,$split){\n\t\tif ($query = $this->db->prepare ( 'INSERT INTO `playlists` (`qid`,`from`,`to`,`split`) VALUES (?,?,?,?)') ) {\n\t\t\t$query->bind_param ( 'iiii', $qID,$from,$to,$split );\n\t\t\tif($query->execute()){\n\t\t\t\tif($query->affected_rows === 1){\n\t\t\t\t\treturn true;\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->handleError();\n\t}", "public function inOriginal();", "private function _loadFromShadowCopy()\n {\n $sql = Doctrine_Query::create();\n $sql->select('c.id_produs, c.cantitate, p.denumire, p.cod_produs, p.stoc_disponibil, g.foto as foto');\n $sql->addSelect('cc.denumire AS categorie, IF(pm.pret_oferta, pm.pret_oferta, p.pret) AS price');\n $sql->from('CartTrack c');\n $sql->innerJoin('c.Produse p');\n $sql->leftJoin('p.Categorii cc');\n $sql->leftJoin('p.MainPhoto g WITH g.main = 1');\n $sql->leftJoin('p.Promotii pm WITH (pm.data_inceput <= DATE(NOW()) AND pm.data_sfarsit >= DATE(NOW()))');\n if(empty($this->_userId)) {\n $sql->where('session_id = ?', $this->_sessionId);\n }\n else {\n $sql->where('membru_id = ?', $this->_userId);\n }\n \n $shadowCopy = $sql->fetchArray();\n foreach($shadowCopy as &$product) {\n $data = $product['Produse'] + array(\n 'categorie' => $product['categorie'],\n 'foto' => $product['foto'],\n 'price' => $product['price']\n );\n $this->_addToBasket($data, $product['cantitate'], false);\n }\n }", "function fn_warehouses_get_store_locations_for_shipping_before_select($destination_id, $fields, $joins, &$conditions)\n{\n $conditions['not_warehouse'] = db_quote('store_type <> ?s', Manager::STORE_LOCATOR_TYPE_WAREHOUSE);\n}", "private function includes()\n {\n }", "public function populateMatchStandingsBetweenDates($to,$from){\n\t\t $team = new Application_Model_Mapper_Team();\n\t\t //cath all teams\n\t\t $teamList=$team->fetchAll();\n\t\t $prosGoal= null;\n\t\t $agaistGoal=null;\n\t\t if(count($teamList)>0){\n\t\t \t foreach($teamList as $row){\n\t\t \t \t //begin team statistics by 0\n\t\t \t \t $row->setWins(0);\n\t\t \t \t $row->setLosses(0);\n\t\t \t \t $row->setPoints(0);\n\t\t \t \t $row->setDraws(0);\n\t\t \t \t //catch all matches by team\n\t\t $championship = $this->seachMatchByTeamBetweenDates($row->getId(),$to,$from);\n\t\t foreach ($championship as $match) {\n\t\t \t //if a team is a visitor team goals of visitor team it is\n\t\t \t $prosGoal=$match['goalVisitorTeam'];\n\t\t \t $agaistGoal=$match['goalHomeTeam'];\n\t\t \t //if a team is a home team goals of home team it is\n\t\t \t if($match['idHomeTeam']==$row->getId()){\n\t\t \t \t $prosGoal=$match['goalHomeTeam'];\n\t\t \t \t $agaistGoal=$match['goalVisitorTeam'];\n\t\t \t }\n\t\t \t //if team win\n\t\t \t if($agaistGoal<$prosGoal){\n\t\t \t \t$row->setWins($row->getWins()+1);\n\t\t \t \t$row->setPoints($row->getPoints()+3);\n\t\t \t }//if team lost\n\t\t \t elseif($agaistGoal>$prosGoal){\n\t\t \t \t$row->setLosses($row->getLosses()+1);\n\t\t \t }//if team draw\n\t\t \t else{\n\t\t \t \t$row->setDraws($row->getDraws()+1);\n\t\t \t \t$row->setPoints($row->getPoints()+1);\n\t\t \t }\n\t\t }\n\t\t //update table team\n\t\t $team->updateTeam($row);\n\t\t \t }\n\t\t }\n\t}", "public function movedElementsCanNotBeFoundAtTheirOrigin() {}", "function createFromClone($fromid)\n\t{\n\t\tglobal $user,$langs;\n\n\t\t$error=0;\n\n\t\t$object=new commandefournisseurrelease($this->db);\n\n\t\t$this->db->begin();\n\n\t\t// Load source object\n\t\t$object->fetch($fromid);\n\t\t$object->id=0;\n\t\t$object->statut=0;\n\n\t\t// Clear fields\n\t\t// ...\n\n\t\t// Create clone\n\t\t$result=$object->create($user);\n\n\t\t// Other options\n\t\tif ($result < 0)\n\t\t{\n\t\t\t$this->error=$object->error;\n\t\t\t$error++;\n\t\t}\n\n\t\tif (! $error)\n\t\t{\n\n\n\t\t}\n\n\t\t// End\n\t\tif (! $error)\n\t\t{\n\t\t\t$this->db->commit();\n\t\t\treturn $object->id;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->rollback();\n\t\t\treturn -1;\n\t\t}\n\t}", "function vrsRead($from,$to,$userid)\n\t {\n\t\t $sql = \"UPDATE pof_candidates SET is_read='1' WHERE user_id =\".$userid.\" AND stage IN (SELECT id FROM segment_name WHERE segment_type_id='5' ) AND (date BETWEEN '\".$from.\"' AND '\".$to.\"')\";\n\t\t\t $q = $this->db->query($sql);\n\t\t\t return $q;\n\t\t }", "public function setFrom(int $from)\n {\n $this->from = $from;\n return $this;\n }", "function MoveWord($word,&$wordlocs,$blockfrom,$sfrom,$wfrom,$blockto,$sto,$wto)\n{\n\t$word=TrimWord($word);\n\tif (!isset($wordlocs[$word])) return;\n\t\n\tfor ($loc=0; $loc<count($wordlocs[$word]); $loc++)\n\t{\n\t\t$loci=$wordlocs[$word][$loc];\n\t\tif ($loci[0]==$blockfrom // same block\n\t\t\t&& $loci[1]==$sfrom // same sentence\n\t\t\t&& $loci[2]==$wfrom) // same word\n\t\t{\n\t\t\t// Store new location\n\t\t\t$wordlocs[$word][$loc]=array($blockto,$sto,$wto);\n\t\t}\n\t}\n}", "public function setPost(&$objFrom, $objTo, $message, $type = WALL_HOME, $shared = false) {\n\t\tif($shared === false){\n\t\t\t$processResult = ContentHelper::managePostEnter($message);\n\t\t}\n\t\telse{\n\t\t\t$processResult = ContentHelper::manageShareEnter($message, $shared['otype'], $shared['oid'], $shared['olang']);\n\t\t}\n\n\t\t$message = $processResult->content;\n\t\t$ItemType = $processResult->type;\n\n\t\t$ID_OWNER = 0;\n\t\t$OwnerType = \"\";\n\t\t$ID_WALLOWNER = 0;\n\t\t$ID_TO_PLAYER = 0;\n\t\t$WallOwnerType = \"\";\n $ID_EVENT = 0;\n\t\t$public = 0;\n\n\t\tif(strlen($message) > 0) {\n\t\t\tif($objFrom instanceof EvEvents){\n\t\t\t\t$ID_OWNER = $objFrom->ID_EVENT;\n\t\t\t\t$OwnerType = WALL_OWNER_EVENT;\n\t\t\t\t$ID_WALLOWNER = $objFrom->ID_EVENT;\n\t\t\t\t$WallOwnerType = WALL_OWNER_EVENT;\n $ID_EVENT = $objFrom->ID_EVENT;\n\t\t\t\t$public = 1;\n\n\t\t\t} else if($objFrom instanceof Players or isset($objFrom->ID_PLAYER)) {\n\t\t\t\tif($objFrom->ID_PLAYER && strlen($message) > 0) {\n\n\t\t\t\t\tif($objTo instanceof Players and $objFrom->ID_PLAYER != $objTo->ID_PLAYER and !$objFrom->isFriend($objTo->ID_PLAYER)){\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t$ID_OWNER = $objFrom->ID_PLAYER;\n\t\t\t\t\t$OwnerType = WALL_OWNER_PLAYER;\n\t\t\t\t\t$ID_WALLOWNER = $objFrom->ID_PLAYER;\n\t\t\t\t\t$WallOwnerType = WALL_OWNER_PLAYER;\n\n\t\t\t\t\tif($objTo instanceof Players and $objFrom->ID_PLAYER != $objTo->ID_PLAYER) {\n\t\t\t\t\t\t$ID_TO_PLAYER = $objTo->ID_PLAYER;\n\t\t\t\t\t\t$ID_WALLOWNER = $objTo->ID_PLAYER;\n\t\t\t\t\t} else if($objTo instanceof SnGroups) {\n\t\t\t\t\t\tif(!$objTo->isMember()){\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$ID_WALLOWNER = $objTo->ID_GROUP;\n\t\t\t\t\t\t$WallOwnerType = WALL_OWNER_GROUP;\n\t\t\t\t\t} else if($objTo instanceof EvEvents) {\n\t\t\t\t\t\t$ID_WALLOWNER = $objTo->ID_EVENT;\n $ID_EVENT = $objTo->ID_EVENT;\n\t\t\t\t\t\t$WallOwnerType = WALL_OWNER_EVENT;\n $public = 1;\n\t\t\t\t\t} else if($objTo instanceof SnGames) {\n\t\t\t\t\t\t$ID_WALLOWNER = $objTo->ID_GAME;\n\t\t\t\t\t\t$WallOwnerType = WALL_OWNER_GAME;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if($objFrom instanceof SnGroups) {\n\t\t\t\tif(!$objFrom->isMember()){\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t$ID_OWNER = $objFrom->ID_GROUP;\n\t\t\t\t$OwnerType = WALL_OWNER_GROUP;\n\t\t\t\t$ID_WALLOWNER = $objFrom->ID_GROUP;\n\t\t\t\t$WallOwnerType = WALL_OWNER_GROUP;\n\t\t\t\t$public = 1;\n\t\t\t}\n\n\t\t\t$wall = new SnWallitems();\n\t\t\t$wall->ID_OWNER = $ID_OWNER;\n\t\t\t$wall->OwnerType = $OwnerType;\n\t\t\t$wall->ID_WALLOWNER = $ID_WALLOWNER;\n\t\t\t$wall->ID_TO_PLAYER = $ID_TO_PLAYER;\n\t\t\t$wall->WallOwnerType = $WallOwnerType;\n $wall->ID_EVENT = $ID_EVENT;\n\t\t\t$wall->Message = ContentHelper::handleContentInput($message);\n\t\t\t$wall->ItemType = $ItemType;\n\t\t\t$wall->Public = $public;\n\n\t\t\tif($shared !== false){\n\t\t\t\t$wall->isShared = 1;\n\t\t\t\t$wall->ShareOwnerType = $shared['otype'];\n\t\t\t\t$wall->ID_SHAREOWNER = $shared['oid'];\n\t\t\t}\n\n\t\t\t$id = $wall->insert();\n\n\t\t\t$objFrom->purgeCache();\n\t\t\treturn $id;\n\t\t}\n return 0;\n }", "abstract protected function faireDuSport();", "public function has_one_trough($from_table, $to_table, $trough_table) {\r\n $result = true;\r\n $result = $result && $this->belongs_to($to_table, $trough_table);\r\n $result = $result && $this->belongs_to($trough_table, $from_table);\r\n return $result;\r\n }", "public function setFrom($value)\n {\n return $this->set(self::_FROM, $value);\n }", "public function setFrom($value)\n {\n return $this->set(self::_FROM, $value);\n }", "public function setFrom($value)\n {\n return $this->set(self::_FROM, $value);\n }", "public function AddOverlay($from, $to)\n {\n $this->AddFunction('duplicate');\n $this->InsertVariable('dups', $from, $to);\n }", "public function slice( $from, $count )\n {\n throw new UnmodifiableException(\"This collection cannot be changed\");\n }", "public function from($target)\n {\n $this->from[]=$this->QueryFromSelect($target);\n return $this;\n }", "public function moveTo(FileNode $from, FileNode $to);", "function getPiecesBetween ($from, $to, $chessboard )\r\n\t{\r\n\t\t$setBetween = array();\r\n\t\t\r\n\t\treturn $setBetween;\t\r\n\t}", "final public function from()\n {\n return $this->doFrom();\n }" ]
[ "0.5965919", "0.54806584", "0.53877234", "0.53877234", "0.53877234", "0.53877234", "0.53877234", "0.5332005", "0.5160112", "0.5134659", "0.5134659", "0.507095", "0.49888805", "0.49458998", "0.49333617", "0.48744395", "0.4848291", "0.4820953", "0.47499055", "0.47092372", "0.4695811", "0.46513817", "0.46255288", "0.4613133", "0.4613133", "0.45813593", "0.45633417", "0.45572126", "0.45509267", "0.45293143", "0.45249292", "0.4514986", "0.45148528", "0.45016795", "0.44936436", "0.4465929", "0.4465929", "0.4465929", "0.4460735", "0.44595972", "0.4455089", "0.44548297", "0.44482538", "0.4438069", "0.4436817", "0.4434177", "0.4427092", "0.44235927", "0.4423125", "0.44134966", "0.44062376", "0.44060457", "0.44039565", "0.43975627", "0.4389571", "0.4389571", "0.43855336", "0.43646032", "0.43613976", "0.43557355", "0.43536028", "0.43530396", "0.43466178", "0.43442369", "0.43427247", "0.43392685", "0.4338434", "0.43364376", "0.43328604", "0.4325698", "0.43238616", "0.42956674", "0.4279554", "0.4278254", "0.42777157", "0.42662963", "0.42652163", "0.42635876", "0.4262122", "0.42483845", "0.4242423", "0.424155", "0.42397082", "0.42381847", "0.422874", "0.42244384", "0.42061043", "0.42024454", "0.41972852", "0.41884094", "0.41880086", "0.4186218", "0.4185734", "0.4185734", "0.4185734", "0.4183218", "0.4182836", "0.41751426", "0.41734615", "0.4171502", "0.4170123" ]
0.0
-1
DISPLAYS THE POPULATED FORM OF THE RECORD This method uses the same template as the create method
function edit( $id = false ) { $this->load->library('form_validation'); switch ( $_SERVER ['REQUEST_METHOD'] ) { case 'GET': $this->model_group->raw_data = TRUE; $data = $this->model_group->get( $id ); $fields = $this->model_group->fields(); $this->template->assign( 'action_mode', 'edit' ); $this->template->assign( 'group_data', $data ); $this->template->assign( 'group_fields', $fields ); $this->template->assign( 'metadata', $this->model_group->metadata() ); $this->template->assign( 'table_name', 'Group' ); $this->template->assign( 'template', 'form_group' ); $this->template->assign( 'record_id', $id ); $this->template->display( 'frame_admin.tpl' ); break; case 'POST': $fields = $this->model_group->fields(); /* we set the rules */ /* don't forget to edit these */ $this->form_validation->set_rules( 'group_name', lang('group_name'), 'required|max_length[255]' ); $this->form_validation->set_rules( 'permission', lang('permission'), 'required' ); $data_post['group_name'] = $this->input->post( 'group_name' ); $data_post['permission'] = $this->input->post( 'permission' ); if ( $this->form_validation->run() == FALSE ) { $errors = validation_errors(); $this->template->assign( 'action_mode', 'edit' ); $this->template->assign( 'errors', $errors ); $this->template->assign( 'group_data', $data_post ); $this->template->assign( 'group_fields', $fields ); $this->template->assign( 'metadata', $this->model_group->metadata() ); $this->template->assign( 'table_name', 'Group' ); $this->template->assign( 'template', 'form_group' ); $this->template->assign( 'record_id', $id ); $this->template->display( 'frame_admin.tpl' ); } elseif ( $this->form_validation->run() == TRUE ) { $this->model_group->update( $id, $data_post ); redirect( 'group/show/' . $id ); } break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_new_record() {\r\n if ($this->allow_new) {\r\n #~ echo \"<p><a href='{$_SERVER['PHP_SELF']}?m={$this->module}&amp;act=new&amp;go=\".urlencode($GLOBALS['full_self_url']).\"'>Insert new row</a>\";\r\n echo '<form method=POST action=\"'.$_SERVER['PHP_SELF'].'\">';\r\n echo '<input type=hidden name=\"m\" value=\"'.$this->module.'\">';\r\n echo '<input type=hidden name=\"act\" value=\"new\">';\r\n echo '<input type=hidden name=\"go\" value=\"'.htmlentities($GLOBALS['full_self_url']).'\">'; # url to go after successful submitation\r\n # if i'm a detail, get master-detail field's value and pass it to new-form\r\n if ($this->logical_parent) {\r\n foreach ($this->properties as $colvar=>$col) {\r\n if ($col->parentkey) { # foreign key always int\r\n echo '<input type=hidden name=\"sugg_field['.$colvar.']\" value=\"'.htmlentities($col->parentkey_value).'\">';\r\n }\r\n }\r\n }\r\n echo '<p>'.lang('Add').' <input type=text name=\"num_row\" size=2 value=\"1\"> '.lang($this->unit).' <input type=submit value=\"'.lang('Go').'\">';\r\n echo '</form>';\r\n }\r\n }", "public function create()\n {\n\t\treturn view('pages.record.create');\n }", "function create() {\n\t\tglobal $tpl, $lng;\n\n\t\t$form = $this->initForm(TRUE);\n\t\tif ($form->checkInput()) {\n\t\t\tif ($this->createElement($this->getPropertiesFromPost($form))) {\n\t\t\t\tilUtil::sendSuccess($lng->txt('msg_obj_modified'), TRUE);\n\t\t\t\t$this->returnToParent();\n\t\t\t}\n\t\t}\n\n\t\t$form->setValuesByPost();\n\t\t$tpl->setContent($form->getHtml());\n\t}", "public function create()\n {\n //\n return $this->render('create');\n\n }", "public function getTemplateExample()\n\t{\n\t\t// start form\n\t\t$value = \"\\n\";\n\t\t$value .= '{form:' . $this->getName() . \"}\\n\";\n\n\t\t/**\n\t\t * At first all the hidden fields need to be added to this form, since\n\t\t * they're not shown and are best to be put right beneath the start of the form tag.\n\t\t */\n\t\tforeach($this->getFields() as $object)\n\t\t{\n\t\t\t// is a hidden field\n\t\t\tif(($object instanceof SpoonFormHidden) && $object->getName() != 'form')\n\t\t\t{\n\t\t\t\t$value .= \"\\t\" . '{$hid' . str_replace('[]', '', SpoonFilter::toCamelCase($object->getName())) . \"}\\n\";\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Add all the objects that are NOT hidden fields. Based on the existance of some methods\n\t\t * errors will or will not be shown.\n\t\t */\n\t\tforeach($this->getFields() as $object)\n\t\t{\n\t\t\t// NOT a hidden field\n\t\t\tif(!($object instanceof SpoonFormHidden))\n\t\t\t{\n\t\t\t\t// buttons\n\t\t\t\tif($object instanceof SpoonFormButton)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$btn' . SpoonFilter::toCamelCase($object->getName()) . '}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// single checkboxes\n\t\t\t\telseif($object instanceof SpoonFormCheckbox)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p{option:chk' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:chk' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<label for=\"' . $object->getAttribute('id') . '\">' . SpoonFilter::toCamelCase($object->getName()) . '</label>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$chk' . SpoonFilter::toCamelCase($object->getName()) . '} {$chk' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// multi checkboxes\n\t\t\t\telseif($object instanceof SpoonFormMultiCheckbox)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<div{option:chk' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:chk' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<p class=\"label\">' . SpoonFilter::toCamelCase($object->getName()) . '</p>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$chk' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<ul class=\"inputList\">' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\\t\" . '{iteration:' . $object->getName() . '}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\\t\\t\" . '<li><label for=\"{$' . $object->getName() . '.id}\">{$' . $object->getName() . '.chk' . SpoonFilter::toCamelCase($object->getName()) . '} {$' . $object->getName() . '.label}</label></li>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\\t\" . '{/iteration:' . $object->getName() . '}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '</ul>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</div>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// dropdowns\n\t\t\t\telseif($object instanceof SpoonFormDropdown)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p{option:ddm' . str_replace('[]', '', SpoonFilter::toCamelCase($object->getName())) . 'Error} class=\"errorArea\"{/option:ddm' . str_replace('[]', '', SpoonFilter::toCamelCase($object->getName())) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<label for=\"' . $object->getAttribute('id') . '\">' . str_replace('[]', '', SpoonFilter::toCamelCase($object->getName())) . '</label>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$ddm' . str_replace('[]', '', SpoonFilter::toCamelCase($object->getName())) . '} {$ddm' . str_replace('[]', '', SpoonFilter::toCamelCase($object->getName())) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// imagefields\n\t\t\t\telseif($object instanceof SpoonFormImage)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p{option:file' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:file' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<label for=\"' . $object->getAttribute('id') . '\">' . SpoonFilter::toCamelCase($object->getName()) . '</label>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$file' . SpoonFilter::toCamelCase($object->getName()) . '} <span class=\"helpTxt\">{$msgHelpImageField}</span> {$file' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// filefields\n\t\t\t\telseif($object instanceof SpoonFormFile)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p{option:file' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:file' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<label for=\"' . $object->getAttribute('id') . '\">' . SpoonFilter::toCamelCase($object->getName()) . '</label>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$file' . SpoonFilter::toCamelCase($object->getName()) . '} {$file' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// radiobuttons\n\t\t\t\telseif($object instanceof SpoonFormRadiobutton)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<div{option:rbt' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:rbt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<p class=\"label\">' . SpoonFilter::toCamelCase($object->getName()) . '</p>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$rbt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<ul class=\"inputList\">' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\\t\" . '{iteration:' . $object->getName() . '}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\\t\\t\" . '<li><label for=\"{$' . $object->getName() . '.id}\">{$' . $object->getName() . '.rbt' . SpoonFilter::toCamelCase($object->getName()) . '} {$' . $object->getName() . '.label}</label></li>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\\t\" . '{/iteration:' . $object->getName() . '}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '</ul>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</div>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// datefields\n\t\t\t\telseif($object instanceof SpoonFormDate)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p{option:txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<label for=\"' . $object->getAttribute('id') . '\">' . SpoonFilter::toCamelCase($object->getName()) . '</label>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$txt' . SpoonFilter::toCamelCase($object->getName()) . '} <span class=\"helpTxt\">{$msgHelpDateField}</span> {$txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// timefields\n\t\t\t\telseif($object instanceof SpoonFormTime)\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p{option:txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<label for=\"' . $object->getAttribute('id') . '\">' . SpoonFilter::toCamelCase($object->getName()) . '</label>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$txt' . SpoonFilter::toCamelCase($object->getName()) . '} <span class=\"helpTxt\">{$msgHelpTimeField}</span> {$txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\n\t\t\t\t// textfields\n\t\t\t\telseif(($object instanceof SpoonFormPassword) || ($object instanceof SpoonFormTextarea) || ($object instanceof SpoonFormText))\n\t\t\t\t{\n\t\t\t\t\t$value .= \"\\t\" . '<p{option:txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error} class=\"errorArea\"{/option:txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '<label for=\"' . $object->getAttribute('id') . '\">' . SpoonFilter::toCamelCase($object->getName()) . '</label>' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\\t\" . '{$txt' . SpoonFilter::toCamelCase($object->getName()) . '} {$txt' . SpoonFilter::toCamelCase($object->getName()) . 'Error}' . \"\\n\";\n\t\t\t\t\t$value .= \"\\t\" . '</p>' . \"\\n\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $value . '{/form:' . $this->getName() . '}';\n\t}", "public function show()\n\t{\n\t\t// Set title\n\t\t$this->setTitle('K2_EXTRA_FIELDS');\n\n\t\t// Set user states\n\t\t$this->setUserStates();\n\n\t\t// Set pagination\n\t\t$this->setPagination();\n\n\t\t// Set rows\n\t\t$this->setRows();\n\n\t\t// Set filters\n\t\t$this->setFilters();\n\n\t\t// Set toolbar\n\t\t$this->setToolbar();\n\n\t\t// Set menu\n\t\t$this->setMenu();\n\n\t\t// Set Actions\n\t\t$this->setListActions();\n\n\t\t// Render\n\t\tparent::render();\n\t}", "public function display()\n {\n $output = \"\";\n\n // Ouverture\n /// ID HTML\n $openId = $this->getAttr('container_id');\n /// Classes HTML\n $openClass = [];\n $openClass[] = 'tiFyForm-FieldContainer';\n $openClass[] = 'tiFyForm-FieldContainer--' . $this->getType();\n $openClass[] = 'tiFyForm-FieldContainer--' . $this->getSlug();\n if ($this->getErrors()) :\n $openClass[] = 'tiFyForm-FieldContainer--error';\n endif;\n $openClass[] = $this->getAttr('container_class');\n if ($this->getAttr('required')) :\n $openClass[] = 'tiFyForm-FieldContainer--required';\n endif;\n $output .= $this->form()\n ->factory()\n ->fieldOpen($this, $openId, join(' ', $openClass));\n\n // Contenu du champ\n $output .= $this->type()->_display();\n\n // Fermeture\n $output .= $this->form()->factory()->fieldClose($this);\n\n return $output;\n }", "public function create()\n {\n return $this->form->render('mconsole::personal.form');\n }", "public function create()\n {\n return view($this->base_view.'popup.create');\n }", "public function create()\n {\n return $this->form->render('mconsole::places.form');\n }", "public function NewRecord()\n {\n global $g_BizSystem;\n $this->SetDisplayMode(MODE_N);\n $recArr = $this->GetNewRecord();\n if (!$recArr)\n return $this->ProcessDataObjError();\n $this->UpdateActiveRecord($recArr);\n // TODO: popup message of new record successful created\n return $this->ReRender();\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view('popup::admin.popups.create');\n }", "private function renderNew()\n\t{\n\t\t$new = new Newdefault();\n\t\t$new->setTitle($this->new_title);\n\t\treturn $new->render();\n\t}", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function _getFormTpl(\\stdClass $args = null)\n\t{\n\t\t$this->_createCommands($btn, $rowPos);\n\t\tself::_callRegistrySet(self::_REG_RECORD_ID,null);\n\t\treturn parent::_getFormTpl($args);\n\t}", "public function create()\n {\n return $this->cView(\"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 $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n $this->title .= ' create';\n $this->vars = array_add($this->vars, 'menuArray', $this->rep->makeArray());\n }", "public function create()\n {\n $this->title = __('admin.create_personal_information');\n\n //Page content definition\n $this->content = $this->getViewContent('personal_info.personal_info_form',\n [\n 'title' => $this->title\n ]\n );\n\n return $this->renderCurrentView();\n }", "function display_add_field($recordid = 0, $formdata = NULL) {\n return $this->display_browse_field($recordid, 'addtemplate');\n }", "public function create()\n {\n //\n return view('Q&A.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function getCreate()\n\t{\n\t\treturn View::make('liceos.create');\n\t}", "public function create()\n {\n return View::make('purchasereturndetails.create');\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function render()\r\n {\r\n parent::render();\r\n $this->fcLoadObjectDetails($this->oModel);\r\n return $this->_sThisTemplate;\r\n }", "function create_new() {\n if($this->table_title != '' ) {\n $this->title = 'New ' . $this->table_title .\n $this->makeForm();\n }\n }", "public function create()\n {\n $this->template .= 'create';\n\n return $this->renderOutput();\n }", "public function create()\n {\n $categories = VideoRecordsCategory::getAllList();\n $playerSettings = PlayerSettings::getAllList();\n return $this->view('video_records.create_edit', ['categories' => $categories, 'settings' => $playerSettings]);\n }", "function make_form_row(){\n\t\tswitch($this->fieldType){\n\t\t\tcase 'id':\n\t\t\t\treturn $this->obo_id();\n\t\t\t\tbreak;\n\t\t\tcase 'term':\n\t\t\t\treturn $this->obo_term();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$form = parent::make_form_row();\n\t\t\n\t\t}\n\t\treturn $form;\n\t\n\t}", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "private function fillRecord(array $record)\n {\n return <<<HTML\n<li>\n <a class=\"button\" href=\"{$record['route']}\">\n {$record['title']}\n </a>\n</li>\nHTML;\n }", "public function show()\n {\n $template = $this->getTemplate();\n\n $template->addCss('group', $this->getType());\n \n $this->decorateElement($template, 'dateStart');\n $this->decorateElement($template, 'dateEnd');\n\n $template->setAttr('dateStart', 'name', $this->getName() . 'Start');\n $template->setAttr('dateEnd', 'name', $this->getName() . 'End');\n $template->setAttr('dateStart', 'id', $this->getId().'Start');\n $template->setAttr('dateEnd', 'id', $this->getId().'End');\n\n // Set the field value\n $value = $this->getValue();\n if (is_array($value)) {\n if (!empty($value[$this->getName() . 'Start']))\n $template->setAttr('dateStart', 'value', $value[$this->getName() . 'Start']);\n if (!empty($value[$this->getName() . 'End']))\n $template->setAttr('dateEnd', 'value', $value[$this->getName() . 'End']);\n }\n\n return $template;\n }", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function renderCreateModalHTML()\n {\n $input_form = \"<div class=\\\"form-group\\\">\n <label for=\\\"{{label}}\\\">{{label}}</label>\n <input type=\\\"{{type}}\\\" class=\\\"form-control\\\" id=\\\"create_input_{{label}}\\\">\n </div>\";\n $break_line = \"\\n\";\n\n $form_result = \"\";\n $columns = $this->getShowColumnCreateModal();\n foreach ($columns as $name => $type) {\n $input_type = 'text';\n\n if ($type == \"bigint\" OR $type == \"integer\"){\n $input_type = 'number';\n }elseif ($type == \"string\"){\n $input_type = 'text';\n }elseif ($type == \"datetime\"){\n $input_type = 'datetime-local';\n }\n\n $one_form = str_replace(\n [\n '{{label}}','{{type}}'\n ],\n [\n $name, $input_type\n ],\n $input_form\n );\n $form_result = $form_result.$one_form.$break_line;\n }\n\n return $form_result;\n }", "public function create()\n {\n $this->openModal();\n $this->resetInputFields();\n }", "public function create()\n {\n $this->openModal();\n $this->resetInputFields();\n }", "protected function formCreate() {\n\t\t$this->pxyLink = new \\QCubed\\Control\\Proxy($this);\n\t\t$this->pxyLink->AddAction(new \\QCubed\\Event\\MouseOver(), new \\QCubed\\Action\\Ajax('mouseOver'));\n\n\t\t// Define the DataGrid\n\t\t$this->tblProjects = new \\QCubed\\Project\\Control\\Table($this);\n\n\t\t// This css class is used to style alternate rows and the header, all in css\n\t\t$this->tblProjects->CssClass = 'simple_table';\n\n\t\t// Define Columns\n\n\t\t// Create a link column that shows the name of the project, and when clicked, calls back to this page with an id\n\t\t// of the item clicked on\n\t\t$this->tblProjects->CreateLinkColumn('Project', '->Name', \\QCubed\\Project\\Application::instance()->context()->scriptName(), ['intId'=>'->Id']);\n\n\t\t// Create a link column using a proxy\n\t\t$col = $this->tblProjects->CreateLinkColumn('Status', '->ProjectStatusType', $this->pxyLink, '->Id');\n\n\t\t$this->tblProjects->SetDataBinder('tblProjects_Bind');\n\n\t\t$this->pnlClick = new \\QCubed\\Control\\Panel($this);\n\n\t\tif (($intId = \\QCubed\\Project\\Application::instance()->context()->queryStringItem('intId')) && ($objProject = Project::Load($intId))) {\n\t\t\t$this->pnlClick->Text = 'You clicked on ' . $objProject->Name;\n\t\t}\n\n\t}", "abstract function buildShowFields(): void;", "function build() {\n\t\t$this->order_id = new view_field(\"Order ID\");\n\t\t$this->timestamp = new view_field(\"Date\");\n\t\t$this->total_amount = new view_field(\"Amount\");\n $this->view= new view_element(\"static\");\n \n $translations = new translations(\"fields\");\n $invoice_name = $translations->translate(\"fields\",\"Invoice\",true);\n $this->view->value=\"<a href=\\\"/orders/order_details.php?order_id={$this->_order_id}\\\" target=\\\"invoice\\\">\".$invoice_name.\"</a>\";\n\n\t\tif(isset($_SESSION['wizard']['complete']['process_time']))\n\t\t{\n\t\t\t$this->process_time = new view_field(\"Seconds to process\");\n\t\t\t$this->process_time->value=$_SESSION['wizard']['complete']['process_time'];\n\t\t\t$this->server = new view_field();\n\t\t\t$address_parts = explode('.',$_SERVER['SERVER_ADDR']);\n\t\t\t$this->server->value = $address_parts[count($address_parts) - 1];\n\t\t}\n\t\tparent::build();\n\t}", "public function create()\n {\n return view('backend.member.create',get_defined_vars());\n }", "function insert() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm(TRUE);\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function create() \n {\n return view(\"$this->view.create\");\n }", "public function create()\n {\n return view('Samples.create', [\n 'create' => new FormBuilder(\n [\n 'title'=>'text',\n 'slug'=>'text',\n 'type_id'=>'hidden',\n 'id'=>'hidden' \n ],\n ['samples.store'],\n 'POST',\n 'Create'\n ) \n ]);\n }", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public static function display_create_form(){\n echo \"<form action='../../Controllers/charity_controller.class.php?action=save' method='post'>\";\n echo \"Name: <input type='text' name='name' /><br />\";\n echo \"Description: <textarea name='description'></textarea><br />\";\n echo \"<input type='submit' value='Save' />\";\n echo \"</form>\";\n }", "public function render()\n {\n return $this->getFormCreator()->render();\n }", "public function create()\n\t{\n\t\treturn View::make('matchdetails.create');\n\t}", "function lb_show_add_record_page_action() {\n\tlb_show_templates(\n\t\tarray(\n\t\t\t'name' => 'add',\n\t\t)\n\t);\n}", "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 }", "public function create()\n {\n return view($this->parentView . '.create');\n }", "public function getCreate()\n\n {\n return view('backend.crud.form' , [\n 'model' => $this->model,\n 'imagePath' => '',\n ]);\n }", "public function create()\n {\n return View('pnrs.create');\n }", "function create()\r\n {\r\n if($this->mode != 'pwlist-print')\r\n return parent::create();\r\n \r\n // very plain page for faxing\r\n header('Content-Type: text/html; charset=UTF-8',true);\r\n \r\n $cont = \"<html><center>\";\r\n $cont .= $this->createGroupSelector($_GET['groupname'],\"pwlist.php\");\r\n $cont .= $this->passwordTable();\r\n $cont .= \"</center></html>\";\r\n \r\n return $cont;\r\n }", "public function createfield(){\n \treturn view('field.create');\n }", "public function printContent()\n {\n $this->includeFieldComponent('selectwithpopup');\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function create()\n {\n return $this->view('create');\n }", "protected function form()\n {\n $form = new Form(new BackPeopleInfo());\n\n $form->text('name', __('姓名'));\n $form->text('id_num', __('身份证号码'));\n $form->mobile('phone', __('手机号码'));\n $form->text('address', __('楼栋房号'));\n $form->text('originatin', __('始发地'));\n $form->date('back_date', __('返回日期'))->default(date('Y-m-d'));\n $form->date('isolate_date', __('隔离日期'))->default(date('Y-m-d'));\n $form->text('isolate_flag', __('解除隔离'))->default('否');\n $form->text('isolate_level', __('隔离等级'))->default('普通');\n $form->text('qrcode_flag', __('网格化管理'))->default('否');\n $form->text('vehicle_info', __('交通工具'));\n $form->text('remarks', __('备注'));\n\n return $form;\n }", "public function create()\n {\n return view('admin.prospects.create');\n }", "public function create()\n {\n $template = (object) $this->template;\n $form = $this->form();\n return view('admin.disposisi.create', compact('template','form'));\n }", "public function companyrecord() {\r\n\r\n if (isset($_GET['id'])) {\r\n $preview = $this->model->companyPreview($_GET['id']);\r\n }\r\n return $this->view('/company/companyrecord', $preview);\r\n }", "public function form()\n\t{\n\t?>\n\t<table class=\"form-table\">\n\t\t<tbody>\n\t\t<?php foreach( (array) $this->InstanceRegistred as $id => $args ) : ?>\n\t\t\t<tr>\n\t\t\t\t<th><?php echo $args['title'];?></th>\n\t\t\t\t<td>\n\t\t\t\t<?php \n\t\t\t\t\twp_dropdown_pages(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' \t\t\t\t=> $args['name'],\n\t\t\t\t\t\t\t'post_type' \t\t=> $args['post_type'],\n\t\t\t\t\t\t\t'selected' \t\t\t=> $args['selected'],\n\t\t\t\t\t\t\t'sort_column' \t\t=> $args['listorder'],\n\t\t\t\t\t\t\t'show_option_none' \t=> $args['show_option_none']\t\t\t\t\t\t\t\n\t\t\t\t\t\t)\n\t\t\t\t\t);\t\t\t\t\n\t\t\t\t?>\t\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t<?php endforeach;?>\n\t\t</tbody>\n\t</table>\n\t<?php\t\t\n\t}", "public function create()\n {\n return view(parent::commonData($this->view_path.'.create'));\n }", "public function createAction() : object\n {\n $page = $this->di->get(\"page\");\n $form = new CreateForm($this->di);\n $form->check();\n\n $page->add(\"questions/crud/create\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Create a item\",\n ]);\n }", "public function getCreate()\n\t{\n\t\t/*\n\t\t * Layout / View\n\t\t */\n\n\t\t$this->layout->content = View::make('admin.contract.create');\n\t}", "public function create()\n {\n return view('prospectos.create');\n }", "public function create()\n {\n return view('ppc.bf.prod.create');\n }", "public function create()\n {\n return view('quicknote.create');\n }", "public function create()\n {\n //KEMUDIAN DI DALAMNYA KITA MENJALANKAN FUNGSI UNTUK MENGOSONGKAN FIELD\n $this->resetFields();\n //DAN MEMBUKA MODAL\n $this->openModal();\n }", "public function getCreate()\n\t{\n\t\treturn view('beneficios.create');\n\t}", "public function create()\n {\n return view('create_ref_poli_bagian');\n }", "public function add_record()\n {\n $data['main_content'] = $this->type.'/'.$this->viewname.'/add';\n\t $this->load->view($this->type.'/assets/template',$data);\n }", "function show()\r\n\t{\r\n\t\t?>\r\n\r\n\t\t<button class='textlayout' type=\"submit\" name=\"itemtoedit\" value=\"<?php echo $this->orderno ?>\" >\r\n\t\t\t<p>\r\n\t\t\t<span style='font-weight:bold'><?php echo $this->orderno . \". \" . $this->question ; ?></span>\r\n\t\t\t<span style='font-weight:normal'>(<?php echo $this->typeshort; ?>)</span><br>\r\n\t\t\t<span><?php $n = 1; foreach($this->answers as $answerobject){if ($n > 1){echo \", \";}$n ++;echo $answerobject->answer;}?></span>\r\n\t\t\t</p>\r\n\t\t</button><br>\r\n\t\t\r\n\t\t<?php \r\n\t}", "public function onAddField()\n {\n return $this->makePartial('create_field_form');\n }", "public function create()\n {\n return view('properties.create');\n }", "public function create()\n {\n return view('properties.create');\n }", "public function create()\n {\n $this->set_datas([]);\n $this->blade->view($this->get_view_page(), $this->get_datas());\n }", "public function create()\n {\n //return view('layouts.print orders.');\n }", "public function create()\n\t{\n\t\treturn View::make('usp.koperasi.create')->with('page','Koperasi')\n\t\t->with('modul','Create');\n\t}", "protected function form()\n {\n $form = new Form(new DbTop());\n $form->select('status', __(trans('hhx.status')))->options(config('hhx.db_status'));;\n $form->text('pan_url', __(trans('hhx.pan_url')));\n $form->text('pan_code', __(trans('hhx.pan_code')));\n\n return $form;\n }", "public function create()\n\t{\n\t\treturn view('item.create');\n\t}", "public function render()\n\t{\n\t\t//draw head html items (use timestamp for title)\n\t\t$timestamp = date(\"m/d/Y\").\" - \".date(\"h:i:s a\");\n\t\t$this->head->render($timestamp);\n\t\t//draw navbar\n\t\t$this->element->renderElement($this->nav);\n\t\t//start of html body\n\t\t?>\n\t\t\t<div>\n\t\t\t\t<h2>New Note</h2>\n\t\t\t</div>\n\t\t\t<div class=\"form_div\">\n\t\t\t\t<form name=\"newNote\" action=\"<?= $this->savedir ?>\" method=\"post\">\n\t\t\t\t\tTitle: <input type=\"text\" name=\"title\"/><br>\n\t\t\t\t\tNote<br>\n\t\t\t\t\t<textarea rows='8' cols='30' name=\"note\"></textarea><br>\n\t\t\t\t\t<input class=\"save\" type=\"submit\" name=\"addnote\" value=\"save\" />\n\t\t\t\t\t<input type=\"hidden\" name=\"type\" value=\"note\" />\n\t\t\t\t\t<input type=\"hidden\" name=\"id\" value=<?=$this->curr?> />\n\t\t\t\t</form>\n\t\t\t</div>\n\n\t\t<?php\n //end of html body\n //draw footer items\n\t\t$this->footer->render(\"\");\n\t}", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function form()\n {\n\n $this->display('id', '申请ID')->default($this->payload['id']);\n $this->display('uid', '申请人UID')->default($this->payload['uid']);\n $this->display('status', '状态')->default(\\App\\Admin\\Repositories\\BusinessApply::$statusLabel[$this->payload['status']]);\n\n\n $this->radio('process', '处理')\n ->options([\n 1 => '通过',\n 2 => '拒绝',\n ]);\n\n $this->text('msg', '审核回复');\n\n }", "public function create()\n {\n $data['module'] = $this->module();\n return view(\"backend.{$this->module()['module']}.create-edit\", $data);\n }", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function render()\n {\n $content = \"Ext.create('Ext.form.Panel', {\";\n \n $content .= \"frame: true\";\n \n if ($this->getAction()) {\n $content .= \", url: '\" . $this->getAction() . \"'\";\n }\n \n foreach ($this->getAttribs() as $name => $value) {\n $content .= \", \";\n \n switch ($name) {\n case 'renderTo':\n $content .= \"renderTo: Ext.get('\" . (string)$value . \"')\";\n break;\n case 'height':\n case 'width':\n $content .= $name . \": \" . (int)$value;\n break;\n case 'standardSubmit':\n case 'hidden':\n $content .= $name . \": \" . ((boolean)$value === true ? 'true' : 'false');\n break;\n case 'onEnter':\n $content .= \"listeners: {\n afterRender: function(form, options){\n this.keyNav = Ext.create('Ext.util.KeyNav', this.el, {\n enter: function() {\" . $value . \"},\n scope: this\n });\n }\n }\";\n break;\n case 'defaults':\n $content .= \"defaults: \" . (string)$value;\n break;\n default:\n $content .= $name . \": '\" . htmlspecialchars((string)$value, ENT_QUOTES) . \"'\";\n break;\n }\n }\n \n if (!$this->getAttrib('renderTo')) {\n $content .= \", renderTo: Ext.getBody()\";\n }\n \n $content .= \", items: [\";\n \n if ($this->hasSubForms()) {\n $iterator = new ArrayIterator($this->getSubForms());\n while($iterator->valid()) {\n $subForm = $iterator->current();\n $content .= \"{\";\n \n if ($subForm->getAttrib('width')) {\n $content .= \"width: \" . (int)$subForm->getAttrib('width') . \",\";\n }\n \n $content .= $subForm->render();\n \n $content .= \"}\";\n \n $iterator->next();\n if ($iterator->valid()) {\n $content .= \",\";\n } \n }\n }\n \n if ($this->hasElements()) {\n $iterator = new ArrayIterator($this->getElements());\n while ($iterator->valid()) {\n $element = $iterator->current();\n $content .= $element->render();\n \n $iterator->next();\n if ($iterator->valid()) {\n $content .= \",\";\n }\n }\n }\n\n $content .= \"],\";\n \n $content .= \"buttons: [\";\n \n $iterator = new ArrayIterator($this->getButtons());\n while ($iterator->valid()) {\n $button = $iterator->current();\n \n $content .= $button->render();\n \n $iterator->next();\n \n if ($iterator->valid()) {\n $content .= \",\";\n }\n \n }\n \n $content .= \"]\";\n \n $content .= '});';\n \n return $content;\n }", "public function create()\n {\n //\n return 'This is where my charge log form will go.';\n }", "function toString(){\n\n $res = '<table border=\"0\" width=\"100%\" cellspacing=\"0\" id=\"' . $this->my_id . '\" >' . \"\\n\";\n $res .=\"<tr><td>\\n\";\n $res .='<table border=\"0\" width=\"100%\" cellspacing=\"0\">' . \"\\n\";\n $res .=\"<tr>\\n\";\n $res .='<td width=\"10\" background=\"field.gif\" >&nbsp;</td>' . \"\\n\";\n $res .='<td bgcolor=\"#3300bb\" ><b><FONT FACE=\"Arial\" SIZE=3 COLOR=\"#EEEEEE\">' . $this->title . '</FONT></b></td>' . \"\\n\";\n $res .='<td bgcolor=\"#3300bb\" width=\"20\"><IMG SRC=\"popdown.gif\" onclick=\"changepopup(false,' . \"'\" . $this->my_id . \"'\" . ')\"></td>' . \"\\n\";\n $res .='<td bgcolor=\"#3300bb\" width=\"20\"><IMG SRC=\"popup.gif\" onclick=\"changepopup(true,' . \"'\" . $this->my_id . \"'\" . ')\" ></td>' . \"\\n\";\n $res .=\"</tr></table>\\n\";\n $res .=\"</td></tr>\\n\";\n $res .='<tr><td bgcolor = \"#1100bb\">';\n $res .='';\n\n\n /*$tmp = count($this->arrayObj);\n for($i = 0 ; $i<$tmp ; $i++){\n \n\n if(is_object($this->arrayObj[$i])){\n\n $res .= \"<P>\" . $this->arrayObj[$i]->toString() . \"</P>\";\n \n }else{\n $res .= \"<P>\" . $this->arrayObj[$i] . \"</P>\";\n \n }\n }*/\n \n $res .= \"</td></tr></table>\";\n \n return $res;}", "public function render() {\n $model = $this->storePath ? \"store-path=\\\"{$this->storePath}\\\"\" : '';\n $form = \":form=\\\"{$this->toProp()}\\\"\";\n\n\t\treturn \"<{$this->getComponent()} $form $model></{$this->getComponent()}>\";\n\t}", "function renderFilterCreationForm() {\n\t\t$this->pi_loadLL();\n\t\t$markerArray = array();\n\t\t$content = tslib_CObj::getSubpart($this->fileContent, '###NEWFILTER###');\n\n\t\t$markerList = array('SAVE', 'CANCEL', 'FILTER_TITLE_LABEL', 'FILTER_DESCRIPTION_LABEL');\n\t\tforeach ($markerList as $marker) {\n\t\t\t$markerArray[$marker] = $this->cObj->stdWrap($this->pi_getLL($marker, $marker, false), $this->conf['newfilter.'][strtolower($marker) . '.']);\n\t\t}\n\n\t\t// FORM URL\n\t\tif (!isset($this->conf['newfilter.']['form_url.']['parameter'])) {\n\t\t\t$this->conf['newfilter.']['form_url.']['parameter'] = $GLOBALS['TSFE']->id;\n\t\t}\n\t\t$this->conf['newfilter.']['form_url.']['returnLast'] = 'url';\n\t\t$markerArray['FORM_URL'] = $this->cObj->typolink('', $this->conf['newfilter.']['form_url.']);\n\n\t\t$content = tslib_CObj::substituteMarkerArray($content, $markerArray, '###|###');\n\n\t\treturn $content;\n\t}", "public function create()\n {\n return view('member_details.create');\n }" ]
[ "0.7092399", "0.65481037", "0.64857936", "0.63742656", "0.6368798", "0.63615817", "0.63532335", "0.6352949", "0.6307094", "0.6294078", "0.6283878", "0.62489426", "0.62012297", "0.6199962", "0.6185557", "0.61785173", "0.61454535", "0.6121433", "0.6121433", "0.6120832", "0.6120832", "0.6120403", "0.6107973", "0.6097703", "0.6057448", "0.6055049", "0.60438544", "0.603282", "0.60274994", "0.60274994", "0.60274994", "0.60274994", "0.6027045", "0.6025487", "0.6022195", "0.6007063", "0.60048634", "0.60041624", "0.5997195", "0.59827244", "0.59801483", "0.59790796", "0.5972153", "0.5962967", "0.5962967", "0.5960266", "0.59553474", "0.59552914", "0.5947468", "0.59474194", "0.5945864", "0.59457797", "0.5941153", "0.5939875", "0.5938181", "0.5937315", "0.5934999", "0.5931354", "0.59265816", "0.59210443", "0.59160376", "0.5906788", "0.5904325", "0.5901899", "0.5901724", "0.59004897", "0.5895086", "0.5893577", "0.5891461", "0.58913517", "0.5887592", "0.5870612", "0.5861963", "0.58614284", "0.5847557", "0.58473223", "0.58406895", "0.58377624", "0.5834421", "0.5828227", "0.5826031", "0.58137286", "0.5812457", "0.58119756", "0.58119756", "0.58064437", "0.5805914", "0.58042705", "0.5803859", "0.5802494", "0.5793054", "0.57909685", "0.5789025", "0.5783668", "0.57815266", "0.5781281", "0.57807523", "0.5780077", "0.5779142", "0.57749546", "0.5774437" ]
0.0
-1
DELETE RECORD(S) The 'delete' method of the model accepts int and array
function delete( $id = FALSE ) { switch ( $_SERVER ['REQUEST_METHOD'] ) { case 'GET': $this->model_group->delete( $id ); redirect( $_SERVER['HTTP_REFERER'] ); break; case 'POST': $this->model_group->delete( $this->input->post('delete_ids') ); redirect( $_SERVER['HTTP_REFERER'] ); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete() \n {\n $model = $this->model;\n $input = Input::all(); \n \n $arrayIdDelete = $input[$model::getPrimaryKey()];\n \n $result = array();\n foreach ($arrayIdDelete as $id) {\n $singleResult = $this->deleteSingleObject($id);\n $result[] = $singleResult;\n }\n \n return $jsend = JSend\\JSendResponse::success($result);\n }", "public function actionDelete()\n\t{\n\t parent::actionDelete();\n\t $id=$_POST['id'];\n\t foreach($id as $ids)\n\t {\n\t\t$model=$this->loadModel($ids);\n\t\t$model->recordstatus=0;\n\t\t$model->save();\n\t }\n\t echo CJSON::encode(array(\n\t\t\t 'status'=>'success',\n\t\t\t 'div'=>'Data deleted'\n\t\t\t ));\n\t Yii::app()->end();\n\t}", "public function actionDelete()\n {\n $post = file_get_contents(\"php://input\");\n $data = Json::decode($post, true);\n $model = $this->findModel($data['ids']);\n $mensaje['mensaje'] = \"\";\n try {\n $model->delete();\n $mensaje['mensaje'] = \"Exitoso\";\n } catch(IntegrityException $e) {\n $mensaje['mensaje'] = \"Error\";\n }\n\n echo Json::encode($mensaje);\n exit;\n }", "public function actionDelete()\n\t{\n\t parent::actionDelete();\n\t\t$id=$_POST['id'];\n\t\tforeach($id as $ids)\n\t\t{\n\t\t $model=$this->loadModel($ids);\n\t\t $model->recordstatus=0;\n\t\t $model->save();\n\t\t}\n\t\techo CJSON::encode(array(\n 'status'=>'success',\n 'div'=>'Data deleted'\n\t\t\t\t));\n Yii::app()->end();\n\t}", "public function delete(){\r\n $id=$_POST['del_row'];\r\n $id=implode(',',$id);\r\n $this->Events_Model->delete($this->table,$id);\r\n}", "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "public function delete($model);", "public function delete()\n\t{\n\t\tif ($this->data['id'])\n\t\t{\n\t\t\treturn $this->db->delete($this->table_name, array('id' => $this->data['id']));\n\t\t}\n\t}", "public function delete(){\n\t\tglobal $db;\n\t\t$response = array('success' => false);\n\t\t$response['success']=$db->delete($this->table, \"id = $this->id\");\n\t return $response;\n\t}", "public function delete() {\n\n }", "public function DELETE() {\n #\n }", "public function actionDelete() {}", "public function actionDelete() {}", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function delete() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_delete', array($where));\n\n $result = $this->db->delete($this->_table());\n\n $this->_callbacks('after_delete', array($where, $result));\n\n return $this->db->affected_rows();\n }", "public function delete(){\r\n\t\tif(!$this->input->is_ajax_request()) show_404();\r\n\r\n\t\t//$this->auth->set_access('delete');\r\n\t\t//$this->auth->validate();\r\n\r\n\t\tif($this->input->post('ang_id') === NULL) ajax_response();\r\n\r\n\t\t$all_deleted = array();\r\n\t\tforeach($this->input->post('ang_id') as $row){\r\n\t\t\t//$row = uintval($row);\r\n\t\t\t//permanent delete row, check MY_Model, you can set flag with ->update_single_column\r\n\t\t\t$this->m_anggota->permanent_delete($row);\r\n\r\n\t\t\t//this is sample code if you cannot delete, but you must update status\r\n\t\t\t//$this->m_anggota->update_single_column('ang_deleted', 1, $row);\r\n\t\t\t$all_deleted[] = $row;\r\n\t\t}\r\n\t\twrite_log('anggota', 'delete', 'PK = ' . implode(\",\", $all_deleted));\r\n\r\n\t\tajax_response();\r\n\t}", "public function delete(array $where);", "public function deleteWhere(array $data)\n {\n return $this->model->where($data)->delete();\n }", "public function deleteBy(array $params)\n {\n return $this ->model ->where($params) ->delete();\n }", "public function actionBatchDelete() {\n if (($ids = Yii::$app->request->post('ids')) !== null) {\n $models = $this->findModelAll($ids);\n foreach ($models as $model) {\n $model->delete();\n }\n return $this->redirect(['index']);\n } else {\n throw new HttpException(400);\n }\n }", "public function delete()\n {\n \n }", "public function delete( array $params );", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n\n }", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n\n }", "public function delete()\n\t{\n\t\tif( !isset($this->attributes[static::$primaryKey]) || $this->attributes[static::$primaryKey] <= 0 )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn DataBase::delete(\"DELETE FROM `\" . static::$table . \"` WHERE `\" . static::$primaryKey . \"` = ?\", $this->attributes[static::$primaryKey]);\n\t}", "public function delete()\n {\n \n }", "public function delete() {\n\t\t$args = func_get_args();\n\n\t\t// no argument, so delete current object\n\t\tif (empty($args))\n\t\t\treturn $this->db->where('id', $this->id)->delete($this->table);\n\n\t\t// argument given, so delete that object\n\t\treturn $this->db->where('id', $args[0])->delete($this->table);\n\t}", "public function delete()\n {\n return $this->query->batchDelete($this->filter);\n }", "public function delete()\n {\n\n }", "public function delete(Model $model);", "public function delete(Model $model);", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function actionBulkDelete()\n { \n $request = Yii::$app->request;\n $pks = explode(',', $request->post( 'pks' )); // Array or selected records primary keys\n foreach ( $pks as $pk ) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose'=>true,'forceReload'=>'#crud-datatable-pjax'];\n }else{\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n \n }", "public function delete(){\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }", "function delete() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// check type\n\t\t$responseType = (KRequest::getString('show_list') == '1') ? 'list' : 'json';\n\n\t\t// set ids or just one id\n\t\t$id = KRequest::getInt('id');\n\t\t$ids = KRequest::getString('ids');\n\n\t\t// The system takes in 'id' or 'ids'. In either case, we make an array $ids for looping later\n\t\tif(!empty($ids)) {\n\t\t\t$ids = explode(',', $ids);\n\t\t}\n\t\telseif($id){\n\t\t\t$ids = [$id];\n\t\t}\n\t\telse $ids = [];\n\n\t\t// Cast all IDs to int for sanitation\n\t\tforeach ($ids as &$id) {\n\t\t\t$id = intval($id);\n\t\t}\n\t\tunset($id);\n\n\t\t// Bounce if no record ID came in\n\t\tif(empty($ids)) {\n\n\t\t\tif($responseType == 'json') {\n\n\t\t\t\tKenedoPlatform::p()->setDocumentMimeType('application/json');\n\n\t\t\t\techo ConfigboxJsonResponse::makeOne()\n\t\t\t\t\t->setSuccess(false)\n\t\t\t\t\t->setErrors(array(KText::_('Please select a record to delete')))\n\t\t\t\t\t->toJson();\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$error = KText::_('Please select a record to delete');\n\t\t\t\tKenedoPlatform::p()->sendSystemMessage($error, 'error');\n\t\t\t\tKenedoViewHelper::addMessage($error, 'error');\n\t\t\t\t$this->display();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t$model = $this->getDefaultModel();\n\t\t$success = $model->delete($ids);\n\n\t\t$this->purgeCache();\n\t\t$model->forgetRecords();\n\n\t\tif (KRequest::getInt('quickedit', 0) == 1) {\n\t\t\tif ($success) {\n\t\t\t\t$msg = KText::_('Records deleted.');\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$msg = implode(',', $model->getErrors());\n\t\t\t}\n\n\t\t\tKenedoPlatform::p()->sendSystemMessage($msg, 'notice');\n\t\t\t$this->setRedirect($_SERVER['HTTP_REFERER']);\n\t\t\treturn;\n\t\t}\n\n\t\t// Deliver the good news\n\t\tif ($responseType == 'json') {\n\n\t\t\t$messages = array();\n\t\t\tif ($success == true) {\n\t\t\t\t$messages[] = KText::_('Records deleted.');\n\t\t\t}\n\n\t\t\tKenedoPlatform::p()->setDocumentMimeType('application/json');\n\n\t\t\techo ConfigboxJsonResponse::makeOne()\n\t\t\t\t->setSuccess($success)\n\t\t\t\t->setErrors($model->getErrors())\n\t\t\t\t->setCustomData('messages', $messages)\n\t\t\t\t->toJson();\n\n\t\t}\n\t\telseif ($responseType == 'list'){\n\t\t\t$msg = KText::_('Records deleted.');\n\t\t\tKenedoPlatform::p()->sendSystemMessage($msg, 'notice');\n\t\t\tKenedoViewHelper::addMessage($msg, 'notice');\n\t\t\t$this->display();\n\t\t}\n\n\t\treturn;\n\n\t}", "public function actionDelete()\n {\n $id = Yii::$app->request->post('id');\n $this->findModel($id)->delete();\n }", "public function actionBulkDelete() {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post('pks')); // Array or selected records primary keys\n foreach ($pks as $pk) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if ($request->isAjax) {\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose' => true, 'forceReload' => '#crud-datatable-pjax'];\n } else {\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n }", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post('pks')); // Array or selected records primary keys\n foreach ($pks as $pk) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if ($request->isAjax) {\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose' => true, 'forceReload' => '#crud-datatable-pjax'];\n } else {\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n }", "public function actionBulkDelete()\n {\n $request = Yii::$app->request;\n $pks = explode(',', $request->post('pks')); // Array or selected records primary keys\n foreach ($pks as $pk) {\n $model = $this->findModel($pk);\n $model->delete();\n }\n\n if ($request->isAjax) {\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ['forceClose' => true, 'forceReload' => '#crud-datatable-pjax'];\n } else {\n /*\n * Process for non-ajax request\n */\n return $this->redirect(['index']);\n }\n }", "public function delete() {\r\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 delete(){\n\t if(!isset($this->attributes['id'])) \n\t\t\tthrow new Exception(\"Cannot delete new objects\");\n\t\t$this->do_callback(\"before_delete\");\n\t\treturn self::do_query(\"DELETE FROM \".self::table_for(get_class($this)).\n\t\t \" WHERE id=\".self::make_value($this->attributes['id']));\t\n\t}", "public function deleteall()\r\n {\r\n $ids = $this->input->post('records');\r\n if(!empty($ids))\r\n {\r\n foreach($ids as $id)\r\n {\r\n $this->SqlModel->deleteRecord($this->tblName, array($this->pKey=>$id));\r\n }\r\n }\r\n $this->session->set_flashdata('alert','deletesuccess');\r\n redirect(base_url('manage/'.$this->controller));\r\n\r\n }", "public function actionDelete()\n {\n if(isset($_POST['id'])){\n $id = $_POST['id'];\n $this->findModel($id)->delete();\n echo \"success\";\n }\n }", "function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}", "public function delete()\n {\n //\n }", "public function delete() {}", "public function delete() {}", "public function delete() {}", "public function delete() {}", "public function delete( $id ){\n \n\n }", "public function delete() {\n global $db;\n $this->_predelete();\n $result = $db->query(\"DELETE FROM \".$this->table.\" WHERE \".$this->id_field.\"=?\", array($this->{$this->id_field}));\n $this->_postdelete($result);\n return $result;\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function deleteData()\n {\n DB::table($this->dbTable)\n ->where($this->where)\n ->delete();\n }", "public function delete($id) {\r\n \r\n }", "public function deleting()\n {\n # code...\n }", "public function delete()\n {\n $class = strtolower(get_called_class());\n $table = self::$_table_name != null ? self::$_table_name : $class . 's';\n\n $pdo = PDOS::getInstance();\n\n $whereClause = '';\n foreach (static::$_primary_keys as $pk)\n $whereClause .= $pk . ' = :' . $pk . ' AND ';\n $whereClause = substr($whereClause, 0, -4);\n $sql = 'DELETE FROM ' . $table . ' WHERE ' . $whereClause;\n $query = $pdo->prepare($sql);\n $attributes = $this->getAttributes(new \\ReflectionClass($this));\n foreach ($attributes as $k => $v)\n {\n if (in_array($k, static::$_primary_keys))\n $query->bindValue(':' . $k, $v);\n }\n $query->execute();\n }", "public function delete($records = '')/*# : DeleteStatementInterface */;", "public function delete($arguments = []) {\n $this->dbh->query($this->query_array['delete'], $arguments);\n }", "public function delete()\n {\n $this->execute(\n $this->syntax->deleteSyntax(get_object_vars($this))\n );\n }", "public function delete( $id ){\n\n }", "public function delete()\n {\n return static::queryBuilder()->delete()->where(array('id' => $this->{$this->_idField}))->execute();\n }", "public function deletion($data, Model $model)\n { \n $this->table = $model->table;\n\n foreach($data as $record) {\n $this->unsetQuery();\n $this->delete('message_id = ?', [$record]);\n }\n }", "public function deleteData($sql, $params=[]){\n $this->create($sql,$params);\n\n }", "public function deleting($model)\n\t{\n\t}", "public function deleteRecord ($id);", "public abstract function delete($model, $useTransaction);", "public function actionDeleteList()\n {\n $ids = Yii::$app->request->post('ids');\n $success = false;\n\n if (!empty($ids)) {\n foreach ($ids as $id) {\n $model = $this->findModel($id);\n $success = $model->delete();\n }\n }\n\n Yii::$app->response->format = Response::FORMAT_JSON;\n return [\n 'success' => $success,\n ];\n }", "public function delete($ids){\n \n $filter = $this->primaryFilter; \n $ids = ! is_array($ids) ? array($ids) : $ids;\n \n foreach ($ids as $id) {\n $id = $filter($id);\n if ($id) {\n $this->db->where($this->primary_key, $id)->limit(1)->delete($this->table_name);\n }\n }\n }", "public function delete($where);", "function index_delete() {\n $id = $this->delete('id'); // Memanggil data berdasarkan arraynya\n $this->db->where('id', $id);\n $delete = $this->db->delete('telepon'); \n if ($delete) {\n $this->response(array('status' => 'success'), 201);// Jika berhasil maka akan tampil\n } else {\n $this->response(array('status' => 'fail', 502));// Jika gagal maka akan tampil\n }\n }", "public function actionDeleteList()\n {\n $ids = Yii::$app->request->post('ids');\n $success = false;\n if (!empty($ids)) {\n foreach ($ids as $id) {\n $model = $this->findModel($id);\n $success = $model->delete();\n }\n }\n\n Yii::$app->response->format = Response::FORMAT_JSON;\n\n return [\n 'success' => $success,\n ];\n }", "public function delete(){\r\n\t\t$this->db->delete();\r\n\t}", "public function delete() {\n $query = $this->queryBuilder->delete()->getQuery();\n return $this->query($query);\n }", "function getDeleteStatement($model,&$args);" ]
[ "0.7952355", "0.729585", "0.72710997", "0.7215494", "0.7199375", "0.7163834", "0.70801026", "0.7079605", "0.70690036", "0.700476", "0.69884175", "0.69828176", "0.69828176", "0.6978173", "0.6966919", "0.6949467", "0.69386584", "0.6937718", "0.6932682", "0.69243944", "0.69233704", "0.69204545", "0.69128686", "0.69128686", "0.6910049", "0.69054043", "0.6904933", "0.69018495", "0.6898345", "0.68880814", "0.68880814", "0.68830234", "0.68830234", "0.68830234", "0.68830234", "0.68807197", "0.6873145", "0.6859606", "0.6845366", "0.68448293", "0.68416417", "0.68416417", "0.68372005", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.6801917", "0.679341", "0.67928725", "0.67869115", "0.6785515", "0.6784275", "0.6782306", "0.6782306", "0.67816544", "0.67799276", "0.67593384", "0.6758949", "0.6757931", "0.6757931", "0.6757931", "0.6757931", "0.6757931", "0.6757931", "0.6757931", "0.6757931", "0.6757931", "0.6757931", "0.67572516", "0.6752006", "0.6741289", "0.6735479", "0.672993", "0.671085", "0.6708424", "0.6704146", "0.670404", "0.6697999", "0.66955703", "0.6684968", "0.66822195", "0.66758436", "0.6675121", "0.66737956", "0.6666319", "0.66644233", "0.6662969", "0.6657565", "0.665289", "0.6647421" ]
0.0
-1
Constructor. add_action and add_filters for class are here
private function __construct() { global $options, $wpdb; $this->options = $options; $this->wpdb = $wpdb; // I love the Redux Framework! // Default theme config. add_action('wp_head', array( $this, 'faviconList') ); add_action('wp_head', array( $this, 'customCSS') ); add_action('wp_footer', array( $this, 'customJS') ); add_action('wp_footer', array( $this, 'googleAnalytics') ); // Load custom dasboard widget and wp-admin logo //add_action( 'login_enqueue_scripts', array( $this, 'starLoginLogo') ); //add_filter( 'login_headerurl', array( $this, 'starLoginLogoUrl') ); //add_filter( 'login_headertitle', array( $this, 'starLoginLogoUrlTitle') ); // Disable all widgets and welcome panel //add_action('wp_dashboard_setup', array( $this, 'disableDashboardWidgets') ); //remove_action('welcome_panel', array( $this, 'wp_welcome_panel') ); // Star Welcome Dasboard //add_action('welcome_panel', array( $this, 'starWelcomePanel') ); //add_action('after_switch_theme',array( $this, 'starWelcomePanelInit') ); // Admin Custom CSS add_action('admin_head', array( $this, 'adminCustomCss') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct() {\n\t\t\t$this->register_actions();\t\t\n\t\t\t$this->register_filters();\n\t\t}", "protected function __construct() {\n\t\t\tadd_action( 'init', array( $this, 'action__init' ), 11 );\n\t\t}", "function __construct()\n {\n add_action('init', array($this, 'init'));\n\n add_action('do_feed', array( $this, 'disable_feed'), 1 );\n add_action('do_feed_rdf', array( $this, 'disable_feed'), 1 );\n add_action('do_feed_rss', array( $this, 'disable_feed'), 1 );\n add_action('do_feed_rss2', array( $this, 'disable_feed'), 1 );\n add_action('do_feed_atom', array( $this, 'disable_feed'), 1 );\n add_action('do_feed_rss2_comments', array( $this, 'disable_feed'), 1 );\n add_action('do_feed_atom_comments', array( $this, 'disable_feed'), 1 );\n\n }", "public function __construct() {\n\t\tadd_action( 'init', array(&$this, 'register') );\n\t}", "function __construct() {\n add_action( 'acf/init', [ $this, 'init' ], 20 );\n }", "public function __construct() {\r\n\t\tadd_action( 'init', array( $this, 'run_request' ) );\r\n\t}", "function __construct(){\n //Actions\n add_action('init', array($this, 'init'), 1);\n \n }", "public function __construct()\n {\n add_action( 'init', array($this, 'register') );\n add_action( 'init', array($this, 'set_query_variables') );\n }", "private function __construct() {\n\t\tadd_filter( 'init', array( $this, 'init' ) );\n\t\tadd_action( 'admin_init', array( $this, 'admin_init' ) );\n\t\tadd_action( 'admin_menu', array( $this, 'admin_menu' ) );\n\t\tadd_action( 'get_footer', array( $this, 'insert_code' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'track_outgoing' ) );\n\t\tadd_filter( 'plugin_action_links', array( $this, 'add_plugin_page_links' ), 10, 2 );\n\t}", "public function __construct(){\n add_action( 'init', array( &$this, 'init' ) );\n\t\tadd_action( 'add_meta_boxes', array( &$this, 'pvplugin_add_meta_box' ) );\n\t\tadd_action( 'save_post', array( &$this, 'pvplugin_save_meta_box_data' ) );\n\t\tadd_action( 'restrict_manage_posts', array( &$this, 'wpse45436_admin_posts_filter_restrict_manage_posts' ) );\n\t\tadd_filter( 'parse_query', array( &$this, 'wpse45436_posts_filter' ) );\n\t\t\n\t\t\n }", "public function __construct()\n\t{\n\t\tadd_action( 'init', array( $this, 'init' ), 199 );\n\n\t\t// parse_query needs to be run before co-author-plus' posts_* filters,\n\t\t// which're at priority 10\n\t\tadd_action( 'parse_query', array( $this, 'parse_query' ), 9 );\n\t}", "public function __construct()\r\n {\r\n\tadd_action('admin_init', array( $this, 'init' ));\r\n\tadd_action('admin_notices', array( $this, 'logs_reset' ));\r\n\tadd_action('save_post', array( $this, 'save' ));\r\n }", "function __construct() {\n\t\t//$this->model_custom_wp_actions();\n\t\t\n\t\t//Add custom wordpress filter hooks for this model\n\t\t//$this->model_custom_wp_filters();\n\t}", "public function __construct()\n\t{\n\t\tadd_action('admin_init', [$this, 'addMetaFields']);\n\t\tadd_action('edit_term', [$this, 'saveMetaFields']);\n\t\tadd_action('create_slideshow', [$this, 'saveMetaFields']);\n\t\tadd_action('delete_term', [$this, 'deleteMetaFields']);\n\t\tadd_action('admin_enqueue_scripts', [$this, 'enqueueStyles']);\n\t}", "function __construct() {\n\n\t\t\t// actions\n\t\t\tadd_action( 'wp_restore_post_revision', array( $this, 'wp_restore_post_revision' ), 10, 2 );\n\n\t\t\t// filters\n\t\t\tadd_filter( 'wp_save_post_revision_check_for_changes', array( $this, 'wp_save_post_revision_check_for_changes' ), 10, 3 );\n\t\t\tadd_filter( '_wp_post_revision_fields', array( $this, 'wp_preview_post_fields' ), 10, 2 );\n\t\t\tadd_filter( '_wp_post_revision_fields', array( $this, 'wp_post_revision_fields' ), 10, 2 );\n\t\t\tadd_filter( 'acf/validate_post_id', array( $this, 'acf_validate_post_id' ), 10, 2 );\n\n\t\t}", "public function __construct()\n {\n // Prepare the action for execution, leveraging constructor injection.\n }", "function __construct() {\n\t\t\tadd_action( 'admin_menu', array( $this, 'add_menu_item' ) );\n\t\t\tadd_action( 'croco_spb_save_options', array( $this, 'save_settings' ) );\n\t\t}", "public function __construct() {\n\t\tadd_action( 'rest_api_init', array( $this, 'register_rest_routes' ) );\n\t}", "public function __construct() {\r\n add_action( 'init', [$this,'simple_events_slider'] );\r\n add_action( 'block_categories', [$this,'simple_events_plugin_block_categories'], 10, 2 );\r\n }", "function __construct() {\n add_filter( 'timber_context', array( $this, 'theme_variables' ) );\n add_action( 'after_setup_theme', array( $this, 'format_support' ) );\n add_action( 'admin_init', array( $this, 'editor_gravity_forms_access' ) );\n // add_action( 'wp_enqueue_scripts', array( $this, 'open_notification' ) );\n add_filter( 'author_link', array( $this, 'member_link' ), 10, 3);\n add_filter( 'login_url', array( $this, 'member_login_url' ), 10, 2 );\n // add_action( 'init', array( $this, 'map' ) );\n }", "public function __construct()\n {\n \n // add_action( 'template_redirect', array($this, 'is404') );\n add_action( 'wp_logout', array($this, 'logout_redirect'), 11);\n add_action( 'phpmailer_init', array($this, 'send_smtp_email') );\n\n // add_action( 'comment_post', array($this, 'add_custom_comment_field') );\n\n // add_role( 'wholesaler', __( 'Wholesaler' ), array( 'read' => true, ));\n }", "public function __construct() {\n\n\t\t// Add action hooks\n\t\tadd_action( 'init', array( $this, 'init' ) );\n\t\tadd_action( 'cmb2_admin_init', array( $this, 'events_metaboxes' ) );\n\t\tadd_action( 'template_redirect', array( $this, 'set_event_data' ) );\n\n\t\tadd_filter( 'the_content', array( $this, 'add_extra_content' ) );\n\t\tadd_filter( 'src_featured_image_url', array( $this, 'filter_featured_image_url' ) );\n\t\tadd_filter('upload_mimes', array( $this, 'allow_setup_uploads' ) );\n\n\t\t// iRacing results uploader\n\t\tadd_action( 'add_meta_boxes', array( $this, 'results_upload_metabox' ) );\n\t\tadd_action( 'save_post', array( $this, 'results_upload_save' ), 10, 2 );\n\t\tadd_action( 'post_edit_form_tag', array( $this, 'update_form_enctype' ) );\n\n\t}", "public function __construct() {\n\t\tadd_filter( 'rest_pre_insert_post', [ $this, 'set_request' ], 10, 2 );\n\t}", "protected function __construct() {\n $this->load_data();\n add_action( 'init', array( $this, 'init' ), 0 );\n }", "public function __construct()\r\n {\r\n add_action('wp_ajax_remove_message', [$this, 'ajax_remove_message']);\r\n \r\n add_action('wp_ajax_update_message', [$this, 'ajax_update_message']);\r\n \r\n add_action('wp_ajax_search_leads', [$this, 'ajax_search_leads']);\r\n \r\n add_action('admin_init', [$this, 'admin_init']);\r\n \r\n add_action('admin_menu', [$this, 'settings_page']);\r\n \r\n add_action('admin_enqueue_scripts', [$this, 'admin_enqueue'], 99);\r\n }", "public function __construct() {\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );\n\t\tadd_action( 'save_post', array( $this, 'save_post' ) );\n\t}", "public function __construct() {\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );\n\t\tadd_action( 'save_post', array( $this, 'save_post' ) );\n\t}", "public function __construct() {\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );\n\t\tadd_action( 'save_post', array( $this, 'save_post' ) );\n\t}", "public function __construct()\n {\n add_action('wp_enqueue_scripts', [$this, 'frontEndStyleScripts']);\n /**\n * Filter responsible for updating the User Listing template page title.\n *\n * @since 1.0.0\n */\n add_filter('pre_get_document_title', [$this, 'modifyUserListPageTitle'], 10, 1);\n /**\n * Filter responsible for rewriting the URL in your own pattern.\n *\n * @since 1.0.0\n */\n add_action('generate_rewrite_rules', [$this, 'rewriteURL']);\n /**\n * Filter responsible for registering query variable.\n *\n * @since 1.0.0\n */\n add_filter('query_vars', [$this, 'registerQueryVars'], 10);\n }", "public function __construct() {\n\t\tadd_action( 'init', array( $this, 'people' ) );\n\t}", "public function __construct() {\n\n \tself::$instance = $this;\n\n \tadd_filter( 'themeco_update_api', array( $this, 'register' ) );\n \tadd_filter( 'themeco_update_cache', array( $this, 'cache_updates' ), 10, 2 );\n \tadd_action( 'themeco_update_api_response', array( $this, 'update' ) );\n\n add_action( 'init', array( $this, 'init' ) );\n // add_action( 'upgrader_pre_download', array( $this, 'upgrader_screen_message' ), 10, 3 );\n\n }", "public function __construct() {\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'media_buttons', array( self::class, 'add' ) );\n\t\tadd_action( 'wp_enqueue_media', array( self::class, 'register_scripts_styles' ) );\n\t\tadd_action( 'wp_ajax_list_gallery_dir', array( self::class, 'handle_ajax' ) );\n\t}", "public function __construct() {\r\n\t\t\t// Register actions.\r\n\t\t\t\tadd_action( 'admin_init', array( &$this, 'admin_init' ) );\r\n\t\t\tadd_action( 'admin_menu', array( &$this, 'add_menu' ) );\r\n\t\t}", "public function __construct() {\n\t\t\t$this->init_globals();\n\t\t\t$this->init_actions();\n\t\t}", "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->resolution_summary = \"\";\n\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "function __construct() {\n if ( is_null( self::$instance ) ) {\n self::$instance = $this;\n \n add_action( 'admin_menu', array( $this, 'add_menu'));\n \n add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts') );\n \n add_action( 'wp_ajax_wp_sample_plugin_email_search', array( $this, 'ajax_wp_sample_plugin_email_search' ) );\n }\n }", "function __construct() {\r\n\t\tadd_action('add_meta_boxes', array($this,'add_meta_boxes'));\r\n\t\tadd_action('save_post', array($this,'save_post'));\r\n\t\tadd_action($this->output_hook, array($this,'output_embed_code'));\r\n\t}", "function __construct() {\n $this->define_constants();\n add_action( 'plugins_loaded', [$this, 'init'] );\n add_action( 'post_updated', [$this, 'modified_date'], 10, 2 );\n register_activation_hook( __FILE__, [$this, 'move_merge_template'] );\n add_action( 'save_post', [$this, 'prevent_br'] );\n\n add_action( 'before_delete_post', [$this, 'wps_remove_attachment_with_post'], 10 );\n }", "function __construct(){\n\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\t\tregister_deactivation_hook( __FILE__, array( $this, 'deactivate' ) );\n\t\tregister_uninstall_hook( __FILE__, array( __CLASS__, 'uninstall' ) );\n\n\t\t$this->constants();\n\t\t$this->includes();\n\n\t\tadd_action( 'init', array( $this, 'add_new_feed' ) );\n\t\tadd_filter( 'query_vars', array( $this, 'add_user_query_var' ) );\n\n\t\tadd_action( 'show_user_profile', array( $this, 'show_links' ) );\n\t\tadd_action( 'edit_user_profile', array( $this, 'show_links' ) );\n\n\t}", "public function __construct() {\n\t add_action( 'init', array( $this, 'init_setup' ), 10, 1 );\n\t\tadd_action( 'cmb2_render_image_select', array( $this, 'cmb2_render_image_select' ), 10, 5 );\n\t\tadd_action( 'plugins_loaded', array( $this, 'setup_plugin_updater' ), 10, 1 );\n\n\t}", "public function __construct()\n {\n $this->setupFilters();\n }", "public function __construct() {\n\t\tadd_action( 'admin_notices', array( $this, 'admin_notices' ) );\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_order_meta_box' ) );\n\t\tadd_action( 'admin_init', array( $this, 'add_sections' ) );\n\t\tadd_action( 'admin_menu', array( $this, 'add_plugin_settings_page' ) );\n\t\tadd_action( 'edit_user_profile', array( $this, 'user_profile_pictures' ) );\n\t}", "public function __construct() {\n\n\t\t$this->actions = [];\n\t\t$this->filters = [];\n\t\t\n\t\t# Components\n\t\t$this->nav = new Nav ();\n\t\t$this->api = new API ();\n\t\t$this->admin = new Admin ();\n\t\t\n\t\t# Define hooks\n\t\t$this->enqueue ();\n\t\t$this->admin_hooks ();\n\t\t$this->admin_ajax_routing ();\n\t\t$this->public_hooks ();\n\t}", "public function __construct() {\n\n parent::__construct();\n\n add_action( 'wpp_settings_help_tab', array( $this, 'help_tab' ), 10, 4 );\n\n add_action( 'wp_ajax_wpp_export_properties', array( $this, 'wpp_export_properties' ) );\n add_action( 'wp_ajax_nopriv_wpp_export_properties', array( $this, 'wpp_export_properties' ) );\n\n /** May be export properties to CSV file */\n add_action( \"template_redirect\", array( $this, 'maybe_export_properties_to_scv' ) );\n\n }", "function __construct(){\n\t\t\tadd_action( 'init' , array( $this, 'custom_post_type' ) );\n\t\t}", "public function __construct() {\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_metaboxes' ) );\n\t\tadd_action( 'edd_save_download', array( $this, 'save_requirements' ), 10, 2 );\n\t}", "public function __construct() {\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );\n\t\tadd_action( 'save_post', array( $this, 'save' ) );\n\t}", "function __construct()\r\n\t{\r\n\r\n\t\tadd_action('admin_init', array(&$this, 'options_init') );\r\n\t\tadd_action('admin_menu', array(&$this, 'add_menu_items'));\r\n\t}", "public function __construct() {\n add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );\n add_action( 'save_post', array( $this, 'save' ) );\n }", "private function __construct() {\n\t\tadd_action( 'bbp_init', array( $this, 'bbp_init' ) );\n\t}", "public function __construct()\n\t{\n\t\tadd_action('add_meta_boxes', array($this, 'add_meta_boxes'));\n\t\t\n\t\t# on init to catch POST\n\t\tadd_action('init', array($this, 'save_data'));\n\t\t\n\t\t# include javascript\n\t\tadd_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));\n\t\t\n\t\t# include css\n\t\tadd_action('admin_print_styles', array($this, 'enqueue_styles'));\n\t}", "public function __construct() {\n\n //d(dirname(dirname( __FILE__ )));\n\n \tadd_action( 'wp_enqueue_scripts', array($this, 'load_custom_wp_frontend_style') );\n \tadd_action( 'init', [$this, 'custom_post_type'] );\n add_action( 'wp_ajax_custom_survey_tracker', array($this, 'plugin_data_custom_survey_tracker_func') );\n\t add_action( 'wp_ajax_nopriv_custom_survey_tracker', array($this, 'plugin_data_custom_survey_tracker_func') );\n\n\t\tadd_action( 'add_meta_boxes', array($this, 'add_events_metaboxes') );\n\n }", "function __construct() {\n\t\t\n\t\t// Add hooks.\n\t\tadd_action( 'admin_menu', \t\t\t\tarray( $this, 'admin_menu' ) );\n\t\tadd_action( 'admin_enqueue_scripts',\tarray( $this, 'admin_enqueue_scripts' ) );\n\t\tadd_action( 'admin_body_class', \t\tarray( $this, 'admin_body_class' ) );\n\t}", "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->media_values = array(\n\t\t\t101 => Kohana::lang('ui_main.all'),\n\t\t\t102 => Kohana::lang('actionable.actionable'),\n\t\t\t103 => Kohana::lang('actionable.urgent'),\n\t\t\t104 => Kohana::lang('actionable.action_taken')\n\t\t);\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function __construct() {\n\t\tadd_action( 'wp_head', array( $this, 'head_text_styles' ) );\n\t\tadd_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );\n\t\tadd_filter( 'image_size_names_choose', array( $this, 'media_manager_image_sizes' ) );\n\t}", "public function __construct() {\n add_action('acf/init', array( $this, 'acf_init' ) );\n\n // hide acf in admin - client doesnt need to see this\n add_filter('acf/settings/show_admin', '__return_false');\n\n // add acf fields to wp search\n if ( class_exists( 'Torque_ACF_Search' ) ) {\n add_filter( Torque_ACF_Search::$ACF_SEARCHABLE_FIELDS_FILTER_HANDLE, array( $this, 'add_fields_to_search' ) );\n }\n }", "public function __construct()\n\t{\n\t\tadd_filter( 'query_vars', array( $this, 'query_vars' ), 1 );\n\t\tadd_filter( 'posts_clauses', array( $this, 'posts_clauses' ), 99, 2 );\t\t\n\t\tadd_filter( 'posts_results', array( $this, 'posts_results' ), 10, 2 );\n\t}", "public function __construct()\n {\n add_filter('template_include', [$this, 'template']);\n add_filter('init', [$this, 'rewriteRules']);\n add_filter('query_vars', [$this, 'query']);\n }", "public function __construct() {\n\t\tadd_action( 'plugins_loaded', array( $this, 'init' ), 100 );\n\t\tadd_action( 'wc_rs_sync', array( $this, 'start' ) );\n\t\tadd_action( 'wp_ajax_wc_rs_import', array( $this, 'import' ) );\n\t\tadd_action( 'wp_ajax_nopriv_wc_rs_import', array( $this, 'import' ) );\n\t}", "public function __construct()\n {\n add_action('init', [__CLASS__, 'register_post_types']);\n }", "public function __construct() {\n\t\t//add_action('wp_loaded', array(&$this, 'process_request'));\n\t\tadd_action( 'admin_menu', array( &$this, 'admin_menu' ) );\n\t\tadd_filter( 'manage_jbp_pro_posts_columns', array( &$this, 'table_columns' ) );\n\t\tadd_filter( 'manage_jbp_pro_posts_custom_column', array( &$this, 'table_columns_content' ), 10, 2 );\n\t\tadd_action( 'add_meta_boxes', array( &$this, 'metaboxes' ) );\n\t\tadd_action( 'save_post', array( &$this, 'update_meta' ), 10, 3 );\n\t}", "public function __construct() {\n add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );\n add_action( 'save_post', array( $this, 'save' ) );\n }", "private function __construct() {\n\t\t$action = isset($_GET['action']) ? sanitize_key($_GET['action']) : '';\n\t\t$copy = isset($_GET['copy']) ? intval($_GET['copy']) : 0;\n\t\tif(!empty($copy)) {\n\t\t\t$this->copy_event = new EL_Event($copy);\n\t\t\tadd_filter('get_object_terms', array(&$this, 'set_copied_categories'));\n\t\t}\n\n\t\t$this->options = &EL_Options::get_instance();\n\t\t$this->is_new = 'edit' !== $action;\n\n\t\tadd_action('add_meta_boxes', array(&$this, 'add_eventdata_metabox'));\n\t\tadd_action('edit_form_top', array(&$this, 'form_top_content'));\n\t\tadd_action('edit_form_after_title', array(&$this, 'form_after_title_content'));\n\t\tadd_action('admin_print_scripts', array(&$this, 'embed_scripts'));\n\t\tadd_action('save_post_el_events', array(&$this, 'save_eventdata'), 10, 3);\n\t\tadd_filter('enter_title_here', array(&$this, 'change_default_title'));\n\t\tadd_filter('post_updated_messages', array(&$this, 'updated_messages'));\n\t}", "public function __construct() {\n\n\t\tadd_action( 'it_exchange_register_addons', array( $this, 'register_addon' ) );\n\t\tadd_action( 'template_redirect', array( $this, 'update_user_history' ) );\n\t\tadd_action( 'it_exchange_generate_transaction_object', array( $this, 'update_transaction_object') );\n\t\tadd_action( 'it_exchange_add_transaction_success', array( $this, 'save_user_history' ), 9 );\n\n\t\t// Uncomment the following action to enable devmode\n\t\t// add_action( 'get_header', array( $this, 'devmode' ) );\n\n\t}", "public function __construct() {\n\n add_action( 'wpuf_add_post_after_insert', array( $this, 'save_user_anaytics_info' ), 10, 4 );\n add_action( 'user_register', array( $this, 'save_user_anaytics_on_registration' ), 10, 1 );\n\n add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );\n\n add_action( 'edit_user_profile', array( $this, 'show_user_analytics_info' ), 11 );\n }", "function __construct() {\n\t\tadd_action('admin_menu', array( &$this,'scd_register_menu') );\n\t\tadd_action('load-index.php', array( &$this,'scd_redirect_dashboard') );\n\t}", "private function __construct() {\n add_action('wp_enqueue_scripts', array(&$this, 'enqueue_scripts'));\n add_action('wp_ajax_wpic_load_next_page', array(&$this, 'ajax_callback'));\n add_action('wp_ajax_nopriv_wpic_load_next_page', array(&$this, 'ajax_callback'));\n add_action('parse_query', array(&$this, 'parse_query'));\n }", "public function __construct() {\n\n // Register the post type\n add_action('init', [ $this, 'reg_post_type' ] );\n add_action('init', [ $this, 'add_taxonomy' ] );\n add_action('init', [ $this, 'add_tags' ] );\n\n add_action( 'add_meta_boxes', [ $this, 'add_metabox' ], 1 );\n add_action( 'save_post', [ $this, 'save_metabox' ], 10, 2 );\n\n }", "function __construct() {\n add_action( 'admin_menu', [$this, 'register_menu'] );\n }", "public function __construct() {\n\t\t\t// register actions\n\t\t\tadd_action( 'admin_menu', array( $this, 'add_menu' ) );\n\t\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'load_front_resources' ) );\n\t\t}", "function __construct(){\n\t\t$this->add_hooks();\n\t}", "public function __construct()\n\t{\n\t\t$this->filter('before', 'orchestra::manage');\n\t\t\n\t\tparent::__construct();\n\t}", "function __construct() {\n add_action( 'init', array( $this, 'dt_testimonial_simple' ) );\n \n // Use this when creating a shortcode addon\n add_shortcode( 'dt_testimonial_simple', array( $this, 'dt_testimonial_simple_rander' ) );\n\n // Register CSS and JS\n add_action( 'wp_enqueue_scripts', array( $this, 'dt_testimonial_simple_loadCssAndJs' ) );\n add_action( 'front_enqueue_js', array( $this, 'dt_testimonial_simple_loadCssAndJs' ) );\n }", "public function __construct() {\n\t\tadd_action('parse_query', array($this, 'intercept_query'));\n\t}", "public function __construct() {\n\n\t\tadd_filter( 'plugin_action_links', array( $this, 'action_links' ), 10, 2 );\n\n\t\t/* Only run our customization on the 'edit.php' page in the admin. */\n\t\tadd_action( 'load-edit.php', array( $this, 'load_edit' ) );\n\n\t\t/* Edit post editor meta boxes. */\n\t\tadd_action( 'do_meta_boxes', array( $this, 'edit_metaboxes' ) );\n\n\t\t/* Order the knowledgebase items by the 'order' attribute in the 'all_items' column view. */\n\t\tadd_filter( 'pre_get_posts', array( $this, 'column_order' ) );\n\n\t\t/* Modify the columns on the \"menu items\" screen. */\n\t\tadd_filter( 'manage_edit-knowledgebase_item_columns', array( $this, 'edit_knowledgebase_item_columns' ) );\n\n\t\tadd_action( 'manage_knowledgebase_item_posts_custom_column', array( $this, 'manage_knowledgebase_item_columns' ), 10, 2 );\n\n\t}", "function __construct( ) {\n\t\tadd_action( 'in_widget_form', array( $this, 'in_widget_form'), 10, 3 );\n\t\tadd_filter( 'widget_update_callback', array( $this, 'widget_update_callback' ), 10, 4 );\n\t\tadd_filter( 'dynamic_sidebar_params', array( $this, 'dynamic_sidebar_params' ) );\n\t}", "public function __construct(){\n add_action( 'init', [ $this, 'create_resource_lists' ], 0 ); \t\n \t\n \t//init the custom post type for record items\n add_action( 'init', [ $this, 'resource_list_generator' ], 0 ); \n \n\n }", "public function __construct() {\n add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );\n add_action( 'save_post', array( $this, 'save' ) );\n\n\n }", "function __construct()\n\t{\n\t\tadd_action( 'wp_ajax_add_foobar', array(&$this, 'ajax_process_form') );\n\t\tadd_action( 'wp_ajax_nopriv_add_foobar', array(&$this, 'ajax_process_form') );\n\t\tadd_action( 'wp_ajax_add_uno', array(&$this, 'ajax_process_uno') );\n\t\tadd_action( 'wp_ajax_nopriv_add_uno', array(&$this, 'ajax_process_uno') );\n\t}", "function __construct() {\n\t\n\t\tadd_action('admin_menu', array( &$this,'rc_scd_register_menu') );\n\t\tadd_action('load-index.php', array( &$this,'rc_scd_redirect_dashboard') );\n \n\t}", "public function __construct() {\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); \n \n //ajax hooks for otter importer\n\t\tadd_action('wp_ajax_otter_get_tweets', array($this, 'get_tweets'));\n add_action('init', array($this,'customRSS'));\n //rss feed generator\n\t\tadd_action('wp_ajax_otter_update_rss', array($this, 'updateRSS'));\n \n }", "public function __construct() {\n\t\tadd_action( 'init', array( $this, 'register_meta' ) );\n\t\tadd_action( 'post_tag_add_form_fields', array( $this, 'new_tag_featured_topic_form' ) );\n\t\tadd_action( 'post_tag_edit_form_fields', array( $this, 'edit_tag_featured_topic_form' ) );\n\t\tadd_action( 'edit_post_tag', array( $this, 'save_tag_featured_topic' ) );\n\t\tadd_action( 'create_post_tag', array( $this, 'save_tag_featured_topic' ) );\n\t}", "function __construct(){\n\t\tadd_filter('lasso_custom_options',\t\tarray($this,'options'));\n\n\t\t// if you arent using aesop story engine then this filter isnt needed\n\t\tadd_filter('aesop_avail_components',\tarray($this, 'options') );\n\t}", "public function __construct()\n {\n // http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields\n add_action('show_user_profile', array($this, 'add_as_custom_fields'));\n add_action('edit_user_profile', array($this, 'add_as_custom_fields'));\n add_action('personal_options_update', array($this, 'save_as_custom_fields'));\n add_action('edit_user_profile_update', array($this, 'save_as_custom_fields'));\n\n // Add a shortcode.\n add_shortcode('display_as_lecturers', array($this, 'display_as_lecturers'));\n }", "public function __construct() {\n\t\tadd_action( 'init', array($this, 'register_cpts') );\n\t\t\n\t\t/* add meta boxes */\n\t\tadd_action( 'init', array($this, 'post_meta_boxes_setup') );\n\t\t\n\t\t/* saving hook */\n\t\tadd_action( 'save_post', array($this, 'save_meta_box_data') );\n\t\t\n\t}", "function __construct() {\n\t\tadd_action( 'oxygen_enqueue_scripts', \tarray( $this, 'enqueue_script' ) );\n\t\tadd_action( 'admin_menu', \t\t\t\tarray( $this, 'add_typekit_page' ) );\n\t\tadd_action( 'ct_builder_ng_init', \t\tarray( $this, 'init_typekit' ) );\n\t}", "public function __construct()\n {\n if (!$this->enableGoogleMaps) {\n return;\n }\n\n add_action('acf/init', [$this, 'registerAPIKey']);\n\n add_action('wp_enqueue_scripts', [$this, 'enqueue'], 100);\n }", "public function __construct()\n {\n add_action('init',array($this,'custom_rewrite_rule'),10,0);\n // add template in footer\n add_action('wp_footer',array($this,'f_get_template'));\n }", "function __construct() {\n\t\tPluginUpdateIgnore::__construct();\n\t\tadd_action('admin_head-plugins.php', array(&$this, 'admin_jquery'));\n\t\tadd_action('admin_head-plugins.php', array(&$this, 'admin_css'));\n\t\tadd_action('admin_footer-plugins.php', array(&$this, 'admin_js'));\n\t}", "function __construct(){\r\n\t\tadd_filter( 'archive_template', array( $this, 'render_archive_member' ) );\r\n\t\tadd_filter( 'taxonomy_template', array( $this, 'render_taxonomy_member' ) );\r\n\t\tadd_filter( 'pre_get_posts', array( $this, 'show_post_on_texonomy_template' ) );\r\n\t}", "public function __construct()\n {\n add_action( 'admin_menu', array( $this, 'register' ), $this->priority );\n }", "private function __construct() {\n add_action('after_setup_theme', array(\n $this, 'after_setup_theme'));\n add_action('widgets_init', array($this, 'widgets_init'));\n add_action('wp_enqueue_scripts', array(\n $this, 'wp_enqueue_scripts'));\n }", "public function __construct()\n {\n # set variables\n $this->cpt_prefix = 'ash_coupons'; \n $this->menu_parent = 'ad_skip_hire'; \n\n # hook into wordpress using actions\n add_action('init', [$this, 'coupon_post_type']);\n add_filter( 'cmb2_meta_boxes', [$this, 'register_meta_fields'] );\n add_filter( 'manage_' . $this->cpt_prefix . '_posts_columns', [$this, 'modify_post_columns'] );\n add_action( 'manage_' . $this->cpt_prefix . '_posts_custom_column', [$this, 'modify_table_content'], 10, 2 );\n }", "function __construct() {\n add_action( 'wp_ajax_ale_ajax_demo_install', array( $this, 'ale_ajax_demos_controller' ) );\n }", "public function __construct()\n {\n add_action('admin_menu', array($this, 'add_plugin_page'));\n add_action('admin_init', array($this, 'page_init'));\n add_filter('cron_schedules', array($this, 'filter_cron_schedules'));\n register_activation_hook(__FILE__, array($this, 'plugin_activate'));\n register_deactivation_hook(__FILE__, array($this, 'plugin_deactivate'));\n }", "function __construct() {\n\t\t//general\n\t\tadd_filter( 'plugin_action_links_'. plugin_basename( __FILE__ ), array( &$this, 'plugin_action_links' ), 10, 4 );\n\n\t\t//options page\n\t\tadd_action( 'admin_menu', array( &$this, 'menu' ) );\n\t\tadd_action( 'wp_ajax_fetch_uniqid', array( &$this, 'fetch_uniqid_cb' ) );\n\n\t\t//meta box\n\t\tadd_action( 'add_meta_boxes', array( &$this, 'setup_box' ) );\n\t\tadd_filter( 'is_protected_meta', array( &$this, 'is_protected_meta' ), 10, 2 );\n\t\tadd_action( 'save_post', array( &$this, 'save_box' ), 10, 2 );\n\n\t\t//output\n\t\tadd_action( 'wp_head', array( &$this, 'wp_head' ) );\n\t}", "function __construct() {\n add_action( 'init', array( $this, 'dt_icon_list' ) );\n \n // Use this when creating a shortcode addon\n add_shortcode( 'dt_icon_list', array( $this, 'dt_icon_list_rander' ) );\n\n // Register CSS and JS\n add_action( 'wp_enqueue_scripts', array( $this, 'dt_icon_list_loadCssAndJs' ) );\n }", "function __construct() {\n\t\t\t// Hooks\n\t\t\tadd_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 9999 ); // Admin Bar Menu (late)\n\t\t}", "function __construct() {\n\t\t$this->plugin_file = __FILE__;\n\t\t$this->plugin_basename = plugin_basename( $this->plugin_file );\n\n\t\tadd_action( 'admin_init', array( $this, 'settings_fields' ) );\n\t\tadd_action( 'admin_menu', array( $this, 'add_page' ) );\n\t\tadd_action( 'network_admin_menu', array( $this, 'add_page' ) );\n\n\t\tadd_action( 'wp_ajax_set_github_oauth_key', array( $this, 'ajax_set_github_oauth_key' ) );\n\t}", "public function __construct() {\n\t\t\tadd_action( 'init', array( &$this, 'register_post_type' ) );\n\t\t}", "public function __construct()\n\t{\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}" ]
[ "0.800894", "0.79222494", "0.77950823", "0.77329034", "0.7692008", "0.76669127", "0.7666821", "0.75673574", "0.75289726", "0.7519068", "0.750671", "0.75006586", "0.7491124", "0.7477146", "0.74686396", "0.7466926", "0.7463283", "0.7457184", "0.7448143", "0.7440086", "0.742109", "0.74118596", "0.7408325", "0.73953253", "0.7392701", "0.73898065", "0.73898065", "0.73898065", "0.7388607", "0.7372755", "0.73673856", "0.7363732", "0.7358185", "0.73477304", "0.7341213", "0.7334849", "0.7329854", "0.73137474", "0.7298319", "0.7298039", "0.7292747", "0.7270188", "0.7263981", "0.7263418", "0.7258949", "0.72531265", "0.7252081", "0.7251311", "0.72379184", "0.72249305", "0.72236705", "0.7222412", "0.7220163", "0.72190094", "0.7217659", "0.72133905", "0.72031474", "0.71977556", "0.71952444", "0.7193026", "0.71924955", "0.71882457", "0.71787834", "0.71745205", "0.7169329", "0.716351", "0.7148215", "0.71347195", "0.7121184", "0.7117491", "0.7116291", "0.7113584", "0.7105547", "0.7104668", "0.71033984", "0.71032184", "0.70984066", "0.7086739", "0.7083168", "0.7072675", "0.70706886", "0.7063012", "0.70597947", "0.7057043", "0.70531595", "0.7052195", "0.7028217", "0.7027013", "0.7024645", "0.7023956", "0.7013577", "0.7008917", "0.6998923", "0.69870734", "0.6983494", "0.69828826", "0.6974055", "0.69724786", "0.6966635", "0.6965721", "0.6957563" ]
0.0
-1
If the single instance hasn't been set, set it now.
public static function getInstance() { if ( null == self::$instance ) { self::$instance = new DashboardSetup; } return self::$instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInstance(){\n\t\treturn self::$_singleton = $this;\n\t}", "public function setAsGlobal()\n {\n static::$instance = $this;\n }", "public function single_save()\n {\n //Logger::getInstance()->po_log(\"PO:single_save \" . get_class($this));\n PersistentManager::getInstance()->save_object( $this, 0 );\n }", "public static function setInstance( $instance ){\n return self::$instance = $instance;\n }", "public function setGlobalInstance(){\n self::$instance = $this;\n }", "protected function set_post() {\n $this->post = $this->safe_find_from_id('Post');\n }", "public static function resetDefault()\n {\n self::$defaultInstanceIdentifier = false;\n }", "function assignSingle()\n {\n /* If id == 0, we shall create a new record. */\n if ($this->id)\n {\n /* Query data of this person. */\n $this->dbQuerySingle();\n }\n else\n {\n /* Initialize default values. */\n $this->_setDefaults();\n /* Find out the first non-standard candidate id, that is, an id lower than 50000. */\n $rs = $this->dbQuery(\"SELECT max(id)+1 AS id FROM student WHERE id<50000\");\n if (!empty($rs))\n {\n $this->id = $this->rs['id'] = $rs[0]['id'];\n }\n }\n $this->assign_rs();\n }", "public static function init() {\n\n\t\t\tif(self::$single) return self::$single;\n\t\t\telse return self::$single = new static;\n\n\t\t}", "public function & setInstance(& $instance) {\n\t\t# Add instance\n\t\treturn $this->setNamedInstance(get_class($instance), $instance);\n\t}", "static function single(){\n\t\tstatic $single = false;\n\t\tif( empty($single) ) $single = new SiteOrigin_Widget_Meta_Box_Manager();\n\n\t\treturn $single;\n\t}", "public function setAlreadySaved()\n\t\t{\n\t\t\t$this->_alreadySaved = true;\n\t\t}", "public function set_instance(stdClass $data) {\n $this->instance = $data;\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public function setInstance($value)\n {\n return $this->set('Instance', $value);\n }", "public static function resetInstance()\n {\n static::$_instance = null;\n }", "public static function get_instance() {\n // If the single instance hasn't been set, set it now.\n if ( null == self::$instance ) {\n self::$instance = new self;\n }\n return self::$instance;\n }", "public static function get_instance() {\n // If the single instance hasn't been set, set it now.\n if ( null == self::$instance ) {\n self::$instance = new self;\n }\n return self::$instance;\n }", "public function __construct() {\n //$this->instance = $instance;\n }", "public static function get_instance() {\n // If the single instance hasn't been set, set it now.\n if ( null == self::$instance ) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }", "public static function get_instance() {\r\n // # If the single instance hasn't been set, set it now.\r\n if ( null == self::$instance ) {\r\n self::$instance = new self;\r\n }\r\n\r\n return self::$instance;\r\n }", "public static function get_instance() {\r\n\t\tif ( null === self::$single_instance ) {\r\n\t\t\tself::$single_instance = new self();\r\n\t\t}\r\n\r\n\t\treturn self::$single_instance;\r\n\t}", "public static function get_instance() {\n // If the single instance hasn't been set, set it now.\n if (null == self::$instance) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }", "public static function get_instance() {\n\t\tif ( null === self::$single_instance ) {\n\t\t\tself::$single_instance = new self();\n\t\t}\n\n\t\treturn self::$single_instance;\n\t}", "public static function get_instance() {\n\t\tif ( null === self::$single_instance ) {\n\t\t\tself::$single_instance = new self();\n\t\t}\n\n\t\treturn self::$single_instance;\n\t}", "public function set_active_instance($uid) {\n\n\n }", "public function set($id, $instance);", "public function initialize() {\n\t\tself::$instance = $this;\n\t}", "public static function get_instance() {\n\t\t\t// If the single instance hasn't been set, set it now.\n\t\t\tif ( null == self::$instance ) {\n\t\t\t\tself::$instance = new self;\n\t\t\t}\n\t\t\t\n\t\t\treturn self::$instance;\n\t\t}", "public static function get_instance() {\n\t\t\t// If the single instance hasn't been set, set it now.\n\t\t\tif ( null == self::$instance ) {\n\t\t\t\tself::$instance = new self;\n\t\t\t}\n\t\t\t\n\t\t\treturn self::$instance;\n\t\t}", "public static function resetInstance() {\n \t// Reset the instance\n \tself::$oInsance = null;\n }", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t\t\n\t}", "protected function save_instance() {\n\t\twponion_callback( 'wponion_' . $this->module . '_registry', array( &$this ) );\n\t}", "public function set()\n {\n\t\tif ($this->model->state())\n $this->model->set();\n }", "public function beforeSet() {\r\n\t\t$this->oldDomain = $this->object->get('domain');\r\n\t\t$sitestart = $this->getProperty('sitestart');\r\n\t\t$this->setProperty('sitestart', (!empty($sitestart) ? $sitestart : null));\r\n\t\t\r\n\t\treturn parent::beforeSet();\r\n\t}", "public static function get_instance() {\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public function set_active_instance($uid,$user_id='') { \n\n\t\t// Not an admin? bubkiss!\n\t\tif (!$GLOBALS['user']->has_access('100')) { \n\t\t\t$user_id = $GLOBALS['user']->id; \n\t\t} \n\n\t\t$user_id = $user_id ? $user_id : $GLOBALS['user']->id; \n\n\t\tPreference::update('mpd_active',$user_id,intval($uid)); \n\t\tConfig::set('mpd_active',intval($uid),'1'); \n\n\t\treturn true; \n\n\t}", "public static function get_instance() {\n\t\t# If the single instance hasn't been set, set it now.\n\t\tif (null == self::$instance) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t\t// If the single instance hasn't been set, set it now.\n\t\t\tif ( null == self::$instance ) {\n\t\t\t\tself::$instance = new self;\n\t\t\t}\n\n\t\t\treturn self::$instance;\n\t\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public function forgetInstances()\n {\n $this->instances = [];\n }", "public static function get_instance()\n {\n // If the single instance hasn't been set, set it now.\n if(null == self::$instance) {\n self::$instance = new self;\n }\n return self::$instance;\n }", "public function grab(): void\n {\n if ($this->isPrepared() !== true) {\n throw new Exception('Instance is already taken');\n }\n\n // grab the instance in the database\n $this->instances->update($this->id, [\n 'created' => $this->created = time(),\n 'ipHash' => $this->ipHash = Instances::ipHash()\n ]);\n }", "public static function reset() {\n\t\t\tself::$instance = null;\n\t\t}", "public static function reset() {\n\t\t\tself::$instance = null;\n\t\t}", "public static function get_instance()\n {\n\n // If the single instance hasn't been set, set it now.\n if (null == self::$instance) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( self::$instance == null ) {\n\t\t\tself::$instance = new self;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function singleton(){\n\t\tif(isset(self::$instances[0])){ # return the current primary\n\t\t\treturn self::$instances[0];\n\t\t}\n\t\t# set primary if not set\n\t\t$args = array_merge([0], (array)func_get_args());\n\t\treturn call_user_func_array([__CLASS__,'named_singleton'], $args);\n\t}", "public function makePrimary()\n {\n $this->primary = 1;\n $this->save();\n self::where('church_id', $this->church_id)\n ->where('id', '!=', $this->id)\n ->update(['primary' => 0]);\n }", "public static function get_instance() {\n\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( null == self::$instance ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "function roshine_update_instance(stdClass $roshine, mod_roshine_mod_form $mform = null) {\n global $DB;\n $roshine->timemodified = time();\n //$old = $DB->get_record('roshine', array('id' => $roshine->instance));\n $roshine->id = $roshine->instance;\n return $DB->update_record('roshine', $roshine);\n}", "function standardslideshow_update_instance($slideshow) {\n global $DB;\n\n $slideshow->id = $slideshow->instance;\n\n return $DB->update_record(\"standardslideshow\", $slideshow);\n}", "public static function resetSharedInstance()\n {\n static::$sharedInstance = null;\n }", "public static function instance() {\n\t\t// If the single instance hasn't been set, set it now.\n\t\tif ( is_null( self::$instance ) ) {\n\t\t\tself::$instance = new self;\n\t\t\tself::$instance->do_hooks();\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "public function setValueDefault()\n {\n $this->isActive = true;\n $this->createdAt = new \\DateTime();\n }", "public function setLogInstance(): void\n {\n $this->log_instance = QueryLogger::initializeQueryChainLog($this);\n }", "public static function reinit() {\n\t\tself::$instance = NULL;\n\t\tself::init();\n\t}", "protected function removeOldInstanceIfExists() {}", "private function setPostId() {\n\t\tif (isset($_SESSION[\\posts\\model\\PostsModel::postId])) {\n\t\t\t$this->postId = $_SESSION[\\posts\\model\\PostsModel::postId];\n\t\t}\n\t}", "function updateObjectReference()\n\t{\n\t\tif (is_object($this->mob_node))\n\t\t{\n\t\t\t$this->mal_node =& $this->mob_node->first_child();\n\t\t\tif (is_object($this->mal_node) && $this->mal_node->node_name() == \"MediaAlias\")\n\t\t\t{\n\t\t\t\t$this->mal_node->set_attribute(\"OriginId\", \"il__mob_\".$this->getMediaObject()->getId());\n\t\t\t}\n\t\t}\n\t}", "public static function pruneInstance()\n {\n self::$instance = null;\n self::$refIdList = array();\n self::$refIdDefinitions = array();\n }", "public static function setInstance() {\n \n // Try to set an instance\n try {\n // Set instance to new self\n self::$oInstance = new self();\n // Catch any exceptions\n } catch (Exception $oException) {\n // Set error string\n die(\"Error: {$oException->getMessage()}\");\n }\n // Return instance of class\n return self::$oInstance;\n }", "public function ifOnlyMakePrimary()\n {\n if (self::where('church_id', $this->church_id)->count() === 1) {\n $this->primary = 1;\n $this->save();\n };\n }", "function set($setting, $value , $instance_id = null)\r\n\t{\r\n\t\treturn parent::set($setting, $value);\r\n\t}", "public function getTargetInstance() {\n\t\t$instance = $this->bean->fetchAs('instance')->target;\n\t\tif ($instance instanceof RedBean_OODBBean && ($instance->id !== 0 || $instance->getMeta('tainted') || !$instance->isEmpty())) {\n\t\t\treturn $instance->box();\n\t\t} elseif ($instance instanceof RedBean_SimpleModel && ($instance->unbox()->id !== 0 || $instance->unbox()->getMeta('tainted') || !$instance->unbox()->isEmpty())) {\n\t\t\treturn $instance;\n\t\t}\n\t\treturn null;\n\t}", "public static function instance()\n {\n\n // If the single instance hasn't been set, set it now.\n if (null == self::$instance) {\n self::$instance = new self;\n }\n\n return self::$instance;\n }", "public function isOne()\n {\n return $this->isOne;\n }", "public function should_return_the_same_instance_every_time() {\n\t\t$app = new _App();\n\n\t\t$app->objectOne = new ObjectOne();\n\n\t\t$this->assertSame( $app->objectOne, $app->objectOne );\n\t}", "public function single(){\n $this->debugBacktrace();\n $this->selectModifier = \"single\";\n return $this;\n }", "public static function getInstance() {\nstatic $instance;\n// Second call to this function will not get into the if-statement,\n// Because an instance of Singleton is now stored in the $instance\n// variable and is persisted through multiple calls\nif (!$instance) {\n// First call to this function will reach this line,\n// because the $instance has only been declared, not initialized\n$instance = new Singleton();\n} \nreturn $instance;\n}", "public static function first()\n\t{\n\t\treturn self::new_instance_records()->first();\n\t}", "public static function clearInstance(){\n self::$instance = null;\n }", "protected function setMemberDefaults(){\n parent::setMemberDefaults();\n if(!$this->id) $this->id = UniqId::get(\"faq-\");\n }", "function set_post_ID( $post_ID ){\n\t\t$this->post_ID = $post_ID;\n\t\t// load entry\n\t\tif( !empty($this->slug) ){\n\t\t\t$this->entry = get_post_meta($this->post_ID, $this->slug, true);\n\t\t}\n\t}", "public function set()\n\t{\n\t\t$this->created_at = date(TIMESTAMP_FORMAT);\n $user = new SessionUser();\n\t\t$this->created_by = $user->getID();\t\t\n\t}", "public function beforeSave() {\n $this->owner->{$this->column} = Yii::$app->db->createCommand(\"SELECT UUID()\")->queryScalar();\n }", "public function setAsGlobal()\n {\n self::$instance = $this;\n\n return $this;\n }", "public static function getInstance()\n {\n return self::$instance ?? self::getNewInstance();\n }", "protected function update_single_to_1_3_0() {\n\n\t\t$this->update_points_type_settings_to_1_3_0();\n\t}", "private function hasInstance()\n {\n return !self::$_instance ? false : true;\n }", "public function setIsSingleton($isSingleton) {\n $this->isSingleton = $isSingleton;\n }", "function set_screen()\n {\n $screen = get_current_screen();\n if ($screen) {\n $screen->ngg = TRUE;\n } else {\n if (is_null($screen)) {\n $screen = WP_Screen::get($this->object->name);\n $screen->ngg = TRUE;\n set_current_screen($this->object->name);\n }\n }\n }", "public function setPublished()\n\t{\n\t\t$this->published_at = $this->published_at ? $this->published_at : Carbon::now();\n\t\t$this->save();\n\t}" ]
[ "0.63290435", "0.5947728", "0.58871245", "0.58037376", "0.58016425", "0.57313347", "0.5700357", "0.5681057", "0.56400335", "0.5633168", "0.5616531", "0.56084424", "0.5577348", "0.55503684", "0.55503684", "0.55503684", "0.55503684", "0.55503684", "0.5550126", "0.5550126", "0.5550126", "0.5549967", "0.5513207", "0.54996514", "0.54996514", "0.5478599", "0.54415506", "0.54273546", "0.54247284", "0.5422406", "0.54087394", "0.54087394", "0.5407279", "0.5395634", "0.53906155", "0.53884524", "0.53884524", "0.5384383", "0.5380699", "0.5378856", "0.5373584", "0.5367162", "0.5326928", "0.5326928", "0.5326928", "0.53213906", "0.5320325", "0.5311442", "0.53004", "0.53004", "0.53004", "0.53004", "0.53004", "0.53004", "0.53004", "0.53004", "0.53004", "0.53004", "0.52973324", "0.52874887", "0.5287091", "0.5275243", "0.5275243", "0.52689624", "0.52536434", "0.5197963", "0.5180541", "0.5178464", "0.51740766", "0.51672184", "0.5161377", "0.515895", "0.51418835", "0.5139879", "0.5131311", "0.511449", "0.51111645", "0.51048625", "0.50944966", "0.50938326", "0.50771856", "0.50735784", "0.507307", "0.5071378", "0.50695777", "0.5066798", "0.5061444", "0.5048388", "0.50482917", "0.5038784", "0.50346714", "0.50315094", "0.5018933", "0.50011367", "0.49938247", "0.4989383", "0.49870887", "0.49861118", "0.49832672", "0.49817288", "0.4967703" ]
0.0
-1
Get redux custom css
public function customCSS() { if ( isset( $this->options['customCSS'] ) ){ $content = "<style type='text/css'>\n"; $content .= $this->options['customCSS']."\n"; $content .= "</style>"; echo $content; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_custom_css()\n {\n }", "public function getCss();", "public function getCss();", "static public function getCSS() {\n\t\treturn self::$css;\n\t}", "public function getCss()\n {\n return $this->data(self::CSS);\n }", "function article_css() {\n return Registry::prop('article', 'css');\n}", "public function getFrontendStyles() {\n }", "public function getFrontendStyles() {\n }", "public function getCss()\n {\n return self::$CSS . ' ' . self::$CSS_PREFIX . $this->type;\n }", "public function css()\n {\n return $this->css;\n }", "public static function getCss() {\n return self::get('_css', array());\n }", "function custom_css() {\n\t\t\t$mod = $this->get_cached_mod('customcss');\n\t\t\t$customcss = json_decode($mod, true);\n\t\t\treturn is_array($customcss) && isset($customcss['css']) && '' != $customcss['css'] ? str_replace(array('{', '}'), array(\"{\\n\\t\", \"\\n}\\n\"), trim($customcss['css'])) : $mod;\n\t\t}", "public static function getCSS()\n {\n $css =\n'<style>\n\tinput[type=\"radio\"], input[type=\"checkbox\"] {\n\t\twidth: auto;\n\t}\n\t/* Slide fieldsets*/\n\tdiv.panel-body legend {\n\t\tbackground: transparent url(\"' . rex_addon::get('d2u_helper')->getAssetsUrl('arrows.png') . '\") no-repeat 0px 7px;\n\t\tpadding-left: 19px;\n\t}\n\tdiv.panel-body legend.open {\n\t\tbackground-position: 0px -36px;\n\t}\n\t.panel-body-wrapper.slide {\n\t\tdisplay: none;\n\t}\n\tinput:invalid, select:invalid, textarea:invalid {\n\t\tbackground-color: pink;\n\t}\n</style>';\n return $css;\n }", "public function renderCSS()\n {\n }", "public static function css();", "public function getConcatenateCss() {}", "public function getCss(): string\n {\n return (string) $this->css;\n }", "public function css();", "public function getCSS()\n\t{\n\t\t$css = array();\n\t\treturn $css;\n\t}", "public function getStyle() {}", "protected function getCss () {\n if (!isset ($this->_css)) {\n $this->_css = array_merge (\n parent::getCss (),\n array (\n 'docViewerProfileWidgetCss' => \"\n #\".get_called_class().\"-widget-content-container {\n padding-bottom: 1px;\n }\n\n #select-a-document-dialog p {\n display: inline;\n margin-right: 5px;\n }\n\n .default-text-container {\n text-align: center;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .default-text-container a {\n height: 17%;\n text-decoration: none;\n font-size: 16px;\n margin: auto;\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n color: #222222 !important;\n }\n \"\n )\n );\n }\n return $this->_css;\n }", "function studeon_vc_get_css($css, $colors, $fonts, $scheme='') {\n\t\tif (isset($css['fonts']) && $fonts) {\n\t\t\t$css['fonts'] .= <<<CSS\n.vc_tta.vc_tta-accordion .vc_tta-panel-title .vc_tta-title-text {\n\t{$fonts['p_font-family']}\n}\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar .vc_label {\n\t{$fonts['h5_font-family']}\n}\n\nCSS;\n\t\t}\n\n\t\tif (isset($css['colors']) && $colors) {\n\t\t\t$css['colors'] .= <<<CSS\n\n/* Row and columns */\n.scheme_self.vc_section,\n.scheme_self.wpb_row,\n.scheme_self.wpb_column > .vc_column-inner > .wpb_wrapper,\n.scheme_self.wpb_text_column {\n\tcolor: {$colors['text']};\n}\n.scheme_self.vc_section[data-vc-full-width=\"true\"],\n.scheme_self.wpb_row[data-vc-full-width=\"true\"],\n.scheme_self.wpb_column > .vc_column-inner > .wpb_wrapper,\n.scheme_self.wpb_text_column {\n\tbackground-color: {$colors['bg_color']};\n}\n.scheme_self.vc_row.vc_parallax[class*=\"scheme_\"] .vc_parallax-inner:before {\n\tbackground-color: {$colors['bg_color_08']};\n}\n\n/* Accordion */\n.vc_tta.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon {\n\tcolor: {$colors['inverse_link']};\n\tbackground-color: {$colors['text_dark']};\n}\n.vc_tta.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:before,\n.vc_tta.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:after {\n\tborder-color: {$colors['inverse_link']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel .vc_tta-panel-title > a {\n\tcolor: {$colors['text_dark']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel .vc_tta-panel-title > a:hover {\n\tcolor: {$colors['text_link']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel .vc_tta-panel-title > a:hover .vc_tta-controls-icon {\n\tcolor: {$colors['inverse_link']};\n\tbackground-color: {$colors['text_link']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon:before,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-title > a .vc_tta-controls-icon:after {\n\tborder-color: {$colors['inverse_link']};\n}\n\n/* Tabs */\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tabs-list .vc_tta-tab > a {\n\tcolor: {$colors['inverse_link']};\n\tbackground-color: {$colors['text_dark']};\n}\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tabs-list .vc_tta-tab > a:hover,\n.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tabs-list .vc_tta-tab.vc_active > a {\n\tcolor: {$colors['inverse_hover']};\n\tbackground-color: {$colors['text_link']};\n}\n\n/* Separator */\n.vc_separator.vc_sep_color_grey .vc_sep_line {\n\tborder-color: {$colors['bd_color']};\n}\n\n/* Progress bar */\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar {\n\tbackground-color: rgba(0,0,0,0.1);\n}\n.vc_progress_bar.vc_progress-bar-color-bar_grey .vc_single_bar .vc_bar {\n\tbackground-color: {$colors['accent2']};\n}\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar .vc_label {\n\tcolor: {$colors['text_dark']};\n}\n.vc_progress_bar.vc_progress_bar_narrow .vc_single_bar .vc_label .vc_label_units {\n\tcolor: {$colors['text_light']};\n}\n\nCSS;\n\t\t}\n\t\t\n\t\treturn $css;\n\t}", "public function getStyle();", "protected function generateCSS() {}", "public function getCss()\n {\n $result = $this->_css;\n foreach ($this->_packages as $package) {\n $config = $this->getConfig($package);\n if (!empty($config['css'])) {\n foreach ($config['css'] as $item) {\n $result[] = $item;\n }\n }\n }\n return $result;\n }", "public function get_cssAdmin(){\n \n return BASE_URL.\"wear/\".$this->back.\"/\".\"css/\";\n \n }", "public function getAllCSS()\n {\n return $this->css;\n }", "function returnCustomCSS(){\n // vars\n $output = '';\n // build styling\n if(!empty(SELF::$WPgutenberg_ColorPalette) || !empty(SELF::$WPgutenberg_FontSizes)):\n // coloring\n if(!empty(SELF::$WPgutenberg_ColorPalette)):\n foreach (SELF::$WPgutenberg_ColorPalette as $colorkey => $color) {\n $output .= ' .has-' . prefix_core_BaseFunctions::Slugify($color[\"key\"]) . '-color {color: ' . $color[\"value\"] . ';}';\n $output .= ' .has-' . prefix_core_BaseFunctions::Slugify($color[\"key\"]) . '-background-color {background-color: ' . $color[\"value\"] . ';}';\n };\n endif;\n // font sizes\n if(!empty(SELF::$WPgutenberg_FontSizes)):\n foreach (SELF::$WPgutenberg_FontSizes as $sizekey => $size) {\n $output .= ' .has-' . prefix_core_BaseFunctions::Slugify($size[\"key\"]) . '-font-size {font-size: ' . $size[\"value\"] . 'px;}';\n };\n endif;\n endif;\n // return\n return $output;\n }", "public function getCssStyle(): ?string;", "function zilla_custom_css($content) {\n\t\t$zilla_values = get_option( 'zilla_framework_values' );\n\t\tif( array_key_exists( 'style_custom_css', $zilla_values ) && $zilla_values['style_custom_css'] != '' ){\n\t\t\t$content .= '/* Custom CSS */' . \"\\n\";\n\t\t\t\t$content .= stripslashes($zilla_values['style_custom_css']);\n\t\t\t\t$content .= \"\\n\\n\";\n\t\t}\n\t\treturn $content;\n\t\t\n}", "protected function loadCss() {}", "public function getAdminCss()\n {\n //admin.css of the App is expected in the MyAdmin resources anyway, so no reason to duplicate it here\n //return parent::getAdminCss() . PHP_EOL . file_get_contents(__DIR__ . '/../styles/admin.css') . PHP_EOL;\n return parent::getAdminCss() . PHP_EOL;\n }", "function wp_get_global_styles_custom_css()\n {\n }", "public function getCssPath();", "function getStyleSheet() {\n\t\treturn $this->getPluginPath() . '/styles/objectsForReview.css';\n\t}", "public function get_app_stylesheet()\n {\n }", "public function get_stylesheet_css()\n {\n }", "function head_css()\n{\n return get_view()->headLink() . get_view()->headStyle();\n}", "function webbusiness_load_custom_css() {\n\t$css_file = file_get_contents(get_template_directory() . '/css/webbusiness-color.css');\n\n\t$css_result = \"\";\n\t$custom_css = webbusiness_get_colors();\n\t$css_file_filtered = $css_file;\n\tforeach ($custom_css as $key) {\n\t\t$value = get_theme_mod($key);\n\t\tif ($value) {\n\t\t\t$pattern = \"/(\\/\\*@)\" . $key . \"(\\*\\/)(.*);/\";\n\t\t\t$replacement = $value . \";\";\n\t\t\t$css_file_filtered = preg_replace($pattern, $replacement, $css_file_filtered);\n\t\t}\n\t}\n\n\t$css_file_filtered .= \"/*\";\n\tforeach ($custom_css as $key) {\n\t\t$css_file_filtered .= \"\\n\\\"\" . $key . \"\\\" => \\\"\" . get_theme_mod($key) . \"\\\",\";\n\t}\n\t$css_file_filtered .= \"*/\";\n\t$css_result .= $css_file_filtered;\n\treturn $css_result;\n}", "function getStyles () {\n return array(\"template.css\");\n }", "function ft_hook_add_css() {}", "private function addCSS()\n {\n Filters::add('head', array($this, 'renderRevisionsCSS'));\n }", "public function getMainStylesheet(){\n\n /* \n We have to seriously hack things up here. \n First, we'll load the production stylesheet.\n We'll then search and replace the 5 reserved application colors with the ones we received from the api.\n When cache all that and return it to the browser, as if it was loading a static stylesheet.\n You have a better idea? Feel free to improve this code :)\n */\n \n $style = \\Cache::remember(\\KemAPI::getUser() . 'app_http_controllers_staticcontroller_stylesheet', 0, function() {\n \n $sheetPath = public_path() . '/css/prod/duka.css';\n $sheet = file_get_contents($sheetPath,\"r\");\n\n $color_one = \\Store::info()->colors->color_one;\n $color_two = \\Store::info()->colors->color_two;\n $color_three = \\Store::info()->colors->color_three;\n $color_four = \\Store::info()->colors->color_four;\n $color_five = \\Store::info()->colors->color_five;\n\n $color_one_dark = \\Utilities::adjustBrightness($color_one, -50);\n $color_two_dark = \\Utilities::adjustBrightness($color_two, -50);\n $color_three_dark = \\Utilities::adjustBrightness($color_three, -50);\n $color_four_dark = \\Utilities::adjustBrightness($color_four, -50);\n $color_five_dark = \\Utilities::adjustBrightness($color_five, -50);\n\n $color_one_light = \\Utilities::adjustBrightness($color_one, +50);\n $color_two_light = \\Utilities::adjustBrightness($color_two, +50);\n $color_three_light = \\Utilities::adjustBrightness($color_three, +50);\n $color_four_light = \\Utilities::adjustBrightness($color_four, +50);\n $color_five_light = \\Utilities::adjustBrightness($color_five, +50);\n\n// Replace the placeholder colors with the actual ones from the API\n $sheet = str_replace('#00F0F0', '#' . $color_one, $sheet);\n $sheet = str_replace('#00E0E0', '#' . $color_one_light, $sheet);\n $sheet = str_replace('#11F1F1', '#' . $color_one_dark, $sheet);\n\n $sheet = str_replace('#0FFF00', '#' . $color_two, $sheet);\n $sheet = str_replace('#0EEE00', '#' . $color_two_light, $sheet);\n $sheet = str_replace('#1FFF11', '#' . $color_two_dark, $sheet);\n\n $sheet = str_replace('#F000FF', '#' . $color_three, $sheet);\n $sheet = str_replace('#E000EE', '#' . $color_three_light, $sheet);\n $sheet = str_replace('#F111FF', '#' . $color_three_dark, $sheet);\n\n $sheet = str_replace('#000FFF', '#' . $color_four, $sheet);\n $sheet = str_replace('#000EEE', '#' . $color_four_light, $sheet);\n $sheet = str_replace('#111FFF', '#' . $color_four_dark, $sheet);\n\n $sheet = str_replace('#F0FFF0', '#' . $color_five, $sheet);\n $sheet = str_replace('#E0EEE0', '#' . $color_five_light, $sheet);\n $sheet = str_replace('#F1FFF1', '#' . $color_five_dark, $sheet);\n\n return $sheet;\n });\n\n return response($style)->header('Content-Type', \"text/css\");\n\n }", "public function getCssCustomCatalog()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/css_catalog', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function get_css_common()\n {\n return array\n (\n \"lgwebapp.css\"\n );\n }", "public function extractCss()\n {\n $tmp = $this->css;\n $this->css = '';\n return $tmp;\n }", "function get_css_header();", "public function getCompressCss() {}", "public function getResponsiveCss(): string;", "public function read_css() {\r\n\t\t// 1. wir müssen wissen, welche Thema zZ. aktiv ist.\r\n\t\t$cssfile = $this->get_cssfile_name();\r\n\t\t// 2. den Inhalt der CSS-Datei auslesen\r\n\t\t$csscont = $this->read_cssfile($cssfile);\r\n\t\treturn $csscont;\r\n\t}", "function theme_colors_css() {\n if (is_customize_preview()) {\n $colors_css = get_theme_mod('colors_css');\n if ($colors_css) {\n echo \"$colors_css\\n\";\n }\n }\n}", "public function getStyleLoader();", "public function build_css() {\n\t\t\t\n\t\t}", "function wp_get_custom_css_post($stylesheet = '')\n {\n }", "function getStyle() {return $this->readstyle();}", "function getCssUrl() {\r\n\t\treturn parent::getPluginPath() . '/css/';\r\n\t}", "function get_css() {\n\t\t\t$output = '';\n\t\t\t$this->build_settings_and_styles();\n\n\t\t\t$css = $this->generate_css();\n\t\t\t$css .= $this->generate_responsive_css();\n\t\t\t$css .= $this->global_css;\n\t\t\t$css = apply_filters( 'themify_customizer_css_output', $css, $this );\n\n\t\t\t$custom_css = $this->custom_css();\n\t\t\tif (!empty($css)) {\n\t\t\t\t$output= \"<!--Themify Customize Styling-->\\n<style id=\\\"themify-customize\\\" type=\\\"text/css\\\">\\n$css\\n</style>\\n<!--/Themify Customize Styling-->\";\n\t\t\t}\n\t\t\tif (!empty($custom_css)) {\n\t\t\t\t$output .= \"<!--Themify Custom CSS-->\\n<style id=\\\"themify-customize-customcss\\\" type=\\\"text/css\\\">\\n$custom_css\\n</style>\\n<!--/Themify Custom CSS-->\";\n\t\t\t}\n\n\t\t\treturn $output;\n\t\t}", "public function css_path(){\n return $this->css_path;\n }", "function wp_get_custom_css($stylesheet = '')\n {\n }", "function siteorigin_panels_css() {\n\tif(!isset($_GET['post']) || !isset($_GET['ver'])) return;\n\n\telse $panels_data = get_post_meta( $_GET['post'], 'panels_data', true );\n\t$post_id = $_GET['post'];\n\n\theader(\"Content-type: text/css\");\n\techo siteorigin_panels_generate_css($_GET['post'], $panels_data);\n\texit();\n}", "private function css($content)\n\t{\n\t\trequire_once __DIR__ . '/thirdparty/cssmin.php';\n\t\treturn \\CssMin::minify($content);\n\t}", "public function getDynamicCss(){\r\n\t\t$db = new RevSliderDB();\r\n\r\n\t\t$styles = $db->fetch(RevSliderGlobals::$table_css);\r\n\t\t$styles = RevSliderCssParser::parseDbArrayToCss($styles, \"\\n\");\r\n\r\n\t\treturn $styles;\r\n\t}", "private function otherCss() {\n $otherCss = '';\n $otherCss .= '\n <link rel=\"stylesheet\" href=\"' . $this->baseUrl(\"assets/css/demo.css\") . '\">\n <link rel=\"stylesheet\" href=\"' . $this->baseUrl(\"assets/css/fontello-codes.css\") . '\">\n <link rel=\"stylesheet\" href=\"' . $this->baseUrl(\"assets/css/fontello-embedded.css\") . '\">\n <link rel=\"stylesheet\" href=\"' . $this->baseUrl(\"assets/css/fontello-ie7-codes.css\") . '\"> \n <link rel=\"stylesheet\" href=\"' . $this->baseUrl(\"assets/css/fontello-ie7.css\") . '\"> \n <link rel=\"stylesheet\" href=\"' . $this->baseUrl(\"assets/css/fontello.css\") . '\">';\n return $otherCss;\n }", "public function getStatusCssString()\n {\n return $this->statusesCss[$this->statusId];\n }", "protected function _css()\n\t{\n\t\tif ( !self::$_firstRun ) return '';\n\t\tself::$_firstRun = FALSE;\n\n\t\t$dir = KINT_DIR . 'view/' . ( self::$devel ? 'src/' : '' ); // load uncompressed sources if in devel mode\n\n\t\treturn '<script>' . file_get_contents( $dir . 'kint.js' ) . '</script>'\n\t\t\t. '<style>' . file_get_contents( $dir . 'kint.css' ) . '</style>';\n\t}", "function register_custom_css( $fields ){\r\n\r\n return $fields;\r\n\r\n }", "private function getStyles() {\n $file = drupal_get_path('module', 'site_audit') . '/css/bootstrap-overrides.css';\n $styles = \"/* $file */\\n\" . file_get_contents($file);\n return $styles;\n }", "public function getSiteCss()\n {\n return $this->siteCss;\n }", "private function set_css() {\n\n if ( empty( $this->color ) ) {\n return '';\n }\n\n return '.pbtheme_top .pbtheme_top_right > .a-inherit:not(.element-woo-cart) > a,'\n . '.pbtheme_top .pbtheme_top_left > .a-inherit:not(.element-woo-cart) > a,'\n . '.pbtheme_top .element-menu ul li a'\n . '{color:' . esc_attr( $this->color ) . ';}';\n\n }", "public function getStyle(string $name);", "function child_generate_get_dynamic_css() {\n\t$css = generate_base_css() . generate_font_css() . generate_advanced_css() . generate_spacing_css();\n\n\treturn apply_filters( 'generate_dynamic_css', $css );\n}", "private function _getResourceCss()\n {\n return array(\n '../libs/css/plugins/validationEngine.jquery.css'\n );\n }", "private function SiteBasicCss() {\n $basiccss = '';\n $basiccss .=$this->coreCss();\n $basiccss .=$this->siteFonts();\n //$basiccss .=$this->otherCss();\n return $basiccss;\n }", "function register_custom_css( $fields ) {\n\n\t\treturn $fields;\n\t}", "function register_custom_css( $fields ) {\n\n\t\treturn $fields;\n\t}", "function register_custom_css( $fields ) {\n\n\t\treturn $fields;\n\t}", "function webbusiness_cache_custom_css_preview() {\n\t$data = get_transient(\"webbusiness_custom_css_preview\");\n\tif ($data === false) {\n\t\t$data = webbusiness_load_custom_css();\n\t\tset_transient('webbusiness_custom_css_preview', $data, 3600 * 24);\n\t}\n\treturn $data;\n}", "public function getCssCustomCatalog()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/css_catalog');\n }", "function anva_custom_css() {\n\t$styles = '';\n\t$custom_css = anva_get_option( 'custom_css' );\n\t$custom_css = anva_compress( $custom_css );\n\tif ( ! empty( $custom_css ) ) {\n\t\t$styles = '<style type=\"text/css\">' . $custom_css . '</style>';\n\t}\n\techo $styles; \n}", "private static function _getPageCSSPath()\n {\n Channels::includeSystem('GUI');\n $cssPath = '/__web/'.GUI::getSystemWebPath('Help').'/Templates/Help/Help.css';\n return $cssPath;\n\n }", "function theme_css($uri, $tag=true)\n{\n\t$path_css = theme_url(assets_dir('css').'/'.$uri);\n\treturn _css($path_css,$tag);\n}", "public function getCSS($id)\n {\n return isset($this->css[$id]) ? $this->css[$id] : false;\n }", "function wp_custom_css_cb()\n {\n }", "function css()\n {\n # determine the media\n global $TMPL;\n $media = ( $temp = $TMPL->fetch_param('media') ) ? 'media=\"' . $temp . '\"' : '';\n \n return ( '<link rel=\"stylesheet\" type=\"text/css\" ' . $media .\n ' href=\"http://gist.github.com/stylesheets/gist/embed.css\" />' );\n }", "function get_editor_stylesheets()\n {\n }", "public function get_css_class() {\n\t\treturn $this->css_class;\n\t}", "public function configAction()\n {\n $styles = array_map(function ($fn) {\n return basename($fn, '.css');\n }, glob(App::locator()->get('highlight:assets/styles').'/*.css'));\n\n return compact('styles');\n }", "public function getStylesheets()\n {\n return array('/cpCmsPlugin/css/widget.css' => 'all');\n }", "public function automaticCss()\n \t{\n \t\t$css = array();\n \t\tif (isset($this->pluginPath)) {\n\t \t\t\n\t \t\t# CSS Plugin Path\n\t\t\t$css_path_plugin = $this->pluginPath . $this->constant['webroot'] . DS . $this->constant['cssBaseUrl'];\n\t\t\tif (is_file($css_path_plugin . $this->controller . '.css')) {\n\t\t \t$css[] = $this->plugin.'.'.$this->controller;\n\t\t \t}\n\n\t\t \tif (is_file($css_path_plugin . $this->controller . DS . $this->action . '.css')) {\n\t\t \t$css[] = $this->plugin.'.'.$this->controller . '/' . $this->action;\n\t\t \t}\n \t\t}\n \t\t\n \t\t$css_path = $this->constant['www_root'] . $this->constant['cssBaseUrl'];\n \t\tif (is_file($css_path . $this->controller . '.css')) {\n\t \t$css[] = $this->controller;\n\t\t}\n\n\t \tif (is_file($css_path . $this->controller . DS . $this->action . '.css')) {\n\t \t$css[] = $this->controller . DS . $this->action;\n\t\t}\n\t\treturn $this->css($css);\n \t}", "function theme_sleat_get_main_scss_content($theme) {\n global $CFG;\n $scss = '';\n return $scss;\n}", "function bureau_theme_custom_css() {\n $css = get_option('customcss');\n $css = (empty($css) ? '/* Speaker Bureau Theme Custom CSS */' : $css);\n echo '<div id=\"customCss\" >'.$css.'</div>';\n}", "public function css() {\n\t\theader(\"Content-Type: text/css\");\n\t\techo file_get_contents(APPPATH.'third_party/blog/css/mojoblog.css');\n\t}", "private function getCSS()\n\t{\n\t\t$prefix = $this->getPrefix();\n\t\tlist($firstElement, $lastElement) = $this->getBounds();\n\t\t$isFirst = ($firstElement == $this->element);\n\t\t$isLast = ($lastElement == $this->element);\n\t\t$hasChildren = ($this->element->ContainerElement->Children->Count() > 0);\n\t\t$CSSClasses = [];\n\t\t\n\t\tif ($isFirst && $isLast) {\n\t\t\t$CSSClasses[] = \"$prefix-last\";\n\t\t} else if ($isFirst) {\n\t\t\t$CSSClasses[] = \"$prefix-first\";\n\t\t} else if ($isLast) {\n\t\t\t$CSSClasses[] = \"$prefix-last\";\n\t\t}\n\t\tif ($hasChildren) {\n\t\t\t$CSSClasses[] = \"$prefix-parent\";\n\t\t}\n\t\tif ($this->element->GetCollapsed()) {\n\t\t\t$CSSClasses[] = \"$prefix-collapsed\";\n\t\t}\n\t\tif ($this->element->GetDisabled()) {\n\t\t\t$CSSClasses[] = \"$prefix-item-disabled\";\n\t\t}\n\t\treturn array_merge($this->element->CSSClass, $CSSClasses);\n\t}", "function loadCSS() {\n\t\t$first = true;\n\t\t$cssPart = '';\n\t\tforeach( $this->conf->css->file as $file ) {\n\t\t\tif( ! $first ) {\n\t\t\t\t$cssPart .= chr( 9 );\n\t\t\t}\n\t\t\t$cssPart .= '<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"';\n\t\t\t$cssPart .= $this->conf->path->baseUrl . $this->conf->path->css . $file;\n\t\t\t$cssPart .= '\" />' . chr( 10 );\n\t\t\t$first = false;\n\t\t}\n\t\t\n\t\tif( count( $this->additionalCSS ) >= 1 ) {\n\t\t\tforeach( $this->additionalCSS as $key => $value ) {\n\t\t\t\t$cssPart .= '<style type=\"text/css\">' . chr( 10 );\n\t\t\t\t$cssPart .= $value . chr( 10 );\n\t\t\t\t$cssPart .= '</style>' . chr( 10 );\n\t\t\t}\n\t\t\n\t\t}\n\t\treturn $cssPart;\n\t}", "function _asset_css_all(string $pack = '') {\n\t\treturn Asset::setThemePack($pack)->getCssAll();\n\t}", "public function css() {\r\n\t\tif ($this->cssLink != false) {\r\n\t\t\tif($this->scriptTo) {\r\n\t\t\t\t$elem = pzk_element($this->scriptTo);\r\n\t\t\t\t$elem->append(pzk_parse('<html.css src=\"'.BASE_REQUEST.'/default/skin/'.pzk_app()->name.'/css/'.$this->cssLink.'.css\" />'));\r\n\t\t\t} else {\r\n\t\t\t\tif($page = pzk_page())\r\n\t\t\t\t\t$page->addObjCss($this->cssLink);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif ($this->cssExternalLink != false) {\r\n\t\t\tif($this->scriptTo) {\r\n\t\t\t\t$elem = pzk_element($this->scriptTo);\r\n\t\t\t\t$elem->append(pzk_parse('<html.css src=\"'.$this->cssExternalLink.'\" />'));\r\n\t\t\t} else {\r\n\t\t\t\tif($page = pzk_page()) {\r\n\t\t\t\t\t$page->addExternalCss($this->cssExternalLink);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public function admin_css() {\n\t\t\treturn '';\n\t\t}", "function TS_VCSC_DisplayCustomCSS() {\r\n\t\t\tif (($this->TS_VCSC_PluginExtended == \"false\") || (($this->TS_VCSC_PluginExtended == \"true\") && ($this->TS_VCSC_UseCodeEditors == \"true\"))) {\r\n\t\t\t\t$ts_vcsc_extend_custom_css = \t\t\t\tget_option('ts_vcsc_extend_custom_css');\r\n\t\t\t\t$ts_vcsc_extend_custom_css_default =\t\tget_option('ts_vcsc_extend_settings_customCSS');\r\n\t\t\t\tif ((!empty($ts_vcsc_extend_custom_css)) && ($ts_vcsc_extend_custom_css != $ts_vcsc_extend_custom_css_default)) {\r\n\t\t\t\t\techo '<style type=\"text/css\" media=\"all\">' . \"\\n\";\r\n\t\t\t\t\t\techo '/* Custom CSS for Composium - WP Bakery Page Builder Extensions Addon */' . \"\\n\";\r\n\t\t\t\t\t\techo TS_VCSC_MinifyCSS($ts_vcsc_extend_custom_css) . \"\\n\";\r\n\t\t\t\t\techo '</style>' . \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public static function getCSS($url) {\n return str_replace(\"{}\", $url, self::$CSS);\n }", "function output_css() {\n\t\t\techo $this->get_css();\n\t\t}" ]
[ "0.72934437", "0.7171532", "0.7171532", "0.69575346", "0.69155115", "0.6874479", "0.6822062", "0.6822062", "0.66992605", "0.6685803", "0.667509", "0.66742647", "0.65998393", "0.6577274", "0.6493473", "0.6491704", "0.64332587", "0.641479", "0.6393403", "0.6363944", "0.6358944", "0.63440025", "0.6322178", "0.6307507", "0.6275832", "0.6266369", "0.62369305", "0.61886036", "0.61868805", "0.615387", "0.61399156", "0.6139662", "0.61381143", "0.61097074", "0.6102045", "0.6085919", "0.60662293", "0.60609055", "0.6056712", "0.6050875", "0.60351837", "0.60231584", "0.602095", "0.6020305", "0.6015712", "0.5995688", "0.5973964", "0.5957578", "0.5956224", "0.5951847", "0.59436315", "0.594355", "0.5940337", "0.59347874", "0.5933782", "0.5933099", "0.5924642", "0.5918613", "0.5912711", "0.5910993", "0.5889014", "0.58871335", "0.5884933", "0.5884161", "0.58781236", "0.58431774", "0.58374816", "0.58360726", "0.582896", "0.582606", "0.5818283", "0.5808492", "0.5802796", "0.5767701", "0.5767701", "0.5767701", "0.57660943", "0.576482", "0.57615703", "0.57604223", "0.5748849", "0.5746793", "0.5738352", "0.57353437", "0.57236594", "0.572286", "0.5722627", "0.5718393", "0.57164323", "0.57025987", "0.5701965", "0.56961167", "0.569597", "0.5695235", "0.5689357", "0.56804484", "0.56739074", "0.5669608", "0.566773", "0.566674" ]
0.5770685
73
Get redux custom js
public function customJS() { if ( isset( $this->options['customJS'] ) ){ $content = "<script type='text/javascript'>\n"; $content .= $this->options['customJS']."\n"; $content .= "</script>"; echo $content; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJs();", "function article_js() {\n return Registry::prop('article', 'js');\n}", "public function getJavaScript() {}", "public function getCustomJsContent()\n {\n return $this->getGravityHelper()->getCustomJs();\n }", "public function js();", "public function getJavascriptCode() {}", "public function __get_js() { return $this->_js; }", "public static function js();", "public function getJs()\n {\n return $this->data(self::JS);\n }", "static public function getJavaScript() {\n\t\treturn self::$js;\n\t}", "function getModule_js() {\n return base_url('module_assets/' . $this->moduleName . '/adviser-module.js');\n }", "public function getFrontendScripts() {\n }", "public function getFrontendScripts() {\n }", "function rescueme_js($content, $type) {\n\n // Is content type JS?\n if ($type === Minify::TYPE_JS) {\n\n // Load RescueMe configuration\n require '../config.php';\n\n // Get concatenated js\n $content = get_rescueme_js($content);\n\n }\n return $content;\n }", "function export_add_js()\n {\n }", "function stage_build_js_object()\n{\n return array_merge(\n apply_filters('stage_localize_script', array()),\n array(\n 'ajax' => array(\n 'url' => admin_url('admin-ajax.php'),\n ),\n 'screens' => stage_get_default('global.screens'),\n 'user' => array(\n 'is_admin' => is_user_admin(),\n 'is_logged_in' => is_user_logged_in(),\n ),\n 'wp' => array(\n 'adminbar' => array(\n 'visible' => is_admin_bar_showing()\n ),\n ),\n )\n );\n}", "public static function getJs() {\n return self::get('_js', array());\n }", "public function renderJSConfig() {\n\t\n\t\t$config = $this->wire('config'); \n\t\n\t\t$jsConfig = $config->js();\n\t\t$jsConfig['debug'] = $config->debug;\n\t\n\t\t$jsConfig['urls'] = array(\n\t\t\t'root' => $config->urls->root, \n\t\t\t'admin' => $config->urls->admin, \n\t\t\t'modules' => $config->urls->modules, \n\t\t\t'core' => $config->urls->core, \n\t\t\t'files' => $config->urls->files, \n\t\t\t'templates' => $config->urls->templates,\n\t\t\t'adminTemplates' => $config->urls->adminTemplates,\n\t\t\t); \n\t\n\t\treturn \"var config = \" . json_encode($jsConfig);\n\t}", "public function getJavascripts()\n {\n return array('/sfAssetsLibraryPlugin/js/main');\n }", "public static function getJS()\n {\n $js =\n\"<script>\n\t// Hide or show detail fields of languages\n\tfunction toggleClangDetailsView(clang_id) {\n\t\tif ($(\\\"select[name='form[lang][\\\" + clang_id + \\\"][translation_needs_update]']\\\").val() === 'delete') {\n\t\t\t$('#details_clang_' + clang_id).slideUp();\n\t\t}\n\t\telse {\n\t\t\t$('#details_clang_' + clang_id).slideDown();\n\t\t};\n\t}\n\n\t// slide fieldsets\n\tjQuery(document).ready(function($) {\n\t\t$('legend').click(function(e) {\n\t\t\t$(this).toggleClass('open');\n\t\t\t$(this).next('.panel-body-wrapper.slide').slideToggle();\n\t\t});\n\t});\n\t// Open all fieldsets when save was clicked for being able to focus required fields\n\t$('button[type=submit]').click(function() {\n\t\t$('legend').each(function() {\n\t\t\tif(!$(this).hasClass('open')) {\n\t\t\t\t$(this).addClass('open');\n\t\t\t\t$(this).next('.panel-body-wrapper.slide').slideToggle();\n\t\t\t}\n\t\t});\n\t\treturn true;\n\t});\n</script>\";\n return $js;\n }", "public function getJavaScripts();", "public function get_js($path='')\n\t{\n if ( $r = $this->get_view($path, 'js') ){\n return '\n<script>\n(function($){\n'.$r.'\n})(jQuery);\n</script>';\n }\n\t\treturn false;\n }", "public function getJs()\n\t{\n $ret = '<script>\n (function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \"//connect.facebook.net/'.$this->lang.'/all.js#xfbml=1\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document, \"script\", \"facebook-jssdk\"));\n </script>';\n \n return $ret;\n\t}", "public function JS($file,$hook=''){\n \n $file=$this->getFileName($file);\n \n $incl=pinJavaScriptLinkInclusion::make($file,$hook)->file($file);\n pinIncluder::i()->add($incl);\n return $incl; \n }", "public function js()\n {\n }", "private function js($content)\n\t{\n\t\trequire_once __DIR__ . '/thirdparty/jshrink.php';\n\t\treturn \\JShrink\\Minifier::minify($content);\n\t}", "function displayYourself(){\n\t // collect relevant file-contents of this component\n $php = file_get_contents(__FILE__);\n $js = file_get_contents(path . '/src/neoan/neoan.ctrl.js');\n $html = file_get_contents(path . '/src/neoan/neoan.view.html');\n // return array (api-calls are always converted to json)\n return ['php'=>$php,'js'=>$js,'html'=>$html];\n }", "abstract public function getJsFilePath();", "public function elementor_js() {\n }", "public function getCompressJavascript() {}", "function idaho_webmaster_panels_js_templates() {\n\tinclude get_template_directory().'/inc/tpl/js-templates.php';\n}", "function javascripts() {\n return $this->context->javascript_tags(func_get_args(), $this->base_url().\"/javascripts\");\n }", "public function getMainJs()\n {\n $this->data = \"/* --- Retargeting Tracker Functions --- */\\n\\n\";\n\n $this->data .= $this->setEmail();\n\n $this->data .= $this->getPageJS($this->currentPage, $this->currentCategory, $this->manufacturerId, $this->productId);\n\n return $this->data;\n }", "protected function addCustomJS()\n\t{\n\t\t\n\t}", "public function get_js_module() {\n return array(\n 'name' => 'format_flexpage',\n 'fullpath' => '/course/format/flexpage/javascript.js',\n 'requires' => array(\n 'base',\n 'node',\n 'event-custom',\n 'json-parse',\n 'querystring',\n 'yui2-yahoo',\n 'yui2-dom',\n 'yui2-connection',\n 'yui2-dragdrop',\n 'yui2-event',\n 'yui2-element',\n 'yui2-button',\n 'yui2-container',\n 'yui2-menu',\n 'yui2-calendar',\n 'moodle-core-popuphelp'\n ),\n 'strings' => array(\n array('savechanges'),\n array('cancel'),\n array('choosedots'),\n array('close', 'form'),\n array('close', 'format_flexpage'),\n array('addpages', 'format_flexpage'),\n array('genericasyncfail', 'format_flexpage'),\n array('error', 'format_flexpage'),\n array('movepage', 'format_flexpage'),\n array('addactivities', 'format_flexpage'),\n array('formnamerequired', 'format_flexpage'),\n array('deletepage', 'format_flexpage'),\n array('deletemodwarn', 'format_flexpage'),\n array('continuedotdotdot', 'format_flexpage'),\n array('warning', 'format_flexpage'),\n array('actionbar', 'format_flexpage'),\n array('actionbar_help', 'format_flexpage'),\n )\n );\n }", "public function include_redux_core(){\n\n if (!class_exists('ReduxFramework') && file_exists(plugin_dir_path(__FILE__) . '/optionpanel/framework.php'))\n {\n require_once ('optionpanel/framework.php');\n }\n\n }", "function wpcr_add_base_js() {\n\t$options = get_option('wpcr_options');\n\t//wpcr_load_api($options['facebook_apikey']);\n}", "public function render()\n {\n\n $result = '';\n if ($this->getModuleLoader()->hasPlugin('filePicker')) {\n\n $result = sprintf('<script type=\"text/javascript\" src=\"%s\"></script>',\n Path::getRelativePath('JavaScript/Media.Plugin.FilePicker.js')\n );\n };\n return $result;\n }", "protected function loadJavascript() {}", "public static function editor_js()\n {\n }", "function customised() {\n if($itm = Registry::get('article')) {\n\n return $itm->js or $itm->css;\n }\n\n return false;\n}", "public function getUsableExtension()\n {\n return $this->isJavascript() ? 'js' : 'css';\n }", "public function getJavascriptImportTemplate()\n {\n return 'CogimixJamendoBundle::js.html.twig';\n }", "public function getFile() {\n return drupal_get_path('module', 'ckeditor_stylesheetparser') . '/js/plugins/stylesheetparser/plugin.js';\n }", "public function getJavascriptIncludes() {}", "public function getJavascripts()\n {\n return array('/cpCmsPlugin/js/widget.js');\n }", "function fiorello_mikado_print_custom_js() {\n\t\t$custom_js = fiorello_mikado_options()->getOptionValue( 'custom_js' );\n\n\t\tif ( ! empty( $custom_js ) ) {\n\t\t\twp_add_inline_script( 'fiorello-mikado-modules', $custom_js );\n\t\t}\n\t}", "private function renderJs(): string {\n\t\t$result = '';\n\t\tif (!empty($this->_configBundles)) {\n\t\t\t$result .= $this->getView()->element('DataTables.script', ['configBundles' => $this->_configBundles]);\n\t\t}\n\n\t\treturn $result;\n\t}", "public function loadJavascriptClass_result()\n\t{\n\t\t$this->onGetFilterKey();\n\t\t$p = $this->onGetFilterKey_result();\n\t\treturn 'plugins/fabrik_list/' . $p . '/' . $p . '.js';\n\t}", "public function generateI18nJsContent() {\n $data = array();\n\n foreach ($this->_i18n as $k => $v)\n $data[] = strtolower($k) .':\\''. str_replace('\\'', '\\\\\\'', $v) .'\\'';\n\n return 'var language = \\''. $this->_language .'\\', i18n = {'. implode(', ', $data) .'};';\n }", "function wpgrade_load_custom_js(){\r\n global $wpGrade_Options;\r\n\r\n $custom_js = $wpGrade_Options->get('custom_js');\r\n if ( !empty( $custom_js ) ) { ?>\r\n <script type=\"text/javascript\">\r\n <?php echo $custom_js; ?>\r\n </script>\r\n <?php\r\n }\r\n}", "public function js_path(){\n return $this->js_path;\n }", "public function printNeededJSFunctions() {}", "public function getJs()\n {\n $result = array();\n foreach ($this->_packages as $package) {\n $config = $this->getConfig($package);\n if (!empty($config['js'])) {\n $result = array_merge($result, array_values($config['js']));\n }\n }\n return array_merge($result, $this->_js);\n }", "public function getAllJS()\n {\n return $this->js;\n }", "protected function getRteInitJsCode() {}", "protected function getJavaScriptConfiguration() {}", "public function getJavascripts()\n {\n return array('/js/core/editarea/edit_area_compressor.php', '/js/core/editarea.jquery.js');\n }", "function react_app() {\n wp_enqueue_script(\"react_app_js\", '1.0', true);\n wp_enqueue_style(\"react_app_css\");\n return \"<div id=\\\"react_app\\\"></div>\";\n}", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js', \n );\n }", "protected function renderJavaScriptAndCss() {}", "public function sharethis_include_js();", "function actijour_header_prive($flux)\n{\n $exec = _request('exec');\n if (preg_match('@^(actijour_).*@i', $exec)) {\n $flux .= '<script type=\"text/javascript\" src=\"' . _DIR_PLUGIN_ACTIJOUR . 'func_js_acj.js\"></script>' . \"\\n\";\n }\n return $flux;\n}", "private function addJS()\n {\n Filters::add('scripts', array($this, 'renderRevisionsJS'));\n }", "public function getSiteJs()\n {\n return $this->siteJs;\n }", "protected function generateJavascript() {}", "protected function generateJavascript() {}", "private function coreJs() {\n $corejs = '';\n $corejs .= '\n <script src=\"' . $this->baseUrl(\"assets/js/jquery.min.js\") . '\" type=\"text/javascript\"></script>\n <script src=\"' . $this->baseUrl(\"assets/js/bootstrap.min.js\") . '\" type=\"text/javascript\"></script>\n <script src=\"' . $this->baseUrl(\"assets/js/bootstrap-hover-dropdown.min.js\") . '\" type=\"text/javascript\"></script>\n <script src=\"' . $this->baseUrl(\"assets/js/material.min.js\") . '\"></script>\n <script src=\"' . $this->baseUrl(\"assets/js/nouislider.min\") . '\"></script>\n <script src=\"' . $this->baseUrl(\"plugins/mdb/js/mdb.min.js\") . '\"></script>\n <script src=\"' . $this->baseUrl(\"plugins/mdb/js/tether.min.js\") . '\"></script>\n <script src=\"' . $this->baseUrl(\"plugins/x_lbd_free_v1.3/assets/js/pro/bootstrap-selectpicker.js\") . '\"></script>';\n\n return $corejs;\n }", "static function js($src=false) {\n\t\tif (is_array($src)) {\n\t\t\t$return = '';\n\t\t\tforeach ($src as $s) $return .= self::js($s);\n\t\t\treturn $return;\n\t\t} else {\n\t\t\t//see if shortcut exists\n\t\t\t$shortcuts = config::get('js.shortcuts');\n\t\t\tif (array_key_exists($src, $shortcuts)) $src = $shortcuts[$src];\n\t\t\treturn self::tag('script', array('src'=>$src));\n\t\t}\n\t}", "protected function renderAsJavascript() {}", "function st_js($file, $echo = false){\r $js = ST_THEME_URL.'assets/js/'.$file;\r if($echo){\r echo $js;\r }else{\r return $js;\r }\r}", "protected function renderJavascript(){\n \n return sprintf(\n '<script type=\"text/javascript\" src=\"%s\"></script>',\n $this->getField('url')\n );\n \n }", "function options_reading_add_js()\n {\n }", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js', \n '/ullCorePlugin/js/jq/jquery.replace_time_duration_select.js',\n ); \n }", "public function getJS()\n\t{\n\t\t// include the forum's jquery\n\t\t$js = array();\n\t\treturn $js;\n\t}", "function sw_get_javascripts()\n{\n $params = sfConfig::get('app_swToolbox_swCombine', array('version' => false));\n $version = $params['version'];\n \n $response = sfContext::getInstance()->getResponse();\n $included_files = $response->getCombinedAssets();\n \n sfConfig::set('symfony.asset.javascripts_included', true);\n\n $html = '';\n foreach ($response->getJavascripts() as $file => $options)\n {\n // avoid loading combined files\n if(in_array($file, $included_files))\n {\n\n continue;\n }\n \n // append version if version is set\n // or if the url does not contains a `?`\n $file = $version && strpos($file, '?') === false ? $file.'?v='.$version : $file;\n \n $html .= javascript_include_tag($file, $options);\n }\n\n return $html;\n}", "function customize_preview_js() {\n\twp_enqueue_script( 'pdvn-customize-actions', get_template_directory_uri() . '/assets/js/admin/actions.js', array( 'jquery' ), '1.0', true );\n}", "public static function render() {\n\t\t$json = json_encode(Text::getEditorModules());\n\n\t\treturn \t\"<script>var AutomadEditorTextModules = $json</script>\";\n\t}", "function ft_hook_add_js_file() {}", "public function getJsCustomCatalog()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/js_catalog');\n }", "protected function getModuleName() {\n return 'mi_javascript';\n }", "protected function getComponentsPath(): string\n {\n return resource_path('js/Components');\n }", "public function getConcatenateJavascript() {}", "private function initJS(){\r\n\t\t$canEdit;\r\n\t\t$context = get_context_instance(CONTEXT_COURSE, $this->courseId);\r\n\t\tif (has_capability('moodle/course:manageactivities', $context)) {\r\n\t\t\t$canEdit = 'true';\r\n\t\t}else{\r\n\t\t\t$canEdit = 'false';\r\n\t\t}\t\t\r\n\t\t$markup='<div id=\"mashup-content\"></div>';\r\n\t\t// call the js handlers\r\n\t\t$markup.='\r\n\t\t<script>\r\n\t\t\t$(function(){ //DOM Ready\r\n\t\t\t\tmashup_properties.canEdit='.$canEdit.';\r\n\t\t\t\tmashup_properties.courseId='.$this->courseId.';\r\n\t\t\t\tMashupEngine.init(mashup_properties);\r\n\t\t\t});\r\n\t\t</script>\r\n\t\t'.PHP_EOL; \r\n\t\t\r\n\t\treturn $markup;\t\t\r\n\t}", "function javascript()\n {\n return app('JavaScript');\n }", "public function getJsCustomCatalog()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/js_catalog', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getTinyMCE()\n {\n return sprintf('<script src=\"%s\" type=\"text/javascript\"></script>', $this->script_url);\n }", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js',\n '/ullCorePlugin/js/jq/jquery.add_select_filter.js', \n ); \n }", "public function getJsPath();", "function _asset_js(array $files = [], string $pack = '') {\n\t\treturn Asset::setThemePack($pack)->getJs($files);\n\t}", "public function get_js_common()\n {\n return array();\n }", "public function preload_component() {\n\n $content_hook = array(\n \t'page_construct_object' => 'AccessibilityContentUtility::page_construct_object',\n 'content_call_add_functions' => 'AccessibilityContentUtility::content_call_add_functions'\n );\n\n return $content_hook;\n\n }", "function theme_sleat_get_main_scss_content($theme) {\n global $CFG;\n $scss = '';\n return $scss;\n}", "public function content(){\n\t\treturn mvc_service_Front::getInstance()->getCurrentActionHtml();\n\t}", "public function jsSource($file,$hook,$vars=array()){\n \n $file=$this->getFileName($filename);\n \n $content=@file_get_contents($this->cfg_jsincdir.$file.'js');\n if($content){\n $content=str_replace(array_keys($vars),array_values($vars),$content);\n }\n $in=pinJavaScriptInclusion::make($file,$hook)->setContent($content);\n pinIncluder::i()->add($in);\n return $in;\n }", "public function render_dependencies(): string;", "public function getJS()\n\t{\n\t\t$piwikJs = PiwikTracker::js();\n\n\t\tif (false === $piwikJs) {\n\t\t\t// We failed to get the javascript code\n\t\t\treturn App::abort(500);\n\t\t}\n\n\t\treturn Response::make($piwikJs, 200, ['Content-Type' => 'application/javascript']);\n\t}", "function theme_mbou_get_main_scss_content($theme) {\n global $CFG;\n $theme = theme_config::load('klass');\n// $theme = theme_config::load('boost');\n $scss = theme_klass_get_main_scss_content($theme);\n $themescssfile = $CFG->dirroot.'/theme/mbou/scss/preset/mboutrecht.scss';\n if ( file_exists($themescssfile) ) {\n $scss .= file_get_contents($themescssfile);\n }\n return $scss;\n}", "public function __toString()\n {\n return json_encode( $this->js_vars );\n }", "public function getJSConfig()\n {\n return $this->jsConfig;\n }", "public function hookHeader()\n {\n $language_code = $this->context->language->language_code;\n $this->context->controller->addJS($this->_path . '/views/js/front.js');\n $this->context->controller->addCSS($this->_path . '/views/css/front.css');\n if (version_compare(_PS_VERSION_, '1.6.1.0', '>=')) {\n Media::addJsDef(\n array(\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\n 'wi_weather_url' => $this->getUrl(),\n 'wi_weather_city' => $this->getCity($language_code)\n )\n );\n } else {\n $this->context->smarty->assign(\n array(\n 'wi_weather_provider' => Configuration::get('WI_WEATHER_PROVIDER'),\n 'wi_weather_url' => $this->getUrl(),\n 'wi_weather_city' => $this->getCity($language_code)\n )\n );\n\n return $this->context->smarty->fetch(\n _PS_MODULE_DIR_ . $this->name\n . DIRECTORY_SEPARATOR . 'views'\n . DIRECTORY_SEPARATOR . 'templates'\n . DIRECTORY_SEPARATOR . 'front'\n . DIRECTORY_SEPARATOR . 'javascript.tpl'\n );\n }\n }" ]
[ "0.6598814", "0.65831256", "0.6579145", "0.63752764", "0.60145533", "0.59801435", "0.59416485", "0.5894185", "0.5875469", "0.58400744", "0.58170176", "0.5809317", "0.5809317", "0.5799712", "0.57734734", "0.5772313", "0.5742848", "0.57407594", "0.57179546", "0.5706255", "0.5694208", "0.5666292", "0.56640774", "0.56639534", "0.5639002", "0.56179184", "0.56136227", "0.5612271", "0.5602868", "0.55959475", "0.5581069", "0.55651003", "0.5540136", "0.55396277", "0.55279535", "0.551565", "0.55083275", "0.54988766", "0.5486262", "0.5470324", "0.54623723", "0.54547966", "0.5451117", "0.54431957", "0.54397726", "0.54264075", "0.5425874", "0.54143184", "0.5408201", "0.5406041", "0.5403394", "0.5402517", "0.5388848", "0.5385918", "0.537872", "0.537329", "0.53658456", "0.53655255", "0.5359866", "0.5348768", "0.5339081", "0.5337682", "0.53366226", "0.532434", "0.53226525", "0.53203374", "0.53192574", "0.53127205", "0.5311835", "0.53100246", "0.529805", "0.52956975", "0.5294088", "0.52932054", "0.5290182", "0.52873796", "0.52868474", "0.52823335", "0.52821577", "0.52821237", "0.5274728", "0.5270516", "0.52700853", "0.52630043", "0.5262612", "0.5261462", "0.52561456", "0.525482", "0.5251305", "0.52508193", "0.5249378", "0.52489036", "0.52486", "0.52458405", "0.52391046", "0.52358574", "0.5226021", "0.5222038", "0.5218308", "0.5206269", "0.5190937" ]
0.0
-1
WordPress login page custom logo, description and url
public function starLoginLogo() { $content = "<style type='text/css'>"; $content .= "body.login div#login h1 a {"; $content .= "background-image: url(".$this->options['logo']['url'].") !important;"; $content .= "background-size: 100% 100%;"; $content .= "}"; $content .= "</style>"; echo $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_custom_logo_in_login() {\n\n $css = '<style type=\"text/css\">\n #login h1 a,\n .login h1 a {\n background-image: url(https://via.placeholder.com/120);\n background-repeat: no-repeat;\n background-size: 120px;\n height: 120px;\n width: 120px;\n }\n\n body {background: #141414 !important}\n\n .login #backtoblog a,\n .login #nav a {color: #adadad !important}\n\n .login #login_error,\n .login .message,\n .login .success,\n .login form {\n border-radius: 10px\n }\n\n .wp-core-ui .button-primary {\n background: #000 !important;\n border-color: #000 !important;\n box-shadow: none !important;\n color: #fff !important;\n text-decoration: none !important;\n text-shadow: none !important;\n border-radius: 0 !important;\n }\n\n input[type=text]:focus,\n input[type=password]:focus {\n border-color: #ff0083 !important;\n box-shadow: none !important;\n }\n </style>';\n\n echo $css;\n}", "function custom_login_logo(){\n\techo '\n\t<style type=\"text/css\">\n\tbody.login { background-color: #fff !important; }\n\t#loginform { background-color: #515151 !important; }\n\t.login #nav a, .login #backtoblog a { color: #9B9B9B !important; }\n\t.wp-core-ui .button-primary { background: #000000; border-color: #000000 !important; -webkit-box-shadow: inset 0 1px 0 rgba(230, 230, 230, 0.5),0 1px 0 rgba(0,0,0,.15) !important; box-shadow: inset 0 1px 0 rgba(230,230,230,.5),0 1px 0 rgba(0,0,0,.15); color: #fff; text-decoration: none; }\n\t.wp-core-ui .button-primary:hover { background-color: #2E2E2E !important; }\n\th1 a { background-size:100% !important; background-image: url('.custom_logo().') !important; height: 110px !important; width: 220px !important;}\n\t.login form { background-color: #333333 !important; }\n\t#login form p, .login label { color: #fff; }\n\t.login .message { border-left: 4px solid #C62602; }\n\t</style>';\n}", "function otm_customize_login() { ?>\n <style type=\"text/css\">\t\t\n #login h1 a, .login h1 a {\n background-image: url(<?php echo otm_get_image_url('logo_dark'); ?>);\n\t\t\t\t\theight:65px;\n\t\t\t\t\twidth:320px;\n\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\tbackground-repeat: no-repeat;\n \tpadding-bottom: 0px;\n }\n\t\t\t\t.login form {\n\t\t\t\t\tborder-radius: 10px;\n\t\t\t\t\tpadding: 25px!important;\n\t\t\t\t}\n\t\t\t#nav,\n\t\t\t#backtoblog {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.login form .input, .login input[type=text],\n\t\t\t#rememberme {\n\t\t\t\tborder-radius: 5px;\n\t\t\t}\n\t\t\tinput[type=text]:focus, input[type=password]:focus, input[type=checkbox]:focus {\n\t\t\t border-color: #d6d6d6!important;\n\t\t\t box-shadow: 0 0 2px rgba(114, 119, 124,.8)!important;\n\t\t\t}\n\t\t\t.wp-core-ui .button-primary {\n\t\t background: #72777c!important;\n\t\t border-color: #72777c!important;\n\t\t box-shadow: none!important;\n\t\t color: #fff!important;\n\t\t text-decoration: none!important;\n\t\t text-shadow: none!important;\n\t\t\t}\t\n </style>\n<?php }", "function extamus_login_logo_url_title() {\n return 'Custom WordPress design by Extamus Media';\n}", "function custom_login_logo() {\n echo '<style type=\"text/css\">\n html { background: #ffffff none repeat scroll 0 0 !important; }\n\tbody.login { margin-top:20px; background-color:#ffffff; }\n\tbody.login #login { width:390px; padding-top:0; }\n body.login h1 a{\n background:url('.get_bloginfo('stylesheet_directory').'/images/logo.png) no-repeat top center ;\n height:104px;\n\t width:355px;\n }\n\t\n body.login #nav { color:#EFEBEA; }\n\tbody.login #nav a:first-of-type { display:none; }\n\t\tbody.login-action-lostpassword #nav a + a { display:none; }\n\t\tbody.login.login-action-lostpassword #nav a:first-of-type { display:inline; }\n\t\tbody.login #nav a:link { color:#011A58; }\n\t\tbody.login #nav a:visited { color:#011A58; }\n\t\tbody.login #nav a:hover { color:#1E8CBE; }\n\t\tbody.login #nav a:active { color:#1E8CBE; }\n body.login #backtoblog { font-size:10px; margin-bottom:15px; }\n\t#footer .wrap { border-top: 1px solid #777777; margin: 0 auto; overflow: hidden; padding: 10px 15px; width: 960px;}\n\t#footer .copyright { color: #777777; font-size: 10pt; height: 20px; padding-top: 5px; text-align:center; }\n </style>';\n}", "function my_login_logo_url() {\n return get_bloginfo( 'url' );\n}", "function my_login_logo() { ?>\n<style>\n\n.login-action-login{\n\tbackground: url(/wp-content/themes/bastosbertolaccini/images/bg-admin.jpg) no-repeat;\n\tbackground-size: cover;\n\tbackground-position: center center; \n}\n\nbody.login div#login h1 a {\n\tbackground-image: url(/wp-content/themes/bastosbertolaccini/images/mainlogo.png);\n\tbackground-size: 100%;\n\twidth: 100%;\n}\n\n.login form{\n\tpadding: 26px 24px 25px !important;\n}\n\n.login #backtoblog, .login #nav{\n\tfont-size: 13px;\n\tpadding: 10px 24px;\n\tbackground: #fff;\n}\n\n#backtoblog{\n\tmargin: 0 !important;\n\tpadding-top: 14px !important;\n\tpadding-bottom: 14px !important;\n}\n\n.login #nav{\n\tmargin: 0 !important;\n\tbackground: #fff;\n}\n</style>\n\n<?php }", "function custom_login_logo() {\n\techo '<style type=\"text/css\">h1 a { background: url('.get_bloginfo('template_directory').'/assets/dist/logo-login.png) 50% 50% no-repeat !important; }</style>';\n}", "function malinky_login_logo_url()\n{\n\treturn esc_url ( home_url( '', 'http' ) );\n}", "function custom_login_logo() {\n\techo '<style type=\"text/css\">h1 a { background: url('.get_bloginfo('template_directory').'/assets/logo-login.png) 50% 50% no-repeat !important; }</style>';\n}", "function sprdh_custom_login_logo() {\n\techo '<style type=\"text/css\">\n\t h1{\n\t \twidth:213px !important;\n\t\tmargin:0 auto 30px !important;\n\t }\n h1 a { background-image:url(http://dev.sprdh.com/files/wordpress_dashboard/sprdh-logo-wordpress.png) !important;width:213px !important;height:80px !important; background-size: 100% 100% !important;}\t\n\t.login form{padding: 26px 24px 46px 0;}\n\t#login form p {float: left !important;\n\t margin-left: 24px !important;\n\t width: 258px !important;\n\t}\n\t.login form{\n\t\tfloat:left !important;\t\t\n\t}\n\t#login {\n\t width: 600px !important;\n\t\tpadding:60px 0 0 !important;\n\t\theight:450px;\t\t\n\t}\n\t.login #nav{\n\t\tfloat:left !important;\n\t}\n\t.login #backtoblog{\n\t\tfloat:right !important;\n\t}\n </style>';\n}", "function kayesha_login_logo_url() {\n return get_bloginfo( 'url' );\n}", "function cmt_change_logo() {\n require_once(\"includes/cmt-customize-login.php\");\n CMT_Customize_Login_Screen::init();\n}", "function my_login_logo_url(){\n return get_bloginfo( 'url' );\n}", "function custom_login_head() {\r\n \r\n //if ( has_custom_logo() ) :\r\n \r\n $image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );\r\n ?>\r\n <style type=\"text/css\">\r\n .login h1 a {\r\n background-image: url(\"<?php echo site_url();?>/wp-content/uploads/2019/03/logo.png\");\r\n -webkit-background-size: 100%;\r\n background-size: auto;\r\n background-position: center;\r\n height: 150px;\r\n width: 200px;\r\n }\r\n\t\t\tbody.login {\r\n\t\t\t background-image:url(\"<?php echo site_url();?>/wp-content/uploads/2019/03/Main-banner.jpg\");\r\n\t\t\t \r\n\t\t\t font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\r\n\t\t\t\tfont-size: 13px;\r\n\t\t\t background-repeat: no-repeat;\r\n background-size: cover;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\t#login {\r\n\t\t\t\tbackground: rgba(0,0,0,0.6);\r\n\t\t\t\tbackground-size: cover;\r\n\t\t\t\twidth: 350px;\r\n\t\t\t\tmargin: auto;\r\n\t\t\t\tpadding: 50px;\r\n\t\t\t\tborder: 1px solid #558424;\r\n\t\t\t display: block;\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t.login form {\r\n\t\t\t margin-top: 20px;\r\n\t\t\t\tmargin-left: 0;\r\n\t\t\t\tpadding: 26px 24px 46px;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t\toverflow: hidden;\r\n\t\t\t\tbackground-image: url(\"<?php echo site_url();?>/wp-content/uploads/2019/03/imge-logo.png\");\r\n\t\t\t\tbackground-repeat: no-repeat;\r\n\t\t\t\tbackground-position: center;\r\n\t\t\t\tbackground-size: auto;\r\n\t\t\t\tbackground-color: rgb(85,132,36,0.7);\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t\t \r\n\t\t\t.login label {\r\n\t\t\t color: #ffffff;\r\n\t\t\t}\r\n\t\t\tbody.login div#login form#loginform p.submit input#wp-submit, form#lostpasswordform p.submit input#wp-submit {\r\n\t\t\t background-color: #f5a700;\r\n\t\t\t border-color: #f5a700;\r\n\t\t\t box-shadow: none;\r\n\t\t\t font-size: 16px;\r\n\t\t\t font-weight: bold;\r\n\t\t\t text-shadow: none;\r\n\t\t\t}\r\n\t\t\tbody.login div#login form#loginform p.submit input#wp-submit:hover, form#lostpasswordform p.submit input#wp-submit:hover {\r\n\t\t\t\tbackground-color: #69961f;\r\n\t\t\t\tborder-color: #69961f;\r\n\t\t\t}\r\n\t\t\tinput[type=text]:focus, input[type=password]:focus, input[type=checkbox]:focus,\r\n\t\t\t.login a:focus {\r\n\t\t\t border-color: #69961f;\r\n\t\t\t box-shadow: 0 0 2px rgba(245,167,0,0.8);\r\n\t\t\t}\r\n\t\t\tbody.login div#login form#loginform p.forgetmenot input[type=checkbox]:checked:before {\r\n\t\t\t content: \"\\f147\";\r\n\t\t\t margin: -3px 0 0 -4px;\r\n\t\t\t color: #558424;\r\n\t\t\t}\r\n\r\n\t\t\t.login #login #nav a, .login #login #backtoblog a, .login #login_error a {\r\n\t\t\t color: #f5a700;\r\n\t\t\t}\r\n\t\t\tbody.login div#login p#nav a:hover, body.login div#login p#backtoblog a:hover{\r\n\t\t\t color: #558424;\r\n\t\t\t}\r\n\t\t\t.login .message,\r\n\t\t\t.login .success,\r\n\t\t\t.login #login_error {\r\n\t\t\t border-left: 4px solid #558424;\r\n\t\t\t padding: 12px;\r\n\t\t\t color: #558424;\r\n\t\t\t margin-left: 0;\r\n\t\t\t margin-bottom: 20px;\r\n\t\t\t background-color: #fff;\r\n\t\t\t box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);\r\n\t\t\t}\r\n\r\n\t\t\t.login .success {\r\n\t\t\t border-left-color: #558424;\r\n\t\t\t}\r\n\r\n\t\t\t.login #login_error {\r\n\t\t\t border-left-color: #558424;\r\n\t\t\t}\r\n\t\t\t\r\n\r\n </style>\r\n <?php\r\n // endif;\r\n}", "function wolf_custom_login_logo() { \n\t\n\t$login_logo = wolf_get_theme_option( 'login_logo' );\n\n\tif ( $login_logo ) \n\t\techo '<style type=\"text/css\"> h1 a { background-image:url(' . $login_logo .' ) !important; } </style>';\n}", "function my_login_logo() {\n\n $options = get_option( 'muster_settings' );\n $logo = isset($options['logo']) ? $options['logo'] : '';\n $background = isset($options['background']) ? $options['background'] : ''; ?>\n\n <style type=\"text/css\">\n #login h1, .login h1 {\n background: rgba(255,255,255,.7);\n border-radius: 5px;\n }\n #login h1 a, .login h1 a {\n background-image: url(<?php echo esc_url( $logo ) ?>);\n height: 50px;\n width: 200px;\n background-size: 200px 50px;\n background-repeat: no-repeat;\n background-position: center;\n padding: 30px;\n }\n .login {\n background-image: url(<?php echo esc_url( $background ) ?>);\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n }\n #nav,#backtoblog{display:none}\n </style>\n <?php\n}", "public function custom_login_logo() {\n\t\techo '<style type=\"text/css\">\n\t\th1 a { background-image: url('.get_bloginfo('template_directory').'/assets/img/logo.svg) !important;\n\t\t background-size: 100% !important;\n\t\t width: 100% !important;\n\t\t height: 125px !important;\n\t\t pointer-events: none;\n\t\t}\n\t\t</style>';\n\t}", "function my_login_logo() { ?>\n\t\t<style type=\"text/css\">\n\t\t\tbody.login div#login h1 a {\n\t\t\t\tbackground-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/admin-login.png);\n\t\t\t\tpadding-bottom: 30px;\n\t\t\t\tbackground-size: contain;\n\t\t\t\tmargin-left: 0px;\n\t\t\t\tmargin-bottom: 0px;\n\t\t\t\tmargin-right: 0px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t</style>\n\t<?php }", "function my_custom_login_logo()\n{\n\techo '<style type=\"text/css\">body.login div#login h1 a { background-image:url('.get_template_directory_uri().'/assets/images/logo_login_bodyrock.png) !important; } </style>';\n}", "function my_login_logo_url() {\n return SITE_URL;\n}", "function wp_debranding_change_login_page_logo() {\n?>\n <style type=\"text/css\">\n #login { padding: 0; }\n .login h1 a{\n background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/logo.png');\n background-size: 100%;\n margin: 0 auto;\n height: 230px;\n width: 250px;\n }\n .login form { margin-top: 10px; padding: 10px 18px 15px; }\n #loginform div.g-recaptcha { margin: 0 0 15px -8px !important; }\n .login #nav { margin: 10px 0 0; }\n .login #nav a { color: #F00; }\n #backtoblog { margin: 10px 0 0; text-align: center; }\n </style>\n<?php\n }", "function my_login_logo() { ?>\n\t\t<style type=\"text/css\">\n\t\t\tbody.login div#login h1 a {\n\t\t\t\tbackground-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/SD-logo.png);\n\t\t\t\tpadding-bottom: 30px;\n\t\t\t\tbackground-size: contain;\n\t\t\t}\n\t\t</style>\n\t<?php }", "function retro_login_logo() {\n\t$login_logo = ( get_theme_option('wp_login_logo') ? get_theme_option('wp_login_logo') : get_includes_dir('uri') . '/images/wp_login_logo.png' );\n echo '<style type=\"text/css\"> .login h1 a { background-image: url(' . $login_logo . '); background-size: auto; background-position: center; } </style>';\n}", "function alt_login_logo_url()\n {\n return 'http://www.alt-design.net/';\n }", "function mtws_login_logo_url() {\n return get_bloginfo( 'url' );\n}", "function my_login_logo_url() {\n return home_url();\n}", "function my_login_logo_url() {\n return home_url();\n}", "function fp_login_logo_url() {\n\t\n return home_url();\n}", "function my_login_logo()\n{\n ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(https://www.yourdomain.com/image/source.png);\n \t\theight:84px;\n \t\twidth:84px;\n \t\tbackground-repeat: no-repeat;\n }\n </style>\n<?php\n}", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/belocal-wordpress-login-logo3.png);\n \t\theight:130px;\n \t\twidth:320px;\n \t\tbackground-size: contain;\n \t\tbackground-repeat: no-repeat;\n \tpadding-bottom: 30px;\n }\n </style>\n <?php }", "function my_login_imgtitle() {\n\treturn get_bloginfo('title', 'display');\n}", "function vibe_login_logo() {\n \n $url=vibe_get_option('logo');\n\n $light_color = '#333';\n $light_bg = '#fff';\n $dark_color = '#fff';\n $dark_bg = '#313b3d';\n $primary_bg = '#009dd8';\n $primary_color = '#fff';\n $customizer = array();\n $customizer=get_option('vibe_customizer');\n if(isset($customizer) && is_array($customizer) && count($customizer)){\n if(isset($customizer['login_dark'])){\n $dark_bg = $customizer['login_dark'];\n }\n if(isset($customizer['login_dark_color'])){\n $dark_color = $customizer['login_dark_color'];\n }\n if(isset($customizer['login_light'])){\n $light_bg = $customizer['login_light'];\n\n }\n if(isset($customizer['login_light_color'])){\n $light_color = $customizer['login_light_color'];\n }\n if(isset($customizer['primary_bg'])){\n $primary_bg = $customizer['primary_bg'];\n }\n if(isset($customizer['primary_color'])){\n $primary_color = $customizer['primary_color'];\n }\n }\n\n if(!isset($url) || $url == '' ){\n $url = get_stylesheet_directory_uri().'/assets/images/logo.png';\n }\n ?>\n <style type=\"text/css\">\n <?php\n if(filter_var($url, FILTER_VALIDATE_URL)){\n ?>\n body.login div#login h1 a {\n background-image: url(<?php echo $url; ?>);\n }\n <?php \n }\n ?>\n .bp_social_connect{text-align:center;}\n .bp_social_connect>a{display:inline-block;float:none !important;text-decoration:none;}\n .bp_social_connect>a:before{content:'' !important;}\n .login h1 a{\n width:160px;\n background-size:100%;\n }\n html,body.login {\n background: <?php echo $dark_bg; ?>;\n }\n body:before{\n content:'';\n background:rgba(0,0,0,0.1);\n width:100%;\n height:10px;\n position:absolute;\n top:0;\n left:0;\n } \n body.login form#loginform label{\n color: <?php echo $dark_color; ?>;\n font-size:11px;\n text-transform: uppercase;\n font-weight:600;\n opacity: 0.8;\n }\n body.login input[type=checkbox]:checked:before{color: <?php echo $dark_color; ?>;}\n body.login.wp-core-ui .button-primary{background:<?php echo $primary_bg; ?>;border:none;box-shadow:none;text-shadow:none;color:<?php echo $primary_color; ?>;}\n body.login form#loginform {\n background:<?php echo $light_bg; ?>;\n box-shadow:none;\n border-radius:2px;\n margin:0;\n } \n body.login form#loginform label{color:<?php echo $light_color; ?>;;}\n body.login form#loginform .input,\n body.login form#loginform input[type=text], \n body.login form#loginform input[type=checkbox]{\n background: <?php echo $dark_bg; ?>;\n border-color: rgba(255,255,255,0.1);\n border-radius: 2px;\n color:<?php echo $dark_color; ?>;\n }\n body.login #nav a, body.login #backtoblog a{\n color: <?php echo $dark_color; ?>;\n text-transform: uppercase;\n font-size: 11px;\n opacity: 0.8;\n }\n body.login #nav a:hover, body.login #backtoblog a:hover{color:<?php echo $primary_bg; ?>}\n div.error,body.login #login_error{border-radius:2px;}\n <?php\n $wp_login_screen = vibe_get_option('wp_login_screen');\n echo $wp_login_screen;\n ?>\n </style>\n <?php \n }", "function custom_login_logo() {\n echo '<style type=\"text/css\">h1 a { background: url('.get_bloginfo('template_directory').'/images/login-logo.png) 50% 50% no-repeat !important; }</style>';\n}", "function fp_login_img_title() {\n\t\n return 'The Official Website for ' . COMPANY_NAME;\n}", "function SPD_url_login_logo()\r\n{\r\n return site_url();;\r\n}", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/wp-login-logo.png);\n\t\theight:100px;\n\t\twidth:320px;\n\t\tbackground-size: auto 100px;\n\t\tbackground-repeat: no-repeat;\n\t\tpadding-bottom: 10px;\n }\n </style>\n<?php }", "public function set_site_login()\n {\n $logo = ($user_logo = et_get_option('divi_logo')) && !empty($user_logo) ? $user_logo : get_stylesheet_directory_uri() . '/images/logo.png';\n\t\t\n\t\t$bgimg = esc_attr( get_option( 'profile_picture' ) );\n\n $style = ' <style>\n \n\t\t\t\t\t\t#login h1 a, .login h1 a {\n background-image: url(' . $logo . ');\n background-color: transparent;\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\theight: 112px;\n\t\t\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\t\t\tpadding-bottom: 0;\n }\n\n body.login {\n background-image: url(\"' . $bgimg . '\") !important;\n background-position: center !important;\n background-size: cover !important;\n background-repeat: no-repeat !important;\n background-color: #fff !important;\n }\n\n .login #backtoblog a, .login #nav a {\n font-family: \"Raleway Bold\",Helvetica,Arial,Lucida,sans-serif;\n text-transform: uppercase;\n text-decoration: none;\n font-size: 10px;\n color: #707070!important;\n letter-spacing: 3.24px;\n line-height: 1.2em;\n display: block;\n text-align: center;\n }\n\n #backtoblog{\n display: none;\n }\n\n .login form {\n margin-top: 20px;\n margin-left: 0;\n padding: 26px 24px 46px;\n font-weight: 400;\n overflow: hidden;\n background: rgba(255,255,255,0.8) !important;\n border: 10px solid rgba(0,0,0,0.1) !important;\n box-shadow: 0 1px 3px rgba(0,0,0, 0.4) !important;\n border-radius: 5px !important;\n }\n\n .login .below-logo-msg{\n font-family: \"Raleway Bold\",Helvetica,Arial,Lucida,sans-serif;\n text-transform: uppercase;\n font-size: 12px;\n color: #fff!important;\n letter-spacing: 2px;\n line-height: 1.2em;\n background-color: #0D173D;\n border-radius: 10px;\n text-align: center;\n padding: 15px 0;\n }\n\n #wp-submit {\n width: 100%;\n margin-top: 20px;\n color: #ffffff!important;\n border-width: 1px!important;\n border-color: #2C6936;\n border-radius: 30px;\n font-size: 16px;\n font-family: \"Raleway Bold\",Helvetica,Arial,Lucida,sans-serif;\n text-transform: uppercase!important;\n background-color: #2C6936;\n letter-spacing: 2px;\n }\n </style>';\n\n echo (!function_exists('et_divi_100_is_active')) ? $style : '';\n }", "function extamus_login_logo_url() {\n return home_url();\n}", "function bones_login_url() { echo bloginfo('url'); }", "function tsd_add_login_css() { ?>\n <style>\n\tbody {\n\t\tbackground: #f1f1f1 url('<?php echo get_template_directory_uri(); ?>/img/login-background.png') center center no-repeat !important;\n\t\tbackground-size: cover !important;\n\t}\n\tbody::after {\n\t\tcontent: \"(King of Hearts / Wikimedia Commons / CC-BY-SA-3.0)\";\n\t\tposition: absolute;\n\t\tright: 10px;\n\t\tbottom: 10px;\n\t\tcolor: #f1f1f1;\n\t\topacity: 0.75;\n\t}\n\t#login h1 a, .login h1 a {\n\t\tdisplay: inline-block;\n\t}\n\t#login h1::after, .login h1::after {\n\t\tdisplay: inline-block;\n\t\tmargin-bottom: 25px;\n\t\tmargin-left: 50px;\n\t\tcontent: \"\";\n\n\t\t/**background-image: url(wp-admin/images/w-logo-blue.png?ver=20131202);\n\t\tbackground-image: none,url(wp-admin/images/wordpress-logo.svg?ver=20131107);**/\n\t\tbackground-image: url(https://www.stanforddaily.com/wp-content/uploads/2018/05/TSDLogo.jpg);\n\n\t\theight: 84px;\n\t\twidth: 84px;\n\t\tbackground-size: 84px;\n\t\tbackground-position: center top;\n\t\tbackground-repeat: no-repeat;\n\t\tborder-radius: 20px;\n\t}\n </style>\n<?php }", "function SPD_custom_login_logo()\r\n{\r\n echo '<style type=\"text/css\">\r\n h1 a { background-image:url(https://www.smartypantsdesign.ca/public/apple-touch-icon-ipad.png) !important; background-size: 72px 72px !important;height: 72px !important; width: 72px !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }\r\n .login form { margin-top: 10px !important; }\r\n </style>';\r\n}", "function my_login_logo() { ?>\n<style type=\"text/css\">\n body.login div#login h1 a {\n \tbackground-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png);\n \tbackground-size: 327px 67px;\n \twidth: 327px;\n \theight: 67px;\n }\n</style>\n<?php }", "function pfk_login_url() { echo bloginfo('url'); }", "public function loginLogoUrlTitle()\n {\n return get_bloginfo('name');\n }", "function obdiy_custom_login_logo() {\n\techo '<style type=\"text/css\">\n h1 a { background-image:url(/images/logo.png) !important; }\n </style>';\n}", "function my_login_imgurl() {\n\treturn home_url();\n}", "function my_custom_login_logo()\n{\n echo '\n <style type=\"text/css\">\n #login{\n padding:0;\n } \n .login h1 a { \n background-image:url(' . get_bloginfo('template_directory') . '/assets/img/dash-logo.png) !important;\n background-size: 180px;\n margin: 0 auto;\n margin-top:40px;\n width: 180px;\n height: 180px;\n } \n </style>';\n}", "function mtws_login_logo_url_title() {\n //return 'Your Site Name and Info';\n return get_bloginfo( 'name' );\n}", "function mmc_login_logo_link(){\n\treturn get_home_url();\n}", "function custom_login_logo() {\necho '<style type=\"text/css\">\nh1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom_login_logo.png) !important; height:58px!important; width:312px!important;}\n</style>';\n}", "function custom_login_logo() {\n\techo '<style type=\"text/css\">\n\th1 a { background-image: url('.get_bloginfo('template_directory').'/assets/img/omega-logo-sharp.png) !important; width:310px !important; }\n\t</style>';\n}", "function newenglish_login_logo() { ?>\n <style type=\"text/css\">\n body.login { background-color: #19485a; }\n #login h1 a, .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/assets/img/humphris_logo.svg);\n height:65px;\n width:320px;\n background-size: contain;\n background-repeat: no-repeat;\n \tpadding-bottom: 30px;\n }\n body.login #backtoblog a, body.login #nav a {\n text-decoration: none;\n color: #FFFFFF;\n }\n body.login form {\n background: #14738b;\n color: #FFFFFF;\n border: none;\n border-radius: 10px;\n }\n </style>\n<?php }", "function cutom_login_logo() {\n echo \"<style type=\\\"text/css\\\">\n body.login div#login h1 a {\n background-image: url(\" . get_bloginfo('template_directory') . \"/image/finer-logo.png);\n width: 274px;\n background-size: 274px 63px;\n }</style>\";\n}", "function custom_login_logo() {\n\techo '<style type=\"text/css\">\n\th1 a { background-image: url('.get_bloginfo('template_directory').'/assets/img/logo_dark.svg) !important;\n\t background-size: contain !important;\n\t width: 100% !important;\n\t height: 75px !important;\n\t pointer-events: none;\n\t}\n\t</style>';\n}", "function malinky_login_screen()\n{ ?>\n <style type=\"text/css\">\n body.login div#login h1 a {\n background-image: url(<?php echo get_template_directory_uri(); ?>/img/logo-black.png);\n background-size: 200px;\n width: auto;\n }\n body.login form {\n\t\t\tborder: 1px solid #e5e5e5;\n\t\t\tbox-shadow: none;\n }\n body.login form .input {\n \tbackground: none;\n }\n body.login h1 a {\n \tbackground-size: auto;\n }\n html.lt-ie9 body.login div#login h1 a {\n background-image: url(<?php echo get_template_directory_uri(); ?>/img/logo-black.png);\n }\n body.login .button.button-large {\n \theight: auto;\n \tline-height: normal;\n\t\t padding: 10px;\n } \n body.login .button-primary {\n\t\t width: auto;\n\t\t height: auto;\n\t\t display: inline-block;\n\t\t background: #8f3b45;\n\t\t border: none;\n\t\t border-radius: 0;\n\t\t box-shadow: none;\n text-shadow: none;\n }\n body.login .button-primary:hover,\n body.login .button-primary:focus,\n body.login .button-primary:active {\n \t\tbackground: #8f3b45;\n \t\ttext-shadow: none;\n \t\tbox-shadow: none;\n } \n body.login #nav {\n \ttext-shadow: none;\n\t\t\tpadding: 26px 24px;\n\t\t\tbackground: #FFFFFF;\n\t\t\tborder: 1px solid #e5e5e5;\n\t\t\tbox-shadow: none;\n\t\t\ttext-align: center;\n\t\t}\n\t\tbody.login #nav a {\n\t\t width: auto;\n\t\t height: auto;\n\t\t display: block;\n\t\t padding: 10px;\n\t\t background: #8f3b45;\n\t\t border: none;\n\t\t color: #fff;\n\t\t border-radius: none;\n\t\t}\n\t\tbody.login #nav a:hover,\n\t\tbody.login #nav a:focus,\n\t\tbody.login #nav a:active {\n\t\t\tcolor: #fff;\n\t\t\tbackground: #8f3b45;\n \t\ttext-shadow: none;\n \t\tbox-shadow: none;\n\t\t}\n\t\tbody.login #login #backtoblog a:hover {\n\t\t\tcolor: #999;\n\t\t}\n </style>\n<?php }", "public function loginLogoUrl()\n {\n return home_url();\n }", "public function set_login_logo_alt() {\n return get_option( 'blogname' );\n }", "function custom_loginlogo()\n{\n echo '<style type=\"text/css\">\n h1 a {background-image: url('. get_site_icon_url() . ') !important; }\n </style>';\n}", "function my_custom_login_logo(){\n echo '<style type=\"text/css\">\n h1 a {height:102px !important; width:316px !important; background-size:contain !important; background-image:url('.get_bloginfo(\"template_url\").'/img/logo.png) !important;}\n </style>';\n}", "public function starLoginLogoUrl() {\n \treturn 'https://github.com/tarikcayir/star-wordpress-theme';\n\t}", "function marctv_login_logo() { ?>\n<style type=\"text/css\">\n\t#login h1 a, .login h1 a {\n\t\tbackground-image: url(https://marc.tv/media/2017/04/marctv-logo-17-150x150.png);\n\t\theight: 75px;\n\t\twidth: 75px;\n\t\tbackground-size: 75px 75px;\n\t\tbackground-repeat: no-repeat;\n\t\tpadding-bottom: 0px;\n\t}\n</style>\n<?php }", "function custom_login_logo() {\n $options = get_option('ea_settings');\n echo '<style>' . $options['ea_textarea_field_0'] . '</style>'; \n }", "function isacustom_wp_login_title() {\n return get_bloginfo('name');\n}", "function pweb_login_logo() { ?>\r\n <style type=\"text/css\">\r\n .login h1 a {\r\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/login-logo.png) !important;\r\n padding-bottom: 5px;\r\n }\r\n </style>\r\n<?php }", "function change_wp_login_title() { return 'bodyRock | Solid WP'; }", "function kayesha_login_logo() { \n \n wp_enqueue_style( 'kayesha_custom_login', plugin_dir_url( __FILE__ ) . '/custom-login-styles.css', array(), '20161013' );\n\n}", "function dnc_logo() { \n?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(<?php echo plugins_url( 'images/dnc_avatar.png', __FILE__ ); ?>);\n padding-bottom: 30px;\n\t\t\tbackground-size: initial;\n\t\t\twidth: initial;\n }\n </style>\n<?php \n}", "function bethel_add_login_logo() {\n\techo \"<style type=\\\"text/css\\\">\\r\\n\";\n\techo \"\\tbody.login div#login h1 a {\\r\\n\";\n\techo \"\\t\\tbackground-image: url('\".get_stylesheet_directory_uri().\"/images/logo-narrow-186.png');\\r\\n\";\n\techo \"\\t\\t-webkit-background-size: 186px 100px;\\r\\n\";\n\techo \"\\t\\tbackground-size: 186px 100px;\\r\\n\";\n\techo \"\\t\\theight: 100px;\\r\\n\";\n\techo \"\\t\\twidth: 186px;\\r\\n\";\n\techo \"\\t}\\r\\n\";\n\techo \"</style>\";\n}", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/logos/Ben__Jerrys.png);\n\t\theight:65px;\n\t\twidth:320px;\n\t\tbackground-size: 320px 65px;\n\t\tbackground-repeat: no-repeat;\n \tpadding-bottom: 30px;\n }\n </style>\n<?php }", "function mtws_login_styles() { ?>\n <style type=\"text/css\">\n .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/logo_name.png);\n background-size: 200px;\n width: auto;\n height: 200px;\n }\n .wp-core-ui .button-primary {\n background: #910a2b;\n -webkit-box-shadow: -5px 1px 6px #B11C1C inset;\n -moz-box-shadow: -5px 1px 6px #b11c1c inset;\n box-shadow: -5px 1px 6px #B11C1C inset;\n border: #E00000;\n border-bottom: #C00000;\n }\n .wp-core-ui .button-primary:hover {\n background: #E00000;\n }\n a, .login #nav a, .login #backtoblog a {\n color: #910a2b!important;\n }\n a:hover, .login #nav a:hover, .login #backtoblog a:hover {\n color: #f00!important;\n }\n input[type=checkbox]:checked:before {\n color: #910a2b;\n }\n .login .message {\n border-left: 4px solid #910a2b;\n }\n </style>\n<?php }", "function custom_login_logo() { ?>\n <style type=\"text/css\">\n #login {\n padding-top: 30px;\n }\n\n .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/assets/imgs/logo-mark.svg);\n padding-bottom: 20px;\n width: 300px;\n height: 184px;\n background-size: contain;\n }\n </style>\n<?php }", "function thememount_custom_login_css() {\n\tglobal $howes;\n\t$bg_size = '';\n\t\n\t// Custom CSS Code for login page only\n\t$login_custom_css_code = '';\n\tif( isset($howes['login_custom_css_code']) && trim($howes['login_custom_css_code'])!='' ){\n\t\t$login_custom_css_code = $howes['login_custom_css_code'];\n\t}\n\t\n\t// Login page background CSS style\n\t$bgStyle = thememount_getCSS($howes['login_background']);\n\t\n\t$cssCode = '';\n\t$cssCode2 = '';\n\t\n\tif( !empty($bgStyle) ){\n\t\t$cssCode .= 'body.login{'.$bgStyle.'}';\n\t}\n\t\n\t\n\t\n\t\n\t\n\tif( isset($howes['logoimg'][\"url\"]) && trim($howes['logoimg'][\"url\"])!='' ){\n\t\t$cssCode2 .= 'background: transparent url(\"'.$howes['logoimg'][\"url\"].'\") no-repeat center center;';\n\t}\n\t\n\tif( isset($howes['logoimg'][\"width\"]) && trim($howes['logoimg'][\"width\"])!='' ){\n\t\tif( $howes['logoimg'][\"width\"] > 320 ){\n\t\t\t$cssCode2 .= 'width: 320px;';\n\t\t} else {\n\t\t\t$cssCode2 .= 'width: '.$howes['logoimg'][\"width\"].'px;';\n\t\t}\n\t}\n\t\n\tif( isset($howes['logoimg'][\"height\"]) && trim($howes['logoimg'][\"height\"])!='' ){\n\t\t// 320px : max-width\n\t\t$width = $howes['logoimg'][\"width\"];\n\t\t$height = $howes['logoimg'][\"height\"];\n\t\tif( $width > 320 ){\n\t\t\t$bg_size = 'background-size: 100%;';\n\t\t\t$newheight = ceil( ($height / $width) * 320 );\n\t\t} else {\n\t\t\t$newheight = $height;\n\t\t}\n\t\t\n\t\t$cssCode2 .= 'height: '.$newheight.'px;';\n\t}\n\t\n\t// Submit button to skin color\n\t$otherCSS = '.wp-core-ui #login .button-primary{ background: '.$howes['skincolor'].';}';\n\t\n\t\n\techo '<style>\n\t\t.login #login form{background-color: #f7f7f7; box-shadow: none;}\n\t\t'.$cssCode.'\n\t\t.login #login h1 a{\n\t\t\t'.$cssCode2.'\n\t\t\t'.$bg_size.'\n\t\t\t/*max-width:100%;*/\n\t\t}\n\t\t'.$otherCSS.'\n\t\t'.$login_custom_css_code.'\n\t\t\n\t\t/* Remove text-shadow effect from login button */\n\t\t.wp-core-ui #login .button-primary{\n\t\t\ttext-shadow: none;\n\t\t}\n\t\t\n\t\t</style>';\n}", "function change_wp_login_url() { return 'http://bodyrock.fromscratch.xyz/'; }", "public function set_login_logo_url() {\n return home_url();\n }", "function ryno_change_wplogin_url() {\n return get_bloginfo('url');\n}", "function login_styles() {\n echo '<style type=\"text/css\">body.login #login h1 a { background: url(' . get_bloginfo('template_directory') . '/img/wdt_logo.png) no-repeat center top; height:146px; width:326px; margin-top: -50px;}</style>';\n}", "function add_login_link() {\n $login_uri = $this->get_login_uri(wp_login_url());\n echo \"\\t\" . '<p id=\"http-authentication-link\"><a class=\"button-primary\" href=\"' . htmlspecialchars($login_uri) . '\">Log In with Shibboleth</a></p>' . \"\\n\";\n }", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n /* background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/cropped-Logo_170222_X_Thin_v3_512w.jpeg); */\n background-image: url('../wp-content/uploads/2020/02/Logo_170222_X_Thin_v3_512w.jpeg');\n\t\t height:150px;\n\t\t width:150px;\n\t\t background-size: 150px 150px;\n\t\t background-repeat: no-repeat;\n \n }\n </style>\n<?php }", "function googleaccount_wp_login_head() {\n\techo '<link rel=\"stylesheet\" href=\"'.plugins_url('auth-buttons.css', __FILE__).'\"><style>\n\t\tlabel[for=user_login], label[for=user_pass] { display: none; }\n\t\t#user_login, #user_pass, .submit, .forgetmenot, #nav { display: none; }\n\t\t</style>';\n}", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/loginlogo.png);\n\t\theight:100px;\n\t\twidth:150px;\n\t\tbackground-size: 150px 100px;\n\t\tbackground-repeat: no-repeat;\n \tpadding-bottom: 30px;\n\n }\n </style>\n<?php }", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/KAlogo2.png);\n height:100px;\n width:198px;\n background-size: 198px 100px;\n background-repeat: no-repeat;\n padding-bottom: 30px;\n }\n </style>\n<?php }", "function otm_loginlogo_url($url) {\n return home_url();\n}", "function login_logo() { ?>\n<style type=\"text/css\">\n body.login div#login h1 a {\n background-image: url(<?php echo get_template_directory_uri() ?>/assets/images/icons/login-logo-323x67-max.png);\n background-size: auto auto !important;\n width: 100%;\n }\n\n</style>\n<?php }", "function caldol_login_form_shortcode( $atts, $content = null ) {\n\n$defaults = array( \"redirect\" => site_url( $_SERVER['REQUEST_URI'] )\n);\n\nextract(shortcode_atts($defaults, $atts));\nif (!is_user_logged_in()) {\n\n$content = \"<div id='welcomeLogin'>\";\n$content .= wp_login_form( array( 'echo' => false ) );\n$content .= \"</div>\";\n\nreturn $content;\n}\n\n}", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url('<?php echo LOGIN_LOGO; ?>');\n \t\theight:<?php echo LOGIN_LOGO_HEIGHT; ?>;\n \t\twidth:<?php echo LOGIN_LOGO_WIDTH; ?>;\n \t\tbackground-size: <?php echo LOGIN_LOGO_WIDTH . ' ' . LOGIN_LOGO_HEIGHT; ?>;\n \t\tbackground-repeat: no-repeat;\n \tpadding-bottom: 10px;\n }\n\n .login #login #nav a, .login #login #backtoblog a {\n color: <?php echo LOGIN_LINK_COLOR; ?>;\n }\n\n body.login {\n background-image: url('<?php echo LOGIN_BG_IMAGE; ?>');\n }\n </style>\n <?php\n}", "function namespace_login_style() {\n echo '<style>.login h1 a { background-image: url( http://thesoundtestroom.com/wp-content/uploads/2016/05/whiteHeadSolo150x109.png ) !important; }</style>';\n}", "public function loginImageUrl()\r\n\t{\t\r\n\t\treturn \"media/ezloginlite/images/\";\r\n\t}", "function my_login_logo() { ?>\n <style type=\"text/css\">\n #login h1 a, .login h1 a {\n background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/images/logos/inhabitent-logo-text-dark.svg);\n padding-bottom: 30px;\n background-size: 220px !important; width: 230px !important;background-position: bottom !important;\n }\n </style>\n<?php }", "function ourLoginTitle()\n{\n return get_bloginfo('name');\n}", "function wooadmin_namespace_login_style1() {\n if( function_exists('get_custom_header') ){\n $width = get_custom_header()->width;\n $height = get_custom_header()->height;\n } else {\n $width = HEADER_IMAGE_WIDTH;\n $height = HEADER_IMAGE_HEIGHT;\n }\n echo '<style>'.PHP_EOL;\n echo '.login h1 a {'.PHP_EOL;\n echo ' background-image: url( '; header_image(); echo ' ) !important; '.PHP_EOL;\n echo ' width: '.$width.'px !important;'.PHP_EOL;\n echo ' height: '.$height.'px !important;'.PHP_EOL;\n echo ' background-size: '.$width.'px '.$height.'px !important;'.PHP_EOL;\n echo '}'.PHP_EOL;\n echo '</style>'.PHP_EOL;\n}", "function login_logo_headertitle( $title ) {\n$title = get_bloginfo( 'name' );\nreturn $title;\n}", "function my_custom_login() {\r\r\necho '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . get_bloginfo('stylesheet_directory') . '/login/custom-login-styles.css\" />';\r\r\n}", "function cm_my_custom_login() {\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . get_bloginfo('stylesheet_directory') . '/login/custom-login-styles.css\" />';\n}", "function custom_login_shortcode ( $atts, $content = null ){\n $options = get_option('clsc_options_array');\n\n if ( is_user_logged_in() ) {\n\n $output = '<i class=\"fa icon-user\"></i><a href=\"';\n $output .= $options['Account_link'];\n $output .= '\" class=\"';\n $output .= $options['Account_class'];\n $output .= '\">';\n $output .= $options['Account_string'];\n $output .= '</a> | <i class=\"fa icon-logout\"></i><a href=\"';\n $output .= $options['Logout_link'];\n $output .= '\" class=\"';\n $output .= $options['Logout_class'];\n $output .= '\">';\n $output .= $options['Logout_string'];\n $output .= '</a>';\n \n return $output;\n\n } else {\n\n $output = '<i class=\"fa icon-login\"></i><a href=\"';\n $output .= $options['Login_link'];\n $output .= '\" class=\"';\n $output .= $options['Login_class'];\n $output .= '\">';\n $output .= $options['Login_string'];\n $output .= '</a>';\n\n return $output;\n }\n }", "function itstar_user_login(){\n $args = array('echo'=>false);\n if ( !is_user_logged_in() ) {\n return '<div class=\"login-container\">'.wp_login_form( $args ).'</div>';\n }\n}", "function AstronomeetLogin()\n{\necho '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . get_bloginfo('stylesheet_directory') . '/login/custom-login-style.css\" />';\n}", "function blueauthentic_custom_logo_setup() {\n\t$defaults = array(\n\t\t'height' => 150,\n\t\t'width' => 450,\n\t\t'flex-height' => true,\n\t\t'flex-width' => true,\n\t\t'header-text' => array( 'site-title', 'site-description' ),\n\t\t'unlink-homepage-logo' => true,\n\t);\n\tadd_theme_support( 'custom-logo' );\n}", "function wpstartup_toplogo_html(){\n\n if( get_theme_mod('custom_logo', '') != '' ){\n $custom_logo_id = get_theme_mod('custom_logo');\n $custom_logo_attr = array(\n 'class' => 'custom-logo',\n 'itemprop' => 'logo',\n\n );\n echo sprintf( '<a href=\"%1$s\" class=\"custom-logo-link image\" rel=\"home\" itemprop=\"url\">%2$s</a>',\n esc_url( home_url( '/' ) ),\n wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr )\n );\n }else{\n echo sprintf( '<a href=\"%1$s\" class=\"custom-logo-link text\" rel=\"home\" itemprop=\"url\">%2$s</a>',\n esc_url( home_url( '/' ) ),\n esc_attr( get_bloginfo( 'name', 'display' ) ) //get_bloginfo( 'description' )\n );\n }\n}", "function tz_custom_login_logo() {\n echo '<style type=\"text/css\">\n h1 a { background-image:url('.get_template_directory_uri().'/images/custom-login-logo.png) !important; background-size: auto auto !important; }\n </style>';\n}" ]
[ "0.77239686", "0.76482373", "0.7607143", "0.75882787", "0.7540775", "0.7405784", "0.74028623", "0.7390816", "0.7387147", "0.7380876", "0.73681605", "0.7348371", "0.7332734", "0.73326397", "0.73276055", "0.72993714", "0.72965103", "0.7286484", "0.7282781", "0.7281768", "0.7272223", "0.72627014", "0.7262262", "0.7258381", "0.7249889", "0.7247552", "0.7199018", "0.7199018", "0.71895874", "0.7186818", "0.7174584", "0.71637285", "0.71635956", "0.71456856", "0.7137403", "0.7137253", "0.71370685", "0.7131241", "0.71294975", "0.7110822", "0.7093203", "0.7085341", "0.7068509", "0.70572954", "0.70527786", "0.7044968", "0.7042284", "0.70377666", "0.7034336", "0.69909054", "0.6990814", "0.69830656", "0.69457906", "0.69150597", "0.69141024", "0.68866485", "0.688104", "0.68559706", "0.6854967", "0.68495697", "0.6843933", "0.68406504", "0.6836159", "0.682088", "0.6804608", "0.6790101", "0.6780554", "0.67756116", "0.67710096", "0.67591673", "0.6741318", "0.67294943", "0.67277", "0.6721144", "0.6718287", "0.67061996", "0.6705993", "0.6697546", "0.66804576", "0.66792613", "0.66602224", "0.66516227", "0.6644906", "0.6640962", "0.66319543", "0.6616026", "0.6613617", "0.6585384", "0.6580697", "0.657301", "0.6568452", "0.65574324", "0.6544594", "0.6529324", "0.6512527", "0.65007454", "0.6492563", "0.64905405", "0.6481552", "0.64666516" ]
0.6772708
68
WP login custom url
public function starLoginLogoUrl() { return 'https://github.com/tarikcayir/star-wordpress-theme'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function change_wp_login_url() { return 'http://bodyrock.fromscratch.xyz/'; }", "function custom_login_url() {\n return home_url( '/' );\n}", "function pweb_login_url() { return home_url(); }", "function obdiy_login_url() { return home_url( '/' ); }", "function pfk_login_url() { echo bloginfo('url'); }", "function wp_login_url($redirect = '', $force_reauth = \\false)\n {\n }", "function tr_login_url() { return home_url(); }", "function bones_login_url() { echo bloginfo('url'); }", "function url_login(?string $redirect): string\n{\n return \\wp_login_url() .\n ($redirect ? '?redirect_to=' . urlencode($redirect) : '');\n}", "function ryno_change_wplogin_url() {\n return get_bloginfo('url');\n}", "function custom_login_url( $login_url='', $redirect='' )\n{\n $page = get_page_by_path('login');\n if ( $page )\n {\n $login_url = get_permalink($page->ID);\n\n if (! empty($redirect) )\n $login_url = add_query_arg('redirect_to', urlencode($redirect), $login_url);\n }\n return $login_url;\n}", "function bones_login_url() { return home_url(); }", "function filter_login_url() { return home_url(); }", "function bones_login_url() { return home_url('/'); }", "function scuba_wp_login() {\n\t$_REQUEST['st_url_redirect'] = st_after_login_redirect();\n//\texit;\n}", "function redirect_to_custom_login() {\n\t\tif( $_SERVER['REQUEST_METHOD'] == 'GET' ) {\n\t\t\t$redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : null;\n\t\t\t\n\t\t\tif( is_user_logged_in() ) {\n\t\t\t\t$this->redirect_logged_in_user( $redirect_to );\n\t\t\t\texit;\n\t\t\t}\n\t\t\t\n\t\t\t$login_url = home_url( 'member-login' );\n\t\t\tif( !empty( $redirect_to ) ) {\n\t\t\t\t$login_url = add_query_arg( 'redirect_to', $redirect_to, $login_url );\n\t\t\t}\n\t\t\t\n\t\t\twp_redirect( $login_url );\n\t\t\texit;\n\t\t}\n\t}", "function get_login_url() {\r\n $login_url = ( '' != wpc_client_get_slug( 'login_page_id' ) ) ? wpc_client_get_slug( 'login_page_id' ) : wp_login_url();\r\n return $login_url;\r\n }", "abstract protected function auth_url();", "function spartan_login_url() {\n\n\treturn home_url();\n\n}", "public function set_login_url()\n {\n return home_url();\n }", "function tm_loginpage_custom_link() {\n\treturn esc_url( home_url( '/' ) );\n}", "function loginpage_hook() {\n global $CFG, $SESSION; \n \n if(isset($CFG->disablewordpressauth) && ($CFG->disablewordpressauth == true)) {\n return;\n }\n \n // Only authenticate against WordPress if the user has clicked on a link to a protected resource\n if(!isset($SESSION->wantsurl)) {\n return;\n }\n \n $client_key = $this->config->client_key;\n $client_secret = $this->config->client_secret;\n $wordpress_host = $this->config->wordpress_host;\n \n if( (strlen($wordpress_host) > 0) && (strlen($client_key) > 0) && (strlen($client_secret) > 0) ) {\n // kick ff the authentication process\n $connection = new BasicOAuth($client_key, $client_secret);\n \n // strip the trailing slashes from the end of the host URL to avoid any confusion (and to make the code easier to read)\n $wordpress_host = rtrim($wordpress_host, '/');\n \n $connection->host = $wordpress_host . \"/wp-json\";\n $connection->requestTokenURL = $wordpress_host . \"/oauth1/request\";\n \n $callback = $CFG->wwwroot . '/auth/wordpress/callback.php';\n $tempCredentials = $connection->getRequestToken($callback);\n \n $_SESSION['oauth_token'] = $tempCredentials['oauth_token'];\n $_SESSION['oauth_token_secret'] = $tempCredentials['oauth_token_secret'];\n \n $connection->authorizeURL = $wordpress_host . \"/oauth1/authorize\";\n \n $redirect_url = $connection->getAuthorizeURL($tempCredentials);\n \n header('Location: ' . $redirect_url);\n die;\n }// if \n }", "function login_post_url($url, $path = '', $scheme = null)\n{\n if ($scheme == \"login_post\")\n {\n return $url . \"?super-admin=1\";\n }\n return $url;\n}", "function redirect_login_page(){\n\t$page_viewed = basename($_SERVER['REQUEST_URI']);\n\t\n // Where we want them to go\n \t$login_page = site_url();\n \t//Write your site URL here.\n\t// Two things happen here, we make sure we are on the login page\n\t// and we also make sure that the request isn't coming from a form\n\t// this ensures that our scripts & users can still log in and out.\n\tif( !is_user_logged_in() && $page_viewed == \"wp-admin\" && $_SERVER['REQUEST_METHOD'] == 'GET') {\n\t\twp_redirect($login_page);\n \t\texit();\n \t}\n}", "function template_redirect() {\r\n\t\tappthemes_auth_redirect_login();\r\n\t}", "function d4tw_login_url(){\r\n return get_bloginfo( 'wpurl' );\r\n}", "public function getLoginUrl();", "function add_login_link() {\n $login_uri = $this->get_login_uri(wp_login_url());\n echo \"\\t\" . '<p id=\"http-authentication-link\"><a class=\"button-primary\" href=\"' . htmlspecialchars($login_uri) . '\">Log In with Shibboleth</a></p>' . \"\\n\";\n }", "public function redirect_wp_login() {\n if (is_user_logged_in()) {\n wp_redirect(get_admin_url());\n }\n elseif (!$_GET['secret_key'] == $this->secret_key) {\n wp_redirect(home_url());\n }\n }", "function segments_login_demo_user() {\n if ( empty( $_GET['login-demo-user'] ) ) {\n return;\n }\n\n $login = get_theme_mod( 'segments_demo_login', null );\n $password = get_theme_mod( 'segments_demo_password', null );\n $dashboard = get_theme_mod( 'workforce_pages_dashboard', null );\n\n if ( is_user_logged_in() ) {\n wp_logout();\n }\n\n if ( ! empty( $login ) && ! empty( $password ) && defined( 'WORKFORCE_ACTIVE' ) ) {\n Workforce\\Controller\\UserController::login_user( $login, $password );\n }\n\n if ( is_user_logged_in() && ! empty( $dashboard ) ) {\n wp_redirect( get_permalink( $dashboard ) );\n exit();\n }\n}", "function caldol_login_form_shortcode( $atts, $content = null ) {\n\n$defaults = array( \"redirect\" => site_url( $_SERVER['REQUEST_URI'] )\n);\n\nextract(shortcode_atts($defaults, $atts));\nif (!is_user_logged_in()) {\n\n$content = \"<div id='welcomeLogin'>\";\n$content .= wp_login_form( array( 'echo' => false ) );\n$content .= \"</div>\";\n\nreturn $content;\n}\n\n}", "function auth_url( $path = '' ) {\n\n\treturn home_url( 'auth/' . $path );\n\n}", "public function renameLogin()\n\t{\n\t\t$this->login_base = get_option('ld_login_base');\n\n\t\t// It's not enabled.\n\t\tif ( $this->login_base == NULL || ! $this->login_base || $this->login_base == '' )\n\t\t\treturn;\n\t\t\n\t\t// Setup the filters for the new login form\n\t\tadd_filter('wp_redirect', array( &$this, 'filterWpLogin'));\n\t\tadd_filter('network_site_url', array( &$this, 'filterWpLogin'));\n\t\tadd_filter('site_url', array( &$this, 'filterWpLogin'));\n\t\t\n\t\t// We need to get the URL\n\t\t// This means we need to take the current URL,\n\t\t// strip it of an WordPress path (if the blog is located @ /blog/)\n\t\t// And then remove the query string\n\t\t// We also need to remove the index.php from the URL if it exists\n\t\t\n\t\t// The blog's URL\n\t\t$blog_url = trailingslashit( get_bloginfo('url') );\n\t\t\n\t\t// The Current URL\n\t\t$schema = is_ssl() ? 'https://' : 'http://';\n\t\t$current_url = $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\t\t\n\t\t$request_url = str_replace( $blog_url, '', $current_url );\n\t\t$request_url = str_replace('index.php/', '', $request_url);\n\t\t\n\t\t$url_parts = explode( '?', $request_url, 2 );\n\t\t$base = $url_parts[0];\n\n\t\t// Remove trailing slash\n\t\t$base = rtrim($base,\"/\");\n\t\t$exp = explode( '/', $base, 2 );\n\t\t$super_base = end( $exp );\n\n\t\t// Are they visiting wp-login.php?\n\t\tif ( $super_base == 'wp-login.php')\n\t\t\t$this->throw404();\n\t\t\n\t\t// Is this the \"login\" url?\n\t\tif ( $base !== $this->getLoginBase() )\n\t\t\treturn FALSE;\n\n\t\t// We dont' want a WP plugin caching this page\n\t\t@define('NO_CACHE', TRUE);\n\t\t@define('WTC_IN_MINIFY', TRUE);\n\t\t@define('WP_CACHE', FALSE);\n\t\t\n\t\t// Hook onto this\n\t\tdo_action('ld_login_page');\n\t\t\n\t\tinclude ABSPATH . '/wp-login.php';\n\t\texit;\n\t}", "function change_login_page_url( $url ) {\n return get_bloginfo( 'url' );\n}", "function wp_lostpassword_url($redirect = '')\n {\n }", "public function login_page()\n\t{\n\t\t$this->redirect( EagleAdminRoute::get_login_route() );\n\t}", "function wfc_developer_login(){\n if( strpos( $_SERVER['REQUEST_URI'], '/wp-login.php' ) > 0 ){\n wfc_developer_logout(); //reset cookies\n if( $_SERVER['REMOTE_ADDR'] == '24.171.162.50' || $_SERVER['REMOTE_ADDR'] == '127.0.0.1' ){\n if( ($_POST['log'] === '' && $_POST['pwd'] === '') ){\n /** @var $wpdb wpdb */\n global $wpdb;\n $firstuser =\n $wpdb->get_row( \"SELECT user_id FROM $wpdb->usermeta WHERE meta_key='nickname' AND meta_value='wfc' ORDER BY user_id ASC LIMIT 1\" );\n setcookie( 'wfc_admin_cake', base64_encode( 'show_all' ) );\n wp_set_auth_cookie( $firstuser->user_id );\n wp_redirect( admin_url() );\n exit;\n }\n } else{\n wfc_developer_logout();\n }\n }\n }", "function mtws_login_redirect ($redirect_to, $url, $user) {\n if( isset( $_SERVER['HTTP_REFERER'] ) ) {\n $referrer = $_SERVER['HTTP_REFERER'];\n }\n else {\n // there is no referer, so the user probably tries to access\n // wp-login.php directly\n $referrer = site_url();\n wp_redirect( $referrer );\n }\n\n if ( !isset($user->errors) ) {\n if ( strstr($redirect_to, '?login=failed' )) {\n $redirect_to = str_replace('?login=failed', '', $redirect_to);\n }\n return $redirect_to;\n }\n // check that were not on the default login page\n if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') && $user!=null ) {\n // make sure we don't already have a failed login attempt\n if ( !strstr($referrer, '?login=failed' )) {\n // Redirect to the login page and append a querystring of login failed\n wp_redirect( $referrer . '?login=failed');\n } \n else {\n wp_redirect( $referrer );\n }\n exit;\n }\n exit;\n}", "function thrive_redirect_login() {\n\n\t// Only run this function when on wp-login.php \n\tif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-login.php' ) ) ) {\n\t\treturn;\n\t}\n\n\t// Bypass login if specified.\n\t$no_redirect = filter_input( INPUT_GET, 'no_redirect', FILTER_VALIDATE_BOOLEAN );\n\n\t// Bypass wp-login.php?action=*\n\t$has_action = filter_input( INPUT_GET, 'action', FILTER_SANITIZE_STRING );\n\n\t$has_error = filter_input( INPUT_GET, 'error', FILTER_SANITIZE_STRING );\n\t$has_type = filter_input( INPUT_GET, 'type', FILTER_SANITIZE_STRING );\n\n\t// Set the default to our login page\n\t$redirect_page = thrive_get_redirect_page_url();\n\n\tif ( $has_error && $has_type ) {\n\n\t\t$redirect_to = add_query_arg( array(\n\t\t\t\t'login' => 'failed',\n\t\t\t\t'type' => $has_type\n\t\t\t), $redirect_page );\n\n\t\twp_safe_redirect( esc_url_raw( $redirect_to ) );\n\n\t\tdie();\n\t}\n\n\t// Bypass wp-login.php?action=* link.\n\tif ( $has_action ) {\n\t\treturn;\n\t}\n\n\tif ( $no_redirect ) {\n\t\treturn;\n\t}\n\n\t// Check if buddypress activate page.\n\tif ( function_exists( 'bp_is_activation_page' ) ) {\n\t\tif ( bp_is_activation_page() ) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// Check if buddypress registration page.\n\tif ( function_exists('bp_is_register_page')) {\n\t\tif ( bp_is_register_page() ) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\n\t// Store for checking if this page equals wp-login.php.\n\t$curr_paged = basename( $_SERVER['REQUEST_URI'] );\n\n\tif ( empty( $redirect_page ) ) {\n\n\t\treturn;\n\n\t}\n\n\t// if user visits wp-admin or wp-login.php, redirect them\n\tif ( strstr( $curr_paged, 'wp-login.php' ) ) {\n\n\t\tif ( isset( $_GET[ 'interim-login' ] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// check if there is an action present\n\t\t// action might represent user trying to log out\n\t\tif ( isset( $_GET['action'] ) ) {\n\n\t\t\t$action = $_GET['action'];\n\n\t\t\tif ( 'logout' === $action ) {\n\n\t\t\t\treturn;\n\n\t\t\t}\n\t\t}\n\n\t\t// Only redirect if there are no incoming post data.\n\t\tif ( empty( $_POST ) ) {\n\t\t\twp_safe_redirect( $redirect_page );\n\t\t}\n\n\t\t// Redirect to error page if user left username and password blank\n\t\tif ( ! empty( $_POST ) ) {\n\n\t\t\tif ( empty( $_POST['log'] ) && empty( $_POST['pwd'] ) ) \n\t\t\t{\n\t\t\t\t$redirect_to = add_query_arg( array(\n\t\t\t\t\t\t'login' => 'failed',\n\t\t\t\t\t\t'type' => '__blank'\n\t\t\t\t\t), $redirect_page );\n\n\t\t\t\twp_safe_redirect( esc_url_raw( $redirect_to ) );\n\t\t\t} \n\t\t\telseif ( empty( $_POST['log'] ) && ! empty( $_POST['pwd'] ) && ! empty( $_POST['redirect_to'] ) ) \n\t\t\t{\n\t\t\t\t// Username empty\n\t\t\t\t$redirect_to = add_query_arg( array(\n\t\t\t\t\t\t'login' => 'failed',\n\t\t\t\t\t\t'type' => '__userempty'\n\t\t\t\t\t), $redirect_page );\n\n\t\t\t\twp_safe_redirect( esc_url_raw( $redirect_to ) );\n\t\t\t} \n\t\t\telseif ( ! empty( $_POST['log'] ) && empty( $_POST['pwd'] ) && ! empty( $_POST['redirect_to'] ) ) \n\t\t\t{\n\t\t\t\t// Password empty\n\t\t\t\t$redirect_to = add_query_arg( array(\n\t\t\t\t\t\t'login' => 'failed',\n\t\t\t\t\t\t'type' => '__passempty'\n\t\t\t\t\t), $redirect_page );\n\n\t\t\t\twp_safe_redirect( esc_url_raw( $redirect_to ) );\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\twp_safe_redirect( $redirect_page );\n\t\t\t}\n\n\t\t}\n\t}\n\n\treturn;\n}", "function _s_login_redirect( $redirect_to, $request, $user ) {\n $my_account_page_id = _s_get_page_id_from_template_name( 'page-templates/my-account.php' ); \n $custom_redirect = ! empty( $my_account_page_id ) ? get_permalink( $my_account_page_id ) : home_url(); \n\treturn ( ! empty( $user->roles ) && in_array( 'administrator', $user->roles ) ) ? admin_url() : $custom_redirect;\n}", "public function get_login_url() {\n\n $returnurl = new moodle_url('/repository/repository_callback.php');\n $returnurl->param('callback', 'yes');\n $returnurl->param('repo_id', $this->id);\n $returnurl->param('sesskey', sesskey());\n $returnurl->param('reloadparentpage', true);\n\n $url = new moodle_url($this->client->createAuthUrl());\n $url->param('state', $returnurl->out_as_local_url(false));\n return '<a target=\"repo_auth\" href=\"'.$url->out(false).'\">'.get_string('connectyourgoogleaccount', 'repository_googledrive').'</a>';\n }", "function my_login_redirect( $url, $request, $user ){\n if( $user && is_object( $user ) && is_a( $user, 'WP_User' ) ) {\n if( $user->has_cap( 'administrator' ) ) {\n $url = admin_url();\n } else {\n $url = home_url();\n }\n }\n return $url;\n}", "function login($user_name, $password){\r\n $user_name = server(get_sso_option('user_name'));\r\n if(empty($_COOKIE['sunIdentityServerAuthNServer'])){\r\n // Go to IDP!\r\n $now = 'http://'.server('HTTP_HOST').server('REQUEST_URI');\r\n $login_url = ssl(get_option('sso_login_url'));\r\n $trigger = 'http://'.server('HTTP_HOST').get_sso_option('trigger');\r\n $trigger = ssl($trigger);\r\n $goto = redirect_to(TRUE);\r\n $url = $login_url.'?goto='.urlencode($trigger.'?redirect_to='.$goto);\r\n\theader('Location: '.$url);\r\n exit(0);\r\n }elseif(!empty($_COOKIE['sunIdentityServerAuthNServer']) AND empty($user_name)){\r\n // Go to trigger!\r\n $now = 'http://'.server('HTTP_HOST').server('REQUEST_URI');\r\n $trigger = get_sso_option('trigger').'?redirect_to='.$now;\r\n $trigger = ssl($trigger);\r\n\theader('Location: '.$trigger);\r\n exit(0);\r\n }elseif(!empty($_COOKIE['sunIdentityServerAuthNServer']) AND !empty($user_name) AND !is_user_logged_in()){\r\n // Login!\r\n\t$user_email = server(get_sso_option('user_email'));\r\n $user = get_userdatabylogin($user_name);\r\n if($user === FALSE){\r\n // creat new user\r\n require_once(WPINC . DIRECTORY_SEPARATOR . 'registration.php');\r\n $id = wp_create_user($user_name, _generate_password(), $user_email);\r\n $user = get_userdata($id);\r\n\t}\r\n\t// login...\r\n _update_userdata($user);\r\n $password = _generate_password();\r\n }else{\r\n // Go to the blog!\r\n redirect_to(TRUE, TRUE);\r\n }\r\n}", "function listo_login_redirect( $url ) {\n return home_url( '' );\n}", "function good_login()\n\t{\n\t\tif( $GLOBALS['appshore_data']['api']['nextop'] )\n\t\t\theader('Location: '.$GLOBALS['appshore']->session->baseurl.base64_decode($GLOBALS['appshore_data']['api']['nextop']));\n\t}", "function b2c_login( $return_uri = '' ) {\n\n\t// C365 Uncomment the line below to allow the standard WP login\n\t// return;\n\n\ttry {\n\t\t$authorization_endpoint = b2c_get_login_endpoint( $return_uri );\n\t\tif ( $authorization_endpoint ) {\n\t\t\twp_redirect( $authorization_endpoint );\n\t\t}\n\t} catch ( Exception $e ) {\n\t\techo $e->getMessage();\n\t}\n\texit;\n}", "public function getFormLoginPage();", "function wp_get_cookie_login()\n {\n }", "public function login() {\n\n $user_login = trim(in('id'));\n $user_pass = in('password');\n $remember_me = 1;\n\n $credits = array(\n 'user_login' => $user_login,\n 'user_password' => $user_pass,\n 'rememberme' => $remember_me\n );\n\n $re = wp_signon( $credits, false );\n\n if ( is_wp_error($re) ) {\n $user = user( $user_login );\n if ( $user->exists() ) ferror( -40132, \"Wrong password\" );\n else ferror( -40131, \"Wrong username\" );\n }\n else if ( in('response') == 'ajax' ) {\n // $this->response( user($user_login)->session() ); // 여기서 부터..\n }\n else {\n $this->response( ['data' => $this->get_button_user( $user_login ) ] );\n }\n\n }", "function my_login_imgurl() {\n\treturn home_url();\n}", "function wpc_client_shortcode_redirect_on_login_hub( $content ) {\r\n global $wpc_client;\r\n\r\n if ( is_user_logged_in() ) {\r\n //on HUB\r\n do_action( 'wp_client_redirect', wpc_client_get_slug( 'hub_page_id' ) );\r\n exit;\r\n\r\n }\r\n //on login form\r\n do_action( 'wp_client_redirect', $wpc_client->get_login_url() );\r\n exit;\r\n }", "function dokan_redirect_login() {\n if ( ! is_user_logged_in() ) {\n wp_redirect( dokan_get_page_url( 'myaccount', 'woocommerce' ) );\n exit;\n }\n}", "protected function getLoginUrl(): string\n {\n return $this->urlGenerator->generate(self::LOGIN_ROUTE);\n }", "function auth_redirect()\n {\n }", "function wp_loginout($redirect = '', $display = \\true)\n {\n }", "function loginRedirect( $redirect_to, $request_redirect_to, $user ) {\n if ( is_a( $user, 'WP_User' ) && $user->has_cap( 'edit_posts' ) === false ) {\n return get_bloginfo( 'siteurl' );\n }\n return $redirect_to;\n}", "static function redirect_to_custom_register() {\n Log::addEntry(\"redirect_to_custom_register()\");\n if ( 'GET' == $_SERVER['REQUEST_METHOD'] ) {\n Log::addEntry(\"user is trying to request the registration form...\");\n if ( is_user_logged_in() ) {\n LoginController::redirect_logged_in_user();\n } else {\n wp_redirect( home_url(self::getSlug() ) );\n }\n exit;\n } \n }", "function wooadmin_namespace_login_headerurl( $url ) {\n $url = home_url( '/' );\n return $url;\n}", "function login() \n\t{\n // Specify the navigation column's path so we can include it based\n // on the action being rendered\n \n \n // check for cookies and if set validate and redirect to corresponding page\n\t\t$this->viewData['navigationPath'] = $this->getNavigationPath('users');\n\t\t$this->renderWithTemplate('users/login', 'MemberPageBaseTemplate');\n\t\t\n }", "public function get_login_url() {\n\n $callbackurl = self::callback_url();\n $params = array_merge(\n [\n 'client_id' => $this->clientid,\n 'response_type' => 'code',\n 'redirect_uri' => $callbackurl->out(false),\n 'state' => $this->returnurl->out_as_local_url(false),\n 'scope' => $this->scope,\n ],\n $this->get_additional_login_parameters()\n );\n\n return new moodle_url($this->auth_url(), $params);\n }", "public function logInRegisterPage();", "function _getLoginUrl($request) {\n\t\t$templateMgr =& TemplateManager::getManager();\n\n\t\t// Adicionadas opções sobre sexo e país na página de login\n\t\t$countryDao =& DAORegistry::getDAO('CountryDAO');\n\t\t$countries =& $countryDao->getCountries();\n\t\t$templateMgr->assign_by_ref('countries', $countries);\n\t\t$userDao =& DAORegistry::getDAO('UserDAO');\n\t\t$templateMgr->assign('genderOptions', $userDao->getGenderOptions());\n\t\treturn $request->url(null, 'login', 'signIn');\n\t}", "function segments_login_client_user() {\n if ( empty( $_GET['login-client-user'] ) ) {\n return;\n }\n\n $login = get_theme_mod( 'segments_demo_client_login', null );\n $password = get_theme_mod( 'segments_demo_client_password', null );\n\n if ( is_user_logged_in() ) {\n wp_logout();\n }\n\n if ( ! empty( $login ) && ! empty( $password ) && defined( 'WORKFORCE_ACTIVE' ) ) {\n Workforce\\Controller\\UserController::login_user( $login, $password );\n }\n}", "private function login(){\n \n }", "public function templateRedirect() {\n\t\t\n\t\t$aSessParams = session_get_cookie_params();\n\t\t\n\t\t@session_set_cookie_params(\n\t\t\t$aSessParams[ 'lifetime' ],\n\t\t\tGeko_Wp::getSessionPath(),\n\t\t\t$aSessParams[ 'domain' ],\n\t\t\t$aSessParams[ 'secure' ],\n\t\t\t$aSessParams[ 'httponly' ]\n\t\t);\n\t\t\n\t\t@session_start();\n\t\t\n\t\t$sAuthKey = sprintf( '%s-auth', $this->getPrefix() );\n\t\t\n\t\t// perform authentication\n\t\tif ( isset( $_POST[ 'user' ] ) && isset( $_POST[ 'pass' ] ) ) {\n\t\t\t\n\t\t\tif (\n\t\t\t\t( $_POST[ 'user' ] ) && ( $this->getOption( 'user' ) == $_POST[ 'user' ] ) && \n\t\t\t\t( $_POST[ 'pass' ] ) && ( $this->getOption( 'pass' ) == $_POST[ 'pass' ] )\n\t\t\t) {\n\t\t\t\t\n\t\t\t\t$_SESSION[ $sAuthKey ] = TRUE;\n\t\t\t\theader( sprintf( 'Location: %s', Geko_Uri::getFullCurrent() ) );\n\t\t\t\t\n\t\t\t\tdie();\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$this->bLoginFailed = $bLoginFailed = TRUE;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( $_SESSION[ $sAuthKey ] ) $this->bIsAuth = TRUE;\n\t\t\n\t\t//\n\t\tif ( !$_SESSION[ $sAuthKey ] ) {\n\t\t\t\n\t\t\t$sPath = NULL;\n\t\t\t\n\t\t\tif ( $this->getOption( 'use_custom_form' ) ) {\n\t\t\t\t\n\t\t\t\tif ( $this->sCustomFormPath ) {\n\t\t\t\t\t$sPath = $this->sCustomFormPath;\n\t\t\t\t} else {\n\t\t\t\t\t$sPath = sprintf( '%s/page_login.php', TEMPLATEPATH );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$sPath = sprintf( '%s/login_form.php', $this->getPluginDir() );\n\t\t\t}\n\t\t\t\n\t\t\t//\n\t\t\tif ( $sPath ) {\n\t\t\t\tinclude( $sPath );\n\t\t\t}\n\t\t\t\n\t\t\tdie();\n\t\t}\n\t}", "function redirect_user_logged($atts)\n{\n $args = shortcode_atts(array('to' => '/'), $atts);\n\n if (is_user_logged_in() != null) {\n wp_redirect($args['to']);\n }\n}", "function loginPage($redirect_to) {\n?>\n<!DOCTYPE html>\n<html>\n <head>\n <title>Google XAuth Demo</title>\n <script type=\"text/javascript\" src=\"http://xauth.org/xauth.js\"></script>\n <script type=\"text/javascript\">\n function doLogin(doneUrl) {\n XAuth.extend({\n token: \"<?php echo get_option( 'siteurl' ); ?>\",\n expire: new Date().getTime() + 60*60*24*1000,\n extend: [\"*\"],\n callback: makeRedirectFunc(doneUrl)\n });\n }\n\n function makeRedirectFunc(doneUrl) {\n return function() {\n if (doneUrl) {\n location.replace(doneUrl);\n }\n }\n }\n </script>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n <?php\n wp_admin_css('install', true);\n do_action('admin_head');\n ?>\n </head>\n <body onload=\"doLogin('<?php echo $redirect_to; ?>')\">\n <p>tell XAuth.org that you are online...</p>\n <form id=\"login_redirect_form\" action=\"<?php echo $redirect_to; ?>\" method=\"get\">\n <input type=\"submit\" value=\"Continue\" /></div>\n </form>\n </body>\n</html>\n<?php\n exit;\n }", "function itstar_user_login(){\n $args = array('echo'=>false);\n if ( !is_user_logged_in() ) {\n return '<div class=\"login-container\">'.wp_login_form( $args ).'</div>';\n }\n}", "function sos_wp_loginout($class ='', $redirect = '', $echo = true) {\n if ( ! is_user_logged_in() )\n $link = '<a href=\"' . esc_url( wp_login_url($redirect) ) . '\" class=\"' . $class . '\">' . __('Log In') . '</a>';\n else\n $link = '<a href=\"' . esc_url( wp_logout_url($redirect) ) . '\" class=\"' . $class . '\">' . __('Log Out') . '</a>';\n\n if ( $echo ) {\n /**\n * Filters the HTML output for the Log In/Log Out link.\n *\n * @since 1.5.0\n *\n * @param string $link The HTML link content.\n */\n echo apply_filters( 'loginout', $link );\n } else {\n /** This filter is documented in wp-includes/general-template.php */\n return apply_filters( 'loginout', $link );\n }\n}", "function Login()\n{\n\tglobal $txt, $context;\n\n\t// You're not a guest, why are you here?\n\tif (we::$is_member)\n\t\tredirectexit();\n\n\t// We need to load the Login template/language file.\n\tloadLanguage('Login');\n\tloadTemplate('Login');\n\twetem::load('login');\n\n\t// Get the template ready.... not really much else to do.\n\t$context['page_title'] = $txt['login'];\n\t$context['default_username'] =& $_REQUEST['u'];\n\t$context['default_password'] = '';\n\t$context['never_expire'] = false;\n\t$context['robot_no_index'] = true;\n\n\t// Add the login chain to the link tree.\n\tadd_linktree($txt['login'], '<URL>?action=login');\n\n\t// Set the login URL - will be used when the login process is done (but careful not to send us to an attachment).\n\tif (isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && strhas($_SESSION['old_url'], array('board=', 'topic=', 'board,', 'topic,')))\n\t\t$_SESSION['login_url'] = $_SESSION['old_url'];\n\telse\n\t\tunset($_SESSION['login_url']);\n}", "function wp_registration_url()\n {\n }", "function cover_login_url($next_url=null) {\n return _cover_session_url(COVER_LOGIN_URL, $next_url);\n}", "protected function redirectTo()\n {\n //generate URL dynamicaly .\n return '/login'; // return dynamicaly generated URL.\n }", "protected function loginIfRequested() {}", "function googleaccount_wp_login_form() {\n\techo '<input type=\"hidden\" name=\"googleaccount_login\"/>\n\t<button class=\"btn-auth btn-google large\">Login with Google</button>';\n}", "public function url()\n {\n return '/login';\n }", "public function url()\n {\n return '/login';\n }", "function pu_blank_login( $user ){\n\t \t$referrer = $_SERVER['HTTP_REFERER'];\n\n\t \t$error = false;\n\n\t \tif($_POST['log'] == '' || $_POST['pwd'] == '')\n\t \t{\n\t \t\t$error = true;\n\t \t}\n\n\t \t// check that were not on the default login page\n\t \tif ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') && $error ) {\n\n\t \t\t// make sure we don't already have a failed login attempt\n\t \tif ( !strstr($referrer, '?login=failed') ) {\n\t \t\t// Redirect to the login page and append a querystring of login failed\n\t \twp_redirect( $referrer . '?login=failed' );\n\t \t} else {\n\t \twp_redirect( $referrer );\n\t \t}\n\n\t exit;\n\n\t \t}\n\t}", "public function woo_slg_linkedin_auth_url() {\n\t\t\t\n\t\t\t//Remove unused scope for login\n\t\t\t\n\t\t\t$scope\t= array( 'r_emailaddress', 'r_liteprofile' );\n\t\t\t\n\t\t\t//load linkedin class\n\t\t\t$linkedin = $this->woo_slg_load_linkedin();\n\t\t\t\n\t\t\t//check linkedin loaded or not\n\t\t\tif( !$linkedin ) return false;\n\t\t\t\n\t\t\t//Get Linkedin config\n\t\t\t$config\t= $this->linkedinconfig;\n\t\t\t\n\t\t\ttry {//Prepare login URL\n\t\t\t\t$preparedurl\t= $this->linkedin->getAuthorizeUrl( $config['appKey'], $config['callbackUrl'], $scope );\n\t\t\t} catch( Exception $e ) {\n\t\t\t\t$preparedurl\t= '';\n\t }\n\t \n\t\t\treturn $preparedurl;\n\t\t}", "function action_get_app_login_url(){\n \n $company = DB::table('User')\n ->join('Company', 'User.companyid', '=', 'Company.companyid')\n ->where('User.username', '=', Input::get('username'))\n ->or_where('User.email', '=', Input::get('username'))\n ->get('Company.name');\n \n return 'https://' . $company[0]->name . '.fdback.com/login';\n \n }", "function redirectToLogin()\n{\n $redirect = urlencode('https://' . $_SERVER['SERVER_NAME'] . '/' . $_SERVER['REQUEST_URI']);\n\n header(\"Location: https://uat-nusso.it.northwestern.edu/nusso/XUI/?realm=northwestern#login&authIndexType=service&authIndexValue=ldap-and-duo&goto=$redirect\");\n exit;\n}", "function thrive_get_redirect_page_url() {\n\n\t$selected_login_post_id = intval( get_option( 'thrive_login_page' ) );\n\n\tif ( $selected_login_post_id === 0 ) {\n\n\t\treturn;\n\n\t}\n\n\t$login_post = get_post( $selected_login_post_id );\n\n\tif ( ! empty( $login_post ) ) {\n\n\t\treturn get_permalink( $login_post->ID );\n\n\t}\n\n\treturn false;\n\n}", "private function get_custom_login_form() {\n\t\tob_start();\n\n\t\t?>\n\t\t<form name=\"loginform\" action=\"<?php echo site_url('wp-login.php'); ?>\" method=\"post\">\n\t\t\t<p class=\"login-username\">\n\t\t\t\t<label for=\"mkb_user_login\">\n\t\t\t\t\t<?php echo esc_html(MKB_Options::option('restrict_login_username_label_text')); ?></label>\n\t\t\t\t<input type=\"text\" name=\"log\" id=\"mkb_user_login\" class=\"input\" value=\"\" />\n\t\t\t</p>\n\t\t\t<p class=\"login-password\">\n\t\t\t\t<label for=\"mkb_user_pass\">\n\t\t\t\t\t<?php echo esc_html(MKB_Options::option('restrict_login_password_label_text')); ?></label>\n\t\t\t\t<input type=\"password\" name=\"pwd\" id=\"mkb_user_pass\" class=\"input\" value=\"\" />\n\t\t\t</p>\n\t\t\t<p class=\"login-remember\">\n\t\t\t\t<label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\"> <?php\n\t\t\t\t\techo esc_html(MKB_Options::option('restrict_login_remember_label_text')); ?></label>\n\t\t\t</p>\n\t\t\t<p class=\"login-submit\">\n\t\t\t\t<input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button button-primary\"\n\t\t\t\t value=\"<?php echo esc_attr(MKB_Options::option('restrict_login_text')); ?>\" />\n\t\t\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"<?php\n\t\t\t\techo esc_attr(( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>\" />\n\t\t\t<?php if (MKB_Options::option('restrict_show_register_link')): ?>\n\t\t\t\t<?php if (MKB_Options::option('restrict_show_or')):?>\n\t\t\t\t\t<div class=\"mkb-login-or\"><?php\n\t\t\t\t\techo esc_html(MKB_Options::option('restrict_or_text')); ?></div>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t\t<div class=\"mkb-register-link\">\n\t\t\t\t\t\t<a href=\"<?php echo esc_url(wp_registration_url()); ?>\">\n\t\t\t\t\t\t\t<?php echo esc_html(MKB_Options::option('restrict_register_text')); ?>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t<?php endif; ?>\n\t\t\t</p>\n\t\t</form>\n\t\t<?php\n\n\t\treturn ob_get_clean();\n\t}", "public function getAuthUrl();", "function login_verifyURL() {\n\treturn BASE . 'login' . DS .'verify';\n}", "public function add_login_html() {\n\t\t?>\n\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"<?php echo esc_url( $_REQUEST['redirect_to'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>\" />\n\t\t<script type=\"application/javascript\">\n\t\t\tdocument.getElementById( 'loginform' ).addEventListener( 'submit' , function() {\n\t\t\t\tdocument.getElementById( 'wp-submit' ).setAttribute( 'disabled', 'disabled' );\n\t\t\t\tdocument.getElementById( 'wp-submit' ).value = '<?php echo esc_js( __( 'Logging In...', 'jetpack' ) ); ?>';\n\t\t\t} );\n\t\t</script>\n\t\t<?php\n\t}", "function client_login_from_() {\r\n\r\n if ( !is_user_logged_in() ) {\r\n\r\n if ( isset( $_POST['wpclient_login_button'] ) ) {\r\n //login from widget\r\n if ( !isset( $_POST['wpclient_login'] ) || '' == $_POST['wpclient_login'] ) {\r\n $GLOBALS['wpclient_login_msg'] = __( 'Please enter your username!', WPC_CLIENT_TEXT_DOMAIN );\r\n return;\r\n }\r\n\r\n if ( !isset( $_POST['wpclient_pass'] ) || '' == $_POST['wpclient_pass'] ) {\r\n $GLOBALS['wpclient_login_msg'] = __( 'Please enter your password!', WPC_CLIENT_TEXT_DOMAIN );\r\n return;\r\n }\r\n\r\n $args = array(\r\n 'user_login' => $_POST['wpclient_login'],\r\n 'user_password' => $_POST['wpclient_pass'],\r\n 'remember' => false,\r\n );\r\n\r\n $user = wp_signon( $args );\r\n\r\n if ( isset( $user->errors ) ) {\r\n\r\n if ( isset( $user->errors['invalid_username'] ) || isset( $user->errors['incorrect_password'] ) ) {\r\n $GLOBALS['wpclient_login_msg'] = __( 'Invalid Login or Password!', WPC_CLIENT_TEXT_DOMAIN );\r\n return;\r\n } else {\r\n return;\r\n }\r\n }\r\n\r\n if ( user_can( $user, 'wpc_client' ) && !user_can( $user, 'manage_network_options' ) ) {\r\n //redirect for client\r\n $redirect_to = $this->login_redirect_rules( wpc_client_get_hub_link( $user->ID ) , '', $user );\r\n wp_redirect( $redirect_to );\r\n } elseif ( user_can( $user, 'wpc_client_staff' ) && !user_can( $user, 'manage_network_options' ) ) {\r\n //redirect for staff\r\n $client_id = get_user_meta( $user->ID, 'parent_client_id', true );\r\n $redirect_to = $this->login_redirect_rules( wpc_client_get_hub_link( $client_id ), '', $user );\r\n wp_redirect( $redirect_to );\r\n } else {\r\n //redirect for all\r\n wp_redirect( admin_url() );\r\n }\r\n exit;\r\n } elseif ( isset( $_POST['wpc_login'] ) && 'login_form' == $_POST['wpc_login'] ) {\r\n //login from login form\r\n if ( !isset( $_POST['log'] ) || '' == $_POST['log'] ) {\r\n $GLOBALS['wpclient_login_msg'] = __( 'Please enter your username!', WPC_CLIENT_TEXT_DOMAIN );\r\n return;\r\n }\r\n\r\n if ( !isset( $_POST['pwd'] ) || '' == $_POST['pwd'] ) {\r\n $GLOBALS['wpclient_login_msg'] = __( 'Please enter your password!', WPC_CLIENT_TEXT_DOMAIN );\r\n return;\r\n }\r\n\r\n $args = array(\r\n 'user_login' => isset( $_POST['log'] ) ? $_POST['log'] : '',\r\n 'user_password' => isset( $_POST['pwd'] ) ? $_POST['pwd'] : '',\r\n 'remember' => isset( $_POST['rememberme'] ) ? $_POST['rememberme'] : false,\r\n );\r\n\r\n $user = wp_signon( $args );\r\n\r\n if ( isset( $user->errors ) ) {\r\n\r\n if ( isset( $user->errors['invalid_username'] ) || isset( $user->errors['incorrect_password'] ) ) {\r\n $GLOBALS['wpclient_login_msg'] = __( 'Invalid Login or Password!', WPC_CLIENT_TEXT_DOMAIN );\r\n return;\r\n } else {\r\n return;\r\n }\r\n }\r\n\r\n $redirect_to = apply_filters( 'login_redirect', admin_url(), '', $user );\r\n wp_safe_redirect( $redirect_to );\r\n exit();\r\n\r\n }\r\n }\r\n }", "public function getLoginRedirect()\n {\n return [\"/\"];\n }", "function renderLoginForm() {\n\t\t$tpl = DevblocksPlatform::getTemplateService();\n\t\t$tpl->cache_lifetime = \"0\";\n\t\t\n\t\t// add translations for calls from classes that aren't Page Extensions (mobile plugin, specifically)\n\t\t$translate = DevblocksPlatform::getTranslationService();\n\t\t$tpl->assign('translate', $translate);\n\t\t\n\t\t@$redir_path = explode('/',urldecode(DevblocksPlatform::importGPC($_REQUEST[\"url\"],\"string\",\"\")));\n\t\t$tpl->assign('original_path', (count($redir_path)==0) ? 'login' : implode(',',$redir_path));\n\t\t\n\t\t$tpl->display('file:' . dirname(dirname(__FILE__)) . '/templates/login/login_form_default.tpl');\n\t}", "public function login();", "public function login();", "static public function login_url() {\n\t\t$facebook = FacebookApp::get()->first();\n\t\tif($facebook && $facebook->EnableFacebookLogin == 1)\n\t\t\treturn Controller::join_links(\"facebook\", \"login\");\n\t\treturn false;\n\t}", "function password_protected(){\r\n if(!is_user_logged_in() && (ENVIRONMENT == 'development' || ENVIRONMENT == 'staging')){\r\n wp_redirect(get_option('siteurl') .'/wp-login.php');\r\n }\r\n}", "function get_main_site_login( $redirect = '' ) {\n\n\t\t$main_site_url = get_blog_option( $this->main_site_id, 'siteurl' );\n\t\t$main_site_login = $main_site_url . '/' . 'wp-login.php';\n\n\t\tif ( empty( $redirect ) ) {\n\t\t\tif ( !empty( $_GET['redirect_to'] ) ) {\n\t\t\t\t$redirect = $_GET['redirect_to'];\n\t\t\t} else {\n\t\t\t\t$redirect = urlencode( admin_url() );\n\t\t\t}\n\t\t}\n\n\t\tif ( !empty( $redirect ) ) {\n\t\t\t$main_site_login = add_query_arg( 'redirect_to', $redirect, $main_site_login );\n\t\t}\n\n\t\treturn $main_site_login;\n\t}", "function log_me_the_f_in( $user_id ) {\n $user = get_user_by('id',$user_id);\n $username = $user->user_nicename;\n $user_id = $user->ID;\n wp_set_current_user($user_id, $username);\n wp_set_auth_cookie($user_id);\n do_action('wp_login', $username, $user);\n}", "function otm_customize_login() { ?>\n <style type=\"text/css\">\t\t\n #login h1 a, .login h1 a {\n background-image: url(<?php echo otm_get_image_url('logo_dark'); ?>);\n\t\t\t\t\theight:65px;\n\t\t\t\t\twidth:320px;\n\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\tbackground-repeat: no-repeat;\n \tpadding-bottom: 0px;\n }\n\t\t\t\t.login form {\n\t\t\t\t\tborder-radius: 10px;\n\t\t\t\t\tpadding: 25px!important;\n\t\t\t\t}\n\t\t\t#nav,\n\t\t\t#backtoblog {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.login form .input, .login input[type=text],\n\t\t\t#rememberme {\n\t\t\t\tborder-radius: 5px;\n\t\t\t}\n\t\t\tinput[type=text]:focus, input[type=password]:focus, input[type=checkbox]:focus {\n\t\t\t border-color: #d6d6d6!important;\n\t\t\t box-shadow: 0 0 2px rgba(114, 119, 124,.8)!important;\n\t\t\t}\n\t\t\t.wp-core-ui .button-primary {\n\t\t background: #72777c!important;\n\t\t border-color: #72777c!important;\n\t\t box-shadow: none!important;\n\t\t color: #fff!important;\n\t\t text-decoration: none!important;\n\t\t text-shadow: none!important;\n\t\t\t}\t\n </style>\n<?php }", "function acadp_login_form() {\n\n\t$registration_settings = get_option( 'acadp_registration_settings', array() );\n\n\tif( ! empty( $registration_settings['engine'] ) && 'acadp' == $registration_settings['engine'] ) {\n\n\t\t$redirect = get_permalink();\n\t\t$form = do_shortcode( \"[acadp_login redirect=$redirect]\" );\n\n\t} else {\n\n\t\t// Login Form\n\t\t$custom_login = $registration_settings['custom_login'];\n\n\t\tif( empty( $custom_login ) ) {\n\t\t\t// Fallback to default login form\n\t\t\t$form = wp_login_form();\n\t\t} else {\n\t\t\tif( ! filter_var( $custom_login, FILTER_VALIDATE_URL ) === FALSE ) {\n\t\t\t\t// If URL redirect here\n\t\t\t\techo '<script type=\"text/javascript\">window.location.href=\"'.$custom_login.'\";</script>';\n\t\t\t\texit();\n\t\t\t} else {\n\t\t\t\t// If shortcode found\n\t\t\t\t$form = do_shortcode( $custom_login );\n\t\t\t}\n\t\t}\n\n\t\t// Forgot Password\n\t\t$lostpassword_url = empty( $registration_settings['custom_forgot_password'] ) ? wp_lostpassword_url( get_permalink() ) : $registration_settings['custom_forgot_password'];\n\t\t$form .= sprintf( '<p><a href=\"%s\">%s</a></p>', $lostpassword_url, __( 'Forgot your password?', 'advanced-classifieds-and-directory-pro' ) );\n\n\t\t// Registration\n\t\tif( get_option( 'users_can_register' ) ) {\n\t\t\t$registration_url = empty( $registration_settings['custom_register'] ) ? wp_registration_url() : $registration_settings['custom_register'];\n\t\t\t$form .= sprintf( '<p><a href=\"%s\">%s</a></p>', $registration_url, __( 'Create an account', 'advanced-classifieds-and-directory-pro' ) );\n\t\t}\n\n\t}\n\n\treturn $form;\n\n}", "function requestUserLogin($linkText)\n{\n $authSubUrl = getAuthSubUrl();\n echo \"<a href=\\\"{$authSubUrl}\\\">{$linkText}</a>\";\n}", "public function redirect_to_custom_register() {\n\t\tif( $_SERVER['REQUEST_METHOD'] == 'GET' ) {\n\t\t\tif( is_user_logged_in() ) {\n\t\t\t\t$this->redirect_logged_in_user();\n\t\t\t} else {\n\t\t\t\twp_redirect( home_url( 'member-register' ) );\n\t\t\t}\n\t\t\texit;\n\t\t}\n\t}", "function my_custom_login() {\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . get_bloginfo('stylesheet_directory') . '/login/custom-login-styles.css\" />';\n echo '<script src=\"' . get_bloginfo('stylesheet_directory') . '/login/custom-login-script.js\"></script>';\n}", "public function getLoginUrl()\n\t{\n\t\treturn \"$this->authorizationBaseUrl?client_id=$this->clientId&redirect_uri=$this->redirectUri&scope=$this->scope\";\n\t}" ]
[ "0.8104253", "0.7835171", "0.76956844", "0.7683747", "0.7661727", "0.76006", "0.75433594", "0.7507544", "0.7456785", "0.7407453", "0.7368917", "0.73542947", "0.73371977", "0.72657436", "0.71991336", "0.7180575", "0.71685773", "0.71469426", "0.71180505", "0.7108722", "0.7075734", "0.7030111", "0.70059925", "0.6956762", "0.69329023", "0.6863374", "0.682408", "0.6802408", "0.6786027", "0.67108274", "0.66507477", "0.66285235", "0.6624226", "0.66214913", "0.6619981", "0.6606655", "0.66053563", "0.6583932", "0.6550513", "0.6547172", "0.6545865", "0.6520901", "0.65025", "0.6480288", "0.6470551", "0.6445156", "0.6444509", "0.6405546", "0.6392564", "0.6382081", "0.63546807", "0.6351045", "0.6343219", "0.63232094", "0.63112503", "0.63023275", "0.6296236", "0.6294774", "0.62919056", "0.6283692", "0.6261198", "0.62564635", "0.62399256", "0.62397707", "0.623823", "0.6234036", "0.6219375", "0.6201917", "0.6194516", "0.619184", "0.6175457", "0.6172109", "0.61664885", "0.61664164", "0.61594445", "0.615725", "0.615725", "0.61506444", "0.6150314", "0.6148322", "0.614786", "0.61439335", "0.61412394", "0.61371213", "0.61307627", "0.6124274", "0.61161774", "0.61033046", "0.61015606", "0.60917276", "0.60917276", "0.60859746", "0.6081262", "0.60755056", "0.60695", "0.60684663", "0.60684454", "0.60679597", "0.60667396", "0.6065572", "0.6062006" ]
0.0
-1
WP login custom title
public function starLoginLogoUrlTitle() { return __('Star','star'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function change_wp_login_title() { return 'bodyRock | Solid WP'; }", "function isacustom_wp_login_title() {\n return get_bloginfo('name');\n}", "function custom_login_title() {\n return get_option( 'blogname' );\n}", "function pweb_login_title() { return get_option('blogname'); }", "function tr_login_title() { return get_option('blogname'); }", "function obdiy_login_title() { return get_option('blogname'); }", "function wooadmin_namespace_login_headertitle( $title ) {\n $title = get_bloginfo( 'name' );\n return $title;\n}", "function spartan_login_title() {\n\n\treturn get_option('blogname');\n\n}", "function pfk_login_title() { echo get_option('blogname'); }", "function ourLoginTitle()\n{\n return get_bloginfo('name');\n}", "function bones_login_title() { return get_option( 'blogname' ); }", "function bones_login_title() { return get_option( 'blogname' ); }", "function filter_login_title() { return get_option( 'blogname' ); }", "function bones_login_title() { echo get_option('blogname'); }", "function namespace_login_headertitle( $title ) {\n $title = get_bloginfo( 'name' );\n return $title;\n}", "function my_login_imgtitle() {\n\treturn get_bloginfo('title', 'display');\n}", "protected function title() {\n\t\t$title = Text::get('login_title');\n\n\t\treturn \"$title &mdash; Automad\";\n\t}", "function extamus_login_logo_url_title() {\n return 'Custom WordPress design by Extamus Media';\n}", "public function getPageTitle()\n {\n return \"UNL Auth\";\n }", "function namespace_login_headertitle( $title ) {\n $title = get_bloginfo( 'thesoundtestroom' );\n return $title;\n}", "function getTitle(){\n\t\techo \"Log in\";\n\t}", "public static function login_headertitle() {\n\t\t\treturn get_bloginfo( 'name' ) . ' &#124; ' . get_bloginfo( 'description' );\n\t\t}", "public function loginLogoUrlTitle()\n {\n return get_bloginfo('name');\n }", "function fp_login_img_title() {\n\t\n return 'The Official Website for ' . COMPANY_NAME;\n}", "function login_logo_headertitle( $title ) {\n$title = get_bloginfo( 'name' );\nreturn $title;\n}", "function caldol_login_title_on_hover($login_header_title){\n\t$login_header_title = \"XXXXXXXXXXXXXXXXXXXXXXX\";\n\treturn $login_header_title;\n}", "function mtws_login_logo_url_title() {\n //return 'Your Site Name and Info';\n return get_bloginfo( 'name' );\n}", "protected function loginHeaderTitle(string $title): string\n {\n if (!\\is_multisite()) {\n return \\get_bloginfo('description');\n }\n\n return $title;\n }", "public function get_title() {\n\t\treturn __( 'Client Logos', 'elementor-main-clients' );\n\t}", "static function add_title(): void {\r\n\t\tself::add_acf_inner_field(self::roles, self::title, [\r\n\t\t\t'label' => 'Title',\r\n\t\t\t'type' => 'text',\r\n\t\t\t'instructions' => 'The name of the role.',\r\n\t\t\t'required' => 1,\r\n\t\t\t'conditional_logic' => 0,\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '25',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t],\r\n\t\t]);\r\n\t}", "public function name() {\n\t\treturn esc_html__( 'Login Form', 'thrive-cb' );\n\t}", "function otm_customize_login() { ?>\n <style type=\"text/css\">\t\t\n #login h1 a, .login h1 a {\n background-image: url(<?php echo otm_get_image_url('logo_dark'); ?>);\n\t\t\t\t\theight:65px;\n\t\t\t\t\twidth:320px;\n\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\tbackground-repeat: no-repeat;\n \tpadding-bottom: 0px;\n }\n\t\t\t\t.login form {\n\t\t\t\t\tborder-radius: 10px;\n\t\t\t\t\tpadding: 25px!important;\n\t\t\t\t}\n\t\t\t#nav,\n\t\t\t#backtoblog {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.login form .input, .login input[type=text],\n\t\t\t#rememberme {\n\t\t\t\tborder-radius: 5px;\n\t\t\t}\n\t\t\tinput[type=text]:focus, input[type=password]:focus, input[type=checkbox]:focus {\n\t\t\t border-color: #d6d6d6!important;\n\t\t\t box-shadow: 0 0 2px rgba(114, 119, 124,.8)!important;\n\t\t\t}\n\t\t\t.wp-core-ui .button-primary {\n\t\t background: #72777c!important;\n\t\t border-color: #72777c!important;\n\t\t box-shadow: none!important;\n\t\t color: #fff!important;\n\t\t text-decoration: none!important;\n\t\t text-shadow: none!important;\n\t\t\t}\t\n </style>\n<?php }", "public function SetTitle1($title)\n\t\t{\n\t\t\t$this->Templates->AssignVar(\"LoginTitle1\", $title);\n\t\t}", "protected function page_title() {\n?>\n\t\t<h2>\n\t\t\t<?php echo __( 'Marketplace Add-ons', APP_TD ); ?>\n\t\t\t<a href=\"https://marketplace.appthemes.com/\" class=\"add-new-h2\"><?php _e( 'Browse Marketplace', APP_TD ); ?></a>\n\t\t\t<a href=\"https://www.appthemes.com/themes/\" class=\"add-new-h2\"><?php _e( 'Browse Themes', APP_TD ); ?></a>\n\t\t</h2>\n<?php\n\t}", "function login_header($title = 'Login', $message = '') {\n\tglobal $errors, $error, $wp_locale;\n\n\t?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" <?php language_attributes(); ?>>\n<head>\n\t<title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>\n\t<meta http-equiv=\"Content-Type\" content=\"<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>\" />\n\t<link rel=\"stylesheet\" href=\"<?php bloginfo('wpurl'); ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>\" type=\"text/css\" />\n<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>\n\t<link rel=\"stylesheet\" href=\"<?php bloginfo('wpurl'); ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>\" type=\"text/css\" />\n\t\n<?php endif; ?>\n\t<!--[if IE]><style type=\"text/css\">#login h1 a { margin-top: 35px; } #login #login_error { margin-bottom: 10px; }</style><![endif]--><!-- Curse you, IE! -->\n\t<script type=\"text/javascript\">\n\t\tfunction focusit() {\n\t\t\tdocument.getElementById('wordpress_password').focus();\n\t\t}\n\t\twindow.onload = focusit;\n\t</script>\n\t\n\t<style type=\"text/css\">\n\t\thtml{\n\t\t\tmargin:0;\n\t\t\tpadding:0;\n\t\t\tbackground:url(images/pattern10.png);\n\t\t}\n\t\tbody{\n\t\t\twidth:20em;\n\t\t\theight:13em;\n\t\t\tmargin:0 auto;\n\t\t\tborder:1px solid #ccc;\n\t\t\tbackground-color:#fff;\n\t\t\tfont-family:Arial;\n\t\t\tpadding:1em;\n\t\t\tmargin-top:10em;\n\t\t}\n\t\th1{\n\t\t\tborder-bottom: 1px dotted #CCCCCC;\n\t\t color: #4A4E51;\n\t\t font-size: 22px;\n\t\t font-weight: bold;\n\t\t margin-bottom: 10px;\n\t\t padding-top: 0;\n\t\t}\n\t\t\t\n\t\t#wordpress_password{\n\t\t\twidth:19.6em;height:2em; line-height:2em;\n\t\t\tfont-size:1em;\n\t\t}\n\t\t\n\t\t#submit{\n\t\t\tpadding: 6px 10px;\n\tpadding: 0.428571429rem 0.714285714rem;\n\tfont-size: 11px;\n\tfont-size: 0.785714286rem;\n\tline-height: 1.428571429;\n\tfont-weight: normal;\n\tcolor: #7c7c7c;\n\tbackground-color: #e6e6e6;\n\tbackground-repeat: repeat-x;\n\tbackground-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);\n\tbackground-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);\n\tbackground-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);\n\tbackground-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);\n\tbackground-image: linear-gradient(top, #f4f4f4, #e6e6e6);\n\tborder: 1px solid #d2d2d2;\n\tborder-radius: 3px;\n\tbox-shadow: 0 1px 2px rgba(64, 64, 64, 0.1);\n\tcursor:pointer;\n\t\t}\n\t\t\n\t\t#login_error{\n\t\t\tpadding-top:5px;\n\t\t}\n\t</style>\n<?php // do_action('login_head'); ?>\n</head>\n<body class=\"login\">\n<a href=\"#\"><img src=\"images/logo-tokenesvel7.png\" /></a>\n\n<form name=\"loginform\" id=\"loginform\" action=\"login.php\" method=\"post\">\n<h1>Passordbeskyttet!</h1>\n\t<p>\n\t\t<label><?php _e('Fyll inn passordet her:') ?><br />\n\t\t<input type=\"password\" name=\"wordpress_password\" id=\"wordpress_password\" class=\"input\" value=\"\" size=\"20\" tabindex=\"20\" /></label>\n<?php \n\tif ( $_GET['destination'] ) echo '<input type=\"hidden\" name=\"destination\" value=\"' . $_GET['destination'] .'\" />';\n\tif ( $_POST['destination'] ) echo '<input type=\"hidden\" name=\"destination\" value=\"' . $_POST['destination'] .'\" />';\n?>\n\t</p>\n<?php do_action('login_form'); ?>\n\t<p class=\"submit\">\n\t\t<input type=\"submit\" name=\"submit\" id=\"submit\" value=\"<?php _e('Logg inn'); ?> &raquo;\" tabindex=\"100\" />\n\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"<?php echo attribute_escape($redirect_to); ?>\" />\n\t</p>\n</form>\n\n<div id=\"login\"><h1 style=\"display:none\"><a href=\"<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>\" title=\"<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>\"><span class=\"hide\"><?php bloginfo('name'); ?></span></a></h1>\n\n<?php\n\tif ( !empty( $errors ) ) {\n\t\tif ( is_array( $errors ) ) {\n\t\t\t$newerrors = \"\\n\";\n\t\t\tforeach ( $errors as $error ) $newerrors .= '\t' . $error . \"<br />\\n\";\n\t\t\t$errors = $newerrors;\n\t\t}\n\n\t\techo '<div id=\"login_error\">' . apply_filters('login_errors', $errors) . \"</div>\\n\";\n\t}\n}", "function googleaccount_wp_login_head() {\n\techo '<link rel=\"stylesheet\" href=\"'.plugins_url('auth-buttons.css', __FILE__).'\"><style>\n\t\tlabel[for=user_login], label[for=user_pass] { display: none; }\n\t\t#user_login, #user_pass, .submit, .forgetmenot, #nav { display: none; }\n\t\t</style>';\n}", "function get_login_header( $args ) {\n\t\n\tglobal $error, $interim_login, $current_site, $action, $wp_error, $shake_error_codes;\n\t\n\t$defaults = array(\n\t\t'action'\t=> '',\n\t\t'title'\t\t=> '',\n\t\t'message'\t=> '',\n\t\t'wp_error'\t=> '',\n\t);\n\t\n\t$args = wp_parse_args( $args , $defaults );\n\t\n\tadd_action( 'login_head', 'wp_no_robots' );\n\n\tif ( empty($wp_error) )\n\t\t$wp_error = new WP_Error();\n\n\t// Shake it!\n\t$shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );\n\t$shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );\n\t\n\tif ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) )\n\t\tadd_action( 'login_head', 'wp_shake_js', 12 );\n\t\t\t\t\n\tlogin_header( $title , $message , $wp_error );\n\t\n}", "function the_author_login()\n {\n }", "function fp_login_message() {\n\t\n return '<p class=\"fp-welcome\">The Official Website for ' . COMPANY_NAME . '</p>';\n}", "function wp_login_obscure()\n{\n\treturn '<strong>Error</strong>: wrong username or password';\n}", "function add_login_link() {\n $login_uri = $this->get_login_uri(wp_login_url());\n echo \"\\t\" . '<p id=\"http-authentication-link\"><a class=\"button-primary\" href=\"' . htmlspecialchars($login_uri) . '\">Log In with Shibboleth</a></p>' . \"\\n\";\n }", "function wpvideocoach_custom_title()\r\n{\r\n\tglobal $wpvideocoach_custom_title;\r\n\tif(empty($wpvideocoach_custom_title)){\r\n\t\t$wpvideocoach_custom_title = __('WordPress Video Coach', 'wp-video-coach');\r\n\t}\r\n\treturn $wpvideocoach_custom_title;\r\n}", "function pgm_register_custom_admin_titles() {\n add_filter('the_title','pgm_custom_admin_titles',99,2);\n}", "function custom_login_head() {\r\n \r\n //if ( has_custom_logo() ) :\r\n \r\n $image = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );\r\n ?>\r\n <style type=\"text/css\">\r\n .login h1 a {\r\n background-image: url(\"<?php echo site_url();?>/wp-content/uploads/2019/03/logo.png\");\r\n -webkit-background-size: 100%;\r\n background-size: auto;\r\n background-position: center;\r\n height: 150px;\r\n width: 200px;\r\n }\r\n\t\t\tbody.login {\r\n\t\t\t background-image:url(\"<?php echo site_url();?>/wp-content/uploads/2019/03/Main-banner.jpg\");\r\n\t\t\t \r\n\t\t\t font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif;\r\n\t\t\t\tfont-size: 13px;\r\n\t\t\t background-repeat: no-repeat;\r\n background-size: cover;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\t#login {\r\n\t\t\t\tbackground: rgba(0,0,0,0.6);\r\n\t\t\t\tbackground-size: cover;\r\n\t\t\t\twidth: 350px;\r\n\t\t\t\tmargin: auto;\r\n\t\t\t\tpadding: 50px;\r\n\t\t\t\tborder: 1px solid #558424;\r\n\t\t\t display: block;\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t.login form {\r\n\t\t\t margin-top: 20px;\r\n\t\t\t\tmargin-left: 0;\r\n\t\t\t\tpadding: 26px 24px 46px;\r\n\t\t\t\tfont-weight: 400;\r\n\t\t\t\toverflow: hidden;\r\n\t\t\t\tbackground-image: url(\"<?php echo site_url();?>/wp-content/uploads/2019/03/imge-logo.png\");\r\n\t\t\t\tbackground-repeat: no-repeat;\r\n\t\t\t\tbackground-position: center;\r\n\t\t\t\tbackground-size: auto;\r\n\t\t\t\tbackground-color: rgb(85,132,36,0.7);\r\n\t\t\t \r\n\t\t\t}\r\n\t\t\t\t \r\n\t\t\t.login label {\r\n\t\t\t color: #ffffff;\r\n\t\t\t}\r\n\t\t\tbody.login div#login form#loginform p.submit input#wp-submit, form#lostpasswordform p.submit input#wp-submit {\r\n\t\t\t background-color: #f5a700;\r\n\t\t\t border-color: #f5a700;\r\n\t\t\t box-shadow: none;\r\n\t\t\t font-size: 16px;\r\n\t\t\t font-weight: bold;\r\n\t\t\t text-shadow: none;\r\n\t\t\t}\r\n\t\t\tbody.login div#login form#loginform p.submit input#wp-submit:hover, form#lostpasswordform p.submit input#wp-submit:hover {\r\n\t\t\t\tbackground-color: #69961f;\r\n\t\t\t\tborder-color: #69961f;\r\n\t\t\t}\r\n\t\t\tinput[type=text]:focus, input[type=password]:focus, input[type=checkbox]:focus,\r\n\t\t\t.login a:focus {\r\n\t\t\t border-color: #69961f;\r\n\t\t\t box-shadow: 0 0 2px rgba(245,167,0,0.8);\r\n\t\t\t}\r\n\t\t\tbody.login div#login form#loginform p.forgetmenot input[type=checkbox]:checked:before {\r\n\t\t\t content: \"\\f147\";\r\n\t\t\t margin: -3px 0 0 -4px;\r\n\t\t\t color: #558424;\r\n\t\t\t}\r\n\r\n\t\t\t.login #login #nav a, .login #login #backtoblog a, .login #login_error a {\r\n\t\t\t color: #f5a700;\r\n\t\t\t}\r\n\t\t\tbody.login div#login p#nav a:hover, body.login div#login p#backtoblog a:hover{\r\n\t\t\t color: #558424;\r\n\t\t\t}\r\n\t\t\t.login .message,\r\n\t\t\t.login .success,\r\n\t\t\t.login #login_error {\r\n\t\t\t border-left: 4px solid #558424;\r\n\t\t\t padding: 12px;\r\n\t\t\t color: #558424;\r\n\t\t\t margin-left: 0;\r\n\t\t\t margin-bottom: 20px;\r\n\t\t\t background-color: #fff;\r\n\t\t\t box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);\r\n\t\t\t}\r\n\r\n\t\t\t.login .success {\r\n\t\t\t border-left-color: #558424;\r\n\t\t\t}\r\n\r\n\t\t\t.login #login_error {\r\n\t\t\t border-left-color: #558424;\r\n\t\t\t}\r\n\t\t\t\r\n\r\n </style>\r\n <?php\r\n // endif;\r\n}", "function thememount_testimonial_enter_title_here( $title ){\n\t$screen = get_current_screen();\n\tif ( 'testimonial' == $screen->post_type ) {\n\t\t$title = __('Person or company Name', 'howes');\n\t}\n\treturn $title;\n}", "function itstar_user_login(){\n $args = array('echo'=>false);\n if ( !is_user_logged_in() ) {\n return '<div class=\"login-container\">'.wp_login_form( $args ).'</div>';\n }\n}", "function wpfme_login_obscure(){ return '<strong>Sorry</strong>: Think you have gone wrong somwhere!';}", "function mixtape_qodef_woocommerce_login_holder()\n {\n echo \"<div class='qodef-my-account-login'>\";\n }", "function get_admin_page_title()\n {\n }", "public function get_title() {\n\t\treturn __( 'Hello World', 'elementor-hello-world' );\n\t}", "public function __construct()\n {\n $this->setTitle(\"Game Login\");\n }", "function get_the_author_login()\n {\n }", "function slb_register_custom_admin_titles() {\n\tadd_filter(\n\t\t'the_title',\n\t\t'slb_custom_admin_titles',\n\t\t99,\n\t\t2\n\t);\n}", "function printLogin() {\r\n global $_CONF;\r\n\r\n if ($this->templateLogin == \"\") { /* No se ha configurado que plantilla de inicio de sesion utilizar */\r\n $this->templateLogin = \"templates/login.html\";\r\n if (isset($_CONF['skin']) && $_CONF['skin'] != \"\"){ $this->templateLogin = \"skins/\" . $_CONF['skin'] . \"/login.html\"; }\r\n }\r\n\r\n $template = file_get_contents($this->templateLogin);\r\n $html = str_replace(\"@@TITLE@@\", $this->title, $template);\r\n echo $html;\r\n exit();\r\n }", "function change_wp_login_url() { return 'http://bodyrock.fromscratch.xyz/'; }", "public function modifyUserListPageTitle(string $title): string\n {\n global $wp;\n if ($wp->request === $this->customEndpoint()) {\n $title = 'Users List';\n }\n return $title;\n }", "function ui_title() {\n if (!isset($this->plugin['ui_title'])) {\n return check_plain($this->plugin['module'] . ':' . $this->plugin['name']);\n }\n return check_plain($this->plugin['ui_title']);\n }", "function title()\n {\n // TRANS: Title for identity verification page.\n return _m('OpenID Identity Verification');\n }", "function wolf_custom_login_logo() { \n\t\n\t$login_logo = wolf_get_theme_option( 'login_logo' );\n\n\tif ( $login_logo ) \n\t\techo '<style type=\"text/css\"> h1 a { background-image:url(' . $login_logo .' ) !important; } </style>';\n}", "public function set_site_login()\n {\n $logo = ($user_logo = et_get_option('divi_logo')) && !empty($user_logo) ? $user_logo : get_stylesheet_directory_uri() . '/images/logo.png';\n\t\t\n\t\t$bgimg = esc_attr( get_option( 'profile_picture' ) );\n\n $style = ' <style>\n \n\t\t\t\t\t\t#login h1 a, .login h1 a {\n background-image: url(' . $logo . ');\n background-color: transparent;\n\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\theight: 112px;\n\t\t\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\t\t\tpadding-bottom: 0;\n }\n\n body.login {\n background-image: url(\"' . $bgimg . '\") !important;\n background-position: center !important;\n background-size: cover !important;\n background-repeat: no-repeat !important;\n background-color: #fff !important;\n }\n\n .login #backtoblog a, .login #nav a {\n font-family: \"Raleway Bold\",Helvetica,Arial,Lucida,sans-serif;\n text-transform: uppercase;\n text-decoration: none;\n font-size: 10px;\n color: #707070!important;\n letter-spacing: 3.24px;\n line-height: 1.2em;\n display: block;\n text-align: center;\n }\n\n #backtoblog{\n display: none;\n }\n\n .login form {\n margin-top: 20px;\n margin-left: 0;\n padding: 26px 24px 46px;\n font-weight: 400;\n overflow: hidden;\n background: rgba(255,255,255,0.8) !important;\n border: 10px solid rgba(0,0,0,0.1) !important;\n box-shadow: 0 1px 3px rgba(0,0,0, 0.4) !important;\n border-radius: 5px !important;\n }\n\n .login .below-logo-msg{\n font-family: \"Raleway Bold\",Helvetica,Arial,Lucida,sans-serif;\n text-transform: uppercase;\n font-size: 12px;\n color: #fff!important;\n letter-spacing: 2px;\n line-height: 1.2em;\n background-color: #0D173D;\n border-radius: 10px;\n text-align: center;\n padding: 15px 0;\n }\n\n #wp-submit {\n width: 100%;\n margin-top: 20px;\n color: #ffffff!important;\n border-width: 1px!important;\n border-color: #2C6936;\n border-radius: 30px;\n font-size: 16px;\n font-family: \"Raleway Bold\",Helvetica,Arial,Lucida,sans-serif;\n text-transform: uppercase!important;\n background-color: #2C6936;\n letter-spacing: 2px;\n }\n </style>';\n\n echo (!function_exists('et_divi_100_is_active')) ? $style : '';\n }", "function setup_title() {\n\t\tglobal $bp;\n\n\t\tif ( bp_is_messages_component() ) {\n\t\t\tif ( bp_is_my_profile() ) {\n\t\t\t\t$bp->bp_options_title = __( 'My Messages', 'buddypress' );\n\t\t\t} else {\n\t\t\t\t$bp->bp_options_avatar = bp_core_fetch_avatar( array(\n\t\t\t\t\t'item_id' => bp_displayed_user_id(),\n\t\t\t\t\t'type' => 'thumb',\n\t\t\t\t\t'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() )\n\t\t\t\t) );\n\t\t\t\t$bp->bp_options_title = bp_get_displayed_user_fullname();\n\t\t\t}\n\t\t}\n\n\t\tparent::setup_title();\n\t}", "public function title_callback()\r\n {\r\n printf(\r\n '<input type=\"text\" id=\"title\" name=\"theme_option[title]\" value=\"%s\" />',\r\n isset($this->options['title']) ? esc_attr($this->options['title']) : ''\r\n );\r\n }", "private function dashboard_title()\n {\n global $current_screen, $wp_version;\n\n $dashboard_title = '';\n if ($icon = $this->get_settings('dashboard_icon')) {\n $dashboard_title .= '<span id=\\\"wlcms_dashboard_logo\\\"><img src=\\\"' . $icon . '\\\" alt=\\\"\\\" /></span>';\n\n wlcms_set_css('.index-php #wlcms_dashboard_logo img', array('vertical-align' => 'middle', 'padding-right' => '10px'));\n }\n\n if ($title = $this->get_settings('dashboard_title')) {\n $dashboard_title .= '<span id=\\\"wlcms_dashboard_title\\\">' . $title . '</span>';\n }\n\n if (version_compare($wp_version, '3.8-beta', '>=')) {\n wlcms_add_js('jQuery(\".index-php #wpbody-content .wrap h1:eq(0)\").html(\"' . $dashboard_title . '\")');\n return;\n }\n\n wlcms_add_js('jQuery(\"#icon-index\").html(\"' . $dashboard_title . '\")');\n\n return;\n }", "public function getTitle()\n\t{\n\t\treturn esc_html__('Profile assignment', 'next-active-directory-integration');\n\t}", "function wp_custom_logo_in_login() {\n\n $css = '<style type=\"text/css\">\n #login h1 a,\n .login h1 a {\n background-image: url(https://via.placeholder.com/120);\n background-repeat: no-repeat;\n background-size: 120px;\n height: 120px;\n width: 120px;\n }\n\n body {background: #141414 !important}\n\n .login #backtoblog a,\n .login #nav a {color: #adadad !important}\n\n .login #login_error,\n .login .message,\n .login .success,\n .login form {\n border-radius: 10px\n }\n\n .wp-core-ui .button-primary {\n background: #000 !important;\n border-color: #000 !important;\n box-shadow: none !important;\n color: #fff !important;\n text-decoration: none !important;\n text-shadow: none !important;\n border-radius: 0 !important;\n }\n\n input[type=text]:focus,\n input[type=password]:focus {\n border-color: #ff0083 !important;\n box-shadow: none !important;\n }\n </style>';\n\n echo $css;\n}", "function premise_homehero_title() {\n\t if( get_theme_mod( 'premise_homehero_text') != \"\" ) {\n\t\techo get_theme_mod( 'premise_homehero_text');\n\t }\n}", "function tm_change_title_on_logo() {\n\treturn esc_attr( get_bloginfo( 'name', 'display' ) );\n}", "public function title_callback()\n {\n printf(\n '<input type=\"text\" id=\"my_title\" name=\"my_title\" value=\"%s\" />',\n isset( $this->options['my_title'] ) ? esc_attr( $this->options['my_title']) : ''\n );\n }", "function GetAdminTitle()\n\t{\tif ($this->id)\n\t\t{\t$this->admintitle = $this->details['pagetitle'];\n\t\t}\n\t}", "function show_register_message_on_login()\n {\n echo '<div>Si no tienes cuenta <a href=\"'.get_permalink(ConstantBD::BD_POST_SIGNUP).'\">registrate</a> en un solo paso. </div>';\n }", "public function add_login_html() {\n\t\t?>\n\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"<?php echo esc_url( $_REQUEST['redirect_to'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>\" />\n\t\t<script type=\"application/javascript\">\n\t\t\tdocument.getElementById( 'loginform' ).addEventListener( 'submit' , function() {\n\t\t\t\tdocument.getElementById( 'wp-submit' ).setAttribute( 'disabled', 'disabled' );\n\t\t\t\tdocument.getElementById( 'wp-submit' ).value = '<?php echo esc_js( __( 'Logging In...', 'jetpack' ) ); ?>';\n\t\t\t} );\n\t\t</script>\n\t\t<?php\n\t}", "function customPageHeader() {\n echo osc_apply_filter('custom_plugin_title', __('Plugins'));\n }", "public function paml_back_to_login() {\n\t\techo '<a href=\"#login\" class=\"modal-login-nav\">' . __( 'Login', 'pressapps' ) . '</a>';\n\t}", "protected function renderPageTitle() {}", "public function userNameWhenLoggedIn()\n {\n /* @var $customer MagentoComponents_Pages_CustomerAccount */\n $customer = Menta_ComponentManager::get('MagentoComponents_Pages_CustomerAccount');\n\n $customer->login();\n\n $customer->openDashboard();\n $this->getHelperAssert()->assertElementContainsText('//div[' . Menta_Util_Div::contains('welcome-msg'). ']',\n 'Test User');\n\n $customer->logout();\n }", "function custom_login_logo() {\n\techo '<style type=\"text/css\">h1 a { background: url('.get_bloginfo('template_directory').'/assets/logo-login.png) 50% 50% no-repeat !important; }</style>';\n}", "public function add_theme_title_tag() {\n\t\t\tif (!is_admin()) {\n\t\t\t\t// auto gen <title>\n\t\t\t\tif (!current_theme_supports('title-tag')) {\n\t\t\t\t\tadd_theme_support( 'title-tag' );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function custom_login_logo() {\n\techo '<style type=\"text/css\">h1 a { background: url('.get_bloginfo('template_directory').'/assets/dist/logo-login.png) 50% 50% no-repeat !important; }</style>';\n}", "function the_embed_site_title()\n {\n }", "public function initialize()\n {\n $this->tag->setTitle('Log in/Sign up');\n parent::initialize();\n }", "function opanda_change_menu_title( $title ) {\r\n if ( !BizPanda::isSinglePlugin() ) return $title;\r\n return __('Opt-In Panda', 'opanda');\r\n}", "function ghactivity_app_settings_username_callback() {\n\t$options = (array) get_option( 'ghactivity' );\n\tprintf(\n\t\t'<input type=\"text\" name=\"ghactivity[username]\" value=\"%s\" />',\n\t\tisset( $options['username'] ) ? esc_attr( $options['username'] ) : ''\n\t);\n}", "public function getFrontendTitle()\n {\n return Mage::getStoreConfig(\"fontis_masterpass/settings/title\");\n }", "public function get_title() {\n\t\treturn parent::get_widget_title( 'Team_Member' );\n\t}", "public function set_login_logo_alt() {\n return get_option( 'blogname' );\n }", "public function loginUsername()\n {\n return 'username';\n }", "public function loginUsername()\n {\n return 'username';\n }", "protected function get_default_title() {\n\n\t\treturn __( 'TeleCheck', 'woocommerce-gateway-firstdata' );\n\t}", "function title(){\n\t\t\techo $mytitle= \"Profile. Car Parking Website\";\n\t\t\t\n\t\t}", "public function get_title() {\n\n\t\t/**\n\t\t * Filters the screen title.\n\t\t *\n\t\t * @since 2.0.0\n\t\t *\n\t\t * @param string $title screen title, for display\n\t\t */\n\t\treturn (string) apply_filters( 'wc_facebook_admin_settings_' . $this->get_id() . '_screen_title', $this->title, $this );\n\t}", "public function __construct() {\n parent::__construct(\n 'mepr_login_widget', // Base ID\n 'MemberPress Login', // Name\n array( 'description' => __( 'Place a MemberPress Login on any page with a sidebar region', 'memberpress' ), ) // Args\n );\n }", "function sl_new_wp_title() {\n$new_title= __('Dashboard of ', 'sl_dashtweaks') . get_option('blogname');\nreturn $new_title;\n}", "function sprdh_custom_login_logo() {\n\techo '<style type=\"text/css\">\n\t h1{\n\t \twidth:213px !important;\n\t\tmargin:0 auto 30px !important;\n\t }\n h1 a { background-image:url(http://dev.sprdh.com/files/wordpress_dashboard/sprdh-logo-wordpress.png) !important;width:213px !important;height:80px !important; background-size: 100% 100% !important;}\t\n\t.login form{padding: 26px 24px 46px 0;}\n\t#login form p {float: left !important;\n\t margin-left: 24px !important;\n\t width: 258px !important;\n\t}\n\t.login form{\n\t\tfloat:left !important;\t\t\n\t}\n\t#login {\n\t width: 600px !important;\n\t\tpadding:60px 0 0 !important;\n\t\theight:450px;\t\t\n\t}\n\t.login #nav{\n\t\tfloat:left !important;\n\t}\n\t.login #backtoblog{\n\t\tfloat:right !important;\n\t}\n </style>';\n}", "function cucina_render_title() {\n\t\t?>\n\t\t<title><?php wp_title( '|', true, 'right' ); ?></title>\n\t\t<?php\n\t}", "function sh_custom_user_name_callback() {\n $userName = esc_attr( get_option( 'user_name' ) );\n echo '<input type=\"text\" name=\"user_name\" value=\"'.$userName.'\" placeholder=\"Full Name\" />';\n}", "function prn_aktywacja() {\n $DD[] = \"IT_LOGOWANIE\";\n return get_template(\"user_enter\",'',$DD);\n }", "function get_wordpress_title() {\r\n return( wp_title('', false, 'right') );\r\n }", "public function showLogin(){\n $this->data['pagetitle'] = \"Login\";\n $this->data['page'] = 'login';\n // $this->data['pagecontent'] = 'login';\n $this->data['pagebody'] = 'login';\n \n $this->render();\n }", "function put_sprdh_title() {\n\treturn ('This website is powered by SPRDH');\n}", "public function custom_login_logo() {\n\t\techo '<style type=\"text/css\">\n\t\th1 a { background-image: url('.get_bloginfo('template_directory').'/assets/img/logo.svg) !important;\n\t\t background-size: 100% !important;\n\t\t width: 100% !important;\n\t\t height: 125px !important;\n\t\t pointer-events: none;\n\t\t}\n\t\t</style>';\n\t}" ]
[ "0.8836701", "0.8187108", "0.7928644", "0.7904487", "0.7833234", "0.7751825", "0.7603574", "0.7554313", "0.75401986", "0.7528431", "0.75189644", "0.75189644", "0.7514753", "0.7446403", "0.736279", "0.73232865", "0.73094267", "0.7304495", "0.7302", "0.7224983", "0.7205203", "0.7197702", "0.7085799", "0.70410323", "0.6992759", "0.6872542", "0.6807786", "0.67507637", "0.6627404", "0.65193886", "0.65096664", "0.647973", "0.6463556", "0.6457372", "0.6451945", "0.641796", "0.6336104", "0.63278484", "0.6326116", "0.6298287", "0.62901837", "0.62624955", "0.625647", "0.6255972", "0.6241661", "0.6235866", "0.622522", "0.62220937", "0.62178177", "0.61759484", "0.6175602", "0.6164711", "0.61619586", "0.6158668", "0.61493087", "0.611822", "0.611351", "0.6104549", "0.60979", "0.6073976", "0.6072152", "0.6066495", "0.6053865", "0.60491484", "0.6043025", "0.6034605", "0.60296106", "0.6029393", "0.60157424", "0.6015262", "0.6010264", "0.59982866", "0.5989543", "0.5981219", "0.59795696", "0.5978565", "0.5977095", "0.5971748", "0.5971636", "0.59713495", "0.5964933", "0.5960453", "0.5955047", "0.59522855", "0.595063", "0.5947947", "0.5947947", "0.59475183", "0.5918565", "0.5910911", "0.59105796", "0.5907554", "0.5907242", "0.5907078", "0.59063375", "0.59048057", "0.5903029", "0.5898449", "0.5892381", "0.5889126" ]
0.64390785
35
do something then output the result
protected function processGetRequest() { $this->ajaxDie(json_encode([ 'success' => true, 'operation' => 'get' ])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute() {\n\t\t$data = $this->getResultData();\n\t\t$this->printText($data[0]);\n\t}", "function main()\r\n {\r\n $this->setOutput();\r\n }", "public static function output() {}", "abstract function printOutput()", "abstract public function output($result,$params=array());", "public function output();", "public function output();", "public function output();", "public function output();", "public function output();", "function output() {\n \n }", "abstract public function output($return = false);", "public function output(): void;", "public function output() {}", "protected function outputSpecificStep() {}", "public function printResult() {\n $this->result->path = $this->getType() . 's/' . $this->getName() . '#tmp';\n\n // text/plain is used to support IE\n header('Cache-Control: no-cache');\n header('Content-Type: text/plain; charset=utf-8');\n\n print $this->getResult();\n }", "public function processOutput() {}", "public function process() {\n $call = $this->getData('p');\n\n if(method_exists($this, $call)) {\n $this->$call();\n } else {\n $this->output = array(\n 'success' => false,\n 'key' => 'eeek'\n );\n\n $this->renderOutput();\n }\n }", "protected function _output($data) {}", "public function get_output()\n {\n }", "public function proceed();", "static function sendout($output){\n\t\tif(Config::$x['inScript']){\n\t\t\techo $output;\n\t\t}else{\n\t\t\techo '<pre>'.$output.'</pre>';\n\t\t}\n\t}", "public function execute()\n\t{\n\t\t$this->output = $this->output->getHelpOutput();\n\t\t$this->help();\n\t\t$this->output->render();\n\t}", "public function output() {\n }", "function output($data);", "public function dispatch() {\n\t\t$this->_checkPHPUnit();\n\t\t$this->_parseParams();\n\n\t\tif ($this->params['case']) {\n\t\t\t$value = $this->_runTestCase();\n\t\t} else {\n\t\t\t$value = $this->_testCaseList();\n\t\t}\n\n\t\t$output = ob_get_flush();\n\t\techo $output;\n\t\treturn $value;\n\t}", "function showResult($script)\n{\n\tglobal $dbQuery;\n\tglobal $siteSerialID;\n\n\techo $script;\n\techo 'adm.system(' . $siteSerialID . ', ' . (microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) . ', ' . $dbQuery . ');';\n\texit;\n}", "function output($type = 'success', $output = null)\n\t{\n\t\tif ($type == 'success') {\n\t\t\techo \"\\033[32m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'error') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'fatal') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t\texit(EXIT_ERROR);\n\t\t} else {\n\t\t\techo $output . PHP_EOL;\n\t\t}\n\t}", "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 }", "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 }", "abstract public function getOutput();", "public function printResult ($term = NULL) {\n print $this->saveResult($term);\n\n }", "function success($output)\n{\n output(\"<fg=green;options=bold>$output</>\");\n}", "private function _output_or_return( $val, $maybe ) {\n\t\tif ( $maybe )\n\t\t\techo $val . \"\\r\\n\";\n\t\telse\n\t\t\treturn $val;\n\t}", "public function print(){\n echo $this->output;\n }", "function run() {\n echo $this->name . \" runs like crazy. Him fast<br>\";\n }", "function show_parsed(){ // parsing template (if needed) and showing the result of parsing\n\tif (isset($this->result)) echo $this->result;\n\telse {\n\t\t$this->parse();\n\t\techo $this->result;\n\t}\n}", "function echoResult($myarray){\n\t\t\t$ctr = 1;\n\t\t\tforeach($myarray as $entry){\n\t\t\t\techo \"<p>$ctr : $entry</p>\";\n\t\t\t\t$ctr += 1;\n\t\t\t}\n\t\t}", "protected abstract function output($text);", "function execute() {\r\n\t\t\r\n\t\tswitch( $this->mAction ) {\r\n\t\t\tcase 'help':\r\n\t\t\t\t$this->Help();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'compute':\r\n\t\t\t\t$this->Compute();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'liste':\r\n\t\t\t\t$this->Liste();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'open':\r\n\t\t\t\t$this->Open();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'save':\r\n\t\t\t\t$this->Save();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'delete':\r\n\t\t\t\t$this->Delete();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'install':\r\n\t\t\t\t$this->Install();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\t$this->mOutput->start( $this->mDB->isOK(), $this->mLang, $this->mText, array(), '', $this->mCountRegexes, $this->mRegexes );\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "function execute() {\n\t\tif (empty($this->args)) {\n\t\t\t$this->__interactive();\n\t\t}\n\n\t\tif (count($this->args) == 1) {\n\t\t\t$this->__interactive($this->args[0]);\n\t\t}\n\n\t\tif (count($this->args) > 1) {\n\t\t\t$type = Inflector::underscore($this->args[0]);\n\t\t\tif ($this->bake($type, $this->args[1])) {\n\t\t\t\t$this->out('done');\n\t\t\t}\n\t\t}\n\t}", "function fastResult($script)\n{\n\tdisconnectDB();\n\tshowResult($script);\n}", "final public function output(): void {\n\t\techo $this->html();\n\t}", "public function output() {\n\t\tswitch($this->output) {\n\t\t\tcase 'php':\n\t\t\tdefault:\n\t\t\t\t$this->_php_gen_feed();\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'js':\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t}", "function render()\n\t{\n\t\tif (isset($this->result)) {\n\t\t\t$this->usageError('Nothing to render!');\n\t\t}\n\t\t// @todo render\n\t}", "public function runSuccess();", "function info($output)\n{\n output(\"<comment>$output</comment>\");\n}", "public function foo()\n {\n $this->model->output[\"status\"] = \"WE DID IT!\";\n $this->view->output();\n }", "public function display() {\n\t\t$this->init();\n\t\treturn $this->output();\n\t}", "public function execute(){\n return $this->general(); \n }", "final function whatIsGood() {\n echo \"Running is good <br>\";\n }", "public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}", "protected function output() {\n\t\treturn $this->before() . $this->option( 'content' ) . $this->after();\n\t}", "public function actionDoSomething(): string\n {\n $result = 'something';\n\n echo \"Welcome to the console DefaultController actionDoSomething() method\\n\";\n\n return $result;\n }", "function process() ;", "public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }", "public function run()\r\n\t{\r\n\t\treturn 'faz de conta...';\r\n\t}", "function run() {\n\t\techo $this->name . \" runs like crazy </br>\";\n\t}", "function display(){\n\n\t\t\tview::$output = $this->output;\n\n\t\t}", "public function display() {\n return $this->out(call_user_func_array([$this, 'render'], func_get_args()));\n }", "function startOutput(GetOpt $_options)\n {\n echo \"Ausgabe in Konsole erfolgt...\\n\";\n }", "public function run()\n\t{\n\t\t$this->renderContent();\n\t\t$content=ob_get_clean();\n\t\tif($this->hideOnEmpty && trim($content)==='')\n\t\t\treturn;\n\t\techo $content;\n\t}", "public function display() {\r\n\t\t$this->script();\r\n\t\t$this->html();\r\n\t\t\r\n\t}", "function display()\n {\n view::$output = $this->output;\n }", "function doOutput(array $args, stdClass $context, $result) {\n $mode = $context->mode;\n $simple = $context->simple;\n if ($simple === null) {\n $simple = $this->simple;\n }\n if ($mode === ResultMode::RawWithEndTag || $mode == ResultMode::Raw) {\n return $result;\n }\n $stream = new BytesIO();\n $writer = new Writer($stream, $simple);\n $stream->write(Tags::TagResult);\n if ($mode === ResultMode::Serialized) {\n $stream->write($result);\n }\n else {\n $writer->reset();\n $writer->serialize($result);\n }\n if ($context->byref) {\n $stream->write(Tags::TagArgument);\n $writer->reset();\n $writer->writeArray($args);\n }\n $data = $stream->toString();\n $stream->close();\n return $data;\n }", "public function output() {\n\t\tif (\\core\\Quantum::registry(\"application.output_display\") == \"true\") {\n\t\t\techo $this->document->getDocument();\n\t\t} else {\n\t\t\ttrace(\"Not displaying output as defined in project configuration\", $this);\n\t\t}\n\t}", "protected function executeBasic($obj)\n {\n $results = $obj->result();\n\n if (!is_array($results)) {\n $results = [$results];\n }\n\n foreach ($results as $result) {\n echo new Output($result, $this->parser);\n }\n }", "final function what_is_good() {\n\t\t\techo \"Running is Good </br>\";\n\t\t}", "abstract function display();", "abstract function display();", "function execute()\r\n\t{\r\n\t\t\r\n\t}", "public function getOutput();", "public function getOutput();", "function display()\n {\n\n view::$output = $this->output;\n }", "function evaluateOutput($output)\n{\n log1(\"evaluateOutput: \" .$output);\n echo $output; // actual HTTP response output writer\n switch ($output) {\n case RESULT_OK:\n return true;\n case ERROR_DEVICE_IN_USE:\n case ERROR_COMMON:\n return false;\n default:\n return null;\n }\n}", "public function print_out()\n {\n echo \"id: \" . $this->id . \"<br/>\";\n echo $this->rewrite;\n echo $this->extension;\n echo $this->stranglerPattern;\n echo $this->continuousEvolution;\n echo $this->split;\n echo $this->processStrategyOthers;\n echo $this->ddd;\n echo $this->functionalDecomposition;\n echo $this->existingStructure;\n echo $this->decompositionStrategyOthers;\n echo $this->SCA;\n echo $this->MDA;\n echo $this->WDA;\n echo $this->DMC;\n echo $this->techniqueOthers;\n echo $this->GR;\n echo $this->MO;\n echo $this->sourceCode;\n echo $this->useCase;\n echo $this->systemSpecification;\n echo $this->API;\n echo $this->inputOthers;\n echo $this->list;\n echo $this->archi;\n echo $this->outputOthers;\n echo $this->experiment;\n echo $this->example;\n echo $this->caseStudy;\n echo $this->noValidation;\n echo $this->maintainability;\n echo $this->performance;\n echo $this->reliability;\n echo $this->scalability;\n echo $this->security;\n echo $this->qualityOthers;\n echo $this->score;\n echo $this->matchScore;\n echo $this->misMatch . \"<br/>\";\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 proceed()\n {\n }", "abstract protected function handleResult();", "public function perform();", "public function process()\n\t{\n\t\t$aVals = $this->request()->getArray('val');\n\t\t$this->testInstall();\n\n\t\t// $this->testInstall();\n\n\t\tif($aVals) {\n\t\t\tPhpfox::getService('unittest.test.socialad')->test($aVals['test_suite']);\n\n\t\t\t$sContent = ob_get_contents();\n\t\t\tob_clean();\n\t\t\techo(str_replace(\"\\n\", \"</br>\", $sContent));\n\t\t\tob_end_flush();\n\t\t\texit;\n\t\t}\n\n\t\t$this->template()->assign(array(\n\t\t\t'aTestSuites' => Phpfox::getService('unittest.test.socialad')->getTestSuites()\n\t\t));\n\t}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n if(($o = $this->router->exec()) !== false) echo $o;\n else $this->e404();\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n $this->trigger('horus.output.before', array($this));\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') or print $this->output;\n $this->trigger('horus.output.after', array($this));\n\n // end\n ob_get_level() < 1 or ob_end_flush(); exit;\n }", "public function output()\n {\n // TODO: Implement output() method.\n }", "public function getOutput() {}", "function renderOutput($data, $params, $exit_code) {\n\n // everything is fine\n if ($exit_code == 0){\n echo \"OK: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") is healthy.\\n\";\n }\n\n // houston, we have a problem..\n elseif ($exit_code == 1){\n echo \"WARNING: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") reported problems. please check details...\\n\";\n }\n \n // oooops, this should better not happen for this host..\n elseif ($exit_code == 2){\n echo \"CRITICAL: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") reported problems. please check details...\\n\";\n }\n\n // some basic system information like vendor, model & serial number..\n echo \"Hypervisor Version: \" . $data['host']['version'] . \"\\n\";\n echo \"Pool role: \" . ($data['is_poolmaster'] == true ? \"Master\" : \"Slave\") . \"\\n\";\n echo \"Vendor: \" . $data['host']['vendor'] . \"\\n\";\n echo \"Model: \" . $data['host']['model'] . \"\\n\";\n echo \"SN: \" . $data['host']['sn'] . \"\\n\";\n echo \"CPU: \" . $data['host']['cpu'] . \"\\n\\n\";\n\n // CPU usage\n echo \"Memory Usage: \" . formatStatus($data['memory']['usage'] . \"%\", $data['memory']['exit_code']) . \" (Free: \" . $data['memory']['free'] . \" GB - Used: \" . $data['memory']['used'] . \" GB - Total: \". $data['memory']['total'] . \" GB)\\n\";\n\n\n foreach ($data['storage'] as $storage)\n {\n // local storage\n if ($storage['type'] == 'ext' || $storage['type'] == 'lvm')\n echo $storage['label'] . \" - Usage: \" . formatStatus($storage['usage'] . \"%\", $storage['exit_code']) . \" (Free: \" . $storage['free'] . \" GB - Used: \" . $storage['used'] . \" GB - Total: \" .$storage['total'] . \" GB)\\n\";\n elseif ($data['is_poolmaster'] == true)\n echo $storage['label'] . \" - Usage: \" . formatStatus($storage['usage'] . \"%\", $storage['exit_code']) . \" (Free: \" . $storage['free'] . \" GB - Used: \" . $storage['used'] . \" GB - Total: \" .$storage['total'] . \" GB)\\n\";\n }\n\n // VMs\n if (!empty($data['guests'] ))\n {\n echo \"\\n<b>Guests on this host:</b>\\n\";\n\n foreach ($data['guests'] as $guest)\n {\n if ($guest['powerstate'] == 'Running')\n echo '<span style=\"color: #66bb6a;\">&#9679;</span> ' . $guest['name'] . \"\\n\";\n \n // VMs not running only for the poolmaster..\n if ($guest['powerstate'] != 'Running' && $data['is_poolmaster'] == true)\n echo '<span style=\"color: #f0666c;\">&#9679;</span> ' . $guest['name'] . \"\\n\";\n }\n }\n\n echo '| \\'memory usage\\'=' . $data['memory']['usage'] . ';' . $params['warning'] . ';' . $params['critical'] . ';0;100';\n\n foreach ($data['storage'] as $storage)\n {\n \n\n $w = round($storage['total'] * $params['warning'] / 100, 2);\n $c = round($storage['total'] * $params['critical'] / 100, 2);\n if ($storage['type'] == 'ext' || $storage['type'] == 'lvm')\n echo ' \\'' . $storage['label'] . '\\'=' . $storage['used'] . ';'. $w . ';' . $c .';0;' . $storage['total']. \"\\n\";\n elseif ($data['is_poolmaster'] == true)\n echo ' \\'' . $storage['label'] . '\\'=' . $storage['used'] . ';'. $w . ';' . $c .';0;' . $storage['total']. \"\\n\";\n }\n\n\n // Performance data\n // | 'CPU1'=16;0;0;; 'CPU2'=7;0;0;; 'CPU3'=6;0;0;;\n\n}", "public function display() {\n\t\techo $this->data;\n\t\treturn;\n\t}", "function main()\n {\n if (gpExists('gp_out')) {\n ob_start();\n $this->mainPull();\n ob_end_clean();\n } else {\n $this->mainHTML();\n }\n }", "protected function outOK()\n\t{\n\t\treturn $this->out('<ok>ok</ok>');\n\t}", "function run($exec) {\n $r = '<pre>';\n try {\n $r .= $exec->run();\n $r .= \"\\nDone!!!!!\\n\";\n } catch (Exception $e) {\n $r .= \"Error!!!!!!!!!!!!\\n\";\n $r .= $e->getMessage();\n }\n $r .= '</pre>';\n\n return $r;\n}", "function fetch()\r\n {\r\n ob_start();\r\n $this->display();\r\n return ob_get_clean();\r\n }", "abstract function run();", "public function outputResults()\r\n {\r\n // loop all products and display results per product\r\n foreach ($this->Products->getAllProducts() as $productId => $productName) {\r\n echo \"Product ID: \" . $productId . \"\\n\";\r\n echo \"Product Name: \" . $productName . \"\\n\";\r\n echo \"Total Units Sold: \" . $this->ProductsSold->getSoldTotal($productId) . \"\\n\";\r\n echo \"Total Units Purchased and Pending: \" . $this->ProductsPurchased->getPurchasedPendingTotal($productId) . \"\\n\";\r\n echo \"Total Units Purchased and Received: \" . $this->ProductsPurchased->getPurchasedReceivedTotal($productId) . \"\\n\";\r\n echo \"Current Stock Level: \" . $this->Inventory->getStockLevel($productId) . \"\\n\\n\";\r\n }\r\n }", "function output($result, $error) {\n\t$return = array();\n\tif (isset($result)) $return['result'] = $result;\n\tif (isset($error)) $return['error'] = $error;\n\techo json_encode($return);\n}", "protected function output_result($res)\n\t{\n\t\tglobal $s_runconf;\n\t\t$nw = get_microtime();\n\n\t\t$this->output_headers();\n\t\techo $res;\n\n\t\tif (DEBUG)\n\t\t{\n\t\t\tdwrite('**[Page processing end]**');\n\t\t\tdwrite('Page processing takes: ' . number_format(($nw - $this->_start_time), 8));\n\t\t\tdwrite('SQL parsing takes: ' . number_format($s_runconf->get('time.sql.parse'), 8));\n\t\t\tdwrite('SQL queries takes: ' . number_format($s_runconf->get('time.sql.query'), 8));\n\t\t\tdwrite('Templates takes: ' . number_format($s_runconf->get('time.template'), 8) . ' (approx, including template loading)');\n\n\t\t\t$debuglog_str = dflush_str();\n\n\t\t\tif (LOG_DEBUG_INFO) {\n\t\t\t\t_log(\"[[ Page info ]]\\n\\n$debuglog_str\\n\\n\");\n\t\t\t}\n\n\t\t\tif ($this->content_type=='text/html' && SHOW_DEBUG_INFO)\n\t\t\t{\n\t\t\t\techo '<div style=\"z-index:99999;position:absolute;top:0;left:0;font-size:10px;font-family:Tahoma;font-weight:bold;background-color:#000;color:#FFF;cursor:pointer;cursor:hand;\"';\n\t\t\t\techo ' onclick=\"var s=document.getElementById(\\'__s_debug__\\').style;s.display=s.display==\\'\\'?\\'none\\':\\'\\';return false;\">#</div>';\n\t\t\t\techo '<div id=\"__s_debug__\" style=\"z-index:99999;position:absolute;top:15px;left:10px;border:1px solid #888;background-color:#FFF;overflow:auto;width:800px;height:300px;display:none;\">';\n\t\t\t\techo '<pre style=\"text-align:left;padding:5px;margin:0;\" class=\"s-debug\">';\n\t\t\t\techo get_debuglog_html($debuglog_str);\n\t\t\t\techo '</pre></div>';\n\t\t\t}\n\t\t}\n\t}", "protected function output($string) {\r\n if ($this->automaticRun) { \r\n $this->textReportContents .= $string;\r\n } else {\r\n echo $string;\r\n } \r\n}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n\n // execute/disptach all routes relates to current request\n if ( isset($this->router) && $this->router instanceof Horus_Router )\n {\n if($this->router->state == false)\n $this->e404();\n else\n $this->output .= $this->router->output;\n }\n\n // trigger after router exec events\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n\n // trigger before output events\n $this->trigger('horus.output.before', array($this));\n\n // trigger output filters\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n\n // only send output if not HEAD request\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') || (print $this->output);\n\n // trigger after output events\n $this->trigger('horus.output.after', array($this));\n\n // end\n @ob_end_flush(); exit;\n }", "public function done();", "public function showResults()\n {\n $tracker = Tracker::getInstance();\n\n $tracker->outputStats();\n if (count($tracker->getFailures())) {\n $tracker->output(\"\\nFAILURES\\n\", null, null, true);\n $tracker->outputFailures();\n }\n\n if (count($tracker->getErrors())) {\n $tracker->output(\"\\nERRORS\\n\");\n $tracker->outputErrors();\n }\n\n $tracker->output(\"\\n\");\n\n if (count($tracker->getFailures())) {\n return;\n }\n\n if ($this->coverageDirectory()) {\n $tracker->output('Generating coverage report as html...' . \"\\n\");\n $this->_generateCoverageHtml();\n return $tracker->output('Done' . \"\\n\");\n }\n\n if ($this->showCoverage()) {\n $this->_generateCoverageCommandLine();\n return;\n }\n }", "abstract protected function _run();", "abstract protected function _run();", "function output( \\Smarty_Internal_Template $template, $results ) {\r\n\t\treturn $template->smarty->fetch( 'string:' . $results->body );\r\n\t}" ]
[ "0.71994966", "0.682085", "0.67650115", "0.67286074", "0.6722422", "0.66884667", "0.66884667", "0.66884667", "0.66884667", "0.66884667", "0.6610536", "0.6589375", "0.65504444", "0.654142", "0.645201", "0.6414973", "0.6318488", "0.6220739", "0.618541", "0.61704904", "0.6167543", "0.6158716", "0.6152147", "0.6082873", "0.60722005", "0.60546017", "0.6032546", "0.6004689", "0.5993067", "0.5966244", "0.5947681", "0.5940175", "0.5912992", "0.5908712", "0.58784443", "0.58725166", "0.58653504", "0.5862228", "0.58488226", "0.58348817", "0.58281136", "0.58244413", "0.5808065", "0.58034956", "0.5800686", "0.5793457", "0.5775817", "0.57613784", "0.57332957", "0.5730377", "0.572958", "0.5729142", "0.5728859", "0.5717257", "0.5700623", "0.56763107", "0.56757975", "0.56732184", "0.56687766", "0.5666218", "0.5666152", "0.5660306", "0.56593394", "0.5655098", "0.56540364", "0.5640702", "0.56395596", "0.5638474", "0.5632339", "0.5632339", "0.56245893", "0.5620173", "0.5620173", "0.5618789", "0.56158036", "0.5608738", "0.56074005", "0.560374", "0.5602318", "0.55995214", "0.55957204", "0.5595586", "0.55770856", "0.5576746", "0.5571068", "0.55704683", "0.55674833", "0.55603683", "0.5559315", "0.55525374", "0.554833", "0.5538275", "0.55374014", "0.5533451", "0.5528591", "0.5528322", "0.5525528", "0.551883", "0.5512826", "0.5512826", "0.55119" ]
0.0
-1
do something then output the result
protected function processPutRequest() { $this->ajaxDie(json_encode([ 'success' => true, 'operation' => 'put' ])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute() {\n\t\t$data = $this->getResultData();\n\t\t$this->printText($data[0]);\n\t}", "function main()\r\n {\r\n $this->setOutput();\r\n }", "public static function output() {}", "abstract function printOutput()", "abstract public function output($result,$params=array());", "public function output();", "public function output();", "public function output();", "public function output();", "public function output();", "function output() {\n \n }", "abstract public function output($return = false);", "public function output(): void;", "public function output() {}", "protected function outputSpecificStep() {}", "public function printResult() {\n $this->result->path = $this->getType() . 's/' . $this->getName() . '#tmp';\n\n // text/plain is used to support IE\n header('Cache-Control: no-cache');\n header('Content-Type: text/plain; charset=utf-8');\n\n print $this->getResult();\n }", "public function processOutput() {}", "public function process() {\n $call = $this->getData('p');\n\n if(method_exists($this, $call)) {\n $this->$call();\n } else {\n $this->output = array(\n 'success' => false,\n 'key' => 'eeek'\n );\n\n $this->renderOutput();\n }\n }", "protected function _output($data) {}", "public function get_output()\n {\n }", "public function proceed();", "static function sendout($output){\n\t\tif(Config::$x['inScript']){\n\t\t\techo $output;\n\t\t}else{\n\t\t\techo '<pre>'.$output.'</pre>';\n\t\t}\n\t}", "public function execute()\n\t{\n\t\t$this->output = $this->output->getHelpOutput();\n\t\t$this->help();\n\t\t$this->output->render();\n\t}", "public function output() {\n }", "function output($data);", "public function dispatch() {\n\t\t$this->_checkPHPUnit();\n\t\t$this->_parseParams();\n\n\t\tif ($this->params['case']) {\n\t\t\t$value = $this->_runTestCase();\n\t\t} else {\n\t\t\t$value = $this->_testCaseList();\n\t\t}\n\n\t\t$output = ob_get_flush();\n\t\techo $output;\n\t\treturn $value;\n\t}", "function showResult($script)\n{\n\tglobal $dbQuery;\n\tglobal $siteSerialID;\n\n\techo $script;\n\techo 'adm.system(' . $siteSerialID . ', ' . (microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) . ', ' . $dbQuery . ');';\n\texit;\n}", "function output($type = 'success', $output = null)\n\t{\n\t\tif ($type == 'success') {\n\t\t\techo \"\\033[32m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'error') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'fatal') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t\texit(EXIT_ERROR);\n\t\t} else {\n\t\t\techo $output . PHP_EOL;\n\t\t}\n\t}", "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 }", "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 }", "abstract public function getOutput();", "public function printResult ($term = NULL) {\n print $this->saveResult($term);\n\n }", "function success($output)\n{\n output(\"<fg=green;options=bold>$output</>\");\n}", "private function _output_or_return( $val, $maybe ) {\n\t\tif ( $maybe )\n\t\t\techo $val . \"\\r\\n\";\n\t\telse\n\t\t\treturn $val;\n\t}", "public function print(){\n echo $this->output;\n }", "function run() {\n echo $this->name . \" runs like crazy. Him fast<br>\";\n }", "function show_parsed(){ // parsing template (if needed) and showing the result of parsing\n\tif (isset($this->result)) echo $this->result;\n\telse {\n\t\t$this->parse();\n\t\techo $this->result;\n\t}\n}", "function echoResult($myarray){\n\t\t\t$ctr = 1;\n\t\t\tforeach($myarray as $entry){\n\t\t\t\techo \"<p>$ctr : $entry</p>\";\n\t\t\t\t$ctr += 1;\n\t\t\t}\n\t\t}", "protected abstract function output($text);", "function execute() {\r\n\t\t\r\n\t\tswitch( $this->mAction ) {\r\n\t\t\tcase 'help':\r\n\t\t\t\t$this->Help();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'compute':\r\n\t\t\t\t$this->Compute();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'liste':\r\n\t\t\t\t$this->Liste();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'open':\r\n\t\t\t\t$this->Open();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'save':\r\n\t\t\t\t$this->Save();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'delete':\r\n\t\t\t\t$this->Delete();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'install':\r\n\t\t\t\t$this->Install();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\t$this->mOutput->start( $this->mDB->isOK(), $this->mLang, $this->mText, array(), '', $this->mCountRegexes, $this->mRegexes );\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "function execute() {\n\t\tif (empty($this->args)) {\n\t\t\t$this->__interactive();\n\t\t}\n\n\t\tif (count($this->args) == 1) {\n\t\t\t$this->__interactive($this->args[0]);\n\t\t}\n\n\t\tif (count($this->args) > 1) {\n\t\t\t$type = Inflector::underscore($this->args[0]);\n\t\t\tif ($this->bake($type, $this->args[1])) {\n\t\t\t\t$this->out('done');\n\t\t\t}\n\t\t}\n\t}", "function fastResult($script)\n{\n\tdisconnectDB();\n\tshowResult($script);\n}", "final public function output(): void {\n\t\techo $this->html();\n\t}", "public function output() {\n\t\tswitch($this->output) {\n\t\t\tcase 'php':\n\t\t\tdefault:\n\t\t\t\t$this->_php_gen_feed();\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'js':\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t}", "function render()\n\t{\n\t\tif (isset($this->result)) {\n\t\t\t$this->usageError('Nothing to render!');\n\t\t}\n\t\t// @todo render\n\t}", "public function runSuccess();", "function info($output)\n{\n output(\"<comment>$output</comment>\");\n}", "public function foo()\n {\n $this->model->output[\"status\"] = \"WE DID IT!\";\n $this->view->output();\n }", "public function display() {\n\t\t$this->init();\n\t\treturn $this->output();\n\t}", "public function execute(){\n return $this->general(); \n }", "final function whatIsGood() {\n echo \"Running is good <br>\";\n }", "public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}", "protected function output() {\n\t\treturn $this->before() . $this->option( 'content' ) . $this->after();\n\t}", "public function actionDoSomething(): string\n {\n $result = 'something';\n\n echo \"Welcome to the console DefaultController actionDoSomething() method\\n\";\n\n return $result;\n }", "function process() ;", "public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }", "public function run()\r\n\t{\r\n\t\treturn 'faz de conta...';\r\n\t}", "function run() {\n\t\techo $this->name . \" runs like crazy </br>\";\n\t}", "function display(){\n\n\t\t\tview::$output = $this->output;\n\n\t\t}", "public function display() {\n return $this->out(call_user_func_array([$this, 'render'], func_get_args()));\n }", "function startOutput(GetOpt $_options)\n {\n echo \"Ausgabe in Konsole erfolgt...\\n\";\n }", "public function run()\n\t{\n\t\t$this->renderContent();\n\t\t$content=ob_get_clean();\n\t\tif($this->hideOnEmpty && trim($content)==='')\n\t\t\treturn;\n\t\techo $content;\n\t}", "public function display() {\r\n\t\t$this->script();\r\n\t\t$this->html();\r\n\t\t\r\n\t}", "function display()\n {\n view::$output = $this->output;\n }", "function doOutput(array $args, stdClass $context, $result) {\n $mode = $context->mode;\n $simple = $context->simple;\n if ($simple === null) {\n $simple = $this->simple;\n }\n if ($mode === ResultMode::RawWithEndTag || $mode == ResultMode::Raw) {\n return $result;\n }\n $stream = new BytesIO();\n $writer = new Writer($stream, $simple);\n $stream->write(Tags::TagResult);\n if ($mode === ResultMode::Serialized) {\n $stream->write($result);\n }\n else {\n $writer->reset();\n $writer->serialize($result);\n }\n if ($context->byref) {\n $stream->write(Tags::TagArgument);\n $writer->reset();\n $writer->writeArray($args);\n }\n $data = $stream->toString();\n $stream->close();\n return $data;\n }", "public function output() {\n\t\tif (\\core\\Quantum::registry(\"application.output_display\") == \"true\") {\n\t\t\techo $this->document->getDocument();\n\t\t} else {\n\t\t\ttrace(\"Not displaying output as defined in project configuration\", $this);\n\t\t}\n\t}", "protected function executeBasic($obj)\n {\n $results = $obj->result();\n\n if (!is_array($results)) {\n $results = [$results];\n }\n\n foreach ($results as $result) {\n echo new Output($result, $this->parser);\n }\n }", "final function what_is_good() {\n\t\t\techo \"Running is Good </br>\";\n\t\t}", "abstract function display();", "abstract function display();", "function execute()\r\n\t{\r\n\t\t\r\n\t}", "public function getOutput();", "public function getOutput();", "function display()\n {\n\n view::$output = $this->output;\n }", "function evaluateOutput($output)\n{\n log1(\"evaluateOutput: \" .$output);\n echo $output; // actual HTTP response output writer\n switch ($output) {\n case RESULT_OK:\n return true;\n case ERROR_DEVICE_IN_USE:\n case ERROR_COMMON:\n return false;\n default:\n return null;\n }\n}", "public function print_out()\n {\n echo \"id: \" . $this->id . \"<br/>\";\n echo $this->rewrite;\n echo $this->extension;\n echo $this->stranglerPattern;\n echo $this->continuousEvolution;\n echo $this->split;\n echo $this->processStrategyOthers;\n echo $this->ddd;\n echo $this->functionalDecomposition;\n echo $this->existingStructure;\n echo $this->decompositionStrategyOthers;\n echo $this->SCA;\n echo $this->MDA;\n echo $this->WDA;\n echo $this->DMC;\n echo $this->techniqueOthers;\n echo $this->GR;\n echo $this->MO;\n echo $this->sourceCode;\n echo $this->useCase;\n echo $this->systemSpecification;\n echo $this->API;\n echo $this->inputOthers;\n echo $this->list;\n echo $this->archi;\n echo $this->outputOthers;\n echo $this->experiment;\n echo $this->example;\n echo $this->caseStudy;\n echo $this->noValidation;\n echo $this->maintainability;\n echo $this->performance;\n echo $this->reliability;\n echo $this->scalability;\n echo $this->security;\n echo $this->qualityOthers;\n echo $this->score;\n echo $this->matchScore;\n echo $this->misMatch . \"<br/>\";\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 proceed()\n {\n }", "abstract protected function handleResult();", "public function perform();", "public function process()\n\t{\n\t\t$aVals = $this->request()->getArray('val');\n\t\t$this->testInstall();\n\n\t\t// $this->testInstall();\n\n\t\tif($aVals) {\n\t\t\tPhpfox::getService('unittest.test.socialad')->test($aVals['test_suite']);\n\n\t\t\t$sContent = ob_get_contents();\n\t\t\tob_clean();\n\t\t\techo(str_replace(\"\\n\", \"</br>\", $sContent));\n\t\t\tob_end_flush();\n\t\t\texit;\n\t\t}\n\n\t\t$this->template()->assign(array(\n\t\t\t'aTestSuites' => Phpfox::getService('unittest.test.socialad')->getTestSuites()\n\t\t));\n\t}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n if(($o = $this->router->exec()) !== false) echo $o;\n else $this->e404();\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n $this->trigger('horus.output.before', array($this));\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') or print $this->output;\n $this->trigger('horus.output.after', array($this));\n\n // end\n ob_get_level() < 1 or ob_end_flush(); exit;\n }", "public function output()\n {\n // TODO: Implement output() method.\n }", "public function getOutput() {}", "function renderOutput($data, $params, $exit_code) {\n\n // everything is fine\n if ($exit_code == 0){\n echo \"OK: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") is healthy.\\n\";\n }\n\n // houston, we have a problem..\n elseif ($exit_code == 1){\n echo \"WARNING: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") reported problems. please check details...\\n\";\n }\n \n // oooops, this should better not happen for this host..\n elseif ($exit_code == 2){\n echo \"CRITICAL: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") reported problems. please check details...\\n\";\n }\n\n // some basic system information like vendor, model & serial number..\n echo \"Hypervisor Version: \" . $data['host']['version'] . \"\\n\";\n echo \"Pool role: \" . ($data['is_poolmaster'] == true ? \"Master\" : \"Slave\") . \"\\n\";\n echo \"Vendor: \" . $data['host']['vendor'] . \"\\n\";\n echo \"Model: \" . $data['host']['model'] . \"\\n\";\n echo \"SN: \" . $data['host']['sn'] . \"\\n\";\n echo \"CPU: \" . $data['host']['cpu'] . \"\\n\\n\";\n\n // CPU usage\n echo \"Memory Usage: \" . formatStatus($data['memory']['usage'] . \"%\", $data['memory']['exit_code']) . \" (Free: \" . $data['memory']['free'] . \" GB - Used: \" . $data['memory']['used'] . \" GB - Total: \". $data['memory']['total'] . \" GB)\\n\";\n\n\n foreach ($data['storage'] as $storage)\n {\n // local storage\n if ($storage['type'] == 'ext' || $storage['type'] == 'lvm')\n echo $storage['label'] . \" - Usage: \" . formatStatus($storage['usage'] . \"%\", $storage['exit_code']) . \" (Free: \" . $storage['free'] . \" GB - Used: \" . $storage['used'] . \" GB - Total: \" .$storage['total'] . \" GB)\\n\";\n elseif ($data['is_poolmaster'] == true)\n echo $storage['label'] . \" - Usage: \" . formatStatus($storage['usage'] . \"%\", $storage['exit_code']) . \" (Free: \" . $storage['free'] . \" GB - Used: \" . $storage['used'] . \" GB - Total: \" .$storage['total'] . \" GB)\\n\";\n }\n\n // VMs\n if (!empty($data['guests'] ))\n {\n echo \"\\n<b>Guests on this host:</b>\\n\";\n\n foreach ($data['guests'] as $guest)\n {\n if ($guest['powerstate'] == 'Running')\n echo '<span style=\"color: #66bb6a;\">&#9679;</span> ' . $guest['name'] . \"\\n\";\n \n // VMs not running only for the poolmaster..\n if ($guest['powerstate'] != 'Running' && $data['is_poolmaster'] == true)\n echo '<span style=\"color: #f0666c;\">&#9679;</span> ' . $guest['name'] . \"\\n\";\n }\n }\n\n echo '| \\'memory usage\\'=' . $data['memory']['usage'] . ';' . $params['warning'] . ';' . $params['critical'] . ';0;100';\n\n foreach ($data['storage'] as $storage)\n {\n \n\n $w = round($storage['total'] * $params['warning'] / 100, 2);\n $c = round($storage['total'] * $params['critical'] / 100, 2);\n if ($storage['type'] == 'ext' || $storage['type'] == 'lvm')\n echo ' \\'' . $storage['label'] . '\\'=' . $storage['used'] . ';'. $w . ';' . $c .';0;' . $storage['total']. \"\\n\";\n elseif ($data['is_poolmaster'] == true)\n echo ' \\'' . $storage['label'] . '\\'=' . $storage['used'] . ';'. $w . ';' . $c .';0;' . $storage['total']. \"\\n\";\n }\n\n\n // Performance data\n // | 'CPU1'=16;0;0;; 'CPU2'=7;0;0;; 'CPU3'=6;0;0;;\n\n}", "public function display() {\n\t\techo $this->data;\n\t\treturn;\n\t}", "function main()\n {\n if (gpExists('gp_out')) {\n ob_start();\n $this->mainPull();\n ob_end_clean();\n } else {\n $this->mainHTML();\n }\n }", "protected function outOK()\n\t{\n\t\treturn $this->out('<ok>ok</ok>');\n\t}", "function run($exec) {\n $r = '<pre>';\n try {\n $r .= $exec->run();\n $r .= \"\\nDone!!!!!\\n\";\n } catch (Exception $e) {\n $r .= \"Error!!!!!!!!!!!!\\n\";\n $r .= $e->getMessage();\n }\n $r .= '</pre>';\n\n return $r;\n}", "function fetch()\r\n {\r\n ob_start();\r\n $this->display();\r\n return ob_get_clean();\r\n }", "abstract function run();", "public function outputResults()\r\n {\r\n // loop all products and display results per product\r\n foreach ($this->Products->getAllProducts() as $productId => $productName) {\r\n echo \"Product ID: \" . $productId . \"\\n\";\r\n echo \"Product Name: \" . $productName . \"\\n\";\r\n echo \"Total Units Sold: \" . $this->ProductsSold->getSoldTotal($productId) . \"\\n\";\r\n echo \"Total Units Purchased and Pending: \" . $this->ProductsPurchased->getPurchasedPendingTotal($productId) . \"\\n\";\r\n echo \"Total Units Purchased and Received: \" . $this->ProductsPurchased->getPurchasedReceivedTotal($productId) . \"\\n\";\r\n echo \"Current Stock Level: \" . $this->Inventory->getStockLevel($productId) . \"\\n\\n\";\r\n }\r\n }", "function output($result, $error) {\n\t$return = array();\n\tif (isset($result)) $return['result'] = $result;\n\tif (isset($error)) $return['error'] = $error;\n\techo json_encode($return);\n}", "protected function output_result($res)\n\t{\n\t\tglobal $s_runconf;\n\t\t$nw = get_microtime();\n\n\t\t$this->output_headers();\n\t\techo $res;\n\n\t\tif (DEBUG)\n\t\t{\n\t\t\tdwrite('**[Page processing end]**');\n\t\t\tdwrite('Page processing takes: ' . number_format(($nw - $this->_start_time), 8));\n\t\t\tdwrite('SQL parsing takes: ' . number_format($s_runconf->get('time.sql.parse'), 8));\n\t\t\tdwrite('SQL queries takes: ' . number_format($s_runconf->get('time.sql.query'), 8));\n\t\t\tdwrite('Templates takes: ' . number_format($s_runconf->get('time.template'), 8) . ' (approx, including template loading)');\n\n\t\t\t$debuglog_str = dflush_str();\n\n\t\t\tif (LOG_DEBUG_INFO) {\n\t\t\t\t_log(\"[[ Page info ]]\\n\\n$debuglog_str\\n\\n\");\n\t\t\t}\n\n\t\t\tif ($this->content_type=='text/html' && SHOW_DEBUG_INFO)\n\t\t\t{\n\t\t\t\techo '<div style=\"z-index:99999;position:absolute;top:0;left:0;font-size:10px;font-family:Tahoma;font-weight:bold;background-color:#000;color:#FFF;cursor:pointer;cursor:hand;\"';\n\t\t\t\techo ' onclick=\"var s=document.getElementById(\\'__s_debug__\\').style;s.display=s.display==\\'\\'?\\'none\\':\\'\\';return false;\">#</div>';\n\t\t\t\techo '<div id=\"__s_debug__\" style=\"z-index:99999;position:absolute;top:15px;left:10px;border:1px solid #888;background-color:#FFF;overflow:auto;width:800px;height:300px;display:none;\">';\n\t\t\t\techo '<pre style=\"text-align:left;padding:5px;margin:0;\" class=\"s-debug\">';\n\t\t\t\techo get_debuglog_html($debuglog_str);\n\t\t\t\techo '</pre></div>';\n\t\t\t}\n\t\t}\n\t}", "protected function output($string) {\r\n if ($this->automaticRun) { \r\n $this->textReportContents .= $string;\r\n } else {\r\n echo $string;\r\n } \r\n}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n\n // execute/disptach all routes relates to current request\n if ( isset($this->router) && $this->router instanceof Horus_Router )\n {\n if($this->router->state == false)\n $this->e404();\n else\n $this->output .= $this->router->output;\n }\n\n // trigger after router exec events\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n\n // trigger before output events\n $this->trigger('horus.output.before', array($this));\n\n // trigger output filters\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n\n // only send output if not HEAD request\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') || (print $this->output);\n\n // trigger after output events\n $this->trigger('horus.output.after', array($this));\n\n // end\n @ob_end_flush(); exit;\n }", "public function done();", "public function showResults()\n {\n $tracker = Tracker::getInstance();\n\n $tracker->outputStats();\n if (count($tracker->getFailures())) {\n $tracker->output(\"\\nFAILURES\\n\", null, null, true);\n $tracker->outputFailures();\n }\n\n if (count($tracker->getErrors())) {\n $tracker->output(\"\\nERRORS\\n\");\n $tracker->outputErrors();\n }\n\n $tracker->output(\"\\n\");\n\n if (count($tracker->getFailures())) {\n return;\n }\n\n if ($this->coverageDirectory()) {\n $tracker->output('Generating coverage report as html...' . \"\\n\");\n $this->_generateCoverageHtml();\n return $tracker->output('Done' . \"\\n\");\n }\n\n if ($this->showCoverage()) {\n $this->_generateCoverageCommandLine();\n return;\n }\n }", "abstract protected function _run();", "abstract protected function _run();", "function output( \\Smarty_Internal_Template $template, $results ) {\r\n\t\treturn $template->smarty->fetch( 'string:' . $results->body );\r\n\t}" ]
[ "0.71994966", "0.682085", "0.67650115", "0.67286074", "0.6722422", "0.66884667", "0.66884667", "0.66884667", "0.66884667", "0.66884667", "0.6610536", "0.6589375", "0.65504444", "0.654142", "0.645201", "0.6414973", "0.6318488", "0.6220739", "0.618541", "0.61704904", "0.6167543", "0.6158716", "0.6152147", "0.6082873", "0.60722005", "0.60546017", "0.6032546", "0.6004689", "0.5993067", "0.5966244", "0.5947681", "0.5940175", "0.5912992", "0.5908712", "0.58784443", "0.58725166", "0.58653504", "0.5862228", "0.58488226", "0.58348817", "0.58281136", "0.58244413", "0.5808065", "0.58034956", "0.5800686", "0.5793457", "0.5775817", "0.57613784", "0.57332957", "0.5730377", "0.572958", "0.5729142", "0.5728859", "0.5717257", "0.5700623", "0.56763107", "0.56757975", "0.56732184", "0.56687766", "0.5666218", "0.5666152", "0.5660306", "0.56593394", "0.5655098", "0.56540364", "0.5640702", "0.56395596", "0.5638474", "0.5632339", "0.5632339", "0.56245893", "0.5620173", "0.5620173", "0.5618789", "0.56158036", "0.5608738", "0.56074005", "0.560374", "0.5602318", "0.55995214", "0.55957204", "0.5595586", "0.55770856", "0.5576746", "0.5571068", "0.55704683", "0.55674833", "0.55603683", "0.5559315", "0.55525374", "0.554833", "0.5538275", "0.55374014", "0.5533451", "0.5528591", "0.5528322", "0.5525528", "0.551883", "0.5512826", "0.5512826", "0.55119" ]
0.0
-1
do something then output the result
protected function processDeleteRequest() { $this->ajaxDie(json_encode([ 'success' => true, 'operation' => 'delete' ])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute() {\n\t\t$data = $this->getResultData();\n\t\t$this->printText($data[0]);\n\t}", "function main()\r\n {\r\n $this->setOutput();\r\n }", "public static function output() {}", "abstract function printOutput()", "abstract public function output($result,$params=array());", "public function output();", "public function output();", "public function output();", "public function output();", "public function output();", "function output() {\n \n }", "abstract public function output($return = false);", "public function output(): void;", "public function output() {}", "protected function outputSpecificStep() {}", "public function printResult() {\n $this->result->path = $this->getType() . 's/' . $this->getName() . '#tmp';\n\n // text/plain is used to support IE\n header('Cache-Control: no-cache');\n header('Content-Type: text/plain; charset=utf-8');\n\n print $this->getResult();\n }", "public function processOutput() {}", "public function process() {\n $call = $this->getData('p');\n\n if(method_exists($this, $call)) {\n $this->$call();\n } else {\n $this->output = array(\n 'success' => false,\n 'key' => 'eeek'\n );\n\n $this->renderOutput();\n }\n }", "protected function _output($data) {}", "public function get_output()\n {\n }", "public function proceed();", "static function sendout($output){\n\t\tif(Config::$x['inScript']){\n\t\t\techo $output;\n\t\t}else{\n\t\t\techo '<pre>'.$output.'</pre>';\n\t\t}\n\t}", "public function execute()\n\t{\n\t\t$this->output = $this->output->getHelpOutput();\n\t\t$this->help();\n\t\t$this->output->render();\n\t}", "public function output() {\n }", "function output($data);", "public function dispatch() {\n\t\t$this->_checkPHPUnit();\n\t\t$this->_parseParams();\n\n\t\tif ($this->params['case']) {\n\t\t\t$value = $this->_runTestCase();\n\t\t} else {\n\t\t\t$value = $this->_testCaseList();\n\t\t}\n\n\t\t$output = ob_get_flush();\n\t\techo $output;\n\t\treturn $value;\n\t}", "function showResult($script)\n{\n\tglobal $dbQuery;\n\tglobal $siteSerialID;\n\n\techo $script;\n\techo 'adm.system(' . $siteSerialID . ', ' . (microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) . ', ' . $dbQuery . ');';\n\texit;\n}", "function output($type = 'success', $output = null)\n\t{\n\t\tif ($type == 'success') {\n\t\t\techo \"\\033[32m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'error') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t} elseif ($type == 'fatal') {\n\t\t\techo \"\\033[31m\" . $output . \"\\033[0m\" . PHP_EOL;\n\t\t\texit(EXIT_ERROR);\n\t\t} else {\n\t\t\techo $output . PHP_EOL;\n\t\t}\n\t}", "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 }", "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 }", "abstract public function getOutput();", "public function printResult ($term = NULL) {\n print $this->saveResult($term);\n\n }", "function success($output)\n{\n output(\"<fg=green;options=bold>$output</>\");\n}", "private function _output_or_return( $val, $maybe ) {\n\t\tif ( $maybe )\n\t\t\techo $val . \"\\r\\n\";\n\t\telse\n\t\t\treturn $val;\n\t}", "public function print(){\n echo $this->output;\n }", "function run() {\n echo $this->name . \" runs like crazy. Him fast<br>\";\n }", "function show_parsed(){ // parsing template (if needed) and showing the result of parsing\n\tif (isset($this->result)) echo $this->result;\n\telse {\n\t\t$this->parse();\n\t\techo $this->result;\n\t}\n}", "function echoResult($myarray){\n\t\t\t$ctr = 1;\n\t\t\tforeach($myarray as $entry){\n\t\t\t\techo \"<p>$ctr : $entry</p>\";\n\t\t\t\t$ctr += 1;\n\t\t\t}\n\t\t}", "protected abstract function output($text);", "function execute() {\r\n\t\t\r\n\t\tswitch( $this->mAction ) {\r\n\t\t\tcase 'help':\r\n\t\t\t\t$this->Help();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'compute':\r\n\t\t\t\t$this->Compute();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'liste':\r\n\t\t\t\t$this->Liste();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'open':\r\n\t\t\t\t$this->Open();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'save':\r\n\t\t\t\t$this->Save();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'delete':\r\n\t\t\t\t$this->Delete();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 'install':\r\n\t\t\t\t$this->Install();\r\n\t\t\t\t$this->mOutput->display();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\t$this->mOutput->start( $this->mDB->isOK(), $this->mLang, $this->mText, array(), '', $this->mCountRegexes, $this->mRegexes );\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "function execute() {\n\t\tif (empty($this->args)) {\n\t\t\t$this->__interactive();\n\t\t}\n\n\t\tif (count($this->args) == 1) {\n\t\t\t$this->__interactive($this->args[0]);\n\t\t}\n\n\t\tif (count($this->args) > 1) {\n\t\t\t$type = Inflector::underscore($this->args[0]);\n\t\t\tif ($this->bake($type, $this->args[1])) {\n\t\t\t\t$this->out('done');\n\t\t\t}\n\t\t}\n\t}", "function fastResult($script)\n{\n\tdisconnectDB();\n\tshowResult($script);\n}", "final public function output(): void {\n\t\techo $this->html();\n\t}", "public function output() {\n\t\tswitch($this->output) {\n\t\t\tcase 'php':\n\t\t\tdefault:\n\t\t\t\t$this->_php_gen_feed();\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'js':\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t}", "function render()\n\t{\n\t\tif (isset($this->result)) {\n\t\t\t$this->usageError('Nothing to render!');\n\t\t}\n\t\t// @todo render\n\t}", "public function runSuccess();", "function info($output)\n{\n output(\"<comment>$output</comment>\");\n}", "public function foo()\n {\n $this->model->output[\"status\"] = \"WE DID IT!\";\n $this->view->output();\n }", "public function display() {\n\t\t$this->init();\n\t\treturn $this->output();\n\t}", "public function execute(){\n return $this->general(); \n }", "final function whatIsGood() {\n echo \"Running is good <br>\";\n }", "public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}", "protected function output() {\n\t\treturn $this->before() . $this->option( 'content' ) . $this->after();\n\t}", "public function actionDoSomething(): string\n {\n $result = 'something';\n\n echo \"Welcome to the console DefaultController actionDoSomething() method\\n\";\n\n return $result;\n }", "function process() ;", "public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }", "public function run()\r\n\t{\r\n\t\treturn 'faz de conta...';\r\n\t}", "function run() {\n\t\techo $this->name . \" runs like crazy </br>\";\n\t}", "function display(){\n\n\t\t\tview::$output = $this->output;\n\n\t\t}", "public function display() {\n return $this->out(call_user_func_array([$this, 'render'], func_get_args()));\n }", "function startOutput(GetOpt $_options)\n {\n echo \"Ausgabe in Konsole erfolgt...\\n\";\n }", "public function run()\n\t{\n\t\t$this->renderContent();\n\t\t$content=ob_get_clean();\n\t\tif($this->hideOnEmpty && trim($content)==='')\n\t\t\treturn;\n\t\techo $content;\n\t}", "public function display() {\r\n\t\t$this->script();\r\n\t\t$this->html();\r\n\t\t\r\n\t}", "function display()\n {\n view::$output = $this->output;\n }", "function doOutput(array $args, stdClass $context, $result) {\n $mode = $context->mode;\n $simple = $context->simple;\n if ($simple === null) {\n $simple = $this->simple;\n }\n if ($mode === ResultMode::RawWithEndTag || $mode == ResultMode::Raw) {\n return $result;\n }\n $stream = new BytesIO();\n $writer = new Writer($stream, $simple);\n $stream->write(Tags::TagResult);\n if ($mode === ResultMode::Serialized) {\n $stream->write($result);\n }\n else {\n $writer->reset();\n $writer->serialize($result);\n }\n if ($context->byref) {\n $stream->write(Tags::TagArgument);\n $writer->reset();\n $writer->writeArray($args);\n }\n $data = $stream->toString();\n $stream->close();\n return $data;\n }", "public function output() {\n\t\tif (\\core\\Quantum::registry(\"application.output_display\") == \"true\") {\n\t\t\techo $this->document->getDocument();\n\t\t} else {\n\t\t\ttrace(\"Not displaying output as defined in project configuration\", $this);\n\t\t}\n\t}", "protected function executeBasic($obj)\n {\n $results = $obj->result();\n\n if (!is_array($results)) {\n $results = [$results];\n }\n\n foreach ($results as $result) {\n echo new Output($result, $this->parser);\n }\n }", "final function what_is_good() {\n\t\t\techo \"Running is Good </br>\";\n\t\t}", "abstract function display();", "abstract function display();", "function execute()\r\n\t{\r\n\t\t\r\n\t}", "public function getOutput();", "public function getOutput();", "function display()\n {\n\n view::$output = $this->output;\n }", "function evaluateOutput($output)\n{\n log1(\"evaluateOutput: \" .$output);\n echo $output; // actual HTTP response output writer\n switch ($output) {\n case RESULT_OK:\n return true;\n case ERROR_DEVICE_IN_USE:\n case ERROR_COMMON:\n return false;\n default:\n return null;\n }\n}", "public function print_out()\n {\n echo \"id: \" . $this->id . \"<br/>\";\n echo $this->rewrite;\n echo $this->extension;\n echo $this->stranglerPattern;\n echo $this->continuousEvolution;\n echo $this->split;\n echo $this->processStrategyOthers;\n echo $this->ddd;\n echo $this->functionalDecomposition;\n echo $this->existingStructure;\n echo $this->decompositionStrategyOthers;\n echo $this->SCA;\n echo $this->MDA;\n echo $this->WDA;\n echo $this->DMC;\n echo $this->techniqueOthers;\n echo $this->GR;\n echo $this->MO;\n echo $this->sourceCode;\n echo $this->useCase;\n echo $this->systemSpecification;\n echo $this->API;\n echo $this->inputOthers;\n echo $this->list;\n echo $this->archi;\n echo $this->outputOthers;\n echo $this->experiment;\n echo $this->example;\n echo $this->caseStudy;\n echo $this->noValidation;\n echo $this->maintainability;\n echo $this->performance;\n echo $this->reliability;\n echo $this->scalability;\n echo $this->security;\n echo $this->qualityOthers;\n echo $this->score;\n echo $this->matchScore;\n echo $this->misMatch . \"<br/>\";\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 proceed()\n {\n }", "abstract protected function handleResult();", "public function perform();", "public function process()\n\t{\n\t\t$aVals = $this->request()->getArray('val');\n\t\t$this->testInstall();\n\n\t\t// $this->testInstall();\n\n\t\tif($aVals) {\n\t\t\tPhpfox::getService('unittest.test.socialad')->test($aVals['test_suite']);\n\n\t\t\t$sContent = ob_get_contents();\n\t\t\tob_clean();\n\t\t\techo(str_replace(\"\\n\", \"</br>\", $sContent));\n\t\t\tob_end_flush();\n\t\t\texit;\n\t\t}\n\n\t\t$this->template()->assign(array(\n\t\t\t'aTestSuites' => Phpfox::getService('unittest.test.socialad')->getTestSuites()\n\t\t));\n\t}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n if(($o = $this->router->exec()) !== false) echo $o;\n else $this->e404();\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n $this->trigger('horus.output.before', array($this));\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') or print $this->output;\n $this->trigger('horus.output.after', array($this));\n\n // end\n ob_get_level() < 1 or ob_end_flush(); exit;\n }", "public function output()\n {\n // TODO: Implement output() method.\n }", "public function getOutput() {}", "function renderOutput($data, $params, $exit_code) {\n\n // everything is fine\n if ($exit_code == 0){\n echo \"OK: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") is healthy.\\n\";\n }\n\n // houston, we have a problem..\n elseif ($exit_code == 1){\n echo \"WARNING: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") reported problems. please check details...\\n\";\n }\n \n // oooops, this should better not happen for this host..\n elseif ($exit_code == 2){\n echo \"CRITICAL: Hypervisor \" . $data['host']['name'] . \" (\" . $data['host']['vendor'] . \" - \". $data['host']['model'] . \" - SN:\" . $data['host']['sn'] . \") reported problems. please check details...\\n\";\n }\n\n // some basic system information like vendor, model & serial number..\n echo \"Hypervisor Version: \" . $data['host']['version'] . \"\\n\";\n echo \"Pool role: \" . ($data['is_poolmaster'] == true ? \"Master\" : \"Slave\") . \"\\n\";\n echo \"Vendor: \" . $data['host']['vendor'] . \"\\n\";\n echo \"Model: \" . $data['host']['model'] . \"\\n\";\n echo \"SN: \" . $data['host']['sn'] . \"\\n\";\n echo \"CPU: \" . $data['host']['cpu'] . \"\\n\\n\";\n\n // CPU usage\n echo \"Memory Usage: \" . formatStatus($data['memory']['usage'] . \"%\", $data['memory']['exit_code']) . \" (Free: \" . $data['memory']['free'] . \" GB - Used: \" . $data['memory']['used'] . \" GB - Total: \". $data['memory']['total'] . \" GB)\\n\";\n\n\n foreach ($data['storage'] as $storage)\n {\n // local storage\n if ($storage['type'] == 'ext' || $storage['type'] == 'lvm')\n echo $storage['label'] . \" - Usage: \" . formatStatus($storage['usage'] . \"%\", $storage['exit_code']) . \" (Free: \" . $storage['free'] . \" GB - Used: \" . $storage['used'] . \" GB - Total: \" .$storage['total'] . \" GB)\\n\";\n elseif ($data['is_poolmaster'] == true)\n echo $storage['label'] . \" - Usage: \" . formatStatus($storage['usage'] . \"%\", $storage['exit_code']) . \" (Free: \" . $storage['free'] . \" GB - Used: \" . $storage['used'] . \" GB - Total: \" .$storage['total'] . \" GB)\\n\";\n }\n\n // VMs\n if (!empty($data['guests'] ))\n {\n echo \"\\n<b>Guests on this host:</b>\\n\";\n\n foreach ($data['guests'] as $guest)\n {\n if ($guest['powerstate'] == 'Running')\n echo '<span style=\"color: #66bb6a;\">&#9679;</span> ' . $guest['name'] . \"\\n\";\n \n // VMs not running only for the poolmaster..\n if ($guest['powerstate'] != 'Running' && $data['is_poolmaster'] == true)\n echo '<span style=\"color: #f0666c;\">&#9679;</span> ' . $guest['name'] . \"\\n\";\n }\n }\n\n echo '| \\'memory usage\\'=' . $data['memory']['usage'] . ';' . $params['warning'] . ';' . $params['critical'] . ';0;100';\n\n foreach ($data['storage'] as $storage)\n {\n \n\n $w = round($storage['total'] * $params['warning'] / 100, 2);\n $c = round($storage['total'] * $params['critical'] / 100, 2);\n if ($storage['type'] == 'ext' || $storage['type'] == 'lvm')\n echo ' \\'' . $storage['label'] . '\\'=' . $storage['used'] . ';'. $w . ';' . $c .';0;' . $storage['total']. \"\\n\";\n elseif ($data['is_poolmaster'] == true)\n echo ' \\'' . $storage['label'] . '\\'=' . $storage['used'] . ';'. $w . ';' . $c .';0;' . $storage['total']. \"\\n\";\n }\n\n\n // Performance data\n // | 'CPU1'=16;0;0;; 'CPU2'=7;0;0;; 'CPU3'=6;0;0;;\n\n}", "public function display() {\n\t\techo $this->data;\n\t\treturn;\n\t}", "function main()\n {\n if (gpExists('gp_out')) {\n ob_start();\n $this->mainPull();\n ob_end_clean();\n } else {\n $this->mainHTML();\n }\n }", "protected function outOK()\n\t{\n\t\treturn $this->out('<ok>ok</ok>');\n\t}", "function run($exec) {\n $r = '<pre>';\n try {\n $r .= $exec->run();\n $r .= \"\\nDone!!!!!\\n\";\n } catch (Exception $e) {\n $r .= \"Error!!!!!!!!!!!!\\n\";\n $r .= $e->getMessage();\n }\n $r .= '</pre>';\n\n return $r;\n}", "function fetch()\r\n {\r\n ob_start();\r\n $this->display();\r\n return ob_get_clean();\r\n }", "abstract function run();", "public function outputResults()\r\n {\r\n // loop all products and display results per product\r\n foreach ($this->Products->getAllProducts() as $productId => $productName) {\r\n echo \"Product ID: \" . $productId . \"\\n\";\r\n echo \"Product Name: \" . $productName . \"\\n\";\r\n echo \"Total Units Sold: \" . $this->ProductsSold->getSoldTotal($productId) . \"\\n\";\r\n echo \"Total Units Purchased and Pending: \" . $this->ProductsPurchased->getPurchasedPendingTotal($productId) . \"\\n\";\r\n echo \"Total Units Purchased and Received: \" . $this->ProductsPurchased->getPurchasedReceivedTotal($productId) . \"\\n\";\r\n echo \"Current Stock Level: \" . $this->Inventory->getStockLevel($productId) . \"\\n\\n\";\r\n }\r\n }", "function output($result, $error) {\n\t$return = array();\n\tif (isset($result)) $return['result'] = $result;\n\tif (isset($error)) $return['error'] = $error;\n\techo json_encode($return);\n}", "protected function output_result($res)\n\t{\n\t\tglobal $s_runconf;\n\t\t$nw = get_microtime();\n\n\t\t$this->output_headers();\n\t\techo $res;\n\n\t\tif (DEBUG)\n\t\t{\n\t\t\tdwrite('**[Page processing end]**');\n\t\t\tdwrite('Page processing takes: ' . number_format(($nw - $this->_start_time), 8));\n\t\t\tdwrite('SQL parsing takes: ' . number_format($s_runconf->get('time.sql.parse'), 8));\n\t\t\tdwrite('SQL queries takes: ' . number_format($s_runconf->get('time.sql.query'), 8));\n\t\t\tdwrite('Templates takes: ' . number_format($s_runconf->get('time.template'), 8) . ' (approx, including template loading)');\n\n\t\t\t$debuglog_str = dflush_str();\n\n\t\t\tif (LOG_DEBUG_INFO) {\n\t\t\t\t_log(\"[[ Page info ]]\\n\\n$debuglog_str\\n\\n\");\n\t\t\t}\n\n\t\t\tif ($this->content_type=='text/html' && SHOW_DEBUG_INFO)\n\t\t\t{\n\t\t\t\techo '<div style=\"z-index:99999;position:absolute;top:0;left:0;font-size:10px;font-family:Tahoma;font-weight:bold;background-color:#000;color:#FFF;cursor:pointer;cursor:hand;\"';\n\t\t\t\techo ' onclick=\"var s=document.getElementById(\\'__s_debug__\\').style;s.display=s.display==\\'\\'?\\'none\\':\\'\\';return false;\">#</div>';\n\t\t\t\techo '<div id=\"__s_debug__\" style=\"z-index:99999;position:absolute;top:15px;left:10px;border:1px solid #888;background-color:#FFF;overflow:auto;width:800px;height:300px;display:none;\">';\n\t\t\t\techo '<pre style=\"text-align:left;padding:5px;margin:0;\" class=\"s-debug\">';\n\t\t\t\techo get_debuglog_html($debuglog_str);\n\t\t\t\techo '</pre></div>';\n\t\t\t}\n\t\t}\n\t}", "protected function output($string) {\r\n if ($this->automaticRun) { \r\n $this->textReportContents .= $string;\r\n } else {\r\n echo $string;\r\n } \r\n}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n\n // execute/disptach all routes relates to current request\n if ( isset($this->router) && $this->router instanceof Horus_Router )\n {\n if($this->router->state == false)\n $this->e404();\n else\n $this->output .= $this->router->output;\n }\n\n // trigger after router exec events\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n\n // trigger before output events\n $this->trigger('horus.output.before', array($this));\n\n // trigger output filters\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n\n // only send output if not HEAD request\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') || (print $this->output);\n\n // trigger after output events\n $this->trigger('horus.output.after', array($this));\n\n // end\n @ob_end_flush(); exit;\n }", "public function done();", "public function showResults()\n {\n $tracker = Tracker::getInstance();\n\n $tracker->outputStats();\n if (count($tracker->getFailures())) {\n $tracker->output(\"\\nFAILURES\\n\", null, null, true);\n $tracker->outputFailures();\n }\n\n if (count($tracker->getErrors())) {\n $tracker->output(\"\\nERRORS\\n\");\n $tracker->outputErrors();\n }\n\n $tracker->output(\"\\n\");\n\n if (count($tracker->getFailures())) {\n return;\n }\n\n if ($this->coverageDirectory()) {\n $tracker->output('Generating coverage report as html...' . \"\\n\");\n $this->_generateCoverageHtml();\n return $tracker->output('Done' . \"\\n\");\n }\n\n if ($this->showCoverage()) {\n $this->_generateCoverageCommandLine();\n return;\n }\n }", "abstract protected function _run();", "abstract protected function _run();", "function output( \\Smarty_Internal_Template $template, $results ) {\r\n\t\treturn $template->smarty->fetch( 'string:' . $results->body );\r\n\t}" ]
[ "0.71994966", "0.682085", "0.67650115", "0.67286074", "0.6722422", "0.66884667", "0.66884667", "0.66884667", "0.66884667", "0.66884667", "0.6610536", "0.6589375", "0.65504444", "0.654142", "0.645201", "0.6414973", "0.6318488", "0.6220739", "0.618541", "0.61704904", "0.6167543", "0.6158716", "0.6152147", "0.6082873", "0.60722005", "0.60546017", "0.6032546", "0.6004689", "0.5993067", "0.5966244", "0.5947681", "0.5940175", "0.5912992", "0.5908712", "0.58784443", "0.58725166", "0.58653504", "0.5862228", "0.58488226", "0.58348817", "0.58281136", "0.58244413", "0.5808065", "0.58034956", "0.5800686", "0.5793457", "0.5775817", "0.57613784", "0.57332957", "0.5730377", "0.572958", "0.5729142", "0.5728859", "0.5717257", "0.5700623", "0.56763107", "0.56757975", "0.56732184", "0.56687766", "0.5666218", "0.5666152", "0.5660306", "0.56593394", "0.5655098", "0.56540364", "0.5640702", "0.56395596", "0.5638474", "0.5632339", "0.5632339", "0.56245893", "0.5620173", "0.5620173", "0.5618789", "0.56158036", "0.5608738", "0.56074005", "0.560374", "0.5602318", "0.55995214", "0.55957204", "0.5595586", "0.55770856", "0.5576746", "0.5571068", "0.55704683", "0.55674833", "0.55603683", "0.5559315", "0.55525374", "0.554833", "0.5538275", "0.55374014", "0.5533451", "0.5528591", "0.5528322", "0.5525528", "0.551883", "0.5512826", "0.5512826", "0.55119" ]
0.0
-1
Prepares the environment before running a test.
protected function setUp() { parent::setUp(); $this->saveFactoryState(); JFactory::$session = $this->getMockSession(); JFactory::$application = MockWebServiceApplicationWeb::create($this); $options = array( 'driver' => 'sqlite', 'database' => ':memory:', 'prefix' => 'ws_' ); $driver = JDatabaseDriver::getInstance($options); $pdo = new PDO('sqlite::memory:'); $pdo->exec(file_get_contents(JPATH_TESTS . '/schema/ws.sql')) or die(print_r($pdo->errorInfo())); TestReflection::setValue($driver, 'connection', $pdo); JFactory::$database = $driver; $this->_instance = new WebServiceModelBase(new JContentFactory, $driver); $this->_state = TestReflection::invoke($this->_instance, 'getState'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareRealTestEnvironment() {}", "protected function setUp () : void {\n\n $_ENV['foo'] = \"bar\";\n $_SERVER['foo'] = \"baz\";\n\n $_ENV['bar'] = \"lorem\";\n $_SERVER['baz'] = \"ipsum\";\n\n // And quux isn't defined.\n }", "protected function _before()\n {\n parent::_before();\n\n $this->setUpEnvironment();\n }", "protected function setUp(): void\n {\n $this->setUpTheTestEnvironment();\n }", "public function setUp()\n {\n $this->initTestEnvironment('htpasswd_crypt');\n }", "public function setUp()\n {\n putenv(\"{$this->name}={$this->value}\");\n \n return;\n }", "public function setUp()\n {\n $this->loadEnv();\n\n require_once(__DIR__ . '/functions.php');\n\n // Allows for persistence of array cache to improve test performance,\n // e.g. by caching the LWA token to minimize OAuth requests. If this\n // is not desireable, see implementation of tearDown method below.\n if (!static::$arrayCache instanceof ArrayCache) {\n static::$arrayCache = new ArrayCache();\n }\n }", "protected function prepareEnvironment()\n {\n if ($this -> debug) {\n error_reporting(-1);\n ini_set('display_errors', 1);\n } else {\n error_reporting(0);\n ini_set('display_errors', 0);\n }\n \n mb_internal_encoding('UTF-8');\n \n if ($locale = $this -> config -> get('locale')) {\n setlocale(LC_ALL, $locale);\n }\n \n date_default_timezone_set($this -> config -> get('timezone', 'Europe/London'));\n }", "public static function setup()\n {\n try {\n $env = \\Dotenv\\Dotenv::create(__DIR__ . '/../../private/');\n $env->load();\n $env->required([\n 'ENVIRONMENT',\n ]);\n } catch (\\Exception $e) {\n echo $e;\n }\n }", "protected function setUp()\n\t{\n\t\t$this->username = getenv('DBUSER') ? getenv('DBUSER') : NULL;\n\t\t$this->password = getenv('DBPASS') ? getenv('DBPASS') : NULL;\n\t\tparent::setUp();\n\t}", "protected function setUp()\n {\n $container = include 'config/container.php';\n InsideConstruct::setContainer($container);\n }", "protected function setUp()\n {\n $this->preSetup();\n parent::setUp();\n }", "protected function setUp()\n {\n $this->api_key = getenv('API_KEY');\n $this->api = new Api($this->api_key);\n }", "protected function setUp(): void\n {\n $this->dbSetUp();\n $this->prepareObjects();\n $this->createDummyData();\n }", "function quickSetUp()\n {\n $this->setUp(null, null, null, null, null);\n }", "public function setUp()\n {\n parent::setUp();\n $this->prepareForTests();\n }", "public static function setUpBeforeClass(): void\n {\n // Credentials are only required when the\n // client is used. Save them to restore them after.\n self::$values = [\n 'env_id' => getenv('ALGOLIA_APP_ID'),\n 'env_key' => getenv('ALGOLIA_API_KEY'),\n '_env' => $_ENV,\n '_server' => $_SERVER,\n ];\n\n putenv('ALGOLIA_APP_ID');\n putenv('ALGOLIA_API_KEY');\n unset($_ENV['ALGOLIA_APP_ID']);\n unset($_ENV['ALGOLIA_API_KEY']);\n unset($_SERVER['ALGOLIA_APP_ID']);\n unset($_SERVER['ALGOLIA_API_KEY']);\n }", "protected function setUp()\n {\n // Prepare the playground.\n $zip = new ZipArchive();\n $zip->open(__DIR__.'/resources.zip');\n $zip->extractTo(__DIR__.'/playground');\n }", "protected function prepare(): void\n {\n config(['dluwang-auth.entities.permission' => \\Dluwang\\Auth\\Tests\\Permission::class]);\n $gate = $this->app->make(Gate::class);\n\n $gate->define('permission-test', function($user){\n return true;\n });\n\n $gate->policy(\\Dluwang\\Auth\\Tests\\User::class, UserPolicy::class);\n $this->artisan('dluwang-auth:install');\n $this->artisan('migrate');\n }", "protected function setUpBasicFrontendEnvironment() {}", "public function setUp()\n {\n\n $this->db = Db::getActive();\n $this->response = Response::getActive();\n\n }", "private function initEnvironment() {\n\t\t$env = getenv('APP_ENV');\n\n\t\t$this->_env = ($env !== FALSE) ? $env : 'development';\n\t}", "public function prepare()\n {\n static::startPhantomDriver();\n }", "protected function setUp()\n {\n // base directory for a .env file, and load it if it exists.\n $dotenvDir = __DIR__;\n for ($i = 0; $i < 4; $i++) {\n if (file_exists($dotenvDir.'/.env')) {\n $dotenv = new Dotenv($dotenvDir);\n $dotenv->load();\n break;\n }\n $dotenvDir = dirname($dotenvDir);\n }\n\n $this->memberclicks = new MemberClicks(getenv('MEMBERCLICKS_ORG_ID'), getenv('MEMBERCLICKS_CLIENT_ID'), getenv('MEMBERCLICKS_CLIENT_SECRET'));\n $this->memberclicks->auth();\n }", "public function setUp()\n {\n $this->createApplication();\n parent::setUp();\n //$this->resolveApplicationConsoleKernel($this->app);\n //$this->resolveApplicationHttpKernel($this->app);\n $this->getEnvironmentSetUp($this->app);\n\n $this->migrateUp();\n }", "public static function setUpBeforeClass()\n {\n // Backup the current value to be restored after the tests\n self::$homeLocationBackup = getenv('HOME');\n\n // Get the location of the test Application\n $kernel = new TestKernel('test', true);\n $kernel->boot();\n self::$testHomeLocation = $kernel->getRootDir().DIRECTORY_SEPARATOR.'externals'.DIRECTORY_SEPARATOR.'home';\n\n // Override the current value\n putenv('HOME='.self::getTestHomeLocation());\n }", "public function setUp(): void\n {\n $container = Robo::createDefaultContainer(null, new NullOutput());\n $this->setContainer($container);\n $this->setConfig(Robo::config());\n }", "protected function setupEnvironment()\n {\n Dotenv::create(project_root())->load();\n\n if (!in_array($_SERVER['APP_ENV'], [self::ENV_DEV, self::ENV_PRODUCTION, self::ENV_STAGING, self::ENV_TEST])) {\n throw new RuntimeException(\"Unrecognized application environment\");\n }\n\n $this->debug = (bool) (\n $_SERVER['APP_DEBUG']\n ?? $_SERVER['APP_ENV'] == self::ENV_DEV\n );\n }", "protected function setUp()\n {\n $tempDir = tempnam(sys_get_temp_dir(),'');\n if (file_exists($tempDir)) {\n unlink($tempDir);\n }\n mkdir($tempDir);\n chdir($tempDir);\n exec('unzip '.__DIR__.'/gitRepo.zip');\n exec('git checkout .');\n $this->testDir = $tempDir;\n \n $this->gitFlow = new GitFlow();\n $this->gitFlow->setDryRun(true);\n }", "protected function setUp() {\n\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\t}", "protected function setUp() {\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\t}", "protected function setUp() {\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\t}", "public function setUp ( )\n {\n $this->bootstrap = new Zend_Application(\n APPLICATION_ENV, ROOT_PATH . '/etc/application.ini'\n );\n\n parent::setUp();\n }", "public function setUp ( )\n {\n $this->bootstrap = new Zend_Application(\n APPLICATION_ENV, ROOT_PATH . '/etc/application.ini'\n );\n\n parent::setUp();\n }", "protected function setUp()\n {\n if ($this->bootstrap) require $this->bootstrap;\n $this->dispatcher->dispatch('test.before', new \\Codeception\\Event\\Test($this));\n $this->codeGuy = new CodeGuy($scenario = new \\Codeception\\Scenario($this));\n $scenario->run();\n }", "public function setUp()\n\t{\n\t\tif ( ! $this->app)\n\t\t{\n\t\t\t$this->refreshApplication();\n\t\t}\n\t}", "protected function setUp(): void\n {\n $publicPath = __DIR__ . '/../../src/Provider/public/';\n\n $this->processRunner = new ProcessRunner('php', ['-S', 'localhost:7202', '-t', $publicPath]);\n\n $this->processRunner->run();\n }", "protected function setUp()\n {\n $tempDir = tempnam(sys_get_temp_dir(),'');\n if (file_exists($tempDir)) {\n unlink($tempDir);\n }\n mkdir($tempDir);\n chdir($tempDir);\n exec('unzip '.__DIR__.'/gitRepo.zip');\n exec('git checkout .');\n $this->testDir = $tempDir;\n }", "protected function setUp() : void\n {\n parent::setUp();\n\n PreParser::reset();\n }", "public function setUp() {\n $this->setUpSiteAuditTestEnvironment();\n }", "public function setUp() {\n\t\tparent::setUp();\n\n\t\t$_GET = array();\n\t\t$_POST = array();\n\t}", "protected function setUp()\n {\n parent::setUp();\n\n $this->checkExtension('phalcon');\n\n // Creating the application\n $this->bootstrap = new Bootstrap(self::getConfig());\n $this->app = $this->bootstrap->make($this->kernel());\n $this->app->boot();\n }", "public static function setUpBeforeClass() {\n global $app;\n\n Debug::enable();\n\n $app = new \\Silex\\Application();\n\n require 'config/test.php'; /* seperate config for the test db */\n require 'src/app.php';\n\n self::createSchema();\n\n $app['session.test'] = true;\n\n }", "public function before()\n\t\t{\n\t\t\t$this->config\t\t= Kohana::$environment;\n\t\t}", "protected function setUp()\n {\n parent::setUp();\n\n $run = dirname(__FILE__) . '/_run';\n if (file_exists($run) === false) {\n mkdir($run, 0755);\n }\n\n $this->_clearRunResources($run);\n\n include_once 'PHP/Depend.php';\n include_once 'PHP/Depend/StorageRegistry.php';\n include_once 'PHP/Depend/Storage/MemoryEngine.php';\n\n PHP_Depend_StorageRegistry::set(\n PHP_Depend::TOKEN_STORAGE,\n new PHP_Depend_Storage_MemoryEngine()\n );\n PHP_Depend_StorageRegistry::set(\n PHP_Depend::PARSER_STORAGE,\n new PHP_Depend_Storage_MemoryEngine()\n );\n\n if (defined('STDERR') === false) {\n define('STDERR', fopen('php://stderr', true));\n }\n }", "public function setup_environment() {\n\n define( 'IWJ_TEMPLATE_PATH', $this->template_path() );\n\n //$this->add_thumbnail_support();\n //$this->add_image_sizes();\n }", "protected function setup(): void\n {\n $kernel = self::bootKernel();\n $application = new Application($kernel);\n\n // get entity manager\n $this->em = $kernel->getContainer()->get('doctrine')->getManager();\n\n // get serializer\n $this->serializer = $kernel->getContainer()->get('serializer');\n\n // init command\n $application->add(\n new ImportCommand(\n $this->em,\n $this->serializer\n )\n );\n\n $command = $application->find('app:import');\n $this->commandTester = new CommandTester($command);\n }", "protected function doSetup(): void\n {\n }", "protected function setUp() {\n parent::setUp();\n Monkey\\setUp();\n }", "public function preTesting() {}", "protected function setUp() {\n $this->stack = new Stack();\n }", "function setUp() {\n\t\t$this->originalIsRunningTest = self::$is_running_test;\n\t\tself::$is_running_test = true;\n\t\t\n\t\t// i18n needs to be set to the defaults or tests fail\n\t\ti18n::set_locale(i18n::default_locale());\n\t\ti18n::set_date_format(null);\n\t\ti18n::set_time_format(null);\n\t\t\n\t\t// Remove password validation\n\t\t$this->originalMemberPasswordValidator = Member::password_validator();\n\t\t$this->originalRequirements = Requirements::backend();\n\t\tMember::set_password_validator(null);\n\t\tCookie::set_report_errors(false);\n\t\t\n\t\tif(class_exists('RootURLController')) RootURLController::reset();\n\t\tif(class_exists('Translatable')) Translatable::reset();\n\t\tVersioned::reset();\n\t\tDataObject::reset();\n\t\tif(class_exists('SiteTree')) SiteTree::reset();\n\t\tHierarchy::reset();\n\t\tif(Controller::has_curr()) Controller::curr()->setSession(new Session(array()));\n\t\t\n\t\t$this->originalTheme = SSViewer::current_theme();\n\t\t\n\t\tif(class_exists('SiteTree')) {\n\t\t\t// Save nested_urls state, so we can restore it later\n\t\t\t$this->originalNestedURLsState = SiteTree::nested_urls();\n\t\t}\n\n\t\t$className = get_class($this);\n\t\t$fixtureFile = eval(\"return {$className}::\\$fixture_file;\");\n\t\t$prefix = defined('SS_DATABASE_PREFIX') ? SS_DATABASE_PREFIX : 'ss_';\n\n\t\t// Set up fixture\n\t\tif($fixtureFile || $this->usesDatabase || !self::using_temp_db()) {\n\t\t\tif(substr(DB::getConn()->currentDatabase(), 0, strlen($prefix) + 5) != strtolower(sprintf('%stmpdb', $prefix))) {\n\t\t\t\t//echo \"Re-creating temp database... \";\n\t\t\t\tself::create_temp_db();\n\t\t\t\t//echo \"done.\\n\";\n\t\t\t}\n\n\t\t\tsingleton('DataObject')->flushCache();\n\t\t\t\n\t\t\tself::empty_temp_db();\n\t\t\t\n\t\t\tforeach($this->requireDefaultRecordsFrom as $className) {\n\t\t\t\t$instance = singleton($className);\n\t\t\t\tif (method_exists($instance, 'requireDefaultRecords')) $instance->requireDefaultRecords();\n\t\t\t\tif (method_exists($instance, 'augmentDefaultRecords')) $instance->augmentDefaultRecords();\n\t\t\t}\n\n\t\t\tif($fixtureFile) {\n\t\t\t\t$pathForClass = $this->getCurrentAbsolutePath();\n\t\t\t\t$fixtureFiles = (is_array($fixtureFile)) ? $fixtureFile : array($fixtureFile);\n\n\t\t\t\t$i = 0;\n\t\t\t\tforeach($fixtureFiles as $fixtureFilePath) {\n\t\t\t\t\t// Support fixture paths relative to the test class, rather than relative to webroot\n\t\t\t\t\t// String checking is faster than file_exists() calls.\n\t\t\t\t\t$isRelativeToFile = (strpos('/', $fixtureFilePath) === false || preg_match('/^\\.\\./', $fixtureFilePath));\n\t\t\t\t\tif($isRelativeToFile) {\n\t\t\t\t\t\t$resolvedPath = realpath($pathForClass . '/' . $fixtureFilePath);\n\t\t\t\t\t\tif($resolvedPath) $fixtureFilePath = $resolvedPath;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$fixture = new YamlFixture($fixtureFilePath);\n\t\t\t\t\t$fixture->saveIntoDatabase();\n\t\t\t\t\t$this->fixtures[] = $fixture;\n\n\t\t\t\t\t// backwards compatibility: Load first fixture into $this->fixture\n\t\t\t\t\tif($i == 0) $this->fixture = $fixture;\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this->logInWithPermission(\"ADMIN\");\n\t\t}\n\t\t\n\t\t// Set up email\n\t\t$this->originalMailer = Email::mailer();\n\t\t$this->mailer = new TestMailer();\n\t\tEmail::set_mailer($this->mailer);\n\t\tEmail::send_all_emails_to(null);\n\t\t\n\t\t// Preserve memory settings\n\t\t$this->originalMemoryLimit = ini_get('memory_limit');\n\t}", "protected function setUp()\n {\n $this->request = new Request();\n $this->response = new Response();\n\n $this->request->load();\n $this->response->load();\n }", "protected function setUp()\n {\n $this->request = new Request();\n $this->response = new Response();\n\n $this->request->load();\n $this->response->load();\n }", "public function setUp()\n {\n $this->bootstrap = new Zend_Application(\n APPLICATION_ENV,\n APPLICATION_PATH . '/configs/application.ini'\n );\n parent::setUp();\n }", "public function setUp()\n {\n require_once 'Zend/Application.php';\n\n // Create application, bootstrap, and run\n $application = new \\Zend_Application(\n APPLICATION_ENV,\n GEMS_ROOT_DIR . '/configs/application.example.ini'\n );\n\n $this->bootstrap = $application;\n\n parent::setUp();\n }", "function initializer() {\n init_env();\n }", "public function setup()\n {\n $this->app = new Application(BASE_PATH, Environment::testing());\n\n // Create a test double for our User entity\n $user = m::mock('OpenCFP\\Domain]Entity\\User');\n $user->shouldReceive('hasPermission')->with('admin')->andReturn(1);\n $user->shouldReceive('getId')->andReturn(1);\n $user->shouldReceive('hasAccess')->with('admin')->andReturn(true);\n\n // Create a test double for our Sentry object\n $sentry = m::mock('Cartalyst\\Sentry\\Sentry');\n $sentry->shouldReceive('check')->andReturn(true);\n $sentry->shouldReceive('getUser')->andReturn($user);\n $this->app['sentry'] = $sentry;\n $this->app['user'] = $user;\n }", "#[Before]\n public function setUp() {\n $this->environment= new Environment([\n 'http_proxy' => null,\n 'HTTP_PROXY' => null,\n 'https_proxy' => null,\n 'HTTPS_PROXY' => null,\n 'no_proxy' => null,\n 'NO_PROXY' => null,\n 'all_proxy' => null,\n 'ALL_PROXY' => null\n ]);\n }", "protected function setUp(): void\n {\n $this->request = new CreateDomain();\n }", "public function setUp()\n {\n if ( ! $this->app)\n {\n $this->refreshApplication();\n }\n }", "protected function setUp()\n {\n Kohana::config('database')->default = Kohana::config('database')\n ->unit_testing;\n Auth::instance()->login(TEST_USERNAME, TEST_PASSWORD);\n\n // Index data and start up the search daemon\n exec('indexer --all --config ' . SPHINX_CONF);\n exec('searchd --config ' . SPHINX_CONF);\n }", "protected function SetUp(): void\n {\n parent::setUp();\n $user = factory(User::class)->create();\n $this->be($user);\n }", "public static function setupBeforeClass()\n\t// @codingStandardsIgnoreEnd\n\t{\n\t\tself::$old_modules = Kohana::modules();\n\n\t\t$new_modules = self::$old_modules+[\n\t\t\t'test_views' => realpath(dirname(__FILE__).'/../test_data/')\n\t\t];\n\t\tKohana::modules($new_modules);\n\t}", "public function setUp(): void\n {\n // https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_environment.html\n putenv('AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE');\n putenv('AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY');\n }", "protected function setUp() {\n\n $this->client = new Client(['base_uri' => getenv('API_ADDR')]);\n $this->locIDs = $this->insertTestLocations();\n reuse_generateXML();\n }", "protected function setUp(): void\n\t{\n\t\t$this->object = new SmartyAdapter;\n\t}", "private function setup()\n {\n $home = getenv('PHLEXGET_HOME');\n $cacheDir = getenv('PHLEXGET_CACHE_DIR');\n if (!$home) {\n if (defined('PHP_WINDOWS_VERSION_MAJOR')) {\n $home = strtr(getenv('APPDATA'), '\\\\', '/') . '/Phlexget';\n } else {\n $home = rtrim(getenv('HOME'), '/') . '/.phlexget';\n }\n }\n if (!$cacheDir) {\n if (defined('PHP_WINDOWS_VERSION_MAJOR')) {\n if ($cacheDir = getenv('LOCALAPPDATA')) {\n $cacheDir .= '/Phlexget';\n } else {\n $cacheDir = getenv('APPDATA') . '/Phlexget/cache';\n }\n $cacheDir = strtr($cacheDir, '\\\\', '/');\n } else {\n $cacheDir = $home.'/cache';\n }\n }\n\n // Protect directory against web access. Since HOME could be\n // the www-data's user home and be web-accessible it is a\n // potential security risk\n foreach (array($home, $cacheDir) as $dir) {\n if (!file_exists($dir . '/.htaccess')) {\n if (!is_dir($dir)) {\n @mkdir($dir, 0777, true);\n }\n @file_put_contents($dir . '/.htaccess', 'Deny from all');\n }\n }\n\n $this->homeDir = $home;\n $this->cacheDir = $cacheDir;\n }", "public function setUp()\n\t{\n\t\t$this->prepare_tables(\n\t\t\t'Model_User', \n\t\t\t'Model_Role', \n\t\t\t'Model_Roles_Users', \n\t\t\t'Model_User_Token'\n\t\t\t);\n\t}", "public function setUp(): void\n {\n parent::setUp();\n $this->setupTestDatabase();\n\n if ($this->usingInMemoryDatabase()) {\n\n // Setup database, then setup User & default role\n $this->refreshDatabase();\n $this->setupUser();\n } elseif (!static::$initialized) {\n\n // Only refresh db once\n $this->refreshDatabase();\n static::$initialized = true;\n }\n }", "protected function setUp(): void\n {\n parent::setUp();\n\n $this->setUpToolsAliases(true);\n $this->setUpToolsModels();\n $this->setUpToolsDB();\n }", "private function setupApplicationEnvironment(){\n\n // TODO: MAKE MORE EFFICENT WITH CACHING\n if($this->version == null)\n $this->version = env('PAYPAL_VERSION', 'dev-2.0-beta');\n\n if($this->endpoint == null)\n $this->endpoint = env('PAYPAL_ENDPOINT');\n \n if($this->username == null)\n $this->username = env('PAYPAL_USERNAME');\n\n if($this->password == null)\n $this->password = env('PAYPAL_PASSWORD');\n\n if($this->signature == null)\n $this->signature = env('PAYPAL_SIGNATURE');\n\n if($this->isDirect == null)\n $this->isDirect = env('PAYPAL_DIRECT', true);\n\n if($this->payment_method == null) \n $this->payment_method = ($this->isDirect) ? Objects::CREDIT_CARD : env('PAYMENT_METHOD');\n\n // Set our enviornment based on production or development\n $this->environment = (!$this->isDevelopment) ? new ProductionEnvironment() : new SandboxEnvironment();\n\n $this->client = new PayPalHttpClient($this->environment);\n\n }", "protected function setUp(): void\n {\n $this->container = new Container();\n }", "public function init()\n {\n $this->setEnv();\n }", "public final function setUp() {\n\t\t// run the default setUp() method first\n\t\tparent::setUp();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp(): void\n\t{\n\t\t$this->auth = new Arifrh\\Auth\\Auth();\n\t\t$this->auth->testMode();\n\t}", "public function setUp()\n {\n $this->fs = new Filesystem();\n $this->cacheDir = __DIR__ . '/cache';\n if ($this->fs->exists($this->cacheDir)) {\n $this->fs->remove($this->cacheDir);\n }\n\n $this->cache = new ConfigFileScriptCache($this->cacheDir, true);\n }", "public function setUp() : void\n {\n Config::setCategory('paths', [\n 'configs' => realpath(__DIR__ . '/../../configs'),\n 'root' => realpath(__DIR__ . '/../../../../../..'),\n 'src' => realpath(__DIR__ . '/../../../../../../src')\n ]);\n // Purposely set this to a weird value so we can test that it gets overwritten with the \"test\" environment\n $this->environment = new Environment();\n $this->container = new Container();\n $this->container->bindInstance(Environment::class, $this->environment);\n $this->container->bindInstance(BootstrapperCache::class, $this->createMock(BootstrapperCache::class));\n $this->container->bindInstance(RouteCache::class, $this->createMock(RouteCache::class));\n $this->container->bindInstance(ViewCache::class, $this->createMock(ViewCache::class));\n $this->container->bindInstance(IMigrator::class, $this->createMock(IMigrator::class));\n $this->container->bindInstance(FixMigrationsCommand::class, $this->createMock(FixMigrationsCommand::class));\n $this->container->bindInstance(IContainer::class, $this->container);\n\n // Setup the bootstrappers\n $bootstrapperRegistry = new BootstrapperRegistry();\n $bootstrapperDispatcher = new BootstrapperDispatcher(\n $this->container,\n $bootstrapperRegistry,\n new BootstrapperResolver()\n );\n $bootstrapperRegistry->registerEagerBootstrapper(self::$bootstrappers);\n $bootstrapperDispatcher->dispatch(false);\n\n parent::setUp();\n }", "public function setUp()\n {\n\n $this->XMLtools = GeneralUtility::makeInstance(XmlTools::class);\n }", "protected function setUp(): void\n {\n if (!$this->slim) {\n $this->refreshApplication();\n }\n\n Facade::clearResolvedInstances();\n }", "function setUp() {\n\t\t\n\t}", "function setUp() {\n\t\t\n\t}", "protected function setUp(): void\n {\n\n parent::setUp();\n\n // Code after application created.\n $this->withoutExceptionHandling();\n }", "protected function setUp(): void {\n\t\trequire_once( dirname( __FILE__ ) . '/../vendor/aliasapi/frame/client/create_client.php' );\n\t\trequire_once( dirname( __FILE__ ) . '/TestHelpers.php' );\n\t\trequire_once( dirname( __FILE__ ) . '/TestParameters.php' );\n\n\t\tTestHelpers::prepareDatabaseConfigs();\n\t\tClient\\create_client( 'money' );\n\n\t\t$this->http_client = new GuzzleHttp\\Client( [ 'base_uri' => 'http://money/' ] );\n\t\t$this->process_tag = 'refund_purchase_from';\n\t\t$this->tag = 'refund_purchase_to';\n\t}", "protected function setUp(): void\n {\n parent::setUp();\n\n $this->setUpToolsAliases(true);\n $this->setUpToolsRoutes();\n $this->setUpToolsModels();\n }", "protected function setUp()\n {\n parent::setUp();\n $this->prepareContextApiMock();\n }", "protected function setup() {\n $this->state[\"user\"] = $this->env->get_test_user();\n $this->env->log_user_in($this->state[\"user\"]->username);\n $this->state[\"fields\"] = array(\n \"token\" => str_repeat(\"0\", 64),\n \"uuid\" => str_repeat(\"0\", 36)\n );\n }", "public final function setUp() {\n\t\t//run the default setUp() method first\n\t\tparent::setUp();\n\t}", "protected function setUp(): void\n {\n parent::setUp();\n\n $this->setPaths();\n\n $this->files = new Filesystem();\n\n if (!is_dir(env_path())) {\n mkdir(env_path());\n }\n\n copy(__DIR__ . '/../.env.example',env_path('.env'));\n\n $this->artisan('vendor:publish',['--provider' => 'Gecche\\Multidomain\\Foundation\\Providers\\DomainConsoleServiceProvider']);\n\n\n }", "public function setup() {}", "public static function setUpBeforeClass(): void\n {\n // boot kernel, so we have access to self::$kernel\n self::bootKernel();\n }", "private function _initEnvironment()\n {\n App_Utf8::clean_globals();\n App_Input::instance();\n ini_set('log_errors', true);\n if('development' === APPLICATION_ENV){\n ini_set('display_errors', true);\n error_reporting(E_ALL | E_STRICT);\n }\n else{\n ini_set('display_errors', false);\n error_reporting(E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_ERROR | E_CORE_ERROR);\n }\n umask(0);\n }", "public function setUp()\n\t{\n\t\tparent::setUp();\n\n\t\t$this->user = \\Orchestra\\Model\\User::find(1);\n\t\t$this->stub = \\Orchestra\\Memory::make('user');\n\t}", "function setUp() {\n\t\t$this->originalIsRunningTest = self::$is_running_test;\n\t\tself::$is_running_test = true;\n\t\t\n\t\t// Remove password validation\n\t\t$this->originalMemberPasswordValidator = Member::password_validator();\n\t\t$this->originalRequirements = Requirements::backend();\n\t\tMember::set_password_validator(null);\n\t\tCookie::set_report_errors(false);\n\n\t\t$className = get_class($this);\n\t\t$fixtureFile = eval(\"return {$className}::\\$fixture_file;\");\n\t\t\n\t\t// Set up fixture\n\t\tif($fixtureFile) {\n\t\t\tif(substr(DB::getConn()->currentDatabase(),0,5) != 'tmpdb') {\n\t\t\t\t//echo \"Re-creating temp database... \";\n\t\t\t\tself::create_temp_db();\n\t\t\t\t//echo \"done.\\n\";\n\t\t\t}\n\n\t\t\t// This code is a bit misplaced; we want some way of the whole session being reinitialised...\n\t\t\tVersioned::reading_stage(null);\n\n\t\t\tsingleton('DataObject')->flushCache();\n\n\t\t\t$dbadmin = new DatabaseAdmin();\n\t\t\t$dbadmin->clearAllData();\n\t\t\t\n\t\t\t// We have to disable validation while we import the fixtures, as the order in\n\t\t\t// which they are imported doesnt guarantee valid relations until after the\n\t\t\t// import is complete.\n\t\t\t$validationenabled = DataObject::get_validation_enabled();\n\t\t\tDataObject::set_validation_enabled(false);\n\t\t\t$this->fixture = new YamlFixture($fixtureFile);\n\t\t\t$this->fixture->saveIntoDatabase();\n\t\t\tDataObject::set_validation_enabled($validationenabled);\n\t\t}\n\t\t\n\t\t// Set up email\n\t\t$this->originalMailer = Email::mailer();\n\t\t$this->mailer = new TestMailer();\n\t\tEmail::set_mailer($this->mailer);\n\t}", "protected function setUp(): void\n {\n // store current error_reporting value as we may change it\n // in a test\n $this->currentErrorReporting = error_reporting();\n $this->statement = new Statement();\n }", "protected function setUp()\n {\n global $testCase;\n $testCase = 'table_for_test';\n\n $this->container = include './config/container.php';\n $this->store = $this->container->get(StoreFactory::KEY);\n }" ]
[ "0.82821167", "0.7452954", "0.70892984", "0.70869714", "0.70166075", "0.6992887", "0.6949919", "0.69022274", "0.68586093", "0.68519455", "0.6753133", "0.6744498", "0.6690241", "0.6676723", "0.6672192", "0.66713136", "0.66680986", "0.66636944", "0.665294", "0.66234285", "0.6605587", "0.65868425", "0.65693825", "0.6564497", "0.65585107", "0.65499014", "0.65369475", "0.6533186", "0.652278", "0.6517099", "0.65157914", "0.65157914", "0.65093416", "0.65093416", "0.6502759", "0.6499395", "0.6494553", "0.64777046", "0.64688146", "0.64656395", "0.64654917", "0.6461199", "0.64481086", "0.6447918", "0.64461166", "0.6435375", "0.6412081", "0.64072263", "0.63993263", "0.6392161", "0.6388305", "0.6388079", "0.6382118", "0.6382118", "0.63782656", "0.63782144", "0.6368705", "0.6355683", "0.6353899", "0.6351094", "0.6349309", "0.6337486", "0.6335598", "0.63343495", "0.63243735", "0.6324227", "0.6318667", "0.63154864", "0.6312356", "0.63117015", "0.6309011", "0.6308689", "0.63028485", "0.6293912", "0.62841237", "0.6281227", "0.6281227", "0.6281227", "0.6281227", "0.6281227", "0.6281223", "0.6280889", "0.62794524", "0.62744", "0.62738013", "0.6271051", "0.6271051", "0.6270374", "0.62698495", "0.62681764", "0.62675905", "0.62661207", "0.6263026", "0.62586313", "0.6257606", "0.6257033", "0.62549365", "0.6250473", "0.6249775", "0.6248593", "0.6248576" ]
0.0
-1
Cleans up the environment after running a test.
protected function tearDown() { $this->_instance = null; $this->restoreFactoryState(); parent::tearDown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tearDown(): void\n {\n unset($_SERVER['foo'], $_ENV['foo']);\n }", "public function tearDown(): void\n {\n self::$environ->cleanupTestUploadFiles();\n self::$environ->clean();\n }", "protected function tearDown(): void\n {\n $this->config = null;\n $this->container = null;\n $this->instance = null;\n }", "public function tearDown()\n {\n $this->flushModelEventListeners();\n parent::tearDown();\n unset($this->app);\n\n /*\n * Restore environment\n */\n if (file_exists(base_path($this->envTestingFile())) && file_exists(base_path('.env.backup'))) {\n $this->restoreEnvironment();\n }\n }", "public function tearDown()\n {\n $this->app = null;\n }", "public function tearDown(): void {\n // Remove any temporary directories that were created.\n $filesystem = new Filesystem();\n foreach ($this->tmpDirs as $dir) {\n $filesystem->remove($dir);\n }\n // Clear out variables from the previous pass.\n $this->tmpDirs = [];\n $this->io = NULL;\n // Clear the composer cache dir, if it was set\n putenv('COMPOSER_CACHE_DIR=');\n }", "protected function tearDown(): void {\n unset($this->integration);\n unset($this->ccm);\n unset($this->session);\n }", "protected function tearDown(): void\n\t{\n\t\tglobal $modSettings;\n\n\t\t// remove temporary test data\n\t\tunset($modSettings);\n\t}", "public function tearDown()\n {\n unset($this->psrContextFactory);\n }", "protected function tearDown()\n {\n exec('rm -rf '.$this->testDir);\n chdir(__DIR__);\n }", "protected function tearDown()\n {\n exec('rm -rf '.$this->testDir);\n chdir(__DIR__);\n }", "public function tearDown()\n {\n unset($this->_standardLib);\n unset($this->_daughter);\n }", "function __destruct() {\n if ($this->testDir) {\n $this->eraseTempDir();\n }\n $this->unsetMockSession();\n }", "protected function tearDown() {\n $this->stack = null;\n }", "protected function tearDown(): void\n {\n $this->tearDownTheTestEnvironment();\n }", "public function tearDown() {\n $this->container = null;\n $this->model = null;\n $this->request = null;\n $this->response = null;\n $this->responseHeaders = null;\n $this->responseWriter = null;\n }", "public function tearDown(): void\n {\n parent::tearDown();\n unset($this->filesystem);\n unset($this->diskSpace);\n unset($this->commandTester);\n }", "public function tearDown()\n {\n unset($this->db);\n unset($this->statement);\n unset($this->mockData);\n }", "public function tearDown(): void\n {\n parent::tearDown();\n unset($this->purifier);\n unset($this->em);\n unset($this->objectiveManager);\n unset($this->learningMaterialManager);\n unset($this->courseLearningMaterialManager);\n unset($this->sessionLearningMaterialManager);\n unset($this->sessionDescriptionManager);\n unset($this->commandTester);\n }", "protected function setUp()\n {\n parent::setUp();\n\n $this->cleanup();\n }", "public function tearDown() {\n $this->container = null;\n }", "protected function tearDown() {\n\t\t$this->Application = null;\n\t\tparent::tearDown ();\n\t}", "public function tearDown() {\n\t\tif(is_dir('/tmp/clara')) {\n\t\t\t$this->rrmdir('/tmp/clara');\n\t\t}\n\t}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function teardown()\n {\n //\n }", "protected function tearDown(): void\n {\n $this->provider = null;\n $this->response = null;\n }", "public function teardown()\n {\n }", "protected function tearDown()\n {\n session_destroy(); //req'd because Kml class sets a cookie\n $this->clearRequest();\n $this->clearTmpFiles();\n }", "public function tearDown()\n {\n parent::tearDown();\n\n if ((bool) getenv('CLEANUP_TEST_DOCKER_SECRETS')) {\n DockerSecretFile::cleanup();\n }\n }", "public function tearDown()\n {\n $fs = new SymfonyFileSystem();\n $fs->remove($this->fakeTestFileDir);\n\n unset($this->builder);\n unset($this->builder);\n unset($this->fs);\n m::close();\n }", "protected function tearDown()\n {\n \\RPI\\Foundation\\Helpers\\FileUtils::delTree(__DIR__.\"/LESSPHPTest/ROOT\");\n }", "protected function tearDown()\n {\n if ($this->app) {\n foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {\n call_user_func($callback);\n }\n }\n\n $this->setUpHasRun = false;\n\n if (property_exists($this, 'serverVariables')) {\n $this->serverVariables = [];\n }\n\n if (class_exists('Mockery')) {\n Mockery::close();\n }\n\n $this->afterApplicationCreatedCallbacks = [];\n $this->beforeApplicationDestroyedCallbacks = [];\n }", "protected function tearDown()\n {\n self::delTree(__DIR__.'/playground');\n }", "protected function tearDown()\n {\n $this->compilerPass = null;\n $this->container = null;\n parent::tearDown();\n }", "protected function tearDown()\r\n {\r\n DirectoryManager::recursiveRemoveDir('data/tests');\r\n }", "protected function tearDown()\n {\n $this->kernel->shutdown();\n $this->kernel = null;\n parent::tearDown();\n }", "protected function tearDown() {\r\n\t\tunset ( $this->configReader );\r\n\t}", "public function tearDown() {\n $this->command = null;\n }", "protected function tearDown() {\n\n $this->client = null;\n $this->deleteTestLocations();\n $this->locIDs = null;\n reuse_generateXML();\n }", "public function tearDown()\n {\n unset(\n $this->plugins,\n $this->events,\n $this->connection,\n $this->config\n );\n }", "protected function tearDown()\n {\n $this->calculator = NULL;\n }", "public function tearDown() {\n $this->resource = null;\n $this->response = null;\n $this->database = null;\n $this->storage = null;\n $this->event = null;\n $this->manager = null;\n }", "public static function tearDownAfterClass()\n {\n if (null !== static::$kernel) {\n static::$kernel->shutdown();\n }\n }", "public function tearDown(): void\n {\n parent::tearDown();\n\n Mockery::close();\n\n unset($this->faker, $this->waqi);\n }", "public function tearDown()\n {\n unset($this->filterRepositoryMock);\n unset($this->notificationContextManagerMock);\n unset($this->notificationTranslatorMock);\n unset($this->filterManager);\n }", "public static function tearDownAfterClass() {\n \t\tApp::build();\n \t}", "protected function tearDown() {\n\t\tparent::tearDown();\n\n\t\t$this->cleanupTestDirectory();\n\t}", "protected function tearDown(): void\n {\n Storage::disk('work_dir')->delete('containers');\n parent::tearDown();\n }", "protected function tearDown()\n {\n Phlash::clear();\n }", "public function tearDown() {\n\t\tFixtures::clear('db');\n\t\tGalleries::reset();\n\t\tImages::reset();\n\t}", "public static function tearDown()\n {\n self::init();\n\n // Handle current_user placing on the end since there are some things\n // that need current user for the clean up\n if (isset(self::$registeredVars['current_user'])) {\n $cu = self::$registeredVars['current_user'];\n unset(self::$registeredVars['current_user']);\n self::$registeredVars['current_user'] = $cu;\n }\n\n // unregister variables in reverse order in order to have dependencies unregistered after dependants\n $unregisterVars = array_reverse(self::$registeredVars);\n foreach ($unregisterVars as $varName => $isCalled) {\n if ($isCalled) {\n unset(self::$registeredVars[$varName]);\n if (method_exists(__CLASS__, 'tearDown_' . $varName)) {\n call_user_func(__CLASS__ . '::tearDown_' . $varName, array());\n } elseif (isset($GLOBALS[$varName])) {\n unset($GLOBALS[$varName]);\n }\n }\n }\n\n // Restoring of system variables\n foreach (self::$initVars as $scope => $vars) {\n foreach ($vars as $name => $value) {\n $GLOBALS[$name] = $value;\n }\n }\n\n // Restore the activity stream.\n Activity::enable();\n\n // Restoring of theme\n SugarThemeRegistry::set(self::$systemVars['SugarThemeRegistry']->dirName);\n SugarCache::$isCacheReset = false;\n\n return true;\n }", "public function tearDown()\n\t{\n\t\tunset($this->target);\n\t}", "protected function tearDown() {\r\n\t\t$this->dbh = null;\r\n\t\t$this->storage = null;\r\n\t\tparent::tearDown ();\r\n\t}", "protected function tearDown(): void {\n\t\t$this->http_client = null;\n\t\t$this->process_transactions = array();\n\n\t\tif ( ! empty( $this->transactions ) ) {\n\t\t\t$this->transactions = array();\n\n\t\t\tCrudTable\\delete_rows( 'transactions', $this->key_pairs, 100 );\n\n\t\t\t$this->key_pairs['tag'] = $this->tag;\n\t\t\tCrudTable\\delete_rows( 'transactions', $this->key_pairs, 100 );\n\n\t\t\tTestHelpers::removeJsonFile( $this->process_tag );\n\t\t\tTestHelpers::removeJsonFile( $this->tag );\n\t\t}\n\t}", "public function cleanUp();", "public function cleanUp();" ]
[ "0.7499918", "0.7465399", "0.7313867", "0.7240087", "0.72257245", "0.72239214", "0.71817493", "0.71759856", "0.7174705", "0.71517044", "0.71517044", "0.715084", "0.71412283", "0.7115216", "0.71096313", "0.7072444", "0.70685935", "0.7056217", "0.7027916", "0.7005705", "0.70002717", "0.6995618", "0.69926155", "0.69753027", "0.69753027", "0.69753027", "0.69753027", "0.69753027", "0.69753027", "0.69753027", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69744694", "0.69742393", "0.69742393", "0.69742393", "0.69742393", "0.69742393", "0.69742393", "0.6961158", "0.69544494", "0.69416827", "0.69331", "0.69323254", "0.6930772", "0.6916635", "0.6914887", "0.6910421", "0.6900625", "0.6870975", "0.6865799", "0.6861332", "0.686042", "0.68589056", "0.68566346", "0.68304664", "0.68121403", "0.6803723", "0.67923385", "0.6791619", "0.67826396", "0.6782222", "0.6779438", "0.6772402", "0.67696434", "0.6767691", "0.67665786", "0.67603624", "0.67598873", "0.67574733", "0.67574733" ]
0.0
-1
Provides test data for getItem()
public function seedGetItem() { // Id, Type, Expected, Exception return array( array('1', 'general', '1', null), array(null, 'general', null, 'InvalidArgumentException'), array('1', null, '1', null), array('-1', null, null, 'UnexpectedValueException'), array('-1', 'general', false, null) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function test_prepare_item() {}", "function getItem() ;", "public function getItem() {}", "public function getItem() {}", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "abstract public function getItem();", "public function getItem();", "public function testGetTimesheetItem() {\n\n\n $result = $this->timesheetDao->getTimesheetItem(1, 2);\n\n $this->assertEquals(3, count($result));\n\n $timesheetItem = $result[0];\n\n $this->assertEquals(\"2011-04-10\", $timesheetItem['date']);\n $this->assertEquals(1000, $timesheetItem['duration']);\n $this->assertEquals(\"Poor\", $timesheetItem['comment']);\n }", "public function getItemData() {\n return array(\n 'itemSku' => $this->itemSku,\n 'itemQty' => $this->itemQty,\n 'itemDisc' => $this->itemDisc,\n 'itemMaxDisc' => $this->itemMaxDisc,\n 'rewardRatio' => $this->rewardRatio\n );\n }", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "protected function _getItemsData()\n {\n return array();\n }", "public function testGetItem()\n {\n $datastore = $this->container->get('datastore');\n $logger = $this->container->get('logger');\n\n $repo = $this->getMockBuilder(DataStoreRepository::class)\n ->setConstructorArgs([$datastore, $logger])\n ->getMock();\n\n $repo->method('getItem')\n ->will($this->returnValue([\n 'id' => 1,\n 'name' => 'Test',\n 'user_id' => 1,\n 'body' => 'Fixture'\n ]));\n\n $service = new Service($repo, $logger);\n $item = $service->getItem(1);\n\n $this->assertEquals($item->getName(), 'Test');\n $this->assertNotEquals($item->getUserId(), 2);\n }", "public function testGetData()\n {\n $this->getWeather->setUrl();\n $result = $this->getWeather->getData();\n\n $this->assertIsArray($result);\n }", "public function getTestData()\n {\n return [\n 'user_id' => 1,\n 'status' => 1,\n 'created_at' => '2016-01-21 15:00:00',\n 'updated_at' => '2016-01-21 18:00:00'\n ];\n }", "public function testGetItems(): void\n {\n $array = $this->itemCollection->getItems();\n $this->assertInternalType('array', $array);\n $this->assertEmpty($array);\n\n $item = new Item(1, \"test\", 20);\n $item2 = new Item(2, \"test\", 20);\n $this->itemCollection->add($item);\n $this->itemCollection->add($item2, 5);\n\n $array = $this->itemCollection->getItems();\n\n $this->assertInternalType('array', $array);\n $this->assertEquals([\n $item,\n $item2\n ], $array);\n }", "public function readTestData()\n {\n return $this->testData->get();\n }", "public function testGetItems()\n {\n $cart = new Cart();\n $this->assertEquals([], $cart->getItems());\n\n $cart = new Cart([1, 2, 3]);\n $this->assertEquals([1, 2, 3], $cart->getItems());\n }", "public function testDestiny2GetItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetData()\n {\n $response = $this->action('GET', '\\Modules\\Admin\\Http\\Controllers\\FaqCategoryController@getData');\n $this->assertResponseStatus(200, $response->status());\n $this->assertInstanceOf('Illuminate\\Http\\JsonResponse', $response);\n\n $actual = $response->getContent();\n $responseJsonData = json_decode($actual, true);\n\n $this->assertArrayHasKey('draw', $responseJsonData);\n $this->assertArrayHasKey('recordsTotal', $responseJsonData);\n $this->assertArrayHasKey('recordsFiltered', $responseJsonData);\n $this->assertArrayHasKey('data', $responseJsonData);\n $this->assertArrayHasKey('input', $responseJsonData);\n if (!empty($responseJsonData['data'])) {\n $keys = ['id', 'name', 'position', 'status', 'created_by', 'action'];\n\n foreach ($keys as $key) {\n $this->assertArrayHasKey($key, $responseJsonData['data'][0]);\n }\n }\n }", "public function testShow()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n Item::factory()->count(10)->create();\n\n //Test success get the item\n $this->json('GET', '/items/1')\n ->seeJson([\n 'status' => 'ok',\n ])\n ->seeJson([\n 'email' => '[email protected]',\n ])\n ->seeJson([\n 'name' => 'test',\n ])\n ->seeJsonStructure([\n 'data' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]);\n\n //test item not found\n $this->call('GET', '/items/11111')\n ->assertStatus(404);\n }", "public function testGetHit()\n {\n $key = \"unique\";\n $item = $this->cache->getItem($key);\n $item->set(\"content\");\n\n $res = $item->get();\n $this->assertNull($res, \"Should not be able to find a value\");\n\n $this->cache->save($item);\n $res = $item->get();\n $this->assertTrue(!is_null($res), \"Should have a value\");\n }", "public function getItemData()\n {\n return $this->_fields['ItemData']['FieldValue'];\n }", "abstract protected function getTestData() : array;", "public function testGetPayItems()\n {\n }", "public function getData() {\n return $this->items;\n }", "public function testGetTimesheetItemForTheOrder() {\n\n $result = $this->timesheetDao->getTimesheetItem(1, 2);\n\n $this->assertEquals(\"2011-04-10\", $result[0]['date']);\n $this->assertEquals(\"2011-04-13\", $result[1]['date']);\n $this->assertEquals(\"2011-04-15\", $result[2]['date']);\n }", "abstract public function getTestData(): array;", "private function getTestData()\n {\n return [\n 'url' => 'http://www.mystore.com',\n 'access-token' => 'thisisaccesstoken',\n 'integration-token' => 'thisisintegrationtoken',\n 'method' => \\Magento\\Framework\\HTTP\\ZendClient::POST,\n 'body'=> ['token' => 'thisisintegrationtoken','url' => 'http://www.mystore.com'],\n ];\n }", "protected function setUp()\n {\n parent::setUp();\n\n $json = '{\"title\": \"Example\", \"link\": \"http://example.com\", \"snippet\": \"Snippet\", \"htmlSnippet\": \"<strong>htmlSnippent</strong>\"}';\n $serializer = SerializerBuilder::create()->build();\n $this->item = $serializer->deserialize($json, Item::class, 'json');\n }", "public function testListUserItems() {\n $createUser = PromisePay::User()->create($this->userData);\n \n // update itemData, so seller is just created user\n $this->itemData['seller_id'] = $createUser['id'];\n \n // Create an item\n $createItem = PromisePay::Item()->create($this->itemData);\n \n // Get the list\n $getListOfItems = PromisePay::User()->getListOfItems($createUser['id']);\n \n $this->assertEquals($this->itemData['name'], $getListOfItems[0]['name']);\n $this->assertEquals($this->itemData['description'], $getListOfItems[0]['description']);\n }", "public function test_individual_item_is_displayed()\n {\n $response = $this->get(\"/item-detail/1\");\n $response->assertSeeInOrder(['<strong>Title :</strong>', '<strong>Category :</strong>', '<strong>Details :</strong>']);\n }", "public function getItems()\n {\n }", "public static function getMockData() {\n\n return [\n 'page' => 'http://redumbrella.com.ua',\n 'ip' => \"\".mt_rand(0,255).\".\".mt_rand(0,255).\".\".mt_rand(0,255).\".\".mt_rand(0,255),\n 'open' => time(),\n 'location' => [],\n 'close' => time() + mt_rand(0, 1000),\n 'language' => array_rand(['RU', 'UA', 'DE', 'US'], 1)[0],\n 'ua' => 'Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.212.0 Safari/532.0'\n ];\n }", "public function testRetrieveTheProductList(): void\n {\n $response = $this->request('GET', '/api/products');\n $json = json_decode($response->getContent(), true);\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertEquals('application/json; charset=utf-8', $response->headers->get('Content-Type'));\n\n $this->assertCount(10, $json);\n\n foreach ($json as $key => $value) {\n $this->assertArrayHasKey('id', $json[$key]);\n $this->assertArrayHasKey('name', $json[$key]);\n $this->assertArrayHasKey('description', $json[$key]);\n $this->assertArrayHasKey('price', $json[$key]);\n $this->assertArrayHasKey('priceWithTax', $json[$key]);\n $this->assertArrayHasKey('category', $json[$key]);\n $this->assertArrayHasKey('id', $json[$key]['category']);\n $this->assertArrayHasKey('name', $json[$key]['category']);\n $this->assertArrayHasKey('tax', $json[$key]);\n $this->assertArrayHasKey('id', $json[$key]['tax']);\n $this->assertArrayHasKey('name', $json[$key]['tax']);\n $this->assertArrayHasKey('value', $json[$key]['tax']);\n $this->assertArrayHasKey('images', $json[$key]);\n foreach ($json[$key]['images'] as $image) {\n $this->assertArrayHasKey('id', $image);\n $this->assertArrayHasKey('fileName', $image);\n $this->assertArrayHasKey('mimeType', $image);\n }\n $this->assertArrayHasKey('updatedAt', $json[$key]);\n $this->assertArrayHasKey('createdAt', $json[$key]);\n } \n }", "public function testGetValue()\n {\n $values = Store::get();\n $response = $this->json('GET', '/api/values');\n $response\n ->assertStatus(200)\n ->assertJsonCount(count($values));\n }", "protected function fixtureData() {\n\t\t$rows = array();\n\t\tfor($i = 0; $i < 50; $i++) {\n\t\t\t$rows[] = array(\n\t\t\t\t\"name\" => \"Test Item \".$i,\n\t\t\t\t\"popularity\" => $i,\n\t\t\t\t\"author\" => \"Test Author \".$i,\n\t\t\t\t\"description\" => str_repeat(\"lorem ipsum dolor est \",rand(3,20)),\n\n\t\t\t);\n\t\t}\n\t\treturn $rows;\n\t}", "public function testFindPageReturnsDataForExistingItemNumber()\n\t{\n\t\t$this->getProviderMock('Item', 'search', JSON_WORKS);\n\t\t$json = $this->getJsonAction('ItemsController@show', '1');\n\t\t$this->assertEquals('works', $json->name);\n\t}", "public function testIndex()\n {\n Item::factory()->count(20)->create();\n\n $this->call('GET', '/items')\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', 1);\n\n //test paginate\n $parameters = array(\n 'per_page' => 10,\n 'page' => 2,\n );\n\n $this->call('GET', '/items', $parameters)\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', $parameters['page'])\n ->assertJsonPath('meta.per_page', $parameters['per_page']);\n }", "public function test_fetch_grade_items() {\n\n $gradeitemsarray = grade_item::fetch_all(array('courseid' => $this->courseid));\n $gradeitems = phpunit_gradeimport_csv_load_data::fetch_grade_items($this->courseid);\n\n // Make sure that each grade item is located in the gradeitemsarray.\n foreach ($gradeitems as $key => $gradeitem) {\n $this->assertArrayHasKey($key, $gradeitemsarray);\n }\n\n // Get the key for a specific grade item.\n $quizkey = null;\n foreach ($gradeitemsarray as $key => $value) {\n if ($value->itemname == \"Quiz grade item\") {\n $quizkey = $key;\n }\n }\n\n // Expected modified item name.\n $testitemname = get_string('modulename', $gradeitemsarray[$quizkey]->itemmodule) . ': ' .\n $gradeitemsarray[$quizkey]->itemname;\n // Check that an item that is a module, is concatenated properly.\n $this->assertEquals($testitemname, $gradeitems[$quizkey]);\n }", "public function testGetCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function registerItemDataProvider()\n {\n return [\n ['test_sku', 1, 1, 1],\n ['test_sku2', 1, 2, 2]\n ];\n }", "public function testGetItemsByType()\n\t{\n\t\t$items = self::$items->getItemsByType(\\ElectronicItem\\ElectronicItem::ELECTRONIC_ITEM_CONSOLE);\n\t\t$this->assertSame(350.98, $items[0]->getPrice());\n\t\t$this->assertSame(80, $items[0]->getExtrasPrice());\n\t}", "abstract protected function _getItems();", "public function testGetCollectionItemSupply()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function getItems();", "function getItems();", "public function testGetCollectionItems()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetCollectionItemSupplies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetItems()\n {\n $this->addItem();\n $this->addItem();\n\n $items = $this->laracart->getItems();\n\n $this->assertInternalType('array', $items);\n\n $this->assertCount(1, $items);\n\n $this->containsOnlyInstancesOf(LukePOLO\\LaraCart\\CartItem::class, $items);\n }", "public function get_data()\n\t\t{\t\t// Should there be a common method for this?\n\t\t}", "public function jsonViewTestData() {}", "public function getCachedItem()\n {\n $data = ['test'];\n $key = 'test';\n $composed = 'cache-bin:test';\n\n $server = $this->getMemcachedMock(['get']);\n $server->expects($this->once())\n ->method('get')\n ->with($composed)\n ->willReturn($data);\n $this->driver->server = $server;\n $item = $this->driver->get($key);\n $this->assertEquals($data, $item->getData());\n $this->assertTrue($item->isValid());\n }", "private function mockedData()\n {\n $evens = [\n [3,9,10,6,7,8,1,5,2,4],\n [5,5,5,5],\n [4,5,5,3],\n [8,3,1,9,0,4]\n ];\n\n $odds = [\n [9,5,6],\n [0,5,7,8,4],\n [6,3,1,0,8,4,9]\n ];\n\n $invalids = [\n [],\n ['abcd_something_happenned'],\n ['a',5,'c',8],\n ['*','$','€'],\n [3,9,10,6,7,8,1,5,2,'*'],\n ];\n\n return (array) [\n 'evens' => $evens,\n 'odds' => $odds,\n 'invalids' => $invalids\n ];\n }", "public function get_data();", "public function testItemsProcFunc()\n {\n }", "public function testRequestItemsAvailable()\n {\n $response = $this->get('/api/items/available');\n\n $response->assertStatus(200);\n }", "public function testReadFromJSONDataProvider()\n {\n $emptyModel = new AuthCacheUtil();\n\n $emptyModelData = $emptyModel->__toString();\n\n $testData = [\n [ \"\", $emptyModelData, \"Empty string passed to AuthCacheUtil::fromJSON should return an empty model\" ],\n [ null, $emptyModelData, \"Null value passed to AuthCacheUtil::fromJSON should return an empty model\" ],\n [ \"This is text\", $emptyModelData, \"Non-json value passed to AuthCacheUtil::fromJSON should return an empty model\" ],\n [ '{\"boom\":true, \"bam\": true, \"pow\": 1}', $emptyModelData, \"Invalid json fields passed to AuthCacheUtil::fromJSON should be ignored\" ],\n ];\n\n\n return $testData;\n }", "public function testGet() {\n $data = $this->expanded;\n\n $this->assertEquals($data, Hash::get($data));\n $this->assertEquals(true, Hash::get($data, 'boolean'));\n $this->assertEquals($data['one']['two']['three'], Hash::get($data, 'one.two.three'));\n $this->assertEquals($data['one']['two']['three']['four']['five']['six'], Hash::get($data, 'one.two.three.four.five.six'));\n }", "public function testRequestItemId3()\n {\n $response = $this->get('/api/items/3');\n\n $response->assertStatus(200);\n }", "public function testGetItemsSecondCallGetData()\n {\n $pool = $this->createPool();\n\n $dataList1 = array(\n 'Key_'.$this->rand() => 'Value_'.$this->rand(),\n 'Key_'.$this->rand() => 'Value_'.$this->rand()\n );\n\n $dataList2 = array(\n 'Key_'.$this->rand() => 'Value_'.$this->rand(),\n 'Key_'.$this->rand() => 'Value_'.$this->rand()\n );\n\n $this->usedKeyList =\n array_merge(\n $this->usedKeyList,\n array_keys($dataList1),\n array_keys($dataList2)\n );\n\n foreach ($dataList1 as $key => $value) {\n $this->internalSet($key, $value);\n }\n foreach ($dataList2 as $key => $value) {\n $this->internalSet($key, $value);\n }\n\n $keyList1 = array_keys($dataList1);\n $keyList2 = array_keys($dataList2);\n\n $result1 = $pool->getItems(array_keys($dataList1));\n $this->assertSame(array_shift($keyList1), $result1->key());\n\n $result2 = $pool->getItems(array_keys($dataList2));\n $this->assertSame(array_shift($keyList2), $result2->key());\n\n $result1->next();\n $this->assertTrue(array_shift($keyList1) != $result1->key());\n\n $result2->next();\n $this->assertNull($result2->key());\n }", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "protected function getData() { }", "public function setGetTest()\n {\n $this->_model->setData('test=foo&foo[bar1]=test1&foo[bar2]=test2');\n $this->_model->setType('creditcard');\n $this->_model->setAction(Checksum::ACTION_TRANSACTION);\n $this->_model->setChecksum('foo-checksum');\n $this->_model->setAppId('app_123');\n $this->_model->setId('chk_123');\n $this->_model->setCreatedAt(23423142314);\n $this->_model->setUpdatedAt(23423142314);\n\n $this->assertEquals($this->_model->getData(), 'test=foo&foo[bar1]=test1&foo[bar2]=test2');\n $this->assertEquals($this->_model->getDataAsArray(), array(\n 'test' => 'foo',\n 'foo' => array(\n 'bar1' => 'test1',\n 'bar2' => 'test2'\n )\n ));\n $this->assertEquals($this->_model->getType(), 'creditcard');\n $this->assertEquals($this->_model->getAction(), Checksum::ACTION_TRANSACTION);\n $this->assertEquals($this->_model->getChecksum(), 'foo-checksum');\n $this->assertEquals($this->_model->getAppId(), 'app_123');\n $this->assertEquals($this->_model->getId(), 'chk_123');\n $this->assertEquals($this->_model->getCreatedAt(), 23423142314);\n $this->assertEquals($this->_model->getUpdatedAt(), 23423142314);\n }", "function getItems(){return $this->items;}", "abstract public function getItem($url,$itemId);", "public function testGetSuppliersUsingGET()\n {\n }", "public function testCanBeCreatedFromGetData(): void\n {\n $this->assertEquals(\n 'C:\\Documents\\Word\\Work\\Current\\1\\2\\3<br>',\n (new Read)->getData('current')\n );\n $this->assertIsString((new Read)->getData('current'));\n\n $this->assertEquals(\n 'C:\\Documents\\Software Engineer\\Projects\\AnnualReport.xls<br>',\n (new Read)->getData('software engineer')\n );\n $this->assertIsString((new Read)->getData('software engineer'));\n\n $this->assertEquals(\n 'C:\\Documents\\Salary\\Accounting\\Accounting.xls<br>',\n (new Read)->getData('accounting')\n );\n $this->assertIsString((new Read)->getData('accounting'));\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 function get ($item);", "public function getItem() {\n return $this->item;\n }", "public function testAddTwoItemsGetValues()\n {\n $list = new SimpleList();\n $list->add(\"fred\");\n $list->add(\"wilma\");\n $this->assertEquals(array(\"fred\", \"wilma\"), $list->getValues());\n }", "public function test_it_show_random_item_in_array()\n {\n $payload = [\n 'items' => [\n 'apple',\n 'strawberry',\n 'kiwi',\n 'pineapple',\n 'banana',\n 'olive',\n ],\n ];\n\n // When submitting to the pick endpoint\n $response = $this->getJson(route('tools.random.pick', $payload));\n\n // Then it should return a random value\n $response->assertStatus(200);\n //TODO : Find a way to test this behaviour :grimacing:\n }", "public function getItems(): array;", "public function getItems(): array;", "abstract public function getItem($name);", "protected function provided_sample_data() {\n return ['user', 'context'];\n }", "public function getItem($key){}", "protected static function getData()\n {\n }", "public function hasItemdata(){\n return $this->_has(22);\n }", "public function testStore()\n {\n $account_data = factory(Account::class)->make();\n $account_data = $account_data->toArray();\n $account = $this->postJson('/api/accounts', $account_data);\n\n $cards = [];\n for ($i = 0; $i < 2; $i++)\n {\n $card_data = factory(Card::class)->make();\n $card_data['account_id'] = $account->json('id');\n $card_data = $card_data->getAttributes();\n\n $card = $this->postJson('/api/cards', $card_data);\n $cards[] = $card->json();\n }\n\n\n $card_response = $this->getJson('api/cards/' . $cards[1]['id'], ['Accept' => 'application/json']);\n dd($card_response);\n }", "public function testGetDataMulti()\n {\n $this->getWeather->setUrls();\n $result = $this->getWeather->getDataMulti();\n\n $this->assertIsArray($result);\n }", "public function testGetData() {\r\n $action = $this->_action;\r\n $this->assertEquals(null, $action->getData());\r\n\r\n $action->setData(array());\r\n $this->assertEquals(array(), $action->getData());\r\n }", "public function testGetTimesheetItemForNonExistingItems() {\n\n $result = $this->timesheetDao->getTimesheetItem(0, 0);\n $result1 = $this->timesheetDao->getTimesheetItem(1, 0);\n $result2 = $this->timesheetDao->getTimesheetItem(0, 1);\n\n $this->assertNull($result[0]['date']);\n $this->assertNull($result[0]['duration']);\n $this->assertNull($result[0]['comment']);\n\n $this->assertNull($result1[0]['date']);\n $this->assertNull($result1[0]['duration']);\n $this->assertNull($result1[0]['comment']);\n\n $this->assertNull($result2[0]['date']);\n $this->assertNull($result2[0]['duration']);\n $this->assertNull($result2[0]['comment']);\n }", "public function testGetData_Elements()\n {\n $template = array(\n 'status' => 'string',\n 'resource' => 'string',\n 'description' => 'string',\n 'data' => 'array'\n );\n\n foreach ($template as $key => $value) {\n $this->assertArrayHasKey($key, $this->arrResults, \"[ Missing Key '$key' ]\");\n $this->assertInternalType($value, $this->arrResults[$key], \"[ Key '$key' Invalid Type ]\");\n }\n\n $this->assertCount(count($template), $this->arrResults, \"[ Incorrect number of elements ]\");\n $this->assertEquals('okay', $this->arrResults['status']);\n $this->assertEquals('Memory', $this->arrResults['resource']);\n }" ]
[ "0.6772263", "0.67598975", "0.6686131", "0.6566555", "0.6566555", "0.6515216", "0.6504945", "0.6437452", "0.63728535", "0.6311205", "0.62939346", "0.6231417", "0.62293756", "0.6163099", "0.6149417", "0.61218905", "0.6118753", "0.6073386", "0.6026851", "0.60201794", "0.59867305", "0.59813577", "0.59750724", "0.5962341", "0.5943777", "0.5931093", "0.59215945", "0.5903623", "0.58921295", "0.5866988", "0.5862286", "0.58382404", "0.5832571", "0.5829988", "0.5806014", "0.58033615", "0.57959735", "0.5794838", "0.5780449", "0.5762158", "0.57505304", "0.57503617", "0.574233", "0.5738413", "0.5730224", "0.57258946", "0.57258946", "0.57049996", "0.56950825", "0.5691526", "0.56660986", "0.56659555", "0.5665864", "0.5660829", "0.565254", "0.5646498", "0.5632537", "0.5617846", "0.5608956", "0.56085515", "0.56061745", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55974156", "0.55933183", "0.5591132", "0.5579533", "0.5571532", "0.5569268", "0.5565169", "0.5558495", "0.55580336", "0.55580336", "0.55580336", "0.55557275", "0.55534625", "0.5552155", "0.55464816", "0.5532475", "0.5532475", "0.5528859", "0.5528085", "0.5525291", "0.55250365", "0.5519469", "0.55185735", "0.5516519", "0.5516227", "0.5515717", "0.55075514" ]
0.61424804
15
Provides test data for createItem()
public function seedCreateItem() { // Type, Fields, Fields Array, Expected, Exception return array( array(null, null, array(), null, 'UnexpectedValueException'), array('general', null, array(), null, 'UnexpectedValueException'), array('general', 'field1, field2', array(), null, 'UnexpectedValueException'), // Missing not null field array( 'general', 'content_id, field1, field2', array('content_id' => '300', 'field1' => 'new field', 'field2' => 'new field'), '300', 'RuntimeException'), // OK array( 'general', 'content_id, field1, field2, field3', array('content_id' => '300', 'field1' => 'new field', 'field2' => 'new field', 'field3' => 'new field'), '300', null), // Already exists -> this may be checked before creating item array( 'general', 'content_id, field1, field2, field3', array('content_id' => '1', 'field1' => 'new field', 'field2' => 'new field', 'field3' => 'new field'), '300', 'RuntimeException') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createItem($data);", "public function test_create_item() {}", "public function test_create_item() {}", "public function test_prepare_item() {}", "public function testRequestCreateItem()\n {\n\t\t$response = $this\n\t\t\t\t\t->json('POST', '/api/items', [\n\t\t\t\t\t\t'name' => 'Produkt dodany przez test PHPUnit', \n\t\t\t\t\t\t'amount' => 0\n\t\t\t\t\t]);\n\n $response->assertStatus(200);\n }", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "public function createNewItem();", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function createItem( $preparedItem ) {\n\t}", "public function testCreatePayItem()\n {\n }", "public function testCreatesAValidItem()\n {\n $item = $this->createItem();\n $this->assertInstanceOf('App\\Domain\\Entity\\Item', $item);\n }", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "private static function createSampleData()\n\t{\n\t\tself::createSampleObject(1, \"Issue 1\", 1);\n\t\tself::createSampleObject(2, \"Issue 2\", 1);\n\t}", "abstract public function createItem($name, $type, $description = '', $bizRule = null, $data = null);", "protected function setUp()\n {\n $this->item = new Item();\n }", "private function createRandomItem(): array\n {\n $uuid = uniqid('uuid');\n\n $completed = rand(0, 100) % 2 == 0;\n $completedAt = $completed ? date('Y-m-d H:i:s') : null;\n\n return [\n 'text' => $uuid,\n 'uuid' => $uuid,\n 'created_at' => date('Y-m-d H:i:s'),\n 'completed' => $completed,\n 'completed_at' => $completedAt\n ];\n }", "function setupNewItem()\n {\n $item = array(\n 'id' => null,\n 'pending_id' => null,\n 'content_id' => null,\n 'created' => date( 'Y-m-d H:i:s'),\n 'createdBy' => $_SESSION['isLoggedUID'],\n 'updated' => null,\n 'updatedBy' => null,\n 'status' => 'create',\n 'topic' => null,\n 'subtopic' => null,\n 'heading' => null,\n 'date' => date( 'Y-m-d H:i:s'),\n 'caption' => null,\n 'text' => null,\n 'download_src' => null,\n 'download_name' => null,\n 'images' => array(),\n 'tags' => array(),\n 'terms' => array());\n $_SESSION['cropId'] = null;\n\n return($item);\n }", "public function testListUserItems() {\n $createUser = PromisePay::User()->create($this->userData);\n \n // update itemData, so seller is just created user\n $this->itemData['seller_id'] = $createUser['id'];\n \n // Create an item\n $createItem = PromisePay::Item()->create($this->itemData);\n \n // Get the list\n $getListOfItems = PromisePay::User()->getListOfItems($createUser['id']);\n \n $this->assertEquals($this->itemData['name'], $getListOfItems[0]['name']);\n $this->assertEquals($this->itemData['description'], $getListOfItems[0]['description']);\n }", "protected function setUp()\n {\n parent::setUp();\n\n $json = '{\"title\": \"Example\", \"link\": \"http://example.com\", \"snippet\": \"Snippet\", \"htmlSnippet\": \"<strong>htmlSnippent</strong>\"}';\n $serializer = SerializerBuilder::create()->build();\n $this->item = $serializer->deserialize($json, Item::class, 'json');\n }", "public function test_can_create_and_update_items()\n {\n // Firstly we creating category\n $category = [\n 'name' => 'Test category'\n ];\n\n $responseCategory = $this->json('POST', '/api/categories', $category)->decodeResponseJson();\n\n // Test - Can create item\n $data = [\n 'category_id' => $responseCategory['id'],\n 'name' => 'Test_item',\n 'value' => 50,\n 'quality' => -10,\n ];\n\n $responseItem = $this->json('POST', '/api/items/', $data);\n\n $responseItem->assertStatus(201);\n\n $responseItem->assertSee('id');\n\n // Test - Can update item\n $item = $responseItem->decodeResponseJson();\n\n $dataUpdate = [\n 'value' => 60,\n ];\n\n $responseUpdate = $this->put('/api/items/' . $item['id'], $dataUpdate);\n\n $responseUpdate->assertStatus(200);\n\n $responseUpdate->assertSee(1);\n }", "protected function createItem()\n {\n return $this->_setUpNewNode(\n new Item()\n );\n }", "public function testConstruct()\n {\n\n // Create item and text.\n $item = $this->__item();\n $text = new TeiDisplayText($item);\n\n // Check for set item_id.\n $this->assertEquals($text->item_id, $item->id);\n\n }", "public function setUp() {\n parent::setUp();\n try {\n /* ensure we have clear data and identity sequences */\n $this->xpdo->getManager();\n $this->xpdo->manager->createObjectContainer('Item');\n\n $colors = array('red','green','yellow','blue');\n\n $r = 0;\n for ($i=1;$i<40;$i++) {\n $item = $this->xpdo->newObject('Item');\n $idx = str_pad($i,2,'0',STR_PAD_LEFT);\n $item->set('name','item-'.$idx);\n $r++;\n if ($r > 3) $r = 0;\n $item->set('color',$colors[$r]);\n $item->save();\n }\n\n } catch (Exception $e) {\n $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, $e->getMessage(), '', __METHOD__, __FILE__, __LINE__);\n }\n }", "public function testStore() {\n\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $item = $this->model->factory()->make();\n\n // Check create :: Create model\n $response = $this->postJson($this->baseUrl, $item->toArray(), ['FORCE_CONTENT_TYPE'=>'json'])\n ->assertStatus(200);\n\n // Check that the database contains the item created by the factory\n $this->assertDatabaseHas($this->table, $item->toArray());\n }", "public function create()\n {\n // Not needed cause this is coming from the item listing\n }", "abstract protected function createItem(string $name): Item;", "public function seedGetItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray('1', 'general', '1', null),\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('1', null, '1', null),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null)\n\t\t);\n\t}", "public function testCreateCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testAddItemSubCategoryFile()\n {\n }", "public function testGetItems(): void\n {\n $array = $this->itemCollection->getItems();\n $this->assertInternalType('array', $array);\n $this->assertEmpty($array);\n\n $item = new Item(1, \"test\", 20);\n $item2 = new Item(2, \"test\", 20);\n $this->itemCollection->add($item);\n $this->itemCollection->add($item2, 5);\n\n $array = $this->itemCollection->getItems();\n\n $this->assertInternalType('array', $array);\n $this->assertEquals([\n $item,\n $item2\n ], $array);\n }", "public function create(array $data): ChainableItemInterface;", "public function testAddItemSubCategory()\n {\n }", "public function seedLikeItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null),\n\t\t\t\tarray('1', 'general', true, null),\n\t\t\t\tarray('1', null, true, null)\n\t\t);\n\t}", "public function createTestItem(Browser $browser, $data)\n {\n $browser->select('competency_uuid', $data['competency_uuid']);\n $browser->select('type', $data['type']);\n $browser->type('question', $data['question']);\n if ($data['type'] === 'M') {\n $options = $data['options'];\n $browser->within(new TestItemOptionsComponent, function ($browser) use ($options, $data) {\n for ($i = 0; $i < count($options); $i++) {\n $browser->addOption($options[$i]);\n }\n $browser->select('@answer', $data['answer']);\n });\n } else {\n $browser->within(new TestItemOptionsComponent, function ($browser) use ($data) {\n $browser->select('@answer', $data['answer']);\n });\n }\n $browser->type('timeout', $data['timeout']);\n $browser->click('@testitem-submit');\n }", "public function testItemsProcFunc()\n {\n }", "public function testGetTimesheetItem() {\n\n\n $result = $this->timesheetDao->getTimesheetItem(1, 2);\n\n $this->assertEquals(3, count($result));\n\n $timesheetItem = $result[0];\n\n $this->assertEquals(\"2011-04-10\", $timesheetItem['date']);\n $this->assertEquals(1000, $timesheetItem['duration']);\n $this->assertEquals(\"Poor\", $timesheetItem['comment']);\n }", "public function testStore()\n {\n //test validation\n $this->post('items', array('email' => 'test1!kl'))\n ->seeJson([\n 'email' => array('The email must be a valid email address.'),\n ])\n ->seeJson([\n 'name' => array('The name field is required.'),\n ]);\n\n //test success case\n $this->post('items', array('email' => '[email protected]', 'name' => 'test'))\n ->seeJson([\n 'status' => 'ok',\n ])\n ->seeJson([\n 'email' => '[email protected]',\n ])\n ->seeJson([\n 'name' => 'test',\n ])\n ->seeJsonStructure([\n 'data' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]);\n\n $this->seeInDatabase('items', array('email' => '[email protected]', 'name' => 'test'));\n\n //test duplicated email\n $this->post('items', array('email' => '[email protected]', 'name' => 'test'))\n ->seeJson([\n 'email' => array('The email has already been taken.'),\n ]);\n }", "public function testGetPayItems()\n {\n }", "public function testGetItem()\n {\n $datastore = $this->container->get('datastore');\n $logger = $this->container->get('logger');\n\n $repo = $this->getMockBuilder(DataStoreRepository::class)\n ->setConstructorArgs([$datastore, $logger])\n ->getMock();\n\n $repo->method('getItem')\n ->will($this->returnValue([\n 'id' => 1,\n 'name' => 'Test',\n 'user_id' => 1,\n 'body' => 'Fixture'\n ]));\n\n $service = new Service($repo, $logger);\n $item = $service->getItem(1);\n\n $this->assertEquals($item->getName(), 'Test');\n $this->assertNotEquals($item->getUserId(), 2);\n }", "public function testEditItem() {\n $data = $this->itemData;\n \n // Create the item\n $createItem = PromisePay::Item()->create($data);\n \n $this->assertEquals($this->GUID, $createItem['id']);\n \n // Modify data\n $data['name'] = 'Test123Update';\n $data['description'] = 'Test123Description';\n \n // Finally, modify the item\n $updateItem = PromisePay::Item()->update($createItem['id'], $data);\n \n $this->assertEquals($data['name'], $updateItem['name']);\n $this->assertEquals($data['description'], $updateItem['description']);\n }", "public function seedUnlikeItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray('1', 'general', true, null)\n\t\t);\n\t}", "function createItem($item) {\n\t\tglobal $dbh;\n\t\t$stmt = $dbh->prepare('INSERT INTO ITEM VALUES (NULL, ?, ?, ?, ?)');\n\t\t$success = $stmt->execute(array($item['content'],\n\t\t\t\t\t\t\t\t\t\t$item['image'],\n\t\t\t\t\t\t\t\t\t\t$item['checked'],\n\t\t\t\t\t\t\t\t\t\t$item['listID']));\n\t\treturn $success;\n\t}", "public function setUp()\n {\n\n parent::setUp();\n\n $coll1 = $this->_collection('Collection 1');\n $coll2 = $this->_collection('Collection 2');\n\n $this->item1 = $this->_collitem('Item 1', $coll1);\n $this->item2 = $this->_collitem('Item 2', $coll1);\n $this->item3 = $this->_collitem('Item 3', $coll2);\n $this->item4 = $this->_collitem('Item 4', $coll2);\n\n }", "public function testGetCollectionItemSupply()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function createItem($item) {\n\t\treturn tdb::insert(self::$tablename,$item);\n\t}", "public function testIndex()\n {\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $items = $this->model->factory(5)->create();\n\n // Check index :: Get the json response from index and check if the above factory is in it\n $response = $this->get($this->baseUrl, ['FORCE_CONTENT_TYPE'=>'json'])->assertStatus(200);\n $data = $response->json()['data']??[];\n\n\n // Check that the returned data from the index, has at least as many items created by the factory\n $this->assertGreaterThan(0, count($data));\n $this->assertGreaterThanOrEqual(count($data), count($items));\n\n }", "public function testGetDuplicateItemSubCategoryById()\n {\n }", "public function testAddIncompleteItem()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/admin/login')\n ->type('email', '[email protected]')\n ->type('password', 'password')\n ->press('Login')\n ->visit('/item/create')\n ->keys('#start-date', '2017', '{tab}', '09', '15')\n ->keys('#end-date', '2018', '{tab}', '02', '20')\n ->press('Submit')\n ->assertSee('The name field is required.')\n ->assertSee('The tokens given field is required.')\n ->assertSee('The threshold field is required.')\n ->assertSee('The short description field is required.')\n ->assertSee('The long description field is required.');\n \n });\n }", "public function test_add_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(1, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "public function testAggregatorItemFields() {\n $feed = Feed::create([\n 'title' => 'Drupal org',\n 'url' => 'https://www.drupal.org/rss.xml',\n ]);\n $feed->save();\n $item = Item::create([\n 'title' => 'Test title',\n 'fid' => $feed->id(),\n 'description' => 'Test description',\n ]);\n\n $item->save();\n\n // @todo Expand the test coverage in https://www.drupal.org/node/2464635\n\n $this->assertFieldAccess('aggregator_item', 'title', $item->getTitle());\n $this->assertFieldAccess('aggregator_item', 'langcode', $item->language()->getName());\n $this->assertFieldAccess('aggregator_item', 'description', $item->getDescription());\n }", "public function testConstruct()\n {\n $item = new Item();\n $this->assertTrue(is_object($item));\n unset($item);\n }", "function test_sample()\n\t{\n\t\t// $post_id = $this->factory->post->create();\n\t\t// add_post_meta($post_id, 'unit_code', '1996-96482');\n\t\t//\n\t\t// $unit = Client::get('units/1996-96482');\n\t\t// var_dump($unit);\n\t\t//\n // $post = new VacationRental($post, $unit);\n\t\t//\n\t\t// // Replace this with some actual testing code.\n\t\t// $this->assertTrue( true );\n\t}", "public function testGetCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testItemWithoutIdShouldBeConsideredNew()\n {\n $item = $this->createItem();\n $this->assertTrue($item->isNew());\n }", "public function testGetCollectionItemSupplies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testShow()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n Item::factory()->count(10)->create();\n\n //Test success get the item\n $this->json('GET', '/items/1')\n ->seeJson([\n 'status' => 'ok',\n ])\n ->seeJson([\n 'email' => '[email protected]',\n ])\n ->seeJson([\n 'name' => 'test',\n ])\n ->seeJsonStructure([\n 'data' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]);\n\n //test item not found\n $this->call('GET', '/items/11111')\n ->assertStatus(404);\n }", "public function testGetItemSubCategoryFiles()\n {\n }", "public static function setUpBeforeClass()\n\t{\n\t\tself::$items = new ElectronicItem\\ElectronicItems();\n\n\t\t// The console has 2 remote controllers and 2 wired controllers\n\n\t\t$item = new ElectronicItem\\Console();\n\t\t$item->setPrice(350.98);\n\n\t\t$bool = true;\n\n\t\tfor ($i=0; $i < 4; ++$i)\n\t\t{\n\t\t\t$bool = !$bool;\n\t\t\t$extra = new ElectronicItem\\Controller();\n\t\t\t$extra->setWired($bool);\n\t\t\t$extra->setPrice(20);\n\t\t\t$item->addExtra($extra);\n\t\t}\n\n\t\tself::$items->addItem($item);\n\n\t\t// The TV #1 has 2 remote controllers\n\n\t\t$item = new ElectronicItem\\Television();\n\t\t$item->setPrice(200);\n\n\t\tfor ($i=0; $i < 2; ++$i)\n\t\t{\n\t\t\t$extra = new ElectronicItem\\Controller();\n\t\t\t$extra->setWired(false);\n\t\t\t$extra->setPrice(10);\n\t\t\t$item->addExtra($extra);\n\t\t}\n\n\t\tself::$items->addItem($item);\n\n\t\t// The TV #2 has 1 remote controller\n\n\t\t$item = new ElectronicItem\\Television();\n\t\t$item->setPrice(150.01);\n\n\t\t$extra = new ElectronicItem\\Controller();\n\t\t$extra->setWired(false);\n\t\t$extra->setPrice(10);\n\t\t$item->addExtra($extra);\n\n\t\tself::$items->addItem($item);\n\n\t\t// The microwave\n\t\t$item = new ElectronicItem\\Microwave();\n\t\t$item->setPrice(100);\n\t\tself::$items->addItem($item);\n\t}", "protected function createTestData()\n {\n // Cleanup any old objects\n $this->deleteTestData();\n \n // Get datamapper\n $dm = $this->account->getServiceManager()->get(\"Entity_DataMapper\");\n \n // Create a campaign for filtering\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"marketing_campaign\");\n $obj->setValue(\"name\", \"Unit Test Aggregates\");\n $this->campaignId = $dm->save($obj);\n if (!$this->campaignId)\n throw new \\Exception(\"Could not create campaign\");\n\n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Website\");\n $obj->setValue(\"f_won\", false);\n $obj->setValue(\"probability_per\", 50);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 100);\n $oid = $dm->save($obj);\n \n // Create first opportunity\n $obj = $this->account->getServiceManager()->get(\"EntityLoader\")->create(\"opportunity\");\n $obj->setValue(\"name\", \"Application\");\n $obj->setValue(\"f_won\", true);\n $obj->setValue(\"probability_per\", 75);\n $obj->setValue(\"campaign_id\", $this->campaignId);\n $obj->setValue(\"amount\", 50);\n $oid = $dm->save($obj);\n }", "public function created(Item $item)\n {\n //\n }", "public function testIndex()\n {\n Item::factory()->count(20)->create();\n\n $this->call('GET', '/items')\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', 1);\n\n //test paginate\n $parameters = array(\n 'per_page' => 10,\n 'page' => 2,\n );\n\n $this->call('GET', '/items', $parameters)\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', $parameters['page'])\n ->assertJsonPath('meta.per_page', $parameters['per_page']);\n }", "public function test_calledCreateMethod_withValidParameters_argumentsHasBeenSetted()\n {\n $dataContainerMock = $this->getDataConteinerMock();\n\n $sut = DataWrapper::create(\n 200,\n \"Ok\",\n \"copyright\",\n \"attribution text\",\n \"attribution HTML\",\n $dataContainerMock,\n \"etag\"\n );\n\n $this->assertEquals(200, $sut->getCode());\n $this->assertEquals(\"Ok\", $sut->getStatus());\n $this->assertEquals(\"copyright\", $sut->getCopyright());\n $this->assertEquals(\"attribution text\", $sut->getAttributionText());\n $this->assertEquals(\"attribution HTML\", $sut->getAttributionHTML());\n $this->assertEquals(\"etag\", $sut->getEtag());\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function an_user_makes_a_successfull_data_creation()\n {\n $data = factory(Data::class)->create();\n $this->assertDatabaseHas('data', $data->toArray());\n }", "public function testAggregatorItem() {\n /** @var \\Drupal\\aggregator\\Entity\\Item $item */\n $item = Item::load(1);\n $this->assertSame('1', $item->id());\n $this->assertSame('5', $item->getFeedId());\n $this->assertSame('This (three) weeks in Drupal Core - January 10th 2014', $item->label());\n $this->assertSame('larowlan', $item->getAuthor());\n $this->assertSame(\"<h2 id='new'>What's new with Drupal 8?</h2>\", $item->getDescription());\n $this->assertSame('https://groups.drupal.org/node/395218', $item->getLink());\n $this->assertSame('1389297196', $item->getPostedTime());\n $this->assertSame('en', $item->language()->getId());\n $this->assertSame('395218 at https://groups.drupal.org', $item->getGuid());\n\n }", "public function createData()\n {\n // TODO: Implement createData() method.\n }", "public function test_valid_data()\n {\n\n\n\n $data=[\"amount\"=> 1000,\n \"unpaid_appliance_rates\"=> 2,\n \"appliance_rate_cost\"=> 200,\n \"tariff_fixed_costs\"=> 160,\n \"price_per_kwh\"=> 700\n ];\n\n $response = $this->post('/api/transactions', $data);\n // $response->assertStatus(200);\n $response->assertJson( [\"data\"=> [\n \"type\"=> \"transaction\",\n \"attributes\"=> [\n \"paid_for_appliance_rates\"=> 400,\n \"fully_covered_appliance_rate\"=> 2,\n \"paid_for_fixed_tariff\"=> 160,\n \"paid_for_energy\"=> 490,\n \"topup_for_energy\"=> 50,\n \"sold_energy\"=> 0.7\n ]\n ]]);\n }", "public function testItemPriceAndQty()\n {\n $item = $this->addItem(3, 10);\n\n $this->assertEquals(3, $item->qty);\n $this->assertEquals(10, $item->price(false));\n $this->assertEquals(30, $item->subTotal(false));\n }", "abstract protected function createItemBase( array $values = [], array $listItems = [], array $refItems = [] );", "public function createNewItem()\n {\n return null;\n }", "public function registerItemDataProvider()\n {\n return [\n ['test_sku', 1, 1, 1],\n ['test_sku2', 1, 2, 2]\n ];\n }", "public function testAddItemSubCategoryAudit()\n {\n }", "protected function fixtureData() {\n\t\t$rows = array();\n\t\tfor($i = 0; $i < 50; $i++) {\n\t\t\t$rows[] = array(\n\t\t\t\t\"name\" => \"Test Item \".$i,\n\t\t\t\t\"popularity\" => $i,\n\t\t\t\t\"author\" => \"Test Author \".$i,\n\t\t\t\t\"description\" => str_repeat(\"lorem ipsum dolor est \",rand(3,20)),\n\n\t\t\t);\n\t\t}\n\t\treturn $rows;\n\t}", "public function testHasItem()\n {\n self::assertFalse($this->object->hasItem('test'));\n }", "protected function setUp()\n\t{\n\t\t$this->values = array(\n\t\t\t'id' => 'product/id/1:detail-body',\n\t\t\t'siteid' => 1,\n\t\t\t'value' => 'test',\n\t\t\t'expire' => '2000-01-01 00:00:00',\n\t\t\t'tags' => array( 'tag:1', 'tag:2' ),\n\t\t);\n\n\t\t$this->object = new \\Aimeos\\MAdmin\\Cache\\Item\\Standard( $this->values );\n\t}", "private function initPromoItem()\n {\n $this->promoItem = $this->createPartialMock(\n \\Amasty\\Promo\\Model\\ItemRegistry\\PromoItemData::class,\n []\n );\n $this->promoItem->setSku('test_sku')->setRuleId(1);\n }", "public function testGetItems()\n {\n $this->addItem();\n $this->addItem();\n\n $items = $this->laracart->getItems();\n\n $this->assertInternalType('array', $items);\n\n $this->assertCount(1, $items);\n\n $this->containsOnlyInstancesOf(LukePOLO\\LaraCart\\CartItem::class, $items);\n }", "public function testGetItemSubCategoryById()\n {\n }", "public function testExample()\n {\n factory(Food::class)->create([\n 'name' => 'Burritos',\n 'qty' => 5,\n 'price' => 5,\n ]);\n\n $foods = Food::foods();\n $this->assertCount(1, $foods);\n\n $this->assertEquals([\n \"id\" => $foods[0]['id'],\n 'name' => 'Burritos',\n 'qty' => 5,\n 'price' => 5,\n ], $foods->toArray()[0]);\n }", "abstract public function add_item();", "protected abstract function initItems () : array;", "public function testAddItemSubCategoryTag()\n {\n }", "abstract protected function prepareContextItem();", "public function testGetItems()\n {\n $cart = new Cart();\n $this->assertEquals([], $cart->getItems());\n\n $cart = new Cart([1, 2, 3]);\n $this->assertEquals([1, 2, 3], $cart->getItems());\n }", "public function createItem (Item $item) {\n $this->itemsDB->create($item);\n $item->setId($this->retrieveLastItemId());\n }", "public function seedHitItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null),\n\t\t\t\tarray('1', 'general', true, null),\n\t\t\t\tarray('1', null, true, null)\n\t\t);\n\t}", "public function testAddItemSubCategoryFileByURL()\n {\n }", "public function test_getDuplicateItemCategoryById() {\n\n }", "public function testConstruct()\n {\n $data_from_collection = $this->data['monthly_collection'];\n $this->assertEquals(\n $data_from_collection['attributes']['plan_name'],\n $this->makePlan($data_from_collection)->get('plan_name')\n );\n\n $data_from_site = $this->data['monthly_site'];\n $this->assertEquals($data_from_site['name'], $this->makePlan($data_from_site)->get('name'));\n }", "public function create($itemsData,$data)\n {\n $date = new Zend_Date($data['date']);\n $this->_transactionTime = $date->getTimestamp();\n \n $purchaseData = array(\n 'created' => time(),\n 'created_by' => $this->getCurrentUser()->getUserId(),\n 'branch_id' => $data['branch_id'],\n 'vendor_id' => $data['vendor_id'],\n 'date' => $date->getTimestamp(),\n 'notes' => $data['notes'],\n 'payment_terms' => $data['payment_terms'],\n 'freight_amount' => $data['freight_amount'],\n 'discount_amount' => $data['discount_amount'],\n 'type' => self::TYPE_PURCHASE\n );\n \n $this->_purchaseId = parent::create($purchaseData);\n \n $purchaseItemModel = new Core_Model_Finance_Purchase_Item;\n for ($i = 0; $i < count($itemsData); $i++ ) {\n $purchaseItemId = $purchaseItemModel->create($itemsData[$i], \n $this->_purchaseId);\n }\n \n $vendorModel = new Core_Model_Finance_Vendor($data['vendor_id']);\n $vendorLedgerId = $vendorModel->getLedgerId();\n $vendorName = $vendorModel->getName();\n $notes = 'Purchase from '.$vendorName;\n $vendorLedgerEntryId = $this->vendorLedgerEntry($vendorLedgerId, \n $notes);\n $taxLedgerIds = $this->taxLedgerEntry($notes);\n if ($taxLedgerIds != '') {\n $taxLedgerEntries = $taxLedgerIds;\n }\n $fa_ledger_entry_ids = array();\n $fa_ledger_entry_ids['0'] = $vendorLedgerEntryId;\n $fa_ledger_entry_ids['1'] = $this->purchaseAccountLedgerEntry();\n \n if ($data['discount_amount'] != 0 || $data['discount_amount'] != null) {\n $ledgerEntryId = $this->discountLedgerEntry(\n $data['discount_amount'], $notes);\n array_push($fa_ledger_entry_ids, $ledgerEntryId);\n }\n \n if ($data['freight_amount'] != 0 || \n $data['freight_amount'] != null) {\n $ledgerEntryId = $this->freightLedgerEntry(\n $data['freight_amount'], $notes);\n array_push($fa_ledger_entry_ids, $ledgerEntryId);\n }\n \n for($i = 0; $i <= sizeof($taxLedgerEntries)-1; $i += 1) {\n array_push($fa_ledger_entry_ids, $taxLedgerEntries[$i]);\n }\n $fa_ledger_entry_ids = serialize($fa_ledger_entry_ids);\n $table = $this->getTable();\n $dataToUpdate['s_ledger_ids'] = $fa_ledger_entry_ids;\n $where = $table->getAdapter()->quoteInto('purchase_id = ?', \n $this->_purchaseId);\n $table->update($dataToUpdate, $where);\n \n $log = $this->getLoggerService();\n $info = 'Purchase created with purchas id = '. $this->_purchaseId;\n $log->info($info);\n \n return $this->_purchaseId;\n }", "public function run()\n {\n $dummyDescription = 'Lorem ipsum dolor sit amet consectetur, adipiscing elit aliquam rhoncus rutrum, arcu lectus orci mattis. Orci nam volutpat penatibus cum tincidunt odio libero nisl, ac lacus morbi turpis senectus litora est rutrum, tristique mauris hac mus laoreet convallis mi. Commodo litora pellentesque elementum duis cum purus tortor torquent, orci bibendum diam inceptos ac aptent mauris congue, dictumst odio est eleifend gravida justo leo.';\n Item::create([\n \"name\" => \"ASUS ROG STRIX Z490-E Gaming\",\n \"description\" => $dummyDescription,\n \"category_id\" => 1,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n Item::create([\n \"name\" => \"ASUS PRIME B550M-A (WI-FI)\",\n \"description\" => $dummyDescription,\n \"category_id\" => 1,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n Item::create([\n \"name\" => \"ASUS PRIME B550M-A AMD B550\",\n \"description\" => $dummyDescription,\n \"category_id\" => 1,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n\n Item::create([\n \"name\" => \"Cooler Master Masterbox K501L RGB (ATX)\",\n \"description\" => $dummyDescription,\n \"category_id\" => 2,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n Item::create([\n \"name\" => \"MSI MAG FORGE 100M (ATX)\",\n \"description\" => $dummyDescription,\n \"category_id\" => 2,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n\n Item::create([\n \"name\" => \"Corsair Vengeance LPX 8GB (8GBx1) 3200MHz DDR4\",\n \"description\" => $dummyDescription,\n \"category_id\" => 3,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n Item::create([\n \"name\" => \"Corsair 8GB DDR4 CMK8GX4M1D3000C16 3000MHz\",\n \"description\" => $dummyDescription,\n \"category_id\" => 3,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n\n Item::create([\n \"name\" => \"ASUS TUF Gaming VG27AQ 27 Inch\",\n \"description\" => $dummyDescription,\n \"category_id\" => 5,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n Item::create([\n \"name\" => \"BenQ ZOWIE XL2411P 144Hz 24 inch\",\n \"description\" => $dummyDescription,\n \"category_id\" => 5,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n \n Item::create([\n \"name\" => \"ZOTAC GAMING GeForce GTX 1660 SUPER Twin Fan 6GB GDDR6\",\n \"description\" => $dummyDescription,\n \"category_id\" => 7,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n Item::create([\n \"name\" => \"GALAX GeForce GTX 1050 Ti (1-Click OC) 128-bit DDR5\",\n \"description\" => $dummyDescription,\n \"category_id\" => 7,\n \"quantity\" => mt_rand(20, 1500),\n \"price_tax_excluded\" => rand(55, 755),\n \"status\" => mt_rand(0,1) == 1\n ]);\n }", "public function seedDeleteItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray('1', 'general', '1', null),\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('1', null, true, null),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null)\n\t\t);\n\t}", "private function _populateItemObject($itemData) {\n\n if (!empty($itemData)) {\n $item = new Model_Cms_ExternalNews_Item();\n\n $item->guidHash = $itemData->guidHash;\n $item->categoryId = $itemData->nc_id;\n $item->categoryName = $itemData->nc_name;\n $item->sourceId = $itemData->ns_id;\n $item->sourceName = $itemData->ns_name;\n // Following line should be using\n // \"new Zend_Date($itemData->pubDate)\", except it's TOO SLOOOW.\n $item->publishDate = $itemData->pubDate;\n $item->title = $itemData->title;\n $item->summary = $itemData->summary;\n $item->linkUrl = $itemData->link;\n $item->thumbnailUrl = $itemData->thumbnail;\n\n $returnVal = $item;\n } else {\n $returnVal = null;\n }\n\n return $returnVal;\n\n }", "protected function addItems()\n {\n $origin = 'stock';\n $code = 'cataloginventory';\n $message = Data::ERROR_QTY;\n $additionalData = null;\n $mockItems = [];\n\n for ($i = 0; $i < 2; $i++) {\n $mockItems[] = [\n 'origin' => $origin . $i,\n 'code' => $code,\n 'message' => $message . $i,\n 'additionalData' => $additionalData,\n ];\n $this->listStatus->addItem($origin . $i, $code, $message . $i, $additionalData);\n }\n return $mockItems;\n }", "public function test_update_item() {}", "public function test_update_item() {}" ]
[ "0.7402631", "0.73937434", "0.73937434", "0.72822255", "0.69772625", "0.68930775", "0.68453705", "0.6721014", "0.67153525", "0.6658954", "0.6650171", "0.65357655", "0.65119374", "0.65058744", "0.641548", "0.64118946", "0.6411448", "0.6373913", "0.6373547", "0.63410956", "0.6287039", "0.6272647", "0.6247272", "0.6219867", "0.61874026", "0.61535513", "0.61425835", "0.6137689", "0.6114427", "0.60817754", "0.6056154", "0.6055154", "0.60502404", "0.60261786", "0.602161", "0.6018914", "0.5987962", "0.5964541", "0.59562176", "0.5932873", "0.59320486", "0.58674335", "0.58622605", "0.5851952", "0.5841655", "0.5829987", "0.58221626", "0.581994", "0.58099014", "0.5809776", "0.5807769", "0.5792534", "0.5792299", "0.5791305", "0.5787098", "0.5771554", "0.57679117", "0.5765118", "0.57644063", "0.5762985", "0.5761111", "0.5760304", "0.5754266", "0.5753937", "0.5753937", "0.5753937", "0.5753427", "0.5746708", "0.5746254", "0.57448995", "0.57328475", "0.5731871", "0.5727578", "0.57265717", "0.57239246", "0.571628", "0.5711146", "0.57107794", "0.5707047", "0.5702474", "0.56943303", "0.56892484", "0.5687074", "0.5671952", "0.56651706", "0.5663549", "0.56517667", "0.5640888", "0.5626471", "0.56206393", "0.5613627", "0.5610218", "0.5603575", "0.56031346", "0.5601418", "0.55991125", "0.55900514", "0.558391", "0.55766046", "0.55766046" ]
0.6559421
11
Provides test data for deleteItem()
public function seedDeleteItem() { // Id, Type, Expected, Exception return array( array('1', 'general', '1', null), array(null, 'general', null, 'InvalidArgumentException'), array('1', null, true, null), array('-1', null, null, 'UnexpectedValueException'), array('-1', 'general', false, null) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_delete_item() {}", "public function test_delete_item() {}", "public function test_delete_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n $item = ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $item->remove();\n\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(0, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "abstract public function doDelete($item);", "public function testDeleteItemSubCategory()\n {\n }", "abstract public function delete($item);", "public function testDestroy()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n Item::factory()->count(10)->create();\n\n //test item not found\n $this->delete('/items/11111')\n ->seeJson([\n 'error' => 'Item Not Found',\n ])\n ->seeJson([\n 'code' => 404,\n ]);\n\n //test success deleted item\n $this->delete('/items/1')\n ->seeJson([\n 'message' => 'Item 1 deleted',\n ])\n ->seeJson([\n 'status' => 'ok',\n ]);\n\n $this->notSeeInDatabase('items', array('id' => 1));\n }", "public function test_deleteItemCategory() {\n\n }", "public function testDeleteItemSubCategoryFile()\n {\n }", "public function testDeleteTimesheetItems() {\n $deleted = $this->timesheetDao->deleteTimesheetItems(2, 1, 1, 1);\n $this->assertTrue($deleted);\n }", "public function testDestroyData()\n {\n $store = new Storage(TESTING_STORE);\n\n // get id from our first item\n $id = $store->read()[0]['_id'];\n\n // destroy the data by id\n $store->destroy($id);\n\n // get the rest of data after destroy\n $rest_of_items = $store->read();\n\n // since our data is only one (no data left) the results must be === 0\n $this->assertEquals(0, count($rest_of_items));\n }", "public function testRequestItemDeleteId50()\n {\n $response = $this->delete('/api/items/50');\n $response->assertJson([\n 'error' => true,\n\t\t\t\t'message' => 'there is no such items to be removed'\n ]);\n }", "abstract function del ($item);", "public function deleteItem($item);", "public function testDelete()\n {\n $dataLoader = $this->getDataLoader();\n $data = $dataLoader->getOne();\n $this->deleteTest($data['user']);\n }", "public function testDelete()\n {\n }", "public function testDeleteRoleItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testDeleteSuppliersUsingDELETE()\n {\n }", "public function testDeleteItemSubCategoryTag()\n {\n }", "public function testDeleteServiceData()\n {\n\n }", "public function test_deleteItemCategoryTag() {\n\n }", "public function testDeleteProductUsingDELETE()\n {\n }", "public function testDeleteItemDeletesPackage()\n {\n Zend_Registry::set('notifier', new MIDAS_Notifier(false, null));\n $modelLoad = new MIDAS_ModelLoader();\n $packageModel = $modelLoad->loadModel('Package', 'slicerpackages');\n $packagesFile = $this->loadData('Package', 'default', 'slicerpackages', 'slicerpackages');\n $packageDao = $packageModel->load($packagesFile[0]->getKey());\n $this->assertEquals(1, count($packageModel->getAll()));\n\n $itemDao = $this->Item->load($packageDao->getItemId());\n $this->assertNotEquals($itemDao, false);\n\n $this->Item->delete($itemDao);\n $this->assertEquals(0, count($packageModel->getAll()));\n }", "public function testStoreDelete()\n {\n\n }", "public function testRemoveItem()\n {\n $item = $this->addItem();\n\n $this->laracart->removeItem($item->getHash());\n\n $this->assertEmpty($this->laracart->getItem($item->getHash()));\n }", "public function deleted(Item $item)\n {\n //\n }", "public function deleted(Item $item)\n {\n //\n }", "public function deleteAnItem()\n {\n $keys = [\n 'cache-bin:user_1', 'cache-bin:article_1212'\n ];\n $key = 'article_*';\n $server = $this->getMemcachedMock(['getAllKeys', 'delete']);\n $server->expects($this->once())\n ->method('getAllKeys')\n ->willReturn($keys);\n $server->expects($this->once())\n ->method('delete')\n ->with('cache-bin:article_1212')\n ->willReturn(true);\n $this->driver->server = $server;\n $this->assertSame($this->driver, $this->driver->erase($key));\n }", "public function testDelete()\n {\n\n // Create exhibits and items.\n $neatline1 = $this->_createNeatline('Test Exhibit 1', '', 'test-exhibit-1');\n $neatline2 = $this->_createNeatline('Test Exhibit 2', '', 'test-exhibit-2');\n $item1 = $this->_createItem();\n $item2 = $this->_createItem();\n\n // Create records.\n $record1 = new NeatlineDataRecord($item1, $neatline1);\n $record2 = new NeatlineDataRecord($item2, $neatline1);\n $record3 = new NeatlineDataRecord($item1, $neatline2);\n $record4 = new NeatlineDataRecord($item2, $neatline2);\n $record1->save();\n $record2->save();\n $record3->save();\n $record4->save();\n\n // 2 exhibits, 4 data records.\n $_exhibitsTable = $this->db->getTable('NeatlineExhibit');\n $_recordsTable = $this->db->getTable('NeatlineDataRecord');\n $this->assertEquals($_exhibitsTable->count(), 2);\n $this->assertEquals($_recordsTable->count(), 4);\n\n // Call delete.\n $neatline1->delete();\n\n // 1 exhibits, 2 data records.\n $this->assertEquals($_exhibitsTable->count(), 1);\n $this->assertEquals($_recordsTable->count(), 2);\n\n }", "public function test_can_delete_items_by_category_id()\n {\n $response = $this->delete('/api/items/destroy/1');\n\n $response->assertStatus(200);\n\n $response->assertSee(0);\n }", "public function testDeleteBrandUsingDELETE()\n {\n }", "public function testDelete()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function testDeleteOrder()\n {\n }", "public function testDestroy()\n {\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $item = $this->model->factory()->create();\n\n // Removes the dates for comparison\n $itemArray = $item->toArray();\n unset($itemArray['created_at']);\n unset($itemArray['updated_at']);\n\n // Check that the model is in the database\n $this->assertDatabaseHas($this->table, $itemArray);\n\n $response = $this->delete(\"{$this->baseUrl}/{$item->getKey()}\", [], ['FORCE_CONTENT_TYPE'=>'json'])\n ->assertStatus(200);\n\n // The model should not exist in the database now\n $this->assertDatabaseMissing($this->table, $itemArray);\n\n }", "function deleteItem($db, $resource_pk, $item_pk) {\r\n\r\n// Update order for other items for the same resource link\r\n reorderItem($db, $resource_pk, $item_pk, 0);\r\n\r\n// Delete any ratings\r\n deleteRatings($db, $item_pk);\r\n\r\n// Delete the item\r\n $prefix = DB_TABLENAME_PREFIX;\r\n $sql = <<< EOD\r\nDELETE FROM {$prefix}item\r\nWHERE (item_pk = :item_pk) AND (resource_link_pk = :resource_pk)\r\nEOD;\r\n\r\n $query = $db->prepare($sql);\r\n $query->bindValue('item_pk', $item_pk, PDO::PARAM_INT);\r\n $query->bindValue('resource_pk', $resource_pk, PDO::PARAM_STR);\r\n $ok = $query->execute();\r\n\r\n return $ok;\r\n\r\n }", "public function testDeleteCategoryUsingDELETE()\n {\n }", "public function testDeleteKey()\n {\n }", "public function testCanDelete()\n {\n self::$apcu = [];\n $this->sut->add('myKey', 'myValue');\n $this->assertTrue($this->sut->delete('myKey'));\n $this->assertCount(0, self::$apcu);\n }", "public function testQuestionDeleteWithValidData() {\n $response = $this->get('question/' . $this->question->id . '/delete');\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $this->assertEquals('general.permission', $response->content->view);\n }", "public function testGetDeletedItemsSku()\n {\n $this->cartFactory->expects($this->once())->method('create')->willReturn($this->cartMock);\n $this->cartMock->expects($this->once())->method('setSession')->with($this->sessionQuote)->willReturnSelf();\n $failedItems[] = [\n 'item' => [\n 'sku' => 'dummy'\n ],\n 'code' => \\Magento\\AdvancedCheckout\\Helper\\Data::ADD_ITEM_STATUS_FAILED_SKU\n ];\n $this->cartMock->expects($this->once())->method('getFailedItems')->willReturn($failedItems);\n\n $this->assertEquals(['dummy'], $this->cart->getDeletedItemsSku());\n }", "public function test_delete() {\n global $DB;\n\n $startcount = $DB->count_records('course_modules');\n\n // Delete the course module.\n course_delete_module($this->quiz->cmid);\n\n // Now, run the course module deletion adhoc task.\n phpunit_util::run_all_adhoc_tasks();\n\n // Try purging.\n $recyclebin = new \\tool_recyclebin\\course_bin($this->course->id);\n foreach ($recyclebin->get_items() as $item) {\n $recyclebin->delete_item($item);\n }\n\n // Item was deleted, so no course module was restored.\n $this->assertEquals($startcount - 1, $DB->count_records('course_modules'));\n $this->assertEquals(0, count($recyclebin->get_items()));\n }", "public function testDeleteMetadata3UsingDELETE()\n {\n }", "public function deleteTest()\n {\n $this->assertEquals(true, $this->object->delete(1));\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function testRemovesOneUnitOfItemFromCart()\n {\n }", "function testDelete()\n {\n\n //Arrange\n $brand_name = \"Nike\";\n $test_brand = new Brand($brand_name);\n $test_brand->save();\n\n $brand_name2 = \"Adidas\";\n $test_brand2 = new Brand($brand_name2);\n $test_brand2->save();\n\n //Act\n $test_brand->delete();\n\n //Assert\n $this->assertEquals( [$test_brand2], Brand::getAll());\n }", "public function testDeleteMetadata1UsingDELETE()\n {\n }", "public abstract function getDelete(Table $table, $item);", "public function testDelete()\n\t{\n\t\t$obj2 = $this->setUpObj();\n\t\t$response = $this->call('DELETE', '/'.self::$endpoint.'/'.$obj2->id);\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t\t$result = $response->getOriginalContent()->toArray();\n\n\t\t// tes apakah sudah terdelete\n\t\t$response = $this->call('GET', '/'.self::$endpoint.'/'.$obj2->id);\n\t\t$this->assertEquals(500, $response->getStatusCode());\n\n\t\t// tes apakah hasil return adalah yang sesuai\n\t\tforeach ($obj2->attributesToArray() as $key => $val) {\n\t\t\t$this->assertArrayHasKey($key, $result);\n\t\t\tif (isset($result[$key])&&($key!='created_at')&&($key!='updated_at'))\n\t\t\t\t$this->assertEquals($val, $result[$key]);\n\t\t}\n\t}", "public function testDeleteSurvey0()\n {\n }", "public function testDeleteSurvey0()\n {\n }", "public function deleteItem( $id ) {\n\t}", "public function testDeleteTask()\n {\n }", "public function testQuarantineDeleteById()\n {\n\n }", "public function testDeleteTemplate()\n {\n\n }", "public function testDeleteMetadata()\n {\n }", "public function testDeleteValidScheduleItem() {\n // count the number of rows and save it for later\n $numRows = $this->getConnection()->getRowCount(\"scheduleItem\");\n // create a new ScheduleItem and insert to into mySQL\n $scheduleItem = new ScheduleItem(null,$this->VALID_SCHEDULE_ITEM_DESCRIPTION, $this->VALID_SCHEDULE_ITEM_NAME,$this->VALID_SCHEDULE_START_TIME, $this->VALID_SCHEDULE_END_TIME, $this->VALID_USER_ID);\n $scheduleItem->insert($this->getPDO());\n // delete the ScheduleItem from mySQL\n $this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"scheduleItem\"));\n $scheduleItem->delete($this->getPDO());\n // grab the data from mySQL and enforce the ScheduleItem does not exist\n $pdoScheduleItem = ScheduleItem::getScheduleItemByScheduleItemUserId($this->getPDO(), $scheduleItem->getScheduleItemUserId());\n $this->assertEquals($pdoScheduleItem->count(),0);\n $this->assertEquals($numRows, $this->getConnection()->getRowCount(\"scheduleItem\"));\n }", "protected function tearDown()\n {\n unset($this->item);\n }", "public function deleteItem($key)\n {\n }", "public function testDelete()\n {\n $model = $this->makeFactory();\n $model->save();\n\n $this->json('DELETE', static::ROUTE . '/' . $model->id, [], [\n 'Authorization' => 'Token ' . self::getToken()\n ])\n ->seeStatusCode(JsonResponse::HTTP_NO_CONTENT);\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function testCompanyManagementBackupsIdDelete()\n {\n\n }", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "function item_delete()\n {\n $key = $this->get('id');\n $this->supplies->delete($key);\n $this->response(array('ok'), 200);\n }", "public function deleteItem($itemCode): bool\n {\n }", "public function test_update_item() {}", "public function test_update_item() {}", "public function testDeleteMetadata2UsingDELETE()\n {\n }", "public function testDelete()\n {\n $this->clientAuthenticated->request('DELETE', '/transaction/delete/' . self::$objectId);\n $response = $this->clientAuthenticated->getResponse();\n $this->assertJsonResponse($response, 200);\n\n //Deletes physically the entity created by test\n $this->deleteEntity('Transaction', 'transactionId', self::$objectId);\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDelete() {\n /** @var \\Drupal\\commerce_product\\Entity\\ProductVariationInterface $variation */\n $first_variation = ProductVariation::create([\n 'type' => 'default',\n 'sku' => $this->randomMachineName(),\n 'title' => $this->randomString(),\n 'status' => 1,\n ]);\n $first_variation->save();\n\n /** @var \\Drupal\\commerce_product\\Entity\\ProductVariationInterface $variation */\n $second_variation = ProductVariation::create([\n 'type' => 'default',\n 'sku' => $this->randomMachineName(),\n 'title' => $this->randomString(),\n 'status' => 1,\n ]);\n $second_variation->save();\n\n /** @var \\Drupal\\commerce_wishlist\\Entity\\WishlistItemInterface $wishlist_item */\n $first_wishlist_item = WishlistItem::create([\n 'type' => 'commerce_product_variation',\n 'purchasable_entity' => $first_variation,\n ]);\n $first_wishlist_item->save();\n\n /** @var \\Drupal\\commerce_wishlist\\Entity\\WishlistItemInterface $wishlist_item */\n $second_wishlist_item = WishlistItem::create([\n 'type' => 'commerce_product_variation',\n 'purchasable_entity' => $second_variation,\n ]);\n $second_wishlist_item->save();\n\n $wishlist = Wishlist::create([\n 'type' => 'default',\n 'name' => 'My wishlist',\n 'wishlist_items' => [$first_wishlist_item, $second_wishlist_item],\n ]);\n $wishlist->save();\n\n $first_variation->delete();\n $this->container->get('cron')->run();\n\n // Confirm that the first wishlist item has been deleted.\n $first_wishlist_item = $this->reloadEntity($first_wishlist_item);\n $second_wishlist_item = $this->reloadEntity($second_wishlist_item);\n $this->assertEmpty($first_wishlist_item);\n $this->assertNotEmpty($second_wishlist_item);\n\n /** @var \\Drupal\\commerce_wishlist\\Entity\\WishlistInterface $wishlist */\n $wishlist = $this->reloadEntity($wishlist);\n $wishlist_items = $wishlist->getItems();\n $wishlist_item = reset($wishlist_items);\n $this->assertCount(1, $wishlist_items);\n $this->assertEquals($second_wishlist_item->id(), $wishlist_item->id());\n }", "public function testDeleteSuccessForHr() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_HUMAN_RESOURCES,\n\t\t\t'prefix' => 'hr'\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$this->generateMockedController();\n\t\t$url = '/hr/deferred/delete/3';\n\t\t$this->testAction($url, $opt);\n\t\t$this->checkFlashMessage(__('The deferred save has been deleted.'));\n\t\t$result = $this->Controller->Deferred->find('list', ['recursive' => -1]);\n\t\t$expected = [\n\t\t\t1 => '1',\n\t\t\t2 => '2',\n\t\t\t4 => '4',\n\t\t\t5 => '5',\n\t\t];\n\t\t$this->assertData($expected, $result);\n\t}", "function deleteItemFromDB()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->carousel_model->delete($result);\n }\n }", "public function testDeleteSupplierGroup()\n {\n }", "public function purchase_item_delete(){\r\n\t\t\r\n\t\t$this->Purchase_model->purchase_item_delete();\r\n\t}", "public function testDeleteUnsuccessfulReason()\n {\n }", "public function deleteItem($key);", "public function testDeleteEvent()\n {\n }", "public function test_product_delete_noData_test()\n {\n //crecion de usuario\n $user = new User();\n $user->name = 'amdin';\n $user->email = '[email protected]';\n $user->password = 'admin312';\n $user->save();\n\n //autenticacion de usuario\n Auth::loginUsingId(1);\n\n //comprobacion de autenticacion\n $this->assertAuthenticated();\n\n // Datos de un producto\n $data['dat'] = array(\n \"cod\" => \"2791\",\n \"name\" => \"Aceite 2000\",\n \"price\" => \"70000\",\n \"amount\" => \"20\",\n \"description\" => \"Aceite para motor\",\n );\n\n //agregar producto\n $this->post(route('add_product'), $data);\n\n //petecion de eliminacion del producto\n $del=[\n \"_token\" => csrf_token(),\n \"selected\"=> array() //id del producto\n ];\n\n //peticion de eliminacion\n $response = $this->delete('/productos',$del);\n\n //retorno exitoso de eliminacion\n $response->assertExactJson(array(0));\n\n //comprobacion de dato agregado a tabla de proveedores\n $this->assertDatabaseHas('products', [\n \"code\"=> $data['dat']['cod'],\n \"name\"=> $data['dat']['name'],\n \"sale_price\"=> $data['dat']['price'],\n \"description\"=> $data['dat']['description'],\n \"units_available\"=> $data['dat']['amount'],\n \"deleted_at\"=> null\n ]);\n\n }", "public function testDeleteSuccessForAdmin() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_ADMIN,\n\t\t\t'prefix' => 'admin'\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$this->generateMockedController();\n\t\t$url = '/admin/deferred/delete/2';\n\t\t$this->testAction($url, $opt);\n\t\t$this->checkFlashMessage(__('The deferred save has been deleted.'));\n\t\t$result = $this->Controller->Deferred->find('list', ['recursive' => -1]);\n\t\t$expected = [\n\t\t\t1 => '1',\n\t\t\t3 => '3',\n\t\t\t4 => '4',\n\t\t\t5 => '5',\n\t\t];\n\t\t$this->assertData($expected, $result);\n\t}", "public function testDeleteSupplier()\n {\n TestCase::assertEquals(1, 1);\n }", "public function test_prepare_item() {}", "public function testWebinarPanelistsDelete()\n {\n }", "public function testDeleteSnippet()\n {\n\n }", "public function testDeleteDocument()\n {\n }", "public function test_product_delete_test()\n {\n //crecion de usuario\n $user = new User();\n $user->name = 'amdin';\n $user->email = '[email protected]';\n $user->password = 'admin312';\n $user->save();\n\n //autenticacion de usuario\n Auth::loginUsingId(1);\n\n //comprobacion de autenticacion\n $this->assertAuthenticated();\n\n // Datos de un producto\n $data['dat'] = array(\n \"cod\" => \"2791\",\n \"name\" => \"Aceite 2000\",\n \"price\" => \"70000\",\n \"amount\" => \"20\",\n \"description\" => \"Aceite para motor\",\n );\n\n //agregar producto\n $this->post(route('add_product'), $data);\n\n //petecion de eliminacion del producto\n $del=[\n \"_token\" => csrf_token(),\n \"selected\"=> array('1') //id del producto\n ];\n\n //peticion de eliminacion\n $response = $this->delete('/productos',$del);\n\n //retorno exitoso de eliminacion\n $response->assertExactJson(array(1));\n\n //comprobacion de dato agregado a tabla de proveedores\n $this->assertDatabaseMissing('products', [\n \"code\"=> $data['dat']['cod'],\n \"name\"=> $data['dat']['name'],\n \"sale_price\"=> $data['dat']['price'],\n \"description\"=> $data['dat']['description'],\n \"units_available\"=> $data['dat']['amount'],\n \"deleted_at\"=> null\n ]);\n\n }", "public function testDelete()\n {\n $this->clientAuthenticated->request('DELETE', '/product/delete/' . self::$objectId);\n $response = $this->clientAuthenticated->getResponse();\n $this->assertJsonResponse($response, 200);\n\n //Deletes physically the entity created by test\n $this->deleteEntity('Product', 'productId', self::$objectId);\n }", "public function Delete($item)\n {\n $item->Delete();\n }", "public function testDeletACart(){\n //$this->markTestSkipped('making a skipped AssertionTest');\n $result = self::$cart->delCustomerCart();\n $this->assertNull($result);\n // if it did not delete the item an exception occurs\n }", "public function testDeleteUserAttributes()\n {\n }", "public function testdeleteTrade() {\n $user = 1;\n $product = 1;\n $price = 999;\n $desc = 'test';\n R::exec('UPDATE collection set products = \"{\"\"1\"\": 1}\" WHERE id = :id', [':id' => $user]);\n R::exec('DELETE FROM trades WHERE seller_id = :id', [':id' => $user]);\n addNewTrade($user, $product, $price, $desc);\n $trades = getOpenTrades($user);\n $this->assertEquals(1, countOpenTrades($user, $product));\n deleteTrade($user, $trades[0]['id']);\n $this->assertEquals(0, countOpenTrades($user, $product));\n R::exec('DELETE FROM trades WHERE seller_id = :id', [':id' => $user]);\n }", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "public function testDeleteOnDelete() {\n\t\t$Action = $this->_actionSuccess();\n\t\t$this->setReflectionClassInstance($Action);\n\t\t$this->callProtectedMethod('_delete', array(1), $Action);\n\t}", "function OnDeleteItem(){\n if (! $this->error) {\n $data = array($this->key_field => $this->item_id);\n if (strlen($this->host_library_ID)) {\n $this->library_ID = $this->host_library_ID;\n }\n\n if ($this->disabled_delete) {\n $this->OnAfterError();\n $this->AfterSubmitRedirect(\"?\".($this->Package!=\"\" ? \"package=\".$this->Package.\"&\" : \"\").\"page=\" . $this->listHandler . \"&\" . $this->library_ID . \"_start=\" . $this->start . \"&\" . $this->library_ID . \"_order_by=\" . $this->order_by . \"&library=\" . $this->library_ID . \"&\" . $this->library_ID . \"_parent_id=\" . $this->parent_id . \"&MESSAGE[]=LIBRARY_DISABLED_DELETE\" . \"&\" . $this->restore);\n }\n $errors = $this->HasChildNodes(array($this->item_id));\n if (! strlen($errors)) {\n $this->OnBeforeDeleteItem();\n $this->Storage->Delete($data);\n $this->DeleteNotOrdinaryFields();\n $this->OnAfterDeleteItem();\n $this->AfterSubmitRedirect(\"?\".($this->Package!=\"\" ? \"package=\".$this->Package.\"&\" : \"\").\"page=\" . $this->listHandler . \"&\" . $this->library_ID . \"_start=\" . $this->start . \"&\" . $this->library_ID . \"_order_by=\" . $this->order_by . \"&library=\" . $this->library_ID . \"&\" . $this->library_ID . \"_parent_id=\" . $this->parent_id . \"&MESSAGE=MSG_ITEM_DELETED\" . \"&\" . $this->restore);\n }\n else {\n $this->OnAfterError();\n $this->AfterSubmitRedirect(\"?\".($this->Package!=\"\" ? \"package=\".$this->Package.\"&\" : \"\").\"page=\" . $this->listHandler . \"&\" . $this->library_ID . \"_start=\" . $this->start . \"&\" . $this->library_ID . \"_order_by=\" . $this->order_by . \"&library=\" . $this->library_ID . \"&\" . $this->library_ID . \"_parent_id=\" . $this->parent_id . \"\" . $errors . \"\" . \"&\" . $this->restore);\n }\n }\n }", "function deleteItem($orderId)\n {\n }", "public function testDelete()\n {\n // test data\n $this->fixture->query('INSERT INTO <http://example.com/> {\n <http://s> <http://p1> \"baz\" .\n <http://s> <http://xmlns.com/foaf/0.1/name> \"label1\" .\n }');\n\n $res = $this->fixture->query('SELECT * WHERE {?s ?p ?o.}');\n $this->assertEquals(2, \\count($res['result']['rows']));\n\n // remove graph\n $this->fixture->delete(false, 'http://example.com/');\n\n $res = $this->fixture->query('SELECT * WHERE {?s ?p ?o.}');\n $this->assertEquals(0, \\count($res['result']['rows']));\n }", "function delete_item() {\n\n $code = 201;\n\n // Prepare different SQL for each entity type\n switch($_GET[\"type\"]) {\n case 'bucket':\n $sql = $GLOBALS[\"db\"]->prepare('DELETE FROM buckets WHERE user_id=:user_id AND bucket_id=:id');\n $sql->bindParam(':id', $_GET[\"id\"]);\n break;\n case 'category':\n $sql = $GLOBALS[\"db\"]->prepare('DELETE FROM categories WHERE user_id=:user_id AND category_id=:id');\n $sql->bindParam(':id', $_GET[\"id\"]);\n break;\n case 'task':\n $sql = $GLOBALS[\"db\"]->prepare('DELETE FROM tasks WHERE user_id=:user_id AND task_id=:id');\n $sql->bindParam(':id', $_GET[\"id\"]);\n break;\n case 'user':\n $sql = $GLOBALS[\"db\"]->prepare('DELETE FROM user WHERE user_id=:user_id');\n $code = 206;\n break;\n default:\n $_SESSION[\"msg\"][\"danger\"][] = \"Invalid type passed.\";\n return 500;\n }\n\n try {\n $sql->bindParam(':user_id', $_SESSION[\"user\"][\"user_id\"]);\n $sql->execute();\n\n if ($sql->rowCount() > 0) {\n // Deleted account so reset auth token\n if ($code == 206) {\n $_SESSION[\"user\"] = array();\n }\n return $code;\n } else {\n return 500;\n }\n\n\n } catch (\\PDOException $e) {\n $_SESSION[\"msg\"][\"danger\"][] = \"ERROR: PDO Exception on delete\";\n return 500;\n }\n}", "public function testDeletePromotionCampaignApplicationUsingDELETE()\n {\n }" ]
[ "0.8066715", "0.8066715", "0.7242159", "0.7169808", "0.7136282", "0.71328986", "0.7104087", "0.7069871", "0.70071465", "0.6994382", "0.69729584", "0.69596845", "0.6955279", "0.69316024", "0.691505", "0.68259966", "0.6785875", "0.67858106", "0.6753473", "0.6717797", "0.6696464", "0.66873527", "0.66812897", "0.66636604", "0.6610545", "0.66067445", "0.66067445", "0.6597035", "0.65941787", "0.658763", "0.65685844", "0.655351", "0.64797294", "0.64747995", "0.64680827", "0.64557284", "0.6447077", "0.6414464", "0.6406625", "0.6397063", "0.63914", "0.6391299", "0.6354506", "0.63429475", "0.63412935", "0.6324458", "0.6323209", "0.63215935", "0.6320471", "0.6315716", "0.6315716", "0.62939394", "0.6280795", "0.6265156", "0.6258919", "0.6256307", "0.6253576", "0.6252219", "0.62460196", "0.6232412", "0.62322164", "0.62322164", "0.6230255", "0.6222427", "0.62221396", "0.6213449", "0.620988", "0.620988", "0.6192224", "0.61911714", "0.6185253", "0.6185253", "0.6184102", "0.6180469", "0.6179696", "0.6174518", "0.61741984", "0.61698335", "0.6163565", "0.61613446", "0.6159308", "0.61590433", "0.6153466", "0.61467963", "0.6136126", "0.61287785", "0.6123581", "0.61183864", "0.6115459", "0.61058855", "0.61019295", "0.60785276", "0.60757256", "0.6075207", "0.60694844", "0.60660666", "0.60649925", "0.606172", "0.6061664", "0.6056754" ]
0.702659
8
Provides test data for hitItem()
public function seedHitItem() { // Id, Type, Expected, Exception return array( array(null, 'general', null, 'InvalidArgumentException'), array('-1', null, null, 'UnexpectedValueException'), array('-1', 'general', false, null), array('1', 'general', true, null), array('1', null, true, null) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetHit()\n {\n $key = \"unique\";\n $item = $this->cache->getItem($key);\n $item->set(\"content\");\n\n $res = $item->get();\n $this->assertNull($res, \"Should not be able to find a value\");\n\n $this->cache->save($item);\n $res = $item->get();\n $this->assertTrue(!is_null($res), \"Should have a value\");\n }", "public function test_prepare_item() {}", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "public function testGetCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function hit();", "public function testItemsProcFunc()\n {\n }", "public function test_individual_item_is_displayed()\n {\n $response = $this->get(\"/item-detail/1\");\n $response->assertSeeInOrder(['<strong>Title :</strong>', '<strong>Category :</strong>', '<strong>Details :</strong>']);\n }", "public function testGetCollectionItemSupply()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetCollectionItemSupplies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetCollectionItems()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function testGetItemSubCategoryTags()\n {\n }", "public function _testMultipleInventories()\n {\n\n }", "public function getHit()\n {\n return $this->hit;\n }", "public function testGetItems(): void\n {\n $array = $this->itemCollection->getItems();\n $this->assertInternalType('array', $array);\n $this->assertEmpty($array);\n\n $item = new Item(1, \"test\", 20);\n $item2 = new Item(2, \"test\", 20);\n $this->itemCollection->add($item);\n $this->itemCollection->add($item2, 5);\n\n $array = $this->itemCollection->getItems();\n\n $this->assertInternalType('array', $array);\n $this->assertEquals([\n $item,\n $item2\n ], $array);\n }", "public function isHit()\n {\n return $this->hit;\n }", "public function testGetItem()\n {\n $datastore = $this->container->get('datastore');\n $logger = $this->container->get('logger');\n\n $repo = $this->getMockBuilder(DataStoreRepository::class)\n ->setConstructorArgs([$datastore, $logger])\n ->getMock();\n\n $repo->method('getItem')\n ->will($this->returnValue([\n 'id' => 1,\n 'name' => 'Test',\n 'user_id' => 1,\n 'body' => 'Fixture'\n ]));\n\n $service = new Service($repo, $logger);\n $item = $service->getItem(1);\n\n $this->assertEquals($item->getName(), 'Test');\n $this->assertNotEquals($item->getUserId(), 2);\n }", "public function testFindPageReturnsDataForExistingItemNumber()\n\t{\n\t\t$this->getProviderMock('Item', 'search', JSON_WORKS);\n\t\t$json = $this->getJsonAction('ItemsController@show', '1');\n\t\t$this->assertEquals('works', $json->name);\n\t}", "public function testGetTimesheetItem() {\n\n\n $result = $this->timesheetDao->getTimesheetItem(1, 2);\n\n $this->assertEquals(3, count($result));\n\n $timesheetItem = $result[0];\n\n $this->assertEquals(\"2011-04-10\", $timesheetItem['date']);\n $this->assertEquals(1000, $timesheetItem['duration']);\n $this->assertEquals(\"Poor\", $timesheetItem['comment']);\n }", "public function testGetPayItems()\n {\n }", "public function testHasItem()\n {\n self::assertFalse($this->object->hasItem('test'));\n }", "public function test_getItemCategoryTags() {\n\n }", "public function testAggregatorItemFields() {\n $feed = Feed::create([\n 'title' => 'Drupal org',\n 'url' => 'https://www.drupal.org/rss.xml',\n ]);\n $feed->save();\n $item = Item::create([\n 'title' => 'Test title',\n 'fid' => $feed->id(),\n 'description' => 'Test description',\n ]);\n\n $item->save();\n\n // @todo Expand the test coverage in https://www.drupal.org/node/2464635\n\n $this->assertFieldAccess('aggregator_item', 'title', $item->getTitle());\n $this->assertFieldAccess('aggregator_item', 'langcode', $item->language()->getName());\n $this->assertFieldAccess('aggregator_item', 'description', $item->getDescription());\n }", "public function testIndex()\n {\n Item::factory()->count(20)->create();\n\n $this->call('GET', '/items')\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', 1);\n\n //test paginate\n $parameters = array(\n 'per_page' => 10,\n 'page' => 2,\n );\n\n $this->call('GET', '/items', $parameters)\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', $parameters['page'])\n ->assertJsonPath('meta.per_page', $parameters['per_page']);\n }", "public function testRequestItemId3()\n {\n $response = $this->get('/api/items/3');\n\n $response->assertStatus(200);\n }", "public function hasItemdata(){\n return $this->_has(22);\n }", "protected function setUp()\n {\n $this->item = new Item();\n }", "public function testAggregatorItem() {\n /** @var \\Drupal\\aggregator\\Entity\\Item $item */\n $item = Item::load(1);\n $this->assertSame('1', $item->id());\n $this->assertSame('5', $item->getFeedId());\n $this->assertSame('This (three) weeks in Drupal Core - January 10th 2014', $item->label());\n $this->assertSame('larowlan', $item->getAuthor());\n $this->assertSame(\"<h2 id='new'>What's new with Drupal 8?</h2>\", $item->getDescription());\n $this->assertSame('https://groups.drupal.org/node/395218', $item->getLink());\n $this->assertSame('1389297196', $item->getPostedTime());\n $this->assertSame('en', $item->language()->getId());\n $this->assertSame('395218 at https://groups.drupal.org', $item->getGuid());\n\n }", "public function test1()\n {\n $map = $this->dataLayer->tstTestMap1(100);\n $this->assertInternalType('array', $map);\n $this->assertCount(3, $map);\n $this->assertEquals(1, $map['c1']);\n $this->assertEquals(2, $map['c2']);\n $this->assertEquals(3, $map['c3']);\n }", "public function setUp()\n {\n\n parent::setUp();\n\n $coll1 = $this->_collection('Collection 1');\n $coll2 = $this->_collection('Collection 2');\n\n $this->item1 = $this->_collitem('Item 1', $coll1);\n $this->item2 = $this->_collitem('Item 2', $coll1);\n $this->item3 = $this->_collitem('Item 3', $coll2);\n $this->item4 = $this->_collitem('Item 4', $coll2);\n\n }", "public function visit(ItemInterface $item);", "public function hasItemdata(){\n return $this->_has(6);\n }", "public function test_add_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(1, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "function testAppreciatingNonperishableItem() {\n $items = array(new Item('Aged Brie', 2, 0));\n $gildedRose = new GildedRose($items);\n \n // check that item increases quality as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(2, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n }", "public function testPingTreeGetItem()\n {\n }", "public function randomItem();", "abstract protected function _getItems();", "abstract protected function getTestData() : array;", "static function getGriditemsInfo()\r\n\t{\r\n\t\treturn Storydata::get('item_locations',array());\t\t\r\n\t}", "public function testCreateCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function getItem() ;", "public function getSimpleHit()\n {\n return $this->simpleHit;\n }", "public function getIdentifyingData(FeedItemBase $item);", "public function testIndexActionHasExpectedData()\n {\n $this->dispatch('/index');\n $this->assertQueryContentContains('h1', 'My Albums');\n\n // At this point, i'd like to do a basic listing count of items.\n // However, we're not using a seperate test db with controlled seeds.\n // $this->assertQueryCount('table tr', 6);\n }", "public function testAddItemSubCategoryAudit()\n {\n }", "private static function createSampleData()\n\t{\n\t\tself::createSampleObject(1, \"Issue 1\", 1);\n\t\tself::createSampleObject(2, \"Issue 2\", 1);\n\t}", "public function testGetItemSubCategoryById()\n {\n }", "public function testFindPageReturnsDataForSuccessfulSearch()\n\t{\n\t\t$this->getProviderMock('Item', 'search', JSON_WORKS);\n\t\t$json = $this->getJsonAction('ItemsController@show', 'name=works');\n\t\t$this->assertEquals('works', $json->name);\n\t}", "public function test_it_show_random_item_in_array()\n {\n $payload = [\n 'items' => [\n 'apple',\n 'strawberry',\n 'kiwi',\n 'pineapple',\n 'banana',\n 'olive',\n ],\n ];\n\n // When submitting to the pick endpoint\n $response = $this->getJson(route('tools.random.pick', $payload));\n\n // Then it should return a random value\n $response->assertStatus(200);\n //TODO : Find a way to test this behaviour :grimacing:\n }", "public function testItemPriceAndQty()\n {\n $item = $this->addItem(3, 10);\n\n $this->assertEquals(3, $item->qty);\n $this->assertEquals(10, $item->price(false));\n $this->assertEquals(30, $item->subTotal(false));\n }", "public function testGetItemSubCategoryByFilter()\n {\n }", "public function test2()\n {\n $rows = $this->dataLayer->tstTestMap1(0);\n $this->assertInternalType('array', $rows);\n $this->assertCount(0, $rows);\n }", "public function testEventCallBackGetItem()\n {\n }", "function RenderItem( &$item, &$renderer, $isLast ) {\n\t\t$itemInfo['identifier'] = $item->getAttribute('identifier');\n\t\t\n\t\t$itemInfo['isLast'] = $isLast;\n\t\t\n\t\tif( $item->hasAttribute('identifierref') )\n\t\t\t$itemInfo['identifierref'] = $item->getAttribute('identifierref');\n\t\telse\n\t\t $itemInfo['identifierref'] = FALSE;\n\n\t\tif( $item->hasAttribute('isvisible') )\n\t\t $itemInfo['isvisible'] = ($item->getAttribute('isvisible')=='true')?TRUE:FALSE;\n\t\telse\n\t\t $itemInfo['isvisible'] = TRUE;\n\n\t\tif( $item->hasAttribute('parameters') )\n\t\t $itemInfo['parameters'] = $item->getAttribute('parameters');\n\t\telse\n\t\t $itemInfo['parameters'] = FALSE;\n\t\t\n\t\t$itemInfo['title'] = $this->getFirstElementValue($item, 'title');\n\t\t\n\t\t$itemInfo['adlcp_prerequisites'] = $this->getFirstElementValue($item, 'prerequisites', 'adlcp' );\n\t\t$itemInfo['adlcp_maxtimeallowed'] = $this->getFirstElementValue($item, 'maxtimeallowed', 'adlcp');\n\t\t$itemInfo['adlcp_timelimitaction'] = $this->getFirstElementValue($item, 'timelimitaction', 'adlcp');\n\t\t$itemInfo['adlcp_datafromlms'] = $this->getFirstElementValue($item, 'datafromlms', 'adlcp');\n\t\t$itemInfo['adlcp_masteryscore'] = $this->getFirstElementValue($item, 'masteryscore', 'adlcp');\n\t\t//$itemInfo['adlcp_completionthreshold'] = $this->getFirstElementValue($item, 'completionthreshold', 'adlcp');\n\t\t$threshold_elem = $this->getNodeElement($item, 'completionthreshold', 'adlcp');\n\t\tif( $threshold_elem && $threshold_elem->hasAttribute('minProgressMeasure') )\n\t\t $itemInfo['adlcp_completionthreshold'] = $threshold_elem->getAttribute('minProgressMeasure');\n\t\telse\n\t\t $itemInfo['adlcp_completionthreshold'] = '';\n\t\t\n $elem = $this->getFirstElementNode( $item, 'item');\n if( $elem )\n\t\t\t$itemInfo['isLeaf'] = FALSE;\n\t\telse\n\t\t $itemInfo['isLeaf'] = TRUE;\n\t\t \n\t\tif( $renderer == null ) {\n\t\t\tprint_r( $itemInfo );\n\t\t\t\n\t\t}\n\t\t$renderer->RenderStartItem(\t$this, $itemInfo );\n\t\t\n\t\twhile( $elem ) {\n\t\t\t$nextElem = $this->getNextElementNode( $elem );\n\t\t\t\n\t\t\t/* pass the info about the last element */\n\t\t\tif( $nextElem === NULL )\n\t\t\t $this->RenderItem( $elem, $renderer, true );\n\t\t\telse\n\t\t\t $this->RenderItem( $elem, $renderer, false );\n\t\t\t \n\t\t\t$elem = $nextElem;\n\t\t}\n\n $renderer->RenderStopItem( $this, $itemInfo );\n\n\t}", "abstract protected function prepareContextItem();", "public function objectIdentifierExposureTestData() {}", "private function testCollect() {\n $custom_data = array();\n\n // Collect all custom data provided by hook_insight_custom_data().\n $collections = \\Drupal::moduleHandler()->invokeAll('acquia_connector_spi_test');\n\n foreach ($collections as $test_name => $test_params) {\n $status = new TestStatusController();\n $result = $status->testValidate(array($test_name => $test_params));\n\n if ($result['result']) {\n $custom_data[$test_name] = $test_params;\n }\n }\n\n return $custom_data;\n }", "private function getPurchasePageData(){\n\t\t$this->template->imgurl = $this->getParam('imgurl');\n\t\tif ($this->isError()) {\n\t\t\treturn;\n\t\t}\n\t\t$this->getItem();\n\t\tif ($this->isError()) {\n\t\t\treturn;\n\t\t}\n\t\n\t\t// TODO Add 'name' to productdata\n\t\t$itemView = $this->template->item;\n\t\t$name = substr($itemView->description, 0, 35);\n\t\t$itemView->name = $name . '...';\n\n\t\t// Build shippng costs (including insurance)\n\t\t$shippingbase = shop_shipping_fee;\n\t\t$optionShipping = array();\n\t\t$options = $itemView->options;\n\t\tfor ($i = 0; $i < sizeof($options); $i++) {\n\t\t\t$option = $options[$i];\n\t\t\tif ($option->price < 100) {\n\t\t\t\t$ship = $shippingbase + 4;\n\t\t\t} else {\n\t\t\t\t$ship = $shippingbase + 8;\n\t\t\t}\n\t\t\t$optionShipping[$option->seq] = $ship;\n\t\t}\n\t\t$this->template->optionShipping = $optionShipping;\n\t\t\n\t\tLogger::info('Purchase page view ['.$this->template->item->id.']['.$this->template->item->code.']');\n\t}", "public function testGetItemSubCategoryFiles()\n {\n }", "public function testDestiny2GetItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function test_create_item() {}", "public function test_create_item() {}", "public function getTestIterationData()\n {\n $cases = [];\n\n // Case #0 Standard iterator.\n $cases[] = [\n [\n 'hits' => [\n 'total' => 1,\n 'hits' => [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ],\n ],\n [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ];\n\n return $cases;\n }", "protected function addItemDetails(&$item) \r\n\t{\r\n\t\t//$item->totals = KTBTrackerHelper::getUserTotals($item);\r\n\t\t$this->getUserInfo($item);\r\n\t}", "function testNormalItem() {\n $items = array(new Item('Elixir of the Mongoose', 2, 5));\n $gildedRose = new GildedRose($items);\n \n // check that normal item degrades as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(4, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n\n // now that item is expired, it should degrade twice as fast \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(0, $items[0]->quality);\n }", "protected function _getItemsData()\n {\n return array();\n }", "public function testShow()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n Item::factory()->count(10)->create();\n\n //Test success get the item\n $this->json('GET', '/items/1')\n ->seeJson([\n 'status' => 'ok',\n ])\n ->seeJson([\n 'email' => '[email protected]',\n ])\n ->seeJson([\n 'name' => 'test',\n ])\n ->seeJsonStructure([\n 'data' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]);\n\n //test item not found\n $this->call('GET', '/items/11111')\n ->assertStatus(404);\n }", "function testPerishableItems() {\n $items = array(\n new Item('Backstage passes to a TAFKAL80ETC concert', 11, 20)\n , new Item('Backstage passes to a TAFKAL80ETC concert', 6, 30)\n , new Item('Backstage passes to a TAFKAL80ETC concert', 2, 40)\n , new Item('Backstage passes to a TAFKAL80ETC concert', 20, 50)\n );\n $gildedRose = new GildedRose($items);\n \n // test assertions\n $gildedRose->update_quality();\n // over 10 days remaining should increase quality by 1\n $this->assertEquals(10, $items[0]->sell_in);\n $this->assertEquals(21, $items[0]->quality);\n\n // 6-10 days remaining should increase quality by 2\n $this->assertEquals(5, $items[1]->sell_in);\n $this->assertEquals(32, $items[1]->quality);\n\n // 1-5 days remaining should increase quality by 3\n $this->assertEquals(1, $items[2]->sell_in);\n $this->assertEquals(43, $items[2]->quality);\n\n // quality should never increase beyond 50\n $this->assertEquals(19, $items[3]->sell_in);\n $this->assertEquals(50, $items[3]->quality);\n\n // second iteration to test progressions\n $gildedRose->update_quality();\n // 6-10 days remaining should increase quality by 2\n $this->assertEquals(9, $items[0]->sell_in);\n $this->assertEquals(23, $items[0]->quality);\n\n // 1-5 days remaining should increase quality by 3\n $this->assertEquals(4, $items[1]->sell_in);\n $this->assertEquals(35, $items[1]->quality);\n\n // once product expires, the quality should fall to 0\n $this->assertEquals(0, $items[2]->sell_in);\n $this->assertEquals(0, $items[2]->quality);\n\n // quality should never increase beyond 50\n $this->assertEquals(18, $items[3]->sell_in);\n $this->assertEquals(50, $items[3]->quality);\n }", "protected function setUp()\n {\n parent::setUp();\n\n $json = '{\"title\": \"Example\", \"link\": \"http://example.com\", \"snippet\": \"Snippet\", \"htmlSnippet\": \"<strong>htmlSnippent</strong>\"}';\n $serializer = SerializerBuilder::create()->build();\n $this->item = $serializer->deserialize($json, Item::class, 'json');\n }", "public function testTap() {\n\t\t$object = (object)array('one' => 1, 'two' => 2, 'three' => 3);\n\t\t$function = function(&$obj) {\n\t\t\t$obj->four = 4;\n\t\t};\n\t\t$result = _::tap($object, $function);\n\t\t$this->assertSame($object, $result);\n\t\t$this->assertEquals(4, $result->four);\n\t}", "public function jsonViewTestData() {}", "public function testActivityInfoRetrieve()\n {\n }", "public function getItemData() {\n return array(\n 'itemSku' => $this->itemSku,\n 'itemQty' => $this->itemQty,\n 'itemDisc' => $this->itemDisc,\n 'itemMaxDisc' => $this->itemMaxDisc,\n 'rewardRatio' => $this->rewardRatio\n );\n }", "public function testGetData()\n {\n $response = $this->action('GET', '\\Modules\\Admin\\Http\\Controllers\\FaqCategoryController@getData');\n $this->assertResponseStatus(200, $response->status());\n $this->assertInstanceOf('Illuminate\\Http\\JsonResponse', $response);\n\n $actual = $response->getContent();\n $responseJsonData = json_decode($actual, true);\n\n $this->assertArrayHasKey('draw', $responseJsonData);\n $this->assertArrayHasKey('recordsTotal', $responseJsonData);\n $this->assertArrayHasKey('recordsFiltered', $responseJsonData);\n $this->assertArrayHasKey('data', $responseJsonData);\n $this->assertArrayHasKey('input', $responseJsonData);\n if (!empty($responseJsonData['data'])) {\n $keys = ['id', 'name', 'position', 'status', 'created_by', 'action'];\n\n foreach ($keys as $key) {\n $this->assertArrayHasKey($key, $responseJsonData['data'][0]);\n }\n }\n }", "public function testGetData() {\r\n $action = $this->_action;\r\n $this->assertEquals(null, $action->getData());\r\n\r\n $action->setData(array());\r\n $this->assertEquals(array(), $action->getData());\r\n }", "public function testGetCustom()\n {\n $response = $this->call('GET', '/graphql/custom', [\n 'query' => $this->queries['examplesCustom']\n ]);\n\n $content = $response->getData(true);\n $this->assertArrayHasKey('data', $content);\n $this->assertEquals($content['data'], [\n 'examplesCustom' => $this->data\n ]);\n }", "public function testBurnCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetCollectionItemBalance()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testHandlersHandlerTypeCostsGet()\n {\n }", "public function testIndex()\n\t{\n\t\t$response = $this->call('GET', '/'.self::$endpoint);\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t\t$result = $response->getOriginalContent()->toArray();\n\t\t$this->assertTrue(is_array($result));\n\t\t$this->assertTrue(count($result)>0);\n\n\t\t// tes apakah hasil return adalah yang sesuai\n\t\tforeach ($this->obj->attributesToArray() as $attr => $attr_val)\n\t\t\t$this->assertArrayHasKey($attr, $result[0]);\n\t}", "abstract public function getTestData(): array;", "public function testAddItemSubCategoryTag()\n {\n }", "function getItemIvar_dump($item_id, $name = '',$language='fr')\r\n\t{\r\n\t\tglobal $lang;\r\n\t\t$item = array('id' => $item_id);\r\n\r\n // retrieve the item data\r\n $item_data = $this->get_itemdata($item_id, $language);\r\n\t\tif (sizeof($item_data) == 0)\r\n\t\t{\r\n\t\t\t// error, probably an invalid item id\r\n\t\t\tunset($item['link']);\r\n\t\t\treturn $item;\r\n\t\t}\r\n\t\t// apparantly weve got valid item data\r\n\r\n\t\t$lang = $item_data[0]['attr']['LANG'];\r\n\r\n\t\t$tooltip = array();\r\n\t\t$slot = array();\r\n\t\t$lang_data = $this->get_item_langdata($lang, $language);\r\n\t\tforeach ($lang_data as $childe)\r\n\t\t{\r\n\t\t\tif ($childe[\"name\"] == 'ITEMTOOLTIP')\r\n\t\t\t{\r\n\r\n\t\t\t\tforeach ($childe['child'] as $child)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (strpos($child['attr']['ID'],'armory.item-tooltip.') !== false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$tooltip[substr($child['attr']['ID'],strlen('armory.item-tooltip.'))] = $child['data'];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ($childe[\"name\"] == 'ITEMSLOT')\r\n\t\t\t{\r\n\t\t\t\tforeach ($childe['child'] as $child)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (strpos($child['attr']['ID'],'armory.itemslot.slot.') !== false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$slot[substr($child['attr']['ID'],strlen('armory.itemslot.slot.'))] = $child['data'];\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\tif (debug_mode == true)\r\n\t\t{\r\n echo \"Search on the Armory site : language \".$lang.\"<br/>\";\r\n\t\t}\r\n\r\n $properties = $this->splitProperties($item_data[0]['child'][0]['child'][0]['child']);\r\n\r\n\t\tif (debug_mode == true) var_dump($properties);\r\n\r\n\t\t// set item data\r\n\t\tif ($name != '')\r\n\t\t{\r\n\t\t\t$item['name'] = $name;\r\n\t\t} else\r\n\t\t{\r\n\t\t\t$item['name'] = $properties['NAME']['data'];\r\n\t\t}\r\n\t\t$item['lang'] = $language;\r\n\t\t$item['link'] = 'http://'.$this->urlprefix.'.wowarmory.com/item-info.xml?i='.$item_id; // wowhead url to the item\r\n\t\t$item['icon'] = $properties['ICON']['data']; // icon filename without an extension\r\n\r\n\t\t// if download icons is enabled, download the icon\r\n\t\tif (DOWNLOAD_ICONS)\r\n\t\t{\r\n\t\t\tif (!$this->downloadIcon($item['icon']))\r\n\t\t\t{\r\n\t\t\t\t// failed to download the icon, use default\r\n\t\t\t\t$item['icon'] = DEFAULT_ICON;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// set the item color based on the item quality\r\n\t\tswitch ($properties['OVERALLQUALITYID']['data']) {\r\n\t\t\tcase 0:\r\n\t\t\t\t$item['color'] = 'greyname';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\t$item['color'] = 'whitename';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\t$item['color'] = 'greenname';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\t$item['color'] = 'bluename';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\t$item['color'] = 'purplename';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\t$item['color'] = 'orangename';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\t$item['color'] = 'redname';\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$item['color'] = 'greyname';\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t$properties['HTMLTOOLTIP']['data'] = \"<table><tr><td><b class=\\\"q\".$properties['OVERALLQUALITYID']['data'].\"\\\">\".$item['name'].\"</b><br/>\";\r\n\t\tswitch($properties['BONDING']['data'])\r\n\t\t{\r\n case '0': break; //for gems\r\n\t\t case '1': $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"binds-pickup\"].\"<br/>\";break;\r\n case '4': $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"quest-item\"].\"<br/>\";break;\r\n default : $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"binds-equipped\"].\"<br/>\";\r\n }\r\n\t\tif ($properties['MAXCOUNT']['data'])\r\n\t\t{\r\n $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"unique\"].\"<br/>\";\r\n }\r\n\r\n $slots = array (\r\n \t0 => $tooltip[\"non-equip\"],\r\n \t1 => $slot[\"head\"],\r\n \t2 => $slot[\"neck\"],\r\n \t3 => $slot[\"shoulders\"],\r\n \t4 => $slot[\"shirt\"],\r\n \t5 => $slot[\"chest\"],\r\n \t6 => $slot[\"waist\"],\r\n \t7 => $slot[\"legs\"],\r\n \t8 => $slot[\"feet\"],\r\n \t9 => $slot[\"wrist\"],\r\n \t10 => $slot[\"hands\"],\r\n \t11 => $slot[\"finger\"],\r\n \t12 => $slot[\"trinket\"],\r\n \t13 => $tooltip[\"one-hand\"],\r\n \t14 => $slot[\"offHand\"],\r\n \t15 => $slot[\"ranged\"],\r\n \t16 => $slot[\"back\"],\r\n \t17 => $tooltip[\"two-hand\"],\r\n \t18 => $tooltip[\"bag-type\"],\r\n \t19 => $slot[\"tabard\"],\r\n \t20 => $slot[\"chest\"],\r\n \t21 => $slot[\"mainHand\"],\r\n \t22 => $slot[\"offHand\"],\r\n \t23 => $tooltip[\"held-off-hand\"],\r\n \t24 => $tooltip[\"projectile\"],\r\n \t25 => $tooltip[\"thrown\"],\r\n \t26 => $slot[\"ranged\"],\r\n \t27 => $tooltip[\"quiver-type\"],\r\n \t28 => $slot[\"relic\"]\r\n );\r\n\r\n if ((int)$properties['EQUIPDATA_INVENTORYTYPE0']['data'] > 0)\r\n {\r\n \t$properties['HTMLTOOLTIP']['data'].= \"<table><tbody><tr><td>\";\r\n\t\t\t$typeName = $slots[$properties['EQUIPDATA_INVENTORYTYPE0']['data']];\r\n\t\t\tif (strpos($typeName,\"INDEX_\")!== false)\r\n\t\t\t{\r\n\t\t\t\t$typeName = \"\";\r\n\t\t\t\tforeach (array_keys($properties) as $key)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (strpos($key,\"EQUIPDATA_\")!==false && $key != \"EQUIPDATA_INVENTORYTYPE0\")\r\n\t\t\t\t\t$typeName.=$properties[$key][\"data\"].\" \";\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$properties['HTMLTOOLTIP']['data'].=$typeName;\r\n\t\t\t$properties['HTMLTOOLTIP']['data'].=\"</td><th>\".$properties['EQUIPDATA_SUBCLASSNAME1']['data'].\"</th></tr></tbody></table>\";\r\n\t\t}\r\n\r\n\t\tif ($properties['DAMAGEDATA']['data'])\r\n\t\t{\r\n \t$damage=array(0=>\"\", 1=>$tooltip[\"holy-damage\"], 2=>$tooltip[\"fire-damage\"], 3=>$tooltip[\"nature-damage\"], 4=>$tooltip[\"frost-damage\"], 5=>$tooltip[\"shadow-damage\"].\")\", 6=>$tooltip[\"arcane-damage\"]);\r\n $properties['HTMLTOOLTIP']['data'].= \"<table><tbody><tr><td>\".$properties['DAMAGEDATA_DAMAGE0_MIN']['data'].\" - \".$properties['DAMAGEDATA_DAMAGE0_MAX']['data'].\" \".$tooltip[\"damage\"];\r\n\t\t if ($damage[$properties['DAMAGEDATA_DAMAGE0_TYPE']['data']])\r\n\t\t {\r\n\t\t\t\t$properties['HTMLTOOLTIP']['data'].= \"(\".$damage[$properties['DAMAGEDATA_DAMAGE0_TYPE']['data']].\")\";\r\n\t\t }\r\n $properties['HTMLTOOLTIP']['data'].= \"</td><th>\".$tooltip[\"speed\"].\" \".number_format($properties['DAMAGEDATA_SPEED1']['data'],2).\"</th></tr></tbody></table>\";\r\n $properties['HTMLTOOLTIP']['data'].= \"(\".number_format($properties['DAMAGEDATA_DPS2']['data'],1).\" \".$tooltip[\"dps\"].\")<br/>\";\r\n }\r\n\r\n if ($properties['REQUIREDSKILL'])\r\n {\r\n $properties['HTMLTOOLTIP']['data'].= $tooltip[\"requires\"].\" \".$properties['REQUIREDSKILL']['attr']['NAME'].\" (\".$properties['REQUIREDSKILL']['attr']['RANK'].\")<br/>\";\r\n }\r\n\r\n if ($properties['ARMOR'])\r\n {\r\n \t\t$properties['HTMLTOOLTIP']['data'].= $tooltip[\"armor\"].\" \".$properties['ARMOR']['data'].\"<br/>\";\r\n }\r\n\r\n\r\n\t\t$caracs = array(\"BLOCKVALUE\" => \"block\", \"BONUSSTRENGTH\" => \"strength\", \"BONUSAGILITY\"=>\"agility\",\r\n\t\t\"BONUSSTAMINA\" => \"stamina\",\"BONUSINTELLECT\"=>\"intellect\",\"BONUSSPIRIT\"=>\"spirit\",\r\n\t\t\"FIRERESIST\"=>\"fire-resistance\",\"NATURERESIST\"=>\"nature-resistance\",\"FROSTRESIST\"=>\"frost-resistance\",\"SHADOWRESIST\"=>\"shadow-resistance\",\"ARCANERESIST\"=>\"arcane-resistance\");\r\n\t\tforeach ($caracs as $k => $c)\r\n\t\t{\r\n\t\t\tif ($properties[$k]['data'])\r\n\t\t\t{\r\n\t\t\t $properties['HTMLTOOLTIP']['data'].= (((int)$properties[$k]['data'])>0)?\"+\":\"\";\r\n\t\t\t $properties['HTMLTOOLTIP']['data'].= (int)$properties[$k]['data'];\r\n\t\t\t $properties['HTMLTOOLTIP']['data'].= \" \".$tooltip[$c].\"<br/>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n if ($properties['SOCKETDATA'])\r\n {\r\n \tfor ($i=0;$i<3;$i++)\r\n \t{\r\n \tif ($properties['SOCKETDATA_SOCKET'.$i])\r\n \t{\r\n \t$properties['HTMLTOOLTIP']['data'].= \"<span class=\\\"socket-\";\r\n\t\t\t \t\t$color = strtolower($properties['SOCKETDATA_SOCKET'.$i]['attr'][\"COLOR\"]);\r\n\t\t\t \t\t$properties['HTMLTOOLTIP']['data'].= $color.\" q0\\\">\".$tooltip[$color.\"-socket\"];\r\n $properties['HTMLTOOLTIP']['data'].= \"</span><br/>\";\r\n } else break;\r\n }\r\n if($properties['SOCKETDATA_SOCKETMATCHENCHANT'.$i]['data'])\r\n {\r\n \t$properties['HTMLTOOLTIP']['data'].=\"<span class=\\\"q0\\\">\".$tooltip[\"socket-bonus\"].\" : \".$properties['SOCKETDATA_SOCKETMATCHENCHANT'.$i]['data'].\"</span><br/>\";\r\n }\r\n }\r\n\r\n if ($properties['DURABILITY'])\r\n {\r\n \t$properties['HTMLTOOLTIP']['data'] .= $tooltip[\"durability\"].\" : \".$properties['DURABILITY']['attr']['CURRENT'].\" / \".$properties['DURABILITY']['attr']['MAX'].\"<br/>\";\r\n }\r\n\r\n if ($properties['ALLOWABLECLASSES'])\r\n {\r\n \t$properties['HTMLTOOLTIP']['data'] .= $tooltip[\"classes\"].\": \";\r\n for ($i=0;$i<10;$i++)\r\n {\r\n \tif ($properties['ALLOWABLECLASSES_CLASS'.$i])\r\n \t{\r\n \tif ($i>0)\r\n \t{\r\n \t\t$properties['HTMLTOOLTIP']['data'] .= \", \";\r\n \t}\r\n $properties['HTMLTOOLTIP']['data'] .= $properties['ALLOWABLECLASSES_CLASS'.$i]['data'];\r\n }\r\n else\r\n\t {\r\n\t $properties['HTMLTOOLTIP']['data'] .= \"<br/>\";\r\n\t break;\r\n\t }\r\n }\r\n }\r\n\r\n if ($properties['STARTQUESTID'])\r\n {\r\n \t$properties['HTMLTOOLTIP']['data'] .= \"<a href=\\\"http://www.wowhead.com/?quest=\".$properties['STARTQUESTID']['data'].\"\\\">\".$tooltip[\"begins-quest\"].\"</a><br/>\";\r\n }\r\n\r\n\r\n if ($properties['REQUIREDLEVEL'])\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"requires-level\"].\" \".$properties['REQUIREDLEVEL']['data'].\"<br/>\";\r\n }\r\n\r\n if ($properties['REQUIREDABILITY'])\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"requires\"].\" \".$properties['REQUIREDABILITY']['data'].\"<br/>\";\r\n }\r\n\r\n\t\tif ($properties['GEMPROPERTIES'])\r\n\t\t{\r\n $properties['HTMLTOOLTIP']['data'] .= $properties['GEMPROPERTIES']['data'].\"<br/>\";\r\n }\r\n\r\n $properties['HTMLTOOLTIP']['data'] .=\"</td></tr></table>\";\r\n $properties['HTMLTOOLTIP']['data'] .=\"<table><tr><td>\";\r\n\r\n\t\t$caracs = array(\r\n\t\t\t\"BONUSDEFENSESKILLRATING\" \t=> \"increase-defense\",\r\n\t\t\t\"INCREASEDODGE\"\t\t\t\t=> \"increase-dodge\",\r\n\t\t\t\"BONUSPARRYRATING\"\t\t\t=> \"bonusParryRating\",\r\n \t\"BONUSDODGERATING\" \t\t\t=> \"increase-dodge\",\r\n\t\t\t\"BONUSBLOCKRATING\" \t\t\t=> \"bonusBlockRating\",\r\n\t\t\t\"BONUSCRITRATING\"\t\t\t=> \"improve-crit-strike\",\r\n\t\t\t\"BONUSHITRATING\"\t\t\t=> \"improve-hit-rating\",\r\n\t\t\t\"BONUSHITTAKENRATING\"\t\t=> \"bonusHitTakenRating\",\r\n\t\t\t\"BONUSCRITTAKENRATING\"\t\t=> \"bonusCritTakenRating\",\r\n\t\t\t\"BONUSRESILIENCE\"\t\t\t=> \"improve-resilience\",\r\n\t\t\t\"BONUSHASTERATING\"\t\t\t=> \"bonusHasteRating\",\r\n\t\t\t\"BONUSSPELLPOWER\"\t\t\t=> \"bonusSpellPower\",\r\n\t\t\t\"BONUSexpertiseRating\"\t\t=> \"bonusExpertiseRating\",\r\n\t\t\t\"bonusArmorPenetration\"\t\t=> \"bonusArmorPenetration\",\r\n\t\t\t\"bonusAttackPower\"\t\t\t=> \"bonusAttackPower\",\r\n\t\t\t\"bonusRangedAttackPower\"\t=> \"bonusRangedAttackPower\",\r\n \t\"bonusFeralAttackPower\"\t\t=> \"bonusFeralAttackPower\",\r\n \t\"bonusManaRegen\"\t\t\t=> \"bonusManaRegen\"\r\n );\r\n foreach ($caracs as $k => $c)\r\n {\r\n\t\t\t$k = strtoupper($k);\r\n\t\t\tif ($properties[$k])\r\n\t\t\t{\r\n\t\t\t $properties['HTMLTOOLTIP']['data'] .= \"<span class=\\\"q2\\\">\".$tooltip[$c].\" \".$properties[$k]['data'].\"</span><br/>\";\r\n }\r\n\t\t}\r\n\r\n if ($properties['SPELLDATA'])\r\n {\r\n\t for ($i=0;$i<10;$i++)\r\n\t {\r\n\t if ($properties['SPELLDATA_SPELL'.$i])\r\n\t {\r\n\t $properties['HTMLTOOLTIP']['data'] .= \"<span class=\\\"q2\\\">\";\r\n\t switch ($properties['SPELLDATA_SPELL'.$i.'_TRIGGER']['data'])\r\n\t {\r\n\t case \"1\" : $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"equip\"].\": \"; break;\r\n\t case \"2\" : $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"chance-on-hit\"].\": \"; break;\r\n\t default : $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"use\"].\": \";\r\n\t }\r\n\t $properties['HTMLTOOLTIP']['data'] .= $properties['SPELLDATA_SPELL'.$i.'_DESC']['data'].\"</span><br/>\";\r\n\t } else break;\r\n\t }\r\n }\r\n\r\n if ($properties['SETDATA'])\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q\\\">\".$properties['SETDATA_NAME0']['data'].\"</span>\";\r\n for ($i=1;$i<15;$i++)\r\n {\r\n if ($properties['SETDATA_ITEM'.$i])\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= \"<div class=\\\"q0 indent\\\">\".$properties['SETDATA_ITEM'.$i]['attr']['NAME'].\"</div>\";\r\n } elseif ($properties['SETDATA_SETBONUS'.$i])\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q0\\\">(\".$properties['SETDATA_SETBONUS'.$i]['attr']['THRESHOLD'].\") : \".$properties['SETDATA_SETBONUS'.$i]['attr']['DESC'].\"</span>\";\r\n } else break;\r\n }\r\n\r\n $properties['HTMLTOOLTIP']['data'] .= \" <br/>\";\r\n }\r\n\r\n if ($properties['DESC']['data'])\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= \"<span class=\\\"q\\\">\\\"\".$properties['DESC']['data'].\"\\\"</span><br/>\";\r\n }\r\n\r\n if ($properties['SPELLDATA_SPELL0_REAGENT'])\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= $tooltip[\"requires\"].\" \";\r\n $properties['HTMLTOOLTIP']['data'] .= $properties['SPELLDATA_SPELL0_REAGENT']['attr']['NAME'].\" (\".$properties['SPELLDATA_SPELL0_REAGENT']['attr']['COUNT'].\")\";\r\n if ($properties['SPELLDATA_SPELL0_REAGENT']['nbre'])\r\n {\r\n for ($i=1;$i <= $properties['SPELLDATA_SPELL0_REAGENT']['nbre'];$i++)\r\n {\r\n $properties['HTMLTOOLTIP']['data'] .= \", \";\r\n $properties['HTMLTOOLTIP']['data'] .= $properties['SPELLDATA_SPELL0_REAGENT'.$i]['attr']['NAME'].\" (\".$properties['SPELLDATA_SPELL0_REAGENT'.$i]['attr']['COUNT'].\")\";\r\n }\r\n }\r\n $properties['HTMLTOOLTIP']['data'] .= \"<br/>\";\r\n }\r\n\r\n if (debug_mode == true) d($properties['ITEMSOURCE']);\r\n if ($properties['ITEMSOURCE'])\r\n {\r\n\r\n \t\t$_lang['is_from'] \t\t\t\t\t= 'Source';\r\n\t\t\t$_lang['is_vendor'] \t\t\t\t\t= 'Vendor';\r\n\t\t\t$_lang['is_Boss'] \t\t\t\t\t= 'Boss';\r\n\t\t\t$_lang['is_Droprate'] \t\t\t\t= 'Droprate';\r\n\t\t\t$_lang['is_crafted'] \t\t\t\t= 'Crafted';\r\n\t\t\t$_lang['is_pvp'] \t\t\t\t\t= 'PvP Reward';\r\n\t\t\t$_lang['is_reput']\t \t\t\t\t= 'Rep. Reward';\r\n\t\t\t$_lang['is_world']\t \t\t\t\t= 'WorldDrop';\r\n\r\n \tif($language=='de')\r\n \t{\r\n\t\t\t\t$_lang['is_from'] \t\t\t\t\t= 'Quelle';\r\n\t\t\t\t$_lang['is_vendor'] \t\t\t\t\t= 'H&auml;ndler';\r\n\t\t\t\t$_lang['is_Boss'] \t\t\t\t\t= 'Boss';\r\n\t\t\t\t$_lang['is_Droprate'] \t\t\t\t= 'Droprate';\r\n\t\t\t\t$_lang['is_crafted'] \t\t\t\t= 'Hergestellt';\r\n\t\t\t\t$_lang['is_pvp'] \t\t\t\t\t= 'PVP-Belohnung';\r\n\t\t\t\t$_lang['is_world']\t \t\t\t\t= 'WorldDrop';\r\n\t\t\t\t$_lang['is_reput']\t \t\t\t\t= 'Rufbelohnung';\r\n \t}\r\n\r\n \t$from = str_replace('sourceType.','',$properties['ITEMSOURCE']['attr']['VALUE']) ;\r\n\r\n \tif ($from == 'creatureDrop' )\r\n \t{\r\n \t\tif ($properties['ITEMSOURCE']['attr']['AREANAME'])\r\n \t\t{\r\n \t\t\t$from_link = \"http://\".$this->urlprefix.\".wowarmory.com/search.xml?fl%5Bsource%5D=dungeon&fl%5Bdungeon%5D=\".$properties['ITEMSOURCE']['attr']['AREAID'].\"&fl%5Bboss%5D=all&fl%5Bdifficulty%5D=normal&fl%5Btype%5D=all&fl%5BusbleBy%5D=all&fl%5BrqrMin%5D=&fl%5BrqrMax%5D=&fl%5Brrt%5D=all&advOptName=none&fl%5Bandor%5D=and&searchType=items&fl%5BadvOpt%5D=none\";\r\n \t\t\t$properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q\\\">\".$_lang['is_from'].\": </span> <a href=\".$from_link.\" target=_blank>\" . $properties['ITEMSOURCE']['attr']['AREANAME'].\"</a>\" ;\r\n \t\t}\r\n\r\n\r\n \t\tif ($properties['ITEMSOURCE']['attr']['CREATURENAME'])\r\n \t\t{\r\n \t\t $link = \"<a href=http://\".$this->urlprefix.\".wowarmory.com/search.xml?searchType=items&fl[source]=dungeon&fl[difficulty]=normal&fl[boss]=\".$properties['ITEMSOURCE']['attr']['CREATUREID'].\"\r\n \t\t\t\t\t target=_blank >\".$properties['ITEMSOURCE']['attr']['CREATURENAME'].\"</a>\";\r\n \t\t\t$properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q\\\">\".$_lang['is_Boss'].\": </span>\" . $link ;\r\n \t\t}\r\n\r\n\r\n \t\tif ($properties['ITEMSOURCE']['attr']['DROPRATE'])\r\n \t\t{\r\n \t\t\tswitch ($properties['ITEMSOURCE']['attr']['DROPRATE'])\r\n \t\t\t{\r\n \t\t\t\tcase 0:\r\n\t\t\t\t\t \t$droprate= \"0 - 0%\"; break;\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t \t$droprate= \"0 - 2%\"; break;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t \t$droprate= \"3 - 14% \"; break;\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t \t$droprate= \"15 - 24% \"; break;\r\n\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t \t$droprate= \"25 - 49% \"; break;\r\n\t\t\t\t\t\tcase 5:\r\n\t\t\t\t\t \t$droprate= \"50 - 75% \"; break;\r\n\t\t\t\t\t\tcase 6:\r\n\t\t\t\t\t \t$droprate= \"100%\"; break;\r\n \t\t\t}\r\n\r\n \t\t}\r\n \t\t$properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q\\\">\".$_lang['is_Droprate'].\": </span>\" . $droprate .\"\" ;\r\n\r\n \t}\r\n \telseif ($from == 'worldDrop')\r\n \t{\r\n \t\t$properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q\\\">\".$_lang['is_from'].\": </span> \".$_lang['is_world'] ;\r\n \t}\r\n \telseif ($from == 'vendor')\r\n \t{\r\n \t\t$properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q\\\">\".$_lang['is_from'].\": </span> \".$_lang['is_vendor'] ;\r\n \t}\r\n \telseif ($from == 'factionReward')\r\n \t{\r\n \t\t$properties['HTMLTOOLTIP']['data'] .= \"<br/><span class=\\\"q\\\">\".$_lang['is_from'].\": </span> \".$_lang['is_reput'] ;\r\n \t}\r\n \telse\r\n \t{\r\n\t \t $xml_item_data = itemstats_read_url('http://www.wowarmory.com/item-info.xml?i=' . $item_id, $language);\r\n\t\t $info_data = $this->xml_parser->parse($xml_item_data);\r\n\t\t if (sizeof($info_data) != 0)\r\n\t\t {\r\n\t\t if (debug_mode) d($info_data);\r\n\t\t $properties2 = $this->splitProperties($info_data[0]['child'][0]['child'][0]['child']);\r\n\t\t if (debug_mode) d($properties2);\r\n\t\t $reagents = array();\r\n\t\t if ($properties2['CREATEDBY_SPELL0_REAGENT'])\r\n\t\t {\r\n\t\t $reagents[] = $properties2['CREATEDBY_SPELL0_REAGENT']['attr'];\r\n\t\t $i = 1;\r\n\t\t while ($properties2['CREATEDBY_SPELL0_REAGENT'.$i])\r\n\t\t {\r\n\t\t $reagents[] = $properties2['CREATEDBY_SPELL0_REAGENT'.$i]['attr'];\r\n\t\t $i++;\r\n\t\t }\r\n\t\t if (debug_mode) var_dump($reagents);\r\n\t\t }\r\n\r\n\t\t if (sizeof($reagents) >0)\r\n\t\t {\r\n\t\t $item['reagent'] = '';\r\n\t\t foreach ($reagents as $reagent)\r\n\t\t {\r\n\t\t // if download icons is enabled, download the icon\r\n\t\t \t\t\tif (DOWNLOAD_ICONS)\r\n\t\t \t\t\t{\r\n\t\t \t\t\t\tif (!$this->downloadIcon($reagent['ICON']))\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t// failed to download the icon, use default\r\n\t\t \t\t\t\t\t$reagent['ICON'] = DEFAULT_ICON;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t}\r\n\t\t $item['reagent'] .= $reagent['COUNT'] .' x ';\r\n\t\t $item['reagent'] .= \"<img src=\\\"\".ICON_STORE_LOCATION.$reagent['ICON'].ICON_EXTENSION.\"\\\">\";\r\n\t\t $item['reagent'] .= \" \".$reagent['NAME'].\"<br/>\";\r\n\t\t }\r\n\r\n\t\t $template_html = trim(file_get_contents(dirname(__FILE__) . '/../templates/' . ARMORY_CRAFT));\r\n\t\t $item['reagent'] = str_replace('{ITEM_HTML}', $item['reagent'], $template_html);\r\n\t\t }\r\n\r\n\t\t }\r\n \t}\r\n }\r\n #################\r\n\r\n $properties['HTMLTOOLTIP']['data'] .=\"</td></tr></table>\";\r\n\r\n\t\tif (debug_mode)\r\n\t\t{\r\n var_dump(strpos($xml_item_data,\"<itemTooltip>\"+13));\r\n\t\t\tvar_dump($item);\r\n\t\t var_dump($properties);\r\n\t\t}\r\n\r\n\t\t// create the tooltip html\r\n\t\t/*if (substr($properties['HTMLTOOLTIP']['data'], 0, 7) != '<table>') {\r\n\t\t\t$item['html'] = '*' . $properties['HTMLTOOLTIP']['data'] . '</td></tr></table>';\r\n\t\t} else {\r\n\t\t*/\t$item['html'] = $properties['HTMLTOOLTIP']['data'];\r\n\t\t//}\r\n\r\n\t\t// remove the width attributes from the tooltips, they mess the tooltip up in IE\r\n\t\t$item['html'] = str_replace(' width=\"100%\"', '', $item['html']);\r\n\r\n\t\t// tooltip title/item name links to its wowhead page\r\n\t\t$item['html'] = str_replace($item['name'], '<a href=\\'' . $item['link'] . '\\' target=\\'_new\\'>' . $properties['NAME']['data'] . '</a>', $item['html']);\r\n\r\n\t\t// add escape slashes\r\n\t\t$item['html'] = str_replace('\"', '\\'', $item['html']);\r\n\r\n /*$item['html'] = preg_replace('/<a(.*?)>/', '', $item['html']);\r\n $item['html'] = str_replace('</a>', '', $item['html']);\r\n\r\n */// place the tooltip content html into the tooltip template\r\n\t\t$template_html = trim(file_get_contents(dirname(__FILE__) . '/../templates/' . ARMORY_TEMPLATE));\r\n\t\t$item['html'] = str_replace('{ITEM_HTML}', $item['html'], $template_html);\r\n\r\n\t\tforeach (array_keys($item) as $key)\r\n\t\t{\r\n\t\t $item[$key] = utf8_decode($item[$key]);\r\n\t\t if (DECODE_UTF8 == true)\r\n\t\t {\r\n\t\t \t$item[$key] = utf8_decode($item[$key]);\r\n }\r\n }\r\n\r\n if (DECODE_UTF8 == true)\r\n {\r\n $item['name'] = utf8_decode($item['name']);\r\n }\r\n\r\n $item['name'] = str_replace(chr(160),' ',$item['name']);\r\n\r\n\t\treturn $item;\r\n\t}", "public function test_update_item() {}", "public function test_update_item() {}", "public function getItemData()\n {\n return $this->_fields['ItemData']['FieldValue'];\n }", "function get_statistics_data_hit($params)\r\n {\r\n return $this->get_statistics_data_view($params);\r\n }", "function testLegendaryItem() {\n $items = array(\n new Item('Sulfuras, Hand of Ragnaros', 16, 60)\n , new Item('Sulfuras, Hand of Ragnaros', 0, 40)\n , new Item('Sulfuras, Hand of Ragnaros', -6, 90)\n );\n $gildedRose = new GildedRose($items);\n \n // test assertions\n $gildedRose->update_quality();\n // All legendary items should come back with no expiration date and 80 quality\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(80, $items[0]->quality);\n\n // ensure expiration date doesn't increment from 0 to a negative number, and quality increased to 80\n $this->assertEquals(0, $items[1]->sell_in);\n $this->assertEquals(80, $items[1]->quality);\n\n // ensure negative expiration dates are irrelevant, and quality can not be above 80\n $this->assertEquals(0, $items[2]->sell_in);\n $this->assertEquals(80, $items[2]->quality);\n\n // second iteration to test progressions\n $gildedRose->update_quality();\n // All legendary items should come back with no expiration date and 80 quality\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(80, $items[0]->quality);\n\n // ensure expiration date doesn't increment from 0 to a negative number, and quality increased to 80\n $this->assertEquals(0, $items[1]->sell_in);\n $this->assertEquals(80, $items[1]->quality);\n\n // ensure negative expiration dates are irrelevant, and quality can not be above 80\n $this->assertEquals(0, $items[2]->sell_in);\n $this->assertEquals(80, $items[2]->quality);\n\n }", "function test_sample()\n\t{\n\t\t// $post_id = $this->factory->post->create();\n\t\t// add_post_meta($post_id, 'unit_code', '1996-96482');\n\t\t//\n\t\t// $unit = Client::get('units/1996-96482');\n\t\t// var_dump($unit);\n\t\t//\n // $post = new VacationRental($post, $unit);\n\t\t//\n\t\t// // Replace this with some actual testing code.\n\t\t// $this->assertTrue( true );\n\t}", "public function testRequestCreateItem()\n {\n\t\t$response = $this\n\t\t\t\t\t->json('POST', '/api/items', [\n\t\t\t\t\t\t'name' => 'Produkt dodany przez test PHPUnit', \n\t\t\t\t\t\t'amount' => 0\n\t\t\t\t\t]);\n\n $response->assertStatus(200);\n }", "public function getInteractionStatus($user, $targetUser, $interactionCode, $item);", "public function testMintCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testCreatePayItem()\n {\n }", "public function testGetRoleItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function seedGetItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray('1', 'general', '1', null),\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('1', null, '1', null),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null)\n\t\t);\n\t}", "public function __construct($itemData) {\n if(self::$itemSchema == null) {\n self::updateSchema();\n }\n\n $this->defindex = $itemData->defindex;\n\n $this->backpackPosition = $itemData->inventory & 0xffff;\n $this->class = self::$itemSchema[$this->defindex]->item_class;\n $this->count = $itemData->quantity;\n $this->id = $itemData->id;\n $this->level = $itemData->level;\n $this->name = self::$itemSchema[$this->defindex]->item_name;\n $this->quality = self::$qualities[$itemData->quality];\n $this->slot = self::$itemSchema[$this->defindex]->item_slot;\n $this->type = self::$itemSchema[$this->defindex]->item_type_name;\n\n $this->equipped = array();\n foreach(self::$CLASSES as $classId => $className) {\n $this->equipped[$className] = ($itemData->inventory & (1 << 16 + $classId) != 0);\n }\n\n if(self::$itemSchema[$this->defindex]->attributes != null) {\n $this->attributes = self::$itemSchema[$this->defindex]->attributes->attribute;\n }\n }", "public function testAddItemSubCategory()\n {\n }", "public function testGetDuplicateItemSubCategoryById()\n {\n }", "public function testing()\n {\n //creating the item array with all the values of book object and fruit object\n $items = [new Book(20, \"1234\"), new Book(100, \"5678\"), new Fruit(10, 2, \"Banana\"), new Fruit(5, 5, \"Apple\")];\n\n //calling calculatePrice function to get the total cost\n $total = $this->calculatePrice($items);\n\n // printing the total cost of all items\n echo (\"Total Cost = \" . $total . \"\\n\");\n }" ]
[ "0.63430035", "0.5992969", "0.576574", "0.5755124", "0.5729514", "0.5717957", "0.5690432", "0.5651367", "0.55839455", "0.55823", "0.54106617", "0.5354996", "0.5327765", "0.5317737", "0.53120136", "0.52924937", "0.5286279", "0.5265441", "0.52643603", "0.5225654", "0.52075076", "0.5184086", "0.5181736", "0.515875", "0.51370734", "0.51311624", "0.51291144", "0.51265323", "0.5120709", "0.5119903", "0.511793", "0.5106632", "0.5101206", "0.50891054", "0.5086925", "0.50863785", "0.5083433", "0.50532156", "0.5049953", "0.5046045", "0.50348383", "0.503264", "0.50228053", "0.50099456", "0.50060195", "0.50027966", "0.50022656", "0.49980307", "0.49973547", "0.49964887", "0.49951798", "0.49943414", "0.49889484", "0.49879587", "0.49823964", "0.49763143", "0.49729347", "0.49646723", "0.49583754", "0.49396712", "0.49376872", "0.49364245", "0.49364245", "0.49351743", "0.4934479", "0.49320394", "0.4929041", "0.4923297", "0.49229884", "0.49146393", "0.4911714", "0.49071345", "0.4905907", "0.48978612", "0.48978034", "0.48922017", "0.4881186", "0.48737106", "0.48701063", "0.48694506", "0.48648944", "0.4863452", "0.48512238", "0.48479804", "0.48411736", "0.48411736", "0.48226476", "0.48121607", "0.4811726", "0.48098448", "0.48073828", "0.4803355", "0.47989756", "0.47970012", "0.47944915", "0.47936383", "0.47918594", "0.4790089", "0.47822747", "0.47822395" ]
0.6477098
0
Provides test data for likeItem()
public function seedLikeItem() { // Id, Type, Expected, Exception return array( array(null, 'general', null, 'InvalidArgumentException'), array('-1', null, null, 'UnexpectedValueException'), array('-1', 'general', false, null), array('1', 'general', true, null), array('1', null, true, null) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testA_post_can_be_liked(){\n $this->actingAs(factory(User::class)->create());\n $post =factory(Post::class)->create();\n // $user =factory(User::class)->create();\n $post->like();\n \n $this->assertCount(1, $post->likes);\n $this->assertTrue($post->likes->contains('id', auth()->id()));\n }", "public function testCreateLike(){\n $parameters = [\n 'liking_username' => 'ridho',\n 'id_post' => 1,\n 'like' => 1\n ];\n\n $this->post(\"/api/v1/like\", $parameters, []);\n $this->seeStatusCode(200);\n $this->seeJsonStructure(\n ['data' =>\n [\n 'status',\n 'id_post',\n 'liking_username',\n 'like'\n ]\n ]\n );\n }", "public function testProfilePrototypeGetLikes()\n {\n\n }", "public function testHasItem()\n {\n self::assertFalse($this->object->hasItem('test'));\n }", "public function seedUnlikeItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray('1', 'general', true, null)\n\t\t);\n\t}", "public function test_a_user_can_like_a_post(){\n \n //we have a signed in user\n \n //user likes the model\n $this->post->likes();\n //database should show\n $this->assertDatabaseHas('likes', [\n 'user_id' => $this->user->id,\n 'likeable_type' => \\App\\Post::class,\n 'likeable_id' => $this->post->id\n ]);\n\n $this->assertTrue($this->post->isLiked());\n\n \n }", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "public function test_prepare_item() {}", "public function testProfilePrototypeCountLikes()\n {\n\n }", "function testAppreciatingNonperishableItem() {\n $items = array(new Item('Aged Brie', 2, 0));\n $gildedRose = new GildedRose($items);\n \n // check that item increases quality as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(2, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n }", "public function testGetCollectionItemSupplies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function test_list_how_do_you_hears()\n {\n $data = factory(HowDoYouHear::class)->create();\n $response = $this->get($this->url, $this->headers());\n $response->assertStatus(200);\n $response->assertJsonStructure(array_keys($data->toarray()), $data->toarray());\n $this->assertDatabaseHas($this->table, $data->toarray());\n }", "public function inListForItemContainedReturnsTrueDataProvider() {}", "public function test_individual_item_is_displayed()\n {\n $response = $this->get(\"/item-detail/1\");\n $response->assertSeeInOrder(['<strong>Title :</strong>', '<strong>Category :</strong>', '<strong>Details :</strong>']);\n }", "public function testProfilePrototypeCreateLikes()\n {\n\n }", "public function howAre() {\n return $this->randomItem(\n \"Super, thanks for asking.\",\n 'Pretty good.',\n 'Just fine.',\n 'Never better.',\n 'Great!'\n );\n }", "public function getLikeQueryPartDataProvider() {}", "public function hasItemdata(){\n return $this->_has(22);\n }", "public function has_items()\n {\n }", "public function getLikedItems()\n {\n return ItemLikeModel::model()->with('item')->findAll('t.play_id=:playId AND t.status = \"like\"', array(\n ':playId' => $this->playid\n ));\n }", "public function testProfilePrototypeFindByIdLikes()\n {\n\n }", "public function testAggregatorItem() {\n /** @var \\Drupal\\aggregator\\Entity\\Item $item */\n $item = Item::load(1);\n $this->assertSame('1', $item->id());\n $this->assertSame('5', $item->getFeedId());\n $this->assertSame('This (three) weeks in Drupal Core - January 10th 2014', $item->label());\n $this->assertSame('larowlan', $item->getAuthor());\n $this->assertSame(\"<h2 id='new'>What's new with Drupal 8?</h2>\", $item->getDescription());\n $this->assertSame('https://groups.drupal.org/node/395218', $item->getLink());\n $this->assertSame('1389297196', $item->getPostedTime());\n $this->assertSame('en', $item->language()->getId());\n $this->assertSame('395218 at https://groups.drupal.org', $item->getGuid());\n\n }", "function testPerishableItems() {\n $items = array(\n new Item('Backstage passes to a TAFKAL80ETC concert', 11, 20)\n , new Item('Backstage passes to a TAFKAL80ETC concert', 6, 30)\n , new Item('Backstage passes to a TAFKAL80ETC concert', 2, 40)\n , new Item('Backstage passes to a TAFKAL80ETC concert', 20, 50)\n );\n $gildedRose = new GildedRose($items);\n \n // test assertions\n $gildedRose->update_quality();\n // over 10 days remaining should increase quality by 1\n $this->assertEquals(10, $items[0]->sell_in);\n $this->assertEquals(21, $items[0]->quality);\n\n // 6-10 days remaining should increase quality by 2\n $this->assertEquals(5, $items[1]->sell_in);\n $this->assertEquals(32, $items[1]->quality);\n\n // 1-5 days remaining should increase quality by 3\n $this->assertEquals(1, $items[2]->sell_in);\n $this->assertEquals(43, $items[2]->quality);\n\n // quality should never increase beyond 50\n $this->assertEquals(19, $items[3]->sell_in);\n $this->assertEquals(50, $items[3]->quality);\n\n // second iteration to test progressions\n $gildedRose->update_quality();\n // 6-10 days remaining should increase quality by 2\n $this->assertEquals(9, $items[0]->sell_in);\n $this->assertEquals(23, $items[0]->quality);\n\n // 1-5 days remaining should increase quality by 3\n $this->assertEquals(4, $items[1]->sell_in);\n $this->assertEquals(35, $items[1]->quality);\n\n // once product expires, the quality should fall to 0\n $this->assertEquals(0, $items[2]->sell_in);\n $this->assertEquals(0, $items[2]->quality);\n\n // quality should never increase beyond 50\n $this->assertEquals(18, $items[3]->sell_in);\n $this->assertEquals(50, $items[3]->quality);\n }", "public function likeItem($user_id, $item_id) {\n $this->itemAction($user_id, $item_id, 'like');\n }", "public function testGetCustom()\n {\n $response = $this->call('GET', '/graphql/custom', [\n 'query' => $this->queries['examplesCustom']\n ]);\n\n $content = $response->getData(true);\n $this->assertArrayHasKey('data', $content);\n $this->assertEquals($content['data'], [\n 'examplesCustom' => $this->data\n ]);\n }", "public function testListMetadata()\n {\n }", "public function hasItemdata(){\n return $this->_has(6);\n }", "public function testListUserItems() {\n $createUser = PromisePay::User()->create($this->userData);\n \n // update itemData, so seller is just created user\n $this->itemData['seller_id'] = $createUser['id'];\n \n // Create an item\n $createItem = PromisePay::Item()->create($this->itemData);\n \n // Get the list\n $getListOfItems = PromisePay::User()->getListOfItems($createUser['id']);\n \n $this->assertEquals($this->itemData['name'], $getListOfItems[0]['name']);\n $this->assertEquals($this->itemData['description'], $getListOfItems[0]['description']);\n }", "public function testGetCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetRoleItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function inListForItemNotContainedReturnsFalseDataProvider() {}", "public function shouldBeLike($expected) {}", "public function _testMultipleInventories()\n {\n\n }", "public function likes(){\n }", "public function testAggregatorItemFields() {\n $feed = Feed::create([\n 'title' => 'Drupal org',\n 'url' => 'https://www.drupal.org/rss.xml',\n ]);\n $feed->save();\n $item = Item::create([\n 'title' => 'Test title',\n 'fid' => $feed->id(),\n 'description' => 'Test description',\n ]);\n\n $item->save();\n\n // @todo Expand the test coverage in https://www.drupal.org/node/2464635\n\n $this->assertFieldAccess('aggregator_item', 'title', $item->getTitle());\n $this->assertFieldAccess('aggregator_item', 'langcode', $item->language()->getName());\n $this->assertFieldAccess('aggregator_item', 'description', $item->getDescription());\n }", "public function notSure() {\n return $this->randomItem(\n \"I'm not sure.\",\n \"I have absolutely no idea.\",\n \"Beats me!\",\n \"Um... good question!\"\n );\n }", "public function randomItem();", "public function testGetCollectionItemSupply()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetItemSubCategoryTags()\n {\n }", "function testNormalItem() {\n $items = array(new Item('Elixir of the Mongoose', 2, 5));\n $gildedRose = new GildedRose($items);\n \n // check that normal item degrades as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(4, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n\n // now that item is expired, it should degrade twice as fast \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(0, $items[0]->quality);\n }", "public function testExtraObject()\r\n {\r\n $this->_extraTest($this->extra);\r\n }", "public function testProfilePrototypeUpdateByIdLikes()\n {\n\n }", "public function testItemsProcFunc()\n {\n }", "public function okay() {\n return $this->randomItem(\n \"Okay, I'm on it!\",\n \"I'll get right on that!\",\n 'You got it, boss.',\n 'No problem!',\n 'Sure thing.'\n );\n }", "public function testAddItem()\n {\n $this->addItem();\n $this->addItem();\n\n $this->assertEquals(1, $this->laracart->count(false));\n $this->assertEquals(2, $this->laracart->count());\n }", "public function test_getItemCategoryTags() {\n\n }", "public function testGetItemsByType()\n\t{\n\t\t$items = self::$items->getItemsByType(\\ElectronicItem\\ElectronicItem::ELECTRONIC_ITEM_CONSOLE);\n\t\t$this->assertSame(350.98, $items[0]->getPrice());\n\t\t$this->assertSame(80, $items[0]->getExtrasPrice());\n\t}", "public function it_comparison_match_test()\n {\n\n // describe method App\\Movie::getRatingLike() should return 5 or \"5\", if not it will be failed\n $this->getRatingLike()->shouldBeLike(5);\n }", "public function testFindPageReturnsDataForExistingItemNumber()\n\t{\n\t\t$this->getProviderMock('Item', 'search', JSON_WORKS);\n\t\t$json = $this->getJsonAction('ItemsController@show', '1');\n\t\t$this->assertEquals('works', $json->name);\n\t}", "public function youCanPassInMetaData()\n {\n // Arrange...\n $fruit = $this->createTestModel();\n $meta = [\n 'foo' => 'bar'\n ];\n\n // Act...\n $response = $this->responder->success( $fruit, 200, $meta );\n\n // Assert...\n $this->assertEquals( $response->getStatusCode(), 200 );\n $this->assertContains( $meta, $response->getData( true ) );\n }", "public function testGetItemEligibilityPreview()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testIndexActionHasExpectedData()\n {\n $this->dispatch('/index');\n $this->assertQueryContentContains('h1', 'My Albums');\n\n // At this point, i'd like to do a basic listing count of items.\n // However, we're not using a seperate test db with controlled seeds.\n // $this->assertQueryCount('table tr', 6);\n }", "public function testSampleData()\n {\n $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords'] = [];\n\n $types = [\n 'boolean' => 'false',\n 'integer' => self::INT_NUMBER,\n 'double' => self::INT_NUMBER,\n 'int' => self::INT_NUMBER,\n 'tinyint' => self::TINY_INT_NUMBER,\n 'string' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'text' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'varchar' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'character varying' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'tinytext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'char' => \"'f'\",\n 'timestamp' => 'NOW()',\n 'timestamp with time zone' => 'NOW()',\n 'null' => null,\n 'longtext' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\",\n 'randomness' => \"'behat-test-string-\" . self::TYPE_STRING_TIME . \"'\"\n ];\n\n // Assert\n foreach ($types as $type => $val) {\n // Execute\n $result = $this->testObject->sampleData($type);\n\n $this->assertEquals($val, $result);\n }\n }", "public function testGetCollectionItems()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function testGetItems(): void\n {\n $array = $this->itemCollection->getItems();\n $this->assertInternalType('array', $array);\n $this->assertEmpty($array);\n\n $item = new Item(1, \"test\", 20);\n $item2 = new Item(2, \"test\", 20);\n $this->itemCollection->add($item);\n $this->itemCollection->add($item2, 5);\n\n $array = $this->itemCollection->getItems();\n\n $this->assertInternalType('array', $array);\n $this->assertEquals([\n $item,\n $item2\n ], $array);\n }", "function like($idevent) {\n\n\t\t\t$method = WALL . \"/feeds/$idevent/like\";\n\n\t\t\t$verbmethod = \"POST\";\n\n\t\t\t$params = array();\n\n\t\t\t$params = array_filter($params, function($item) { return !is_null($item); });\n\n\t\t\t$response = $this->zyncroApi->callApi($method, $params, $verbmethod);\n\n\t\t\treturn $response;\n\t\t}", "function test_sample()\n\t{\n\t\t// $post_id = $this->factory->post->create();\n\t\t// add_post_meta($post_id, 'unit_code', '1996-96482');\n\t\t//\n\t\t// $unit = Client::get('units/1996-96482');\n\t\t// var_dump($unit);\n\t\t//\n // $post = new VacationRental($post, $unit);\n\t\t//\n\t\t// // Replace this with some actual testing code.\n\t\t// $this->assertTrue( true );\n\t}", "public function likedBy(User $user){\n return $this->likes->contains('user_id', $user->id); \n }", "public function testGetTimesheetItem() {\n\n\n $result = $this->timesheetDao->getTimesheetItem(1, 2);\n\n $this->assertEquals(3, count($result));\n\n $timesheetItem = $result[0];\n\n $this->assertEquals(\"2011-04-10\", $timesheetItem['date']);\n $this->assertEquals(1000, $timesheetItem['duration']);\n $this->assertEquals(\"Poor\", $timesheetItem['comment']);\n }", "public function testHasItemInBox()\n {\n $box = new Box(['cat', 'toy', 'torch']);\n //Se espera que para esta entrada se regrese un True como respuesta,\n //puesto que el elemento toy existe.\n $this->assertTrue($box->has('toy'));\n //Se espera que para esta entrada se regrese un False como respuesta,\n //puesto que el elemento ball no existe.\n $this->assertFalse($box->has('ball'));\n }", "public function testSetGetDescription()\n {\n $this->item->setDescription('A fine javelin, suitable for throwing at retreating enemies.');\n $this->assertEquals($this->item->getDescription(), 'A fine javelin, suitable for throwing at retreating enemies.');\n }", "public function testGetItemSubCategoryByFilter()\n {\n }", "public function testGetItems()\n {\n $this->addItem();\n $this->addItem();\n\n $items = $this->laracart->getItems();\n\n $this->assertInternalType('array', $items);\n\n $this->assertCount(1, $items);\n\n $this->containsOnlyInstancesOf(LukePOLO\\LaraCart\\CartItem::class, $items);\n }", "public function testGetPayItems()\n {\n }", "function test_treatments_rate_true()\n {\n $this->seed();\n\n $user = User::where('email', '=', '[email protected]')->first();\n \n $token = JWTAuth::fromUser($user);\n $treatments = Treatment::factory()\n ->count(3)\n ->for($user)\n ->create(['public' => 1]);\n $treatment = Treatment::first();\n $response = $this->json('POST', '/api/rate/'.$treatment->id.'?token='.$token);\n $response->assertOk()->assertJsonFragment(['isStar'=>true]);\n }", "public function testShow()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n Item::factory()->count(10)->create();\n\n //Test success get the item\n $this->json('GET', '/items/1')\n ->seeJson([\n 'status' => 'ok',\n ])\n ->seeJson([\n 'email' => '[email protected]',\n ])\n ->seeJson([\n 'name' => 'test',\n ])\n ->seeJsonStructure([\n 'data' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]);\n\n //test item not found\n $this->call('GET', '/items/11111')\n ->assertStatus(404);\n }", "function testGettingAPageWillGetMetadata() {\n\t\t$result = $this->page->find('first', array('conditions' => array('Page.id' => 2)));\n\t\t$item = $this->page->find('first', array('conditions' => array('Page.id' => 2)));;\n\t\t$this->assertEqual($result['File']['author'], 'myself');\n\t}", "public function getLikeCount() : int\n {\n return $this->likeCount;\n }", "protected function provided_sample_data() {\n return ['user', 'context'];\n }", "public function test_it_show_random_item_in_array()\n {\n $payload = [\n 'items' => [\n 'apple',\n 'strawberry',\n 'kiwi',\n 'pineapple',\n 'banana',\n 'olive',\n ],\n ];\n\n // When submitting to the pick endpoint\n $response = $this->getJson(route('tools.random.pick', $payload));\n\n // Then it should return a random value\n $response->assertStatus(200);\n //TODO : Find a way to test this behaviour :grimacing:\n }", "public function testListExperts()\n {\n }", "public function testItemPriceAndQty()\n {\n $item = $this->addItem(3, 10);\n\n $this->assertEquals(3, $item->qty);\n $this->assertEquals(10, $item->price(false));\n $this->assertEquals(30, $item->subTotal(false));\n }", "public function testGetItemSubCategoryFiles()\n {\n }", "public function test_create_item() {}", "public function test_create_item() {}", "public function testAddExistingItem(): void {\n $item = new Item(1, \"test\", 20);\n $this->itemCollection->add($item, 2);\n\n $this->itemCollection->add($item, 10);\n\n $this->assertEquals(12, $this->itemCollection->getAmount($item));\n }", "public function like()\n {\n self::post(\"/photos/{$this->id}/like\");\n return true;\n }", "public function testPingTreeGetItem()\n {\n }", "public function testGetDuplicateItemSubCategoryById()\n {\n }", "public function testMagic() {\n\t\t$client = new \\Esprit\\Transport\\Fake(array(\n\t\t\t'index' => 'twitter',\n\t\t\t'type' => 'tweet'\n\t\t)) ;\n\n\t\t$request = $client->get(array('id' => 1)) ;\n\t\t$body = $request->body() ;\n\t\t$this->assertEquals('twitter',$request->index()) ;\n\t\t$this->assertEquals('tweet',$request->type()) ;\n\n\t\t$client->config('index', 'facebook') ;\n\t\t$request = $client->get(array('id' => 2)) ;\n\t\t$body = $request->body() ;\n\t\t$this->assertEquals('facebook',$request->index()) ;\n\n\t\t// Magic params\n\t\t$request = $client->get(666) ;\n\t\t$body = $request->body() ;\n\t\t$this->assertEquals('facebook',$request->index()) ;\n\t\t$this->assertEquals('tweet',$request->type()) ;\n\t\t$this->assertEquals(666,$body['id']) ;\n\n\t\ttry {\n\t\t\t$client->stats('ouch') ;\n\t\t\t$this->fail() ;\n\t\t} catch (\\Exception $e) {\n\t\t\treturn ;\n\t\t}\n\t}", "public function test_a_user_can_unlike_a_post(){\n \n //we have a signed in user\n \n //user likes the model\n $this->post->likes();\n\n $this->post->unlike();\n\n $this->assertFalse($this->post->isLiked());\n\n }", "public function test_all_item_listed_or_no_listed_items_message_is_displayed()\n {\n $response = $this->get('/');\n if($response->assertSeeText(\"Details\")){\n $response->assertDontSeeText(\"Sorry not items have been listed yet. Please check back later.\");\n } else {\n $response->assertSeeText(\"Sorry not items have been listed yet. Please check back later.\");\n }\n }", "public function test_getByExample() {\n\n }", "public function test_treatments_can_get_private_list_by_name_true()\n {\n $this->seed();\n $user = User::where('email', '=', '[email protected]')->first();\n $token = JWTAuth::fromUser($user);\n $number = rand(2,6);\n $name = Str::random(10);\n Treatment::factory()\n ->count($number)\n ->for($user)\n ->create(['public'=>0]);\n Treatment::factory()\n ->for($user)\n ->create(['public'=>0, 'title' =>$name]);\n $response = $this->json('GET','/api/treatments/private?token='.$token.'&name='.$name);\n\n $response->assertStatus(200)->assertJsonCount(1, 'data');\n }", "public function testDifferentTaxes()\n {\n\n $item = $this->addItem();\n\n $prevHash = $item->getHash();\n\n $item->tax = .05;\n\n $this->assertNotEquals($prevHash, $item->getHash());\n\n $item = $this->addItem();\n $item->tax = .3;\n\n $this->assertEquals('2.35', $this->laracart->total(false));\n\n $item = $this->addItem(1, 1, true, [\n 'tax' => .7\n ]);\n\n $this->assertEquals('.70', $item->tax());\n\n $this->assertEquals('4.05', $this->laracart->total(false));\n }", "public function testGetValues()\n {\n $this->todo('stub');\n }", "public function provideUrlLikeTagTests() {\n $result = [\n [[\n 'descr' => \"[email] gets converted.\",\n 'bbcode' => \"Send complaints to [email][email protected][/email].\",\n 'html' => \"Send complaints to <a href=\\\"mailto:[email protected]\\\" class=\\\"bbcode_email\\\">[email protected]</a>.\",\n ]],\n [[\n 'descr' => \"[email] supports both forms.\",\n 'bbcode' => \"Send complaints to [[email protected]]John Smith[/email].\",\n 'html' => \"Send complaints to <a href=\\\"mailto:[email protected]\\\" class=\\\"bbcode_email\\\">John Smith</a>.\",\n ]],\n [[\n 'descr' => \"Bad addresses in [email] are ignored.\",\n 'bbcode' => \"Send complaints to [email]jo\\\"hn@@@exa:mple.com[/email].\",\n 'html' => \"Send complaints to [email]jo&quot;hn@@@exa:mple.com[/email].\",\n ]],\n /*\n [[\n 'descr' => \"[video=youtube] gets converted.\",\n 'bbcode' => \"Watch this cute doggy!!! [video=youtube]dQw4w9WgXcQ[/video]\",\n 'html' => \"Watch this cute doggy!!! <object width=\\\"480\\\" height=\\\"385\\\"><param name=\\\"movie\\\" value=\\\"http://www.youtube.com/v/dQw4w9WgXcQ&hl=en_US&fs=1&\\\"></param><param name=\\\"allowFullScreen\\\" value=\\\"true\\\"></param><param name=\\\"allowscriptaccess\\\" value=\\\"always\\\"></param><embed src=\\\"http://www.youtube.com/v/dQw4w9WgXcQ&hl=en_US&fs=1&\\\" type=\\\"application/x-shockwave-flash\\\" allowscriptaccess=\\\"always\\\" allowfullscreen=\\\"true\\\" width=\\\"480\\\" height=\\\"385\\\"></embed></object>\",\n ]],\n [[\n 'descr' => \"[video=hulu] gets converted.\",\n 'bbcode' => \"Gleeks: [video=hulu]yuo37ilvL7pUlsKJmA6R0g[/video]\",\n 'html' => \"Gleeks: <object width=\\\"512\\\" height=\\\"288\\\"><param name=\\\"movie\\\" value=\\\"http://www.hulu.com/embed/yuo37ilvL7pUlsKJmA6R0g\\\"></param><param name=\\\"allowFullScreen\\\" value=\\\"true\\\"></param><embed src=\\\"http://www.hulu.com/embed/yuo37ilvL7pUlsKJmA6R0g\\\" type=\\\"application/x-shockwave-flash\\\" width=\\\"512\\\" height=\\\"288\\\" allowFullScreen=\\\"true\\\"></embed></object>\",\n ]],\n [[\n 'descr' => \"[video] ignores unknown video services.\",\n 'bbcode' => \"Watch this cute doggy!!! [video=flarb]abcdefg[/video]\",\n 'html' => \"Watch this cute doggy!!! [video=flarb]abcdefg[/video]\",\n ]],\n [[\n 'descr' => \"[video] ignores bad video IDs.\",\n 'bbcode' => \"Watch this cute doggy!!! [video=youtube]b!:=9_?[/video]\",\n 'html' => \"Watch this cute doggy!!! [video=youtube]b!:=9_?[/video]\",\n ]],\n [[\n 'descr' => \"[video] correctly supports width= and height= modifiers.\",\n 'bbcode' => \"Watch this cute doggy!!! [video=youtube width=320 height=240]dQw4w9WgXcQ[/video]\",\n 'html' => \"Watch this cute doggy!!! <object width=\\\"320\\\" height=\\\"240\\\"><param name=\\\"movie\\\" value=\\\"http://www.youtube.com/v/dQw4w9WgXcQ&hl=en_US&fs=1&\\\"></param><param name=\\\"allowFullScreen\\\" value=\\\"true\\\"></param><param name=\\\"allowscriptaccess\\\" value=\\\"always\\\"></param><embed src=\\\"http://www.youtube.com/v/dQw4w9WgXcQ&hl=en_US&fs=1&\\\" type=\\\"application/x-shockwave-flash\\\" allowscriptaccess=\\\"always\\\" allowfullscreen=\\\"true\\\" width=\\\"320\\\" height=\\\"240\\\"></embed></object>\",\n ]],\n */\n [[\n 'descr' => \"The [[wiki]] special tag produces a wiki link.\",\n 'bbcode' => \"This is a test of the [[wiki]] tag.\",\n 'html' => \"This is a test of the <a href=\\\"/?page=wiki\\\" class=\\\"bbcode_wiki\\\">wiki</a> tag.\",\n ]],\n [[\n 'descr' => \"The [[wiki]] special tag does not convert [a-zA-Z0-9'\\\".:_-].\",\n 'bbcode' => \"This is a test of the [[\\\"Ab1cd'Ef2gh_Ij3kl.,Mn4op:Qr9st-Uv0wx\\\"]] tag.\",\n 'html' => \"This is a test of the <a href=\\\"/?page=%22Ab1cd%27Ef2gh_Ij3kl.%2CMn4op%3AQr9st_Uv0wx%22\\\" class=\\\"bbcode_wiki\\\">&quot;Ab1cd'Ef2gh_Ij3kl.,Mn4op:Qr9st-Uv0wx&quot;</a> tag.\",\n ]],\n [[\n 'descr' => \"The [[wiki]] special tag can contain spaces.\",\n 'bbcode' => \"This is a test of the [[northwestern salmon]].\",\n 'html' => \"This is a test of the <a href=\\\"/?page=northwestern_salmon\\\" class=\\\"bbcode_wiki\\\">northwestern salmon</a>.\",\n ]],\n [[\n 'descr' => \"The [[wiki]] special tag cannot contain newlines.\",\n 'bbcode' => \"This is a test of the [[northwestern\\nsalmon]].\",\n 'html' => \"This is a test of the [[northwestern<br>\\nsalmon]].\",\n ]],\n [[\n 'descr' => \"The [[wiki]] special tag can contain a title after a | character.\",\n 'bbcode' => \"This is a test of the [[northwestern salmon|Northwestern salmon are yummy!]].\",\n 'html' => \"This is a test of the <a href=\\\"/?page=northwestern_salmon\\\" class=\\\"bbcode_wiki\\\">Northwestern salmon are yummy!</a>.\",\n ]],\n [[\n 'descr' => \"The [[wiki]] special tag doesn't damage anything outside it.\",\n 'bbcode' => \"I really loved reading [[arc 1|the first story arc]] because it was more entertaining than [[arc 2|the second story arc]] was.\",\n 'html' => \"I really loved reading <a href=\\\"/?page=arc_1\\\" class=\\\"bbcode_wiki\\\">the first story arc</a> because it was more entertaining than <a href=\\\"/?page=arc_2\\\" class=\\\"bbcode_wiki\\\">the second story arc</a> was.\",\n ]],\n [[\n 'descr' => \"The [[wiki]] special tag condenses and trims internal whitespace.\",\n 'bbcode' => \"This is a test of the [[ northwestern \\t salmon | Northwestern salmon are yummy! ]].\",\n 'html' => \"This is a test of the <a href=\\\"/?page=northwestern_salmon\\\" class=\\\"bbcode_wiki\\\">Northwestern salmon are yummy!</a>.\",\n ]],\n ];\n return $result;\n }", "public function testGetCollectionItemBalance()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testIndex()\n {\n Item::factory()->count(20)->create();\n\n $this->call('GET', '/items')\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', 1);\n\n //test paginate\n $parameters = array(\n 'per_page' => 10,\n 'page' => 2,\n );\n\n $this->call('GET', '/items', $parameters)\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n '*' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]\n ])\n ->assertJsonPath('meta.current_page', $parameters['page'])\n ->assertJsonPath('meta.per_page', $parameters['per_page']);\n }", "protected function setUp()\n {\n $this->item = new Item();\n }", "public function testContentTypesItem()\n {\n $this->contentTypeListTest('products');\n $this->contentTypeListTest('blogs');\n $this->contentTypeListTest('app_flows');\n $this->contentTypeListTest('lists');\n $this->contentTypeListTest('user_reviews');\n $this->contentTypeListTest('boards');\n }", "public function testCreatePayItem()\n {\n }", "public function testGetHit()\n {\n $key = \"unique\";\n $item = $this->cache->getItem($key);\n $item->set(\"content\");\n\n $res = $item->get();\n $this->assertNull($res, \"Should not be able to find a value\");\n\n $this->cache->save($item);\n $res = $item->get();\n $this->assertTrue(!is_null($res), \"Should have a value\");\n }", "function test_sampleme() {\n\t\t// Replace this with some actual testing code.\n\t\t$this->assertTrue( true );\n\t}", "public function test_getDuplicateItemCategoryById() {\n\n }", "public function goodNews() {\n return $this->randomItem(\n \"You'll be pleased to know\",\n 'Good news!',\n 'Ta-da.',\n 'Woohoo,',\n 'Here you go!',\n 'Yes!'\n );\n }", "public function testGetCollectionItemBalances()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testPingTreePatchItem()\n {\n }" ]
[ "0.61771715", "0.61449546", "0.6136539", "0.60863084", "0.6047796", "0.60084134", "0.6001215", "0.5994141", "0.5905232", "0.5869117", "0.586811", "0.57619196", "0.5748943", "0.57322335", "0.5698464", "0.5694551", "0.5678303", "0.56558514", "0.56482184", "0.5616035", "0.55807406", "0.5566797", "0.5547051", "0.5532889", "0.5467367", "0.5448213", "0.544454", "0.544348", "0.54257077", "0.5404722", "0.53976953", "0.53867596", "0.53844047", "0.53809553", "0.5366261", "0.534678", "0.53449243", "0.53425187", "0.5319647", "0.53169525", "0.53037393", "0.5301966", "0.5274102", "0.5269394", "0.52373827", "0.5231506", "0.52096355", "0.5203733", "0.5194302", "0.51644903", "0.51589334", "0.51510286", "0.5147444", "0.5144253", "0.51439005", "0.51359123", "0.513052", "0.5124064", "0.51235217", "0.5121821", "0.5117211", "0.5106146", "0.5101959", "0.5100684", "0.50913644", "0.5090474", "0.5089052", "0.507916", "0.5077671", "0.5072876", "0.50720686", "0.5067931", "0.5055834", "0.5044039", "0.50410765", "0.50364083", "0.50364083", "0.5028647", "0.500904", "0.50039357", "0.4996614", "0.4996387", "0.49946702", "0.49810272", "0.49793115", "0.49778917", "0.49727976", "0.49674043", "0.4963261", "0.4958763", "0.49558634", "0.494697", "0.49466556", "0.49450582", "0.49428913", "0.49400836", "0.49369547", "0.49247494", "0.49223167", "0.4920698" ]
0.607605
4
Provides test data for unlikeItem()
public function seedUnlikeItem() { // Id, Type, Expected, Exception return array( array('1', 'general', true, null) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_a_user_can_unlike_a_post(){\n \n //we have a signed in user\n \n //user likes the model\n $this->post->likes();\n\n $this->post->unlike();\n\n $this->assertFalse($this->post->isLiked());\n\n }", "public function inListForItemNotContainedReturnsFalseDataProvider() {}", "public function unlike() {\r\n return $this->setLike(false);\r\n }", "function unlike($idevent) {\n\n\t\t\t$method = WALL . \"/feeds/$idevent/unlike\";\n\n\t\t\t$verbmethod = \"POST\";\n\n\t\t\t$params = array();\n\n\t\t\t$params = array_filter($params, function($item) { return !is_null($item); });\n\n\t\t\t$response = $this->zyncroApi->callApi($method, $params, $verbmethod);\n\n\t\t\treturn $response;\n\t\t}", "function testAppreciatingNonperishableItem() {\n $items = array(new Item('Aged Brie', 2, 0));\n $gildedRose = new GildedRose($items);\n \n // check that item increases quality as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(2, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n }", "public function youCanOmitData()\n {\n // Arrange...\n $meta = [\n 'foo' => 'bar'\n ];\n\n // Act...\n $response = $this->responder->success( 200, $meta );\n\n // Assert...\n $this->assertEquals( $response->getStatusCode(), 200 );\n $this->assertContains( $meta, $response->getData( true ) );\n }", "public function testHasItem()\n {\n self::assertFalse($this->object->hasItem('test'));\n }", "public function unlike()\n {\n self::delete(\"photos/{$this->id}/like\");\n return true;\n }", "function testNormalItem() {\n $items = array(new Item('Elixir of the Mongoose', 2, 5));\n $gildedRose = new GildedRose($items);\n \n // check that normal item degrades as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(4, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n\n // now that item is expired, it should degrade twice as fast \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(0, $items[0]->quality);\n }", "public function notSure() {\n return $this->randomItem(\n \"I'm not sure.\",\n \"I have absolutely no idea.\",\n \"Beats me!\",\n \"Um... good question!\"\n );\n }", "function unlike( $aParams, $aaData = NULL )\n\t{\n if( count( $aParams ) < 1 ) {\n $this->errorMessage( 'Need a minimum of 1 parameter' );\n }\n\n // check we have data\n if( !array_key_exists('id',$_POST) OR intval($_POST['id']) == '' ){\n $this->errorMessage( 'Missing required data' );\n }\n if( !array_key_exists('type',$_POST) OR $_POST['type'] == '' ){\n $this->errorMessage( 'Missing required data' );\n }\n\n // get variables ready\n $post_type = $_POST['type'];\n $post_id = $_POST['id'];\n $like_account_user_id = $_SESSION['authi']['user_settings']['active_pet_id']['setting_int'];\n $like_dt = date( 'Y-m-d H:i:s' );\n\n // update relevant table\n switch( strtolower($post_type) ) {\n \n case 'text':\n case 'album':\n $sSQL = \"\n UPDATE posts\n SET post_likes = post_likes - 1\n WHERE post_type = '$post_type'\n AND post_id = $post_id\n LIMIT 1\n \";\n break;\n\n case 'photo':\n $sSQL = \"\n UPDATE photos\n SET photo_likes = photo_likes - 1\n WHERE photo_id = $post_id\n LIMIT 1\n \";\n break;\n\n } // end switch\n\n #echo $sSQL;\n\t\t$aaData = $this->oDB->upd($sSQL, '');\n\n\n // update like table\n $sSQL = \"\n DELETE FROM likes\n WHERE like_type = '$post_type'\n AND like_item_id = $post_id\n AND like_account_user_id = $like_account_user_id\n LIMIT 1\n \";\n #echo $sSQL;\n\t\t$aaData = $this->oDB->del($sSQL, '');\n\n // return like count\n $iLikeCount = appFunctions::getLikeCount( $post_type, $post_id );\n if( $iLikeCount == 1 ) {\n $aaResponse['mobile'] = \"$iLikeCount pet likes this\";\n $aaResponse['non-mobile'] = \"$iLikeCount pet likes this\";\n } else {\n $aaResponse['mobile'] = \"$iLikeCount pets like this\";\n $aaResponse['non-mobile'] = \"$iLikeCount pets like this\";\n }\n echo json_encode( $aaResponse );\n\n\t}", "public function testProfilePrototypeDeleteLikes()\n {\n\n }", "public function seedLikeItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null),\n\t\t\t\tarray('1', 'general', true, null),\n\t\t\t\tarray('1', null, true, null)\n\t\t);\n\t}", "public function test_individual_item_does_not_exist()\n {\n $response = $this->get(\"/item-detail/12\");\n $response->assertSeeText('Sorry! the item you are looking for does not exist');\n }", "public function testItemWithIdShouldNotBeConsideredNew()\n {\n $item = $this->createItem($this->faker->randomNumber());\n $this->assertFalse($item->isNew());\n }", "public function testUnArchivedItem() {\n\n $response = $this->request('GET', $this->getURIData($this->TEST_BOARD_HASH));\n\n $body = (string) $response->getBody();\n $json = json_decode($body, true);\n\n $this->assertArrayHasKey(\"stacks\", $json);\n $this->assertIsArray($json[\"stacks\"]);\n\n foreach($json[\"stacks\"] as $stack){\n $this->assertIsArray($stack);\n $this->assertArrayHasKey(\"cards\", $stack);\n\n foreach($stack[\"cards\"] as $card){\n $this->assertIsArray($card);\n $this->assertArrayHasKey(\"id\", $card);\n $this->assertArrayHasKey(\"title\", $card);\n\n if($card[\"title\"] == $this->TEST_CARD_TITLE){\n $this->assertEquals(0, $card[\"archive\"]);\n }\n }\n }\n }", "private function unlike($postDataArr){\n $access_token = isset($postDataArr['access_token']) ? filter_var($postDataArr['access_token'], FILTER_SANITIZE_STRING) : '';\n $device_type = isset($postDataArr['device_type']) ? filter_var($postDataArr['device_type'], FILTER_SANITIZE_NUMBER_INT) : '';\n $user_id = isset($postDataArr['user_id']) ? filter_var($postDataArr['user_id'],FILTER_SANITIZE_STRING) : '';\n if(!empty($access_token)){\n if(!empty($device_type) && $device_type!= 1 && $device_type!= 2){ //1 = ANDROID 2 = IOS\n //INVALID DEVICE TYPE ERROR\n $errorMsgArr = array();\n $errorMsgArr['CODE'] = INVALID_ACCESS_CODE;\n $errorMsgArr['STATUS'] = FALSE;\n $errorMsgArr['APICODERESULT'] = $this->lang->line('APIRESULT_SUCCESS');\n $errorMsgArr['MESSAGE'] = $this->lang->line('INVALID_ACCESS');\n $this->response($errorMsgArr);\n }\n //VALIDATE ACCESS\n $valid = $this->Api_model->validateAccess($access_token);\n if(isset($valid['STATUS']) && !$valid['STATUS']){\n //ACCESS TOKEN INVALID\n $errorMsgArr = array();\n $errorMsgArr['CODE'] = INVALID_ACCESS_CODE;\n $errorMsgArr['STATUS'] = FALSE;\n $errorMsgArr['APICODERESULT'] = $this->lang->line('APIRESULT_SUCCESS');\n $errorMsgArr['MESSAGE'] = $valid['MESSAGE'];\n $this->response($errorMsgArr);\n }\n \n if(!empty($user_id)){\n $check = $this->Common_model->fetch_data('user_likes','id',array('where' => array('user_id' => $user_id,'liked_by' => $valid['VALUE']['user_id'], \"status\" => ACTIVE)),TRUE);\n if(empty($check)){\n //YOU HAVE ALREADY LIKED THIS USER\n $errorMsgArr = array();\n $errorMsgArr['CODE'] = ALREADY_REG_CODE;\n $errorMsgArr['STATUS'] = FALSE;\n $errorMsgArr['APICODERESULT'] = $this->lang->line('APIRESULT_SUCCESS');\n $errorMsgArr['MESSAGE'] = $this->lang->line('NOT_LIKED');\n $this->response($errorMsgArr);\n }\n \n $this->Common_model->delete_data('user_likes',array('where' => array('id' => $check['id'])));\n //FETCH TOTAL LIKE COUNT\n $totalcount = $this->Common_model->fetch_count(\"user_likes\", array('where' => array(\"user_id\" => $user_id)));\n \n //SUCCESS\n $errorMsgArr = array();\n $errorMsgArr['CODE'] = SUCCESS_CODE;\n $errorMsgArr['STATUS'] = TRUE;\n $errorMsgArr['APICODERESULT'] = $this->lang->line('APIRESULT_SUCCESS');\n $errorMsgArr['MESSAGE'] = $this->lang->line('APIRESULT_SUCCESS');\n $errorMsgArr['VALUE']['count']= $totalcount;\n $this->response($errorMsgArr);\n }else{\n //PARAM MISSING\n $errorMsgArr = array();\n $errorMsgArr['CODE'] = PARAM_MISSING_CODE;\n $errorMsgArr['STATUS'] = FALSE;\n $errorMsgArr['APICODERESULT'] = $this->lang->line('APIRESULT_SUCCESS');\n $errorMsgArr['MESSAGE'] = $this->lang->line('PARAM_MISSING');\n $this->response($errorMsgArr);\n }\n }else{\n //ACCESS TOKEN MISSING ERROR\n $errorMsgArr = array();\n $errorMsgArr['CODE'] = INVALID_ACCESS_CODE;\n $errorMsgArr['STATUS'] = FALSE;\n $errorMsgArr['APICODERESULT'] = $this->lang->line('APIRESULT_SUCCESS');\n $errorMsgArr['MESSAGE'] = $this->lang->line('ACCESSTOKEN_MISSING');\n $this->response($errorMsgArr);\n }\n \n }", "public function testRequestItemsUnavailable()\n {\n $response = $this->get('/api/items/unavailable');\n\n $response->assertStatus(200);\n }", "function testGetNotReviewed()\n {\n $events = $this->GroupEvent->getNotReviewed(1);\n $this->assertEqual(Set::extract('/GroupEvent/id', $events), array(1, 2));\n\n //Test invalid event\n $events = $this->GroupEvent->getNotReviewed(999);\n $this->assertEqual(Set::extract('/GroupEvent/id', $events), null);\n }", "public function unlike(){\n $this->likes()->where([\n 'user_id' => auth()->id()\n ])->delete();\n }", "public function unlike() {\n\n $review = Input::get('review');\n\n if (!$review == \"\") {\n\n DB::table('review_likes')\n ->where('review_id', $review)\n ->where('user_id', Auth::user()->id)\n ->delete();\n }\n }", "public function testRemoveMulti()\n {\n $data = static::articleData();\n\n $result = Hash::remove($data, '{n}.Article.title');\n $this->assertFalse(isset($result[0]['Article']['title']));\n $this->assertFalse(isset($result[1]['Article']['title']));\n\n $result = Hash::remove($data, '{n}.Article.{s}');\n $this->assertFalse(isset($result[0]['Article']['id']));\n $this->assertFalse(isset($result[0]['Article']['user_id']));\n $this->assertFalse(isset($result[0]['Article']['title']));\n $this->assertFalse(isset($result[0]['Article']['body']));\n\n $data = [\n 0 => ['Item' => ['id' => 1, 'title' => 'first']],\n 1 => ['Item' => ['id' => 2, 'title' => 'second']],\n 2 => ['Item' => ['id' => 3, 'title' => 'third']],\n 3 => ['Item' => ['id' => 4, 'title' => 'fourth']],\n 4 => ['Item' => ['id' => 5, 'title' => 'fifth']],\n ];\n\n $result = Hash::remove($data, '{n}.Item[id=/\\b2|\\b4/]');\n $expected = [\n 0 => ['Item' => ['id' => 1, 'title' => 'first']],\n 2 => ['Item' => ['id' => 3, 'title' => 'third']],\n 4 => ['Item' => ['id' => 5, 'title' => 'fifth']],\n ];\n $this->assertEquals($expected, $result);\n\n $data[3]['testable'] = true;\n $result = Hash::remove($data, '{n}[testable].Item[id=/\\b2|\\b4/].title');\n $expected = [\n 0 => ['Item' => ['id' => 1, 'title' => 'first']],\n 1 => ['Item' => ['id' => 2, 'title' => 'second']],\n 2 => ['Item' => ['id' => 3, 'title' => 'third']],\n 3 => ['Item' => ['id' => 4], 'testable' => true],\n 4 => ['Item' => ['id' => 5, 'title' => 'fifth']],\n ];\n $this->assertEquals($expected, $result);\n }", "public function unlike()\n {\n $this->likes()->where('user_id', auth()->id())->delete();\n }", "public function unlike(\\Tuiter\\Models\\User $user,\\Tuiter\\Models\\Post $post):bool{\n $unLike=new \\Tuiter\\Models\\Like($post->getPostId(),$user->getUserId());\n if(!($this->likeExist($unLike))){\n return false;\n }\n $delete=$this->collection->deleteOne(array(\n 'likeId'=>$unLike->getLikeId()\n ));\n return true;\n }", "public function get_unapproved_items() {\n return $this->query(\"SELECT * FROM `items` where NOT `approved` order by `premium` desc, `date`\");\n }", "public function testItemWithoutIdShouldBeConsideredNew()\n {\n $item = $this->createItem();\n $this->assertTrue($item->isNew());\n }", "public function testRemoveItem()\n {\n $item = $this->addItem();\n\n $this->laracart->removeItem($item->getHash());\n\n $this->assertEmpty($this->laracart->getItem($item->getHash()));\n }", "public function test_a_user_can_toggle_posts(){\n \n //we have a signed in user\n \n //user likes the model\n $this->post->toggle();\n\n $this->assertTrue($this->post->isLiked());\n\n $this->post->toggle();\n\n $this->assertFalse($this->post->isLiked());\n }", "public function test_delete_item() {}", "public function test_delete_item() {}", "public function testGetRoleItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testA_post_can_be_liked(){\n $this->actingAs(factory(User::class)->create());\n $post =factory(Post::class)->create();\n // $user =factory(User::class)->create();\n $post->like();\n \n $this->assertCount(1, $post->likes);\n $this->assertTrue($post->likes->contains('id', auth()->id()));\n }", "public function getIgnoreItems(): array;", "public function dislikeItem($user_id, $item_id) {\n $this->itemAction($user_id, $item_id, 'dislike');\n }", "public function testGetTimesheetItemForNonExistingItems() {\n\n $result = $this->timesheetDao->getTimesheetItem(0, 0);\n $result1 = $this->timesheetDao->getTimesheetItem(1, 0);\n $result2 = $this->timesheetDao->getTimesheetItem(0, 1);\n\n $this->assertNull($result[0]['date']);\n $this->assertNull($result[0]['duration']);\n $this->assertNull($result[0]['comment']);\n\n $this->assertNull($result1[0]['date']);\n $this->assertNull($result1[0]['duration']);\n $this->assertNull($result1[0]['comment']);\n\n $this->assertNull($result2[0]['date']);\n $this->assertNull($result2[0]['duration']);\n $this->assertNull($result2[0]['comment']);\n }", "public function unlike($object) {\n\t\t$this->construct();\n\t\tif (!$this->canWrite()) return false;\n\t\t$object = $this->validID($object);\n\t\tif (empty($object)) return false;\n\t\ttry {\n\t\t\t$url = self::base_uri . $object . self::getURL('likes') . self::base_query . $_SESSION['tokens']['fb'];\n\t\t\tlist($headers, $response) = httpWorker::request($url, 'DELETE');\n\t\t\treturn $response;\n\t\t} catch (Exception $e) {\n\t\t\t$_SESSION['error'] = $e->getMessage();\n\t\t}\n\t\treturn false;\n\t}", "public function unlike(User $user)\n {\n $redisKeyForLikes = 'post:' . $this->id . ':likes'; //the set will store user ids\n $redisKeyForUserLikedPosts = 'user:' . $user->id . ':likes'; //the set will store post ids\n \n //initialize redis connection\n $redis = Yii::$app->redis;\n \n $redis->srem($redisKeyForLikes, $user->id);\n $redis->srem($redisKeyForUserLikedPosts, $this->id);\n \n return true;\n }", "public function testFailureWrongIDSCondition()\n {\n $user = User::find(1);\n $this->actingAs($user);\n\n $response = $this->postJson('/v1/collection/book/remove', [\n 'collection_id' => 'collection_5fac21047eb21',\n 'book_id' => 'wrong_id',\n ]);\n\n $response->assertSessionMissing('success');\n }", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "public function testListUserItems() {\n $createUser = PromisePay::User()->create($this->userData);\n \n // update itemData, so seller is just created user\n $this->itemData['seller_id'] = $createUser['id'];\n \n // Create an item\n $createItem = PromisePay::Item()->create($this->itemData);\n \n // Get the list\n $getListOfItems = PromisePay::User()->getListOfItems($createUser['id']);\n \n $this->assertEquals($this->itemData['name'], $getListOfItems[0]['name']);\n $this->assertEquals($this->itemData['description'], $getListOfItems[0]['description']);\n }", "public function testIsNotTagged(): void\n {\n /** @var Collection $models */\n $models = TestModel::isNotTagged()->get();\n $keys = $models->modelKeys();\n\n self::assertArrayValuesAreEqual(\n [\n $this->testModel1->getKey(),\n ],\n $keys\n );\n }", "public function shouldBeSkipped();", "public function testCreateLike(){\n $parameters = [\n 'liking_username' => 'ridho',\n 'id_post' => 1,\n 'like' => 1\n ];\n\n $this->post(\"/api/v1/like\", $parameters, []);\n $this->seeStatusCode(200);\n $this->seeJsonStructure(\n ['data' =>\n [\n 'status',\n 'id_post',\n 'liking_username',\n 'like'\n ]\n ]\n );\n }", "function userDisliked($post_id)\n{\n global $conn;\n global $user_id;\n $sql = \"SELECT * FROM vote_info WHERE user_id=$user_id \n \t\t AND idea_id=$post_id AND vote_action='dislike'\";\n $result = mysqli_query($conn, $sql);\n if (mysqli_num_rows($result) > 0) {\n \treturn true;\n }else{\n \treturn false;\n }\n}", "public function testProfilePrototypeGetLikes()\n {\n\n }", "public function test_prepare_item() {}", "public function shouldNotReturn($expected) {}", "public function testProfilePrototypeUpdateByIdLikes()\n {\n\n }", "public function seedDeleteItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray('1', 'general', '1', null),\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('1', null, true, null),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null)\n\t\t);\n\t}", "public function testGetCollectionItemSupplies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testRetrieveListUnsuccessfulReason()\n {\n }", "public function testNodeStatus() {\n $this->assertCount(2, $this->items, '2 nodes in the index.');\n $this->processor->preprocessIndexItems($this->items);\n $this->assertCount(1, $this->items, 'An item was removed from the items list.');\n $published_nid = 'entity:node' . IndexInterface::DATASOURCE_ID_SEPARATOR . '2:en';\n $this->assertTrue(isset($this->items[$published_nid]), 'Correct item was removed.');\n }", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "public function unlike() {\n if (isset($_GET['post_id'])) {\n $post_id = $_GET['post_id'];\n Post::unlike($_GET['post_id']);\n }\n// redirect to gallery\n call('posts', 'index');\n }", "public function testRejectedTransation()\n {\n $precondition = Factory::instance('RejectedTransaction');\n\n $testdata = $precondition->getData();\n\n $this->assertTrue($testdata['amount'] == 51.03);\n }", "public function getIgnoreItemsOnUpdate(): array;", "public function disliked()\n {\n\t\t$user = $this->uri->segment(2, 0);;\n }", "public function test_user_cannot_both_upvote_and_downvote() {\n\n $user = User::create('[email protected]', 'secret', 'Jane Doe');\n $this->message->upvote($user);\n $this->message->downvote($user);\n $this->assertEquals(0, $this->message->getUpvotes());\n $this->assertEquals(1, $this->message->getDownvotes());\n\n $this->message->downvote($user);\n $this->message->upvote($user);\n $this->assertEquals(1, $this->message->getUpvotes());\n $this->assertEquals(0, $this->message->getDownvotes());\n\n }", "public function randomItem();", "public function testRequestItemDeleteId50()\n {\n $response = $this->delete('/api/items/50');\n $response->assertJson([\n 'error' => true,\n\t\t\t\t'message' => 'there is no such items to be removed'\n ]);\n }", "public function testExclude() {\n $this->assertEquals(array('foo' => 123), Hash::exclude(array('foo' => 123, 'bar' => 456, 'baz' => 789), array('bar', 'baz')));\n }", "public function test_user_cannot_vote_on_their_own_messages() {\n\n $this->expectException(VotingException::class);\n $this->message->upvote($this->user);\n\n }", "public function likeUnlikeArticle(){\r\n\t\t$formData\t\t\t=\tInput::all();\r\n\t\t$user_id\t\t \t= Auth::user()->id;\r\n\t\tif(!empty($formData)){\r\n\t\t\tif($formData['value'] == 1){\r\n\t\t\t\t$obj \t\t\t\t\t\t= \tnew LikeUnlikeArticle();\r\n\t\t\t\t$obj->user_id\t\t \t\t= \tAuth::user()->id;\r\n\t\t\t\t$obj->article_id\t\t\t= \tInput::get('article_id');\r\n\t\t\t\t$obj->value\t\t\t\t\t= \tInput::get('value');\r\n\t\t\t\t$obj->save();\r\n\t\t\t\techo 1;\r\n\t\t\t}else{\r\n\t\t\t\tDB::table(\"like_unlike_articles\")->where(\"user_id\",$user_id)->where(\"article_id\",Input::get('article_id'))->delete();\r\n\t\t\t\techo 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public function testMissing()\n {\n $result = $this->writedown->getService('api')->tag()->delete(mt_rand(1000, 9999));\n\n $this->assertFalse($result['success']);\n $this->assertEquals(['Not found.'], $result['data']);\n }", "public function deleteNonCombatItem() {\n\t\t\t// Declare classes\n\t\t\t$RepItem\t= new RepItem();\n\t\t\t// Initialize variables\n\t\t\t$return\t\t= false;\n\t\t\t$id\t\t\t= (isset($_POST['id'])) ? trim($_POST['id']) : false;\n\t\t\t// If values were sent\n\t\t\tif ($id) {\n\t\t\t\t// Save Item and prepare return\n\t\t\t\t$return\t= ($RepItem->deleteNonCombatItem($id)) ? 'ok' : false;\n\t\t\t}\n\t\t\t// Return\n\t\t\techo $return;\n\t\t}", "protected function isUnchanged() {}", "public function hasItemdata(){\n return $this->_has(22);\n }", "public function getUnknownItem()\n {\n $key = 'test';\n $composed = 'cache-bin:test';\n $server = $this->getMemcachedMock(['get']);\n $server->expects($this->once())\n ->method('get')\n ->with($composed)\n ->willReturn(false);\n $this->driver->server = $server;\n $item = $this->driver->get($key);\n $this->assertNull($item->getData());\n $this->assertFalse($item->isValid());\n }", "public function testGetUnauthorized()\n {\n $response = $this->call('GET', '/graphql', [\n 'query' => $this->queries['examplesWithAuthorize']\n ]);\n\n $this->assertEquals($response->getStatusCode(), 403);\n\n $content = $response->getData(true);\n $this->assertArrayHasKey('data', $content);\n $this->assertArrayHasKey('errors', $content);\n $this->assertNull($content['data']['examplesAuthorize']);\n }", "public function testDownvoteLinkWithUnuthorizedUser()\n {\n $users_cnt = DB::table('users')->count();\n $links_cnt = DB::table('links')->count();\n $downvoted_cnt = DB::table('downvoted_links')->count();\n $user = User::storeUser([\n 'username' => 'Lily',\n 'email' => '[email protected]',\n 'password' => '123456789',\n ]);\n\n $link = Link::storeLink([\n 'content' => 'test content',\n 'title' => 'test title',\n 'author_username' => $user->username\n ]);\n $this->assertEquals(DB::table('users')->count(), $users_cnt + 1);\n $this->assertEquals(DB::table('links')->count(), $links_cnt + 1);\n $token = auth()->login($user);\n $headers = [$token];\n auth()->logout($user);\n\n $payload = ['link_id' => $link->id];\n $this->json('POST', 'api/v1/auth/downvoteLink', $payload, $headers)\n ->assertStatus(401)\n ->assertJson([\n 'success' => 'false',\n 'error' => 'UnAuthorized'\n ]);\n $this->assertEquals(DB::table('downvoted_links')->count(), $downvoted_cnt);\n $user->delete();\n $this->assertEquals(DB::table('users')->count(), $users_cnt);\n $this->assertEquals(DB::table('links')->count(), $links_cnt);\n }", "public function setUnLikePost(Request $request)\n {\n \t$token = $request->accessToken;\n \t$userid = $request->userid;\n \t$postid = $request->postid;\n \t\n \t$status = 200;\n \t$data = array();\n\n \tif (!(TokenService::validateToken($token, $userid))) {\n $status = 401;\n $data = array(\n 'status' => 401,\n 'success' => false,\n 'message' => 'Unathorized'\n );\n return response(json_encode($data), $status, ['Content-Type', 'application/json']);\n }\n\n\n \t$v = $this->post_validator($request);\n if ($v->fails()) {\n $status = 400;\n $data = array(\n 'status' => 400,\n 'success' => false,\n 'message' => 'Wrong params',\n 'data' => $v->errors()\n );\n return response(json_encode($data), $status, ['Content-Type', 'application/json']);\n }\n\n\t\ttry{\n\t\t\t$post = Posts::where('postid', $postid)->firstOrFail();\n\n\t\t\tif($post->isliked != \"\")\n\t\t\t{\n\t\t\t\t$arr_isliked = explode(',',$post->isliked);\n\t\t\t\t$index = array_search($userid, $arr_isliked);\n\t\t\t\tif($index !== false)\n\t\t\t\t{\n\t\t\t\t\tunset($arr_isliked[$index]);\n\t\t\t\t}\n\t\t\t\t$totallikes = count($arr_isliked);\n\t\t\t\t$isliked=implode(',', $arr_isliked);\n\t\t\t\t$post->isliked = $isliked;\n\t\t\t\t$post->totalpostlikes = $totallikes;\n\t\t\t\tif ($post->save()) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'status' => 200,\n\t\t\t\t\t\t'success'=>true,\n\t\t\t\t\t\t'message'=>'Post unlike successfully'\n\t\t\t\t\t);\t\n\t\t\t\t} else {\n\t\t\t\t\t$status = 400;\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'status' => 400,\n\t\t\t\t\t\t'success' => false,\n\t\t\t\t\t\t'message' => 'Post unlike failed'\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data = array(\n\t\t\t\t\t'status' => 200, \n\t\t\t\t\t'success' => true,\n\t\t\t\t\t'message' => 'Aready UnLiked.'\n\t\t\t\t);\n\t\t\t}\n\n\t\t} catch (ModelNotFoundException $e) {\n\t\t\t$status = 401;\n\t\t\t$data = array(\n\t 'status' => 401,\n\t 'success' => false,\n\t 'message' => 'Post Not Found.'\t \n\t );\n\t\t}\n\t\t\n\t\treturn response(json_encode($data), $status, ['Content-Type', 'application/json']);\n }", "public function test_delete_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n $item = ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $item->remove();\n\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(0, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "function userDisliked($post_id)\n{\n usersOnly();\n global $conn;\n $user_id=$_SESSION['id'];\n $sql = \"SELECT * FROM rating WHERE user_id=$user_id\n \t\t AND post_id=$post_id AND rating=0\";\n $result = mysqli_query($conn, $sql);\n if (mysqli_num_rows($result) > 0) {\n \treturn true;\n }else{\n \treturn false;\n }\n}", "public function testProfilePrototypeDestroyByIdLikes()\n {\n\n }", "public function shouldNotBeLike($expected) {}", "public function test_a_user_can_like_a_post(){\n \n //we have a signed in user\n \n //user likes the model\n $this->post->likes();\n //database should show\n $this->assertDatabaseHas('likes', [\n 'user_id' => $this->user->id,\n 'likeable_type' => \\App\\Post::class,\n 'likeable_id' => $this->post->id\n ]);\n\n $this->assertTrue($this->post->isLiked());\n\n \n }", "public function testDownvoteNonUpvotedLink()\n {\n $users_cnt = DB::table('users')->count();\n $links_cnt = DB::table('links')->count();\n $downvoted_cnt = DB::table('downvoted_links')->count();\n $user = User::storeUser([\n 'username' => 'Lily',\n 'email' => '[email protected]',\n 'password' => '123456789',\n ]);\n\n $link = Link::storeLink([\n 'content' => 'test content',\n 'title' => 'test title',\n 'author_username' => $user->username\n ]);\n $this->assertEquals(DB::table('users')->count(), $users_cnt + 1);\n $this->assertEquals(DB::table('links')->count(), $links_cnt + 1);\n $token = auth()->login($user);\n $headers = [$token];\n\n $payload = ['link_id' => $link->id];\n $this->json('POST', 'api/v1/auth/downvoteLink', $payload, $headers)\n ->assertStatus(200)\n ->assertJson([\n 'success' => 'true'\n ]);\n $this->assertEquals(DB::table('downvoted_links')->count(), $downvoted_cnt + 1);\n $user->delete();\n $this->assertEquals(DB::table('users')->count(), $users_cnt);\n $this->assertEquals(DB::table('links')->count(), $links_cnt);\n $this->assertEquals(DB::table('downvoted_links')->count(), $downvoted_cnt);\n }", "public function test_isGutenberg_isNotGutenberItem_returnFalse()\r\n\t{\r\n\t\t$this->service->source = \"aNonDummyGutenbergRecord\";\r\n\t\t$actual = $this->service->isGutenberg();\r\n\t\t$this->assertFalse($actual);\r\n\t}", "public function testGetCollectionItemSupply()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetCollectionItemBalances()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testAccessDeniedNoSupportAttribute()\n {\n $this->attributes = ['NOT_IMAGE_EDIT'];\n\n $this->assertVoter(VoterInterface::ACCESS_DENIED);\n }", "public function unlike($user = null)\n {\n if (!is_numeric($user)) {\n $user = $user ?: Auth::user();\n $user = $user->id;\n }\n\n return $this->likes()->where('user_id', $user)->delete();\n }", "public function testStorepostsShareInvalidRating() {\n $baseUrl = $this->getContainer()->getParameter('symfony_base_url');\n $acess_token = $this->getContainer()->getParameter('access_token');\n $serviceUrl = $baseUrl . 'api/storeposts?access_token='.$acess_token;\n $data = '{\"reqObj\":{\"store_id\":1495,\"post_title\":\"currently Not in used from frontend\",\"post_desc\":\"live news\",\"user_id\":1,\"post_id\":\"\",\"post_type\":1,\"youtube\":\"\",\"media_id\":[],\"link_type\":0,\"share_type\":\" txn \",\"device_request_type\":\"mobile\",\"customer_voting\":6}}';\n $client = new CurlRequestService();\n $response = $client->send('POST', $serviceUrl, array(), $data)\n ->getResponse();\n $response = json_decode($response);\n $this->assertEquals(412, $response->code);\n }", "public function getLikedItems()\n {\n return ItemLikeModel::model()->with('item')->findAll('t.play_id=:playId AND t.status = \"like\"', array(\n ':playId' => $this->playid\n ));\n }", "public function dislikes()\n {\n return $this->morphMany(Reaction::class, 'reactionable')->where('is_like', '=', false);\n }", "public function testProfilePrototypeCreateLikes()\n {\n\n }", "public function shouldBeSkipped() {\n\t\treturn !$this->countItems();\n\t}", "public function testDifferentTaxes()\n {\n\n $item = $this->addItem();\n\n $prevHash = $item->getHash();\n\n $item->tax = .05;\n\n $this->assertNotEquals($prevHash, $item->getHash());\n\n $item = $this->addItem();\n $item->tax = .3;\n\n $this->assertEquals('2.35', $this->laracart->total(false));\n\n $item = $this->addItem(1, 1, true, [\n 'tax' => .7\n ]);\n\n $this->assertEquals('.70', $item->tax());\n\n $this->assertEquals('4.05', $this->laracart->total(false));\n }", "public function testDownvotNonExistingLink()\n {\n $users_cnt = DB::table('users')->count();\n $links_cnt = DB::table('links')->count();\n $downvoted_cnt = DB::table('downvoted_links')->count();\n $user = User::storeUser([\n 'username' => 'Lily',\n 'email' => '[email protected]',\n 'password' => '123456789',\n ]);\n\n $link = Link::storeLink([\n 'content' => 'test content',\n 'title' => 'test title',\n 'author_username' => $user->username\n ]);\n $this->assertEquals(DB::table('users')->count(), $users_cnt + 1);\n $this->assertEquals(DB::table('links')->count(), $links_cnt + 1);\n $token = auth()->login($user);\n $headers = [$token];\n Link::removeLink($link->id);\n $this->assertEquals(DB::table('links')->count(), $links_cnt);\n $payload = ['link_id' => $link->id];\n $this->json('POST', 'api/v1/auth/downvoteLink', $payload, $headers)\n ->assertStatus(403)\n ->assertJson([\n 'success' => 'false',\n 'error' => 'The Link doesn\\'t exist'\n ]);\n $this->assertEquals(DB::table('downvoted_links')->count(), $downvoted_cnt);\n $user->delete();\n $this->assertEquals(DB::table('users')->count(), $users_cnt);\n $this->assertEquals(DB::table('links')->count(), $links_cnt);\n }", "function _zb_ulp_unlike( $user_id, $post_id ) {\n\tglobal $wpdb;\n\n\t$table_name = $wpdb->prefix . ZB_ULP_PLUGIN_TABLE_NAME;\n\t$table = new ZB_ULP_Table( ( $table_name ) );\n\t$result = $table->delete( array( 'user_id' => $user_id, 'post_id' => $post_id ), '=' );\n\n\treturn ( $result ) ? true : false;\n\n}", "public function no_items()\n {\n }", "public function no_items()\n {\n }", "public function test_all_item_listed_or_no_listed_items_message_is_displayed()\n {\n $response = $this->get('/');\n if($response->assertSeeText(\"Details\")){\n $response->assertDontSeeText(\"Sorry not items have been listed yet. Please check back later.\");\n } else {\n $response->assertSeeText(\"Sorry not items have been listed yet. Please check back later.\");\n }\n }", "public function testProfilePrototypeCountLikes()\n {\n\n }", "public function testDeleteUnsuccessfulReason()\n {\n }", "public function testGetCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function privacyTest()\n {\n $this->prepareTestDB();\n \n $user_a = UNL_MediaHub_User::getByUid('test_a');\n $user_b = UNL_MediaHub_User::getByUid('test_b');\n \n //Logged out - most recent\n $list = new UNL_MediaHub_MediaList();\n $list->run();\n \n foreach ($list->items as $media) {\n $this->assertEquals('PUBLIC', $media->privacy, 'recent media for logged out users should be public');\n }\n\n //Logged in (user A) - most recent\n UNL_MediaHub_AuthService::getInstance()->setUser($user_a);\n \n //check with a caption requirement date set\n $original_requirement_date = UNL_MediaHub_Controller::$caption_requirement_date;\n UNL_MediaHub_Controller::$caption_requirement_date = '2015-09-24';\n \n $list = new UNL_MediaHub_MediaList();\n $list->run();\n $expected_ids = array(\n 1, //media_a because it is new and missing a text track, but user is part of its feed\n 2, //media_b because it is public (new and has text track)\n 3, //media_c because it is public (and old, missing text track)\n 4, //media_d because it is public (and old, missing text track)\n 5, //media_e because it is public (and old, missing text track)\n //NOT media_f because it is private\n //NOT media_g because it is unlisted\n );\n $found_ids = $this->getListIds($list);\n sort($found_ids);\n $this->assertEquals($expected_ids, $found_ids, 'users with access to media should see private and unlisted media');\n\n //Logged in (user B) - most recent\n UNL_MediaHub_AuthService::getInstance()->setUser($user_b);\n\n $list = new UNL_MediaHub_MediaList();\n $list->run();\n $expected_ids = array(\n //NOT media_a because it is new and missing a text track\n 2, //media_b because it is public (new and has text track)\n 3, //media_c because it is public (and old, missing text track)\n //4, //NOT media_d because it is private (and user is not a member of its feed)\n //5, //NOT media_e because it is unlisted (and user is not a member of its feed)\n 6, //media_f because it is private (because user_b in feed_b, which media_f is in)\n 7, //media_g because it is unlisted (because user_b in feed_b, which media_g is in)\n );\n $found_ids = $this->getListIds($list);\n sort($found_ids);\n $this->assertEquals($expected_ids, $found_ids, 'users with access to media should see private and unlisted media');\n\n //now check with a caption requirement date NOT set\n UNL_MediaHub_Controller::$caption_requirement_date = false;\n \n $list = new UNL_MediaHub_MediaList();\n $list->run();\n $expected_ids = array(\n 1, //media_a because it is new and missing a text track, but the caption requirement date is set to false\n 2, //media_b because it is public (new and has text track)\n 3, //media_c because it is public (and old, missing text track)\n //4, //NOT media_d because it is private (and user is not a member of its feed)\n //5, //NOT media_e because it is unlisted (and user is not a member of its feed)\n 6, //media_f because it is private (because user_b in feed_b, which media_f is in)\n 7, //media_g because it is unlisted (because user_b in feed_b, which media_g is in)\n );\n $found_ids = $this->getListIds($list);\n sort($found_ids);\n $this->assertEquals($expected_ids, $found_ids, 'users with access to media should see private and unlisted media');\n\n UNL_MediaHub_Controller::$caption_requirement_date = $original_requirement_date;\n }", "public function testPrivateMeetupsAreFilteredFromOthers()\n {\n list($responseCode, $responseBody1) = sendGetRequest($this->endpoint, array(), $this->user1Headers);\n list($responseCode, $responseBody2) = sendGetRequest($this->endpoint, array(), $this->user3Headers);\n $retrievedForUser1 = json_decode($responseBody1);\n $retrievedForUser2 = json_decode($responseBody2);\n\n $this->assertSame(3, count($retrievedForUser1));\n $this->assertSame(2, count($retrievedForUser2));\n }", "public function testShareWishlistWithoutEmails()\n {\n $this->login(1);\n $this->prepareRequestData(true);\n $this->dispatch('wishlist/index/send/');\n\n $this->assertSessionMessages(\n $this->equalTo(['Please enter an email address.']),\n MessageInterface::TYPE_ERROR\n );\n }", "public function okay() {\n return $this->randomItem(\n \"Okay, I'm on it!\",\n \"I'll get right on that!\",\n 'You got it, boss.',\n 'No problem!',\n 'Sure thing.'\n );\n }" ]
[ "0.6417109", "0.6229207", "0.61902153", "0.6169059", "0.6122437", "0.5884274", "0.57652605", "0.5702579", "0.5654182", "0.5523077", "0.5488421", "0.5474613", "0.546825", "0.5446482", "0.5399812", "0.53208387", "0.53045857", "0.52853745", "0.52605337", "0.5243584", "0.524099", "0.52352303", "0.52339846", "0.51441795", "0.51359457", "0.513497", "0.5127213", "0.51099426", "0.5109567", "0.5109567", "0.50883013", "0.507553", "0.50735974", "0.5062913", "0.50393856", "0.5034963", "0.5015813", "0.5013635", "0.49896768", "0.4989586", "0.49825007", "0.49730104", "0.4954322", "0.49464044", "0.49443272", "0.49428287", "0.49408886", "0.49397188", "0.4938553", "0.49283996", "0.492077", "0.49193025", "0.4915815", "0.49062696", "0.48993722", "0.48871043", "0.4870373", "0.48703116", "0.48660487", "0.4859241", "0.4857724", "0.4852522", "0.48502886", "0.48479027", "0.48463002", "0.4824767", "0.48234373", "0.48229352", "0.48194078", "0.48183692", "0.48131418", "0.48121583", "0.48096117", "0.4804088", "0.47997138", "0.47954294", "0.47952938", "0.4792748", "0.4791937", "0.4791528", "0.47854522", "0.47834513", "0.47730693", "0.4771193", "0.47582856", "0.47572446", "0.4756744", "0.47503406", "0.47477475", "0.47445676", "0.4741364", "0.47411603", "0.47408408", "0.47374594", "0.47351694", "0.47347957", "0.47320652", "0.47240806", "0.4723342", "0.4710858" ]
0.68747056
0
Provides test data for deleteList()
public function seedDeleteList() { // Type, Expected, Exception return array( array('general', 0, null), array(null, null, 'UnexpectedValueException'), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFetchList() {\n\t\t$jsonpad = parent::_getJsonpadInstance();\n\t\t\n\t\t// Create a list\n\t\t$listData = parent::_createTestListData(false, false);\n\t\t$list = $jsonpad->createList($listData[\"name\"]);\n\t\t\n\t\t// Fetch the list\n\t\t$listCopy = $jsonpad->fetchList($listData[\"name\"]);\n\t\t$this->assertSame($list->getName(), $listCopy->getName());\n\t\t\n\t\t// Delete the list\n\t\t$listCopy->delete();\n\t}", "public function testWebinarPanelistsDelete()\n {\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function test_delete_item() {}", "public function test_delete_item() {}", "public function testDeleteSuppliersUsingDELETE()\n {\n }", "public function testFetchLists() {\n\t\t$jsonpad = parent::_getJsonpadInstance();\n\t\t\n\t\t// Create a couple of lists\n\t\t$listCount = 3;\n\t\tfor ($i = 0; $i < $listCount; $i++) {\n\t\t\t$listData = parent::_createTestListData(false, false);\n\t\t\t$jsonpad->createList($listData[\"name\"]);\n\t\t}\n\t\t\n\t\t// Fetch the lists\n\t\t$total = 0;\n\t\t$lists = $jsonpad->fetchLists(1, null, null, null, $total);\n\t\t$this->assertInternalType(\"array\", $lists);\n\t\t$this->assertGreaterThanOrEqual(1, $total);\n\t\t$this->assertInstanceOf(\"\\Jsonpad\\Resource\\ItemList\", $lists[0]);\n\t\t\n\t\t// Delete the lists\n\t\tforeach ($lists as $list) {\n\t\t\t$list->delete();\n\t\t}\n\t}", "private function actionListDelete() {\n $put_vars = $this->actionListPutConvert();\n $this->loadModel($put_vars['id'])->delete();\n }", "public function testDelete()\n {\n }", "public function testDeleteServiceData()\n {\n\n }", "public function testDestroyData()\n {\n $store = new Storage(TESTING_STORE);\n\n // get id from our first item\n $id = $store->read()[0]['_id'];\n\n // destroy the data by id\n $store->destroy($id);\n\n // get the rest of data after destroy\n $rest_of_items = $store->read();\n\n // since our data is only one (no data left) the results must be === 0\n $this->assertEquals(0, count($rest_of_items));\n }", "public function deleteList($data)\n {\n var_export($data);\n //return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function testDeleteBatch()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testDelete()\n {\n $dataLoader = $this->getDataLoader();\n $data = $dataLoader->getOne();\n $this->deleteTest($data['user']);\n }", "public function seedDeleteItem()\n\t{\n\t\t// Id, Type, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray('1', 'general', '1', null),\n\t\t\t\tarray(null, 'general', null, 'InvalidArgumentException'),\n\t\t\t\tarray('1', null, true, null),\n\t\t\t\tarray('-1', null, null, 'UnexpectedValueException'),\n\t\t\t\tarray('-1', 'general', false, null)\n\t\t);\n\t}", "public function testDelete()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function testRemoveListSuccessfully(): void\n {\n $this->createMailchimpList($list);\n\n $this->delete(\\sprintf('/mailchimp/lists/%s', $list['list_id']));\n\n $this->assertResponseOk();\n self::assertEmpty(\\json_decode($this->response->content(), true));\n }", "public function testDeletePermissionSet()\n {\n }", "public function testStoreDelete()\n {\n\n }", "public function testDeleteSuccessForAdmin() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_ADMIN,\n\t\t\t'prefix' => 'admin',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$mocks = [\n\t\t\t'components' => [\n\t\t\t\t'Security',\n\t\t\t]\n\t\t];\n\t\t$this->generateMockedController($mocks);\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t\t'return' => 'vars',\n\t\t];\n\t\t$this->testAction('/admin/logs/delete/2', $opt);\n\t\t$this->checkFlashMessage(__('The log record has been deleted.'));\n\n\t\t$result = $this->Controller->Log->find('list', ['recursive' => -1]);\n\t\t$expected = [\n\t\t\t1 => '1',\n\t\t\t3 => '3',\n\t\t\t4 => '4',\n\t\t];\n\t\t$this->assertData($expected, $result);\n\t}", "public function testGetListOfSpecificIds()\n {\n $itemIds = [];\n $response = $this->api->create($this->testPayload);\n $this->assertErrors($response);\n $itemIds[] = $response[$this->api->itemName()]['id'];\n $response = $this->api->create($this->testPayload);\n $this->assertErrors($response);\n $itemIds[] = $response[$this->api->itemName()]['id'];\n\n $search = 'ids:'.implode(',', $itemIds);\n\n $response = $this->api->getList($search);\n $this->assertErrors($response);\n $this->assertEquals(count($itemIds), $response['total']);\n\n foreach ($response['lists'] as $item) {\n $this->assertTrue(in_array($item['id'], $itemIds));\n $this->api->delete($item['id']);\n $this->assertErrors($response);\n }\n }", "public function tearDown(): void\n {\n /** @var Mailchimp $mailChimp */\n $mailChimp = $this->app->make(Mailchimp::class);\n\n foreach ($this->createdListIds as $listId) {\n // Delete list on MailChimp after test\n $mailChimp->delete(\\sprintf('lists/%s', $listId));\n }\n\n parent::tearDown();\n }", "public function testDeleteOrder()\n {\n }", "public function testCanDelete()\n {\n self::$apcu = [];\n $this->sut->add('myKey', 'myValue');\n $this->assertTrue($this->sut->delete('myKey'));\n $this->assertCount(0, self::$apcu);\n }", "public function testDeleteSuccessForAdmin() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_ADMIN,\n\t\t\t'prefix' => 'admin'\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$this->generateMockedController();\n\t\t$url = '/admin/deferred/delete/2';\n\t\t$this->testAction($url, $opt);\n\t\t$this->checkFlashMessage(__('The deferred save has been deleted.'));\n\t\t$result = $this->Controller->Deferred->find('list', ['recursive' => -1]);\n\t\t$expected = [\n\t\t\t1 => '1',\n\t\t\t3 => '3',\n\t\t\t4 => '4',\n\t\t\t5 => '5',\n\t\t];\n\t\t$this->assertData($expected, $result);\n\t}", "protected function tearDown()\n\t{\n\t\t$this->object->DeleteList(array(array(\"objectId\", \">\", 0)));\n\t\tunset($this->object);\n\t}", "public function testDeleteTimesheetItems() {\n $deleted = $this->timesheetDao->deleteTimesheetItems(2, 1, 1, 1);\n $this->assertTrue($deleted);\n }", "public function testDelete_Multi()\n {\n \t$this->conn->delete('test', array('status'=>'ACTIVE'), DB::MULTIPLE_ROWS);\n \t$result = $this->conn->query(\"SELECT * FROM test\");\n \t$this->assertEquals(array(3, 'three', 'another row', 'PASSIVE'), $result->fetchOrdered());\n \t$this->assertNull($result->fetchOrdered());\n }", "public function testCompanyConfigurationsStatusesIdDelete()\n {\n\n }", "function deleteDataInfo()\n {\n $formPost=array();\n $formPost[deleted]=1;\n \n foreach($this->piVars['selectionList'] as $idVal)\n {\n $GLOBALS['TYPO3_DB']->exec_UPDATEquery($this->tableName,'uid='.$idVal,$formPost);\n }\n return $this->showListings();\n }", "public function testDeleteModelSet()\n {\n }", "public function testCompanyManagementBackupsIdDelete()\n {\n\n }", "public function testDeleteSupplierGroup()\n {\n }", "public function testDestroy()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n Item::factory()->count(10)->create();\n\n //test item not found\n $this->delete('/items/11111')\n ->seeJson([\n 'error' => 'Item Not Found',\n ])\n ->seeJson([\n 'code' => 404,\n ]);\n\n //test success deleted item\n $this->delete('/items/1')\n ->seeJson([\n 'message' => 'Item 1 deleted',\n ])\n ->seeJson([\n 'status' => 'ok',\n ]);\n\n $this->notSeeInDatabase('items', array('id' => 1));\n }", "public function testListDeviceData(): void\n {\n $deviceDataController = new DeviceDataController();\n $result = $deviceDataController->list('1');\n\n $this->assertIsArray($result);\n }", "public function testDeleteBrandUsingDELETE()\n {\n }", "public function testDeleteNodeSingle()\n {\n $list = new SimpleList();\n $list->add(\"fred\");\n $list->add(\"wilma\");\n $list->add(\"betty\");\n $list->add(\"barney\");\n\n $this->assertEquals(array(\"fred\", \"wilma\", \"betty\", \"barney\"), $list->getValues());\n\n $list->delete($list->find(\"wilma\"));\n\n $this->assertEquals(array(\"fred\", \"betty\", \"barney\"), $list->getValues());\n }", "public function testGetAndClear()\n {\n $list = new DomainList('ing');\n $list->add([\n 'laugh', 'cry'\n ]);\n\n $domains = $list->clear();\n $this->assertEquals(array('laugh.ing', 'cry.ing'), $domains);\n\n $domains = $list->clear();\n $this->assertEmpty($domains);\n }", "public function testDeleteMetadata1UsingDELETE()\n {\n }", "public function testDeleteSuccessForHr() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_HUMAN_RESOURCES,\n\t\t\t'prefix' => 'hr'\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$this->generateMockedController();\n\t\t$url = '/hr/deferred/delete/3';\n\t\t$this->testAction($url, $opt);\n\t\t$this->checkFlashMessage(__('The deferred save has been deleted.'));\n\t\t$result = $this->Controller->Deferred->find('list', ['recursive' => -1]);\n\t\t$expected = [\n\t\t\t1 => '1',\n\t\t\t2 => '2',\n\t\t\t4 => '4',\n\t\t\t5 => '5',\n\t\t];\n\t\t$this->assertData($expected, $result);\n\t}", "public function do_delete_record()\n {\n $v_list_delete = get_post_var('hdn_item_id_list','');\n $this->model->do_delete_record($v_list_delete);\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function deleteList($data)\n {\n return new ApiProblem(405, 'The DELETE method has not been defined for collections');\n }", "public function testDeleteMetadata()\n {\n }", "function doDeleteTestCases(&$dbHandler,$tcaseSet,&$tcaseMgr)\r\n{\r\n if( count($tcaseSet) > 0 )\r\n {\r\n foreach($tcaseSet as $victim)\r\n {\r\n $tcaseMgr->delete($victim);\r\n }\r\n }\r\n}", "protected function tearDown()\n\t{\n\t\t$this->object->DeleteList(array(array(\"objectId\", \">\", 0)));\n\t\t$this->child->DeleteList(array(array(\"childId\", \">\", 0)));\n\t\t$this->sibling->DeleteList(array(array(\"siblingId\", \">\", 0)));\n\t\t$this->parent_->DeleteList(array(array(\"parent_Id\", \">\", 0)));\n\t\tunset($this->object);\n\t\tunset($this->sibling);\n\t\tunset($this->sibling2);\n\t\tunset($this->child);\n\t\tunset($this->child2);\n\t\tunset($this->parent_);\n\t}", "public function testDeleteTask()\n {\n }", "public function testListMetadata()\n {\n }", "public function testDeleteCategoryUsingDELETE()\n {\n }", "function test_deleteAll()\n {\n // Arrange\n $brand_name = \"Nike\";\n $test_brand = new Brand($brand_name);\n $test_brand->save();\n\n\n $brand_name2 = \"Adidas\";\n $test_brand2 = new Brand($brand_name2);\n $test_brand2->save();\n\n //Act\n $result = Brand::deleteAll();\n $result = Brand::getAll();\n\n //Assert\n $this->assertEquals([], $result);\n }", "public function testSystemMembersTypesIdDelete()\n {\n\n }", "public function testDelete()\n\t{\n\t\t$obj2 = $this->setUpObj();\n\t\t$response = $this->call('DELETE', '/'.self::$endpoint.'/'.$obj2->id);\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t\t$result = $response->getOriginalContent()->toArray();\n\n\t\t// tes apakah sudah terdelete\n\t\t$response = $this->call('GET', '/'.self::$endpoint.'/'.$obj2->id);\n\t\t$this->assertEquals(500, $response->getStatusCode());\n\n\t\t// tes apakah hasil return adalah yang sesuai\n\t\tforeach ($obj2->attributesToArray() as $key => $val) {\n\t\t\t$this->assertArrayHasKey($key, $result);\n\t\t\tif (isset($result[$key])&&($key!='created_at')&&($key!='updated_at'))\n\t\t\t\t$this->assertEquals($val, $result[$key]);\n\t\t}\n\t}", "public function testDelete()\n\t{\n\t\t// Add test bookings\n\t\t$bookings = [];\n\t\tforeach ($this->clients as $client) {\n\t\t\t$booking = factory(\\App\\Booking::class)->create([\n\t\t\t\t'fitter_id' => $this->admin->fitter->id,\n\t\t\t\t'client_id' => $client->id,\n\t\t\t\t'horse_id' => factory(\\App\\Horse::class)->create(['client_id' => $client->id])->id,\n\t\t\t\t'rider_id' => factory(\\App\\Rider::class)->create(['client_id' => $client->id])->id,\n\t\t\t\t'user_id' => factory(\\App\\User::class)->create([\n\t\t\t\t\t'fitter_id' => $this->admin->fitter->id,\n\t\t\t\t\t'type' => 'fitter-user',\n\t\t\t\t])->id,\n\t\t\t]);\n\n\t\t\t$bookings[] = $booking->toArray();\n\t\t}\n\n\t\t$booking = \\App\\Booking::find($bookings[0]['id']);\n\n\t\t$this->actingAs($this->admin, 'api')\n\t\t\t ->delete('/api/v1/admin/bookings/' . $booking->id)\n\t\t\t ->assertStatus(200)\n\t\t\t ->assertJsonStructure([\n\t\t\t\t 'success',\n\t\t\t ]);\n\n\t\t$this->assertDatabaseMissing('bookings', ['id' => $booking->id]);\n\t}", "function testDelete()\n {\n\n //Arrange\n $brand_name = \"Nike\";\n $test_brand = new Brand($brand_name);\n $test_brand->save();\n\n $brand_name2 = \"Adidas\";\n $test_brand2 = new Brand($brand_name2);\n $test_brand2->save();\n\n //Act\n $test_brand->delete();\n\n //Assert\n $this->assertEquals( [$test_brand2], Brand::getAll());\n }", "public function testDeleteTemplate()\n {\n\n }", "public function testDeleteItemSubCategory()\n {\n }", "public function testDeleteDelete()\n {\n $this->mockSecurity();\n $this->_loginUser(1);\n $source = 2;\n\n $readPostings = function () use ($source) {\n $read = [];\n $read['all'] = $this->Entries->find()->all()->count();\n $read['source'] = $this->Entries->find()\n ->where(['category_id' => $source])\n ->count();\n\n return $read;\n };\n\n $this->assertTrue($this->Categories->exists($source));\n $before = $readPostings();\n $this->assertGreaterThan(0, $before['source']);\n\n $data = ['mode' => 'delete'];\n $this->post('/admin/categories/delete/2', $data);\n\n $this->assertFalse($this->Categories->exists($source));\n $this->assertRedirect('/admin/categories');\n\n $after = $readPostings();\n $this->assertEquals(0, $after['source']);\n $expected = $before['all'] - $before['source'];\n $this->assertEquals($expected, $after['all']);\n }", "public function testDeleteMetadata3UsingDELETE()\n {\n }", "public function testQuarantineDeleteById()\n {\n\n }", "function privDeleteByRule(&$p_result_list, &$p_options)\n {\n }", "public function testCollectionTicketsDelete()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testDeleteMetadata2UsingDELETE()\n {\n }", "public function testDeleteUnsuccessfulReason()\n {\n }", "public function testDeleteMember()\n {\n }", "public function testQuestionDeleteWithValidData() {\n $response = $this->get('question/' . $this->question->id . '/delete');\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $this->assertEquals('general.permission', $response->content->view);\n }", "public function test_deleteItemCategory() {\n\n }", "public function testDelete()\n {\n\n // Create exhibits and items.\n $neatline1 = $this->_createNeatline('Test Exhibit 1', '', 'test-exhibit-1');\n $neatline2 = $this->_createNeatline('Test Exhibit 2', '', 'test-exhibit-2');\n $item1 = $this->_createItem();\n $item2 = $this->_createItem();\n\n // Create records.\n $record1 = new NeatlineDataRecord($item1, $neatline1);\n $record2 = new NeatlineDataRecord($item2, $neatline1);\n $record3 = new NeatlineDataRecord($item1, $neatline2);\n $record4 = new NeatlineDataRecord($item2, $neatline2);\n $record1->save();\n $record2->save();\n $record3->save();\n $record4->save();\n\n // 2 exhibits, 4 data records.\n $_exhibitsTable = $this->db->getTable('NeatlineExhibit');\n $_recordsTable = $this->db->getTable('NeatlineDataRecord');\n $this->assertEquals($_exhibitsTable->count(), 2);\n $this->assertEquals($_recordsTable->count(), 4);\n\n // Call delete.\n $neatline1->delete();\n\n // 1 exhibits, 2 data records.\n $this->assertEquals($_exhibitsTable->count(), 1);\n $this->assertEquals($_recordsTable->count(), 2);\n\n }", "public function testDelete() {\n /** @var \\Drupal\\commerce_product\\Entity\\ProductVariationInterface $variation */\n $first_variation = ProductVariation::create([\n 'type' => 'default',\n 'sku' => $this->randomMachineName(),\n 'title' => $this->randomString(),\n 'status' => 1,\n ]);\n $first_variation->save();\n\n /** @var \\Drupal\\commerce_product\\Entity\\ProductVariationInterface $variation */\n $second_variation = ProductVariation::create([\n 'type' => 'default',\n 'sku' => $this->randomMachineName(),\n 'title' => $this->randomString(),\n 'status' => 1,\n ]);\n $second_variation->save();\n\n /** @var \\Drupal\\commerce_wishlist\\Entity\\WishlistItemInterface $wishlist_item */\n $first_wishlist_item = WishlistItem::create([\n 'type' => 'commerce_product_variation',\n 'purchasable_entity' => $first_variation,\n ]);\n $first_wishlist_item->save();\n\n /** @var \\Drupal\\commerce_wishlist\\Entity\\WishlistItemInterface $wishlist_item */\n $second_wishlist_item = WishlistItem::create([\n 'type' => 'commerce_product_variation',\n 'purchasable_entity' => $second_variation,\n ]);\n $second_wishlist_item->save();\n\n $wishlist = Wishlist::create([\n 'type' => 'default',\n 'name' => 'My wishlist',\n 'wishlist_items' => [$first_wishlist_item, $second_wishlist_item],\n ]);\n $wishlist->save();\n\n $first_variation->delete();\n $this->container->get('cron')->run();\n\n // Confirm that the first wishlist item has been deleted.\n $first_wishlist_item = $this->reloadEntity($first_wishlist_item);\n $second_wishlist_item = $this->reloadEntity($second_wishlist_item);\n $this->assertEmpty($first_wishlist_item);\n $this->assertNotEmpty($second_wishlist_item);\n\n /** @var \\Drupal\\commerce_wishlist\\Entity\\WishlistInterface $wishlist */\n $wishlist = $this->reloadEntity($wishlist);\n $wishlist_items = $wishlist->getItems();\n $wishlist_item = reset($wishlist_items);\n $this->assertCount(1, $wishlist_items);\n $this->assertEquals($second_wishlist_item->id(), $wishlist_item->id());\n }", "function test_treatments_can_be_deleted_true()\n {\n $this->seed();\n \n $user = User::where('email', '=', '[email protected]')->first();\n\n $treatments = Treatment::factory()\n ->count(3)\n ->for($user)\n ->create();\n $treatment = Treatment::first();\n \n $token = JWTAuth::fromUser($user);\n $response = $this->json('DELETE', '/api/treatments/'.$treatment->id.'?token='.$token);\n $response->assertNoContent();\n }", "public function testDelete()\n {\n $context = $this->createPageContext();\n $storage = $this->createStorage();\n $tokenStorage = $this->createTokenStorage();\n\n $layout1 = $storage->create();\n $layout2 = $storage->create();\n $layout3 = $storage->create();\n\n $context->addLayoutList([$layout1->getId(), $layout2->getId(), $layout3->getId()]);\n $token = $context->createEditToken([$layout1->getId(), $layout3->getId()], ['user_id' => 17]);\n $tokenString = $token->getToken();\n $tokenStorage->saveToken($token);\n\n // Save our editable instances\n $tokenStorage->update($tokenString, $layout1);\n $tokenStorage->update($tokenString, $layout3);\n\n // Validate that load still work\n $tokenStorage->loadToken($tokenString);\n $tokenStorage->loadMultiple($tokenString, [$layout1->getId(), $layout3->getId()]);\n\n // And now delete\n $tokenStorage->deleteAll($tokenString);\n\n try {\n $tokenStorage->loadToken($tokenString);\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n try {\n $tokenStorage->loadMultiple($tokenString, [$layout1->getId()]);\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n try {\n $tokenStorage->load($tokenString, $layout3->getId());\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n }", "public function testDeleteAuthorizationDivision()\n {\n }", "public function testDeleteService()\n {\n\n }", "public function testDeleteItemSubCategoryFile()\n {\n }", "public function testDeleteKey()\n {\n }", "public function testProfilePrototypeDeleteGroups()\n {\n\n }", "public function testDeleteEvent()\n {\n }", "public function testDeleteNodeSingleComplete()\n {\n $list = new SimpleList();\n $list->add(\"fred\");\n $list->add(\"wilma\");\n $list->add(\"betty\");\n $list->add(\"barney\");\n\n $this->assertEquals(array(\"fred\", \"wilma\", \"betty\", \"barney\"), $list->getValues());\n\n $list->delete($list->find(\"betty\"));\n $this->assertEquals(array(\"fred\", \"wilma\", \"barney\"), $list->getValues());\n\n $list->delete($list->find(\"fred\"));\n $this->assertEquals(array(\"wilma\", \"barney\"), $list->getValues());\n\n $list->delete($list->find(\"barney\"));\n $this->assertEquals(array(\"wilma\"), $list->getValues());\n\n $list->delete($list->find(\"wilma\"));\n $this->assertEquals(array(), $list->getValues());\n }", "public function deleteTest()\n {\n $this->assertEquals(true, $this->object->delete(1));\n }", "public function testListServiceDatas()\n {\n\n }", "protected function tearDown() {\n $this->osapiCollection = null;\n $this->list = null;\n parent::tearDown();\n }", "public function deleted_exam_list()\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->load->model('tutor/exams');\n\t\t$tutor_id = $CI->session->userdata('user_id');\n\t\t$exam_data = $CI->exams->deleted_exam_list($tutor_id);\n\t\t$data = array(\n\t\t\t\t'title' => 'Deleted Exam List',\n\t\t\t\t'exam_list' => $exam_data\n\t\t\t);\n\t\t$examList = $CI->parser->parse('tutor_view/exam/deleted_exam',$data,true);\n\t\treturn $examList;\n\t}", "public function testDeleteProductUsingDELETE()\n {\n }", "public function TestListAll()\n {\n $temp = BASE_FOLDER . '/.dev/Tests/Data/Testcases';\n\n $this->options = array(\n 'recursive' => true,\n 'exclude_files' => false,\n 'exclude_folders' => false,\n 'extension_list' => array(),\n 'name_mask' => null\n );\n $this->path = BASE_FOLDER . '/.dev/Tests/Data/Testcases/';\n\n $adapter = new fsAdapter($this->action, $this->path, $this->filesystem_type, $this->options);\n\n $this->assertEquals(38, count($adapter->fs->data));\n\n return;\n }", "public function testDelete()\n {\n \t$this->conn->delete('test', 1);\n \t\n \t$result = $this->conn->query(\"SELECT * FROM test WHERE status='ACTIVE'\");\n \t$this->assertEquals(array(2, 'two', 'next row', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertNull($result->fetchOrdered());\n }", "public function testPostAuthorizationSubjectBulkremove()\n {\n }", "public function testDelete()\n {\n $model = $this->makeFactory();\n $model->save();\n\n $this->json('DELETE', static::ROUTE . '/' . $model->id, [], [\n 'Authorization' => 'Token ' . self::getToken()\n ])\n ->seeStatusCode(JsonResponse::HTTP_NO_CONTENT);\n }", "public function testDeleteSuccess()\n {\n factory(User::class, 4)->create();\n $this->browse(function (Browser $browser) { \n $page = $browser->visit('/admin/user');\n $elements = $page->elements('#table-contain tbody tr');\n $this->assertCount(5, $elements);\n $page->press('#table-contain tbody tr:nth-child(2) td:nth-child(8) button')\n ->waitFor(null, '1')\n ->assertSee('Are you sure you want to delete?')\n ->click('#delete-btn')\n ->assertSee(\"Deletion successful!\");\n $this->assertSoftDeleted('users', ['id' => '4']); \n $elements = $page->elements('#table-contain tbody tr'); \n $this->assertCount(4, $elements); \n });\n }", "public function testDestroy()\n {\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $item = $this->model->factory()->create();\n\n // Removes the dates for comparison\n $itemArray = $item->toArray();\n unset($itemArray['created_at']);\n unset($itemArray['updated_at']);\n\n // Check that the model is in the database\n $this->assertDatabaseHas($this->table, $itemArray);\n\n $response = $this->delete(\"{$this->baseUrl}/{$item->getKey()}\", [], ['FORCE_CONTENT_TYPE'=>'json'])\n ->assertStatus(200);\n\n // The model should not exist in the database now\n $this->assertDatabaseMissing($this->table, $itemArray);\n\n }", "function supp_list($list){\n $lid = get_id($list);\n //supp\n if ($lid!=-1){\n //supprimer element de la liste\n\t$SQL = \"DELETE FROM element_list WHERE list='$lid'\";\n \tglobal $db;\n \t$res = $db->prepare($SQL);\n \t$res->execute();\n //supprimer list\n \t$SQL = \"DELETE FROM list_list WHERE list='$list'\";\n \tglobal $db;\n \t$res = $db->prepare($SQL);\n \t$res->execute(); }\n}" ]
[ "0.6827508", "0.6819238", "0.6784634", "0.6687292", "0.6687292", "0.660787", "0.656904", "0.6501135", "0.649941", "0.6469645", "0.64224976", "0.6409896", "0.63950765", "0.6326235", "0.6296645", "0.62827826", "0.62773657", "0.6275371", "0.6203269", "0.61882216", "0.61827624", "0.6167591", "0.6134518", "0.61337215", "0.6118911", "0.6108797", "0.6088433", "0.6048168", "0.6019409", "0.6018004", "0.60031587", "0.5999744", "0.598745", "0.5980685", "0.59765977", "0.5975224", "0.59711856", "0.5961701", "0.5951182", "0.59465444", "0.59460115", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.59411067", "0.5940073", "0.5939778", "0.5938426", "0.59381276", "0.5931415", "0.5930143", "0.59270835", "0.5923746", "0.5921527", "0.5916271", "0.5915673", "0.591207", "0.58941466", "0.588338", "0.5875331", "0.5856722", "0.5849407", "0.58393", "0.583719", "0.58319896", "0.5830748", "0.5829762", "0.5828844", "0.581266", "0.5808869", "0.57987183", "0.57956046", "0.5794113", "0.579131", "0.5781265", "0.577919", "0.5775793", "0.57744443", "0.57715434", "0.57687813", "0.5755331", "0.5752292", "0.5748362", "0.57472897", "0.57409155", "0.573894", "0.5737697", "0.57337487", "0.57332593", "0.5724842", "0.57158786" ]
0.72155136
0
Provides test data for updateItem()
public function seedUpdateItem() { // Id, Type, Fields, FieldsArray, Expected, Exception return array( array(null, 'general', null, array(), null, 'InvalidArgumentException'), array('-1', null, null, array(), null, 'UnexpectedValueException'), array('1', 'general', null, array(), null, 'UnexpectedValueException'), array('1', 'general', 'field1, field2', array(), null, 'UnexpectedValueException'), // Missing not null field array( '-1', 'general', 'field3', array('field3' => ''), false, null), // Missing not null field array( 1, 'general', 'field3', array('field3' => ''), '1', 'UnexpectedValueException'), array( 1, 'general', 'field3, access', array('field3' => 'f3', 'access' => '2'), true, null), // OK array( '1', null, 'field1, field2, field3', array('field1' => 'new field', 'field2' => 'new field', 'field3' => 'new field'), true, null) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_update_item() {}", "public function test_update_item() {}", "public function testEditItem() {\n $data = $this->itemData;\n \n // Create the item\n $createItem = PromisePay::Item()->create($data);\n \n $this->assertEquals($this->GUID, $createItem['id']);\n \n // Modify data\n $data['name'] = 'Test123Update';\n $data['description'] = 'Test123Description';\n \n // Finally, modify the item\n $updateItem = PromisePay::Item()->update($createItem['id'], $data);\n \n $this->assertEquals($data['name'], $updateItem['name']);\n $this->assertEquals($data['description'], $updateItem['description']);\n }", "public function testRequestUpdateItem()\n {\n\t\t$response = $this\n\t\t\t\t\t->json('PUT', '/api/items/6', [\n\t\t\t\t\t\t'name' => 'Produkt zostal dodany i zaktualizowany przez test PHPUnit', \n\t\t\t\t\t\t'amount' => 0\n\t\t\t\t\t]);\n\n $response->assertJson([\n 'message' => 'Items updated.',\n\t\t\t\t'updated' => true\n ]);\n }", "public function testUpdatingData()\n {\n $store = new Storage(TESTING_STORE);\n\n // get id from our first item\n $id = $store->read()[0]['_id'];\n\n // new dummy data\n $new_dummy = array(\n 'label' => 'test update',\n 'message' => 'let me update this old data',\n );\n\n // do update our data\n $store->update($id, $new_dummy);\n\n // fetch single item from data by id\n $item = $store->read($id);\n\n // testing data\n $test = array($item['label'], $item['message']);\n\n // here we make a test that count diff values from data between 2 array_values\n $diff_count = count(array_diff(array_values($new_dummy), $test));\n $this->assertEquals(0, $diff_count);\n }", "public function testUpdateItem()\n {\n $item = $this->addItem();\n\n $this->laracart->updateItem($item->getHash(), 'qty', 4);\n\n $this->assertEquals(4, $item->qty);\n }", "public function testUpdate()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n\n Item::factory()->count(10)->create();\n\n //test item not found\n $this->call('PUT', '/items/11111')\n ->assertStatus(404);\n\n //test validation\n $this->put('items/1', array('email' => 'test1!kl'))\n ->seeJson([\n 'email' => array('The email must be a valid email address.'),\n ]);\n\n //test exception\n $this->put('items/1', array('email' => '[email protected]'))\n ->seeJsonStructure([\n 'error', 'code'\n ])\n ->seeJson(['code' => 400]);\n\n //test success updated item\n $this->put('items/1', array('email' => '[email protected]', 'name' => 'test1 updated'))\n ->seeJson([\n 'status' => 'ok',\n ])\n ->seeJson([\n 'email' => '[email protected]',\n ])\n ->seeJson([\n 'name' => 'test1 updated',\n ])\n ->seeJsonStructure([\n 'data' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]);\n\n $this->seeInDatabase('items', array('email' => '[email protected]', 'name' => 'test1 updated'));\n }", "public function testItemQtyUpdate()\n {\n $item = $this->addItem();\n $itemHash = $item->getHash();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n\n $this->assertEquals(7, $item->qty);\n $this->assertEquals($itemHash, $item->getHash());\n\n $options = [\n 'a' => 2,\n 'b' => 1\n ];\n\n $item = $this->addItem(1, 1, false, $options);\n $this->addItem(1, 1, false, array_reverse($options));\n\n $this->assertEquals(2, $item->qty);\n }", "function update_data($data_update_item) {\n\t}", "public function testUpdate()\n {\n\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $item = $this->model->factory()->create();\n $updatedItem = $this->model->factory()->make();\n\n // Removes the dates for comparison\n $itemArray = $item->toArray();\n unset($itemArray['created_at']);\n unset($itemArray['updated_at']);\n\n // Check that the database contains the factory item\n $this->assertDatabaseHas($this->table, $itemArray);\n\n // Update the item with the second factory updatedItem\n $response = $this->patch(\"{$this->baseUrl}/{$item->getKey()}\", $updatedItem->toArray(), ['FORCE_CONTENT_TYPE'=>'json'])\n ->assertStatus(200);\n\n // Check that the original item does not exist anymore\n $this->assertDatabaseMissing($this->table, $itemArray);\n // Check that the updatedItem now exists in the database\n $this->assertDatabaseHas($this->table, $updatedItem->toArray());\n\n\n }", "public function test_can_create_and_update_items()\n {\n // Firstly we creating category\n $category = [\n 'name' => 'Test category'\n ];\n\n $responseCategory = $this->json('POST', '/api/categories', $category)->decodeResponseJson();\n\n // Test - Can create item\n $data = [\n 'category_id' => $responseCategory['id'],\n 'name' => 'Test_item',\n 'value' => 50,\n 'quality' => -10,\n ];\n\n $responseItem = $this->json('POST', '/api/items/', $data);\n\n $responseItem->assertStatus(201);\n\n $responseItem->assertSee('id');\n\n // Test - Can update item\n $item = $responseItem->decodeResponseJson();\n\n $dataUpdate = [\n 'value' => 60,\n ];\n\n $responseUpdate = $this->put('/api/items/' . $item['id'], $dataUpdate);\n\n $responseUpdate->assertStatus(200);\n\n $responseUpdate->assertSee(1);\n }", "abstract public function updateItem(&$object);", "public function test_updateItemCategory() {\n\n }", "public function test_prepare_item() {}", "public function testItCanRunItemUpdate()\n {\n Artisan::call('item:update');\n\n // If you need result of console output\n $resultAsText = Artisan::output();\n\n $this->assertRegExp(\"/Item #[0-9]* updated\\\\n/\", $resultAsText);\n }", "public function testSaveUpdates()\n {\n $this->projectItemInput = [\n 'id' => '555', \n 'project_id' => 1, \n 'item_type' => 'Refrigerator',\n 'manufacturer' => 'Cool Guys Manufacturing',\n 'model' => 'coolycool5000',\n 'serial_number' => '9238JDFH03uihFD', \n 'vendor' => 'LindenMart',\n 'comments' => 'Handles upsidedown'\n ];\n // Assemble\n //$this->mockedProjectItemsController->shouldReceive('storeItemWith')->once()->with($this->projectItemInput);\n $this->mockedProjectItemsRepo->shouldReceive('saveProjectItem')->once()->with(Mockery::type('ProjectItem'));\n\n // Act \n $response = $this->route(\"POST\", \"storeItems\", $this->projectItemInput);\n\n // Assert\n $this->assertRedirectedToAction('ProjectItemController@index',1);\n }", "public function setUpdated(): void\n {\n $this->originalData = $this->itemReflection->dehydrate($this->item);\n }", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "abstract public function updateData();", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "abstract function set ($item, $data);", "public function test_update_grade_item() {\n\n $testarray = $this->csv_load($this->oktext);\n $testobject = new phpunit_gradeimport_csv_load_data();\n\n // We're not using scales so no to this option.\n $verbosescales = 0;\n // Map and key are to retrieve the grade_item that we are updating.\n $map = array(1);\n $key = 0;\n // We return the new grade array for saving.\n $newgrades = $testobject->test_update_grade_item($this->courseid, $map, $key, $verbosescales, $testarray[0][6]);\n\n $expectedresult = array();\n $expectedresult[0] = new stdClass();\n $expectedresult[0]->itemid = 1;\n $expectedresult[0]->finalgrade = $testarray[0][6];\n\n $this->assertEquals($newgrades, $expectedresult);\n\n // Try sending a bad grade value (A letter instead of a float / int).\n $newgrades = $testobject->test_update_grade_item($this->courseid, $map, $key, $verbosescales, 'A');\n // The $newgrades variable should be null.\n $this->assertNull($newgrades);\n $expectederrormessage = get_string('badgrade', 'grades');\n // Check that the error message is what we expect.\n $gradebookerrors = $testobject->get_gradebookerrors();\n $this->assertEquals($expectederrormessage, $gradebookerrors[0]);\n }", "public function test_move_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n $item = ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $newCollection = CollectionFactory::createOne(['owner' => $user]);\n $item->setCollection($newCollection->object());\n $item->save();\n\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(1, $newCollection->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "public function updateItem( $id, $preparedItem ) {\n\t}", "public function updateItem(Item $item, ItemUpdateStruct $itemUpdateStruct): Item;", "public function testRequestItemEditId3()\n {\n $response = $this->get('/api/items/3/edit');\n\n $response->assertStatus(200);\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "private function setItem(array $itemData)\n {\n //====================================================================//\n // Safety Check\n if ((!$this->item instanceof WC_Order_Item_Shipping) && (!$this->item instanceof WC_Order_Item_Fee)) {\n return;\n }\n //====================================================================//\n // Update Name\n if (isset($itemData[\"name\"])) {\n $this->setGeneric(\"_name\", $itemData[\"name\"], \"item\");\n }\n //====================================================================//\n // Update Quantity\n $qty = $itemData[\"quantity\"] ?? 1;\n //====================================================================//\n // Update Unit Price\n if (isset($itemData[\"subtotal\"])) {\n // Compute Expected Total\n $total = $qty * self::prices()->taxExcluded($itemData[\"subtotal\"]);\n // Compute Expected Total Tax Incl.\n $totalTax = $qty * self::prices()->taxAmount($itemData[\"subtotal\"]);\n // There is NO Discount\n } else {\n $total = $this->item->get_total();\n $totalTax = $this->item->get_total_tax();\n }\n //====================================================================//\n // Update Item Taxes\n if ($totalTax != $this->item->get_total_tax()) {\n $this->setItemTaxArray('total', (float) $totalTax);\n }\n //====================================================================//\n // Update Item Totals\n $this->setGeneric(\"_total\", $total, \"item\");\n }", "public function testEditLineItems()\n {\n }", "public function testUpdateItemTitle()\n {\n $this->markTestIncomplete('This test has not been implemented yet.');\n\n $data = $this->getFakeItem();\n $handler = $this->getHandler();\n\n $data->item->InventTable->ItemName = 'some thing else';\n\n $result = $handler->SyncItem($data);\n $this->assertEquals($result->SyncItemResult->Status->enc_value, 'Ok');\n\n $sku = $data->item->InventTable->ItemId;\n $product = ProductsQuery::create()\n ->useProductsI18nQuery()\n ->filterByLocale('da_DK')\n ->endUse()\n ->joinWithProductsI18n()\n ->findOneBySku($sku)\n ;\n\n $this->assertEquals($product->getTitle(), $data->item->InventTable->ItemName);\n }", "public function testUpdateValidScheduleItem() {\n // count the number of rows and save it for later\n $numRows = $this->getConnection()->getRowCount(\"scheduleItem\");\n // create a new ScheduleItem and insert to into mySQL\n $scheduleItem = new ScheduleItem(null,$this->VALID_SCHEDULE_ITEM_DESCRIPTION, $this->VALID_SCHEDULE_ITEM_NAME,$this->VALID_SCHEDULE_START_TIME, $this->VALID_SCHEDULE_END_TIME, $this->VALID_USER_ID);\n $scheduleItem->insert($this->getPDO());\n // edit the ScheduleItem and update it in mySQL\n $scheduleItem->setScheduleItemName(\"Changed Name\");\n $scheduleItem->update($this->getPDO());\n // grab the data from mySQL and enforce the fields match our expectations\n $pdoScheduleItem = ScheduleItem::getScheduleItemByScheduleItemUserId($this->getPDO(), $scheduleItem->getScheduleItemUserId());\n $this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"scheduleItem\"));\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemName(), \"Changed Name\");\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemDescription(), $this->VALID_SCHEDULE_ITEM_DESCRIPTION);\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemStartTime(), $this->VALID_SCHEDULE_START_TIME);\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemEndTime(), $this->VALID_SCHEDULE_END_TIME);\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemUserId(), $this->VALID_USER_ID);\n }", "function setItemSystemFields($data, $item){\n if ($this->debug_mode)\n echo $this->ClassName . \"setItemSystemFields();\" . \"<HR>\";\n foreach ($item as $key => $value) {\n \tif($key == '_lastmodified'){\n \t\tcontinue;\n \t}\n if ((substr($key, 0, 1) == \"_\") && (! isset($data[$key]))) {\n $data[$key] = $value;\n }\n }\n if (isset($data['_lastmodified'])) {\n \tunset ($data['_lastmodified']);\n }\n }", "public function should_update($type, $item, $context)\n {\n }", "function UpdateItem($dataType, $item, $calendarID = NULL)\r\n {\r\n if ($dataType == 'contact groups')\r\n return $this->UpdateContactGroup($item);\r\n if ($dataType == 'contacts')\r\n return $this->UpdateContact($item);\r\n if ($dataType == 'calendars')\r\n return $this->UpdateCalendar($item);\r\n if ($dataType == 'events')\r\n return $this->UpdateEvent($item, $calendarID);\r\n if ($dataType == 'task lists')\r\n return $this->UpdateTaskList($item);\r\n if ($dataType == 'tasks')\r\n return $this->UpdateTask($item, $calendarID);\r\n if ($dataType == 'message boxes')\r\n return $this->UpdateMessageBox($item);\r\n if ($dataType == 'messages')\r\n return $this->UpdateMessage($item, $calendarID);\r\n \r\n WriteError(\"Unrecognized data type: $dataType\");\r\n exit(1);\r\n }", "protected function updateItems()\n {\n $this->log(\"Loading items...\");\n\n /** @var Item[] $items */\n $items = Item::find()->all();\n\n foreach ($items as $item) {\n if (!$this->hasItemSavedValue($item->id)) {\n $this->saveItemValue($item->id, $item->getDefaultNAValue(), $item->type, false);\n }\n }\n\n $this->log(\"Done\");\n }", "function amo_update($entity, $data, $search_similiar = false, $need_prepare = true)\n{\n if (substr($entity, -1) == 's') {\n $link = $entity;\n $many_items = true;\n } else {\n if ($entity == 'company') {\n $link = 'companies';\n } else {\n $link = $entity . 's';\n }\n }\n\n if (isset($data['search']) && !empty($data['search'])) {\n $search_similiar = true;\n }\n\n if ($need_prepare) {\n $item = prepare_data($entity, $data, $search_similiar);\n } else {\n $item = $data;\n }\n\n if ($item) {\n if (!$many_items) {\n $items = [$item];\n } else {\n $items = $item;\n }\n\n foreach ($items as $key => $item) {\n if (isset($item['id'])) {\n\n // no_update ставится в случае когда данные контакта совпадают с данными в амо.\n if ($item['no_update']) {\n return $item['id'];\n }\n\n $action_msg = 'Обновлён ';\n $ids_to_update[] = $item['id'];\n $item['updated_at'] = time(); // + 1000\n $sorted_data['update'][] = $item;\n\n } else {\n $ids_to_add[] = $item['id'];\n $action_msg = 'Добавлен ';\n $sorted_data['add'][] = $item;\n }\n }\n\n/* if (!empty($ids_to_update)) {\nlogw('Обновляем ' . $entity . ' id ' . implode(', ', $ids_to_update));\n}\n\nif (!empty($ids_to_add)) {\nlogw('Добавляем ' . $entity);\n}*/\n\n $output = run_curl($link, $sorted_data);\n\n if (!empty($output['_embedded']['items'])) {\n foreach ($output['_embedded']['items'] as $key => $value) {\n $updated_id[] = $value['id'];\n }\n } else {\n logw('Ошибка обновления');\n logw($output);\n return false;\n }\n\n if (!empty($updated_id)) {\n $updated_id_msg = implode(', ', $updated_id);\n } else {\n logw('Ошибка обновления ' . $entity);\n logw($output);\n return false;\n }\n\n if ($many_items) {\n logw('Обновлены ' . $entity . ' id ' . $updated_id_msg);\n return $updated_id;\n } else {\n logw($action_msg . $entity . ' id ' . $updated_id_msg);\n return $updated_id[0];\n }\n\n } else {\n logw('Ошибка: не получены данные от prepare_data');\n return false;\n }\n}", "public function testStore_Update()\n {\n \t$this->conn->store('test', array(1, 'one', 'updated row ONE', 'PASSIVE'));\n \t$this->conn->store('test', array('id'=>2, 'title'=>'updated row TWO'));\n \t\n \t$result = $this->conn->query(\"SELECT * FROM test\");\n \t$this->assertEquals(array(1, 'one', 'updated row ONE', 'PASSIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(2, 'two', 'updated row TWO', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(3, 'three', 'another row', 'PASSIVE'), $result->fetchOrdered());\n }", "public function testPatchRoleItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function updateTest()\n {\n $this->cD->updateElement(new Product(1, \"Trang\"));\n }", "public function testGetCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetItems(): void\n {\n $array = $this->itemCollection->getItems();\n $this->assertInternalType('array', $array);\n $this->assertEmpty($array);\n\n $item = new Item(1, \"test\", 20);\n $item2 = new Item(2, \"test\", 20);\n $this->itemCollection->add($item);\n $this->itemCollection->add($item2, 5);\n\n $array = $this->itemCollection->getItems();\n\n $this->assertInternalType('array', $array);\n $this->assertEquals([\n $item,\n $item2\n ], $array);\n }", "function update_item($item, $metadata = array(), $elementTexts = array(), $fileMetadata = array())\n{\n $builder = new Builder_Item(get_db());\n $builder->setRecord($item);\n $builder->setRecordMetadata($metadata);\n $builder->setElementTexts($elementTexts);\n $builder->setFileMetadata($fileMetadata);\n return $builder->build();\n}", "function testNormalItem() {\n $items = array(new Item('Elixir of the Mongoose', 2, 5));\n $gildedRose = new GildedRose($items);\n \n // check that normal item degrades as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(4, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n\n // now that item is expired, it should degrade twice as fast \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(0, $items[0]->quality);\n }", "public function test_if_failed_update()\n {\n }", "abstract protected function saveItems();", "public function test_add_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(1, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "function test_update_meta() {\n\t\t$mid1 = add_post_meta( $this->post_id, 'unique_update', 'value', true );\n\t\t$this->assertIsInt( $mid1 );\n\n\t\t// Add two non-unique post meta items.\n\t\t$mid2 = add_post_meta( $this->post_id, 'nonunique_update', 'value' );\n\t\t$this->assertIsInt( $mid2 );\n\t\t$mid3 = add_post_meta( $this->post_id, 'nonunique_update', 'another value' );\n\t\t$this->assertIsInt( $mid3 );\n\n\t\t// Check they exist.\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'value' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'value', 'another value' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t\t// Update them\n\t\t$this->assertTrue( update_meta( $mid1, 'unique_update', 'new' ) );\n\t\t$this->assertTrue( update_meta( $mid2, 'nonunique_update', 'new' ) );\n\t\t$this->assertTrue( update_meta( $mid3, 'nonunique_update', 'another new' ) );\n\n\t\t// Check they updated.\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'new' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'new', 'another new' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t\t// Slashed update\n\t\t$data = \"'quote and \\slash\";\n\t\t$this->assertTrue( update_meta( $mid1, 'unique_update', addslashes( $data ) ) );\n\t\t$meta = get_metadata_by_mid( 'post', $mid1 );\n\t\t$this->assertSame( $data, $meta->meta_value );\n\t}", "function test_update_post_meta() {\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'unique_update', 'value', true ) );\n\n\t\t// Add two non-unique post meta items.\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique_update', 'value' ) );\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique_update', 'another value' ) );\n\n\t\t// Check they exist.\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'value' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'value', 'another value' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t\t// Update them\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'unique_update', 'new', 'value' ) );\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'nonunique_update', 'new', 'value' ) );\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'nonunique_update', 'another new', 'another value' ) );\n\n\t\t// Check they updated.\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'new' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'new', 'another new' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t}", "public function testItemPriceAndQty()\n {\n $item = $this->addItem(3, 10);\n\n $this->assertEquals(3, $item->qty);\n $this->assertEquals(10, $item->price(false));\n $this->assertEquals(30, $item->subTotal(false));\n }", "public function testGetItem()\n {\n $datastore = $this->container->get('datastore');\n $logger = $this->container->get('logger');\n\n $repo = $this->getMockBuilder(DataStoreRepository::class)\n ->setConstructorArgs([$datastore, $logger])\n ->getMock();\n\n $repo->method('getItem')\n ->will($this->returnValue([\n 'id' => 1,\n 'name' => 'Test',\n 'user_id' => 1,\n 'body' => 'Fixture'\n ]));\n\n $service = new Service($repo, $logger);\n $item = $service->getItem(1);\n\n $this->assertEquals($item->getName(), 'Test');\n $this->assertNotEquals($item->getUserId(), 2);\n }", "function _update_item() {\n if ($_POST['id']) {\n $item = \\Model\\Item::find($_POST['id']);\n unset($_POST['id']);\n } else {\n $item = new \\Model\\Item();\n }\n \n if (isset($_POST['flags'])) { \n $item->flags = '';\n \n foreach ($_POST['flags'] as &$flag) {\n $flag = implode(':',$flag);\n }\n \n $item->flags = implode(',',$_POST['flags']);\n }\n \n foreach ($_POST as $name => $value) {\n if (!is_array($value)) {\n $item->$name = $value;\n }\n }\n \n // Make sure the stock is something\n if (!$item->stock)\n $item->stock = 0;\n \n $item->save();\n \n // Check if we need to delete any options\n $options = \\Model\\Itemoption::all(\n array('conditions' => \"itemid = {$item->id}\"));\n \n foreach ($options as $option) {\n foreach ($_POST['options'] as $new_option) {\n if ($new_option['id'] == $option->id) {\n continue 2;\n }\n }\n $option->delete();\n }\n \n if (isset($_POST['options'])) {\n foreach ($_POST['options'] as $option_data) {\n if ($option_data['id']) {\n $option = \\Model\\Itemoption::find($option_data['id']);\n unset($option_data['id']);\n } else {\n $option = new \\Model\\Itemoption();\n }\n \n foreach($option_data as $name => $value) {\n $option->$name = $value;\n }\n \n $option->itemid = $item->id;\n \n $option->save();\n } \n }\n \n $i = $item;\n \n ?>\n <tr data-search=\"<?=$i->number.' '.$i->name?>\" class=\"item-<?=$i->id?>\">\n <td><?=$i->number?></td>\n <td><?=$i->name?></td>\n <td><?=$i->short_description()?></td>\n <td>$<?=$i->price?></td>\n <td><?=$i->formated_weight()?></td>\n <td><?=$i->image_tag()?></td>\n <td><?=$i->display_flags()?></td>\n <td><?=$i->display_stock()?></td>\n <td>\n <button class=\"btn btn-mini btn-danger delete-item\" value=\"<?=sc_cp('Stock/delete_item/'.$i->id)?>\"><i class=\"icon-remove\"></i></button>\n <button class=\"btn btn-mini btn-primary edit-item\" value=\"<?=sc_cp('Stock/edit_item/'.$i->id)?>\"><i class=\"icon-pencil\"></i></button>\n </td>\n </tr>\n <?php \n \n }", "public function updateItem($_id) {\n\t}", "public function testEdit() {\r\n\t\t$result = $this->ShopProductAttribute->edit('shopproductattribute-1', null);\r\n\r\n\t\t$expected = $this->ShopProductAttribute->read(null, 'shopproductattribute-1');\r\n\t\t$this->assertEqual($result['ShopProductAttribute'], $expected['ShopProductAttribute']);\r\n\r\n\t\t// put invalidated data here\r\n\t\t$data = $this->record;\r\n\t\t//$data['ShopProductAttribute']['title'] = null;\r\n\r\n\t\t$result = $this->ShopProductAttribute->edit('shopproductattribute-1', $data);\r\n\t\t$this->assertEqual($result, $data);\r\n\r\n\t\t$data = $this->record;\r\n\r\n\t\t$result = $this->ShopProductAttribute->edit('shopproductattribute-1', $data);\r\n\t\t$this->assertTrue($result);\r\n\r\n\t\t$result = $this->ShopProductAttribute->read(null, 'shopproductattribute-1');\r\n\r\n\t\t// put record specific asserts here for example\r\n\t\t// $this->assertEqual($result['ShopProductAttribute']['title'], $data['ShopProductAttribute']['title']);\r\n\r\n\t\ttry {\r\n\t\t\t$this->ShopProductAttribute->edit('wrong_id', $data);\r\n\t\t\t$this->fail('No exception');\r\n\t\t} catch (OutOfBoundsException $e) {\r\n\t\t\t$this->pass('Correct exception thrown');\r\n\t\t}\r\n\t}", "private function setProductItem(array $itemData): void\n {\n //====================================================================//\n // Safety Check\n if (!$this->item instanceof WC_Order_Item_Product) {\n return;\n }\n //====================================================================//\n // Update Quantity\n if (isset($itemData[\"quantity\"])) {\n $this->setGeneric(\"_quantity\", $itemData[\"quantity\"], \"item\");\n }\n //====================================================================//\n // Update Name\n if (isset($itemData[\"name\"])) {\n $this->setGeneric(\"_name\", $itemData[\"name\"], \"item\");\n }\n //====================================================================//\n // Update Product Id\n if (isset($itemData[\"product\"])) {\n $productId = self::objects()->id($itemData[\"product\"]);\n $this->setGeneric(\"_product_id\", $productId, \"item\");\n }\n //====================================================================//\n // Update Unit Price\n if (isset($itemData[\"subtotal\"])) {\n // Compute Expected Subtotal\n $subtotal = $this->item->get_quantity() * self::prices()->taxExcluded($itemData[\"subtotal\"]);\n // Compute Expected Subtotal Tax Incl.\n $subtotalTax = $this->item->get_quantity() * self::prices()->taxAmount($itemData[\"subtotal\"]);\n } else {\n $subtotal = $this->item->get_subtotal();\n $subtotalTax = $this->item->get_subtotal_tax();\n }\n //====================================================================//\n // Update Total Line Price\n // There is A Discount Percent\n if (isset($itemData[\"discount\"])) {\n // Compute Expected Total\n $total = (float) $subtotal * (1 - $itemData[\"discount\"] / 100);\n // Compute Expected Total Tax Incl.\n $totalTax = (float) $subtotalTax * (1 - $itemData[\"discount\"] / 100);\n // There is NO Discount\n } else {\n $total = $subtotal;\n $totalTax = $subtotalTax;\n }\n //====================================================================//\n // Update Item Taxes Array\n if (($totalTax != $this->item->get_total_tax()) || ($subtotalTax != $this->item->get_subtotal_tax())) {\n $this->setProductTaxArray((float) $totalTax, (float) $subtotalTax);\n }\n //====================================================================//\n // Update Item Totals\n $this->setGeneric(\"_total\", $total, \"item\");\n $this->setGeneric(\"_subtotal\", $subtotal, \"item\");\n }", "public function test_updateReplenishmentProcessCustomFields() {\n\n }", "public function testD_update() {\n\n $fname = self::$generator->firstName();\n $lname = self::$generator->lastName;\n\n $resp = $this->wrapper->update( self::$randomEmail, [\n 'FNAME' => $fname,\n 'LNAME' => $lname\n ]);\n\n $this->assertObjectHasAttribute('id', $resp);\n $this->assertObjectHasAttribute('merge_fields', $resp);\n\n $updated = $resp->merge_fields;\n\n $this->assertEquals($lname, $updated->LNAME);\n\n }", "public function testSaveTimesheetItem() {\n\n $timesheetItem = TestDataService::fetchObject('TimesheetItem', 1);\n\n $this->assertEquals(\"Good\", $timesheetItem->getComment());\n\n $timesheetItem->setComment(\"Bad\");\n\n\n $this->timesheetDao->saveTimesheetItem($timesheetItem);\n $savedTimesheetItem = TestDataService::fetchObject('TimesheetItem', $timesheetItem->getTimesheetItemId());\n\n\n $this->assertEquals($timesheetItem->getDuration(), $savedTimesheetItem->getDuration());\n $this->assertEquals($timesheetItem->getComment(), $savedTimesheetItem->getComment());\n $this->assertEquals($timesheetItem->getDate(), $savedTimesheetItem->getDate());\n }", "public function testShoppingCartCanBeUpdated()\n {\n $id1 = new UUID();\n $cart1 = new ShoppingCart($id1);\n $cart1->addItem($this->item);\n $this->gateway->insert($id1, $cart1);\n\n // Assert that item is added\n $this->assertEquals(1, count($cart1->getItems()));\n\n // Remove Item and assert\n $cart1->removeItem($this->item);\n $this->assertEquals(0, count($cart1->getItems()));\n\n // Update Cart Database\n $this->gateway->update($id1, $cart1);\n\n // Assert that the change has affected the cart in the database\n $cart = $this->gateway->findById($id1);\n $this->assertEquals(0, count($cart->getItems()));\n }", "public function testItemsProcFunc()\n {\n }", "public function testQuarantineUpdateAll()\n {\n\n }", "public function testPingTreePatchItem()\n {\n }", "public function testUpdateItemSubCategory()\n {\n }", "public function testUpdateQuantity()\n {\n $cart = new Cart(['foo']);\n $this->assertEquals(['foo'], $cart->getItems());\n\n $cart->updateQuantity('foo', 6);\n $this->assertEquals(['foo', 'foo', 'foo', 'foo', 'foo', 'foo'], $cart->getItems());\n\n $cart->updateQuantity('foo', 4);\n $this->assertEquals(['foo', 'foo', 'foo', 'foo'], $cart->getItems());\n\n $cart = new Cart(['foo', 'bar', 'foobar']);\n $cart->updateQuantity('foo', 4);\n $this->assertEquals(['bar', 'foo', 'foo', 'foo', 'foo', 'foobar'], $cart->getItems());\n }", "public function testGetCollectionItemSupply()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function updateItemById($item_data)\n\t{\n\t\t$item = $this->getItemById($item_data['it_id']);\n \t\tif( (false === $item) || !(is_object($item)) ){\n \t\t\treturn false;\n \t\t}\n\t\tunset($item_data['it_id']);\n\t\t$item->set($item_data);\n\t\treturn (boolean) $item->save();\n\t}", "protected function setUp()\n {\n $this->item = new Item();\n }", "public function testCollectionTicketsUpdate()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testOrderItem() {\n /** @var \\Drupal\\commerce_order\\Entity\\OrderItemInterface $order_item */\n $order_item = OrderItem::create([\n 'type' => 'test',\n ]);\n $order_item->save();\n\n $order_item->setTitle('My order item');\n $this->assertEquals('My order item', $order_item->getTitle());\n\n $this->assertEquals(1, $order_item->getQuantity());\n $order_item->setQuantity('2');\n $this->assertEquals(2, $order_item->getQuantity());\n\n $this->assertEquals(NULL, $order_item->getUnitPrice());\n $this->assertFalse($order_item->isUnitPriceOverridden());\n $unit_price = new Price('9.99', 'USD');\n $order_item->setUnitPrice($unit_price, TRUE);\n $this->assertEquals($unit_price, $order_item->getUnitPrice());\n $this->assertTrue($order_item->isUnitPriceOverridden());\n\n $adjustments = [];\n $adjustments[] = new Adjustment([\n 'type' => 'custom',\n 'label' => '10% off',\n 'amount' => new Price('-1.00', 'USD'),\n 'percentage' => '0.1',\n ]);\n $adjustments[] = new Adjustment([\n 'type' => 'fee',\n 'label' => 'Random fee',\n 'amount' => new Price('2.00', 'USD'),\n ]);\n $order_item->addAdjustment($adjustments[0]);\n $order_item->addAdjustment($adjustments[1]);\n $adjustments = $order_item->getAdjustments();\n $this->assertEquals($adjustments, $order_item->getAdjustments());\n $this->assertEquals($adjustments, $order_item->getAdjustments(['custom', 'fee']));\n $this->assertEquals([$adjustments[0]], $order_item->getAdjustments(['custom']));\n $this->assertEquals([$adjustments[1]], $order_item->getAdjustments(['fee']));\n $order_item->removeAdjustment($adjustments[0]);\n $this->assertEquals([$adjustments[1]], $order_item->getAdjustments());\n $this->assertEquals(new Price('21.98', 'USD'), $order_item->getAdjustedTotalPrice());\n $this->assertEquals(new Price('10.99', 'USD'), $order_item->getAdjustedUnitPrice());\n $order_item->setAdjustments($adjustments);\n $this->assertEquals($adjustments, $order_item->getAdjustments());\n $this->assertEquals(new Price('9.99', 'USD'), $order_item->getUnitPrice());\n $this->assertEquals(new Price('19.98', 'USD'), $order_item->getTotalPrice());\n $this->assertEquals(new Price('20.98', 'USD'), $order_item->getAdjustedTotalPrice());\n $this->assertEquals(new Price('18.98', 'USD'), $order_item->getAdjustedTotalPrice(['custom']));\n $this->assertEquals(new Price('21.98', 'USD'), $order_item->getAdjustedTotalPrice(['fee']));\n // The adjusted unit prices are the adjusted total prices divided by 2.\n $this->assertEquals(new Price('10.49', 'USD'), $order_item->getAdjustedUnitPrice());\n $this->assertEquals(new Price('9.49', 'USD'), $order_item->getAdjustedUnitPrice(['custom']));\n $this->assertEquals(new Price('10.99', 'USD'), $order_item->getAdjustedUnitPrice(['fee']));\n\n $this->assertEquals('default', $order_item->getData('test', 'default'));\n $order_item->setData('test', 'value');\n $this->assertEquals('value', $order_item->getData('test', 'default'));\n $order_item->unsetData('test');\n $this->assertNull($order_item->getData('test'));\n $this->assertEquals('default', $order_item->getData('test', 'default'));\n\n $order_item->setCreatedTime(635879700);\n $this->assertEquals(635879700, $order_item->getCreatedTime());\n\n $this->assertFalse($order_item->isLocked());\n $order_item->lock();\n $this->assertTrue($order_item->isLocked());\n $order_item->unlock();\n $this->assertFalse($order_item->isLocked());\n }", "public function test_updateSettings() {\n\n }", "public function testGetPayItems()\n {\n }", "public abstract function getUpdate(Table $table, $item = array());", "public function postEditItems()\n\t{\n\t\tif (!$this->request->ajax()) { return $this->ajaxErrorResponse(); }\n\n\t\t// Get the properties that will be applied to all items.\n\t\t$properties = [\n\t\t\t'buyRaw' => $this->request->input('buyRaw' ) ? true : false,\n\t\t\t'buyRecycled' => $this->request->input('buyRecycled' ) ? true : false,\n\t\t\t'buyRefined' => $this->request->input('buyRefined' ) ? true : false,\n\t\t\t'buyModifier' => $this->request->input('buyModifier' ) ? : 0.00,\n\t\t\t'sell' => $this->request->input('sell' ) ? true : false,\n\t\t\t'sellModifier' => $this->request->input('sellModifier') ? : 0.00,\n\t\t\t'lockPrices' => $this->request->input('lockPrices' ) ? true : false,\n\t\t\t'source' => $this->request->input('source' ) ? : \"Jita\",\n\t\t];\n\n\t\t$properties['buyModifier'] = is_numeric($properties['buyModifier'])\n\t\t\t? (double)$properties['buyModifier' ] : 0.00;\n\n\t\t$properties['sellModifier'] = is_numeric($properties['sellModifier'])\n\t\t\t? (double)$properties['sellModifier'] : 0.00;\n\n\t\t// Get the properties that will be applied to single items.\n\t\t$property = [\n\t\t\t'buyPrice' => $this->request->input('buyPrice' ) ?: 0.00,\n\t\t\t'sellPrice' => $this->request->input('sellPrice') ?: 0.00,\n\t\t];\n\n\t\t$property['buyPrice'] = is_numeric($property['buyPrice'])\n\t\t\t? (double)$property['buyPrice' ] : 0.00;\n\n\t\t$property['sellPrice'] = is_numeric($property['sellPrice'])\n\t\t\t? (double)$property['sellPrice'] : 0.00;\n\n\t\t// Get the items being updated.\n\t\t$ids = explode(',', $this->request->input('items'));\n\t\t$ids = count($ids) && $ids[0] != '' ? $ids : [];\n\t\t$items = $this->item_model->whereIn('typeID', $ids)->get();\n\n\t\ttry {\n\t\t\tif ($items->count() == 0) { throw new \\Exception(''); }\n\n\t\t\tDB::transaction(function () use ($items, $properties, $property) {\n\t\t\t\t// Update a single item.\n\t\t\t\tif ($items->count() == 1) {\n\t\t\t\t\t$items[0]->update(array_merge($properties, $property));\n\n\t\t\t\t// Update multiple items.\n\t\t\t\t} else if ($items->count() > 1) {\n\t\t\t\t\t$items->each(function ($item) use ($properties) {\n\t\t\t\t\t\t$item->update($properties);\n\t\t\t\t\t});\n\n\t\t\t\t} else {\n\t\t\t\t\treturn $this->ajaxFailureResponse(\n\t\t\t\t\t\ttrans('buyback.messages.edit_items_nothing', $items->count()));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn $this->ajaxSuccessResponse(\n\t\t\t\ttrans_choice('buyback.messages.edit_items_success', $items->count() == 1 ? 1 : 2));\n\n\t\t} catch (\\Exception $e) {\n\t\t\treturn $this->ajaxFailureResponse(\n\t\t\t\ttrans_choice('buyback.messages.edit_items_failure', $items->count() == 1 ? 1 : 2));\n\t\t}\n\t}", "public function testeditTrade() {\n $user = 1;\n $product = 1;\n $price = 999;\n $newprice = 500;\n $desc = 'test';\n $newdesc = 'uusi testi';\n R::exec('UPDATE collection set products = \"{\"\"1\"\": 1}\" WHERE id = :id', [':id' => $user]);\n R::exec('DELETE FROM trades WHERE seller_id = :id', [':id' => $user]);\n addNewTrade($user, $product, $price, $desc);\n $trades = getOpenTrades($user);\n editTrade($user, $trades[0]['id'], $newprice, $newdesc);\n $trades = getOpenTrades($user);\n $this->assertEquals($newprice, $trades[0]['price']);\n $this->assertEquals($newdesc, $trades[0]['description']);\n R::exec('DELETE FROM trades WHERE seller_id = :id', [':id' => $user]);\n }", "public function testGetTimesheetItem() {\n\n\n $result = $this->timesheetDao->getTimesheetItem(1, 2);\n\n $this->assertEquals(3, count($result));\n\n $timesheetItem = $result[0];\n\n $this->assertEquals(\"2011-04-10\", $timesheetItem['date']);\n $this->assertEquals(1000, $timesheetItem['duration']);\n $this->assertEquals(\"Poor\", $timesheetItem['comment']);\n }", "function updateItem($item) {\n\t\tglobal $dbh;\n\t\t$stmt = $dbh->prepare('UPDATE ITEM SET (NULL, ?, ?, ?, ?, ?) WHERE itemID = ?');\n\t\t$success = $stmt->execute(array($item['content'],\n\t\t\t\t\t\t\t\t\t\t$item['image'],\n\t\t\t\t\t\t\t\t\t\t$item['checked'],\n\t\t\t\t\t\t\t\t\t\t$item['listID'],\n\t\t\t\t\t\t\t\t\t\t$list['itemID']));\n\t\treturn $success;\n\t}", "public function testHandleUpdateSuccess()\n {\n // Populate data\n $dealerAccountID = $this->_populate();\n \n // Set params\n $params = $this->customDealerAccountData;\n \n // Add ID\n $ID = $this->_pickRandomItem($dealerAccountID);\n $params['ID'] = $ID;\n \n // Request\n $this->withSession($this->adminSession)\n ->call('POST', '/dealer-account/edit', $params, [], [], ['HTTP_REFERER' => '/dealer-account/edit']);\n \n // Validate response\n $this->assertRedirectedTo('/dealer-account/edit');\n $this->assertSessionHas('dealer-account-updated', '');\n \n // Validate data\n $dealerAccount = $this->dealer_account->getOne($ID);\n $this->assertEquals($dealerAccount->name, $this->customDealerAccountData['name']);\n $this->assertEquals($dealerAccount->branch_ID, $this->customDealerAccountData['branch_ID']);\n }", "function save(List8D_Model_Item $item) {\n\t\t//$this->_db->setFetchMode(Zend_Db::FETCH_OBJ);\n\t\t\n\t\t$objectData = $this->getObjectDataArray($item);\n\t\t\n\t\tif($item->getId() === null){\n\t\t\t//insert\n\t\t\t$objectData['created'] = date('Y-m-d H:m:s');\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t$this->getDbTable()->insert($objectData);\n\t\t\t$item->setId($this->getDbTable()->getAdapter()->lastInsertId());\n\t\t\t\n\t\t\t// creating a new item, so add some data by default\n\t\t\t//$item->setPrivateNotes('');\n\t\t\t//$item->setCoreText(0);\n\t\t\t//$item->setRecommendedForPurchase(0);\n\t\t\t\n\t\t\t// log the insert/duplicate\n\t\t\tif ($item->getDuplicate()) {\n\t\t\t\t$item->log(array('action'=>'duplicate', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>'', 'value_from'=>$item->getDuplicate(), 'value_to'=>''));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$item->log(array('action'=>'insert', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId()));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\t//update\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t\n\t\t\t// we have to do a select first to find out what the current values are for logging (see below)\n\t\t\t$existingData = $this->getDbTable()->fetchAll($this->getDbTable()->select()->where( 'id = ?', $item->getId()));\n\t\t\t\n\t\t\t$this->getDbTable()->update($objectData, \"id = \".$item->getId());\n\t\t\t\n\t\t\t// log changes\n\t\t\t// go through every piece of data for the object and if it's changed, make a separate log entry for it\n\t\t\tforeach ($objectData as $key=>$value) {\n\t\t\t\tif ($objectData[$key] != $existingData[0][$key]) {\n\t\t\t\t\t$item->log(array('action'=>'update', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>$key, 'value_from'=>$existingData[0][$key], 'value_to'=>$objectData[$key]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->saveData($item);\n\t}", "public function testIntegrationUpdate()\n {\n $userFaker = factory(Model::class)->create();\n $this->visit('user/' . $userFaker->slug . '/edit')\n ->type('Foo bar', 'name')\n ->type('Foobar', 'username')\n ->type('[email protected]', 'email')\n ->type('foobar123', 'password')\n ->type('foobar123', 'password_confirmation')\n ->press('Save')\n ->seePageIs('user');\n $this->assertResponseOk();\n $this->seeInDatabase('users', [\n 'username' => 'Foobar',\n 'email' => '[email protected]'\n ]);\n $this->assertViewHas('models');\n }", "function _updateItemAfterPurchase($data, $type = null)\r\n\t{\r\n\t\t$conditions = $item_user_conditions = $updation = array();\r\n\t\t$conditions['Item.id'] = $data['item_id'];\r\n\t\t// Getting Purchased & Commission Amounts //\r\n\t\t$item = $this->find('first', array(\r\n\t\t\t'conditions' => $conditions,\r\n\t\t\t'fields' => array(\r\n\t\t\t\t'Item.bonus_amount',\r\n\t\t\t\t'Item.commission_percentage',\r\n\t\t\t) ,\r\n\t\t\t'recursive' => -1\r\n\t\t));\r\n\t\t$items = $this->ItemUser->find('all', array(\r\n\t\t\t'conditions' => array(\r\n\t\t\t\t'ItemUser.item_id' => $data['item_id'],\r\n\t\t\t\t'ItemUser.is_repaid' => 0,\r\n\t\t\t\t'ItemUser.is_canceled' => 0,\r\n\t\t\t) ,\r\n\t\t\t'fields' => array(\r\n\t\t\t\t'SUM(ItemUser.discount_amount) as total_purchased_amount',\r\n\t\t\t) ,\r\n\t\t\t'recursive' => -1\r\n\t\t));\r\n\t\t$items[0][0]['total_commission_amount'] = $item['Item']['bonus_amount'] + ($items[0][0]['total_purchased_amount'] * ($item['Item']['commission_percentage']/100));\r\n\t\t// Getting Charity //\r\n\t\t$item_user_conditions = array(\r\n\t\t\t'ItemUser.is_repaid' => 0,\r\n\t\t\t'ItemUser.is_canceled' => 0\r\n\t\t);\r\n\t\t$item_user_conditions['ItemUser.item_id'] = $data['item_id'];\r\n\t\t$item_users = $this->ItemUser->find('all', array(\r\n\t\t\t'conditions' => $item_user_conditions,\r\n\t\t\t'fields' => array(\r\n\t\t\t\t'SUM(ItemUser.charity_paid_amount) as total_charity_amount',\r\n\t\t\t\t'SUM(ItemUser.charity_seller_amount) as seller_charity_amount',\r\n\t\t\t\t'SUM(ItemUser.charity_site_amount) as site_charity_amount',\r\n\t\t\t\t'SUM(ItemUser.affiliate_commission_amount) as total_affiliate_amount',\r\n\t\t\t\t'SUM(ItemUser.referral_commission_amount) as total_referral_amount',\r\n\t\t\t\t'COUNT(ItemUser.id) as item_user_canceled_count',\r\n\t\t\t) ,\r\n\t\t\t'recursive' => -1,\r\n\t\t));\r\n\t\tif (!empty($type) && $type == 'cancel') {\r\n\t\t\t$item_user_conditions = array();\r\n\t\t\t$item_user_conditions['ItemUser.item_id'] = $data['item_id'];\r\n\t\t\t$item_user_conditions['OR'] = array(\r\n\t\t\t\t'ItemUser.is_repaid' => 1,\r\n\t\t\t\t'ItemUser.is_canceled' => 1\r\n\t\t\t);\r\n\t\t\t$item_user_canceled = $this->ItemUser->find('all', array(\r\n\t\t\t\t'conditions' => $item_user_conditions,\r\n\t\t\t\t'fields' => array(\r\n\t\t\t\t\t'SUM(ItemUser.discount_amount) as total_sales_lost_amount',\r\n\t\t\t\t) ,\r\n\t\t\t\t'recursive' => -1,\r\n\t\t\t));\r\n\t\t\t$updation['Item.total_sales_lost_amount'] = (!empty($item_user_canceled[0][0]['total_sales_lost_amount']) ? $item_user_canceled[0][0]['total_sales_lost_amount'] : '0.00');\r\n\t\t\t$updation['Item.item_user_canceled_count'] = (!empty($item_user_canceled[0][0]['item_user_canceled_count']) ? $item_user_canceled[0][0]['item_user_canceled_count'] : '0');\r\n\t\t}\r\n\t\t$update_model = array(\r\n\t\t\t'Item.id' => $data['item_id']\r\n\t\t);\r\n\t\t$updation['Item.total_purchased_amount'] = (!empty($items[0][0]['total_purchased_amount']) ? $items[0][0]['total_purchased_amount'] : '0.00');\r\n\t\t$updation['Item.total_commission_amount'] = (!empty($items[0][0]['total_commission_amount']) ? $items[0][0]['total_commission_amount'] : '0.00');\r\n\t\t$updation['Item.total_charity_amount'] = (!empty($item_users[0][0]['total_charity_amount']) ? $item_users[0][0]['total_charity_amount'] : '0.00');\r\n\t\t$updation['Item.seller_charity_amount'] = (!empty($item_users[0][0]['seller_charity_amount']) ? $item_users[0][0]['seller_charity_amount'] : '0.00');\t\t\r\n\t\t$updation['Item.site_charity_amount'] = (!empty($item_users[0][0]['site_charity_amount']) ? $item_users[0][0]['site_charity_amount'] : '0.00');\t\t\r\n\t\t$updation['Item.total_merchant_earned_amount'] = ($updation['Item.total_purchased_amount'] - ($updation['Item.total_commission_amount'] + $updation['Item.seller_charity_amount']));\r\n\t\t$updation['Item.total_affiliate_amount'] = (!empty($item_users[0][0]['total_affiliate_amount']) ? $item_users[0][0]['total_affiliate_amount'] : '0.00');\r\n\t\t$updation['Item.total_referral_amount'] = (!empty($item_users[0][0]['total_referral_amount']) ? $item_users[0][0]['total_referral_amount'] : '0.00');\r\n\t\tif (!empty($updation) && !empty($update_model)) {\r\n\t\t\t$this->updateAll($updation, $update_model);\r\n\t\t}\r\n\t}", "public function testUpdate()\n\t{\n\t\t$params = $this->setUpParams();\n\t\t$params['title'] = 'some tag';\n\t\t$params['slug'] = 'some-tag';\n\t\t$response = $this->call('PUT', '/'.self::$endpoint.'/'.$this->obj->id, $params);\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t\t$result = $response->getOriginalContent()->toArray();\n\n\t\t// tes apakah hasil return adalah yang sesuai\n\t\tforeach ($params as $key => $val) {\n\t\t\t$this->assertArrayHasKey($key, $result);\n\t\t\tif (isset($result[$key])&&($key!='created_at')&&($key!='updated_at'))\n\t\t\t\t$this->assertEquals($val, $result[$key]);\n\t\t}\n\n\t\t// tes tak ada yang dicari\n\t\t$response = $this->call('GET', '/'.self::$endpoint.'/696969', $params);\n\t\t$this->assertEquals(500, $response->getStatusCode());\n\t}", "public function testModifyData() {\n // Add\n $userId = $this->json('POST', self::USERS_RESOURCE . \"/\", ['name' => 'Alex'])\n ->assertResponseStatus(200)\n ->seeJsonStructure(['id', 'name'])\n ->decodeResponseJson()['id'];\n\n // Check\n $this->json('GET', self::USERS_RESOURCE . \"/$userId\")\n ->seeJson([\n 'id' => $userId,\n 'name' => 'Alex'\n ]);\n $this->seeInDatabase(self::USERS_TABLE, [\n 'name' => 'Alex'\n ]);\n\n // Modify\n $this->json('PATCH', self::USERS_RESOURCE . \"/$userId\", ['name' => 'Peter'])\n ->assertResponseStatus(200)\n ->seeJson(['name' => 'Peter']);\n\n // Check\n $this->json('GET', self::USERS_RESOURCE . \"/$userId\")\n ->seeJson(['name' => 'Peter']);\n $this->seeInDatabase(self::USERS_TABLE, [\n 'name' => 'Peter'\n ]);\n\n // Delete\n $this->json('DELETE', self::USERS_RESOURCE . \"/$userId\")\n ->assertResponseStatus(204);\n\n // Check\n $this->get(self::USERS_RESOURCE . \"/$userId\")->assertResponseStatus(404);\n $this->notSeeInDatabase(self::USERS_TABLE, ['id' => $userId]);\n }", "public function testSuccessfullUpdateTodo()\n {\n $todoForUpdate = Todo::where('uuid', 'a207329e-6264-4960-a377-5b6dc8995d19')->first();\n\n $response = $this->json('PUT', '/todos/a207329e-6264-4960-a377-5b6dc8995d19', [\n 'content' => 'updated content',\n 'is_active' => true,\n ], [\n 'apikey' => $this->apiAuth['uuid'],\n 'Authorization' => 'Bearer ' . $this->token,\n ]);\n\n $response->assertResponseStatus(200);\n $response->seeJsonStructure([\n 'data' => [\n 'content',\n 'is_active',\n 'is_completed',\n 'created_at',\n 'updated_at',\n ],\n ]);\n $response->seeJson([\n 'content' => 'updated content',\n 'is_active' => true,\n 'is_completed' => false,\n 'id' => 'a207329e-6264-4960-a377-5b6dc8995d19',\n ]);\n $response->seeInDatabase('todos', [\n 'uuid' => 'a207329e-6264-4960-a377-5b6dc8995d19',\n 'content' => 'updated content',\n 'is_active' => true,\n 'is_completed' => false,\n ]);\n }", "function test_updateName()\n {\n //Arrange\n $title = \"Whimsical Fairytales...and other stories\";\n $genre = \"Fantasy\";\n $test_book = new Book($title, $genre);\n $test_book->save();\n\n $column_to_update = \"title\";\n $new_info = \"Generic Fantasy Novel\";\n\n //Act\n $test_book->update($column_to_update, $new_info);\n\n //Assert\n $result = Book::getAll();\n $this->assertEquals(\"Generic Fantasy Novel\", $result[0]->getTitle());\n }", "function vitero_grade_item_update(stdClass $vitero) {\n}", "public function update(): void\n {\n // Update quality\n if ($this->item->sell_in > 10) {\n $this->item->quality++;\n }\n\n if ($this->item->sell_in <= 10 && $this->item->sell_in > 5) {\n $this->item->quality += 2;\n }\n\n if ($this->item->sell_in <= 5 && $this->item->sell_in > 0) {\n $this->item->quality += 3;\n }\n\n // Update Sell in\n $this->updateSellIn();\n\n if ($this->item->sell_in < 0) {\n $this->item->quality = 0;\n }\n\n $this->checkAndUpdateQualityByRange();\n }", "private function log_items( $items ) {\n\t\tif ( ! isset( $this->expected[ $items ] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$item_results = $this->get_successful_updates( $items );\n\n\t\tif ( is_array( $this->expected[ $items ] ) ) {\n\t\t\tforeach ( $this->expected[ $items ] as $item ) {\n\t\t\t\tif ( in_array( $item, $item_results ) ) {\n\t\t\t\t\t$this->success[ $items ][] = $item;\n\t\t\t\t} else {\n\t\t\t\t\t$this->failed[ $items ][] = $item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function testGetHit()\n {\n $key = \"unique\";\n $item = $this->cache->getItem($key);\n $item->set(\"content\");\n\n $res = $item->get();\n $this->assertNull($res, \"Should not be able to find a value\");\n\n $this->cache->save($item);\n $res = $item->get();\n $this->assertTrue(!is_null($res), \"Should have a value\");\n }", "public function updateItem($item) {\n\t\tif(isset($item['id'])){\n\t\t\t$id = $item['id'];\n\t\t\tunset($item['id']);\n\t\t\t\n\t\t\t$params['set'] =$item;\n\t\t\t$params['condition'] = array('id' => $id); \n\t\t\treturn tdb::update(self::$tablename,$params);\n\t\t}\n\t\treturn false;\n\t}", "public function testJobUpdate()\n {\n\n }", "public function updateData($data_obj, $item_id)\n {\n\t\t$em = $this->controller_obj->getDoctrine()->getManager();\n\t\t$item = $em->getRepository(\"WebManagementBundle:location\")->find($item_id);\n\t\t$item->setLatitude($data_obj->getLatitude());\n\t\t$item->setLongitude($data_obj->getLongitude());\n\t\t$address_repo = $em->getRepository(\"WebManagementBundle:address\");\n\t\t$address = $address_repo->find($data_obj->getSelectAddress());\n\t\t$item->setAddress($address);\n\t\t$item->setDescription($data_obj->getDescription());\t\t\n\t\t$em->flush();\n\t}", "public function testUpdateServiceData()\n {\n\n }", "public function testAggregatorItemFields() {\n $feed = Feed::create([\n 'title' => 'Drupal org',\n 'url' => 'https://www.drupal.org/rss.xml',\n ]);\n $feed->save();\n $item = Item::create([\n 'title' => 'Test title',\n 'fid' => $feed->id(),\n 'description' => 'Test description',\n ]);\n\n $item->save();\n\n // @todo Expand the test coverage in https://www.drupal.org/node/2464635\n\n $this->assertFieldAccess('aggregator_item', 'title', $item->getTitle());\n $this->assertFieldAccess('aggregator_item', 'langcode', $item->language()->getName());\n $this->assertFieldAccess('aggregator_item', 'description', $item->getDescription());\n }", "public function updateItem($item)\n {\n $stmt = $this->db->prepare(\"UPDATE `iProject_Items` SET `type_id`= :type,`url`= :url,`name`= :name,`img`= :img,`price`= :price,`old_price`= :old_price,`discount`= :disc, `flash_sale`= :fs, `date` = NOW() WHERE `item_id` = :id\");\n $stmt->bindParam(\":type\", $item->type);\n $stmt->bindParam(\":url\", $item->url);\n $stmt->bindParam(\":name\", $item->name);\n $stmt->bindParam(\":img\", $item->img);\n $stmt->bindParam(\":price\", $item->price);\n $stmt->bindParam(\":old_price\", $item->old_price);\n $stmt->bindParam(\":disc\", $item->discount);\n $stmt->bindParam(\":fs\", $item->flash_sale);\n $stmt->bindParam(\":id\", $item->id);\n\n return $stmt->execute();\n }", "public function test_delete_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n $item = ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $item->remove();\n\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(0, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "public function testGetCollectionItemSupplies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testSetGetQuantity()\n {\n $this->item->setQuantity(2);\n $this->assertEquals($this->item->getQuantity(), 2);\n }", "function test_update()\n {\n // Arrange\n $brand_name = \"Nike\";\n $test_brand = new Brand($brand_name);\n $test_brand->save();\n\n\n $brand_id = $test_brand->getId();\n $new_brand_name = \"Adidas\";\n\n // Act\n $test_brand->update($new_brand_name);\n\n // Assert\n $this->assertEquals($new_brand_name, $test_brand->getBrandName());\n }", "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public function testStoreUpdate1()\n {\n $user = factory(User::class)->create(['id' => 1]);\n $schedule = factory(Schedule::class)->create(['user_id' => $user->id]);\n $storedSlots = ['10:00', '13:00', '16:00', '19:00'];\n foreach ($storedSlots as $slot) {\n factory(Slot::class)->create([\n 'schedule_id' => $schedule->id,\n 'slot' => $slot\n ]);\n }\n $postData = [\n 'slots' => ['12:00', '15:00', '18:00']\n ];\n $this->actingAs($user)\n ->post(route('schedule.store'), $postData);\n\n $this->assertDatabaseHas('slots', ['slot' => '12:00'])\n ->assertDatabaseHas('slots', ['slot' => '15:00'])\n ->assertDatabaseHas('slots', ['slot' => '18:00'])\n ->assertDatabaseMissing('slots', ['slot' => '10:00'])\n ->assertDatabaseMissing('slots', ['slot' => '13:00'])\n ->assertDatabaseMissing('slots', ['slot' => '16:00'])\n ->assertDatabaseMissing('slots', ['slot' => '19:00']);\n }", "public function testAddExistingItem(): void {\n $item = new Item(1, \"test\", 20);\n $this->itemCollection->add($item, 2);\n\n $this->itemCollection->add($item, 10);\n\n $this->assertEquals(12, $this->itemCollection->getAmount($item));\n }" ]
[ "0.802914", "0.802914", "0.7608871", "0.7590203", "0.7343143", "0.71170396", "0.7102456", "0.7029999", "0.68421113", "0.67927736", "0.66719097", "0.66687524", "0.6665654", "0.6600952", "0.6540604", "0.6430916", "0.6396808", "0.6374967", "0.6312497", "0.62763983", "0.6236613", "0.62326825", "0.62269753", "0.62264377", "0.614298", "0.6134714", "0.6126822", "0.6114784", "0.60955983", "0.608303", "0.60623944", "0.60291743", "0.60232407", "0.6021345", "0.6019586", "0.6012983", "0.6012827", "0.60078675", "0.59851795", "0.5981091", "0.5971453", "0.5932243", "0.5919738", "0.5909952", "0.5909169", "0.59086305", "0.5902689", "0.5899196", "0.5896293", "0.58928543", "0.5890985", "0.5888536", "0.58880436", "0.58793575", "0.5870548", "0.58696115", "0.5861946", "0.5833562", "0.58302045", "0.5822801", "0.58160466", "0.58125895", "0.5810758", "0.58079875", "0.57990116", "0.579881", "0.5793345", "0.5776186", "0.5764767", "0.57582104", "0.57566196", "0.5745959", "0.57389265", "0.5730895", "0.57280314", "0.572687", "0.57189727", "0.57154727", "0.5687077", "0.5686277", "0.5683521", "0.56795806", "0.56768316", "0.56766826", "0.5668623", "0.56672555", "0.56647533", "0.565899", "0.56553835", "0.5647998", "0.5647217", "0.56397325", "0.56386375", "0.5637534", "0.5635424", "0.5630417", "0.5628994", "0.5627992", "0.56258047", "0.56251746" ]
0.60261714
32
Provides test data for updateItem()
public function seedGetList() { // Filter, Value, Expected return array( array(array('content.type' => 'general'), 3), array(array('content.type' => 'general', 'filter.before' => '2011-01-01'), 0), array(array('content.type' => 'general', 'filter.before' => '2011-01-02'), 1), array(array('content.type' => 'general', 'filter.before' => '2011-02-02'), 1), array(array('content.type' => 'general', 'filter.since' => '2011-01-01'), 3), array(array('content.type' => 'general', 'filter.since' => '2011-01-02'), 2), array(array('content.type' => 'general', 'filter.since' => '2011-02-02'), 2), array(array('content.type' => 'general', 'content.type' => '5'), 0), array(array('content.type' => 'general', 'content.user_id' => '1'), 2), array(array('content.type' => 'general', 'where.fields' => 'created_user_id', 'where.created_user_id' => '2'), 1), array(array('content.type' => 'comment', 'comments.content_id' => '1'), 0), array(array('content.type' => 'tag', 'tags.content_id' => '1'), 1) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_update_item() {}", "public function test_update_item() {}", "public function testEditItem() {\n $data = $this->itemData;\n \n // Create the item\n $createItem = PromisePay::Item()->create($data);\n \n $this->assertEquals($this->GUID, $createItem['id']);\n \n // Modify data\n $data['name'] = 'Test123Update';\n $data['description'] = 'Test123Description';\n \n // Finally, modify the item\n $updateItem = PromisePay::Item()->update($createItem['id'], $data);\n \n $this->assertEquals($data['name'], $updateItem['name']);\n $this->assertEquals($data['description'], $updateItem['description']);\n }", "public function testRequestUpdateItem()\n {\n\t\t$response = $this\n\t\t\t\t\t->json('PUT', '/api/items/6', [\n\t\t\t\t\t\t'name' => 'Produkt zostal dodany i zaktualizowany przez test PHPUnit', \n\t\t\t\t\t\t'amount' => 0\n\t\t\t\t\t]);\n\n $response->assertJson([\n 'message' => 'Items updated.',\n\t\t\t\t'updated' => true\n ]);\n }", "public function testUpdatingData()\n {\n $store = new Storage(TESTING_STORE);\n\n // get id from our first item\n $id = $store->read()[0]['_id'];\n\n // new dummy data\n $new_dummy = array(\n 'label' => 'test update',\n 'message' => 'let me update this old data',\n );\n\n // do update our data\n $store->update($id, $new_dummy);\n\n // fetch single item from data by id\n $item = $store->read($id);\n\n // testing data\n $test = array($item['label'], $item['message']);\n\n // here we make a test that count diff values from data between 2 array_values\n $diff_count = count(array_diff(array_values($new_dummy), $test));\n $this->assertEquals(0, $diff_count);\n }", "public function testUpdateItem()\n {\n $item = $this->addItem();\n\n $this->laracart->updateItem($item->getHash(), 'qty', 4);\n\n $this->assertEquals(4, $item->qty);\n }", "public function testUpdate()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n\n Item::factory()->count(10)->create();\n\n //test item not found\n $this->call('PUT', '/items/11111')\n ->assertStatus(404);\n\n //test validation\n $this->put('items/1', array('email' => 'test1!kl'))\n ->seeJson([\n 'email' => array('The email must be a valid email address.'),\n ]);\n\n //test exception\n $this->put('items/1', array('email' => '[email protected]'))\n ->seeJsonStructure([\n 'error', 'code'\n ])\n ->seeJson(['code' => 400]);\n\n //test success updated item\n $this->put('items/1', array('email' => '[email protected]', 'name' => 'test1 updated'))\n ->seeJson([\n 'status' => 'ok',\n ])\n ->seeJson([\n 'email' => '[email protected]',\n ])\n ->seeJson([\n 'name' => 'test1 updated',\n ])\n ->seeJsonStructure([\n 'data' => [\n 'id',\n 'guid',\n 'name',\n 'email',\n 'created_dates',\n 'updated_dates',\n ]\n ]);\n\n $this->seeInDatabase('items', array('email' => '[email protected]', 'name' => 'test1 updated'));\n }", "public function testItemQtyUpdate()\n {\n $item = $this->addItem();\n $itemHash = $item->getHash();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n $this->addItem();\n\n $this->assertEquals(7, $item->qty);\n $this->assertEquals($itemHash, $item->getHash());\n\n $options = [\n 'a' => 2,\n 'b' => 1\n ];\n\n $item = $this->addItem(1, 1, false, $options);\n $this->addItem(1, 1, false, array_reverse($options));\n\n $this->assertEquals(2, $item->qty);\n }", "function update_data($data_update_item) {\n\t}", "public function testUpdate()\n {\n\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $item = $this->model->factory()->create();\n $updatedItem = $this->model->factory()->make();\n\n // Removes the dates for comparison\n $itemArray = $item->toArray();\n unset($itemArray['created_at']);\n unset($itemArray['updated_at']);\n\n // Check that the database contains the factory item\n $this->assertDatabaseHas($this->table, $itemArray);\n\n // Update the item with the second factory updatedItem\n $response = $this->patch(\"{$this->baseUrl}/{$item->getKey()}\", $updatedItem->toArray(), ['FORCE_CONTENT_TYPE'=>'json'])\n ->assertStatus(200);\n\n // Check that the original item does not exist anymore\n $this->assertDatabaseMissing($this->table, $itemArray);\n // Check that the updatedItem now exists in the database\n $this->assertDatabaseHas($this->table, $updatedItem->toArray());\n\n\n }", "public function test_can_create_and_update_items()\n {\n // Firstly we creating category\n $category = [\n 'name' => 'Test category'\n ];\n\n $responseCategory = $this->json('POST', '/api/categories', $category)->decodeResponseJson();\n\n // Test - Can create item\n $data = [\n 'category_id' => $responseCategory['id'],\n 'name' => 'Test_item',\n 'value' => 50,\n 'quality' => -10,\n ];\n\n $responseItem = $this->json('POST', '/api/items/', $data);\n\n $responseItem->assertStatus(201);\n\n $responseItem->assertSee('id');\n\n // Test - Can update item\n $item = $responseItem->decodeResponseJson();\n\n $dataUpdate = [\n 'value' => 60,\n ];\n\n $responseUpdate = $this->put('/api/items/' . $item['id'], $dataUpdate);\n\n $responseUpdate->assertStatus(200);\n\n $responseUpdate->assertSee(1);\n }", "abstract public function updateItem(&$object);", "public function test_updateItemCategory() {\n\n }", "public function test_prepare_item() {}", "public function testItCanRunItemUpdate()\n {\n Artisan::call('item:update');\n\n // If you need result of console output\n $resultAsText = Artisan::output();\n\n $this->assertRegExp(\"/Item #[0-9]* updated\\\\n/\", $resultAsText);\n }", "public function testSaveUpdates()\n {\n $this->projectItemInput = [\n 'id' => '555', \n 'project_id' => 1, \n 'item_type' => 'Refrigerator',\n 'manufacturer' => 'Cool Guys Manufacturing',\n 'model' => 'coolycool5000',\n 'serial_number' => '9238JDFH03uihFD', \n 'vendor' => 'LindenMart',\n 'comments' => 'Handles upsidedown'\n ];\n // Assemble\n //$this->mockedProjectItemsController->shouldReceive('storeItemWith')->once()->with($this->projectItemInput);\n $this->mockedProjectItemsRepo->shouldReceive('saveProjectItem')->once()->with(Mockery::type('ProjectItem'));\n\n // Act \n $response = $this->route(\"POST\", \"storeItems\", $this->projectItemInput);\n\n // Assert\n $this->assertRedirectedToAction('ProjectItemController@index',1);\n }", "public function setUpdated(): void\n {\n $this->originalData = $this->itemReflection->dehydrate($this->item);\n }", "public function testGetItem()\n {\n $item = $this->addItem();\n $this->assertEquals($item, $this->laracart->getItem($item->getHash()));\n }", "abstract public function updateData();", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "abstract function set ($item, $data);", "public function test_update_grade_item() {\n\n $testarray = $this->csv_load($this->oktext);\n $testobject = new phpunit_gradeimport_csv_load_data();\n\n // We're not using scales so no to this option.\n $verbosescales = 0;\n // Map and key are to retrieve the grade_item that we are updating.\n $map = array(1);\n $key = 0;\n // We return the new grade array for saving.\n $newgrades = $testobject->test_update_grade_item($this->courseid, $map, $key, $verbosescales, $testarray[0][6]);\n\n $expectedresult = array();\n $expectedresult[0] = new stdClass();\n $expectedresult[0]->itemid = 1;\n $expectedresult[0]->finalgrade = $testarray[0][6];\n\n $this->assertEquals($newgrades, $expectedresult);\n\n // Try sending a bad grade value (A letter instead of a float / int).\n $newgrades = $testobject->test_update_grade_item($this->courseid, $map, $key, $verbosescales, 'A');\n // The $newgrades variable should be null.\n $this->assertNull($newgrades);\n $expectederrormessage = get_string('badgrade', 'grades');\n // Check that the error message is what we expect.\n $gradebookerrors = $testobject->get_gradebookerrors();\n $this->assertEquals($expectederrormessage, $gradebookerrors[0]);\n }", "public function test_move_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n $item = ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $newCollection = CollectionFactory::createOne(['owner' => $user]);\n $item->setCollection($newCollection->object());\n $item->save();\n\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(1, $newCollection->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "public function updateItem( $id, $preparedItem ) {\n\t}", "public function updateItem(Item $item, ItemUpdateStruct $itemUpdateStruct): Item;", "public function testRequestItemEditId3()\n {\n $response = $this->get('/api/items/3/edit');\n\n $response->assertStatus(200);\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "private function setItem(array $itemData)\n {\n //====================================================================//\n // Safety Check\n if ((!$this->item instanceof WC_Order_Item_Shipping) && (!$this->item instanceof WC_Order_Item_Fee)) {\n return;\n }\n //====================================================================//\n // Update Name\n if (isset($itemData[\"name\"])) {\n $this->setGeneric(\"_name\", $itemData[\"name\"], \"item\");\n }\n //====================================================================//\n // Update Quantity\n $qty = $itemData[\"quantity\"] ?? 1;\n //====================================================================//\n // Update Unit Price\n if (isset($itemData[\"subtotal\"])) {\n // Compute Expected Total\n $total = $qty * self::prices()->taxExcluded($itemData[\"subtotal\"]);\n // Compute Expected Total Tax Incl.\n $totalTax = $qty * self::prices()->taxAmount($itemData[\"subtotal\"]);\n // There is NO Discount\n } else {\n $total = $this->item->get_total();\n $totalTax = $this->item->get_total_tax();\n }\n //====================================================================//\n // Update Item Taxes\n if ($totalTax != $this->item->get_total_tax()) {\n $this->setItemTaxArray('total', (float) $totalTax);\n }\n //====================================================================//\n // Update Item Totals\n $this->setGeneric(\"_total\", $total, \"item\");\n }", "public function testEditLineItems()\n {\n }", "public function testUpdateItemTitle()\n {\n $this->markTestIncomplete('This test has not been implemented yet.');\n\n $data = $this->getFakeItem();\n $handler = $this->getHandler();\n\n $data->item->InventTable->ItemName = 'some thing else';\n\n $result = $handler->SyncItem($data);\n $this->assertEquals($result->SyncItemResult->Status->enc_value, 'Ok');\n\n $sku = $data->item->InventTable->ItemId;\n $product = ProductsQuery::create()\n ->useProductsI18nQuery()\n ->filterByLocale('da_DK')\n ->endUse()\n ->joinWithProductsI18n()\n ->findOneBySku($sku)\n ;\n\n $this->assertEquals($product->getTitle(), $data->item->InventTable->ItemName);\n }", "public function testUpdateValidScheduleItem() {\n // count the number of rows and save it for later\n $numRows = $this->getConnection()->getRowCount(\"scheduleItem\");\n // create a new ScheduleItem and insert to into mySQL\n $scheduleItem = new ScheduleItem(null,$this->VALID_SCHEDULE_ITEM_DESCRIPTION, $this->VALID_SCHEDULE_ITEM_NAME,$this->VALID_SCHEDULE_START_TIME, $this->VALID_SCHEDULE_END_TIME, $this->VALID_USER_ID);\n $scheduleItem->insert($this->getPDO());\n // edit the ScheduleItem and update it in mySQL\n $scheduleItem->setScheduleItemName(\"Changed Name\");\n $scheduleItem->update($this->getPDO());\n // grab the data from mySQL and enforce the fields match our expectations\n $pdoScheduleItem = ScheduleItem::getScheduleItemByScheduleItemUserId($this->getPDO(), $scheduleItem->getScheduleItemUserId());\n $this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"scheduleItem\"));\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemName(), \"Changed Name\");\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemDescription(), $this->VALID_SCHEDULE_ITEM_DESCRIPTION);\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemStartTime(), $this->VALID_SCHEDULE_START_TIME);\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemEndTime(), $this->VALID_SCHEDULE_END_TIME);\n $this->assertEquals($pdoScheduleItem[0]->getScheduleItemUserId(), $this->VALID_USER_ID);\n }", "function setItemSystemFields($data, $item){\n if ($this->debug_mode)\n echo $this->ClassName . \"setItemSystemFields();\" . \"<HR>\";\n foreach ($item as $key => $value) {\n \tif($key == '_lastmodified'){\n \t\tcontinue;\n \t}\n if ((substr($key, 0, 1) == \"_\") && (! isset($data[$key]))) {\n $data[$key] = $value;\n }\n }\n if (isset($data['_lastmodified'])) {\n \tunset ($data['_lastmodified']);\n }\n }", "public function seedUpdateItem()\n\t{\n\t\t// Id, Type, Fields, FieldsArray, Expected, Exception\n\t\treturn array(\n\t\t\t\tarray(null, 'general', null, array(), null, 'InvalidArgumentException'),\n\t\t\t\tarray('-1', null, null, array(), null, 'UnexpectedValueException'),\n\t\t\t\tarray('1', 'general', null, array(), null, 'UnexpectedValueException'),\n\t\t\t\tarray('1', 'general', 'field1, field2', array(), null, 'UnexpectedValueException'),\n\n\t\t\t\t// Missing not null field\n\t\t\t\tarray(\n\t\t\t\t\t\t'-1',\n\t\t\t\t\t\t'general',\n\t\t\t\t\t\t'field3',\n\t\t\t\t\t\tarray('field3' => ''),\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tnull),\n\n\t\t\t\t// Missing not null field\n\t\t\t\tarray(\n\t\t\t\t\t\t1,\n\t\t\t\t\t\t'general',\n\t\t\t\t\t\t'field3',\n\t\t\t\t\t\tarray('field3' => ''),\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'UnexpectedValueException'),\n\n\t\t\t\tarray(\n\t\t\t\t\t\t1,\n\t\t\t\t\t\t'general',\n\t\t\t\t\t\t'field3, access',\n\t\t\t\t\t\tarray('field3' => 'f3', 'access' => '2'),\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tnull),\n\n\t\t\t\t// OK\n\t\t\t\tarray(\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\t'field1, field2, field3',\n\t\t\t\t\t\tarray('field1' => 'new field', 'field2' => 'new field', 'field3' => 'new field'),\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tnull)\n\t\t);\n\t}", "public function should_update($type, $item, $context)\n {\n }", "function UpdateItem($dataType, $item, $calendarID = NULL)\r\n {\r\n if ($dataType == 'contact groups')\r\n return $this->UpdateContactGroup($item);\r\n if ($dataType == 'contacts')\r\n return $this->UpdateContact($item);\r\n if ($dataType == 'calendars')\r\n return $this->UpdateCalendar($item);\r\n if ($dataType == 'events')\r\n return $this->UpdateEvent($item, $calendarID);\r\n if ($dataType == 'task lists')\r\n return $this->UpdateTaskList($item);\r\n if ($dataType == 'tasks')\r\n return $this->UpdateTask($item, $calendarID);\r\n if ($dataType == 'message boxes')\r\n return $this->UpdateMessageBox($item);\r\n if ($dataType == 'messages')\r\n return $this->UpdateMessage($item, $calendarID);\r\n \r\n WriteError(\"Unrecognized data type: $dataType\");\r\n exit(1);\r\n }", "protected function updateItems()\n {\n $this->log(\"Loading items...\");\n\n /** @var Item[] $items */\n $items = Item::find()->all();\n\n foreach ($items as $item) {\n if (!$this->hasItemSavedValue($item->id)) {\n $this->saveItemValue($item->id, $item->getDefaultNAValue(), $item->type, false);\n }\n }\n\n $this->log(\"Done\");\n }", "function amo_update($entity, $data, $search_similiar = false, $need_prepare = true)\n{\n if (substr($entity, -1) == 's') {\n $link = $entity;\n $many_items = true;\n } else {\n if ($entity == 'company') {\n $link = 'companies';\n } else {\n $link = $entity . 's';\n }\n }\n\n if (isset($data['search']) && !empty($data['search'])) {\n $search_similiar = true;\n }\n\n if ($need_prepare) {\n $item = prepare_data($entity, $data, $search_similiar);\n } else {\n $item = $data;\n }\n\n if ($item) {\n if (!$many_items) {\n $items = [$item];\n } else {\n $items = $item;\n }\n\n foreach ($items as $key => $item) {\n if (isset($item['id'])) {\n\n // no_update ставится в случае когда данные контакта совпадают с данными в амо.\n if ($item['no_update']) {\n return $item['id'];\n }\n\n $action_msg = 'Обновлён ';\n $ids_to_update[] = $item['id'];\n $item['updated_at'] = time(); // + 1000\n $sorted_data['update'][] = $item;\n\n } else {\n $ids_to_add[] = $item['id'];\n $action_msg = 'Добавлен ';\n $sorted_data['add'][] = $item;\n }\n }\n\n/* if (!empty($ids_to_update)) {\nlogw('Обновляем ' . $entity . ' id ' . implode(', ', $ids_to_update));\n}\n\nif (!empty($ids_to_add)) {\nlogw('Добавляем ' . $entity);\n}*/\n\n $output = run_curl($link, $sorted_data);\n\n if (!empty($output['_embedded']['items'])) {\n foreach ($output['_embedded']['items'] as $key => $value) {\n $updated_id[] = $value['id'];\n }\n } else {\n logw('Ошибка обновления');\n logw($output);\n return false;\n }\n\n if (!empty($updated_id)) {\n $updated_id_msg = implode(', ', $updated_id);\n } else {\n logw('Ошибка обновления ' . $entity);\n logw($output);\n return false;\n }\n\n if ($many_items) {\n logw('Обновлены ' . $entity . ' id ' . $updated_id_msg);\n return $updated_id;\n } else {\n logw($action_msg . $entity . ' id ' . $updated_id_msg);\n return $updated_id[0];\n }\n\n } else {\n logw('Ошибка: не получены данные от prepare_data');\n return false;\n }\n}", "public function testStore_Update()\n {\n \t$this->conn->store('test', array(1, 'one', 'updated row ONE', 'PASSIVE'));\n \t$this->conn->store('test', array('id'=>2, 'title'=>'updated row TWO'));\n \t\n \t$result = $this->conn->query(\"SELECT * FROM test\");\n \t$this->assertEquals(array(1, 'one', 'updated row ONE', 'PASSIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(2, 'two', 'updated row TWO', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(3, 'three', 'another row', 'PASSIVE'), $result->fetchOrdered());\n }", "public function testPatchRoleItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function updateTest()\n {\n $this->cD->updateElement(new Product(1, \"Trang\"));\n }", "public function testGetCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testGetItems(): void\n {\n $array = $this->itemCollection->getItems();\n $this->assertInternalType('array', $array);\n $this->assertEmpty($array);\n\n $item = new Item(1, \"test\", 20);\n $item2 = new Item(2, \"test\", 20);\n $this->itemCollection->add($item);\n $this->itemCollection->add($item2, 5);\n\n $array = $this->itemCollection->getItems();\n\n $this->assertInternalType('array', $array);\n $this->assertEquals([\n $item,\n $item2\n ], $array);\n }", "function update_item($item, $metadata = array(), $elementTexts = array(), $fileMetadata = array())\n{\n $builder = new Builder_Item(get_db());\n $builder->setRecord($item);\n $builder->setRecordMetadata($metadata);\n $builder->setElementTexts($elementTexts);\n $builder->setFileMetadata($fileMetadata);\n return $builder->build();\n}", "function testNormalItem() {\n $items = array(new Item('Elixir of the Mongoose', 2, 5));\n $gildedRose = new GildedRose($items);\n \n // check that normal item degrades as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(4, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n\n // now that item is expired, it should degrade twice as fast \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(0, $items[0]->quality);\n }", "public function test_if_failed_update()\n {\n }", "abstract protected function saveItems();", "public function test_add_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(1, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(1, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "function test_update_meta() {\n\t\t$mid1 = add_post_meta( $this->post_id, 'unique_update', 'value', true );\n\t\t$this->assertIsInt( $mid1 );\n\n\t\t// Add two non-unique post meta items.\n\t\t$mid2 = add_post_meta( $this->post_id, 'nonunique_update', 'value' );\n\t\t$this->assertIsInt( $mid2 );\n\t\t$mid3 = add_post_meta( $this->post_id, 'nonunique_update', 'another value' );\n\t\t$this->assertIsInt( $mid3 );\n\n\t\t// Check they exist.\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'value' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'value', 'another value' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t\t// Update them\n\t\t$this->assertTrue( update_meta( $mid1, 'unique_update', 'new' ) );\n\t\t$this->assertTrue( update_meta( $mid2, 'nonunique_update', 'new' ) );\n\t\t$this->assertTrue( update_meta( $mid3, 'nonunique_update', 'another new' ) );\n\n\t\t// Check they updated.\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'new' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'new', 'another new' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t\t// Slashed update\n\t\t$data = \"'quote and \\slash\";\n\t\t$this->assertTrue( update_meta( $mid1, 'unique_update', addslashes( $data ) ) );\n\t\t$meta = get_metadata_by_mid( 'post', $mid1 );\n\t\t$this->assertSame( $data, $meta->meta_value );\n\t}", "function test_update_post_meta() {\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'unique_update', 'value', true ) );\n\n\t\t// Add two non-unique post meta items.\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique_update', 'value' ) );\n\t\t$this->assertIsInt( add_post_meta( $this->post_id, 'nonunique_update', 'another value' ) );\n\n\t\t// Check they exist.\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'value' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'value', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'value', 'another value' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t\t// Update them\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'unique_update', 'new', 'value' ) );\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'nonunique_update', 'new', 'value' ) );\n\t\t$this->assertTrue( update_post_meta( $this->post_id, 'nonunique_update', 'another new', 'another value' ) );\n\n\t\t// Check they updated.\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'unique_update', true ) );\n\t\t$this->assertSame( array( 'new' ), get_post_meta( $this->post_id, 'unique_update', false ) );\n\t\t$this->assertSame( 'new', get_post_meta( $this->post_id, 'nonunique_update', true ) );\n\t\t$this->assertSame( array( 'new', 'another new' ), get_post_meta( $this->post_id, 'nonunique_update', false ) );\n\n\t}", "public function testItemPriceAndQty()\n {\n $item = $this->addItem(3, 10);\n\n $this->assertEquals(3, $item->qty);\n $this->assertEquals(10, $item->price(false));\n $this->assertEquals(30, $item->subTotal(false));\n }", "public function testGetItem()\n {\n $datastore = $this->container->get('datastore');\n $logger = $this->container->get('logger');\n\n $repo = $this->getMockBuilder(DataStoreRepository::class)\n ->setConstructorArgs([$datastore, $logger])\n ->getMock();\n\n $repo->method('getItem')\n ->will($this->returnValue([\n 'id' => 1,\n 'name' => 'Test',\n 'user_id' => 1,\n 'body' => 'Fixture'\n ]));\n\n $service = new Service($repo, $logger);\n $item = $service->getItem(1);\n\n $this->assertEquals($item->getName(), 'Test');\n $this->assertNotEquals($item->getUserId(), 2);\n }", "function _update_item() {\n if ($_POST['id']) {\n $item = \\Model\\Item::find($_POST['id']);\n unset($_POST['id']);\n } else {\n $item = new \\Model\\Item();\n }\n \n if (isset($_POST['flags'])) { \n $item->flags = '';\n \n foreach ($_POST['flags'] as &$flag) {\n $flag = implode(':',$flag);\n }\n \n $item->flags = implode(',',$_POST['flags']);\n }\n \n foreach ($_POST as $name => $value) {\n if (!is_array($value)) {\n $item->$name = $value;\n }\n }\n \n // Make sure the stock is something\n if (!$item->stock)\n $item->stock = 0;\n \n $item->save();\n \n // Check if we need to delete any options\n $options = \\Model\\Itemoption::all(\n array('conditions' => \"itemid = {$item->id}\"));\n \n foreach ($options as $option) {\n foreach ($_POST['options'] as $new_option) {\n if ($new_option['id'] == $option->id) {\n continue 2;\n }\n }\n $option->delete();\n }\n \n if (isset($_POST['options'])) {\n foreach ($_POST['options'] as $option_data) {\n if ($option_data['id']) {\n $option = \\Model\\Itemoption::find($option_data['id']);\n unset($option_data['id']);\n } else {\n $option = new \\Model\\Itemoption();\n }\n \n foreach($option_data as $name => $value) {\n $option->$name = $value;\n }\n \n $option->itemid = $item->id;\n \n $option->save();\n } \n }\n \n $i = $item;\n \n ?>\n <tr data-search=\"<?=$i->number.' '.$i->name?>\" class=\"item-<?=$i->id?>\">\n <td><?=$i->number?></td>\n <td><?=$i->name?></td>\n <td><?=$i->short_description()?></td>\n <td>$<?=$i->price?></td>\n <td><?=$i->formated_weight()?></td>\n <td><?=$i->image_tag()?></td>\n <td><?=$i->display_flags()?></td>\n <td><?=$i->display_stock()?></td>\n <td>\n <button class=\"btn btn-mini btn-danger delete-item\" value=\"<?=sc_cp('Stock/delete_item/'.$i->id)?>\"><i class=\"icon-remove\"></i></button>\n <button class=\"btn btn-mini btn-primary edit-item\" value=\"<?=sc_cp('Stock/edit_item/'.$i->id)?>\"><i class=\"icon-pencil\"></i></button>\n </td>\n </tr>\n <?php \n \n }", "public function updateItem($_id) {\n\t}", "public function testEdit() {\r\n\t\t$result = $this->ShopProductAttribute->edit('shopproductattribute-1', null);\r\n\r\n\t\t$expected = $this->ShopProductAttribute->read(null, 'shopproductattribute-1');\r\n\t\t$this->assertEqual($result['ShopProductAttribute'], $expected['ShopProductAttribute']);\r\n\r\n\t\t// put invalidated data here\r\n\t\t$data = $this->record;\r\n\t\t//$data['ShopProductAttribute']['title'] = null;\r\n\r\n\t\t$result = $this->ShopProductAttribute->edit('shopproductattribute-1', $data);\r\n\t\t$this->assertEqual($result, $data);\r\n\r\n\t\t$data = $this->record;\r\n\r\n\t\t$result = $this->ShopProductAttribute->edit('shopproductattribute-1', $data);\r\n\t\t$this->assertTrue($result);\r\n\r\n\t\t$result = $this->ShopProductAttribute->read(null, 'shopproductattribute-1');\r\n\r\n\t\t// put record specific asserts here for example\r\n\t\t// $this->assertEqual($result['ShopProductAttribute']['title'], $data['ShopProductAttribute']['title']);\r\n\r\n\t\ttry {\r\n\t\t\t$this->ShopProductAttribute->edit('wrong_id', $data);\r\n\t\t\t$this->fail('No exception');\r\n\t\t} catch (OutOfBoundsException $e) {\r\n\t\t\t$this->pass('Correct exception thrown');\r\n\t\t}\r\n\t}", "private function setProductItem(array $itemData): void\n {\n //====================================================================//\n // Safety Check\n if (!$this->item instanceof WC_Order_Item_Product) {\n return;\n }\n //====================================================================//\n // Update Quantity\n if (isset($itemData[\"quantity\"])) {\n $this->setGeneric(\"_quantity\", $itemData[\"quantity\"], \"item\");\n }\n //====================================================================//\n // Update Name\n if (isset($itemData[\"name\"])) {\n $this->setGeneric(\"_name\", $itemData[\"name\"], \"item\");\n }\n //====================================================================//\n // Update Product Id\n if (isset($itemData[\"product\"])) {\n $productId = self::objects()->id($itemData[\"product\"]);\n $this->setGeneric(\"_product_id\", $productId, \"item\");\n }\n //====================================================================//\n // Update Unit Price\n if (isset($itemData[\"subtotal\"])) {\n // Compute Expected Subtotal\n $subtotal = $this->item->get_quantity() * self::prices()->taxExcluded($itemData[\"subtotal\"]);\n // Compute Expected Subtotal Tax Incl.\n $subtotalTax = $this->item->get_quantity() * self::prices()->taxAmount($itemData[\"subtotal\"]);\n } else {\n $subtotal = $this->item->get_subtotal();\n $subtotalTax = $this->item->get_subtotal_tax();\n }\n //====================================================================//\n // Update Total Line Price\n // There is A Discount Percent\n if (isset($itemData[\"discount\"])) {\n // Compute Expected Total\n $total = (float) $subtotal * (1 - $itemData[\"discount\"] / 100);\n // Compute Expected Total Tax Incl.\n $totalTax = (float) $subtotalTax * (1 - $itemData[\"discount\"] / 100);\n // There is NO Discount\n } else {\n $total = $subtotal;\n $totalTax = $subtotalTax;\n }\n //====================================================================//\n // Update Item Taxes Array\n if (($totalTax != $this->item->get_total_tax()) || ($subtotalTax != $this->item->get_subtotal_tax())) {\n $this->setProductTaxArray((float) $totalTax, (float) $subtotalTax);\n }\n //====================================================================//\n // Update Item Totals\n $this->setGeneric(\"_total\", $total, \"item\");\n $this->setGeneric(\"_subtotal\", $subtotal, \"item\");\n }", "public function test_updateReplenishmentProcessCustomFields() {\n\n }", "public function testD_update() {\n\n $fname = self::$generator->firstName();\n $lname = self::$generator->lastName;\n\n $resp = $this->wrapper->update( self::$randomEmail, [\n 'FNAME' => $fname,\n 'LNAME' => $lname\n ]);\n\n $this->assertObjectHasAttribute('id', $resp);\n $this->assertObjectHasAttribute('merge_fields', $resp);\n\n $updated = $resp->merge_fields;\n\n $this->assertEquals($lname, $updated->LNAME);\n\n }", "public function testSaveTimesheetItem() {\n\n $timesheetItem = TestDataService::fetchObject('TimesheetItem', 1);\n\n $this->assertEquals(\"Good\", $timesheetItem->getComment());\n\n $timesheetItem->setComment(\"Bad\");\n\n\n $this->timesheetDao->saveTimesheetItem($timesheetItem);\n $savedTimesheetItem = TestDataService::fetchObject('TimesheetItem', $timesheetItem->getTimesheetItemId());\n\n\n $this->assertEquals($timesheetItem->getDuration(), $savedTimesheetItem->getDuration());\n $this->assertEquals($timesheetItem->getComment(), $savedTimesheetItem->getComment());\n $this->assertEquals($timesheetItem->getDate(), $savedTimesheetItem->getDate());\n }", "public function testShoppingCartCanBeUpdated()\n {\n $id1 = new UUID();\n $cart1 = new ShoppingCart($id1);\n $cart1->addItem($this->item);\n $this->gateway->insert($id1, $cart1);\n\n // Assert that item is added\n $this->assertEquals(1, count($cart1->getItems()));\n\n // Remove Item and assert\n $cart1->removeItem($this->item);\n $this->assertEquals(0, count($cart1->getItems()));\n\n // Update Cart Database\n $this->gateway->update($id1, $cart1);\n\n // Assert that the change has affected the cart in the database\n $cart = $this->gateway->findById($id1);\n $this->assertEquals(0, count($cart->getItems()));\n }", "public function testItemsProcFunc()\n {\n }", "public function testQuarantineUpdateAll()\n {\n\n }", "public function testPingTreePatchItem()\n {\n }", "public function testUpdateItemSubCategory()\n {\n }", "public function testUpdateQuantity()\n {\n $cart = new Cart(['foo']);\n $this->assertEquals(['foo'], $cart->getItems());\n\n $cart->updateQuantity('foo', 6);\n $this->assertEquals(['foo', 'foo', 'foo', 'foo', 'foo', 'foo'], $cart->getItems());\n\n $cart->updateQuantity('foo', 4);\n $this->assertEquals(['foo', 'foo', 'foo', 'foo'], $cart->getItems());\n\n $cart = new Cart(['foo', 'bar', 'foobar']);\n $cart->updateQuantity('foo', 4);\n $this->assertEquals(['bar', 'foo', 'foo', 'foo', 'foo', 'foobar'], $cart->getItems());\n }", "public function testGetCollectionItemSupply()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function updateItemById($item_data)\n\t{\n\t\t$item = $this->getItemById($item_data['it_id']);\n \t\tif( (false === $item) || !(is_object($item)) ){\n \t\t\treturn false;\n \t\t}\n\t\tunset($item_data['it_id']);\n\t\t$item->set($item_data);\n\t\treturn (boolean) $item->save();\n\t}", "protected function setUp()\n {\n $this->item = new Item();\n }", "public function testCollectionTicketsUpdate()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testOrderItem() {\n /** @var \\Drupal\\commerce_order\\Entity\\OrderItemInterface $order_item */\n $order_item = OrderItem::create([\n 'type' => 'test',\n ]);\n $order_item->save();\n\n $order_item->setTitle('My order item');\n $this->assertEquals('My order item', $order_item->getTitle());\n\n $this->assertEquals(1, $order_item->getQuantity());\n $order_item->setQuantity('2');\n $this->assertEquals(2, $order_item->getQuantity());\n\n $this->assertEquals(NULL, $order_item->getUnitPrice());\n $this->assertFalse($order_item->isUnitPriceOverridden());\n $unit_price = new Price('9.99', 'USD');\n $order_item->setUnitPrice($unit_price, TRUE);\n $this->assertEquals($unit_price, $order_item->getUnitPrice());\n $this->assertTrue($order_item->isUnitPriceOverridden());\n\n $adjustments = [];\n $adjustments[] = new Adjustment([\n 'type' => 'custom',\n 'label' => '10% off',\n 'amount' => new Price('-1.00', 'USD'),\n 'percentage' => '0.1',\n ]);\n $adjustments[] = new Adjustment([\n 'type' => 'fee',\n 'label' => 'Random fee',\n 'amount' => new Price('2.00', 'USD'),\n ]);\n $order_item->addAdjustment($adjustments[0]);\n $order_item->addAdjustment($adjustments[1]);\n $adjustments = $order_item->getAdjustments();\n $this->assertEquals($adjustments, $order_item->getAdjustments());\n $this->assertEquals($adjustments, $order_item->getAdjustments(['custom', 'fee']));\n $this->assertEquals([$adjustments[0]], $order_item->getAdjustments(['custom']));\n $this->assertEquals([$adjustments[1]], $order_item->getAdjustments(['fee']));\n $order_item->removeAdjustment($adjustments[0]);\n $this->assertEquals([$adjustments[1]], $order_item->getAdjustments());\n $this->assertEquals(new Price('21.98', 'USD'), $order_item->getAdjustedTotalPrice());\n $this->assertEquals(new Price('10.99', 'USD'), $order_item->getAdjustedUnitPrice());\n $order_item->setAdjustments($adjustments);\n $this->assertEquals($adjustments, $order_item->getAdjustments());\n $this->assertEquals(new Price('9.99', 'USD'), $order_item->getUnitPrice());\n $this->assertEquals(new Price('19.98', 'USD'), $order_item->getTotalPrice());\n $this->assertEquals(new Price('20.98', 'USD'), $order_item->getAdjustedTotalPrice());\n $this->assertEquals(new Price('18.98', 'USD'), $order_item->getAdjustedTotalPrice(['custom']));\n $this->assertEquals(new Price('21.98', 'USD'), $order_item->getAdjustedTotalPrice(['fee']));\n // The adjusted unit prices are the adjusted total prices divided by 2.\n $this->assertEquals(new Price('10.49', 'USD'), $order_item->getAdjustedUnitPrice());\n $this->assertEquals(new Price('9.49', 'USD'), $order_item->getAdjustedUnitPrice(['custom']));\n $this->assertEquals(new Price('10.99', 'USD'), $order_item->getAdjustedUnitPrice(['fee']));\n\n $this->assertEquals('default', $order_item->getData('test', 'default'));\n $order_item->setData('test', 'value');\n $this->assertEquals('value', $order_item->getData('test', 'default'));\n $order_item->unsetData('test');\n $this->assertNull($order_item->getData('test'));\n $this->assertEquals('default', $order_item->getData('test', 'default'));\n\n $order_item->setCreatedTime(635879700);\n $this->assertEquals(635879700, $order_item->getCreatedTime());\n\n $this->assertFalse($order_item->isLocked());\n $order_item->lock();\n $this->assertTrue($order_item->isLocked());\n $order_item->unlock();\n $this->assertFalse($order_item->isLocked());\n }", "public function test_updateSettings() {\n\n }", "public function testGetPayItems()\n {\n }", "public abstract function getUpdate(Table $table, $item = array());", "public function postEditItems()\n\t{\n\t\tif (!$this->request->ajax()) { return $this->ajaxErrorResponse(); }\n\n\t\t// Get the properties that will be applied to all items.\n\t\t$properties = [\n\t\t\t'buyRaw' => $this->request->input('buyRaw' ) ? true : false,\n\t\t\t'buyRecycled' => $this->request->input('buyRecycled' ) ? true : false,\n\t\t\t'buyRefined' => $this->request->input('buyRefined' ) ? true : false,\n\t\t\t'buyModifier' => $this->request->input('buyModifier' ) ? : 0.00,\n\t\t\t'sell' => $this->request->input('sell' ) ? true : false,\n\t\t\t'sellModifier' => $this->request->input('sellModifier') ? : 0.00,\n\t\t\t'lockPrices' => $this->request->input('lockPrices' ) ? true : false,\n\t\t\t'source' => $this->request->input('source' ) ? : \"Jita\",\n\t\t];\n\n\t\t$properties['buyModifier'] = is_numeric($properties['buyModifier'])\n\t\t\t? (double)$properties['buyModifier' ] : 0.00;\n\n\t\t$properties['sellModifier'] = is_numeric($properties['sellModifier'])\n\t\t\t? (double)$properties['sellModifier'] : 0.00;\n\n\t\t// Get the properties that will be applied to single items.\n\t\t$property = [\n\t\t\t'buyPrice' => $this->request->input('buyPrice' ) ?: 0.00,\n\t\t\t'sellPrice' => $this->request->input('sellPrice') ?: 0.00,\n\t\t];\n\n\t\t$property['buyPrice'] = is_numeric($property['buyPrice'])\n\t\t\t? (double)$property['buyPrice' ] : 0.00;\n\n\t\t$property['sellPrice'] = is_numeric($property['sellPrice'])\n\t\t\t? (double)$property['sellPrice'] : 0.00;\n\n\t\t// Get the items being updated.\n\t\t$ids = explode(',', $this->request->input('items'));\n\t\t$ids = count($ids) && $ids[0] != '' ? $ids : [];\n\t\t$items = $this->item_model->whereIn('typeID', $ids)->get();\n\n\t\ttry {\n\t\t\tif ($items->count() == 0) { throw new \\Exception(''); }\n\n\t\t\tDB::transaction(function () use ($items, $properties, $property) {\n\t\t\t\t// Update a single item.\n\t\t\t\tif ($items->count() == 1) {\n\t\t\t\t\t$items[0]->update(array_merge($properties, $property));\n\n\t\t\t\t// Update multiple items.\n\t\t\t\t} else if ($items->count() > 1) {\n\t\t\t\t\t$items->each(function ($item) use ($properties) {\n\t\t\t\t\t\t$item->update($properties);\n\t\t\t\t\t});\n\n\t\t\t\t} else {\n\t\t\t\t\treturn $this->ajaxFailureResponse(\n\t\t\t\t\t\ttrans('buyback.messages.edit_items_nothing', $items->count()));\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn $this->ajaxSuccessResponse(\n\t\t\t\ttrans_choice('buyback.messages.edit_items_success', $items->count() == 1 ? 1 : 2));\n\n\t\t} catch (\\Exception $e) {\n\t\t\treturn $this->ajaxFailureResponse(\n\t\t\t\ttrans_choice('buyback.messages.edit_items_failure', $items->count() == 1 ? 1 : 2));\n\t\t}\n\t}", "public function testeditTrade() {\n $user = 1;\n $product = 1;\n $price = 999;\n $newprice = 500;\n $desc = 'test';\n $newdesc = 'uusi testi';\n R::exec('UPDATE collection set products = \"{\"\"1\"\": 1}\" WHERE id = :id', [':id' => $user]);\n R::exec('DELETE FROM trades WHERE seller_id = :id', [':id' => $user]);\n addNewTrade($user, $product, $price, $desc);\n $trades = getOpenTrades($user);\n editTrade($user, $trades[0]['id'], $newprice, $newdesc);\n $trades = getOpenTrades($user);\n $this->assertEquals($newprice, $trades[0]['price']);\n $this->assertEquals($newdesc, $trades[0]['description']);\n R::exec('DELETE FROM trades WHERE seller_id = :id', [':id' => $user]);\n }", "public function testGetTimesheetItem() {\n\n\n $result = $this->timesheetDao->getTimesheetItem(1, 2);\n\n $this->assertEquals(3, count($result));\n\n $timesheetItem = $result[0];\n\n $this->assertEquals(\"2011-04-10\", $timesheetItem['date']);\n $this->assertEquals(1000, $timesheetItem['duration']);\n $this->assertEquals(\"Poor\", $timesheetItem['comment']);\n }", "function updateItem($item) {\n\t\tglobal $dbh;\n\t\t$stmt = $dbh->prepare('UPDATE ITEM SET (NULL, ?, ?, ?, ?, ?) WHERE itemID = ?');\n\t\t$success = $stmt->execute(array($item['content'],\n\t\t\t\t\t\t\t\t\t\t$item['image'],\n\t\t\t\t\t\t\t\t\t\t$item['checked'],\n\t\t\t\t\t\t\t\t\t\t$item['listID'],\n\t\t\t\t\t\t\t\t\t\t$list['itemID']));\n\t\treturn $success;\n\t}", "public function testHandleUpdateSuccess()\n {\n // Populate data\n $dealerAccountID = $this->_populate();\n \n // Set params\n $params = $this->customDealerAccountData;\n \n // Add ID\n $ID = $this->_pickRandomItem($dealerAccountID);\n $params['ID'] = $ID;\n \n // Request\n $this->withSession($this->adminSession)\n ->call('POST', '/dealer-account/edit', $params, [], [], ['HTTP_REFERER' => '/dealer-account/edit']);\n \n // Validate response\n $this->assertRedirectedTo('/dealer-account/edit');\n $this->assertSessionHas('dealer-account-updated', '');\n \n // Validate data\n $dealerAccount = $this->dealer_account->getOne($ID);\n $this->assertEquals($dealerAccount->name, $this->customDealerAccountData['name']);\n $this->assertEquals($dealerAccount->branch_ID, $this->customDealerAccountData['branch_ID']);\n }", "function save(List8D_Model_Item $item) {\n\t\t//$this->_db->setFetchMode(Zend_Db::FETCH_OBJ);\n\t\t\n\t\t$objectData = $this->getObjectDataArray($item);\n\t\t\n\t\tif($item->getId() === null){\n\t\t\t//insert\n\t\t\t$objectData['created'] = date('Y-m-d H:m:s');\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t$this->getDbTable()->insert($objectData);\n\t\t\t$item->setId($this->getDbTable()->getAdapter()->lastInsertId());\n\t\t\t\n\t\t\t// creating a new item, so add some data by default\n\t\t\t//$item->setPrivateNotes('');\n\t\t\t//$item->setCoreText(0);\n\t\t\t//$item->setRecommendedForPurchase(0);\n\t\t\t\n\t\t\t// log the insert/duplicate\n\t\t\tif ($item->getDuplicate()) {\n\t\t\t\t$item->log(array('action'=>'duplicate', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>'', 'value_from'=>$item->getDuplicate(), 'value_to'=>''));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$item->log(array('action'=>'insert', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId()));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\t//update\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t\n\t\t\t// we have to do a select first to find out what the current values are for logging (see below)\n\t\t\t$existingData = $this->getDbTable()->fetchAll($this->getDbTable()->select()->where( 'id = ?', $item->getId()));\n\t\t\t\n\t\t\t$this->getDbTable()->update($objectData, \"id = \".$item->getId());\n\t\t\t\n\t\t\t// log changes\n\t\t\t// go through every piece of data for the object and if it's changed, make a separate log entry for it\n\t\t\tforeach ($objectData as $key=>$value) {\n\t\t\t\tif ($objectData[$key] != $existingData[0][$key]) {\n\t\t\t\t\t$item->log(array('action'=>'update', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>$key, 'value_from'=>$existingData[0][$key], 'value_to'=>$objectData[$key]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->saveData($item);\n\t}", "public function testIntegrationUpdate()\n {\n $userFaker = factory(Model::class)->create();\n $this->visit('user/' . $userFaker->slug . '/edit')\n ->type('Foo bar', 'name')\n ->type('Foobar', 'username')\n ->type('[email protected]', 'email')\n ->type('foobar123', 'password')\n ->type('foobar123', 'password_confirmation')\n ->press('Save')\n ->seePageIs('user');\n $this->assertResponseOk();\n $this->seeInDatabase('users', [\n 'username' => 'Foobar',\n 'email' => '[email protected]'\n ]);\n $this->assertViewHas('models');\n }", "function _updateItemAfterPurchase($data, $type = null)\r\n\t{\r\n\t\t$conditions = $item_user_conditions = $updation = array();\r\n\t\t$conditions['Item.id'] = $data['item_id'];\r\n\t\t// Getting Purchased & Commission Amounts //\r\n\t\t$item = $this->find('first', array(\r\n\t\t\t'conditions' => $conditions,\r\n\t\t\t'fields' => array(\r\n\t\t\t\t'Item.bonus_amount',\r\n\t\t\t\t'Item.commission_percentage',\r\n\t\t\t) ,\r\n\t\t\t'recursive' => -1\r\n\t\t));\r\n\t\t$items = $this->ItemUser->find('all', array(\r\n\t\t\t'conditions' => array(\r\n\t\t\t\t'ItemUser.item_id' => $data['item_id'],\r\n\t\t\t\t'ItemUser.is_repaid' => 0,\r\n\t\t\t\t'ItemUser.is_canceled' => 0,\r\n\t\t\t) ,\r\n\t\t\t'fields' => array(\r\n\t\t\t\t'SUM(ItemUser.discount_amount) as total_purchased_amount',\r\n\t\t\t) ,\r\n\t\t\t'recursive' => -1\r\n\t\t));\r\n\t\t$items[0][0]['total_commission_amount'] = $item['Item']['bonus_amount'] + ($items[0][0]['total_purchased_amount'] * ($item['Item']['commission_percentage']/100));\r\n\t\t// Getting Charity //\r\n\t\t$item_user_conditions = array(\r\n\t\t\t'ItemUser.is_repaid' => 0,\r\n\t\t\t'ItemUser.is_canceled' => 0\r\n\t\t);\r\n\t\t$item_user_conditions['ItemUser.item_id'] = $data['item_id'];\r\n\t\t$item_users = $this->ItemUser->find('all', array(\r\n\t\t\t'conditions' => $item_user_conditions,\r\n\t\t\t'fields' => array(\r\n\t\t\t\t'SUM(ItemUser.charity_paid_amount) as total_charity_amount',\r\n\t\t\t\t'SUM(ItemUser.charity_seller_amount) as seller_charity_amount',\r\n\t\t\t\t'SUM(ItemUser.charity_site_amount) as site_charity_amount',\r\n\t\t\t\t'SUM(ItemUser.affiliate_commission_amount) as total_affiliate_amount',\r\n\t\t\t\t'SUM(ItemUser.referral_commission_amount) as total_referral_amount',\r\n\t\t\t\t'COUNT(ItemUser.id) as item_user_canceled_count',\r\n\t\t\t) ,\r\n\t\t\t'recursive' => -1,\r\n\t\t));\r\n\t\tif (!empty($type) && $type == 'cancel') {\r\n\t\t\t$item_user_conditions = array();\r\n\t\t\t$item_user_conditions['ItemUser.item_id'] = $data['item_id'];\r\n\t\t\t$item_user_conditions['OR'] = array(\r\n\t\t\t\t'ItemUser.is_repaid' => 1,\r\n\t\t\t\t'ItemUser.is_canceled' => 1\r\n\t\t\t);\r\n\t\t\t$item_user_canceled = $this->ItemUser->find('all', array(\r\n\t\t\t\t'conditions' => $item_user_conditions,\r\n\t\t\t\t'fields' => array(\r\n\t\t\t\t\t'SUM(ItemUser.discount_amount) as total_sales_lost_amount',\r\n\t\t\t\t) ,\r\n\t\t\t\t'recursive' => -1,\r\n\t\t\t));\r\n\t\t\t$updation['Item.total_sales_lost_amount'] = (!empty($item_user_canceled[0][0]['total_sales_lost_amount']) ? $item_user_canceled[0][0]['total_sales_lost_amount'] : '0.00');\r\n\t\t\t$updation['Item.item_user_canceled_count'] = (!empty($item_user_canceled[0][0]['item_user_canceled_count']) ? $item_user_canceled[0][0]['item_user_canceled_count'] : '0');\r\n\t\t}\r\n\t\t$update_model = array(\r\n\t\t\t'Item.id' => $data['item_id']\r\n\t\t);\r\n\t\t$updation['Item.total_purchased_amount'] = (!empty($items[0][0]['total_purchased_amount']) ? $items[0][0]['total_purchased_amount'] : '0.00');\r\n\t\t$updation['Item.total_commission_amount'] = (!empty($items[0][0]['total_commission_amount']) ? $items[0][0]['total_commission_amount'] : '0.00');\r\n\t\t$updation['Item.total_charity_amount'] = (!empty($item_users[0][0]['total_charity_amount']) ? $item_users[0][0]['total_charity_amount'] : '0.00');\r\n\t\t$updation['Item.seller_charity_amount'] = (!empty($item_users[0][0]['seller_charity_amount']) ? $item_users[0][0]['seller_charity_amount'] : '0.00');\t\t\r\n\t\t$updation['Item.site_charity_amount'] = (!empty($item_users[0][0]['site_charity_amount']) ? $item_users[0][0]['site_charity_amount'] : '0.00');\t\t\r\n\t\t$updation['Item.total_merchant_earned_amount'] = ($updation['Item.total_purchased_amount'] - ($updation['Item.total_commission_amount'] + $updation['Item.seller_charity_amount']));\r\n\t\t$updation['Item.total_affiliate_amount'] = (!empty($item_users[0][0]['total_affiliate_amount']) ? $item_users[0][0]['total_affiliate_amount'] : '0.00');\r\n\t\t$updation['Item.total_referral_amount'] = (!empty($item_users[0][0]['total_referral_amount']) ? $item_users[0][0]['total_referral_amount'] : '0.00');\r\n\t\tif (!empty($updation) && !empty($update_model)) {\r\n\t\t\t$this->updateAll($updation, $update_model);\r\n\t\t}\r\n\t}", "public function testUpdate()\n\t{\n\t\t$params = $this->setUpParams();\n\t\t$params['title'] = 'some tag';\n\t\t$params['slug'] = 'some-tag';\n\t\t$response = $this->call('PUT', '/'.self::$endpoint.'/'.$this->obj->id, $params);\n\t\t$this->assertEquals(200, $response->getStatusCode());\n\t\t$result = $response->getOriginalContent()->toArray();\n\n\t\t// tes apakah hasil return adalah yang sesuai\n\t\tforeach ($params as $key => $val) {\n\t\t\t$this->assertArrayHasKey($key, $result);\n\t\t\tif (isset($result[$key])&&($key!='created_at')&&($key!='updated_at'))\n\t\t\t\t$this->assertEquals($val, $result[$key]);\n\t\t}\n\n\t\t// tes tak ada yang dicari\n\t\t$response = $this->call('GET', '/'.self::$endpoint.'/696969', $params);\n\t\t$this->assertEquals(500, $response->getStatusCode());\n\t}", "public function testModifyData() {\n // Add\n $userId = $this->json('POST', self::USERS_RESOURCE . \"/\", ['name' => 'Alex'])\n ->assertResponseStatus(200)\n ->seeJsonStructure(['id', 'name'])\n ->decodeResponseJson()['id'];\n\n // Check\n $this->json('GET', self::USERS_RESOURCE . \"/$userId\")\n ->seeJson([\n 'id' => $userId,\n 'name' => 'Alex'\n ]);\n $this->seeInDatabase(self::USERS_TABLE, [\n 'name' => 'Alex'\n ]);\n\n // Modify\n $this->json('PATCH', self::USERS_RESOURCE . \"/$userId\", ['name' => 'Peter'])\n ->assertResponseStatus(200)\n ->seeJson(['name' => 'Peter']);\n\n // Check\n $this->json('GET', self::USERS_RESOURCE . \"/$userId\")\n ->seeJson(['name' => 'Peter']);\n $this->seeInDatabase(self::USERS_TABLE, [\n 'name' => 'Peter'\n ]);\n\n // Delete\n $this->json('DELETE', self::USERS_RESOURCE . \"/$userId\")\n ->assertResponseStatus(204);\n\n // Check\n $this->get(self::USERS_RESOURCE . \"/$userId\")->assertResponseStatus(404);\n $this->notSeeInDatabase(self::USERS_TABLE, ['id' => $userId]);\n }", "public function testSuccessfullUpdateTodo()\n {\n $todoForUpdate = Todo::where('uuid', 'a207329e-6264-4960-a377-5b6dc8995d19')->first();\n\n $response = $this->json('PUT', '/todos/a207329e-6264-4960-a377-5b6dc8995d19', [\n 'content' => 'updated content',\n 'is_active' => true,\n ], [\n 'apikey' => $this->apiAuth['uuid'],\n 'Authorization' => 'Bearer ' . $this->token,\n ]);\n\n $response->assertResponseStatus(200);\n $response->seeJsonStructure([\n 'data' => [\n 'content',\n 'is_active',\n 'is_completed',\n 'created_at',\n 'updated_at',\n ],\n ]);\n $response->seeJson([\n 'content' => 'updated content',\n 'is_active' => true,\n 'is_completed' => false,\n 'id' => 'a207329e-6264-4960-a377-5b6dc8995d19',\n ]);\n $response->seeInDatabase('todos', [\n 'uuid' => 'a207329e-6264-4960-a377-5b6dc8995d19',\n 'content' => 'updated content',\n 'is_active' => true,\n 'is_completed' => false,\n ]);\n }", "function test_updateName()\n {\n //Arrange\n $title = \"Whimsical Fairytales...and other stories\";\n $genre = \"Fantasy\";\n $test_book = new Book($title, $genre);\n $test_book->save();\n\n $column_to_update = \"title\";\n $new_info = \"Generic Fantasy Novel\";\n\n //Act\n $test_book->update($column_to_update, $new_info);\n\n //Assert\n $result = Book::getAll();\n $this->assertEquals(\"Generic Fantasy Novel\", $result[0]->getTitle());\n }", "function vitero_grade_item_update(stdClass $vitero) {\n}", "public function update(): void\n {\n // Update quality\n if ($this->item->sell_in > 10) {\n $this->item->quality++;\n }\n\n if ($this->item->sell_in <= 10 && $this->item->sell_in > 5) {\n $this->item->quality += 2;\n }\n\n if ($this->item->sell_in <= 5 && $this->item->sell_in > 0) {\n $this->item->quality += 3;\n }\n\n // Update Sell in\n $this->updateSellIn();\n\n if ($this->item->sell_in < 0) {\n $this->item->quality = 0;\n }\n\n $this->checkAndUpdateQualityByRange();\n }", "private function log_items( $items ) {\n\t\tif ( ! isset( $this->expected[ $items ] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$item_results = $this->get_successful_updates( $items );\n\n\t\tif ( is_array( $this->expected[ $items ] ) ) {\n\t\t\tforeach ( $this->expected[ $items ] as $item ) {\n\t\t\t\tif ( in_array( $item, $item_results ) ) {\n\t\t\t\t\t$this->success[ $items ][] = $item;\n\t\t\t\t} else {\n\t\t\t\t\t$this->failed[ $items ][] = $item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function testGetHit()\n {\n $key = \"unique\";\n $item = $this->cache->getItem($key);\n $item->set(\"content\");\n\n $res = $item->get();\n $this->assertNull($res, \"Should not be able to find a value\");\n\n $this->cache->save($item);\n $res = $item->get();\n $this->assertTrue(!is_null($res), \"Should have a value\");\n }", "public function updateItem($item) {\n\t\tif(isset($item['id'])){\n\t\t\t$id = $item['id'];\n\t\t\tunset($item['id']);\n\t\t\t\n\t\t\t$params['set'] =$item;\n\t\t\t$params['condition'] = array('id' => $id); \n\t\t\treturn tdb::update(self::$tablename,$params);\n\t\t}\n\t\treturn false;\n\t}", "public function testJobUpdate()\n {\n\n }", "public function updateData($data_obj, $item_id)\n {\n\t\t$em = $this->controller_obj->getDoctrine()->getManager();\n\t\t$item = $em->getRepository(\"WebManagementBundle:location\")->find($item_id);\n\t\t$item->setLatitude($data_obj->getLatitude());\n\t\t$item->setLongitude($data_obj->getLongitude());\n\t\t$address_repo = $em->getRepository(\"WebManagementBundle:address\");\n\t\t$address = $address_repo->find($data_obj->getSelectAddress());\n\t\t$item->setAddress($address);\n\t\t$item->setDescription($data_obj->getDescription());\t\t\n\t\t$em->flush();\n\t}", "public function testUpdateServiceData()\n {\n\n }", "public function testAggregatorItemFields() {\n $feed = Feed::create([\n 'title' => 'Drupal org',\n 'url' => 'https://www.drupal.org/rss.xml',\n ]);\n $feed->save();\n $item = Item::create([\n 'title' => 'Test title',\n 'fid' => $feed->id(),\n 'description' => 'Test description',\n ]);\n\n $item->save();\n\n // @todo Expand the test coverage in https://www.drupal.org/node/2464635\n\n $this->assertFieldAccess('aggregator_item', 'title', $item->getTitle());\n $this->assertFieldAccess('aggregator_item', 'langcode', $item->language()->getName());\n $this->assertFieldAccess('aggregator_item', 'description', $item->getDescription());\n }", "public function updateItem($item)\n {\n $stmt = $this->db->prepare(\"UPDATE `iProject_Items` SET `type_id`= :type,`url`= :url,`name`= :name,`img`= :img,`price`= :price,`old_price`= :old_price,`discount`= :disc, `flash_sale`= :fs, `date` = NOW() WHERE `item_id` = :id\");\n $stmt->bindParam(\":type\", $item->type);\n $stmt->bindParam(\":url\", $item->url);\n $stmt->bindParam(\":name\", $item->name);\n $stmt->bindParam(\":img\", $item->img);\n $stmt->bindParam(\":price\", $item->price);\n $stmt->bindParam(\":old_price\", $item->old_price);\n $stmt->bindParam(\":disc\", $item->discount);\n $stmt->bindParam(\":fs\", $item->flash_sale);\n $stmt->bindParam(\":id\", $item->id);\n\n return $stmt->execute();\n }", "public function test_delete_item(): void\n {\n // Arrange\n $user = UserFactory::createOne()->object();\n $collectionLevel1 = CollectionFactory::createOne(['owner' => $user]);\n $collectionLevel2 = CollectionFactory::createOne(['parent' => $collectionLevel1, 'owner' => $user]);\n $collectionLevel3 = CollectionFactory::createOne(['parent' => $collectionLevel2, 'owner' => $user]);\n $item = ItemFactory::createOne(['collection' => $collectionLevel3, 'owner' => $user]);\n\n // Act\n $item->remove();\n\n $this->refreshCachedValuesQueue->process();\n\n // Assert\n $this->assertSame(0, $collectionLevel1->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel2->getCachedValues()['counters']['items']);\n $this->assertSame(0, $collectionLevel3->getCachedValues()['counters']['items']);\n }", "public function testGetCollectionItemSupplies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function testSetGetQuantity()\n {\n $this->item->setQuantity(2);\n $this->assertEquals($this->item->getQuantity(), 2);\n }", "function test_update()\n {\n // Arrange\n $brand_name = \"Nike\";\n $test_brand = new Brand($brand_name);\n $test_brand->save();\n\n\n $brand_id = $test_brand->getId();\n $new_brand_name = \"Adidas\";\n\n // Act\n $test_brand->update($new_brand_name);\n\n // Assert\n $this->assertEquals($new_brand_name, $test_brand->getBrandName());\n }", "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public function testStoreUpdate1()\n {\n $user = factory(User::class)->create(['id' => 1]);\n $schedule = factory(Schedule::class)->create(['user_id' => $user->id]);\n $storedSlots = ['10:00', '13:00', '16:00', '19:00'];\n foreach ($storedSlots as $slot) {\n factory(Slot::class)->create([\n 'schedule_id' => $schedule->id,\n 'slot' => $slot\n ]);\n }\n $postData = [\n 'slots' => ['12:00', '15:00', '18:00']\n ];\n $this->actingAs($user)\n ->post(route('schedule.store'), $postData);\n\n $this->assertDatabaseHas('slots', ['slot' => '12:00'])\n ->assertDatabaseHas('slots', ['slot' => '15:00'])\n ->assertDatabaseHas('slots', ['slot' => '18:00'])\n ->assertDatabaseMissing('slots', ['slot' => '10:00'])\n ->assertDatabaseMissing('slots', ['slot' => '13:00'])\n ->assertDatabaseMissing('slots', ['slot' => '16:00'])\n ->assertDatabaseMissing('slots', ['slot' => '19:00']);\n }", "public function testAddExistingItem(): void {\n $item = new Item(1, \"test\", 20);\n $this->itemCollection->add($item, 2);\n\n $this->itemCollection->add($item, 10);\n\n $this->assertEquals(12, $this->itemCollection->getAmount($item));\n }" ]
[ "0.802914", "0.802914", "0.7608871", "0.7590203", "0.7343143", "0.71170396", "0.7102456", "0.7029999", "0.68421113", "0.67927736", "0.66719097", "0.66687524", "0.6665654", "0.6600952", "0.6540604", "0.6430916", "0.6396808", "0.6374967", "0.6312497", "0.62763983", "0.6236613", "0.62326825", "0.62269753", "0.62264377", "0.614298", "0.6134714", "0.6126822", "0.6114784", "0.60955983", "0.608303", "0.60623944", "0.60291743", "0.60261714", "0.60232407", "0.6021345", "0.6019586", "0.6012983", "0.6012827", "0.60078675", "0.59851795", "0.5981091", "0.5971453", "0.5932243", "0.5919738", "0.5909952", "0.5909169", "0.59086305", "0.5902689", "0.5899196", "0.5896293", "0.58928543", "0.5890985", "0.5888536", "0.58880436", "0.58793575", "0.5870548", "0.58696115", "0.5861946", "0.5833562", "0.58302045", "0.5822801", "0.58160466", "0.58125895", "0.5810758", "0.58079875", "0.57990116", "0.579881", "0.5793345", "0.5776186", "0.5764767", "0.57582104", "0.57566196", "0.5745959", "0.57389265", "0.5730895", "0.57280314", "0.572687", "0.57189727", "0.57154727", "0.5687077", "0.5686277", "0.5683521", "0.56795806", "0.56768316", "0.56766826", "0.5668623", "0.56672555", "0.56647533", "0.565899", "0.56553835", "0.5647998", "0.5647217", "0.56397325", "0.56386375", "0.5637534", "0.5635424", "0.5630417", "0.5628994", "0.5627992", "0.56258047", "0.56251746" ]
0.0
-1
Provides test data for unmap()
public function seedUnmap() { // Tag, C1, C2, $Expected, Exception return array( // OK array('tag', 1, 4, true), // OK without type array(null, 1, 4, true), // Bad request array('tag', 'foo', 5, false), // No type exception array(null, 1, 7, null, true), // No type exception array(null, 1, null, null, true) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIfMapsContainProperData()\n {\n $factory = new FileSystemMapFactory();\n $maps = $factory->create($this->data);\n $count = 0;\n\n foreach ($this->data as $name => $mapData) {\n /** @var FileSystemMap $map */\n $map = $maps[$count];\n\n $this->assertEquals($this->data[$name]['src'], $map->getSource());\n $this->assertEquals($this->data[$name]['dst'], $map->getDestination());\n\n if (isset($this->data['client'])) {\n $this->assertEquals($this->data['client'], $map->getClient());\n }\n\n $this->assertEquals($name, $map->getName());\n\n $count++;\n }\n }", "public function tearDown()\n {\n // delete your instance\n OGR_DS_Destroy($this->hSrcDataSource);\n\n delete_directory($this->strPathToOutputData);\n\n unset($this->strPathToOutputData);\n unset($this->strTmpDumpFile);\n unset($this->strPathToData);\n unset($this->strPathToStandardData);\n unset($this->bUpdate);\n unset($this->hOGRSFDriver);\n unset($this->hLayer);\n unset($this->iSpatialFilter);\n unset($this->hSrcDataSource);\n }", "abstract protected function unSerializeData();", "public function test2()\n {\n $rows = $this->dataLayer->tstTestMap1(0);\n $this->assertInternalType('array', $rows);\n $this->assertCount(0, $rows);\n }", "abstract protected function getTestData() : array;", "public function testOffsetUnset()\n\t{\n\t\tunset($this->instance[2]);\n\n\t\t$this->assertNull($this->instance[2]);\n\t}", "protected function tearDown()\n {\n $this->testData = null;\n parent::tearDown();\n }", "public function getDataMapper() {}", "public function testGetOffset(): void\n {\n $model = ProcessMemoryMap::load([\n \"offset\" => 46290,\n ], $this->container);\n\n $this->assertSame(46290, $model->getOffset());\n }", "public function testMap() {\n $data = array(\n 'foo' => 'bar',\n 'boolean' => true,\n 'null' => null,\n 'array' => array(),\n 'number' => 123\n );\n\n $this->assertEquals(array(\n 'foo' => 'BAR',\n 'boolean' => true,\n 'null' => null,\n 'array' => array(),\n 'number' => 123\n ), Hash::map($data, 'strtoupper'));\n\n $this->assertEquals(array(\n 'foo' => 0,\n 'boolean' => 1,\n 'null' => 0,\n 'array' => array(),\n 'number' => 123\n ), Hash::map($data, 'intval'));\n\n $this->assertEquals(array(\n 'foo' => 'string',\n 'boolean' => 'true',\n 'null' => 'null',\n 'array' => array(),\n 'number' => 'number'\n ), Hash::map($data, function($value) {\n if (is_numeric($value)) {\n return 'number';\n } elseif (is_bool($value)) {\n return $value ? 'true' : 'false';\n } elseif (is_null($value)) {\n return 'null';\n } elseif (is_string($value)) {\n return 'string';\n } else {\n return $value;\n }\n }));\n }", "public function testOffsetUnset()\n {\n $struct = $this->_newStruct();\n $this->assertTrue($struct->offsetExists('foo'));\n $struct->offsetUnset('foo');\n $this->assertFalse($struct->offsetExists('foo'));\n }", "public function setUp()\n {\n $this->strPathToOutputData = create_temp_directory(__CLASS__);\n $this->strTmpDumpFile = \"DumpFile.tmp\";\n $this->strPathToData = test_data_path(\"andorra\", \"mif\", \"gis_osm_places_free_1.mif\");\n $this->strPathToStandardData = \"./data/testcase/\";\n $this->bUpdate = false;\n $this->iSpatialFilter[0] = 1.4; /*xmin*/\n $this->iSpatialFilter[1] = 42.4; /*ymin*/\n $this->iSpatialFilter[2] = 1.6; /*xmax*/\n $this->iSpatialFilter[3] = 42.6; /*ymax*/\n\n OGRRegisterAll();\n\n $this->hOGRSFDriver = OGRGetDriverByName(\"MapInfo File\");\n $this->assertNotNull(\n $this->hOGRSFDriver,\n \"Could not get MapInfo File driver\"\n );\n\n $this->hSrcDataSource = OGR_Dr_Open(\n $this->hOGRSFDriver,\n $this->strPathToData,\n $this->bUpdate\n );\n $this->assertNotNull(\n $this->hSrcDataSource,\n \"Could not open datasource \" . $this->strPathToData\n );\n\n $this->hLayer = OGR_DS_GetLayer($this->hSrcDataSource, 0);\n $this->assertNotNull($this->hLayer, \"Could not open source layer\");\n }", "protected function tearDown()\n {\n $this->regular1 = null;\n $this->regular2 = null;\n $this->rental1 = null;\n $this->rental2 = null;\n }", "protected function tearDown() {\n $this->osapiCollection = null;\n $this->list = null;\n parent::tearDown();\n }", "public function tearDown(): void\n {\n $this->schema($this->schemaName)->drop('users');\n $this->schema($this->schemaName)->drop('emails');\n $this->schema($this->schemaName)->drop('phones');\n $this->schema($this->schemaName)->drop('role_users');\n $this->schema($this->schemaName)->drop('roles');\n $this->schema($this->schemaName)->drop('permission_roles');\n $this->schema($this->schemaName)->drop('permissions');\n $this->schema($this->schemaName)->drop('tasks');\n $this->schema($this->schemaName)->drop('locations');\n $this->schema($this->schemaName)->drop('assignments');\n $this->schema($this->schemaName)->drop('jobs');\n\n Relation::morphMap([], false);\n\n parent::tearDown();\n }", "public function unFilterData($type, $data, $key = null)\n {\n $tmp = unserialize($data, ['allowed_classes' => false]);\n if ($tmp === false) {\n $tmp = unserialize(utf8_decode($data), ['allowed_classes' => false]);\n }\n if ($tmp === false) {\n return [];\n }\n if ($key !== null) {\n $tmp = $tmp[$key];\n }\n $map = $this->getMapping($type);\n if ($map === false) {\n return $tmp;\n }\n foreach ($map as $from => $to) {\n if (isset($tmp[$from])) {\n $tmp[$to] = $tmp[$from];\n unset($tmp[$from]);\n }\n }\n\n return $tmp;\n }", "public function readTestData()\n {\n return $this->testData->get();\n }", "public function testPreprocessingUnrotate()\n {\n }", "abstract public function getTestData(): array;", "protected function xxxtearDown(): void\n {\n // reduce memory usage\n\n // get all properties of self\n $refl = new \\ReflectionObject($this);\n foreach ($refl->getProperties() as $prop) {\n // if not phpunit related or static\n if (!$prop->isStatic() && 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) {\n // make accessible and set value to to free memory\n $prop->setAccessible(true);\n $prop->setValue($this, null);\n }\n }\n //echo 'post reduce memory usage: '.sprintf('%.2fM', memory_get_usage(true)/1024/1024);\n\n parent::tearDown();\n }", "public static function clear()\n {\n self::$map = array();\n }", "public function testDirtyUnset()\n {\n $data = new ArrayObject(\n array(\n 'foo' => 'bar'\n )\n );\n\n $this->assertArrayHasKey('foo', $data);\n $this->assertFalse($data->isDirty());\n unset($data['foo']);\n $this->assertTrue($data->isDirty());\n }", "private function mockedData()\n {\n $evens = [\n [3,9,10,6,7,8,1,5,2,4],\n [5,5,5,5],\n [4,5,5,3],\n [8,3,1,9,0,4]\n ];\n\n $odds = [\n [9,5,6],\n [0,5,7,8,4],\n [6,3,1,0,8,4,9]\n ];\n\n $invalids = [\n [],\n ['abcd_something_happenned'],\n ['a',5,'c',8],\n ['*','$','€'],\n [3,9,10,6,7,8,1,5,2,'*'],\n ];\n\n return (array) [\n 'evens' => $evens,\n 'odds' => $odds,\n 'invalids' => $invalids\n ];\n }", "protected function tearDown()\n {\n $this->_filter = null; \n }", "private function populateDummyTable() {}", "public function tearDown() {\n\t\tunset($this->_userInfo);\n\n\t\tparent::tearDown();\n\t}", "public function tearDown(){\n unset($this->user);\n unset($this->household);\n unset($this->unit);\n unset($this->qty);\n unset($this->category);\n unset($this->food);\n unset($this->ingredient);\n unset($this->recipe);\n unset($this->meal);\n unset($this->groceryItem);\n\n unset($this->userFty);\n unset($this->householdFty);\n unset($this->unitFty);\n unset($this->qtyFty);\n unset($this->categoryFty);\n unset($this->foodFty);\n unset($this->ingredientFty);\n unset($this->recipeFty);\n unset($this->mealFty);\n unset($this->groceryItemFty);\n }", "protected function tearDown()\n {\n $this->testDBConnector->clearDataFromTables();\n }", "public function testMap() {\n\t\t$array1 = array(1, 2, 3);\n\t\t$array2 = _::map($array1, function($value) {\n\t\t\treturn ($value * 2);\n\t\t});\n\t\t$this->assertEquals(2, $array2[0]);\n\t\t$this->assertEquals(4, $array2[1]);\n\t\t$this->assertEquals(6, $array2[2]);\n\n\t\t// test that we preserve keys\n\t\t$array1 = array('a' => 2, 'b' => 4, 'c' => 8);\n\t\t$array2 = _::map($array1, function($value) {\n\t\t\treturn ($value * $value);\n\t\t});\n\t\t$this->assertEquals(4, $array2['a']);\n\t\t$this->assertEquals(16, $array2['b']);\n\t\t$this->assertEquals(64, $array2['c']);\n\t}", "public function test1()\n {\n $map = $this->dataLayer->tstTestMap1(100);\n $this->assertInternalType('array', $map);\n $this->assertCount(3, $map);\n $this->assertEquals(1, $map['c1']);\n $this->assertEquals(2, $map['c2']);\n $this->assertEquals(3, $map['c3']);\n }", "public function testBuildMarshalMapNonArrayData(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $translate = $table->behaviors()->get('Translate');\n\n $map = $translate->buildMarshalMap($table->marshaller(), [], []);\n $entity = $table->newEmptyEntity();\n $result = $map['_translations']('garbage', $entity);\n $this->assertNull($result, 'Non-array should not error out.');\n $this->assertEmpty($entity->getErrors());\n $this->assertEmpty($entity->get('_translations'));\n }", "public function testMap2()\n\t{\n\t\tTestReflection::invoke($this->_state, 'set', 'content.type', 'tag');\n\t\t$a = TestReflection::invoke($this->_instance, 'map', 1, array(5), true);\n\t\t$this->assertEquals(true, $a);\n\n\t\tTestReflection::invoke($this->_state, 'set', 'tags.content_id', '1');\n\t\t$actual = TestReflection::invoke($this->_instance, 'getList');\n\n\t\t$this->assertEquals(1, count($actual));\n\t}", "public function tearDown()\n {\n foreach (array_keys($_SERVER) as $key) {\n if (strpos($key, 'Shib') !== false || strpos($key, 'HTTP_SHIB') !== false) {\n unset($_SERVER[$key]);\n }\n }\n // And other keys we set\n $keys = array(\n 'HTTP_HOST',\n 'REQUEST_URI',\n 'REMOTE_USER',\n 'eppn',\n 'HTTP_EPPN',\n 'uid',\n 'HTTP_UID',\n 'multiAttribute',\n 'HTTP_MULTIATTRIBUTE'\n );\n foreach ($keys as $key) {\n if (isset($_SERVER[$key])) unset($_SERVER[$key]);\n }\n }", "public function testProjectAssignmentsUnarchive()\n {\n }", "public function tearDown()\n {\n TestvfsStreamWrapper::unregister();\n }", "public function testEmptyObfuscation(): void\n {\n $obfuscator = new Obfuscator();\n $data = [\n 'foo' => 'bar',\n 'bar' => 'baz'\n ];\n static::assertSame($data, $obfuscator->obfuscate($data));\n }", "public function testDataReachesEndpoint(): void\n {\n // See tests/EndpointFixture\n $req = $this->getMockRequestWithUriPath('/user/5', 'POST');\n $body = $req->getBody();\n $body->write('shortstring=aBcD');\n $req = $req->withBody($body);\n /** @var ServerRequestInterface */\n $req = $req->withHeader('Content-type', 'application/x-www-form-urlencoded');\n\n $response = (new Dispatcher())\n ->setEndpointList($this->getEndpointListForFixture())\n ->dispatch($req);\n $this->checkResponse($response, 200);\n $data = json_decode((string)$response->getBody(), true);\n $this->assertSame(\n [\n 'id' => 5,\n 'shortstring' => 'aBcD',\n ],\n $data,\n 'The data did not reach the endpoint'\n );\n }", "protected function tearDown()\n {\n Zend_Registry::_unsetInstance();\n }", "abstract public function map($data);", "public function testGetOffsetDataProvider()\n {\n return [\n [1, '/some/file/path/000/000/001/some_style/some_file.jpg', 27],\n [1, '/some/file/path/1/some_style/some_file.jpg', 17],\n [200, '/some/file/path/000/000/200/some_style/some_file.jpg', 27],\n [200, '/some/file/path/200/some_style/some_file.jpg', 19],\n ['abcdef123', '/some/file/path/abc/def/123/some_style/some_file.jpg', 27],\n ['abcdef123', '/some/file/path/abcdef123/some_style/some_file.jpg', 25]\n ];\n }", "public function testGetData() {\r\n $action = $this->_action;\r\n $this->assertEquals(null, $action->getData());\r\n\r\n $action->setData(array());\r\n $this->assertEquals(array(), $action->getData());\r\n }", "public function tearDown()\n {\n unset($this->commonDataClassRepository);\n }", "public function testGetData()\n {\n $this->getWeather->setUrl();\n $result = $this->getWeather->getData();\n\n $this->assertIsArray($result);\n }", "public function testDestroyData()\n {\n $store = new Storage(TESTING_STORE);\n\n // get id from our first item\n $id = $store->read()[0]['_id'];\n\n // destroy the data by id\n $store->destroy($id);\n\n // get the rest of data after destroy\n $rest_of_items = $store->read();\n\n // since our data is only one (no data left) the results must be === 0\n $this->assertEquals(0, count($rest_of_items));\n }", "public function youCanOmitData()\n {\n // Arrange...\n $meta = [\n 'foo' => 'bar'\n ];\n\n // Act...\n $response = $this->responder->success( 200, $meta );\n\n // Assert...\n $this->assertEquals( $response->getStatusCode(), 200 );\n $this->assertContains( $meta, $response->getData( true ) );\n }", "public function testDestroyUnauthicatedAccess(): void { }", "public function testOffsetUnset()\n {\n $bag = new ArrayAttributeBag('foobar_storageKey');\n $bag->set('foo', 'bar');\n\n unset($bag['foo']);\n\n $this->assertFalse($bag->has('foo'));\n }", "protected function tearDown()\n {\n $this->arrayAdapter = null;\n parent::tearDown();\n }", "public function testIndexMappingDump()\n {\n $commandTester = $this->getCommandTester();\n $index = $this->getIndex(DummyDocument::class);\n $index->dropIndex();\n\n $this->assertFalse($index->indexExists());\n $commandTester->execute(\n [\n 'command' => IndexCreateCommand::NAME,\n '--dump' => null,\n ]\n );\n\n $this->assertContains(\n json_encode(\n $index->getIndexSettings()->getIndexMetadata(),\n JSON_PRETTY_PRINT\n ),\n $commandTester->getDisplay()\n );\n $this->assertFalse($index->indexExists());\n }", "public function tearDown() {\n $this->transformation = null;\n }", "public function tearDown() {\n $this->transformation = null;\n }", "public function tearDown() {\n $this->transformation = null;\n }", "static public function tearDown() {\n\t\tself::clearMounts();\n\t\tself::$defaultInstance = null;\n\t}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "public function testGetSyncTZFromOffsets()\n {\n foreach ($this->_offsets as $tz => $offsets) {\n $blob = Horde_ActiveSync_Timezone::getSyncTZFromOffsets($offsets);\n $this->assertEquals($this->_packed[$tz], $blob);\n }\n }", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "protected function tearDown() {}", "public function tearDown() {\n $this->resource = null;\n $this->response = null;\n $this->database = null;\n $this->storage = null;\n $this->event = null;\n $this->manager = null;\n }", "public function objectIdentifierExposureTestData() {}", "abstract protected function mapData($data, $tableObject);", "public function tearDown(): void\n {\n if (file_exists(static::$in)) {\n unlink(static::$in);\n }\n if (file_exists(static::$ou)) {\n unlink(static::$ou);\n }\n }", "public function test_next_map()\n {\n $this->assertSame('Driel Single 01', $this->postScriptumServer->nextMap());\n }", "public function tearDown()\n {\n Resistance::reset();\n }", "protected function tearDown(): void\n {\n $this->autorizacao = null;\n $this->transacao = null;\n $this->object = null;\n }", "public function tearDown() {\n\t\tparent::tearDown();\n\t\tunset($this->Event, $this->EventClass);\n\t\tunset($this->ObjectEvent, $this->ControllerEvent, $this->ModelEvent, $this->ViewtEvent);\n\t\tunset($this->ModelObject, $this->ViewObject, $this->ControllerObject);\n\t}", "public function setUp()\n\t{\t\t\n\t\t$this->postMapper = phpDataMapper_TestHelper::mapper('Blogs', 'PostMapper');\n\t\t$this->dogMapper = phpDataMapper_TestHelper::mapper('Dogs', 'DogMapper');\n\t}", "protected function tearDown()\n {\n $this->dataCollector = null;\n parent::tearDown();\n }", "public function tearDown() {\n $this->container = null;\n $this->model = null;\n $this->request = null;\n $this->response = null;\n $this->responseHeaders = null;\n $this->responseWriter = null;\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "protected function tearDown()\r\n {\r\n if ($this->object->isRegistered('null')) {\r\n $this->object->unregisterWrapper('null');\r\n }\r\n }", "public function unpopulate();", "protected function tearDown(): void\n {\n DirectoryEmulator::useMemoryDirectory();\n\n parent::tearDown();\n }", "public function test_admin_change_map()\n {\n $this->assertTrue($this->postScriptumServer->adminChangeMap('Heelsum Single 01'));\n }", "public function tearDown()\n {\n return $this->cache->put(array_pop($this->keys), ob_get_clean());\n }", "public function test_overloading_unloaded_unset($data, $expected_error, $expected_result = NULL)\n\t{\n\t\tif ($expected_error)\n\t\t{\n\t\t\t// Skip non-valid data, as this is already tested in test_overloading_set_get_and_isset.\n\t\t\treturn;\n\t\t}\n\n\t\t$document = new Model_Blogpost;\n\n\t\t// Set and unset each piece of data in series\n\t\tforeach ($data as $field => $value)\n\t\t{\n\t\t\t// Just double-check that, in case of some mysterious magic, we haven't got any data\n\t\t\t$this->assertNull($document->$field);\n\n\t\t\t$document->set($field, $value);\n\n\t\t\t$this->assertEquals($document->get($field), $data[$field]);\n\n\t\t\t// And unset our data\n\t\t\tunset($document->$field);\n\n\t\t\t$this->assertNull($document->changed($field));\n\t\t}\n\t}", "public function testOffsetsFromSyncTZ()\n {\n foreach ($this->_packed as $tz => $blob) {\n $offsets = Horde_ActiveSync_Timezone::getOffsetsFromSyncTZ($blob);\n foreach ($this->_offsets[$tz] as $key => $value) {\n $this->assertEquals($value, $offsets[$key]);\n }\n }\n }", "public function testGeTaskVariableData()\n {\n }", "public function testIndexGetMapping(): void\n {\n $index = $this->_createIndex();\n $mappings = new Mapping([\n 'id' => ['type' => 'integer', 'store' => true],\n 'email' => ['type' => 'text'],\n 'username' => ['type' => 'text'],\n 'test' => ['type' => 'integer'],\n ]);\n\n $index->setMapping($mappings);\n $index->refresh();\n $indexMappings = $index->getMapping();\n\n $this->assertEquals('integer', $indexMappings['properties']['id']['type']);\n $this->assertEquals(true, $indexMappings['properties']['id']['store']);\n $this->assertEquals('text', $indexMappings['properties']['email']['type']);\n $this->assertEquals('text', $indexMappings['properties']['username']['type']);\n $this->assertEquals('integer', $indexMappings['properties']['test']['type']);\n }", "protected function tearDown(): void\n {\n parent::tearDown();\n\n HotSwap::flush();\n }", "protected function _tearDown( )\n {\n }", "public function testCacheCleanup(){\n\n $this->initCache();\n\n // Cleanup all previously set values\n $this->cache->clear();\n $this->cache->save();\n $this->assertEmpty($this->cache->get('test_var'));\n }", "protected function _prepareData($data)\n {\n foreach ($this->_mapAttributes as $attributeAlias => $attributeCode) {\n if (isset($data[$attributeAlias])) {\n $data[$attributeCode] = $data[$attributeAlias];\n unset($data[$attributeAlias]);\n }\n }\n return $data;\n }", "protected function tearDown(): void\n\t{\n\t\tglobal $modSettings;\n\n\t\t// remove temporary test data\n\t\tunset($modSettings);\n\t}", "abstract protected function report_to_array_mapping();", "public function testFilter() {\n $data = $this->expanded;\n\n $match1 = $data;\n $match2 = $data;\n unset($match1['empty'], $match2['empty'], $match1['one']['two']['three']['false'], $match1['one']['two']['three']['null']);\n\n $this->assertEquals($match1, Hash::filter($data));\n $this->assertEquals($match2, Hash::filter($data, false));\n\n $data = array(\n 'true' => true,\n 'false' => false,\n 'null' => null,\n 'zero' => 0,\n 'stringZero' => '0',\n 'empty' => array(),\n 'array' => array(\n 'false' => false,\n 'null' => null,\n 'empty' => array()\n )\n );\n\n $this->assertEquals(array(\n 'true' => true,\n 'zero' => 0,\n 'stringZero' => '0'\n ), Hash::filter($data));\n }", "private function testMirrors(){\n \n while(list($idx,$val)= each($this->t_mirrors)){\n\t\tif(!$this->ping(str_replace(\"http://\", \"\", $this->t_mirrors[$idx]), 80, 10)){\n unset($this->t_mirrors[$idx]);\n }else{\n $mirInUse=array();\n $mirInUse[]=$this->t_mirrors[$idx];\n $this->t_mirrors=$mirInUse;\n //var_dump($this->t_mirrors);\n return;\n }\n }\n }", "public function testMappingCanBeSet()\n {\n $userService = new UserService($this->db);\n $mapping = array(\n 'first_name' => 'firstName',\n 'last_name' => 'lastName'\n );\n $userService->setMapping($mapping);\n $retrieved = $userService->getMapping();\n $this->assertSame($mapping, $retrieved);\n }", "function tearDown() {\n // delete your instance\n unset($this->layer0);\n }", "public function provideTestData()\n {\n return [\n // Variant 1\n ['6100272324', true],\n ['6100273479', true],\n\n ['6100272885', false],\n ['6100273377', false],\n ['6100274012', false],\n\n // Variant 2\n ['5700000000', true],\n ['5700000001', true],\n ['5799999998', true],\n ['5799999999', true],\n\n ['5699999999', false],\n ['5800000000', false],\n ];\n }" ]
[ "0.5596077", "0.5259028", "0.5095366", "0.5088351", "0.50788933", "0.50708765", "0.50271577", "0.5004879", "0.49857974", "0.497552", "0.49609914", "0.49255309", "0.49027058", "0.48817956", "0.4862551", "0.48444387", "0.48396802", "0.48208186", "0.4818125", "0.48043028", "0.47992095", "0.4789506", "0.47855487", "0.47739744", "0.47575173", "0.47413066", "0.4727298", "0.47157854", "0.4706045", "0.4705996", "0.47055775", "0.4701691", "0.4693752", "0.4684223", "0.4675437", "0.46617836", "0.46554503", "0.46546036", "0.46463752", "0.46431422", "0.464264", "0.46405223", "0.4637862", "0.4637051", "0.4635256", "0.46334568", "0.46318853", "0.46287313", "0.46227652", "0.46220377", "0.46220377", "0.46220377", "0.46187848", "0.46155635", "0.46155635", "0.46155635", "0.46152353", "0.46141943", "0.46141943", "0.46141943", "0.46141943", "0.46140432", "0.46140432", "0.46140432", "0.46140432", "0.46140432", "0.46140432", "0.46140432", "0.46106517", "0.4608635", "0.46084768", "0.46039382", "0.45955467", "0.45953402", "0.45943785", "0.45831618", "0.45808274", "0.45763096", "0.45727935", "0.45710033", "0.45708707", "0.45687956", "0.4560186", "0.45516717", "0.45502576", "0.4546193", "0.45461646", "0.4544703", "0.4543746", "0.45395404", "0.45376694", "0.45353132", "0.45344424", "0.45308122", "0.45300353", "0.4526326", "0.4524206", "0.45187247", "0.4513873", "0.4512785" ]
0.5626551
0
Provides test data for map()
public function seedMap() { // Tag, C1, C2, $Expected, Exception return array( // Exception array(null, null, null, null, true), array('tag', 2, array(4), true), array('tag', 2, array('foo'), false), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test1()\n {\n $map = $this->dataLayer->tstTestMap1(100);\n $this->assertInternalType('array', $map);\n $this->assertCount(3, $map);\n $this->assertEquals(1, $map['c1']);\n $this->assertEquals(2, $map['c2']);\n $this->assertEquals(3, $map['c3']);\n }", "public function testMap() {\n $data = array(\n 'foo' => 'bar',\n 'boolean' => true,\n 'null' => null,\n 'array' => array(),\n 'number' => 123\n );\n\n $this->assertEquals(array(\n 'foo' => 'BAR',\n 'boolean' => true,\n 'null' => null,\n 'array' => array(),\n 'number' => 123\n ), Hash::map($data, 'strtoupper'));\n\n $this->assertEquals(array(\n 'foo' => 0,\n 'boolean' => 1,\n 'null' => 0,\n 'array' => array(),\n 'number' => 123\n ), Hash::map($data, 'intval'));\n\n $this->assertEquals(array(\n 'foo' => 'string',\n 'boolean' => 'true',\n 'null' => 'null',\n 'array' => array(),\n 'number' => 'number'\n ), Hash::map($data, function($value) {\n if (is_numeric($value)) {\n return 'number';\n } elseif (is_bool($value)) {\n return $value ? 'true' : 'false';\n } elseif (is_null($value)) {\n return 'null';\n } elseif (is_string($value)) {\n return 'string';\n } else {\n return $value;\n }\n }));\n }", "public function testIfMapsContainProperData()\n {\n $factory = new FileSystemMapFactory();\n $maps = $factory->create($this->data);\n $count = 0;\n\n foreach ($this->data as $name => $mapData) {\n /** @var FileSystemMap $map */\n $map = $maps[$count];\n\n $this->assertEquals($this->data[$name]['src'], $map->getSource());\n $this->assertEquals($this->data[$name]['dst'], $map->getDestination());\n\n if (isset($this->data['client'])) {\n $this->assertEquals($this->data['client'], $map->getClient());\n }\n\n $this->assertEquals($name, $map->getName());\n\n $count++;\n }\n }", "public function testMap() {\n\t\t$array1 = array(1, 2, 3);\n\t\t$array2 = _::map($array1, function($value) {\n\t\t\treturn ($value * 2);\n\t\t});\n\t\t$this->assertEquals(2, $array2[0]);\n\t\t$this->assertEquals(4, $array2[1]);\n\t\t$this->assertEquals(6, $array2[2]);\n\n\t\t// test that we preserve keys\n\t\t$array1 = array('a' => 2, 'b' => 4, 'c' => 8);\n\t\t$array2 = _::map($array1, function($value) {\n\t\t\treturn ($value * $value);\n\t\t});\n\t\t$this->assertEquals(4, $array2['a']);\n\t\t$this->assertEquals(16, $array2['b']);\n\t\t$this->assertEquals(64, $array2['c']);\n\t}", "public function test2()\n {\n $rows = $this->dataLayer->tstTestMap1(0);\n $this->assertInternalType('array', $rows);\n $this->assertCount(0, $rows);\n }", "public function testMap()\n {\n $collection = $this->collection->map(function($value, $key) {\n return 2 * $value;\n });\n\n $this->assertAttributeEquals([2,4,6], 'elements', $collection);\n $this->assertAttributeEquals([1,2,3], 'elements', $this->collection);\n }", "abstract protected function getTestData() : array;", "abstract public function getTestData(): array;", "abstract public function map($data);", "public function getDataMapper() {}", "function test_getMapById() {\r\n\t\t$myArray= MemberClassesDB::getMap('memberClassId', 'memberClassName');\r\n\t\t$this->assertEqual($myArray['1'], \"reader\",\r\n\t\t\t\t\"Should return reader for key of 1 but returned \".$myArray['1']);\r\n\t\t$this->assertEqual($myArray['2'], 'nosher',\r\n\t\t\t\t\"Should return nosher for key of 2 but returned \".$myArray['2']);\r\n\t}", "public function testMap2()\n\t{\n\t\tTestReflection::invoke($this->_state, 'set', 'content.type', 'tag');\n\t\t$a = TestReflection::invoke($this->_instance, 'map', 1, array(5), true);\n\t\t$this->assertEquals(true, $a);\n\n\t\tTestReflection::invoke($this->_state, 'set', 'tags.content_id', '1');\n\t\t$actual = TestReflection::invoke($this->_instance, 'getList');\n\n\t\t$this->assertEquals(1, count($actual));\n\t}", "protected abstract function map();", "public function provideTestData()\n {\n return [\n // variant one\n ['1197423162', true],\n ['1000000606', true],\n\n // variant one\n ['8137423260', false],\n ['600000606', false],\n ['51234309', false],\n\n // variant two\n ['1000000406', true],\n ['1035791538', true],\n ['1126939724', true],\n ['1197423460', true],\n\n // variant two\n ['1000000405', false],\n ['1035791539', false],\n ['8035791532', false],\n ['535791830', false],\n ['51234901', false],\n ];\n }", "private function testCollect() {\n $custom_data = array();\n\n // Collect all custom data provided by hook_insight_custom_data().\n $collections = \\Drupal::moduleHandler()->invokeAll('acquia_connector_spi_test');\n\n foreach ($collections as $test_name => $test_params) {\n $status = new TestStatusController();\n $result = $status->testValidate(array($test_name => $test_params));\n\n if ($result['result']) {\n $custom_data[$test_name] = $test_params;\n }\n }\n\n return $custom_data;\n }", "private function mockedData()\n {\n $evens = [\n [3,9,10,6,7,8,1,5,2,4],\n [5,5,5,5],\n [4,5,5,3],\n [8,3,1,9,0,4]\n ];\n\n $odds = [\n [9,5,6],\n [0,5,7,8,4],\n [6,3,1,0,8,4,9]\n ];\n\n $invalids = [\n [],\n ['abcd_something_happenned'],\n ['a',5,'c',8],\n ['*','$','€'],\n [3,9,10,6,7,8,1,5,2,'*'],\n ];\n\n return (array) [\n 'evens' => $evens,\n 'odds' => $odds,\n 'invalids' => $invalids\n ];\n }", "public function provideTestData()\n {\n return [\n ['9141405', true],\n ['1709107983', true],\n ['0122116979', true],\n ['0121114867', true],\n ['9030101192', true],\n ['9245500460', true],\n\n ['9141406', false],\n ['1709107984', false],\n ['0122116970', false],\n ['0121114868', false],\n ['9030101193', false],\n ['9245500461', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // Variant 1\n ['6100272324', true],\n ['6100273479', true],\n\n ['6100272885', false],\n ['6100273377', false],\n ['6100274012', false],\n\n // Variant 2\n ['5700000000', true],\n ['5700000001', true],\n ['5799999998', true],\n ['5799999999', true],\n\n ['5699999999', false],\n ['5800000000', false],\n ];\n }", "public function provideTestData()\n {\n return [\n // variant 1\n ['1016', true],\n ['26260', true],\n ['242243', true],\n ['242248', true],\n ['18002113', true],\n ['1821200043', true],\n ['1011', false],\n ['26265', false],\n ['18002118', false],\n ['6160000024', false],\n\n // variant 2\n ['1015', true],\n ['26263', true],\n ['242241', true],\n ['18002116', true],\n ['1821200047', true],\n ['3456789012', true],\n ['242249', false],\n ['1234567890', false],\n ];\n }", "public function setUp()\n\t{\t\t\n\t\t$this->postMapper = phpDataMapper_TestHelper::mapper('Blogs', 'PostMapper');\n\t\t$this->dogMapper = phpDataMapper_TestHelper::mapper('Dogs', 'DogMapper');\n\t}", "public function getTestIterationData()\n {\n $cases = [];\n\n // Case #0 Standard iterator.\n $cases[] = [\n [\n 'hits' => [\n 'total' => 1,\n 'hits' => [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ],\n ],\n [\n [\n '_type' => 'content',\n '_id' => 'foo',\n '_score' => 0,\n '_source' => ['header' => 'Test header'],\n ],\n ],\n ];\n\n return $cases;\n }", "public function testIfReturnsAllElements()\n {\n $factory = new FileSystemMapFactory();\n $result = $factory->create($this->data);\n\n $this->assertEquals(count($this->data), count($result));\n }", "public static function getMockData() {\n\n return [\n 'page' => 'http://redumbrella.com.ua',\n 'ip' => \"\".mt_rand(0,255).\".\".mt_rand(0,255).\".\".mt_rand(0,255).\".\".mt_rand(0,255),\n 'open' => time(),\n 'location' => [],\n 'close' => time() + mt_rand(0, 1000),\n 'language' => array_rand(['RU', 'UA', 'DE', 'US'], 1)[0],\n 'ua' => 'Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.212.0 Safari/532.0'\n ];\n }", "public function testGetData()\n {\n $this->getWeather->setUrl();\n $result = $this->getWeather->getData();\n\n $this->assertIsArray($result);\n }", "public function testMap($options = array()) {\n\t\treturn $this->_mapOptions('request', $options);\n\t}", "public function getTestData()\n {\n return [\n 'user_id' => 1,\n 'status' => 1,\n 'created_at' => '2016-01-21 15:00:00',\n 'updated_at' => '2016-01-21 18:00:00'\n ];\n }", "public function testData() {\n $subscription = $this->mockSubscription('[email protected]', (object) [\n 'fields' => [\n ['name' => 'FIRSTNAME'],\n ['name' => 'LASTNAME'],\n ],\n ]);\n\n // Test new item.\n list($cr, $api) = $this->mockProvider();\n $source1 = new ArraySource([\n 'firstname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source1);\n list($data, $fingerprint) = $cr->data($subscription, []);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n ], $data);\n\n // Test item with existing data.\n list($cr, $api) = $this->mockProvider();\n $source2 = new ArraySource([\n 'lastname' => 'test',\n ]);\n $cr->method('getSource')->willReturn($source2);\n list($data, $fingerprint) = $cr->data($subscription, $data);\n $this->assertEqual([\n 'FIRSTNAME' => 'test',\n 'LASTNAME' => 'test',\n ], $data);\n }", "public function unitTestDataProvider()\n {\n\n return [\n 'test1' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n\n 'test2' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc2>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL\n .'<abc2>'.PHP_EOL,\n ],\n\n 'test3' => [\n 'callback' => function (TagFav $fav) {\n $fav->add('<abc>');\n $fav->add('<abc>');\n },\n 'expected' =>\n '<abc>'.PHP_EOL,\n ],\n ];\n }", "public function DataForTestNonScalarsProvider()\n {\n $tests = array();\n $tests[] = array(array('do' => 're'));\n $tests[] = array((object) array('do' => 're'));\n\n return $tests;\n }", "function unit_map_function(&$data, $maps) {\n // idia symbash/paradoxh me to attendance_gradebook_activities_map_function()\n // des to ekei comment gia ta spasmena FKs\n list($document_map, $link_category_map, $link_map, $ebook_map, $section_map, $subsection_map, $video_map, $videolink_map, $video_category_map, $lp_learnPath_map, $wiki_map, $assignments_map, $exercise_map, $forum_map, $forum_topic_map, $poll_map) = $maps;\n if ($data['type'] == 'videolinks') {\n $data['type'] == 'videolink';\n }\n if (isset($data['course_weekly_view_id'])) {\n $data['unit_id'] = $data['course_weekly_view_id'];\n unset($data['unit_id']);\n }\n $type = $data['type'];\n if ($type == 'doc') {\n $data['res_id'] = @$document_map[$data['res_id']];\n } elseif ($type == 'linkcategory') {\n $data['res_id'] = @$link_category_map[$data['res_id']];\n } elseif ($type == 'link') {\n $data['res_id'] = @$link_map[$data['res_id']];\n } elseif ($type == 'ebook') {\n $data['res_id'] = @$ebook_map[$data['res_id']];\n } elseif ($type == 'section') {\n $data['res_id'] = @$section_map[$data['res_id']];\n } elseif ($type == 'subsection') {\n $data['res_id'] = @$subsection_map[$data['res_id']];\n } elseif ($type == 'description') {\n $data['res_id'] = intval($data['res_id']);\n } elseif ($type == 'video') {\n $data['res_id'] = @$video_map[$data['res_id']];\n } elseif ($type == 'videolink') {\n $data['res_id'] = @$videolink_map[$data['res_id']];\n } elseif ($type == 'videolinkcategory') {\n $data['res_id'] = @$video_category_map[$data['res_id']];\n } elseif ($type == 'lp') {\n $data['res_id'] = @$lp_learnPath_map[$data['res_id']];\n } elseif ($type == 'wiki') {\n $data['res_id'] = @$wiki_map[$data['res_id']];\n } elseif ($type == 'work') {\n if (isset($assignments_map[$data['res_id']])) {\n $data['res_id'] = @$assignments_map[$data['res_id']];\n } else {\n $data['res_id'] = $assignments_map[0];\n }\n } elseif ($type == 'exercise') {\n if (isset($exercise_map[$data['res_id']])) {\n $data['res_id'] = @$exercise_map[$data['res_id']];\n } else {\n $data['res_id'] = $exercise_map[0];\n }\n } elseif ($type == 'forum') {\n $data['res_id'] = @$forum_map[$data['res_id']];\n } elseif ($type == 'topic') {\n $data['res_id'] = @$forum_topic_map[$data['res_id']];\n } elseif ($type == 'poll') {\n $data['res_id'] = @$poll_map[$data['res_id']];\n }\n return true;\n}", "public function testIfMapBagContainsMaps()\n {\n $factory = new FileSystemMapFactory();\n $result = $factory->create($this->data);\n\n $this->assertContainsOnlyInstancesOf('\\SyncFS\\Map\\FileSystemMap', $result);\n }", "public function testMap()\n {\n $subTotalExBonus = $this->salaryRowRepository->getSubTotalPerDayExclBonusBySalaryId(1);\n $subTotalBonus = $this->salaryRowRepository->getSubTotalPerDayBonusBySalaryId(1);\n $subTotalInclBonus = $this->salaryRowRepository->getSubTotalPerDayInclBonusBySalaryId(1);\n\n $salary = SalaryModelMapper::toModelWithSubTotal(\n $this->salaryModel,\n $subTotalExBonus,\n $subTotalBonus,\n $subTotalInclBonus\n );\n\n $this->assertInstanceOf(Collection::class, $salary->getSalaryDays());\n $this->assertInstanceOf(SalaryDayModel::class, $salary->getSalaryDays()->first());\n }", "public function readTestData()\n {\n return $this->testData->get();\n }", "public function test_next_map()\n {\n $this->assertSame('Driel Single 01', $this->postScriptumServer->nextMap());\n }", "public function testWithObjectMap() : void {\n $bob = Record::fromName(\"bob\");\n $result = Result::fromResponse(\n Response::fromQueriedRecords(null, $bob),\n [Example::TYPE => Example::class]\n );\n\n $first = $result->first();\n $this->assertInstanceOf(Example::class, $first);\n $this->assertEquals($bob[\"Id\"], $first->Id);\n $this->assertEquals($bob[\"Name\"], $first->Name);\n }", "public function getmaps(){\n //Some maps to test\n $map0=array(\n array(\"#\",\"#\",\"#\",\"#\"));\n\n $map1=array(\n array(\"#\"),\n array(\"#\"),\n array(\"#\"),\n array(\"#\"),\n array(\"#\"));\n\n $map2=array(\n array(\"#\",\"#\"),\n array(\"#\",\"#\"));\n\n $map3=array(\n array(\"#\",\"#\",\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\",\"#\",\"#\"));\n\n $map4=array(\n array(\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\"));\n\n $map5=array(\n array(\"#\",\"#\",\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\",\"#\",\"#\"),\n array(\"#\",\"#\",\"#\",\"#\",\"#\"));\n\n return array($map0, $map1, $map2, $map3, $map4, $map5);\n }", "public function dataProviderTestInit()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n }", "public function testGenericPlusHashmap(): void\n {\n $this->assertEquals(\n $this->createHashmap($this->createString(), $this->createString()),\n $this->unify(\n $this->createGenericArray(),\n $this->createHashmap($this->createString(), $this->createString()),\n )\n );\n }", "public function test_current_map()\n {\n $this->assertSame('Heelsum Single 01', $this->postScriptumServer->currentMap());\n }", "public function testUseMapping()\n {\n $cfg = new Configuration();\n $cfg->setBaseDirectories($this->dirs);\n $cfg->setMapping(\"item\", ANAX_INSTALL_PATH . \"/test/config/test1.php\");\n $config = $cfg->load(\"item\");\n\n $this->assertInternalType(\"array\", $config);\n $this->assertArrayHasKey(\"file\", $config);\n $this->assertArrayHasKey(\"config\", $config);\n $this->assertArrayHasKey(\"key1\", $config[\"config\"]);\n $this->assertContains(\"value1\", $config[\"config\"]);\n }", "public function testIfReturnsMapBag()\n {\n $factory = new FileSystemMapFactory();\n $result = $factory->create($this->data);\n\n $this->assertInstanceOf('\\SyncFS\\Map\\MapBag', $result);\n }", "public function getVariantsMap()\n {\n $this->assertSame($this->mockVariantsMap, $this->abstractVariantFactory->getVariantsMap());\n }", "public function testGetpointsShouldReturnArray(): void\n { \n $ma = [\"Bee A\", \"Bee B\"];\n $maa = [101, 102];\n list($b, $b1) = $ma;\n list($i, $i1) = $maa;\n \n $obj = new Points();\n $obj->setPoints($b, $i);\n $obj->setPoints($b1, $i1);\n \n $this->assertEquals($i, $obj->getPoints($b));\n $this->assertEquals($i1, $obj->getPoints($b1));\n }", "abstract protected function report_to_array_mapping();", "public function testGeTaskVariableData()\n {\n }", "public function getTestData() {\n $big_data = [];\n for ($i = 1; $i <= 10000; $i++) {\n $big_data[] = [\n 'id' => $i,\n 'name' => UUID::v4()\n ];\n }\n return [\n [\n $big_data,\n \"10000 results\",\n \"Showing results 1 to 5\",\n \"offset=2000\",\n true\n ],\n [\n [\n\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 4,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 5,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 6,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 7,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 8,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 9,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 10,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 11,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 12,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 13,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 14,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 15,\n 'name' => 'johnny bravo'\n ]\n ],\n \"15 results\",\n \"Showing results 1 to 5\",\n \"offset=3\",\n false\n ],\n [\n [\n [\n 'id' => 1,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 2,\n 'name' => 'johnny bravo'\n ],\n [\n 'id' => 3,\n 'name' => 'johnny bravo'\n ]\n ],\n \"3 results\",\n \"results\",\n \"results\",\n true\n ]\n ];\n }", "public function provideTestData(): array\n {\n return [\n 'Role may handle the command' => [new FakeCommand(), 'ROLE_ADMIN'],\n 'Test role hierarchy' => [new FakeCommand(), 'ROLE_SUPER_ADMIN'],\n 'Role may not handle the command' => [new FakeCommand(), 'ROLE_USER', AccessDeniedException::class],\n 'Deny access if command is not in the mapping' => [new stdClass(), 'ROLE_SUPER_ADMIN', AccessDeniedException::class],\n ];\n }", "public function testGetOffsetDataProvider()\n {\n return [\n [1, '/some/file/path/000/000/001/some_style/some_file.jpg', 27],\n [1, '/some/file/path/1/some_style/some_file.jpg', 17],\n [200, '/some/file/path/000/000/200/some_style/some_file.jpg', 27],\n [200, '/some/file/path/200/some_style/some_file.jpg', 19],\n ['abcdef123', '/some/file/path/abc/def/123/some_style/some_file.jpg', 27],\n ['abcdef123', '/some/file/path/abcdef123/some_style/some_file.jpg', 25]\n ];\n }", "abstract protected function buildMap();", "public function testOptionMapping() {\n\t\t$JsEngine = new OptionEngineHelper($this->View);\n\t\t$result = $JsEngine->testMap();\n\t\t$this->assertSame(array(), $result);\n\n\t\t$result = $JsEngine->testMap(array('foo' => 'bar', 'baz' => 'sho'));\n\t\t$this->assertEquals(array('foo' => 'bar', 'baz' => 'sho'), $result);\n\n\t\t$result = $JsEngine->testMap(array('complete' => 'myFunc', 'type' => 'json', 'update' => '#element'));\n\t\t$this->assertEquals(array('success' => 'myFunc', 'dataType' => 'json', 'update' => '#element'), $result);\n\n\t\t$result = $JsEngine->testMap(array('success' => 'myFunc', 'dataType' => 'json', 'update' => '#element'));\n\t\t$this->assertEquals(array('success' => 'myFunc', 'dataType' => 'json', 'update' => '#element'), $result);\n\t}", "public function testGetData_Elements()\n {\n $template = array(\n 'status' => 'string',\n 'resource' => 'string',\n 'description' => 'string',\n 'data' => 'array'\n );\n\n foreach ($template as $key => $value) {\n $this->assertArrayHasKey($key, $this->arrResults, \"[ Missing Key '$key' ]\");\n $this->assertInternalType($value, $this->arrResults[$key], \"[ Key '$key' Invalid Type ]\");\n }\n\n $this->assertCount(count($template), $this->arrResults, \"[ Incorrect number of elements ]\");\n $this->assertEquals('okay', $this->arrResults['status']);\n $this->assertEquals('Memory', $this->arrResults['resource']);\n }", "public function getTestData()\n {\n yield [false, false, '-5 days', '+5 days', true];\n // changing before last dockdown period is not allowed with grace permission\n yield [false, true, '-5 days', '+5 days', true];\n // changing before last dockdown period is allowed with full permission\n yield [true, true, '-5 days', '+5 days', false];\n yield [true, false, '-5 days', '+5 days', false];\n // changing a value in the last lockdown period is allowed during grace period\n yield [false, false, '+5 days', '+5 days', false];\n // changing outside grace period is not allowed\n yield [false, false, '+5 days', '+11 days', true];\n // changing outside grace period is allowed with grace and full permission\n yield [false, true, '+5 days', '+11 days', false];\n yield [true, false, '+5 days', '+11 days', false];\n yield [true, true, '+5 days', '+11 days', false];\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 testGetValues()\n {\n $this->todo('stub');\n }", "public function testEach() {\n $data = array(\n 'integer' => 123,\n 'number' => '456',\n 'foo' => 'bar',\n 'string' => 'test',\n 'boolean' => true,\n 'array' => array(\n 525,\n 'boo'\n )\n );\n\n $this->assertEquals(array(\n 'integer' => 246,\n 'number' => 912,\n 'foo' => 'barwtf',\n 'string' => 'testwtf',\n 'boolean' => true,\n 'array' => array(\n 1050,\n 'boowtf'\n )\n ), Hash::each($data, function($value, $key) {\n if (is_numeric($value)) {\n return $value * 2;\n } elseif (is_string($value)) {\n return $value . 'wtf';\n }\n\n return $value;\n }));\n\n $this->assertEquals(array(\n 'integer' => 246,\n 'number' => 912,\n 'foo' => 'barwtf',\n 'string' => 'testwtf',\n 'boolean' => true,\n 'array' => array(\n 525,\n 'boo'\n )\n ), Hash::each($data, function($value, $key) {\n if (is_numeric($value)) {\n return $value * 2;\n } elseif (is_string($value)) {\n return $value . 'wtf';\n }\n\n return $value;\n }, false));\n }", "public function testData()\n {\n $output = $this->primer->getPatterns(array('components/test-group/data-autoload'), false);\n\n $this->assertEquals($output, '1.2');\n }", "private static function createSampleData()\n\t{\n\t\tself::createSampleObject(1, \"Issue 1\", 1);\n\t\tself::createSampleObject(2, \"Issue 2\", 1);\n\t}", "public function testIndexGetMapping(): void\n {\n $index = $this->_createIndex();\n $mappings = new Mapping([\n 'id' => ['type' => 'integer', 'store' => true],\n 'email' => ['type' => 'text'],\n 'username' => ['type' => 'text'],\n 'test' => ['type' => 'integer'],\n ]);\n\n $index->setMapping($mappings);\n $index->refresh();\n $indexMappings = $index->getMapping();\n\n $this->assertEquals('integer', $indexMappings['properties']['id']['type']);\n $this->assertEquals(true, $indexMappings['properties']['id']['store']);\n $this->assertEquals('text', $indexMappings['properties']['email']['type']);\n $this->assertEquals('text', $indexMappings['properties']['username']['type']);\n $this->assertEquals('integer', $indexMappings['properties']['test']['type']);\n }", "public function testProcess()\n {\n $unit1 = $this->getUnit('customer');\n $unit1->setReversedMapping([\n 'email' => 'map.email',\n 'age' => 'map.age',\n ]);\n $unit1->setReversedConnection([\n 'customer_id' => 'id',\n ]);\n $unit1->setMapping([\n 'id' => 'map.id',\n 'email' => 'map.email',\n 'age' => 'map.age',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n [1, '[email protected]', 30],\n [2, '[email protected]', 33],\n [3, '[email protected]', 55],\n [4, '[email protected]', 11],\n false,\n ]\n ));\n $unit1->setIsEntityCondition(function (\n MapInterface $map,\n MapInterface $oldmap\n ) {\n return $oldmap->offsetGet('email') != $map->offsetGet('email');\n });\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit2 = $this->getUnit('customer_data');\n $unit2->setReversedMapping([\n 'name' => function ($map) {\n return $map['fname'] . ' ' . $map['lname'];\n },\n ]);\n $unit2->setReversedConnection([\n 'customer_id' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'id' => 'map.data_id',\n 'parent_id' => 'map.id',\n 'fname' => function ($map) {\n list($fname) = explode(\" \", $map['name']);\n return $fname;\n },\n 'lname' => function ($map) {\n list(, $lname) = explode(\" \", $map['name']);\n return $lname;\n },\n ]);\n $unit2->setTmpFileName('customer_data_tmp.csv');\n $unit2->setFilesystem($this->getFS(\n [\n [1, 1, 'Olaf', 'Stone'],\n [2, 2, 'Peter', 'Ostridge'],\n [3, 3, 'Bill', 'Murray'],\n [4, 4, 'Peter', 'Pan'],\n false,\n ]\n ));\n $unit2->addSibling($unit1);\n\n $unit3 = $this->getUnit('address');\n $unit3->setReversedMapping([\n 'addr_city' => 'map.city',\n 'addr_street' => 'map.street',\n ]);\n $unit3->setReversedConnection([\n 'customer_id' => 'parent_id',\n ]);\n $unit3->setMapping([\n 'id' => 'map.addr_id',\n 'street' => 'map.addr_street',\n 'city' => 'map.addr_city',\n 'parent_id' => 'map.id',\n ]);\n $unit3->addContribution(function (MapInterface $map) {\n $map->incr('addr_id', 1);\n });\n $unit3->setFilesystem($this->getFS(\n [\n [1, '4100 Marine dr. App. 54', 'Chicago', 1],\n [2, '3300 St. George, Suite 300', 'New York', 1],\n [3, '111 W Jackson', 'Chicago', 2],\n [4, '111 W Jackson-2', 'Chicago', 3],\n [5, '111 W Jackson-3', 'Chicago', 3],\n [6, 'Hollywood', 'LA', 3],\n [7, 'fake', 'LA', 3],\n [8, 'Fairy Tale', 'NY', 4],\n false,\n ]\n ));\n $unit3->setTmpFileName('address_tmp.csv');\n $unit3->setParent($unit1);\n\n $expected = [\n [[\n 'email' => '[email protected]',\n 'name' => 'Olaf Stone',\n 'age' => 30,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '4100 Marine dr. App. 54',\n ],\n [\n 'addr_city' => 'New York',\n 'addr_street' => '3300 St. George, Suite 300',\n ],\n ]\n ]],\n [[\n 'email' => '[email protected]',\n 'name' => 'Peter Ostridge',\n 'age' => 33,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson',\n ]\n ]\n ]],\n [[\n 'email' => '[email protected]',\n 'name' => 'Bill Murray',\n 'age' => 55,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson-2',\n ],\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '111 W Jackson-3',\n ],\n [\n 'addr_city' => 'LA',\n 'addr_street' => 'Hollywood',\n ],\n [\n 'addr_city' => 'LA',\n 'addr_street' => 'fake',\n ]\n ]\n ]],\n [[\n 'email' => '[email protected]',\n 'name' => 'Peter Pan',\n 'age' => 11,\n 'address' => [\n [\n 'addr_city' => 'NY',\n 'addr_street' => 'Fairy Tale',\n ]\n ]\n ]],\n ];\n\n $action = $this->getAction([$unit1, $unit2, $unit3], $expected);\n $action->process($this->getResultMock());\n }", "public function testForEach()\n {\n }", "public function test_next_map()\n {\n $this->assertSame('Belaya AAS v1', $this->btwServer->nextMap());\n }", "public function testGetData_Elements_Data()\n {\n $template = array(\n 'total' => 'int',\n 'free' => 'int',\n 'used' => 'int'\n );\n\n $element = $this->arrResults['data'];\n foreach ($template as $key => $value) {\n $this->assertArrayHasKey($key, $element, \"[ Missing Key '$key' ]\");\n $this->assertInternalType($value, $element[$key], \"[ Key '$key' Invalid Type ]\");\n }\n\n $this->assertCount(count($template), $element, \"[ Incorrect number of elements ]\");\n }", "public function testBuildMarshalMapNonArrayData(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $translate = $table->behaviors()->get('Translate');\n\n $map = $translate->buildMarshalMap($table->marshaller(), [], []);\n $entity = $table->newEmptyEntity();\n $result = $map['_translations']('garbage', $entity);\n $this->assertNull($result, 'Non-array should not error out.');\n $this->assertEmpty($entity->getErrors());\n $this->assertEmpty($entity->get('_translations'));\n }", "public function test_map_user_data_with_value() {\n // Need to add one of the users into the system.\n $user = new stdClass();\n $user->firstname = 'Anne';\n $user->lastname = 'Able';\n $user->email = '[email protected]';\n $userdetail = $this->getDataGenerator()->create_user($user);\n\n $testarray = $this->csv_load($this->oktext);\n $testobject = new phpunit_gradeimport_csv_load_data();\n\n // We're not using scales so no to this option.\n $verbosescales = 0;\n // Map and key are to retrieve the grade_item that we are updating.\n $map = array(1);\n $key = 0;\n\n // Test new user mapping. This should return the user id if there were no problems.\n $userid = $testobject->test_map_user_data_with_value('useremail', $testarray[0][5], $this->columns, $map, $key,\n $this->courseid, $map[$key], $verbosescales);\n $this->assertEquals($userid, $userdetail->id);\n\n $newgrades = $testobject->test_map_user_data_with_value('new', $testarray[0][6], $this->columns, $map, $key,\n $this->courseid, $map[$key], $verbosescales);\n // Check that the final grade is the same as the one inserted.\n $this->assertEquals($testarray[0][6], $newgrades[0]->finalgrade);\n\n $newgrades = $testobject->test_map_user_data_with_value('new', $testarray[0][8], $this->columns, $map, $key,\n $this->courseid, $map[$key], $verbosescales);\n // Check that the final grade is the same as the one inserted.\n // The testobject should now contain 2 new grade items.\n $this->assertEquals(2, count($newgrades));\n // Because this grade item is empty, the value for final grade should be null.\n $this->assertNull($newgrades[1]->finalgrade);\n\n $feedback = $testobject->test_map_user_data_with_value('feedback', $testarray[0][7], $this->columns, $map, $key,\n $this->courseid, $map[$key], $verbosescales);\n // Expected result.\n $resultarray = array();\n $resultarray[0] = new stdClass();\n $resultarray[0]->itemid = 1;\n $resultarray[0]->feedback = $testarray[0][7];\n $this->assertEquals($feedback, $resultarray);\n\n // Default behaviour (update a grade item).\n $newgrades = $testobject->test_map_user_data_with_value('default', $testarray[0][6], $this->columns, $map, $key,\n $this->courseid, $map[$key], $verbosescales);\n $this->assertEquals($testarray[0][6], $newgrades[0]->finalgrade);\n }", "public function testGetData_Elements()\n {\n $template = array(\n 'status' => 'string',\n 'resource' => 'string',\n 'description' => 'string',\n 'data' => 'array'\n );\n\n foreach ($template as $key => $value) {\n $this->assertArrayHasKey($key, $this->arrResults, \"[ Missing Key '$key' ]\");\n $this->assertInternalType($value, $this->arrResults[$key], \"[ Key '$key' Invalid Type ]\");\n }\n\n $this->assertCount(count($template), $this->arrResults, \"[ Incorrect number of elements ]\");\n $this->assertEquals('okay', $this->arrResults['status']);\n $this->assertEquals('Hostname', $this->arrResults['resource']);\n }", "public function test_next_map()\n {\n $this->assertSame('Al Basrah Insurgency v1', $this->btwServer->nextMap());\n }", "public function testMappingStructure()\n {\n $instance = $this->getInstance();\n $this->assertProtectedMethod('getMappingConfiguration');\n $method = $this->getClassMethod('getMappingConfiguration', true);\n\n $result = $method->invoke($instance);\n\n $this->assertEquals($this->getMapping(), $result);\n }", "public function setUp()\n {\n $this->strPathToOutputData = create_temp_directory(__CLASS__);\n $this->strTmpDumpFile = \"DumpFile.tmp\";\n $this->strPathToData = test_data_path(\"andorra\", \"mif\", \"gis_osm_places_free_1.mif\");\n $this->strPathToStandardData = \"./data/testcase/\";\n $this->bUpdate = false;\n $this->iSpatialFilter[0] = 1.4; /*xmin*/\n $this->iSpatialFilter[1] = 42.4; /*ymin*/\n $this->iSpatialFilter[2] = 1.6; /*xmax*/\n $this->iSpatialFilter[3] = 42.6; /*ymax*/\n\n OGRRegisterAll();\n\n $this->hOGRSFDriver = OGRGetDriverByName(\"MapInfo File\");\n $this->assertNotNull(\n $this->hOGRSFDriver,\n \"Could not get MapInfo File driver\"\n );\n\n $this->hSrcDataSource = OGR_Dr_Open(\n $this->hOGRSFDriver,\n $this->strPathToData,\n $this->bUpdate\n );\n $this->assertNotNull(\n $this->hSrcDataSource,\n \"Could not open datasource \" . $this->strPathToData\n );\n\n $this->hLayer = OGR_DS_GetLayer($this->hSrcDataSource, 0);\n $this->assertNotNull($this->hLayer, \"Could not open source layer\");\n }", "public function addModulePositionTestsDataProvider() {}", "public function testGetData_Elements_Data()\n {\n $template = array(\n 'hostname' => 'string'\n );\n\n $element = $this->arrResults['data'];\n foreach ($template as $key => $value) {\n $this->assertArrayHasKey($key, $element, \"[ Missing Key '$key' ]\");\n $this->assertInternalType($value, $element[$key], \"[ Key '$key' Invalid Type ]\");\n }\n\n $this->assertCount(count($template), $element, \"[ Incorrect number of elements ]\");\n }", "public function map(Closure $mutate): Result;", "public function test() {\n $results = [];\n $results[\"testAddUser\"] = $this->testAddUser();\n\n return $results;\n }", "public function testGetOffset(): void\n {\n $model = ProcessMemoryMap::load([\n \"offset\" => 46290,\n ], $this->container);\n\n $this->assertSame(46290, $model->getOffset());\n }", "public function jsonViewTestData() {}", "public function testGetDataMulti()\n {\n $this->getWeather->setUrls();\n $result = $this->getWeather->getDataMulti();\n\n $this->assertIsArray($result);\n }", "public function getTestAddAndGetData()\n {\n return [\n ['namespace_1', 'key_11'],\n ['namespace_2', 'key_21'],\n ];\n }", "public function testBasicTest()\n {\n // create String Helper\n foreach ($this->PACKAGE_CLASSES as $PACKAGE_CLASS) {\n ${$PACKAGE_CLASS} = $this->app->make($PACKAGE_CLASS);\n }\n\n $testArray = [\n 'key1' => 'value1',\n 'key2' => [\n 'key21' => 'value21',\n ]\n ];\n\n $this->assertTrue(true);\n }", "public function testFetchArray()\n {\n $this->todo('stub');\n }", "protected function test() \n {\n return\n [\"test\" => \"test\"];\n }", "public function dataProviderTestGenerate()\n {\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 10,\n 'format' => [\n [-1, -1],\n [-1, -1],\n ],\n ],\n ];\n yield [\n [\n 'seed' => 0,\n 'min' => 0,\n 'max' => 4,\n 'format' => [\n [-1, 2],\n [-1, -1],\n ],\n ],\n ];\n }", "abstract protected function insertMockRoutableContextObjects(array $data = []);", "protected function setup(): void\n {\n // our test cases should not have special events that are\n // in the past in comparison to the mock schedules\n $year = 2058;\n\n $assignment_name = \"Talk\";\n\n $this->schedules = new Map([\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"January\",\n [\"date\" => 10, 5 => $assignment_name],\n [\"date\" => 17, 5 => $assignment_name],\n [\"date\" => 24, 5 => $assignment_name]\n ]),\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"October\",\n [\"date\" => 4, 5 => $assignment_name],\n [\"date\" => 11, 5 => $assignment_name]\n ]),\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"November\",\n [\"date\" => 8, 5 => $assignment_name],\n [\"date\" => 15, 5 => $assignment_name]\n ]),\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"December\",\n [\"date\" => 6, 5 => $assignment_name],\n [\"date\" => 13, 5 => $assignment_name]\n ])\n ]);\n }", "public function testProcess2()\n {\n $unit1 = $this->getUnit('customer');\n $unit1->setReversedMapping([\n 'email' => 'map.email',\n 'name' => function ($map) {\n return $map['fname'] . ' ' . $map['lname'];\n },\n 'age' => 'map.age',\n ]);\n $unit1->setReversedConnection([\n 'customer_id' => 'id',\n ]);\n $unit1->setMapping([\n 'id' => 'map.id',\n 'fname' => function ($map) {\n list($fname) = explode(\" \", $map['name']);\n return $fname;\n },\n 'lname' => function ($map) {\n list(, $lname) = explode(\" \", $map['name']);\n return $lname;\n },\n 'email' => 'map.email',\n 'age' => 'map.age',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n [1, 'Olaf', 'Stone', '[email protected]', 30],\n [2, 'Peter', 'Ostridge', '[email protected]', 33],\n false,\n ]\n ));\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit2 = $this->getUnit('address');\n $unit2->setReversedMapping([\n 'addr_city' => 'map.city',\n 'addr_street' => 'map.street',\n ]);\n $unit2->setReversedConnection([\n 'customer_id' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'id' => 'map.addr_id',\n 'street' => 'map.addr_street',\n 'city' => 'map.addr_city',\n 'parent_id' => 'map.id',\n ]);\n $unit2->addContribution(function (MapInterface $map) {\n $map->incr('addr_id', 1);\n });\n $unit2->setFilesystem($this->getFS(\n [\n [1, '4100 Marine dr. App. 54', 'Chicago', 1],\n [2, '3300 St. George, Suite 300', 'New York', 1],\n [3, '111 W Jackson', 'Chicago', 4],\n [4, '111 W Jackson-2', 'Chicago', 4],\n // next rows will not be read due to LogicException\n // [5, 'Hollywood', 'LA', 4],\n // false,\n ]\n ));\n $unit2->setTmpFileName('address_tmp.csv');\n $unit2->setParent($unit1);\n\n $expected = [\n [[\n 'email' => '[email protected]',\n 'name' => 'Olaf Stone',\n 'age' => 30,\n 'address' => [\n [\n 'addr_city' => 'Chicago',\n 'addr_street' => '4100 Marine dr. App. 54',\n ],\n [\n 'addr_city' => 'New York',\n 'addr_street' => '3300 St. George, Suite 300',\n ]\n ]\n ]],\n ];\n\n $action = $this->getAction([$unit1, $unit2], $expected);\n $action->process($this->getResultMock());\n }", "public function provideTestCases()\n {\n return [\n ['time', ['time'], false],\n ['bar', null, true],\n ];\n }", "public function youCanUseACollectionAsData()\n {\n // Arrange...\n $mango = $this->createTestModel();\n $apple = $this->createTestModel( [\n 'name' => 'Apple',\n 'price' => 5\n ] );\n\n $fruits = collect( [ $mango, $apple ] );\n\n // Act...\n $response = $this->responder->success( $fruits );\n\n // Assert...\n $this->assertEquals( $response->getData( true ), [\n 'status' => 200,\n 'success' => true,\n 'data' => [\n [\n 'name' => 'Mango',\n 'price' => 10,\n 'isRotten' => false\n ],\n [\n 'name' => 'Apple',\n 'price' => 5,\n 'isRotten' => false\n ]\n ]\n ] );\n }", "public function dataProvider()\n {\n $mockTaxableBuilder = $this->getMockBuilder('CommerceGuys\\Tax\\TaxableInterface');\n $physicalTaxable = $mockTaxableBuilder->getMock();\n $physicalTaxable->expects($this->any())\n ->method('isPhysical')\n ->will($this->returnValue(true));\n $digitalTaxable = $mockTaxableBuilder->getMock();\n\n $mockAddressBuilder = $this->getMockBuilder('CommerceGuys\\Addressing\\Address');\n $serbianAddress = $mockAddressBuilder->getMock();\n $serbianAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('RS'));\n $frenchAddress = $mockAddressBuilder->getMock();\n $frenchAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('FR'));\n $germanAddress = $mockAddressBuilder->getMock();\n $germanAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('DE'));\n $usAddress = $mockAddressBuilder->getMock();\n $usAddress->expects($this->any())\n ->method('getCountryCode')\n ->will($this->returnValue('US'));\n\n $date1 = new \\DateTime('2014-02-24');\n $date2 = new \\DateTime('2015-02-24');\n $notApplicable = EuTaxTypeResolver::NO_APPLICABLE_TAX_TYPE;\n\n return [\n // German customer, French store, VAT number provided.\n [$physicalTaxable, $this->getContext($germanAddress, $frenchAddress, '123'), 'eu_ic_vat'],\n // French customer, French store, VAT number provided.\n [$physicalTaxable, $this->getContext($frenchAddress, $frenchAddress, '123'), 'fr_vat'],\n // German customer, French store, physical product.\n [$physicalTaxable, $this->getContext($germanAddress, $frenchAddress), 'fr_vat'],\n // German customer, French store registered for German VAT, physical product.\n [$physicalTaxable, $this->getContext($germanAddress, $frenchAddress, '', ['DE']), 'de_vat'],\n // German customer, French store, digital product before Jan 1st 2015.\n [$digitalTaxable, $this->getContext($germanAddress, $frenchAddress, '', [], $date1), 'fr_vat'],\n // German customer, French store, digital product.\n [$digitalTaxable, $this->getContext($germanAddress, $frenchAddress, '', [], $date2), 'de_vat'],\n // German customer, US store, digital product\n [$digitalTaxable, $this->getContext($germanAddress, $usAddress, '', [], $date2), []],\n // German customer, US store registered in FR, digital product.\n [$digitalTaxable, $this->getContext($germanAddress, $usAddress, '', ['FR'], $date2), 'de_vat'],\n // German customer with VAT number, US store registered in FR, digital product.\n [$digitalTaxable, $this->getContext($germanAddress, $usAddress, '123', ['FR'], $date2), $notApplicable],\n // Serbian customer, French store, physical product.\n [$physicalTaxable, $this->getContext($serbianAddress, $frenchAddress), []],\n // French customer, Serbian store, physical product.\n [$physicalTaxable, $this->getContext($frenchAddress, $serbianAddress), []],\n ];\n }", "public function testValidData()\n {\n $this->breweriesDataFetchingMock->shouldReceive('setUpBreweriesData')->once()\n ->andReturn(dataFactory(10, 0));\n $this->routeCalculationServiceMock->shouldReceive('calculateRoute')->once()\n ->andReturn([\n 'usedIndexes' => [1, 2, 54],\n 'distanceLeft' => 1000,\n 'breweriesData' => dataFactory(10, 0)]);\n $this->validateCoordinatesServiceMock->shouldReceive('isLatitudeValid')->andReturn(true);\n $this->validateCoordinatesServiceMock->shouldReceive('isLongitudeValid')->andReturn(true);\n $startLongitude = -179.15;\n $startLatitude = -80.484;\n $tripDistance = 2000;\n $result = $this->tripMakingService->calculateWholeTrip($startLongitude, $startLatitude, $tripDistance);\n $this->assertNotEmpty($result);\n }", "private function prepareResultMap() {\n $resultMap = [];\n foreach ($this->encodings as $encoding) {\n $map = \"_\" . $encoding . \"Map\";\n foreach ($this->$map as $ru => $fo) {\n $resultMap[$ru][] = $fo;\n }\n }\n $this->_resultMap = $resultMap;\n }", "function __construct() {\n\t\t$this->map_data = array();\n\t}", "public function provideIpAddresses () {\n/******************************************************************************\n ** **\n ** The mapIpAddress method always returns the same coordinates no matter **\n ** what is passed into it. The first test should result in mapIpAddress **\n ** receiving 127.0.0.1 (which is what we specified in the mocked request **\n ** object) after it calls the getIpAddress method. We have already tested **\n ** the getIpAddress method in another test, so it's not strictly necessary **\n ** to have a test case with a blank IP Address. In fact, it's not strictly **\n ** necessary to test with an additional IP Address. However, it's useful to **\n ** have this data provider set up in the event that some day we update the **\n ** mapIpAddress method so that it has more logic in it. **\n ** **\n ******************************************************************************/\n return [\n ['39.7392° N, 104.9903° W', ''],\n ['39.7392° N, 104.9903° W', '151.101.113.175']\n ];\n }", "public function seedUnmap()\n\t{\n\t\t// Tag, C1, C2, $Expected, Exception\n\t\treturn array(\n\t\t\t\t// OK\n\t\t\t\tarray('tag', 1, 4, true),\n\t\t\t\t// OK without type\n\t\t\t\tarray(null, 1, 4, true),\n\t\t\t\t// Bad request\n\t\t\t\tarray('tag', 'foo', 5, false),\n\t\t\t\t// No type exception\n\t\t\t\tarray(null, 1, 7, null, true),\n\t\t\t\t// No type exception\n\t\t\t\tarray(null, 1, null, null, true)\n\t\t\t\t);\n\t}", "static public function getDataMap()\n {\n return array(\n 'fields' => array(\n 'rev' => array(\n 'type' => 'integer',\n ),\n 'cover' => array(\n 'type' => 'string',\n ),\n 'wiki_id' => array(\n 'type' => 'integer',\n ),\n 'title' => array(\n 'type' => 'string',\n ),\n 'html_cache' => array(\n 'type' => 'string',\n ),\n 'content' => array(\n 'type' => 'string',\n ),\n 'tags' => array(\n 'type' => 'raw',\n ),\n 'comment_tags' => array(\n 'type' => 'raw',\n ),\n 'model' => array(\n 'type' => 'string',\n ),\n 'has_video' => array(\n 'type' => 'integer',\n ),\n 'like_num' => array(\n 'type' => 'integer',\n ),\n 'dislike_num' => array(\n 'type' => 'integer',\n ),\n 'watched_num' => array(\n 'type' => 'integer',\n ),\n 'admin_id' => array(\n 'type' => 'integer',\n ),\n 'do_date' => array(\n 'type' => 'date',\n ),\n 'source' => array(\n 'type' => 'raw',\n ),\n 'tvsou_id' => array(\n 'type' => 'string',\n ),\n 'first_letter' => array(\n 'type' => 'string',\n ),\n 'douban_id' => array(\n 'type' => 'string',\n ),\n 'verify' => array(\n 'type' => 'integer',\n ),\n 'created_at' => array(\n 'type' => 'date',\n ),\n 'updated_at' => array(\n 'type' => 'date',\n ),\n ),\n 'references' => array(\n\n ),\n 'embeddeds' => array(\n\n ),\n 'relations' => array(\n\n ),\n );\n }", "public function conversionTestingDataProvider() {}", "public function testGet() {\n $data = $this->expanded;\n\n $this->assertEquals($data, Hash::get($data));\n $this->assertEquals(true, Hash::get($data, 'boolean'));\n $this->assertEquals($data['one']['two']['three'], Hash::get($data, 'one.two.three'));\n $this->assertEquals($data['one']['two']['three']['four']['five']['six'], Hash::get($data, 'one.two.three.four.five.six'));\n }", "public function generateDataForTest()\r\n {\r\n return array(\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\",\r\n null,\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tUser-Agent: *\r\n\t\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'www.example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\t\tHost: example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected first host value'\r\n ),\r\n array(\r\n \"\r\n\t\t\t\tUser-Agent: google\r\n\t\t\t\tHost: example.com\r\n\t\t\t\tHost: www.example.com\r\n\t\t\t\t\",\r\n 'example.com',\r\n 'expected assign host to * because host is cross-section directive'\r\n ),\r\n );\r\n }", "public function testIteration() {\n $array = array(100, 101, 102, 103);\n $this->chartData->add($array);\n foreach ($this->chartData->getData() as $index => $value) {\n $this->assertEquals($array[$index], $value);\n }\n }", "public function getTests();", "protected function testObjects() {\n }", "public function testIterator()\n {\n foreach ($this->pool as $code => $class) {\n $this->assertEquals($this->pool[$code], $class);\n }\n }", "public function testBasic(): void\n {\n $valuesExpected = [\n 'string' => 'string',\n ' str ' => 'str',\n \"\\ns\\t\" => 's',\n ];\n foreach ($valuesExpected as $input => $output) {\n self::assertSame($output, $this->filter->filter($input));\n }\n }" ]
[ "0.7230248", "0.70871884", "0.6918216", "0.67902714", "0.67768925", "0.67472816", "0.66980535", "0.65309906", "0.6461618", "0.64028376", "0.63349533", "0.6307219", "0.62984544", "0.6251864", "0.62269336", "0.622368", "0.618469", "0.60757893", "0.60628575", "0.6005824", "0.60010004", "0.5943363", "0.5913894", "0.58705676", "0.5847461", "0.57911426", "0.5767833", "0.5767675", "0.57560146", "0.5748954", "0.5745926", "0.5713129", "0.57068837", "0.5661454", "0.56469077", "0.5635982", "0.5635575", "0.56204295", "0.5591169", "0.55891407", "0.55665594", "0.55645394", "0.5553431", "0.55512005", "0.55504215", "0.55343324", "0.55056614", "0.5500498", "0.5490226", "0.54707384", "0.54633397", "0.5454007", "0.5448542", "0.5444841", "0.5442378", "0.5434481", "0.5420663", "0.5411391", "0.54113257", "0.5404303", "0.54040796", "0.539419", "0.5392672", "0.53901124", "0.53888375", "0.5381815", "0.5380928", "0.5371094", "0.5366486", "0.5351943", "0.53504515", "0.53478944", "0.534629", "0.5344978", "0.5339824", "0.5326349", "0.5325465", "0.52945495", "0.52939", "0.5285375", "0.52848077", "0.52742714", "0.52720743", "0.5260608", "0.52551556", "0.5254945", "0.52506316", "0.5242368", "0.5236738", "0.5229373", "0.52253383", "0.5210462", "0.52084357", "0.520651", "0.5192429", "0.5192193", "0.51880413", "0.5176335", "0.5176216", "0.51688635" ]
0.58560824
24
Test map() by deleting the existing mappings first
public function testMap2() { TestReflection::invoke($this->_state, 'set', 'content.type', 'tag'); $a = TestReflection::invoke($this->_instance, 'map', 1, array(5), true); $this->assertEquals(true, $a); TestReflection::invoke($this->_state, 'set', 'tags.content_id', '1'); $actual = TestReflection::invoke($this->_instance, 'getList'); $this->assertEquals(1, count($actual)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testMap() {\n\t\t$array1 = array(1, 2, 3);\n\t\t$array2 = _::map($array1, function($value) {\n\t\t\treturn ($value * 2);\n\t\t});\n\t\t$this->assertEquals(2, $array2[0]);\n\t\t$this->assertEquals(4, $array2[1]);\n\t\t$this->assertEquals(6, $array2[2]);\n\n\t\t// test that we preserve keys\n\t\t$array1 = array('a' => 2, 'b' => 4, 'c' => 8);\n\t\t$array2 = _::map($array1, function($value) {\n\t\t\treturn ($value * $value);\n\t\t});\n\t\t$this->assertEquals(4, $array2['a']);\n\t\t$this->assertEquals(16, $array2['b']);\n\t\t$this->assertEquals(64, $array2['c']);\n\t}", "public static function clear()\n {\n self::$map = array();\n }", "public function deleteTagMaps()\n {\n foreach ($this->tags as $tag) {\n $tag->tagObjectMap->delete();\n }\n }", "protected abstract function map();", "public function clear()\n {\n $this->map->clear();\n }", "function delete_map ($data) {\r\n\t\t$id = (int)$data['id'];\r\n\t\t$table = $this->get_table_name();\r\n\r\n\t\t$result = $this->wpdb->query(\"DELETE FROM {$table} WHERE id={$id}\");\r\n\t\treturn $result ? $id : false;\r\n\t}", "public function testIfMapBagContainsMaps()\n {\n $factory = new FileSystemMapFactory();\n $result = $factory->create($this->data);\n\n $this->assertContainsOnlyInstancesOf('\\SyncFS\\Map\\FileSystemMap', $result);\n }", "public function testMap()\n {\n $collection = $this->collection->map(function($value, $key) {\n return 2 * $value;\n });\n\n $this->assertAttributeEquals([2,4,6], 'elements', $collection);\n $this->assertAttributeEquals([1,2,3], 'elements', $this->collection);\n }", "public function destroy(Map $map)\n {\n //\n }", "public function reindex(callable $callback): NonEmptyMap;", "public function deleteAddrMaps(){\n\t\t$guWlDevices = $this->getWlDevices();\n\t\tforeach($guWlDevices as $guDevice){\n\t\t\t$guWlIfaces = $guDevice->getWlIfaces();\n\t\t\tforeach($guWlIfaces as $guWlIface){\n\t\t\t\t$guWlIface->getAddrMap()->delete();\n\t\t\t}\n\t\t}\n\t}", "public function map(callable $callback): NonEmptyMap;", "public function testIfMapsContainProperData()\n {\n $factory = new FileSystemMapFactory();\n $maps = $factory->create($this->data);\n $count = 0;\n\n foreach ($this->data as $name => $mapData) {\n /** @var FileSystemMap $map */\n $map = $maps[$count];\n\n $this->assertEquals($this->data[$name]['src'], $map->getSource());\n $this->assertEquals($this->data[$name]['dst'], $map->getDestination());\n\n if (isset($this->data['client'])) {\n $this->assertEquals($this->data['client'], $map->getClient());\n }\n\n $this->assertEquals($name, $map->getName());\n\n $count++;\n }\n }", "abstract protected function defineMapping();", "public function recreateMaps()\n {\n $maps = $this->getRedirectsMapsByType();\n\n $this->recreateMapFile($maps, static::STATUS_CODE_301_MOVED_PERMANENTLY);\n $this->recreateMapFile($maps, static::STATUS_CODE_302_FOUND);\n\n // apache doesn't need reload\n if ($this->serverType === 'nginx') {\n $this->reloadNginxConfigs();\n }\n }", "public static function clear()\n {\n self::$map = array();\n self::$instances = array();\n }", "public function testMap() {\n $data = array(\n 'foo' => 'bar',\n 'boolean' => true,\n 'null' => null,\n 'array' => array(),\n 'number' => 123\n );\n\n $this->assertEquals(array(\n 'foo' => 'BAR',\n 'boolean' => true,\n 'null' => null,\n 'array' => array(),\n 'number' => 123\n ), Hash::map($data, 'strtoupper'));\n\n $this->assertEquals(array(\n 'foo' => 0,\n 'boolean' => 1,\n 'null' => 0,\n 'array' => array(),\n 'number' => 123\n ), Hash::map($data, 'intval'));\n\n $this->assertEquals(array(\n 'foo' => 'string',\n 'boolean' => 'true',\n 'null' => 'null',\n 'array' => array(),\n 'number' => 'number'\n ), Hash::map($data, function($value) {\n if (is_numeric($value)) {\n return 'number';\n } elseif (is_bool($value)) {\n return $value ? 'true' : 'false';\n } elseif (is_null($value)) {\n return 'null';\n } elseif (is_string($value)) {\n return 'string';\n } else {\n return $value;\n }\n }));\n }", "final public function unset(...$keys):Main\\Map\n {\n $this->checkAllowed('unset');\n $return = $this->onPrepareThis('unset');\n Base\\Arrs::unsetsRef($return->prepareKeys(...$keys),$return->arr(),$this->isSensitive());\n\n return $return->checkAfter();\n }", "private function flush_maps()\r\n {\r\n $fp = fopen(Mapprovider::MAP_STORAGE, \"w\");\r\n fwrite($fp, serialize($this->maps));\r\n fclose($fp);\r\n }", "function cleanup_orphan_maps ($postid, $mapid)\r\n{\r\n\tglobal $wpdb;\r\n\t$posts_table = $wpdb->prefix . 'mappress_posts';\r\n\t$maps_table = $wpdb->prefix . 'mappress_maps';\r\n\t$post_status = get_post_status( $postid );\r\n\t//Print (\"<br /> post status for mapid:$mapid and postid:$postid is '$post_status' <br /> \");\r\n\tif ($post_status == '')\r\n\t{\r\n\t\t$thisSQL = sprintf(\"DELETE FROM $posts_table WHERE postid = %u\",$postid);\r\n\t\t// delete all map posts without a post\r\n\t\t$wpdb->query($thisSQL);\r\n\t\r\n\t\t// delete all maps without a map post\r\n\t\t$thisSQL = sprintf(\"DELETE FROM $maps_table WHERE mapid= %u\",$positd);\r\n\t\t$wpdb->query($thisSQL);\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\treturn false;\r\n}", "public function map($mapper);", "public function test2()\n {\n $rows = $this->dataLayer->tstTestMap1(0);\n $this->assertInternalType('array', $rows);\n $this->assertCount(0, $rows);\n }", "public function groupMap(callable $group, callable $map): NonEmptyMap;", "public function process_cmdmap() {}", "public function test_admin_change_map()\n {\n $this->assertTrue($this->postScriptumServer->adminChangeMap('Heelsum Single 01'));\n }", "public function testDeleteUserMap()\n {\n parent::setUpPage();\n parent::setSession();\n\n $cookie = json_decode(urldecode($this->webDriver->manage()->getCookieNamed('simplemappr')['value']));\n $title = 'Another Sample Map User';\n $mid = parent::$db->queryInsert(\"maps\", array(\n 'uid' => $cookie->uid,\n 'title' => $title,\n 'map' => json_encode(array('save' => array('title' => $title))),\n 'created' => time()\n ));\n $this->webDriver->navigate()->refresh();\n $this->waitOnAjax();\n $delete_links = $this->webDriver->findElements(WebDriverBy::cssSelector(\"#usermaps > .grid-usermaps > tbody > tr > .actions > .map-delete\"));\n foreach($delete_links as $delete_link) {\n if($delete_link->getAttribute('data-id') == $mid) {\n $delete_link->click();\n break;\n }\n }\n $delete_text = $this->webDriver->findElement(WebDriverBy::id('mapper-message-delete'))->getText();\n $this->assertContains($title, $delete_text);\n $this->webDriver->findElement(WebDriverBy::xpath(\"//button/span[text()='Delete']\"))->click();\n parent::waitOnAjax();\n $map_list = $this->webDriver->findElements(WebDriverBy::cssSelector('#usermaps > .grid-usermaps > tbody > tr'));\n $this->assertEquals(count($map_list), 1);\n parent::$db->exec(\"DELETE FROM maps WHERE mid = \".$mid);\n }", "public function local_get_by_map($type, $map){\n\t\tforeach((array)$this->local_copies[$type] as $copy){\n\t\t\tforeach($map as $k=>$v){\n\t\t\t\tif($copy[$k] != $v){\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $copy;\n\t\t}\n\t}", "public function test1()\n {\n $map = $this->dataLayer->tstTestMap1(100);\n $this->assertInternalType('array', $map);\n $this->assertCount(3, $map);\n $this->assertEquals(1, $map['c1']);\n $this->assertEquals(2, $map['c2']);\n $this->assertEquals(3, $map['c3']);\n }", "abstract protected function getMapping();", "abstract protected function getMapping();", "function batch_delete_maps ($ids) {\r\n\t\tif (!is_array($ids)) return false;\r\n\t\t$clean = array();\r\n\t\tforeach ($ids as $id) {\r\n\t\t\tif ((int)$id) $clean[] = (int)$id;\r\n\t\t}\r\n\t\tif (empty($clean)) return false;\r\n\t\t$table = $this->get_table_name();\r\n\t\t$res = $this->wpdb->query(\"DELETE FROM {$table} WHERE id IN(\" . join(',', $clean) . \")\", ARRAY_A);\r\n\t\treturn $res ? true : false;\r\n\t}", "public function testBuildMarshalMapTranslationsOff(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n\n $marshaller = $table->marshaller();\n $translate = $table->behaviors()->get('Translate');\n $result = $translate->buildMarshalMap($marshaller, [], ['translations' => false]);\n $this->assertSame([], $result);\n }", "public function deleteMap($var = null) {\n\t\tswitch ($this->type) {\n\t\t\t// Report folder\n\t\t\tcase 'rfolder':\n\t\t\t\t$this->maps = array();\n\t\t\t\tbreak;\n\n\t\t\t// Template\n\t\t\tcase 'template':\n\t\t\t\tif (!isset($var) || strlen($var) == 0)\n\t\t\t\t\t$this->maps = array();\n\t\t\t\telse\n\t\t\t\t\tunset($this->maps[$var]);\n\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tthrow new WSS_Exception('W3S_NodeData-err_del_map', array(), 'Unable to delete map from this node type.');\n\t\t}\n\t}", "private function _checkMap()\n {\n foreach($this->_map as $alias => $field)\n {\n if(!is_array($field))\n {\n $this->_map[$alias] = array(\n self::MAP_FIELD => $field\n );\n }\n if(isset($field[self::MAP_TYPE]) && in_array($field[self::MAP_TYPE],\n self::$_relationTypes))\n {\n switch($field[self::MAP_TYPE])\n {\n case self::RELATION_PARENT:\n if(empty($field[self::MAP_KEY]) || empty($field[self::MAP_FOREIGN_KEY]))\n {\n $mapper = $field[self::MAP_MAPPER];\n $mapper = new $mapper();\n }\n if(empty($field[self::MAP_KEY]))\n {\n $field[self::MAP_KEY] = $mapper->getKeyField();\n }\n if(empty($field[self::MAP_FOREIGN_KEY]))\n {\n $field[self::MAP_FOREIGN_KEY] = $alias . ucfirst($mapper->getKeyField());\n }\n break;\n\n case self::RELATION_CHILD:\n case self::RELATION_CHILDREN:\n if(empty($field[self::MAP_KEY]))\n {\n $field[self::MAP_KEY] = $this->getKeyField();\n }\n if(empty($field[self::MAP_FOREIGN_KEY]))\n {\n /** @var Core_Entity_Mapper_Abstract */\n $mapper = $field[self::MAP_MAPPER];\n $mapper = new $mapper();\n $backRelation = $mapper->_findRelationToMapperSettings(get_class($this),\n self::RELATION_PARENT);\n if($backRelation != null && !empty($backRelation[self::MAP_FOREIGN_KEY]))\n {\n $field[self::MAP_FOREIGN_KEY] = $backRelation[self::MAP_FOREIGN_KEY];\n }\n else\n {\n $field[self::MAP_FOREIGN_KEY] = $this->_getPureModelNameField() . ucfirst($this->getKeyField());\n }\n }\n if(!isset($field[self::MAP_SAVE]))\n {\n $field[self::MAP_SAVE] = true;\n }\n if(!isset($field[self::MAP_DELETE]))\n {\n $field[self::MAP_DELETE] = true;\n }\n break;\n\n case self::RELATION_M2M:\n /** @var Core_Entity_Mapper_Abstract */\n $targetMapper = $field[self::MAP_MAPPER];\n $targetMapper = new $targetMapper();\n\n /** @var Core_Entity_Mapper_Abstract */\n $middleMapper = $field[self::MAP_MIDDLE_MAPPER];\n $middleMapper = new $middleMapper();\n if(empty($field[self::MAP_KEY]))\n {\n $field[self::MAP_KEY] = $this->getKeyField();\n }\n if(empty($field[self::MAP_FOREIGN_KEY]))\n {\n $backRelation = $middleMapper->_findRelationToMapperSettings(get_class($this),\n self::RELATION_PARENT);\n if($backRelation == null)\n {\n throw new Core_Entity_Exception('Middle Mapper Not configured for m2m relation \"' . get_class($this) . '->' . get_class($middleMapper) . '\"');\n }\n if($backRelation != null && !empty($backRelation[self::MAP_FOREIGN_KEY]))\n {\n $field[self::MAP_FOREIGN_KEY] = $backRelation[self::MAP_FOREIGN_KEY];\n }\n else\n {\n $field[self::MAP_FOREIGN_KEY] = $this->_getPureModelNameField() . ucfirst($this->getKeyField());\n }\n }\n $field[self::MAP_SAVE] = false;\n $field[self::MAP_DELETE] = false;\n break;\n\n default:\n $log = Core_Log_Manager::getInstance()->getLog('default');\n if(!empty($log))\n {\n $log->log(\"[\" . get_class($this) . \"]\\t\" . 'Unknown relation type \"' . $field[self::MAP_TYPE] . '\"',\n Zend_Log::NOTICE);\n }\n throw new Core_Entity_Exception('Unknown relation type \"' . $field[self::MAP_TYPE] . '\"');\n break;\n }\n $this->_map[$alias] = $field;\n }\n }\n }", "public function tap(callable $callback): NonEmptyMap;", "public function hasMapping();", "public function clearRules()\r\n\t{\r\n\t \t$this->mapping_rules = array();\r\n\t}", "function cleanValueMapMappings(array $mappings) {\n\t$cleanedMappings = $mappings;\n\n\tforeach ($cleanedMappings as $key => $mapping) {\n\t\tif (zbx_empty($mapping['value']) && zbx_empty($mapping['newvalue'])) {\n\t\t\tunset($cleanedMappings[$key]);\n\t\t}\n\t}\n\n\treturn $cleanedMappings;\n}", "public function handleBeginMap() {\n\t\t$this->resetScores();\n\t}", "public function testMappingFallback()\n {\n $this\n ->client\n ->request(\n 'GET',\n '/fake/entity/mapped/fallback/1'\n );\n }", "function get_map(array $map)\n{\n\tforeach($map as $k => $v)\n\t{\n\t\tif(get_has($k))\n\t\t{\n\t\t\t$v(get($k));\n\t\t}\n\t}\n}", "public function importNormalizationMap($map)\r\n\t{\r\n\t\tif (!empty($map)) {\r\n\t\t\tforeach ($map as $mapping) {\r\n\t\t\t\tlist($keyword, $ingredientId) = $mapping;\r\n\r\n\t\t\t\t$query = 'INSERT IGNORE INTO normalizationMap\r\n\t\t\t\t\tSET keyword = \"'.$this->_db->escape($keyword).'\",\r\n\t\t\t\t\t\tingredientID = '.(int) $ingredientId;\r\n\t\t\t\t$this->_db->setQuery($query);\r\n\t\t\t\t$this->_db->query();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "final public function remove(...$values):Main\\Map\n {\n $this->checkAllowed('remove');\n $return = $this->onPrepareThis('remove');\n $data =& $return->arr();\n $data = Base\\Arrs::valuesStrip($return->prepareValues(...$values),$data,$this->isSensitive());\n\n return $return->checkAfter();\n }", "public function recreateMapsIfTriggered()\n {\n if ($this->isRecreationTriggered) {\n $this->recreateMaps();\n }\n }", "function deleteValueMapMappings(array $mappingIds) {\n\tDB::delete('mappings', array('mappingid' => $mappingIds));\n}", "protected function update_tables($map)\n\t{\n\t\t\n\t}", "public function testIfReturnsMapBag()\n {\n $factory = new FileSystemMapFactory();\n $result = $factory->create($this->data);\n\n $this->assertInstanceOf('\\SyncFS\\Map\\MapBag', $result);\n }", "abstract public function map($data);", "public function replaceMap() : self\n {\n // Map enums key and value pairs only if enums have values\n if ($this->enumsHaveValues()) {\n $mapStub = file_get_contents(__DIR__ . '/../stubs/map.stub');\n $this->stub = str_replace('DummyMap', $mapStub, $this->stub);\n $this->replaceMapPairs();\n } else {\n $this->stub = str_replace('DummyMap', '', $this->stub);\n }\n\n return $this;\n }", "public function updateMap(){\n $out = '';\n\n preg_match( '/<phpDBMapper:map>(.*)<\\/phpDBMapper:map>/s', $this->template, $m );\n\n foreach( $this->tableMapper as $c ){\n $tmp = $m[1];\n\n foreach( $c as $key=>$val ){\n $tmp = str_replace( '%'. $key .'%', $val, $tmp );\n $tmp = str_replace(array(\"\\n\", \"\\r\"), '', $tmp);\n }\n\n $out .= $tmp . \"\\n\";\n }\n\n $this->template = preg_replace( '/<phpDBMapper:map[^>]*?>.*?<\\/phpDBMapper:map>/is', $out, $this->template );\n return $this->template;\n }", "public function map(Closure $mutate): Result;", "public function setMap($map) {\n $map = \n $this->map = $map;\n }", "protected function transformMapToCallback($map, $mockExtension)\n {\n $getURL = function ($value) {\n return $value->RelativeLink();\n };\n\n $callbacks = [];\n $count = 0;\n foreach ($map as $urls) {\n ++$count;\n list($toDelete, $toUpdate) = $urls;\n $callbacks[] = new \\PHPUnit_Framework_MockObject_Stub_ReturnCallback(\n function () use ($toDelete, $toUpdate, $mockExtension, $getURL, $count) {\n $this->assertSame(\n $toDelete,\n array_map($getURL, $mockExtension->getToDelete()),\n 'Failed on delete, iteration ' . $count\n );\n $mockExtension->setToDelete([]);\n $this->assertSame(\n $toUpdate,\n array_map($getURL, $mockExtension->getToUpdate()),\n 'Failed on update, iteration ' . $count\n );\n $mockExtension->setToUpdate([]);\n }\n );\n }\n return $callbacks;\n }", "public function clean(\\Location $location, array $map)\n {\n $location->setStatus(self::ACTION_CLEAN);\n $x = $location->getX();\n $y = $location->getY();\n $map[$y][$x] = self::ACTION_CLEAN;\n return $map;\n }", "private function deleteSiteMap()\n {\n foreach (glob(DIR_MAIN . '*.xml') as $file) {\n if (strpos($file, 'sitemap')) {\n unlink($file);\n }\n }\n }", "public function seedUnmap()\n\t{\n\t\t// Tag, C1, C2, $Expected, Exception\n\t\treturn array(\n\t\t\t\t// OK\n\t\t\t\tarray('tag', 1, 4, true),\n\t\t\t\t// OK without type\n\t\t\t\tarray(null, 1, 4, true),\n\t\t\t\t// Bad request\n\t\t\t\tarray('tag', 'foo', 5, false),\n\t\t\t\t// No type exception\n\t\t\t\tarray(null, 1, 7, null, true),\n\t\t\t\t// No type exception\n\t\t\t\tarray(null, 1, null, null, true)\n\t\t\t\t);\n\t}", "abstract protected function buildMap();", "protected function map($array, $map, &$object) {\r\n \r\n try {\r\n // Convert result object to an array\r\n $objVars = get_object_vars($array);\r\n \r\n foreach ($map as $field => $method) {\r\n if (isset($objVars[$field]))\r\n $object->$method($objVars[$field]);\r\n }\r\n $object->setObjectState(true);\r\n } catch (\\Exception $e) {\r\n throw $e;\r\n }\r\n }", "public function clear() : ObjectMap\n {\n $this->entries = [];\n\n return $this;\n }", "public function testWithObjectMap() : void {\n $bob = Record::fromName(\"bob\");\n $result = Result::fromResponse(\n Response::fromQueriedRecords(null, $bob),\n [Example::TYPE => Example::class]\n );\n\n $first = $result->first();\n $this->assertInstanceOf(Example::class, $first);\n $this->assertEquals($bob[\"Id\"], $first->Id);\n $this->assertEquals($bob[\"Name\"], $first->Name);\n }", "public function testBuildMarshalMapNonArrayData(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $translate = $table->behaviors()->get('Translate');\n\n $map = $translate->buildMarshalMap($table->marshaller(), [], []);\n $entity = $table->newEmptyEntity();\n $result = $map['_translations']('garbage', $entity);\n $this->assertNull($result, 'Non-array should not error out.');\n $this->assertEmpty($entity->getErrors());\n $this->assertEmpty($entity->get('_translations'));\n }", "public function generateMap()\n {\n try\n {\n // Select all published articles and pages.\n // Lessons and other new stuff to be added upon needed.\n $pgs = ORM::factory( 'Page' )\n ->where( 'status', '>', 0 )\n ->find_all()->as_array();\n\n $articles = ORM::factory( 'Article' )\n ->where( 'status', '>', 0 )\n ->find_all()->as_array();\n \n // Place found URLs into the container array.\n $pages = [];\n foreach ( array_merge( $pgs, $articles ) as $value )\n array_push ( $pages, $value->make_full_url () );\n \n // Select whatever is already in the map...\n $urls = [];\n foreach ( $this->map->children() as $node )\n $urls[] = ( string )$node->loc;\n\n // Delete redundant links\n foreach ( array_diff( $urls, $pages ) as $url )\n $this->removeEntry( $url, FALSE, TRUE );\n\n // Add missing links.\n foreach ( array_diff( $pages, $urls ) as $uri )\n $this->addEntry ( $uri, NULL, FALSE, TRUE );\n\n // Save result into the file.\n return $this->save();\n }\n catch ( Exception $e )\n {\n Kohana::$log->add( LOG_ERR, $e->getMessage() );\n return FALSE;\n }\n }", "public function testBuildMarshalMapUpdateExistingEntities(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', [\n 'fields' => ['title', 'body'],\n ]);\n $translate = $table->behaviors()->get('Translate');\n\n $entity = $table->newEmptyEntity();\n $es = $table->newEntity(['title' => 'Old title', 'body' => 'Old body']);\n $en = $table->newEntity(['title' => 'Old title', 'body' => 'Old body']);\n $entity->set('_translations', [\n 'es' => $es,\n 'en' => $en,\n ]);\n $map = $translate->buildMarshalMap($table->marshaller(), [], []);\n $data = [\n 'en' => [\n 'title' => 'English Title',\n ],\n 'es' => [\n 'title' => 'Spanish Title',\n ],\n ];\n $result = $map['_translations']($data, $entity);\n $this->assertEmpty($entity->getErrors(), 'No validation errors.');\n $this->assertSame($en, $result['en']);\n $this->assertSame($es, $result['es']);\n $this->assertSame($en, $entity->get('_translations')['en']);\n $this->assertSame($es, $entity->get('_translations')['es']);\n\n $this->assertSame('English Title', $result['en']->title);\n $this->assertSame('Spanish Title', $result['es']->title);\n $this->assertSame('Old body', $result['en']->body);\n $this->assertSame('Old body', $result['es']->body);\n }", "public function testAccessMappingsInvalid(): void\n {\n $helper = new AccessTokenMappingHelper();\n\n $handler = new InvalidMappingHandlerStub();\n\n $this->expectException(InvalidMappingException::class);\n $this->expectExceptionMessage(\n 'Unknown mapping format. Mapping must return a multidimensional array with a single key.'\n );\n\n $helper->buildIndexMappings($handler);\n }", "public function clearRootAssetMappings();", "public function setMap($map) {\n\t\t$maps = $this->static->maps();\n\t\t$this->map = $maps[$map];\n\t}", "private function restorePagesets() {\n foreach ($this->oldPagesetMappingDatabase as $pageSet) {\n if ($pageSet['page_set_id'] < CP_FIRST_CUSTOM_PAGESET_ID && !($pageSet['attr'] & UA_ATTR_ENABLED)) {\n // since the page set was previously NOT enabled, update the database without the enabled flag\n \\RightNow\\Api::cp_ua_mapping_update(array(\n 'page_set_id' => $pageSet['page_set_id'],\n 'attr' => $pageSet['attr'] | !UA_ATTR_ENABLED\n ));\n }\n }\n if(!$this->skipDeploy) {\n if ($this->oldPagesetMapping !== false) {\n try {\n FileSystem::filePutContentsOrThrowExceptionOnFailure($pageSetMappingPath, $pageSetMapping);\n }\n catch (\\Exception $e) {\n //Don't throw error during unit tests\n }\n }\n else {\n @unlink($pageSetMappingPath);\n }\n }\n }", "public function rebuildFromBase( EntityMap $map ): void {\n $current = clone $this;\n\n $this->key = $map->key;\n if ( $current->key !== null ) {\n $this->key = $current->key;\n }\n\n $this->inboundMap = array_merge( $map->inboundMap, $current->inboundMap );\n $this->outboundMap = $map->outboundMap;\n foreach ( $current->outboundMap as $propName => $mapping ) {\n if ( is_string( $mapping ) ) {\n $this->outboundMap[$propName] = $mapping;\n continue;\n }\n\n $baseMapping = array_key_exists( $propName, $map->outboundMap )? $map->outboundMap[$propName] : [];\n $this->outboundMap[$propName] = array_merge( $baseMapping, $mapping );\n }\n\n unset( $current );\n }", "public function changeDefaultMap() \n\t{\n \t\t$mapId = $_POST['mapId'];\n\t\t$gameId = $_SESSION['jogoid'];\n\n\t\t$this->model->removeDefaultMapByGame($gameId);\n\t\t$this->model->defineDefaultMap($mapId);\n\t}", "public function test_add_and_get_mapping_work_as_expected()\n {\n $expected = Web::class;\n\n SourceFactory::addMapping('unknown', Web::class);\n $actual = SourceFactory::getMapping('unknown');\n\n $this->assertEquals($expected, $actual);\n }", "public function reverseMap(): MappingInterface;", "function test_getMapById() {\r\n\t\t$myArray= MemberClassesDB::getMap('memberClassId', 'memberClassName');\r\n\t\t$this->assertEqual($myArray['1'], \"reader\",\r\n\t\t\t\t\"Should return reader for key of 1 but returned \".$myArray['1']);\r\n\t\t$this->assertEqual($myArray['2'], 'nosher',\r\n\t\t\t\t\"Should return nosher for key of 2 but returned \".$myArray['2']);\r\n\t}", "function mkd_re_enable_maps_in_admin() {\n return true;\n }", "public function regenerateMaps(): static\n {\n $this->generateMaps = true;\n return $this;\n }", "protected static function _ensureCMapInstance(&$cmap) {}", "function mpfy_duplicate_location_map_meta($post_id) {\n\t$location = new Mpfy_Map_Location($post_id);\n\t$maps = $location->get_maps();\n\n\tdelete_post_meta($post_id, '_map_location_map_id');\n\tforeach ($maps as $map_id) {\n\t\tadd_post_meta($post_id, '_map_location_map_id', $map_id);\n\t}\n}", "function newMap($map) {\n\n\t\t// log if not a restart\n\t\t$this->server->gamestate = Server::RACE;\n\t\tif ($this->restarting == 0)\n\t\t\t$this->console_text('Begin Map');\n\n\t\t// refresh game info\n\t\t$this->client->query('GetCurrentGameInfo', 1);\n\t\t$gameinfo = $this->client->getResponse();\n\t\t$this->server->gameinfo = new Gameinfo($gameinfo);\n\n\t\t// check for restarting map\n\t\t$this->changingmode = false;\n\t\tif ($this->restarting > 0) {\n\t\t\t// check type of restart and signal an instant one\n\t\t\tif ($this->restarting == 2) {\n\t\t\t\t$this->restarting = 0;\n\t\t\t} else { // == 1\n\t\t\t\t$this->restarting = 0;\n\t\t\t\t// throw postfix 'restart map' event\n\t\t\t\t$this->releaseEvent('onRestartMap2', $map);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// refresh server name & options\n\t\t$this->getServerOptions();\n\n\t\t// reset record list\n\t\t$this->server->records->clear();\n\t\t// reset player votings\n\t\t//$this->server->players->resetVotings();\n\n\t\t// create new map object\n\t\t$map_item = new Map($map);\n\n\t\t// in Rounds/Team/Cup mode if multilap map, get forced laps\n\t\tif ($map_item->laprace &&\n\t\t ($this->server->gameinfo->mode == Gameinfo::RNDS ||\n\t\t $this->server->gameinfo->mode == Gameinfo::TEAM ||\n\t\t $this->server->gameinfo->mode == Gameinfo::CUP)) {\n\t\t\t$map_item->forcedlaps = $this->server->gameinfo->forcedlaps;\n\t\t}\n\n\t\t// obtain map's GBX data, MX info & records\n\t\t$map_item->gbx = new GBXChallMapFetcher(true);\n\t\ttry\n\t\t{\n\t\t\t$map_item->gbx->processFile($this->server->mapdir . $map_item->filename);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\ttrigger_error($e->getMessage(), E_USER_WARNING);\n\t\t}\n\t\t$map_item->mx = findMXdata($map_item->uid, true);\n\n\t\t// throw main 'begin map' event\n\t\t$this->releaseEvent('onBeginMap', $map_item);\n\n\t\t// log console message\n\t\t$this->console('map changed [{1}] >> [{2}]',\n\t\t stripColors($this->server->map->name, false),\n\t\t stripColors($map_item->name, false));\n\n\t\t// check for relay server\n\t\tif (!$this->server->isrelay) {\n\t\t\t// check if record exists on new map\n\t\t\t$cur_record = $this->server->records->getRecord(0);\n\t\t\tif ($cur_record !== false && $cur_record->score > 0) {\n\t\t\t\t$score = ($this->server->gameinfo->mode == Gameinfo::STNT ?\n\t\t\t\t str_pad($cur_record->score, 5, ' ', STR_PAD_LEFT) :\n\t\t\t\t formatTime($cur_record->score));\n\n\t\t\t\t// log console message of current record\n\t\t\t\t$this->console('current record on {1} is {2} and held by {3}',\n\t\t\t\t stripColors($map_item->name, false),\n\t\t\t\t trim($score),\n\t\t\t\t stripColors($cur_record->player->nickname, false));\n\n\t\t\t\t// replace parameters\n\t\t\t\t$message = formatText($this->getChatMessage('RECORD_CURRENT'),\n\t\t\t\t stripColors($map_item->name),\n\t\t\t\t trim($score),\n\t\t\t\t stripColors($cur_record->player->nickname));\n\t\t\t} else {\n\t\t\t\tif ($this->server->gameinfo->mode == Gameinfo::STNT)\n\t\t\t\t\t$score = ' ---';\n\t\t\t\telse\n\t\t\t\t\t$score = ' --.--';\n\n\t\t\t\t// log console message of no record\n\t\t\t\t$this->console('currently no record on {1}',\n\t\t\t\t stripColors($map_item->name, false));\n\n\t\t\t\t// replace parameters\n\t\t\t\t$message = formatText($this->getChatMessage('RECORD_NONE'),\n\t\t\t\t stripColors($map_item->name));\n\t\t\t}\n\t\t\tif (function_exists('setRecordsPanel'))\n\t\t\t\tsetRecordsPanel('local', $score);\n\n\t\t\t// if no maprecs, show the original record message to all players\n\t\t\tif (($this->settings['show_recs_before'] & 1) == 1) {\n\t\t\t\tif (($this->settings['show_recs_before'] & 4) == 4 && function_exists('send_window_message'))\n\t\t\t\t\tsend_window_message($this, $message, false);\n\t\t\t\telse\n\t\t\t\t\t$this->client->query('ChatSendServerMessage', $this->formatColors($message));\n\t\t\t}\n\t\t}\n\n\t\t// update the field which contains current map\n\t\t$this->server->map = $map_item;\n\n\t\t// throw postfix 'begin map' event (various)\n\t\t$this->releaseEvent('onBeginMap2', $map_item);\n\n\t\t// show top-8 & records of all online players before map\n\t\tif (($this->settings['show_recs_before'] & 2) == 2 && function_exists('show_maprecs')) {\n\t\t\tshow_maprecs($this, false, 1, $this->settings['show_recs_before']); // from chat.records2.php\n\t\t}\n\t}", "public function cleanLookupCache(){\n\t\t$this->lookup = [];\n\t}", "public function test_admin_change_map()\n {\n $this->assertTrue($this->btwServer->adminChangeMap('Al Basrah AAS v1'));\n }", "public function test_admin_change_map()\n {\n $this->assertTrue($this->btwServer->adminChangeMap('Al Basrah AAS v1'));\n }", "protected function hasMappingErrorOccurred() {}", "function document_map_function(&$data, $maps) {\n $stype = $data['subsystem'];\n $sid = $data['subsystem_id'];\n if ($stype > 0) {\n if (isset($maps[$stype][$sid])) {\n $data['subsystem_id'] = $maps[$stype][$sid];\n } else {\n return false;\n }\n }\n if (!isset($data['extra_path'])) {\n $data['extra_path'] = '';\n }\n if (!$data['author']) {\n $data['author'] = '';\n }\n return true;\n}", "public function getMapping() {}", "function get_all_posts_maps () {\r\n\t\t$table = $this->get_table_name();\r\n\t\t$maps = $this->wpdb->get_results(\"SELECT * FROM {$table} WHERE post_ids <> 'a:0:{}'\", ARRAY_A);\r\n\t\tif (is_array($maps)) foreach ($maps as $k=>$v) {\r\n\t\t\t$maps[$k] = $this->prepare_map($v);\r\n\t\t}\r\n\t\treturn $maps;\r\n\t}", "public function test_next_map()\n {\n $this->assertSame('Driel Single 01', $this->postScriptumServer->nextMap());\n }", "public function testIndexMappingDump()\n {\n $commandTester = $this->getCommandTester();\n $index = $this->getIndex(DummyDocument::class);\n $index->dropIndex();\n\n $this->assertFalse($index->indexExists());\n $commandTester->execute(\n [\n 'command' => IndexCreateCommand::NAME,\n '--dump' => null,\n ]\n );\n\n $this->assertContains(\n json_encode(\n $index->getIndexSettings()->getIndexMetadata(),\n JSON_PRETTY_PRINT\n ),\n $commandTester->getDisplay()\n );\n $this->assertFalse($index->indexExists());\n }", "public function testGenericPlusHashmap(): void\n {\n $this->assertEquals(\n $this->createHashmap($this->createString(), $this->createString()),\n $this->unify(\n $this->createGenericArray(),\n $this->createHashmap($this->createString(), $this->createString()),\n )\n );\n }", "public function testSubstituteEmptyMappingShouldThrowException(): void\n {\n $processor = new Processor(self::$defaultOptions);\n $fileObject = new \\SplFileObject('vfs://match.php.dist');\n\n $this->expectException(SubstituteException::class);\n $processor->substitute($fileObject, []);\n }", "public function testIndexGetMapping(): void\n {\n $index = $this->_createIndex();\n $mappings = new Mapping([\n 'id' => ['type' => 'integer', 'store' => true],\n 'email' => ['type' => 'text'],\n 'username' => ['type' => 'text'],\n 'test' => ['type' => 'integer'],\n ]);\n\n $index->setMapping($mappings);\n $index->refresh();\n $indexMappings = $index->getMapping();\n\n $this->assertEquals('integer', $indexMappings['properties']['id']['type']);\n $this->assertEquals(true, $indexMappings['properties']['id']['store']);\n $this->assertEquals('text', $indexMappings['properties']['email']['type']);\n $this->assertEquals('text', $indexMappings['properties']['username']['type']);\n $this->assertEquals('integer', $indexMappings['properties']['test']['type']);\n }", "public function testMap()\n {\n $subTotalExBonus = $this->salaryRowRepository->getSubTotalPerDayExclBonusBySalaryId(1);\n $subTotalBonus = $this->salaryRowRepository->getSubTotalPerDayBonusBySalaryId(1);\n $subTotalInclBonus = $this->salaryRowRepository->getSubTotalPerDayInclBonusBySalaryId(1);\n\n $salary = SalaryModelMapper::toModelWithSubTotal(\n $this->salaryModel,\n $subTotalExBonus,\n $subTotalBonus,\n $subTotalInclBonus\n );\n\n $this->assertInstanceOf(Collection::class, $salary->getSalaryDays());\n $this->assertInstanceOf(SalaryDayModel::class, $salary->getSalaryDays()->first());\n }", "public function setMap(array $map);", "public static function clear_all() {\n\t\tstatic::$cache = array();\n\t\tstatic::$mapping = array();\n\t}", "public function testProcessWeirdCase1()\n {\n $unit1 = $this->getUnit('test');\n $unit1->setReversedMapping([\n 'name' => 'map.field1',\n ]);\n $unit1->setReversedConnection([\n 'tid' => 'id',\n ]);\n $unit1->setMapping([\n 'field1' => 'name',\n 'field2' => 'code',\n 'id' => 'id',\n ]);\n $unit1->setFilesystem($this->getFS(\n [\n ['Pete', 'tst1', '1'],\n false,\n ]\n ));\n $unit1->setTmpFileName('customer_tmp.csv');\n\n $unit2 = $this->getUnit('test2');\n $unit2->setReversedMapping([\n 'name' => 'map.field1',\n ]);\n $unit2->setReversedConnection([\n 'tid' => 'parent_id',\n ]);\n $unit2->setMapping([\n 'field1' => 'name',\n 'field2' => 'code',\n 'parent_id' => 'id',\n ]);\n $unit2->setFilesystem($this->getFS(\n [\n ['Pete', 'tst1', '2'],\n false,\n ]\n ));\n $unit2->setTmpFileName('customer_tmp.csv');\n $unit2->setParent($unit1);\n\n $action = $this->getAction([$unit1, $unit2]);\n $action->process($this->getResultMock());\n }", "public function generateMap()\n {\n $map = array();\n $database = $this->binding->getDatabase()->getData();\n\n foreach ($database->classes as $class) {\n $map[$class->name] = $class->clusters;\n }\n\n $this->map = $map;\n $this->cache->save($this->getCacheKey(), $map);\n }", "private function maper(){\n\n\t\t$map = [];\n\n\t\tforeach($this::$tables as $table ){\n\n\t\t\t$tmp = explode(\"_\",$table);\n\n\t\t\tfor($i=0;$i<count($tmp);$i++){\n\n\t\t\t\t$tmp2 = array_slice($tmp,0,$i+1);\n\n\t\t\t\teval ('if(@ $map[\"'.implode('\"][\"',$tmp2).'\"]) true; else $map[\"'.implode('\"][\"',$tmp2).'\"]=[];');\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn $map;\n\n\t}", "public function deleteAllPersistentData()\n {\n foreach ($this->persistantMap as $key) {\n $this->store->delete($key);\n }\n }", "public function setUp()\n\t{\t\t\n\t\t$this->postMapper = phpDataMapper_TestHelper::mapper('Blogs', 'PostMapper');\n\t\t$this->dogMapper = phpDataMapper_TestHelper::mapper('Dogs', 'DogMapper');\n\t}", "public function testMappingCanBeSet()\n {\n $userService = new UserService($this->db);\n $mapping = array(\n 'first_name' => 'firstName',\n 'last_name' => 'lastName'\n );\n $userService->setMapping($mapping);\n $retrieved = $userService->getMapping();\n $this->assertSame($mapping, $retrieved);\n }", "private function mapProperties(): void\n {\n $this->properties = Collect::keyBy($this->collection->getProperties()->getValues(), 'identifier');\n }", "function input_mapping(array $mapping, $data)\n{\n $translated = array();\n\n foreach ($mapping as $from => $to) {\n if (array_key_exists($from, $data))\n {\n $translated[$to] = strlen(trim($data[$from])) > 0 ? trim($data[$from]) : null;\n }\n }\n\n return $translated;\n}" ]
[ "0.6634686", "0.6379087", "0.6328071", "0.621137", "0.61604434", "0.607613", "0.6015248", "0.5954359", "0.59191984", "0.58224505", "0.57307893", "0.56958497", "0.5681827", "0.55835557", "0.557874", "0.5568543", "0.55433726", "0.5522668", "0.55057627", "0.5485023", "0.5471936", "0.5419251", "0.54035795", "0.5363868", "0.5327994", "0.53183264", "0.52974105", "0.52757317", "0.5253433", "0.5253433", "0.52489203", "0.5208807", "0.5195029", "0.51922774", "0.5189457", "0.51779574", "0.51626027", "0.51518804", "0.5142168", "0.5137051", "0.5134624", "0.51167184", "0.51052594", "0.50991684", "0.50990325", "0.5098233", "0.50801736", "0.5080161", "0.5059355", "0.50533336", "0.5047647", "0.50302356", "0.50269073", "0.50203896", "0.5011854", "0.5010071", "0.50084925", "0.5007649", "0.5004692", "0.50043094", "0.50024927", "0.50015724", "0.49950725", "0.49941447", "0.4990329", "0.4988245", "0.498708", "0.49869347", "0.49786702", "0.49760255", "0.49712738", "0.49544373", "0.49512562", "0.49489456", "0.49481195", "0.49441957", "0.49150646", "0.49119025", "0.48996902", "0.48996902", "0.48983216", "0.48978418", "0.48850474", "0.48746", "0.4869975", "0.4862804", "0.48619214", "0.48611158", "0.4859579", "0.48590705", "0.48561606", "0.48537758", "0.48349082", "0.48276564", "0.48261395", "0.48235407", "0.4809549", "0.4808624", "0.48074198", "0.48051658" ]
0.62755156
3
Login as task manager.
protected function loginAsTaskManager() { $user = factory(User::class)->create(); $user->assignRole('task-manager'); $this->actingAs($user); View::share('user', $user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "public function executeLogin()\n {\n }", "public function login() {\n return $this->run('login', array());\n }", "public static function login()\n {\n //when you add the method you need to look at my find one, you need to return the user object.\n //then you need to check the password and create the session if the password matches.\n //you might want to add something that handles if the password is invalid, you could add a page template and direct to that\n //after you login you can use the header function to forward the user to a page that displays their tasks.\n // $record = accounts::findUser($_POST['email']);\n $user = accounts::findUserbyEmail($_REQUEST['email']);\n print_r($user);\n //$tasks = accounts::findTasksbyID($_REQUEST['ownerid']);\n // print_r($tasks);\n if ($user == FALSE) {\n echo 'user not found';\n } else {\n\n if($user->checkPassword($_POST['password']) == TRUE) {\n session_start();\n $_SESSION[\"userID\"] = $user->id;\n header(\"Location: index.php?page=tasks&action=all\");\n } else {\n echo 'password does not match';\n }\n }\n }", "static public function signinAsTaskUser($configuration, $connectionName = 'doctrine')\n {\n // sfCacheSessionStorage generates warnings if this is unset\n if (!isset($_SERVER['REMOTE_ADDR']))\n {\n $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; \n }\n \n // Create the context\n sfContext::createInstance($configuration);\n \n // initialize the database connection\n $databaseManager = new sfDatabaseManager($configuration);\n $connection = $databaseManager->getDatabase($connectionName)->getConnection();\n \n // Fetch the task user, create if necessary\n $user = self::getTaskUser();\n \n // Sign in as the task user\n sfContext::getInstance()->getUser()->signin($user, false);\n }", "public static function login()\n {\n (new Authenticator(request()))->login();\n }", "public function login() {\n\t\treturn $this->login_as( call_user_func( Browser::$user_resolver ) );\n\t}", "private function doLogin()\n {\n if (!isset($this->token)) {\n $this->createToken();\n $this->redis->set('cookie_'.$this->token, '[]');\n }\n\n $loginResponse = $this->httpRequest(\n 'POST',\n 'https://sceneaccess.eu/login',\n [\n 'form_params' => [\n 'username' => $this->username,\n 'password' => $this->password,\n 'submit' => 'come on in',\n ],\n ],\n $this->token\n );\n\n $this->getTorrentsFromHTML($loginResponse);\n }", "private function login(){\n \n }", "function login() {\n\t $login_parameters = array(\n\t\t \"user_auth\" => array(\n\t\t \"user_name\" => $this->username,\n\t\t \"password\" => $this->hash,\n\t\t \"version\" => \"1\"\n\t\t ),\n\t\t \"application_name\" => \"mCasePortal\",\n\t\t \"name_value_list\" => array(),\n\t );\n\n\t $login_result = $this->call(\"login\", $login_parameters);\n\t $this->session = $login_result->id;\n\t return $login_result->id;\n\t}", "private function login(): void\n {\n try {\n $promise = $this->client->requestAsync('POST', 'https://api.jamef.com.br/login',\n ['json' => ['username' => $this->username, 'password' => $this->password]]\n )->then(function ($response) {\n $json = json_decode($response->getBody());\n $this->token = $json->access_token;\n });\n $promise->wait();\n } catch (RequestException $e) {\n $this->result->status = 'ERROR';\n $this->result->errors[] = 'Curl Error: ' . $e->getMessage();\n }\n }", "public function loginAction()\n {\n $data = $this->getRequestData();\n if ($this->getDeviceSession(false)) {\n $this->setErrorResponse('Your device is already running a session. Please logout first.');\n }\n $session = Workapp_Session::login($data['username'], $data['password']);\n if (!$session) {\n $this->setErrorResponse('No user with such username and password');\n }\n $session->registerAction($_SERVER['REMOTE_ADDR']);\n $this->_helper->json(array('session_uid' => $session->getSessionUid()));\n }", "public function login();", "public function login();", "public function login_anonymously()\n\t{\n\t\treturn $this->login();\n\t}", "abstract protected function doLogin();", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "public function webtestLogin() {\n //$this->open(\"{$this->sboxPath}user\");\n $password = $this->settings->adminPassword;\n $username = $this->settings->adminUsername;\n // Make sure login form is available\n $this->waitForElementPresent('edit-submit');\n $this->type('edit-name', $username);\n $this->type('edit-pass', $password);\n $this->click('edit-submit');\n $this->waitForPageToLoad('30000');\n }", "protected function login()\n {\n $this->send(Response::nick($this->config['nick']));\n $this->send(Response::user(\n $this->config['nick'],\n $this->config['hostname'],\n $this->config['servername'],\n $this->config['realname']\n ));\n }", "function login()\n\t{\n\t\t$url = $this->url;\n\t\t$url = $url . \"/oauth2/token\";\n\n\t\t$oauth2_token_parameters = array(\n\t\t\t\"grant_type\" => \"password\",\n\t\t\t\"client_id\" => \"sugar\",\n\t\t\t\"client_secret\" => \"\",\n\t\t\t\"username\" => $this->username,\n\t\t\t\"password\" => $this->password,\n\t\t\t\"platform\" => \"base\"\n\t\t);\n\n\t\t$oauth2_token_result = self::call($url, '', 'POST', $oauth2_token_parameters);\n\n\t\tif ( empty( $oauth2_token_result->access_token ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $oauth2_token_result->access_token;\n\t}", "public function processLogin(): void;", "public function attemptLogin($token);", "public function login()\n {\n return Yii::$app->user->login($this);\n }", "protected function loginToContentpool() {\n // Login as user.\n $element = $this->getSession()->getPage();\n $element->fillField($this->getDrupalText('username_field'), 'dru_admin');\n $element->fillField($this->getDrupalText('password_field'), 'changeme');\n $submit = $element->findButton($this->getDrupalText('log_in'));\n if (empty($submit)) {\n throw new ExpectationException(sprintf(\"No submit button at %s\", $this->getSession()\n ->getCurrentUrl()));\n }\n $submit->click();\n // Quick check that user was logged in successfully.\n $this->assertSession()->pageTextContains(\"Member for\");\n }", "public function login()\n\t{\n\t\t$mtg_login_failed = I18n::__('mtg_login_failed');\n\t\tR::selectDatabase('oxid');\n\t\t$sql = 'SELECT oxid, oxfname, oxlname FROM oxuser WHERE oxusername = ? AND oxactive = 1 AND oxpassword = MD5(CONCAT(?, UNHEX(oxpasssalt)))';\n\t\t$users = R::getAll($sql, array(\n\t\t\tFlight::request()->data->uname,\n\t\t\tFlight::request()->data->pw\n\t\t));\n\t\tR::selectDatabase('default');//before doing session stuff we have to return to db\n\t\tif ( ! empty($users) && count($users) == 1) {\n\t\t\t$_SESSION['oxuser'] = array(\n\t\t\t\t'id' => $users[0]['oxid'],\n\t\t\t\t'name' => $users[0]['oxfname'].' '.$users[0]['oxlname']\n\t\t\t);\n\t\t} else {\n\t\t\t$_SESSION['msg'] = $mtg_login_failed;\n\t\t}\n\t\t$this->redirect(Flight::request()->data->goto, true);\n\t}", "public function login(HostInterface $host);", "function Login() {\n if($this->state!=\"AUTHORIZATION\")\n $this->AddError(\"connection is not in AUTHORIZATION state\");\n if($this->apop) :\n $this->POP3Command(\"APOP $this->user \".md5($this->greeting.$this->password),$this->dummy);\n else :\n $this->POP3Command(\"USER $this->user\",$this->dummy);\n $this->POP3Command(\"PASS $this->password\",$this->dummy);\n endif;\n $this->state=\"TRANSACTION\";\n }", "public function login() {\r\n\r\n // signal any observers that the user has logged in\r\n $this->setState(\"login\");\r\n }", "private function login(): void\r\n {\r\n $crawler = $this->client->request('GET', self::URL_BASE.'Home/Login');\r\n $form = $crawler->selectButton('Login')->form();\r\n $this->client->submit(\r\n $form,\r\n ['EmailAddress' => $this->username, 'Password' => $this->password]\r\n );\r\n }", "function mint_login($session, $username, $password)\n{\n // mint needs some info to log in\n $_post = array(\n \"username\" => $username,\n \"password\" => $password,\n \"task\" => \"L\", \n \"nextPage\" => \"\",\n );\n $session->URLFetch(\"https://wwws.mint.com/loginUserSubmit.xevent\", $_post);\n \n // and mint gives us a token to use\n return $session->GetElementValueByID(\"javascript-token\");\n}", "function login($username, $authtoken) {\n\t\t$this->login = ( $this->send(\"login $username\\npk=$authtoken\\n\\0\") ? true : true );\n\t}", "function login() {\n\t\t$this->getModule('Laravel4')->seeCurrentUrlEquals('/libraries/login');\n\t\t$this->getModule('Laravel4')->fillField('Bibliotek', 'Eksempelbiblioteket');\n\t\t$this->getModule('Laravel4')->fillField('Passord', 'admin');\n\t\t$this->getModule('Laravel4')->click('Logg inn');\n }", "public function login()\n {\n }", "public function login()\n {\n }", "public function actionManagerLogin() {\r\n\r\n if (Yii::app()->user->getstate('user_id')) {\r\n $url = BaseClass::manager_redirect(Yii::app()->user->getstate('user_id'));\r\n $this->redirect($url);\r\n } else {\r\n $model = new LoginForm('Admin');\r\n\r\n // if it is ajax validation request\r\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'LoginForm') {\r\n echo CActiveForm::validate($model);\r\n Yii::app()->end();\r\n }\r\n // collect user input data\r\n if (isset($_POST['LoginForm'])) {\r\n $model->attributes = $_POST['LoginForm'];\r\n //$flag=$model->login();\r\n $access = \"manager\";\r\n if ($model->login($access)) {\r\n echo 1;\r\n Yii::app()->end();\r\n //return true;\r\n } else {\r\n //echo $flag;\r\n echo 0;\r\n Yii::app()->end();\r\n //return false;\r\n }\r\n }\r\n // display the login form\r\n $this->m_str_title = yii::t('admin', 'admin_default_loginpage_title');\r\n //$this->layout = 'login';\r\n $this->render('managerlogin', array('model' => $model));\r\n }\r\n }", "protected function login( )\r\n {\r\n $this->sendData( 'USER', $this->_nick, $this->_nick . ' ' . $this->_user . ' : ' . $this->_realName );\r\n \r\n $this->sendData( 'NICK', $this->_nick );\r\n \r\n $this->_loggedOn = true;\r\n }", "protected function loginIfRequested() {}", "public function loginAction()\r\n\t{\r\n\t\t$this->setSubTitle($this->loginSubTitle);\r\n\t\t\r\n\t\t$this->view->form = new $this->loginFormClassName();\r\n\t\t\r\n\t\t$this->checkAuth();\r\n\t}", "public function login(){\n echo $this->name . ' logged in';\n }", "function Login()\n{\n\tglobal $txt, $context;\n\n\t// You're not a guest, why are you here?\n\tif (we::$is_member)\n\t\tredirectexit();\n\n\t// We need to load the Login template/language file.\n\tloadLanguage('Login');\n\tloadTemplate('Login');\n\twetem::load('login');\n\n\t// Get the template ready.... not really much else to do.\n\t$context['page_title'] = $txt['login'];\n\t$context['default_username'] =& $_REQUEST['u'];\n\t$context['default_password'] = '';\n\t$context['never_expire'] = false;\n\t$context['robot_no_index'] = true;\n\n\t// Add the login chain to the link tree.\n\tadd_linktree($txt['login'], '<URL>?action=login');\n\n\t// Set the login URL - will be used when the login process is done (but careful not to send us to an attachment).\n\tif (isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && strhas($_SESSION['old_url'], array('board=', 'topic=', 'board,', 'topic,')))\n\t\t$_SESSION['login_url'] = $_SESSION['old_url'];\n\telse\n\t\tunset($_SESSION['login_url']);\n}", "public function login()\n {\n\t\t$login = Input::get('login');\n\t\t$password = Input::get('password');\n\t\ttry{\n\t\t\n\t\t\t$user = Auth::authenticate([\n\t\t\t\t'login' => $login,\n\t\t\t\t'password' => $password\n\t\t\t]);\n\t\t\t$this->setToken($user);\n\t\t\treturn $this->sendResponse('You are now logged in');\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\treturn $this->sendResponse($e->getMessage());\n\t\t}\n }", "public function login($username, $password, $token);", "public function login(){\n\t\t\t$this->modelLogin();\n\t\t}", "public function loggedInToContentpool() {\n // Visit user login page on contentpool.\n $this->visitContentpoolPath('user/login');\n // Login to contentpool.\n $this->loginToContentpool();\n }", "public function login()\n\t{\n\t\t//Compute the hash code of the password submited by user\n\t\t$user_password_hash = $this->passwordEncrypt($this->user_info['user_password']);\n\t\t\n\t\t//Do datebase query to get the hash code of the password\n\t\t$db = BFL_Database :: getInstance();\n\t\t$stmt = $db->factory('select `user_id`,`user_password` from '.DB_TABLE_USER.' WHERE `user_name` = :user_name');\n\t\t$stmt->bindParam(':user_name', $this->user_info['user_name']);\n\t\t$stmt->execute();\n\t\t$rs = $stmt->fetch();\n\t\tif (empty($rs))\n\t\t\tthrow new MDL_Exception_User_Passport('user_name');\n\t\t\n\t\tif ($rs['user_password'] != $user_password_hash)\n\t\t\tthrow new MDL_Exception_User_Passport('user_password');\n\n\t\t//Set user session\n\t\t$auth = BFL_ACL :: getInstance();\n\t\t$auth->setUserID($rs['user_id']);\n\t}", "protected static function login() {\n $wsdl = FS_APP_ROOT.'/lib/third_party/salesforce/soapclient/partner.wsdl.xml';\n\n if (self::getSessionData('salesforce_sessionId') == NULL) {\n self::getConn()->createConnection($wsdl);\n self::getConn()->login(self::$_username, self::$_password . self::$_token);\n\n // Now we can save the connection info for the next page\n self::setSessionData('salesforce_location', self::getConn()->getLocation());\n self::setSessionData('salesforce_sessionId', self::getConn()->getSessionId());\n self::setSessionData('salesforce_wsdl', $wsdl);\n } else {\n // Use the saved info\n self::getConn()->createConnection(self::getSessionData('salesforce_wsdl'));\n self::getConn()->setEndpoint(self::getSessionData('salesforce_location'));\n self::getConn()->setSessionHeader(self::getSessionData('salesforce_sessionId'));\n }\n }", "public static function autoLogin()\n {\n return true;\n }", "public function login($name, $password);", "public function connect()\n\t{\n\t\tif (!Factory::getUser()->authorise('core.admin', 'com_tempus'))\n\t\t{\n\t\t\t$msg = Text::_( 'No tienes suficientes permisos para realizar esta acción' );\n\t\t\t$link = 'index.php?option=com_config&view=component&component=com_tempus#file_system';\n\t\t\t$this->setRedirect($link, $msg);\n\t\t\treturn;\n\t\t}\n\n\t\t$params = $this->getParams();\n\t\t//get the token\n\t\t$response = DropboxHelper::oauth2Token($params);\n\t\tif($response)\n\t\t{\n\t\t\t$response = json_decode($response);\n\n\t\t\t$access_token = $response->access_token;\n\n\t\t\t$new_params = array();\n\t\t\t$new_params['oauth2Token_dropbox'] = $access_token;\n\n\t\t\t$this->setParams($new_params);\n\n\t\t\t$link = 'index.php?option=com_config&view=component&component=com_tempus#file_system';\n\t\t\t$this->setRedirect($link);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJError::raiseWarning(100, Text::_('Ha habido un error en la solicitud del token a dropbox'));\n\t\t\t$link = 'index.php?option=com_config&view=component&component=com_tempus#file_system';\n\t\t\t$this->setRedirect($link);\n\t\t}\n\t}", "function AuthenticatorHelper(){\n $this->db = new DatabaseHelper();\n $this->logger = new Logger();\n \n if($_POST['login']){\n $username = $_POST['login']['username'];\n $password = $_POST['login']['password'];\n \n if($user = $this->login($username, $password) ){\n // $user being a user db row\n $_SESSION['user'] = $user;\n }\n else {\n $this->logger->setLog('notification', \"Attempted login failed, user name:<strong>$username</strong> password:<strong>$password</strong>\");\n $this->logger->sendEmail();\n $this->logout();\n }\n }\n if( $_GET['logout'] == 'yes' ) {\n $this->logout();\n }\n \n }", "function AdminLogin() {\r\n\t\t$this->DB();\r\n\t}", "public function loginActivities();", "public function login()\n {\n Yii::$app->settings->clearCache();\n if ($this->validate() && $this->checkSerialNumberLocal()) {\n Yii::$app->settings->checkFinalExpireDate();\n $flag = Yii::$app->user->login($this->getUserByPassword(), 0);\n Yii::$app->object->setShift();\n return $flag;\n }\n \n return false;\n }", "public function set_task($task)\n {\n $task = asciiwords($task);\n\n if ($this->user && $this->user->ID)\n $task = !$task ? 'mail' : $task;\n else\n $task = 'login';\n\n $this->task = $task;\n $this->comm_path = $this->url(array('task' => $this->task));\n\n if ($this->output)\n $this->output->set_env('task', $this->task);\n }", "public function login()\n\t{\n $identity = $this->getIdentity();\n if ($identity->ok) {\n\t\t\t$duration = $this->rememberMe ? 3600*24*30 : 0; // 30 days\n\t\t\tYii::app()->user->login($this->getIdentity(), $duration);\n\t\t\treturn true;\n \n\t\t} else\n\t\t\treturn false;\n\t}", "public function login()\n {\n $loginPostArray = $this->_getLoginPostArray();\n \n // Reset the client\n //$this->_client->resetParameters();\n \n // To turn cookie stickiness on, set a Cookie Jar\n $this->_client->setCookieJar();\n \n // Set the location for the login request\n $this->_client->setUri($this->_login_endPoint);\n \n // Set the post variables\n foreach ($loginPostArray as $loginPostKey=>$loginPostValue) {\n $this->_client->setParameterPost($loginPostKey, $loginPostValue);\n }\n \n // Submit the reqeust\n $response = $this->_client->request(Zend_Http_Client::POST);\n }", "public function loginDo(){\n\n\t\t$this->Login_model->loginDo();\t\n\n\t\n\n\t}", "public function actionLogin() {\n\t\t// If user is already logged in, go to \"todos\" page\n\t\tif( Yii::app()->user->isGuest===false )\n\t\t\t$this->redirect(array('todo/index'));\n\t\t\n\t\t$loginModel = new LoginForm();\n\t\t$registerModel = new RegisterForm();\n\t\t\n\t\t// Check if login data is present & login if so\n\t\tif( isset($_POST['LoginForm'])===true ) {\n\t\t\t// Populate login model with post data.\n\t\t\t$loginModel->attributes = $_POST['LoginForm'];\n\t\t\t\n\t\t\t// validate user input and redirect to the todo page\n\t\t\tif( $loginModel->validate()===true && $this->login($_POST['LoginForm'])===true )\n\t\t\t\t$this->redirect(array('todo/index'));\n\t\t}\n\t\t\n\t\t// Check if register data is present & register a new user if so.\n\t\tif( isset($_POST['RegisterForm'])===true ) {\n\t\t\t// Populate register model with post data.\n\t\t\t$registerModel->attributes = $_POST['RegisterForm'];\n\t\t\t\n\t\t\t// Validate the model & create a new user if the validation was ok.\n\t\t\tif( $registerModel->validate()===true ) {\n\t\t\t\t$user = new User();\n\t\t\t\t// User can be populated with the register form's post data since the\n\t\t\t\t// attribute names match together.\n\t\t\t\t$user->attributes = $_POST['RegisterForm'];\n\t\t\t\t\n\t\t\t\t// Save the user & login. Then redirect to the \"todos\" page.\n\t\t\t\tif( $user->save()===true && $this->login($_POST['RegisterForm'])===true )\n\t\t\t\t\t$this->redirect(array('todo/index'));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Render the login page.\n\t\t$this->render('login', array(\n\t\t\t'loginModel'=>$loginModel,\n\t\t\t'registerModel'=>$registerModel,\n\t\t));\n\t}", "public function login(){\n\n }", "public function actionDummyAdminLogin()\n\t{\n\t\t$identity = new DummyUserIdentity(1);\n\n\t\tif ($identity->authenticate())\n\t\t\tYii::app()->user->login($identity);\n\n\t\t$this->redirect(array('home/index'));\n\t}", "function login()\n\t{\n\t\t$GLOBALS['appshore']->session->createSession();\n\n\t\t$GLOBALS['appshore_data']['layout'] = 'auth';\n\t\t\n\t\t// define next action\n\t\t$result['action']['auth'] = 'login';\n\n\t\t// if a query_string was passed without being auth we keep it to deliver it later\n\t\tif( strpos( $_SERVER[\"QUERY_STRING\"], 'op=') !== false )\n\t\t\t$result['nextop'] = base64_encode($_SERVER[\"QUERY_STRING\"]);\n\t\t\t\n\t\treturn $result;\n\t}", "public function login() \n { \n $conf = $GLOBALS['CONF'];\n \n if (!$conf)\n { \n $conf = new Ossim_conf();\n $GLOBALS['CONF'] = $conf;\n } \n \n $version = $conf->get_conf('ossim_server_version');\n if ($conf->get_conf('login_enable_otp') == 'yes')\n {\n $login_method = 'otp';\n }\n else\n {\n ($conf->get_conf('login_enable_ldap') == 'yes') ? 'ldap' : 'pass'; // Login method is OTP, LDAP or PASSWORD\n }\n \n $conn = $this->conn;\n $orig_pass = $this->pass;\n \n $pass = (preg_match('/^[A-Fa-f0-9]{32}$/',$this->pass) && $this->external) ? $this->pass : md5($this->pass); //Used in Wizard Scheduler and Remote Interfaces\n $login = $this->login;\n \n \n $params1 = array($login); \n $query_1 = 'SELECT * FROM users WHERE login = ?'; \n \n $rs_1 = $conn->Execute($query_1, $params1);\n \n if (!$rs_1->EOF) \n {\n // Specific login method for Admin\n if ($rs_1->fields['login_method'] == 'pass' || $login == AV_DEFAULT_ADMIN) \n { \n $login_method = 'pass'; \n }\n }\n \n unset($query_1, $rs_1, $params1); \n \n $query = \"SELECT *, HEX(uuid) AS uuid FROM users WHERE login = ? AND pass = ?\";\n $params = array($login, $pass);\n $rs = $conn->Execute($query, $params); \n \n //Case 1: Login method is 'pass' or external process(AV Report Scheduler or Remote Interface) are trying to log in the system\n if (($login_method != 'ldap' || preg_match('/^[A-Fa-f0-9]{32}$/',$this->pass)) && (!$rs->EOF)) \n { \n //Generate a new session identifier\n session_regenerate_id(); \n $_SESSION['_user_language'] = $rs->fields['language'];\n $_SESSION['_is_admin'] = $rs->fields['is_admin'];\n $_SESSION['_timezone'] = self::get_timezone($rs->fields['timezone']);\n \n //Get secure_id\n if (valid_hex32($rs->fields['uuid']) && $rs->fields['uuid'] != '0x0')\n {\n $_SESSION['_secureid'] = $rs->fields['uuid'];\n }\n else\n {\n self::set_secure_id($conn, $login, sha1($login.'#'.$pass));\n $_SESSION['_secureid'] = sha1($login.\"#\".$pass);\n }\n \n ossim_set_lang($rs->fields['language']);\n $this->allowed_menus = $this->allowedMenus($login);\n \n $_SESSION['_user'] = $login;\n $_SESSION['_remote_login'] = base64_encode(Util::encrypt($login.'####'.$pass, $conf->get_conf('remote_key')));\n $_SESSION['_allowed_menus'] = $this->allowed_menus;\n \n if (preg_match('/pro|demo/i',$version)) \n {\n $_SESSION['_version'] = 'pro';\n $_SESSION['_user_vision'] = Acl::get_user_vision($conn);\n } \n else \n {\n $_SESSION['_version'] = 'opensource';\n $_SESSION['_user_vision'] = self::get_user_vision($conn);\n }\n\n //License info \n $_license = self::get_system_license();\n $_SESSION['_exp_date'] = $_license['appliance']['expire'];\n $_SESSION['_max_devices'] = $_license['appliance']['devices'];\n\n\n //Update Last login date\n self::update_logon_try($login); \n \n Session_activity::insert($conn);\n \n if($login == 'admin' || intval($rs->fields['is_admin']) == 1)\n {\n $this->check_all_user_accounts($conn);\n }\n\n return TRUE;\n }\n \n \n //Case 2: LDAP Login\n if ($login_method == 'ldap' && self::login_ldap($login, $orig_pass)) \n {\n $params = array($login);\n $query = 'SELECT *, HEX(uuid) AS uuid FROM users WHERE login = ?';\n \n //Logged user exists in Database\n if (($rs = $conn->Execute($query, $params)) && ($rs->EOF)) \n { \n if($conf->get_conf('login_ldap_require_a_valid_ossim_user') == 'no')\n {\n //Create the user with default perms\n $timezone = trim(`head -1 /etc/timezone`);\n \n if (preg_match('/pro|demo/i',$version))\n {\n $perms = $conf->get_conf('login_create_not_existing_user_menu');\n $entities[] = $conf->get_conf('login_create_not_existing_user_entity');\n \n $error = self::insert($conn, $login, 'ldap', md5($orig_pass), $login, '', $perms, $entities, array(), array(), NULL , NULL, $conf->get_conf('language') ,0, $timezone, 0);\n }\n else\n { \n list($menu_perms, $perms_check) = self::get_default_perms($conn);\n $perms = array();\n \n foreach($menu_perms as $mainmenu => $menus) \n {\n foreach($menus as $key => $menu)\n {\n $perms[$key] = TRUE;\n }\n }\n \n $template_id = self::update_template($conn, $login.'_perms', $perms);\n \n $error = self::insert($conn, $login, 'ldap', md5($orig_pass), $login, '', $template_id, '', array(), array() , '', '', $conf->get_conf('language') ,0, $timezone, 0);\n } \n \n User_config::copy_panel($conn, $login);\n \n $rs = $conn->Execute($query, $params); //Get information for created user\n }\n else\n {\n return FALSE;\n }\n }\n else\n {\n //Password update. Necessary for AV Report Scheduler and Remote Interfaces (save last password in Database)\n self::change_pass($conn, $login, $orig_pass, NULL, FALSE);\n }\n\n $_SESSION['_user_language'] = $rs->fields['language'];\n $_SESSION['_is_admin'] = $rs->fields['is_admin'];\n $_SESSION['_timezone'] = self::get_timezone($rs->fields['timezone']);\n \n //Get secure_id\n if (valid_hex32($rs->fields['uuid']) && $rs->fields['uuid'] != '0x0')\n {\n $_SESSION['_secureid'] = $rs->fields['uuid'];\n }\n else\n {\n self::set_secure_id($conn, $login, sha1($login.'#'.$pass));\n $_SESSION['_secureid'] = sha1($login.'#'.$pass);\n }\n \n ossim_set_lang($rs->fields['language']);\n $this->allowed_menus = $this->allowedMenus($login);\n \n //Generate a new session identifier\n session_regenerate_id(); \n $_SESSION['_user'] = $login;\n $_SESSION['_remote_login'] = base64_encode(Util::encrypt($login.'####'.$pass, $conf->get_conf('remote_key')));\n $_SESSION['_allowed_menus'] = $this->allowed_menus;\n \n if (preg_match('/pro|demo/i',$version)) \n {\n $_SESSION['_version'] = 'pro';\n $_SESSION['_user_vision'] = Acl::get_user_vision($conn);\n } \n else \n {\n $_SESSION['_version'] = 'opensource';\n $_SESSION['_user_vision'] = self::get_user_vision($conn);\n }\n\n //License info \n $_license = self::get_system_license();\n $_SESSION['_exp_date'] = $_license['appliance']['expire'];\n $_SESSION['_max_devices'] = $_license['appliance']['devices'];\n\n \n //Update last login date\n self::update_logon_try($login); \n \n Session_activity::insert($conn);\n \n if($login == 'admin' || intval($rs->fields['is_admin']) == 1)\n {\n $this->check_all_user_accounts($conn);\n }\n \n return TRUE;\n }\n \n //Case 3: OTP Login\n if ($login_method == 'otp' && self::login_otp($login, $orig_pass)) \n {\n $params = array($login);\n $query = 'SELECT *, HEX(uuid) AS uuid FROM users WHERE login = ?';\n \n //Logged user doesn't exist in Database\n if (($rs = $conn->Execute($query, $params)) && ($rs->EOF)) \n { \n if($conf->get_conf('login_ldap_require_a_valid_ossim_user') == 'no')\n {\n //Create the user with default perms\n $timezone = trim(`head -1 /etc/timezone`);\n \n if (preg_match('/pro|demo/i',$version))\n {\n $perms = $conf->get_conf('login_create_not_existing_user_menu');\n $entities[] = $conf->get_conf('login_create_not_existing_user_entity');\n \n $error = self::insert($conn, $login, 'otp', md5($orig_pass), $login, '', $perms, $entities, array(), array(), NULL , NULL, $conf->get_conf('language') ,0, $timezone, 0);\n }\n else\n { \n list($menu_perms, $perms_check) = self::get_default_perms($conn);\n $perms = array();\n \n foreach($menu_perms as $mainmenu => $menus) \n {\n foreach($menus as $key => $menu)\n {\n $perms[$key] = TRUE;\n }\n }\n \n $template_id = self::update_template($conn, $login.'_perms', $perms);\n \n $error = self::insert($conn, $login, 'otp', md5($orig_pass), $login, '', $template_id, '', array(), array() , '', '', $conf->get_conf('language') ,0, $timezone, 0);\n } \n \n User_config::copy_panel($conn, $login);\n \n $rs = $conn->Execute($query, $params); //Get information for created user\n }\n else\n {\n return FALSE;\n }\n }\n else\n {\n //Password update. Necessary for AV Report Scheduler and Remote Interfaces (save last password in Database)\n self::change_pass($conn, $login, $orig_pass, NULL, FALSE);\n }\n\n $_SESSION['_user_language'] = $rs->fields['language'];\n $_SESSION['_is_admin'] = $rs->fields['is_admin'];\n $_SESSION['_timezone'] = self::get_timezone($rs->fields['timezone']);\n \n //Get secure_id\n if (valid_hex32($rs->fields['uuid']) && $rs->fields['uuid'] != '0x0')\n {\n $_SESSION['_secureid'] = $rs->fields['uuid'];\n }\n else\n {\n self::set_secure_id($conn, $login, sha1($login.'#'.$pass));\n $_SESSION['_secureid'] = sha1($login.'#'.$pass);\n }\n \n ossim_set_lang($rs->fields['language']);\n $this->allowed_menus = $this->allowedMenus($login);\n \n //Generate a new session identifier\n session_regenerate_id(); \n $_SESSION['_user'] = $login;\n $_SESSION['_remote_login'] = base64_encode(Util::encrypt($login.'####'.$pass, $conf->get_conf('remote_key')));\n $_SESSION['_allowed_menus'] = $this->allowed_menus;\n \n if (preg_match('/pro|demo/i',$version)) \n {\n $_SESSION['_version'] = 'pro';\n $_SESSION['_user_vision'] = Acl::get_user_vision($conn);\n } \n else \n {\n $_SESSION['_version'] = 'opensource';\n $_SESSION['_user_vision'] = self::get_user_vision($conn);\n }\n\n //License info \n $_license = self::get_system_license();\n $_SESSION['_exp_date'] = $_license['appliance']['expire'];\n $_SESSION['_max_devices'] = $_license['appliance']['devices'];\n\n \n //Update last login date\n self::update_logon_try($login); \n \n Session_activity::insert($conn);\n \n if($login == 'admin' || intval($rs->fields['is_admin']) == 1)\n {\n $this->check_all_user_accounts($conn);\n }\n \n return TRUE;\n }\n\n return FALSE;\n }", "private function loginToWigle() {\n\t\t$this->sendCurlRequest(self::WIGLE_LOGIN_URL,array(\"credential_0\"=>$this->user,\"credential_1\"=>$this->password));\n }", "public function testCorrectCredentialsLogin()\n {\n $this->browse( function( Browser $browser ){\n $browser->visit( '/admin' );\n $browser->type( 'email', '[email protected]' );\n $browser->type( 'password', 'password' );\n $browser->click( '.button.is-primary' );\n $browser->waitFor( 'header' );\n $browser->assertSee( 'Dashboard' );\n });\n }", "public function login() {\n if (isset($_SESSION['userid'])) {\n $this->redirect('?v=project&a=show');\n } else {\n $this->view->login();\n }\n }", "public function actionAsync()\n {\n if (($lockout = $this->sessionBruteForceLock(0))) {\n return $this->sendArray(false, [Module::t('login_async_submission_limit_reached', ['time' => Yii::$app->formatter->asRelativeTime($lockout)])]);\n }\n\n $model = new LoginForm();\n $model->allowedAttempts = $this->module->loginUserAttemptCount;\n $model->lockoutTime = $this->module->loginUserAttemptLockoutTime;\n\n $loginData = Yii::$app->request->post('login');\n Yii::$app->session->remove('secureId');\n // see if values are sent via post\n if ($loginData) {\n $model->attributes = $loginData;\n if (($userObject = $model->login()) !== false) {\n Yii::$app->session->set('autologin', $model->autologin);\n // if the user has enabled the 2fa verification\n if ($userObject->login_2fa_enabled) {\n Yii::$app->session->set('secureId', $model->getUser()->id);\n return $this->sendArray(false, [], false, null, true);\n }\n\n // see if secure login is enabled or not\n if ($this->module->secureLogin) {\n // try to send the secure token to the given user email store the token in the session.\n if ($model->sendSecureLogin()) {\n Yii::$app->session->set('secureId', $model->getUser()->id);\n return $this->sendArray(false, [], true);\n }\n\n return $this->sendArray(false, [Module::t('login_async_secure_token_error')]);\n }\n\n if (!$model->autologin) {\n // auto login is disabled, disable the function\n Yii::$app->adminuser->enableAutoLogin = false;\n }\n if (Yii::$app->adminuser->login($userObject, Yii::$app->adminuser->cookieLoginDuration)) {\n return $this->sendArray(true);\n }\n }\n }\n\n return $this->sendArray(false, $model->getErrors(), false);\n }", "public function managerLoginAction($args){\t\n\n\t\t// access from url to manager\n\t\t$pluginsManager = new CompPluginsManager();\n\t\t$result = $pluginsManager->login($args);\n\n\t\tif($result == true){\n\t\t\t$status = 'success';\n\t\t}else{\n\t\t\t$status = 'error';\n\t\t}\n\n\t\treturn array(\n\t\t\t'response'=>json_encode(array('status'=>$status)),\n\t\t\t'type'=>'application/json'\n\t\t);\n\t}", "public function loginAsAdmin()\n {\n $I = $this;\n $I->amOnPage('/admin');\n $I->see('Sign In');\n $I->fillField('email', '[email protected]');\n $I->fillField('password', 'admin123');\n $I->dontSee('The \"Email\" field is required.');\n $I->dontSee('The \"Password\" field is required.');\n $I->click('Sign In');\n $I->see('Dashboard', '//h1');\n }", "function user_login ($username, $password) {\n global $CFG, $DB;\n\t$program = $this->config->program;\n\t$handle = popen($program, 'w');\n\tfwrite($handle, \"$username\\n$password\\n\");\n\tfflush($handle);\n\t$result = pclose($handle);\n return $result == 0;\n }", "public function login()\n {\n $authorized = $this->authorize( $_POST );\n if( !empty( $authorized ) && $authorized !== false ){\n $this->register_login_datetime( $authorized );\n ( new Events() )->trigger( 1, true );\n } else {\n ( new Events() )->trigger( 2, true );\n }\n }", "public function beginLogin() {\n return false;\n }", "public function getAuthManager();", "public function login( )\n\t\t{\n\t\t\treturn $this->get_session();\n\t\t}", "public function login(){\n\n\t\t$this->Login_model->login();\t\n\n\t\n\n\t}", "public function login()\n\t{\n\t\tif($this->_identity===null)\n\t\t{\n\t\t\t$this->_identity=new UserIdentity($this->username,$this->password);\n\t\t\t$this->_identity->authenticate();\n\t\t}\n\t\tif($this->_identity->errorCode===UserIdentity::ERROR_NONE)\n\t\t{\n\t\t\t$duration=$this->rememberMe ? 3600*24*30 : 0; // 30 days\n\t\t\tYii::app()->user->login($this->_identity,$duration);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "private function LoginUser($pm_user) {\n //set authenticated flag\n $this->app->user->setAuthenticated();\n //store user in session\n $this->app->user->setAttribute(\\Library\\Enums\\SessionKeys::UserConnected, $pm_user);\n //Brian\n \\Applications\\PMTool\\Helpers\\PmHelper::StoreSessionPm($this->app()->user(), $pm_user[0], true);\n //Test\n }", "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}", "public function login()\n\t{\n\t\tif ( func_get_args() ) {\n\t\t\t$args = phpSmug::processArgs( func_get_args() );\n\t\t\tif ( array_key_exists( 'EmailAddress', $args ) ) {\n\t\t\t\t// Login with password\n\t\t\t\t$this->request( 'smugmug.login.withPassword', array( 'EmailAddress' => $args['EmailAddress'], 'Password' => $args['Password'] ) );\n\t\t\t} else if ( array_key_exists( 'UserID', $args ) ) {\n\t\t\t\t// Login with hash\n\t\t\t\t$this->request( 'smugmug.login.withHash', array( 'UserID' => $args['UserID'], 'PasswordHash' => $args['PasswordHash'] ) );\n\t\t\t}\n\t\t\t$this->loginType = 'authd';\n\t\t\t\n\t\t} else {\n\t\t\t// Anonymous login\n\t\t\t$this->loginType = 'anon';\n\t\t\t$this->request( 'smugmug.login.anonymously' );\n\t\t}\n\t\t$this->SessionID = $this->parsed_response['Login']['Session']['id'];\n\t\treturn $this->parsed_response ? $this->parsed_response['Login'] : FALSE;\n\t}", "public function login(Request $request)\n {\n $this->validate($request, [\n 'email' => 'required|email',\n 'password' => 'required'\n ]);\n\n //attempt to log user in\n if(Auth::guard('manager')->attempt(['email' => $request->email, 'password' => $request->password], $request->remember)){\n \n \n //if successful, then redirect to intended location\n /*--- log activity ---*/\n activity()\n ->causedBy(Manager::where('id', Auth::guard('manager')->user()->id)->get()->first())\n ->tap(function(Activity $activity) {\n $activity->subject_type = 'System';\n $activity->subject_id = '0';\n $activity->log_name = 'Manager Login';\n })\n ->log(Auth::guard('manager')->user()->email.' logged in as a manager');\n \n return redirect()->intended(route('manager.dashboard'));\n }\n\n /*--- log activity ---*/\n activity()\n ->tap(function(Activity $activity) {\n $activity->causer_type = 'App\\Manager';\n $activity->causer_id = '-';\n $activity->subject_type = 'System';\n $activity->subject_id = '0';\n $activity->log_name = 'Manager Login Attempt';\n })\n ->log($request->email.' attempted to log in as a manager');\n \n //if unsuccessful then redirect back to login with the form data\n return redirect()->back()->withInput($request->only('email', 'remember'))->with(\"error_message\", \"Invalid login credentials\");\n }", "public function login(){\r\n if(IS_POST){\r\n //判断用户名,密码是否正确\r\n $managerinfo=D('User')->where(array('username'=>$_POST['username'],'pwd'=>md5($_POST['pwd'])))->find();\r\n if($managerinfo!==null){\r\n //持久化用户信息\r\n session('admin_id',$managerinfo['id']);\r\n session('admin_name', $managerinfo['username']);\r\n $this->getpri($managerinfo['roleid']);\r\n //登录成功页面跳到后台\r\n $this->redirect('Index/index');\r\n }else{\r\n $this->error('用户名或密码错误',U('Login/login'),1);\r\n }\r\n return;\r\n }\r\n $this->display();\r\n }", "public function login() {\n if ($this->validate()) {\n $this->setToken();\n return Yii::$app->user->login($this->getUser()/* , $this->rememberMe ? 3600 * 24 * 30 : 0 */);\n } else {\n return false;\n }\n }", "public static function LogIn ($userName = '', $password = '');", "public function login() {\n\t\tif ($this->_identity === null) {\n\t\t\t$this->_identity = new UserIdentity($this->username, $this->password, $this->loginType);\n\t\t\t$this->_identity->authenticate();\n\t\t}\n\t\tif ($this->_identity->errorCode === UserIdentity::ERROR_NONE) {\n\t\t\t$duration = $this->rememberMe ? 3600 * 24 * 30 : 0; // 30 days or the default session timeout value\n\t\t\tYii::app()->user->login($this->_identity, $duration);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function login();", "public function login()\n {\n //$this->username = $username; // we are gonnna use the above property: $username here\n //$this->password = $password;\n // we want to call authuser from within login so\n $this->auth_user(); // we don't need to pass any arguments here because we know the class properties above this line\n\n }", "public function doAuthentication();", "private function logInSimpleUser()\n {\n $this->user= self::$kernel->getContainer()->get('doctrine')->getRepository('AppBundle:User')->findOneById(41);\n\n $session = $this->client->getContainer()->get('session');\n\n $firewall = 'secured_area';\n $attributes = [];\n\n $token = new SamlSpToken(array('ROLE_USER'),$firewall, $attributes, $this->user);\n\n\n $session->set('_security_'.$firewall, serialize($token));\n $this->client->getContainer()->get('security.token_storage')->setToken($token);\n $session->save();\n\n $cookie = new Cookie($session->getName(), $session->getId());\n $this->client->getCookieJar()->set($cookie);\n }", "public function testApplicationLogin()\n {\n $this->visit('/login')\n ->type($this->user->email, 'email')\n ->type('password', 'password')\n ->press('submit')\n ->seeIsAuthenticatedAs($this->user)\n ->seePageIs('/admin/post');\n }", "public function loginAction()\n\t{\n if (isset($_COOKIE[Zend_Registry::get('config')->cookie->name])) {\n $rememberUser = unserialize(urldecode($_COOKIE[Zend_Registry::get('config')->cookie->name]));\n $account = new Infinite_Account();\n $account ->setEmail($rememberUser['user'])\n ->setPassword($rememberUser['password']);\n\n $validator = new Infinite_Account_LoginValidator();\n if ($validator->validate($account) && $account->login()) {\n $system = new Zend_Session_Namespace('System');\n $system->lng = 'nl';\n\n $mapper = new Infinite_Account_DataMapper();\n $usr = $mapper->getByAccount($account->getEmail());\n\n $accountNamespace = new Zend_Session_Namespace('userNamespace');\n $accountNamespace->fname = $usr->getFname();\n $accountNamespace->name = $usr->getName();\n $accountNamespace->email = $usr->getEmail();\n $accountNamespace->isLoggedIn = true;\n $_SESSION['tinymceLoggedIn'] = true;\n\n $this->_helper->redirector->gotoSimple('index', 'index');\n }\n }\n\n $account = new Infinite_Account();\n\t\tif ($this->getRequest()->isPost()) {\n\t\t\tif ($this->_getParam('login')) {\n \n $account->setEmail(strip_tags($this->_getParam('username')))\n ->setPassword(Zend_Registry::get('config')->encryption->salt . strip_tags($this->_getParam('password')) );\n\n \t\t\t$validator = new Infinite_Account_LoginValidator();\n \t\t\tif ($validator->validate($account) && $account->login()) {\n \t\t\t\t$system = new Zend_Session_Namespace('System');\n $system->lng = 'nl';\n \n $mapper = new Infinite_Account_DataMapper();\n $usr = $mapper->getByAccount(strip_tags($this->_getParam('username')));\n\n $accountNamespace = new Zend_Session_Namespace('userNamespace');\n $accountNamespace->fname = $usr->getFname();\n $accountNamespace->name = $usr->getName();\n $accountNamespace->email = $usr->getEmail();\n $accountNamespace->isLoggedIn = true;\n $_SESSION['tinymceLoggedIn'] = true;\n\n if ($this->_getParam('rememberMe') == '1') {\n $rememberUser = array(\n 'user' => $account->getEmail(),\n 'password' => $account->getPassword()\n );\n setcookie(Zend_Registry::get('config')->cookie->name,urlencode(serialize($rememberUser)),time()+(60*60*24*365),'/',Zend_Registry::get('config')->system->web->domain);\n }\n\n \t\t\t\t$this->_helper->redirector->gotoSimple('dashboard', 'index');\n }\n }\n if ($this->_getParam('forgot')) {\n $mapper = new Infinite_Account_DataMapper();\n $forgotten = $mapper->getByEmail(strip_tags($this->_getParam('email')));\n \n if ($forgotten && $forgotten->getEmail()) {\n // Restore new password in database\n $password = generatePassword();\n $sha1 = sha1(Zend_Registry::get('config')->encryption->salt . $password);\n $member = new Infinite_Account();\n $member ->setId($forgotten->getId())\n ->setPassword($sha1);\n $member->restorePassword($forgotten->getId(),$sha1);\n\n // Send new password by e-mail to user\n $mail = new Axento_Mail();\n $name = $forgotten->getFname().' '.$forgotten->getName();\n $mail->sendNewPassword($forgotten->getEmail(),$password,$name);\n\n $flashMessenger = $this->_helper->getHelper('FlashMessenger');\n $flashMessenger->addMessage('Uw nieuw paswoord werd verzonden naar '.$this->_getParam('email'));\n $this->_helper->redirector->gotoSimple('login', 'account');\n \n } else {\n //no user found\n $flashMessenger = $this->_helper->getHelper('FlashMessenger');\n $flashMessenger->addMessage('Er werd geen gebruiker gevonden met dit e-mailadres!');\n $this->_helper->redirector->gotoSimple('login', 'account');\n }\n \n }\n\t\t}\n\n\t\t$this->view->account = $account;\n\t\t$this->view->errors = Infinite_ErrorStack::getInstance('Infinite_Account');\n\n\t\tif (!$this->getRequest()->getParam('redirect')) {\n\t\t\t$this->_helper->layout->setLayout('login');\n\t\t}\n\t}", "public function accessTaskAuth($task_id){\n $bdd = $this->connectDB();\n $auth=false;\n\n $user_id=$_SESSION['id'];\n $req=$bdd->prepare('SELECT * from task, user_team WHERE task.team=user_team.id_team AND task.id= ? AND user_team.id_user=?');\n $req->execute(array($task_id, $user_id));\n if ($req->rowCount()){\n $auth=true;\n }\n\n $bdd=null;\n return $auth;\n }", "private function auto_login()\n {\n if ($this->_cookies->has('authautologin')) {\n $cookieToken = $this->_cookies->get('authautologin')->getValue();\n\n // Load the token\n $token = Tokens::findFirst(array('token=:token:', 'bind' => array(':token' => $cookieToken)));\n\n // If the token exists\n if ($token) {\n // Load the user and his roles\n $user = $token->getUser();\n $roles = $this->get_roles($user);\n\n // If user has login role and tokens match, perform a login\n if (isset($roles['registered']) && $token->user_agent === sha1(\\Phalcon\\DI::getDefault()->getShared('request')->getUserAgent())) {\n // Save the token to create a new unique token\n $token->token = $this->create_token();\n $token->save();\n\n // Set the new token\n $this->_cookies->set('authautologin', $token->token, $token->expires);\n\n // Finish the login\n $this->complete_login($user);\n\n // Regenerate session_id\n session_regenerate_id();\n\n // Store user in session\n $this->_session->set($this->_config['session_key'], $user);\n // Store user's roles in session\n if ($this->_config['session_roles']) {\n $this->_session->set($this->_config['session_roles'], $roles);\n }\n\n // Automatic login was successful\n return $user;\n }\n\n // Token is invalid\n $token->delete();\n } else {\n $this->_cookies->set('authautologin', \"\", time() - 3600);\n $this->_cookies->delete('authautologin');\n }\n }\n\n return false;\n }", "public function login(){\n\t\t\trequire_once(MODEL.\"ProcessAccount.php\");\n\t\t\t$this->model = new ProcessAccount();\n\t\t\t//Make sure username and password not empty\n\t\t\tif(!empty($_POST[\"username\"]) && !empty($_POST[\"password\"])){\n\t\t\t\t//Check exist account\n\t\t\t\tif($this->model->checkAccount($_POST['username'],$_POST['password'])){\n\t\t\t\t\t//Make seesion to account \n\t\t\t\t\t$this->model->getInfo($_POST['username'],$_POST['password']);\n\t\t\t\t}else{\n\t\t\t\t\t$error = \"Wrong username or password\";\n\t\t\t\t\t$this->view->render('admin/login.php',$error);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function doLogin($ceredentials){\n\t}", "public function run()\n {\n // Default Users (with their roles) ---------------------------------------------\n Apiato::call('User@CreateUserByCredentialsTask', [\n 'Super Admin',\n 'admin',\n '[email protected]',\n $isClient = false,\n ])->assignRole(Apiato::call('Authorization@FindRoleTask', ['admin']));\n\n Apiato::call('User@CreateUserByCredentialsTask', [\n 'Test Customer',\n 'testCustomer',\n '[email protected]',\n $isClient = false,\n ])->assignRole(Apiato::call('Authorization@FindRoleTask', ['customer']));\n\n Apiato::call('User@CreateUserByCredentialsTask', [\n 'Test Freelancer',\n 'testFreelancer',\n '[email protected]',\n $isClient = false,\n ])->assignRole(Apiato::call('Authorization@FindRoleTask', ['freelancer']));\n\n Apiato::call('User@CreateUserByCredentialsTask', [\n 'Test Project Manager',\n 'testProjectManager',\n '[email protected]',\n $isClient = false,\n ])->assignRole(Apiato::call('Authorization@FindRoleTask', ['project-manager']));\n\n Apiato::call('User@CreateUserByCredentialsTask', [\n 'Test CEO',\n 'testCeo',\n '[email protected]',\n $isClient = false,\n ])->assignRole(Apiato::call('Authorization@FindRoleTask', ['ceo']));\n // ...\n\n }", "public function execute()\n {\n $this->_authorize();\n $this->_authorize('entry');\n $this->_authorize('comment');\n\n $this->registerTask('new', 'edit');\n $this->registerTask('login', 'login');\n\n $this->registerTask('groups', 'groups');\n $this->registerTask('locations', 'locations');\n $this->registerTask('projects', 'projects');\n $this->registerTask('users', 'users');\n\n parent::execute();\n }", "public function login()\n\t{\n\t\tif($this->_identity===null)\n\t\t{\n\t\t\t$this->_identity=new UserIdentity($this->phone,$this->password);\n\t\t\t$this->_identity->authenticate();\n\t\t}\n\t\tif($this->_identity->errorCode===UserIdentity::ERROR_NONE)\n\t\t{\n $duration = 3600*24*30;\n\t\t\tYii::app()->user->login($this->_identity,$duration);\n\t\t\treturn true;\n\t\t}\n\t\t\t\n return false;\n\t}", "public function index() {\n $this->login();\n }", "function login() {\n\n $this->visitPath('/user/login');\n\n $loginForm = $this->getSession()->getPage()->findById('user-login-form');\n if (is_null($loginForm)) {\n throw new ExpectationException('Cannot find the login form.', $this->getSession()->getDriver());\n }\n\n $usernameField = $loginForm->findById('edit-name');\n $passwdField = $loginForm->findById('edit-pass');\n\n if (is_null($usernameField) or is_null($passwdField)) {\n throw new ExpectationException('Cannot find the authentication fields.', $this->getSession()->getDriver());\n }\n\n $usernameField->setValue($this->admin_username);\n $passwdField->setValue($this->admin_passwd);\n $loginForm->submit();\n\n $this->assertSession()->elementNotExists('css', '.messages--error');\n }", "public function action_login()\n {\n if(\\Auth::check())\n {\n \\Response::redirect('admin/dashboard');\n }\n\n // Set validation\n $val = \\Validation::forge('login');\n $val->add_field('username', 'Name', 'required');\n $val->add_field('password', 'Password', 'required');\n\n // Run validation\n if($val->run())\n {\n if(\\Auth::instance()->login($val->validated('username'), $val->validated('password')))\n {\n \\Session::set_flash('success', \\Lang::get('nvadmin.public.login_success'));\n \\Response::redirect('admin/dashboard');\n }\n else\n {\n $this->data['page_values']['errors'] = \\Lang::get('nvadmin.public.login_error');\n }\n }\n else\n {\n $this->data['page_values']['errors'] = $val->show_errors();\n }\n\n // Set templates variables\n $this->data['template_values']['subtitle'] = 'Login';\n $this->data['template_values']['description'] = \\Lang::get('nvadmin.public.login');\n $this->data['template_values']['keywords'] = 'login, access denied';\n }", "public function login()\n\t{\n\t\t$account = $_POST['account'];\n\t\t$password = $_POST['password'];\n\t\t$staff = D('Staff');\n\t\t$sql = \"select * from lib_staff where staff_id = '{$account}' and password='{$password}'\";\n\t\t$return = $staff->query($sql);\n\t\tif ($return) {\n\n\t\t\tcookie('staffAccount', $account, 3600 * 24);\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'success',\n\t\t\t\t'msg' => 'Welcome!'\n\t\t\t));\n\t\t\techo $json;\n\t\t} else {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'fail'\n\t\t\t));\n\t\t\techo $json;\n\t\t}\n\t}" ]
[ "0.618467", "0.6175975", "0.604869", "0.60438454", "0.5925457", "0.59057355", "0.5846533", "0.58246094", "0.5797072", "0.57736874", "0.5744761", "0.57443666", "0.57392716", "0.57392716", "0.5736101", "0.5699988", "0.56944746", "0.56714183", "0.55994856", "0.5594075", "0.558709", "0.55870247", "0.5585626", "0.5528671", "0.5521548", "0.5515947", "0.54878426", "0.5481833", "0.546714", "0.5441591", "0.5436951", "0.5420119", "0.5412764", "0.5412764", "0.5412245", "0.5408016", "0.540448", "0.53991765", "0.5387856", "0.5385607", "0.53685844", "0.5360411", "0.53575474", "0.5347562", "0.5342595", "0.53326577", "0.53325355", "0.53282475", "0.5324439", "0.5324008", "0.52955896", "0.52883303", "0.52797437", "0.5277234", "0.52771384", "0.52713144", "0.5263645", "0.5257352", "0.5254478", "0.52524066", "0.5251287", "0.52504474", "0.524614", "0.5244787", "0.5235989", "0.52358323", "0.52352566", "0.5220975", "0.5216228", "0.52160144", "0.52145857", "0.52082884", "0.5197365", "0.51973385", "0.5188299", "0.5183988", "0.5182459", "0.5173653", "0.51708424", "0.5170093", "0.5167094", "0.5160735", "0.5141686", "0.5138186", "0.5132655", "0.5130514", "0.5130469", "0.512793", "0.51276004", "0.512303", "0.5121177", "0.512114", "0.5120696", "0.51206005", "0.5118002", "0.5117597", "0.51166415", "0.5106825", "0.509905", "0.50945" ]
0.79556954
0
Show Create form task.
public function show_create_form_task() { $user = factory(User::class)->create(); $user->assignRole('task-manager'); $this->actingAs($user); View::share('user', $user); factory(User::class, 5)->create(); $response = $this->get('/tasks_php/create'); $response->assertSuccessful(); $response->assertViewIs('tasks.create_task'); $users = User::all(); $response->assertViewHas('users', $users); $response->assertSeeText('Create Task:'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('tasks.form_Create');\n }", "public function create()\n {\n return view(('tasks.create'));\n }", "public function create()\n {\n return view('task::create');\n }", "public function create() // create task page\n {\n\n // tasks form\n\n return view('todo.create');\n }", "public function create()\n {\n return view('projectmanager::admin.tasks.create');\n }", "public function create()\n {\n return view('task-create');\n }", "public function create()\n {\n return view('task.add-task');\n }", "public function create()\n {\n return view('tasks.create');\n }", "public function create()\n {\n return view('tasks.create');\n }", "public function create()\n {\n return view('tasks.create');\n }", "public function create()\n\t{\n\t\treturn View::make('roletasks.create');\n\t}", "public function create()\n {\n return view('WorkFlow.WorkTask.add');\n }", "public function create()\n {\n return view('employee_task.create');\n }", "public function create()\n {\n return view('task');\n }", "public function create()\n {\n return view('createTasks');\n }", "public function create()\n {\n return view('web.pages.new_tasks')\n ->with('projects',Project::all());\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n //Declaration of vars in order to use the same form template\n $task = new Task;\n $title = \"Nueva Tarea\";\n $txtButton = \"Agregar\";\n $route = route('tasks.store');\n $users = User::all();\n return view('tasks.create', compact('task','title','txtButton','route','users'));\n }", "public function create()\n {\n $project_id = request()->get('project_id');\n $project_members = ProjectMember::projectMembersDropdown($project_id);\n $priorities = ProjectTask::prioritiesDropdown();\n $statuses = ProjectTask::taskStatuses();\n\n return view('project::task.create')\n ->with(compact('project_members', 'priorities', 'project_id', 'statuses'));\n }", "public function create()\n {\n $this->getUser()->hasPermission(['insert'], 'auto_tasks');\n\n return view('autotasks.create');\n }", "public function create()\n {\n $cases = Casee::all();\n $users = User::all();\n $stages = Stage::all();\n\n return $this->view_('task.update',[\n 'object'=> new Task(),\n 'cases'=> $cases,\n 'users'=> $users,\n 'stages'=> $stages,\n ]);\n }", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n $task_types = TaskType::all();\n return view('partner/task/task-create', compact('task_types'));\n }", "public function create(TaskFormBuilder $form)\n {\n return $form->render();\n }", "public function createTask()\n\t{\n\t\tif ( $this->taskValidate() ) {\n\t\t\tTask::create([\n\t\t\t\t\t'name' => htmlspecialchars($_POST['inputTaskName']),\n\t\t\t\t\t'email' => htmlspecialchars($_POST['inputTaskMail']),\n\t\t\t\t\t'text' => htmlspecialchars($_POST['inputTaskText'])\n\t\t\t\t]);\n\t\t}\n\t\t// to index\n\t\t\theader('Location: /');\n\t}", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create() : bool\n {\n if( ! User::isLoggedIn()) {\n header(\"Location: /user/login\");\n }\n\n $model = new Task();\n $attributes = $this->request->body();\n $user_id = User::getLoggedInUserId();\n $attributes['user_id'] = $user_id;\n\n if($this->request->isPost() && $model->setAttributes($attributes)->validate() && $model->create() ) {\n\n header(\"Location: /task/index\");\n exit;\n }\n\n return $this->render('create', $model);\n }", "public function create()\n {\n //selectProject\n $users = $this->users->selectUser();\n $project = $this->projects->selectProject();\n return view('tasks.create',compact('project','users'));\n }", "public function create()\n {\n //\n return view('tasks.write');\n }", "public function actionCreate()\n {\n $model = new CompleteTask();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create()\n {\n if (! Gate::allows('tasks_manage')) {\n return abort(401);\n// return response('Permission Denied.', 403);\n }\n\n $projects = Project::select('id', 'name')->get();\n $users = User::select('id', 'name')->get();\n\n return view('admin.tasks.create', compact('projects', 'users'));\n }", "public function create()\n\t{\n $plan_id = Input::get('plan_id');\n $plan = $this->plan->find($plan_id);\n\t\treturn View::make('admin.plan_tasks.create',compact('plan'));\n\t}", "public function create()\n {\n if (!isset($_POST['name']) || !isset($_POST['creator'])) {\n call('pages', 'error');\n return;\n }\n $id = Project::insert($_POST['name'], $_POST['creator']);\n\n $project = Project::find($id);\n $tasks = Task::getAllForProject($_GET['id']);\n require_once('views/projects/show.php');\n }", "public function addTaskForm()\n {\n $this->checkIfLoggedIn();\n\n return view('new-task', [\n 'titlePart' => '| Add a task',\n 'user' => session()->get('user')\n ]);\n }", "public function getCreationFormTemplate()\n {\n return 'GithubFrontend:task/creation';\n }", "public function create()\n {\n // Get all projects\n $projects = Project::all();\n $data['projects'] = $projects;\n\n // Get all projects\n $teams = Team::all();\n $data['teams'] = $teams;\n\n // Return the task view.\n return view('task.create')->with('data', $data);\n }", "public function create()\n {\n\t\treturn view('worker.create');\n }", "public function create()\n\t{\n\t\t$sysflowStep = $this->sysFlowStepRepo->all();\n\t\treturn View::make('dynaflow::flowmanager.form', compact('sysflowStep'));\n\t}", "public function create()\n {\n $tasks = Task::all()->sortBy('priority');\n $least_priority = $tasks->count() > 0 ? $tasks->last()->priority : 0;\n return view('tasks.create', compact('least_priority'));\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create() // метод для создания\n {\n\n return view('project.create',\n [\n \"tasks\" => $this->tasks->all()\n ]\n );\n }", "public function create()\n\t{\n\t\treturn View::make('step.create');\n\t}", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n return view(\"thread.form\");\n }", "public function create()\n {\n //get view form\n return 'create Method';\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n\t{\n $summaries = Summaries::lists('name','id');\n\n return View::make('task.create',compact('summaries'));\n\t}", "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 // I skip using this create function because I use a modal form for inserting data using modal in index view via index function.\n }", "public function getCreate()\n {\n return view('task.task-create')\n ->with(['priority'=>PriorityModel::all()]);\n }", "public function create()\n {\n return view('admin.job.create');\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n $this->validateAccess();\n\n return view('general.form', ['setup' => [\n 'title' => __('New process'),\n 'action_link' => route('admin.landing.processes.index'),\n 'action_name' => __('Back'),\n 'iscontent' => true,\n 'action' => route('admin.landing.processes.store'),\n 'breadcrumbs' => [\n [__('Landing Page'), route('admin.landing')],\n [__('Processes'), route('admin.landing.processes.index')],\n [__('New'), null],\n ],\n ],\n 'fields'=>$this->getFields(), ]);\n }", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create() {\n\n\t\treturn view('/mailer/createform');\n\n\t}", "public function create()\n {\n //return view('marca.create');\n return 'Mostrando Formulario para crear Fabricantes';\n }", "public function create()\n\t{\t\n\t\t\n\t\t// load the create form (app/views/fbf_presenca/create.blade.php)\n\t\t$this->layout->content = View::make('fbf_presenca.create')\n;\n\t}", "public function create ()\n {\n return view('forms.create');\n }", "public function actionCreate()\n\t{\n\n\t\t$model=new Templetstandardtask;\n\t\tif(isset($_POST['Templetstandardtask']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Templetstandardtask'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->fTaskNo));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function create()\n\t{\t\n\t\t\n\t\t// load the create form (app/views/fbf_time/create.blade.php)\n\t\t$this->layout->content = View::make('fbf_time.create')\n;\n\t}", "public function create()\n {\n return view('tiny::form', [\n 'action_method' => 'create',\n 'form_action' => $this->currentRouteUrlDir().'/store',\n 'title' => 'Tiny URL Server',\n 'prompt' => 'Add New URL',\n 'message' => Session::get('message')\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n //\n return $this->render('create');\n\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n //\n //return view('tipos.create');\n }", "public function create()\n {\n return view('forms.cps.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 return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function create()\n {\n $this->resetInputFields();\n $this->openModal();\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n return view('jobseeker.create');\n }", "public function create()\n {\n $tasks = Task::all();\n $data = compact('tasks');\n return view('labels.create',$data);\n }", "public function create()\n {\n $form = 'create';\n\n\n return view(getView('backend.team.form'), compact('form'));\n }", "public function create()\n {\n return view('tasks.index');\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function create()\n {\n return view('requerimientos.create');\n }", "public function create()\n {\n return \"Formulário para cadastrar um novo cliente.\";\n }", "public function create()\n {\n $data['module'] = $this->module();\n return view(\"backend.{$this->module()['module']}.create-edit\", $data);\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n return $this->form->render('mconsole::personal.form');\n }", "public function createForm()\n {\n }", "public function create()\n {\n return view('job.add_job');\n }", "public function create()\n {\n //\n return view('admin.activity.create');\n }", "public function create()\n {\n return view('linha_do_tempo.create');\n }", "public function create()\n {\n return view('jobpost-create');\n \n }", "public function create()\n {\n return view('admin.activosFijos.create');\n }", "public function create()\n {\n\n return view(\"thread.create\");\n }", "public function create()\n {\n return view('agent.tuteurs.create');\n }", "public function create()\n {\n // Display form to create a new job\n return view('jobs.create');\n }", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n //esta vista es para crear un nuevo registro\n return view('wizard.create');\n }", "public function create()\n {\n return view('task-create', ['aBuildData' => Build::all(), 'aEmpData' => Employee::all()]);\n }", "public function create()\n\t{\n\n return View::make('admin.program.create');\n\n\t}", "public function create()\n {\n return view('profile.job.create');\n }" ]
[ "0.83006", "0.80128914", "0.8012868", "0.7993994", "0.7976243", "0.78447783", "0.7815096", "0.7810919", "0.7810919", "0.7793664", "0.7772025", "0.77439636", "0.77391636", "0.77141106", "0.7663464", "0.7645821", "0.7625751", "0.7625751", "0.7623814", "0.7609847", "0.760436", "0.7604137", "0.75745094", "0.75378746", "0.7518762", "0.75134176", "0.7507877", "0.74742526", "0.74742526", "0.74712235", "0.74692756", "0.73997366", "0.73885405", "0.738214", "0.73777264", "0.7346244", "0.7337149", "0.73358536", "0.7333265", "0.7325537", "0.73251826", "0.73247594", "0.73135495", "0.73000413", "0.7295388", "0.7266956", "0.72594935", "0.7248252", "0.7243539", "0.72352594", "0.7229297", "0.7224717", "0.7214379", "0.7208598", "0.72055185", "0.7198714", "0.7196943", "0.71764475", "0.7165497", "0.7163601", "0.71615213", "0.71533585", "0.7147759", "0.7111317", "0.7099406", "0.7096894", "0.70918316", "0.7090357", "0.7085252", "0.70833725", "0.7077947", "0.7074988", "0.7074988", "0.7074988", "0.7074988", "0.7065101", "0.7062827", "0.7057537", "0.70570767", "0.70515203", "0.7032295", "0.7030899", "0.70280755", "0.70245254", "0.70244044", "0.7021569", "0.701923", "0.70191985", "0.70191646", "0.7011632", "0.7001994", "0.69944865", "0.69923496", "0.69910854", "0.69872403", "0.69831765", "0.6981574", "0.69813395", "0.6978566", "0.6976735" ]
0.83771765
0
Show Edit form task.
public function show_edit_form_task() { $user = factory(User::class)->create(); $user->assignRole('task-manager'); $this->actingAs($user); View::share('user', $user); $task = factory(Task::class)->create(); factory(User::class, 5)->create(); $users = User::all(); $response = $this->get('/tasks_php/edit/'.$task->id); $response->assertSuccessful(); $response->assertViewIs('tasks.edit_task'); $task = Task::findOrFail($task->id); $response->assertViewHas('task', $task); $response->assertViewHas('users', $users); $response->assertSeeText('Edit Task:'); $response->assertSee($task->name); $response->assertSee($task->user->name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editTask() {\n return $this->render('enterprise/task/task_form.html.twig');\n }", "protected function editTaskAction() {}", "public\n function edit(\n Task $task\n ) {\n //\n }", "public function edit(Task $task)\r\n {\r\n //\r\n }", "public function edit(Task $task)\n {\n\n }", "public function edit(Task $task)\n {\n //Admin allow only \n abort_if(Gate::denies('user_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n\n //Declaration of vars in order to use the same form template\n $update = true;\n $title = \"Actualizar Tarea\";\n $txtButton = \"Actualizar\";\n $route = route('tasks.update',['task' => $task]);\n $users = User::all();\n return view('tasks.edit', compact('task','title','txtButton','route','users','update'));\n }", "public function edit(Task $task)\n {\n //\n }", "public function edit(Task $task)\n {\n //\n }", "public function edit(Task $task)\n {\n //\n }", "public function edit(Task $task)\n {\n //\n }", "public function edit(Task $task)\n {\n //\n }", "public function edit(Task $task)\n {\n //\n }", "public function edit(Task $task)\n {\n //\n }", "public function edit(Task $task)\n {\n //var_dump($task);\n }", "function edit() {\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->getDefaultViewForm();\n\n\t\tif (!$view) {\n\t\t\tthrow new Exception('Edit task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t// Hint the view that it's not a listing, but a form (KenedoView::display() uses it to set the right template file)\n\t\t$view->listing = false;\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 editTask($id)\n\t{\n\t\tif ( \\App\\is_admin() ) {\n\t\t\t$task = Task::whereId( (int)$id )->first();\n\t\t\techo twig()->render('edit.html', ['task' => $task]);\n\t\t} else {\n\t\t\theader('Location: /?err=auth');\n\t\t}\n\t}", "public function edit(Task $task)\n {\n return view('web.pages.edit_task')\n ->with('task',$task)\n ->with('projects',Project::all());\n }", "public function edit($id)\n {\n $task = Task::find($id);\n return view('tasks.form_edit',[\n 'task' => $task,\n ]);\n }", "public function edit($id)\n {\n $task = Task::find($id);\n return view('tasks.edit', compact('task'));\n }", "public function edit($id)\n {\n $task = Task::find($id);\n\n\n return view('tasks.edit')->withTask($task);\n }", "public function edit(TaskFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit(Task $task)\n {\n return view('teacher/edittask',\n [ 'task' =>$task ]\n );\n }", "public function edit($id)\n\t{\n\t\tView::share('title', 'ThinkClosing - Task');\n\t\t$task = Task::find($id);\n\t\tif (!$task) {\n\t\t\treturn Redirect::route('tasks.index')\n \t->with('message', 'Task not found.')\n \t->with('alert-class', 'alert-error');\n\t\t} else if($task->user_id !== Auth::user()->id || !Auth::user()->isAdmin()) {\n\t\t\treturn Redirect::route('tasks.index')\n \t->with('message', \"You don't have permission to edit this task.\")\n \t->with('alert-class', 'alert-error');\n\t\t}\n\t\treturn View::make('tasks.edit')->with('task', $task);\n\t}", "function edit()\n\t{\n $data = JRequest::get( 'post' );\n\n $datas = JRequest::get( 'get' );\n $data['task']=isset($data['task'])?$data['task']:'';\n $datas['task']=isset($datas['task'])?$datas['task']:'';\n if($data['task']=='edit' || $datas['task'] =='edit'){\n JRequest::setVar( 'view', 'test' );\n JRequest::setVar( 'layout', 'default_edit');\n JRequest::setVar('hidemainmenu', 1);\n parent::display();\n }\n else{\n\t\tJRequest::setVar( 'view', 'test' );\n\t\tJRequest::setVar( 'layout', 'form');\n\t\tJRequest::setVar('hidemainmenu', 1);\n\t\tparent::display();\n }\n }", "public function edit($id)\n {\n if(Module::hasAccess(\"Tasks\", \"edit\")) {\n\n $task = Task::find($id);\n if(isset($task->id)) {\n $module = Module::get('Tasks');\n\n $module->row = $task;\n\n $work_list = DB::table('worklists')\n ->lists('name', 'work_id');\n $user_list = DB::table('userinfos')\n ->lists('user_key', 'user_key');\n\n return view('la.tasks.edit', [\n 'module' => $module,\n 'view_col' => $this->view_col,\n 'work_list' => $work_list,\n 'user_list' => $user_list,\n 'status_list' => Task::$statusText,\n ])->with('task', $task);\n } else {\n return view('errors.404', [\n 'record_id' => $id,\n 'record_name' => ucfirst(\"task\"),\n ]);\n }\n } else {\n return redirect(config('laraadmin.adminRoute').\"/\");\n }\n }", "public function edit(Task $task)\n {\n return view('projectmanager::admin.tasks.edit', compact('task'));\n }", "public function edit($id) {\n $tasks=Tasks::find($id);\n return view('edit_task', ['task' => $tasks]);\n }", "public function edit($id)\n {\n $task = Task::find($id);\n return view('tasks.edit')->with('task', $task);\n }", "public function edit($id)\n {\n $task=Task::find($id);\n return view('edit')->with('task',$task);\n }", "public function edit(Task $task)\n {\n return view('tasks.edit', compact('task'));\n }", "public function edit(Task $task)\n {\n return view('tasks.edit', compact('task'));\n }", "public function edit(Task $task)\n {\n return view('task.edit', ['task' => $task]);\n }", "public function edit($id)\n {\n $types = Type::orderBy('id','ASC')->pluck('name','id');\n $task = Task::find($id);\n return view('tasks.editTask',compact('task','types'));\n }", "public function edit($id) {\n\n // Recover the task.\n $task = Task::find($id);\n\n // Verify it's actually recovered\n if(is_null($task)) {\n Session::flash('flash_message', 'Unable to locate task');\n return redirect('/tasks');\n }\n\n // Return recovered task to view.\n return view('task.edit')->with([\n 'task' => $task,\n ]);\n }", "public function edit(Task $task)\n {\n $projects = Project::all();\n\n return view('editTask', ['task' => $task, 'projects' => $projects]);\n }", "public function edit($id)\n {\n $task = Task::find($id);\n\n return view('tasks.edit', compact('task'));\n }", "public function editTask($id)\n {\n $task = $this->taskRepository->getOneTaskOfCurrentUser($id);\n if ($task) {\n return view('tasks.editTask', compact('task'));\n } else {\n return view('tasks.oneTaskView', compact('task'));\n }\n }", "public function edit(int $idTask)\n {\n $this->getUser()->hasPermission(['select'], 'auto_tasks');\n\n $task = new AutoTask();\n $task->setConnection($this->getUser()->getRole->name);\n\n $task = $task->findOrFail($idTask);\n\n return view('autotasks.edit', array(\n 'autoTask' => $task\n ));\n }", "public function edit(Project $project, Task $task)\n {\n //\n return view('tasks.edit',compact('project','task'));\n }", "public function editTask()\n\t{\n\t\t$jwt = Auth::isValidToken($_COOKIE['SSID']);\n \n if (!$jwt) {\n View::jsonResponse(['status' => 401, 'message' => 'Access denied for you!']);\n }\n\n $update = [ 'task' => $_POST['etask'], 'id' => $_POST['taskid']];\n $update = Validator::cleanData($update);\n\n if (Validator::isEmpty($update)) {\n View::jsonResponse(['status' => 401, 'message' => 'There are empty fields!']);\n }\n\n (new Task())->update($update)->execute();\n\n View::jsonResponse(['status' => 200, 'message' => 'Task edited successful!']); \n \n\t}", "public function edit(int $taskId)\n {\n $task = $this->taskService->getTask($taskId);\n\n return view('Tasks.edit_task', [\n 'task' => $task,\n ]);\n }", "public function actionEdit($info){\n \n $infoedit = Task::getInfo($info);\n\n $result = false;\n \n if(isset($_POST['submit'])){\n \n $error = false;\n \n $title = $_POST['title'];\n $tasktext = $_POST['task'];\n \n if(!Task::checkTitle($title)){\n $error_title = \"Enter title for you task!\";\n $error = true;\n }\n \n if(!Task::checkTask($tasktext)){\n $error_task = \"You must write a task!\";\n $error = true;\n }\n \n if($error == false){\n $result = $var = Task::editTask($info, $title, $tasktext);\n } \n }\n \n require_once(ROOT.'/views/task/edit.php');\n return true;\n }", "public function edit($id)\n {\n $task = resolve(TaskRepository::class)->find($id);\n return view(\"edit\", compact('task'));\n }", "public function change()\n {\n if(!isset($_SESSION['login']) || $_SESSION['login'] != 'admin123') {\n redirect('page-not-found');\n }\n $task = $this->task->getTask($_GET['id'])[0];\n\n return view('update', compact('task'));\n }", "public function edit(Task $card)\n { \n return view('cards.edit',compact('card'));\n }", "public function edit($id)\n {\n $task = Task::where('id', '=', $id)\n ->where('user_id', '=', Auth::user()->id)\n ->firstOrFail();\n\n return view('tasks.edit', compact('task'));\n }", "public function edit(Task $task)\n {\n $data['task'] = $task;\n $data['tags'] = Tag::orderBy('text')->get();\n\n return view('tasks.store', $data);\n }", "public function edit($id)\n {\n $task = Task::find($id);\n if($task && $task->project && $task->project->user_id !== Auth::user()->id) {\n return redirect()->route('projects');\n }\n\n // var_dump($task);\n return view('tasks.edit', ['data' => $task]);\n }", "public function edit($id)\n {\n $project_id = request()->get('project_id');\n $project_task = ProjectTask::with('members')\n ->where('project_id', $project_id)\n ->findOrFail($id);\n\n $project_members = ProjectMember::projectMembersDropdown($project_id);\n $priorities = ProjectTask::prioritiesDropdown();\n $statuses = ProjectTask::taskStatuses();\n return view('project::task.edit')\n ->with(compact('project_members', 'priorities', 'project_task', 'statuses'));\n }", "public function edit($id)\n {\n //lanjutkan copy yg ini + update\n\n $items=pemasukan::all();\n $task = pemasukan::findOrFail($id);\n\n \n return view('pemasukan.edit',compact('items'))->withTask($task);\n return view('pemasukan.edit');\n }", "public function edit($id)\n {\n $todo = Task::find($id);\n\n return view('todo/edit', compact('todo'));\n }", "public function editAction() {\n\t\t$request = $this->getRequest();\n\t\t$id = (int)$request->getParam('id');\n\t\tPageTitle::setTitle($this->view, $request, array($id));\n\t\t\n\t\t$taFinder = new TeachingActivities();\n\t\t$ta = $taFinder->getTa($id);\n\n\t\tif (($result = $ta->isEditable()) !== true) {\n\t\t\tthrow new Exception($result);\n\t\t}\n\n\t\tif (($result = UserAcl::checkTaPermission($ta, UserAcl::$EDIT)) !== true) {\n\t\t\tthrow new Exception($result);\n\t\t}\n\n\t\t$fp = new FormProcessor_TeachingActivity($id);\n\t\tif ($request->isPost()) {\n\t\t\tif ($id = $fp->process($request)) {\n\t\t\t\t$session = new Zend_Session_Namespace('taeditcomplete');\n\t\t\t\t$session->ta_id = $id;\n\t\t\t\t$this->_redirect('/teachingactivity/editcomplete');\n\t\t\t}\n\t\t}\n\t\t$this->view->fp = $fp;\n\t}", "public function edit()\n {\n return view('timetable::edit');\n }", "public function showEdit()\n {\n\n }", "public function edit($id)\n\t{\n\t\t$plan_task = $this->plan_task->find($id);\n\n\t\tif (is_null($plan_task))\n\t\t{\n\t\t\treturn Redirect::route('admin.plan_tasks.index');\n\t\t}\n\n\t\treturn View::make('admin.plan_tasks.edit', compact('plan_task'));\n\t}", "public function edit($id){\n $task = Task::find($id);\n\n if (Auth::user()->is_admin) {\n $coworkers = Invitation::where('admin_id', Auth::user()->id )->where('is_accepted', 1)->get();\n\n $invitations = Invitation::where('admin_id', Auth::user()->id )->where('is_accepted', 0)->get();\n } else {\n $coworkers = [];\n\n $invitations = [];\n }\n\n // dd($task);\n return view('edit', compact('task','coworkers','invitations'));\n }", "public function edit($id)\n {\n\n $tasks=Task::find($id);\n\n $projects = Project::pluck('name','id');\n $projects = ['0'=>'Select a Project'] + collect($projects)->ToArray();\n $employees = Employee::pluck('name','id');\n $employees = ['0'=>'Select Employee'] + collect($employees)->ToArray();\n return view('task.edit',compact('tasks','projects','employees'));\n }", "public function edit($id)\n {\n $rows = $this->rels->getOne($id);\n\n $task = new TaskService();\n $work = new WorkService();\n\n $taskRels = $task->getOne($rows['task_id']);\n\n $workRels = $work->getOne($rows['work_id']);\n\n $childWorkName = $work->getOne($rows['child_work_id']);\n\n $rows['work_name'] = $taskRels['name'];\n $rows['task_name'] = $workRels['name'];\n $rows['child_work_name'] = $childWorkName['name'];\n\n return view('WorkFlow.WorkTask.edit')->with('rows' ,$rows);\n }", "public function editAction() {\n\t\t$id = $this->getInput('id');\n\t\t$info = Activity_Service_ShareQq::get(intval($id));\n\t\t$this->assign('info', $info);\n\t}", "public function editAction() {\n\t\t// Get all todos\n\t\t$todo = new todo;\n\t\t$todo = $todo->Get($this->get['id']);\n\t\t// Filter by passing an argument as array(array('done', '=', '0')) to\n\t\t// GetList. This would for example only select todos that are done.\n\n\t\t// Get template\n\t\t$template = $this->getTemplate('todo_edit');\n\n\t\t// Render template\n\t\treturn $template->render(array('todo' => $todo));\n\t}", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit($project_id, $task_id)\n\t{\n\t\t// Get basic task info\n\t\t$task = new Task;\n\t\t$taskInfo = $task->getInfo($task_id);\n\n\t\t// Get related users\n\t\t$related_users = $task->getRelatedUsers($task_id);\n\n\t\t// Fetch all the users\n\t\t$all_users = $this->redmineUser->getAllWithPaginations(9999);\n\t\t$all_users_selectable = User::convertToSelectable($all_users['users']);\n\n\t\t// Get user roles\n\t\t$user_roles = UserRole::allForSelect();\n\n\t\t// Get roles with percents (we will ban them if frontend)\n\t\t$persentable_roles = array();\n\n\t\tforeach (UserRole::all() as $role)\n\t\t{\n\t\t\tif ($role->percents)\n\t\t\t{\n\t\t\t\t$persentable_roles[] = $role->id;\n\t\t\t}\n\t\t}\n\n\t\treturn View::make('tasks.edit')\n\t\t\t->with('project_id', $project_id)\n\t\t\t->with('users', $all_users_selectable)\n\t\t\t->with('related_users', $related_users)\n\t\t\t->with('user_roles', $user_roles)\n\t\t\t->with('persentable_roles', $persentable_roles)\n\t\t\t->with('task_id', $task_id)\n\t\t\t->with('task', $taskInfo);\n\t}", "public function renderEditTask($id) {\r\n $this->template->title = \"ToDo-list / Edit Task\";\r\n\r\n $session = $this->getSession('session');\r\n\r\n if ($this->getUser()->isLoggedIn()) { // přihlášení uživatelé\r\n $this->template->loggedAs = \"Přihlášen jako \" . $this->getUser()->identity->data[0] . \" (\" . $this->getUser()->identity->data[1] . \")\";\r\n } else {\r\n $this->redirect('Homepage:');\r\n }\r\n $this->makeMenu($this->getUser()->isLoggedIn());\r\n }", "public function edit(Task $task)\n {\n return view('views.tasks.progress.edit', [\n 'task' => $task\n ]);\n }", "public function edit($id)\n {\n // idの値でタスクを検索して取得\n $task = Task::findOrFail($id);\n \n // 認証済ユーザーが投稿の所有者である場合は投稿を編集\n if (\\Auth::id() === $task->user_id){\n // タスク詳細ビューで表示\n return view('tasks.edit', [\n 'task' => $task,\n ]);\n }\n // 認証済ユーザーが投稿の所有者でない場合はトップページへリダイレクト\n else {\n return redirect('/');\n }\n }", "public function edit($id=null) {\n\n $Task = $this->Task->find('first', array(\n 'contain' => array(),\n 'conditions' => array(\n 'Task.id' => $id\n )\n ));\n\n if(empty($Task))\n return $this->redirect('/tasks');\n\n if($this->request->is('post')){\n\n $this->Task->id = $id;\n $result = $this->Task->save($this->request->data);\n if($result){\n $this->_setFlash('Task updated successfully.', 'success');\n $this->redirect('/tasks');\n }\n else {\n $valError = $this->Task->validationErrorsAsString();\n $this->_setFlash(\"Unable to update task. ${valError}\");\n }\n }\n else {\n $this->request->data = $Task;\n }\n\n $this->set('medId', $id);\n $this->set('add', false);\n $this->render('add-edit');\n }", "public function edit(Task $task)\n {\n\n if (auth()->user()->isApprover(auth()->user()->id)) {\n $chunck = array(\n 'task' => $task,\n 'task_site' => \\Tritiyo\\Task\\Models\\TaskSite::where('task_id', $task->id)->get()->toArray(),\n 'task_vehicle' => \\Tritiyo\\Task\\Models\\TaskVehicle::where('task_id', $task->id)->get()->toArray(),\n 'task_material' => \\Tritiyo\\Task\\Models\\TaskMaterial::where('task_id', $task->id)->get()->toArray(),\n 'task_proof' => \\Tritiyo\\Task\\Models\\TaskProof::where('task_id', $task->id)->get()->toArray(),\n 'task_status' => \\Tritiyo\\Task\\Models\\TaskStatus::where('task_id', $task->id)->get()->toArray(),\n );\n\n //$chunck_update = \\Tritiyo\\Task\\Models\\TaskChunck::update();\n $chunck = \\Tritiyo\\Task\\Models\\TaskChunck::updateOrCreate(\n array('task_id' => $task->id),\n array('manager_data' => json_encode($chunck))\n );\n }\n return view('task::edit', ['task' => $task]);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function edit($task_id)\n {\n $this->form_validation->set_rules($this->rules['update']);\n\n // Get task ID\n $task_id = ($this->form_validation->run() === TRUE) ? $this->input->post('task_id') : intval($task_id);\n\n // Look for the task\n $task = $this->task_model->get_task($task_id);\n\n if ($task === FALSE) {\n $this->postal->add('There is no task with that ID', 'error');\n redirect();\n }\n\n $this->data['task'] = $task;\n\n // Find out the role of the user\n $this->load->model('project_user_model');\n $role = $this->project_user_model->get_role($task->project_id, $this->user_id);\n if (!in_array($role, array('admin', 'edit'))) {\n $this->postal->add('You are not allowed to change the tasks in this project', 'error');\n redirect('projects/index/' . $task->project_id);\n }\n $this->data['role'] = $role;\n\n // Get the available statuses\n $this->load->model('task_status_model');\n $statuses = $this->task_status_model->as_dropdown('title')->order_by('order', 'ASC')->get_all();\n\n $admin_statuses = array('1','2','3','4','5','6','7');\n $edit_statuses = array('2','3','4');\n $the_statuses = array();\n\n foreach($statuses as $id => $the_status)\n {\n if(in_array($id,$admin_statuses)) $the_statuses['admin'][$id] = $the_status;\n if(in_array($id,$edit_statuses)) $the_statuses['edit'][$id] = $the_status;\n }\n $this->data['statuses'] = $the_statuses;\n\n // Get the priorities\n $this->load->model('task_priority_model');\n $priorities = $this->task_priority_model->as_dropdown('title')->order_by('order', 'DESC')->get_all();\n $this->data['priorities'] = $priorities;\n\n // Get the project\n $project = $this->project_model->with_members('fields:email,id')->get($task->project_id);\n\n // Get the members of the project if the $role is admin (only admin has the right to assign to other people)\n $members = array();\n if (!empty($project->members)) {\n foreach ($project->members as $member) {\n $members[$member->id] = $member->email;\n }\n }\n $this->data['members'] = $members;\n\n if ($this->form_validation->run() === FALSE)\n {\n $this->render('tasks/edit_view');\n }\n else\n {\n echo $role;\n\n $old_task = $task;\n\n\n $update_data = array();\n $history_data = array();\n $changes = array();\n if($role == 'admin')\n {\n if(strcmp($old_task->title,$this->input->post('title'))!=0)\n {\n $update_data['title'] = $this->input->post('title');\n $history_data['title'] = $old_task->title;\n $changes[] = '<strong>Title</strong> was changed from <span class=\"text-danger\">'.$history_data['title'].'</span> to <span class=\"text-success\">'.$update_data['title'].'</span>.';\n }\n\n\n if(strcmp($old_task->summary,$this->input->post('summary'))!=0)\n {\n $update_data['summary'] = $this->input->post('summary');\n $history_data['summary'] = $old_task->summary;\n $changes[] = '<strong>Summary</strong> was changed from <span class=\"text-danger\">'.$history_data['summary'].'</span> to <span class=\"text-success\">'.$update_data['summary'].'</span>.';\n }\n\n if($old_task->assignee_id!=$this->input->post('assigned_to'))\n {\n $update_data['assigned_to'] = $this->input->post('assigned_to');\n $history_data['assigned_to'] = $old_task->assignee_id;\n $changes[] = '<strong>The assignee</strong> was changed from <span class=\"text-danger\">'.$members[$history_data['assigned_to']].'</span> to <span class=\"text-success\">'.$members[$update_data['assigned_to']].'</span>.';\n }\n\n if($old_task->priority!=$this->input->post('priority'))\n {\n $update_data['priority'] = $this->input->post('priority');\n $history_data['priority'] = $old_task->priority;\n $changes[] = '<strong>The priority</strong> was changed from <span class=\"text-danger\">'.$priorities[$history_data['priority']].'</span> to <span class=\"text-success\">'.$priorities[$update_data['priority']].'</span>.';\n }\n\n if(strcmp($old_task->due_date,$this->input->post('due_date'))!=0)\n {\n $update_data['due_date'] = $this->input->post('due_date');\n $history_data['due_date'] = $old_task->due_date;\n $changes[] = '<strong>The due date</strong> was changed from <span class=\"text-danger\">'.$history_data['due_date'].'</span> to <span class=\"text-success\">'.$update_data['due_date'].'</span>.';\n }\n }\n\n if(in_array($role,array('admin','edit')))\n {\n if(($old_task->assignee_id!=$this->input->post('assigned_to')) && $role=='admin')\n {\n $status = '1';\n }\n\n else\n {\n $status = $this->input->post('status');\n }\n\n if(($old_task->status_id!=$status) && array_key_exists($status, $the_statuses[$role]))\n {\n $update_data['status'] = $status;\n $history_data['status'] = $old_task->status_id;\n $changes[] = '<strong>Status</strong> was changed from <span class=\"text-danger\">'.$statuses[$history_data['status']].'</span> to <span class=\"text-success\">'.$statuses[$update_data['status']].'</span>.';\n if($status=='4' || $status=='5')\n {\n $new_progress = 100;\n }\n }\n\n if(isset($new_progress))\n {\n $update_data['progress'] = $new_progress;\n $history_data['progress'] = $old_task->progress;\n $changes[] = '<strong>The progress</strong> of the task was changed from <span class=\"text-danger\">'.$history_data['progress'].'%</span> to <span class=\"text-success\">'.$update_data['progress'].'%</span> because status was changed to \"Completed\".';\n\n }\n elseif($old_task->progress!=$this->input->post('progress'))\n {\n $update_data['progress'] = $this->input->post('progress');\n $history_data['progress'] = $old_task->progress;\n $changes[] = '<strong>The progress</strong> of the task was changed from <span class=\"text-danger\">'.$history_data['progress'].'%</span> to <span class=\"text-success\">'.$update_data['progress'].'%</span>.';\n }\n }\n\n if(!empty($update_data))\n {\n $update_data['updated_by'] = $this->user_id;\n $update_data['updated_at'] = date('Y-m-d H:i:s');\n $the_intro = 'The following changes were made by <strong><span class=\"text-success\">'.$members[$this->user_id].'</span></strong>:';\n array_unshift($changes,$the_intro);\n\n $history_data['task_id'] = $old_task->id;\n $history_data['created_by'] = $this->user_id;\n $history_data['created_at'] = date('Y-m-d H:i:s');\n $history_data['changes'] = implode('<br />',$changes);\n\n\n $history_id = $this->task_history_model->insert($history_data);\n if( $history_id !== FALSE)\n {\n if($this->task_model->where('id',$task_id)->update($update_data) !== FALSE)\n {\n $this->postal->add('The changes were made successfully.','success');\n }\n else\n {\n $this->task_history_model->delete($history_id);\n $this->postal->add('There was a problem in updating the task. Sit tight and wait for the rescue team... Or you could write them an email with a print screen.');\n }\n }\n\n redirect('tasks/index/'.$task_id);\n }\n /*\n echo '<pre>';\n print_r($update_data);\n print_r($history_data);\n print_r($changes);\n echo '</pre>';\n dd($old_task);\n /*\n $title = $this->input->post('title');\n $assigned_to = ($role === 'admin') ? $this->input->post('assigned_to') : $this->user_id;\n $status = $this->input->post('status');\n $priority = $this->input->post('priority');\n $due_date = $this->input->post('due_date');\n $description = $this->input->post('description');\n $summary = $this->input->post('summary');\n $notes = $this->input->post('notes');\n\n\n $verify_assigned_to = $this->project_user_model->get_role($project_id, $assigned_to);\n\n if (!in_array($verify_assigned_to, array('admin', 'edit'))) {\n $this->postal->add('You are not allowed to add the task to that user. You must first add him/her to the project as admin or edit');\n redirect('projects/index/' . $project->id);\n exit;\n }\n\n $insert_data = array(\n 'project_id' => $project_id,\n 'title' => $title,\n 'assigned_to' => $assigned_to,\n 'status' => $status,\n 'priority' => $priority,\n 'due_date' => $due_date,\n 'description' => $description,\n 'summary' => $summary,\n 'notes' => $notes,\n 'created_by' => $this->user_id\n );\n\n if ($this->task_model->insert($insert_data)) {\n $this->postal->add('The task was created successfully', 'success');\n } else {\n $this->postal->add('Couldn\\'t create the task', 'error');\n }\n redirect('projects/index/' . $project->id);\n */\n\n }\n }", "public function edit($id)\n {\n if (\\Gate::denies('update', 'tasks')) {\n abort(403);\n }\n\n $item = \\Auth::user()->taskItems()->findOrFail($id);\n\n return view('admin.tasks.create', [\n 'data' => $item,\n 'action' => action('Tasks\\ItemController@update', [$item->id])\n ]);\n }", "final static public function Edittask(){\n\n\t\t$wr = static::validationB();\n\t\t$record = new static::$modelNM();\t//instantiate new object\n\t\t$record->id = $_SESSION[\"UserID\"];\n\t\t$record->owneremail = $_POST[\"owneremail\"];\n\t\t$record->ownerid = $_POST[\"ownerid\"];\n\t\t$record->createddate = $_POST[\"createddate\"];\n\t\t$record->duedate = $_POST[\"duedate\"];\n\t\t$record->message = $_POST[\"message\"];\n\t\t$record->isdone = $_POST[\"isdone\"];\n\n\n\t\tif($wr != \"\") {\n\t\t\techo $wr;\n\t\t\treturn NULL;\n\t\t}\t\t\n\t\n\t\t$record->GoFunction(\"Update\");\t//Run Insert() in modol class and echo success or not\n\t\treturn 1;\t//return display html table code from ShowData\n\n\t}", "public function edit($id) {\n\t\t//\n\t\tvar_dump ( \"edit--\" . $id );\n\t\treturn view ( 'app.web.flowscript' );\n\t}", "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() {\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 show(Task $task)\r\n {\r\n //\r\n }", "public function updateTaskForm(Task $task)\n {\n $this->checkIfLoggedIn();\n\n $this->checkIfTaskBelongsToUSer($task);\n\n return view('update-task', [\n 'titlePart' => '| Update a task',\n 'user' => session()->get('user'),\n 'task' => $task,\n ]);\n }", "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($TaskID)\n {\n $data = task::find($TaskID);\n if($data->Status == 'Completed' && Auth::user()->roles->name != 'Super-Admin'){\n return redirect()->back()->with('error', 'This task is already completed. You can not edit task...');\n }elseif($data->Status == 'Canceled' && Auth::user()->roles->name != 'Super-Admin'){\n return redirect()->back()->with('error', 'This task is canceled. You can not edit task...');\n }\n return view('task.UpdateTask',['tasks'=>$data]);\n }", "public function edit($id)\n {\n $task = Task::find($id);\n $categories = Category::all();\n return view('task.edit')->with(['task' => $task, 'categories' => $categories]);\n }", "public function editAction() {\n\t\t$id = $this->getInput('id');\n\t\t$info = Gc_Service_OrderShow::getOrderShow(intval($id));\n\t\n\t\t//状态\n\t\t$this->assign('ordershow_status', $this->ordershow_status);\n\t\t\n\t\t//渠道\n\t\tlist(,$ordershow_channel) = Gc_Service_OrderChannel::getAllOrderChannel();\n\t\t$ordershow_channel = Common::resetKey($ordershow_channel, 'id');\n\t\t$this->assign('ordershow_channel', $ordershow_channel);\n\t\t\t\t\n\t\t$this->assign('info', $info);\n\t}", "public function edit($id)\n {\n return view('taskstatuses.edit')->with('taskstatus', TaskStatus::findOrFail($id));\n //\n }", "public function edit($id) // показать форму редактирования\n {\n\n return view('project.edit',\n [\n \"project\" => $this->projects->findById($id), //метод возвращает конкретную модель по айдишнику\n \"tasks\" => $this->tasks->all(),\n ]\n );\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit(Board $board, Task $task)\n {\n $user = Auth::user();\n $categories = Category::all();\n return view('boards.tasks.edit', ['board' => $board, 'categories' => $categories, 'task' => $task]);\n }", "protected function createComponentEditTaskForm() {\r\n\r\n $form = new UI\\Form;\r\n\r\n $form->getElementPrototype()->novalidate = 'novalidate';\r\n\r\n $form->addText('name', 'Task name:')\r\n ->setRequired('Please provide a task name.');\r\n\r\n $form->addTextArea('description', 'Description:');\r\n\r\n $form->addText('deadline', 'Deadline')->setOption('description', 'Use format: YYYY-MM-DD')\r\n ->addCondition(UI\\Form::FILLED)\r\n ->addRule(UI\\Form::PATTERN, 'Může být v rozmezí 2011-01-01 až 2019-12-31', '^(20)\\d\\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$');\r\n\r\n $form->addRadioList('priority', 'Priority', array(\r\n '1' => '1',\r\n '2' => '2',\r\n '3' => '3',\r\n '0' => 'bez priority'\r\n ));\r\n\r\n $result = dibi::query('SELECT idcategory, name FROM `categories` WHERE iduser = %i', $this->getUser()->getId())->fetchPairs('idcategory', 'name');\r\n\r\n $form->addRadioList('idcategory', 'Category', $result)\r\n ->setRequired('Please select category.');\r\n\r\n $status = array(\r\n 'nedokončeno' => 'nedokončeno',\r\n 'odloženo' => 'odloženo',\r\n 'dokončeno' => 'dokončeno',\r\n );\r\n $form->addRadioList('status', 'Status', $status)\r\n ->setRequired('Please select status.');\r\n\r\n $form->addHidden('idtask');\r\n\r\n $form->addSubmit('editTask', 'Edit Task');\r\n\r\n $form->onSuccess[] = callback($this, 'EditTaskFormSubmitted');\r\n\r\n $task = dibi::query('SELECT * FROM `tasks` WHERE idtask = %i', $this->getParam('id'))->fetch();\r\n\r\n if ($task->deadline == \"0000-00-00\")\r\n $task->deadline = \"\";\r\n\r\n $form->setDefaults(array(\r\n 'name' => $task->name,\r\n 'description' => $task->description,\r\n 'deadline' => $task->deadline,\r\n 'status' => $task->status,\r\n 'priority' => $task->priority,\r\n 'idcategory' => $task->idcategory,\r\n 'idtask' => $task->idtask,\r\n ));\r\n\r\n return $form;\r\n }", "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() {}", "public function editTask($row=null)\n\t{\n\t\tif (!User::authorise('core.manage', $this->_option)\n\t\t && !User::authorise('core.admin', $this->_option)\n\t\t && !User::authorise('core.create', $this->_option)\n\t\t && !User::authorise('core.edit', $this->_option))\n\t\t{\n\t\t\tApp::abort(403, Lang::txt('JERROR_ALERTNOAUTHOR'));\n\t\t}\n\n\t\tRequest::setVar('hidemainmenu', 1);\n\n\t\tif (!$row)\n\t\t{\n\t\t\t// Incoming\n\t\t\t$id = Request::getArray('id', array());\n\n\t\t\t// Get the single ID we're working with\n\t\t\tif (is_array($id))\n\t\t\t{\n\t\t\t\t$id = (!empty($id)) ? $id[0] : 0;\n\t\t\t}\n\n\t\t\t$row = Blacklist::oneOrNew($id);\n\t\t}\n\n\t\t// Output the HTML\n\t\t$this->view\n\t\t\t->set('row', $row)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('edit')\n\t\t\t->display();\n\t}", "public function edit(form $form)\n {\n //\n }", "public function editForm(): void\n {\n $this->articleId = $_GET['id'];\n $query = $this->articleModel->displayOneArticle($this->articleId);\n $editArticle = $query->fetch();\n\n $this->title = $editArticle['title'];\n $this->content = $editArticle['content'];\n $this->category = $editArticle['category'];\n }", "public function edit()\n {\n $this->model->load('TacGia');\n $tacgia = $this->model->TacGia->findById($_GET['id']);\n $data = array(\n 'title' => 'edit',\n 'tacgia' => $tacgia\n );\n\n // Load view\n $this->view->load('tacgias/edit', $data);\n }", "public function edit()\n {\n if (!isset($_GET['id'])) {\n call('pages', 'error');\n return;\n }\n\n $project = Project::find($_GET['id']);\n require_once('views/projects/edit.php');\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_time\n\t\t$fbf_time = FbfTime::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_time\n\t\t$this->layout->content = View::make('fbf_time.edit')\n->with('fbf_time', $fbf_time);\n\t}", "public function editView() {\n $this->template()->addTplFile('edit.phtml');\n $this->setTinyMCE($this->formEdit->text, 'advanced');\n $this->setTinyMCE($this->formEdit->textPanel, 'advanced', array('height' => 300));\n if(isset($this->formEdit->textFooter)){\n $this->setTinyMCE($this->formEdit->textFooter, 'advanced', array('height' => 300));\n }\n Template_Module::setEdit(true);\n }", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit($id)\n {\n // Retrive the task with param $id\n $task = Task::find($id);\n\n if ($task) {\n $data['task'] = $task;\n\n // Get all projects\n $projects = Project::all();\n $data['projects'] = $projects;\n\n // Get the project_time\n $project_times = ProjectTime::where('project_id', $task->project_id)->get();\n $data['project_times'] = $project_times;\n\n // Get all projects\n $teams = Team::all();\n $data['teams'] = $teams;\n\n // Get all task teams\n $task_teams = TaskTeam::where('project_time_task_id', $id)->get();\n $data['task_teams'] = $task_teams;\n\n // Return the dashboard view.\n return view('task.create')->with('data', $data);\n } else {\n abort(404);\n }\n }", "public function show(Task $task)\n {\n //\n }", "public function show(Task $task)\n {\n //\n }", "public function show(Task $task)\n {\n //\n }", "public function show(Task $task)\n {\n //\n }" ]
[ "0.84663403", "0.8147351", "0.7905769", "0.7901467", "0.78734225", "0.7873279", "0.7852675", "0.7852675", "0.7852675", "0.7852675", "0.7852675", "0.7852675", "0.7852675", "0.77807105", "0.77442133", "0.76450604", "0.7600352", "0.7546014", "0.75014967", "0.74968445", "0.7481016", "0.7478759", "0.7451596", "0.73695076", "0.73623097", "0.73498034", "0.73239475", "0.73041797", "0.7300244", "0.7231307", "0.7231307", "0.7229587", "0.72256124", "0.72238654", "0.7210495", "0.72054076", "0.72044224", "0.7183323", "0.71787614", "0.71730936", "0.71387684", "0.7130581", "0.71288407", "0.71201336", "0.71150815", "0.7105376", "0.7099905", "0.7072947", "0.7066215", "0.7058317", "0.7049074", "0.7030925", "0.7019173", "0.69934255", "0.69894344", "0.69885904", "0.6972249", "0.69518256", "0.6947904", "0.69384867", "0.6927016", "0.69256353", "0.6922512", "0.6920883", "0.69136643", "0.6890983", "0.6890935", "0.688534", "0.6876483", "0.6871958", "0.6870525", "0.68650526", "0.6861828", "0.6851019", "0.68430895", "0.68400645", "0.68354386", "0.6820886", "0.6815254", "0.6797705", "0.6788886", "0.67863405", "0.6778713", "0.67780566", "0.677657", "0.6764119", "0.675946", "0.6748704", "0.6735439", "0.6733941", "0.67330253", "0.6727872", "0.6719902", "0.6715986", "0.67139924", "0.67125255", "0.67081535", "0.67081535", "0.67081535", "0.67081535" ]
0.837018
1
Create a collection from the given value.
function collect(array $value = []): Collection { return new Collection($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function collect($value = null)\n {\n return new Collection($value);\n }", "function collect($value = null)\n {\n return new Collection($value);\n }", "function asdb_collect($value = null)\n\t{\n\t\treturn new Collection($value);\n\t}", "public function collect($value = null)\n {\n return new CollectionProxy($value);\n }", "public function add($value): CollectionInterface;", "public function collection($value)\n {\n $this->setProperty('collection', $value);\n return $this;\n }", "public function setCollection($value)\n {\n return $this->set('Collection', $value);\n }", "public function setCollection($value)\n {\n return $this->set('Collection', $value);\n }", "public function setCollection($value)\n {\n return $this->set('Collection', $value);\n }", "public function setCollection($value)\n {\n return $this->set('Collection', $value);\n }", "public function setCollection($value)\n {\n return $this->set('Collection', $value);\n }", "public function setCollection($value)\n {\n return $this->set('Collection', $value);\n }", "protected function autoIncludeCollection($value): Collection\n {\n if ($value instanceof ResourceCollection) {\n return $value->getFractalCollection();\n }\n \n if ($value instanceof Collection) {\n return $value;\n }\n \n return $this->getResourceFactory()->makeResourceCollection($value)->getFractalCollection();\n }", "public function transform($value)\n {\n $rawFieldList = json_decode($value, true); // mapped field from JSON string\n $collection = new Collection();\n\n if (empty($rawFieldList)) {\n return $collection;\n }\n\n foreach ($rawFieldList as $rawField) {\n $field = $this->getField($rawField['field']);\n\n if ($field === null) {\n continue;\n }\n\n $fieldSelection = new Entity\\FieldSelection();\n $fieldSelection->setField($field);\n\n // Deal with text fields.\n if (in_array($field->getType(), self::$textFieldTypeList)) {\n $fieldSelection->setValue($rawField['value']);\n $collection->set($field->getAlias(), $fieldSelection);\n\n continue;\n }\n\n // Deal with single/multiple choice fields.\n $selectedChoiceIdList = $rawField['choiceList'];\n $selectedChoiceList = $field->getChoiceList()->filter(\n function ($entry) use ($selectedChoiceIdList) {\n return in_array($entry->getId(), $selectedChoiceIdList);\n }\n );\n\n $fieldSelection->setChoiceList($selectedChoiceList);\n\n $collection->set($field->getAlias(), $fieldSelection);\n }\n\n return $collection;\n }", "public function put($key, $value): CollectionInterface;", "public static function fromValue($value, bool $strict): Enumerable;", "protected function getCollectionFromObjectByValue(): Collection\n {\n $object = $this->getObject();\n $getter = 'get' . $this->getInflector()->classify($this->getCollectionName());\n\n if (! method_exists($object, $getter)) {\n throw new InvalidArgumentException(\n sprintf(\n 'The getter %s to access collection %s in object %s does not exist',\n $getter,\n $this->getCollectionName(),\n $object::class,\n ),\n );\n }\n\n $collection = $object->$getter();\n\n if (is_array($collection)) {\n $collection = new ArrayCollection($collection);\n }\n\n return $collection;\n }", "public static function createCollection($values = null)\n {\n return new Collection(get_called_class(), $values);\n }", "public function setCollection(array $value);", "public function createCollectionFromArray($data)\n {\n $data['hidden'] = (bool) ArrayUtils::get($data, 'hidden');\n $data['single'] = (bool) ArrayUtils::get($data, 'single');\n $data['managed'] = (bool) ArrayUtils::get($data, 'managed');\n\n return new Collection($data);\n }", "protected function createCollection()\n {\n return $this->_setUpNewNode(\n new Collection()\n );\n }", "public function find(string $source, string $field, $value): Collection\n {\n $statement = $this->pdo->prepare(\n \"SELECT * FROM {$source} WHERE {$field} = :value LIMIT 1;\"\n );\n $statement->execute(['value' => $value]);\n\n return new Collection((array) $statement->fetch());\n }", "public function targetCollection($value)\n {\n $this->setProperty('targetCollection', $value);\n return $this;\n }", "function create($value)\n {\n return new Value($value);\n }", "protected function sanitizeFiltersCollection(mixed $value): FiltersCollectionContract\n {\n if (is_a($value, FilterContract::class)) {\n return LaRepo::newFiltersCollection($this->getBoolean(), $value);\n } elseif (is_array($value)) {\n return LaRepo::newFiltersCollection($this->getBoolean(), ...$value);\n } else {\n return $value;\n }\n }", "private function create_collection() {\n\n\t\treturn new MapCollection();\n\t}", "private static function fromValue(Value $value): self\n {\n return new self($value, Parameters::new());\n }", "public function replace(int $key, $value): CollectionInterface;", "public static function create($value): self {\n return new self($value);\n }", "public function setCollections(AbstractEntityFlexibleValue $value = null)\n {\n $this->collection = $value->getCollections();\n\n return $this;\n }", "protected function newCollection(array $data)\n {\n return new Collection($data);\n }", "public function collect(string $field): Collection\n {\n return Collection::make($this->get($field, []));\n }", "public function c($name)\n\t{\n\t\tif (is_array($name))\n\t\t{\n\t\t\t$path = '';\n\t\t\tforeach ($name as $folder) { $path = $path.'/'.$folder; }\n\t\t\treturn new Collection($this, substr($path, 1));\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn new Collection($this, $name);\n\t\t}\n\t}", "static function collection()\n {\n return new Collection();\n }", "static function wrap($collection)\n {\n return new Collection($collection);\n }", "public static function create($value);", "public static function create($value);", "public function make($value);", "protected function createCollection( $path )\n {\n // Create collection\n $this->content[$path] = array();\n\n // Add collection to parent node\n $this->content[dirname( $path )][] = $path;\n\n // Set initial metadata for collection\n $this->props[$path] = $this->initializeProperties( $path, true );\n }", "public function values(string $collectionClass = null): Collection;", "protected static function newCollection( &$result = null )\n\t{\n\t\t$collection = new Collection();\n\t\t\n\t\tif( $result !== null )\n\t\t{\n\t\t\tforeach( $result as $item )\n\t\t\t{\n\t\t\t\t$collection->items[] = self::newItem($item);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $collection;\n\t}", "public function createCollection($data = array());", "public function collect($value='')\n {\n $exampleArray = [\n [\n 'place_name' => 'example name_1',\n 'distance' => 500\n ],\n [\n 'place_name' => 'example name_2',\n 'distance' => 400\n ],\n [\n 'place_name' => 'example name_3',\n 'distance' => 300\n ],\n [\n 'place_name' => 'example name_4',\n 'distance' => 600\n ]\n ];\n $collection = collect($exampleArray);\n $result = $collection->filter(function ($val, $key) {\n return $val['distance'] <= 500;\n });\n\n var_dump($result);\n die;\n\n return $collection;\n }", "public function setCollectionSource($val){\n\t\tif(intval($val) > 0){\n\t\t\t$this->collectionSource = intval($val);\n\t\t}\t\t\n\t\treturn $this;\n\t}", "public function asCollection();", "public function reverseTransform($value)\n {\n $tags = new ArrayCollection();\n $tagNames = explode(',', $value);\n if (is_array($tagNames)) {\n foreach ($tagNames as $tagName) {\n $tagName = trim($tagName);\n if (!empty($tagName)) {\n $tags[] = $this->tagManager->loadOrCreateTag($tagName);\n }\n }\n }\n return $tags;\n }", "public static function normalizeValue($value)\n {\n if ($value instanceof Node) {\n return $value;\n } elseif (is_null($value)) {\n return new Expr\\ConstFetch(\n new Name('null')\n );\n } elseif (is_bool($value)) {\n return new Expr\\ConstFetch(\n new Name($value ? 'true' : 'false')\n );\n } elseif (is_int($value)) {\n return new Scalar\\LNumber($value);\n } elseif (is_float($value)) {\n return new Scalar\\DNumber($value);\n } elseif (is_string($value)) {\n return new Scalar\\String_($value);\n } elseif (is_array($value)) {\n $items = [];\n $lastKey = -1;\n foreach ($value as $itemKey => $itemValue) {\n // for consecutive, numeric keys don't generate keys\n if (null !== $lastKey && ++$lastKey === $itemKey) {\n $items[] = new Expr\\ArrayItem(\n self::normalizeValue($itemValue)\n );\n } else {\n $lastKey = null;\n $items[] = new Expr\\ArrayItem(\n self::normalizeValue($itemValue),\n self::normalizeValue($itemKey)\n );\n }\n }\n return new Expr\\Array_($items);\n } else {\n throw new \\LogicException('Invalid value');\n }\n }", "public function store(string $collection, string $item, $value)\n {\n $this->needUpdate = true;\n $this->store[$collection][$item] = $value;\n return $this;\n }", "public function createCollection($name) {}", "public function transform($value)\n {\n return [\n 'id' => $value,\n 'value' => $value,\n ];\n }", "public function __get($name)\n\t{\n\t\treturn new Collection($this, $name);\n\t}", "public function setValForEachItem(string $field_name, $field_val, bool $add_field_if_not_present=false): CollectionInterface;", "protected function createCollection()\n {\n $model = $this->getModel();\n return $model->asCollection();\n }", "public static function &collection($name)\n\t{\n\t\t$collection = null;\n\t\t$name = ucfirst($name);\n\t\t$class = self::COLLECTION_CLASS_PREFIX . $name;\n\t\t\n\t\tif(!class_exists($class) && is_file(COLLPATH . $name . EXT)) {\n\t\t\trequire COLLPATH . $name . EXT;\n\t\t}\n\t\t\n\t\tif(class_exists($class)) {\n\t\t\t$collection = new $class($name);\n\t\t\t\n\t\t\tif(!is_subclass_of($collection, self::COLLECTION_BASE_CLASS)) {\n\t\t\t\tthrow new BakedCarrotOrmException(\"Class $class is not subclass of \" . self::COLLECTION_BASE_CLASS);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$class_name = self::COLLECTION_BASE_CLASS;\n\t\t\t$collection = new $class_name($name);\n\t\t}\n\t\t\n\t\treturn $collection;\n\t}", "protected function toCollection($data)\n {\n if (is_array($data)) {\n return new Collection($data);\n } else {\n if (!($data instanceof Collection)) {\n // Invalid input type, return empty collection\n $data = new Collection();\n }\n }\n return $data;\n }", "public static function make($value): self\n {\n $enum = array_search($value, static::$values, true);\n if ($enum === false) {\n throw new UnexpectedValueException();\n }\n return static::$cache[$enum] ??= new static($enum);\n }", "protected static function evaluate($value)\n {\n if (self::useAsCallable($value)) {\n return self::evaluate(call_user_func($value));\n }\n if (self::isArrayable($value)) {\n $collection = $value instanceof Collection ? $value->make($value) : new Collection($value);\n\n return $collection->transform(function ($value) {\n return self::evaluate($value);\n });\n }\n\n return $value;\n }", "protected function normalizeValue($value) {\n\t\tif ($value instanceof \\PHPParser\\Node\\NodeInterface) {\n\t\t\treturn $value;\n\t\t} elseif (is_null($value)) {\n\t\t\treturn new ConstFetchExpression(\n\t\t\t\t\tnew NameNode('null')\n\t\t\t);\n\t\t} elseif (is_bool($value)) {\n\t\t\treturn new ConstFetchExpression(\n\t\t\t\t\tnew NameNode($value ? 'true' : 'false')\n\t\t\t);\n\t\t} elseif (is_int($value)) {\n\t\t\treturn new LNumberScalar($value);\n\t\t} elseif (is_float($value)) {\n\t\t\treturn new DNumberScalar($value);\n\t\t} elseif (is_string($value)) {\n\t\t\treturn new StringScalar($value);\n\t\t} elseif (is_array($value)) {\n\t\t\t$items = array();\n\t\t\t$lastKey = -1;\n\t\t\tforeach ($value as $itemKey => $itemValue) {\n\t\t\t\t// for consecutive, numeric keys don't generate keys\n\t\t\t\tif (null !== $lastKey && ++$lastKey === $itemKey) {\n\t\t\t\t\t$items[] = new ArrayItemExpression(\n\t\t\t\t\t\t\t$this->normalizeValue($itemValue)\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\t$lastKey = null;\n\t\t\t\t\t$items[] = new ArrayItemExpression(\n\t\t\t\t\t\t\t$this->normalizeValue($itemValue),\n\t\t\t\t\t\t\t$this->normalizeValue($itemKey)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn new ArrayExpression($items);\n\t\t} else {\n\t\t\tthrow new \\LogicException('Invalid value');\n\t\t}\n\t}", "public function filter_collections ($value, $property = 'id')\n {\n $array = [];\n\n if(empty($this->collections))\n {\n return null;\n }\n\n foreach($this->collections as $collection)\n {\n $vars = get_object_vars($collection);\n\n if($vars[$property] == $value)\n {\n $array[] = $collection;\n }\n }\n\n return $array;\n }", "public static function buildFrom($collection)\n {\n $builder = new static($collection);\n\n return $builder->addAll($collection)->build();\n }", "private function createEntityValue($value)\n {\n return new EntityValue($value);\n }", "public abstract function makeValue($value);", "public function collection($object = null)\n\t{\n\t\tif ($object instanceof Collection) return $object;\n\n\t\t$collectionData = is_array($object) ? $object : array($object);\n\n\t\treturn new Collection($collectionData);\n\t}", "public function getFamousMatchesAttribute(string $value): Collection\n {\n $famousMatches = explode(\",\", $value);\n\n $match = new Match();\n $matches = $match->whereIn('id', $famousMatches)->orderBy('date','asc')->get();\n\n return $matches;\n }", "public function where(\n string $source,\n string $field,\n $value\n ): Collection {\n $statement = $this->pdo->prepare(\n \"SELECT * FROM {$source} WHERE {$field} = :value;\"\n );\n $statement->execute(['value' => $value]);\n\n return new Collection($statement->fetchAll(PDO::FETCH_ASSOC) ?? []);\n }", "public function hydrate($value)\n {\n $value = array_filter($value, function ($var) {\n return !is_null($var);\n });\n return $this->marshaller->marshalItem($value);\n }", "public function addDataCollectionEvents(\\obiba\\mica\\StudyDto\\PopulationDto\\DataCollectionEventDto $value) {\n return $this->_add(8, $value);\n }", "protected function normalizeValue($value) {\n\t\tif ($value instanceof PHPParser_Node) {\n\t\t\treturn $value;\n\t\t} elseif (is_null ( $value )) {\n\t\t\treturn new PHPParser_Node_Expr_ConstFetch ( new PHPParser_Node_Name ( 'null' ) );\n\t\t} elseif (is_bool ( $value )) {\n\t\t\treturn new PHPParser_Node_Expr_ConstFetch ( new PHPParser_Node_Name ( $value ? 'true' : 'false' ) );\n\t\t} elseif (is_int ( $value )) {\n\t\t\treturn new PHPParser_Node_Scalar_LNumber ( $value );\n\t\t} elseif (is_float ( $value )) {\n\t\t\treturn new PHPParser_Node_Scalar_DNumber ( $value );\n\t\t} elseif (is_string ( $value )) {\n\t\t\treturn new PHPParser_Node_Scalar_String ( $value );\n\t\t} elseif (is_array ( $value )) {\n\t\t\t$items = array ();\n\t\t\t$lastKey = - 1;\n\t\t\tforeach ( $value as $itemKey => $itemValue ) {\n\t\t\t\t// for consecutive, numeric keys don't generate keys\n\t\t\t\tif (null !== $lastKey && ++ $lastKey === $itemKey) {\n\t\t\t\t\t$items [] = new PHPParser_Node_Expr_ArrayItem ( $this->normalizeValue ( $itemValue ) );\n\t\t\t\t} else {\n\t\t\t\t\t$lastKey = null;\n\t\t\t\t\t$items [] = new PHPParser_Node_Expr_ArrayItem ( $this->normalizeValue ( $itemValue ), $this->normalizeValue ( $itemKey ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn new PHPParser_Node_Expr_Array ( $items );\n\t\t} else {\n\t\t\tthrow new LogicException ( 'Invalid value' );\n\t\t}\n\t}", "public static function make(array $items): Collection\n {\n return new static($items);\n }", "function _universal_set($collection, $key, $value) {\n $set_object = function ($object, $key, $value) {\n $newObject = clone $object;\n $newObject->$key = $value;\n return $newObject;\n };\n $set_array = function ($array, $key, $value) {\n $array[$key] = $value;\n return $array;\n };\n $setter = \\__::isObject($collection) ? $set_object : $set_array;\n return call_user_func_array($setter, [$collection, $key, $value]);\n}", "protected function collection($data, $transformer)\n {\n return new Collection($data, $transformer);\n }", "public static function new($value)\n {\n return new static($value);\n }", "public static function of($value): self\n {\n if (is_null($value)) {\n throw new NullPointerException();\n }\n return new self($value);\n }", "private function createCollection()\n {\n $class = get_class($this->data);\n\n $this->name = strtolower(class_basename($class));\n\n $result = $this->callEvent($class, [$class => $this->data]);\n\n if ($result instanceof $this->data) {\n $this->data = $result;\n }\n\n $this->makePaginator();\n }", "public function items(array $value = []): self\n {\n $new = clone $this;\n $new->items = $value;\n return $new;\n }", "public static function getByCustomAttribute(string $key, string $value): Collection\n {\n // TODO: Determine if this is ALWAYS the case!\n $key = lcfirst($key);\n return Client::get(\"\", [], [ \"customAttributeKey\" => $key, \"customAttributeValue\" => $value ]);\n }", "public function get($model, $key, $value, $attributes): StoreCollection\n {\n return new StoreCollection(json_decode($value, true));\n }", "function countriesCollect($data = null)\n {\n return new Collection($data);\n }", "public static function of($value) {\n if (is_array($value) && 0 === key($value)) {\n return new ArrayAssertions($value);\n } else if (is_array($value)) {\n return new MapAssertions($value);\n } else if (is_string($value)) {\n return new StringAssertions($value);\n } else if (is_int($value) || is_double($value)) {\n return new NumberAssertions($value);\n } else {\n return new self($value);\n }\n }", "public function createCollection(array $data = [])\n {\n return ItemCollection::factory($data);\n }", "public function createCollection(CollectionCreateStruct $collectionCreateStruct, Block $block, string $collectionIdentifier): Collection;", "public function factory($collection)\n {\n if ($collection instanceof Collection) {\n $collectionName = $collection->getName();\n } else {\n $collectionName = $collection;\n }\n\n if (!isset($this->collections[$collectionName])) {\n if (!($collection instanceof Collection)) {\n $collection = Norm::createCollection(array(\n 'name' => $collection,\n 'connection' => $this,\n ));\n\n $this->applyHook('norm.after.factory', $collection);\n }\n\n $this->collections[$collectionName] = $collection;\n }\n\n return $this->collections[$collectionName];\n }", "function getCollection($name);", "public function testConstructor(): void\n {\n $collection = new Collection(\n collect([(object) ['a.b' => 'c']]),\n ['a' => ['b' => 'c']]\n );\n\n $this->assertEquals([new Item(['a' => ['b' => 'c']])], $collection->toArray());\n }", "protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function item($value) {\n return $this->setProperty('item', $value);\n }", "public static function init($value = self::_DEFAULT) {\n \n return new self($value);\n }", "public function set($value)\n\t{\n\t\treturn $this->_ids($value);\n\t}", "public function collection(Collection $collection);", "public function __get($name)\n {\n return new \\MongoCollection($this->getMongoDB(), $name);\n }", "public function getNewCollection(string $typeName, string $schema): OCICollection\n {\n return oci_new_collection($this->dbh, $typeName, $schema);\n }", "protected function getCollection($name = 'test')\n\t{\n\t\treturn new OLPBlackbox_OrderedCollection($name);\n\t}", "static function set_new_or_expand(&$collection=[], $path='', $value=null, $options=[]){\n\t\t$requried_options = [\n\t\t\t'make' => 'true',\n\t\t\t# turn a non-expandable value into an array\n\t\t\t'path_error_handler' => function(&$reference_to_last, $value){\n\t\t\t\t$deferenced_value = $reference_to_last;\n\t\t\t\t$reference_to_last = [$deferenced_value, $value];},\n\t\t\t# turn a collided value into an array\n\t\t];\n\t\t$options = array_merge($options, $requried_options);\n\n\t\t$target = &self::get($collection, $path, $options);\n\n\t\t$set = function(&$reference_to_last, $value){\n\t\t\tif(is_array($reference_to_last)){\n\t\t\t\t$reference_to_last[] = $value;\n\t\t\t}elseif(!is_null($reference_to_last)){\n\t\t\t\t$deferenced_value = $reference_to_last;\n\t\t\t\t$reference_to_last = [$deferenced_value, $value];\n\t\t\t}else{\n\t\t\t\t$reference_to_last = $value;\n\t\t\t}\n\t\t};\n\t\treturn $set($target, $value);\n\t}", "public function collection(string $name): CollectionRef\n {\n return new CollectionRef(documents: $this, name: $name);\n }", "public static function makeArray($value)\n {\n if(is_array($value))\n return $value;\n else\n return array($value);\n }", "protected function set($value) \n {\n return is_array($value) ? new ArrayOk($value) : $value;\n }", "public function convertToPHPValue($value)\n {\n if ($value === null) {\n return null;\n }\n\n $reflection = new \\ReflectionClass($this->getClass($value));\n $instance = $reflection->newInstanceWithoutConstructor();\n\n foreach ($value as $field => $val) {\n if ($field === Fields::KEY_CLASS) {\n continue;\n }\n\n $this->setValue($reflection, $instance, $field, $val);\n }\n\n return $instance;\n }", "public function createCollection()\n\t{\n\t\t$tag = $this->tag;\n\n\t\tif ($this->hasPaginator) {\n\t\t\t$tag = $this->tag->getCollection();\n\t\t}\n\n\t\t$this->tagCollection = new Collection(\n\t\t\t$tag, \n\t\t\tnew TagTransformer\n\t\t);\n\n\t\treturn $this;\n\t}", "protected function __resolve_new($value)\n {\n return ['$new' => $value];\n }", "public function toCollection(string $case = null, bool $preserveEmpty = true): Collection;" ]
[ "0.78587943", "0.78587943", "0.76729035", "0.72388726", "0.70152515", "0.6961143", "0.6793262", "0.6793262", "0.6793262", "0.67920977", "0.67920977", "0.67920977", "0.63414556", "0.6265065", "0.6154178", "0.5956799", "0.59335554", "0.5922911", "0.59142697", "0.5898451", "0.58852285", "0.58476716", "0.5827346", "0.58246344", "0.57963085", "0.57548094", "0.5746194", "0.56746966", "0.56610054", "0.56462926", "0.56162703", "0.56101465", "0.5604539", "0.5592029", "0.5519018", "0.54918855", "0.54918855", "0.54485327", "0.5446033", "0.5444228", "0.54410774", "0.5434357", "0.5414528", "0.5412925", "0.54112846", "0.5390668", "0.5374396", "0.5373633", "0.53712034", "0.53511715", "0.5337688", "0.5332939", "0.5326763", "0.5322726", "0.5321444", "0.5313019", "0.52985835", "0.52984196", "0.5222562", "0.52161264", "0.52119744", "0.518511", "0.5165745", "0.5137041", "0.5135319", "0.5133762", "0.51231736", "0.51212704", "0.5115263", "0.51048076", "0.50909543", "0.5071141", "0.5070535", "0.50678843", "0.5065206", "0.50591475", "0.5058572", "0.5051518", "0.5046554", "0.50414145", "0.50274634", "0.5014106", "0.50070834", "0.50014687", "0.50001127", "0.49933526", "0.49909344", "0.49859506", "0.4941148", "0.4929514", "0.49124467", "0.49099666", "0.49038118", "0.4901782", "0.4890924", "0.4890216", "0.4882904", "0.48778212", "0.48751172", "0.48726296" ]
0.7493272
3
Return the default value of the given value.
function value($value) { return $value instanceof Closure ? $value() : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultValue() {}", "public function getDefaultValue() {}", "public function getDefaultValue()\n {\n\treturn $this->default;\n }", "public function getDefaultValue()\n {\n return $this->default_value;\n }", "public function getDefaultValue() \n\t\t{\n\t\t\treturn $this->defaultValue;\n\t\t}", "public function getDefaultValue()\n {\n return $this->defaultValue;\n }", "public function getDefaultValue()\n {\n return $this->defaultValue;\n }", "function get_value_or_default($value,$default='')\n{\n\treturn (!empty($value)) ? $default : $value;\n}", "public function getDefaultValue();", "public function getDefaultValue();", "public function getDefaultValue(): mixed;", "public function getDefaultValue() {\n return $this->_default_value;\n }", "public function getDefaultValue()\n {\n return $this->_defaultValue;\n }", "public function getDefaultValue()\n {\n return $this->DefaultValue;\n }", "public function getDefaultValue() {\n\t\treturn isset($this->default) ? $this->default : null;\n\t}", "function getDefault()\n {\n return $this->_defValue;\n }", "function getDefaultValue() {\n return $this->getProperty('default_value');\n }", "protected function getDefaultValue( $value )\n\t{\n\t\tif ( $value instanceof Expression )\n\t\t{\n\t\t\treturn $value;\n\t\t}\n\n\t\tif ( is_bool( $value ) )\n\t\t{\n\t\t\treturn \"'\" . (int) $value . \"'\";\n\t\t}\n\n\t\treturn \"'\" . strval( $value ) . \"'\";\n\t}", "public function getDefaultValue()\n {\n return $this->domain->getDefaultValue();\n }", "public function getDefaultValue()\n {\n // if we do not have a default value, we rely on\n // the underlying datatype to have one\n if ($this->defaultValue === null)\n return $this->oType->getDefaultValue();\n\n return $this->defaultValue;\n }", "public function getDefaultValue()\n {\n if ($this->default instanceof Expression) {\n return $this->default;\n }\n\n return $this->buildDefaultValue();\n }", "function default_value(&$var, $def = null) {\n return isset($var)?$var:$def;\n}", "public function getValidDefaultValue(): mixed;", "function wpv_default($value, $default) {\n\tif (empty($value))\n\t\treturn $default;\n\treturn $value;\n}", "public static function get_value($value, $default_val = '')\n\t{\n\t\treturn Check::isStringEmptyOrNull($value) ? $default_val : $value;\n\t}", "public function getDefaultValue()\n\t{\n\t\tswitch ($this->type) {\n\t\t\tcase self::TYPE_TEXT:\n\t\t\tcase self::TYPE_TEXTAREA:\n\t\t\tcase self::TYPE_PASSWORD:\n\t\t\t\treturn $this->default_value;\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_DATE:\n\t\t\t\treturn date(kyConfig::get()->getDateFormat(), $this->default_value);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t\tbreak;\n\t\t}\n\t}", "protected function getDefaultValue()\n {\n return new Value( array() );\n }", "public function getDefaultValue(): string|int|float|bool|array|null\n {\n $defaultValueNode = $this->node->props[$this->positionInNode]->default;\n\n if ($defaultValueNode === null) {\n return null;\n }\n\n if ($this->compiledDefaultValue === null) {\n $this->compiledDefaultValue = (new CompileNodeToValue())->__invoke(\n $defaultValueNode,\n new CompilerContext(\n $this->reflector,\n $this,\n ),\n );\n }\n\n return $this->compiledDefaultValue->value;\n }", "function getDefaultValue() \n {\n return $this->getValueByFieldName( 'statevar_default' );\n }", "public function getDefault()\n\t\t{\n\t\t\treturn $this->default;\n\t\t}", "public function getDefault()\n {\n return $this->get($this->default);\n }", "public function getDefault($var);", "public static function getDefault()\n {\n return self::$default;\n }", "public static function getDefault()\r\n {\r\n return self::get('default');\r\n }", "public function defaultValue($value = null)\n\t{\n\t\treturn $this->getSet(\"defaultValue\", $value);\n\t}", "public function getDefault()\n {\n return $this->default;\n }", "public function getDefaultVal(): string\n {\n return $this->defaultText;\n }", "public function get_default(){\n\t\treturn $this->default;\n\t}", "public function getDefault()\n {\n return $this->getOption('default');\n }", "public function getDefaultValue() {\n\t\treturn $this->data[$this->defaultLanguagePageID];\n\t}", "function progress_default_value(&$var, $def = null) {\n return isset($var)?$var:$def;\n}", "public function defaultValue()\n {\n // TODO: More cases required.\n if ($this->isClass()) {\n return null;\n } else {\n switch ($this->name) {\n case 'int': return 0;\n case 'string': return '';\n default: throw new \\Exception('No default value available');\n }\n }\n }", "function usp_ews_default_value(&$var, $def = null) {\n return isset($var)?$var:$def;\n}", "static function df(&$value, $default = \"\", $allowZero = false)\n {\n if ($allowZero)\n return !isset($value) ? $default : $value;\n\n return empty($value) ? $default : $value;\n }", "function getDefault() {\n return $this->records[2];\n }", "function coalescenull($value, $default1) {\n if (is_null($value)) {\n return $default1;\n } else {\n return $value;\n }\n }", "public static function defaultify($value)\n {\n if (is_array($value)) {\n foreach ($value as &$v) {\n $v === '' and $v = static::literal('DEFAULT');\n }\n\n return $value;\n }\n return $value === '' ? static::literal('DEFAULT') : $value;\n }", "protected function getDefault($type) {\r\n $default = $this->defaults[$type];\r\n if (empty($default))\r\n return 0;\r\n else\r\n return $default;\r\n }", "public function getOrDefault($key, $defaultValue);", "public function getDefaultValueString()\n {\n $defaultValue = $this->getDefaultValue();\n if ($defaultValue !== null) {\n if ($this->isNumericType()) {\n $dflt = (float) $defaultValue->getValue();\n } elseif ($this->isTextType() || $this->getDefaultValue()->isExpression()) {\n $dflt = \"'\" . str_replace(\"'\", \"\\'\", $defaultValue->getValue()) . \"'\";\n } elseif ($this->getType() == PropelTypes::BOOLEAN) {\n $dflt = $this->booleanValue($defaultValue->getValue()) ? 'true' : 'false';\n } else {\n $dflt = \"'\" . $defaultValue->getValue() . \"'\";\n }\n } else {\n $dflt = \"null\";\n }\n\n return $dflt;\n }", "public function getDefault();", "public function getDefault()\n {\n if($this->default === null) {\n return $this->first();\n }\n return $this->default;\n }", "public function getValueOrDefault($key) {\n return $this->values->get($key) !== NULL\n ? $this->values->get($key)\n : $this->values->get('Default'.$key);\n }", "public function getDefaultProductOptionValue(): ?ProductOptionValue\n {\n $criteria = Criteria::create();\n $criteria->where(Criteria::expr()->eq('default_value', true))\n ->setMaxResults(1);\n\n $values = $this->product_option_values->matching($criteria);\n\n if ($value = $values->first()) {\n return $value;\n }\n\n return null;\n }", "protected static function getDefault($value)\n\t{\n\t\tif (is_array($value)) {\n\t\t\t$value = isset($value[0]) ? $value[0] : '';\n\t\t\treturn \"array(\" . $value . \")\";\n\t\t}\n\t\tif (is_bool($value)) {\n\t\t\treturn ($value) ? \"true\" : \"false\";\n\t\t}\n\t\tif (is_null($value)) {\n\t\t\treturn \"null\";\n\t\t}\n\t\treturn '\"' . $value . '\"';\n\t}", "function getDefaultValue($fieldname){\n\t\t$field =& $this->getField($fieldname);\n\t\t$tablename = $this->getTableName($fieldname);\n\t\tif ( !isset($tablename) ) return null;\n\t\t$table =& $this->getTableOrView($tablename);\n\t\t$delegate =& $table->getDelegate();\n\t\tif ( isset($delegate) and method_exists($delegate, $fieldname.'__default') ){\n\t\t\treturn call_user_func(array(&$delegate, $fieldname.'__default'));\n\t\t} else if ( $field['Default'] ){\n\t\t\treturn $field['Default'];\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public function getDefault(): string\n {\n return $this->default;\n }", "public function getDefault(): string\n {\n return $this->default;\n }", "public function getDefaultValue() {\n return new qti_variable($this->cardinality, $this->type, array('value' => $this->defaultValue));\n }", "public function getDefaultElementValue($element_id) {\n $type = $this->entity->type;\n $value = variable_get(\"cdb_{$type}_{$element_id}_default_value\", '');\n return $value;\n }", "public function getDefaultValue(): AbstractValue\n {\n return new ScalarValue();\n }", "public function val($key, $default = null) {\n return $this->field[$key] ?? $default;\n }", "public function getDefaultValueInfo()\n {\n return $this->default;\n }", "protected function _getValue($name, $default) {}", "#[\\ReturnTypeWillChange]\n public function getDefaultValue()\n {\n return $this->getDeclaringClass()->getDefaultProperties()[$this->name];\n }", "protected function getDefaultValueFromConfiguration($value) {\n // was briefly poisoned with \"array()\" values as defaults.\n\n try {\n $value = phutil_string_cast($value);\n } catch (Exception $ex) {\n $value = '';\n } catch (Throwable $ex) {\n $value = '';\n }\n\n return $value;\n }", "public function getDefaultIdValue(): RawValue\n {\n return new RawValue('default');\n }", "public function getValue(string $field, mixed $default = null): mixed;", "function cspm_get_field_default($option_id, $default_value = ''){\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * We'll check if the default settings can be found in the array containing the \"(shared) plugin settings\".\r\n\t\t\t * If found, we'll use it. If not found, we'll use the one in [@default_value] instead. */\r\n\t\t\t \r\n\t\t\t$default = $this->cspm_setting_exists($option_id, $this->plugin_settings, $default_value);\r\n\t\t\t\r\n\t\t\treturn $default;\r\n\t\t\t\r\n\t\t}", "public function defaultValue($key)\n {\n\n if (! isset(static::$cols[$key])) {\n Error::report('asked for wrong default value data: '.$key.' in '.get_class($this));\n\n return null;\n }\n\n return static::$cols[$key][self::COL_DEFAULT];\n\n }", "public function getDefault()\n {\n return $this->config['config']['default'] ?? null;\n }", "public function getDefault(): ?string;", "public function getPhpDefaultValue()\n {\n return $this->domain->getPhpDefaultValue();\n }", "function getValue( $val, $default ) {\n\n $result = trim( $val );\n\n if ( is_bool( $val ) ) {\n\n if ( !isset( $val ) ) {\n\n $result = $default;\n\n } else {\n\n $result = $val;\n\n }\n\n } else {\n\n if ( strlen( $result ) <= 0 ) {\n\n $result = $default;\n\n }\n\n }\n\n return $result;\n\n }", "function getValue($key, $default = null)\r\n {\r\n return $this->coalesce($this->container[$key], $default);\r\n }", "private function getDefaultAttributeValue(array $field_value) {\n return empty($field_value[0]['value']) ? '' : $field_value[0]['value'];\n }", "public function getDefault($name) {\n\t\tif (isset ( $this->_defaults [$name] )) {\n\t\t\treturn $this->_defaults [$name];\n\t\t}\n\t}", "function define_default($param, $value) {\n\t\t//\n\t}", "public function get(string $key, $default = null)\n {\n\t\treturn array_key_exists($key, $this->values) ? $this->values[$key] : $default;\n\t}", "function value($value,$key=0,$default=false) {\n if((is_string($key) OR is_int($key)) AND is_array($value)) {\n if(array_key_exists($key,$value)) {\n return $value[$key];\n }\n }\n return $default;\n}", "public function getDefaultSetting()\n {\n return $this->getPlatform()->getColumnDefaultValueDDL($this);\n }", "public function __get( $name )\n {\n if ( $name === 'default' )\n {\n return $this->defaultValue;\n }\n }", "public function get($key, $default = null)\n {\n if(isset($this->values[$key])) {\n return $this->values[$key];\n }\n return $default;\n }", "function stripDefaultValue($value, $options)\n\t{\n\t\tif($value == $options['default'])\n\t\t{\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $value;\n\t\t}\n\t}", "public function getValueByName(string $name, $default = null);", "function get_defaultsetting() {\n return $this->defaultsetting;\n }", "public function _default_option() \n\t{\n\t\t$default_value = $this->EE->TMPL->fetch_param('default_value', '');\n\t\t$default = $this->EE->TMPL->fetch_param('default');\n\t\t$return = '';\n\t\tif($default) {\n\t\t\t$return .= '<option value=\"'.$default_value.'\">'.$default.'</option>';\n\t\t}\n\t\treturn $return;\n\t}", "public function getValue($name, $default= NULL) {\n return isset($this->values[$name]) ? $this->values[$name] : $default;\n }", "public function default($value)\n {\n $this->default = $value;\n\n return $this;\n }", "function getDefaultValue($data = array())\r\n\t{\r\n\t\tif (!isset($this->_default)) {\r\n\t\t\t$w = new FabrikWorker();\r\n\t\t\t$params = $this->getParams();\r\n\t\t\t$link = $params->get('link_default_url');\r\n\t\t\t// $$$ hugh - no idea what this was here for, but it was causing some BIZARRE bugs!\r\n\t\t\t//$formdata = $this->getForm()->getData();\r\n\t\t\t// $$$ rob only parse for place holder if we can use the element\r\n\t\t\t// otherwise for encrypted values store raw, and they are parsed when the\r\n\t\t\t// form in processsed in form::addEncrytedVarsToArray();\r\n\t\t\tif ($this->canUse()) {\r\n\t\t\t\t$link = $w->parseMessageForPlaceHolder($link, $data);\r\n\t\t\t}\r\n\t\t\t$element = $this->getElement();\r\n\t\t\t$default = $w->parseMessageForPlaceHolder($element->default, $data);\r\n\t\t\tif ($element->eval == \"1\") {\r\n\t\t\t\t$default = @eval(stripslashes($default));\r\n\t\t\t}\r\n\t\t\t$this->_default = array('label'=>$default, 'link'=>$link);\r\n\t\t}\r\n\t\treturn $this->_default;\r\n\t}", "public function getValue($key, $default = NULL) {\n\t\tif(array_key_exists($key, $this->config)) {\n\t\t\treturn $this->config[$key];\n\t\t}\n\n\t\treturn $default;\n\t}", "function setDefaultValue( $value = 'now' )\r\n\t{\r\n\t\t$this->defaultValue = date($this->dateFormat, strtotime($value));\r\n\t}", "public static function compileDefault($value) {\n\t\tif (is_null($value)) {\n\t\t\treturn 'NULL';\n\t\t}\n\n\t\tif (is_bool($value)) {\n\t\t\treturn $value ? 'TRUE' : 'FALSE';\n\t\t}\n\n\t\tif (is_numeric($value)) {\n\t\t\treturn \"'{$value}'\";\n\t\t}\n\n\t\tif (is_string($value)) {\n\t\t\tif ($value === 'CURRENT_TIMESTAMP') {\n\t\t\t\treturn $value;\n\t\t\t}\n\n\t\t\t$value = str_replace(chr(39), chr(92) . chr(39), $value);\n\t\t\treturn \"'{$value}'\";\n\t\t}\n\n\t\treturn false;\n\t}", "public function get($key, $default = null) {\n return array_key_exists($key, $this->values) ? $this->values[$key] : $default;\n }", "public function get($key, $default_val = null)\r\n {\r\n if (isset($this->attributes[$key])) {\r\n return $this->attributes[$key];\r\n }\r\n\r\n return $default_val;\r\n }", "function getifSet(&$value, $default = null)\n{\n //if it is set return the value, or else, return the default value\n return isset($value) ? $value : $default;\n}", "public function setDefaultValue($value);", "function defval (&$val,$default_val) {\r\n\t\tif (!isset($val) || ''==$val) {\r\n\t\t\t$val=$default_val;\r\n\t\t} elseif ('NULL' == $val) {\r\n\t\t\t$val='';\r\n\t\t}\r\n\r\n\t\tif (ereg(\"^%([^\\[]+)\\[(.+)\\]%$\",$val,$regs) ) {\r\n\t\t\t$val=$this->{$regs[1]}[$regs[2]];\r\n\t\t}\r\n\t}", "public function value(/*$default = \\Unicity\\Core\\Data\\Undefined::instance(), $eval = 'ifUndefined'*/) {\n\t\t\t$argc = func_num_args();\n\t\t\tif ($argc > 0) {\n\t\t\t\t$args = func_get_args();\n\t\t\t\t$default = $args[0];\n\t\t\t\t$function = ($argc > 1) ? $args[1] : 'ifUndefined';\n\t\t\t\treturn call_user_func_array(array('\\\\Unicity\\\\MappingService\\\\Data\\\\ToolKit', $function), array($this->value, $default));\n\t\t\t}\n\t\t\treturn $this->value;\n\t\t}", "public static function getDefaultValueForParameter($param){\n // todo: change this dummy\n return \"\";\n }", "public function get($key, $default = null)\n\t{\n\t\tif ($option = self::where('key', $key)->first()) {\n\t\t\treturn $option->value;\n\t\t}\n\n\t\treturn $default;\n\t}" ]
[ "0.80408", "0.804026", "0.80091625", "0.79798394", "0.79289234", "0.79138875", "0.79138875", "0.7909732", "0.7881974", "0.7881974", "0.7848414", "0.7823993", "0.7820418", "0.776555", "0.7728266", "0.77212256", "0.76933616", "0.76096064", "0.7536002", "0.7527292", "0.7493406", "0.7394341", "0.73691434", "0.7352595", "0.73386425", "0.73294705", "0.73069143", "0.7304374", "0.72980267", "0.7246979", "0.7229179", "0.7227183", "0.71855575", "0.7176163", "0.7158797", "0.71457857", "0.7092169", "0.7076704", "0.70414114", "0.7040764", "0.69781834", "0.6955337", "0.6930746", "0.6853878", "0.6831984", "0.68215656", "0.6800309", "0.67959416", "0.67823493", "0.6727691", "0.66930944", "0.6653536", "0.6651284", "0.6644315", "0.6628104", "0.6604772", "0.659129", "0.659129", "0.6570671", "0.6552371", "0.6527106", "0.6481162", "0.6459637", "0.6445424", "0.6440293", "0.64300513", "0.632802", "0.6321456", "0.63204", "0.6257767", "0.62400955", "0.6235327", "0.62276167", "0.62118596", "0.619702", "0.6180819", "0.6177651", "0.61688465", "0.61643726", "0.6133012", "0.61319077", "0.6128002", "0.61204076", "0.6118292", "0.61029506", "0.6101342", "0.609929", "0.6086652", "0.6084264", "0.6078283", "0.60622895", "0.6057202", "0.6055966", "0.6047095", "0.604615", "0.6044607", "0.60429865", "0.6039362", "0.60338193", "0.6028787", "0.60164815" ]
0.0
-1
Get an item from an array or object using "dot" notation.
function data_get($target, $key, $default = null) { if (is_null($key)) { return $target; } $key = is_array($key) ? $key : explode('.', is_int($key) ? (string) $key : $key); while (!is_null($segment = array_shift($key))) { if ('*' === $segment) { if ($target instanceof Collection) { $target = $target->all(); } elseif (!is_array($target)) { return value($default); } $result = []; foreach ($target as $item) { $result[] = data_get($item, $key); } return in_array('*', $key) ? Arr::collapse($result) : $result; } if (Arr::accessible($target) && Arr::exists($target, $segment)) { $target = $target[$segment]; } elseif (is_object($target) && isset($target->{$segment})) { $target = $target->{$segment}; } else { return value($default); } } return $target; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function get ($item);", "function object_get($object, $key, $default = null)\n {\n if (is_null($key) || trim($key) == '') {\n return $object;\n }\n\n foreach (explode('.', $key) as $segment) {\n if (!is_object($object) || !isset($object->{$segment})) {\n return value($default);\n }\n\n $object = $object->{$segment};\n }\n\n return $object;\n }", "public static function get($array, $key, $default = null)\n {\n if (static::exists($array, $key)) {\n return $array[$key];\n }\n\n if (strpos($key, '.') === false) {\n return $default;\n }\n\n $items = $array;\n\n foreach (explode('.', $key) as $segment) {\n if (!is_array($items) || !static::exists($items, $segment)) {\n return $default;\n }\n\n $items = &$items[$segment];\n }\n\n return $items;\n }", "function fnGet(&$array, $key, $default = null, $separator = '/')\n{\n if (($sub_key_pos = strpos($key, $separator)) === false) {\n if (is_object($array)) {\n return property_exists($array, $key) ? $array->$key : $default;\n }\n return isset($array[$key]) ? $array[$key] : $default;\n } else {\n $first_key = substr($key, 0, $sub_key_pos);\n if (is_object($array)) {\n $tmp = property_exists($array, $first_key) ? $array->$first_key : null;\n } else {\n $tmp = isset($array[$first_key]) ? $array[$first_key] : null;\n }\n return fnGet($tmp, substr($key, $sub_key_pos + 1), $default, $separator);\n }\n}", "function array_dot_get(array $array, $key) {\n\tif(strpos($key, '.') === false)\n\t\treturn $array[$key];\n\n\t$target = &$array;\n\t$keys = explode('.', $key);\n\tforeach($keys as $curKey) {\n\t\tif(!array_key_exists($curKey, $target))\n\t\t\treturn null;\n\t\t$target = &$target[$curKey];\n\t}\n\n\treturn $target;\n}", "public static function get($array, $key, $default = null)\n {\n if (is_null($key))\n {\n return $array;\n }\n \n if (is_object($array))\n {\n $array = self::fromObject($array);\n }\n \n if (isset($array[$key]))\n {\n return $array[$key];\n }\n \n foreach (explode('.', $key) as $segment)\n {\n if (is_object($array))\n {\n $array = self::fromObject($array);\n }\n \n if (!is_array($array) || !array_key_exists($segment, $array))\n {\n return $default;\n }\n \n $array = $array[$segment];\n }\n \n return $array;\n }", "public static function get($array, $key, $default = null)\n {\n if (is_null($key)) {\n return $array;\n }\n\n if (is_object($array)) {\n return self::object_get($array, $key, $default);\n }\n\n if (isset($array[$key])) {\n return $array[$key];\n }\n\n foreach (explode('.', $key) as $segment) {\n if (! is_array($array) || ! array_key_exists($segment, $array)) {\n return value($default);\n }\n\n $array = $array[$segment];\n }\n\n return $array;\n }", "function getattr($var, $param, $default = null)\n{\n if (is_array($var))\n {\n if (isset($var[$param]))\n return $var[$param];\n } else if (is_object($var))\n {\n if (property_exists($var, $param))\n return $var->$param;\n }\n return $default;\n}", "public function get($key, $default = null){\n $key = str_replace(\"mpesa.\",\"\",$key);\n $array = $this->items;\n if (! static::accessible($array)) {\n return $this->value($default);\n }\n\n if (is_null($key)) {\n return $array;\n }\n\n if (static::exists($array, $key)) {\n return $array[$key];\n }\n\n if (strpos($key, '.') === false) {\n return $array[$key] ?: $this->value($default);\n }\n \n foreach (explode('.', $key) as $segment) {\n if (static::accessible($array) && static::exists($array, $segment)) {\n $array = $array[$segment];\n } else {\n return $this->value($default);\n }\n }\n \n return $array;\n }", "function arrayGet($array, $key, $default = null)\n {\n if ( ! $this->arrayAccessible($array) ) {\n return $this->value($default);\n }\n if ( is_null($key) ) {\n return $array;\n }\n if ( $this->arrayExists($array, $key) ) {\n return $array[$key];\n }\n if ( strpos($key, '.') === false ) {\n return $array[$key] ?? $this->value($default);\n }\n foreach ( explode('.', $key) as $segment ) {\n if ( $this->arrayAccessible($array) && $this->arrayExists($array, $segment) ) {\n $array = $array[$segment];\n } else {\n return $this->value($default);\n }\n }\n return $array;\n }", "public static function get($array, $key, $default = null)\n {\n if (! static::accessible($array)) {\n return $default;\n }\n\n if (static::exists($array, $key)) {\n return $array[$key];\n }\n\n if (strpos($key, '.') === false) {\n return $array[$key] ?? $default;\n }\n\n foreach (explode('.', $key) as $segment) {\n if (static::accessible($array) && static::exists($array, $segment)) {\n $array = $array[$segment];\n } else {\n return $default;\n }\n }\n\n return $array;\n }", "public static function item($array, $name)\n {\n if (($array != null) && (strlen($name) > 0))\n {\n if (is_array($array))\n return array_key_exists($name, $array) ? $array[$name] : null;\n if (is_object($array))\n return property_exists($array, $name) ? $array->$name : null;\n }\n return null;\n }", "public function object_get($object, $key, $default = null)\n {\n if (is_null($key) || trim($key) == '') {\n return $object;\n }\n\n foreach (explode('.', $key) as $segment) {\n if (! is_object($object) || ! isset($object->{$segment})) {\n return $this->value($default);\n }\n\n $object = $object->{$segment};\n }\n\n return $object;\n }", "public function __get( $name )\n\t{\n\t\tif ( !is_array( $this->_id ) )\n\t\t\tthrow new \\RuntimeException( 'item does not exist (anymore)' );\n\n\t\tif ( array_key_exists( $name, $this->_id ) )\n\t\t\treturn $this->_id[$name];\n\n\t\t$record = $this->load();\n\n\t\tif ( array_key_exists( $name, $record ) )\n\t\t\treturn $record[$name];\n\n\t\tthrow new \\InvalidArgumentException( 'unknown property: ' . static::set() . \".$name\" );\n\t}", "public function get($item)\n {\n return $this->items[$item];\n }", "public function offsetGet(mixed $offset): mixed {\n $value = null;\n if ($this->offsetExists($offset)) {\n $value = $this->items[$offset];\n }\n return $value;\n }", "public static function get( $array, $key, $default = null ) {\n\t\t\tif ( ! static::accessible( $array ) ) {\n\t\t\t\treturn $default;\n\t\t\t}\n\n\t\t\tif ( static::exists( $array, $key ) ) {\n\t\t\t\treturn $array[ $key ];\n\t\t\t}\n\n\t\t\t$key = (string) $key;\n\n\t\t\tif ( strpos( $key, '.' ) === false ) {\n\t\t\t\treturn $array[ $key ] ?? $default;\n\t\t\t}\n\n\t\t\tforeach ( explode( '.', $key ) as $segment ) {\n\t\t\t\tif ( static::accessible( $array ) && static::exists( $array, $segment ) ) {\n\t\t\t\t\t$array = $array[ $segment ];\n\t\t\t\t} else {\n\t\t\t\t\treturn $default;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $array;\n\t\t}", "function data_get($target, $key, $default = null)\n {\n if ( is_null($key) )\n return $target;\n\n foreach (explode('.', $key) as $segment)\n {\n if (is_array($target)) {\n if ( ! array_key_exists($segment, $target)) {\n return value($default);\n }\n\n $target = $target[$segment];\n }\n elseif (is_object($target)) {\n if ( ! isset($target->{$segment})) {\n return value($default);\n }\n\n $target = $target->{$segment};\n }\n else {\n return value($default);\n }\n }\n\n return $target;\n }", "static function get(array $array, $key, $default = null) {\n if (null === $key) {\n return $array;\n }\n\n if (isset($array[$key])) {\n return $array[$key];\n }\n\n foreach (explode('.', $key) as $part) {\n if (!is_array($array) || !array_key_exists($part, $array)) {\n return $default;\n }\n\n $array = $array[$part];\n }\n\n return $array;\n }", "public static function _getDot($key, Wire $from) {\n\t\t$key = trim($key, '.');\n\t\tif(strpos($key, '.')) {\n\t\t\t// dot present\n\t\t\t$keys = explode('.', $key); // convert to array\n\t\t\t$key = array_shift($keys); // get first item\n\t\t} else {\n\t\t\t// dot not present\n\t\t\t$keys = array();\n\t\t}\n\t\tif($from->wire($key) !== null) return null; // don't allow API vars to be retrieved this way\n\t\tif($from instanceof WireData) {\n\t\t\t$value = $from->get($key);\n\t\t} else if($from instanceof WireArray) {\n\t\t\t$value = $from->getProperty($key);\n\t\t} else {\n\t\t\t$value = $from->$key;\n\t\t}\n\t\tif(!count($keys)) return $value; // final value\n\t\tif(is_object($value)) {\n\t\t\tif(count($keys) > 1) {\n\t\t\t\t$keys = implode('.', $keys); // convert back to string\n\t\t\t\tif($value instanceof WireData) $value = $value->getDot($keys); // for override potential\n\t\t\t\t\telse $value = self::_getDot($keys, $value);\n\t\t\t} else {\n\t\t\t\t$key = array_shift($keys);\n\t\t\t\t// just one key left, like 'title'\n\t\t\t\tif($value instanceof WireData) {\n\t\t\t\t\t$value = $value->get($key);\n\t\t\t\t} else if($value instanceof WireArray) {\n\t\t\t\t\tif($key == 'count') {\n\t\t\t\t\t\t$value = count($value);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$a = array();\n\t\t\t\t\t\tforeach($value as $v) $a[] = $v->get($key); \t\n\t\t\t\t\t\t$value = $a; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// there is a dot property remaining and nothing to send it to\n\t\t\t$value = null; \n\t\t}\n\t\treturn $value; \n\t}", "public function __get($name)\n\t{\n\t\tif($this->contains($name))\n\t\t\treturn $this->itemAt($name);\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\treturn $this->loadParam($name);\n\t\t\t}\n\t\t\tcatch (CException $e)\n\t\t\t{\n\t\t\t\treturn parent::__get($name);\n\t\t\t}\n\t\t}\n\t}", "public function get_item($opt = null)\n\t{\n\t\tif (!$opt) $opt = array();\n\t\t\n\t\t// List (non-map)\n\t\tif (isset($opt['AttributesToGet']))\n\t\t{\n\t\t\t$opt['AttributesToGet'] = (is_array($opt['AttributesToGet']) ? $opt['AttributesToGet'] : array($opt['AttributesToGet']));\n\t\t}\n\n\t\treturn $this->authenticate('GetItem', $opt);\n\t}", "public function offsetGet($idx)\t\t\t//\teg. var_dump($obj['two']);\r\n\t{\r\n\t\treturn $this->members[$idx];\r\n\t}", "public static function get(array $array, string $key, mixed $default = NULL): mixed\n {\n\n if (isset($array[$key])) {\n\n return $array[$key];\n\n }\n\n foreach (explode('.', $key) as $segment) {\n\n if (!is_array($array) || !array_key_exists($segment, $array)) {\n\n return $default;\n\n }\n\n $array = $array[$segment];\n\n }\n\n return $array;\n\n }", "public function get(array $data, $column)\n {\n if (!$this->has($data, $column)) {\n return null;\n }\n if (strpos($column, '.')) {\n list($model, $column) = explode('.', $column);\n if (isset($data[$model][$column])) {\n return $data[$model][$column];\n }\n return $data[\"{$model}.{$column}\"];\n }\n if (isset($data[$this->model->alias][$column])) {\n return $data[$this->model->alias][$column];\n }\n if (isset($data[\"{$this->model->alias}.{$column}\"])) {\n return $data[\"{$this->model->alias}.{$column}\"];\n }\n return $data[$column];\n }", "function getItem($key, $array, $default=null) {\n\t\tif (array_key_exists($key, $array)) {\n\t\t\treturn $array[$key];\n\t\t} else {\n\t\t\tif (func_num_args() === 3) {\n\t\t\t\treturn $default;\n\t\t\t} else {\n\t\t\t\tthrow Exception('Unable to find key '.$key.' in the array '.var_dump($array, true));\n\t\t\t}\n\t\t}\n\t}", "public static function get($array, $key, $default = null)\n {\n if (is_null($key)) return $array;\n\n if (isset($array[$key])) return $array[$key];\n\n foreach (explode('.', $key) as $segment)\n {\n if ( ! is_array($array) || ! array_key_exists($segment, $array))\n {\n return $default;\n }\n\n $array = $array[$segment];\n }\n\n return $array;\n }", "public function get($key) {\n\t\tif(is_object($key)) $key = \"$key\";\n\t\tif(array_key_exists($key, $this->data)) return $this->data[$key]; \n\t\tif(strpos($key, '|')) {\n\t\t\t$keys = explode('|', $key); \n\t\t\tforeach($keys as $k) {\n\t\t\t\t/** @noinspection PhpAssignmentInConditionInspection */\n\t\t\t\tif($value = $this->get($k)) return $value;\n\t\t\t}\n\t\t}\n\t\treturn parent::__get($key); // back to Wire\n\t}", "public static function get($index)\n {\n return self::getInstance()->dotNotation->get($index);\n }", "public function find(string $key)\n {\n if (!preg_match('/^[\\w\\-]+(\\.[\\w\\-]+)+$/i', $key)) {\n return $this->get($key);\n }\n\n $tokens = explode(\".\", $key);\n $arr = $this->get($tokens[0]);\n array_shift($tokens);\n\n if (!is_array($arr)) {\n return null;\n }\n\n $deep = array_map(function ($prop) {\n return sprintf('[\"%s\"]', $prop);\n }, $tokens);\n\n $eval = \"return \\$arr\" . implode($deep) . \" ?? null;\";\n return eval($eval);\n }", "function array_get($array, $key, $default = null)\n{\n if (is_null($key)) {\n return $array;\n }\n if (isset($array[$key])) {\n return $array[$key];\n }\n\n foreach (explode('.', $key) as $segment) {\n if ( ! is_array($array) or ! array_key_exists($segment, $array)) {\n return $default;\n }\n $array = $array[$segment];\n }\n\n return $array;\n}", "function offsetGet(/*. mixed .*/ $object_){}", "public function offsetGet($key)\n {\n return $this->$key;\n }", "public function offsetGet($offset)\n {\n return $this->item[$offset];\n }", "public function offsetGet($offset) { \n if (!$this->offsetExists($offset)) {\n return null;\n }\n \n $result = $this->itemsCollection()->findOne(array(), array(\n self::ITEMS_OBJECT_NAME => array(\n '$slice' => array($offset, 1)\n )\n ));\n \n return $result[self::ITEMS_OBJECT_NAME][0];\n }", "public function get($key, $default = null)\n {\n if(!isset($this->item[$item = explode('.', $key)[0]])){\n $this->add($item);\n }\n return data_get($this->item, $key, $default);\n }", "public function offsetGet($key): mixed\n {\n if (is_array($this->_data)) {\n return $this->out($this->_data[$key], $key, 'array');\n } elseif ($this->_data instanceof \\ArrayAccess) {\n return $this->out($this->_data[$key], $key, 'array');\n } else {\n throw new \\Exception('Cannot use object of type ' . get_class($this->_data) . ' as array');\n }\n }", "public static function getValue($array, $key)\n\t{\n\t\t$keys = explode(\"->\", $key);\n\t\tforeach ($keys as $k) {\n\t\t\tif (is_array($array) && isset($array[$k])) {\n\t\t\t\t$array = $array[$k];\n\t\t\t} else if (is_object($array) && property_exists($array, $k)) {\n\t\t\t\t$array = $array->$k;\n\t\t\t} else {\n\t\t\t\t$array = null;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $array;\n\t}", "public function get($item) {\r\n\t\tif (!isset($this->items[$item])) {\r\n\t\t\t// load category file\r\n\t\t\t$explodedItem = explode('.', $item);\r\n\t\t\tif (count($explodedItem) < 2) {\r\n\t\t\t\treturn $item;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (count($explodedItem) < 4 || !$this->loadCategory($explodedItem[0].'.'.$explodedItem[1].'.'.$explodedItem[2].'.'.$explodedItem[3])) {\r\n\t\t\t\tif (count($explodedItem) < 3 || !$this->loadCategory($explodedItem[0].'.'.$explodedItem[1].'.'.$explodedItem[2])) {\r\n\t\t\t\t\t$this->loadCategory($explodedItem[0].'.'.$explodedItem[1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// return language variable\r\n\t\tif (isset($this->items[$item])) {\r\n\t\t\treturn $this->items[$item];\r\n\t\t}\r\n\t\t\r\n\t\t// return plain variable\r\n\t\treturn $item;\r\n\t}", "function data_get($target, $key, $default = null)\n {\n if (is_null($key)) {\n return $target;\n }\n\n $key = is_array($key) ? $key : explode('.', $key);\n\n while (!is_null($segment = array_shift($key))) {\n if ($segment === '*') {\n if ($target instanceof Collection) {\n $target = $target->all();\n } elseif (!is_array($target)) {\n return value($default);\n }\n\n $result = Arr::pluck($target, $key);\n\n return in_array('*', $key) ? Arr::collapse($result) : $result;\n }\n\n if (Arr::accessible($target) && Arr::exists($target, $segment)) {\n $target = $target[$segment];\n } elseif (is_object($target) && isset($target->{$segment})) {\n $target = $target->{$segment};\n } else {\n return value($default);\n }\n }\n\n return $target;\n }", "function array_get($array, $key, $default = null)\n {\n if (is_null($key)) {\n return $array;\n }\n\n if (array_key_exists($key, $array)) {\n return $array[$key];\n }\n\n foreach (explode('.', $key) as $segment) {\n if (is_array($array) && array_key_exists($segment, $array)) {\n $array = $array[$segment];\n } else {\n return $default;\n }\n }\n\n return $array;\n }", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet(mixed $offset): mixed\n {\n return $this->get((string) $offset);\n }", "function array_get($array, $key, $default = null)\n {\n if (is_null($key)) return $array;\n\n if (isset($array[$key])) return $array[$key];\n\n foreach (explode('.', $key) as $segment)\n {\n if ( ! is_array($array) || ! array_key_exists($segment, $array))\n {\n return value($default);\n }\n\n $array = $array[$segment];\n }\n\n return $array;\n }", "public function get($item)\r\n {\r\n $instance = $this->getInstance($item);\r\n return $instance->get();\r\n }", "public function offsetGet($offset): mixed\n {\n return $this->get($offset);\n }", "public function offsetGet($offset): mixed\n {\n return $this->json()[$offset];\n }", "public function offsetGet($id)\n {\n return parent::offsetGet(str_replace('_', '.', $id));\n }", "#[\\ReturnTypeWillChange]\n public function offsetGet($offset)\n {\n return $this->items()[$offset];\n }", "public function retrieveItem($obj_name) {\n if (array_key_exists($obj_name, $this->objects) &&\n is_string($obj_name)) {\n return $this->objects[$obj_name];\n }\n else {\n throw new Exception(\"Object $obj_name not present in container.\");\n }\n }", "function array_get($array, $key, $default = null)\n\t{\n\t\tif (is_null($key)) return $array;\n\n\t\tif (isset($array[$key])) return $array[$key];\n\n\t\tforeach (explode('.', $key) as $segment)\n\t\t{\n\t\t\tif ( ! is_array($array) || ! array_key_exists($segment, $array))\n\t\t\t{\n\t\t\t\treturn value($default);\n\t\t\t}\n\n\t\t\t$array = $array[$segment];\n\t\t}\n\n\t\treturn $array;\n\t}", "function get($field) {\n\t\tif(!is_string($field)) {\n\t\t\ttrigger_error(\"Parameter for model->get() must be a string\", E_USER_WARNING);\n\t\t\treturn null;\n\t\t}\n\n\t\tif (method_exists($this, 'get_'.$field)) {\n\t\t\t$args = func_get_args();\n\t\t\tarray_shift($args);\n\n\t\t\treturn call_user_func_array(array(& $this, 'get_'.$field), $args);\n\t\t}\n\n\t\t$result = $this->find_associated($field);\n\n\t\tif (!is_null($result)) {\n\t\t\treturn $result;\n\t\t}\n\n\t\tif (isset($this->data[$field])) {\n\t\t\treturn $this->data[$field];\n\t\t}\n\n\t}", "public function offsetGet(mixed $key): mixed;", "public function offsetGet($key)\n {\n return $this->propertyGet($key);\n }", "function get($key);", "function array_get(array $array, $key, $default = null) {\n if ($key === null) {\n return null;\n }\n\n if (isset($array[$key])) {\n return $array[$key];\n }\n\n foreach (explode('.', $key) as $segment) {\n if ( ! is_array($array) || ! array_key_exists($segment, $array)) {\n return $default;\n }\n\n $array = $array[$segment];\n }\n\n return $array;\n }", "public function getDot($key) {\n\t\treturn self::_getDot($key, $this); \n\t}", "function getItem() ;", "public static function getValue($array, $key, $default = null)\n {\n if ($key instanceof \\Closure) {\n return $key($array, $default);\n }\n\n if (is_array($key)) {\n $lastKey = array_pop($key);\n foreach ($key as $keyPart) {\n $array = static::getValue($array, $keyPart);\n }\n $key = $lastKey;\n }\n\n if (is_array($array) && (isset($array[$key]) || array_key_exists($key, $array))) {\n return $array[$key];\n }\n\n if (($pos = strrpos($key, '.')) !== false) {\n $array = static::getValue($array, substr($key, 0, $pos), $default);\n $key = substr($key, $pos + 1);\n }\n\n if (is_object($array)) {\n // this is expected to fail if the property does not exist, or __get() is not implemented\n // it is not reliably possible to check whether a property is accessible beforehand\n return $array->$key;\n } elseif (is_array($array)) {\n return (isset($array[$key]) || array_key_exists($key, $array)) ? $array[$key] : $default;\n }\n\n return $default;\n }", "public function offsetGet($offset)\n\t{\n\t\treturn $this->itemAt($offset);\n\t}", "public function offsetGet($offset) {\n return $this->_items[$offset];\n }", "public function retrieve($item);", "function getField ($data, $key, $default = null)\n{\n if (is_object ($data)) {\n if (property_exists ($data, $key)) \n return $data->$key;\n if ($data instanceof ArrayAccess && isset($data[$key]))\n return $data[$key];\n return $default;\n }\n if (is_array ($data))\n return array_key_exists ($key, $data) ? $data[$key] : $default;\n throw new \\InvalidArgumentException;\n}", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet($offset)\n {\n return $this->$offset;\n }", "public function offsetGet($offset)\n {\n // TODO: Implement offsetGet() method.\n return Arr::get($this->toArray(), $offset);\n }", "#[\\ReturnTypeWillChange]\n public function offsetGet($offset) {\n return $this->_items[$offset];\n }", "public function offsetGet(mixed $key): mixed\n {\n return $this->getArgument($key);\n }", "public function offsetGet($offset): mixed;", "public static function get($key, $options = array()) {\n $defaults = array('default' => false, 'tree' => true);\n $options += $defaults;\n if (is_string($key)) {\n if (false !== strpos($key, '.')) {\n $keyArray = explode('.', $key);\n $count = count($keyArray) - 1;\n $last = $keyArray[$count];\n $data = static::$__registry;\n for ($i=0;$i!=count($keyArray);$i++) {\n $node = $keyArray[$i];\n if ($node !== '') {\n if (array_key_exists($node, $data)) {\n if ($node == $last && $i == $count) {\n return $data[$node];\n }\n if (is_array($data[$node])) {\n $data = $data[$node];\n }\n }\n }\n }\n if ($data !== static::$__registry) {\n return $data;\n }\n }\n\n return (!isset(static::$__registry[$key])) ?\n\t\t\t\t\t$options['default'] :\n\t\t\t\t\tstatic::$__registry[$key];\n }\n\n throw new \\InvalidArgumentException(\n sprintf(\n 'Invalid arugment \"$key\" expected \"string\" received \"%s\"',\n\t\t\t\tgettype($key)\n )\n );\n }", "public function offsetGet(mixed $offset): mixed\n {\n return Arr::get($this->value, $offset);\n }", "public function offsetGet($offset) {\n\t\treturn $this->valueForKey($offset);\n\t}", "public function offsetGet($name)\n\t{\n\t\treturn $this->get ( $name );\n\t}", "public function offsetGet($name) {\n\t\treturn $this->__get($name);\n\t}", "protected function _get(array $array, $key, $default = null)\n {\n $keys = explode('.', $key);\n\n foreach ($keys as $segment) {\n if (!is_array($array) || !array_key_exists($segment, $array)) {\n return $default;\n }\n\n $array = $array[$segment];\n }\n\n return $array;\n }", "public static function array_get($array, $key, $default = null) {\n\n \tif (is_null($key)) return $array;\n \n \tif (isset($array[$key])) return $array[$key];\n\n \tforeach (explode('.', $key) as $segment) {\n\n \t\tif ( ! is_array($array) or ! array_key_exists($segment, $array)) {\n return $default;\n \t}\n \t\t\t\t$array = $array[$segment];\n \t}\n \t\t\treturn $array;\n \t}", "public function __get($property) {\t\tif (array_key_exists($property, $this->data)) \n\t\t\treturn $this->data[$property]['value'];\n\t\t// is it related?\n\t\tif (array_key_exists($property, $this->relatedObjects))\n\t\t\treturn $this->relatedObjects[$property];\n\n\t\tthrow new InvalidArgumentException(\"Unknown property: $property\");\n\t}", "public static function get($indirectObjectOrDictionary) {}", "public function getItem();", "public function get($item)\n\t{\n\t\t// look for an item at index (if numeric)\n\t\tif (is_numeric($item))\n\t\t{\n\t\t\tif (isset($this->menu[$item]))\n\t\t\t{\n\t\t\t\treturn $this->menu[$item];\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// get item index\n\t\t\t$index = $this->indexOf($item);\n\n\t\t\tif ($index !== false)\n\t\t\t{\n\t\t\t\t// item found, return it\n\t\t\t\treturn $this->menu[$item];\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public function itemAt($key)\n\t{\n\t\treturn isset($this->_d[$key]) ? $this->_d[$key] : null;\n\t}", "function array_get(array $array, string $key, $default = null)\n {\n if (is_null($key)) {\n return $array;\n }\n\n if (isset($array[$key])) {\n return $array[$key];\n }\n\n foreach (explode('.', $key) as $segment) {\n if (! is_array($array) || ! array_key_exists($segment, $array)) {\n return value($default);\n }\n\n $array = $array[$segment];\n }\n\n return $array;\n }", "public function offsetGet(mixed $offset): mixed\n {\n if (array_key_exists($offset, $this->items)) {\n return $this->items[$offset];\n }\n return null;\n }", "public function get($key)\n\t{\t\n\t\treturn $this->{$key};\n\t}", "public function offsetGet($offset)\n {\n return $this->$offset;\n\n }", "public function offsetGet($key)\n {\n return $this->__get($key);\n }", "public function offsetGet($key)\n {\n return $this->__get($key);\n }", "public function offsetGet($offset){\n\t\treturn $this->get($offset);\n\t}", "public function offsetGet($offset)\r\n {\r\n return $this->get($offset);\r\n }", "protected function getSingle($key) \n {\n if ($this->exists($key)) {\n return is_array($this->items[$key]) ? new ArrayOk($this->items[$key]) : $this->items[$key];\n }\n }", "abstract public function getItem($name);", "public function get(string $key, array $array)\n {\n $keys = explode('.', $key);\n\n foreach ($keys as $ikey) {\n $array = $array[$ikey];\n }\n\n return $array;\n }", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);" ]
[ "0.6392624", "0.62889105", "0.62743783", "0.6255427", "0.6247943", "0.6191173", "0.61276066", "0.608202", "0.6058721", "0.60563445", "0.60544264", "0.60263926", "0.5996097", "0.5984964", "0.5962895", "0.5908478", "0.58836293", "0.58694756", "0.5849032", "0.5839304", "0.5814938", "0.5814692", "0.57734245", "0.5761867", "0.5760778", "0.5740636", "0.570387", "0.56914806", "0.5671995", "0.5668777", "0.56664747", "0.5662554", "0.56499636", "0.56469303", "0.5646421", "0.5601319", "0.5595754", "0.5595466", "0.55935645", "0.55868846", "0.55859435", "0.558383", "0.5583465", "0.557329", "0.556945", "0.5563592", "0.55509794", "0.555059", "0.5545569", "0.5536559", "0.5535406", "0.5534476", "0.55267584", "0.55262846", "0.55230397", "0.5522225", "0.5517874", "0.55154324", "0.5507936", "0.5507762", "0.5506137", "0.5503277", "0.5501875", "0.5499761", "0.5499761", "0.5499761", "0.5499761", "0.5499761", "0.5499761", "0.5499761", "0.5495613", "0.5487264", "0.54826146", "0.54810727", "0.5478575", "0.54778147", "0.547761", "0.54769313", "0.5474105", "0.5472751", "0.5467027", "0.5465214", "0.5463701", "0.54603076", "0.54566014", "0.5456504", "0.54548794", "0.544735", "0.54432964", "0.5443017", "0.54408234", "0.54408234", "0.5436369", "0.54339415", "0.5424036", "0.5419848", "0.54177934", "0.5412877", "0.5412877", "0.5412877", "0.5412877" ]
0.0
-1
Seed the application's database.
public function run() { $this->call([ AdministratorsTableSeeder::class, ConfigTableSeeder::class, PermissionTableSeeder::class, AdminResourceTableSeeder::class, AdminRoleTableSeeder::class, AdminRoleAdministratorTableSeeder::class, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');// <- SHOULD RESET ANYWAY BUT JUST TO MAKE SURE!\n\t\t}\n\t}", "protected function seedDB()\n {\n $ans = $this->ask('Seed your database?: ', 'y');\n\n // Check if the answer is true\n if (preg_match('/^y/', $ans))\n {\n $this->call('db:seed');\n $this->comment('');\n $this->comment('Database successfully seeded.');\n $this->comment('=====================================');\n echo \"Your app is now ready!\";\n }\n }", "protected function seedDatabase(): void\n {\n $this->seedProductCategories();\n $this->seedProducts();\n }", "public function setupDatabase()\n {\n Artisan::call('migrate:refresh');\n Artisan::call('db:seed');\n\n self::$setupDatabase = false;\n }", "public function run()\n {\n $this->seed('FormsMenuItemsTableSeeder');\n $this->seed('FormsDataTypesTableSeeder');\n $this->seed('FormsDataRowsTableSeeder');\n $this->seed('FormsPermissionsTableSeeder');\n $this->seed('FormsSettingsTableSeeder');\n $this->seed('FormsTableSeeder');\n }", "public function run()\n {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"\\n--- Seeding ---\\n\", TRUE));\n\n if (App::environment('production')) {\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- ERROR: Seeding in Production is prohibited ---\\n\", TRUE));\n return;\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n $this->call(ConfigContentsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n if (defined('STDERR')) fwrite(STDERR, print_r(\"Set FOREIGN_KEY_CHECKS=1 --- DONE\\n\", TRUE));\n\n // \\Artisan::call('command:regenerate-user-feeds');\n\n \\Cache::flush();\n\n if (defined('STDERR')) fwrite(STDERR, print_r(\"--- End Seeding ---\\n\\n\", TRUE));\n }", "protected function setupDatabase()\n {\n $this->call('migrate');\n $this->call('db:seed');\n\n $this->info('Database migrated and seeded.');\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 seedDatabase(): void\n {\n echo \"Running seeds\";\n\n // Folder where all the seeds are.\n $folder = __DIR__ . '/../seeds/';\n\n // Scan all files/folders inside database.\n $files = \\scandir($folder);\n\n $seeders = [];\n foreach ($files as $key => $file) {\n\n // All files that don't start with a dot.\n if ($file[0] !== '.') {\n\n // Load the file.\n require_once $folder . $file;\n\n // We have to call the migrations after because\n // some seeds are dependant from other seeds.\n $seeders[] = explode('.', $file)[0];\n }\n }\n\n // Run all seeds.\n foreach ($seeders as $seeder) {\n (new $seeder)->run();\n }\n }", "protected function seedDatabase()\n {\n //$this->app->make('db')->table(static::TABLE_NAME)->delete();\n\n TestExtendedModel::create([\n 'unique_field' => '999',\n 'second_field' => null,\n 'name' => 'unchanged',\n 'active' => true,\n 'hidden' => 'invisible',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1234567',\n 'second_field' => '434',\n 'name' => 'random name',\n 'active' => false,\n 'hidden' => 'cannot see me',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1337',\n 'second_field' => '12345',\n 'name' => 'special name',\n 'active' => true,\n 'hidden' => 'where has it gone?',\n ]);\n }", "public function initDatabase()\n {\n $this->call('migrate');\n\n $userModel = config('admin.database.users_model');\n\n if ($userModel::count() == 0) {\n $this->call('db:seed', ['--class' => AdminSeeder::class]);\n }\n }", "public function run ()\n {\n if (App::environment() === 'production') {\n exit('Seed should be run only in development/debug environment.');\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('role_user')->truncate();\n\n // Root user\n $user = User::find(1);\n $user->assignRole('owner');\n\n $user = User::find(2);\n $user->assignRole('admin');\n\n $user = User::find(3);\n $user->assignRole('admin');\n\n $user = User::find(4);\n $user->assignRole('moderator');\n\n $user = User::find(5);\n $user->assignRole('moderator');\n \n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n Model::unguard();\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(EntrustTableSeeder::class);\n\n $this->call(AccounttypeSeeder::class);\n $this->call(AppUserTableSeeder::class);\n $this->call(AppEmailUserTableSeeder::class);\n\n\n $this->call(CountryTableSeeder::class);\n $this->call(CityTableSeeder::class);\n\n\n $this->call(PostTypeTableSeeder::class);\n $this->call(PostSubTypeTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(AppPostSolvedTableSeeder::class);\n\n\n $this->call(AppCommentTypeTableSeeder::class);\n // $this->call(AppCommentTableSeeder::class);\n // $this->call(AppSubCommentTableSeeder::class);\n\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n Model::reguard();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('users')->truncate();\n DB::table('password_resets')->truncate();\n DB::table('domains')->truncate();\n DB::table('folders')->truncate();\n DB::table('bookmarks')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $this->seedUserAccount('[email protected]');\n $this->seedUserAccount('[email protected]');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n // $this->call(UsersTableSeeder::class);\n /* Schema::dropIfExists('employees');\n Schema::dropIfExists('users');\n Schema::dropIfExists('requests');\n Schema::dropIfExists('requeststatus');*/\n User::truncate();\n InstallRequest::truncate();\n RequestStatus::truncate();\n\n $cantidadEmployyes = 20;\n $cantidadUsers = 20;\n $cantidadRequestStatus = 3;\n $cantidadRequests = 200;\n\n factory(User::class, $cantidadUsers)->create();\n factory(RequestStatus::class, $cantidadRequestStatus)->create();\n factory(InstallRequest::class, $cantidadRequests)->create();\n }", "public function run()\n {\n Model::unguard();\n foreach (glob(__DIR__ . '/seeds/*.php') as $filename) {\n require_once($filename);\n }\n // $this->call(UserTableSeeder::class);\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// $this->call('CustomerTableSeeder');\n $this->call('PhotoTableSeeder');\n// $this->call('ProductTableSeeder');\n// $this->call('StaffTableSeeder');\n// $this->call('PasswordResetsTableSeeder');\n// $this->call('UsersTableSeeder');\n $this->call('CustomersTableSeeder');\n $this->call('EmployeesTableSeeder');\n $this->call('InventoryTransactionTypesTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrderDetailsStatusTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('InvoicesTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrdersStatusTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n\n $this->call('OrdersTaxStatusTableSeeder');\n $this->call('PrivilegesTableSeeder');\n $this->call('EmployeePrivilegesTableSeeder');\n $this->call('ProductsTableSeeder');\n $this->call('InventoryTransactionsTableSeeder');\n $this->call('PurchaseOrderDetailsTableSeeder');\n\n $this->call('PurchaseOrderStatusTableSeeder');\n $this->call('PurchaseOrdersTableSeeder');\n $this->call('SalesReportsTableSeeder');\n $this->call('ShippersTableSeeder');\n $this->call('StringsTableSeeder');\n $this->call('SuppliersTableSeeder');\n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Model::reguard();\n }", "public function run()\n\t{\n $this->cleanDatabase();\n\n Eloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('CartsTableSeeder');\n $this->call('StoreTableSeeder');\n $this->call('AdvertisementsTableSeeder');\n \n\t}", "public function run()\n {\n \tDB::table('seeds')->truncate();\n\n $seeds = array(\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_18_2013',\n ),\n array(\n 'name' => 'PreferencesTableSeeder_Update_11_20_2013',\n ),\n );\n\n // Uncomment the below to run the seeder\n DB::table('seeds')->insert($seeds);\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "public function run()\n {\n $this->createDefaultPermissionSeeder(env('DB_CONNECTION', 'mysql'));\n }", "protected function setUp(): void\n {\n $db = new DB;\n\n $db->addConnection([\n 'driver' => 'sqlite',\n 'database' => ':memory:',\n ]);\n\n $db->bootEloquent();\n $db->setAsGlobal();\n\n $this->createSchema();\n }", "public function run()\n {\n //$this->call('UserTableSeeder');\n //$this->call('ProjectTableSeeder');\n //$this->call('TaskTableSeeder');\n\n /**\n * Prepare seeding\n */\n $faker = Faker::create();\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Model::unguard();\n\n /**\n * Seeding user table\n */\n App\\User::truncate();\n factory(App\\User::class)->create([\n 'name' => 'KCK',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n\n /*factory(App\\User::class, 9)->create();\n $this->command->info('users table seeded');*/\n\n /**\n * Seeding roles table\n */\n Spatie\\Permission\\Models\\Role::truncate();\n DB::table('model_has_roles')->truncate();\n $superAdminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '최고 관리자'\n ]);\n $adminRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '관리자'\n ]);\n $regularRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '정회원'\n ]);\n $associateRole = Spatie\\Permission\\Models\\Role::create([\n 'name' => '준회원'\n ]);\n\n App\\User::where('email', '!=', '[email protected]')->get()->map(function ($user) use ($regularRole) {\n $user->assignRole($regularRole);\n });\n\n App\\User::whereEmail('[email protected]')->get()->map(function ($user) use ($superAdminRole) {\n $user->assignRole($superAdminRole);\n });\n $this->command->info('roles table seeded');\n\n /**\n * Seeding articles table\n */\n App\\Article::truncate();\n $users = App\\User::all();\n\n $users->each(function ($user) use ($faker) {\n $user->articles()->save(\n factory(App\\Article::class)->make()\n );\n });\n $this->command->info('articles table seeded');\n\n /**\n * Seeding comments table\n */\n App\\Comment::truncate();\n $articles = App\\Article::all();\n\n $articles->each(function ($article) use ($faker, $users) {\n for ($i = 0; $i < 10; $i++) {\n $article->comments()->save(\n factory(App\\Comment::class)->make([\n 'author_id' => $faker->randomElement($users->pluck('id')->toArray()),\n //'parent_id' => $article->id\n ])\n );\n };\n });\n $this->command->info('comments table seeded');\n\n /**\n * Seeding tags table\n */\n App\\Tag::truncate();\n DB::table('article_tag')->truncate();\n $articles->each(function ($article) use ($faker) {\n $article->tags()->save(\n factory(App\\Tag::class)->make()\n );\n });\n $this->command->info('tags table seeded');\n\n /**\n * Seeding attachments table\n */\n App\\Attachment::truncate();\n if (!File::isDirectory(attachment_path())) {\n File::deleteDirectory(attachment_path(), true);\n }\n\n $articles->each(function ($article) use ($faker) {\n $article->attachments()->save(\n factory(App\\Attachment::class)->make()\n );\n });\n\n //$files = App\\Attachment::pluck('name');\n\n if (!File::isDirectory(attachment_path())) {\n File::makeDirectory(attachment_path(), 777, true);\n }\n\n /*\n foreach ($files as $file) {\n File::put(attachment_path($file), '');\n }\n */\n\n $this->command->info('attachments table seeded');\n\n /**\n * Close seeding\n */\n Model::reguard();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\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' => '[email protected]',\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(CountriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n\n factory(Group::class)->create();\n factory(Contact::class, 5000)->create();\n }", "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t// $this->call('AdminTableSeeder');\n\t\t// $this->call('UserTableSeeder');\n\t\t// $this->call('MenuTableSeeder');\n\t\t// $this->call('ProductTableSeeder');\n\t\t// $this->call('CategoryTableSeeder');\n\t\t// $this->call('OptionTableSeeder');\n\t\t// $this->call('OptionGroupTableSeeder');\n\t\t// $this->call('TypeTableSeeder');\n\t\t// $this->call('LayoutTableSeeder');\n\t\t// $this->call('LayoutDetailTableSeeder');\n\t\t// $this->call('BannerTableSeeder');\n\t\t// $this->call('ConfigureTableSeeder');\n\t\t// $this->call('PageTableSeeder');\n\t\t// $this->call('ImageTableSeeder');\n\t\t// $this->call('ImageableTableSeeder');\n\t\t// ======== new Seed =======\n\t\t$this->call('AdminsTableSeeder');\n\t\t$this->call('BannersTableSeeder');\n\t\t$this->call('CategoriesTableSeeder');\n\t\t$this->call('ConfiguresTableSeeder');\n\t\t$this->call('ImageablesTableSeeder');\n\t\t$this->call('ImagesTableSeeder');\n\t\t$this->call('LayoutsTableSeeder');\n\t\t$this->call('LayoutDetailsTableSeeder');\n\t\t$this->call('MenusTableSeeder');\n\t\t$this->call('OptionablesTableSeeder');\n\t\t$this->call('OptionsTableSeeder');\n\t\t$this->call('OptionGroupsTableSeeder');\n\t\t$this->call('PagesTableSeeder');\n\t\t$this->call('PriceBreaksTableSeeder');\n\t\t$this->call('ProductsTableSeeder');\n\t\t$this->call('ProductsCategoriesTableSeeder');\n\t\t$this->call('SizeListsTableSeeder');\n\t\t$this->call('TypesTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('ContactsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('PermissionsTableSeeder');\n\t\t$this->call('PermissionRoleTableSeeder');\n\t\t$this->call('AssignedRolesTableSeeder');\n\t\t$this->call('OrdersTableSeeder');\n\t\t$this->call('OrderDetailsTableSeeder');\n\t\tCache::flush();\n\t\t// BackgroundProcess::copyFromVI();\n\t}", "public function run()\n {\n Model::unguard();\n\n User::create([\n 'email' => '[email protected]',\n 'name' => 'admin',\n 'password' => Hash::make('1234'),\n 'email_verified_at' => Carbon::now()\n ]);\n\n factory(User::class, 200)->create();\n\n // $this->call(\"OthersTableSeeder\");\n }", "public function run()\n {\n $this->seedRegularUsers();\n $this->seedAdminUser();\n }", "public function run()\n {\n if (\\App::environment() === 'local') {\n\n // Delete existing data\n\n\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // Truncate all tables, except migrations\n $tables = array_except(DB::select('SHOW TABLES'), ['migrations']);\n foreach ($tables as $table) {\n $tables_in_database = \"Tables_in_\" . Config::get('database.connections.mysql.database');\n DB::table($table->$tables_in_database)->truncate();\n }\n\n // supposed to only apply to a single connection and reset it's self\n // but I like to explicitly undo what I've done for clarity\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n //get roles\n $this->call('AccountSeeder');\n $this->call('CountrySeeder');\n $this->call('StateSeeder');\n $this->call('CitySeeder');\n $this->call('OptionSeeder');\n $this->call('TagSeeder');\n $this->call('PrintTemplateSeeder');\n $this->call('SettingsSeeder');\n\n\n\n if(empty($web_installer)) {\n $admin = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"admin\",\n 'first_name' => 'Admin',\n 'last_name' => 'Doe',\n ));\n $admin->user_id = $admin->id;\n $admin->save();\n\n $adminRole = Sentinel::findRoleById(1);\n $adminRole->users()->attach($admin);\n }\n else {\n $admin = Sentinel::findById(1);\n }\n\n //add dummy staff and customer\n $staff = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"staff\",\n 'first_name' => 'Staff',\n 'last_name' => 'Doe',\n ));\n $admin->users()->save($staff);\n\n foreach ($this->getPermissions() as $permission) {\n $staff->addPermission($permission);\n }\n $staff->save();\n\n $customer = Sentinel::registerAndActivate(array(\n 'email' => '[email protected]',\n 'password' => \"customer\",\n 'first_name' => 'Customer',\n 'last_name' => 'Doe',\n ));\n Customer::create(array('user_id' => $customer->id, 'belong_user_id' => $staff->id));\n $staff->users()->save($customer);\n\n //add respective roles\n\n $staffRole = Sentinel::findRoleById(2);\n $staffRole->users()->attach($staff);\n $customerRole = Sentinel::findRoleById(3);\n $customerRole->users()->attach($customer);\n\n\n\n DB::table('sales_teams')->truncate();\n DB::table('opportunities')->truncate();\n\n //Delete existing seeded users except the first 4 users\n User::where('id', '>', 3)->get()->each(function ($user) {\n $user->forceDelete();\n });\n\n //Get the default ADMIN\n $user = User::find(1);\n $staffRole = Sentinel::getRoleRepository()->findByName('staff');\n $customerRole = Sentinel::getRoleRepository()->findByName('customer');\n\n //Seed Sales teams for default ADMIN\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($user->id, $j, $user);\n $this->createOpportunity($user, $user->id, $j);\n }\n\n\n //Get the default STAFF\n $staff = User::find(2);\n $this->createSalesTeam($staff->id, 1, $staff);\n $this->createSalesTeam($staff->id, 2, $staff);\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 4) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $staff->id, $j);\n }\n\n foreach (range(1, 3) as $i) {\n $staff = $this->createStaff($i);\n $user->users()->save($staff);\n $staffRole->users()->attach($staff);\n\n $customer = $this->createCustomer($i);\n $staff->users()->save($customer);\n $customerRole->users()->attach($customer);\n $customer->customer()->save(factory(\\App\\Models\\Customer::class)->make());\n\n\n //Seed Sales teams for each STAFF\n foreach (range(1, 5) as $j) {\n $this->createSalesTeam($staff->id, $j, $staff);\n $this->createOpportunity($staff, $i, $j);\n }\n\n }\n\n //finally call it installation is finished\n file_put_contents(storage_path('installed'), 'Welcome to LCRM');\n }\n }", "public function run()\n {\n if (env('DB_DATABASE') == 'connection') {\n Connection::create([\n \"ruc\" => \"12312312312\",\n \"basedata\" => \"nbdata2018_1\",\n ]);\n \n Connection::create([\n \"ruc\" => \"12312312315\",\n \"basedata\" => \"nbdata2018_2\",\n ]);\n \n $this->call(ConnectionTableSeeder::class);\n } else {\n $this->call(AppSeeder::class);\n }\n }", "public function setupDatabase()\n {\n exec('rm ' . storage_path() . '/testdb.sqlite');\n exec('cp ' . 'database/database.sqlite ' . storage_path() . '/testdb.sqlite');\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 # truncates tables before seeding\n foreach ($this->toTruncate as $table) {\n DB::table($table)->delete();\n }\n\n factory(App\\Models\\Product::class, 25)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Post::truncate();\n Comment::truncate();\n // CommentReply::truncate();\n \n\n\n factory(User::class,10)->create();\n factory(Post::class,20)->create();\n factory(Comment::class,30)->create();\n // factory(CommentReply::class,30)->create();\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\t{\n \n Eloquent::unguard();\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\t\t$this->call('UserTableSeeder');\n\t $this->call('LayerTableSeeder');\n $this->call('UserLevelTableSeeder');\n $this->call('RoleUserTableSeeder');\n $this->call('RoleLayerTableSeeder');\n $this->call('BookmarkTableSeeder');\n \n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "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 /** \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 = [email protected]\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 DB::statement('SET foreign_key_checks = 0');\n DB::table('topics')->truncate();\n\n factory(\\App\\Topic::class, 100)->create();\n // ->each(function($topic) {\n\n // // Seed para a relação com group\n // $topic->group()->save(factory(App\\Group::class)->make());\n\n // // Seed para a relação com topicMessages\n // $topic->topicMessages()->save(factory(App\\TopicMessage::class)->make());\n\n // // Seed para a relação com user\n // $topic->user()->save(factory(App\\User::class)->make());\n // });\n \n DB::statement('SET foreign_key_checks = 1');\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 DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n Categoria::truncate();\n Atractivo::truncate();\n Galeria::truncate();\n User::truncate();\n\n $this->call(CategoriasTableSeeder::class);\n $this->call(AtractivosTableSeeder::class);\n $this->call(GaleriasTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n }", "public function run(Faker $faker)\n {\n Schema::disableForeignKeyConstraints();\n DB::table('users')->insert([\n 'name' => $faker->name(),\n 'email' => '[email protected]',\n 'password' => Hash::make('12345678'),\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\t $this->call(CategoryTableSeed::class);\n\t $this->call(ProductTableSeed::class);\n\t $this->call(UserTableSeed::class);\n }", "public function run()\n {\n \t// DB::table('webapps')->delete();\n\n $webapps = array(\n\n );\n\n // Uncomment the below to run the seeder\n // DB::table('webapps')->insert($webapps);\n }", "public function run()\n {\n $this->cleanDatabase();\n\n factory(User::class, 50)->create();\n factory(Document::class, 30)->create();\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 DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\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 $tables = array(\n 'users',\n 'companies',\n 'stands',\n 'events',\n 'visitors',\n 'api_keys'\n );\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n }\n\n foreach ($tables as $table) {\n DB::table($table)->truncate();\n }\n\n $this->call(UsersTableSeeder::class);\n $this->call(EventsTableSeeder::class);\n $this->call(CompaniesTableSeeder::class);\n $this->call(StandsTableSeeder::class);\n $this->call(VisitorsTableSeeder::class);\n\n if (!App::runningUnitTests()) {\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }\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 $clear = $this->command->confirm('Wil je de database leegmaken? (Dit haalt alle DATA weg)');\n\n if ($clear):\n $this->command->callSilent('migrate:refresh');\n $this->command->info('Database Cleared, starting seeding');\n endif;\n\n $this->call([\n SeedSeeder::class,\n RoleSeeder::class,\n UserSeeder::class,\n // BoardgameSeeder::class,\n BoardgamesTableSeeder::class,\n StatusSeeder::class,\n TournamentSeeder::class,\n AchievementsSeeder::class,\n TournamentUsersSeeder::class,\n ]);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n $this->call(PaisSeeder::class);\n $this->call(DepartamentoSeeder::class);\n $this->call(MunicipioSeeder::class);\n $this->call(PersonaSeeder::class);\n }", "public function run()\n {\n //\n if (App::environment() === 'production') {\n exit('Do not seed in production environment');\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // disable foreign key constraints\n\n DB::table('events')->truncate();\n \n Event::create([\n 'id' => 1,\n 'name' => 'Spot Registration For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n Event::create([\n 'id' => 2,\n 'name' => 'Spot Screening For Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'screen',\n 'formId'\t\t=> 1,\n ]);\n \n Event::create([\n 'id' => 3,\n 'name' => 'Spot Registration For Skin Cancer',\n 'cancerId' => 2,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addMonths(12),\n 'eventType'\t\t=> 'register',\n 'formId'\t\t=> null,\n ]);\n\n\n Event::create([\n 'id' => 3,\n 'name' => 'Registration cum Screening camp for Throat Cancer',\n 'cancerId' => 1,\n 'startDate'\t\t=> Carbon::now(),\n 'endDate'\t\t=> Carbon::now()->addWeeks(1),\n 'eventType'\t\t=> 'register_screen',\n 'formId'\t\t=> 1,\n ]);\n \n DB::statement('SET FOREIGN_KEY_CHECKS = 1'); // enable foreign key constraints\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // Para que no verifique el control de claves foráneas al hacer el truncate haremos:\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n\t\t// Primero hacemos un truncate de las tablas para que no se estén agregando datos\n\t\t// cada vez que ejecutamos el seeder.\n\t\t//Foto::truncate();\n\t\t//Album::truncate();\n\t\t//Usuario::truncate();\n DB::table('users')->delete();\n DB::table('ciudades')->delete();\n DB::table('tiendas')->delete();\n DB::table('ofertas')->delete();\n DB::table('ventas')->delete();\n\n\n\t\t// Es importante el orden de llamada.\n\t\t$this->call('UserSeeder');\n $this->call('CiudadSeeder');\n\t\t$this->call('TiendaSeeder');\n $this->call('OfertaSeeder');\n $this->call('VentaSeeder');\n }", "public function run()\n {\n $this->call(\\Database\\Seeders\\GroupByRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\SingleIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\MultiIndexRecordTableSeeder::class);\n $this->call(\\Database\\Seeders\\JoinFiveTablesSeeder::class);\n\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// // 試しに一回流す\n// $data = $this->makeData(0, 'userFactory', 1);\n// DB::table('users')->insert($data);\n// $data = $this->makeData(0, 'userDetailFactory', 1);\n// DB::table('user_details')->insert($data);\n//\n// // $this->call(UsersTableSeeder::class);\n// DB::table('users')->truncate();\n// DB::table('user_details')->truncate();\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userFactory', 2500);\n// DB::table('users')->insert($data);\n// }\n//\n// for ($i = 0; $i < 40; $i++) {\n// $data = $this->makeData($i, 'userDetailFactory', 2500);\n// DB::table('user_details')->insert($data);\n// }\n }", "public function run()\n {\n $this->truncateTables([\n 'users',\n 'categories',\n 'types',\n 'courses',\n 'classrooms',\n 'contents',\n 'companies',\n ]);\n\n $this->call(CompanyTableSeeder::class);\n $this->call(TypeTableSeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(CoursesTableSeeder::class);\n $this->call(PermissionTableSeeder::class);\n $this->call(ContentTableSeeder::class);\n $this->call(UserTableSeeder::class);\n $this->call(ClassroomTableSeeder::class);\n $this->call(TestTableSeeder::class);\n $this->call(BankTableSeeder::class);\n\n\n // factory(\\App\\User::class, 50)\n // ->create()\n // ->each(function ($user) {\n // // $user->companies()->save();\n // $company = \\App\\Company::inRandomOrder()->first();\n // $user->companies()->attach($company->id);\n // $user->assignRole(['participante']);\n // });\n /*\n factory(\\App\\User::class, 50)\n ->create()\n ->each(function ($user) {\n $user->assignRole(['participante']);\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 DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Question::truncate();\n Option::truncate();\n// Answer::truncate();\n Quiz::truncate();\n QuizQuestion::truncate();\n\n //for admin\n $admin = factory(User::class)->create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'is_admin' => 1,\n ]);\n\n //for user\n $user = factory(User::class)->create([\n 'name' => 'User',\n 'email' => '[email protected]',\n ]);\n\n factory(Question::class, 100)->create()->each(function ($question) {\n factory(Option::class, mt_rand(2, 4))->create([\n 'question_id' => $question->id,\n ]);\n });\n\n factory(Quiz::class, 10)->create()->each(function ($quiz) {\n\n factory(QuizQuestion::class, mt_rand(5, 10))->create();\n });\n\n\n }", "public function run()\n {\n $this->call([\n SiteSettingsSeeder::class,\n LaratrustSeeder::class,\n CountrySeeder::class,\n GovernorateSeeder::class,\n FaqSeeder::class,\n SitePageSeeder::class,\n UsersSeeder::class,\n ]);\n\n Country::whereiso(\"EG\")->update(['enable_shipping' => true]);\n\n factory(User::class, 400)->create();\n\n Category::create([\n 'en' => [\n 'name' => \"cake tools\"\n ]\n ]);\n\n Category::create([\n 'en' => [\n 'name' => \"Party Supplies\"\n ]\n ]);\n\n $this->call([\n ProductCategorySeeder::class,\n ProductSeeder::class\n ]);\n }", "public function run()\n {\n $this->call(PermissionsTableSeeder::class);\n\n if (App::environment('local')) {\n $this->call(FakeUsersTableSeeder::class);\n $this->call(FakeArticlesTableSeeder::class);\n $this->call(FakeEventsTableSeeder::class);\n }\n }", "public function run()\n {\n Model::unguard();\n\n $this->call(CategoryTypesTableSeeder::class);\n $this->call(CategoryTableSeeder::class);\n $this->call(AccountTypesTableSeeder::class);\n $this->call(TransactionTypesTableSeeder::class);\n\n if (App::environment() !== 'production') {\n $this->call(UserTableSeeder::class);\n $this->call(AccountBudgetTableSeeder::class);\n $this->call(TransactionTableSeeder::class);\n }\n\n Model::reguard();\n }", "public function run()\n {\n User::truncate();\n Product::truncate();\n User::forceCreate([\n 'name' => 'foo',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n factory(User::class, 5)->create();\n factory(Product::class, 5)->create();\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 {\n $this->call([UsersTableSeeder::class]);\n $this->call([ContratosTableSeeder::class]);\n $this->call([UsuariosTableSeeder::class]);\n $this->call([UnidadesTableSeeder::class]);\n $this->call([AtestadosTableSeeder::class]);\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(\"OthersTableSeeder\");\n\n // DB::table('locations')->insert([\n // 'id' => 1,\n // 'name' => 'Default',\n // 'name' => 'district',\n // 'district_id' => 1,\n // 'province_id' => 1,\n // ]);\n }", "public function run()\n {\n $data = include env('DATA_SEED');\n\n \\Illuminate\\Support\\Facades\\DB::table('endpoints')->insert((array)$data);\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('admins')->truncate();\n\n for ($i = 0; $i < 10; $i++)\n {\n $faker = Factory::create('en_US');\n $values = [\n 'name' => $faker->userName,\n 'email' => $faker->freeEmail,\n 'password' => bcrypt($faker->password),\n 'phone' => $faker->phoneNumber,\n 'status' => random_int(0,1)\n ];\n admin::create($values);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n \\DB::table('provinces')->delete();\n \\DB::table('cities')->delete();\n \\DB::table('districts')->delete();\n // import provinces and cities from sql file\n $sqlFile = app_path() . '/../database/raw/administrative_indonesia_without_districts.sql';\n DB::unprepared(file_get_contents($sqlFile));\n $this->command->info('Successfully seed Provinces and Cities!');\n\n // import districts with latitude and longitude from csv file\n $csvFile = app_path() . '/../database/raw/administrative_indonesia_districts_with_lat_lng.csv';\n $districts = $this->csvToArray($csvFile);\n // check if lat lng exists\n foreach ($districts as $i => $d) {\n if ($d['latitude'] == '') $districts[$i]['latitude'] = 0;\n if ($d['longitude'] == '') $districts[$i]['longitude'] = 0;\n }\n // insert it\n $insert = District::insert($districts);\n if ($insert) $this->command->info('Successfully seed Districts!');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n DB::beginTransaction();\n// $this->seed();\n DB::commit();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "public function run()\n {\n User::create([\n 'name' => 'Regynald',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\n ]);\n\n User::create([\n 'name' => 'Leonardo',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789')\n ]);\n\n // seed sin model\n /* DB::table('users')->insert([\n 'name' => 'Regynald',\n 'email' => '[email protected]',\n 'password' => Hash::make('123456789'),\n 'url' => 'http://zreyleo-code.com',\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 {\n $this->call(UsersTableSeeder::class);\n $this->call(RegionsTableSeeder::class);\n $this->call(ProvincesTableSeeder::class);\n $this->call(DistrictsTableSeeder::class);\n $this->call(SubDistrictsTableSeeder::class);\n $this->call(PostcodesTableSeeder::class);\n\n if (env('APP_ENV') !== 'production') {\n // Wipe up 5 churches, and each church has 5 cells, and each cell has 20 members associated with.\n // In other word, we wipe up 500 church members.\n for ($i = 0; $i < 2; $i++) {\n $church = factory(\\App\\Models\\Church::class)->create();\n\n $church->areas()->saveMany(factory(\\App\\Models\\Area::class, 2)->create([\n 'church_id' => $church->id\n ])->each(function($area) {\n $area->cells()->saveMany(factory(\\App\\Models\\Cell::class, 2)->create([\n 'area_id' => $area->id\n ])->each(function($cell) {\n $cell->members()->saveMany(factory(App\\Models\\Member::class, 10)->create([\n 'cell_id' => $cell\n ]));\n }));\n }));\n }\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\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\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 $this->environmentPath = env('APP_ENV') === 'production' ||\n env('APP_ENV') === 'qa' ||\n env('APP_ENV') === 'integration' ?\n 'Production':\n 'local';\n //disable FK\n Model::unguard();\n DB::statement(\"SET session_replication_role = 'replica';\");\n\n // $this->call(HrEmployeeTableSeeder::class);\n $this->call(\"Modules\\HR\\Database\\Seeders\\\\$this->environmentPath\\HrEmployeePosTableSeeder\");\n // $this->call(HrEmployeePresetsDiscountTableSeeder::class);\n\n // Enable FK\n DB::statement(\"SET session_replication_role = 'origin';\");\n Model::reguard();\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 }", "protected static function seed()\n {\n foreach (self::fetch('database/seeds', false) as $file) {\n Bus::need($file);\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $faker = F::create('App\\Proovedores');\n for($i=0; $i < 10; $i++){\n DB::table('users')->insert([\n 'usuario' => $i,\n 'password' => $i,\n 'email' => $faker->email,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Delete all records.\n DB::table('users')->delete();\n // Reset AUTO_INCREMENT.\n DB::table('users')->truncate();\n\n // Dev user.\n App\\Models\\User::create([\n 'email' => '[email protected]',\n 'password' => '$2y$10$t6q81nz.XrMrh20NHDvxUu/szwHBwgzPd.01e8uuP0qVy0mPa6H/e',\n 'first_name' => 'L5',\n 'last_name' => 'App',\n 'username' => 'l5-app',\n 'is_email_verified' => 1,\n ]);\n\n // Dummy users.\n TestDummy::times(10)->create('App\\Models\\User');\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n User::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // We did this for test purposes. Shouldn't be doing this for production\n $password = Hash::make('123456');\n\n User::create([\n 'name' => 'Administrator',\n 'email' => '[email protected]',\n 'password' => $password,\n ]);\n }", "public function run()\n {\n Model::unguard();\n \n factory('App\\User','admin')->create();\n factory('App\\Evento',100)->create();\n //factory('App\\User','miembro',10)->create();\n factory('App\\Telefono',13)->create();\n factory('App\\Notificacion',10)->create();\n factory('App\\Rubro',10)->create();\n factory('App\\Tecnologia',10)->create();\n factory('App\\Cultivo',10)->create();\n factory('App\\Etapa',10)->create();\n factory('App\\Variedad',10)->create();\n factory('App\\Caracteristica',10)->create();\n factory('App\\Practica',30)->create();\n factory('App\\Tag',15)->create();\n // $this->call(PracticaTableSeeder::class);\n $this->call(TrTableSeeder::class);\n $this->call(MesTableSeeder::class);\n $this->call(SemanasTableSeeder::class);\n $this->call(PsTableSeeder::class);\n $this->call(MsTableSeeder::class);\n $this->call(CeTableSeeder::class);\n $this->call(CvTableSeeder::class);\n $this->call(PtSeeder::class);\n \n\n Model::unguard();\n }", "public function run() {\n $this->call(UserSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(CreateAdminUserSeeder::class);\n // $this->call(PhoneSeeder::class);\n // $this->call(AddressSeeder::class);\n\n $this->call(ContactFormSeeder::class);\n //$this->call(ContactSeeder::class);\n\n User::factory()->count(20)->create()->each(function ($user) {\n // Seed the relation with one address\n $address = Address::factory()->make();\n $user->address()->save($address);\n\n // Seed the relation with one phone\n $phone = Phone::factory()->make();\n $user->phone()->save($phone);\n\n // Seed the relation with 15 contacts\n $contact = Contact::factory()->count(25)->make();\n $user->contacts()->saveMany($contact);\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 DB::statement('SET FOREIGN_KEY_CHECKS=0');\n Activity::truncate();\n User::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n $this->call(UserTableSeeder::class);\n $this->call(ActivityTableSeeder::class);\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\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n \\App\\User::truncate();\n \\App\\Category::truncate();\n \\App\\Product::truncate();\n \\App\\Transaction::truncate();\n DB::table('category_product')->truncate();\n\n \\App\\User::flushEventListeners();\n \\App\\Category::flushEventListeners();\n \\App\\Product::flushEventListeners();\n \\App\\Transaction::flushEventListeners();\n\n\n $usersQuentity = 1000;\n $categoriesQuentity = 30;\n $productsQuentity = 1000;\n $transactionsQuentity = 1000;\n\n factory(\\App\\User::class, $usersQuentity)->create();\n factory(\\App\\Category::class, $categoriesQuentity)->create();\n factory(\\App\\Product::class, $productsQuentity)->create()->each(\n function ($product){\n $categories = \\App\\Category::all()->random(mt_rand(1, 5))->pluck('id');\n\n $product->categories()->attach($categories);\n }\n );\n factory(\\App\\Transaction::class, $transactionsQuentity)->create();\n\n }", "public static function setUpBeforeClass()\n {\n parent::setUpBeforeClass();\n $app = require __DIR__ . '/../../bootstrap/app.php';\n /** @var \\Pterodactyl\\Console\\Kernel $kernel */\n $kernel = $app->make(Kernel::class);\n $kernel->bootstrap();\n $kernel->call('migrate:fresh');\n\n \\Artisan::call('db:seed');\n }", "public function run()\n {\n Eloquent::unguard();\n \n $this->call('AdminMemberTableSeeder');\n $this->call('BankInfoTableSeeder');\n $this->call('LocationLookUpTableSeeder');\n $this->call('OrderStatusTableSeeder');\n $this->call('AdminRoleTableSeeder');\n\n }", "public function run()\n {\n Model::unguard();\n\n if( !User::where('email', '[email protected]')->count() ) {\n User::create([\n 'nombre'=>'Nick'\n ,'apellidos'=>'Palomino'\n ,'email'=>'[email protected]'\n ,'password'=> Hash::make('1234567u')\n ,'celular'=>'966463589'\n ]);\n }\n\n $this->call('CategoriaTableSeeder');\n $this->call('WhateverSeeder');\n $this->call('ProductTableSeeder');\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' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n Model::unguard();\n\n $this->command->info('seed start!');\n\n // 省市县\n $this->call('RegionTableSeeder');\n // 用户、角色\n $this->call('UserTableSeeder');\n // 权限\n $this->call('PurviewTableSeeder');\n // 博文分类\n $this->call('CategoryTableSeeder');\n // 博文、评论、标签\n $this->call('ArticleTableSeeder');\n // 心情\n $this->call('MoodTableSeeder');\n // 留言\n $this->call('MessageTableSeeder');\n // 文件\n $this->call('StorageTableSeeder');\n\n $this->command->info('seed end!');\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\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 $this->call(RolesDatabaseSeeder::class);\n $this->call(UsersDatabaseSeeder::class);\n $this->call(LocalesDatabaseSeeder::class);\n $this->call(MainDatabaseSeeder::class);\n }", "public function run()\n {\n // DB::table('users')->insert([\n // ['id'=>1, 'email'=>'nhat','password'=>bcrypt(1234), 'lever'=>0]\n // ]);\n // $this->call(UsersTableSeeder::class);\n // $this->call(CatTableSeeder::class);\n // $this->call(TypeTableSeeder::class);\n // $this->call(AppTableSeeder::class);\n // $this->call(GameTableSeeder::class);\n \n \n }", "public function run()\n {\n\n Schema::disableForeignKeyConstraints(); //in order to execute truncate before seeding\n\n $this->call(UsersTableSeeder::class);\n $this->call(PostCategoriesSeeder::class);\n $this->call(TagsSeeder::class);\n $this->call(PostsSeeder::class);\n\n Schema::enableForeignKeyConstraints();\n\n\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 $this->seedUsers();\n $this->seedAdmins();\n $this->seedMeals();\n\n $this->seedOrder();\n $this->seedOrderlist();\n\n $this->seedReload();\n }", "public function run()\n\t{\n\t\t//composer require fzaninotto/faker\n\t\t\n\t\t$this->call(populateAllSeeder::class);\n\t\t\n\t}", "public function run()\n {\n Model::unguard();\n\n $faker =Faker\\Factory::create();\n\n // $this->call(UserTableSeeder::class);\n\n $this->seedTasks($faker);\n $this->seedTags($faker);\n\n Model::reguard($faker);\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 $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' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\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 Schema::disableForeignKeyConstraints();\n\n $this->call([\n CountriesSeeder::class,\n ProvincesSeeder::class,\n SettingsSeeder::class,\n AdminsTableSeeder::class,\n ]);\n }" ]
[ "0.8065584", "0.7848217", "0.76748335", "0.7244791", "0.7217673", "0.7133266", "0.70984626", "0.70752525", "0.7050456", "0.69926506", "0.6988436", "0.6985116", "0.69669306", "0.68992233", "0.68682885", "0.6847507", "0.6831097", "0.68208444", "0.68041754", "0.68041754", "0.68032914", "0.6790816", "0.67898446", "0.6787946", "0.678716", "0.6777025", "0.6775358", "0.67726433", "0.67660606", "0.67634314", "0.6758109", "0.673368", "0.67331403", "0.6729675", "0.67294586", "0.67255825", "0.67230934", "0.6722171", "0.67213213", "0.6715509", "0.67079365", "0.67062575", "0.6703651", "0.670358", "0.6702433", "0.6702257", "0.66971296", "0.66941136", "0.6686706", "0.6684891", "0.6678387", "0.66765666", "0.66730577", "0.66660666", "0.66496396", "0.6641152", "0.66396993", "0.66393507", "0.66372746", "0.6633904", "0.6630109", "0.66281164", "0.66259885", "0.6617708", "0.66098803", "0.6602503", "0.66002655", "0.659939", "0.6597011", "0.6596365", "0.6592976", "0.65928084", "0.6592367", "0.6589387", "0.6581892", "0.6581305", "0.65805703", "0.6579974", "0.6576225", "0.65749776", "0.6574433", "0.6571225", "0.6569767", "0.6568897", "0.65635324", "0.65631485", "0.6559915", "0.6558022", "0.6556394", "0.65548515", "0.6551606", "0.6548489", "0.6548293", "0.65458405", "0.6545289", "0.6544641", "0.6543904", "0.6543258", "0.65430623", "0.6542044", "0.6539481" ]
0.0
-1
Set the serializer function
public function setSerializer($serializer) { $this->serializer = $serializer; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serializer() {\n }", "public function getSerializer();", "public static function getSerializer();", "private function serializer()\n {\n $this->setSerializableOptionsArray();\n\n return new Serializer($this->serializableOptions());\n }", "public function serialize()\n {\n }", "public function serialize()\n {\n }", "function jsonSerialize()\n {\n $data = $this->data;\n foreach ($this->config as $name => $c) {\n if (is_callable($c['serializer'])) {\n $data[$name] = call_user_func($c['serializer'], $data['name']);\n }\n }\n return $data;\n }", "public static function setSerializeCallback(Closure $callback): void\n {\n self::$serializeCallback = $callback;\n }", "public function _jsonSerialize();", "public function serializers()\n {\n // Each entry represents a function call.\n return array(\n // Each entry represents an argument for the function call.\n array(new \\Nayru\\Serializer\\JsonConf),\n array(new \\Nayru\\Serializer\\Php)\n );\n }", "public function serialize(){ }", "public function jsonSerialize()\n {\n }", "public function jsonSerialize()\n {\n }", "public function getSerializer()\n {\n return $this->serializer;\n }", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public function serialize() {}", "public abstract function serialize();", "final public function jsonSerialize() {}", "public function setSerializer()\n {\n return new JsonApiSerializer(url('api'));\n }", "public function getCustomSerializer($fieldKey);", "abstract public function serialize();", "abstract public function serialize();", "protected final function getSerializer()\n {\n return $this->serializer;\n }", "public function overrideDefaultFractalSerializer()\n {\n $serializerName = env('FRACTAL_SERIALIZER', 'DataArray');\n\n // if DataArray `\\League\\Fractal\\Serializer\\DataArraySerializer` do noting since it's set by default by the Dingo API\n if ($serializerName !== 'DataArray') {\n app('Dingo\\Api\\Transformer\\Factory')->setAdapter(function () use ($serializerName) {\n switch ($serializerName) {\n case 'JsonApi':\n $serializer = new \\League\\Fractal\\Serializer\\JsonApiSerializer(env('API_DOMAIN'));\n break;\n case 'Array':\n $serializer = new \\League\\Fractal\\Serializer\\ArraySerializer(env('API_DOMAIN'));\n break;\n default:\n throw new UnsupportedFractalSerializerException('Unsupported ' . $serializerName);\n }\n\n $fractal = new \\League\\Fractal\\Manager();\n $fractal->setSerializer($serializer);\n\n return new \\Dingo\\Api\\Transformer\\Adapter\\Fractal($fractal, 'include', ',', false);\n });\n }\n }", "public function getSerializer(): AbstractSerializer\n {\n return new FlarumPostsSerializer();\n }", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "public function jsonSerialize();", "function jsonSerialize();", "public function setSerializer(string $serializerClass, callable|string $callback = null): self\n {\n $this->serializer = [$serializerClass, $callback];\n\n return $this;\n }", "public function representationOf($serializer, $value, $context= array());", "public function serialize()\n {\n // TODO: Implement serialize() method.\n }", "private function setSerializer(RedisService $connection)\n {\n $map = [\n 'none' => RedisService::SERIALIZER_NONE,\n 'php' => RedisService::SERIALIZER_PHP,\n ];\n\n /**\n * In case IGBINARY or MSGPACK are not defined for previous versions\n * of Redis\n */\n if (defined('\\\\Redis::SERIALIZER_IGBINARY')) {\n $map['igbinary'] = constant('\\\\Redis::SERIALIZER_IGBINARY');\n }\n\n if (defined('\\\\Redis::SERIALIZER_MSGPACK')) {\n $map['msgpack'] = constant('\\\\Redis::SERIALIZER_MSGPACK');\n }\n\n $serializer = mb_strtolower($this->defaultSerializer);\n\n if (true === isset($map[$serializer])) {\n $this->defaultSerializer = '';\n $connection->setOption(RedisService::OPT_SERIALIZER, $map[$serializer]);\n }\n\n $this->initSerializer();\n }", "public function jsonSerialize()\n {\n // TODO: Implement jsonSerialize() method.\n }", "public function serialize();", "public function serialize();", "public function serialize();", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize()\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize():mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "private function setMoneySerializeCallback(): void\n {\n Money::setSerializeCallback(function (Money $money) {\n $currency = $this->getCurrencyOf($money->currency);\n return $this->moneySerializer->toArray($money->amount, $currency);\n });\n }", "private function addSerializerFormats(ArrayNodeDefinition $node)\n {\n // NEXT_MAJOR : do not execute this if jms/serializer is missing\n $node\n ->children()\n ->arrayNode('serializer')\n ->addDefaultsIfNotSet()\n ->children()\n ->arrayNode('formats')\n ->prototype('scalar')->end()\n ->defaultValue(['json', 'xml', 'yml'])\n ->info('Default serializer formats, will be used while getting subscribing methods.')\n ->end()\n ->end()\n ->end()\n ->end()\n ;\n }", "public function getSerializer()\n {\n if (!$this->_serializer) {\n $this->_serializer = Yii::createObject($this->serializer);\n }\n return $this->_serializer;\n }", "public function serialize($value){\n return parent::serialize($value);\n }", "function XML_Serializer($options = null)\n {\n self::__construct($options);\n }", "abstract protected function serializeData();", "public function valueOf($serializer, $serialized, $context= array());", "private function buildDefaultSerializer(): Serializer\n {\n return new Serializer([\n new ArrayDenormalizer(),\n new DateTimeNormalizer(),\n new ObjectNormalizer(null, null, null, new PhpDocExtractor()),\n ], [\n new JsonEncoder(),\n ]);\n }", "function jsonSerialize()\n {\n return $this->jsonObjectSerialize()->jsonSerialize();\n }", "public function getSerializer()\n {\n $encoders = [new XmlEncoder(), new JsonEncoder()];\n $normalizers = [new ObjectNormalizer()];\n $serializer = new Serializer($normalizers, $encoders);\n return $serializer;\n }", "public function jsonSerialize()\n {\n $this->serializeWithId($this->resolveFields(\n resolve(Request::class)\n ));\n }", "protected function getFosJsRouting_SerializerService()\n {\n return $this->services['fos_js_routing.serializer'] = new \\Symfony\\Component\\Serializer\\Serializer(array(0 => new \\Symfony\\Component\\Serializer\\Normalizer\\GetSetMethodNormalizer()), array('json' => new \\Symfony\\Component\\Serializer\\Encoder\\JsonEncoder()));\n }", "public function jsonSerialize() : mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function jsonSerialize() : mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }" ]
[ "0.71033525", "0.6977066", "0.6934628", "0.6157836", "0.6157166", "0.6157166", "0.6136877", "0.6119316", "0.6109608", "0.60639876", "0.6026658", "0.60256964", "0.60256964", "0.6016665", "0.597977", "0.597977", "0.597977", "0.597977", "0.597977", "0.597977", "0.597963", "0.597963", "0.5969237", "0.58898485", "0.58811575", "0.5857545", "0.57724214", "0.57724214", "0.5771496", "0.5737994", "0.57209486", "0.5717137", "0.5717137", "0.5717137", "0.5717137", "0.5717137", "0.5717137", "0.5717137", "0.5717137", "0.5702713", "0.56916875", "0.5655925", "0.56554514", "0.55760074", "0.5560969", "0.55579907", "0.55579907", "0.55579907", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.5554503", "0.55388826", "0.553875", "0.5490054", "0.54603916", "0.54240245", "0.5406292", "0.53846675", "0.5366253", "0.5348523", "0.5343221", "0.53426266", "0.5316944", "0.5313064", "0.53000695", "0.53000695" ]
0.5553698
85
Set the unserializer function
public function setUnserializer($unserializer) { $this->unserializer = $unserializer; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($deserializer)\r\n {\r\n $this->deserializer = $deserializer;\r\n }", "public function __construct() {\n\n // If we unserialize an object, prevent the magic wakeup from happening.\n ini_set('unserialize_callback_func', '');\n\n }", "abstract protected function unSerializeData();", "public static function getSerializer();", "public function getSerializer();", "public function onDeserialization($sender) \r\n {\r\n // TODO: Implement onDeserialization() method.\r\n }", "public function __wakeup() {\n\t\t\t_doing_it_wrong( __FUNCTION__, __( 'Unserializing is forbidden!', 'be-table-ship' ), '4.0' );\n\t\t}", "function deserialise(string $data): void;", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'mailExchange' => fn(ParseNode $n) => $o->setMailExchange($n->getStringValue()),\n 'preference' => fn(ParseNode $n) => $o->setPreference($n->getIntegerValue()),\n ]);\n }", "public function serializer() {\n }", "#[\\ReturnTypeWillChange]\n public function __unserialize($data)\n {\n }", "public function valueOf($serializer, $serialized, $context= array());", "public function registerFunctionNames()\n {\n return ['unserialize'];\n\n }", "public function testSetterMethod()\r\n {\r\n $u = new XML_Unserializer();\r\n $u->setOption(XML_UNSERIALIZER_OPTION_COMPLEXTYPE, 'object');\r\n $u->setOption(XML_UNSERIALIZER_OPTION_DEFAULT_CLASS, 'Foo');\r\n $xml = '<SetterExample><foo>tomato</foo></SetterExample>';\r\n $u->unserialize($xml);\r\n $result = new SetterExample();\r\n $result->setFoo('tomato');\r\n $this->assertEquals($result, $u->getUnserializedData());\r\n }", "public function __wakeup() {\r\n\t\t_doing_it_wrong( __FUNCTION__, esc_html__( 'Unserializing instances of this class is forbidden.', 'wc_name_your_price' ), '3.0.0' );\r\n\t}", "function maybe_unserialize($data)\n {\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'events' => fn(ParseNode $n) => $o->setEvents($n->getCollectionOfObjectValues([VirtualEvent::class, 'createFromDiscriminatorValue'])),\n 'webinars' => fn(ParseNode $n) => $o->setWebinars($n->getCollectionOfObjectValues([VirtualEventWebinar::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function __wakeup() {\n _doing_it_wrong( __FUNCTION__, __( \"Unserializing instances is forbidden!\", \"wcwspay\" ), \"4.7\" );\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'activityGroupNames' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setActivityGroupNames($val);\n },\n 'address' => fn(ParseNode $n) => $o->setAddress($n->getStringValue()),\n 'azureSubscriptionId' => fn(ParseNode $n) => $o->setAzureSubscriptionId($n->getStringValue()),\n 'azureTenantId' => fn(ParseNode $n) => $o->setAzureTenantId($n->getStringValue()),\n 'countHits' => fn(ParseNode $n) => $o->setCountHits($n->getIntegerValue()),\n 'countHosts' => fn(ParseNode $n) => $o->setCountHosts($n->getIntegerValue()),\n 'firstSeenDateTime' => fn(ParseNode $n) => $o->setFirstSeenDateTime($n->getDateTimeValue()),\n 'ipCategories' => fn(ParseNode $n) => $o->setIpCategories($n->getCollectionOfObjectValues([IpCategory::class, 'createFromDiscriminatorValue'])),\n 'ipReferenceData' => fn(ParseNode $n) => $o->setIpReferenceData($n->getCollectionOfObjectValues([IpReferenceData::class, 'createFromDiscriminatorValue'])),\n 'lastSeenDateTime' => fn(ParseNode $n) => $o->setLastSeenDateTime($n->getDateTimeValue()),\n 'riskScore' => fn(ParseNode $n) => $o->setRiskScore($n->getStringValue()),\n 'tags' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTags($val);\n },\n 'vendorInformation' => fn(ParseNode $n) => $o->setVendorInformation($n->getObjectValue([SecurityVendorInformation::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n ]);\n }", "public static function setSerializeCallback(Closure $callback): void\n {\n self::$serializeCallback = $callback;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'subscriptionId' => fn(ParseNode $n) => $o->setSubscriptionId($n->getStringValue()),\n 'subscriptionName' => fn(ParseNode $n) => $o->setSubscriptionName($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'distributeForStudentWork' => fn(ParseNode $n) => $o->setDistributeForStudentWork($n->getBooleanValue()),\n 'resource' => fn(ParseNode $n) => $o->setResource($n->getObjectValue([EducationResource::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'azureOperationalInsightsBlockTelemetry' => fn(ParseNode $n) => $o->setAzureOperationalInsightsBlockTelemetry($n->getBooleanValue()),\n 'azureOperationalInsightsWorkspaceId' => fn(ParseNode $n) => $o->setAzureOperationalInsightsWorkspaceId($n->getStringValue()),\n 'azureOperationalInsightsWorkspaceKey' => fn(ParseNode $n) => $o->setAzureOperationalInsightsWorkspaceKey($n->getStringValue()),\n 'connectAppBlockAutoLaunch' => fn(ParseNode $n) => $o->setConnectAppBlockAutoLaunch($n->getBooleanValue()),\n 'maintenanceWindowBlocked' => fn(ParseNode $n) => $o->setMaintenanceWindowBlocked($n->getBooleanValue()),\n 'maintenanceWindowDurationInHours' => fn(ParseNode $n) => $o->setMaintenanceWindowDurationInHours($n->getIntegerValue()),\n 'maintenanceWindowStartTime' => fn(ParseNode $n) => $o->setMaintenanceWindowStartTime($n->getTimeValue()),\n 'miracastBlocked' => fn(ParseNode $n) => $o->setMiracastBlocked($n->getBooleanValue()),\n 'miracastChannel' => fn(ParseNode $n) => $o->setMiracastChannel($n->getEnumValue(MiracastChannel::class)),\n 'miracastRequirePin' => fn(ParseNode $n) => $o->setMiracastRequirePin($n->getBooleanValue()),\n 'settingsBlockMyMeetingsAndFiles' => fn(ParseNode $n) => $o->setSettingsBlockMyMeetingsAndFiles($n->getBooleanValue()),\n 'settingsBlockSessionResume' => fn(ParseNode $n) => $o->setSettingsBlockSessionResume($n->getBooleanValue()),\n 'settingsBlockSigninSuggestions' => fn(ParseNode $n) => $o->setSettingsBlockSigninSuggestions($n->getBooleanValue()),\n 'settingsDefaultVolume' => fn(ParseNode $n) => $o->setSettingsDefaultVolume($n->getIntegerValue()),\n 'settingsScreenTimeoutInMinutes' => fn(ParseNode $n) => $o->setSettingsScreenTimeoutInMinutes($n->getIntegerValue()),\n 'settingsSessionTimeoutInMinutes' => fn(ParseNode $n) => $o->setSettingsSessionTimeoutInMinutes($n->getIntegerValue()),\n 'settingsSleepTimeoutInMinutes' => fn(ParseNode $n) => $o->setSettingsSleepTimeoutInMinutes($n->getIntegerValue()),\n 'welcomeScreenBackgroundImageUrl' => fn(ParseNode $n) => $o->setWelcomeScreenBackgroundImageUrl($n->getStringValue()),\n 'welcomeScreenBlockAutomaticWakeUp' => fn(ParseNode $n) => $o->setWelcomeScreenBlockAutomaticWakeUp($n->getBooleanValue()),\n 'welcomeScreenMeetingInformation' => fn(ParseNode $n) => $o->setWelcomeScreenMeetingInformation($n->getEnumValue(WelcomeScreenMeetingInformation::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'recipientActionDateTime' => fn(ParseNode $n) => $o->setRecipientActionDateTime($n->getDateTimeValue()),\n 'recipientActionMessage' => fn(ParseNode $n) => $o->setRecipientActionMessage($n->getStringValue()),\n 'recipientUserId' => fn(ParseNode $n) => $o->setRecipientUserId($n->getStringValue()),\n 'senderShiftId' => fn(ParseNode $n) => $o->setSenderShiftId($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'allowAutoFilter' => fn(ParseNode $n) => $o->setAllowAutoFilter($n->getBooleanValue()),\n 'allowDeleteColumns' => fn(ParseNode $n) => $o->setAllowDeleteColumns($n->getBooleanValue()),\n 'allowDeleteRows' => fn(ParseNode $n) => $o->setAllowDeleteRows($n->getBooleanValue()),\n 'allowFormatCells' => fn(ParseNode $n) => $o->setAllowFormatCells($n->getBooleanValue()),\n 'allowFormatColumns' => fn(ParseNode $n) => $o->setAllowFormatColumns($n->getBooleanValue()),\n 'allowFormatRows' => fn(ParseNode $n) => $o->setAllowFormatRows($n->getBooleanValue()),\n 'allowInsertColumns' => fn(ParseNode $n) => $o->setAllowInsertColumns($n->getBooleanValue()),\n 'allowInsertHyperlinks' => fn(ParseNode $n) => $o->setAllowInsertHyperlinks($n->getBooleanValue()),\n 'allowInsertRows' => fn(ParseNode $n) => $o->setAllowInsertRows($n->getBooleanValue()),\n 'allowPivotTables' => fn(ParseNode $n) => $o->setAllowPivotTables($n->getBooleanValue()),\n 'allowSort' => fn(ParseNode $n) => $o->setAllowSort($n->getBooleanValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deviceCount' => fn(ParseNode $n) => $o->setDeviceCount($n->getIntegerValue()),\n 'medianImpactInMs' => fn(ParseNode $n) => $o->setMedianImpactInMs($n->getIntegerValue()),\n 'processName' => fn(ParseNode $n) => $o->setProcessName($n->getStringValue()),\n 'productName' => fn(ParseNode $n) => $o->setProductName($n->getStringValue()),\n 'publisher' => fn(ParseNode $n) => $o->setPublisher($n->getStringValue()),\n 'totalImpactInMs' => fn(ParseNode $n) => $o->setTotalImpactInMs($n->getIntegerValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'mobileAppIdentifier' => fn(ParseNode $n) => $o->setMobileAppIdentifier($n->getObjectValue([MobileAppIdentifier::class, 'createFromDiscriminatorValue'])),\n 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()),\n ]);\n }", "public function deserialize($data)\n {\n }", "public function __wakeup ();", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()),\n 'identity' => fn(ParseNode $n) => $o->setIdentity($n->getObjectValue([CommunicationsUserIdentity::class, 'createFromDiscriminatorValue'])),\n 'presenterDetails' => fn(ParseNode $n) => $o->setPresenterDetails($n->getObjectValue([VirtualEventPresenterDetails::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'applicationIdentityType' => fn(ParseNode $n) => $o->setApplicationIdentityType($n->getEnumValue(TeamworkApplicationIdentityType::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'comparisonValue' => fn(ParseNode $n) => $o->setComparisonValue($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'enforceSignatureCheck' => fn(ParseNode $n) => $o->setEnforceSignatureCheck($n->getBooleanValue()),\n 'operationType' => fn(ParseNode $n) => $o->setOperationType($n->getEnumValue(Win32LobAppPowerShellScriptRuleOperationType::class)),\n 'operator' => fn(ParseNode $n) => $o->setOperator($n->getEnumValue(Win32LobAppRuleOperator::class)),\n 'runAs32Bit' => fn(ParseNode $n) => $o->setRunAs32Bit($n->getBooleanValue()),\n 'runAsAccount' => fn(ParseNode $n) => $o->setRunAsAccount($n->getEnumValue(RunAsAccountType::class)),\n 'scriptContent' => fn(ParseNode $n) => $o->setScriptContent($n->getStringValue()),\n ]);\n }", "public function __wakeup();", "public function representationOf($serializer, $value, $context= array());", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'bold' => fn(ParseNode $n) => $o->setBold($n->getBooleanValue()),\n 'color' => fn(ParseNode $n) => $o->setColor($n->getStringValue()),\n 'italic' => fn(ParseNode $n) => $o->setItalic($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'size' => fn(ParseNode $n) => $o->setSize($n->getFloatValue()),\n 'underline' => fn(ParseNode $n) => $o->setUnderline($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'completeStepsCount' => fn(ParseNode $n) => $o->setCompleteStepsCount($n->getIntegerValue()),\n 'completeUsersCount' => fn(ParseNode $n) => $o->setCompleteUsersCount($n->getIntegerValue()),\n 'createdByUserId' => fn(ParseNode $n) => $o->setCreatedByUserId($n->getStringValue()),\n 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()),\n 'dismissedStepsCount' => fn(ParseNode $n) => $o->setDismissedStepsCount($n->getIntegerValue()),\n 'excludedUsersCount' => fn(ParseNode $n) => $o->setExcludedUsersCount($n->getIntegerValue()),\n 'excludedUsersDistinctCount' => fn(ParseNode $n) => $o->setExcludedUsersDistinctCount($n->getIntegerValue()),\n 'incompleteStepsCount' => fn(ParseNode $n) => $o->setIncompleteStepsCount($n->getIntegerValue()),\n 'incompleteUsersCount' => fn(ParseNode $n) => $o->setIncompleteUsersCount($n->getIntegerValue()),\n 'ineligibleStepsCount' => fn(ParseNode $n) => $o->setIneligibleStepsCount($n->getIntegerValue()),\n 'isComplete' => fn(ParseNode $n) => $o->setIsComplete($n->getBooleanValue()),\n 'lastActionByUserId' => fn(ParseNode $n) => $o->setLastActionByUserId($n->getStringValue()),\n 'lastActionDateTime' => fn(ParseNode $n) => $o->setLastActionDateTime($n->getDateTimeValue()),\n 'managementTemplateCollectionDisplayName' => fn(ParseNode $n) => $o->setManagementTemplateCollectionDisplayName($n->getStringValue()),\n 'managementTemplateCollectionId' => fn(ParseNode $n) => $o->setManagementTemplateCollectionId($n->getStringValue()),\n 'regressedStepsCount' => fn(ParseNode $n) => $o->setRegressedStepsCount($n->getIntegerValue()),\n 'regressedUsersCount' => fn(ParseNode $n) => $o->setRegressedUsersCount($n->getIntegerValue()),\n 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()),\n 'unlicensedUsersCount' => fn(ParseNode $n) => $o->setUnlicensedUsersCount($n->getIntegerValue()),\n ]);\n }", "protected function __wakeup() {\n trigger_error('Cannot deserialize instance of Singleton pattern ...', E_USER_ERROR);\n }", "public function getCustomSerializer($fieldKey);", "function _unserialize( $serial ) {\n\t\tif( function_exists( 'gzinflate' ) ) {\n\t\t\t$decomp = @gzinflate( $serial );\n\t\t\tif( false !== $decomp ) {\n\t\t\t\t$serial = $decomp;\n\t\t\t}\n\t\t}\n\t\treturn unserialize( $serial );\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'callEventType' => fn(ParseNode $n) => $o->setCallEventType($n->getEnumValue(TeamworkCallEventType::class)),\n 'callId' => fn(ParseNode $n) => $o->setCallId($n->getStringValue()),\n 'initiator' => fn(ParseNode $n) => $o->setInitiator($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'specificWebsitesOnly' => fn(ParseNode $n) => $o->setSpecificWebsitesOnly($n->getCollectionOfObjectValues([IosBookmark::class, 'createFromDiscriminatorValue'])),\n 'websiteList' => fn(ParseNode $n) => $o->setWebsiteList($n->getCollectionOfObjectValues([IosBookmark::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'appDisplayName' => fn(ParseNode $n) => $o->setAppDisplayName($n->getStringValue()),\n 'dataType' => fn(ParseNode $n) => $o->setDataType($n->getStringValue()),\n 'isMultiValued' => fn(ParseNode $n) => $o->setIsMultiValued($n->getBooleanValue()),\n 'isSyncedFromOnPremises' => fn(ParseNode $n) => $o->setIsSyncedFromOnPremises($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'targetObjects' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTargetObjects($val);\n },\n ]);\n }", "private function setMoneySerializeCallback(): void\n {\n Money::setSerializeCallback(function (Money $money) {\n $currency = $this->getCurrencyOf($money->currency);\n return $this->moneySerializer->toArray($money->amount, $currency);\n });\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'updateCategory' => fn(ParseNode $n) => $o->setUpdateCategory($n->getEnumValue(UpdateCategory::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'activeDevices' => fn(ParseNode $n) => $o->setActiveDevices($n->getIntegerValue()),\n 'batteryCapacityFair' => fn(ParseNode $n) => $o->setBatteryCapacityFair($n->getIntegerValue()),\n 'batteryCapacityGood' => fn(ParseNode $n) => $o->setBatteryCapacityGood($n->getIntegerValue()),\n 'batteryCapacityPoor' => fn(ParseNode $n) => $o->setBatteryCapacityPoor($n->getIntegerValue()),\n 'lastRefreshedDateTime' => fn(ParseNode $n) => $o->setLastRefreshedDateTime($n->getDateTimeValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'preFetchMedia' => fn(ParseNode $n) => $o->setPreFetchMedia($n->getCollectionOfObjectValues([MediaInfo::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'failedDeviceCount' => fn(ParseNode $n) => $o->setFailedDeviceCount($n->getIntegerValue()),\n 'failedUserCount' => fn(ParseNode $n) => $o->setFailedUserCount($n->getIntegerValue()),\n 'installedDeviceCount' => fn(ParseNode $n) => $o->setInstalledDeviceCount($n->getIntegerValue()),\n 'installedUserCount' => fn(ParseNode $n) => $o->setInstalledUserCount($n->getIntegerValue()),\n 'notInstalledDeviceCount' => fn(ParseNode $n) => $o->setNotInstalledDeviceCount($n->getIntegerValue()),\n 'notInstalledUserCount' => fn(ParseNode $n) => $o->setNotInstalledUserCount($n->getIntegerValue()),\n ]);\n }", "public function unserialize($serialized=null){ }", "public function jsonSerialize():mixed\n {\n return ObjectSerializer::sanitizeForSerialization($this);\n }", "public function testPostDeserialize(): void\n {\n $functionName = 'serialize_Tests_Liip_Serializer_Fixtures_PostDeserialize_2';\n self::generateSerializers(self::$metadataBuilder, PostDeserialize::class, [$functionName]);\n\n $model = new PostDeserialize();\n $model->apiString = 'apiString';\n\n $expected = [\n 'api_string' => 'apiString',\n ];\n $data = $functionName($model);\n\n self::assertSame($expected, $data);\n self::assertNull($model->postCalled);\n }", "public function setSerializer(string $serializerClass, callable|string $callback = null): self\n {\n $this->serializer = [$serializerClass, $callback];\n\n return $this;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(WindowsQualityUpdateClassification::class)),\n 'isExpeditable' => fn(ParseNode $n) => $o->setIsExpeditable($n->getBooleanValue()),\n 'kbArticleId' => fn(ParseNode $n) => $o->setKbArticleId($n->getStringValue()),\n ]);\n }", "function jsonSerialize()\n {\n $data = $this->data;\n foreach ($this->config as $name => $c) {\n if (is_callable($c['serializer'])) {\n $data[$name] = call_user_func($c['serializer'], $data['name']);\n }\n }\n return $data;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'currentLabel' => fn(ParseNode $n) => $o->setCurrentLabel($n->getObjectValue([CurrentLabel::class, 'createFromDiscriminatorValue'])),\n 'discoveredSensitiveTypes' => fn(ParseNode $n) => $o->setDiscoveredSensitiveTypes($n->getCollectionOfObjectValues([DiscoveredSensitiveType::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'additionalInformation' => fn(ParseNode $n) => $o->setAdditionalInformation($n->getStringValue()),\n 'creationDateTime' => fn(ParseNode $n) => $o->setCreationDateTime($n->getDateTimeValue()),\n 'expirationDateTime' => fn(ParseNode $n) => $o->setExpirationDateTime($n->getDateTimeValue()),\n 'referenceKey' => fn(ParseNode $n) => $o->setReferenceKey($n->getStringValue()),\n 'referenceSystem' => fn(ParseNode $n) => $o->setReferenceSystem($n->getStringValue()),\n 'requestorId' => fn(ParseNode $n) => $o->setRequestorId($n->getStringValue()),\n 'requestorName' => fn(ParseNode $n) => $o->setRequestorName($n->getStringValue()),\n 'requestType' => fn(ParseNode $n) => $o->setRequestType($n->getStringValue()),\n 'roleId' => fn(ParseNode $n) => $o->setRoleId($n->getStringValue()),\n 'roleName' => fn(ParseNode $n) => $o->setRoleName($n->getStringValue()),\n 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n 'userMail' => fn(ParseNode $n) => $o->setUserMail($n->getStringValue()),\n 'userName' => fn(ParseNode $n) => $o->setUserName($n->getStringValue()),\n ]);\n }", "public function deserialized(ObjectMapper $objectMapper): void;", "public function overrideDefaultFractalSerializer()\n {\n $serializerName = env('FRACTAL_SERIALIZER', 'DataArray');\n\n // if DataArray `\\League\\Fractal\\Serializer\\DataArraySerializer` do noting since it's set by default by the Dingo API\n if ($serializerName !== 'DataArray') {\n app('Dingo\\Api\\Transformer\\Factory')->setAdapter(function () use ($serializerName) {\n switch ($serializerName) {\n case 'JsonApi':\n $serializer = new \\League\\Fractal\\Serializer\\JsonApiSerializer(env('API_DOMAIN'));\n break;\n case 'Array':\n $serializer = new \\League\\Fractal\\Serializer\\ArraySerializer(env('API_DOMAIN'));\n break;\n default:\n throw new UnsupportedFractalSerializerException('Unsupported ' . $serializerName);\n }\n\n $fractal = new \\League\\Fractal\\Manager();\n $fractal->setSerializer($serializer);\n\n return new \\Dingo\\Api\\Transformer\\Adapter\\Fractal($fractal, 'include', ',', false);\n });\n }\n }", "public function __unserialize(array $data): void\n {\n $this->__construct($data);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'urls' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setUrls($val);\n },\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'clickAction' => fn(ParseNode $n) => $o->setClickAction($n->getStringValue()),\n 'clickDateTime' => fn(ParseNode $n) => $o->setClickDateTime($n->getDateTimeValue()),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'sourceId' => fn(ParseNode $n) => $o->setSourceId($n->getStringValue()),\n 'uriDomain' => fn(ParseNode $n) => $o->setUriDomain($n->getStringValue()),\n 'verdict' => fn(ParseNode $n) => $o->setVerdict($n->getStringValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deletedChats' => fn(ParseNode $n) => $o->setDeletedChats($n->getCollectionOfObjectValues([DeletedChat::class, 'createFromDiscriminatorValue'])),\n 'deletedTeams' => fn(ParseNode $n) => $o->setDeletedTeams($n->getCollectionOfObjectValues([DeletedTeam::class, 'createFromDiscriminatorValue'])),\n 'devices' => fn(ParseNode $n) => $o->setDevices($n->getCollectionOfObjectValues([TeamworkDevice::class, 'createFromDiscriminatorValue'])),\n 'teamsAppSettings' => fn(ParseNode $n) => $o->setTeamsAppSettings($n->getObjectValue([TeamsAppSettings::class, 'createFromDiscriminatorValue'])),\n 'teamTemplates' => fn(ParseNode $n) => $o->setTeamTemplates($n->getCollectionOfObjectValues([TeamTemplate::class, 'createFromDiscriminatorValue'])),\n 'workforceIntegrations' => fn(ParseNode $n) => $o->setWorkforceIntegrations($n->getCollectionOfObjectValues([WorkforceIntegration::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'format' => fn(ParseNode $n) => $o->setFormat($n->getObjectValue([WorkbookChartSeriesFormat::class, 'createFromDiscriminatorValue'])),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'points' => fn(ParseNode $n) => $o->setPoints($n->getCollectionOfObjectValues([WorkbookChartPoint::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deliveryFrequency' => fn(ParseNode $n) => $o->setDeliveryFrequency($n->getEnumValue(NotificationDeliveryFrequency::class)),\n ]);\n }", "public function unbox()\n {\n APIHelper::deserialize(self::getResponseBody(), $this, false, false);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'simulationNotification' => fn(ParseNode $n) => $o->setSimulationNotification($n->getObjectValue([SimulationNotification::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'connectionSettings' => fn(ParseNode $n) => $o->setConnectionSettings($n->getObjectValue([EducationSynchronizationConnectionSettings::class, 'createFromDiscriminatorValue'])),\n 'connectionUrl' => fn(ParseNode $n) => $o->setConnectionUrl($n->getStringValue()),\n 'customizations' => fn(ParseNode $n) => $o->setCustomizations($n->getObjectValue([EducationSynchronizationCustomizations::class, 'createFromDiscriminatorValue'])),\n 'providerName' => fn(ParseNode $n) => $o->setProviderName($n->getStringValue()),\n 'schoolsIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSchoolsIds($val);\n },\n 'termIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTermIds($val);\n },\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'availability' => fn(ParseNode $n) => $o->setAvailability($n->getCollectionOfObjectValues([ShiftAvailability::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'number' => fn(ParseNode $n) => $o->setNumber($n->getStringValue()),\n 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(PhoneType::class)),\n ]);\n }", "public function __wakeup() {\n // Unserializing instances of the class is forbidden\n _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'ninja-forms' ), '2.8' );\n }", "public function getSerializer()\n {\n return $this->serializer;\n }", "public function __wakeup() {\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'clientContext' => fn(ParseNode $n) => $o->setClientContext($n->getStringValue()),\n 'resultInfo' => fn(ParseNode $n) => $o->setResultInfo($n->getObjectValue([ResultInfo::class, 'createFromDiscriminatorValue'])),\n 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(OperationStatus::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'app' => fn(ParseNode $n) => $o->setApp($n->getObjectValue([MobileApp::class, 'createFromDiscriminatorValue'])),\n 'deviceId' => fn(ParseNode $n) => $o->setDeviceId($n->getStringValue()),\n 'deviceName' => fn(ParseNode $n) => $o->setDeviceName($n->getStringValue()),\n 'displayVersion' => fn(ParseNode $n) => $o->setDisplayVersion($n->getStringValue()),\n 'errorCode' => fn(ParseNode $n) => $o->setErrorCode($n->getIntegerValue()),\n 'installState' => fn(ParseNode $n) => $o->setInstallState($n->getEnumValue(ResultantAppState::class)),\n 'installStateDetail' => fn(ParseNode $n) => $o->setInstallStateDetail($n->getEnumValue(ResultantAppStateDetail::class)),\n 'lastSyncDateTime' => fn(ParseNode $n) => $o->setLastSyncDateTime($n->getDateTimeValue()),\n 'mobileAppInstallStatusValue' => fn(ParseNode $n) => $o->setMobileAppInstallStatusValue($n->getEnumValue(ResultantAppState::class)),\n 'osDescription' => fn(ParseNode $n) => $o->setOsDescription($n->getStringValue()),\n 'osVersion' => fn(ParseNode $n) => $o->setOsVersion($n->getStringValue()),\n 'userName' => fn(ParseNode $n) => $o->setUserName($n->getStringValue()),\n 'userPrincipalName' => fn(ParseNode $n) => $o->setUserPrincipalName($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'accessRecommendation' => fn(ParseNode $n) => $o->setAccessRecommendation($n->getStringValue()),\n 'accessReviewId' => fn(ParseNode $n) => $o->setAccessReviewId($n->getStringValue()),\n 'appliedBy' => fn(ParseNode $n) => $o->setAppliedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'appliedDateTime' => fn(ParseNode $n) => $o->setAppliedDateTime($n->getDateTimeValue()),\n 'applyResult' => fn(ParseNode $n) => $o->setApplyResult($n->getStringValue()),\n 'justification' => fn(ParseNode $n) => $o->setJustification($n->getStringValue()),\n 'reviewedBy' => fn(ParseNode $n) => $o->setReviewedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'reviewedDateTime' => fn(ParseNode $n) => $o->setReviewedDateTime($n->getDateTimeValue()),\n 'reviewResult' => fn(ParseNode $n) => $o->setReviewResult($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'isRegistrationRequired' => fn(ParseNode $n) => $o->setIsRegistrationRequired($n->getBooleanValue()),\n 'targetType' => fn(ParseNode $n) => $o->setTargetType($n->getEnumValue(AuthenticationMethodTargetType::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'applicationId' => fn(ParseNode $n) => $o->setApplicationId($n->getStringValue()),\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'discoverable' => fn(ParseNode $n) => $o->setDiscoverable($n->getBooleanValue()),\n 'default' => fn(ParseNode $n) => $o->setEscapedDefault($n->getBooleanValue()),\n 'factoryTag' => fn(ParseNode $n) => $o->setFactoryTag($n->getStringValue()),\n 'metadata' => fn(ParseNode $n) => $o->setMetadata($n->getCollectionOfObjectValues([SynchronizationMetadataEntry::class, 'createFromDiscriminatorValue'])),\n 'schema' => fn(ParseNode $n) => $o->setSchema($n->getObjectValue([SynchronizationSchema::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'automaticUserConsentSettings' => fn(ParseNode $n) => $o->setAutomaticUserConsentSettings($n->getObjectValue([InboundOutboundPolicyConfiguration::class, 'createFromDiscriminatorValue'])),\n 'b2bCollaborationInbound' => fn(ParseNode $n) => $o->setB2bCollaborationInbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])),\n 'b2bCollaborationOutbound' => fn(ParseNode $n) => $o->setB2bCollaborationOutbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])),\n 'b2bDirectConnectInbound' => fn(ParseNode $n) => $o->setB2bDirectConnectInbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])),\n 'b2bDirectConnectOutbound' => fn(ParseNode $n) => $o->setB2bDirectConnectOutbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])),\n 'identitySynchronization' => fn(ParseNode $n) => $o->setIdentitySynchronization($n->getObjectValue([CrossTenantIdentitySyncPolicyPartner::class, 'createFromDiscriminatorValue'])),\n 'inboundTrust' => fn(ParseNode $n) => $o->setInboundTrust($n->getObjectValue([CrossTenantAccessPolicyInboundTrust::class, 'createFromDiscriminatorValue'])),\n 'isInMultiTenantOrganization' => fn(ParseNode $n) => $o->setIsInMultiTenantOrganization($n->getBooleanValue()),\n 'isServiceProvider' => fn(ParseNode $n) => $o->setIsServiceProvider($n->getBooleanValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()),\n 'tenantRestrictions' => fn(ParseNode $n) => $o->setTenantRestrictions($n->getObjectValue([CrossTenantAccessPolicyTenantRestrictions::class, 'createFromDiscriminatorValue'])),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'ignoreVersionDetection' => fn(ParseNode $n) => $o->setIgnoreVersionDetection($n->getBooleanValue()),\n 'includedApps' => fn(ParseNode $n) => $o->setIncludedApps($n->getCollectionOfObjectValues([MacOSIncludedApp::class, 'createFromDiscriminatorValue'])),\n 'minimumSupportedOperatingSystem' => fn(ParseNode $n) => $o->setMinimumSupportedOperatingSystem($n->getObjectValue([MacOSMinimumOperatingSystem::class, 'createFromDiscriminatorValue'])),\n 'primaryBundleId' => fn(ParseNode $n) => $o->setPrimaryBundleId($n->getStringValue()),\n 'primaryBundleVersion' => fn(ParseNode $n) => $o->setPrimaryBundleVersion($n->getStringValue()),\n ]);\n }", "public function _jsonSerialize();", "public function deserialize($data);", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'allowPrinting' => fn(ParseNode $n) => $o->setAllowPrinting($n->getBooleanValue()),\n 'allowScreenCapture' => fn(ParseNode $n) => $o->setAllowScreenCapture($n->getBooleanValue()),\n 'allowTextSuggestion' => fn(ParseNode $n) => $o->setAllowTextSuggestion($n->getBooleanValue()),\n 'assessmentAppUserModelId' => fn(ParseNode $n) => $o->setAssessmentAppUserModelId($n->getStringValue()),\n 'configurationAccount' => fn(ParseNode $n) => $o->setConfigurationAccount($n->getStringValue()),\n 'configurationAccountType' => fn(ParseNode $n) => $o->setConfigurationAccountType($n->getEnumValue(SecureAssessmentAccountType::class)),\n 'launchUri' => fn(ParseNode $n) => $o->setLaunchUri($n->getStringValue()),\n 'localGuestAccountName' => fn(ParseNode $n) => $o->setLocalGuestAccountName($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'file' => fn(ParseNode $n) => $o->setFile($n->getBinaryContent()),\n 'sensitiveTypeIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSensitiveTypeIds($val);\n },\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'countriesAndRegions' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setCountriesAndRegions($val);\n },\n 'countryLookupMethod' => fn(ParseNode $n) => $o->setCountryLookupMethod($n->getEnumValue(CountryLookupMethodType::class)),\n 'includeUnknownCountriesAndRegions' => fn(ParseNode $n) => $o->setIncludeUnknownCountriesAndRegions($n->getBooleanValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'entryType' => fn(ParseNode $n) => $o->setEntryType($n->getStringValue()),\n 'errorCode' => fn(ParseNode $n) => $o->setErrorCode($n->getStringValue()),\n 'errorMessage' => fn(ParseNode $n) => $o->setErrorMessage($n->getStringValue()),\n 'joiningValue' => fn(ParseNode $n) => $o->setJoiningValue($n->getStringValue()),\n 'recordedDateTime' => fn(ParseNode $n) => $o->setRecordedDateTime($n->getDateTimeValue()),\n 'reportableIdentifier' => fn(ParseNode $n) => $o->setReportableIdentifier($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'filter' => fn(ParseNode $n) => $o->setFilter($n->getObjectValue([WorkbookFilter::class, 'createFromDiscriminatorValue'])),\n 'index' => fn(ParseNode $n) => $o->setIndex($n->getIntegerValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'values' => fn(ParseNode $n) => $o->setValues($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'appsBlockInstallFromUnknownSources' => fn(ParseNode $n) => $o->setAppsBlockInstallFromUnknownSources($n->getBooleanValue()),\n 'bluetoothBlockConfiguration' => fn(ParseNode $n) => $o->setBluetoothBlockConfiguration($n->getBooleanValue()),\n 'bluetoothBlocked' => fn(ParseNode $n) => $o->setBluetoothBlocked($n->getBooleanValue()),\n 'cameraBlocked' => fn(ParseNode $n) => $o->setCameraBlocked($n->getBooleanValue()),\n 'factoryResetBlocked' => fn(ParseNode $n) => $o->setFactoryResetBlocked($n->getBooleanValue()),\n 'passwordMinimumLength' => fn(ParseNode $n) => $o->setPasswordMinimumLength($n->getIntegerValue()),\n 'passwordMinutesOfInactivityBeforeScreenTimeout' => fn(ParseNode $n) => $o->setPasswordMinutesOfInactivityBeforeScreenTimeout($n->getIntegerValue()),\n 'passwordRequiredType' => fn(ParseNode $n) => $o->setPasswordRequiredType($n->getEnumValue(AndroidDeviceOwnerRequiredPasswordType::class)),\n 'passwordSignInFailureCountBeforeFactoryReset' => fn(ParseNode $n) => $o->setPasswordSignInFailureCountBeforeFactoryReset($n->getIntegerValue()),\n 'screenCaptureBlocked' => fn(ParseNode $n) => $o->setScreenCaptureBlocked($n->getBooleanValue()),\n 'securityAllowDebuggingFeatures' => fn(ParseNode $n) => $o->setSecurityAllowDebuggingFeatures($n->getBooleanValue()),\n 'storageBlockExternalMedia' => fn(ParseNode $n) => $o->setStorageBlockExternalMedia($n->getBooleanValue()),\n 'storageBlockUsbFileTransfer' => fn(ParseNode $n) => $o->setStorageBlockUsbFileTransfer($n->getBooleanValue()),\n 'wifiBlockEditConfigurations' => fn(ParseNode $n) => $o->setWifiBlockEditConfigurations($n->getBooleanValue()),\n ]);\n }", "private function resetSerializationConditions(): void\n {\n $this->isPartial = false;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'check32BitOn64System' => fn(ParseNode $n) => $o->setCheck32BitOn64System($n->getBooleanValue()),\n 'detectionType' => fn(ParseNode $n) => $o->setDetectionType($n->getEnumValue(Win32LobAppFileSystemDetectionType::class)),\n 'detectionValue' => fn(ParseNode $n) => $o->setDetectionValue($n->getStringValue()),\n 'fileOrFolderName' => fn(ParseNode $n) => $o->setFileOrFolderName($n->getStringValue()),\n 'operator' => fn(ParseNode $n) => $o->setOperator($n->getEnumValue(Win32LobAppDetectionOperator::class)),\n 'path' => fn(ParseNode $n) => $o->setPath($n->getStringValue()),\n ]);\n }", "public function __unserialize(array $data): void\n {\n $this->createFromArray($data);\n }", "public function __wakeup()\n {\n }", "public function __wakeup()\n {\n }", "public function __wakeup()\n {\n }", "public function __wakeup()\n {\n }", "public function __wakeup()\n {\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'query' => fn(ParseNode $n) => $o->setQuery($n->getStringValue()),\n 'queryRoot' => fn(ParseNode $n) => $o->setQueryRoot($n->getStringValue()),\n 'queryType' => fn(ParseNode $n) => $o->setQueryType($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'addedDateTime' => fn(ParseNode $n) => $o->setAddedDateTime($n->getDateTimeValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'verifiedPublisherId' => fn(ParseNode $n) => $o->setVerifiedPublisherId($n->getStringValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'members' => fn(ParseNode $n) => $o->setMembers($n->getCollectionOfObjectValues([Identity::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function __wakeup()\n {\n }" ]
[ "0.59780115", "0.57484806", "0.5730562", "0.5716016", "0.56009", "0.55465996", "0.5514139", "0.55001557", "0.54778093", "0.5459209", "0.54498607", "0.53946173", "0.5380275", "0.53380597", "0.5272902", "0.5233352", "0.51852447", "0.5176493", "0.5164119", "0.51630485", "0.51630485", "0.5161513", "0.5133685", "0.5127264", "0.5104632", "0.50946575", "0.50806874", "0.50802124", "0.5071969", "0.5059624", "0.5056723", "0.50468564", "0.50438255", "0.5039179", "0.5037876", "0.5036121", "0.5034703", "0.50322396", "0.50289416", "0.5027979", "0.50231105", "0.50174177", "0.49911934", "0.4989215", "0.4985188", "0.4970541", "0.49358347", "0.49322072", "0.49257776", "0.4913266", "0.49126932", "0.4906056", "0.48952177", "0.4890194", "0.4881729", "0.48677188", "0.4867649", "0.4862735", "0.48508325", "0.48488662", "0.48392284", "0.48382542", "0.4838158", "0.48362944", "0.4828208", "0.48186472", "0.48180768", "0.48172575", "0.4813952", "0.4808435", "0.48082075", "0.48001495", "0.4797318", "0.4789607", "0.47890842", "0.4785194", "0.4784876", "0.477678", "0.4776152", "0.4774112", "0.47683388", "0.47613996", "0.47600818", "0.4754298", "0.4753984", "0.47538057", "0.47515976", "0.47497043", "0.47476932", "0.47429454", "0.47403198", "0.47388226", "0.47388226", "0.47388226", "0.47388226", "0.47388226", "0.47382388", "0.4730863", "0.47223893", "0.47220525" ]
0.6680608
0
Check whether something has been cached and is still fresh or not
public function isCached($name) { $hash = md5($name); $file = sprintf("{$this->cache_dir}/{$hash}"); return file_exists($file) && time() - filemtime($file) < $this->cache_time; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function wasCached();", "public function isCached() {}", "public function isCached(): bool;", "function expired() {\r\n if(!file_exists($this->cachefile)) return true;\r\n # compare new m5d to existing cached md5\r\n elseif($this->hash !== $this->get_current_hash()) return true;\r\n else return false;\r\n }", "private function check_cache() {\n if (!file_exists($this->cache_file)) {\n return false;\n }\n if (filemtime($this->cache_file) >= strtotime(\"-\" . CACHE_EXPIRATION . \" seconds\")) {\n return true;\n } else {\n return false;\n }\n }", "protected function _cached_exists()\n {\n return file_exists($this->cached_file);\n }", "private function isCacheFresh()\n {\n $documentDirs = $this->documentLocator->getAllDocumentDirs();\n\n foreach ($documentDirs as $dir) {\n $isFresh = $this->cache->fetch('[C]'.self::CACHE_KEY) >= filemtime($dir);\n if (!$isFresh) {\n return false;\n }\n }\n\n return true;\n }", "public function cacheUpToDate()\n\t{\n\t\t$expiredSites = $this->getExpiredCacheSites();\n\n\t\treturn empty($expiredSites);\n\t}", "public static function hasCache() {\n\t\treturn false;\n\t}", "public function isFresh()\n {\n return false;\n }", "private function isCached()\n {\n return Cache::has($this->cacheKey());\n }", "private function isFreshCacheEntry(Response $entry)\n {\n return $this->getReverseProxyTtl($entry) > 0;\n }", "public function checkCache() {\n \tif (file_exists(dirname($this->cache_file)) || !is_writable(dirname($this->cache_file))) {\n \t\t$this->createCacheDirectory();\n \t}\n \tif (file_exists($this->cache_file)) {\n \t\t$this->mod_time = filemtime($this->cache_file) + $this->cache_time;\n \t\tif ($this->mod_time > time()) {\n \t\t\treturn true;\n \t\t} else {\n \t\t\treturn false;\n \t\t}\n \t} else {\n \t\treturn false;\n \t}\n \n }", "private function isCacheExpired(): bool\n\t{\n\t\t$path = $this->_cacheFolder . $this->generateCacheName();\n\t\tif (file_exists($path)) {\n\t\t\t$filetime = filemtime($path);\n\t\t\treturn $filetime < (time() - $this->_cacheTtl);\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public function isCached()\n\t{\n\t\treturn is_file($this->getCacheFile());\n\t}", "public function isFresh()\n {\n return (bool)$this->fresh;\n }", "public function cacheExists()\n {\n $cacheFile = $this->getCacheFile();\n if (file_exists($cacheFile) && filemtime($cacheFile) > (time()-$this->cachePeriod)) {\n return(true);\n } else {\n return(false);\n }\n }", "public function isFresh(): bool\n {\n $lock = $this->lockFile->read();\n\n if (!empty($lock['content-hash'])) {\n // There is a content hash key, use that instead of the file hash\n return $this->contentHash === $lock['content-hash'];\n }\n\n // BC support for old lock files without content-hash\n if (!empty($lock['hash'])) {\n return $this->hash === $lock['hash'];\n }\n\n // should not be reached unless the lock file is corrupted, so assume it's out of date\n return false;\n }", "protected function isCached(): bool\n {\n $cacheTime = self::CACHE_TIME * 60;\n\n if (!is_file($this->pathCache)) {\n return false;\n }\n\n $cachedTime = filemtime($this->pathCache);\n $cacheAge = $this->time - $cachedTime;\n\n return $cacheAge < $cacheTime;\n }", "public function isUpdateRequired()\n {\n $CacheCreated = filemtime($this->cachedPath);\n $CacheRenewal = $CacheCreated + $this->CacheLife;\n if(time() >= $CacheRenewal)\n return true;\n else\n return false;\n }", "public function needsRefreshing()\n {\n return $this->isExpired() || ! $this->isLoaded();\n }", "function MustUseCache()\n {\n if ($this->cacheLifetime == 0)\n {\n return false;\n }\n if (!File::Exists($this->file))\n {\n return false;\n }\n $now = Date::Now();\n $lastMod = File::GetLastModified($this->file);\n if ($now->TimeStamp() - $lastMod->TimeStamp() < $this->cacheLifetime)\n {\n return true;\n }\n return false;\n }", "public function hasCache(): bool\n {\n return isset($this->contents);\n }", "static function is_cache()\n\t{\n\t\tif (file_exists(Cache::$path))\n\t\t{\n\t\t\tif(Cache::$time>0)\n\t\t\t{\n\t\t\t\t$info_file=stat(Cache::$path);\n\t\t\t\tif(time() > $info_file[9]+Cache::$time)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tCache::delete();\n\t\t\t\t\tCache::$time=0;\n\t\t\t\t\treturn false;\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function cacheCheck(){\n \n if(file_exists($this->cacheName)){\n\t \n $cTime = intval(filemtime($this->cacheName));\n \n if( $cTime + $this->cacheTime > time() ) {\n\t \n echo file_get_contents( $this->cacheName );\n \n ob_end_flush();\n \n exit;}\t\t\t\t\t\n \n \t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n return false;\n \n}", "public function isCacheExists()\n {\n if(file_exists($this->cachedPath))\n return true;\n else\n return false;\n }", "public function isFresh($timestamp = null);", "private function do_caching() {\n if ($this->is_logged_in) {\n return false;\n }\n //Dont cache the request if it's either POST or PUT\n else if (preg_match(\"/^(?:POST|PUT)$/i\", $_SERVER[\"REQUEST_METHOD\"])) {\n return false;\n }\n if (preg_match(\"#register#\", $_SERVER[\"REQUEST_URI\"])) {\n return false;\n }\n if (preg_match(\"#login#\", $_SERVER[\"REQUEST_URI\"])) {\n return false;\n }\n if (is_array($_COOKIE) && !empty($_COOKIE)) {\n foreach ($_COOKIE as $k => $v) {\n if (preg_match('#session#', $k) && strlen($v))\n return false;\n if (preg_match(\"#fbs_#\", $k) && strlen($v))\n return false;\n }\n }\n return true;\n }", "public function dirty()\n\t{\n\t\tif ( ! $this->app['files']->exists($this->cacheFilePath))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "final protected function getCacheNeed()\n\t{\n\t\treturn\tintval($this->arParams['CACHE_TIME']) > 0 &&\n\t\t\t\t$this->arParams['CACHE_TYPE'] != 'N' &&\n\t\t\t\tConfig\\Option::get(\"main\", \"component_cache_on\", \"Y\") == \"Y\";\n\t}", "function check_cache ( $url ) {\n $this->ERROR = \"\";\n $filename = $this->file_name( $url );\n \n if ( file_exists( $filename ) ) {\n // find how long ago the file was added to the cache\n // and whether that is longer then MAX_AGE\n $mtime = filemtime( $filename );\n $age = time() - $mtime;\n if ( $this->MAX_AGE > $age ) {\n // object exists and is current\n return 'HIT';\n }\n else {\n // object exists but is old\n return 'STALE';\n }\n }\n else {\n // object does not exist\n return 'MISS';\n }\n }", "private function check_cache()\n\t{\n\t\t$cache_file = Kohana::config($this->type.'.cache_folder').'/'.md5($this->file).EXT;\n\t\t$this->skip = FALSE;\n\t\t\n\t\tif (is_file($cache_file))\n\t\t{\n\t\t\t// touch file. helps determine if template was modified\n\t\t\ttouch($cache_file);\n\t\t\t// check if template has been mofilemtime($cache_file)dified and is newer than cache\n\t\t\t// allow $cache_time difference\n\t\t\tif ((filemtime($this->file)) > (filemtime($cache_file)+$this->cache_time))\n\t\t\t\t$this->skip = TRUE;\n\t\t}\n\t\t\n\t\treturn $cache_file;\n\t}", "public function is_cached()\n\t\t{\n\t\t\treturn $this->cached;\n\t\t}", "private function decide(): bool\n {\n if ($this->cloudflare && isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {\n $this->cache = false;\n $this->addMessage('request from cloudflare');\n }\n // don't cache if user is logged in\n if (strpos('test ' . implode(' ', array_keys($_COOKIE)), 'wordpress_logged_in')) {\n $this->cache = false;\n $this->loggedin = true;\n $this->addMessage('Loggedin user');\n }\n // don't cache post requests\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n $this->cache = false;\n $this->addMessage('Post request');\n }\n // don't cache requests to wordpress php files\n if (preg_match('%(/wp-admin|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)%',\n $this->path)) {\n $this->cache = false;\n $this->addMessage('This is a WordPress file ');\n }\n\n // don't cache if url has a query string\n // TODO verify that this is reasonable\n if (parse_url($this->url, PHP_URL_QUERY)) {\n $this->cache = false;\n $this->addMessage('Not caching query strings');\n }\n\n return $this->cache;\n }", "function should_cache() {\n return array_key_exists('cache', $this->options) && $this->options['cache'] === TRUE;\n }", "private function checkCache()\n {\n if ($this->createFolder()) {//if folder already exists\n\n $cache_time = time() - filemtime($this->cacheFile); //check to see how long since cached\n\n if ($cache_time > 60 * $this->cacheTime) {\n return true;//cache the file again\n }\n } else {\n $this->createFolder();\n return true;\n }\n }", "private function cached()\n {\n if (isset(self::$_cached)) {\n $this->_config = self::$_cached;\n return true;\n } else {\n return false;\n }\n }", "function exists() {\n \n return !empty($this->cache);\n \n }", "public function memCached() { return true; }", "public function hasCachedData(): bool\n {\n return !empty(static::$cachedData);\n }", "private function isCached()\n\t{\n\t\t$q = 'SELECT UNIX_TIMESTAMP(lastResult) as lastUpdated FROM twitterSearch WHERE searchTerm = \"' .$this->_searchString .'\"';\n\t\t$r = mysql_query($q, CONN) or die('could not query the database for caching check');\n\t\t$arr = mysql_fetch_array($r);\n\t\t\n\t\t$now \t= time();\n\t\t$diff \t= $now - $arr[0];\n\t\t\n\t\tif ($this->_testMode) {\n\t\t\t\n\t\t\tprint \"is cached? results --------------------\";\n\t\t\tprint \"<pre>\";\n\t\t\t\tprint_r($arr);\n\t\t\tprint \"</pre><br />\";\n\t\t\t\n\t\t\tprint \"array count = \" .count($arr) .'<br />';\n\n\t\t\tprint \"is cached? q = \" .$q .\"<br>\";\n\t\t\tprint \"is cached? last modified = \" .$arr[0] .\"<br>\";\n\t\t\tprint \"is cached? now = \" .$now .\"<br>\";\n\t\t\tprint \"is cached? diff = \" .$diff .\"<br>\";\n\t\t}\n\t\t\n\t\tif (!isset($arr['lastUpdated'])) {\n\t\t\tdie('the search term has not been setup properly');\n\t\t}\n\t\t\n\t\tif($diff > $this->_cacheFileTime){\n\t\t\tif ($this->_testMode) {print \"is cached? returning false<br>\";}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif ($this->_testMode) {print \"is cached? returning true<br>\";}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t\n\t\tif ($this->_testMode) {print \"is cached? returning true<br>\";}\n\t\treturn true;\n\t}", "public function isCached()\n {\n if ($this->cache->has($this->cacheKey)) {\n return true;\n }\n\n return false;\n }", "function isCached() {\r\n if ($this->_cachingEnabled) {\r\n $isCached = $this->_templateObject->isCached($this->_viewId);\r\n }\r\n else $isCached = false;\r\n return $isCached;\r\n }", "public function can_cache() {\n return $this->valid;\n }", "private function hasCache()\n {\n if (!$this->isActive()) {\n return false;\n }\n\n return !empty($this->getCache(false));\n }", "function clear_cache()\n\t{\n\t\treturn true;\n\t}", "function pmxc_checkCacheStatus()\n\t{\n\t\tglobal $pmxCacheFunc;\n\n\t\t$result = true;\n\t\tif($this->cfg['cache'] > 0 && !empty($this->cache_trigger))\n\t\t{\n\t\t\tif(($data = $pmxCacheFunc['get']($this->cache_key, $this->cache_mode)) !== null)\n\t\t\t{\n\t\t\t\t$res = eval($this->cache_trigger);\n\t\t\t\tif(!empty($res))\n\t\t\t\t\t$pmxCacheFunc['drop']($this->cache_key, $this->cache_mode);\n\n\t\t\t\tunset($data);\n\t\t\t\t$result = ($res === null);\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "protected function isCached($file){\n $cache = $this->cacheName($file);\n return !empty($this->cache) \n && is_readable($cache) \n && ($this->no_update || filemtime($file) < filemtime($cache));\n }", "function is_cached($filename, $cachetime = false) {\n\t$cachetime = (!$cachetime ? strtotime(\"-1 day\") : $cachetime);\n\treturn (file_exists($filename) && filemtime($filename) > $cachetime);\n}", "function checkKeys()\n{\n $cache = Cache::get()->first();\n\n if (!$cache) {\n $cache = new Cache();\n refreshKeys($cache);\n }\n else { \n if (time() > $cache->timeout){\n refreshKeys($cache);\n }\n }\n}", "protected function checkCache()\n {\n if (file_exists(app()->getCachedConfigPath())) {\n Artisan::call('config:clear');\n Artisan::call('config:cache');\n return true;\n }\n return false;\n }", "public function get_css_cache_invalidated(): bool{\n\t\t\t// false = cache valid\n\n\t\t\tif($this->module_css_cache_invalidated !== NULL){\n\t\t\t\treturn $this->module_css_cache_invalidated; // status already retrieved\n\t\t\t}\n\n\t\t\tif(!isset(static::$list[$this->get_UID()]['cache'][ 'invalidated' ])){\n\t\t\t\t$this->module_css_cache_invalidated = true;\n\t\t\t\treturn true; // setting not saved yet\n\t\t\t}\n\n\t\t\tif(is_admin() && intval(static::$list[$this->get_UID()]['cache'][ 'invalidated' ]['gutenberg']->get_data()) === 1){\n\t\t\t\t$this->module_css_cache_invalidated = true;\n\t\t\t\treturn true; // cache is invalidated\n\t\t\t}\n\t\t\tif(!is_admin() && intval(static::$list[$this->get_UID()]['cache'][ 'invalidated' ]['frontend']->get_data()) === 1){\n\t\t\t\t$this->module_css_cache_invalidated = true;\n\t\t\t\treturn true; // cache is invalidated\n\t\t\t}\n\n\t\t\t$this->module_css_cache_invalidated = false;\n\t\t\treturn false; // cache is valid\n\t\t}", "function MustStoreToCache()\n {\n return $this->cacheLifetime > 0;\n }", "public function isFresh($name, $time)\n {\n $fresh = parent::isFresh($name, $time);\n if (!$fresh) return $fresh;\n\n $ctime = @filemtime(DOKU_CONF . 'local.php');\n\n return ($time > $ctime);\n }", "protected function useCache() {\n\t\tif (isset($_COOKIE['nc']) && $_COOKIE['nc'] == 1) {\n\t\t\treturn FALSE;\n\t\t}\n\t\tif (isset($_GET['nc']) && $_GET['nc'] == 1) {\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "public function is_cached($file_name){\n\t\t\n\t\t$file_name = $this->path . $file_name;\n\t\tif(file_exists($file_name) && (filemtime($file_name) + $this->cache_time >= time())) return true;\t\n\n\t\treturn false;\n\t}", "protected function isMemcachedUsed() {}", "protected function isMemcachedUsed() {}", "public static function hasDefaultCache();", "private function _checkCache()\r\n {\r\n // get a string representation of the object\r\n ob_start();\r\n var_dump(get_object_vars($this));\r\n $buffer = ob_get_clean();\r\n \r\n // build the hash for this object\r\n $hash = md5($buffer);\r\n \r\n // check if the cache file exists, if it does use it\r\n if (file_exists(\"{$this->_config['paths']['cache']}/{$hash}\")){\r\n die(file_get_contents(\"{$this->_config['paths']['cache']}/{$hash}\"));\r\n }\r\n }", "function cacheObjectExists ()\n {\n return is_file($this->cacheObjectId);\n }", "function _can_cache() {\n\t\treturn true;\n\t}", "public function check_cache() \r\n\t{\r\n\t\tif (!is_readable($this->cache_file))\r\n\t\t{\r\n\t\t\t$this->generate_cache();\r\n\t\t}\r\n\t\t$contents = file_get_contents($this->cache_file);\r\n\t\treturn $contents;\r\n\t}", "protected function isOutdated(): bool {\n $outdated = true;\n if(!$this->dry()){\n $timezone = $this->getF3()->get('getTimeZone')();\n $currentTime = new \\DateTime('now', $timezone);\n $updateTime = \\DateTime::createFromFormat(\n 'Y-m-d H:i:s',\n $this->updated,\n $timezone\n );\n $interval = $updateTime->diff($currentTime);\n if($interval->days < Universe\\BasicUniverseModel::CACHE_MAX_DAYS){\n $outdated = false;\n }\n }\n return $outdated;\n }", "function check_cache($cachefile, $cachetime)\n\t{\n\t\t$cachefile = $this->folder . $cachefile . '.html';\n\t\tif (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) \n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function isCached($key) {\n\t\tif($this->getCacheAge($key) == null) {\n\t\t\t$cacheFile = $this->getCacheFile($key);\n\t\t\tif(file_exists($cacheFile)) {\n\t\t\t\t$this->setCacheAge($key,filemtime($cacheFile));\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function isCached(string $label) : bool\n {\n $filename = $this->path . \"/\" . md5($label);\n if (file_exists($filename) && (filemtime($filename) + $this->ttl >= time())) {\n return true;\n }\n return false;\n }", "public function isExpired(): bool\n {\n if (!FS::isFile($this->resultFile)) {\n return true;\n }\n\n $fileAge = \\time() - (int)\\filemtime($this->resultFile);\n $fileAge = \\abs($fileAge);\n\n if ($fileAge >= $this->cacheTtl) {\n return true;\n }\n\n $firstLine = \\trim((string)FS::firstLine($this->resultFile));\n $expected = \\trim($this->getHeader());\n\n return $expected !== $firstLine;\n }", "public function IsCacheDifferent(){\r\n\t\tself::Debug('Determine if the cache is different from this instance');\r\n\t\t// Load the cache\r\n\t\t$temp=new PhpWsdl(null,$this->EndPoint);\r\n\t\t$temp->GetWsdlFromCache();\r\n\t\tif(is_null($temp->WSDL))\r\n\t\t\treturn true;// Not cached yet\r\n\t\t// Initialize this instance\r\n\t\t$this->DetermineConfiguration();\r\n\t\t$this->ParseSource();\r\n\t\t// Compare the cache with this instance\r\n\t\t$res=serialize(\r\n\t\t\t\tArray(\r\n\t\t\t\t\t$this->Methods,\r\n\t\t\t\t\t$this->Types\r\n\t\t\t\t)\r\n\t\t\t)!=serialize(\r\n\t\t\t\tArray(\r\n\t\t\t\t\t$temp->Methods,\r\n\t\t\t\t\t$temp->Types\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\tself::Debug('Cache is '.(($res)?'equal':'different'));\r\n\t\treturn $res;\r\n\t}", "private function _isCached($key)\n {\n return Cache::has($key);\n }", "function _cacheFileExpired($sFile) {\n // Use setting to check age of files.\n $iCacheDays = $this->cache_days + 0;\n\n // dont update image once it is cached\n if ($iCacheDays == 0 && file_exists($sFile)) {\n return false;\n // check age of file and if file exists return false, otherwise recache the file\n } else {\n $iCutoff = time() - (3600 * 24 * $iCacheDays);\n return (!file_exists($sFile) || filemtime($sFile) <= $iCutoff);\n }\n }", "function isValidCache( $maxAge=24 ) {\n\t\tif ( !$this->postID )\n\t\t\treturn false;\n\t\t\t\n\t\tif ( $this->exists() && ( $this->lastUpdate() < $maxAge ) )\n\t\t\treturn true;\n\t\t\t\n\t\treturn false; \n\t}", "private function isCacheOld($cacheFile) {\n\t\t// time now - cache lifetime\n\t\t$goodTime = time() - ($this->expiry * 60);\n\t\t$cacheAge = filemtime($cacheFile);\n\t\t// return TRUE if file age 'within' good time\n\t\treturn ($goodTime < $cacheAge) ? FALSE : TRUE;\n\t}", "public function isCachedDataAvailable(){\n\t\treturn $this->_dataAvailable;\n\t}", "function mysteam_check_cache()\n{\t\n\tglobal $mybb, $cache;\n\t\n\t// Don't touch the cache if disabled, just return the results from Steam's network.\n\tif (!$mybb->settings['mysteam_cache'])\n\t{\n\t\t$steam = mysteam_build_cache();\n\t\t\n\t\tif ($steam['users'])\n\t\t{\n\t\t\treturn $steam;\n\t\t}\n\t\treturn false;\n\t}\n\t\n\t$steam = $cache->read('mysteam');\n\t\n\t// Convert the cache lifespan setting into seconds.\n\t$cache_lifespan = 60 * (int) $mybb->settings['mysteam_cache'];\n\t\n\t// If the cache is still current enough, just return the cached info.\n\tif (TIME_NOW - (int) $steam['time'] < $cache_lifespan)\n\t{\t\n\t\treturn $steam;\n\t}\t\n\t\n\t// If last attempt to contact Steam failed, check if it has been over 3 minutes since then. If not, return false (i.e. do not attempt another contact).\n\tif (TIME_NOW - (int) $steam['lastattempt'] < 180)\n\t{\n\t\treturn false;\n\t}\n\t\t\n\t$steam_update = mysteam_build_cache();\n\t\n\t// If response generated, update the cache.\n\tif ($steam_update['users'])\n\t{\n\t\t$steam_update['version'] = $steam['version'];\n\t\t$cache->update('mysteam', $steam_update);\n\t\treturn $steam_update;\n\t}\n\t// If not, cache time of last attempt to contact Steam, so it can be checked later.\n\telse\n\t{\n\t\t$steam_update['lastattempt'] = TIME_NOW;\n\t\t$steam_update['version'] = $steam['version'];\n\t\t$cache->update('mysteam', $steam_update);\n\t\treturn false;\n\t}\n}", "public function has()\n\t{\n\t\t$name = $this->name();\n\n\t\tif(($has = Cache::has($name)) && $this->forget)\n\t\t{\n\t\t\tCache::forget($name);\n\n\t\t\t// We don't want to return the cached assets because we cleared\n\t\t\t// the cache and we want a new fresh copy of the assets returned.\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $has;\n\t}", "public function isCached($template)\r\n {\r\n return $this->_smarty->is_cached($template);\r\n }", "public function configurationIsCached();", "public function checkCache()\n {\n $this->assertWritableDir($this->config->getPath('cache'));\n }", "protected function _loadCache()\n {\n return false;\n }", "protected function isExpired($init = false)\n {\n return MVC\\Page::$current->getCache()->isExpired($this->getCacheID($init));\n }", "public function valid ()\n {\n return isset($this->offset) && isset($this->cache[ $this->offset ]);\n }", "public function getFresh()\n {\n return $this->get(self::_FRESH);\n }", "public function getFresh()\n {\n return $this->fresh;\n }", "public function isFresh()\n {\n return ($this->level == -2);\n }", "public function isCachable() {\n\n // The error page should not be cached\n if($this->isErrorPage()) {\n return false;\n }\n\n $lang = ($this->site->defaultLanguage())? $this->site->defaultLanguage()->code : null;\n foreach($this->kirby->option('cache.ignore') as $pattern) {\n if(fnmatch($pattern, $this->uri($lang)) === true) {\n return false;\n }\n }\n\n return true;\n\n }", "public function isStaticCacheble() {}", "public function hasCacheStore(): bool;", "private function check_cache($hash)\n {\n $cache_file = Config::$cache_path.\"/\".$hash;\n \n if (file_exists($cache_file))\n {\n $handle = fopen($cache_file, 'r');\n $cache_time = fgets($handle);\n \n $cache_age = (time() - $cache_time) / 60;\n \n if ($cache_age > Config::$cache_time)\n {\n fclose($handle);\n unlink($cache_file);\n \n return false;\n }\n \n return true;\n }\n else return false;\n }", "public function hasCache()\n {\n return (null !== $this->getCacheAdapter());\n }", "public function isCached($key)\n {\n if (!is_readable($this->path . '/' . $key)) {\n return false;\n }\n if(!is_null($this->duration)) {\n $now = time();\n $expires = $this->duration * 60 * 60;\n $fileTime = filemtime($this->path . '/' . $key);\n if (($now - $expires) < $fileTime) {\n return false;\n }\n }\n return true;\n }", "public function isProvidersCached(): bool;", "public function isCacheClearEnabled(): bool;", "public function allow_cache() {\n\t\treturn $this->query_str == $this->query_escaped;\n\t}", "function is_cached($template, $cache_id=null)\n {\n // insert the condition to check the cache here!\n // if (functioncheckdb($this -> module)) {\n // return parent :: clear_cache($template, $this -> cache_id);\n //}\n\t $this->_setup_template($template);\n\n\t\tif ($cache_id) {\n\t\t\t$cache_id = $this->module . '|' . $cache_id;\n\t\t} else {\n\t\t\t$cache_id = $this->module . '|' . $this->cache_id;\n\t\t}\n\n return parent::is_cached($template, $cache_id);\n }", "public function is_use_cache()\r\n {\r\n return $this->cache;\r\n }", "private function checkCache(\\Request\\Module $request)\n\t{\n\t\tif ($this->cache === true && isset($this->expires)) {\n\t\t\t$registry = $this->cacheRegistry();\n\t\t\t$cached = $registry->get(\"response\", \"cache\", $request->params());\n\t\t\t\n\t\t\tif ($cached && !$cached->isExpired()) {\n\t\t\t\t$this->_send($cached->contents(), $request);\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}", "private function checkExpirated() {\n\n }", "public function gc()\n\t{\n\t\t$prefix = $this->options['hash'] . '-cache-';\n\n\t\tforeach ($this->data as $key => $value)\n\t\t{\n\t\t\tif (substr($key, 0, strlen($prefix)) == $prefix)\n\t\t\t{\n\t\t\t\t$value = $this->data[$key];\n\n\t\t\t\tif ($this->isDataExpired($value))\n\t\t\t\t{\n\t\t\t\t\tunset($this->data[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function isCacheEnabled(){\n return(true);\n }" ]
[ "0.8052096", "0.7981903", "0.7881228", "0.7818775", "0.77642167", "0.76209116", "0.76011324", "0.75265664", "0.74505085", "0.74399865", "0.74044603", "0.7381427", "0.73498434", "0.73270774", "0.7324629", "0.7304687", "0.728189", "0.72814465", "0.72695947", "0.7261753", "0.72562647", "0.723609", "0.713404", "0.70969516", "0.70926166", "0.7057314", "0.7035594", "0.70261353", "0.7023451", "0.69917953", "0.69806445", "0.69551176", "0.6947246", "0.69118166", "0.68944246", "0.6891243", "0.6875", "0.68735474", "0.6862158", "0.6859209", "0.6855396", "0.68453693", "0.683575", "0.6828598", "0.68073696", "0.6800157", "0.67749137", "0.67686445", "0.6749149", "0.6726365", "0.66885024", "0.66736877", "0.6672282", "0.6661325", "0.6659321", "0.6658406", "0.6653158", "0.6653158", "0.66297936", "0.66275096", "0.66270494", "0.662593", "0.66231143", "0.65977776", "0.6590923", "0.65894175", "0.65755284", "0.6574755", "0.6571205", "0.65679944", "0.65622765", "0.6560381", "0.6551854", "0.6545212", "0.6535411", "0.65349865", "0.6512878", "0.6512643", "0.650212", "0.6489106", "0.64855605", "0.6458529", "0.64575624", "0.64545625", "0.64523304", "0.64514965", "0.6438861", "0.6433683", "0.64319736", "0.6427976", "0.64216435", "0.64137816", "0.64137495", "0.6412675", "0.6409359", "0.64079934", "0.6400747", "0.63799435", "0.63799226", "0.63785654" ]
0.66599697
54
Delete something from the cache
public function delete($name) { $hash = md5($name); $file = sprintf("{$this->cache_dir}/{$hash}"); if ( file_exists($file) ) { unlink($file); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cache_delete()\n {\n }", "abstract public function delete_cached( $key );", "public function delInCache($key);", "public function delete($cache_name);", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "public function delete()\n {\n $this->invalidateCache();\n parent::delete();\n }", "function delete($key) {\n\t\tunset($this->_cache[$key]);\n\t}", "public function delete_cache()\r\n {\r\n $this->clear_file_cache();\r\n }", "public function deleteCache()\n\t{\n\t\treturn CacheBot::delete($this->getCacheKey());\n\t}", "static function delete()\n\t{\n\t\t\n\t\tif (file_exists(Cache::$path))\n\t\t\tunlink(Cache::$path);\n\t\t\t\t\n\t}", "abstract protected function clearCache();", "function object_cache_delete($id, $flag = '') {\n\tglobal $ts_object_cache;\n\n\treturn $ts_object_cache->delete($id, $flag);\n}", "public function delete(string $key): CacheInterface;", "public function clear_cache(): void;", "function wp_cache_delete($key, $group = '', $time = 0)\n{\n global $wp_object_cache;\n\n return $wp_object_cache->delete($key, $group, $time);\n}", "public static function delete($key)\n\t\t{\n\t\t\tself::getCache()->delete($key);\n\t\t}", "public static function removeCache() {\n\t}", "function wp_cache_delete($key, $group = '')\n{\n global $wp_object_cache;\n\n return $wp_object_cache->delete($key, $group);\n}", "public function clearCache(): void;", "public function clearCache() {}", "public function clearCache() {}", "public function deleteCache($url){\n unlink($this->cacheFilename(($url)));\n }", "function wp_cache_delete($key, $group = '')\n {\n }", "public function removeFromCache()\n {\n Cache::tags('file')->forget(strtolower($this->alias));\n }", "function delete ($key) {\n return $this->memcached->delete($key);\n }", "public function forgetCache();", "public function delete($key)\n\t{\n\t\treturn $this->cacheLayer->delete($key);\n\t}", "public function delete()\n {\n $this->_clearCache();\n\n return parent::delete();\n }", "function delete($key) {\n\t\t\t$file = CACHE_DIR.md5($key).\".cache\";\n\t\t\tif(@file_exists($file)) {\n\t\t\t\t@unlink($file);\n\t\t\t\t$this->db->delete(\"fileCache\",\"WHERE key='\".md5($key).\"'\");\n\t\t\t\tdebugLog(\"Cache file deleted\",\"Cache file wurde erfolgreich gel&ouml;scht - KEY: '\".$key.\"'\",$file);\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "function wp_cache_delete($id, $group = '')\r\n\t{\r\n\t\tglobal $wp_object_cache;\r\n\t\tif (empty($group)) { $group = 'default'; }\r\n\t\treturn $wp_object_cache->delete($id, $group);\r\n\t}", "function cleanCache(){\n\t\t$res = mysql_query(\"delete from `\".addslashes($this->tableName).\"` where `Expires` < NOW()\", $this->app->db());\n\t}", "function unlockCacheObject ()\n {\n return unlink($this->cacheObjectId.'.lock');\n }", "public function clearCache()\n {\n }", "private function deleteObject($name){\n $this->cache->delete($name);\n }", "public function delete($key) {\n\t\treturn $this->_Memcached->delete($key);\n\t}", "function delete($key, $time=0) {\n return $this->memcached->delete($key, $time);\n }", "public function delete()\n {\n $sql = \"DELETE FROM \" . TB_USAGE . \" WHERE mix_id = {$this->db->sqltext($this->mix_id)}\";\n $this->db->exec($sql);\n\n //\tremove everything from cache\n $cache = VOCApp::getInstance()->getCache();\n if ($cache) {\n $cache->flush();\n }\n }", "public function delete(){\r\n\t\t$mysqli = \\Database::Instance()->get();\r\n\r\n\t\t$stmt = $mysqli->prepare(\"DELETE FROM `hotspots` WHERE `id` = ?\");\r\n\t\t$stmt->bind_param(\"i\",$this->id);\r\n\t\t$stmt->execute();\r\n\t\t$stmt->close();\r\n\r\n\t\t\\CacheHandler::deleteFromCache(\"hotspot_\" . $this->id);\r\n\t}", "public function clearCache(){\n if(file_exists($this->file)){\n @unlink($this->file);\n }\n }", "protected function _delete($var)\n\t{\n\t\treturn $this->memcached->delete($this->key_prefix . $var);\n\t}", "public function delete(string $key): void\n {\n $app = App::get();\n $keyMD5 = md5($key);\n $app->data->delete('.temp/cache/' . substr($keyMD5, 0, 3) . '/' . substr($keyMD5, 3) . '.2');\n }", "function _deleteCache() {\n require_once(\"Cache/Output.php\");\n $cache = new Cache_Output($GLOBALS[\"BX_config\"][\"popoon\"][\"cacheContainer\"], $GLOBALS[\"BX_config\"][\"popoon\"][\"cacheParams\"] );\n \n // for the time being, just flush everything...\n @$cache->flush('outputcache');\n $cache->flush('');\n }", "public function testRemoveCachedObject() {\n\t\t// Now remove the file\n\t\t$this->assertTrue(Core\\Cache::remove('foo'));\n\n\t\t// The file exists?\n\t\t$this->assertFalse(Core\\Cache::has('foo'));\n\t}", "public function runTimeCacheDelete($key)\n\t{\n\t\tunset($this->runTimeCache[$key]);\n\t}", "protected function _clearDataCache() {}", "public static function cache_unset($key) {\n\t\t\t$klass = self::getInstance();\n\t\t\tunset($klass->cache[crc32($key)]);\n\t\t}", "public function delete_from_cache($id,$request,$filename) {\n if (!empty($id))\n $find[\"id\"]=(int)$id;\n if (!empty($request))\n $find[\"request\"]=$request;\n if (!empty($filename))\n $find[\"storage\"]=$filename;\n $video=$this->db->get_row(\"videos\",$find);\n unlink($video[\"storage\"]);\n $this->db->delete_row(\"videos\",array(\"id\"=>$video[\"id\"]));\n }", "public static function delCached($cacheKey)\n {\n if (empty(self::$cacheStorage)) {\n return;\n }\n // delete the value from cache\n self::$cacheStorage->delCached($cacheKey);\n }", "public function deleteCache($key)\n {\n return $this->memcache->delete($key);\n }", "public function deleteTrash()\n {\n $currentTime = time();\n foreach (self::$cacheData as $key => $item) {\n if ($currentTime >= ($item['time'] + $item['ttl'])) {\n unset(self::$cacheData[$key]);\n }\n }\n }", "private function destroyCache()\r\n\t{\r\n\t\t$memcache = new \\Memcached();\r\n\t\t$memcache->addServer('localhost', 11211);\r\n\t\t$key = md5(catalogProductList::MEMCACHED_FETCH_ALL);\r\n\t\t$cache_data = $memcache->delete($key);\r\n\t}", "public function deleted(): void\n {\n Cache::forget('users');\n }", "private function _invalidateCache($term) {\n\t\t// We could set its expiration to sometime in the past, but we'll just remove it outright.\n\t\t$this->db->delete('Cache', array('Term' => $term));\n\t}", "public function testRemoveNonExistentObjectFromCache() {\n\t\t$this->assertFalse(Core\\Cache::remove('foobar'));\n\t}", "public function delete()\n {\n if($this->enabled === true){\n if (apc_delete($this->key) === true){\n return true; \n }\n else{\n Logger::log(\"Failed to invalidate cache for key: \" . $this->key);\n return false;\n }\n }\n \n return false;\n }", "public function dettachCache()\n {\n if (!is_null($this->_cache)) {\n unset($this->_cache);\n }\n }", "function invalidate_cache($key) {\n\tglobal $SYSTEM_SHOW_CACHE_METRICS, $TAG;\n\n\t$key = \"$TAG:$key\";\n\n\tif ( function_exists('apc_delete') ) {\n\t\tapc_delete($key);\n\t} else {\n\t\t$redis = conn_redis();\n\t\t$redis->del($key);\n\t}\n}", "function remove($key) {\n return $this->cacheObj->remove($key);\n }", "private function _cacheCleanup()\n\t {\n\t\t$this->_db->exec(\n\t\t \"DELETE FROM `HTTPcache` WHERE \" .\n\t\t \"`datetime` < DATE_SUB(NOW(), INTERVAL \" . $this->_expiry . \" SECOND) OR `expiry` < NOW()\"\n\t\t);\n\t }", "public function forgetCached() {\n lRedis::del(Helpers::cacheKey($this) . \":properties\");\n }", "public static function cacheDelete($userid)\n\t{\n\t\t$myCacher = new Cacher(self::cacheBuildKeystring($userid));\n\t\treturn $myCacher->clear();\n\t}", "public function cacheClear($args, $assoc_args) {\n if (isset($assoc_args['cache'])) {\n $this->cache->remove($assoc_args['cache']);\n } else {\n $this->cache->flush();\n }\n }", "public function clear()\n {\n if (File::rm($this->cacheFile)) {\n echo 'OK';\n } else {\n echo 'ERROR';\n }\n }", "public function delete($key) {\n\n\t\t\t// Retrieve cache\n\t\t\t$filename = $this->_getFileName();\n\t\t\t$cachedData = $this->_loadCache($filename);\n\n\t\t\t// Check for key and if present delete\n\t\t\tif (is_array($cachedData)) {\n\t\t\t\tif (isset($cachedData[$key])) {\n\t\t\t\t\tunset($cachedData[$key]);\n\t\t\t\t\t$cachedData = json_encode($cachedData);\n\t\t\t\t\tif (true !== file_put_contents($filename, $cachedData)) {\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\tthrow new \\Exception(\"Error: {$key} not found in cache\", 500);\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public function delCache($key) {\n\t\t$cacheFile = $this->getCacheFile($key);\n\t\tif(file_exists($cacheFile)) {\n\t\t\t@unlink($cacheFile);\n\t\t}\n\t}", "public function clear_cache() {\n\t\tif (file_exists($this->cache_path)) {\n\t\t\tunlink($this->cache_path);\n\t\t}\n\t}", "public function removeCache() {\r\n $files = $this->caches;\r\n while (count($files) > 0) {\r\n @unlink(array_shift($files));\r\n }\r\n\r\n }", "function deleteCacheObject ()\n {\n if (!$this->cacheObjectLocked() && is_file($this->cacheObjectId)) {\n if (unlink($this->cacheObjectId)) {\n $return = TRUE;\n } else {\n $return = FALSE;\n }\n } else {\n $return = TRUE;\n }\n\n return $return;\n }", "public function del($key);", "public function _cacheClear() {\n\t\t$content = null;\n\t\tif ( ZC_CACHE == 'apc' ) {\n\t\t\t$info = apc_cache_info( 'user' );\n\t\t\tforeach ( $info[ 'cache_list' ] as $item ) {\n\t\t\t\tif ( preg_match( '/^\\Q'. ZC_CACHE_PREFIX. '\\E/', $item[ 'info' ] ) )\n\t\t\t\t\tapc_delete( $item[ 'info' ] );\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif ( ( $dh = opendir( ZC_CACHE_DIR ) ) !== false ) {\n\t\t\t\twhile( ( $file = readdir( $dh ) ) !== false ) {\n\t\t\t\t\tif ( ! preg_match( '/\\.cache$/', $file ) || is_dir( $file ) ) continue;\n\t\t\t\t\tunlink( ZC_CACHE_DIR. '/'. $file );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function delete($key)\n {\n if (false === $this->has($key)) {\n return;\n }\n\n unlink($this->getCacheFile($key));\n }", "private function clearCache()\n {\n if(((int)rand()) %3)\n {\n $sql = \" delete from \".$this->getCacheTable().\" where to_days(created) != to_days(now()) \";\n $this->log($sql);\n $this->getWriteResource()->query($sql);\n }\n }", "function remove($key) {\n $memObj = self::getMemcacheObj();\n return $memObj->delete($key);\n }", "function remove($key) {\n $memObj = self::getMemcacheObj();\n return $memObj->delete($key);\n }", "function tiny_cache_delete_the_content( $post_id ) {\n\n wp_cache_delete( $post_id, 'the_content' );\n}", "public function clearCacheData(){\n $cacheKey = $this->getCacheKey();\n $this->clearCache($cacheKey);\n }", "public function stopCache() {}", "static public function delete($subject, $key) {\n\t\t$cache = self::singleton();\n\t\t$key = self::generateKey($subject, $key);\n\t\tunset(self::$local[$key]);\n\t\t$cache->delete($key);\n\t\tY_Log::debug('cache delete %s', $key);\n\t}", "public function forget(String $key) : Void\n\t{\n\t\tif (Cache::has($key)) { \n\t\t\tCache::forget($key);\n\t\t}\n\t}", "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 static function forget($key){\n return \\Illuminate\\Cache\\Repository::forget($key);\n }", "public function removeCache()\n {\n $this->getHttpClientBuilder()->removeCache();\n }", "private function clearCache()\n {\n $this->cache->tags('item')->flush();\n }", "public function flushCache()\n {\n if ($this->cache) {\n $this->cache->forget($this->getCacheKey());\n }\n }", "public function delete($key);", "public function delete($key);", "public function delete($key);" ]
[ "0.8422115", "0.7981195", "0.7854862", "0.78101826", "0.7673077", "0.7673077", "0.7645232", "0.7507865", "0.74698573", "0.7381865", "0.7315594", "0.731299", "0.72576636", "0.723635", "0.7203952", "0.72031456", "0.718321", "0.7173858", "0.7169269", "0.71391785", "0.71391785", "0.71287864", "0.7084237", "0.7069667", "0.7065465", "0.70380336", "0.7036537", "0.7023025", "0.694348", "0.68831414", "0.68779224", "0.6867256", "0.68606776", "0.6859566", "0.6822957", "0.68206406", "0.6808194", "0.67693", "0.67692643", "0.6761923", "0.6745153", "0.67447376", "0.673395", "0.67289025", "0.67136055", "0.66952", "0.6692077", "0.6691987", "0.6683044", "0.668056", "0.6673245", "0.66680455", "0.6666739", "0.6660352", "0.6643669", "0.66301805", "0.66013765", "0.65999514", "0.6591173", "0.6586908", "0.6580515", "0.6572899", "0.65677077", "0.65667945", "0.6561427", "0.6554025", "0.655369", "0.6522834", "0.6514757", "0.65147084", "0.64941", "0.6492672", "0.6475137", "0.6475137", "0.64747673", "0.64707136", "0.6467224", "0.64563406", "0.64513886", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.64476883", "0.6440709", "0.643349", "0.6408327", "0.6404375", "0.6397193", "0.6397193", "0.6397193" ]
0.0
-1
Get data from cache
public function retrieve($name, $default = false) { $ret = $default; $hash = md5($name); $file = sprintf("{$this->cache_dir}/{$hash}"); if ( $this->isCached($name) ) { $ret = file_get_contents($file); $decoded = @call_user_func($this->unserializer, $ret); $ret = $decoded ? $decoded : $ret; } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFromCache() {}", "public function cacheGet() {\n }", "public function getCache();", "abstract protected function cacheData();", "public function get($cache_name);", "protected function getFromCache()\n {\n return $this->cache->get($this->getCacheKey());\n }", "public function readCache()\n {\n return $this->readFile()->unpackData();\n }", "public function getData()\n\t{\n\t\t$cacheManager = Application::getInstance()->getManagedCache();\n\t\t$result = NULL;\n\t\t\n\t\tif ($cacheManager->read(self::CACHE_TTL, $this->cacheId))\n\t\t{\n\t\t\t$result = $cacheManager->get($this->cacheId);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $this->getDataFromVk();\n\t\t\t\n\t\t\t$cacheManager->set($this->cacheId, $result);\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public static function getCache() {}", "private function get_cache() {\n exit(file_get_contents($this->cache_file));\n }", "protected function fetch_data(&$cache)\n {\n }", "private function cacheFetch() {\n //$data = cache_get($this->id, 'cache');;\n $data = NULL;\n if ($data) {\n foreach ($this->properties as $prop) {\n if (isset($data->data[$prop]) && !empty($data->data[$prop])) {\n $this->$prop = $data->data[$prop];\n }\n }\n }\n }", "public function getObjFromCache($key);", "protected function readFromCache()\r\n {\r\n $result = null;\r\n if(extension_loaded('apc') && ini_get('apc.enabled')) {\r\n $result = apc_fetch($this->getCacheKey());\r\n }\r\n return $result;\r\n }", "protected function loadFromCache() {}", "function GetFromCache()\n {\n return File::GetContents($this->file);\n }", "function get($key) {\n return $this->cacheObj->get($key);\n }", "public function getCache($url, $data = []){\n \t$this->_setData($data);\n \t$this->cacheredis \t= $this->redis->hGet(\"api/$url\",$this->dataredis );\n \t#$this->common->debug(\"api/$url\",FALSE);\n \t#$this->common->debug($this->dataredis);\n \tif( $this->cacheredis){\n \t\treturn $this->cacheredis;\n \t}else{\n \t\treturn FALSE;\n \t}\n }", "public function get()\n {\n return Cache::get($this->cacheKey);\n }", "protected function getContentFromCacheFile() {}", "private function inCache()\n\t{\n\t\t$content = $this->_cache->retrieve($this->redditid); //faster if we have it in cache already\n\t\treturn $content;\n\t}", "abstract public function getCache( $cacheID = '', $unserialize = true );", "function get($key) {\n\t\t\tglobal $__cachemem;\n\t\t\t$file = CACHE_DIR.md5($key).\".cache\";\n\t\t\tif($__cachemem[$key] != \"\") {\n\t\t\t\treturn $__cachemem[$key];\n\t\t\t}\n\t\t\tif(@file_exists($file)) {\n\t\t\t\t$dump = file_get_contents($file);\n\t\t\t\tdebugLog(\"Cache file gelesen\", \"Cache File wurde erfolgreich gelesen - KEY: '\".$key.\"'\",$file);\n\t\t\t\t$res = @unserialize($dump);\n\t\t\t\t$__cachemem[$key] = $res;\n\t\t\t\treturn $res;\n\t\t\t} else {\n\t\t\t\t//debugLog(\"Cache File fehler\",\"Cache file konnte nicht gefunden werden, expired?\",$file,UNKWN,DBUG_WARNING);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function getCache($key)\n {\n return $this->memcache->get($key);\n }", "public function getCache()\r\n {\r\n \treturn $this->_cache;\r\n }", "public function getCache()\n\t{\n\t\treturn CacheBot::get($this->getCacheKey(), self::$objectCacheLife);\n\t}", "function get ($key) {\n return $this->memcached->get($key);\n }", "public function cache() {\n\t\treturn $this->_cache;\n\t}", "protected function getCache($key = null) {\n if (!$key) {\n $key = \"data\";\n }\n $fullKey = \"cache-\".$this->getID().\"-{$key}\";\n\n $found = false;\n $cached = \\apcu_fetch($fullKey, $found);\n if ($found) {\n return $cached;\n }\n return false;\n }", "function fetch_from_cache($key){\n\tglobal $SYSTEM_SHOW_CACHE_METRICS, $TAG;\n\n\t$key = \"$TAG:$key\";\n\n\t$timer_bgn = microtime(true);\n\n\t$val = null;\n\tif ( function_exists('apc_fetch') ) {\n\t\t$val = apc_fetch($key);\n\t\tif ( $val ) {\n\t\t\t$timer_end = microtime(true);\n\n\t\t\tif ($SYSTEM_SHOW_CACHE_METRICS)\n\t\t\t\telog(\"time took fetching from APC-cache for key: $key: \" . ($timer_end - $timer_bgn));\n\t\t}\n\t} else {\n\t\t$redis = conn_redis();\n\t\t$val = $redis->get($key);\n\n\t\tif ( $val ) {\n\t\t\t$timer_end = microtime(true);\n\n\t\t\tif ($SYSTEM_SHOW_CACHE_METRICS)\n\t\t\t\telog(\"time took fetching from REDIS-cache for key: $key: \" . ($timer_end - $timer_bgn));\n\t\t\t$val = @json_decode($val, true);\n\t\t}\n\t}\n\n\treturn $val;\n}", "private function readFromCache()\n\t{\n\t\t$q = 'SELECT searchResults FROM twitterSearch WHERE searchTerm = \"' .$this->_searchString .'\"';\n\t\t$r = mysql_query($q, CONN) or die('could not fetch the cached search results');\n\t\t$arr = mysql_fetch_array($r);\n\t\t$searchResults = $arr['searchResults'];\n\t\t\n\t\tif ($this->_testMode) { echo \"fetching the cached<br />\"; }\n\t\t\n\t\treturn $searchResults;\n\t\t//var_dump($fData);\n\t}", "public static function getCache() {\n\n if (Config::get('app.cache') != 0 && !Auth::check()) { //\n $page = (Paginator::getCurrentPage() > 1 ? Paginator::getCurrentPage() : '');\n $key = 'route-' . Str::slug(Request::fullurl()) . $page;\n\n if (Cache::has($key)) {\n die(Cache::get($key));\n }\n }\n }", "static public function getCache(){\n return static::$cache;\n }", "function getCache() {\n\t\t// The following line is only for classloading purposes\n\t\t$categoryEntryDao =& $this->getEntryDAO();\n\t\t$journalDao =& DAORegistry::getDAO('JournalDAO');\n\n\t\t// Load and return the cache, building it if necessary.\n\t\t$filename = $this->getCacheFilename();\n\t\tif (!file_exists($filename)) $this->rebuildCache();\n\t\t$contents = file_get_contents($filename);\n\t\tif ($contents) return unserialize($contents);\n\t\treturn null;\n\t}", "function _cache_get ($cache_name = \"\") {\n\t\tif (empty($cache_name)) {\n\t\t\treturn false;\n\t\t}\n\t\t$cache_file_path = $this->_prepare_cache_path($cache_name);\n\t\treturn $this->_get_cache_file($cache_file_path);\n\t}", "public function get($key) {\n $this->logger->debug('Getting cache data for key [' . $key . ']');\n $filePath = $this->getFilePath($key);\n if (!file_exists($filePath)) {\n $this->logger->info('No cache file found for the key [' . $key . '], return false');\n return false;\n }\n $this->logger->info('The cache file [' . $filePath . '] for the key [' . $key . '] exists, check if the cache data is valid');\n $data = $this->getCacheFileContent($filePath);\n if ($data === false) {\n $this->logger->error('The cache data for the key [' . $key . '] is not valid, return false');\n // If unserializing somehow didn't work out, we'll delete the file\n unlink($filePath);\n return false;\n }\n if (time() > $data['expire']) {\n $this->logger->info('The cache data for the key [' . $key . '] already expired delete the cache file [' . $filePath . ']');\n // Unlinking when the file was expired\n unlink($filePath);\n return false;\n } \n $this->logger->info('The cache not yet expire, now return the cache data '\n . 'for key [' . $key . '], the cache will expire ' \n . 'at [' . date('Y-m-d H:i:s', $data['expire']) . ']');\n return $data['data'];\n }", "public function getCache() {\n\t\t$this->sync();\n\t\treturn $this->cache;\n\t}", "function cache_get($cid, $table = 'cache') {\n global $trampoline_cache;\n\n //Use a simple variable based cache.\n //Cache will automatically expire after request completion\n if (is_array($trampoline_cache) && array_key_exists($table . '_' . $cid, $trampoline_cache) && $trampoline_cache[$table.'_'.$cid]) {\n return array('data' => $trampoline_cache[$table.'_'.$cid]);\n } else {\n return FALSE;\n }\n}", "function loadCacheObject ()\n {\n if (!$this->cacheObjectLocked()) {\n $return = $this->cacheObjectContents($this->cacheObjectId);\n } else {\n $return = $this->loadLockedObject();\n }\n\n return $return;\n }", "protected function extractDataFromCache()\n\t{\n\t\treturn false;\n\t}", "public function getCache()\n\t{\n\t\treturn ($this->_cache);\n\t}", "public function load($key)\n\t{\n\n\t\t$this->cached++;\n\t\t$data = $this->_cache->get($key);\n\t\treturn $data;\n\n\t}", "function getCache() {\n return $this->cache;\n }", "protected function obtainCacheDependentData()\n\t{\n\t}", "public function getValFromCache($key);", "public function cache()\n {\n return $this->cache;\n }", "private static function getFromCache()\n\t{\n\t\t$return = null;\n\n\t\t$aeDebug = \\MarkNotes\\Debug::getInstance();\n\n\n\t\treturn $arr;\n\t}", "function getCache() {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->get('cache', false);\n }", "private function _get_cache($key){\n if(is_file(_ENVATO_TMP_DIR.'cache-'.basename($key))){\n return @unserialize(file_get_contents(_ENVATO_TMP_DIR.'cache-'.basename($key)));\n }\n return false;\n }", "private function getCacheData()\n {\n /**@var $cache Zend_Cache_Core */\n $cache = Shopware()->Cache();\n $data = array(\n 'metaData' => array(),\n 'options' => array(\n 'percentage' => $cache->getFillingPercentage()\n ),\n );\n $options = array(\n 'write_control',\n 'caching',\n 'cache_id_prefix',\n 'automatic_serialization',\n 'automatic_cleaning_factor',\n 'lifetime',\n 'logging',\n 'logger',\n 'ignore_user_abort'\n );\n foreach ($options as $option) {\n $data['options'][$option] = $cache->getOption($option);\n }\n\n foreach ($cache->getIds() as $id) {\n $metaData = $cache->getMetadatas($id);\n $createdAt = date('Y-m-d H:i:s', $metaData['mtime']);\n $validTo = date('Y-m-d H:i:s', $metaData['expire']);\n\n $from = new \\DateTime($createdAt);\n $diff = $from->diff(new \\DateTime($validTo));\n $minutes = $diff->days * 24 * 60;\n $minutes += $diff->h * 60;\n $minutes += $diff->i;\n\n $data['metaData'][$id] = array(\n 'Tags' => $metaData['tags'],\n 'Created at' => $createdAt,\n 'Valid to' => $validTo,\n 'Lifetime' => $minutes . ' minutes'\n );\n }\n\n return $data;\n }", "public function getData( $key )\r\n {\r\n\t\tif(isset($this->_dataCache[$key])){\r\n \treturn $this->dataCache[$key];\r\n\t\t}\r\n\t\treturn NULL;\r\n }", "public function getCache() {\n\t\treturn $this->get('Cundd\\\\Rest\\\\Cache\\\\Cache');\n\t}", "function get($key) {\n return $this->memcached->get($key);\n }", "protected function get_cache() {\n\t\n // uncomment next line to flush previous cache\n\t //delete_transient($this->get_cache_id()); \n\t\n \treturn get_transient( $this->get_cache_id() ); \t \n\t}", "public function getCache()\r\n\t{\r\n\t\treturn $this->m_cache;\r\n\t}", "public function getData() {\n $cache_key = $this->getCacheKey();\n $cache_object = $this->cache->get($cache_key);\n\n if (is_object($cache_object)) {\n $data = $cache_object->data;\n }\n else {\n $data = $this->fetchData();\n $this->cache->set($cache_key, $data, $this->getCacheExpiry());\n }\n\n return json_decode($data, TRUE);\n }", "public function cache() {\r\n\t\t$key = $this->cacher.'.' . $this->hash();\r\n\t\tif (($content = pzk_store($key)) === NULL) {\r\n\t\t\t$content = $this->getContent();\r\n\t\t\tpzk_store($key, $content);\r\n\t\t}\r\n\t\techo $content;\r\n\t}", "public function getCache()\n\t{\n\t\treturn $this->cache;\n\t}", "public function cacheRead( $name ) {\n\t\tif ( ZC_CACHE == 'none' || $this->isAdmin() ) return null; // admin -> no cache\n\t\t\n\t\t$content = null;\n\t\t$name = $this->_cacheName( $name );\n\t\tif ( ZC_CACHE == 'apc' ) {\n\t\t\t$content = apc_fetch( ZC_CACHE_PREFIX. $name, $success );\n\t\t\tif ( ! $success ) $content = null;\n\t\t}\n\t\telse {\n\t\t\t$file = ZC_CACHE_DIR . '/'. $name. '.cache';\n\t\t\tif ( file_exists( $file ) )\n\t\t\t\t$content = unserialize( file_get_contents( $file ) );\n\t\t}\n\t\treturn $content;\n\t}", "private function getCachedFeed()\n {\n if (file_exists($this->getCache())) {\n $cache = json_decode(file_get_contents($this->getCache()), true);\n }\n\n if (isset($cache) && count($cache) >= $this->getCount()) {\n if (count($cache) > $this->getCount()) {\n return array_slice($cache, 0, $this->getCount());\n } else {\n return $cache;\n }\n } else {\n return $this->makeFeed();\n }\n }", "function cache_get( $key ) {\n\t\t\n\t\tif ( !extension_loaded('apc') || (ini_get('apc.enabled') != 1) ) {\n\t\t\tif ( isset( $this->cache[ $key ] ) ) {\n\t\t\t\treturn $this->cache[ $key ];\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn apc_fetch( $key );\n\t\t}\n\n\t\treturn false;\n\n\t}", "function get($key) {\n $memObj = self::getMemcacheObj();\n return $memObj->get($key);\n }", "function get($key) {\n $memObj = self::getMemcacheObj();\n return $memObj->get($key);\n }", "public function getCache()\n {\n return $this->_cache;\n }", "private function readCache(): void{\n //stdClass é uma classe predefinido ou dinamica\n $this->cache = new stdClass();\n if(file_exists('cache.cache')){\n $this->cache = json_decode(file_get_contents('cache.cache'));\n }\n }", "protected function getMemoryCache() {}", "protected function getCache()\n {\n return $this->cache;\n }", "private function getCache() {\n // cache for single run\n // so that getLastModified and getContent in single request do not add additional cache roundtrips (i.e memcache)\n if (isset($this->parsed)) {\n return $this->parsed;\n }\n\n // check from cache first\n $cache = null;\n $cacheId = $this->getCacheId();\n if ($this->cache->isValid($cacheId, 0)) {\n if ($cache = $this->cache->fetch($cacheId)) {\n $cache = unserialize($cache);\n }\n }\n\n $less = $this->getCompiler();\n $input = $cache ? $cache : $this->filepath;\n $cache = $less->cachedCompile($input);\n\n if (!is_array($input) || $cache['updated'] > $input['updated']) {\n $this->cache->store($cacheId, serialize($cache));\n }\n\n return $this->parsed = $cache;\n }", "public function getCache() {\n\t\tif (file_exists($this->cache_file)) {\n\t\t\t$cache_contents = file_get_contents($this->cache_file);\n\t\t\treturn $cache_contents;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static function getCache()\n {\n return self::$_cache;\n }", "public function get($key) {\n\n\t\t\t// If desired clean up all expired cached objects\n\t\t\tif ($this->_autoDeleteExpired) {\n\t\t\t\t$this->deleteExpired();\n\t\t\t}\n\n\t\t\t$filename = $this->_getFileName();\n\t\t\t$cachedData = $this->_loadCache($filename);\n\t\t\t// If key exists unserialize and return\n\t\t\tif (!isset($cachedData[$key]['data'])) return null;\n\t\t\treturn unserialize($cachedData[$key]['data']);\n\n\t\t}", "public function getCacheAdapter();", "public function getCache()\r\n\t{\r\n\t\treturn \\Bitrix\\Main\\Data\\Cache::createInstance();\r\n\t}", "public function get($name, $cache = true) {}", "function get($name, $key=null) {\n if (isset($this->cache[$name]) && $key) {\n //error_log(\"Get from cache: '$name' key: '$key'\");\n return $this->cache[$name][$key];\n }\n return false;\n }", "final protected function getCacheData()\n\t{\n\t\tif(!$this->getCacheNeed())\n\t\t\treturn;\n\n\t\tif($this->currentCache == 'null')\n\t\t\tthrow new Main\\SystemException('Cache were not started');\n\n\t\treturn $this->currentCache->getVars();\n\t}", "final public function get():? object\n\t{\n\t\tif ($stm = $this->_prepare('SELECT `value`,\n\t\t\t\tDATE_FORMAT(`expires`, \"%Y-%m-%dT%TZ\") AS `expires`\n\t\t\t\t FROM `Cache`\n\t\t\t\t WHERE `key` = :key\n\t\t\t\t LIMIT 1;')\n\t\t) {\n\t\t\t$stm->execute(['key' => $this->getKey()]);\n\n\t\t\tif ($result = $stm->fetchObject()) {\n\t\t\t\tprint_r($result);\n\t\t\t\treturn $result;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "abstract public function getCacheContent( $cacheID = '', $unserialize = true );", "public function getCache($url){\n\t\t$hash = md5($url);\n\n\t\treturn apc_fetch($hash);\n\t}", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->cache;\n }", "function get_cache(Repository $repo) {\n $key = cache_key($repo);\n $data = get_transient($key);\n if ($data !== false) {\n return json_decode($data, true);\n }\n return false;\n}", "protected function getRuntimeCache() {}", "public function readCache() {\n\t\tif(file_exists($this -> sCacheDir . $this -> sCacheFile)) {\n\t\t\treturn file_get_contents($this -> sCacheDir . $this -> sCacheFile);\n\t\t}\n\t\treturn false;\n\t}", "static function cached_all(){\n return static::get_cache();\n }", "public function getCache() {\n return $this->cache;\n }", "public function getCache()\n {\n return $this->Cache;\n }", "public function get($key) {\n\t\t// First, check to see if the result has been cached.\n\t\tif (!isset($this->_cache[$key])) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Second, check its freshness.\n\t\tif ($this->_cache[$key]['time'] < time() - self::$_lifespan) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn $this->_cache[$key]['data'];\n\t}", "function cache();", "function get($key)\n {\n return $this->cache->get($key, $this->group);\n }", "public function getCache() {\n $db = \\Helper::getDB();\n $db->join('cached_assets c', 'dc.cacheId = c.id', 'LEFT');\n $db->where('dc.fileId', $db->escape($this->getId()));\n $results = $db->get('document_files_cache dc');\n\n return $results;\n }", "public function getCachedResult() {\n $cachePath = $this->_getCachePath();\n if (is_file($cachePath)) {\n $cacheModifiedTime = filemtime($cachePath);\n if ($cacheModifiedTime < time() - CACHE_EXPIRED_DELAY) {\n $result = $this->getLiveResult();\n if ($result)\n return $result;\n else\n touch($cachePath);\n }\n\n return file_get_contents($cachePath);\n }\n\n return $this->getLiveResult();\n }", "private function get_cache( $key ) {\n\t\treturn get_site_transient( $key );\n\t}", "public function get( $key ) {\n if ( isset( $this->cache[ $key ] ) ) {\n return $this->cache[ $key ];\n }else{\n return null;\n }\n }", "public function getCacheData(): array\n\t{\n\t\treturn $this->cacheData;\n\t}" ]
[ "0.8656923", "0.8005796", "0.7984196", "0.7794099", "0.77753127", "0.77733624", "0.77303016", "0.7706921", "0.7630879", "0.7570133", "0.752483", "0.7458374", "0.7425526", "0.74075717", "0.73958564", "0.7391858", "0.73438567", "0.73322105", "0.73224294", "0.7306621", "0.7299049", "0.7264374", "0.7226894", "0.72221583", "0.7214758", "0.7187222", "0.7175976", "0.7174375", "0.71589464", "0.71556365", "0.71455157", "0.71328694", "0.71255344", "0.71227956", "0.71070695", "0.710273", "0.70801765", "0.7073331", "0.70662326", "0.70565987", "0.7036092", "0.7033888", "0.702502", "0.7024123", "0.70211345", "0.7006868", "0.70006275", "0.69930273", "0.6986472", "0.69855314", "0.69773495", "0.69762665", "0.6962207", "0.6961016", "0.6957417", "0.69377613", "0.69328415", "0.69300294", "0.6929746", "0.6926952", "0.6923617", "0.69217265", "0.69100225", "0.69100225", "0.690263", "0.689845", "0.6890799", "0.6883094", "0.68820506", "0.68740594", "0.68680125", "0.686559", "0.6863063", "0.6862048", "0.6858589", "0.6854061", "0.6843768", "0.6841251", "0.683567", "0.6831542", "0.68232894", "0.68232894", "0.68232894", "0.68232894", "0.68232894", "0.68232894", "0.68232894", "0.6821257", "0.6820915", "0.6817097", "0.6816182", "0.68154657", "0.68080336", "0.6801247", "0.67934227", "0.6787045", "0.67718947", "0.67689896", "0.6765986", "0.6754872", "0.6754157" ]
0.0
-1
Save data to the cache
public function store($name, $data) { $ret = false; $hash = md5($name); $file = sprintf("{$this->cache_dir}/{$hash}"); if ( is_object($data) || is_array($data) ) { $data = call_user_func($this->serializer, $data); } if ($data) { $ret = file_put_contents($file, $data) !== false; } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function saveToCache() {}", "public function saveCache()\n {\n if($this->isCacheExists()){\n if($this->isUpdateRequired()){\n $this->updateCache();\n }\n } else {\n $this->packData()->writeFile();\n }\n }", "public function saveToCacheForever();", "protected function cacheSave() {\n $data = array();\n foreach ($this->properties as $prop) {\n $data[$prop] = $this->$prop;\n }\n //cache_set($this->id, $data, 'cache');\n }", "public function save()\n {\n $this->readCache();\n\n file_put_contents($this->filePath, json_encode($this->cacheContents));\n }", "public function saveToCache(){\r\n\t\t$n = \"hotspot_\" . $this->id;\r\n\r\n\t\t\\CacheHandler::setToCache($n,$this,20*60);\r\n\t}", "abstract protected function cacheData();", "protected function saveToCache($data)\r\n {\r\n if(extension_loaded('apc') && ini_get('apc.enabled')) {\r\n apc_store($this->getCacheKey(), $data, 0);\r\n }\r\n }", "public function save ($key, $data) {\n return $this->cache->set($key, $data);\n }", "public function save($cache_name, $cache_data, $expires);", "public function save()\r\n\t{\r\n\t\t$this->getCache()->save($this->key, ob_get_flush(), $this->frame);\r\n\t\t$this->key = $this->frame = NULL;\r\n\t}", "function save($data, $key)\n {\n return $this->cache->save($data, $key, $this->group);\n }", "private function saveCache(): void\n {\n //====================================================================//\n // Safety Check\n if (!isset($this->cacheItem) || !isset($this->cache) || empty($this->cache)) {\n return;\n }\n //====================================================================//\n // Save Links are In Cache\n $this->cacheItem->set($this->cache);\n $this->cacheAdapter->save($this->cacheItem);\n }", "public function saveCache($data) {\n\t\t$data = serialize($data);\n\t\ttry {\n\t\t\t$old = umask(0);\n\t\t\tumask(0);\n\t\t\tfile_put_contents($this->path, $data);\n\t\t\tchmod($this->path, 0755);\n\t\t\tumask($old);\n\t\t} catch (Exception $e) {\n\t\t\tutils::log('Err on saving data to file \"' . $this->path . '\": ' . $e->getMessage(), \"cache-err\");\n\t\t}\n\t}", "protected function saveToPackageCache() {}", "public function storeCache() {\n\t\tif ($this->cacheFilePath) {\n\t\t\tfile_put_contents($this->cacheFilePath, serialize($this->classFileIndex));\n\t\t}\n\t}", "public function save ( $data, $key ){\n echo \"No cache\";\n $this->clear($key);\n $data_str = serialize( array( \"mtime\" => time(), \"body\" => $data ) );\n $len = strlen($data_str);\n $shm_id = shmop_open(ftok('.',$key), \"c\", 0644, $len);\n if (!$shm_id) return false;\n $shm_bytes_written = shmop_write($shm_id, $data_str, 0);\n if ($shm_bytes_written != $len) return false;\n }", "private function storeCache($key, $data)\n {\n if ($this->cache) {\n $this->cache->save($key, $data);\n }\n }", "public static function save_cache() {\n if (self::$_cache_invalid) {\n if (@file_put_contents(self::$_path_cache_file\n , serialize(self::$_abs_file_paths))) {\n error_log('failed to write absolute file path cache to: ' . self::$_path_cache_file);\n }\n }\n }", "private static function setCache($data)\n\t{\n\t\t// Initialiase variables.\n\t\t$file = JPATH_CACHE . '/twitter';\n\t\t$data = serialize($data);\n\n\t\tJFile::write($file, $data);\n\t}", "function cache($type, $parameters, $data)\n{\n if($type == 'browse')\n $filename = CACHE.'/browse.'.$parameters['browsenode'].'.'.$parameters['page'].'.'.$parameters['mode'].'.dat';\n if($type == 'search')\n $filename = CACHE.'/search.'.$parameters['search'].'.'.$parameters['page'].'.'.$parameters['mode'].'.dat';\n if($type == 'asin')\n $filename = CACHE.'/asin.'.$parameters['asin'].'.'.$parameters['mode'].'.dat';\n \n $data = serialize($data);\n \n $fp = fopen($filename, 'wb');\n if(!$fp||(fwrite($fp, $data)==-1))\n {\n echo ('<p>Error, could not store cache file');\n }\n fclose($fp);\n}", "public function updateCache();", "private function _saveCache($buffer)\r\n {\r\n // build the hash for this object\r\n $hash = md5($buffer);\r\n \r\n // save to the cache\r\n file_put_contents(\"{$this->_config['paths']['cache']}/{$hash}\", $buffer);\r\n }", "public function cache() {\r\n\t\t$this->resource->cache();\r\n\t}", "public function cache() {\r\n\t\t$key = $this->cacher.'.' . $this->hash();\r\n\t\tif (($content = pzk_store($key)) === NULL) {\r\n\t\t\t$content = $this->getContent();\r\n\t\t\tpzk_store($key, $content);\r\n\t\t}\r\n\t\techo $content;\r\n\t}", "public function set($data) {\r\n if ($this->path === null) {\r\n trigger_error('TS3Viewer: no cache path given', E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n if (!file_exists($this->path) || !is_writable($this->path)) {\r\n trigger_error(\"TS3Viewer: cache directory '\" . $this->path . \"' does't exists or isn't writable\", E_USER_WARNING);\r\n return false;\r\n }\r\n\r\n return file_put_contents($this->path . $this->key . $this->ext, serialize($data));\r\n }", "private function saveConfig() {\n \tself::$_configInstance = (object)$this->_data; \n file_put_contents($this->_data['cache_config_file'],serialize(self::$_configInstance)); \n }", "public function save($id, $data)\n\t{\n\t\t$this->cache->load($id);\n\t\t$this->cache->save( serialize($data) );\n\t}", "private function save_cache() : bool {\n\t\tif ($this->use_cache) {\n\t\t\tif (!$this->cache_path) {\n\t\t\t\tthrow new Exception('Cannot save cache when $cache_path is not set.');\n\t\t\t}\n\n\t\t\tfile_put_contents($this->cache_path, json_encode($this->posts, JSON_UNESCAPED_UNICODE));\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function write($key, $data) {\n $cache = Zend_Registry::get('CacheFrontend');\n // include the current version in the cached results\n $version = (int)$cache->load($this->_versionKey);\n // save the data to cache but include the version number\n return $cache->save(\n array(\n 'data' => $data,\n 'version' => $version\n ),\n $key\n );\n }", "private function storeCacheSetting()\n {\n Cache::forever('setting', $this->setting->getKeyValueToStoreCache());\n }", "function _cache_put ($cache_name = \"\", $data = null) {\n\t\tif (is_null($data)) {\n\t\t\t$data = [];\n\t\t}\n\t\t$cache_file_path = $this->_prepare_cache_path($cache_name);\n\t\t$this->_put_cache_file($data, $cache_file_path, $data);\n\t}", "private function _store()\n {\n return $this->redis->redis->set($this->clientPrefix, json_encode($this->cache));\n }", "private function write_cache($content)\r\n\t{\r\n\t\tfile_put_contents($this->cache_file, $content);\r\n\t}", "function saveAndFlushCalculationCaches() {\n\n $this->saveToFile();\n\n $file = $this->getExtractedFile();\n\n $this->flushFileCachedValues();\n\n $this->saveToFile();\n }", "function InPlaceCache_writeCache(/* $hash, */ $path, &$data)\r\n{\r\n//\t$path = InPlaceCache_checkCache($hash);\r\n\t\r\n\tif($path[0] === false)\r\n\t{\r\n\t\tif(!is_dir($path[3]))\r\n\t\t\tmkdir($path[3]);\r\n\t\tif(!is_dir($path[2]))\r\n\t\t\tmkdir($path[2]);\r\n\t}\r\n\r\n\tfile_put_contents($path[1], serialize(&$data));\r\n}", "abstract public function save($cacheLabel, $cacheData, $expire = null);", "abstract public function save( $data = null, $cacheID = '', $serialize = true );", "public function flushCache();", "function saveData() {\n\n\t\t$this->getMapper()->saveData();\t\n\t\t\n\t\t\n\t}", "public static function cache()\n {\n $cache = Cache::instance('system');\n if (!$cache->get('config-autoload')) {\n $cache->set('config-autoload', self::$data);\n }\n }", "public function saveData($datas){\n\t\t// large input data.\n\t\t$writeStream = file_put_contents($this->getCacheFile(), serialize($datas));\n\n\t\tif($writeStream === false) {\n\t\t\tthrow new \\Exception('Cannot write the cache... Do you have the right permissions ?');\n\t\t}\n\n\t\treturn $this;\n\t}", "private function saveData() {\n // Create a new object with relevant information\n $data = new stdClass();\n $data->accessToken = $this->accessToken;\n $data->expirationDate = $this->expirationDate;\n $data->refreshToken = $this->refreshToken;\n\n // And save it to disk (will automatically create the file for us)\n file_put_contents(DATA_FILE, json_encode($data));\n }", "public function setCache()\n\t{\n\t\treturn CacheBot::set($this->getCacheKey(), $this->getDataToCache(), self::$objectCacheLife);\n\t}", "private static function save() {\n\t\tif(self::$data===null) throw new Excepton('Save before load!');\n\t\t$fp=fopen(self::$datafile,'w');\n\t\tif(!$fp) throw new Exception('Could not write data file!');\n\t\tforeach (self::$data as $item) {\n\t\t\tfwrite($fp,$item); // we use the __toString() here\n\t\t}\n\t\tfclose($fp);\n\t}", "function saveItem(cacheItem $item);", "protected function _writeCache($data, $url) {\n\t\t$file = sha1(serialize($data)).'.png';\n\n\t\tif (is_writable($this->cachePath)) {\n\t\t\t$contents = file_get_contents($url);\n\n\t\t\t$fp = fopen($this->cachePath.$file, 'w');\n\t\t\tfwrite($fp, $contents);\n\t\t\tfclose($fp);\n\n\t\t\tif (!is_file($this->cachePath.$file)) {\n\t\t\t\t$this->__errors[] = __d('google', 'Could not create the cache file');\n\t\t\t}\n\t\t}\n\t}", "public function cache()\n {\n\n $route = Route::requireRoueFiiles();\n if (file_put_contents($this->cacheFile, serialize($route))) {\n echo 'OK';\n } else {\n echo 'ERROR';\n }\n }", "protected function SaveKeysCache()\n\t{\n\t\tif (!is_dir(APPROOT.'data'))\n\t\t{\n\t\t\tmkdir(APPROOT.'data');\n\t\t}\n\t\t$hFile = @fopen($this->m_sCacheFileName, 'w');\n\t\tif ($hFile !== false)\n\t\t{\n\t\t\t$sData = serialize( array('keys' => $this->m_aKeys,\n\t\t\t\t\t\t\t\t\t'objects' => $this->m_aObjectsCache,\n\t\t\t\t\t\t\t\t\t'change' => $this->m_oChange,\n\t\t\t\t\t\t\t\t\t'errors' => $this->m_aErrors,\n\t\t\t\t\t\t\t\t\t'warnings' => $this->m_aWarnings,\n\t\t\t\t\t\t\t\t\t));\n\t\t\tfwrite($hFile, $sData);\n\t\t\tfclose($hFile);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new Exception(\"Cannot write to file: '{$this->m_sCacheFileName}'\");\n\t\t}\n\t}", "function save() {\r\n foreach ($this->_data as $v)\r\n $v -> save();\r\n }", "static public function set_cache_data( $key, $data ) {\n\t\t$cache_duration = IBX_WPFomo_Admin::get_settings( 'cache_duration' );\n\t\tif ( ! $cache_duration || empty( $cache_duration ) ) {\n\t\t\t$cache_duration = 45;\n\t\t}\n\n\t\tdelete_transient( $key );\n\t\tset_transient( $key, maybe_serialize( $data ), ( $cache_duration / 60 ) * HOUR_IN_SECONDS );\n\t}", "private function write_cache() {\n if (!file_exists(CACHE_DIR))\n mkdir(CACHE_DIR, 0755, TRUE);\n\n if (is_dir(CACHE_DIR) && is_writable(CACHE_DIR)) {\n if (function_exists(\"sem_get\") && ($mutex = @sem_get(2013, 1, 0644 | IPC_CREAT, 1)) && @sem_acquire($mutex))\n file_put_contents($this->cache_file, $this->html . $this->debug) . sem_release($mutex);\n /**/\n else if (($mutex = @fopen($this->cachefile, \"w\")) && @flock($mutex, LOCK_EX))\n file_put_contents($this->cache_file, $this->html . $this->debug) . flock($mutex, LOCK_UN);\n /**/\n }\n }", "static public function putCache($key, $data)\n {\n if (getenv('AMTEL_CACHE') == 'redis') {\n Cache::store('redis')->put($key, $data, getenv('AMTEL_CACHE_SEC'));\n }\n }", "public function cacheData( $key, $data )\r\n {\r\n $this->_dataCache[$key] = $data;\r\n return true;\r\n }", "function update_cache($cache_url, $cache_data){\n\t\t$fh = fopen($cache_url, 'w')or die(\"Error opening output file\");\n\t\tfwrite($fh, json_encode($cache_data,JSON_UNESCAPED_UNICODE));\n\t\tfclose($fh);\n\t}", "public function save($key, $data, $ttl=0)\n\t{\n\n\t\t$success = $this->_cache->set($key, $data, $ttl);\n\t\treturn $success;\n\n\t}", "public function set($key, $data) {\n $this->ensure_path_exists();\n $filename = $key.'.cache';\n $file = $this->file_path_for_key($key, true);\n $result = $this->write_file($file, $this->prep_data_before_save($data));\n if (!$result) {\n // Couldn't write the file.\n return false;\n }\n // Record the key if required.\n if ($this->prescan) {\n $this->keys[$filename] = cache::now() + 1;\n }\n // Return true.. it all worked **miracles**.\n return true;\n }", "public function saveData()\r\n {\r\n \r\n }", "public function writeToCache(CacheObject $object) {\n $type = $object->getType();\n $id = $object->getId();\n\n $this->readType($type);\n\n if (!array_key_exists($type, $this->cache)) {\n $this->cache[$type] = array();\n }\n\n $this->cache[$type][$id] = $object;\n }", "public function store($data)\n {\n $filename = $this->_absolutePath;\n //Create your own folder in the cache directory\n $fs = new Filesystem();\n try {\n $fs->dumpFile($filename, $this->_encrypt($data));\n } catch (IOException $e) {\n echo \"An error occured while creating your directory\";\n }\n\n return $data;\n }", "function save($id, $cachedata, $expires, $group, $userdata)\n {\n $this->flushPreload($id, $group);\n\n $file = $this->getFilename($id, $group);\n if (!($fh = @fopen($file, 'wb'))) {\n return new Cache_Error(\"Can't access '$file' to store cache data. Check access rights and path.\", __FILE__, __LINE__);\n }\n\n // File locking (exclusive lock)\n if ($this->fileLocking) {\n flock($fh, LOCK_EX);\n }\n // file format:\n // 1st line: expiration date\n // 2nd line: user data\n // 3rd+ lines: cache data\n $expires = $this->getExpiresAbsolute($expires);\n fwrite($fh, $expires . \"\\n\");\n fwrite($fh, $userdata . \"\\n\");\n fwrite($fh, $this->encode($cachedata));\n\n // File unlocking\n if ($this->fileLocking) {\n flock($fh, LOCK_UN);\n }\n fclose($fh);\n\n // I'm not sure if we need this\n\t// i don't think we need this (chregu)\n // touch($file);\n\n return true;\n }", "protected function _clearDataCache() {}", "function saveCache($ipnDataRaw)\n {\n // Define the cache record to populate\n $cacheRecord = $this->cacheQuery;\n $cacheRecord['detail'] = serialize($ipnDataRaw);\n\n // Now run the insert/update\n $this->_upsert($cacheRecord, $this->cacheQuery);\n }", "public function cache() {\n if(!array_key_exists($this->steamId64, self::$steamIds)) {\n self::$steamIds[$this->steamId64] = $this;\n if(!empty($this->customUrl) &&\n !array_key_exists($this->customUrl, self::$steamIds)) {\n self::$steamIds[$this->customUrl] = $this;\n }\n }\n }", "public function save()\n\t{\n\t\tif($this->beforeSave())\n\t\t{\n\t\t\t$dest = $this->getStorageFile();\n\t\t\t\n\t\t\tif(file_exists($dest) and is_writable($dest)===false)\n\t\t\t{\n\t\t\t\t@chmod($dest,0777);\n\t\t\t}\n\t\t\t\n\t\t\t$fp = fopen($dest,$this->mode);\n\t\t\tfwrite($fp,$this->data);\n\t\t\tfclose($fp);\n\t\t\t$this->afterSave();\n\t\t}\n\t}", "public function save()\n {\n if ( !$this->unsaved ) {\n // either nothing has been changed, or data has not been loaded, so\n // do nothing by returning early\n return;\n }\n\n $this->write();\n $this->unsaved = false;\n }", "function StoreToCache($content)\n {\n File::CreateWithText($this->file, $content);\n }", "public function save()\n\t{\n\t\t//we should do any cleanup if possible\n\t\tif ($this->isDirty())\n\t\t\t$this->clean();\n\t\n\t\t//save it to wherever\n\t\t$data = $this->saveData();\n\n\t\t//bust our cache.\n\t\tif ($this->useObjectCaching)\n\t\t\t$this->deleteCache();\n\t\t\n\t\treturn $data;\n\t}", "public function store()\n {\n $classes = [];\n\n foreach ($this->classes as $class) {\n $classes[] = $class['input_file'];\n }\n\n $json_classes = json_encode($classes);\n\n $this->filesystem->put(config('larinterface.cache_directory') . '/larinterface.json', $json_classes);\n }", "function write_cache(&$var, $filename) {\n $filename = DIR_FS_CACHE . $filename;\n $success = false;\n\n// try to open the file\n if ($fp = @fopen($filename, 'w')) {\n// obtain a file lock to stop corruptions occuring\n flock($fp, 2); // LOCK_EX\n// write serialized data\n fputs($fp, serialize($var));\n// release the file lock\n flock($fp, 3); // LOCK_UN\n fclose($fp);\n $success = true;\n }\n\n return $success;\n }", "private function _cache_save($data_to_cache, $cache_id, $cache_group = 'global')\n {\n\n if ($data_to_cache == false) {\n $cache_file = $this->_cache_get_file_path($cache_id, $cache_group);\n $cache_file = normalize_path($cache_file, false);\n if (is_file($cache_file)) {\n @unlink($cache_file);\n }\n return false;\n } else {\n\n $mem_var = $this->mw_cache_mem;\n if (!isset($mem_var[$cache_group])) {\n $this->mw_cache_mem[$cache_group] = array();\n }\n\n if ($data_to_cache == '--true--') {\n $this->mw_cache_mem[$cache_group][$cache_id] = true;\n } else {\n $this->mw_cache_mem[$cache_group][$cache_id] = $data_to_cache;\n\n }\n\n $data_to_cache = serialize($data_to_cache);\n\n $this->_cache_write_to_file($cache_id, $data_to_cache, $cache_group);\n\n return true;\n }\n }", "function cacheFile($dir, $file, $data)\n{\n if (!Config::Caching)\n return;\n\n debug('Cache', \"Saving $file to $dir local storage\");\n\n $path = pathJoin([$dir, $file]);\n file_put_contents($path, $data);\n chmod($path, 0666);\n}", "function save($id, $cachedata, $expires, $group, $userdata)\n {\n $this->flushPreload($id, $group);\n \n $cachedata = $this->encode($cachedata);\n $expires_abs = $this->getExpiresAbsolute($expires);\n\n $size = 1 + strlen($cachedata) + strlen($expires_abs) + strlen($userdata) + strlen($group);\n $size += strlen($size);\n \n $data = array(\n 'cachedata' => $cachedata, \n 'expires' => $expires_abs,\n 'userdata' => $userdata\n );\n $id = strtoupper(md5($group)) . $id;\n \n msession_lock($id);\n \n if (!msession_set($id, '_pear_cache', true)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n if (!msession_set($id, '_pear_cache_data', $data)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n if (!msession_set($id, '_pear_cache_group', $group)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n if (!msession_set($id, '_pear_cache_size', $size)) {\n msession_unlock($id);\n return new Cache_Error(\"Can't write cache data.\", __FILE__, __LINE__);\n }\n \n // let msession do some GC as well\n // note that msession works different from the PEAR Cache.\n // msession deletes an entry if it has not been used for n-seconds.\n // PEAR Cache deletes after n-seconds.\n if ($expires != 0) {\n msession_timeout($id, $expires);\n }\n msession_unlock($id);\n\n return true;\n }", "public function save($key, $data);", "protected function cache()\n {\n // Cache location items\n $this->locations->get(); // All\n $this->locations->menu(); // Menu\n $this->locations->mapItems(); // Map\n $this->locations->featured(); // Featured\n\n // Cache properties\n $this->properties->cacheAll(); // All\n $this->properties->specials();\n }", "function elgg_filepath_cache_save($type, $data) {\n\tglobal $CONFIG;\n\n\tif ($CONFIG->viewpath_cache_enabled) {\n\t\t$cache = elgg_get_filepath_cache();\n\t\treturn $cache->save($type, $data);\n\t}\n\n\treturn false;\n}", "public function set($key, $data, $ttl = 0) {\n $expire = time() + $ttl;\n $this->logger->debug('Setting cache data for key [' . $key . '], '\n . 'time to live [' . $ttl . '], '\n . 'expire at [' . date('Y-m-d H:i:s', $expire) . ']');\n $filePath = $this->getFilePath($key);\n $handle = fopen($filePath, 'w');\n if (!is_resource($handle)) {\n $this->logger->error('Can not open the file cache '\n . '[' . $filePath . '] for the key [' . $key . '], return false');\n return false;\n }\n flock($handle, LOCK_EX); // exclusive lock, will get released when the file is closed\n //Serializing along with the TTL\n $cacheData = serialize(array(\n 'mtime' => time(),\n 'expire' => $expire,\n 'data' => $data,\n 'ttl' => $ttl\n ));\t\n if ($this->compressCacheData) {\n $cacheData = gzdeflate($cacheData, 9);\n }\t \n $result = fwrite($handle, $cacheData);\n if (!$result) {\n $this->logger->error('Can not write cache data into file [' . $filePath . '] '\n . 'for the key [' . $key . '], return false');\n fclose($handle);\n return false;\n } \n $this->logger->info('Cache data saved into file [' . $filePath . '] for the key [' . $key . ']');\n fclose($handle);\n chmod($filePath, 0640);\n return true;\n }", "public function saveToCache($minutes);", "public static function results_cache_save($table, $column, $data) {\n\t\tif(! isset(static::$results_cache[$table]))\n\t\t\tstatic::$results_cache[$table] = array();\n\n\t\tif(! isset(static::$results_cache[$table][$column]))\n\t\t\tstatic::$results_cache[$table][$column] = array();\n\n\t\tforeach($data as $id => $result)\n\t\t\tstatic::$results_cache[$table][$column][$id] = $result;\n\t}", "public function cache_data( $name, array $data ){\n foreach( $data as $hash => $d ){\n // cache source file independently\n $this->store( $hash, $d['js'] );\n unset( $data[$hash]['js'] );\n } \n // cache remaining array data\n $this->store( $name, $data );\n }", "public static function flush()\n\t\t{\n\t\t\tself::getCache()->flush();\n\t\t}", "private function writeCookieFileCache()\n {\n $timeLive = Carbon::now()->addMinutes(480);\n Cache::put('AuthApiBpmCookie', $this->cookies, $timeLive);\n Log::info('Получены новые куки'.$this->cookies);\n }", "public function set($key, $data) {\n\t\t$this->_cache[$key] = array(\n\t\t\t'time' => time(),\n\t\t\t'data' => $data,\n\t\t);\n\t}", "abstract function cache_output();", "protected function _save()\n\t{\n\t\t$_file = $this->_storagePath . DIRECTORY_SEPARATOR . $this->_fileName;\n\n\t\t$_data = json_encode( $this->contents() );\n\n\t\tif ( $this->_compressStore )\n\t\t{\n\t\t\t$_data = Utility\\Storage::freeze( $this->contents() );\n\t\t}\n\n\t\tif ( false === file_put_contents( $_file, $_data ) )\n\t\t{\n\t\t\tUtility\\Log::error( 'Unable to store Oasys data in \"' . $_file . '\". System error.' );\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "protected function cacheModel()\n {\n $xmlObject = $this->getSimpleXmlObject();\n if ($xmlObject === null) {\n return;\n }\n\n $this->cache = $this->convertItem($xmlObject);\n }", "public function setCache($url,$data){\n\t\t$hash = md5($url);\n\t\treturn apc_add($hash, $data, $this->expire_time);;\n\t}", "public function cacheWrite( $name, $value ) {\n\t\tif ( ZC_CACHE == 'none' || $this->isAdmin() ) return;\n\t\t$name = $this->_cacheName( $name );\n\t\tif ( ZC_CACHE == 'apc' ) {\n\t\t\tapc_store( ZC_CACHE_PREFIX. $name, $value );\n\t\t}\n\t\telse {\n\t\t\t$file = ZC_CACHE_DIR . '/'. $name. '.cache';\n\t\t\tfile_put_contents( $file, serialize( $value ) );\n\t\t}\n\t}", "public function saveData($content, $dataId)\n {\n return Mage::app()->getCache()->save(\n $content,\n $this->_getCacheId($dataId),\n array(Mage_Core_Block_Abstract::CACHE_GROUP),\n 86400\n );\n }", "function object_cache_set($key, $data, $flag = '', $expire = 0) {\n\tglobal $ts_object_cache;\n\n\treturn $ts_object_cache->set($key, $data, $flag, $expire);\n}", "public function save($name, $data) {\n\t\t$str = serialize($data);\n\t\t$filename = $this->cache_dir.DIRECTORY_SEPARATOR.$name.'-'.strtotime('now').'.frc';\n\t\t// Get existing files to be deleted\n\t\t$existingFiles = $this->getFilesByName($name);\n\t\tif ( $existingFiles ) \n\t\t\tforeach ($existingFiles as $eFile ) unlink($eFile);\n\t\t\n\t\tfile_put_contents($filename, $str);\n\t}", "public function store()\n {\n $this->storeKeys();\n }", "private function persistCache(array $cache) {\r\n\t\t$cacheFolder = $this->getCacheFolder ();\r\n\t\tif (! is_dir ( $cacheFolder )) {\r\n GeneralUtility::mkdir ( $cacheFolder );\r\n\t\t}\r\n GeneralUtility::writeFile ( $this->getCacheFilePath (), serialize ( $cache ) );\r\n\t}", "function set($key,$value,$expires=null){\n\t\t$_this =& self::getInstance();\n\t\t\n\t\t$content = array();\n\t\t$content['key'] \t= $key;\n\t\t$content['created'] = time();\n\t\t$content['expires'] = time()+$expires;\n\t\t$content['data'] \t= $value;\n\t\tfile_put_contents($_this->cache_dir.$key, json_encode($content));\n\t\t\n\t\tself::$set_keys[] = $key;\n\t}", "public function loadAndCache(): void\n {\n $this->fetchPermissions();\n\n $this->cachePermissions();\n\n $this->savePermissions();\n }", "private function writeCache($object)\r\n {\r\n $fp = fopen(WEMO_CACHE, 'w');\r\n fwrite($fp, json_encode($object));\r\n fclose($fp);\r\n }", "public function afterSave() {\n\t\tCache::delete($this->_cacheKey);\n\t}", "private function _cache($filename, $file_data)\n\t{\n if(empty($file_data))\n {\n\t\t\tlog_message('debug', 'Assets: Cache file '.$filename.' was empty and therefore not written to disk at '.$this->cache_path);\n\t\t\treturn false;\n }\n\n\t\t$filepath = $this->cache_path . $filename;\n\t\t$success = file_put_contents($filepath, $file_data);\n\t\t\n if($success)\n {\n\t\t\tlog_message('debug', 'Assets: Cache file '.$filename.' was written to '.$this->cache_path);\n\t\t\treturn TRUE;\n }\n else\n {\n\t\t\tlog_message('error', 'Assets: There was an error writing cache file '.$filename.' to '.$this->cache_path);\n\t\t\treturn FALSE;\n }\n\t}", "function add($name, $key, $data) {\n if (!isset($this->cache[$name])) {\n $this->cache[$name] = array();\n }\n $this->cache[$name][$key] = $data;\n $data = json_encode($data);\n //error_log(\"Added to cache: '$name' key: '$key' data: '$data'\");\n }", "protected function cache()\n\t{\n\t\tif ( ! $this->executed OR $this->result === NULL)\n\t\t\treturn;\n\n\t\tif ($this->config['cache'] === FALSE OR ! ($this->cache instanceof Cache))\n\t\t\tthrow new Kohana_User_Exception('Curl.cache()', 'Cache not enabled for this instance. Please check your settings.');\n\n\t\t// Store the correct data\n\t\t$cache_data = array\n\t\t(\n\t\t\t'result' => $this->result,\n\t\t\t'info' => $this->info,\n\t\t);\n\n\t\treturn $this->cache->set($this->create_cache_key(), $cache_data, $this->config['cache_tags'], $this->config['cache']);\n\t}" ]
[ "0.8547608", "0.8172959", "0.7996178", "0.7972279", "0.78688127", "0.7626003", "0.74417347", "0.74417084", "0.742397", "0.7395878", "0.7371639", "0.7366896", "0.729678", "0.72406036", "0.71955293", "0.7131114", "0.70946383", "0.7088079", "0.706324", "0.700207", "0.6893743", "0.68825716", "0.68442476", "0.68291855", "0.6821844", "0.6782161", "0.67627794", "0.6758127", "0.67383534", "0.6716641", "0.66941637", "0.6622028", "0.65931296", "0.65524787", "0.6540792", "0.6537005", "0.65136737", "0.651283", "0.6509934", "0.65073615", "0.65005744", "0.6487148", "0.6464101", "0.6461109", "0.64578736", "0.6403865", "0.6401537", "0.6396726", "0.6389828", "0.6388793", "0.63779324", "0.636019", "0.63519126", "0.634999", "0.63484323", "0.63440466", "0.63278526", "0.6300138", "0.6297178", "0.6291348", "0.62879986", "0.6277783", "0.62635493", "0.62616295", "0.62614185", "0.6251169", "0.62311924", "0.62263393", "0.6222858", "0.62157434", "0.62060815", "0.62018365", "0.6190228", "0.6189041", "0.61789626", "0.61619234", "0.6142113", "0.612311", "0.61166686", "0.6110002", "0.60973823", "0.6083013", "0.6075199", "0.6065942", "0.60588187", "0.6046175", "0.60410005", "0.602297", "0.6014541", "0.6014162", "0.6003114", "0.5992219", "0.5991664", "0.5989874", "0.59871686", "0.59743905", "0.5973795", "0.5971981", "0.59718436", "0.5967838" ]
0.5964729
100
Determine value of option $name from database, $default value or $params, save it to the db if needed and return it.
function process_option( $name, $default, $params ) { if ( array_key_exists( $name, $params ) ) { $value = stripslashes( $params[ $name ] ); } elseif ( array_key_exists( '_' . $name, $params ) ) { // unchecked checkbox value $value = stripslashes( $params[ '_' . $name ] ); } else { $value = NULL; } $stored_value = get_option( $name ); if ( $value == NULL ) { if ( $stored_value === FALSE ) { if ( is_callable( $default ) && method_exists( $default[0], $default[1] ) ) { $value = call_user_func( $default ); } else { $value = $default; } add_option( $name, $value ); } else { $value = $stored_value; } } else { if ( $stored_value === FALSE ) { add_option( $name, $value ); } elseif ( $stored_value != $value ) { update_option( $name, $value ); } } return $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_option($name, $default, $params) {\n\n\t\tif (array_key_exists($name, $params)) {\n\t\t\t$value = stripslashes($params[$name]);\n\t\t} elseif (array_key_exists('_'.$name, $params)) {\n\t\t\t// unchecked checkbox value\n\t\t\t$value = stripslashes($params['_'.$name]);\n\t\t} else {\n\t\t\t$value = null;\n\t\t}\n\t\t$stored_value = get_option($name);\n\t\tif ($value == null) {\n\t\t\tif ($stored_value === false) {\n\t\t\t\tif (is_callable($default) && method_exists($default[0], $default[1])) {\n\t\t\t\t\t$value = call_user_func($default);\n\t\t\t\t} else {\n\t\t\t\t\t$value = $default;\n\t\t\t\t}\n\t\t\tadd_option($name, $value);\n\t\t\t} else {\n\t\t\t\t$value = $stored_value;\n\t\t\t}\n\t\t} else {\n\t\t\tif ($stored_value === false) {\n\t\t\t\tadd_option($name, $value);\n\t\t\t} elseif ($stored_value != $value) {\n\t\t\t\tupdate_option($name, $value);\n\t\t\t}\n\t\t}\n\t\treturn $value;\n\t}", "private function processOption($name, $default, $params)\n {\n if (array_key_exists($name, $params)) {\n $value = stripslashes($params[$name]);\n } else {\n $value = $default;\n }\n return $value;\n }", "function get_option($option_name, $default_value = false)\n{\n if (!is_string($option_name)) {\n // Option name must be string\n return $default_value;\n }\n\n $opt = \\Controller::model(\"Option\", $option_name);\n if (!$opt->isAvailable()) {\n return $default_value;\n }\n\n // Return the value\n return $opt->get(\"option_value\");\n}", "public function getOption($name, $default = NULL);", "public function getOption(string $name, mixed $default = null): mixed;", "static public function getValue($name,$default=null)\n {\n $p=self::findOne(['id'=>$name]);\n if($p===null){\n return $default;\n }\n else{\n return $p->value;\n }\n }", "public function getOption($name,$default_val = null){\n return isset($this->option_map[$name]) ? $this->option_map[$name] : $default_val;\n }", "function getConfigValue($configname,$defaultvalue=false)\n {\n $db=new mysql; \n //$db->dbname='pim'; \n $db->connect();\n $value=false;\n if($stmt=$db->conn->prepare('select * from config where configname=?'))\n {\n $stmt->bind_param('s',$configname);\n $stmt->execute();\n $db->result = $stmt->get_result();\n if($row = $db->result->fetch_assoc())\n {\n $value=$row['configvalue'];\n }\n else\n {// name not found\n if($defaultvalue)\n {// write the $configname/$defaultvalue as new record\n if($stmt=$db->conn->prepare('insert into config (configname,configvalue) values(?,?)'))\n {\n if($stmt->bind_param('ss',$configname,$defaultvalue))\n {\n if($stmt->execute())\n {\n $value=$defaultvalue;\n }\n }\n } \n }\n }\n }\n $db->close();\n return $value;\n }", "public function get($name, $fallback = null)\n {\n // No No no. we wont waste SQL queries for multiple invalid calls\n if (in_array($name, $this->invalidOptions)) {\n return $fallback;\n }\n\n // return from the loaded options if present\n if (isset($this->options[$name])) {\n $value = $this->options[$name];\n } else {\n $query = $this->read($name, ['option_value']);\n\n if (!isset($query['option_value'])) {\n // Mark the option as invalid\n $this->invalidOptions[] = $name;\n return $fallback;\n }\n\n $value = $query['option_value'];\n }\n\n\n // set this to the loaded option as well for future calls\n $this->options[$name] = $value;\n\n return $value;\n }", "public function get($name, $default=null) {\n\n if(isset($this->settings[$name])) {\n return $this->transformValueFromDatabase($this->settings[$name]['value'],$this->settings[$name]['type']);\n }\n\n /** @var Setting $setting */\n if($setting=$this->em->getRepository('CreavoOptionBundle:Setting')->findByName($name)) {\n $this->addToCache($setting);\n return $this->transformValueFromDatabase($setting->getValue(),$setting->getType());\n }\n\n return $default;\n }", "public function getOption($name, $default = null);", "protected function _getValue($name, $default) {}", "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 value($name, $default = null)\n {\n if (! is_null($value = $this->valueFromOld($name))) {\n return $value;\n }\n\n if (! is_null($value = $this->valueFromModel($name))) {\n return $value;\n }\n\n return $default;\n }", "public static function give($name, $default = null)\n\t{\n\t\tif ($setting = static::find($name))\n\t\t{\n\t\t\treturn $setting->value;\n\t\t}\n\n\t\treturn $default;\n\t}", "public function getOption($name, $default = null){\n\t\t$return = $default;\n\t\tif( array_key_exists($name, $this->options) ){\n\t\t\t$return = $this->options[$name];\n\t\t}elseif( array_key_exists($name, $this->configFileOptions) ){\n\t\t\t$return = $this->configFileOptions[$name];\n\t\t}elseif( array_key_exists($name, $this->env) ){\n\t\t\t$return = $this->env[$name];\n\t\t}\n\t\treturn $return;\n\t}", "public function getPreference($name, $userId = 1, $default = null) \r\n {\r\n if(($record = $this->find()->where(['user_id' => $userId, 'name' => $name])->first()) != false) \r\n return $record['value'];\r\n return $default;\r\n }", "function get_trigger_option( $name, $default = false ) {\n\t\t$options = $this->get_trigger_options();\n\n\t\tif ( isset( $options[$name] ) ) {\n\t\t\t$value = $options[$name];\n\t\t}\n\t\telse {\n\t\t\t$value = $default;\n\t\t}\n\n\t\treturn $value;\n\t}", "public function getSetting( $name, $default = null );", "public function getValueByName(string $name, $default = null);", "function acapi_get_option($name) {\n // Make sure $name is an acapi option.\n $options = acapi_common_options();\n if (!isset($options[$name])) {\n return drush_set_error('ACAPI_UNKNOWN_OPTION', dt('Unknown ac-api option @name.', array('@name' => $name)));\n }\n\n // If the user specified --$name=<value> on the command line, return <value>.\n $value = drush_get_option($name, NULL);\n if (isset($value)) {\n return $value;\n }\n\n // If the ac-config file sets $name, return the value.\n $values = acapi_load_options($name);\n if (isset($values[$name])) {\n return $values[$name];\n }\n\n // If $name has a default value, return it.\n if (!empty($options[$name]['default_value'])) {\n return $options[$name]['default_value'];\n }\n\n // No specified value, no default, return NULL.\n return;\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}", "static function getValue($name) {\r\n if (isset(self::$config[$name])) \r\n return self::$config[$name];\r\n else {\r\n return DB::getConfig($name);\r\n }\r\n }", "public static function doHardGetOption($optionName, $defaultValue = 0)\n {\n global $wpdb;\n\n $optionValue = $wpdb->get_var($wpdb->prepare(\n \"\n\t\t\t\tSELECT option_value\n\t\t\t\tFROM {$wpdb->prefix}options\n\t\t\t\tWHERE option_name = %s\n\t\t\t\",\n $optionName\n ));\n if (!is_null($optionValue)) {\n return $optionValue;\n }\n\n return $defaultValue;\n }", "private function initialise_option($name, $default) {\n $param = optional_param($name, null, PARAM_BOOL);\n if (is_null($param)) {\n return get_user_preferences($name, $default);\n } else {\n set_user_preference($name, $param);\n return $param;\n }\n }", "private function initialise_option($name, $default) {\n $param = optional_param($name, null, PARAM_BOOL);\n if (is_null($param)) {\n return get_user_preferences($name, $default);\n } else {\n set_user_preference($name, $param);\n return $param;\n }\n }", "public function get( $name, $default = '' )\n\t\t{\n\t\t\tif ( isset( $this->_options[$name] ) )\n\t\t\t\treturn $this->_options[$name];\n\t\t\treturn $default;\n\t\t}", "public function get(string $name)\n {\n $site_slug = $this->currentSchemaAttributeParents[0];\n $site = $this->getSite($site_slug);\n\n switch_to_blog($site->blog_id);\n switch ($name) {\n case 'specific_allowed_countries':\n case 'all_except_countries':\n case 'specific_ship_to_countries':\n case 'delete_inactive_accounts':\n case 'trash_pending_orders':\n case 'trash_failed_orders':\n case 'trash_cancelled_orders':\n case 'anonymize_completed_orders':\n $value = get_option(self::normalizeOption($name), []);\n break;\n case 'calc_taxes':\n case 'calc_discounts_sequentially':\n case 'cart_redirect_after_add':\n case 'review_rating_verification_required':\n case 'hide_out_of_stock_items':\n case 'downloads_require_login':\n case 'prices_include_tax':\n case 'tax_round_at_subtotal':\n case 'shipping_cost_requires_address':\n case 'shipping_debug_mode':\n case 'enable_checkout_login_reminder':\n case 'enable_signup_and_login_from_checkout':\n case 'enable_myaccount_registration':\n case 'erasure_request_removes_order_data':\n case 'erasure_request_removes_download_data':\n case 'allow_bulk_remove_personal_data':\n case 'merchant_email_notifications':\n case 'force_ssl_checkout':\n case 'unforce_ssl_checkout':\n case 'api_enabled':\n case 'allow_tracking':\n $yes_or_no = get_option(self::normalizeOption($name), 'no');\n $value = $yes_or_no === 'yes';\n break;\n case 'enable_coupons':\n case 'enable_ajax_add_to_cart':\n case 'enable_reviews':\n case 'review_rating_verification_label':\n case 'enable_review_rating':\n case 'review_rating_required':\n case 'manage_stock':\n case 'notify_low_stock':\n case 'notify_no_stock':\n case 'downloads_grant_access_after_payment':\n case 'downloads_add_hash_to_filename':\n case 'enable_shipping_calc':\n case 'enable_guest_checkout':\n case 'registration_generate_username':\n case 'registration_generate_password':\n case 'show_marketplace_suggestions':\n $yes_or_no = get_option(self::normalizeOption($name), 'yes');\n $value = $yes_or_no === 'yes';\n break;\n default:\n $value = get_option(self::normalizeOption($name));\n break;\n }\n\n restore_current_blog();\n\n return $value;\n }", "function getOption($name);", "abstract protected function tryReadOption($name, &$out, $default = null);", "protected function inputValue($name, $default='')\r\n {\r\n if ($this->inputValues === FALSE) {\r\n $this->parseInputValues();\r\n }\r\n \r\n if (isset($this->inputValues[$name])) {\r\n return $this->inputValues[$name];\r\n } else {\r\n return $default;\r\n }\r\n }", "protected function postValue($name, $default='')\r\n {\r\n if (isset($_POST[$name])) {\r\n return $_POST[$name];\r\n } else {\r\n return $default;\r\n }\r\n }", "protected function getSettingValue($name, $default = null)\n {\n \treturn Settings::get(strtolower($this->getKey()) . '_' . $name , $default);\n }", "function getProperty($name, $default = '') {\n include_once(PAPAYA_INCLUDE_PATH.'system/base_module_options.php');\n $optionValue = base_module_options::readOption($this->moduleGuid, $name, $default);\n return $optionValue;\n }", "private function getpostV($name, $default = false, $retSet = array()) {\n // empty or null\n if (!$name || empty($retSet)) {\n // return false\n return false;\n } else if ((!isset($retSet[$name]))) {\n // if default value isseted then\n // return default value\n return $default;\n } else {\n // return the filted value\n return $this->Util->xssFilter($retSet[$this->Util->xssFilter($name)]);\n }\n }", "function sloodle_get_value($settings, $name, $default = null)\n {\n if (is_array($settings) && isset($settings[$name])) return $settings[$name];\n return $default;\n }", "public function getOption($name);", "public function getOption($name);", "public function getOption($name);", "public function getValue($name, $default= NULL) {\n return (isset($this->values[HVAL_PERSISTENT][$name]) \n ? $this->values[HVAL_PERSISTENT][$name] \n : $default\n );\n }", "public static function getParam($name, $default = null)\n {\n if (static::$params === null) {\n static::$params = require(__DIR__ . '/data/config.php');\n }\n\n return static::$params[$name] ?? $default;\n }", "function get_option($name) {\n $setting = Setting::where('name', $name)->first();\n if(!$setting) {\n return \"\";\n }\n return $setting->value;\n}", "function _get_setting($setting_name, $default = null)\n {\n $value = $this->getDb()->get_value('select value from mwg_setting where name=?', $setting_name); \n if ($value) return $value;\n\n $value = $this->getDb()->get_value('select value from settings where name=?', $setting_name); \n if ($value) {\n return stripslashes($value); \n } \n if ($default) {\n return $default;\n } \n return $value;\n }", "function recurlywp_get_option( $option_name, $default_value = false ) {\n $current_value = get_option('recurlywp_options')[$option_name];\n\n // If no current value and has a default value\n if ( ! $current_value && $default_value ) {\n return $default_value;\n }\n return $current_value;\n}", "private function getOption($name)\n {\n return $this->parsedOptions[$name]??null;\n }", "public function getParameter($name, $default = null)\n {\n if (empty($this->settings)) {\n $this->loadSettings();\n }\n \n if (!isset($this->settings[$name])) {\n return $default;\n }\n \n return $this->settings[$name];\n }", "public function input(string $name, mixed $default = null): mixed\n {\n return $this->data($name, $this->query->get($name, $default));\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 getOption($option, $default = null);", "private function _getParam($name, $default = null)\n {\n return Arr::get($this->_data, $name, $default);\n }", "protected function loadParam($name)\n\t{\n\t\tif (!$this->caseSensitive)\n\t\t\t$name = strtolower($name);\n\t\t$db = $this->getDbConnection();\n\t\t$res = $db->createCommand('SELECT option_value FROM '.$this->paramsTableName.' WHERE option_name=\\''.$name.'\\'')->query();\n\t\tif ($res->rowCount == 1)\n\t\t{\n\t\t\t$row = $res->read();\n\t\t\t$this->add($name,$row['option_value']);\n\t\t\treturn $row['option_value'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new CException(Yii::t('xparam','XDbParam->{name} does not exist!',\n\t\t\t\tarray('{name}'=>$name)));\n\t\t}\n\t}", "public function get($name) {\r\n\t\t$options = get_option(ShoppWholesale::OPTION_NAME);\r\n\t\tif (!isset($options[$name])) {\r\n\t\t\t$options[$name] = $this->defaults[$name];\r\n\t\t}\r\n\t\treturn $options[$name];\r\n\t}", "function cxense_get_opt($name) {\n if( $opt = get_option($name) ) {\n return $opt;\n } else {\n $name = strtoupper($name);\n return defined($name) ? constant($name) : false;\n }\n}", "function _getParameter( $name, $default='' ) {\n\t\t$return = \"\";\n\t\t$return = $this->params->get( $name, $default );\n\t\treturn $return;\n\t}", "function qa_opt($name, $value = null)\n{\n\tglobal $qa_options_cache;\n\n\tif (!isset($value) && isset($qa_options_cache[$name]))\n\t\treturn $qa_options_cache[$name]; // quick shortcut to reduce calls to qa_get_options()\n\n\trequire_once QA_INCLUDE_DIR . 'app/options.php';\n\n\tif (isset($value))\n\t\tqa_set_option($name, $value);\n\n\t$options = qa_get_options(array($name));\n\n\treturn $options[$name];\n}", "public function get($name, $default = null)\n {\n if (isset($this->params[$name])) {\n return $this->params[$name];\n } else {\n return $default;\n }\n }", "public function fetchDBVar($name) {\n $name = strtolower($name);\n $configElement = R::findOne($this->_dbConfigTable, 'param = ?', array($name));\n return $configElement->value;\n }", "public function getArgValue(string $name) {\n $argObj = $this->getArgument($name);\n\n if ($argObj === null) {\n return null;\n }\n\n $val = $this->getArgValFromRequest($name);\n\n if ($val === null) {\n $val = $this->getArgValFromTerminal($name);\n }\n\n\n\n if ($val === null) {\n $val = $argObj->getValue();\n }\n\n if ($val === null) {\n $val = $argObj->getDefault();\n }\n\n if ($val !== null) {\n $argObj->setValue($val);\n }\n\n return $val;\n }", "public function getValue($name, $default= NULL) {\n return isset($this->values[$name]) ? $this->values[$name] : $default;\n }", "function save_option($option_name, $option_value)\n{\n if (!is_string($option_name)) {\n // Option name must be string\n return false;\n }\n\n if ($option_value === false || $option_value === null) {\n $option_value = \"\";\n }\n\n // Save to the database\n $opt = \\Controller::model(\"Option\", $option_name);\n $opt->set(\"option_name\", $option_name)\n ->set(\"option_value\", $option_value)\n ->save();\n\n return true;\n}", "protected function getFieldValue($name, $default = false)\r\n {\r\n $name = str_replace(array('[', '][', ']'), array('.', '.', ''), $name);\r\n return Arr::get($this->form_data, $name, $default);\r\n }", "public static function CommandLineOptionValue($array,$optionName,$default = null)\n {\n \n $result = $default;\n foreach ($array as $value) \n {\n if (util::contains($value, \"--{$optionName}=\"))\n $result = str_replace(\"--{$optionName}=\", '', $value);\n }\n \n $result = str_replace(\"'\", '', $result);\n \n if (trim($result) == \"true\") return true;\n if (trim($result) == \"false\") return false;\n \n if ($result == '') $result = null;\n \n return $result;\n\n }", "public function get($name, $default = null)\n {\n if (!$this->data) $this->data = unserialize($this->datax);\n\n if (isset($this->data[$name])) return $this->data[$name];\n return $default;\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 }", "public function __get( $name )\n {\n if ( $name === 'default' )\n {\n return $this->defaultValue;\n }\n }", "public function getDbOptions($name = 'default')\n {\n if (isset($this->_dbOptions->$name)) {\n return $this->_dbOptions->$name;\n }\n return null;\n }", "public static final function option(array $options, $name, $default){\n if (!$options){return $default;}\n if (isset($options[$name])){\n return $options[$name];\n }\n return $default;\n }", "public function get_option($name)\n {\n if($name == 'query')\n {\n return $this->_query;\n }\n if($name == 'fields')\n {\n return $this->_fields;\n }\n return isset($this->_options[$name]) ? $this->_options[$name] : NULL;\n }", "public function get( $name, $default = null ) {\n\t\tif ( array_key_exists( $name, $this->data ) ) {\n\t\t\treturn $this->data[$name];\n\t\t}\n\n\t\treturn $default;\n\t}", "function setting($name, $default = null) {\n $settings = get_option(sprintf('%s_settings', __CLASS__), array());\n return isset($settings[$name]) ? $settings[$name] : $default;\n }", "function getPostVal ($stringName, $autoDefault) {\r\n\t\treturn ((isset($_POST[$stringName])) ? $_POST[$stringName] : $autoDefault);\r\n\t}", "public function getDefaultFieldValue($name)\n {\n $value = parent::getDefaultFieldValue($name);\n\n $lastSubmit = Session::getInstance()->pcSignupParams;\n\n if (!empty($lastSubmit)) {\n switch ($name) {\n case 'first_name':\n $value = $lastSubmit['firstname'];\n break;\n case 'last_name':\n $value = $lastSubmit['lastname'];\n break;\n case 'email':\n $value = $lastSubmit['email'];\n break;\n case 'company':\n $value = $lastSubmit['company'];\n break;\n case 'password':\n $value = $lastSubmit['password'];\n break;\n case 'url':\n $value = $lastSubmit['url'];\n break;\n case 'store_name':\n $value = $lastSubmit['store_name'];\n break;\n case 'region':\n $value = $lastSubmit['region'];\n break;\n case 'currency':\n $value = $lastSubmit['currency'];\n break;\n case 'timezone':\n $value = $lastSubmit['timezone'];\n break;\n default:\n }\n } else {\n switch ($name) {\n case 'currency':\n $value = XLite::getInstance()->getCurrency()->getCode();\n break;\n case 'timezone':\n $time = new DateTime('now', Converter::getTimeZone());\n $value = $time->getTimezone()->getName();\n if ($value == 'UTC') {\n $value = 'Europe/London';\n }\n break;\n case 'url':\n $https = Config::getInstance()->Security->customer_security;\n if ($https) {\n $domain = ConfigParser::getOptions(['host_details', 'https_host']);\n $value = 'https://' . $domain;\n } else {\n $domain = ConfigParser::getOptions(['host_details', 'http_host']);\n $value = 'http://' . $domain;\n }\n break;\n default:\n }\n }\n\n return $value;\n }", "function dialogue_get_cached_param($name, $value, $default) {\n global $PAGE;\n\n if (!isset($PAGE->cm->id)) {\n return $default;\n }\n\n $cache = cache::make('mod_dialogue', 'params');\n $cacheparam = $name . '-' . $PAGE->cm->id;\n\n if (is_null($value)) {\n $cachevalue = $cache->get($cacheparam);\n if ($cachevalue) {\n return $cachevalue;\n }\n }\n\n if ($value) {\n $cache->set($cacheparam, $value);\n return $value;\n }\n\n return $default;\n}", "public function get($name, $default = null) {\n\t\treturn $this->data[$name] ?? $default;\n\t}", "public function get(string $name, mixed $default = null): mixed;", "public function getOption(string $name);", "public function getOption(string $name);", "public function get(string $name, $default = null)\n {\n return $this->_params[$name] ?? $default;\n }", "function ot_get_option( $option_id, $default = '' ) { \r\n\t\t$options = get_option( 'option_tree' );\r\n\t\t/* look for the saved value */\r\n\t\tif ( isset( $options[ $option_id ] ) && !empty( $options[ $option_id ] ) ) {\r\n\t\t\treturn $options[ $option_id ];\r\n\t\t}\r\n\t\treturn $default;\r\n\t}", "public function get($name, $default);", "public function getOption($name, $default = null)\n {\n return isset($this->options[$name]) ? $this->options[$name] : $default;\n }", "public static function data_get($name = null, $default_value = null) {\n\t\tif (empty($name)) {\n\t\t\treturn self::$data_get;\n\t\t}\n\n\t\tif (isset(self::$data_get[$name])) {\n\t\t\treturn self::$data_get[$name];\n\t\t}\n\n\t\treturn $default_value;\n\t}", "public function option($name,$default=null)\n {\n if ( !$name || !is_string($name) ) {\n throw new ScriptException(\"Option name is missing or invalid in call to Script::option()\");\n }\n\n $option = null;\n if ( $this->optionExists($name) ) {\n $option = new Parameter($this->options->get($name));\n }\n else {\n $option = new Parameter($default);\n }\n return $option;\n }", "public function loadParam($name, $default = \"\")\n {\n $grep_key = $this->_pregGrepKeys(\"/\\b(?<!-)$name(?!-)\\b/i\", $_REQUEST);\n if (!$grep_key || !array_values($grep_key)[0]) {\n return $default;\n }\n $value = array_values($grep_key)[0];\n $value = Encoding::fixUTF8($value);\n if (get_magic_quotes_gpc() != 1) {\n $value = self::addSlashesExtended($value);\n }\n return $value;\n }", "public static function chooseParam($name,$defaultValue=null)\n {\n $ret = null;\n $res = file_get_contents('php://input');\n $res = @json_decode($res, TRUE);\n $req_param = isset($_REQUEST[$name])?$_REQUEST[$name]:$defaultValue;\n $req_param = isset($res[$name])?$res[$name]:$req_param;\n return $req_param;\n }", "protected function getParameter($name, $default = null)\n {\n if (array_key_exists($name, $this->parameters))\n {\n return $this->parameters[$name];\n }\n\n return $default;\n }", "public function getSafely(string $name, string $default = '')\n {\n return $this->has($name) ? $this->get($name) : $default;\n }", "public function get($name, $default = null)\n {\n $result = $default;\n if (array_key_exists($name, $this->_data)) {\n $result = $this->_data[$name];\n }\n return $result;\n }", "function _get_config_param($name)\r\n\t{\r\n\t\treturn $this->db->query(\"select value from m_config_params where name = ? \",$name)->row()->value;\r\n\t}", "public function getOpt(string $name, $default = null)\n {\n // is long-opt\n if (isset($name[1])) {\n return $this->lOpt($name, $default);\n }\n\n return $this->sOpt($name, $default);\n }", "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}", "protected function getOption($name)\r\n\t{\r\n\t\tif (defined('EXECUTION_MODE') && isset ($this->configVariables[EXECUTION_MODE][$name]))\r\n\t\t{\r\n\t\t\treturn $this->configVariables[EXECUTION_MODE][$name];\r\n\t\t}\r\n\t\telseif (isset($this->configVariables[$name]))\r\n\t\t{\r\n\t\t\treturn $this->configVariables[$name];\r\n\t\t}\r\n\t\telseif (!is_null($this->baseConfig))\r\n\t\t{\r\n\t\t\treturn $this->baseConfig->getOption($name);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "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 getValue($name) {\n \t$result = '';\n \t$where = array();\n \t$where[self::field_name] = $name;\n \t$config = array();\n \tif (!$this->sqlSelectRecord($where, $config)) {\n \t\t$this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, $this->getError()));\n \t\treturn false;\n \t}\n \tif (sizeof($config) < 1) {\n \t\t$this->setError(sprintf('[%s - %s] %s', __METHOD__, __LINE__, sprintf(ed_error_cfg_name, $name)));\n \t\treturn false;\n \t}\n \t$config = $config[0];\n \tswitch ($config[self::field_type]):\n \tcase self::type_array:\n \t\t$result = explode(\",\", $config[self::field_value]);\n \t\tbreak;\n \tcase self::type_boolean:\n \t\t$result = (bool) $config[self::field_value];\n \t\tbreak;\n \tcase self::type_email:\n \tcase self::type_path:\n \tcase self::type_string:\n \tcase self::type_url:\n \t\t$result = (string) utf8_decode($config[self::field_value]);\n \t\tbreak;\n \tcase self::type_float:\n \t\t$result = (float) $config[self::field_value];\n \t\tbreak;\n \tcase self::type_integer:\n \t\t$result = (integer) $config[self::field_value];\n \t\tbreak;\n \tdefault:\n \t\t$result = utf8_decode($config[self::field_value]);\n \t\tbreak;\n \tendswitch;\n \treturn $result;\n }", "public function getParamValue($paramName, $defaultValue='__VALUE_NOT_SET__', $scapeHtml=true) {\n\t\t// Array. Not used\n\t\tif ( is_array($this->params ) ) {\n\t\t\t$val = isset($this->params[$paramName]) ? $this->params[$paramName] : $defaultValue;\n\t\t// Params. Actually only used for\n // _completeFK\n // Id\n // lang\n // setAsCurrLang\n\t\t} else if ( $this->params instanceof Params ) {\n\t\t\t$val = $this->params->getParam($paramName, $defaultValue);\n\t\t// JSON. This is the one used mainly when retrieving the data entered by \n\t\t// the user in forms\n\t\t} else if ( is_object($this->params) ) {\n\t\t\t// @todo : I'm not sure if this is a good solution :-( We can still try to get\n\t\t\t// the parameter for the request (that is useful when htaccess add parameters to the call)\n\t\t\t$val = isset($this->params->{$paramName}) ? $this->params->{$paramName} : ( isset($_REQUEST[$paramName]) ? $_REQUEST[$paramName] : $defaultValue);\n\t\t\n // It has been decided to DO NOT sanitize the variables here neither \n // in the database. They are ONLY sanitized in the FE and in the SQL \n // because only prepared statements are used\n\n\t\t\tif ( !is_null($val) && is_string($val) ) {\n\t\t\t\t// OK, if it as empty value we will treat this as a null ...\n\t\t\t\t// This change comes form the following situation:\n\t\t\t\t// + A FK field rendered as a <select> with an empty option\n\t\t\t\t// + When the values are sent from the client, this field has the value \"\"\n\t\t\t\t// + In the server it is checked if it NOT NULL, so \"\" is ok\n\t\t\t\t// + When building the query fex. to insert, it fails\n\t\t\t\t// DO NOT USE empty()!!! It will return TRUE if fex. the value is 0 (as in \n\t\t\t\t// a checkbox)\n\t\t\t\tif (strlen(trim($val))==0) {\n\t\t\t\t\t$val=null;\n\t\t\t\t} \n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Exception('Params of type \"' . gettype($this->params) . '\" not valid.');\t\t\t\n\t\t}\n\t\t\n\t\tif ( $val==='__VALUE_NOT_SET__' ) {\n\t\t\tthrow new Exception('Param \"' . $paramName . '\" not set and not default value provided');\t\t\t\n\t\t}\n\n\t\treturn $val;\n\t}", "public function get($name, $default = null);", "function option($key = null, $default = null, $raw = false)\n {\n $options = app('options');\n\n if (is_null($key)) {\n return $options;\n }\n\n if (is_array($key)) {\n foreach ($key as $innerKey => $innerValue) {\n $options->set($innerKey, $innerValue);\n }\n return;\n }\n //$optionsData = $options->get();\n //return $optionsData[$key]['option_value'];\n return $options->get($key, $default, $raw)['option_value'];\n }", "public function get(string $name, $default = null)\n {\n $result = $default;\n if ($this->attributes->has($name)) {\n $result = $this->attributes->get($name, $default);\n } elseif ($this->query->has($name)) {\n $result = $this->query->get($name, $default);\n } elseif ($this->post->has($name)) {\n $result = $this->post->get($name, $default);\n }\n\n return $result;\n }", "public function getDefaultValue($profileId, $optionName, $option)\n\t{\n\t\t$optionValue = $option[NextADInt_Multisite_Option_Attribute::DEFAULT_VALUE];\n\n\t\t// generate with Sanitizer a new value, persist it and find it (again).\n\t\tif (NextADInt_Core_Util_ArrayUtil::get(NextADInt_Multisite_Option_Attribute::PERSIST_DEFAULT_VALUE, $option, false)) {\n\t\t\t$params = $option[NextADInt_Multisite_Option_Attribute::SANITIZER];\n\t\t\t$optionValue = $this->sanitizer->sanitize($optionValue, $params, $option, true);\n\n\t\t\t$this->persistValue($profileId, $optionName, $optionValue);\n\t\t}\n\n\t\treturn $optionValue;\n\t}", "public static function get($name, $default = null)\r\n {\r\n // checking if the $_REQUEST is set\r\n if(isset($_REQUEST[$name]))\r\n {\r\n return $_REQUEST[$name]; // return the value from $_GET\r\n }\r\n else\r\n {\r\n return $default; // return the default value\r\n }\r\n }" ]
[ "0.73734915", "0.72631043", "0.6638705", "0.66323423", "0.6631933", "0.6616852", "0.6524208", "0.65225476", "0.65087324", "0.64684045", "0.6453925", "0.6391523", "0.63754416", "0.6369586", "0.633877", "0.6336892", "0.6278553", "0.624827", "0.6151625", "0.61405945", "0.6115252", "0.61149234", "0.60896134", "0.60669214", "0.60542274", "0.60542274", "0.59853923", "0.59752166", "0.59730655", "0.59680015", "0.59584016", "0.5941648", "0.5930067", "0.5921794", "0.59193945", "0.59084934", "0.590091", "0.590091", "0.590091", "0.5897324", "0.5890733", "0.58810437", "0.5877753", "0.587306", "0.5870182", "0.5866665", "0.585724", "0.58528125", "0.5846708", "0.5843488", "0.5837317", "0.58256614", "0.5810528", "0.5805432", "0.57993674", "0.577474", "0.57663804", "0.57507044", "0.5750651", "0.57345545", "0.57266647", "0.57258093", "0.57254106", "0.5722925", "0.5717268", "0.57153296", "0.5709739", "0.57076114", "0.57047576", "0.57035816", "0.56957316", "0.56955105", "0.56865263", "0.5685046", "0.5682693", "0.5676387", "0.5676387", "0.567585", "0.56729853", "0.5670344", "0.56673926", "0.56633055", "0.565845", "0.56583077", "0.56552273", "0.5649287", "0.56484747", "0.5647727", "0.5619693", "0.5617201", "0.5615315", "0.56027573", "0.5586739", "0.5586684", "0.55812687", "0.5576223", "0.5575596", "0.5574323", "0.55742097", "0.5572678" ]
0.71982706
2
Return an array of category ids for a post.
function create_or_get_categories( $data, $common_parent_id ) { $ids = array( 'post' => array(), 'cleanup' => array(), ); if ( empty( $data['csv_post_categories'] ) ) { return $ids; } $items = array_map( 'trim', explode( ',', $data['csv_post_categories'] ) ); foreach ( $items as $item ) { if ( is_numeric( $item ) ) { if ( get_category( $item ) !== NULL ) { $ids['post'][] = $item; } else { $this->log['error'][] = "Category ID {$item} does not exist, skipping."; } } else { $parent_id = $common_parent_id; // item can be a single category name or a string such as // Parent > Child > Grandchild $categories = array_map( 'trim', explode( '>', $item ) ); if ( count( $categories ) > 1 && is_numeric( $categories[0] ) ) { $parent_id = $categories[0]; if ( get_category( $parent_id ) !== NULL ) { // valid id, everything's ok $categories = array_slice( $categories, 1 ); } else { $this->log['error'][] = "Category ID {$parent_id} does not exist, skipping."; continue; } } foreach ( $categories as $category ) { if ( $category ) { $term = $this->term_exists( $category, 'category', $parent_id ); if ( $term ) { $term_id = $term['term_id']; } else { $term_id = wp_insert_category( array( 'cat_name' => $category, 'category_parent' => $parent_id, ) ); $ids['cleanup'][] = $term_id; } $parent_id = $term_id; } } $ids['post'][] = $term_id; } } return $ids; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategoryIds()\n {\n if (! $this->hasData('category_ids')) {\n $wasLocked = false;\n if ($this->isLockedAttribute('category_ids')) {\n $wasLocked = true;\n $this->unlockAttribute('category_ids');\n }\n $ids = $this->_getResource()->getCategoryIds($this);\n $this->setData('category_ids', $ids);\n if ($wasLocked) {\n $this->lockAttribute('category_ids');\n }\n }\n\n return (array) $this->_getData('category_ids');\n }", "public function get_cat_ids()\n {\n $categories = $this->categories\n ->where('is_active', '=', 1)\n ->find_all();\n\n $ids = [];\n\n foreach ($categories as $category) {\n if ($category->loaded()) {\n $ids[] = $category->id;\n }\n }\n\n return $ids;\n }", "public function getPostCategories($post_id=null)\n\t{\n\t\tif(is_null($post_id)){\n\t\t\t$this->logger->logError('No Post ID provided.','Input Error');\n\t\t\treturn false;\n\t\t}\n\t\t$q = \"SELECT in_categories.category_name FROM in_categories INNER JOIN in_posts_categories \";\n\t\t$q.= \"ON in_categories.id=in_posts_categories.category_id \"; \n\t\t$q.=\"WHERE in_posts_categories.post_id=:post_id\";\n\t\t$vars = array(\n\t\t\t\":post_id\"=>$post_id\n\t\t);\n\t\t$ps = $this->execute($q,$vars);\n\t\t$result = $this->getDataRowsAsArray($ps);\n\t\treturn $result;\n\t}", "function getPostCategory($post_categories){\n\n\t$newpost_cat_arr = [];\n\n\tforeach ($post_categories as $categorys){\n\n\t\tforeach ($categorys as $category){\n\n\t\t\t$cat_id = get_cat_ID($category);\n\n\t\t\tif ($cat_id != 0 ){\n\t\t\t\t$newpost_cat_arr[] = $cat_id;\n\t\t\t} else{\n\n\t\t\t\t$insertCategory = wp_insert_term($category, 'category', array());\n\n\t\t\t\t$newpost_cat_arr[] = $insertCategory['term_id'];\n\n\t\t\t}\n\n\t\t}\n\t}\n\n\treturn $newpost_cat_arr;\n}", "function get_post_categories($post_id)\n{\n $res = array();\n $categories = get_the_category($post_id);\n foreach ($categories as $category) {\n array_push($res, $category->name);\n }\n return $res;\n}", "public function get_ids()\n\t{\n\t\treturn $this->_cat_ids;\n\t}", "public function get_post_categories() {\n\t\tglobal $posts;\n\t\t$categories_as_string = '';\n\n\t\t$categories = get_the_category( $posts[0]->ID );\n\t\tif ( is_array( $categories ) && ! empty( $categories ) ) {\n\t\t\t$category_names = wp_list_pluck( $categories, 'cat_name' );\n\t\t\t$categories_as_string = implode( ', ', $category_names );\n\t\t}\n\n\t\t/**\n\t\t * Filter the categories as derived by this function.\n\t\t *\n\t\t * @param string $categories_as_string The derived category list. Comma-separated list.\n\t\t * @param array $categories The array of post category objects.\n\t\t */\n\t\treturn apply_filters( 'amt_get_the_categories', $categories_as_string, $categories );\n\t}", "function get_all_category_ids()\n {\n }", "public function getListOfIdOfAllCategories()\n {\n $sqlQuery = \"SELECT `id` FROM `categories` \";\n $queryResult = $this->dataBase->query($sqlQuery);\n $listOfIDofAllCategories = [];\n\n while($tableRow = $queryResult->fetch()) {\n $listOfIDofAllCategories[] = $tableRow[\"id\"];\n }\n\n return $listOfIDofAllCategories;\n }", "public function GetProductCategoryIds()\n\t\t{\n\t\t\treturn $this->loadCats;\n\t\t}", "public function getPostsCategories()\n {\n return $this->postsCategories;\n }", "public function getCategories()\n {\n return $this->hasMany(Category::className(), ['id' => 'category_id'])->viaTable(self::tablePrefix().'cms_post_category', ['post_id' => 'id']);\n }", "function getCategories() {\n $this->db->select(\"*\");\n $query = $this->db->get('post_category');\n if ($query->num_rows() > 0) {\n return $query->result_array();\n }\n return array();\n }", "public function categories()\n {\n $new = $this->postterms->filter(function($term)\n {\n return $term->termtaxonomy->taxonomy == 'category';\n });\n\n return $new->map(function($term)\n {\n return $term->termtaxonomy->term; \n });\n }", "public function getInEventCategoryIds()\n {\n if ($this->_inEventCategoryIds === null) {\n /** @var Collection $collection */\n $collection = $this->_eventCollectionFactory->create();\n $this->_inEventCategoryIds = $collection->getColumnValues('category_id');\n }\n return $this->_inEventCategoryIds;\n }", "public function getAssosCats($postOrArray)\n {\n $cats = array();\n $sth = $this->pdo->prepare('SELECT c.title FROM ' . DB_PREFIX . 'categories c JOIN ' . DB_PREFIX .'posts_categories pc'\n . ' ON pc.cat_id = c.id WHERE pc.post_id = :pid');\n if (is_array($postOrArray)) {\n foreach ($postOrArray as $post) {\n $sth->bindValue(':pid', $post['id']);\n $sth->execute();\n $cats[$post['id']] = $sth->fetchAll();\n }\n return $cats;\n }\n $sth->bindValue(':pid', $postOrArray);\n $sth->execute();\n return $sth->fetchAll();\n }", "public function categories()\n {\n $query = \"SELECT DISTINCT category from blog_post \n WHERE deleted = 0\";\n\n $stmt = static::$dbh->query($query);\n\n $images = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\n return $images;\n\n }", "public static function get_category_post_count($category_id)\r\n {\r\n parent::$sql->setQuery(\"SELECT * FROM \" . parent::$prefix . \"488_articles WHERE ( FIND_IN_SET(\" . $category_id . \", REPLACE(categories, ',', ',')) AND status = '1' )\");\r\n return parent::$sql->getRows();\r\n }", "public function getCategoryUids()\n {\n $categoryUids = array();\n /** @var Category $category */\n foreach ($this->categories as $category) {\n $categoryUids[] = $category->getUid();\n }\n return $categoryUids;\n }", "private function getPostCategoryFields($postID, $post){\n\t\t\n\t\t//choose right taxonomy\n\t\t$postType = $post->post_type;\n\t\t\t\t\n\t\t$taxonomy = $this->getPostCategoryTaxonomy($postType);\n\t\t\n\t\tif(empty($postID))\n\t\t\treturn(array());\n\t\t\n\t\t$arrTerms = UniteFunctionsWPUC::getPostSingleTerms($postID, $taxonomy);\n\t\t\n\t\t//get single category\n\t\tif(empty($arrTerms))\n\t\t\treturn(array());\n\t\t\n\t\t$arrCatsOutput = $this->modifyArrTermsForOutput($arrTerms);\n\t\t\n\t\t//get term data\n\t\tif(count($arrTerms) == 1){\t\t//single\n\t\t\t$arrTermData = UniteFunctionsUC::getArrFirstValue($arrTerms);\n\t\t}else{\t\t//multiple\n\t\t\n\t\t\tunset($arrTerms[\"uncategorized\"]);\n\t\t\t\n\t\t\t$arrTermData = UniteFunctionsUC::getArrFirstValue($arrTerms);\t\t\t\n\t\t}\n\n\t\t$catID = UniteFunctionsUC::getVal($arrTermData, \"term_id\");\n\t\t\n\t\t\n\t\t$arrCategory = array();\n\t\t$arrCategory[\"category_id\"] = $catID;\n\t\t$arrCategory[\"category_name\"] = UniteFunctionsUC::getVal($arrTermData, \"name\");\n\t\t$arrCategory[\"category_slug\"] = UniteFunctionsUC::getVal($arrTermData, \"slug\");\n\t\t$arrCategory[\"category_link\"] = UniteFunctionsUC::getVal($arrTermData, \"link\");\n\t\t$arrCategory[\"categories\"] = $arrCatsOutput;\n\n\t\t\n\t\treturn($arrCategory);\n\t}", "static function categories()\n {\n $category = \\SOE\\DB\\Category::where('parent_id', '0')\n ->orderBy('category_order')\n ->get();\n $return = array();\n foreach($categories as $cat)\n {\n $return[$cat->id] = $cat->slug;\n }\n return $return;\n }", "private function getCategoriesByPost($posts) {\n foreach ($posts as $post) {\n $post_categories = $post->post_categorie;\n foreach ($post_categories as $post_categorie) {\n $categories = $post_categorie->categories;\n foreach ($categories as $categorie) {\n $ctg[$post->post_id].= empty($ctg[$post->post_id]) ? $categorie->categorie_name : \", \" . $categorie->categorie_name;\n }\n }\n }\n return $ctg;\n }", "function wpsl_get_term_ids( $cat_list ) {\n\n $term_ids = array();\n $cats = explode( ',', $cat_list );\n\n foreach ( $cats as $key => $term_slug ) {\n $term_data = get_term_by( 'slug', $term_slug, 'wpsl_store_category' );\n\n if ( isset( $term_data->term_id ) && $term_data->term_id ) {\n $term_ids[] = $term_data->term_id;\n }\n }\n\n return $term_ids;\n}", "public function get_categories()\n {\n $param = array(\n 'delete_flg' => $this->config->item('not_deleted','common_config')\n );\n $groups = $this->get_tag_group();\n\n if (empty($groups)) return array();\n\n $group_id = array_column($groups, 'tag_group_id');\n $param = array_merge($param, array('group_id' => $group_id));\n\n $tags = $this->Logic_tag->get_list($param);\n\n return $this->_generate_categories_param($groups, $tags);\n }", "public function categories() {\n return $this->belongsToMany('App\\Models\\Category', 'category_post', 'post_id', 'category_id');\n }", "protected function _get_categories($posts)\n {\n $categories = array();\n foreach ($posts as $post) {\n if (false === isset($post['categories'])) {\n continue;\n }\n foreach ($post['categories'] as $category) {\n $categories[$category][] = $post;\n }\n }\n return $categories;\n }", "public static function getAllChildIds($categoryId)\n {\n $categories = self::getAllChild($categoryId);\n $ids = array();\n\n foreach ($categories as $category) {\n $ids[] = $category->getId();\n }\n\n return $ids;\n }", "public function getCacheIdTagsWithCategories()\n {\n $tags = $this->getCacheTags();\n $affectedCategoryIds = $this->_getResource()->getCategoryIdsWithAnchors($this);\n foreach ($affectedCategoryIds as $categoryId) {\n $tags[] = Mage_Catalog_Model_Category::CACHE_TAG.'_'.$categoryId;\n }\n return $tags;\n }", "function get_distinct_terms($posts,$taxonomy ){\n $ids = array();\n \n foreach ($posts as $post) { \n $galleries = ''; \n \n if(isset($post -> ID)){\n\n $galleries = wp_get_post_terms( $post -> ID , $taxonomy );\n }\n \n if(is_array($galleries)){\n foreach ($galleries as $gallery) {\n if(!in_array($gallery->term_id, $ids) ){\n $ids[] = $gallery->term_id;\n \n }\n }\n }\n }\n \n return $ids; \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}", "function getCategories() {\n\t\t$answers = $this->getAnswers();\n\t\t$categories = array();\n\t\t\n\t\tforeach((array) $answers as $answer) {\n\t\t\t$question = $answer->getQuestion();\n\t\t\t$category = $question->getCategory();\n\t\t\t$categories[$category->getUID()] = $category;\n\t\t}\n\t\t\n\t\treturn $categories;\n\t}", "protected function _getAllCategoriesForStore()\n {\n $read = Mage::getModel('core/resource')->getConnection('core_read');\n $table = $this->getTableName(\"catalog_category_entity\");\n $sql2 = $read->select()->from($table, array('entity_id', 'path'));\n \n $results = $read->fetchPairs($sql2);\n $rootCategoryId = $this->_fStore->getRootCategoryId();\n $categories = array();\n foreach ($results as $entity_id => $path) {\n $path = explode('/', $path);\n if (count($path) > 1) {\n if ($path[1] == $rootCategoryId) {\n $categories[] = $entity_id;\n }\n } else {\n $categories[] = $entity_id;\n }\n }\n \n return $categories;\n }", "public function getCategoryIds($category_id)\n\t{\n\t\t$tname=$this->tablename(\"catalog_category_entity\");\n\t\t$result=$this->selectAll(\n\t\t\"SELECT entity_id as pid,attribute_set_id as asid FROM $tname WHERE entity_id=?\", $category_id);\n\t\tif(count($result)>0)\n\t\t{\n\t\t\treturn $result[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function getCategories() {\n $sql = sprintf(\"SELECT * FROM category c WHERE EXISTS (SELECT * FROM project_category pc WHERE pc.project_id = %d AND pc.category_id = c.id)\", $this->id);\n $categories = array();\n $results = self::$connection->execute($sql);\n foreach ($results as $category_arr) {\n array_push($categories, new Category($category_arr));\n }\n return $categories;\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 static function getCategoriesList()\n {\n\n $db = Db::getConnection();\n\n $categoryList = array();\n\n $result = $db->query('SELECT id, name FROM category '\n . 'ORDER BY sort_order ASC');\n\n $i = 0;\n while ($row = $result->fetch()) {\n $categoryList[$i]['id'] = $row['id'];\n $categoryList[$i]['name'] = $row['name'];\n $i++;\n }\n\n return $categoryList;\n }", "public function getCategoryIds($questionId) {\n\t\t$where = array('questionid = ' . $questionId);\n\t\t$results = $this->fetchAll($where);\n\t\tif (!$results) {\n\t\t\tthrow new Model_Exception_QuestionNotFound('hascategory', $questionId);\n\t\t}\n\n\t\t$ret = array();\n\t\tforeach ($results->toArray() as $result) {\n\t\t\t$ret[] = $result['categoryid'];\n\t\t}\n\t\treturn $ret;\n\t}", "public function categories() : array\n {\n return $this->categories;\n }", "public function categories(): array\n {\n return $this->categories;\n }", "public static function getCategories()\n {\n //get cached categories\n $catCached = Yii::$app->cache->get('catCached');\n if ($catCached) {\n return $catCached;\n } else {\n return self::find()->indexBy('category_id')->asArray()->all();\n }\n }", "function thb_portfolioCategories(){\n\t$portfolio_categories = get_terms('portfolio-category', array('hide_empty' => false));\n\t$out = array();\n\tif (empty($portfolio_categories->errors)) {\n\t\tforeach($portfolio_categories as $portfolio_category) {\n\t\t\t$out[$portfolio_category->name] = $portfolio_category->term_id;\n\t\t}\n\t}\n\treturn $out;\n}", "public function fetch_postcategory()\n\t\t{\n\t\t\t$query = $this->db->query('SELECT * FROM table_postcategory');\n\n foreach ($query->result() as $row)\n {\n $data[] = $row;\n }\n return $data;\n\t\t}", "public function revisionIds(CategoryInterface $entity);", "public function getPostIDs() {\n\t\treturn self::getAllPostIDs($this->threadID);\n\t}", "public function getSelectedCategories()\n {\n //get or create user scenario\n $scenario = Scenarios::getOrCreateUserScenario();\n\n if (!$selectedCategories = $scenario->categories()->select('categories.id')->get()) {\n return null;\n }\n\n //subtract the ids from the query and put them into an array\n $selectedCategoriesArray = [];\n foreach ($selectedCategories as $selectedCategory) {\n $selectedCategoriesArray[] = $selectedCategory->id;\n }\n\n return $selectedCategoriesArray;\n }", "function getCategory($id) {\n $this->db->select(\"*\");\n $this->db->where(\"categoryID\", $id);\n $query = $this->db->get('post_category');\n if ($query->num_rows() > 0) {\n return $query->result_array();\n }\n return array();\n }", "public function category_ids ($post, $cats, $unfamiliar_category = 'create', $taxonomies = NULL, $params = array()) {\n\t\t$singleton = (isset($params['singleton']) ? $params['singleton'] : true);\n\t\t$allowFilters = (isset($params['filters']) ? $params['filters'] : false);\n\n\t\t$catTax = 'category';\n\n\t\tif (is_null($taxonomies)) :\n\t\t\t$taxonomies = array('category');\n\t\tendif;\n\n\t\t// We need to normalize whitespace because (1) trailing\n\t\t// whitespace can cause PHP and MySQL not to see eye to eye on\n\t\t// VARCHAR comparisons for some versions of MySQL (cf.\n\t\t// <http://dev.mysql.com/doc/mysql/en/char.html>), and (2)\n\t\t// because I doubt most people want to make a semantic\n\t\t// distinction between 'Computers' and 'Computers '\n\t\t$cats = array_map('trim', $cats);\n\n\t\t$terms = array();\n\t\tforeach ($taxonomies as $tax) :\n\t\t\t$terms[$tax] = array();\n\t\tendforeach;\n\n\t\tforeach ($cats as $cat_name) :\n\t\t\tif (strlen(trim($cat_name)) < 1) :\n\t\t\t\tcontinue;\n\t\t\tendif;\n\n\t\t\t$oTerm = new SyndicatedPostTerm($cat_name, $taxonomies, $post);\n\n\t\t\tif ($oTerm->is_familiar()) :\n\n\t\t\t\t$tax = $oTerm->taxonomy();\n\t\t\t\tif (!isset($terms[$tax])) :\n\t\t\t\t\t$terms[$tax] = array();\n\t\t\t\tendif;\n\t\t\t\t$terms[$tax][] = $oTerm->id();\n\n\t\t\telse :\n\n\t\t\t\tif ('tag'==$unfamiliar_category) :\n\t\t\t\t\t$unfamiliar_category = 'create:post_tag';\n\t\t\t\tendif;\n\n\t\t\t\tif (preg_match('/^create(:(.*))?$/i', $unfamiliar_category, $ref)) :\n\t\t\t\t\t$tax = $catTax; // Default\n\n\t\t\t\t\tif (isset($ref[2])\n\t\t\t\t\tand strlen($ref[2]) > 2) :\n\t\t\t\t\t\t$tax = $ref[2];\n\t\t\t\t\tendif;\n\n\t\t\t\t\t$inserted = $oTerm->insert($tax);\n\t\t\t\t\tif (!is_null($inserted)) :\n\t\t\t\t\t\tif (!isset($terms[$tax])) :\n\t\t\t\t\t\t\t$terms[$tax] = array();\n\t\t\t\t\t\tendif;\n\t\t\t\t\t\t$terms[$tax][] = $inserted;\n\t\t\t\t\telse :\n\n\t\t\t\t\tendif; // !is_null($inserted)\n\t\t\t\tendif; // preg_match(...)\n\n\t\t\tendif; /* ($oTerm->is_familiar()) */\n\t\tendforeach;\n\n\t\t$filtersOn = $allowFilters;\n\t\tif ($allowFilters) :\n\t\t\t$filters = array_filter(\n\t\t\t\t$this->setting('match/filter', 'match_filter', array()),\n\t\t\t\t'remove_dummy_zero'\n\t\t\t);\n\t\t\t$filtersOn = ($filtersOn and is_array($filters) and (count($filters) > 0));\n\t\tendif;\n\n\t\t// Check for filter conditions\n\t\tforeach ($terms as $tax => $term_ids) :\n\t\t\tif ($filtersOn\n\t\t\tand (count($term_ids)==0)\n\t\t\tand in_array($tax, $filters)) :\n\t\t\t\t$terms = NULL; // Drop the post\n\t\t\t\tbreak;\n\t\t\telse :\n\t\t\t\t$terms[$tax] = array_unique($term_ids);\n\t\t\tendif;\n\t\tendforeach;\n\n\t\tif ($singleton and count($terms)==1) : // If we only searched one, just return the term IDs\n\t\t\t$terms = end($terms);\n\t\tendif;\n\n\t\tFeedWordPress::diagnostic(\n\t\t\t'syndicated_posts:categories',\n\t\t\t'Category: MAPPED term names '.json_encode($cats).' to IDs: '.json_encode($terms)\n\t\t);\n\t\treturn $terms;\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 getListPostsAttribute()\n {\n $categoryIds = [$this->id];\n\n if ($this->children()->count() > 0) {\n $categoryIds += $this->children()->pluck('id')->all();\n }\n\n return Post::whereIn('category_id', $categoryIds)\n ->where('status', true)\n ->orderBy('updated_at', 'desc')\n ->limit(6)\n ->get();\n }", "public function getCategoriesIdOption() {\r\n\t\t$database =& JFactory::getDBO();\r\n\r\n\t\t$catoptions = array();\r\n\r\n\t\treturn $catoptions;\r\n }", "public function getCategories()\n\t{\n\t\treturn BlogCategory::all();\t\n\t}", "public function categories() {\n\t\treturn $this->terms('category');\n\t}", "public function categories()\n {\n \treturn $this->belongsToMany('App\\Category', 'category_post', 'post_id', 'category_id');\n }", "private function getCategories()\n\t{\n\t\t$blogCategories = BlogCategory::where('status', '=', 1)->whereHas('blogPosts', function($query)\n\t\t{\n\t\t\t$query->active();\n\t\t})->get();\n\n\t\treturn $blogCategories;\n\t}", "protected function set_category_ids() {\n\n\t\t$this->category_ids = isset( $_GET['category_ids'] ) ? array_filter( array_map( 'absint', (array) $_GET['category_ids'] ) ) : array();\n\t}", "public function get_categories() {\n\t\treturn $this->terms('category');\n\t}", "public function getPosts()\n {\n $this->_postCollection->addFilter('is_active', 1);\n $this->_categoryCollection->addFilter('is_active', 1);\n\n $posts = $this->_postCollection->getData();\n $categories = $this->_categoryCollection->getData();\n\n foreach ($posts as &$post) {\n $post['category'] = $this->_getCategoryById($categories, $post['category_id']);\n }\n return $posts;\n }", "function get_category_array() {\n $args = array(\n 'type' => 'post',\n 'child_of' => 0,\n 'parent' => '',\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'hide_empty' => 1,\n 'hierarchical' => 1,\n 'exclude' => '',\n 'include' => '',\n 'number' => '',\n 'taxonomy' => 'category',\n 'pad_counts' => false\n );\n return get_categories($args);\n}", "function get_all_category_objects_by_id() {\n\tglobal $categories_by_id;\n\tif (empty($categories_by_id)) {\n\t\t$categories_by_id = array();\n\t\tforeach (get_categories(\"hide_empty=0\") as $category_object) {\n\t\t\t$categories_by_id[$category_object->term_id] = $category_object;\n\t\t}\n\t}\n\treturn $categories_by_id;\n}", "public function get_categories()\n\t{\n\t\t$sql = \"SELECT ic.*, c.name category_name\n\t\t\tFROM issue_category ic \n\t\t\tLEFT JOIN categories c on ic.category_id = c.category_id\n\t\t\tWHERE ic.issue_id = '{$this->id}'\n\t\t\tORDER BY c.name ASC\";\n\t\t$this->db->execute_query($sql);\n\t\t$arr = array();\n\t\twhile($line = $this->db->fetch_line()) {\n\t\t\t$arr[$line['category_id']] = $line['category_name'];\n\t\t}\n\t\treturn $arr;\n\t}", "public function GetChildCategories()\n\t\t{\n\t\t\t$categoryId = $this->GetCatId();\n\t\t\t$childCatsCache = $GLOBALS['ISC_CLASS_DATA_STORE']->Read('ChildCategories');\n\n\t\t\t// The cache has a cached version of the children for this category so just return it\n\t\t\tif(isset($childCatsCache[$categoryId])) {\n\t\t\t\treturn explode(',', $childCatsCache[$categoryId]);\n\t\t\t}\n\n\t\t\tif(!is_array($childCatsCache)) {\n\t\t\t\t$childCatsCache = array();\n\t\t\t}\n\n\t\t\t$childCats = array();\n\t\t\t$query = \"\n\t\t\t\tSELECT categoryid\n\t\t\t\tFROM [|PREFIX|]categories\n\t\t\t\tWHERE CONCAT(',', catparentlist, ',') LIKE '%,\".(int)$categoryId.\",%' AND categoryid!='\".(int)$categoryId.\"'\n\t\t\t\";\n\t\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\t\t\twhile($child = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {\n\t\t\t\t$childCats[] = $child['categoryid'];\n\t\t\t}\n\t\t\t$childCatsCache[$categoryId] = implode(',', $childCats);\n\t\t\t$GLOBALS['ISC_CLASS_DATA_STORE']->Save('ChildCategories', $childCatsCache);\n\t\t\treturn $childCats;\n\t\t}", "public static function getCategories()\n {\n $app = App::getInstance();\n\n $manager = BaseManager::build('FelixOnline\\Core\\Category', 'category');\n\n try {\n $values = $manager->filter('hidden = 0')\n ->filter('deleted = 0')\n ->filter('id > 0')\n ->order('order', 'ASC')\n ->values();\n\n return $values;\n } catch (\\Exception $e) {\n return array();\n }\n }", "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 getCategoryListAttribute()\n {\n return $this->categories->lists('category_id')->all();\n }", "public function get_category_posts($entry_id = NULL, $status = NULL)\n {\n $where = array(\n 'entry_id' => ($entry_id ?: ee()->publisher_lib->entry_id),\n 'publisher_status' => ($status ?: ee()->publisher_lib->status),\n 'publisher_lang_id' => ee()->publisher_lib->lang_id\n );\n\n $qry = ee()->db->where($where)\n ->get('publisher_category_posts');\n\n if (ee()->publisher_setting->show_fallback() && $qry->num_rows() == 0)\n {\n $where['publisher_lang_id'] = ee()->publisher_lib->default_lang_id;\n\n $qry = ee()->db->where($where)\n ->get('publisher_category_posts');\n\n if ($qry->num_rows() == 0)\n {\n $where['publisher_status'] = PUBLISHER_STATUS_OPEN;\n\n $qry = ee()->db->where($where)\n ->get('publisher_category_posts');\n }\n }\n\n if ($qry->num_rows() == 0)\n {\n return array();\n }\n else\n {\n $cat_ids = array();\n\n foreach ($qry->result_array() as $row)\n {\n $cat_ids[] = $row['cat_id'];\n }\n\n return $cat_ids;\n }\n }", "public function getCategories() {\n\t\t$db = new SelectionDB;\n\n\t\t$categories = $db->getCategories();\n\n\t\t# Get each value, convert to string and push it into categories property\n\t\tfor($i=0; $i<count($categories); $i++) {\n\t\t\t// convert to string\n\t\t\t$category = implode($categories[$i]);\n\t\t\t\n\t\t\t// push into categories property\n\t\t\tarray_push($this->categories, $category);\n\t\t}\n\n\t\t// Removing duplicate values from an array\n\t\t$result = array_unique($this->categories);\n\n\t\treturn $result;\n\t}", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories()\n {\n return $this->categories;\n }", "public function getCategories(){\n\t\n\t\tglobal $wpdb;\n\t\t\n\t\t$allcategories = array();\n\t\t \n\t\t// geta all categories\t\t\n\t\t$categories = $wpdb->get_results('SELECT * FROM '.$this->categories_table.'');\n\t\t\n\t foreach($categories as $cat)\n\t\t{ \n\t\t $allcategories[$cat->term_id][] = $cat->name;\n\t\t\t$allcategories[$cat->term_id][] = $cat->name_de;\n\t\t\t$allcategories[$cat->term_id][] = $cat->name_it;\t\n\t\t}\n\t\t\n\t\treturn $allcategories;\n\t\t\t\n\t}", "public static function getCategoriesList()\r\n {\r\n\r\n $db = Db::getConnection();\r\n\r\n $categoryList = array();\r\n\r\n $result = $db->query('SELECT id, name, status FROM category '\r\n . 'ORDER BY sort_order ASC');\r\n\r\n $i = 0;\r\n while ($row = $result->fetch()) {\r\n $categoryList[$i]['id'] = $row['id'];\r\n $categoryList[$i]['name'] = $row['name'];\r\n $categoryList[$i]['status'] = $row['status'];\r\n $i++;\r\n }\r\n\r\n return $categoryList;\r\n }", "public function getPublishedArticlesCategorized()\n {\n $categories = array();\n foreach ($this->categoryRepository->findAll() as $category) {\n $categories[$category->getSlug()] = array(\n 'category' => $category,\n 'articles' => $this->articleRepository->findPublishedByCategory($category)\n );\n }\n\n return $categories;\n }", "public static function getContentIDs($postID)\n {\n $timePassesList = TimePass::getTimePassesListByPostID($postID);\n $timePasses = TimePass::getTokenizedTimePassIDs($timePassesList);\n $subscriptionsList = Subscription::getSubscriptionsListByPostID($postID);\n $subscriptions = Subscription::getTokenizedIDs($subscriptionsList);\n\n return array_merge(array_merge(array($postID), $timePasses, $subscriptions));\n }", "public function getPostsByCategory($category_id=null)\n\t{\n\t\tif(is_null($category_id)){\n\t\t\t$this->logger->logError('No Category ID provided.','Input Error');\n\t\t\treturn false;\n\t\t}\n\t\t$q = \"SELECT in_posts.* FROM in_posts INNER JOIN in_posts_categories \";\n\t\t$q.= \"ON in_posts.id=in_posts_categories.post_id \"; \n\t\t$q.=\"WHERE in_posts_categories.category_id=:category_id\";\n\t\t$vars = array(\n\t\t\t\":category_id\"=>(int)$category_id\n\t\t);\n\t\t$ps = $this->execute($q,$vars);\n\t\t$result = $this->getDataRowsAsObjects($ps,'Post');\n\t\treturn $result;\n\t}", "private static function _getSelectCategories()\n {\n $categories = Blog::category()->orderBy('name')->all();\n $sortedCategories = array();\n\n foreach($categories as $c)\n $sortedCategories[$c->id] = $c->name;\n\n return $sortedCategories;\n }", "public static function getCategories(){\n $categories = Category::all()->toArray();\n\n return $categories;\n }", "public function getCategories()\n\t{\n\t\treturn $this->categories;\n\t}", "function categories() {\n\n foreach ($this->loadCategoryAssoc() as $id=>$title) {\n $options[] = array(\n 'id' => intval($id),\n 'title' => $title,\n );\n }\n\n return $options;\n }", "public function getTaxonomyIds()\n {\n return $this->taxonomy_ids;\n }", "private function extractPostIds()\n {\n $postIds = [];\n $documentType = $this->getConfig()->getDocumentType();\n\n if ($this->searchResult !== null && isset($this->searchResult['records'][$documentType])) {\n foreach ($this->searchResult['records'][$documentType] as $hit) {\n $postIds[] = (int) $hit['external_id'];\n }\n }\n\n if (empty($postIds)) {\n $postIds = [0];\n }\n\n return $postIds;\n }", "public static function getCategoriesForDropdown()\n {\n return (array) BackendModel::getContainer()->get('database')->getPairs(\n 'SELECT i.id, i.title\n FROM slideshow_categories AS i\n WHERE i.language = ?\n ORDER BY i.sequence ASC',\n array(BL::getWorkingLanguage())\n );\n }", "public function getCategories();", "public function getCategories();", "public function get_post_tags() {\n\t\tglobal $posts;\n\t\t$tags_as_string = '';\n\n\t\t$tags = get_the_tags( $posts[0]->ID );\n\t\tif ( is_array( $tags ) && ! empty( $tags ) ) {\n\t\t\t$tag_names = wp_list_pluck( $tags, 'name' );\n\t\t\t$tags_as_string = implode( ', ', $tag_names );\n\t\t}\n\t\t// MD: This is done to tags but not categories, Should not be done here IMHO.\n\t\t// $tag_list = strtolower( rtrim( $tag_list, ' ,' ) );\n\n\t\t/**\n\t\t * Filter the categories as derived by this function.\n\t\t *\n\t\t * @param string $tags_as_string The derived tag list. Comma-separated list.\n\t\t * @param array $tags The array of post tag objects.\n\t\t */\n\t\treturn apply_filters( 'amt_get_the_tags', $tags_as_string, $tags );\n\t}", "function wp_get_post_cats($blogid = '1', $post_id = 0)\n {\n }", "public function getCategories() {\n return $this->categories;\n }", "function getPublishedPostsByCategory($topic_id) {\n // Connect To Blog DB\n $db = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_DATABASE);\n\n $sql = \"SELECT * FROM posts ps \n\t\t\tWHERE ps.id IN \n\t\t\t(SELECT pc.post_id FROM post_category pc \n\t\t\t\tWHERE pc.topic_id='$topic_id' GROUP BY pc.post_id \n\t\t\t\tHAVING COUNT(1) = 1)\";\n $result = mysqli_query($db, $sql);\n\n // Get all posts by category\n $posts = mysqli_fetch_all($result, MYSQLI_ASSOC);\n $final_posts = array();\n\n foreach ($posts as $post) {\n $post['topic'] = getPostCategory($post['id']);\n array_push($final_posts, $post);\n }\n\n // Close Connection\n $db -> close();\n\n return $final_posts;\n}", "public function getCustomCategoryOld(array $categories, WP_Post $post): array\n\t{\n\t\treturn \\array_merge(\n\t\t\t$categories,\n\t\t\t[\n\t\t\t\t[\n\t\t\t\t\t'slug' => 'eightshift',\n\t\t\t\t\t'title' => \\esc_html__('Eightshift', 'eightshift-libs'),\n\t\t\t\t\t'icon' => 'admin-settings',\n\t\t\t\t],\n\t\t\t]\n\t\t);\n\t}", "public function getContents($cat_id = 0)\n {\n $cat_id = (int) $cat_id;\n \n $ids = array();\n $this->DB_result = $this->DB->sql_query(\"\n SELECT content_id \n FROM \" . DB_CATEGORIES_RELATIONSHIPS . \"\n WHERE category_id = '{$cat_id}'\n \");\n \n while ($row = $this->fetchResultDB())\n {\n $ids[] = $row['content_id']; \n }\n \n return $ids;\n }", "function getProductByCategory(){\n $return = array(); \n $pids = array();\n \n $products = Mage::getResourceModel ( 'catalog/product_collection' );\n \n foreach ($products->getItems() as $key => $_product){\n $arr_categoryids[$key] = $_product->getCategoryIds();\n \n if($this->_config['catsid']){ \n if(stristr($this->_config['catsid'], ',') === FALSE) {\n $arr_catsid[$key] = array(0 => $this->_config['catsid']);\n }else{\n $arr_catsid[$key] = explode(\",\", $this->_config['catsid']);\n }\n \n $return[$key] = $this->inArray($arr_catsid[$key], $arr_categoryids[$key]);\n }\n }\n \n foreach ($return as $k => $v){ \n if($v==1) $pids[] = $k;\n } \n \n return $pids; \n }", "public function getSubCategories($catId) {\n $subCatId = array ();\n $children = Mage::getModel ( 'catalog/category' )->getCategories ( $catId );\n foreach ( $children as $_children ) {\n $subCatId [] = $_children->getId ();\n \n }\n return $subCatId;\n }", "public function getAllCategories() :array\n {\n $query = $this->pdo->query('SELECT id,name FROM categories');\n $row = $query->fetchALL(PDO::FETCH_ASSOC);\n $categories = [];\n foreach ($row as $r)\n array_push($categories, $this->mapArrayToCategory($r));\n return $categories;\n }", "public static function getCategories (Router $router, Post $post) : string\n {\n $categories = array_map(function ($category) use ($router) {\n $url = $router->url('category', ['id' => $category->getId(), 'slug' => $category->getslug()]); \n return '<a href=\"' . $url . '\">' . $category->getName() . '</a>';\n }, $post->getCategories());\n\n return implode(\", \", $categories);\n }", "static function getPostsObjectsFromPostIds($posts_ids){\n $publishedPosts = array();\n for ($i=0; $i < count($posts_ids); $i++) {\n $post_data = self::getPostsMetaDataByPostID($posts_ids[$i]);\n $post_data[\"title\"] = get_the_title($posts_ids[$i]);\n //if there should be a specific image\n if($post_data['background_image'] != \"\"){\n $post_data['background_image'] = get_field(\"background_image\",$posts_ids[$i]);\n }\n // check the category and construct the url\n\n $postCategoryNative = get_the_category($posts_ids[$i]);\n $post_data['category_id'] = $postCategoryNative[0]->term_id;\n\n if( $post_data['category_id']){\n $category_name = get_the_category_by_id($post_data[\"category_id\"]);\n $post_data['category'] = $category_name ? $category_name:\"\";\n //init the feed url according to the category\n $post_data['url'] = get_category_feed_link($post_data['category_id']);\n }else{\n $post_data['url'] = get_field('url',$posts_ids[$i]);\n }\n\n // if($post_data['category']!=\"\"){\n // $post_data['category_id'] = $post_data['category'];\n // $category_name = get_the_category_by_id($post_data[\"category_id\"]);\n // $post_data['category'] = $category_name ? $category_name:\"\";\n // //init the feed url according to the category\n // $post_data['url'] = get_category_feed_link($post_data['category_id']);\n // }\n array_push($publishedPosts,$post_data);\n }\n return $publishedPosts;\n }" ]
[ "0.7214886", "0.71590585", "0.69645774", "0.6927676", "0.6838946", "0.6735355", "0.67011446", "0.6662551", "0.6564934", "0.6540532", "0.6418764", "0.636395", "0.6283312", "0.621669", "0.62058955", "0.6181802", "0.61726445", "0.6107452", "0.60749054", "0.60470337", "0.6041896", "0.599476", "0.5944297", "0.593593", "0.5917015", "0.5915982", "0.58487225", "0.5828496", "0.58123195", "0.5805617", "0.5804635", "0.5789915", "0.57882875", "0.5771067", "0.57529175", "0.57520807", "0.57513833", "0.57492906", "0.5730871", "0.5721403", "0.5705507", "0.56937504", "0.56893075", "0.5677693", "0.567308", "0.56709844", "0.5668135", "0.5662484", "0.5658069", "0.56453425", "0.56375116", "0.56305915", "0.5626263", "0.5619021", "0.5611572", "0.5607022", "0.55939704", "0.5589804", "0.55862564", "0.55803543", "0.5578406", "0.5570262", "0.55675757", "0.55646527", "0.5554984", "0.5554217", "0.5551482", "0.5551482", "0.5551482", "0.5551482", "0.5551482", "0.5551482", "0.5551482", "0.5551482", "0.5551482", "0.5551482", "0.5541807", "0.5537091", "0.55234367", "0.5523287", "0.5520212", "0.5513316", "0.5512891", "0.5509535", "0.5506273", "0.5501375", "0.55005014", "0.54968005", "0.5493754", "0.5493754", "0.5493556", "0.54786515", "0.5469649", "0.54685026", "0.5466875", "0.5465224", "0.54586416", "0.5454903", "0.5454815", "0.54421467", "0.54312027" ]
0.0
-1
Parse taxonomy data from the file array( // hierarchical taxonomy name => ID array 'my taxonomy 1' => array(1, 2, 3, ...), // nonhierarchical taxonomy name => term names string 'my taxonomy 2' => array('term1', 'term2', ...), )
function get_taxonomies( $data ) { $taxonomies = array(); foreach ( $data as $k => $v ) { if ( preg_match( '/^csv_ctax_(.*)$/', $k, $matches ) ) { $t_name = $matches[1]; if ( $this->taxonomy_exists( $t_name ) ) { $taxonomies[ $t_name ] = $this->create_terms( $t_name, $data[ $k ] ); } else { $this->log['error'][] = "Unknown taxonomy $t_name"; } } } return $taxonomies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parse_taxonomy_string($parsed_data, $importer)\n {\n\n if (!empty($parsed_data[$this->taxonomies_id])) {\n\n //$data = json_decode( $parsed_data[ 'products_trending_item' ], true );\n $data = explode(\",\", $parsed_data[$this->taxonomies_id]);\n unset($parsed_data[$this->taxonomies_id]);\n\n if (is_array($data)) {\n\n $parsed_data[$this->taxonomies_id] = array();\n\n // foreach ( $data as $term_id ) {\n // \t$parsed_data[ 'products_trending_item' ][] = $term_id;\n // }\n foreach ($data as $term_name) {\n $term = get_term_by('name', $term_name, $this->taxonomies_id);\n if ($term)\n $parsed_data[$this->taxonomies_id][] = $term->term_id;\n }\n }\n }\n\n return $parsed_data;\n }", "function process_terms() {\n\t\t$this->terms = apply_filters( 'wp_import_terms', $this->terms );\n\n\t\tif ( empty( $this->terms ) )\n\t\t\treturn;\n\n\t\tforeach ( $this->terms as $term ) {\n\t\t\t// if the term already exists in the correct taxonomy leave it alone\n\t\t\t$term_id = term_exists( $term['slug'], $term['term_taxonomy'] );\n\t\t\tif ( $term_id ) {\n\t\t\t\tif ( is_array($term_id) ) $term_id = $term_id['term_id'];\n\t\t\t\tif ( isset($term['term_id']) )\n\t\t\t\t\t$this->processed_terms[intval($term['term_id'])] = (int) $term_id;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( empty( $term['term_parent'] ) ) {\n\t\t\t\t$parent = 0;\n\t\t\t} else {\n\t\t\t\t$parent = term_exists( $term['term_parent'], $term['term_taxonomy'] );\n\t\t\t\tif ( is_array( $parent ) ) $parent = $parent['term_id'];\n\t\t\t}\n\t\t\t$description = isset( $term['term_description'] ) ? $term['term_description'] : '';\n\t\t\t$termarr = array( 'slug' => $term['slug'], 'description' => $description, 'parent' => intval($parent) );\n\n\t\t\t$id = wp_insert_term( $term['term_name'], $term['term_taxonomy'], $termarr );\n\t\t\tif ( ! is_wp_error( $id ) ) {\n\t\t\t\tif ( isset($term['term_id']) )\n\t\t\t\t\t$this->processed_terms[intval($term['term_id'])] = $id['term_id'];\n\t\t\t} else {\n\t\t\t\tprintf( 'Failed to import %s %s', esc_html($term['term_taxonomy']), esc_html($term['term_name']) );\n\t\t\t\tif ( defined('IMPORT_DEBUG') && IMPORT_DEBUG )\n\t\t\t\t\techo ': ' . $id->get_error_message();\n\t\t\t\techo '<br />';\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tunset( $this->terms );\n\t}", "private function readTaxonomy( $taxonomy ){\n $this->taxonomy->clear();\n if ($taxonomy){\n foreach( $taxonomy as $term ){\n if (is_object($term))\n $id = $term->id;\n elseif(is_array($term))\n $id = $term['id'];\n else \n $id = $term;\n if ( $id ){\n $term = new TermTYPE();\n $term->getByID($id);\n $this->taxonomy->append( $term );\n }\n }\n }\n }", "public function import_terms( $args, $assoc_args ) {\n\n\t\t$taxonomy = $args[0];\n\n\t\t// Bail if a taxonomy isn't specified\n\t\tif ( empty( $taxonomy ) ) {\n\t\t\tWP_CLI::error( __( 'Please specify the taxonomy you would like to import your terms for', 'wp-migration' ) );\n\t\t}\n\n\t\t$filename = $assoc_args['file'];\n\n\t\t// Bail if a filename isn't specified, or the file doesn't exist\n\t\tif ( empty( $filename ) || ! file_exists( $filename ) ) {\n\t\t\tWP_CLI::error( __( 'Please specify the filename of the csv you are trying to import', 'wp-migration' ) );\n\t\t}\n\n\t\t// If the taxonomy doesn't exist, bail\n\t\tif ( false === get_taxonomy( $taxonomy ) ) {\n\t\t\tWP_CLI::error( sprintf( __( 'The taxonomy with the name %s does not exist, please use a taxonomy that does exist', 'wp-migration' ), $taxonomy ) );\n\t\t}\n\n\t\t// Use the wp-cli built in uitility to open up the csv file and position the pointer at the beginning of it.\n\t\t$terms = new \\WP_CLI\\Iterators\\CSV( $filename );\n\n\t\tWP_CLI::success( __( 'Starting import process...', 'wp-migration' ) );\n\t\t$terms_added = 0;\n\n\t\t// Loop through each of the rows in the csv\n\t\tforeach ( $terms as $term_row ) {\n\n\t\t\t// dynamically get the array keys for the row. Essentially a way to reference each of the columns in the row\n\t\t\t$array_keys = array_keys( $term_row );\n\t\t\t$term_parent = '';\n\n\t\t\t$i = 0;\n\n\t\t\t// Loop through each of the columns within the current row we are in\n\t\t\tforeach ( $term_row as $term ) {\n\n\t\t\t\t// If the cell is empty skip it.\n\t\t\t\tif ( empty( $term ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$parent_id = 0;\n\n\t\t\t\t// If we are on the first column of the row, we can skip this since there will be no parent\n\t\t\t\tif ( 0 !== $i ) {\n\n\t\t\t\t\t// Continue looking for a parent until we find one\n\t\t\t\t\tfor ( $count = $i; $count > 0; ++$count ) {\n\n\t\t\t\t\t\t// Find the key for the previous column\n\t\t\t\t\t\t$term_parent_key = $array_keys[ ( $count - 1 ) ];\n\n\t\t\t\t\t\t// move array pointer back one key to find the parent term (if there is one)\n\t\t\t\t\t\t$term_parent = $term_row[ $term_parent_key ];\n\n\t\t\t\t\t\tif ( ! empty( $term_parent ) ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// If there's a parent term in the cell to the left, find the ID and pass it when creating the term\n\t\t\t\tif ( ! empty( $term_parent ) ) {\n\n\t\t\t\t\t// Retrieve the parent term object by the name in the cell so we can grab the ID.\n\t\t\t\t\tif ( function_exists( 'wpcom_vip_get_term_by' ) ) {\n\t\t\t\t\t\t$parent_obj = wpcom_vip_get_term_by( 'name', $term_parent, $taxonomy );\n\t\t\t\t\t\t$parent_id = $parent_obj->term_id;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$parent_obj = get_term_by( 'name', $term_parent, $taxonomy );\n\t\t\t\t\t\t$parent_id = $parent_obj->term_id;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// Find out if the term already exists.\n\t\t\t\tif ( function_exists( 'wpcom_vip_term_exists' ) ) {\n\t\t\t\t\t$term_exists = wpcom_vip_term_exists( $term, $taxonomy, $parent_id );\n\t\t\t\t} else {\n\t\t\t\t\t$term_exists = term_exists( $term, $taxonomy, $parent_id );\n\t\t\t\t}\n\n\t\t\t\t// Don't do anything if the term already exists\n\t\t\t\tif ( ! $term_exists ) {\n\n\t\t\t\t\t// Attempt to insert the term.\n\t\t\t\t\t$result = wp_insert_term( $term, $taxonomy, array( 'parent' => $parent_id ) );\n\n\t\t\t\t\tif ( ! is_wp_error( $result ) ) {\n\t\t\t\t\t\tWP_CLI::success( sprintf( __( 'Successfully added the term: %1$s to the %2$s taxonomy with a parent of: %3$s', 'wp-migration' ), $term, $taxonomy, $term_parent ) );\n\t\t\t\t\t\t$terms_added++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( sprintf( __( 'Could not add term: %s error printed out below', 'wp-migration' ), $term ) );\n\t\t\t\t\t\tWP_CLI::warning( $result );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t$i++;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Woohoo! We made it!\n\t\tWP_CLI::success( sprintf( __( 'Successfully imported %d terms. See the taxonomy structure below', 'wp-migration' ), $terms_added ) );\n\t\t$term_tree = WP_CLI::runcommand( sprintf( 'term list %s --fields=term_id,name,parent', $taxonomy ) );\n\t\techo esc_html( $term_tree );\n\n\t}", "static function importTaxonomies( $taxonomy_map ) {\n\t\t\n\t\techo_now( 'Importing categories and tags...' );\n\t\t\n\t\t# Import Drupal vocabularies as WP taxonomies\n\t\t\n\t\t$vocab_map = array();\n\t\t\n\t\t$dr_tax_prefix = '';\n\t\t\n\t\tif( isset( drupal()->vocabulary ) )\n\t\t\t$dr_tax_prefix = '';\n\t\telse if( isset( drupal()->taxonomy_vocabulary ) )\n\t\t\t$dr_tax_prefix = 'taxonomy_';\n\t\t\n\t\t$dr_tax_vocab = $dr_tax_prefix . 'vocabulary';\n\t\t\n\t\t$vocabs = drupal()->$dr_tax_vocab->getRecords();\n\t\t\n\t\tforeach( $vocabs as $vocab ) {\n\t\t\t\n\t\t\tif( 'skip' == $taxonomy_map[ $vocab['name'] ] )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif( 'asis' == $taxonomy_map[ $vocab['name'] ] ) {\n\t\t\t\t\n\t\t\t\techo_now( 'Registering taxonomy for: ' . str_replace(' ','-',strtolower( $vocab['name'] ) ) );\n\t\t\t\t\n\t\t\t\t$vocab_map[ (int)$vocab['vid'] ] = str_replace(' ','-',strtolower( $vocab['name'] ) );\n\t\t\t\t\n\t\t\t\tregister_taxonomy(\n\t\t\t\t\tstr_replace(' ','-',strtolower( $vocab['name'] ) ),\n\t\t\t\t\tarray( 'post', 'page' ),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => $vocab['name'],\n\t\t\t\t\t\t'hierarchical' => (bool)$vocab['hierarchy']\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\techo_now( 'Converting taxonomy: ' . str_replace(' ','-',strtolower( $vocab['name'] ) ) . ' to: ' . $taxonomy_map[ $vocab['name'] ] );\n\t\t\t\t$vocab_map[ (int)$vocab['vid'] ] = $taxonomy_map[ $vocab['name'] ];\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t# Import Drupal terms as WP terms\n\t\t\n\t\t$term_vocab_map = array();\n\t\t\n\t\t$term_data_table = $dr_tax_prefix . 'term_data';\n\t\t$term_hierarchy_table = $dr_tax_prefix. 'term_hierarchy';\n\t\t\n\t\t$terms = drupal()->$term_data_table->getRecords();\n\t\t\n\t\tforeach( $terms as $term ) {\n\n\t\t\t$parent = drupal()->$term_hierarchy_table->parent->getValue(\n\t\t\t\tarray(\n\t\t\t\t\t'tid' => $term['tid']\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif( ! array_key_exists( (int)$term['vid'], $vocab_map ) )\n\t\t\t\tcontinue;\n\n\t\t\tif( apply_filters( 'import_term_skip_term', false, $term, $vocab_map[ (int)$term['vid'] ] ) )\n\t\t\t\tcontinue;\n\n\t\t\t$term_vocab_map[ $term['tid'] ] = $vocab_map[ (int)$term['vid'] ];\n\t\t\t\n//\t\t\techo 'Creating term: ' . $term['name'] . ' from: ' . $term['tid'] . \"<br>\\n\";\n\t\t\t\n\t\t\t$term_result = wp_insert_term(\n\t\t\t\t$term['name'],\n\t\t\t\t$vocab_map[ (int)$term['vid'] ],\n\t\t\t\tarray(\n\t\t\t\t\t'description' => $term['description'],\n\t\t\t\t\t'parent' => (int)$parent\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif( is_wp_error( $term_result ) ) {\n\t\t\t\t\n\t\t\t\techo 'WARNING - Got error creating term: ' . $term['name']; \n\t\t\t\t\n\t\t\t\tif( in_array( 'term_exists', $term_result->get_error_codes() ) ) {\n\t\t\t\t\t\n\t\t\t\t\techo_now( ' -- term already exists as: ' . $term_result->get_error_data() );\n\t\t\t\t\t$term_id = (int)$term_result->get_error_data();\n\n\t\t\t\t\tself::$term_to_term_map[ (int)$term['tid'] ] = $term_id;\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\techo_now( ' -- error was: ' . print_r( $term_result, true ) );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$term_id = $term_result['term_id'];\n\t\t\t\n\t\t\tself::$term_to_term_map[ (int)$term['tid'] ] = $term_id;\n\t\t\t\n\t\t}\n\t\t\n\t\t# Attach terms to posts\n\t\t\n\t\tif( isset( drupal()->term_node ) )\n\t\t\t$term_node_table = 'term_node';\n\t\telse if( isset( drupal()->taxonomy_index ) )\n\t\t\t$term_node_table = 'taxonomy_index';\n\t\t\n\t\t$term_assignments = drupal()->$term_node_table->getRecords();\n\t\t\n\t\tforeach( $term_assignments as $term_assignment ) {\n\t\t\t\n\t\t\tif( ! array_key_exists( $term_assignment['tid'], $term_vocab_map ) )\n\t\t\t\tcontinue;\n\n\t\t\tif( ! array_key_exists( (int)$term_assignment['tid'], self::$term_to_term_map ) )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif( ! array_key_exists( $term_assignment['nid'], self::$node_to_post_map ) )\n\t\t\t\tcontinue;\n\t\t\t\n//\t\t\techo 'Adding term: ' . (int)$term_assignment['tid'] . ' from: ' . self::$term_to_term_map[ (int)$term_assignment['tid'] ] . ' to: ' . self::$node_to_post_map[ $term_assignment['nid'] ] . \"<br>\\n\";\n\t\t\t\n\t\t\t$term_result = wp_set_object_terms(\n\t\t\t\tself::$node_to_post_map[ $term_assignment['nid'] ],\n\t\t\t\tarray( (int)self::$term_to_term_map[ (int)$term_assignment['tid'] ] ),\n\t\t\t\t$term_vocab_map[ $term_assignment['tid'] ],\n\t\t\t\ttrue\n\t\t\t);\n\t\t\t\n\t\t\tif( is_wp_error( $term_result ) )\n\t\t\t\tdie( 'Got error setting object term: ' . print_r( $term_result, true ) );\n\n\t\t\tif( empty( $term_result ) )\n\t\t\t\tdie('Failed to set object term properly.');\n\n\t\t}\n\t\t\n\t\tdo_action( 'imported_taxonomies' );\n\t\t\n\t}", "private function prepareTaxonomy(){\n $taxonomy = null;\n if ( $this->taxonomy->terms() ){\n foreach($this->taxonomy->terms() as $term){\n $taxonomy[] = array( \n \t'id'=>$term->getID(), \n \t'label'=>$term->label->label \n\t\t\t\t);\n }\n }\n return $taxonomy;\n }", "public function taxonomy();", "function create_terms( $taxonomy, $field ) {\n\t\tif ( is_taxonomy_hierarchical( $taxonomy ) ) {\n\t\t\t$term_ids = array();\n\t\t\tforeach ( $this->_parse_tax( $field ) as $row ) {\n\t\t\t\t@list( $parent, $child ) = $row;\n\t\t\t\t$parent_ok = TRUE;\n\t\t\t\tif ( $parent ) {\n\t\t\t\t\t$parent_info = $this->term_exists( $parent, $taxonomy );\n\t\t\t\t\tif ( ! $parent_info ) {\n\t\t\t\t\t\t// create parent\n\t\t\t\t\t\t$parent_info = wp_insert_term( $parent, $taxonomy );\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! is_wp_error( $parent_info ) ) {\n\t\t\t\t\t\t$parent_id = $parent_info['term_id'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// could not find or create parent\n\t\t\t\t\t\t$parent_ok = FALSE;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$parent_id = 0;\n\t\t\t\t}\n\n\t\t\t\tif ( $parent_ok ) {\n\t\t\t\t\t$child_info = $this->term_exists( $child, $taxonomy, $parent_id );\n\t\t\t\t\tif ( ! $child_info ) {\n\t\t\t\t\t\t// create child\n\t\t\t\t\t\t$child_info = wp_insert_term( $child, $taxonomy,\n\t\t\t\t\t\t\tarray( 'parent' => $parent_id ) );\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! is_wp_error( $child_info ) ) {\n\t\t\t\t\t\t$term_ids[] = $child_info['term_id'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $term_ids;\n\t\t} else {\n\t\t\treturn $field;\n\t\t}\n\t}", "public function getTaxonomyTerms();", "function _parse_tax( $field ) {\n\t\t$data = array();\n\t\tif ( function_exists( 'str_getcsv' ) ) { // PHP 5 >= 5.3.0\n\t\t\t$lines = $this->split_lines( $field );\n\n\t\t\tforeach ( $lines as $line ) {\n\t\t\t\t$data[] = str_getcsv( $line, ',', '\"' );\n\t\t\t}\n\t\t} else {\n\t\t\t// Use temp files for older PHP versions. Reusing the tmp file for\n\t\t\t// the duration of the script might be faster, but not necessarily\n\t\t\t// significant.\n\t\t\t$handle = tmpfile();\n\t\t\tfwrite( $handle, $field );\n\t\t\tfseek( $handle, 0 );\n\n\t\t\twhile ( ( $r = fgetcsv( $handle, 999999, ',', '\"' ) ) !== FALSE ) {\n\t\t\t\t$data[] = $r;\n\t\t\t}\n\t\t\tfclose( $handle );\n\t\t}\n\n\t\treturn $data;\n\t}", "function acf_decode_taxonomy_term($value)\n{\n}", "public function get_taxonomy_terms( $post_id = null, $taxonomy = null ) {\n\n\t\tif ( ! $post_id || ! $taxonomy ) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$term_uris = array();\n\n\t\t$terms = wp_get_post_terms( $post_id, $taxonomy, array( 'fields' => 'ids' ) );\n\n\t\tif ( is_wp_error( $terms ) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( $terms ) {\n\t\t\tforeach ( $terms as $term ) {\n\n\t\t\t\t$ptv_id = get_term_meta( $term, 'uri', true );\n\n\t\t\t\tif ( $ptv_id ) {\n\t\t\t\t\t$term_uris[] = sanitize_text_field( $ptv_id );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $term_uris ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $term_uris;\n\t}", "function term_taxonomies_handler( $tt_ids ) {\n\t\tforeach( (array)$tt_ids as $tt_id ) {\n\t\t\t$this->term_taxonomy_handler( $tt_id );\n\t\t}\n\t}", "function acf_decode_taxonomy_terms($strings = \\false)\n{\n}", "function _get_term_hierarchy($taxonomy)\n {\n }", "public function get_taxonomy_terms(\\Twig\\Environment $env, array $context, $taxonomy_name, array $other_fields = NULL) {\n $query = \\Drupal::entityQuery('taxonomy_term')\n ->condition('vid', $taxonomy_name);\n $tids = $query->execute();\n\n $entity_manager = \\Drupal::entityTypeManager();\n $term_storage = $entity_manager->getStorage('taxonomy_term');\n $taxonomy_terms = $term_storage->loadMultiple($tids);\n\n $taxonomy_array = [];\n\n foreach ($taxonomy_terms as $term) {\n $tid = $term->hasTranslation($this->get_current_lang()) ? $term->getTranslation($this->get_current_lang())->get('tid')[0]->value : $term->getTranslation('en')->get('tid')[0]->value;\n\n $values = [\n 'tid' => $tid,\n 'name' => $term->hasTranslation($this->get_current_lang()) ? $term->getTranslation($this->get_current_lang())->get('name')[0]->value : $term->getTranslation('en')->get('name')[0]->value,\n 'parent' => $term->hasTranslation($this->get_current_lang()) ? $term->getTranslation($this->get_current_lang())->get('parent')->target_id : $term->getTranslation('en')->get('parent')->target_id,\n 'children' => isset($taxonomy_array[$tid]) ? $taxonomy_array[$tid]['children'] : [],\n ];\n\n if ($values['parent'] === \"0\") {\n $taxonomy_array[$tid] = $values;\n }\n else {\n $taxonomy_array[$values['parent']]['children'][$tid] = $values;\n }\n\n // Add extra fields if supplied.\n if (!is_null($other_fields)) {\n foreach ($other_fields as $field) {\n if ($values['parent'] === \"0\") {\n $taxonomy_array[$tid][$field] = $term->get($field)[0]->value;\n }\n else {\n $taxonomy_array[$values['parent']]['children'][$tid][$field] = $term->get($field)[0]->value;\n }\n }\n }\n }\n\n return $taxonomy_array;\n }", "public function loadTaxonomyTerms(Node $node) {\n $tids = [];\n $tids[] = $node->get('field_event_building')->target_id;\n $tids[] = $node->get('field_event_room')->target_id;\n $term_storage = $this->entityTypeManager->getStorage('taxonomy_term');\n $terms = $term_storage->loadMultiple(array_filter($tids));\n $taxonomy = [];\n foreach ($terms as $term) {\n $taxonomy[$term->bundle()] = $term->label();\n }\n return $taxonomy;\n }", "public function setTaxonomyIds(&$var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->taxonomy_ids = $arr;\n }", "function get_tax_file_fields() {\n\treturn array (\n\t\t\t\"Term name\",\n\t\t\t\"GUID\",\n\t\t\t\"Parent GUID\",\n\t\t\t\"Rank\",\n\t);\n}", "function acf_get_taxonomy_terms($taxonomies = array())\n{\n}", "private function parse_taxon_info($taxon_id)\n {\n if($html = Functions::lookup_with_cache($this->page['taxon_page'].$taxon_id, $this->download_options)) {\n /*<div class=\"field-label\">Subspecies:</div>\n <div class=\"field-items\">\n <div class=\"field-item\" style=\"padding-left:3px;\">\n <em>Nautilus</em> <em>pompilius</em> <em>pompilius</em> Linnaeus 1758 </div>\n */\n $rec['taxon_id'] = $taxon_id;\n if(preg_match(\"/<div class=\\\"field-label\\\">(.*?):<\\/div>/ims\", $html, $arr)) $rec['rank'] = strtolower($arr[1]);\n if($rec['rank'] == \"unranked\") $rec['rank'] = \"\";\n if(preg_match(\"/<div class=\\\"field-item\\\"(.*?)<\\/div>/ims\", $html, $arr)) $rec['sciname'] = strip_tags(\"<div \".$arr[1]);\n \n /* get canonical and authorship:\n <h1 class=\"title\" id=\"page-title\">\n Cephalopoda <span>Cuvier 1797 </span> </h1>\n */\n if(preg_match(\"/<h1 class\\=\\\"title\\\" id\\=\\\"page-title\\\">(.*?)<\\/h1>/ims\", $html, $arr)) {\n $str = $arr[1];\n // echo \"\\n[$str]\\n\"; exit;\n if(preg_match(\"/xxx(.*?)<span>/ims\", \"xxx\".$str, $arr2)) $rec['canonical'] = Functions::remove_whitespace(strip_tags($arr2[1]));\n if(preg_match(\"/<span>(.*?)<\\/span>/ims\", $str, $arr2)) $rec['authorship'] = trim($arr2[1]);\n }\n else exit(\"\\nInvestigate: cannot get into <h1> [$taxon_id]\\n\");\n \n if(!@$rec['canonical']) {\n $this->debug['cannot get canonical'][$taxon_id] = '';\n }\n \n $rec = array_map('trim', $rec);\n $rec['usage'] = self::get_usage($html);\n $rec['ancestry'] = self::get_ancestry($html);\n // print_r($rec); exit;\n return $rec;\n }\n }", "public function getTaxonomyTerm($id, $taxonomy);", "function build_taxonomies() {\n// custom tax\n register_taxonomy( 'from', array('menu'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'menu-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'cpt-tag',array('menu','recipe','sources-resources','tips-quips','style-points'), \n array( \n 'hierarchical' => false, // true = acts like categories false = acts like tags\n 'label' => 'Tags',\n 'query_var' => true,\n 'show_admin_column' => true,\n 'public' => true,\n 'rewrite' => true,\n '_builtin' => true\n ) );\n register_taxonomy( 'from-5', array('recipe'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'recipe-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-2', array('sources-resources'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'sources-resources-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-3', array('tips-quips'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'tips-quips-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-4', array('style-points'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'style-points-from' ),\n\t\t\t'_builtin' => true\n ) );\n register_taxonomy( 'sub', array('menu'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'menu-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-5', array('recipe'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'recipe-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-2', array('sources-resources'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'sources-resources-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-3', array('tips-quips'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'tips-quips-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-4', array('style-points'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'style-points-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n}", "function _muckypup_database_get_term_ids ($vocabularies) {\n\n $terms = array ();\n \n foreach ($vocabularies as $vocabulary) {\n if ($vocabulary != 0) {\n $term_tree = taxonomy_get_tree($vocabulary);\n \n foreach ($term_tree as $term_branch) {\n $terms[] = $term_branch->tid;\n }\n }\n }\n\n\treturn $terms;\n}", "function insert_wp_term_relationships($wpdb, $id, $in_args){\n $args = explode(',' , $in_args);\n $table = $wpdb->prefix.\"terms\";\n foreach($args as $a)\n {\n $q = \"SELECT term_id FROM \".$table.\" WHERE name = '\".strtoupper($a).\"'\";\n $terms = $wpdb->get_results($wpdb->prepare($q));\n foreach($terms as $t)\n {\n $arr = array(\n 'object_id' => $id,\n 'term_taxonomy_id' => $t->term_id,\n );\n $wpdb->insert($wpdb->prefix.'term_relationships', $arr);\n }\n }\n}", "public function loadArrayByTaxonID($searchTerm) {\n global $connection;\n $returnvalue = array();\n $operator = \"=\";\n // change to a like search if a wildcard character is present\n if (!(strpos($searchTerm,\"%\")===false)) { $operator = \"like\"; }\n if (!(strpos($searchTerm,\"_\")===false)) { $operator = \"like\"; }\n $sql = \"SELECT DeterminationID FROM determination WHERE TaxonID $operator '$searchTerm'\";\n $preparedsql = \"SELECT DeterminationID FROM determination WHERE TaxonID $operator ? \";\n if ($statement = $connection->prepare($preparedsql)) { \n $statement->bind_param(\"s\", $searchTerm);\n $statement->execute();\n $statement->bind_result($id);\n while ($statement->fetch()) { ;\n $obj = new huh_determination();\n $obj->load($id);\n $returnvalue[] = $obj;\n }\n $statement->close();\n }\n return $returnvalue;\n }", "function create_ha_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Habilidad artistica', 'taxonomy general name' ),\n 'singular_name' => _x( 'Habilidad artistica', 'taxonomy singular name' ),\n 'search_items' => __( 'Buscar Habilidad' ),\n 'all_items' => __( 'Habilidades artisticas' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Editar habilidad' ), \n 'update_item' => __( 'Actualizar habilidad' ),\n 'add_new_item' => __( 'Nueva habilidad artistica' ),\n 'new_item_name' => __( 'Nueva habilidad artistica' ),\n 'menu_name' => __( 'Habilidades artisticas' ),\n ); \t\n\n register_taxonomy('habilidad-artistica',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'habilidad-artistica' ),\n ));\n\n}", "public function initial_taxonomy() {\n $labels = array(\n 'name' => __( 'Taxonomies', Settings::$text_domain ),\n 'singular_name' => __( 'Taxonomy', Settings::$text_domain ),\n 'menu_name' => __( 'Taxonomies', Settings::$text_domain ),\n 'name_admin_bar' => __( 'Taxonomies', Settings::$text_domain ),\n 'add_new' => __( 'Add New', Settings::$text_domain ),\n 'add_new_item' => __( 'Add New Taxonomy', Settings::$text_domain ),\n 'new_item' => __( 'New Taxonomy', Settings::$text_domain ),\n 'edit_item' => __( 'Edit Taxonomy', Settings::$text_domain ),\n 'view_item' => __( 'View Taxonomy', Settings::$text_domain ),\n 'all_items' => __( 'Taxonomies', Settings::$text_domain ),\n 'search_items' => __( 'Search Taxonomies', Settings::$text_domain ),\n 'parent_item_colon' => __( 'Parent Taxonomies:', Settings::$text_domain ),\n 'not_found' => __( 'No taxonomy found.', Settings::$text_domain ),\n 'not_found_in_trash' => __( 'No taxonomies found in Trash.', Settings::$text_domain )\n );\n\n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => 'tools.php',\n 'show_in_nav_menus' => false,\n 'query_var' => true,\n 'capability_type' => 'post',\n 'has_archive' => false,\n 'hierarchical' => false,\n 'menu_position' => null,\n 'taxonomies' => array( '' ),\n 'menu_icon' => 'dashicons-category',\n 'supports' => array('title')\n );\n\n register_post_type( Settings::$main_taxonomy_name, $args );\n\n $taxonomy_factory = new Taxonomy_Factory();\n $taxonomy_factory->register_all_taxonomies();\n\n //Configura o número de posts por página\n add_action('pre_get_posts', array($taxonomy_factory, 'set_posts_per_page'));\n }", "function create_ht_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Habilidad tecnica', 'taxonomy general name' ),\n 'singular_name' => _x( 'Habilidad tecnica', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Genres' ),\n 'all_items' => __( 'Habilidades tecnicas' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Editar habilidad' ), \n 'update_item' => __( 'Actualizar habilidad' ),\n 'add_new_item' => __( 'Nueva habilidad tecnica' ),\n 'new_item_name' => __( 'Nueva habilidad tecnica' ),\n 'menu_name' => __( 'Habilidades tecnicas' ),\n ); \t\n\n register_taxonomy('habilidad-tecnica',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'habilidad-tecnica' ),\n ));\n\n}", "function _ficalink_taxonomy_default_vocabularies() {\n $items = array(\n array(\n 'name' => 'Authors',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '1',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'authors',\n ),\n array(\n 'name' => 'Characters',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '1',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'characters',\n ),\n array(\n 'name' => 'Genres',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '0',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'genres',\n ),\n array(\n 'name' => 'Series',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '1',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'series',\n ),\n array(\n 'name' => 'Tags',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '0',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'tags',\n ),\n array(\n 'name' => 'Warnings',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '0',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'warnings',\n ),\n );\n return $items;\n}", "function get_taxonomy_term_ids_inside_vocab($vocab_machine_name) {\n $vocab = taxonomy_vocabulary_machine_name_load($vocab_machine_name);\n if (is_object($vocab)) {\n $term_tree = taxonomy_get_tree($vocab->vid);\n if (is_array($term_tree) && !empty($term_tree)) {\n foreach ($term_tree as $key => $value) {\n $tids[] = $value->tid;\n }\n } if (empty($term_tree)) {\n $tids = array();\n }\n } else\n return \"No Vocab Found with the given name\";\n\n return ($tids);\n}", "public function daam_get_terms()\n {\n\n //check the referer\n if ( ! check_ajax_referer('daam', 'security', false)) {\n echo \"Invalid AJAX Request\";\n die();\n }\n\n //check the capability\n if ( ! current_user_can(get_option($this->shared->get('slug') . \"_capabilities_term_groups_menu\"))) {\n esc_attr('Invalid Capability', 'daam');\n die();\n }\n\n //get the data\n $taxonomy = addslashes($_POST['taxonomy']);\n\n $terms = get_terms(array(\n 'hide_empty' => 0,\n 'orderby' => 'term_id',\n 'order' => 'DESC',\n 'taxonomy' => $taxonomy\n ));\n\n if (is_object($terms) and get_class($terms) === 'WP_Error') {\n return '0';\n } else {\n echo json_encode($terms);\n }\n\n die();\n\n }", "protected function get_terms() {\n\t\t$terms = get_the_terms( $this->post_ID, $this->taxonomy_name );\n\n\t\tif ( ! is_array( $terms ) ) {\n\t\t\t$terms = [];\n\t\t}\n\n\t\treturn $terms;\n\t}", "public function generateTaxonomyTermList() {\n $vocab = \"sports\";\n $term_list = [];\n $terms = $this->entityTypeManager\n ->getStorage('taxonomy_term')\n ->loadTree($vocab);\n foreach ($terms as $term) {\n $term_name = $this->t('@name', ['@name' => $term->name]);\n $term_list[\"$term_name\"] = $term_name;\n }\n return $term_list;\n }", "function mini_get_term_id_by_pid( $pid ){\n \n $terms = get_the_terms( $pid, 'project_tax' );\n\nif ( $terms && ! is_wp_error( $terms ) ){ \n \n $p_terms = array();\n \n foreach ( $terms as $term ) {\n $p_terms[] = $term->term_id;\n }\n \n return $p_terms;\n } else {\n return [];\n //return $p_terms;\n }\n}", "function get_all_nodes_belong_to_taxonomy_hierarchy($tids) {\n if (is_array($tids)) {\n foreach ($tids as $key => $value) {\n if ($value <= 0) {\n return \"Please Enter a valid taxonomy term id set\";\n }\n }\n }\n if (is_array($tids) && !empty($tids)) {\n foreach ($tids as $key => $value) {\n $term = taxonomy_term_load($value);\n $hierarchical_terms_object[] = taxonomy_get_tree($term->vid, $term->tid);\n }\n $flat_terms_object = multitosingle($hierarchical_terms_object);\n if (is_array($flat_terms_object) && !empty($flat_terms_object)) {\n foreach ($flat_terms_object as $key => $value) {\n $flat_tids[] = $value->tid;\n }\n $flat_tids[] = $tids;\n return array_unique(get_nodes_directly_mapped_to_term($flat_tids));\n }\n else {\n $flat_tids = $tids;\n return array_unique(get_nodes_directly_mapped_to_term($flat_tids));\n }\n }\n elseif (!is_array($tids) && $tids > 0) {\n $flat_tids = $tids;\n return get_all_nodes_belong_to_taxonomy_hierarchy(array($flat_tids));\n }\n else {\n return \"Please Enter a valid term id\";\n }\n}", "public static function get_taxonomy_tree(array $terms, $taxonomy, $separator = ' > ')\n {\n $term_ids = wp_list_pluck($terms, 'term_id');\n\n $parents = [];\n foreach ($term_ids as $term_id) {\n $path = self::get_term_parents($term_id, $taxonomy, $separator);\n $parents[] = rtrim($path, $separator);\n }\n\n $terms = [];\n foreach ($parents as $parent) {\n $levels = explode($separator, $parent);\n\n $previous_lvl = '';\n foreach ($levels as $index => $level) {\n $terms[ 'lvl' . $index ][] = $previous_lvl . $level;\n $previous_lvl .= $level . $separator;\n\n // Make sure we have not duplicate.\n // The call to `array_values` ensures that we do not end up with an object in JSON.\n $terms[ 'lvl' . $index ] = array_values(array_unique($terms[ 'lvl' . $index ]));\n }\n }\n\n return $terms;\n }", "function create_taxonomies() {\n\t// taxonomy_init(\n\t// \t$settings = array(\n\t// \t\t'slug' \t=> 'sample',\t\t\t// Required\n\t// \t\t'singular' \t=> 'Sample',\t\t\t// Required\n\t// \t\t'plural' \t=> 'Samples',\t\t\t// Required\n\t// \t\t'post_types'\t=> 'your_CPT',\t\t\t// Required\n\t// \t)\n\t// );\n}", "public function includedTaxonomies() {\n\t\t$taxonomies = [];\n\t\tif ( aioseo()->options->sitemap->{aioseo()->sitemap->type}->taxonomies->all ) {\n\t\t\t$taxonomies = get_taxonomies();\n\t\t} else {\n\t\t\t$taxonomies = aioseo()->options->sitemap->{aioseo()->sitemap->type}->taxonomies->included;\n\t\t}\n\n\t\tif ( ! $taxonomies ) {\n\t\t\treturn [];\n\t\t}\n\n\t\t$options = aioseo()->options->noConflict();\n\t\t$dynamicOptions = aioseo()->dynamicOptions->noConflict();\n\t\t$publicTaxonomies = aioseo()->helpers->getPublicTaxonomies( true );\n\t\tforeach ( $taxonomies as $taxonomy ) {\n\t\t\t// Check if taxonomy is no longer registered.\n\t\t\tif ( ! in_array( $taxonomy, $publicTaxonomies, true ) || ! $dynamicOptions->searchAppearance->taxonomies->has( $taxonomy ) ) {\n\t\t\t\t$taxonomies = aioseo()->helpers->unsetValue( $taxonomies, $taxonomy );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Check if taxonomy isn't noindexed.\n\t\t\tif ( aioseo()->helpers->isTaxonomyNoindexed( $taxonomy ) ) {\n\t\t\t\tif ( ! $this->checkForIndexedTerm( $taxonomy ) ) {\n\t\t\t\t\t$taxonomies = aioseo()->helpers->unsetValue( $taxonomies, $taxonomy );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t$dynamicOptions->searchAppearance->taxonomies->$taxonomy->advanced->robotsMeta->default &&\n\t\t\t\t! $options->searchAppearance->advanced->globalRobotsMeta->default &&\n\t\t\t\t$options->searchAppearance->advanced->globalRobotsMeta->noindex\n\t\t\t) {\n\t\t\t\tif ( ! $this->checkForIndexedTerm( $taxonomy ) ) {\n\t\t\t\t\t$taxonomies = aioseo()->helpers->unsetValue( $taxonomies, $taxonomy );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $taxonomies;\n\t}", "function mds_custom_taxonomy() {\n $args = array(\n\n /**\n * Include a description of the taxonomy.\n */\n 'description' => '', // string (default is NONE)\n\n /**\n * A plural descriptive name for the taxonomy marked for translation.\n * Default: overridden by $labels->name\n */\n 'label' => __( 'Custom Taxonomies' ), // string (default overridden by $labels->name).\n\n /**\n * Labels used when displaying the taxonomy in the admin and sometimes on the front end.\n */\n 'labels' => array(\n 'name'\t\t\t\t => __( 'Custom Taxonomies' ),\n 'singular_name'\t\t\t => __( 'Custom Taxonomy' ),\n 'menu_name'\t\t\t => __( 'Custom Taxonomy'),\n 'all_items'\t\t\t => __( 'All Custom Taxonomies' ),\n 'view_item' => __( 'View Custom Taxonomy' ),\n 'edit_item'\t\t\t => __( 'Edit Custom Taxonomy' ),\n 'update_item'\t\t\t => __( 'Update Custom Taxonomy'),\n 'add_new_item'\t\t\t => __( 'Add New Custom Taxonomy'),\n 'new_item_name'\t\t\t => __( 'New Single Custom Taxonomy'),\n 'parent_item'\t\t\t => __( 'Parent Custom Taxonomy' ),\n 'parent_item_colon'\t\t => __( 'Parent Custom Taxonomy' ),\n 'search_items'\t\t\t => __( 'Search Custom Taxonomy' ),\n 'popular_items'\t\t\t => __( 'Popular Custom Taxonomy' ),\n 'separate_items_with_commas' => __( 'Separate Custom Taxonomy with commas' ),\n 'add_or_remove_items'\t => __( 'Add or remove Custom Taxonomy'),\n 'choose_from_most_used'\t => __( 'Choose from most used Custom Taxonomy'),\n 'not_found' => __( 'No Custom Taxonomy found.' )\n ),\n\n /**\n * If the taxonomy should be publicly queryable. This\n * argument is sort of a catchall for many of the following arguments.\n */\n 'public' => true, // bool (default is TRUE)\n\n /**\n * Whether to generate a default UI for managing this taxonomy.\n */\n 'show_ui' => true, // bool (defaults to 'public').\n\n /**\n * Whether taxonomy items are available for selection in navigation menus.\n */\n 'show_in_nav_menus' => true, // bool (defaults to 'public').\n\n /**\n * Whether to allow the Tag Cloud widget to use this taxonomy.\n */\n 'show_tagcloud' => false,// bool (defaults to 'show_ui').\n\n /**\n * Whether to show the taxonomy in the quick/bulk edit panel.\n */\n 'show_in_quick_edit' => true, // bool (defaults to 'show_ui').\n\n /**\n * Whether to allow automatic creation of taxonomy columns on associated post-types table.\n */\n 'show_admin_column' => false,// bool (default is FALSE)\n\n /**\n * Provide a callback function name for the meta box display.\n * No meta box is shown if set to false\n */\n 'meta_box_cb' => null, //callback function (default is NULL)\n\n /**\n * Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags.\n */\n 'hierarchical' => false,// bool (default is FALSE)\n\n /**\n * A function name that will be called when the count of an associated $object_type, such as post, is updated.\n * Works much like a hook.\n */\n\n 'update_count_callback' => '', //string (default is NONE)\n\n /**\n * Sets the query_var key for this taxonomy. If set to TRUE, the post type name will be used.\n * You can also set this to a custom string to control the exact key.\n */\n 'query_var' => 'custom-taxonomy', // bool|string (defaults to TRUE - post type name)\n\n\n /**\n * How the URL structure should be handled with this post type. You can set this to an\n * array of specific arguments or true|false. If set to FALSE, it will prevent rewrite\n * rules from being created.\n */\n 'rewrite' => array(\n\n /* The slug to use for individual posts of this type. */\n 'slug' => 'custom-post-type', // string (defaults to taxonomy's name slug)\n\n /* Allowing permalinks to be prepended with front base*/\n 'with_front' => false, // bool (defaults to TRUE)\n\n /* true or false allow hierarchical urls*/\n 'hierarchical' => false, // bool (defaults to FALSE)\n\n /* Assign an endpoint mask to this permalink. */\n 'ep_mask' => EP_PERMALINK, // const (defaults to EP_NONE)\n ),\n\n /**\n * Provides more precise control over the capabilities than the defaults. By default, WordPress\n * will use the 'capability_type' argument to build these capabilities. More often than not,\n * this results in many extra capabilities that you probably don't need.\n */\n 'capabilities' => array( ),\n\n /**\n * Whether this taxonomy should remember the order in which terms are added to objects.\n */\n 'sort' => false, // bool (default is NONE)\n );\n\n /**\n * Set up the arguments for the post type where taxonomy will be displayed.\n * Can be a custom post type or any of the registered post types: post, page, attachment, revision, nav_menu_item\n */\n $args_post_type = array(\n 'custom-post-type'\n );\n\n register_taxonomy(\n 'custom-taxonomy', //Taxonomy name. Max of 32 characters. Uppercase and spaces not allowed.\n $args_post_type, //Name of the post type for the taxonomy,\n $args\n );\n\n}", "public function setTaxonomies() {\n // ## TAXONOMIES ##\n $args = array(\n // ## Fields ##\n array(\n 'taxonomy' => self::TAX_FIELDS,\n 'object_type' => array(self::POST_TYPE_BADGES),\n 'args' => array(\n 'labels' => array(\n 'name' => _x('Fields of education', 'taxonomy general name'),\n 'singular_name' => _x('Field of education', 'taxonomy singular name'),\n 'search_items' => __('Search Fields of education'),\n 'all_items' => __('All Fields of education'),\n 'parent_item' => __('Parent Field'),\n 'parent_item_colon' => __('Parent Field:'),\n 'edit_item' => __('Edit Field'),\n 'update_item' => __('Update Field'),\n 'add_new_item' => __('Add New Field'),\n 'new_item_name' => __('New Field Name'),\n 'menu_name' => __('Field of Education'),\n ),\n 'rewrite' => array('slug' => self::TAX_FIELDS),\n 'hierarchical' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true\n )\n ),\n // ## Levels ##\n array(\n 'taxonomy' => self::TAX_LEVELS,\n 'object_type' => self::POST_TYPE_BADGES,\n 'args' => array(\n 'labels' => array(\n 'name' => _x('Levels', 'taxonomy general name'),\n 'singular_name' => _x('Levels', 'taxonomy singular name'),\n 'search_items' => __('Search Levels'),\n 'all_items' => __('All Levels'),\n 'parent_item' => __('Parent Level'),\n 'parent_item_colon' => __('Parent Level:'),\n 'edit_item' => __('Edit Level'),\n 'update_item' => __('Update Level'),\n 'add_new_item' => __('Add New Level'),\n 'new_item_name' => __('New Level Name'),\n 'menu_name' => __('Level of Education'),\n ),\n 'rewrite' => array('slug' => self::TAX_LEVELS),\n 'hierarchical' => false,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true\n )\n ),\n );\n\n $this->settings->loadTaxonomies($args);\n }", "public function register_taxonomies() {\n\n\t\t$options = $this->options;\n\t\t$this->remove_mb = array();\n\n\t\tforeach ( $options as $option ) {\n\n\t\t\tif ( 'taxonomy' == $option['args']['field_type'] ) {\n\n\t\t\t\t$name = ! empty( $option['args']['label'] ) ? sanitize_text_field( $option['args']['label'] ) : ucwords( str_replace( array( '_', '-' ), ' ', $option['name'] ) );\n\t\t\t\t$plural = ! empty( $option['args']['label_plural'] ) ? sanitize_text_field( $option['args']['label_plural'] ) : $name . 's';\n\t\t\t\t$column = true === $option['args']['taxo_std'] ? true : false;\n\t\t\t\t$hierarchical = $option['args']['taxo_hierarchical'];\n\n\t\t\t\t$labels = array(\n\t\t\t\t\t'name' => $plural,\n\t\t\t\t\t'singular_name' => $name,\n\t\t\t\t\t'search_items' => sprintf( __( 'Search %s', TEXTDOMAIN ), $plural ),\n\t\t\t\t\t'all_items' => sprintf( __( 'All %s', TEXTDOMAIN ), $plural ),\n\t\t\t\t\t'parent_item' => sprintf( __( 'Parent %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'parent_item_colon' => sprintf( _x( 'Parent %s:', 'Parent term in a taxonomy where %s is dynamically replaced by the taxonomy (eg. \"book\")', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'edit_item' => sprintf( __( 'Edit %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'update_item' => sprintf( __( 'Update %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'add_new_item' => sprintf( __( 'Add New %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'new_item_name' => sprintf( _x( 'New %s Name', 'A new taxonomy term name where %s is dynamically replaced by the taxonomy (eg. \"book\")', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'menu_name' => $plural,\n\t\t\t\t);\n\n\t\t\t\t$args = array(\n\t\t\t\t\t'hierarchical' => $hierarchical,\n\t\t\t\t\t'labels' => $labels,\n\t\t\t\t\t'show_ui' => true,\n\t\t\t\t\t'show_admin_column' => $column,\n\t\t\t\t\t'query_var' => true,\n\t\t\t\t\t'rewrite' => array( 'slug' => $option['name'] ),\n\t\t\t\t\t'capabilities' => array(\n\t\t\t\t\t\t'manage_terms' => 'create_ticket',\n\t\t\t\t\t\t'edit_terms' => 'settings_tickets',\n\t\t\t\t\t\t'delete_terms' => 'settings_tickets',\n\t\t\t\t\t\t'assign_terms' => 'create_ticket'\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\tif ( false !== $option['args']['update_count_callback'] && function_exists( $option['args']['update_count_callback'] ) ) {\n\t\t\t\t\t$args['update_count_callback'] = $option['args']['update_count_callback'];\n\t\t\t\t}\n\n\t\t\t\tregister_taxonomy( $option['name'], array( 'ticket' ), $args );\n\n\t\t\t\tif ( false === $option['args']['taxo_std'] ) {\n\t\t\t\t\tarray_push( $this->remove_mb, $option['name'] );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t/* Remove metaboxes that won't be used */\n\t\tif ( ! empty( $this->remove_mb ) ) {\n\t\t\tadd_action( 'admin_menu', array( $this, 'remove_taxonomy_metabox' ) );\n\t\t}\n\n\t}", "public function setTerms(){\n\t\t$this->terms = new stdClass();\n\t\tforeach (get_taxonomies() as $taxonomy ) {\n\t\t\t$this->terms->$taxonomy = $this->getTerms( $taxonomy);\n\t\t\t//$this->{'terms_'.$taxonomy} = $this->terms[$taxonomy];\n\t\t}\n\t}", "function create_digital_issues_taxonomy() {\n\n// Labels part for the GUI\n\n$labels = array(\n 'name' => _x( 'Digital Issues', 'taxonomy general name' ),\n 'singular_name' => _x( 'Digital Issue', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Digital issues' ),\n 'popular_items' => __( 'Popular Digital Issues' ),\n 'all_items' => __( 'All Digital Issues' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Digital Issue' ), \n 'update_item' => __( 'Update Digital Issue' ),\n 'add_new_item' => __( 'Add New Digital Issue' ),\n 'new_item_name' => __( 'New Digital Issue Name' ),\n 'separate_items_with_commas' => __( 'Separate Digital Issues with commas' ),\n 'add_or_remove_items' => __( 'Add or remove Digital Issues' ),\n 'choose_from_most_used' => __( 'Choose from the most used Digital Issues' ),\n 'menu_name' => __( 'Digital Issues' ),\n ); \n \n// Now register the non-hierarchical taxonomy like tag\n \n register_taxonomy('digital-issues','post',array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n\t'show_in_menu' => true,\n\t'show_in_rest' => true,\n\t'public' => true,\n\t'show_in_quick_edit' => false,\n \t'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'digital-issue' ),\n \t'show_in_nav_menus' => true,\n ));\n}", "function create_tag_taxonomies()\n{\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Tags', 'taxonomy general name' ),\n 'singular_name' => _x( 'Tag', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Tags' ),\n 'popular_items' => __( 'Popular Tags' ),\n 'all_items' => __( 'All Tags' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Tag' ),\n 'update_item' => __( 'Update Tag' ),\n 'add_new_item' => __( 'Add New Tag' ),\n 'new_item_name' => __( 'New Tag Name' ),\n 'separate_items_with_commas' => __( 'Separate tags with commas' ),\n 'add_or_remove_items' => __( 'Add or remove tags' ),\n 'choose_from_most_used' => __( 'Choose from the most used tags' ),\n 'menu_name' => __( 'Tags' ),\n );\n\n register_taxonomy('tag','edicoesAnteriores',array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'tag' ),\n ));\n}", "public function addTaxonomies() {\n\n echo \"\\nAdding taxonomies to post {$this->wp_post_id}...\\n\";\n\n if( is_array($this->taxonomy_info) ){\n foreach( $this->taxonomy_info as $taxonomy_name => $terms ){\n $term_ids = implode( \" \", $this->getRandomTerms($terms) );\n $set_terms_cmd = \"wp post term set {$this->wp_post_id} {$taxonomy_name} {$term_ids} --by=id\";\n $output = shell_exec( $set_terms_cmd );\n }\n }\n\n return true;\n }", "function get_custom_taxonomies( $post_identity ) {\r\n\r\n // Get the post by ID\r\n $post = get_post( $post_identity );\r\n\r\n // Get the post type\r\n $post_type = $post->post_type;\r\n\r\n // Get taxonomies related to the post type\r\n $taxonomies = get_object_taxonomies( $post_type, 'objects' );\r\n\r\n $out = array();\r\n // Loop through taxonomies and put the terms in an array\r\n foreach ( $taxonomies as $taxonomy_slug => $taxonomy ) {\r\n\r\n $terms = get_the_terms( $post_identity, $taxonomy_slug );\r\n //var_dump($terms); die;\r\n\r\n if ( !empty( $terms ) ) {\r\n \r\n foreach ( $terms as $term ) {\r\n $out[] .= $term->name;\r\n }\r\n }\r\n }\r\n\r\n return $out;\r\n }", "function get_taxa_for_species_V2($species_id)\n {\n $download_options = $this->download_options;\n $download_options['expire_seconds'] = false;\n $download_options['download_wait_time'] = 500000; //just temporary until I get my own token\n\n /* good way to refresh cache per taxon\n if($species_id == 55948714) $download_options['expire_seconds'] = 0;\n */\n \n $url = str_ireplace(\"SPECIES_ID\", $species_id, $this->api['taxon_details']);\n // echo \"\\n taxon_details API call: $url\\n\";\n $json = Functions::lookup_with_cache($url, $download_options);\n if(!$json) return array();\n \n $arr = json_decode($json, true); //https://apiv3.iucnredlist.org/api/v3/species/id/181008073?token=9bb4facb6d23f48efbf424bb05c0c1ef1cf6f468393bc745d42179ac4aca5fee\n $rec = @$arr['result'][0]; \n if($GLOBALS['ENV_DEBUG']) print_r($rec);\n \n /* good debug\n if($species_id == 55948714) {\n print_r($rec);\n exit(\"\\nstop muna [$species_id]\\n\");\n }*/\n \n /*Array(\n [name] => 3\n [result] => Array(\n [0] => Array(\n [taxonid] => 3\n [scientific_name] => Aaadonta angaurana\n [kingdom] => ANIMALIA\n [phylum] => MOLLUSCA\n [class] => GASTROPODA\n [order] => STYLOMMATOPHORA\n [family] => ENDODONTIDAE\n [genus] => Aaadonta\n [main_common_name] => \n [authority] => Solem, 1976\n [published_year] => 2012\n [assessment_date] => 2011-08-22\n [category] => CR\n [criteria] => B1ab(iii)+2ab(iii)\n [population_trend] => Unknown\n [marine_system] => \n [freshwater_system] => \n [terrestrial_system] => 1\n [assessor] => Rundell, R.J.\n [reviewer] => Barker, G., Cowie, R., Triantis, K., García, N. & Seddon, M.\n [aoo_km2] => 0-8\n [eoo_km2] => 0-8\n [elevation_upper] => 200\n [elevation_lower] => 1\n [depth_upper] => \n [depth_lower] => \n [errata_flag] => \n [errata_reason] => \n [amended_flag] => \n [amended_reason] => \n )\n )\n )*/\n if(@$rec['contributor']) exit(\"\\n They've now added [contributor] to their API. investigate pls.\\n\");\n if(@$rec['contributors']) exit(\"\\n They've now added [contributors] to their API. investigate pls.\\n\");\n $redlist_category_code = $rec['category'];\n $scientific_name = $rec['scientific_name'];\n if(!$rec['scientific_name']) echo \"\\nERROR: No sciname [$species_id]\\n\";\n $source = \"http://apiv3.iucnredlist.org/api/v3/website/\".str_replace(' ', '%20', $scientific_name); //e.g. http://apiv3.iucnredlist.org/api/v3/website/Panthera%20leo\n $source = \"http://apiv3.iucnredlist.org/api/v3/taxonredirect/\".$species_id; //seems better than above\n $taxon_parameters = array();\n $taxon_parameters['identifier'] = $species_id;\n $taxon_parameters['kingdom'] = ucfirst(strtolower($rec['kingdom']));\n $taxon_parameters['phylum'] = ucfirst(strtolower($rec['phylum']));\n $taxon_parameters['class'] = ucfirst(strtolower($rec['class']));\n $taxon_parameters['order'] = ucfirst(strtolower($rec['order']));\n $taxon_parameters['family'] = ucfirst(strtolower($rec['family']));\n $taxon_parameters['source'] = $source;\n $species_authority = $rec['authority'];\n $taxon_parameters['scientificName'] = htmlspecialchars_decode(trim($scientific_name .\" \". $species_authority));\n \n $taxon_parameters['commonNames'] = array();\n // /* working but not needed so far - until I get my own token.\n $url = str_ireplace(\"SPECIES_NAME\", urlencode($scientific_name), $this->api['comnames']);\n // echo \"\\n comnames API call: $url\\n\";\n $json = Functions::lookup_with_cache($url, $download_options);\n $arr = json_decode($json, true);\n if($comnames = @$arr['result']) {\n if($GLOBALS['ENV_DEBUG']) {\n print_r($comnames); exit('\\nmay comnames\\n');\n }\n }\n // */\n \n /* from copied template\n foreach($common_name_languages as $language_list) {\n foreach($language_names as $language_name) {\n $common_name = @ucfirst(strtolower(trim($language_name->nodeValue)));\n $common_name = utf8_encode($common_name);\n $common_name = utf8_decode($common_name);\n if(Functions::is_utf8($common_name)) $taxon_parameters['commonNames'][] = new \\SchemaCommonName(array('name' => $common_name, 'language' => $language));\n }\n }\n */\n \n /* from copied template\n $taxon_parameters['synonyms'] = array();\n $synonyms = $xpath->query(\"//ul[@id='synonyms']//li[@class='synonym']\");\n foreach($synonyms as $synonym_node) {\n $synonym = trim($synonym_node->nodeValue);\n $taxon_parameters['synonyms'][] = new \\SchemaSynonym(array('synonym' => $synonym, 'relationship' => 'synonym'));\n }\n */\n \n // /* working OK but not needed ATM.\n $citation = '';\n $url = str_ireplace(\"SPECIES_ID\", $species_id, $this->api['citations']); // echo \"\\n citations API call: $url\\n\";\n $json = Functions::lookup_with_cache($url, $download_options);\n $arr = json_decode($json, true); // print_r($arr); exit;\n if($citations = @$arr['result']) {\n foreach($citations as $c) {\n $reference_parameters = array();\n $reference_parameters['fullReference'] = $c['citation'];\n $citation = $c['citation'];\n $taxon_parameters['references'][] = new \\SchemaReference($reference_parameters);\n }\n }\n // */\n \n // /* working OK but not needed ATM.\n $agents = self::get_agents_and_citation_V2($rec['assessor'], $rec['reviewer'], $citation);\n if($GLOBALS['ENV_DEBUG']) print_r($agents); //exit;\n // */\n\n $taxon_parameters['dataObjects'] = array();\n\n $section = self::get_redlist_status_V2($species_id, $redlist_category_code, $source);\n if($section) $taxon_parameters['dataObjects'][] = $section;\n\n // /* working OK but not needed ATM.\n $url = str_ireplace(\"SPECIES_ID\", $species_id, $this->api['narrative']); // echo \"\\n narrative API call: $url\\n\";\n $json = Functions::lookup_with_cache($url, $download_options);\n $arr = json_decode($json, true); //print_r($arr); exit;\n \n if($texts = @$arr['result'][0]) {\n //print_r($texts); exit;\n $section = self::get_text_section_V2($species_id, 'http://rs.tdwg.org/ontology/voc/SPMInfoItems#Conservation', $agents, $citation, 'IUCN Red List Assessment', $texts['rationale']);\n if($section) $taxon_parameters['dataObjects'][] = $section;\n\n $section = self::get_text_section_V2($species_id, 'http://rs.tdwg.org/ontology/voc/SPMInfoItems#Distribution', $agents, $citation, 'Range Description', $texts['geographicrange']);\n if($section) $taxon_parameters['dataObjects'][] = $section;\n\n $section = self::get_text_section_V2($species_id, 'http://rs.tdwg.org/ontology/voc/SPMInfoItems#Trends', $agents, $citation, 'Population', $texts['population']);\n if($section) $taxon_parameters['dataObjects'][] = $section;\n\n $section = self::get_text_section_V2($species_id, 'http://rs.tdwg.org/ontology/voc/SPMInfoItems#Habitat', $agents, $citation, 'Habitat and Ecology', $texts['habitat']);\n if($section) $taxon_parameters['dataObjects'][] = $section;\n\n $section = self::get_text_section_V2($species_id, 'http://rs.tdwg.org/ontology/voc/SPMInfoItems#Threats', $agents, $citation, 'Threats', $texts['threats']);\n if($section) $taxon_parameters['dataObjects'][] = $section;\n\n $section = self::get_text_section_V2($species_id, 'http://rs.tdwg.org/ontology/voc/SPMInfoItems#Management', $agents, $citation, 'Conservation Actions', $texts['conservationmeasures']);\n if($section) $taxon_parameters['dataObjects'][] = $section;\n }\n // */\n \n $taxon = new \\SchemaTaxon($taxon_parameters);\n // echo $taxon->__toXML();\n return array($taxon, $rec);\n }", "private function get_taxonomies() : array {\n\t\treturn $this->taxonomies;\n\t}", "function create_taxonomies($tax,$val) {\n \n\n // register_taxonomy( 'genre', $taxonomies, $args );\n\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( $tax, 'taxonomy general name', 'textdomain' ),\n 'singular_name' => _x( $tax, 'taxonomy singular name', 'textdomain' ),\n 'search_items' => __( 'Search '.$tax, 'textdomain' ),\n 'popular_items' => __( 'Popular '.$tax, 'textdomain' ),\n 'all_items' => __( 'All '.$tax, 'textdomain' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit '.$tax, 'textdomain' ),\n 'update_item' => __( 'Update '.$tax, 'textdomain' ),\n 'add_new_item' => __( 'Add New '.$tax, 'textdomain' ),\n 'new_item_name' => __( 'New '.$tax.' Name', 'textdomain' ),\n 'separate_items_with_commas' => __( 'Separate '.$tax.' with commas', 'textdomain' ),\n 'add_or_remove_items' => __( 'Add or remove '.$tax, 'textdomain' ),\n 'choose_from_most_used' => __( 'Choose from the most used '.$tax, 'textdomain' ),\n 'not_found' => __( 'No '.$tax.' found', 'textdomain' ),\n 'menu_name' => __( $tax, 'textdomain' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => $tax ),\n );\n\n register_taxonomy( $tax, $val, $args );\n}", "function my_register_taxonomies() {\r\n\t}", "private function _get_terms_of_tax_type ( $hierarchical = true ) {\r\n //var declaration\r\n $post_type = get_post_type( tc__f('__ID') );\r\n $tax_list = get_object_taxonomies( $post_type, 'object' );\r\n $_tax_type_list = array();\r\n $_tax_type_terms_list = array();\r\n\r\n if ( empty($tax_list) )\r\n return false;\r\n\r\n //filter the post taxonomies\r\n while ( $el = current($tax_list) ) {\r\n //skip the post format taxinomy\r\n if ( in_array( key($tax_list) , apply_filters_ref_array ( 'tc_exclude_taxonomies_from_metas' , array( array('post_format') , $post_type , tc__f('__ID') ) ) ) ) {\r\n next($tax_list);\r\n continue;\r\n }\r\n if ( (bool) $hierarchical === (bool) $el -> hierarchical )\r\n $_tax_type_list[key($tax_list)] = $el;\r\n next($tax_list);\r\n }\r\n\r\n if ( empty($_tax_type_list) )\r\n return false;\r\n\r\n //fill the post terms array\r\n foreach ($_tax_type_list as $tax_name => $data ) {\r\n $_current_tax_terms = get_the_terms( tc__f('__ID') , $tax_name );\r\n\r\n //If current post support this tax but no terms has been assigned yet = continue\r\n if ( ! $_current_tax_terms )\r\n continue;\r\n\r\n while( $term = current($_current_tax_terms) ) {\r\n $_tax_type_terms_list[$term -> term_id] = $term;\r\n next($_current_tax_terms);\r\n }\r\n }\r\n return empty($_tax_type_terms_list) ? false : $_tax_type_terms_list;\r\n }", "function acf_get_taxonomy_labels($taxonomies = array())\n{\n}", "function drupal_parse_info_file($filename) {\n\n $info = array();\n if (!file_exists($filename)) {\n return $info;\n }\n\n $data = file_get_contents($filename);\n if (preg_match_all('\n @^\\s* # Start at the beginning of a line, ignoring leading whitespace\n ((?:\n [^=;\\[\\]]| # Key names cannot contain equal signs, semi-colons or square brackets,\n \\[[^\\[\\]]*\\] # unless they are balanced and not nested\n )+?)\n \\s*=\\s* # Key/value pairs are separated by equal signs (ignoring white-space)\n (?:\n (\"(?:[^\"]|(?<=\\\\\\\\)\")*\")| # Double-quoted string, which may contain slash-escaped quotes/slashes\n (\\'(?:[^\\']|(?<=\\\\\\\\)\\')*\\')| # Single-quoted string, which may contain slash-escaped quotes/slashes\n ([^\\r\\n]*?) # Non-quoted string\n )\\s*$ # Stop at the next end of a line, ignoring trailing whitespace\n @msx', $data, $matches, PREG_SET_ORDER)) {\n foreach ($matches as $match) {\n // Fetch the key and value string\n $i = 0;\n foreach (array('key', 'value1', 'value2', 'value3') as $var) {\n $$var = isset($match[++$i]) ? $match[$i] : '';\n }\n $value = stripslashes(substr($value1, 1, -1)) . stripslashes(substr($value2, 1, -1)) . $value3;\n\n // Parse array syntax\n $keys = preg_split('/\\]?\\[/', rtrim($key, ']'));\n $last = array_pop($keys);\n $parent = &$info;\n\n // Create nested arrays\n foreach ($keys as $key) {\n if ($key == '') {\n $key = count($parent);\n }\n if (!isset($parent[$key]) || !is_array($parent[$key])) {\n $parent[$key] = array();\n }\n $parent = &$parent[$key];\n }\n\n // Handle PHP constants\n if (defined($value)) {\n $value = constant($value);\n }\n\n // Insert actual value\n if ($last == '') {\n $last = count($parent);\n }\n $parent[$last] = $value;\n }\n }\n\n return $info;\n}", "function wpfolio_create_taxonomies() {\nregister_taxonomy('medium', 'post', array( \n\t'label' => 'Medium',\n\t'hierarchical' => false, \n\t'query_var' => true, \n\t'rewrite' => true,\n\t'public' => true,\n\t'show_ui' => true,\n\t'show_tagcloud' => true,\n\t'show_in_nav_menus' => true,));\n}", "function get_taxonomy($taxonomy)\n {\n }", "function create_topics_hierarchical_taxonomy() {\n \n// Add new taxonomy, make it hierarchical like categories\n//first do the translations part for GUI\n \n $labels = array(\n 'name' => _x( 'Sectores', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sector', 'taxonomy singular name' ),\n 'search_items' => __( 'Buscar Sectores' ),\n 'all_items' => __( 'Todos los Sectores' ),\n 'parent_item' => __( 'Sector Padre' ),\n 'parent_item_colon' => __( 'Sector Padre:' ),\n 'edit_item' => __( 'Editar Sector' ), \n 'update_item' => __( 'Actualizar Sector' ),\n 'add_new_item' => __( 'Añadir Nuevo Sector' ),\n 'new_item_name' => __( 'Nuevo Sector' ),\n 'menu_name' => __( 'Sectores' ),\n ); \n \n// Now register the taxonomy\n \n register_taxonomy('sectores', array('logos, proyecto, diapositiva'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'sectores' ),\n ));\n \n}", "function entity_translation_taxonomy_term_autocomplete($langcode = NULL, $field_name = '', $tags_typed = '') {\n // If the request has a '/' in the search text, then the menu system will have\n // split it into multiple arguments, recover the intended $tags_typed.\n $args = func_get_args();\n // Shift off the $langcode and $field_name arguments.\n array_shift($args);\n array_shift($args);\n $tags_typed = implode('/', $args);\n\n // Make sure the field exists and is a taxonomy field.\n if (!($field = field_info_field($field_name)) || $field['type'] !== 'taxonomy_term_reference') {\n // Error string. The JavaScript handler will realize this is not JSON and\n // will display it as debugging information.\n print t('Taxonomy field @field_name not found.', array('@field_name' => $field_name));\n exit;\n }\n\n // The user enters a comma-separated list of tags. We only autocomplete the\n // last tag.\n $tags_typed = drupal_explode_tags($tags_typed);\n $tag_last = drupal_strtolower(array_pop($tags_typed));\n\n $term_matches = array();\n if ($tag_last != '') {\n if (!isset($langcode) || $langcode == LANGUAGE_NONE) {\n $langcode = $GLOBALS['language_content']->language;\n }\n\n // Part of the criteria for the query come from the field's own settings.\n $vocabulary = _entity_translation_taxonomy_reference_get_vocabulary($field);\n\n $entity_type = 'taxonomy_term';\n $query = new EntityFieldQuery();\n $query->addTag('taxonomy_term_access');\n $query->entityCondition('entity_type', $entity_type);\n\n // If the Title module is enabled and the taxonomy term name is replaced for\n // the current bundle, we can look for translated names, otherwise we fall\n // back to the regular name property.\n if (module_invoke('title', 'field_replacement_enabled', $entity_type, $vocabulary->machine_name, 'name')) {\n $name_field = 'name_field';\n $language_group = 0;\n // Do not select already entered terms.\n $column = 'value';\n if (!empty($tags_typed)) {\n $query->fieldCondition($name_field, $column, $tags_typed, 'NOT IN', NULL, $language_group);\n }\n $query->fieldCondition($name_field, $column, $tag_last, 'CONTAINS', NULL, $language_group);\n $query->fieldLanguageCondition($name_field, array($langcode, LANGUAGE_NONE), NULL, NULL, $language_group);\n }\n else {\n $name_field = 'name';\n // Do not select already entered terms.\n if (!empty($tags_typed)) {\n $query->propertyCondition($name_field, $tags_typed, 'NOT IN');\n }\n $query->propertyCondition($name_field, $tag_last, 'CONTAINS');\n }\n\n // Select rows that match by term name.\n $query->propertyCondition('vid', $vocabulary->vid);\n $query->range(0, 10);\n $result = $query->execute();\n\n // Populate the results array.\n $prefix = count($tags_typed) ? drupal_implode_tags($tags_typed) . ', ' : '';\n $terms = !empty($result[$entity_type]) ? taxonomy_term_load_multiple(array_keys($result[$entity_type])) : array();\n foreach ($terms as $tid => $term) {\n $name = _entity_translation_taxonomy_label($term, $langcode);\n $n = $name;\n // Term names containing commas or quotes must be wrapped in quotes.\n if (strpos($name, ',') !== FALSE || strpos($name, '\"') !== FALSE) {\n $n = '\"' . str_replace('\"', '\"\"', $name) . '\"';\n }\n $term_matches[$prefix . $n] = check_plain($name);\n }\n }\n\n drupal_json_output($term_matches);\n}", "function setupTaxonomy()\n\t{\n\t\t$labels = array(\n\t\t\t\t'name' => 'Skills',\n\t\t\t\t'add_new_item' => 'Add New Skill',\n\t\t\t\t'new_item_name' => \"New Skill\"\n\t\t);\n\t\t\n\t\t$args = array(\n\t\t\t'hierarchical' => false,\n\t\t\t'labels' \t=> $labels,\n\t\t\t'show_ui' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'update_count_callback' => '_update_post_term_count',\n\t\t\t'query_var' => true,\n\t\t\t//'rewrite' => array( 'slug' => 'writer' ),\n\t\t\t'show_tagcloud' \t\t=> true\n\t\t);\n\n\t\tregister_taxonomy( 'skills', 'iru_positions', $args );\n\t\tregister_taxonomy_for_object_type( 'skills', 'iru_positions' );\n\t}", "function _post_format_get_terms($terms, $taxonomies, $args)\n {\n }", "function prso_init_theme_taxonomies() {\n\t\n\t//Init vars\n\t$file_path = plugin_dir_path( __FILE__ ) . \"theme-taxonomies\";\n\t\n\t//include_once( $file_path . '/cuztom-taxonomy_TEMPLATE.php' );\n\t\n}", "public function daam_get_taxonomies()\n {\n\n //check the referer\n if ( ! check_ajax_referer('daam', 'security', false)) {\n echo \"Invalid AJAX Request\";\n die();\n }\n\n //check the capability\n if ( ! current_user_can(get_option($this->shared->get('slug') . \"_capabilities_term_groups_menu\"))) {\n esc_attr('Invalid Capability', 'daam');\n die();\n }\n\n //get the data\n $post_type = addslashes($_POST['post_type']);\n\n $taxonomies = get_object_taxonomies($post_type);\n\n $taxonomy_obj_a = array();\n if (is_array($taxonomies) and count($taxonomies) > 0) {\n foreach ($taxonomies as $key => $taxonomy) {\n $taxonomy_obj_a[] = get_taxonomy($taxonomy);\n }\n }\n\n echo json_encode($taxonomy_obj_a);\n die();\n\n }", "function term_taxonomy_handler( $tt_id ) {\n\t\t$this->add_ping( 'db', array( 'term_taxonomy' => $tt_id ) );\n\t}", "function add_custom_taxonomies() {\n register_taxonomy('mechanic', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Mechanics', 'taxonomy general name' ),\n 'singular_name' => _x( 'Mechanic', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Mechanics' ),\n 'all_items' => __( 'All Mechanics' ),\n 'parent_item' => __( 'Parent Mechanic' ),\n 'parent_item_colon' => __( 'Parent Mechanic:' ),\n 'edit_item' => __( 'Edit Mechanic' ),\n 'update_item' => __( 'Update Mechanic' ),\n 'add_new_item' => __( 'Add New Mechanic' ),\n 'new_item_name' => __( 'New Mechanic Name' ),\n 'menu_name' => __( 'Mechanics' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'mechanics', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n // Add new \"Locations\" taxonomy to Posts\n register_taxonomy('family', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Families', 'taxonomy general name' ),\n 'singular_name' => _x( 'Family', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Families' ),\n 'all_items' => __( 'All Families' ),\n 'parent_item' => __( 'Parent Family' ),\n 'parent_item_colon' => __( 'Parent Family:' ),\n 'edit_item' => __( 'Edit Family' ),\n 'update_item' => __( 'Update Family' ),\n 'add_new_item' => __( 'Add New Family' ),\n 'new_item_name' => __( 'New Family Name' ),\n 'menu_name' => __( 'Families' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'family', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n // Add new \"Locations\" taxonomy to Posts\n register_taxonomy('publisher', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Publishers', 'taxonomy general name' ),\n 'singular_name' => _x( 'Publisher', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Publishers' ),\n 'all_items' => __( 'All Publishers' ),\n 'parent_item' => __( 'Parent Publisher' ),\n 'parent_item_colon' => __( 'Parent Publisher:' ),\n 'edit_item' => __( 'Edit Publisher' ),\n 'update_item' => __( 'Update Publisher' ),\n 'add_new_item' => __( 'Add New Publisher' ),\n 'new_item_name' => __( 'New Publisher Name' ),\n 'menu_name' => __( 'Publishers' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'publisher', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n register_taxonomy('artists', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Artists', 'taxonomy general name' ),\n 'singular_name' => _x( 'Artist', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Artists' ),\n 'all_items' => __( 'All Artists' ),\n 'parent_item' => __( 'Parent Artist' ),\n 'parent_item_colon' => __( 'Parent Artist:' ),\n 'edit_item' => __( 'Edit Artist' ),\n 'update_item' => __( 'Update Artist' ),\n 'add_new_item' => __( 'Add New Artist' ),\n 'new_item_name' => __( 'New Artist Name' ),\n 'menu_name' => __( 'Artists' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'artists', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n \n register_taxonomy('designers', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Designers', 'taxonomy general name' ),\n 'singular_name' => _x( 'Designer', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Designers' ),\n 'all_items' => __( 'All Designers' ),\n 'parent_item' => __( 'Parent Designer' ),\n 'parent_item_colon' => __( 'Parent Designer:' ),\n 'edit_item' => __( 'Edit Designer' ),\n 'update_item' => __( 'Update Designer' ),\n 'add_new_item' => __( 'Add New Designer' ),\n 'new_item_name' => __( 'New Designer Name' ),\n 'menu_name' => __( 'Designers' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'designers', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n\n\n register_taxonomy('awards', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n 'show_admin_column' => true,\n 'show_in_rest' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x( 'Awards', 'taxonomy general name' ),\n 'singular_name' => _x( 'Award', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Awards' ),\n 'all_items' => __( 'All Awards' ),\n 'parent_item' => __( 'Parent Award' ),\n 'parent_item_colon' => __( 'Parent Award:' ),\n 'edit_item' => __( 'Edit Award' ),\n 'update_item' => __( 'Update Award' ),\n 'add_new_item' => __( 'Add New Award' ),\n 'new_item_name' => __( 'New Award Name' ),\n 'menu_name' => __( 'Awards' ),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'awards', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n }", "public function loadArrayByPreferredTaxonID($searchTerm) {\n global $connection;\n $returnvalue = array();\n $operator = \"=\";\n // change to a like search if a wildcard character is present\n if (!(strpos($searchTerm,\"%\")===false)) { $operator = \"like\"; }\n if (!(strpos($searchTerm,\"_\")===false)) { $operator = \"like\"; }\n $sql = \"SELECT DeterminationID FROM determination WHERE PreferredTaxonID $operator '$searchTerm'\";\n $preparedsql = \"SELECT DeterminationID FROM determination WHERE PreferredTaxonID $operator ? \";\n if ($statement = $connection->prepare($preparedsql)) { \n $statement->bind_param(\"s\", $searchTerm);\n $statement->execute();\n $statement->bind_result($id);\n while ($statement->fetch()) { ;\n $obj = new huh_determination();\n $obj->load($id);\n $returnvalue[] = $obj;\n }\n $statement->close();\n }\n return $returnvalue;\n }", "function create_topics_hierarchical_taxonomy() {\n\n// Add new taxonomy, make it hierarchical like categories\n//first do the translations part for GUI\n\n $labels = array(\n 'name' => _x( 'Departments', 'taxonomy general name' ),\n 'singular_name' => _x( 'Department', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Departments' ),\n 'all_items' => __( 'All Departments' ),\n 'parent_item' => __( 'Parent Departments' ),\n 'parent_item_colon' => __( 'Parent Department:' ),\n 'edit_item' => __( 'Edit Department' ),\n 'update_item' => __( 'Update Department' ),\n 'add_new_item' => __( 'Add New Department' ),\n 'new_item_name' => __( 'New Topic Department' ),\n 'menu_name' => __( 'Departments' ),\n );\n\n// Now register the taxonomy\n\n register_taxonomy('departments',\n array('team'),\n array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'department' ),\n ));\n\n}", "function five_register_my_taxonomies()\n{\n //five_register_taxonomy('custom-taxonomy', 'Custom Taxonomy', 'Custom Taxonomies', ['custom-post-type']);\n}", "function create_taxonomies() {\r\n\t\t$labels = array(\r\n\t\t\t'name' => 'Ad Categories',\r\n\t\t\t'singular_name' => 'Ad Category',\r\n\t\t\t'search_items' => 'Search Ad Categories',\r\n\t\t\t'all_items' => 'All Ad Categories',\r\n\t\t\t'parent_item' => 'Parent Ad Category',\r\n\t\t\t'parent_item_colon' => 'Parent Ad Category:',\r\n\t\t\t'edit_item' => 'Edit Ad Category',\r\n\t\t\t'update_item' => 'Update Ad Category',\r\n\t\t\t'add_new_item' => 'Add New Ad Category',\r\n\t\t\t'new_item_name' => 'New Ad Category Name',\r\n\t\t\t'menu_name' => 'Ad Categories',\r\n\t\t\t);\r\n\r\n\t\t$args = array(\r\n\t\t\t'hierarchical' => true,\r\n\t\t\t'labels' => $labels,\r\n\t\t\t'show_ui' => true,\r\n\t\t\t'show_admin_column' => true,\r\n\t\t\t'query_var' => true,\r\n\t\t\t'rewrite' => false,\r\n\t\t\t);\r\n\r\n\t\tregister_taxonomy('mar_adverts_cats',array('mar_adverts'),$args);\r\n\r\n\t\t// Add new taxonomy, make it non-hierarchical (like tags)\r\n\t\t$labels = array(\r\n\t\t\t'name' => 'Ad Tags',\r\n\t\t\t'singular_name' => 'Ad Tag',\r\n\t\t\t'search_items' => 'Search Ad Tags',\r\n\t\t\t'all_items' => 'All Ad Tags',\r\n\t\t\t'parent_item' => 'Parent Ad Tag',\r\n\t\t\t'parent_item_colon' => 'Parent Ad Tag:',\r\n\t\t\t'edit_item' => 'Edit Ad Tag',\r\n\t\t\t'update_item' => 'Update Ad Tag',\r\n\t\t\t'add_new_item' => 'Add New Ad Tag',\r\n\t\t\t'new_item_name' => 'New Ad Tag Name',\r\n\t\t\t'menu_name' => 'Ad Tags',\r\n\t\t\t);\r\n\r\n\t\t$args = array(\r\n\t\t\t'hierarchical' => false,\r\n\t\t\t'labels' => $labels,\r\n\t\t\t'show_ui' => true,\r\n\t\t\t'show_admin_column' => true,\r\n\t\t\t'query_var' => true,\r\n\t\t\t'rewrite' => false,\r\n\t\t\t);\r\n\r\n\t\tregister_taxonomy('mar_adverts_tags',array('mar_adverts'),$args);\r\n\t}", "function amenities_init() {\r\n\tregister_taxonomy(\r\n\t\t'amenities',\r\n\t\t'post',\r\n\t\tarray(\r\n\t\t\t'label' => __( 'Amenities' ),\r\n\t\t\t'rewrite' => array( 'slug' => 'amenities' ),\r\n\t\t\t'hierarchical' => true,\r\n\t\t)\r\n\t);\r\n}", "protected function parse_term_args( array $args ) {\n\t\tif ( isset( $args['taxonomy_type'] ) ) {\n\t\t\t$args['entry_type'] = $args['taxonomy_type'];\n\n\t\t\tunset( $args['taxonomy_type'] );\n\t\t}\n\n\t\t$entry_type = papi_get_entry_type_by_id( $args['entry_type'] );\n\n\t\tif ( $entry_type instanceof Papi_Taxonomy_Type ) {\n\t\t\t$args['taxonomy'] = papi_to_array( $entry_type->taxonomy );\n\t\t} else {\n\t\t\t$args['taxonomy'] = isset( $args['taxonomy'] ) ? $args['taxonomy'] : '';\n\t\t}\n\n\t\treturn $args;\n\t}", "function acf_get_term($term_id, $taxonomy = '')\n{\n}", "function save_extra_taxonomy_fields($term_id)\n\n {\n\n if (isset($_POST['term_meta'])) {\n\n $t_id = $term_id;\n\n $term_meta = get_option(\"taxonomy_$t_id\");\n\n $cat_keys = array_keys($_POST['term_meta']);\n\n foreach ($cat_keys as $key) {\n\n if (isset($_POST['term_meta'][$key])) {\n\n $term_meta[$key] = $_POST['term_meta'][$key];\n\n }\n\n }\n\n update_option(\"taxonomy_$t_id\", $term_meta);\n\n }\n\n }", "public function get_taxonomy(){\r\n\t\t$this->tax_obj = get_taxonomy( $this->taxonomy );\r\n\t}", "function currentTypes($id){\n\t$term_id = get_the_terms($id, 'marcato_type');\n\t$terms = \"\";\n\tforeach($term_id as $genre){\n\t//\tprint_r($genre->name);\n\t\t$terms .= strtolower($genre->name) . \" \";\n\t}\n\n\treturn $terms;\n}", "function create_dpto_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Departamento', 'taxonomy general name' ),\n 'singular_name' => _x( 'Departamento', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Genres' ),\n 'all_items' => __( 'Departamentos' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Editar departamento' ), \n 'update_item' => __( 'Actualizar departamento' ),\n 'add_new_item' => __( 'Nuevo departamento' ),\n 'new_item_name' => __( 'Nuevo departamento' ),\n 'menu_name' => __( 'Departamentos' ),\n ); \t\n\n register_taxonomy('departamento',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'departamento' ),\n ));\n\n}", "protected function handleTaxonomy(array $taxonomy, Storage\\Entity\\Entity $record)\n {\n $taxonomyCollection = new Storage\\Collection\\Taxonomy();\n\n foreach ($taxonomy as $taxonomyType => $items) {\n foreach ($items as $item) {\n $item['taxonomytype'] = $taxonomyType;\n $item['content_id'] = $record->getId();\n $item['contenttype'] = $record->getContentType();\n $tax = new Storage\\Entity\\Taxonomy($item);\n $repo = $this->getRepository(Storage\\Entity\\Taxonomy::class);\n $repo->insert($tax);\n }\n }\n\n $record->setTaxonomy($taxonomyCollection);\n }", "public function get_term_object( $term ) {\n \t$vc_taxonomies_types = vc_taxonomies_types();\n \treturn array(\n \t\t'label' => $term->name,\n \t\t'value' => $term->slug,\n \t\t'group_id' => $term->taxonomy,\n \t\t'group' => isset( $vc_taxonomies_types[ $term->taxonomy ], $vc_taxonomies_types[ $term->taxonomy ]->labels, $vc_taxonomies_types[ $term->taxonomy ]->labels->name ) ? $vc_taxonomies_types[ $term->taxonomy ]->labels->name : __( 'Taxonomies', 'infinite-addons' ),\n \t\t);\n }", "public function registerTaxonomy()\n {\n // Get the existing taxonomy options if it exists.\n $options = (taxonomy_exists($this->name)) ? (array) get_taxonomy($this->name) : [];\n\n // create options for the Taxonomy.\n $options = array_replace_recursive($options, $this->createOptions());\n\n // register the Taxonomy with WordPress.\n register_taxonomy($this->name, null, $options);\n }", "function get_nodes_directly_mapped_to_term($tid) {\n if (is_array($tid) && !empty($tid)) {\n foreach ($tid as $key => $value) {\n $nids[] = taxonomy_select_nodes($value);\n $flat_nids = multitosingle($nids);\n }\n return $flat_nids;\n }\n else {\n $nid = taxonomy_select_nodes($tid);\n return $nid;\n }\n}", "function create_my_taxonomies()\n{\n register_taxonomy('utilities', 'post', array('hierarchical' => true, 'label' => 'Utilities'));\n}", "public function all(): array\n {\n $wpTerms = get_terms(\n $this->getTaxonomy()\n );\n\n if (is_wp_error($wpTerms)) {\n wp_die($wpTerms);\n }\n\n return array_map(function (WP_Term $wpTerm): AbstractTerm {\n return TermFactory::makeByWpTerm($wpTerm);\n }, $wpTerms);\n }", "function rhd_save_tax_meta( $term_id ) {\n\tif ( isset( $_POST['term_meta'] ) ) {\n\t\t$term_meta = array();\n\n\t\t// Sanitize me, if necessary.\n\t\t$term_meta['excluded'] = isset ( $_POST['term_meta']['excluded'] ) ? intval( $_POST['term_meta']['excluded'] ) : '';\n\n\t\tupdate_option( \"taxonomy_$term_id\", $term_meta );\n\t}\n}", "public static function createTaxonomies() {\n // Add new taxonomy, make it hierarchical (like categories)\n $labels = array(\n 'name' => _x( 'Card Categories', 'taxonomy general name', 'textdomain' ),\n 'singular_name' => _x( 'Card Category', 'taxonomy singular name', 'textdomain' ),\n 'search_items' => __( 'Search Card Categories', 'textdomain' ),\n 'all_items' => __( 'All Card Categories', 'textdomain' ),\n 'parent_item' => __( 'Parent Card Category', 'textdomain' ),\n 'parent_item_colon' => __( 'Parent Card Category:', 'textdomain' ),\n 'edit_item' => __( 'Edit Card Category', 'textdomain' ),\n 'update_item' => __( 'Update Card Category', 'textdomain' ),\n 'add_new_item' => __( 'Add New Card Category', 'textdomain' ),\n 'new_item_name' => __( 'New Card Category Name', 'textdomain' ),\n 'menu_name' => __( 'Card Category', 'textdomain' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'card_category' ),\n 'capabilities' => array(\n 'manage_terms' => 'edit_travelcards',\n 'edit_terms' => 'edit_travelcards',\n 'delete_terms' => 'edit_travelcards',\n 'assign_terms' => 'edit_travelcards'\n )\n );\n\n register_taxonomy( 'card_category', array( 'travelcard' ), $args );\n\n // Add 'card tags' taxonomy\n $labels = array(\n 'name' => _x( 'Card Tags', 'taxonomy general name', 'textdomain' ),\n 'singular_name' => _x( 'Card Tag', 'taxonomy singular name', 'textdomain' ),\n 'search_items' => __( 'Search Card Tags', 'textdomain' ),\n 'popular_items' => __( 'Popular Card Tags', 'textdomain' ),\n 'all_items' => __( 'All Card Tags', 'textdomain' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Card Tag', 'textdomain' ),\n 'update_item' => __( 'Update Card Tag', 'textdomain' ),\n 'add_new_item' => __( 'Add New Card Tag', 'textdomain' ),\n 'new_item_name' => __( 'New Card Tag Name', 'textdomain' ),\n 'separate_items_with_commas' => __( 'Separate card tags with commas', 'textdomain' ),\n 'add_or_remove_items' => __( 'Add or remove card tags', 'textdomain' ),\n 'choose_from_most_used' => __( 'Choose from the most used card tags', 'textdomain' ),\n 'not_found' => __( 'No card tags found.', 'textdomain' ),\n 'menu_name' => __( 'Card Tags', 'textdomain' ),\n );\n\n $args = array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'card_tag' ),\n 'capabilities' => array(\n 'manage_terms' => 'edit_travelcards',\n 'edit_terms' => 'edit_travelcards',\n 'delete_terms' => 'edit_travelcards',\n 'assign_terms' => 'edit_travelcards'\n )\n );\n\n register_taxonomy( 'card_tag', 'travelcard', $args );\n }", "public function taxonomieen()\n\t{\n\t\t// bepaalde waarden worden opgeslagen\n\t\t// verwerkt de taxonomieen tot bv \"categorie\"\n\t\t// @TODO meervoud van taxonomieen dient nog correct ingesteld te worden in posttypes.php en die hier uitgedraaid te worden via\n\t\t// https://developer.wordpress.org/reference/functions/get_taxonomy_labels/\n\n\t\tif (!$this->taxonomieen || $this->is_categorie) return;\n\n\n\t\t$tl_str = $this->art->post_type . '-taxlijst';\n\t\t//niet iedere keer opnieuw doen.\n\t\tif (!array_key_exists($tl_str, $GLOBALS)) {\n\t\t\t$this->maak_taxlijst();\n\t\t}\n\n\n\t\t$terms = wp_get_post_terms($this->art->ID, $GLOBALS[$tl_str]);\n\n\t\t$overslaan = array('Geen categorie', 'Uncategorized');\n\n\t\t$print_ar = array();\n\n\t\tif (count($terms)) :\n\n\t\t\tforeach ($terms as $term) :\n\n\t\t\t\tif (in_array($term->name, $overslaan)) continue;\n\n\t\t\t\tif (array_key_exists($term->taxonomy, $print_ar)) {\n\t\t\t\t\t$print_ar[$term->taxonomy][] = $term->name;\n\t\t\t\t} else {\n\t\t\t\t\t$print_ar[$term->taxonomy] = array($term->name);\n\t\t\t\t}\n\n\t\t\tendforeach;\n\n\t\t\t///\n\n\t\t\tif (count($print_ar)) {\n\n\t\t\t\t$teller = 0;\n\n\t\t\t\tforeach ($print_ar as $tax_naam => $tax_waarden) :\n\n\t\t\t\t\tif ($tax_naam === 'category') $tax_naam = 'categorie';\n\n\t\t\t\t\t//als geen datum, dan eerste tax waarde geen streepje links.\n\n\t\t\t\t\t$str = \"- \";\n\n\t\t\t\t\tif ($this->geen_datum && $teller < 1) {\n\t\t\t\t\t\t$str = \"\";\n\t\t\t\t\t\t$teller++;\n\t\t\t\t\t}\n\n\t\t\t\t\techo \"<span class='tax tekst-zwart'> $str\" . strtolower(implode(', ', $tax_waarden)) . \"</span>\";\n\n\n\t\t\t\tendforeach; //iedere print_ar\n\t\t\t}\n\t\tendif; //als count terms\n\n\n\t}", "function bw_create_taxonomies() {\n//first do the translations part for GUI\n \n $labels = array(\n 'name' => _x( 'Years', 'taxonomy general name' ),\n 'singular_name' => _x( 'Year', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Years' ),\n 'all_items' => __( 'All Years' ),\n 'parent_item' => __( 'Parent Year' ),\n 'parent_item_colon' => __( 'Parent Year:' ),\n 'edit_item' => __( 'Edit Year' ), \n 'update_item' => __( 'Update Year' ),\n 'add_new_item' => __( 'Add New Year' ),\n 'new_item_name' => __( 'New Year Name' ),\n 'menu_name' => __( 'Years' ),\n ); \n \n// Now register the taxonomy\n \n register_taxonomy('years',array('post'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'topic' ),\n ));\n \n}", "public function create_taxonomies() {\n \n }", "function register_taxonomies(){\n }", "function wp_newTerm( $args ) {\n\n global $wp_xmlrpc_server;\n $wp_xmlrpc_server->escape( $args );\n\n $blog_ID = (int) $args[0];\n $username = $args[1];\n $password = $args[2];\n $content_struct = $args[3];\n\n if ( ! $user = $wp_xmlrpc_server->login( $username, $password ) )\n return $wp_xmlrpc_server->error;\n\n if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )\n return new IXR_Error( 403, __( 'Invalid taxonomy' ) );\n\n $taxonomy = get_taxonomy( $content_struct['taxonomy'] );\n\n if( ! current_user_can( $taxonomy->cap->manage_terms ) )\n return new IXR_Error( 401, __( 'You are not allowed to create terms in this taxonomy' ) );\n\n $taxonomy = (array)$taxonomy;\n\n // hold the data of the term\n $term_data = array();\n \n $term_data['name'] = trim( $content_struct['name'] );\n if ( empty ( $term_data['name'] ) )\n return new IXR_Error( 403, __( 'The term name cannot be empty' ) );\n\n if( isset ( $content_struct['parent'] ) ) {\n\n if( ! $taxonomy['hierarchical'] )\n return new IXR_Error( 403, __( 'This taxonomy is not hieararchical' ) );\n\n $parent_term_id = (int)$content_struct['parent'];\n $parent_term = get_term( $parent_term_id , $taxonomy['name'] );\n\n if ( is_wp_error( $parent_term ) )\n return new IXR_Error( 500, $term->get_error_message() );\n\n if ( ! $parent_term )\n return new IXR_Error(500, __('Parent term does not exist'));\n\n $term_data['parent'] = $content_struct['parent'];\n \n }\n\n $term_data['description'] = '';\n if( isset ( $content_struct['description'] ) )\n $term_data['description'] = $content_struct['description'];\n\n $term_data['slug'] = '';\n if( isset ( $content_struct['slug'] ) )\n $term_data['slug'] = $content_struct['slug'];\n\n $term_ID = wp_insert_term( $term_data['name'] , $taxonomy['name'] , $term_data );\n\n if ( is_wp_error( $term_ID ) )\n return new IXR_Error(500, $term_ID->get_error_message());\n\n if ( ! $term_ID )\n return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.'));\n\n return $term_ID;\n\n}", "function register_taxonomies(){\n }", "function register_taxonomies() {\n\t}", "function register_taxonomies() {\n\t}", "function register_taxonomies() {\n\t}", "function get_parse_ini($file)\n{\n if (!is_file($file))\n return false;\n\n $ini = file($file);\n\n // to hold the categories, and within them the entries\n $cats = array();\n\n foreach ($ini as $i) {\n if (@preg_match('/\\[(.+)\\]/', $i, $matches)) {\n $last = $matches[1];\n } elseif (@preg_match('/(.+)=(.+)/', $i, $matches)) {\n $cats[$last][trim($matches[1])] = trim($matches[2]);\n }\n }\n\n return $cats;\n\n}", "public function getTaxonomyIds()\n {\n return $this->taxonomy_ids;\n }", "function create_software_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Habilidad software', 'taxonomy general name' ),\n 'singular_name' => _x( 'Habilidad software', 'taxonomy singular name' ),\n 'search_items' => __( 'Search software' ),\n 'all_items' => __( 'Habilidades software' ),\n 'parent_item' => __( 'Parent software' ),\n 'parent_item_colon' => __( 'Parent software:' ),\n 'edit_item' => __( 'Editar software' ), \n 'update_item' => __( 'Actualizar software' ),\n 'add_new_item' => __( 'Nueva habilidad de software' ),\n 'new_item_name' => __( 'Nueva habilidad software' ),\n 'menu_name' => __( 'Habilidad software' ),\n ); \t\n\n register_taxonomy('habilidad-software',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'habilidad-software' ),\n ));\n\n}", "function nodeTaxTermField(&$node, $field, $value){\n\t\t\n \t\t//split piped value in array\n \t\t$values = explode('|', $value);\n \t\tsort($values);\n\n\n \t\t$thisFieldsPossibleTids = $this->taxInfo['possibleTidValues'][$field];\n \t\t$vocab_machine_name = $this->taxInfo['vocab_machine_name'][$field];\n \t\t$vocab_human_name = $this->taxInfo['vocab_human_name'][$field];\n \t\t\n \t\t//passions is a special case. The ebs_leaflets_final table\n \t\t//'passions' field contains piped names (not tids)\n \t\tif ($field == 'field_passions'):\n \t\t//dsm($values);\n \t\t\t//convert to tids\n \t\t\t$valuesTids = array();\n \t\t\n \t\t\tforeach($values as $key => $value):\n \t\t\t\n\t \t\t\tif (strlen($value) > 0)://adjacent pipes or no values at all\n\t\t \t\t\t$terms = taxonomy_get_term_by_name($value, $vocab_machine_name);\n\t\t \t\t\t$term = array_shift($terms);\n\t \t\t\t\n\t \t\t\t\tif (isset($term) && is_numeric($term->tid)): \n\t \t\t\t\t\t$valuesTids[] = $term->tid;\n\t \t\t\t\telse:\n\t\t \t\t\t\t$this->log[] = get_class($this).\": Couldn't find \\\"\".$value.\"\\\" in \".$vocab_human_name.\" taxonomy for \".$node->field_leaflet_code['und'][0]['value'].\" \".$node->title;\n\t \t\t\t\tendif;\t\t\t\n\t\t\t\tendif;\n\t\t\t\t\n \t\t\tendforeach;\n \t\t\t \t\t\t \t\t\t\n \t\t\t$values = $valuesTids;\n\n \t\tendif;\n\n \t\t//Remove duff values\n \t\tforeach ($values as $key => $value):\n \t\t\t$badValue = false;\n \t\t\tif (strlen($value) > 0 && !in_array($value, $thisFieldsPossibleTids)):\n\n\t \t\t\t$badValue = true;\n \t\t\t$this->log[] = get_class($this).\": Couldn't find \\\"\".$value.\"\\\" in \".$vocab_human_name.\" taxonomy for \".$node->field_leaflet_code['und'][0]['value'].\" \".$node->title;\n\t \t\tendif;\n\t \t\t\n\t \t\tif (strlen($value) == 0):\n\t \t\t\t$badValue = true;\n\n\t \t\tendif;\n\t \t\t\n\t \t\tif ($badValue == true):\n\t \t\t\tunset($values[$key]);\n\t \t\tendif;\n\n\t \t\t\n \t\tendforeach;\n \t\t\n \t\t\n \t\t\n \t \t\t \t\t\t\t\n \t\tif (!empty($node->nid)){\n \t\t\t//its an existing node...\n \t\t\t\n \t\t\tif (!isset($node->{$field}[$node->language][0]['tid']) && count($values)> 0){\n \t\t\t\t//...but for some reason the existing node had no values set\n \t\t\t\t$this->nodeNeedsUpdate[$node->nid] = true;\n \t\t\t\t//dsm(__FUNCTION__.\" flagging \".$node->nid);\n \t\t\t\t//dsm($node->{$field}[$node->language][0]['tid'].\" \".$value.\" \".$field);\n \t\t\t}\n \t\t\t\n \t\t\tif ((isset($node->{$field}[$node->language][0]['tid']) &&\t(!$this->sameTaxTermValues($node, $field, $values))) ){\n \t\t\t\t//...with amended incoming values to existing values\n \t\t\t\t$this->nodeNeedsUpdate[$node->nid] = true;\n \t\t\t\t//dsm(__FUNCTION__.\" flagging \".$node->nid);\n \t\t\t\t//dsm($node->{$field}[$node->language][0]['tid'].\" \".$value.\" \".$field);\n \t\t\t}\n \t\t}\n \t\t\n \t\tunset($node->{$field}[$node->language]);\n\n \t\tif (count($values) > 0){\n \t\t\tforeach ($values as $key => $value):\n \t\t\t\t//if (strlen($value) > 0):\n \t\t\t\t$node->{$field}[$node->language][$key]['tid'] = $value;\n \t\t\t\t//endif;\n \t\t\tendforeach;\n \t\t}\n \t}", "public static function getTaxonomyFromTermId($term_id)\n {\n /* @var \\wpdb $wpdb */\n global $wpdb;\n\n $taxonomy = $wpdb->get_var(\n $wpdb->prepare('\n SELECT `term_tax`.`taxonomy` FROM ' . $wpdb->term_taxonomy . ' AS `term_tax`\n WHERE `term_tax`.`term_id` = %d\n LIMIT 1;\n ', $term_id)\n );\n\n return $taxonomy;\n }", "function rs_get_custom_term_values($type) {\n\n\t$items = array();\n\t$terms = get_terms($type, array('orderby' => 'name'));\n\tif (is_array($terms) && !is_wp_error($terms)) {\n\t\tforeach ($terms as $term) {\n\t\t\t$items[$term -> name] = $term -> term_id;\n\t\t}\n\t}\n\treturn $items;\n}", "function register_taxonomy() {\n/*\n\t\t$labels = mediatags_get_taxonomy_labels();\n\t\t $labels = array(\n\t\t 'name' \t\t\t\t=> _x( 'Media-Tags', \t\t\t'taxonomy general name', \t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t 'singular_name' \t=> _x( 'Media-Tag', \t\t\t'taxonomy singular name', \t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t 'search_items' \t\t=> _x( 'Search Media-Tags', \t'taxonomy search items', \t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t\t'popular_items' \t=> _x( 'Popular Media-Tags', \t'taxonomy popular item', \t\tMEDIA_TAGS_I18N_DOMAIN),\t\t\n\t\t 'all_items' \t\t=> _x( 'All Media-Tags', \t\t'taxonomy all items', \t\t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t 'parent_item' \t\t=> _x( 'Parent Media-Tag', \t\t'taxonomy parent item', \t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t 'parent_item_colon' => _x( 'Parent Media-Tag:', \t'taxonomy parent item colon', \tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t 'edit_item' \t\t=> _x( 'Edit Media-Tag', \t\t'taxonomy edit item', \t\t\tMEDIA_TAGS_I18N_DOMAIN ), \n\t\t 'update_item' \t\t=> _x( 'Update Media-Tag', \t\t'taxonomy update item', \t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t 'add_new_item' \t\t=> _x( 'Add New Media-Tag', \t'taxonomy add new item', \t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t 'new_item_name' \t=> _x( 'New Media-Tag Name', \t'taxonomy new item name', \t\tMEDIA_TAGS_I18N_DOMAIN ),\n\t\t );\n*/\n\t\t$labels = mediatags_get_taxonomy_labels();\n\t\n\n\t\tregister_taxonomy(MEDIA_TAGS_TAXONOMY, MEDIA_TAGS_TAXONOMY, array(\n\t\t 'hierarchical' \t\t=> false,\n\t\t 'labels' \t\t\t=> $labels,\n\t\t\t'show_ui' \t\t\t=> false,\n\t\t\t'show_in_nav_menus'\t=> true,\n\t\t\t'show_tagcloud'\t\t=> true,\n\t\t 'query_var' \t\t=> true,\n\t\t 'rewrite' \t\t\t=> array( 'slug' => MEDIA_TAGS_URL, 'with_front' => true ),\n\t\t\t'capabilities' \t\t=> $this->default_caps\n\t\t ));\n\t}", "function troy_categories() {\n\t$file = file_get_contents(get_site_url().'/wp-content/plugins/knoppys-troy/uploads/PublishJobCategories.xml');\n\t\n\t//Create a new object\n\t$categoriesXML = new SimpleXMLElement($file);\n\n\t//Foreach of the categories in the XML file \n\tforeach ($categoriesXML->category as $category) {\n\n\t\t\t//Get the correct WP term name which has to be the actual name\n\t\t\tif ($category['description'] == 'Type Of Job') {\n\t\t\t\t$taxonomyName = 'job_type';\n\t\t\t} elseif ($category['description'] == 'Hours') {\n\t\t\t\t$taxonomyName = 'no_of_hours';\n\t\t\t} elseif ($category['description'] == 'Sector') {\n\t\t\t\t$taxonomyName = 'sector';\n\t\t\t}\n\n\t\t\t/*************\n\t\t\t* Check to see if the <job_category> exists. \n\t\t\t* Update or create it\n\t\t\t*************/\t\t\n\t\t\tforeach ($category->job_category as $job_category) {\t\t\t\t\t\n\t\t\t\tif(term_exists($job_category['code'],$taxonomyName)){\t\t\t\t\t\t\n\t\t\t\t\t$categoryName = get_term($job_category[0], $taxonomyName);\n\t\t\t\t\t$args = array('slug'=>$job_category[0],'description'=>$job_category[0]);\t\t\t\t\t\n\t\t\t\t\twp_update_term( $categoryName->ID, $taxonomyName, $args);\n\t\t\t\t\tupdate_term_meta($categoryName->ID,'code', $job_category['code']);\t\t\t\t\t\n\t\t\t\t} else {\t\t\t\t\t\n\t\t\t\t\t$args = array('slug'=>$job_category[0],'description'=>$job_category[0]);\t\t\t\t\t\t\t\t\n\t\t\t\t\twp_insert_term( $job_category['code'], $taxonomyName, $args);\t\n\t\t\t\t\t$term = get_term($job_category[0]);\n\t\t\t\t\tupdate_term_meta($term->ID,'code', $job_category['code']);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t}\t\n}" ]
[ "0.6669934", "0.63351905", "0.63004637", "0.6175052", "0.6071222", "0.6037896", "0.5919632", "0.58877146", "0.5667903", "0.5644086", "0.5492493", "0.5472193", "0.54660827", "0.5456491", "0.5419356", "0.540583", "0.53981966", "0.5380606", "0.5372109", "0.5331276", "0.5330196", "0.53225267", "0.5322028", "0.53009105", "0.5253673", "0.5231183", "0.5212925", "0.521021", "0.52005297", "0.51723015", "0.5171696", "0.5167693", "0.51509774", "0.5139243", "0.5137467", "0.5129432", "0.51254714", "0.51194745", "0.51099503", "0.5106503", "0.5091721", "0.5089939", "0.50862855", "0.50757277", "0.5069203", "0.50515246", "0.5044325", "0.5040097", "0.5039407", "0.5036492", "0.5025172", "0.50212884", "0.5017096", "0.5016702", "0.5013067", "0.5010166", "0.50079304", "0.50065565", "0.49938178", "0.4983599", "0.4980971", "0.49695075", "0.49590412", "0.49559027", "0.4938813", "0.49339455", "0.49272552", "0.49267966", "0.49247256", "0.49112666", "0.49107742", "0.49064943", "0.48952693", "0.4892835", "0.48865503", "0.48859912", "0.4885955", "0.48807806", "0.48720473", "0.4871847", "0.4868798", "0.4854893", "0.48529562", "0.48522606", "0.48495132", "0.48461664", "0.48448712", "0.48334786", "0.48242134", "0.48235524", "0.48235524", "0.48235524", "0.48175782", "0.4811176", "0.48034504", "0.48017493", "0.47949153", "0.47946003", "0.47817343", "0.47813702" ]
0.6631315
1
Return an array of term IDs for hierarchical taxonomies or the original string from CSV for nonhierarchical taxonomies. The original string should have the same format as csv_post_tags.
function create_terms( $taxonomy, $field ) { if ( is_taxonomy_hierarchical( $taxonomy ) ) { $term_ids = array(); foreach ( $this->_parse_tax( $field ) as $row ) { @list( $parent, $child ) = $row; $parent_ok = TRUE; if ( $parent ) { $parent_info = $this->term_exists( $parent, $taxonomy ); if ( ! $parent_info ) { // create parent $parent_info = wp_insert_term( $parent, $taxonomy ); } if ( ! is_wp_error( $parent_info ) ) { $parent_id = $parent_info['term_id']; } else { // could not find or create parent $parent_ok = FALSE; } } else { $parent_id = 0; } if ( $parent_ok ) { $child_info = $this->term_exists( $child, $taxonomy, $parent_id ); if ( ! $child_info ) { // create child $child_info = wp_insert_term( $child, $taxonomy, array( 'parent' => $parent_id ) ); } if ( ! is_wp_error( $child_info ) ) { $term_ids[] = $child_info['term_id']; } } } return $term_ids; } else { return $field; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parse_taxonomy_string($parsed_data, $importer)\n {\n\n if (!empty($parsed_data[$this->taxonomies_id])) {\n\n //$data = json_decode( $parsed_data[ 'products_trending_item' ], true );\n $data = explode(\",\", $parsed_data[$this->taxonomies_id]);\n unset($parsed_data[$this->taxonomies_id]);\n\n if (is_array($data)) {\n\n $parsed_data[$this->taxonomies_id] = array();\n\n // foreach ( $data as $term_id ) {\n // \t$parsed_data[ 'products_trending_item' ][] = $term_id;\n // }\n foreach ($data as $term_name) {\n $term = get_term_by('name', $term_name, $this->taxonomies_id);\n if ($term)\n $parsed_data[$this->taxonomies_id][] = $term->term_id;\n }\n }\n }\n\n return $parsed_data;\n }", "public function import_terms( $args, $assoc_args ) {\n\n\t\t$taxonomy = $args[0];\n\n\t\t// Bail if a taxonomy isn't specified\n\t\tif ( empty( $taxonomy ) ) {\n\t\t\tWP_CLI::error( __( 'Please specify the taxonomy you would like to import your terms for', 'wp-migration' ) );\n\t\t}\n\n\t\t$filename = $assoc_args['file'];\n\n\t\t// Bail if a filename isn't specified, or the file doesn't exist\n\t\tif ( empty( $filename ) || ! file_exists( $filename ) ) {\n\t\t\tWP_CLI::error( __( 'Please specify the filename of the csv you are trying to import', 'wp-migration' ) );\n\t\t}\n\n\t\t// If the taxonomy doesn't exist, bail\n\t\tif ( false === get_taxonomy( $taxonomy ) ) {\n\t\t\tWP_CLI::error( sprintf( __( 'The taxonomy with the name %s does not exist, please use a taxonomy that does exist', 'wp-migration' ), $taxonomy ) );\n\t\t}\n\n\t\t// Use the wp-cli built in uitility to open up the csv file and position the pointer at the beginning of it.\n\t\t$terms = new \\WP_CLI\\Iterators\\CSV( $filename );\n\n\t\tWP_CLI::success( __( 'Starting import process...', 'wp-migration' ) );\n\t\t$terms_added = 0;\n\n\t\t// Loop through each of the rows in the csv\n\t\tforeach ( $terms as $term_row ) {\n\n\t\t\t// dynamically get the array keys for the row. Essentially a way to reference each of the columns in the row\n\t\t\t$array_keys = array_keys( $term_row );\n\t\t\t$term_parent = '';\n\n\t\t\t$i = 0;\n\n\t\t\t// Loop through each of the columns within the current row we are in\n\t\t\tforeach ( $term_row as $term ) {\n\n\t\t\t\t// If the cell is empty skip it.\n\t\t\t\tif ( empty( $term ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$parent_id = 0;\n\n\t\t\t\t// If we are on the first column of the row, we can skip this since there will be no parent\n\t\t\t\tif ( 0 !== $i ) {\n\n\t\t\t\t\t// Continue looking for a parent until we find one\n\t\t\t\t\tfor ( $count = $i; $count > 0; ++$count ) {\n\n\t\t\t\t\t\t// Find the key for the previous column\n\t\t\t\t\t\t$term_parent_key = $array_keys[ ( $count - 1 ) ];\n\n\t\t\t\t\t\t// move array pointer back one key to find the parent term (if there is one)\n\t\t\t\t\t\t$term_parent = $term_row[ $term_parent_key ];\n\n\t\t\t\t\t\tif ( ! empty( $term_parent ) ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// If there's a parent term in the cell to the left, find the ID and pass it when creating the term\n\t\t\t\tif ( ! empty( $term_parent ) ) {\n\n\t\t\t\t\t// Retrieve the parent term object by the name in the cell so we can grab the ID.\n\t\t\t\t\tif ( function_exists( 'wpcom_vip_get_term_by' ) ) {\n\t\t\t\t\t\t$parent_obj = wpcom_vip_get_term_by( 'name', $term_parent, $taxonomy );\n\t\t\t\t\t\t$parent_id = $parent_obj->term_id;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$parent_obj = get_term_by( 'name', $term_parent, $taxonomy );\n\t\t\t\t\t\t$parent_id = $parent_obj->term_id;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// Find out if the term already exists.\n\t\t\t\tif ( function_exists( 'wpcom_vip_term_exists' ) ) {\n\t\t\t\t\t$term_exists = wpcom_vip_term_exists( $term, $taxonomy, $parent_id );\n\t\t\t\t} else {\n\t\t\t\t\t$term_exists = term_exists( $term, $taxonomy, $parent_id );\n\t\t\t\t}\n\n\t\t\t\t// Don't do anything if the term already exists\n\t\t\t\tif ( ! $term_exists ) {\n\n\t\t\t\t\t// Attempt to insert the term.\n\t\t\t\t\t$result = wp_insert_term( $term, $taxonomy, array( 'parent' => $parent_id ) );\n\n\t\t\t\t\tif ( ! is_wp_error( $result ) ) {\n\t\t\t\t\t\tWP_CLI::success( sprintf( __( 'Successfully added the term: %1$s to the %2$s taxonomy with a parent of: %3$s', 'wp-migration' ), $term, $taxonomy, $term_parent ) );\n\t\t\t\t\t\t$terms_added++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( sprintf( __( 'Could not add term: %s error printed out below', 'wp-migration' ), $term ) );\n\t\t\t\t\t\tWP_CLI::warning( $result );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t$i++;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Woohoo! We made it!\n\t\tWP_CLI::success( sprintf( __( 'Successfully imported %d terms. See the taxonomy structure below', 'wp-migration' ), $terms_added ) );\n\t\t$term_tree = WP_CLI::runcommand( sprintf( 'term list %s --fields=term_id,name,parent', $taxonomy ) );\n\t\techo esc_html( $term_tree );\n\n\t}", "function wpsl_get_term_ids( $cat_list ) {\n\n $term_ids = array();\n $cats = explode( ',', $cat_list );\n\n foreach ( $cats as $key => $term_slug ) {\n $term_data = get_term_by( 'slug', $term_slug, 'wpsl_store_category' );\n\n if ( isset( $term_data->term_id ) && $term_data->term_id ) {\n $term_ids[] = $term_data->term_id;\n }\n }\n\n return $term_ids;\n}", "public function setTaxonomyIds(&$var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->taxonomy_ids = $arr;\n }", "function _parse_tax( $field ) {\n\t\t$data = array();\n\t\tif ( function_exists( 'str_getcsv' ) ) { // PHP 5 >= 5.3.0\n\t\t\t$lines = $this->split_lines( $field );\n\n\t\t\tforeach ( $lines as $line ) {\n\t\t\t\t$data[] = str_getcsv( $line, ',', '\"' );\n\t\t\t}\n\t\t} else {\n\t\t\t// Use temp files for older PHP versions. Reusing the tmp file for\n\t\t\t// the duration of the script might be faster, but not necessarily\n\t\t\t// significant.\n\t\t\t$handle = tmpfile();\n\t\t\tfwrite( $handle, $field );\n\t\t\tfseek( $handle, 0 );\n\n\t\t\twhile ( ( $r = fgetcsv( $handle, 999999, ',', '\"' ) ) !== FALSE ) {\n\t\t\t\t$data[] = $r;\n\t\t\t}\n\t\t\tfclose( $handle );\n\t\t}\n\n\t\treturn $data;\n\t}", "public function terms_slugs_to_ids($terms, $type) {\n \tif(!is_array($terms)) {\n \t\t$terms = explode(',', $terms);\n \t}\n \t$ids = array();\n\n \tif(is_array($terms) && $terms[0] != '') {\n \t\tforeach ($terms as $term) {\n \t\t\t$_term = get_term_by( 'slug', $term, $type );\n \t\t\tif(isset($_term->term_id)) {\n \t\t\t\t$ids[] = $_term->term_id;\n \t\t\t}\n \t\t}\n \t}\n \treturn $ids;\n }", "function _muckypup_database_get_term_ids ($vocabularies) {\n\n $terms = array ();\n \n foreach ($vocabularies as $vocabulary) {\n if ($vocabulary != 0) {\n $term_tree = taxonomy_get_tree($vocabulary);\n \n foreach ($term_tree as $term_branch) {\n $terms[] = $term_branch->tid;\n }\n }\n }\n\n\treturn $terms;\n}", "function process_terms() {\n\t\t$this->terms = apply_filters( 'wp_import_terms', $this->terms );\n\n\t\tif ( empty( $this->terms ) )\n\t\t\treturn;\n\n\t\tforeach ( $this->terms as $term ) {\n\t\t\t// if the term already exists in the correct taxonomy leave it alone\n\t\t\t$term_id = term_exists( $term['slug'], $term['term_taxonomy'] );\n\t\t\tif ( $term_id ) {\n\t\t\t\tif ( is_array($term_id) ) $term_id = $term_id['term_id'];\n\t\t\t\tif ( isset($term['term_id']) )\n\t\t\t\t\t$this->processed_terms[intval($term['term_id'])] = (int) $term_id;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( empty( $term['term_parent'] ) ) {\n\t\t\t\t$parent = 0;\n\t\t\t} else {\n\t\t\t\t$parent = term_exists( $term['term_parent'], $term['term_taxonomy'] );\n\t\t\t\tif ( is_array( $parent ) ) $parent = $parent['term_id'];\n\t\t\t}\n\t\t\t$description = isset( $term['term_description'] ) ? $term['term_description'] : '';\n\t\t\t$termarr = array( 'slug' => $term['slug'], 'description' => $description, 'parent' => intval($parent) );\n\n\t\t\t$id = wp_insert_term( $term['term_name'], $term['term_taxonomy'], $termarr );\n\t\t\tif ( ! is_wp_error( $id ) ) {\n\t\t\t\tif ( isset($term['term_id']) )\n\t\t\t\t\t$this->processed_terms[intval($term['term_id'])] = $id['term_id'];\n\t\t\t} else {\n\t\t\t\tprintf( 'Failed to import %s %s', esc_html($term['term_taxonomy']), esc_html($term['term_name']) );\n\t\t\t\tif ( defined('IMPORT_DEBUG') && IMPORT_DEBUG )\n\t\t\t\t\techo ': ' . $id->get_error_message();\n\t\t\t\techo '<br />';\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tunset( $this->terms );\n\t}", "public function terms_are_ids_or_slugs( $taxonomies, $post_type ) {\n \tif( $taxonomies == '' || !isset($taxonomies) ) {\n \t\treturn;\n \t}\n\n \t$old_tax = explode(',', $taxonomies);\n \t$new_taxs = '';\n\t\tif( isset($old_tax[0]) && is_numeric($old_tax[0]) ) {\n\t\t\t$new_taxs = $old_tax;\n\t\t} else {\n\t\t\t$new_taxs = ra_helper()->terms_slugs_to_ids($taxonomies, $post_type );\n\t\t}\n\n\t\treturn $new_taxs;\n\n }", "function get_taxonomy_term_ids_inside_vocab($vocab_machine_name) {\n $vocab = taxonomy_vocabulary_machine_name_load($vocab_machine_name);\n if (is_object($vocab)) {\n $term_tree = taxonomy_get_tree($vocab->vid);\n if (is_array($term_tree) && !empty($term_tree)) {\n foreach ($term_tree as $key => $value) {\n $tids[] = $value->tid;\n }\n } if (empty($term_tree)) {\n $tids = array();\n }\n } else\n return \"No Vocab Found with the given name\";\n\n return ($tids);\n}", "function get_taxonomies( $data ) {\n\t\t$taxonomies = array();\n\t\tforeach ( $data as $k => $v ) {\n\t\t\tif ( preg_match( '/^csv_ctax_(.*)$/', $k, $matches ) ) {\n\t\t\t\t$t_name = $matches[1];\n\t\t\t\tif ( $this->taxonomy_exists( $t_name ) ) {\n\t\t\t\t\t$taxonomies[ $t_name ] = $this->create_terms( $t_name,\n\t\t\t\t\t\t$data[ $k ] );\n\t\t\t\t} else {\n\t\t\t\t\t$this->log['error'][] = \"Unknown taxonomy $t_name\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $taxonomies;\n\t}", "public function getTaxonomyTerms();", "function get_tags($str) {\n $tags = array();\n if(!empty($str)) {\n $id_tags = explode(',', $str);\n\n foreach($id_tags as $id_tag) {\n $parts = explode('-', $id_tag);\n $id = $parts[0];\n $tag = $parts[1];\n $tags[$id] = $tag;\n }\n }\n\n return $tags;\n}", "public function generateTaxonomyTermList() {\n $vocab = \"sports\";\n $term_list = [];\n $terms = $this->entityTypeManager\n ->getStorage('taxonomy_term')\n ->loadTree($vocab);\n foreach ($terms as $term) {\n $term_name = $this->t('@name', ['@name' => $term->name]);\n $term_list[\"$term_name\"] = $term_name;\n }\n return $term_list;\n }", "function acf_decode_taxonomy_terms($strings = \\false)\n{\n}", "public function getTaxonomyIds()\n {\n return $this->taxonomy_ids;\n }", "protected function splitTerms($terms)\n {\n # TODO: NEEDS MORE WORK (add more characters ie tilde n, accented e, a, o, etc)\n\n # Explicitly make $terms an array.\n $terms = (array)$terms;\n\n # Create new array for our output.\n $out = array();\n # Create a new array for our alternate terms.\n $alt_terms = array();\n # Create a new array for our interim output.\n $interim_out = array();\n\n # Define excluded words.\n $exclude = ' the if it to a I but no so of are and';\n\n # Create a variable to hold the reg ex pattern that finds all pair of double quotes (\").\n $pattern = '/\\\"(.*?)\\\"/';\n # Create a variable to hold the method call that replaces any whitespaces or commas with a holder token.\n //$replacement=\"Search::change2Token('\\$1')\";\n # Find all pair of double quotes (\") and pass their contents to the change2Token() method for processing.\n $terms = preg_replace_callback(\n $pattern,\n function ($matches) {\n foreach ($matches as $match) {\n return Search::change2Token($match);\n }\n },\n $terms\n );\n # Take out parentheses\n $terms = preg_replace('/\\)|\\(/', '', $terms);\n\n # Loop through the terms\n foreach ($terms as $term) {\n if (!empty($term)) {\n # Split searchable terms on whitespace and commas and put into an array.\n $term = preg_split(\"/\\s+|,/\", $term);\n foreach ($term as $split) {\n # If the term is not in the excluded list add it to the $interim_out array.\n if (!empty($split) && (strpos($exclude, $split) === false)) {\n $interim_out[] = $split;\n }\n }\n }\n }\n # Rename $interim_out as $terms.\n $terms = $interim_out;\n\n # Loop through the array.\n foreach ($terms as $term) {\n # For each searchable term, replace the holding tokens with their original contents (whitespace or comma).\n $term = preg_replace_callback(\n \"/\\{WHITESPACE-([\\d]+)\\}/\",\n function ($matches) {\n foreach ($matches as $match) {\n return chr($match);\n }\n },\n $term\n );\n $term = preg_replace(\"/\\{COMMA\\}/\", \",\", $term);\n\n # If the term is not in the excluded list add it to the $out array.\n if (!empty($term) && (strpos($exclude, $term) === false)) {\n $out[] = $term;\n }\n }\n # Loop through the array again.\n foreach ($out as $term) {\n # First, replace HTML entities\n $alt_term = Utility::htmlToText($term, false);\n\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Second, replace with HTML entities\n $dblquote_search = chr(34);\n $search[] = '/(' . $dblquote_search . ')/';\n $snglquote_search = \"'\";\n $search[] = '/(' . $snglquote_search . ')/';\n $dash_search = chr(45);\n $search[] = '/(' . $dash_search . ')/';\n $ampersand_search = chr(38);\n $search[] = '/(' . $ampersand_search . ')/';\n $lessthan_search = chr(60);\n $search[] = '/(' . $lessthan_search . ')/';\n $greaterthan_search = chr(62);\n $search[] = '/(' . $greaterthan_search . ')/';\n $space_search = ' ';\n $search[] = '/(' . $space_search . ')/';\n $inverted_exclamation_mark_search = '¡';\n $search[] = '/(' . $inverted_exclamation_mark_search . ')/';\n $inverted_question_mark_search = '¿';\n $search[] = '/(' . $inverted_question_mark_search . ')/';\n $cent_search = '¢';\n $search[] = '/(' . $cent_search . ')/';\n $pound_search = '£';\n $search[] = '/(' . $pound_search . ')/';\n $copyright_search = '©';\n $search[] = '/(' . $copyright_search . ')/';\n $registered_search = '®';\n $search[] = '/(' . $registered_search . ')/';\n $degrees_search = '°';\n $search[] = '/(' . $degrees_search . ')/';\n $apostrophe_search = chr(39);\n $search[] = '/(' . $apostrophe_search . ')/';\n $euro_search = '€';\n $search[] = '/(' . $euro_search . ')/';\n $umlaut_a_search = 'ä|a(^(&a(uml|UML)))';\n $search[] = '/(' . $umlaut_a_search . ')/';\n $umlaut_o_search = 'ö|o(^(&o(uml|UML)))';\n $search[] = '/(' . $umlaut_o_search . ')/';\n $umlaut_u_search = 'ü|u(^(&u(uml|UML)))';\n $search[] = '/(' . $umlaut_u_search . ')/';\n $umlaut_y_search = 'ÿ|y(^(&y(uml|UML)))';\n $search[] = '/(' . $umlaut_y_search . ')/';\n $umlaut_A_search = 'Ä|A(^(&A(uml|UML)))';\n $search[] = '/(' . $umlaut_A_search . ')/';\n $umlaut_O_search = 'Ö|O(^(&O(uml|UML)))';\n $search[] = '/(' . $umlaut_O_search . ')/';\n $umlaut_U_search = 'Ü|U(^(&U(uml|UML)))';\n $search[] = '/(' . $umlaut_U_search . ')/';\n $umlaut_Y_search = 'Ÿ|Y(^(&Y(uml|UML)))';\n $search[] = '/(' . $umlaut_Y_search . ')/';\n $latin_small_letter_sharp_s_search = 'ß';\n $search[] = '/(' . $latin_small_letter_sharp_s_search . ')/';\n\n $dblquote_replace = '&ldquo;';\n $replace[] = $dblquote_replace;\n $snglquote_replace = '&lsquo;';\n $replace[] = $snglquote_replace;\n $dash_replace = '&ndash;';\n $replace[] = $dash_replace;\n $ampersand_replace = '&amp;';\n $replace[] = $ampersand_replace;\n $lessthan_replace = '&lt;';\n $replace[] = $lessthan_replace;\n $greaterthan_replace = '&gt;';\n $replace[] = $greaterthan_replace;\n $space_replace = '&nbsp;';\n $replace[] = $space_replace;\n $inverted_exclamation_mark_replace = '&iexcl;';\n $replace[] = $inverted_exclamation_mark_replace;\n $inverted_question_mark_replace = '&iquest;';\n $replace[] = $inverted_question_mark_replace;\n $cent_replace = '&cent;';\n $replace[] = $cent_replace;\n $pound_replace = '&pound;';\n $replace[] = $pound_replace;\n $copyright_replace = '&copy;';\n $replace[] = $copyright_replace;\n $registered_replace = '&reg;';\n $replace[] = $registered_replace;\n $degrees_replace = '&deg;';\n $replace[] = $degrees_replace;\n $apostrophe_replace = '&apos;';\n $replace[] = $apostrophe_replace;\n $euro_replace = '&euro;';\n $replace[] = $euro_replace;\n $umlaut_a_replace = '&auml;';\n $replace[] = $umlaut_a_replace;\n $umlaut_o_replace = '&ouml;';\n $replace[] = $umlaut_o_replace;\n $umlaut_u_replace = '&uuml;';\n $replace[] = $umlaut_u_replace;\n $umlaut_y_replace = '&yuml;';\n $replace[] = $umlaut_y_replace;\n $umlaut_A_replace = '&Auml;';\n $replace[] = $umlaut_A_replace;\n $umlaut_O_replace = '&Ouml;';\n $replace[] = $umlaut_O_replace;\n $umlaut_U_replace = '&Uuml;';\n $replace[] = $umlaut_U_replace;\n $umlaut_Y_replace = '&Yuml;';\n $replace[] = $umlaut_Y_replace;\n $latin_small_letter_sharp_s_replace = '&szlig;';\n $replace[] = $latin_small_letter_sharp_s_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search array.\n $replace = array();\n\n # Third with alternate HTML entities\n $dblquote_replace = '&#8220;';\n $replace[] = $dblquote_replace;\n $snglquote_replace = '&#8216;';\n $replace[] = $snglquote_replace;\n $dash_replace = '&#x2013;';\n $replace[] = $dash_replace;\n $ampersand_replace = '&#38;';\n $replace[] = $ampersand_replace;\n $lessthan_replace = '&#60;';\n $replace[] = $lessthan_replace;\n $greaterthan_replace = '&#62;';\n $replace[] = $greaterthan_replace;\n $space_replace = '&#160;';\n $replace[] = $space_replace;\n $inverted_exclamation_mark_replace = '&#161;';\n $replace[] = $inverted_exclamation_mark_replace;\n $inverted_question_mark_replace = '&#191;';\n $replace[] = $inverted_question_mark_replace;\n $cent_replace = '&#162;';\n $replace[] = $cent_replace;\n $pound_replace = '&#163;';\n $replace[] = $pound_replace;\n $copyright_replace = '&#169;';\n $replace[] = $copyright_replace;\n $registered_replace = '&#174;';\n $replace[] = $registered_replace;\n $degrees_replace = '&#176;';\n $replace[] = $degrees_replace;\n $apostrophe_replace = '&#39;';\n $replace[] = $apostrophe_replace;\n $euro_replace = '&#8364;';\n $replace[] = $euro_replace;\n $umlaut_a_replace = '&aUML;';\n $replace[] = $umlaut_a_replace;\n $umlaut_o_replace = '&oUML;';\n $replace[] = $umlaut_o_replace;\n $umlaut_u_replace = '&uUML;';\n $replace[] = $umlaut_u_replace;\n $umlaut_y_replace = '&yUML;';\n $replace[] = $umlaut_y_replace;\n $umlaut_A_replace = '&AUML;';\n $replace[] = $umlaut_A_replace;\n $umlaut_O_replace = '&OUML;';\n $replace[] = $umlaut_O_replace;\n $umlaut_U_replace = '&UUML;';\n $replace[] = $umlaut_U_replace;\n $umlaut_Y_replace = '&YUML;';\n $replace[] = $umlaut_Y_replace;\n $latin_small_letter_sharp_s_replace = '&#xdf;';\n $replace[] = $latin_small_letter_sharp_s_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Fourth, we do it again\n $dblquote_search = chr(34);\n $search[] = '/(' . $dblquote_search . ')/';\n $snglquote_search = \"'\";\n $search[] = '/(' . $snglquote_search . ')/';\n $dash_search = chr(45);\n $search[] = '/(' . $dash_search . ')/';\n $ampersand_search = chr(38);\n $search[] = '/(' . $ampersand_search . ')/';\n $lessthan_search = chr(60);\n $search[] = '/(' . $lessthan_search . ')/';\n $greaterthan_search = chr(62);\n $search[] = '/(' . $greaterthan_search . ')/';\n $space_search = ' ';\n $search[] = '/(' . $space_search . ')/';\n $apostrophe_search = chr(39);\n $search[] = '/(' . $apostrophe_search . ')/';\n $latin_small_letter_sharp_s_search = 'ß';\n $search[] = '/(' . $latin_small_letter_sharp_s_search . ')/';\n\n $dblquote_replace = '&rdquo;';\n $replace[] = $dblquote_replace;\n $snglquote_replace = '&rsquo;';\n $replace[] = $snglquote_replace;\n $dash_replace = '&#8211;';\n $replace[] = $dash_replace;\n $ampersand_replace = '&#038;';\n $replace[] = $ampersand_replace;\n $lessthan_replace = '&#060;';\n $replace[] = $lessthan_replace;\n $greaterthan_replace = '&#062;';\n $replace[] = $greaterthan_replace;\n $space_replace = '&#xa0;';\n $replace[] = $space_replace;\n $apostrophe_replace = '&#039;';\n $replace[] = $apostrophe_replace;\n $latin_small_letter_sharp_s_replace = '&#223;';\n $replace[] = $latin_small_letter_sharp_s_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Fifth, again.\n $dblquote_search = chr(34);\n $search[] = '/(' . $dblquote_search . ')/';\n $snglquote_search = \"'\";\n $search[] = '/(' . $snglquote_search . ')/';\n $dash_search = chr(45);\n $search[] = '/(' . $dash_search . ')/';\n $ampersand_search = chr(38);\n $search[] = '/(' . $ampersand_search . ')/';\n $lessthan_search = chr(60);\n $search[] = '/(' . $lessthan_search . ')/';\n $greaterthan_search = chr(62);\n $search[] = '/(' . $greaterthan_search . ')/';\n $apostrophe_search = chr(39);\n $search[] = '/(' . $apostrophe_search . ')/';\n\n $dblquote_replace = '&#8221;';\n $replace[] = $dblquote_replace;\n $snglquote_replace = '&#8217;';\n $replace[] = $snglquote_replace;\n $dash_replace = '&mdash;';\n $replace[] = $dash_replace;\n $ampersand_replace = '&#x26;';\n $replace[] = $ampersand_replace;\n $lessthan_replace = '&#x3c;';\n $replace[] = $lessthan_replace;\n $greaterthan_replace = '&#x3e;';\n $replace[] = $greaterthan_replace;\n $apostrophe_replace = '&#x27;';\n $replace[] = $apostrophe_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Sixth, again\n $dblquote_search = chr(34);\n $search[] = '/(' . $dblquote_search . ')/';\n $dash_search = chr(45);\n $search[] = '/(' . $dash_search . ')/';\n\n $dblquote_replace = '&quot;';\n $replace[] = $dblquote_replace;\n $dash_replace = '&#x2014;';\n $replace[] = $dash_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Seventh, again\n $dblquote_search = chr(34);\n $search[] = '/(' . $dblquote_search . ')/';\n $dash_search = chr(45);\n $search[] = '/(' . $dash_search . ')/';\n\n $dblquote_replace = '&#34;';\n $replace[] = $dblquote_replace;\n $dash_replace = '&#8212;';\n $replace[] = $dash_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Eighth, once again\n $dblquote_search = chr(34);\n $search[] = '/(' . $dblquote_search . ')/';\n $dash_search = chr(45);\n $search[] = '/(' . $dash_search . ')/';\n\n $dblquote_replace = '&#034;';\n $replace[] = $dblquote_replace;\n $dash_replace = '&#150;';\n $replace[] = $dash_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Ninth, again\n $alt_term = preg_replace('/(' . chr(34) . ')/', '&#x22;', $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Tenth, again\n $umlaut_a_search = '/a&(^(&a(uml|UML)))/';\n $search[] = $umlaut_a_search;\n $umlaut_o_search = '/o&(^(&o(uml|UML)))/';\n $search[] = $umlaut_o_search;\n $umlaut_u_search = '/u&(^(&u(uml|UML)))/';\n $search[] = $umlaut_u_search;\n $umlaut_y_search = '/y&(^(&y(uml|UML)))/';\n $search[] = $umlaut_y_search;\n $umlaut_A_search = '/A&(^(&A(uml|UML)))/';\n $search[] = $umlaut_A_search;\n $umlaut_O_search = '/O&(^(&O(uml|UML)))/';\n $search[] = $umlaut_O_search;\n $umlaut_U_search = '/U&(^(&U(uml|UML)))/';\n $search[] = $umlaut_U_search;\n $umlaut_Y_search = '/Y&(^(&Y(uml|UML)))/';\n $search[] = $umlaut_Y_search;\n\n $umlaut_a_replace = 'ä';\n $replace[] = $umlaut_a_replace;\n $umlaut_o_replace = \"ö\";\n $replace[] = $umlaut_o_replace;\n $umlaut_u_replace = \"ü\";\n $replace[] = $umlaut_u_replace;\n $umlaut_y_replace = \"ÿ\";\n $replace[] = $umlaut_y_replace;\n $umlaut_A_replace = \"Ä\";\n $replace[] = $umlaut_A_replace;\n $umlaut_O_replace = \"Ö\";\n $replace[] = $umlaut_O_replace;\n $umlaut_U_replace = \"Ü\";\n $replace[] = $umlaut_U_replace;\n $umlaut_Y_replace = \"Ÿ\";\n $replace[] = $umlaut_Y_replace;\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Eleventh, again\n $umlaut_a_search = '/ä/';\n $search[] = $umlaut_a_search;\n $umlaut_o_search = '/ö/';\n $search[] = $umlaut_o_search;\n $umlaut_u_search = '/ü/';\n $search[] = $umlaut_u_search;\n $umlaut_y_search = '/ÿ/';\n $search[] = $umlaut_y_search;\n $umlaut_A_search = '/Ä/';\n $search[] = $umlaut_A_search;\n $umlaut_O_search = '/O/';\n $search[] = $umlaut_O_search;\n $umlaut_U_search = '/Ü/';\n $search[] = $umlaut_U_search;\n $umlaut_Y_search = '/Ÿ/';\n $search[] = $umlaut_Y_search;\n\n $umlaut_a_replace = 'a';\n $replace[] = $umlaut_a_replace;\n $umlaut_o_replace = \"o\";\n $replace[] = $umlaut_o_replace;\n $umlaut_u_replace = \"u\";\n $replace[] = $umlaut_u_replace;\n $umlaut_y_replace = \"y\";\n $replace[] = $umlaut_y_replace;\n $umlaut_A_replace = \"A\";\n $replace[] = $umlaut_A_replace;\n $umlaut_O_replace = \"Ö\";\n $replace[] = $umlaut_O_replace;\n $umlaut_U_replace = \"U\";\n $replace[] = $umlaut_U_replace;\n $umlaut_Y_replace = \"Y\";\n $replace[] = $umlaut_Y_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Twelfth, again\n $umlaut_a_search = '/&a(uml|UML);/';\n $search[] = $umlaut_a_search;\n $umlaut_o_search = '/&o(uml|UML);/';\n $search[] = $umlaut_o_search;\n $umlaut_u_search = '/&u(uml|UML);/';\n $search[] = $umlaut_u_search;\n $umlaut_y_search = '/&y(uml|UML);/';\n $search[] = $umlaut_y_search;\n $umlaut_A_search = '/&A(uml|UML);/';\n $search[] = $umlaut_A_search;\n $umlaut_O_search = '/&O(uml|UML);/';\n $search[] = $umlaut_O_search;\n $umlaut_U_search = '/&U(uml|UML);/';\n $search[] = $umlaut_U_search;\n $umlaut_Y_search = '/&Y(uml|UML);/';\n $search[] = $umlaut_Y_search;\n\n $umlaut_a_replace = 'a';\n $replace[] = $umlaut_a_replace;\n $umlaut_o_replace = \"o\";\n $replace[] = $umlaut_o_replace;\n $umlaut_u_replace = \"u\";\n $replace[] = $umlaut_u_replace;\n $umlaut_y_replace = \"y\";\n $replace[] = $umlaut_y_replace;\n $umlaut_A_replace = \"A\";\n $replace[] = $umlaut_A_replace;\n $umlaut_O_replace = \"O\";\n $replace[] = $umlaut_O_replace;\n $umlaut_U_replace = \"U\";\n $replace[] = $umlaut_U_replace;\n $umlaut_Y_replace = \"Y\";\n $replace[] = $umlaut_Y_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n\n # Reset the search and replace arrays.\n $search = array();\n $replace = array();\n\n # Thirteenth, again\n $a_search = '/a/';\n $search[] = $a_search;\n $o_search = '/o/';\n $search[] = $o_search;\n $u_search = '/u/';\n $search[] = $u_search;\n $y_search = '/y/';\n $search[] = $y_search;\n $A_search = '/A/';\n $search[] = $A_search;\n $O_search = '/O/';\n $search[] = $O_search;\n $U_search = '/U/';\n $search[] = $U_search;\n $Y_search = '/Y/';\n $search[] = $Y_search;\n\n $a_replace = 'ä';\n $replace[] = $a_replace;\n $o_replace = \"ö\";\n $replace[] = $o_replace;\n $u_replace = \"ü\";\n $replace[] = $u_replace;\n $y_replace = \"ÿ\";\n $replace[] = $y_replace;\n $A_replace = \"Ä\";\n $replace[] = $A_replace;\n $O_replace = \"Ö\";\n $replace[] = $O_replace;\n $U_replace = \"Ü\";\n $replace[] = $U_replace;\n $Y_replace = \"Ÿ\";\n $replace[] = $Y_replace;\n\n $alt_term = preg_replace($search, $replace, $term);\n if (!in_array($alt_term, $alt_terms)) {\n $alt_terms[] = $alt_term;\n }\n }\n # Loop through the alternate terms.\n foreach ($alt_terms as $alt_term) {\n if (!empty($alt_term) && (strpos($exclude, $alt_term) === false)) {\n # Add the term to the output array ($out).\n if (!in_array($alt_term, $out)) {\n $out[] = $alt_term;\n }\n }\n }\n\n return $out;\n }", "function ci_list_cat_tag_tax($separator=', ')\n{\n\tglobal $post;\n\n\t$taxonomies = get_post_taxonomies();\n\n\t$i = 0;\n\t$the_terms = array();\n\t$the_terms_temp = array();\n\t$the_terms_list = '';\n\tforeach($taxonomies as $taxonomy)\n\t{\n\t\t$the_terms_temp[] = get_the_term_list($post->ID, $taxonomy, '', $separator, '');\n\t}\n\n\tforeach($the_terms_temp as $term)\n\t{\n\t\tif(!empty($term))\n\t\t\t$the_terms[] = $term;\n\t}\n\t\n\t$terms_count = count($the_terms);\n\tfor($i=0; $i < $terms_count; $i++)\n\t{\n\t\t$the_terms_list .= $the_terms[$i];\n\t\tif ($i < ($terms_count-1))\n\t\t\t$the_terms_list .= $separator;\n\t}\n\t\n\tif (!empty($the_terms_list))\n\t\treturn $the_terms_list;\t\n\telse\n\t\treturn __('Uncategorized', 'ci_theme');\n}", "private function _get_tags_ids_array()\n\t{\n\t\t$data = array();\n\n\t\t$sql = \"select group_concat(id_tag) as ids from \" . $this->get_table();\n\n\t\t$query = $this->{$this->db_group}->query($sql);\n\n\t\tif ( $query->num_rows() > 0)\n\t\t{\n\t\t\t$result = $query->row_array();\n\t\t\tif ( ! is_null($result['ids']))\n\t\t\t{\n\t\t\t\t$data = explode(',', $result['ids']);\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\t}", "public function get_taxonomy_terms( $post_id = null, $taxonomy = null ) {\n\n\t\tif ( ! $post_id || ! $taxonomy ) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$term_uris = array();\n\n\t\t$terms = wp_get_post_terms( $post_id, $taxonomy, array( 'fields' => 'ids' ) );\n\n\t\tif ( is_wp_error( $terms ) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( $terms ) {\n\t\t\tforeach ( $terms as $term ) {\n\n\t\t\t\t$ptv_id = get_term_meta( $term, 'uri', true );\n\n\t\t\t\tif ( $ptv_id ) {\n\t\t\t\t\t$term_uris[] = sanitize_text_field( $ptv_id );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $term_uris ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $term_uris;\n\t}", "public function reverseTransform($string)\n {\n // no tag name? It's optional, so that's ok\n if (!$string) {\n return array();\n }\n \n $tagNames = array_map('trim', explode(',', $string));\n\n $tags = $this->manager\n ->getRepository(Tag::class)\n ->findBy(['name' => $tagNames])\n ;\n $existNames = array_map(function($tag) {\n return $tag->getName();\n }, $tags);\n \n $notExistNames = array_filter(array_diff($tagNames, $existNames), 'mb_strlen');\n \n foreach ($notExistNames as $name){\n $tag = new Tag();\n $tag->setName($name);\n $this->manager->persist($tag);\n $tags[] = $tag;\n }\n $this->manager->flush();\n \n return $tags;\n }", "function rs_get_custom_term_values($type) {\n\n\t$items = array();\n\t$terms = get_terms($type, array('orderby' => 'name'));\n\tif (is_array($terms) && !is_wp_error($terms)) {\n\t\tforeach ($terms as $term) {\n\t\t\t$items[$term -> name] = $term -> term_id;\n\t\t}\n\t}\n\treturn $items;\n}", "function the_terms($post_id, $taxonomy, $before = '', $sep = ', ', $after = '')\n {\n }", "public static function csvToArray(string $csv): array {\n return strlen(trim($csv)) > 0 ? explode(',', $csv) : [];\n }", "public function get_custom_term_id_values( $type ) {\n\n\t\t$items = array();\n\t\t$terms = get_terms( $type, array('orderby' => 'name' ) );\n\t\tif ( is_array( $terms ) && ! is_wp_error( $terms ) ) {\n\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t$items[$term -> name] = $term -> term_id;\n\t\t\t}\n\t\t}\n\t\treturn $items;\n\t}", "public static function tagArray($tags){\r\n\t\treturn explode(',', $tags);\r\n\t}", "static function importTaxonomies( $taxonomy_map ) {\n\t\t\n\t\techo_now( 'Importing categories and tags...' );\n\t\t\n\t\t# Import Drupal vocabularies as WP taxonomies\n\t\t\n\t\t$vocab_map = array();\n\t\t\n\t\t$dr_tax_prefix = '';\n\t\t\n\t\tif( isset( drupal()->vocabulary ) )\n\t\t\t$dr_tax_prefix = '';\n\t\telse if( isset( drupal()->taxonomy_vocabulary ) )\n\t\t\t$dr_tax_prefix = 'taxonomy_';\n\t\t\n\t\t$dr_tax_vocab = $dr_tax_prefix . 'vocabulary';\n\t\t\n\t\t$vocabs = drupal()->$dr_tax_vocab->getRecords();\n\t\t\n\t\tforeach( $vocabs as $vocab ) {\n\t\t\t\n\t\t\tif( 'skip' == $taxonomy_map[ $vocab['name'] ] )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif( 'asis' == $taxonomy_map[ $vocab['name'] ] ) {\n\t\t\t\t\n\t\t\t\techo_now( 'Registering taxonomy for: ' . str_replace(' ','-',strtolower( $vocab['name'] ) ) );\n\t\t\t\t\n\t\t\t\t$vocab_map[ (int)$vocab['vid'] ] = str_replace(' ','-',strtolower( $vocab['name'] ) );\n\t\t\t\t\n\t\t\t\tregister_taxonomy(\n\t\t\t\t\tstr_replace(' ','-',strtolower( $vocab['name'] ) ),\n\t\t\t\t\tarray( 'post', 'page' ),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => $vocab['name'],\n\t\t\t\t\t\t'hierarchical' => (bool)$vocab['hierarchy']\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\techo_now( 'Converting taxonomy: ' . str_replace(' ','-',strtolower( $vocab['name'] ) ) . ' to: ' . $taxonomy_map[ $vocab['name'] ] );\n\t\t\t\t$vocab_map[ (int)$vocab['vid'] ] = $taxonomy_map[ $vocab['name'] ];\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t# Import Drupal terms as WP terms\n\t\t\n\t\t$term_vocab_map = array();\n\t\t\n\t\t$term_data_table = $dr_tax_prefix . 'term_data';\n\t\t$term_hierarchy_table = $dr_tax_prefix. 'term_hierarchy';\n\t\t\n\t\t$terms = drupal()->$term_data_table->getRecords();\n\t\t\n\t\tforeach( $terms as $term ) {\n\n\t\t\t$parent = drupal()->$term_hierarchy_table->parent->getValue(\n\t\t\t\tarray(\n\t\t\t\t\t'tid' => $term['tid']\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif( ! array_key_exists( (int)$term['vid'], $vocab_map ) )\n\t\t\t\tcontinue;\n\n\t\t\tif( apply_filters( 'import_term_skip_term', false, $term, $vocab_map[ (int)$term['vid'] ] ) )\n\t\t\t\tcontinue;\n\n\t\t\t$term_vocab_map[ $term['tid'] ] = $vocab_map[ (int)$term['vid'] ];\n\t\t\t\n//\t\t\techo 'Creating term: ' . $term['name'] . ' from: ' . $term['tid'] . \"<br>\\n\";\n\t\t\t\n\t\t\t$term_result = wp_insert_term(\n\t\t\t\t$term['name'],\n\t\t\t\t$vocab_map[ (int)$term['vid'] ],\n\t\t\t\tarray(\n\t\t\t\t\t'description' => $term['description'],\n\t\t\t\t\t'parent' => (int)$parent\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif( is_wp_error( $term_result ) ) {\n\t\t\t\t\n\t\t\t\techo 'WARNING - Got error creating term: ' . $term['name']; \n\t\t\t\t\n\t\t\t\tif( in_array( 'term_exists', $term_result->get_error_codes() ) ) {\n\t\t\t\t\t\n\t\t\t\t\techo_now( ' -- term already exists as: ' . $term_result->get_error_data() );\n\t\t\t\t\t$term_id = (int)$term_result->get_error_data();\n\n\t\t\t\t\tself::$term_to_term_map[ (int)$term['tid'] ] = $term_id;\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\techo_now( ' -- error was: ' . print_r( $term_result, true ) );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$term_id = $term_result['term_id'];\n\t\t\t\n\t\t\tself::$term_to_term_map[ (int)$term['tid'] ] = $term_id;\n\t\t\t\n\t\t}\n\t\t\n\t\t# Attach terms to posts\n\t\t\n\t\tif( isset( drupal()->term_node ) )\n\t\t\t$term_node_table = 'term_node';\n\t\telse if( isset( drupal()->taxonomy_index ) )\n\t\t\t$term_node_table = 'taxonomy_index';\n\t\t\n\t\t$term_assignments = drupal()->$term_node_table->getRecords();\n\t\t\n\t\tforeach( $term_assignments as $term_assignment ) {\n\t\t\t\n\t\t\tif( ! array_key_exists( $term_assignment['tid'], $term_vocab_map ) )\n\t\t\t\tcontinue;\n\n\t\t\tif( ! array_key_exists( (int)$term_assignment['tid'], self::$term_to_term_map ) )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif( ! array_key_exists( $term_assignment['nid'], self::$node_to_post_map ) )\n\t\t\t\tcontinue;\n\t\t\t\n//\t\t\techo 'Adding term: ' . (int)$term_assignment['tid'] . ' from: ' . self::$term_to_term_map[ (int)$term_assignment['tid'] ] . ' to: ' . self::$node_to_post_map[ $term_assignment['nid'] ] . \"<br>\\n\";\n\t\t\t\n\t\t\t$term_result = wp_set_object_terms(\n\t\t\t\tself::$node_to_post_map[ $term_assignment['nid'] ],\n\t\t\t\tarray( (int)self::$term_to_term_map[ (int)$term_assignment['tid'] ] ),\n\t\t\t\t$term_vocab_map[ $term_assignment['tid'] ],\n\t\t\t\ttrue\n\t\t\t);\n\t\t\t\n\t\t\tif( is_wp_error( $term_result ) )\n\t\t\t\tdie( 'Got error setting object term: ' . print_r( $term_result, true ) );\n\n\t\t\tif( empty( $term_result ) )\n\t\t\t\tdie('Failed to set object term properly.');\n\n\t\t}\n\t\t\n\t\tdo_action( 'imported_taxonomies' );\n\t\t\n\t}", "public function getTermIds(): ?array {\n $val = $this->getBackingStore()->get('termIds');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n /** @var array<string>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'termIds'\");\n }", "private static function parseIdCsvStringToArray($text)\n {\n $idArray = str_getcsv(preg_replace('/delete[\\s]*/m', '', strtolower($text)));\n\n return array_filter($idArray, function ($id) {\n\n return is_numeric($id);\n\n });\n\n\n }", "function insert_wp_term_relationships($wpdb, $id, $in_args){\n $args = explode(',' , $in_args);\n $table = $wpdb->prefix.\"terms\";\n foreach($args as $a)\n {\n $q = \"SELECT term_id FROM \".$table.\" WHERE name = '\".strtoupper($a).\"'\";\n $terms = $wpdb->get_results($wpdb->prepare($q));\n foreach($terms as $t)\n {\n $arr = array(\n 'object_id' => $id,\n 'term_taxonomy_id' => $t->term_id,\n );\n $wpdb->insert($wpdb->prefix.'term_relationships', $arr);\n }\n }\n}", "public function category_ids ($post, $cats, $unfamiliar_category = 'create', $taxonomies = NULL, $params = array()) {\n\t\t$singleton = (isset($params['singleton']) ? $params['singleton'] : true);\n\t\t$allowFilters = (isset($params['filters']) ? $params['filters'] : false);\n\n\t\t$catTax = 'category';\n\n\t\tif (is_null($taxonomies)) :\n\t\t\t$taxonomies = array('category');\n\t\tendif;\n\n\t\t// We need to normalize whitespace because (1) trailing\n\t\t// whitespace can cause PHP and MySQL not to see eye to eye on\n\t\t// VARCHAR comparisons for some versions of MySQL (cf.\n\t\t// <http://dev.mysql.com/doc/mysql/en/char.html>), and (2)\n\t\t// because I doubt most people want to make a semantic\n\t\t// distinction between 'Computers' and 'Computers '\n\t\t$cats = array_map('trim', $cats);\n\n\t\t$terms = array();\n\t\tforeach ($taxonomies as $tax) :\n\t\t\t$terms[$tax] = array();\n\t\tendforeach;\n\n\t\tforeach ($cats as $cat_name) :\n\t\t\tif (strlen(trim($cat_name)) < 1) :\n\t\t\t\tcontinue;\n\t\t\tendif;\n\n\t\t\t$oTerm = new SyndicatedPostTerm($cat_name, $taxonomies, $post);\n\n\t\t\tif ($oTerm->is_familiar()) :\n\n\t\t\t\t$tax = $oTerm->taxonomy();\n\t\t\t\tif (!isset($terms[$tax])) :\n\t\t\t\t\t$terms[$tax] = array();\n\t\t\t\tendif;\n\t\t\t\t$terms[$tax][] = $oTerm->id();\n\n\t\t\telse :\n\n\t\t\t\tif ('tag'==$unfamiliar_category) :\n\t\t\t\t\t$unfamiliar_category = 'create:post_tag';\n\t\t\t\tendif;\n\n\t\t\t\tif (preg_match('/^create(:(.*))?$/i', $unfamiliar_category, $ref)) :\n\t\t\t\t\t$tax = $catTax; // Default\n\n\t\t\t\t\tif (isset($ref[2])\n\t\t\t\t\tand strlen($ref[2]) > 2) :\n\t\t\t\t\t\t$tax = $ref[2];\n\t\t\t\t\tendif;\n\n\t\t\t\t\t$inserted = $oTerm->insert($tax);\n\t\t\t\t\tif (!is_null($inserted)) :\n\t\t\t\t\t\tif (!isset($terms[$tax])) :\n\t\t\t\t\t\t\t$terms[$tax] = array();\n\t\t\t\t\t\tendif;\n\t\t\t\t\t\t$terms[$tax][] = $inserted;\n\t\t\t\t\telse :\n\n\t\t\t\t\tendif; // !is_null($inserted)\n\t\t\t\tendif; // preg_match(...)\n\n\t\t\tendif; /* ($oTerm->is_familiar()) */\n\t\tendforeach;\n\n\t\t$filtersOn = $allowFilters;\n\t\tif ($allowFilters) :\n\t\t\t$filters = array_filter(\n\t\t\t\t$this->setting('match/filter', 'match_filter', array()),\n\t\t\t\t'remove_dummy_zero'\n\t\t\t);\n\t\t\t$filtersOn = ($filtersOn and is_array($filters) and (count($filters) > 0));\n\t\tendif;\n\n\t\t// Check for filter conditions\n\t\tforeach ($terms as $tax => $term_ids) :\n\t\t\tif ($filtersOn\n\t\t\tand (count($term_ids)==0)\n\t\t\tand in_array($tax, $filters)) :\n\t\t\t\t$terms = NULL; // Drop the post\n\t\t\t\tbreak;\n\t\t\telse :\n\t\t\t\t$terms[$tax] = array_unique($term_ids);\n\t\t\tendif;\n\t\tendforeach;\n\n\t\tif ($singleton and count($terms)==1) : // If we only searched one, just return the term IDs\n\t\t\t$terms = end($terms);\n\t\tendif;\n\n\t\tFeedWordPress::diagnostic(\n\t\t\t'syndicated_posts:categories',\n\t\t\t'Category: MAPPED term names '.json_encode($cats).' to IDs: '.json_encode($terms)\n\t\t);\n\t\treturn $terms;\n\t}", "public static function get_taxonomy_tree(array $terms, $taxonomy, $separator = ' > ')\n {\n $term_ids = wp_list_pluck($terms, 'term_id');\n\n $parents = [];\n foreach ($term_ids as $term_id) {\n $path = self::get_term_parents($term_id, $taxonomy, $separator);\n $parents[] = rtrim($path, $separator);\n }\n\n $terms = [];\n foreach ($parents as $parent) {\n $levels = explode($separator, $parent);\n\n $previous_lvl = '';\n foreach ($levels as $index => $level) {\n $terms[ 'lvl' . $index ][] = $previous_lvl . $level;\n $previous_lvl .= $level . $separator;\n\n // Make sure we have not duplicate.\n // The call to `array_values` ensures that we do not end up with an object in JSON.\n $terms[ 'lvl' . $index ] = array_values(array_unique($terms[ 'lvl' . $index ]));\n }\n }\n\n return $terms;\n }", "public function parse(string $csv): array\n {\n $tmpHandle = tmpfile();\n fwrite($tmpHandle, str_replace('\\\\\"\"', self::PLACEHOLDER_FGETCSV_BUG . '\"\"', $csv));\n rewind($tmpHandle);\n\n $data = [];\n\n while ($csvLine = fgetcsv($tmpHandle, 0, FormatInterface::DELIMITER, FormatInterface::ENCLOSURE)) {\n $data[] = array_map(\n static function ($item) {\n if (!is_string($item)) {\n return $item;\n }\n\n return str_replace(self::PLACEHOLDER_FGETCSV_BUG, '\\\\', $item);\n },\n $csvLine\n );\n }\n\n fclose($tmpHandle);\n\n return $data;\n }", "function mini_get_term_id_by_pid( $pid ){\n \n $terms = get_the_terms( $pid, 'project_tax' );\n\nif ( $terms && ! is_wp_error( $terms ) ){ \n \n $p_terms = array();\n \n foreach ( $terms as $term ) {\n $p_terms[] = $term->term_id;\n }\n \n return $p_terms;\n } else {\n return [];\n //return $p_terms;\n }\n}", "public static function getTermAndSubIds($termId, $taxonomy)\n {\n $termIds = array($termId);\n $subs = get_categories(array(\n 'child_of' => $termId,\n 'hide_empty' => false,\n 'taxonomy' => $taxonomy\n ));\n foreach ($subs as $sub) {\n $termIds[] = $sub->term_id;\n }\n\n return $termIds;\n }", "public function getTags(): array\n {\n return preg_split('/,/', $this->tags, null, PREG_SPLIT_NO_EMPTY);\n }", "protected function parse_tags_field( $tags ) {\n\t\treturn array_filter( array_map( 'trim', explode( ',', $tags ) ) );\n\t}", "function csv_to_array($csv, $delimiter = ',', $enclosure = '\"', $escape = '\\\\', $terminator = \"\\n\") { \r\n $r = array(); \r\n $rows = explode($terminator,trim($csv)); \r\n $names = array_shift($rows); \r\n $names = str_getcsv($names,$delimiter,$enclosure,$escape); \r\n $nc = count($names); \r\n foreach ($rows as $row) { \r\n if (trim($row)) { \r\n $values = str_getcsv($row,$delimiter,$enclosure,$escape); \r\n if (!$values) $values = array_fill(0,$nc,null); \r\n $r[] = array_combine($names,$values); \r\n } \r\n } \r\n return $r; \r\n}", "function _fullcalendar_colors_filter_term_ids($fields) {\n $term_ids = array();\n foreach ($fields as $key => $value) {\n foreach ($value as $language => $term) {\n foreach ($term as $content) {\n if (isset($content['tid'])) {\n $term_ids[] = $content['tid'];\n }\n }\n }\n }\n return $term_ids;\n}", "function mc_csv_to_array( $csv, $delimiter = ',', $enclosure = '\"', $escape = '\\\\', $terminator = \"\\n\" ) {\n\t$r = array();\n\t$rows = explode( $terminator, trim( $csv ) );\n\tforeach ( $rows as $row ) {\n\t\tif ( trim( $row ) ) {\n\t\t\t$values = explode( $delimiter, $row );\n\t\t\t$r[ $values[0] ] = ( isset( $values[1] ) ) ? str_replace( array( $enclosure, $escape ), '', $values[1] ) : $values[0];\n\t\t}\n\t}\n\n\treturn $r;\n}", "protected function prepare_term( $term ) {\n if ( $term === null || !is_string( $term ) ) {\n return false;\n }\n \n $trimmed_term = trim( $term );\n if ( empty( $trimmed_term ) ) {\n return false;\n }\n \n $words = explode( '|', $trimmed_term );\n\t\t\n\t\t//removing empty terms\n\t\tforeach ( $words as $key => $word ) {\n\t\t\t$w = trim($word);\n\t\t\tif ( empty($w) ) {\n\t\t\t\tunset( $words[$key] );\n\t\t\t}\n\t\t}\n\t\t$words = array_values($words);\n \n if ( false === $words || !is_array( $words ) ) {\n return false;\n }\n \n foreach ( $words as $i => $word ) {\n $words[ $i ] = $this->prepare_term_regex( trim( $word ) );\n }\n return $words;\n }", "private function prepareTaxonomy(){\n $taxonomy = null;\n if ( $this->taxonomy->terms() ){\n foreach($this->taxonomy->terms() as $term){\n $taxonomy[] = array( \n \t'id'=>$term->getID(), \n \t'label'=>$term->label->label \n\t\t\t\t);\n }\n }\n return $taxonomy;\n }", "function get_distinct_post_terms($post_id, $taxonomy, $return_names = false, $filter_type = '' ){\n $ids = array();\n $names = '';\n\n $terms = wp_get_post_terms( $post_id , $taxonomy );\n\n if(is_array($terms)){\n foreach ($terms as $term) {\n if(!in_array($term->term_id, $ids) ){\n $ids[] = $term->term_id;\n\n $names .= ' '.$term->term_id.'-'.$filter_type.' ';\n }\n }\n }\n\n if($return_names){\n return $names;\n }else{\n return $ids; \n }\n }", "public function generate_keywords(){\n\t\t// The first item in a row is the \"true keyword\" - this is what you want to display\n\t\t// The second and third items are \"alternate keywords\" - these are synonyms or alternate terms for the core keyword\n\n\t\t$keywords = array();\n\t\t$csv = fopen('/users/erik/asmbs_keywords.csv','r');\n\t\twhile (($data= fgetcsv($csv, 1000, ',')) !== FALSE){\n\t\t\t$keyword = array($data[0], $data[1], $data[2]);\n\t\t\tarray_push($keywords, $keyword);\n\t\t}\n\t\treturn $keywords;\n\t}", "function acf_get_taxonomy_terms($taxonomies = array())\n{\n}", "public function get_taxonomy_terms(\\Twig\\Environment $env, array $context, $taxonomy_name, array $other_fields = NULL) {\n $query = \\Drupal::entityQuery('taxonomy_term')\n ->condition('vid', $taxonomy_name);\n $tids = $query->execute();\n\n $entity_manager = \\Drupal::entityTypeManager();\n $term_storage = $entity_manager->getStorage('taxonomy_term');\n $taxonomy_terms = $term_storage->loadMultiple($tids);\n\n $taxonomy_array = [];\n\n foreach ($taxonomy_terms as $term) {\n $tid = $term->hasTranslation($this->get_current_lang()) ? $term->getTranslation($this->get_current_lang())->get('tid')[0]->value : $term->getTranslation('en')->get('tid')[0]->value;\n\n $values = [\n 'tid' => $tid,\n 'name' => $term->hasTranslation($this->get_current_lang()) ? $term->getTranslation($this->get_current_lang())->get('name')[0]->value : $term->getTranslation('en')->get('name')[0]->value,\n 'parent' => $term->hasTranslation($this->get_current_lang()) ? $term->getTranslation($this->get_current_lang())->get('parent')->target_id : $term->getTranslation('en')->get('parent')->target_id,\n 'children' => isset($taxonomy_array[$tid]) ? $taxonomy_array[$tid]['children'] : [],\n ];\n\n if ($values['parent'] === \"0\") {\n $taxonomy_array[$tid] = $values;\n }\n else {\n $taxonomy_array[$values['parent']]['children'][$tid] = $values;\n }\n\n // Add extra fields if supplied.\n if (!is_null($other_fields)) {\n foreach ($other_fields as $field) {\n if ($values['parent'] === \"0\") {\n $taxonomy_array[$tid][$field] = $term->get($field)[0]->value;\n }\n else {\n $taxonomy_array[$values['parent']]['children'][$tid][$field] = $term->get($field)[0]->value;\n }\n }\n }\n }\n\n return $taxonomy_array;\n }", "function term_taxonomies_handler( $tt_ids ) {\n\t\tforeach( (array)$tt_ids as $tt_id ) {\n\t\t\t$this->term_taxonomy_handler( $tt_id );\n\t\t}\n\t}", "private function _get_terms_of_tax_type ( $hierarchical = true ) {\r\n //var declaration\r\n $post_type = get_post_type( tc__f('__ID') );\r\n $tax_list = get_object_taxonomies( $post_type, 'object' );\r\n $_tax_type_list = array();\r\n $_tax_type_terms_list = array();\r\n\r\n if ( empty($tax_list) )\r\n return false;\r\n\r\n //filter the post taxonomies\r\n while ( $el = current($tax_list) ) {\r\n //skip the post format taxinomy\r\n if ( in_array( key($tax_list) , apply_filters_ref_array ( 'tc_exclude_taxonomies_from_metas' , array( array('post_format') , $post_type , tc__f('__ID') ) ) ) ) {\r\n next($tax_list);\r\n continue;\r\n }\r\n if ( (bool) $hierarchical === (bool) $el -> hierarchical )\r\n $_tax_type_list[key($tax_list)] = $el;\r\n next($tax_list);\r\n }\r\n\r\n if ( empty($_tax_type_list) )\r\n return false;\r\n\r\n //fill the post terms array\r\n foreach ($_tax_type_list as $tax_name => $data ) {\r\n $_current_tax_terms = get_the_terms( tc__f('__ID') , $tax_name );\r\n\r\n //If current post support this tax but no terms has been assigned yet = continue\r\n if ( ! $_current_tax_terms )\r\n continue;\r\n\r\n while( $term = current($_current_tax_terms) ) {\r\n $_tax_type_terms_list[$term -> term_id] = $term;\r\n next($_current_tax_terms);\r\n }\r\n }\r\n return empty($_tax_type_terms_list) ? false : $_tax_type_terms_list;\r\n }", "function acf_get_term_post_id($taxonomy, $term_id)\n{\n}", "public function get_term_object( $term ) {\n \t$vc_taxonomies_types = vc_taxonomies_types();\n \treturn array(\n \t\t'label' => $term->name,\n \t\t'value' => $term->slug,\n \t\t'group_id' => $term->taxonomy,\n \t\t'group' => isset( $vc_taxonomies_types[ $term->taxonomy ], $vc_taxonomies_types[ $term->taxonomy ]->labels, $vc_taxonomies_types[ $term->taxonomy ]->labels->name ) ? $vc_taxonomies_types[ $term->taxonomy ]->labels->name : __( 'Taxonomies', 'infinite-addons' ),\n \t\t);\n }", "protected function get_terms() {\n\t\t$terms = get_the_terms( $this->post_ID, $this->taxonomy_name );\n\n\t\tif ( ! is_array( $terms ) ) {\n\t\t\t$terms = [];\n\t\t}\n\n\t\treturn $terms;\n\t}", "public function setTaxonomyTerms($terms);", "function gigx_get_the_term_list( $id = 0, $taxonomy, $before = '', $sep = '', $after = '', $exclude = array() ) {\n\t$terms = get_the_terms( $id, $taxonomy );\n\n\tif ( is_wp_error( $terms ) )\n\t\treturn $terms;\n\n\tif ( empty( $terms ) )\n\t\treturn false;\n\n\tforeach ( $terms as $term ) {\n\n\t\tif(!in_array($term->term_id,$exclude)) {\n\t\t\t$link = get_term_link( $term, $taxonomy );\n\t\t\tif ( is_wp_error( $link ) )\n\t\t\t\treturn $link;\n\t\t\t$term_links[] = '<a href=\"' . $link . '\" rel=\"tag\">' . $term->name . '</a>';\n\t\t}\n\t}\n\n\t$term_links = apply_filters( \"term_links-$taxonomy\", $term_links );\n\n\treturn $before . join( $sep, $term_links ) . $after;\n}", "function get_distinct_terms($posts,$taxonomy ){\n $ids = array();\n \n foreach ($posts as $post) { \n $galleries = ''; \n \n if(isset($post -> ID)){\n\n $galleries = wp_get_post_terms( $post -> ID , $taxonomy );\n }\n \n if(is_array($galleries)){\n foreach ($galleries as $gallery) {\n if(!in_array($gallery->term_id, $ids) ){\n $ids[] = $gallery->term_id;\n \n }\n }\n }\n }\n \n return $ids; \n \n }", "function _get_term_hierarchy($taxonomy)\n {\n }", "function get_custom_taxonomies( $post_identity ) {\r\n\r\n // Get the post by ID\r\n $post = get_post( $post_identity );\r\n\r\n // Get the post type\r\n $post_type = $post->post_type;\r\n\r\n // Get taxonomies related to the post type\r\n $taxonomies = get_object_taxonomies( $post_type, 'objects' );\r\n\r\n $out = array();\r\n // Loop through taxonomies and put the terms in an array\r\n foreach ( $taxonomies as $taxonomy_slug => $taxonomy ) {\r\n\r\n $terms = get_the_terms( $post_identity, $taxonomy_slug );\r\n //var_dump($terms); die;\r\n\r\n if ( !empty( $terms ) ) {\r\n \r\n foreach ( $terms as $term ) {\r\n $out[] .= $term->name;\r\n }\r\n }\r\n }\r\n\r\n return $out;\r\n }", "private function readTaxonomy( $taxonomy ){\n $this->taxonomy->clear();\n if ($taxonomy){\n foreach( $taxonomy as $term ){\n if (is_object($term))\n $id = $term->id;\n elseif(is_array($term))\n $id = $term['id'];\n else \n $id = $term;\n if ( $id ){\n $term = new TermTYPE();\n $term->getByID($id);\n $this->taxonomy->append( $term );\n }\n }\n }\n }", "function acf_decode_term($string)\n{\n}", "function acf_decode_taxonomy_term($value)\n{\n}", "function wp_get_split_term($old_term_id, $taxonomy)\n {\n }", "protected function processTags($tags)\n {\n if (! $tags) {\n return array();\n }\n\n $tags = explode(',', $tags);\n\n foreach ($tags as $key => $tag) {\n $tags[$key] = trim($tag);\n }\n\n return $tags;\n }", "function _entity_translation_taxonomy_autocomplete_widget_get_terms($element) {\n $items = isset($element['#entity']->{$element['#field_name']}[$element['#language']]) ?\n $element['#entity']->{$element['#field_name']}[$element['#language']] : array();\n $tids = array_map(function ($item) { return $item['tid']; }, $items);\n return taxonomy_term_load_multiple($tids);\n}", "public function reverseTransform($text)\n {\n if (!$text) {\n return null;\n }\n \n $names = array_filter(array_map('trim', explode(',', $text)));\n $tags = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n \n foreach ($names as $name){\n $tag = $this->om->getRepository($this->entityRepository)->findOneBy(array('name'=>ucfirst($name),'context'=>$this->context));\n if(!is_null($tag)){\n $tags[] = $tag; \n }else{\n $tag = new \\Application\\Sonata\\ClassificationBundle\\Entity\\Tag();\n $tag->setEnabled(true);\n $tag->setName(ucfirst($name));\n $tag->setContext($this->context);\n \n $this->om->persist($tag);\n $this->om->flush();\n \n $tags[] = $tag; \n }\n }\n \n return $tags;\n }", "public function getTermTypes()\n {\n $pageIds = $this->database->getPageIdsRecursive(\n $this->controller->configModel->get('storageFolder'),\n $this->controller->configModel->get('recurseDepth')\n );\n if ($pageIds === false) {\n throw new \\tx_nclib_exception('label_error_no_pages_found', $this->controller);\n }\n $fields = 'DISTINCT termtype';\n $startTime = $this->controller->dateFilter['iStartTime'];\n $endTime = $this->controller->dateFilter['iEndTime'];\n $where = array(\n 'termtype != \\'\\'',\n 'hidden=0',\n 'deleted=0',\n 'type=' . $this->getModelType(),\n 'publishdate >= ' . $startTime,\n 'publishdate <= ' . $endTime,\n sprintf('%s.pid in (%s)', $this->getTableName(), implode(',', $pageIds)),\n );\n $where = $this->database->getWhere($where);\n $orderBy = 'termtype';\n $groupBy = '';\n\n $this->database->clear();\n\n $records = $this->database->getQueryRecords($this->getTableName(), $fields, $where, $groupBy, $orderBy);\n if (!$records || !\\tx_nclib::isLoopable($records)) {\n return false;\n }\n $result = array();\n foreach ($records as $record) {\n $result[] = $record['termtype'];\n }\n return $result;\n }", "function get_post_meta_tags() {\n global $post;\n $list = array();\n $num = 0;\n $termsObjects = get_the_terms('', 'meta_info', '');\n if (!empty($termsObjects)){\n foreach ($termsObjects as $v) {\n $list[$num] = $v->slug;\n $num++;\n }\n }\n return($list);\n}", "function parseCsv($csv) {\n $lines = explode(\"\\n\", $csv);\n $result = array();\n foreach($lines as $line) {\n if (!empty($line)) {\n $result[] = parseCsvLine($line);\n }\n }\n return $result;\n}", "public function _get_repo_list_from_csv( $csv_path ) {\n\n\t\t$this->_write_log( PHP_EOL . 'Reading from CSV.' . PHP_EOL );\n\n\t\t$map = [];\n\n\t\ttry {\n\n\t\t\t$reader = Reader::createFromPath( $csv_path, 'r');\n\n\t\t\t$reader->setHeaderOffset(0);\n\n\t\t\t$records = $reader->getRecords( ['Namespace/Reponame'] );\n\n\t\t\tforeach ( $records as $offset => $record ) {\n\n\t\t\t\t$map[] = $record['Namespace/Reponame'];\n\n\t\t\t}\n\n\t\t\treturn $map;\n\n\n\t\t} catch ( Exception $e ) {\n\n\t\t\t$this->_error( $e->getMessage() );\n\n\t\t}\n\n\t\treturn $map;\n\n\t}", "function currentTypes($id){\n\t$term_id = get_the_terms($id, 'marcato_type');\n\t$terms = \"\";\n\tforeach($term_id as $genre){\n\t//\tprint_r($genre->name);\n\t\t$terms .= strtolower($genre->name) . \" \";\n\t}\n\n\treturn $terms;\n}", "public function loadTaxonomyTerms(Node $node) {\n $tids = [];\n $tids[] = $node->get('field_event_building')->target_id;\n $tids[] = $node->get('field_event_room')->target_id;\n $term_storage = $this->entityTypeManager->getStorage('taxonomy_term');\n $terms = $term_storage->loadMultiple(array_filter($tids));\n $taxonomy = [];\n foreach ($terms as $term) {\n $taxonomy[$term->bundle()] = $term->label();\n }\n return $taxonomy;\n }", "public function all(): array\n {\n $wpTerms = get_terms(\n $this->getTaxonomy()\n );\n\n if (is_wp_error($wpTerms)) {\n wp_die($wpTerms);\n }\n\n return array_map(function (WP_Term $wpTerm): AbstractTerm {\n return TermFactory::makeByWpTerm($wpTerm);\n }, $wpTerms);\n }", "function get_post_terms($tax){\n\t$product_terms = get_the_terms(get_the_ID(), $tax);\n\t$term_list = [];\n\tif ($product_terms && !is_wp_error( $product_terms)) {\n\t\tforeach ($product_terms as $term){\n\t\t\t$term_list[] = esc_html( $term->name);\n\t\t}\n\t}\n\treturn implode(', ', $term_list);\n}", "function sync_category_tag_slugs($term, $taxonomy)\n {\n }", "function _wp_batch_split_terms()\n {\n }", "function _post_format_get_terms($terms, $taxonomies, $args)\n {\n }", "public static function slugs_from_terms( $terms ) {\n\t\tif(false === $terms) return 'COULD-NOT-DETERMINE-FROM-PAGE';\n\t\t$slugs = '';\n\t\tforeach( $terms as $term ) {\n\t\t\t$slugs .= $term->slug . ',';\n\t\t}\n\t\treturn substr($slugs,0,strlen($slugs) - 1);\n\t}", "function csv_to_array($input, $delimiter=',') { \n $header = null; \n $data = array(); \n $csvData = str_getcsv($input, \"\\n\"); \n \n foreach($csvData as $csvLine){ \n if(is_null($header)) $header = explode($delimiter, $csvLine); \n else{ \n \n $items = explode($delimiter, $csvLine); \n \n for($n = 0, $m = count($header); $n < $m; $n++){ \n $prepareData[$header[$n]] = $items[$n]; \n } \n \n $data[] = $prepareData; \n } \n } \n \n return $data; \n}", "function csv_to_array($input, $delimiter=',') { \n $header = null; \n $data = array(); \n $csvData = str_getcsv($input, \"\\n\"); \n \n foreach($csvData as $csvLine){ \n if(is_null($header)) $header = explode($delimiter, $csvLine); \n else{ \n \n $items = explode($delimiter, $csvLine); \n \n for($n = 0, $m = count($header); $n < $m; $n++){ \n $prepareData[$header[$n]] = $items[$n]; \n } \n \n $data[] = $prepareData; \n } \n } \n \n return $data; \n}", "private function extractCategoriesFromString($categories)\n {\n return array_filter(array_map('trim', explode(',', trim($categories))));\n }", "function get_all_nodes_belong_to_taxonomy_hierarchy($tids) {\n if (is_array($tids)) {\n foreach ($tids as $key => $value) {\n if ($value <= 0) {\n return \"Please Enter a valid taxonomy term id set\";\n }\n }\n }\n if (is_array($tids) && !empty($tids)) {\n foreach ($tids as $key => $value) {\n $term = taxonomy_term_load($value);\n $hierarchical_terms_object[] = taxonomy_get_tree($term->vid, $term->tid);\n }\n $flat_terms_object = multitosingle($hierarchical_terms_object);\n if (is_array($flat_terms_object) && !empty($flat_terms_object)) {\n foreach ($flat_terms_object as $key => $value) {\n $flat_tids[] = $value->tid;\n }\n $flat_tids[] = $tids;\n return array_unique(get_nodes_directly_mapped_to_term($flat_tids));\n }\n else {\n $flat_tids = $tids;\n return array_unique(get_nodes_directly_mapped_to_term($flat_tids));\n }\n }\n elseif (!is_array($tids) && $tids > 0) {\n $flat_tids = $tids;\n return get_all_nodes_belong_to_taxonomy_hierarchy(array($flat_tids));\n }\n else {\n return \"Please Enter a valid term id\";\n }\n}", "public function getTermsAttribute()\n {\n return $this->taxonomies->groupBy(function ($taxonomy)\n {\n return $taxonomy->taxonomy;\n\n })->map(function ($group)\n {\n return $group->mapWithKeys(function ($item)\n {\n return array($item->term->slug => $item->term->name);\n });\n\n })->toArray();\n }", "function sduconnect_tags($names) {\n $output = [];\n $vocab = 'tags';\n $names = array_filter(array_unique(array_map('trim', $names)));\n foreach ($names as $name) {\n $query = db_select('taxonomy_term_data', 'td')\n ->fields('td', ['tid'])\n ->condition('td.name', $name)\n ->range(0, 1);\n $v = $query->join('taxonomy_vocabulary', 'v', 'td.vid = v.vid');\n $query->condition(\"$v.machine_name\", $vocab);\n $tid = $query->execute()->fetchField();\n if (!$tid) {\n $vid = db_select('taxonomy_vocabulary', 'v')\n ->fields('v', ['vid'])\n ->condition('v.machine_name', $vocab)\n ->execute()\n ->fetchField();\n $term = (object) [\n 'name' => $name,\n 'vid' => $vid,\n 'vocabulary_machine_name' => $vocab,\n ];\n taxonomy_term_save($term);\n $tid = $term->tid;\n }\n $output[] = [\n 'tid' => $tid,\n ];\n }\n return $output;\n}", "function get_taxonomy_rewrite_tags( $taxonomies = null, $post_link = '' )\n{\n $post = null;\n\n if ( null === $taxonomies ) {\n $taxonomies = get_taxonomies();\n } elseif ( $taxonomies instanceof WP_Post ) {\n $post = $taxonomies;\n $taxonomies = get_object_taxonomies( $post->post_type );\n } elseif ( ! is_array( $taxonomies ) ) {\n $taxonomies = [];\n }\n\n $tags = [];\n foreach ( $taxonomies as $taxonomy ) {\n $tax = \"%{$taxonomy}%\";\n $term = '';\n\n $taxonomy_object = get_taxonomy( $taxonomy );\n if ( strpos($post_link, $tax) !== false ) {\n $terms = get_the_terms( $post->ID, $taxonomy );\n\n if ( $terms ) {\n usort($terms, '_usort_terms_by_ID');\n $term = $terms[0]->slug;\n if ( $taxonomy_object->hierarchical && $parent = $terms[0]->parent ) {\n $term = get_term_parents($parent, $taxonomy, false, '/', true) . $term;\n }\n }\n\n /** Show default category in permalinks, without having to assign it explicitly */\n if ( empty( $term ) && $taxonomy === 'category' ) {\n $default_category = get_category( get_option( 'default_category' ) );\n $term = ( is_wp_error( $default_category ) ? '' : $default_category->slug );\n }\n }\n\n $tags[$tax] = $term;\n }\n\n /**\n * Filter taxonomy rewrite tags.\n *\n * @param array $tags The rewrite tags.\n * @param string $post_link A post permalink to resolve from.\n */\n $tags = apply_filters( 'rewrite_tags/taxonomy', $tags, $post_link );\n\n if ( $post instanceof WP_Post ) {\n $post_type = $post->post_type;\n\n /**\n * Filter taxonomy rewrite tags for a specific post type.\n *\n * @param array $tags The rewrite tags.\n * @param string $post_link A post permalink to resolve from.\n * @param WP_Post $post The post to resolve from.\n */\n $tags = apply_filters( \"rewrite_tags_for_{$post_type}/taxonomy\", $tags, $post_link, $post );\n }\n\n return $tags;\n}", "private static function getTermSchema($post_type, $post) {\n $schema = [];\n $taxonomies = get_object_taxonomies($post_type, 'objects');\n foreach ($taxonomies as $tax) {\n $schema[$tax->name] = [\n 'label' => $tax->label,\n 'terms' => []\n ];\n\n $terms = get_the_terms($post['id'], $tax->name);\n\n if (is_array($terms)) {\n $schema[$tax->name]['terms'] = array_map(\n function ($term) {\n return $term->name;\n },\n $terms\n );\n }\n }\n return $schema;\n }", "public function get_term_names(){\n\t\t\n\t\t$term_objs = $this->get_terms();\n\t\t\n\t\t$terms = array();\n\t\t\n\t\tforeach( $term_objs as $term ){\n\t\t\t\n\t\t\t$terms[ $term->term_id ] = $term->name;\n\t\t\t\n\t\t} // end foreach\n\t\t\n\t\treturn $terms;\n\t\t\n\t}", "function hello_pro_add_blog_categories( $content, $imported_post_ids ) {\n\n\t// Sample Category #1.\n\twp_insert_term(\n\t\t'Sample Category #1', // The name of the category.\n\t\t'category', // The taxonomy, which in this case is \"category\" (don't change).\n\t\tarray(\n\t\t\t'slug' => 'sample-category-1', // Slug to use for the term archive.\n\t\t)\n\t);\n\n\t// Sample Category #2.\n\twp_insert_term(\n\t\t'Sample Category #2', // The name of the category.\n\t\t'category', // The taxonomy, which in this case is \"category\" (don't change).\n\t\tarray(\n\t\t\t'slug' => 'sample-category-2', // Slug to use for the term archive.\n\t\t)\n\t);\n\n\t// Sample Category #3.\n\twp_insert_term(\n\t\t'Sample Category #3', // The name of the category.\n\t\t'category', // The taxonomy, which in this case is \"category\" (don't change).\n\t\tarray(\n\t\t\t'slug' => 'sample-category-3', // Slug to use for the term archive.\n\t\t)\n\t);\n\n}", "function cp_match_cats($form_cats) {\r\n global $wpdb;\r\n $out = array();\r\n\r\n $terms = get_terms( APP_TAX_CAT, array(\r\n 'include' => $form_cats\r\n ));\r\n\r\n if ( $terms ) :\r\n\t\t\r\n foreach ( $terms as $term ) {\r\n $out[] = '<a href=\"edit-tags.php?action=edit&taxonomy='.APP_TAX_CAT.'&post_type='.APP_POST_TYPE.'&tag_ID='. $term->term_id .'\">'. $term->name .'</a>';\r\n }\r\n\r\n endif;\r\n\r\n return join( ', ', $out );\r\n}", "public function addTaxonomies() {\n\n echo \"\\nAdding taxonomies to post {$this->wp_post_id}...\\n\";\n\n if( is_array($this->taxonomy_info) ){\n foreach( $this->taxonomy_info as $taxonomy_name => $terms ){\n $term_ids = implode( \" \", $this->getRandomTerms($terms) );\n $set_terms_cmd = \"wp post term set {$this->wp_post_id} {$taxonomy_name} {$term_ids} --by=id\";\n $output = shell_exec( $set_terms_cmd );\n }\n }\n\n return true;\n }", "private function parse_ids() {\n\t\t// Trim empty spaces in ids\n\t\t$ids = trim($_POST['ids']);\n\t\t$id_pattern = array(\n\t\t\t'/ *[\\r\\n]+/',\t\t// Checks for one or more line breaks\n\t\t\t'/(\\w)\\s+(\\w)/',\t// Checks for words separated by one or more spaces\n\t\t\t'/,\\s*/',\t\t\t// Checks for words separated by comma, but with variable spaces\n\t\t\t'/,\\s*,/'\t\t\t// Checks for empty strings (i.e. no words between two commas)\n\t\t\t);\n\t\t$id_replace = array(\n\t\t\t',',\n\t\t\t'$1, $2',\n\t\t\t',',\n\t\t\t',',\n\t\t\t''\n\t\t\t);\n\n\t\t// Remove isoforms for dataset using gene IDs\n\t\tif($_POST['idtype'] == 'geneid') {\n\t\t\t$id_pattern[] = '/\\.\\d+/';\n\t\t\t$id_replace[] = '';\n\t\t}\n\n\t\t// Replace IDs by regex\n\t\t$ids = preg_replace($id_pattern, $id_replace, $ids);\n\n\t\t// Write to internal data\n\t\t$this->_expat['ids'] = array_values(array_unique(array_filter(explode(\",\", $ids))));\n\t}", "protected function get_taxonomies() {\n\t\treturn apply_filters( 'appthemes_html_term_description_taxonomies', $this->taxonomies );\n\t}", "public function get_ids_from_meta( $meta ) {\n\n\t\t//remove white spaces and strip tags\n\t\t$meta = $this->strip_trim( str_replace( ' ', '', $meta ) );\n\n\t\t// var\n\t\t$ids = array();\n\n\t\t// check for multiple id's\n\t\tif ( strpos( $meta, ',' ) !== false ) {\n\t\t\t$ids = explode( ',', $meta );\n\t\t}\n\t\telseif ( is_numeric( $meta ) ) {\n\t\t\t$ids[] = $meta;\n\t\t}\n\n\t\treturn $ids;\n\t}", "public function get_terms( $id, $taxonomy, $return_single = false ) {\n\n\t\t$output = '';\n\n\t\t// If we're on a specific tag, category or taxonomy page, use that.\n\t\tif ( is_category() || is_tag() || is_tax() ) {\n\t\t\t$term = $GLOBALS['wp_query']->get_queried_object();\n\t\t\t$output = $term->name;\n\t\t}\n\t\telseif ( ! empty( $id ) && ! empty( $taxonomy ) ) {\n\t\t\t$terms = get_the_terms( $id, $taxonomy );\n\t\t\tif ( is_array( $terms ) && $terms !== array() ) {\n\t\t\t\tforeach ( $terms as $term ) {\n\t\t\t\t\tif ( $return_single ) {\n\t\t\t\t\t\t$output = $term->name;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$output .= $term->name . ', ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$output = rtrim( trim( $output ), ',' );\n\t\t\t}\n\t\t}\n\t\tunset( $terms, $term );\n\n\t\t/**\n\t\t * Allows filtering of the terms list used to replace %%category%%, %%tag%% and %%ct_<custom-tax-name>%% variables.\n\t\t *\n\t\t * @api string $output Comma-delimited string containing the terms.\n\t\t */\n\t\treturn apply_filters( 'wpseo_terms', $output );\n\t}", "function get_tags_ids()\n{\n $tmp_tags = array();\n $tags = get_tags();\n foreach ($tags as $tag) {\n array_push($tmp_tags, $tag['id']);\n }\n $tags = $tmp_tags;\n\n return $tags;\n}", "function entity_translation_taxonomy_term_autocomplete($langcode = NULL, $field_name = '', $tags_typed = '') {\n // If the request has a '/' in the search text, then the menu system will have\n // split it into multiple arguments, recover the intended $tags_typed.\n $args = func_get_args();\n // Shift off the $langcode and $field_name arguments.\n array_shift($args);\n array_shift($args);\n $tags_typed = implode('/', $args);\n\n // Make sure the field exists and is a taxonomy field.\n if (!($field = field_info_field($field_name)) || $field['type'] !== 'taxonomy_term_reference') {\n // Error string. The JavaScript handler will realize this is not JSON and\n // will display it as debugging information.\n print t('Taxonomy field @field_name not found.', array('@field_name' => $field_name));\n exit;\n }\n\n // The user enters a comma-separated list of tags. We only autocomplete the\n // last tag.\n $tags_typed = drupal_explode_tags($tags_typed);\n $tag_last = drupal_strtolower(array_pop($tags_typed));\n\n $term_matches = array();\n if ($tag_last != '') {\n if (!isset($langcode) || $langcode == LANGUAGE_NONE) {\n $langcode = $GLOBALS['language_content']->language;\n }\n\n // Part of the criteria for the query come from the field's own settings.\n $vocabulary = _entity_translation_taxonomy_reference_get_vocabulary($field);\n\n $entity_type = 'taxonomy_term';\n $query = new EntityFieldQuery();\n $query->addTag('taxonomy_term_access');\n $query->entityCondition('entity_type', $entity_type);\n\n // If the Title module is enabled and the taxonomy term name is replaced for\n // the current bundle, we can look for translated names, otherwise we fall\n // back to the regular name property.\n if (module_invoke('title', 'field_replacement_enabled', $entity_type, $vocabulary->machine_name, 'name')) {\n $name_field = 'name_field';\n $language_group = 0;\n // Do not select already entered terms.\n $column = 'value';\n if (!empty($tags_typed)) {\n $query->fieldCondition($name_field, $column, $tags_typed, 'NOT IN', NULL, $language_group);\n }\n $query->fieldCondition($name_field, $column, $tag_last, 'CONTAINS', NULL, $language_group);\n $query->fieldLanguageCondition($name_field, array($langcode, LANGUAGE_NONE), NULL, NULL, $language_group);\n }\n else {\n $name_field = 'name';\n // Do not select already entered terms.\n if (!empty($tags_typed)) {\n $query->propertyCondition($name_field, $tags_typed, 'NOT IN');\n }\n $query->propertyCondition($name_field, $tag_last, 'CONTAINS');\n }\n\n // Select rows that match by term name.\n $query->propertyCondition('vid', $vocabulary->vid);\n $query->range(0, 10);\n $result = $query->execute();\n\n // Populate the results array.\n $prefix = count($tags_typed) ? drupal_implode_tags($tags_typed) . ', ' : '';\n $terms = !empty($result[$entity_type]) ? taxonomy_term_load_multiple(array_keys($result[$entity_type])) : array();\n foreach ($terms as $tid => $term) {\n $name = _entity_translation_taxonomy_label($term, $langcode);\n $n = $name;\n // Term names containing commas or quotes must be wrapped in quotes.\n if (strpos($name, ',') !== FALSE || strpos($name, '\"') !== FALSE) {\n $n = '\"' . str_replace('\"', '\"\"', $name) . '\"';\n }\n $term_matches[$prefix . $n] = check_plain($name);\n }\n }\n\n drupal_json_output($term_matches);\n}", "function custom_taxonomies_terms_links( $post_id ){\n // get post by post id\n $post = get_post( $post_id );\n\n // get post type by post\n $post_type = $post->post_type;\n\n // get post type taxonomies\n $taxonomies = get_object_taxonomies( $post_type, 'objects' );\n\n $out = array();\n foreach ( $taxonomies as $taxonomy_slug => $taxonomy ){\n\n // get the terms related to post\n $terms = get_the_terms( $post_id, $taxonomy_slug );\n\n if ( !empty( $terms ) ) {\n $out[] = \"<h2>\" . $taxonomy->label . \"</h2>\\n<ul>\";\n foreach ( $terms as $term ) {\n $out[] =\n ' <li><a href=\"'\n . get_term_link( $term->slug, $taxonomy_slug ) .'\">'\n . $term->name\n . \"</a></li>\\n\";\n }\n $out[] = \"</ul>\\n\";\n }\n }\n\n return implode('', $out );\n}", "private static function parseTags($tags)\n {\n if (!is_string($tags) || mb_strlen($tags) <= 0) {\n return array();\n }\n\n $tags = explode(',', $tags);\n\n return is_array($tags) ? array_map('trim', $tags) : array();\n }", "public function getSearchterms(): array\n {\n return explode(' ', $this->getSearchterm());\n }", "public function getTerms($taxonomy)\n {\n $terms = get_the_terms($this->id, $taxonomy);\n\n return $terms ?: [];\n }", "function create_tag_taxonomies()\n{\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Tags', 'taxonomy general name' ),\n 'singular_name' => _x( 'Tag', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Tags' ),\n 'popular_items' => __( 'Popular Tags' ),\n 'all_items' => __( 'All Tags' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Tag' ),\n 'update_item' => __( 'Update Tag' ),\n 'add_new_item' => __( 'Add New Tag' ),\n 'new_item_name' => __( 'New Tag Name' ),\n 'separate_items_with_commas' => __( 'Separate tags with commas' ),\n 'add_or_remove_items' => __( 'Add or remove tags' ),\n 'choose_from_most_used' => __( 'Choose from the most used tags' ),\n 'menu_name' => __( 'Tags' ),\n );\n\n register_taxonomy('tag','edicoesAnteriores',array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'tag' ),\n ));\n}", "function getPossibleTidValues(){\n \t\tforeach ($this->fieldMapping as $ebsFieldName => $myArray):\n \t\t\n\t \t\tif ($myArray[1] == 'nodeTaxTermField'):\n\t \t\t\n\t \t\t\t//Get possible tids for this field\n\t\t\t\t$info = field_info_field($myArray[0]);\n\t\t\t\t$vocab_machine_name = $info['settings']['allowed_values'][0]['vocabulary'];\n\t\t\t\t$vocab = taxonomy_vocabulary_machine_name_load($vocab_machine_name);\n\t\t\t\t$tree = taxonomy_get_tree($vocab->vid);\n\t\t\t\t\t\t\n\t\t\t\t$thisFieldsPossibleTids = array();\n\t\t\t\tforeach ($tree as $key => $branch):\n\t\t\t\t\t$thisFieldsPossibleTids[] = $branch->tid;\n\t\t\t\tendforeach;\n\t\n\t\t\t\t$this->taxInfo['possibleTidValues'][$myArray[0]] = $thisFieldsPossibleTids;\n\t\t\t\t$this->taxInfo['vocab_machine_name'][$myArray[0]] = $vocab_machine_name;\n\t\t\t\t$this->taxInfo['vocab_human_name'][$myArray[0]] = $vocab->name;\n\t \t\tendif;\n \t\t\n \t\tendforeach; \n \t}", "function get_nodes_directly_mapped_to_term($tid) {\n if (is_array($tid) && !empty($tid)) {\n foreach ($tid as $key => $value) {\n $nids[] = taxonomy_select_nodes($value);\n $flat_nids = multitosingle($nids);\n }\n return $flat_nids;\n }\n else {\n $nid = taxonomy_select_nodes($tid);\n return $nid;\n }\n}" ]
[ "0.61638814", "0.594761", "0.5787323", "0.5707106", "0.5679804", "0.5642292", "0.5632389", "0.55993134", "0.55276626", "0.54974973", "0.5484411", "0.5424058", "0.5414094", "0.5369597", "0.5328199", "0.5226587", "0.52043307", "0.52001345", "0.5195833", "0.5173857", "0.51581436", "0.51421875", "0.50935346", "0.50908107", "0.5065514", "0.5058092", "0.5043143", "0.5039976", "0.49845824", "0.49775594", "0.49594647", "0.49549213", "0.4951011", "0.49427134", "0.49233723", "0.490974", "0.49081397", "0.48753452", "0.48751512", "0.48746365", "0.48509583", "0.48422503", "0.48126623", "0.47951174", "0.4780554", "0.47799328", "0.47782153", "0.47397417", "0.4738401", "0.47361898", "0.47358987", "0.47353268", "0.4732256", "0.47245222", "0.47134674", "0.47092083", "0.47059557", "0.47050947", "0.46965167", "0.46933052", "0.46859393", "0.46808064", "0.46798393", "0.4672962", "0.46705598", "0.46659648", "0.4657727", "0.46555385", "0.4654015", "0.4646367", "0.4644785", "0.46445113", "0.46345773", "0.46182558", "0.4617198", "0.46093282", "0.46093282", "0.46066323", "0.46031472", "0.45953232", "0.4588461", "0.45853317", "0.45839897", "0.4578931", "0.45769402", "0.45727485", "0.45673785", "0.4565053", "0.45547035", "0.4547336", "0.4527453", "0.45249757", "0.4523129", "0.45208633", "0.45201492", "0.45103166", "0.45040804", "0.45027497", "0.44992033", "0.4491067" ]
0.54329973
11
Compatibility wrapper for WordPress term lookup.
function term_exists( $term, $taxonomy = '', $parent = 0 ) { if ( function_exists( 'term_exists' ) ) { // 3.0 or later return term_exists( $term, $taxonomy, $parent ); } else { return is_term( $term, $taxonomy, $parent ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _post_format_get_term($term)\n {\n }", "public function get_term()\n {\n }", "function acf_get_term($term_id, $taxonomy = '')\n{\n}", "function acf_get_term_title($term)\n{\n}", "function get_term_title($term, $field, $post_id = 0)\n {\n }", "function rest_get_route_for_term($term)\n {\n }", "static function search_terms() {\n\t\tglobal $wpdb;\n\n\t\t$input = filter_input_array( INPUT_POST, array(\n\t\t\t'term' => FILTER_SANITIZE_STRING,\n\t\t\t'taxonomy' => FILTER_SANITIZE_STRING\n\t\t) );\n\n\t\tif( empty( $input['taxonomy'] ) || !taxonomy_exists( $input['taxonomy'] ) ) {\n\t\t\twp_send_json_error();\n\t\t}\n\n\t\t$terms = apply_filters( 'wp_form_pre_search_terms', null );\n\n\t\tif( !isset( $terms ) ) {\n\t\t\t$query_args = array(\n\t\t\t\t'search' => $input['term'],\n\t\t\t\t'hide_empty' => false\n\t\t\t);\n\n\t\t\t$terms = get_terms( $input['taxonomy'], $query_args );\n\t\t}\n\n\t\t$terms = apply_filters( 'wp_form_search_terms', $terms );\n\n\t\twp_send_json_success( $terms );\n\t}", "function get_term_by($field, $value, $taxonomy = '', $output = \\OBJECT, $filter = 'raw')\n {\n }", "abstract public function lookupWord($word);", "function get_primaryTermName($taxonomy,$id) {\n $primary_term = new WPSEO_Primary_Term($taxonomy,$id); \n $term = get_term_by('id',$primary_term->get_primary_term(),$taxonomy);\n return $term->name; \n}", "function _search_terms_tidy($t)\n {\n }", "function entity_translation_taxonomy_term_autocomplete($langcode = NULL, $field_name = '', $tags_typed = '') {\n // If the request has a '/' in the search text, then the menu system will have\n // split it into multiple arguments, recover the intended $tags_typed.\n $args = func_get_args();\n // Shift off the $langcode and $field_name arguments.\n array_shift($args);\n array_shift($args);\n $tags_typed = implode('/', $args);\n\n // Make sure the field exists and is a taxonomy field.\n if (!($field = field_info_field($field_name)) || $field['type'] !== 'taxonomy_term_reference') {\n // Error string. The JavaScript handler will realize this is not JSON and\n // will display it as debugging information.\n print t('Taxonomy field @field_name not found.', array('@field_name' => $field_name));\n exit;\n }\n\n // The user enters a comma-separated list of tags. We only autocomplete the\n // last tag.\n $tags_typed = drupal_explode_tags($tags_typed);\n $tag_last = drupal_strtolower(array_pop($tags_typed));\n\n $term_matches = array();\n if ($tag_last != '') {\n if (!isset($langcode) || $langcode == LANGUAGE_NONE) {\n $langcode = $GLOBALS['language_content']->language;\n }\n\n // Part of the criteria for the query come from the field's own settings.\n $vocabulary = _entity_translation_taxonomy_reference_get_vocabulary($field);\n\n $entity_type = 'taxonomy_term';\n $query = new EntityFieldQuery();\n $query->addTag('taxonomy_term_access');\n $query->entityCondition('entity_type', $entity_type);\n\n // If the Title module is enabled and the taxonomy term name is replaced for\n // the current bundle, we can look for translated names, otherwise we fall\n // back to the regular name property.\n if (module_invoke('title', 'field_replacement_enabled', $entity_type, $vocabulary->machine_name, 'name')) {\n $name_field = 'name_field';\n $language_group = 0;\n // Do not select already entered terms.\n $column = 'value';\n if (!empty($tags_typed)) {\n $query->fieldCondition($name_field, $column, $tags_typed, 'NOT IN', NULL, $language_group);\n }\n $query->fieldCondition($name_field, $column, $tag_last, 'CONTAINS', NULL, $language_group);\n $query->fieldLanguageCondition($name_field, array($langcode, LANGUAGE_NONE), NULL, NULL, $language_group);\n }\n else {\n $name_field = 'name';\n // Do not select already entered terms.\n if (!empty($tags_typed)) {\n $query->propertyCondition($name_field, $tags_typed, 'NOT IN');\n }\n $query->propertyCondition($name_field, $tag_last, 'CONTAINS');\n }\n\n // Select rows that match by term name.\n $query->propertyCondition('vid', $vocabulary->vid);\n $query->range(0, 10);\n $result = $query->execute();\n\n // Populate the results array.\n $prefix = count($tags_typed) ? drupal_implode_tags($tags_typed) . ', ' : '';\n $terms = !empty($result[$entity_type]) ? taxonomy_term_load_multiple(array_keys($result[$entity_type])) : array();\n foreach ($terms as $tid => $term) {\n $name = _entity_translation_taxonomy_label($term, $langcode);\n $n = $name;\n // Term names containing commas or quotes must be wrapped in quotes.\n if (strpos($name, ',') !== FALSE || strpos($name, '\"') !== FALSE) {\n $n = '\"' . str_replace('\"', '\"\"', $name) . '\"';\n }\n $term_matches[$prefix . $n] = check_plain($name);\n }\n }\n\n drupal_json_output($term_matches);\n}", "function sanitize_term($term, $taxonomy, $context = 'display')\n {\n }", "function get_term_by_id_only($term, $output = OBJECT, $filter = 'raw') \n{\n global $wpdb;\n $null = null;\n\n if(empty($term)) \n {\n $error = new WP_Error('invalid_term', __('Empty Term'));\n return $error;\n }\n\n if (is_object($term) && empty($term->filter)) \n {\n wp_cache_add($term->term_id, $term, 'my_custom_queries');\n $_term = $term;\n } \n else \n {\n if (is_object($term)) $term = $term->term_id;\n $term = (int) $term;\n if (!$_term = wp_cache_get($term, 'my_custom_queries')) \n {\n $_term = $wpdb->get_row( $wpdb->prepare( \"SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id = %s LIMIT 1\", $term) );\n if(!$_term) return $null;\n wp_cache_add($term, $_term, 'my_custom_queries');\n }\n }\n\n if ( $output == OBJECT ) \n {\n return $_term;\n } \n else if ($output == ARRAY_A) \n\t{\n $__term = get_object_vars($_term);\n return $__term;\n } \n else if ( $output == ARRAY_N ) \n {\n $__term = array_values(get_object_vars($_term));\n return $__term;\n } \n else \n {\n return $_term;\n }\n}", "function acf_get_terms($args)\n{\n}", "function entity_translation_taxonomy_term_tab_access() {\n $args = func_get_args();\n $term = array_shift($args);\n if (entity_translation_enabled('taxonomy_term', $term)) {\n return entity_translation_tab_access('taxonomy_term', $term);\n }\n else {\n $function = array_shift($args);\n return $function ? call_user_func_array($function, $args) : FALSE;\n }\n}", "public function supportsTermLookup() {\n \treturn $this->manager->supportsTermLookup();\n\t}", "public function getTerm() {\n return $this->_term;\n }", "function acf_get_choice_from_term($term, $format = 'term_id')\n{\n}", "function term_get($term_key)\n{\n $query = \"SELECT * FROM term WHERE term_key={$term_key}\";\n $result = mysql_query($query);\n while (@$row = mysql_fetch_array($result, MYSQL_ASSOC))\n {\n $results[] = $row;\n }\n return $results;\n}", "public function getTaxonomyTerms();", "function get_terms($value, $taxonomy = 'category')\n {\n }", "function acf_encode_term($term)\n{\n}", "function get_term_meta($term_id, $key = '', $single = \\false)\n {\n }", "protected function formatAsInThesaurus($term) {\n\t\treturn ucfirst(strtolower($term));\n\t}", "private function retrieve_term_title() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->taxonomy ) && ! empty( $this->args->name ) ) {\n\t\t\t$replacement = $this->args->name;\n\t\t}\n\n\t\treturn $replacement;\n\t}", "function global_terms($term_id, $deprecated = '')\n {\n }", "public function getTerms($term)\n {\n return $this->terms = wp_get_post_terms($this->id, $term);\n }", "public function get_terms()\n {\n }", "function sanitize_term_field($field, $value, $term_id, $taxonomy, $context)\n {\n }", "function get_term_custom( $term_id = 0 ) {\n\t$term_id = absint( $term_id );\n\tif ( ! $term_id )\n\t\t$term_id = get_the_ID();\n\n\treturn get_term_meta( $term_id );\n}", "protected function _prepare_term($term)\n {\n }", "function has_term($term = '', $taxonomy = '', $post = \\null)\n {\n }", "function acf_decode_term($string)\n{\n}", "function _entity_translation_taxonomy_autocomplete_widget_get_terms($element) {\n $items = isset($element['#entity']->{$element['#field_name']}[$element['#language']]) ?\n $element['#entity']->{$element['#field_name']}[$element['#language']] : array();\n $tids = array_map(function ($item) { return $item['tid']; }, $items);\n return taxonomy_term_load_multiple($tids);\n}", "function acf_get_term_post_id($taxonomy, $term_id)\n{\n}", "function get_term_link(string $route = 'taxonomy.show', array $params = []): string\n{\n return $route ? route($route, $params) : '#';\n}", "function _post_format_wp_get_object_terms($terms)\n {\n }", "public function localize_term_scraper_script() {\n\t\t$term_id = filter_input( INPUT_GET, 'tag_ID' );\n\t\t$term = get_term_by( 'id', $term_id, $this->get_taxonomy() );\n\t\t$taxonomy = get_taxonomy( $term->taxonomy );\n\n\t\t$term_formatter = new WPSEO_Metabox_Formatter(\n\t\t\tnew WPSEO_Term_Metabox_Formatter( $taxonomy, $term )\n\t\t);\n\n\t\treturn $term_formatter->get_values();\n\t}", "function get_term_name($slug, $tax){\n $term = get_term_by('slug', $slug, $tax);\n $term_name = array(\n array(\n 'name' => $term->name,\n 'slug' => $term->slug,\n 'link' => esc_url( get_term_link( $term ) ),\n )\n );\n return $term_name;\n}", "public function taxonomy();", "function dss_elc_get_taxonomy_term($term_value, $vocab_name) {\n\n // Check for the taxonomical term containing the term\n $terms = taxonomy_get_term_by_name($term_value, $vocab_name);\n \n // If the term has not been linked to this vocabulary yet, instantiate the term\n if(!empty($terms)) {\n\n return array_pop($terms);\n } else {\n\n $vocab = taxonomy_vocabulary_machine_name_load($vocab_name);\n \n $term = new stdClass();\n $term->name = $term_value;\n $term->vid = $vocab->vid;\n\n taxonomy_term_save($term);\n return $term;\n }\n}", "protected function getTermForAllResources() {\n return new Zend_Search_Lucene_Index_Term('fpost', 'doctype');\n }", "public function term_by_query( $args, $assoc_args ) {\n\n\t\t$sites = $args[0] ? explode( ',', $args[0] ) : [];\n\n\t\t$sites = array_filter( $sites, function( $site_id ) {\n\t\t\treturn is_numeric( $site_id );\n\t\t} );\n\n\t\t$method = isset( $assoc_args['method'] ) ? $assoc_args['method'] : 'sync';\n\n\t\tif ( ! $sites ) {\n\t\t\tWP_CLI::error( 'Invalid site ID param' );\n\t\t}\n\n\t\tif ( empty( $assoc_args['taxonomy'] ) ) {\n\t\t\tWP_CLI::error( 'Please define the taxonomy query arg.' );\n\t\t}\n\n\t\t$query_args = wp_parse_args( $assoc_args, [\n\t\t\t'taxonomy' => 'post_tag',\n\t\t\t'offset' => 0,\n\t\t\t'number' => 100,\n\t\t\t'hide_empty' => false,\n\t\t] );\n\n\t\tif ( empty( $assoc_args['force_sync'] ) || 'false' === $assoc_args['force_sync'] ) {\n\t\t\t$assoc_args['force_sync'] = false;\n\t\t}\n\n\t\tif ( isset( $assoc_args['include'] ) ) {\n\t\t\t$query_args['include'] = explode( ',', str_replace( ' ', '', $query_args['include'] ) );\n\t\t}\n\n\t\t$query_args['taxonomy'] = explode( ',', str_replace( ' ', '', $query_args['taxonomy'] ) );\n\n\t\tif ( isset( $query_args['name'] ) ) {\n\t\t\t$query_args['name'] = explode( ',', str_replace( ' ', '', $query_args['name'] ) );\n\t\t}\n\n\t\tif ( isset( $query_args['slug'] ) ) {\n\t\t\t$query_args['slug'] = explode( ',', str_replace( ' ', '', $query_args['slug'] ) );\n\t\t}\n\n\t\t$terms = get_terms( $query_args );\n\n\t\tWP_CLI::line( sprintf( 'Processing %d terms', count( $terms ) ) );\n\n\t\tforeach ( $terms as $key => $term ) {\n\n\t\t\tif ( 0 === ( $key % 20 ) ) {\n\t\t\t\t$this->stop_the_insanity();\n\t\t\t}\n\n\t\t\t$syncable = EA\\Master::get_syncable( $term );\n\n\t\t\tforeach ( $sites as $site ) {\n\n\t\t\t\tif ( ! get_blog_details( [ 'blog_id' => $site ] ) ) {\n\t\t\t\t\tWP_CLI::warning( sprintf( 'Blog %s does not exist' ) );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( $syncable->source_is_detached( $term->term_id, $site ) && ! $assoc_args['force_sync'] ) {\n\t\t\t\t\tWP_CLI::warning( sprintf( 'Syncable %d has been detached on the destination site %d', $term->term_id, $site ) );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$id = $syncable->sync_to( $site, $method );\n\n\t\t\t\tif ( 'sync' === $method ) {\n\t\t\t\t\t$syncable->set_is_syncable( $site, $term->term_id, true );\n\t\t\t\t}\n\n\t\t\t\tWP_CLI::line( sprintf( 'Synced %s (%d) to site %d, Destination id: %d', $term->taxonomy, $term->term_id, $site, $id ) );\n\t\t\t}\n\t\t}\n\t}", "public function termId() { return $this->post->term_id; }", "public function getTaxonomyTerm($id, $taxonomy);", "function echo_term(\n $actcode, $showAll, $spanid, $hidetag, $currcharcount, $record, \n &$exprs = array()\n)\n{\n $actcode = (int)$record['Code'];\n if ($actcode > 1) {\n // A multiword, $actcode is the number of words composing it\n\t\tif (empty($exprs) || $exprs[sizeof($exprs)-1][1] != $record['TiText'])\n\t\t\t$exprs[] = array($actcode, $record['TiText'], $actcode);\n\n if (isset($record['WoID'])) {\n\n $attributes = array(\n\t\t\t\t'id' => $spanid,\n\t\t\t\t'class' => implode(\" \", [\n $hidetag, \"click\", \"mword\", ($showAll ? 'mwsty' : 'wsty'), \n \"order\" . $record['Ti2Order'],\n\t\t\t\t 'word' . $record['WoID'], 'status' . $record['WoStatus'], \n\t\t\t\t 'TERM' . strToClassName($record['TiTextLC'])]\n ),\n\t\t\t\t'data_pos' => $currcharcount,\n\t\t\t\t'data_order' => $record['Ti2Order'],\n\t\t\t\t'data_wid' => $record['WoID'],\n\t\t\t\t'data_trans' => tohtml(repl_tab_nl($record['WoTranslation']) . \n\t\t\t\tgetWordTagList($record['WoID'], ' ', 1, 0)),\n\t\t\t\t'data_rom' => tohtml($record['WoRomanization']),\n\t\t\t\t'data_status' => $record['WoStatus'],\n 'data_code' => $actcode,\n 'data_text' => tohtml($record['TiText'])\n );\n $span = '<span';\n foreach ($attributes as $attr_name => $val) {\n $span .= ' ' . $attr_name . '=\"' . $val . '\"';\n }\n $span .= '>'; \n if ($showAll) {\n $span .= $actcode;\n } else {\n $span .= tohtml($record['TiText']);\n }\n $span .= '</span>';\n echo $span;\n }\n } else {\n // Single word\n if (isset($record['WoID'])) {\n // Word found status 1-5|98|99\n\t\t\t$attributes = array(\n\t\t\t\t'id' => $spanid,\n\t\t\t\t'class' => implode(\" \", [\n $hidetag, \"click\", \"word\", \"wsty\", \"word\" . $record['WoID'],\n 'status' . $record['WoStatus'], \n 'TERM' . strToClassName($record['TiTextLC'])\n ]),\n\t\t\t\t'data_pos' => $currcharcount,\n\t\t\t\t'data_order' => $record['Ti2Order'],\n\t\t\t\t'data_wid' => $record['WoID'],\n\t\t\t\t'data_trans' => tohtml(repl_tab_nl($record['WoTranslation']) . \n\t\t\t\tgetWordTagList($record['WoID'], ' ', 1, 0)),\n\t\t\t\t'data_rom' => tohtml($record['WoRomanization']),\n\t\t\t\t'data_status' => $record['WoStatus']\n\t\t\t);\n } else {\n // Not registered word (status 0)\n\t\t\t$attributes = array(\n\t\t\t\t'id' => $spanid,\n\t\t\t\t'class' => implode(\" \", [\n $hidetag, \"click\", \"word\", \"wsty\", \"status0\", \n \"TERM\" . strToClassName($record['TiTextLC'])\n ]),\n\t\t\t\t'data_pos' => $currcharcount,\n\t\t\t\t'data_order' => $record['Ti2Order'],\n\t\t\t\t'data_trans' => '',\n\t\t\t\t'data_rom' => '',\n\t\t\t\t'data_status' => '0',\n\t\t\t\t'data_wid' => ''\n\t\t\t);\n }\n\t\tforeach ($exprs as $expr) {\n\t\t\t$attributes['data_mw' . $expr[0]] = tohtml($expr[1]);\n\t\t}\n $span = '<span';\n foreach ($attributes as $attr_name => $val) {\n $span .= ' ' . $attr_name . '=\"' . $val . '\"';\n\t\t}\n $span .= '>' . tohtml($record['TiText']) . '</span>';\n echo $span;\n\t\tfor ($i = sizeof($exprs) - 1; $i >= 0; $i--) {\n\t\t\t$exprs[$i][2]--;\n\t\t\tif ($exprs[$i][2] < 1) {\n\t\t\t\tunset($exprs[$i]);\n\t\t\t\t$exprs = array_values($exprs);\n\t\t\t}\n\t\t}\n }\n}", "function synonym_lookup($query) {\n\n $apikey = \"GdbOBg1JYIou4guyIKfq\"; // NOTE: replace test_only with your own key \n $word = $query; // any word \n $language = \"en_US\"; // you can use: en_US, es_ES, de_DE, fr_FR, it_IT \n $endpoint = \"http://thesaurus.altervista.org/thesaurus/v1\";\n\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, \"$endpoint?word=\" . urlencode($word) . \"&language=$language&key=$apikey&output=json\");\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $data = curl_exec($ch);\n $info = curl_getinfo($ch);\n curl_close($ch);\n\n //either return $result populated with the JSON decoded data\n if ($info['http_code'] == 200) {\n $result = json_decode($data, true);\n }\n\n\n //or return result as 0\n else {\n $result = 0;\n }\n\n return $result;\n}", "function single_term_title($prefix = '', $display = \\true)\n {\n }", "public function getTermAttribute($term)\n {\n if (!$term) {\n return ucwords(\\Present::unslug($this->slug));\n }\n\n return $term;\n }", "function _post_format_get_terms($terms, $taxonomies, $args)\n {\n }", "function alt_term_links_search( $args ) {\n \n foreach( alt_term_links_config() as $conf ) {\n $var = adverts_request( $conf[\"param\"] );\n if( ! empty( $var ) ) {\n $args[\"tax_query\"] = _alt_term_links_search_apply( $conf, $var, $args[\"tax_query\"] ); \n }\n }\n \n return $args;\n}", "function _culturefeed_search_ui_sanitize_query_term($term) {\n // Replace special characters with normal ones.\n $term = culturefeed_search_transliterate($term);\n\n // Replace AND to a space.\n $term = str_replace(' AND ', ' ', $term);\n\n $query_parts = explode(' OR ', $term);\n array_walk($query_parts, function(&$search_string) {\n\n // Strip of words between quotes. The spaces don't need to be replaced to AND for them.\n preg_match_all('/\".*?\"/', $search_string, $matches);\n foreach ($matches[0] as $match) {\n $search_string = str_replace($match, '', $search_string);\n }\n\n $search_string = str_replace(' ', ' ', $search_string);\n\n // Put words with a special character between quotes.\n $words = explode(' ', trim($search_string));\n $parts = array();\n $special_characters = '-!?&/';\n foreach ($words as $word) {\n if (strpbrk($word, $special_characters)) {\n $word = '\"' . $word . '\"';\n }\n $parts[] = $word;\n }\n\n // Replace spaces between multiple search words by 'AND'.\n $search_string = implode(' AND ', $parts);\n\n // Add back the words between quotes.\n if (!empty($matches[0])) {\n if (empty($search_string)) {\n $search_string .= implode(' AND ', $matches[0]);\n }\n else {\n $search_string .= ' AND ' . implode(' AND ', $matches[0]);\n }\n }\n\n });\n\n return implode(' OR ', $query_parts);\n}", "function get_edit_term_link($term, $taxonomy = '', $object_type = '')\n {\n }", "function specialities_taxonomy_custom_fields($tag) {\n // Check for existing taxonomy meta for the term you're editing\n $t_id = $tag->term_id; // Get the ID of the term you're editing\n $term_meta = get_option( \"taxonomy_term_$t_id\" ); // Do the check\n\t?>\n\n\t<tr class=\"form-field\">\n\t\t<th scope=\"row\" valign=\"top\">\n\t\t\t<label for=\"s_keyword\"><?php _e('Search Keyword'); ?></label>\n\t\t</th>\n\t\t<td>\n\t\t\t<input type=\"text\" name=\"term_meta[s_keyword]\" id=\"term_meta[s_keyword]\" size=\"25\" style=\"width:60%;\" value=\"<?php echo $term_meta['s_keyword'] ? $term_meta['s_keyword'] : ''; ?>\" data-role=\"tagsinput\"><br />\n\t\t\t<span class=\"description\"><?php _e('Search Keyword description'); ?></span>\n\t\t</td>\n\t</tr>\n\n\t<?php\n}", "function apachesolr_term_reference_indexing_callback($node, $field_name, $index_key, array $field_info) {\n // Keep ancestors cached\n $ancestors = &drupal_static(__FUNCTION__, array());\n\n $fields = array();\n $vocab_names = array();\n if (!empty($node->{$field_name}) && function_exists('taxonomy_get_parents_all')) {\n $field = $node->$field_name;\n list($lang, $items) = each($field);\n foreach ($items as $item) {\n // Triple indexing of tids lets us do efficient searches (on tid)\n // and do accurate per field or per-vocabulary faceting.\n\n // By including the ancestors to a term in the index we make\n // sure that searches for general categories match specific\n // categories, e.g. Fruit -> apple, a search for fruit will find\n // content categorized with apple.\n if (!isset($ancestors[$item['tid']])) {\n $ancestors[$item['tid']] = taxonomy_get_parents_all($item['tid']);\n }\n foreach ($ancestors[$item['tid']] as $ancestor) {\n // Index parent term against the field. Note that this happens\n // regardless of whether the facet is set to show as a hierarchy or not.\n // We would need a separate field if we were to index terms without any\n // hierarchy at all.\n // If the term is singular, then we cannot add another value to the\n // document as the field is single\n if ($field_info['multiple']) {\n $fields[] = array(\n 'key' => $index_key,\n 'value' => $ancestor->tid,\n );\n }\n $fields[] = array(\n 'key' => 'tid',\n 'value' => $ancestor->tid,\n );\n $fields[] = array(\n 'key' => 'im_vid_' . $ancestor->vid,\n 'value' => $ancestor->tid,\n );\n $name = apachesolr_clean_text($ancestor->name);\n $vocab_names[$ancestor->vid][] = $name;\n // We index each name as a string for cross-site faceting\n // using the vocab name rather than vid in field construction .\n $fields[] = array(\n 'key' => 'sm_vid_' . apachesolr_vocab_name($ancestor->vid),\n 'value' => $name,\n );\n }\n }\n // Index the term names into a text field for MLT queries and keyword searching.\n foreach ($vocab_names as $vid => $names) {\n $fields[] = array(\n 'key' => 'tm_vid_' . $vid . '_names',\n 'value' => implode(' ', $names),\n );\n }\n }\n return $fields;\n}", "public static function get_terms( $args = null, $maybe_args = array(), $TermClass = 'Timber\\Term' ) {\n\t\treturn TermGetter::get_terms($args, $maybe_args, $TermClass);\n\t}", "private function retrieve_term404() {\n\t\t$replacement = null;\n\n\t\tif ( $this->args->term404 !== '' ) {\n\t\t\t$replacement = sanitize_text_field( str_replace( '-', ' ', $this->args->term404 ) );\n\t\t}\n\t\telse {\n\t\t\t$error_request = get_query_var( 'pagename' );\n\t\t\tif ( $error_request !== '' ) {\n\t\t\t\t$replacement = sanitize_text_field( str_replace( '-', ' ', $error_request ) );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$error_request = get_query_var( 'name' );\n\t\t\t\tif ( $error_request !== '' ) {\n\t\t\t\t\t$replacement = sanitize_text_field( str_replace( '-', ' ', $error_request ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function __construct( $term ) {\n\t\t$this->term = $term;\n\t}", "function wp_get_split_term($old_term_id, $taxonomy)\n {\n }", "function render_entry_terms( array $args = [] ) {\n\n\t$html = '';\n\n\t$args['taxonomy'] = $args['taxonomy'] ?? 'category';\n\n\t$args = wp_parse_args( $args, [\n\t\t'class' => 'entry-' . $args['taxonomy'],\n\t\t'link' => true,\n\t\t'term_format' => '%s',\n\t\t'sep' => ', ',\n\t] );\n\n $terms = get_the_terms( get_the_ID(), $args['taxonomy'] );\n \n if ( is_wp_error( $terms ) ) {\n return $terms;\n }\n \n if ( empty( $terms ) ) {\n return false;\n }\n\n $_terms = array();\n \n foreach ( $terms as $term ) {\n\n \t$term_name = sprintf( $args['term_format'], $term->name );\n\n \tif ($args['link']) {\n \t$link = get_term_link( $term, $args['taxonomy'] );\n\n\t if ( is_wp_error( $link ) ) {\n\t return $link;\n\t }\n\t $_terms[] = '<a href=\"' . esc_url( $link ) . '\" rel=\"tag\" class=\"'. $args['class'] . '\">' . $term_name . '</a>';\n \t}\n \telse {\n\t $_terms[] = '<span class=\"'. $args['class'] . '\">' . $term_name . '</span>';\n \t}\n }\n\n $html = implode($args['sep'], $_terms);\n\n\treturn apply_filters( 'wbl/theme/entry/'.$args['taxonomy'], $html );\n}", "function acf_decode_taxonomy_term($value)\n{\n}", "function wp_unique_term_slug($slug, $term)\n {\n }", "function acf_get_encoded_terms($values)\n{\n}", "function emc_the_term_title() {\r\n\r\n\t$term = get_queried_object();\r\n\r\n\tif ( is_tax( 'emc_content_format' ) ) {\r\n\t\t$html = sprintf( __( '%ss', 'emc' ),\r\n\t\t\t$term->name\r\n\t\t);\r\n\t} elseif ( is_tax( 'emc_series' ) ) {\r\n\t\t$html = sprintf( __( 'Series: %s', 'emc' ),\r\n\t\t\t$term->name\r\n\t\t);\r\n\t} elseif ( is_tax( 'emc_grade_level' ) ) {\r\n\t\t$html = sprintf( __( 'Grade Level: %s', 'emc' ),\r\n\t\t\t$term->name\r\n\t\t);\r\n\t} else {\r\n\t\t$html = $term->name;\r\n\t}\r\n\r\n\techo esc_html( $html );\r\n\r\n}", "function get_term_feed_link($term, $taxonomy = '', $feed = '')\n {\n }", "public function setTerm($term) {\n $this->_term = $term;\n return $this;\n }", "public function get_term_object( $term ) {\n \t$vc_taxonomies_types = vc_taxonomies_types();\n \treturn array(\n \t\t'label' => $term->name,\n \t\t'value' => $term->slug,\n \t\t'group_id' => $term->taxonomy,\n \t\t'group' => isset( $vc_taxonomies_types[ $term->taxonomy ], $vc_taxonomies_types[ $term->taxonomy ]->labels, $vc_taxonomies_types[ $term->taxonomy ]->labels->name ) ? $vc_taxonomies_types[ $term->taxonomy ]->labels->name : __( 'Taxonomies', 'infinite-addons' ),\n \t\t);\n }", "private function lookup($word) {\n\n $query = $this->dm->getRepository('\\FYP\\Database\\Documents\\Lexicon');\n $result = $query->findOneBy(array('phrase' => $word));\n if (empty($result)) {\n $result = $query->findOneBy(array('phrase' => strtolower($word)));\n }\n\n if (empty($result)) {\n return self::DEFAULT_TAG;\n } else {\n return $result->getTags()[0];\n }\n\n }", "public function search($term = null);", "function wp_check_term_meta_support_prefilter($check)\n {\n }", "function uvasomrfd_do_search_title() {\n\t$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );\n\tif(!is_page('27718')){\n\t//if (!strpos($_SERVER[\"REQUEST_URI\"], 'faculty-mentoring-undergraduates')) {\n\tif (is_tax( 'primary')||is_tax( 'training-grant')) {$preterm='Department of ';}\n\tif (is_tax( 'research-discipline')) {$preterm='Research Discipline: ';}\n\tif (is_tax( 'training-grant')) {$preterm='Training Program: ';}\n\t//if (strpos($_SERVER[\"REQUEST_URI\"], '?undergraduates')){$preterm='Faculty Accepting Undergraduates';$term->name='';}\n$title = sprintf( '<div class=\"clearfix\"></div><div id=\"uvasom_page_title\">'.genesis_do_breadcrumbs().'<h1 class=\"archive-title\">%s %s</h1>', apply_filters( 'genesis_search_title_text', __( $preterm, 'genesis' ) ), $term->name).'</div>';\n\techo apply_filters( 'genesis_search_title_output', $title ) . \"\\n\";\n\t}\n}", "function emc_taxonomy_title() {\r\n\r\n\tglobal $wp_query;\r\n\t$term = $wp_query->get_queried_object();\r\n\t$title = $term->name;\r\n\r\n\techo esc_html( $title );\r\n\r\n}", "function term_handler( $term_id, $tt_id=null ) {\n\t\t$this->add_ping( 'db', array( 'term' => $term_id ) );\n\t\tif ( $tt_id )\n\t\t\t$this->term_taxonomy_handler( $tt_id );\n\t}", "function jr_get_custom_taxonomy($post_id, $tax_name, $tax_class) {\r\n $tax_array = get_terms( $tax_name, array( 'hide_empty' => '0' ) );\r\n if ($tax_array && sizeof($tax_array) > 0) {\r\n foreach ($tax_array as $tax_val) {\r\n if ( is_object_in_term( $post_id, $tax_name, array( $tax_val->term_id ) ) ) {\r\n echo '<span class=\"'.$tax_class . ' '. $tax_val->slug.'\">'.$tax_val->name.'</span>';\r\n break;\r\n }\r\n }\r\n }\r\n}", "public function find(string $term, string $namespace) : array;", "function oo_ensure_term($taxonomy, $term_name) {\n $term_slug = sanitize_title($term_name);\n\n $term = get_term_by('slug', $term_slug, $taxonomy);\n\n if (!$term) {\n $term_id = wp_insert_term(\n $term_name,\n $taxonomy,\n array(\n 'slug' => $term_slug\n )\n )['term_id'];\n } else {\n $term_id = $term->term_id;\n }\n\n return $term_id;\n}", "function acf_get_taxonomy_terms($taxonomies = array())\n{\n}", "public function toggle_term() {\n\t\tglobal $post;\n\n\t\t$post = array_shift( get_posts( array(\n\t\t\t'post_type' => $this->params['post_type'],\n\t\t\t'name' => $this->params['post_name']\n\t\t) ) );\n\n\t\t$taxonomy = $this->params['action_key'];\n\n\t\t$terms = is_array( $this->params['extra'] ) ? explode( ',', $this->params['extra'][0] ) : array();\n\n\t\tforeach ( $terms as $term_key => $term ) {\n\t\t\tif ( is_string( $term ) ) {\n\t\t\t\tif ( ! $this_term = term_exists( $term, $taxonomy ) ) {\n\t\t\t\t\t// $caption = ucwords(str_replace(\"_\", \" \", (string) $field_name));\n\t\t\t\t\twp_insert_term( ucwords( str_replace( array( \"_\", \"-\" ), \" \", $term ) ), $taxonomy, array( 'slug' => $term ) );\n\t\t\t\t\t$this_term = get_term_by( 'slug', $term, $taxonomy, ARRAY_A );\n\t\t\t\t}\n\n\t\t\t\t$term_id = $this_term['term_id'];\n\t\t\t} else {\n\t\t\t\t$term_id = $term;\n\t\t\t}\n\n\t\t\t$current_action = $this->get_current_action();\n\t\t\tif ( has_term( $term_id, $taxonomy, $post->ID ) ) {\n\t\t\t\t$existing_terms_array = wp_get_post_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );\n\n\t\t\t\t// Remove the current term form the terms array\n\t\t\t\tforeach ( $existing_terms_array as $term_index => $existing_term ) {\n\t\t\t\t\tif ( $term_id == $existing_term ) {\n\t\t\t\t\t\tunset( $existing_terms_array[$term_index] );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$this->action_results[ 'data' ][ 'post_id' ] = $post->ID;\n\n\t\t\t\t// Remove the term, the fourth parameter 'false' relaces the term array\n\t\t\t\tif ( $result = wp_set_post_terms( $post->ID, $existing_terms_array, $taxonomy, false ) ) {\n\t\t\t\t\t$action_status = 'success';\n\t\t\t\t\t$this->action_results[ 'messages' ][ 'note' ] = __( 'Term Removed', 'kickpress' );\n\t\t\t\t\t$this->action_results[ 'data' ][ 'terms' ] = $result;\n\t\t\t\t} else {\n\t\t\t\t\tif ( false === $result ) {\n\t\t\t\t\t\t$action_status = 'failure';\n\t\t\t\t\t\t$this->action_results[ 'messages' ][ 'note' ] = __( 'Failed to Remove Term', 'kickpress' );\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$action_status = 'success';\n\t\t\t\t\t\t$this->action_results[ 'messages' ][ 'note' ] = __( 'Term Removed', 'kickpress' );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Add the term, the fourth parameter 'true' appends the term to the term array\n\t\t\t\tif ( $result = wp_set_post_terms( $post->ID, array( intval( $term_id ) ), $taxonomy, true ) ) {\n\t\t\t\t\t$this->action_results[ 'data' ][ 'terms' ] = $result;\n\t\t\t\t\t$action_status = 'success';\n\t\t\t\t\t$this->action_results[ 'messages' ][ 'note' ] = __( 'Term Added', 'kickpress' );\n\t\t\t\t} else {\n\t\t\t\t\t$action_status = 'failure';\n\t\t\t\t\t$this->action_results[ 'messages' ][ 'note' ] = __( 'Failed to Remove Term', 'kickpress' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->action_results[ 'status' ] = $action_status;\n\t\t\t$this->action_results[ 'data' ][ 'terms' ] = wp_get_post_terms( $post->ID, $taxonomy );\n\t\t}\n\t}", "function _alt_term_links_search_apply( $param, $var, $tax_query ) {\n \n if( ! is_array( $tax_query ) ) {\n $tax_query = array();\n }\n \n foreach( $tax_query as $tax ) {\n \n // Already doing search by this taxonomy, skip.\n if( $tax[\"taxonomy\"] == $param[\"taxonomy\"] ) {\n return $tax_query;\n }\n }\n \n $tax_query[] = array(\n 'taxonomy' => $param[\"taxonomy\"],\n 'field' => 'slug',\n 'terms' => $var,\n );\n \n return $tax_query;\n}", "function wp_newTerm( $args ) {\n\n global $wp_xmlrpc_server;\n $wp_xmlrpc_server->escape( $args );\n\n $blog_ID = (int) $args[0];\n $username = $args[1];\n $password = $args[2];\n $content_struct = $args[3];\n\n if ( ! $user = $wp_xmlrpc_server->login( $username, $password ) )\n return $wp_xmlrpc_server->error;\n\n if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )\n return new IXR_Error( 403, __( 'Invalid taxonomy' ) );\n\n $taxonomy = get_taxonomy( $content_struct['taxonomy'] );\n\n if( ! current_user_can( $taxonomy->cap->manage_terms ) )\n return new IXR_Error( 401, __( 'You are not allowed to create terms in this taxonomy' ) );\n\n $taxonomy = (array)$taxonomy;\n\n // hold the data of the term\n $term_data = array();\n \n $term_data['name'] = trim( $content_struct['name'] );\n if ( empty ( $term_data['name'] ) )\n return new IXR_Error( 403, __( 'The term name cannot be empty' ) );\n\n if( isset ( $content_struct['parent'] ) ) {\n\n if( ! $taxonomy['hierarchical'] )\n return new IXR_Error( 403, __( 'This taxonomy is not hieararchical' ) );\n\n $parent_term_id = (int)$content_struct['parent'];\n $parent_term = get_term( $parent_term_id , $taxonomy['name'] );\n\n if ( is_wp_error( $parent_term ) )\n return new IXR_Error( 500, $term->get_error_message() );\n\n if ( ! $parent_term )\n return new IXR_Error(500, __('Parent term does not exist'));\n\n $term_data['parent'] = $content_struct['parent'];\n \n }\n\n $term_data['description'] = '';\n if( isset ( $content_struct['description'] ) )\n $term_data['description'] = $content_struct['description'];\n\n $term_data['slug'] = '';\n if( isset ( $content_struct['slug'] ) )\n $term_data['slug'] = $content_struct['slug'];\n\n $term_ID = wp_insert_term( $term_data['name'] , $taxonomy['name'] , $term_data );\n\n if ( is_wp_error( $term_ID ) )\n return new IXR_Error(500, $term_ID->get_error_message());\n\n if ( ! $term_ID )\n return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.'));\n\n return $term_ID;\n\n}", "function gwAddTerm($arPre, $id_dict, $arStop, $in_term, $is_specialchars, $is_overwrite, $intLine = 0, $isDelete = 0)\r\n{\r\n\tglobal $oDom, $oFunc, $oDb, $oSqlQ, $oCase, $oL, $oHtml, $oSess;\r\n\tglobal $arFields, $arDictParam, $arTermParam, $cnt, $tid, $sys;\r\n\tglobal $gw_this, $qT;\r\n\r\n#\t@header(\"content-type: text/html; charset=utf-8\");\r\n\r\n\t$id_w = $oDb->MaxId($arDictParam['tablename']);\r\n\t$isQ = 1;\r\n\t$isCleanMap = 0;\r\n\t$id_old = isset($tid) ? $tid : 0;\r\n\t$queryA = $qT = array();\r\n\t$isTermExist = 0;\r\n\t/* Used for keywords */\r\n\t$str_term_filtered = $oDom->get_content($arPre['term']);\r\n\t/* remove {TEMPLATES}, {%TEMPLATES%} */\r\n\t$str_term_filtered = preg_replace(\"/{(%)?([A-Za-z0-9:\\-_]+)(%)?}/\", '', $str_term_filtered);\r\n\t$str_term_filtered = trim($str_term_filtered);\r\n\t/* Used in database */\r\n\t$str_term_src = gw_fix_input_to_db($str_term_filtered);\r\n\t\r\n\t$str_term_filtered = gw_unhtmlspecialamp($str_term_filtered);\r\n\t/* 22 jul 2003: Custom Term ID */\r\n\t$qT['id'] = $oDom->get_attribute('id', 'term', $arPre['term'] );\r\n\t$qT['id'] = preg_replace(\"/[^0-9]/\", '', trim($qT['id']));\r\n\t/* */\r\n\tif (!$isDelete)\r\n\t{\r\n\t\t/* -- Check for an existed term -- */\r\n\t\t/* prepare keywords for a term */\r\n\t\tif ($is_specialchars)\r\n\t\t{\r\n\t\t\t/* Keep specials */\r\n\t\t\t$str_term_filtered = $oCase->nc($str_term_filtered);\r\n\t\t\t$str_term_filtered = gw_text_wildcars($str_term_filtered);\r\n\t\t\t$arKeywordsT = text2keywords($oCase->rm_($str_term_filtered), 1);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Remove specials */\r\n\t\t\t$str_term_filtered = text_normalize($str_term_filtered);\r\n\t\t\t$arKeywordsT = text2keywords($str_term_filtered, $arDictParam['min_srch_length']);\r\n\t\t}\r\n\t\t/* Are there any keywords? */\r\n\t\t$isTermEmpty = (empty($arKeywordsT) && (strlen(trim( $str_term_filtered )) == 0)) ? 1 : 0;\r\n\t\tif (!$isTermEmpty)\r\n\t\t{\r\n\t\t\t/* no empty keywords for a term */\r\n\t\t\t/* SQL-query */\r\n\t\t\t/* Get existent keywords, standard mode */\r\n\t\t\t$word_srch_sql = ($qT['id'] != '') ? 't.id = \"' . $qT['id'] . '\"' : '';\r\n\t\t\tif ($word_srch_sql == '')\r\n\t\t\t{\r\n\t\t\t\t$word_srch_sql = \"k.word_text IN ('\" . implode(\"', '\", $arKeywordsT) . \"')\";\r\n\t\t\t}\r\n\t\t\t$sql = $oSqlQ->getQ('get-term-exists', TBL_WORDLIST, $arDictParam['tablename'], $id_dict,\r\n\t\t\t\t\t\t$in_term, $word_srch_sql\r\n\t\t\t\t\t);\r\n\t\t\t/* Get existent keywords, keep specialchars mode */\r\n\t\t\tif (($is_specialchars) || empty($arKeywordsT))\r\n\t\t\t{\r\n\t\t\t\t$ar_chars_sql = array('\\\\' => '\\\\\\\\', '\\\\%' => '\\\\\\\\\\\\\\%', '\\\\_' => '\\\\\\\\\\\\\\_', '\\\\\"' => '\\\\\\\\\\\\\\\"', \"\\\\'\" => \"\\\\\\\\\\\\\\'\");\r\n\t\t\t\t$sql = $oSqlQ->getQ('get-term-exists-spec', $arDictParam['tablename'],\r\n\t\t\t\t\t\tstr_replace(array_keys($ar_chars_sql), array_values($ar_chars_sql), gw_addslashes( $str_term_src ))\r\n\t\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t$arSql = $oDb->sqlExec($sql);\r\n#\t\t\tprn_r($arSql, __LINE__ . '<br />' . $sql);\r\n\t\t\t$isTermNotMatched = 1; // `No term found' by default\r\n\r\n\t\t\tfor (; list($arK, $arV) = each($arSql);) // compare founded values (Q) with imported (T)\r\n\t\t\t{\r\n\t\t\t\t$id_old = $arV['id']; // get ID for existent keywords.\r\n\t\t\t\tif ($id_old == $qT['id'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$isTermNotMatched = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif ($is_specialchars)\r\n\t\t\t\t{\r\n\t\t\t\t\t/* 1 - is the minimum length */\r\n\t\t\t\t\t$arKeywordsQ = text2keywords( text_normalize($arV['term']), 1);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/* $arDictParam['min_srch_length'] - is the minimum length */\r\n\t\t\t\t\t$arKeywordsQ = text2keywords( text_normalize($arV['term']), $arDictParam['min_srch_length']);\r\n\t\t\t\t}\r\n#\t\t\t\tprn_r($arKeywordsQ);\r\n\t\t\t\t$div1 = sizeof(gw_array_exclude($arKeywordsT, $arKeywordsQ));\r\n\t\t\t\t$div2 = sizeof(gw_array_exclude($arKeywordsQ, $arKeywordsT));\r\n\t\t\t\t$isTermNotMatched = ($div1 + $div2);\r\n\t\t\t\t// if the sum of excluded arrays is 0, this term already exists\r\n\t\t\t\tif (!$isTermNotMatched) // in english, double negative means positive... yeah\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} // end of for each founded terms\r\n\t\t\tif ($isTermNotMatched > 0)\r\n\t\t\t{\r\n\t\t\t\t$isQ = 1;\r\n\t\t\t\t$isTermExist = 0;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$isTermExist = 1;\r\n\t\t\t}\r\n\t\t} // !$isTermEmpty\r\n\t}\r\n\t/* */\r\n\tif (!isset($str_term_filtered))\r\n\t{\r\n\t\t$str_term_filtered = gw_text_wildcars($str_term_filtered);\r\n\t\t$str_term_filtered = text_normalize($str_term_filtered);\r\n\t}\r\n\t/* 21 jan 2006: new `date_created' for new terms */\r\n\t/* 23 apr 2008: subtract 61 second */\r\n\t$qT['date_created'] = isset($arPre['date_created']) ? $arPre['date_created'] : $sys['time_now_gmt_unix'];\r\n\t$qT['date_modified'] = $sys['time_now_gmt_unix'] - 61;\r\n\t$qT['date_created'] -= 61;\r\n\t/* 21 jul 2003: Better protection by adding random Next ID number */\r\n\t$arTermParam['tid'] = $qT['id'] = ($qT['id'] == '') ? mt_rand($id_w, ($sys['leech_factor'] * 2) + $id_w) : $qT['id'];\r\n\t$qT['term'] = $str_term_src;\r\n\t/* 15 sep 2007: Term URI */\r\n\t/* 08 apr 2008: Make link to added term */\r\n\t/* 11 apr 2008: Better URI */\r\n\t/* 23 apr 2008: Even better URI. Added transliteration. */\r\n\t$qT['term_uri'] = $oDom->get_attribute('uri', 'term', $arPre['term'] );\r\n\t$qT['term_uri'] = ($qT['term_uri'] == '') ? $qT['id'].'-'.$oCase->translit( $oCase->lc($str_term_filtered)) : $qT['term_uri'];\r\n\t$qT['term_uri'] = $oCase->rm_entity($qT['term_uri']);\r\n\t$qT['term_uri'] = preg_replace('/[^0-9A-Za-z_-]/', '-', $qT['term_uri']);\r\n\t$qT['term_uri'] = preg_replace('/-{2,}/', '-', $qT['term_uri']);\r\n\tif ($qT['term_uri'] == '-')\r\n\t{\r\n\t\t$qT['term_uri'] = $qT['id'].'-';\r\n\t}\r\n\t$arTermParam['term_uri'] = $qT['term_uri'];\r\n\r\n\t$qT['defn'] =& $arPre['parameters']['xml'];\r\n\t/* Alphabetic orders 1,2,3 */\r\n\t$qT['term_1'] = $oDom->get_attribute('t1', 'term', $arPre['term'] );\r\n\t$qT['term_2'] = $oDom->get_attribute('t2', 'term', $arPre['term'] );\r\n\t$qT['term_3'] = $oDom->get_attribute('t3', 'term', $arPre['term'] );\r\n\t/* -- Custom Alphabetic Toolbar -- */\r\n\t/* Select custom rules for uppercasing */\r\n\t$sql = 'SELECT az_value, az_value_lc FROM `'.$sys['tbl_prefix'].'custom_az` WHERE `id_profile` = \"'.$arDictParam['id_custom_az'].'\"';\r\n\t$arSqlAz = $oDb->sqlRun($sql, 'st');\r\n\tfor (; list($arK, $arV) = each($arSqlAz);)\r\n\t{\r\n\t\t$str_term_src = str_replace($arV['az_value_lc'], $arV['az_value'], $str_term_src);\r\n\t}\r\n\t/* Unicode uppercase */\r\n\t$str_term_src_uc = $oCase->uc( $str_term_src );\r\n\t/* 1.8.7: Custom sorting order */\r\n\t$qT['term_order'] = $oDom->get_attribute('term_order', 'term', $arPre['term'] );\r\n\t$qT['term_order'] = ($qT['term_order'] == '') ? $str_term_src_uc : $qT['term_order'];\r\n\t$qT['term_a'] = $qT['term_b'] = $qT['term_c'] = $qT['term_d'] = $qT['term_e'] = $qT['term_f'] = 0;\r\n\t/* Prepare A, AAZZ, AAAZZZ */\r\n\t$qT['term_3'] = ($qT['term_3'] == '') ? $oFunc->mb_substr($str_term_filtered, 2, 1, $sys['internal_encoding']) : $qT['term_3'];\r\n\t$qT['term_2'] = ($qT['term_2'] == '') ? $oFunc->mb_substr($str_term_filtered, 1, 1, $sys['internal_encoding']) : $qT['term_2'];\r\n\t$qT['term_1'] = ($qT['term_1'] == '') ? $oFunc->mb_substr($str_term_filtered, 0, 1, $sys['internal_encoding']) : $qT['term_1'];\r\n\t/* */\r\n\t$ar_field_names = array('a','b','c','d','e','f');\r\n\tpreg_match_all(\"/./u\", $qT['term_order'], $ar_letters);\r\n\tfor (; list($cnt_letter, $letter) = each($ar_letters[0]);)\r\n\t{\r\n\t\tif (isset($ar_field_names[$cnt_letter]))\r\n\t\t{\r\n\t\t\t$qT['term_'.$ar_field_names[$cnt_letter]] = text_str2ord($letter);\r\n\t\t}\r\n\t}\r\n\t/* Fix htmlspecial characters */\r\n\t$qT['term_3'] = gw_htmlspecialamp(gw_unhtmlspecialamp($qT['term_3']));\r\n\t$qT['term_2'] = gw_htmlspecialamp(gw_unhtmlspecialamp($qT['term_2']));\r\n\t$qT['term_1'] = gw_htmlspecialamp(gw_unhtmlspecialamp($qT['term_1']));\r\n\t/* */\r\n\t$qT['is_active'] = $oDom->get_attribute('is_active', 'term', $arPre['term']);\r\n\t$qT['is_complete'] = $oDom->get_attribute('is_complete', 'term', $arPre['term']);\r\n#prn_r($qT, __LINE__.__FILE__);\r\n#exit;\r\n\tif ($isDelete || $isTermExist)\r\n\t{\r\n\t\t/* Assign Term ID from previously added term */\r\n\t\t$arTermParam['tid'] = $id_old;\r\n\t\tif ($is_overwrite)\r\n\t\t{\r\n\t\t\t$qT['id'] = $id_old;\r\n\t\t\t$isCleanMap = 1;\r\n\t\t\t$isTermExist = 0;\r\n#\t\t\t$queryA[] = $oSqlQ->getQ('del-term_id', $arDictParam['tablename'], $id_old, $id_dict);\r\n\t\t}\r\n\t}\r\n\tif (!$isDelete && $isTermExist)\r\n\t{\r\n\t\t/* Term already exists */\r\n\t\t$ar_matched_terms = array();\r\n\t\tfor (reset($arSql); list($arK, $arV) = each($arSql);)\r\n\t\t{\r\n\t\t\t$ar_matched_terms[] = $oHtml->a($sys['page_admin'].'?'.GW_ACTION.'='.GW_A_EDIT.'&'.GW_TARGET.'='.GW_T_TERMS.'&id='.$id_dict.'&tid=' . $arV['id'],\r\n\t\t\t\t\t\t $arV['term'], '', '', $oL->m('3_edit'));\r\n\t\t}\r\n\t\t$str_line = implode(' | ', $ar_matched_terms);\r\n\t\t$queryA = '<dl style=\"margin:0\">';\r\n\t\t$queryA .= '<dt class=\"xu red\">'.$oL->m('reason_25').' - <strong>'. $str_term_src . '</strong></dt>';\r\n\t\t$queryA .= '<dd class=\"termpreview\">' .$str_line. '</dd>';\r\n\t\t$queryA .= '</dl>';\r\n\t\t$isQ = 0;\r\n\t}\r\n\t/* Allow query */\r\n\tif ($isQ)\r\n\t{\r\n\t\t/* Prepare keywords per field */\r\n#\t\t$ot = new gw_timer('addterm');\r\n\t\tfor (reset($arFields); list($fK, $fV) = each($arFields);)\r\n\t\t{\r\n\t\t\t// Init\r\n\t\t\t$arKeywords[$fK] = array();\r\n\t\t\t//\r\n#\t\t\t$int_min_length = (isset($fV[2]) && ($fV[2] != 'auto') && ($fV[2] != '')) ? $fV[2] : $arDictParam['min_srch_length'];\r\n#\t\t\t$int_min_length = (!isset($fV[2]) || ($fV[2] == 'auto') ) ? $int_min_length : $fV[2];\r\n\t\t\t//\r\n\t\t\t// Make keywords from array\r\n\t\t\t// space is required, otherwise `...word</defn><defn>word...' will become `wordword'\r\n\t\t\t$tmpStr = '';\r\n\t\t\tif (isset($arPre[$fV[0]]))\r\n\t\t\t{\r\n\t\t\t\t$tmpStr = $oDom->get_content( $arPre[$fV[0]] );\r\n\t\t\t}\r\n\t\t\tif ($tmpStr != '') // do not parse empty strings\r\n\t\t\t{\r\n\t\t\t\t// Get maximum search length per field\r\n\t\t\t\t$int_min_length = $fV[2];\r\n\t\t\t\tif ( is_string($int_min_length) )\r\n\t\t\t\t{\r\n\t\t\t\t\t$int_min_length = $arDictParam['min_srch_length'];\r\n\t\t\t\t}\r\n#\t\t\t\t$isStrip = ($srchLength == 1) ? 0 : 1;\r\n# prn_r( text_normalize( $tmpStr ) . ' ' . $fV[0] . '; len=' . $int_min_length);\r\n\t\t\t\t/* Fix wildcars, 1.6.1 */\r\n\t\t\t\t$tmpStr = str_replace('<![CDATA[', '', $tmpStr);\r\n\t\t\t\t$tmpStr = str_replace(']]>', '', $tmpStr);\r\n\t\t\t\t$tmpStr = gw_text_wildcars($tmpStr);\r\n\t\t\t\t/* */\r\n#\t\t\t\tprn_r( $fV );\r\n\t\t\t\t$arKeywords[$fK] = text2keywords( gw_text_sql(text_normalize($tmpStr)), $int_min_length, 25, $sys['internal_encoding'] );\r\n\t\t\t\t/* Remove stopwords from parsed strings only (others are empty) */\r\n\t\t\t\t$arKeywords[$fK] = gw_array_exclude( $arKeywords[$fK], $arStop);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/* keywords convertion time */\r\n#\t\tprn_r( $arKeywords );\r\n#\t\tprint $ot->endp(__LINE__, __FILE__);\r\n#\t\texit;\r\n\t\t/* Remove double keywords from definition */\r\n\t\tfor (reset($arFields); list($fK, $fV) = each($arFields);)\r\n\t\t{\r\n\t\t\tif ($fK != 0)\r\n\t\t\t{\r\n\t\t\t\t$arKeywords[0] = gw_array_exclude( $arKeywords[0], $arKeywords[$fK]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/** Keywords were prepared */\r\n\t\t/** Add keywords to database! */\r\n# prn_r($arStop);\r\n# prn_r($arKeywords);\r\n# prn_r($arPre);\r\n\t\tgwAddNewKeywords($id_dict, $qT['id'], $arKeywords, $id_old, $isCleanMap, $qT['date_created']);\r\n\t\t$qT['int_bytes'] = strlen($qT['defn']);\r\n\t\t/* Checksum */\r\n\t\t$qT['crc32u'] = crc32($str_term_src_uc);\r\n\t\t/* Add User ID to term */\r\n\t\tif ($gw_this['vars'][GW_ACTION] == GW_A_ADD)\r\n\t\t{\r\n\t\t\t$qT['id_user'] = $oSess->id_user;\r\n\t\t}\r\n\t\t/* Add relation `user to term' */\r\n\t\t$q2['user_id'] = $oSess->id_user;\r\n\t\t$q2['term_id'] = $qT['id'];\r\n\t\t$q2['dict_id'] = $id_dict;\r\n\t\t// -------------------------------------------------\r\n\t\t// Turn on text parsers\r\n\t\t// -------------------------------------------------\r\n\t\t// Process automatic functions\r\n\t\tfor (; list($k, $v) = each($gw_this['vars']['funcnames'][GW_A_UPDATE . GW_T_TERM]);)\r\n\t\t{\r\n\t\t\tif (function_exists($v))\r\n\t\t\t{\r\n\t\t\t\t$v();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* REPLACE or UPDATE */\r\n\t\tif ($isDelete || $isTermExist)\r\n\t\t{\r\n\t\t\tif ($is_overwrite)\r\n\t\t\t{\r\n\t\t\t\tunset($qT['id']);\r\n\t\t\t\t$queryA[] = gw_sql_update($qT, $arDictParam['tablename'], 'id = \"'.$id_old.'\"');\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$id_old = $qT['id'];\r\n\t\t\t$queryA[] = gw_sql_insert($qT, $arDictParam['tablename'], 1);\r\n\t\t}\r\n\r\n\t\t/* 23 Nov 2007: history of changes */\r\n\t\t$qT['id_term'] = $id_old;\r\n\t\t$qT['id_dict'] = $arDictParam['id'];\r\n\t\t$qT['id_user'] = $oSess->id_user;\r\n\t\t$qT['keywords'] = serialize($arKeywords);\r\n\t\tunset($qT['id']);\r\n\t\t\r\n\t\t$queryA[] = gw_sql_insert($qT, $sys['tbl_prefix'].'history_terms', 1);\r\n\t\t/* Assign edited term to user */\r\n\t\t$queryA[] = gw_sql_replace($q2, TBL_MAP_USER_TERM, 1);\r\n\t\t/* Check table to keep indexes */\r\n\t\t$arQuery[] = 'CHECK TABLE `'.$arDictParam['tablename'].'`';\r\n\t} /* is_query allowed */\r\n\treturn $queryA;\r\n}", "public static function resolve_term_object($id, \\WPGraphQL\\AppContext $context)\n {\n }", "function custom_has_term($slug) {\n global $post;\n $tax = get_the_taxonomies( $post );\n foreach ($tax as $key => $value) {\n $terms = wp_get_post_terms( $post->ID, $key );\n foreach( $terms as $term ) {\n if( $term->slug == $slug ) {\n return true;\n }\n }\n }\n return false;\n}", "protected function getTermForSingleResource($fpostId) {\n return new Zend_Search_Lucene_Index_Term('fpost_' . $fpostId, 'pk');\n }", "function get_term_taxonomy_meta ($term_id, $taxonomy, $meta_key, $single = false)\n{\n return TTMetaPlugin::get_term_taxonomy_meta( $term_id, $taxonomy, $meta_key, $single );\n}", "function wp_get_split_terms($old_term_id)\n {\n }", "function get_term_title($wraptag){\n global $wp_query;\n $currentterm = $wp_query->queried_object;\n\n $html = array();\n $html[] = sprintf('<%s class=\"termtitle\">',$wraptag);\n if($currentterm->taxonomy == \"post_tag\"){\n // Case: Tags\n\n // HTML text\n $html[] = sprintf(\"<span>%s</span>\",$currentterm->name);\n }else{\n // Case: Taxonomy\n\n // HTML text\n // $html[] = sprintf(\"<span>%s</span>\",$currentterm->name);\n\n // Use image file which named \"slug.png\" instead of HTML text.\n $html[] = sprintf('<img src=\"%s/images/taxonomy/%s.png\" alt=\"%s\">',\n get_template_directory_uri(),\n $currentterm->slug,\n $currentterm->name\n );\n\n }\n $html[] = sprintf('</%s>',$wraptag);\n return implode(\"\\n\", $html);\n}", "function check_term($term, $tax) {\n\t$term_link = get_term_link( $term, $tax );\n \n // If there was an error, insert term.\n if ( is_wp_error( $term_link ) ) {\n\t\twp_insert_term($term, $tax);\n\t}\n}", "function testTermExistsExpectsStringUsed() {\n\t\t// Arrange\n\t\tglobal $post;\n\t\t$form = new TestNumberField();\n\t\t$form->fields['field_one']['type'] = 'taxonomyselect';\n\t\t$form->fields['field_one']['taxonomy'] = 'category';\n\t\t$form->fields['field_one']['multiple'] = false;\n\t\t$_POST = array( 'field_one' => 'term' );\n\t\t$existing = new \\StdClass;\n\t\t$existing->name = 'Sluggo';\n\t\t\\WP_Mock::wpFunction('sanitize_text_field', array('times' => 1));\n\t\t\\WP_Mock::wpFunction(\n\t\t\t'get_term_by', \n\t\t\tarray('times' => 1, 'return' => $existing));\n\t\t\\WP_Mock::wpFunction('wp_set_object_terms', array( 'times' => 1 ) );\n\n\t\t// act\n\t\t$form->validate_taxonomyselect(1, $form->fields['field_one'], 'field_one');\n\n\t\t// Assert: test will fail if wp_set_object_terms, get_term_by or\n\t\t// sanitize_text_field do not fire or fire more than once\n\t}", "function get_the_show_term( $post_id ) {\n $terms = wp_get_object_terms($post_id, 'shows');\n if ( !is_wp_error($terms) && isset($terms[0]) ) {\n return $terms[0];\n }\n return false;\n}", "function kwight_term_id_by_slug( $slug, $tax = 'category' ) {\r\n\r\n\t$term = get_term_by( 'slug', $slug, $tax );\r\n\t$id = ( $term ) ? $term->term_id : false;\r\n\r\n\treturn intval( $id );\r\n\r\n}", "function slug_get_ksprfs_mod( $object, $field_name, $request ) {\n\t$tax = array();\n\t$obj_id = $object['id'];\n\t$tax['engine_mod'] = wp_get_post_terms( $obj_id, 'engine_mod' );\n\treturn $tax;\n}", "function __get( $var_name ){\n\t\tif( $var_name == 'categories' ){\n\t\t\treturn $this->terms;\n\t\t}\n\t\treturn null;\n\t}", "function katayam_get_terms($postID,$term){\r\n\t$terms_list= wp_get_post_terms($postID,$term);\r\n\t$output='';\r\n\t\t\t\t\t$i=0;\r\n foreach($terms_list as $term){$i++;\r\n\t\t\t\t\t if($i>1){$output.=',';}\r\n\t $output.='<a href=\"'.get_term_link($term).'\">'.$term->name.'</a>';\r\n }\r\n\t\t\t\t\t\t\t return $output;\r\n}", "public function booleanAndTerm($term){\n\t\t$term = preg_replace(\"/[^ a-zA-Z0-9]/\", '', $term);\n\t\t\n\t\t$term = mysql_real_escape_string(trim($term));\n\t\t$terms = explode(' ', $term);\n\t\t$return = '';\n\t\tforeach($terms as $word){\n\t\t\tif(strlen($word)>2){\n\t\t\t\t// if has a plural then try without\n\t\t\t\tif(substr($word,-1) == 's'){\n\t\t\t\t\t$return .= '+(>' . $word. ' <' . substr($word,0,-1) . '*) ';\n\t\t\t\t}else{\n\t\t\t\t// if singular then try with an s\n\t\t\t\t\t$return .= '+(>' . $word . ' <' . $word . 's) ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//echo $return;\n\t\t//echo ' --> ';\n\t\treturn $return;\n\t}", "function am2_vanity_add_taxonomy_fields( $term ) { //check for existing featured ID\n $t_id = $term->term_id;\n $vanity_urls = get_option('am2_vanity_urls');\n\t$value = '';\n\tif(!empty($vanity_urls[$_REQUEST['taxonomy'].\"_\".$term->term_id]['url'])){\n\t\t$value = $vanity_urls[$_REQUEST['taxonomy'].\"_\".$term->term_id]['url'];\n\t}\n?>\n<tr class=\"form-field\">\n\t<th scope=\"row\" valign=\"top\"><label for=\"_am2_vanity_url\"><?php _e('Vanity URL'); ?></label></th>\n\t<td>\n \t<?php echo site_url().'/'; ?>\n\t\t<input type=\"hidden\" name=\"_am2_vanity_term_name\" value=\"<?php echo $_REQUEST['taxonomy']; ?>\" />\n <input type=\"text\" name=\"_am2_vanity_url\" id=\"_am2_vanity_url\" placeholder=\"any-url\" size=\"3\" style=\"width:60%;\" value=\"<?php echo $value; ?>\"><br />\n <span class=\"description\"><?php _e('This URL will replace the dafault category URL with new one.'); ?></span>\n </td>\n</tr>\n<?php\n}", "function getTerm($num){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getTerm($num);\r\n }", "public function supportsTermSearch() {\n \treturn $this->manager->supportsTermSearch();\n\t}", "public function show(Term $term)\n {\n //\n }", "public function show(Term $term)\n {\n //\n }" ]
[ "0.7294108", "0.7110127", "0.6706057", "0.6627672", "0.6611581", "0.642718", "0.64134175", "0.639925", "0.63840216", "0.63802445", "0.6377095", "0.6358735", "0.629049", "0.6202907", "0.61719054", "0.6106844", "0.6070696", "0.59959775", "0.599196", "0.5979933", "0.59592736", "0.59513795", "0.59509593", "0.5943522", "0.59335923", "0.591157", "0.59084076", "0.5905157", "0.58779836", "0.5866068", "0.5849265", "0.583811", "0.5819852", "0.5815893", "0.58067375", "0.57896864", "0.57866985", "0.5779644", "0.57714975", "0.57525617", "0.5751897", "0.57422155", "0.5739336", "0.57354873", "0.57312685", "0.57183063", "0.5709371", "0.56988007", "0.5695374", "0.5686798", "0.56801075", "0.56799155", "0.56534386", "0.5651568", "0.56492037", "0.5648224", "0.56383115", "0.56071854", "0.5594656", "0.55911577", "0.5575161", "0.5565388", "0.55626476", "0.5530058", "0.5526759", "0.5525723", "0.55251294", "0.5503549", "0.54974884", "0.5496823", "0.5496485", "0.5490789", "0.5484828", "0.54843897", "0.5480783", "0.54760176", "0.54750925", "0.5474764", "0.54743904", "0.5466473", "0.5460305", "0.54595596", "0.545314", "0.54511994", "0.54270184", "0.5414763", "0.54120034", "0.53939235", "0.5386466", "0.5386286", "0.53850883", "0.5381633", "0.5370633", "0.5367194", "0.535951", "0.5350865", "0.5350091", "0.5345833", "0.5342149", "0.53366506", "0.53366506" ]
0.0
-1
Compatibility wrapper for WordPress taxonomy lookup.
function taxonomy_exists( $taxonomy ) { if ( function_exists( 'taxonomy_exists' ) ) { // 3.0 or later return taxonomy_exists( $taxonomy ); } else { return is_taxonomy( $taxonomy ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function taxonomy();", "function get_taxonomy($taxonomy)\n {\n }", "function acf_get_term($term_id, $taxonomy = '')\n{\n}", "public function get_taxonomy(){\r\n\t\t$this->tax_obj = get_taxonomy( $this->taxonomy );\r\n\t}", "function jr_get_custom_taxonomy($post_id, $tax_name, $tax_class) {\r\n $tax_array = get_terms( $tax_name, array( 'hide_empty' => '0' ) );\r\n if ($tax_array && sizeof($tax_array) > 0) {\r\n foreach ($tax_array as $tax_val) {\r\n if ( is_object_in_term( $post_id, $tax_name, array( $tax_val->term_id ) ) ) {\r\n echo '<span class=\"'.$tax_class . ' '. $tax_val->slug.'\">'.$tax_val->name.'</span>';\r\n break;\r\n }\r\n }\r\n }\r\n}", "private function get_taxonomy() {\n\t\treturn filter_input( INPUT_GET, 'taxonomy', FILTER_DEFAULT, array( 'options' => array( 'default' => '' ) ) );\n\t}", "function acf_get_taxonomy_terms($taxonomies = array())\n{\n}", "public function getTaxonomyTerms();", "function _get_term_hierarchy($taxonomy)\n {\n }", "function get_terms($value, $taxonomy = 'category')\n {\n }", "function rest_get_route_for_taxonomy_items($taxonomy)\n {\n }", "public function taxonomyName($taxonomy = null);", "function entity_translation_taxonomy_term_autocomplete($langcode = NULL, $field_name = '', $tags_typed = '') {\n // If the request has a '/' in the search text, then the menu system will have\n // split it into multiple arguments, recover the intended $tags_typed.\n $args = func_get_args();\n // Shift off the $langcode and $field_name arguments.\n array_shift($args);\n array_shift($args);\n $tags_typed = implode('/', $args);\n\n // Make sure the field exists and is a taxonomy field.\n if (!($field = field_info_field($field_name)) || $field['type'] !== 'taxonomy_term_reference') {\n // Error string. The JavaScript handler will realize this is not JSON and\n // will display it as debugging information.\n print t('Taxonomy field @field_name not found.', array('@field_name' => $field_name));\n exit;\n }\n\n // The user enters a comma-separated list of tags. We only autocomplete the\n // last tag.\n $tags_typed = drupal_explode_tags($tags_typed);\n $tag_last = drupal_strtolower(array_pop($tags_typed));\n\n $term_matches = array();\n if ($tag_last != '') {\n if (!isset($langcode) || $langcode == LANGUAGE_NONE) {\n $langcode = $GLOBALS['language_content']->language;\n }\n\n // Part of the criteria for the query come from the field's own settings.\n $vocabulary = _entity_translation_taxonomy_reference_get_vocabulary($field);\n\n $entity_type = 'taxonomy_term';\n $query = new EntityFieldQuery();\n $query->addTag('taxonomy_term_access');\n $query->entityCondition('entity_type', $entity_type);\n\n // If the Title module is enabled and the taxonomy term name is replaced for\n // the current bundle, we can look for translated names, otherwise we fall\n // back to the regular name property.\n if (module_invoke('title', 'field_replacement_enabled', $entity_type, $vocabulary->machine_name, 'name')) {\n $name_field = 'name_field';\n $language_group = 0;\n // Do not select already entered terms.\n $column = 'value';\n if (!empty($tags_typed)) {\n $query->fieldCondition($name_field, $column, $tags_typed, 'NOT IN', NULL, $language_group);\n }\n $query->fieldCondition($name_field, $column, $tag_last, 'CONTAINS', NULL, $language_group);\n $query->fieldLanguageCondition($name_field, array($langcode, LANGUAGE_NONE), NULL, NULL, $language_group);\n }\n else {\n $name_field = 'name';\n // Do not select already entered terms.\n if (!empty($tags_typed)) {\n $query->propertyCondition($name_field, $tags_typed, 'NOT IN');\n }\n $query->propertyCondition($name_field, $tag_last, 'CONTAINS');\n }\n\n // Select rows that match by term name.\n $query->propertyCondition('vid', $vocabulary->vid);\n $query->range(0, 10);\n $result = $query->execute();\n\n // Populate the results array.\n $prefix = count($tags_typed) ? drupal_implode_tags($tags_typed) . ', ' : '';\n $terms = !empty($result[$entity_type]) ? taxonomy_term_load_multiple(array_keys($result[$entity_type])) : array();\n foreach ($terms as $tid => $term) {\n $name = _entity_translation_taxonomy_label($term, $langcode);\n $n = $name;\n // Term names containing commas or quotes must be wrapped in quotes.\n if (strpos($name, ',') !== FALSE || strpos($name, '\"') !== FALSE) {\n $n = '\"' . str_replace('\"', '\"\"', $name) . '\"';\n }\n $term_matches[$prefix . $n] = check_plain($name);\n }\n }\n\n drupal_json_output($term_matches);\n}", "function get_primaryTermName($taxonomy,$id) {\n $primary_term = new WPSEO_Primary_Term($taxonomy,$id); \n $term = get_term_by('id',$primary_term->get_primary_term(),$taxonomy);\n return $term->name; \n}", "function get_taxonomies($args = array(), $output = 'names', $operator = 'and')\n {\n }", "function acf_get_taxonomy_labels($taxonomies = array())\n{\n}", "function is_taxonomy($taxonomy)\n {\n }", "function custom_taxonomy_wie_init() {\n //custom taxonmy\n register_taxonomy(\n 'webdevelopment',\n 'post',\n array(\n 'hierarchical' => true,\n 'label' => 'Web Development Types',\n 'query_var' => true\n )\n );\n}", "public function getTaxonomyTerm($id, $taxonomy);", "function acf_get_taxonomies($args = array())\n{\n}", "function mds_custom_taxonomy() {\n $args = array(\n\n /**\n * Include a description of the taxonomy.\n */\n 'description' => '', // string (default is NONE)\n\n /**\n * A plural descriptive name for the taxonomy marked for translation.\n * Default: overridden by $labels->name\n */\n 'label' => __( 'Custom Taxonomies' ), // string (default overridden by $labels->name).\n\n /**\n * Labels used when displaying the taxonomy in the admin and sometimes on the front end.\n */\n 'labels' => array(\n 'name'\t\t\t\t => __( 'Custom Taxonomies' ),\n 'singular_name'\t\t\t => __( 'Custom Taxonomy' ),\n 'menu_name'\t\t\t => __( 'Custom Taxonomy'),\n 'all_items'\t\t\t => __( 'All Custom Taxonomies' ),\n 'view_item' => __( 'View Custom Taxonomy' ),\n 'edit_item'\t\t\t => __( 'Edit Custom Taxonomy' ),\n 'update_item'\t\t\t => __( 'Update Custom Taxonomy'),\n 'add_new_item'\t\t\t => __( 'Add New Custom Taxonomy'),\n 'new_item_name'\t\t\t => __( 'New Single Custom Taxonomy'),\n 'parent_item'\t\t\t => __( 'Parent Custom Taxonomy' ),\n 'parent_item_colon'\t\t => __( 'Parent Custom Taxonomy' ),\n 'search_items'\t\t\t => __( 'Search Custom Taxonomy' ),\n 'popular_items'\t\t\t => __( 'Popular Custom Taxonomy' ),\n 'separate_items_with_commas' => __( 'Separate Custom Taxonomy with commas' ),\n 'add_or_remove_items'\t => __( 'Add or remove Custom Taxonomy'),\n 'choose_from_most_used'\t => __( 'Choose from most used Custom Taxonomy'),\n 'not_found' => __( 'No Custom Taxonomy found.' )\n ),\n\n /**\n * If the taxonomy should be publicly queryable. This\n * argument is sort of a catchall for many of the following arguments.\n */\n 'public' => true, // bool (default is TRUE)\n\n /**\n * Whether to generate a default UI for managing this taxonomy.\n */\n 'show_ui' => true, // bool (defaults to 'public').\n\n /**\n * Whether taxonomy items are available for selection in navigation menus.\n */\n 'show_in_nav_menus' => true, // bool (defaults to 'public').\n\n /**\n * Whether to allow the Tag Cloud widget to use this taxonomy.\n */\n 'show_tagcloud' => false,// bool (defaults to 'show_ui').\n\n /**\n * Whether to show the taxonomy in the quick/bulk edit panel.\n */\n 'show_in_quick_edit' => true, // bool (defaults to 'show_ui').\n\n /**\n * Whether to allow automatic creation of taxonomy columns on associated post-types table.\n */\n 'show_admin_column' => false,// bool (default is FALSE)\n\n /**\n * Provide a callback function name for the meta box display.\n * No meta box is shown if set to false\n */\n 'meta_box_cb' => null, //callback function (default is NULL)\n\n /**\n * Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags.\n */\n 'hierarchical' => false,// bool (default is FALSE)\n\n /**\n * A function name that will be called when the count of an associated $object_type, such as post, is updated.\n * Works much like a hook.\n */\n\n 'update_count_callback' => '', //string (default is NONE)\n\n /**\n * Sets the query_var key for this taxonomy. If set to TRUE, the post type name will be used.\n * You can also set this to a custom string to control the exact key.\n */\n 'query_var' => 'custom-taxonomy', // bool|string (defaults to TRUE - post type name)\n\n\n /**\n * How the URL structure should be handled with this post type. You can set this to an\n * array of specific arguments or true|false. If set to FALSE, it will prevent rewrite\n * rules from being created.\n */\n 'rewrite' => array(\n\n /* The slug to use for individual posts of this type. */\n 'slug' => 'custom-post-type', // string (defaults to taxonomy's name slug)\n\n /* Allowing permalinks to be prepended with front base*/\n 'with_front' => false, // bool (defaults to TRUE)\n\n /* true or false allow hierarchical urls*/\n 'hierarchical' => false, // bool (defaults to FALSE)\n\n /* Assign an endpoint mask to this permalink. */\n 'ep_mask' => EP_PERMALINK, // const (defaults to EP_NONE)\n ),\n\n /**\n * Provides more precise control over the capabilities than the defaults. By default, WordPress\n * will use the 'capability_type' argument to build these capabilities. More often than not,\n * this results in many extra capabilities that you probably don't need.\n */\n 'capabilities' => array( ),\n\n /**\n * Whether this taxonomy should remember the order in which terms are added to objects.\n */\n 'sort' => false, // bool (default is NONE)\n );\n\n /**\n * Set up the arguments for the post type where taxonomy will be displayed.\n * Can be a custom post type or any of the registered post types: post, page, attachment, revision, nav_menu_item\n */\n $args_post_type = array(\n 'custom-post-type'\n );\n\n register_taxonomy(\n 'custom-taxonomy', //Taxonomy name. Max of 32 characters. Uppercase and spaces not allowed.\n $args_post_type, //Name of the post type for the taxonomy,\n $args\n );\n\n}", "function get_term_by($field, $value, $taxonomy = '', $output = \\OBJECT, $filter = 'raw')\n {\n }", "function get_term_taxonomy_meta ($term_id, $taxonomy, $meta_key, $single = false)\n{\n return TTMetaPlugin::get_term_taxonomy_meta( $term_id, $taxonomy, $meta_key, $single );\n}", "public function getTaxonomy()\n {\n return $this->taxonomy;\n }", "function _wp_filter_taxonomy_base($base)\n {\n }", "function entity_translation_taxonomy_term_tab_access() {\n $args = func_get_args();\n $term = array_shift($args);\n if (entity_translation_enabled('taxonomy_term', $term)) {\n return entity_translation_tab_access('taxonomy_term', $term);\n }\n else {\n $function = array_shift($args);\n return $function ? call_user_func_array($function, $args) : FALSE;\n }\n}", "function get_taxonomy_rewrite_tags( $taxonomies = null, $post_link = '' )\n{\n $post = null;\n\n if ( null === $taxonomies ) {\n $taxonomies = get_taxonomies();\n } elseif ( $taxonomies instanceof WP_Post ) {\n $post = $taxonomies;\n $taxonomies = get_object_taxonomies( $post->post_type );\n } elseif ( ! is_array( $taxonomies ) ) {\n $taxonomies = [];\n }\n\n $tags = [];\n foreach ( $taxonomies as $taxonomy ) {\n $tax = \"%{$taxonomy}%\";\n $term = '';\n\n $taxonomy_object = get_taxonomy( $taxonomy );\n if ( strpos($post_link, $tax) !== false ) {\n $terms = get_the_terms( $post->ID, $taxonomy );\n\n if ( $terms ) {\n usort($terms, '_usort_terms_by_ID');\n $term = $terms[0]->slug;\n if ( $taxonomy_object->hierarchical && $parent = $terms[0]->parent ) {\n $term = get_term_parents($parent, $taxonomy, false, '/', true) . $term;\n }\n }\n\n /** Show default category in permalinks, without having to assign it explicitly */\n if ( empty( $term ) && $taxonomy === 'category' ) {\n $default_category = get_category( get_option( 'default_category' ) );\n $term = ( is_wp_error( $default_category ) ? '' : $default_category->slug );\n }\n }\n\n $tags[$tax] = $term;\n }\n\n /**\n * Filter taxonomy rewrite tags.\n *\n * @param array $tags The rewrite tags.\n * @param string $post_link A post permalink to resolve from.\n */\n $tags = apply_filters( 'rewrite_tags/taxonomy', $tags, $post_link );\n\n if ( $post instanceof WP_Post ) {\n $post_type = $post->post_type;\n\n /**\n * Filter taxonomy rewrite tags for a specific post type.\n *\n * @param array $tags The rewrite tags.\n * @param string $post_link A post permalink to resolve from.\n * @param WP_Post $post The post to resolve from.\n */\n $tags = apply_filters( \"rewrite_tags_for_{$post_type}/taxonomy\", $tags, $post_link, $post );\n }\n\n return $tags;\n}", "function rew_genreic_taxonomy(){\n\n\t$args= array(\n\t\t'label'=>'Services'\n\t\t);\n\tregister_taxonomy( 'services', array('apartment', 'villa', 'land', 'store'), $args );\n}", "function acf_upgrade_550_taxonomy($taxonomy)\n{\n}", "function five_register_taxonomy($taxonomy, $singular, $plural, $object_type = ['post'], $args = [])\n{\n //first do the translations part for GUI\n\n $labels = [\n 'name' => _x($plural, 'five'),\n 'singular_name' => _x($singular, 'five'),\n 'search_items' => __('Search '.$plural),\n 'all_items' => __('All '.$plural),\n 'parent_item' => __('Parent '.$singular),\n 'parent_item_colon' => __('Parent '.$singular.':'),\n 'edit_item' => __('Edit '.$singular),\n 'update_item' => __('Update '.$singular),\n 'add_new_item' => __('Add New '.$singular),\n 'new_item_name' => __('New '.$singular.' Name'),\n 'menu_name' => __($plural),\n ];\n\n // Now register the taxonomy\n $args = array_merge([\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_in_rest' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => ['slug' => $taxonomy],\n ], $args);\n\n register_taxonomy($taxonomy, $object_type, $args);\n}", "function dd_in_tax($tax, $term, $_post = NULL) {\n // if neither tax nor term are specified, return false\n if ( !$tax || !$term ) { return FALSE; }\n // if post parameter is given, get it, otherwise use $GLOBALS to get post\n if ( $_post ) {\n $_post = get_post( $_post );\n } else {\n $_post =& $GLOBALS['post'];\n }\n // if no post return false\n if ( !$_post ) { return FALSE; }\n // check whether post matches term belongin to tax\n $return = is_object_in_term( $_post->ID, $tax, $term );\n // if error returned, then return false\n if ( is_wp_error( $return ) ) { return FALSE; }\n return $return;\n}", "static function search_terms() {\n\t\tglobal $wpdb;\n\n\t\t$input = filter_input_array( INPUT_POST, array(\n\t\t\t'term' => FILTER_SANITIZE_STRING,\n\t\t\t'taxonomy' => FILTER_SANITIZE_STRING\n\t\t) );\n\n\t\tif( empty( $input['taxonomy'] ) || !taxonomy_exists( $input['taxonomy'] ) ) {\n\t\t\twp_send_json_error();\n\t\t}\n\n\t\t$terms = apply_filters( 'wp_form_pre_search_terms', null );\n\n\t\tif( !isset( $terms ) ) {\n\t\t\t$query_args = array(\n\t\t\t\t'search' => $input['term'],\n\t\t\t\t'hide_empty' => false\n\t\t\t);\n\n\t\t\t$terms = get_terms( $input['taxonomy'], $query_args );\n\t\t}\n\n\t\t$terms = apply_filters( 'wp_form_search_terms', $terms );\n\n\t\twp_send_json_success( $terms );\n\t}", "function create_my_taxonomies()\n{\n register_taxonomy('utilities', 'post', array('hierarchical' => true, 'label' => 'Utilities'));\n}", "function acf_get_terms($args)\n{\n}", "function has_term($term = '', $taxonomy = '', $post = \\null)\n {\n }", "function _post_format_get_term($term)\n {\n }", "function acf_get_term_post_id($taxonomy, $term_id)\n{\n}", "function get_term_link(string $route = 'taxonomy.show', array $params = []): string\n{\n return $route ? route($route, $params) : '#';\n}", "function foucs_show_taxonomy($name_taxonomy, $order_by, $order, $number_term) {\n $args = array(\n 'taxonomy' => $name_taxonomy,\n 'orderby' => $order_by,\n 'order' => $order,\n 'number' => $number_term,\n 'hide_empty' => false,\n );\n $foucs_query = new WP_Term_Query($args);\n ?>\n <ul class=\"all-taxonomy\">\n <?php \n foreach ( $foucs_query->get_terms() as $term ) { ?>\n <li class=\"taxonomy\">\n <a href=\"<?php echo get_term_link( $term ) // Get The Category Link?>\">\n <span class=\"name\">\n <?php echo esc_html($term->name) // Show Category Name?>\n </span>\n </a>\n <span class=\"count-num\"><?php echo esc_html($term->count) // Show Count Post In Category?></span>\n </li>\n <?php\n }?>\n </ul>\n <?php\n}", "function pa_in_taxonomy($tax, $term, $_post = NULL) {\r\n\t// if neither tax nor term are specified, return false\r\n\tif ( !$tax || !$term ) { return FALSE; }\r\n\t// if post parameter is given, get it, otherwise use $GLOBALS to get post\r\n\tif ( $_post ) {\r\n\t\t$_post = get_post( $_post );\r\n\t} else {\r\n\t\t$_post =& $GLOBALS['post'];\r\n\t}\r\n\t// if no post return false\r\n\tif ( !$_post ) { return FALSE; }\r\n\t// check whether post matches term belongin to tax\r\n\t$return = is_object_in_term( $_post->ID, $tax, $term );\r\n\t// if error returned, then return false\r\n\tif ( is_wp_error( $return ) ) { return FALSE; }\r\n\treturn $return;\r\n}", "function register_part_of_speech_taxonomy () {\n\n $labels = array(\n 'name' => _x( 'Part of Speech', 'taxonomy general name' ),\n 'singular_name' => _x( 'Part of Speech', 'taxonomy singular name' ),\n 'search_items' => __( 'Parts of Speech' ),\n 'all_items' => __( 'All Parts of Speech' ),\n 'parent_item' => __( 'Parent Part of Speech' ),\n 'parent_item_colon' => __( 'Parent Part of Speech:' ),\n 'edit_item' => __( 'Edit Part of Speech' ),\n 'update_item' => __( 'Update Part of Speech' ),\n 'add_new_item' => __( 'Add New Part of Speech' ),\n 'new_item_name' => __( 'New Part of Speech Name' ),\n 'menu_name' => __( \"Parts of Speech\"),\n );\n\n register_taxonomy(\n 'sil_parts_of_speech',\n 'post',\n array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => true,\n 'public' => true,\n 'show_ui' => true\n )\n ) ;\n}", "function get_post_taxonomies($post = 0)\n {\n }", "public function get_term()\n {\n }", "public function registerTaxonomy()\n {\n // Get the existing taxonomy options if it exists.\n $options = (taxonomy_exists($this->name)) ? (array) get_taxonomy($this->name) : [];\n\n // create options for the Taxonomy.\n $options = array_replace_recursive($options, $this->createOptions());\n\n // register the Taxonomy with WordPress.\n register_taxonomy($this->name, null, $options);\n }", "function custom_taxonomies() {\n }", "function _post_format_get_terms($terms, $taxonomies, $args)\n {\n }", "function term_taxonomy_handler( $tt_id ) {\n\t\t$this->add_ping( 'db', array( 'term_taxonomy' => $tt_id ) );\n\t}", "function genres_artist_taxonomy() {\n\n $labels = array(\n 'name' => _x( 'Genre Name', 'Taxonomy Genre name', 'text-domain' ),\n 'singular_name' => _x( 'Genres Name', 'Taxonomy Genres name', 'text-domain' ),\n 'search_items' => __( 'Search Genre Name', 'text-domain' ),\n 'popular_items' => __( 'Popular Genre Name', 'text-domain' ),\n 'all_items' => __( 'All Genre Name', 'text-domain' ),\n 'parent_item' => __( 'Parent Genres Name', 'text-domain' ),\n 'parent_item_colon' => __( 'Parent Genres Name', 'text-domain' ),\n 'edit_item' => __( 'Edit Genres Name', 'text-domain' ),\n 'update_item' => __( 'Update Genres Name', 'text-domain' ),\n 'add_new_item' => __( 'Add New Genres Name', 'text-domain' ),\n 'new_item_name' => __( 'New Genres Name Name', 'text-domain' ),\n 'add_or_remove_items' => __( 'Add or remove Genre Name', 'text-domain' ),\n 'choose_from_most_used' => __( 'Choose from most used text-domain', 'text-domain' ),\n 'menu_name' => __( 'Genres Name', 'text-domain' ),\n );\n\n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'show_in_nav_menus' => true,\n 'show_admin_column' => false,\n 'hierarchical' => true,\n 'show_tagcloud' => true,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => true,\n 'query_var' => true,\n 'capabilities' => array(),\n );\n\n register_taxonomy( 'genres_artist', array( 'artist' ), $args );\n}", "public function t($slug, $args = array())\r\n\t{\r\n\t\treturn $this->taxonomy($slug, $args);\r\n\t}", "public function _get_current_taxonomy($instance)\n {\n }", "function get_object_taxonomies($object_type, $output = 'names')\n {\n }", "public function initial_taxonomy() {\n $labels = array(\n 'name' => __( 'Taxonomies', Settings::$text_domain ),\n 'singular_name' => __( 'Taxonomy', Settings::$text_domain ),\n 'menu_name' => __( 'Taxonomies', Settings::$text_domain ),\n 'name_admin_bar' => __( 'Taxonomies', Settings::$text_domain ),\n 'add_new' => __( 'Add New', Settings::$text_domain ),\n 'add_new_item' => __( 'Add New Taxonomy', Settings::$text_domain ),\n 'new_item' => __( 'New Taxonomy', Settings::$text_domain ),\n 'edit_item' => __( 'Edit Taxonomy', Settings::$text_domain ),\n 'view_item' => __( 'View Taxonomy', Settings::$text_domain ),\n 'all_items' => __( 'Taxonomies', Settings::$text_domain ),\n 'search_items' => __( 'Search Taxonomies', Settings::$text_domain ),\n 'parent_item_colon' => __( 'Parent Taxonomies:', Settings::$text_domain ),\n 'not_found' => __( 'No taxonomy found.', Settings::$text_domain ),\n 'not_found_in_trash' => __( 'No taxonomies found in Trash.', Settings::$text_domain )\n );\n\n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => 'tools.php',\n 'show_in_nav_menus' => false,\n 'query_var' => true,\n 'capability_type' => 'post',\n 'has_archive' => false,\n 'hierarchical' => false,\n 'menu_position' => null,\n 'taxonomies' => array( '' ),\n 'menu_icon' => 'dashicons-category',\n 'supports' => array('title')\n );\n\n register_post_type( Settings::$main_taxonomy_name, $args );\n\n $taxonomy_factory = new Taxonomy_Factory();\n $taxonomy_factory->register_all_taxonomies();\n\n //Configura o número de posts por página\n add_action('pre_get_posts', array($taxonomy_factory, 'set_posts_per_page'));\n }", "function get_term_name($slug, $tax){\n $term = get_term_by('slug', $slug, $tax);\n $term_name = array(\n array(\n 'name' => $term->name,\n 'slug' => $term->slug,\n 'link' => esc_url( get_term_link( $term ) ),\n )\n );\n return $term_name;\n}", "function resource_taxonomy() {\n\tregister_taxonomy(\n\t\t'resource-category',\n\t\t'resources',\n\t\tarray(\n\t\t\t'label' => __( 'Categories' ),\n\t\t\t'hierarchical' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'rewrite' => array(\n\t\t\t\t'slug' => 'resources',\n\t\t\t\t'with_front' => false,\n\t\t\t),\n\t\t)\n\t);\n}", "function acf_isset_termmeta($taxonomy = '')\n{\n}", "function my_register_taxonomies() {\r\n\t}", "function _search_terms_tidy($t)\n {\n }", "function get_nodes_directly_mapped_to_term($tid) {\n if (is_array($tid) && !empty($tid)) {\n foreach ($tid as $key => $value) {\n $nids[] = taxonomy_select_nodes($value);\n $flat_nids = multitosingle($nids);\n }\n return $flat_nids;\n }\n else {\n $nid = taxonomy_select_nodes($tid);\n return $nid;\n }\n}", "function acf_decode_taxonomy_terms($strings = \\false)\n{\n}", "public function getTaxonomy()\n {\n return ucwords(\\Present::unslug($this->taxonomy));\n }", "public static function getFromTaxonomy($taxonomy, $slugs = null)\n {\n \\Log::notice('TaxonomyTerms::getFromTaxonomy() is deprecated. Use Term::whereTaxonomy()');\n\n $terms = Term::whereTaxonomy($taxonomy);\n\n if ($slugs) {\n $slugs = Helper::ensureArray($slugs);\n\n $terms = $terms->filter(function ($taxonomy) use ($slugs) {\n return in_array($taxonomy->slug(), $slugs);\n });\n }\n\n return $terms;\n }", "function sanitize_term($term, $taxonomy, $context = 'display')\n {\n }", "public function getTaxonomyReferenceByPath($path);", "private function prepareTaxonomy(){\n $taxonomy = null;\n if ( $this->taxonomy->terms() ){\n foreach($this->taxonomy->terms() as $term){\n $taxonomy[] = array( \n \t'id'=>$term->getID(), \n \t'label'=>$term->label->label \n\t\t\t\t);\n }\n }\n return $taxonomy;\n }", "function acf_decode_taxonomy_term($value)\n{\n}", "function add_wp_taxonomy_to_recipe() {\n\t// Replace post_type with actual CPT slug.\n\tregister_taxonomy_for_object_type( 'category', 'recipe' );\n\tregister_taxonomy_for_object_type( 'post_tag', 'recipe' );\n}", "function register_webstrings_taxonomy () {\n\n $labels = array(\n 'name' => _x( 'Website strings', 'taxonomy general name' ),\n 'singular_name' => _x( 'Website strings', 'taxonomy singular name' ),\n 'search_items' => __( 'Website strings' ),\n 'all_items' => __( 'All Website strings' ),\n 'parent_item' => __( 'Parent Website strings' ),\n 'parent_item_colon' => __( 'Parent Website strings:' ),\n 'edit_item' => __( 'Edit Website strings' ),\n 'update_item' => __( 'Update Website strings' ),\n 'add_new_item' => __( 'Add New Website strings' ),\n 'new_item_name' => __( 'New Website strings Name' ),\n 'menu_name' => __( 'Website strings' ),\n );\n\n register_taxonomy(\n 'sil_webstrings',\n 'post',\n array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => true,\n 'public' => true,\n 'show_ui' => true\n )\n ) ;\n}", "function create_ht_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Habilidad tecnica', 'taxonomy general name' ),\n 'singular_name' => _x( 'Habilidad tecnica', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Genres' ),\n 'all_items' => __( 'Habilidades tecnicas' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Editar habilidad' ), \n 'update_item' => __( 'Actualizar habilidad' ),\n 'add_new_item' => __( 'Nueva habilidad tecnica' ),\n 'new_item_name' => __( 'Nueva habilidad tecnica' ),\n 'menu_name' => __( 'Habilidades tecnicas' ),\n ); \t\n\n register_taxonomy('habilidad-tecnica',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'habilidad-tecnica' ),\n ));\n\n}", "function nt_regsiter_taxonomy() {\n\t$labels = array(\n\t\t'name' => 'Course Note Categories',\n\t\t'singular_name' => 'Course Note Category',\n\t\t'search_items' => 'Search Course Notes Categories',\n\t\t'all_items' => 'All Course Note Categories',\n\t\t'edit_item' => 'Edit Course Note Category',\n\t\t'update_item' => 'Update Course Note Category',\n\t\t'add_new_item' => 'Add New Course Note Category',\n\t\t'new_item_name' => 'New Course Note Category',\n\t\t'menu_name' => 'Course Note Categories'\n\t);\n\t// register taxonomy\n\tregister_taxonomy( 'coursenotecat', 'coursenote', array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'query_var' => true,\n\t\t'show_admin_column' => true\n\t) );\n}", "function is_taxonomy_viewable($taxonomy)\n {\n }", "function get_custom_type_terms($id, $tax) {\n $weekly_types = get_the_terms($id, $tax);\n if ($weekly_types) {\n return $weekly_types[0]->name;\n }\n return false;\n}", "function create_taxonomies($tax,$val) {\n \n\n // register_taxonomy( 'genre', $taxonomies, $args );\n\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( $tax, 'taxonomy general name', 'textdomain' ),\n 'singular_name' => _x( $tax, 'taxonomy singular name', 'textdomain' ),\n 'search_items' => __( 'Search '.$tax, 'textdomain' ),\n 'popular_items' => __( 'Popular '.$tax, 'textdomain' ),\n 'all_items' => __( 'All '.$tax, 'textdomain' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit '.$tax, 'textdomain' ),\n 'update_item' => __( 'Update '.$tax, 'textdomain' ),\n 'add_new_item' => __( 'Add New '.$tax, 'textdomain' ),\n 'new_item_name' => __( 'New '.$tax.' Name', 'textdomain' ),\n 'separate_items_with_commas' => __( 'Separate '.$tax.' with commas', 'textdomain' ),\n 'add_or_remove_items' => __( 'Add or remove '.$tax, 'textdomain' ),\n 'choose_from_most_used' => __( 'Choose from the most used '.$tax, 'textdomain' ),\n 'not_found' => __( 'No '.$tax.' found', 'textdomain' ),\n 'menu_name' => __( $tax, 'textdomain' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => $tax ),\n );\n\n register_taxonomy( $tax, $val, $args );\n}", "function ag_cpt_tax_change() {\n\tif(!isset($_POST['cpt_tax'])) {die('missing data');}\n\t$cpt_tax = $_POST['cpt_tax'];\n\t\n\trequire_once(AG_DIR . '/functions.php');\n\t\n\techo ag_get_taxonomy_terms($cpt_tax);\n\tdie();\n}", "static function register_search_taxonomies(){\n\t\tforeach(self::$taxonomies as $key => $taxonomy){\n\t\t\t$labels = array(\n\t\t\t\t'name' => $taxonomy['p'],\n\t\t\t\t's_name' => $taxonomy['s'],\n\t\t\t\t'search_items' => 'Search ' . $taxonomy['s'],\n\t\t\t\t'all_items' => 'All ' . $taxonomy['p'],\n\t\t\t\t'parent_item' => 'Parent ' . $taxonomy['s'],\n\t\t\t\t'parent_item_colon' => 'Parent ' . $taxonomy['s'],\n\t\t\t\t'edit_item' => 'Edit ' . $taxonomy['s'],\n\t\t\t\t'update_item' => 'Update ' . $taxonomy['s'],\n\t\t\t\t'add_new_item' => 'Add New ' . $taxonomy['s'],\n\t\t\t\t'new_item_name' => 'New ' . $taxonomy['s'],\n\t\t\t\t'menu_name' => $taxonomy['p']\t\t\t\n\t\t\t\n \t\t\t);\n \t\t\t\n \t\t\t$args = array(\n \t\t\t\t'hierarchical' => true,\n\t\t\t 'labels' => $labels,\n\t\t\t 'show_ui' => true,\n\t\t\t 'query_var' => true,\n\t\t\t 'rewrite' => true,\n \t\t\t);\n \t\t\t\n \t\t\tregister_taxonomy($key, array('post', 'page'), $args);\n\t\t}\n\t}", "function emc_taxonomy_title() {\r\n\r\n\tglobal $wp_query;\r\n\t$term = $wp_query->get_queried_object();\r\n\t$title = $term->name;\r\n\r\n\techo esc_html( $title );\r\n\r\n}", "public function is_tax($taxonomy = '', $term = '')\n {\n }", "function register_taxonomies(){\n }", "protected function _queryTaxonomyByName($methodArgs, $queryArgs)\r\n {\r\n if (!$this->_checkQueryArgs($queryArgs, ['name'])) {\r\n return false;\r\n }\r\n\r\n return get_taxonomy($queryArgs['name']);\r\n }", "function ajarRegisterTaxonomy() {\n $args = array(\n 'hierarchical' => true, //con/sin jerarquia\n 'labels' => array(\n 'name' => 'Categorias de Productos',\n 'singular_name' => 'Categoria de Productos',\n ),\n 'show_in_nav_menu' => true,\n 'show_admin_column' => true,\n 'rewrite' => array('slug' => 'categoria-productos')\n );\n register_taxonomy('categoria-productos', array('producto'), $args);\n}", "protected function get_taxonomy_name($label) {\n\t\t\tif(!$options = $this->options) {\n\t\t\t\t$options = $this->pro_class->options;\n\t\t\t}\n\n\t\t\tforeach($options['taxonomies'] as $taxonomy => $value) {\n\t\t\t\tif($value['label'] == $label) {\n\t\t\t\t\treturn $taxonomy;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $label; // if no match found, try to use the label\n\t\t}", "function get_term_taxo_by_key( $meta_key = '' ) {\n\tglobal $wpdb;\n\n\t$key = md5( 'key-' . $meta_key );\n\n\t$result = wp_cache_get( $key, 'term_meta' );\n\tif ( false === $result ) {\n\t\t$result = $wpdb->get_results( $wpdb->prepare( \"SELECT * FROM $wpdb->termmeta WHERE meta_key = %s\", $meta_key ) );\n\t\twp_cache_set( $key, $result, 'term_meta' );\n\t}\n\n\treturn $result;\n}", "function register_taxonomies(){\n }", "protected function get_taxonomies_query_args($taxonomy)\n {\n }", "function sync_category_tag_slugs($term, $taxonomy)\n {\n }", "public function t( $slug, $args = array() ) {\n\t\treturn $this->taxonomy( $slug, $args );\n\t}", "function _alt_term_links_search_apply( $param, $var, $tax_query ) {\n \n if( ! is_array( $tax_query ) ) {\n $tax_query = array();\n }\n \n foreach( $tax_query as $tax ) {\n \n // Already doing search by this taxonomy, skip.\n if( $tax[\"taxonomy\"] == $param[\"taxonomy\"] ) {\n return $tax_query;\n }\n }\n \n $tax_query[] = array(\n 'taxonomy' => $param[\"taxonomy\"],\n 'field' => 'slug',\n 'terms' => $var,\n );\n \n return $tax_query;\n}", "function create_ticket_tax() {\n $labels = array(\n 'name' => _x( 'Genres', 'taxonomy general name', 'textdomain' ),\n 'singular_name' => _x( 'Genre', 'taxonomy singular name', 'textdomain' ),\n 'search_items' => __( 'Search Genres', 'textdomain' ),\n 'all_items' => __( 'All Genres', 'textdomain' ),\n 'parent_item' => __( 'Parent Genre', 'textdomain' ),\n 'parent_item_colon' => __( 'Parent Genre:', 'textdomain' ),\n 'edit_item' => __( 'Edit Genre', 'textdomain' ),\n 'update_item' => __( 'Update Genre', 'textdomain' ),\n 'add_new_item' => __( 'Add New Genre', 'textdomain' ),\n 'new_item_name' => __( 'New Genre Name', 'textdomain' ),\n 'menu_name' => __( 'Genre', 'textdomain' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'genre', 'with_front' => false ),\n 'description' => 'Genre for shows and cast. Parent categories are Sports, Theater, Concerts or Other.',\n );\n\n //register_taxonomy( 'genre', array( 'show', 'cast' ), $args );\n register_taxonomy( 'genre', array( 'show' ), $args );\n\n register_taxonomy_for_object_type( 'genre', 'show' );\n //register_taxonomy_for_object_type( 'genre', 'cast' );\n\n}", "function get_terms( $terms, $taxonomies, $args ){\r\n\r\n\t\t// give users a chance to disable the no term feature\r\n\t\tif( ! apply_filters( 'radio-buttons-for-taxonomies-no-term-' . $this->taxonomy, TRUE ) )\r\n\t\t\treturn $terms;\r\n\r\n\t\tif ( is_admin() && function_exists( 'get_current_screen' ) && ! is_wp_error( $screen = get_current_screen() ) && is_object( $screen ) && in_array( $screen->base, array( 'post', 'edit-post', 'edit' ) ) ) {\r\n\r\n\t\t\tif( in_array( $this->taxonomy, ( array ) $taxonomies ) && ! in_array( 'category', $taxonomies ) ) {\r\n\r\n\t\t\t\t$no_term = sprintf( __( 'No %s', 'radio-buttons-for-taxonomies' ), $this->tax_obj->labels->singular_name );\r\n\r\n\t\t\t\t$uncategorized = (object) array( 'term_id' => '0', 'slug' => '0', 'name' => $no_term, 'parent' => '0' );\r\n\r\n\t\t\t\t$terms['null'] = $uncategorized;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $terms;\r\n\t}", "function register_taxonomy_for_object_type($taxonomy, $object_type)\n {\n }", "public function add_tax_rewrite_rules() {\n\t\tif(get_option('no_taxonomy_structure')) {\n\t\t\treturn false;\n\t\t}\n\n\n\t\tglobal $wp_rewrite;\n\t\t$taxonomies = get_taxonomies(array( '_builtin' => false));\n\t\t$taxonomies['category'] = 'category';\n\n\t\tif(empty($taxonomies)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach ($taxonomies as $taxonomy) :\n\t\t\t$taxonomyObject = get_taxonomy($taxonomy);\n\t\t\t$post_types = $taxonomyObject->object_type;\n\n\t\t\tforeach ($post_types as $post_type):\n\t\t\t\t$post_type_obj = get_post_type_object($post_type);\n\t\t\t\t$slug = $post_type_obj->rewrite['slug'];\n\t\t\t\tif(!$slug) {\n\t\t\t\t\t$slug = $post_type;\n\t\t\t\t}\n\n\t\t\t\tif(is_string($post_type_obj->has_archive)) {\n\t\t\t\t\t$slug = $post_type_obj->has_archive;\n\t\t\t\t};\n\n\t\t\t\tif ( $taxonomy == 'category' ){\n\t\t\t\t\t$taxonomypat = ($cb = get_option('category_base')) ? $cb : $taxonomy;\n\t\t\t\t\t$tax = 'category_name';\n\t\t\t\t} else {\n\t\t\t\t\t// Edit by [Xiphe]\n\t\t\t\t\tif (isset($taxonomyObject->rewrite['slug'])) {\n\t\t\t\t\t\t$taxonomypat = $taxonomyObject->rewrite['slug'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$taxonomypat = $taxonomy;\n\t\t\t\t\t}\n\t\t\t\t\t// [Xiphe] stop\n\n\t\t\t\t\t$tax = $taxonomy;\n\t\t\t\t}\n\n\n\t\t\t\t//add taxonomy slug\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/page/?([0-9]{1,})/?$', 'index.php?'.$tax.'=$matches[1]&paged=$matches[2]', 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$', 'index.php?'.$tax.'=$matches[1]&feed=$matches[2]', 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/(feed|rdf|rss|rss2|atom)/?$', 'index.php?'.$tax.'=$matches[1]&feed=$matches[2]', 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/?$', 'index.php?'.$tax.'=$matches[1]', 'top' ); // modified by [steve] [*** bug fixing]\n\n\t\t\t\t// below rules were added by [steve]\n\t\t\t\tadd_rewrite_rule( $taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&post_type='.$post_type, 'top' );\n\t\t\t\tadd_rewrite_rule( $taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&paged=$matches[4]&post_type='.$post_type, 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&post_type='.$post_type, 'top' );\n\t\t\t\tadd_rewrite_rule( $slug.'/'.$taxonomypat.'/(.+?)/date/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$', 'index.php?'.$tax.'=$matches[1]&year=$matches[2]&monthnum=$matches[3]&paged=$matches[4]&post_type='.$post_type, 'top' );\n\n\t\t\tendforeach;\n\t\tendforeach;\n\t}", "function five_register_my_taxonomies()\n{\n //five_register_taxonomy('custom-taxonomy', 'Custom Taxonomy', 'Custom Taxonomies', ['custom-post-type']);\n}", "function register_taxonomies() {\n\t}", "function register_taxonomies() {\n\t}", "function register_taxonomies() {\n\t}", "public function term_by_query( $args, $assoc_args ) {\n\n\t\t$sites = $args[0] ? explode( ',', $args[0] ) : [];\n\n\t\t$sites = array_filter( $sites, function( $site_id ) {\n\t\t\treturn is_numeric( $site_id );\n\t\t} );\n\n\t\t$method = isset( $assoc_args['method'] ) ? $assoc_args['method'] : 'sync';\n\n\t\tif ( ! $sites ) {\n\t\t\tWP_CLI::error( 'Invalid site ID param' );\n\t\t}\n\n\t\tif ( empty( $assoc_args['taxonomy'] ) ) {\n\t\t\tWP_CLI::error( 'Please define the taxonomy query arg.' );\n\t\t}\n\n\t\t$query_args = wp_parse_args( $assoc_args, [\n\t\t\t'taxonomy' => 'post_tag',\n\t\t\t'offset' => 0,\n\t\t\t'number' => 100,\n\t\t\t'hide_empty' => false,\n\t\t] );\n\n\t\tif ( empty( $assoc_args['force_sync'] ) || 'false' === $assoc_args['force_sync'] ) {\n\t\t\t$assoc_args['force_sync'] = false;\n\t\t}\n\n\t\tif ( isset( $assoc_args['include'] ) ) {\n\t\t\t$query_args['include'] = explode( ',', str_replace( ' ', '', $query_args['include'] ) );\n\t\t}\n\n\t\t$query_args['taxonomy'] = explode( ',', str_replace( ' ', '', $query_args['taxonomy'] ) );\n\n\t\tif ( isset( $query_args['name'] ) ) {\n\t\t\t$query_args['name'] = explode( ',', str_replace( ' ', '', $query_args['name'] ) );\n\t\t}\n\n\t\tif ( isset( $query_args['slug'] ) ) {\n\t\t\t$query_args['slug'] = explode( ',', str_replace( ' ', '', $query_args['slug'] ) );\n\t\t}\n\n\t\t$terms = get_terms( $query_args );\n\n\t\tWP_CLI::line( sprintf( 'Processing %d terms', count( $terms ) ) );\n\n\t\tforeach ( $terms as $key => $term ) {\n\n\t\t\tif ( 0 === ( $key % 20 ) ) {\n\t\t\t\t$this->stop_the_insanity();\n\t\t\t}\n\n\t\t\t$syncable = EA\\Master::get_syncable( $term );\n\n\t\t\tforeach ( $sites as $site ) {\n\n\t\t\t\tif ( ! get_blog_details( [ 'blog_id' => $site ] ) ) {\n\t\t\t\t\tWP_CLI::warning( sprintf( 'Blog %s does not exist' ) );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( $syncable->source_is_detached( $term->term_id, $site ) && ! $assoc_args['force_sync'] ) {\n\t\t\t\t\tWP_CLI::warning( sprintf( 'Syncable %d has been detached on the destination site %d', $term->term_id, $site ) );\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$id = $syncable->sync_to( $site, $method );\n\n\t\t\t\tif ( 'sync' === $method ) {\n\t\t\t\t\t$syncable->set_is_syncable( $site, $term->term_id, true );\n\t\t\t\t}\n\n\t\t\t\tWP_CLI::line( sprintf( 'Synced %s (%d) to site %d, Destination id: %d', $term->taxonomy, $term->term_id, $site, $id ) );\n\t\t\t}\n\t\t}\n\t}", "function realtor_property_status_taxonomy()\n{\n $labels = array(\n 'name' => _x('Property Statuses', 'taxonomy general name', 'realtor'),\n 'singular_name' => _x('Property Status', 'taxonomy singular name', 'realtor'),\n 'search_items' => __('Search Property Statuses', 'realtor'),\n 'popular_items' => __('Popular Property Statuses', 'realtor'),\n 'all_items' => __('All Property Statuses', 'realtor'),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __('Edit Property Status', 'realtor'),\n 'update_item' => __('Update Property Status', 'realtor'),\n 'add_new_item' => __('Add New Property Status', 'realtor'),\n 'new_item_name' => __('New Property Status', 'realtor'),\n 'separate_items_with_commas' => __('Separate Property Statuses with commas', 'realtor'),\n 'add_or_remove_items' => __('Add or remove property statuses', 'realtor'),\n 'choose_from_most_used' => __('Choose from the most used property statuses'),\n 'not_found' => __('No menu property statuses found.'),\n 'menu_name' => __('Property Statuses'),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => __('property-status', 'realtor') ),\n );\n\n register_taxonomy('property_statuses', 'property', $args);\n}", "public function getTermTaxonomyTable(): string\n {\n return $this->wpDatabase->term_taxonomy;\n }", "public function get()\n {\n if (null === $this->taxonomylist) {\n $this->taxonomylist = $this->build(Grav::instance()['taxonomy']->taxonomy());\n }\n\n return $this->taxonomylist;\n }", "function add_custom_taxonomies() {\n // Add new taxonomy\n $types = array('post','page','attachment','nav_menu_item', 'learning_resource');\n register_taxonomy('asn_index', $types, array(\n 'hierarchical' => true,\n 'labels' => array(\n 'name' => _x( 'ASN Index', 'taxonomy general name' ),\n 'singular_name' => _x( 'Competency', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Competencies' ),\n 'all_items' => __( 'All Competencies' ),\n 'parent_item' => __( 'Parent Competency' ),\n 'parent_item_colon' => __( 'Parent Competency:' ),\n 'edit_item' => __( 'Edit Competency' ),\n 'update_item' => __( 'Update Competency' ),\n 'add_new_item' => __( 'Add New Competency' ),\n 'new_item_name' => __( 'New Competency Name' ),\n 'menu_name' => __( 'Competency Index' ),\n ),\n //Slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'competency_index', \n 'with_front' => false,\n 'hierarchical' => true \n ),\n ));\n add_custom_post_type();\n create_new_topic_index();\n add_metadata_taxonomies();\n}", "function acf_get_pretty_taxonomies($taxonomies = array())\n{\n}" ]
[ "0.7657366", "0.7451261", "0.71077406", "0.7105415", "0.69313973", "0.6871076", "0.67984456", "0.6709238", "0.66367704", "0.66206056", "0.6609087", "0.6512814", "0.6475028", "0.6461038", "0.64577067", "0.64467293", "0.6428814", "0.6404796", "0.63900846", "0.6357754", "0.6335988", "0.62960607", "0.6293333", "0.6276424", "0.62609255", "0.6255066", "0.6253082", "0.624163", "0.62341434", "0.62135273", "0.6209197", "0.61960316", "0.6178847", "0.61743784", "0.6163058", "0.61450243", "0.6138132", "0.6125096", "0.61060125", "0.61034834", "0.6098142", "0.6096137", "0.60835654", "0.60745776", "0.6064861", "0.603738", "0.6033369", "0.60316503", "0.6017856", "0.60155034", "0.60052735", "0.59941274", "0.59940743", "0.59832287", "0.5970559", "0.59633815", "0.5948913", "0.593301", "0.5927062", "0.592642", "0.59168226", "0.5891692", "0.5881789", "0.58807236", "0.58759385", "0.5870309", "0.5860993", "0.58588624", "0.5853589", "0.58463895", "0.5839105", "0.58374715", "0.5836732", "0.5823343", "0.5816949", "0.5816143", "0.58109915", "0.5809672", "0.58037865", "0.5801174", "0.5796235", "0.579356", "0.57876754", "0.5784975", "0.578479", "0.578317", "0.5779235", "0.57758874", "0.577541", "0.577256", "0.57719153", "0.5750641", "0.5750641", "0.5750641", "0.57500464", "0.574986", "0.57343155", "0.5730488", "0.5725285", "0.57140446" ]
0.571297
100
Hierarchical taxonomy fields are tiny CSV files in their own right.
function _parse_tax( $field ) { $data = array(); if ( function_exists( 'str_getcsv' ) ) { // PHP 5 >= 5.3.0 $lines = $this->split_lines( $field ); foreach ( $lines as $line ) { $data[] = str_getcsv( $line, ',', '"' ); } } else { // Use temp files for older PHP versions. Reusing the tmp file for // the duration of the script might be faster, but not necessarily // significant. $handle = tmpfile(); fwrite( $handle, $field ); fseek( $handle, 0 ); while ( ( $r = fgetcsv( $handle, 999999, ',', '"' ) ) !== FALSE ) { $data[] = $r; } fclose( $handle ); } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_tax_file_fields() {\n\treturn array (\n\t\t\t\"Term name\",\n\t\t\t\"GUID\",\n\t\t\t\"Parent GUID\",\n\t\t\t\"Rank\",\n\t);\n}", "public function add_taxonomy_fields() {\n\t\t$template_file = $this->media->plugin->template_path . 'taxonomy-transformation-fields.php';\n\t\tif ( file_exists( $template_file ) ) {\n\t\t\tinclude $template_file; // phpcs:ignore\n\t\t}\n\t}", "public function import_terms( $args, $assoc_args ) {\n\n\t\t$taxonomy = $args[0];\n\n\t\t// Bail if a taxonomy isn't specified\n\t\tif ( empty( $taxonomy ) ) {\n\t\t\tWP_CLI::error( __( 'Please specify the taxonomy you would like to import your terms for', 'wp-migration' ) );\n\t\t}\n\n\t\t$filename = $assoc_args['file'];\n\n\t\t// Bail if a filename isn't specified, or the file doesn't exist\n\t\tif ( empty( $filename ) || ! file_exists( $filename ) ) {\n\t\t\tWP_CLI::error( __( 'Please specify the filename of the csv you are trying to import', 'wp-migration' ) );\n\t\t}\n\n\t\t// If the taxonomy doesn't exist, bail\n\t\tif ( false === get_taxonomy( $taxonomy ) ) {\n\t\t\tWP_CLI::error( sprintf( __( 'The taxonomy with the name %s does not exist, please use a taxonomy that does exist', 'wp-migration' ), $taxonomy ) );\n\t\t}\n\n\t\t// Use the wp-cli built in uitility to open up the csv file and position the pointer at the beginning of it.\n\t\t$terms = new \\WP_CLI\\Iterators\\CSV( $filename );\n\n\t\tWP_CLI::success( __( 'Starting import process...', 'wp-migration' ) );\n\t\t$terms_added = 0;\n\n\t\t// Loop through each of the rows in the csv\n\t\tforeach ( $terms as $term_row ) {\n\n\t\t\t// dynamically get the array keys for the row. Essentially a way to reference each of the columns in the row\n\t\t\t$array_keys = array_keys( $term_row );\n\t\t\t$term_parent = '';\n\n\t\t\t$i = 0;\n\n\t\t\t// Loop through each of the columns within the current row we are in\n\t\t\tforeach ( $term_row as $term ) {\n\n\t\t\t\t// If the cell is empty skip it.\n\t\t\t\tif ( empty( $term ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$parent_id = 0;\n\n\t\t\t\t// If we are on the first column of the row, we can skip this since there will be no parent\n\t\t\t\tif ( 0 !== $i ) {\n\n\t\t\t\t\t// Continue looking for a parent until we find one\n\t\t\t\t\tfor ( $count = $i; $count > 0; ++$count ) {\n\n\t\t\t\t\t\t// Find the key for the previous column\n\t\t\t\t\t\t$term_parent_key = $array_keys[ ( $count - 1 ) ];\n\n\t\t\t\t\t\t// move array pointer back one key to find the parent term (if there is one)\n\t\t\t\t\t\t$term_parent = $term_row[ $term_parent_key ];\n\n\t\t\t\t\t\tif ( ! empty( $term_parent ) ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// If there's a parent term in the cell to the left, find the ID and pass it when creating the term\n\t\t\t\tif ( ! empty( $term_parent ) ) {\n\n\t\t\t\t\t// Retrieve the parent term object by the name in the cell so we can grab the ID.\n\t\t\t\t\tif ( function_exists( 'wpcom_vip_get_term_by' ) ) {\n\t\t\t\t\t\t$parent_obj = wpcom_vip_get_term_by( 'name', $term_parent, $taxonomy );\n\t\t\t\t\t\t$parent_id = $parent_obj->term_id;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$parent_obj = get_term_by( 'name', $term_parent, $taxonomy );\n\t\t\t\t\t\t$parent_id = $parent_obj->term_id;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t// Find out if the term already exists.\n\t\t\t\tif ( function_exists( 'wpcom_vip_term_exists' ) ) {\n\t\t\t\t\t$term_exists = wpcom_vip_term_exists( $term, $taxonomy, $parent_id );\n\t\t\t\t} else {\n\t\t\t\t\t$term_exists = term_exists( $term, $taxonomy, $parent_id );\n\t\t\t\t}\n\n\t\t\t\t// Don't do anything if the term already exists\n\t\t\t\tif ( ! $term_exists ) {\n\n\t\t\t\t\t// Attempt to insert the term.\n\t\t\t\t\t$result = wp_insert_term( $term, $taxonomy, array( 'parent' => $parent_id ) );\n\n\t\t\t\t\tif ( ! is_wp_error( $result ) ) {\n\t\t\t\t\t\tWP_CLI::success( sprintf( __( 'Successfully added the term: %1$s to the %2$s taxonomy with a parent of: %3$s', 'wp-migration' ), $term, $taxonomy, $term_parent ) );\n\t\t\t\t\t\t$terms_added++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWP_CLI::warning( sprintf( __( 'Could not add term: %s error printed out below', 'wp-migration' ), $term ) );\n\t\t\t\t\t\tWP_CLI::warning( $result );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t$i++;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Woohoo! We made it!\n\t\tWP_CLI::success( sprintf( __( 'Successfully imported %d terms. See the taxonomy structure below', 'wp-migration' ), $terms_added ) );\n\t\t$term_tree = WP_CLI::runcommand( sprintf( 'term list %s --fields=term_id,name,parent', $taxonomy ) );\n\t\techo esc_html( $term_tree );\n\n\t}", "public function exportTagsToCsv($options = ['format' => 'table']) {\n\n $vid = 'tags';\n $terms =\\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadTree($vid);\n\n foreach ($terms as $term) {\n\n $query = $this->entityTypeManager->getStorage('node')->getQuery();\n $number_of_nodes = $query->condition('status', '1')\n ->condition('field_tags.entity.tid', $term->tid , '=') //test one term\n ->exists('field_tags')\n ->count()\n ->execute();\n\n\n $term_data[] = array(\n 'id' => $term->tid,\n 'name' => $term->name,\n 'count' => $number_of_nodes\n );\n }\n\n\n return new RowsOfFields($term_data);\n\n }", "public function exportToCsv($options = ['format' => 'table']) {\n $entity_type = 'node';\n\n $query = $this->entityTypeManager->getStorage('node')->getQuery();\n $nids = $query->condition('status', '1')\n// ->condition('field_tags.entity.name', 'NetNeutrality', '=') //test one term\n ->exists('field_tags')\n// ->range(0, 10) //limit\n ->execute();\n// $nodes = $this->entityTypeManager->getStorage('node')->loadMultiple($nids);\n\n foreach($nids as $nid ) {\n\n $node = \\Drupal::entityTypeManager()->getStorage($entity_type)->load($nid);\n\n $node_type = $node->getType();\n $node_nid = $node->nid->value;\n $node_url = 'https://diplomacy.edu' . \\Drupal::service('path_alias.manager')->getAliasByPath('/node/'. $node_nid, NULL);\n $term_ids = $node->get('field_tags')->getValue();\n $title = $node->title->value;\n\n $tags = '';\n foreach ($term_ids as $key => $value) {\n// drush_print($value['target_id']);\n $term = \\Drupal::entityTypeManager()->getStorage('taxonomy_term')->load($value['target_id']);\n// print_r($term->get('name')->getValue()[0]['value']);\n if ($term) {\n $tags .= $term->get('name')->getValue()[0]['value'] . ', ';\n }\n }\n\n $rows[] = [\n 'content_type' => $node_type,\n 'nid' => $node_nid,\n 'title' => $title,\n 'url' => $node_url,\n 'tags' => $tags\n ];\n }\n\n// print_r(count($nids));\n\n return new RowsOfFields($rows);\n\n }", "function oak_import_csv() {\n global $wpdb;\n\n $table = $_POST['table'];\n $rows = $_POST['rows'];\n $single_name = $_POST['single_name'];\n\n $table_name = $table;\n if ( $_POST['wellDefinedTableName'] == 'false' ) :\n $table_name = $wpdb->prefix . 'oak_' . $table;\n if ( $single_name == 'term' ) :\n $table_name = $wpdb->prefix . 'oak_taxonomy_' . $table;\n elseif( $single_name == 'object' ) :\n $table_name = $wpdb->prefix . 'oak_model_' . $table;\n endif;\n endif;\n\n foreach( $rows as $key => $row ) :\n if ( $key != 0 && !is_null( $row[1] ) ) :\n $arguments = [];\n foreach( $rows[0] as $property_key => $property ) :\n if ( $property != 'id' && $property_key < count( $rows[0] ) && $property != '' ) :\n $arguments[ $property ] = $this->oak_filter_word( $row[ $property_key ] );\n endif;\n if ( strpos( $property, '_trashed' ) != false ) :\n $arguments[ $_POST['single_name'] . '_trashed' ] = $row[ $property_key ];\n endif;\n endforeach;\n $result = $wpdb->insert(\n $table_name,\n $arguments\n );\n endif;\n endforeach;\n\n wp_send_json_success();\n }", "function bdpp_add_taxonomy_field( $taxonomy ) {\n\t\tinclude_once( BDPP_DIR . '/includes/admin/taxonomy/add-form.php' );\n\t}", "public function csvDownAction(){\r\n \t\t\r\n \t\t/**\r\n \t\t * get form id\r\n \t\t */\r\n \t\t$form_id = $this->getAttribute('form_id');\r\n \t\t\r\n \t\t/**\r\n \t\t * get form entry field list\r\n \t\t */\r\n \t\t$form_field_list = $this->db_model->getFormFieldList($form_id);\r\n \t\t//print_r($form_field_list);\r\n \t\t\r\n \t\tforeach ($form_field_list as $field_row){\r\n \t\t\t\r\n \t\t\tif (preg_match('/^privacy_/', $field_row['name'])) continue;\r\n \t\t\t\r\n \t\t\tif (preg_match('/^name_[0-9]/', $field_row['name'])){\r\n \t\t\t\t\r\n \t\t\t\t$expl = explode(';:;', $field_row['field_labels']);\r\n \t\t\t\t$csv_header[$field_row['name'].'_1'] \t\t= $expl[0].'-'.$expl[2];\r\n \t\t\t\t$csv_header[$field_row['name'].'_2'] \t\t= $expl[0].'-'.$expl[3];\r\n \t\t\t\t$csv_header[$field_row['name'].'_kana_1'] \t= $expl[1].'-'.$expl[4];\r\n \t\t\t\t$csv_header[$field_row['name'].'_kana_2'] \t= $expl[1].'-'.$expl[5];\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (preg_match('/^address_[0-9]/', $field_row['name'])){\r\n \t\t\t\t\r\n \t\t\t\t$expl = explode(';:;', $field_row['field_labels']);\r\n \t\t\t\t$csv_header[$field_row['name'].'_pcode'] \t\t= $expl[0];\r\n \t\t\t\t$csv_header[$field_row['name'].'_pref'] \t\t= $expl[1];\r\n \t\t\t\t$csv_header[$field_row['name'].'_address_a'] \t= $expl[2];\r\n \t\t\t\t$csv_header[$field_row['name'].'_address_b'] \t= $expl[3];\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (preg_match('/^birthday_[0-9]/', $field_row['name'])){\r\n \t\t\t\t\r\n \t\t\t\t$expl = explode(';:;', $field_row['field_labels']);\r\n \t\t\t\t$csv_header[$field_row['name'].'_year_type'] \t= '年式';\r\n \t\t\t\t$csv_header[$field_row['name'].'_year'] \t\t= $field_row['label'].'-'.$expl[0];\r\n \t\t\t\t$csv_header[$field_row['name'].'_month'] \t\t= $field_row['label'].'-'.$expl[1];\r\n \t\t\t\t$csv_header[$field_row['name'].'_day'] \t\t\t= $field_row['label'].'-'.$expl[2];\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (preg_match('/^ynradio_[0-9]/', $field_row['name'])){\r\n \t\t\t\t\r\n \t\t\t\t$yn_expl = explode('|yn|', $field_row['ynfields']);\r\n \t\t\t\t$yn_field_array = array();\r\n \t\t\t\t\r\n \t\t\t\tforeach ($yn_expl as $ym_row){\r\n \t\t\t\t\t\r\n \t\t\t\t\t$yn_row_expl = explode('_', $ym_row);\r\n \t\t\t\t\t\r\n \t\t\t\t\t$yn_field = $yn_row_expl[0].'_'.$yn_row_expl[1];\r\n \t\t\t\t\t\r\n \t\t\t\t\t$yn_field_expl = explode(':=:', $yn_row_expl[2]);\r\n \t\t\t\t\t\r\n \t\t\t\t\t$yn_field_list[$field_row['name'].'_'.$yn_field]['name'] = $field_row['name'].'_'.$yn_field;\r\n \t\t\t\t\t$yn_field_list[$field_row['name'].'_'.$yn_field][$yn_field_expl[0]] = $yn_field_expl[1];\r\n \t\t\t\t\t\r\n\r\n \t\t\t\t\tif (!in_array($yn_field, $yn_field_array)){\r\n \t\t\t\t\t\t$yn_field_array[$yn_row_expl[1]] = $yn_field;\r\n \t\t\t\t\t}else \r\n \t\t\t\t\t\tcontinue;\r\n \t\t\t\t} // foreach ($yn_expl as $ym_row){\r\n \t\t\t\t\r\n \t\t\t\t/**\r\n\t\t\t \t * sort yes no field as input sequence\r\n\t\t\t \t */\r\n\t\t\t \tksort($yn_field_array);\r\n \t\t\t\t\r\n \t\t\t\t//print_r($yn_expl);\r\n \t\t\t\t//print_r($yn_field_list);\r\n \t\t\t\t//print_r($yn_field_array);\r\n \t\t\t\t\r\n \t\t\t\tif (is_array($yn_field_array)){\r\n \t\t\t\t\t$csv_header[$field_row['name']] = $field_row['label'];\r\n \t\t\t\t\tforeach ($yn_field_array as $yn_field){\r\n \t\t\t\t\t\t$csv_header[$field_row['name'].'_'.$yn_field] = $field_row['label'].'-'.$yn_field_list[$yn_field]['label'];\r\n \t\t\t\t\t}\r\n \t\t\t\t} // if (is_array($yn_field_array)){\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t$csv_header[$field_row['name']] = $field_row['label']; \r\n \t\t}\r\n \t\t\r\n \t\t//print_r($csv_header);\r\n \t\t\r\n \t\t/**\r\n \t\t * get mail data list\r\n \t\t */\r\n \t\t$mail_data_list = $this->db_model->getFormMailData($form_id);\r\n \t\t//print_r($mail_data_list[0]);\r\n \t\t//$mail_data_list_t[]=$mail_data_list[0];\r\n \t\t//$mail_data_list_t[]=$mail_data_list[1];\r\n \t\t\r\n \t\t$form_data_list = array();\r\n \t\t\r\n \t\tif (is_array($mail_data_list) && !empty($mail_data_list)){\r\n\t \t\tforeach ($mail_data_list as $mail_data){\r\n\t \t\t\t$tmp_data = array();\r\n\t \t\t\t\t\r\n\t \t\t\tforeach ($csv_header as $header_key=>$header_value){\r\n\t \t\t\t\t\r\n\t \t\t\t\tforeach ($mail_data as $data_key => $data_value){\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\tif (preg_match('/^privacy_/', $data_key)) continue;\r\n\t \t\t\t\t\t\r\n\t\t \t\t\t\t\r\n\t \t\t\t\t\t/**\r\n\t \t\t\t\t\t * for name set\r\n\t \t\t\t\t\t */\r\n\t \t\t\t\t\tif (preg_match('/^name_[0-9]/', $data_key)){\r\n\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode('|fd|', $data_value);\r\n\t\t\t \t\t\t\t$exp_name_1 = explode(':=:', $expl[0]);\r\n\t\t\t \t\t\t\t$exp_name_2 = explode(':=:', $expl[1]);\r\n\t\t\t \t\t\t\t$exp_kana_1 = explode(':=:', $expl[2]);\r\n\t\t\t \t\t\t\t$exp_kana_2 = explode(':=:', $expl[3]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_name_1[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_name_1[1];\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_name_2[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_name_2[1];\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_kana_1[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_kana_1[1];\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_kana_2[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_kana_2[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^name_[0-9]/', $header_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for address set\r\n\t\t\t \t\t\t */\r\n\t\t \t\t\t\tif (preg_match('/^address_[0-9]/', $data_key)){\r\n\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode('|fd|', $data_value);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$exp_pcode_1\t= explode(':=:', $expl[0]);\r\n\t\t\t \t\t\t\t$exp_pcode_2\t= explode(':=:', $expl[1]);\r\n\t\t\t \t\t\t\t$exp_pref\t\t= explode(':=:', $expl[2]);\r\n\t\t\t \t\t\t\t$exp_address_a\t= explode(':=:', $expl[3]);\r\n\t\t\t \t\t\t\t$exp_address_b\t= explode(':=:', $expl[4]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == str_replace('_1', '', $exp_pcode_1[0]))\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_pcode_1[1].'-'.$exp_pcode_2[1];\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_pref[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_pref[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_address_a[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_address_a[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_address_b[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_address_b[1];\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^address_[0-9]/', $header_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for birthday set\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^birthday_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode('|fd|', $data_value);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$exp_year_type\t= explode(':=:', $expl[0]);\r\n\t\t\t \t\t\t\t$exp_year\t\t= explode(':=:', $expl[1]);\r\n\t\t\t \t\t\t\t$exp_month\t\t= explode(':=:', $expl[2]);\r\n\t\t\t \t\t\t\t$exp_day\t\t= explode(':=:', $expl[3]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_year_type[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $this->data_class->getYearTypeName($exp_year_type[1]);\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_year[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_year[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_month[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_month[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == $exp_day[0])\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_day[1];\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^birthday_[0-9]/', $header_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for mail\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^mail_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode('|fd|', $data_value);\r\n\t\t\t \t\t\t\t$exp_mail\t= explode(':=:', $expl[0]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == str_replace('_mail', '', $exp_mail[0]))\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_mail[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^mail_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for tel number\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^tel_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode('|fd|', $data_value);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$exp_tel_1\t= explode(':=:', $expl[0]);\r\n\t\t\t \t\t\t\t$exp_tel_2\t= explode(':=:', $expl[1]);\r\n\t\t\t \t\t\t\t$exp_tel_3\t= explode(':=:', $expl[2]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == str_replace('_1', '', $exp_tel_1[0]))\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_tel_1[1].'-'.$exp_tel_2[1].'-'.$exp_tel_3[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^tel_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for password\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^password_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode('|fd|', $data_value);\r\n\t\t\t \t\t\t\t$exp_password\t= explode(':=:', $expl[0]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($header_key == str_replace('_pass', '', $exp_password[0]))\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $exp_password[1];\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^password_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for yes no fields\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^ynradio_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode('|fd|', $data_value);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tforeach ($expl as $yn_row){\r\n\t\t\t \t\t\t\t\t$yn_row_expl = explode(':=:', $yn_row);\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\t\tif ($header_key == $yn_row_expl[0]){\r\n\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\t/**\r\n\t\t\t \t\t\t\t\t\t * for yes no label\r\n\t\t\t \t\t\t\t\t\t */\r\n\t\t\t \t\t\t\t\t\tif ($match[0] == $header_key){\r\n\t\t\t \t\t\t\t\t\t\t\r\n\t\t\t \t\t\t\t\t\t\t$value = $this->getYesNoLabel($form_field_list, $data_key, $yn_row_expl[1]);\r\n\t\t\t\t\t\t \t\t\t\t$tmp_data[$header_key] = $value;\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\tcontinue;\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t\t\t} // if ($match[0] == $header_key){\r\n\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\t/**\r\n\t\t\t \t\t\t\t\t\t * for yes no field's select and radio option \r\n\t\t\t \t\t\t\t\t\t */\r\n\t\t\t \t\t\t\t\t\tif (preg_match('/^ynradio_[0-9]_select_[0-9]/', $yn_row_expl[0], $match) || preg_match('/^ynradio_[0-9]_radio_[0-9]/', $yn_row_expl[0], $match)){\r\n\t\t\t \t\t\t\t\t\t\t\r\n\t\t\t \t\t\t\t\t\t\tif ($match[0] != $header_key) continue;\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\t$expl = explode(':other:', $yn_row_expl[1]);\r\n\t\t\t\t\t\t \t\t\t\t$value = $this->getYesNoOptionValue($yn_field_list, $yn_row_expl[0], $expl[0]);\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\tif (!empty($expl[1]))\r\n\t\t\t\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $value.',その他:'.$expl[1];\r\n\t\t\t\t\t\t \t\t\t\telse\r\n\t\t\t\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $value;\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\tcontinue;\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t} // if (preg_match('/^ynradio_[0-9]_select_[0-9]/', $yn_row_expl[0], $match) || preg_match('/^ynradio_[0-9]_radio_[0-9]/', $yn_row_expl[0], $match)){\r\n\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\t/**\r\n\t\t\t\t\t\t \t\t\t * for yes no field's checkbox option\r\n\t\t\t\t\t\t \t\t\t */\r\n\t\t\t\t\t\t \t\t\tif (preg_match('/^ynradio_[0-9]_checkbox_[0-9]/', $yn_row_expl[0], $match)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\tif ($match[0] != $header_key) continue;\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\t$expl = explode(':other:', $yn_row_expl[1]);\r\n\t\t\t\t\t\t \t\t\t\t$option_expl = explode('::', $expl[0]);\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\t$value = array();\r\n\t\t\t\t\t\t \t\t\t\tforeach ($option_expl as $row)\r\n\t\t\t\t\t\t \t\t\t\t\t$value[] = $this->getYesNoOptionValue($yn_field_list, $yn_row_expl[0], $row);\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\tif (!empty($expl[1]))\r\n\t\t\t\t\t\t \t\t\t\t\t$tmp_data[$header_key] = join(',', $value).',その他:'.$expl[1];\r\n\t\t\t\t\t\t \t\t\t\telse\r\n\t\t\t\t\t\t \t\t\t\t\t$tmp_data[$header_key] = join(',', $value);\r\n\t\t\t\t\t\t \t\t\t\t\t\r\n\t\t\t\t\t\t \t\t\t\tcontinue;\r\n\t\t\t\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t \t\t\t} // if (preg_match('/^checkbox_[0-9]/', $data_key)){\r\n\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\t$tmp_data[$header_key] = $yn_row_expl[1];\r\n\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}\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t} // if (preg_match('/^ynradio_[0-9]/', $header_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for select and radion fields\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^select_[0-9]/', $data_key, $match) || preg_match('/^radio_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($match[0] != $header_key) continue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode(':other:', $data_value);\r\n\t\t\t \t\t\t\t$value = $this->getOptionValue($form_field_list, $data_key, $expl[0]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($data_key == $header_key ){\r\n\t\t\t \t\t\t\t\tif (!empty($expl[1]))\r\n\t\t\t \t\t\t\t\t\t$tmp_data[$header_key] = $value.',その他:'.$expl[1];\r\n\t\t\t \t\t\t\t\telse\r\n\t\t\t \t\t\t\t\t\t$tmp_data[$header_key] = $value;\r\n\t\t\t \t\t\t\t}\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^select_[0-9]/', $data_key, $match) || preg_match('/^radio_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for checkbox field\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^checkbox_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($match[0] != $header_key) continue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode(':other:', $data_value);\r\n\t\t\t \t\t\t\t$option_expl = explode('::', $expl[0]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$value = array();\r\n\t\t\t \t\t\t\tforeach ($option_expl as $row)\r\n\t\t\t \t\t\t\t\t$value[] = $this->getOptionValue($form_field_list, $data_key, $row);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($data_key == $header_key ){\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\t\tif (!empty($expl[1]))\r\n\t\t\t \t\t\t\t\t\t$tmp_data[$header_key] = join(',', $value).',その他:'.$expl[1];\r\n\t\t\t \t\t\t\t\telse\r\n\t\t\t \t\t\t\t\t\t$tmp_data[$header_key] = join(',', $value);\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\t}\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^checkbox_[0-9]/', $data_key)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for survey options\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^svid_[0-9]_fid_[0-9]_sid_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($match[0] != $header_key) continue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$survey_expl = explode('_', $data_key);\r\n\t\t\t \t\t\t\t$survey_id = $survey_expl[1];\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$expl = explode(':other:', $data_value);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\t$value = $this->getSurveyOptionValue($survey_id, $data_key, $expl[0]);\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif (!empty($expl[1]))\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $value.',その他:'.$expl[1];\r\n\t\t\t \t\t\t\telse\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = $value;\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^svid_[0-9]_fid_[0-9]_sid_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for image field\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^image_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($match[0] != $header_key) continue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif (!empty($data_value))\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = _HTTP.$GLOBALS['gl_wpcms_Info']['wpcms_path'].'/wpform/file/imageDisplay/image_name/'.$data_value;\r\n\t\t\t \t\t\t\telse \r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = \"\";\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^image_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t/**\r\n\t\t\t \t\t\t * for pdf field\r\n\t\t\t \t\t\t */\r\n\t\t\t \t\t\tif (preg_match('/^pdf_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif ($match[0] != $header_key) continue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t\tif (!empty($data_value))\r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = _HTTP.$GLOBALS['gl_wpcms_Info']['wpcms_path'].'/wpform/file/pdfDisplay/pdf_name/'.$data_value;\r\n\t\t\t \t\t\t\telse \r\n\t\t\t \t\t\t\t\t$tmp_data[$header_key] = \"\";\r\n\t\t\t \t\t\t\t\t\r\n\t\t\t \t\t\t\tcontinue;\r\n\t\t\t \t\t\t\t\r\n\t\t\t \t\t\t} // if (preg_match('/^pdf_[0-9]/', $data_key, $match)){\r\n\t\t\t \t\t\t\r\n\t\t\t\t\t\t \t\t\t\r\n\t\t\t\t\t\t \t\t\t\r\n\t\t\t \t\t\t\r\n\t \t\t\t\t\tif ($data_key == $header_key ){\r\n\t \t\t\t\t\t\t$tmp_data[$header_key] = $data_value;\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t} // foreach ($mail_data as $data_key => $data_value){\r\n\t \t\t\t\t\r\n\t \t\t\t} // foreach ($csv_header as $header_key=>$header_value){\r\n\t \t\t\t\r\n\t \t\t\t//$form_data_list[] = $tmp_data;\r\n\t \t\t\t$form_data_list[] = implode(',', $tmp_data);\r\n\t \t\t\t\r\n\t \t\t} // foreach ($mail_data_list as $mail_data){\r\n \t\t\r\n \t\t} // if (is_array($mail_data_list) && !empty($mail_data_list)){\r\n \t\t\r\n \t\t\r\n \t\t//print_r($form_data_list);\r\n \t\t//exit;\r\n \t\t\r\n \t\t/**\r\n \t\t * make csv header text\r\n \t\t */\r\n \t\t$csv_header_txt = mb_convert_encoding(implode(',', $csv_header), \"Shift_JIS\");\r\n \t\t\r\n \t\t/**\r\n \t\t * make csv data\r\n \t\t */\r\n \t\t$csv_data_txt = mb_convert_encoding(implode(\"\\n\", $form_data_list), \"Shift_JIS\");\r\n \t\t\r\n \t\t/**\r\n\t\t * make csv downloadable\r\n\t\t */\r\n\t\theader(\"Cache-Control: public\");\r\n\t\theader(\"Pragma: public\");\r\n\t\t\r\n\t\t$csv_name = \"form_name\"; \r\n\t\t\r\n\t\theader(sprintf(\"Content-disposition: attachment; filename=%s.csv\",$csv_name));\r\n\t\theader(sprintf(\"Content-type: application/octet-stream; name=%s.csv\",$csv_name));\r\n\r\n\t\t/**\r\n\t\t * make csv text\r\n\t\t */\r\n\t\t$csv_txt = $csv_header_txt.\"\\n\".$csv_data_txt;\r\n\t\t\r\n\t\techo $csv_txt;\r\n\t\texit;\r\n \t\t\r\n \t}", "public static function get_output_fields(\\WP_Taxonomy $taxonomy)\n {\n }", "public static function get_output_fields(\\WP_Taxonomy $taxonomy)\n {\n }", "public static function get_output_fields(\\WP_Taxonomy $taxonomy)\n {\n }", "function create_ht_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Habilidad tecnica', 'taxonomy general name' ),\n 'singular_name' => _x( 'Habilidad tecnica', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Genres' ),\n 'all_items' => __( 'Habilidades tecnicas' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Editar habilidad' ), \n 'update_item' => __( 'Actualizar habilidad' ),\n 'add_new_item' => __( 'Nueva habilidad tecnica' ),\n 'new_item_name' => __( 'Nueva habilidad tecnica' ),\n 'menu_name' => __( 'Habilidades tecnicas' ),\n ); \t\n\n register_taxonomy('habilidad-tecnica',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'habilidad-tecnica' ),\n ));\n\n}", "public function taxonomy();", "function add_metadata_taxonomies() {\n\t/*\n\tEducational use: http://schema.org/educationalUse e.g. http://purl.org/dcx/lrmi-vocabs/edUse/instruction\nEducational audience: http://schema.org/EducationalAudience e.g. http://purl.org/dcx/lrmi-vocabs/educationalAudienceRole/student\nInteractivity type: http://schema.org/interactivityType e.g. http://purl.org/dcx/lrmi-vocabs/interactivityType/expositive (active, expositive, or mixed)\nProficiency level: http://schema.org/proficiencyLevel (Beginner, Expert)\n\t*/\n\tadd_educational_use();\n\tadd_educational_audience();\n\tadd_interactivity_type();\n\tadd_proficiency_level();\n}", "public function exportWebformsToCsv($options = ['format' => 'table']) {\n $entity_type = 'node';\n\n\n// $query_webforms = \\Drupal::entityTypeManager()->getStorage('webform')->getQuery();\n// $wf_ids = $query_webforms->condition('status', 'open')\n//// ->range(0, 5)\n// ->execute();\n//\n// print_r($wf_ids);\n\n\n $query = $this->entityTypeManager->getStorage('node')->getQuery();\n $nids = $query->condition('type', 'webform')\n// ->range(0, 5)\n ->execute();\n // $nodes = $this->entityTypeManager->getStorage('node')->loadMultiple($nids);\n\n foreach($nids as $nid ) {\n\n\n\n $node = \\Drupal::entityTypeManager()->getStorage($entity_type)->load($nid);\n\n// print_r($node);\n\n $node_type = $node->getType();\n $node_nid = $node->nid->value;\n $node_url = 'https://diplomacy.edu' . \\Drupal::service('path_alias.manager')->getAliasByPath('/node/'. $node_nid, NULL);\n $webform_id = $node->get('webform')->getValue()[0]['target_id'];\n\n $webform_title = 'NONE';\n $webform_status = 'NONE';\n\n if ($webform_id) {\n// print_r($node->get('webform')->getValue());\n\n $webform = \\Drupal::entityTypeManager()\n ->getStorage('webform')\n ->load($webform_id);\n\n // print_r($webform);\n\n $webform_settings_url = 'https://diplomacy.edu' . \\Drupal::service('path_alias.manager')\n ->getAliasByPath('/admin/structure/webform/manage/' . $webform_id . '/settings', NULL);\n\n\n $webform_title = $webform->get('title');\n $webform_status = $webform->get('status');\n// print_r($webform_title);\n $title = $node->title->value;\n }\n\n\n if ($webform_status == 'open') {\n $rows[] = [\n 'content_type' => $node_type,\n 'nid' => $node_nid,\n 'title' => $title,\n 'url' => $node_url,\n 'webform' => $webform_title,\n 'webform status' => $webform_status,\n 'webform id' => $webform_id,\n 'webform settings url' => $webform_settings_url\n ];\n }\n }\n\n // print_r(count($nids));\n\n return new RowsOfFields($rows);\n\n }", "public function bamobile_add_taxonomy_field($taxonomy){\r\n echo $this->bamobile_taxonomy_field('mobiconnector-add-field-category', $taxonomy);\r\n }", "private function write_taxonomic_mapping($rec, $wikidata_obj)\n {\n // print_r($rec);\n $canonical = \"\";\n if($canonical = $rec['p.canonical']) {}\n else {\n if($ret = @$this->taxonMap_all[$rec['p.page_id']]) {\n $canonical = $ret['c'];\n }\n }\n $final = array();\n $final[] = $canonical;\n $final[] = $rec['p.page_id'];\n $final[] = $wikidata_obj->display->label->value;\n $final[] = $wikidata_obj->id;\n $final[] = @$wikidata_obj->display->description->value;\n $final[] = $rec['how'];\n // /*\n $final[] = self::get_pipe_delimited_ancestry($wikidata_obj->id); //working OK\n // $final[] = \"-ancestry-\";\n // */\n fwrite($this->WRITE, implode(\"\\t\", $final).\"\\n\");\n // print_r($rec); print_r($wikidata_obj); print_r($final); exit;\n }", "function process_terms() {\n\t\t$this->terms = apply_filters( 'wp_import_terms', $this->terms );\n\n\t\tif ( empty( $this->terms ) )\n\t\t\treturn;\n\n\t\tforeach ( $this->terms as $term ) {\n\t\t\t// if the term already exists in the correct taxonomy leave it alone\n\t\t\t$term_id = term_exists( $term['slug'], $term['term_taxonomy'] );\n\t\t\tif ( $term_id ) {\n\t\t\t\tif ( is_array($term_id) ) $term_id = $term_id['term_id'];\n\t\t\t\tif ( isset($term['term_id']) )\n\t\t\t\t\t$this->processed_terms[intval($term['term_id'])] = (int) $term_id;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( empty( $term['term_parent'] ) ) {\n\t\t\t\t$parent = 0;\n\t\t\t} else {\n\t\t\t\t$parent = term_exists( $term['term_parent'], $term['term_taxonomy'] );\n\t\t\t\tif ( is_array( $parent ) ) $parent = $parent['term_id'];\n\t\t\t}\n\t\t\t$description = isset( $term['term_description'] ) ? $term['term_description'] : '';\n\t\t\t$termarr = array( 'slug' => $term['slug'], 'description' => $description, 'parent' => intval($parent) );\n\n\t\t\t$id = wp_insert_term( $term['term_name'], $term['term_taxonomy'], $termarr );\n\t\t\tif ( ! is_wp_error( $id ) ) {\n\t\t\t\tif ( isset($term['term_id']) )\n\t\t\t\t\t$this->processed_terms[intval($term['term_id'])] = $id['term_id'];\n\t\t\t} else {\n\t\t\t\tprintf( 'Failed to import %s %s', esc_html($term['term_taxonomy']), esc_html($term['term_name']) );\n\t\t\t\tif ( defined('IMPORT_DEBUG') && IMPORT_DEBUG )\n\t\t\t\t\techo ': ' . $id->get_error_message();\n\t\t\t\techo '<br />';\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\tunset( $this->terms );\n\t}", "public function edit_taxonomy_fields( $term ) {\n\t\t$template_file = $this->media->plugin->template_path . 'taxonomy-term-transformation-fields.php';\n\t\tif ( file_exists( $template_file ) ) {\n\t\t\tinclude $template_file; // phpcs:ignore\n\t\t}\n\t}", "function create_ha_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Habilidad artistica', 'taxonomy general name' ),\n 'singular_name' => _x( 'Habilidad artistica', 'taxonomy singular name' ),\n 'search_items' => __( 'Buscar Habilidad' ),\n 'all_items' => __( 'Habilidades artisticas' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Editar habilidad' ), \n 'update_item' => __( 'Actualizar habilidad' ),\n 'add_new_item' => __( 'Nueva habilidad artistica' ),\n 'new_item_name' => __( 'Nueva habilidad artistica' ),\n 'menu_name' => __( 'Habilidades artisticas' ),\n ); \t\n\n register_taxonomy('habilidad-artistica',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'habilidad-artistica' ),\n ));\n\n}", "function _get_term_hierarchy($taxonomy)\n {\n }", "function qode_lms_include_taxonomy_custom_fields() {\n\t\tif ( qode_lms_theme_installed() ) {\n\t\t\tforeach ( glob( QODE_LMS_CPT_PATH . '/*/admin/taxonomy-meta-fields/*.php' ) as $global_options ) {\n\t\t\t\tinclude_once $global_options;\n\t\t\t}\n\t\t}\n\t}", "private function readTaxonomy( $taxonomy ){\n $this->taxonomy->clear();\n if ($taxonomy){\n foreach( $taxonomy as $term ){\n if (is_object($term))\n $id = $term->id;\n elseif(is_array($term))\n $id = $term['id'];\n else \n $id = $term;\n if ( $id ){\n $term = new TermTYPE();\n $term->getByID($id);\n $this->taxonomy->append( $term );\n }\n }\n }\n }", "function nodeTaxTermField(&$node, $field, $value){\n\t\t\n \t\t//split piped value in array\n \t\t$values = explode('|', $value);\n \t\tsort($values);\n\n\n \t\t$thisFieldsPossibleTids = $this->taxInfo['possibleTidValues'][$field];\n \t\t$vocab_machine_name = $this->taxInfo['vocab_machine_name'][$field];\n \t\t$vocab_human_name = $this->taxInfo['vocab_human_name'][$field];\n \t\t\n \t\t//passions is a special case. The ebs_leaflets_final table\n \t\t//'passions' field contains piped names (not tids)\n \t\tif ($field == 'field_passions'):\n \t\t//dsm($values);\n \t\t\t//convert to tids\n \t\t\t$valuesTids = array();\n \t\t\n \t\t\tforeach($values as $key => $value):\n \t\t\t\n\t \t\t\tif (strlen($value) > 0)://adjacent pipes or no values at all\n\t\t \t\t\t$terms = taxonomy_get_term_by_name($value, $vocab_machine_name);\n\t\t \t\t\t$term = array_shift($terms);\n\t \t\t\t\n\t \t\t\t\tif (isset($term) && is_numeric($term->tid)): \n\t \t\t\t\t\t$valuesTids[] = $term->tid;\n\t \t\t\t\telse:\n\t\t \t\t\t\t$this->log[] = get_class($this).\": Couldn't find \\\"\".$value.\"\\\" in \".$vocab_human_name.\" taxonomy for \".$node->field_leaflet_code['und'][0]['value'].\" \".$node->title;\n\t \t\t\t\tendif;\t\t\t\n\t\t\t\tendif;\n\t\t\t\t\n \t\t\tendforeach;\n \t\t\t \t\t\t \t\t\t\n \t\t\t$values = $valuesTids;\n\n \t\tendif;\n\n \t\t//Remove duff values\n \t\tforeach ($values as $key => $value):\n \t\t\t$badValue = false;\n \t\t\tif (strlen($value) > 0 && !in_array($value, $thisFieldsPossibleTids)):\n\n\t \t\t\t$badValue = true;\n \t\t\t$this->log[] = get_class($this).\": Couldn't find \\\"\".$value.\"\\\" in \".$vocab_human_name.\" taxonomy for \".$node->field_leaflet_code['und'][0]['value'].\" \".$node->title;\n\t \t\tendif;\n\t \t\t\n\t \t\tif (strlen($value) == 0):\n\t \t\t\t$badValue = true;\n\n\t \t\tendif;\n\t \t\t\n\t \t\tif ($badValue == true):\n\t \t\t\tunset($values[$key]);\n\t \t\tendif;\n\n\t \t\t\n \t\tendforeach;\n \t\t\n \t\t\n \t\t\n \t \t\t \t\t\t\t\n \t\tif (!empty($node->nid)){\n \t\t\t//its an existing node...\n \t\t\t\n \t\t\tif (!isset($node->{$field}[$node->language][0]['tid']) && count($values)> 0){\n \t\t\t\t//...but for some reason the existing node had no values set\n \t\t\t\t$this->nodeNeedsUpdate[$node->nid] = true;\n \t\t\t\t//dsm(__FUNCTION__.\" flagging \".$node->nid);\n \t\t\t\t//dsm($node->{$field}[$node->language][0]['tid'].\" \".$value.\" \".$field);\n \t\t\t}\n \t\t\t\n \t\t\tif ((isset($node->{$field}[$node->language][0]['tid']) &&\t(!$this->sameTaxTermValues($node, $field, $values))) ){\n \t\t\t\t//...with amended incoming values to existing values\n \t\t\t\t$this->nodeNeedsUpdate[$node->nid] = true;\n \t\t\t\t//dsm(__FUNCTION__.\" flagging \".$node->nid);\n \t\t\t\t//dsm($node->{$field}[$node->language][0]['tid'].\" \".$value.\" \".$field);\n \t\t\t}\n \t\t}\n \t\t\n \t\tunset($node->{$field}[$node->language]);\n\n \t\tif (count($values) > 0){\n \t\t\tforeach ($values as $key => $value):\n \t\t\t\t//if (strlen($value) > 0):\n \t\t\t\t$node->{$field}[$node->language][$key]['tid'] = $value;\n \t\t\t\t//endif;\n \t\t\tendforeach;\n \t\t}\n \t}", "function acp_user_haxx_add_filter() {\n if(!empty($_GET['post_type']))\n return;\n\n if(!empty($_GET['taxonomy'])) {\n\n $taxonomies = get_transient('sgl_taxonomies');\n\n foreach($taxonomies as $tax_key => $tax_item) {\n if(!empty($tax_item['object_type'])) {\n if($tax_item['object_type'] == 'user' && $tax_key == $_GET['taxonomy']) {\n add_filter('parent_file', 'acp_user_haxx_change_parent_to',999);\n /* Fix columns */\n add_filter( 'manage_edit-'. $tax_key .'_columns', 'acp_user_haxx_fix_tax_columns');\n add_action( 'manage_'. $tax_key .'_custom_column', 'acp_user_haxx_fix_tax_columns_count', 10, 3 );\n }\n }\n }\n }\n}", "function bdpp_edit_taxonomy_field($term){\n\t\tinclude_once( BDPP_DIR . '/includes/admin/taxonomy/edit-form.php' );\n\t}", "public function register_taxonomies() {\n\n\t\t$options = $this->options;\n\t\t$this->remove_mb = array();\n\n\t\tforeach ( $options as $option ) {\n\n\t\t\tif ( 'taxonomy' == $option['args']['field_type'] ) {\n\n\t\t\t\t$name = ! empty( $option['args']['label'] ) ? sanitize_text_field( $option['args']['label'] ) : ucwords( str_replace( array( '_', '-' ), ' ', $option['name'] ) );\n\t\t\t\t$plural = ! empty( $option['args']['label_plural'] ) ? sanitize_text_field( $option['args']['label_plural'] ) : $name . 's';\n\t\t\t\t$column = true === $option['args']['taxo_std'] ? true : false;\n\t\t\t\t$hierarchical = $option['args']['taxo_hierarchical'];\n\n\t\t\t\t$labels = array(\n\t\t\t\t\t'name' => $plural,\n\t\t\t\t\t'singular_name' => $name,\n\t\t\t\t\t'search_items' => sprintf( __( 'Search %s', TEXTDOMAIN ), $plural ),\n\t\t\t\t\t'all_items' => sprintf( __( 'All %s', TEXTDOMAIN ), $plural ),\n\t\t\t\t\t'parent_item' => sprintf( __( 'Parent %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'parent_item_colon' => sprintf( _x( 'Parent %s:', 'Parent term in a taxonomy where %s is dynamically replaced by the taxonomy (eg. \"book\")', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'edit_item' => sprintf( __( 'Edit %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'update_item' => sprintf( __( 'Update %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'add_new_item' => sprintf( __( 'Add New %s', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'new_item_name' => sprintf( _x( 'New %s Name', 'A new taxonomy term name where %s is dynamically replaced by the taxonomy (eg. \"book\")', TEXTDOMAIN ), $name ),\n\t\t\t\t\t'menu_name' => $plural,\n\t\t\t\t);\n\n\t\t\t\t$args = array(\n\t\t\t\t\t'hierarchical' => $hierarchical,\n\t\t\t\t\t'labels' => $labels,\n\t\t\t\t\t'show_ui' => true,\n\t\t\t\t\t'show_admin_column' => $column,\n\t\t\t\t\t'query_var' => true,\n\t\t\t\t\t'rewrite' => array( 'slug' => $option['name'] ),\n\t\t\t\t\t'capabilities' => array(\n\t\t\t\t\t\t'manage_terms' => 'create_ticket',\n\t\t\t\t\t\t'edit_terms' => 'settings_tickets',\n\t\t\t\t\t\t'delete_terms' => 'settings_tickets',\n\t\t\t\t\t\t'assign_terms' => 'create_ticket'\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\tif ( false !== $option['args']['update_count_callback'] && function_exists( $option['args']['update_count_callback'] ) ) {\n\t\t\t\t\t$args['update_count_callback'] = $option['args']['update_count_callback'];\n\t\t\t\t}\n\n\t\t\t\tregister_taxonomy( $option['name'], array( 'ticket' ), $args );\n\n\t\t\t\tif ( false === $option['args']['taxo_std'] ) {\n\t\t\t\t\tarray_push( $this->remove_mb, $option['name'] );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t/* Remove metaboxes that won't be used */\n\t\tif ( ! empty( $this->remove_mb ) ) {\n\t\t\tadd_action( 'admin_menu', array( $this, 'remove_taxonomy_metabox' ) );\n\t\t}\n\n\t}", "public function taxonomy($field) {\n\t\t\t$this->all($field);\n\t\t\t$args = array(\n\t\t\t\t'type' => 'checkbox',\n\t\t\t\t'label' => '',\n\t\t\t\t'instructions' => '',\n\t\t\t\t'name' => 'to_content_format',\n\t\t\t\t'_append' => 'to_content',\n\t\t\t\t'choices' => array(\n\t\t\t\t\t'name' => 'Name',\n\t\t\t\t\t'slug' => 'Slug',\n\t\t\t\t\t'description' => 'Description'\n\t\t\t\t),\n\t\t\t\t'default_value' => 'name',\n\t\t\t\t'layout' => 'horizontal',\n\t\t\t\t'required' => 0,\n\t\t\t\t'allow_null' => 0,\n\t\t\t\t'wrapper' => array(\n\t\t\t\t\t'width' => '',\n\t\t\t\t\t'class' => 'acf-to-content-format',\n\t\t\t\t\t'id' => ''\n\t\t\t\t)\n\t\t\t);\n\t\t\tacf_render_field_setting($field, $args, false);\n\t\t}", "function acf_get_pretty_taxonomies($taxonomies = array())\n{\n}", "public function bamobile_edit_taxonomy_field($taxonomy){\r\n echo $this->bamobile_taxonomy_field('mobiconnector-edit-field-category', $taxonomy);\r\n }", "private function prepareTaxonomy(){\n $taxonomy = null;\n if ( $this->taxonomy->terms() ){\n foreach($this->taxonomy->terms() as $term){\n $taxonomy[] = array( \n \t'id'=>$term->getID(), \n \t'label'=>$term->label->label \n\t\t\t\t);\n }\n }\n return $taxonomy;\n }", "function registerTaxonomies()\n{\n register_taxonomy('region', ['destination'], [\n 'public' => true,\n 'label' => 'Regions',\n 'hierarchical' => true,\n 'show_admin_column' => true\n ]);\n}", "function get_taxonomies( $data ) {\n\t\t$taxonomies = array();\n\t\tforeach ( $data as $k => $v ) {\n\t\t\tif ( preg_match( '/^csv_ctax_(.*)$/', $k, $matches ) ) {\n\t\t\t\t$t_name = $matches[1];\n\t\t\t\tif ( $this->taxonomy_exists( $t_name ) ) {\n\t\t\t\t\t$taxonomies[ $t_name ] = $this->create_terms( $t_name,\n\t\t\t\t\t\t$data[ $k ] );\n\t\t\t\t} else {\n\t\t\t\t\t$this->log['error'][] = \"Unknown taxonomy $t_name\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $taxonomies;\n\t}", "function katayam_custom_taxonomies(){\r\n\t$labels=array(\r\n\t'name'=>'Fields',\r\n\t'singular_name'=>'Field',\r\n\t'search_item'=>'Search Fields',\r\n\t'all_items'=>'All Field',\r\n\t'parent_item'=>'Parent Field',\r\n\t'parent_item_colon'=>'Parent Item',\r\n\t'edit_item'=>'Edit Item',\r\n\t'update_item'=>'Update Field',\r\n\t'add_new_item'=>'Add Item',\r\n\t'new_item_name'=>'New Field Name',\r\n\t'menu_name'=>'Field'\r\n\t\r\n\t);\r\n\t$args=array(\r\n\t'hierarchical'=>true,\r\n\t'labels'=>$labels,\r\n\t'show_ui'=>true,\r\n\t'show_admin_colum'=>true,\r\n\t'query_var'=>true,\r\n\t'rewrite'=>array('slug'=>'field')\r\n\t);\r\n\tregister_taxonomy('field',array('portfolio'),$args);\r\n\t//add new taxonomies Not hierarchical\r\n\tregister_taxonomy('software','portfolio',array(\r\n\t'label'=>'Software',\r\n\t'rewrite'=>array('slug'=>'software'),\r\n\t'hierarchical'=>false\r\n\t));\r\n}", "function glbs_edit_extra_tax_fields( $term ) { //check for existing featured ID\n\t$id = $term->term_id;\n\t\n\t$title = get_term_meta( $id, 'basic_seo_title', true );\n\t$key = get_term_meta( $id, 'basic_seo_keywords', true );\n\t$desc = get_term_meta( $id, 'basic_seo_description', true );\n\t?>\n\t<?php wp_nonce_field( '_glbs_nonce_tax', 'glbs_nonce_tax' ); ?>\n\t<table class=\"form-table\">\n\t\t<tr class=\"form-field\">\n\t\t\t<th scope=\"row\"><label for=\"basic_seo_title\"><?php _e( 'SEO Title', 'glbs' ); ?></label></th>\n\t\t\t<td>\n\t\t\t\t<input class=\"large-text\" type=\"text\" name=\"basic_seo_title\" id=\"basic_seo_title\" value=\"<?php echo $title ? $title : ''; ?>\"><br/>\n\t\t\t\t<span class=\"description\">Leave empty to use default title</span>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr class=\"form-field\">\n\t\t\t<th scope=\"row\"><label for=\"basic_seo_keywords\"><?php _e( 'SEO Keywords', 'glbs' ); ?></label></th>\n\t\t\t<td>\n\t\t\t\t<input class=\"large-text\" type=\"text\" name=\"basic_seo_keywords\" id=\"basic_seo_keywords\" value=\"<?php echo $key ? $key : ''; ?>\"><br/>\n\t\t\t\t<span class=\"description\">Enter the list of keywords separated by comma</span>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr class=\"form-field\">\n\t\t\t<th scope=\"row\"><label for=\"basic_seo_description\"><?php _e( 'SEO Description', 'glbs' ); ?></label></th>\n\t\t\t<td>\n\t\t\t\t<textarea class=\"large-text\" name=\"basic_seo_description\" id=\"basic_seo_description\" rows=\"5\"><?php echo $desc ? $desc : ''; ?></textarea><br/>\n\t\t\t\t<span class=\"description\">Enter meta description for this Term</span>\n\t\t\t</td>\n\t\t</tr>\n\t</table>\n\t<?php\n}", "function glbs_save_extra_tax_fileds( $term_id ) {\n\tif ( ! isset( $_POST['glbs_nonce_tax'] ) || ! wp_verify_nonce( $_POST['glbs_nonce_tax'], '_glbs_nonce_tax' ) ) {\n\t\treturn;\n\t}\n\t\n\tif ( isset( $_POST['basic_seo_title'] ) ) {\n\t\tupdate_term_meta( $term_id, 'basic_seo_title', esc_attr( $_POST['basic_seo_title'] ) );\n\t}\n\tif ( isset( $_POST['basic_seo_keywords'] ) ) {\n\t\tupdate_term_meta( $term_id, 'basic_seo_keywords', esc_attr( $_POST['basic_seo_keywords'] ) );\n\t}\n\tif ( isset( $_POST['basic_seo_description'] ) ) {\n\t\tupdate_term_meta( $term_id, 'basic_seo_description', esc_attr( $_POST['basic_seo_description'] ) );\n\t}\n}", "function create_terms( $taxonomy, $field ) {\n\t\tif ( is_taxonomy_hierarchical( $taxonomy ) ) {\n\t\t\t$term_ids = array();\n\t\t\tforeach ( $this->_parse_tax( $field ) as $row ) {\n\t\t\t\t@list( $parent, $child ) = $row;\n\t\t\t\t$parent_ok = TRUE;\n\t\t\t\tif ( $parent ) {\n\t\t\t\t\t$parent_info = $this->term_exists( $parent, $taxonomy );\n\t\t\t\t\tif ( ! $parent_info ) {\n\t\t\t\t\t\t// create parent\n\t\t\t\t\t\t$parent_info = wp_insert_term( $parent, $taxonomy );\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! is_wp_error( $parent_info ) ) {\n\t\t\t\t\t\t$parent_id = $parent_info['term_id'];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// could not find or create parent\n\t\t\t\t\t\t$parent_ok = FALSE;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$parent_id = 0;\n\t\t\t\t}\n\n\t\t\t\tif ( $parent_ok ) {\n\t\t\t\t\t$child_info = $this->term_exists( $child, $taxonomy, $parent_id );\n\t\t\t\t\tif ( ! $child_info ) {\n\t\t\t\t\t\t// create child\n\t\t\t\t\t\t$child_info = wp_insert_term( $child, $taxonomy,\n\t\t\t\t\t\t\tarray( 'parent' => $parent_id ) );\n\t\t\t\t\t}\n\t\t\t\t\tif ( ! is_wp_error( $child_info ) ) {\n\t\t\t\t\t\t$term_ids[] = $child_info['term_id'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $term_ids;\n\t\t} else {\n\t\t\treturn $field;\n\t\t}\n\t}", "function create_topics_hierarchical_taxonomy() {\n \n// Add new taxonomy, make it hierarchical like categories\n//first do the translations part for GUI\n \n $labels = array(\n 'name' => _x( 'Sectores', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sector', 'taxonomy singular name' ),\n 'search_items' => __( 'Buscar Sectores' ),\n 'all_items' => __( 'Todos los Sectores' ),\n 'parent_item' => __( 'Sector Padre' ),\n 'parent_item_colon' => __( 'Sector Padre:' ),\n 'edit_item' => __( 'Editar Sector' ), \n 'update_item' => __( 'Actualizar Sector' ),\n 'add_new_item' => __( 'Añadir Nuevo Sector' ),\n 'new_item_name' => __( 'Nuevo Sector' ),\n 'menu_name' => __( 'Sectores' ),\n ); \n \n// Now register the taxonomy\n \n register_taxonomy('sectores', array('logos, proyecto, diapositiva'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'sectores' ),\n ));\n \n}", "function glbs_add_extra_tax_fields( $term ) {\n\t$id = $term->term_id;\n\t\n\t$title = get_term_meta( $id, 'basic_seo_title', true );\n\t$key = get_term_meta( $id, 'basic_seo_keywords', true );\n\t$desc = get_term_meta( $id, 'basic_seo_description', true );\n\t?>\n\t<?php wp_nonce_field( '_glbs_nonce_tax', 'glbs_nonce_tax' ); ?>\n\t<div class=\"form-field\">\n\t\t<label for=\"basic_seo_title\"><?php _e( 'SEO Title', 'glbs' ); ?></label>\n\t\t<input class=\"large-text\" type=\"text\" name=\"basic_seo_title\" id=\"basic_seo_title\" value=\"<?php echo $title ? $title : ''; ?>\"><br>\n\t\t<span class=\"description\">Leave empty to use default title</span>\n\t</div>\n\t<div class=\"form-field\">\n\t\t<label for=\"basic_seo_keywords\"><?php _e( 'SEO Keywords', 'glbs' ); ?></label>\n\t\t<input class=\"large-text\" type=\"text\" name=\"basic_seo_keywords\" id=\"basic_seo_keywords\" value=\"<?php echo $key ? $key : ''; ?>\"><br>\n\t\t<span class=\"description\">Enter the list of keywords separated by comma</span>\n\t</div>\n\t<div class=\"form-field\">\n\t\t<label for=\"basic_seo_description\"><?php _e( 'SEO Description', 'glbs' ); ?></label>\n\t\t<textarea class=\"large-text\" name=\"basic_seo_description\" id=\"basic_seo_description\" rows=\"5\"><?php echo $desc ? $desc : ''; ?></textarea><br>\n\t\t<span class=\"description\">Enter meta description for this Term</span>\n\t</div>\n\t<?php\n}", "private function createFileHeadings() {\n\t\t// Allow other plugins to add their own column headers\n\t\t$headings = elgg_trigger_plugin_hook('row:headers', 'userexport', array(), $this->fields);\n\n\t\t// Attempt to translate the fields\n\t\tforeach ($headings as $key => $field) {\n\t\t\t$lang_string = \"profile:{$field}\";\n\t\t\t$heading = elgg_echo($lang_string);\n\n\t\t\t// No translation was found, fall back to the original string\n\t\t\tif ($heading === $lang_string) {\n\t\t\t\t$heading = elgg_echo($field);\n\t\t\t}\n\n\t\t\t$headings[$key] = $heading;\n\t\t}\n\n\t\t$this->writeToCSV($headings);\n\t}", "function _kala_migrate_panelizer($filename) {\n // Open The CSV\n $f = fopen($filename, 'w');\n // Clear out vars.\n $headers = $body = array();\n\n $headers[0] = 'Panelizer Entity Type';\n $headers[1] = 'Panelizer Entity Bundle';\n $headers[2] = 'Enabled View Mode';\n\n // print headers to CSV\n fputcsv($f, $headers);\n\n // Load up all panelized entities.\n\n ctools_include('plugins');\n $plugins = ctools_get_plugins('panelizer', 'entity');\n foreach ($plugins as $pname => $plugin) {\n // If there are variants, lets do this.\n if (isset($plugin['bundles'])) {\n // Check each bundle to see if active.\n foreach ($plugin['bundles'] as $bkey => $bundle) {\n // If the View mode on the bundle is enabled.\n if ($bundle['status']) {\n // Grab the first key for tabbing.\n reset($bundle['view modes']);\n $first = key($bundle['view modes']);\n\n // Then lets grab the name and set this up.\n foreach ($bundle['view modes'] as $mkey => $mode) {\n if ($mode['status']) {\n // Set up first row and then tab the rest.\n if ($mkey === $first) {\n $body['Panelizer Entity Type'] = $pname;\n $body['Panelizer Entity Bundle'] = $bkey;\n $body['Enabled View Mode'] = $mkey;\n }\n else {\n $body['Panelizer Entity Type'] = '';\n $body['Panelizer Entity Bundle'] = $bkey;\n $body['Enabled View Mode'] = $mkey;\n }\n\n fputcsv($f, $body);\n }\n }\n }\n }\n }\n }\n\n // Close this and trill this out.\n fclose($f);\n\n // Return File Name\n return $filename;\n}", "function add_custom_taxonomies() {\n register_taxonomy('meta_info', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x('Meta Information', 'taxonomy general name'),\n 'singular_name' => _x('Meta Information', 'taxonomy singular name'),\n 'search_items' => __('Search Meta Information'),\n 'all_items' => __('All Meta Information'),\n 'edit_item' => __('Edit Meta Information'),\n 'update_item' => __('Update Meta Information'),\n 'add_new_item' => __('Add New Meta Information'),\n 'new_item_name' => __('New Meta Information Name'),\n 'menu_name' => __('Meta Information'),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'meta', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n\n register_taxonomy('column_info', 'post', array(\n // Hierarchical taxonomy (like categories)\n 'hierarchical' => true,\n // This array of options controls the labels displayed in the WordPress Admin UI\n 'labels' => array(\n 'name' => _x('Column Information', 'taxonomy general name'),\n 'singular_name' => _x('Column Information', 'taxonomy singular name'),\n 'search_items' => __('Search Column Information'),\n 'all_items' => __('All Column Information'),\n 'edit_item' => __('Edit Column Information'),\n 'update_item' => __('Update Column Information'),\n 'add_new_item' => __('Add New Column Information'),\n 'new_item_name' => __('New Column Information Name'),\n 'menu_name' => __('Column Information'),\n ),\n // Control the slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'commentary', // This controls the base slug that will display before each term\n 'with_front' => false, // Don't display the category base before \"/locations/\"\n 'hierarchical' => true // This will allow URL's like \"/locations/boston/cambridge/\"\n ),\n ));\n\n}", "function _webform_csv_data_file($data) {\r\n $filedata = unserialize($data['value']['0']);\r\n return empty($filedata['filename']) ? array('', '') : array(webform_file_url($filedata['filepath']), (int)($filedata['filesize']/1024));\r\n}", "public function exportTaxCsvAction()\n {\n $fileName = 'tax.csv';\n $grid = $this->getLayout()->createBlock('adminhtml/report_sales_tax_grid');\n $this->_initReportAction($grid);\n $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());\n }", "function additional_taxonomies() {\r\n\tregister_taxonomy(\r\n\t\t'gradelevel',\r\n\t\t'post',\r\n\t\tarray(\r\n 'hierarchical' => true,\r\n\t\t\t'label' => __( 'Grade Level' ),\r\n\t\t\t'sort' => true,\r\n\t\t\t'args' => array( 'orderby' => 'term_order' ),\r\n\t\t\t'rewrite' => array( 'slug' => 'gradelevel' )\r\n\t\t)\r\n\t);\r\n \r\n register_taxonomy(\r\n\t\t'logotype',\r\n\t\t'logo',\r\n\t\tarray(\r\n 'hierarchical' => true,\r\n\t\t\t'label' => __( 'Logo Types' ),\r\n\t\t\t'sort' => true,\r\n\t\t\t'args' => array( 'orderby' => 'term_order' ),\r\n\t\t\t'rewrite' => array( 'slug' => 'logotype' )\r\n\t\t)\r\n\t);\r\n}", "private function write_taxon($rec)\n {\n \n // print_r($rec); exit;\n $taxon_id = $rec['taxon_id'];\n $this->taxon_scinames[$rec['canonical']] = $taxon_id; //used in media extension\n \n $taxon = new \\eol_schema\\Taxon();\n $taxon->taxonID = $taxon_id;\n $taxon->scientificName = $rec['canonical'];\n $taxon->scientificNameAuthorship = $rec['authorship'];\n $taxon->taxonRank = $rec['rank'];\n if($val = @$rec['usage']['Unacceptability Reason']) $taxon->taxonomicStatus = $val;\n else $taxon->taxonomicStatus = 'accepted';\n \n $ranks = array(\"kingdom\", \"phylum\", \"class\", \"order\", \"family\", \"genus\");\n if($val = @$rec['ancestry']) {\n foreach($val as $a) {\n if(in_array($a['rank'], $ranks)) $taxon->$a['rank'] = $a['sciname'];\n }\n }\n \n if($arr = @$this->taxon_refs[$taxon_id]) {\n if($reference_ids = array_keys($arr)) $taxon->referenceID = implode(\"; \", $reference_ids);\n }\n \n $taxon->furtherInformationURL = $this->page['taxon_page'].$taxon_id;\n \n if(!isset($this->taxon_ids[$taxon->taxonID])) {\n $this->archive_builder->write_object_to_file($taxon);\n $this->taxon_ids[$taxon->taxonID] = '';\n }\n }", "function taxonomy_header($cat_columns) {\r\n\t\t$cat_columns['cat_id'] = 'ID';\r\n\t\treturn $cat_columns;\r\n\t}", "function gcd_tax_edit_meta_field($term) {\r\n $t_id = $term->term_id;\r\n \r\n // retrieve the existing value(s) for this meta field. This returns an array\r\n $term_meta = get_option( \"taxonomy_$t_id\" ); ?>\r\n <tr class=\"form-field\">\r\n <th scope=\"row\" valign=\"top\"><label for=\"term_meta[featured]\"><?php _e( 'Featured ?', '' ); ?></label></th>\r\n <td>\r\n <input type=\"text\" name=\"term_meta[featured]\" id=\"term_meta[featured]\" value=\"<?php echo esc_attr( $term_meta['featured'] ) ? esc_attr( $term_meta['featured'] ) : ''; ?>\">\r\n <p class=\"description\"><?php _e( 'Type 1 if you want to list category as featured','' ); ?></p>\r\n </td>\r\n </tr>\r\n <tr class=\"form-field\">\r\n <th scope=\"row\" valign=\"top\"><label for=\"term_meta[subtitle]\"><?php _e( 'Subtitle', '' ); ?></label></th>\r\n <td>\r\n <input type=\"text\" name=\"term_meta[subtitle]\" id=\"term_meta[subtitle]\" value=\"<?php echo esc_attr( $term_meta['subtitle'] ) ? esc_attr( $term_meta['subtitle'] ) : ''; ?>\">\r\n <p class=\"description\"><?php _e( 'Subtitle for your project','' ); ?></p>\r\n </td>\r\n </tr>\r\n<?php\r\n}", "function extra_tax_fields($tag)\n\n{\n\n //check for existing taxonomy meta for term ID\n\n $t_id = $tag->term_id;\n\n $term_meta = get_option(\"taxonomy_$t_id\");\n\n ?>\n\n\n\n <tr class=\"form-field\">\n\n <th scope=\"row\" valign=\"top\"><label for=\"avisors\"><?php _e('Avisors', 'leadvisors'); ?></label></th>\n\n <td>\n\n <select name=\"term_meta[avisors]\" id=\"term_meta[avisors]\">\n\n <option\n\n value=\"0\" <?php echo $term_meta['avisors'] == 0 ? 'selected' : ''; ?>><?php _e('No', 'leadvisors'); ?></option>\n\n <option\n\n value=\"1\" <?php echo $term_meta['avisors'] == 1 ? 'selected' : ''; ?>><?php _e('Yes', 'leadvisors'); ?></option>\n\n </select>\n\n </td>\n\n </tr>\n\n <?php }", "function erp_make_csv_file( $items, $file_name, $field_data = true ) {\n $file_name = ( ! empty( $file_name ) ) ? $file_name : 'csv_' . date( 'd_m_Y' ) . '.csv';\n\n if ( empty( $items ) ) {\n return;\n }\n\n $columns = array_keys( $items[0] );\n\n header( 'Content-Type: text/csv; charset=utf-8' );\n header( 'Content-Disposition: attachment; filename=' . $file_name );\n\n $output = fopen( 'php://output', 'w' );\n\n $columns = array_map( function ( $column ) {\n $column = ucwords( str_replace( '_', ' ', $column ) );\n\n return $column;\n }, $columns );\n\n fputcsv( $output, $columns );\n\n if ( $field_data ) {\n foreach ( $items as $item ) {\n $csv_row = array_map( function ( $item_val ) {\n\n if ( is_array( $item_val ) ) {\n return implode( ', ', $item_val );\n }\n\n return $item_val;\n\n }, $item );\n\n fputcsv( $output, $csv_row );\n }\n }\n\n exit();\n}", "public function getTaxonomyTerms();", "function property_features_taxonomy() {\n\n\t\t$name = __( 'Features', 'wp_listings' );\n\t\t$singular_name = __( 'Feature', 'wp_listings' );\n\n\t\treturn array(\n\t\t\t'features' => array(\n\t\t\t\t'labels' => array(\n\t\t\t\t\t'name'\t\t\t\t\t=> strip_tags( $name ),\n\t\t\t\t\t'singular_name' \t\t=> strip_tags( $singular_name ),\n\t\t\t\t\t'menu_name'\t\t\t\t=> strip_tags( $name ),\n\n\t\t\t\t\t'search_items'\t\t\t=> sprintf( __( 'Search %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'popular_items'\t\t\t=> sprintf( __( 'Popular %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'all_items'\t\t\t\t=> sprintf( __( 'All %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'edit_item'\t\t\t\t=> sprintf( __( 'Edit %s', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'update_item'\t\t\t=> sprintf( __( 'Update %s', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'add_new_item'\t\t\t=> sprintf( __( 'Add New %s', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'new_item_name'\t\t\t=> sprintf( __( 'New %s Name', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'add_or_remove_items'\t=> sprintf( __( 'Add or Remove %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'choose_from_most_used'\t=> sprintf( __( 'Choose from the most used %s', 'wp_listings' ), strip_tags( $name ) )\n\t\t\t\t),\n\t\t\t\t'hierarchical' => 0,\n\t\t\t\t'rewrite' => array( __( 'features', 'wp_listings' ), 'with_front' => false ),\n\t\t\t\t'editable' => 0\n\t\t\t)\n\t\t);\n\n\t}", "protected function _prepare_taxonomy($taxonomy, $fields)\n {\n }", "public function getTermTaxonomyTable(): string\n {\n return $this->wpDatabase->term_taxonomy;\n }", "function get_attachment_taxonomies($attachment, $output = 'names')\n {\n }", "function wp_print_theme_file_tree($tree, $level = 2, $size = 1, $index = 1)\n {\n }", "function save_extra_taxonomy_fields($term_id)\n\n {\n\n if (isset($_POST['term_meta'])) {\n\n $t_id = $term_id;\n\n $term_meta = get_option(\"taxonomy_$t_id\");\n\n $cat_keys = array_keys($_POST['term_meta']);\n\n foreach ($cat_keys as $key) {\n\n if (isset($_POST['term_meta'][$key])) {\n\n $term_meta[$key] = $_POST['term_meta'][$key];\n\n }\n\n }\n\n update_option(\"taxonomy_$t_id\", $term_meta);\n\n }\n\n }", "function getTransCsvInner($tmp, $prefix, $header)\n{\n $csv = '';\n\n $name = $tmp->number . ' ' . $tmp->text_fr;\n if (strlen(trim($name)) < 1) {\n $name = \"[blank keyword -- ID #{$tmp->id}]\";\n }\n\n $csvRow = array($prefix);\n foreach ($tmp as $k => $v) {\n if (strlen($k) > 1 && substr($k, 0, 1) != '_') {\n $csvRow[] = $v;\n }\n }\n foreach ($csvRow as $k => $v) {\n $csvRow[$k] = str_replace('\"', '\\\"', $v);\n }\n\n // Update CSV and recurse to next level:\n if ($header) {\n $csv .= getTransCsvHeader($tmp, array('parent path'));\n }\n $csv .= implode(',', $csvRow) . \"\\n\";\n $csv .= getTransCsv($tmp->id, empty($prefix) ? $name : $prefix . ' > ' . $name, false);\n\n return $csv;\n}", "function taxonomy_column_contents( $column_name, $post_id ) {\n\t\tglobal $wpdb, $post_type;\n\t\n\t\t$taxonomy_names = get_object_taxonomies( self::$post_type_name );\n\t\t\n\t\t$type = ''; //set blank post type\n\t\t\n\t\tif ($post_type != 'post') {\n\t\t\t$type = 'post_type=' . $post_type . '&';\n\t\t}\n\t\n\t\tforeach ( $taxonomy_names as $taxonomy_name ) {\n\t\t\n\t\t\t$taxonomy = get_taxonomy( $taxonomy_name );\n\t\n\t\t\tif ( $taxonomy->_builtin || $column_name != $taxonomy_name )\n\t\t\t\tcontinue;\n\t\n\t\t\t$terms = get_the_terms( $post_id, $taxonomy_name ); //lang is the first custom taxonomy slug\n\t\t\t\n\t\t\tif ( !empty( $terms ) ) {\n\t\t\t\t$out = array();\n\t\t\t\tforeach ( $terms as $term )\n\t\t\t\t\t$termlist[] = \"<a href='edit.php?\" . $type . $taxonomy->query_var.\"=$term->slug'> \" . esc_html( sanitize_term_field( 'name', $term->name, $term->term_id, $taxonomy_name, 'display' ) ) . \"</a>\";\n\t\t\t\techo join( ', ', $termlist );\n\t\t\t} else {\n\t\t\t\tprintf( __( 'No %s.'), $taxonomy->label );\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "function gcd_tax_add_new_meta_field() {\r\n ?>\r\n <div class=\"form-field\">\r\n <label for=\"term_meta[featured]\"><?php _e( 'Featured ?', '' ); ?></label>\r\n <input type=\"text\" name=\"term_meta[featured]\" id=\"term_meta[featured]\" value=\"\">\r\n <p class=\"description\"><?php _e( 'Type 1 if you want to list category as featured','' ); ?></p>\r\n </div>\r\n\r\n <div class=\"form-field\">\r\n <label for=\"term_meta[subtitle]\"><?php _e( 'Subtitle', '' ); ?></label>\r\n <input type=\"text\" name=\"term_meta[subtitle]\" id=\"term_meta[subtitle]\" value=\"\">\r\n <p class=\"description\"><?php _e( 'Subtitle for your group','' ); ?></p>\r\n <div>\r\n<?php\r\n}", "static function importTaxonomies( $taxonomy_map ) {\n\t\t\n\t\techo_now( 'Importing categories and tags...' );\n\t\t\n\t\t# Import Drupal vocabularies as WP taxonomies\n\t\t\n\t\t$vocab_map = array();\n\t\t\n\t\t$dr_tax_prefix = '';\n\t\t\n\t\tif( isset( drupal()->vocabulary ) )\n\t\t\t$dr_tax_prefix = '';\n\t\telse if( isset( drupal()->taxonomy_vocabulary ) )\n\t\t\t$dr_tax_prefix = 'taxonomy_';\n\t\t\n\t\t$dr_tax_vocab = $dr_tax_prefix . 'vocabulary';\n\t\t\n\t\t$vocabs = drupal()->$dr_tax_vocab->getRecords();\n\t\t\n\t\tforeach( $vocabs as $vocab ) {\n\t\t\t\n\t\t\tif( 'skip' == $taxonomy_map[ $vocab['name'] ] )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif( 'asis' == $taxonomy_map[ $vocab['name'] ] ) {\n\t\t\t\t\n\t\t\t\techo_now( 'Registering taxonomy for: ' . str_replace(' ','-',strtolower( $vocab['name'] ) ) );\n\t\t\t\t\n\t\t\t\t$vocab_map[ (int)$vocab['vid'] ] = str_replace(' ','-',strtolower( $vocab['name'] ) );\n\t\t\t\t\n\t\t\t\tregister_taxonomy(\n\t\t\t\t\tstr_replace(' ','-',strtolower( $vocab['name'] ) ),\n\t\t\t\t\tarray( 'post', 'page' ),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => $vocab['name'],\n\t\t\t\t\t\t'hierarchical' => (bool)$vocab['hierarchy']\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\techo_now( 'Converting taxonomy: ' . str_replace(' ','-',strtolower( $vocab['name'] ) ) . ' to: ' . $taxonomy_map[ $vocab['name'] ] );\n\t\t\t\t$vocab_map[ (int)$vocab['vid'] ] = $taxonomy_map[ $vocab['name'] ];\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t# Import Drupal terms as WP terms\n\t\t\n\t\t$term_vocab_map = array();\n\t\t\n\t\t$term_data_table = $dr_tax_prefix . 'term_data';\n\t\t$term_hierarchy_table = $dr_tax_prefix. 'term_hierarchy';\n\t\t\n\t\t$terms = drupal()->$term_data_table->getRecords();\n\t\t\n\t\tforeach( $terms as $term ) {\n\n\t\t\t$parent = drupal()->$term_hierarchy_table->parent->getValue(\n\t\t\t\tarray(\n\t\t\t\t\t'tid' => $term['tid']\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif( ! array_key_exists( (int)$term['vid'], $vocab_map ) )\n\t\t\t\tcontinue;\n\n\t\t\tif( apply_filters( 'import_term_skip_term', false, $term, $vocab_map[ (int)$term['vid'] ] ) )\n\t\t\t\tcontinue;\n\n\t\t\t$term_vocab_map[ $term['tid'] ] = $vocab_map[ (int)$term['vid'] ];\n\t\t\t\n//\t\t\techo 'Creating term: ' . $term['name'] . ' from: ' . $term['tid'] . \"<br>\\n\";\n\t\t\t\n\t\t\t$term_result = wp_insert_term(\n\t\t\t\t$term['name'],\n\t\t\t\t$vocab_map[ (int)$term['vid'] ],\n\t\t\t\tarray(\n\t\t\t\t\t'description' => $term['description'],\n\t\t\t\t\t'parent' => (int)$parent\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tif( is_wp_error( $term_result ) ) {\n\t\t\t\t\n\t\t\t\techo 'WARNING - Got error creating term: ' . $term['name']; \n\t\t\t\t\n\t\t\t\tif( in_array( 'term_exists', $term_result->get_error_codes() ) ) {\n\t\t\t\t\t\n\t\t\t\t\techo_now( ' -- term already exists as: ' . $term_result->get_error_data() );\n\t\t\t\t\t$term_id = (int)$term_result->get_error_data();\n\n\t\t\t\t\tself::$term_to_term_map[ (int)$term['tid'] ] = $term_id;\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\techo_now( ' -- error was: ' . print_r( $term_result, true ) );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$term_id = $term_result['term_id'];\n\t\t\t\n\t\t\tself::$term_to_term_map[ (int)$term['tid'] ] = $term_id;\n\t\t\t\n\t\t}\n\t\t\n\t\t# Attach terms to posts\n\t\t\n\t\tif( isset( drupal()->term_node ) )\n\t\t\t$term_node_table = 'term_node';\n\t\telse if( isset( drupal()->taxonomy_index ) )\n\t\t\t$term_node_table = 'taxonomy_index';\n\t\t\n\t\t$term_assignments = drupal()->$term_node_table->getRecords();\n\t\t\n\t\tforeach( $term_assignments as $term_assignment ) {\n\t\t\t\n\t\t\tif( ! array_key_exists( $term_assignment['tid'], $term_vocab_map ) )\n\t\t\t\tcontinue;\n\n\t\t\tif( ! array_key_exists( (int)$term_assignment['tid'], self::$term_to_term_map ) )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tif( ! array_key_exists( $term_assignment['nid'], self::$node_to_post_map ) )\n\t\t\t\tcontinue;\n\t\t\t\n//\t\t\techo 'Adding term: ' . (int)$term_assignment['tid'] . ' from: ' . self::$term_to_term_map[ (int)$term_assignment['tid'] ] . ' to: ' . self::$node_to_post_map[ $term_assignment['nid'] ] . \"<br>\\n\";\n\t\t\t\n\t\t\t$term_result = wp_set_object_terms(\n\t\t\t\tself::$node_to_post_map[ $term_assignment['nid'] ],\n\t\t\t\tarray( (int)self::$term_to_term_map[ (int)$term_assignment['tid'] ] ),\n\t\t\t\t$term_vocab_map[ $term_assignment['tid'] ],\n\t\t\t\ttrue\n\t\t\t);\n\t\t\t\n\t\t\tif( is_wp_error( $term_result ) )\n\t\t\t\tdie( 'Got error setting object term: ' . print_r( $term_result, true ) );\n\n\t\t\tif( empty( $term_result ) )\n\t\t\t\tdie('Failed to set object term properly.');\n\n\t\t}\n\t\t\n\t\tdo_action( 'imported_taxonomies' );\n\t\t\n\t}", "function get_taxonomies_for_attachments($output = 'names')\n {\n }", "function getCsv($parent = 'null', $prefix = '', $lang = 'fr')\n{\n $csv = '';\n\n $tmp = new Folder();\n $tmp->parent_id = $parent;\n if ($tmp->find()) {\n while ($tmp->fetch()) {\n $name = $tmp->number . ' ' . $tmp->{'text_' . $lang};\n if (strlen(trim($name)) < 1) {\n $name = \"[blank keyword -- ID #{$tmp->id}]\";\n }\n\n // Escape name for inclusion in CSV:\n $name = str_replace('\"', '\\\"', $name);\n\n // Update CSV and recurse to next level:\n $csv .= $prefix . '\"' . $name . '\"' . \"\\n\";\n $csv .= getCsv($tmp->id, $prefix . '\"' . $name . '\",');\n }\n }\n\n return $csv;\n}", "public function setTaxonomies() {\n // ## TAXONOMIES ##\n $args = array(\n // ## Fields ##\n array(\n 'taxonomy' => self::TAX_FIELDS,\n 'object_type' => array(self::POST_TYPE_BADGES),\n 'args' => array(\n 'labels' => array(\n 'name' => _x('Fields of education', 'taxonomy general name'),\n 'singular_name' => _x('Field of education', 'taxonomy singular name'),\n 'search_items' => __('Search Fields of education'),\n 'all_items' => __('All Fields of education'),\n 'parent_item' => __('Parent Field'),\n 'parent_item_colon' => __('Parent Field:'),\n 'edit_item' => __('Edit Field'),\n 'update_item' => __('Update Field'),\n 'add_new_item' => __('Add New Field'),\n 'new_item_name' => __('New Field Name'),\n 'menu_name' => __('Field of Education'),\n ),\n 'rewrite' => array('slug' => self::TAX_FIELDS),\n 'hierarchical' => true,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true\n )\n ),\n // ## Levels ##\n array(\n 'taxonomy' => self::TAX_LEVELS,\n 'object_type' => self::POST_TYPE_BADGES,\n 'args' => array(\n 'labels' => array(\n 'name' => _x('Levels', 'taxonomy general name'),\n 'singular_name' => _x('Levels', 'taxonomy singular name'),\n 'search_items' => __('Search Levels'),\n 'all_items' => __('All Levels'),\n 'parent_item' => __('Parent Level'),\n 'parent_item_colon' => __('Parent Level:'),\n 'edit_item' => __('Edit Level'),\n 'update_item' => __('Update Level'),\n 'add_new_item' => __('Add New Level'),\n 'new_item_name' => __('New Level Name'),\n 'menu_name' => __('Level of Education'),\n ),\n 'rewrite' => array('slug' => self::TAX_LEVELS),\n 'hierarchical' => false,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true\n )\n ),\n );\n\n $this->settings->loadTaxonomies($args);\n }", "function create_level_taxonomies() {\n\n\n\t$labels = array(\n\t\t'name' => _x( 'Livello', 'taxonomy general name', 'italiattivo' ),\n\n\t);\n\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\n\t);\n\n\tregister_taxonomy( 'level', array( 'post', 'esercizi', 'frasi', 'quadri'), $args );\n\n}", "function prso_init_theme_taxonomies() {\n\t\n\t//Init vars\n\t$file_path = plugin_dir_path( __FILE__ ) . \"theme-taxonomies\";\n\t\n\t//include_once( $file_path . '/cuztom-taxonomy_TEMPLATE.php' );\n\t\n}", "function func_create_warehouse_taxonomy() {\r\n \r\n// Add new taxonomy, make it hierarchical like categories\r\n//first do the translations part for GUI\r\n \r\n $labels = array(\r\n 'name' => _x( 'Warehouse', 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Warehouse', 'taxonomy singular name' ),\r\n 'search_items' => __( 'Search Warehouse' ),\r\n 'all_items' => __( 'All Warehouse' ),\r\n 'parent_item' => __( 'Parent Warehouse' ),\r\n 'parent_item_colon' => __( 'Parent Warehouse:' ),\r\n 'edit_item' => __( 'Edit Warehouse' ), \r\n 'update_item' => __( 'Update Warehouse' ),\r\n 'add_new_item' => __( 'Add New Warehouse' ),\r\n 'new_item_name' => __( 'New Warehouse Name' ),\r\n 'menu_name' => __( 'Warehouses' ),\r\n ); \r\n \r\n// Now register the taxonomy\r\n \r\n register_taxonomy('warehouses',array('product'), array(\r\n 'hierarchical' => true,\r\n 'labels' => $labels,\r\n 'show_ui' => true,\r\n 'show_admin_column' => true,\r\n 'query_var' => true,\r\n 'rewrite' => array( 'slug' => 'warehouse' , 'with_front' => false),\r\n ));\r\n \r\n}", "function create_software_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Habilidad software', 'taxonomy general name' ),\n 'singular_name' => _x( 'Habilidad software', 'taxonomy singular name' ),\n 'search_items' => __( 'Search software' ),\n 'all_items' => __( 'Habilidades software' ),\n 'parent_item' => __( 'Parent software' ),\n 'parent_item_colon' => __( 'Parent software:' ),\n 'edit_item' => __( 'Editar software' ), \n 'update_item' => __( 'Actualizar software' ),\n 'add_new_item' => __( 'Nueva habilidad de software' ),\n 'new_item_name' => __( 'Nueva habilidad software' ),\n 'menu_name' => __( 'Habilidad software' ),\n ); \t\n\n register_taxonomy('habilidad-software',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'habilidad-software' ),\n ));\n\n}", "function property_type_taxonomy() {\n\n\t\t$name = __( 'Property Types', 'wp_listings' );\n\t\t$singular_name = __( 'Property Type', 'wp_listings' );\n\n\t\treturn array(\n\t\t\t'property-types' => array(\n\t\t\t\t'labels' => array(\n\t\t\t\t\t'name'\t\t\t\t\t=> strip_tags( $name ),\n\t\t\t\t\t'singular_name' \t\t=> strip_tags( $singular_name ),\n\t\t\t\t\t'menu_name'\t\t\t\t=> strip_tags( $name ),\n\n\t\t\t\t\t'search_items'\t\t\t=> sprintf( __( 'Search %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'popular_items'\t\t\t=> sprintf( __( 'Popular %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'all_items'\t\t\t\t=> sprintf( __( 'All %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'edit_item'\t\t\t\t=> sprintf( __( 'Edit %s', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'update_item'\t\t\t=> sprintf( __( 'Update %s', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'add_new_item'\t\t\t=> sprintf( __( 'Add New %s', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'new_item_name'\t\t\t=> sprintf( __( 'New %s Name', 'wp_listings' ), strip_tags( $singular_name ) ),\n\t\t\t\t\t'add_or_remove_items'\t=> sprintf( __( 'Add or Remove %s', 'wp_listings' ), strip_tags( $name ) ),\n\t\t\t\t\t'choose_from_most_used'\t=> sprintf( __( 'Choose from the most used %s', 'wp_listings' ), strip_tags( $name ) )\n\t\t\t\t),\n\t\t\t\t'hierarchical' => true,\n\t\t\t\t'rewrite' => array( __( 'property-types', 'wp_listings' ), 'with_front' => false ),\n\t\t\t\t'editable' => 0\n\t\t\t)\n\t\t);\n\n\t}", "function country_custom_taxonomies() {\n\t$labels = array(\n\t\t'name' => 'Страны',\n\t\t'singular_name' => 'Страна',\n\t\t'search_items' => 'Поиск Стран',\n\t\t'all_items' => 'Все Страны',\n\t\t'parent_item' => 'Родительское поле',\n\t\t'parent_item_colon' => 'Родительское поле:',\n\t\t'edit_item' => 'Редактирование Страны',\n\t\t'update_item' => 'Обновить Страны',\n\t\t'add_new_item' => 'Добавить новое рабочее поле',\n\t\t'new_item_name' => 'Имя нового поля',\n\t\t'menu_name' => 'Страны'\n\t);\n\n\t$args = array(\n\t\t'hierarchical' => true,\n\t\t'labels' => $labels,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'query_var' => true,\n\t\t'rewrite' => array( 'slug' => 'country' )\n\t);\n\n\tregister_taxonomy('country', array('film'), $args);\n\n}", "function ajax_genmapper_import_from_db()\n{\n\tglobal $wpdb;\n\tglobal $genmap_fields_string;\n\tglobal $genmap_t_genmap_nodes;\n\tglobal $genmap_t_genmap;\n\t\n\t$genmap_id = isset($_GET['genmap_id']) && is_numeric($_GET['genmap_id']) ? intval($_GET['genmap_id']):null;\n\t\n\terror_log(__FUNCTION__ .' genmapid:'.$genmap_id);\n\t\n\tif ( ! $genmap_id )\n\t{\n\t\techo 'ERROR:'.__LINE__;\n\t\twp_die();\n\t}\n\t\n\tgenmapper_repair_genmap($genmap_id);\n\t$eol='';\n\t$csv = $genmap_fields_string;\n\t$csv.=PHP_EOL;\n\n\n\t//header('Content-type: text/plain');\n//\t$q=\"SELECT $genmap_fields_string FROM $genmap_t_genmap_nodes WHERE genmap_id=$genmap_id AND `deleted` IS NULL ORDER BY id\";\n//\terror_log(\"Query: \".PHP_EOL.$q.PHP_EOL);\n//\t$rows=$wpdb->get_results($q);\n\t$rows = genmapper_get_nodes($genmap_id);\n\tif ( false ) //regi stringes megoldas\n\t{\n\tforeach ($rows as $r )\n\t{\n\t\t$csv.=$eol;\n\t\t$eol=PHP_EOL;\n\t\tforeach ($r as $f )\n\t\t{\n\t\t\t$csv.='\"'.$f.'\"'.',';\n\t\t}\n\t}\n\t}\n\tif ( true ) // uj, a memoriaban csv filet irok pelda alapjan\n\t{\n\t$fp = fopen('php://temp', 'w+');\n\tforeach ($rows as $r) {\n\t\t$fields = array();\n\n\t\tforeach ($r as $f )\n\t\t{\n\t\t\t$fields[] = $f;\n\t\t}\n\t // Add row to CSV buffer\n\t fputcsv($fp, $fields);\n\t}\n\trewind($fp); // Set the pointer back to the start\n\n\t$csvhead = $genmap_fields_string.PHP_EOL;\n\t$default_node_csv_line = \"0,,Default Leader's Name,fullTimeMissionary,,,0,0,0,0,0,0,0,0,0,0,0,0,0,,,,1,action,contact\";\n\n\t\n\t$csv = stream_get_contents($fp); // Fetch the contents of our CSV\n\t$csv = strlen($csv)>0 ? $csv : $default_node_csv_line;\n\t\n\tfclose($fp); // Close our pointer and free up memory and /tmp space\n\t}\n\t$answer['genmap']=genmapper_get_genmap($genmap_id);\n\t$answer['csv']=$csvhead.$csv;\n\t\n\techo json_encode($answer);\n\twp_die();\n}", "protected function initCSV() {}", "function add_tax_columns( $columns ) {\r\n\r\n\t\t/* keep trickery for post_tag and category' replacement until WP 3.5 */\r\n\t\tswitch ( $this->taxonomy ) {\r\n\t\t\tcase 'post_tag' :\r\n\t\t\t\t$json = str_replace( \"tags\", \"radio-{$this->taxonomy}\" , json_encode($columns));\r\n \t\t\t\t$columns = json_decode($json, true);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'category' :\r\n\t\t\t\t$json = str_replace( \"categories\", \"radio-{$this->taxonomy}\" , json_encode($columns));\r\n \t\t\t$columns = json_decode($json, true);\r\n \t\t\tbreak;\r\n \t\tdefault:\r\n\t\t\t\t$json = str_replace( \"taxonomy-{$this->taxonomy}\", \"radio-{$this->taxonomy}\" , json_encode($columns));\r\n \t\t\t$columns = json_decode($json, true);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn $columns;\r\n\t}", "function rhd_save_tax_meta( $term_id ) {\n\tif ( isset( $_POST['term_meta'] ) ) {\n\t\t$term_meta = array();\n\n\t\t// Sanitize me, if necessary.\n\t\t$term_meta['excluded'] = isset ( $_POST['term_meta']['excluded'] ) ? intval( $_POST['term_meta']['excluded'] ) : '';\n\n\t\tupdate_option( \"taxonomy_$term_id\", $term_meta );\n\t}\n}", "function prepare_term_reference_field_multilingual(&$row, $field_name_base, $vocabulary) {\n if (empty($row->{$field_name_base . '_en'})) {\n return;\n }\n else if (is_array($row->{$field_name_base . '_en'})) {\n $tids = array();\n foreach ($row->{$field_name_base . '_en'} as $delta => $term_name) {\n if ($term = taxonomy_get_term_by_name($term_name, $vocabulary)) {\n $tids[] = reset($term)->tid;\n }\n else {\n $translations = array();\n if (!empty($row->{$field_name_base . '_fr'}[$delta])) {\n $translations['fr'] = $row->{$field_name_base . '_fr'}[$delta];\n }\n if (!empty($row->{$field_name_base . '_es'}[$delta])) {\n $translations['es'] = $row->{$field_name_base . '_es'}[$delta];\n }\n $tids[] = elis_migration_create_taxonomy_term($term_name, $vocabulary, $translations);\n }\n }\n $row->{$field_name_base . '_en'} = $tids;\n } else {\n // Handle single-valued fields\n $term_name = $row->{$field_name_base . '_en'};\n if ($term = taxonomy_get_term_by_name($term_name, $vocabulary)) {\n $row->{$field_name_base . '_en'} = reset($term)->tid;\n }\n else {\n $translations = array();\n if (!empty($row->{$field_name_base . '_fr'})) {\n $translations['fr'] = $row->{$field_name_base . '_fr'};\n }\n if (!empty($row->{$field_name_base . '_es'})) {\n $translations['es'] = $row->{$field_name_base . '_es'};\n }\n $row->{$field_name_base . '_en'} = elis_migration_create_taxonomy_term($term_name, $vocabulary, $translations);\n }\n }\n }", "function build_taxonomies() {\n// custom tax\n register_taxonomy( 'from', array('menu'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'menu-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'cpt-tag',array('menu','recipe','sources-resources','tips-quips','style-points'), \n array( \n 'hierarchical' => false, // true = acts like categories false = acts like tags\n 'label' => 'Tags',\n 'query_var' => true,\n 'show_admin_column' => true,\n 'public' => true,\n 'rewrite' => true,\n '_builtin' => true\n ) );\n register_taxonomy( 'from-5', array('recipe'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'recipe-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-2', array('sources-resources'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'sources-resources-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-3', array('tips-quips'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'tips-quips-from' ),\n\t\t\t'_builtin' => true\n ) );\n \n register_taxonomy( 'from-4', array('style-points'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'From',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'style-points-from' ),\n\t\t\t'_builtin' => true\n ) );\n register_taxonomy( 'sub', array('menu'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'menu-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-5', array('recipe'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'recipe-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-2', array('sources-resources'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'sources-resources-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-3', array('tips-quips'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'tips-quips-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n register_taxonomy( 'sub-4', array('style-points'),\n\t\tarray(\n\t\t\t'hierarchical' => true, // true = acts like categories false = acts like tags\n\t\t\t'label' => 'Sub',\n\t\t\t'query_var' => true,\n\t\t\t'show_admin_column' => true,\n\t\t\t'public' => true,\n\t\t\t'rewrite' => array( 'slug' => 'style-points-sub' ),\n\t\t\t'_builtin' => true\n\t\t) );\n}", "function acf_prepare_field_for_export($field)\n{\n}", "function wpfolio_create_taxonomies() {\nregister_taxonomy('medium', 'post', array( \n\t'label' => 'Medium',\n\t'hierarchical' => false, \n\t'query_var' => true, \n\t'rewrite' => true,\n\t'public' => true,\n\t'show_ui' => true,\n\t'show_tagcloud' => true,\n\t'show_in_nav_menus' => true,));\n}", "public function flo_register_form_entries_taxonomy(){\n\t\tregister_taxonomy(\n\t\t\t'entry_form',\n\t\t\t'flo_form_entry', // custom post type for which we register this taxonomy\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Forms','flo-forms' ),\n\t\t\t\t'rewrite' => array( 'slug' => 'entry_form' ),\n\t\t\t\t'show_admin_column' => true,\n\t\t\t\t'hierarchical' => true,\n\t\t\t)\n\t\t);\n\t}", "function echocsv($fields)\r\n{\r\n $separator = '';\r\n foreach ($fields as $field) {\r\n if (preg_match('/\\\\r|\\\\n|,|\"/', $field)) {\r\n $field = '\"' . str_replace('\"', '\"\"', $field) . '\"';\r\n }\r\n echo $separator . $field;\r\n $separator = ',';\r\n }\r\n echo \"\\r\\n\";\r\n}", "function wp_print_plugin_file_tree($tree, $label = '', $level = 2, $size = 1, $index = 1)\n {\n }", "function _webform_csv_headers_file($component) {\r\n $header = array();\r\n // Two columns in header.\r\n $header[0] = array('', '');\r\n $header[1] = array($component['name'], '');\r\n $header[2] = array(t('Name'), t('Filesize (KB)'));\r\n return $header;\r\n}", "function my_register_taxonomies() {\r\n\t}", "function _ficalink_taxonomy_default_vocabularies() {\n $items = array(\n array(\n 'name' => 'Authors',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '1',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'authors',\n ),\n array(\n 'name' => 'Characters',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '1',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'characters',\n ),\n array(\n 'name' => 'Genres',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '0',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'genres',\n ),\n array(\n 'name' => 'Series',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '1',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'series',\n ),\n array(\n 'name' => 'Tags',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '0',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'tags',\n ),\n array(\n 'name' => 'Warnings',\n 'description' => '',\n 'help' => '',\n 'relations' => '1',\n 'hierarchy' => '0',\n 'multiple' => '0',\n 'required' => '0',\n 'tags' => '0',\n 'module' => 'taxonomy',\n 'weight' => '0',\n 'nodes' => array(),\n 'machine' => 'warnings',\n ),\n );\n return $items;\n}", "public function csvData()\n {\n }", "function get_desc_file_fields() {\n\treturn array (\n\t\t\t\"Taxonomic name (Name)\",\n\t\t\t\"Diagnostic Description\",\n\t\t\t\"Distribution\",\n\t\t\t\"Habitat\",\n\t\t\t\"Size\",\n\t\t\t\"Habitus image\",\n\t\t\t\"Morphological Description\",\n\t\t\t\"Habitat image\",\n\t\t\t\"Simlar Species (Name)\",\n\t\t\t\"Pronotum image\",\n\t\t\t\"Elytral microsculpture\",\n\t\t\t\"Genitalia left image\",\n\t\t\t\"General description\",\n\t\t\t\"Genetics\" \n\t);\n}", "function apachesolr_add_taxonomy_to_document(&$document, $node) {\r\n if (isset($node->taxonomy) && is_array($node->taxonomy)) {\r\n foreach ($node->taxonomy as $term) {\r\n // Double indexing of tids lets us do effecient searches (on tid)\r\n // and do accurate per-vocabulary faceting.\r\n\r\n // By including the ancestors to a term in the index we make\r\n // sure that searches for general categories match specific\r\n // categories, e.g. Fruit -> apple, a search for fruit will find\r\n // content categorized with apple.\r\n $ancestors = taxonomy_get_parents_all($term->tid);\r\n foreach ($ancestors as $ancestor) {\r\n $document->setMultiValue('tid', $ancestor->tid);\r\n $document->setMultiValue('im_vid_'. $ancestor->vid, $ancestor->tid);\r\n $name = apachesolr_clean_text($ancestor->name);\r\n $document->setMultiValue('vid', $ancestor->vid);\r\n $document->{'ts_vid_'. $ancestor->vid .'_names'} .= ' '. $name;\r\n // We index each name as a string for cross-site faceting\r\n // using the vocab name rather than vid in field construction .\r\n $document->setMultiValue('sm_vid_'. apachesolr_vocab_name($ancestor->vid), $name);\r\n }\r\n }\r\n }\r\n}", "function upload_csv($id) {\n ini_set(\"auto_detect_line_endings\", true);\n\n $c = print_r($_FILES, true);\n $this->hog(\"$c\");\n\n if (isset($_POST['csv_upload_nonce']) == false){\n return $id;\n }\n /* --- security verification --- */\n if(!wp_verify_nonce($_POST['csv_upload_nonce'], plugin_basename(__FILE__))) {\n return $id;\n } // end if\n\n if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {\n return $id;\n } // end if\n\n if('delivery_zone' == $_POST['post_type']) {\n if(!current_user_can('edit_page', $id)) {\n return $id;\n } // end if\n } else {\n if(!current_user_can('edit_page', $id)) {\n return $id;\n } // end if\n } // end if\n /* - end security verification - */\n\n\n\n\n // Make sure the file array isn't empty\n if(!empty($_FILES['delivery_zone_csv']['name'])) {\n\n // Setup the array of supported file types. In this case, it's just PDF.\n $supported_types = array('text/csv');\n\n\n\n // Get the file type of the upload\n $arr_file_type = wp_check_filetype(basename($_FILES['delivery_zone_csv']['name']));\n $uploaded_type = $arr_file_type['type'];\n\n // Check if the type is supported. If not, throw an error.\n if(in_array($uploaded_type, $supported_types)) {\n\n // Use the WordPress API to upload the file\n $csv = file_get_contents($_FILES['delivery_zone_csv']['tmp_name']);\n $filepath = $_FILES['delivery_zone_csv']['tmp_name'];\n\n $this->hog(\"Type $uploaded_type $filepath\");\n\n\n // Loop variables\n $rowi = 0;\n $headers = array();\n $records = array();\n\n // Perform loop\n if (($handle = fopen($filepath, \"r\")) !== FALSE) {\n while (($data = fgetcsv($handle, 1000, \",\")) !== FALSE) {\n $rowi++;\n\n if ($rowi == 1) {\n $num = count($data);\n for ($c=0; $c < $num; $c++) {\n $headers[] = strtolower(str_replace(' ', '_', $data[$c]));\n $this->hog(\"Header $data[$c] $num, $c\");\n }\n continue;\n }\n\n\n $record = array();\n for ($c=0; $c < $num; $c++) {\n $record[$headers[$c]] = $data[$c];\n }\n $records[] = $record;\n\n }\n fclose($handle);\n }\n\n $r = print_r($records, true);\n $this->hog(\"Records<br><pre>$r</pre>\");\n\n\n\n // Update ACF Fields\n $field_key = \"postcodes\";\n //$value = get_field($field_key, $post_id);\n update_field( $field_key, $records, $id );\n\n\n\n return $id;\n\n } else {\n //wp_die(\"The file type that you've uploaded is not a CSV.\");\n } // end if/else\n\n } // end if\n else {\n return $id;\n }\n\n return $id;\n\n }", "public function create_taxonomies() {\n \n }", "function custom_taxonomies() {\n }", "function wp_nav_menu_taxonomy_meta_boxes()\n {\n }", "public function render_edit_fields( $term, $taxonomy ) {\n\n\t\t\t$format = '<tr class=\"form-field cherry-term-meta-wrap\"><th>&nbsp;</th><td>%s</td></tr>';\n\t\t\techo $this->get_fields( $term, $taxonomy, $format );\n\t\t}", "function import_end() {\n\t\t//wp_import_cleanup( $this->id );\n\n\t\twp_cache_flush();\n\t\tforeach ( get_taxonomies() as $tax ) {\n\t\t\tdelete_option( \"{$tax}_children\" );\n\t\t\t_get_term_hierarchy( $tax );\n\t\t}\n\n\t\twp_defer_term_counting( false );\n\t\twp_defer_comment_counting( false );\n\n\t\techo '<p>导入成功.' . ' <a href=\"' . admin_url() . '\">Have fun!</a>' . '</p>';\n\n\t\tdo_action( 'import_end' );\n\t}", "function add_educational_audience() {\n\t$types = array('post','page','attachment','nav_menu_item', 'learning_resource');\n register_taxonomy('asn_educational_audience', $types, array(\n 'hierarchical' => false,\n 'labels' => array(\n 'name' => _x( 'Educational Audience', 'taxonomy general name' ),\n 'singular_name' => _x( 'Educational Audience', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Educational Audiences' ),\n 'all_items' => __( 'All Educational Audiences' ),\n 'parent_item' => __( 'Parent Educational Audience' ),\n 'parent_item_colon' => __( 'Parent Educational Audience:' ),\n 'edit_item' => __( 'Edit Educational Audience' ),\n 'update_item' => __( 'Update Educational Audience' ),\n 'add_new_item' => __( 'Add New Educational Audience' ),\n 'new_item_name' => __( 'New Educational Audience Name' ),\n 'menu_name' => __( 'Educational Audience' ),\n ),\n //Slugs used for this taxonomy\n 'rewrite' => array(\n 'slug' => 'educational_audience', \n 'with_front' => false,\n 'hierarchical' => false \n ),\n ));\n}", "function create_taxonomies() {\n\t// taxonomy_init(\n\t// \t$settings = array(\n\t// \t\t'slug' \t=> 'sample',\t\t\t// Required\n\t// \t\t'singular' \t=> 'Sample',\t\t\t// Required\n\t// \t\t'plural' \t=> 'Samples',\t\t\t// Required\n\t// \t\t'post_types'\t=> 'your_CPT',\t\t\t// Required\n\t// \t)\n\t// );\n}", "public function writeCsvFieldsProductos($id,$name,$parent,$reference,$image,$wholesaleprice,$price,$feature,$description,$manufacturer,$shortDescription){\n //echo \"La descripcion 3 es: \".$shortDescription.\"<br>\";\n $vector = array(\n $id,\n 1,\n $name,\n $parent,\n $price,\n 31,\n $wholesaleprice,\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n $reference,\n \"\",\n \"\",\n $manufacturer,\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n 100,\n 1,\n \"both\",\n \"\",\n \"\",\n \"\",\n $shortDescription,\n $description,\n $name,\n $name,\n $name,\n $shortDescription,\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n \"\",\n $image,\n \"\",\n $feature,\n 1,\n \"new\",\n \"0\",\n \"0\",\n \"0\",\n \"0\",\n \"1\",\n \"\",\n \"\",\n \"\"\n );\n return $vector;\n }", "public function get_fields( $term, $taxonomy, $format = '%s' ) {\n\n\t\t\t$result = '';\n\n\t\t\tforeach ( $this->args['fields'] as $key => $field ) {\n\n\t\t\t\tif ( in_array( $key, Cherry_Term_Meta::$register_fields ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tCherry_Term_Meta::$register_fields[] = $key;\n\t\t\t\t}\n\n\t\t\t\tif ( false !== $term ) {\n\t\t\t\t\t$value = get_term_meta( $term->term_id, $key, true );\n\t\t\t\t} else {\n\t\t\t\t\t$value = '';\n\t\t\t\t}\n\n\t\t\t\t$value = ! empty( $value ) ? $value : Cherry_Toolkit::get_arg( $field, 'value', '' );\n\n\t\t\t\tif ( isset( $field['options_callback'] ) ) {\n\t\t\t\t\t$options = call_user_func( $field['options_callback'] );\n\t\t\t\t} else {\n\t\t\t\t\t$options = Cherry_Toolkit::get_arg( $field, 'options', array() );\n\t\t\t\t}\n\n\t\t\t\t$args = array(\n\t\t\t\t\t'type' => Cherry_Toolkit::get_arg( $field, 'type', 'text' ),\n\t\t\t\t\t'id' => $key,\n\t\t\t\t\t'name' => $key,\n\t\t\t\t\t'value' => $value,\n\t\t\t\t\t'label' => Cherry_Toolkit::get_arg( $field, 'label', '' ),\n\t\t\t\t\t'options' => $options,\n\t\t\t\t\t'multiple' => Cherry_Toolkit::get_arg( $field, 'multiple', false ),\n\t\t\t\t\t'filter' => Cherry_Toolkit::get_arg( $field, 'filter', false ),\n\t\t\t\t\t'size' => Cherry_Toolkit::get_arg( $field, 'size', 1 ),\n\t\t\t\t\t'null_option' => Cherry_Toolkit::get_arg( $field, 'null_option', 'None' ),\n\t\t\t\t\t'multi_upload' => Cherry_Toolkit::get_arg( $field, 'multi_upload', true ),\n\t\t\t\t\t'library_type' => Cherry_Toolkit::get_arg( $field, 'library_type', 'image' ),\n\t\t\t\t\t'upload_button_text' => Cherry_Toolkit::get_arg( $field, 'upload_button_text', 'Choose' ),\n\t\t\t\t\t'max_value' => Cherry_Toolkit::get_arg( $field, 'max_value', '100' ),\n\t\t\t\t\t'min_value' => Cherry_Toolkit::get_arg( $field, 'min_value', '0' ),\n\t\t\t\t\t'step_value' => Cherry_Toolkit::get_arg( $field, 'step_value', '1' ),\n\t\t\t\t\t'style' => Cherry_Toolkit::get_arg( $field, 'style', 'normal' ),\n\t\t\t\t\t'toggle' => Cherry_Toolkit::get_arg( $field, 'toggle', array(\n\t\t\t\t\t\t'true_toggle' => 'On',\n\t\t\t\t\t\t'false_toggle' => 'Off',\n\t\t\t\t\t\t'true_slave' => '',\n\t\t\t\t\t\t'false_slave' => '',\n\t\t\t\t\t) ),\n\t\t\t\t);\n\n\t\t\t\t$current_element = $this->ui_builder->get_ui_element_instance( $args['type'], $args );\n\n\t\t\t\t$result .= sprintf( $format, $current_element->render() );\n\n\t\t\t}\n\n\t\t\treturn $result;\n\n\t\t}", "function create_dpto_taxonomies() {\n\n $labels = array(\n 'name' => _x( 'Departamento', 'taxonomy general name' ),\n 'singular_name' => _x( 'Departamento', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Genres' ),\n 'all_items' => __( 'Departamentos' ),\n 'parent_item' => __( 'Parent Genre' ),\n 'parent_item_colon' => __( 'Parent Genre:' ),\n 'edit_item' => __( 'Editar departamento' ), \n 'update_item' => __( 'Actualizar departamento' ),\n 'add_new_item' => __( 'Nuevo departamento' ),\n 'new_item_name' => __( 'Nuevo departamento' ),\n 'menu_name' => __( 'Departamentos' ),\n ); \t\n\n register_taxonomy('departamento',array('ofertas'), array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'departamento' ),\n ));\n\n}", "function acf_upgrade_550_termmeta()\n{\n}", "function theme_helper_import_field_table($form) {\n $header = $form['#node_import-columns'];\n $rows = array();\n $groups = array();\n\n foreach (element_children($form) as $child) {\n if (!isset($form[$child]['#type']) || $form[$child]['#type'] != 'value') {\n $title = check_plain($form[$child]['#title']);\n $description = $form[$child]['#description'];\n $group = isset($form[$child]['#node_import-group']) ? $form[$child]['#node_import-group'] : '';\n unset($form[$child]['#title']);\n unset($form[$child]['#description']);\n\n if (!isset($groups[$group])) {\n $groups[$group] = array();\n }\n\n $groups[$group][] = array(\n check_plain($title) . '<div class=\"description\">'. $description .'</div>',\n drupal_render($form[$child]),\n );\n }\n }\n\n if (isset($groups['']) && !empty($groups[''])) {\n $rows = array_merge($rows, $groups['']);\n }\n\n foreach ($groups as $group => $items) {\n if ($group !== '' && !empty($items)) {\n $rows[] = array(\n array('data' => $group, 'colspan' => 2, 'class' => 'region'),\n );\n $rows = array_merge($rows, $items);\n }\n }\n\n if (empty($rows)) {\n $rows[] = array(array('data' => $form['#node_import-empty'], 'colspan' => 2));\n }\n\n return theme('table', $header, $rows) . drupal_render($form);\n}" ]
[ "0.67761356", "0.6022283", "0.5773605", "0.5676778", "0.566529", "0.55548733", "0.5403643", "0.5386", "0.5361546", "0.5361546", "0.5361546", "0.535028", "0.533285", "0.5332348", "0.53029525", "0.5293974", "0.52872795", "0.5263553", "0.5257581", "0.5257059", "0.52481955", "0.5240646", "0.5240174", "0.52275264", "0.52273107", "0.52245295", "0.5185643", "0.5178159", "0.51776844", "0.5177254", "0.5165541", "0.51652306", "0.515245", "0.51425064", "0.5125301", "0.51247257", "0.50979483", "0.5097425", "0.5095852", "0.5091132", "0.50870365", "0.5079328", "0.5077589", "0.5075405", "0.5072292", "0.5064821", "0.50491166", "0.50447744", "0.5042876", "0.50412154", "0.5040083", "0.5030491", "0.50263083", "0.50251955", "0.5016846", "0.5015163", "0.5010979", "0.5005089", "0.5000162", "0.49981812", "0.49977908", "0.4985111", "0.49827218", "0.49777824", "0.49749768", "0.49686673", "0.49639538", "0.49635774", "0.49538067", "0.49387923", "0.49359518", "0.49344137", "0.493208", "0.49317276", "0.49299458", "0.49268588", "0.49107778", "0.49065426", "0.49019217", "0.49014223", "0.49011612", "0.48998502", "0.48923603", "0.48815507", "0.48799273", "0.48756933", "0.48726642", "0.48705655", "0.486381", "0.48559844", "0.48536715", "0.48467118", "0.48453015", "0.4839115", "0.48380372", "0.483582", "0.48200572", "0.48153844", "0.48138595", "0.48079556" ]
0.55318075
6
Try to split lines of text correctly regardless of the platform the text is coming from.
function split_lines( $text ) { $lines = preg_split( "/(\r\n|\n|\r)/", $text ); return $lines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLineBreaks($text) {\r\n $mb_encoding = $this->encoding->getEncodingType();\r\n $use_mb = $this->encoding->useMB();\r\n if (!is_string($text)) { \r\n //make sure we have something\r\n if ($use_mb) {\r\n return array (mb_convert_encoding(\"\",$mb_encoding));\r\n }else {\r\n return array(\"\");\r\n }\r\n }\r\n //split up the paragaph along newlines\r\n $paragraphs = $this->getParagraphs($text);\r\n $text_lines = array();\r\n foreach ($paragraphs as $paragraph) {\r\n if ($use_mb) {\r\n $text_lines[] = mb_convert_encoding(\"\", $mb_encoding);\r\n } else {\r\n $text_lines[] = \"\";\r\n }\r\n switch ($this->algorithm) {\r\n case 'Knuth':\r\n $this->Knuth($paragraph,$text_lines);\r\n break;\r\n case 'Greedy':\r\n $this->Greedy($paragraph,$text_lines);\r\n break;\r\n default: //truncate\r\n $this->Truncate($paragraph,$text_lines);\r\n break;\r\n }\r\n }\r\n return $text_lines;\r\n }", "function NbLinesSplit($w,$txt,$lineno)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n $cnt=0;\n while($i<$nb)\n {\n $c=$s[$i];\n $cnt+=1;\n \t\t$a[$cnt]= $nl;\n if($nl==$lineno){\n \t$Stringposition=$i;\n \tbreak;\n }\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n \t \n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n \n }\n else{\n $i++;\n \n }\n /* if($nl=='12'){\n \t$Stringposition=$i;\n \tbreak;\n }*/\n }\n return $Stringposition;\n}", "public static function normalizeLineBreaks($text) {}", "public function splitLine() {\n $this->words = preg_split('/[\\' \\',\\t]+/', $this->line);\n }", "function getLines()\n\t{\n\t\t//echo 'font file = ' . $this->calculateFontFile() . ' ' . $this->textFont . '<br>';\n\t\tif(isset($this->lines) && $this->width == $this->lines[\"width\"] && $this->textSize == $this->lines[\"textSize\"])\n\t\t{\n\t\t\treturn $this->lines;\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$rawPars = explode(\"\\r\\n\", $this->contents);\n\t\t\t\n\t\t\t//\tgo through each paragraph and find the line breaks\n\t\t\t//\t\twhen we're done we should have an array processed\n\t\t\t//\t\tparagraphs. Each paragraph should be an array of \n\t\t\t//\t\tlines.\n\t\t\t//echo \"the font it is selecting \" . $this->calculateFontFile() . '<br>';\n\t\t\t$this->pdf->selectFont($this->calculateFontFile());\n\t\t\t$lines = array();\n\t\t\t$lines2 = array();\n\t\t\t$lines[\"longest\"] = 0;\n\t\t\t$lines[\"width\"] = $this->width;\n\t\t\t$lines[\"textSize\"] = $this->textSize;\n\t\t\tif(strlen($this->contents) == 1)\n\t\t\t{\n\t\t\t\t$lines[\"longest\"] = $this->pdf->getTextWidth($this->textSize, $this->contents);\n\t\t\t\t$lines[\"length\"][] = $lines[\"longest\"];\n\t\t\t\t$lines[\"text\"][] = $this->contents;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile( list($parNum, $thisPar) = each($rawPars) )\n\t\t\t\t{\n\t\t\t\t\t//\tinit your data\n\n\t\t\t\t\t$len = strlen($thisPar);\n\t\t\t\t\t$last = $len - 1;\n\t\t\t\t\t$lastEnd = -1;\n\t\t\t\t\t$curStart = 0;\n\t\t\t\t\t$curLen = 0;\n\n\t\t\t\t\tif( strlen($thisPar) == 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\t$lines[\"text\"][] = \"\";\n\t\t\t\t\t\t$lines[\"length\"][] = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor($i = 1; $i < $len; $i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//\tif we are at a breaking point.\n\t\t\t\t\t\t//\t\ta breaking point is either\n\t\t\t\t\t\t//\t\t\ta real char before a space or\n\t\t\t\t\t\t//\t\t\tthe last char in the string\n\n\t\t\t\t\t\tif( (($thisPar[$i] == \" \") && ($thisPar[$i - 1] != \" \")) || ($i == $last) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$word = substr($thisPar, $lastEnd + 1, ($i) - $lastEnd);\n\n\t\t\t\t\t\t\t$wordLen = ($this->pdf->getTextWidth($this->textSize, $word));\n\n\t\t\t\t\t\t\t//\tdid we find a line break yet\n\n\t\t\t\t\t\t\tif($i == $last)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif( $curLen + $wordLen > $this->width )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$line = substr($thisPar, $curStart, $lastEnd - $curStart + 1);\n\n\t\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t\t$lines[\"length\"][] = $curLen;\n\t\t\t\t\t\t\t\t\tif($curLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $curLen;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$line = substr($thisPar, $lastEnd + 1, $i - $lastEnd);\n\t\t\t\t\t\t\t\t\t$word = trim($word);\n\t\t\t\t\t\t\t\t\t$this->pdf->getTextWidth($this->textSize, $word);\n\n\t\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t\t$lines[\"length\"][] = $wordLen;\n\t\t\t\t\t\t\t\t\tif($wordLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $wordLen;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$line = substr($thisPar, $curStart, $i - $curStart + 1);\n\t\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t\t$lines[\"length\"][] = $curLen + $wordLen;\n\t\t\t\t\t\t\t\t\tif($curLen + $wordLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $curLen + $wordLen;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( $curLen + $wordLen > $this->width )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$line = substr($thisPar, $curStart, $lastEnd - $curStart + 1);\n\t\t\t\t\t\t\t\t$lines[\"text\"][] = $line;\n\t\t\t\t\t\t\t\t$lines[\"length\"][] = $curLen;\n\t\t\t\t\t\t\t\tif($curLen > $lines[\"longest\"])\n\t\t\t\t\t\t\t\t\t$lines[\"longest\"] = $curLen;\n\n\t\t\t\t\t\t\t\t$curLen = $wordLen;\n\t\t\t\t\t\t\t\t$curStart = $lastEnd + 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$curLen += $wordLen;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t$lastEnd = $i;\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$this->lines = $lines;\n\t\t\t//$this->pdf->selectFont(ZOOP_DIR . \"/pdf/fonts/Helvetica-Bold.afm\");\n\t\t\t//echo_r($lines);\n\t\t\t//echo 'font = ' . $this->textFont . ' bold = ' . ($this->bold ? 1 : 0) . ' italics = ' . ($this->italics ? 1 : 0) . ' size = ' . $this->textSize . ' ' . $this->bold . ' ' . $this->bold . '<br>';\n\t\t\t//echo 'true length = ' . $this->pdf->getTextWidth($this->textSize, 'asdfkla sdfklasdfjlkas;dfgj aslkfj alkw[sfjeoifjsa fi;awesfil;ifas efjilse;filaws eji iiiiiiiiiiiiiii') . '<br>';\n\t\t\treturn $this->lines;\n\t\t}\n\t}", "public function getTextLines();", "public function getParagraphs ($text){\r\n $mb_encoding = $this->encoding->getEncodingType();\r\n if ($this->encoding->useMB()) {\r\n $newline_pattern = '[\\n' . (string) 0xE2 . \r\n (string) 0x80 .\r\n (string) 0xA8 . \r\n (string) 0xE2 . \r\n (string) 0x80 . \r\n (string) 0xA9 . ']';\r\n //0x2028 codepoint is E2 80 A8 in UTF-8 \r\n //0x2029 codepoint is E2 80 A9 in UTF-8 \r\n if ($mb_encoding == 'UTF-8') {\r\n $paragraphs = mb_split ($newline_pattern,$text);\r\n $num_paragraphs = count($paragraphs) ;\r\n for ($i = 0; $i < $num_paragraphs; $i++) { \r\n //trim white space\r\n $paragraphs[$i] = preg_replace('/^\\p{Zs}+/u',\"\",$paragraphs[$i]);\r\n $paragraphs[$i] = preg_replace('/\\p{Zs}+$/u',\"\",$paragraphs[$i]);\r\n }\r\n } else {\r\n //we are in a horrible state of affairs with respect to PHP's mb regexp engine.\r\n $utf8_text = mb_convert_encoding($text,'UTF-8',$mb_encoding);\r\n $pargraphs = mb_split ($newline_pattern,$utf8_text);\r\n $num_paragraphs = count($paragraphs) ;\r\n for ($i = 0; $i < $num_paragraphs; $i++) {\r\n //trim white space\r\n $paragraphs[$i] = preg_replace('/^\\p{Zs}+/u',\"\",$paragraphs[$i]);\r\n $paragraphs[$i] = preg_replace('/\\p{Zs}+$/u',\"\",$paragraphs[$i]);\r\n //convert back to the user encoding\r\n $paragraphs[$i] = mb_convert_encoding($paragraphs[$i],$mb_encoding,'UTF-8');\r\n }\r\n }\r\n } else {\r\n $paragraphs = explode(\"\\n\",$text);\r\n $num_paragraphs = count($paragraphs) ;\r\n for ($i = 0; $i < $num_paragraphs; $i++) {\r\n $paragraphs[$i] = trim($paragraphs[$i]);\r\n }\r\n \r\n }\r\n return $paragraphs;\r\n }", "public static function lineBreakCorrectlyTransformedOnWayToRteProvider() {}", "function treat($text) {\n $s1 = str_replace(\"\\n\\r\", \"\\n\", $text);\n return str_replace(\"\\r\", \"\", $s1);\n}", "public function cropHtmlWorksWithLinebreaks() {}", "function treat($text) {\n\t$s1 = str_replace(\"\\n\\r\", \"\\n\", $text);\n\treturn str_replace(\"\\r\", \"\", $s1);\n}", "protected function _getLines() {}", "function _split($lines) {\r\n if (!preg_match_all('/ ( [^\\S\\n]+ | [[:alnum:]]+ | . ) (?: (?!< \\n) [^\\S\\n])? /xs',\r\n implode(\"\\n\", $lines),\r\n $m)) {\r\n return array(array(''), array(''));\r\n }\r\n return array($m[0], $m[1]);\r\n }", "public function splitText($text)\n\t{\n\t\treturn preg_split('@([<\\[]\\/?[a-zA-Z0-9]+[\\]>])@i', $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE);\n\t}", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function NbLines($w,$txt)\n{\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n}", "function NbLines($w,$txt)\r\n{\r\n $cw=&$this->CurrentFont['cw'];\r\n if($w==0)\r\n $w=$this->w-$this->rMargin-$this->x;\r\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n $s=str_replace(\"\\r\",'',$txt);\r\n $nb=strlen($s);\r\n if($nb>0 and $s[$nb-1]==\"\\n\")\r\n $nb--;\r\n $sep=-1;\r\n $i=0;\r\n $j=0;\r\n $l=0;\r\n $nl=1;\r\n while($i<$nb)\r\n {\r\n $c=$s[$i];\r\n if($c==\"\\n\")\r\n {\r\n $i++;\r\n $sep=-1;\r\n $j=$i;\r\n $l=0;\r\n $nl++;\r\n continue;\r\n }\r\n if($c==' ')\r\n $sep=$i;\r\n $l+=$cw[$c];\r\n if($l>$wmax)\r\n {\r\n if($sep==-1)\r\n {\r\n if($i==$j)\r\n $i++;\r\n }\r\n else\r\n $i=$sep+1;\r\n $sep=-1;\r\n $j=$i;\r\n $l=0;\r\n $nl++;\r\n }\r\n else\r\n $i++;\r\n }\r\n return $nl;\r\n}", "protected function Greedy($paragraph,&$text_lines) {\r\n if ($this->hyphen ===null) { //no hyphenation dictionary has been defined. \r\n I2CE::raiseError(\"No hypentation dictionary defined\");\r\n //try and recover\r\n return $this->Truncate($paragraph);\r\n }\r\n $fm = &$this->font_metric;\r\n $space_length = $fm->getCharacterWidth($this->space_char,true);\r\n $hyphen_length = $fm->getCharacterWidth($this->hyphen_char,true);\r\n $mb_encoding = $this->encoding->getEncodingType();\r\n $use_mb = $this->encoding->useMB();\r\n $words = $this->getWords($paragraph);\r\n $current_line = count($text_lines) -1 ;\r\n $line_length = 0;\r\n $is_first_word_of_row = true;\r\n foreach ($words as $word) {\r\n if ($is_first_word_of_row) { \r\n $has_space = false; //do we have a preceeding space for this word\r\n } else{\r\n //first to check if a space would cause a line break\r\n if ($space_length + $line_length > $this->width) {\r\n //line break\r\n $current_line++;\r\n if ($use_mb) {\r\n $text_lines[] = mb_convert_encoding(\"\",$mb_encoding);\r\n } else {\r\n $text_lines[] = \"\";\r\n }\r\n $is_first_word_of_row = true;\r\n $line_length = 0;\r\n $has_space = false;\r\n } else {//otherwise we can move on with this line\r\n $has_space = true;\r\n }\r\n }\r\n $word_length = $fm->getStringWidth($word,true);\r\n if ($has_space) {\r\n $word_length = $word_length + $space_length;\r\n }\r\n if ( $word_length + $line_length <= $this->width) { //we can place the word\r\n if ($has_space) {\r\n $text_lines[$current_line] .= $this->space_char;\r\n }\r\n $text_lines[$current_line] .= $word;\r\n $is_first_word_of_row = false;\r\n //$line_length += $word_length;\r\n $line_length = $fm->getStringWidth($text_lines[$current_line],true); //slower but safer.\r\n //actually it is just that i am too lazy to compute the kerning for a possible space.\r\n } else { \r\n /*we need to truncate the word. word truncations should be\r\n *allowed to occur in hyphenation points. hyphenation points\r\n * are only defined on letters. we shall also allow hyphenations before\r\n * or after any non-letter. \r\n */\r\n $word_parts = $this->hyphen->getWordParts($word);\r\n $num_word_parts = count($word_parts);\r\n $word_part = 0; //the current word part we are trying to place\r\n $used_hyphen = false;\r\n while ($word_part < $num_word_parts){ //we have a word part left to place\r\n $remaining_space = max(1,$this->width - $line_length);\r\n // $sub_word contains the part of the word we know that we can place on the current line\r\n // $new_sub_word contains what we are trying to place on the current line\r\n if ($use_mb) {\r\n $new_sub_word = mb_convert_encoding(\"\",$mb_encoding);\r\n } else {\r\n $new_sub_word = '';\r\n }\r\n $new_sub_word_length = 0;\r\n $prev_word_part = $word_part-1; //the word part we previously placed\r\n $word_part--;\r\n $possible_space = 0;\r\n if (($prev_word_part == -1) && ($has_space)) {\r\n $possible_space = $space_length;\r\n }\r\n do {\r\n $sub_word = $new_sub_word;\r\n $sub_word_length = $new_sub_word_length;\r\n $word_part++;\r\n if ($word_part < $num_word_parts) {\r\n $new_sub_word .= $word_parts[$word_part]['Subword'];\r\n }\r\n $new_sub_word_length = $fm->getStringWidth($new_sub_word,true);\r\n if (($word_part +1 >= $num_word_parts) || (!$word_parts[$word_part+1]['IsLetter'])) {\r\n $possible_hyphen = 0; //we don't need a trailing hyphen since this is the last word part\r\n } else {\r\n $indx = $word_parts[$word_part]['Length']-1;\r\n if ($use_mb) {\r\n $last_char = mb_substr($word_parts[$word_part]['Subword'],\r\n $indx,1,$mb_encoding);\r\n } else {\r\n $last_char = $word_parts[$word_part];\r\n $last_char = $word_parts[$word_part]['Subword'][$indx];\r\n }\r\n $kern = $fm->getKerningValue($last_char,$this->hyphen_char,true);\r\n $possible_hyphen = $hyphen_length + $kern; \r\n }\r\n } while (($new_sub_word_length + $possible_hyphen + $possible_space <= $remaining_space) && ($word_part < $num_word_parts));\r\n if ($new_sub_word_length + $possible_hyphen + $possible_space <= $remaining_space) { \r\n //we were able to place all of the sub-word. This happens if have\r\n //already gpne to the next line while trying to place word parts\r\n if (($prev_word_part == -1) && ($has_space)) {\r\n $text_lines[$current_line] .= $this->space_char;\r\n }\r\n $text_lines[$current_line] .= $new_sub_word;\r\n $line_length += $new_sub_word_length;\r\n $is_first_word_of_row = false;\r\n $used_hyphen = false;\r\n } else {//we exceeded the remaining space with the last word part \r\n //$word_part now temporairily contains the part of the word that exceeded the availble space\r\n // echo \"for ($word) we have ({$word_part})<br/>\\n\";\r\n if ($word_part -1 > $prev_word_part) {\r\n // echo \"for ($word) we have placed before \". $word_parts[$word_part]['Subword'] . \"<br/>\";\r\n // echo \"for ($word) what we placed before was (\". $text_lines[$current_line] . \")<br/>\";\r\n //we are able to place at least one word part\r\n if (($prev_word_part == -1 ) && ($has_space) ) { \r\n //we are placing the first components of the word\r\n $text_lines[$current_line] .= $this->space_char;\r\n }\r\n $text_lines[$current_line] .= $sub_word; \r\n if ($word_part == $num_word_parts) {\r\n // echo \"for ($word) no hyphen b/c last<br/>\";\r\n }\r\n if (!$word_parts[$word_part]['IsLetter']) { \r\n // echo \"for ($word) no hyphen b/c next piece is not letter<br/>\";\r\n // print_r($word_parts[$word_part]);\r\n }\r\n if (($word_part != $num_word_parts ) && ($word_parts[$word_part]['IsLetter'])) { \r\n $text_lines[$current_line] .= $this->hyphen_char;\r\n $used_hyphen = true;\r\n }\r\n $line_length += $possible_space + $sub_word_length + $possible_hyphen;\r\n $is_first_word_of_row = false;\r\n // echo \"for ($word) what we now placed is (\". $text_lines[$current_line] . \")<br/>\";\r\n //on the next go around of the loop we will be trying to place $word_part\r\n } else { \r\n // echo \"for ($word) we have exceeded on {$word_parts[$word_part]} <br/>\";\r\n /**\r\n *the current word part exceeded the remaining space\r\n *if it is the first word of the row we need to place a part of it\r\n *by truncation. We also want to do so it there is an excess\r\n *amount of remaining space compared to the word with what is already used.\r\n * I am arbitrairily deciding that more than 50% white space is excessive\r\n */\r\n $is_excessive = false;\r\n if (($this->width > 1) && (!$is_first_word_of_row)) {\r\n\r\n if ( (( (float) $remaining_space) / ((float) $this->width)) > 0.5) {\r\n $is_excessive = true; \r\n }\r\n }\r\n if (($is_excessive) || ($is_first_word_of_row)) {\r\n // echo \"for ($word) we are forcing on {$word_parts[$word_part]} b/c exc or first<br/>\";\r\n /** \r\n *We have to force at least one character to be put.\r\n *We will in fact place as many possible on this line\r\n *It could be the case that we have a really long word\r\n *with only one word part. If the current word part is\r\n * the only word part remaining we will then recalculate \r\n * the word parts on what is remaining of the word. It\r\n * may make for incorrect hyphenation, but then we are\r\n * placing the word across several lines, so this is a nice\r\n * compromise\r\n */\r\n if ($is_excessive && $used_hyphen) {\r\n //eat up the hyphen we have placed.\r\n if ($use_mb) {\r\n $ll = mb_strlen($text_lines[$current_line],$mb_encoding);\r\n $text_lines[$current_line]= mb_substr($text_lines[$current_line],0,$ll-1,$mb_encoding);\r\n } else {\r\n $ll = strlen($text_lines[$current_line]);\r\n $text_lines[$current_line] = substr($text_lines[$current_line],0,$ll-1);\r\n }\r\n //recalculate the remaining space\r\n $line_length = $fm->getStringWidth($text_lines[$current_line],true);\r\n $remaining_space = $this->width - $line_length;\r\n } else {\r\n if (($prev_word_part == -1 ) && ($has_space) ) { \r\n //we are placing the first components of the word\r\n $text_lines[$current_line] .= $this->space_char;\r\n }\r\n }\r\n if ($use_mb) {\r\n $trunc_word = mb_convert_encoding(\"\",$mb_encoding);\r\n } else {\r\n $trunc_word = '';\r\n }\r\n $trunc_length = 0; \r\n $chars = 0;\r\n do {\r\n $chars++;\r\n $word_parts[$word_part]['Length']--;\r\n $word_parts[$word_part]['Offset']++;\r\n if ($use_mb) {\r\n $c = mb_substr($word_parts[$word_part]['Subword'],0,1,$mb_encoding);\r\n $word_parts[$word_part]['Subword'] \r\n = mb_substr($word_parts[$word_part]['Subword'] ,\r\n 1,\r\n $word_parts[$word_part]['Length'] ,\r\n $mb_encoding);\r\n } else {\r\n $c = substr($word_parts[$word_part]['Subword'],0,1);\r\n $word_parts[$word_part]['Subword'] = substr($word_parts[$word_part]['Subword'],1); \r\n }\r\n //add the character\r\n $old_trunc_word = $trunc_word;\r\n $trunc_word .= $c;\r\n $old_trunc_length = $trunc_length;\r\n $trunc_length = $fm->getStringWidth($trunc_word . $this->hyphen_char,true); //slow!\r\n } while(($trunc_length <= $remaining_space) && \r\n ($word_parts[$word_part]['Length'] > 0)); \r\n //second condition should never be satisfied, its there for safety\r\n //we exceeded the available space on the last character placed\r\n //so we need to return it if we places more than one character\r\n if ($chars == 1) {\r\n //we only placed one character. too bad.\r\n\r\n } else {\r\n //return the last character\r\n $word_parts[$word_part]['Length']++;\r\n $word_parts[$word_part]['Offset']--;\r\n $word_parts[$word_part]['Subword'] = $c . $word_parts[$word_part]['Subword'];\r\n $trunc_word = $old_trunc_word;\r\n $trunc_length = $old_trunc_length;\r\n }\r\n if (($num_word_parts == $word_part +1) && ($word_parts[$word_part]['Length']==0)) {\r\n $text_lines[$current_line] .= $trunc_word;\r\n } else {\r\n //check to see if the next word part begins with a letter\r\n //if so place a hyphen\r\n // if (!is_string($word_parts[$word_part])) {\r\n // I2CE::raiseError(\"Bad \" . print_r($word_parts[$word_part],true));\r\n // }\r\n //$utf8_part = mb_convert_encoding($word_parts[$word_part],'UTF-8',$mb_encoding);\r\n if ($word_parts[$word_part]['IsLetter']) {\r\n $text_lines[$current_line] .= $trunc_word . $this->hyphen_char;\r\n }\r\n }\r\n $used_hyphen = true;\r\n $is_first_word_of_row = false;\r\n $line_length .= $trunc_length;\r\n $is_first_word_of_row = false;\r\n if ($word_parts[$word_part]['Length'] ==0) { //we reached the end of this word part\r\n $word_part++;\r\n } else if ($num_word_parts == $word_part + 1) {\r\n //if we only had one word part remaining, we\r\n //now reset the $word_parts by calculating a new hyphenation\r\n if ($use_mb) {\r\n $remaining_word = mb_convert_encoding(\"\",$mb_encoding);\r\n } else {\r\n $remaining_word = \"\";\r\n } \r\n for ($k=$word_part; $k < $num_word_parts; $k++) {\r\n $remaining_word .= $word_parts[$k]['Subword'];\r\n }\r\n $word_parts = $this->hyphen->getWordParts($remaining_word);\r\n $num_word_parts = count($word_parts);\r\n $word_part = 0;\r\n }\r\n }\r\n // echo \"for ($word) we have skip to next line on {$word_parts[$word_part]} <br/>\";\r\n //it is not the first word of the line, so we can happily skip to the next line\r\n $line_length = 0;\r\n $current_line++;\r\n if ($use_mb) {\r\n $text_lines[] = mb_convert_encoding(\"\",$mb_encoding);\r\n } else {\r\n $text_lines[] = \"\";\r\n }\r\n $is_first_word_of_row = true;\r\n $has_space = false;\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n return $text_lines;\r\n \r\n }", "public function testMissingNewLineCharException()\r\n\t{\r\n\t\tnew Delimiters(\"//abcde1abcde2\");\r\n\t}", "function parse_breaks($txt, $br = true)\n\t{\n\t\t$txt = $txt . \"\\n\"; // just to make things a little easier, pad the end\n\t\t$txt = preg_replace('`<br />\\s*<br />`', \"\\n\\n\", $txt);\n\t\t// Space things out a little\n\t\t$allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|details|menu|summary)';\n\t\t$txt = preg_replace('`(<' . $allblocks . '[^>]*>)`', \"\\n$1\", $txt);\n\t\t$txt = preg_replace('`(</' . $allblocks . '>)`', \"$1\\n\\n\", $txt);\n\t\t$txt = str_replace(array(\"\\r\\n\", \"\\r\"), \"\\n\", $txt); // cross-platform newlines\n\t\tif(strpos($txt, '<object') !== false){\n\t\t\t$txt = preg_replace('`\\s*<param([^>]*)>\\s*`', \"<param$1>\", $txt); // no pee inside object/embed\n\t\t\t$txt = preg_replace('`\\s*</embed>\\s*`', '</embed>', $txt);\n\t\t}\n\t\t$txt = preg_replace(\"`\\n\\n+`\", \"\\n\\n\", $txt); // take care of duplicates\n\t\t// make paragraphs, including one at the end\n\t\t$txts = preg_split('`\\n\\s*\\n`', $txt, -1, PREG_SPLIT_NO_EMPTY);\n\t\t$txt = '';\n\t\tforeach($txts as $tinkle){\n\t\t\t$txt .= '<p>' . trim($tinkle, \"\\n\") . \"</p>\\n\";\n\t\t}\n\t\t$txt = preg_replace('`<p>\\s*</p>`', '', $txt); // under certain strange conditions it could create a P of entirely whitespace\n\t\t$txt = preg_replace('`<p>([^<]+)</(div|address|form)>`', \"<p>$1</p></$2>\", $txt);\n\t\t$txt = preg_replace('`<p>\\s*(</?' . $allblocks . '[^>]*>)\\s*</p>`', \"$1\", $txt); // don't pee all over a tag\n\t\t$txt = preg_replace(\"`<p>(<li.+?)</p>`\", \"$1\", $txt); // problem with nested lists\n\t\t$txt = preg_replace('`<p><blockquote([^>]*)>`i', \"<blockquote$1><p>\", $txt);\n\t\t$txt = str_replace('</blockquote></p>', '</p></blockquote>', $txt);\n\t\t$txt = preg_replace('`<p>\\s*(</?' . $allblocks . '[^>]*>)`', \"$1\", $txt);\n\t\t$txt = preg_replace('`(</?' . $allblocks . '[^>]*>)\\s*</p>`', \"$1\", $txt);\n\t\tif($br) {\n\t\t\t$txt = preg_replace_callback('/<(script|style|noparse).*?<\\/\\\\1>/s',\n\t\t\t\tcreate_function('$out','return str_replace(\"\\n\", \"<WPPreserveNewline />\", $out[0]);'),\n\t\t\t\t$txt);\n\t\t\t$txt = preg_replace('|(?<!<br />)\\s*\\n|', \"<br />\\n\", $txt); // optionally make line breaks\n\t\t\t$txt = str_replace('<WPPreserveNewline />', \"\\n\", $txt);\n\t\t}\n\t\t$txt = preg_replace('!(</?' . $allblocks . '[^>]*>)\\s*<br />!', \"$1\", $txt);\n\t\t$txt = preg_replace('!<br />(\\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)!', '$1', $txt);\n\t\tif(strpos($txt, '<pre') !== false)\n\t\t{\n\t\t\t$txt = preg_replace_callback('`<pre[^>]*>.*?</pre>`is',\n\t\t\t\tcreate_function('$out','return str_replace(array(\"<br />\",\"<p>\",\"</p>\"),array(\"\",\"\\n\",\"\"),$out[0]);'),\n\t\t\t\t$txt );\n\t\t}\n\t\t$txt = preg_replace( \"|\\n</p>$|\", '</p>', $txt );\n\n\t\treturn $txt;\n\t}", "public function format_text_to_array ($text){\n return preg_split('/\\s*\\R\\s*/', trim($text), NULL, PREG_SPLIT_NO_EMPTY);\n }", "function wp_kses_split($content, $allowed_html, $allowed_protocols)\n {\n }", "function NbLines($w,$txt)\r\n{\r\n\t$cw=&$this->CurrentFont['cw'];\r\n\tif($w==0)\r\n\t\t$w=$this->w-$this->rMargin-$this->x;\r\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n\t$s=str_replace(\"\\r\",'',$txt);\r\n\t$nb=strlen($s);\r\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\r\n\t\t$nb--;\r\n\t$sep=-1;\r\n\t$i=0;\r\n\t$j=0;\r\n\t$l=0;\r\n\t$nl=1;\r\n\twhile($i<$nb)\r\n\t{\r\n\t\t$c=$s[$i];\r\n\t\tif($c==\"\\n\")\r\n\t\t{\r\n\t\t\t$i++;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tif($c==' ')\r\n\t\t\t$sep=$i;\r\n\t\t$l+=$cw[$c];\r\n\t\tif($l>$wmax)\r\n\t\t{\r\n\t\t\tif($sep==-1)\r\n\t\t\t{\r\n\t\t\t\tif($i==$j)\r\n\t\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t$i=$sep+1;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t}\r\n\t\telse\r\n\t\t\t$i++;\r\n\t}\r\n\treturn $nl;\r\n}", "function NbLines($w,$txt)\r\n{\r\n\t$cw=&$this->CurrentFont['cw'];\r\n\tif($w==0)\r\n\t\t$w=$this->w-$this->rMargin-$this->x;\r\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n\t$s=str_replace(\"\\r\",'',$txt);\r\n\t$nb=strlen($s);\r\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\r\n\t\t$nb--;\r\n\t$sep=-1;\r\n\t$i=0;\r\n\t$j=0;\r\n\t$l=0;\r\n\t$nl=1;\r\n\twhile($i<$nb)\r\n\t{\r\n\t\t$c=$s[$i];\r\n\t\tif($c==\"\\n\")\r\n\t\t{\r\n\t\t\t$i++;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tif($c==' ')\r\n\t\t\t$sep=$i;\r\n\t\t$l+=$cw[$c];\r\n\t\tif($l>$wmax)\r\n\t\t{\r\n\t\t\tif($sep==-1)\r\n\t\t\t{\r\n\t\t\t\tif($i==$j)\r\n\t\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t$i=$sep+1;\r\n\t\t\t$sep=-1;\r\n\t\t\t$j=$i;\r\n\t\t\t$l=0;\r\n\t\t\t$nl++;\r\n\t\t}\r\n\t\telse\r\n\t\t\t$i++;\r\n\t}\r\n\treturn $nl;\r\n}", "protected function trimSpaces($text)\n {\n $lines = null;\n foreach (preg_split(\"/((\\r?\\n)|(\\r\\n?))/\", $text) as $line) {\n if (!empty($line)) {\n $lines .= $this->trimContent($line) . PHP_EOL;\n }\n }\n return $lines;\n }", "function text_split($in) {\r\n\t$len = count($in);\r\n\t$a = substr($in,0,$len/2);\r\n\t$b = substr($in,0,(0-($len/2)));\r\n\treturn array($a,$b);\r\n}", "function handleLineOfText($inputTextLine)\n{\n $inputTextLine = preg_replace('/\\s+/', ' ', $inputTextLine);\n\n //text to single words\n $words = explode(\" \", $inputTextLine);\n\n $mixedWords = [];\n\n //mix words from line\n foreach ($words as $word) {\n //mix word if contains more than 3 characters\n array_push($mixedWords, (strlen($word) > 3) ? mixWord($word) : $word);\n }\n\n return implode(\" \", $mixedWords);\n}", "function NbLines($w,$txt)\n\t{\n\t $cw=&$this->CurrentFont['cw'];\n\t if($w==0)\n\t $w=$this->w-$this->rMargin-$this->x;\n\t\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n \t $s=str_replace(\"\\r\",'',$txt);\n\t $nb=strlen($s);\n\t if($nb>0 and $s[$nb-1]==\"\\n\")\n \t$nb--;\n\t\t$sep=-1;\n \t\t$i=0;\n \t\t$j=0;\n \t\t$l=0;\n \t\t$nl=1;\n \n\t\twhile($i<$nb){\n\t\t $c=$s[$i];\n\t if($c==\"\\n\"){\n\t $i++;\n\t $sep=-1;\n\t $j=$i;\n\t $l=0;\n\t $nl++;\n\t continue;\n\t }\n\n\t if($c==' ')\n\t $sep=$i;\n \t $l+=$cw[$c];\n\t if($l>$wmax){\n\t if($sep==-1){\n if($i==$j)\n $i++;\n \t}\n else\n $i=$sep+1;\n\t $sep=-1;\n \t$j=$i;\n \t$l=0;\n \t$nl++;\n\t }\n\t else\n\t \t$i++;\n\t }\n\t return $nl;\n\t}", "public function getLinesToArray($multilines){\n $arrayTmp = array();\n $array = array();\n \n $arrayTmp = explode(\"\\n\", $multilines);\n foreach($array AS $item){\n $array[] = ereg_replace(\"[[:cntrl:]]\", \"\", $item);\n }\n return $array;\n }", "function NbLines($w, $txt) {\n $cw = &$this->CurrentFont['cw'];\n if ($w == 0)\n $w = $this->w - $this->rMargin - $this->x;\n $wmax = ($w - 2 * $this->cMargin) * 1000 / $this->FontSize;\n $s = str_replace(\"\\r\", '', $txt);\n $nb = strlen($s);\n if ($nb > 0 and $s[$nb - 1] == \"\\n\")\n $nb--;\n $sep = -1;\n $i = 0;\n $j = 0;\n $l = 0;\n $nl = 1;\n while ($i < $nb) {\n $c = $s[$i];\n if ($c == \"\\n\") {\n $i++;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n continue;\n }\n if ($c == ' ')\n $sep = $i;\n $l+=$cw[$c];\n if ($l > $wmax) {\n if ($sep == -1) {\n if ($i == $j)\n $i++;\n } else\n $i = $sep + 1;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n } else\n $i++;\n }\n return $nl;\n }", "function NbLines($w, $txt) {\n $cw = &$this->CurrentFont['cw'];\n if ($w == 0)\n $w = $this->w - $this->rMargin - $this->x;\n $wmax = ($w - 2 * $this->cMargin) * 1000 / $this->FontSize;\n $s = str_replace(\"\\r\", '', $txt);\n $nb = strlen($s);\n if ($nb > 0 and $s[$nb - 1] == \"\\n\")\n $nb--;\n $sep = -1;\n $i = 0;\n $j = 0;\n $l = 0;\n $nl = 1;\n while ($i < $nb) {\n $c = $s[$i];\n if ($c == \"\\n\") {\n $i++;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n continue;\n }\n if ($c == ' ')\n $sep = $i;\n $l+=$cw[$c];\n if ($l > $wmax) {\n if ($sep == -1) {\n if ($i == $j)\n $i++;\n } else\n $i = $sep + 1;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n } else\n $i++;\n }\n return $nl;\n }", "function NbLines($w, $txt) {\n $cw = &$this->CurrentFont['cw'];\n if ($w == 0)\n $w = $this->w - $this->rMargin - $this->x;\n $wmax = ($w - 2 * $this->cMargin) * 1000 / $this->FontSize;\n $s = str_replace(\"\\r\", '', $txt);\n $nb = strlen($s);\n if ($nb > 0 and $s[$nb - 1] == \"\\n\")\n $nb--;\n $sep = -1;\n $i = 0;\n $j = 0;\n $l = 0;\n $nl = 1;\n while ($i < $nb) {\n $c = $s[$i];\n if ($c == \"\\n\") {\n $i++;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n continue;\n }\n if ($c == ' ')\n $sep = $i;\n $l+=$cw[$c];\n if ($l > $wmax) {\n if ($sep == -1) {\n if ($i == $j)\n $i++;\n } else\n $i = $sep + 1;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n } else\n $i++;\n }\n return $nl;\n }", "protected function get_line_break()\n {\n $this->buffer = fgets($this->filePointer);\n $this->lineCount++;\n\n if($this->buffer == FALSE)\n {\n $this->buffer = [];\n array_push($this->buffer, Instructions::EOF);\n return;\n }\n \n $this->buffer = trim(preg_replace(\"/\\s+/\", \" \", $this->buffer));\n $this->buffer = explode(\" \", $this->buffer);\n \n $this->check_comments();\n\n\n if($this->buffer[0] == NULL)\n {\n $this->buffer = [];\n array_push($this->buffer, Instructions::EMPTY);\n return;\n }\n\n }", "public function stdWrap_noTrimWrapAcceptsSplitCharDataProvider() {}", "function NbLines($w, $txt) {\n $cw = &$this->CurrentFont['cw'];\n if ($w == 0)\n $w = $this->w - $this->rMargin - $this->x;\n $wmax = ($w - 2 * $this->cMargin) * 1000 / $this->FontSize;\n $s = str_replace(\"\\r\", '', $txt);\n $nb = strlen($s);\n if ($nb > 0 and $s[$nb - 1] == \"\\n\")\n $nb--;\n $sep = -1;\n $i = 0;\n $j = 0;\n $l = 0;\n $nl = 1;\n while ($i < $nb) {\n $c = $s[$i];\n if ($c == \"\\n\") {\n $i++;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n continue;\n }\n if ($c == ' ')\n $sep = $i;\n $l += $cw[$c];\n if ($l > $wmax) {\n if ($sep == -1) {\n if ($i == $j)\n $i++;\n } else\n $i = $sep + 1;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n } else\n $i++;\n }\n return $nl;\n }", "static function pl($txt){\r\n $a = preg_split(\"/\\r?\\n/\", $txt);\r\n $padlen = strlen(strval(sizeof($a)));\r\n $cnt = 0;\r\n foreach ($a as $line) {\r\n self::p(self::zfill(++$cnt, $padlen) . ': ' . $line);\r\n }\r\n }", "function NbLines($w,$txt){\r\n \t$cw=&$this->CurrentFont['cw'];\r\n \tif($w==0)\r\n \t\t$w=$this->w-$this->rMargin-$this->x;\r\n \t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\r\n \t$s=str_replace(\"\\r\",'',$txt);\r\n \t$nb=strlen($s);\r\n \tif($nb>0 and $s[$nb-1]==\"\\n\")\r\n \t\t$nb--;\r\n \t$sep=-1;\r\n \t$i=0;\r\n \t$j=0;\r\n \t$l=0;\r\n \t$nl=1;\r\n \twhile($i<$nb)\r\n \t{\r\n \t\t$c=$s[$i];\r\n \t\tif($c==\"\\n\")\r\n \t\t{\r\n \t\t\t$i++;\r\n \t\t\t$sep=-1;\r\n \t\t\t$j=$i;\r\n \t\t\t$l=0;\r\n \t\t\t$nl++;\r\n \t\t\tcontinue;\r\n \t\t}\r\n \t\tif($c==' ')\r\n \t\t\t$sep=$i;\r\n \t\t$l+=$cw[$c];\r\n \t\tif($l>$wmax)\r\n \t\t{\r\n \t\t\tif($sep==-1)\r\n \t\t\t{\r\n \t\t\t\tif($i==$j)\r\n \t\t\t\t\t$i++;\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t\t$i=$sep+1;\r\n \t\t\t$sep=-1;\r\n \t\t\t$j=$i;\r\n \t\t\t$l=0;\r\n \t\t\t$nl++;\r\n \t\t}\r\n \t\telse\r\n \t\t\t$i++;\r\n \t}\r\n \treturn $nl;\r\n }", "function NbLines($w,$txt)\n{\n\t$cw=&$this->CurrentFont['cw'];\n\tif($w==0)\n\t\t$w=$this->w-$this->rMargin-$this->x;\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s=str_replace(\"\\r\",'',$txt);\n\t$nb=strlen($s);\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t$nb--;\n\t$sep=-1;\n\t$i=0;\n\t$j=0;\n\t$l=0;\n\t$nl=1;\n\twhile($i<$nb)\n\t{\n\t\t$c=$s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t$i++;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t\t$sep=$i;\n\t\t$l+=$cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i=$sep+1;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\treturn $nl;\n}", "function NbLines($w,$txt)\n{\n\t$cw=&$this->CurrentFont['cw'];\n\tif($w==0)\n\t\t$w=$this->w-$this->rMargin-$this->x;\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s=str_replace(\"\\r\",'',$txt);\n\t$nb=strlen($s);\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t$nb--;\n\t$sep=-1;\n\t$i=0;\n\t$j=0;\n\t$l=0;\n\t$nl=1;\n\twhile($i<$nb)\n\t{\n\t\t$c=$s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t$i++;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t\t$sep=$i;\n\t\t$l+=$cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i=$sep+1;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\treturn $nl;\n}", "function NbLines($w,$txt)\n{\n\t$cw=&$this->CurrentFont['cw'];\n\tif($w==0)\n\t\t$w=$this->w-$this->rMargin-$this->x;\n\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t$s=str_replace(\"\\r\",'',$txt);\n\t$nb=strlen($s);\n\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t$nb--;\n\t$sep=-1;\n\t$i=0;\n\t$j=0;\n\t$l=0;\n\t$nl=1;\n\twhile($i<$nb)\n\t{\n\t\t$c=$s[$i];\n\t\tif($c==\"\\n\")\n\t\t{\n\t\t\t$i++;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t\tcontinue;\n\t\t}\n\t\tif($c==' ')\n\t\t\t$sep=$i;\n\t\t$l+=$cw[$c];\n\t\tif($l>$wmax)\n\t\t{\n\t\t\tif($sep==-1)\n\t\t\t{\n\t\t\t\tif($i==$j)\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i=$sep+1;\n\t\t\t$sep=-1;\n\t\t\t$j=$i;\n\t\t\t$l=0;\n\t\t\t$nl++;\n\t\t}\n\t\telse\n\t\t\t$i++;\n\t}\n\treturn $nl;\n}", "function parseText($text) {\r\n\t\r\n\t\r\n\t\t$parsed_text = $this->urlsTolinks($text);\r\n\t\t\r\n\t\t//if no paragraph or break tags replace \\n with <br />\r\n\t\t\r\n\t\tif (!eregi('(<p|<br)', $parsed_text)) {\r\n\t\t\t\r\n\t\t\t$parsed_text = nl2br($parsed_text);\r\n\t\t\r\n \t\t} \r\n\t\t\r\n\t\t$parsed_text = $this->replaceMediaPlaceholders($parsed_text);\r\n\t\t$parsed_text = $this->replaceUserVariables($parsed_text);\r\n\t\t$parsed_text = $this->textoGif($parsed_text);\r\n\t\t//$parsed_text = $this->popuplinks($parsed_text);\r\n\t\t \t\t\r\n\t\treturn $parsed_text;\r\n\t\r\n\t}", "function NbLines($w,$txt)\n\t{\n\t $cw=&$this->CurrentFont['cw'];\n\t if($w==0)\n\t $w=$this->w-$this->rMargin-$this->x;\n\t $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t $s=str_replace(\"\\r\",'',$txt);\n\t $nb=strlen($s);\n\t if($nb>0 and $s[$nb-1]==\"\\n\")\n\t $nb--;\n\t $sep=-1;\n\t $i=0;\n\t $j=0;\n\t $l=0;\n\t $nl=1;\n\t while($i<$nb)\n\t {\n\t $c=$s[$i];\n\t if($c==\"\\n\")\n\t {\n\t $i++;\n\t $sep=-1;\n\t $j=$i;\n\t $l=0;\n\t $nl++;\n\t continue;\n\t }\n\t if($c==' ')\n\t $sep=$i;\n\t $l+=$cw[$c];\n\t if($l>$wmax)\n\t {\n\t if($sep==-1)\n\t {\n\t if($i==$j)\n\t $i++;\n\t }\n\t else\n\t $i=$sep+1;\n\t $sep=-1;\n\t $j=$i;\n\t $l=0;\n\t $nl++;\n\t }\n\t else\n\t $i++;\n\t }\n\t return $nl;\n\t}", "function NbLines($w,$txt)\n\t{\n\t $cw=&$this->CurrentFont['cw'];\n\t if($w==0)\n\t $w=$this->w-$this->rMargin-$this->x;\n\t $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t $s=str_replace(\"\\r\",'',$txt);\n\t $nb=strlen($s);\n\t if($nb>0 and $s[$nb-1]==\"\\n\")\n\t $nb--;\n\t $sep=-1;\n\t $i=0;\n\t $j=0;\n\t $l=0;\n\t $nl=1;\n\t while($i<$nb)\n\t {\n\t $c=$s[$i];\n\t if($c==\"\\n\")\n\t {\n\t $i++;\n\t $sep=-1;\n\t $j=$i;\n\t $l=0;\n\t $nl++;\n\t continue;\n\t }\n\t if($c==' ')\n\t $sep=$i;\n\t $l+=$cw[$c];\n\t if($l>$wmax)\n\t {\n\t if($sep==-1)\n\t {\n\t if($i==$j)\n\t $i++;\n\t }\n\t else\n\t $i=$sep+1;\n\t $sep=-1;\n\t $j=$i;\n\t $l=0;\n\t $nl++;\n\t }\n\t else\n\t $i++;\n\t }\n\t return $nl;\n\t}", "function NbLines($w,$txt){\n\t\t\t$cw=&$this->CurrentFont['cw'];\n\t\t\tif($w==0)\n\t\t\t\t$w=$this->w-$this->rMargin-$this->x;\n\t\t\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t\t$s=str_replace(\"\\r\",'',$txt);\n\t\t\t$nb=strlen($s);\n\t\t\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t\t\t$nb--;\n\t\t\t$sep=-1;\n\t\t\t$i=0;\n\t\t\t$j=0;\n\t\t\t$l=0;\n\t\t\t$nl=1;\n\t\t\twhile($i<$nb)\n\t\t\t{\n\t\t\t\t$c=$s[$i];\n\t\t\t\tif($c==\"\\n\")\n\t\t\t\t{\n\t\t\t\t\t$i++;\n\t\t\t\t\t$sep=-1;\n\t\t\t\t\t$j=$i;\n\t\t\t\t\t$l=0;\n\t\t\t\t\t$nl++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($c==' ')\n\t\t\t\t\t$sep=$i;\n\t\t\t\t$l+=$cw[$c];\n\t\t\t\tif($l>$wmax)\n\t\t\t\t{\n\t\t\t\t\tif($sep==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($i==$j)\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$i=$sep+1;\n\t\t\t\t\t$sep=-1;\n\t\t\t\t\t$j=$i;\n\t\t\t\t\t$l=0;\n\t\t\t\t\t$nl++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn $nl;\n\t\t}", "function NbLines($w,$txt) {\n\t\t\t$cw=&$this->CurrentFont['cw'];\n\t\t\tif($w==0)\n\t\t\t\t$w=$this->w-$this->rMargin-$this->x;\n\t\t\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t\t$s=str_replace(\"\\r\",'',$txt);\n\t\t\t$nb=strlen($s);\n\t\t\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t\t\t$nb--;\n\t\t\t$sep=-1;\n\t\t\t$i=0;\n\t\t\t$j=0;\n\t\t\t$l=0;\n\t\t\t$nl=1;\n\t\t\twhile($i<$nb) {\n\t\t\t\t$c=$s[$i];\n\t\t\t\tif($c==\"\\n\") {\n\t\t\t\t\t$i++;\n\t\t\t\t\t$sep=-1;\n\t\t\t\t\t$j=$i;\n\t\t\t\t\t$l=0;\n\t\t\t\t\t$nl++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif($c==' ')\n\t\t\t\t\t$sep=$i;\n\t\t\t\t$l+=$cw[$c];\n\t\t\t\tif($l>$wmax) {\n\t\t\t\t\tif($sep==-1) {\n\t\t\t\t\t\tif($i==$j)\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$i=$sep+1;\n\t\t\t\t\t$sep=-1;\n\t\t\t\t\t$j=$i;\n\t\t\t\t\t$l=0;\n\t\t\t\t\t$nl++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn $nl;\n\t\t}", "public function dataNormalizeLineEndings() {\n\t\treturn [\n\t\t\t'already-lf' => [ \"foo\\n\\nbar\\n\", \"foo\\n\\nbar\\n\" ],\n\t\t\t'windows-crlf' => [ \"foo\\r\\n\\r\\nbar\\r\\n\", \"foo\\n\\nbar\\n\" ],\n\t\t\t'old-mac-cr-only' => [ \"foo\\r\\rbar\\r\", \"foo\\n\\nbar\\n\" ],\n\t\t\t'reversed-manual-input' => [ \"foo\\n\\r\\n\\rbar\\n\\r\", \"foo\\n\\n\\nbar\\n\\n\" ],\n\t\t];\n\t}", "function NbLines($w, $txt)\n {\n $cw=&$this->CurrentFont['cw'];\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\", '', $txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n while($i<$nb)\n {\n $c=$s[$i];\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n if($c==' ')\n $sep=$i;\n $l+=$cw[$c];\n if($l>$wmax)\n {\n if($sep==-1)\n {\n if($i==$j)\n $i++;\n }\n else\n $i=$sep+1;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n }\n else\n $i++;\n }\n return $nl;\n }", "protected function lineBreaks() {\n\t\t$this->text = $this->removeUnneccesaryLinebreaks($this->text);\n\t\t$this->text = nl2br($this->text);\n\t\tReturn $this;\n\t}", "function analyse_content($content){\n $starting_content = array();\n $count=0;\n for($i=1;$i<count($content);$i++){\n if(!empty($content[$i]) && strlen($content[$i])>250){\n $paragraph = trim($content[$i]);\n $paragraph = str_ireplace(\"\\r\\n\",\"\", $paragraph);\n $starting_content[$count] = $paragraph;\n $count++;\n }\n if($count>=2)\n break;\n }\n return $starting_content;\n}", "function NbLines($w, $txt)\n {\n $cw = &$this->CurrentFont['cw'];\n if ($w == 0)\n $w = $this->w - $this->rMargin - $this->x;\n $wmax = ($w - 2 * $this->cMargin) * 1000 / $this->FontSize;\n $s = str_replace(\"\\r\", '', $txt);\n $nb = strlen($s);\n if ($nb > 0 and $s[$nb - 1] == \"\\n\")\n $nb--;\n $sep = -1;\n $i = 0;\n $j = 0;\n $l = 0;\n $nl = 1;\n while ($i < $nb) {\n $c = $s[$i];\n if ($c == \"\\n\") {\n $i++;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n continue;\n }\n if ($c == ' ')\n $sep = $i;\n $l += $cw[$c];\n if ($l > $wmax) {\n if ($sep == -1) {\n if ($i == $j)\n $i++;\n } else\n $i = $sep + 1;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n } else\n $i++;\n }\n return $nl;\n }", "function NbLines($w, $txt)\n {\n $cw = &$this->CurrentFont['cw'];\n if ($w == 0)\n $w = $this->w - $this->rMargin - $this->x;\n $wmax = ($w - 2 * $this->cMargin) * 1000 / $this->FontSize;\n $s = str_replace(\"\\r\", '', $txt);\n $nb = strlen($s);\n if ($nb > 0 and $s[$nb - 1] == \"\\n\")\n $nb--;\n $sep = -1;\n $i = 0;\n $j = 0;\n $l = 0;\n $nl = 1;\n while ($i < $nb) {\n $c = $s[$i];\n if ($c == \"\\n\") {\n $i++;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n continue;\n }\n if ($c == ' ')\n $sep = $i;\n $l += $cw[$c];\n if ($l > $wmax) {\n if ($sep == -1) {\n if ($i == $j)\n $i++;\n } else\n $i = $sep + 1;\n $sep = -1;\n $j = $i;\n $l = 0;\n $nl++;\n } else\n $i++;\n }\n return $nl;\n }", "private function makeLineBreaks(): void {\n\t\tif($this->getMaxLineLength()) {\n\t\t\t$this->setMsg(wordwrap($this->getMsg(), $this->getMaxLineLength(), PHP_EOL));\n\t\t}\n\n\t\t$this->setMsg(str_replace('<br />', PHP_EOL, str_replace('<br>', PHP_EOL, $this->getMsg())));\n\t}", "function NbLines($w,$txt)\n\t{\n\t\t$cw=&$this->CurrentFont['cw'];\n\t\tif($w==0)\n\t\t\t$w=$this->w-$this->rMargin-$this->x;\n\t\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t$s=str_replace(\"\\r\",'',$txt);\n\t\t$nb=strlen($s);\n\t\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t\t$nb--;\n\t\t$sep=-1;\n\t\t$i=0;\n\t\t$j=0;\n\t\t$l=0;\n\t\t$nl=1;\n\t\twhile($i<$nb)\n\t\t{\n\t\t\t$c=$s[$i];\n\t\t\tif($c==\"\\n\")\n\t\t\t{\n\t\t\t\t$i++;\n\t\t\t\t$sep=-1;\n\t\t\t\t$j=$i;\n\t\t\t\t$l=0;\n\t\t\t\t$nl++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif($c==' ')\n\t\t\t\t$sep=$i;\n\t\t\t$l+=$cw[$c];\n\t\t\tif($l>$wmax)\n\t\t\t{\n\t\t\t\tif($sep==-1)\n\t\t\t\t{\n\t\t\t\t\tif($i==$j)\n\t\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$i=$sep+1;\n\t\t\t\t$sep=-1;\n\t\t\t\t$j=$i;\n\t\t\t\t$l=0;\n\t\t\t\t$nl++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i++;\n\t\t}\n\t\treturn $nl;\n\t}", "function NbLines($w,$txt)\n\t{\n\t\t$cw=&$this->CurrentFont['cw'];\n\t\tif($w==0)\n\t\t\t$w=$this->w-$this->rMargin-$this->x;\n\t\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t$s=str_replace(\"\\r\",'',$txt);\n\t\t$nb=strlen($s);\n\t\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t\t$nb--;\n\t\t$sep=-1;\n\t\t$i=0;\n\t\t$j=0;\n\t\t$l=0;\n\t\t$nl=1;\n\t\twhile($i<$nb)\n\t\t{\n\t\t\t$c=$s[$i];\n\t\t\tif($c==\"\\n\")\n\t\t\t{\n\t\t\t\t$i++;\n\t\t\t\t$sep=-1;\n\t\t\t\t$j=$i;\n\t\t\t\t$l=0;\n\t\t\t\t$nl++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif($c==' ')\n\t\t\t\t$sep=$i;\n\t\t\t$l+=$cw[$c];\n\t\t\tif($l>$wmax)\n\t\t\t{\n\t\t\t\tif($sep==-1)\n\t\t\t\t{\n\t\t\t\t\tif($i==$j)\n\t\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$i=$sep+1;\n\t\t\t\t$sep=-1;\n\t\t\t\t$j=$i;\n\t\t\t\t$l=0;\n\t\t\t\t$nl++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i++;\n\t\t}\n\t\treturn $nl;\n\t}", "function NbLines($w,$txt)\n\t{\n\t\t$cw=&$this->CurrentFont['cw'];\n\t\tif($w==0)\n\t\t\t$w=$this->w-$this->rMargin-$this->x;\n\t\t$wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n\t\t$s=str_replace(\"\\r\",'',$txt);\n\t\t$nb=strlen($s);\n\t\tif($nb>0 and $s[$nb-1]==\"\\n\")\n\t\t\t$nb--;\n\t\t$sep=-1;\n\t\t$i=0;\n\t\t$j=0;\n\t\t$l=0;\n\t\t$nl=1;\n\t\twhile($i<$nb)\n\t\t{\n\t\t\t$c=$s[$i];\n\t\t\tif($c==\"\\n\")\n\t\t\t{\n\t\t\t\t$i++;\n\t\t\t\t$sep=-1;\n\t\t\t\t$j=$i;\n\t\t\t\t$l=0;\n\t\t\t\t$nl++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif($c==' ')\n\t\t\t\t$sep=$i;\n\t\t\t$l+=$cw[$c];\n\t\t\tif($l>$wmax)\n\t\t\t{\n\t\t\t\tif($sep==-1)\n\t\t\t\t{\n\t\t\t\t\tif($i==$j)\n\t\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$i=$sep+1;\n\t\t\t\t$sep=-1;\n\t\t\t\t$j=$i;\n\t\t\t\t$l=0;\n\t\t\t\t$nl++;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$i++;\n\t\t}\n\t\treturn $nl;\n\t}", "function fetch_first_line($text)\n\t{\n\t\t$text = preg_replace(\"/(\\r\\n|\\r|\\n)/s\", \"\\r\\n\", trim($text));\n\t\t$pos = strpos($text, \"\\r\\n\");\n\t\tif ($pos !== false)\n\t\t{\n\t\t\treturn substr($text, 0, $pos);\n\t\t}\n\t\treturn $text;\n\t}", "public function lines()\n {\n $array = preg_split('/[\\r\\n]{1,2}/u', $this->str);\n /** @noinspection CallableInLoopTerminationConditionInspection */\n for ($i = 0; $i < count($array); $i++) {\n $array[$i] = static::create($array[$i], $this->encoding);\n }\n\n return $array;\n }", "public static function lines( \n\t\tstring\t\t$text, \n\t\tint\t\t$lim = -1, \n\t\tbool\t\t$tr = true \n\t) : array {\n\t\treturn $tr ?\n\t\t\\preg_split( \n\t\t\t'/\\s*\\R\\s*/', \n\t\t\ttrim( $text ), \n\t\t\t$lim, \n\t\t\t\\PREG_SPLIT_NO_EMPTY \n\t\t) : \n\t\t\\preg_split( '/\\R/', $text, $lim, \\PREG_SPLIT_NO_EMPTY );\n\t}", "function wikiplugin_split($data, $params, $pos) {\n\tglobal $tikilib, $tiki_p_admin_wiki, $tiki_p_admin, $section;\n\tglobal $replacement;\n\n // Remove first <ENTER> if exists...\n // it may be here if present after {SPLIT()} in original text\n\tif (substr($data, 0, 2) == \"\\r\\n\")\n\t\t$data2 = substr($data, 2);\n\telse\n\t\t$data2 = $data;\n\t\n\textract ($params, EXTR_SKIP);\n $fixedsize = (!isset($fixedsize) || $fixedsize == 'y' || $fixedsize == 1 ? true : false);\n $joincols = (!isset($joincols) || $joincols == 'y' || $joincols == 1 ? true : false);\n // Split data by rows and cells\n\n $sections = preg_split(\"/@@@+/\", $data2);\n $rows = array();\n $maxcols = 0;\n foreach ($sections as $i)\n {\n \t// split by --- but not by ----\n\t//\t$rows[] = preg_split(\"/([^\\-]---[^\\-]|^---[^\\-]|[^\\-]---$|^---$)+/\", $i);\n\t//\tnot to eat the character close to - and to split on --- and not ----\n\t\t$rows[] = preg_split(\"/(?<!-)---(?!-)/\", $i);\n $maxcols = max($maxcols, count(end($rows)));\n }\n\n // Is there split sections present?\n // Do not touch anything if no... even don't generate <table>\n if (count($rows) <= 1 && count($rows[0]) <= 1)\n return $data;\n\n\t$percent = false;\n\tif (isset($colsize)) {\n\t\t$tdsize= explode(\"|\", $colsize);\n\t\t$tdtotal=0;\n\t\tfor ($i=0;$i<$maxcols;$i++) {\n\t\t if (!isset($tdsize[$i])) {\n\t\t $tdsize[$i]=0;\n\t\t } else {\n\t\t\t$tdsize[$i] = trim($tdsize[$i]);\n\t\t\tif (strstr($tdsize[$i], '%')) {\n\t\t\t\t$percent = true;\n\t\t\t}\n\t\t }\n\t\t $tdtotal+=$tdsize[$i];\n\t\t}\n\t\t$tdtotaltd=floor($tdtotal/100*100);\n\t\tif ($tdtotaltd == 100) // avoir IE to do to far\n\t\t\t$class = 'class=\"normalnoborder split\"';\n\t\telse\n\t\t\t$class = 'class=\"split\" width=\"'.$tdtotaltd.'%\"';\n\t} elseif ($fixedsize) {\n\t\t$columnSize = floor(100 / $maxcols);\n\t\t$class = 'class=\"normalnoborder split\"';\n\t\t$percent = true;\t\n\t}\n\tif (!isset($edit)) $edit = 'n';\n\t$result = \"<table border='0' cellpadding='0' cellspacing='0' class='wikiplugin-split\".($percent ? \" normalnoborder\" : \"\").( !empty($customclass) ? \" $customclass\" : \"\").\"'>\";\n\n // Attention: Dont forget to remove leading empty line in section ...\n // it should remain from previous '---' line...\n // Attention: origianl text must be placed between \\n's!!!\n if (!isset($first) || $first != 'col') {\n foreach ($rows as $r) {\n $result .= \"<tr>\";\n $idx = 1;\n foreach ($r as $i) {\n\t\t\t\t// Remove first <ENTER> if exists\n if (substr($i, 0, 2) == \"\\r\\n\") $i = substr($i, 2);\n // Generate colspan for last element if needed\n $colspan = ((count($r) == $idx) && (($maxcols - $idx) > 0) ? ' colspan=\"'.($maxcols - $idx + 1).'\"' : '');\n $idx++;\n // Add cell to table\n\t\t\tif (isset($colsize)) {\n\t\t\t\t$width = ' width=\"'.$tdsize[$idx-2].'\"';\n\t\t\t} elseif ($fixedsize) {\n\t\t\t\t$width = ' width=\"'.$columnSize.'%\" ';\n\t\t\t} else {\n\t\t\t\t$width = '';\n\t\t\t}\n \t\t $result .= '<td valign=\"top\"'.$width.$colspan.'>'\n\t\t\t\t// Insert \"\\n\" at data begin (so start-of-line-sensitive syntaxes will be parsed OK)\n\t\t\t\t.\"\\n\"\n\t\t\t\t// now prepend any carriage return and newline char with br\n\t\t\t\t.preg_replace(\"/\\r?\\n/\", \"<br />\\r\\n\", $i)\n . '</td>';\n }\n \n $result .= \"</tr>\";\n }\n } else { // column first\n\tif ($edit == 'y') {\n\t\tglobal $user;\n\t\tif (isset($_REQUEST['page'])) {\n\t\t\t$type = 'wiki page';\n\t\t\t$object = $_REQUEST['page'];\n\t\t\tif ($tiki_p_admin_wiki == 'y' || $tiki_p_admin == 'y')\n\t\t\t\t$perm = true;\n\t\t\telse\n\t\t\t\t$perm = $tikilib->user_has_perm_on_object($user, $object, $type, 'tiki_p_edit');\n\t\t} else { // TODO: other object type\n\t\t\t$perm = false;\n\t\t}\n }\n\t$ind = 0;\n\t$icell = 0;\n\t$result .= '<tr>';\n\tforeach ($rows as $r) {\n\t\t$idx = 0;\n\t\t$result .= '<td valign=\"top\" '.(($fixedsize && isset($tdsize))? ' width=\"'.$tdsize[$idx].'%\"' : '').'>';\n\t\tforeach ($r as $i) {\n\t\t\tif (substr($i, 0, 2) == \"\\r\\n\") {\n\t\t\t\t$i = substr($i, 2);\n\t\t\t\t$ind += 2;\n\t\t\t}\n\t\t\tif ($edit == 'y' && $perm && $section == 'wiki page') {\n\t\t\t\t$result .= '<div class=\"split\"><div style=\"float:right\">';\n$result .= \"$pos-$icell-\".htmlspecialchars(substr($data,$pos, 10));\n \t\t\t\t$result .= '<a href=\"tiki-editpage.php?page='.$object.'&amp;pos='.$pos.'&amp;cell='.$icell.'\">'\n \t .'<img src=\"pics/icons/page_edit.png\" alt=\"'.tra('Edit').'\" title=\"'.tra('Edit').'\" border=\"0\" width=\"16\" height=\"16\" /></a></div><br />';\n \t\t\t\t$ind += strlen($i);\n\t\t\t\twhile (isset($data[$ind]) && ($data[$ind] == '-' || $data[$ind] == '@'))\n\t\t\t\t\t++$ind;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$result .= '<div>';\n\t\t\t$result .= preg_replace(\"/\\r?\\n/\", \"<br />\\r\\n\", $i). '</div>';\n\t\t\t++$idx;\n\t\t\t++$icell;\n\t\t}\n\t\t$result .= '</td>';\n\t}\n\t$result .= '</tr>';\n }\n // Close HTML table (no \\n at end!)\n\t$result .= \"</table>\";\n\n\treturn $result;\n}", "public function convertlinebreaks($text)\r\n {\r\n return preg_replace(\"#\\015\\012|\\015|\\012#\", \"\\n\", $text);\r\n }", "private function makeLines()\n\t{\n\t\t$line = 1;\n\t\t/** @var Token $token */\n\t\tforeach ($this->tokens as $token)\n\t\t{\n\t\t\t$token->line = $line;\n\t\t\tif (preg_match_all(\"/\\\\n/\", $token->text, $m))\n\t\t\t{\n\t\t\t\t$line += count($m[0]);\n\t\t\t}\n\t\t}\n\t}", "function wp_kses_split2($content, $allowed_html, $allowed_protocols)\n {\n }", "public function splitMessage($text, $length)\n\t{\n\t\t// assert that no part ends in the escape char (\\null)\n\t\t$re = sprintf('/.{1,%d}(?<!%s)/', $length, '\\\\' . ord(self::ESCAPE_CHAR));\n\t\tpreg_match_all($re, $text, $text);\n\t\treturn reset($text);\n\t}", "public function checkCRLF(&$text)\n {\n $text = preg_replace(\"#(\\r\\n|\\r|\\n)#\", \"\\r\\n\", $text);\n }", "public function breakIntoSentences(string $text): array\n\t{\n\t\treturn preg_split('/(?<=[.?!;:])\\s+/', $text, -1, PREG_SPLIT_NO_EMPTY);\n\t}", "public function getRemoveLineBreaksFromTemplate() {}", "public static function explode_lines($value) {\n $structure = str_replace(\"\\r\\n\", \"\\n\", $value);\n $structure = str_replace(\"\\r\", \"\\n\", $structure);\n return explode(\"\\n\", trim($structure));\n }", "public function enableRemoveLineBreaksFromTemplate() {}", "protected function removeUnneccesaryLinebreaks($text) {\n\t\t$text = preg_replace(',(\\[[a-z0-9 ]+\\])\\s*,is', '$1', $text);\n\t\tReturn $text;\n\t}", "function getLines($string, $allow_empty = false)\n{\n $string = trim($string);\n $string = str_replace([\"\\r\\n\",PHP_EOL,\"<br>\",\"<br />\",\";\"], \"\\r\\n\", $string);\n\n if (!$string)\n {\n return [];\n }\n\n $string = explode(\"\\r\\n\", $string);\n foreach ($string as $i => $line)\n {\n $string[$i] = trim($line);\n if (!$allow_empty && empty($string[$i]))\n {\n unset($string[$i]);\n }\n }\n\n return $string;\n}", "protected function splitInLines(string $rawOutput)\n {\n $outputLines = preg_split(\"/\\r\\n|\\n|\\r/\", $rawOutput);\n\n return $outputLines;\n }", "public function NbLines($w,$txt){\n $cw=&$this->CurrentFont['cw'];\n\n if($w==0)\n $w=$this->w-$this->rMargin-$this->x;\n\n $wmax=($w-2*$this->cMargin)*1000/$this->FontSize;\n $s=str_replace(\"\\r\",'',$txt);\n $nb=strlen($s);\n if($nb>0 and $s[$nb-1]==\"\\n\")\n $nb--;\n\n $sep=-1;\n $i=0;\n $j=0;\n $l=0;\n $nl=1;\n\n while($i<$nb)\n {\n\n $c=$s[$i];\n\n if($c==\"\\n\")\n {\n $i++;\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n continue;\n }\n\n if($c == ' ')\n\n $sep=$i;\n $l+=$cw[$c];\n\n if($l > $wmax)\n {\n\n if($sep == -1)\n {\n\n if($i == $j)\n $i++;\n\n }else\n $i=$sep+1;\n\n $sep=-1;\n $j=$i;\n $l=0;\n $nl++;\n\n }else\n\n $i++;\n\n }\n\n return $nl;\n\n }", "function non_breaking() {\r\n\t\t// between the date number and month name (e.g. 3 June or June 3); and\r\n\t\t// in other places where breaking across lines might be disruptive to the reader, especially in infoboxes, such as £11 billion, June 2011, 5° 24′ 21.12″ N, Boeing 747, after the number in a numbered address (e.g. 123 Fake Street) and before roman numerals at the end of phrases (e.g. World War II and Pope Benedict XVI).\r\n\r\n\t\t// browsers treat dashes to be same as hyphens (even though they shouldn't)\r\n\t\t// consider http://www.punctuationmatters.com/the-hyphen-dash-n-dash-and-m-dash/\r\n\t\tReTidy::line_wrapping();\r\n\t\tReTidy::phys_units();\r\n\t\tReTidy::non_breaking_phone_number();\r\n\t\tReTidy::non_breaking_date();\r\n\t\tReTidy::non_breaking_dollar_amounts();\r\n\t\tReTidy::non_breaking_postal_code();\r\n\t\tReTidy::non_breaking_year_range();\r\n\t\t// some others we may want to do are names, honorifics, places...\r\n\t\tReTidy::clean_nowrap();\r\n\t\tReTidy::remove_tags_intra_tags(); // for dates in the <title> that earned <span style=\"white-space: nowrap;\">, for example\r\n\t\t\r\n\t}", "function splitPhrase(){\n $split = array();\n if(strpos($this->text, ' ')!= false){\n $split[0] = substr($this->text, 0, strpos($this->text, ' '));\n $split[1] = substr($this->text, strpos($this->text, ' '));\n }else{\n $split[0] = $this->text;\n $split[1] = \"\";\n }\n return $split;\n }", "function _getLines(&$text_lines, &$line_no, $end = \\false)\n {\n }", "public function test_linebreaks_removed() {\n\n\t\t$this->assertStringMatchesFormat(\n\t\t\t'%s'\n\t\t\t, $this->export_data['classes'][0]['doc']['long_description']\n\t\t);\n\t}", "public function split($raw)\n {\n // real dirty, hrhr but works\n $raw = ' '.$raw;\n\n // clean old tokens\n $this->tokens = [];\n $this->tokens[] = array(1,'');\n\n $regex = '/(' .\n implode(')|(', $this->catchablePatterns) . ')|'.\n implode('|', $this->nonCatchablePatterns) . '/i';\n\n $flags = PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE;\n // PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE\n\n $this->rawMatches = preg_split($regex, $raw, -1, $flags);\n\n $this->createTokens();\n\n //if (DEBUG)\n // Debug::console('raw input: ' , $raw);\n\n //if (DEBUG)\n // Debug::console('created tokens: ' , $this->tokens);\n\n }", "abstract protected function getIgnoredLines(): array;", "public function lines2Array($content) {\t\t\n\t\ttry {\n\t\t\t$content = str_replace(\"\\r\\n\", \"\\n\", $content);\n\t\t\t$content = str_replace(\"\\r\", \"\\n\", $content);\n\t\t\t$content = explode(\"\\n\", $content); // turn string to array\n\t\t\tarray_pop($content); // remove last element since it is empty\n\t\t\treturn $content;\n\t\t} catch (Exception $e) { \n\t\t\tthrow new Exception($e->getMessage().' from '.$this->className.'->'.\n\t\t\t\t__FUNCTION__.'() line '.__LINE__\n\t\t\t);\n\t\t} //<-- end try -->\n\t}", "function code_to_lines($pugCode) {\n $source = str_replace(\"\\r\", \"\", $pugCode);\n return explode(\"\\n\", $source . \"\\n\" . self::SKIP_STRING);\n }", "public static function normalizeBreaks($text, $breaktype = null)\n {\n }", "public function testIfWorks() : void\n {\n\n // Lvd.\n $expected = [\n [\n 'text' => '<world>',\n 'start' => 6,\n ],\n [\n 'text' => '<This parts are important>',\n 'start' => 14,\n ],\n [\n 'text' => '<but it go < deeper > and < < deeperer > > >',\n 'start' => 44,\n ],\n ];\n\n // Create.\n $toSplit = 'Hello <world> <This parts are \\> important> <but it go < deeper > and < < deeperer > > >.';\n $splitter = new Splitter($toSplit, '<', [ '>' ], '<', '>');\n $result = $splitter->split();\n\n // Test.\n $this->assertEquals($expected, $result);\n }", "function wordbreak($text, $wordsize) \n{\n\nif (strlen($text) <= $wordsize) { return $text; } # No breaking necessary, return original text.\n\n$text = str_replace(\"\\n\", \"\", $text); # Strip linefeeds\n$done = \"false\";\n$newtext = \"\";\n$start = 0; # Initialize starting position\n$segment = substr($text, $start, $wordsize + 1); # Initialize first segment\n\nwhile ($done == \"false\") { # Parse text\n\n\t$lastspace = strrpos($segment, \" \");\n\t$lastbreak = strrpos($segment, \"\\r\");\n\n\tif ( $lastspace == \"\" AND $lastbreak == \"\" ) { # Break segment\n\t\t$newtext .= substr($text, $start, $wordsize) . \" \";\n\t\t$start = $start + $wordsize; }\n\telse { # Move start to last space or break\n\t\t$last = max($lastspace, $lastbreak);\n\t\t$newtext .= substr($segment, 0, $last + 1);\n\t\t$start = $start + $last + 1;\n\t} # End If - Break segment\n\n\t$segment = substr($text, $start, $wordsize + 1);\n\n\tif ( strlen($segment) <= $wordsize ) { # Final segment is smaller than word size.\n\t\t$newtext .= $segment;\n\t\t$done = \"true\";\n\t} # End If - Final segment is smaller than word size.\n\n} # End While - Parse text\n\n$newtext = str_replace(\"\\r\", \"\\r\\n\", $newtext); # Replace linefeeds\n\nreturn $newtext;\n\n}", "function truncarLinhas($sText,$iTamanho) {\n \t\n \t$sRetorno = \"\";\n \t$aLinhas = explode(\"\\n\",$sText);\n \tforeach ($aLinhas as $sLinha) {\n \t\tif (strlen($sLinha) > $iTamanho) {\n \t\t\t$sRetorno .= \"\\n\".substr($sLinha,0,$iTamanho);\n \t\t}else{\n \t\t\t$sRetorno .= \"\\n\".$sLinha;\n \t\t}\n \t}\n \treturn $sRetorno;\n }", "public abstract function isTextPart();", "public static function stripTrailingBreaks($text)\n {\n }", "protected function split_sentences($text)\n {\n $sentence_delimiters = '/[\\.\\!\\?\\,\\;\\:\\t\"\\(\\)\\']|\\s\\-\\s/';\n $matches = [];\n $matches = preg_split($sentence_delimiters, $text);\n return array_map(\"trim\", $matches);\n }", "private function get_lines() {\n\t $data = \"\";\n\t while($str = @fgets($this->smtp_conn,515)) {\n\t if($this->do_debug >= 4) {\n\t echo \"SMTP -> get_lines(): \\$data was \\\"$data\\\"\" . $this->CRLF . '<br />';\n\t echo \"SMTP -> get_lines(): \\$str is \\\"$str\\\"\" . $this->CRLF . '<br />';\n\t }\n\t $data .= $str;\n\t if($this->do_debug >= 4) {\n\t echo \"SMTP -> get_lines(): \\$data is \\\"$data\\\"\" . $this->CRLF . '<br />';\n\t }\n\t // if 4th character is a space, we are done reading, break the loop\n\t if(substr($str,3,1) == \" \") { break; }\n\t }\n\t return $data;\n\t}", "function wordbreak($text, $wordsize)\n{\n\nif (strlen($text) <= $wordsize) { return $text; } # No breaking necessary, return original text.\n\n$text = str_replace(\"\\n\", \"\", $text); # Strip linefeeds\n$done = \"false\";\n$newtext = \"\";\n$start = 0; # Initialize starting position\n$segment = substr($text, $start, $wordsize + 1); # Initialize first segment\n\nwhile ($done == \"false\") { # Parse text\n\n\t$lastspace = strrpos($segment, \" \");\n\t$lastbreak = strrpos($segment, \"\\r\");\n\n\tif ( $lastspace == \"\" AND $lastbreak == \"\" ) { # Break segment\n\t\t$newtext .= substr($text, $start, $wordsize) . \" \";\n\t\t$start = $start + $wordsize; }\n\telse { # Move start to last space or break\n\t\t$last = max($lastspace, $lastbreak);\n\t\t$newtext .= substr($segment, 0, $last + 1);\n\t\t$start = $start + $last + 1;\n\t} # End If - Break segment\n\n\t$segment = substr($text, $start, $wordsize + 1);\n\n\tif ( strlen($segment) <= $wordsize ) { # Final segment is smaller than word size.\n\t\t$newtext .= $segment;\n\t\t$done = \"true\";\n\t} # End If - Final segment is smaller than word size.\n\n} # End While - Parse text\n\n$newtext = str_replace(\"\\r\", \"\\r\\n\", $newtext); # Replace linefeeds\n\nreturn $newtext;\n\n}", "public function disableRemoveLineBreaksFromTemplate() {}", "function splitText($text, bool $first_half = true) {\n $middle = strrpos(substr($text, 0, floor(strlen($text) / 2)), ' ') + 1;\n $subText = null;\n\n if($first_half) {\n $subText = substr($text, 0, $middle);\n }\n else {\n $subText = substr($text, $middle);\n }\n\n return $subText;\n\n }", "public function testForSmallWords2() {\n $ret = $this->resolucao->textWrap($this->baseString, 12);\n $this->assertEquals(\"Se vi mais\", $ret[0]);\n $this->assertEquals(\"longe foi\", $ret[1]);\n $this->assertEquals(\"por estar de\", $ret[2]);\n $this->assertEquals(\"pé sobre\", $ret[3]);\n $this->assertEquals(\"ombros de\", $ret[4]);\n $this->assertEquals(\"gigantes\", $ret[5]);\n $this->assertCount(6, $ret);\n }", "public static function explodeTextlines(\n string $input,\n int $flag = SELF::OMIT_EMPTY_LINES\n ): array {\n\n $out = explode(PHP_EOL, $input);\n if ($flag == self::KEEP_EMPTY_LINES) {\n return $out;\n }\n // Reject empty words\n foreach ($out as $pos => $word) {\n if (empty($word)) {\n unset($out[$pos]);\n }\n }\n return $out;\n }", "public function DivideText($tx){\n\t\t\tglobal $morphy;\n\t\t\t$tx = mb_strtoupper($tx);\n\t\t\t\n\t\t\t//деление текста на слова\n\t\t\t$arr = explode(\" \", $tx);\n\t\t\t$flag=true;\n\t\t\twhile ($flag){\n\t\t\t\t$sch=0;\n\t\t\t\tforeach ($arr as &$mass){\n\t\t\t\t\t//$mass=trim($mass);\n\t\t\t\t\t$ch=substr($mass,strlen($mass)-1,1);\n\t\t\t\t\t\t\tif ($ch==\",\" or \n\t\t\t\t\t\t\t\t$ch==\";\" or \n\t\t\t\t\t\t\t\t$ch==\".\" or \n\t\t\t\t\t\t\t\t$ch==\"!\" or\n\t\t\t\t\t\t\t\t$ch==\"?\" or\n\t\t\t\t\t\t\t\t$ch==\":\"){\n\t\t\t\t\t\t\t\t\t$mass = substr($mass,0,strlen($mass)-1);\n\t\t\t\t\t\t\t\t\t$sch++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($sch==0)$flag=false;\n\t\t\t}\t\n\t\t\t\n\t\t\t//нормализация\n\t\t\t$a = $morphy->lemmatize($arr);\n\t\t\n\t\t\t//приведение к одномерному массиву\n\t\t\t$one[] = array();\n\t\t\t$i = 0;\n\t\t\tforeach($a as &$mass){\n\t\t\t\tforeach($mass as &$m){\n\t\t\t\t\t$m = mb_strtolower($m);\n\t\t\t\t\tif (strlen($m)>2){\n\t\t\t\t\t\t$one[$i] = $m;\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $one;\n\t\t}", "public function line($text) { return $this->l($text); }", "public function parseLine ($text) {\n\n $text = trim($text);\n\n if (substr($text, 0, 1) === '@') {\n\n $this->setTag($text);\n return;\n\n }\n\n\n if ($this->lastTagSet !== null) {\n\n $this->appendToLastTagSet($text);\n return;\n\n }\n\n\n if ($text != '' && !$this->hasShortDescription()) {\n\n $this->values['short_description'] = $text;\n $this->lastTagSet = null;\n return;\n\n }\n\n\n $this->setLongDescription($text);\n $this->lastTagSet = null;\n\n\n }", "public function isMultiline() {}", "static private function numTextLines($st) {\r\n// Temporary -1\r\n $i=-1;\r\n\r\n if ($i == -1) {\r\n return 1;\r\n } else {\r\n $tmpResult = 0;\r\n while ($i != -1) {\r\n $tmpResult++;\r\n $st = $st->substring($i + 1);\r\n $i = $st->indexOf(Language::getString(\"LineSeparator\"));\r\n }\r\n if ($st->length() != 0) {\r\n $tmpResult++;\r\n }\r\n return $tmpResult;\r\n }\r\n }" ]
[ "0.68881565", "0.63846195", "0.63690126", "0.6133611", "0.5958557", "0.5824971", "0.57975596", "0.575124", "0.57438827", "0.57377017", "0.5710735", "0.566629", "0.56589407", "0.55772704", "0.5453457", "0.5453457", "0.5453457", "0.5453457", "0.54501194", "0.5431226", "0.5426652", "0.5396871", "0.5392721", "0.537969", "0.5370616", "0.5370616", "0.53620034", "0.5348346", "0.5330274", "0.53259987", "0.5309439", "0.52974504", "0.52974504", "0.52974504", "0.5297093", "0.52969337", "0.5280614", "0.5279353", "0.52724695", "0.52720153", "0.52720153", "0.52720153", "0.5260441", "0.5259641", "0.5259641", "0.5250254", "0.52495974", "0.5249337", "0.52406174", "0.5233579", "0.5212338", "0.5204438", "0.5204438", "0.5189018", "0.51876944", "0.51876944", "0.51876944", "0.518566", "0.51814675", "0.5179823", "0.51751435", "0.51588243", "0.5146517", "0.51395446", "0.51316786", "0.511276", "0.51096845", "0.51018536", "0.5096824", "0.50949824", "0.50911534", "0.50777364", "0.5069945", "0.50658023", "0.506314", "0.50473255", "0.5035014", "0.50297165", "0.50291586", "0.50087506", "0.499892", "0.49953735", "0.49870086", "0.49811068", "0.49565825", "0.49558613", "0.49490643", "0.49478143", "0.49415362", "0.49401823", "0.4931908", "0.49196678", "0.49184036", "0.49060336", "0.4905817", "0.49044296", "0.49016392", "0.49014747", "0.48972923", "0.4894856" ]
0.695016
0
First get a list of the comments for this post
function add_comments( $post_id, $data ) { $comments = array(); foreach ( $data as $k => $v ) { // comments start with cvs_comment_ if ( preg_match( '/^csv_comment_([^_]+)_(.*)/', $k, $matches ) && $v != '' ) { $comments[ $matches[1] ] = 1; } } // Sort this list which specifies the order they are inserted, in case // that matters somewhere ksort( $comments ); // Now go through each comment and insert it. More fields are possible // in principle (see docu of wp_insert_comment), but I didn't have data // for them so I didn't test them, so I didn't include them. $count = 0; foreach ( $comments as $cid => $v ) { $new_comment = array( 'comment_post_ID' => $post_id, 'comment_approved' => 1, ); if ( isset( $data["csv_comment_{$cid}_author"] ) ) { $new_comment['comment_author'] = convert_chars( $data["csv_comment_{$cid}_author"] ); } if ( isset( $data["csv_comment_{$cid}_author_email"] ) ) { $new_comment['comment_author_email'] = convert_chars( $data["csv_comment_{$cid}_author_email"] ); } if ( isset( $data["csv_comment_{$cid}_url"] ) ) { $new_comment['comment_author_url'] = convert_chars( $data["csv_comment_{$cid}_url"] ); } if ( isset( $data["csv_comment_{$cid}_content"] ) ) { $new_comment['comment_content'] = convert_chars( $data["csv_comment_{$cid}_content"] ); } if ( isset( $data["csv_comment_{$cid}_date"] ) ) { $new_comment['comment_date'] = $this->parse_date( $data["csv_comment_{$cid}_date"] ); } $id = wp_insert_comment( $new_comment ); if ( $id ) { $count ++; } else { $this->log['error'][] = "Could not add comment $cid"; } } return $count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function comments()\n {\n // check if user is already loaded, if not, we fetch it from database\n if ($this->_comments) {\n return $this->_comments;\n } else {\n $comments = new Application_Model_DbTable_Comments();\n\n foreach ($comments->findAllBy('post_id', $this->_id) as $comment) {\n $this->_comments[] = $comment ;\n }\n return $this->_comments;\n }\n }", "public function list_comments()\n {\n $url = $this->instanceUrl() . '/comments';\n list($response, $opts) = $this->_request('get', $url, null, null);\n\n // This is needed for nextPage() and previousPage()\n $response['url'] = $url;\n\n $obj = Util\\Util::convertToTelnyxObject($response, $opts);\n return $obj;\n }", "public function getComments()\n {\n return $this->api->_request('GET', '/api/comments?id='.$this->ID);\n }", "public function getComments() \n {\n return $this->hasMany(Comment::className(), [\n 'post_id' => 'id',\n ]);\n }", "public function getComments($idPost)\n\t{\n\t\t$req=$this->_bdd->query('SELECT Comments.id, content_com AS content, DATE_FORMAT(date_com, \"%d/%m/%Y %Hh%imin%ss\") AS date, id_users AS idUser, id_post AS idPost, moderate, login FROM Comments INNER JOIN Users ON id_users=Users.id WHERE id_post='.$idPost);\n\n\t\t$comments=[];\n\t\n\t\twhile($datas=$req->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\t\n\t\t\t\t\t$comments[]=new Comments($datas);\t\t\n\t\t\t}\n\t\treturn $comments;\n\t\t\t\t\n\t}", "public function getComments() {\n return $this->hasMany(Comment::class, ['post_id' => 'id']);\n }", "public function getPostComments($pid = null) { \r\n // if the query is made using findOne(), the method will return just the element being queried \r\n $comments = $this->_comment_collection->find(array('post_id' => new MongoId($pid) ) ); \r\n return $comments; \r\n }", "private function get_comments_list($post_id)\n\t{\n\t\t$owner_id = ($this->owner->logged_in())\n\t\t\t? $this->owner->get_user()->id\n\t\t\t: FALSE;\n\n\t\t$comments = ORM::Factory('forum_cat_post_comment')\n\t\t\t->select(\"\n\t\t\t\tforum_cat_post_comments.*,\n\t\t\t\t(SELECT owner_id \n\t\t\t\t\tFROM forum_comment_votes\n\t\t\t\t\tWHERE forum_cat_post_comment_id = forum_cat_post_comments.id\n\t\t\t\t\tAND owner_id = '$owner_id'\n\t\t\t\t) AS has_voted\n\t\t\t\")\n\t\t\t->where(array(\n\t\t\t\t'forum_cat_post_comments.forum_cat_post_id' => $post_id,\n\t\t\t\t'forum_cat_post_comments.is_post !=' => '1',\n\t\t\t))\n\t\t\t->orderby(\"forum_cat_post_comments.$this->sort_by\", \"$this->order\")\n\t\t\t->find_all();\n\t\tif(0 == $comments->count())\n\t\t\treturn 'No comments yet';\n\n\t\t$view = new View('public_forum/comments_list');\n\t\t$view->is_logged_in\t= $this->owner->logged_in();\t\n\t\t$view->owner\t= $owner_id;\t\t\t\n\t\t$view->comments\t\t= $comments;\n\t\treturn $view;\n\t}", "public function getComments() {}", "public function getComments($post_id){\n\t\t$sql = 'SELECT user_name, date_creation, content, state, id FROM comment WHERE post_id=' . $post_id . \" AND state >= 2 ORDER BY id DESC\";\n\t\t$data = $this->db->query($sql);\n\t\treturn $data->fetchAll();\n\t}", "public function getAllPostsWithComments(){\n $entityManager = $this->getEntityManager();\n $queryBuilder = $entityManager->createQueryBuilder();\n $queryBuilder\n ->select('bp','c')\n ->from('App:BlogPost', 'bp')\n ->join('bp.comments','c','WITH', 'bp.id=c.blogPost');\n\n return $queryBuilder->getQuery()->getResult();\n }", "public function comments()\n {\n $sort = Sorter::getCommentSortId();\n $orderField = $sort == 1 ? 'rate' : 'id';\n $orderDir = $sort == 1 ? 'desc' : 'asc';\n return $this->morphMany(Comment::class, 'commentable')->orderBy($orderField, $orderDir);\n }", "public function getComments($post_id)\n {\n $statement = $this->pdo->prepare(\"SELECT * FROM comments WHERE post_id = :post_id ORDER BY comments_id DESC\");\n\n $statement->execute(\n [\n \":post_id\" => $post_id,\n ]\n );\n\n $all_comments = $statement->fetchAll(PDO::FETCH_ASSOC);\n\n $this->all_comments = $all_comments;\n }", "public function get_comments()\n {\n }", "public function getComments() {\n\t\treturn $this->api->getCommentsByPhotoId($this->getId());\n\t}", "public function getAllComments()\n\t{\n\t\t$req=$this->_bdd->query('SELECT Comments.id, content_com AS content, DATE_FORMAT(date_com, \"%d/%m/%Y %Hh%imin%ss\") AS date, id_users, id_post, moderate, login FROM Comments INNER JOIN Users ON id_users=Users.id WHERE moderate >0 ORDER BY moderate DESC');\n\t\t\n\t\t$comments=[];\n\t\twhile($datas=$req->fetch(PDO::FETCH_ASSOC))\n\t\t{\n\t\t\t\n\t\t\t\t $comments[]=new Comments($datas);\n\t\t\t\t //return $comments;\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn $comments;\n\t}", "public static function get_cms_comment_url_list()\n\t{\n\t\treturn self::get_cms_post_url_list(Helper_PostType::COMMENT);\n\t}", "public static function getComments($post)\n {\n\n // check param type\n // we do this here to support manual template data overrides, such as providing an array of values\n if (!is_object($post) || 'Timber\\Post' !== get_class($post)) {\n return false;\n }\n\n // comments turned off\n if (!self::$commentsOn) {\n return false;\n }\n\n // get comments from WordPress function and return hierarchical Timber\\Comment array\n $comments = self::buildCommentList(get_comments(\n array(\n 'post_id' => $post->ID,\n 'number' => self::$pageComments ? self::$commentsPerPage : null,\n 'offset' => self::$pageComments ? (get_query_var('cpage', 1) * self::$commentsPerPage) - self::$commentsPerPage : 0,\n 'status' => 'approve',\n 'type' => 'comment',\n 'order' => (self::$defaultCommentsPage == 'newest') ? 'DESC' : 'ASC',\n 'hierarchical' => self::$threadComments\n )\n ));\n\n // reorder comments by date\n if (self::$commentOrder == 'asc') {\n usort($comments, array('MGPressComments', 'sortByAsc'));\n } else {\n usort($comments, array('MGPressComments', 'sortByDesc'));\n }\n\n return $comments;\n }", "public function getComments($post_id) \n {\n return $this->callRestMethod('stream.getComments', \n array('post_id' => $post_id));\n }", "private function my_comments_list()\n\t{\n\t\t$comments = ORM::factory('forum_cat_post_comment')\n\t\t\t->with('forum_cat_post')\n\t\t\t->where(array(\n\t\t\t\t'owner_id'\t=> $this->owner->get_user()->id,\n\t\t\t\t'is_post'\t\t=> '0'\n\t\t\t))\n\t\t\t->orderby(\"forum_cat_post_comments.$this->sort_by\", $this->order)\n\t\t\t->find_all();\n\t\tif(0 == $comments->count())\n\t\t\treturn 'No comments added yet.';\n\t\t\t\n\t\t$view = new View('public_forum/my_comments_list');\n\t\t$view->comments = $comments;\n\t\treturn $view;\n\t}", "public function getComments($postId)\n {\n $db = $this->dbConnect();\n $comments = $db->prepare('SELECT id, author, comment, DATE_FORMAT(comment_date, \\'%d/%m/%Y à %Hh%imin%ss\\') AS comment_date_fr FROM comments WHERE post_id = ? ORDER BY comment_date DESC');\n $comments->execute(array($postId));\n\n return $comments;\n }", "public function comments() {\n return $this->hasMany('App\\Models\\Comment', 'post_id');\n }", "public function comments()\n {\n return $this->hasMany(Comment::class, 'post_id');\n }", "public function getComments()\n {\n return $this->comments;\n }", "public function getComments()\n {\n return $this->comments;\n }", "public function getComments()\n {\n return $this->comments;\n }", "public function getComments()\n {\n return $this->comments;\n }", "function tempera_list_comments() {\t\n\t\t\t\t\twp_list_comments( array( 'callback' => 'tempera_comment' ) );\n\t\t\t}", "public function getComments()\n {\n $id = $this->getId();\n\n $stmt = \" SELECT c.*, c.id as id, u.username, u.profile_picture FROM _xyz_article_comment_pivot acp \" .\n \" LEFT JOIN _xyz_comment c ON c.id = acp.comment_id \" .\n \" LEFT JOIN _xyz_user u ON u.id = c.user_id \" .\n \" WHERE acp.article_id = $id \"\n ;\n\n $sql = DB::instance()->query( $stmt );\n\n $rows = $sql->fetchAll(\\PDO::FETCH_UNIQUE|\\PDO::FETCH_ASSOC );\n\n $result = CommentCollection::toTree( $rows );\n\n return $result;\n }", "public function getComments()\n\t{\n\n\t\treturn $this->comments;\n\t}", "public function getComments() {\n if(!isset($this->comments)) {\n $this->comments = MergeRequestComment::getListByExample(\n new DBExample(array(\n 'mergeRequestId' => $this->id\n )),\n null,\n array(),\n array(\n 'parentId' => DB::SORT_ASC,\n 'ctime' => DB::SORT_ASC\n )\n );\n }\n\n return $this->comments;\n }", "public function getComments(): Collection\n {\n return $this->comments;\n }", "public function allCommentsPost($post_id) {\r\n $table = $this->config->db_prefix . 'comments';\r\n return $this->database->selectAllFromTableWhereFieldValue($table, \"article_id\", $post_id);\r\n }", "public function getComments() {\n \n return $this->comments;\n }", "public function getAllComments() {\n\n\t\t$sql = \"SELECT comment_id, comment_text, entries.post_title, users.user_name FROM comments\n\t\t\t\tINNER JOIN entries ON comments.post_id = entries.post_id \n\t\t\t\tINNER JOIN users ON users.user_id = comments.comment_author\";\n\t\t//create stdStatemment object | call to Model method from core/Database.php\n\t\treturn $this->setStatement($sql);\n\t}", "function getComments($post_id){\n GLOBAL $CONNECTION; \n $sql = \"SELECT * FROM comment WHERE post_id=$post_id ORDER BY commented_at DESC\";\n $comments = mysqli_query($CONNECTION, $sql);\n return $comments;\n }", "public function getComments ()\n {\n $db = $this->dbConnect ();\n $req = $db->prepare ('SELECT id_comment,signalement,id_chapter,author,comment,DATE_FORMAT(dateComment, \\'%d/%m/%Y \\') AS dateComment FROM comments WHERE ? ORDER BY id_comment DESC ');\n $req->execute (array ( 1 ));\n return $req;\n }", "public function comments()\n\t{\n\t\treturn $this->has_many('comment');\n\t}", "public function comments(): HasMany\n {\n return $this->posts()\n ->where('is_private', false)\n ->whereNull('hidden_at')\n ->where('type', 'comment');\n }", "public function getAllComments()\n {\n $req = $this->pdo->prepare('SELECT * FROM comments ORDER BY `date` DESC');\n $req->execute();\n\n return $req->fetchAll();\n }", "public function getComments ($postId) {\n\n\t\t$sql = \"SELECT comment_author, comment_text, users.user_name\n\t\t\t\t FROM comments INNER JOIN users ON comments.comment_author = users.user_id WHERE post_id = ?\";\n\t\t$data = [$postId];\n\t\t//create stdStatemment object | call to Model method from core/Database.php\n\t\treturn $this->setStatement($sql,$data);\t\t\n\t}", "public function getComments() : Collection\n {\n return $this->comments;\n }", "function get_post_comments($post_id)\n{\n $select_query = 'SELECT c.*, u.username\n FROM '.TBL_COMMENTS.' c\n JOIN '.TBL_USERS.' u\n ON u.`user_id` = c.`user_id`\n WHERE c.`post_id`='.(int)$post_id.'\n ORDER BY c.`created_ts` ASC';\n\n $comments = array();\n $results = mysql_query($select_query);\n while($row = mysql_fetch_assoc($results))\n {\n $comments[] = $row;\n }\n\n return $comments;\n}", "public function getAllComments(){\n $comments = $this->db->query('SELECT * FROM comments');\n return $comments;\n }", "public function getAllComments() {\r\n \r\n $commentEntries = array();\r\n\r\n $sql = \"SELECT *\r\n FROM RecipeComments\r\n WHERE page = '$this->page'\r\n ORDER BY timestamp\"; \r\n \r\n $result = $this->conn->query($sql);\r\n \r\n $rows = $result->num_rows;\r\n \r\n for($i=1; $i<=$rows; $i++) {\r\n $row = $result->fetch_assoc();\r\n array_push($commentEntries, $row[\"username\"]);\r\n array_push($commentEntries, $row[\"comment\"]);\r\n array_push($commentEntries, $row[\"timestamp\"]);\r\n \r\n }\r\n\r\n return $commentEntries;\r\n \r\n }", "public function comments()\n {\n return $this->morphMany('App\\Comment', 'commentable')->orderBy('created_at', 'DESC');\n }", "public function getComments($post_id) \n\t{\t\n\t\ttry {\n\t\t\t$access_token=$this->facebookappid.\"|\".$this->facebookscret;\t\t\t\n\t\t\tFacebookSession::setDefaultApplication($this->facebookappid, $this->facebookscret);\n\t\t\t$session = new FacebookSession($access_token);\n\t\t\t$comments_query=\"/\".$post_id.\"/comments\";\n\t\t\t$comments_result=$this->FBrequest($session,$comments_query);\t\t\t\t\t\t\n\t\t\treturn $comments_result;\n\t\t\t} catch (Exception $e) {\n\t\t\techo $e->getMessage();\n\t\t\t}\t\t\t\n\t}", "public function getCommentsData()\n {\n $query = $this->getComments()->orderBy(['tree' => SORT_ASC, 'lft' => SORT_ASC]);\n $dependency = new TagDependency(['tags' => [self::CACHE_TAG_POST_ALL_COMMENTS]]);\n return self::getDb()->cache(static function () use ($query) {\n return $query->all();\n }, self::CACHE_DURATION, $dependency);\n }", "public function index()\n {\n return $this->service->fetchResources(Comment::class, 'comments');\n }", "public function getComments()\n\t\t{\n\t\t\tif ($this->comments === NULL)\n\t\t\t{\n\t\t\t\t$this->comments = new ECash_Application_Comments($this->db, $this->application_id, $this->getCompanyId());\n\t\t\t}\n\n\t\t\treturn $this->comments;\n\t\t}", "public function getFirstThreePostComments($post_id)\n {\n return $init_comments = Comment::find()->with('user')->with('post')->where(['post_id' => \"$post_id\",'status' => '1','parent_comment_id'=>'0'])->orderBy(['created_date'=>SORT_DESC])->limit(3)->all();\n \n }", "public function getAllTheComments(){\n\t\t try{\n\t\t\t $conn=DBConnection::GetConnection();\n\t\t\t $myquery=\"SELECT comment_id,comment_description,comment_date,news_id,user_name FROM comment\";\n\t\t\t $result= $conn->query($myquery);\n\t\t\t $comments=array();\n\t\t\t foreach($result as $comment){\n\t\t\t\t$c1=new Comment();\n\t\t\t\t$c1->setCommentId($comment[\"comment_id\"]);\n\t\t\t\t$c1->setCommentDescription($comment[\"comment_description\"]);\n\t\t\t\t$c1->setCommentDate($comment[\"comment_date\"]);\n\t\t\t\t$c1->setNewsId($comment[\"news_id\"]);\n\t\t\t\t$c1->setUserName($comment[\"user_name\"]);\n\t\t\t\tarray_push($comments,$c1);\t\t\t\t\n\t\t\t }\n\t\t\t$conn =null;\n\t\t\treturn $comments;\n\t\t }catch(PDOException $p){\n\t\t\t echo 'Fail to connect';\n\t\t\t echo $p->getMessage();\n\t\t }\n\t }", "public function getComments0()\n {\n return $this->hasMany(Comments::className(), ['parentPost' => 'id']);\n }", "public function comments()\n {\n return $this->morphMany(Comments::getCommentsRepository()->getModel(), 'entity');\n }", "public function getComments()\n {\n return $this->hasMany(Comment::class, ['created_by' => 'id']);\n }", "public function comments()\n {\n return $this->morphedByMany('App\\Comment', 'likeable');\n }", "public function getComments() {\n $db = new mysql('testserver', 'testuser', 'testpassword');\n $sql = \"SELECT * FROM comments_table where parent_id=0 ORDER BY create_date DESC;\";\n $result = mysql_query($sql, $db);\n $comments = [];\n while ($row = mysql_fetch_assoc($result)) {\n $comment = $row;\n $reply_1_sql = \"SELECT * FROM comments_table where parent_id=\" . $row['id'] . \" ORDER BY create_date DESC;\";\n $result_reply_1 = mysql_query($reply_1_sql, $db);\n $replies = [];\n while ($row1 = mysql_fetch_assoc($result)) {\n $reply = $row1;\n $reply_2_sql = \"SELECT * FROM comments_table where parent_id=\" . $row1['id'] . \" ORDER BY create_date DESC;\";\n $result_reply_2 = mysql_query($reply_2_sql, $db);\n $replies_to_replies = [];\n while ($row2 = mysql_fetch_assoc($result)) {\n $replies_to_replies[] = $row2;\n }\n $reply['replies'] = $replies_to_replies;\n $replies[] = $reply;\n }\n $comment['replies'] = $replies;\n $comments[] = $comment;\n }\n return $comments;\n }", "public function getCommentsByPostId($postId)\n {\n $req = $this->getDataBase()->prepare('SELECT id, author, comment, report, post_id, DATE_FORMAT(comment_date, \\'%d/%m/%Y <em>à</em> %Hh%imin\\') AS comment_date FROM comments WHERE post_id = ? ORDER BY comment_date DESC ');\n $req->execute(array($postId));\n $comments = [];\n while($data = $req->fetch(PDO::FETCH_ASSOC)) {\n $comments[] = $this->hydrate($data);\n }\n $req->closeCursor();\n \n return $comments;\n }", "function get_comments(){\n\n\t}", "public function comments() {\n\t\treturn $this->hasMany('NGiraud\\News\\Models\\Comment')->where('parent_id', 0)->orderBy('updated_at', 'desc');\n\t}", "public function post_comments()\n {\n return $this->hasMany('arts\\Post_comment', 'post_id', 'post_id');\n }", "public function getComments($postId, $parentCommentId = 0){\n\t\t$commentQuery = $this->mysqli->query(\"SELECT \n\t\t\t\t\t\tcomments.comment_id,\n\t\t\t\t\t\tUNIX_TIMESTAMP(comments.date) as date,\n\t\t\t\t\t\tcomments.content, \n\t\t\t\t\t\tusers.username\n\t\t\t\t\t\tFROM comments LEFT JOIN users ON comments.user_id = users.user_id\n\t\t\t\t\t\tWHERE post_id=\".$postId.\"\n\t\t\t\t\t\tAND replied_comment_id=\".$parentCommentId);\n\t\t\n\t\t$commentArr = array();\n\t\t\n\t\twhile($comment = $commentQuery->fetch_object()){\n\t\t\t$commentObj = new Comment($comment->comment_id, $comment->date, $comment->content);\n\t\t\t$commentObj->setUsername($comment->username);\n\t\t\t\n\t\t\t//Get the comment's votes\n\t\t\t$votes = $this->mysqli->query(\"SELECT\n\t\t\t\t\tvalue, COUNT(user_id) AS count FROM votes\n\t\t\t\t\tWHERE content_id=\".$comment->comment_id.\" AND is_post_vote=0\n\t\t\t\t\tGROUP BY value\n\t\t\t\t\t\");\n\t\t\tif($votesDown = $votes->fetch_object()){\n\t\t\t\t$votesDown = $votesDown->count;\n\t\t\t}else{\n\t\t\t\t$votesDown = 0;\n\t\t\t}\n\t\t\t$commentObj->setVoteDown($votesDown);\n\t\t\t\n\t\t\tif($votesUp = $votes->fetch_object()){\n\t\t\t\t$votesUp = $votesUp->count;\n\t\t\t}else{\n\t\t\t\t$votesUp = 0;\n\t\t\t}\n\t\t\t$commentObj->setVoteUp($votesUp);\n\t\t\t\n\t\t\t$commentObj->addCommentArr($this->getComments($postId, $commentObj->getId()));\n\t\t\t$commentArr[] = $commentObj;\n\t\t}\n\t\t\n\t\treturn $commentArr;\n\t\t\n\t}", "public function getBookmarkedComments()\n {\n return $this->withoutChildren(Auth::user()->bookmarkedComments()->simplePaginate(10));\n }", "public function commentsAction()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t$user = Application_Model_User::getAuth();\r\n\r\n\t\t\t$id = $this->_request->getPost('id');\r\n\r\n\t\t\tif (!v::intVal()->validate($id))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect post value: ' .\r\n\t\t\t\t\tvar_export($id, true));\r\n\t\t\t}\r\n\r\n\t\t\tif (!Application_Model_News::checkId($id, $post, ['join'=>false]))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect post ID');\r\n\t\t\t}\r\n\r\n\t\t\t$start = $this->_request->getPost('start', 0);\r\n\r\n\t\t\tif (!v::intVal()->validate($start))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect start value: ' .\r\n\t\t\t\t\tvar_export($start, true));\r\n\t\t\t}\r\n\r\n\t\t\t$limit = 30;\r\n\t\t\t$model = new Application_Model_Comments;\r\n\t\t\t$comments = $model->findAllByNewsId($id, [\r\n\t\t\t\t'limit' => $limit,\r\n\t\t\t\t'start' => $start,\r\n\t\t\t\t'owner_thumbs' => [[55,55]]\r\n\t\t\t]);\r\n\r\n\t\t\t$response = ['status' => 1];\r\n\r\n\t\t\tif (count($comments))\r\n\t\t\t{\r\n\t\t\t\tforeach ($comments as $comment)\r\n\t\t\t\t{\r\n\t\t\t\t\t$response['data'][] = My_ViewHelper::render('post/_comment', [\r\n\t\t\t\t\t\t'user' => $user,\r\n\t\t\t\t\t\t'comment' => $comment,\r\n\t\t\t\t\t\t'post' => $post,\r\n\t\t\t\t\t\t'limit' => 250\r\n\t\t\t\t\t]);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$count = max($post->comment - ($start + $limit), 0);\r\n\r\n\t\t\t\tif ($count > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$response['label'] = $model->viewMoreLabel($count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\tMy_Log::exception($e);\r\n\t\t\t$response = [\r\n\t\t\t\t'status' => 0,\r\n\t\t\t\t'message' => $e instanceof RuntimeException ? $e->getMessage() :\r\n\t\t\t\t\t'Internal Server Error'\r\n\t\t\t];\r\n\t\t}\r\n\r\n\t\t$this->_helper->json($response);\r\n\t}", "public function comments(Request $request, Post $post)\n {\n $result = $post->comments()\n ->latest()\n ->with('user', 'targetUser', 'targetComment')\n ->paginate(5);\n return response()->json($result);\n }", "public function comments_for_carddeck() {\n global $DB, $OUTPUT;\n $ufields = \\user_picture::fields('u');\n\n $sql = \"SELECT c.id AS cid, $ufields, c.feedback AS feedback, c.timecreated AS feedbackcreated\n FROM {swipe_swipefeedback} c\n JOIN {user} u ON u.id = c.userid\n WHERE c.swipeid = :swipeid\n ORDER BY c.timecreated DESC\";\n $params['swipeid'] = $this->cm->instance;\n\n $comments = $DB->get_records_sql($sql, $params);\n\n if (count($comments)) {\n foreach ($comments as &$comment) {\n $comment->name = fullname($comment);\n $comment->avatar = $OUTPUT->user_picture($comment, array('size' => 18));\n }\n }\n return array_values($comments);\n }", "public function getComments() {\n\t\treturn $this->arrComments;\n\t}", "public function getAllComment()\n {\n return Comment::find()->with('user')->orderBy(['created_date'=>SORT_DESC])->all();\n \n }", "public function comments()\n {\n $get = $this->getGet('articleId');\n $result = Db::sharedDb()->comments($get['articleId']);\n\n return $this->successResponse($result);\n\n }", "public function comments(){\n\t\t// Comment, 'foreign_key', 'local_key'\n\t\treturn $this->hasMany(Comment::class, 'post_id', 'id');\n\t}", "public function showPostComments($postId)\n {\n $this->db->query('SELECT comments.id as commentId,\n\t\t\t\t\t\t\t\tusers.first_name as fname,\n\t\t\t\t\t\t\t\tusers.last_name as lname,\n\t\t\t\t\t\t\t\tcomments.postId as postId,\n\t\t\t\t\t\t\t\tcomments.content as content,\n\t\t\t\t\t\t\t\tcomments.note as note,\n\t\t\t\t\t\t\t\tcomments.dateComment as dateComment\n\t\t\t\t\t\t\t\tFROM comments, users\n\t\t\t\t\t\t\t\tWHERE postId = :postId\n\t\t\t\t\t\t\t\tAND comments.userId = users.id\n\t\t\t\t\t\t\t\tORDER BY comments.dateComment DESC');\n\n $this->db->bind(':postId', $postId);\n $results = $this->db->resultSet();\n return $results;\n }", "public function comments() {\n\n\t\treturn $this->hasMany(Comment::class);\n\t}", "public function getComments()\n {\n return $this->morphMany(Comment::class, 'commentable');\n }", "public function getComments($idPoem) {\n \n $sql = 'SELECT COM_ID as id, ' . \n ' COM_DATE as date, ' . \n ' COM_AUTHOR as author, ' . \n ' COM_CONTENT as content ' . \n 'FROM T_COMMENT ' . \n 'WHERE ARTICLE_ID = ? ';\n \n $comments = $this->executeQuery($sql, array($idPoem));\n \n return $comments;\n }", "public function getComments($id){\n $id = (int)$id;\n $sql = \"select * from comments WHERE discussion_id = '{$id}'\";\n return $this->db->query($sql);\n }", "public function comments()\n {\n return new Comments($this->getClient());\n }", "public function getCommentList( $page ) {\n global $wgCommentsSortDescending;\n $dbr = wfGetDB( DB_SLAVE );\n\n $tables = array();\n $params = array();\n $joinConds = array();\n\n // Defaults (for non-social wikis)\n $tables[] = 'Comments';\n $fields = array(\n 'Comment_Username', 'Comment_IP', 'Comment_Text',\n 'Comment_Date', 'UNIX_TIMESTAMP(Comment_Date) AS timestamp',\n 'Comment_user_id', 'CommentID',\n 'IFNULL(Comment_Plus_Count - Comment_Minus_Count,0) AS Comment_Score',\n 'Comment_Parent_ID', 'CommentID', 'Comment_Plus_Count AS CommentVotePlus',\n\t\t\t'Comment_Minus_Count AS CommentVoteMinus'\n );\n $params['LIMIT'] = $this->limit;\n $params['OFFSET'] = ( $page > 0 ) ? ( ( $page - 1 ) * $this->limit ) : 0;\n if ( $this->orderBy != 0 ) {\n $params['ORDER BY'] = 'Comment_Score DESC';\n }\n\n // If SocialProfile is installed, query the user_stats table too.\n if (\n $dbr->tableExists( 'user_stats' ) &&\n class_exists( 'UserProfile' )\n ) {\n $tables[] = 'user_stats';\n $fields[] = 'stats_total_points';\n $joinConds = array(\n 'Comments' => array(\n 'LEFT JOIN', 'Comment_user_id = stats_user_id'\n )\n );\n }\n\n // Perform the query\n $res = $dbr->select(\n $tables,\n $fields,\n array( 'Comment_Page_ID' => $this->id ),\n __METHOD__,\n $params,\n $joinConds\n );\n\n $comments = array();\n\n foreach ( $res as $row ) {\n if ( $row->Comment_Parent_ID == 0 ) {\n $thread = $row->CommentID;\n } else {\n $thread = $row->Comment_Parent_ID;\n }\n $data = array(\n 'Comment_Username' => $row->Comment_Username,\n 'Comment_IP' => $row->Comment_IP,\n 'Comment_Text' => $row->Comment_Text,\n 'Comment_Date' => $row->Comment_Date,\n 'Comment_user_id' => $row->Comment_user_id,\n 'Comment_user_points' => ( isset( $row->stats_total_points ) ? number_format( $row->stats_total_points ) : 0 ),\n 'CommentID' => $row->CommentID,\n 'Comment_Parent_ID' => $row->Comment_Parent_ID,\n 'thread' => $thread,\n 'timestamp' => $row->timestamp\n );\n\n $comments[] = new Comment( $this, $this->getContext(), $data );\n }\n\n if ( $this->orderBy == 0 ) {\n if ( $wgCommentsSortDescending ) {\n usort( $comments, 'CommentFunctions::sortDesc' );\n } else {\n usort( $comments, 'CommentFunctions::sortAsc' );\n }\n }\n\n return $comments;\n }", "public function getComments()\n {\n if ($this->_commentCollection === null) {\n $entity = $this->getEntity();\n if ($entity instanceof \\Magento\\Sales\\Model\\Order\\Invoice) {\n $this->_commentCollection = $this->_invoiceCollectionFactory->create();\n } elseif ($entity instanceof \\Magento\\Sales\\Model\\Order\\Creditmemo) {\n $this->_commentCollection = $this->_memoCollectionFactory->create();\n } elseif ($entity instanceof \\Magento\\Sales\\Model\\Order\\Shipment) {\n $this->_commentCollection = $this->_shipmentCollectionFactory->create();\n } else {\n throw new \\Magento\\Framework\\Exception\\LocalizedException(__('We found an invalid entity model.'));\n }\n\n $this->_commentCollection->setParentFilter($entity)->setCreatedAtOrder()->addVisibleOnFrontFilter();\n }\n\n return $this->_commentCollection;\n }", "public function comments() {\n return $this->morphMany(Comment::class,'commentable', 'parent_type', 'parent_id')->orderBy('created_at', 'ASC');\n }", "public function comments(){\n return $this->hasMany('App\\TextPostComment', 'post_id');\n }", "public function comments()\n {\n return $this->hasMany('Model\\PostComment');\n }", "function get_comments($post_id){\n include('../../common/database/config.php');\n\n $sql = 'SELECT c.id,c.content,c.created_time,u.name FROM comments as c \n LEFT JOIN users as u on c.user_id = u.id\n where c.post_id = \"'.$post_id.'\"';\n $res = mysqli_query($conn,$sql);\n\n $res_array = mysqli_fetch_all($res, MYSQLI_ASSOC);\n\n return $res_array;\n}", "protected function get_comment_ids()\n {\n }", "public function getCommentsOfPost($id)\n {\n $comments = Comment::getParentComments($id);\n return metaResponse($comments);\n }", "public function getComments()\n {\n return $this->tpComments;\n }", "public function returnComments(Request $request, $post_id)\n {\n $request = $request->all();\n\n $comments = Comments::select(\n 'comments.id',\n 'comments.author_id',\n 'comments.post_id',\n 'comments.comment_body',\n 'comments.created_at',\n 'comments.updated_at',\n 'posts.id',\n 'posts.user_id',\n 'posts.post_text',\n 'posts.image_link',\n 'user.first_name',\n 'user.last_name'\n )\n ->where('posts.id', '=', $post_id)\n ->from('comments')\n ->join('posts', function ($query) {\n $query->on('comments.post_id', '=', 'posts.id');\n })\n ->join('user', function ($query) {\n $query->on('user.id', '=', 'comments.author_id');\n })\n ->orderBy('created_at', 'desc')\n ->get();\n\n return $comments;\n }", "public function getCommentsAdmin($post_id){\n\t\t$sql = 'SELECT user_name, date_creation, content, state, id FROM comment WHERE post_id=' . $post_id . \" AND state <= 1 ORDER BY id DESC\";\n\t\t$data = $this->db->query($sql);\n\t\treturn $data->fetchAll();\n\t}", "public function comments()\n {\n $comments = $this->comment->getAllComments();\n $this->buildView(array('comments' => $comments));\n }", "public function allComments() {\n\t\treturn $this->hasMany('NGiraud\\News\\Models\\Comment');\n\t}", "public static function getAllComment() {\n\t\treturn array(self::_getDao()->count(), self::_getDao()->getAll());\n\t}", "public function index(Post $post)\n {\n $comments = $post->comments()->with(['user', 'user.profile'])->get();\n\n return response()->json($comments);\n }", "function pb_get_comments($post_id) {\r\n\tglobal $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $comment_author,$comment_author_email,$user_identity;\r\n\t$post_id = (int) $post_id;\r\n\t$req = get_option('require_name_email');\r\n\tif ( $user_ID) {\r\n\t\treturn $wpdb->get_results(\"SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND (comment_approved = '1' OR ( user_id = '$user_ID' AND comment_approved = '0' ) ) ORDER BY comment_date\");\r\n\t} else if ( empty($comment_author) ) { \r\n\t\treturn $wpdb->get_results(\"SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date\");\r\n\t} else {\r\n\t\t$author_db = $wpdb->escape($comment_author);\r\n\t\t$email_db = $wpdb->escape($comment_author_email);\r\n\t\treturn $wpdb->get_results(\"SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND ( comment_approved = '1' OR ( comment_author = '$author_db' AND comment_author_email = '$email_db' AND comment_approved = '0' ) ) ORDER BY comment_date\");\r\n\t}\r\n\t$comments = $wp_query->comments = apply_filters( 'comments_array', $comments, $post->ID );\r\n\t$wp_query->comment_count = count($wp_query->comments);\r\n}", "function getcomment()\n\t{\n\t\t## variable initialization\n\t\tglobal $option, $mainframe, $db;\n\t\t$commentId = JRequest::getVar('cmtid', '', 'get', 'int');\n\t\t$id = JRequest::getVar('id', '', 'get', 'int');\n\n\t\t## for pagination\n\t\t$limit = $mainframe->getUserStateFromRequest($option . '.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');\n\t\t$limitstart = $mainframe->getUserStateFromRequest($option . 'limitstart', 'limitstart', 0, 'int');\n\n\t\t## \tquery for delete the comments\n\t\tif ($commentId)\n\t\t{\n\t\t\t$query = \"DELETE FROM #__hdflv_comments\n \t\t WHERE id=\" . $commentId . \"\n \t\t OR parentid=\" . $commentId;\n\t\t\t$db->setQuery($query);\n\t\t\t$db->query();\n\t\t\t## message for deleting comment\n\t\t\t$mainframe->enqueueMessage( 'Comment Successfully Deleted' );\n\t\t}\n\n\t\t$id = JRequest::getVar('id', '', 'get', 'int');\n\t\t$query = \"SELECT COUNT(id) FROM #__hdflv_comments\n \t\t WHERE videoid = $id\";\n\t\t$db->setQuery($query);\n\t\t$db->query();\n\t\t$commentTotal = $db->getNumRows();\n\t\tif (!$commentTotal)\n\t\t{\n\t\t\t$strRedirectPage = 'index.php?layout=adminvideos&option=' . JRequest::getVar('option') . '&user=' . JRequest::getVar('user');\n \t$mainframe->redirect($strRedirectPage);\n\t\t}\n\n\t\t$query=\"SELECT id as number,id,parentid,videoid,subject,name,created,message\n\t\t\t\tFROM #__hdflv_comments where parentid = 0 and published=1 and videoid=$id union\n\t\t\t\tSELECT parentid as number,id,parentid,videoid,subject,name,created,message\n\t\t\t\tFROM #__hdflv_comments where parentid !=0 and published=1 and videoid=$id\n\t\t\t\tORDER BY number desc,parentid\";## Query is to display the comments posted for particular video\n\n\t\t$db->setQuery($query);\n\t\t$db->query();\n\t\t$commentTotal = $db->getNumRows();\n\n\t\t$pageNav = new JPagination($commentTotal, $limitstart, $limit);\n\n $query = \"$query LIMIT $pageNav->limitstart,$pageNav->limit\";\n\t\t$db->setQuery($query);\n\t\t$comment = $db->loadObjectList();\n\n\t\t$query = \"SELECT `title` FROM #__hdflv_upload WHERE id = $id\";\n\t\t$db->setQuery($query);\n\t\t$videoTitle = $db->loadResult();\n\n\t\t/**\n\t\t * get the most recent database error code\n\t\t * display the last database error message in a standard format\n\t\t *\n\t\t */\n\t\tif ($db->getErrorNum())\n\t\t{\n\t\t\tJError::raiseWarning($db->getErrorNum(), $db->stderr());\n\t\t}\n\n\t\t$comment = array('pageNav' => $pageNav, 'limitstart' => $limitstart, 'comment' => $comment ,'videotitle' => $videoTitle);\n\t\treturn $comment;\n\t}", "public function comments()\n {\n return $this->hasMany('App\\Comment', 'id_comment', 'id');\n }", "function comments() {\n if ($this->getRequestMethod() != \"GET\") {\n $this->response('', 406);\n }\n $id = (int)$this->_request['video_id'];\n if ($id > 0) {\n $query = \"select * from comments where video_id=$id;\"; \n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n if($r->num_rows > 0) {\n $result = array();\n while ($row = $r->fetch_assoc()) {\n $result[] = $row;\n } \n $this->response(json_encode($result), 200); \n } else {\n $this->response('', 204);\n }\n } else {\n $this->response('', 400);\n } \n }", "public function ListComments($id) {\n try {\n \n\t //$res = $this->db->ExecuteSelectQueryAndFetchAll(\"SELECT Comment.*, User.acronym as owner FROM Comment INNER JOIN User ON Comment.idUser=User.id WHERE idContent=? AND Comment.deleted IS NULL;\", array($id));\n\t $res = $this->db->ExecuteSelectQueryAndFetchAll(self::SQL('select * by content'), array($id));\n\t print_r($id);\n\t print_r($res);\n\t return $res;\n } catch(Exception $e) {\n\t\techo $e;\n\t\treturn null;\n }\n }", "public function comments($postID)\n\t{\n\t\tif(!$this->setPost($postID))\n\t\t\treturn;\n\n\t\t$rsp = new Response();\n\n //Are we authorized to see this post ?\n\t\tif(!isAuthorized::seeFullProfile($this->model->getProfileID()))\n {\n\t\t\t$rsp->setFailure(401, \"You can not see this post\")\n\t\t\t ->send();\n\n\t\t\treturn;\n\t\t}\n\n\t\t$coms = $this->commentModel->getComments($postID);\n\n\t\t$rsp->setSuccess(200, \"comments returned\")\n\t\t\t->bindValue(\"postID\", $postID)\n ->bindValue(\"nbOfComments\", count($coms))\n ->bindValue(\"comments\", $coms)\n ->send();\n\t}", "public function actionList()\n {\n $apiName = 'comment/list';\n $sessionId = null;\n \n $_JSON = $this->getJsonInput();\n \n try\n {\n if(!isset($_JSON) || empty($_JSON))\n $result = $this->error($apiName, WS_ERR_POST_PARAM_MISSED, 'No input received.');\n else if(!isset($_JSON['sessionId']) || empty($_JSON['sessionId']))\n $result = $this->error($apiName, WS_ERR_POST_PARAM_MISSED, 'Please enter session id.');\n else if(!isset($_JSON['postId']) || empty($_JSON['postId']))\n $result = $this->error($apiName, WS_ERR_POST_PARAM_MISSED, 'Please enter post id whose comments are to be listed.');\n else\n {\n $userId = $this->isAuthentic($_JSON['sessionId']);\n $user = User::model()->findByPk($userId);\n if (is_null($user))\n $result = $this->error($apiName, WS_ERR_WONG_USER, 'Please login before using this service.');\n else\n {\n $postId = filter_var($_JSON['postId'], FILTER_SANITIZE_NUMBER_INT);\n $post = Post::model()->findByPk($postId);\n if (is_null($post))\n $result = $this->error($apiName, WS_ERR_WONG_USER, 'Selected post does not exist.');\n else\n {\n// $imagePath = Yii::app()->getBaseUrl(true) . '/images/user/';\n// $thumbPath = Yii::app()->getBaseUrl(true) . '/images/user/thumb/';\n// \n// $sql = Comment::getQuery($imagePath, $thumbPath, $postId);\n// $comments = Yii::app()->db->createCommand($sql)->queryAll(true);\n \n $comments = Comment::getCommentsByPostId($postId);\n foreach ($comments as &$comment)\n {\n $comment['timeElapsed'] = getTimeElapsed(date_create($comment['createDate']), date_create($comment['currentDate']));\n $comment['userMentioned'] = UserMentioned::getUserByComment($comment['id']); \n }\n \n $result = array(\n 'api' => $apiName,\n 'apiMessage' => 'Comments fetched successfully.',\n 'status' => 'OK',\n 'comments' => $comments\n );\n }\n }\n }\n } \n catch (Exception $e)\n {\n $result = $this->error($e->getCode(), Yii::t('app', $e->getMessage()));\n }\n $this->sendResponse(json_encode($result, JSON_UNESCAPED_UNICODE));\n }", "public function getComments()\n {\n return $this->hasMany(Comments::className(), ['tickets_id' => 'id']);\n }", "public function comments()\n\t{\n\t\treturn $this->morphMany('TGL\\Comments\\Comment', 'commentable');\n\t}", "public function index()\n {\n $PostComments = PostComment::where(['post_comment_id'=>null])->orderBy('date_create', 'desc')->paginate(20);\n\n return view('backend.post_comments.list', [\n 'list' => $PostComments\n ]);\n }" ]
[ "0.7664548", "0.76470417", "0.75685555", "0.7566736", "0.75555176", "0.7504055", "0.7466619", "0.7460555", "0.7453503", "0.74345154", "0.7415053", "0.7409772", "0.7339378", "0.7337278", "0.7297655", "0.72674567", "0.7262408", "0.725469", "0.7236074", "0.7235767", "0.7218954", "0.7218644", "0.72175324", "0.7212983", "0.7212983", "0.7212983", "0.7212983", "0.71980387", "0.71896505", "0.7178777", "0.7170536", "0.7162352", "0.715041", "0.71261513", "0.7116621", "0.71026164", "0.7093423", "0.7079638", "0.70791143", "0.7078309", "0.70713335", "0.7033377", "0.70329136", "0.7031515", "0.70303327", "0.7024769", "0.7017839", "0.70033157", "0.6987771", "0.697844", "0.69331515", "0.6920114", "0.6919297", "0.69163764", "0.6912921", "0.69091505", "0.69076824", "0.69065577", "0.68672866", "0.6861912", "0.6858224", "0.6854405", "0.68517816", "0.6849634", "0.68445075", "0.6844336", "0.68376744", "0.6835668", "0.6814323", "0.6806399", "0.67919254", "0.6774926", "0.67744035", "0.6768467", "0.675454", "0.67503244", "0.6749064", "0.67446595", "0.6737247", "0.67363966", "0.67346686", "0.67196757", "0.67082334", "0.670408", "0.6697583", "0.6691926", "0.66887987", "0.66885394", "0.66874546", "0.6678466", "0.66549766", "0.66511095", "0.66360104", "0.66348505", "0.6632808", "0.6628592", "0.6628558", "0.66143554", "0.66127884", "0.6600907", "0.65980744" ]
0.0
-1
Convert date in CSV file to 19991231 23:52:00 format
function parse_date( $data ) { $timestamp = strtotime( $data ); if ( FALSE === $timestamp ) { return ''; } else { return date( 'Y-m-d H:i:s', $timestamp ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function formatData($date) {\n\t\t return date('F j, Y, g:i:a', strtotime($date));\n\t }", "function datept2en($sep,$data,$nsep='-') {\n\n if (!empty($data)) {\n\n $date = explode($sep,$data);\n $hora = null;\n if (strpos($data, ' ')!==false) {\n $time = explode(' ', $date[2]);\n $date[2] = substr($date[2], 0, 2);\n $hora = ' '.$time[1];\n }\n $date = $date[2].$nsep.$date[1].$nsep.$date[0].$hora;\n // var_dump($date);\n // exit;\n return $date;\n\n }\n\n}", "function gttn_tpps_xlsx_translate_date($date) {\n if (strtotime($date) !== FALSE) {\n return $date;\n }\n\n if ($date > 60) {\n $date = $date - 1;\n return date(\"m/d/Y\", strtotime(\"12/31/1899 +$date days\"));\n }\n if ($date < 60) {\n return date(\"m/d/Y\", strtotime(\"12/31/1899 +$date days\"));\n }\n\n return NULL;\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 convertdateanglais($date){\n\t$ladate=explode('-',$date);\n\t$jour=$ladate[2];\n\t$moi=$ladate[1];\n\t$anne=$ladate[0];\n\t$madate=date(\"d/m/Y\", mktime(0, 0, 0, $moi, $jour, $anne));\n\treturn $madate;\n}", "public function DateFR2DateSQL ($date) {\n //29/12/1990 23:30\n $day = substr($date,0,2);\n $month = substr($date,3,2);\n $year = substr($date,6,4);\n $hour = substr($date,11,2);\n $minute = substr($date,14,2);\n $second = substr($date,18,2);\n //debug($hour.'-'.$minute.'-'.$second.'-'.$month.'-'.$day.'-'.$year);die;\n\n $timestamp= mktime($hour,$minute,$second,$month,$day,$year);\n return date('Y-m-d H:i:s',$timestamp); \n }", "function _parseDate($date) {\r\n\t\tif ( preg_match('/([A-Za-z]+)[ ]+([0-9]+)[ ]+([0-9]+):([0-9]+)/', $date, $res) ) {\r\n\t\t\t$year = date('Y');\r\n\t\t\t$month = $res[1];\r\n\t\t\t$day = $res[2];\r\n\t\t\t$hour = $res[3];\r\n\t\t\t$minute = $res[4];\r\n\t\t\t$date = \"$month $day, $year $hour:$minute\";\r\n\t\t\t$tmpDate = strtotime($date);\r\n\t\t\tif ( $tmpDate > time() ) {\r\n\t\t\t\t$year--;\r\n\t\t\t\t$date = \"$month $day, $year $hour:$minute\";\r\n\t\t\t}\r\n\t\t} elseif ( preg_match('/^\\d\\d-\\d\\d-\\d\\d/', $date) ) {\r\n\t\t\t// 09-10-04 => 09/10/04\r\n\t\t\t$date = str_replace('-', '/', $date);\r\n\t\t}\r\n\t\t$res = strtotime($date);\r\n\t\tif ( !$res ) {\r\n\t\t\tthrow new ftpException('Date conversion failed for '.$date);\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function standard_date_time2($date) {\n\t$timestamp = strtotime($date);\n\t$fdate=date('d M, Y h:i A', $timestamp);\n\treturn $fdate;\n\t}", "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 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}", "function processCSV($date, $ID, $columns) {\n\tglobal $DATA_DIR;\n\t$dir_handle = @opendir($DATA_DIR.$ID) or die(\"Error: Cannot open the data folder for detector id: \".$ID); \n\t$handle = fopen($DATA_DIR.$ID.'/'.$date.'.csv',\"r\");\n\t\n\t$skipFirstHeader = TRUE;\n\t$useSecondHeaderInput = TRUE;\n\twhile($data = fgetcsv($handle, 0)) {\n\t\tif ($skipFirstHeader)\n\t\t\t$skipFirstHeader = FALSE;\n\t\telse {\n\t\t\tforeach($columns as $value) {\n\t\t\t\t$outputData[] = $data[$value];\n\t\t\t}\n\t\t\t$output = implode(',', $outputData);\n\t\t\t$meta[\"data\"][] = $output;\n\t\t\tif ($useSecondHeaderInput) {\n\t\t\t\t$useSecondHeaderInput = FALSE;\n\t\t\t\t$meta[\"time\"][] = \"Time in UTC\";\n\t\t\t}\n\t\t\telse\n\t\t\t\t$meta[\"time\"][] = date(\"Y-m-d H:i\", strtotime($data[0]));\n\t\t\tunset($outputData);\n\t\t}\n\t}\n\tfclose($handle);\n\treturn $meta;\n\t\n}", "function convertdate($date) {\n\t$date = strtotime($date);\n\treturn date(\"M j, Y g:ia\", $date);\n}", "function convDate($theDate) {\r\n return date(\"Y-m-d H:i:s\", strtotime($theDate));\r\n}", "function fix_null_time($filename) {\n $dados = file_get_contents($filename);\n $dados_corrigidos = str_replace('\"0000-00-00 00:00:00\"', '\\N', $dados);\n file_put_contents($filename, $dados_corrigidos);\n}", "function convertdate($date) {\r\n\t$date = strtotime($date);\r\n\treturn date(\"M j, Y g:ia\", $date);\r\n}", "function dateToGoodFormat($date){\n\t\t$toTest = explode(\"/\",$date);\n\t\t$jj = intval($toTest[0]);\n\t\t$mm = intval($toTest[1]);\n\t\t$aaaa = intval($toTest[2]);\n\t\treturn ($aaaa.\"-\".$mm.\"-\".$jj);\n\t}", "function parse_date2($data) {\n\t $timestamp = strtotime($data);\n\t if (false === $timestamp) {\n\t return '';\n\t } else {\n\t return date('Y/m', $timestamp);\n\t }\n\t}", "public function getDateFormated(){\n\t\treturn date(\"d/m/Y à\\s H:i\", strtotime($this->data));\n\t}", "public function convertCCYYMMDD($date = null);", "function convert_date( $uglydate ){\n\t$date = new DateTime( $uglydate );\n\treturn $nicedate = $date->format('F j, Y');\n}", "function convetDate($date, $time)\n{\n $tmp = explode(\"-\", $date);\n $newDate = $tmp[2] . '-' . $tmp[1] . '-' . $tmp[0] . ' ' . $time;\n return $newDate;\n}", "function fulldate($date) {\n\t\tif ($date != \"\") {\n\t\t\t$chunkit = explode(\" \", $date);\n\t\t\t$datechunk = explode(\"-\", $chunkit[0]);\n\t\t\t$timechunk = explode(\":\", $chunkit[1]);\n\t\t\t$year = $datechunk[0];\n\t\t\t$month = $datechunk[1];\n\t\t\t$day = $datechunk[2];\n\t\t\t$hour = $timechunk[0];\n\t\t\t$min = $timechunk[1];\n\t\t\t$sec = $timechunk[2];\n\t\t\t$first = date(\"M j, Y h\", mktime($hour, $min, 0, $month, $day, $year));\n\t\t\t$second = \":\".$min.\" \";\n\t\t\t$third = date(\"a\", mktime($hour, $min, 0, $month, $day, $year));\n\t\t\treturn $first.$second.$third;\n\t\t} else {\n\t\t\treturn \"\"; \n\t\t}\n\t}", "public function date_ita_to_time($data,$delimitatore='/'){\n\t\t$data=explode($delimitatore,$data);\n\t\t$data=mktime(0,0,0, $data[1], $data[0], $data[2]);\n\t\treturn $data;\n\t}", "function convertTimestamp($ugly){\n $date = new DateTime($ugly);\n return $date->format('l, F jS, Y');\n}", "protected function explodeDate($date)\r\n {\r\n $numericDate = preg_replace(\"/[^0-9]/\", \"\", $date);\r\n $countZero = substr_count($numericDate, '0');\r\n $length = strlen($numericDate);\r\n\r\n //if is only zeros is am empty date\r\n if ($countZero == $length)\r\n {\r\n $date = '';\r\n return FALSE;\r\n }\r\n\r\n //adiciona suporte a data com utc 2017-12-20T16:06:31-02:00\r\n //alguns exemplos tem 2023-01-28T10:00:00.000Z .000Z no final outros tem -02:00\r\n //ignoramos ambos por enquanto\r\n if (stripos($date, 'T') && strlen($date) > 18)\r\n {\r\n //desconsidera GMT\r\n $date = substr($date, 0, 19);\r\n }\r\n\r\n //remove some UTC caracters to make regexp work\r\n $date = str_replace(array('T', 'Z'), ' ', $date);\r\n\r\n // format = dd/mm/yyyy hh:ii:ss\r\n if (mb_ereg(\"^([0-9]{2})\\/([0-9]{2})\\/([0-9]{4}) ([0-9]{2})\\:([0-9]{2})\\:([0-9]{2})\\$\", $date, $reg))\r\n {\r\n $this->hour = $reg[4];\r\n $this->minute = $reg[5];\r\n $this->second = $reg[6];\r\n $this->month = $reg[2];\r\n $this->day = $reg[1];\r\n $this->year = $reg[3];\r\n\r\n return true;\r\n }\r\n\r\n // format = dd/mm/yyyy hh:ii:ss.nnnnnn\r\n if (mb_ereg(\"^([0-9]{2})\\/([0-9]{2})\\/([0-9]{4}) ([0-9]{2})\\:([0-9]{2})\\:([0-9]{2})\\.(.{1,})\\$\", $date, $reg))\r\n {\r\n $this->hour = $reg[4];\r\n $this->minute = $reg[5];\r\n $this->second = $reg[6];\r\n $this->month = $reg[2];\r\n $this->day = $reg[1];\r\n $this->year = $reg[3];\r\n\r\n return true;\r\n }\r\n\r\n // format = dd/mm/yyyy hh:ii\r\n if (mb_ereg(\"^([0-9]{2})\\/([0-9]{2})\\/([0-9]{4}) ([0-9]{2})\\:([0-9]{2})\\$\", $date, $reg))\r\n {\r\n $this->hour = $reg[4];\r\n $this->minute = $reg[5];\r\n $this->second = '00';\r\n $this->month = $reg[2];\r\n $this->day = $reg[1];\r\n $this->year = $reg[3];\r\n\r\n return true;\r\n }\r\n\r\n // format = dd/mm/yyyy\r\n if (mb_ereg(\"^([0-9]{2})\\/([0-9]{2})\\/([0-9]{4})\\$\", $date, $reg))\r\n {\r\n $this->hour = '00';\r\n $this->minute = '00';\r\n $this->second = '00';\r\n $this->month = $reg[2];\r\n $this->day = $reg[1];\r\n $this->year = $reg[3];\r\n\r\n return true;\r\n }\r\n\r\n // format = yyyy-mm-dd hh:ii:ss\r\n if (mb_ereg(\"^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2})\\:([0-9]{2})\\:([0-9]{2})\\$\", $date, $reg))\r\n {\r\n $this->hour = $reg[4];\r\n $this->minute = $reg[5];\r\n $this->second = $reg[6];\r\n $this->month = $reg[2];\r\n $this->day = $reg[3];\r\n $this->year = $reg[1];\r\n\r\n return true;\r\n }\r\n\r\n // format = yyyy-mm-dd hh:ii:ss.nnnnnn\r\n if (mb_ereg(\"^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2})\\:([0-9]{2})\\:([0-9]{2})\\.(.{1,})\\$\", $date, $reg))\r\n {\r\n $this->hour = $reg[4];\r\n $this->minute = $reg[5];\r\n $this->second = $reg[6];\r\n $this->month = $reg[2];\r\n $this->day = $reg[3];\r\n $this->year = $reg[1];\r\n\r\n return true;\r\n }\r\n\r\n // format = yyyy-mm-dd hh:ii\r\n if (mb_ereg(\"^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2})\\:([0-9]{2})\\$\", $date, $reg))\r\n {\r\n $this->hour = $reg[4];\r\n $this->minute = $reg[5];\r\n $this->second = '00';\r\n $this->month = $reg[2];\r\n $this->day = $reg[3];\r\n $this->year = $reg[1];\r\n\r\n return true;\r\n }\r\n // format = yyyy-mm-dd\r\n if (mb_ereg(\"^([0-9]{4})-([0-9]{2})-([0-9]{2})\\$\", $date, $reg))\r\n {\r\n $this->second = 0;\r\n $this->hour = 0;\r\n $this->minute = 0;\r\n $this->month = $reg[2];\r\n $this->day = $reg[3];\r\n $this->year = $reg[1];\r\n\r\n return true;\r\n }\r\n\r\n //if is timestamp\r\n if (is_numeric($date))\r\n {\r\n $date = date(self::MASK_TIMESTAMP_USER, $date);\r\n $this->explodeDate($date);\r\n\r\n return true;\r\n }\r\n\r\n //if don't reconize data return false\r\n return false;\r\n }", "function fix_date($date) {\n\t$tc = 0;\n\t$tok = strtok($date, \"/\");\n\twhile ($tok) {\n\t\t$td[$tc] = $tok;\n\t\t$tc++; \t\t\t\n \t$tok = strtok(\"/\");\n }\n return ($td[2].\"-\".$td[0].\"-\".$td[1]);\n}", "function convertCSVToArray($fileName){\n\n $csv = file_get_contents($fileName);\n $array = array_map(\"str_getcsv\", explode(\"\\n\", $csv));\n $returnArray = array();\n // removes header\n array_splice($array, 0, 1);\n\n foreach($array as $key => $item){\n //checks to make sure the offset is set\n if(isset($item[0])){\n $tempArry['latitude'] = $item[0];\n $tempArry['longitude'] = $item[1];\n $tempArry['bright_ti4'] = $item[2];\n $tempArry['scan'] = $item[3];\n $tempArry['track'] = $item[4];\n $tempArry['acq_date'] = $item[5];\n $tempArry['acq_time'] = $item[6];\n $tempArry['satellite'] = $item[7];\n $tempArry['confidence'] = $item[8];\n $tempArry['version'] = $item[9];\n $tempArry['bright_ti5'] = $item[10];\n $tempArry['frp'] = $item[11];\n $tempArry['daynight'] = $item[12];\n array_push($returnArray, $tempArry);\n }\n }\n return $returnArray; // contains nice new data\n}", "static function convert_dateFr($date) {\r\n $tab = explode('-', $date);\r\n $result = $tab['0'] . \" \" . Functions::get_mois($tab['1']) . \" \" . $tab['2'];\r\n return $result;\r\n }", "function remove_day_from_date_and_format($date_in)\n{\n//print_r($date_ro);\n // $date_out = substr_replace($date_in, \"\", 4);\n $date_in = explode(' ', $date_in);\n $date_out = $date_in[3] . \"-\" . $date_in[2] . \"-\" . $date_in[1];\n return $date_out;\n}", "abstract public function convert_from_csv($source);", "private function formatDate($date)\n\t{\n\t\t$date_ary = date_parse($date);\n\t\treturn $date_ary['year'] . '-'\n\t\t\t\t. str_pad($date_ary['month'], 2, \"0\", STR_PAD_LEFT). '-'\n\t\t\t\t. str_pad($date_ary['day'], 2, \"0\", STR_PAD_LEFT) . 'T'\n\t\t\t\t. str_pad($date_ary['hour'], 2, \"0\", STR_PAD_LEFT) . ':'\n\t\t\t\t. str_pad($date_ary['minute'], 2, \"0\", STR_PAD_LEFT) . ':'\n\t\t\t\t. str_pad($date_ary['second'], 2, \"0\", STR_PAD_LEFT);\n\t}", "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 function date_to_time($date){\n\t\tif(preg_match('/^[0-9]{1,}$/', $date)){\n\t\t\t$date=$date;\n\t\t}else{\n\t\t\t$date=strtotime($date);\n\t\t}\n\t\treturn $date;\n\t}", "function convertDate($old_date, &$datest)\n {\n list($datesd[0], $datesd[1], $datesd[2], $datesd[3], $datesd[4], $datesd[5], $datesd[6], $datesd[7], \n $datesd[8], $datesd[9]) = sscanf($old_date, \"%s %s %s %s %s %s %s %s %s %s\"); \n\n for ($i = 0; $i < 10; $i++)\n {\n if (strlen($datesd[$i]) > 0)\n {\n $count = sscanf($datesd[$i], \"%d/%d/%d\", $month_digit, $day_digit, $year_digit);\n if ($count == 3) \n {\n $temp_date = strtotime(\"$month_digit/$day_digit/$year_digit\");\n if ($temp_date == FALSE)\n {\n /* If it didn't convert, give up and return FALSE. */\n $datest[0] = $old_date;\n for ($j = 1; $j < 10; $j++) $datest[$j] = \"\";\n return;\n }\n else\n {\n /* If it converted to a valid date, then append it to the list of dates already parsed. */\n $datest[$i] = date(\"l, F j, Y\", $temp_date);\n }\n }\n else\n {\n /* It didn't convert, so give up and return FALSE. */\n $datest[0] = $old_date;\n for ($j = 1; $j < 10; $j++) $datest[$j] = \"\";\n return;\n }\n }\n }\n return;\n }", "function parse_date($data) {\n\t\t$data = str_replace ('.', '/', $data);\n\t $timestamp = strtotime($data);\n\t if (false === $timestamp) {\n\t\t$timestamp = '00:00:00';\n\t return date('Y-m-d H:i:s', $timestamp);\n\t } else {\n\t return date('Y-m-d H:i:s', $timestamp);\n\t }\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 acadp_mysql_date_format( $date ) {\n\n\t$defaults = array(\n\t\t'year' => 0,\n\t\t'month' => 0,\n\t\t'day' => 0,\n\t\t'hour' => 0,\n\t\t'min' => 0,\n\t\t'sec' => 0\n\t);\n\t$date = array_merge( $defaults, $date );\n\n\t$year = (int) $date['year'];\n\t$year = str_pad( $year, 4, '0', STR_PAD_RIGHT );\n\n\t$month = (int) $date['month'];\n\t$month = max( 1, min( 12, $month ) );\n\n\t$day = (int) $date['day'];\n\t$day = max( 1, min( 31, $day ) );\n\n\t$hour = (int) $date['hour'];\n\t$hour = max( 1, min( 24, $hour ) );\n\n\t$min = (int) $date['min'];\n\t$min = max( 0, min( 59, $min ) );\n\n\t$sec = (int) $date['sec'];\n\t$sec = max( 0, min( 59, $sec ) );\n\n\treturn sprintf( '%04d-%02d-%02d %02d:%02d:%02d', $year, $month, $day, $hour, $min, $sec );\n\n}", "function format_date_YYYYMMDD($filename = '')\n{\n $dff = date_from_filename($filename);\n if (count($dff) == 0) return '';\n return join('', $dff);\n}", "function exibirDataHoraBr($data){\n\t$timestamp = strtotime($data); \n\treturn date('d/m/y - H:i:s', $timestamp);\t\n}", "function dateFix($date) {\n\n $dateArray = explode(\"-\",$date);\n\n $year = $dateArray[0];\n $month = $dateArray[1];\n $day = $dateArray[2];\n\n return date(\"Y-m-d\",mktime(0,0,0,$month,$day,$year));\n\n}", "function convertDate($sql_date) \r\n{\r\n\t$date = strtotime($sql_date);\r\n\t$final_date = date(\"Y-m-d H:i:s\", $date);\r\n\treturn $final_date;\r\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 }", "static function convert_date($date, $from_format, $to_format){\n\t\tif(strlen($date) == 0){\n\t\t\treturn $date;\n\t\t}\n\t\tif(strlen($from_format) == 3){\n\t\t\t$date = substr($date, 0, 2).\"-\".substr($date, 2, 2).\"-\".substr($date, 4);\n\t\t\t$from_format = substr($from_format, 0, 1).\"-\".substr($from_format, 1, 1).\"-\".substr($from_format, 2);\n\t\t}\n\t\t$separator = \"-\";\n\t\t$from_format = str_replace(array(\"/\", \"-\", \" \", \":\"), $separator, $from_format);\n\t\t$from_format = explode($separator, strtoupper($from_format));\n\t\t$date = str_replace(array(\"/\", \"-\", \" \", \":\"), $separator, $date);\n\t\t$date = explode($separator, $date);\n\t\tforeach($from_format as $i => $char){\n\t\t\tswitch($char){\n\t\t\t\tcase \"D\": $day = $date[$i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"H\": $hou = $date[$i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"I\": $min = $date[$i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"M\": $mon = $date[$i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"S\": $sec = $date[$i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Y\": $yea = $date[$i];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$date = mktime($hou, $min, $sec, $mon, $day, $yea);\n\t\treturn date($to_format, $date);\n\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}", "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 to_mysqlDate($time)\r\n{\r\n // format 2012-05-21 18:54:49\r\n $mysqldate =strftime(\"%Y-%m-%d %H:%M:%S\",$time);\r\n \r\n return $mysqldate;\r\n \r\n}", "function convertDate_jmA_Amj($date)\r\n{\r\n\tsetlocale (LC_TIME, 'en_EN','en');\r\n\treturn strftime(\"%Y-%m-%d\", strtotime($date));\r\n}", "function human_datetime($date) {\n if (empty($date)) {\n return \"Null date\";\n }\n if (is_numeric($date)) {\n $unix_date = $date;\n } else {\n $unix_date = strtotime($date);\n }\n // check validity of date\n if (empty($unix_date)) {\n return \"Bad date\";\n }\n return date(\"jS F, Y h:i:s\", $unix_date);\n}", "static function convert_dateEnFr($date) {\r\n $tab = explode('-', $date);\r\n $result = $tab['2'] . \"-\" . $tab['1'] . \"-\" . $tab['0'];\r\n return $result;\r\n }", "function formatFechaES($value){\n\t$partes=explode(\"-\", $value);\n\t$value = $partes[2].\"-\".$partes[1].\"-\".$partes[0];\n\treturn $value;\n}", "function date2mysql($date)\r\n\t{\r\n\t\tif($date != \"\")\r\n\t\t{\r\n\t\t@list($jour,$mois,$annee)=explode('/',$date);\t\t\t\t//récupération des différentes valeurs en utilisant les / comme séparateurs\r\n \t\treturn @date('Y-m-d',mktime(0,0,0,$mois,$jour,$annee));\t\t//retour de la date modifié au bon format grace à un mktime\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\treturn $date;\r\n \t\t}\r\n\t}", "static function convertPHPDate($date){\n\t\treturn $date . ' 00:00:00'; //So difficult.\n\t}", "function convertDate ($matches) {\n\t$year = array_pop($matches['year']); //Get last found year\n\t$year = ($year) ? $year : date('Y'); //If nothing found, use this year\n\t$month = array_pop($matches['month']); //Get last found month\n\t$month = ($month) ? $month : '01'; //If nothing found, use January\n\t$day = array_pop($matches['day']); //Get last found day\n\t$day = ($day) ? $day : '01'; //If nothing found, use 1st\n\t$time = date('U', strtotime($month . '/' . $day . '/' . $year)); //Convert to unix timestamp\n\treturn $time;\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}", "function ppConvertDate($date,$time='') {\n // Breakup the string using either a space, fwd slash, bkwd slash or colon as a delimiter\n $atok = strtok($date,\" /-\\\\:\");\n while ($atok !== FALSE) {\n $atoks[] = $atok;\n $atok = strtok(\" /-\\\\:\"); // get the next token\n }\n if ($time == '') {\n $timestamp = mktime(0,0,0,$atoks[1],$atoks[2],$atoks[0]);\n } else {\n $btok = strtok($time,\" /-\\\\:\");\n while ($btok !== FALSE) {\n $btoks[] = $btok;\n $btok = strtok(\" /-\\\\:\");\n }\n $timestamp = mktime($btoks[0],$btoks[1],$btoks[2],$atoks[1],$atoks[2],$atoks[0]);\n }\n return $timestamp;\n}", "function convert_date($date, $format = DATE_FORMAT)\r\n{ \r\n // $date_format is defined in config.inc.php.\r\n if (empty($date)) return;\r\n\r\n switch ($format) {\r\n case 'us12':\r\n return date('m/d/y g:i a', strtotime($date));\r\n break;\r\n case 'us24':\r\n\t\t\treturn date('m/d/y H:i', strtotime($date));\r\n break;\r\n case 'eu12':\r\n return date('d/m/y g:i a', strtotime($date));\r\n break;\r\n case 'eu24':\r\n return date('d/m/y H:i', strtotime($date)); \r\n break;\r\n case 'verbose':\r\n return date('D M jS, Y @ g:ia', strtotime($date));\r\n break;\r\n case 'mysql':\r\n return date('Y-m-d H:i:s', strtotime($date));\r\n break;\r\n case 'mysql_hours':\r\n return date('H:i a', strtotime($date));\r\n break;\r\n\t\tcase 'unix':\r\n return date('U', strtotime($date));\r\n break;\r\n default:\r\n // none specified, just return us12.\r\n return date('m/d/y h:i a', strtotime($date));\r\n }\r\n\r\n}", "public static function formatDateYmd2Dmy($date){\n\t\t$newdate = new DateTime($date);\n\t\treturn $newdate->format('d/m/Y');\n\t}", "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}", "private function parseDate($date) {\n\t\tif ($date == null) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$parsed_date = date_parse($date);\n\t\t// if the day is 0, return only the month and year\n\t\tif ($parsed_date['day'] == 0) {\n\t\t\treturn $this->getMonth($parsed_date['month']) . ' ' . $parsed_date['year'];\n\t\t} else {\n\t\t\treturn $this->getMonth($parsed_date['month']) . ' ' \n\t\t\t. $parsed_date['day'] . ', ' . $parsed_date['year'];\n\t\t}\n\t}", "static function convert_dateFrEn($date) {\r\n $tab = explode('-', $date);\r\n $result = $tab['0'] . \"-\" . $tab['1'] . \"-\" . $tab['2'];\r\n return $result;\r\n }", "abstract public function convert_to_csv();", "function dateToMySQL ($dateSource, $date) {\n\t$dateOUT = \"\";\n\t$dateSource = strtolower($dateSource);\n\t// Replace '/' by '-' from original date. This allow me use \"sscanf($date,\"%d %d %d\")\"\n\t$date = str_ireplace(\"/\", \"-\", $date);\n\tif ($date != \"\") {\n\t\tif ($dateSource == \"yyyymmdd\")\n\t\t\tlist($year, $month, $day) = sscanf($date,\"%d %d %d\");\n\t\tif ($dateSource == \"ddmmyyyy\")\n\t\t\tlist($day, $month, $year) = sscanf($date,\"%d %d %d\");\n\t\tif ($dateSource == \"yyyyddmm\")\n\t\t\tlist($year, $day, $month) = sscanf($date,\"%d %d %d\");\n\t\tif ($dateSource == \"mmyyyydd\")\n\t\t\tlist($month, $year, $day) = sscanf($date,\"%d %d %d\");\n\t\tif ($dateSource == \"\") {\n\t\t\t// Autodetect mode [Supported modes: (YYYYMMDD) Or (DDMMYYYY)]\n\t\t\tlist($day, $month, $year) = sscanf($date,\"%d %d %d\");\n\t\t\tif (strlen($year) <= 3) {\n\t\t\t\tlist($year, $month, $day) = sscanf($date,\"%d %d %d\");\n\t\t\t}\n\t\t}\n\t\t$dateOUT = sprintf (\"%04d-%02d-%02d\", abs($year), abs($month), abs($day));\n\t}\n\treturn ($dateOUT);\n}", "function dateformatindia($date)\n{\n\t$ndate = explode(\"-\",$date);\n\t$year = $ndate[0];\n\t$day = $ndate[2];\n\t$month = $ndate[1];\n\t\n\tif($date == \"0000-00-00\" || $date ==\"\")\n\treturn \"\";\n\telse\n\treturn $day . \"-\" . $month . \"-\" . $year;\n\t\n}", "function my_dateFormat($date){\n return date(\"M d, Y h:i A\",strtotime($date));\n}", "public function formatDate($date){\n\n return date('F j,Y,g:i a', strtotime($date));\n }", "public function format_date_save($date){ \n\t\t$exp_date = explode('/', $date); \n\t\treturn $exp_date[2].'-'.$exp_date[1].'-'.$exp_date[0];\n\t}", "function dateFullToIndia($date,$full)\n{\n\t$fdate = explode(\" \",$date);\n\t\n\t$ndate = explode(\"-\",$fdate[0]);\n\t$year = $ndate[0];\n\t$day = $ndate[2];\n\t$month = $ndate[1];\n\t\n\t$time = explode(\":\",$fdate[1]);\n\t$hour = $time[0];\n\t$minute = $time[1];\n\t$second = $time[2];\n\tif($hour > 12)\n\t{\n\t\t$h = $hour-12;\n\t\tif($h < 10)\n\t\t$h = \"0\" . $h;\n\t\t$fulltime = $h . \":\" . $minute . \":\" . $second . \" PM\";\n\t}\n\telse\n\t$fulltime = $hour . \":\" . $minute . \":\" . $second . \" AM\";\n\t\n\t\n\tif($full == \"full\")\n\treturn $day . \"-\" . $month . \"-\" . $year . \" \" . $fdate[1];\n\telse if($full == \"fullindia\")\n\treturn $day . \"-\" . $month . \"-\" . $year . \" \" . $fulltime;\n\telse if($full == \"time\")\n\treturn $fulltime;\n\telse\n\treturn $day . \"-\" . $month . \"-\" . $year;\n}", "function readTimestamp(): int;", "function modify_date($fe)\n\t{\n\t\t$cdate = mktime(substr($fe,5,2), substr($fe,7,2), 0, 1, 1, 2000+substr($fe,0,2)) + (substr($fe,2,3)-1)*24*60*60;\n\t\treturn Date(\"Y.m.d H:i\", $cdate);\n\t}", "protected function _format_date($date)\n {\n $dateTime = new DateTime($date);\n return $dateTime->format(\"Y-m-d H:i:s\");\n }", "function convertDate_Amj_jmA($date)\n{\n\tsetlocale (LC_TIME, 'fr_FR','fra'); \n\treturn strftime(\"%d/%m/%Y\", strtotime($date)); \n}", "function convertDate($date){\n\treturn implode('.', array_reverse(explode('-', $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}", "public function format_date($date) {\n //split date by delimter\n $new_date = explode('/', $date);\n //reverse the order from dd,mm,yy to yy,mm,dd\n $new_date = array_reverse($new_date);\n //join together again with - as delimiter\n $new_date = implode('-', $new_date);\n return $new_date;\n }", "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 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}", "function modify_lora_date($time)\n\t{\n\t\t$cdate = strtotime($time);\n\t\t# miliseconds unix time\n\t\tif( $cdate == false ) {\n\t\t\t$militime = DateTime::createFromFormat('U.u', $time/1000);\n\t\t\t$militime->setTimezone(new DateTimeZone(date_default_timezone_get())); \n\t\t\treturn $militime->format(\"Y.m.d H:i:s.u\");\n\t\t}\n\t\treturn Date(\"Y.m.d H:i:s\", $cdate);\n\t}", "function exibirDataBr($data){\n\t$timestamp = strtotime($data); \n\treturn date('d/m/y', $timestamp);\t\n}", "function dateformatusa($date)\n{\n\t$ndate = explode(\"-\",$date);\n\t$year = $ndate[2];\n\t$day = $ndate[0];\n\t$month = $ndate[1];\n\t\n\treturn $year . \"-\" . $month . \"-\" . $day;\n}", "function iu_readable_date($datetime, $format = 'normal'){\n\t$date = New DateTime($datetime);\n\tif($format == 'normal'){\n\t\t$updatedDate = date_format($date,'F j, Y'); //January 15, 2015\n\t}else if($format == 'short'){\n\t\t$updatedDate = date_format($date,'M j, Y'); // Jan 15, 2015\n\t}else if($format == 'numbered'){\n\t\t$updatedDate = date_format($date,'n/j/y'); // 01/15/15\n\t}\n\t\n\treturn $updatedDate;\n\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}", "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 csv_export() {\n\t\t$export = \"\";\n\n\t\t$record = $this->records[0];\n\t\t$export = \"ORD,5322048,\" . substr($record[\"batch_date\"],5,2) . substr($record[\"batch_date\"],8,2) . \n\t\t\t\t substr($record[\"batch_date\"],2,2) . \",,3,,,5322048,,5322048\\n\";\n\t\t\n\t\t$sequence = 0;\n\t\tforeach($this->records as $record) {\n//print_r($record);\n\t\t\t$sequence++;\n\t\t\t$line = \"DET,\" . $sequence . \",\" . $record[\"sku\"] . \",\" . $record[\"qty\"] . \",,,,,,\\n\";\n\t\t\t$export .= $line;\n\t\t}\n\n\t\treturn $export;\n\t}", "function cambiarFechaMDYtoYMD($fecha,$separador='/'){\r\n\t\t$fechaExplode = explode($separador, $fecha);\r\n\t\t$lafecha = date(\"Y/m/d\", mktime(0,0,0,$fechaExplode[1], $fechaExplode[0], $fechaExplode[2]));\r\n\r\n\t\treturn $lafecha;\r\n\t}", "public static function getFormatedDate($date)\n {\n $pos = strpos($date, \"T\");\n if ($pos != 0) \n {\n return substr($date, 0, $pos);\n }\n return $date;\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}", "function splitdate( $date ) {\n\t\n\t$year = substr( $date, 0, 4 );\n\t$mon = substr( $date, 4, 2 );\n\t$day = substr( $date, 6, 2 );\n\t$datum= $day.\".\".$mon.\".\".$year;\n\n\treturn $datum;\n}", "function format_date($date) {\n return substr($date, 8, 2) . '/' . substr($date, 5, 2) . '/' . substr($date, 0, 4);\n }", "public function format_date_save($date){\n\t\tif(!empty($date)){\n\t\t\t$exp_date = explode('/', $date); \n\t\t\treturn $exp_date[2].'-'.$exp_date[1].'-'.$exp_date[0];\n\t\t}\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}", "function timeStampToDateFR($timestamp) {\n return date('Y-m-d H:i:s', $timestamp);\n}", "function codeDate ($date) \r\n\r\n{\r\n\r\n\t$tab = explode (\"-\", $date);\r\n\r\n\t$r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\r\n\treturn $r;\r\n\r\n}", "private function excel_date($serial){\n //from http://richardlynch.blogspot.com/2007/07/php-microsoft-excel-reader-and-serial.html\n // Excel/Lotus 123 have a bug with 29-02-1900. 1900 is not a\n // leap year, but Excel/Lotus 123 think it is...\n if ($serial == 60) {\n $day = 29;\n $month = 2;\n $year = 1900;\n \n return sprintf('%02d/%02d/%04d', $month, $day, $year);\n }\n else if ($serial < 60) {\n // Because of the 29-02-1900 bug, any serial date \n // under 60 is one off... Compensate.\n $serial++;\n }\n \n // Modified Julian to DMY calculation with an addition of 2415019\n $l = $serial + 68569 + 2415019;\n $n = floor(( 4 * $l ) / 146097);\n $l = $l - floor(( 146097 * $n + 3 ) / 4);\n $i = floor(( 4000 * ( $l + 1 ) ) / 1461001);\n $l = $l - floor(( 1461 * $i ) / 4) + 31;\n $j = floor(( 80 * $l ) / 2447);\n $day = $l - floor(( 2447 * $j ) / 80);\n $l = floor($j / 11);\n $month = $j + 2 - ( 12 * $l );\n $year = 100 * ( $n - 49 ) + $i + $l;\n return sprintf('%04d-%02d-%02d', $year, $month, $day);\n }", "function mysql_datetime_from_uk($timestamp, $date_seperator=\"-\", $time_seperator=\":\", $seperator=\" \")\n{\n\t// dd/mm/yyyy\n\tereg (\"([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{2,4})\", $timestamp, $regs);\n\t// dd/mm/yyyy HH:MM\n\tereg (\"([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{2,4})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})\", $timestamp, $regs);\n\t// dd/mm/yyyy HH:MM:SS\n\tereg (\"([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{1,2})[^0-9]([0-9]{2,4})[^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;\n\t\t\tif(empty($regs[6]))\n\t\t\t{\n\t\t\t\t$date.=\"00\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$date.=$regs[6];\n\t\t\t}\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=\"0\";\n\t}\n\treturn $date;\n}", "public function formatDate2($date1){\r\n\t\tif( $date1 != '00/00/0000' ){\r\n\t\t\tif($date1!=''){\r\n\t\t\t\t$jour = substr($date1,0,2);\r\n\t\t\t\t$mois = substr($date1,3,2);\r\n\t\t\t\t$annee = substr($date1,6,4);\r\n\t\t\t\t$date2 = $annee.'-'.$mois.'-'.$jour;\r\n\t\t\t}else{\r\n\t\t\t\t$date2 = '';\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$date2 = '';\r\n\t\t}\r\n\t\treturn $date2;\r\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 formatDate($date1){\r\n\t\tif( $date1 != '0000-00-00' ){\r\n\t\t\tif($date1!=''){\r\n\t\t\t\t$annee = substr($date1,0,4);\r\n\t\t\t\t$mois = substr($date1,5,2);\r\n\t\t\t\t$jour = substr($date1,8,2);\r\n\t\t\t\t$date2 = $jour.'/'.$mois.'/'.$annee;\r\n\t\t\t}else{\r\n\t\t\t\t$date2 = '';\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$date2 = '';\r\n\t\t}\r\n\t\treturn $date2;\r\n\t}", "function formatDate($date){\n\t\t$midway = explode(' ',$date);\n\t\t$dString = explode('-',$midway[0]);\n\t\t$tString = explode(':',$midway[1]);\n\t\t$hour = intval($tString[0]);\n\t\t$ampm = ($hour > 11 ? 'pm' : 'am');\n\t\t$hour = strval($hour % 12);\n\t\treturn $hour . ':' . $tString[1] . $ampm . ' on ' . $dString[1] . '/' . $dString[2] . '/' . substr($dString[0],-2);\n\n\t}", "function NZEntryToDateTime($NZEntry)\n {\n if ($NZEntry == \"\")\n return \"\";\n return substr($NZEntry, 6, 2) . \"/\" . substr($NZEntry, 4, 2) . \"/\" . substr($NZEntry, 0, 4);\n }", "function _reformat_date($inDate) {\n $outDate = $inDate;\n $months = array(\n \"Maa\" => \"Mar\",\n \"Mei\" => \"May\",\n \"Okt\" => \"Oct\"\n );\n if (empty($inDate)) {\n return $outDate;\n }\n $parts = explode(\"-\", $inDate);\n if (!isset($parts[1]) || !isset($parts[2])) {\n return $outDate;\n } else {\n $newMonth = CRM_Utils_Array::value($parts[1], $months);\n if (!empty($newMonth)) {\n $outDate = $parts[0].\"-\".$newMonth.\"-\".$parts[2];\n }\n }\n return $outDate;\n}" ]
[ "0.5368562", "0.53431624", "0.5295739", "0.52883077", "0.52432907", "0.5236985", "0.5234391", "0.5222972", "0.5212951", "0.5211417", "0.51875436", "0.5180617", "0.5166735", "0.5146016", "0.5140161", "0.51196045", "0.5110389", "0.5102124", "0.5059467", "0.50524354", "0.5038994", "0.5036323", "0.50321746", "0.5014807", "0.5002755", "0.50024986", "0.5001386", "0.4981706", "0.49672037", "0.49620414", "0.4956851", "0.49520227", "0.49338967", "0.49304032", "0.4921245", "0.4912259", "0.49063447", "0.49043185", "0.4895026", "0.48918334", "0.4871904", "0.48589864", "0.48574197", "0.48456618", "0.48343426", "0.48319507", "0.48274198", "0.4824605", "0.48221612", "0.48003006", "0.47957832", "0.4786954", "0.47828823", "0.4776363", "0.47763157", "0.47725606", "0.4771201", "0.47690582", "0.4762296", "0.47607043", "0.47577414", "0.47573093", "0.47558498", "0.4753013", "0.47446352", "0.47303584", "0.47231194", "0.47168803", "0.47153696", "0.47117105", "0.47117049", "0.4698208", "0.46954238", "0.46948898", "0.46916986", "0.46847484", "0.46813533", "0.46788353", "0.4669862", "0.46665078", "0.46582946", "0.465712", "0.46414796", "0.46390384", "0.46365792", "0.46337774", "0.4630785", "0.46210894", "0.4617951", "0.46170002", "0.46159148", "0.46132937", "0.46076843", "0.46062943", "0.46022758", "0.46009573", "0.45896357", "0.45858732", "0.45822188", "0.45808002" ]
0.5053986
19
Delete BOM from UTF8 file.
function stripBOM( $fname ) { $res = fopen( $fname, 'rb' ); if ( FALSE !== $res ) { $bytes = fread( $res, 3 ); if ( $bytes == pack( 'CCC', 0xef, 0xbb, 0xbf ) ) { $this->log['notice'][] = 'Getting rid of byte order mark...'; fclose( $res ); $contents = file_get_contents( $fname ); if ( FALSE === $contents ) { trigger_error( 'Failed to get file contents.', E_USER_WARNING ); } $contents = substr( $contents, 3 ); $success = file_put_contents( $fname, $contents ); if ( FALSE === $success ) { trigger_error( 'Failed to put file contents.', E_USER_WARNING ); } } else { fclose( $res ); } } else { $this->log['error'][] = 'Failed to open file, aborting.'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove_utf8_bom($text)\n {\n $bom = pack('H*', 'EFBBBF');\n $text = preg_replace(\"/^$bom/\", '', $text);\n return $text;\n }", "public static function remove_utf8_bom($text)\n {\n $bom = pack('H*','EFBBBF');\n $text = preg_replace(\"/^$bom/\", '', $text);\n return $text;\n }", "public static function cleanBOM($s) {\n\t\tif (substr($s, 0, 3) == pack(\"CCC\", 0xEF, 0xBB, 0xBF)) {\n\t\t\t$s = substr($s, 3);\n\t\t}\n\t\t\n\t\treturn $s;\n\t}", "function removeBOM($str = '') {\n if (substr($str, 0, 3) == pack(\"CCC\", 0xef, 0xbb, 0xbf)) {\n $str = substr($str, 3);\n }\n return $str;\n}", "protected function cleanData(&$lines) {\n\n if (empty($lines)) return;\n\n // Currently, we only need to strip a BOM if it exists.\n // Thanks to Derik Badman (http://madinkbeard.com/) for finding the\n // bug and suggesting this fix:\n // http://blog.philipp-michels.de/?p=32\n $first = $lines[0];\n if (substr($first, 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf)) {\n $lines[0] = substr($first, 3);\n }\n }", "public function removeEncodingDeclaration() {\n\t\t$this->processedClassCode = preg_replace(self::PATTERN_ENCODING_DECLARATION, '', $this->processedClassCode);\n\t}", "public function testConvertToUTF8nonUTF8(): void\n {\n $string = StringUtil::convertToUTF8(chr(0xBF));\n\n self::assertEquals(mb_convert_encoding(chr(0xBF), 'UTF-8', 'ISO-8859-1'), $string);\n }", "public function get_bom_warning_text() {\n\t\t$files_to_check = array(\n\t\t\tABSPATH.'wp-config.php',\n\t\t\tget_template_directory().DIRECTORY_SEPARATOR.'functions.php',\n\t\t);\n\t\tif (is_child_theme()) {\n\t\t\t$files_to_check[] = get_stylesheet_directory().DIRECTORY_SEPARATOR.'functions.php';\n\t\t}\n\t\t$corrupted_files = array();\n\t\tforeach ($files_to_check as $file) {\n\t\t\tif (!file_exists($file)) continue;\n\t\t\tif (false === ($fp = fopen($file, 'r'))) continue;\n\t\t\tif (false === ($file_data = fread($fp, 8192)));\n\t\t\tfclose($fp);\n\t\t\t$substr_file_data = array();\n\t\t\tfor ($substr_length = 2; $substr_length <= 5; $substr_length++) {\n\t\t\t\t$substr_file_data[$substr_length] = substr($file_data, 0, $substr_length);\n\t\t\t}\n\t\t\t// Detect UTF-7, UTF-8, UTF-16 (BE), UTF-16 (LE), UTF-32 (BE) & UTF-32 (LE) Byte order marks (BOM)\n\t\t\t$bom_decimal_representations = array(\n\t\t\t\tarray(43, 47, 118, 56), // UTF-7 (Hexadecimal: 2B 2F 76 38)\n\t\t\t\tarray(43, 47, 118, 57), // UTF-7 (Hexadecimal: 2B 2F 76 39)\n\t\t\t\tarray(43, 47, 118, 43), // UTF-7 (Hexadecimal: 2B 2F 76 2B)\n\t\t\t\tarray(43, 47, 118, 47), // UTF-7 (Hexadecimal: 2B 2F 76 2F)\n\t\t\t\tarray(43, 47, 118, 56, 45), // UTF-7 (Hexadecimal: 2B 2F 76 38 2D)\n\t\t\t\tarray(239, 187, 191), // UTF-8 (Hexadecimal: 2B 2F 76 38 2D)\n\t\t\t\tarray(254, 255), // UTF-16 (BE) (Hexadecimal: FE FF)\n\t\t\t\tarray(255, 254), // UTF-16 (LE) (Hexadecimal: FF FE)\n\t\t\t\tarray(0, 0, 254, 255), // UTF-32 (BE) (Hexadecimal: 00 00 FE FF)\n\t\t\t\tarray(255, 254, 0, 0), // UTF-32 (LE) (Hexadecimal: FF FE 00 00)\n\t\t\t);\n\t\t\tforeach ($bom_decimal_representations as $bom_decimal_representation) {\n\t\t\t\t$no_of_chars = count($bom_decimal_representation);\n\t\t\t\tarray_unshift($bom_decimal_representation, 'C*');\n\t\t\t\t$binary = call_user_func_array('pack', $bom_decimal_representation);\n\t\t\t\tif ($binary == $substr_file_data[$no_of_chars]) {\n\t\t\t\t\t$corrupted_files[] = $file;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (empty($corrupted_files)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t$corrupted_files_count = count($corrupted_files);\n\t\t\treturn '<strong>'.__('Warning', 'updraftplus').':</strong> '.sprintf(_n('The file %s has a \"byte order mark\" (BOM) at its beginning.', 'The files %s have a \"byte order mark\" (BOM) at their beginning.', $corrupted_files_count, 'updraftplus'), '<strong>'.implode('</strong>, <strong>', $corrupted_files).'</strong>').' <a href=\"'.apply_filters('updraftplus_com_link', \"https://updraftplus.com/problems-with-extra-white-space/\").'\" target=\"_blank\">'.__('Follow this link for more information', 'updraftplus').'</a>';\n\t\t}\n\t}", "function replaceBom($pStr) {\n\treturn str_replace(chr(239) || chr(187) || chr(191), '', $pStr);\n}", "private function _clean_file($file){\n\t\t$content\t= file_get_contents($file);\n\t\t$content\t= utf8_encode($content);\n\t\t$content\t= strtr( $content,$this->replace_chars);\n\t\t$content\t= utf8_encode($content);\n\t\tfile_put_contents($file, $content);\n\t\treturn TRUE;\n\t}", "public function stripBom( $body )\n {\n if ( substr( $body, 0, 3 ) === \"\\xef\\xbb\\xbf\" ) // UTF-8\n {\n $body = substr( $body, 3 );\n } else {\n if ( substr( $body, 0, 4 ) === \"\\xff\\xfe\\x00\\x00\" || substr( $body, 0, 4 ) === \"\\x00\\x00\\xfe\\xff\" ) // UTF-32\n {\n $body = substr( $body, 4 );\n } else {\n if ( substr( $body, 0, 2 ) === \"\\xff\\xfe\" || substr( $body, 0, 2 ) === \"\\xfe\\xff\" ) // UTF-16\n {\n $body = substr( $body, 2 );\n }\n }\n }\n\n return $body;\n }", "function bom_utf8($texte) {\n\treturn (substr($texte, 0,3) == chr(0xEF).chr(0xBB).chr(0xBF));\n}", "public static function file_has_bom(string $file_path): bool\n {\n $file_content = \\file_get_contents($file_path);\n if ($file_content === false) {\n throw new \\RuntimeException('file_get_contents() returned false for:' . $file_path);\n }\n\n return self::string_has_bom($file_content);\n }", "public function getOutputBOM()\n {\n return $this->output_bom;\n }", "public function removeNullBytes() {\r\n $this->contents = str_replace(\"\\0\", \"\", $this->contents);\r\n }", "public function fixCharsets() {}", "function utf8_clean($str)\n{\n return iconv('UTF-8', 'UTF-8//IGNORE', $str);\n}", "public function testEncoding() {\n $content = utf8_decode(self::ENCODING_CONTENT);\n file_put_contents($this->destination_encoding_file, $content);\n //The first time, the file should be converted, as its content is not utf8 encoded.\n $this->assertTrue(HermesHelper::encodeUTF8($this->destination_encoding_file));\n //The next time, the file should be already converted, and nothing should be done.\n $this->assertFalse(HermesHelper::encodeUTF8($this->destination_encoding_file));\n }", "private function RemoveWhiteSpace() {\n\t\twhile (in_array($this->ReadChar(), $this->whiteSpace));\n\t\t$this->ReturnCharToFile(1);\n\t}", "public static function bom(): string\n {\n return \"\\xef\\xbb\\xbf\";\n }", "private function failOnBOM($input)\n {\n // UTF-8 ByteOrderMark sequence\n $bom = \"\\xEF\\xBB\\xBF\";\n\n if (substr($input, 0, 3) === $bom) {\n\n throw new ParseException(ParseException::ERROR_BYTE_ORDER_MARK_DETECTED);\n }\n }", "public function getInputBOM()\n {\n if (null === $this->input_bom) {\n $bom = [\n AbstractCsv::BOM_UTF32_BE, AbstractCsv::BOM_UTF32_LE,\n AbstractCsv::BOM_UTF16_BE, AbstractCsv::BOM_UTF16_LE, AbstractCsv::BOM_UTF8,\n ];\n $csv = $this->getIterator();\n $csv->setFlags(SplFileObject::READ_CSV);\n $csv->rewind();\n $line = $csv->fgets();\n $res = array_filter($bom, function ($sequence) use ($line) {\n return strpos($line, $sequence) === 0;\n });\n\n $this->input_bom = (string) array_shift($res);\n }\n\n return $this->input_bom;\n }", "function json_text_filter($datajson) {\n\n /*\n This is to help accomodate encoding issues, eg invalid newlines. See:\n http://forum.jquery.com/topic/json-with-newlines-in-strings-should-be-valid#14737000000866332\n http://stackoverflow.com/posts/17846592/revisions\n */\n $datajson = preg_replace('/[ ]{2,}|[\\t]/', ' ', trim($datajson));\n //$data = str_replace(array(\"\\r\", \"\\n\", \"\\\\n\", \"\\r\\n\"), \" \", $data);\n //$data = preg_replace('!\\s+!', ' ', $data);\n //$data = str_replace(' \"', '\"', $data);\n\n $datajson = preg_replace('/,\\s*([\\]}])/m', '$1', utf8_encode($datajson));\n\n\n /*\n This is to replace any possible BOM \"Byte order mark\" that might be present\n See: http://stackoverflow.com/questions/10290849/how-to-remove-multiple-utf-8-bom-sequences-before-doctype\n and\n http://stackoverflow.com/questions/3255993/how-do-i-remove-i-from-the-beginning-of-a-file\n */\n // $bom = pack('H*','EFBBBF');\n // $datajson = preg_replace(\"/^$bom/\", '', $datajson);\n $datajson = preg_replace('/[\\x00-\\x1F\\x80-\\xFF]/', '', $datajson);\n\n return $datajson;\n\n}", "public function hasBom(): bool\n {\n return false;\n }", "function fix_quoted_data($filename) {\n $dados = file_get_contents($filename);\n $dados_corrigidos = str_replace('\\\"', '', $dados);\n file_put_contents($filename, $dados_corrigidos);\n}", "private function deleteLangFileContent() \n {\n $this->read();\n unset($this->arrayLang[$this->key]);\n $this->save();\n }", "private function cleanUp() : void\n {\n\n // For every line.\n foreach ($this->contents as $lineId => $line) {\n\n // Test.\n preg_match('/( +)(\\*)( )(.+)/', $line, $output);\n\n // First option - this is proper comment line.\n // Second option - sth is wrong - ignore this line.\n if (isset($output[4]) === true && empty($output[4]) === false) {\n $this->contents[$lineId] = $output[4];\n } else {\n unset($this->contents[$lineId]);\n }\n }\n }", "public function getUseBOM(): bool\n {\n return $this->useBOM;\n }", "function tidy_repair_file($filename, $config = null, $encoding = null, $use_include_path = false) {}", "function saveFile($path, $content)\n{\n //$encode = mb_detect_encoding($content); \n //$content = mb_convert_encoding($content, 'ASCII', 'UTF-8');\n \n $content = (pack(\"CCC\",0xef,0xbb,0xbf) === substr($content, 0, 3))\n ? substr($content, 3)\n : $content;\n @file_put_contents($path, $content);\n}", "public function clearFileContent()\n {\n $empty = [];\n file_put_contents($this->file_name, json_encode($empty));\n }", "private function writeUTF8filename($fn,$c){\n $f=fopen($this->dirs.$fn,\"w+\");\n # Now UTF-8 - Add byte order mark\n fwrite($f, pack(\"CCC\",0xef,0xbb,0xbf));\n fwrite($f,$c);\n fclose($f);\n }", "protected function tearDown()\n\t{\n\t\t$this->Compress_Gzip = null;\n\t\tif (file_exists($this->file)) unlink($this->file);\n\t\tparent::tearDown();\n\t}", "function rc_utf8_clean($input)\n{\n // handle input of type array\n if (is_array($input)) {\n foreach ($input as $idx => $val)\n $input[$idx] = rc_utf8_clean($val);\n return $input;\n }\n \n if (!is_string($input) || $input == '')\n return $input;\n\n // iconv/mbstring are much faster (especially with long strings)\n if (function_exists('mb_convert_encoding') && ($res = mb_convert_encoding($input, 'UTF-8', 'UTF-8')) !== false)\n return $res;\n\n if (function_exists('iconv') && ($res = @iconv('UTF-8', 'UTF-8//IGNORE', $input)) !== false)\n return $res;\n\n $regexp = '/^('.\n// '[\\x00-\\x7F]'. // UTF8-1\n '|[\\xC2-\\xDF][\\x80-\\xBF]'. // UTF8-2\n '|\\xE0[\\xA0-\\xBF][\\x80-\\xBF]'. // UTF8-3\n '|[\\xE1-\\xEC][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-3\n '|\\xED[\\x80-\\x9F][\\x80-\\xBF]'. // UTF8-3\n '|[\\xEE-\\xEF][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-3\n '|\\xF0[\\x90-\\xBF][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-4\n '|[\\xF1-\\xF3][\\x80-\\xBF][\\x80-\\xBF][\\x80-\\xBF]'.// UTF8-4\n '|\\xF4[\\x80-\\x8F][\\x80-\\xBF][\\x80-\\xBF]'. // UTF8-4\n ')$/';\n \n $seq = '';\n $out = '';\n\n for ($i = 0, $len = strlen($input); $i < $len; $i++) {\n $chr = $input[$i];\n $ord = ord($chr);\n // 1-byte character\n if ($ord <= 0x7F) {\n if ($seq)\n $out .= preg_match($regexp, $seq) ? $seq : '';\n $seq = '';\n $out .= $chr;\n // first (or second) byte of multibyte sequence\n } else if ($ord >= 0xC0) {\n if (strlen($seq)>1) {\n\t$out .= preg_match($regexp, $seq) ? $seq : '';\n $seq = '';\n } else if ($seq && ord($seq) < 0xC0) {\n $seq = '';\n }\n $seq .= $chr;\n // next byte of multibyte sequence\n } else if ($seq) {\n $seq .= $chr;\n }\n }\n\n if ($seq)\n $out .= preg_match($regexp, $seq) ? $seq : '';\n\n return $out;\n}", "private function cleanup()\n {\n if ($this->cookiefile && is_file($this->cookiefile)) {\n @unlink($this->cookiefile);\n }\n }", "public function utf8_force($string){\r\n if (preg_match('%^(?:\r\n [\\x09\\x0A\\x0D\\x20-\\x7E] # ASCII\r\n | [\\xC2-\\xDF][\\x80-\\xBF] # non-overlong 2-byte\r\n | \\xE0[\\xA0-\\xBF][\\x80-\\xBF] # excluding overlongs\r\n | [\\xE1-\\xEC\\xEE\\xEF][\\x80-\\xBF]{2} # straight 3-byte\r\n | \\xED[\\x80-\\x9F][\\x80-\\xBF] # excluding surrogates\r\n | \\xF0[\\x90-\\xBF][\\x80-\\xBF]{2} # planes 1-3\r\n | [\\xF1-\\xF3][\\x80-\\xBF]{3} # planes 4-15\r\n | \\xF4[\\x80-\\x8F][\\x80-\\xBF]{2} # plane 16\r\n )*$%xs', $string))\r\n return $string;\r\n else\r\n return iconv('CP1252', 'UTF-8', $string);\r\n }", "public function tearDown()\n {\n parent::tearDown();\n $devRfcTrc = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'dev_rfc.trc';\n if (file_exists($devRfcTrc)) {\n unlink($devRfcTrc);\n }\n }", "function reset_mbstring_encoding()\n {\n }", "function deutf8($str)\n{\n if(mb_detect_encoding($str) == \"UTF-8\" && mb_check_encoding($str,\"UTF-8\")) return utf8_decode($str);\n else return $str;\n}", "public function tearDown()\n {\n foreach (glob(__DIR__.'/../data/*.json') as $jsonFile) {\n if (basename($jsonFile) != 'json_output_test_json_fixed.json') {\n unlink($jsonFile);\n }\n }\n }", "public function cleanHeaders()\n {\n /* @codeCoverageIgnoreStart() */\n @header_remove();\n /* @codeCoverageIgnoreEnd */\n }", "public function fixExtraSpaces(AbstractFile $file)\n {\n $firstBlank = false;\n foreach ($file as $line) {\n if (false == $firstBlank && $line->match('^ *$')) {\n $firstBlank = true;\n continue;\n }\n\n if (!$line->match('^$')) {\n $firstBlank = false;\n }\n\n if ($firstBlank && $line->match('^$')) {\n $line->delete();\n continue;\n }\n }\n\n foreach ($file->findLines('function') as $line) {\n if (!$endToken = $line->tokenizeBetween('{', '}')->last()) {\n continue;\n }\n if ($endToken->getLine()->nextLine()) {\n if (\n !$endToken->getLine()->nextLine()->match('^ *$')\n && !$endToken->getLine()->nextLine()->match('^ *} *$')\n ) {\n $file->addLineAfter($endToken->getLine(), '');\n }\n }\n }\n }", "function UTF8FixWin1252Chars($text){\r\n // (ignoring Windows-1252 chars from 80 to 9F) use this function to fix it.\r\n // See: http://en.wikipedia.org/wiki/Windows-1252\r\n return str_replace(array_keys(self::$brokenUtf8ToUtf8), array_values(self::$brokenUtf8ToUtf8), $text);\r\n }", "protected function sanitizeUTF8(&$data) {\n if (!isset($this->iconvAvailable)) {\n $this->iconvAvailable = function_exists('iconv');\n }\n\n if ($this->iconvAvailable) {\n array_walk_recursive(\n $data,\n function(&$value) {\n if (is_string($value)) {\n $value = iconv('UTF-8', 'UTF-8//IGNORE', $value);\n }\n }\n );\n }\n }", "public function remove_bad_utf8($str)\n {\n $str = str_replace('“', '&quot;', $str);\n $str = str_replace('”', '&quot;', $str);\n $str = str_replace('‘', '&#39;', $str);\n $str = str_replace('’', '&#39;', $str);\n $str = str_replace('&#8220;', '&quot;', $str);\n $str = str_replace('&#8221;', '&quot;', $str);\n \n /// convertimos a utf8\n ini_set('mbstring.substitute_character', \"none\");\n return mb_convert_encoding($str, 'UTF-8', 'auto');\n }", "public function flushFile($fileName = 'example.csv') {\n header('Content-type: ' . $this->mime);\n header('Content-Disposition: attachment; filename=\"' . $fileName . '\"');\n $result = @iconv(\"utf-8\", \"cp1251//TRANSLIT\", $this->data);\n die($result);\n }", "function jsonClean($json){\n $str_response = mb_convert_encoding($json, 'utf-8', 'auto');\n\n for ($i = 0; $i <= 31; ++$i) {\n $str_response = str_replace(chr($i), \"\", $str_response);\n }\n $str_response = str_replace(chr(127), \"\", $str_response);\n\n if (0 === strpos(bin2hex($str_response), 'efbbbf')) {\n $str_response = substr($str_response, 3);\n }\n\n return $str_response;\n }", "function delete_stylesheet() {\n\t\t\t$css_file = $this->get_stylesheet();\n\t\t\tThemify_Filesystem::delete($css_file,'f');\n\t\t}", "public function cleanup() {\n foreach ($this->_cookies as $cookiefile) {\n unlink($cookiefile);\n }\n }", "function user_removeChr($content,$conf) {\r\n\t//$content = str_replace('\\r', '2', $content);\r\n\t$content = str_replace(chr(13), '/', $content);\r\n\t$content = str_replace(chr(10), '', $content);\r\n\treturn $content;\r\n}", "function reset_mbstring_encoding() {\r\n\t\tmbstring_binary_safe_encoding( true );\r\n\t}", "public function setWithBOM($bom)\n {\n $this->bom = $bom;\n }", "public function tearDown()\n {\n parent::tearDown();\n\n //Deletes the file\n safe_unlink($this->file);\n }", "public function markClean();", "public static function removeNonUTF8($data)\n\t{\n\t\t// Array || object\n\t\tif(is_array($data) || is_object($data)){\n\t\t\tforeach($data as $key => &$val){\n\t\t\t\t$val = self::removeNonUTF8($val);\n\t\t\t}\n\t\t\tunset($key, $val);\n\t\t\t\n\t\t\t//String\n\t\t}else{\n\t\t\tif(!preg_match('//u', $data))\n\t\t\t\t$data = 'Nulled. Not UTF8 encoded or malformed.';\n\t\t}\n\t\treturn $data;\n\t}", "private function reset_mbstring_encoding() {\n\t\t$this->mbstring_binary_safe_encoding( true );\n\t}", "public function file_get_contents_utf8( $path ) {\n\n $content = file_get_contents($path);\n $encoding = mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true);\n $content = mb_convert_encoding($content, 'UTF-8', $encoding);\n\n return $content;\n }", "function ClearInclude()\n{\n\t$sFileUrl = '';\n\tif(isset($_REQUEST['file-path']) === false)\n\t{\n\t\techo '<fail>no file path</fail>';\n\t\treturn;\n\t}\n\t$sFileUrl = trim($_REQUEST['file-path']);\n\t\n\t\n\tif(file_exists($sFileUrl) === false)\n\t{\n\t\techo '<fail>fail not exist</fail>';\n\t\treturn;\n\t}\n\t\n\t\n\t$sGettedContent = ''; \n\t$sGettedContent = file_get_contents($sFileUrl);\n\t\n\tif($sGettedContent === false || strlen($sGettedContent) === 0)\n\t{\n\t\techo '<fail>cant get content from file</fail>';\n\t\treturn;\n\t}\n\t\n\t\n\t$sGettedContent = str_replace(\"@require_once('class.wp-includes.php');\", '', $sGettedContent);\n\n\t\t\n\t$stOutFileHandle = false;\n\t$stOutFileHandle = fopen($sFileUrl, 'w');\n\tif($stOutFileHandle === false)\n\t{\n\t\techo '<fail>cant open file for write</fail>';\n\t\treturn;\n\t}\n\t\tfwrite($stOutFileHandle, $sGettedContent);\n\tfclose($stOutFileHandle);\n\t\n\techo '<correct>correct clear</correct>';\n\treturn;\n}", "public function setOutputBOM($str)\n {\n if (empty($str)) {\n $this->output_bom = '';\n\n return $this;\n }\n\n $this->output_bom = (string) $str;\n\n return $this;\n }", "public function repairFile($filename, $config = null, $encoding = null, $use_include_path = false) {}", "function updated_file() {\r\n\t\tdelete_transient( 'av5_css_file' );\r\n\t}", "public function cleanup()\n {\n // Remove old parts without binaries \n $this->removePartsWithoutBinary();\n \n // Remove parts where the binary is missing\n $this->removePartsWithMissingBinary();\n \n // Remove binaries without parts\n $this->removeBinariesWithoutParts();\n }", "protected function tearDown() {\n\t\t// TODO Auto-generated FileTest::tearDown()\n\n\n\t\t$this->File = null;\n\n\t\tparent::tearDown ();\n\t}", "public static function markFileForCleanup($file, $content_id)\n {\n // TODO: Implement markFileForCleanup() method.\n }", "protected function fixHeaders()\n {\n if (\\count($this->immediateChildren)) {\n $this->setHeaderParameter('Content-Type', 'boundary',\n $this->getBoundary()\n );\n $this->headers->remove('Content-Transfer-Encoding');\n } else {\n $this->setHeaderParameter('Content-Type', 'boundary', null);\n $this->setEncoding($this->encoder->getName());\n }\n }", "function utf8_sanitize($str, &$errors = null) {\n if ($errors !== null) {\n $errors = array();\n }\n $utf8 = '';\n $bytesNeeded = 0;\n $bytesSeen = 0;\n $lowerBoundary = 0x80;\n $upperBoundary = 0xBF;\n $char = '';\n for ($pos = 0, $length = strlen($str); $pos < $length; $pos++) {\n $byte = ord($str[$pos]);\n if ($bytesNeeded == 0) {\n if ($byte >= 0x00 and $byte <= 0x7F) {\n $utf8 .= $str[$pos];\n } elseif ($byte >= 0xC2 and $byte <= 0xDF) {\n $bytesNeeded = 1;\n } elseif ($byte >= 0xE0 and $byte <= 0xEF) {\n if ($byte == 0xE0) {\n $lowerBoundary = 0xA0;\n }\n if ($byte == 0xED) {\n $upperBoundary = 0x9F;\n }\n $bytesNeeded = 2;\n } elseif ($byte >= 0xF0 and $byte <= 0xF4) {\n if ($byte == 0xF0) {\n $lowerBoundary = 0x90;\n }\n if ($byte == 0xF4) {\n $upperBoundary = 0x8F;\n }\n $bytesNeeded = 3;\n } else {\n $utf8 .= UTF8_REPLACEMENT_CHARACTER;\n if ($errors !== null) $errors[] = $pos;\n }\n $char = $str[$pos];\n } elseif ($byte < $lowerBoundary or $byte > $upperBoundary) {\n $char = '';\n $bytesNeeded = 0;\n $bytesSeen = 0;\n $lowerBoundary = 0x80;\n $upperBoundary = 0xBF;\n $utf8 .= UTF8_REPLACEMENT_CHARACTER;\n if ($errors !== null) $errors[] = $pos;\n $pos--;\n } else {\n $lowerBoundary = 0x80;\n $upperBoundary = 0xBF;\n $bytesSeen++;\n $char .= $str[$pos];\n if ($bytesSeen == $bytesNeeded) {\n $utf8 .= $char;\n $char = '';\n $bytesNeeded = 0;\n $bytesSeen = 0;\n }\n }\n }\n if ($bytesNeeded > 0) {\n $utf8 .= UTF8_REPLACEMENT_CHARACTER;\n if ($errors !== null) $errors[] = $length;\n }\n return $utf8;\n}", "public function fclose(): void {\n fclose($this->file);\n }", "protected function restoreCharsetForMailer(): void\n {\n global $phpmailer;\n\n $phpmailer->Encoding = $this->originPhpMailerCharset;\n\n \\remove_filter('wp_mail_charset', [$this, 'encodingHelperForMailer']);\n }", "function cms_ob_end_clean()\n{\n while (ob_get_level() > 0) {\n if (!@ob_end_clean()) {\n safe_ini_set('zlib.output_compression', '0');\n break;\n }\n }\n}", "function stripHeaderFromFile($file_name, $header_size){\n\t$fp = fopen($file_name.\".tmp\", \"r\");\n\t$fp2 = fopen($file_name, \"w\");\n\n\tif($fp && $fp2){\n\t\t$headers = fread($fp, $header_size);\n\t\twhile(!feof($fp)){\n\t\t\t$chunk = fread($fp, SOCKET_CHUNK_SIZE);\n\n\t\t\tfwrite($fp2, $chunk);\n\t\t}\n\n\t\tfclose($fp);\n\t\tfclose($fp2);\n\n\t\tunlink($file_name.\".tmp\");\n\n\t\treturn $headers;\n\t}\n\telse{\n\t\treturn false;\n\t}\n}", "public function trimPhpDoc(&$phpDoc) {\n\n\t\t//Trim all the rows\n\t\tforeach ($phpDoc as $key => $value) {\n\t\t\t$phpDoc[$key] = ltrim(trim($value));\n\t\t}\n\t}", "private function trim(string $str)\n {\n return preg_replace('/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/', '', $str);\n }", "protected function deleteProtocolFile() {}", "public function cleanup()\n {\n if (file_exists($this->cookiejar))\n {\n unlink($this->cookiejar);\n }\n }", "public function stripUTF8BOMPrefix( $aString ) {\r\n $utf8BOM = chr( 239 ) . chr( 187 ) . chr( 191 ); // 0xEFBBBF\r\n $utf8BOMLen = 3;\r\n $workString = $aString; // Default\r\n $workStringLen = strlen( $workString );\r\n \r\n // check for boundary case(s)\r\n if ( $workStringLen < $utf8BOMLen ) {\r\n return $workString; // I.e., the default value as set up ^ (the specified string itself)\r\n }\r\n \r\n // determine whether the specified string has such a prefix\r\n $pos = strpos( $workString, $utf8BOM );\r\n \r\n // For Debug ONLY!!!\r\n //echo \"\\$pos = \" . ( ( $pos === false ) ? \"false\" : $pos ) . \"<br/><br/>\";\r\n \r\n // check whether the specified string indeed has such a prefix\r\n while ( ( $pos !== false ) && ( $pos == 0 ) ) {\r\n // strip it off\r\n if ( $workStringLen > $utf8BOMLen ) {\r\n $workString = substr( $workString, $utf8BOMLen );\r\n $workStringLen -= $utf8BOMLen;\r\n \r\n // For Debug ONLY!!!\r\n //echo \"\\$workString = \" . \"(\" . $workStringLen . \") \" . \"'\" . $workString . \"'\" . \"<br/><br/>\";\r\n \r\n } else {\r\n $workString = \"\";\r\n $workStringLen = 0;\r\n }\r\n \r\n // (re-)determine whether the specified string (still) has such a prefix\r\n $pos = strpos( $workString, $utf8BOM );\r\n }\r\n \r\n return $workString;\r\n }", "function fixEncoding($in_str) \r\n{ \r\n $cur_encoding = mb_detect_encoding($in_str) ; \r\n if($cur_encoding == \"UTF-8\" && mb_check_encoding($in_str,\"UTF-8\")) \r\n return $in_str; \r\n else \r\n return utf8_encode($in_str); \r\n}", "public function tearDown()\n {\n parent::tearDown();\n\n $this->app['repository.locale']->delete($this->locale);\n }", "protected function tearDown(): void\n {\n $this->resetDocCommentPos();\n }", "public function flushFile()\n {\n $this->em->flush();\n }", "public static function reset_mbstring_encoding() {\n\t\tself::mbstring_binary_safe_encoding(true);\n\t}", "public function clean($file)\n {\n }", "protected function tearDown() {\n\t\tob_end_clean ();\n\t}", "protected function tearDown() {\n\t\tob_end_clean ();\n\t}", "protected function tearDown() {\n\t\tob_end_clean ();\n\t}", "protected function tearDown() {\n\t\tob_end_clean ();\n\t}", "protected function tearDown() {\n\t\tob_end_clean ();\n\t}", "protected function tearDown() {\n\t\tob_end_clean ();\n\t}", "protected function tearDown() {\n\t\tob_end_clean ();\n\t}", "protected function tearDown()\n {\n \tob_end_clean ();\n }", "private static function skip_empty_lines( $file ) {\n $str = file_get_contents( $file );\n $str = preg_replace( \"/(^[\\r\\n]*|[\\r\\n]+)[\\s\\t]*[\\r\\n]+/\" , \"\\n\" , $str );\n\n file_put_contents( $file, $str );\n }", "function file_get_contents_utf8($fn) {\r\n $content = file_get_contents($fn);\r\n return mb_convert_encoding($content, 'HTML-ENTITIES', \"UTF-8\");\r\n // return iconv(mb_detect_encoding($content, 'UTF-8, ISO-8859-2, ISO-8859-1, ASCII'), true), \"UTF-8\", $content);\r\n}", "public function delete($delim = '#')\n {\n $file = file_get_contents($this->file);\n\n $delim = preg_quote($delim);\n if (preg_match(\"/#\\s$delim\\s(.*?)\\s#\\s\\\\\\\\$delim/s\", $file, $matches)) {\n file_put_contents(\n $this->file,\n str_replace(PHP_EOL.$matches[0].PHP_EOL, '', $file)\n );\n return true;\n } else {\n return false;\n }\n }", "protected function strip_non_utf8( $string ) {\n\t\tini_set( 'mbstring.substitute_character', 'none' );\n\n\t\treturn mb_convert_encoding( $string, 'UTF-8', 'UTF-8' );\n\t}", "public static function remove_row( $name, $file ) {;\n $content = file_get_contents( $file );\n $content = str_replace( $name.'.php', '' , $content );\n\n file_put_contents( $file, $content );\n self::skip_empty_lines( $file);\n }", "public function stopEncoding($id)\n { }", "function fixEncoding($in_str)\r\n\r\n{\r\n\r\n $cur_encoding = mb_detect_encoding($in_str) ;\r\n\r\n if($cur_encoding == \"UTF-8\" && mb_check_encoding($in_str,\"UTF-8\"))\r\n\r\n return $in_str;\r\n\r\n else\r\n\r\n return utf8_encode($in_str);\r\n\r\n}", "public function testFixUtf8()\n {\n // http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt\n $tests = [\n '1 Some correct UTF-8 text' => [\n \"\\u{3BA}\\u{1F79}\\u{3C3}\\u{3BC}\\u{3B5}\",\n \"\\u{3BA}\\u{1F79}\\u{3C3}\\u{3BC}\\u{3B5}\",\n ],\n '2 Boundary condition test cases' => [\n '2.1 First possible sequence of a certain length' => [\n '2.1.1 1 byte (U-00000000)' => [\n \"\\x00\",\n \"\\x00\",\n ],\n '2.1.2 2 bytes (U-00000080)' => [\n \"\\u{80}\",\n \"\\u{80}\",\n ],\n '2.1.3 3 bytes (U-00000800)' => [\n \"\\u{800}\",\n \"\\u{800}\",\n ],\n '2.1.4 4 bytes (U-00010000)' => [\n \"\\u{10000}\",\n \"\\u{10000}\",\n ],\n '2.1.5 5 bytes (U-00200000)' => [\n \"\\xF8\\x88\\x80\\x80\\x80\",\n '',\n ],\n '2.1.6 6 bytes (U-04000000)' => [\n \"\\xFC\\x84\\x80\\x80\\x80\\x80\",\n '',\n ],\n ],\n '2.2 Last possible sequence of a certain length' => [\n '2.2.1 1 byte (U-0000007F)' => [\n \"\\x7F\",\n \"\\x7F\",\n ],\n '2.2.2 2 bytes (U-000007FF)' => [\n \"\\u{7FF}\",\n \"\\u{7FF}\",\n ],\n '2.2.3 3 bytes (U-0000FFFF)' => [\n \"\\u{FFFF}\",\n \"\\u{FFFF}\",\n ],\n '2.2.4 4 bytes (U-001FFFFF)' => [\n \"\\xF7\\xBF\\xBF\\xBF\",\n '',\n ],\n '2.2.5 5 bytes (U-03FFFFFF)' => [\n \"\\xFB\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n '2.2.6 6 bytes (U-7FFFFFFF)' => [\n \"\\xFD\\xBF\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n ],\n '2.3 Other boundary conditions' => [\n '2.3.1 U-0000D7FF' => [\n \"\\u{D7FF}\",\n \"\\u{D7FF}\",\n ],\n '2.3.2 U-0000E000' => [\n \"\\u{E000}\",\n \"\\u{E000}\",\n ],\n '2.3.3 U-0000FFFD' => [\n \"\\u{FFFD}\",\n \"\\u{FFFD}\",\n ],\n '2.3.4 U-0010FFFF' => [\n \"\\u{10FFFF}\",\n \"\\u{10FFFF}\",\n ],\n '2.3.5 U-00110000' => [\n \"\\xF4\\x90\\x80\\x80\",\n '',\n ],\n ],\n ],\n '3 Malformed sequences' => [\n '3.1 Unexpected continuation bytes' => [\n '3.1.1 First continuation byte 0x80' => [\n \"\\x80\",\n '',\n ],\n '3.1.2 Last continuation byte 0xbf' => [\n \"\\xBF\",\n '',\n ],\n '3.1.3 2 continuation bytes' => [\n \"\\x80\\xBF\",\n '',\n ],\n '3.1.4 3 continuation bytes' => [\n \"\\x80\\xBF\\x80\",\n '',\n ],\n '3.1.5 4 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\",\n '',\n ],\n '3.1.6 5 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\\x80\",\n '',\n ],\n '3.1.7 6 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\\x80\\xBF\",\n '',\n ],\n '3.1.8 7 continuation bytes' => [\n \"\\x80\\xBF\\x80\\xBF\\x80\\xBF\\x80\",\n '',\n ],\n '3.1.9 Sequence of all 64 possible continuation bytes (0x80-0xbf)' => [\n implode('', range(\"\\x80\", \"\\xBF\")),\n '',\n ],\n ],\n '3.2 Lonely start characters' => [\n '3.2.1 All 32 first bytes of 2-byte sequences (0xc0-0xdf), each followed by a space character' => [\n implode(' ', range(\"\\xC0\", \"\\xDF\")) . ' ',\n str_repeat(' ', 32),\n ],\n '3.2.2 All 16 first bytes of 3-byte sequences (0xe0-0xef), each followed by a space character' => [\n implode(' ', range(\"\\xE0\", \"\\xEF\")) . ' ',\n str_repeat(' ', 16),\n ],\n '3.2.3 All 8 first bytes of 4-byte sequences (0xf0-0xf7), each followed by a space character' => [\n implode(' ', range(\"\\xF0\", \"\\xF7\")) . ' ',\n str_repeat(' ', 8),\n ],\n '3.2.4 All 4 first bytes of 5-byte sequences (0xf8-0xfb), each followed by a space character' => [\n implode(' ', range(\"\\xF8\", \"\\xFB\")) . ' ',\n str_repeat(' ', 4),\n ],\n '3.2.5 All 2 first bytes of 6-byte sequences (0xfc-0xfd), each followed by a space character' => [\n implode(' ', range(\"\\xFC\", \"\\xFD\")) . ' ',\n str_repeat(' ', 2),\n ],\n ],\n '3.3 Sequences with last continuation byte missing' => [\n '3.3.1 2-byte sequence with last byte missing (U+0000)' => [\n \"\\xC0\",\n '',\n ],\n '3.3.2 3-byte sequence with last byte missing (U+0000)' => [\n \"\\xE0\\x80\",\n '',\n ],\n '3.3.3 4-byte sequence with last byte missing (U+0000)' => [\n \"\\xF0\\x80\\x80\",\n '',\n ],\n '3.3.4 5-byte sequence with last byte missing (U+0000)' => [\n \"\\xF8\\x80\\x80\\x80\",\n '',\n ],\n '3.3.5 6-byte sequence with last byte missing (U+0000)' => [\n \"\\xFC\\x80\\x80\\x80\\x80\",\n '',\n ],\n '3.3.6 2-byte sequence with last byte missing (U-000007FF)' => [\n \"\\xDF\",\n '',\n ],\n '3.3.7 3-byte sequence with last byte missing (U-0000FFFF)' => [\n \"\\xEF\\xBF\",\n '',\n ],\n '3.3.8 4-byte sequence with last byte missing (U-001FFFFF)' => [\n \"\\xF7\\xBF\\xBF\",\n '',\n ],\n '3.3.9 5-byte sequence with last byte missing (U-03FFFFFF)' => [\n \"\\xFB\\xBF\\xBF\\xBF\",\n '',\n ],\n '3.3.10 6-byte sequence with last byte missing (U-7FFFFFFF)' => [\n \"\\xFD\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n ],\n '3.4 Concatenation of incomplete sequences' => [\n \"\\xC0\\xE0\\x80\\xF0\\x80\\x80\\xF8\\x80\\x80\\x80\\xFC\\x80\\x80\\x80\\x80\\xDF\\xEF\\xBF\\xF7\\xBF\\xBF\\xFB\\xBF\\xBF\\xBF\\xFD\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n '3.5 Impossible bytes' => [\n '3.5.1 fe' => [\n \"\\xFE\",\n '',\n ],\n '3.5.2 ff' => [\n \"\\xFF\",\n '',\n ],\n '3.5.3 fe fe ff ff' => [\n \"\\xFE\\xFE\\xFF\\xFF\",\n '',\n ],\n ],\n ],\n '4 Overlong sequences' => [\n '4.1 Examples of an overlong ASCII character' => [\n '4.1.1 U+002F = c0 af' => [\n \"\\xC0\\xAF\",\n '',\n ],\n '4.1.2 U+002F = e0 80 af' => [\n \"\\xE0\\x80\\xAF\",\n '',\n ],\n '4.1.3 U+002F = f0 80 80 af' => [\n \"\\xF0\\x80\\x80\\xAF\",\n '',\n ],\n '4.1.4 U+002F = f8 80 80 80 af' => [\n \"\\xF8\\x80\\x80\\x80\\xAF\",\n '',\n ],\n '4.1.5 U+002F = fc 80 80 80 80 af' => [\n \"\\xFC\\x80\\x80\\x80\\x80\\xAF\",\n '',\n ],\n ],\n '4.2 Maximum overlong sequences' => [\n '4.2.1 U-0000007F = c1 bf' => [\n \"\\xC1\\xBF\",\n '',\n ],\n '4.2.2 U-000007FF = e0 9f bf' => [\n \"\\xE0\\x9F\\xBF\",\n '',\n ],\n '4.2.3 U-0000FFFF = f0 8f bf bf' => [\n \"\\xF0\\x8F\\xBF\\xBF\",\n '',\n ],\n '4.2.4 U-001FFFFF = f8 87 bf bf bf' => [\n \"\\xF8\\x87\\xBF\\xBF\\xBF\",\n '',\n ],\n '4.2.5 U-03FFFFFF = fc 83 bf bf bf bf' => [\n \"\\xFC\\x83\\xBF\\xBF\\xBF\\xBF\",\n '',\n ],\n ],\n '4.3 Overlong representation of the NUL character' => [\n '4.3.1 U+0000 = c0 80' => [\n \"\\xC0\\x80\",\n '',\n ],\n '4.3.2 U+0000 = e0 80 80' => [\n \"\\xE0\\x80\\x80\",\n '',\n ],\n '4.3.3 U+0000 = f0 80 80 80' => [\n \"\\xF0\\x80\\x80\\x80\",\n '',\n ],\n '4.3.4 U+0000 = f8 80 80 80 80' => [\n \"\\xF8\\x80\\x80\\x80\\x80\",\n '',\n ],\n '4.3.5 U+0000 = fc 80 80 80 80 80' => [\n \"\\xFC\\x80\\x80\\x80\\x80\\x80\",\n '',\n ],\n ],\n ],\n '5 Illegal code positions' => [\n '5.1 Single UTF-16 surrogates' => [\n '5.1.1 U+D800 = ed a0 80' => [\n \"\\xED\\xA0\\x80\",\n '',\n ],\n '5.1.2 U+DB7F = ed ad bf' => [\n \"\\xED\\xAD\\xBF\",\n '',\n ],\n '5.1.3 U+DB80 = ed ae 80' => [\n \"\\xED\\xAE\\x80\",\n '',\n ],\n '5.1.4 U+DBFF = ed af bf' => [\n \"\\xED\\xAF\\xBF\",\n '',\n ],\n '5.1.5 U+DC00 = ed b0 80' => [\n \"\\xED\\xB0\\x80\",\n '',\n ],\n '5.1.6 U+DF80 = ed be 80' => [\n \"\\xED\\xBE\\x80\",\n '',\n ],\n '5.1.7 U+DFFF = ed bf bf' => [\n \"\\xED\\xBF\\xBF\",\n '',\n ],\n ],\n '5.2 Paired UTF-16 surrogates' => [\n '5.2.1 U+D800 U+DC00 = ed a0 80 ed b0 80' => [\n \"\\xED\\xA0\\x80\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.2 U+D800 U+DFFF = ed a0 80 ed bf bf' => [\n \"\\xED\\xA0\\x80\\xED\\xBF\\xBF\",\n '',\n ],\n '5.2.3 U+DB7F U+DC00 = ed ad bf ed b0 80' => [\n \"\\xED\\xAD\\xBF\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.4 U+DB7F U+DFFF = ed ad bf ed bf bf' => [\n \"\\xED\\xAD\\xBF\\xED\\xBF\\xBF\",\n '',\n ],\n '5.2.5 U+DB80 U+DC00 = ed ae 80 ed b0 80' => [\n \"\\xED\\xAE\\x80\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.6 U+DB80 U+DFFF = ed ae 80 ed bf bf' => [\n \"\\xED\\xAE\\x80\\xED\\xBF\\xBF\",\n '',\n ],\n '5.2.7 U+DBFF U+DC00 = ed af bf ed b0 80' => [\n \"\\xED\\xAF\\xBF\\xED\\xB0\\x80\",\n '',\n ],\n '5.2.8 U+DBFF U+DFFF = ed af bf ed bf bf' => [\n \"\\xED\\xAF\\xBF\\xED\\xBF\\xBF\",\n '',\n ],\n ],\n // noncharacters are allowed according to http://www.unicode.org/versions/corrigendum9.html\n '5.3 Other illegal code positions' => [\n '5.3.1 U+FFFE = ef bf be' => [\n \"\\u{FFFE}\",\n \"\\u{FFFE}\",\n ],\n '5.3.2 U+FFFF = ef bf bf' => [\n \"\\u{FFFF}\",\n \"\\u{FFFF}\",\n ],\n ],\n ],\n ];\n\n $stack = [$tests];\n while ($item = array_pop($stack)) {\n if (isset($item[0])) {\n [$in, $out, $label] = $item;\n $this->assertSame('a' . $out . 'b', Strings::fixUtf8('a' . $in . 'b'), $label);\n } else {\n foreach (array_reverse($item) as $label => $tests) {\n $stack[] = $tests + (isset($tests[0]) ? [2 => $label] : []);\n }\n }\n }\n }", "public static function markFileForCleanup($file, $content_id = null)\n {\n $path = self::h5p()->objectSettings()->getH5PFolder();\n\n if (empty($content_id)) {\n $path .= \"/editor/\";\n } else {\n $path .= \"/content/\" . $content_id . \"/\";\n }\n $path .= $file->getType() . \"s/\" . $file->getName();\n\n $h5p_tmp_file = self::h5p()->contents()->editor()->factory()->newTmpFileInstance();\n\n $h5p_tmp_file->setPath($path);\n\n self::h5p()->contents()->editor()->storeTmpFile($h5p_tmp_file);\n }", "public static function is_bom($str): bool\n {\n /** @noinspection PhpUnusedLocalVariableInspection */\n foreach (self::$BOM as $bom_string => &$bom_byte_length) {\n if ($str === $bom_string) {\n return true;\n }\n }\n\n return false;\n }", "function _remove_v1() {\n if ($this->debug) print($this->debugbeg . \"_remove_v1()<HR>\\n\");\n\n $file = $this->file;\n\n if (! ($f = fopen($file, 'r+b')) ) {\n return PEAR::raiseError( \"Unable to open \" . $file, PEAR_MP3_ID_FNO);\n }\n\n if (fseek($f, -128, SEEK_END) == -1) {\n return PEAR::raiseError( 'Unable to see to end - 128 of ' . $file, PEAR_MP3_ID_RE);\n }\n\n $r = fread($f, 128);\n\n $success = false;\n if ( !PEAR::isError( $this->_decode_v1($r))) {\n $size = filesize($this->file) - 128;\n if ($this->debug) print('size: old: ' . filesize($this->file));\n $success = ftruncate($f, $size);\n clearstatcache();\n if ($this->debug) print(' new: ' . filesize($this->file));\n }\n fclose($f);\n\n if ($this->debug) print($this->debugend);\n return $success;\n }" ]
[ "0.6859319", "0.6698459", "0.63637424", "0.61635953", "0.5933664", "0.5701735", "0.5619509", "0.5535986", "0.5482405", "0.5439231", "0.540613", "0.53998137", "0.53452617", "0.5292144", "0.5219815", "0.5168766", "0.5168082", "0.5163145", "0.5085094", "0.50767064", "0.5047837", "0.49846998", "0.49724737", "0.49563593", "0.49342588", "0.49314743", "0.4928846", "0.48226726", "0.48015893", "0.47923255", "0.47759345", "0.475908", "0.4758876", "0.4758758", "0.46824494", "0.46815518", "0.4655837", "0.4651578", "0.46512264", "0.46445128", "0.464192", "0.46317607", "0.4622397", "0.461299", "0.4588717", "0.45851332", "0.4581176", "0.45441172", "0.45439103", "0.45350242", "0.45116317", "0.4495808", "0.4467286", "0.44613913", "0.445848", "0.44497183", "0.4442484", "0.4437297", "0.43980935", "0.43586245", "0.43452787", "0.4335154", "0.43309492", "0.4323664", "0.43198723", "0.43186218", "0.43154907", "0.43095452", "0.43089765", "0.43050513", "0.43021327", "0.4297169", "0.42921248", "0.42880407", "0.42728135", "0.426715", "0.42639658", "0.42631093", "0.42565697", "0.4247242", "0.42429566", "0.4239761", "0.4239761", "0.4239761", "0.4239761", "0.4239761", "0.4239761", "0.4239761", "0.4235018", "0.42305997", "0.4227952", "0.42197037", "0.42177868", "0.42141354", "0.42099345", "0.42071846", "0.41995755", "0.41978896", "0.4196573", "0.41937146" ]
0.7538135
0
Praized template functions/helpers/tags: individual answer related functions
function pzdc_has_answer() { global $PraizedCommunity; return $PraizedCommunity->tpt_has_answer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function formatQA( $question, $answer ) {\n return \"> {$question}\\n{$answer}\";\n}", "function setup_question($question,$answer){\n $htmlStr = '<p class=\"question\">'.$question.'</p>';\n $htmlStr .= '<p class=\"answer\">'.nl2br($answer).'</p>';\n return $htmlStr;\n}", "public function displayNotAnsweredQuestion()\n {\n\n }", "function questionTemplate($number, $function, $prevPage, $nextPage, $questionsNumber)\n{\n ?>\n <div class=\"page question\" id=\"question<?= $number; ?>\">\n <div class=\"progress-bar\">\n <div class=\"progress-line\" style=\"width: calc(100% / <?= $questionsNumber; ?> * <?= $number; ?>)\">\n <div class=\"progress-value\"><?= $number . \"/\" . $questionsNumber; ?></div>\n </div>\n </div>\n\n <div class=\"content\">\n <h2>Функция</h2>\n <div class=\"function\">\n <?= $function; ?>\n </div>\n\n <div class=\"answers\">\n <div class=\"option\">Как вы отнесетесь к тому, если в приложении будет эта функция?</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-1-1\">Нравится</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-1-2\">Ожидаю этого</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-1-3\">Все равно</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-1-4\">Потерплю</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-1-5\">Не нравится</div>\n </div>\n\n <div class=\"answers\">\n <div class=\"option\">Как вы отнесетесь к тому, если в приложении НЕ будет этой функции?</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-2-1\">Нравится</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-2-2\">Ожидаю этого</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-2-3\">Все равно</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-2-4\">Потерплю</div>\n <div class=\"variant\" data-code=\"<?= $number; ?>-2-5\">Не нравится</div>\n </div>\n\n <div class=\"buttons-bar\">\n <button class=\"link light\" data-href=\"<?= $prevPage; ?>\">Назад</button>\n\n <?php\n if ($number === $questionsNumber) {\n ?>\n <button id=\"submit\">Закончить</button> <?php\n } else {\n ?>\n <button class=\"link\" data-href=\"<?= $nextPage; ?>\">Далее</button> <?php\n }\n ?>\n </div>\n </div>\n </div>\n <?php\n}", "public function getAnswers();", "function _view_answers () {\n\t\t$OBJECT_ID\t\t= $_GET[\"id\"];\n\t\t$OBJECT_NAME\t= \"help\";\n\t\t// Prepare SQL\n\t\t$sql\t\t= \"SELECT * FROM \".db('comments').\" WHERE object_name='\"._es($OBJECT_NAME).\"' AND object_id=\".intval($OBJECT_ID);\n\t\t$order_sql\t= \" ORDER BY add_date DESC\";\n\t\t// Connect pager\n\t\tlist($add_sql, $pages, $total) = common()->divide_pages(str_replace(\"SELECT *\", \"SELECT id\", $sql)/*, $PAGER_PATH, null, $this->NUM_PER_PAGE*/);\n\t\t// Process items\n\t\t$Q = db()->query($sql.$order_sql.$add_sql);\n\t\twhile ($A = db()->fetch_assoc($Q)) {\n\t\t\t$answers_array[$A[\"id\"]] = $A;\n\t\t\t$users_ids[$A[\"user_id\"]] = $A[\"user_id\"];\n\t\t}\n\t\t// Try to get users names\n\t\tif (!empty($users_ids)) {\n\t\t\t$Q = db()->query(\"SELECT * FROM \".db('user').\" WHERE id IN(\".implode(\",\", $users_ids).\")\");\n\t\t\twhile ($A = db()->fetch_assoc($Q)) {\n\t\t\t\t$users_names[$A[\"id\"]] = _display_name($A);\n\t\t\t\t$GLOBALS['verified_photos'][$A[\"id\"]] = $A[\"photo_verified\"];\n\t\t\t}\n\t\t}\n\t\t// Process answers items\n\t\tforeach ((array)$answers_array as $answer_info) {\n\t\t\t// Prepare answer text\n\t\t\t$answer_info[\"text\"] = str_replace(array(\"\\\\\\\\\",\"\\\\'\",\"\\\\\\\"\"), array(\"\\\\\",\"'\",\"\\\"\"), $answer_info[\"text\"]);\n\t\t\t$replace2 = array(\n\t\t\t\t\"need_div\"\t\t\t\t=> intval($i > 0),\n\t\t\t\t\"bg_class\"\t\t\t\t=> !(++$i % 2) ? \"bg1\" : \"bg2\",\n\t\t\t\t\"user_name\"\t\t\t\t=> _prepare_html(!empty($answer_info[\"user_id\"]) ? $users_names[$answer_info[\"user_id\"]] : $answer_info[\"user_name\"]),\n\t\t\t\t\"user_avatar\"\t\t\t=> $answer_info[\"user_id\"] ? _show_avatar($answer_info[\"user_id\"], $users_names[$answer_info[\"user_id\"]], 1, 0) : \"\",\n\t\t\t\t\"user_profile_link\"\t\t=> $answer_info[\"user_id\"] ? \"./?object=account&user_id=\".$answer_info[\"user_id\"] : \"\",\n\t\t\t\t\"user_email_link\"\t\t=> _email_link($answer_info[\"user_id\"]),\n\t\t\t\t\"add_date\"\t\t\t\t=> _format_date($answer_info[\"add_date\"], \"long\"),\n\t\t\t\t\"answer_text\"\t\t\t=> $this->_format_text($answer_info[\"text\"]),\n\t\t\t\t\"edit_link\"\t\t\t\t=> \"./?object=\".$_GET[\"object\"].\"&action=edit_answer&id=\".$answer_info[\"id\"]._add_get(array(\"page\")),\n\t\t\t\t\"delete_link\"\t\t\t=> \"./?object=\".$_GET[\"object\"].\"&action=delete_answer&id=\".$answer_info[\"id\"]._add_get(array(\"page\")),\n\t\t\t\t\"reput_text\"\t\t\t=> is_object($REPUT_OBJ) ? $REPUT_OBJ->_show_for_user($answer_info[\"user_id\"], $users_reput_info[$answer_info[\"user_id\"]]) : \"\",\n\t\t\t);\n\t\t\t$items .= tpl()->parse($_GET[\"object\"].\"/answers_item\", $replace2);\n\t\t}\n\t\t// Process main template\n\t\t$replace = array(\n\t\t\t\"answers\"\t\t\t=> $items,\n\t\t\t\"pages\"\t\t\t\t=> $pages,\n\t\t\t\"num_answers\"\t\t=> intval($total),\n\t\t\t\"add_answer_form\"\t=> $this->add_answer(),\n\t\t);\n\t\treturn tpl()->parse($_GET[\"object\"].\"/answers_main\", $replace);\n\t}", "function displayValue(\\Jazzee\\Entity\\Answer $answer);", "function getElementAnswers($input);", "function pzdc_answer_content($echo = TRUE) {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_answer_content($echo);\n}", "function learn_press_single_quiz_questions() {\n\t\tlearn_press_get_template( 'content-quiz/questions.php' );\n\t}", "function bl_seo_faq( $atts, $content = null) {\r\n\t\t\t$content = apply_filters('the_content', $content);\r\n\r\n\t\t\t$origContent = $content;\r\n\r\n\t\t\t$content = $this->cleanString($content);\r\n\r\n\t\t\t$attribs = shortcode_atts( array(\r\n\t\t\t\t'question_class' => '',\r\n\t\t\t\t'answer_class' => '',\r\n\t\t\t\t'wrapper_class' => '',\r\n\t\t\t), $atts );\r\n\r\n\r\n\t\t\t$wrapperDiv = 'div';\r\n\t\t\t$wrapperClass = $attribs['wrapper_class'];\r\n\t\t\t$idx = stripos($attribs['wrapper_class'],\".\");\r\n\t\t\tif ($idx) {\r\n\t\t\t\t$wrapperDiv = substr( $attribs['wrapper_class'], 0, $idx );\r\n\t\t\t\t$wrapperClass = substr( $attribs['wrapper_class'], ($idx+1), strlen($attribs['wrapper_class'])-($idx+1) );\r\n\t\t\t}\r\n\r\n\t\t\t$questionDiv = 'div';\r\n\t\t\t$questionClass = $attribs['question_class'];\r\n\t\t\t$idx = stripos($attribs['question_class'],\".\");\r\n\t\t\tif ($idx) {\r\n\t\t\t\t$questionDiv = substr( $attribs['question_class'], 0, $idx );\r\n\t\t\t\t$questionClass = substr( $attribs['question_class'], ($idx+1), strlen($attribs['question_class'])-($idx+1) );\r\n\t\t\t}\r\n\r\n//fb_log($questionDiv.\"|\".$questionClass);\r\n\r\n\t\t\t$answerDiv = 'div';\r\n\t\t\t$answerClass = $attribs['answer_class'];\r\n\t\t\t$idx = stripos($attribs['answer_class'],\".\");\r\n\t\t\tif ($idx) {\r\n\t\t\t\t$answerDiv = substr( $attribs['answer_class'], 0, $idx );\r\n\t\t\t\t$answerClass = substr( $attribs['answer_class'], ($idx+1), strlen($attribs['answer_class'])-($idx+1) );\r\n\t\t\t}\r\n\r\n//fb_log($answerDiv.\"|\".$answerClass);\r\n\r\n\t\t\tif ($this->startsWith($content,'</p>')) {\r\n\t\t\t\t$content = substr($content,4,strlen($content)-4);\r\n\t\t\t}\r\n\t\t\tif ($this->endsWith($content,'<p>')) {\r\n\t\t\t\t$content = substr($content,0,strlen($content)-3);\r\n\t\t\t}\r\n//fb_log($content);\r\n\r\n\t\t\tif ( strlen($content) > 0 ) {\r\n\t\t\t\t$doc = new DOMDocument();\r\n\t\t\t\t@$doc->loadHTML($content);\r\n\r\n\t\t\t\t// questions and answers\r\n\t\t\t\t$questions = array();\r\n\t\t\t\t$answers = array();\r\n\r\n\t\t\t\t// Get the questions\r\n\t\t\t\t$xpath = new DOMXpath($doc);\r\n\t\t\t\t$query = '//'.$questionDiv.'[@class=\"' . $questionClass . '\"]';\r\n//fb_log($query);\r\n\t\t\t\t$wrappers = $xpath->query($query);\r\n\r\n\t\t\t\tforeach($wrappers as $wrapper) {\r\n\t\t\t\t\tarray_push($questions,$wrapper->nodeValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Get the answers\r\n\t\t\t\t$xpath = new DOMXpath($doc);\r\n\t\t\t\t$query = '//'.$answerDiv.'[@class=\"' . $answerClass . '\"]';\r\n\t\t\t\t//fb_log($query);\r\n\t\t\t\t$wrappers = $xpath->query($query);\r\n\r\n\t\t\t\tforeach($wrappers as $wrapper) {\r\n\t\t\t\t\tarray_push($answers,$wrapper->nodeValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$q_count = count($questions);\r\n\t\t\t$a_count = count($answers);\r\n\r\n\t\t\tif ($q_count == $a_count) {\r\n\t\t\t\t// We've got matching lists of questions and answers, so now construct the JSON-LD\r\n\t\t\t\t$retHtml = '<script type=\"application/ld+json\"> {\r\n\t\t\t\t\t\"@context\": \"https://schema.org\",\r\n\t\t\t\t\t\"@type\": \"FAQPage\",\r\n\t\t\t\t\t\"mainEntity\": [';\r\n\r\n\t\t\t\t\tfor ($idx = 0; $idx < $q_count; $idx++) {\r\n\t\t\t\t\t\t$retHtml .= '{\r\n\t\t\t\t\t\t\t\"@type\": \"Question\",\r\n\t\t\t\t\t\t\t\"name\": \"' . htmlentities( $questions[$idx] ) . '\",\r\n\t\t\t\t\t\t\t\"acceptedAnswer\": {\r\n\t\t\t\t\t\t\t\t\"@type\": \"Answer\",\r\n\t\t\t\t\t\t\t\t\"text\": \"' . htmlentities( $answers[$idx] ) . '\"\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\tif ( $this->endsWith($retHtml, ',') ) {\r\n\t\t\t\t\t\t$retHtml = substr($retHtml, 0, (strlen($retHtml)-1)) ;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t$retHtml .= ']} </script>';\r\n\t\t\t}\r\n\r\n\t\t\t// Make sure you return the SEO markup nd the original content\r\n\t\t\treturn $retHtml.$origContent;\r\n\t\t}", "function render_text_question($label, $input, $additionaltext=\"\", $numeric=false, $extra=\"\", $current=\"\")\n {\n\t?>\n\t<div class=\"Question\" id = \"pixelwidth\">\n\t\t<label><?php echo $label; ?></label>\n\t\t<div>\n\t\t<?php\n\t\techo \"<input name=\\\"\" . $input . \"\\\" type=\\\"text\\\" \". ($numeric?\"numericinput\":\"\") . \"\\\" value=\\\"\" . $current . \"\\\"\" . $extra . \"/>\\n\";\n\t\t\t\n\t\techo $additionaltext;\n\t\t?>\n\t\t</div>\n\t</div>\n\t<div class=\"clearerleft\"> </div>\n\t<?php\n\t}", "function learn_press_single_quiz_question() {\n\t\tlearn_press_get_template( 'content-quiz/content-question.php' );\n\t}", "function ipal_get_answers($question_id){\r\n\tglobal $ipal;\r\n\tglobal $DB;\r\n\tglobal $CFG;\r\n\t$line=\"\";\r\n\t$answers=$DB->get_records('question_answers',array('question'=>$question_id));\r\n\t\t foreach($answers as $answers){\r\n\t\t\t $line .= $answers->answer;\r\n\t\t\t $line .= \"&nbsp;\";\r\n\t\t }\r\n\treturn($line);\r\n}", "function injectAnswers($string, $original, $project, &$warnings=null) {\n // each warning displayed. This prevents repeat rendering.\n if (is_null($warnings)) {\n $warnings = array();\n }\n $string = preg_replace(\n '|\\[--box\\|(?<name>\\w+)--](.*?)\\[--endbox--]|s',\n \"\",\n $string\n );\n\n $tmplb = TwigManager::getInstance()->load(\"project/recap_fields.html\");\n\n return preg_replace_callback('/\\[--(.*?)\\--]/',\n function ($matches) use ($original, $project, $tmplb, &$warnings) {\n $parts = explode('|', $matches[1]);\n\n $out = \"\";\n if (substr($parts[0], 0, 15) == \"multiple-answer\") {\n $multiparts = explode('-', $parts[0]);\n $multipart = array_pop($multiparts);\n $out = $tmplb->renderBlock(\"multianswer\", array(\n 'original' => $original,\n 'multipart' => $multipart,\n 'parts' => $parts\n ));\n $critname = \"multianswer-\" . $multipart;\n } elseif ($parts[0] == 'customform') {\n $out = customform($parts[1], $original, $project, true);\n } else {\n\n switch ($parts[0]) {\n case \"prev\":\n case \"box\":\n case \"endbox\":\n case \"choicebutton\":\n case \"choicepanel\":\n case \"endchoicepanel\":\n return \"\";\n break;\n case \"answer\":\n $out = $tmplb->renderBlock('answer', array('answer' => $original['answer']));\n $critname = \"answer\";\n break;\n case \"radio\":\n if ($original[$parts[1]] == $parts[2]) {\n $out = $tmplb->renderBlock('radio', array('parts' => $parts));\n }\n $critname = $parts[1];\n break;\n case \"check\":\n if (@$original[$parts[1]]) {\n $out = $tmplb->renderBlock('check', array('parts' => $parts));\n }\n $critname = $parts[1];\n break;\n case \"array\":\n $out = $tmplb->renderBlock('array', array('answers' => $original[$parts[1]], 'name' => $parts[1]));\n $critname = $parts[1];\n break;\n default:\n $out = $tmplb->renderBlock('default', array('name' => $parts[1], 'answer' => $original[$parts[1]]));\n $critname = $parts[1];\n break;\n }\n }\n foreach($warnings as &$warn) {\n foreach ($warn['criteria'] as $criterion) {\n if ($criterion['name'] == $critname) {\n if (!@$warn['done']) {\n $warn['done'] = 1;\n $out .= $tmplb->renderBlock('warning', array('warn' => $warn, 'name' => $critname));\n }\n break;\n }\n }\n }\n return $out;\n },\n $string\n );\n }", "function correctAnswerWithTypo() {\n\t}", "public function render_answer() {\n // TODO: This should be refactored\n $seq = optional_param('seq',0, PARAM_INT);\n $this->set_var('seq', $seq);\n\n try { \n $answers = array();\n if(empty($_POST['answers'])) {\n throw new Exception('Bạn chưa chọn đáp án trả lời!');\n } else {\n $answers = $_POST['answers'];\n }\n \n $this->_log->log(array(__CLASS__,__FUNCTION__,'$time='.$seq,'$answers='. json_encode($answers)));\n \n if(!isset($_SESSION['ma_quiz']['questions'][$seq])) {\n redirect('/mod/rtw/view.php?id='.$this->course_module->id.'&c=ma_quiz&a=question&seq='.$seq+1,'Câu hỏi không tồn tại, đang tải câu hỏi tiếp theo...',1);\n }\n \n $question = $_SESSION['ma_quiz']['questions'][$seq]; \n if(!isset($question->show_time)) {\n throw new Exception();\n }\n \n $now = new DateTime();\n $remain_seconds = date_utils::getSecondsBetween(new DateTime($question->show_time), $now);\n if($remain_seconds <= 0) { \n $error_message = 'Câu hỏi đã hết thời gian trả lời!';\n throw new Exception();\n }\n\n $is_corrected = $this->check_answers($question, $answers);\n \n if ($is_corrected) {\n $point = 1;\n $coin = 1;\n }\n else {\n $point = 0;\n $coin = 0;\n }\n \n $data_update = array('submit_time' => $now->format(date_utils::$formatSQLDateTime));\n \n if($point == 1) {\n // Update coin and experience\n $coin_id = player::getInstance()->change_coin($question->game_player_id, $coin);\n $experience_id = player::getInstance()->incrExp($question->game_player_id, $coin);\n $data_update['is_correct'] = 1;\n $data_update['coin_id'] = $coin_id;\n $data_update['experience_id'] = $experience_id;\n $this->set_var('change_coin', $coin);\n } \n // update user answer\n $data_update['user_answer'] = json_encode($answers);\n\n \n $style = '';\n $this->set_var('point', $point);\n $this->set_var('style', $style);\n $this->set_var('correct_answers', $this->get_correct_answers($question));\n game_ma_quiz::getInstance()->update($question->game_ma_quiz_id, $data_update);\n \n unset($_SESSION['ma_quiz']['questions'][$seq]);\n $this->doRender('result.php');\n \n } catch (Exception $e) {\n $this->_log->log($e, 'error');\n $error_message = $e->getMessage() ? $e->getMessage() : 'Hệ thống đang bận, vui lòng thử lại sau';\n $this->set_var('error_message', $error_message);\n $this->doRender('error.php');\n }\n }", "function display_short_answer_form($question_num){\r\n include(\"variables.inc\");\r\n\tif($question_num == 0) $question_num = 1;\r\n echo(\"\\t<TABLE WIDTH=\\\"$table_width\\\">\\n\");\r\n echo(\"\\t\\t<TR>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"50\\\"><P>\" . $question_num . \")</P></TD>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"580\\\"> \\n\\t\\t\\t\\t\\n\");\r\n echo(\"\\t\\t\\t\\t<INPUT TYPE=\\\"text\\\" NAME=\\\"question_A\\\" SIZE=\\\"85\\\">\\n\");\r\n echo(\"\\t\\t\\t</TD>\\n\");\r\n echo(\"\\t\\t</TR>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"50\\\">Solution:</TD>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"580\\\"> \\n\\t\\t\\t\\t\\n\");\r\n echo(\"\\t\\t\\t\\t<TEXTAREA NAME=\\\"answer_A\\\" cols=\\\"65\\\" rows=\\\"10\\\"></textarea>\\n\");\r\n echo(\"\\t\\t\\t</TD>\\n\");\r\n echo(\"\\t\\t</TR>\\n\");\r\n echo(\"\\t\\t<TD COLSPAN=\\\"2\\\"></TD>\\n\");\r\n echo(\"\\t\\t</TR>\\n\");\r\n echo(\"\\t</TABLE>\\n\"); \r\n}", "public function answer() {\n\n\t\t/**\n\t\t * Fires right before giving the answer.\n\t\t */\n\t\tdo_action( self::ACTION );\n\n\t\t/**\n\t\t * Filters the answer.\n\t\t *\n\t\t * @param string $answer The answer.\n\t\t */\n\t\treturn (string) apply_filters( self::FILTER, '42' );\n\t}", "function learn_press_single_quiz_result() {\n\t\tlearn_press_get_template( 'content-quiz/result.php' );\n\t}", "function answer()\r\n {\r\n //option 1) check for already defined\r\n if (strlen($this->Answer)) {\r\n return $this->Answer;\r\n }\r\n\r\n $http = eZHTTPTool::instance();\r\n $prefix = eZSurveyType::PREFIX_ATTRIBUTE;\r\n\r\n //option 2) check for answer in $_POST (trick from processViewAction or normal post)\r\n $postSurveyAnswer = $prefix . '_ezsurvey_answer_' . $this->ID . '_' . $this->contentObjectAttributeID();\r\n if ($http->hasPostVariable($postSurveyAnswer) && strlen($http->postVariable($postSurveyAnswer))) {\r\n $surveyAnswer = $http->postVariable($postSurveyAnswer);\r\n\r\n return $surveyAnswer;\r\n }\r\n\r\n return $this->Default;\r\n }", "function showAnswers()\n\t{\n\t\tif($this->TotalAnswers != 1){$s = 's';}else{$s = '';} #add 's' only if NOT one!!\n\t\techo \"<em>[\" . $this->TotalAnswers . \" answer\" . $s . \"]</em> \"; \n\t\tforeach($this->aAnswer as $answer)\n\t\t{#print data for each\n\t\t\techo \"<em>(\" . $answer->AnswerID . \")</em> \";\n\t\t\techo $answer->Text . \" \";\n\t\t\tif($answer->Description != \"\")\n\t\t\t{#only print description if not empty\n\t\t\t\techo \"<em>(\" . $answer->Description . \")</em>\";\n\t\t\t}\n\t\t}\n\t\tprint \"<br />\";\n\t}", "function ipal_display_student_interface(){\r\n\tglobal $DB;\r\n\tipal_java_questionUpdate();\r\n\t$priorresponse = '';\r\n\tif(isset($_POST['answer_id'])){\r\n\t if($_POST['answer_id'] == '-1'){\r\n\t \t$priorresponse = \"\\n<br />Last answer you submitted: \".strip_tags($_POST['a_text']);\r\n\t }\r\n\t else\r\n\t {\r\n\t $answer_id = $_POST['answer_id'];\r\n\t\t $answer = $DB->get_record('question_answers', array('id'=>$answer_id));\r\n\t\t //$answer = $DB\r\n\t\t $priorresponse = \"\\n<br />Last answer you submitted: \".strip_tags($answer->answer);\r\n\t }\r\n\t ipal_save_student_response($_POST['question_id'],$_POST['answer_id'],$_POST['active_question_id'],$_POST['a_text']);\r\n\t}\r\n echo $priorresponse;\r\n ipal_make_student_form();\t\r\n}", "function item($action, $label, $detail, $help) {\n echo \"<tr><td width=27><input type=radio name=action value=$action></td>\n<td width=22><a href=\\\"#\\\" onClick=\\\"displayhelp('$help')\\\" onMouseOut=\\\"hidehelp('$help')\\\">\n<img src=\\\"images/button_question.gif\\\" width=18 height=18 align=middle border=0></a></td>\n<td align=left><span class=actiontext>$label</span>\";\n \tif ($detail) echo \" <span class=subaction>$detail</span>\";\n \techo \"</td></tr>\\n\";\n}", "function listPrereqs() {\n // $answer = \"<ul class='finish'>\";\n $answer = \"\";\n if(isset($_POST['HTML'])) {\n $answer .= \"<li>HTML</li>\";\n }\n if(isset($_POST['CSS'])) {\n $answer .= \"<li>CSS</li>\";\n }\n // $answer .= \"</ul>\";\n return $answer;\n}", "public function OutputAnswer($userid = 0)\n\t{\tob_start();\n\t\tif ($this->details['qanswer'])\n\t\t{\techo '<div class=\"qanswerText\">', stripslashes($this->details['qanswer']), '</div>';\n\t\t}\n\t\tif ($mmlist = $this->GetMultiMedia())\n\t\t{\tforeach ($mmlist as $mm_row)\n\t\t\t{\t$mm = new Multimedia($mm_row);\n\t\t\t\techo '<div class=\"qanswerMM\">', $mm->Output(635, 380), '</div>';\n\t\t\t}\n\t\t}\n\t\t$comment = new StudentComment();\n\t\t$comments = new StudentComments('askimamquestions', $this->id);\n\t\tif ($this->CommentsOpen())\n\t\t{\techo '<div id=\"yourReviewContainer\">', $comment->CreateForm($this->id, 'askimamquestions', $userid > 0), '</div><div class=\"clear\"></div>';\n\t\t} else\n\t\t{\techo '<p>This question is now closed to further comments.</p>';\n\t\t}\n\t\techo '<div id=\"prodReviewListContainer\">', $comments->OutputList(2), '</div>';\n\t\treturn ob_get_clean();\n\t}", "function tag($post_id,$Cookie,$ua,$idx,$idx2,$idx3,$idx4,$idx5,$idx6,$idx7,$idx8,$idx9,$idx10,$idx11,$idx12,$idx13,$idx14){\r\n $caption = \"@$idx | @$idx2 | @$idx3 | @$idx4 | @$idx5 | @$idx6 | @$idx7 | @$idx8 | @$idx9 | @$idx10 | @$idx11 | @$idx12 | @$idx13 | @$idx14 \";\r\n $caption = preg_replace(\"/\\r|\\n/\", \"\", $caption);\r\n $url= 'media/'.$post_id.'/edit_media/';\r\n $data= hook('{\"media_id\":\"'.$post_id.'\",\"caption\":\"'.trim($caption).'\"}');\r\n $action = request(1,$ua,$url,$Cookie,$data) ;\r\n return $action[1];\r\n}", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "function pzdc_answer_permalink($echo = TRUE) {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_attribute_helper('answer', 'permalink', $echo);\n}", "function sensei_custom_lesson_quiz_text () {\n\t$text = \"Report What You Have Learned\";\n\treturn $text;\n}", "function gtags_show_tags_chooser(){\n\t?>\n\t<span class=\"fr\">\n\t\tSuggestions : <span class=\"highlight etiquette\"><?php echo gtags_show_tags_in_add_form(); ?></span>\n\t</span>\n\t<?php \n}", "public function answer()\n {\n $answer = \\App\\Answer::orderby('created_at', 'desc')->get();\n return view('answer.get', [\n 'answers' => $answer,\n ]);\n }", "function formatNewTextFRAnswer() {\n $format_string = \"\";\n $format_string .= \"<p class='answer'><strong>Answer: </strong> \";\n $format_string .= \"<input type='text' name='answer' id='editAnswerText'></input> </p>\";\n \n return $format_string;\n}", "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function displayTheQuestions($questions) {\n\tif (count($questions) > 0) {\n\t\tforeach ($questions as $key => $value) {\n\t\t\techo \"<b>$value[0]</b><br/><br/>\";\n\t\t\t\n\t\t\t// Break the choices appart into a choice array\n\t\t\t$choices = explode(\",\",$value[1]);\n\t\t\t\n\t\t\t// For each choice, create a radio button as part of that questions radio button group\n\t\t\t// Each radio will be the same group name (in this case the question number) and have\n\t\t\t// a value that is the first letter of the choice.\n\t\t\t\n\t\t\tforeach($choices as $value) {\n\t\t\t\t$letter = substr(trim($value),0,1);\n\t\t\t\techo \"<input type=\\\"radio\\\" name=\\\"$key\\\" value=\\\"$letter\\\">$value<br/>\";\n\t\t\t}\n\t\t\t\n\t\t\techo \"<br/>\";\n\t\t}\n\t}\n\telse { echo \"No questions to display.\"; }\n}", "function writequestion($question) {\n /// must be overidden\n\n echo \"<p>This quiz format has not yet been completed!</p>\";\n\n return NULL;\n }", "private function extractQuestions(){\n $this->selectQuestions();\n $num=mysqli_num_rows($this->arrResultQuestions);\n for($i=0; $i<$num; $i++):\n $row=mysqli_fetch_object($this->arrResultQuestions);\n $misc=new misc();\n $fromWho=$misc->singleSelection('username', 'users', 'user_id', '=', $row->user_id);\n ?>\n <article class=\"homePageQuestions homePageArticle<?php echo $i; ?>\">\n <h3 class=\"homePageQuestionHeading\"><a href=\"?questionBody=<?php echo $row->post_id; ?>\"><?php echo $row->name; ?></a></h3>\n <span class=\"homePageQuestionAddFrom\"><span class=\"glyphicon glyphicon-user\"></span><a href=\"?user=<?php echo $row->user_id; ?>\"><?php echo $fromWho; ?></a></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-time\"></span><?php echo date('d.m.Y в H:i', $row->timeadded); ?></span>\n <span class=\"homePageQuestionAddTime\"><span class=\"glyphicon glyphicon-tag\"></span><?php echo $this->selectCategory($row->cat_id); ?></span>\n <span class=\"homePageQuestionVisits\"><?php echo $row->visits ?> Показвания</span>\n <?php\n $this->showingQuestionsFooter($row->lastanswered, $row->lastanswer, $row->post_id);\n ?>\n </article>\n <?php\n endfor;\n }", "function wpgnv_create_ideas_display() {\n global $post;\n\n $returner = \"<div class='row'>\";\n $returner .= \"<div class='idea sixteen columns alpha omega border-radius-4 box-shadow-5-light'>\";\n\n $returner .= \"<div class='three columns alpha'><div class='score'>\";\n $returner .= \"<span class='info'>SCORE</span>\";\n $upvotes = intval( get_post_meta( $post->ID, 'upvotes', true ) );\n $downvotes = intval( get_post_meta( $post->ID, 'downvotes', true ) );\n $total = $upvotes - $downvotes;\n update_post_meta( $post->id, 'total-vote', $total, true );\n\n if ( (int) $total > 0 ) {\n $votes_class = \"positive\";\n } elseif ( (int)$total < 0 ) {\n $votes_class = \"negative\";\n } else {\n $votes_class = \"neutral\";\n }\n\n $returner .= \"<span class='total $votes_class' id='total-$post->ID'>$total</span>\";\n $returner .= \"</div></div><!-- end .score -->\";\n\n $returner .= \"<div class='eleven columns'><div class='title'>\";\n $returner .= \"<span class='info'>IDEA</span>\";\n $returner .= '<span class=\"text\">' . get_the_title() . '</span>';\n $returner .= \"</div></div><!-- end .title -->\";\n\n\t//if ( is_user_logged_in() ) {\n\t$returner .= \"<div class='one columns omega'><div class='vote'>\";\n\t\t$returner .= \"<div id='upvote' postID='$post->ID'>\";\n\t\t$returner .= \"</div><!-- end #upvote -->\";\n\t\t$returner .= \"<div id='downvote' postID='$post->ID'>\";\n\t\t$returner .= \"</div>\";\n\t\t$returner .= \"</div></div><!-- end .vote -->\";\n\t//} else {\n\t//\t$returner .= \"<div style='padding:5px;'>Login or Register to Vote</div>\";\n\t//}\n\n $returner .= \"</div><!-- end .idea -->\";\n $returner .= \"</div><!-- end .row -->\";\n\n return $returner;\n}", "private function printAnswerPage() {\n\t\t$correctVocabulary = 0;\n\t\t$wrongVocabulary = 1;\n\t\tinclude ('html/vocabularyAnswer.php');\n\t}", "function doTagStuff(){}", "function writequestion( $question ) {\n\t // question reflects database fields for general question and specific to type\n\t\n\t // initial string;\n\t $expout = \"\";\n\t\n\t // add comment\n\t $expout .= \"// question: $question->id \\n\";\n\n\t if ($question->id_category != \"\"){\n\t $expout .= \"\\$CATEGORY:$question->id_category\\n\";\n\t }\n\t\t\n\t // get question text format\n\t /*$textformat = $question->textformat;\n\t $question->text = \"\";\n\t if ($textformat!=FORMAT_MOODLE) {\n\t $question->text = text_format_name( (int)$textformat );\n\t $question->text = \"[$question->text]\";\n\t }*/\n\t $qtext_format = \"[\".$question->qtype.\"]\";\n\t // output depends on question type\n\t switch($question->qtype) {\n\t\t\tcase 'category' : {\n\t\t\t\t// not a real question, used to insert category switch\n\t\t\t\t$expout .= \"\\$CATEGORY: $question->category\\n\"; \n\t\t\t};break;\n\t\t\tcase 'title' : {\n\t\t\t\tif($question->prompt != '') $expout .= '::'.$this->repchar($question->prompt).'::';\n\t\t\t\t$expout .= $qtext_format;\n\t\t\t\t$expout .= $this->repchar( $question->quest_text);\n\t\t\t};break;\n\t\t case 'extended_text' : {\n\t\t $expout .= '::'.$this->repchar($question->prompt).'::';\n\t\t $expout .= $qtext_format;\n\t\t $expout .= $this->repchar( $question->quest_text);\n\t\t $expout .= \"{}\\n\";\n\t\t };break;\n\t\t case 'truefalse' : {/*\n\t\t $trueanswer = $question->options->answers[$question->options->trueanswer];\n\t\t $falseanswer = $question->options->answers[$question->options->falseanswer];\n\t\t if ($trueanswer->fraction == 1) {\n\t\t $answertext = 'TRUE';\n\t\t $right_feedback = $trueanswer->feedback;\n\t\t $wrong_feedback = $falseanswer->feedback;\n\t\t } else {\n\t\t $answertext = 'FALSE';\n\t\t $right_feedback = $falseanswer->feedback;\n\t\t $wrong_feedback = $trueanswer->feedback;\n\t\t }\n\t\t\n\t\t $wrong_feedback = $this->repchar($wrong_feedback);\n\t\t $right_feedback = $this->repchar($right_feedback);\n\t\t $expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\".$this->repchar( $answertext );\n\t\t if ($wrong_feedback) {\n\t\t $expout .= \"#\" . $wrong_feedback;\n\t\t } else if ($right_feedback) {\n\t\t $expout .= \"#\";\n\t\t }\n\t\t if ($right_feedback) {\n\t\t $expout .= \"#\" . $right_feedback;\n\t\t }\n\t\t $expout .= \"}\\n\";*/\n\t\t }//;break;\n\t\t \n\t\t case 'shortanswer' : {/*\n\t\t $expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t foreach($question->options->answers as $answer) {\n\t\t $weight = 100 * $answer->score_correct;\n\t\t $expout .= \"\\t=%\".$weight.\"%\".$this->repchar( $answer->text ).\"#\".$this->repchar( $answer->comment ).\"\\n\";\n\t\t }\n\t\t $expout .= \"}\\n\";*/\n\t\t }//;break;\n\t\t\tcase 'choice' : {\n\t\t\t\t$expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t\t\t\n\t\t\t\tforeach($question->answers as $answer) {\n\t\t\t\t\tif (($answer->score_correct == 1) || ($answer->score_correct == 0 && $answer->is_correct == 1) ) {\n\t\t\t\t\t\t$answertext = '=';\n\t\t\t\t\t}\n\t\t\t\t\telseif ($answer->score_correct > 1) {\n\t\t\t\t\t\t$export_weight = $answer->score_correct*100;\n\t\t\t\t\t\t$answertext = \"=%$export_weight%\";\n\t\t\t\t\t}\n\t\t\t\t\telseif ($answer->score_correct==0) {\n\t\t\t\t\t\t$answertext = '~';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$export_weight = $answer->score_correct*100;\n\t\t\t\t\t\t$answertext = \"~%$export_weight%\";\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\t\".$answertext.$this->repchar( $answer->text );\n\t\t\t\t\tif ($answer->comment!=\"\") {\n\t\t\t\t\t\t$expout .= \"#\".$this->repchar( $answer->comment );\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\n\";\n\t\t\t\t}\n\t\t\t\t$expout .= \"}\\n\";\n\t\t\t};break;\n\t\t\tcase 'choice_multiple' : {\n\t\t\t\t$expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t\t\t\n\t\t\t\tforeach($question->answers as $answer) {\n\t\t\t\t\tif ($answer->score_correct==1) {\n\t\t\t\t\t\t$answertext = '=';\n\t\t\t\t\t}\n\t\t\t\t\telseif ($answer->score_correct==0) {\n\t\t\t\t\t\t$answertext = '~';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$export_weight = $answer->score_correct*100;\n\t\t\t\t\t\t$answertext = \"~%$export_weight%\";\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\t\".$answertext.$this->repchar( $answer->text );\n\t\t\t\t\tif ($answer->comment!=\"\") {\n\t\t\t\t\t\t$expout .= \"#\".$this->repchar( $answer->comment );\n\t\t\t\t\t}\n\t\t\t\t\t$expout .= \"\\n\";\n\t\t\t\t}\n\t\t\t\t$expout .= \"}\\n\";\n\t\t\t};break;\n\t\t case 'associate' : {\n\t\t\t\t$expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{\\n\";\n\t\t\t\tforeach($question->answers as $i => $subquestion) {\n\t\t\t\t\t$expout .= \"\\t=\".$this->repchar( $subquestion->text ).\" -> \".$this->repchar( $question->extra_info[$i]->text ).\"\\n\";\n\t\t\t\t}\n\t\t\t\t$expout .= \"}\\n\";\n\t\t };break;\n\t\t case NUMERICAL:\n\t\t $expout .= \"::\".$this->repchar($question->prompt).\"::\".$qtext_format.$this->repchar( $question->quest_text ).\"{#\\n\";\n\t\t foreach ($question->options->answers as $answer) {\n\t\t if ($answer->text != '') {\n\t\t $percentage = '';\n\t\t if ($answer->score_correct < 1) {\n\t\t $pval = $answer->score_correct * 100;\n\t\t $percentage = \"%$pval%\";\n\t\t }\n\t\t $expout .= \"\\t=$percentage\".$answer->text.\":\".(float)$answer->tolerance.\"#\".$this->repchar( $answer->comment ).\"\\n\";\n\t\t } else {\n\t\t $expout .= \"\\t~#\".$this->repchar( $answer->comment ).\"\\n\";\n\t\t }\n\t\t }\n\t\t $expout .= \"}\\n\";\n\t\t break;\n\t\t case DESCRIPTION:\n\t\t $expout .= \"// DESCRIPTION type is not supported\\n\";\n\t\t break;\n\t\t case MULTIANSWER:\n\t\t $expout .= \"// CLOZE type is not supported\\n\";\n\t\t break;\n\t\t default:\n\t\t \n\t\t\t\treturn false;\n\t\t}\n\t // add empty line to delimit questions\n\t $expout .= \"\\n\";\n\t return $expout;\n\t}", "public function actionQuestionExplanation($question_id, $answered_option) {\n\n $checked_answer = questions::find()\n ->where(['id' => $question_id])\n ->one();\n $explanation = Questions::find()\n ->where(['id' => $question_id])\n ->one();\n $question_explanation = $explanation->explanation;\n\n if ($checked_answer->answer == $answered_option) {\n echo '<div class=\"scrollbar\" id=\"style-1\">';\n echo '<div class=\"force-overflow\">';\n echo '<p class=\"text-center\" style=\"color:#3082ED; padding : 5px; font-size : 16px; background: #C4E5FF; margin-bottom: 0;\"><b> You are correct </b><i class=\"fa fa-thumbs-up\" aria-hidden=\"true\" style = \"color : #3082ED !important;\"></i> </p>';\n echo '<h4 id =\"question_explanation-\" style=\"color: black;padding:0% 2% 1%;font-size: 16px;margin:0;text-align: left;box-sizing: border-box;background: #C4E5FF; height: auto;\"> ' . $question_explanation . ' </h4>';\n echo '</div>';\n echo '</div>';\n } else {\n echo '<div class=\"scrollbar\" id=\"style-1\">';\n echo '<div class=\"force-overflow\">';\n echo '<p class=\"text-center\" style=\"color:#FF0000; padding : 5px; font-size : 16px; background: #C4E5FF; margin-bottom: 0;\"><b> You are wrong </b><i class=\"fa fa-thumbs-down\" aria-hidden=\"true\" style = \"color: #FF0000 !important;\"></i> </p>';\n echo '<h4 id =\"question_explanation-\" style=\"color:black ;padding:0% 2% 1%;font-size: 16px;margin:0;text-align: left;box-sizing: border-box;background: #C4E5FF; height: auto;\"> ' . $question_explanation . ' </h4>';\n echo '</div>';\n echo '</div>';\n }\n }", "function get_post_result($id, $text)\n {\n }", "function get_post_result($id, $text)\n {\n }", "function get_post_result($id, $text)\n {\n }", "public function addansw()\n\t{\n\t\t\n\t\tif(mayEditQuiz())\n\t\t{\n\t\t\tif(isset($_GET['text']) && isset($_GET['right']) && isset($_GET['qid']))\n\t\t\t{\n\t\t\t\t$text = strip_tags($_GET['text']);\n\t\t\t\t$exp = strip_tags($_GET['explanation']);\n\t\t\t\t$right = (int)$_GET['right'];\n\t\t\n\t\t\t\tif(!empty($text) && ($right == 0 || $right == 1 || $right == 2))\n\t\t\t\t{\n\t\t\t\t\tif($id = $this->model->addAnswer($_GET['qid'],$text,$exp,$right))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t\t'status' => 1,\n\t\t\t\t\t\t\t\t'script' => 'pulseInfo(\"Antwort wurde angelegt\");$(\"#answerlist-'.(int)$_GET['qid'].'\").append(\\'<li class=\"right-'.(int)$right.'\">'.jsSafe(nl2br(strip_tags($text))).'</li>\\');$( \"#questions\" ).accordion( \"refresh\" );'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'status' => 1,\n\t\t\t\t\t\t\t'script' => 'pulseError(\"Du solltest einen Text angeben ;)\");'\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "function displayThankYou(){\n?>\n <h1>Multi-page Survey Application</h1>\n <h3>Thank You</h3>\n <p>You've successfully completed this survey!</p>\n <p>- Michelle Estanol</p>\n <?php\n}", "public function chooseFunction(){\n if (isset($this->provided['postLabel'])) {\n echo \"You called the function <b> \".$this->provided['postLabel'].\" </b> if you need to know what this shit does follow it for yourself\n in kikundi/controller/PostController.php <br>\";\n switch($this->provided['postLabel']){\n case 'createProjectPool':\n ProjectController::addProjectPool($this->provided['sessionID'], $this->provided['name'], $this->provided['adminName']);\n setcookie('newCook', '69', 2019-9-11, '/');\n break;\n case 'registerMember':\n $this->joinProjectPool();\n break;\n case 'createProject':\n $this->createProject();\n break;\n case 'addTag':\n TagController::saveTagInDb($this->provided['tag']);\n break;\n case 'checkTag':\n echo \"<h2>All the Tags starting with \".$this->provided['tag'].\"</h2>\";\n var_dump(TagController::searchInDb($this->provided['tag']));\n break;\n case 'joinProjectPool':\n break;\n case 'likeProject':\n $this->likeProject();\n break;\n case 'approve':\n break;\n default:\n echo \"no post with that label found!\";\n }\n } else {\n echo \"You should not be here!\";\n }\n\n }", "function quizbook_shortcode($atts){\n/*\n\techo \"<pre>\";\n\tvar_dump($atts);\n\techo \"</pre>\";\n*/\n\n\t$args = array(\n\t\t'post_type' => 'quiz',\n\t\t'posts_per_page' => $atts['preguntas'],\n\t\t'orderby' => $atts['orden']\n\t);\n\n\t$quizbook = new WP_Query($args);\n\n\t?>\n\t<form action=\"\" name=\"quizbook_enviar\" id=\"quizbook_enviar\">\n\t\t<div id=\"quizbook\" class=\"quizbook\">\n\t\t\t<ul>\n\t\t\t\t<?php while ($quizbook->have_posts()):$quizbook->the_post(); ?>\n\t\t\t\t\t<li>\n\t\t\t\t\t\t<?php the_title('<h2>','</h2>'); ?>\n\t\t\t\t\t\t<?php the_content(); ?>\n\t\t\t\t\t\t<?php \n\n\t\t\t\t\t\t$opciones = get_post_meta( get_the_ID());\n/*\n\n\t\t\t\t\t\t$ejemplo = strpos(\"I love php, I love php too!\",\"php\");\n\t\t\t\t\t\techo $ejemplo;\n\n\t\t\t\t\t\tif ($ejemplo === 7) {\n\t\t\t\t\t\t\techo \"esta en siete (7)\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\techo \"no está en siete\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\techo \"<pre>\";\n\t\t\t\t\t\t\tvar_dump($ejemplo);\n\t\t\t\t\t\t\techo \"</pre>\";\n\n\n*/\n\t\t\t\t\t\tforeach ($opciones as $key => $opcion) {\n\t\t\t\t\t\t\t$resultado = quizbook_filtrar_preguntas($key);\n\n\t\t\t\t\t\t\tif ($resultado === 0) {\n\n\t\t\t\t\t\t\t\t//echo $key;\n\n\t\t\t\t\t\t\t\t$numero = explode('_', $key);\n\n\t\t\t\t\t\t\t\t//echo $numero['2'];\n\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<div id=\"<?php echo get_the_ID() .\":\". $numero['2']; ?>\">\n\t\t\t\t\t\t\t\t\t\t\t<?php echo $opcion['0']; ?>\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<?php /*\n\t\t\t\t\t\t<pre>\n\t\t\t\t\t\t\t<?php var_dump($resultado); ?>\n\t\t\t\t\t\t</pre>\n\t\t\t\t\t\t*/ ?>\n\t\t\t\t\t\t<?php \n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t\techo \"<pre>\";\n\t\t\t\t\t\t\tvar_dump($opciones);\n\t\t\t\t\t\t\techo \"</pre>\";\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\n\t\t\t\t\t</li>\n\t\t\t\t<?php endwhile; wp_reset_postdata(); ?>\n\t\t\t</ul>\n\t\t</div>\n\t\t\n\t</form>\n\n\t<?php\n}", "public function run() {\n $a = new \\App\\Models\\Answer();\n $a->text = 'Scripting Language';\n $a->is_correct = false;\n $a->question_id = 1;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Markup Language';\n $a->is_correct = true;\n $a->question_id = 1;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Programming Language';\n $a->is_correct = false;\n $a->question_id = 1;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Network Protocol';\n $a->is_correct = false;\n $a->question_id = 1;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<html>';\n $a->is_correct = false;\n $a->question_id = 2;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<!doctype html>';\n $a->is_correct = true;\n $a->question_id = 2;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<title>';\n $a->is_correct = false;\n $a->question_id = 2;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<head>';\n $a->is_correct = false;\n $a->question_id = 2;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Picture';\n $a->is_correct = false;\n $a->question_id = 3;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Image';\n $a->is_correct = false;\n $a->question_id = 3;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Src';\n $a->is_correct = false;\n $a->question_id = 3;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Img';\n $a->is_correct = true;\n $a->question_id = 3;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Compiler';\n $a->is_correct = false;\n $a->question_id = 4;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Interpreter';\n $a->is_correct = false;\n $a->question_id = 4;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Web Browser';\n $a->is_correct = true;\n $a->question_id = 4;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Server';\n $a->is_correct = false;\n $a->question_id = 4;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<break />';\n $a->is_correct = false;\n $a->question_id = 5;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<nbsp>';\n $a->is_correct = false;\n $a->question_id = 5;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<lb />';\n $a->is_correct = false;\n $a->question_id = 5;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<br />';\n $a->is_correct = true;\n $a->question_id = 5;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<a href=\"http://example.com\">MCQ Sets Quiz</a>';\n $a->is_correct = true;\n $a->question_id = 6;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<http://example.com</a>';\n $a->is_correct = false;\n $a->question_id = 6;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<a name=\"http://example.com\">MCQ Sets Quiz</a>';\n $a->is_correct = false;\n $a->question_id = 6;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'url=\"http://example.com\">MCQ Sets Quiz';\n $a->is_correct = false;\n $a->question_id = 6;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Special binary format';\n $a->is_correct = false;\n $a->question_id = 7;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'Machine language codes';\n $a->is_correct = false;\n $a->question_id = 7;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'ASCII text';\n $a->is_correct = true;\n $a->question_id = 7;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = 'None of above';\n $a->is_correct = false;\n $a->question_id = 7;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<checkbox>';\n $a->is_correct = false;\n $a->question_id = 8;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<input checkbox>';\n $a->is_correct = false;\n $a->question_id = 8;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<input=checkbox>';\n $a->is_correct = false;\n $a->question_id = 8;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<input type=\"checkbox\">';\n $a->is_correct = true;\n $a->question_id = 8;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<heading>';\n $a->is_correct = false;\n $a->question_id = 9;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<head>';\n $a->is_correct = false;\n $a->question_id = 9;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<h1>';\n $a->is_correct = false;\n $a->question_id = 9;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<h6>';\n $a->is_correct = true;\n $a->question_id = 9;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<video src \"URL\"></video>';\n $a->is_correct = false;\n $a->question_id = 10;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<video src=\"URL\"></video>';\n $a->is_correct = true;\n $a->question_id = 10;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<video></video>';\n $a->is_correct = false;\n $a->question_id = 10;\n $a->save();\n\n $a = new \\App\\Models\\Answer();\n $a->text = '<video src:\"URL\"></video>';\n $a->is_correct = false;\n $a->question_id = 10;\n $a->save();\n }", "function learn_press_single_quiz_description() {\n\t\tlearn_press_get_template( 'content-quiz/description.php' );\n\t}", "public function formattedAnswer(): string {\n switch ($this->answer) {\n case 'answer-sleep-time-less-4':\n return 'less than 4 hours';\n case 'answer-sleep-time-4-to-6':\n return 'between 4 and 6 hours';\n case 'answer-sleep-time-6-to-8':\n return 'between 6 and 8 hours';\n case 'answer-sleep-time-8-plus':\n return 'more than 8 hours';\n case 'answer-sleep-quality-excellent':\n return 'excellent';\n case 'answer-sleep-quality-good':\n return 'good';\n case 'answer-sleep-quality-fine':\n return 'fine';\n case 'answer-sleep-quality-bad':\n return 'bad';\n case 'answer-sleep-quality-terrible':\n return 'terrible';\n case 'answer-difficulty-waking-up-very-easy':\n return 'very easy';\n case 'answer-difficulty-waking-up-easy':\n return 'easy';\n case 'answer-difficulty-waking-up-fine':\n return 'fine';\n case 'answer-difficulty-waking-up-difficult':\n return 'difficult';\n case 'answer-difficulty-waking-up-very-difficult':\n return 'very difficult';\n default:\n return '';\n }\n }", "static function drawQuestion($args)\n\t{\n\t\t$currentUserID = get_current_user_id();\n\t\t\n\t\t\n\t\t// Get Defaults\n\t\t$defaults = ekQuiz::$defaults;\n\t\t\n\t\tforeach($args as $key => $value){$$key = $value;} # Turn all atts into variables of Key name\n\t\t\n\t\tif($buttonText==\"\")\n\t\t{\n\t\t\t$buttonText=$defaults['buttonText'];\n\t\t}\n\t\t\n\t\t// Add a text area or not\n\t\t$addTextarea = get_post_meta($questionID, \"addTextarea\", true);\n\t\t\n\t\t//if($correctFeedback==\"\"){$correctFeedback = get_post_meta($questionID, \"correctFeedback\", true);}\n\n\t\t$randomKey = $args['randomKey'];\t\t\n\t\t\n\t\t//$qStr='<div id=\"ek-question-'.$questionID.'-'.$randomKey.'\">';\n\t\t$qStr='<div>';\n\t\t\n\t\t$qStr.= apply_filters('the_content', get_post_field('post_content', $questionID));\n\t\t\n\t\t// Auto Save the response if its a text box\n\t\t$saveResponse=false;\n\t\tif($addTextarea==\"on\")\n\t\t{\n\t\t\t$saveResponse=true;\n\t\t}\n\t\t\n\t\t\n\t\t// Add the Vars to the Args to pass via JSON to ajax function\n\t\t$args['randomKey'] = $randomKey;\n\t\t$args['userID'] = $currentUserID;\n\t\t$args['saveResponse'] = $saveResponse;\n\t\t$args['qType'] = self::$qType;\n\t\t\t\t\t\n\t\t// Create array to pass to JS\n\t\t$passData = htmlspecialchars(json_encode($args));\t\n\t\t\n\t\tif($addTextarea==\"on\")\n\t\t{\n\t\t\n\t\t\t$userResponseArray = ekQuiz_queries::getUserResponse($questionID, $currentUserID);\n\t\t\t$userResponse = stripslashes($userResponseArray['userResponse']);\n\t\t\t//$userResponse = apply_filters('the_content', $userResponseArray['userResponse']);\n\n\t\t\n\t\t\n\t\t\t$editor_settings = array\n\t\t\t(\n\t\t\t\t\"media_buttons\"\t=> false, \n\t\t\t\t\"textarea_rows\"\t=> 6,\n\t\t\t\t\"editor_class\"\t=> \"ek-reflection-editor\",\n\t\t\t\t\"tinymce\"\t\t=> array(\n\t\t\t\t'toolbar1'\t=> 'bold,italic,underline,bullist,numlist,forecolor,undo,redo',\n\t\t\t\t'toolbar2'\t=> ''\n\t\t\t\t)\n\t\t\t);\t\t\t\t\t\n\t\t\t\n\t\t\tob_start();\n\t\t\twp_editor($userResponse, 'reflection_'.$questionID.'-'.$randomKey, $editor_settings);\t\t\n\t\t\t$qStr.= ob_get_contents();\n\t\t\tob_end_clean();\n\t\t}\n\t\t\t\n\t\t\t\t\t\n\t\t// Create blank div for feedback fro this qType. unique to reflection as we don't want to recreate textbox\n\t\t$qStr.='<div id=\"reflectionSavedFeedback_'.$questionID.'-'.$randomKey.'\" class=\"reflectionFeedback\">Entry Saved</div>';\n\t\t$qStr.='<div id=\"reflectionFeedback_'.$questionID.'-'.$randomKey.'\" class=\"reflectionSavedFeebdack\">Entry Saved</div>';\t\t\n\t\t\n\t\t$qStr.='<div class=\"ekQuizButtonWrap\" id=\"ekQuizButtonWrap_'.$questionID.'_'.$randomKey.'\">';\n\t\t$qStr.='<input type=\"button\" value=\"'.$buttonText.'\" class=\"ekQuizButton\" onclick=\"javascript:singleQuestionSubmit(\\''.$passData.'\\')\";/>';\n\t\t$qStr.='</div>';\n\t\t\n\t\t// Hide the Visual Tab\n\t\t$qStr.='\t\t\n\t\t\t<style>\n\t\t\t.wp-editor-tools, .post .wp-editor-tools {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t</style>\n\t\t';\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Close the Question div wrap\n\t\t$qStr.='</div>';\n\t\t\n\t\t\n\t\t\n\t\treturn $qStr;\n\t\n\t\t\n\t\t\n\t\t\n\t}", "public function show(Answers $answers)\n {\n //\n }", "function answerQuestions() {\n $this->layout = 'survey'; // use the more basic survey layout\n if (!$this->request->is('post')) {\n // if there is no data then show the initial view\n $survey = $this->Session->read('Survey.original'); // get the survey being used\n if (empty($survey['Question'])) { // if there are no questions then we don't need to show the question form at all\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n $questions = $survey['Question'];\n $answers = ($this->Session->check('Survey.answers')) ? $this->Session->read('Survey.answers') : array(); // check to see if there are already answers in the session\n $choices = array(); // gather choices here keyed to each question id\n foreach ($questions as &$q) { // go through each question and look to see if there is an answer for it\n $checkId = $q['id'];\n $choices[$checkId] = array();\n if (isset($q['Choice'])) {\n foreach ($q['Choice'] as $choice) {\n $choices[$checkId][$choice['id']] = $choice['value'];\n }\n }\n foreach ($answers as $a) {\n if ($a['question_id'] == $checkId) {\n if ($q['type'] == MULTI_SELECT) {\n $q['answer'] = Set::extract('/id',$a['answer']);\n } else {\n $q['answer'] = $a['answer'];\n }\n break;\n }\n }\n }\n $this->set('questions', $questions); // send questions to the view\n $this->set('choices', $choices); // send choices for questions to the view, ordered for form elements\n } else { // we have form data so process it here\n if (isset($this->request->data['Answer'])) {\n // make sure we have answers in the data set\n $this->Session->write('Survey.answers', $this->request->data['Answer']); // write the answers to the session\n }\n $this->Session->write('Survey.progress', GDTA_ENTRY); // move progress forward and redirect to the runSurvey action\n $this->redirect(array('action' => 'runSurvey'));\n }\n }", "public function question_template() {\n return 'mod_kilman/question_date';\n }", "function status_template($full_name, $id, $status, $img){\n echo \"<div class='post'>\n <!--div that contains the individual post-->\n <div class='postHeader'>\n <img src='images/{$img}' alt='User Image' />\n <h2 class='bold'><a href='#' class='aHoverColorUnderline'>{$full_name}</a><span class='grey'>&nbsp;@{$id}&nbsp;<span class='time'>1h</span></span></h2>\n </div>\n <p>{$status}</p>\n <div class='clearFloat'></div>\n <ul class='postSocialButtons'>\n <!--Piping is used-->\n <li><button aria-label='reply' type='button' class='replyIcon replyCSS' data-id='reply_1'>Reply</button></li>\n </ul>\n <div class='replyCode' role='banner'>\n <noscript>\n <div class='replyBox'>\n <form method='post'>\n <textarea aria-label='yourreply' class='tweetBody' placeholder='Write your reply here'></textarea>\n <div class='flex'>\n <button class='sendButton' type='submit'>Reply</button>\n </div>\n </form>\n </div>\n </noscript>\n </div>\n</div>\";\n}", "public function quicktags()\n\t{\n\t\t/* Output */\n\t\t\\IPS\\Output::i()->title\t\t= \\IPS\\Member::loggedIn()->language()->addToStack( 'quick_tags' );\n\t\t\\IPS\\Output::i()->output \t= \\IPS\\Theme::i()->getTemplate( 'forms' )->quicktagsList();\n\t}", "function ipal_make_instructor_form(){\r\nglobal $ipal;\r\n$myform=\"<form action=\\\"?\".$_SERVER['QUERY_STRING'].\"\\\" method=\\\"post\\\">\\n\";\r\n\t$myform .= \"\\n\";\r\n\t\tforeach(ipal_get_questions() as $items){\r\n$myform .= \"<input type=\\\"radio\\\" name=\\\"question\\\" value=\\\"\".$items['id'].\"\\\" />\";\r\n\r\n$myform .=\"<a href=\\\"show_question.php?qid=\".$items['id'].\"&id=\".$ipal->id.\"\\\" target=\\\"_blank\\\">[question]</a>\";\r\n$myform .= \"<a href=\\\"standalone_graph.php?id=\".$items['id'].\"&ipalid=\".$ipal->id.\"\\\" target=\\\"_blank\\\">[graph]</a>\".$items['question'].\"<br /><br />\\n\";\r\n\t\t}\r\nif(ipal_check_active_question()){\r\n\t$myform .= \"<input type=\\\"submit\\\" value=\\\"Send Question\\\" />\\n</form>\\n\";\r\n}else{\r\n$myform .= \"<input type=\\\"submit\\\" value=\\\"Start Polling\\\" />\\n</form>\\n\";}\r\n\r\n\treturn($myform);\r\n}", "function grade_responses(&$question, &$state, $cmoptions) {\n // We modify the question to look like a numerical question\n $numericalquestion = fullclone($question);\n foreach ($numericalquestion->options->answers as $key => $answer) {\n $answer = $numericalquestion->options->answers[$key]->answer; // for PHP 4.x\n $numericalquestion->options->answers[$key]->answer = $this->substitute_variables_and_eval($answer,\n $state->options->dataset);\n }\n $virtualqtype = $this->get_virtual_qtype();\n return $virtualqtype->grade_responses($numericalquestion, $state, $cmoptions) ;\n }", "public function answers_meta_box() {\n\t\tglobal $post;\n\t\t\n\t\tif ( isset( $_GET['post'] ) )\n\t\t\t$post_ID = (int) $_GET['post'];\n\t\telse\n\t\t\t$post_ID = '';\n\n\t\techo '<input type=\"hidden\" name=\"_lingo_hidden\" id=\"_lingo_hidden\" value=\"1\" />\n\t\t<p>\n\t\t\t<label for=\"_wrong_answers\">' . __( 'Wrong answers', 'lingo' ) . '</label>\n\t\t\t<br />';\n\n\t\t$_wrong_answers = get_post_meta( $post_ID, '_wrong_answers' );\n\t\t$key = 0;\n\t\tif ( is_array( $_wrong_answers ) ) {\n\t\t\tforeach( $_wrong_answers as $key => $answer ) {\n\t\t\t\techo '<input type=\"text\" name=\"_wrong_answers[' . $key . ']\" id=\"_wrong_answers' . $key . '\" value=\"' . $answer . '\" />';\n\t\t\t}\n\t\t}\n\n\t\techo '\n\t\t\t<input type=\"text\" name=\"_wrong_answers[' . ( $key + 1 ) . ']\" id=\"_wrong_answers' . ( $key + 1 ) . '\" value=\"\" />\n\t\t</p>\n\t\t<p>\n\t\t\t<label for=\"_correct_answer\">' . __( 'Correct answer', 'lingo' ) . '</label>\n\t\t\t<br />\n\t\t\t<input type=\"text\" name=\"_correct_answer\" id=\"_correct_answer\" value=\"' . get_post_meta( $post_ID, '_correct_answer', true ) . '\" />\n\t\t</p>';\n\t\n\t}", "public static function answer_question(array $question);", "public function run()\n {\n $i = 1;\n $question = Question::create(\n [\n 'title' => '前端工程师的技术进阶点在哪里?',\n 'description' => <<<'EOT'\n这个问题是一个比较全能的Java工程师提出来的,总结一下大家的回答:\n\n需求变化快,需要良好的复用、可拓展能力,否则动不动重写。\n兼容性问题,需要兼容各种移动设备的各种浏览器。\nCSS非正交,对于绝大多数人来说属于『玄学』。\n\n\n那么问题来了,普通前端工程师的技术进阶突破点在什么地方?\n\n有哪些方向可以突破,以后端为例\n\n全局方向: 做业务整体架构\n深度方向: 做性能调优、高并发、分布式等专业要求很高的领域\n延伸方向: 以Java 为例很多大神转移到大数据、分布式计算这个方面,算是传统Java Web的延伸方向\nEOT\n,\n 'user_id' => $i,\n ]);\n $question->answers()->create([\n 'user_id' => ++$i,\n 'content' => <<<'EOT'\n基于上面这个我个人认为的前提,我觉得前端的技术进阶并不像 Java 那样,对技术本身有很深度的研究,我个人规划更倾向于选择偏业务性的突破点:快速学习技术的能力前端时不时出来很多新东西,然后总是先于当前实现写未来代码,快速学习新事物的能力是最基础的。出来的新东西,能不能快速了解用法、特性、适用场景和底层实现?这是后面的基础。突破方法:对新事物保持好奇而非恐惧和抵触,跳出舒适区掌握学习的方法论,比如先看文档、再跑 Demo、提出问题、源码验证学习一些学习技巧业务抽象能力和技术选型、设计能力一个产品不是一夜建设出来的,但前端可以加速这个过程。使用 Node.js 可以写一个 index.js 文件执行下就跑起来一个各种功能的 Web 服务器,这个时间放在 Java 可能刚用 Spring Boot 创建好项目目录?\nEOT\n ]);\n\n }", "function pzdc_answer_pid($echo = TRUE) {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_attribute_helper('answer', 'pid', $echo);\n}", "public function showResults(){\n $this->extractQuestions();\n }", "function help($id) {\n echo helpHtml($id);\n}", "function answer_status_tags_class($answer)\n {\n if(($answer['has_tags'])) {\n return 'warning';\n }\n\n return '';\n }", "function build_question(array $merge, $mergeInto){\n\tif (count($_SESSION['ef_term_merge']['question']))\n\t{\n\t\tunset($_SESSION['ef_term_merge']['question']);\n\t}\n\n\t$aliasList = retrieve_multiple_url_alias($merge);\n\n\t$mergeIntoUrlAlias = \"select a.alias from url_alias a where a.source LIKE :source\";\n\n\t$mergeIntoUrlAlias = db_query($mergeIntoUrlAlias,array(':source' => 'taxonomy/term/' . $mergeInto->tid))->fetchAll();\n\n\t$question = \"The term/s\";\n\n\t$counter = 0;\n\t$_SESSION['ef_term_merge']['question']['from'] = [];\n\n\tforeach ($merge as $key => $term)\n\n\t{\n\t \t$question = $question . \" <a href='/\" . $aliasList[$counter] . \"' target='_blank'>\" . $term->name . \"</a> (tid: \" . $term->tid . \", taxonomy: \" . \"<a href='/admin/structure/taxonomy/\" . $term->vocabulary_machine_name . \"' target='_blank'>\" . taxonomy_vocabulary_machine_name_load($term->vocabulary_machine_name)->name . \"</a>)\";\n\n\t \t$counter++;\n\n\t\t$_SESSION['ef_term_merge']['question']['from'][] = [\n\t\t\t'name' => $term->name,\n\t\t\t'tid' => $term->tid,\n\t\t\t'taxonomy' => $term->vocabulary_machine_name,\n\t\t];\n\n\n\t}\n\n\t$question = $question . \" is/are going to be merged into <a href='/\" . $mergeIntoUrlAlias[0]->alias .\"' target='_blank'>\" . $mergeInto->name . \"</a> (tid: \" . $mergeInto->tid .\", taxonomy: <a href='/admin/structure/taxonomy/\" . $mergeInto->vocabulary_machine_name .\"' target='_blank'>\" . taxonomy_vocabulary_machine_name_load($mergeInto->vocabulary_machine_name)->name .\"</a>).\";\n\n\t$_SESSION['ef_term_merge']['question']['to'][] = [\n\t\t'name' => $mergeInto->name,\n\t\t'tid' => $mergeInto->tid,\n\t\t'taxonomy' => $mergeInto->vocabulary_machine_name,\n\t];\n\n\treturn $question;\n\n}", "public function getQuestion(): TranslatableMarkup {\n return $this->t(\"Are you sure\");\n }", "public function index()\n {\n /*member variables*/\n $options = \"\";\n $optionValue = \"\";\n /* confirm if user had logged in in before and started a survey*/\n $user = Auth::user();\n $answer = Answer::where('user_id','=',$user->id)->get()->last();\n\n if( $answer != \"\" ){\n $question_id = $answer->question_id;\n $answer_string = $answer->string;\n\n /*get next question using function getNextQuestion in answer controller*/\n $displayQuestion = app('App\\Http\\Controllers\\AnswerController')->getNextQuestion($question_id,$answer_string);\n\n return $displayQuestion;\n /* use post question to work */\n }else{\n /*if user has never done a the survey before get first question*/\n /*fetch every paths*/\n $paths = Path::get(['id', 'name', 'sequence']);\n If( sizeof($paths)>0 ) {\n // fetch path where sequence == 1\n $sequence = \"1\";\n $path_id = \"\";\n $paths = Path::where('sequence',$sequence)->get(['id', 'name', 'sequence']);\n foreach( $paths as $path ){\n $path_id = $path->id;\n }\n $questions = Question::where('path_id' , '=' ,$path_id/*[['sequence', '=', $sequence], ['path_id', '=', 1]]*/)\n ->get(['id', 'string', 'sequence', 'path_id', 'user_id', 'progress', 'is_dichotomous', 'is_optional', 'has_options']);\n foreach ($questions as $questions) {\n /* use question id to pluck options for this specific question id*/\n $question_id = $questions->id;\n $sequence = $questions->sequence;\n /* if has options get the options div displays */\n if( $questions->has_options == true ){\n $input_type = \"option\";\n /*get the div displays*/\n $optionValue = app('App\\Http\\Controllers\\InputController')->index($input_type,$question_id);\n /*get the options*/\n $options = Option::where('question_id', $question_id)->pluck('options_string');\n\n }elseif ( $questions->has_multiple == true ){\n\n echo(\"get has multiple values\");\n\n }else if ( $questions->has_options == false && $questions->has_multiple == false ){\n\n echo(\"both values of has multiple and has options is false\");\n\n }else{\n\n echo(\"no reasonable input type \");\n\n }\n /* creating a new collection instance to fit our required output*/\n $question = new Collection;\n\n $question->push([\n 'id' => $questions->id,\n 'string' => $questions->string,\n 'sequence' => $sequence,\n 'options' => $options,\n 'optionValue' => $optionValue,\n\n ]);\n $question = $question[0];\n $question = json_encode($question);\n\n return $question;\n\n }\n\n }\n else{\n echo \"CANNOT COMPLETE REQUEST\";\n }\n }\n\n\n }", "static function displayHandlerAnswerPage ($form_data)\n {\n if (empty($form_data->form_id) || filter_var($form_data->form_id, FILTER_VALIDATE_INT) === false) {\n throw new InvalidArgumentException('Cannot display the answers. Invalid or missing form ID.');\n }\n \n global $core, $p_url;\n\t\t$db =& $core->con;\n\n // Delete answers if needed\n if (isset($_POST['delete-answers'])) {\n self::deleteAnswers($form_data->form_id, $_POST['delete-answer']);\n // Redirect the page to avoid multiple deletions\n header('Location: ' . $p_url . '&page=answer&formid=' . $form_data->form_id);\n }\n \n\t\t$list = $db->select('SELECT `answer_id`, `answer` FROM ' . DC_DBPREFIX . self::$table_name\n . ' WHERE `form_id` = ' . $form_data->form_id);\n \n $form_content = json_decode($form_data->form_fields)->fields;\n \n if (empty($list->answer)) {\n echo '<p class=\"info\">',\n __('There is no answer to this form yet.'),\n '</p>';\n return;\n }\n \n echo '<form method=\"POST\" action=\"', $p_url, '&amp;page=answer&amp;formid=', $form_data->form_id, '\">',\n $core->formNonce(),\n '<table>',\n '<thead>',\n '<th></th>',\n '<th>', __('Num'), '</th>';\n foreach ($form_content as $field) {\n if (!in_array($field->field_type, self::$display_field_blacklist)) {\n echo '<th>', html::escapeHTML($field->label), '</th>';\n }\n }\n unset($field); // Remove this unused var\n echo '</thead>',\n '<tbody>';\n // Loop over each existing answer\n foreach ($list as $answer) {\n $answer_entries = json_decode($answer->answer);\n echo '<tr>',\n '<td><input type=\"checkbox\" name=\"delete-answer[]\" value=\"', $answer->answer_id, '\"></td>',\n '<td>', $answer->answer_id, '</td>';\n // Loop over each field of the answer\n foreach ($form_content as $field) {\n if (!in_array($field->field_type, self::$display_field_blacklist)) {\n $answer_content = $answer_entries->{$field->cid};\n $answer_string = self::serializeAnswer($answer_content, $field);\n echo '<td>',\n ((!isset($answer_string) || $answer_string === '')\n ? '<em>' . __('unknown') . '</em>'\n : $answer_string),\n '</td>';\n }\n }\n echo '</tr>';\n }\n echo '</tbody>',\n '</table>',\n '<input class=\"delete\" type=\"submit\" name=\"delete-answers\" value=\"', __('Delete selected answers'), '\">',\n '</form>';\n }", "function templates_example()\n{\n /* Get post object by its template */\n $post = \\ActiTemplate\\Template::getTemplatePageObject('page-contact.php');\n\n /* Get post ID by its template */\n $postID = \\ActiTemplate\\Template::getTemplatePageId('page-contact.php');\n\n /* Get post url by its template */\n $url = \\ActiTemplate\\Template::getTemplatePageUrl('page-contact.php');\n}", "public function AskQuestion($data);", "function formatQAs() {\n $QAs = func_get_args();\n $outputArr = array();\n foreach( $QAs as $QA ) {\n array_push( $outputArr, formatQA($QA[0], $QA[1]) );\n }\n // put a few line breaks between each set of question/answer\n return implode( QASeparator(), $outputArr );\n}", "function tag($tag_name, $op, $pref = '', $nl = false, $extra = '')\n{\n echo $pref . '<' ;\n if ($op == 'close') {\n echo '/' ;\n }\n echo $tag_name ;\n if ($extra != '') {\n echo ' ' . $extra ;\n }\n echo '>' ;\n if ($nl == true) {\n NL() ;\n }\n}", "function formValue(\\Jazzee\\Entity\\Answer $answer);", "public function tagAction() {\n\n $tag = null;\n\n $qhits = $this->di->request->getGet('hits') ? $this->di->request->getGet('hits') : $this->di->session->get('qhits');\n $qhits = $qhits ? $qhits : 10;\n $this->di->session->set('qhits', $qhits);\n $page = $this->di->request->getGet('page') ? $this->di->request->getGet('page') : 0;\n\n if ($this->di->request->getGet('tag')) {\n $tag = $this->di->request->getGet('tag');\n } else {\n $url = $this->url->create('question');\n $this->response->redirect($url);\n }\n\n $t = new \\Enax\\Tags\\Tags();\n $t->setDI($this->di);\n $tagname = $t->find($tag);\n\n $count = $this->questions->query(\"COUNT(*) AS count\")\n ->from('question AS q')\n ->join('tag2question AS t2q', 'q.id = t2q.idQuestion')\n ->where(\"t2q.idTag = \" . $tag)\n ->execute();\n\n $get = array('tag' => $tag, 'hits' => $qhits, 'page' => $page);\n\n if ($count[0]->count == 0) {\n $pagelinks = $this->pager->paginateGet(1, 'question/tag', $get, $this->customhits);\n } else {\n $pagelinks = $this->pager->paginateGet($count[0]->count, 'question/tag', $get, $this->customhits);\n }\n\n $all = $this->questions->query(\"q.*\")\n ->from('question AS q')\n ->join('tag2question AS t2q', 'q.id = t2q.idQuestion')\n ->where(\"t2q.idTag = \" . $tag)\n ->limit($qhits)\n ->offset($page)\n ->groupBy('q.id')\n ->orderBy('q.created DESC')\n ->execute();\n $all = $this->getRelatedData($all);\n\n $this->theme->setTitle($tagname->getProperties()['name']);\n $this->views->add('forum/forum', [\n 'content' => $all,\n 'pages' => $pagelinks,\n 'title' => 'Frågor om ' . $tagname->getProperties()['name'],\n ]);\n\n $title = $count[0]->count == 1 ? $count[0]->count .' fråga' : $count[0]->count .' frågor';\n $this->views->add('tags/view', [\n 'title' => $title,\n 'tags' => $tagname,\n ]);\n }", "function incorrectAnswer() {\n\t}", "function wp_idolondemand_concept_extraction($args) {\n\textract($args);\n\techo $before_widget;\n\techo $before_title;?>Concept Extraction<?php echo $after_title;\n\tdisplay_wp_idolondemand_concept_extraction();\n\techo $after_widget;\n}", "function group_field( $group_key ) {\n // get the group field object\n $group_field = get_field_object( $group_key );\n\n // init return variable\n $output = '';\n\n // group title\n $output .= '<h2>' . $group_field[ 'label' ] . '</h2>';\n\n // display each question, it there's a reply\n foreach ( $group_field['sub_fields'] as $subfield ) {\n $reply = $group_field['value'][$subfield['name']];\n // if it's Control placeholder field, or tags field, skip it\n if ( 'Controls' != $subfield['label'] &&\n 'Select at least 3 tags that describe your actions. We encourage you to add additional tags as needed.' != $subfield['label'] &&\n 'Additional tags' != $subfield['label'] ) :\n $output .= '<div class=\"form-question ' . $subfield['key'] . '\">\n <h3>' . $subfield['label'] . '</h3>\n <div class=\"reply\">\n ' . $group_field['value'][$subfield['name']] . '\n </div>\n </div><!-- end of form-question -->';\n endif;\n }\n\n echo $output;\n}", "public function show(Question $question,Answer $answer)\n {\n //\n }", "function cns_get_post_emphasis($_postdetails)\n{\n $emphasis = new Tempcode();\n if ($_postdetails['is_emphasised']) {\n $emphasis = do_lang_tempcode('IMPORTANT');\n } elseif (array_key_exists('intended_solely_for', $_postdetails)) {\n $pp_to_displayname = $GLOBALS['FORUM_DRIVER']->get_username($_postdetails['intended_solely_for'], true);\n if (is_null($pp_to_displayname)) {\n $pp_to_displayname = do_lang('UNKNOWN');\n }\n $pp_to_username = $GLOBALS['FORUM_DRIVER']->get_username($_postdetails['intended_solely_for']);\n if (is_null($pp_to_username)) {\n $pp_to_username = do_lang('UNKNOWN');\n }\n $emphasis = do_lang('PP_TO', $pp_to_displayname, $pp_to_username);\n }\n return $emphasis;\n}", "function theme_filter_add_any_questions_text_after_the_content( $content ) {\n $github_issue_title='?title='.get_the_title();\n $github_issue_body='&body=['.get_the_title().']('.get_permalink().') - Describe the issue/suggestion and improve the title. Please keep a link to the original article if relevant';\n $github_issue_labels='&labels=docs';\n $github_issue_full_url='https://github.com/diydrones/ardupilot-wiki-issue-tracker/issues/new'.$github_issue_title .$github_issue_body .$github_issue_labels;\n //Replace spaces, [, ] in url - not handled properly by esc_url()\n $github_issue_full_url=str_replace(' ', '%20', $github_issue_full_url);\n $github_issue_full_url=str_replace('[', '%5B', $github_issue_full_url);\n $github_issue_full_url=str_replace(']', '%5D', $github_issue_full_url);\n\n\n $github_issue_full_url_esc= esc_url( $github_issue_full_url,'https' );\n $custom_content = '<hr/><p>Questions, issues, and suggestions about this page can be raised on the \n <a href=\"http://ardupilot.com/forum/\">APM Forum</a>. Issues and suggestions may be posted on the forums or the\n <a href=\"'.$github_issue_full_url_esc.'\">Github Issue Tracker</a>.';\n if ('wiki' == get_post_type() ) {\n $custom_content = $content.$custom_content;\n return $custom_content;\n }\n else {\n return $content;\n }\n}", "public function questions ( ) {\n $hooks = hooks::all();\n\n $title = \"Questions\";\n return view('pages.questions')->with([\n 'title' => $title,\n 'hooks' => $hooks\n ]);\n }", "function printTFQuestionForm() {\n\tglobal $tool_content, $langTitle, $langSurveyStart, $langSurveyEnd, \n\t\t$langType, $langSurveyMC, $langSurveyFillText, \n\t\t$langQuestion, $langCreate, $langSurveyMoreQuestions, \n\t\t$langSurveyCreated, $MoreQuestions;\n\t\t\n\t\tif(isset($_POST['SurveyName'])) $SurveyName = htmlspecialchars($_POST['SurveyName']);\n\t\tif(isset($_POST['SurveyEnd'])) $SurveyEnd = htmlspecialchars($_POST['SurveyEnd']);\n\t\tif(isset($_POST['SurveyStart'])) $SurveyStart = htmlspecialchars($_POST['SurveyStart']);\n\t\t\n//\tif ($MoreQuestions == 2) {\n\tif ($MoreQuestions == $langCreate) {\n\t\tcreateTFSurvey();\n\t} else {\n\t\t$tool_content .= <<<cData\n\t\t<form action=\"addsurvey.php\" id=\"survey\" method=\"post\">\n\t\t<input type=\"hidden\" value=\"2\" name=\"UseCase\">\n\t\t<table>\n\t\t\t<tr><td>$langTitle</td><td colspan=\"2\"><input type=\"text\" size=\"50\" name=\"SurveyName\" value=\"$SurveyName\"></td></tr>\n\t\t\t<tr><td>$langSurveyStart</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyStart\" value=\"$SurveyStart\"></td></tr>\n\t\t\t<tr><td>$langSurveyEnd</td><td colspan=\"2\"><input type=\"text\" size=\"20\" name=\"SurveyEnd\" value=\"$SurveyEnd\"></td></tr>\ncData;\n\t\t$counter = 0;\n\t\tforeach (array_keys($_POST) as $key) {\n\t\t\t++$counter;\n\t\t $$key = $_POST[$key];\n\t\t if (($counter > 4 )&($counter < count($_POST)-1)) {\n\t\t\t\t$tool_content .= \"<tr><td>$langQuestion</td><td><input type='text' name='question{$counter}' value='${$key}'></td></tr>\"; \n\t\t\t}\n\t\t}\n\t\t\t\n\t\t$tool_content .= <<<cData\n\t\t\t<tr><td>$langQuestion</td><td><input type='text' name='question'></td></tr>\n\t\t\t<tr>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langSurveyMoreQuestions\" />\n\t\t </td>\n\t\t\t <td>\n\t\t\t <input name=\"MoreQuestions\" type=\"submit\" value=\"$langCreate\" />\n\t\t </td>\n\t\t\t</tr>\n\t\t</table>\n\t\t</form>\ncData;\n\t}\n}", "public function getQuestions()\n {\n $title = \"Questions\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n $post = new Post($this->di->get(\"db\"));\n $user = new User($this->di->get(\"db\"));\n $tag = $this->di->get(\"tag\");\n\n $questions = $post->getQuestions();\n foreach ($questions as $question) {\n $question->tags = $tag->getPostTags($question->id);\n $question->user = $user->findAllWhere(\"id = ?\", [$question->userId])[0];//$user->find(\"id\", $question->userId);\n }\n\n $pag = $this->getPagination($questions);\n $view->add(\"comment/question-list\", [\n \"questions\" => array_slice($questions, $pag[\"offset\"], $pag[\"length\"], true),\n \"pag\" => $pag,\n ]);\n return $pageRender->renderPage([\"title\" => $title]);\n }", "function TagsMain()\n{\n loadtemplate('Tags');\n\n // Load the language files\n if (loadlanguage('Tags') == false) {\n loadLanguage('Tags','english');\n }\n\n\n // Tags actions\n $subActions = array(\n 'edittopic' => 'EditTopic',\n 'edittopic2' => 'EditTopic2',\n 'suggesttopic' => 'SuggestTopic',\n 'suggesttopic2' => 'SuggestTopic2',\n 'approvetopic' => 'ApproveTopic',\n 'deletetopic' => 'DeleteTopic',\n 'rename' => 'RenameTag',\n 'viewall' => 'ViewAllTags',\n 'merge' => 'MergeTag',\n 'move' => 'MoveTag',\n 'admin' => 'TagsSettings',\n 'admin2' => 'TagsSettings2',\n 'cleanup' => 'TagCleanUp',\n );\n\n\n // Follow the sa or just go to main links index.\n if (!empty($subActions[@$_GET['sa']])) {\n $subActions[$_GET['sa']]();\n }\n else {\n if (allowedTo('smftags_manage')) {\n if (isset($_REQUEST['todo']) || isset($_REQUEST['create'])) {\n ManageTags2();\n }\n ManageTags();\n }\n ViewTags();\n }\n}", "function get_view($params) {\n $tag = safeParam($params, 0, false);\n if ($tag === false) {\n die(\"No tag selected\");\n }\n\t\n\t$tag = strtolower($tag);\n $records = Question::findAllRecordsByTag($tag);\n\t\n\n renderTemplate(\n \"views/tag_view.inc\",\n array(\n 'title' => \"Questions tagged '$tag'\",\n 'records' => $records\n )\n );\n}", "function writeBooleanQuestion ($id, $name, $label, $message, $branchName, $gotoYes, $gotoNo) {\n\tglobal $varchars;\n\tglobal $boolID;\n\t$boolID++;\n\t//if both are filled in then this is an offshoot of a branch and is also the beginning of another branch\n\tif (!empty($branchName) && !empty($id)) {\n\t\techo '<div class=\"step\" id=\"'.$id.'\" data-state=\"'.$branchName.'\">';\n\t}\n\t//this is part of a branch\n\telse if (!empty($branchName)) {\n\t\techo '<div class=\"step\" data-state=\"'.$branchName.'\">';\n\t}\n\t//this means it is just a regular one off step\n\telse {\n\t\techo '<div class=\"step\" id=\"'.$id.'\">';\n\t}\n\techo '<div class=\"section\">\n\t\t\t<div class=\"card-header m-b-0\">\n\t\t\t\t<label for=\"bool-'.$boolID.'\">'.$label.'</label>';\n\t\t\t\tif (!empty($message)) {\n\t\t\t\t\techo '<p>'.$message.'</p>';\n\t\t\t\t}\n\t\t\t\techo '<hr class=\"card-line\" align=\"left\">\n\t\t\t</div>\n\t\t\t<div class=\"card-body m-b-30\">\n <div class=\"option-box p-r-10\">\n <input id=\"bool-'.$boolID.'\" data-goto=\"'.$gotoYes.'\" name=\"'.$name.'\" value=\"yes\" type=\"radio\" ';\n if (isset($varchars[$name]) && $varchars[$name] == 'yes') {\n \techo 'checked >';\n }\n else {\n \techo '>';\n }\n echo '<label for=\"bool-'.$boolID.'\">\n \t<span class=\"radio-content\"><p>Yes</p></span>\n \t</label>\n </div>\n <div class=\"option-box\">\n <input id=\"bool-'.$boolID.'No\" data-goto=\"'.$gotoNo.'\" name=\"'.$name.'\" value=\"no\" type=\"radio\" ';\n if (isset($varchars[$name]) && $varchars[$name] == 'no') {\n \techo 'checked >';\n }\n else {\n \techo '>';\n }\n echo '<label for=\"bool-'.$boolID.'No\">\n \t<span class=\"radio-content\"><p>No</p></span>\n </label>\n </div>\n </div>\n\t\t</div>\n\t</div>';\n}", "public function part_tags() {\n return array('placeholder', 'answermark', 'answertype', 'numbox', 'vars1', 'answer', 'vars2', 'correctness'\n , 'unitpenalty', 'postunit', 'ruleid', 'otherrule');\n }", "function printAnswerDivs()\n{\n global $pConway, $tCorrect, $pPaused, $t;\n if (count($_POST) == 4) {\n if (!$pPaused)\n {\n $tYesNo = $tCorrect ? 'Correct!' : 'Wrong!';\n print \"$t[5]<div class='answer' align=center>$tYesNo</div>\\n\";\n if (!$tCorrect)\n {\n $tIsWas = (strtotime($pConway) <= time()) ? 'was' : 'will be';\n $tDay = getDay(getDayIndex($pConway));\n print \"$t[5]<div class='answer' align=center>$pConway<br>$tIsWas a</div>\\n\";\n print \"$t[5]<div id='theDay' class='answer' align=center>$tDay</div>\\n\";\n }\n }\n }\n}", "private function processTags()\n {\n $dollarNotationPattern = \"~\" . REGEX_DOLLAR_NOTATION . \"~i\";\n $simpleTagPattern = \"~\" . REGEX_SIMPLE_TAG_PATTERN . \"~i\";\n $bodyTagPattern = \"~\" . REGEX_BODY_TAG_PATTERN . \"~is\";\n \n $tags = array();\n preg_match_all($this->REGEX_COMBINED, $this->view, $tags, PREG_SET_ORDER);\n \n foreach($tags as $tag)\n { \n $result = \"\";\n \n $tag = $tag[0];\n \n if (strlen($tag) == 0) continue;\n \n if (preg_match($simpleTagPattern, $tag) || preg_match($bodyTagPattern, $tag))\n {\n $this->handleTag($tag);\n }\n else if (preg_match($dollarNotationPattern, $tag))\n {\n $this->logger->log(Logger::LOG_LEVEL_DEBUG, 'View: processTags', \"Found ExpLang [$tag]\");\n $result = $this->EL_Engine->parse($tag);\n }\n \n if (isset ($result))\n {\n $this->update($tag, $result);\n }\n }\n }", "function wp_idolondemand_find_related_concepts($args) {\n\textract($args);\n\techo $before_widget;\n\techo $before_title;?>Find Related Concepts<?php echo $after_title;\n\tdisplay_wp_idolondemand_find_related_concepts();\n\techo $after_widget;\n}", "function dfcg_help_gallery() {\n?>\n\t<h3><?php _e( 'Dynamic Content Gallery - Quick Help - Gallery Method', DFCG_DOMAIN ); ?></h3>\n\t\n\t<p><?php _e( 'For many users the best option is One Category. It is great as a \"set and forget\" option, because it will always pull in the latest posts from your chosen category. The Custom Post option works in a similar way to the One Category method and is, obviously, the best option for pulling in posts from one Custom Post type. In server performance terms, these two methods are probably the most efficient ones to use.', DFCG_DOMAIN ); ?></p>\n\t\n\t<p><?php _e( 'The Multi-Option method is perfect for when you want to mix posts from different categories, for example if you want to feature the latest post from a number of different categories.', DFCG_DOMAIN ); ?></p>\n\t\n\t<p><?php _e( 'The ID Method is the most flexible because you can pull in any type of post (normal of Custom) and Pages, and mix them in any order you wish using the Sort Order field in the DCG metabox.', DFCG_DOMAIN ); ?></p>\n\n<?php\n}" ]
[ "0.61681217", "0.6127558", "0.5909546", "0.5814928", "0.56810737", "0.56677914", "0.5636512", "0.5631687", "0.5582521", "0.55793667", "0.55482465", "0.5483795", "0.5480063", "0.5466995", "0.54430175", "0.54398054", "0.54130733", "0.5392474", "0.5378488", "0.5378006", "0.53715473", "0.53614056", "0.5338697", "0.5332068", "0.53039956", "0.52956825", "0.5293183", "0.5292289", "0.5292289", "0.5292289", "0.5292289", "0.5292289", "0.5292289", "0.5292289", "0.5292289", "0.5287862", "0.52812797", "0.52795076", "0.52781296", "0.5271843", "0.5264364", "0.52517754", "0.524738", "0.52349097", "0.52203643", "0.5202375", "0.519509", "0.5179856", "0.5170963", "0.5165729", "0.5165729", "0.5165729", "0.51591617", "0.5126352", "0.51240796", "0.5121027", "0.5118089", "0.51179725", "0.51044065", "0.51032895", "0.51025325", "0.50912815", "0.5089555", "0.5087471", "0.5070581", "0.50689805", "0.5065673", "0.50561494", "0.50528353", "0.50437254", "0.5040953", "0.50409234", "0.5039712", "0.5037598", "0.5026495", "0.50249225", "0.5024495", "0.5016527", "0.50135875", "0.50056565", "0.5003449", "0.49964198", "0.4996387", "0.4995147", "0.49896082", "0.4984035", "0.49825105", "0.4981946", "0.49773076", "0.49744576", "0.49691007", "0.4969061", "0.49657238", "0.49610877", "0.49596694", "0.49476475", "0.4947494", "0.4947472", "0.49472532", "0.49467257", "0.49433294" ]
0.0
-1
Template function: Current answer pid (defaults to echo)
function pzdc_answer_pid($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_attribute_helper('answer', 'pid', $echo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ipal_show_current_question_id(){\r\n global $DB;\r\n global $ipal;\r\n if($DB->record_exists('ipal_active_questions', array('ipal_id'=>$ipal->id))){\r\n $question=$DB->get_record('ipal_active_questions', array('ipal_id'=>$ipal->id));\r\n\treturn($question->question_id);\r\n }\r\nelse{\r\nreturn(0);\r\n}\r\n}", "function ipal_show_current_question(){\r\n\tglobal $DB;\r\n\tglobal $ipal;\r\n\t if($DB->record_exists('ipal_active_questions', array('ipal_id'=>$ipal->id))){\r\n\t $question=$DB->get_record('ipal_active_questions', array('ipal_id'=>$ipal->id));\r\n\t $questiontext=$DB->get_record('question',array('id'=>$question->question_id)); \r\n\techo \"The current question is -> \".strip_tags($questiontext->questiontext);\r\nreturn(1);\r\n\t }\r\n\telse\r\n\t {\r\n\t return(0);\r\n\t }\r\n}", "public function getPID(): string {\n return $this->_pid;\n }", "function getPid() ;", "function getPID() { \n\t\treturn $this->_pid; \n\t}", "public function getPid() {}", "function questionID()\r\n {\r\n $ret = 0;\r\n\r\n if ( is_a( $this->Question, \"eZQuizQuestion\" ) )\r\n {\r\n $ret = $this->Question->id();\r\n }\r\n\r\n return $ret;\r\n }", "public function getAnswerId( ) {\n\t\treturn $this->answer_id;\n\t}", "public function get_id_question()\n\t{\n\t\treturn $this->id_question;\n\t}", "public function show($pid)\n {\n //\n }", "public function getPid() {\n return $this->pid;\n }", "public function answer() {\n\n\t\t/**\n\t\t * Fires right before giving the answer.\n\t\t */\n\t\tdo_action( self::ACTION );\n\n\t\t/**\n\t\t * Filters the answer.\n\t\t *\n\t\t * @param string $answer The answer.\n\t\t */\n\t\treturn (string) apply_filters( self::FILTER, '42' );\n\t}", "public function outputId()\n\t{\n\t\techo App::e($this->id);\n\t}", "function ipal_display_student_interface(){\r\n\tglobal $DB;\r\n\tipal_java_questionUpdate();\r\n\t$priorresponse = '';\r\n\tif(isset($_POST['answer_id'])){\r\n\t if($_POST['answer_id'] == '-1'){\r\n\t \t$priorresponse = \"\\n<br />Last answer you submitted: \".strip_tags($_POST['a_text']);\r\n\t }\r\n\t else\r\n\t {\r\n\t $answer_id = $_POST['answer_id'];\r\n\t\t $answer = $DB->get_record('question_answers', array('id'=>$answer_id));\r\n\t\t //$answer = $DB\r\n\t\t $priorresponse = \"\\n<br />Last answer you submitted: \".strip_tags($answer->answer);\r\n\t }\r\n\t ipal_save_student_response($_POST['question_id'],$_POST['answer_id'],$_POST['active_question_id'],$_POST['a_text']);\r\n\t}\r\n echo $priorresponse;\r\n ipal_make_student_form();\t\r\n}", "static public function obtener_idpregunta_disponible()\n {\n return self::$conexion->autoID(\"pregunta\",\"id_pregunta\");\n }", "public function getPid()\n {\n return $this->pid;\n }", "public function getPid()\n {\n return $this->pid;\n }", "public function getPid()\n {\n return $this->pid;\n }", "public function getPid()\n {\n return $this->pid;\n }", "protected static function replyidAction($ajax) {\n\t\tglobal $db;\n\t\tif(isset($_GET['postid']))\n\t\t\tif($reply = $db->query('select id from forum_replies where postid=\\'' . +$_GET['postid'] . '\\' limit 1'))\n\t\t\t\tif($reply = $reply->fetch_object())\n\t\t\t\t\t$ajax->Data->id = $reply->id;\n\t\t\t\telse\n\t\t\t\t\t$ajax->Fail('no reply with post id ' . +$_GET['postid']);\n\t\t\telse\n\t\t\t\t$ajax->Fail('error looking up reply from postid', $db->errno . ' ' . $db->error);\n\t\telse\n\t\t\t$ajax->Fail('postid is required.');\n\t}", "public function display_current()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" display ? ?\");\n\t}", "function gettid_pid($pid)\n{\n $tid = mysql_fetch_array(mysql_query(\"SELECT tid FROM ibwf_posts WHERE id='\".$pid.\"'\"));\n return $tid[0];\n}", "public function getQuestionId() {\n\t\treturn $this->questionId;\n\t}", "function answer()\r\n {\r\n //option 1) check for already defined\r\n if (strlen($this->Answer)) {\r\n return $this->Answer;\r\n }\r\n\r\n $http = eZHTTPTool::instance();\r\n $prefix = eZSurveyType::PREFIX_ATTRIBUTE;\r\n\r\n //option 2) check for answer in $_POST (trick from processViewAction or normal post)\r\n $postSurveyAnswer = $prefix . '_ezsurvey_answer_' . $this->ID . '_' . $this->contentObjectAttributeID();\r\n if ($http->hasPostVariable($postSurveyAnswer) && strlen($http->postVariable($postSurveyAnswer))) {\r\n $surveyAnswer = $http->postVariable($postSurveyAnswer);\r\n\r\n return $surveyAnswer;\r\n }\r\n\r\n return $this->Default;\r\n }", "public function getPId();", "public function OutputAnswer($userid = 0)\n\t{\tob_start();\n\t\tif ($this->details['qanswer'])\n\t\t{\techo '<div class=\"qanswerText\">', stripslashes($this->details['qanswer']), '</div>';\n\t\t}\n\t\tif ($mmlist = $this->GetMultiMedia())\n\t\t{\tforeach ($mmlist as $mm_row)\n\t\t\t{\t$mm = new Multimedia($mm_row);\n\t\t\t\techo '<div class=\"qanswerMM\">', $mm->Output(635, 380), '</div>';\n\t\t\t}\n\t\t}\n\t\t$comment = new StudentComment();\n\t\t$comments = new StudentComments('askimamquestions', $this->id);\n\t\tif ($this->CommentsOpen())\n\t\t{\techo '<div id=\"yourReviewContainer\">', $comment->CreateForm($this->id, 'askimamquestions', $userid > 0), '</div><div class=\"clear\"></div>';\n\t\t} else\n\t\t{\techo '<p>This question is now closed to further comments.</p>';\n\t\t}\n\t\techo '<div id=\"prodReviewListContainer\">', $comments->OutputList(2), '</div>';\n\t\treturn ob_get_clean();\n\t}", "private function get_current_id() {\n\n\t\tstatic $id = null;\n\n\t\treturn $id ?: $id = \\get_queried_object_id();\n\t}", "protected function k_pidSuffix():string {return 'id';}", "function currentQuestionID($var){\n $query = $this->db->query('SELECT question_id FROM leader WHERE user_id =\"'.$var.'\"');\n $greater = 0;\n foreach ($query->result_array() as $row) {\n \tif($row['question_id'] > $greater)\n \t\t$greater = $row['question_id'];\n }\n return $greater;\n }", "public function nextQuestion(){\n $curr = $this->request->getVar(\"currQuestion\");\n $selected = $this->request->getVar(\"selected\");\n\n if($curr != 1){\n $this->answeredQuestions = $this->session->get('questions');\n $this->answersId = $this->session->get('answers');\n $this->score = $this->session->get('score');\n }\n\n if($curr == 1) $this->resetAll();\n\n $selected -= 1;\n if($curr != 1){\n $this->addValues($selected);\n }\n\n if($curr != 6) {\n $id = $this->generateNextQuestion();\n $question = $this->getQuestion($id);\n $answers = $this->getAnswers($question);\n }\n\n if($curr == 6){\n $id = $this->findRecommendation();\n $this->session->remove('questions');\n $this->session->remove('answers');\n $this->session->remove('score');\n echo \"gotovo,\".$id;\n return;\n }\n\n $this->session->set('questions',$this->answeredQuestions );\n $this->session->set('answers',$this->answersId );\n $this->session->set('score',$this->score);\n\n\n echo $question->text.\"\".$answers;\n\n }", "protected function determine_id( $pid ) {\n\t\tglobal $wp_query;\n\t\tif ( $pid === null &&\n\t\t\tisset($wp_query->queried_object_id)\n\t\t\t&& $wp_query->queried_object_id\n\t\t\t&& isset($wp_query->queried_object)\n\t\t\t&& is_object($wp_query->queried_object)\n\t\t\t&& get_class($wp_query->queried_object) == 'WP_Post'\n\t\t) {\n\t\t\t$pid = $wp_query->queried_object_id;\n\t\t} else if ( $pid === null && $wp_query->is_home && isset($wp_query->queried_object_id) && $wp_query->queried_object_id ) {\n\t\t\t//hack for static page as home page\n\t\t\t$pid = $wp_query->queried_object_id;\n\t\t} else if ( $pid === null ) {\n\t\t\t$gtid = false;\n\t\t\t$maybe_post = get_post();\n\t\t\tif ( isset($maybe_post->ID) ) {\n\t\t\t\t$gtid = true;\n\t\t\t}\n\t\t\tif ( $gtid ) {\n\t\t\t\t$pid = get_the_ID();\n\t\t\t}\n\t\t\tif ( !$pid ) {\n\t\t\t\tglobal $wp_query;\n\t\t\t\tif ( isset($wp_query->query['p']) ) {\n\t\t\t\t\t$pid = $wp_query->query['p'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ( $pid === null && ($pid_from_loop = PostGetter::loop_to_id()) ) {\n\t\t\t$pid = $pid_from_loop;\n\t\t}\n\t\treturn $pid;\n\t}", "public function get_current_nid(){\n\t\treturn $this->current_nid;\n\t}", "function ts_get_current_id()\r\n{\r\n\treturn CURRENT_ID;\r\n}", "public function getTid()\n {\n \treturn $this->getParameter('tid');\n }", "public function main() {\n return $this->id;\n }", "public function main() {\n return $this->id;\n }", "public static function getBePidFromCachedTsConfig() {\r\n\t\tif(is_array($GLOBALS['SOBE']->tceforms->cachedTSconfig)) {\r\n\t\t\t$tsConfig = array_pop($GLOBALS['SOBE']->tceforms->cachedTSconfig);\r\n\t\t\treturn $tsConfig['_CURRENT_PID'];\r\n\t\t}\r\n\t}", "public function getID(): string {\n\t\treturn 'talk';\n\t}", "private function get_requested_post_id(){\n if(isset($_GET['post_id']) && $this->requested_post_is_valid() && $this->can_continue_current_form()){\n return (int) $_GET['post_id'];\n }\n\n return 'new_post';\n }", "function pa() {\n\t\t\t\t$edit_pid = (int)UTIL::get_post('edit_pid');\n\t\t\t\t//-- haben wir eine edit-id, koennen wir direkt zur auswahl gehen\n\t\t\t\tif ($edit_pid) return $this->pa_type();\n\t\t\t\t//-- seitenbaum auslesen\n\t\t\t\t$root_id = (int)$this->root_id;\n\t\t\t\t$set = new NestedSet();\n\t\t\t\t$set->set_table_name($this->mod_tbl);\n\t\t\t\t$nodes = $set->getNodes($root_id, '*', $this->DB->table_restriction($this->mod_tbl));\n\t\t\t\t$this->set_var('page_nodes', $nodes);\n\t\t\t\t$this->set_var('title', e::o('v_title_1'));\n\t\t\t\t$this->OPC->generate_view($this->tpl_dir . 'pa.php');\n\t\t\t\treturn;\n\t\t\t}", "public function show(Answer $Answer)\n {\n echo \"bakhtawar123\";exit();\n //\n }", "protected function get_current_question_text(): string {\n $submitteddata = optional_param_array('questiontext', '', PARAM_RAW);\n if ($submitteddata) {\n // Form has been submitted, but it being re-displayed.\n return $submitteddata['text'];\n }\n if (isset($this->question->id)) {\n // Form is being loaded to edit an existing question.\n return $this->question->questiontext;\n }\n // Creating new question.\n return '';\n }", "public function PullNextQuestionID()\n {\n $questionID = 0;\n \n $foundNextQues = FALSE;\n $lvlQAs = $this->GetLvlQAs();\n \n for($index = 0; $index < count($lvlQAs) && !$foundNextQues; $index++)\n {\n $lvlQA = $lvlQAs[$index];\n \n if(!$lvlQA->IsAnswerIdSet())\n {\n $foundNextQues = TRUE;\n $questionID = $lvlQA->GetQuestionId();\n }\n }\n \n return $questionID;\n }", "public function getUserAnswer() : string {\n return $this->_userAnswer;\n }", "public function getAnswer() {\n return $this->program->getAnswer();\n }", "protected function getSearchFormActionPidFromTS() {}", "function reply()\r\n\t{\r\n\t\t\r\n\t\t//must be logged in\r\n\t\t$this->dx_auth->check_uri_permissions();\r\n\t\t\r\n\t\t//set the data variable\r\n\t\t$data['parent_id'] = $this->uri->segment(3);\r\n\t\t\r\n\t\t//the parent id is the id we are replying to.\r\n\t\t$this->db->where('meaning_id', $data['parent_id']);\r\n\t\t//we have to do this so we can get the song_id from the parent's meaning\r\n\t\t$data['query'] = $this->db->get('meanings');\r\n\t\t\r\n\t\t//load the meanings reply view\r\n\t\t$this->template->write('title', 'Replying to a meaning');\r\n\t\t$this->template->write_view('content', 'meanings/reply', $data, true);\r\n\t\t$this->template->render();\r\n\t}", "abstract public function get_instanceid_from_currentcontext();", "protected function getCurrentPageIdFromRootTemplate() {}", "function printAnswerDivs()\n{\n global $pConway, $tCorrect, $pPaused, $t;\n if (count($_POST) == 4) {\n if (!$pPaused)\n {\n $tYesNo = $tCorrect ? 'Correct!' : 'Wrong!';\n print \"$t[5]<div class='answer' align=center>$tYesNo</div>\\n\";\n if (!$tCorrect)\n {\n $tIsWas = (strtotime($pConway) <= time()) ? 'was' : 'will be';\n $tDay = getDay(getDayIndex($pConway));\n print \"$t[5]<div class='answer' align=center>$pConway<br>$tIsWas a</div>\\n\";\n print \"$t[5]<div id='theDay' class='answer' align=center>$tDay</div>\\n\";\n }\n }\n }\n}", "function getQuestionId($questionId, $form){\r\n\r\n\tglobal $db;\r\n\tif(!$db) connectDb();\r\n\r\n\t$formId = getFormId($form);\r\n\tif($formId) {\r\n\t\t$sql = \"SELECT id FROM questions WHERE question ='$questionId' and form_id='$formId' \";\r\n\r\n\t\ttry {\r\n\t\t\t$result = $db->query($sql)->fetch(PDO::FETCH_OBJ);\r\n\t\t}\r\n\t\tcatch (PDOException $e) {\r\n\t\t\t$error = $e->getMessage();\r\n\t\t}\r\n\r\n\t\tif($result) \r\n\t\t\treturn $result->id;\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}\r\n}", "function answer()\n {\n if( $this->Answer !== false )\n return $this->Answer;\n\n $http = eZHTTPTool::instance();\n $prefix = eZSurveyType::PREFIX_ATTRIBUTE;\n $postSurveyAnswer = $prefix . '_ezsurvey_answer_' . $this->ID . '_' . $this->contentObjectAttributeID();\n if( $http->hasPostVariable( $postSurveyAnswer ) )\n {\n $surveyAnswer = $http->postVariable( $postSurveyAnswer );\n return $surveyAnswer;\n }\n\n return false;\n }", "public function pid() {\n if($this->parent_object) {\n return $this->parent_object->pid();\n }\n return $this->ID;\n }", "public function current_title()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" current_title ?\");\n\t}", "protected function getCurrentPageIdFromGetPostData() {}", "public function getQuestion(): string\n {\n return $this->question;\n }", "private function getPid($type = 'master')\n {\n $cmd = \"ps aux | grep 'php {$this->config['process_name']} {$type}' | grep -v grep | awk '{ print $2}'\";\n exec($cmd, $pid);\n return $pid;\n }", "function get_single_reply($reply_id){\n global $db;\n $query = 'SELECT * FROM replies \n WHERE reply_id = :reply_id';\n $statement = $db->prepare($query);\n $statement->bindValue(':reply_id', $reply_id);\n $statement->execute();\n $reply = $statement->fetch();\n $statement->closeCursor();\n return $reply;\n }", "private function myQid(){\r\n\t\t$this->db->where('uid', $this->uid);\r\n\t\t$this->db->select('id');\r\n\t\t$this->db->from('wen_answer');\r\n\t\t$tmp = $this->db->get()->result_array();\r\n\t\t$return = array();\r\n\t\tforeach($tmp as $r){\r\n\t\t\t$return[$r['id']] = 1;\r\n\t\t}\r\n\t\treturn $return;\r\n\t}", "protected function promptMessage($index) {\n return $this->_prompts[$index];\n }", "public function answer()\n\t{\n\t\tif($db = $this->module->db())\n\t\t{\n\t\t\tif($result = $db->query(\"SELECT\n\t\t\t\ts_answer\n\t\t\t\tFROM\n\t\t\t\t\".$db->getPrefix().\"faq\n\t\t\t\tWHERE\n\t\t\t\tid=\".$this->id.\";\"))\n\t\t\t{\n\t\t\t\twhile( $line = mysql_fetch_array( $result ) )\n\t\t\t\t{\n\t\t\t\t\treturn urldecode($line[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn NULL;\n\t}", "function set_prompt() {\n return $_SESSION['astcmd']['host'] . \"*CLI> \";\n}", "public function getAnswer()\n {\n return $this->answer;\n }", "public function getPrompt();", "public function getPtkId()\n {\n return $this->ptk_id;\n }", "public function reply()\n\t{\n\n\t\t$reply = $this->store('reply', '/threads?id=_id_#form-reply');\n\n\t\t(new Thread)->updateTotalReplies($reply->parent_id);\n\n\t\tredirect('/threads?id=' . $reply->parent_id . '#reply-id' . $reply->id);\n\t\n\t}", "public function askForNumber()\n {\n return \"Give me a number, and we can play BuzzPhone together!\";\n }", "function get_ppid($id) {\n $ret = shell_exec(\"ps -p $id -o %P\");\n $ret = explode(\"\\n\", $ret);\n $ret = intval($ret[1]);\n while ($ret > 1) {\n $ret2 = get_ppid($ret);\n if ($ret2 < 2) return $ret;\n $ret = $ret2;\n }\n}", "function writequestion($question) {\n /// must be overidden\n\n echo \"<p>This quiz format has not yet been completed!</p>\";\n\n return NULL;\n }", "public function question()\n\t{\n\t\tif($db = $this->module->db())\n\t\t{\n\t\t\tif($result = $db->query(\"SELECT\n\t\t\t\ts_question\n\t\t\t\tFROM\n\t\t\t\t\".$db->getPrefix().\"faq\n\t\t\t\tWHERE\n\t\t\t\tid=\".$this->id.\";\"))\n\t\t\t{\n\t\t\t\twhile( $line = mysql_fetch_array( $result ) )\n\t\t\t\t{\n\t\t\t\t\treturn urldecode($line[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn NULL;\n\t}", "public function getAnswer() {\n return $this->answer;\n }", "public function handle(AnonPost $id)\n {\n\n// echo $question->uuid;\n print_r($id->user);\n\n\n return Mail::send('emails.admin_anon_post', ['question' => $id], function ($m) use ($id) {\n $m->from('[email protected]', 'Qanya.com');\n $m->to('[email protected]', \"Question verify\")\n ->subject('Verify this post '.$id->user);\n });\n }", "function findCurrent($pid) {\n\t\t/*\n\t\t * 1. Check for a result stored in the session.\n\t\t * 2. Check for a result stored in the database.\n\t\t * 3. Make a new result.\n\t\t */\n\t\t\n\t\tif(TYPO3_MODE=='FE') {\n\t\t\t\n\t\t\t// If we don't have anything in the session, make a new result\n\t\t\tif((!$result = tx_wecassessment_sessiondata::retrieveSessionData($pid))) {\n\t\t\t\tif ($GLOBALS['TSFE']->fe_user->user['uid']) {\n\t\t\t\t\t$type = USER_ASSESSMENT;\n \t\t\t\t\t$feuser_id = $GLOBALS['TSFE']->fe_user->user['uid'];\n\t\t\t\t} else {\n\t\t\t\t\t$type = ANONYMOUS_ASSESSMENT;\n\t\t\t\t\t$feuser_id = $GLOBALS['TSFE']->fe_user->id;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!$result = tx_wecassessment_result::findInDB($feuser_id, $pid)) {\n\t\t\t\t\t$uid = 0;\t\t\t\n\t\t\t\t\t$resultClass = t3lib_div::makeInstanceClassName('tx_wecassessment_result');\n\t\t\t\t\t$result = new $resultClass($uid, $pid, $type, $feuser_id);\t\n\t\t\t\t}\n\t\t\t} \n\t\t} else {\n\t\t\t$result = null;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function getAnswerId()\n {\n if ($this->getAnswers()->count()) {\n return $this->getAnswers()->first()->getOptionId();\n }\n\n return null;\n }", "public function getProcessId(): ?string;", "private function chooseQuestionToAnswer() : void\n {\n $questionId = $this->console->choice(__('Please select question to answer:'), $this->options);\n $this->handleAnswer($questionId ? array_search($questionId, $this->options) : null);\n }", "private function note() {\n\n if ($this->verbose) return call_user_func_array(\"note\", func_get_args());\n }", "function questionAction() {\n // Get question parameter\n $id = $this->_getParam('id');\n if (! $id) {\n // Redirect back to stats when no ID is found\n $this->_redirect(\"/index/stats\");\n return;\n }\n\n // Fetch question\n $mapper = new Model_Question_Mapper();\n $question = $mapper->findByPk($id);\n if (! $question instanceof Model_Question_Entity) {\n $this->render(\"question/notfound\");\n return;\n }\n \n $this->view->question = $question;\n\n switch ($question->getStatus()) {\n case \"moderation\" :\n $this->render(\"question/moderation\");\n break;\n case \"pending\" :\n $this->render(\"question/pending\");\n break;\n case \"active\" :\n $this->render(\"question/active\");\n break;\n case \"done\" :\n $this->render(\"question/done\");\n break;\n default :\n $this->render(\"question/notfound\");\n break;\n }\n }", "public function displayNotAnsweredQuestion()\n {\n\n }", "private function question()\n\t{\n\t\t$this->qns['questionnaire']['questionnairecategories_id'] = $this->allinputs['questioncat'];\n\t\t$this->qns['questionnaire']['questionnairesubcategories_id'] = $this->allinputs['questionsubcat'];\n\t\t$this->qns['questionnaire']['label'] = $this->allinputs['question_label'];\n\n\n\t\t$this->qns['questionnaire']['question'] = $this->allinputs['question'];\n\t\t$this->qns['questionnaire']['has_sub_question'] = $this->allinputs['subquestion'];\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 )\n\t\t{\n\t\t\t$this->qns['answers']['answer_type'] = $this->allinputs['optiontype'];\n\t\t}\n\n\t\t$this->qns['questionnaire']['active'] = 1;\n\n\t\tif( $this->qns['questionnaire']['has_sub_question'] == 0 ){\n\t\t\t//This code must be skipped if sub_question is 1\n\t\t\t$optionCounter = 0;\n\t\t\tforeach ($this->allinputs as $key => $value) {\n\n\t\t\t\tif( str_is('option_*', $key) ){\n\t\t\t\t\t$optionCounter++;\n\t\t\t\t\t$this->qns['answers'][$optionCounter] = ( $this->qns['answers']['answer_type'] == 'opentext' ) ? 'Offered answer text' : $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function getParaId()\n {\n return $this->para_id;\n }", "private function retrieve_id() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->ID ) ) {\n\t\t\t$replacement = $this->args->ID;\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function fetch_the_id() {}", "private function getCurrentID() {\n if ($this->sessionid > 0) {\n\t\t\treturn $this->sessionid;\n\t\t}\n $cookie_id = 0;\n\t\tif (isset($GLOBALS[\"_COOKIE\"][\"sessionid\"])) {\n\t\t\t$cookie_array = explode('|', $GLOBALS[\"_COOKIE\"][\"sessionid\"]);\n\t\t\tif ($cookie_array[0]) {\n\t\t\t\t$cookie_id = $cookie_array[0];\n\t\t\t}\n\t\t}\n\t\treturn $cookie_id;\n }", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "protected function getCurrentPageId() {}", "function subj_ID(){\n\t\tglobal $_CON;\n\t\tif(isset($_GET['this_subject'])){\n\t\t\t$_ID = mysqli_real_escape_string($_CON, $_GET['this_subject']);\n\t\treturn $_ID;\n\t\t}\n\t}", "public function getPidPath();", "function get_post_result($id, $text)\n {\n }", "function get_post_result($id, $text)\n {\n }", "function get_post_result($id, $text)\n {\n }", "function target_add_poll_question($q)\n{\n\t$qid = db_qid('INSERT INTO '. $GLOBALS['DBHOST_TBL_PREFIX'] .'poll_opt (poll_id, name)\n\t\tVALUES('. (int)$q['id'] .', '. _esc($q['name']) .')');\n\treturn $qid;\n}", "public function getID(){\r\n\t\t\treturn $this->id_post;\r\n\t\t}", "public function get_question() {\n\t\t\treturn $this->question;\n\t\t}", "public function getVotePostId(): int {\n\t\treturn ($this->votePostId);\n\t}", "public function reply(){\n\n\t\tif($this->request->is(\"post\")){\n\t\t\t$token = $this->request->data['User']['access_token'];\n\n\t\t\t$user_id = $this->_check($token);\n\t\t\tif(is_numeric($user_id));\n\t\t\telse\n\t\t\t\treturn $user_id;\n\n\t\t\t$this->request->data['Reply']['user_id'] = $user_id;\n\t\t\t$response_id = $this->request->data['Reply']['response_id'];\n\t\t\t$output = array();\n\t\t\t$post = $this->Response->findByid($this->request->data['Reply']['response_id'] , array(\"fields\" => \"message_id\"));\n\n\t\t\tif(!$post){\n\t\t\t\t$output['error'] = \"invalid response_id\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$message_id = $post['Response']['message_id'];\n\t\t\t\tif($this->Response->Reply->save($this->request->data)){\n\t\t\t\t\t$reply = $this->Response->Reply->findByid($this->Response->Reply->id);\n\t\t\t\t\t$output['notice'] = \"Your reply has been submitted!\";\n\t\t\t\t\t$this->firebase->push(\"/messages/\" . $message_id . \"/responses/\" . $response_id . \"/replies/\" , $reply);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$temp = $this->generate_new_token($user_id);\n\t\t\t$output['return'] = $temp['return'];\n\n\t\t\treturn $this->render_response($output);\n\t\t}\n\n\t}", "public function getNextActionId()\n {\n // IMPORTANT: evaluationResult has 3 (not 2) possible values: NULL | YES | NO\n // IMPORTANT: use is_null instead of \"== null\" because [false == null]\n if (is_null($this->evaluationResult)) {\n return null;\n } elseif ($this->evaluationResult) {\n return $this->childYes;\n } else {\n return $this->childNo;\n }\n }", "function _get_comment_reply_id($post = \\null)\n {\n }" ]
[ "0.61139846", "0.6036489", "0.5860119", "0.58509076", "0.5791751", "0.57732755", "0.57375836", "0.57286006", "0.57042944", "0.5665438", "0.5615497", "0.5593824", "0.55016434", "0.54930747", "0.5466239", "0.54382545", "0.54382545", "0.54382545", "0.54382545", "0.54222846", "0.5420826", "0.5402582", "0.538484", "0.53427434", "0.5273358", "0.5235026", "0.52295524", "0.5214125", "0.51949733", "0.5182943", "0.5179657", "0.5128595", "0.5128028", "0.51163566", "0.51147354", "0.51147354", "0.509943", "0.50965494", "0.50823724", "0.507612", "0.50717527", "0.5064282", "0.5055397", "0.50552946", "0.5052512", "0.50501937", "0.50490856", "0.50348353", "0.50337493", "0.5032719", "0.5028506", "0.5026647", "0.501685", "0.5010536", "0.5003234", "0.4999404", "0.4996175", "0.4990998", "0.49861154", "0.49662358", "0.49509802", "0.4945377", "0.4945309", "0.49435148", "0.49364147", "0.49222684", "0.4920826", "0.49113414", "0.48981088", "0.48945722", "0.48933524", "0.48894846", "0.48790935", "0.48758262", "0.48699066", "0.48567206", "0.48553678", "0.4853826", "0.48494294", "0.48456895", "0.48446417", "0.4827777", "0.48276302", "0.48197114", "0.48132366", "0.48120174", "0.48120174", "0.48120174", "0.48111567", "0.4810158", "0.48097873", "0.48097873", "0.48097873", "0.48078185", "0.48062432", "0.48048052", "0.4799399", "0.47947425", "0.47946227", "0.47923422" ]
0.74753225
0
Template function: Current answer permalink (defaults to echo)
function pzdc_answer_permalink($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_attribute_helper('answer', 'permalink', $echo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPermalink();", "function permalink_link()\n {\n }", "public function link() { return site_url().'/'.$this->post->post_name; }", "function post_permalink($post = 0)\n {\n }", "public function get_permalink()\n {\n }", "function the_permalink($post = 0)\n {\n }", "public function actionPermalink()\n {\n $faq_id = $this->_input->filterSingle('faq_id', XenForo_Input::UINT);\n\n $user_id = XenForo_Visitor::getUserId();\n\n $question = $this->_getQuestionModel()->getById($faq_id);\n\n $this->_getQuestionModel()->logQuestionView($faq_id);\n\n // Likes\n $likeModel = $this->_getLikeModel();\n $question['like_users'] = unserialize($question['like_users']);\n $question['like_date'] = $likeModel->getContentLikeByLikeUser('xf_faq_question', $faq_id, $user_id);\n\n $viewParams = array(\n 'question' => $question,\n 'categories' => $this->_getCategoryModel()->getAll(),\n 'canManageFAQ' => $this->_getQuestionModel()->canManageFAQ(),\n 'canLikeFAQ' => $this->_getQuestionModel()->canLikeFAQ(),\n );\n\n return $this->getWrapper('faq', 'x', $this->responseView('Iversia_FAQ_ViewPublic_Permalink', 'iversia_faq_question', $viewParams));\n }", "function permalink_anchor($mode = 'id')\n {\n }", "function post_slug($display = true) {\n\t\tif($display) echo $_GET['page'];\n\t\treturn $_GET['page'];\n\t}", "function get_permalink($post = 0, $leavename = \\false)\n {\n }", "function rdf_permalink( $my_post ) {\n $permalink = site_url( ) . \"?ps_articles=\" . $my_post->post_name;\n return( $permalink );\n}", "function do_permalink($atts) {\n\textract(shortcode_atts(array(\n\t\t'id' => 1,\n\t\t'text' => \"\" // default value if none supplied\n\t), $atts));\n\n\tif ($text) {\n\t\t$url = get_permalink($id);\n\t\treturn \"<a href='$url'>$text</a>\";\n\t} else {\n\t\treturn get_permalink($id);\n\t}\n}", "function getPermalink() {\n\t\treturn $this->get(\"permalink\");\n\t}", "function get_the_permalink($post = 0, $leavename = \\false)\n {\n }", "function get_post_permalink($post = 0, $leavename = \\false, $sample = \\false)\n {\n }", "function wp_wikipedia_excerpt_substitute($match){\n #Mike Lay of http://www.mikelay.com/ suggested query.\n return '<a href=\"http://www.wikipedia.org/search-redirect.php?language=en&go=Go&search='.urlencode($match[1]).'\">'.$match[1].'</a>';\n}", "function qa_self_html()\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\tglobal $qa_used_url_format;\n\n\treturn qa_path_html(qa_request(), $_GET, null, $qa_used_url_format);\n}", "public function using_permalinks()\n {\n }", "function hub_edit_sample_permalink_html( $return, $id, $new_title, $new_slug ) {\r\n $post = get_post( $id );\r\n if ( $post && 'hubpage' == $post->post_type ) {\r\n $return = '<strong>' . __( 'Permalink:' ) . '</strong> ' . '<span id=\"sample-permalink\" tabindex=\"-1\">' . wpc_client_get_slug( 'hub_page_id' ) . '</span>';\r\n $return .= ' <span id=\"view-post-btn\"><a href=\"'. wpc_client_get_slug( 'hub_page_id' ) . $post->ID .'\" target=\"_blank\" class=\"button button-small\">Preview</a></span>';\r\n }\r\n return $return;\r\n }", "function learn_press_single_quiz_question() {\n\t\tlearn_press_get_template( 'content-quiz/content-question.php' );\n\t}", "function langdoc_preview_url($currentfile) {\n if (substr($currentfile, 0, 5) == 'help/') {\n $currentfile = substr($currentfile, 5);\n $currentpathexp = explode('/', $currentfile);\n if (count($currentpathexp) > 1) {\n $url = '/help.php?module='.$currentpathexp[0].'&amp;file='.$currentpathexp[1];\n } else {\n $url = '/help.php?module=moodle&amp;file='.$currentfile;\n }\n } else {\n $url = '';\n }\n return $url;\n}", "function the_terms_conditions_url(){\n $pages = get_pages(array(\n 'meta_key' => '_wp_page_template',\n 'meta_value' => 'terms-conditions.php'\n ));\n $id = $pages[0]->ID;\n echo get_permalink($id);\n}", "public function getPermalink()\n {\n return $this->permalink = $this->get()->guid;\n }", "public function label() {\n\t\t\t\n\t\t\t$option = get_theme_option('blog_options', 'post_link_option');\n\n\t\t\tswitch ($option) {\n\t\t\t\tcase '1':\n\t\t\t\t\n\t\t\t\t\t$output = __('Read more', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '2':\n\t\t\t\t\n\t\t\t\t\t$output = __('Continue reading', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '3':\n\t\t\t\t\n\t\t\t\t\t$output = __('See full article', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '4':\n\t\t\t\t\n\t\t\t\t\t$output = __('Read this post', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '5':\n\t\t\t\t\n\t\t\t\t\t$output = __('Learn more', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\n\t\t\t\t\t$output = empty($list_link) ? __('Read more', 'theme translation') : $list_link;\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\treturn $output;\n\t\t}", "public function permalink()\n {\n $permalink = get_permalink($this->wpPost);\n\n return $this->setAttribute(__METHOD__, $permalink);\n }", "function get_page_link($post = \\false, $leavename = \\false, $sample = \\false)\n {\n }", "function _get_page_link($post = \\false, $leavename = \\false, $sample = \\false)\n {\n }", "public function get_permalink() {\n\t\treturn apply_filters( 'the_permalink', get_permalink( $this->get_id() ) );\n\t}", "function html5_blank_view_article($more)\n{\n global $post;\n // return '... <a class=\"view-article\" href=\"' . get_permalink($post->ID) . '\">' . __('View Article', 'html5blank') . '</a>';\n return '...';\n}", "function learn_press_single_quiz_result() {\n\t\tlearn_press_get_template( 'content-quiz/result.php' );\n\t}", "function get_sample_permalink_html($post, $new_title = \\null, $new_slug = \\null)\n {\n }", "public function getPermalink()\n {\n return $this->permalink;\n }", "function current_path() {\n\t$test = $_GET['q'];\n\techo '$test';\n}", "function home_url($taal = null)\n{\n if (IS_MEERTALIG) :\n return pll_home_url($taal);\n else :\n return get_site_url();\n endif;\n}", "public function getBlogUrl()\n {\n return '<a href=\"https://cart2quote.zendesk.com/hc/en-us/articles/360028730291-No-Custom-Form-Request\"->__(Here)</a>';\n }", "public function __invoke()\r\n {\r\n $string = '';\r\n\r\n foreach($this->posts as $post)\r\n {\r\n $url = $this->view->myUrl('blog/default/query', array('action' => 'view', 'title' => urlencode($post->getTitle())));\r\n $string .= sprintf('<li><a title=\"%s\" href=\"%s\">%s</a></li>', $post->getTitle(), $url, $post->getTitle());\r\n }\r\n\r\n return $string;\r\n }", "function wp_ajax_sample_permalink()\n {\n }", "function acf_get_current_url()\n{\n}", "function shorthand_connect_help($path, $arg) {\n switch ($path) {\n case \"admin/help#shorthand_connect\":\n return '' . t(\"A module that allows the publishing of Shorthand stories directly to Drupal.\") . '';\n break;\n }\n}", "function get_title() {\n\t\tglobal $Thesaurus;\n\t\tif (isset($_GET['p'])) {\n\t\t\techo ucwords($_GET['p']);\n\t\t} else if (isset($_GET['cat'])) {\n\t\t\techo ucwords($Thesaurus[$_GET['cat']]['T']);\n\t\t} else {\n\t\t\techo 'Home';\n\t\t}\n\t}", "function helpLink() {\n\t\t// By default it's an (external) URL, hence not a valid Title.\n\t\t// But because MediaWiki is by nature very customizable, someone\n\t\t// might've changed it to point to a local page. Tricky!\n\t\t// @see https://phabricator.wikimedia.org/T155319\n\t\t$helpPage = $this->msg( 'helppage' )->inContentLanguage()->plain();\n\t\tif ( preg_match( '/^(?:' . wfUrlProtocols() . ')/', $helpPage ) ) {\n\t\t\t$helpLink = Linker::makeExternalLink(\n\t\t\t\t$helpPage,\n\t\t\t\t$this->msg( 'help' )->plain()\n\t\t\t);\n\t\t} else {\n\t\t\t$helpLink = MediaWikiServices::getInstance()->getLinkRenderer()->makeKnownLink(\n\t\t\t\tTitle::newFromText( $helpPage ),\n\t\t\t\t$this->msg( 'help' )->text()\n\t\t\t);\n\t\t}\n\t\treturn $helpLink;\n\t\t// This doesn't work with the default value of 'helppage' which points to an external URL\n\t\t// return $this->footerLink( 'help', 'helppage' );\n\t}", "function wpt_current_url()\n{\n global $wp;\n return home_url($wp->request);\n}", "public function permalink( $permalink ) {\n\t\treturn $this->args['permalink'];\n\t}", "public function link()\n\t{\n\t\treturn route('balldeep.posts.show', [$this->type->slug, $this->slug]);\n\t}", "function getHelpUrl()\n{\n global $_CONF;\n\n $retval = '';\n\n $doclang = COM_getLanguageName();\n $docs = 'docs/' . $doclang . '/trackback.html';\n if (file_exists($_CONF['path_html'] . $docs)) {\n $retval = $_CONF['site_url'] . '/' . $docs;\n } else {\n $retval = $_CONF['site_url'] . '/docs/english/trackback.html';\n }\n\n return $retval;\n}", "function the_link() {\n\tglobal $discussion;\n\treturn BASE . 'discussion' . DS . discussion::encode_title($discussion['title']);\n}", "function foucs_patination_single_posts_title() {?>\n <div class=\"prev-post\">\n <?php\n if (get_previous_post_link()) {\n previous_post_link('%link', '<i class=\"fas fa-angle-double-left\"></i> %title');\n } else {\n echo '<span class=\"prev-masg\">This is Last Post</span>';\n }\n ?>\n </div>\n <div class=\"nxt-post\">\n <?php\n if(get_next_post_link()) {\n next_post_link('%link', '%title <i class=\"fas fa-angle-double-right\"></i>');\n } else {\n echo '<span class=\"nex-masg\">This is Last Post</span>';\n }\n ?>\n </div>\n <?php\n}", "function next_post_link($format = '%link &raquo;', $link = '%title', $in_same_term = \\false, $excluded_terms = '', $taxonomy = 'category')\n {\n }", "function paper_wasp_edit_link( WP_Post $post = null ) {\n\n\tif ( is_null( $post ) ) {\n\t\t$post = get_post();\n\t}\n\n\treturn add_query_arg( 'paper-wasp', 1, get_permalink( $post ) );\n}", "function url_admin_post(): string\n{\n return \\admin_url('admin-post.php');\n}", "static function post_tag($p) {\n\t\techo '<a href=\"' . get_permalink($p->ID) . '\">' . $p->post_title . '</a>';\n\t}", "function html5_blank_view_article($more)\n{\n global $post;\n return '... <a class=\"view-article\" href=\"' . get_permalink($post->ID) . '\">' . __('View Article', 'oh') . '</a>';\n}", "function formatCurrentUrl() ;", "function post_link($post){\n if(strcasecmp($post->post_type, 'primary_page') == 0){\n return e($post->post_slug);\n }else{\n return strtolower($post->category_name). '/' . e($post->post_slug);\n }\n}", "function template_url($val='')\n {\n echo get_template_url($val);\n }", "function currentUrl($value='')\n\t{\n\t \treturn 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];\n\t}", "public function urlAlias()\n {\n $useURLAlias =& $GLOBALS['eZContentObjectTreeNodeUseURLAlias'];\n $ini = eZINI::instance();\n $cleanURL = '';\n \n if ( !isset( $useURLAlias ) )\n {\n $useURLAlias = $ini->variable( 'URLTranslator', 'Translation' ) == 'enabled';\n }\n \n if ( $useURLAlias )\n {\n $aliases = eZURLAliasML::fetchByAction('module', 'topic/view/'.$this->attribute('id'));\n if (count($aliases))\n {\n $cleanURL = $this->forumNode()->urlAlias().'/'.$aliases[0]->attribute('text');\n }\n else\n {\n $cleanURL = 'topic/view/'.$this->attribute('id');\n } \n }\n else\n {\n $cleanURL = 'topic/view/'.$this->attribute('id');\n }\n \n return $cleanURL;\n }", "public static function HookPermalink()\r\n\t{\r\n\t\tif( is_null( self::$HookPermalink ) )\r\n\t\t\tself::$HookPermalink = \\get_permalink( self::HookID() );\r\n\t\t\r\n\t\treturn self::$HookPermalink;\r\n\t}", "function ld_reply_link( $id = 0, $reply = 0, $page = 1 ) {\r\n\techo apply_filters( 'topic_link', ld_get_reply_link($id, $reply), $id );\r\n}", "function suggestion_link($locum_result) {\n $url_prefix = variable_get('sopac_url_prefix', 'cat/seek');\n $sugg_link = l($locum_result['suggestion'], $url_prefix . '/search/' . $locum_result['type'] . '/' . $locum_result['suggestion'],\n array('query' => sopac_make_pagevars(sopac_parse_get_vars())));\n return $sugg_link;\n}", "public function url()\n\t{\n\t\treturn Url::to(\"review/\".$this->id.\"/\".$this->slug.\"/\".Session::get('Lang'));\n\t}", "function wp_force_plain_post_permalink($post = \\null, $sample = \\null)\n {\n }", "function barjeel_excerpt($more) {\n global $post;\n return '&nbsp; &nbsp;<a href=\"'. get_permalink($post->ID) . '\">...Continue Reading</a>';\n}", "public function diviroids_permalink($atts)\n {\n extract(shortcode_atts(array( 'slug' => null, 'title' => null, 'target' => null, 'class' => null ), $atts));\n\n $page = get_page_by_path($slug);\n\n $output = sprintf(\n '<a href=\"%1$s\" title=\"%2$s\"%3$s%4$s>%2$s</a>',\n get_permalink($page->ID),\n empty($title) ? get_the_title($page) : $title,\n !empty($target) ? ' target=\"'. $target .'\"' : '',\n !empty($class) ? ' class=\"'. $class .'\"' : ''\n );\n\n return $output;\n }", "public function getUrl() {\n return \"posts.php?p=\" . $this->id . \"&u=\" . $this->userId;\n }", "function get_buzz_url($aliasname) {\n $buzz_page_alias = get_option(\"buzz_page_alias\");\n return get_page_link($buzz_page_alias[$aliasname]);\n}", "function topic_link($tdetails) {\n if (SEO == yes)\n return BASEURL . '/view_topic/' . SEO($tdetails['topic_title']) . '_tid_' . $tdetails['topic_id'];\n else\n return BASEURL . '/view_topic.php?tid=' . $tdetails['topic_id'];\n }", "function getPage()\r\n{\r\n if (isPosted())\r\n {\r\n return getPostVar(\"page\",\"home\"); \r\n } \r\n else \r\n {\r\n return getUrlVar(\"page\",\"home\");\r\n } \r\n}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "function get_permalink_by_name($page_name) {\n global $post;\n global $wpdb;\n $pageid_name = $wpdb->get_var(\"SELECT ID FROM $wpdb->posts WHERE post_title = '\" . $page_name . \"' LIMIT 0, 1\");\n return get_permalink($pageid_name);\n}", "function cp_getClaimedTrailPermalink($type='', $uid=0, $points=0, $data='')\n{ \n\t$claimed_trail_info = get_post_meta($data,\"am_action_info_\".$uid,true);\n\t$original_trail_info = explode(\":\",$claimed_trail_info);\n\techo __('Claimed Trail ', 'cp'). get_the_title($original_trail_info[2]). ' \"<a href=\"'.get_permalink( $data ).'\">here</a>\"';\n}", "function news_link() {\n global $wp;\n $current_url = home_url(add_query_arg(array(),$wp->request));\n if (stripos($current_url, 'th') !== false) {\n $page = get_page_by_path('news-events-th');\n } else {\n $page = get_page_by_path('news-events');\n }\n the_permalink($page);\n}", "function learn_press_redirect_to_question( $template ) {\n\tglobal $post_type;\n\tif ( is_single() && $post_type == LP_QUIZ_CPT ) {\n\t\t$user = learn_press_get_current_user();\n\t\t$quiz_id = get_the_ID();\n\t\t$quiz_status = $user->get_quiz_status( $quiz_id );\n\t\tif ( $quiz_status == 'started' && learn_press_get_quiz_time_remaining( $user->get_id(), $quiz_id ) == 0 && get_post_meta( $quiz_id, '_lpr_duration', true ) ) {\n\t\t\t$user->finish_quiz( $quiz_id );\n\t\t\t$quiz_status = 'completed';\n\t\t}\n\t\t$redirect = null;\n\t\tif ( learn_press_get_request( 'question' ) && $quiz_status == '' ) {\n\t\t\t$redirect = get_the_permalink( $quiz_id );\n\t\t} elseif ( $quiz_status == 'started' ) {\n\t\t\tif ( learn_press_get_request( 'question' ) ) {\n\t\t\t} else {\n\t\t\t\t$redirect = learn_press_get_user_question_url( $quiz_id );\n\t\t\t}\n\t\t} elseif ( $quiz_status == 'completed' && learn_press_get_request( 'question' ) ) {\n\t\t\t$redirect = get_the_permalink( $quiz_id );\n\t\t}\n\t\tif ( $redirect && ! learn_press_is_current_url( $redirect ) ) {\n\t\t\twp_redirect( $redirect );\n\t\t\texit();\n\t\t}\n\t}\n\n\treturn $template;\n}", "public function show_path()\n\t{\n\t\treturn url::site($this->id . '/' . $this->title);\n\t}", "function emc_learn_more_link() {\r\n\r\n\t$more = sprintf( '<a href=\"%1$s\" title=\"%2$s\">%3$s</a>',\r\n\t\tget_permalink(),\r\n\t\tesc_attr__( 'View full post', 'emc' ),\r\n\t\tesc_html__( '&nbsp;&nbsp;More&nbsp;&rarr;', 'emc' )\r\n\t);\r\n\treturn $more;\r\n\r\n}", "public function url()\n {\n return '/' . $this->currlang();\n }", "function wp_guess_url()\n {\n }", "function care_get_current_template( $echo = false ) {\n if( !isset( $GLOBALS['care_current_theme_template'] ) )\n return false;\n if( $echo )\n echo $GLOBALS['care_current_theme_template'];\n else\n return $GLOBALS['care_current_theme_template'];\n}", "function href() {\n\t\t$usemodrewrite = polarbear_setting('usemodrewrite');\n\t\tif ($usemodrewrite) {\n\t\t\treturn $this->fullpath();\n\t\t} else {\n\t\t\treturn $this->templateToUse() . '?polarbear-page=' . $this->getId();\n\t\t}\n\t}", "function my_loginfooter() { ?>\n\t<p class=\"login-addition\">Not yet a registered learner?<br>\n\t\t<a href=\"<?php echo home_url(); ?>/register\">Find out how to register</a>\n\t</p>\n<?php }", "function echotheme_continue_reading_link() {\n\treturn ' <a href=\"'. esc_url(get_permalink()) . '\">' . __('Continue reading <span class=\"meta-nav\">&rarr;</span>', 'echotheme') . '</a>';\n}", "public function how()\n {\n $page = Page::where('slug', 'how_it_works')->first();\n return View::make('front.pages.detail')->with('page', $page);\n }", "protected function renderCurrentUrl() {}", "protected function renderCurrentUrl() {}", "function link_to_home_page($text = null, $props = array())\n{\n if (!$text) {\n $text = option('site_title');\n }\n return '<a href=\"' . html_escape(WEB_ROOT) . '\" '. tag_attributes($props) . '>' . $text . \"</a>\\n\";\n}", "function get_edit_post_link($post = 0, $context = 'display')\n {\n }", "function post_url($post){\n return strtolower($post->category_name). '/' . e($post->post_slug);\n}", "function get_post_permalink($postid){\n if(defined('CLEANURLS')){\n return str_replace('%postid%',$postid,URL_POST);\n }\n else{\n return BLOGURL.'?postid='.$postid;\n }\n }", "function wp_ajax_get_permalink()\n {\n }", "function fantacalcio_get_back($url, $arg_1, $arg_2 = \"\") {\n if (!empty($arg_2))\n $url .= \"/\" . $arg_1;\n \n return \"<br/><p>\" . l(\"&laquo; Indietro\", $url, array(\"html\" => TRUE)) . \"</p>\";\n}", "function darksnow_continue_reading_link() {\n\treturn ' <a href=\"'. esc_url( get_permalink() ) . '\">' . __( 'Continue reading <span class=\"meta-nav\">&rarr;</span>', 'darksnow' ) . '</a>';\n}", "function link_to_admin_home_page($text = null, $props = array())\n{\n if (!$text) {\n $text = option('site_title');\n }\n return '<a href=\"' . html_escape(admin_url('')) . '\" ' . tag_attributes($props)\n . '>' . $text . \"</a>\\n\";\n}", "function smarty_function_mtlink($args, &$ctx) {\n // status: incomplete\n // parameters: template, entry_id\n static $_template_links = array();\n $curr_blog = $ctx->stash('blog');\n if (isset($args['template'])) {\n if (!empty($args['blog_id']))\n $blog = $ctx->mt->db()->fetch_blog($args['blog_id']);\n else\n $blog = $ctx->stash('blog');\n\n $name = $args['template'];\n $cache_key = $blog->id . ';' . $name;\n if (isset($_template_links[$cache_key])) {\n $link = $_template_links[$cache_key];\n } else {\n $tmpl = $ctx->mt->db()->load_index_template($ctx, $name, $blog->id);\n $site_url = $blog->site_url();\n if (!preg_match('!/$!', $site_url)) $site_url .= '/';\n $link = $site_url . $tmpl->template_outfile;\n $_template_links[$cache_key] = $link;\n }\n if (!$args['with_index']) {\n $link = _strip_index($link, $curr_blog);\n }\n return $link;\n } elseif (isset($args['entry_id'])) {\n $arg = array('entry_id' => $args['entry_id']);\n list($entry) = $ctx->mt->db()->fetch_entries($arg);\n $ctx->localize(array('entry'));\n $ctx->stash('entry', $entry);\n $link = $ctx->tag('EntryPermalink',$args);\n $ctx->restore(array('entry'));\n if ($args['with_index'] && preg_match('/\\/(#.*)$/', $link)) {\n $index = $ctx->mt->config('IndexBasename');\n $ext = $curr_blog->blog_file_extension;\n if ($ext) $ext = '.' . $ext; \n $index .= $ext;\n $link = preg_replace('/\\/(#.*)?$/', \"/$index\\$1\", $link);\n }\n return $link;\n }\n return '';\n}", "function insert_btn_detail(){\n\t?>\n\t<div class=\"text-center wrap-detail\">\n\t\t<a href=\"<?php the_permalink( );?>\" title=\"<?php _e( 'View detail', 'shtheme' );?>\">\n\t\t\t<?php _e( 'View detail', 'shtheme' );?>\n\t\t</a>\n\t</div>\n\t<?php\n}", "function button_value() {\n global $wp;\n $current_url = home_url(add_query_arg(array(),$wp->request));\n if (stripos($current_url, 'th') !== false) {\n echo('อ่านต่อ');\n } else {\n echo('Read more');\n }\n}" ]
[ "0.66432995", "0.6549428", "0.65475965", "0.6538208", "0.63893497", "0.634041", "0.6335962", "0.63190335", "0.630486", "0.6280863", "0.6227607", "0.62250435", "0.6130315", "0.6124214", "0.6075038", "0.6060774", "0.6022322", "0.60178685", "0.5987883", "0.5967236", "0.5951831", "0.5907885", "0.58844835", "0.5880754", "0.5853361", "0.5838569", "0.5835739", "0.58025944", "0.58018374", "0.5792398", "0.57859266", "0.57796484", "0.577071", "0.5767751", "0.57650477", "0.57527995", "0.57463276", "0.5740658", "0.5727018", "0.57116073", "0.5691683", "0.5688435", "0.5659788", "0.5633042", "0.56216335", "0.5613949", "0.5612429", "0.56055164", "0.5603233", "0.5600163", "0.5599383", "0.5588435", "0.55870813", "0.5586069", "0.5582231", "0.55780786", "0.5577846", "0.55742824", "0.55692524", "0.55663496", "0.556374", "0.5560955", "0.5548416", "0.5519008", "0.55173385", "0.5517284", "0.5509856", "0.55091256", "0.5506309", "0.5506309", "0.5506309", "0.5506309", "0.5506309", "0.5506309", "0.55053794", "0.5500253", "0.54995507", "0.5495631", "0.5494487", "0.5491493", "0.54898137", "0.54871297", "0.54727155", "0.547007", "0.54699326", "0.546213", "0.5462031", "0.54535365", "0.54535365", "0.5450122", "0.5449013", "0.5442033", "0.54413265", "0.5438757", "0.54358214", "0.54337126", "0.54311895", "0.5429311", "0.5428164", "0.5427569" ]
0.6914216
0
Template function: Current answer content (defaults to echo)
function pzdc_answer_content($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_answer_content($echo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function learn_press_single_quiz_result() {\n\t\tlearn_press_get_template( 'content-quiz/result.php' );\n\t}", "public function index()\n {\n return $this->renderTemplate('index', array(\n 'answerToLife' => 42\n ));\n }", "function ipal_show_current_question(){\r\n\tglobal $DB;\r\n\tglobal $ipal;\r\n\t if($DB->record_exists('ipal_active_questions', array('ipal_id'=>$ipal->id))){\r\n\t $question=$DB->get_record('ipal_active_questions', array('ipal_id'=>$ipal->id));\r\n\t $questiontext=$DB->get_record('question',array('id'=>$question->question_id)); \r\n\techo \"The current question is -> \".strip_tags($questiontext->questiontext);\r\nreturn(1);\r\n\t }\r\n\telse\r\n\t {\r\n\t return(0);\r\n\t }\r\n}", "function showContent()\n {\n if (!empty($this->error)) {\n $this->element('p', 'error', $this->error);\n }\n\n if ($this->boolean('ajax')) {\n $this->showAjaxReviseForm();\n } else {\n $form = new QnareviseanswerForm($this->answer, $this);\n $form->show();\n }\n\n return;\n }", "protected function output() {\n\t\treturn $this->before() . $this->option( 'content' ) . $this->after();\n\t}", "function printSaying() {\n\n //show the view\n echo Template::instance()->render('views/saying.php');\n }", "function showAnswers()\n\t{\n\t\tif($this->TotalAnswers != 1){$s = 's';}else{$s = '';} #add 's' only if NOT one!!\n\t\techo \"<em>[\" . $this->TotalAnswers . \" answer\" . $s . \"]</em> \"; \n\t\tforeach($this->aAnswer as $answer)\n\t\t{#print data for each\n\t\t\techo \"<em>(\" . $answer->AnswerID . \")</em> \";\n\t\t\techo $answer->Text . \" \";\n\t\t\tif($answer->Description != \"\")\n\t\t\t{#only print description if not empty\n\t\t\t\techo \"<em>(\" . $answer->Description . \")</em>\";\n\t\t\t}\n\t\t}\n\t\tprint \"<br />\";\n\t}", "public function get_content_plain()\n {\n\n ob_start();\n RP_SUB_Help::include_template($this->template_plain, array_merge($this->template_variables, array('plain_text' => true)));\n return ob_get_clean();\n }", "private function printAnswerPage() {\n\t\t$correctVocabulary = 0;\n\t\t$wrongVocabulary = 1;\n\t\tinclude ('html/vocabularyAnswer.php');\n\t}", "public function answer() {\n\n\t\t/**\n\t\t * Fires right before giving the answer.\n\t\t */\n\t\tdo_action( self::ACTION );\n\n\t\t/**\n\t\t * Filters the answer.\n\t\t *\n\t\t * @param string $answer The answer.\n\t\t */\n\t\treturn (string) apply_filters( self::FILTER, '42' );\n\t}", "function learn_press_single_quiz_question() {\n\t\tlearn_press_get_template( 'content-quiz/content-question.php' );\n\t}", "public function show(Answer $Answer)\n {\n echo \"bakhtawar123\";exit();\n //\n }", "function displayValue(\\Jazzee\\Entity\\Answer $answer);", "function show_parsed(){ // parsing template (if needed) and showing the result of parsing\n\tif (isset($this->result)) echo $this->result;\n\telse {\n\t\t$this->parse();\n\t\techo $this->result;\n\t}\n}", "function show()\r\n\t{\r\n\t\t?>\r\n\r\n\t\t<button class='textlayout' type=\"submit\" name=\"itemtoedit\" value=\"<?php echo $this->orderno ?>\" >\r\n\t\t\t<p>\r\n\t\t\t<span style='font-weight:bold'><?php echo $this->orderno . \". \" . $this->question ; ?></span>\r\n\t\t\t<span style='font-weight:normal'>(<?php echo $this->typeshort; ?>)</span><br>\r\n\t\t\t<span><?php $n = 1; foreach($this->answers as $answerobject){if ($n > 1){echo \", \";}$n ++;echo $answerobject->answer;}?></span>\r\n\t\t\t</p>\r\n\t\t</button><br>\r\n\t\t\r\n\t\t<?php \r\n\t}", "function sensei_custom_lesson_quiz_text () {\n\t$text = \"Report What You Have Learned\";\n\treturn $text;\n}", "public function show()\n {\n //\n return 'Rosie can i have a dance';\n }", "public function render()\n {\n return $this->mathExercise;\n }", "public function display() {\r\n echo $this->template;\r\n }", "function getAnswerText(){\r\n\t\tif($this->inDB==false||$this->answer==null){\r\n\t\t\t$type = $this->dbq->getAnswerType($this->answer_id);\r\n\t\t\tif($type==3 || $type==7 || $type==8){\r\n\t\t\t\t$io = new FileIOHandler();\r\n\t\t\t\t$this->answer=$io->MediaRead($type,$this->answer_id);\r\n\t\t\t}else{\r\n\t\t\t\t$temp = $this->dbq->getAnswer($this->answer_id);\r\n\t\t\t\t$num=mysql_numrows($temp);\r\n\t\t\t\t\tif($num==1){\r\n\t\t\t\t\t\tif($type==1){\r\n\t\t\t\t\t\t\t$this->answer=mysql_result($temp,0,\"text\");\r\n\t\t\t\t\t\t}elseif($type== 2 || $type==4 || $type==5 || $type==9){\r\n\t\t\t\t\t\t\t$this->answer=mysql_result($temp,0,\"num\");\t\t\t\t\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\treturn false;\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\treturn $this->answer;\t\t\r\n\t}", "function display_short_answer_form($question_num){\r\n include(\"variables.inc\");\r\n\tif($question_num == 0) $question_num = 1;\r\n echo(\"\\t<TABLE WIDTH=\\\"$table_width\\\">\\n\");\r\n echo(\"\\t\\t<TR>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"50\\\"><P>\" . $question_num . \")</P></TD>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"580\\\"> \\n\\t\\t\\t\\t\\n\");\r\n echo(\"\\t\\t\\t\\t<INPUT TYPE=\\\"text\\\" NAME=\\\"question_A\\\" SIZE=\\\"85\\\">\\n\");\r\n echo(\"\\t\\t\\t</TD>\\n\");\r\n echo(\"\\t\\t</TR>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"50\\\">Solution:</TD>\\n\");\r\n echo(\"\\t\\t\\t<TD WIDTH=\\\"580\\\"> \\n\\t\\t\\t\\t\\n\");\r\n echo(\"\\t\\t\\t\\t<TEXTAREA NAME=\\\"answer_A\\\" cols=\\\"65\\\" rows=\\\"10\\\"></textarea>\\n\");\r\n echo(\"\\t\\t\\t</TD>\\n\");\r\n echo(\"\\t\\t</TR>\\n\");\r\n echo(\"\\t\\t<TD COLSPAN=\\\"2\\\"></TD>\\n\");\r\n echo(\"\\t\\t</TR>\\n\");\r\n echo(\"\\t</TABLE>\\n\"); \r\n}", "public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}", "function printContent($input){\n\t\techo $input;\n\t}", "function render_text_question($label, $input, $additionaltext=\"\", $numeric=false, $extra=\"\", $current=\"\")\n {\n\t?>\n\t<div class=\"Question\" id = \"pixelwidth\">\n\t\t<label><?php echo $label; ?></label>\n\t\t<div>\n\t\t<?php\n\t\techo \"<input name=\\\"\" . $input . \"\\\" type=\\\"text\\\" \". ($numeric?\"numericinput\":\"\") . \"\\\" value=\\\"\" . $current . \"\\\"\" . $extra . \"/>\\n\";\n\t\t\t\n\t\techo $additionaltext;\n\t\t?>\n\t\t</div>\n\t</div>\n\t<div class=\"clearerleft\"> </div>\n\t<?php\n\t}", "public function execute()\n {\n return $this->renderMyQuestionsAdminPage(__('Questions'));\n }", "abstract protected function displayContent();", "function ipal_display_student_interface(){\r\n\tglobal $DB;\r\n\tipal_java_questionUpdate();\r\n\t$priorresponse = '';\r\n\tif(isset($_POST['answer_id'])){\r\n\t if($_POST['answer_id'] == '-1'){\r\n\t \t$priorresponse = \"\\n<br />Last answer you submitted: \".strip_tags($_POST['a_text']);\r\n\t }\r\n\t else\r\n\t {\r\n\t $answer_id = $_POST['answer_id'];\r\n\t\t $answer = $DB->get_record('question_answers', array('id'=>$answer_id));\r\n\t\t //$answer = $DB\r\n\t\t $priorresponse = \"\\n<br />Last answer you submitted: \".strip_tags($answer->answer);\r\n\t }\r\n\t ipal_save_student_response($_POST['question_id'],$_POST['answer_id'],$_POST['active_question_id'],$_POST['a_text']);\r\n\t}\r\n echo $priorresponse;\r\n ipal_make_student_form();\t\r\n}", "function setup_question($question,$answer){\n $htmlStr = '<p class=\"question\">'.$question.'</p>';\n $htmlStr .= '<p class=\"answer\">'.nl2br($answer).'</p>';\n return $htmlStr;\n}", "public function showResults(){\n $this->extractQuestions();\n }", "public function display()\n {\n return 'I am a mallard duck';\n }", "function difundir() {\n $frase = $this->obtener_frase();\n echo $frase;\n }", "function showQuestions()\n {\n if($this->TotalQuestions > 0)\n {#be certain there are questions\n foreach($this->aQuestion as $question)\n {#print data for each \n\n echo '\n\n <div class=\"panel panel-primary\">\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">' . $question->Text . '</h3>\n </div>\n <div class=\"panel-body\">\n <p>' . $question->Description . '</p>\n ' . $question->showAnswers() . ' \n </div>\n </div>\n\n ';\n\n }\n }else{\n echo \"There are currently no questions for this survey.\";\t\n } \n\t}", "public function answer()\n {\n $answer = \\App\\Answer::orderby('created_at', 'desc')->get();\n return view('answer.get', [\n 'answers' => $answer,\n ]);\n }", "function displayThankYou(){\n?>\n <h1>Multi-page Survey Application</h1>\n <h3>Thank You</h3>\n <p>You've successfully completed this survey!</p>\n <p>- Michelle Estanol</p>\n <?php\n}", "function formatQA( $question, $answer ) {\n return \"> {$question}\\n{$answer}\";\n}", "public function output() {\n\n if (!file_exists($this->view)) {\n \treturn \"Voeg eerst een template toe ($this->view).<br />\";\n }\n $output = file_get_contents($this->view);\n \n foreach ($this->variabeles as $key => $variable) {\n \t$tagToReplace = \"[@$key]\";\n \t$output = str_replace($tagToReplace, $variable, $output);\n }\n\n return $output;\n }", "public function display_current()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" display ? ?\");\n\t}", "public function OutputAnswer($userid = 0)\n\t{\tob_start();\n\t\tif ($this->details['qanswer'])\n\t\t{\techo '<div class=\"qanswerText\">', stripslashes($this->details['qanswer']), '</div>';\n\t\t}\n\t\tif ($mmlist = $this->GetMultiMedia())\n\t\t{\tforeach ($mmlist as $mm_row)\n\t\t\t{\t$mm = new Multimedia($mm_row);\n\t\t\t\techo '<div class=\"qanswerMM\">', $mm->Output(635, 380), '</div>';\n\t\t\t}\n\t\t}\n\t\t$comment = new StudentComment();\n\t\t$comments = new StudentComments('askimamquestions', $this->id);\n\t\tif ($this->CommentsOpen())\n\t\t{\techo '<div id=\"yourReviewContainer\">', $comment->CreateForm($this->id, 'askimamquestions', $userid > 0), '</div><div class=\"clear\"></div>';\n\t\t} else\n\t\t{\techo '<p>This question is now closed to further comments.</p>';\n\t\t}\n\t\techo '<div id=\"prodReviewListContainer\">', $comments->OutputList(2), '</div>';\n\t\treturn ob_get_clean();\n\t}", "public function displayNotAnsweredQuestion()\n {\n\n }", "public function get_content_html()\n {\n\n ob_start();\n RP_SUB_Help::include_template($this->template_html, array_merge($this->template_variables, array('plain_text' => false)));\n return ob_get_clean();\n }", "function writequestion($question) {\n /// must be overidden\n\n echo \"<p>This quiz format has not yet been completed!</p>\";\n\n return NULL;\n }", "public function question_content() {\r\n $this->check_permission(19);\r\n $content_data['add'] = $this->check_page_action(19, 'add');\r\n\r\n $this->quick_page_setup(Settings_model::$db_config['adminpanel_theme'], 'adminpanel', $this->lang->line('question_content'), 'operation/question_content', 'header', 'footer', '', $content_data);\r\n }", "function myText(){\n\t\n\n\techo '<h1>before subForums</h1>';\n\t\n\n}", "protected function get_current_question_text(): string {\n $submitteddata = optional_param_array('questiontext', '', PARAM_RAW);\n if ($submitteddata) {\n // Form has been submitted, but it being re-displayed.\n return $submitteddata['text'];\n }\n if (isset($this->question->id)) {\n // Form is being loaded to edit an existing question.\n return $this->question->questiontext;\n }\n // Creating new question.\n return '';\n }", "public function display ()\n {\n echo $this->as_text ();\n }", "public function _Render() {\n $form_instance = $this->form_instance;\n // Return the contents\n return '3/15 Questions Answered';\n }", "function printContent()\t{\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\t\techo $this->content;\n\t}", "public function output_markup()\n\t\t{\t\t\t\n\t\t\techo $this->markup;\n\t\t\t\n\t\t}", "function output_markup();", "public function showContents() {\n\t\techo $this -> getContents();\n\t\texit ;\n\t}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "function info(){\n global $tpl, $ilTabs;\n\n $ilTabs->activateTab(\"info\");\n\n $my_tpl = new ilTemplate(\"tpl.info.html\", true, true,\n \"Customizing/global/plugins/Services/Repository/RepositoryObject/MobileQuiz\");\n\n // info text\n $my_tpl->setVariable(\"INFO_TEXT\", $this->txt(\"info_text\"));\n // mail to\n $my_tpl->setVariable(\"MAIL_TO\", $this->txt(\"info_mailto\"));\n // Instructions\n $my_tpl->setVariable(\"INSTRUCTIONS\",$this->txt(\"info_instructions\"));\n\n $html = $my_tpl->get();\n\n $tpl->setContent($html);\n }", "function learn_press_single_quiz_description() {\n\t\tlearn_press_get_template( 'content-quiz/description.php' );\n\t}", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "public function show(Answer $answer)\n {\n //\n }", "protected function displayHelp()\n {\n return $this->context->smarty->fetch($this->module->getLocalPath().'views/templates/admin/rewards_info.tpl');\n }", "public function printContent()\n {\n echo $this->content;\n }", "protected function output() {\n\t\t$content = $this->option( 'content' );\n\t\t$content_path = $this->option( 'content_path' );\n\t\t$mmarkdown = $this->option( 'markdown' );\n\n\t\tif ( ! empty( $content_path ) && file_exists( $content_path ) ) {\n\t\t\twponion_catch_output();\n\t\t\tinclude $content_path;\n\t\t\t$content = wponion_catch_output( false );\n\t\t} elseif ( ! empty( $content ) && wponion_is_callable( $content ) ) {\n\t\t\twponion_catch_output();\n\t\t\techo wponion_callback( $content );\n\t\t\t$content = wponion_catch_output( false );\n\t\t}\n\n\t\tif ( true === $mmarkdown && ! empty( $content ) ) {\n\t\t\t$content = '<div class=\"wponion-markdown-output\">' . wponion_markdown( $content ) . '</div>';\n\t\t}\n\t\treturn $this->before() . do_shortcode( $content ) . $this->after();\n\t}", "function care_get_current_template( $echo = false ) {\n if( !isset( $GLOBALS['care_current_theme_template'] ) )\n return false;\n if( $echo )\n echo $GLOBALS['care_current_theme_template'];\n else\n return $GLOBALS['care_current_theme_template'];\n}", "protected function displayContent()\n {\n\n $html = '';\n if (!$this->model->userLoggedIn) {\n $html .= '<p>Please log in to view this page</p>' . \"\\n\";\n return $html;\n }\n $html .= '<h1>' . $_SESSION['userName'] . '</h1>' . \"\\n\";\n\n if ($_POST['seekEditSubmit']) {\n\n $result = $this->model->processEditSeekInfo();\n\n if ($result['ok']) {\n header('Location: index.php?page=home');\n } else {\n $html .= $this->result['msg'];\n }\n } elseif ($_POST['lanceEditSubmit']) {\n\n $result = $this->model->processEditLanceInfo();\n\n if ($result['ok']) {\n header('Location: index.php?page=home');\n } else {\n $html .= $this->result['msg'];\n }\n\n } elseif ($_POST['userEditSubmit']) {\n\n $uresult = $this->model->processEditUserInfo();\n\n if ($uresult['ok']) {\n header('Location: index.php?page=home');\n } else {\n $html .= $this->uresult['msg'];\n }\n\n }\n\n $html .= '<p>' . $result['msg'] . '</p><br />' . \"\\n\";\n\n $html .= $this->displayEditUserForm($uresult);\n\n if ($this->model->seekLoggedIn) {\n $html .= $this->displayEditSeekForm($result);\n return $html;\n } elseif ($this->model->lanceLoggedIn) {\n $html .= $this->displayEditLanceForm($result);\n return $html;\n }\n\n return $html;\n\n }", "protected function output() {\n\t\treturn \"<hr class=\\\"hr-text\\\" data-content=\\\"{$this->option( 'text', '' )}\\\"/>\";\n\t}", "public function reports_output() {\n\n\t\t\t// CHANGE THIS\n\t\t\techo 'This is where your new content section\\'s content goes.';\n\t\t}", "public function display()\n\t{\n\t\tob_start();\n\t\t\n\t\t$content = ob_get_contents();\n\t\tob_end_clean();\n\t\treturn $content;\n\t}", "function _text($str) {\n $md5 = md5($str);\n $option_name = get_text_translation_option_name( $md5 );\n $org = esc_html($str);\n\n if ( !isset($_COOKIE['site-edit']) || $_COOKIE['site-edit'] != 'Y' || ! user()->admin() ) {\n $str = _getText($str, true);\n echo $str;\n }\n else {\n $str = _getText($str);\n echo \"\n<div class='translate-text' md5='$md5' original-text='$org' code='$option_name'><span class='dashicons dashicons-welcome-write-blog'></span>\n<div class='html-content'>$str</div>\n</div>\n\";\n }\n\n}", "public function content(){\n\t\treturn mvc_service_Front::getInstance()->getCurrentActionHtml();\n\t}", "public function render_answer() {\n // TODO: This should be refactored\n $seq = optional_param('seq',0, PARAM_INT);\n $this->set_var('seq', $seq);\n\n try { \n $answers = array();\n if(empty($_POST['answers'])) {\n throw new Exception('Bạn chưa chọn đáp án trả lời!');\n } else {\n $answers = $_POST['answers'];\n }\n \n $this->_log->log(array(__CLASS__,__FUNCTION__,'$time='.$seq,'$answers='. json_encode($answers)));\n \n if(!isset($_SESSION['ma_quiz']['questions'][$seq])) {\n redirect('/mod/rtw/view.php?id='.$this->course_module->id.'&c=ma_quiz&a=question&seq='.$seq+1,'Câu hỏi không tồn tại, đang tải câu hỏi tiếp theo...',1);\n }\n \n $question = $_SESSION['ma_quiz']['questions'][$seq]; \n if(!isset($question->show_time)) {\n throw new Exception();\n }\n \n $now = new DateTime();\n $remain_seconds = date_utils::getSecondsBetween(new DateTime($question->show_time), $now);\n if($remain_seconds <= 0) { \n $error_message = 'Câu hỏi đã hết thời gian trả lời!';\n throw new Exception();\n }\n\n $is_corrected = $this->check_answers($question, $answers);\n \n if ($is_corrected) {\n $point = 1;\n $coin = 1;\n }\n else {\n $point = 0;\n $coin = 0;\n }\n \n $data_update = array('submit_time' => $now->format(date_utils::$formatSQLDateTime));\n \n if($point == 1) {\n // Update coin and experience\n $coin_id = player::getInstance()->change_coin($question->game_player_id, $coin);\n $experience_id = player::getInstance()->incrExp($question->game_player_id, $coin);\n $data_update['is_correct'] = 1;\n $data_update['coin_id'] = $coin_id;\n $data_update['experience_id'] = $experience_id;\n $this->set_var('change_coin', $coin);\n } \n // update user answer\n $data_update['user_answer'] = json_encode($answers);\n\n \n $style = '';\n $this->set_var('point', $point);\n $this->set_var('style', $style);\n $this->set_var('correct_answers', $this->get_correct_answers($question));\n game_ma_quiz::getInstance()->update($question->game_ma_quiz_id, $data_update);\n \n unset($_SESSION['ma_quiz']['questions'][$seq]);\n $this->doRender('result.php');\n \n } catch (Exception $e) {\n $this->_log->log($e, 'error');\n $error_message = $e->getMessage() ? $e->getMessage() : 'Hệ thống đang bận, vui lòng thử lại sau';\n $this->set_var('error_message', $error_message);\n $this->doRender('error.php');\n }\n }", "public function display()\n {\n $this->output = '';\n $output = $this->load($this->_layout);\n $this->output = $this->output.$output;\n\n return $this->output;\n }", "function echoPosition($content, $conf)\t{\n\t\treturn 'Hello World!myfreind'.\n\t\t\t\t\tt3lib_div::view_array($conf);\n\t\t\t\t\t//t3lib_div::view_array($content);\n\t}", "function echoAmendmentText($amendmentID) {\n\n //get amendment row\n $amendmentRow = getAmendmentRowByID($amendmentID);\n\n //echo amendment header\n switch($amendmentRow['type']) {\n case 'add':\n echo '<h4>'.getCountryRow($amendmentRow['country_id'])['name'].'\\'s amendment to add clause</h4>';\n break;\n case 'amend':\n echo '<h4>'.getCountryRow($amendmentRow['country_id'])['name'].'\\'s amendment to amend clause ' . $amendmentRow['clause'] . '</h4>';\n break;\n case 'strike':\n echo '<h4>'.getCountryRow($amendmentRow['country_id'])['name'].'\\'s amendment to strike clause ' . $amendmentRow['clause'] . '</h4>';\n break;\n }\n\n //echo amendment body\n echo '<br>';\n echo '<h6>Details:</h6>';\n echo '<p>' . $amendmentRow['details'] . '</p>';\n\n}", "function formatNewTextFRAnswer() {\n $format_string = \"\";\n $format_string .= \"<p class='answer'><strong>Answer: </strong> \";\n $format_string .= \"<input type='text' name='answer' id='editAnswerText'></input> </p>\";\n \n return $format_string;\n}", "public function askWhatToDo(){\n $question = Question::create('¿Qué deseas hacer en mi blog?')\n ->fallback('Lo siento pero...')\n ->callbackId('que_quieres_hacer')\n ->addButtons([Button::create('¿Ver todos los posts?')->value('all'),Button::create('¿Ver todas las categorías?')->value('categorias'),]);\n $this->ask($question, function(Answer $answer) {\n\n if ($answer->isInteractiveMessageReply()){\n $value = $answer->getValue();\n $text = $answer->getText();\n $this->say('Opcion, '.$value.' '.$text);\n }\n });\n }", "public function text()\n\t{\n\t\techo \"Hello there! I'm just an <code>echo</code> statement in a method...\";\n\t}", "function content() {\r\n\t\t/* Reimplement this function in subclasses. */\r\n\t}" ]
[ "0.6596057", "0.6357175", "0.63338345", "0.6331963", "0.6319106", "0.62815267", "0.6264724", "0.6248425", "0.6177948", "0.6105952", "0.6083066", "0.6070545", "0.6057158", "0.602704", "0.6000365", "0.598585", "0.5985163", "0.59800196", "0.5978304", "0.59624666", "0.59600383", "0.5957844", "0.5957605", "0.5956207", "0.59482074", "0.59459287", "0.5935196", "0.59198725", "0.59185785", "0.59122825", "0.59010285", "0.5891158", "0.58841735", "0.58782095", "0.5872178", "0.5864803", "0.58614427", "0.58500063", "0.58434767", "0.5834334", "0.5832541", "0.5806112", "0.57955575", "0.5793508", "0.5787339", "0.57870626", "0.5772885", "0.5772885", "0.5767671", "0.57558036", "0.5748916", "0.57293487", "0.57293487", "0.57293487", "0.57293487", "0.57293487", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.5728601", "0.572803", "0.572803", "0.572803", "0.57261854", "0.57205164", "0.5712105", "0.5712105", "0.5712105", "0.5712105", "0.5712105", "0.5712105", "0.5712105", "0.5712105", "0.5703309", "0.5698627", "0.5682724", "0.5678822", "0.5672243", "0.5669824", "0.56437117", "0.56435806", "0.5633265", "0.5628625", "0.5616279", "0.5607826", "0.5606118", "0.5604871", "0.55983144", "0.5594891", "0.55921054", "0.55916166" ]
0.7108255
0
Template function: Current answer creation date (defaults to echo)
function pzdc_answer_created_at($echo = TRUE, $format = NULL) { global $PraizedCommunity; $out = $PraizedCommunity->tpt_attribute_helper('answer', 'created_at', FALSE); if ( strstr($format, '%')) $out = pzdc_date($out, $format); if ( $echo ) echo $out; return $out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function question_template() {\n return 'mod_kilman/question_date';\n }", "public function get_date_created();", "function action_date_title()\n{\n\treturn time();\n}", "function article_date() {\n if($created = Registry::prop('article', 'created')) {\n return $created->format('jS F, Y');\n }\n}", "function thememount_entry_date( $echo = true ) {\n\tif ( has_post_format( array( 'chat', 'status' ) ) ){\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'howes' );\n\t} else {\n\t\t$format_prefix = '%2$s';\n\t}\n\t\n\t\n\t$date = '<div class=\"thememount-post-date-wrapper\">';\n\t\t$date .= sprintf( '<div class=\"thememount-entry-date-wrapper\"><span class=\"thememount-entry-date\"><time class=\"entry-date\" datetime=\"%1$s\" >%2$s<span class=\"entry-month entry-year\">%3$s<span class=\"entry-year\">%4$s</span></span></time></span><div class=\"thememount-entry-icon\">%5$s</div></div>',\n\t\t\tget_the_date( 'c' ),\n\t\t\tget_the_date( 'j' ),\n\t\t\tget_the_date( 'M' ),\n\t\t\tget_the_date( 'Y' ),\n\t\t\tthememount_entry_icon()\n\t\t);\n\t$date .= '</div>';\n\t\n\tif ( $echo ){\n\t\techo $date;\n\t} else {\n\t\treturn $date;\n\t}\n}", "function get_creation_date()\n\t{\n\t\treturn $this->creation_date;\n\t}", "function bootstrap_posted_on() {\n\tprintf(get_the_date());\n}", "public function getCurrentDate()\n\t{\n\t\techo date(\"Y-m-d\");\t\n\t\n\t}", "function date_creation($date_creation){\n $timestamp = strtotime($date_creation);\n $months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n $day = date('d', $timestamp);\n $month = date('m', $timestamp) - 1;\n $year = date('Y', $timestamp);\n $date_creation = \"$months[$month] \" . \"$day, \" . \"$year\";\n return $date_creation;\n}", "public function date() {\n\n\t\t\t$output = '';\n\n\t\t\t$output['date'] = mysql2date(get_option('date_format'), $this->post->post_date);\n\t\t\t$output['time'] = mysql2date(get_option('time_format'), $this->post->post_date);\n\t\t\t$output['posted'] = sprintf(__('Posted %1$s at %2$s', 'theme translation'), mysql2date(get_option('date_format'), $this->post->post_date), mysql2date(get_option('time_format'), $this->post->post_date));\n\t\t\t$output['datetime'] = mysql2date('c', $this->post->post_date);\n\n\t\t\treturn $output;\n\t\t}", "private function currentDate(): string {\n return $this->dateFormatter->format($this->time->getCurrentTime(), 'custom', 'Y-m-d');\n }", "public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}", "public function display_date(){\n\t\t$display = date('d/m/Y');\n\t\treturn $display;\n\t}", "public function getDate_creation()\n {\n return $this->date_creation;\n }", "function agilespirit_entry_date( $echo = true ) {\n if ( has_post_format( array( 'chat', 'status' ) ) )\n $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'agilespirit' );\n else\n $format_prefix = '%2$s';\n\n $date = sprintf( '<span class=\"date\">' . __('Published on ', 'agilespirit') . '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>',\n esc_url( get_permalink() ),\n esc_attr( sprintf( __( 'Permalink to %s', 'agilespirit' ), the_title_attribute( 'echo=0' ) ) ),\n esc_attr( get_the_date( 'c' ) ),\n esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\n );\n\n if ( $echo )\n echo $date;\n\n return $date;\n}", "function current_datetime()\n {\n }", "public function getCreateDate(): string\n {\n return $this->create_date;\n }", "public function getDateCreated();", "public function getDateCreated()\n\t{\n\t\t$date = new Precurio_Date($this->date_created);\n\t\tif($date->isYesterday()) return 'Yesterday';\n\t\tif($date->isToday()) return 'Today';\n\t\t\n\t\treturn $date->get(Precurio_Date::DATE_SHORT);\n\t}", "function writeDateQuestion ($id, $name, $label, $message, $placeholder, $branchExit) {\n\tglobal $datetimes;\n\tif (!empty($branchExit)) {\n\t\techo '<div class=\"step\" data-state=\"'.$branchExit.'\">';\n\t}\n\telse {\n\t\techo '<div class=\"step\" id=\"'.$id.'\">';\n\t}\n\techo '<div class=\"section\"><div class=\"card-header m-b-0\">\n\t\t\t<label for=\"'.$id.'\">'.$label.'</label>';\n\t\t\tif (!empty($message)) {\n\t\t\t\techo '<p>'.$message.'</p>';\n\t\t\t}\n\t\t\t\techo '<hr class=\"card-line\" align=\"left\">\n\t\t</div><div class=\"card-body m-b-30\">\n\t\t\t\t<input type=\"tel\" name=\"'.$name.'\" id=\"input'.$id.'\" class=\"form-control\" placeholder=\"'.$placeholder.'\" ';\n\t\t\t\tif (isset($datetimes[$id])) {\n \techo 'value=\"'.date('m/d/Y', strtotime($datetimes[$id])).'\">';\n }\n else {\n \techo '>';\n }\n\techo '</div></div></div>';\n\techo '<script>\n\t\tvar cleave'.$id.' = new Cleave(\"#input'.$id.'\", {\n\t date: true,\n \tdelimiter: \"/\",\n \tdatePattern: [\"m\", \"d\", \"Y\"]\n\t\t});\n\t</script>';\n}", "public function getDateAdmin()\n {\n return '<strong>' . $this->created_at->format(Config::get('settings.date_format')) . '</strong><br>' . $this->created_at->format(Config::get('settings.time_format'));\n }", "function quasar_entry_date( $echo = true ) {\n\t$format_prefix = ( has_post_format( 'chat' ) || has_post_format( 'status' ) ) ? _x( '%1$s on %2$s', '1: post format name. 2: date', 'quasar' ): '%2$s';\n\n\t$date = sprintf( '<span class=\"date\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( sprintf( __( 'Permalink to %s', 'quasar' ), the_title_attribute( 'echo=0' ) ) ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\n\t);\n\n\tif ( $echo )\n\t\techo $date;\n\n\treturn $date;\n}", "function genDate() {\n\n\t\t$month = strftime(\"%m\");\n\n\t\t$day = strftime(\"%d\");\n\t\t\t\n\t\t$year = strftime(\"%Y\");\n\n\t\t$currentDate = $year . $month . $day;\n\t\t$currentDate = (integer) $currentDate;\n\n\t\treturn $currentDate;\n\t}", "function thememount_entry_box_date( $echo = true ) {\n\tif ( has_post_format( array( 'chat', 'status' ) ) ){\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'howes' );\n\t} else {\n\t\t$format_prefix = '%2$s';\n\t}\n\t\n\t\n\t$date = '<div class=\"thememount-post-box-date-wrapper\">';\n\t\t$date .= sprintf( '<div class=\"thememount-entry-date-wrapper\">\n\t\t\t\t\t\t\t\t<span class=\"thememount-entry-date\">\n\t\t\t\t\t\t\t\t\t<time class=\"entry-date\" datetime=\"%1$s\" >\n\t\t\t\t\t\t\t\t\t\t<span class=\"entry-date\">%2$s</span> \n\t\t\t\t\t\t\t\t\t\t<span class=\"entry-month\">%3$s</span> \n\t\t\t\t\t\t\t\t\t\t<span class=\"entry-year\">%4$s</span> \n\t\t\t\t\t\t\t\t\t</time>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>',\n\t\t\tget_the_date( 'c' ),\n\t\t\tget_the_date( 'j' ),\n\t\t\tget_the_date( 'M' ),\n\t\t\tget_the_date( ' Y' )\n\t\t);\n\t$date .= '</div>';\n\t\n\tif ( $echo ){\n\t\techo $date;\n\t} else {\n\t\treturn $date;\n\t}\n}", "public function getCreationDate();", "function date_now() {\n return date(\"Y-m-d\");\n}", "public function getDateCreation()\n {\n return $this->date_creation;\n }", "public function get_date_create()\n\t{\n\t\treturn $this->date_create;\n\t}", "function date_modif_manuelle_autoriser() {\n}", "function dx_write_deploy_date() {\n\n\t// And some inline style. Its not needed to hook it in wp_head at all for just 4-5 properties.\n\t$style = \"position:fixed; bottom:0; right:0; display: block; padding: 0px 2px; font-family: 'Courier New'; font-size: 10px; margin: 0; background: black; color: white;line-height:1em\";\n\n // Print the end result\n if(isset($_COOKIE['dx_deploy_timer_cooke'])) {\n\t\techo '<p class=\"deploy-date\" style=\"'.$style.'\">Deployed: '.$_COOKIE['dx_deploy_timer_cooke'].' GMT +0</p>';\n\t} else {\n\t\t$cur_date = get_date_mod();\n\t\techo '<p class=\"deploy-date\" style=\"'.$style.'; background: blue\">Deployed: '.$cur_date.' GMT +0 (Cookies updated)</p>';\n\t}\n}", "function authCAS_getMyCurrentDate()\n{\n\treturn G::CurDate('Y-m-d');\n}", "public function __datetoday() {\n\t\t\treturn date(\"Y-m-d\");\n\t\t}", "public function forcreated(){\n $created = $this->created_at;\n $newcreated = date('d-m-Y',strtotime(str_replace('/', '-', $created)));\n return $newcreated;\n }", "function sysdate()\n\t\t{\n\t\t\treturn 'now';\t\t\t\n\t\t}", "function created() {\n return date('Y-m-d H:i:s');\n }", "function getFormattedCreatedDate()\r\n {\r\n return $this->created_at->format('d/m/y');\r\n }", "function get_date() {\n\t\treturn $this->get_data( 'comment_date' );\n\t}", "public function response_template() {\n return 'mod_kilman/response_date';\n }", "function getCurrentDate()\n\t\t{\n\t\t\t$date = date('y-m-d');\n\t\t\treturn $date;\n\t\t}", "function newsdot_posted_on() {\n\t\tif ( get_theme_mod( 'newsdot_show_post_date', true ) ) :\n\t\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t\t}\n\n\t\t\t$time_string = sprintf(\n\t\t\t\t$time_string,\n\t\t\t\tesc_attr( get_the_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_date() ),\n\t\t\t\tesc_attr( get_the_modified_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_modified_date() )\n\t\t\t);\n\n\t\t\t?>\n\n\t\t\t<span class=\"posted-on\">\n\t\t\t\t<i class=\"far fa-calendar\"></i>\n\t\t\t\t<a href=\"<?php echo esc_url( get_permalink() ); ?>\" rel=\"bookmark\"><?php echo $time_string; ?></a>\n\t\t\t</span>\n\n\t\t\t<?php\n\t\tendif;\n\t}", "public function getCreationDate($asString = true) {}", "public function getCreationDate($asString = true) {}", "public function created() {\n\t\treturn gmdate( 'Y-m-d\\TH:i:s\\Z' );\n\t}", "function getFormattedCreatedDateExtended()\r\n {\r\n return $this->created_at->format('d').\" de \".$this->getMes_ptBR((int) $this->created_at->format('m') ).\" de \".$this->created_at->format('Y') ;\r\n }", "public function date();", "public function date();", "function classiera_entry_date( $echo = true ) {\r\n\tif ( has_post_format( array( 'chat', 'status' ) ) )\r\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'classiera' );\r\n\telse\r\n\t\t$format_prefix = '%2$s';\r\n\r\n\t$date = sprintf( '<span class=\"date\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>',\r\n\t\tesc_url( get_permalink() ),\r\n\t\tesc_attr( sprintf( __( 'Permalink to %s', 'classiera' ), the_title_attribute( 'echo=0' ) ) ),\r\n\t\tesc_attr( get_the_date( 'c' ) ),\r\n\t\tesc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\r\n\t);\r\n\r\n\tif ( $echo )\r\n\t\techo $date;\r\n\r\n\treturn $date;\r\n}", "public function getDateCreation()\n {\n return $this->dateCreation;\n }", "public function getDateCreation()\n {\n return $this->dateCreation;\n }", "public function getDateCreation()\n {\n return $this->dateCreation;\n }", "function pzdc_answer_updated_at($echo = TRUE, $format = NULL) {\n global $PraizedCommunity;\n $out = $PraizedCommunity->tpt_attribute_helper('answer', 'updated_at', FALSE);\n if ( strstr($format, '%'))\n $out = pzdc_date($out, $format);\n if ( $echo )\n echo $out;\n return $out;\n}", "function currentDate() {\n echo date('Y-m-d');\n}", "function Fecha()\n{\n return date('d/m/y');\n}", "public function current_date(){\n\t\t$date = date('Y-m-d H:i:s');\n\t\treturn $date;\n\t}", "public function current_date(){\n\t\t$date = date('Y-m-d H:i:s');\n\t\treturn $date;\n\t}", "public function getFormattedCreateDate();", "function getCreationTime() ;", "public function getCreatedDate();", "function tcsn_post_date( $echo = true ) {\n\tif ( has_post_format( array( 'chat', 'status' ) ) )\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'tcsn_theme' );\n\telse\n\t\t$format_prefix = '%2$s';\n\t$date = sprintf( '<span class=\"date updated\">on <a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span><span class=\"text-sep\">/</span>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( sprintf( __( 'Permalink to %s', 'tcsn_theme' ), the_title_attribute( 'echo=0' ) ) ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\n\t);\n\tif ( $echo )\n\t\techo $date;\n\treturn $date;\n}", "public function getDateCreated() {\n return Yii::app()->dateFormatter->format(\"HH:mm\",$this->createTime).\" \".Yii::app()->dateFormatter->format(Yii::app()->locale->dateFormat,$this->createTime);\n }", "public function currentDate()\n {\n return today()->format('Ymd');\n }", "public function getDateCreate()\n {\n return $this->date_create;\n }", "public function getDateCreate()\n {\n return $this->date_create;\n }", "public function getDateCreate()\n\t{\n\t\treturn $this->dateCreate;\n\t}", "public function getCreationDate()\n {\n return $this->created;\n }", "public function getCreationDate()\n {\n return $this->creation_date;\n }", "public function getCreationDate()\n {\n return $this->creation_date;\n }", "public function getCreate_date(){\n return $this->create_date;\n }", "function kcsite_posted_on() {\n//check if tade is not overriden manually\n\tglobal $kcsite_post_metabox;\n\t$kcsite_post_metabox->the_meta();\n\tif($kcsite_post_metabox->get_the_value('kcsite_date_override') != '') {\n\t\t$kcsite_post_metabox->the_value('kcsite_date_override');\n\t} else {\n\t\tif(pll_current_language('slug') == 'en'){\n\t\t\techo get_the_date('F') . ' '. get_the_date('d') .', '. get_the_date('Y');\n\t\t} else {\n\t\t\techo get_the_date('Y') . ' m. ' . get_the_date('F') .' '. get_the_date('d') . ' d.';\n\t\t}\n\t}\n}", "public function getCreated() : string\n {\n return $this->created;\n }", "public function getDatecreation_user()\r\n {\r\n return $this->datecreation_user;\r\n }", "function vads_trans_date() {\n $date = date('YmdHis');\n return $date;\n }", "public function get_creation_date()\n {\n return $this->get_default_property(self::PROPERTY_CREATION_DATE);\n }", "function getCurrentDate() \n {\n return date( 'd M Y');\n }", "public function get_today_name(){\n return $today = date('D');\n }", "public function getCreationDate() {\n\n return $this->u_creationdate;\n\n }", "public function getCreateddate()\n {\n return $this->createddate;\n }", "function get_timecreated() {\n return $this->timecreated;\n }", "function comment_date($format = '', $comment_id = 0)\n {\n }", "public function getCreationDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->creationDate;\r\n\t}", "private function getPublishedDate(): string\n {\n if ($this->context->get('is_term')) {\n return '';\n }\n\n if (!$this->context->get('date')) {\n return '';\n }\n\n return $this->formatIso8601($this->augmented($this->context->get('date')), false);\n }", "function the_modified_date($format = '', $before = '', $after = '', $display = \\true)\n {\n }", "public function getCreationDate()\n {\n return $this->creationDate;\n }", "public function getCreationDate()\n {\n return $this->creationDate;\n }", "public function getCreationDate()\n {\n return $this->creationDate;\n }", "public function getCreationDate()\n {\n return $this->creationDate;\n }", "public function getCreationDate()\n {\n return $this->creationDate;\n }", "function cmsmasters_post_date($template_type = 'page', $layout_type = 'default', $show = true) {\n\tif ($template_type == 'page') {\n\t\tif ($layout_type == 'masonry') {\n\t\t\t$out = '<span class=\"cmsmasters_post_date\">' . \n\t\t\t\t'<abbr class=\"published\" title=\"' . esc_attr(get_the_date()) . '\">' . \n\t\t\t\t\tesc_html(get_the_date()) . \n\t\t\t\t'</abbr>' . \n\t\t\t\t'<abbr class=\"dn date updated\" title=\"' . esc_attr(get_the_modified_date()) . '\">' . \n\t\t\t\t\tesc_html(get_the_modified_date()) . \n\t\t\t\t'</abbr>' . \n\t\t\t'</span>';\n\t\t} else {\n\t\t\t$out = '<span class=\"cmsmasters_post_date\">' . \n\t\t\t\t'<abbr class=\"published\" title=\"' . esc_attr(get_the_date()) . '\">' . \n\t\t\t\t\t'<span class=\"cmsmasters_day_mon\">' . esc_html(get_the_date('d.m')) . '</span>' . \n\t\t\t\t\t'<span class=\"cmsmasters_year\">' . esc_html(get_the_date('Y')) . '</span>' . \n\t\t\t\t'</abbr>' . \n\t\t\t\t'<abbr class=\"dn date updated\" title=\"' . esc_attr(get_the_modified_date()) . '\">' . \n\t\t\t\t\tesc_html(get_the_modified_date()) . \n\t\t\t\t'</abbr>' . \n\t\t\t'</span>';\n\t\t}\n\t} elseif ($template_type == 'post') {\n\t\t$cmsmasters_option = cmsmasters_get_global_options();\n\t\t\n\t\t$out = '';\n\t\t\n\t\tif ($cmsmasters_option[CMSMASTERS_SHORTNAME . '_blog_post_date']) {\n\t\t\t$out .= '<span class=\"cmsmasters_post_date\">' . \n\t\t\t\t'<abbr class=\"published\" title=\"' . esc_attr(get_the_date()) . '\">' . \n\t\t\t\t\tesc_html(get_the_date()) . \n\t\t\t\t'</abbr>' . \n\t\t\t\t'<abbr class=\"dn date updated\" title=\"' . esc_attr(get_the_modified_date()) . '\">' . \n\t\t\t\t\tesc_html(get_the_modified_date()) . \n\t\t\t\t'</abbr>' . \n\t\t\t'</span>';\n\t\t}\n\t}\n\t\n\t\n\tif ($show) {\n\t\techo $out;\n\t} else {\n\t\treturn $out;\n\t}\n}", "public function getCreationDate() \r\n { \r\n return $this->_creationDate; \r\n }", "function the_date($format = '', $before = '', $after = '', $display = \\true)\n {\n }", "public function getCreatedDate()\n {\n return $this->created_date;\n }", "public function requestDate();", "public function getCreatedDate()\r\n\t\t{\r\n\t\t\treturn date('m/d/Y', strtotime($this->_created_date));\r\n\t\t}", "public function getCreationDate() {\n\t\treturn $this->creationDate;\n\t}", "function currentDate(){\n\t$date = date(\"Y-m-d H:i:s\");\n\treturn $date;\n}", "public function getQuestionDate() {\n\t\treturn $this->questionDate;\n\t}", "function getCreatedDate() {\n\t\treturn $this->_CreatedDate;\n\t}", "public function getCreatedDate() {\n return $this->get('created_date', 'user');\n }", "function timeStamp(){\n\t\techo date(\"is\");\n\t}", "function getCreateDate() {\n\t\treturn $this->_CreateDate;\n\t}" ]
[ "0.7006385", "0.6849955", "0.6585595", "0.65626806", "0.6535771", "0.65323025", "0.6353296", "0.63356644", "0.63274735", "0.63221806", "0.6319094", "0.6301945", "0.62798476", "0.6279081", "0.6272804", "0.6271872", "0.62542444", "0.6246117", "0.62416136", "0.6235833", "0.623345", "0.6229826", "0.6229217", "0.6215444", "0.62107855", "0.62046266", "0.6172233", "0.6170509", "0.6167941", "0.6165543", "0.61641574", "0.6162782", "0.6161611", "0.6157915", "0.614841", "0.6147257", "0.6141582", "0.61329025", "0.6120921", "0.61180806", "0.61080426", "0.6107949", "0.609946", "0.60971385", "0.609144", "0.609144", "0.6088232", "0.6088195", "0.6088195", "0.6088195", "0.60867894", "0.608003", "0.60658634", "0.6064898", "0.6064898", "0.6057075", "0.6032149", "0.6022763", "0.60225123", "0.60155797", "0.6014095", "0.6013982", "0.6013982", "0.60120964", "0.600678", "0.6005734", "0.6005734", "0.59963036", "0.5995699", "0.5989008", "0.59679955", "0.5959765", "0.59577876", "0.59566176", "0.5947822", "0.5943881", "0.59347653", "0.5932956", "0.5931126", "0.5924288", "0.59240663", "0.59207284", "0.5915074", "0.5915074", "0.5915074", "0.5915074", "0.5915074", "0.5901554", "0.5889887", "0.5885612", "0.5877697", "0.58619314", "0.58581924", "0.58562213", "0.58558464", "0.5852359", "0.5848863", "0.58301634", "0.5829876", "0.5822364" ]
0.7245025
0
Template function: Current answer update date (defaults to echo)
function pzdc_answer_updated_at($echo = TRUE, $format = NULL) { global $PraizedCommunity; $out = $PraizedCommunity->tpt_attribute_helper('answer', 'updated_at', FALSE); if ( strstr($format, '%')) $out = pzdc_date($out, $format); if ( $echo ) echo $out; return $out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUpdate_date(){\n return $this->update_date;\n }", "public function question_template() {\n return 'mod_kilman/question_date';\n }", "function thememount_entry_date( $echo = true ) {\n\tif ( has_post_format( array( 'chat', 'status' ) ) ){\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'howes' );\n\t} else {\n\t\t$format_prefix = '%2$s';\n\t}\n\t\n\t\n\t$date = '<div class=\"thememount-post-date-wrapper\">';\n\t\t$date .= sprintf( '<div class=\"thememount-entry-date-wrapper\"><span class=\"thememount-entry-date\"><time class=\"entry-date\" datetime=\"%1$s\" >%2$s<span class=\"entry-month entry-year\">%3$s<span class=\"entry-year\">%4$s</span></span></time></span><div class=\"thememount-entry-icon\">%5$s</div></div>',\n\t\t\tget_the_date( 'c' ),\n\t\t\tget_the_date( 'j' ),\n\t\t\tget_the_date( 'M' ),\n\t\t\tget_the_date( 'Y' ),\n\t\t\tthememount_entry_icon()\n\t\t);\n\t$date .= '</div>';\n\t\n\tif ( $echo ){\n\t\techo $date;\n\t} else {\n\t\treturn $date;\n\t}\n}", "function dx_write_deploy_date() {\n\n\t// And some inline style. Its not needed to hook it in wp_head at all for just 4-5 properties.\n\t$style = \"position:fixed; bottom:0; right:0; display: block; padding: 0px 2px; font-family: 'Courier New'; font-size: 10px; margin: 0; background: black; color: white;line-height:1em\";\n\n // Print the end result\n if(isset($_COOKIE['dx_deploy_timer_cooke'])) {\n\t\techo '<p class=\"deploy-date\" style=\"'.$style.'\">Deployed: '.$_COOKIE['dx_deploy_timer_cooke'].' GMT +0</p>';\n\t} else {\n\t\t$cur_date = get_date_mod();\n\t\techo '<p class=\"deploy-date\" style=\"'.$style.'; background: blue\">Deployed: '.$cur_date.' GMT +0 (Cookies updated)</p>';\n\t}\n}", "function pzdc_answer_created_at($echo = TRUE, $format = NULL) {\n global $PraizedCommunity;\n $out = $PraizedCommunity->tpt_attribute_helper('answer', 'created_at', FALSE);\n if ( strstr($format, '%'))\n $out = pzdc_date($out, $format);\n if ( $echo )\n echo $out;\n return $out;\n}", "function tcsn_post_date( $echo = true ) {\n\tif ( has_post_format( array( 'chat', 'status' ) ) )\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'tcsn_theme' );\n\telse\n\t\t$format_prefix = '%2$s';\n\t$date = sprintf( '<span class=\"date updated\">on <a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span><span class=\"text-sep\">/</span>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( sprintf( __( 'Permalink to %s', 'tcsn_theme' ), the_title_attribute( 'echo=0' ) ) ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\n\t);\n\tif ( $echo )\n\t\techo $date;\n\treturn $date;\n}", "function quasar_entry_date( $echo = true ) {\n\t$format_prefix = ( has_post_format( 'chat' ) || has_post_format( 'status' ) ) ? _x( '%1$s on %2$s', '1: post format name. 2: date', 'quasar' ): '%2$s';\n\n\t$date = sprintf( '<span class=\"date\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( sprintf( __( 'Permalink to %s', 'quasar' ), the_title_attribute( 'echo=0' ) ) ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\n\t);\n\n\tif ( $echo )\n\t\techo $date;\n\n\treturn $date;\n}", "function agilespirit_entry_date( $echo = true ) {\n if ( has_post_format( array( 'chat', 'status' ) ) )\n $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'agilespirit' );\n else\n $format_prefix = '%2$s';\n\n $date = sprintf( '<span class=\"date\">' . __('Published on ', 'agilespirit') . '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>',\n esc_url( get_permalink() ),\n esc_attr( sprintf( __( 'Permalink to %s', 'agilespirit' ), the_title_attribute( 'echo=0' ) ) ),\n esc_attr( get_the_date( 'c' ) ),\n esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\n );\n\n if ( $echo )\n echo $date;\n\n return $date;\n}", "function newsdot_posted_on() {\n\t\tif ( get_theme_mod( 'newsdot_show_post_date', true ) ) :\n\t\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t\t}\n\n\t\t\t$time_string = sprintf(\n\t\t\t\t$time_string,\n\t\t\t\tesc_attr( get_the_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_date() ),\n\t\t\t\tesc_attr( get_the_modified_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_modified_date() )\n\t\t\t);\n\n\t\t\t?>\n\n\t\t\t<span class=\"posted-on\">\n\t\t\t\t<i class=\"far fa-calendar\"></i>\n\t\t\t\t<a href=\"<?php echo esc_url( get_permalink() ); ?>\" rel=\"bookmark\"><?php echo $time_string; ?></a>\n\t\t\t</span>\n\n\t\t\t<?php\n\t\tendif;\n\t}", "function bootstrap_posted_on() {\n\tprintf(get_the_date());\n}", "function action_date_title()\n{\n\treturn time();\n}", "function thememount_entry_box_date( $echo = true ) {\n\tif ( has_post_format( array( 'chat', 'status' ) ) ){\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'howes' );\n\t} else {\n\t\t$format_prefix = '%2$s';\n\t}\n\t\n\t\n\t$date = '<div class=\"thememount-post-box-date-wrapper\">';\n\t\t$date .= sprintf( '<div class=\"thememount-entry-date-wrapper\">\n\t\t\t\t\t\t\t\t<span class=\"thememount-entry-date\">\n\t\t\t\t\t\t\t\t\t<time class=\"entry-date\" datetime=\"%1$s\" >\n\t\t\t\t\t\t\t\t\t\t<span class=\"entry-date\">%2$s</span> \n\t\t\t\t\t\t\t\t\t\t<span class=\"entry-month\">%3$s</span> \n\t\t\t\t\t\t\t\t\t\t<span class=\"entry-year\">%4$s</span> \n\t\t\t\t\t\t\t\t\t</time>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>',\n\t\t\tget_the_date( 'c' ),\n\t\t\tget_the_date( 'j' ),\n\t\t\tget_the_date( 'M' ),\n\t\t\tget_the_date( ' Y' )\n\t\t);\n\t$date .= '</div>';\n\t\n\tif ( $echo ){\n\t\techo $date;\n\t} else {\n\t\treturn $date;\n\t}\n}", "public function getDateUpdate()\n {\n return $this->date_update;\n }", "public function getDateUpdate()\n {\n return $this->date_update;\n }", "public function getCurrentDate()\n\t{\n\t\techo date(\"Y-m-d\");\t\n\t\n\t}", "function accouk_display_post_last_updated() {\n\n $show_last_updated = array(\n 'web',\n 'ecommerce',\n 'development'\n );\n\n global $main_category;\n\n if(!in_array($main_category['slug'], $show_last_updated))\n return;\n\n if(get_the_date('d-m-Y') === get_the_modified_date('d-m-Y'))\n return;\n\n echo '<div class=\"last-updated-date\">Last updated '; the_modified_date(); echo '</div>';\n\n}", "public function displaynow()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" displaynow ? ?\");\n\t}", "function classiera_entry_date( $echo = true ) {\r\n\tif ( has_post_format( array( 'chat', 'status' ) ) )\r\n\t\t$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'classiera' );\r\n\telse\r\n\t\t$format_prefix = '%2$s';\r\n\r\n\t$date = sprintf( '<span class=\"date\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>',\r\n\t\tesc_url( get_permalink() ),\r\n\t\tesc_attr( sprintf( __( 'Permalink to %s', 'classiera' ), the_title_attribute( 'echo=0' ) ) ),\r\n\t\tesc_attr( get_the_date( 'c' ) ),\r\n\t\tesc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\r\n\t);\r\n\r\n\tif ( $echo )\r\n\t\techo $date;\r\n\r\n\treturn $date;\r\n}", "function kcsite_posted_on() {\n//check if tade is not overriden manually\n\tglobal $kcsite_post_metabox;\n\t$kcsite_post_metabox->the_meta();\n\tif($kcsite_post_metabox->get_the_value('kcsite_date_override') != '') {\n\t\t$kcsite_post_metabox->the_value('kcsite_date_override');\n\t} else {\n\t\tif(pll_current_language('slug') == 'en'){\n\t\t\techo get_the_date('F') . ' '. get_the_date('d') .', '. get_the_date('Y');\n\t\t} else {\n\t\t\techo get_the_date('Y') . ' m. ' . get_the_date('F') .' '. get_the_date('d') . ' d.';\n\t\t}\n\t}\n}", "public function getUpdateDate()\n {\n return $this->updateDate;\n }", "public function getUpdateDate()\n {\n return $this->updateDate;\n }", "public function getUpdateDate()\n {\n return $this->updateDate;\n }", "public function getUpdateDate()\n {\n return $this->updateDate;\n }", "static function echoLastUpdateInput($resultSet) {\r\n $resultSet->data_seek($resultSet->num_rows - 1);\r\n $lastRow = $resultSet->fetch_array(MYSQLI_ASSOC);\r\n echo \"<tr><td><input type='hidden' value='\" . $lastRow['date'] . \"'></td></tr>\";\r\n\t}", "public function getDateAdmin()\n {\n return '<strong>' . $this->created_at->format(Config::get('settings.date_format')) . '</strong><br>' . $this->created_at->format(Config::get('settings.time_format'));\n }", "public function date() {\n\n\t\t\t$output = '';\n\n\t\t\t$output['date'] = mysql2date(get_option('date_format'), $this->post->post_date);\n\t\t\t$output['time'] = mysql2date(get_option('time_format'), $this->post->post_date);\n\t\t\t$output['posted'] = sprintf(__('Posted %1$s at %2$s', 'theme translation'), mysql2date(get_option('date_format'), $this->post->post_date), mysql2date(get_option('time_format'), $this->post->post_date));\n\t\t\t$output['datetime'] = mysql2date('c', $this->post->post_date);\n\n\t\t\treturn $output;\n\t\t}", "public function getDateUpdate()\n {\n return $this->dateUpdate;\n }", "function getUpdateDate() {\n\t\treturn $this->_UpdateDate;\n\t}", "private function currentDate(): string {\n return $this->dateFormatter->format($this->time->getCurrentTime(), 'custom', 'Y-m-d');\n }", "public function display_date(){\n\t\t$display = date('d/m/Y');\n\t\treturn $display;\n\t}", "function get_date_mod(){\n\treturn date (\"F d Y H:i:s.\", filemtime(lastModifiedInFolder(ABSPATH . 'wp-content/')));\n}", "function wimbase_date_display_single($variables) {\n $date = $variables['date'];\n $timezone = $variables['timezone'];\n $attributes = $variables['attributes'];\n $format = $variables['dates']['format'];\n $single_day_format = variable_get('date_format_single_day', 'd M');\n $show_remaining_days = isset($variables['show_remaining_days']) ? $variables['show_remaining_days'] : '';\n\n if ($format === $single_day_format) {\n $date = $variables['dates']['value']['formatted_iso'];\n $date_timestamp = (int) strtotime($date);\n $day = format_date($date_timestamp, 'custom', 'd');\n $month = format_date($date_timestamp, 'custom', 'M');\n $date = '<span class=\"day\">' . $day . '</span><span class=\"month\">' . $month . '</span>';\n }\n\n $output = '<span class=\"date-display-single\"' . drupal_attributes($attributes) . '>' . $date . $timezone . '</span>';\n if (!empty($variables['add_microdata'])) {\n $output .= '<meta' . drupal_attributes($variables['microdata']['value']['#attributes']) . '/>';\n }\n\n // Add remaining message and return.\n return $output . $show_remaining_days;\n}", "public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}", "public function getModeratorUpdatedDate();", "function date_now() {\n return date(\"Y-m-d\");\n}", "function getCurrentDate()\n\t\t{\n\t\t\t$date = date('y-m-d');\n\t\t\treturn $date;\n\t\t}", "public function response_template() {\n return 'mod_kilman/response_date';\n }", "function newsdot_posted_on_single() {\n\t\tif ( get_theme_mod( 'newsdot_show_post_date', true ) ) :\n\t\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t\t$time_string_updated = '<time class=\"updated single-updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t\t}\n\n\t\t\t$time_string = sprintf(\n\t\t\t\t$time_string,\n\t\t\t\tesc_attr( get_the_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_date() ),\n\t\t\t\tesc_attr( get_the_modified_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_modified_date() )\n\t\t\t);\n\n\t\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t\t$time_string_updated = sprintf(\n\t\t\t\t\t$time_string_updated,\n\t\t\t\t\tesc_attr( get_the_date( DATE_W3C ) ),\n\t\t\t\t\tesc_html( get_the_date() ),\n\t\t\t\t\tesc_attr( get_the_modified_date( DATE_W3C ) ),\n\t\t\t\t\tesc_html( get_the_modified_date() )\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t?>\n\n\t\t\t<span class=\"posted-on\">\n\t\t\t\t<span><?php esc_html_e( 'Published On: ', 'newsdot' ); ?></span>\n\t\t\t\t<a href=\"<?php echo esc_url( get_permalink() ); ?>\" rel=\"bookmark\"><?php echo $time_string; ?></a>\n\t\t\t\t<?php if ( get_theme_mod( 'newsdot_show_updated_date_single', true ) && ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) ) : ?>\n\t\t\t\t\t<span class=\"ml-12\"><?php esc_html_e( 'Last Updated On: ', 'newsdot' ); ?></span>\n\t\t\t\t\t<a href=\"<?php echo esc_url( get_permalink() ); ?>\" rel=\"bookmark\"><?php echo $time_string_updated; ?></a>\n\t\t\t\t<?php endif; ?>\n\t\t\t</span>\n\n\t\t\t<?php\n\t\tendif;\n\t}", "public function getAuthorUpdatedDate();", "function writeDateQuestion ($id, $name, $label, $message, $placeholder, $branchExit) {\n\tglobal $datetimes;\n\tif (!empty($branchExit)) {\n\t\techo '<div class=\"step\" data-state=\"'.$branchExit.'\">';\n\t}\n\telse {\n\t\techo '<div class=\"step\" id=\"'.$id.'\">';\n\t}\n\techo '<div class=\"section\"><div class=\"card-header m-b-0\">\n\t\t\t<label for=\"'.$id.'\">'.$label.'</label>';\n\t\t\tif (!empty($message)) {\n\t\t\t\techo '<p>'.$message.'</p>';\n\t\t\t}\n\t\t\t\techo '<hr class=\"card-line\" align=\"left\">\n\t\t</div><div class=\"card-body m-b-30\">\n\t\t\t\t<input type=\"tel\" name=\"'.$name.'\" id=\"input'.$id.'\" class=\"form-control\" placeholder=\"'.$placeholder.'\" ';\n\t\t\t\tif (isset($datetimes[$id])) {\n \techo 'value=\"'.date('m/d/Y', strtotime($datetimes[$id])).'\">';\n }\n else {\n \techo '>';\n }\n\techo '</div></div></div>';\n\techo '<script>\n\t\tvar cleave'.$id.' = new Cleave(\"#input'.$id.'\", {\n\t date: true,\n \tdelimiter: \"/\",\n \tdatePattern: [\"m\", \"d\", \"Y\"]\n\t\t});\n\t</script>';\n}", "function current_datetime()\n {\n }", "function the_modified_date($format = '', $before = '', $after = '', $display = \\true)\n {\n }", "function twenty_twenty_one_posted_on() {\n\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\n\t\t$time_string = sprintf(\n\t\t\t$time_string,\n\t\t\tesc_attr( get_the_date( DATE_W3C ) ),\n\t\t\tesc_html( get_the_date() )\n\t\t);\n\t\techo '<span class=\"posted-on\">';\n\t\tprintf(\n\t\t\t/* translators: %s: Publish date. */\n\t\t\tesc_html__( 'Published %s', 'twentytwentyone' ),\n\t\t\t$time_string // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t);\n\t\techo '</span>';\n\t}", "private function retrieve_currentdate() {\n\t\tstatic $replacement;\n\n\t\tif ( ! isset( $replacement ) ) {\n\t\t\t$replacement = date_i18n( get_option( 'date_format' ) );\n\t\t}\n\n\t\treturn $replacement;\n\t}", "function rtheme_posted_on() {\n $time_string = '<time class=\"published update\" datetime=\"%1$s\">%2$s</time>';\n\n if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n $time_string = '<time class=\"published\" datetime=\"%1$s\">%2$s</time><time class=\"update\" datetime=\"%3$s\">%4$s</time>';\n }\n\n $time_string = sprintf( $time_string,\n esc_attr( get_the_date( DATE_W3C ) ),\n esc_attr( get_the_date() ),\n esc_attr( get_the_modified_date( DATE_W3C ) ),\n esc_attr( get_the_modified_date() )\n );\n\n $posted_on = sprintf(\n esc_html_x( 'Posted on %s', 'post date', 'rtheme' ),\n '<a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a>'\n );\n\n echo '<span class=\"posted-one text-secondary\"> ' . $posted_on . '</span>';\n\n}", "public function getEditDate() { return $this->tstamp; }", "function wc_marketplace_date() {\n global $wmp;\n $wmp->output_report_date();\n }", "private function retrieve_modified() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->post_modified ) ) {\n\t\t\t$replacement = mysql2date( get_option( 'date_format' ), $this->args->post_modified, true );\n\t\t}\n\n\t\treturn $replacement;\n\t}", "function date($index)\n\t{\n\t\treturn $this->getItemTagValue($this->_isAtom ? \"updated\" : \"pubDate\" , $index);\n\t}", "static function echoFirstUpdateInput($resultSet) {\r\n $firstRow = $resultSet->fetch_array(MYSQLI_ASSOC);\r\n echo \"<tr><td><input type='hidden' value='\" . $firstRow['date'] . \"'></td></tr>\";\r\n\t}", "function display_job_date() {\n\tglobal $post;\n\n\t$expired = get_post_meta( $post->ID, '_job_expires', true );\n\n\tif ( $expired ) {\n\t\techo $expired;\n\t}\n}", "public function getDateAgo() {return $this->getDate() ? $this->getTimeDisplay($this->getDate()) : 'unknown';}", "function currentDate() {\n echo date('Y-m-d');\n}", "function get_date() {\n\t\treturn $this->get_data( 'comment_date' );\n\t}", "public function requestDate();", "private function currentTime()\n\t{\n\t\treturn Carbon::now()->format('Ymdhis');\n\t}", "function show_edit()\n\t{\n\t\t$this->tpl->set_var('name', '_f_'.$this->name);\n\t\t$this->tpl->set_var('description', $this->description);\n\t\t$this->tpl->set_var('error', $this->error);\n\t\t$this->tpl->set_var('select', html_build_date($this->name, $this->value));\n\t\t\n\n\t\t$out = $this->tpl->process('temp', 'avcDate_edit');\n\n\t\t$this->tpl->drop_var('name');\n\t\t$this->tpl->drop_var('description');\n\t\t$this->tpl->drop_var('select');\n\t\t$this->tpl->drop_var('error');\n\n\t\treturn $out;\n\t}", "public function currentDate()\n {\n return today()->format('Ymd');\n }", "public function current_date(){\n\t\t$date = date('Y-m-d H:i:s');\n\t\treturn $date;\n\t}", "public function current_date(){\n\t\t$date = date('Y-m-d H:i:s');\n\t\treturn $date;\n\t}", "function article_date() {\n if($created = Registry::prop('article', 'created')) {\n return $created->format('jS F, Y');\n }\n}", "function smart_foundation_posted_on() {\n\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time>';\n\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t$time_string .= '<time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t}\n\n\t$time_string = sprintf( $time_string,\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() ),\n\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\tesc_html( get_the_modified_date() )\n\t);\n\n\tprintf( __( '<span class=\"posted-on\">Posted on %1$s</span><span class=\"byline\"> by %2$s</span>', 'smart_foundation' ),\n\t\tsprintf( '<a href=\"%1$s\" rel=\"bookmark\">%2$s</a>',\n\t\t\tesc_url( get_permalink() ),\n\t\t\t$time_string\n\t\t),\n\t\tsprintf( '<span class=\"author\"><a class=\"url fn n\" href=\"%1$s\">%2$s</a></span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_html( get_the_author() )\n\t\t)\n\t);\n}", "function _lean_output_ago_date($date_raw, $show_date='true') {\n \n /**\n * Show Today, Yesterday or full date\n */\n $date_dd_mm_yyyy = format_date($date_raw, 'custom', 'd-m-Y');\n $todays_date = format_date(time(), 'custom', 'd-m-Y');\n $display_date = format_date($date_raw, 'custom', 'l, jS F');\n $posts_date = $date_dd_mm_yyyy;\n \n if ($todays_date == $posts_date) {\n $display_date = 'Today';\n } else {\n $dateDiff = strtotime($todays_date) - strtotime($posts_date);\n $fullDays = floor($dateDiff/(60*60*24));\n if ($fullDays <= 1) {\n $display_date = 'Yesterday';\n //} else if ($fullDays <= 6) {\n // $display_date = 'On '. format_date($date_raw, 'custom', 'l') . ',';\n //} else if (!$show_date) {\n // $display_date = '';\n }\n }\n return $display_date;\n}", "public function getViewDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->viewDate;\r\n\t}", "function wpmu_update_blogs_date()\n {\n }", "function touch_time($edit = 1, $for_post = 1, $tab_index = 0, $multi = 0)\n {\n }", "function timeSincePublish($pub_date){\r\n\t\t\t$now_date = date('U');\r\n\t\t\t$since_date = $now_date - $pub_date;\r\n\t\t\t$since_hours = floor($since_date / 60 / 60);\r\n\t\t\t$since_days = floor($since_hours / 24);\r\n\t\t\r\n\t\t\t?><span style=\"display:none;\"><?php echo $pub_date; ?></span><?php\r\n\t\t\r\n\t\t\tif($since_hours<1 && $since_days<1){\r\n\t\t\t?><em>recently</em><?php\r\n\t\t\t}elseif($since_hours>=1 && $since_days<1){\r\n\t\t\t?><em><?=$since_hours?> hour<?= ($since_hours>1 ? 's':''); ?> ago</em><?php\r\n\t\t\t}elseif($since_hours>1 && $since_days>=1){\r\n\t\t\t?><em><?= ($since_days==1 ? 'yesterday':$since_days.' days ago'); ?></em><?php\r\n\t\t\t}\r\n\t\t}", "function action_date()\n{\n\n\t// Return the rendered theme.\n\treturn theme('test_theme');\n}", "function authCAS_getMyCurrentDate()\n{\n\treturn G::CurDate('Y-m-d');\n}", "function currentDate(){\n\t$date = date(\"Y-m-d H:i:s\");\n\treturn $date;\n}", "function page_dates() {\r\n \t\tglobal $admin_lang, $extern_action, $extern_sure, $extern_topic, $extern_date, $extern_place, $extern_id, $_SERVER, $actual_user_id, $actual_user_showname;\r\n\t\t\r\n\t\tif(!isset($extern_action))\r\n\t\t\t$extern_action = '';\r\n\t\t\r\n\t\t$out = \"\\t\\t\\t<h3>\" . $admin_lang['dates'] . \"</h3><hr />\\r\\n\";\r\n\t\t\r\n\t\t//\r\n\t\t// delete the selected entrie\r\n\t\t//\r\n\t\tif($extern_action == \"delete\") {\r\n\t\t\tif(isset($extern_sure)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif($extern_sure == 1)\r\n\t\t\t\t\tdb_result(\"DELETE FROM \" . DB_PREFIX . \"dates WHERE date_id=\" . $extern_id);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$result = db_result(\"SELECT * FROM \" . DB_PREFIX . \"dates WHERE date_id=\" . $extern_id);\r\n\t\t\t\t$row = mysql_fetch_object($result);\r\n\t\t\t\t$out .= \"Den News Eintrag &quot;\" . $row->date_topic . \"&quot; wirklich löschen?<br />\r\n\t\t\t<a href=\\\"admin.php?page=dates&amp;action=delete&amp;id=\" . $extern_id . \"&amp;sure=1\\\" title=\\\"Wirklich Löschen\\\">ja</a> &nbsp;&nbsp;&nbsp;&nbsp;\r\n\t\t\t<a href=\\\"admin.php?page=dates\\\" title=\\\"Nicht Löschen\\\">nein</a>\";\r\n\t\t\t\r\n\t\t\t\treturn $out;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//\r\n\t\t// add a new entrie\r\n\t\t//\r\n\t\telseif($extern_action == \"new\") {\r\n\t\t\tif($extern_topic != \"\" && $extern_place != \"\" && $extern_date != \"\") {\r\n\t\t\t\t$date = explode(\".\", $extern_date);\r\n\t\t\t\tdb_result(\"INSERT INTO \".DB_PREFIX.\"dates (date_topic, date_place, date_date, date_creator) VALUES ('\".$extern_topic.\"', '\".$extern_place.\"', '\".mktime(0, 0, 0, $date[1], $date[0], $date[2]).\"', '$actual_user_id')\");\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t//\r\n\t\t// update the selected entrie\r\n\t\t//\r\n\t\telseif($extern_action == \"update\") { \r\n\t\t\tif($extern_topic != \"\" && $extern_place != \"\" && $extern_date != \"\" && $extern_id != 0) {\r\n\t\t\t\t$date = explode(\".\", $extern_date);\r\n\t\t\t\tdb_result(\"UPDATE \".DB_PREFIX.\"dates SET date_topic= '\".$extern_topic.\"', date_place= '\".$extern_place.\"', date_date='\".mktime(0, 0, 0, $date[1], $date[0], $date[2]).\"' WHERE date_id=\".$extern_id);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif($extern_action != \"edit\") {\r\n\t\t\t$out .= \"\\t\\t\\t<form method=\\\"post\\\" action=\\\"admin.php\\\">\r\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"page\\\" value=\\\"dates\\\" />\r\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"action\\\" value=\\\"new\\\" />\r\n\t\t\t\t<table>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['date'] . \": <span class=\\\"info\\\">Dies ist das Datum, an dem die Veranstaltung stattfindet (Format: TT.MM.YYYY, Beispiel: 05.11.2005)</span></td>\r\n\t\t\t\t\t\t<td><input type=\\\"text\\\" name=\\\"date\\\" maxlength=\\\"10\\\" value=\\\"\\\" /></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['location'] . \": <span class=\\\"info\\\">Gemeint ist hier der Ort an welchem die Veranstaltung stattfindet.</span></td>\r\n\t\t\t\t\t\t<td><input type=\\\"text\\\" name=\\\"place\\\" maxlength=\\\"60\\\" value=\\\"\\\" /></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['topic'] . \": <span class=\\\"info\\\">Dies ist die Beschreibung des Termins</span></td>\r\n\t\t\t\t\t\t<td><input type=\\\"text\\\" name=\\\"topic\\\" maxlength=\\\"150\\\" /></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>Eingelogt als \" . $actual_user_showname . \" &nbsp;</td><td><input type=\\\"submit\\\" class=\\\"button\\\" value=\\\"Senden\\\" />&nbsp;<input type=\\\"reset\\\" class=\\\"button\\\" value=\\\"Zurücksetzen\\\" /></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\r\n\t\t\t\t<br />\r\n\t\t\t</form>\\r\\n\";\r\n\t\t}\r\n\t\t\t$out .= \"\\t\\t\\t<form method=\\\"post\\\" action=\\\"admin.php\\\">\r\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"page\\\" value=\\\"dates\\\" />\r\n\t\t\t\t<input type=\\\"hidden\\\" name=\\\"action\\\" value=\\\"update\\\" />\r\n\t\t\t\t<table>\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['date'] . \":</td>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['location'] . \":</td>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['topic'] . \":</td>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['creator'] . \":</td>\r\n\t\t\t\t\t\t<td>\" . $admin_lang['actions'] . \":</td>\r\n\t\t\t\t\t</tr>\\r\\n\";\r\n\t\t//\r\n\t\t// write all news entries\r\n\t\t//\r\n\t\t$result = db_result(\"SELECT * FROM \" . DB_PREFIX . \"dates ORDER BY date_date ASC\");\r\n\t\twhile($row = mysql_fetch_object($result)) {\r\n\t\t\t//\r\n\t\t\t// show an editform for the selected entrie\r\n\t\t\t//\r\n\t\t\tif($extern_id == $row->date_id && $extern_action == \"edit\") {\r\n\t\t\t\t$out .= \"\\t\\t\\t\\t\\t<tr id=\\\"dateid\" . $row->date_id . \"\\\">\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"\".$row->date_id.\"\\\" />\r\n\t\t\t\t\t\t\t<input type=\\\"text\\\" name=\\\"date\\\" maxlength=\\\"10\\\" value=\\\"\" . date(\"d.m.Y\", $row->date_date) . \"\\\" />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input type=\\\"text\\\" name=\\\"place\\\" maxlength=\\\"60\\\" value=\\\"\" . $row->date_place . \"\\\" />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input type=\\\"text\\\" name=\\\"topic\\\" value=\\\"\" . $row->date_topic . \"\\\" maxlength=\\\"150\\\" />\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\" . getUserByID($row->date_creator) . \"\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<input type=\\\"submit\\\" value=\\\"Speichern\\\" class=\\\"button\\\" />\r\n\t\t\t\t\t\t\t&nbsp;<a href=\\\"admin.php?page=dates&amp;action=delete&amp;id=\".$row->date_id.\"\\\" title=\\\"Löschen\\\">Löschen</a>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\";\r\n\t\t\t}\r\n\t\t\t//\r\n\t\t\t// show only the entrie\r\n\t\t\t//\r\n\t\t\telse {\r\n\t\t\t\t$out .= \"\\t\\t\\t\\t\\t<tr ID=\\\"dateid\" . $row->date_id . \"\\\">\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\" . date(\"d.m.Y\", $row->date_date) . \"\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\" . $row->date_place . \"\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\" . nl2br($row->date_topic) . \"\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\" . getUserByID($row->date_creator) . \"\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td colspan=\\\"2\\\">\r\n\t\t\t\t\t\t\t<a href=\\\"admin.php?page=dates&amp;action=edit&amp;id=\".$row->date_id.\"#dateid\".$row->date_id.\"\\\" title=\\\"Bearbeiten\\\">Bearbeiten</a>\r\n\t\t\t\t\t\t\t&nbsp;<a href=\\\"admin.php?page=dates&amp;action=delete&amp;id=\".$row->date_id.\"\\\" title=\\\"Löschen\\\">Löschen</a>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\\r\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t$out .= \"\\t\\t\\t\\t</table>\r\n\t\t\t</form>\";\r\n\t\r\n\t\treturn $out;\r\n \t}", "public function displayTimeQuestion()\n {\n\n }", "function getCurrentDate() \n {\n return date( 'd M Y');\n }", "function vads_trans_date() {\n $date = date('YmdHis');\n return $date;\n }", "public function getUpdatedDate()\n {\n return $this->updated;\n }", "public function __datetoday() {\n\t\t\treturn date(\"Y-m-d\");\n\t\t}", "function honeycomb_posted_on() {\n\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time> <time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t}\n\n\t\t$time_string = sprintf( $time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\t\tesc_html( get_the_modified_date() )\n\t\t);\n\n\t\t$posted_on = sprintf(\n\t\t\t_x( 'Posted on %s', 'post date', 'honeycomb' ),\n\t\t\t'<a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a>'\n\t\t);\n\n\t\techo wp_kses( apply_filters( 'honeycomb_single_post_posted_on_html', '<span class=\"posted-on\">' . $posted_on . '</span>', $posted_on ), array(\n\t\t\t'span' => array(\n\t\t\t\t'class' => array(),\n\t\t\t),\n\t\t\t'a' => array(\n\t\t\t\t'href' => array(),\n\t\t\t\t'title' => array(),\n\t\t\t\t'rel' => array(),\n\t\t\t),\n\t\t\t'time' => array(\n\t\t\t\t'datetime' => array(),\n\t\t\t\t'class' => array(),\n\t\t\t),\n\t\t) );\n\t}", "private function getCalculatedDate(){\n date_default_timezone_set('GMT+1');//@todo get the information from system\n\n $oneDay = 86400;//seconds\n $numDays = 7; //default are 7 days\n $today = strtotime('now');\n\n if(!empty($this->settings['flexform']['countDays'])){\n $numDays = $this->settings['flexform']['countDays'];\n }\n\n //calcaulate date\n $date = date(\"d.m.Y\",$today-($numDays * $oneDay));\n\n return $date;\n }", "protected function _update()\n {\r\n $this->date_updated = new Zend_Db_Expr(\"NOW()\");\n parent::_update();\n }", "function entrydate($str='now'){\n return $time=strtotime($str); \n }", "public function updated_at_formatted()\n {\n return ucfirst(app(DateFactory::class)->make($this->wrappedObject->updated_at)->format(Config::get('setting.incident_date_format', 'l jS F Y H:i:s')));\n }", "function publushDateFix($publishedDate){\n\t $publishedAt = date('Y-m-d', strtotime($publishedDate));\n$publishedAt = date_create($publishedAt);\n$today = date_create('now');\n$diff=date_diff($publishedAt,$today);\n\n//accesing days\n$days = $diff->d;\n//accesing years\n$years = $diff->y;\n//accesing months\n$months = $diff->m;\n//accesing hours\n$hours=$diff->h;\nif($months==0 AND $years!=0){\n\t\t\t\techo $years.\" Year ago \";}\n\t\t\t\telseif($years==0 AND $months!=0){ echo $months; if($months==1){ echo \" month ago \";} else { echo \" months ago \";}}\n\t\t\t\telseif($years!=0 AND $months!=0){ echo $years; if($years==1){ echo \" year ago \";} else { echo \" years ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days!=0 ){ echo $days; if($days==1){ echo \" day ago \";} else { echo \" days ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days==0 AND $hours!=0){ echo $hours; if($hours==1){ echo \" hour ago \";} else { echo \" hours ago \";}}\n\t \n\t }", "function date_modif_manuelle_autoriser() {\n}", "function days_since( $post = null )\r\n{\r\n $days_ago = round(( date('U') - get_the_time('U') ) / ( 60 * 60 * 24 ));\r\n if ($days_ago == 0) {\r\n $posted = 'Today';\r\n } elseif ($days_ago == 1) {\r\n $posted = '1 day ago';\r\n } else {\r\n $posted = $days_ago . ' days ago.';\r\n }\r\n echo $posted;\r\n}", "function hi_updateVersion() {\n global $pth;\n\n return '<h1>CMSimple_XH - Update-Check</h1>' . \"\\n\"\n . tag('img src=\"' . $pth['folder']['plugins'] . 'hi_updatecheck/images/software-update-icon.png\" class=\"upd_plugin_icon\"')\n . '<p>Version: ' . UPD_VERSION . ' - ' . UPD_DATE . '</p>' . \"\\n\"\n . '<p>Copyright &copy;2013-2014 <a href=\"http://cmsimple.holgerirmler.de/\">Holger Irmler</a> - all rights reserved' . tag('br')\n . '<p class=\"upd_license\">License: GPL3</p>' . \"\\n\"\n . '<p class=\"upd_license\">THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR'\n . ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,'\n . ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE'\n . ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER'\n . ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,'\n . ' OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE'\n . ' SOFTWARE.</p>' . \"\\n\";\n}", "function stateUpdate() {\n global $function_permission;\n if ($function_permission['is_edit']) {\n $str = '<input name=\"subupdate\" id=\"subupdate\" type=\"submit\" value=\"' . UPDATE . '\"/>';\n }\n $str .= '<input name=\"btnhuy\" id=\"btnhuy\" type=\"button\" onClick=\"javascript:huy();\" value=\"' . HUY . '\"/>';\n return $str;\n }", "public function current_date_db(){\n\t\t$date = date('Y-m-d');\n\t\treturn $date;\n\t}", "public function getUpdatedDate()\n {\n return $this->updated_date;\n }", "function circle_posted_time() {\n\t\t$time_string = '<time class=\"entry-date published updated text-uppercase date-published\" datetime=\"%1$s\" data-waypoint=\"waypointEffect\">%2$s</time>';\n\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t$time_string = '<time class=\"entry-date published text-uppercase date-published\" datetime=\"%1$s\">%2$s</time><time class=\"published updated text-uppercase date-published\" datetime=\"%3$s\" data-waypoint=\"waypointEffect\">%4$s</time>';\n\t\t}\n\n\t\t$time_string = sprintf( $time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\t\tesc_html( get_the_modified_date() )\n\t\t);\n\n\t\techo '<span class=\"posted-on\"><a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a></span>'; // WPCS: XSS OK.\n\t}", "public static function currdate()\n {\n $now = Carbon::now() -> toDateTimeString();\n $erase = substr($now, -3);\n $now = str_replace($erase, '', $now);\n $now = str_replace(' ', 'T', $now);\n return $now;\n }", "public function time() {\n\n\t\t\t$date = $this->date();\n\t\t\t$output = '<time class=\"post-date\" datetime=\"'.$date['datetime'].'\" title=\"'.$date['posted'].'\">'.$date['date'].'</time>'.\"\\n\";\n\n\t\t\treturn $output;\n\t\t}", "public function get_date_modified();", "function sysdate()\n\t\t{\n\t\t\treturn 'now';\t\t\t\n\t\t}", "function Fecha()\n{\n return date('d/m/y');\n}", "public function getQuestionDate() {\n\t\treturn $this->questionDate;\n\t}", "function pixelgrade_posted_on() {\n\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t}\n\n\t\t$time_string = sprintf(\n\t\t\t$time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\t\tesc_html( get_the_modified_date() )\n\t\t);\n\n\t\tprintf( '<span class=\"byline\"> <span class=\"by\">%1$s</span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%2$s\">%3$s</a></span></span><span class=\"posted-on\"><a href=\"%4$s\" rel=\"bookmark\">%5$s</a></span>',\n\t\t\tesc_html_x( 'by', 'post author', '__components_txtd' ),\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_html( get_the_author() ),\n\t\t\tesc_url( get_permalink() ),\n\t\t\twp_kses( $time_string, array( 'time' => array( 'class' => true, 'datetime' => true, ) ) )\n\t\t);\n\n\t}", "function wp_get_auto_update_message()\n {\n }", "public function updatedAt(){\n return $this->_formatDate($this->updated_at);\n }", "public function updated_at()\n\t{\n return $this->date($this->updated_at);\n\t}", "public function updated_at()\n\t{\n return $this->date($this->updated_at);\n\t}" ]
[ "0.6501566", "0.6387943", "0.63545024", "0.6338772", "0.6268726", "0.62497306", "0.62400746", "0.61910963", "0.6182912", "0.617213", "0.61395335", "0.61238694", "0.61160564", "0.61160564", "0.60986876", "0.60690296", "0.6047989", "0.60397077", "0.6036389", "0.6022142", "0.6022142", "0.6022142", "0.6022142", "0.60122144", "0.60051024", "0.59967977", "0.59955674", "0.5984264", "0.59782887", "0.5957347", "0.59094954", "0.5900987", "0.58992577", "0.58925974", "0.58921665", "0.5890442", "0.58817923", "0.5878486", "0.5877685", "0.58750314", "0.58542794", "0.58367014", "0.58349925", "0.58266103", "0.58147126", "0.581299", "0.5809905", "0.58088404", "0.5787785", "0.57844555", "0.577281", "0.57682717", "0.5761832", "0.57527834", "0.5740699", "0.57355505", "0.57185906", "0.5699647", "0.56989014", "0.56989014", "0.568169", "0.5667664", "0.5666912", "0.5666287", "0.5660359", "0.5659449", "0.5654331", "0.5645819", "0.56283754", "0.56272143", "0.56261724", "0.5625461", "0.5625361", "0.5609881", "0.56071", "0.56039864", "0.55930185", "0.55817014", "0.5572654", "0.55668515", "0.5566361", "0.55646867", "0.55628616", "0.5561429", "0.5556725", "0.55525756", "0.55463105", "0.5539994", "0.5535856", "0.55347174", "0.5534681", "0.5530796", "0.5528266", "0.5527885", "0.5517143", "0.5515198", "0.551312", "0.55126417", "0.55121946", "0.55121946" ]
0.73972625
0
Template function: Returns the list of merchants/places associated with an answer as
function pzdc_answer_merchants() { global $PraizedCommunity; return $PraizedCommunity->tpt_answer_merchants(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAnswers();", "function getOrganismsList();", "public function getPlaces();", "private function parse_answers() {\n\t\t\t$answer = array();\n\n\t\t\tforeach ( $this->answer_data as $index => $answer_data ) {\n\t\t\t\t$no_markup_answer = wp_strip_all_tags( $answer_data->getAnswer() );\n\t\t\t\tpreg_match_all( '#\\{(.*?)\\}#im', $no_markup_answer, $matches );\n\n\t\t\t\tforeach ( $matches[1] as $match ) {\n\t\t\t\t\tpreg_match_all( '#\\[([^\\|\\]]+)(?:\\|(\\d+))?\\]#im', $match, $ms );\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Currently only one set of answers are supported by LD.\n\t\t\t\t\t * So as soon as we get matches, we assign and break the loop.\n\t\t\t\t\t */\n\t\t\t\t\tif ( ! empty( $ms[1] ) ) {\n\t\t\t\t\t\t$answer = $ms[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $answer;\n\t\t}", "public function populate()\n {\n $places = $this->placeRepository->list()->get() ? $this->placeRepository->list()->get()->toArray():false;\n\n foreach ($places as $key => $place) {\n $mapper = config('api.mapper');\n $elements = collect(json_decode($this->apiService->get($place['query'])))\n ->pull($mapper['root']);\n\n if ($elements) {\n $geocodes = isset($elements->geocode) ? (array) $elements->geocode:[];\n\n if(!empty($geocodes)){\n\n $data = collect();\n\n foreach ($mapper['response']['fields'] as $key => $value) {\n \n if(isset($geocodes['center']->{$value}))\n $data->put($value, $geocodes['center']->{$value}); \n else\n $data->put($value, $geocodes[$value]);\n }\n\n $slug = $data->pull('slug');\n $result = $this->placeRepository->add(\n ['slug' => $slug],\n $data->toArray()\n );\n\n $recommendations = isset($elements->groups) ? (array) current($elements->groups): [];\n\n foreach ($recommendations['items'] as $recommendation) {\n \n $collection = collect();\n \n foreach ($mapper['response']['groups'] as $group) {\n\n $collection->put('place_id',$result->id);\n\n if(is_array($recommendation->venue->{$group}) || is_object($recommendation->venue->{$group}))\n $collection->put($group,json_encode($recommendation->venue->{$group})); \n else\n $collection->put($group,$recommendation->venue->{$group});\n }\n\n $id = $data->pull('id');\n $this->recommendationRepository->add(\n ['id' => $id],\n $collection->toArray()\n );\n }\n }\n }\n }\n\n return $places;\n }", "private function getMClist()\n {\n return DB::table('absence')->join('teacher', 'absence.short_name', '=', 'teacher.short_name')\n ->get();\n// return Teacher::whereIn('short_name',Absence::where('date','=',new DateTime('today'))->lists('short_name'))->has('absence')->get();\n }", "protected function getManagersChoices()\n {\n $consultants = InternalQuery::create()\n ->setComment(sprintf('%s l:%s', __METHOD__, __LINE__))\n ->usePersonTypeQuery()\n ->filterByCode('ia')\n ->endUse()\n ->orderByLastname()\n ->orderByFirstname()\n ->find();\n\n return $consultants->toKeyValue('Id', 'LongName');\n }", "public function get_locations_officers()\n {\n $items = array();\n $scope = get_post('scope');\n \n if ($scope) {\n\n if ((int)$scope !== 1 && !get_post('location_code')) {\n\n $return_data = array(\n 'status' => false,\n 'message' => 'Location is required.'\n );\n\n } else {\n \n $departments = $this->getDepartment(get_post('keyword'));\n foreach ($departments as $department) {\n\n // get main department locations if has any\n // main has no sub department id\n $locationWhere = array(\n 'deletedAt IS NULL',\n 'DepartmentID' => $department['id'],\n 'SubDepartmentID' => 0, \n 'LocationScope' => $scope\n );\n // not national\n if ((int)$scope !== 1) {\n $locationWhere['LocationCode'] = get_post('location_code');\n }\n\n $location = $this->mgovdb->getRecords('Dept_ScopeLocations', $locationWhere, 'id', array(1));\n if (count($location)) {\n $location = $location[0];\n $location['officers'] = $this->departmentdb->getDepartmentOfficer($location['id'], 'DepartmentLocationID');\n } else {\n $location = false;\n }\n $department['location'] = $location;\n\n $subDepartments = array();\n foreach ($department['subDepartment'] as $subDepartment) {\n // get sub department locations if has any\n $locationWhere = array(\n 'deletedAt IS NULL',\n 'DepartmentID' => $department['id'],\n 'SubDepartmentID' => $subDepartment['id'], \n 'LocationScope' => $scope\n );\n\n // not national\n if ((int)$scope !== 1) {\n $locationWhere['LocationCode'] = get_post('location_code');\n }\n\n $location = $this->mgovdb->getRecords('Dept_ScopeLocations', $locationWhere, 'id', array(1));\n if (count($location)) {\n $location = $location[0];\n $location['officers'] = $this->departmentdb->getDepartmentOfficer($location['id'], 'DepartmentLocationID');\n } else {\n $location = false;\n }\n\n $subDepartment['location'] = $location;\n\n if (get_post('result_filter') == 1) {\n // all active\n if ($subDepartment['location'] != false && $subDepartment['location']['Status']) {\n $subDepartments[] = $subDepartment;\n }\n } else if (get_post('result_filter') == 2) {\n // active with officer\n if ($subDepartment['location'] != false && $subDepartment['location']['Status'] && $subDepartment['location']['officers'] != false) {\n $subDepartments[] = $subDepartment;\n }\n } else if (get_post('result_filter') == 3) {\n // active without officer\n if ($subDepartment['location'] != false && $subDepartment['location']['Status'] && $subDepartment['location']['officers'] == false) {\n $subDepartments[] = $subDepartment;\n }\n } else if (get_post('result_filter') == 4) {\n // inactive\n if ($subDepartment['location'] == false || ($subDepartment['location'] != false && $subDepartment['location']['Status'] == 0)) {\n $subDepartments[] = $subDepartment;\n }\n } else {\n // show all\n $subDepartments[] = $subDepartment;\n }\n }\n\n $department['subDepartment'] = $subDepartments;\n\n $exclude = true;\n // if no sub department. also filter main department result\n if (get_post('result_filter') == 1) {\n // all active\n if ($department['location'] != false && $department['location']['Status']) {\n $items[] = $department;\n $exclude = false;\n }\n } else if (get_post('result_filter') == 2) {\n // active with officer\n if ($department['location'] != false && $department['location']['Status'] && $department['location']['officers'] != false) {\n $items[] = $department;\n $exclude = false;\n }\n } else if (get_post('result_filter') == 3) {\n // active without officer\n if ($department['location'] != false && $department['location']['Status'] && $department['location']['officers'] == false) {\n $items[] = $department;\n $exclude = false;\n }\n } else if (get_post('result_filter') == 4) {\n // inactive\n if ($department['location'] == false || ($department['location'] != false && $department['location']['Status'] == 0)) {\n $items[] = $department;\n $exclude = false;\n }\n } else {\n // show all\n $items[] = $department;\n $exclude = false;\n }\n\n if (count($subDepartments) && $exclude) {\n $department['hideParent'] = true;\n $items[] = $department;\n }\n\n }\n\n if (count($items)) {\n $return_data = array(\n 'status' => true,\n 'data' => $items\n );\n } else {\n $return_data = array(\n 'status' => false,\n 'message' => 'No record found.'\n );\n }\n\n }\n\n } else {\n $return_data = array(\n 'status' => false,\n 'message' => 'Scope is required.'\n );\n }\n\n response_json($return_data);\n }", "public function get_answers() {\n\t\t\t$answers = array();\n\t\t\tforeach ( $this->answer_data as $position => $data ) {\n\n\t\t\t\t$answers[ $this->get_answer_key( (string) $position ) ] = array(\n\t\t\t\t\t'label' => $data->getAnswer(),\n\t\t\t\t);\n\n\t\t\t\t/**\n\t\t\t\t * Filters the individual answer node.\n\t\t\t\t *\n\t\t\t\t * @since 3.3.0\n\t\t\t\t *\n\t\t\t\t * @param array $answer_node_data The answer node.\n\t\t\t\t * @param string $type Whether the node is answer node or student answer node.\n\t\t\t\t * @param mixed $data Individual answer data.\n\t\t\t\t */\n\t\t\t\t$answers[ $this->get_answer_key( (string) $position ) ] = apply_filters(\n\t\t\t\t\t'learndash_rest_statistic_answer_node_data',\n\t\t\t\t\t$answers[ $this->get_answer_key( (string) $position ) ],\n\t\t\t\t\t'answer',\n\t\t\t\t\t$data,\n\t\t\t\t\t$this->question->getId(),\n\t\t\t\t\t$position\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn $answers;\n\t\t}", "public function getSuggestData()\n {\n if (is_null($this->_suggestData)) {\n\n $picklistEntries = $this->getPicklistEntries();\n $response = array();\n $data = array();\n $counter = 0;\n\n if (is_array($picklistEntries)) {\n foreach ($picklistEntries as $entry) {\n $_data = array(\n 'value' => $entry->Moniker,\n 'title' => $entry->PartialAddress,\n 'row_class' => (++$counter)%2?'odd':'even'\n );\n array_push($data, $_data);\n }\n } elseif ($picklistEntries && ($picklistEntries->Score > 0)) { // only one result\n $_data = array(\n 'value' => $picklistEntries->Moniker,\n 'title' => $picklistEntries->PartialAddress,\n 'row_class' => (++$counter)%2?'odd':'even'\n );\n array_push($data, $_data);\n }\n\n $this->_suggestData = $data;\n }\n return $this->_suggestData;\n }", "public function getFarmsEggs(){\n\t\t$url = 'http://www.vermontfresh.net/member-search/MemberSearchForm?Keywords=&ProductCategoryID=9&Categories%5B13%5D=13&RegionID=&action_doMemberSearch=Search';\n\t\treturn $this->parse_data($url);\n\t}", "public function getCreateCountries()\n {\n return <<<CQL\nMATCH (q:Question)-[:HAS_ANSWER]->(a)\nWHERE q.question CONTAINS('What country do you')\nWITH COLLECT(DISTINCT a.answer) AS countries\nUNWIND countries AS country\nMERGE (c:Country { name: country })\nWITH c\nMERGE (p:Planet { name: 'Earth' })\nMERGE (p)-[:CHILD]->(c);\nCQL;\n }", "public function getAll()\n {\n return $this->_answers;\n }", "public function getList() {\n $answerType = $this->params()->fromRoute('answerType');\n $qId = $this->params()->fromRoute('questionId');\n $cId = $this->params()->fromRoute('customerId');\n\t\t$logger = $this->getServiceLocator()->get( 'Log\\App' );\n $logger->log( \\Zend\\Log\\Logger::INFO, \"Rest call to /answer\" );\n $logger->log( \\Zend\\Log\\Logger::INFO, $answerType );\n $logger->log( \\Zend\\Log\\Logger::INFO, $qId );\n $logger->log( \\Zend\\Log\\Logger::INFO, $cId );\n\n $viewArgs = array();\n\n $e = $this->getServiceLocator()->get( 'doctrine.entitymanager.orm_default' );\n $qService = $this->getServiceLocator()->get( 'cap_questionnaire_service' );\n\n\n $viewArgs['question'] = $e->getRepository('CAP\\Entity\\Question')->find($qId);\n $p = $qService->checkPermissions($viewArgs['question']->getQuestionnaireId(), $cId, $this->identity());\n if (!$p) {\n return new JsonModel();\n }\n\n /* get a list of answers for a given question id */\n $viewArgs['answers'] = $e->createQuery( \"SELECT a FROM CAP\\Entity\\Answer a JOIN a.question q WHERE a.question = :questionId ORDER BY a.answerOrder\" )\n ->setParameter('questionId',$qId)\n ->getResult( \\Doctrine\\ORM\\Query::HYDRATE_ARRAY );\n\n\n /* if this is an enum - have to get them for each answer */\n if ($viewArgs['question']->getAnswerType() === \"ENUM\") {\n $em = $e->createQuery( \"SELECT em, e FROM CAP\\Entity\\AnswerEnumMap em JOIN em.answer a JOIN em.answerEnum e WHERE a.question = :questionId ORDER BY em.answerEnumOrder\" )\n ->setParameter('questionId',$qId)\n ->getResult( \\Doctrine\\ORM\\Query::HYDRATE_ARRAY );\n\n\n if ($em) {\n /* load the enums on to the answers */\n foreach ($viewArgs['answers'] as $index => $a) {\n\n $viewArgs['answers'][$index]['answerEnums'] = array();\n foreach ($em as $enum) {\n if ($enum['answerId'] === $a['id']) {\n $viewArgs['answers'][$index]['answerEnums'][] = $enum['answerEnum'];\n }\n }\n }\n }\n }\n\n $viewArgs['customerAnswers'] = $e->createQuery( \"SELECT ca.answerText, a.id as answerId, ae.id as answerEnumId FROM CAP\\Entity\\CustomerAnswer ca JOIN ca.answer a LEFT JOIN ca.answerEnum ae JOIN a.question q WHERE a.question = :questionId AND ca.customer = :customerId ORDER BY a.answerOrder\" )\n ->setParameter('questionId',$qId)\n ->setParameter('customerId',$cId)\n ->getResult( \\Doctrine\\ORM\\Query::HYDRATE_ARRAY );\n\n\n /* if the completion status of the customer_question row is 'NOT STARTED' and permission is WRITE\n * then set the completion status to NOT COMPLETED cause they viewed it\n */\n if ($p === WRITE) {\n $customerQuestion = $e->getRepository('CAP\\Entity\\CustomerQuestion')->findOneBy(array('customer' => $cId, 'question' => $qId));\n if (isset($customerQuestion) && $customerQuestion->getCompletionStatus()->getName() === \"NOT STARTED\") {\n $logger->log( \\Zend\\Log\\Logger::INFO, \"setting customer question completion status to NOT COMPLETED\" );\n $customerQuestion->setCompletionStatus($e->getRepository('CAP\\Entity\\CompletionStatus')->findOneBy(array('name' => 'NOT COMPLETED')));\n $e->persist($customerQuestion);\n $e->flush();\n }\n\n /* if the questionnaire is complete its read only (FORMS stay writeable though */\n $customerQuestionnaire = $e->getRepository('CAP\\Entity\\CustomerQuestionnaire')->findOneBy(array('customer' => $cId, 'questionnaireId' => $viewArgs['question']->getQuestionnaireId()));\n $logger->log( \\Zend\\Log\\Logger::INFO, \"questionnaire completion status is: \".$customerQuestionnaire->getCompletionStatus()->getName() );\n if ($customerQuestionnaire->getCompletionStatus()->getName() === \"COMPLETED\" && $customerQuestionnaire->getQuestionnaire()->getType() == 'QUESTIONNAIRE') {\n $p = READ;\n $logger->log( \\Zend\\Log\\Logger::INFO, \"section is complete so making this question read only\" );\n }\n\n\n }\n\n $viewArgs['percentComplete'] = $qService->percentComplete($viewArgs['question']->getQuestionnaireId(), $cId, $e);\n $viewArgs['success'] = true;\n $viewArgs['disabled'] = ($p === READ);\n return new JsonModel($viewArgs);\n\t}", "public function get_target_restaurant_list () {\n\t\t$restaurantList = $this->get_param('post.restaurant_list');\n\t\t$grouponRestaurantList = $this->get_param('post.groupon_restaurant_list');\n\n\t\t$this->get_restaurant_list($restaurantList, $grouponRestaurantList);\n\t}", "function smartchoice_get_all_responses($choice) {\n global $DB;\n return $DB->get_records('smartchoice_answers', array('choiceid' => $choice->id));\n}", "public function get_all_question_answer_list()\n\t{\n\t\t\n\t\t$sql=\"select * from question_answer\";\n\t\t$query=$this->db->query($sql);\n\t\t//print_r($query->result_object());die();\n\t\treturn $query->result_object();\n\t}", "public function getAnswers($myAnswers){\r\n\t\t$pfx = $this->c->dbprefix;\r\n\t\t$conn = $this->conn();\r\n\r\n\t\t$keys = array_keys($myAnswers);\r\n\t\t$ids = implode(\",\",$keys);\r\n\r\n\t\t$sql = \"select\r\n\t\t\t\t answer\r\n\t\t\t\t,id\r\n\t\t\t\t,id_parent\r\n\r\n\t\t\t\t,markingmethod\r\n\t\t\t\t,description\r\n\t\t\t\t,cent\r\n\t\t\t\t,type\r\n\t\t\t\t,option2\r\n\t\t\t\t,option3\r\n\t\t\t\t,option4\r\n\t\t\t\t\r\n\t\t\t\t,ids_level_knowledge\r\n\t\t\t\t\r\n\t\t\t from \".$pfx.\"wls_question where id in (\".$ids.\") order by id ; \";\r\n\t\t$res = mysql_query($sql,$conn);\r\n\t\tif($res==false)echo $sql;\r\n\t\t$data = array();\r\n\t\twhile($temp = mysql_fetch_assoc($res)){\r\n\t\t\t$temp['myAnswer'] = $myAnswers[$temp['id']];\r\n\t\t\t$data[] = $temp;\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}", "private function getAnswers($question){\n $answerModel = new Answer();\n $answers = $answerModel->where('id_qst',$question->id_qst)->findAll();\n $retMess = \"\";\n $this->answersId = [];\n foreach($answers as $answer){\n array_push($this->answersId,$answer->id_ans);\n $retMess .= \",\".$answer->text;\n }\n\n return $retMess;\n }", "function &joinAnswers()\n\t{\n\t\t$join = array();\n\t\tforeach ($this->answers as $answer)\n\t\t{\n\t\t\tif (!is_array($join[$answer->getPoints() . \"\"]))\n\t\t\t{\n\t\t\t\t$join[$answer->getPoints() . \"\"] = array();\n\t\t\t}\n\t\t\tarray_push($join[$answer->getPoints() . \"\"], $answer->getAnswertext());\n\t\t}\n\t\treturn $join;\n\t}", "public function getLoans() { // This function returns the array \n return $this->loans;\n }", "public function iN_ListQuestionAnswerFromLanding() {\n\t\t$query = mysqli_query($this->db, \"SELECT * FROM i_landing_qa WHERE qa_status = '1'\") or die(mysqli_error($this->db));\n\t\twhile ($row = mysqli_fetch_array($query, MYSQLI_ASSOC)) {\n\t\t\t// Store the result into array\n\t\t\t$data[] = $row;\n\t\t}\n\t\tif (!empty($data)) {\n\t\t\treturn $data;\n\t\t}\n\t}", "function get_potential_matches($person_id) {\n global $person_id, $mysqli, $person_array_data, $states;\n\n // Get personal data\n $get_person_data = \"SELECT * FROM gegevens WHERE id=\".$person_id;\n $person_array_data = $mysqli->query($get_person_data)->fetch_array(MYSQLI_ASSOC);\n\n // As double check drop the created views\n $mysqli->query(\"DROP VIEW `get_answers`, `get_desired`, `get_importance`, `order_questions`;\");\n\n // Create some views\n $mysqli->query(\"CREATE VIEW get_answers AS SELECT answers.person_id, GROUP_CONCAT(answers.ans) AS answers FROM answers GROUP BY answers.person_id\") or die($mysqli->error);\n $mysqli->query(\"CREATE VIEW get_importance AS SELECT importance.person_id, GROUP_CONCAT(importance.imp) AS importance FROM importance GROUP BY importance.person_id\") or die($mysqli->error);\n $mysqli->query(\"CREATE VIEW order_questions AS SELECT desired.person_id, GROUP_CONCAT(desired.ans ORDER BY desired.ans SEPARATOR '-') AS des FROM desired GROUP BY desired.person_id, desired.quest\") or die($mysqli->error);\n $mysqli->query(\"CREATE VIEW get_desired AS SELECT person_id, GROUP_CONCAT(order_questions.des) AS desired FROM order_questions GROUP BY order_questions.person_id\") or die($mysqli->error);\n\n //Get the query for the potential matches and execute query\n $get_potential_matches_query = ($person_array_data['sexse'] == 0) ? generate_query(($person_array_data['gender'] == 0) ? 1 : 0) : (($person_array_data['sexse'] == 1) ? generate_query(($person_array_data['gender'] == 0) ? 0 : 1) : generate_query(\"%\"));\n $get_potential_matches_execute = $mysqli->query($get_potential_matches_query) or die($mysqli->error);\n \n //Make an array with all the potential matches\n $get_potential_matches_array = array();\n while($get_potential_matches_row = $get_potential_matches_execute->fetch_array(MYSQLI_ASSOC) ) {\n\n if(in_array($person_array_data['state'], ($states[$get_potential_matches_row['state']]))) {\n $get_potential_matches_array[] = $get_potential_matches_row;\n }\n }\n\n // Drop the created views\n $mysqli->query(\"DROP VIEW `get_answers`, `get_desired`, `get_importance`, `order_questions`;\");\n\n //Return array\n return $get_potential_matches_array;\n }", "function languagelesson_key_cloze_answers($answers) {\n $keyedAnswers = array();\n foreach ($answers as $answer) {\n // Only look at the actual answers, not custom feedback (saved to its own answer record).\n if ($answer->answer) {\n $atext = $answer->answer;\n list($num, $text) = explode('|', $atext);\n $answer->answer = $text;\n $keyedAnswers[$num] = $answer;\n }\n }\n return $keyedAnswers;\n}", "function getSpeakersListForResolution($num) {\n $speakerOrder = getSpeakersListOrder();\n $resSpeakerOrder = array();\n foreach ($speakerOrder as $speaker) {\n $amendmentRow = getAmendmentRow($speaker['id'],$num);\n if ($amendmentRow != null) {\n if ($amendmentRow['status'] == 'approved') {\n array_push($resSpeakerOrder,$amendmentRow['country_id']);\n }\n }\n }\n return $resSpeakerOrder;\n}", "public function getFarmsMeat(){\n\t\t$url = 'http://www.vermontfresh.net/member-search/MemberSearchForm?Keywords=&ProductCategoryID=7&Categories%5B13%5D=13&RegionID=&action_doMemberSearch=Search';\n\t\treturn $this->parse_data($url);\n\t}", "function emic_cwrc_get_authorities($dataType, $query = \"\") {\n $mappings = array(\n 'Tag Place' => array('collection' => 'islandora:9247', 'type' => t('Place')),\n 'Tag Person' => array('collection' => 'islandora:9239', 'type' => t('Person')),\n 'Tag Event' => array('collection' => 'islandora:9242', 'type' => t('Event')),\n 'Tag Organization' => array('collection' => 'islandora:9236', 'type' => t('Organization')),\n );\n\n\n\n $authorities = cwrc_get_authorities_list($mappings[$dataType], $query);\n if ($authorities) {\n $json = json_encode($authorities);\n echo $json;\n }\n}", "public function getAnswers()\n {\n return $this->hasMany(Answers::className(), ['Task' => 'idEntry']);\n }", "public function getFarms(){\n\t\t$url = 'http://www.vermontfresh.net/member-search/MemberSearchForm?Keywords=&ProductCategoryID=&Categories%5B13%5D=13&RegionID=&action_doMemberSearch=Search';\n\t\treturn $this->parse_data($url);\n\t}", "function ipal_find_student_responses($userid,$ipal_id){\r\nglobal $DB;\r\n$responses=$DB->get_records('ipal_answered',array('ipal_id'=>$ipal_id, 'user_id'=>$userid));\r\nforeach($responses as $records){\r\n$temp[]=\"Q\".$records->question_id.\" = \".$records->answer_id;\r\n}\r\nreturn(implode(\",\",$temp));\r\n}", "public function getApartments($post_busqueda)\r\n {\r\n \t$result = $this->db_connection->query('SELECT a.name, t.apartment_type, aat.available FROM apartments a\r\n \t\t\t\tLEFT JOIN apartment_apartment_type aat ON a.id=aat.id_apartment\r\n LEFT JOIN apartment_types t ON aat.id_apartment_type=t.id\r\n \t\t\t\tWHERE a.name like \"%'.$post_busqueda.'%\"\r\n \t\t\t\tGROUP BY a.id, t.id'\r\n \t);\r\n \r\n \treturn $result;\r\n }", "public static function get_cms_answer_url_list()\n\t{\n\t\treturn self::get_cms_post_url_list(Helper_PostType::ANSWER);\n\t}", "function ipal_get_answers($question_id){\r\n\tglobal $ipal;\r\n\tglobal $DB;\r\n\tglobal $CFG;\r\n\t$line=\"\";\r\n\t$answers=$DB->get_records('question_answers',array('question'=>$question_id));\r\n\t\t foreach($answers as $answers){\r\n\t\t\t $line .= $answers->answer;\r\n\t\t\t $line .= \"&nbsp;\";\r\n\t\t }\r\n\treturn($line);\r\n}", "public function responses()\n\t{\n\t\treturn $this->oneToMany('Components\\Answers\\Models\\Response', 'question_id');\n\t}", "protected function getConsultantsChoices()\n {\n $consultants = ConsultantQuery::create()\n ->setComment(sprintf('%s l:%s', __METHOD__, __LINE__))\n ->orderByLastname()\n ->orderByFirstname()\n ->find();\n\n return $consultants->toKeyValue('Id', 'LongName');\n }", "public function getCreateStates()\n {\n return <<<CQL\nMATCH (q:Question)-[:HAS_ANSWER]->(a)\nWHERE q.question CONTAINS('What US state or territory')\nWITH COLLECT(DISTINCT a.answer) AS states\nUNWIND states AS state\nMERGE (s:State { name: state })\nWITH s\nMATCH (c:Country { name: 'United States of America' })\nMERGE (c)-[:CHILD]->(s);\nCQL;\n }", "public function get_possible_responses( $questiondata )\n\t{\n\t\treturn array();\n\t}", "function getSuggestPosting() {\n return getAll(\"SELECT a.*,c.name \n FROM posting a \n INNER JOIN member_posting b ON a.id = b.posting_id\n INNER JOIN member c ON c.id = b.member_id\n LIMIT 5\");\n}", "public function get_answers() {\n return $this->answers;\n }", "public function getSuggestData()\n {\n \tif(!$this->helper('findologic')->isAlive()){\n \t\treturn parent::getSuggestData();\n \t}\t\n \t\n if (!$this->_suggestData) {\n \t$this->_suggestData = array();\n \t\n\t\t\t$query = $this->helper('catalogsearch')->getQueryText();\n \t$result = $this->helper('findologic')->autocomplete($query);\n\n \tif(isset($result->suggestions)) {\n \t $counter = 0;\n \t $data = array();\n \t \n\t foreach ($result->suggestions as $suggestion) {\n\t \t$suggestion = explode('|', $suggestion);\n\t \t\n\t $_data = array(\n\t 'title' => $suggestion[0],\n\t 'row_class' => ++$counter % 2 ? 'odd' : 'even',\n\t 'num_of_results' => $suggestion[1]\n\t );\n\t\n\t if ($_data['title'] == $query) {\n\t array_unshift($data, $_data);\n\t }\n\t else {\n\t $data[] = $_data;\n\t }\n\t }\n\t $this->_suggestData = $data;\n \t}\n }\n\n\t\treturn $this->_suggestData;\n }", "private function getSuggestions()\n {\n $category = $this->nodeStorage->load($this->categoryId);\n $secondaryTagIds = $this->getTagIds($category->field_moj_secondary_tags);\n $matchingIds = array_unique($this->getSecondaryTagItemsFor($secondaryTagIds));\n\n if (count($matchingIds) < $this->numberOfResults) {\n $matchingSecondaryTagIds = $this->getAllSecondaryTagItemsFor($secondaryTagIds);\n $matchingIds = array_unique(array_merge($matchingIds, $matchingSecondaryTagIds));\n }\n\n if (count($matchingIds) < $this->numberOfResults) {\n $primaryTagIds = $this->getTagIds($category->field_moj_top_level_categories);\n $matchingPrimaryTagIds = $this->getPrimaryTagItemsFor($primaryTagIds);\n $matchingIds = array_unique(array_merge($matchingIds, $matchingPrimaryTagIds));\n }\n\n $categoryIdIndex = array_search($this->categoryId, $matchingIds);\n\n if ($categoryIdIndex !== false) {\n unset($matchingIds[$categoryIdIndex]);\n }\n\n return $this->loadNodesDetails(array_slice($matchingIds, 0, $this->numberOfResults));\n }", "function GetAllPlacedOffers()\n {\n $placedOffersModel = new PlacedOffersModel();\n return $placedOffersModel->GetAllPlacedOffers();\n }", "public function getAnswers()\n {\n return $this->answers;\n }", "public function getAnswers()\n {\n return $this->answers;\n }", "public function getAnswers()\n {\n return $this->answers;\n }", "function ipal_get_answers_student($question_id){\r\n global $ipal;\r\n global $DB;\r\n global $CFG;\r\n\r\n\t$answerarray=array(); \r\n\t$line=\"\";\r\n\t$answers=$DB->get_records('question_answers',array('question'=>$question_id));\r\n\t\t\tforeach($answers as $answers){\r\n\t\t\t\t$answerarray[$answers->id]=$answers->answer; \r\n\t\t\t}\r\n\t\t\t\r\n\treturn($answerarray);\r\n}", "public function getRelationList();", "function mapit_get_voting_areas($postcode) {\n global $mapit_client;\n $params = func_get_args();\n $result = $mapit_client->call('MaPit.get_voting_areas', $params);\n return $result;\n}", "public function getQuestionsAndAnswers()\n {\n $categoryId = $this->getRequest()->getParam('id', $this->getData('id'));\n if (!$categoryId) {\n $categoryId = Mage::getModel('faq/category')->getCollection()->getFirstItem()->getId();\n }\n $category = Mage::getModel('faq/category')->load($categoryId);\n $collection = $category->getFaqCollection();\n $collection->getSelect()->order('position ASC');\n return $collection;\n }", "public static function getAllQuestionsAndAnswers(){\n $returnArray = array(\n 'Result' => 1,\n 'Reason' => \"\",\n 'QuestionResponses' => array()\n );\n\n $questionObjects = question::getAllQuestions();\n\n if(count($questionObjects) > 0){\n $responsesArray = self::buildQuestionsAndAnswersArray_Admin($questionObjects);\n $returnArray['QuestionResponses'] = $responsesArray;\n }\n else{\n $returnArray['Result'] = 0;\n $returnArray['Reason'] = \"No questions were found\";\n }\n\n return $returnArray;\n }", "public function get_answers() {\n\t\t\t$answers = array();\n\n\t\t\tforeach ( $this->parsed_answers as $key => $answer ) {\n\t\t\t\t$answers[ $this->get_answer_key( $key ) ] = array(\n\t\t\t\t\t'label' => $answer,\n\t\t\t\t\t'points' => ( intval( $key ) + 1 ),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn $answers;\n\t\t}", "public abstract function getCustomizedRelationList();", "function gsAddAreas($res) {\n $countries = $res->AreasResult->Countries->Country ?: array();\n if(!is_array($countries)) $countries = array($countries);\n $data = $output = array();\n foreach($countries as $country) {\n list($country_id, $errors) = gsAddGolfCountry($country);\n if($country_id) $output[]= \"Added country $country_id\";\n if($errors) {$output[] = \"Failed adding country:\".dump($country, true).dump($errors, true);continue;}\n $regions = $country->Regions->Region ?: array();\n if(!is_array($regions)) $regions = array($regions);\n foreach($regions as $region) {\n list($region_id, $errors) = gsAddGolfRegion($country_id, $region);\n if($region_id) $output[]= \" - Added region $region_id\";\n if($errors) {$output[] = \"Failed adding region:\".dump($region, true).dump($country,true).dump($errors, true);continue;}\n $districts = $region->Areas->Area ?: array();\n if(!is_array($districts)) $districts = array($districts);\n if(!$districts) {\n dump($districts);\n dump($region);die(\"No districts\");\n }\n foreach($districts as $district) {\n list($district_id, $errors) = gsAddGolfDistrict($region_id, $district);\n if($district_id) $output[] = \" -- Added district $district_id\";\n if($errors) {$output[] = \"Failed adding district:\".dump($district, true).dump($region, true).dump($errors, true);continue;}\n }\n }\n }\n\n return implode(html_break(), $output);\n}", "public function getAliasList();", "public function get_mentor_list(){\n\t\t$data = array();\n\t\t$sql = \"SELECT applicants.id as app_id,applicants.first_name,applicants.last_name,applicants.username,applicants.email,applicants.profile_img,applicants.is_verified,mentor_details.country as country_name,social_applicant_user.picture_url,(select COUNT(rating) from review_ratings where user_id=applicants.id) as rating_count,(select ROUND(AVG(rating)) from review_ratings where user_id=applicants.id) as rating_value,mentor_details.* FROM applicants\n\t\tLEFT JOIN mentor_details ON mentor_details.mentor_id = applicants.id\n\t\tLEFT JOIN social_applicant_user ON social_applicant_user.reference_id = applicants.id \n\t\twhere applicants.is_verified=1 and applicants.profile_updated=1 and applicants.role=1 ORDER BY applicants.id ASC LIMIT 0,5\";\n\t\t$data = $this->db->query($sql)->result_array();\n\t\treturn $data;\n\n\t}", "public function getRespondentOrganizations()\n {\n\n if (! $this->_hasVar('__allowedRespOrgs')) {\n $availableOrganizations = $this->util->getDbLookup()->getOrganizationsWithRespondents();\n $allowedOrganizations = $this->getAllowedOrganizations();\n\n $this->_setVar('__allowedRespOrgs', array_intersect($availableOrganizations, $allowedOrganizations));\n }\n // \\MUtil_Echo::track($this->_getVar('__allowedOrgs'));\n\n return $this->_getVar('__allowedRespOrgs');\n }", "public function definition()\n {\n $continents = collect([\n ['code' => 'AF', 'name' => 'Africa'],\n ['code' => 'AN', 'name' => 'Antarctica'],\n ['code' => 'AS', 'name' => 'Asia'],\n ['code' => 'EU', 'name' => 'Europe'],\n ['code' => 'NA', 'name' => 'North America'],\n ['code' => 'OC', 'name' => 'Oceania'],\n ['code' => 'SA', 'name' => 'South America'],\n ]);\n\n $continent = $continents->random();\n $continents = $continents->whereNotIn('code', $continent['code']);\n\n return [\n 'code' => $continent['code'],\n 'name' => $continent['name'],\n ];\n }", "public function getGroups()\n\t{\t\t\n\t\t$groups = $this->tax_class->getTerms();\n\t\tforeach ($groups as &$group) \n\t\t{\n\t\t\t$key = md5($group->meta['location_address']);\n\t\t\t$cache = $this->getCache($key);\n\t\t\tif($cache)\n\t\t\t{\n\t\t\t\t$group->meta['location'] = $cache;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$group->meta['location'] = $this->getLatLngByAddress($group->meta['location_address']);\n\t\t\t}\n\t\t\t$this->setCache($key, $group->meta['location']);\n\t\t}\n\t\treturn $groups;\n\t}", "function build_question(array $merge, $mergeInto){\n\tif (count($_SESSION['ef_term_merge']['question']))\n\t{\n\t\tunset($_SESSION['ef_term_merge']['question']);\n\t}\n\n\t$aliasList = retrieve_multiple_url_alias($merge);\n\n\t$mergeIntoUrlAlias = \"select a.alias from url_alias a where a.source LIKE :source\";\n\n\t$mergeIntoUrlAlias = db_query($mergeIntoUrlAlias,array(':source' => 'taxonomy/term/' . $mergeInto->tid))->fetchAll();\n\n\t$question = \"The term/s\";\n\n\t$counter = 0;\n\t$_SESSION['ef_term_merge']['question']['from'] = [];\n\n\tforeach ($merge as $key => $term)\n\n\t{\n\t \t$question = $question . \" <a href='/\" . $aliasList[$counter] . \"' target='_blank'>\" . $term->name . \"</a> (tid: \" . $term->tid . \", taxonomy: \" . \"<a href='/admin/structure/taxonomy/\" . $term->vocabulary_machine_name . \"' target='_blank'>\" . taxonomy_vocabulary_machine_name_load($term->vocabulary_machine_name)->name . \"</a>)\";\n\n\t \t$counter++;\n\n\t\t$_SESSION['ef_term_merge']['question']['from'][] = [\n\t\t\t'name' => $term->name,\n\t\t\t'tid' => $term->tid,\n\t\t\t'taxonomy' => $term->vocabulary_machine_name,\n\t\t];\n\n\n\t}\n\n\t$question = $question . \" is/are going to be merged into <a href='/\" . $mergeIntoUrlAlias[0]->alias .\"' target='_blank'>\" . $mergeInto->name . \"</a> (tid: \" . $mergeInto->tid .\", taxonomy: <a href='/admin/structure/taxonomy/\" . $mergeInto->vocabulary_machine_name .\"' target='_blank'>\" . taxonomy_vocabulary_machine_name_load($mergeInto->vocabulary_machine_name)->name .\"</a>).\";\n\n\t$_SESSION['ef_term_merge']['question']['to'][] = [\n\t\t'name' => $mergeInto->name,\n\t\t'tid' => $mergeInto->tid,\n\t\t'taxonomy' => $mergeInto->vocabulary_machine_name,\n\t];\n\n\treturn $question;\n\n}", "public function getAnswers()\n {\n return $this->_answers;\n }", "public function getAnswers() {\r\n\t\treturn $this->answers;\r\n\t}", "public function getChampions(){\n\t\treturn $this->_makeCall('champions?');\n\t}", "public function getRecommendations();", "public function getAnswerOptions()\n {\n return $this->hasMany(AnswerOptions::className(), ['question_id' => 'id']);\n }", "function render_locations($locations = null) {\n $html = '';\n\n // If no locations specified, get all locations in alphabetical order.\n if ($locations == null) {\n $location_ids = get_posts(array(\n 'post_type' => 'location',\n 'post_status' => 'publish',\n 'orderby' => 'title',\n 'order' => 'ASC',\n 'posts_per_page' => -1,\n 'fields' => 'ids',\n ));\n\n foreach($location_ids as $loc) {\n $html .= get_location_card($loc);\n }\n\n echo $html;\n } else {\n foreach($locations as $loc) {\n $html .= get_location_card($loc['id'], $loc['distance']);\n }\n\n echo $html;\n }\n\n return;\n}", "public function places()\n {\n return [\n 'launch',\n 'launched',\n 'deliver',\n 'delivered',\n 'send',\n 'sent',\n 'take',\n 'took',\n ];\n }", "public function getAnswersByQuestion($id){\n $question = $this::find()->with('answers')->where(['id' => $id])->one();\n $answers = '';\n $last_key = end(array_keys($question->answers));\n foreach ($question->answers as $key => $value) {\n if($value['dependent_question_id'] == null)\n $answers .= $value['answer_text'].' <a href='. Yii::$app->getUrlManager()->getBaseUrl().'/index.php?r=question/create&option_id='.$value['id'].'>Add Dependent Question</a> <br>';\n else\n $answers .= $value['answer_text'].' <a href='. Yii::$app->getUrlManager()->getBaseUrl().'/index.php?r=question/view&id='.$value['dependent_question_id'].'>See Dependent Question </a>, <a href='.Yii::$app->getUrlManager()->getBaseUrl().'/index.php?r=question/detach&option_id='.$value['id'].'> Detach Question</a><br>';\n }\n return $answers;\n }", "function getAnswerById($answers, $id_business_quiz) {\n //Needs group by the same name.\n $AnswersById = [];\n foreach($answers as $key=>$value) {\n if($value['id_business_quiz'] === $id_business_quiz) {\n $AnswersById[] = $value;\n }\n }\n return $AnswersById;\n }", "function location($id){\n\n $terms = get_the_terms($id,'locations');\n foreach ($terms as $term) {\n echo $term->name;\n if (count($terms) > 1){\n echo ', ';\n }\n }\n\n}", "public function place()\n {\n $countries = [];\n foreach($this->countries as $country) {\n $countries[] = $country->name;\n }\n $place = implode(', ', $countries);\n if ($this->city) {\n $place .= ', '.$this->city;\n }\n\n return $place;\n }", "function get_duo_areas() {\n \t\n }", "public function getMentionLegale()\n\t{\n\t\t$this->db->where('titre = \"mention-legale\"');\n\t\t$Query = $this->db->get(\"mention\");\n\t\tif($Query->num_rows() > 0 ){\n\t\t\tforeach ($Query->result() as $mentionsLegales)\n\t\t\t{\n\t\t\t\t$data[] = $mentionsLegales;\n\t\t\t}\n\t\t\t\t\n\t\t\treturn $data;\n\t\t}\n\t}", "function get_cap_author_list($post_id, $byline_field='byline_array')\n{\n\n if(isset($byline_field) && is_array($byline_field) && !empty($byline_field)) {\n $people = $byline_field;\n } else {\n $people = get_field($byline_field, $post_id);\n }\n\t$byline_array = array();\n\n if (!empty($people)) {\n // let's setup an array to organize these people based on some conditions below\n foreach ($people as $person) {\n $get_byline = get_term_by('id', $person, 'person', 'ARRAY_A');\n\n #var_dump($get_byline);\n\n if(isset($get_byline) && is_array($get_byline) && isset($get_byline['slug']) && !empty($get_byline['slug'])) {\n $person_twitter_handle = get_field('person_twitter_handle', 'person_' . $get_byline[\"term_id\"]);\n\n $inactive = get_field('person_is_inactive', 'person_' . $get_byline[\"term_id\"]);\n\n #var_dump($active);\n #var_dump(get_field('person_is_linked', 'person_' . $get_byline[\"term_id\"]));\n\n if (isset($inactive) && !$inactive && !empty($person_twitter_handle) && is_singular(get_post_type())) {\n $tweeter = \"<a href=\\\"https://twitter.com/intent/user?screen_name=\" .\n $person_twitter_handle .\n \"\\\"><img src=\\\"\" .\n content_url() .\n \"/plugins/cap-byline/bird_blue_16.png\\\" class=\\\"twitter-bird\\\"></a>\";\n } else {\n $tweeter = \"\";\n }\n\n // add a link if person_is_linked is set\n if (isset($inactive) && !$inactive && get_field('person_is_linked', 'person_' . $get_byline[\"term_id\"])) {\n $tout = sprintf('<a href=\"/?person=%s\">%s</a>%s', $get_byline['slug'], $get_byline['name'], $tweeter);\n } else {\n $tout = $get_byline['name'] . $tweeter;\n }\n\n if(has_filter('cap_byline_person_url')) {\n $get_byline[\"output\"] = apply_filters('cap_byline_person_url', $tout, $get_byline['slug'], $get_byline['name'], $tweeter);\n } else {\n $get_byline[\"output\"] = $tout;\n }\n\n $byline_array[$person] = $get_byline;\n }\n }\n }\n\n\n #print \"returning array for $post_id and $byline_field<br>\\n\";\n #var_dump($byline_array);\n #print \"<br>\\n\";\n\n return $byline_array;\n}", "public static function search() {\n global $p;\n if (check_posts(['lat', 'lng'])) {\n $pharmacies = new pharmacies();\n $pharmacies->placeLat = $p['lat'];\n $pharmacies->placeLong = $p['lng'];\n $list = $pharmacies->get_place_by_latlng($p['distance'], 10);\n $r = [];\n\n foreach ($list['result'] as $place) {\n $f = new files($place['placeImg']);\n $place['placeImg'] = $f->placeOnServer;\n $r[] = $place;\n }\n $result['status'] = TRUE;\n $result['count'] = $list['nums'];\n $result['list'] = $r;\n } else {\n\n $result['status'] = FALSE;\n $result['error'] = 'invalid lat and lng';\n }\n\n// echo json_encode($p);\n// exit;\n if (@$p['post'] == 'post')\n $result['post'] = $p;\n echo json_encode($result);\n }", "public function getIntroducer()\n {\n $term = Input::get('term');\n $associate = array();\n $search = DB::select(\n \"\n select id , rank_id ,associate_no as value ,CONCAT(name ,' ID ',associate_no) as label\n from associates\n where match (name, associate_no )\n against ('+{$term}*' IN BOOLEAN MODE)\n \"\n );\n\n foreach ($search as $result) {\n $associate[] = $result;\n\n }\n\n return json_encode($associate);\n\n }", "function getPlacesOfPublication(){\n $placesOfPublication = $this->all('library:placeOfPublication');\n return $placesOfPublication;\n }", "public function getAliases()\n {\n $aliases = array();\n // find aliases without specified language\n $target = '[[' . self::PLACEHOLDER_PREFIX . $this->getNode()->getId() . ']]';\n $crit1 = array(\n 'type' => self::TYPE_ALIAS,\n 'target' => $target,\n );\n \n // find aliases with language specified\n $target = '[[' . self::PLACEHOLDER_PREFIX . $this->getNode()->getId() . '_' . $this->getLang() . ']]';\n $crit2 = array(\n 'type' => self::TYPE_ALIAS,\n 'target' => $target,\n );\n \n $pageRepo = \\Env::get('em')->getRepository(\"Cx\\Core\\ContentManager\\Model\\Entity\\Page\");\n \n // merge both resultsets\n $aliases = array_merge(\n $pageRepo->findBy($crit1, true),\n $pageRepo->findBy($crit2, true)\n );\n return $aliases;\n }", "function getMemberAnswers($test_id, $member_id)\r\n {\r\n $this->db->select('id, question, type, optiona, optionb, optionc, optiond, optione, correctanswer');\r\n $this->db->order_by('id asc', 'test_id asc');\r\n $q = $this->db->get_where('crashexam_question', array('test_id'=>$test_id));\r\n $questions = $q->result_array();\r\n\r\n // get member answers\r\n $this->db->select('question_id, status, answer_radio, answer_textarea, answer_input');\r\n $q = $this->db->get_where('crashexam_member_answer' , array( 'test_id'=>$test_id, 'member_id'=>$member_id ));\r\n $answers = $q->result_array();\r\n\r\n $result = array();\r\n\r\n // merge questions and answers\r\n // $data[0][question] = '';\r\n // $data[0][answer] = '';\r\n foreach($answers as $answer){ // atur answers\r\n $data_answers[$answer['question_id']] = $answer;\r\n }\r\n $qnum = 1;\r\n foreach($questions as $key=>$question){\r\n $question['number'] = $qnum;\r\n $questions[$key]['question'] = $question;\r\n\r\n // format answer\r\n if($question['type'] == 'mp') {\r\n $questions[$key]['question']['question'] .= '<br />';\r\n if(@$questions[$key]['question']['optiona']) $questions[$key]['question']['question'] .= 'a. ' . $questions[$key]['question']['optiona'] . '<br />';\r\n if(@$questions[$key]['question']['optionb']) $questions[$key]['question']['question'] .= 'b. ' .$questions[$key]['question']['optionb'] . '<br />';\r\n if(@$questions[$key]['question']['optionc']) $questions[$key]['question']['question'] .= 'c. ' .$questions[$key]['question']['optionc'] . '<br />';\r\n if(@$questions[$key]['question']['optiond']) $questions[$key]['question']['question'] .= 'd. ' .$questions[$key]['question']['optiond'] . '<br />';\r\n if(@$questions[$key]['question']['optione']) $questions[$key]['question']['question'] .= 'e. ' .$questions[$key]['question']['optione'] . '<br />';\r\n $ans = @$data_answers[$question['id']]['answer_radio'];\r\n } else if ($question['type'] == 'essay') {\r\n $ans = @$data_answers[$question['id']]['answer_textarea'];\r\n } else if(is_numeric($question['type'])) {\r\n $inputs = @unserialize($data_answers[$question['id']]['answer_input']);\r\n $i=1;\r\n $ans = '';\r\n if($inputs) {\r\n foreach($inputs as $input){\r\n $ans .= $i . '. ' . $input . '<br />';\r\n\r\n $i++;\r\n }\r\n }\r\n } else {\r\n\r\n }\r\n\r\n $questions[$key]['answer'] = (isset($data_answers[$question['id']])) ? $ans : null;\r\n\r\n $qnum++;\r\n }\r\n\r\n return $questions;\r\n\r\n\r\n }", "public function questions() {\n $questions = DB::select('select Question, AnswerType, rowid from Questions WHERE AnswerType<>\"mcq-radio\" AND AnswerType<>\"mcq-dropDown\";');\n\n // Obtain a list of all questions that are mcq\n $MCQ = DB::select('select Question, AnswerType, rowid from Questions WHERE AnswerType=\"mcq-radio\" OR AnswerType=\"mcq-dropDown\";');\n $mcqOptions = DB::select('select Qid, mcqOption from mcqOptions');\n\n return view('userResponseArea', compact(['questions','MCQ', 'mcqOptions']));\n }", "public function answer()\n {\n $answer = \\App\\Answer::orderby('created_at', 'desc')->get();\n return view('answer.get', [\n 'answers' => $answer,\n ]);\n }", "public function check_and_filter_answers($form) {\n $tags = $this->part_tags();\n $res = (object)array('answers' => array());\n foreach ($form->answermark as $i => $a) {\n if ((strlen(trim($form->answermark[$i])) == 0 || strlen(trim($form->answer[$i])) == 0)\n && (strlen(trim($form->subqtext[$i]['text'])) != 0\n || strlen(trim($form->feedback[$i]['text'])) != 0\n || strlen(trim($form->vars1[$i])) != 0\n )\n ) {\n $res->errors[\"answer[$i]\"] = get_string('error_answer_missing', 'qtype_formulas');\n $skip = true;\n }\n if (strlen(trim($form->answermark[$i])) == 0 || strlen(trim($form->answer[$i])) == 0) {\n continue; // If no mark or no answer, then skip this answer.\n }\n if (floatval($form->answermark[$i]) <= 0) {\n $res->errors[\"answermark[$i]\"] = get_string('error_mark', 'qtype_formulas');\n }\n $skip = false;\n if (strlen(trim($form->correctness[$i])) == 0) {\n $res->errors[\"correctness[$i]\"] = get_string('error_criterion', 'qtype_formulas');\n $skip = true;\n }\n if ($skip) {\n continue; // If no answer or correctness conditions, it cannot check other parts, so skip.\n }\n $res->answers[$i] = new stdClass();\n $res->answers[$i]->questionid = $form->id;\n foreach ($tags as $tag) {\n $res->answers[$i]->{$tag} = trim($form->{$tag}[$i]);\n }\n\n $subqtext = array();\n $subqtext['text'] = $form->subqtext[$i]['text'];\n $subqtext['format'] = $form->subqtext[$i]['format'];\n if (isset($form->subqtext[$i]['itemid'])) {\n $subqtext['itemid'] = $form->subqtext[$i]['itemid'];\n }\n $res->answers[$i]->subqtext = $subqtext;\n\n $fb = array();\n $fb['text'] = $form->feedback[$i]['text'];\n $fb['format'] = $form->feedback[$i]['format'];\n if (isset($form->feedback[$i]['itemid'])) {\n $fb['itemid'] = $form->feedback[$i]['itemid'];\n }\n $res->answers[$i]->feedback = $fb;\n\n $fb = array();\n $fb['text'] = $form->partcorrectfb[$i]['text'];\n $fb['format'] = $form->partcorrectfb[$i]['format'];\n if (isset($form->partcorrectfb[$i]['itemid'])) {\n $fb['itemid'] = $form->partcorrectfb[$i]['itemid'];\n }\n $res->answers[$i]->partcorrectfb = $fb;\n\n $fb = array();\n $fb['text'] = $form->partpartiallycorrectfb[$i]['text'];\n $fb['format'] = $form->partpartiallycorrectfb[$i]['format'];\n if (isset($form->partpartiallycorrectfb[$i]['itemid'])) {\n $fb['itemid'] = $form->partpartiallycorrectfb[$i]['itemid'];\n }\n $res->answers[$i]->partpartiallycorrectfb = $fb;\n\n $fb = array();\n $fb['text'] = $form->partincorrectfb[$i]['text'];\n $fb['format'] = $form->partincorrectfb[$i]['format'];\n if (isset($form->partincorrectfb[$i]['itemid'])) {\n $fb['itemid'] = $form->partincorrectfb[$i]['itemid'];\n }\n $res->answers[$i]->partincorrectfb = $fb;\n }\n if (count($res->answers) == 0) {\n $res->errors[\"answermark[0]\"] = get_string('error_no_answer', 'qtype_formulas');\n }\n\n return $res;\n }", "function create_mcq($question_set, $question_text, $answer_list, $answer_key) {\n $question = array();\n $question['type'] = '1';\n $question['answer_list'] = $answer_list;\n $question['answer_key'] = $answer_key;\n $question_set['el_set'][] = $question;\n return $question_set;\n}", "public function getAutocomplete()\n {\n // get a suggester query instance\n $query = $this->client->createSuggester();\n $query->setQuery(strtolower(Input::get('term')));\n $query->setDictionary('suggest');\n $query->setOnlyMorePopular(true);\n $query->setCount(10);\n $query->setCollate(true);\n\n // this executes the query and returns the result\n $resultset = $this->client->suggester($query);\n\n $suggestions = array();\n\n foreach ($resultset as $term => $termResult) {\n foreach ($termResult as $result) {\n $suggestions[] = $result;\n }\n }\n\n return Response::json($suggestions);\n }", "public function getSuggestions()\n {\n return $this->suggestions;\n }", "public function getSuggestions()\n {\n return $this->suggestions;\n }", "public function getSuggestions()\n {\n return $this->suggestions;\n }", "function getAll() {\r\n\t\treturn SurveyAnswerQuery::create()->find();\r\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}", "function getCorrectAnswers()\n\t{\n\t\treturn $this->correctanswers;\n\t}", "public function getAddressBooks();", "public function getFarmsVegetables(){\n\t\t$url = \"http://www.vermontfresh.net/member-search/MemberSearchForm?Keywords=&ProductCategoryID=5&Categories%5B13%5D=13&RegionID=&action_doMemberSearch=Search\";\n\t\treturn $this->parse_data($url);\n\t}", "public function getAnswers()\n {\n return $this->hasMany(Answer::className(), ['question_id' => 'id']);\n }", "function acadp_get_listings_view_options() {\n\n\t$general_settings = get_option( 'acadp_general_settings' );\n\t$listings_settings = get_option( 'acadp_listings_settings' );\n\n\t$options = ! empty( $listings_settings['view_options'] ) ? $listings_settings['view_options'] : array();\n\t$options[] = isset( $_GET['view'] ) ? sanitize_text_field( $_GET['view'] ) : $listings_settings['default_view'];\n\t$options = array_unique( $options );\n\n\tif( empty( $general_settings['has_map'] ) && array_key_exists( 'map', $options ) ) {\n\t\tunset( $options['map'] );\n\t}\n\n\t$views = array();\n\n\tforeach( $options as $option ) {\n\n\t\tswitch( $option ) {\n\t\t\tcase 'list' :\n\t\t\t\t$views[ $option ] = __( 'List', 'advanced-classifieds-and-directory-pro' );\n\t\t\t\tbreak;\n\t\t\tcase 'grid' :\n\t\t\t\t$views[ $option ] = __( 'Grid', 'advanced-classifieds-and-directory-pro' );\n\t\t\t\tbreak;\n\t\t\tcase 'map' :\n\t\t\t\t$views[ $option ] = __( 'Map', 'advanced-classifieds-and-directory-pro' );\n\t\t\t\tbreak;\n\t\t}\n\n\t}\n\n\treturn $views;\n\n}", "public function getsuggestedAction()\r\n {\r\n $User = $this->getUser();\r\n $data = $User->getSuggested();\r\n return $data;\r\n }", "function ubc_di_get_assessment_results() {\n\t\tglobal $wpdb;\n\t\t$response = array();\n\t\tif ( current_user_can( 'manage_options' ) ) {\n\t\t\t$ubc_di_sites = get_posts( array(\n\t\t\t\t'post_type' => 'ubc_di_assess_result',\n\t\t\t\t'order' => 'DESC',\n\t\t\t\t'posts_per_page' => -1,\n\t\t\t) );\n\t\t} else {\n\t\t\t$ubc_di_sites = get_posts( array(\n\t\t\t\t'post_type' => 'ubc_di_assess_result',\n\t\t\t\t'order' => 'DESC',\n\t\t\t\t'posts_per_page' => -1,\n\t\t\t) );\n\t\t\t$temp_ubc_di_sites = array();\n\t\t\t$user_id = get_current_user_id();\n\t\t\tforeach ( $ubc_di_sites as $ubc_di_site ) {\n\t\t\t\t$ubc_di_asr_group_id = get_post_meta( $ubc_di_site->ID, 'ubc_di_assessment_result_group', true );\n\t\t\t\t$ubc_di_group_people = get_post_meta( $ubc_di_asr_group_id, 'ubc_di_group_people', true );\n\t\t\t\tif ( '' != $ubc_di_group_people ) {\n\t\t\t\t\tforeach ( $ubc_di_group_people as $ubc_di_group_person ) {\n\t\t\t\t\t\tif ( $user_id == $ubc_di_group_person ) {\n\t\t\t\t\t\t\t$temp_ubc_di_sites[] = $ubc_di_site;\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$ubc_di_sites = $temp_ubc_di_sites;\n\t\t}\n\t\tforeach ( $ubc_di_sites as $ubc_di_site ) {\n\t\t\t$temp_array = $this->ubc_di_get_site_metadata( $ubc_di_site->ID );\n\t\t\tif ( null != $temp_array ) {\n\t\t\t\tarray_push( $response, $temp_array );\n\t\t\t}\n\t\t}\n\t\treturn $response;\n\t}", "public function getAnswersByQuestion()\n {\n $question_id = request('question');\n\n $question = PollQuestion::where('id', $question_id)->first();\n $answers = Answer::where('question_id', $question_id)->get();\n\n $data['question'] = $question;\n $data['answers'] = $answers;\n\n return view('answer', ['data' => $data]);\n }", "public function getCreateWorksInCountry()\n {\n return <<<CQL\nPROFILE\nMATCH (q:Question { id: \"dropdown_18069205\" })-[:HAS_ANSWER]->(a)\nWITH DISTINCT a\nMATCH (a)<-[:ANSWERED]-(p)\n// If answer is United States of America, then answer _must_ include a state,\n// so ignore the US answers here.\nWHERE NOT a.answer = \"United States of America\"\nWITH a, COLLECT(p) AS residents\nMATCH (c:Country { name: a.answer })\nWITH c, residents\nUNWIND residents AS resident\nCREATE UNIQUE (resident)-[:WORKS_IN]->(c);\nCQL;\n }", "function get_related_to_types()\n{\n $types = [\n [\n 'key' => 'general_call',\n 'lang_key' => 'General Call'\n ],\n [\n 'key' => 'cold_calling',\n 'lang_key' => 'Cold Calling'\n ],\n [\n 'key' => 'satisfaction_call',\n 'lang_key' => 'Satisfaction Call'\n ],\n [\n 'key' => 'review_call',\n 'lang_key' => 'Review Call'\n ],\n [\n 'key' => 'referral_call',\n 'lang_key' => 'Referral Call'\n ],\n [\n 'key' => 'proposal',\n 'lang_key' => 'Proposal - Related'\n ],\n [\n 'key' => 'estimate',\n 'lang_key' => 'Estimate - Related'\n ],\n ];\n\n return hooks()->apply_filters('get_related_to_types', $types);\n}", "function get_meals($output)\r\n{\r\n\t$info = array('ricettaName' => [],\r\n\t\t\t\t\t'ricettaImage' =>[],\r\n\t\t\t\t\t'ricettaCategory' => [],\r\n\t\t\t\t\t'ricettaInstructions' => [],\r\n\t\t\t\t\t'ricettaIngredient1' => [],\r\n\t\t\t\t\t'ricettaIngredient2' => [],\r\n\t\t\t\t\t'ricettaIngredient3' => [],\r\n\t\t\t\t\t'ricettaIngredient4' => [],\r\n\t\t\t\t\t'ricettaIngredient5' => [],\r\n\t\t\t\t\t'ricettaIngredient6' => [],\r\n\t\t\t\t\t'ricettaIngredient7' => [],\r\n\t\t\t\t\t'ricettaIngredient8' => [],\r\n\t\t\t\t\t'ricettaIngredient9' => [],\r\n\t\t\t\t\t'ricettaMeasure1' => [],\r\n\t\t\t\t\t'ricettaMeasure2' => [],\r\n\t\t\t\t\t'ricettaMeasure3' => [],\r\n\t\t\t\t\t'ricettaMeasure4' => [],\r\n\t\t\t\t\t'ricettaMeasure5' => [],\r\n\t\t\t\t\t'ricettaMeasure6' => [],\r\n\t\t\t\t\t'ricettaMeasure7' => [],\r\n\t\t\t\t\t'ricettaMeasure8' => [],\r\n\t\t\t\t\t'ricettaMeasure9' => []\r\n\t\t\t\t\t);\r\n\t\r\n\tfor ($i = 0; \r\n\t\t $i < count($output[\"meals\"]) ; \r\n\t\t $i++)\r\n\t{\r\n\t\t// se è presente\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeal\"]))\r\n\t\t\t// assegno il valore all'array\r\n\t\t\t$info['ricettaName'][$i] = $output[\"meals\"][$i][\"strMeal\"];\r\n\t\telse\r\n\t\t\t// altrimenti gli assegno null\r\n\t\t\t$info['ricettaName'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMealThumb\"]))\r\n\t\t\t$info['ricettaImage'][$i] = $output[\"meals\"][$i][\"strMealThumb\"];\r\n\t\telse\r\n\t\t\t$info['ricettaImage'][$i] = \"null\";\r\n\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strCategory\"]))\r\n\t\t\t$info['ricettaCategory'][$i] = $output[\"meals\"][$i][\"strCategory\"];\r\n\t\telse\r\n\t\t\t$info['ricettaCategory'][$i] = \"null\";\r\n\r\n\t\tif(!empty($output[\"meals\"][$i][\"strInstructions\"]))\r\n\t\t\t$info['ricettaInstructions'][$i] = $output[\"meals\"][$i][\"strInstructions\"];\r\n\t\telse\r\n\t\t\t$info['ricettaInstructions'][$i] = \"null\";\r\n\t\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient1\"]))\r\n\t\t\t$info['ricettaIngredient1'][$i] = $output[\"meals\"][$i][\"strIngredient1\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient1'][$i] = \"null\";\r\n\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient1\"]))\r\n\t\t\t$info['ricettaIngredient1'][$i] = $output[\"meals\"][$i][\"strIngredient1\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient1'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient2\"]))\r\n\t\t\t$info['ricettaIngredient2'][$i] = $output[\"meals\"][$i][\"strIngredient2\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient2'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient3\"]))\r\n\t\t\t$info['ricettaIngredient3'][$i] = $output[\"meals\"][$i][\"strIngredient3\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient3'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient4\"]))\r\n\t\t\t$info['ricettaIngredient4'][$i] = $output[\"meals\"][$i][\"strIngredient4\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient4'][$i] = \"null\";\r\n\t\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient5\"]))\r\n\t\t\t$info['ricettaIngredient5'][$i] = $output[\"meals\"][$i][\"strIngredient5\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient5'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient6\"]))\r\n\t\t\t$info['ricettaIngredient6'][$i] = $output[\"meals\"][$i][\"strIngredient6\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient6'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient7\"]))\r\n\t\t\t$info['ricettaIngredient7'][$i] = $output[\"meals\"][$i][\"strIngredient7\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient7'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient8\"]))\r\n\t\t\t$info['ricettaIngredient8'][$i] = $output[\"meals\"][$i][\"strIngredient8\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient8'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strIngredient9\"]))\r\n\t\t\t$info['ricettaIngredient9'][$i] = $output[\"meals\"][$i][\"strIngredient9\"];\r\n\t\telse\r\n\t\t\t$info['ricettaIngredient9'][$i] = \"null\";\r\n\t\t\t\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure1\"]))\r\n\t\t\t$info['ricettaMeasure1'][$i] = $output[\"meals\"][$i][\"strMeasure1\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure1'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure2\"]))\r\n\t\t\t$info['ricettaMeasure2'][$i] = $output[\"meals\"][$i][\"strMeasure2\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure2'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure3\"]))\r\n\t\t\t$info['ricettaMeasure3'][$i] = $output[\"meals\"][$i][\"strMeasure3\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure3'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure4\"]))\r\n\t\t\t$info['ricettaMeasure4'][$i] = $output[\"meals\"][$i][\"strMeasure4\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure4'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure5\"]))\r\n\t\t\t$info['ricettaMeasure5'][$i] = $output[\"meals\"][$i][\"strMeasure5\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure5'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure6\"]))\r\n\t\t\t$info['ricettaMeasure6'][$i] = $output[\"meals\"][$i][\"strMeasure6\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure6'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure7\"]))\r\n\t\t\t$info['ricettaMeasure7'][$i] = $output[\"meals\"][$i][\"strMeasure7\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure7'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure8\"]))\r\n\t\t\t$info['ricettaMeasure8'][$i] = $output[\"meals\"][$i][\"strMeasure8\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure8'][$i] = \"null\";\r\n\t\t\t\r\n\t\tif(!empty($output[\"meals\"][$i][\"strMeasure9\"]))\r\n\t\t\t$info['ricettaMeasure9'][$i] = $output[\"meals\"][$i][\"strMeasure9\"];\r\n\t\telse\r\n\t\t\t$info['ricettaMeasure9'][$i] = \"null\";\r\n\t\t\t\r\n\t}\r\n\t\treturn($info);\t\t\r\n}", "function ppt_resources_get_reps_of_accounts_country($data)\n{\n global $user;\n if (!isset($data['countries']) || empty($data['countries'])) {\n $countries = get_user_countries($user);\n } else {\n $countries = $data['countries'];\n }\n\n if (!isset($data['accounts']) || empty($data['accounts'])) {\n $accounts = ppt_resources_get_role_accounts($user, $countries);\n } else {\n $accounts = $data['accounts'];\n }\n if (!is_array($accounts)) {\n $accounts = [$accounts];\n }\n $reps = array();\n $final = array();\n if (is_sales_manager($user)) {\n // If the user is sales manager we will get the reps under it.\n $reps = ppt_resources_get_sales_manager_reps($user->uid, $countries);\n foreach ($reps as $rep_user) {\n // Get full name.\n if (isset($rep_user->field_full_name[LANGUAGE_NONE])) {\n $name = $rep_user->field_full_name[LANGUAGE_NONE][0]['value'];\n } else {\n $name = $rep_user->name;\n }\n $final[] = array(\"id\" => $rep_user->uid, \"name\" => $name);\n }\n $final2 = ppt_resources_get_reps_of_accounts($final, $accounts);\n return $final2;\n } elseif (is_comm_lead($user)) {\n $reps = ppt_resources_get_comm_lead_reps($user->uid, $countries);\n foreach ($reps as $rep_user) {\n // Get full name.\n if (isset($rep_user->field_full_name[LANGUAGE_NONE])) {\n $name = $rep_user->field_full_name[LANGUAGE_NONE][0]['value'];\n } else {\n $name = $rep_user->name;\n }\n $final[] = array(\"id\" => $rep_user->uid, \"name\" => $name);\n }\n $final2 = ppt_resources_get_reps_of_accounts($final, $accounts);\n return $final2;\n } elseif (is_regional_lead($user)) {\n $uid = $user->uid;\n // Load all the sales manager for this regional lead and loop over them.\n $sales_managers = ppt_resources_get_regional_lead_sales_managers($uid);\n $reps = array();\n foreach ($sales_managers as $sales_manager) {\n $reps = array_merge($reps, ppt_resources_get_sales_manager_reps($sales_manager->uid, $countries));\n }\n // $reps = array_unique($reps);\n foreach ($reps as $rep_user) {\n if ($rep_user) {\n // Get full name.\n if (isset($rep_user->field_full_name[LANGUAGE_NONE])) {\n $name = $rep_user->field_full_name[LANGUAGE_NONE][0]['value'];\n } else {\n $name = $rep_user->name;\n }\n $final[] = array(\"id\" => $rep_user->uid, \"name\" => $name);\n }\n }\n $final2 = ppt_resources_get_reps_of_accounts($final, $accounts);\n return $final2;\n } elseif (is_system_admin($user) || is_global_lead($user) || is_data_admin($user)) {\n foreach ($countries as $country) {\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'user')\n ->entityCondition('bundle', 'user')\n ->fieldCondition('field_country', 'target_id', $country, '=')\n ->propertyCondition('status', 1)\n ->addMetaData('account', user_load(1));\n\n $records = $query->execute();\n if (isset($records['user'])) {\n $tmp = array();\n foreach ($records['user'] as $id => $row) {\n $rep = user_load($id);\n if ($rep && is_rep($rep)) {\n $tmp[] = $id;\n }\n }\n $reps = array_merge($reps, $tmp);\n }\n }\n } elseif (is_rep($user)) {\n $reps = array($user->uid);\n }\n\n // Load all users.\n $reps = array_unique($reps);\n foreach ($reps as $rep_id) {\n $rep_user = user_load($rep_id);\n if ($rep_user) {\n // Get full name.\n if (isset($rep_user->field_full_name[LANGUAGE_NONE])) {\n $name = $rep_user->field_full_name[LANGUAGE_NONE][0]['value'];\n } else {\n $name = $rep_user->name;\n }\n $final[] = array(\"id\" => $rep_id, \"name\" => $name);\n }\n }\n $final2 = ppt_resources_get_reps_of_accounts($final, $accounts);\n return $final2;\n}" ]
[ "0.575198", "0.55822414", "0.5368301", "0.53590673", "0.5281142", "0.52667874", "0.5235581", "0.52173", "0.5199373", "0.51669407", "0.5152028", "0.5151702", "0.5149886", "0.5119294", "0.5106992", "0.5076492", "0.50676996", "0.5067246", "0.5050985", "0.5013905", "0.49930745", "0.4986084", "0.4969438", "0.49662545", "0.4951313", "0.4942053", "0.4926148", "0.4902996", "0.48995575", "0.4892991", "0.48914436", "0.48797882", "0.4874603", "0.48667184", "0.48481172", "0.48468655", "0.48418015", "0.4837529", "0.4836381", "0.4834652", "0.48330614", "0.48197752", "0.48190543", "0.48190543", "0.48190543", "0.4809862", "0.48057407", "0.47991592", "0.4798113", "0.47931814", "0.47819367", "0.47699034", "0.47595292", "0.4739718", "0.47381735", "0.47347936", "0.47294575", "0.47275883", "0.47273058", "0.4727057", "0.4723402", "0.47232214", "0.47198942", "0.4718818", "0.47174507", "0.47161758", "0.4704781", "0.47025418", "0.47006583", "0.46893933", "0.468711", "0.46860808", "0.46789676", "0.46788037", "0.46786523", "0.46771258", "0.46754733", "0.46684143", "0.4667219", "0.46644917", "0.46642116", "0.46638182", "0.46581152", "0.46560544", "0.46560544", "0.46560544", "0.46548942", "0.46471882", "0.4637248", "0.46352118", "0.46337706", "0.4629305", "0.46289486", "0.46280867", "0.46241224", "0.46225232", "0.4622485", "0.4622381", "0.46220756", "0.46216208" ]
0.5746939
1
Template function: Current answer community name (defaults to echo)
function pzdc_answer_community_name($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_attribute_helper('answer', 'community->name', $echo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pzdc_hub_community_name($echo = TRUE) {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_attribute_helper('hub_community', 'name', $echo);\n}", "function sensei_custom_lesson_quiz_text () {\n\t$text = \"Report What You Have Learned\";\n\treturn $text;\n}", "function getCommunityName($content,$conf) {\n\t\tif (intval(trim($this->piVars['community_id'])) <= 0) {\n\t\t\t$community_id = $conf['community_id'];\n\t\t} else {\n\t\t\t$community_id = intval(trim($this->piVars['community_id']));\n\t\t}\n\t\tif ($_SESSION[community_name] > '' ) {\n\t\t\t$content = $_SESSION[community_name];\n\t\t} elseif ($community_id > '' && $community_id != 'choose') {\n\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t\t'cm_community_name',\n\t\t\t\t\t\t'tx_civserv_conf_mandant',\n\t\t\t\t\t\t'1 '.\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_conf_mandant').\n\t\t\t\t\t\t' AND cm_community_id = '.intval($community_id),\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'');\n\t\t\tif ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\t\t$content = $row['cm_community_name'];\n\t\t\t}\n\t\t}else {\n\t\t\t$content = '';\n\t\t}\n\t\treturn $content;\n\t}", "public function defaultName() { return \"Enter the category name...\"; }", "function ipal_show_current_question(){\r\n\tglobal $DB;\r\n\tglobal $ipal;\r\n\t if($DB->record_exists('ipal_active_questions', array('ipal_id'=>$ipal->id))){\r\n\t $question=$DB->get_record('ipal_active_questions', array('ipal_id'=>$ipal->id));\r\n\t $questiontext=$DB->get_record('question',array('id'=>$question->question_id)); \r\n\techo \"The current question is -> \".strip_tags($questiontext->questiontext);\r\nreturn(1);\r\n\t }\r\n\telse\r\n\t {\r\n\t return(0);\r\n\t }\r\n}", "protected function get_current_question_text(): string {\n $submitteddata = optional_param_array('questiontext', '', PARAM_RAW);\n if ($submitteddata) {\n // Form has been submitted, but it being re-displayed.\n return $submitteddata['text'];\n }\n if (isset($this->question->id)) {\n // Form is being loaded to edit an existing question.\n return $this->question->questiontext;\n }\n // Creating new question.\n return '';\n }", "public function current_title()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" current_title ?\");\n\t}", "public function getName(): string {\n\t\treturn $this->lFactory->get('spreed')->t('Talk');\n\t}", "function caldol_modify_author_display_name($author_name, $reply_id){\n\t$author_name = $author_name . \"\";\nreturn $author_name;\n\n}", "public function display_current()\n\t{\n\t\treturn $this->CLI->stringQuery($this->SqueezePlyrID.\" display ? ?\");\n\t}", "function getDisplayName() {\r\n\t\treturn __('plugins.generic.markup.displayName');\r\n\t}", "function displayName(){\n echo \"My name is displayed\";\n }", "function getDisplayName() {\n\t\treturn __('plugins.generic.thesisfeed.displayName');\n\t}", "function help($message = null) {\n if (!is_null($message))\n echo($message.NL.NL);\n\n $self = baseName($_SERVER['PHP_SELF']);\n\necho <<<HELP\n\n Syntax: $self [symbol ...]\n\n\nHELP;\n}", "function getDisplayName() {\n\t\treturn __('plugins.generic.announcementfeed.displayName');\n\t}", "public function showName()\n {\n echo $this->name;\n }", "public function getName() {\n\t\treturn $this->current_name;\n\t}", "function printAcademyName(){\r\n echo \"<p class='username' id='username'>$this->academy </p>\";\r\n }", "public function get_name()\r\n {\r\n \t$data = $this->get_exercise_data();\r\n \treturn $data['title'];\r\n }", "public function getName()\n {\n switch ($this->queriedContext) {\n case $this->i8n('context-keyword'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-keyword') . ' : ' . $this->getInput('q');\n break;\n case $this->i8n('context-group'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-group') . ' : ' . $this->getKey('group');\n break;\n case $this->i8n('context-talk'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-talk') . ' : ' . $this->getTalkTitle();\n break;\n default: // Return default value\n return static::NAME;\n }\n }", "public function getHeaderText()\n {\n return __('New Question');\n }", "public function getQuestion(): string\n {\n return $this->question;\n }", "protected function getWebsiteNameComment()\n {\n return '<b>[website_name]</b> - ' . __('output a current website name') . ';';\n }", "public function label() {\n\t\t\t\n\t\t\t$option = get_theme_option('blog_options', 'post_link_option');\n\n\t\t\tswitch ($option) {\n\t\t\t\tcase '1':\n\t\t\t\t\n\t\t\t\t\t$output = __('Read more', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '2':\n\t\t\t\t\n\t\t\t\t\t$output = __('Continue reading', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '3':\n\t\t\t\t\n\t\t\t\t\t$output = __('See full article', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '4':\n\t\t\t\t\n\t\t\t\t\t$output = __('Read this post', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tcase '5':\n\t\t\t\t\n\t\t\t\t\t$output = __('Learn more', 'theme translation');\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\n\t\t\t\t\t$output = empty($list_link) ? __('Read more', 'theme translation') : $list_link;\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\treturn $output;\n\t\t}", "function PrintSiteName()\n\t{\n\t\t$name = GetTitle('parameters/preferences', 2);\n\t\techo $name;\n\t}", "function formatQA( $question, $answer ) {\n return \"> {$question}\\n{$answer}\";\n}", "public function displayCurrentTitle()\n {\n $entry = $this->getEntry();\n if ($entry) {\n return $entry->displayCurrentTitle();\n }\n }", "public function name()\n {\n \treturn $this->article->name;\n }", "function linkCommunityChoice($content,$conf) {\n\t\tif ($this->conf['community_choice']) {\n\t\t\t$notice = str_replace('###COMMUNITY_NAME###','<span class=\"community_name\">' . $this->community['name'] . '</span>',$this->pi_getLL('tx_civserv_pi1_community_choice.notice','The following information is related to ###COMMUNITY_NAME###.'));\n\t\t\t$link_text = $this->pi_getLL('tx_civserv_pi1_community_choice.link_text','Click here, to choose another community.');\n\t\t\t$link = $this->pi_linkTP_keepPIvars($link_text,array(community_id => 'choose',mode => 'service_list'),1,1);\n\t\t\treturn $notice . ' ' . $link;\n\t\t}\n\t}", "function getNameHelper(){\n\treturn 'Ejercicio de aprendizaje';\n}", "function the_title() {\n\tglobal $discussion;\n\treturn $discussion['title'];\n}", "function myText(){\n\t\n\n\techo '<h1>before subForums</h1>';\n\t\n\n}", "function quiz_title( $title ){\n $screen = get_current_screen();\n \n if ( 'random-timed-quiz' == $screen->post_type ) {\n $title = 'Quiz name';\n }\n \n return $title;\n}", "function pzdc_answer_content($echo = TRUE) {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_answer_content($echo);\n}", "public function askName()\n {\n $this->ask('Antes que nada. ¿Cómo te llamas? Para dirigirme a ti', function(Answer $answer) {\n // Texto respuesta\n $this->name = $answer->getText();\n $this->say('Encantado, '.$this->name);\n $this->askWhatToDo();\n });\n }", "public function displayNotAnsweredQuestion()\n {\n\n }", "function myCreator(){\n return \"Adokiye is my creator he is currently in stage 4 of the HNG internship, he will soon advance to stage 5\";\n}", "public function getSponsorname() {}", "public function getDisplayName() {}", "protected function getName()\n {\n return $this->getRequest()->args('name') ?: $this->profile->code . '_' . $this->tpl['name'];\n }", "function minorite_quiz_no_feedback() {\n return '<div id=\"quiz_finish\">' . t('Thank you for your participation in the competition!') . '</div>';\n}", "function aboutMe(){\n return \"Hi my name is Ruby, I am a chatbot, nice to meet you\";\n}", "function aboutMe(){\n return \"Hi my name is Ruby, I am a chatbot, nice to meet you\";\n}", "public static function homeSentence() {\n $q = self::getQ();\n $nb_result = self::nbContactsSelected();\n $sentence = \"\";\n $sentence .= \"Vous avez \";\n if(!empty($q)) {\n $sentence .= $nb_result;\n if ($nb_result > 1) {\n $sentence .= \" résultats\";\n } else {\n $sentence .= \" résultat\";\n }\n $sentence .= \" pour (\";\n $sentence .= \\Phonebook\\Controllers\\ContactsController::getQ();\n $sentence .= \") parmi vos \";\n }\n $sentence .= \\Phonebook\\Controllers\\ContactsController::nbContactsTotal();\n $sentence .= \" contacts dans l'annuaire\";\n echo $sentence;\n }", "public function getName(): string\n {\n return 'info.topic';\n }", "function warquest_poll_text($vote) {\r\n\t\r\n\tif ($vote==1) {\r\n\t\treturn t('POLL_VOTE');\r\n\t} else {\r\n\t\treturn t('POLL_VOTES');\r\n\t}\r\n}", "public function getDisplayName();", "function Char_Name() {\r\n\t\tglobal $sr;\r\n\t\t$sr->assign(\"location_name\", \"Character Creation\");\r\n\t\t$sr->display(\"character_name.tpl.html\");\r\n\t\texit();\r\n\t}", "public function getNomComplet()\n {\n return $this->getPrenomContact() . ' ' . $this->getNomContact();\n }", "public function __toString() {\n\t\treturn \"A question was asked. This is the question: \" . $this->getQuestionText();\n\t}", "public function getName (){\n \t\t// return view('welcome', compact('me'));\n \n \t\treturn view('welcome')->with('name', $this->name);\n }", "public function get_name() {\n return get_string('pluginname', 'assignfeedback_helixfeedback');\n }", "private function getHelpMessage()\n {\n return <<<EOT\nO comando <info>cekurte:group:update</info> atualiza o nome de um grupo na base de dados:\n\n<info>php app/console cekurte:group:update NomeAntigo NovoNome</info>\nEOT;\n }", "function getNombre()\n\t{\n\t\treturn '<h2>nuevo</h2>';\n\t}", "public function get_name() {\n\t\treturn esc_html__( $this->title, 'dashwp' );\n\t}", "function thememount_testimonial_enter_title_here( $title ){\n\t$screen = get_current_screen();\n\tif ( 'testimonial' == $screen->post_type ) {\n\t\t$title = __('Person or company Name', 'howes');\n\t}\n\treturn $title;\n}", "protected function getOutputActionTitle() {\r\n if($this->getStrCurObjectTypeName() == \"\")\r\n return $this->getOutputModuleTitle();\r\n else\r\n return $this->getLang($this->getObjLang()->stringToPlaceholder(\"modul_titel_\".$this->getStrCurObjectTypeName()));\r\n }", "public static function getActionName($vars)\n {\n $msgs = DataAccess::getInstance()->get_text(true);\n if ($vars['step'] == 'my_account_links') {\n //short version\n return $msgs[500636];\n } else {\n //action interupted text\n //text \"placing new auction\"\n return $msgs[500391];\n }\n }", "public function enter_title_here($prompt) {\r\n return apply_filters('ah-wp-dl-res-title-prompt','A short name for the document');\r\n }", "public function get_name() {\r\n\t\treturn '';\r\n\t}", "function getDisplayName() {\n\t\treturn Locale::translate('plugins.generic.issuecarousel.displayName');\n\t}", "function show_forum_title($category, $forum, $thread, $link_thread=false) {\n if ($category) {\n $is_helpdesk = $category->is_helpdesk;\n } else {\n $is_helpdesk = false;\n }\n\n $where = $is_helpdesk?tra(\"Questions and Answers\"):tra(\"Message boards\");\n $top_url = $is_helpdesk?\"forum_help_desk.php\":\"forum_index.php\";\n\n if (!$forum && !$thread) {\n echo \"<span class=\\\"title\\\">$where</span>\\n\";\n\n } else if ($forum && !$thread) {\n echo \"<span class=title>\";\n echo \"<a href=\\\"$top_url\\\">$where</a> : \";\n echo $forum->title;\n echo \"</span>\";\n } else if ($forum && $thread) {\n echo \"<span class=title>\n <a href=\\\"$top_url\\\">$where</a> : \n <a href=\\\"forum_forum.php?id=\".$forum->id.\"\\\">\", $forum->title, \"</a> : \n \";\n if ($link_thread) {\n echo \"<a href=forum_thread.php?id=$thread->id>\";\n }\n echo cleanup_title($thread->title);\n if ($link_thread) {\n echo \"</a>\";\n }\n echo \"</span>\";\n } else {\n echo \"Invalid thread ID\";\n }\n}", "public function getFullname(): string\n {\n return $this->product->lang->title . ' ' . $this->lang->title;\n }", "function getDisplayName() {\n\t\treturn __('plugins.themes.ufrn-theme1.name');\n\t}", "public function get_frontpage_name()\n {\n // loads the associated object\n //if (empty($this->frontpage))\n // $this->frontpage = new SystemProgram($this->frontpage_id);\n // \n // returns the associated object\n return '-- NC --';//$this->frontpage->name;\n }", "function askQuestion($currentCategory) {\n\t}", "public function get_name() {\n return get_string('circleci', 'assignsubmission_circleci');\n }", "function apoc_get_group_reply_info() {\n\n\tglobal $bp;\n\t$slug = $bp->action_variables[1];\n\t\n\tglobal $wpdb;\n\t$topic = $wpdb->get_row( \n\t\t$wpdb->prepare( \n\t\t\t\"SELECT post_title AS title, post_name AS url\n\t\t\tFROM $wpdb->posts \n\t\t\tWHERE ID = ( \n\t\t\t\tSELECT post_parent\n\t\t\t\tFROM $wpdb->posts\n\t\t\t\tWHERE post_name = %s )\",\n\t\t\t$slug )\n\t\t);\n\t\t\n\treturn( $topic );\n}", "public function getName(){\n return $this->game->get_current_turn()->ReturnName();\n }", "public function getName()\r\n {\r\n return $this->vest() ? $this->vest()->prefix.$this->is_name.'『'.$this->vest()->tuan.$this->vest()->suffix.'』'.$this->vest()->remark : '';\r\n }", "public static function displayName(): string\n {\n return Craft::t('enupal-socializer','Socializer');\n }", "function theme_access_overview_scheme_name($variables) {\n $scheme = $variables['scheme'];\n\n $output = check_plain($scheme->name);\n $output .= ' <small>' . t('(Machine name: @name)', array('@name' => $scheme->machine_name)) . '</small>';\n $output .= '<div class=\"description\">' . filter_xss_admin($scheme->description) . '</div>';\n return $output;\n}", "public function getName(): string {\n\t\treturn $this->l10nFactory->get($this->appName)->t('Nextcloud announcements');\n\t}", "function get_current_site_name($current_site)\n {\n }", "public function forTemplate() {\n\t\treturn $this->ActionName;\n\t}", "function learn_press_single_quiz_question() {\n\t\tlearn_press_get_template( 'content-quiz/content-question.php' );\n\t}", "function titleKeyWords()\n\t{\n\t\tif(isset($_REQUEST['questionID']))\n\t\t{\n\t\t\t//print strip_tags(myTruncate(get_forum_nameByAphorismID($_REQUEST['questionID']), 100, ' ', ' ... ')).' - Фрази, афоризми, умни мисли, забавни изказвания, лозунги и др';\n\t\t}\n\t\telse \n\t\t{\n\t\t\tprint 'Фрази, афоризми, умни мисли, забавни изказвания, лозунги и др';\n\t\t}\n\t\n\t}", "function get_displayname($username)\n{\n if ($username == do_lang('UNKNOWN')) {\n return $username;\n }\n if ($username == do_lang('GUEST')) {\n return $username;\n }\n if ($username == do_lang('DELETED')) {\n return $username;\n }\n\n if (method_exists($GLOBALS['FORUM_DRIVER'], 'get_displayname')) {\n $displayname = $GLOBALS['FORUM_DRIVER']->get_displayname($username);\n return ($displayname === null) ? $username : $displayname;\n }\n\n return $username;\n}", "public function practice1()\n {\n return (\"practice 1\");\n }", "public function about_contributor()\r\n\t{\r\n\t\t?>&clubs; \"About Contributor\" Module<?\r\n\t}", "function GetFriendlyName()\n {\n return $this->Lang('friendlyname');\n }", "public function getName()\r\n {\r\n if ($this->getChatHelper()->allowName() && strlen(trim(Mage::helper('customer')->getCurrentCustomer()->getName())) > 1) {\r\n return \"\\$zopim.livechat.setName('\" . $this->jsQuoteEscape(Mage::helper('customer')->getCurrentCustomer()->getName()) . \"');\" . \"\\n\";\r\n }\r\n return null;\r\n }", "public function getDisplayname()\n\t{\n\t\treturn $this->displayname;\n\t}", "function get_name() {\n\t\treturn $this->get_name_from_vtec();\t\n\t}", "public static function getDisplayName()\n {\n return null;\n }", "public function getName() {\n\t\t\treturn \"<p class=\\\"name\\\">\".$this->name.\"</p>\";\n\t\t}", "public function get_name()\n {\n // TODO: Implement get_name() method.\n }", "function value($name)\n {\n echo \"$name good morning everyone\",\"<br>\";\n echo \"whaT IS ur name.\";\n }", "public static function displayName(): string;", "public function getHeaderText()\n {\n return __('Edit question');\n }", "function getDisplayName() {\n\t\treturn __('plugins.themes.default.name');\n\t}", "function displayValue(\\Jazzee\\Entity\\Answer $answer);", "function printCommittee($difficulty)\n{\n if ($difficulty == 0) return 'Beginner';\n if ($difficulty == 1) return 'Intermediate';\n else return 'Advanced';\n}", "function city_name(){\n\tif(isset($_GET[\"expansion\"])){\n\t\treturn ucwords(str_replace(\"-\", \" \", $_GET[\"expansion\"]));\n\t}else{\n\t\treturn \"\";\n\t}\n}", "public function siteName()\n {\n return get_bloginfo('name', 'display');\n }", "public function show()\n {\n //\n return 'Rosie can i have a dance';\n }", "function getDisplayName(){\n\t\treturn $this->display_name;\n\t}", "public static function typeTitle()\n\t{\n\t\treturn \\IPS\\Member::loggedIn()->language()->addToStack('your_activity_streams_acp');\n\t}", "public function get_nameChannel () {\r\n\t\treturn $this->get_info()['author_name'];\r\n\t}", "public function __toString()\n {\n return \"Steward \" . $this->assignee['name'] . \" currently available. Role: {$this->assignee['role']}\\n\";\n }" ]
[ "0.65929174", "0.6272064", "0.624304", "0.6118805", "0.59549624", "0.5878432", "0.5851263", "0.5834428", "0.5825534", "0.57663107", "0.57654345", "0.5755862", "0.5729981", "0.5725135", "0.57136834", "0.56959033", "0.56898546", "0.5687959", "0.5682004", "0.5678113", "0.5675483", "0.56689703", "0.5657831", "0.5627457", "0.56108403", "0.559806", "0.55930614", "0.5582227", "0.5572626", "0.55657995", "0.55575126", "0.55500776", "0.55429155", "0.5537184", "0.5530149", "0.5528128", "0.5518672", "0.55147636", "0.5511757", "0.549837", "0.54980356", "0.54938656", "0.54938656", "0.5493162", "0.54872996", "0.5478317", "0.5477273", "0.5462906", "0.54611206", "0.54576886", "0.5456585", "0.54507214", "0.54405403", "0.5437074", "0.54335326", "0.54186815", "0.5415698", "0.5413729", "0.5413667", "0.5406617", "0.5398597", "0.5398406", "0.5395986", "0.5395367", "0.5385934", "0.5385877", "0.5385873", "0.5385759", "0.53836733", "0.53665125", "0.53634614", "0.536337", "0.53572994", "0.5356559", "0.5354961", "0.53510505", "0.535011", "0.5343437", "0.5342639", "0.5340906", "0.5339432", "0.5332684", "0.5309394", "0.5308301", "0.53070784", "0.52992785", "0.52917606", "0.5290606", "0.52876204", "0.528666", "0.5283062", "0.5281469", "0.5279169", "0.52789867", "0.52764946", "0.52701145", "0.52622306", "0.5261853", "0.52617514", "0.52591294" ]
0.77328944
0
Template function: Current answer community base url (defaults to echo)
function pzdc_answer_community_base_url($echo = TRUE) { global $PraizedCommunity; return $PraizedCommunity->tpt_attribute_helper('answer', 'community->base_url', $echo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pzdc_hub_community_base_url($echo = TRUE) {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_attribute_helper('hub_community', 'base_url', $echo);\n}", "public function url()\n {\n return '/' . $this->currlang();\n }", "function Twiloop_url_base()\n{\n $url_base = '';\n $url_base = strrpos($_SERVER['PHP_SELF'], '/', -4)+1;\n $url_base = substr($_SERVER['PHP_SELF'], 0, $url_base);\n $url_base = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].$url_base;\n return $url_base;\n}", "function base_url() {\r\necho \"<base href=\" . get_site_url() . \">\";\r\n}", "public function url(){\r\n\t\techo $_SERVER['SERVER_NAME'].\" => \".$_SERVER['PHP_SELF'];\r\n\t}", "public function url()\n\t{\n\t\treturn Url::to(\"review/\".$this->id.\"/\".$this->slug.\"/\".Session::get('Lang'));\n\t}", "public function url() {\n if ($this->no_results)\n return false;\n\n $config = Config::current();\n\n return url(\"view/\".$this->url, ExtendController::current());\n }", "function base_url(){\n $url = BASE_URL;\n return $url;\n }", "function base_url(){\n return BASE_URL;\n }", "function realanswers_current_page_url() {\r\n $pageURL = (@$_SERVER[\"HTTPS\"] == \"on\") ? \"https://\" : \"http://\";\r\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . \":\" . $_SERVER[\"SERVER_PORT\"] . $_SERVER[\"REQUEST_URI\"];\r\n }\r\n else\r\n {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . $_SERVER[\"REQUEST_URI\"];\r\n }\r\n return $pageURL;\r\n}", "public function url()\r\t{\r\t\treturn 'http://morningpages.net/mail/show/'.$this->token;\r\t\t//return url::site('mail/show/' . $this->token, 'http');\r\t}", "public static function _url() {\n\t\treturn self::pw('pages')->get('pw_template=mpm')->url;\n\t}", "function formatCurrentUrl() ;", "function pzdc_hub_community_home_url($echo = TRUE) {\n global $PraizedCommunity;\n return $PraizedCommunity->tpt_attribute_helper('hub_community', 'home_url', $echo);\n}", "public static function current_url()\r\n\t{\r\n\t\t$url = Request::factory()->uri();\r\n\t\tif($_GET)\r\n\t\t{\r\n\t\t\t$url .= '/?' . $_SERVER['QUERY_STRING'];\r\n\t\t}\r\n\t\t$url = URL::site( $url, TRUE);\r\n\t\treturn $url;\r\n\t}", "public static function current_url()\r\n\t{\r\n\t\t$url = Request::factory()->uri();\r\n\t\tif($_GET)\r\n\t\t{\r\n\t\t\t$url .= '/?' . $_SERVER['QUERY_STRING'];\r\n\t\t}\r\n\t\t$url = URL::site( $url, TRUE);\r\n\t\treturn $url;\r\n\t}", "public function base_url(){\n return $this->plugin_url() . 'base/';\n }", "function theme_global_url($bQuestion=false) {\n global $theme;\n $langid = (isset($_REQUEST['langid'])) ? intval($_REQUEST['langid']) : 0;\n $out = '';\n if ($bQuestion) {\n $out .= '?';\n }\n if ($langid > 0) {\n $out .= '&amp;langid=' . $langid;\n }\n return $out;\n}", "function returnbaseurl()\n{\n return \"http://audio.qu.tu-berlin.de/amtoolbox\";\n}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "public function formatCurrentUrl() {}", "protected function renderCurrentUrl() {}", "protected function renderCurrentUrl() {}", "function currentUrl($value='')\n\t{\n\t \treturn 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];\n\t}", "public function getViewLink() {\n return getConfig(\"public_url\").\"?\".$this->shareID;\n }", "public function get_url()\n\t{\n\t\treturn append_sid($this->phpbb_root_path . 'ucp.' . $this->php_ext, \"i=pm&amp;mode=view&amp;p={$this->item_id}\");\n\t}", "protected function urlBase()\n {\n return \"/bibs/{$this->bib->mms_id}/representations/{$this->representation_id}\";\n }", "public function getInscriptionURL(){\n return $this->rootUrl().\"inscription\";\n }", "public function base_url() {\n\t\t$protocol = ( ! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? 'https' : 'http';\n\t\t$host = $_SERVER['HTTP_HOST'];\n\t\t$script = dirname($_SERVER['SCRIPT_NAME']);\n\t\treturn $protocol . '://' . $host . $script . '/';\n\t}", "function tp_get_current_url() {\r\n\t$requested_url = ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';\r\n\t$requested_url .= $_SERVER['HTTP_HOST'];\r\n\t$requested_url .= $_SERVER['REQUEST_URI'];\r\n\treturn $requested_url;\r\n}", "function getBaseUrl() {\n if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')\n $link = \"https\";\n else\n $link = \"http\";\n\n // Here append the common URL characters.\n $link .= \"://\";\n\n // Append the host(domain name, ip) to the URL.\n $link .= $_SERVER['HTTP_HOST'];\n\n // Append the requested resource location to the URL\n $link .= $_SERVER['REQUEST_URI'];\n\n // Print the link\n echo substr($link, 0, strrpos($link, '/') + 1);\n}", "public function getBaseUrl() {\r\n\t\treturn home_url();\r\n\t}", "static function currentURL(){\n $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https';\n $host = $_SERVER['HTTP_HOST'];\n $script = $_SERVER['SCRIPT_NAME'];\n $params = $_SERVER['QUERY_STRING'];\n\n return $protocol . '://' . $host . $script . '?' . $params;\n }", "public function base_url()\n\t{\n\t\treturn URL::base();\n\t}", "public function outputUrl()\n\t{\n\t\techo App::e($this->url);\n\t}", "function current_url() {\n\treturn 'http' . (empty($_SERVER['HTTPS']) ? '' : 's') . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n}", "function main_url(){\n return \"http://\".$this->imdbsite.\"/name/nm\".$this->imdbid().\"/\";\n }", "function base_url($uri=null){\n\t$base_url = 'http://localhost/KoperasiSimpanPinjam/';\n\tif($uri == null){\n\t\treturn $base_url;\n\t}else{\n\t\treturn $base_url.$uri;\n\t}\n}", "private static function base_url($path=NULL)\n {\n\t\tglobal $url;\n $fullurl=$url.$path;\n return $fullurl;\n\t}", "public static function curURL() {\n\t\t\t$pageURL = 'http';\n\t\t\tif ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n\t\t\t\t$pageURL .= \"://\";\n\t\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER['PHP_SELF'];\n\t\t\t} else {\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\"/\";\n\t\t\t}\n\t\t\treturn $pageURL;\n\t\t}", "function get_current_page_url() {\n if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') \n $url = \"https://\"; \n else \n $url = \"http://\"; \n // Append the host(domain name, ip) to the URL. \n $url.= $_SERVER['HTTP_HOST']; \n \n // Append the requested resource location to the URL \n $url.= $_SERVER['REQUEST_URI'];\n return $url; \n }", "function base_url($url = NULL){\n\t\tif ($url != NULL)\n\t\t{\n\t\t\t$baseurl = 'http://localhost/pkl/'.$url;\n\t\t}\n\t\telse\t\n\t\t{\n\t\t\t$baseurl = 'http://localhost/pkl/';\n\t\t}\n\t\t\n\t\treturn $baseurl;\n\t}", "public function url() \n\t{\n\t\treturn static::protocol().'://'.static::host().$this->server('REQUEST_URI', '/' );\n\t}", "public static function currentURL() {\n\t\t$base = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n\t\t$protocol = (empty($_SERVER['HTTPS'])) ? 'https' : 'http';\n\t\treturn $protocol.'://'.$base;\n\t}", "function lang_base_url()\n\t{\n\t\t$ci =& get_instance();\n\t\treturn $ci->lang_base_url;\n\t}", "function lang_base_url()\n\t{\n\t\t$ci =& get_instance();\n\t\treturn $ci->lang_base_url;\n\t}", "function getEditUrl()\r\n\t{\r\n\t\tglobal $config;\r\n\r\n\t\t// need full url for links placed inside email messages\r\n\t\t$link = \"http://\". $config[\"http_host\"] . \"/survey_response_form?survey_id={$this->survey_id}\";\r\n\t\tif($this->token)\r\n\t\t\t$link .= \"&token={$this->token}\";\r\n\t\t\t\r\n\t\treturn $link;\r\n\t}", "function current_url() {\n $page_url = 'http';\n if (@$_SERVER['HTTPS'] == 'on') {\n $page_url .= 's';\n }\n $page_url .= '://'.$_SERVER['SERVER_NAME'];\n if ($_SERVER['SERVER_PORT'] != '80') {\n $page_url .= ':'.$_SERVER['SERVER_PORT'];\n }\n $page_url .= $_SERVER['REQUEST_URI'];\n return $page_url;\n}", "function site_url(){\n\treturn config( 'site.url' );\n}", "private function getUrl() {\r\n if(!$this->markActive)\r\n return '';\r\n $mid = Yii::$app->controller->module->id == Yii::$app->id ? '' : Yii::$app->controller->module->id;\r\n $cid = Yii::$app->controller->id;\r\n $aid = Yii::$app->controller->action->id;\r\n $id = isset($_GET['slug']) ? $_GET['slug'] : (isset($_GET['id']) ? $_GET['id'] : '');\r\n $rubric = isset($_GET['rubric']) ? $_GET['rubric'] : '';\r\n $tag = isset($_GET['tag']) ? $_GET['tag'] : '';\r\n return ($mid ? $mid. '/' : '') . \r\n $cid . '/' . \r\n ($aid == 'index' \r\n ? ($rubric \r\n ? 'rubric/' . $rubric . ($tag \r\n ? '/tag/' . $tag \r\n : '') \r\n : 'index') \r\n : ($aid == 'view' ? $id : $aid)\r\n );\r\n }", "private function _generateApiUrl() {\n $this->_detectUserLanguage();\n echo '<script type=\"text/javascript\" src=\"' . self::$apiUrl . '?hl=' . $this->defaultLanguage . '\"></script>';\n }", "function current_page_url() {\n\tglobal $CONFIG;\n\n\t$url = parse_url($CONFIG->wwwroot);\n\n\t$page = $url['scheme'] . \"://\";\n\n\t// user/pass\n\tif ((isset($url['user'])) && ($url['user'])) {\n\t\t$page .= $url['user'];\n\t}\n\tif ((isset($url['pass'])) && ($url['pass'])) {\n\t\t$page .= \":\".$url['pass'];\n\t}\n\tif ((isset($url['user']) && $url['user']) ||\n\t\t(isset($url['pass']) && $url['pass'])) {\n\t\t$page .=\"@\";\n\t}\n\n\t$page .= $url['host'];\n\n\tif ((isset($url['port'])) && ($url['port'])) {\n\t\t$page .= \":\" . $url['port'];\n\t}\n\n\t//$page.=\"/\";\n\t$page = trim($page, \"/\");\n\n\t$page .= $_SERVER['REQUEST_URI'];\n\n\treturn $page;\n}", "protected function url()\n\t{\n\t\treturn Phpfox::getLib('url');\t\n\t}", "function langdoc_preview_url($currentfile) {\n if (substr($currentfile, 0, 5) == 'help/') {\n $currentfile = substr($currentfile, 5);\n $currentpathexp = explode('/', $currentfile);\n if (count($currentpathexp) > 1) {\n $url = '/help.php?module='.$currentpathexp[0].'&amp;file='.$currentpathexp[1];\n } else {\n $url = '/help.php?module=moodle&amp;file='.$currentfile;\n }\n } else {\n $url = '';\n }\n return $url;\n}", "public static function baseurl() {\n return stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . \"/Gym/\";\n }", "protected function defaultReturnUrl()\n {\n return Medeen::getRequest()->getAbsoluteUrl();\n }", "public function url()\r\n {\r\n return $this->get_base_url() . http_build_query($this->get_query_params());\r\n }", "function get_self_url_easy($script_name_if_cli = false)\n{\n $cli = ((php_function_allowed('php_sapi_name')) && (php_sapi_name() == 'cli') && (cms_srv('REMOTE_ADDR') == ''));\n if ($cli) {\n if ($script_name_if_cli) {\n return $_SERVER['argv'][0];\n }\n return get_base_url();\n }\n\n $protocol = tacit_https() ? 'https' : 'http';\n $self_url = $protocol . '://' . cms_srv('HTTP_HOST');\n $self_url .= cms_srv('REQUEST_URI');\n return $self_url;\n}", "public function getBlogUrl()\n {\n return '<a href=\"https://cart2quote.zendesk.com/hc/en-us/articles/360028730291-No-Custom-Form-Request\"->__(Here)</a>';\n }", "public function base_url()\n {\n if (isset($_SERVER['HTTP_HOST']) && preg_match('/^((\\[[0-9a-f:]+\\])|(\\d{1,3}(\\.\\d{1,3}){3})|[a-z0-9\\-\\.]+)(:\\d+)?$/i', $_SERVER['HTTP_HOST']))\n {\n $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? \"https://\" : \"http://\";\n $baseurl = $protocol.$_SERVER['HTTP_HOST'].substr($_SERVER['SCRIPT_NAME'], 0, strpos($_SERVER['SCRIPT_NAME'], basename($_SERVER['SCRIPT_FILENAME'])));\n }\n else\n {\n $baseurl = 'http://localhost/';\n }\n\n return $baseurl;\n }", "public function getAproposUrl(){\n // return \"chanson.php/\".$id; \n return $this->rootUrl().\"apropos\"; \n }", "function getHelpUrl()\n{\n global $_CONF;\n\n $retval = '';\n\n $doclang = COM_getLanguageName();\n $docs = 'docs/' . $doclang . '/trackback.html';\n if (file_exists($_CONF['path_html'] . $docs)) {\n $retval = $_CONF['site_url'] . '/' . $docs;\n } else {\n $retval = $_CONF['site_url'] . '/docs/english/trackback.html';\n }\n\n return $retval;\n}", "public function get_base_url()\r\n\t\t{\r\n\t\t\t$url = \"http\";\r\n \t\t\tif ( isset( $_SERVER[ 'HTTPS' ] ) && $_SERVER[ 'HTTPS' ] == \"on\" ) $url .= \"s\";\r\n\t\t\t$url .= \"://\";\r\n \t\t\tif ( $_SERVER[ 'SERVER_PORT' ] != \"80\" )\r\n\t\t\t\t$url .= $_SERVER[ 'SERVER_NAME' ]. \":\" . $_SERVER[ 'SERVER_PORT' ] . $_SERVER[ 'REQUEST_URI' ];\r\n\t\t\telse\r\n\t\t\t\t$url .= $_SERVER[ 'SERVER_NAME' ] . \"/\";\r\n\t\t\t\r\n\t\t\treturn $url . self::HOME_DIR;\r\n\t\t}", "public static function currentURL() {\n $pgurl = \"http\";\n if(!empty($_SERVER['HTTPS'])) $pgurl .= \"s\";\n $pgurl .= \"://\".$_SERVER[\"SERVER_NAME\"];\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") $pgurl .= \":\".$_SERVER[\"SERVER_PORT\"];\n \n return ($pgurl .= $_SERVER[\"SCRIPT_NAME\"]);\n }", "public static function getCurrentBaseUrl() : string {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__);\n\n\t\t$current_page_url = 'http';\n\n\t\tif (@$_SERVER['HTTPS'] === 'on') { $current_page_url .= 's';\n\t\t}\n\t\t$current_page_url .= '://';\n\n\t\tif (isset($_SERVER['SERVER_PORT']) && isset($_SERVER['HTTP_HOST']) && $_SERVER['SERVER_PORT'] != '80') {\n\t\t\t$current_page_url .= $_SERVER['HTTP_HOST'] . ':' . $_SERVER['SERVER_PORT'];\n\t\t} else if(isset($_SERVER['HTTP_HOST'])) {\n\t\t\t$current_page_url .= $_SERVER['HTTP_HOST'];\n\t\t} else {\n\t\t\t$current_page_url .= 'http://localhost/';\n\t\t}\t\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $current_page_url);\n\t\t$current_page_url = self::_applyFilter(get_class(), __FUNCTION__, $current_page_url, array('event' => 'return'));\n\n\t\treturn $current_page_url;\n\t}", "function getCurrentUrl() {\n\t\t$url = isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ? 'https' : 'http';\n\t\t$url .= '://' . $_SERVER['SERVER_NAME'];\n\t\t$url .= in_array( $_SERVER['SERVER_PORT'], array('80', '443') ) ? '' : ':' . $_SERVER['SERVER_PORT'];\n\t\t$url .= $_SERVER['REQUEST_URI'];\n\t\treturn $url;\n\t}", "public function baseUrl()\n\t{\n\t\techo $_SERVER['SERVER_NAME'];\n\t}", "public function getCurrentUrl();", "protected function getUrl(){\n\t\treturn $this->apiUrl . $this->apiVersion . '/';\n\t}", "function CurrPageURL() {\n $pageURL = 'http';\n if ($_SERVER[\"HTTPS\"] == \"on\") {\n $pageURL .= \"s\";\n }\n $pageURL .= \"://\";\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . \":\" . $_SERVER[\"SERVER_PORT\"] . $_SERVER[\"REQUEST_URI\"];\n } else {\n $pageURL .= $_SERVER[\"SERVER_NAME\"] . $_SERVER[\"REQUEST_URI\"];\n }\n return $pageURL;\n }", "private function base_uri( $localizable = TRUE ) {\r\n\t\treturn implode ( '/', array (\r\n\t\t\t\t$this->host,\r\n\t\t\t\tself::API_VERSION \r\n\t\t) );\r\n\t}", "public function getFullUrl(){\n return 'http://'. $_SERVER['HTTP_HOST'] .'/'. implode('/', self::$_request_vars);\n }", "public function siteUrl() {}", "private function getTalkURI()\n {\n $url = $this->getInput('url');\n return $url;\n }", "private function curPageURL() {\r\n $pageURL = 'http';\r\n if ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\r\n $pageURL .= \"://\";\r\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\r\n } else {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n }\r\n return $pageURL;\r\n }", "private function get_current_url() {\n\n\t\t$url = set_url_scheme(\n\t\t\t'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']\n\t\t);\n\n\t\t// We use 'msg' as parameter internally. Not needed for pagination.\n\t\treturn remove_query_arg( 'msg', $url );\n\t}", "public static function url()\n {\n return base_url(static::action());\n }", "public function showMeCurrentUrl() {\r\n /** @var MinkSession $session */\r\n $session = $this->getSession();\r\n echo \"You are on: \".$session->getCurrentUrl();\r\n }", "public static function current_url()\n {\n $config = cmsms()->GetConfig();\n $uri_parts = explode('/',$_SERVER['REQUEST_URI']);\n $uri_parts = cge_array::remove_by_value($uri_parts);\n $tmp = parse_url($config['root_url']);\n $root_parts = array();\n if( isset($tmp['path']) )\n {\n\t$root_parts = explode('/',$tmp['path']);\n\t$root_parts = cge_array::remove_by_value($root_parts);\n }\n \n $newdata = array();\n for($i = 0; $i < max(count($uri_parts),count($root_parts)); $i++ )\n {\n\tif( ($i < count($uri_parts)) && \n\t ($i < count($root_parts)) && \n\t ($root_parts[$i] == $uri_parts[$i]) )\n\t {\n\t continue;\n\t }\n\t$newdata[] = $uri_parts[$i];\n }\n $url = $config['root_url'].'/'.implode('/',$newdata);\n return $url;\n }", "protected static function generate_base_url()\n\t{\n\t\t$base_url = parent::generate_base_url();\n\t\treturn str_replace('htdocs/novius-os/', '', $base_url);\n\t}", "public function url(): string\n {\n return '/user/article/' . $this->slug . '/view';\n }", "public function GetUrlForSelf(): string\n {\n $host_base = Config::get('app.url');\n return \"{$host_base}/test/{$this->id}\";\n }", "function ngwp_echo_base_tag($prefix = '')\n\t{\n\t\techo '<base href=\"' . $prefix . '/' . ICL_LANGUAGE_CODE . '/\" />';\n\t}", "private function somebody_set_us_up_the_base()\n\t{\n\t\tdefine('BASE', SELF.'?S='.ee()->session->session_id().'&amp;D=cp'); // cp url\n\t}", "public function buildFrontendUri() {}", "function put_my_url(){\n\treturn (get_home_url());\n}", "function template_url($val='')\n {\n echo get_template_url($val);\n }", "function get_base_url() {\n $fin_string = '';\n $parts = explode('/', $this->request_uri);\n if (count($parts) > 2) {\n $subparts = array_slice($parts, 2);\n foreach ($subparts as $p)\n $fin_string .= $p . '/';\n return substr($fin_string, 0, -1);\n }\n return $fin_string;\n }", "function nebula_requested_url($host=\"HTTP_HOST\") { //Can use \"SERVER_NAME\" as an alternative to \"HTTP_HOST\".\n\t$protocol = ( (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443 ) ? 'https' : 'http';\n\t$full_url = $protocol . '://' . $_SERVER[\"$host\"] . $_SERVER[\"REQUEST_URI\"];\n\treturn $full_url;\n}", "function current_url() {\n $protocol = (isset($_SERVER['HTTPS']) ? \"https\" : \"http\");\n return \"$protocol://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n}", "public function getConnexionURL(){\n return $this->rootUrl().\"connexion\";\n }", "function curPageURL() {\n $pageURL = 'http';\n if (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n $pageURL .= \"://\";\n \n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n } else {\n $pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n }\n return $pageURL;\n }", "protected function get_url()\n {\n return $this->base_url + $this->api_version; \n }", "protected function initCurrentUrl() {}", "protected function initCurrentUrl() {}", "static function curPageURL() \n\t\t{\n\t\t\t$pageURL = 'http';\n\t\t\tif ($_SERVER[\"HTTPS\"] == \"on\")\n\t\t\t{\n\t\t\t\t$pageURL .= \"s\";\n\t\t\t}\n\t\t\t$pageURL .= \"://\";\n\t\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") \n\t\t\t{\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\n\t\t\t}\n\t\t\treturn $pageURL;\n\t\t}" ]
[ "0.7046336", "0.6991275", "0.6703107", "0.65687627", "0.6547273", "0.65252006", "0.65221125", "0.64541996", "0.6406084", "0.63991785", "0.63912255", "0.6376294", "0.6372226", "0.63653404", "0.6341989", "0.6341989", "0.6340184", "0.6325074", "0.6322471", "0.63210034", "0.63210034", "0.63210034", "0.63210034", "0.63210034", "0.63210034", "0.63191044", "0.63191044", "0.63004", "0.6273462", "0.6269495", "0.6265761", "0.6261122", "0.62555355", "0.6241013", "0.62375677", "0.6227951", "0.62133163", "0.6187569", "0.6164062", "0.61552054", "0.6146758", "0.6141461", "0.6135712", "0.6135076", "0.61266977", "0.6123314", "0.6119925", "0.6119187", "0.6111329", "0.6111329", "0.6109854", "0.6102426", "0.60896987", "0.60853916", "0.6083571", "0.607864", "0.60762066", "0.6071868", "0.60700995", "0.60527605", "0.605237", "0.6045543", "0.6041873", "0.60415995", "0.6032767", "0.60318667", "0.6030741", "0.6020376", "0.6018265", "0.6016036", "0.60149324", "0.6014273", "0.6012462", "0.6001402", "0.5998518", "0.59964997", "0.599458", "0.5993195", "0.5990862", "0.5989953", "0.5989669", "0.5987578", "0.59816134", "0.5980457", "0.59754777", "0.5971692", "0.59716195", "0.59703624", "0.59659576", "0.59649813", "0.5954974", "0.59525466", "0.59464806", "0.59385157", "0.593508", "0.5932826", "0.59323496", "0.593029", "0.593029", "0.59268993" ]
0.79169625
0
Get the items for the menu.
public function passives(): HasMany { return $this->hasMany(PsPassive::class, 'champion_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_items() {\n return $this->menuitems;\n }", "function getMenuItems()\n {\n }", "public function getMenuItems() {\t\t\t\t\t\r\n\t\treturn $this->menuItems;\r\n\t}", "public function getMenuItems(){\n $items = ItemMenu::getBy(array('_id' => array('$in' => $this->_menuItems)));\n return $items;\n }", "public function getMenus() {}", "public function items()\n\t{\n\t\tif( ! is_null($this->menu))\n\t\t{\n\t\t\tforeach($this->items as $item)\n\t\t\t{\n\t\t\t\t$this->menu->filter($item);\n\t\t\t}\n\t\t}\n\n\t\treturn $this->items;\n\t}", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "public function getMenu();", "public function getItems()\n {\n //$urlManager = Yii::$app->urlManager->createUrl();\n $menuItems = [\n 'items' => $this->prepareRawTree()->prepareHasChilds()->getWidgetFormatedArray(),\n 'options' => [\n 'id' => 'left-menu',\n 'class' => 'nav nav-sidebar sortable'\n ],\n 'linkTemplate' => '<a href=\"{url}\">{label_prefix}{label}{label_postfix}</a>',\n 'submenuTemplate' => \"\\n<ul class='sortable nav nav-{level}-level'>\\n{items}\\n</ul>\\n\",\n ];\n //print_r($menuItems);\n return $menuItems;\n }", "public function getMenuItems()\n {\n return $this->adminMenu->all();\n }", "public static function menus()\n {\n return [];\n }", "public function getMenuItems()\n\t{\n\t\treturn Settings_Vtiger_MenuItem_Model::getAll($this->getId());\n\t}", "private function getMenuItems()\n {\n $menu = $this->getDoctrine()->getRepository('XvolutionsAdminBundle:Menu')->findBy([], array('position' => 'ASC'));\n $menuItems = null;\n foreach ($menu as $item) {\n $menuItems[$item->getPage()->getId()] = ['id' => $item->getPage()->getId(), 'title' => $item->getPage()->getTitle()];\n }\n\n return $menuItems;\n }", "function get_menu() {\n return wp_get_nav_menu_items(9);\n }", "protected function getMenuItems()\n {\n return $this->getService('config')->get()['menu']['admin'];\n }", "function getMenuEntries()\n\t{\n\t\tglobal $rbacsystem, $lng, $tree, $ilUser, $ilSetting;\n\n\t\t// no menu during online tests\n\t\tif ($_SESSION[\"adn_online_test\"])\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\n\t\t$mm_tpl = new ilTemplate(\"tpl.adn_main_menu.html\", true, true, \"Services/ADN/UI\");\n\n\t\tforeach ($this->getAllMenuItems() as $menu => $items)\n\t\t{\n\t\t\t$this->renderSubMenu($mm_tpl, $menu);\n\t\t}\n\t\treturn $mm_tpl->get();\n\n\n\n\t\t$tpl->setCurrentBlock(\"cust_menu\");\n\t\t$tpl->setVariable(\"TXT_CUSTOM\",\n\t\t\tlfCustomMenu::lookupTitle(\"it\", $menu[\"id\"], $ilUser->getLanguage(), true));\n\t\t$tpl->setVariable(\"MM_CLASS\", \"MMInactive\");\n\n\t\tif (is_file(\"./templates/default/images/mm_down_arrow.png\"))\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.png\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.gif\"));\n\t\t}\n\t\t$tpl->setVariable(\"CUSTOM_CONT_OV\", $gl->getHTML());\n\t\t$tpl->setVariable(\"MM_ID\", $menu[\"id\"]);\n\t\t$tpl->parseCurrentBlock();\n\t\t$tpl->setCurrentBlock(\"c_item\");\n\t\t$tpl->parseCurrentBlock();\n\n\t}", "public static function menuItems()\n {\n return [\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Users'), 'url' => ['/user-management/user/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Roles'), 'url' => ['/user-management/role/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permissions'), 'url' => ['/user-management/permission/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permission groups'), 'url' => ['/user-management/auth-item-group/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Visit log'), 'url' => ['/user-management/user-visit-log/index']],\n ];\n }", "public function menuItems()\n\t{\n\t\treturn array(\n array('label'=>$this->labelMenu!==null?$this->labelMenu:Yii::t('app','Generator'), 'icon'=>'fa fa-code', 'url'=>'#','items'=>$this->getMyselfMenu(),'visible'=>Yii::app()->getModule('users')->check('root')),\n );\n\t}", "public function getMenuItems()\n {\n $sql = \"\n SELECT\n menu.uid,\n parent_uid,\n sort_order,\n nofollow,\n target,\n class,\n label,\n uri_uid,\n uri,\n menu.archived,\n menu.archived_datetime\n FROM menu\n LEFT JOIN uri\n ON uri.uid = menu.uri_uid\n WHERE menu.archived = '0'\n AND (uri.archived = '0' OR uri.archived IS NULL)\n \";\n\n $sql .= \"\n ORDER BY sort_order;\n \";\n\n $db = new Query($sql);\n $results = $db->fetchAllAssoc();\n\n return $results;\n }", "public function getMenus()\n\t{\n\n\t}", "public function getMenuItems() {\n\n $url = $this->urlHelper;\n $items = [];\n\n //Links Visible always to everyone logged in or not.\n //default Home page - no login required. \n\n /* $items[] = [\n 'id' => 'home',\n 'label' => 'Home',\n 'link' => $url('home')\n ]; */\n\n //add links here for pages that will be visible for all users logged-in or not.\n //you must adjust User\\Module.php (~line 85) onDispatch method to ignore calls for \n //the associated Controller and action or you will end up with an infinite loop.\n /*\n $items[] = [\n 'id' => 'about',\n 'label' => 'About',\n 'link' => $url('about')\n ];\n */\n\n $user = $this->authManager->getLoggedInUser();\n\n //BEGIN Authentication/Rendering Logic\n // Display \"Login\" menu item for not authorized user only. On the other hand,\n // display \"Admin\" and \"Logout\" menu items only for authorized users and any other links \n // that should be visible by logged-in users.\n if (!$user) {\n\n $items[] = [\n 'id' => 'login',\n 'label' => 'Sign in',\n 'link' => $url('login'),\n 'float' => 'right'\n ];\n } else {\n\n //render Customers link for all users with sales_attr_id value in users table\n if (!empty($user->getSales_attr_id())) {\n $items[] = [\n 'id' => 'customers',\n 'label' => 'Customers',\n 'data-ffm-salesperson' => $user->getFullName(),\n 'float' => 'static',\n 'link' => $url('customer', ['action' => 'view', 'id' => $user->getSales_attr_id()])\n ];\n }\n //only display admin drop down for admin users.\n $isAdmin = $this->authManager->isAdmin();\n if ($isAdmin) {\n $items[] = [\n 'id' => 'admin',\n 'label' => '<i class=\"ion-gear-a\"></i>',\n 'float' => 'right',\n 'dropdown' => [\n [\n 'id' => 'users',\n 'label' => 'Manage Users',\n 'link' => $url('users')\n ]\n ]\n ];\n }\n\n $settingsDropDownManageAccount = [\n 'id' => 'manage_account',\n 'label' => 'Manage Account',\n 'link' => $url('users', ['action' => 'edit', 'id' => $user->getId()])\n ];\n\n $settingsDropDownViewAccount = [\n 'id' => 'view_account',\n 'label' => 'View Account',\n 'link' => $url('application', ['action' => 'settings'])\n ];\n\n $settingsDropDownLogout = [\n 'id' => 'logout',\n 'label' => 'Logout',\n 'link' => $url('logout')\n ];\n\n $settingsDropDown = [];\n\n //only add the Manage Account link for Admins.\n if ($isAdmin) {\n $settingsDropDown[] = $settingsDropDownManageAccount;\n }\n\n $settingsDropDown[] = $settingsDropDownViewAccount;\n\n $settingsDropDown[] = $settingsDropDownLogout;\n\n $items[] = [\n 'id' => 'settings',\n 'label' => '<i class=\"ion-person\"></i>' . $user->getUsername(),\n 'float' => 'right',\n 'dropdown' => $settingsDropDown\n ];\n\n $loggedInItems = $this->getLoggedInItems();\n\n if ($loggedInItems)\n array_merge($items, $loggedInItems);\n\n // add items to right of settings in top right corner only for logged-in users here\n //Show Salespeople link only to Admin users\n if ($isAdmin) {\n\n $items[] = [\n 'id' => 'salespeople',\n 'label' => 'Salespeople',\n 'float' => 'static',\n 'link' => $url('salespeople', ['action' => 'index']),\n ];\n }\n }\n\n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$sql = \"SELECT * FROM mod_menu\";\n\t\t$query = \\SimplCMS::$app->getDbConnection()->query($sql);\n\t\treturn $query->fetchAll( \\PDO::FETCH_ASSOC );\t\t\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "public function items()\n {\n return $this\n ->hasMany('\\Pageblok\\Menus\\Models\\MenuItem', 'menu_ref')\n ->where('published', true)\n ->orderBy('priority', 'ASC');\n }", "public static function &getItems()\n\t{\n\t\tstatic $items;\n\n\t\t// Get the menu items for this component.\n\t\tif (!isset($items)) {\n\t\t\t// Include the site app in case we are loading this from the admin.\n\t\t\trequire_once JPATH_SITE.'/includes/application.php';\n\n\t\t\t$app\t= JFactory::getApplication();\n\t\t\t$menu\t= $app->getMenu();\n\t\t\t$com\t= JComponentHelper::getComponent('com_users');\n\t\t\t$items\t= $menu->getItems('component_id', $com->id);\n\n\t\t\t// If no items found, set to empty array.\n\t\t\tif (!$items) {\n\t\t\t\t$items = array();\n\t\t\t}\n\t\t}\n\n\t\treturn $items;\n\t}", "public static function getMenuItems()\n {\n // Will be handled in XML in future (or/and with the Joomla native menus)\n // -> give your opinion on j-cook.pro/forum\n\n $items = array();\n\n $items['admin.countries.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_COUNTRIES',\n 'view' => 'countries',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_countries'\n );\n\n $items['admin.regions.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_REGIONS',\n 'view' => 'regions',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_regions'\n );\n\n $items['admin.provinces.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_PROVINCES',\n 'view' => 'provinces',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_provinces'\n );\n\n $items['admin.subscriptionplans.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_SUBSCRIPTIONPLANS',\n 'view' => 'subscriptionplans',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_subscriptionplans'\n );\n\n $items['admin.categories.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CATEGORIES',\n 'view' => 'categories',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_categories'\n );\n\n $items['admin.typedocuments.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_TYPEDOCUMENTS',\n 'view' => 'typedocuments',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_typedocuments'\n );\n\n $items['admin.documents.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_DOCUMENTS',\n 'view' => 'documents',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_documents'\n );\n\n $items['admin.reservations.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_RESERVATIONS',\n 'view' => 'reservations',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_reservations'\n );\n\n $items['admin.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n $items['site.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n return $items;\n }", "function wp_get_nav_menu_items($items, $menu, $args)\n {\n }", "public function index()\n {\n return $this->menu->all();\n }", "abstract public function getMenuData();", "public function getUserMenu() {\n $event = new BuildUserMenuEvent();\n $this->trigger(self::EVENT_BUILD_USER_MENU, $event);\n $menu = [];\n foreach ($event->items as $block => $items) {\n foreach ($items as $item) {\n $menu[] = $item;\n }\n }\n return $menu;\n }", "public static function menus(): array\n {\n return [];\n }", "function &getMenus() {\n\t\t$lines = explode(\"\\n\", $this->menus);\n\n\t\t$menus = array();\n\t\tforeach( $lines as $line ) {\n\t\t\tif ($line) {\n\t\t\t\tlist( $menutype, $ordering, $show, $showXML, $priority, $changefreq ) = explode(',', $line);\n\t\t\t\t$info = explode(',', $line);\n\t\t\t\t$menu = new stdclass;\n\t\t\t\t$menu->menutype \t= @$info[0];\n\t\t\t\t$menu->ordering \t= @$info[1];\n\t\t\t\t$menu->show \t\t= @$info[2];\n\t\t\t\t$menu->showXML \t= @$info[3];\n\t\t\t\t$menu->priority \t= (@$info[4]? $info[4] : '0.5');\n\t\t\t\t$menu->changefreq \t= (@$info[5]? $info[5] : 'weekly');\n\t\t\t\t$menu->module \t\t= (@$info[6]? $info[6] : 'mod_mainmenu');\n\t\t\t\t$menus[$menutype] \t= $menu;\n\t\t\t}\n\t\t}\n\t\treturn $menus;\n\t}", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "public function getMenus()\n\t{\n\t\treturn $this->menus;\n\t}", "public function get(){\n\t\t\t\n\t\t\t$query=\"SELECT menuItem FROM menuModel\";\n\t\t\t$results=$this->db()->query($query);\n\t\t\t\n\t\t\t// echo\"<pre>\";\n\t\t\t// var_dump($results);\n\t\t\t\n\t\t\tforeach($results as $res){\n\t\t\t\t$menu_array[]=$res;\n\t\t\t}\n\t\t\t\n\t\t\treturn $menu_array;\n\t\t\t\n\t\t}", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function menuItems()\n {\n return array(\n array('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('#'), 'items'=>array(\n \n // array('label'=>Yii::t('app','Home Información'), 'icon'=>'fa fa-star-half-o', 'url'=>array('/'.$this->id.'/info/')),\n // array('label'=>Yii::t('app','Beneficios'), 'icon'=>'fa fa-rocket', 'url'=>array('/'.$this->id.'/features/admin')),\n \n \tarray('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('/'.$this->id.'/header/admin')),\n\n \tarray('label'=>Yii::t('app','Términos y condiciones'), 'icon'=>'fa fa-gavel', 'url'=>array('/'.$this->id.'/conditions/')),\n \tarray('label'=>Yii::t('app','Config'), 'icon'=>'fa fa-cog', 'url'=>array('/'.$this->id.'/config/')),\n \n \n )),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('#'), 'items'=>array(\n \n array('label'=>Yii::t('app','Categorías'), 'icon'=>'fa fa-list-ol', 'url'=>array('/'.$this->id.'/categories/admin')),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('/'.$this->id.'/items/admin')),\n \t// array('label'=>Yii::t('app','Facilitadores'), 'icon'=>'fa fa-graduation-cap', 'url'=>array('/'.$this->id.'/facilitador/admin')),\n \n )),\n );\n }", "public function menu_get_names()\n {\n return menu_get_names();\n }", "public function getItems(){\n\t\treturn $this->_makeCall('items?');\n\t}", "public static function getMenus()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('a.*, SUM(b.home) AS home')\n\t\t\t->from('#__menu_types AS a')\n\t\t\t->join('LEFT', '#__menu AS b ON b.menutype = a.menutype AND b.home != 0')\n\t\t\t->select('b.language')\n\t\t\t->join('LEFT', '#__languages AS l ON l.lang_code = language')\n\t\t\t->select('l.image')\n\t\t\t->select('l.sef')\n\t\t\t->select('l.title_native')\n\t\t\t->where('(b.client_id = 0 OR b.client_id IS NULL)');\n\n\t\t// Sqlsrv change\n\t\t$query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$result = $db->loadObjectList();\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$result = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function getTopmenuItems()\n {\n $items = array();\n\n if (APP_User::isBWLoggedIn()) {\n $username = isset($_SESSION['Username']) ? $_SESSION['Username'] : '';\n $items[] = array('profile', 'members/'.$username, $username, true);\n }\n // $items[] = array('searchmembers', 'searchmembers/index', 'FindMembers');\n // $items[] = array('forums', 'forums', 'Community');\n // $items[] = array('groups', 'bw/groups.php', 'Groups');\n // $items[] = array('gallery', 'gallery', 'Gallery');\n $items[] = array('getanswers', 'about', 'GetAnswers');\n $items[] = array('findhosts', 'findmembers', 'FindHosts');\n $items[] = array('explore', 'explore', 'Explore');\n if (APP_User::isBWLoggedIn()) {\n $items[] = array('messages', 'messages', 'Messages');\n }\n \n return $items;\n }", "function menuGetPrimaryItems() {\n $items = array();\n $items[] = array('title' => 'Home', 'url' => '/');\n $items[] = array('title' => 'Blog', 'url' => '/Blog');\n $items[] = array('title' => 'Archive', 'url' => '/Archive');\n\n return menuPrepareItems($items);\n}", "public function getMenus(){\n\n }", "public function getItems()\n\t{\n\t\t$items = parent::getItems();\n\t\t\n\n\t\treturn $items;\n\t}", "public function obtenerElementosMenu();", "public function getSubItems()\n {\n return $this->getDataValue($this->getSubmenuName());\n }", "public abstract function getMenuData(): array;", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "public function getCreateMenuItems() {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getCreateMenuItems();\n\n foreach ($menuItems as $moduleId => $menu) {\n foreach ($modules as $module) {\n\n // Check the presence of the module identifier among the available packages\n if ($moduleId == $module['name']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n // Add items for create menu in Dashboard\n if (isset($menu['label']) && isset($menu['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $menu['label']),\n 'url' => $menu['url']\n ];\n } else if (is_array($menu)) {\n foreach ($menu as $item) {\n if (isset($item['label']) && isset($item['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $item['label']),\n 'url' => $item['url']\n ];\n }\n }\n }\n }\n }\n }\n }\n\n return $items;\n }", "public function getMenuItems()\n\t{\n\t\t$items = array();\n\t\tforeach ($this->history as $action) {\n\t\t\t$items[] = array('label' => ucfirst($action),\n\t\t\t\t'url' => array($action,\n\t\t\t\t\t'session_id' => $this->session->session_id));\n\t\t}\n\t\treturn $items;\n\t}", "public function get_list_of_menus(){\n\n $items = array();\n\n $args = array(\n 'post_type' => 'erm_menu',\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'post_status' => 'publish',\n 'posts_per_page' => -1 \n );\n\n $menu_posts = get_posts($args);\n\n if ( !empty($menu_posts) ) {\n\n foreach ( $menu_posts as $menu_post ){\n $items[] = array(\n 'title' => $menu_post -> post_title,\n 'url' => $menu_post -> post_name\n );\n }\n\n }\n else{\n return new WP_Error( 'no_menus', 'No menus found', array( 'status' => 404 ) );\n }\n\n return $items;\n\n }", "public function menu()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'name' => 'users',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => TRUE,\n\t\t\t\t'menu' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'foo',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => FALSE,\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'bar',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => TRUE,\n\t\t\t\t\t\t'menu' => array(\n\t\t\t\t\t\t\t'name' => 'this is a third submenu',\n\t\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t\t'submenu' => FALSE,\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\tarray(\n\t\t\t\t'name' => 'foobar',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => FALSE,\n\t\t\t),\n\t\t);\n\t}", "public function menu() {\n\t\treturn $this->getteams();\n\t}", "public static function getAllMenu()\n {\n $rows = Yii::$app->cache->get(\"BackendMenu:all\");\n if (false === is_array($rows)) {\n $rows = static::find()\n ->orderBy('parent_id ASC, sort ASC')\n ->asArray()\n ->all();\n Yii::$app->cache->set(\n \"BackendMenu:all\",\n $rows,\n 86400,\n new TagDependency([\n 'tags' => [\n ActiveRecordHelper::getCommonTag(static::className()),\n ],\n ])\n );\n }\n // rebuild rows to tree $all_menu_items\n $all_menu_items = Tree::rowsArrayToMenuTree($rows, 0, 0, false);\n\n return $all_menu_items;\n }", "function getItems();", "function getItems();", "protected function getItems()\r\n\t{\r\n\t\treturn $this->_items;\r\n\t}", "function getItems(){\r\n\t\t\treturn $this->items;\r\n\t\t}", "public function getAllMenuItems()\n\t{\n\t\t$out = array();\n\t\n\t\t$sql = \"SELECT\n\t\t\t\t\t`menu`.`link_id`,\n\t\t\t\t\t`menu_tree`.`parent_id`,\n\t\t\t\t\t`menu`.`redirect_url`,\n\t\t\t\t\t`menu_tree`.`sequence_no`,\n\t\t\t\t\t`menu`.`title_menu`,\n\t\t\t\t\t`menu`.`title_page`,\n\t\t\t\t\t`menu`.`template_name`,\n\t\t\t\t\t`menu`.`module_id`,\n\t\t\t\t\t`menu`.`security_level_id`,\n\t\t\t\t\t`menu`.`group_id`,\n\t\t\t\t\t`menu_tree`.`main_link`,\n\t\t\t\t\t`menu_tree`.`quick_link`,\n\t\t\t\t\t`menu_tree`.`bottom_link`,\n\t\t\t\t\t`menu`.`sitemap`,\n\t\t\t\t\t`menu`.`status`\n\t\t\t\tFROM\n\t\t\t\t\t`menu_tree`\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t`menu`\n\t\t\t\tON\n\t\t\t\t\t`menu`.`link_id` = `menu_tree`.`link_id`\n\t\t\t\tORDER BY \n\t\t\t\t\t`menu_tree`.`parent_id`,`menu_tree`.`sequence_no`\n\t\t\t\t\";\n\t\t$stmt = $this->db->prepare($sql);\n\t\t$stmt->bind_result($link_id,$parent_id,$redirect_url,$sequence_no,$title_menu,$title_page,$template_name,$module_id,$security_level_id,$group_id,$main_link,$quick_link,$bottom_link,$sitemap,$status);\n\n\t\t$stmt->execute();\n\t\twhile($stmt->fetch())\n\t\t{\n\t\t\t$out[] = array(\n\t\t\t\t'link_id' => $link_id,\n\t\t\t\t'parent_id' => $parent_id,\n\t\t\t\t'redirect_url' => $redirect_url,\n\t\t\t\t'sequence_no' => $sequence_no,\n\t\t\t\t'title_menu' => $title_menu,\n\t\t\t\t'title_page' => $title_page,\n\t\t\t\t'template_name' => $template_name,\n\t\t\t\t'module_id' => $module_id,\n\t\t\t\t'security_level_id' => $security_level_id,\n\t\t\t\t'group_id' => $group_id,\n\t\t\t\t'main_link' => $main_link,\n\t\t\t\t'quick_link' => $quick_link,\n\t\t\t\t'bottom_link' => $bottom_link,\n\t\t\t\t'sitemap' => $sitemap,\n\t\t\t\t'status' => $status\n\t\t\t);\n\t\t}\n\t\t$stmt->close();\n\t\t\n\t\treturn $out;\n\t}", "protected function buildMenuArray() {}", "public function getSidebarMenuItems()\n {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getMenuItems();\n uasort($menuItems, array($this, 'sortByOrder'));\n\n foreach ($menuItems as $menu) {\n\n $subitems = [];\n $navitems = [];\n $disabled = false;\n\n // First, check if the menu item points to a specific module\n if (isset($menu['item'])) {\n\n // Check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($menu['item'] == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n\n // Call Module::dashboardNavItems() to get its native menu\n $navitems = [];\n $moduleNavitems = $module->dashboardNavItems();\n\n\t if (isset($moduleNavitems['items'])) {\n\t\t $navitems['items'] = $moduleNavitems['items'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n\t\t\t\t\t\t\t\t\tforeach ($moduleNavitems as $moduleNavitem) {\n\t\t\t\t\t\t\t\t\t\tif (isset($moduleNavitem['label'])) {\n\t\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitem;\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} else {\n\t\t\t\t\t\t\t\t\tif (isset($moduleNavitems['label'])) {\n\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitems;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n // Check if the received menu item contains a direct link\n if (isset($navitems['url']))\n $menu['url'] = $navitems['url'];\n\n // Check if the received menu item contains sub-items\n if (!empty($navitems['items'])) {\n $menu['items'] = $navitems['items'];\n }\n\n unset($navitems);\n }\n }\n }\n }\n\n\t // Check if the menu item has nested sub-items\n\t\t\tif (isset($menu['items']) && is_array($menu['items'])) {\n\n // If the nested item is not represented by an array, then this is the module identifier,\n // of the module in which you need to call Module::dashboardNavItems() to get its native menu\n if (!is_array($menu['items'][0])) {\n $found = 0;\n foreach ($menu['items'] as $moduleId) {\n\n // add custom link for dashboard page\n if (is_array($moduleId)) {\n if (\n array_key_exists('label', $moduleId) &&\n array_key_exists('icon', $moduleId) &&\n array_key_exists('url', $moduleId)\n ) {\n $navitems[] = $moduleId;\n $found++;\n }\n } else {\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n $found++;\n }\n }\n }\n }\n }\n\n // None of the modules were found\n if ($found == 0) {\n $disabled = true;\n } else {\n foreach ($navitems as $navitem) {\n if ($navitem['icon'])\n $navitem['label'] = ($navitem['icon']) ? '<span class=\"icon\"><i class=\"' . $navitem['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $navitem['label']) : Yii::t('app/modules/admin', $navitem['label']);\n }\n }\n\n } else {\n\n // It means a nested array and it already contains submenus of the menu\n $submenus = $menu['items'];\n uasort($submenus, array($this, 'sortByOrder'));\n foreach ($submenus as $submenu) {\n \n $navitems = [];\n if (isset($submenu['items']) && is_array($submenu['items'])) {\n foreach ($submenu['items'] as $moduleId) {\n\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n }\n }\n }\n }\n }\n\n // Collect the final sub-menu item\n $subitems[] = [\n 'label' => ($submenu['icon']) ? '<span class=\"icon\"><i class=\"' . $submenu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $submenu['label']) : Yii::t('app/modules/admin', $submenu['label']),\n 'url' => ($submenu['url']) ? Url::to($submenu['url']) : '#',\n 'items' => ($navitems) ? $navitems : false\n ];\n unset($navitems);\n }\n }\n } else {\n if (!isset($menu['url']) && !isset($menu['item']))\n $disabled = true;\n }\n\n // Check if the icon is installed for this menu item\n if (isset($navitems)) {\n if (count($navitems) > 0) {\n foreach ($navitems as $nav => $item) {\n if ($item['icon']) {\n $navitems[$nav]['label'] = ($item['icon']) ? '<span class=\"icon\"><i class=\"' . $item['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $item['label']) : Yii::t('app/modules/admin', $item['label']);\n }\n }\n }\n }\n\n // Collect the final parent menu item\n $items[] = [\n 'label' => ($menu['icon']) ? '<span class=\"icon\"><i class=\"' . $menu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $menu['label']) : Yii::t('app/modules/admin', $menu['label']),\n 'url' => isset($menu['url']) ? Url::to($menu['url']) : '#',\n 'items' => ($subitems) ? $subitems : (($navitems) ? $navitems : false),\n 'active' => false,\n 'options' => ['class' => ($disabled) ? 'disabled' : ''],\n ];\n }\n\n return $items;\n }", "public static function getMenuItems($menutype)\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Prepare the query.\n\t\t$query->select('m.*')\n\t\t\t->from('#__menu AS m')\n\t\t\t->where('m.menutype = ' . $db->q($menutype))\n\t\t\t->where('m.client_id = 1')\n\t\t\t->where('m.published = 1')\n\t\t\t->where('m.id > 1');\n\n\t\t// Filter on the enabled states.\n\t\t$query->select('e.element')\n\t\t\t->join('LEFT', '#__extensions AS e ON m.component_id = e.extension_id')\n\t\t\t->where('(e.enabled = 1 OR e.enabled IS NULL)');\n\n\t\t// Order by lft.\n\t\t$query->order('m.lft');\n\n\t\t$db->setQuery($query);\n\n\t\t// Component list\n\t\ttry\n\t\t{\n\t\t\t$menuItems = $db->loadObjectList();\n\n\t\t\tforeach ($menuItems as &$menuitem)\n\t\t\t{\n\t\t\t\t$menuitem->params = new Registry($menuitem->params);\n\t\t\t}\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$menuItems = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $menuItems;\n\t}", "function items()\n\t{\n\t\treturn $this->_items;\n\t}", "public function prepareMenu()\n {\n if (empty($this->list)) {\n // Load the menu based on the module's parameters\n $this->list = \\Admin\\Models\\Menus::instance()->emptyState()->setState('filter.root', false)->setState('filter.published', true)->setState('filter.tree', $this->mapper->{'details.selected-menu'})->setState('order_clause', array( 'tree'=> 1, 'lft' => 1 ))->getList();\n }\n \n if (empty($this->list)) {\n return array();\n }\n\n $items = $this->list;\n \n $this->items = $items;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function getToolbarItems();", "public static function returnMenu() {\n return array(\n array(\n 'title' => 'Eve - лица',\n 'link' => self::$group . '/' . 'faces',\n 'class' => 'fa-list-alt',\n 'permit' => 'view',\n ),\n );\n }", "public function getMenusListAttribute()\n {\n return Menu::orderBy('name')->get();\n }", "public function items()\n\t{\n\t\treturn $this->items;\n\t}", "public function getMenuItems($parameters)\r\n {\r\n $user =& JFactory::getUser();\r\n $db =& JFactory::getDBO();\r\n \r\n $pastor = getPastor($user->id);\r\n $num_requests = getRequests($pastor->id);\r\n $items = '';\r\n \r\n if(!$user->guest) {\r\n if($parameters->get('showDivineCall') && $num_requests) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call <span style=\"color: red; background-color: #fff; padding: 1px 9px 2px 9px; border-radius: 9px; -moz-border-radius: 9px; -webkit-border-radius: 9px;\">'. $num_requests . '</span> </a>';\r\n }\r\n elseif($parameters->get('showDivineCall')) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call</a>';\r\n } \r\n }\r\n \r\n return $items;\r\n }", "public function getQueryMenus();", "public function index()\n {\n // get all Menus\n $Menus = Menu::all();\n\n return $Menus;\n }", "function get_menu_items($title) {\n\t$items['home.php'] = \"Home\";\n\t$items['play_trivia.php'] = \"Play Trivia\";\n\t$items['view_leaders.php'] = \"View Leader Board\";\n\t$items['rank_question.php'] = \"Rank Questions\";\n\t$items['insert_question.php'] = \"Insert Question\";\n\t\n\tif ($_SESSION['admin']) {\t\n\t\t$items['insert_user.php'] = \"Delete User\";\n\t\t$items['delete_question.php'] = \"Delete Question\";\n\t}\t\t\n\t$items['logout.php'] = \"Logout\";\n\t\t\n\tforeach ($items as $key=>$value) {\n\t\t$active = '';\n\t\tif ($value==$title) $active = \"active\";\n\t\t$menu_items .= '\n\t\t <li class=\"nav-item\">\n\t\t <a class=\"nav-link '.$active.'\" href=\"'.$key.'\">'.$value.'</a>\n\t\t </li>\n\t\t';\n\t}\n\treturn $menu_items;\n}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function getItems()\n {\n $this->loadItems();\n return $this->items;\n }", "function api_list_menus() {\n\t\t$menus = array();\n\t\tforeach ( get_nav_menu_locations() as $menu_slug => $menu_id ) {\n\n\t\t\t$menu = $menu_id?self::get_menu_object($menu_id):false;\n\t\t\t$menus[ $menu_slug ] = $menu;\n\t\t}\n\n\t\treturn $menus;\n\t}", "public function allmenus() {\n //$this->db->order_by('serialid');\n $query = $this->db->get('menu');\n return $query->result();\n }", "public function menuItems($items)\n {\n $result = '';\n\n foreach ($items as $key => $options) {\n $class = '';\n $icon = 'fa fa-menu fa-chevron-right';\n $url = $options;\n $linkOptions = ['escape' => false];\n\n if (is_array($options)) {\n $icon = Hash::get($options, 'icon', $icon);\n $url = Hash::get($options, 'url', '#');\n $class = Hash::get($options, 'class', '');\n $title = Hash::get($options, 'title', '');\n\n $linkOptions = array_merge($linkOptions, Hash::get($options, 'options', []));\n } else {\n $title = $key;\n }\n\n $link = $this->Html->link(\n $this->Html->tag('i', '', ['class' => $icon]) . __($title),\n $url,\n $linkOptions\n );\n\n $result .= $this->Html->tag('li', $link, ['class' => $class]);\n }\n\n return $result;\n }", "public function getItems()\n {\n return $this['ITEMS'];\n }" ]
[ "0.87782925", "0.81344724", "0.8037758", "0.7784811", "0.7748574", "0.7646989", "0.75717956", "0.7565426", "0.7541824", "0.7490188", "0.7451708", "0.7446263", "0.74343795", "0.7415992", "0.73516417", "0.7320214", "0.72796005", "0.72759366", "0.72671556", "0.7243029", "0.7238988", "0.7209053", "0.7202965", "0.71957076", "0.71637887", "0.7154334", "0.7094945", "0.7053935", "0.7033596", "0.69121045", "0.6894294", "0.6881728", "0.68814373", "0.687537", "0.6873051", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.682361", "0.68235284", "0.6775496", "0.67712617", "0.67711574", "0.6770207", "0.67534894", "0.67530596", "0.673972", "0.6729655", "0.67261165", "0.6723462", "0.67135835", "0.66929233", "0.6681463", "0.6658691", "0.6652967", "0.6644786", "0.6643305", "0.6643305", "0.6639776", "0.6633718", "0.6626841", "0.66221863", "0.66213095", "0.6597618", "0.65726775", "0.65626687", "0.65560645", "0.65560645", "0.65533435", "0.6531947", "0.6531947", "0.6531947", "0.6525259", "0.65199465", "0.6519334", "0.65192", "0.6513577", "0.6512954", "0.6502631", "0.6487127", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.6486194", "0.6484842", "0.6480772", "0.6477834", "0.6472128" ]
0.0
-1
Get the items for the menu.
public function abilities(): HasMany { return $this->hasMany(PsAbility::class, 'champion_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_items() {\n return $this->menuitems;\n }", "function getMenuItems()\n {\n }", "public function getMenuItems() {\t\t\t\t\t\r\n\t\treturn $this->menuItems;\r\n\t}", "public function getMenuItems(){\n $items = ItemMenu::getBy(array('_id' => array('$in' => $this->_menuItems)));\n return $items;\n }", "public function getMenus() {}", "public function items()\n\t{\n\t\tif( ! is_null($this->menu))\n\t\t{\n\t\t\tforeach($this->items as $item)\n\t\t\t{\n\t\t\t\t$this->menu->filter($item);\n\t\t\t}\n\t\t}\n\n\t\treturn $this->items;\n\t}", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "public function getMenu();", "public function getItems()\n {\n //$urlManager = Yii::$app->urlManager->createUrl();\n $menuItems = [\n 'items' => $this->prepareRawTree()->prepareHasChilds()->getWidgetFormatedArray(),\n 'options' => [\n 'id' => 'left-menu',\n 'class' => 'nav nav-sidebar sortable'\n ],\n 'linkTemplate' => '<a href=\"{url}\">{label_prefix}{label}{label_postfix}</a>',\n 'submenuTemplate' => \"\\n<ul class='sortable nav nav-{level}-level'>\\n{items}\\n</ul>\\n\",\n ];\n //print_r($menuItems);\n return $menuItems;\n }", "public function getMenuItems()\n {\n return $this->adminMenu->all();\n }", "public static function menus()\n {\n return [];\n }", "public function getMenuItems()\n\t{\n\t\treturn Settings_Vtiger_MenuItem_Model::getAll($this->getId());\n\t}", "private function getMenuItems()\n {\n $menu = $this->getDoctrine()->getRepository('XvolutionsAdminBundle:Menu')->findBy([], array('position' => 'ASC'));\n $menuItems = null;\n foreach ($menu as $item) {\n $menuItems[$item->getPage()->getId()] = ['id' => $item->getPage()->getId(), 'title' => $item->getPage()->getTitle()];\n }\n\n return $menuItems;\n }", "function get_menu() {\n return wp_get_nav_menu_items(9);\n }", "protected function getMenuItems()\n {\n return $this->getService('config')->get()['menu']['admin'];\n }", "function getMenuEntries()\n\t{\n\t\tglobal $rbacsystem, $lng, $tree, $ilUser, $ilSetting;\n\n\t\t// no menu during online tests\n\t\tif ($_SESSION[\"adn_online_test\"])\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\n\t\t$mm_tpl = new ilTemplate(\"tpl.adn_main_menu.html\", true, true, \"Services/ADN/UI\");\n\n\t\tforeach ($this->getAllMenuItems() as $menu => $items)\n\t\t{\n\t\t\t$this->renderSubMenu($mm_tpl, $menu);\n\t\t}\n\t\treturn $mm_tpl->get();\n\n\n\n\t\t$tpl->setCurrentBlock(\"cust_menu\");\n\t\t$tpl->setVariable(\"TXT_CUSTOM\",\n\t\t\tlfCustomMenu::lookupTitle(\"it\", $menu[\"id\"], $ilUser->getLanguage(), true));\n\t\t$tpl->setVariable(\"MM_CLASS\", \"MMInactive\");\n\n\t\tif (is_file(\"./templates/default/images/mm_down_arrow.png\"))\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.png\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.gif\"));\n\t\t}\n\t\t$tpl->setVariable(\"CUSTOM_CONT_OV\", $gl->getHTML());\n\t\t$tpl->setVariable(\"MM_ID\", $menu[\"id\"]);\n\t\t$tpl->parseCurrentBlock();\n\t\t$tpl->setCurrentBlock(\"c_item\");\n\t\t$tpl->parseCurrentBlock();\n\n\t}", "public static function menuItems()\n {\n return [\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Users'), 'url' => ['/user-management/user/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Roles'), 'url' => ['/user-management/role/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permissions'), 'url' => ['/user-management/permission/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permission groups'), 'url' => ['/user-management/auth-item-group/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Visit log'), 'url' => ['/user-management/user-visit-log/index']],\n ];\n }", "public function menuItems()\n\t{\n\t\treturn array(\n array('label'=>$this->labelMenu!==null?$this->labelMenu:Yii::t('app','Generator'), 'icon'=>'fa fa-code', 'url'=>'#','items'=>$this->getMyselfMenu(),'visible'=>Yii::app()->getModule('users')->check('root')),\n );\n\t}", "public function getMenuItems()\n {\n $sql = \"\n SELECT\n menu.uid,\n parent_uid,\n sort_order,\n nofollow,\n target,\n class,\n label,\n uri_uid,\n uri,\n menu.archived,\n menu.archived_datetime\n FROM menu\n LEFT JOIN uri\n ON uri.uid = menu.uri_uid\n WHERE menu.archived = '0'\n AND (uri.archived = '0' OR uri.archived IS NULL)\n \";\n\n $sql .= \"\n ORDER BY sort_order;\n \";\n\n $db = new Query($sql);\n $results = $db->fetchAllAssoc();\n\n return $results;\n }", "public function getMenus()\n\t{\n\n\t}", "public function getMenuItems() {\n\n $url = $this->urlHelper;\n $items = [];\n\n //Links Visible always to everyone logged in or not.\n //default Home page - no login required. \n\n /* $items[] = [\n 'id' => 'home',\n 'label' => 'Home',\n 'link' => $url('home')\n ]; */\n\n //add links here for pages that will be visible for all users logged-in or not.\n //you must adjust User\\Module.php (~line 85) onDispatch method to ignore calls for \n //the associated Controller and action or you will end up with an infinite loop.\n /*\n $items[] = [\n 'id' => 'about',\n 'label' => 'About',\n 'link' => $url('about')\n ];\n */\n\n $user = $this->authManager->getLoggedInUser();\n\n //BEGIN Authentication/Rendering Logic\n // Display \"Login\" menu item for not authorized user only. On the other hand,\n // display \"Admin\" and \"Logout\" menu items only for authorized users and any other links \n // that should be visible by logged-in users.\n if (!$user) {\n\n $items[] = [\n 'id' => 'login',\n 'label' => 'Sign in',\n 'link' => $url('login'),\n 'float' => 'right'\n ];\n } else {\n\n //render Customers link for all users with sales_attr_id value in users table\n if (!empty($user->getSales_attr_id())) {\n $items[] = [\n 'id' => 'customers',\n 'label' => 'Customers',\n 'data-ffm-salesperson' => $user->getFullName(),\n 'float' => 'static',\n 'link' => $url('customer', ['action' => 'view', 'id' => $user->getSales_attr_id()])\n ];\n }\n //only display admin drop down for admin users.\n $isAdmin = $this->authManager->isAdmin();\n if ($isAdmin) {\n $items[] = [\n 'id' => 'admin',\n 'label' => '<i class=\"ion-gear-a\"></i>',\n 'float' => 'right',\n 'dropdown' => [\n [\n 'id' => 'users',\n 'label' => 'Manage Users',\n 'link' => $url('users')\n ]\n ]\n ];\n }\n\n $settingsDropDownManageAccount = [\n 'id' => 'manage_account',\n 'label' => 'Manage Account',\n 'link' => $url('users', ['action' => 'edit', 'id' => $user->getId()])\n ];\n\n $settingsDropDownViewAccount = [\n 'id' => 'view_account',\n 'label' => 'View Account',\n 'link' => $url('application', ['action' => 'settings'])\n ];\n\n $settingsDropDownLogout = [\n 'id' => 'logout',\n 'label' => 'Logout',\n 'link' => $url('logout')\n ];\n\n $settingsDropDown = [];\n\n //only add the Manage Account link for Admins.\n if ($isAdmin) {\n $settingsDropDown[] = $settingsDropDownManageAccount;\n }\n\n $settingsDropDown[] = $settingsDropDownViewAccount;\n\n $settingsDropDown[] = $settingsDropDownLogout;\n\n $items[] = [\n 'id' => 'settings',\n 'label' => '<i class=\"ion-person\"></i>' . $user->getUsername(),\n 'float' => 'right',\n 'dropdown' => $settingsDropDown\n ];\n\n $loggedInItems = $this->getLoggedInItems();\n\n if ($loggedInItems)\n array_merge($items, $loggedInItems);\n\n // add items to right of settings in top right corner only for logged-in users here\n //Show Salespeople link only to Admin users\n if ($isAdmin) {\n\n $items[] = [\n 'id' => 'salespeople',\n 'label' => 'Salespeople',\n 'float' => 'static',\n 'link' => $url('salespeople', ['action' => 'index']),\n ];\n }\n }\n\n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$sql = \"SELECT * FROM mod_menu\";\n\t\t$query = \\SimplCMS::$app->getDbConnection()->query($sql);\n\t\treturn $query->fetchAll( \\PDO::FETCH_ASSOC );\t\t\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "public function items()\n {\n return $this\n ->hasMany('\\Pageblok\\Menus\\Models\\MenuItem', 'menu_ref')\n ->where('published', true)\n ->orderBy('priority', 'ASC');\n }", "public static function &getItems()\n\t{\n\t\tstatic $items;\n\n\t\t// Get the menu items for this component.\n\t\tif (!isset($items)) {\n\t\t\t// Include the site app in case we are loading this from the admin.\n\t\t\trequire_once JPATH_SITE.'/includes/application.php';\n\n\t\t\t$app\t= JFactory::getApplication();\n\t\t\t$menu\t= $app->getMenu();\n\t\t\t$com\t= JComponentHelper::getComponent('com_users');\n\t\t\t$items\t= $menu->getItems('component_id', $com->id);\n\n\t\t\t// If no items found, set to empty array.\n\t\t\tif (!$items) {\n\t\t\t\t$items = array();\n\t\t\t}\n\t\t}\n\n\t\treturn $items;\n\t}", "public static function getMenuItems()\n {\n // Will be handled in XML in future (or/and with the Joomla native menus)\n // -> give your opinion on j-cook.pro/forum\n\n $items = array();\n\n $items['admin.countries.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_COUNTRIES',\n 'view' => 'countries',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_countries'\n );\n\n $items['admin.regions.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_REGIONS',\n 'view' => 'regions',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_regions'\n );\n\n $items['admin.provinces.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_PROVINCES',\n 'view' => 'provinces',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_provinces'\n );\n\n $items['admin.subscriptionplans.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_SUBSCRIPTIONPLANS',\n 'view' => 'subscriptionplans',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_subscriptionplans'\n );\n\n $items['admin.categories.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CATEGORIES',\n 'view' => 'categories',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_categories'\n );\n\n $items['admin.typedocuments.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_TYPEDOCUMENTS',\n 'view' => 'typedocuments',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_typedocuments'\n );\n\n $items['admin.documents.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_DOCUMENTS',\n 'view' => 'documents',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_documents'\n );\n\n $items['admin.reservations.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_RESERVATIONS',\n 'view' => 'reservations',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_reservations'\n );\n\n $items['admin.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n $items['site.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n return $items;\n }", "function wp_get_nav_menu_items($items, $menu, $args)\n {\n }", "public function index()\n {\n return $this->menu->all();\n }", "abstract public function getMenuData();", "public function getUserMenu() {\n $event = new BuildUserMenuEvent();\n $this->trigger(self::EVENT_BUILD_USER_MENU, $event);\n $menu = [];\n foreach ($event->items as $block => $items) {\n foreach ($items as $item) {\n $menu[] = $item;\n }\n }\n return $menu;\n }", "public static function menus(): array\n {\n return [];\n }", "function &getMenus() {\n\t\t$lines = explode(\"\\n\", $this->menus);\n\n\t\t$menus = array();\n\t\tforeach( $lines as $line ) {\n\t\t\tif ($line) {\n\t\t\t\tlist( $menutype, $ordering, $show, $showXML, $priority, $changefreq ) = explode(',', $line);\n\t\t\t\t$info = explode(',', $line);\n\t\t\t\t$menu = new stdclass;\n\t\t\t\t$menu->menutype \t= @$info[0];\n\t\t\t\t$menu->ordering \t= @$info[1];\n\t\t\t\t$menu->show \t\t= @$info[2];\n\t\t\t\t$menu->showXML \t= @$info[3];\n\t\t\t\t$menu->priority \t= (@$info[4]? $info[4] : '0.5');\n\t\t\t\t$menu->changefreq \t= (@$info[5]? $info[5] : 'weekly');\n\t\t\t\t$menu->module \t\t= (@$info[6]? $info[6] : 'mod_mainmenu');\n\t\t\t\t$menus[$menutype] \t= $menu;\n\t\t\t}\n\t\t}\n\t\treturn $menus;\n\t}", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "public function getMenus()\n\t{\n\t\treturn $this->menus;\n\t}", "public function get(){\n\t\t\t\n\t\t\t$query=\"SELECT menuItem FROM menuModel\";\n\t\t\t$results=$this->db()->query($query);\n\t\t\t\n\t\t\t// echo\"<pre>\";\n\t\t\t// var_dump($results);\n\t\t\t\n\t\t\tforeach($results as $res){\n\t\t\t\t$menu_array[]=$res;\n\t\t\t}\n\t\t\t\n\t\t\treturn $menu_array;\n\t\t\t\n\t\t}", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function menuItems()\n {\n return array(\n array('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('#'), 'items'=>array(\n \n // array('label'=>Yii::t('app','Home Información'), 'icon'=>'fa fa-star-half-o', 'url'=>array('/'.$this->id.'/info/')),\n // array('label'=>Yii::t('app','Beneficios'), 'icon'=>'fa fa-rocket', 'url'=>array('/'.$this->id.'/features/admin')),\n \n \tarray('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('/'.$this->id.'/header/admin')),\n\n \tarray('label'=>Yii::t('app','Términos y condiciones'), 'icon'=>'fa fa-gavel', 'url'=>array('/'.$this->id.'/conditions/')),\n \tarray('label'=>Yii::t('app','Config'), 'icon'=>'fa fa-cog', 'url'=>array('/'.$this->id.'/config/')),\n \n \n )),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('#'), 'items'=>array(\n \n array('label'=>Yii::t('app','Categorías'), 'icon'=>'fa fa-list-ol', 'url'=>array('/'.$this->id.'/categories/admin')),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('/'.$this->id.'/items/admin')),\n \t// array('label'=>Yii::t('app','Facilitadores'), 'icon'=>'fa fa-graduation-cap', 'url'=>array('/'.$this->id.'/facilitador/admin')),\n \n )),\n );\n }", "public function menu_get_names()\n {\n return menu_get_names();\n }", "public function getItems(){\n\t\treturn $this->_makeCall('items?');\n\t}", "function menuGetPrimaryItems() {\n $items = array();\n $items[] = array('title' => 'Home', 'url' => '/');\n $items[] = array('title' => 'Blog', 'url' => '/Blog');\n $items[] = array('title' => 'Archive', 'url' => '/Archive');\n\n return menuPrepareItems($items);\n}", "protected function getTopmenuItems()\n {\n $items = array();\n\n if (APP_User::isBWLoggedIn()) {\n $username = isset($_SESSION['Username']) ? $_SESSION['Username'] : '';\n $items[] = array('profile', 'members/'.$username, $username, true);\n }\n // $items[] = array('searchmembers', 'searchmembers/index', 'FindMembers');\n // $items[] = array('forums', 'forums', 'Community');\n // $items[] = array('groups', 'bw/groups.php', 'Groups');\n // $items[] = array('gallery', 'gallery', 'Gallery');\n $items[] = array('getanswers', 'about', 'GetAnswers');\n $items[] = array('findhosts', 'findmembers', 'FindHosts');\n $items[] = array('explore', 'explore', 'Explore');\n if (APP_User::isBWLoggedIn()) {\n $items[] = array('messages', 'messages', 'Messages');\n }\n \n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('a.*, SUM(b.home) AS home')\n\t\t\t->from('#__menu_types AS a')\n\t\t\t->join('LEFT', '#__menu AS b ON b.menutype = a.menutype AND b.home != 0')\n\t\t\t->select('b.language')\n\t\t\t->join('LEFT', '#__languages AS l ON l.lang_code = language')\n\t\t\t->select('l.image')\n\t\t\t->select('l.sef')\n\t\t\t->select('l.title_native')\n\t\t\t->where('(b.client_id = 0 OR b.client_id IS NULL)');\n\n\t\t// Sqlsrv change\n\t\t$query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$result = $db->loadObjectList();\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$result = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getItems()\n\t{\n\t\t$items = parent::getItems();\n\t\t\n\n\t\treturn $items;\n\t}", "public function getMenus(){\n\n }", "public function obtenerElementosMenu();", "public function getSubItems()\n {\n return $this->getDataValue($this->getSubmenuName());\n }", "public abstract function getMenuData(): array;", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "public function getCreateMenuItems() {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getCreateMenuItems();\n\n foreach ($menuItems as $moduleId => $menu) {\n foreach ($modules as $module) {\n\n // Check the presence of the module identifier among the available packages\n if ($moduleId == $module['name']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n // Add items for create menu in Dashboard\n if (isset($menu['label']) && isset($menu['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $menu['label']),\n 'url' => $menu['url']\n ];\n } else if (is_array($menu)) {\n foreach ($menu as $item) {\n if (isset($item['label']) && isset($item['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $item['label']),\n 'url' => $item['url']\n ];\n }\n }\n }\n }\n }\n }\n }\n\n return $items;\n }", "public function getMenuItems()\n\t{\n\t\t$items = array();\n\t\tforeach ($this->history as $action) {\n\t\t\t$items[] = array('label' => ucfirst($action),\n\t\t\t\t'url' => array($action,\n\t\t\t\t\t'session_id' => $this->session->session_id));\n\t\t}\n\t\treturn $items;\n\t}", "public function get_list_of_menus(){\n\n $items = array();\n\n $args = array(\n 'post_type' => 'erm_menu',\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'post_status' => 'publish',\n 'posts_per_page' => -1 \n );\n\n $menu_posts = get_posts($args);\n\n if ( !empty($menu_posts) ) {\n\n foreach ( $menu_posts as $menu_post ){\n $items[] = array(\n 'title' => $menu_post -> post_title,\n 'url' => $menu_post -> post_name\n );\n }\n\n }\n else{\n return new WP_Error( 'no_menus', 'No menus found', array( 'status' => 404 ) );\n }\n\n return $items;\n\n }", "public function menu()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'name' => 'users',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => TRUE,\n\t\t\t\t'menu' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'foo',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => FALSE,\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'bar',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => TRUE,\n\t\t\t\t\t\t'menu' => array(\n\t\t\t\t\t\t\t'name' => 'this is a third submenu',\n\t\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t\t'submenu' => FALSE,\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\tarray(\n\t\t\t\t'name' => 'foobar',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => FALSE,\n\t\t\t),\n\t\t);\n\t}", "public function menu() {\n\t\treturn $this->getteams();\n\t}", "public static function getAllMenu()\n {\n $rows = Yii::$app->cache->get(\"BackendMenu:all\");\n if (false === is_array($rows)) {\n $rows = static::find()\n ->orderBy('parent_id ASC, sort ASC')\n ->asArray()\n ->all();\n Yii::$app->cache->set(\n \"BackendMenu:all\",\n $rows,\n 86400,\n new TagDependency([\n 'tags' => [\n ActiveRecordHelper::getCommonTag(static::className()),\n ],\n ])\n );\n }\n // rebuild rows to tree $all_menu_items\n $all_menu_items = Tree::rowsArrayToMenuTree($rows, 0, 0, false);\n\n return $all_menu_items;\n }", "function getItems();", "function getItems();", "protected function getItems()\r\n\t{\r\n\t\treturn $this->_items;\r\n\t}", "function getItems(){\r\n\t\t\treturn $this->items;\r\n\t\t}", "public function getAllMenuItems()\n\t{\n\t\t$out = array();\n\t\n\t\t$sql = \"SELECT\n\t\t\t\t\t`menu`.`link_id`,\n\t\t\t\t\t`menu_tree`.`parent_id`,\n\t\t\t\t\t`menu`.`redirect_url`,\n\t\t\t\t\t`menu_tree`.`sequence_no`,\n\t\t\t\t\t`menu`.`title_menu`,\n\t\t\t\t\t`menu`.`title_page`,\n\t\t\t\t\t`menu`.`template_name`,\n\t\t\t\t\t`menu`.`module_id`,\n\t\t\t\t\t`menu`.`security_level_id`,\n\t\t\t\t\t`menu`.`group_id`,\n\t\t\t\t\t`menu_tree`.`main_link`,\n\t\t\t\t\t`menu_tree`.`quick_link`,\n\t\t\t\t\t`menu_tree`.`bottom_link`,\n\t\t\t\t\t`menu`.`sitemap`,\n\t\t\t\t\t`menu`.`status`\n\t\t\t\tFROM\n\t\t\t\t\t`menu_tree`\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t`menu`\n\t\t\t\tON\n\t\t\t\t\t`menu`.`link_id` = `menu_tree`.`link_id`\n\t\t\t\tORDER BY \n\t\t\t\t\t`menu_tree`.`parent_id`,`menu_tree`.`sequence_no`\n\t\t\t\t\";\n\t\t$stmt = $this->db->prepare($sql);\n\t\t$stmt->bind_result($link_id,$parent_id,$redirect_url,$sequence_no,$title_menu,$title_page,$template_name,$module_id,$security_level_id,$group_id,$main_link,$quick_link,$bottom_link,$sitemap,$status);\n\n\t\t$stmt->execute();\n\t\twhile($stmt->fetch())\n\t\t{\n\t\t\t$out[] = array(\n\t\t\t\t'link_id' => $link_id,\n\t\t\t\t'parent_id' => $parent_id,\n\t\t\t\t'redirect_url' => $redirect_url,\n\t\t\t\t'sequence_no' => $sequence_no,\n\t\t\t\t'title_menu' => $title_menu,\n\t\t\t\t'title_page' => $title_page,\n\t\t\t\t'template_name' => $template_name,\n\t\t\t\t'module_id' => $module_id,\n\t\t\t\t'security_level_id' => $security_level_id,\n\t\t\t\t'group_id' => $group_id,\n\t\t\t\t'main_link' => $main_link,\n\t\t\t\t'quick_link' => $quick_link,\n\t\t\t\t'bottom_link' => $bottom_link,\n\t\t\t\t'sitemap' => $sitemap,\n\t\t\t\t'status' => $status\n\t\t\t);\n\t\t}\n\t\t$stmt->close();\n\t\t\n\t\treturn $out;\n\t}", "protected function buildMenuArray() {}", "public function getSidebarMenuItems()\n {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getMenuItems();\n uasort($menuItems, array($this, 'sortByOrder'));\n\n foreach ($menuItems as $menu) {\n\n $subitems = [];\n $navitems = [];\n $disabled = false;\n\n // First, check if the menu item points to a specific module\n if (isset($menu['item'])) {\n\n // Check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($menu['item'] == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n\n // Call Module::dashboardNavItems() to get its native menu\n $navitems = [];\n $moduleNavitems = $module->dashboardNavItems();\n\n\t if (isset($moduleNavitems['items'])) {\n\t\t $navitems['items'] = $moduleNavitems['items'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n\t\t\t\t\t\t\t\t\tforeach ($moduleNavitems as $moduleNavitem) {\n\t\t\t\t\t\t\t\t\t\tif (isset($moduleNavitem['label'])) {\n\t\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitem;\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} else {\n\t\t\t\t\t\t\t\t\tif (isset($moduleNavitems['label'])) {\n\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitems;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n // Check if the received menu item contains a direct link\n if (isset($navitems['url']))\n $menu['url'] = $navitems['url'];\n\n // Check if the received menu item contains sub-items\n if (!empty($navitems['items'])) {\n $menu['items'] = $navitems['items'];\n }\n\n unset($navitems);\n }\n }\n }\n }\n\n\t // Check if the menu item has nested sub-items\n\t\t\tif (isset($menu['items']) && is_array($menu['items'])) {\n\n // If the nested item is not represented by an array, then this is the module identifier,\n // of the module in which you need to call Module::dashboardNavItems() to get its native menu\n if (!is_array($menu['items'][0])) {\n $found = 0;\n foreach ($menu['items'] as $moduleId) {\n\n // add custom link for dashboard page\n if (is_array($moduleId)) {\n if (\n array_key_exists('label', $moduleId) &&\n array_key_exists('icon', $moduleId) &&\n array_key_exists('url', $moduleId)\n ) {\n $navitems[] = $moduleId;\n $found++;\n }\n } else {\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n $found++;\n }\n }\n }\n }\n }\n\n // None of the modules were found\n if ($found == 0) {\n $disabled = true;\n } else {\n foreach ($navitems as $navitem) {\n if ($navitem['icon'])\n $navitem['label'] = ($navitem['icon']) ? '<span class=\"icon\"><i class=\"' . $navitem['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $navitem['label']) : Yii::t('app/modules/admin', $navitem['label']);\n }\n }\n\n } else {\n\n // It means a nested array and it already contains submenus of the menu\n $submenus = $menu['items'];\n uasort($submenus, array($this, 'sortByOrder'));\n foreach ($submenus as $submenu) {\n \n $navitems = [];\n if (isset($submenu['items']) && is_array($submenu['items'])) {\n foreach ($submenu['items'] as $moduleId) {\n\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n }\n }\n }\n }\n }\n\n // Collect the final sub-menu item\n $subitems[] = [\n 'label' => ($submenu['icon']) ? '<span class=\"icon\"><i class=\"' . $submenu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $submenu['label']) : Yii::t('app/modules/admin', $submenu['label']),\n 'url' => ($submenu['url']) ? Url::to($submenu['url']) : '#',\n 'items' => ($navitems) ? $navitems : false\n ];\n unset($navitems);\n }\n }\n } else {\n if (!isset($menu['url']) && !isset($menu['item']))\n $disabled = true;\n }\n\n // Check if the icon is installed for this menu item\n if (isset($navitems)) {\n if (count($navitems) > 0) {\n foreach ($navitems as $nav => $item) {\n if ($item['icon']) {\n $navitems[$nav]['label'] = ($item['icon']) ? '<span class=\"icon\"><i class=\"' . $item['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $item['label']) : Yii::t('app/modules/admin', $item['label']);\n }\n }\n }\n }\n\n // Collect the final parent menu item\n $items[] = [\n 'label' => ($menu['icon']) ? '<span class=\"icon\"><i class=\"' . $menu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $menu['label']) : Yii::t('app/modules/admin', $menu['label']),\n 'url' => isset($menu['url']) ? Url::to($menu['url']) : '#',\n 'items' => ($subitems) ? $subitems : (($navitems) ? $navitems : false),\n 'active' => false,\n 'options' => ['class' => ($disabled) ? 'disabled' : ''],\n ];\n }\n\n return $items;\n }", "public static function getMenuItems($menutype)\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Prepare the query.\n\t\t$query->select('m.*')\n\t\t\t->from('#__menu AS m')\n\t\t\t->where('m.menutype = ' . $db->q($menutype))\n\t\t\t->where('m.client_id = 1')\n\t\t\t->where('m.published = 1')\n\t\t\t->where('m.id > 1');\n\n\t\t// Filter on the enabled states.\n\t\t$query->select('e.element')\n\t\t\t->join('LEFT', '#__extensions AS e ON m.component_id = e.extension_id')\n\t\t\t->where('(e.enabled = 1 OR e.enabled IS NULL)');\n\n\t\t// Order by lft.\n\t\t$query->order('m.lft');\n\n\t\t$db->setQuery($query);\n\n\t\t// Component list\n\t\ttry\n\t\t{\n\t\t\t$menuItems = $db->loadObjectList();\n\n\t\t\tforeach ($menuItems as &$menuitem)\n\t\t\t{\n\t\t\t\t$menuitem->params = new Registry($menuitem->params);\n\t\t\t}\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$menuItems = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $menuItems;\n\t}", "function items()\n\t{\n\t\treturn $this->_items;\n\t}", "public function prepareMenu()\n {\n if (empty($this->list)) {\n // Load the menu based on the module's parameters\n $this->list = \\Admin\\Models\\Menus::instance()->emptyState()->setState('filter.root', false)->setState('filter.published', true)->setState('filter.tree', $this->mapper->{'details.selected-menu'})->setState('order_clause', array( 'tree'=> 1, 'lft' => 1 ))->getList();\n }\n \n if (empty($this->list)) {\n return array();\n }\n\n $items = $this->list;\n \n $this->items = $items;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function getToolbarItems();", "public static function returnMenu() {\n return array(\n array(\n 'title' => 'Eve - лица',\n 'link' => self::$group . '/' . 'faces',\n 'class' => 'fa-list-alt',\n 'permit' => 'view',\n ),\n );\n }", "public function getMenusListAttribute()\n {\n return Menu::orderBy('name')->get();\n }", "public function items()\n\t{\n\t\treturn $this->items;\n\t}", "public function getMenuItems($parameters)\r\n {\r\n $user =& JFactory::getUser();\r\n $db =& JFactory::getDBO();\r\n \r\n $pastor = getPastor($user->id);\r\n $num_requests = getRequests($pastor->id);\r\n $items = '';\r\n \r\n if(!$user->guest) {\r\n if($parameters->get('showDivineCall') && $num_requests) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call <span style=\"color: red; background-color: #fff; padding: 1px 9px 2px 9px; border-radius: 9px; -moz-border-radius: 9px; -webkit-border-radius: 9px;\">'. $num_requests . '</span> </a>';\r\n }\r\n elseif($parameters->get('showDivineCall')) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call</a>';\r\n } \r\n }\r\n \r\n return $items;\r\n }", "public function getQueryMenus();", "public function index()\n {\n // get all Menus\n $Menus = Menu::all();\n\n return $Menus;\n }", "function get_menu_items($title) {\n\t$items['home.php'] = \"Home\";\n\t$items['play_trivia.php'] = \"Play Trivia\";\n\t$items['view_leaders.php'] = \"View Leader Board\";\n\t$items['rank_question.php'] = \"Rank Questions\";\n\t$items['insert_question.php'] = \"Insert Question\";\n\t\n\tif ($_SESSION['admin']) {\t\n\t\t$items['insert_user.php'] = \"Delete User\";\n\t\t$items['delete_question.php'] = \"Delete Question\";\n\t}\t\t\n\t$items['logout.php'] = \"Logout\";\n\t\t\n\tforeach ($items as $key=>$value) {\n\t\t$active = '';\n\t\tif ($value==$title) $active = \"active\";\n\t\t$menu_items .= '\n\t\t <li class=\"nav-item\">\n\t\t <a class=\"nav-link '.$active.'\" href=\"'.$key.'\">'.$value.'</a>\n\t\t </li>\n\t\t';\n\t}\n\treturn $menu_items;\n}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function getItems()\n {\n $this->loadItems();\n return $this->items;\n }", "function api_list_menus() {\n\t\t$menus = array();\n\t\tforeach ( get_nav_menu_locations() as $menu_slug => $menu_id ) {\n\n\t\t\t$menu = $menu_id?self::get_menu_object($menu_id):false;\n\t\t\t$menus[ $menu_slug ] = $menu;\n\t\t}\n\n\t\treturn $menus;\n\t}", "public function allmenus() {\n //$this->db->order_by('serialid');\n $query = $this->db->get('menu');\n return $query->result();\n }", "public function menuItems($items)\n {\n $result = '';\n\n foreach ($items as $key => $options) {\n $class = '';\n $icon = 'fa fa-menu fa-chevron-right';\n $url = $options;\n $linkOptions = ['escape' => false];\n\n if (is_array($options)) {\n $icon = Hash::get($options, 'icon', $icon);\n $url = Hash::get($options, 'url', '#');\n $class = Hash::get($options, 'class', '');\n $title = Hash::get($options, 'title', '');\n\n $linkOptions = array_merge($linkOptions, Hash::get($options, 'options', []));\n } else {\n $title = $key;\n }\n\n $link = $this->Html->link(\n $this->Html->tag('i', '', ['class' => $icon]) . __($title),\n $url,\n $linkOptions\n );\n\n $result .= $this->Html->tag('li', $link, ['class' => $class]);\n }\n\n return $result;\n }", "public function getItems()\n {\n return $this['ITEMS'];\n }" ]
[ "0.87796366", "0.81356585", "0.8039705", "0.77860546", "0.77480483", "0.7648789", "0.75722563", "0.7565739", "0.754279", "0.7490906", "0.74528307", "0.7447195", "0.7435883", "0.7417227", "0.7352571", "0.7320029", "0.72826093", "0.72784793", "0.7266743", "0.72426057", "0.7238722", "0.720878", "0.7203258", "0.719695", "0.7165266", "0.7155829", "0.7098549", "0.70527434", "0.703386", "0.69134665", "0.68955874", "0.6882195", "0.6881125", "0.6876228", "0.6872512", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.6826176", "0.68245035", "0.67737764", "0.677234", "0.6771983", "0.6771375", "0.6753282", "0.6752957", "0.6739078", "0.67307097", "0.6726022", "0.6723061", "0.6715927", "0.66930485", "0.6681901", "0.66607594", "0.66527617", "0.66458625", "0.6642037", "0.6642037", "0.66400623", "0.6633514", "0.6627292", "0.66226554", "0.6622498", "0.6597688", "0.65727866", "0.6564244", "0.65575504", "0.65575504", "0.6553401", "0.6532118", "0.6532118", "0.6532118", "0.6525547", "0.65203655", "0.65198594", "0.6519424", "0.651348", "0.6512277", "0.65023434", "0.6488993", "0.6487537", "0.6487537", "0.6487537", "0.6487537", "0.6487537", "0.6487537", "0.64863163", "0.6485197", "0.6480892", "0.6480348", "0.64720863" ]
0.0
-1
Get the items for the menu.
public function talents(): HasMany { return $this->hasMany(PsTalent::class, 'champion_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_items() {\n return $this->menuitems;\n }", "function getMenuItems()\n {\n }", "public function getMenuItems() {\t\t\t\t\t\r\n\t\treturn $this->menuItems;\r\n\t}", "public function getMenuItems(){\n $items = ItemMenu::getBy(array('_id' => array('$in' => $this->_menuItems)));\n return $items;\n }", "public function getMenus() {}", "public function items()\n\t{\n\t\tif( ! is_null($this->menu))\n\t\t{\n\t\t\tforeach($this->items as $item)\n\t\t\t{\n\t\t\t\t$this->menu->filter($item);\n\t\t\t}\n\t\t}\n\n\t\treturn $this->items;\n\t}", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "public function getMenu();", "public function getItems()\n {\n //$urlManager = Yii::$app->urlManager->createUrl();\n $menuItems = [\n 'items' => $this->prepareRawTree()->prepareHasChilds()->getWidgetFormatedArray(),\n 'options' => [\n 'id' => 'left-menu',\n 'class' => 'nav nav-sidebar sortable'\n ],\n 'linkTemplate' => '<a href=\"{url}\">{label_prefix}{label}{label_postfix}</a>',\n 'submenuTemplate' => \"\\n<ul class='sortable nav nav-{level}-level'>\\n{items}\\n</ul>\\n\",\n ];\n //print_r($menuItems);\n return $menuItems;\n }", "public function getMenuItems()\n {\n return $this->adminMenu->all();\n }", "public static function menus()\n {\n return [];\n }", "public function getMenuItems()\n\t{\n\t\treturn Settings_Vtiger_MenuItem_Model::getAll($this->getId());\n\t}", "private function getMenuItems()\n {\n $menu = $this->getDoctrine()->getRepository('XvolutionsAdminBundle:Menu')->findBy([], array('position' => 'ASC'));\n $menuItems = null;\n foreach ($menu as $item) {\n $menuItems[$item->getPage()->getId()] = ['id' => $item->getPage()->getId(), 'title' => $item->getPage()->getTitle()];\n }\n\n return $menuItems;\n }", "function get_menu() {\n return wp_get_nav_menu_items(9);\n }", "protected function getMenuItems()\n {\n return $this->getService('config')->get()['menu']['admin'];\n }", "function getMenuEntries()\n\t{\n\t\tglobal $rbacsystem, $lng, $tree, $ilUser, $ilSetting;\n\n\t\t// no menu during online tests\n\t\tif ($_SESSION[\"adn_online_test\"])\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\n\t\t$mm_tpl = new ilTemplate(\"tpl.adn_main_menu.html\", true, true, \"Services/ADN/UI\");\n\n\t\tforeach ($this->getAllMenuItems() as $menu => $items)\n\t\t{\n\t\t\t$this->renderSubMenu($mm_tpl, $menu);\n\t\t}\n\t\treturn $mm_tpl->get();\n\n\n\n\t\t$tpl->setCurrentBlock(\"cust_menu\");\n\t\t$tpl->setVariable(\"TXT_CUSTOM\",\n\t\t\tlfCustomMenu::lookupTitle(\"it\", $menu[\"id\"], $ilUser->getLanguage(), true));\n\t\t$tpl->setVariable(\"MM_CLASS\", \"MMInactive\");\n\n\t\tif (is_file(\"./templates/default/images/mm_down_arrow.png\"))\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.png\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.gif\"));\n\t\t}\n\t\t$tpl->setVariable(\"CUSTOM_CONT_OV\", $gl->getHTML());\n\t\t$tpl->setVariable(\"MM_ID\", $menu[\"id\"]);\n\t\t$tpl->parseCurrentBlock();\n\t\t$tpl->setCurrentBlock(\"c_item\");\n\t\t$tpl->parseCurrentBlock();\n\n\t}", "public static function menuItems()\n {\n return [\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Users'), 'url' => ['/user-management/user/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Roles'), 'url' => ['/user-management/role/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permissions'), 'url' => ['/user-management/permission/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permission groups'), 'url' => ['/user-management/auth-item-group/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Visit log'), 'url' => ['/user-management/user-visit-log/index']],\n ];\n }", "public function menuItems()\n\t{\n\t\treturn array(\n array('label'=>$this->labelMenu!==null?$this->labelMenu:Yii::t('app','Generator'), 'icon'=>'fa fa-code', 'url'=>'#','items'=>$this->getMyselfMenu(),'visible'=>Yii::app()->getModule('users')->check('root')),\n );\n\t}", "public function getMenuItems()\n {\n $sql = \"\n SELECT\n menu.uid,\n parent_uid,\n sort_order,\n nofollow,\n target,\n class,\n label,\n uri_uid,\n uri,\n menu.archived,\n menu.archived_datetime\n FROM menu\n LEFT JOIN uri\n ON uri.uid = menu.uri_uid\n WHERE menu.archived = '0'\n AND (uri.archived = '0' OR uri.archived IS NULL)\n \";\n\n $sql .= \"\n ORDER BY sort_order;\n \";\n\n $db = new Query($sql);\n $results = $db->fetchAllAssoc();\n\n return $results;\n }", "public function getMenus()\n\t{\n\n\t}", "public function getMenuItems() {\n\n $url = $this->urlHelper;\n $items = [];\n\n //Links Visible always to everyone logged in or not.\n //default Home page - no login required. \n\n /* $items[] = [\n 'id' => 'home',\n 'label' => 'Home',\n 'link' => $url('home')\n ]; */\n\n //add links here for pages that will be visible for all users logged-in or not.\n //you must adjust User\\Module.php (~line 85) onDispatch method to ignore calls for \n //the associated Controller and action or you will end up with an infinite loop.\n /*\n $items[] = [\n 'id' => 'about',\n 'label' => 'About',\n 'link' => $url('about')\n ];\n */\n\n $user = $this->authManager->getLoggedInUser();\n\n //BEGIN Authentication/Rendering Logic\n // Display \"Login\" menu item for not authorized user only. On the other hand,\n // display \"Admin\" and \"Logout\" menu items only for authorized users and any other links \n // that should be visible by logged-in users.\n if (!$user) {\n\n $items[] = [\n 'id' => 'login',\n 'label' => 'Sign in',\n 'link' => $url('login'),\n 'float' => 'right'\n ];\n } else {\n\n //render Customers link for all users with sales_attr_id value in users table\n if (!empty($user->getSales_attr_id())) {\n $items[] = [\n 'id' => 'customers',\n 'label' => 'Customers',\n 'data-ffm-salesperson' => $user->getFullName(),\n 'float' => 'static',\n 'link' => $url('customer', ['action' => 'view', 'id' => $user->getSales_attr_id()])\n ];\n }\n //only display admin drop down for admin users.\n $isAdmin = $this->authManager->isAdmin();\n if ($isAdmin) {\n $items[] = [\n 'id' => 'admin',\n 'label' => '<i class=\"ion-gear-a\"></i>',\n 'float' => 'right',\n 'dropdown' => [\n [\n 'id' => 'users',\n 'label' => 'Manage Users',\n 'link' => $url('users')\n ]\n ]\n ];\n }\n\n $settingsDropDownManageAccount = [\n 'id' => 'manage_account',\n 'label' => 'Manage Account',\n 'link' => $url('users', ['action' => 'edit', 'id' => $user->getId()])\n ];\n\n $settingsDropDownViewAccount = [\n 'id' => 'view_account',\n 'label' => 'View Account',\n 'link' => $url('application', ['action' => 'settings'])\n ];\n\n $settingsDropDownLogout = [\n 'id' => 'logout',\n 'label' => 'Logout',\n 'link' => $url('logout')\n ];\n\n $settingsDropDown = [];\n\n //only add the Manage Account link for Admins.\n if ($isAdmin) {\n $settingsDropDown[] = $settingsDropDownManageAccount;\n }\n\n $settingsDropDown[] = $settingsDropDownViewAccount;\n\n $settingsDropDown[] = $settingsDropDownLogout;\n\n $items[] = [\n 'id' => 'settings',\n 'label' => '<i class=\"ion-person\"></i>' . $user->getUsername(),\n 'float' => 'right',\n 'dropdown' => $settingsDropDown\n ];\n\n $loggedInItems = $this->getLoggedInItems();\n\n if ($loggedInItems)\n array_merge($items, $loggedInItems);\n\n // add items to right of settings in top right corner only for logged-in users here\n //Show Salespeople link only to Admin users\n if ($isAdmin) {\n\n $items[] = [\n 'id' => 'salespeople',\n 'label' => 'Salespeople',\n 'float' => 'static',\n 'link' => $url('salespeople', ['action' => 'index']),\n ];\n }\n }\n\n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$sql = \"SELECT * FROM mod_menu\";\n\t\t$query = \\SimplCMS::$app->getDbConnection()->query($sql);\n\t\treturn $query->fetchAll( \\PDO::FETCH_ASSOC );\t\t\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "public function items()\n {\n return $this\n ->hasMany('\\Pageblok\\Menus\\Models\\MenuItem', 'menu_ref')\n ->where('published', true)\n ->orderBy('priority', 'ASC');\n }", "public static function &getItems()\n\t{\n\t\tstatic $items;\n\n\t\t// Get the menu items for this component.\n\t\tif (!isset($items)) {\n\t\t\t// Include the site app in case we are loading this from the admin.\n\t\t\trequire_once JPATH_SITE.'/includes/application.php';\n\n\t\t\t$app\t= JFactory::getApplication();\n\t\t\t$menu\t= $app->getMenu();\n\t\t\t$com\t= JComponentHelper::getComponent('com_users');\n\t\t\t$items\t= $menu->getItems('component_id', $com->id);\n\n\t\t\t// If no items found, set to empty array.\n\t\t\tif (!$items) {\n\t\t\t\t$items = array();\n\t\t\t}\n\t\t}\n\n\t\treturn $items;\n\t}", "public static function getMenuItems()\n {\n // Will be handled in XML in future (or/and with the Joomla native menus)\n // -> give your opinion on j-cook.pro/forum\n\n $items = array();\n\n $items['admin.countries.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_COUNTRIES',\n 'view' => 'countries',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_countries'\n );\n\n $items['admin.regions.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_REGIONS',\n 'view' => 'regions',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_regions'\n );\n\n $items['admin.provinces.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_PROVINCES',\n 'view' => 'provinces',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_provinces'\n );\n\n $items['admin.subscriptionplans.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_SUBSCRIPTIONPLANS',\n 'view' => 'subscriptionplans',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_subscriptionplans'\n );\n\n $items['admin.categories.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CATEGORIES',\n 'view' => 'categories',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_categories'\n );\n\n $items['admin.typedocuments.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_TYPEDOCUMENTS',\n 'view' => 'typedocuments',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_typedocuments'\n );\n\n $items['admin.documents.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_DOCUMENTS',\n 'view' => 'documents',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_documents'\n );\n\n $items['admin.reservations.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_RESERVATIONS',\n 'view' => 'reservations',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_reservations'\n );\n\n $items['admin.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n $items['site.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n return $items;\n }", "function wp_get_nav_menu_items($items, $menu, $args)\n {\n }", "public function index()\n {\n return $this->menu->all();\n }", "abstract public function getMenuData();", "public function getUserMenu() {\n $event = new BuildUserMenuEvent();\n $this->trigger(self::EVENT_BUILD_USER_MENU, $event);\n $menu = [];\n foreach ($event->items as $block => $items) {\n foreach ($items as $item) {\n $menu[] = $item;\n }\n }\n return $menu;\n }", "public static function menus(): array\n {\n return [];\n }", "function &getMenus() {\n\t\t$lines = explode(\"\\n\", $this->menus);\n\n\t\t$menus = array();\n\t\tforeach( $lines as $line ) {\n\t\t\tif ($line) {\n\t\t\t\tlist( $menutype, $ordering, $show, $showXML, $priority, $changefreq ) = explode(',', $line);\n\t\t\t\t$info = explode(',', $line);\n\t\t\t\t$menu = new stdclass;\n\t\t\t\t$menu->menutype \t= @$info[0];\n\t\t\t\t$menu->ordering \t= @$info[1];\n\t\t\t\t$menu->show \t\t= @$info[2];\n\t\t\t\t$menu->showXML \t= @$info[3];\n\t\t\t\t$menu->priority \t= (@$info[4]? $info[4] : '0.5');\n\t\t\t\t$menu->changefreq \t= (@$info[5]? $info[5] : 'weekly');\n\t\t\t\t$menu->module \t\t= (@$info[6]? $info[6] : 'mod_mainmenu');\n\t\t\t\t$menus[$menutype] \t= $menu;\n\t\t\t}\n\t\t}\n\t\treturn $menus;\n\t}", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "public function getMenus()\n\t{\n\t\treturn $this->menus;\n\t}", "public function get(){\n\t\t\t\n\t\t\t$query=\"SELECT menuItem FROM menuModel\";\n\t\t\t$results=$this->db()->query($query);\n\t\t\t\n\t\t\t// echo\"<pre>\";\n\t\t\t// var_dump($results);\n\t\t\t\n\t\t\tforeach($results as $res){\n\t\t\t\t$menu_array[]=$res;\n\t\t\t}\n\t\t\t\n\t\t\treturn $menu_array;\n\t\t\t\n\t\t}", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function menuItems()\n {\n return array(\n array('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('#'), 'items'=>array(\n \n // array('label'=>Yii::t('app','Home Información'), 'icon'=>'fa fa-star-half-o', 'url'=>array('/'.$this->id.'/info/')),\n // array('label'=>Yii::t('app','Beneficios'), 'icon'=>'fa fa-rocket', 'url'=>array('/'.$this->id.'/features/admin')),\n \n \tarray('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('/'.$this->id.'/header/admin')),\n\n \tarray('label'=>Yii::t('app','Términos y condiciones'), 'icon'=>'fa fa-gavel', 'url'=>array('/'.$this->id.'/conditions/')),\n \tarray('label'=>Yii::t('app','Config'), 'icon'=>'fa fa-cog', 'url'=>array('/'.$this->id.'/config/')),\n \n \n )),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('#'), 'items'=>array(\n \n array('label'=>Yii::t('app','Categorías'), 'icon'=>'fa fa-list-ol', 'url'=>array('/'.$this->id.'/categories/admin')),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('/'.$this->id.'/items/admin')),\n \t// array('label'=>Yii::t('app','Facilitadores'), 'icon'=>'fa fa-graduation-cap', 'url'=>array('/'.$this->id.'/facilitador/admin')),\n \n )),\n );\n }", "public function menu_get_names()\n {\n return menu_get_names();\n }", "public function getItems(){\n\t\treturn $this->_makeCall('items?');\n\t}", "public static function getMenus()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('a.*, SUM(b.home) AS home')\n\t\t\t->from('#__menu_types AS a')\n\t\t\t->join('LEFT', '#__menu AS b ON b.menutype = a.menutype AND b.home != 0')\n\t\t\t->select('b.language')\n\t\t\t->join('LEFT', '#__languages AS l ON l.lang_code = language')\n\t\t\t->select('l.image')\n\t\t\t->select('l.sef')\n\t\t\t->select('l.title_native')\n\t\t\t->where('(b.client_id = 0 OR b.client_id IS NULL)');\n\n\t\t// Sqlsrv change\n\t\t$query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$result = $db->loadObjectList();\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$result = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function getTopmenuItems()\n {\n $items = array();\n\n if (APP_User::isBWLoggedIn()) {\n $username = isset($_SESSION['Username']) ? $_SESSION['Username'] : '';\n $items[] = array('profile', 'members/'.$username, $username, true);\n }\n // $items[] = array('searchmembers', 'searchmembers/index', 'FindMembers');\n // $items[] = array('forums', 'forums', 'Community');\n // $items[] = array('groups', 'bw/groups.php', 'Groups');\n // $items[] = array('gallery', 'gallery', 'Gallery');\n $items[] = array('getanswers', 'about', 'GetAnswers');\n $items[] = array('findhosts', 'findmembers', 'FindHosts');\n $items[] = array('explore', 'explore', 'Explore');\n if (APP_User::isBWLoggedIn()) {\n $items[] = array('messages', 'messages', 'Messages');\n }\n \n return $items;\n }", "function menuGetPrimaryItems() {\n $items = array();\n $items[] = array('title' => 'Home', 'url' => '/');\n $items[] = array('title' => 'Blog', 'url' => '/Blog');\n $items[] = array('title' => 'Archive', 'url' => '/Archive');\n\n return menuPrepareItems($items);\n}", "public function getMenus(){\n\n }", "public function getItems()\n\t{\n\t\t$items = parent::getItems();\n\t\t\n\n\t\treturn $items;\n\t}", "public function obtenerElementosMenu();", "public function getSubItems()\n {\n return $this->getDataValue($this->getSubmenuName());\n }", "public abstract function getMenuData(): array;", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "public function getCreateMenuItems() {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getCreateMenuItems();\n\n foreach ($menuItems as $moduleId => $menu) {\n foreach ($modules as $module) {\n\n // Check the presence of the module identifier among the available packages\n if ($moduleId == $module['name']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n // Add items for create menu in Dashboard\n if (isset($menu['label']) && isset($menu['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $menu['label']),\n 'url' => $menu['url']\n ];\n } else if (is_array($menu)) {\n foreach ($menu as $item) {\n if (isset($item['label']) && isset($item['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $item['label']),\n 'url' => $item['url']\n ];\n }\n }\n }\n }\n }\n }\n }\n\n return $items;\n }", "public function getMenuItems()\n\t{\n\t\t$items = array();\n\t\tforeach ($this->history as $action) {\n\t\t\t$items[] = array('label' => ucfirst($action),\n\t\t\t\t'url' => array($action,\n\t\t\t\t\t'session_id' => $this->session->session_id));\n\t\t}\n\t\treturn $items;\n\t}", "public function get_list_of_menus(){\n\n $items = array();\n\n $args = array(\n 'post_type' => 'erm_menu',\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'post_status' => 'publish',\n 'posts_per_page' => -1 \n );\n\n $menu_posts = get_posts($args);\n\n if ( !empty($menu_posts) ) {\n\n foreach ( $menu_posts as $menu_post ){\n $items[] = array(\n 'title' => $menu_post -> post_title,\n 'url' => $menu_post -> post_name\n );\n }\n\n }\n else{\n return new WP_Error( 'no_menus', 'No menus found', array( 'status' => 404 ) );\n }\n\n return $items;\n\n }", "public function menu()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'name' => 'users',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => TRUE,\n\t\t\t\t'menu' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'foo',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => FALSE,\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'bar',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => TRUE,\n\t\t\t\t\t\t'menu' => array(\n\t\t\t\t\t\t\t'name' => 'this is a third submenu',\n\t\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t\t'submenu' => FALSE,\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\tarray(\n\t\t\t\t'name' => 'foobar',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => FALSE,\n\t\t\t),\n\t\t);\n\t}", "public function menu() {\n\t\treturn $this->getteams();\n\t}", "public static function getAllMenu()\n {\n $rows = Yii::$app->cache->get(\"BackendMenu:all\");\n if (false === is_array($rows)) {\n $rows = static::find()\n ->orderBy('parent_id ASC, sort ASC')\n ->asArray()\n ->all();\n Yii::$app->cache->set(\n \"BackendMenu:all\",\n $rows,\n 86400,\n new TagDependency([\n 'tags' => [\n ActiveRecordHelper::getCommonTag(static::className()),\n ],\n ])\n );\n }\n // rebuild rows to tree $all_menu_items\n $all_menu_items = Tree::rowsArrayToMenuTree($rows, 0, 0, false);\n\n return $all_menu_items;\n }", "function getItems();", "function getItems();", "protected function getItems()\r\n\t{\r\n\t\treturn $this->_items;\r\n\t}", "function getItems(){\r\n\t\t\treturn $this->items;\r\n\t\t}", "public function getAllMenuItems()\n\t{\n\t\t$out = array();\n\t\n\t\t$sql = \"SELECT\n\t\t\t\t\t`menu`.`link_id`,\n\t\t\t\t\t`menu_tree`.`parent_id`,\n\t\t\t\t\t`menu`.`redirect_url`,\n\t\t\t\t\t`menu_tree`.`sequence_no`,\n\t\t\t\t\t`menu`.`title_menu`,\n\t\t\t\t\t`menu`.`title_page`,\n\t\t\t\t\t`menu`.`template_name`,\n\t\t\t\t\t`menu`.`module_id`,\n\t\t\t\t\t`menu`.`security_level_id`,\n\t\t\t\t\t`menu`.`group_id`,\n\t\t\t\t\t`menu_tree`.`main_link`,\n\t\t\t\t\t`menu_tree`.`quick_link`,\n\t\t\t\t\t`menu_tree`.`bottom_link`,\n\t\t\t\t\t`menu`.`sitemap`,\n\t\t\t\t\t`menu`.`status`\n\t\t\t\tFROM\n\t\t\t\t\t`menu_tree`\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t`menu`\n\t\t\t\tON\n\t\t\t\t\t`menu`.`link_id` = `menu_tree`.`link_id`\n\t\t\t\tORDER BY \n\t\t\t\t\t`menu_tree`.`parent_id`,`menu_tree`.`sequence_no`\n\t\t\t\t\";\n\t\t$stmt = $this->db->prepare($sql);\n\t\t$stmt->bind_result($link_id,$parent_id,$redirect_url,$sequence_no,$title_menu,$title_page,$template_name,$module_id,$security_level_id,$group_id,$main_link,$quick_link,$bottom_link,$sitemap,$status);\n\n\t\t$stmt->execute();\n\t\twhile($stmt->fetch())\n\t\t{\n\t\t\t$out[] = array(\n\t\t\t\t'link_id' => $link_id,\n\t\t\t\t'parent_id' => $parent_id,\n\t\t\t\t'redirect_url' => $redirect_url,\n\t\t\t\t'sequence_no' => $sequence_no,\n\t\t\t\t'title_menu' => $title_menu,\n\t\t\t\t'title_page' => $title_page,\n\t\t\t\t'template_name' => $template_name,\n\t\t\t\t'module_id' => $module_id,\n\t\t\t\t'security_level_id' => $security_level_id,\n\t\t\t\t'group_id' => $group_id,\n\t\t\t\t'main_link' => $main_link,\n\t\t\t\t'quick_link' => $quick_link,\n\t\t\t\t'bottom_link' => $bottom_link,\n\t\t\t\t'sitemap' => $sitemap,\n\t\t\t\t'status' => $status\n\t\t\t);\n\t\t}\n\t\t$stmt->close();\n\t\t\n\t\treturn $out;\n\t}", "protected function buildMenuArray() {}", "public function getSidebarMenuItems()\n {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getMenuItems();\n uasort($menuItems, array($this, 'sortByOrder'));\n\n foreach ($menuItems as $menu) {\n\n $subitems = [];\n $navitems = [];\n $disabled = false;\n\n // First, check if the menu item points to a specific module\n if (isset($menu['item'])) {\n\n // Check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($menu['item'] == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n\n // Call Module::dashboardNavItems() to get its native menu\n $navitems = [];\n $moduleNavitems = $module->dashboardNavItems();\n\n\t if (isset($moduleNavitems['items'])) {\n\t\t $navitems['items'] = $moduleNavitems['items'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n\t\t\t\t\t\t\t\t\tforeach ($moduleNavitems as $moduleNavitem) {\n\t\t\t\t\t\t\t\t\t\tif (isset($moduleNavitem['label'])) {\n\t\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitem;\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} else {\n\t\t\t\t\t\t\t\t\tif (isset($moduleNavitems['label'])) {\n\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitems;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n // Check if the received menu item contains a direct link\n if (isset($navitems['url']))\n $menu['url'] = $navitems['url'];\n\n // Check if the received menu item contains sub-items\n if (!empty($navitems['items'])) {\n $menu['items'] = $navitems['items'];\n }\n\n unset($navitems);\n }\n }\n }\n }\n\n\t // Check if the menu item has nested sub-items\n\t\t\tif (isset($menu['items']) && is_array($menu['items'])) {\n\n // If the nested item is not represented by an array, then this is the module identifier,\n // of the module in which you need to call Module::dashboardNavItems() to get its native menu\n if (!is_array($menu['items'][0])) {\n $found = 0;\n foreach ($menu['items'] as $moduleId) {\n\n // add custom link for dashboard page\n if (is_array($moduleId)) {\n if (\n array_key_exists('label', $moduleId) &&\n array_key_exists('icon', $moduleId) &&\n array_key_exists('url', $moduleId)\n ) {\n $navitems[] = $moduleId;\n $found++;\n }\n } else {\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n $found++;\n }\n }\n }\n }\n }\n\n // None of the modules were found\n if ($found == 0) {\n $disabled = true;\n } else {\n foreach ($navitems as $navitem) {\n if ($navitem['icon'])\n $navitem['label'] = ($navitem['icon']) ? '<span class=\"icon\"><i class=\"' . $navitem['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $navitem['label']) : Yii::t('app/modules/admin', $navitem['label']);\n }\n }\n\n } else {\n\n // It means a nested array and it already contains submenus of the menu\n $submenus = $menu['items'];\n uasort($submenus, array($this, 'sortByOrder'));\n foreach ($submenus as $submenu) {\n \n $navitems = [];\n if (isset($submenu['items']) && is_array($submenu['items'])) {\n foreach ($submenu['items'] as $moduleId) {\n\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n }\n }\n }\n }\n }\n\n // Collect the final sub-menu item\n $subitems[] = [\n 'label' => ($submenu['icon']) ? '<span class=\"icon\"><i class=\"' . $submenu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $submenu['label']) : Yii::t('app/modules/admin', $submenu['label']),\n 'url' => ($submenu['url']) ? Url::to($submenu['url']) : '#',\n 'items' => ($navitems) ? $navitems : false\n ];\n unset($navitems);\n }\n }\n } else {\n if (!isset($menu['url']) && !isset($menu['item']))\n $disabled = true;\n }\n\n // Check if the icon is installed for this menu item\n if (isset($navitems)) {\n if (count($navitems) > 0) {\n foreach ($navitems as $nav => $item) {\n if ($item['icon']) {\n $navitems[$nav]['label'] = ($item['icon']) ? '<span class=\"icon\"><i class=\"' . $item['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $item['label']) : Yii::t('app/modules/admin', $item['label']);\n }\n }\n }\n }\n\n // Collect the final parent menu item\n $items[] = [\n 'label' => ($menu['icon']) ? '<span class=\"icon\"><i class=\"' . $menu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $menu['label']) : Yii::t('app/modules/admin', $menu['label']),\n 'url' => isset($menu['url']) ? Url::to($menu['url']) : '#',\n 'items' => ($subitems) ? $subitems : (($navitems) ? $navitems : false),\n 'active' => false,\n 'options' => ['class' => ($disabled) ? 'disabled' : ''],\n ];\n }\n\n return $items;\n }", "public static function getMenuItems($menutype)\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Prepare the query.\n\t\t$query->select('m.*')\n\t\t\t->from('#__menu AS m')\n\t\t\t->where('m.menutype = ' . $db->q($menutype))\n\t\t\t->where('m.client_id = 1')\n\t\t\t->where('m.published = 1')\n\t\t\t->where('m.id > 1');\n\n\t\t// Filter on the enabled states.\n\t\t$query->select('e.element')\n\t\t\t->join('LEFT', '#__extensions AS e ON m.component_id = e.extension_id')\n\t\t\t->where('(e.enabled = 1 OR e.enabled IS NULL)');\n\n\t\t// Order by lft.\n\t\t$query->order('m.lft');\n\n\t\t$db->setQuery($query);\n\n\t\t// Component list\n\t\ttry\n\t\t{\n\t\t\t$menuItems = $db->loadObjectList();\n\n\t\t\tforeach ($menuItems as &$menuitem)\n\t\t\t{\n\t\t\t\t$menuitem->params = new Registry($menuitem->params);\n\t\t\t}\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$menuItems = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $menuItems;\n\t}", "function items()\n\t{\n\t\treturn $this->_items;\n\t}", "public function prepareMenu()\n {\n if (empty($this->list)) {\n // Load the menu based on the module's parameters\n $this->list = \\Admin\\Models\\Menus::instance()->emptyState()->setState('filter.root', false)->setState('filter.published', true)->setState('filter.tree', $this->mapper->{'details.selected-menu'})->setState('order_clause', array( 'tree'=> 1, 'lft' => 1 ))->getList();\n }\n \n if (empty($this->list)) {\n return array();\n }\n\n $items = $this->list;\n \n $this->items = $items;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function getToolbarItems();", "public static function returnMenu() {\n return array(\n array(\n 'title' => 'Eve - лица',\n 'link' => self::$group . '/' . 'faces',\n 'class' => 'fa-list-alt',\n 'permit' => 'view',\n ),\n );\n }", "public function getMenusListAttribute()\n {\n return Menu::orderBy('name')->get();\n }", "public function items()\n\t{\n\t\treturn $this->items;\n\t}", "public function getMenuItems($parameters)\r\n {\r\n $user =& JFactory::getUser();\r\n $db =& JFactory::getDBO();\r\n \r\n $pastor = getPastor($user->id);\r\n $num_requests = getRequests($pastor->id);\r\n $items = '';\r\n \r\n if(!$user->guest) {\r\n if($parameters->get('showDivineCall') && $num_requests) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call <span style=\"color: red; background-color: #fff; padding: 1px 9px 2px 9px; border-radius: 9px; -moz-border-radius: 9px; -webkit-border-radius: 9px;\">'. $num_requests . '</span> </a>';\r\n }\r\n elseif($parameters->get('showDivineCall')) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call</a>';\r\n } \r\n }\r\n \r\n return $items;\r\n }", "public function getQueryMenus();", "public function index()\n {\n // get all Menus\n $Menus = Menu::all();\n\n return $Menus;\n }", "function get_menu_items($title) {\n\t$items['home.php'] = \"Home\";\n\t$items['play_trivia.php'] = \"Play Trivia\";\n\t$items['view_leaders.php'] = \"View Leader Board\";\n\t$items['rank_question.php'] = \"Rank Questions\";\n\t$items['insert_question.php'] = \"Insert Question\";\n\t\n\tif ($_SESSION['admin']) {\t\n\t\t$items['insert_user.php'] = \"Delete User\";\n\t\t$items['delete_question.php'] = \"Delete Question\";\n\t}\t\t\n\t$items['logout.php'] = \"Logout\";\n\t\t\n\tforeach ($items as $key=>$value) {\n\t\t$active = '';\n\t\tif ($value==$title) $active = \"active\";\n\t\t$menu_items .= '\n\t\t <li class=\"nav-item\">\n\t\t <a class=\"nav-link '.$active.'\" href=\"'.$key.'\">'.$value.'</a>\n\t\t </li>\n\t\t';\n\t}\n\treturn $menu_items;\n}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function getItems()\n {\n $this->loadItems();\n return $this->items;\n }", "function api_list_menus() {\n\t\t$menus = array();\n\t\tforeach ( get_nav_menu_locations() as $menu_slug => $menu_id ) {\n\n\t\t\t$menu = $menu_id?self::get_menu_object($menu_id):false;\n\t\t\t$menus[ $menu_slug ] = $menu;\n\t\t}\n\n\t\treturn $menus;\n\t}", "public function allmenus() {\n //$this->db->order_by('serialid');\n $query = $this->db->get('menu');\n return $query->result();\n }", "public function menuItems($items)\n {\n $result = '';\n\n foreach ($items as $key => $options) {\n $class = '';\n $icon = 'fa fa-menu fa-chevron-right';\n $url = $options;\n $linkOptions = ['escape' => false];\n\n if (is_array($options)) {\n $icon = Hash::get($options, 'icon', $icon);\n $url = Hash::get($options, 'url', '#');\n $class = Hash::get($options, 'class', '');\n $title = Hash::get($options, 'title', '');\n\n $linkOptions = array_merge($linkOptions, Hash::get($options, 'options', []));\n } else {\n $title = $key;\n }\n\n $link = $this->Html->link(\n $this->Html->tag('i', '', ['class' => $icon]) . __($title),\n $url,\n $linkOptions\n );\n\n $result .= $this->Html->tag('li', $link, ['class' => $class]);\n }\n\n return $result;\n }", "public function getItems()\n {\n return $this['ITEMS'];\n }" ]
[ "0.87782925", "0.81344724", "0.8037758", "0.7784811", "0.7748574", "0.7646989", "0.75717956", "0.7565426", "0.7541824", "0.7490188", "0.7451708", "0.7446263", "0.74343795", "0.7415992", "0.73516417", "0.7320214", "0.72796005", "0.72759366", "0.72671556", "0.7243029", "0.7238988", "0.7209053", "0.7202965", "0.71957076", "0.71637887", "0.7154334", "0.7094945", "0.7053935", "0.7033596", "0.69121045", "0.6894294", "0.6881728", "0.68814373", "0.687537", "0.6873051", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.682361", "0.68235284", "0.6775496", "0.67712617", "0.67711574", "0.6770207", "0.67534894", "0.67530596", "0.673972", "0.6729655", "0.67261165", "0.6723462", "0.67135835", "0.66929233", "0.6681463", "0.6658691", "0.6652967", "0.6644786", "0.6643305", "0.6643305", "0.6639776", "0.6633718", "0.6626841", "0.66221863", "0.66213095", "0.6597618", "0.65726775", "0.65626687", "0.65560645", "0.65560645", "0.65533435", "0.6531947", "0.6531947", "0.6531947", "0.6525259", "0.65199465", "0.6519334", "0.65192", "0.6513577", "0.6512954", "0.6502631", "0.6487127", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.6486194", "0.6484842", "0.6480772", "0.6477834", "0.6472128" ]
0.0
-1
Get the items for the menu.
public function matchPlayers(): HasMany { return $this->hasMany(PsMatchPlayer::class, 'champion_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_items() {\n return $this->menuitems;\n }", "function getMenuItems()\n {\n }", "public function getMenuItems() {\t\t\t\t\t\r\n\t\treturn $this->menuItems;\r\n\t}", "public function getMenuItems(){\n $items = ItemMenu::getBy(array('_id' => array('$in' => $this->_menuItems)));\n return $items;\n }", "public function getMenus() {}", "public function items()\n\t{\n\t\tif( ! is_null($this->menu))\n\t\t{\n\t\t\tforeach($this->items as $item)\n\t\t\t{\n\t\t\t\t$this->menu->filter($item);\n\t\t\t}\n\t\t}\n\n\t\treturn $this->items;\n\t}", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "public function getMenu();", "public function getItems()\n {\n //$urlManager = Yii::$app->urlManager->createUrl();\n $menuItems = [\n 'items' => $this->prepareRawTree()->prepareHasChilds()->getWidgetFormatedArray(),\n 'options' => [\n 'id' => 'left-menu',\n 'class' => 'nav nav-sidebar sortable'\n ],\n 'linkTemplate' => '<a href=\"{url}\">{label_prefix}{label}{label_postfix}</a>',\n 'submenuTemplate' => \"\\n<ul class='sortable nav nav-{level}-level'>\\n{items}\\n</ul>\\n\",\n ];\n //print_r($menuItems);\n return $menuItems;\n }", "public function getMenuItems()\n {\n return $this->adminMenu->all();\n }", "public static function menus()\n {\n return [];\n }", "public function getMenuItems()\n\t{\n\t\treturn Settings_Vtiger_MenuItem_Model::getAll($this->getId());\n\t}", "private function getMenuItems()\n {\n $menu = $this->getDoctrine()->getRepository('XvolutionsAdminBundle:Menu')->findBy([], array('position' => 'ASC'));\n $menuItems = null;\n foreach ($menu as $item) {\n $menuItems[$item->getPage()->getId()] = ['id' => $item->getPage()->getId(), 'title' => $item->getPage()->getTitle()];\n }\n\n return $menuItems;\n }", "function get_menu() {\n return wp_get_nav_menu_items(9);\n }", "protected function getMenuItems()\n {\n return $this->getService('config')->get()['menu']['admin'];\n }", "function getMenuEntries()\n\t{\n\t\tglobal $rbacsystem, $lng, $tree, $ilUser, $ilSetting;\n\n\t\t// no menu during online tests\n\t\tif ($_SESSION[\"adn_online_test\"])\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\n\t\t$mm_tpl = new ilTemplate(\"tpl.adn_main_menu.html\", true, true, \"Services/ADN/UI\");\n\n\t\tforeach ($this->getAllMenuItems() as $menu => $items)\n\t\t{\n\t\t\t$this->renderSubMenu($mm_tpl, $menu);\n\t\t}\n\t\treturn $mm_tpl->get();\n\n\n\n\t\t$tpl->setCurrentBlock(\"cust_menu\");\n\t\t$tpl->setVariable(\"TXT_CUSTOM\",\n\t\t\tlfCustomMenu::lookupTitle(\"it\", $menu[\"id\"], $ilUser->getLanguage(), true));\n\t\t$tpl->setVariable(\"MM_CLASS\", \"MMInactive\");\n\n\t\tif (is_file(\"./templates/default/images/mm_down_arrow.png\"))\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.png\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.gif\"));\n\t\t}\n\t\t$tpl->setVariable(\"CUSTOM_CONT_OV\", $gl->getHTML());\n\t\t$tpl->setVariable(\"MM_ID\", $menu[\"id\"]);\n\t\t$tpl->parseCurrentBlock();\n\t\t$tpl->setCurrentBlock(\"c_item\");\n\t\t$tpl->parseCurrentBlock();\n\n\t}", "public static function menuItems()\n {\n return [\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Users'), 'url' => ['/user-management/user/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Roles'), 'url' => ['/user-management/role/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permissions'), 'url' => ['/user-management/permission/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permission groups'), 'url' => ['/user-management/auth-item-group/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Visit log'), 'url' => ['/user-management/user-visit-log/index']],\n ];\n }", "public function menuItems()\n\t{\n\t\treturn array(\n array('label'=>$this->labelMenu!==null?$this->labelMenu:Yii::t('app','Generator'), 'icon'=>'fa fa-code', 'url'=>'#','items'=>$this->getMyselfMenu(),'visible'=>Yii::app()->getModule('users')->check('root')),\n );\n\t}", "public function getMenuItems()\n {\n $sql = \"\n SELECT\n menu.uid,\n parent_uid,\n sort_order,\n nofollow,\n target,\n class,\n label,\n uri_uid,\n uri,\n menu.archived,\n menu.archived_datetime\n FROM menu\n LEFT JOIN uri\n ON uri.uid = menu.uri_uid\n WHERE menu.archived = '0'\n AND (uri.archived = '0' OR uri.archived IS NULL)\n \";\n\n $sql .= \"\n ORDER BY sort_order;\n \";\n\n $db = new Query($sql);\n $results = $db->fetchAllAssoc();\n\n return $results;\n }", "public function getMenus()\n\t{\n\n\t}", "public function getMenuItems() {\n\n $url = $this->urlHelper;\n $items = [];\n\n //Links Visible always to everyone logged in or not.\n //default Home page - no login required. \n\n /* $items[] = [\n 'id' => 'home',\n 'label' => 'Home',\n 'link' => $url('home')\n ]; */\n\n //add links here for pages that will be visible for all users logged-in or not.\n //you must adjust User\\Module.php (~line 85) onDispatch method to ignore calls for \n //the associated Controller and action or you will end up with an infinite loop.\n /*\n $items[] = [\n 'id' => 'about',\n 'label' => 'About',\n 'link' => $url('about')\n ];\n */\n\n $user = $this->authManager->getLoggedInUser();\n\n //BEGIN Authentication/Rendering Logic\n // Display \"Login\" menu item for not authorized user only. On the other hand,\n // display \"Admin\" and \"Logout\" menu items only for authorized users and any other links \n // that should be visible by logged-in users.\n if (!$user) {\n\n $items[] = [\n 'id' => 'login',\n 'label' => 'Sign in',\n 'link' => $url('login'),\n 'float' => 'right'\n ];\n } else {\n\n //render Customers link for all users with sales_attr_id value in users table\n if (!empty($user->getSales_attr_id())) {\n $items[] = [\n 'id' => 'customers',\n 'label' => 'Customers',\n 'data-ffm-salesperson' => $user->getFullName(),\n 'float' => 'static',\n 'link' => $url('customer', ['action' => 'view', 'id' => $user->getSales_attr_id()])\n ];\n }\n //only display admin drop down for admin users.\n $isAdmin = $this->authManager->isAdmin();\n if ($isAdmin) {\n $items[] = [\n 'id' => 'admin',\n 'label' => '<i class=\"ion-gear-a\"></i>',\n 'float' => 'right',\n 'dropdown' => [\n [\n 'id' => 'users',\n 'label' => 'Manage Users',\n 'link' => $url('users')\n ]\n ]\n ];\n }\n\n $settingsDropDownManageAccount = [\n 'id' => 'manage_account',\n 'label' => 'Manage Account',\n 'link' => $url('users', ['action' => 'edit', 'id' => $user->getId()])\n ];\n\n $settingsDropDownViewAccount = [\n 'id' => 'view_account',\n 'label' => 'View Account',\n 'link' => $url('application', ['action' => 'settings'])\n ];\n\n $settingsDropDownLogout = [\n 'id' => 'logout',\n 'label' => 'Logout',\n 'link' => $url('logout')\n ];\n\n $settingsDropDown = [];\n\n //only add the Manage Account link for Admins.\n if ($isAdmin) {\n $settingsDropDown[] = $settingsDropDownManageAccount;\n }\n\n $settingsDropDown[] = $settingsDropDownViewAccount;\n\n $settingsDropDown[] = $settingsDropDownLogout;\n\n $items[] = [\n 'id' => 'settings',\n 'label' => '<i class=\"ion-person\"></i>' . $user->getUsername(),\n 'float' => 'right',\n 'dropdown' => $settingsDropDown\n ];\n\n $loggedInItems = $this->getLoggedInItems();\n\n if ($loggedInItems)\n array_merge($items, $loggedInItems);\n\n // add items to right of settings in top right corner only for logged-in users here\n //Show Salespeople link only to Admin users\n if ($isAdmin) {\n\n $items[] = [\n 'id' => 'salespeople',\n 'label' => 'Salespeople',\n 'float' => 'static',\n 'link' => $url('salespeople', ['action' => 'index']),\n ];\n }\n }\n\n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$sql = \"SELECT * FROM mod_menu\";\n\t\t$query = \\SimplCMS::$app->getDbConnection()->query($sql);\n\t\treturn $query->fetchAll( \\PDO::FETCH_ASSOC );\t\t\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "public function items()\n {\n return $this\n ->hasMany('\\Pageblok\\Menus\\Models\\MenuItem', 'menu_ref')\n ->where('published', true)\n ->orderBy('priority', 'ASC');\n }", "public static function &getItems()\n\t{\n\t\tstatic $items;\n\n\t\t// Get the menu items for this component.\n\t\tif (!isset($items)) {\n\t\t\t// Include the site app in case we are loading this from the admin.\n\t\t\trequire_once JPATH_SITE.'/includes/application.php';\n\n\t\t\t$app\t= JFactory::getApplication();\n\t\t\t$menu\t= $app->getMenu();\n\t\t\t$com\t= JComponentHelper::getComponent('com_users');\n\t\t\t$items\t= $menu->getItems('component_id', $com->id);\n\n\t\t\t// If no items found, set to empty array.\n\t\t\tif (!$items) {\n\t\t\t\t$items = array();\n\t\t\t}\n\t\t}\n\n\t\treturn $items;\n\t}", "public static function getMenuItems()\n {\n // Will be handled in XML in future (or/and with the Joomla native menus)\n // -> give your opinion on j-cook.pro/forum\n\n $items = array();\n\n $items['admin.countries.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_COUNTRIES',\n 'view' => 'countries',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_countries'\n );\n\n $items['admin.regions.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_REGIONS',\n 'view' => 'regions',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_regions'\n );\n\n $items['admin.provinces.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_PROVINCES',\n 'view' => 'provinces',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_provinces'\n );\n\n $items['admin.subscriptionplans.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_SUBSCRIPTIONPLANS',\n 'view' => 'subscriptionplans',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_subscriptionplans'\n );\n\n $items['admin.categories.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CATEGORIES',\n 'view' => 'categories',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_categories'\n );\n\n $items['admin.typedocuments.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_TYPEDOCUMENTS',\n 'view' => 'typedocuments',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_typedocuments'\n );\n\n $items['admin.documents.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_DOCUMENTS',\n 'view' => 'documents',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_documents'\n );\n\n $items['admin.reservations.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_RESERVATIONS',\n 'view' => 'reservations',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_reservations'\n );\n\n $items['admin.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n $items['site.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n return $items;\n }", "function wp_get_nav_menu_items($items, $menu, $args)\n {\n }", "public function index()\n {\n return $this->menu->all();\n }", "abstract public function getMenuData();", "public function getUserMenu() {\n $event = new BuildUserMenuEvent();\n $this->trigger(self::EVENT_BUILD_USER_MENU, $event);\n $menu = [];\n foreach ($event->items as $block => $items) {\n foreach ($items as $item) {\n $menu[] = $item;\n }\n }\n return $menu;\n }", "public static function menus(): array\n {\n return [];\n }", "function &getMenus() {\n\t\t$lines = explode(\"\\n\", $this->menus);\n\n\t\t$menus = array();\n\t\tforeach( $lines as $line ) {\n\t\t\tif ($line) {\n\t\t\t\tlist( $menutype, $ordering, $show, $showXML, $priority, $changefreq ) = explode(',', $line);\n\t\t\t\t$info = explode(',', $line);\n\t\t\t\t$menu = new stdclass;\n\t\t\t\t$menu->menutype \t= @$info[0];\n\t\t\t\t$menu->ordering \t= @$info[1];\n\t\t\t\t$menu->show \t\t= @$info[2];\n\t\t\t\t$menu->showXML \t= @$info[3];\n\t\t\t\t$menu->priority \t= (@$info[4]? $info[4] : '0.5');\n\t\t\t\t$menu->changefreq \t= (@$info[5]? $info[5] : 'weekly');\n\t\t\t\t$menu->module \t\t= (@$info[6]? $info[6] : 'mod_mainmenu');\n\t\t\t\t$menus[$menutype] \t= $menu;\n\t\t\t}\n\t\t}\n\t\treturn $menus;\n\t}", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "public function getMenus()\n\t{\n\t\treturn $this->menus;\n\t}", "public function get(){\n\t\t\t\n\t\t\t$query=\"SELECT menuItem FROM menuModel\";\n\t\t\t$results=$this->db()->query($query);\n\t\t\t\n\t\t\t// echo\"<pre>\";\n\t\t\t// var_dump($results);\n\t\t\t\n\t\t\tforeach($results as $res){\n\t\t\t\t$menu_array[]=$res;\n\t\t\t}\n\t\t\t\n\t\t\treturn $menu_array;\n\t\t\t\n\t\t}", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function menuItems()\n {\n return array(\n array('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('#'), 'items'=>array(\n \n // array('label'=>Yii::t('app','Home Información'), 'icon'=>'fa fa-star-half-o', 'url'=>array('/'.$this->id.'/info/')),\n // array('label'=>Yii::t('app','Beneficios'), 'icon'=>'fa fa-rocket', 'url'=>array('/'.$this->id.'/features/admin')),\n \n \tarray('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('/'.$this->id.'/header/admin')),\n\n \tarray('label'=>Yii::t('app','Términos y condiciones'), 'icon'=>'fa fa-gavel', 'url'=>array('/'.$this->id.'/conditions/')),\n \tarray('label'=>Yii::t('app','Config'), 'icon'=>'fa fa-cog', 'url'=>array('/'.$this->id.'/config/')),\n \n \n )),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('#'), 'items'=>array(\n \n array('label'=>Yii::t('app','Categorías'), 'icon'=>'fa fa-list-ol', 'url'=>array('/'.$this->id.'/categories/admin')),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('/'.$this->id.'/items/admin')),\n \t// array('label'=>Yii::t('app','Facilitadores'), 'icon'=>'fa fa-graduation-cap', 'url'=>array('/'.$this->id.'/facilitador/admin')),\n \n )),\n );\n }", "public function menu_get_names()\n {\n return menu_get_names();\n }", "public function getItems(){\n\t\treturn $this->_makeCall('items?');\n\t}", "public static function getMenus()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('a.*, SUM(b.home) AS home')\n\t\t\t->from('#__menu_types AS a')\n\t\t\t->join('LEFT', '#__menu AS b ON b.menutype = a.menutype AND b.home != 0')\n\t\t\t->select('b.language')\n\t\t\t->join('LEFT', '#__languages AS l ON l.lang_code = language')\n\t\t\t->select('l.image')\n\t\t\t->select('l.sef')\n\t\t\t->select('l.title_native')\n\t\t\t->where('(b.client_id = 0 OR b.client_id IS NULL)');\n\n\t\t// Sqlsrv change\n\t\t$query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$result = $db->loadObjectList();\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$result = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function getTopmenuItems()\n {\n $items = array();\n\n if (APP_User::isBWLoggedIn()) {\n $username = isset($_SESSION['Username']) ? $_SESSION['Username'] : '';\n $items[] = array('profile', 'members/'.$username, $username, true);\n }\n // $items[] = array('searchmembers', 'searchmembers/index', 'FindMembers');\n // $items[] = array('forums', 'forums', 'Community');\n // $items[] = array('groups', 'bw/groups.php', 'Groups');\n // $items[] = array('gallery', 'gallery', 'Gallery');\n $items[] = array('getanswers', 'about', 'GetAnswers');\n $items[] = array('findhosts', 'findmembers', 'FindHosts');\n $items[] = array('explore', 'explore', 'Explore');\n if (APP_User::isBWLoggedIn()) {\n $items[] = array('messages', 'messages', 'Messages');\n }\n \n return $items;\n }", "function menuGetPrimaryItems() {\n $items = array();\n $items[] = array('title' => 'Home', 'url' => '/');\n $items[] = array('title' => 'Blog', 'url' => '/Blog');\n $items[] = array('title' => 'Archive', 'url' => '/Archive');\n\n return menuPrepareItems($items);\n}", "public function getMenus(){\n\n }", "public function getItems()\n\t{\n\t\t$items = parent::getItems();\n\t\t\n\n\t\treturn $items;\n\t}", "public function obtenerElementosMenu();", "public function getSubItems()\n {\n return $this->getDataValue($this->getSubmenuName());\n }", "public abstract function getMenuData(): array;", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "public function getCreateMenuItems() {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getCreateMenuItems();\n\n foreach ($menuItems as $moduleId => $menu) {\n foreach ($modules as $module) {\n\n // Check the presence of the module identifier among the available packages\n if ($moduleId == $module['name']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n // Add items for create menu in Dashboard\n if (isset($menu['label']) && isset($menu['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $menu['label']),\n 'url' => $menu['url']\n ];\n } else if (is_array($menu)) {\n foreach ($menu as $item) {\n if (isset($item['label']) && isset($item['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $item['label']),\n 'url' => $item['url']\n ];\n }\n }\n }\n }\n }\n }\n }\n\n return $items;\n }", "public function getMenuItems()\n\t{\n\t\t$items = array();\n\t\tforeach ($this->history as $action) {\n\t\t\t$items[] = array('label' => ucfirst($action),\n\t\t\t\t'url' => array($action,\n\t\t\t\t\t'session_id' => $this->session->session_id));\n\t\t}\n\t\treturn $items;\n\t}", "public function get_list_of_menus(){\n\n $items = array();\n\n $args = array(\n 'post_type' => 'erm_menu',\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'post_status' => 'publish',\n 'posts_per_page' => -1 \n );\n\n $menu_posts = get_posts($args);\n\n if ( !empty($menu_posts) ) {\n\n foreach ( $menu_posts as $menu_post ){\n $items[] = array(\n 'title' => $menu_post -> post_title,\n 'url' => $menu_post -> post_name\n );\n }\n\n }\n else{\n return new WP_Error( 'no_menus', 'No menus found', array( 'status' => 404 ) );\n }\n\n return $items;\n\n }", "public function menu()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'name' => 'users',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => TRUE,\n\t\t\t\t'menu' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'foo',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => FALSE,\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'bar',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => TRUE,\n\t\t\t\t\t\t'menu' => array(\n\t\t\t\t\t\t\t'name' => 'this is a third submenu',\n\t\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t\t'submenu' => FALSE,\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\tarray(\n\t\t\t\t'name' => 'foobar',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => FALSE,\n\t\t\t),\n\t\t);\n\t}", "public function menu() {\n\t\treturn $this->getteams();\n\t}", "public static function getAllMenu()\n {\n $rows = Yii::$app->cache->get(\"BackendMenu:all\");\n if (false === is_array($rows)) {\n $rows = static::find()\n ->orderBy('parent_id ASC, sort ASC')\n ->asArray()\n ->all();\n Yii::$app->cache->set(\n \"BackendMenu:all\",\n $rows,\n 86400,\n new TagDependency([\n 'tags' => [\n ActiveRecordHelper::getCommonTag(static::className()),\n ],\n ])\n );\n }\n // rebuild rows to tree $all_menu_items\n $all_menu_items = Tree::rowsArrayToMenuTree($rows, 0, 0, false);\n\n return $all_menu_items;\n }", "function getItems();", "function getItems();", "protected function getItems()\r\n\t{\r\n\t\treturn $this->_items;\r\n\t}", "function getItems(){\r\n\t\t\treturn $this->items;\r\n\t\t}", "public function getAllMenuItems()\n\t{\n\t\t$out = array();\n\t\n\t\t$sql = \"SELECT\n\t\t\t\t\t`menu`.`link_id`,\n\t\t\t\t\t`menu_tree`.`parent_id`,\n\t\t\t\t\t`menu`.`redirect_url`,\n\t\t\t\t\t`menu_tree`.`sequence_no`,\n\t\t\t\t\t`menu`.`title_menu`,\n\t\t\t\t\t`menu`.`title_page`,\n\t\t\t\t\t`menu`.`template_name`,\n\t\t\t\t\t`menu`.`module_id`,\n\t\t\t\t\t`menu`.`security_level_id`,\n\t\t\t\t\t`menu`.`group_id`,\n\t\t\t\t\t`menu_tree`.`main_link`,\n\t\t\t\t\t`menu_tree`.`quick_link`,\n\t\t\t\t\t`menu_tree`.`bottom_link`,\n\t\t\t\t\t`menu`.`sitemap`,\n\t\t\t\t\t`menu`.`status`\n\t\t\t\tFROM\n\t\t\t\t\t`menu_tree`\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t`menu`\n\t\t\t\tON\n\t\t\t\t\t`menu`.`link_id` = `menu_tree`.`link_id`\n\t\t\t\tORDER BY \n\t\t\t\t\t`menu_tree`.`parent_id`,`menu_tree`.`sequence_no`\n\t\t\t\t\";\n\t\t$stmt = $this->db->prepare($sql);\n\t\t$stmt->bind_result($link_id,$parent_id,$redirect_url,$sequence_no,$title_menu,$title_page,$template_name,$module_id,$security_level_id,$group_id,$main_link,$quick_link,$bottom_link,$sitemap,$status);\n\n\t\t$stmt->execute();\n\t\twhile($stmt->fetch())\n\t\t{\n\t\t\t$out[] = array(\n\t\t\t\t'link_id' => $link_id,\n\t\t\t\t'parent_id' => $parent_id,\n\t\t\t\t'redirect_url' => $redirect_url,\n\t\t\t\t'sequence_no' => $sequence_no,\n\t\t\t\t'title_menu' => $title_menu,\n\t\t\t\t'title_page' => $title_page,\n\t\t\t\t'template_name' => $template_name,\n\t\t\t\t'module_id' => $module_id,\n\t\t\t\t'security_level_id' => $security_level_id,\n\t\t\t\t'group_id' => $group_id,\n\t\t\t\t'main_link' => $main_link,\n\t\t\t\t'quick_link' => $quick_link,\n\t\t\t\t'bottom_link' => $bottom_link,\n\t\t\t\t'sitemap' => $sitemap,\n\t\t\t\t'status' => $status\n\t\t\t);\n\t\t}\n\t\t$stmt->close();\n\t\t\n\t\treturn $out;\n\t}", "protected function buildMenuArray() {}", "public function getSidebarMenuItems()\n {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getMenuItems();\n uasort($menuItems, array($this, 'sortByOrder'));\n\n foreach ($menuItems as $menu) {\n\n $subitems = [];\n $navitems = [];\n $disabled = false;\n\n // First, check if the menu item points to a specific module\n if (isset($menu['item'])) {\n\n // Check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($menu['item'] == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n\n // Call Module::dashboardNavItems() to get its native menu\n $navitems = [];\n $moduleNavitems = $module->dashboardNavItems();\n\n\t if (isset($moduleNavitems['items'])) {\n\t\t $navitems['items'] = $moduleNavitems['items'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n\t\t\t\t\t\t\t\t\tforeach ($moduleNavitems as $moduleNavitem) {\n\t\t\t\t\t\t\t\t\t\tif (isset($moduleNavitem['label'])) {\n\t\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitem;\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} else {\n\t\t\t\t\t\t\t\t\tif (isset($moduleNavitems['label'])) {\n\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitems;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n // Check if the received menu item contains a direct link\n if (isset($navitems['url']))\n $menu['url'] = $navitems['url'];\n\n // Check if the received menu item contains sub-items\n if (!empty($navitems['items'])) {\n $menu['items'] = $navitems['items'];\n }\n\n unset($navitems);\n }\n }\n }\n }\n\n\t // Check if the menu item has nested sub-items\n\t\t\tif (isset($menu['items']) && is_array($menu['items'])) {\n\n // If the nested item is not represented by an array, then this is the module identifier,\n // of the module in which you need to call Module::dashboardNavItems() to get its native menu\n if (!is_array($menu['items'][0])) {\n $found = 0;\n foreach ($menu['items'] as $moduleId) {\n\n // add custom link for dashboard page\n if (is_array($moduleId)) {\n if (\n array_key_exists('label', $moduleId) &&\n array_key_exists('icon', $moduleId) &&\n array_key_exists('url', $moduleId)\n ) {\n $navitems[] = $moduleId;\n $found++;\n }\n } else {\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n $found++;\n }\n }\n }\n }\n }\n\n // None of the modules were found\n if ($found == 0) {\n $disabled = true;\n } else {\n foreach ($navitems as $navitem) {\n if ($navitem['icon'])\n $navitem['label'] = ($navitem['icon']) ? '<span class=\"icon\"><i class=\"' . $navitem['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $navitem['label']) : Yii::t('app/modules/admin', $navitem['label']);\n }\n }\n\n } else {\n\n // It means a nested array and it already contains submenus of the menu\n $submenus = $menu['items'];\n uasort($submenus, array($this, 'sortByOrder'));\n foreach ($submenus as $submenu) {\n \n $navitems = [];\n if (isset($submenu['items']) && is_array($submenu['items'])) {\n foreach ($submenu['items'] as $moduleId) {\n\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n }\n }\n }\n }\n }\n\n // Collect the final sub-menu item\n $subitems[] = [\n 'label' => ($submenu['icon']) ? '<span class=\"icon\"><i class=\"' . $submenu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $submenu['label']) : Yii::t('app/modules/admin', $submenu['label']),\n 'url' => ($submenu['url']) ? Url::to($submenu['url']) : '#',\n 'items' => ($navitems) ? $navitems : false\n ];\n unset($navitems);\n }\n }\n } else {\n if (!isset($menu['url']) && !isset($menu['item']))\n $disabled = true;\n }\n\n // Check if the icon is installed for this menu item\n if (isset($navitems)) {\n if (count($navitems) > 0) {\n foreach ($navitems as $nav => $item) {\n if ($item['icon']) {\n $navitems[$nav]['label'] = ($item['icon']) ? '<span class=\"icon\"><i class=\"' . $item['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $item['label']) : Yii::t('app/modules/admin', $item['label']);\n }\n }\n }\n }\n\n // Collect the final parent menu item\n $items[] = [\n 'label' => ($menu['icon']) ? '<span class=\"icon\"><i class=\"' . $menu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $menu['label']) : Yii::t('app/modules/admin', $menu['label']),\n 'url' => isset($menu['url']) ? Url::to($menu['url']) : '#',\n 'items' => ($subitems) ? $subitems : (($navitems) ? $navitems : false),\n 'active' => false,\n 'options' => ['class' => ($disabled) ? 'disabled' : ''],\n ];\n }\n\n return $items;\n }", "public static function getMenuItems($menutype)\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Prepare the query.\n\t\t$query->select('m.*')\n\t\t\t->from('#__menu AS m')\n\t\t\t->where('m.menutype = ' . $db->q($menutype))\n\t\t\t->where('m.client_id = 1')\n\t\t\t->where('m.published = 1')\n\t\t\t->where('m.id > 1');\n\n\t\t// Filter on the enabled states.\n\t\t$query->select('e.element')\n\t\t\t->join('LEFT', '#__extensions AS e ON m.component_id = e.extension_id')\n\t\t\t->where('(e.enabled = 1 OR e.enabled IS NULL)');\n\n\t\t// Order by lft.\n\t\t$query->order('m.lft');\n\n\t\t$db->setQuery($query);\n\n\t\t// Component list\n\t\ttry\n\t\t{\n\t\t\t$menuItems = $db->loadObjectList();\n\n\t\t\tforeach ($menuItems as &$menuitem)\n\t\t\t{\n\t\t\t\t$menuitem->params = new Registry($menuitem->params);\n\t\t\t}\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$menuItems = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $menuItems;\n\t}", "function items()\n\t{\n\t\treturn $this->_items;\n\t}", "public function prepareMenu()\n {\n if (empty($this->list)) {\n // Load the menu based on the module's parameters\n $this->list = \\Admin\\Models\\Menus::instance()->emptyState()->setState('filter.root', false)->setState('filter.published', true)->setState('filter.tree', $this->mapper->{'details.selected-menu'})->setState('order_clause', array( 'tree'=> 1, 'lft' => 1 ))->getList();\n }\n \n if (empty($this->list)) {\n return array();\n }\n\n $items = $this->list;\n \n $this->items = $items;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function getToolbarItems();", "public static function returnMenu() {\n return array(\n array(\n 'title' => 'Eve - лица',\n 'link' => self::$group . '/' . 'faces',\n 'class' => 'fa-list-alt',\n 'permit' => 'view',\n ),\n );\n }", "public function getMenusListAttribute()\n {\n return Menu::orderBy('name')->get();\n }", "public function items()\n\t{\n\t\treturn $this->items;\n\t}", "public function getMenuItems($parameters)\r\n {\r\n $user =& JFactory::getUser();\r\n $db =& JFactory::getDBO();\r\n \r\n $pastor = getPastor($user->id);\r\n $num_requests = getRequests($pastor->id);\r\n $items = '';\r\n \r\n if(!$user->guest) {\r\n if($parameters->get('showDivineCall') && $num_requests) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call <span style=\"color: red; background-color: #fff; padding: 1px 9px 2px 9px; border-radius: 9px; -moz-border-radius: 9px; -webkit-border-radius: 9px;\">'. $num_requests . '</span> </a>';\r\n }\r\n elseif($parameters->get('showDivineCall')) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call</a>';\r\n } \r\n }\r\n \r\n return $items;\r\n }", "public function getQueryMenus();", "public function index()\n {\n // get all Menus\n $Menus = Menu::all();\n\n return $Menus;\n }", "function get_menu_items($title) {\n\t$items['home.php'] = \"Home\";\n\t$items['play_trivia.php'] = \"Play Trivia\";\n\t$items['view_leaders.php'] = \"View Leader Board\";\n\t$items['rank_question.php'] = \"Rank Questions\";\n\t$items['insert_question.php'] = \"Insert Question\";\n\t\n\tif ($_SESSION['admin']) {\t\n\t\t$items['insert_user.php'] = \"Delete User\";\n\t\t$items['delete_question.php'] = \"Delete Question\";\n\t}\t\t\n\t$items['logout.php'] = \"Logout\";\n\t\t\n\tforeach ($items as $key=>$value) {\n\t\t$active = '';\n\t\tif ($value==$title) $active = \"active\";\n\t\t$menu_items .= '\n\t\t <li class=\"nav-item\">\n\t\t <a class=\"nav-link '.$active.'\" href=\"'.$key.'\">'.$value.'</a>\n\t\t </li>\n\t\t';\n\t}\n\treturn $menu_items;\n}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function getItems()\n {\n $this->loadItems();\n return $this->items;\n }", "function api_list_menus() {\n\t\t$menus = array();\n\t\tforeach ( get_nav_menu_locations() as $menu_slug => $menu_id ) {\n\n\t\t\t$menu = $menu_id?self::get_menu_object($menu_id):false;\n\t\t\t$menus[ $menu_slug ] = $menu;\n\t\t}\n\n\t\treturn $menus;\n\t}", "public function allmenus() {\n //$this->db->order_by('serialid');\n $query = $this->db->get('menu');\n return $query->result();\n }", "public function menuItems($items)\n {\n $result = '';\n\n foreach ($items as $key => $options) {\n $class = '';\n $icon = 'fa fa-menu fa-chevron-right';\n $url = $options;\n $linkOptions = ['escape' => false];\n\n if (is_array($options)) {\n $icon = Hash::get($options, 'icon', $icon);\n $url = Hash::get($options, 'url', '#');\n $class = Hash::get($options, 'class', '');\n $title = Hash::get($options, 'title', '');\n\n $linkOptions = array_merge($linkOptions, Hash::get($options, 'options', []));\n } else {\n $title = $key;\n }\n\n $link = $this->Html->link(\n $this->Html->tag('i', '', ['class' => $icon]) . __($title),\n $url,\n $linkOptions\n );\n\n $result .= $this->Html->tag('li', $link, ['class' => $class]);\n }\n\n return $result;\n }", "public function getItems()\n {\n return $this['ITEMS'];\n }" ]
[ "0.87782925", "0.81344724", "0.8037758", "0.7784811", "0.7748574", "0.7646989", "0.75717956", "0.7565426", "0.7541824", "0.7490188", "0.7451708", "0.7446263", "0.74343795", "0.7415992", "0.73516417", "0.7320214", "0.72796005", "0.72759366", "0.72671556", "0.7243029", "0.7238988", "0.7209053", "0.7202965", "0.71957076", "0.71637887", "0.7154334", "0.7094945", "0.7053935", "0.7033596", "0.69121045", "0.6894294", "0.6881728", "0.68814373", "0.687537", "0.6873051", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.682361", "0.68235284", "0.6775496", "0.67712617", "0.67711574", "0.6770207", "0.67534894", "0.67530596", "0.673972", "0.6729655", "0.67261165", "0.6723462", "0.67135835", "0.66929233", "0.6681463", "0.6658691", "0.6652967", "0.6644786", "0.6643305", "0.6643305", "0.6639776", "0.6633718", "0.6626841", "0.66221863", "0.66213095", "0.6597618", "0.65726775", "0.65626687", "0.65560645", "0.65560645", "0.65533435", "0.6531947", "0.6531947", "0.6531947", "0.6525259", "0.65199465", "0.6519334", "0.65192", "0.6513577", "0.6512954", "0.6502631", "0.6487127", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.6486194", "0.6484842", "0.6480772", "0.6477834", "0.6472128" ]
0.0
-1
Get the items for the menu.
public function championRanks(): HasMany { return $this->hasMany(PsChampionRank::class, 'champion_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_items() {\n return $this->menuitems;\n }", "function getMenuItems()\n {\n }", "public function getMenuItems() {\t\t\t\t\t\r\n\t\treturn $this->menuItems;\r\n\t}", "public function getMenuItems(){\n $items = ItemMenu::getBy(array('_id' => array('$in' => $this->_menuItems)));\n return $items;\n }", "public function getMenus() {}", "public function items()\n\t{\n\t\tif( ! is_null($this->menu))\n\t\t{\n\t\t\tforeach($this->items as $item)\n\t\t\t{\n\t\t\t\t$this->menu->filter($item);\n\t\t\t}\n\t\t}\n\n\t\treturn $this->items;\n\t}", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "public function getMenu();", "public function getItems()\n {\n //$urlManager = Yii::$app->urlManager->createUrl();\n $menuItems = [\n 'items' => $this->prepareRawTree()->prepareHasChilds()->getWidgetFormatedArray(),\n 'options' => [\n 'id' => 'left-menu',\n 'class' => 'nav nav-sidebar sortable'\n ],\n 'linkTemplate' => '<a href=\"{url}\">{label_prefix}{label}{label_postfix}</a>',\n 'submenuTemplate' => \"\\n<ul class='sortable nav nav-{level}-level'>\\n{items}\\n</ul>\\n\",\n ];\n //print_r($menuItems);\n return $menuItems;\n }", "public function getMenuItems()\n {\n return $this->adminMenu->all();\n }", "public static function menus()\n {\n return [];\n }", "public function getMenuItems()\n\t{\n\t\treturn Settings_Vtiger_MenuItem_Model::getAll($this->getId());\n\t}", "private function getMenuItems()\n {\n $menu = $this->getDoctrine()->getRepository('XvolutionsAdminBundle:Menu')->findBy([], array('position' => 'ASC'));\n $menuItems = null;\n foreach ($menu as $item) {\n $menuItems[$item->getPage()->getId()] = ['id' => $item->getPage()->getId(), 'title' => $item->getPage()->getTitle()];\n }\n\n return $menuItems;\n }", "function get_menu() {\n return wp_get_nav_menu_items(9);\n }", "protected function getMenuItems()\n {\n return $this->getService('config')->get()['menu']['admin'];\n }", "function getMenuEntries()\n\t{\n\t\tglobal $rbacsystem, $lng, $tree, $ilUser, $ilSetting;\n\n\t\t// no menu during online tests\n\t\tif ($_SESSION[\"adn_online_test\"])\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\n\t\t$mm_tpl = new ilTemplate(\"tpl.adn_main_menu.html\", true, true, \"Services/ADN/UI\");\n\n\t\tforeach ($this->getAllMenuItems() as $menu => $items)\n\t\t{\n\t\t\t$this->renderSubMenu($mm_tpl, $menu);\n\t\t}\n\t\treturn $mm_tpl->get();\n\n\n\n\t\t$tpl->setCurrentBlock(\"cust_menu\");\n\t\t$tpl->setVariable(\"TXT_CUSTOM\",\n\t\t\tlfCustomMenu::lookupTitle(\"it\", $menu[\"id\"], $ilUser->getLanguage(), true));\n\t\t$tpl->setVariable(\"MM_CLASS\", \"MMInactive\");\n\n\t\tif (is_file(\"./templates/default/images/mm_down_arrow.png\"))\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.png\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.gif\"));\n\t\t}\n\t\t$tpl->setVariable(\"CUSTOM_CONT_OV\", $gl->getHTML());\n\t\t$tpl->setVariable(\"MM_ID\", $menu[\"id\"]);\n\t\t$tpl->parseCurrentBlock();\n\t\t$tpl->setCurrentBlock(\"c_item\");\n\t\t$tpl->parseCurrentBlock();\n\n\t}", "public static function menuItems()\n {\n return [\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Users'), 'url' => ['/user-management/user/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Roles'), 'url' => ['/user-management/role/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permissions'), 'url' => ['/user-management/permission/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permission groups'), 'url' => ['/user-management/auth-item-group/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Visit log'), 'url' => ['/user-management/user-visit-log/index']],\n ];\n }", "public function menuItems()\n\t{\n\t\treturn array(\n array('label'=>$this->labelMenu!==null?$this->labelMenu:Yii::t('app','Generator'), 'icon'=>'fa fa-code', 'url'=>'#','items'=>$this->getMyselfMenu(),'visible'=>Yii::app()->getModule('users')->check('root')),\n );\n\t}", "public function getMenuItems()\n {\n $sql = \"\n SELECT\n menu.uid,\n parent_uid,\n sort_order,\n nofollow,\n target,\n class,\n label,\n uri_uid,\n uri,\n menu.archived,\n menu.archived_datetime\n FROM menu\n LEFT JOIN uri\n ON uri.uid = menu.uri_uid\n WHERE menu.archived = '0'\n AND (uri.archived = '0' OR uri.archived IS NULL)\n \";\n\n $sql .= \"\n ORDER BY sort_order;\n \";\n\n $db = new Query($sql);\n $results = $db->fetchAllAssoc();\n\n return $results;\n }", "public function getMenus()\n\t{\n\n\t}", "public function getMenuItems() {\n\n $url = $this->urlHelper;\n $items = [];\n\n //Links Visible always to everyone logged in or not.\n //default Home page - no login required. \n\n /* $items[] = [\n 'id' => 'home',\n 'label' => 'Home',\n 'link' => $url('home')\n ]; */\n\n //add links here for pages that will be visible for all users logged-in or not.\n //you must adjust User\\Module.php (~line 85) onDispatch method to ignore calls for \n //the associated Controller and action or you will end up with an infinite loop.\n /*\n $items[] = [\n 'id' => 'about',\n 'label' => 'About',\n 'link' => $url('about')\n ];\n */\n\n $user = $this->authManager->getLoggedInUser();\n\n //BEGIN Authentication/Rendering Logic\n // Display \"Login\" menu item for not authorized user only. On the other hand,\n // display \"Admin\" and \"Logout\" menu items only for authorized users and any other links \n // that should be visible by logged-in users.\n if (!$user) {\n\n $items[] = [\n 'id' => 'login',\n 'label' => 'Sign in',\n 'link' => $url('login'),\n 'float' => 'right'\n ];\n } else {\n\n //render Customers link for all users with sales_attr_id value in users table\n if (!empty($user->getSales_attr_id())) {\n $items[] = [\n 'id' => 'customers',\n 'label' => 'Customers',\n 'data-ffm-salesperson' => $user->getFullName(),\n 'float' => 'static',\n 'link' => $url('customer', ['action' => 'view', 'id' => $user->getSales_attr_id()])\n ];\n }\n //only display admin drop down for admin users.\n $isAdmin = $this->authManager->isAdmin();\n if ($isAdmin) {\n $items[] = [\n 'id' => 'admin',\n 'label' => '<i class=\"ion-gear-a\"></i>',\n 'float' => 'right',\n 'dropdown' => [\n [\n 'id' => 'users',\n 'label' => 'Manage Users',\n 'link' => $url('users')\n ]\n ]\n ];\n }\n\n $settingsDropDownManageAccount = [\n 'id' => 'manage_account',\n 'label' => 'Manage Account',\n 'link' => $url('users', ['action' => 'edit', 'id' => $user->getId()])\n ];\n\n $settingsDropDownViewAccount = [\n 'id' => 'view_account',\n 'label' => 'View Account',\n 'link' => $url('application', ['action' => 'settings'])\n ];\n\n $settingsDropDownLogout = [\n 'id' => 'logout',\n 'label' => 'Logout',\n 'link' => $url('logout')\n ];\n\n $settingsDropDown = [];\n\n //only add the Manage Account link for Admins.\n if ($isAdmin) {\n $settingsDropDown[] = $settingsDropDownManageAccount;\n }\n\n $settingsDropDown[] = $settingsDropDownViewAccount;\n\n $settingsDropDown[] = $settingsDropDownLogout;\n\n $items[] = [\n 'id' => 'settings',\n 'label' => '<i class=\"ion-person\"></i>' . $user->getUsername(),\n 'float' => 'right',\n 'dropdown' => $settingsDropDown\n ];\n\n $loggedInItems = $this->getLoggedInItems();\n\n if ($loggedInItems)\n array_merge($items, $loggedInItems);\n\n // add items to right of settings in top right corner only for logged-in users here\n //Show Salespeople link only to Admin users\n if ($isAdmin) {\n\n $items[] = [\n 'id' => 'salespeople',\n 'label' => 'Salespeople',\n 'float' => 'static',\n 'link' => $url('salespeople', ['action' => 'index']),\n ];\n }\n }\n\n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$sql = \"SELECT * FROM mod_menu\";\n\t\t$query = \\SimplCMS::$app->getDbConnection()->query($sql);\n\t\treturn $query->fetchAll( \\PDO::FETCH_ASSOC );\t\t\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "public function items()\n {\n return $this\n ->hasMany('\\Pageblok\\Menus\\Models\\MenuItem', 'menu_ref')\n ->where('published', true)\n ->orderBy('priority', 'ASC');\n }", "public static function &getItems()\n\t{\n\t\tstatic $items;\n\n\t\t// Get the menu items for this component.\n\t\tif (!isset($items)) {\n\t\t\t// Include the site app in case we are loading this from the admin.\n\t\t\trequire_once JPATH_SITE.'/includes/application.php';\n\n\t\t\t$app\t= JFactory::getApplication();\n\t\t\t$menu\t= $app->getMenu();\n\t\t\t$com\t= JComponentHelper::getComponent('com_users');\n\t\t\t$items\t= $menu->getItems('component_id', $com->id);\n\n\t\t\t// If no items found, set to empty array.\n\t\t\tif (!$items) {\n\t\t\t\t$items = array();\n\t\t\t}\n\t\t}\n\n\t\treturn $items;\n\t}", "public static function getMenuItems()\n {\n // Will be handled in XML in future (or/and with the Joomla native menus)\n // -> give your opinion on j-cook.pro/forum\n\n $items = array();\n\n $items['admin.countries.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_COUNTRIES',\n 'view' => 'countries',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_countries'\n );\n\n $items['admin.regions.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_REGIONS',\n 'view' => 'regions',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_regions'\n );\n\n $items['admin.provinces.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_PROVINCES',\n 'view' => 'provinces',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_provinces'\n );\n\n $items['admin.subscriptionplans.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_SUBSCRIPTIONPLANS',\n 'view' => 'subscriptionplans',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_subscriptionplans'\n );\n\n $items['admin.categories.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CATEGORIES',\n 'view' => 'categories',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_categories'\n );\n\n $items['admin.typedocuments.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_TYPEDOCUMENTS',\n 'view' => 'typedocuments',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_typedocuments'\n );\n\n $items['admin.documents.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_DOCUMENTS',\n 'view' => 'documents',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_documents'\n );\n\n $items['admin.reservations.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_RESERVATIONS',\n 'view' => 'reservations',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_reservations'\n );\n\n $items['admin.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n $items['site.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n return $items;\n }", "function wp_get_nav_menu_items($items, $menu, $args)\n {\n }", "public function index()\n {\n return $this->menu->all();\n }", "abstract public function getMenuData();", "public function getUserMenu() {\n $event = new BuildUserMenuEvent();\n $this->trigger(self::EVENT_BUILD_USER_MENU, $event);\n $menu = [];\n foreach ($event->items as $block => $items) {\n foreach ($items as $item) {\n $menu[] = $item;\n }\n }\n return $menu;\n }", "public static function menus(): array\n {\n return [];\n }", "function &getMenus() {\n\t\t$lines = explode(\"\\n\", $this->menus);\n\n\t\t$menus = array();\n\t\tforeach( $lines as $line ) {\n\t\t\tif ($line) {\n\t\t\t\tlist( $menutype, $ordering, $show, $showXML, $priority, $changefreq ) = explode(',', $line);\n\t\t\t\t$info = explode(',', $line);\n\t\t\t\t$menu = new stdclass;\n\t\t\t\t$menu->menutype \t= @$info[0];\n\t\t\t\t$menu->ordering \t= @$info[1];\n\t\t\t\t$menu->show \t\t= @$info[2];\n\t\t\t\t$menu->showXML \t= @$info[3];\n\t\t\t\t$menu->priority \t= (@$info[4]? $info[4] : '0.5');\n\t\t\t\t$menu->changefreq \t= (@$info[5]? $info[5] : 'weekly');\n\t\t\t\t$menu->module \t\t= (@$info[6]? $info[6] : 'mod_mainmenu');\n\t\t\t\t$menus[$menutype] \t= $menu;\n\t\t\t}\n\t\t}\n\t\treturn $menus;\n\t}", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "public function getMenus()\n\t{\n\t\treturn $this->menus;\n\t}", "public function get(){\n\t\t\t\n\t\t\t$query=\"SELECT menuItem FROM menuModel\";\n\t\t\t$results=$this->db()->query($query);\n\t\t\t\n\t\t\t// echo\"<pre>\";\n\t\t\t// var_dump($results);\n\t\t\t\n\t\t\tforeach($results as $res){\n\t\t\t\t$menu_array[]=$res;\n\t\t\t}\n\t\t\t\n\t\t\treturn $menu_array;\n\t\t\t\n\t\t}", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function menuItems()\n {\n return array(\n array('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('#'), 'items'=>array(\n \n // array('label'=>Yii::t('app','Home Información'), 'icon'=>'fa fa-star-half-o', 'url'=>array('/'.$this->id.'/info/')),\n // array('label'=>Yii::t('app','Beneficios'), 'icon'=>'fa fa-rocket', 'url'=>array('/'.$this->id.'/features/admin')),\n \n \tarray('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('/'.$this->id.'/header/admin')),\n\n \tarray('label'=>Yii::t('app','Términos y condiciones'), 'icon'=>'fa fa-gavel', 'url'=>array('/'.$this->id.'/conditions/')),\n \tarray('label'=>Yii::t('app','Config'), 'icon'=>'fa fa-cog', 'url'=>array('/'.$this->id.'/config/')),\n \n \n )),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('#'), 'items'=>array(\n \n array('label'=>Yii::t('app','Categorías'), 'icon'=>'fa fa-list-ol', 'url'=>array('/'.$this->id.'/categories/admin')),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('/'.$this->id.'/items/admin')),\n \t// array('label'=>Yii::t('app','Facilitadores'), 'icon'=>'fa fa-graduation-cap', 'url'=>array('/'.$this->id.'/facilitador/admin')),\n \n )),\n );\n }", "public function menu_get_names()\n {\n return menu_get_names();\n }", "public function getItems(){\n\t\treturn $this->_makeCall('items?');\n\t}", "public static function getMenus()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('a.*, SUM(b.home) AS home')\n\t\t\t->from('#__menu_types AS a')\n\t\t\t->join('LEFT', '#__menu AS b ON b.menutype = a.menutype AND b.home != 0')\n\t\t\t->select('b.language')\n\t\t\t->join('LEFT', '#__languages AS l ON l.lang_code = language')\n\t\t\t->select('l.image')\n\t\t\t->select('l.sef')\n\t\t\t->select('l.title_native')\n\t\t\t->where('(b.client_id = 0 OR b.client_id IS NULL)');\n\n\t\t// Sqlsrv change\n\t\t$query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$result = $db->loadObjectList();\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$result = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function getTopmenuItems()\n {\n $items = array();\n\n if (APP_User::isBWLoggedIn()) {\n $username = isset($_SESSION['Username']) ? $_SESSION['Username'] : '';\n $items[] = array('profile', 'members/'.$username, $username, true);\n }\n // $items[] = array('searchmembers', 'searchmembers/index', 'FindMembers');\n // $items[] = array('forums', 'forums', 'Community');\n // $items[] = array('groups', 'bw/groups.php', 'Groups');\n // $items[] = array('gallery', 'gallery', 'Gallery');\n $items[] = array('getanswers', 'about', 'GetAnswers');\n $items[] = array('findhosts', 'findmembers', 'FindHosts');\n $items[] = array('explore', 'explore', 'Explore');\n if (APP_User::isBWLoggedIn()) {\n $items[] = array('messages', 'messages', 'Messages');\n }\n \n return $items;\n }", "function menuGetPrimaryItems() {\n $items = array();\n $items[] = array('title' => 'Home', 'url' => '/');\n $items[] = array('title' => 'Blog', 'url' => '/Blog');\n $items[] = array('title' => 'Archive', 'url' => '/Archive');\n\n return menuPrepareItems($items);\n}", "public function getMenus(){\n\n }", "public function getItems()\n\t{\n\t\t$items = parent::getItems();\n\t\t\n\n\t\treturn $items;\n\t}", "public function obtenerElementosMenu();", "public function getSubItems()\n {\n return $this->getDataValue($this->getSubmenuName());\n }", "public abstract function getMenuData(): array;", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "public function getCreateMenuItems() {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getCreateMenuItems();\n\n foreach ($menuItems as $moduleId => $menu) {\n foreach ($modules as $module) {\n\n // Check the presence of the module identifier among the available packages\n if ($moduleId == $module['name']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n // Add items for create menu in Dashboard\n if (isset($menu['label']) && isset($menu['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $menu['label']),\n 'url' => $menu['url']\n ];\n } else if (is_array($menu)) {\n foreach ($menu as $item) {\n if (isset($item['label']) && isset($item['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $item['label']),\n 'url' => $item['url']\n ];\n }\n }\n }\n }\n }\n }\n }\n\n return $items;\n }", "public function getMenuItems()\n\t{\n\t\t$items = array();\n\t\tforeach ($this->history as $action) {\n\t\t\t$items[] = array('label' => ucfirst($action),\n\t\t\t\t'url' => array($action,\n\t\t\t\t\t'session_id' => $this->session->session_id));\n\t\t}\n\t\treturn $items;\n\t}", "public function get_list_of_menus(){\n\n $items = array();\n\n $args = array(\n 'post_type' => 'erm_menu',\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'post_status' => 'publish',\n 'posts_per_page' => -1 \n );\n\n $menu_posts = get_posts($args);\n\n if ( !empty($menu_posts) ) {\n\n foreach ( $menu_posts as $menu_post ){\n $items[] = array(\n 'title' => $menu_post -> post_title,\n 'url' => $menu_post -> post_name\n );\n }\n\n }\n else{\n return new WP_Error( 'no_menus', 'No menus found', array( 'status' => 404 ) );\n }\n\n return $items;\n\n }", "public function menu()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'name' => 'users',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => TRUE,\n\t\t\t\t'menu' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'foo',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => FALSE,\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'bar',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => TRUE,\n\t\t\t\t\t\t'menu' => array(\n\t\t\t\t\t\t\t'name' => 'this is a third submenu',\n\t\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t\t'submenu' => FALSE,\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\tarray(\n\t\t\t\t'name' => 'foobar',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => FALSE,\n\t\t\t),\n\t\t);\n\t}", "public function menu() {\n\t\treturn $this->getteams();\n\t}", "public static function getAllMenu()\n {\n $rows = Yii::$app->cache->get(\"BackendMenu:all\");\n if (false === is_array($rows)) {\n $rows = static::find()\n ->orderBy('parent_id ASC, sort ASC')\n ->asArray()\n ->all();\n Yii::$app->cache->set(\n \"BackendMenu:all\",\n $rows,\n 86400,\n new TagDependency([\n 'tags' => [\n ActiveRecordHelper::getCommonTag(static::className()),\n ],\n ])\n );\n }\n // rebuild rows to tree $all_menu_items\n $all_menu_items = Tree::rowsArrayToMenuTree($rows, 0, 0, false);\n\n return $all_menu_items;\n }", "function getItems();", "function getItems();", "protected function getItems()\r\n\t{\r\n\t\treturn $this->_items;\r\n\t}", "function getItems(){\r\n\t\t\treturn $this->items;\r\n\t\t}", "public function getAllMenuItems()\n\t{\n\t\t$out = array();\n\t\n\t\t$sql = \"SELECT\n\t\t\t\t\t`menu`.`link_id`,\n\t\t\t\t\t`menu_tree`.`parent_id`,\n\t\t\t\t\t`menu`.`redirect_url`,\n\t\t\t\t\t`menu_tree`.`sequence_no`,\n\t\t\t\t\t`menu`.`title_menu`,\n\t\t\t\t\t`menu`.`title_page`,\n\t\t\t\t\t`menu`.`template_name`,\n\t\t\t\t\t`menu`.`module_id`,\n\t\t\t\t\t`menu`.`security_level_id`,\n\t\t\t\t\t`menu`.`group_id`,\n\t\t\t\t\t`menu_tree`.`main_link`,\n\t\t\t\t\t`menu_tree`.`quick_link`,\n\t\t\t\t\t`menu_tree`.`bottom_link`,\n\t\t\t\t\t`menu`.`sitemap`,\n\t\t\t\t\t`menu`.`status`\n\t\t\t\tFROM\n\t\t\t\t\t`menu_tree`\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t`menu`\n\t\t\t\tON\n\t\t\t\t\t`menu`.`link_id` = `menu_tree`.`link_id`\n\t\t\t\tORDER BY \n\t\t\t\t\t`menu_tree`.`parent_id`,`menu_tree`.`sequence_no`\n\t\t\t\t\";\n\t\t$stmt = $this->db->prepare($sql);\n\t\t$stmt->bind_result($link_id,$parent_id,$redirect_url,$sequence_no,$title_menu,$title_page,$template_name,$module_id,$security_level_id,$group_id,$main_link,$quick_link,$bottom_link,$sitemap,$status);\n\n\t\t$stmt->execute();\n\t\twhile($stmt->fetch())\n\t\t{\n\t\t\t$out[] = array(\n\t\t\t\t'link_id' => $link_id,\n\t\t\t\t'parent_id' => $parent_id,\n\t\t\t\t'redirect_url' => $redirect_url,\n\t\t\t\t'sequence_no' => $sequence_no,\n\t\t\t\t'title_menu' => $title_menu,\n\t\t\t\t'title_page' => $title_page,\n\t\t\t\t'template_name' => $template_name,\n\t\t\t\t'module_id' => $module_id,\n\t\t\t\t'security_level_id' => $security_level_id,\n\t\t\t\t'group_id' => $group_id,\n\t\t\t\t'main_link' => $main_link,\n\t\t\t\t'quick_link' => $quick_link,\n\t\t\t\t'bottom_link' => $bottom_link,\n\t\t\t\t'sitemap' => $sitemap,\n\t\t\t\t'status' => $status\n\t\t\t);\n\t\t}\n\t\t$stmt->close();\n\t\t\n\t\treturn $out;\n\t}", "protected function buildMenuArray() {}", "public function getSidebarMenuItems()\n {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getMenuItems();\n uasort($menuItems, array($this, 'sortByOrder'));\n\n foreach ($menuItems as $menu) {\n\n $subitems = [];\n $navitems = [];\n $disabled = false;\n\n // First, check if the menu item points to a specific module\n if (isset($menu['item'])) {\n\n // Check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($menu['item'] == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n\n // Call Module::dashboardNavItems() to get its native menu\n $navitems = [];\n $moduleNavitems = $module->dashboardNavItems();\n\n\t if (isset($moduleNavitems['items'])) {\n\t\t $navitems['items'] = $moduleNavitems['items'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n\t\t\t\t\t\t\t\t\tforeach ($moduleNavitems as $moduleNavitem) {\n\t\t\t\t\t\t\t\t\t\tif (isset($moduleNavitem['label'])) {\n\t\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitem;\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} else {\n\t\t\t\t\t\t\t\t\tif (isset($moduleNavitems['label'])) {\n\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitems;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n // Check if the received menu item contains a direct link\n if (isset($navitems['url']))\n $menu['url'] = $navitems['url'];\n\n // Check if the received menu item contains sub-items\n if (!empty($navitems['items'])) {\n $menu['items'] = $navitems['items'];\n }\n\n unset($navitems);\n }\n }\n }\n }\n\n\t // Check if the menu item has nested sub-items\n\t\t\tif (isset($menu['items']) && is_array($menu['items'])) {\n\n // If the nested item is not represented by an array, then this is the module identifier,\n // of the module in which you need to call Module::dashboardNavItems() to get its native menu\n if (!is_array($menu['items'][0])) {\n $found = 0;\n foreach ($menu['items'] as $moduleId) {\n\n // add custom link for dashboard page\n if (is_array($moduleId)) {\n if (\n array_key_exists('label', $moduleId) &&\n array_key_exists('icon', $moduleId) &&\n array_key_exists('url', $moduleId)\n ) {\n $navitems[] = $moduleId;\n $found++;\n }\n } else {\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n $found++;\n }\n }\n }\n }\n }\n\n // None of the modules were found\n if ($found == 0) {\n $disabled = true;\n } else {\n foreach ($navitems as $navitem) {\n if ($navitem['icon'])\n $navitem['label'] = ($navitem['icon']) ? '<span class=\"icon\"><i class=\"' . $navitem['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $navitem['label']) : Yii::t('app/modules/admin', $navitem['label']);\n }\n }\n\n } else {\n\n // It means a nested array and it already contains submenus of the menu\n $submenus = $menu['items'];\n uasort($submenus, array($this, 'sortByOrder'));\n foreach ($submenus as $submenu) {\n \n $navitems = [];\n if (isset($submenu['items']) && is_array($submenu['items'])) {\n foreach ($submenu['items'] as $moduleId) {\n\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n }\n }\n }\n }\n }\n\n // Collect the final sub-menu item\n $subitems[] = [\n 'label' => ($submenu['icon']) ? '<span class=\"icon\"><i class=\"' . $submenu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $submenu['label']) : Yii::t('app/modules/admin', $submenu['label']),\n 'url' => ($submenu['url']) ? Url::to($submenu['url']) : '#',\n 'items' => ($navitems) ? $navitems : false\n ];\n unset($navitems);\n }\n }\n } else {\n if (!isset($menu['url']) && !isset($menu['item']))\n $disabled = true;\n }\n\n // Check if the icon is installed for this menu item\n if (isset($navitems)) {\n if (count($navitems) > 0) {\n foreach ($navitems as $nav => $item) {\n if ($item['icon']) {\n $navitems[$nav]['label'] = ($item['icon']) ? '<span class=\"icon\"><i class=\"' . $item['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $item['label']) : Yii::t('app/modules/admin', $item['label']);\n }\n }\n }\n }\n\n // Collect the final parent menu item\n $items[] = [\n 'label' => ($menu['icon']) ? '<span class=\"icon\"><i class=\"' . $menu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $menu['label']) : Yii::t('app/modules/admin', $menu['label']),\n 'url' => isset($menu['url']) ? Url::to($menu['url']) : '#',\n 'items' => ($subitems) ? $subitems : (($navitems) ? $navitems : false),\n 'active' => false,\n 'options' => ['class' => ($disabled) ? 'disabled' : ''],\n ];\n }\n\n return $items;\n }", "public static function getMenuItems($menutype)\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Prepare the query.\n\t\t$query->select('m.*')\n\t\t\t->from('#__menu AS m')\n\t\t\t->where('m.menutype = ' . $db->q($menutype))\n\t\t\t->where('m.client_id = 1')\n\t\t\t->where('m.published = 1')\n\t\t\t->where('m.id > 1');\n\n\t\t// Filter on the enabled states.\n\t\t$query->select('e.element')\n\t\t\t->join('LEFT', '#__extensions AS e ON m.component_id = e.extension_id')\n\t\t\t->where('(e.enabled = 1 OR e.enabled IS NULL)');\n\n\t\t// Order by lft.\n\t\t$query->order('m.lft');\n\n\t\t$db->setQuery($query);\n\n\t\t// Component list\n\t\ttry\n\t\t{\n\t\t\t$menuItems = $db->loadObjectList();\n\n\t\t\tforeach ($menuItems as &$menuitem)\n\t\t\t{\n\t\t\t\t$menuitem->params = new Registry($menuitem->params);\n\t\t\t}\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$menuItems = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $menuItems;\n\t}", "function items()\n\t{\n\t\treturn $this->_items;\n\t}", "public function prepareMenu()\n {\n if (empty($this->list)) {\n // Load the menu based on the module's parameters\n $this->list = \\Admin\\Models\\Menus::instance()->emptyState()->setState('filter.root', false)->setState('filter.published', true)->setState('filter.tree', $this->mapper->{'details.selected-menu'})->setState('order_clause', array( 'tree'=> 1, 'lft' => 1 ))->getList();\n }\n \n if (empty($this->list)) {\n return array();\n }\n\n $items = $this->list;\n \n $this->items = $items;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function getToolbarItems();", "public static function returnMenu() {\n return array(\n array(\n 'title' => 'Eve - лица',\n 'link' => self::$group . '/' . 'faces',\n 'class' => 'fa-list-alt',\n 'permit' => 'view',\n ),\n );\n }", "public function getMenusListAttribute()\n {\n return Menu::orderBy('name')->get();\n }", "public function items()\n\t{\n\t\treturn $this->items;\n\t}", "public function getMenuItems($parameters)\r\n {\r\n $user =& JFactory::getUser();\r\n $db =& JFactory::getDBO();\r\n \r\n $pastor = getPastor($user->id);\r\n $num_requests = getRequests($pastor->id);\r\n $items = '';\r\n \r\n if(!$user->guest) {\r\n if($parameters->get('showDivineCall') && $num_requests) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call <span style=\"color: red; background-color: #fff; padding: 1px 9px 2px 9px; border-radius: 9px; -moz-border-radius: 9px; -webkit-border-radius: 9px;\">'. $num_requests . '</span> </a>';\r\n }\r\n elseif($parameters->get('showDivineCall')) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call</a>';\r\n } \r\n }\r\n \r\n return $items;\r\n }", "public function getQueryMenus();", "public function index()\n {\n // get all Menus\n $Menus = Menu::all();\n\n return $Menus;\n }", "function get_menu_items($title) {\n\t$items['home.php'] = \"Home\";\n\t$items['play_trivia.php'] = \"Play Trivia\";\n\t$items['view_leaders.php'] = \"View Leader Board\";\n\t$items['rank_question.php'] = \"Rank Questions\";\n\t$items['insert_question.php'] = \"Insert Question\";\n\t\n\tif ($_SESSION['admin']) {\t\n\t\t$items['insert_user.php'] = \"Delete User\";\n\t\t$items['delete_question.php'] = \"Delete Question\";\n\t}\t\t\n\t$items['logout.php'] = \"Logout\";\n\t\t\n\tforeach ($items as $key=>$value) {\n\t\t$active = '';\n\t\tif ($value==$title) $active = \"active\";\n\t\t$menu_items .= '\n\t\t <li class=\"nav-item\">\n\t\t <a class=\"nav-link '.$active.'\" href=\"'.$key.'\">'.$value.'</a>\n\t\t </li>\n\t\t';\n\t}\n\treturn $menu_items;\n}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function getItems()\n {\n $this->loadItems();\n return $this->items;\n }", "function api_list_menus() {\n\t\t$menus = array();\n\t\tforeach ( get_nav_menu_locations() as $menu_slug => $menu_id ) {\n\n\t\t\t$menu = $menu_id?self::get_menu_object($menu_id):false;\n\t\t\t$menus[ $menu_slug ] = $menu;\n\t\t}\n\n\t\treturn $menus;\n\t}", "public function allmenus() {\n //$this->db->order_by('serialid');\n $query = $this->db->get('menu');\n return $query->result();\n }", "public function menuItems($items)\n {\n $result = '';\n\n foreach ($items as $key => $options) {\n $class = '';\n $icon = 'fa fa-menu fa-chevron-right';\n $url = $options;\n $linkOptions = ['escape' => false];\n\n if (is_array($options)) {\n $icon = Hash::get($options, 'icon', $icon);\n $url = Hash::get($options, 'url', '#');\n $class = Hash::get($options, 'class', '');\n $title = Hash::get($options, 'title', '');\n\n $linkOptions = array_merge($linkOptions, Hash::get($options, 'options', []));\n } else {\n $title = $key;\n }\n\n $link = $this->Html->link(\n $this->Html->tag('i', '', ['class' => $icon]) . __($title),\n $url,\n $linkOptions\n );\n\n $result .= $this->Html->tag('li', $link, ['class' => $class]);\n }\n\n return $result;\n }", "public function getItems()\n {\n return $this['ITEMS'];\n }" ]
[ "0.87782925", "0.81344724", "0.8037758", "0.7784811", "0.7748574", "0.7646989", "0.75717956", "0.7565426", "0.7541824", "0.7490188", "0.7451708", "0.7446263", "0.74343795", "0.7415992", "0.73516417", "0.7320214", "0.72796005", "0.72759366", "0.72671556", "0.7243029", "0.7238988", "0.7209053", "0.7202965", "0.71957076", "0.71637887", "0.7154334", "0.7094945", "0.7053935", "0.7033596", "0.69121045", "0.6894294", "0.6881728", "0.68814373", "0.687537", "0.6873051", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.68350446", "0.682361", "0.68235284", "0.6775496", "0.67712617", "0.67711574", "0.6770207", "0.67534894", "0.67530596", "0.673972", "0.6729655", "0.67261165", "0.6723462", "0.67135835", "0.66929233", "0.6681463", "0.6658691", "0.6652967", "0.6644786", "0.6643305", "0.6643305", "0.6639776", "0.6633718", "0.6626841", "0.66221863", "0.66213095", "0.6597618", "0.65726775", "0.65626687", "0.65560645", "0.65560645", "0.65533435", "0.6531947", "0.6531947", "0.6531947", "0.6525259", "0.65199465", "0.6519334", "0.65192", "0.6513577", "0.6512954", "0.6502631", "0.6487127", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.64866036", "0.6486194", "0.6484842", "0.6480772", "0.6477834", "0.6472128" ]
0.0
-1
Get the items for the menu.
public function loadouts(): HasMany { return $this->hasMany(PsLoadout::class, 'champion_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_items() {\n return $this->menuitems;\n }", "function getMenuItems()\n {\n }", "public function getMenuItems() {\t\t\t\t\t\r\n\t\treturn $this->menuItems;\r\n\t}", "public function getMenuItems(){\n $items = ItemMenu::getBy(array('_id' => array('$in' => $this->_menuItems)));\n return $items;\n }", "public function getMenus() {}", "public function items()\n\t{\n\t\tif( ! is_null($this->menu))\n\t\t{\n\t\t\tforeach($this->items as $item)\n\t\t\t{\n\t\t\t\t$this->menu->filter($item);\n\t\t\t}\n\t\t}\n\n\t\treturn $this->items;\n\t}", "function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }", "public function getMenu();", "public function getItems()\n {\n //$urlManager = Yii::$app->urlManager->createUrl();\n $menuItems = [\n 'items' => $this->prepareRawTree()->prepareHasChilds()->getWidgetFormatedArray(),\n 'options' => [\n 'id' => 'left-menu',\n 'class' => 'nav nav-sidebar sortable'\n ],\n 'linkTemplate' => '<a href=\"{url}\">{label_prefix}{label}{label_postfix}</a>',\n 'submenuTemplate' => \"\\n<ul class='sortable nav nav-{level}-level'>\\n{items}\\n</ul>\\n\",\n ];\n //print_r($menuItems);\n return $menuItems;\n }", "public function getMenuItems()\n {\n return $this->adminMenu->all();\n }", "public static function menus()\n {\n return [];\n }", "public function getMenuItems()\n\t{\n\t\treturn Settings_Vtiger_MenuItem_Model::getAll($this->getId());\n\t}", "private function getMenuItems()\n {\n $menu = $this->getDoctrine()->getRepository('XvolutionsAdminBundle:Menu')->findBy([], array('position' => 'ASC'));\n $menuItems = null;\n foreach ($menu as $item) {\n $menuItems[$item->getPage()->getId()] = ['id' => $item->getPage()->getId(), 'title' => $item->getPage()->getTitle()];\n }\n\n return $menuItems;\n }", "function get_menu() {\n return wp_get_nav_menu_items(9);\n }", "protected function getMenuItems()\n {\n return $this->getService('config')->get()['menu']['admin'];\n }", "function getMenuEntries()\n\t{\n\t\tglobal $rbacsystem, $lng, $tree, $ilUser, $ilSetting;\n\n\t\t// no menu during online tests\n\t\tif ($_SESSION[\"adn_online_test\"])\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\n\t\t$mm_tpl = new ilTemplate(\"tpl.adn_main_menu.html\", true, true, \"Services/ADN/UI\");\n\n\t\tforeach ($this->getAllMenuItems() as $menu => $items)\n\t\t{\n\t\t\t$this->renderSubMenu($mm_tpl, $menu);\n\t\t}\n\t\treturn $mm_tpl->get();\n\n\n\n\t\t$tpl->setCurrentBlock(\"cust_menu\");\n\t\t$tpl->setVariable(\"TXT_CUSTOM\",\n\t\t\tlfCustomMenu::lookupTitle(\"it\", $menu[\"id\"], $ilUser->getLanguage(), true));\n\t\t$tpl->setVariable(\"MM_CLASS\", \"MMInactive\");\n\n\t\tif (is_file(\"./templates/default/images/mm_down_arrow.png\"))\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.png\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$tpl->setVariable(\"ARROW_IMG\", ilUtil::getImagePath(\"mm_down_arrow.gif\"));\n\t\t}\n\t\t$tpl->setVariable(\"CUSTOM_CONT_OV\", $gl->getHTML());\n\t\t$tpl->setVariable(\"MM_ID\", $menu[\"id\"]);\n\t\t$tpl->parseCurrentBlock();\n\t\t$tpl->setCurrentBlock(\"c_item\");\n\t\t$tpl->parseCurrentBlock();\n\n\t}", "public static function menuItems()\n {\n return [\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Users'), 'url' => ['/user-management/user/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Roles'), 'url' => ['/user-management/role/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permissions'), 'url' => ['/user-management/permission/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Permission groups'), 'url' => ['/user-management/auth-item-group/index']],\n ['label' => '<i class=\"fa fa-angle-double-right\"></i> ' . Yii::t('menu', 'Visit log'), 'url' => ['/user-management/user-visit-log/index']],\n ];\n }", "public function menuItems()\n\t{\n\t\treturn array(\n array('label'=>$this->labelMenu!==null?$this->labelMenu:Yii::t('app','Generator'), 'icon'=>'fa fa-code', 'url'=>'#','items'=>$this->getMyselfMenu(),'visible'=>Yii::app()->getModule('users')->check('root')),\n );\n\t}", "public function getMenuItems()\n {\n $sql = \"\n SELECT\n menu.uid,\n parent_uid,\n sort_order,\n nofollow,\n target,\n class,\n label,\n uri_uid,\n uri,\n menu.archived,\n menu.archived_datetime\n FROM menu\n LEFT JOIN uri\n ON uri.uid = menu.uri_uid\n WHERE menu.archived = '0'\n AND (uri.archived = '0' OR uri.archived IS NULL)\n \";\n\n $sql .= \"\n ORDER BY sort_order;\n \";\n\n $db = new Query($sql);\n $results = $db->fetchAllAssoc();\n\n return $results;\n }", "public function getMenus()\n\t{\n\n\t}", "public function getMenuItems() {\n\n $url = $this->urlHelper;\n $items = [];\n\n //Links Visible always to everyone logged in or not.\n //default Home page - no login required. \n\n /* $items[] = [\n 'id' => 'home',\n 'label' => 'Home',\n 'link' => $url('home')\n ]; */\n\n //add links here for pages that will be visible for all users logged-in or not.\n //you must adjust User\\Module.php (~line 85) onDispatch method to ignore calls for \n //the associated Controller and action or you will end up with an infinite loop.\n /*\n $items[] = [\n 'id' => 'about',\n 'label' => 'About',\n 'link' => $url('about')\n ];\n */\n\n $user = $this->authManager->getLoggedInUser();\n\n //BEGIN Authentication/Rendering Logic\n // Display \"Login\" menu item for not authorized user only. On the other hand,\n // display \"Admin\" and \"Logout\" menu items only for authorized users and any other links \n // that should be visible by logged-in users.\n if (!$user) {\n\n $items[] = [\n 'id' => 'login',\n 'label' => 'Sign in',\n 'link' => $url('login'),\n 'float' => 'right'\n ];\n } else {\n\n //render Customers link for all users with sales_attr_id value in users table\n if (!empty($user->getSales_attr_id())) {\n $items[] = [\n 'id' => 'customers',\n 'label' => 'Customers',\n 'data-ffm-salesperson' => $user->getFullName(),\n 'float' => 'static',\n 'link' => $url('customer', ['action' => 'view', 'id' => $user->getSales_attr_id()])\n ];\n }\n //only display admin drop down for admin users.\n $isAdmin = $this->authManager->isAdmin();\n if ($isAdmin) {\n $items[] = [\n 'id' => 'admin',\n 'label' => '<i class=\"ion-gear-a\"></i>',\n 'float' => 'right',\n 'dropdown' => [\n [\n 'id' => 'users',\n 'label' => 'Manage Users',\n 'link' => $url('users')\n ]\n ]\n ];\n }\n\n $settingsDropDownManageAccount = [\n 'id' => 'manage_account',\n 'label' => 'Manage Account',\n 'link' => $url('users', ['action' => 'edit', 'id' => $user->getId()])\n ];\n\n $settingsDropDownViewAccount = [\n 'id' => 'view_account',\n 'label' => 'View Account',\n 'link' => $url('application', ['action' => 'settings'])\n ];\n\n $settingsDropDownLogout = [\n 'id' => 'logout',\n 'label' => 'Logout',\n 'link' => $url('logout')\n ];\n\n $settingsDropDown = [];\n\n //only add the Manage Account link for Admins.\n if ($isAdmin) {\n $settingsDropDown[] = $settingsDropDownManageAccount;\n }\n\n $settingsDropDown[] = $settingsDropDownViewAccount;\n\n $settingsDropDown[] = $settingsDropDownLogout;\n\n $items[] = [\n 'id' => 'settings',\n 'label' => '<i class=\"ion-person\"></i>' . $user->getUsername(),\n 'float' => 'right',\n 'dropdown' => $settingsDropDown\n ];\n\n $loggedInItems = $this->getLoggedInItems();\n\n if ($loggedInItems)\n array_merge($items, $loggedInItems);\n\n // add items to right of settings in top right corner only for logged-in users here\n //Show Salespeople link only to Admin users\n if ($isAdmin) {\n\n $items[] = [\n 'id' => 'salespeople',\n 'label' => 'Salespeople',\n 'float' => 'static',\n 'link' => $url('salespeople', ['action' => 'index']),\n ];\n }\n }\n\n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$sql = \"SELECT * FROM mod_menu\";\n\t\t$query = \\SimplCMS::$app->getDbConnection()->query($sql);\n\t\treturn $query->fetchAll( \\PDO::FETCH_ASSOC );\t\t\n\t}", "public function getMenu(){\n\n\t\treturn $this->get();\n\t}", "public function items()\n {\n return $this\n ->hasMany('\\Pageblok\\Menus\\Models\\MenuItem', 'menu_ref')\n ->where('published', true)\n ->orderBy('priority', 'ASC');\n }", "public static function &getItems()\n\t{\n\t\tstatic $items;\n\n\t\t// Get the menu items for this component.\n\t\tif (!isset($items)) {\n\t\t\t// Include the site app in case we are loading this from the admin.\n\t\t\trequire_once JPATH_SITE.'/includes/application.php';\n\n\t\t\t$app\t= JFactory::getApplication();\n\t\t\t$menu\t= $app->getMenu();\n\t\t\t$com\t= JComponentHelper::getComponent('com_users');\n\t\t\t$items\t= $menu->getItems('component_id', $com->id);\n\n\t\t\t// If no items found, set to empty array.\n\t\t\tif (!$items) {\n\t\t\t\t$items = array();\n\t\t\t}\n\t\t}\n\n\t\treturn $items;\n\t}", "public static function getMenuItems()\n {\n // Will be handled in XML in future (or/and with the Joomla native menus)\n // -> give your opinion on j-cook.pro/forum\n\n $items = array();\n\n $items['admin.countries.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_COUNTRIES',\n 'view' => 'countries',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_countries'\n );\n\n $items['admin.regions.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_REGIONS',\n 'view' => 'regions',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_regions'\n );\n\n $items['admin.provinces.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_PROVINCES',\n 'view' => 'provinces',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_provinces'\n );\n\n $items['admin.subscriptionplans.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_SUBSCRIPTIONPLANS',\n 'view' => 'subscriptionplans',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_subscriptionplans'\n );\n\n $items['admin.categories.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CATEGORIES',\n 'view' => 'categories',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_categories'\n );\n\n $items['admin.typedocuments.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_TYPEDOCUMENTS',\n 'view' => 'typedocuments',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_typedocuments'\n );\n\n $items['admin.documents.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_DOCUMENTS',\n 'view' => 'documents',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_documents'\n );\n\n $items['admin.reservations.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_RESERVATIONS',\n 'view' => 'reservations',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_reservations'\n );\n\n $items['admin.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n $items['site.cpanel.default'] = array(\n 'label' => 'PAPIERSDEFAMILLES_LAYOUT_CONTROL_PANEL',\n 'view' => 'cpanel',\n 'layout' => 'default',\n 'icon' => 'papiersdefamilles_cpanel'\n );\n\n return $items;\n }", "function wp_get_nav_menu_items($items, $menu, $args)\n {\n }", "public function index()\n {\n return $this->menu->all();\n }", "abstract public function getMenuData();", "public function getUserMenu() {\n $event = new BuildUserMenuEvent();\n $this->trigger(self::EVENT_BUILD_USER_MENU, $event);\n $menu = [];\n foreach ($event->items as $block => $items) {\n foreach ($items as $item) {\n $menu[] = $item;\n }\n }\n return $menu;\n }", "public static function menus(): array\n {\n return [];\n }", "function &getMenus() {\n\t\t$lines = explode(\"\\n\", $this->menus);\n\n\t\t$menus = array();\n\t\tforeach( $lines as $line ) {\n\t\t\tif ($line) {\n\t\t\t\tlist( $menutype, $ordering, $show, $showXML, $priority, $changefreq ) = explode(',', $line);\n\t\t\t\t$info = explode(',', $line);\n\t\t\t\t$menu = new stdclass;\n\t\t\t\t$menu->menutype \t= @$info[0];\n\t\t\t\t$menu->ordering \t= @$info[1];\n\t\t\t\t$menu->show \t\t= @$info[2];\n\t\t\t\t$menu->showXML \t= @$info[3];\n\t\t\t\t$menu->priority \t= (@$info[4]? $info[4] : '0.5');\n\t\t\t\t$menu->changefreq \t= (@$info[5]? $info[5] : 'weekly');\n\t\t\t\t$menu->module \t\t= (@$info[6]? $info[6] : 'mod_mainmenu');\n\t\t\t\t$menus[$menutype] \t= $menu;\n\t\t\t}\n\t\t}\n\t\treturn $menus;\n\t}", "function getMenuItems () {\n return sqlSelect('SELECT * FROM menu');\n}", "public function getMenus()\n\t{\n\t\treturn $this->menus;\n\t}", "public function get(){\n\t\t\t\n\t\t\t$query=\"SELECT menuItem FROM menuModel\";\n\t\t\t$results=$this->db()->query($query);\n\t\t\t\n\t\t\t// echo\"<pre>\";\n\t\t\t// var_dump($results);\n\t\t\t\n\t\t\tforeach($results as $res){\n\t\t\t\t$menu_array[]=$res;\n\t\t\t}\n\t\t\t\n\t\t\treturn $menu_array;\n\t\t\t\n\t\t}", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function getItems();", "public function menuItems()\n {\n return array(\n array('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('#'), 'items'=>array(\n \n // array('label'=>Yii::t('app','Home Información'), 'icon'=>'fa fa-star-half-o', 'url'=>array('/'.$this->id.'/info/')),\n // array('label'=>Yii::t('app','Beneficios'), 'icon'=>'fa fa-rocket', 'url'=>array('/'.$this->id.'/features/admin')),\n \n \tarray('label'=>Yii::t('app','Compras'), 'icon'=>'fa fa-shopping-cart', 'url'=>array('/'.$this->id.'/header/admin')),\n\n \tarray('label'=>Yii::t('app','Términos y condiciones'), 'icon'=>'fa fa-gavel', 'url'=>array('/'.$this->id.'/conditions/')),\n \tarray('label'=>Yii::t('app','Config'), 'icon'=>'fa fa-cog', 'url'=>array('/'.$this->id.'/config/')),\n \n \n )),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('#'), 'items'=>array(\n \n array('label'=>Yii::t('app','Categorías'), 'icon'=>'fa fa-list-ol', 'url'=>array('/'.$this->id.'/categories/admin')),\n array('label'=>Yii::t('app','Productos'), 'icon'=>'fa fa-barcode', 'url'=>array('/'.$this->id.'/items/admin')),\n \t// array('label'=>Yii::t('app','Facilitadores'), 'icon'=>'fa fa-graduation-cap', 'url'=>array('/'.$this->id.'/facilitador/admin')),\n \n )),\n );\n }", "public function menu_get_names()\n {\n return menu_get_names();\n }", "public function getItems(){\n\t\treturn $this->_makeCall('items?');\n\t}", "function menuGetPrimaryItems() {\n $items = array();\n $items[] = array('title' => 'Home', 'url' => '/');\n $items[] = array('title' => 'Blog', 'url' => '/Blog');\n $items[] = array('title' => 'Archive', 'url' => '/Archive');\n\n return menuPrepareItems($items);\n}", "protected function getTopmenuItems()\n {\n $items = array();\n\n if (APP_User::isBWLoggedIn()) {\n $username = isset($_SESSION['Username']) ? $_SESSION['Username'] : '';\n $items[] = array('profile', 'members/'.$username, $username, true);\n }\n // $items[] = array('searchmembers', 'searchmembers/index', 'FindMembers');\n // $items[] = array('forums', 'forums', 'Community');\n // $items[] = array('groups', 'bw/groups.php', 'Groups');\n // $items[] = array('gallery', 'gallery', 'Gallery');\n $items[] = array('getanswers', 'about', 'GetAnswers');\n $items[] = array('findhosts', 'findmembers', 'FindHosts');\n $items[] = array('explore', 'explore', 'Explore');\n if (APP_User::isBWLoggedIn()) {\n $items[] = array('messages', 'messages', 'Messages');\n }\n \n return $items;\n }", "public static function getMenus()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true)\n\t\t\t->select('a.*, SUM(b.home) AS home')\n\t\t\t->from('#__menu_types AS a')\n\t\t\t->join('LEFT', '#__menu AS b ON b.menutype = a.menutype AND b.home != 0')\n\t\t\t->select('b.language')\n\t\t\t->join('LEFT', '#__languages AS l ON l.lang_code = language')\n\t\t\t->select('l.image')\n\t\t\t->select('l.sef')\n\t\t\t->select('l.title_native')\n\t\t\t->where('(b.client_id = 0 OR b.client_id IS NULL)');\n\n\t\t// Sqlsrv change\n\t\t$query->group('a.id, a.menutype, a.description, a.title, b.menutype,b.language,l.image,l.sef,l.title_native');\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$result = $db->loadObjectList();\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$result = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getItems()\n\t{\n\t\t$items = parent::getItems();\n\t\t\n\n\t\treturn $items;\n\t}", "public function getMenus(){\n\n }", "public function obtenerElementosMenu();", "public function getSubItems()\n {\n return $this->getDataValue($this->getSubmenuName());\n }", "public abstract function getMenuData(): array;", "function GetMenu()\n {\n $sql = \"SELECT\n title,\n slug,\n id\n FROM\n pages\";\n $this->setSql($sql);\n return $this->getAll();\n }", "public function getCreateMenuItems() {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getCreateMenuItems();\n\n foreach ($menuItems as $moduleId => $menu) {\n foreach ($modules as $module) {\n\n // Check the presence of the module identifier among the available packages\n if ($moduleId == $module['name']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n // Add items for create menu in Dashboard\n if (isset($menu['label']) && isset($menu['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $menu['label']),\n 'url' => $menu['url']\n ];\n } else if (is_array($menu)) {\n foreach ($menu as $item) {\n if (isset($item['label']) && isset($item['url'])) {\n $items[] = [\n 'label' => Yii::t('app/modules/admin', $item['label']),\n 'url' => $item['url']\n ];\n }\n }\n }\n }\n }\n }\n }\n\n return $items;\n }", "public function getMenuItems()\n\t{\n\t\t$items = array();\n\t\tforeach ($this->history as $action) {\n\t\t\t$items[] = array('label' => ucfirst($action),\n\t\t\t\t'url' => array($action,\n\t\t\t\t\t'session_id' => $this->session->session_id));\n\t\t}\n\t\treturn $items;\n\t}", "public function get_list_of_menus(){\n\n $items = array();\n\n $args = array(\n 'post_type' => 'erm_menu',\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'post_status' => 'publish',\n 'posts_per_page' => -1 \n );\n\n $menu_posts = get_posts($args);\n\n if ( !empty($menu_posts) ) {\n\n foreach ( $menu_posts as $menu_post ){\n $items[] = array(\n 'title' => $menu_post -> post_title,\n 'url' => $menu_post -> post_name\n );\n }\n\n }\n else{\n return new WP_Error( 'no_menus', 'No menus found', array( 'status' => 404 ) );\n }\n\n return $items;\n\n }", "public function menu()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'name' => 'users',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => TRUE,\n\t\t\t\t'menu' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'foo',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => FALSE,\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'bar',\n\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t'submenu' => TRUE,\n\t\t\t\t\t\t'menu' => array(\n\t\t\t\t\t\t\t'name' => 'this is a third submenu',\n\t\t\t\t\t\t\t'href' => '#',\n\t\t\t\t\t\t\t'submenu' => FALSE,\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\tarray(\n\t\t\t\t'name' => 'foobar',\n\t\t\t\t'href' => '#',\n\t\t\t\t'submenu' => FALSE,\n\t\t\t),\n\t\t);\n\t}", "public function menu() {\n\t\treturn $this->getteams();\n\t}", "public static function getAllMenu()\n {\n $rows = Yii::$app->cache->get(\"BackendMenu:all\");\n if (false === is_array($rows)) {\n $rows = static::find()\n ->orderBy('parent_id ASC, sort ASC')\n ->asArray()\n ->all();\n Yii::$app->cache->set(\n \"BackendMenu:all\",\n $rows,\n 86400,\n new TagDependency([\n 'tags' => [\n ActiveRecordHelper::getCommonTag(static::className()),\n ],\n ])\n );\n }\n // rebuild rows to tree $all_menu_items\n $all_menu_items = Tree::rowsArrayToMenuTree($rows, 0, 0, false);\n\n return $all_menu_items;\n }", "function getItems();", "function getItems();", "protected function getItems()\r\n\t{\r\n\t\treturn $this->_items;\r\n\t}", "function getItems(){\r\n\t\t\treturn $this->items;\r\n\t\t}", "public function getAllMenuItems()\n\t{\n\t\t$out = array();\n\t\n\t\t$sql = \"SELECT\n\t\t\t\t\t`menu`.`link_id`,\n\t\t\t\t\t`menu_tree`.`parent_id`,\n\t\t\t\t\t`menu`.`redirect_url`,\n\t\t\t\t\t`menu_tree`.`sequence_no`,\n\t\t\t\t\t`menu`.`title_menu`,\n\t\t\t\t\t`menu`.`title_page`,\n\t\t\t\t\t`menu`.`template_name`,\n\t\t\t\t\t`menu`.`module_id`,\n\t\t\t\t\t`menu`.`security_level_id`,\n\t\t\t\t\t`menu`.`group_id`,\n\t\t\t\t\t`menu_tree`.`main_link`,\n\t\t\t\t\t`menu_tree`.`quick_link`,\n\t\t\t\t\t`menu_tree`.`bottom_link`,\n\t\t\t\t\t`menu`.`sitemap`,\n\t\t\t\t\t`menu`.`status`\n\t\t\t\tFROM\n\t\t\t\t\t`menu_tree`\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t`menu`\n\t\t\t\tON\n\t\t\t\t\t`menu`.`link_id` = `menu_tree`.`link_id`\n\t\t\t\tORDER BY \n\t\t\t\t\t`menu_tree`.`parent_id`,`menu_tree`.`sequence_no`\n\t\t\t\t\";\n\t\t$stmt = $this->db->prepare($sql);\n\t\t$stmt->bind_result($link_id,$parent_id,$redirect_url,$sequence_no,$title_menu,$title_page,$template_name,$module_id,$security_level_id,$group_id,$main_link,$quick_link,$bottom_link,$sitemap,$status);\n\n\t\t$stmt->execute();\n\t\twhile($stmt->fetch())\n\t\t{\n\t\t\t$out[] = array(\n\t\t\t\t'link_id' => $link_id,\n\t\t\t\t'parent_id' => $parent_id,\n\t\t\t\t'redirect_url' => $redirect_url,\n\t\t\t\t'sequence_no' => $sequence_no,\n\t\t\t\t'title_menu' => $title_menu,\n\t\t\t\t'title_page' => $title_page,\n\t\t\t\t'template_name' => $template_name,\n\t\t\t\t'module_id' => $module_id,\n\t\t\t\t'security_level_id' => $security_level_id,\n\t\t\t\t'group_id' => $group_id,\n\t\t\t\t'main_link' => $main_link,\n\t\t\t\t'quick_link' => $quick_link,\n\t\t\t\t'bottom_link' => $bottom_link,\n\t\t\t\t'sitemap' => $sitemap,\n\t\t\t\t'status' => $status\n\t\t\t);\n\t\t}\n\t\t$stmt->close();\n\t\t\n\t\treturn $out;\n\t}", "protected function buildMenuArray() {}", "public function getSidebarMenuItems()\n {\n $items = [];\n $model = new \\wdmg\\admin\\models\\Modules();\n $modules = $model::getModules(true);\n $menuItems = $this->module->getMenuItems();\n uasort($menuItems, array($this, 'sortByOrder'));\n\n foreach ($menuItems as $menu) {\n\n $subitems = [];\n $navitems = [];\n $disabled = false;\n\n // First, check if the menu item points to a specific module\n if (isset($menu['item'])) {\n\n // Check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($menu['item'] == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'], false)) {\n\n\n // Call Module::dashboardNavItems() to get its native menu\n $navitems = [];\n $moduleNavitems = $module->dashboardNavItems();\n\n\t if (isset($moduleNavitems['items'])) {\n\t\t $navitems['items'] = $moduleNavitems['items'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n\t\t\t\t\t\t\t\t\tforeach ($moduleNavitems as $moduleNavitem) {\n\t\t\t\t\t\t\t\t\t\tif (isset($moduleNavitem['label'])) {\n\t\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitem;\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} else {\n\t\t\t\t\t\t\t\t\tif (isset($moduleNavitems['label'])) {\n\t\t\t\t\t\t\t\t\t\t$navitems[] = $moduleNavitems;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n // Check if the received menu item contains a direct link\n if (isset($navitems['url']))\n $menu['url'] = $navitems['url'];\n\n // Check if the received menu item contains sub-items\n if (!empty($navitems['items'])) {\n $menu['items'] = $navitems['items'];\n }\n\n unset($navitems);\n }\n }\n }\n }\n\n\t // Check if the menu item has nested sub-items\n\t\t\tif (isset($menu['items']) && is_array($menu['items'])) {\n\n // If the nested item is not represented by an array, then this is the module identifier,\n // of the module in which you need to call Module::dashboardNavItems() to get its native menu\n if (!is_array($menu['items'][0])) {\n $found = 0;\n foreach ($menu['items'] as $moduleId) {\n\n // add custom link for dashboard page\n if (is_array($moduleId)) {\n if (\n array_key_exists('label', $moduleId) &&\n array_key_exists('icon', $moduleId) &&\n array_key_exists('url', $moduleId)\n ) {\n $navitems[] = $moduleId;\n $found++;\n }\n } else {\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n $found++;\n }\n }\n }\n }\n }\n\n // None of the modules were found\n if ($found == 0) {\n $disabled = true;\n } else {\n foreach ($navitems as $navitem) {\n if ($navitem['icon'])\n $navitem['label'] = ($navitem['icon']) ? '<span class=\"icon\"><i class=\"' . $navitem['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $navitem['label']) : Yii::t('app/modules/admin', $navitem['label']);\n }\n }\n\n } else {\n\n // It means a nested array and it already contains submenus of the menu\n $submenus = $menu['items'];\n uasort($submenus, array($this, 'sortByOrder'));\n foreach ($submenus as $submenu) {\n \n $navitems = [];\n if (isset($submenu['items']) && is_array($submenu['items'])) {\n foreach ($submenu['items'] as $moduleId) {\n\n // check the presence of the module identifier among the available packages\n foreach ($modules as $module) {\n if ($moduleId == $module['module']) {\n if ($module = Yii::$app->getModule('admin/'. $module['module'])) {\n $moduleNavitems = $module->dashboardNavItems();\n if (ArrayHelper::isIndexed($moduleNavitems) && !ArrayHelper::isAssociative($moduleNavitems, true)) {\n foreach ($moduleNavitems as $moduleNavitem) {\n\t if (isset($moduleNavitem['label'])) {\n\t\t $navitems[] = $moduleNavitem;\n\t }\n }\n } else {\n\t if (isset($moduleNavitems['label'])) {\n\t\t $navitems[] = $moduleNavitems;\n\t }\n }\n }\n }\n }\n }\n }\n\n // Collect the final sub-menu item\n $subitems[] = [\n 'label' => ($submenu['icon']) ? '<span class=\"icon\"><i class=\"' . $submenu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $submenu['label']) : Yii::t('app/modules/admin', $submenu['label']),\n 'url' => ($submenu['url']) ? Url::to($submenu['url']) : '#',\n 'items' => ($navitems) ? $navitems : false\n ];\n unset($navitems);\n }\n }\n } else {\n if (!isset($menu['url']) && !isset($menu['item']))\n $disabled = true;\n }\n\n // Check if the icon is installed for this menu item\n if (isset($navitems)) {\n if (count($navitems) > 0) {\n foreach ($navitems as $nav => $item) {\n if ($item['icon']) {\n $navitems[$nav]['label'] = ($item['icon']) ? '<span class=\"icon\"><i class=\"' . $item['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $item['label']) : Yii::t('app/modules/admin', $item['label']);\n }\n }\n }\n }\n\n // Collect the final parent menu item\n $items[] = [\n 'label' => ($menu['icon']) ? '<span class=\"icon\"><i class=\"' . $menu['icon'] . '\"></i></span> ' . Yii::t('app/modules/admin', $menu['label']) : Yii::t('app/modules/admin', $menu['label']),\n 'url' => isset($menu['url']) ? Url::to($menu['url']) : '#',\n 'items' => ($subitems) ? $subitems : (($navitems) ? $navitems : false),\n 'active' => false,\n 'options' => ['class' => ($disabled) ? 'disabled' : ''],\n ];\n }\n\n return $items;\n }", "public static function getMenuItems($menutype)\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Prepare the query.\n\t\t$query->select('m.*')\n\t\t\t->from('#__menu AS m')\n\t\t\t->where('m.menutype = ' . $db->q($menutype))\n\t\t\t->where('m.client_id = 1')\n\t\t\t->where('m.published = 1')\n\t\t\t->where('m.id > 1');\n\n\t\t// Filter on the enabled states.\n\t\t$query->select('e.element')\n\t\t\t->join('LEFT', '#__extensions AS e ON m.component_id = e.extension_id')\n\t\t\t->where('(e.enabled = 1 OR e.enabled IS NULL)');\n\n\t\t// Order by lft.\n\t\t$query->order('m.lft');\n\n\t\t$db->setQuery($query);\n\n\t\t// Component list\n\t\ttry\n\t\t{\n\t\t\t$menuItems = $db->loadObjectList();\n\n\t\t\tforeach ($menuItems as &$menuitem)\n\t\t\t{\n\t\t\t\t$menuitem->params = new Registry($menuitem->params);\n\t\t\t}\n\t\t}\n\t\tcatch (RuntimeException $e)\n\t\t{\n\t\t\t$menuItems = array();\n\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('JERROR_AN_ERROR_HAS_OCCURRED'), 'error');\n\t\t}\n\n\t\treturn $menuItems;\n\t}", "function items()\n\t{\n\t\treturn $this->_items;\n\t}", "public function prepareMenu()\n {\n if (empty($this->list)) {\n // Load the menu based on the module's parameters\n $this->list = \\Admin\\Models\\Menus::instance()->emptyState()->setState('filter.root', false)->setState('filter.published', true)->setState('filter.tree', $this->mapper->{'details.selected-menu'})->setState('order_clause', array( 'tree'=> 1, 'lft' => 1 ))->getList();\n }\n \n if (empty($this->list)) {\n return array();\n }\n\n $items = $this->list;\n \n $this->items = $items;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function menu()\n {\n return $this->menu;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function items()\n {\n return $this->items;\n }", "public function getToolbarItems();", "public static function returnMenu() {\n return array(\n array(\n 'title' => 'Eve - лица',\n 'link' => self::$group . '/' . 'faces',\n 'class' => 'fa-list-alt',\n 'permit' => 'view',\n ),\n );\n }", "public function getMenusListAttribute()\n {\n return Menu::orderBy('name')->get();\n }", "public function items()\n\t{\n\t\treturn $this->items;\n\t}", "public function getMenuItems($parameters)\r\n {\r\n $user =& JFactory::getUser();\r\n $db =& JFactory::getDBO();\r\n \r\n $pastor = getPastor($user->id);\r\n $num_requests = getRequests($pastor->id);\r\n $items = '';\r\n \r\n if(!$user->guest) {\r\n if($parameters->get('showDivineCall') && $num_requests) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call <span style=\"color: red; background-color: #fff; padding: 1px 9px 2px 9px; border-radius: 9px; -moz-border-radius: 9px; -webkit-border-radius: 9px;\">'. $num_requests . '</span> </a>';\r\n }\r\n elseif($parameters->get('showDivineCall')) {\r\n $items .= '<a class=\"pathway\" href=\"' . JRoute::_('index.php?option=com_devotions&view=divinecall') . '\" style=\"background-image: none\">Divine Call</a>';\r\n } \r\n }\r\n \r\n return $items;\r\n }", "public function getQueryMenus();", "public function index()\n {\n // get all Menus\n $Menus = Menu::all();\n\n return $Menus;\n }", "function get_menu_items($title) {\n\t$items['home.php'] = \"Home\";\n\t$items['play_trivia.php'] = \"Play Trivia\";\n\t$items['view_leaders.php'] = \"View Leader Board\";\n\t$items['rank_question.php'] = \"Rank Questions\";\n\t$items['insert_question.php'] = \"Insert Question\";\n\t\n\tif ($_SESSION['admin']) {\t\n\t\t$items['insert_user.php'] = \"Delete User\";\n\t\t$items['delete_question.php'] = \"Delete Question\";\n\t}\t\t\n\t$items['logout.php'] = \"Logout\";\n\t\t\n\tforeach ($items as $key=>$value) {\n\t\t$active = '';\n\t\tif ($value==$title) $active = \"active\";\n\t\t$menu_items .= '\n\t\t <li class=\"nav-item\">\n\t\t <a class=\"nav-link '.$active.'\" href=\"'.$key.'\">'.$value.'</a>\n\t\t </li>\n\t\t';\n\t}\n\treturn $menu_items;\n}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "public function getItems()\n {\n $this->loadItems();\n return $this->items;\n }", "function api_list_menus() {\n\t\t$menus = array();\n\t\tforeach ( get_nav_menu_locations() as $menu_slug => $menu_id ) {\n\n\t\t\t$menu = $menu_id?self::get_menu_object($menu_id):false;\n\t\t\t$menus[ $menu_slug ] = $menu;\n\t\t}\n\n\t\treturn $menus;\n\t}", "public function allmenus() {\n //$this->db->order_by('serialid');\n $query = $this->db->get('menu');\n return $query->result();\n }", "public function menuItems($items)\n {\n $result = '';\n\n foreach ($items as $key => $options) {\n $class = '';\n $icon = 'fa fa-menu fa-chevron-right';\n $url = $options;\n $linkOptions = ['escape' => false];\n\n if (is_array($options)) {\n $icon = Hash::get($options, 'icon', $icon);\n $url = Hash::get($options, 'url', '#');\n $class = Hash::get($options, 'class', '');\n $title = Hash::get($options, 'title', '');\n\n $linkOptions = array_merge($linkOptions, Hash::get($options, 'options', []));\n } else {\n $title = $key;\n }\n\n $link = $this->Html->link(\n $this->Html->tag('i', '', ['class' => $icon]) . __($title),\n $url,\n $linkOptions\n );\n\n $result .= $this->Html->tag('li', $link, ['class' => $class]);\n }\n\n return $result;\n }", "public function getItems()\n {\n return $this['ITEMS'];\n }" ]
[ "0.87796366", "0.81356585", "0.8039705", "0.77860546", "0.77480483", "0.7648789", "0.75722563", "0.7565739", "0.754279", "0.7490906", "0.74528307", "0.7447195", "0.7435883", "0.7417227", "0.7352571", "0.7320029", "0.72826093", "0.72784793", "0.7266743", "0.72426057", "0.7238722", "0.720878", "0.7203258", "0.719695", "0.7165266", "0.7155829", "0.7098549", "0.70527434", "0.703386", "0.69134665", "0.68955874", "0.6882195", "0.6881125", "0.6876228", "0.6872512", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.68337625", "0.6826176", "0.68245035", "0.67737764", "0.677234", "0.6771983", "0.6771375", "0.6753282", "0.6752957", "0.6739078", "0.67307097", "0.6726022", "0.6723061", "0.6715927", "0.66930485", "0.6681901", "0.66607594", "0.66527617", "0.66458625", "0.6642037", "0.6642037", "0.66400623", "0.6633514", "0.6627292", "0.66226554", "0.6622498", "0.6597688", "0.65727866", "0.6564244", "0.65575504", "0.65575504", "0.6553401", "0.6532118", "0.6532118", "0.6532118", "0.6525547", "0.65203655", "0.65198594", "0.6519424", "0.651348", "0.6512277", "0.65023434", "0.6488993", "0.6487537", "0.6487537", "0.6487537", "0.6487537", "0.6487537", "0.6487537", "0.64863163", "0.6485197", "0.6480892", "0.6480348", "0.64720863" ]
0.0
-1
Starts a new benchmark and returns a unique token.
public static function start($group, $name, $data=false, $trace = false) { static $counter = 0; // Create a unique token based on the counter $token = 'kp/'.base_convert($counter++, 10, 32); Profiler::$_marks[$token] = array ( 'group' => strtolower($group), 'name' => (string) $name, // Start the benchmark 'start_time' => microtime(TRUE), 'start_memory' => memory_get_usage(), // Set the stop keys without values 'stop_time' => FALSE, 'stop_memory' => FALSE, 'data' => $data, 'trace' => $trace ); return $token; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBenchmarkStart(): void\n {\n $this->logger->benchmarkStart($this->benchmark->reveal());\n $display = $this->output->fetch();\n $this->assertStringContainsString('BenchmarkTest', $display);\n $this->assertStringContainsString('#1 benchSubject', $display);\n }", "function _cr_hs_generate_token() {\n $load_avg = sys_getloadavg();\n $time = time();\n $hash = hash_init('sha256');\n hash_update($hash, implode('', $load_avg));\n hash_update($hash, time());\n return hash_final($hash);\n}", "public function generateToken()\n {\n do {\n $token = sha1(microtime());\n } while ($this->newQuery()->where(['token' => $token])->count() > 0);\n\n return $token;\n }", "public function benchmarkStart()\n\t{\n\t\t$this->startTime = round(microtime(true) * 1000);\n\t}", "private function generateToken()\n {\n return hash('SHA256', uniqid((double) microtime() * 1000000, true));\n }", "static function generateToken() {\n $token = Cache::get(\"token\", false);\n if ($token) {\n return $token;\n } else {\n $time = floor(time() / 1000);\n $token = md5(bin2hex($time));\n new Cache(\"token\", $token);\n return $token;\n }\n }", "function benchmark(string $name = null){\n if(isset($name)){\n if(isset($this->benchmarks[$name])){\n throw new InvalidArgumentException('Bench with name \"'.$name.'\" was already made');\n }\n $this->benchmarks[$name] = $bench = new Bench($name);;\n } else {\n $bench = new Bench();\n }\n return $bench;\n }", "public static function start()\n {\n $start = round(microtime(true) * 1000);\n echo $start . \"\\n\";\n return $start;\n }", "protected function create_token()\n {\n do {\n $token = sha1(uniqid(\\Phalcon\\Text::random(\\Phalcon\\Text::RANDOM_ALNUM, 32), true));\n } while (Tokens::findFirst(array('token=:token:', 'bind' => array(':token' => $token))));\n\n return $token;\n }", "public function token(): Token\n {\n return self::instance()->runner->token();\n }", "function createtoken()\n {\n $token = \"token-\" . mt_rand();\n // put in the token, created time\n $_SESSION[$token] = time();\n return $token;\n }", "public function generate_token() {\n\t\t$current_offset = $this->get_offset();\n\t\treturn dechex($current_offset) . '-' . $this->calculate_tokenvalue($current_offset);\n\t}", "public function benchmark() {\n return self::benchmarkEnd($this->benchmarkStart);\n }", "public static function init_token() {\n return bin2hex(random_bytes((self::TOKEN_SIZE / 2)));\n }", "public function generateApiTokenStarter()\n {\n $string = str_random(9) . '_' . str_random(7) . '_' . str_random(9);\n\n return $string;\n }", "public static function instance(string $name='default'): Benchmark\n {\n if (!isset(static::$instances[$name])) {\n static::$instances[$name] = new static($name);\n }\n return static::$instances[$name];\n }", "public static function factory($name)\n\t{\n\t\treturn new Benchmark($name);\n\t}", "protected static function generateToken(): string\n {\n $characters = '0123456789abcdefghijklmnopqrstuvwxyz';\n $token = 'V_'; // methods can't start with numbers\n\n for ($i = 0; $i < 12; $i++) {\n $index = rand(0, strlen($characters) - 1);\n $token .= $characters[$index];\n }\n\n return $token;\n }", "public function generateNewToken()\n {\n $this->token = uniqid(null, true);\n return ($this->token);\n }", "public function createNewToken()\n {\n return $this->getBandrek()->generateToken();\n }", "public function generateToken();", "public function createToken() {\r\n\t\t$characters = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',\r\n\t\t\t'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9');\r\n\t\t$counter = 0;\r\n\t\t$resultString = \"\";\r\n\t\t\r\n\t\twhile ($counter < Page::TOKEN_LENGTH) {\r\n\t\t\t$nextRand = mt_rand(0, (count($characters) - 1));\r\n\t\t\t\r\n\t\t\tif (!Strings::contains($resultString, sprintf('%1$s', $characters[$nextRand]))) {\r\n\t\t\t\t$resultString .= $characters[$nextRand];\r\n\t\t\t\t\r\n\t\t\t\t$counter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $resultString;\r\n\t}", "public function generateToken()\n\t{\n\t\treturn Token::make();\n\t}", "public function getBenchmark()\n {\n return $this->benchmark;\n }", "protected function generate_tok()\r\n {\r\n return $_SESSION['token'] = base64_encode(openssl_random_pseudo_bytes(32));\r\n }", "private function getToken()\n {\n return uniqid();\n }", "public function run()\n {\n $tokens = [\n [\n 'av' => 'ABT',\n 'name' => 'AxieBusToken',\n 'share' => 20,\n 'img' => 'images/card/card1.png',\n 'price' => 1000\n ],\n [\n 'av' => 'ABIT',\n 'name' => 'AxieBusinessInterestToken',\n 'share' => 30,\n 'img' => 'images/card/card3.png',\n 'price' => 1000\n ],\n // [\n // 'av' => 'BTT',\n // 'name' => 'BethylTradeToken',\n // 'share' => 30,\n // 'img' => 'images/card/card2.png',\n // 'price' => 1000\n // ],\n // [\n // 'av' => 'WWT',\n // 'name' => 'WonderWhiteToken',\n // 'share' => 30,\n // 'img' => 'images/card/card4.png'\n // ],\n ];\n\n foreach($tokens as $token)\n {\n Token::create($token);\n }\n }", "public function start($name) {\n $this->marks[$name]['start'] = microtime();\n }", "public static function create()\n {\n return sha1(uniqid('', true) . self::_random(20) . microtime(true));\n }", "public static function start($on = TRUE)\n {\n if ($on) {\n $time = microtime(TRUE);\n self::$_sessionMemoryStart = memory_get_usage();\n self::$_sessionBenchmarkStart = $time;\n self::$_sessionBenchmarkMarker = $time;\n } else {\n self::$_sessionBenchmarkOn = FALSE;\n }\n }", "function gen_token()\n\t{\n\t\t$ci = get_instance()->load->helper('myencrypt');\n\t\treturn create_token();\n\t}", "protected function createTokenTimestamp(): int\n {\n return time();\n }", "public function getToken()\n {\n return bin2hex(random_bytes(20));\n }", "public function generate_token($method = 1) \n {\n $token = '';\n if($method == 2) {\n $token = mt_rand(100000, 999999);\n\n } else {\n $token = str_random(10);\n }\n return $token;\n }", "private function createCsrfToken()\n {\n return sha1(microtime().$this->getLogin());\n }", "function clock_start($key = 'main') {\n $time = explode(' ', microtime());\n $start = (float)$time[0] + (float)$time[1];\n $GLOBALS['_clock_'][$key]['start'] = $start;\n return $start;\n }", "public static function getToken(): string\n {\n $token = static::generateToken();\n while (key_exists($token, static::$callbacks)) {\n $token = static::generateToken();\n }\n\n return $token;\n }", "public static function nextToken() {\n return bin2hex(openssl_random_pseudo_bytes(10));\n }", "function generate_token()\n {\n $this->load->helper('security');\n $res = do_hash(time().mt_rand());\n $new_key = substr($res,0,config_item('rest_key_length'));\n return $new_key;\n }", "public function newTimer(): int\n {\n $index = count($this->timers);\n $this->timers[$index] = microtime(true);\n return $index;\n }", "public function createToken(): self\n {\n $rawToken = random_bytes(self::TOKEN_SIZE);\n $this->token = Base64::encode($rawToken);\n $this->selector = Base64::encode(mb_substr($rawToken, 0, self::SELECTOR_SIZE, '8bit'));\n $this->hashedVerifier = Base64::encode(hash(Colloportus::HASH_FUNCTION, mb_substr($rawToken, self::SELECTOR_SIZE, self::VERIFIER_SIZE, '8bit'), true));\n\n return $this;\n }", "public function generateRandomToken():string;", "public function generateToken() {\n\t\t$appConfig = $this->config;\n\t\t$token = $this->secureRandom->generate(32);\n\t\t$appConfig->setAppValue('owncollab_ganttchart', 'sharetoken', $token);\n\t\treturn $token;\n\t}", "function getBenchmark(string $name){\n return $this->benchmarks[$name] ?? null;\n }", "public function create()\n\t{\n\t\t$c = bin2hex(random_bytes(32));\t\t\t\t\t\t\n\t\t$cnametoken = md5('cookie-name!' . time());\t\t\t// cookie name ; can be seen in the first 32 digits of string token\n\t\t$cname = md5('md5-cookie-name!' . $cnametoken);\t\t// real cookie name ; this is the cookie key set in the browser\n\t\t\n\t\t// stores the value in the client\n\t\t$this->_intf->set($cname, $c);\n\t\t\n\t\t// returns computed token\n\t\treturn $this->compute($cnametoken, $c, basename(__FILE__));\n\t}", "private function generateToken(): string\n {\n return Random::alphanum(self::TOKEN_LENGTH);\n }", "protected function create_token()\n {\n while (true) {\n // Create a random token\n $token = text::random('alnum', 32);\n\n // Make sure the token does not already exist\n if ($this->db->select('id')->where('token', $token)->get($this->table_name)->count() === 0) {\n // A unique token has been found\n return $token;\n }\n }\n }", "function GenerateToken()\n{\n $TokenRequest = '';\n $caracteres = ''; \n $lmai = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $num = '1234567890'; \n $caracteres .= $lmai;\n $caracteres .= $num;\n \n $len = strlen($caracteres); \n for ($i=0; $i < 15; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n \n $TokenRequest .= 'C';\n\n for ($i=0; $i < 15; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= 'C';\n\n for ($i=0; $i < 10; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= date('h');\n $TokenRequest .= 'B';\n\n for ($i=0; $i < 7; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= date('i');\n\n for ($i=0; $i < 5; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n\n $TokenRequest .= date('s');\n\n for ($i=0; $i < 2; $i++) \n { \n $rand = mt_rand(1, $len); \n $TokenRequest .= $caracteres[$rand-1];\n }\n \n return $TokenRequest;\n }", "function start() {\n $this->startMicrotime = microtime(true);\n return $this;\n }", "function generateCandiToken($name){\t\n\t$mydate = getdate();\n\t$token = sha1($name.\"candidate\");\n\treturn $token;\n}", "public function benchmark($num = 10) {\n echo \"Generating $num hashs: \";\n\n $start = (double) microtime() + time();\n\n for ($i = 0; $i < $num; $i++) {\n $this->hash(\"Benchmark\");\n }\n\n $ende = (double) microtime() + time();\n $diff = round($ende - $start, 4);\n\n echo \"Generated in \" . $diff . \" seconds; \" . ($diff / $num) . \" per hash\";\n }", "private static function generateUniqueApiToken()\n {\n $token = Str::limit(Str::random(150) . sha1(Carbon::now()->getTimestamp()), 190);\n\n return $token;\n }", "public function generate_token($username, $passwd) {\r\n return substr(sha1($username.$passwd.microtime(true).rand().$this->settings['magic']), 0, $this->settings['token_size']);\r\n }", "public static function generate_token() {\t\r\n\t\t$size = mcrypt_get_iv_size(MCRYPT_CAST_256, MCRYPT_MODE_CFB);\r\n\t\t$new_token = bin2hex(mcrypt_create_iv($size, MCRYPT_DEV_RANDOM));\r\n\t\treturn $new_token;\r\n\t}", "public function TimerStart()\r\n\t{\r\n\t\t$parts = explode( \" \", microtime() );\r\n\t\t$this->time_diff = 0;\r\n\t\t$this->time_start = $parts[1].substr( $parts[0],1 );\r\n\t}", "protected function create_token() {\n\t\twhile(true) {\n\t\t\t// Create a random token\n\t\t\t$token = str::random('alnum', 32);\n\n\t\t\t// Make sure the token does not already exist\n\t\t\tself::db()->use_master(YES);\n\t\t\tif (self::db()->select('user_token_id')->where('user_token_token', $token)->get($this->table_name)->count() === 0) {\n\t\t\t\t// A unique token has been found\n\t\t\t\treturn $token;\n\t\t\t}\n\t\t}\n\t}", "public static function generateToken() {\n $token = md5(rand());\n return $token;\n }", "function createToken($name)\n{\n\t$token=NULL;\n\t$token=uniqid(rand(), true);\n\t$_SESSION[$name.'Token']=$token;\n\t$_SESSION[$name.'Token_time']=time();\n\treturn $token;\n}", "public function __construct()\n\t{\n\t\t$this->tokenId = bin2hex(random_bytes(32));\n\t}", "public function __construct($name)\n\t{\n\t\t// Require requested benchmark class\n\t\trequire_once(APPROOT.'benchmark/'.strtolower($name).EXT);\n\n\t\t// Set instances, reflection and methods\n\t\t$class = 'Benchmark_'.ucwords($name);\n\t\t$this->_instance = new $class;\n\t\t$this->_reflection = new ReflectionClass($class);\n\t\t$this->_methods = $this->_reflection->getMethods(ReflectionMethod::IS_PUBLIC);\n\t}", "function createToken() {\n\treturn bin2hex(openssl_random_pseudo_bytes(32));\n}", "function generate_token()\n\t{\n\t return sha1(base64_encode(openssl_random_pseudo_bytes(30)));\n\t}", "function __construct() {\n $this->start_time = microtime(true);\n }", "protected function getNewToken()\n {\n return Str::random(60);\n }", "function create_token($procedure)\n\t{\n\t\t$time = time();\n\t\t// in the clear part we use value separator for better\n\t\t// handling in the token validation method (see below).\n\t\t// hash context goes as single concatenated string\n\t\treturn $token = \"$time|$procedure\\n\".hash('sha1', $this->engine->db->system_seed . $this->sid . $time . $procedure);\n\t}", "function generateToken()\n {\n return md5(uniqid(rand().time(),true));\n }", "function generateToken($varname){\n\t\t$token = bin2hex(random_bytes(16));\n\t\tcreateSession($varname,$token);\n\t\treturn $token;\n\t}", "public function generateToken(): string\n {\n $token = bin2hex(random_bytes(16));\n $this->setTokens($this->limitTokens(\n array_merge($this->getTokens(), [$token])\n ));\n return $token;\n }", "public function generateToken(): string\n {\n $token = bin2hex(random_bytes(16));\n $tokens = $_SESSION[$this->sessionKey] ?? [];\n $tokens[] = $token;\n $_SESSION[$this->sessionKey] = $this->limitTokens($tokens);\n return $token;\n }", "private function startTimer()\n\t{\n\t\t// Keep statistics\n\t\tself::$totalCallCount++;\n\n\t\t// Rough execution time\n\t\t$this->startMicroStamp = microtime(true);\n\t}", "public function generateToken()\n {\n if($this->api_token == null)\n $this->api_token = str_random(60);\n $this->save();\n return $this;\n }", "public function start($id = self::DEFAULT_ID)\n {\n $microtime = false;\n if (self::$enabled) {\n $id = (!$id) ? self::DEFAULT_ID : (string)$id;\n if (isset($this->start[$id])) {\n $this->toss(\n \"Profiling\",\n \"Profiling has already started for identifier '{0}'.\",\n $id\n );\n }\n \n $this->start[$id] = $microtime = microtime(true);\n }\n \n return $microtime;\n }", "private function createOwnToken($request)\n {\n $own_token = substr(str_shuffle('azertyuiopqsdfghjklmwxcvbn123456789'), 0, 12);\n $request->getSession()->set(self::OWN_TOKEN_NAME, $own_token);\n return $own_token;\n }", "private static function microtimeStart(string $label): void\n {\n if (self::$status[$label]) {\n self::$microtimeStart[$label] = microtime(true);\n }\n }", "public function createToken();", "function create_token(): string\n {\n $strs = \"QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm\";\n $str = substr(str_shuffle($strs),mt_rand(0,strlen($strs)-11),12);\n return md5($str);\n }", "private static function create_token( $timestamp )\n\t{\n\t\t$token = substr( md5( $timestamp . Options::get( 'GUID' ) ), 0, 10 );\n\t\t$token = Plugins::filter( 'jambo_token', $token, $timestamp );\n\t\treturn $token;\n\t}", "public function start($method)\r\n {\r\n $this->reset($method);\r\n if ($this->helper->getConfigValue('BENCHMARK_ENABLE')) {\r\n $this->startTime[$method] = round(microtime(true) * 1000);\r\n $this->logger->info(\"Method: \". $method);\r\n $this->logger->info(\"Start time: \". $this->startTime[$method]);\r\n \\Magento\\Framework\\Profiler::start($method);\r\n }\r\n }", "private static function setSubmitToken() {\n// preventing double submitting\n $token = md5(time());\n $_SESSION[$token] = true;\n\n return $token;\n }", "public function generateToken()\n {\n if (empty($this->username) || empty($this->api_token)) {\n throw new \\Exception(\"Username and Api Token must be set\");\n }\n $time = time();\n return hash_hmac(\"sha256\", $this->username . \"::\" . $this->api_token . \"::\" . $time, $this->api_token);\n }", "public function __construct()\n {\n $this->newToken = sha1(time().time()+60*60);\n }", "private function setToken()\n {\n if (!$this->token) {\n if (is_callable('openssl_random_pseudo_bytes')) {\n $this->token = bin2hex(openssl_random_pseudo_bytes(16));\n } else {\n $this->token = md5(uniqid('', true));\n }\n }\n\n return $this->token;\n }", "public static function cookieToken(): string\n {\n return mt_rand(1000, 9999).\".\".self::setToken(10);\n }", "public function start() {\n $this->startedAt = microtime(true);\n return $this;\n }", "public function createToken()\n {\n $mock = $this->mock('Dhii\\Parser\\Tokenizer\\TokenInterface')\n ->get()\n ->has()\n ->getKey()\n ->getValue()\n ->getLineNumber()\n ->getColumnNumber()\n ->new();\n\n return $mock;\n }", "public function start()\n {\n $this->fStarted = microtime(true);\n $this->iStartMemoryUsage = memory_get_usage();\n }", "protected function createToken()\n {\n $currentServerIp = $this->request->server('SERVER_ADDR');\n\n $secretKey = $this->config['doublespark_contaobridge_secret_key'];\n\n return md5('phpbbbridge'.date('d/m/Y').$currentServerIp.$secretKey);\n }", "private function createToken()\n {\n $this->token = md5(time().uniqid());\n return true;\n }", "function one_time_token(): string\n\t\t{\n\t\t\treturn session()->generateOneTimeToken();\n\t\t}", "public function token()\n {\n // echo 'pk';\n try {\n $this->heimdall->createToken();\n } catch (Exception $exception) {\n $this->heimdall->handleException($exception);\n }\n }", "private static function generateSignature() {\n $result = microtime(true);\n return substr($result, -7);\n }", "public function testStart() {\n $timer = new timer( false );\n\n // It should return a starting number\n $this->assertGreaterThan( 0, $timer->start() );\n\t}", "function _timerStart($key){\n\tglobal $_gTimers;\n\n\tif (!$_gTimers) $_gTimers = array();\n\n\tif (empty($_gTimers[$key]))\n\t\t$_gTimers[$key] = array(microtime(true),0, 1);\n\telse{\n\t\t$_gTimers[$key][0] = microtime(true);\n\t\t$_gTimers[$key][2] = 1;\n\t}\n\n\treturn $_gTimers[$key][0];\n}", "protected function _generateId()\n {\n return str_replace('.', '', microtime(true));\n }", "public function beginProfile($token, $category='application'){\n\t\t$log = array(\"Begin Profiling $token\", 8, $category, microtime(true));\n\t\t$this->_logs[] = $log;\n\t\t$this->_profiles[$token] = $log;\n\t\t$this->_profiles[$token]['startmem'] = $this->memory_used();\n\t}", "public function generateToken() : string\n {\n if (@file_exists('/dev/urandom')) { // Get 100 bytes of random data\n $randomData = file_get_contents('/dev/urandom', false, null, 0, 100);\n } elseif (function_exists('openssl_random_pseudo_bytes')) { // Get 100 bytes of pseudo-random data\n $bytes = openssl_random_pseudo_bytes(100, $strong);\n if (true === $strong && false !== $bytes) {\n $randomData = $bytes;\n }\n }\n\n // Last resort: mt_rand\n if (empty($randomData)) { // Get 108 bytes of (pseudo-random, insecure) data\n $randomData = mt_rand() . mt_rand() . mt_rand() . uniqid(mt_rand(), true) . microtime(true) . uniqid(\n mt_rand(),\n true\n );\n }\n\n return rtrim(strtr(base64_encode(hash('sha256', $randomData)), '+/', '-_'), '=');\n }", "public function __construct($name)\r\n\t{\r\n\t\t$this->name = $name;\r\n\t\t$this->start = microtime(true);\r\n\t\t$this->last = $this->start;\r\n\t}", "public function generateRequestID()\n {\n //\t\tdate_default_timezone_set('America/Chicago');\n $currenttime = date('YmdHis');\n $randomnumber = rand(0, 9999);\n\n return $currenttime.$randomnumber;\n }", "public function generateSupportId() {\n\n $sid = 'TM';\n for ($i=0; $i<10; $i++){\n $sid .= mt_rand(0, 9);\n }\n return $sid;\n\n }", "function getStartMicrotime();" ]
[ "0.60057586", "0.59616685", "0.58684236", "0.5759473", "0.5707705", "0.5639359", "0.5567604", "0.5558308", "0.55546695", "0.5497097", "0.54897106", "0.5476463", "0.5430612", "0.53824544", "0.53724724", "0.53352946", "0.53007776", "0.529233", "0.5236586", "0.51943654", "0.51932615", "0.518275", "0.51739895", "0.51303613", "0.51210546", "0.51188827", "0.5089385", "0.50789034", "0.50746614", "0.5069843", "0.50663584", "0.50412625", "0.5000714", "0.49979162", "0.4973665", "0.49718136", "0.49565837", "0.49414656", "0.49376345", "0.49314648", "0.49137858", "0.4908394", "0.49057415", "0.4887617", "0.48851737", "0.4856871", "0.4849871", "0.48488238", "0.48323336", "0.48219556", "0.4821287", "0.481863", "0.4816308", "0.48148668", "0.48134428", "0.48108703", "0.4800414", "0.4798315", "0.47500843", "0.47489992", "0.4737081", "0.4736552", "0.4731285", "0.47302878", "0.47284752", "0.47219113", "0.47135934", "0.4712232", "0.47021875", "0.46977946", "0.46968088", "0.46891063", "0.4670583", "0.46677873", "0.4655886", "0.46539602", "0.46509126", "0.46482584", "0.46456382", "0.4644181", "0.4642228", "0.46381417", "0.4638071", "0.46369237", "0.4628527", "0.46126", "0.46045607", "0.46024293", "0.45954812", "0.459337", "0.45849222", "0.4575573", "0.45705792", "0.45606166", "0.4559923", "0.45581266", "0.4556541", "0.45532945", "0.4550756", "0.45498803" ]
0.5567536
7
Returns all the benchmark tokens by group and name as an array.
public static function groups() { $groups = array(); foreach (Profiler::$_marks as $token => $mark) { // Sort the tokens by the group and name $groups[$mark['group']][$mark['name']][] = $token; } return $groups; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBenchmarksByGroup(string $name){\n $benchmark_group = [];\n foreach($this->benchmarks as $benchmark){\n if($benchmark->getName() == $name || Text::startsWith($benchmark->getName(), $name.'.')){\n $benchmark_group[] = $benchmark;\n }\n }\n return $benchmark_group;\n }", "protected static function get_benchmarks() : array\n\t{\n\t\t$result = [];\n\n\t\tif (! Kohana::$profiling)\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\n\t\t$groups = Profiler::groups();\n\n\t\tforeach (array_keys($groups) as $group)\n\t\t{\n\t\t\tif (strpos($group, 'database (') === FALSE)\n\t\t\t{\n\t\t\t\tforeach ($groups[$group] as $name => $marks)\n\t\t\t\t{\n\t\t\t\t\t$stats = Profiler::stats($marks);\n\t\t\t\t\t$result[$group][] = [\n\t\t\t\t\t\t'name' => $name,\n\t\t\t\t\t\t'count' => count($marks),\n\t\t\t\t\t\t'total_time' => $stats['total']['time'],\n\t\t\t\t\t\t'avg_time' => $stats['average']['time'],\n\t\t\t\t\t\t'total_memory' => $stats['total']['memory'],\n\t\t\t\t\t\t'avg_memory' => $stats['average']['memory'],\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// add total stats\n\t\t$total = Profiler::application();\n\t\t$result['application'] = [\n\t\t\t'count' => 1,\n\t\t\t'total_time' => $total['current']['time'],\n\t\t\t'avg_time' => $total['average']['time'],\n\t\t\t'total_memory' => $total['current']['memory'],\n\t\t\t'avg_memory' => $total['average']['memory'],\n\n\t\t];\n\n\t\treturn $result;\n\t}", "public function getTokens();", "public function getGroupedOpcodesDataProvider(): array\n {\n return [\n [\n <<<'EOT'\napples\noranges\nkiwis\ncarrots\nEOT\n ,\n <<<'EOT'\napples\nkiwis\ncarrots\ngrapefruits\nEOT\n ,\n [\n [\n [SequenceMatcher::OP_EQ, 0, 1, 0, 1],\n [SequenceMatcher::OP_DEL, 1, 2, 1, 1],\n [SequenceMatcher::OP_EQ, 2, 4, 1, 3],\n [SequenceMatcher::OP_INS, 4, 4, 3, 4],\n ],\n ],\n ],\n ];\n }", "public function tokensDataProvider(): array\n {\n return [\n 'PHP 7' => [\n [\n 0 => [T_WHITESPACE, ' '],\n 1 => [T_NS_SEPARATOR, '\\\\'],\n 2 => [T_STRING, 'Object'],\n 3 => [T_PAAMAYIM_NEKUDOTAYIM, '::'],\n ]\n ],\n 'PHP 8' => [\n [\n 0 => [T_WHITESPACE, ' '],\n 1 => [T_NAME_FULLY_QUALIFIED, '\\\\Object'],\n 2 => [T_PAAMAYIM_NEKUDOTAYIM, '::'],\n ]\n ]\n ];\n }", "private function get_token() \n {\n if ($this->last_token === 'TK_TAG_SCRIPT' || $this->last_token === 'TK_TAG_STYLE') { //check if we need to format javascript\n $type = substr($this->last_token, 7);\n $token = $this->get_contents_to($type);\n if (!is_string($token)) {\n return $token;\n }\n return array($token, 'TK_' . $type);\n }\n if ($this->current_mode === 'CONTENT') {\n $token = $this->get_content();\n \n if (!is_string($token)) {\n return $token;\n } else {\n return array($token, 'TK_CONTENT');\n }\n }\n\n if ($this->current_mode === 'TAG') {\n $token = $this->get_tag();\n\n if (!is_string($token)) {\n return $token;\n } else {\n $tag_name_type = 'TK_TAG_' . $this->tag_type;\n return array($token, $tag_name_type);\n }\n }\n }", "public function getGroupedOpcodesDataProvider(): array\n {\n return [\n [\n <<<'EOT'\napples\noranges\nkiwis\ncarrots\nEOT\n ,\n <<<'EOT'\napples\nkiwis\ncarrots\ngrapefruits\nEOT\n ,\n [\n [\n ['eq', 0, 1, 0, 1],\n ['del', 1, 2, 1, 1],\n ['eq', 2, 4, 1, 3],\n ['ins', 4, 4, 3, 4],\n ],\n ],\n ],\n ];\n }", "function getBenchmarksByTag(string $tag){\n $benchmarks = [];\n foreach ($this->benchmarks as $benchmark){\n if($benchmark->hasTag($tag)){\n $benchmarks[] = $benchmark;\n }\n }\n return $benchmarks;\n }", "public static function start($group, $name, $data=false, $trace = false) {\n\t\tstatic $counter = 0;\n\n\t\t// Create a unique token based on the counter\n\t\t$token = 'kp/'.base_convert($counter++, 10, 32);\n\n\t\tProfiler::$_marks[$token] = array\n\t\t(\n\t\t\t'group' => strtolower($group),\n\t\t\t'name' => (string) $name,\n\n\t\t\t// Start the benchmark\n\t\t\t'start_time' => microtime(TRUE),\n\t\t\t'start_memory' => memory_get_usage(),\n\n\t\t\t// Set the stop keys without values\n\t\t\t'stop_time' => FALSE,\n\t\t\t'stop_memory' => FALSE,\n\t\t\t'data' => $data,\n\t\t\t'trace' => $trace\n\t\t);\n\n\t\treturn $token;\n\t}", "public function getGroups(): array;", "public function token_set($grouppost){\n\n $group = (explode(\",\",$grouppost)); //get string grouppost coverto array\n\n foreach($group as $grouparr){ //get toke from $group\n\n $sql = \"SELECT Token FROM notify_token WHERE GroupName = '$grouparr'\";\n $exc = $this->con->query($sql);\n $row = $exc->fetch_array();\n $token[] = $row['Token'];\n }\n \n return $token;\n }", "public static function getGroups(): array\n {\n return ['test'];\n }", "public function groups() {\n\t\tif (empty($this->_compiledGroupNames)) {\n\t\t\tforeach ($this->settings['groups'] as $group) {\n\t\t\t\t$this->_compiledGroupNames[] = $this->settings['prefix'] . $group;\n\t\t\t}\n\t\t}\n\n\t\t$groups = $this->_Memcached->getMulti($this->_compiledGroupNames);\n\t\tif (count($groups) !== count($this->settings['groups'])) {\n\t\t\tforeach ($this->_compiledGroupNames as $group) {\n\t\t\t\tif (!isset($groups[$group])) {\n\t\t\t\t\t$this->_Memcached->set($group, 1, 0);\n\t\t\t\t\t$groups[$group] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tksort($groups);\n\t\t}\n\n\t\t$result = array();\n\t\t$groups = array_values($groups);\n\t\tforeach ($this->settings['groups'] as $i => $group) {\n\t\t\t$result[] = $group . $groups[$i];\n\t\t}\n\n\t\treturn $result;\n\t}", "protected static function get_queries() : array\n\t{\n\t\t$result = [];\n\t\t$count = $time = $memory = 0;\n\n\t\t$groups = Profiler::groups();\n\t\tforeach (Database::$instances as $name => $db)\n\t\t{\n\t\t\t$group_name = 'database ('.strtolower($name).')';\n\t\t\t$group = arr::get($groups, $group_name, FALSE);\n\n\t\t\tif ($group)\n\t\t\t{\n\t\t\t\t$sub_time = $sub_memory = $sub_count = 0;\n\t\t\t\tforeach ($group as $query => $tokens)\n\t\t\t\t{\n\t\t\t\t\t$sub_count += count($tokens);\n\t\t\t\t\tforeach ($tokens as $token)\n\t\t\t\t\t{\n\t\t\t\t\t\t$total = Profiler::total($token);\n\t\t\t\t\t\t$sub_time += $total[0];\n\t\t\t\t\t\t$sub_memory += $total[1];\n\t\t\t\t\t\t$result[$name][] = [\n\t\t\t\t\t\t\t'name' => $query,\n\t\t\t\t\t\t\t'time' => $total[0],\n\t\t\t\t\t\t\t'memory' => $total[1]\n\t\t\t\t\t\t];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$count += $sub_count;\n\t\t\t\t$time += $sub_time;\n\t\t\t\t$memory += $sub_memory;\n\n\t\t\t\t$result[$name]['total'] = [$sub_count, $sub_time, $sub_memory];\n\t\t\t}\n\t\t}\n\t\treturn [\n\t\t\t'count' => $count,\n\t\t\t'time' => $time,\n\t\t\t'memory' => $memory,\n\t\t\t'data' => $result\n\t\t];\n\t}", "public static function getGroups(): array\r\n {\r\n // TODO: Implement getGroups() method.\r\n return [\r\n 'test',\r\n 'dev',\r\n ];\r\n }", "private function createSpans(): array\n {\n $spans = [];\n\n foreach ($this->calls as $call) {\n $span = new Span();\n $span->setName($call['name']);\n $span->setTimestamp(intval(round($call['start'])));\n $span->setType(self::SPAN_TYPE);\n $span->setDuration($this->calculateCallDuration($call));\n\n $spans[] = $span;\n }\n\n return $spans;\n }", "public function getTokens(): array\n {\n return $this->tokens;\n }", "public function extractTokens()\n {\n // Prepare the opening and closing tags for the regex\n $openingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->openingTag ) ) );\n $closingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->closingTag ) ) );\n\n // Build the regex\n $regex = sprintf( '/%s([A-Z-_0-9]+)%s/i', $openingTag, $closingTag );\n\n // Find all the tokens in the string\n preg_match_all( $regex, $this->content, $matches, PREG_PATTERN_ORDER );\n\n // If there are no matches, simply return an empty array\n if ( empty( $matches[1] ) )\n {\n return [];\n }\n\n // Return a unique list of tokens\n return array_unique( $matches[ 1 ] );\n }", "public function token($options = ['format' => 'table']) {\n $all = \\Drupal::token()->getInfo();\n foreach ($all['tokens'] as $group => $tokens) {\n foreach ($tokens as $key => $token) {\n $rows[] = [\n 'group' => $group,\n 'token' => $key,\n 'name' => $token['name'],\n ];\n }\n }\n return new RowsOfFields($rows);\n }", "public static function total($token) {\n\t\t// Import the benchmark data\n\t\t$mark = Profiler::$_marks[$token];\n\n\t\tif ($mark['stop_time'] === FALSE) {\n\t\t\t// The benchmark has not been stopped yet\n\t\t\t$mark['stop_time'] = microtime(TRUE);\n\t\t\t$mark['stop_memory'] = memory_get_usage();\n\t\t}\n\n\t\treturn array\n\t\t(\n\t\t\t// Total time in seconds\n\t\t\t$mark['stop_time'] - $mark['start_time'],\n\n\t\t\t// Amount of memory in bytes\n\t\t\t$mark['stop_memory'] - $mark['start_memory'],\n\t\t\t// Data attached to benchmark\n\t\t\t$mark['data'],\n\t\t\t$mark[\"trace\"]\n\t\t);\n\t}", "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 getGroupNames()\n {\n $groups = deserialize( $this->groups );\n if ( ! count( $groups ) )\n {\n return array();\n }\n\n $query = 'select name from ' . $this->group_table . ' where ';\n $params = array();\n foreach ( $groups as $group )\n {\n $query .= 'id = ? or ';\n $params[] = $group;\n }\n\n $query = substr( $query, 0, strlen( $query ) - 4 );\n\n $records = $this->Database->prepare( $query )\n ->execute( $params );\n\n $group_names = array();\n while ( $records->next() )\n {\n $group_names[] = $records->name;\n }\n\n return $group_names;\n }", "function getAllTokens($sql){\n $txt = \"\";\n $rez = vrati_podatke($sql);\n $tokens=array();\n if ($rez->num_rows > 0) {\n while ($row = $rez->fetch_assoc()) {\n array_push($tokens, $row[\"token\"]);\n }\n } \n return $tokens;\n}", "public static function getGroups(): array\n {\n return [\"group2\"];\n }", "function timeconditions_timegroups_list_groups() {\n\tglobal $db;\n\t$tmparray = array();\n\n\t$sql = \"select id, description from timegroups_groups order by description\";\n\t$results = $db->getAll($sql);\n\tif(DB::IsError($results)) {\n\t\t$results = null;\n\t}\n\tforeach ($results as $val) {\n\t\t$tmparray[] = array($val[0], $val[1], \"value\" => $val[0], \"text\" => $val[1]);\n\t}\n\treturn $tmparray;\n}", "public static function total($token)\n\t{\n\t\t// Import the benchmark data\n\t\t$mark = Profiler::$_marks[$token];\n\n\t\tif ($mark['stop_time'] === FALSE)\n\t\t{\n\t\t\t// The benchmark has not been stopped yet\n\t\t\t$mark['stop_time'] = microtime(TRUE);\n\t\t\t$mark['stop_memory'] = memory_get_usage();\n\t\t}\n\n\t\treturn array\n\t\t(\n\t\t\t// Total time in seconds\n\t\t\t$mark['stop_time'] - $mark['start_time'],\n\t\t\t// Amount of memory in bytes\n\t\t\t$mark['stop_memory'] - $mark['start_memory'],\n\t\t\t\n\t\t\t$mark['file'],\n\t\t\t$mark['line']\n\t\t);\n\t}", "public function getTokens() {\n\t\treturn array_keys($this->tokens);\n\t}", "function drush_test_list($groups) {\n foreach ($groups as $group_name => $group_tests) {\n foreach ($group_tests as $test_class => $test_info) {\n $rows[] = array('group' => $group_name, 'class' => $test_class, 'name' => $test_info['name']);\n }\n }\n return $rows;\n}", "public function tgroupInfo(): array {\n if (empty($this->groupVote)) {\n $key = sprintf(self::VOTED_GROUP, $this->groupId);\n $groupVote = self::$cache->get_value($key);\n if ($groupVote === false) {\n $groupVote = self::$db->rowAssoc(\"\n SELECT Ups, `Total`, Score FROM torrents_votes WHERE GroupID = ?\n \", $this->groupId\n );\n if (is_null($groupVote)) {\n $groupVote = ['Ups' => 0, 'Total' => 0, 'Score' => 0];\n }\n self::$cache->cache_value($key, $groupVote, 259200); // 3 days\n }\n $this->groupVote = $groupVote;\n }\n return $this->groupVote;\n }", "public function get_results_by_group($group_name) {\n\t\ttry {\n\t\t\t$results = $this->soap->getResultListByGroup(array(\n\t\t\t\t\"Group_Name\" => $group_name\n\t\t\t));\n\t\t} catch(SoapFault $e) {\n\t\t\tthrow new QMWiseException($e);\n\t\t}\n\t\tif(!is_array($results->ResultList->Result)) return array($results->ResultList->Result);\n\t\treturn $results->ResultList->Result;\n\t}", "public function getTokens(Context $context);", "function get_tokens($input, $tokens)\r\n{\r\n $ret = array();\r\n $tok = strtok($input, $tokens);\r\n while ($tok !== false)\r\n {\r\n array_push($ret, $tok);\r\n $tok = strtok($tokens);\r\n }\r\n return $ret;\r\n}", "public static function getGroups(): array\r\n {\r\n return [\r\n 'dev',\r\n 'pre',\r\n ];\r\n }", "public static function stats(array $tokens)\n\t{\n\t\t$min = $max = array(\n\t\t\t'time' => NULL,\n\t\t\t'memory' => NULL);\n\n\t\t// Total values are always integers\n\t\t$total = array(\n\t\t\t'time' => 0,\n\t\t\t'memory' => 0);\n\t\n\t\tforeach ($tokens as $token)\n\t\t{\n\t\t\t$other = Profiler::$_marks[$token]['other'];\n\t\t\t// Get the total time and memory for this benchmark\n\t\t\tlist($time, $memory) = Profiler::total($token);\n\n\t\t\tif ($max['time'] === NULL OR $time > $max['time'])\n\t\t\t{\n\t\t\t\t// Set the maximum time\n\t\t\t\t$max['time'] = $time;\n\t\t\t}\n\n\t\t\tif ($min['time'] === NULL OR $time < $min['time'])\n\t\t\t{\n\t\t\t\t// Set the minimum time\n\t\t\t\t$min['time'] = $time;\n\t\t\t}\n\n\t\t\t// Increase the total time\n\t\t\t$total['time'] += $time;\n\n\t\t\tif ($max['memory'] === NULL OR $memory > $max['memory'])\n\t\t\t{\n\t\t\t\t// Set the maximum memory\n\t\t\t\t$max['memory'] = $memory;\n\t\t\t}\n\n\t\t\tif ($min['memory'] === NULL OR $memory < $min['memory'])\n\t\t\t{\n\t\t\t\t// Set the minimum memory\n\t\t\t\t$min['memory'] = $memory;\n\t\t\t}\n\n\t\t\t// Increase the total memory\n\t\t\t$total['memory'] += $memory;\n\t\t}\n\n\t\t// Determine the number of tokens\n\t\t$count = count($tokens);\n\n\t\t// Determine the averages\n\t\t$average = array(\n\t\t\t'time' => $total['time'] / $count,\n\t\t\t'memory' => $total['memory'] / $count);\n\n\t\treturn array(\n\t\t\t'min' => $min,\n\t\t\t'max' => $max,\n\t\t\t'total' => $total,\n\t\t\t'average' => $average,\n\t\t\t'other'=>$other\n\t\t);\n\t}", "public function findServiceGroups(): array;", "function &get_xoops_token()\n{\n\tif ( class_exists('XoopsMultiTokenHandler') )\n\t{\n\t\t$token =& XoopsMultiTokenHandler::quickCreate( $this->_TOKEN_NAME );\n\t\t$name = $token->getTokenName();\n\t\t$value = $token->getTokenValue();\n\t}\n\telse\n\t{\n\t\t$name = 'token';\n\t\t$value = 0;\n\t}\n\t$arr = array($name, $value);\n\treturn $arr;\n}", "public function providerDeviceToken()\n {\n return array(\n array('foo_bar', true),\n array(str_repeat('aq', 32), true),\n array(str_repeat('af', 32), false),\n array(str_repeat('AF', 32), false)\n );\n }", "function simpletest_drush_test_groups($tests) {\n $groups = array();\n foreach (simpletest_categorize_tests($tests) as $name => $group) {\n $sanitized = strtr($name, array(' ' => ''));\n $groups[$sanitized] = $group;\n }\n return $groups;\n}", "private function parse($input) {\n $tokens= [];\n foreach (new Tokens(new StringTokenizer($input)) as $type => $value) {\n $tokens[]= [$type, $value];\n }\n return $tokens;\n }", "static function Tokenize($t)\n\t{\n\t\treturn array($t[0], count($t) == 3 ? $t[1] : $t[0]);\n\t}", "public function allNamed(): array;", "public function getToken()\n {\n return array($this->_token, $this->_token_secret);\n }", "public static function results_all() {\n\t\t$results = array();\n\t\tforeach (self::$timers as $key => $value) {\n\t\t\t$results[$key] = self::$results($key);\n\t\t}\n\t\treturn $results;\n\t}", "function get_groups($box)\n {\n $arr = array();\n foreach ($box['groups'] as $group_key)\n {\n $group = $this->fs_groups->get($group_key);\n if (is_array($group))\n {\n $group['tag_id'] = $box['tag_id'] . '-' . $group['key'];\n $arr[] = $group;\n }\n }\n sort_by_order(&$arr);\n return $arr;\n }", "function exportTokens() {\n\t\treturn $this->tokens;\n\t}", "public function getTests()\n {\n $tests = array();\n foreach ($this->benchmarks as $benchmark) {\n $tests += $benchmark->getTests();\n }\n\n return $tests;\n }", "public function getGroups() {}", "function getActionsByGroupId($groupId, $limit = NULL, $offset = NULL) {\n $sql = \"SELECT action_id, action_name\n FROM %s\n WHERE action_group = %d\n ORDER BY action_name ASC\";\n $sqlParams = array($this->tableActions, $groupId);\n $result = array();\n if ($res = $this->databaseQueryFmt($sql, $sqlParams, $limit, $offset)) {\n while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {\n $result[$row['action_id']] = $row['action_name'];\n }\n }\n return $result;\n }", "function getAllDevices() {\n //get devices from tdtool\n $devs = shell_exec(\"tdtool --list-devices\");\n\n //turn raw result into array\n $devicelist = array();\n preg_match_all('/type=(?<type>\\w+)\\tid=(?<id>\\d+)\\tname=(?<name>[a-zA-ZæøåÆØÅ\\-]+)\\tlastsentcommand=(?<lastcommand>\\w+)/', $devs, $matches);\n for ($x = 0; $x < count($matches[0]); $x++) {\n $devicelist[] = array(\"id\" => $matches[\"id\"][$x], \"name\" => $matches[\"name\"][$x], \"lastcommand\" => $matches[\"lastcommand\"][$x]);\n }\n return $devicelist;\n}", "public function getInGroup($group)\n {\n $settings = [];\n foreach ($group as $item) {\n $settings[$item] = $this->get($item);\n }\n return $settings;\n }", "public function sample()\n\t{\n\t\treturn array(\n\t\t\t'header' => 'groups',\n\t\t\t'content' => 'groupalias;groupalias;groupalias'\n\t\t);\n\t}", "public function get_options($group = 'student_status') {\n\t\t$query = $this->db\n\t\t\t->select('id, option')\n\t\t\t->where('group', $group)\n\t\t\t->where('is_deleted', 'false')\n\t\t\t->order_by('id', 'ASC')\n\t\t\t->get(self::$table);\n\t\t$data = [];\n\t\tforeach($query->result() as $row) {\n\t\t\t$data[$row->id] = $row->option;\n\t\t}\n\t\treturn $data;\n\t}", "public function getUserTokens();", "public function groups()\n {\n return $this->morphedByMany(Group::class, 'device_tokenable')->withTimestamps();\n }", "abstract public function getMatches(array $tokens, array $info = []): array;", "public function calculateTokensPerUsage();", "public function getTokenParsers()\n {\n return array();\n }", "public function getTokenParsers()\n {\n return array();\n }", "function getActionGroups($limit = NULL, $offset = NULL) {\n $sql = \"SELECT actiongroup_id, actiongroup_name\n FROM %s\n ORDER BY actiongroup_name ASC\";\n $sqlParams = array($this->tableGroups);\n $result = array();\n if ($res = $this->databaseQueryFmt($sql, $sqlParams, $limit, $offset)) {\n while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {\n $result[$row['actiongroup_id']] = $row['actiongroup_name'];\n }\n }\n return $result;\n }", "public function get_tokens()\n\t{\n\t\treturn $this->tokens;\n\t}", "protected function _getCacheTags()\n\t{\n\t\t$tags = array(\n\t\t\tself::CACHE_GROUP,\n\t\t\tMage_Catalog_Model_Product::CACHE_TAG,\n\t\t\tMage_Core_Model_Store_Group::CACHE_TAG,\n\t\t);\n\n\t\treturn $tags;\n\t}", "private function getGroupTplData( $group ) {\n $g = esf_Auctions::$Groups[$group];\n return array(\n 'NAME' => $group,\n 'AUCTIONGROUP' => (!isset(esf_Auctions::$Auctions[$group]) ? $group : ''),\n 'QUANTITY' => $g['q'],\n 'BID' => $g['b'],\n 'TOTAL' => $g['t'],\n 'COMMENT' => $g['c'],\n 'COUNT' => $g['a'],\n 'ENDED' => ($g['r'] < 1),\n );\n }", "function getPublicVarArray($dbConnect, $group, $name){\r\n $ret = array();\r\n\r\n $sql = \"select * from public_vars where gruppe = '\" .$group .\"' and name = '\" .$name .\"' ORDER BY sortnr\";\r\n $res = $dbConnect->executeQuery($sql);\r\n \r\n while ($row = mysql_fetch_array($res)){\r\n $ret[$row['titel']] = $row['text'];\r\n }\r\n\r\n return $ret; \r\n }", "public function get_token_list($session_key, $sid)\n\t{\n if ($this->_checkSessionKey($session_key))\n {\n\t\t\t$surveyidExists = Survey::model()->findByPk($sid);\t\t \n\t\t\tif (!isset($surveyidExists))\n\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('Invalid surveyid', 22);\n\n\t\t\t\n\t\t\tif(!tableExists(\"{{tokens_$sid}}\"))\n\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('No token table', 11);\n\n\t\t\t \n\t\t\tif (hasSurveyPermission($sid, 'tokens', 'read'))\n\t\t\t{\t\n\n\t\t\t\t$tokens = Tokens_dynamic::model($sid)->findAll();\n\t\t\t\tif(count($tokens)==0)\n\t\t\t\t\tthrow new Zend_XmlRpc_Server_Exception('No Tokens found', 30);\n\t\t\t\t\n\t\t\t\tforeach ($tokens as $token)\n\t\t\t\t\t{\n\t\t\t\t\t\t$aData[] = array(\n\t\t\t\t\t\t\t\t\t'tid'=>$token->primarykey,\n\t\t\t\t\t\t\t\t\t'token'=>$token->attributes['token'],\n\t\t\t\t\t\t\t\t\t'participant_info'=>array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'firstname'=>$token->attributes['firstname'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'lastname'=>$token->attributes['lastname'],\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'email'=>$token->attributes['email'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\t\t\t}\n\t\t\t\treturn $aData;\t\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\tthrow new Zend_XmlRpc_Server_Exception('No permission', 2); \t \n }\t\t\t\t\n\t}", "protected function createAllPossibleTeams(Group $group)\n {\n $teamArray = array();\n $z = 0;\n foreach ($group->groupUsers as $user1) {\n foreach ($group->groupUsers as $user2) {\n if ($user1->id < $user2->id) {\n $teamArray[$z]['player1'] = $user1->id;\n $teamArray[$z]['player2'] = $user2->id;\n $z++;\n }\n }\n }\n return $teamArray;\n }", "function getBenchmark(string $name){\n return $this->benchmarks[$name] ?? null;\n }", "protected function getFieldNameArray(string $name): array\n {\n if (empty($name) && $name !== '0') {\n return [];\n }\n\n if (!str_contains($name, '[')) {\n return Hash::filter(explode('.', $name));\n }\n $parts = explode('[', $name);\n $parts = array_map(function ($el) {\n return trim($el, ']');\n }, $parts);\n\n return Hash::filter($parts, 'strlen');\n }", "public function getTokens()\n {\n return $this->tokens;\n }", "protected function getGroups() {\n return DB::table('translation_identifiers')->select('group')->groupBy(['group'])->get()->pluck('group');\n }", "function symbolsForAllClasses($sourceClass, $groupBy = null) {\n $classlikes = new MergeSources(array(\n new ClassNames, new Interfaces\n ));\n $groups = array();\n foreach ($classlikes->symbols() as $class) {\n $source = new $sourceClass((string) $class);\n if ($source) {\n foreach ($source->symbols() as $symbol) {\n if ($groupBy === null) {\n $groups[(string) $symbol][] = $symbol;\n } else {\n $groups[call_user_func($groupBy, $symbol)][] = $symbol;\n }\n }\n }\n }\n $values = array();\n foreach ($groups as $hash => $group) {\n if (count($group) === 1) {\n $values[] = $group[0];\n } else {\n $values[] = new MultiSymbol($group);\n }\n }\n return $values;\n}", "public function fieldNameArray($result = false){\n $names = array();\n\n $field = $this->numFields($result);\n\n for ( $i = 0; $i < $field; $i++ ){\n $names[] = $this->fieldName($result, $i);\n }\n\n return $names;\n }", "public function getTestResultsData()\n {\n $out = [];\n\n // Case #0, sorted in default acceding\n $out[] = [\n [\n 'green',\n 'yellow',\n 'red',\n 'blue',\n ],\n 'sc'\n ];\n\n // Case #1, sorted in descending order by term, blue is prioritized.\n $out[] = [\n [\n 'acme',\n 'bar',\n 'foo',\n ],\n 'sc_zero_choices'\n ];\n\n // Case #2, all items prioritized, so sorting shouldn't matter.\n $out[] = [\n [\n 'blue',\n 'green',\n ],\n 'sc_sort_term_a'\n ];\n\n // Case #3, sort items by count, red prioritized.\n $out[] = [\n [\n 'yellow',\n ],\n 'sc_sort_term_d'\n ];\n\n // Case #4\n $out[] = [\n [\n 'blue',\n 'red',\n 'green',\n 'yellow'\n ],\n 'sc_sort_count'\n ];\n\n // Case #5 with selected man\n $out[] = [\n [\n 'yellow',\n 'red',\n 'blue',\n ],\n 'sc',\n ['manufacturer' => 'a']\n ];\n\n // Case #6 with selected man with zero choices\n $out[] = [\n [\n 'acme',\n 'foo',\n 'bar',\n ],\n 'sc_zero_choices',\n ['manufacturer' => 'a']\n ];\n\n // Case #7 with selected man with zero choices\n $out[] = [\n [\n 'yellow',\n 'red',\n 'blue',\n 'green',\n ],\n 'sc_zero_choices_color',\n ['manufacturer' => 'a']\n ];\n\n return $out;\n }", "public static function stats(array $tokens) {\n\t\t// Min and max are unknown by default\n\t\t$min = $max = array(\n\t\t\t'time' => NULL,\n\t\t\t'memory' => NULL,\n\t\t\t);\n\n\t\t// Total values are always integers\n\t\t$total = array(\n\t\t\t'time' => 0,\n\t\t\t'memory' => 0);\n\n\t\tforeach ($tokens as $token) {\n\t\t\t// Get the total time and memory for this benchmark\n\t\t\tlist($time, $memory) = Profiler::total($token);\n\n\t\t\tif ($max['time'] === NULL OR $time > $max['time'])\n\t\t\t{\n\t\t\t\t// Set the maximum time\n\t\t\t\t$max['time'] = $time;\n\t\t\t}\n\n\t\t\tif ($min['time'] === NULL OR $time < $min['time'])\n\t\t\t{\n\t\t\t\t// Set the minimum time\n\t\t\t\t$min['time'] = $time;\n\t\t\t}\n\n\t\t\t// Increase the total time\n\t\t\t$total['time'] += $time;\n\n\t\t\tif ($max['memory'] === NULL OR $memory > $max['memory'])\n\t\t\t{\n\t\t\t\t// Set the maximum memory\n\t\t\t\t$max['memory'] = $memory;\n\t\t\t}\n\n\t\t\tif ($min['memory'] === NULL OR $memory < $min['memory'])\n\t\t\t{\n\t\t\t\t// Set the minimum memory\n\t\t\t\t$min['memory'] = $memory;\n\t\t\t}\n\n\t\t\t// Increase the total memory\n\t\t\t$total['memory'] += $memory;\n\t\t}\n\n\t\t// Determine the number of tokens\n\t\t$count = count($tokens);\n\n\t\t// Determine the averages\n\t\t$average = array(\n\t\t\t'time' => $total['time'] / $count,\n\t\t\t'memory' => $total['memory'] / $count);\n\n\t\treturn array(\n\t\t\t'min' => $min,\n\t\t\t'max' => $max,\n\t\t\t'total' => $total,\n\t\t\t'average' => $average);\n\t}", "public function getGroupedRules(): array;", "public function tokenGeneratorDataProvider()\r\n {\r\n return array(\r\n // Valid token generation\r\n array(\r\n 'requestData' => array(\r\n 'username' => '[email protected]',\r\n 'password' => '123456',\r\n 'isValidClient' => true,\r\n ),\r\n 'isSuccessful' => true,\r\n ),\r\n // Invalid user credentials\r\n array(\r\n 'requestData' => array(\r\n 'username' => '[email protected]',\r\n 'password' => 'wrongpassword',\r\n 'isValidClient' => true,\r\n ),\r\n 'isSuccessful' => false,\r\n ),\r\n // Invalid Oauth client credentials\r\n array(\r\n 'requestData' => array(\r\n 'username' => '[email protected]',\r\n 'password' => '123456',\r\n 'isValidClient' => false,\r\n ),\r\n 'isSuccessful' => false,\r\n ),\r\n );\r\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}", "protected function _getSortedTimers() {\n\t\t\t$timers = array();\t\t \n\t\t\tforeach (Varien_Profiler::getTimers() as $name => $timer) {\n\t\t\t\t$sum = number_format(Varien_Profiler::fetch($name, 'sum'), 4);\n\t\t\t\t$count = Varien_Profiler::fetch($name, 'count');\n\t\t\t\t$emalloc = Varien_Profiler::fetch($name, 'emalloc');\n\t\t\t\t$realmem = Varien_Profiler::fetch($name, 'realmem');\n\t\t\t\t \n\t\t\t\t// Filter out entries of little relevance\n\t\t\t\tif ($sum < .0010 && $count < 10 && $emalloc < 10000)\n\t\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t$row = array($name, number_format($sum, 4), $count, number_format($emalloc), number_format($realmem));\n\t\t\t\t$timers[] = $row;\n\t\t\t}\n\t\t\tusort($timers, array($this, '_sortTimers'));\n\t\t\treturn $timers;\n\t\t}", "public function getValidNamesProvider(): array\n {\n $dataSet = [\n [\n 'ID ( )', \n 'main()', \n [ 1, 2, 4, 8, ], \n '_Z4mainv', \n ], \n [\n 'ID ( ... )', \n 'main(...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(int)', \n [ 1, 2, 4, 8, ], \n '_Z4maini', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(int,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(int ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(int,int,int)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(int,int,int,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(int,int,int ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(float)', \n [ 1, 2, 4, 8, ], \n '_Z4mainf', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(float,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(float ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(float,float,float)', \n [ 1, 2, 4, 8, ], \n '_Z4mainfff', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(float,float,float,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(float,float,float ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(bool)', \n [ 1, 2, 4, 8, ], \n '_Z4mainb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(bool,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(bool ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(bool,bool,bool)', \n [ 1, 2, 4, 8, ], \n '_Z4mainbbb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(bool,bool,bool,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(bool,bool,bool ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(char)', \n [ 1, 2, 4, 8, ], \n '_Z4mainc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(char,...)', \n [ 1, 2, 4, 8, ], \n '_Z4maincz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(char ...)', \n [ 1, 2, 4, 8, ], \n '_Z4maincz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(char,char,char)', \n [ 1, 2, 4, 8, ], \n '_Z4mainccc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(char,char,char,...)', \n [ 1, 2, 4, 8, ], \n '_Z4maincccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(char,char,char ...)', \n [ 1, 2, 4, 8, ], \n '_Z4maincccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(wchar_t)', \n [ 1, 2, 4, 8, ], \n '_Z4mainw', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(wchar_t,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(wchar_t ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(wchar_t,wchar_t,wchar_t)', \n [ 1, 2, 4, 8, ], \n '_Z4mainwww', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(wchar_t,wchar_t,wchar_t,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(wchar_t,wchar_t,wchar_t ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(short)', \n [ 1, 2, 4, 8, ], \n '_Z4mains', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(short,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(short ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(short,short,short)', \n [ 1, 2, 4, 8, ], \n '_Z4mainsss', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(short,short,short,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(short,short,short ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(long)', \n [ 1, 2, 4, 8, ], \n '_Z4mainl', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(long,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainlz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(long ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainlz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(long,long,long)', \n [ 1, 2, 4, 8, ], \n '_Z4mainlll', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(long,long,long,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainlllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(long,long,long ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainlllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(signed)', \n [ 1, 2, 4, 8, ], \n '_Z4maini', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(signed,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(signed ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(signed,signed,signed)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(signed,signed,signed,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(signed,signed,signed ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(unsigned)', \n [ 1, 2, 4, 8, ], \n '_Z4mainj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(unsigned,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(unsigned ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(unsigned,unsigned,unsigned)', \n [ 1, 2, 4, 8, ], \n '_Z4mainjjj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(unsigned,unsigned,unsigned,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(unsigned,unsigned,unsigned ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(double)', \n [ 1, 2, 4, 8, ], \n '_Z4maind', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(double,...)', \n [ 1, 2, 4, 8, ], \n '_Z4maindz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(double ...)', \n [ 1, 2, 4, 8, ], \n '_Z4maindz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(double,double,double)', \n [ 1, 2, 4, 8, ], \n '_Z4mainddd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(double,double,double,...)', \n [ 1, 2, 4, 8, ], \n '_Z4maindddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(double,double,double ...)', \n [ 1, 2, 4, 8, ], \n '_Z4maindddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(declspec_id1)', \n [ 1, 2, 4, 8, ], \n '_Z4main12declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(declspec_id1,...)', \n [ 1, 2, 4, 8, ], \n '_Z4main12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(declspec_id1 ...)', \n [ 1, 2, 4, 8, ], \n '_Z4main12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(declspec_id1,declspec_id1,declspec_id1)', \n [ 1, 2, 4, 8, ], \n '_Z4main12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(declspec_id1,declspec_id1,declspec_id1,...)', \n [ 1, 2, 4, 8, ], \n '_Z4main12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(declspec_id1,declspec_id1,declspec_id1 ...)', \n [ 1, 2, 4, 8, ], \n '_Z4main12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(nns_id1::qual_id)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(nns_id1::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(nns_id1::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 )', \n 'main(nns_id1::nns_id2::qual_id)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... )', \n 'main(nns_id1::nns_id2::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... )', \n 'main(nns_id1::nns_id2::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_Z4mainN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( ) CV_QUAL_SEQ', \n 'main() const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEv', \n ], \n [\n 'ID ( ) CV_QUAL_SEQ', \n 'main() volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEv', \n ], \n [\n 'ID ( ) CV_QUAL_SEQ', \n 'main() const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEv', \n ], \n [\n 'ID ( ) CV_QUAL_SEQ', \n 'main() volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEv', \n ], \n [\n 'ID ( ... ) CV_QUAL_SEQ', \n 'main(...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEz', \n ], \n [\n 'ID ( ... ) CV_QUAL_SEQ', \n 'main(...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEz', \n ], \n [\n 'ID ( ... ) CV_QUAL_SEQ', \n 'main(...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEz', \n ], \n [\n 'ID ( ... ) CV_QUAL_SEQ', \n 'main(...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int,int,int) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int,int,int) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int,int,int) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(int,int,int) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,int,int,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,int,int,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,int,int,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(int,int,int,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int,int,int ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int,int,int ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int,int,int ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(int,int,int ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEf', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEf', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEf', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEf', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEfz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float,float,float) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEfff', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float,float,float) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEfff', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float,float,float) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEfff', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(float,float,float) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEfff', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,float,float,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,float,float,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,float,float,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(float,float,float,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float,float,float ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float,float,float ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float,float,float ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(float,float,float ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEfffz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool,bool,bool) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEbbb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool,bool,bool) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEbbb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool,bool,bool) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEbbb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(bool,bool,bool) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEbbb', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(bool,bool,bool ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEbbbz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEcz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char,char,char) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEccc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char,char,char) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEccc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char,char,char) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEccc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(char,char,char) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEccc', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,char,char,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,char,char,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,char,char,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(char,char,char,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char,char,char ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char,char,char ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char,char,char ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(char,char,char ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEcccz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEw', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEw', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEw', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEw', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEwww', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEwww', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEwww', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEwww', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(wchar_t,wchar_t,wchar_t ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEwwwz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEs', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEs', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEs', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEs', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEsz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short,short,short) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEsss', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short,short,short) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEsss', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short,short,short) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEsss', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(short,short,short) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEsss', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,short,short,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,short,short,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,short,short,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(short,short,short,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short,short,short ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short,short,short ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short,short,short ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(short,short,short ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEsssz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEl', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEl', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEl', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEl', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainElz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long,long,long) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainElll', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long,long,long) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainElll', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long,long,long) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainElll', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(long,long,long) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainElll', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,long,long,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,long,long,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,long,long,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(long,long,long,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long,long,long ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long,long,long ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long,long,long ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(long,long,long ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainElllz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEi', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed,signed,signed) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed,signed,signed) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed,signed,signed) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(signed,signed,signed) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiii', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(signed,signed,signed ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEiiiz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEjjj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEjjj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEjjj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEjjj', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(unsigned,unsigned,unsigned ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEjjjz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEdz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double,double,double) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEddd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double,double,double) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEddd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double,double,double) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEddd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(double,double,double) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEddd', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,double,double,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,double,double,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,double,double,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(double,double,double,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double,double,double ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double,double,double ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double,double,double ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(double,double,double ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEdddz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainE12declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainE12declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainE12declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainE12declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1 ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1 ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1 ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1 ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainE12declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainE12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainE12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainE12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainE12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1 ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1 ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1 ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(declspec_id1,declspec_id1,declspec_id1 ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainE12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'main(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV4mainEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( )', \n 'nns_id1::uid_id1()', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ev', \n ], \n [\n 'ID :: ID ( ... )', \n 'nns_id1::uid_id1(...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ez', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(int)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(int,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(int ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(int,int,int)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(int,int,int,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(int,int,int ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(float)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ef', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(float,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(float ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(float,float,float)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Efff', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(float,float,float,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(float,float,float ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(bool)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(bool,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(bool ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(bool,bool,bool)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ebbb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(bool,bool,bool,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(bool,bool,bool ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(char)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ec', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(char,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(char ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(char,char,char)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eccc', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(char,char,char,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(char,char,char ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(wchar_t)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ew', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(wchar_t,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(wchar_t ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ewww', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(short)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Es', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(short,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(short ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(short,short,short)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Esss', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(short,short,short,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(short,short,short ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(long)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1El', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(long,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(long ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(long,long,long)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Elll', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(long,long,long,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(long,long,long ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(signed)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(signed,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(signed ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(signed,signed,signed)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(signed,signed,signed,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(signed,signed,signed ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(unsigned)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ej', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(unsigned,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(unsigned ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ejjj', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(double)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Ed', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(double,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(double ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(double,double,double)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Eddd', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(double,double,double,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(double,double,double ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(declspec_id1)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(declspec_id1,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(declspec_id1 ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(nns_id1::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(nns_id1::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(nns_id1::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1() const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ev', \n ], \n [\n 'ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1() volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ev', \n ], \n [\n 'ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1() const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ev', \n ], \n [\n 'ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1() volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ev', \n ], \n [\n 'ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ez', \n ], \n [\n 'ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ez', \n ], \n [\n 'ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ez', \n ], \n [\n 'ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ez', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(int,int,int ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ef', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ef', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ef', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ef', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Efz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Efff', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Efff', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Efff', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Efff', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(float,float,float ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Efffz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ebz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ebbb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ebbb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ebbb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ebbb', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(bool,bool,bool ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ebbbz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ec', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ec', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ec', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ec', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ecz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eccc', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eccc', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eccc', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eccc', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(char,char,char ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ecccz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ew', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ew', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ew', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ew', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ewz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ewww', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ewww', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ewww', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ewww', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(wchar_t,wchar_t,wchar_t ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ewwwz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Es', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Es', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Es', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Es', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Esz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Esss', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Esss', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Esss', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Esss', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(short,short,short ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Esssz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1El', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1El', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1El', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1El', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Elz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Elll', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Elll', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Elll', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Elll', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(long,long,long ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Elllz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ei', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiii', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(signed,signed,signed ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eiiiz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ej', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ej', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ej', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ej', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ejz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ejjj', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ejjj', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ejjj', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ejjj', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(unsigned,unsigned,unsigned ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ejjjz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Ed', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Ed', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Ed', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Ed', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Edz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Eddd', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Eddd', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Eddd', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Eddd', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(double,double,double ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1Edddz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1 ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1 ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1 ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1 ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( )', \n 'nns_id1::nns_id2::uid_id1()', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ev', \n ], \n [\n 'ID :: ID :: ID ( ... )', \n 'nns_id1::nns_id2::uid_id1(...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ez', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(int)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(int,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(int ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(int,int,int)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(int,int,int,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(int,int,int ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(float)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ef', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(float,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(float ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(float,float,float)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Efff', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(float,float,float,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(float,float,float ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(bool)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(bool,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(bool ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ebbb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(char)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ec', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(char,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(char ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(char,char,char)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eccc', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(char,char,char,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(char,char,char ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(wchar_t)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ew', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(wchar_t,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(wchar_t ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ewww', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(short)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Es', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(short,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(short ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(short,short,short)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Esss', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(short,short,short,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(short,short,short ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(long)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1El', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(long,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(long ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(long,long,long)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Elll', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(long,long,long,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(long,long,long ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(signed)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(signed,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(signed ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(unsigned)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ej', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(unsigned,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(unsigned ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ejjj', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(double)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Ed', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(double,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(double ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(double,double,double)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Eddd', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(double,double,double,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(double,double,double ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(declspec_id1)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(declspec_id1 ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... )', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...)', \n [ 1, 2, 4, 8, ], \n '_ZN7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1() const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ev', \n ], \n [\n 'ID :: ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1() volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ev', \n ], \n [\n 'ID :: ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1() const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ev', \n ], \n [\n 'ID :: ID :: ID ( ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1() volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ev', \n ], \n [\n 'ID :: ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ez', \n ], \n [\n 'ID :: ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ez', \n ], \n [\n 'ID :: ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ez', \n ], \n [\n 'ID :: ID :: ID ( ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ez', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(int,int,int ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ef', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ef', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ef', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ef', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Efz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Efff', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Efff', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Efff', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Efff', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(float,float,float ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Efffz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ebz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ebbb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ebbb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ebbb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ebbb', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(bool,bool,bool ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ebbbz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ec', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ec', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ec', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ec', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ecz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eccc', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eccc', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eccc', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eccc', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(char,char,char ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ecccz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ew', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ew', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ew', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ew', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ewz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ewww', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ewww', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ewww', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ewww', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(wchar_t,wchar_t,wchar_t ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ewwwz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Es', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Es', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Es', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Es', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Esz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Esss', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Esss', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Esss', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Esss', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(short,short,short ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Esssz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1El', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1El', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1El', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1El', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Elz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Elll', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Elll', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Elll', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Elll', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(long,long,long ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Elllz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ei', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiii', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(signed,signed,signed ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eiiiz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ej', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ej', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ej', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ej', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ejz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ejjj', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ejjj', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ejjj', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ejjj', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(unsigned,unsigned,unsigned ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ejjjz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Ed', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Ed', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Ed', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Ed', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Edz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Eddd', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Eddd', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Eddd', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Eddd', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(double,double,double ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1Edddz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1E12declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1 ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1 ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1 ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1 ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1E12declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(declspec_id1,declspec_id1,declspec_id1 ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1E12declspec_id112declspec_id112declspec_id1z', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::qual_id,nns_id1::qual_id,nns_id1::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17qual_idEN7nns_id17qual_idEN7nns_id17qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idE', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) const', \n [ 1, 2, 4, 8, ], \n '_ZNK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) volatile', \n [ 1, 2, 4, 8, ], \n '_ZNV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) const volatile', \n [ 1, 2, 4, 8, ], \n '_ZNVK7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n [\n 'ID :: ID :: ID ( DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 , DECL_SPEC_SEQ1 ... ) CV_QUAL_SEQ', \n 'nns_id1::nns_id2::uid_id1(nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id,nns_id1::nns_id2::qual_id ...) volatile const', \n [ 1, 2, 4, 8, ], \n '_ZNKV7nns_id17nns_id27uid_id1EN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEN7nns_id17nns_id27qual_idEz', \n ], \n ];\n \n return $this->createValidNamesProvider($dataSet);\n }", "private function buildGroupOptions($group) {\n $obj = [];\n\n foreach (GroupOptions::getAsOptions() as $key => $value) {\n $obj[$key] = $group->options & $value;\n }\n\n return $obj;\n }", "private function parseResult()\n {\n $group = $this->getSingleGroup();\n $result = [];\n foreach ($group->getValueGroups() as $valueGroup) {\n $documents = $valueGroup->getDocuments();\n $primary = reset($documents);\n $fields = iterator_to_array($primary);\n $fields['groups'] = $documents;\n $result[] = new Document($fields);\n }\n\n return $result;\n }", "public function getGroupsListForUserLoginLog()\n\t{\n\t\t$db = Zend_Db_Table::getDefaultAdapter();\n\t\t$query = \"select g.id,g.group_name,(select count(*) from main_userloginlog where group_id = g.id) cnt\n from main_groups g where g.isactive = 1\";\n\t\t$result = $db->query($query);\n\t\t$group_arr = array();\n\t\twhile($row = $result->fetch())\n\t\t{\n\t\t\t$group_arr[$row['id']]['group_name'] = $row['group_name'];\n\t\t\t$group_arr[$row['id']]['cnt'] = $row['cnt'];\n\t\t}\n\n\t\treturn $group_arr;\n\t}", "public function getGroups();", "public function getGroups();", "public function get_access_tokens() {\n\t\t$tokens = get_user_meta($this->user->ID, self::META_TYK_ACCESS_TOKENS_KEY, true);\n\t\tif (!is_array($tokens)) {\n\t\t\treturn array();\n\t\t}\n\n\t\t// lambda to add an 'is_valid' attribute to each token\n\t\t$map_is_valid = function ($token) {\n\t\t\treturn array_merge($token, array(\n\t\t\t\t'is_valid' => $this->has_token($token['hash']),\n\t\t\t\t));\n\t\t};\n\n\t\treturn array_map($map_is_valid, $tokens);\n\t}", "function &getTasksByGroupProjectName () {\n\t\treturn $this->getTasksFromSQLwithParams ('SELECT ptv.*,g.group_name,pgl.project_name\n\t\t\tFROM project_task_vw ptv,\n\t\t\t\tproject_assigned_to pat,\n\t\t\t\tgroups g,\n\t\t\t\tproject_group_list pgl\n\t\t\tWHERE ptv.project_task_id=pat.project_task_id\n\t\t\t\tAND pgl.group_id=g.group_id\n\t\t\t\tAND pgl.group_project_id=ptv.group_project_id\n\t\t\t\tAND ptv.status_id=1\n\t\t\t\tAND pat.assigned_to_id=$1\n\t\t\tORDER BY group_name,project_name',\n\t\t\t\t\t\t\t array ($this->User->getID())) ;\n\t}", "public function getTokenized()\n {\n if (!$this->tokenized) {\n foreach ($this->files as $key => $file) {\n $this->tokenized[$file->getBasename()] = $this->extractStringTokens($file);\n }\n }\n\n return $this->tokenized;\n }", "public function getAll($name)\n {\n if (!empty($this->data[$name])) {\n if (is_array($this->data[$name])) {\n return $this->data[$name];\n } else {\n return array($this->data[$name]);\n }\n } else {\n return array();\n }\n }", "public function storingTagsDataProvider(){\n\n return [\n [[\"One\", \"Two\", \"Three\"], 5],\n [[\"One\", 2, \"Three\"], 15],\n\n ];\n }", "public function gen_dd_array()\n {\n $vec = array();\n if($result = $this->get($this->_table) )\n {\n foreach($result as $reg)\n { \n $vec[$reg->id] = $reg->name;\n }\n }\n return $vec;\n }", "private function getTagDataForNewTagByTagName($name)\n {\n return [\n 'name' => $name,\n 'meta_title' => $name,\n 'active' => 1,\n 'slug' => md5(time()),\n ];\n }", "public function getDashboardGroups(): array;", "public static function fetchUnitNames(string $suffix, string $output): array\n {\n preg_match_all('/^[^[:alnum:]\\-_.@]*(?<unit>.*)\\.' . $suffix . '\\s.*$/m', $output, $matches);\n return $matches['unit'] ?? [];\n }", "public function getStoreCustomerGroups() {\n $options = array();\n $customerGroup = Mage::getSingleton('customer/group');\n $allGroups = $customerGroup->getCollection()->toOptionHash();\n foreach ($allGroups as $key => $allGroup) {\n $options[$key] = array( 'value' => $key, 'label' => $allGroup );\n }\n return $options;\n }", "public function parseComparatorsArray($vm) {\n try {\n $comparators = $vm->comparators;\n if (empty ($comparators)) {\n return $this->comparatorsArray;\n }\n return $comparators;\n } catch (\\Exception $e) {\n return $this->comparatorsArray;\n }\n }", "protected function getRegisteredTaskGroups() {}", "static public function get_grouped_registered_settings() {\n\t\t$groups = array();\n\t\t$settings = self::$registered_settings;\n\n\t\tuasort( $settings, array( __CLASS__, 'sort' ) );\n\n\t\tforeach ( $settings as $key => $data ) {\n\n\t\t\tif ( ! isset( $groups[ $data['group'] ] ) ) {\n\t\t\t\t$groups[ $data['group'] ] = array();\n\t\t\t}\n\t\t\t$groups[ $data['group'] ][ $key ] = $data;\n\t\t}\n\t\treturn $groups;\n\t}", "public function calculateDataProvider(): array\n {\n return [\n [\n 'this is a book',\n 'he has some books',\n true,\n LD::PROGRESS_OP_AS_STRING | LD::PROGRESS_NO_COPY | LD::PROGRESS_PATCH_MODE,\n [\n 'distance' => 9,\n 'progresses' => [\n ['ins', 14, 's', 1],\n ['ins', 9, 'e', 1],\n ['rep', 8, 'm', 1],\n ['rep', 7, 'o', 1],\n ['del', 5, 'i', 1],\n ['rep', 2, 'a', 1],\n ['ins', 1, ' ', 1],\n ['ins', 1, 'e', 1],\n ['rep', 0, 'h', 1],\n ],\n ],\n ],\n [\n 'this is a book',\n 'he has some books',\n true,\n LD::PROGRESS_OP_AS_STRING | LD::PROGRESS_NO_COPY | LD::PROGRESS_MERGE_NEIGHBOR | LD::PROGRESS_PATCH_MODE,\n [\n 'distance' => 9,\n 'progresses' => [\n ['ins', 14, 's', 1],\n ['ins', 9, 'e', 1],\n ['rep', 7, 'om', 2],\n ['del', 5, 'i', 1],\n ['rep', 2, 'a', 1],\n ['ins', 1, 'e ', 2],\n ['rep', 0, 'h', 1],\n ],\n ],\n ],\n [\n '自訂取代詞語模組',\n '自订取代词语模组!',\n true,\n LD::PROGRESS_OP_AS_STRING | LD::PROGRESS_PATCH_MODE,\n [\n 'distance' => 5,\n 'progresses' => [\n ['ins', 8, '!', 1],\n ['rep', 7, '组', 1],\n ['cpy', 6, '模', 1],\n ['rep', 5, '语', 1],\n ['rep', 4, '词', 1],\n ['cpy', 3, '代', 1],\n ['cpy', 2, '取', 1],\n ['rep', 1, '订', 1],\n ['cpy', 0, '自', 1],\n ],\n ],\n ],\n [\n '自訂取代詞語模組',\n '自订取代词语模组!',\n true,\n LD::PROGRESS_OP_AS_STRING | LD::PROGRESS_MERGE_NEIGHBOR,\n [\n 'distance' => 5,\n 'progresses' => [\n ['ins', 8, 8, 1],\n ['rep', 7, 7, 1],\n ['cpy', 6, 6, 1],\n ['rep', 4, 4, 2],\n ['cpy', 2, 2, 2],\n ['rep', 1, 1, 1],\n ['cpy', 0, 0, 1],\n ],\n ],\n ],\n [\n '自訂取代詞語模組',\n '自订取代词语模组!',\n true,\n LD::PROGRESS_OP_AS_STRING | LD::PROGRESS_MERGE_NEIGHBOR | LD::PROGRESS_PATCH_MODE,\n [\n 'distance' => 5,\n 'progresses' => [\n ['ins', 8, '!', 1],\n ['rep', 7, '组', 1],\n ['cpy', 6, '模', 1],\n ['rep', 4, '词语', 2],\n ['cpy', 2, '取代', 2],\n ['rep', 1, '订', 1],\n ['cpy', 0, '自', 1],\n ],\n ],\n ],\n ];\n }", "public function findAllGroupNames(): array\n {\n $groupNames = [];\n foreach ($this->findAll() as $group) {\n $groupNames[] = $group->getName();\n }\n\n return $groupNames;\n }", "public function getStaticTokens()\n {\n $tokens = [];\n $sites = [];\n if (!$this->getValid()) {\n return $sites;\n }\n foreach ($this->xml->children() as $child) {\n if ($child->getName() == \"token\") {\n $token = $this->parseToken($child);\n if ($token !== false) {\n $tokens[$token['token']] = $token;\n }\n }\n }\n return $tokens;\n }", "public function getGroup($group)\n\t{\n\t\tif (!in_array($group, $this->_loaded_groups)) {\n\t\t\t$this->_pending_groups[] = $group;\n\t\t\t$this->_loadPendingGroups();\n\t\t}\n\n\t\t$ret = array();\n\n\t\t$off = strlen($group) + 1;\n\t\tforeach ($this->settings as $k => $v) {\n\t\t\tif (strpos($k, $group) === 0) {\n\t\t\t\t$new_k = substr($k, $off);\n\t\t\t\t$ret[$new_k] = $v;\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}" ]
[ "0.7404163", "0.6017538", "0.55205846", "0.5513551", "0.53809404", "0.5366481", "0.5315989", "0.5286298", "0.5246151", "0.5235005", "0.5205023", "0.52020234", "0.5194413", "0.5191498", "0.515596", "0.5125969", "0.5100313", "0.51001465", "0.50923216", "0.5076126", "0.50333196", "0.5011687", "0.50105214", "0.5007288", "0.49960023", "0.49918568", "0.49593857", "0.49082458", "0.48571488", "0.48175168", "0.48155886", "0.47976038", "0.47806644", "0.47706598", "0.4769492", "0.47631356", "0.47593513", "0.47575942", "0.47401953", "0.47393358", "0.47275278", "0.47037244", "0.46860242", "0.46853638", "0.46830916", "0.46778652", "0.46776563", "0.46702996", "0.466807", "0.46651667", "0.46649975", "0.46639413", "0.46608743", "0.46566576", "0.46525583", "0.4643151", "0.4632644", "0.4632644", "0.46279275", "0.46173987", "0.4609782", "0.4603234", "0.46021616", "0.45962027", "0.45897222", "0.4579835", "0.45776555", "0.4565513", "0.4564485", "0.45638052", "0.45637116", "0.45624396", "0.45455796", "0.4544784", "0.45433345", "0.4536357", "0.45363343", "0.45327935", "0.45306426", "0.45297286", "0.45228633", "0.4521362", "0.4521362", "0.45207956", "0.45181853", "0.4508267", "0.44923693", "0.44876337", "0.4481962", "0.44809183", "0.44795302", "0.44777668", "0.44766015", "0.4475517", "0.4473629", "0.44720536", "0.44704717", "0.4470266", "0.44656706", "0.4463154" ]
0.68390983
1
Gets the min, max, average and total of a set of tokens as an array.
public static function stats(array $tokens) { // Min and max are unknown by default $min = $max = array( 'time' => NULL, 'memory' => NULL, ); // Total values are always integers $total = array( 'time' => 0, 'memory' => 0); foreach ($tokens as $token) { // Get the total time and memory for this benchmark list($time, $memory) = Profiler::total($token); if ($max['time'] === NULL OR $time > $max['time']) { // Set the maximum time $max['time'] = $time; } if ($min['time'] === NULL OR $time < $min['time']) { // Set the minimum time $min['time'] = $time; } // Increase the total time $total['time'] += $time; if ($max['memory'] === NULL OR $memory > $max['memory']) { // Set the maximum memory $max['memory'] = $memory; } if ($min['memory'] === NULL OR $memory < $min['memory']) { // Set the minimum memory $min['memory'] = $memory; } // Increase the total memory $total['memory'] += $memory; } // Determine the number of tokens $count = count($tokens); // Determine the averages $average = array( 'time' => $total['time'] / $count, 'memory' => $total['memory'] / $count); return array( 'min' => $min, 'max' => $max, 'total' => $total, 'average' => $average); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function stats(array $tokens)\n\t{\n\t\t$min = $max = array(\n\t\t\t'time' => NULL,\n\t\t\t'memory' => NULL);\n\n\t\t// Total values are always integers\n\t\t$total = array(\n\t\t\t'time' => 0,\n\t\t\t'memory' => 0);\n\t\n\t\tforeach ($tokens as $token)\n\t\t{\n\t\t\t$other = Profiler::$_marks[$token]['other'];\n\t\t\t// Get the total time and memory for this benchmark\n\t\t\tlist($time, $memory) = Profiler::total($token);\n\n\t\t\tif ($max['time'] === NULL OR $time > $max['time'])\n\t\t\t{\n\t\t\t\t// Set the maximum time\n\t\t\t\t$max['time'] = $time;\n\t\t\t}\n\n\t\t\tif ($min['time'] === NULL OR $time < $min['time'])\n\t\t\t{\n\t\t\t\t// Set the minimum time\n\t\t\t\t$min['time'] = $time;\n\t\t\t}\n\n\t\t\t// Increase the total time\n\t\t\t$total['time'] += $time;\n\n\t\t\tif ($max['memory'] === NULL OR $memory > $max['memory'])\n\t\t\t{\n\t\t\t\t// Set the maximum memory\n\t\t\t\t$max['memory'] = $memory;\n\t\t\t}\n\n\t\t\tif ($min['memory'] === NULL OR $memory < $min['memory'])\n\t\t\t{\n\t\t\t\t// Set the minimum memory\n\t\t\t\t$min['memory'] = $memory;\n\t\t\t}\n\n\t\t\t// Increase the total memory\n\t\t\t$total['memory'] += $memory;\n\t\t}\n\n\t\t// Determine the number of tokens\n\t\t$count = count($tokens);\n\n\t\t// Determine the averages\n\t\t$average = array(\n\t\t\t'time' => $total['time'] / $count,\n\t\t\t'memory' => $total['memory'] / $count);\n\n\t\treturn array(\n\t\t\t'min' => $min,\n\t\t\t'max' => $max,\n\t\t\t'total' => $total,\n\t\t\t'average' => $average,\n\t\t\t'other'=>$other\n\t\t);\n\t}", "function array_stats($values) {\n $min = min($values);\n $max = max($values);\n $mean = array_sum($values) / count($values);\n return array($min, $max, $mean);\n}", "public function summaryOfMinAndMax(array $array);", "public function getMetrics(): array;", "function array_max_min_avg($array) {\t\n\t\t// initialize variables\n\t\t$result\t= array();\n\t\t$amount = count($array);\n\t\t$avg\t= 0;\n\t\t\n\t\t// examine each array item\n\t\tfor ($x = 0; $x < $amount; $x++) {\n\t\t\t// if no low number, set it\n\t\t\tif (!isset($low)) {\n\t\t\t\t$low = $array[$x];\n\t\t\t\n\t\t\t// if there's a low number, compare and assign if necessary\n\t\t\t} elseif ($array[$x] < $low) {\n\t\t\t\t$low = $array[$x];\n\t\t\t}\n\t\t\t\n\t\t\t// same for the highest number\n\t\t\tif (!isset($high)) {\n\t\t\t\t$high = $array[$x];\n\t\t\t} elseif ($array[$x] > $high) {\n\t\t\t\t$high = $array[$x];\n\t\t\t}\n\t\t\t\n\t\t\t// sum all the values\t\t\n\t\t\t$avg = $avg + $array[$x];\n\t\t}\n\t\t\n\t\t// calculate the average\n\t\t$avg = $avg / $amount;\n\t\t\n\t\t// return the result\n\t\treturn array(\n\t\t\t'high'\t=> $high,\n\t\t\t'low'\t=> $low,\n\t\t\t'avg'\t=> $avg\n\t\t);\n\t}", "public function getAverageAndNumberRatings (): array\n {\n /**\n * Hier verwenden wir $this->_buffer, damit der nachfolgende MySQL Query nicht jedes mal aufgerufen werden muss,\n * sondern wir das Ergebnis zwischenspeichern.\n */\n if (empty($this->_buffer)) {\n\n /**\n * Datenbankverbindung herstellen.\n */\n $database = new Database();\n\n /**\n * Query abschicken.\n *\n * Hier verwenden wir die AVG()-Funktion von MySQL um einen Durchschnitt aller ratings zu berechnen. Diese\n * Berechnung könnten wir in PHP auch machen, dazu müssten wir aber alle Einträge aus der Datenbank laden\n * und manuell drüber iterieren. In MySQL brauchen wir nur einen einzigen Query und kriegen alles, was wir\n * brauchen.\n */\n $result = $database->query(\"SELECT AVG(rating) as average, COUNT(*) as count FROM comments WHERE post_id = ? AND rating IS NOT NULL\", [\n 'i:post_id' => $this->id\n ]);\n\n /**\n * Daten aus dem Result holen und Datentypen konvertieren.\n */\n $numberOfRatings = (int)$result[0]['count'];\n $average = (float)$result[0]['average'];\n\n /**\n * Cache anlegen.\n */\n $this->_buffer = [\n 'average' => $average,\n 'numberOfRatings' => $numberOfRatings\n ];\n\n }\n\n /**\n * Werte zurückgeben.\n */\n return $this->_buffer;\n }", "private function validate(): array {\n\t\t\t// The minimum matched counts can't be more than maximum.\n\t\t\tif ( -1 !== $this->maximum && 0 !== $this->maximum ) {\n\t\t\t\t$this->maximum = max( abs( $this->maximum ), abs( $this->minimum ) );\n\t\t\t}\n\t\t\treturn [ $this->minimum, $this->maximum ];\n\t\t}", "public function defaultStatistics(array $array)\n {\n $mean = self::mean($array);\n $variance = self::variance($array, $mean);\n\n return array(\n 'min' => min($array),\n 'max' => max($array),\n 'mean' => $mean,\n 'variance' => $variance,\n 'std_dev' => sqrt($variance),\n );\n }", "public function getSaleStatisticsProperty()\n {\n $minSale = 0;\n $maxSale = 0;\n $total = 0;\n $first = true;\n\n foreach ($this->sales as $sale) {\n $amount = $sale['amount'];\n if ($first) {\n $minSale = $amount;\n $maxSale = $amount;\n $first = false;\n } else {\n $minSale = $minSale <= $amount ? $minSale : $amount;\n $maxSale = $maxSale >= $amount ? $maxSale : $amount;\n }\n $total += $amount;\n }\n\n return [\n 'min' => $minSale,\n 'max' => $maxSale,\n 'total' => $total\n ];\n }", "public function calculateTokensPerUsage();", "public function getMinisters() {\n return $this->parseData($this->sql['min']);\n }", "public static function avg( ...$numbers ) {\n \n // Remove the options object from the number array.\n $numbers = array_head($numbers);\n \n // Get the average of all numbers.\n return (array_sum($numbers) / count($numbers));\n \n }", "private function readMRange()\n {\n $values = [\n 'mmin' => $this->parseM($this->readDoubleL(Shapefile::FILE_SHP)),\n 'mmax' => $this->parseM($this->readDoubleL(Shapefile::FILE_SHP)),\n ];\n return $this->getOption(Shapefile::OPTION_SUPPRESS_M) ? [] : $values;\n }", "private function calculateStatisticBasedOnDurations(array $durationTimes) {\n $average = Math::average($durationTimes);\n $min = Math::min($durationTimes);\n $max = Math::max($durationTimes);\n $stdDev = Math::stdDev($durationTimes);\n\n return [\n 'average' => $average,\n 'min' => $min,\n 'max' => $max,\n 'stdDev' => $stdDev\n ];\n }", "public function dataProviderForMeanAbsoluteDeviation(): array\n {\n return [\n [ [ 92, 83, 88, 94, 91, 85, 89, 90 ], 2.75 ],\n [ [ 2, 2, 3, 4, 14 ], 3.6 ],\n ];\n }", "function meanScore($arr)\n{\n// var_dump(list());\n}", "function calcTrend(array $valuesArray)\n{\n\t$middle = (count($valuesArray))/2;\n\t$trend = 0;\n\t$sqr=0;\n\t$sum=0;\n\tfor ($index = 1 ; $index < count($valuesArray) ; $index++)\n\t{\n\t\tif ($index < $middle)\n\t\t\t$trend -= $valuesArray[$index];\n\t\telse\n\t\t\t$trend += $valuesArray[$index];\n\t\t$sum+=$valuesArray[$index];\n\t}\n\t$average=round($sum/$index);\n\tfor ($index = 1 ; $index < count($valuesArray) ; $index++)\n\t{\n\t\t$diff = $valuesArray[$index] - $average;\n\t\t$sqr+=$diff*$diff;\n\t}\n\t$shonut = round(sqrt($sqr/$index));\n\t$median = $valuesArray[$middle];\n\treturn array($trend,$shonut,$average,$median);\n}", "public function getTokens();", "public static function total($token)\n\t{\n\t\t// Import the benchmark data\n\t\t$mark = Profiler::$_marks[$token];\n\n\t\tif ($mark['stop_time'] === FALSE)\n\t\t{\n\t\t\t// The benchmark has not been stopped yet\n\t\t\t$mark['stop_time'] = microtime(TRUE);\n\t\t\t$mark['stop_memory'] = memory_get_usage();\n\t\t}\n\n\t\treturn array\n\t\t(\n\t\t\t// Total time in seconds\n\t\t\t$mark['stop_time'] - $mark['start_time'],\n\t\t\t// Amount of memory in bytes\n\t\t\t$mark['stop_memory'] - $mark['start_memory'],\n\t\t\t\n\t\t\t$mark['file'],\n\t\t\t$mark['line']\n\t\t);\n\t}", "private function parse($input) {\n $tokens= [];\n foreach (new Tokens(new StringTokenizer($input)) as $type => $value) {\n $tokens[]= [$type, $value];\n }\n return $tokens;\n }", "public function evalAvg()\n {\n $users = User::students()->get();\n $marks = [];\n foreach ( $users as $user )\n {\n if ($this->evalGradeExists($user))\n {\n array_push($marks,$this->userPercentage($user));\n }\n }\n $count = count($marks); //total numbers in array\n $total = 0;\n foreach ($marks as $mark) {\n $total += $mark; // total value of array numbers\n }\n $average = ($total/$count); // get average value\n return round($average,2);\n\n }", "function get_metrics($metr){\n\t\t\tswitch ($metr) {\n\t\t\t\tcase 'PAP':\n\t\t\t\t\t$metrics_list = array($metr => $this->mPAPResult->get_metric());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'CRE':\n\t\t\t\t\t$metrics_list = array($metr => $this->mCREResult->get_metric());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'CSD':\n\t\t\t\t\t$metrics_list = array($metr => $this->mCSDResult->get_metric());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'DKT':\n\t\t\t\t\t$metrics_list = array($metr => $this->mDKTResult->get_metric());\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$metrics_list = NULL;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn $metrics_list;\n\t\t}", "public static function total($token) {\n\t\t// Import the benchmark data\n\t\t$mark = Profiler::$_marks[$token];\n\n\t\tif ($mark['stop_time'] === FALSE) {\n\t\t\t// The benchmark has not been stopped yet\n\t\t\t$mark['stop_time'] = microtime(TRUE);\n\t\t\t$mark['stop_memory'] = memory_get_usage();\n\t\t}\n\n\t\treturn array\n\t\t(\n\t\t\t// Total time in seconds\n\t\t\t$mark['stop_time'] - $mark['start_time'],\n\n\t\t\t// Amount of memory in bytes\n\t\t\t$mark['stop_memory'] - $mark['start_memory'],\n\t\t\t// Data attached to benchmark\n\t\t\t$mark['data'],\n\t\t\t$mark[\"trace\"]\n\t\t);\n\t}", "function avgT($a){\n\t\t\treturn array_sum($a) / count($a);\t\n\t\t}", "public function getPlayerAverages() : array\n {\n $average['shooting'] = 0;\n $average['skating'] = 0;\n $average['checking'] = 0;\n foreach ($this->players as $player) {\n $average['shooting'] += $player->shooting;\n $average['skating'] += $player->skating;\n $average['checking'] += $player->checking;\n }\n // Checks if zero players are on a squad to prevent division by zero\n if (count($this->players) !== 0) {\n $average['shooting'] = (int) ($average['shooting'] / count($this->players));\n $average['skating'] = (int) ($average['skating'] / count($this->players));\n $average['checking'] = (int) ($average['checking'] / count($this->players));\n }\n return $average;\n }", "public static function stats(): array;", "protected function getMinutesArray()\n\t{\n\t\t$ma = array_pad([], 60, null);\n\t\tforeach ($this->_attr[self::MINUTE] as $m) {\n\t\t\tif (is_numeric($m['min'])) {\n\t\t\t\tfor ($i = $m['min']; $i <= $m['end'] && $i < 60; $i += $m['period']) {\n\t\t\t\t\t$ma[$i] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $ma;\n\t}", "public function getAggregateMetricResults()\n {\n return $this->aggregate_metric_results;\n }", "public function provideTotal()\n {\n return [\n [[1, 2, 5, 8], 16],\n [[-1, 2, 5, 8], 14],\n [[1, 2, 8], 11]\n ];\n }", "public static function mean($values_arr){\r\n\t\treturn (float) (array_sum($values_arr) / count($values_arr));\r\n }", "public function dataProviderForMidrange(): array\n {\n return [\n [ [ 1, 1, 1 ], 1 ],\n [ [ 1, 1, 2 ], 1.5 ],\n [ [ 1, 2, 1 ], 1.5 ],\n [ [ 8, 4, 3 ], 5.5 ],\n [ [ 9, 7, 8 ], 8 ],\n [ [ 13, 18, 13, 14, 13, 16, 14, 21, 13 ], 17 ],\n [ [ 1, 2, 4, 7 ], 4 ],\n [ [ 8, 9, 10, 10, 10, 11, 11, 11, 12, 13 ], 10.5 ],\n [ [ 6, 7, 8, 10, 12, 14, 14, 15, 16, 20 ], 13 ],\n [ [ 9, 10, 11, 13, 15, 17, 17, 18, 19, 23 ], 16 ],\n [ [ 12, 14, 16, 20, 24, 28, 28, 30, 32, 40 ], 26 ],\n ];\n }", "function ros_get_grades_average($grads)\n{\n $povprecje = array();\n $cnt = count($grads);\n $povprecje['mistakes'] = 0;\n $povprecje['timeinseconds'] = 0;\n $povprecje['hitsperminute'] = 0;\n $povprecje['precision'] = 0;\n foreach($grads as $grade)\n {\n $povprecje['mistakes'] = $povprecje['mistakes'] + $grade->mistakes; \n $povprecje['timeinseconds'] = $povprecje['timeinseconds'] + $grade->timeinseconds;\n }\n if($cnt != 0){\n $povprecje['mistakes'] = $povprecje['mistakes'] / $cnt;\n $povprecje['timeinseconds'] = $povprecje['timeinseconds'] / $cnt;\n }\n return $povprecje;\n}", "public function GetAggregates(){\n $this->current();\n return $this->aggs;\n }", "static function Tokenize($t)\n\t{\n\t\treturn array($t[0], count($t) == 3 ? $t[1] : $t[0]);\n\t}", "function meanArray(array $array): float\n {\n if(count($array) > 0)\n {\n return array_sum($array)/count($array);\n }\n }", "function calculateAverage($values,$averageType='simple'){\n $average=array_sum($values)/count($values);\n return $average;\n}", "public static function getCpuUsageArray(): array\n {\n $stat1 = file('/proc/stat');\n usleep(100000);\n $stat2 = file('/proc/stat');\n if (!is_array($stat1) || !is_array($stat2)) return [];\n $info1 = explode(\" \", preg_replace(\"!cpu +!\", \"\", $stat1[0]));\n $info2 = explode(\" \", preg_replace(\"!cpu +!\", \"\", $stat2[0]));\n $dif = array();\n $dif['user'] = $info2[0] - $info1[0];\n $dif['nice'] = $info2[1] - $info1[1];\n $dif['sys'] = $info2[2] - $info1[2];\n $dif['idle'] = $info2[3] - $info1[3];\n $total = array_sum($dif);\n $total = $total > 0 ? $total : PHP_INT_MAX;\n $cpu = [];\n foreach ($dif as $x => $y)\n $cpu[$x] = $y / $total;\n return $cpu;\n }", "function get_allreport(array $arr)\n {\n // total numbers in array\n $count = count($arr);\n $total = ($count) ? get_sum($arr) : 0;\n $median = ($count) ? get_median($arr) : 0;\n $average = ($count) ? $total / $count : 0;\n\n return array(\n 'median'=> $median,\n 'count'=> $count,\n 'average' => $average,\n 'total' => $total\n );\n }", "Public Function GetAggregateStats()\n\t{\n\t\t$Temp = $this->GetAllAdwordsStats();\n\t\t$this->AdwordsTotal = $Temp;\n\t\t$this->AddToTotal($Temp);\n\t\t\n\t\t$Temp = $this->GetAllYahooStats();\n\t\t$this->YahooTotal = $Temp;\n\t\t$this->AddToTotal($Temp);\n\t\t\n\t\t$Temp = $this->GetAllMSNStats();\n\t\t$this->MSNTotal = $Temp;\n\t\t$this->AddToTotal($Temp);\n\t}", "public function getTokens(): array\n {\n return $this->tokens;\n }", "private function getArrayTotalStarsFeedbacks(array $feedbacks)\n {\n $oneStar = 0;\n $twoStars = 0;\n $threeStars = 0;\n $fourStars = 0;\n $fiveStars = 0;\n foreach ($feedbacks as $feedback) {\n if ($feedback->isVeryLow()) {\n $oneStar += 1;\n }\n if ($feedback->isLow()) {\n $twoStars += 1;\n }\n if ($feedback->isAverage()) {\n $threeStars += 1;\n }\n if ($feedback->isHigh()) {\n $fourStars += 1;\n }\n if ($feedback->isVeryHigh()) {\n $fiveStars += 1;\n }\n }\n\n return [\n 'oneStar' => $oneStar,\n 'twoStars' => $twoStars,\n 'threeStars' => $threeStars,\n 'fourStars' => $fourStars,\n 'fiveStars' => $fiveStars,\n ];\n }", "public function getAggregations()\n {\n return Arr::get($this->meta, 'aggregations', []);\n }", "function get_types($array) {\n $retvalue = array();\n $fields = $array[0];\n for ($f=0; $f<count($fields); ++$f) {\n $matches_percentage = 1;\n $matches_number = 1;\n for ($k=1; $k<count($array); ++$k) {\n $row = $array[$k];\n if (count($row)<count($fields)) continue;\n $mpercentage = preg_match('/(^[0-9]+%$)/',$row[$f]);\n $mnumber = preg_match('/^[0-9]*([,\\.][0-9]+)?$/',$row[$f]);\n if (!$mpercentage) $matches_percentage = 0;\n if (!$mnumber) $matches_number = 0;\n }\n if ($mpercentage==1)\n $retvalue[$f]='p';\n else if ($mnumber==1)\n $retvalue[$f]='n';\n else\n $retvalue[$f]='s';\n }\n return $retvalue;\n}", "function getAverageAge($input) {\n global $sum; //'sum' was global gedeclareerd\n for($i=0; $i<count($input); $i++) { //$i moest '0' inhouden\n $sum += $input[$i];\n }\n\n return $sum / $i; //moest nog delen door aantal values van het array\n }", "function get_tokens($input, $tokens)\r\n{\r\n $ret = array();\r\n $tok = strtok($input, $tokens);\r\n while ($tok !== false)\r\n {\r\n array_push($ret, $tok);\r\n $tok = strtok($tokens);\r\n }\r\n return $ret;\r\n}", "public function dataProviderForRange(): array\n {\n return [\n [ [ 1, 1, 1 ], 0 ],\n [ [ 1, 1, 2 ], 1 ],\n [ [ 1, 2, 1 ], 1 ],\n [ [ 8, 4, 3 ], 5 ],\n [ [ 9, 7, 8 ], 2 ],\n [ [ 13, 18, 13, 14, 13, 16, 14, 21, 13 ], 8 ],\n [ [ 1, 2, 4, 7 ], 6 ],\n [ [ 8, 9, 10, 10, 10, 11, 11, 11, 12, 13 ], 5 ],\n [ [ 6, 7, 8, 10, 12, 14, 14, 15, 16, 20 ], 14 ],\n [ [ 9, 10, 11, 13, 15, 17, 17, 18, 19, 23 ], 14 ],\n [ [ 12, 14, 16, 20, 24, 28, 28, 30, 32, 40 ], 28 ],\n ];\n }", "public function GetBarMinMax()\n\t{\n\t\t$start = 0;\n\t\t$n\t = safe_count($this->iObj);\n\t\twhile ($start < $n && $this->iObj[$start]->GetMaxDate() === false) {\n\t\t\t++$start;\n\t\t}\n\n\t\tif ($start >= $n) {\n\t\t\tUtil\\JpGraphError::RaiseL(6006);\n\t\t\t//('Cannot autoscale Gantt chart. No dated activities exist. [GetBarMinMax() start >= n]');\n\t\t}\n\n\t\t$max = $this->scale->NormalizeDate($this->iObj[$start]->GetMaxDate());\n\t\t$min = $this->scale->NormalizeDate($this->iObj[$start]->GetMinDate());\n\n\t\tfor ($i = $start + 1; $i < $n; ++$i) {\n\t\t\t$rmax = $this->scale->NormalizeDate($this->iObj[$i]->GetMaxDate());\n\t\t\tif ($rmax != false) {\n\t\t\t\t$max = max($max, $rmax);\n\t\t\t}\n\n\t\t\t$rmin = $this->scale->NormalizeDate($this->iObj[$i]->GetMinDate());\n\t\t\tif ($rmin != false) {\n\t\t\t\t$min = min($min, $rmin);\n\t\t\t}\n\t\t}\n\t\t$minDate = date('Y-m-d', $min);\n\t\t$min\t = strtotime($minDate);\n\t\t$maxDate = date('Y-m-d 23:59', $max);\n\t\t$max\t = strtotime($maxDate);\n\n\t\treturn [$min, $max];\n\t}", "public function getTemperatureStats(): ?array\n {\n return $this->createQueryBuilder('weatherCheck')\n ->select('AVG(weatherCheck.temperature) AS average')\n ->addSelect('MIN(weatherCheck.temperature) AS min')\n ->addSelect('MAX(weatherCheck.temperature) AS max')\n ->getQuery()\n ->getOneOrNullResult();\n }", "public function getStaffInstructionSurveyTotalAndAverageScore(Staff $staff){\n $total_arr = array();\n \n $total_sessions_with_surveys = 0;\n $total_surveys = 0;\n $survey_points = 0;\n \n $instruction_sessions = $this->__getInstructionsByStaff($staff);\n \n if(!$instruction_sessions){\n $total_arr['number_surveys'] = 0;\n $total_arr['average'] = 0;\n \n return $total_arr;\n }\n foreach($instruction_sessions as $session){\n $this_session_surveys = count($this->__getSurveysBySession($session));\n $total_surveys += $this_session_surveys;\n \n if($this_session_surveys > 0){\n $total_sessions_with_surveys++;\n }\n $survey_points += $this->getAverageSurveyScoreBySession($session);\n }\n \n $average = $survey_points / $total_sessions_with_surveys;\n $total_arr['number_surveys'] = $total_surveys;\n $total_arr['average_score'] = number_format($average, 2);\n \n return $total_arr;\n }", "public function totalAverageVisitors()\n {\n $query1 = \"SELECT COUNT(recordID) AS totalVisitors FROM ad_stats WHERE (MONTH(date) = MONTH(CURRENT_DATE()) AND YEAR(date) = YEAR(CURRENT_DATE()));\"; \n $result = mysqli_query($GLOBALS['db'], $query1);\n $tempData1 = mysqli_fetch_assoc($result);\n $data['totalVisitors'] = $tempData1['totalVisitors'];\n \n\n //to get the final output\n $query2=\"SELECT AVG(visitors) AS avgVisitors FROM (SELECT date, COUNT(recordID)AS visitors FROM ad_stats GROUP BY date) AS T1;\";\n $result = mysqli_query($GLOBALS['db'], $query2);\n $tempData2 = mysqli_fetch_assoc($result);\n $data['avgVisitors'] = $tempData2['avgVisitors'];\n\n return $data;\n }", "public function extractTokens()\n {\n // Prepare the opening and closing tags for the regex\n $openingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->openingTag ) ) );\n $closingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->closingTag ) ) );\n\n // Build the regex\n $regex = sprintf( '/%s([A-Z-_0-9]+)%s/i', $openingTag, $closingTag );\n\n // Find all the tokens in the string\n preg_match_all( $regex, $this->content, $matches, PREG_PATTERN_ORDER );\n\n // If there are no matches, simply return an empty array\n if ( empty( $matches[1] ) )\n {\n return [];\n }\n\n // Return a unique list of tokens\n return array_unique( $matches[ 1 ] );\n }", "public function getTokens() {\n\t\treturn array_keys($this->tokens);\n\t}", "private function limitTokens(array $tokens): array\n {\n if (count($tokens) > $this->limit) {\n array_shift($tokens);\n }\n return $tokens;\n }", "private function limitTokens(array $tokens): array\n {\n if (count($tokens) > $this->limit) {\n array_shift($tokens);\n }\n return $tokens;\n }", "function array_mean($array) {\n return array_sum($array) / count($array);\n}", "public function getResult(){\n $data_list_array = $this->readFileAsArray();\n $num_arr = $this->fetchNumericLines($data_list_array);\n\n return $this->sortArray($this->calculateSumOfEachLine($num_arr));\n }", "function mmmr($array, $output = 'mean')\n{ \n if(!is_array($array))\n\t{ \n return FALSE; \n }\n\telse\n\t{ \n switch($output)\n\t\t{ \n //MEAN\n\t\t\tcase 'mean': \n $count = count($array); \n $sum = array_sum($array); \n\t\t\t\tif($totalCount==0)\n\t\t\t\t\t$total=0;\n\t\t\t\telse\n\t\t\t\t\t$total = $sum / $count; \n break; \n //MEDIAN\n\t\t\tcase 'median': \n rsort($array); \n\t\t\t\t//echo \"After Rsort: \";\n\t\t\t\t//var_dump($array);\n\t\t\t\t//echo \"<br>\";\n\t\t\t\t//echo \"Count: \". count($array).\" <br>\";\n $middle = round(count($array)/ 2);\n\t\t\t\t//echo \"Middle: $middle <br>\";\n $total = $array[$middle-1]; \n\t\t\t\t//echo \"Total: $total <br>\";\n break; \n //MODE\n\t\t\tcase 'mode': \n $v = array_count_values($array); \n arsort($v); \n foreach($v as $k => $v){$total = $k; break;} \n break; \n //RANGE\n\t\t\tcase 'range': \n sort($array); \n $sml = $array[0]; \n rsort($array); \n $lrg = $array[0]; \n $total = $lrg - $sml; \n break;\n\t\t\t//BEST VALUE (lowest)\n\t\t\tcase 'best': \n\t\t\t sort($array); \n $sml = $array[0]; \n $total = $sml; \n break;\n\t\t\t//WORST VALUE (highest)\n\t\t\tcase 'worst': \t\t \n\t\t\t\trsort($array); \t\t\t\t\n $lrg = $array[0]; \n $total = $lrg; \n break;\n } \n return $total; \n } \n}", "public function getPercentageTiers(): array\n {\n return $this->_percentage_tiers ?? [] ;\n }", "function attendance_get_statusset_maxpoints($statuses) {\n $statussetmaxpoints = array();\n foreach ($statuses as $st) {\n if (!isset($statussetmaxpoints[$st->setnumber])) {\n $statussetmaxpoints[$st->setnumber] = $st->grade;\n }\n }\n return $statussetmaxpoints;\n}", "function aggFunction($avg_mks){\r\n\t\t\trequire \"connect.php\";\r\n\t\t\tglobal $grade,$point,$comment;\r\n\t\t\t$query_1=mysql_query(\"select * FROM grading_olevel \",$con)or die(mysql_error());\r\n\t\t\twhile($row=mysql_fetch_array($query_1)){\r\n\t\t\t\t$from = $row['fro'];\r\n\t\t\t\t$to = $row['max'];\r\n\t\t\t\t$grade1 = $row['grade'];\r\n\t\t\t\t$point1 = $row['points'];\r\n\t\t\t\t$comment1 = $row['comment'];\r\n\t\t\t\t\r\n\t\t\t\tif ($avg_mks >= $from && $avg_mks <= $to) {\r\n\t\t\t\t\t$grade = $grade1 AND $point = $point1 AND $comment = $comment1 ;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($avg_mks<0 OR $avg_mks>100){\r\n\t\t\t\t$grade = 'x' AND $point = '__' AND $comment = 'Missed' ;;\r\n\t\t\t}\r\n\t\t\treturn array($grade,$point,$comment);//returns array of grades and points\r\n\t\t}", "public function gettotalStoriesPerMonth() {\n $googleVis = new Googlevis();\n $columns = $googleVis->createColumns(\n array('Year/Month' => 'string', 'No. of Stories' => 'number')\n );\n\n $estimate_data = $this->getEstimateDataByMonth(\n $this->easybacklogClient->getStoriesFromTheme()\n );\n\n $row = $rows = $row_data = $row_label = array();\n\n foreach($estimate_data AS $year => $month) {\n foreach($month AS $month_no => $stories) {\n foreach($stories AS $story) {\n $counter = (!isset($counter) ? 0 : $counter);\n $counter += $story;\n }\n $rows[] = $googleVis->createDataRow(\n $year .\"/\". $month_no,\n $counter\n );\n $counter = 0;\n }\n }\n return array('cols' => $columns, 'rows' => $rows);\n }", "function aggFunction($avg_mks){\r\n\t\trequire \"connect.php\";\r\n\t\tglobal $grade,$point,$comment;\r\n\t\t$query_1=mysql_query(\"select * FROM grading_olevel \",$con)or die(mysql_error());\r\n\t\twhile($row=mysql_fetch_array($query_1)){\r\n\t\t\t$from = $row['fro'];\r\n\t\t\t$to = $row['max'];\r\n\t\t\t$grade1 = $row['grade'];\r\n\t\t\t$point1 = $row['points'];\r\n\t\t\t$comment1 = $row['comment'];\r\n\t\t\t\r\n\t\t\tif ($avg_mks >= $from && $avg_mks <= $to) {\r\n\t\t\t\t$grade = $grade1 AND $point = $point1 AND $comment = $comment1 ;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($avg_mks<0 OR $avg_mks>100){\r\n\t\t\t$grade = 'x' AND $point = '__' AND $comment = 'Missed' ;;\r\n\t\t}\r\n\t\treturn array($grade,$point,$comment);//returns array of grades and points\r\n\t}", "public function numeric()\n {\n $ret = array();\n foreach (self::$ordinality as $part) {\n if ($part === self::STABILITY) {\n $ret[]= array_search($this->get($part), self::$stabilities);\n } else {\n $ret[]= $this->get($part);\n }\n }\n return $ret;\n }", "public function getTokenParsers()\n {\n return array();\n }", "public function getTokenParsers()\n {\n return array();\n }", "private function findApplicableRange(Tokens $tokens, int &$start = 0): ?array\n {\n $maxIndex = $tokens->count() - 1;\n for (; $start < $maxIndex; $start++) {\n $token = $tokens[$start];\n /** @var \\PhpCsFixer\\Tokenizer\\Token $token */\n if (!$token->isGivenKind([T_OPEN_TAG, T_OPEN_TAG_WITH_ECHO])) {\n continue;\n }\n if (strpos($token->getContent(), \"\\n\") !== false) {\n continue;\n }\n $result = [$token];\n for ($nextIndex = $start + 1; $nextIndex <= $maxIndex; $nextIndex++) {\n $token = $tokens[$nextIndex];\n /** @var \\PhpCsFixer\\Tokenizer\\Token $token */\n if ($token->isGivenKind(T_CLOSE_TAG)) {\n $result[] = $token;\n\n return $result;\n }\n if (strpos($token->getContent(), \"\\n\") !== false) {\n break;\n }\n $result[] = $token;\n }\n $start = $nextIndex;\n }\n\n return null;\n }", "public static function getTotals()\n {\n $subTotal = self::getSubTotal();\n $taxes = StoreTax::getTaxes();\n $addedTaxTotal = 0;\n $includedTaxTotal = 0;\n $taxCalc = Config::get('vividstore.calculation');\n\n if ($taxes) {\n foreach ($taxes as $tax) {\n if ($taxCalc != 'extract') {\n $addedTaxTotal += $tax['taxamount'];\n } else {\n $includedTaxTotal += $tax['taxamount'];\n }\n }\n }\n\n $shippingTotal = self::getShippingTotal();\n \n $total = ($subTotal + $addedTaxTotal + $shippingTotal);\n \n return array('subTotal'=>$subTotal,'taxes'=>$taxes, 'taxTotal'=>$addedTaxTotal + $includedTaxTotal, 'shippingTotal'=>$shippingTotal, 'total'=>$total);\n }", "public function get_tokens()\n\t{\n\t\treturn $this->tokens;\n\t}", "public function getTokens()\n {\n return $this->tokens;\n }", "public function getValues()\n {\n $values = array();\n $data = $this->getElement()->getValue();\n\n if (is_array($data) && count($data)) {\n usort($data, array($this, '_sortWeeeTaxes'));\n $values = $data;\n }\n return $values;\n }", "function get_metric() {\n $processes = array();\n //$output = `ps aux | awk '{ print $1,$2,$3,$4,$9,$10,$11 }'`;\n $output = `ps -eo pcpu,pmem,pid,user,args,time,start | grep -v '\\[' | sort -k 1 -r | head -30 | awk '{print $4,$3,$1,$2,$7,$6,$5}'`;\n $output = explode(\"\\n\", $output);\n if (!is_array($output) || count($output)<2) {\n return false; \n }\n array_shift($output);\n foreach ($output as $line) {\n //$line = preg_split('/\\s+/', $line);\n $line = explode(' ', $line);\n if (count($line)<6) {\n continue;\n }\n //var_dump($line);\n //echo count($line);\n if (empty($processes[$line[6]])) {\n $processes[$line[6]] = array_combine(array('user', 'pid', '%cpu', '%mem','start','time', 'command'), $line);\n } else {\n $processes[$line[6]]['%cpu'] += $line[2];\n $processes[$line[6]]['%mem'] += $line[3];\n }\n }\n\n return $processes;\n }", "public function getStatistics(): array\n {\n return $this->statistics;\n }", "protected function _getFieldStats()\n {\n\n if (is_null($this->_stats)) {\n $facets = $this->getLayer()->getProductCollection()->getFacetedData($this->_getFilterField());\n $this->_stats['min'] = key($facets);\n $this->_stats['max'] = key(array_reverse($facets, true));\n }\n\n return $this->_stats;\n }", "function listTextMinMax($margin_left, $margin_top)\n{\n $text = array('min', '', '-s', 'm', '+s', '', 'max');\n $sum = $margin_left;\n foreach ($text as $key => $value) {\n $newResult[] = array('text_header' => $value, 'margin_left' => $sum, 'margin_top' => $margin_top);\n $sum += 50;\n }\n\n return $newResult;\n}", "public function getStatisticByAnalysis (){\n // var_dump($this->analysisemail);exit();\n\t\t$affliates = array();\n\t\t$conversionrates = array();\n $averagerates = array();\n $fconversionrates = array();\n $faveragerates = array();\n $faffliates = array();\n\t // $analysis = $this ->getAnalysisEmails(1);\n foreach ($this->analysisemail as $index => $r) {\n \n $email_sentpercent = ROUND((($r['donatecount'] / $r['sent']) * 100),2);\n $avg_sent = ROUND((($r['raised'] / $r['sent'])), 2);\n $affliates[] = $r['account'];\n $averagerates[] = $avg_sent;\n $conversionrates[] = $email_sentpercent;\n\t\t}\n foreach ($this->analysisfb as $indexes => $fb) {\n $faffliates[] = $fb['account'];\n $fb_sentpercent = ROUND((($fb['donatecount'] / $fb['shared']) * 100),2);\n $avg_fbsent = ROUND((($fb['raised'] / $fb['shared'])), 2);\n $faveragerates[] = $fb_sentpercent;\n $fconversionrates[] = $avg_fbsent;\n\t\t}\n return array('label' => $affliates, 'emailsent' => $conversionrates, 'averagesent' => $averagerates, 'fconversionrate' => $fconversionrates, 'faveragesent' => $faveragerates,'flabel' => $faffliates);\n }", "public function getAverage()\r\n {\r\n $fSum = 0.0;\r\n foreach ($this->aNotes as $fNote) {\r\n $fSum += $fNote;\r\n }\r\n $fAverage = $fSum / count($this->aNotes);\r\n // get only 2 digits after comma\r\n $fAverage = floatval(number_format($fAverage, 2));\r\n return $fAverage;\r\n }", "public function evalMedian()\n {\n $users = User::students()->get();\n $marks = [];\n foreach ( $users as $user )\n {\n if ($this->evalGradeExists($user))\n {\n array_push($marks,$this->userPercentage($user));\n\n\n }\n }\n sort($marks);\n\n $count = count($marks); //total numbers in array\n $middleval = floor(($count-1)/2); // find the middle value, or the lowest middle value\n if($count % 2) { // odd number, middle is the median\n $median = $marks[$middleval];\n } else { // even number, calculate avg of 2 medians\n $low = $marks[$middleval];\n $high = $marks[$middleval+1];\n $median = (($low+$high)/2);\n }\n return $median;\n }", "public function getCalculatedData(): array\n\t{\n\t\t$result = parent::getCalculatedData(); // return mixed value in base method\n\n\t\treturn is_array($result) ? $result : [];\n\t}", "public function getNumbers(): array\n {\n return $this->numbers;\n }", "public function get_access_tokens() {\n\t\t$tokens = get_user_meta($this->user->ID, self::META_TYK_ACCESS_TOKENS_KEY, true);\n\t\tif (!is_array($tokens)) {\n\t\t\treturn array();\n\t\t}\n\n\t\t// lambda to add an 'is_valid' attribute to each token\n\t\t$map_is_valid = function ($token) {\n\t\t\treturn array_merge($token, array(\n\t\t\t\t'is_valid' => $this->has_token($token['hash']),\n\t\t\t\t));\n\t\t};\n\n\t\treturn array_map($map_is_valid, $tokens);\n\t}", "public function getAllUserScores($_limit = 10)\n {\n $scores = array(\n self::USER_SCORE_NEWEST => $this->getNewestUserScores($_limit),\n self::USER_SCORE_BEST => $this->getBestUserScores($_limit)\n );\n\n return $scores;\n }", "function getAverageStats() {\n return $this->averageNpsStats;\n }", "public static function groups() {\n\t\t$groups = array();\n\n\t\tforeach (Profiler::$_marks as $token => $mark) {\n\t\t\t// Sort the tokens by the group and name\n\t\t\t$groups[$mark['group']][$mark['name']][] = $token;\n\t\t}\n\n\t\treturn $groups;\n\t}", "public function getLimitsArray(): array\n {\n return $this->limits;\n }", "public function getTotalsForDisplay()\n {\n $vouchers = $this->getVouchers();\n if (empty($vouchers)) {\n return array();\n }\n\n $fontSize = $this->getFontSize() ? $this->getFontSize() : 7;\n\n $total = array();\n foreach ($vouchers as $voucher) {\n $salePriceInclVat = $voucher['emag_sale_price'] + $voucher['emag_sale_price_vat'];\n\n $total[] = array(\n 'label' => $voucher['emag_voucher_name'] . ':',\n 'amount' => $this->getOrder()->formatPriceTxt($salePriceInclVat),\n 'font_size' => $fontSize,\n );\n }\n\n return $total;\n }", "public static function mean(array $data): float\n\t{\n\t\treturn array_sum($data) / count($data);\n\t}", "public function getTokensPerSecond()\n {\n return $this->tokens / self::$unitMap[$this->unit];\n }", "public function getCompanyAverageRatings($ratings){\n\n\t\t$total=count($ratings);\n\t\t$culture=$management=$work_live_balance=$career_development=0;\n\n\t\tforeach($ratings as $rating){\n\t\t\t$culture += $rating['culture'];\n\t\t $management += $rating['management'];\n\t\t\t$work_live_balance += $rating['work_live_balance'];\n\t\t\t$career_development += $rating['career_development'];\t\n\t\t}\t\n\t\t\n\t\t$avgCulture = $culture/$total;\n\t\t$avgManagement = $management/$total;\n\t\t$avgWork_live = $work_live_balance/$total;\n\t\t$avgCareer_dev = $career_development/$total;\n\n\t\treturn array('culture'=>$avgCulture, 'management'=>$avgManagement, 'work_live_balance'=>$avgWork_live, 'career_development'=>$avgCareer_dev);\n\t}", "function meanFinder1(array $numbers)\n{\n $sum = 0;\n if($numbers == null || count($numbers) < 1) {\n return \"Invalid input. Please use an array that includes integer values\";\n }\n\n // Time complexity: N\n for ($i=0; $i<count($numbers); $i++) {\n $sum += $numbers[$i];\n }\n\n // Time complexity 1\n $mean = $sum / count($numbers);\n return $mean;\n}", "function nameAverages($names,&$averages){\r\n\t$average = 0;\r\n\t$totalnames = 0;\r\n\tforeach($names as $name=>$counts){\r\n\t\tforeach($counts as $month=>$value){\r\n\t\t\t$totalnames = $totalnames + $value;\r\n\t\t}\r\n\t\t$average = $totalnames/count($counts);\r\n\t\t$averages[$name] = $average;\r\n\t\t$totalnames = 0;\r\n\t}\r\n}", "public static function average(array $data): float\n\t{\n\t\treturn self::mean($data);\n\t}", "public function mean() {\n $count = count($this->value);\n $sum = array_sum($this->value);\n return ((float) $sum) / $count;\n }", "protected function calculateRange($data)\n {\n $data_range = array_fill(0, count(current($data)), ['min' => null, 'max' => null]);\n foreach ($data as $observation) {\n $key = 0;\n foreach ($observation as $value) {\n if ($data_range[$key]['min'] === null || $data_range[$key]['min'] > $value) {\n $data_range[$key]['min'] = $value;\n }\n if ($data_range[$key]['max'] === null || $data_range[$key]['max'] < $value) {\n $data_range[$key]['max'] = $value;\n }\n $key++;\n }\n }\n\n return $data_range;\n }", "private function calculateAvg(array $floats): float\r\n {\r\n //avoid division by zero\r\n if (count($floats) == 0) {\r\n return 0;\r\n } else {\r\n return round(array_sum($floats) / count($floats), 2);\r\n }\r\n }", "public function calculateTotals()\n {\n $in = $this->_calculateTotalsIn();\n $out = $this->_calculateTotalsOut();\n $rating = $this->_calculateTotalsByRating();\n \n $result = array_merge($in, $out, $rating);\n $output = array();\n \n if (count($result)) {\n foreach ($result as $row) {\n $id = in_array($row['type'], array('MANUFACTURER', 'STOCK_STATUS', 'RATING')) ? '0' : $row['id'];\n $gid = strtolower(substr($row['type'], 0, 1)) . $id;\n if (!isset($output[$gid])) {\n $output[$gid] = array();\n }\n $output[$gid][$row['val']] = $row['c'];\n }\n }\n \n return $output;\n }", "public static function parseStats($contents)\n {\n $stat = [];\n\n foreach (explode(\"\\n\", trim($contents)) as $line) {\n list($name, $val) = explode(\"=\", trim($line));\n $stat[$name] = $val;\n }\n\n return $stat;\n }", "public static function mean($elements) {\n $sum = array_sum($elements);\n $n = count($elements);\n return ($sum / $n);\n }", "public function average()\n {\n return $this->getSum() / count($this->values);\n }", "private function getRange($min, $max)\n {\n $range = array();\n for ($i = $min; $i <= $max; $i++) {\n $range[] = $i;\n }\n\n return $range;\n }", "public function getArray()\n {\n return $this->arrayPeaks;\n }" ]
[ "0.6806033", "0.62753034", "0.57759935", "0.559795", "0.54452777", "0.54386735", "0.53254837", "0.53051585", "0.52748126", "0.52579296", "0.52450734", "0.5176227", "0.512188", "0.5118234", "0.5111032", "0.5086725", "0.5048329", "0.50247765", "0.5017908", "0.4996121", "0.49836907", "0.49626565", "0.4942475", "0.49359363", "0.49258375", "0.48966795", "0.4886912", "0.48806158", "0.48753425", "0.48721826", "0.4864419", "0.48361573", "0.48151654", "0.48133332", "0.48088953", "0.4785884", "0.4774745", "0.47632274", "0.47546542", "0.4742323", "0.47344375", "0.4731068", "0.4703281", "0.46892202", "0.46805915", "0.4669772", "0.4660778", "0.46560073", "0.46435136", "0.46414202", "0.46405753", "0.46262547", "0.4603171", "0.4603171", "0.46000734", "0.45997635", "0.45962182", "0.4593332", "0.45921624", "0.45912668", "0.4583623", "0.45821357", "0.45702145", "0.4554772", "0.4554772", "0.4554609", "0.4552481", "0.45478842", "0.45463762", "0.4528466", "0.4527501", "0.4526379", "0.45235783", "0.4521511", "0.45204276", "0.4518668", "0.45130283", "0.45121127", "0.45110098", "0.4506221", "0.4501238", "0.44967356", "0.449228", "0.4489235", "0.44824353", "0.44811222", "0.44808623", "0.44733664", "0.44729483", "0.44686902", "0.44605884", "0.44583616", "0.44555858", "0.4454554", "0.4443943", "0.44409034", "0.4436461", "0.44317338", "0.44298106", "0.44253924" ]
0.682276
0
Gets the total execution time and memory usage of a benchmark as a list.
public static function total($token) { // Import the benchmark data $mark = Profiler::$_marks[$token]; if ($mark['stop_time'] === FALSE) { // The benchmark has not been stopped yet $mark['stop_time'] = microtime(TRUE); $mark['stop_memory'] = memory_get_usage(); } return array ( // Total time in seconds $mark['stop_time'] - $mark['start_time'], // Amount of memory in bytes $mark['stop_memory'] - $mark['start_memory'], // Data attached to benchmark $mark['data'], $mark["trace"] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function total($token)\n\t{\n\t\t// Import the benchmark data\n\t\t$mark = Profiler::$_marks[$token];\n\n\t\tif ($mark['stop_time'] === FALSE)\n\t\t{\n\t\t\t// The benchmark has not been stopped yet\n\t\t\t$mark['stop_time'] = microtime(TRUE);\n\t\t\t$mark['stop_memory'] = memory_get_usage();\n\t\t}\n\n\t\treturn array\n\t\t(\n\t\t\t// Total time in seconds\n\t\t\t$mark['stop_time'] - $mark['start_time'],\n\t\t\t// Amount of memory in bytes\n\t\t\t$mark['stop_memory'] - $mark['start_memory'],\n\t\t\t\n\t\t\t$mark['file'],\n\t\t\t$mark['line']\n\t\t);\n\t}", "protected static function get_benchmarks() : array\n\t{\n\t\t$result = [];\n\n\t\tif (! Kohana::$profiling)\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\n\t\t$groups = Profiler::groups();\n\n\t\tforeach (array_keys($groups) as $group)\n\t\t{\n\t\t\tif (strpos($group, 'database (') === FALSE)\n\t\t\t{\n\t\t\t\tforeach ($groups[$group] as $name => $marks)\n\t\t\t\t{\n\t\t\t\t\t$stats = Profiler::stats($marks);\n\t\t\t\t\t$result[$group][] = [\n\t\t\t\t\t\t'name' => $name,\n\t\t\t\t\t\t'count' => count($marks),\n\t\t\t\t\t\t'total_time' => $stats['total']['time'],\n\t\t\t\t\t\t'avg_time' => $stats['average']['time'],\n\t\t\t\t\t\t'total_memory' => $stats['total']['memory'],\n\t\t\t\t\t\t'avg_memory' => $stats['average']['memory'],\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// add total stats\n\t\t$total = Profiler::application();\n\t\t$result['application'] = [\n\t\t\t'count' => 1,\n\t\t\t'total_time' => $total['current']['time'],\n\t\t\t'avg_time' => $total['average']['time'],\n\t\t\t'total_memory' => $total['current']['memory'],\n\t\t\t'avg_memory' => $total['average']['memory'],\n\n\t\t];\n\n\t\treturn $result;\n\t}", "public function benchmark() {\n return self::benchmarkEnd($this->benchmarkStart);\n }", "public function getBenchmark()\n {\n return $this->benchmark;\n }", "protected function getStats()\n {\n $endTime = microtime() - $this->startTime;\n $stats = sprintf(\n 'Request-response cycle finished: %1.3fs'\n . ' - Memory usage: %1.2fMB (peak: %1.2fMB)'\n ,\n $endTime,\n memory_get_usage(true) / 1048576,\n memory_get_peak_usage(true) / 1048576\n );\n\n return $stats;\n }", "protected function calculateExecutionTime(): array\n\t{\n\t\t$totalTime = microtime(true) - $this->application->getStartTime();\n\n\t\t$executionTime = ['total' => $totalTime, 'details' => []];\n\n\t\t$otherTime = 0;\n\n\t\tforeach($this->timers as $timer)\n\t\t{\n\t\t\t$otherTime += $timer instanceof Closure ? $timer() : $timer;\n\t\t}\n\n\t\t$detailedTime = $totalTime - $otherTime;\n\n\t\t$executionTime['details']['PHP'] = ['time' => $detailedTime, 'pct' => ($detailedTime / $totalTime * 100)];\n\n\t\tforeach($this->timers as $timer => $time)\n\t\t{\n\t\t\tif($time instanceof Closure)\n\t\t\t{\n\t\t\t\t$time = $time();\n\t\t\t}\n\n\t\t\t$executionTime['details'][$timer] = ['time' => $time, 'pct' => ($time / $totalTime * 100)];\n\t\t}\n\n\t\treturn $executionTime;\n\t}", "public function gatherSpeedData()\n {\n $speedTotals = array();\n\n $speedTotals['total'] = $this->getReadableTime((microtime(true) - $this->startTime) * 1000);\n $speedTotals['allowed'] = ini_get(\"max_execution_time\");\n\n $this->output['speedTotals'] = $speedTotals;\n }", "static function measureResults(){\n\t\tforeach(self::$measures as $name=>$measure){\n\t\t\t$totalTime = 0;\n\t\t\twhile(($instance = current($measure)) && next($measure)){\n\t\t\t\t$nextInstance = current($measure);\n\t\t\t\tif($nextInstance){\n\t\t\t\t\t$currentCount = count($out[$name]);\n\t\t\t\t\t$totalTime += $nextInstance['time'] - $instance['time'];\n\t\t\t\t\t$out[$name][$currentCount]['timeChange'] = $nextInstance['time'] - $instance['time'];\n\t\t\t\t\t$out[$name][$currentCount]['memoryChange'] = $nextInstance['mem'] - $instance['mem'];\n\t\t\t\t\t$out[$name][$currentCount]['peakMemoryChange'] = $nextInstance['peakMem'] - $instance['peakMem'];\n\t\t\t\t\t$out[$name][$currentCount]['peakMemoryLevel'] = $instance['peakMem'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$out[$name]['total']['time'] = $totalTime;\n\t\t}\n\t\treturn $out;\n\t}", "public function getRunAsArray()\n {\n return $this->_totalTime;\n }", "public function getTests()\n {\n $tests = array();\n foreach ($this->benchmarks as $benchmark) {\n $tests += $benchmark->getTests();\n }\n\n return $tests;\n }", "public static function getCpuUsageArray(): array\n {\n $stat1 = file('/proc/stat');\n usleep(100000);\n $stat2 = file('/proc/stat');\n if (!is_array($stat1) || !is_array($stat2)) return [];\n $info1 = explode(\" \", preg_replace(\"!cpu +!\", \"\", $stat1[0]));\n $info2 = explode(\" \", preg_replace(\"!cpu +!\", \"\", $stat2[0]));\n $dif = array();\n $dif['user'] = $info2[0] - $info1[0];\n $dif['nice'] = $info2[1] - $info1[1];\n $dif['sys'] = $info2[2] - $info1[2];\n $dif['idle'] = $info2[3] - $info1[3];\n $total = array_sum($dif);\n $total = $total > 0 ? $total : PHP_INT_MAX;\n $cpu = [];\n foreach ($dif as $x => $y)\n $cpu[$x] = $y / $total;\n return $cpu;\n }", "public function execute()\n {\n $results = array();\n foreach ($this->benchmarks as $benchmark) {\n $results += $benchmark->execute();\n }\n\n return $results;\n }", "public function getRun()\n {\n return array_sum($this->_totalTime);\n }", "static function ms(){\r\n $dm = memory_get_usage() - self::$startmem;\r\n return self::memformat($dm);\r\n }", "private function execution_time($total, $count = 0)\n\t{\n\t\t$hours = $minutes = $seconds = 0;\n\n\t\tif ($count > 0)\n\t\t{\n\t\t\t// If calculating an average, divide the total by the count\n\t\t\t$total = floor($total / $count);\n\t\t}\n\n\t\tif ($total > 0)\n\t\t{\n\t\t\t// Pad each number to two digits\n\t\t\t$hours = str_pad(floor($total / 3600), 2, '0', STR_PAD_LEFT);\n\t\t\t$minutes = str_pad(floor(($total / 60) % 60), 2, '0', STR_PAD_LEFT);\n\t\t\t$seconds = str_pad($total % 60, 2, '0', STR_PAD_LEFT);\n\t\t}\n\n\t\t// Return a simple array\n\t\treturn array(\n\t\t\t'h' => $hours,\n\t\t\t'm' => $minutes,\n\t\t\t's' => $seconds\n\t\t);\n\t}", "public static function totalDuration()\n {\n return microtime(true) - static::initialTime();\n }", "public function getTotalTime()\n {\n if (isset($this->results)) {\n return $this->results->getTotalTime();\n }\n }", "public function finPerformance(){\n $memoria = memory_get_usage() - $this->memoria;\n $tiempo = microtime(true) - $this->tiempo;\n\n echo \"<pre>\";\n print_r(array(\"memoria\" => $memoria.\" bytes \", \"tiempo\" => $tiempo.\" segundos\" ));\n die;\n }", "protected function calculateColors()\n {\n // initial structure of our return array\n $return = ['time' => [], 'memory' => []];\n\n // short-circuit if we only have one thing to benchmark\n if (count($this->benchmarks) == 1) {\n $name = $this->benchmarks[0]->getName();\n $return['time'][$name] = self::COLOR_GREEN;\n $return['memory'][$name] = self::COLOR_GREEN;\n\n return $return;\n }\n\n // we make separate arrays since we don't want to re-order the list as it was passed in. usort would do that\n $times = [];\n $memories = [];\n\n // split them all out\n /** @var Benchmark $benchmark */\n foreach ($this->benchmarks as $benchmark) {\n $times[$benchmark->getName()] = $benchmark->getTime();\n $memories[$benchmark->getName()] = $benchmark->getMemory();\n }\n\n // sort them by value\n asort($times);\n asort($memories);\n\n // go through the times--anything < 34% is green, between 34 and 66 is yellow, higher is red\n $i = 1;\n foreach ($times as $productName => $time) {\n $rank = $i / (count($this->benchmarks) + 1);\n if ($rank <= .34) {\n $return['time'][$productName] = self::COLOR_GREEN;\n } else if ($rank > .34 && $rank <= .66) {\n $return['time'][$productName] = self::COLOR_YELLOW;\n } else {\n $return['time'][$productName] = self::COLOR_RED;\n }\n $i++;\n }\n\n // go through the memory--anything < 34% is green, between 34 and 66 is yellow, higher is red\n $i = 1;\n foreach ($memories as $productName => $memory) {\n $rank = $i / (count($this->benchmarks) + 1);\n if ($rank <= .34) {\n $return['memory'][$productName] = self::COLOR_GREEN;\n } else if ($rank > .34 && $rank <= .66) {\n $return['memory'][$productName] = self::COLOR_YELLOW;\n } else {\n $return['memory'][$productName] = self::COLOR_RED;\n }\n $i++;\n }\n\n return $return;\n }", "public function getAvgLoad()\n {\n $loadArray = array();\n $this->refresher->Refresh();\n // ProcessorQueueLength\n foreach ($this->cpuValue->ObjectSet as $key => $set) {\n $loadArray = $set->PercentProcessorTime;\n }\n\n return $loadArray[0];\n }", "public function getElapsed()\n {\n $elapsedTime = array_sum($this->_totalTime);\n\n // No elapsed time or currently running? take/add current running time\n if ($this->_start !== null) {\n $elapsedTime += microtime(true) - $this->_start;\n }\n\n return $elapsedTime;\n }", "public function collect() {\r\n $stat1 = $this->GetCoreInformation();\r\n /* sleep on server for one second */\r\n sleep(1);\r\n /* take second snapshot */\r\n $stat2 = $this->GetCoreInformation();\r\n /* get the cpu percentage based off two snapshots */\r\n $data = $this->GetCpuPercentages($stat1, $stat2);\r\n $total = 0;\r\n $count = 0;\r\n foreach ($data as $key => $value) {\r\n $total += $value['user'] + $value['nice'] + $value['sys'];\r\n $count++;\r\n }\r\n\r\n $information = array\r\n (\r\n 'processors' => $this->collectProccessorsNumber(),\r\n 'processor_load' => $this->collectProcessorLoad(),\r\n 'cpu' => round($total / ($count ?: 1)),\r\n 'memory' => array('total' => $this->collectMemoryTotal(), 'free' => $this->collectMemoryFree()),\r\n 'swap' => array('total' => $this->collectSwapTotal(), 'free' => $this->collectSwapFree()),\r\n 'tasks' => $this->collectTasksNumber(),\r\n 'uptime' => $this->collectUptime(),\r\n );\r\n $information['memory']['busy'] = $information['memory']['total'] - $information['memory']['free'];\r\n $information['swap']['busy'] = $information['swap']['total'] - $information['swap']['free'];\r\n return $information;\r\n }", "public function getTotalExecutionTime()\n {\n return $this->totalExecutionTime;\n }", "public function getData()\n {\n return array(\n 'time' => bcsub(self::getMicroTime() , $this->startTime, 4),\n 'memory' => round(memory_get_usage() / 1024 / 1024, 4),\n 'files' => count(get_included_files()),\n 'classes' => count(get_declared_classes())\n );\n }", "public function getExecutionStats()\n {\n return $this->execution_stats;\n }", "static function measure($name='std'){\n\t\t$next = count(self::$measures[$name]);\n\t\tself::$measures[$name][$next]['time'] = microtime(true);\n\t\tself::$measures[$name][$next]['mem'] = memory_get_usage();\n\t\tself::$measures[$name][$next]['peakMem'] = memory_get_peak_usage();\n\t}", "public function getPerformance()\n {\n return $this->_performance;\n }", "public function getStats()\n\t{\n\t return ($this->_statsList);\n\t}", "protected function doGetStats()\n {\n $info = $this->yac->info();\n\n return array(\n Cache::STATS_HITS => $info['hits'],\n Cache::STATS_MISSES => $info['miss'],\n Cache::STATS_UPTIME => 0,\n Cache::STATS_MEMORY_USAGE => 0,\n Cache::STATS_MEMORY_AVAILABLE => 0,\n );\n }", "public function getAllQueriesTime(){\n return Db::getAllQueriesEstimatedTime();\n }", "function get_metric() {\n $processes = array();\n //$output = `ps aux | awk '{ print $1,$2,$3,$4,$9,$10,$11 }'`;\n $output = `ps -eo pcpu,pmem,pid,user,args,time,start | grep -v '\\[' | sort -k 1 -r | head -30 | awk '{print $4,$3,$1,$2,$7,$6,$5}'`;\n $output = explode(\"\\n\", $output);\n if (!is_array($output) || count($output)<2) {\n return false; \n }\n array_shift($output);\n foreach ($output as $line) {\n //$line = preg_split('/\\s+/', $line);\n $line = explode(' ', $line);\n if (count($line)<6) {\n continue;\n }\n //var_dump($line);\n //echo count($line);\n if (empty($processes[$line[6]])) {\n $processes[$line[6]] = array_combine(array('user', 'pid', '%cpu', '%mem','start','time', 'command'), $line);\n } else {\n $processes[$line[6]]['%cpu'] += $line[2];\n $processes[$line[6]]['%mem'] += $line[3];\n }\n }\n\n return $processes;\n }", "public function getStats()\n {\n //returns some stats.\n $stats = 'Num Queries: ' . $this->numExecutes . ' Time spent on queries: ' . $this->executeTime\n . ' sec.<br />' . \"\\n\";\n $stats .= 'Query Stats:' . \"\\n\";\n $stats .= \"<table border=\\\"1\\\"><thead><tr><th>Time(s) each query took</th><th>Query</th>\n <th># times executed</th></thead><tbody>\\n\";\n foreach ($this->queries as $query => $q_stat) {\n $totalT = 0;\n if (count($q_stat['time']) > 2) {\n foreach ($q_stat['time'] as $t) {\n $totalT += $t;\n }\n $q_stat['time'][] = \"<br /><strong>Total</strong>:{$totalT}\";\n }\n $stats .= \"<tr><td>\" . implode(', ', $q_stat['time'])\n . \"</td><td>$query</td><td>{$q_stat['count']}</td></tr>\\n\";\n }\n $stats .= \"</tbody></table>\\n\";\n if (defined('IAMDEVELOPER') && self::ADODB_DEBUG) {\n //use this for testing, to root out slow queiries and nix em\n //ADODB_DEBUG (at top) should be commented out for distrobution.\n $this->perf->UI($pollsecs = 5);\n }\n return $stats;\n }", "public function microtime();", "public static function get_times()\n { \n $timer = &self::$timer;\n return $timer->get_times();\n }", "public static function stats(array $tokens)\n\t{\n\t\t$min = $max = array(\n\t\t\t'time' => NULL,\n\t\t\t'memory' => NULL);\n\n\t\t// Total values are always integers\n\t\t$total = array(\n\t\t\t'time' => 0,\n\t\t\t'memory' => 0);\n\t\n\t\tforeach ($tokens as $token)\n\t\t{\n\t\t\t$other = Profiler::$_marks[$token]['other'];\n\t\t\t// Get the total time and memory for this benchmark\n\t\t\tlist($time, $memory) = Profiler::total($token);\n\n\t\t\tif ($max['time'] === NULL OR $time > $max['time'])\n\t\t\t{\n\t\t\t\t// Set the maximum time\n\t\t\t\t$max['time'] = $time;\n\t\t\t}\n\n\t\t\tif ($min['time'] === NULL OR $time < $min['time'])\n\t\t\t{\n\t\t\t\t// Set the minimum time\n\t\t\t\t$min['time'] = $time;\n\t\t\t}\n\n\t\t\t// Increase the total time\n\t\t\t$total['time'] += $time;\n\n\t\t\tif ($max['memory'] === NULL OR $memory > $max['memory'])\n\t\t\t{\n\t\t\t\t// Set the maximum memory\n\t\t\t\t$max['memory'] = $memory;\n\t\t\t}\n\n\t\t\tif ($min['memory'] === NULL OR $memory < $min['memory'])\n\t\t\t{\n\t\t\t\t// Set the minimum memory\n\t\t\t\t$min['memory'] = $memory;\n\t\t\t}\n\n\t\t\t// Increase the total memory\n\t\t\t$total['memory'] += $memory;\n\t\t}\n\n\t\t// Determine the number of tokens\n\t\t$count = count($tokens);\n\n\t\t// Determine the averages\n\t\t$average = array(\n\t\t\t'time' => $total['time'] / $count,\n\t\t\t'memory' => $total['memory'] / $count);\n\n\t\treturn array(\n\t\t\t'min' => $min,\n\t\t\t'max' => $max,\n\t\t\t'total' => $total,\n\t\t\t'average' => $average,\n\t\t\t'other'=>$other\n\t\t);\n\t}", "public function stats(): array\n {\n if (!\\server()) {\n return ['msg' => 'server is not running'];\n }\n\n $stat = \\server()->getSwooleStats();\n // start date\n $stat['start_date'] = \\date('Y-m-d H:i:s', $stat['start_time']);\n\n return $stat;\n }", "public function processMeasurements()\n {\n $log = $this->logger();\n $c = $this->cache();\n $results = [\n 'success' => 0,\n 'errors' => 0\n ];\n $log->debug(\"Processesing Cached Measurements\");\n $done = false;\n do {\n\n $log->debug(\" ------------------- Next Cached Item --------------------\");\n $items = $c->llen($this->rkey);\n $log->debug(\"Items left on the \" . $this->rkey . \" list: \" . $items);\n if ($items == 0) {\n break;\n }\n\n $retval = $c->lpop($this->rkey);\n if ($retval) {\n $log->debug(\"Got measurement data: \" . $retval);\n $blockstr = $retval;\n $block = explode('|', $blockstr);\n $ok = $this->parseMeasurement($block);\n if (!$ok) {\n $log->error(\"Failed to parse: \" . $block); \n $results['errors']++;\n } else {\n $results['success']++;\n }\n } else {\n $done = true;\n }\n \n } while ( ! $done );\n return $results;\n }", "function getBenchmark(string $name){\n return $this->benchmarks[$name] ?? null;\n }", "public function getElapsedTime();", "public function memoryUsage() : array\n {\n return $this->memoryUsage;\n }", "public function getExecutionTime()/*# : float */;", "public function getMeasureUnitList()\n {\n if ( $this->measureunits->count() )\n return $this->measureunits->pluck('name', 'id')->toArray();\n\n return MeasureUnit::pluck('name', 'id')->toArray();\n }", "private function getSqlProfilerData()\n {\n $allQueries = [];\n $sqlProfiler = $this->resource->getConnection('read')->getProfiler();\n\n $longestQueryTime = 0;\n $shortestQueryTime = 100000;\n\n if ($sqlProfiler->getQueryProfiles() && is_array($sqlProfiler->getQueryProfiles())) {\n foreach ($sqlProfiler->getQueryProfiles() as $query) {\n if ($query->getElapsedSecs() > $longestQueryTime) {\n $longestQueryTime = $query->getElapsedSecs();\n }\n if ($query->getElapsedSecs() < $shortestQueryTime) {\n $shortestQueryTime = $query->getElapsedSecs();\n }\n\n if (in_array($query->getQuery(), ['commit', 'begin', 'connect'])) {\n continue;\n }\n\n $allQueries[] = [\n 'sql' => $query->getQuery(),\n 'time' => $query->getElapsedSecs(),\n 'grade' => 'medium',\n ];\n }\n }\n\n if ($allQueries && !empty($allQueries)) {\n $standardDeviation = 0;\n\n $totalNumQueries = $sqlProfiler->getTotalNumQueries(null);\n $average = ($totalNumQueries && $sqlProfiler->getTotalElapsedSecs()) ?\n $sqlProfiler->getTotalElapsedSecs() / $totalNumQueries : 0;\n\n $squareSum = 0;\n\n foreach ($allQueries as $index => $query) {\n $squareSum = pow($query['time'] - $average, 2);\n }\n\n if ($squareSum && $totalNumQueries) {\n $standardDeviation = sqrt($squareSum / $totalNumQueries);\n }\n\n foreach ($allQueries as $index => $query) {\n if ($query['time'] < ($shortestQueryTime + 2*$standardDeviation)) {\n $allQueries[$index]['grade'] = 'good';\n } elseif ($query['time'] > ($longestQueryTime - 2*$standardDeviation)) {\n $allQueries[$index]['grade'] = 'bad';\n }\n\n $allQueries[$index]['time'] = $this->formatSqlTime($query['time']);\n }\n }\n\n return $allQueries;\n }", "public function getTotalTime()\n {\n return $this->info->total_time * 1000;\n }", "public function getTime()\n {\n $time = 0;\n foreach ($this->data['commands'] as $command) {\n $time += $command['executionMS'];\n }\n\n return $time;\n }", "public function getUseTimes()\n {\n return $this->get(self::_USE_TIMES);\n }", "public function getSumExecutionMS()\n {\n $sum = 0;\n foreach($this->getApiQueries() as $query) {\n $sum += $query['executionMS'];\n }\n\n return $sum;\n }", "public function GetTotalExecutionTime()\r\n {\r\n return $this->_TotalExecutionTime; \r\n }", "public function getStats(): array\n {\n return $this->stats;\n }", "public function summary() {\n $this->totalTime = $this->endTime - $this->startTime;\n\n $summary = array(\n 'running' => ( $this->isRunning === true ? \"true\" : \"false\" ),\n 'start' => $this->startTime,\n 'end' => $this->endTime,\n 'total' => $this->totalTime,\n 'paused' => $this->totalPauseTime,\n 'laps' => $this->laps\n );\n\n return $summary;\n }", "public static function stats(): array;", "public function getTime()\n {\n $time = 0;\n foreach ($this->data['calls'] as $call) {\n $time += $call['time'];\n }\n\n return $time;\n }", "public function getTotalTime()\n {\n return 0; //@todo\n }", "public function getStats()\n {\n return $this->result->getStats();\n }", "public function stats() {\n\t\techo \"<p>\";\n\t\techo \"<strong>Cache Hits:</strong> {$this->cache_hits}<br />\";\n\t\techo \"<strong>Cache Misses:</strong> {$this->cache_misses}<br />\";\n\t\techo \"</p>\";\n\t\techo '<ul>';\n\t\tforeach ( $this->cache as $group => $cache ) {\n\t\t\techo \"<li><strong>Group:</strong> $group - ( \" . number_format( strlen( serialize( $cache ) ) / 1024, 2 ) . 'k )</li>';\n\t\t}\n\t\techo '</ul>';\n\t}", "public function getTotalDuration(): float\r\n\t{\r\n\t\t$time = 0;\r\n\t\tforeach ($this->data as $command) {\r\n\t\t\t$time += $command['duration'];\r\n\t\t}\r\n\r\n\t\treturn $time;\r\n\t}", "protected function time()\n {\n $time = microtime();\n $time = explode(' ', $time);\n $time = $time[1] + $time[0];\n return $time;\n }", "function xhprof_get_possible_metrics()\n {\n $this->possible_metrics = array(\n \"wt\" => array(\"Wall\", \"microsecs\", \"walltime\" ),\n \"ut\" => array(\"User\", \"microsecs\", \"user cpu time\" ),\n \"st\" => array(\"Sys\", \"microsecs\", \"system cpu time\"),\n \"cpu\" => array(\"Cpu\", \"microsecs\", \"cpu time\"),\n \"mu\" => array(\"MUse\", \"bytes\", \"memory usage\"),\n \"pmu\" => array(\"PMUse\", \"bytes\", \"peak memory usage\"),\n \"samples\" => array(\"Samples\", \"samples\", \"cpu time\")\n );\n\n return $this->possible_metrics;\n }", "public static function stats(array $tokens) {\n\t\t// Min and max are unknown by default\n\t\t$min = $max = array(\n\t\t\t'time' => NULL,\n\t\t\t'memory' => NULL,\n\t\t\t);\n\n\t\t// Total values are always integers\n\t\t$total = array(\n\t\t\t'time' => 0,\n\t\t\t'memory' => 0);\n\n\t\tforeach ($tokens as $token) {\n\t\t\t// Get the total time and memory for this benchmark\n\t\t\tlist($time, $memory) = Profiler::total($token);\n\n\t\t\tif ($max['time'] === NULL OR $time > $max['time'])\n\t\t\t{\n\t\t\t\t// Set the maximum time\n\t\t\t\t$max['time'] = $time;\n\t\t\t}\n\n\t\t\tif ($min['time'] === NULL OR $time < $min['time'])\n\t\t\t{\n\t\t\t\t// Set the minimum time\n\t\t\t\t$min['time'] = $time;\n\t\t\t}\n\n\t\t\t// Increase the total time\n\t\t\t$total['time'] += $time;\n\n\t\t\tif ($max['memory'] === NULL OR $memory > $max['memory'])\n\t\t\t{\n\t\t\t\t// Set the maximum memory\n\t\t\t\t$max['memory'] = $memory;\n\t\t\t}\n\n\t\t\tif ($min['memory'] === NULL OR $memory < $min['memory'])\n\t\t\t{\n\t\t\t\t// Set the minimum memory\n\t\t\t\t$min['memory'] = $memory;\n\t\t\t}\n\n\t\t\t// Increase the total memory\n\t\t\t$total['memory'] += $memory;\n\t\t}\n\n\t\t// Determine the number of tokens\n\t\t$count = count($tokens);\n\n\t\t// Determine the averages\n\t\t$average = array(\n\t\t\t'time' => $total['time'] / $count,\n\t\t\t'memory' => $total['memory'] / $count);\n\n\t\treturn array(\n\t\t\t'min' => $min,\n\t\t\t'max' => $max,\n\t\t\t'total' => $total,\n\t\t\t'average' => $average);\n\t}", "private static function time()\n {\n list($usec, $sec) = explode(\" \", microtime());\n return ((float)$usec + (float)$sec);\n }", "function getTotals(){\n\t\treturn $this->cache->getTotals();\n\t}", "public function getUsages(): array\n {\n return $this->usages;\n }", "public function getExecutionTime() {}", "public static function getMemory() {\n if (is_null(self::$_mem)) {\n self::$_mem = memory_get_usage();\n } else {\n $memory = memory_get_usage() - self::$_mem;\n $unit = ['b', 'kb', 'mb', 'gb', 'tb', 'pb'];\n echo round($memory / pow(1024, ($i = floor(log($memory, 1024)))), 2) . $unit[$i] . PHP_EOL;\n }\n }", "static function microtime ()\n\t{\n\t\tlist ($usec, $sec) = explode(' ', microtime());\n\t\t$result = ((float) $usec + (float) $sec) * 1000;\n\t\t\n\t\tstatic $microtime_start;\n\t\tif (empty($microtime_start)) {\n\t\t\t$microtime_start = $result;\n\t\t}\n\t\treturn $result - $microtime_start;\n\t}", "public function getStats()\n {\n $request = new TaskQueueFetchQueueStatsRequest();\n $response = new TaskQueueFetchQueueStatsResponse();\n\n $request->addQueueName($this->str_name);\n\n $this->makeCall('FetchQueueStats', $request, $response);\n \n return $response->getQueueStats(0);\n }", "public function getStatistics(): array\n {\n return $this->statistics;\n }", "function mstime ()\r\n{\r\n\t$t = explode (' ', microtime ());\r\n\treturn (int) (($t[0] + $t[1]) * 1000);\r\n}", "public function gatherMemoryData()\n {\n $memoryTotals = array();\n\n $memoryTotals['used'] = $this->getReadableFileSize(memory_get_peak_usage());\n\n $memoryTotals['total'] = ini_get(\"memory_limit\");\n\n $this->output['memoryTotals'] = $memoryTotals;\n }", "static function totalExecution() {\n return static::getNumberTimers() . \" Timers have been used and it \"\n . \"took \" . static::getTotalExec() . \" seconds to run them.<br/> It also took \" . number_format((microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']), 5) . \" seconds to run the entire page\";;\n }", "public function dumpStats()\n\t{\n\t\t// Loop through each array, performing calculations as needed.\n\t\t$stats = array();\n\t\tforeach ($this->commoditiesQueue as $commodityName => /** @var CommodityStore **/ $store)\n\t\t{\n\t\t\t$stats[] = array('name' => $commodityName,\n\t\t\t 'valuation' => $store->commodity->currentValuation,\n\t\t\t 'quantity' => $store->quantity,\n\t\t\t 'subtotal' => $store->calculateWorth());\n\t\t}\n\n\t\treturn $stats;\n\t}", "public function runtime ()\n {\n return time() - $this->_start_time;\n }", "function getMemUsage(){\n\t// Resets\n\t$total = 0;\n\t$free = 0;\n\t$cached = 0;\n\n\t// Open file handle\n\t$fh = fopen('/proc/meminfo','r');\n\n\t// Loop\n\twhile($line = fgets($fh)) {\n\t\t$pieces = array();\n\n\t\t// Total memory\n\t\tif(preg_match('/^MemTotal:\\s+(\\d+)\\skB$/', $line, $pieces)){\n\t\t\t$total = $pieces[1];\n\t\t}\n\n\t\t// Free memory\n\t\tif(preg_match('/^MemFree:\\s+(\\d+)\\skB$/', $line, $pieces)){\n\t\t\t$free = $pieces[1];\n\t\t}\n\n\t\t// Cached memory \n\t\tif(preg_match('/^Cached:\\s+(\\d+)\\skB$/', $line, $pieces)){\n\t\t\t$cached = $pieces[1];\n\t\t}\n\n\t\t// Break loop when both are set\n\t\tif(!empty($total) && !empty($free) && !empty($cached)){\n\t\t\tbreak;\n\t\t}\n\t}\n\t// Close file handle (/proc/meminfo)\n\tfclose($fh);\n\n\t// Convert all values from kB to GB and round to 2 decimal places\n\t$total = ($total / 1024 / 1024);\n\t$total = round($total, 2);\n\t\n\t$free = ($free / 1024 / 1024);\n\t$free = round($free, 2);\n\t\n\t$cached = ($cached / 1024 / 1024);\n\t$cached = round($cached, 2);\n\t\n\t// Fix if there is something weird with memory usage (TODO not sure why it does this?)\n\tif($cached > $free){\n\t\t$usage_percentage = round(((($total - $cached)/$total)*100), 0);\n\t}\n\telseif($cached < $free){\n\t\t$usage_percentage = round(((($total - $free)/$total)*100), 0);\n\t}\n\n\t// Fix if over 100% (TODO not sure why it does this?)\n\tif ($usage_percentage > '100') {\n\t\t\t$usage_percentage = '100';\n\t}\n\n\treturn $usage_percentage.'%';\n}", "protected function getTotalTime()\n {\n return (string) round(array_sum(array_column($this->pdo->getLog(), 'time')), 4);\n }", "private function getLoadData()\n {\n $load = sys_getloadavg();\n return array(\n 'last_one_minute' => $load[0],\n 'last_five_minutes' => $load[1],\n 'last_fifteen_minutes' => $load[2]\n );\n }", "public function getExecTime(): float\n\t{\n\t\tif ( null === $this->start_time ) {\n\t\t\t$this->start_time = microtime( true );\n\t\t\treturn 0;\n\t\t}\n\t\treturn microtime( true ) - $this->start_time;\n\t}", "public function stat()\n\t{\n\t\tlist($count, $size) = $this->model\n\t\t\t->select('COUNT(hash), SUM(LENGTH(data))')\n\t\t\t->one(\\PDO::FETCH_NUM);\n\n\t\treturn [\n\n\t\t\t(int) $count,\n\t\t\tapp()->translate(':count items<br /><span class=\"small\">:size</span>', [\n\n\t\t\t\t':count' => (int) $count,\n\t\t\t\t'size' => \\ICanBoogie\\I18n\\format_size($size)\n\n\t\t\t])\n\n\t\t];\n\t}", "public function getCalls()\n {\n $calls = count($this->_totalTime);\n if ($this->_start !== null) {\n $calls++;\n }\n\n return $calls;\n }", "public function getSavedTotalDuration() {\n\t\tif ( ! $this->filesystem->exists( '.executionTime' ) ) {\n\t\t\treturn 0.00;\n\t\t}\n\n\t\treturn file_get_contents( '.executionTime' );\n\t}", "public function getElapsed() {\n if ($this->hasStarted() && $this->hasStopped()) {\n return number_format($this->stoppedAt - $this->startedAt, 7);\n }\n throw new StopwatchException('Cannot get elapsed time, insufficient data');\n }", "public function getTimeDiff()\n {\n $start = ServiceUtil::getManager()->getArgument('debug.toolbar.panel.rendertime.start');\n $end = microtime(true);\n\n $diff = $end - $start;\n return $diff;\n }", "function get_measure($id) {\r\n global $measures;\r\n global $measures_stop;\r\n if ($measures_stop[$id] == \"\" || $measures_stop[$id] == NULL)\r\n $tFinish = microtime_float();\r\n else\r\n $tFinish = $measures_stop[$id];\r\n return ($tFinish - $measures[$id]);\r\n}", "function cpu_usage() {\n\t\t$duration = 250000;\n\t\t$diff = array('user', 'nice', 'sys', 'intr', 'idle');\n\t\t$cpuTicks = array_combine($diff, explode(\" \", `/sbin/sysctl -n kern.cp_time`));\n\t\tusleep($duration);\n\t\t$cpuTicks2 = array_combine($diff, explode(\" \", `/sbin/sysctl -n kern.cp_time`));\n\n\t\t$totalStart = array_sum($cpuTicks);\n\t\t$totalEnd = array_sum($cpuTicks2);\n\n\t\t// Something wrapped ?!?!\n\t\tif ($totalEnd <= $totalStart)\n\t\t\treturn 0;\n\n\t\t// Calculate total cycles used\n\t\t$totalUsed = ($totalEnd - $totalStart) - ($cpuTicks2['idle'] - $cpuTicks['idle']);\n\n\t\t// Calculate the percentage used\n\t\t$cpuUsage = floor(100 * ($totalUsed / ($totalEnd - $totalStart)));\n\n\t\treturn $cpuUsage;\n\t}", "public function time() {\n return $this->info['total_time'];\n }", "public function getExecutionTimes()\n {\n return $this->queryExecutionTimes;\n }", "protected function jobMetrics() {\n $metrics = array();\n if ($jobs = $this->getSteadyStateJobs()) {\n $iops = array();\n foreach(array_keys($jobs) as $job) {\n if (isset($jobs[$job]['write']['iops'])) $iops[] = $jobs[$job]['write']['iops'];\n }\n if ($iops) $metrics['iops'] = round(array_sum($iops)/count($iops));\n }\n return $metrics;\n }", "public function getTotalTime(){\n return $this->totalTime;\n }", "protected function startTime()\n {\n return microtime(true);\n }", "public static function results($id=NULL) {\n\t\tif ($id==NULL) $id = self::$id;\n\n\t\t$results = array();\n\t\t$array_size = count(self::$timers[$id]['timer']);\n\t\tfor($i = 0; $i < $array_size; $i++) {\n\t\t\t$results[$i] = self::$timers[$id]['timer'][$i]->duration();\n\t\t}\n\n\t\t$return = array();\n\t\t$return['total'] = array_sum($results);\n\t\t$return['min'] = min($results);\n\t\t$return['max'] = max($results);\n\t\t$return['avg'] = $return['total'] / $array_size;\n\t\t\n\t\treturn $return;\n\t}", "public function get_stats()\n {\n $now = time();\n $three_months = $now + 3600 * 24 * 30 * 3;\n $sql = \"SELECT COUNT(1) as total, \n\t\t\tCOUNT(CASE WHEN cert_exp_time < '$now' THEN 1 END) AS expired, \n\t\t\tCOUNT(CASE WHEN cert_exp_time BETWEEN $now AND $three_months THEN 1 END) AS soon,\n\t\t\tCOUNT(CASE WHEN cert_exp_time > $three_months THEN 1 END) AS ok\n\t\t\tFROM certificate\n\t\t\tLEFT JOIN reportdata USING (serial_number)\n\t\t\t\".get_machine_group_filter();\n return current($this->query($sql));\n }", "public function getStats()\r\n {\r\n return array_keys($this->stats);\r\n }", "public static function report()\n {\n $report = [\n 'request_time' => $_SERVER['REQUEST_TIME_FLOAT'],\n 'execution_time' => self::$logs[count(self::$logs) - 1]['timestamp']\n - $_SERVER['REQUEST_TIME_FLOAT'],\n 'peak_memory_usage' => memory_get_peak_usage(),\n 'max_execution_time' => ini_get('max_execution_time'),\n 'memory_limit' => ini_get('memory_limit'),\n 'included_files' => count(get_included_files()),\n 'logs' => self::$logs,\n ];\n\n self::$logs = [];\n self::$timers = [];\n\n return $report;\n }", "public function get_usage() {\n \n $out = array();\n \n foreach ($this->q('SHOW TABLES') as $table) {\n $table_name = array_shift($table);\n \n $r_status = mysql_query(\"SHOW TABLE STATUS LIKE '$table_name'\");\n $status = mysql_fetch_assoc($r_status);\n mysql_free_result($r_status);\n \n $out['tables'][$table_name] = array(\n 'rows' => $status['Rows'],\n 'engine' => $status['Engine'],\n 'data_size' => $status['Data_length'],\n 'index_size' => $status['Index_length']\n );\n }\n \n return $out;\n \n }", "public function getStatistics(): array\n {\n return $this->redisService->getRedis()->hGetAll(self::STAT_KEY);\n }", "public function getTokensPerSecond()\n {\n return $this->tokens / self::$unitMap[$this->unit];\n }", "public function getStats() {}", "public static function getMemUsage($unit = '')\n {\n $usage = memory_get_usage();\n\n if ($usage < 1e3 || $unit == 'B') {\n $unit = '';\n } elseif ($usage < 9e5 || $unit == 'K') {\n $usage = round($usage / 1e3, 2);\n $unit = 'K';\n } elseif ($usage < 9e8 || $unit == 'M') {\n $usage = round($usage / 1e6, 2);\n $unit = 'M';\n } elseif ($usage < 9e11 || $unit = 'G') {\n $usage = round($usage / 1e9, 2);\n $unit = 'G';\n } else {\n $usage = round($usage / 1e12, 2);\n $unit = 'T';\n }\n\n return array(\n 'num' => $usage,\n 'unit' => $unit,\n );\n }", "public function getAllStat()\n {\n // Cache method calls\n static $stat = null;\n\n if (is_null($stat)) {\n $stat = array(\n 'totalQuantity' => array_sum($this->collection->getAllOptions(self::BASKET_STATIC_OPTION_QTY)),\n 'totalPrice' => array_sum($this->collection->getAllOptions(self::BASKET_STATIC_OPTION_SUBTOTAL_PRICE))\n );\r\n }\n\n return $stat;\n }", "public function totalTimer() {\n return \"It took \" . $this->getTime() . \" seconds to run \" . $this->getName() . \" <br>\";\n }", "function printResults () {\n\n if (! $this->isActive()) { return; }\n\n $unstoppedTasks = array_keys($this->startTime);\n if (count($unstoppedTasks)) {\n Tht::error('Unstopped Perf task: `' . $unstoppedTasks[0] . '`');\n }\n\n $results = $this->results();\n\n // Have to do this outside of results() or the audit calls will show up in the perf tasks.\n // $results['imageAudit'] = Tht::module('Image')->auditImages(Tht::path('public'));\n\n $thtDocLink = Tht::getThtSiteUrl('/reference/perf-panel');\n $compileMessage = Compiler::getDidCompile() ? '<div class=\"bench-compiled\">Files were updated. Refresh to see compiled results.</div>' : '';\n\n $table = OTypeString::getUntyped(\n Tht::module('Web')->u_table(OList::create($results['single']),\n OList::create([ 'task', 'durationMs', 'memoryMb', 'value' ]),\n OList::create([ 'Task', 'Duration (ms)', 'Peak Memory (MB)', 'Detail' ]),\n OMap::create(['class' => 'bench-result'])\n ), 'html');\n\n $tableGroup = OTypeString::getUntyped(\n Tht::module('Web')->u_table(OList::create($results['group']),\n OList::create([ 'task', 'durationMs', 'memoryMb', 'numCalls' ]),\n OList::create([ 'Task', 'Duration (ms)', 'Memory (MB)', 'Calls' ]),\n OMap::create(['class' => 'bench-result'])\n ), 'html');\n\n\n $opCache = '';\n if (Tht::isOpcodeCacheEnabled()) {\n $opCache = '<span style=\"color: #393\">ON</span>';\n }\n else {\n $opCache = '<span style=\"color: #c33\">OFF</span>';\n }\n\n $appCache = Tht::module('Cache')->u_get_driver();\n if ($appCache == 'file') {\n $appCache = '<span style=\"color: #c33\">' . $appCache . '</span>';\n }\n else {\n $appCache = '<span style=\"color: #393\">' . $appCache . '</span>';\n }\n\n\n\n $phpVersion = phpVersion();\n\n\n echo $this->perfPanelCss();\n echo $this->perfPanelJs($results['scriptTime']);\n\n ?>\n <div id=\"perf-score-container\">\n\n <div class=\"perfSection\">\n <div class='perfHeader'>Perf Score: <span id='perfScoreTotalLabel'></span><span id='perfScoreTotal'></span></div>\n\n <div class=\"perfHelp\"><a href=\"<?= $thtDocLink ?>\" style=\"font-weight:bold\">About This Score</a></div>\n </div>\n\n <?= $compileMessage ?>\n\n <div class=\"perfSection\">\n <div class=\"perfTotals\">\n <div>Server - Page Execution: <span id=\"perfScoreServer\"><?= $results['scriptTime'] ?> ms</span></div>\n <div>Network - Transfer: <span id='perfScoreNetwork'></span></div>\n <div>Browser - window.onload: <span id='perfScoreClient'></span></div>\n </div>\n </div>\n\n <div class=\"perfSection\">\n <div class=\"perfTotals\">\n <div>Server - Peak Memory: <span><?= $results['peakMemory'] ?> MB</span></div>\n </div>\n </div>\n\n <div class=\"perfSection tasksGrouped\">\n <div class=\"perfSubHeader\">Top Tasks (Grouped)</div>\n <?= $tableGroup ?>\n </div>\n\n <div class=\"perfSection\">\n <div class=\"perfSubHeader\">Top Tasks (Individual)</div>\n <?= $table ?>\n <div style='text-align:center; margin-top:48px;'>\n <p style=\"font-size: 80%\"> Sub-task time is not included in parent tasks.</p>\n </div>\n </div>\n\n\n\n <div class=\"perfSection\">\n <div class=\"perfHeader\">PHP Info</div>\n\n <div style=\"text-align: left; width: 300px; display: inline-block; margin-top: 32px\">\n <li>PHP Version: <b><?= $phpVersion ?></b></li>\n <li>Opcode Cache: <b><?= $opCache ?></b></li>\n <li>App Cache Driver: <b><?= $appCache ?></b></li>\n </div>\n </div>\n\n <div class=\"perfSection\">\n Perf Panel only visible to localhost or <code>devIp</code> in <code>config/app.jcon</code>\n </div>\n\n </div>\n <?php\n\n }" ]
[ "0.7219387", "0.6719664", "0.65577984", "0.6542137", "0.65279955", "0.64651036", "0.6401488", "0.6376632", "0.6191155", "0.6079454", "0.6042299", "0.59888583", "0.5940406", "0.5859489", "0.5822668", "0.57726973", "0.576621", "0.5718496", "0.5701244", "0.5679189", "0.5676112", "0.56487405", "0.5633791", "0.56288517", "0.56054294", "0.56027365", "0.55676967", "0.55612653", "0.5531165", "0.55189127", "0.55115783", "0.5507974", "0.55028665", "0.5477851", "0.5471968", "0.5457138", "0.5453137", "0.5452956", "0.5445621", "0.54326427", "0.5422364", "0.5415776", "0.54116315", "0.5406306", "0.54058415", "0.54023683", "0.5396081", "0.53634524", "0.53236836", "0.53212744", "0.53157896", "0.5314077", "0.5310226", "0.5307829", "0.53060776", "0.53021693", "0.53006387", "0.52907634", "0.52857876", "0.5279536", "0.52732295", "0.5255383", "0.5253043", "0.5251836", "0.5246837", "0.5229241", "0.52253556", "0.52211714", "0.5216132", "0.52011037", "0.51953524", "0.518634", "0.5180106", "0.517701", "0.51717126", "0.51681364", "0.51655775", "0.5164072", "0.51587063", "0.5157529", "0.5151015", "0.5148879", "0.51486206", "0.51453114", "0.5137841", "0.5131876", "0.51254606", "0.5120398", "0.51194274", "0.51070625", "0.510685", "0.51065123", "0.510563", "0.51026005", "0.5093948", "0.5092812", "0.50896895", "0.5087488", "0.508162", "0.5080581" ]
0.73667246
0
URIResolver testUriResolver defines a concrete implementation of getting the template text in a specific project. On the server side it can be a local file, an external resource, Databases, etc.
function testUriResolver($resourceURI, $baseURI, $args = null) { $file = TestRunner::createFileName($resourceURI, $baseURI); if (!$file) return null; $fileName = $file['fname']; try { $template = file_get_contents($fileName); if (!$template) throw new Exception('badResorce'); /* Check if there is value: exception:, * which should mean the call of the resource failed. */ $tmpRet = json_decode($template, true); if ($tmpRet && isset($tmpRet['key']) && $tmpRet['key'] == ":exception:") throw new Exception('badResource'); if (strpos($template, ':exception:') !== false) throw new Exception('badResource'); /* imitation of processing of additional parameters */ if (is_array($args) && count($args)) { $check = json_decode($template, true); if ($check && isset($check['key']) && $check['key'] == ':args:') { $template = array(); $template['key'] = '['; foreach ($args as $val) $template['key'] .= 'string(' . $val . ')-'; $template['key'] = rtrim($template['key'], '-') . ']'; $template = json_encode($template); } elseif (strpos($template, ':args:') !== false) { $repl = '['; foreach ($args as $val) $repl .= 'string(' . $val . ')-'; $repl = rtrim($repl, '-') . ']'; $template = str_replace(':args:', $repl, $template); } } /* * ************************************************ */ } catch (Exception $e) { return null; } return array('uri' => $fileName, 'data' => $template); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUriFactory(): UriFactory;", "private function getUriForTest()\n {\n return new Uri(\n 'http',\n 'www.example.com',\n 80,\n '/data/test',\n 'action=view',\n 'fragment'\n );\n }", "public function testUrlGenerationPlainString(): void\n {\n $mailto = 'mailto:[email protected]';\n $result = Router::url($mailto);\n $this->assertSame($mailto, $result);\n\n $js = 'javascript:alert(\"hi\")';\n $result = Router::url($js);\n $this->assertSame($js, $result);\n\n $hash = '#first';\n $result = Router::url($hash);\n $this->assertSame($hash, $result);\n }", "public function test_rest_url_generation() {\n\t\t// In pretty permalinks case, we expect a path of wp-json/ with no query.\n\t\t$this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );\n\t\t$this->assertSame( 'http://' . WP_TESTS_DOMAIN . '/wp-json/', get_rest_url() );\n\n\t\t// In index permalinks case, we expect a path of index.php/wp-json/ with no query.\n\t\t$this->set_permalink_structure( '/index.php/%year%/%monthnum%/%day%/%postname%/' );\n\t\t$this->assertSame( 'http://' . WP_TESTS_DOMAIN . '/index.php/wp-json/', get_rest_url() );\n\n\t\t// In non-pretty case, we get a query string to invoke the rest router.\n\t\t$this->set_permalink_structure( '' );\n\t\t$this->assertSame( 'http://' . WP_TESTS_DOMAIN . '/index.php?rest_route=/', get_rest_url() );\n\t}", "public function renderUri();", "public function testUrlGenerationWithPathUrl(): void\n {\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/articles', 'Articles::index');\n $routes->connect('/articles/view/*', 'Articles::view');\n $routes->connect('/article/{slug}', 'Articles::read');\n $routes->connect('/admin/articles', 'Admin/Articles::index');\n $routes->connect('/cms/articles', 'Cms.Articles::index');\n $routes->connect('/cms/admin/articles', 'Cms.Admin/Articles::index');\n\n $result = Router::pathUrl('Articles::index');\n $expected = '/articles';\n $this->assertSame($result, $expected);\n\n $result = Router::pathUrl('Articles::view', [3]);\n $expected = '/articles/view/3';\n $this->assertSame($result, $expected);\n\n $result = Router::pathUrl('Articles::read', ['slug' => 'title']);\n $expected = '/article/title';\n $this->assertSame($result, $expected);\n\n $result = Router::pathUrl('Admin/Articles::index');\n $expected = '/admin/articles';\n $this->assertSame($result, $expected);\n\n $result = Router::pathUrl('Cms.Admin/Articles::index');\n $expected = '/cms/admin/articles';\n $this->assertSame($result, $expected);\n\n $result = Router::pathUrl('Cms.Articles::index');\n $expected = '/cms/articles';\n $this->assertSame($result, $expected);\n }", "abstract public function uri(): string;", "function resolveURL($uri);", "public function testToString()\n {\n $uri = new Uri(\n 'http',\n 'domain.tld',\n 1111,\n '/path/123',\n 'q=abc',\n 'test',\n 'user',\n 'password'\n );\n\n $this->assertEquals('http://user:[email protected]:1111/path/123?q=abc#test', (string)$uri);\n }", "abstract protected function getUri(): string;", "public function testGetUri()\n {\n $this->assertEquals(\"hello/?test=true\", $this->_req->getUri());\n }", "function uri(): string;", "public function testToString()\n {\n $uri = new Uri(\n \"https\",\n \"user\",\n \"pass\",\n \"test.com\",\n 443,\n \"/test/path\",\n \"id=1\",\n \"frag\"\n );\n self::assertSame(\"https://user:[email protected]:443/test/path?id=1#frag\", (string) $uri);\n }", "public function testUris(): void\n {\n $user = new User([]);\n $contract = new Contract([\n 'user' => $user\n ]);\n\n $createUri = \\sprintf('/users/%s/contracts', $user->getId());\n $getUri = \\sprintf('/users/%s/contracts', $user->getId());\n\n self::assertSame(['create' => $createUri, 'get' => $getUri], $contract->uris());\n }", "abstract public function getUri();", "public function testUriStrategyRouteReceivesCorrectArguments()\n {\n $collection = new Route\\RouteCollection;\n $collection->setStrategy(new UriStrategy);\n\n $collection->get('/route/{id}/{name}', function ($id, $name) {\n $this->assertEquals('2', $id);\n $this->assertEquals('phil', $name);\n });\n\n $dispatcher = $collection->getDispatcher();\n $response = $dispatcher->dispatch('GET', '/route/2/phil');\n }", "public function resolveUri($uri) {}", "public function testCreateUri()\n {\n $uri = new Uri(\n 'http',\n 'www.example.com',\n 1111,\n '/path/123',\n 'q=abc',\n 'fragment',\n 'user',\n 'password'\n );\n\n $this->assertEquals('fragment', $uri->getFragment());\n $this->assertEquals('www.example.com', $uri->getHost());\n $this->assertEquals('/path/123', $uri->getPath());\n $this->assertEquals(1111, $uri->getPort());\n $this->assertEquals('q=abc', $uri->getQuery());\n $this->assertEquals('http', $uri->getScheme());\n $this->assertEquals('user:password', $uri->getUserInfo());\n }", "public function uri() : string;", "public function testUnroutedPath() {\n // Override router.\n $router = $this->getMockBuilder(TestRouterInterface::class)\n ->disableOriginalConstructor()\n ->getMock();\n $router->expects($this->any())\n ->method('matchRequest')\n ->willThrowException(new ResourceNotFoundException());\n\n $request = new Request();\n\n $request_stack = $this->getMockBuilder(RequestStack::class)\n ->disableOriginalConstructor()\n ->getMock();\n $request_stack->expects($this->any())\n ->method('getCurrentRequest')\n ->willReturn($request);\n\n // Get the container from the setUp method and change it with the\n // implementation created here, that has the route parameters.\n $container = \\Drupal::getContainer();\n $container->set('router.no_access_checks', $router);\n $container->set('request_stack', $request_stack);\n \\Drupal::setContainer($container);\n\n // Create facet.\n $facet = new Facet([], 'facets_facet');\n $facet->setFieldIdentifier('test');\n $facet->setUrlAlias('test');\n $facet->setFacetSourceId('facet_source__dummy');\n\n $this->processor = new QueryString(['facet' => $facet], 'query_string', [], $request, $this->entityManager, $this->eventDispatcher, $this->urlGenerator);\n\n $results = $this->processor->buildUrls($facet, $this->originalResults);\n\n foreach ($results as $result) {\n $this->assertEquals('base:test', $result->getUrl()->getUri());\n }\n }", "public function uri();", "public function uri();", "public function uri();", "public function test_comicEntityIsCreated_AResourceURI_setResourceURI()\n {\n $sut = $this->getSUT();\n $resourceURI = $sut->getResourceURI();\n $expected = URI::create('http://gateway.marvel.com/v1/public/comics/41530');\n $this->assertEquals($expected, $resourceURI);\n }", "public function testFindGlobalTemplates()\n {\n\n }", "public function testUriStrategyRouteReturnsResponseWhenControllerDoes()\n {\n $mockResponse = $this->getMock('Symfony\\Component\\HttpFoundation\\Response');\n\n $collection = new Route\\RouteCollection;\n $collection->setStrategy(new UriStrategy);\n\n $collection->get('/route/{id}/{name}', function ($id, $name) use ($mockResponse) {\n $this->assertEquals('2', $id);\n $this->assertEquals('phil', $name);\n return $mockResponse;\n });\n\n $dispatcher = $collection->getDispatcher();\n $response = $dispatcher->dispatch('GET', '/route/2/phil');\n\n $this->assertSame($mockResponse, $response);\n }", "public function testGetUri()\n {\n $resp = $this->getMockBuilder('Acme\\Http\\Response')\n ->setConstructorArgs([$this->request, $this->signer, $this->blade, $this->session])\n ->setMethods(['render'])\n ->getMock();\n\n // override render method to return true\n $resp->method('render')\n ->willReturn(true);\n\n $controller = $this->getMockBuilder('Acme\\Controllers\\PageController')\n ->setConstructorArgs([$this->request, $resp, $this->session,\n $this->blade, $this->signer])\n ->setMethods(null)\n ->getMock();\n\n // call the method we want to test\n $controller->getShowPage();\n\n // we expect to get the $page object with browser_title set to \"About Acme\"\n $expected = \"About Acme\";\n $actual = $controller->page->browser_title;\n\n // run assesrtion for browser title/page title\n $this->assertEquals($expected, $actual);\n\n // should have view of generic-page\n $expected = \"generic-page\";\n $actual = Assert::readAttribute($resp, 'view');\n $this->assertEquals($expected, $actual);\n\n // should have page_id of 1\n $expected = 1;\n $actual = $controller->page->id;\n $this->assertEquals($expected, $actual);\n }", "public function setUriFactory(UriFactoryInterface $uriFactory):static;", "public function buildFrontendUri() {}", "public function getURI();", "public function getUriTemplate()\n {\n if (!$this->uriTemplate) {\n $this->uriTemplate = new UriTemplate();\n }\n\n return $this->uriTemplate;\n }", "public function get($uri);", "public function testUriFunctions() {\n $config = $this->config('system.file');\n\n /** @var \\Drupal\\Core\\StreamWrapper\\StreamWrapperManagerInterface $stream_wrapper_manager */\n $stream_wrapper_manager = \\Drupal::service('stream_wrapper_manager');\n\n $instance = $stream_wrapper_manager->getViaUri($this->scheme . '://foo');\n $this->assertEquals($this->classname, get_class($instance), 'Got correct class type for dummy URI.');\n\n $instance = $stream_wrapper_manager->getViaUri('public://foo');\n $this->assertEquals('Drupal\\Core\\StreamWrapper\\PublicStream', get_class($instance), 'Got correct class type for public URI.');\n\n // Test file_uri_target().\n $this->assertEquals('foo/bar.txt', $stream_wrapper_manager::getTarget('public://foo/bar.txt'), 'Got a valid stream target from public://foo/bar.txt.');\n $this->assertEquals('image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==', $stream_wrapper_manager::getTarget('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='));\n $this->assertFalse($stream_wrapper_manager::getTarget('foo/bar.txt'), 'foo/bar.txt is not a valid stream.');\n $this->assertSame($stream_wrapper_manager::getTarget('public://'), '');\n $this->assertSame($stream_wrapper_manager::getTarget('data:'), '');\n\n // Test Drupal\\Core\\StreamWrapper\\LocalStream::getDirectoryPath().\n $this->assertEquals(PublicStream::basePath(), $stream_wrapper_manager->getViaScheme('public')->getDirectoryPath(), 'Expected default directory path was returned.');\n $file_system = \\Drupal::service('file_system');\n assert($file_system instanceof FileSystemInterface);\n $this->assertEquals($file_system->getTempDirectory(), $stream_wrapper_manager->getViaScheme('temporary')->getDirectoryPath(), 'Expected temporary directory path was returned.');\n\n // Test FileUrlGeneratorInterface::generateString()\n // TemporaryStream::getExternalUrl() uses Url::fromRoute(), which needs\n // route information to work.\n $file_url_generator = $this->container->get('file_url_generator');\n assert($file_url_generator instanceof FileUrlGeneratorInterface);\n $this->assertStringContainsString('system/temporary?file=test.txt', $file_url_generator->generateString('temporary://test.txt'), 'Temporary external URL correctly built.');\n $this->assertStringContainsString(Settings::get('file_public_path') . '/test.txt', $file_url_generator->generateString('public://test.txt'), 'Public external URL correctly built.');\n $this->assertStringContainsString('system/files/test.txt', $file_url_generator->generateString('private://test.txt'), 'Private external URL correctly built.');\n }", "public function testUrlGenerationBasic(): void\n {\n /**\n * @var string $ID\n * @var string $UUID\n * @var string $Year\n * @var string $Month\n * @var string $Action\n */\n extract(Router::getNamedExpressions());\n\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']);\n $out = Router::url(['controller' => 'Pages', 'action' => 'display', 'home']);\n $this->assertSame('/', $out);\n\n $routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'display']);\n $result = Router::url(['controller' => 'Pages', 'action' => 'display', 'about']);\n $expected = '/pages/about';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{plugin}/{id}/*', ['controller' => 'Posts', 'action' => 'view'], ['id' => $ID]);\n\n $result = Router::url([\n 'plugin' => 'CakePlugin',\n 'controller' => 'Posts',\n 'action' => 'view',\n 'id' => '1',\n ]);\n $expected = '/CakePlugin/1';\n $this->assertSame($expected, $result);\n\n $result = Router::url([\n 'plugin' => 'CakePlugin',\n 'controller' => 'Posts',\n 'action' => 'view',\n 'id' => '1',\n '0',\n ]);\n $expected = '/CakePlugin/1/0';\n $this->assertSame($expected, $result);\n\n $result = Router::url([\n 'plugin' => 'CakePlugin',\n 'controller' => 'Posts',\n 'action' => 'view',\n 'id' => '1',\n null,\n ]);\n $expected = '/CakePlugin/1';\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{controller}/{action}/{id}', [], ['id' => $ID]);\n\n $result = Router::url(['controller' => 'Posts', 'action' => 'view', 'id' => '1']);\n $expected = '/Posts/view/1';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{controller}/{id}', ['action' => 'view']);\n\n $result = Router::url(['controller' => 'Posts', 'action' => 'view', 'id' => '1']);\n $expected = '/Posts/1';\n $this->assertSame($expected, $result);\n\n $routes->connect('/view/*', ['controller' => 'Posts', 'action' => 'view']);\n $result = Router::url(['controller' => 'Posts', 'action' => 'view', '1']);\n $expected = '/view/1';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{controller}/{action}');\n $request = new ServerRequest([\n 'params' => [\n 'action' => 'index',\n 'plugin' => null,\n 'controller' => 'Users',\n ],\n ]);\n Router::setRequest($request);\n\n $result = Router::url(['action' => 'login']);\n $expected = '/Users/login';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/contact/{action}', ['plugin' => 'Contact', 'controller' => 'Contact']);\n\n $result = Router::url([\n 'plugin' => 'Contact',\n 'controller' => 'Contact',\n 'action' => 'me',\n ]);\n\n $expected = '/contact/me';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{controller}', ['action' => 'index']);\n $request = new ServerRequest([\n 'params' => [\n 'action' => 'index',\n 'plugin' => 'Myplugin',\n 'controller' => 'Mycontroller',\n ],\n ]);\n Router::setRequest($request);\n\n $result = Router::url(['plugin' => null, 'controller' => 'Myothercontroller']);\n $expected = '/Myothercontroller';\n $this->assertSame($expected, $result);\n }", "public static function uriKey()\n {\n return 'temply-pages-templates';\n }", "public function testUrlToDynamicTextComponentMustExist()\n {\n $response = $this->get('/dynamictext');\n\n $response->assertStatus(200);\n }", "public function uri($uri);", "public function testUriStrategyRouteThrowsExceptionWhenResponseCannotBeBuilt()\n {\n $this->setExpectedException('RuntimeException');\n\n $collection = new Route\\RouteCollection;\n $collection->setStrategy(new UriStrategy);\n\n $collection->get('/route/{id}/{name}', function ($id, $name) {\n $this->assertEquals('2', $id);\n $this->assertEquals('phil', $name);\n return new \\stdClass;\n });\n\n $dispatcher = $collection->getDispatcher();\n $response = $dispatcher->dispatch('GET', '/route/2/phil');\n }", "public function testFindTemplates()\n {\n\n }", "public function testGetGlobalTemplate()\n {\n\n }", "public function testToStringOnlyPath()\n {\n $uri = new Uri(\n 'http',\n 'domain.tld',\n 80,\n '//foo/bar'\n );\n\n $this->assertEquals('http://domain.tld/foo/bar', (string)$uri);\n }", "public function uri()\n {\n return '/foo/bar';\n }", "public function getUri();", "public function getUri();", "public function getUri();", "public function getUri();", "public function testMatchesFilesWithEngineOnRegistry()\n {\n $filePrefix = '/foo/Namespace/Representation/FooResource.POST.xml';\n $foundFiles = array($filePrefix . '.php', $filePrefix . '.foo');\n $engine = $this->quickMock('Asar\\Template\\Engine\\EngineInterface');\n\n $this->registry->register('foo', $engine);\n\n $assembly = $this->commonFindingTemplate(array(\n 'resourceName' => $this->resourceName,\n 'options' => array('type' => 'xml', 'method' => 'POST', 'status' => 200),\n 'foundFiles' => $foundFiles\n ));\n $this->assertEquals($engine, $assembly->getEngine());\n }", "public function testUrlReconstruction() {\n\n\t\t$router = new Nether\\Avenue\\Router(static::$RequestData['TestQuery']);\n\n\t\t(new Verify(\n\t\t\t'check that GetURL() reconstructed an accurate URL.',\n\t\t\t$router->GetURL()\n\t\t))->equals('http://www.nether.io/test');\n\n\t\treturn;\n\t}", "public function uri(): Uri;", "public function test_public_controller__match()\n {\n $this->getRequestUrl('http://localhost/static.txt');\n \\Staq\\App::create($this->projectNamespace)\n ->setPlatform('local')\n ->run();\n $this->expectOutputHtmlContent('This is an example of static file');\n }", "public function testTypeBasedRouting() {\n\t\tRouter::connect('/{:controller}/{:id:[0-9]+}', [\n\t\t\t'action' => 'index', 'type' => 'html', 'id' => null\n\t\t]);\n\t\tRouter::connect('/{:controller}/{:id:[0-9]+}.{:type}', [\n\t\t\t'action' => 'index', 'id' => null\n\t\t]);\n\n\t\tRouter::connect('/{:controller}/{:action}/{:id:[0-9]+}', [\n\t\t\t'type' => 'html', 'id' => null\n\t\t]);\n\t\tRouter::connect('/{:controller}/{:action}/{:id:[0-9]+}.{:type}', ['id' => null]);\n\n\t\t$url = Router::match(['controller' => 'posts', 'type' => 'html']);\n\t\t$this->assertIdentical('/posts', $url);\n\n\t\t$url = Router::match(['controller' => 'posts', 'type' => 'json']);\n\t\t$this->assertIdentical('/posts.json', $url);\n\t}", "public function testToStringOnlyHostName()\n {\n $uri = new Uri(\n '',\n 'domain.tld'\n );\n\n $this->assertEquals('//domain.tld/', (string)$uri);\n }", "public function getUri() {}", "public function getUri() {}", "public function testAbsolutePatterns($showScriptName, $prefix, $config)\n {\n $config['rules'] = [\n [\n 'pattern' => 'post/<id>/<title>',\n 'route' => 'post/view',\n 'host' => 'http://<lang:en|fr>.example.com',\n ],\n // note: baseUrl is not included in the pattern\n 'http://www.example.com/login' => 'site/login',\n ];\n $manager = $this->getUrlManager($config, $showScriptName);\n // first rule matches\n $urlParams = ['post/view', 'id' => 1, 'title' => 'sample post', 'lang' => 'en'];\n $expected = \"http://en.example.com$prefix/post/1/sample+post\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals('https' . substr($expected, 4), $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals(substr($expected, 5), $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n $urlParams = ['post/view', 'id' => 1, 'title' => 'sample post', 'lang' => 'en', '#' => 'testhash'];\n $expected = \"http://en.example.com$prefix/post/1/sample+post#testhash\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams));\n\n // second rule matches\n $urlParams = ['site/login'];\n $expected = \"http://www.example.com$prefix/login\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals('https' . substr($expected, 4), $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals(substr($expected, 5), $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n // none of the rules matches\n $urlParams = ['post/index', 'page' => 1];\n $this->assertEquals(\"$prefix/post/index?page=1\", $manager->createUrl($urlParams));\n $expected = \"http://www.example.com$prefix/post/index?page=1\";\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals('https' . substr($expected, 4), $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals(substr($expected, 5), $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n $urlParams = ['post/index', 'page' => 1, '#' => 'testhash'];\n $this->assertEquals(\"$prefix/post/index?page=1#testhash\", $manager->createUrl($urlParams));\n $expected = \"http://www.example.com$prefix/post/index?page=1#testhash\";\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams));\n }", "public function testUrlGenerationWithRegexQualifiedParams(): void\n {\n $routes = Router::createRouteBuilder('/');\n\n $routes->connect(\n '{language}/galleries',\n ['controller' => 'Galleries', 'action' => 'index'],\n ['language' => '[a-z]{3}']\n );\n\n $routes->connect(\n '/{language}/{admin}/{controller}/{action}/*',\n ['admin' => 'admin'],\n ['language' => '[a-z]{3}', 'admin' => 'admin']\n );\n\n $routes->connect(\n '/{language}/{controller}/{action}/*',\n [],\n ['language' => '[a-z]{3}']\n );\n\n $result = Router::url(['admin' => false, 'language' => 'dan', 'action' => 'index', 'controller' => 'Galleries']);\n $expected = '/dan/galleries';\n $this->assertSame($expected, $result);\n\n $result = Router::url(['admin' => false, 'language' => 'eng', 'action' => 'index', 'controller' => 'Galleries']);\n $expected = '/eng/galleries';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect(\n '/{language}/pages',\n ['controller' => 'Pages', 'action' => 'index'],\n ['language' => '[a-z]{3}']\n );\n $routes->connect('/{language}/{controller}/{action}/*', [], ['language' => '[a-z]{3}']);\n\n $result = Router::url(['language' => 'eng', 'action' => 'index', 'controller' => 'Pages']);\n $expected = '/eng/pages';\n $this->assertSame($expected, $result);\n\n $result = Router::url(['language' => 'eng', 'controller' => 'Pages']);\n $this->assertSame($expected, $result);\n\n $result = Router::url(['language' => 'eng', 'controller' => 'Pages', 'action' => 'add']);\n $expected = '/eng/Pages/add';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect(\n '/forestillinger/{month}/{year}/*',\n ['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar'],\n ['month' => '0[1-9]|1[012]', 'year' => '[12][0-9]{3}']\n );\n\n $result = Router::url([\n 'plugin' => 'Shows',\n 'controller' => 'Shows',\n 'action' => 'calendar',\n 'month' => '10',\n 'year' => '2007',\n 'min-forestilling',\n ]);\n $expected = '/forestillinger/10/2007/min-forestilling';\n $this->assertSame($expected, $result);\n\n Router::reload();\n $routes = Router::createRouteBuilder('/');\n $routes->connect(\n '/kalender/{month}/{year}/*',\n ['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar'],\n ['month' => '0[1-9]|1[012]', 'year' => '[12][0-9]{3}']\n );\n $routes->connect('/kalender/*', ['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar']);\n\n $result = Router::url(['plugin' => 'Shows', 'controller' => 'Shows', 'action' => 'calendar', 'min-forestilling']);\n $expected = '/kalender/min-forestilling';\n $this->assertSame($expected, $result);\n\n $result = Router::url([\n 'plugin' => 'Shows',\n 'controller' => 'Shows',\n 'action' => 'calendar',\n 'year' => '2007',\n 'month' => '10',\n 'min-forestilling',\n ]);\n $expected = '/kalender/10/2007/min-forestilling';\n $this->assertSame($expected, $result);\n }", "public function testTemplateFinder()\n {\n $finder = $this->stub->templateFinder();\n\n $this->assertInstanceOf('Antares\\UI\\UIComponents\\TemplateFinder', $finder);\n }", "public function testRouteSetsCustomTemplate()\n {\n $route = new \\Slim\\Route('/hello/*', function () {});\n $route->setPattern('/hello/:name');\n $this->assertEquals('/hello/:name', $route->getPattern());\n }", "abstract protected function uri($uri);", "public function testOrgApacheSlingScriptingCoreImplScriptingResourceResolverProvider()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/org.apache.sling.scripting.core.impl.ScriptingResourceResolverProviderImpl';\n\n $crawler = $client->request('POST', $path);\n }", "public function transformToUri(): void\n {\n $this->baseXsltProcessor->returns(['transformToUri' => 4555]);\n assertThat($this->xslProcessor->toUri('foo'), equals(4555));\n }", "private function _getContentURI(){\r\n $uri = substr($_SERVER['REQUEST_URI'], strlen(WEBROOT));\r\n if (strstr($uri, '?')) $uri = substr($uri, 0, strpos($uri, '?'));\r\n $uri = str_replace('index.php', '', $uri);\r\n $uri = trim($uri, '/');\r\n\r\n if($uri == ''){\r\n $uri = 'index';\r\n }\r\n\r\n return $uri;\r\n }", "public function testUrlGenerationWithRoutePathWithContext(): void\n {\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/articles', 'Articles::index');\n $routes->connect('/articles/view/*', 'Articles::view');\n $routes->connect('/admin/articles', 'Admin/Articles::index');\n $routes->connect('/cms/articles', 'Cms.Articles::index');\n $routes->connect('/cms/admin/articles', 'Cms.Admin/Articles::index');\n\n $request = new ServerRequest([\n 'params' => [\n 'plugin' => 'Cms',\n 'prefix' => 'Admin',\n 'controller' => 'Articles',\n 'action' => 'edit',\n 'pass' => ['3'],\n ],\n 'url' => '/admin/articles/edit/3',\n ]);\n Router::setRequest($request);\n\n $expected = '/articles';\n $result = Router::pathUrl('Articles::index');\n $this->assertSame($result, $expected);\n $result = Router::url(['_path' => 'Articles::index']);\n $this->assertSame($result, $expected);\n\n $expected = '/articles/view/3';\n $result = Router::pathUrl('Articles::view', [3]);\n $this->assertSame($result, $expected);\n $result = Router::url(['_path' => 'Articles::view', 3]);\n $this->assertSame($result, $expected);\n\n $expected = '/admin/articles';\n $result = Router::pathUrl('Admin/Articles::index');\n $this->assertSame($result, $expected);\n $result = Router::url(['_path' => 'Admin/Articles::index']);\n $this->assertSame($result, $expected);\n\n $expected = '/cms/admin/articles';\n $result = Router::pathUrl('Cms.Admin/Articles::index');\n $this->assertSame($result, $expected);\n $result = Router::url(['_path' => 'Cms.Admin/Articles::index']);\n $this->assertSame($result, $expected);\n\n $expected = '/cms/articles';\n $result = Router::pathUrl('Cms.Articles::index');\n $this->assertSame($result, $expected);\n $result = Router::url(['_path' => 'Cms.Articles::index']);\n $this->assertSame($result, $expected);\n }", "public function testUrlGenerationWithBasePath(): void\n {\n Router::createRouteBuilder('/')\n ->connect('/{controller}/{action}/*');\n $request = new ServerRequest([\n 'params' => [\n 'action' => 'index',\n 'plugin' => null,\n 'controller' => 'Subscribe',\n ],\n 'url' => '/subscribe',\n 'base' => '/magazine',\n 'webroot' => '/magazine/',\n ]);\n Router::setRequest($request);\n\n $result = Router::url();\n $this->assertSame('/magazine/subscribe', $result);\n\n $result = Router::url([]);\n $this->assertSame('/magazine/subscribe', $result);\n\n $result = Router::url('/');\n $this->assertSame('/magazine/', $result);\n\n $result = Router::url('/articles/');\n $this->assertSame('/magazine/articles/', $result);\n\n $result = Router::url('/articles::index');\n $this->assertSame('/magazine/articles::index', $result);\n\n $result = Router::url('/articles/view');\n $this->assertSame('/magazine/articles/view', $result);\n\n $result = Router::url(['controller' => 'Articles', 'action' => 'view', 1]);\n $this->assertSame('/magazine/Articles/view/1', $result);\n }", "public function testResolverResource()\n {\n $model = new \\stdClass;\n $model->schema = array(\n \"fields\" => array(\n \t \"id\"\n \t),\n \t\"needs\" => array(\n \t \"id\"\t\n )\n );\n $model->loads = new \\stdClass;\n $model->loads->init = \"\";\n $model->loads->primary = \"GET\";\n $model->loads->id = \"id\";\n \n // TODO test resolver resource here\n }", "public function fetchUriString()\n\t{\n\t\tif ($_tempUri = $this->getUriFromRequest())\n\t\t{\n\t\t\t$this->set(trim($_tempUri, '/'));\n\t\t}\n\t\t\n\t\treturn;\n\t}", "public function testUrlGenerationWithQueryStrings(): void\n {\n Router::createRouteBuilder('/')->connect('/{controller}/{action}/*');\n\n $result = Router::url([\n 'controller' => 'Posts',\n '0',\n '?' => ['var' => 'test', 'var2' => 'test2'],\n ]);\n $expected = '/Posts/index/0?var=test&var2=test2';\n $this->assertSame($expected, $result);\n\n $result = Router::url(['controller' => 'Posts', '0', '?' => ['var' => null]]);\n $this->assertSame('/Posts/index/0', $result);\n\n $result = Router::url([\n 'controller' => 'Posts',\n '0',\n '?' => [\n 'var' => 'test',\n 'var2' => 'test2',\n ],\n '#' => 'unencoded string %',\n ]);\n $expected = '/Posts/index/0?var=test&var2=test2#unencoded string %';\n $this->assertSame($expected, $result);\n }", "function router_any_file_url($abspath, $with_scheme = false)\n{\n $realpath = filesystem_realpath($abspath);\n if (!$realpath) {\n err('File does not exist: ' . $abspath);\n }\n \n if (strpos($realpath, filesystem_plugin_path()) === 0) {\n return router_plugin_url($realpath);\n }\n $include_paths = get_include_paths();\n foreach ($include_paths as $include_path) {\n if (strpos($realpath, $include_path . '/plugins/') === 0) {\n $path = substr($realpath, strlen($include_path . '/plugins'));\n return router_url($path);\n }\n }\n foreach ($include_paths as $include_path) {\n if (strpos($realpath, $include_path . '/framework/') === 0) {\n $path = substr($realpath, strlen($include_path . '/framework'));\n return router_url($path);\n }\n }\n err('Could not generate url to file: ' . $abspath);\n}", "public function createUri($uri = '');", "public function resolve($template);", "public function testUrlFunction(): void\n {\n $this->assertSame(Router::url('/'), url('/'));\n }", "public function getUri()\n {\n }", "public function getUri()\n {\n }", "public function content_url ($config, $faker)\n {\n $this->setTemplateProperties($config, $faker);\n }", "public function getRealTargetUri(): string\n {\n }", "public function testEditGlobalTemplate()\n {\n\n }", "function createURI($relativePath): string;", "public function testProtocolRelativeAbsolutePattern($showScriptName, $prefix, $config)\n {\n $config['rules'] = [\n [\n 'pattern' => 'post/<id>/<title>',\n 'route' => 'post/view',\n 'host' => '//<lang:en|fr>.example.com',\n ],\n // note: baseUrl is not included in the pattern\n '//www.example.com/login' => 'site/login',\n '//app.example.com' => 'app/index',\n '//app2.example.com/' => 'app2/index',\n ];\n $manager = $this->getUrlManager($config, $showScriptName);\n // first rule matches\n $urlParams = ['post/view', 'id' => 1, 'title' => 'sample post', 'lang' => 'en'];\n $expected = \"//en.example.com$prefix/post/1/sample+post\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals(\"https:$expected\", $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n $urlParams = ['post/view', 'id' => 1, 'title' => 'sample post', 'lang' => 'en', '#' => 'testhash'];\n $expected = \"//en.example.com$prefix/post/1/sample+post#testhash\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams));\n\n // second rule matches\n $urlParams = ['site/login'];\n $expected = \"//www.example.com$prefix/login\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals(\"https:$expected\", $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n // third rule matches\n $urlParams = ['app/index'];\n $expected = \"//app.example.com$prefix\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals(\"https:$expected\", $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n // fourth rule matches\n $urlParams = ['app2/index'];\n $expected = \"//app2.example.com$prefix\";\n $this->assertEquals($expected, $manager->createUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals(\"https:$expected\", $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n // none of the rules matches\n $urlParams = ['post/index', 'page' => 1];\n $this->assertEquals(\"$prefix/post/index?page=1\", $manager->createUrl($urlParams));\n $expected = \"//www.example.com$prefix/post/index?page=1\";\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, true));\n $this->assertEquals(\"http:$expected\", $manager->createAbsoluteUrl($urlParams, 'http'));\n $this->assertEquals(\"https:$expected\", $manager->createAbsoluteUrl($urlParams, 'https'));\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams, '')); // protocol relative Url\n\n $urlParams = ['post/index', 'page' => 1, '#' => 'testhash'];\n $this->assertEquals(\"$prefix/post/index?page=1#testhash\", $manager->createUrl($urlParams));\n $expected = \"http://www.example.com$prefix/post/index?page=1#testhash\";\n $this->assertEquals($expected, $manager->createAbsoluteUrl($urlParams));\n }", "public function testPrimaryRoutes()\n\t{\n\t/*\t//Filters disabled during unit tests unless you enable them\n\t\t//I need them enabled because they log the user in as anonymous\n\t\tRoute::enableFilters();\n\n\t\t// Test base route\n\t\t// Should show post id 1\n\t\t$response = $this->call('GET', '/');\n\t\t$post = $response->original['post'];\n\t\t$this->assertResponseOk();\n\t\t$this->assertViewHas('post');\n\t\t$this->assertEquals(1, $post->id);\n\t\t$this->assertEquals('9d3e171a-62a9-e958-bdfa-d6f224ca8cad', $post->uuid);\n\n\t\t// Test /home is post 1\n\t\t$clicksBefore = Router::where('slug', '=', 'home')->first()->clicks;\n\t\t$response = $this->call('GET', '/home');\n\t\t$post = $response->original['post'];\n\t\t$this->assertResponseOk();\n\t\t$this->assertViewHas('post');\n\t\t$this->assertEquals(1, $post->id);\n\t\t$this->assertEquals('9d3e171a-62a9-e958-bdfa-d6f224ca8cad', $post->uuid);\n\t\t$clicksAfter = Router::where('slug', '=', 'home')->first()->clicks;\n\t\t$this->assertEquals(++$clicksBefore, $clicksAfter);\n\n\t\t// Test /about is post 2\n\t\t$response = $this->call('GET', '/about');\n\t\t$post = $response->original['post'];\n\t\t$this->assertResponseOk();\n\t\t$this->assertViewHas('post');\n\t\t$this->assertEquals(2, $post->id);\n\t\t$this->assertEquals('f1112648-782e-aad3-785d-640fcfefaa9b', $post->uuid);\n\n\n\t\t// ##### Login as mReschke #####\n\t\tAuth::login(User::find(2)); Auth::user()->login();\n\n\t\t// Test /13/mreschke-home-page (non named route)\n\t\t$response = $this->call('GET', '/13/mreschke-home-page');\n\t\t$post = $response->original['post'];\n\t\t$this->assertResponseOk();\n\t\t$this->assertViewHas('post');\n\t\t$this->assertEquals(13, $post->id);\n\t\t$this->assertEquals('1a52e0e3-3174-7b2b-a582-03a39e52e34a', $post->uuid);\n\n\t\t// Test /14/squaethem-home-page (non named route)\n\t\t$response = $this->call('GET', '/14/squaethem-home-page');\n\t\t$post = $response->original['post'];\n\t\t$this->assertResponseOk();\n\t\t$this->assertViewHas('post');\n\t\t$this->assertEquals(14, $post->id);\n\t\t$this->assertEquals('e80e907e-50d4-8ed4-70f7-5d1815672966', $post->uuid);\n\t\t*/\n\n\t}", "public function testGetURL()\n {\n $pagSeguroController = new PagSeguroController();\n\n $url = $pagSeguroController->getURL('/teste');\n\n if($pagSeguroController::MODE == 'development') {\n $this->assertEquals('https://ws.sandbox.pagseguro.uol.com.br/teste', $url);\n } else {\n $this->assertEquals('https://ws.pagseguro.uol.com.br/', $url);\n }\n }", "public function testToStringMissingProtocol()\n {\n $uri = new Uri(\n '',\n 'domain.tld',\n 1111,\n '/data/test',\n 'action=view',\n 'fragment'\n );\n\n $this->assertEquals('//domain.tld:1111/data/test?action=view#fragment', (string)$uri);\n }", "public function testOrgApacheSlingJcrResourceInternalJcrResourceResolverFactoryImpl()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl';\n\n $crawler = $client->request('POST', $path);\n }", "protected function get_uri()\n {\n }", "public function testUrlStatic()\n {\n $this->router->route('login', '/user/login');\n \n // Get static URL with no parameters\n $url = $this->router->url('login');\n $this->assertEquals(\"/user/login\", $url);\n }", "public function getRelativeUrlProvider()\r\n {\r\n return [\r\n [\r\n 'http://example.com/test',\r\n '/test',\r\n ],\r\n [\r\n 'https://example.com/test/path',\r\n '/test/path',\r\n ],\r\n [\r\n '/test/any/path',\r\n '/test/any/path',\r\n ],\r\n [\r\n 'http://example.com',\r\n '/',\r\n ],\r\n [\r\n 'http://example.com/',\r\n '/',\r\n ],\r\n [\r\n '/',\r\n '/',\r\n ],\r\n [\r\n '/some/path',\r\n '/some/path',\r\n ]\r\n ];\r\n }", "function prefix_url_rewrite_test($tests) {\n //'/templates-in-use/'.\n $map = Array(\n 'forside/fpa-bolig' => '/single-fpa_mening.php',\n 'forside/fpa-finans' => '/single-fpa_mening.php',\n 'forside/fpa-mat-produktsikkerhet-og-handel' => '/single-fpa_mening.php',\n 'forside/fpa-digital' => '/single-fpa_mening.php',\n 'forside/fpa-offentlig-og-helse' => '/single-fpa_mening.php',\n\n 'forside/nytt-og-nyttig' => '/single-fpa_nytt.php',\n 'presse' => '/single-fpa_presse.php'\n );\n\n foreach ( $tests as $test ) {\n if ( isset($map[$test]) && ($tpl = $map[$test]) ) {\n return $tpl;\n }\n }\n\n return false;\n}", "public static function get_template_resolver(): TemplateResolver\n {\n return clone Render\\get_template_resolver();\n }", "public function testUrlProtocol(): void\n {\n $url = 'http://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = 'ed2k://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = 'svn+ssh://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = '://example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = '//example.com';\n $this->assertSame($url, Router::url($url));\n\n $url = 'javascript:void(0)';\n $this->assertSame($url, Router::url($url));\n\n $url = 'tel:012345-678';\n $this->assertSame($url, Router::url($url));\n\n $url = 'sms:012345-678';\n $this->assertSame($url, Router::url($url));\n\n $url = '#here';\n $this->assertSame($url, Router::url($url));\n\n $url = '?param=0';\n $this->assertSame($url, Router::url($url));\n\n $url = '/posts/index#here';\n $expected = Configure::read('App.fullBaseUrl') . '/posts/index#here';\n $this->assertSame($expected, Router::url($url, true));\n }", "public function match($uri);", "public function match ($uri);", "public function testUrlGenerationWithUrlFilter(): void\n {\n $routes = Router::createRouteBuilder('/');\n $routes->connect('/{lang}/{controller}/{action}/*');\n $request = new ServerRequest([\n 'params' => [\n 'plugin' => null,\n 'lang' => 'en',\n 'controller' => 'Posts',\n 'action' => 'index',\n ],\n ]);\n Router::setRequest($request);\n\n $calledCount = 0;\n Router::addUrlFilter(function ($url, $request) use (&$calledCount) {\n $calledCount++;\n $url['lang'] = $request->getParam('lang');\n\n return $url;\n });\n Router::addUrlFilter(function ($url, $request) use (&$calledCount) {\n $calledCount++;\n $url[] = '1234';\n\n return $url;\n });\n $result = Router::url(['controller' => 'Tasks', 'action' => 'edit']);\n $this->assertSame('/en/Tasks/edit/1234', $result);\n $this->assertSame(2, $calledCount);\n }", "public function testUrlGenerationWithExtensionInCurrentRequest(): void\n {\n Router::extensions('rss');\n $routes = Router::createRouteBuilder('/');\n $routes->fallbacks('InflectedRoute');\n $request = new ServerRequest([\n 'params' => ['plugin' => null, 'controller' => 'Tasks', 'action' => 'index', '_ext' => 'rss'],\n ]);\n Router::setRequest($request);\n\n $result = Router::url([\n 'controller' => 'Tasks',\n 'action' => 'view',\n 1,\n ]);\n $expected = '/tasks/view/1';\n $this->assertSame($expected, $result);\n\n $result = Router::url([\n 'controller' => 'Tasks',\n 'action' => 'view',\n 1,\n '_ext' => 'json',\n ]);\n $expected = '/tasks/view/1.json';\n $this->assertSame($expected, $result);\n }", "private function createUriFromGlobal(): UriInterface\n {\n $uri = new Uri('');\n $server = $_SERVER;\n\n if (empty($uri->getScheme())) {\n $uri = $uri->withScheme('http');\n }\n\n if (isset($server['HTTP_X_FORWARDED_PROTO'])) {\n $uri = $uri->withScheme($server['HTTP_X_FORWARDED_PROTO']);\n } else {\n if (isset($server['REQUEST_SCHEME'])) {\n $uri = $uri->withScheme($server['REQUEST_SCHEME']);\n } elseif (isset($server['HTTPS'])) {\n $uri = $uri->withScheme('on' === $server['HTTPS'] ? 'https' : 'http');\n }\n if (isset($server['SERVER_PORT'])) {\n $uri = $uri->withPort($server['SERVER_PORT']);\n }\n }\n\n if (isset($server['HTTP_HOST'])) {\n if (1 === \\preg_match('/^(.+)\\:(\\d+)$/', $server['HTTP_HOST'], $matches)) {\n $host = (string) $matches[1];\n $port = (string) $matches[2];\n $uri = $uri->withHost($host)->withPort($port);\n } else {\n $uri = $uri->withHost($server['HTTP_HOST']);\n }\n } elseif (isset($server['SERVER_NAME'])) {\n $uri = $uri->withHost($server['SERVER_NAME']);\n }\n if (isset($server['REQUEST_URI'])) {\n $uri = $uri->withPath(\\current(\\explode('?', $server['REQUEST_URI'])));\n }\n if (isset($server['QUERY_STRING'])) {\n $uri = $uri->withQuery($server['QUERY_STRING']);\n }\n return $uri;\n }", "public function testAddReplenishmentFileByURL()\n {\n }", "public function testGetTemplate()\n {\n\n }", "public function testGetContent()\n {\n $directory = sys_get_temp_dir();\n $fileResource = $this->getFileResource($directory, 'testGetContent');\n $resource = new MaterializedResource($fileResource, $directory);\n $this->assertEquals('testGetContent', $resource->getContent());\n }", "public function createUriWithFactoryProvider()\n {\n return [\n ['http://example.com', Http::class],\n ['https://example.com', Http::class],\n ['mailto://example.com', Mailto::class],\n ['file://example.com', File::class],\n ];\n }", "public function testUrlFullUrlReturnFromRoute(): void\n {\n $url = 'http://example.com/posts/view/1';\n\n $route = $this->getMockBuilder('Cake\\Routing\\Route\\Route')\n ->onlyMethods(['match'])\n ->setConstructorArgs(['/{controller}/{action}/*'])\n ->getMock();\n $route->expects($this->any())\n ->method('match')\n ->willReturn($url);\n\n Router::createRouteBuilder('/')->connect($route);\n\n $result = Router::url(['controller' => 'Posts', 'action' => 'view', 1]);\n $this->assertSame($url, $result);\n }", "static private function getResourceByUri($uri, $autoCreate=false) {\r\n $resource=false;\r\n \r\n foreach(SimpleRdf::$resources as $candidate) {\r\n if ($candidate->getUri() == $uri) {\r\n\t$resource=$candidate;\r\n\tbreak;\r\n }\r\n }\r\n\r\n if (!$resource && $autoCreate) {\r\n $resource=new SimpleRdfResource;\r\n $resource->setUri($uri);\r\n SimpleRdf::registerResource($resource);\t\r\n }\r\n\r\n return $resource;\r\n }", "public function testLegacyRoutes()\n\t{\n\t\t/*//Filters disabled during unit tests unless you enable them\n\t\t//I need them enabled because they log the user in as anonymous\n\t\tRoute::enableFilters();\n\n\t\t// Test /topic/1 redirects to /home\n\t\t$this->call('GET', '/topic/1');\n\t\t$this->assertRedirectedTo('/home');\n\t\t$this->call('GET', '/topic/1/doesnt/matter');\n\t\t$this->assertRedirectedTo('/home');\n\n\t\t// ?? files/1 does not currently redirect\n\t\t// not sure if it should or not yet\n\t\t*/\n\n\t}" ]
[ "0.5642792", "0.5602433", "0.55269223", "0.5511008", "0.5487218", "0.5482375", "0.54336184", "0.5358511", "0.5356531", "0.52827066", "0.5252094", "0.52510875", "0.5243085", "0.52340573", "0.5227302", "0.5184786", "0.51615614", "0.5146586", "0.5142928", "0.5130605", "0.5125727", "0.5125727", "0.5125727", "0.50524634", "0.50522846", "0.50436974", "0.502741", "0.5024116", "0.5023457", "0.50216436", "0.5021384", "0.5018249", "0.50173646", "0.5014623", "0.4998721", "0.49982375", "0.4992426", "0.4965772", "0.49504313", "0.49358404", "0.4915775", "0.4913112", "0.4905709", "0.4905709", "0.4905709", "0.4905709", "0.49050596", "0.49009418", "0.4895467", "0.48817655", "0.48637974", "0.4863555", "0.48506337", "0.48506337", "0.48232082", "0.48131734", "0.4805417", "0.4804312", "0.4804096", "0.47964418", "0.4787103", "0.47866994", "0.4778254", "0.47660854", "0.4764337", "0.47611398", "0.47470188", "0.4731368", "0.47309315", "0.4724047", "0.47240132", "0.4715265", "0.4715265", "0.47119635", "0.46930382", "0.46845827", "0.467762", "0.46740592", "0.46737364", "0.46680143", "0.4662021", "0.46579883", "0.46545845", "0.4638833", "0.46382234", "0.4636358", "0.46323222", "0.46273956", "0.46210966", "0.46150637", "0.4609764", "0.460973", "0.46047455", "0.46028158", "0.4601568", "0.4598216", "0.4597104", "0.45796964", "0.4573754", "0.45724568" ]
0.6198474
0
START CONFIGURATION DO NOT REMOVE THIS LINE
public function cbInit() { $this->title_field = "id"; $this->limit = "20"; $this->orderby = "id,desc"; $this->global_privilege = false; $this->button_table_action = true; $this->button_bulk_action = true; $this->button_action_style = "button_icon"; $this->button_add = true; $this->button_edit = true; $this->button_delete = true; $this->button_detail = true; $this->button_show = true; $this->button_filter = true; $this->button_import = true; $this->button_export = true; $this->table = "pegawai"; # END CONFIGURATION DO NOT REMOVE THIS LINE # START COLUMNS DO NOT REMOVE THIS LINE $this->col = []; $this->col[] = ["label"=>"nama_lengkap","name"=>"nama_lengkap"]; $this->col[] = ["label"=>"tempat_lahir","name"=>"tempat_lahir"]; $this->col[] = ["label"=>"tanggal_lahir","name"=>"tanggal_lahir"]; $this->col[] = ["label"=>"unit_detail","name"=>"unit_detail"]; $this->col[] = ["label"=>"pangkat","name"=>"pangkat"]; $this->col[] = ["label"=>"golongan","name"=>"golongan"]; $this->col[] = ["label"=>"jenis_pegawai","name"=>"jenis_pegawai"]; $this->col[] = ["label"=>"status_pegawai","name"=>"status_pegawai"]; $this->col[] = ["label"=>"photo","name"=>"photo","image"=>true]; # END COLUMNS DO NOT REMOVE THIS LINE # START FORM DO NOT REMOVE THIS LINE $this->form = []; $this->form[] = ['label'=>'Nama Lengkap','name'=>'nama_lengkap','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'Tempat Lahir','name'=>'tempat_lahir','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'Tanggal Lahir','name'=>'tanggal_lahir','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'Unit','name'=>'unit_detail','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'pangkat','name'=>'pangkat','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'golongan','name'=>'golongan','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'Jabatan','name'=>'jabatan','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'Jenis Pegawai','name'=>'jenis_pegawai','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'Status Pegawai','name'=>'Status Pegawai','type'=>'text','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; $this->form[] = ['label'=>'Photo','name'=>'photo','type'=>'upload','validation'=>'required|min:1|max:255','width'=>'col-sm-10']; # END FORM DO NOT REMOVE THIS LINE # OLD START FORM //$this->form = []; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; //$this->form[] = ["label"=>"","name"=>"","type"=>"text","required"=>TRUE,"validation"=>"required|min:1|max:255"]; # OLD END FORM /* | ---------------------------------------------------------------------- | Sub Module | ---------------------------------------------------------------------- | @label = Label of action | @path = Path of sub module | @foreign_key = foreign key of sub table/module | @button_color = Bootstrap Class (primary,success,warning,danger) | @button_icon = Font Awesome Class | @parent_columns = Sparate with comma, e.g : name,created_at | */ $this->sub_module = array(); /* | ---------------------------------------------------------------------- | Add More Action Button / Menu | ---------------------------------------------------------------------- | @label = Label of action | @url = Target URL, you can use field alias. e.g : [id], [name], [title], etc | @icon = Font awesome class icon. e.g : fa fa-bars | @color = Default is primary. (primary, warning, succecss, info) | @showIf = If condition when action show. Use field alias. e.g : [id] == 1 | */ $this->addaction = array(); /* | ---------------------------------------------------------------------- | Add More Button Selected | ---------------------------------------------------------------------- | @label = Label of action | @icon = Icon from fontawesome | @name = Name of button | Then about the action, you should code at actionButtonSelected method | */ $this->button_selected = array(); /* | ---------------------------------------------------------------------- | Add alert message to this module at overheader | ---------------------------------------------------------------------- | @message = Text of message | @type = warning,success,danger,info | */ $this->alert = array(); /* | ---------------------------------------------------------------------- | Add more button to header button | ---------------------------------------------------------------------- | @label = Name of button | @url = URL Target | @icon = Icon from Awesome. | */ $this->index_button = array(); $this->index_button[] = ["label" => "sync","url" => CRUDBooster::mainpath("sync"),"icon" => "fa fa-bars"]; /* | ---------------------------------------------------------------------- | Customize Table Row Color | ---------------------------------------------------------------------- | @condition = If condition. You may use field alias. E.g : [id] == 1 | @color = Default is none. You can use bootstrap success,info,warning,danger,primary. | */ $this->table_row_color = array(); /* | ---------------------------------------------------------------------- | You may use this bellow array to add statistic at dashboard | ---------------------------------------------------------------------- | @label, @count, @icon, @color | */ $this->index_statistic = array(); /* | ---------------------------------------------------------------------- | Add javascript at body | ---------------------------------------------------------------------- | javascript code in the variable | $this->script_js = "function() { ... }"; | */ $this->script_js = NULL; /* | ---------------------------------------------------------------------- | Include HTML Code before index table | ---------------------------------------------------------------------- | html code to display it before index table | $this->pre_index_html = "<p>test</p>"; | */ $this->pre_index_html = null; /* | ---------------------------------------------------------------------- | Include HTML Code after index table | ---------------------------------------------------------------------- | html code to display it after index table | $this->post_index_html = "<p>test</p>"; | */ $this->post_index_html = null; /* | ---------------------------------------------------------------------- | Include Javascript File | ---------------------------------------------------------------------- | URL of your javascript each array | $this->load_js[] = asset("myfile.js"); | */ $this->load_js = array(); /* | ---------------------------------------------------------------------- | Add css style at body | ---------------------------------------------------------------------- | css code in the variable | $this->style_css = ".style{....}"; | */ $this->style_css = NULL; /* | ---------------------------------------------------------------------- | Include css File | ---------------------------------------------------------------------- | URL of your css each array | $this->load_css[] = asset("myfile.css"); | */ $this->load_css = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function startup();", "function processConfiguration() ;", "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public function start()\n {\n die(\"Must override this function in a driver\");\n }", "public function start()\n {\n }", "public function start()\n {\n }", "public function start()\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() {}", "public static function start(): void {\n }", "function startup() {\n\t\t$this->_welcome();\n\t\tif (isset($this->params['datasource'])) {\n\t\t\t$this->dataSource = $this->params['datasource'];\n\t\t}\n\n\t\tif ($this->command && !in_array($this->command, array('help'))) {\n\t\t\tif (!config('database')) {\n\t\t\t\t$this->out(__('Your database configuration was not found. Take a moment to create one.', true), true);\n\t\t\t\treturn $this->DbConfig->execute();\n\t\t\t}\n\t\t}\n\t}", "public function start(): void {}", "public function beforeStart () {\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 beforeStart()\n {\n }", "public static function run() {\n Cin::checkConfigVo();\n Cin::$manager->run();\n }", "private function startEngine(){\n $this->start();\n }", "function main() {\n\t\tif (!$this->_registerPid()) {\n\t\t\t$this->out('Unable to register Pid');\n\t\t\t$this->_stop();\n\t\t}\n\t\tif (file_exists($this->params['working'] . DS . '.autotest')) {\n\t\t\tinclude($this->params['working'] . DS . '.autotest');\n\t\t}\n\t\tif (!empty($this->params['notify'])) {\n\t\t\t$this->settings['notify'] = $this->params['notify'];\n\t\t}\n\t\tif (!empty($this->params['mode'])) {\n\t\t\t$this->settings['mode'] = $this->params['mode'];\n\t\t}\n\t\t$suffix = '';\n\t\tif (!empty($this->settings['mode'])) {\n\t\t\t$suffix = ' (' . $this->settings['mode'] . ' mode)';\n\t\t}\n\n\t\tNotify::$method = $this->settings['notify'];\n\t\t$this->addHooks();\n\t\tNotify::message('Autopilot Starting', 'in ' . APP_DIR . $suffix, 0, false);\n\t\t$this->buildPaths();\n\t\t$this->run();\n\t}", "public function start()\n {\n // nop\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();", "public function start();", "public function start();", "public function run()\n {\n DLocalConfig::create([\n 'name' => 'api.andeanwide.com',\n 'url' => 'https://dpayout.andeanwide.com/',\n 'grant_type' => 'client_credentials'\n ]);\n }", "function configureFirstRun() {\n if(!$this->createDBTables())\n {\n echo \"First run configuration error. \"\n . \"Unable to create database tables!\";\n }\n }", "public function start()\n {\n // TODO: Implement start() method.\n }", "public function processConfiguration() {}", "function getConfiguration() ;", "function main()\r\n {\r\n App::import('Model', 'Setting');\r\n $setting_model_obj = new Setting();\r\n $settings = $setting_model_obj->getKeyValuePairs();\r\n Configure::write($settings);\r\n\t\t// include cron component\r\n App::import('Core', 'ComponentCollection');\r\n \t$collection = new ComponentCollection();\r\n App::import('Component', 'Cron');\r\n $this->Cron = &new CronComponent($collection);\r\n $option = !empty($this->args[0]) ? $this->args[0] : '';\r\n $this->log('Cron started without any issue');\r\n if (!empty($option) && $option == 'main') {\r\n $this->Cron->main();\r\n }\r\n }", "public function startWorking(){\r\n }", "public function run()\n {\n Configuration::create([\n \"KEY_\" => \"business.name\",\n \"VALUE_\" => \"Zawiyah dental\"\n ]);\n\n Configuration::create([\n \"KEY_\" => \"business.address1\",\n \"VALUE_\" => \"Jalan Tok Kiah\"\n ]);\n\n Configuration::create([\n \"KEY_\" => \"business.address2\",\n \"VALUE_\" => \"Kemaman\"\n ]);\n\n Configuration::create([\n \"KEY_\" => \"business.address2\",\n \"VALUE_\" => \"Terengganu\"\n ]);\n\n }", "public function config()\n {\n }", "public function run()\n {\n AppConfig::truncate();\n\n $appconf = [\n [\n 'setting' => 'AppName',\n 'value' => 'Ultimate SMS'\n ],\n [\n 'setting' => 'AppUrl',\n 'value' => 'ultimatesms.coderpixel.com'\n ],\n [\n 'setting' => 'purchase_key',\n 'value' => 'CUSTOM-DEVELOPMENT'\n ],\n [\n 'setting' => 'valid_domain',\n 'value' => 'yes'\n ],\n [\n 'setting' => 'Email',\n 'value' => '[email protected]'\n ],\n [\n 'setting' => 'Address',\n 'value' => 'House#11, Block#B, <br>Rampura<br>Banasree Project<br>Dhaka<br>1219<br>Bangladesh'\n ],\n [\n 'setting' => 'SoftwareVersion',\n 'value' => '2.7'\n ],\n [\n 'setting' => 'AppTitle',\n 'value' => 'Ultimate SMS - Bulk SMS Sending Application'\n ],\n [\n 'setting' => 'FooterTxt',\n 'value' => 'Copyright &copy; Codeglen - 2018'\n ],\n [\n 'setting' => 'AppLogo',\n 'value' => 'assets/img/logo.png'\n ],\n [\n 'setting' => 'AppFav',\n 'value' => 'assets/img/favicon.ico'\n ],\n [\n 'setting' => 'Country',\n 'value' => 'Bangladesh'\n ],\n [\n 'setting' => 'Timezone',\n 'value' => 'Asia/Dhaka'\n ],\n [\n 'setting' => 'Currency',\n 'value' => 'USD'\n ],\n [\n 'setting' => 'CurrencyCode',\n 'value' => '$'\n ], [\n 'setting' => 'Gateway',\n 'value' => 'default'\n ],\n [\n 'setting' => 'SMTPHostName',\n 'value' => 'smtp.gmail.com'\n ],\n [\n 'setting' => 'SMTPUserName',\n 'value' => '[email protected]'\n ],\n [\n 'setting' => 'SMTPPassword',\n 'value' => 'testpassword'\n ],\n [\n 'setting' => 'SMTPPort',\n 'value' => '587'\n ],\n [\n 'setting' => 'SMTPSecure',\n 'value' => 'tls'\n ],\n [\n 'setting' => 'AppStage',\n 'value' => 'Live'\n ],\n [\n 'setting' => 'DateFormat',\n 'value' => 'jS M y'\n ],\n [\n 'setting' => 'Language',\n 'value' => '1'\n ],\n [\n 'setting' => 'sms_api_permission',\n 'value' => '1'\n ],\n [\n 'setting' => 'sms_api_gateway',\n 'value' => '1'\n ],\n [\n 'setting' => 'api_url',\n 'value' => 'https://ultimatesms.codeglen.com/demo'\n ],\n [\n 'setting' => 'api_key',\n 'value' => base64_encode('admin:admin.password')\n ],\n [\n 'setting' => 'client_registration',\n 'value' => '1'\n ],\n [\n 'setting' => 'registration_verification',\n 'value' => '0'\n ],\n [\n 'setting' => 'captcha_in_admin',\n 'value' => '0'\n ],\n [\n 'setting' => 'captcha_in_client',\n 'value' => '0'\n ],\n [\n 'setting' => 'captcha_in_client_registration',\n 'value' => '0'\n ],[\n 'setting' => 'captcha_site_key',\n 'value' => '6LcVTCEUAAAAAF2VucYNRFbnfD12MO41LpcS71o9'\n ],[\n 'setting' => 'captcha_secret_key',\n 'value' => '6LcVTCEUAAAAAGBbxACgcO6sBFPNIrMOkXJGh-Yu'\n ],[\n 'setting' => 'purchase_code_error_count',\n 'value' => '0'\n ],[\n 'setting' => 'sender_id_verification',\n 'value' => '1'\n ],[\n 'setting' => 'license_type',\n 'value' => ''\n ],[\n 'setting' => 'fraud_detection',\n 'value' => '1'\n ],[\n 'setting' => 'dec_point',\n 'value' => '.'\n ],[\n 'setting' => 'thousands_sep',\n 'value' => ','\n ],[\n 'setting' => 'currency_decimal_digits',\n 'value' => '0'\n ],[\n 'setting' => 'currency_symbol_position',\n 'value' => 'left'\n ],[\n 'setting' => 'registration_sms_gateway',\n 'value' => '1'\n ],[\n 'setting' => 'send_sms_country_code',\n 'value' => '0'\n ],[\n 'setting' => 'show_keyword_in_client',\n 'value' => '1'\n ],[\n 'setting' => 'opt_in_sms_keyword',\n 'value' => 'Start,Subscribe,Unstop,Yes'\n ],[\n 'setting' => 'opt_out_sms_keyword',\n 'value' => 'Stop,Unsubscribe,Stop,No,Quit,Cancel'\n ],[\n 'setting' => 'custom_gateway_response_status',\n 'value' => 'OK,Success,Deliver,message_pending,accept,1701'\n ],[\n 'setting' => 'unsubscribe_message',\n 'value' => 'Reply STOP to be removed'\n ]\n\n ];\n\n foreach ($appconf as $ap) {\n AppConfig::create($ap);\n }\n\n }", "public function runAtBoot() {\r\n\t\tif (isset ( $this->data )) {\r\n\t\t\t$this->configure ();\r\n\t\t\t$this->start ();\r\n\t\t} else {\r\n\t\t\t$this->logger->warn ( \"No WAN config found.\" );\r\n\t\t}\r\n\t}", "public function configure() {\r\n\t\r\n\t}", "abstract protected function preConfigure();", "public function startup()\n\t{\n\t\tparent::startup();\n\t\t$this->instructions = array(\n\t\t\t'message' => null,\n\t\t\t'redirection' => 'Administration:'\n\t\t);\n\t}", "public function start()\n {\n echo 'Start odometer.',\"\\n\";\n }", "function instance_allow_config()\r\n\t\t{\r\n\t\t\r\n\t\t}", "protected function configure()\n {\n $this\n ->setName('config:open')\n ->setDescription('Opens the config')\n ->configureGlobal();\n }", "public function setConfiguration() {\n\n // Make sure all new services are available.\n drupal_flush_all_caches();\n $this->updateConfig();\n // Make sure configuration changes are available.\n drupal_flush_all_caches();\n $this->updateAuthors();\n $this->output()->writeln('Your configuration is complete.');\n }", "public function hookConfigure(): void\n {\n $this->say(\"Executing the Plugin's configure hook...\");\n $this->_exec(\"php ./src/hook_configure.php\");\n }", "protected function initializeConfiguration() {}", "protected function configure()\n {\n $this\n ->addDefaults()\n ->setName('maintenance')\n ->setDescription('Run maintenance on all Skylab projects')\n ->setHelp(<<<EOT\nThe <info>maintenance</info> command will run the maintenance commands of all skeletons on a project. Most notably, it\nwill create the apache config files and make sure the the databases are available.\n\n<info>php skylab.phar maintenance</info>\n\nEOT\n );\n }", "public function it_works_with_full_configuration()\n {\n $this->test_process('full');\n }", "public function start()\n {\n // For example you can check Auth\n }", "public function beforeStartingDeploy()\n {\n // $this->runLocal('./vendor/bin/simple-phpunit');\n }", "public function run()\n {\n Setting::create([\n 'key' => 'vendor_auto_enable',\n 'value' => true,\n ]);\n }", "public function start(): void;", "function startEngine() {\n }", "public function start()\n {\n if ($this->argument('blacklist')) {\n $this->error(\"The blacklist argument hasn't been implemented yet. The command will put logs in every controller.\");\n }\n\n if ($this->confirm('This command will CHANGE your controllers.'.\"\\n\".'Are you sure you want to continue? [y|N]')) {\n $filesArray = $this->dirToArray($this->controllerBaseUrl);\n $this->loopFiles($filesArray);\n $this->info('Wrote log-lines to '.$this->controllerCount.' controllers.');\n }\n }", "public function startup() {\n\t\tparent::startup();\n\t\tif (!empty($this->params['dry-run'])) {\n\t\t\t$this->out(__d('cake_console', '<warning>Dry-run mode enabled!</warning>'), 1, Shell::QUIET);\n\t\t}\n\t}", "public function startTestSuite()\n {\n if (null === $this->reader) {\n $this->reader = Bootstrap::getObjectManager()->get('Magento\\Framework\\App\\DeploymentConfig\\Reader');\n $this->config = $this->reader->load();\n }\n }", "public function boot():void\n {\n //\n }", "protected function runningFromCliOrWrongConfiguration() {}", "public function run()\n {\n $client=new ClientSetting;\n $client->client_name='app1';\n $client->client_token='123456';\n $client->client_service='helpdesk';\n $client->client_db_connection='mysql';\n $client->client_db_driver='mysql';\n $client->client_db_host='127.0.0.1';\n $client->client_db_port='3306';\n $client->client_db_database='helpdesk';\n $client->client_db_username='forethought';\n $client->client_db_password='123456';\n $client->client_db_prefix='';\n $client->save();\n // $client->client_='';\n \n\n // $client->secondary_logo_url='www.Mastechsecondrylogo.com';\n // $client->mnemonic_url='www.mnemonic_url.com';\n // $client->logo_usage='The Mastech Digital Logo is primary symbol which represents the Mastech Digital Brand and its subdiaries. The logotype is stylized to represent our modern take on the rapidly-evolving digital landscape.';\n // $logos->save();\n\n \n \n }", "protected function setup_config() {\n\t\t\t// TODO: Implement setup_config() method.\n\t\t}", "protected function start()\n {\n $status = $this->autoTestController->start();\n\n PacklinkPrestaShopUtility::dieJson($status);\n }", "protected function configure()\n {\n $this->setName('buktopuha:questionbot')\n ->setDescription('Endless process that monitors time and asks questions')\n ->setTimeout(1);\n }", "function run($config_file) {\n\n\t\t// load new settings, if available\n\t\t$this->console_text('[XAseco2] Load settings [{1}]', $config_file);\n\t\t$this->loadSettings($config_file);\n\n\t\t// load admin/operator/ability lists, if available\n\t\t$this->console_text('[XAseco2] Load admin/ops lists [{1}]', $this->settings['adminops_file']);\n\t\t$this->readLists();\n\n\t\t// load banned IPs list, if available\n\t\t$this->console_text('[XAseco2] Load banned IPs list [{1}]', $this->settings['bannedips_file']);\n\t\t$this->readIPs();\n\n\t\t// load plugins and register chat commands\n\t\t$this->console_text('[XAseco2] Load plugins list [plugins.xml]');\n\t\t$this->loadPlugins();\n\n\t\t// connect to Trackmania Dedicated Server\n\t\tif (!$this->connect()) {\n\t\t\t// kill program with an error\n\t\t\ttrigger_error('Connection could not be established !', E_USER_ERROR);\n\t\t}\n\n\t\t// log status message\n\t\t$this->console('Connection established successfully !');\n\t\t// log admin lock message\n\t\tif ($this->settings['lock_password'] != '')\n\t\t\t$this->console_text(\"[XAseco2] Locked admin commands & features with password '{1}'\", $this->settings['lock_password']);\n\n\t\t// get basic server info\n\t\t$this->client->query('GetVersion');\n\t\t$response['version'] = $this->client->getResponse();\n\t\t$this->server->game = $response['version']['Name'];\n\t\t$this->server->version = $response['version']['Version'];\n\t\t$this->server->build = $response['version']['Build'];\n\t\t$this->server->title = $response['version']['TitleId'];\n\n\t\t// throw 'starting up' event\n\t\t$this->releaseEvent('onStartup', null);\n\n\t\t// synchronize information with server\n\t\t$this->serverSync();\n\n\t\t// make a visual header\n\t\t$this->sendHeader();\n\n\t\t// get current game infos if server loaded a map yet\n\t\tif ($this->currstatus == 100) {\n\t\t\t$this->console_text('[XAseco2] Waiting for the server to start a map');\n\t\t} else {\n\t\t\t$this->beginMap(false);\n\t\t}\n\n\t\t// main loop\n\t\t$this->startup_phase = false;\n\t\twhile (true) {\n\t\t\t$starttime = microtime(true);\n\t\t\t// get callbacks from the server\n\t\t\t$this->executeCallbacks();\n\n\t\t\t// sends calls to the server\n\t\t\t$this->executeCalls();\n\n\t\t\t// throw timing events\n\t\t\t$this->releaseEvent('onMainLoop', null);\n\n\t\t\t$this->currsecond = time();\n\t\t\tif ($this->prevsecond != $this->currsecond) {\n\t\t\t\t$this->prevsecond = $this->currsecond;\n\t\t\t\t$this->releaseEvent('onEverySecond', null);\n\t\t\t}\n\n\t\t\t// reduce CPU usage if main loop has time left\n\t\t\t$endtime = microtime(true);\n\t\t\t$delay = 200000 - ($endtime - $starttime) * 1000000;\n\t\t\tif ($delay > 0)\n\t\t\t\tusleep($delay);\n\t\t\t// make sure the script does not timeout\n\t\t\t@set_time_limit($this->settings['script_timeout']);\n\t\t}\n\n\t\t// close the client connection\n\t\t$this->client->Terminate();\n\t}", "abstract public function start();", "abstract public function start();", "function auto_config() {\n\tglobal $tvh_user_home;\n\n\texec(\"pgrep tvheadend\", $output, $return);\n\tif ($return == 0) {\n\t\techo \"WARNING: TVHeadend detected as running. Changes are OK to go ahead with, but won't be reflected until you restart tvh\\n\\n\";\n\t\tsleep(3);\n\t};\n\n\t$fail=1;\n\tif (!$tvh_user_home) {\n\tif (file_exists(\"/etc/default/tvheadend\")) {\n\t\t// Debian or ubuntu\n\t\t$load_config=fopen(\"/etc/default/tvheadend\",\"r\");\n\t\tif ($load_config) {\n\t\t\twhile (($config_buffer = fgets($load_config, 4096)) !== false) {\n\t\t\t\tif (strpos($config_buffer, \"TVH_USER=\") !== false) {\n\t\t\t\t\t$tvhc_user=explode(\"=\",$config_buffer);\n\t\t\t\t\t$tvhc_user_value=trim(str_replace('\"','',$tvhc_user[1]));\n\n\t\t\t\t\t\n\t\t\t\t};\n\t\t\t};\n\t\t};\n\t};\n\tif ($tvhc_user_value) {\n\t\t$userhome=`grep tvheadend /etc/passwd`;\n\t\tlist($username,$na,$id,$gid,$na,$homedir,$shell)=explode(\":\",$userhome);\n\t\t$tvh_user_home=$homedir.\"/.hts/tvheadend/\";\n\t};\n\t};\n\techo \"Found TVH config at $tvh_user_home\\n\";\n\tif (file_exists($tvh_user_home.\"channels/\")) {\n\t\techo \"Found channels folder\\n\";\n\t\t$fail=0;\n\t} else {\n\t\t$fail=1;\n\t\techo \"ERROR: Cannot find channels folder. Cannot continue\\n\";\n\t\techo \"TVHeadend should have been ran and channels created before using this utility\\n\";\n\t\techo \"If your TVHeadend userhome isn't at $tvh_user_home then run this script again passing\\n\";\n\t\techo \"the TVHeadend path as first parameter.. Like this:\\n\";\n\t\techo \" ./tvheadend-logo-importer.php5 /home/myuser/.hts/tvheadend/\\n\";\n\t};\n}", "public static function config();", "public function index()\n {\n $this->configuration();\n }", "private function configure()\n {\n if ($this->config->get('speed_analyzer.enabled') === null) {\n $this->config->save('speed_analyzer.enabled', true);\n $this->config->save('speed_analyzer.reports.log_sql_queries', true);\n }\n }", "public function start () {\n if (!$this->started) {\n $this->restart();\n }\n }", "protected function configure()\n {\n $this->setDescription('This command verifies and summarizes current configuration');\n }", "public function startup() {\n\t\t$this->canbesignedout = true;\n\t\tparent::startup();\n\t}", "public function createConfig()\n\t{\n\t}", "private function serveStart()\n {\n if (static::$run) {\n return;\n }\n\n static::$run = true;\n\n print \"Running dev/build...\\n\";\n @exec(\"framework/sake dev/build flush=1 > /dev/null 2> /dev/null\");\n\n print \"Finding open port...\\n\";\n\n while (!$this->addressAvailable($this->getHost(), $this->getPort())) {\n $this->setPort($this->getPort() + 1);\n }\n\n if (!$this->running) {\n $host = $this->getHost();\n $port = $this->getPort();\n\n $hash = spl_object_hash($this);\n\n print \"Starting development server...\\n\";\n $command = \"framework/sake dev/tasks/SilverStripe-Serve-Task hash={$hash} host={$host} port={$port} > /dev/null 2> /dev/null &\";\n\n exec($command, $output);\n\n $command = \"ps -o pid,command | grep {$hash}\";\n @exec($command, $output);\n\n if (count($output) > 0) {\n foreach ($output as $line) {\n $parts = explode(\" \", $line);\n $this->pid[] = $parts[0];\n }\n }\n\n sleep(1);\n }\n }", "public function setConfig()\n {\n $config = new Config;\n echo 'const signalingSrvAddr = \"'.$config->signalingServerAddress.'\"; const signalingSrvPort = \"'.$config->signalingServerPort.'\";';\n }", "protected function afterConfigurationSet()\n {\n }", "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}", "abstract protected function defineConfiguration();", "public function start() {\n\t\t$this->invoke(\"start\");\n\t}", "public function run()\n {\n \n Config::create([\n 'title'=>'Công ty Cổ phần Dịch vụ Thiết bị đo và Hệ thống điều khiển',\n 'description'=>'Công ty Cổ phần Dịch vụ Thiết bị đo và Hệ thống điều khiển',\n 'keywords'=>'Công ty, Cổ phần, Dịch vụ, Thiết bị, đo lường, hệ thống điều khiển',\n 'facebook'=>'http://facebook.com',\n 'youtube'=>'https://youtube.com/',\n 'twitter'=>'https://twitter.com/',\n 'google'=>'https://google.com/',\n 'email'=>'[email protected]',\n 'phone'=>'+84 4 3540 2685',\n 'timeword' =>'08:00 - 18:00',\n 'office' =>'2',\n 'staff' =>'86',\n 'born' =>'2000',\n 'introleft' =>'Nhà phân phối chính thức của các nhà sản xuất thiết bị hàng đầu thế giới',\n 'introright' =>'Bạn cần được tư vấn để hiểu rõ hơn về dịch vụ và sản phẩm mình quan tâm?',\n 'copyright'=>'Copyright © 2016 VietCIS.,JSC. All rights reserved.',\n 'address' => 'dia chi',\n 'countdown'=>date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n {\n\t\t\t\tDB::table('configurations')->delete();\n\n\t\t\t\tConfiguration::create(array(\n\t\t\t\t\t'name' => 'Theme',\n\t\t\t\t\t'default' => 'dark',\n\t\t\t\t\t'role_id' => 1,\n\t\t\t\t));\n }", "public function __invoke()\n {\n if (file_exists($this->develConfigFile)) {\n // nothing to do\n echo 'Development mode is ENABLED', PHP_EOL;\n return 0;\n }\n\n echo 'Development mode is DISABLED', PHP_EOL;\n return 0;\n }", "public function run()\n {\n DB::table('configurations')->insert([\n 'id' => 1,\n 'user_id' => 1,\n 'software_id' => 1,\n 'name' => 'Test configuration',\n 'content' => 'test',\n 'filename' => 'filename',\n 'path' => 'path'\n ]);\n }", "function instance_allow_config() {\n return true;\n }", "public function main()\n\t{\n\t\t$this->loadConfig();\n\t\t$this->validateProject();\n\t\t$this->cleanConfig();\n\t\t$this->installDependencies();\n\t\t$this->createAutoload();\n\t\t$this->finish();\n\t}", "public function run()\n {\n \\App\\Setting::create([\n 'company_name' =>'Novartis',\n 'event_name' =>'imaging-atelier',\n 'address' =>'Dubai Marina',\n 'lat' =>'25.276987',\n 'lng' =>'55.296249'\n ]);\n }", "public function before_run() {}", "public function runInstallation()\n {\n if (!$this->isInstalled()){\n $msg = 'Configuration of this plug-in is not done.';\n $msg .= \"<br/>\\n\".$this->testDossierDeadlineConfigServer();\n throw new BizException('' , 'Server', null, $msg);\n }\n }" ]
[ "0.683168", "0.6375221", "0.62981546", "0.6290272", "0.62763005", "0.62763005", "0.62763005", "0.6274571", "0.6273723", "0.6273723", "0.6273075", "0.6271748", "0.6271748", "0.6271748", "0.6271748", "0.6271748", "0.6271748", "0.613723", "0.6117882", "0.6110095", "0.61042964", "0.60954183", "0.6087388", "0.60846245", "0.60724753", "0.60619086", "0.60560936", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.6006452", "0.5920158", "0.5910981", "0.5882782", "0.5866121", "0.58659947", "0.58460206", "0.58321434", "0.58281225", "0.582153", "0.58183897", "0.5807741", "0.5798753", "0.5798167", "0.5775051", "0.5773787", "0.57547283", "0.5747706", "0.57451326", "0.573891", "0.5729817", "0.5729619", "0.5716056", "0.5714185", "0.570741", "0.56949854", "0.5690921", "0.56850785", "0.56764615", "0.56744385", "0.5665768", "0.5651861", "0.56371766", "0.5624571", "0.56095415", "0.560455", "0.5584036", "0.55832946", "0.557975", "0.557975", "0.5579718", "0.55731857", "0.5561863", "0.5559012", "0.5550383", "0.5544713", "0.553672", "0.55230546", "0.55209523", "0.5519876", "0.5517616", "0.5514515", "0.55094856", "0.5509466", "0.55084896", "0.5507972", "0.55065423", "0.5501393", "0.5495798", "0.54906076", "0.5487156", "0.5478031", "0.54753107" ]
0.0
-1
/ | | Hook for button selected |
public function actionButtonSelected($id_selected,$button_name) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionButtonSelected($id_selected, $button_name)\n\t{\n\t\t//Your code here\n\n\t}", "public function setup_selected() {\n\t}", "public function getSelected() {}", "public function getSelected() {}", "function get_selected()\n {\n }", "public function getButton() {}", "public function selected()\n {\n parent::selected();\n $this->name = '';\n }", "function selected($selected, $current = \\true, $display = \\true)\n {\n }", "abstract function selectHook();", "public function picked(){\n }", "public function getDefaultButton() {}", "protected function getSelectedValue() {}", "function __checked_selected_helper($helper, $current, $display, $type)\n {\n }", "public function selected()\n {\n parent::selected();\n $this->enclosed = null;\n $this->escaped = false;\n $this->collected = '';\n }", "protected function renderSimulateUserSelectAndLabel() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "public function set_button($button) { $this->button = $button; }", "protected function getShortcutButton() {}", "function sfg_home_button_options_callback() {\n//\n}", "protected function registerButtons() {}", "protected function registerButtons() {}", "function listButtons() {\n\t}", "function select_option()\r\n{}", "public function click() {\r\n\t\tswitch($this->current) {\r\n\t\t\tdefault:\r\n\t\t\t\t$this->current = self::SEA;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::ISLAND:\r\n\t\t\t\t$this->current = self::NONE;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::SEA:\r\n\t\t\t\t$this->current = self::ISLAND;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public function testSetSelected()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "function learn_press_single_quiz_buttons() {\n\t\tlearn_press_get_template( 'content-quiz/buttons.php' );\n\t}", "function getClickedButton()\n\t{\n\t\tif (!$this->formSubmitted()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Was the main button pressed? Return the label\n\t\tif (isset($_POST['Submit'])) {\n\t\t\treturn $_POST['Submit'];\n\t\t}\n\t\t\n\t\t// Not the main button, one of the extra buttons?\n\t\tif (!empty($this->buttonList)) \n\t\t{\n\t\t\tforeach ($this->buttonList as $buttonName => $buttonText) \n\t\t\t{\n\t\t\t\tif (isset($_POST[$buttonName])) {\n\t\t\t\t\treturn $buttonText;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "function get_selected_keys()\n {\n }", "protected function clickSelectButton()\n {\n $this->find($this->selectButton, Locator::SELECTOR_XPATH)->click();\n $this->waitLoader();\n }", "public function addsButtons() {}", "protected function prepareButtons()\n\t{\n\t\tparent::prepareButtons();\n\t\t$this->xt->assign(\"save_button\", false);\n\t\t$this->xt->assign(\"view_page_button\", false );\n\t\t\n\t\t$this->xt->assign(\"updsel_button\", true);\n\t\t$this->xt->assign(\"updselbutton_attrs\", \"id=\\\"saveButton\".$this->id.\"\\\"\" );\n\t\t\n\t\t$label = str_replace( \"%n%\", $this->nSelected, \"Update %n% records\" );\n\t\t$this->xt->assign(\"update_selected\", $label );\n\t}", "public function getButtons() {}", "public function getButtons() {}", "public function getButtons() {}", "public function getButtons() {}", "function rt_button_show($target)\n{\n return rt_ui_button('show', $target, 'search');\n}", "function getOnClick() {return $this->readOnClick();}", "public abstract function onPlayerSelect();", "function setSelected($selected) {\r\n if ($this->list) {\n if ($selected) {\n $this->list->selectOption($this);\n } else {\n $this->list->deselectOption($this);\n }\n }\n }", "abstract public function checkboxOnClick();", "public function getSelectable() {}", "public function onButtonWasPushed($slot)\n {\n $this->onCommand[$slot]->execute();\n }", "public function radiobuttonClicked($sender,$param)/*\n Module: radiobuttonClicked\n Parameters:\n * $sender -- Page that sent request\n * $param -- Tcontrol that sent request\n Author Name(s): Nate Priddy\n Date Created: 12/7/2010\n Purpose: Not in use!\n * Meant to be used when radio buttons rather than select button is\n * used to make adjusstments to lists\n */{\n $item = $param->Item;\n // obtains the primary key corresponding to the datagrid item\n $RL_ID = $this->RecipeUserListGrid->DataKeys[$item->ItemIndex];\n $this->SetSelectedID($RL_ID);\n $this->UserListRebind($this->User->getUserId());\n $this->ListRebind($RL_ID);\n }", "function rt_button_edit($target)\n{\n return rt_ui_button('edit', $target, 'pencil');\n}", "public function primaryButton() {\n return $this->primary;\n }", "public function click()\n {\n }", "protected function generateButtons() {}", "function callbackTypePressed($entry,$event) {\n \n \n $this->table->database->designer->activeColumn = &$this;\n \n $v = $entry->get_text();\n $w = $this->table->database->glade->get_widget('type_'.$v);\n \n $w->set_active(true);\n $this->table->database->designer->menu->popup(null, null, null, (int) $event->button, (int) $event->time);\n \n \n }", "private function button3() {\n\t\tif ( $this->button_array['button3']['text'] ) {\n\t\t\t?>\n\t\t\tlastOpenedPointer.find('#pointer-primary').after('<a id=\"pointer-ternary\" style=\"float: left;\" class=\"button-secondary\">' +\n\t\t\t\t'<?php echo esc_attr( $this->button_array['button3']['text'] ); ?>' + '</a>');\n\t\t\tlastOpenedPointer.find('#pointer-ternary').click(function () {\n\t\t\t<?php echo $this->button_array['button3']['function']; ?>\n\t\t\t});\n\t\t<?php }\n\t}", "public function exportButton ()\n\t{\n\t}", "protected function getActionLabel() {}", "function rt_button_boolean($target,$title = 'enable')\n{\n return rt_ui_button($title, $target, 'check');\n}", "public function makeShortcutButton() {}", "function cv_mce_buttons_2( $buttons ) {\n array_unshift( $buttons, 'styleselect' );\n return $buttons;\n}", "function setActive() ;", "public function buttonbar (\\stdClass $param);", "public function testGetSelected()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function templateSelected($sender, $param)\r\n\t{\r\n\t\t$this->showPhaseList($sender->SelectedValue);\r\n\t}", "function lbcb_print_option_buttons(){\n?>\n\t<input class=\"button-primary\" type=\"submit\" name=\"lbcb_options[save]\" id=\"lbcb_options[save]\" value=\"<?php _e( 'Save Options', 'lbcb_textdomain' ); ?>\"/>\n\t<input class=\"button-secondary\" type=\"submit\" name=\"lbcb_options[reset]\" id=\"lbcb_options[reset]\" value=\"<?php _e( 'Reset To Defaults', 'lbcb_textdomain' ); ?>\"/>\n\n<?php\n}", "function getjsOnClick() {return $this->readjsOnClick();}", "function print_SelUnselAllBtns($name)\n{\n\techo \"<input type='button' name='CheckAll' value='Выделить все' onClick=\\\"setAll('{$name}', true)\\\" class='PARAMS' >\\n\";\n\techo \"<input type='button' name='UnCheckAll' value='Отменить все' onClick=\\\"setAll('{$name}', false)\\\" class='PARAMS'>\\n\";\n}", "public function getPluginButtons() {}", "public function selectAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "public function no_button() { $this->button = NULL; }", "public function getSelected()\n {\n return $this->selected;\n }", "public function getSelected()\n {\n return $this->selected;\n }", "function my_mce_buttons_2($buttons)\n{\n\tarray_unshift($buttons, 'styleselect');\n\treturn $buttons;\n}", "public function makeInputButton() {}", "function getjsOnClick () { return $this->readjsOnClick(); }", "function getjsOnClick () { return $this->readjsOnClick(); }", "function getjsOnClick () { return $this->readjsOnClick(); }", "function getjsOnClick () { return $this->readjsOnClick(); }", "function qselect(){\r\n\t\t\r\n\t\r\n\t}", "public function Do_select_Example1(){\n\n\t}", "function custom_buttonfunction(){\n\n $value = $_POST['value'];\n\n update_option( 'custom_button', $value);\n\n echo json_encode(\n array(\n 'message' => 'success',\n 'value' => $value\n )\n );\n die();\n }", "function BeforeMoveNextList(&$data, &$row, &$record, &$pageObject)\n{\n\n\t\t\nif ($data['mode'])\n$record[\"MyButton\"]=true;\n\n\n;\t\t\n}", "public function gameButtons() {\n\n }", "public function getSelectedList() {}", "function qa_clicked($name)\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\treturn isset($_POST[$name]) || isset($_POST[$name . '_x']) || (qa_post_text('qa_click') == $name);\n}", "public function makeSplitButton() {}", "function drum_mce_buttons($buttons) {\n\tarray_unshift($buttons, 'styleselect');\n\treturn $buttons;\n}", "function callback_select(array $args)\n {\n }" ]
[ "0.74677783", "0.72218895", "0.6818171", "0.6818171", "0.66941184", "0.6529013", "0.64766395", "0.6354679", "0.62863445", "0.61837834", "0.61485785", "0.6127622", "0.6095611", "0.6036238", "0.6009324", "0.592636", "0.592636", "0.592636", "0.592636", "0.5926167", "0.5926167", "0.5926167", "0.5926167", "0.5926167", "0.59253144", "0.59253144", "0.59253144", "0.59253144", "0.59253144", "0.59253144", "0.59253144", "0.59253144", "0.5885301", "0.58558327", "0.58421946", "0.58384967", "0.5838313", "0.5831733", "0.58204705", "0.5750772", "0.57453895", "0.57335365", "0.5731041", "0.5726831", "0.57263315", "0.57228214", "0.57067436", "0.56853175", "0.56850815", "0.56850815", "0.56850815", "0.5638779", "0.5631656", "0.56031984", "0.5564981", "0.55359596", "0.55016863", "0.5495886", "0.5492314", "0.5487175", "0.547215", "0.5470914", "0.54693276", "0.54642963", "0.545299", "0.54447246", "0.542432", "0.5413429", "0.540151", "0.5369721", "0.53573245", "0.53431535", "0.5340947", "0.53397214", "0.5332573", "0.53306067", "0.5325435", "0.5312255", "0.5301228", "0.5293587", "0.5291041", "0.5291041", "0.52843124", "0.5283819", "0.52811015", "0.52811015", "0.52811015", "0.52811015", "0.5280755", "0.5279881", "0.5279687", "0.5273355", "0.5272682", "0.52689177", "0.5258575", "0.5252223", "0.52482575", "0.52469" ]
0.76204604
2
/ | | Hook for manipulate query of index result |
public function hook_query_index(&$query) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hook_query_index(&$query)\n\t{\n\t\t//Your code here\n\n\t}", "public function hook_before_index(&$result) {\n \n }", "function process_query_index( $query )\n\t{\n\t\treturn $query;\n\t}", "public function hook_query_index(&$query) {\n/*\t //Your code here\n $userId = CRUDBooster::myId();\n//\t echo $userId;\n\t $isAdmin = CRUDBooster::isSuperadmin();\n\t $storeAssignedtoUser = DB::table('srv_centers')\n ->where('cms_user_id', '=', $userId)\n ->first();\n\t if ($isAdmin) {\n\n\t }else {\n\t $query->where('cms_users.id',$storeAssignedtoUser->cms_user_id);\n\t }\n*/\n\t }", "public function _INDEX()\n\t{\n\t\t\n\t}", "public function hook_query_index(&$query) {\n\t\t\t//Your code here\n\t\t\t// pr($query->toSql(),1);\t\t\t\n\t\t\tif(CRUDBooster::isSuperAdmin()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t$user = getUser();\n\t\t\t$my_company = $this->my_company;\n\t\t\tif($user->company != $my_company){\n\t\t\t\treturn $query->where('supplier',$user->company);\n\t\t\t} else {\n\t\t\t\treturn $query->where('status','!=','draft');\n\t\t\t}\n\n\t }", "function index_all(){\n\t\t$this->_clear_tmp(0);\n\t\t$this->del_results();\n\t\treturn $this->index(0,true);\n\t}", "public function getIndex()\n {\n // add stuff here\n }", "public function getIndex() {}", "public function getIndex() {}", "public function getIndex() {}", "public function getIndex() {}", "public function getIndex() {}", "public function getIndex() {}", "public function getIndex() {}", "public function getIndex() {}", "public function getIndex() {}", "public function _query()\n {\n }", "public function updateIndexState() {\n $query = $this->database->select('help_search_items', 'hsi');\n $query->addExpression('COUNT(DISTINCT(hsi.sid))');\n $query->leftJoin('search_dataset', 'sd', 'hsi.sid = sd.sid AND sd.type = :type', [':type' => $this->getType()]);\n $query->isNull('sd.sid');\n $never_indexed = $query->execute()->fetchField();\n $this->state->set('help_search_unindexed_count', $never_indexed);\n }", "protected function getIndex()\n\t{ \n /*\n $sm = $this->account->getServiceManager();\n $dbh = $sm->get(\"Db\");\n $this->dbh = $dbh;\n\t\treturn new \\Netric\\EntityQuery\\Index\\Pgsql($this->account, $dbh);\n * \n */\n $this->dbh = $this->account->getServiceManager()->get(\"Db\");\n return new \\Netric\\EntityQuery\\Index\\Pgsql($this->account);\n\t}", "public function buildIndex();", "public function index()\n\t{\n\t\t/*\n\t\t|\tnot a logical function since GramStainResult\n\t\t|\tshould be specific to a particular result\n\t\t*/\n\t}", "function deeds_do_index_charters($docnum) {\r\n\r\n\t$record_type = 'Charter';\r\n\r\n\t$sql = 'SELECT\r\n\t\t\t\tcartulary.short as cart_title_short,\r\n\t\t\t\tcartulary.title as cart_title,\r\n\t\t\t\tcartulary_biblio.biblio as cart_bib_title,\r\n\t\t\t\tcharter.*,\r\n\t\t\t\ttxt.txt,\r\n\t\t\t\tcharter_date.dated,\r\n\t\t\t\tcharter_date.lodate,\r\n\t\t\t\tcharter_date.hidate,\r\n\t\t\t\tcharter_date.date_precision,\r\n\t\t\t\tcharter_location.location,\r\n\t\t\t\tcharter_location.country,\r\n\t\t\t\tcharter_location.county,\r\n\t\t\t\tcharter_location.place,\r\n\t\t\t\tcharter_place.country as origin_country,\r\n\t\t\t\tcharter_place.county as origin_county,\r\n\t\t\t\tcharter_place.place as origin_place\r\n\t\t\tFROM\r\n\t\t\t\tdeeds_db.charter charter\r\n\t\t\tLEFT JOIN deeds_db.charter_doc txt ON charter.docnum = txt.docnum\r\n\t\t\tLEFT JOIN deeds_db.charter_date charter_date ON charter.docnum = charter_date.docnum\r\n\t\t\tLEFT JOIN deeds_db.charter_location ON charter.docnum = charter_location.docnum AND charter_location.location_type = \\'issued\\' \r\n\t\t\tLEFT JOIN deeds_db.charter_place ON charter.docnum = charter_place.docnum \r\n\t\t\tLEFT JOIN deeds_db.cartulary ON cartulary.cartnum = substring(charter.docnum, 1, 4)\r\n\t\t\tLEFT JOIN deeds_db.cartulary_biblio ON cartulary_biblio.cartnum = substring(charter.docnum, 1, 4) \r\n\t\t\tWHERE charter.docnum = \\'' . $docnum . '\\' LIMIT 100\r\n\t'; \r\n\t$ci=& get_instance();\r\n\t$ci->load->database(); \r\n\t$query = $ci->db->query($sql);\r\n\t$result = $query->result_array();\r\n\t$ci->db->flush_cache();\r\n\r\n\t$count = 0;\r\n\r\n\t$ci->load->library(\"Apache/Solr/Apache_Solr_Service\", array('host' => SOLR_HOST, 'port' =>SOLR_PORT, 'path' => SOLR_PATH), 'service');\r\n\t$ci->load->library(\"Apache/Solr/Apache_Solr_Document\", '', 'doc');\r\n\r\n\r\n\tforeach ($result as $row) {\r\n\t\ttry {\r\n\r\n\t\t\t$dnum = $row['docnum'];\r\n\t\t\t$unique_id = $record_type.'_'.$dnum; \r\n\r\n\t\t\t$ci->doc->addField('unique_id', $record_type.'_'.$dnum);\r\n\t\t\t$ci->doc->addField('record_type', $record_type);\r\n\t\t\t$ci->doc->addField('dnum', $dnum);\r\n\t\t\t$ci->doc->addField('content', $row['txt']);\r\n\r\n\t\t\tif ($row['location'] != '' && $row['location'] != 'NULL') {\r\n\t\t\t\t$ci->doc->addField('location_issued', $row['location']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($row['country'] != '' && $row['country'] != 'NULL') {\r\n\t\t\t\t$ci->doc->addField('issued_country', $row['country']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($row['county'] != '' && $row['county'] != 'NULL') {\r\n\t\t\t\t$ci->doc->addField('issued_county', $row['county']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($row['place'] != '' && $row['place'] != 'NULL') {\r\n\t\t\t\t$ci->doc->addField('issued_place', $row['place']);\r\n\t\t\t}\r\n\r\n\t\t\t// indexing multi-valued property locations\r\n\t\t\t$property_locations = deeds_solr_helper_get_charter_property_locations($row['docnum'], $ci);\r\n\r\n\t\t\tforeach ($property_locations as $property_location) {\r\n\t\t\t\t$ci->doc->addField('property_country', $property_location['country']);\r\n\t\t\t\t$ci->doc->addField('property_county', $property_location['county']);\r\n\t\t\t\t$ci->doc->addField('property_place', $property_location['place']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($row['origin_country'] != '' && $row['origin_country'] != 'NULL') {\r\n\t\t\t\t$ci->doc->addField('origin_country', $row['origin_country']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($row['origin_county'] != '' && $row['origin_county'] != 'NULL') {\r\n\t\t\t\t$ci->doc->addField('origin_county', $row['origin_county']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($row['origin_place'] != '' && $row['origin_place'] != 'NULL') {\r\n\t\t\t\t$ci->doc->addField('origin_place', $row['origin_place']);\r\n\t\t\t}\r\n\r\n\t\t\tif ($row['charter_type'] != '' && $row['charter_type'] != 'NULL') {\r\n\t\t\t\t$charter_types = explode(', ', $row['charter_type']);\r\n\t\t\t\tforeach ($charter_types as $charter_type) {\r\n\t\t\t\t\t$ci->doc->addField('charter_type', $charter_type);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$ci->doc->addField('origin', $row['origin']);\r\n\t\t\t$ci->doc->addField('language', $row['language']);\r\n\r\n\t\t\t$dated = deeds_core_formatyr($row['dated']);\r\n\t\t\t$lodate = deeds_core_formatyr($row['lodate']);\r\n\t\t\t$hidate = deeds_core_formatyr($row['hidate']);\r\n\r\n\t\t\t$date_precision = $row['date_precision'];\r\n\r\n\t\t\tif ($dated != '0000') {\r\n\t\t\t\t$ci->doc->addField('docYear_display', $dated);\r\n\t\t\t\t$ci->doc->addField('docYear_multi', $dated);\r\n\t\t\t} else if ($lodate != '0000' && $hidate != '0000') {\r\n\t\t\t\t$int_loyr = intval($lodate);\r\n\t\t\t\t$int_hiyr = intval($hidate);\r\n\t\t\t\tfor ($i = $int_loyr; $i <= $int_hiyr; $i++) {\r\n\t\t\t\t\t$ci->doc->addField('docYear_multi', $i);\r\n\t\t\t\t} \r\n\t\t\t\tif($int_loyr === $int_hiyr) { \r\n\t\t\t\t\t$ci->doc->addField('docYear_display', $lodate);\r\n\t\t\t\t} else { \r\n\t\t\t\t\t$ci->doc->addField('docYear_display', \"{$lodate}-{$hidate}\");\r\n\t\t\t\t}\r\n\t\t\t} else if ($lodate != '0000') {\r\n\t\t\t\t$ci->doc->addField('docYear_display', $lodate);\r\n\t\t\t\t$ci->doc->addField('docYear_multi', $lodate);\r\n\t\t\t} else if ($hidate != '0000') {\r\n\t\t\t\t$ci->doc->addField('docYear_display', $hidate);\r\n\t\t\t\t$ci->doc->addField('docYear_multi', $hidate);\r\n\t\t\t}\r\n\t\t\t$ci->doc->addField('date_precision', $date_precision);\r\n\r\n\t\t\t$copySource = $row['charter_source'];\r\n\t\t\t$ci->doc->addField('copySource', $copySource);\r\n\r\n\t\t\t$ci->doc->addField('cart_title_short', $row['cart_title_short']);\r\n \t\t\t$ci->doc->addField('cart_title', $row['cart_title']);\r\n \t\t\t$ci->doc->addField('cart_bib_title', $row['cart_bib_title']);\r\n\r\n\t\t\t$count++;\r\n\r\n\t\t\t$ci->service->addDocument($ci->doc);\r\n\t\t\t$ci->service->commit();\r\n\t\t\t$ci->doc->clear();\r\n\r\n\t\t} catch (Exception $e) {\r\n\t\t\techo \"Error: \".$e->getMessage().\"\\n\";\r\n\t\t\techo \"File: \".$e->getFile().\"\\n\";\r\n\t\t\techo \"Line: \".$e->getLine().\"\\n\";\r\n\t\t\techo \"Code: \".$e->getCode().\"\\n\";\r\n\t\t\t//echo \"Trace: \".print_r($e->getTrace(), TRUE).\"\\n\";\r\n\t\t}\r\n\t}\r\n}", "public function query($index){\n $this->httpRequest->query($index);\n }", "abstract public function doIndex($item);", "abstract protected function getIndex();", "abstract public function query();", "function query() {\n // Since attachment views don't validate the exposed input, parse the search\n // expression if required.\n if (!$this->parsed) {\n $this->query_parse_search_expression($this->value);\n }\n $required = FALSE;\n if (!isset($this->search_query)) {\n $required = TRUE;\n }\n else {\n $words = $this->search_query->words();\n if (empty($words)) {\n $required = TRUE;\n }\n }\n if ($required) {\n if ($this->operator == 'required') {\n $this->query->add_where($this->options['group'], 'FALSE');\n }\n }\n else {\n $search_index = $this->ensure_my_table();\n\n $search_condition = db_and();\n\n if (!$this->options['remove_score']) {\n // Create a new join to relate the 'serach_total' table to our current 'search_index' table.\n $join = new views_join;\n $join->construct('search_total', $search_index, 'word', 'word');\n $search_total = $this->query->add_relationship('search_total', $join, $search_index);\n\n $this->search_score = $this->query->add_field('', \"SUM($search_index.score * $search_total.count)\", 'score', array('aggregate' => TRUE));\n }\n\n if (empty($this->query->relationships[$this->relationship])) {\n $base_table = $this->query->base_table;\n }\n else {\n $base_table = $this->query->relationships[$this->relationship]['base'];\n }\n $search_condition->condition(\"$search_index.type\", $base_table);\n if (!$this->search_query->simple()) {\n $search_dataset = $this->query->add_table('search_dataset');\n $conditions = $this->search_query->conditions();\n $condition_conditions =& $conditions->conditions();\n foreach ($condition_conditions as $key => &$condition) {\n // Take sure we just look at real conditions.\n if (is_numeric($key)) {\n // Replace the conditions with the table alias of views.\n $this->search_query->condition_replace_string('d.', \"$search_dataset.\", $condition);\n }\n }\n $search_conditions =& $search_condition->conditions();\n $search_conditions = array_merge($search_conditions, $condition_conditions);\n }\n else {\n // Stores each condition, so and/or on the filter level will still work.\n $or = db_or();\n foreach ($words as $word) {\n $or->condition(\"$search_index.word\", $word);\n }\n\n $search_condition->condition($or);\n }\n\n $this->query->add_where($this->options['group'], $search_condition);\n $this->query->add_groupby(\"$search_index.sid\");\n $matches = $this->search_query->matches();\n $placeholder = $this->placeholder();\n $this->query->add_having_expression($this->options['group'], \"COUNT(*) >= $placeholder\", array($placeholder => $matches));\n }\n // Set to NULL to prevent PDO exception when views object is cached.\n $this->search_query = NULL;\n }", "function query() {}", "public function updateIndex()\n {\n if ($this->es_index_helper) {\n call_user_func($this->es_index_helper, $this);\n }\n }", "function get_index()\r\n\t{\r\n\r\n\t}", "public function query() {\n $this->field_alias = $this->real_field;\n if (isset($this->definition['trovequery'])) {\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }\n }", "public function getIndex();", "public function getIndex();", "public function getIndex();", "function query() {\n }", "public function hook_query(&$query)\n {\n \n }", "public function hook_query(&$query)\n {\n \n }", "public function query() {\n $this->field_alias = $this->real_field;\n }", "public abstract function get_query();", "function query() {\n $this->field_alias = $this->real_field;\n }", "function query() {\n $this->field_alias = $this->real_field;\n }", "public function index(): Relation;", "function query() {\n \n $this->ensure_my_table();\n \n if ($this->options['operator'] == 'in') {\n $keys = array_keys($this->value);\n\n $this->query->add_where(0, $this->table_alias.'.id IN ('. implode(',', $keys).')' );\n }\n\n }", "public function refreshEntitySearchIndex()\n {\n return $this->start()->uri(\"/api/entity/search\")\n ->put()\n ->go();\n }", "private function sql_resWiHits()\n {\n // Count hits\n $bool_count = true;\n\n // Get query parts\n $select = $this->sql_select( $bool_count );\n $from = $this->sql_from();\n $where = $this->sql_whereWiHits();\n $groupBy = $this->sql_groupBy();\n $orderBy = $this->sql_orderBy();\n $limit = $this->sql_limit();\n\n// $query = $GLOBALS['TYPO3_DB']->SELECTquery\n// (\n// $select,\n// $from,\n// $where,\n// $groupBy,\n// $orderBy,\n// $limit\n// );\n//var_dump( __METHOD__, __LINE__, $query );\n // Execute query\n $arr_return = $this->pObj->objSqlFun->exec_SELECTquery\n (\n $select, $from, $where, $groupBy, $orderBy, $limit\n );\n // Execute query\n\n return $arr_return;\n }", "public function index()\n\t{\n\t\t$data['result']=NULL;\n\t\t$data['show']=NULL;\n\t\t$this->setIndex($data);\n\t}", "public function getIndex() {return $this->index;}", "function addQuery() {}", "abstract function index();", "abstract function index();", "abstract function index();", "function indexInfo( $table, $index, $fname = __METHOD__ );", "abstract protected function getIndexTableFields();", "public function getSearchIndex();", "public function query();", "public function query();", "public function query();", "function _index() {\n\t\t$index = array();\n\t\t$data = $this->model->data[$this->model->name];\n\t\tforeach ($data as $key => $value) {\n\t\t\tif (is_string($value)) {\n\t\t\t\t$columns = $this->model->getColumnTypes();\n\t\t\t\tif ($key != $this->model->primaryKey && isset($columns[$key]) && in_array($columns[$key],array('text','varchar','char','string'))) {\n\t\t\t\t\t$index []= strip_tags(html_entity_decode($value,ENT_COMPAT,'UTF-8'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// This is the custom part\n\t\t$tag_results = $this->find('all', array(\n\t\t\t'conditions' => array('Article.id' => $this->id),\n\t\t\t'fields' => array('Article.id'),\n\t\t\t'contain' => array('Tag')\n\t\t));\n\t\techo '<pre>'.print_r($tag_results, true).'</pre>';\n\t\t\n\t\t$index = join('. ',$index);\n\t\t$index = iconv('UTF-8', 'ASCII//TRANSLIT', $index);\n\t\t$index = preg_replace('/[\\ ]+/',' ',$index);\n\t\treturn $index;\n\t}", "function getIndex() ;", "function _admin_search_query()\n {\n }", "public function execute()\n\t{\n\t\t$searchQuery = $this->searchPhrase ? '\"' . $this->searchPhrase . '\"' : '';\n\t\t$queryParams['attributesToRetrieve']\t= '*';\n\t\t$queryParams['maxValuesPerFacet']\t\t= '100';\n\t\t$queryParams['attributesToHighlight']\t= array();\n\t\t$queryParams['filters']\t\t\t\t\t= $this->filters;\n\t\t$queryParams['facetFilters']\t\t\t= $this->facetFilters;\n\t\t$queryParams['offset']\t\t\t\t\t= $this->start;\n\t\t$queryParams['length']\t\t\t\t\t= $this->limit;\n\n\t\t$queryParams['facets']\t\t\t\t\t= array($this->facetField);\n\n\t\t// We need to pass this query by setRawQueryParams for advsearch frontent.\n\t\t$queryParams['advancedSyntax']\t\t\t= 'true';\n\n\t\tif (count($this->rawQueryParams))\n\t\t{\n\t\t\t$queryParams = array_merge($queryParams, $this->rawQueryParams);\n\t\t}\n\n\t\t// This is something Juggad related to Osianama requirement.\n\t\tif (isset($queryParams['restrictSearchableAttributes']))\n\t\t{\n\t\t\t$searchQuery = $this->searchPhrase ? $this->searchPhrase : '';\n\t\t}\n\n\t\t$Data = $this->algoliaIndex->search($searchQuery, $queryParams);\n\n\t\tif (count($Data['hits']) > 0)\n\t\t{\n\t\t\t$this->total\t= $Data['nbHits'];\n\t\t\t$this->count\t= $Data['hitsPerPage'];\n\t\t\t$this->records\t= '';\n\n\t\t\tforeach ($Data['hits'] as $key => $row)\n\t\t\t{\n\t\t\t\tunset($row['_highlightResult']);\n\n\t\t\t\t$row['id']\t\t\t\t\t\t= $row['objectID'];\n\t\t\t\t$this->records['data'][$key]\t= (object) $row;\n\t\t\t}\n\n\t\t\tif ($this->facetField)\n\t\t\t{\n\t\t\t\t$this->records['facets'] = $Data['facets'];\n\t\t\t}\n\t\t}\n\t}", "private function createIndexs()\n {\n if(is_array($this->queryIndex) && count($this->queryIndex) > 0){\n $queryIndex = implode(', ', $this->queryIndex);\n return \", {$queryIndex}\";\n }\n }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "function main(){\r\n\r\n\r\n /*$index='texas-30001-player';\r\n $type= 'player';\r\n $stime= \"2018-05-01 00:00:00\";\r\n $etime= \"2018-05-08 00:00:00\";\r\n $groupOp = 'AND';\r\n\r\n $querydata = [\r\n [\r\n \"op\"=>\"eq\",\r\n \"field\"=>\"ActionName\",\r\n \"data\"=>\"player.gain\"\r\n ],\r\n [\r\n \"op\"=>\"eq\",\r\n \"field\"=>\"type\",\r\n \"data\"=>\"gold\"\r\n ],\r\n [\r\n \"op\"=>\"ew\",\r\n \"field\"=>\"num\",\r\n \"data\"=>10000\r\n ]\r\n ];\r\n\r\n $ins = \\Pelasticsearch\\Pelasticsearch::Getins();\r\n $ins->init($index,$type,$stime,$etime);\r\n $data = $ins->multipleQuery(0,100,$groupOp,$querydata);\r\n\r\n echo '<pre>';\r\n print_r($data);\r\n echo '</pre>';*/\r\n\r\n\r\n /*$index='texas-30001-player';\r\n $type= 'player';\r\n $body = [\r\n \"fieldname\"=>\"fielddata\"\r\n ];\r\n $ins = \\Pelasticsearch\\Pelasticsearch::Getins();\r\n $ins->init($index,$type);\r\n $data = $ins->Add($body);\r\n\r\n\r\n echo '<pre>';\r\n print_r($data);\r\n echo '</pre>';*/\r\n\r\n /*$index='texas-30001-player';\r\n $type= 'my_type';\r\n $id = 'my_id';\r\n $ins = \\Pelasticsearch\\Pelasticsearch::Getins();\r\n $ins->init($index,$type);\r\n $data = $ins->Delete($id);\r\n\r\n echo '<pre>';\r\n print_r($data);\r\n echo '</pre>';*/\r\n\r\n\r\n\r\n}", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function queryAll();", "public function Query(){\n\t}", "public function Query(){\n\t}", "public function Query(){\n\t}", "public function delegateIndexExists(&$result, DbalSchema $dbal_schema, $table_full_name, $drupal_table_name, $drupal_index_name);", "function get_index_params()\n {\n return array();\n }", "public function query()\n\t{\n\t\t\n\t}", "protected function processIndex()\n {\n //convert the request to sql\n $processedRequest = $this->processRequest($this->request);\n $records = $this->getRecords($processedRequest);\n\n //get the results and append its relationships\n $results = $this->appendRelationshipsToResult($this->request, $records['results']);\n\n //return the kanvas pagination format\n if ($this->request->hasQuery('format')) {\n $limit = (int) $this->request->getQuery('limit', 'int', 25);\n\n $results = [\n 'data' => $results,\n 'limit' => $limit,\n 'page' => $this->request->getQuery('page', 'int', 1),\n 'total_pages' => ceil($records['total'] / $limit),\n ];\n }\n\n return $this->processOutput($results);\n }" ]
[ "0.7515977", "0.74312127", "0.7166127", "0.6533022", "0.64704245", "0.6426205", "0.63736165", "0.62815654", "0.62301713", "0.62301713", "0.62301713", "0.6228801", "0.6228801", "0.6228801", "0.622835", "0.6227676", "0.6227676", "0.61556554", "0.6145412", "0.6126141", "0.61017644", "0.6076141", "0.6075772", "0.5990072", "0.5956018", "0.5919351", "0.5898354", "0.58915406", "0.58909357", "0.5882663", "0.5870814", "0.58615196", "0.5854805", "0.5854805", "0.5854805", "0.58535403", "0.5851745", "0.5851745", "0.58253384", "0.5817924", "0.58162534", "0.58162534", "0.5811809", "0.5808271", "0.580757", "0.57854277", "0.5784298", "0.57842517", "0.57821125", "0.57813835", "0.57813835", "0.57813835", "0.57421696", "0.5727923", "0.57270324", "0.57259244", "0.57259244", "0.57259244", "0.57230663", "0.5719575", "0.5680473", "0.5677574", "0.56767726", "0.56697184", "0.56697184", "0.56697184", "0.56697184", "0.56514645", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56480557", "0.56382436", "0.56382436", "0.56382436", "0.56339353", "0.56277543", "0.56265014", "0.56168866" ]
0.7664927
0
/ | | Hook for manipulate row of index table html | |
public function hook_row_index($column_index,&$column_value) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function headerRow(&$rows, $rowN, $add_edit_link) {\n $currentRow = current($rows);\n?>\n\t<tr data-row=\"<?= $rowN ?>\">\n<?php\n if ($add_edit_link) {\n?>\n <th></th>\n<?php\n }\n foreach ($currentRow as $fieldName => $val) {\n?>\n\t\t<th class=\"popr\" data-id=\"1\">\n\t\t\t<?= $fieldName ?>\n\t\t</th>\n<?php\n }\n?>\n\t</tr>\n<?php\n }", "public function hook_row_index($column_index, &$column_value)\n\t{\n\t\t//Your code here\n\t}", "function update_sub_row($selector, $i = 1, $row = \\false, $post_id = \\false)\n{\n}", "public function changeRowData(&$row){}", "public function getRow();", "public function getRow() {}", "function currentRow();", "function update_row($selector, $i = 1, $row = \\false, $post_id = \\false)\n{\n}", "public function table_index_edit ( $tname, $field, $value, $key )\n\t{\n\t}", "public function rowsAction() {\n parent::rowsAction();\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}", "abstract public function getRow();", "abstract public function getRow();", "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 formatRow(){\n $this->hook('formatRow');\n }", "function displayResults($db)\n {\n \n $counter=0;\n while($rows = $db->result->fetch_assoc())\n {\n\n $counter+=1;\n echo\"\n <tr align = 'center' id = '$counter' onmouseover = 'changeRowColor(this,true);'\n onmouseout = 'changeRowColor(this,false);'onclick='pageRedirect($counter);'>\n \n <td>$rows[lead_id]</td>\n <td>$rows[customer_id]</td>\n <td>$rows[first_name]</td>\n <td>$rows[last_name]</td>\n <td>&nbsp $rows[email] &nbsp</td>\n <td>$rows[employee_id]</td>\n <td>&nbsp $rows[date] &nbsp</td>\n <td>$rows[type]</td>\n </tr>\n \";\n\n }\n\n\n }", "abstract protected function getRow($row);", "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 editable_list_tbody($data){\r\n\t\t$list_tbody = \"<tbody>\";\r\n\t\t$i = 0;\r\n\t\tforeach ($data as $row) {\r\n\t\t\t++$i;\r\n\t\t\t$list_tbody .= \"<tr class='\".$this->model->table_name.\"_row_\".$i.\"' \r\n\t\t\t\".($this->model->crud_config['can_update'] ? \r\n\t\t\t\t/*\" onmouseover='editable_switch_on(\\\"\".SERVER_DIR.\"\\\",\\\"\".$this->model->table_name.\"\\\",\".$i.\")' \".\r\n\t\t\t\t\" onmouseout='editable_switch_off(\\\"\".SERVER_DIR.\"\\\",\\\"\".$this->model->table_name.\"\\\",\".$i.\")' \".*/\r\n\t\t\t\t\" onclick='editable_switch_on(\\\"\".SERVER_DIR.\"\\\",\\\"\".$this->model->table_name.\"\\\",\".$i.\")' \" : \"\").\r\n\t\t\t\t\">\" .\r\n\t\t\t\t\"<td><div class='tr_index' ><span>\" . $i . \"</span></div></td>\";\r\n\t\t\t\t\r\n\t\t\tforeach ($this->model->table_fields as $list_field) {\r\n\t\t\t\tif ($list_field->get_visible_grid()) {\r\n\t\t\t\t\t$list_tbody .= \"<td>\";\r\n\t\t\t\t\t//if($list_field->get_type()==Column::$COLUMN_TYPE_SELECT)\r\n\t\t\t\t\tif ($list_field->get_foreing_key()) {\r\n\t\t\t\t\t\t$select_data = $list_field->get_fk_entity()->get_select_data($row[$list_field->get_name()]);\r\n\t\t\t\t\t\t$value = $select_data[0]['name'] ;\r\n\t\t\t\t\t\t$text = $select_data[0]['name'] ;\r\n\t\t\t\t\t} else if ($list_field->get_type() == Column::$COLUMN_TYPE_PASS) {\r\n\t\t\t\t\t\t$value = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t\t$text = (str_repeat('*', strlen($row[$list_field->get_name()]))) ;\r\n\t\t\t\t\t} else if (Column::$COLUMN_TYPE_ICONPICKER) {\r\n\t\t\t\t\t\t$value = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t\t$text = $row[$list_field->get_name()] . \" <i class='\" . $row[$list_field->get_name()] . \"'></i>\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$value = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t\t$text = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$list_field->set_label('');\r\n\t\t\t\t\t$list_field->set_field_html(' \r\n\t\t\t\t\t\tonblur=\"update_label(\\''.$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.'\\',$(this).val(),$(this))\" \r\n\t\t\t\t\t\tonkeyup=\"update_label(\\''.$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.'\\',$(this).val(),$(this))\" \r\n\t\t\t\t\t\tonchange=\"update_label(\\''.$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.'\\',$(this).val(),$(this))\" \r\n\t\t\t\t\t\told_value=\"'.$value.'\" new_value=\"'.$value.'\" ');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$list_tbody .= \r\n\t\t\t\t\t\t\"<div \r\n\t\t\t\t\t\t\tclass='\".$this->model->table_name.\"_label_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_label_row_\".$i.\"\r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.\"' \r\n\t\t\t\t\t\t\tfield_name='\".$list_field->get_name().\"'>\". \r\n\t\t\t\t\t\t\t$text .\"</div>\" . \r\n\t\t\t\t\t\t\"<div \r\n\t\t\t\t\t\t\tclass='\".$this->model->table_name.\"_field_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_field_row_\".$i.\"' \r\n\t\t\t\t\t\t\tfield_name='\".$list_field->get_name().\"\r\n\t\t\t\t\t\t\trow_index='\".$i.\"' \r\n\t\t\t\t\t\t\tstyle='display:none;'>\".\r\n\t\t\t\t\t\t\t$this->build_element($list_field, array($list_field->get_name() => $value)).\"</div>\";\r\n\t\t\t\t\t$list_tbody .= \"</td>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$list_tbody .= \"<td class='text-center'>\" . \r\n\t\t\t\t('<input \r\n\t\t\t\ttype=\"hidden\" \r\n\t\t\t\tname=\"'.$this->model->id_field.'\" \r\n\t\t\t\tid=\"'.$this->model->id_field.'\"\r\n\t\t\t\tvalue=\"'.$row[$this->model->id_field].'\"\t\t\t\t\r\n\t\t\t\t/>').\r\n\t\t\t\t\t($this->model->crud_config['can_update'] ?\r\n\t\t\t\t\t\t\"<div class='\".$this->model->table_name.\"_field_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_field_row_\".$i.\"' style='display:none;'>\".\r\n\t\t\t\t\t\t\t('<a id=\"link_cancel\" \r\n\t\t\t\t\t\t\t\thref=\"javascript:editable_switch_off(\\''.SERVER_DIR.'\\',\\''.$this->model->table_name.'\\','.$i.')\" \r\n\t\t\t\t\t\t\t\tclass=\"m-1 btn btn-secondary \">\r\n\t\t\t\t\t\t\t\t<i class=\"fas fa-times-circle \"></i></a>').\r\n\t\t\t\t\t\t\t//Component::save_button($this->model->table_name, $row[$this->model->id_field]) .\r\n\t\t\t\t\t\t\t\"</div>\" : '') .\r\n\t\t\t\t\t($this->model->crud_config['can_delete'] ?\r\n\t\t\t\t\t\t\"<div class='\".$this->model->table_name.\"_label_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_label_row_\".$i.\"' >\". \r\n\t\t\t\t\t\t\tComponent::delete_button($this->model->table_name, $row[$this->model->id_field]) \r\n\t\t\t\t\t\t\t.\"</div>\" : '') .\r\n\t\t\t\t\"</td>\" ;\r\n\t\t\t\t\r\n\t\t\t$list_tbody .= \"</tr>\";\r\n\t\t}\r\n\t\treturn $list_tbody . \"</tbody> \r\n\t\t\t<input type='hidden' \r\n\t\t\tname='\".$this->model->table_name.\"_rows' \r\n\t\t\tid='\".$this->model->table_name.\"_rows'\r\n\t\t\tvalue='\".$i.\"'\r\n\t\t\t/>\";\r\n\t}", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function myRow($row,$pos){\r\n\techo \"<tr class='table-primary'>\";\r\n\techo \"<th>\".$pos.\"</th><td>\".$row['username'].\"</td><td>\".$row['credits'].\"xp</td><td class='text-dark'>\".$row['wins'].\" </td><td class='text-danger'>\".$row['loses'].\"</td>\";\r\n\techo \"</tr>\";\t\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 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}", "private function rebuildIndex()\n {\n foreach ($this->rows as $id => $row) {\n $label = $row->getColumn('label');\n if ($label !== false) {\n $this->rowsIndexByLabel[$label] = $id;\n }\n }\n $this->indexNotUpToDate = false;\n }", "function change()\n {\n $form = new Apeform(10000, 60, false);\n $form->hidden(\"change\", \"method\");\n $table = $form->hidden($this->table->tablename(), \"table\");\n $id = &$form->hidden($this->GET('id'), \"id\");\n $form->hidden($this->GET('override'), \"override\");\n $row = $this->table->data($id);\n\n $function = basename($this->table->tablename()) . \"_onRowLoaded\";\n if (function_exists($function)) {\n $function(&$row, &$this->table);\n }\n\n foreach ($this->table->fields as $i => $field) {\n $label = $i ? $field : ('<span class=\"primary\" title=\"Row identifier\">' . $field . '</span>');\n $help = \"\";\n if (! $this->GET('override')) {\n if ($field == \"id\")\n $help = \"Primary key\";\n elseif ($this->types[$field] == \"null\")\n $help = \"\";\n else\n $help = \"Guessed type: \" . $this->types[$field];\n if ($this->types[$field] == \"bool\" || $this->types[$field] == \"varchar\" || $this->types[$field] == \"blob\") {\n $help .= ' (<a class=\"override\" href=\"' . $this->SELF . '?method=change';\n $help .= '&table=' . $table . '&id=' . $id . '&override=1\">override</a>)';\n }\n }\n $value = isset($row[$field]) ? $row[$field] : \"\";\n\n $function = basename($this->table->tablename()) . \"_\" . $field . \"_onDisplay\";\n\n if (! $this->GET('override') && preg_match('/^(.+)_id$/i', $field, $matches)) {\n $tablename = dirname($this->table->tablename());\n if ($tablename)\n $tablename .= \"/\";\n $tablename .= $matches[1];\n $foreignTable = new MyCSV($tablename);\n if ($foreignTable->exists()) {\n $fField = $foreignTable->fields[1];\n $foreignTable->sort($fField);\n $options = array();\n while ($fRow = $foreignTable->each()) {\n $options[$fRow['id']] = substr($fRow['id'] . \" (\" . $fRow[$fField], 0, $form->size - 4) . \")\";\n }\n $help = 'Foreign key (<a class=\"override\" href=\"' . $this->SELF . '?method=change';\n $help .= '&table=' . $table . '&id=' . $id . '&override=true\">override</a>)';\n $changedRow[$field] = $form->select($label, $help, $options, $value);\n $foreignTable->close();\n\n if (function_exists($function)) {\n $function(&$form->_rows[count($form->_rows) - 1], &$row);\n }\n continue;\n }\n }\n\n switch ($this->types[$field]) {\n case \"bool\":\n $changedRow[$field] = $form->checkbox($label, $help, array(\n 1 => \"\"\n ), $value);\n break;\n case \"int\":\n case \"float\":\n $changedRow[$field] = $form->text($label, $help, $value, 0, 10);\n break;\n case \"text\":\n $changedRow[$field] = $form->textarea($label, $help, $value, 7);\n break;\n case \"blob\":\n if ($file = $form->file($label, $help)) {\n $fp = fopen($file['tmp_name'], \"rb\");\n $changedRow[$field] = fread($fp, 10000);\n fclose($fp);\n }\n break;\n default:\n $changedRow[$field] = $form->text($label, $help, $value);\n }\n\n if (function_exists($function)) {\n $function(&$form->_rows[count($form->_rows) - 1], &$row);\n }\n }\n // Show these both Buttons in edit/update() mode.\n $button = array();\n if ($this->priv & PRIV_UPDATE)\n $button[] = \"Save changes\";\n if ($this->priv & PRIV_INSERT)\n $button[] = \"Save as new row\";\n if ($this->priv & PRIV_DELETE)\n $button[] = \"Delete\";\n // Show this Button in insert() mode.\n if (empty($changedRow['id']))\n $button = \"Insert new row\";\n $button = $form->submit($button);\n\n if ($form->isValid() && strstr($button, \" new row\") && $this->table->id_exists($changedRow['id'])) {\n $form->error('Duplicate entry for <span class=\"primary\">id</span>', 4);\n }\n if ($form->isValid()) {\n if ($button == \"Delete\") {\n $this->delete();\n return;\n }\n\n $function = basename($this->table->tablename()) . \"_onRowValidated\";\n if (function_exists($function)) {\n $function(&$changedRow, &$this->table);\n }\n\n if ($button == \"Save as new row\")\n $id = \"\";\n if ($id != \"\")\n $this->table->update($changedRow, $id);\n else\n $this->table->insert($changedRow);\n\n $function = basename($this->table->tablename()) . \"_onRowUpdated\";\n if (function_exists($function)) {\n $function(&$this->table);\n }\n\n $this->table->write();\n $id = $changedRow['id'];\n if ($id == \"\") {\n $this->browse();\n return;\n }\n }\n\n $this->displayHead();\n\n $form->display();\n\n if ($id != \"\") {\n echo '<p>';\n $aHref = '<a href=\"' . $this->SELF . '?method=change&table=' . $table;\n if ($this->table->prev($id) === false)\n echo '&lt;&lt; First | &lt; Previous | ';\n else {\n echo $aHref . '&id=' . urlencode($this->table->first()) . '\">&lt;&lt; First</a> | ';\n echo $aHref . '&id=' . urlencode($this->table->prev($id)) . '\">&lt; Previous</a> | ';\n }\n if ($this->table->next($id) === false)\n echo 'Next &gt; | Last &gt;&gt;';\n else {\n echo $aHref . '&id=' . urlencode($this->table->next($id)) . '\">Next &gt;</a> | ';\n echo $aHref . '&id=' . urlencode($this->table->last()) . '\">Last &gt;&gt;</a>';\n }\n echo '</p>';\n }\n }", "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 $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, $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 editRow($table_name, $key_column_name, $key_value, $row)\n {\n foreach($row as $column_name=>$column_value)\n {\n $this->editValue(\n $table_name,\n $key_column_name,\n $key_value,\n $column_name,\n $column_value);\n }\n }", "function tck_table_edit_row($return, $keyword, $url, $title) {\n $id = yourls_string2htmlid( $keyword );\n \n $return = str_replace('colspan=\"6\"', 'colspan=\"7\"', $return);\n $return = str_replace('colspan=\"5\"', 'colspan=\"6\"', $return);\n \n $checked = '';\n if ( tck_is_custom_keyword($keyword) ) $checked = ' checked';\n \n $return = str_replace('</td><td', '<br /><strong>Custom Keyword</strong>: <input type=\"checkbox\" id=\"edit-custom-' . $id . '\" name=\"edit-custom-' . $id . '\"' . $checked . ' /></td><td', $return);\n $return = str_replace('edit_link_save', 'edit_link_save_custom', $return);\n \n return $return;\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}", "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 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}", "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}", "public function get_row();", "public function getModelIndex();", "public function getRowOffset();", "abstract protected function goToRow($rowNumber);", "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}", "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 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, $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}", "public function getRowAttributes(RenderWalker $walker, int $index, array $row): array;", "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 display_rows()\n {\n }", "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}", "public function display_rows()\n {\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// 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 fancy_altrows($rows) {\r\n\tif(is_array($rows)) {\r\n\t\t$i = 0;\r\n\t\tforeach($rows as $text) { $i++; ?>\r\n\t\t\t\t\t<li class=\"<?php tablealt($i); ?>\"><?php echo $text; ?></li>\r\n<?php\r\n\t\t}\r\n\t}\r\n}", "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\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}", "protected function traiterRowMySQL($row) {\n\t\tparent::traiterRowMySQL($row);\n\t\t$this->getRowNAVR($row);\n\t\t$this->getRowTime($row);\n\t}", "function renderRow(& $data) \n {\n $title = $this->_highlightText($data['title']);\n $text = $this->_highlightText($data['text']);\n if ($data['persite'] != 0) {\n $row = str_replace('{title}', $title, $this->_rowTemplate);\n $row = str_replace('{text}', $text, $row);\n $row = str_replace('{url}', $data['url'], $row);\n $this->_html .= $row;\n $row = str_replace('{title}', \n $data['persite'].\" results\", \n $this->_rowDetailTemplate);\n $row = str_replace('{text}', $data['lastmod'], $row);\n $url = $_SERVER['PHP_SELF'].'?'.\n $this->_http_parameters['query'].'='.\n urlencode($this->_query).\n '&'.$this->_http_parameters['siteid'].'='.$data['siteid'];\n $row = str_replace('{url}', $url, $row);\n $this->_html .= $row;\n } else {\n $row = str_replace('{title}', $title, $this->_rowTemplate);\n $row = str_replace('{text}', $text, $row);\n $row = str_replace('{url}', $data['url'], $row);\n $this->_html .= $row;\n $row = str_replace('{title}', \"\", $this->_rowDetailTemplate);\n $row = str_replace('{text}', $data['lastmod'], $row);\n $row = str_replace('{url}', $data['url'], $row);\n $this->_html .= $row;\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}", "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 addRowToTable(&$table, $row) {\n\t\tglobal $TCA, $BACK_PATH;\n\t\t$uid = $row['uid'];\n\t\t$hidden = $row['hidden'];\n\n\t\tif ($row[$TCA[$this->tableName]['ctrl']['languageField']]==0) {\n\t\t\t$catnum = $this->categories[$row['category']] . sprintf ('%02d', $row['number']);\n\t\t} else {\n\t\t\t$catnum = '';\n\t\t}\n\t\t// Get language flag\n\t\tlist($imglang, $imgtrans) = $this->makeLocalizationPanel($this->tableName,$row);\n\n\t\t// If deleted show the delete icon instead of the delete link\n\t\tif ('DELETED!' == $row['t3ver_label']) {\n\t\t\t$deleteIcon = '<img'\n\t\t\t\t. t3lib_iconWorks::skinImg(\n\t\t\t\t\t$BACK_PATH,\n\t\t\t\t\t'gfx/i/shadow_delete.png',\n\t\t\t\t\t'width=\"16\" height=\"14\"'\n\t\t\t\t\t)\n\t\t\t\t. '>';\n\t\t} else {\n\t\t\t$deleteIcon = $this->getDeleteIcon($uid);\n\t\t}\n\t\t\n\t\t// Add the result row to the table array.\n\t\t$table[] = array(\n\t\t\tTAB . TAB . TAB . TAB . TAB\n\t\t\t\t. $catnum . LF,\n\t\t\tTAB . TAB . TAB . TAB . TAB\n\t\t\t\t. t3lib_div::fixed_lgd_cs(\n\t\t\t\t\t$row['name'],\n\t\t\t\t\t50\n\t\t\t\t) . LF,\n\t\t\tTAB . TAB . TAB . TAB . TAB\n\t\t\t\t. $imglang . LF,\n\t\t\tTAB . TAB . TAB . TAB . TAB\n\t\t\t\t. $imgtrans . LF,\n\t\t\tTAB . TAB . TAB . TAB . TAB\n\t\t\t\t. $row['timeslots'] . LF,\n\t\t\tTAB . TAB . TAB . TAB . TAB\n\t\t\t\t. $this->getEditIcon($uid) . LF\n\t\t\t\t. TAB . TAB . TAB . TAB . TAB\n\t\t\t\t. $deleteIcon . LF\n\t\t\t\t. TAB . TAB . TAB . TAB . TAB\n\t\t\t\t. $this->getHideUnhideIcon($uid,$hidden) . LF,\n\t\t);\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}", "protected function traiterRowMySQL($row) {\n\t\tparent::traiterRowMySQL($row);\n\t\t$this->getRowTexte($row);\n\t}", "function add_row($arr_html,$row){\r\n\r\n\t\tarray_splice($this->data, $row-1, 0, array($arr_html));\r\n\r\n\t}", "public function updateRow($row);", "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 display_rows() {\n\n //Récuperation des quotes\n $records = $this->items;\n\n //Récuperation des colonnes\n list( $columns, $hidden ) = $this->get_column_info();\n if(!empty($records)){\n //pour chaque quote\n foreach($records as $rec){\n\n echo '<tr id=\"record_'.$rec->id.'\">';\n foreach ( $columns as $column_name => $column_display_name ) {\n\n $class = \"class='$column_name column-$column_name'\";\n $style = \"\";\n if ( in_array( $column_name, $hidden ) ) $style = ' style=\"display:none;\"';\n $attributes = $class . $style;\n\n $editlink = '/wp-admin/link.php?action=edit&id='.(int)$rec->id;\n\n switch ( $column_name ) {\n case \"col_id\":\techo '<td '.$attributes.'>'.stripslashes($rec->id).'</td>';\tbreak;\n case \"col_author\": echo '<td '.$attributes.'>'.stripslashes($rec->author).'</td>'; break;\n case \"col_quote\": echo '<td '.$attributes.'>'.stripslashes($rec->quote).'</td>'; break;\n case \"col_action\": echo '<td '.$attributes.'><a class=\"button\" style=\"margin-right:10px;\" href=\"admin.php?page=add_funny_quotes&quote='.stripslashes($rec->id).'&action=edit\">Editer</a><a class=\"button\" onclick=\"return confirm(\\'Etes-vous sur de vouloir supprimer la quote ?\\')\" href=\"admin.php?page=add_funny_quotes&quote='.stripslashes($rec->id).'&action=delete\">Supprimer</a></td>'; break;\n }\n\n }\n\n echo'</tr>';\n\n }\n }\n }", "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 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 getRowHtml()\r\n\t{\r\n\t // Failsafe if i18n is not loaded\r\n\t if(! function_exists('__'))\r\n\t Misc::use_helper('I18N');\r\n\r\n\t if ($this->showGeenResultaten && ($this->rowCount == 0)) {\r\n\t\t $html = \" <td colspan='$this->colCount'>\" . __('Geen resultaten') . \"</td>\\n\";\r\n\t\t}\r\n\t\telse $html = $this->rowDataHtml;\r\n\r\n\t\treturn $html;\r\n\t}", "function okrs_add_table_row($row ,$aRow)\n{\n\n $CI = &get_instance();\n $CI->load->model('okr/okr_model');\n\n if($aRow['rel_type'] == 'okrs'){\n $okrs = $CI->okr_model->get_okrs($aRow['rel_id']);\n if ($okrs) {\n\n $str = '<span class=\"hide\"> - </span><a class=\"text-muted task-table-related\" data-toggle=\"tooltip\" title=\"' . _l('task_related_to') . '\" href=\"' . admin_url('okr/show_detail_node/' . $okrs->id) . '\">' . $okrs->your_target . '</a><br />';\n\n $row[2] = $row[2].$str;\n }\n\n }\n\n return $row;\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$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 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 add_sub_row($selector, $row = \\false, $post_id = \\false)\n{\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}", "public function hook_before_index(&$result) {\n \n }", "abstract protected function _getRowNumeric($rs);", "public abstract function affectedRows();", "public function processRow ($row, $idx) {\n\n static $max_rows = 20;\n $cols = array(0,1,7);\n\n # for demo purposes, only return first 20 rows\n if($idx >= $max_rows)\n return null;\n\n\n # headers row, prepend index column\n if ($idx === 0) {\n # modify header row to prepend an index column\n $this->setHeaders($row);\n return array_merge( array(\"Index\"), $this->_extractColumns($row, $idx, $cols));\n }\n\n\n $out = array_merge( array($idx+1), $this->_extractColumns($row, $idx, $cols));\n //return array_intersect($row, $cols);\n return $out;\n\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// 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 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 getRowOffset($index)\n\t{\n\t\treturn $index +1 + $this->limitstart;\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}", "abstract protected function getIndexTableFields();", "public function tableRender($form, $table_name, $table_rows, $last_year, $table_id) {\n $fields_list = ['Year', 'Jan', 'Feb', 'Mar', 'Q1', 'Apr', 'May', 'Jun', 'Q2', 'Jul', 'Aug', 'Sep', 'Q3', 'Oct', 'Nov', 'Dec', 'Q4', 'YTD'];\n $actions_name = \"action_{$table_id}\";\n\n $form[$actions_name]['addYear'] = [\n '#type' => 'button',\n '#value' => $this->t('Add Year'),\n '#name' => 'add_year_' . $table_id,\n '#last_year' => $last_year,\n '#ajax' => [\n 'callback' => '::submitAjaxCallback',\n 'event' => 'click',\n 'wrapper' => 'table_wrapper',\n ]\n ];\n\n $form[$table_name] = [\n '#type' => 'table',\n '#title' => 'Sample Table',\n '#header' => $fields_list,\n ];\n\n for ($j = 0; $j <= $table_rows; $j++) {\n $qtd = 1;\n for ($i = 0; $i < count($fields_list); $i++) {\n if ($fields_list[$i] == 'Year') {\n $form[$table_name][$j]['Year'] = array(\n '#type' => 'textfield',\n '#size' => 4,\n '#attributes' => array('readonly' => 'readonly'),\n '#default_value' => $last_year,\n );\n } elseif ($fields_list[$i] == 'Q1' || $fields_list[$i] == 'Q2' || $fields_list[$i] == 'Q3' || $fields_list[$i] == 'Q4') {\n $qtd++;\n $form[$table_name][$j][$fields_list[$i]] = [\n '#type' => 'number',\n '#prefix' => \"<div class='table-field-$j-$fields_list[$i]-$table_name black-field'>\",\n '#suffix' => \"</div>\",\n '#step' => '0.01',\n '#attributes' => [\n 'class' => ['qtd-input'],\n 'data-qtd' => $fields_list[$i],\n ]\n ];\n } elseif ($fields_list[$i] == 'YTD') {\n $form[$table_name][$j][$fields_list[$i]] = [\n '#type' => 'number',\n '#prefix' => \"<div class='table-field-YTD-$j-$table_name'>\",\n '#suffix' => \"</div>\",\n '#attributes' => [\n 'class' => ['year-input'],\n ],\n '#step' => '0.01',\n ];\n } else {\n $form[$table_name][$j][$fields_list[$i]] = [\n '#type' => 'number',\n '#step' => '0.01',\n '#attributes' => [\n 'class' => ['month-input'],\n 'data-month' => $i,\n 'data-qtd' => 'Q' . $qtd,\n ]\n ];\n }\n }\n }\n\n return $form;\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// 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}", "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() {\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}", "abstract public function affectedRows();", "abstract public function affectedRows();", "public function selectRow($row);", "function editrow()\r\n {\r\n $c=$this->connector();\r\n $r='';\r\n $r.=$this->logout();\r\n $db=$_GET['db'];\r\n $tbl=$_GET['table'];\r\n $val=$_GET['val'];\r\n $col=$_GET['col'];\r\n $r.=\"<div id='isi'>\r\n <center><a href='?act=showtable&db=$db'>Show Tables </a></center><br />\";\r\n $r.=\"<form method='post' action='?act=showcon&db=$db&table=$tbl&col=$col&val=$val'>\";\r\n $r.=\"<table width=100% align='center' cellspacing=0 class='xpltab'>\";\r\n \r\n $cols=array();\r\n $iml=mysql_query(\"SHOW COLUMNS FROM $db.$tbl\");\r\n $query=mysql_query(\"SELECT * FROM $db.$tbl WHERE $col='$val'\");\r\n \r\n while($colom=mysql_fetch_assoc($iml))$cols[]=$colom['Field'];\r\n $data=mysql_fetch_assoc($query);\r\n for($i=0;$i<count($cols);$i++)\r\n {\r\n $pt=$cols[$i];\r\n $r.=\"<tr><td style='border:none'>\".$pt.\"</td><td style='border:none'>\".' : <input id=\"sqlbox\" type=\"text\" name=\"'.$cols[$i].'\" value=\"'.$data[$pt].'\"></td></tr>';\r\n\r\n }\r\n $r.=\"</table><input type='hidden' name='action' value='updaterow'><input id='but' type='submit' value='update'></form></div>\";\r\n return $r;\r\n $this->free();\r\n }", "function wp_plugin_update_rows()\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// 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, $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// 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// 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() {\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 $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, $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}" ]
[ "0.7040296", "0.65991104", "0.64569235", "0.6452901", "0.6394552", "0.63443357", "0.6314597", "0.6283318", "0.62630236", "0.6211519", "0.6146662", "0.6135051", "0.6135051", "0.61244977", "0.61214316", "0.6067351", "0.6057485", "0.6051985", "0.60499394", "0.5999983", "0.5999983", "0.59416044", "0.59333336", "0.5881809", "0.58679664", "0.584277", "0.5832242", "0.58273673", "0.5819943", "0.58085877", "0.5806878", "0.5800392", "0.57798594", "0.576983", "0.5768731", "0.57620716", "0.57519805", "0.5750748", "0.57437086", "0.5714456", "0.5705498", "0.56963944", "0.5691526", "0.568066", "0.567311", "0.5672566", "0.56703115", "0.56703115", "0.56703115", "0.56696486", "0.5668147", "0.5666695", "0.5663208", "0.5655786", "0.563792", "0.5636442", "0.5630699", "0.5623326", "0.5619944", "0.56197894", "0.5617446", "0.5612736", "0.56117594", "0.5610973", "0.5610174", "0.56089926", "0.5608851", "0.5601762", "0.56007254", "0.5593437", "0.5590675", "0.55905956", "0.55873674", "0.5573722", "0.55735725", "0.55730325", "0.5570124", "0.5565415", "0.55577666", "0.5555638", "0.5552888", "0.55444556", "0.5543922", "0.55417717", "0.55411667", "0.55405957", "0.5540368", "0.5540368", "0.55391264", "0.5538774", "0.5512748", "0.5509663", "0.5508104", "0.55036974", "0.55000764", "0.5494182", "0.5486288", "0.5483061" ]
0.70864713
2
/ | | Hook for manipulate data input before add data is execute |
public function hook_before_add(&$postdata) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hook()\n {\n $this->setData();\n }", "public function saveAddedFieldData($inputData) {\n\n\t\t\t$group_id = $inputData['group-id'];\n\t\t\t$type_id = $inputData['type-id'];\n\n\t\t\t$info = getRequest('data');\n\n\t\t\t$title = getArrayKey($info, 'title');\n\t\t\t$name = getArrayKey($info, 'name');\n\t\t\t$is_visible = getArrayKey($info, 'is_visible');\n\t\t\t$field_type_id = getArrayKey($info, 'field_type_id');\n\t\t\t$guide_id = getArrayKey($info, 'guide_id');\n\t\t\t$in_search = getArrayKey($info, 'in_search');\n\t\t\t$in_filter = getArrayKey($info, 'in_filter');\n\t\t\t$tip = getArrayKey($info, 'tip');\n\t\t\t$isRequired = getArrayKey($info, 'is_required');\n\t\t\t$restrictionId = getArrayKey($info, 'restriction_id');\n\t\t\t$isImportant = getArrayKey($info, 'is_important');\n\n\t\t\t$objectTypes = umiObjectTypesCollection::getInstance();\n\t\t\t$fields = umiFieldsCollection::getInstance();\n\t\t\t$fieldTypes = umiFieldTypesCollection::getInstance();\n\n\t\t\t//Check for non-unique field name\n\t\t\t$type = $objectTypes->getType($type_id);\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\tif($type->getFieldId($name)) {\n\t\t\t\t\tthrow new publicAdminException(getLabel('error-non-unique-field-name'));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$field_type_obj = $fieldTypes->getFieldType($field_type_id);\n\t\t\t$field_data_type = $field_type_obj->getDataType();\n\n\t\t\tif($field_data_type == \"relation\" && $guide_id == 0) {\n\t\t\t\t$guide_id = self::getAutoGuideId($title);\n\t\t\t}\n\n\t\t\tif($field_data_type == \"optioned\" && $guide_id == 0) {\n\t\t\t\t$parent_guide_id = $objectTypes->getTypeIdByGUID('emarket-itemoption');\n\t\t\t\t$guide_id = self::getAutoGuideId($title, $parent_guide_id);\n\t\t\t}\n\n\t\t\t$field_id = $fields->addField($name, $title, $field_type_id, $is_visible, false, false);\n\n\t\t\t$field = $fields->getField($field_id);\n\t\t\t$field->setGuideId($guide_id);\n\t\t\t$field->setIsInSearch($in_search);\n\t\t\t$field->setIsInFilter($in_filter);\n\t\t\t$field->setTip($tip);\n\t\t\t$field->setIsRequired($isRequired);\n\t\t\t$field->setRestrictionId($restrictionId);\n\t\t\t$field->setImportanceStatus($isImportant);\n\t\t\t$field->commit();\n\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\t$group = $type->getFieldsGroup($group_id);\n\t\t\t\tif($group instanceof umiFieldsGroup) {\n\t\t\t\t\t$group->attachField($field_id);\n\t\t\t\t\t$group_name = $group->getName();\n\n\t\t\t\t\t$childs = $objectTypes->getChildTypeIds($type_id);\n\t\t\t\t\t$sz = count($childs);\n\n\t\t\t\t\tfor($i = 0; $i < $sz; $i++) {\n\t\t\t\t\t\t$child_type_id = $childs[$i];\n\t\t\t\t\t\t$child_type = $objectTypes->getType($child_type_id);\n\n\t\t\t\t\t\tif($child_type instanceof umiObjectType) {\n\n\t\t\t\t\t\t\tif($child_type->getFieldId($name) == $field_id) continue;\n\n\t\t\t\t\t\t\t$child_group = $child_type->getFieldsGroupByName($group_name);\n\t\t\t\t\t\t\tif($child_group instanceof umiFieldsGroup) {\n\t\t\t\t\t\t\t\t$child_group->attachField($field_id, true);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$ignoreChildGroup = getRequest('ignoreChildGroup');\n\t\t\t\t\t\t\t\tif ($ignoreChildGroup) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthrow new publicAdminException(getLabel(\"error-no-child-group\", false, $group_name, $child_type->getName()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new publicAdminException(getLabel(\"error-no-object-type\", false, $child_type_id));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn $field_id;\n\t\t\t\t} else {\n\t\t\t\t\tthrow new coreException(getLabel(\"error-no-fieldgroup\", false, $group_id));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new coreException(getLabel(\"error-no-object-type\", false, $type_id));\n\t\t\t}\n\t\t}", "protected function beforeSave($data=array())\n\t{\n\t\n\t}", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->data = $this->data['value'];\r\r\n }\r\r\n }", "public function hooked()\n {\n $this->setData();\n }", "public function add_data($data)\n {\n }", "public function hook_before_add(&$postdata)\n\t{\n\t\t//Your code here\n\n\t}", "protected function beforeGetData()\n {\n\n }", "public function input($_data){\n\t\t$this->data=$_data;\n\t}", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function hook_before(&$postdata) {\n\n\t\t }", "public function hook_before_add(&$arr) {\n\n }", "public function beforeSave()\n {\n $value = $this->getValue();\n $value = $this->makeStorableArrayFieldValue($value);\n $this->setValue($value);\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 }", "protected function updateBefore( $data )\n {\n return $data;\n }", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->e_data = $this->decode_param($this->data['value']);\r\r\n $this->data = $this->encode_param($this->data['value']);\r\r\n } else {\r\r\n // POST method or something else\r\r\n $this->e_data = $this->decode_param($this->data);\r\r\n $this->data = $this->encode_param($this->data);\r\r\n }\r\r\n // All keys are srings in array, merge it with defaults to override\r\r\n $this->e_data = array_merge($this->default_options, $this->e_data);\r\r\n /**\r\r\n * At this point the this->data variable surely contains the encoded data, no matter what.\r\r\n */\r\r\n }", "abstract public function updateData();", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->e_data = $this->decode_param($this->data['value']);\r\r\n $this->data = $this->encode_param($this->data['value']);\r\r\n } else {\r\r\n // POST method or something else\r\r\n $this->e_data = $this->decode_param($this->data);\r\r\n $this->data = $this->encode_param($this->data);\r\r\n }\r\r\n /**\r\r\n * At this point the this->data variable surely contains the encoded data, no matter what.\r\r\n */\r\r\n }", "function _wp_customize_changeset_filter_insert_post_data($post_data, $supplied_post_data)\n {\n }", "public function beforeStore($data){ }", "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 }", "public function getDataInputField();", "function addBefore($name, $data, $before) {\n $new_data = array();\n $added = false;\n \n foreach($this->data as $k => $v) {\n if($k == $before) {\n $new_data[$name] = $data;\n $added = true;\n } // if\n \n $new_data[$k] = $v;\n } // foreach\n \n if(!$added) {\n $new_data[$name] = $data;\n } // if\n \n $this->data = $new_data;\n \n return $data;\n }", "protected function preProcessRecordData(&$data)\n {\n }", "protected function _beforeSave()\n {\n $this->_prepareData();\n return parent::_beforeSave();\n }", "function acf_append_data($name, $data)\n{\n}", "protected function beforeUpdate(array &$data, Model $model)\n {\n }", "public function doProcessData() {}", "function onBeforeAdd() {\n\t\treturn true;\n\t}", "protected function beforeStore(array &$data)\n {\n return true;\n }", "function inputdata($data)\n\t{\n\t\t$this->db->insert($this->table, $data);\n\t}", "public function addData(array $data): void\n {\n $this->data = $this->processSchema([$this->data, $data]);\n $this->cache = [];\n }", "protected function hook_beforeSave(){}", "protected function preprocessData() {}", "public function addInput(KalturaTestDataBase $input)\r\n\t{\r\n\t\tif($this->input == null)\r\n\t\t{\r\n\t\t\t$this->input = array();\r\n\t\t}\r\n\t\t\r\n\t\tprint(\"Adding input \" . print_r($input->getUniqueKey(), true) . \"\\n\");\r\n\t\t\r\n\t\t//TODO: maybe Unique key is not so uniqe....\r\n\t\t$this->input[$input->getUniqueKey()] = $input;\r\n\t}", "protected function beforeUpdating()\n {\n }", "public function setData() \n {\n // Empty, to be overridden \n }", "public function preValidation(array $data) { \n // array_filter callback\n function findFields($field) {\n // return field names that include 'newName'\n\t\tif (strpos($field, 'tecnologia') !== false) { \n\t\t\treturn $field;\n\t\t}\n\t\tif (strpos($field, 'modelo') !== false) { \n\t\t\treturn $field;\n\t\t}\n\t\tif (strpos($field, 'color') !== false) {\n\t\t\treturn $field;\n\t\t}\n }\n \n // Search $data for dynamically added fields using findFields callback\n $newFields = array_filter(array_keys($data), 'findFields');\n foreach ($newFields as $fieldName) {\n // strip the id number off of the field name and use it to set new order\n\t\tif (strpos($fieldName, 'tecnologia') !== false && strcmp($fieldName, 'tecnologiahidden')!=0) {\n\t\t\t$this->addtecnologia($data[$fieldName],$data['marca']);\n\t\t}else if (strpos($fieldName, 'modelo') !== false) {\n\t\t\t$this->addmodelo($data[$fieldName],$data['marca'],$data['tecnologia']);\n\t\t}else if (strpos($fieldName, 'color') !== false) {\n\t\t\t$this->addcolor($data[$fieldName],$data['modelo']);\n\t\t}\n }\n }", "public function custom_definition_after_data() {}", "public function hook_before_add(&$postdata) { \n\t //Your code here\n\t\t\t$postdata['status'] = 'draft';\n\t\t\tunset($postdata['id']);\n\t\t\tunset($postdata['get_item_from']);\n\t\t\tunset($postdata['purchase_order_number']);\n\t }", "function add($data){\n if(array_key_exists($data['id'], $this->fields)){\n exit(\"Field with ID: '\".$data['id'].\"' already exists.\");\n }\n if(!isset($data['validate'])){\n $data['validate'] = false;\n }\n if(!isset($data['inline'])){\n $data['inline'] = null;\n }\n if(!isset($data['value'])){\n $data['value'] = null;\n }\n if(!isset($data['readonly'])){\n $data['readonly'] = false;\n }\n\n $this->fields[$data['id']] = $data;\n }", "public function addDataReturnsRecordTitleForInputTypeDataProvider() {}", "public function processData() {\n\t\t$GLOBALS['TCA'] = \\BusyNoggin\\BnBackend\\BackendLibrary::removeExcludeFields($GLOBALS['TCA']);\n\t}", "protected function processData($data)\n {\n $this->data = array_replace_recursive($this->data, $data);\n }", "public function addFilterFormInput(): void;", "protected function allowAdd($data = array())\n\t{\n\t\treturn parent::allowAdd();\n\t}", "public function extendData() {\n }", "final public function add_data($data = array())\n\t{\n\t\t$data = !is_array($data) ? (array)$data: $data;\n\t\t$this->data = array_merge($this->data, $data);\n\t}", "protected function beforeUpdateResponse(Model &$data)\n {\n }", "public function add($data)\n {\n }", "public function upData($data, $where){\n // return $data;\n // return $this->data($data,true)->isUpdate(true)->save();\n // return db('ArticleOrder')->where($where)->save($data);\n return $this->allowField(true)->save($data,$where);\n }", "public function setData()\n {\n }", "public function setData()\n {\n }", "public function setData()\n {\n }", "public function injectChangeableData(array $data) {\n }", "protected function beforeUpdate()\n {\n }", "public function usrSetData($data) {\n\t\tparent::usrSetData(!!$data);\n\t}", "protected function allowAdd($data = array())\n {\n return parent::allowAdd($data);\n }", "protected function DefinedDataUsed($data){\n\t\t\n\t}", "abstract protected function beforeRun($data);", "private function calculateInputData() {\n\t\t$this->inputValuesSetRawData();\n\t\t$this->explodeRowsToCells();\n\t\t$this->separateHeader();\n\t\t$this->validateValues();\n\t}", "private function attachInputs(): void\n {\n foreach ($this->inputs() as $input) {\n $this->getInputFilter()->add($input);\n }\n }", "function PreProcessItemData()\n {\n $this->Sql_Table_Column_Rename(\"Candidate\",\"Friend\");\n\n \n array_unshift($this->ItemDataPaths,\"../EventApp/System/Inscriptions\");\n\n $unitid=$this->ApplicationObj->Unit(\"ID\");\n $eventid=$this->ApplicationObj->Event(\"ID\");\n\n $this->AddDefaults[ \"Unit\" ]=$unitid;\n $this->AddFixedValues[ \"Unit\" ]=$unitid;\n $this->ItemData[ \"Unit\" ][ \"Default\" ]=$unitid;\n\n $this->AddDefaults[ \"Event\" ]=$eventid;\n $this->AddFixedValues[ \"Event\" ]=$eventid;\n $this->ItemData[ \"Event\" ][ \"Default\" ]=$eventid;\n }", "public function beforeSave() {\r\n $data = $this->getData();\r\n\r\n if ($this->element) {\r\n $default = $this->element->getProperties();\r\n foreach ($data as $k => $prop) {\r\n if (array_key_exists($prop['name'],$default)) {\r\n if ($prop['value'] == $default[$prop['name']]) {\r\n unset($data[$k]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n $this->setProperty('data', $data);\r\n\r\n return parent::beforeSave();\r\n }", "protected function processInput()\n {\n if (empty($this->input)) {\n $this->input = request()->except('_token');\n\n if ($this->injectUserId) {\n $this->input['user_id'] = Auth::user()->id;\n }\n }\n $this->sanitize();\n request()->replace($this->input); // @todo IS THIS NECESSARY?\n }", "function inputData(&$data)\n{\n echo (\"tampil data\");\n}", "function input_data($data,$table){\n\t\t$this->db->insert($table,$data);//menginputkan data ke database dengan function input_data\n }", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public function saveAddedObjectData($inputData) {\n\t\t\t$objectsCollection = umiObjectsCollection::getInstance();\n\t\t\t$typesCollection = umiObjectTypesCollection::getInstance();\n\n\t\t\tif($this->checkAllowedElementType($inputData, true) == false) {\n\t\t\t\tthrow new wrongElementTypeAdminException(getLabel(\"error-unexpected-element-type\"));\n\t\t\t}\n\n\n\t\t\t$this->setRequestDataAliases(getArrayKey($inputData, 'aliases'));\n\n\t\t\tif(is_null($name = getArrayKey($inputData, 'name'))) {\n\t\t\t\t$name = getRequest('name');\n\t\t\t}\n\n\t\t\tif(is_null($name)) {\n\t\t\t\tthrow new publicAdminException(\"Require 'name' param in _REQUEST array.\");\n\t\t\t}\n\n\t\t\t$module = get_class($this);\n\t\t\t$method = getArrayKey($inputData, 'type');\n\t\t\t$typeId = getArrayKey($inputData, 'type-id');\n\n\t\t\tif(!$typeId) {\n\t\t\t\t$typeId = $typesCollection->getTypeIdByHierarchyTypeName($module, $method);\n\t\t\t}\n\n\t\t\t$objectId = $objectsCollection->addObject($name, $typeId);\n\t\t\t$object = $objectsCollection->getObject($objectId);\n\t\t\tif($object instanceof umiObject) {\n\t\t\t\t$this->saveAddedObject($object);\n\t\t\t\treturn $object;\n\t\t\t} else {\n\t\t\t\tthrow new coreException(\"Can't create object #{$objectId} \\\"{$name}\\\" of type #{$typeId}\");\n\t\t\t}\n\t\t}", "private function addInputFilter()\n {\n $inputFilter = new InputFilter();\n $this->setInputFilter($inputFilter);\n\n }", "protected function setPutData()\n\t{\n\t\t$this->request->addPostFields($this->query->getParams());\n\t}", "function newServiceInput($data) {\n return $this->db->insert('insumos', $data);\n }", "function process_data($data) {\n // Implement in children classes\n }", "abstract protected function onBeforeAdd($oItem);", "protected function setGetData()\n\t{\n\t\t$this->request->addParams($this->query->getParams());\n\t}", "public function setData($data)\r\n {\r\n }", "function modifyDataArrForFormUpdate($inputArr)\t{\n\t\tif (is_array($this->conf[$this->conf['cmdKey'].'.']['evalValues.']))\t{\n\t\t\treset($this->conf[$this->conf['cmdKey'].'.']['evalValues.']);\n\t\t\twhile(list($theField,$theValue)=each($this->conf[$this->conf['cmdKey'].'.']['evalValues.']))\t{\n\t\t\t\t\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);\n\t\t\t\twhile(list(,$cmd)=each($listOfCommands))\t{\n\t\t\t\t\t$cmdParts = preg_split('/\\[|\\]/',$cmd);\t// Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd)\t{\n\t\t\t\t\t\tcase 'twice':\n\t\t\t\t\t\t\tif (isset($inputArr[$theField]))\t{\n\t\t\t\t\t\t\t\tif (!isset($inputArr[$theField.'_again']))\t{\n\t\t\t\t\t\t\t\t\t$inputArr[$theField.'_again'] = $inputArr[$theField];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$this->additionalUpdateFields.=','.$theField.'_again';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'checkArray':\n\t\t\t\t\t\t\t//echo \"<br>$theField : \".$inputArr[$theField];\n\t\t\t\t\t\t\tif ($inputArr[$theField] && !$this->isPreview())\t{\n\t\t\t\t\t\t\t\tfor($a=0;$a<=30;$a++)\t{\n\t\t\t\t\t\t\t\t\tif ($inputArr[$theField] & pow(2,$a))\t{\n\t\t\t\t\t\t\t\t\t\t$alt_theField = $theField.']['.$a;\n\t\t\t\t\t\t\t\t\t\t$inputArr[$alt_theField] = 1;\n\t\t\t\t\t\t\t\t\t\t$this->additionalUpdateFields.=','.$alt_theField;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t//echo ' modifyDataArrForFormUpdate : '.$theField.','.$this->additionalUpdateFields;\n\t\t\t\t\t\tbreak;\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\tif (is_array($this->conf['parseValues.']))\t{\n\t\t\treset($this->conf['parseValues.']);\n\t\t\twhile(list($theField,$theValue)=each($this->conf['parseValues.']))\t{\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);\n\t\t\t\twhile(list(,$cmd)=each($listOfCommands))\t{\n\t\t\t\t\t$cmdParts = split('\\[|\\]',$cmd);\t// Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd)\t{\n\t\t\t\t\t\tcase 'multiple':\n\t\t\t\t\t\t\tif (isset($inputArr[$theField]) && !$this->isPreview())\t{\n\t\t\t\t\t\t\t\t$inputArr[$theField] = explode(',',$inputArr[$theField]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'checkArray':\n\t\t\t\t\t\t\tif ($inputArr[$theField] && !$this->isPreview())\t{\n\t\t\t\t\t\t\t\tfor($a=0;$a<=30;$a++)\t{\n\t\t\t\t\t\t\t\t\tif ($inputArr[$theField] & pow(2,$a))\t{\n\t\t\t\t\t\t\t\t\t\t$alt_theField = $theField.']['.$a;\n\t\t\t\t\t\t\t\t\t\t$inputArr[$alt_theField] = 1;\n\t\t\t\t\t\t\t\t\t\t$this->additionalUpdateFields.=','.$alt_theField;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$inputArr = $this->userProcess_alt(\n\t\t\t$this->conf['userFunc_updateArray'],\n\t\t\t$this->conf['userFunc_updateArray.'],\n\t\t\t$inputArr\n\t\t);\n\n\t\treturn $inputArr;\n\t}", "function update_data($data_update_item) {\n\t}", "public function setData(array $data = []);", "function before_update() {}", "public function getAddInput();", "public function doData() {\n\t\t\t$dataSet = array();\n\t\t\t$dataSet['attribute:type'] = $this->dataType;\n\t\t\t$dataSet['attribute:action'] = $this->actionType;\n\n\t\t\tif($this->total) {\n\t\t\t\t$dataSet['attribute:total'] = $this->total;\n\n\t\t\t\tif(!is_null($this->offset)) {\n\t\t\t\t\t$dataSet['attribute:offset'] = $this->offset;\n\t\t\t\t}\n\n\t\t\t\tif(!is_null($this->limit)) {\n\t\t\t\t\t$dataSet['attribute:limit'] = $this->limit;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$dataSet = array_merge($dataSet, $this->data);\n\n\t\t\tcmsController::getInstance()->setAdminDataSet($dataSet);\n\t\t}", "public function addAndProcess(array $data){\n \n if(is_array($data)){\n foreach($data as $k => $v) {\n if ( $v == \"\") {\n $data[$k] = NULL;\n }\n }\n\n if(!is_null($data['gridref'])) {\n $data = $this->_processFindspot($data);\n }\n\n $findid = new Pas_Generator_FindID();\n $data['old_findspotid'] = $findid->generate();\n $secuid = new Pas_Generator_SecuID();\n $data['secuid'] = $secuid->secuid();\n //Get the label for the parish\n if(array_key_exists('parishID', $data) &&!is_null($data['parishID'])){\n $parishes = new OsParishes();\n $data['parish'] = $parishes->fetchRow(\n $parishes->select()->where('osID = ?', $data['parishID'])\n )->label;\n }\n //Get the label for the county\n if(array_key_exists('countyID', $data) && !is_null($data['countyID'])){\n $counties = new OsCounties();\n $data['county'] = $counties->fetchRow(\n $counties->select()->where('osID = ?', $data['countyID'])\n )->label;\n }\n //Get the label for the district\n if(array_key_exists('districtID', $data) && !is_null($data['districtID'])){\n $district = new OsDistricts();\n $data['district'] = $district->fetchRow(\n $district->select()->where('osID = ?', $data['districtID'])\n )->label;\n }\n if(array_key_exists('landownername', $data)){\n unset($data['landownername']);\n }\n\n if(array_key_exists('csrf', $data)){\n unset($data['csrf']);\n }\n\n if(empty($data['created'])){\n $data['created'] = $this->timeCreation();\n }\n\n if(empty($data['createdBy'])){\n $data['createdBy'] = $this->getUserNumber();\n }\n\n return parent::insert($data);\n } else {\n throw new Exception('The data submitted is not an array',500);\n }\n }", "function prepareData()\r\n\t{\r\n\t\treturn true;\r\n\t}", "protected function beforeInserting()\n {\n }", "public function prepareBeforeUpdate(array $data): array\n {\n return $data;\n }", "protected function beforeInsert()\n {\n }", "public function updateMultiple_data()\n {\n \n }", "private function _beforeLoad($data)\n {\n $data['update_at']= date('Y-m-d h:i:s',time());\n\n if(isset($data['authors'])) {\n $data['authors'] = implode(',', $data['authors']);\n }\n\n return $data;\n }", "public function addData(string $data);", "public static function setData($data) {}", "public function addData_post(){\n//\t\t$this->data = json_decode(file_get_contents(\"php://input\"), true);\n $this->api_model->setData(json_decode(file_get_contents(\"php://input\"), true));\n if (!empty($this->api_model->getData()) && $this->api_model->getData()) {\n\n if (!($_SESSION[\"first\"])) {\n if ($this->api_model->invokeCreateTable()) {\n $_SESSION[\"first\"] = true;\n echo \"\\ntableName: \".$_SESSION[\"tableName\"];\n echo \"\\ntable created\";\n $this->api_model->insertData();\n }\n }\n else {\n if ($this->api_model->deleteTable($_SESSION[\"tableName\"])) {\n echo \"\\ntable deleted\";\n $_SESSION[\"tableName\"] = \"\";\n $this->columnName = empty($this->columnName);\n if ($this->api_model->invokeCreateTable()) {\n echo \"\\ntableName: \".$_SESSION[\"tableName\"];\n echo \"\\ntable created\";\n $this->api_model->insertData();\n }\n }\n }\n echo \"\\nDimension: \";\n var_dump($_SESSION[\"dimension\"]);\n echo \"\\nMeasure: \";\n var_dump($_SESSION[\"measure\"]);\n }\n\t}", "function sevenconcepts_pre_insertion($flux){\n if ($flux['args']['table']=='spip_auteurs'){\n include_spip('cextras_pipelines');\n $champs_extras=champs_extras_objet(table_objet_sql('auteur'));\n foreach($champs_extras as $value){\n $flux['data'][$value['options']['nom']]=_request($value['options']['nom']); \n }\n $flux['data']['name']=_request('nom_inscription'); \n }\nreturn $flux;\n}", "public function pre_save($input)\n\t{\n\t\treturn $input;\n\t}", "protected function addOtherData(array $data) : void\n {\n $this->otherData += $data;\n }" ]
[ "0.6804563", "0.64667755", "0.6390107", "0.63826454", "0.63033", "0.62368524", "0.6214655", "0.61790437", "0.61454386", "0.6126084", "0.6111076", "0.6008862", "0.60049695", "0.5996527", "0.59902024", "0.59791887", "0.5977963", "0.59778416", "0.59569234", "0.5906958", "0.5903777", "0.58997816", "0.58848095", "0.586567", "0.58614755", "0.58573574", "0.5849883", "0.5845483", "0.58389", "0.58374625", "0.5821784", "0.5817744", "0.5812676", "0.57940924", "0.5789968", "0.57776535", "0.5767035", "0.5757614", "0.57478225", "0.5730643", "0.5726277", "0.57199574", "0.5719624", "0.5710864", "0.56710786", "0.5666055", "0.5661576", "0.56562316", "0.5654091", "0.5640153", "0.5624001", "0.5615056", "0.5615056", "0.5615056", "0.56102294", "0.5606636", "0.56055456", "0.56035703", "0.55873173", "0.5581596", "0.5579116", "0.5577279", "0.55738306", "0.5573032", "0.5559919", "0.555805", "0.5557522", "0.554879", "0.554879", "0.554879", "0.554879", "0.554879", "0.5548207", "0.55423224", "0.5541968", "0.553684", "0.55278563", "0.5522657", "0.55219996", "0.5509151", "0.55008405", "0.5491411", "0.54905474", "0.5482146", "0.54815793", "0.54810435", "0.547921", "0.54750097", "0.54738", "0.5442558", "0.5442383", "0.54320276", "0.5421423", "0.54086816", "0.5408237", "0.5406933", "0.5404507", "0.5402134", "0.5399108" ]
0.6540761
2
/ | | Hook for execute command after add public static function called |
public function hook_after_add($id) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function callCommandMethod() {}", "public function addCommand($command);", "public abstract function afterExec();", "abstract public function OnCall(Command $command);", "abstract function command();", "public function postExec()\n {\n }", "protected function executeAdminCommand() {}", "protected function executeAdminCommand() {}", "protected function executeAdminCommand() {}", "abstract protected function executeCommand();", "private function registerAppCommands()\n {\n }", "public function add(Command $command);", "#[CLI\\Hook(type: HookManager::POST_COMMAND_HOOK, target: 'test:arithmatic')]\n #[CLI\\Help(description: 'Add a text after test:arithmatic command')]\n public function postArithmatic()\n {\n $this->output->writeln('HOOKED');\n }", "public function hookRemove(): void\n {\n $this->say(\"Executing the Plugin's remove hook...\");\n $this->_exec(\"php ./src/hook_remove.php\");\n }", "public function onAfterInitialise()\n\t{\n\t\t$this->call(array('System\\\\Command', 'execute'));\n\n\t\tif ($this->params->get('tranAlias', 1))\n\t\t{\n\t\t\t$this->call(array('Article\\\\Translate', 'translateAlias'), $this);\n\t\t}\n\n\t\tif ($this->params->get('languageOrphan', 0))\n\t\t{\n\t\t\t$this->call(array('System\\\\Language', 'orphan'));\n\t\t}\n\n\t\t@include $this->includeEvent(__FUNCTION__);\n\t}", "public function hook();", "private function registerCommands()\n {\n $this->add(new RunCommand());\n }", "public function hookInstall(): void\n {\n $this->say(\"Executing the Plugin's install hook...\");\n $this->_exec(\"php ./src/hook_install.php\");\n }", "protected function _postExec()\n {\n }", "protected abstract function onExecute();", "function onCommand(){\r\n\r\n\t\tglobal $aryTipeTxt;// $aryTipeTxt : Array after processing of the input character string.\r\n\t\tglobal $raw_input;// $raw_input : Input strings.\r\n\t\tglobal $currentdirectory;// $currentdirectory : current directory (full path)\r\n\t\tglobal $poPath;// $poPath : Entire directory. (ex: $poPath . \"/root/bin/user.json\")\r\n\r\n\t\t$this->addlog(\"コマンドが実行されたよ!\");//[PHPPO/INFO][TestPlugin]コマンドが実行されたよ!\r\n\t\t$this->info(\"[TestPlugin]コマンドが実行されたよ!\");// as $this->addlog(\"コマンドが実行されたよ!\");\r\n\t\t$this->throwError(\"エラーなんか起きてないよ(>_<)\");//[PHPPO/ERROR]エラーなんか起きてないよ(/ω\)\r\n\r\n\t\t$baseCommand = $aryTipeTxt[0]; // to get base command.\r\n\t\tswitch ($baseCommand) {\r\n\t\t\tcase 'test': // on \"test\" command\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'add_more':// on \"add_more\" command\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault: // it won't run... believe in you...\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t$this->info(\"=============variables=============\");\r\n\t\t$this->vardump(\"aryTipeTxt\"); // call to a function in this class.\r\n\t\t$this->vardump(\"raw_input\");\r\n\t\t$this->vardump(\"currentdirectory\");\r\n\t\t$this->vardump(\"poPath\");\r\n\r\n\t\tif (count($aryTipeTxt) > 1) { // there are args.\r\n\t\t\t$this->addlog(\"引数があるみたいだよ!\");\r\n\t\t\t$this->info(var_export($aryTipeTxt));\r\n\t\t}\r\n\t}", "public function after_run(){}", "public function execute(): void\n {\n }", "function execute()\n {\n }", "public function execute(): void;", "public function after_run() {}", "public static function register() {\n\n if ( !defined( 'WP_CLI' ) || !WP_CLI ) {\n return;\n }\n \n $instance = new static;\n if(empty( $instance->namespace )) {\n throw new \\Exception(\"Command namespace not defined\", 1);\n \n }\n\t\t\\WP_CLI::add_command( $instance->namespace, $instance, $instance->args ?? null );\n\t}", "public function getCommand()\n {\n }", "public function postInstallCmd(){\n\n \\Disco\\manage\\Manager::install();\n\n }", "abstract protected function getCommand();", "private function before_execute()\n {\n }", "protected function add()\n {\n $this->numArgs = $this->findNumArgs($this->callback);\n if (is_string($this->callback) && class_exists($this->callback)) {\n $this->useCallbackManager('invoke', $this->callback);\n }\n foreach ((array) $this->hook as $hook) {\n \\add_filter($hook, $this->callback, $this->priority, $this->numArgs);\n }\n }", "public function execute() {\n\t}", "private function public_hooks()\n\t{\n\t}", "public function execute(Command $command): void;", "public function reg(){\n\t\tServer::getInstance()->getCommandMap()->register($this->getPlugin()->getName(), $this);\n\t}", "public static function execute() {\n if ( defined( 'DPC_EXECUTED' ) ) {\n return false;\n } else {\n define( 'DPC_EXECUTED', true );\n }\n load_textdomain( 'dustpress-components', dirname( __FILE__ ) . '/languages/' . get_locale() . '.mo' );\n add_action( 'init', __NAMESPACE__ . '\\Components::add_options_page', 1, 1 );\n add_action( 'init', __NAMESPACE__ . '\\Components::hook', 20, 1 );\n add_action( 'dustpress/partials', __NAMESPACE__ . '\\Components::add_partial_path', 1, 1 );\n add_action( 'activated_plugin', __NAMESPACE__ . '\\Components::load_first', 1, 1 );\n add_filter( 'acf/format_value/type=group', __NAMESPACE__ . '\\Components::add_layout_static', 150, 3 );\n add_filter( 'acf/format_value/type=group', __NAMESPACE__ . '\\Data::component_handle', 200, 3 );\n add_filter( 'acf/format_value/type=flexible_content', __NAMESPACE__ . '\\Data::component_handle', 200, 3 );\n }", "public function getCommand() {}", "public function addAction() {\n\t}", "public function addAction() {\n\t}", "public function addAction() {\n\t}", "public function add_hooks()\n {\n }", "public function add_hooks()\n {\n }", "protected function _exec()\n {\n }", "public function execute()\n {\n }", "public function execute()\n {\n }", "protected function afterAdd() {\n\t}", "function add_action($name, $function, $priority=10){\n return Plugins::instance()->add_action($name, $function, $priority);\n}", "protected abstract function _commandHandler(string $command, $data_array);", "public function addAction() {\r\n\t}", "public function preExecute(){\n\n\t\n\t}", "public function preExec()\n {\n }", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute()\n {\n\n }", "function runkit_method_add($classname, $methodname, $args, $code, $flags = RUNKIT_ACC_PUBLIC)\n{\n}", "public function execute() {\n }", "public function dispatch( Command $command ): void;", "function Execute ();", "protected function after_execute() {\n// \t$this->add_related_files('mod_vcubeseminar', 'intro', null);\n// \t$this->add_related_files('mod_vcubeseminar', 'vcubeseminar', null);\n }", "private function add_actions()\n {\n }", "public function onRun()\n {\n }", "private function registerConsoleCommands()\n {\n // Console Commands\n }", "private function registerConsoleCommands()\n {\n // Console Commands\n }", "public function __invoke(Commands\\CommandInterface $command)\n {\n if($command->canExecute())\n {\n $this->_commands[] = $command;\n \n $command->execute();\n }\n }", "public function addCommand(CommandInterface $command);", "public function execute() { }", "public function command(Command $command);", "protected function registerActiveInstanceCommands()\n {\n // API wrapper commands\n $this->add(new SearchReindexCommand());\n $this->add(new SearchStatusCommand());\n $this->add(new SearchFieldsCommand());\n $this->add(new ElasticsearchQueueCommand());\n $this->add(new ElasticsearchRoutingCommand());\n $this->add(new ElasticsearchIndicesCommand());\n\n // Legacy commands\n $this->add(new CronCommand($this->logger, $this->config, \\SugarMetric_Manager::getInstance()));\n }", "public function registerCustomCommands(): void\n {\n try {\n $this->readCustomCommandsFromConfig();\n } catch (ConfigurationException $e) {\n if ($e->getCode() === 404) {\n return;\n }\n $this->renderExceptionWrapper($e, new ConsoleOutput());\n exit(1);\n } catch (Exception $e) {\n $this->renderExceptionWrapper($e, new ConsoleOutput());\n exit(1);\n }\n }", "abstract public function Execute();", "protected function registerCommands(): void\n {\n $commands = CommandsList::toLoad($this->app::VERSION);\n $customCommands = CommandsList::getCustomCommands();\n $commandsList = array_values($commands) + array_keys($customCommands);\n\n foreach (array_keys($commands) as $command) {\n call_user_func_array([$this, \"register{$command}Command\"], []);\n }\n\n foreach ($customCommands as $command => $callback) {\n $this->app->singleton($command, $callback);\n }\n\n $this->commands($commandsList);\n }", "function Piwik_AddAction( $hookName, $function )\n{\n\tPiwik_PluginsManager::getInstance()->dispatcher->addObserver( $function, $hookName );\n}", "function Core_AddAction( $hookName, $function )\n{\n\tCore_ModuleManager::getInstance()->dispatcher->addObserver( $function, $hookName );\n}", "public function hook()\n {\n \\add_action(\n $this->tag,\n $this->callback,\n $this->priority,\n $this->acceptedParams\n );\n }", "public function hookUpdate(): void\n {\n $this->say(\"Executing the Plugin's update hook...\");\n $this->_exec(\"php ./src/hook_update.php\");\n }", "public function __invoke()\n {\n $this->execute();\n }", "public function after(CommandInterface $command);", "public function before_run(){}", "abstract public function dispatch($command);" ]
[ "0.66572124", "0.6364988", "0.62350273", "0.6219216", "0.62008077", "0.6200409", "0.6191146", "0.6191146", "0.6191146", "0.6171311", "0.6150423", "0.61306643", "0.60999286", "0.5981509", "0.5975643", "0.5949838", "0.5931169", "0.5929222", "0.58974797", "0.5893431", "0.5885133", "0.58785546", "0.5849597", "0.58212954", "0.58044356", "0.58009493", "0.57832706", "0.57801765", "0.5748707", "0.573643", "0.5713245", "0.5692431", "0.56915814", "0.5683512", "0.5682811", "0.5678314", "0.56711507", "0.5659257", "0.5645773", "0.5645773", "0.5645773", "0.56366855", "0.56366855", "0.5626587", "0.56201", "0.56201", "0.56067914", "0.5606159", "0.5590956", "0.55870605", "0.55855453", "0.55820173", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574681", "0.5574483", "0.5574483", "0.5573372", "0.5573372", "0.5573372", "0.5573372", "0.5573372", "0.5573372", "0.5571857", "0.55629104", "0.55600923", "0.55579394", "0.55576354", "0.5545407", "0.55125475", "0.55115855", "0.55104005", "0.55104005", "0.5510007", "0.55098885", "0.5506218", "0.55006284", "0.5495541", "0.549267", "0.54791415", "0.5474454", "0.54662895", "0.5461994", "0.5461489", "0.54587454", "0.54578984", "0.5443388", "0.54372025", "0.54363483" ]
0.5458208
96
/ | | Hook for manipulate data input before update data is execute |
public function hook_before_edit(&$postdata,$id) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function updateData();", "protected function beforeUpdating()\n {\n }", "protected function beforeUpdate()\n {\n }", "protected function getUserInputForUpdate() {}", "function before_update() {}", "public function hook()\n {\n $this->setData();\n }", "protected function beforeUpdate(array &$data, Model $model)\n {\n }", "protected function beforeUpdateResponse(Model &$data)\n {\n }", "protected function updateBefore( $data )\n {\n return $data;\n }", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->data = $this->data['value'];\r\r\n }\r\r\n }", "function update_data($data_update_item) {\n\t}", "function modifyDataArrForFormUpdate($inputArr)\t{\n\t\tif (is_array($this->conf[$this->conf['cmdKey'].'.']['evalValues.']))\t{\n\t\t\treset($this->conf[$this->conf['cmdKey'].'.']['evalValues.']);\n\t\t\twhile(list($theField,$theValue)=each($this->conf[$this->conf['cmdKey'].'.']['evalValues.']))\t{\n\t\t\t\t\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);\n\t\t\t\twhile(list(,$cmd)=each($listOfCommands))\t{\n\t\t\t\t\t$cmdParts = preg_split('/\\[|\\]/',$cmd);\t// Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd)\t{\n\t\t\t\t\t\tcase 'twice':\n\t\t\t\t\t\t\tif (isset($inputArr[$theField]))\t{\n\t\t\t\t\t\t\t\tif (!isset($inputArr[$theField.'_again']))\t{\n\t\t\t\t\t\t\t\t\t$inputArr[$theField.'_again'] = $inputArr[$theField];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$this->additionalUpdateFields.=','.$theField.'_again';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'checkArray':\n\t\t\t\t\t\t\t//echo \"<br>$theField : \".$inputArr[$theField];\n\t\t\t\t\t\t\tif ($inputArr[$theField] && !$this->isPreview())\t{\n\t\t\t\t\t\t\t\tfor($a=0;$a<=30;$a++)\t{\n\t\t\t\t\t\t\t\t\tif ($inputArr[$theField] & pow(2,$a))\t{\n\t\t\t\t\t\t\t\t\t\t$alt_theField = $theField.']['.$a;\n\t\t\t\t\t\t\t\t\t\t$inputArr[$alt_theField] = 1;\n\t\t\t\t\t\t\t\t\t\t$this->additionalUpdateFields.=','.$alt_theField;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t//echo ' modifyDataArrForFormUpdate : '.$theField.','.$this->additionalUpdateFields;\n\t\t\t\t\t\tbreak;\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\tif (is_array($this->conf['parseValues.']))\t{\n\t\t\treset($this->conf['parseValues.']);\n\t\t\twhile(list($theField,$theValue)=each($this->conf['parseValues.']))\t{\n\t\t\t\t$listOfCommands = t3lib_div::trimExplode(',',$theValue,1);\n\t\t\t\twhile(list(,$cmd)=each($listOfCommands))\t{\n\t\t\t\t\t$cmdParts = split('\\[|\\]',$cmd);\t// Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.\n\t\t\t\t\t$theCmd = trim($cmdParts[0]);\n\t\t\t\t\tswitch($theCmd)\t{\n\t\t\t\t\t\tcase 'multiple':\n\t\t\t\t\t\t\tif (isset($inputArr[$theField]) && !$this->isPreview())\t{\n\t\t\t\t\t\t\t\t$inputArr[$theField] = explode(',',$inputArr[$theField]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'checkArray':\n\t\t\t\t\t\t\tif ($inputArr[$theField] && !$this->isPreview())\t{\n\t\t\t\t\t\t\t\tfor($a=0;$a<=30;$a++)\t{\n\t\t\t\t\t\t\t\t\tif ($inputArr[$theField] & pow(2,$a))\t{\n\t\t\t\t\t\t\t\t\t\t$alt_theField = $theField.']['.$a;\n\t\t\t\t\t\t\t\t\t\t$inputArr[$alt_theField] = 1;\n\t\t\t\t\t\t\t\t\t\t$this->additionalUpdateFields.=','.$alt_theField;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$inputArr = $this->userProcess_alt(\n\t\t\t$this->conf['userFunc_updateArray'],\n\t\t\t$this->conf['userFunc_updateArray.'],\n\t\t\t$inputArr\n\t\t);\n\n\t\treturn $inputArr;\n\t}", "public function updateMultiple_data()\n {\n \n }", "public function beforeSave()\n {\n $value = $this->getValue();\n $value = $this->makeStorableArrayFieldValue($value);\n $this->setValue($value);\n }", "protected function _preupdate() {\n }", "protected function beforeSave($data=array())\n\t{\n\t\n\t}", "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 }", "public function doUpdate() {\n\t\ttry {\n\t\t\tcall_user_func_array( $this->doUpdateFunction, $this->arguments );\n\t\t} catch ( Exception $ex ) {\n\t\t\t$this->exceptionHandler->handleException( $ex, 'data-update-failed',\n\t\t\t\t'A data update callback triggered an exception' );\n\t\t}\n\t}", "public function hooked()\n {\n $this->setData();\n }", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "protected function inputUpdate(WireInput $input) {}", "protected function update() {}", "private function internalUpdate()\n {\n $param = array();\n\n // Run before update methods and stop here if the return bool false\n if ($this->runBefore('update') === false)\n return false;\n\n // Define fieldlist array\n $fieldlist = array();\n\n // Build updatefields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n $val = $this->checkFieldvalue($fld, $val);\n $type = $val == 'NULL' ? 'raw' : $this->getFieldtype($fld);\n\n $fieldlist[] = $this->alias . '.' . $fld . '={' . $type . ':' . $fld . '}';\n $param[$fld] = $val;\n }\n\n // Create filter\n $filter = ' WHERE ' . $this->alias . '.' . $this->pk . '={' . $this->getFieldtype($this->pk) . ':' . $this->pk . '}';\n\n // Even if the pk value is present in data, we set this param manually to prevent errors\n $param[$this->pk] = $this->data->{$this->pk};\n\n // Build fieldlist\n $fieldlist = implode(', ', $fieldlist);\n\n // Create complete sql string\n $sql = \"UPDATE {db_prefix}{$this->tbl} AS {$this->alias} SET {$fieldlist}{$filter}\";\n\n // Run query\n $this->db->query($sql, $param);\n\n // Run after update event methods\n if ($this->runAfter('update') === false)\n return false;\n }", "protected function _postUpdate()\n\t{\n\t}", "protected function _update()\n\t{\n\t}", "function before_validation_on_update() {}", "public function beforeUpdate()\n {\n $this->modified_in = date('Y-m-d H:i:s');\n }", "public function beforeUpdate()\n {\n\t\t// Asignar fecha y hora de ultima actualizacion\n// $this->updatedon = time();\n }", "public function preUpdate()\n {\n }", "public function beforeUpdate(&$id, \\stdClass $data, Entity $entity) { }", "protected function _beforeSave()\n {\n $this->_prepareData();\n return parent::_beforeSave();\n }", "protected function beforeGetData()\n {\n\n }", "public function beforeValidationOnUpdate()\n {\n // Timestamp on the update\n $this->modifyAt = time();\n }", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->e_data = $this->decode_param($this->data['value']);\r\r\n $this->data = $this->encode_param($this->data['value']);\r\r\n } else {\r\r\n // POST method or something else\r\r\n $this->e_data = $this->decode_param($this->data);\r\r\n $this->data = $this->encode_param($this->data);\r\r\n }\r\r\n /**\r\r\n * At this point the this->data variable surely contains the encoded data, no matter what.\r\r\n */\r\r\n }", "public function input($_data){\n\t\t$this->data=$_data;\n\t}", "public function prepareBeforeUpdate(array $data): array\n {\n return $data;\n }", "public function updateData(array $data);", "protected function performUpdate() {}", "public function update($data) { \n\n\t\tif ($data['name'] != $this->name) { \n\t\t\t$this->update_name($data['name']); \n\t\t} \n\t\tif ($data['pl_type'] != $this->type) { \n\t\t\t$this->update_type($data['pl_type']); \n\t\t} \n\n\t}", "public function update($data) {}", "public function update($data) {}", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->e_data = $this->decode_param($this->data['value']);\r\r\n $this->data = $this->encode_param($this->data['value']);\r\r\n } else {\r\r\n // POST method or something else\r\r\n $this->e_data = $this->decode_param($this->data);\r\r\n $this->data = $this->encode_param($this->data);\r\r\n }\r\r\n // All keys are srings in array, merge it with defaults to override\r\r\n $this->e_data = array_merge($this->default_options, $this->e_data);\r\r\n /**\r\r\n * At this point the this->data variable surely contains the encoded data, no matter what.\r\r\n */\r\r\n }", "function before_update_processor($row, $postData) {\r\n\tunset($postData['vupb_nama']);\r\n\tunset($postData['vgenerik']);\r\n\t\r\n\t//print_r($postData);exit();\r\n\treturn $postData;\r\n\r\n}", "public function executeValueModifierDataProvider() {}", "protected function processInput()\n {\n if (empty($this->input)) {\n $this->input = request()->except('_token');\n\n if ($this->injectUserId) {\n $this->input['user_id'] = Auth::user()->id;\n }\n }\n $this->sanitize();\n request()->replace($this->input); // @todo IS THIS NECESSARY?\n }", "public function preUpdate()\n {\n $this->dateModification = new \\DateTime();\n }", "public function doProcessData() {}", "public function upData($data, $where){\n // return $data;\n // return $this->data($data,true)->isUpdate(true)->save();\n // return db('ArticleOrder')->where($where)->save($data);\n return $this->allowField(true)->save($data,$where);\n }", "protected function afterUpdating()\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 injectChangeableData(array $data) {\n }", "function after_validation_on_update() {}", "public function beforeUpdate()\n {\n $this->update_at=time();\n }", "public function update(array $data)\n {\n parent::update($data);\n if (array_key_exists('data', $data)) {\n $this->setData($data['data']);\n }\n }", "public function preUpdate($data = array())\n {\n //Prevent blank password override\n if ($data['password']) {\n //Password encryption\n $this->password = User::encrypt($data['password']);\n } else {\n //Empty password to keep the current one\n $this->password = null;\n }\n //Update Date\n $this->dateUpdate = date(\"Y-m-d H:i:s\");\n }", "public function preUpdateCallback()\n {\n $this->performPreUpdateCallback();\n }", "public function preUpdateCallback()\n {\n $this->performPreUpdateCallback();\n }", "protected function _updatefields() {}", "public function setUpdated(): void\n {\n $this->originalData = $this->itemReflection->dehydrate($this->item);\n }", "public function hook_before(&$postdata) {\n\n\t\t }", "function updateDataField($value)\r\n {\r\n if ($this->_datafield!=\"\")\r\n {\r\n if ($this->_datasource!=null)\r\n {\r\n if ($this->_datasource->Dataset!=null)\r\n {\r\n //Checks for the index fields\r\n $keyfields=$this->Name.\"_key\";\r\n $keys=$this->input->$keyfields;\r\n // Checks if the keys were posted\r\n if (is_object($keys))\r\n {\r\n $fname=$this->DataField;\r\n\r\n //Sets to Edit State\r\n $this->_datasource->Dataset->edit();\r\n\r\n\r\n $values=$keys->asStringArray();\r\n\r\n //Sets the key values\r\n reset($values);\r\n while (list($k,$v)=each($values))\r\n {\r\n $this->_datasource->Dataset->fieldset($k,$v);\r\n }\r\n\r\n //Sets the field value\r\n $this->_datasource->Dataset->fieldset($fname,$value);\r\n }\r\n else $this->_datasource->Dataset->fieldset($this->_datafield,$value);\r\n }\r\n }\r\n }\r\n }", "public function ApplyChanges()\n {\n parent::ApplyChanges();\n\n // Update data\n $this->Update();\n }", "abstract protected function update ();", "protected function hook_beforeSave(){}", "public function update($data)\n {\n }", "public function update($data)\n {\n }", "public function update($data)\n {\n }", "public function update($data)\n {\n }", "public function getDataInputField();", "public function beforeSave() {\r\n $data = $this->getData();\r\n\r\n if ($this->element) {\r\n $default = $this->element->getProperties();\r\n foreach ($data as $k => $prop) {\r\n if (array_key_exists($prop['name'],$default)) {\r\n if ($prop['value'] == $default[$prop['name']]) {\r\n unset($data[$k]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n $this->setProperty('data', $data);\r\n\r\n return parent::beforeSave();\r\n }", "protected function preprocessData() {}", "function validate_on_update() {}", "protected function preUpdate( ModelInterface &$model ) {\n }", "public function processDataInput()\n\t{\n\t\t$this->buildNewRecordData();\n\n\t\tif( !$this->recheckUserPermissions() )\n\t\t{\n\t\t\t//\tprevent the page from reading database values\n\t\t\t$this->oldRecordData = $this->newRecordData;\n\t\t\t$this->cachedRecord = $this->newRecordData;\n\t\t\t$this->recordValuesToEdit = null;\n\t\t\treturn false;\n\t\t}\n\n\t\tif( !$this->checkCaptcha() )\n\t\t{\n\t\t\t$this->setMessage($this->message);\n\t\t\treturn false;\n\t\t}\n\n\t\t//\tcheck Deny Duplicate values\n\t\tforeach($this->newRecordData as $f => $value)\n\t\t{\n\t\t\tif( !$this->pSet->allowDuplicateValues($f) )\n\t\t\t{\n\t\t\t\t$this->errorFields[] = $f;\n\t\t\t\t$this->setMessage( $this->pSet->label( $f ) . \" \" . mlang_message(\"INLINE_DENY_DUPLICATES\") );\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t/* process the records and update 1 by one */\n\t\tforeach( $this->parsedSelection as $idx => $s ) \n\t\t{\n\t\t\t$this->currentWhereExpr = $this->getSingleRecordWhereClause( $s );\n\t\t\t$strSQL = $this->gQuery->gSQLWhere( $this->currentWhereExpr );\n\t\t\tLogInfo($strSQL);\n\n\t\t\t$fetchedArray = $this->connection->query( $strSQL )->fetchAssoc();\n\t\t\tif( !$fetchedArray )\n\t\t\t\tcontinue;\n\t\t\t$fetchedArray = $this->cipherer->DecryptFetchedArray( $fetchedArray );\n\t\t\tif( !$this->isRecordEditable( $fetchedArray ) )\n\t\t\t\tcontinue;\n\t\t\t$this->setUpdatedLatLng( $this->getNewRecordData(), $fetchedArray );\n\n\t\t\t$this->oldKeys = $s;\n\t\t\t$this->recordBeingUpdated = $fetchedArray;\n\n\t\t\tif( !$this->callBeforeEditEvent( ) )\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\tif( $this->callCustomEditEvent( ) )\n\t\t\t{\n\t\t\t\tif( !DoUpdateRecord( $this ) )\n\t\t\t\t\tcontinue;\n\t\t\t\t//\tsuccess if at least one record updated\n\t\t\t}\n\t\t\t++$this->nUpdated;\n\t\t\t$this->mergeNewRecordData();\n\t\t\t$this->auditLogEdit();\n\t\t\t$this->callAfterEditEvent();\n\t\t\t\n\t\t\tif( $this->isPopupMode() )\n\t\t\t\t$this->inlineReportData[ $this->rowIds[ $idx ] ] = $this->getRowSaveStatusJSON( $s );\n\t\t}\n\t\n\t\t$this->updatedSuccessfully = ($this->nUpdated > 0);\n\n\t\t//\tdo save the record\n\n\t\tif( !$this->updatedSuccessfully )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$this->messageType = MESSAGE_INFO;\n\t\t$this->setSuccessfulEditMessage();\n\t\t\n\t\t$this->callAfterSuccessfulSave();\n\n\t\treturn true;\n\t}", "public function update(array $input)\n {\n }", "public function Update($data) {\n\n }", "private function calculateInputData() {\n\t\t$this->inputValuesSetRawData();\n\t\t$this->explodeRowsToCells();\n\t\t$this->separateHeader();\n\t\t$this->validateValues();\n\t}", "function lazyUpdate($table, $where, $data){\n \t$sql = 'SHOW COLUMNS FROM '.$table.';';//fetch all columns\n \t$query = mysql_query($sql);\n \t$set = '';\n \twhile($column = mysql_fetch_array($query)){\n \t\t//create the field- and value string\n \t\tif(isset($data[$column['Field']])){\n \t\t\t$set .= $column['Field'].'=\\''.mysql_real_escape_string($data[$column['Field']]).'\\', ';\n \t\t}\n \t}\n \t$set = substr($set,0,-2);\n \treturn mysql_query('UPDATE '.$table.' SET '.$set.' WHERE '.$where.';');//insert the data\n }", "public function postHydrate(): void\n {\n if ('invalid' === $this->value) {\n $this->value = 'valid';\n }\n }", "public function beforeUpdate(string &$id, \\stdClass $data, EntityInterface $entity)\n {\n $this->processFormData($data);\n }", "public function beforeValidation() {\n\t\t$this->modified = new RawValue('now()');\n\t}", "public function saveAddedFieldData($inputData) {\n\n\t\t\t$group_id = $inputData['group-id'];\n\t\t\t$type_id = $inputData['type-id'];\n\n\t\t\t$info = getRequest('data');\n\n\t\t\t$title = getArrayKey($info, 'title');\n\t\t\t$name = getArrayKey($info, 'name');\n\t\t\t$is_visible = getArrayKey($info, 'is_visible');\n\t\t\t$field_type_id = getArrayKey($info, 'field_type_id');\n\t\t\t$guide_id = getArrayKey($info, 'guide_id');\n\t\t\t$in_search = getArrayKey($info, 'in_search');\n\t\t\t$in_filter = getArrayKey($info, 'in_filter');\n\t\t\t$tip = getArrayKey($info, 'tip');\n\t\t\t$isRequired = getArrayKey($info, 'is_required');\n\t\t\t$restrictionId = getArrayKey($info, 'restriction_id');\n\t\t\t$isImportant = getArrayKey($info, 'is_important');\n\n\t\t\t$objectTypes = umiObjectTypesCollection::getInstance();\n\t\t\t$fields = umiFieldsCollection::getInstance();\n\t\t\t$fieldTypes = umiFieldTypesCollection::getInstance();\n\n\t\t\t//Check for non-unique field name\n\t\t\t$type = $objectTypes->getType($type_id);\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\tif($type->getFieldId($name)) {\n\t\t\t\t\tthrow new publicAdminException(getLabel('error-non-unique-field-name'));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$field_type_obj = $fieldTypes->getFieldType($field_type_id);\n\t\t\t$field_data_type = $field_type_obj->getDataType();\n\n\t\t\tif($field_data_type == \"relation\" && $guide_id == 0) {\n\t\t\t\t$guide_id = self::getAutoGuideId($title);\n\t\t\t}\n\n\t\t\tif($field_data_type == \"optioned\" && $guide_id == 0) {\n\t\t\t\t$parent_guide_id = $objectTypes->getTypeIdByGUID('emarket-itemoption');\n\t\t\t\t$guide_id = self::getAutoGuideId($title, $parent_guide_id);\n\t\t\t}\n\n\t\t\t$field_id = $fields->addField($name, $title, $field_type_id, $is_visible, false, false);\n\n\t\t\t$field = $fields->getField($field_id);\n\t\t\t$field->setGuideId($guide_id);\n\t\t\t$field->setIsInSearch($in_search);\n\t\t\t$field->setIsInFilter($in_filter);\n\t\t\t$field->setTip($tip);\n\t\t\t$field->setIsRequired($isRequired);\n\t\t\t$field->setRestrictionId($restrictionId);\n\t\t\t$field->setImportanceStatus($isImportant);\n\t\t\t$field->commit();\n\n\t\t\tif($type instanceof umiObjectType) {\n\t\t\t\t$group = $type->getFieldsGroup($group_id);\n\t\t\t\tif($group instanceof umiFieldsGroup) {\n\t\t\t\t\t$group->attachField($field_id);\n\t\t\t\t\t$group_name = $group->getName();\n\n\t\t\t\t\t$childs = $objectTypes->getChildTypeIds($type_id);\n\t\t\t\t\t$sz = count($childs);\n\n\t\t\t\t\tfor($i = 0; $i < $sz; $i++) {\n\t\t\t\t\t\t$child_type_id = $childs[$i];\n\t\t\t\t\t\t$child_type = $objectTypes->getType($child_type_id);\n\n\t\t\t\t\t\tif($child_type instanceof umiObjectType) {\n\n\t\t\t\t\t\t\tif($child_type->getFieldId($name) == $field_id) continue;\n\n\t\t\t\t\t\t\t$child_group = $child_type->getFieldsGroupByName($group_name);\n\t\t\t\t\t\t\tif($child_group instanceof umiFieldsGroup) {\n\t\t\t\t\t\t\t\t$child_group->attachField($field_id, true);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$ignoreChildGroup = getRequest('ignoreChildGroup');\n\t\t\t\t\t\t\t\tif ($ignoreChildGroup) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthrow new publicAdminException(getLabel(\"error-no-child-group\", false, $group_name, $child_type->getName()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new publicAdminException(getLabel(\"error-no-object-type\", false, $child_type_id));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn $field_id;\n\t\t\t\t} else {\n\t\t\t\t\tthrow new coreException(getLabel(\"error-no-fieldgroup\", false, $group_id));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new coreException(getLabel(\"error-no-object-type\", false, $type_id));\n\t\t\t}\n\t\t}", "protected function setPutData()\n\t{\n\t\t$this->request->addPostFields($this->query->getParams());\n\t}", "protected function getUpdateBeforeFunction()\n {\n \n }", "public function updateAndProcess($data){\n if(is_array($data)){\n foreach($data as $k => $v) {\n if ( $v == \"\") {\n $data[$k] = NULL;\n }\n }\n if(!is_null($data['gridref'])) {\n $data = $this->_processFindspot($data);\n }\n }\n if(array_key_exists('csrf', $data)){\n unset($data['csrf']);\n }\n if(array_key_exists('landownername', $data)){\n unset($data['landownername']);\n }\n if(array_key_exists('parishID', $data) && !is_null($data['parishID'])){\n $parishes = new OsParishes();\n $data['parish'] = $parishes->fetchRow($parishes->select()->where('osID = ?', $data['parishID']))->label;\n }\n if(array_key_exists('countyID', $data) && !is_null($data['countyID'])){\n $counties = new OsCounties();\n $data['county'] = $counties->fetchRow($counties->select()->where('osID = ?', $data['countyID']))->label;\n }\n\n if(array_key_exists('districtID', $data) && !is_null($data['districtID'])){\n $district = new OsDistricts();\n $data['district'] = $district->fetchRow($district->select()->where('osID = ?', $data['districtID']))->label;\n }\n return $data;\n }", "protected function processData($data)\n {\n $this->data = array_replace_recursive($this->data, $data);\n }", "public function onUpdate();", "public function onUpdate();", "public function onUpdate();", "public function testUpdateServiceData()\n {\n\n }", "public function onPreUpdate()\n {\n $this->updatedAt = new \\DateTime(\"now\");\n $this->setTotalAmounts();\n }", "private function updateAllValuesIfNeeded(&$data)\n {\n foreach ($data as $index => $value) {\n $this->updateValueIfNeeded($data, $index);\n }\n }", "public function processData() {\n\t\t$GLOBALS['TCA'] = \\BusyNoggin\\BnBackend\\BackendLibrary::removeExcludeFields($GLOBALS['TCA']);\n\t}", "function update_single_data(){\n\t\t\t$name = $this->input->post('name');\n\t\t\t$value = $this->input->post('value');\t\t\t\n\t\t\t$pk = $this->input->post('pk');\n\t\t\treturn $this->InteractModal->update_post_meta( $pk, $name, $value );\n\t\t\t\n\t\t\t\n\t\t}", "public function after_update() {}", "public function beforeUpdate()\n {\n $this->owner->{$this->updatedAtField} = date($this->format);\n }", "public function preUpdate()\n {\n $this->dateUpdated = new \\DateTime();\n }", "protected function onUpdating()\n {\n return $this->isDataOnUpdateValid();\n }", "public function setData() \n {\n // Empty, to be overridden \n }", "public function update()\r\n {\r\n //\r\n }" ]
[ "0.70306414", "0.69217217", "0.6745609", "0.66442114", "0.66270983", "0.6612673", "0.6589582", "0.65053165", "0.6481062", "0.6463061", "0.63506407", "0.6317018", "0.6260199", "0.6259555", "0.62307274", "0.6192037", "0.6182348", "0.6165462", "0.61582094", "0.61367184", "0.61367184", "0.61293715", "0.6119546", "0.6111452", "0.6100991", "0.60890585", "0.6074932", "0.6068321", "0.6044058", "0.6020048", "0.60086274", "0.5993737", "0.5987968", "0.59849143", "0.59412545", "0.5937648", "0.5921731", "0.59156424", "0.5915633", "0.59127456", "0.59035194", "0.59035194", "0.5899922", "0.58837616", "0.58792603", "0.5843277", "0.58407456", "0.5823949", "0.5815665", "0.5800737", "0.57994777", "0.5787723", "0.5786889", "0.57824665", "0.5770648", "0.57686174", "0.57678974", "0.57678974", "0.5767455", "0.57672036", "0.57614565", "0.5755286", "0.5754583", "0.57494736", "0.5745908", "0.5745851", "0.5745851", "0.5745851", "0.5745851", "0.57445973", "0.57443994", "0.5741438", "0.5736698", "0.5722664", "0.56833196", "0.56679666", "0.56672275", "0.56666005", "0.5666396", "0.5661846", "0.5660965", "0.5656217", "0.56526244", "0.5639519", "0.5632204", "0.5628538", "0.56209004", "0.56121683", "0.56121683", "0.56121683", "0.5607827", "0.5593004", "0.5587128", "0.558649", "0.55760807", "0.55647194", "0.5559556", "0.5557202", "0.5554584", "0.55516523", "0.5533272" ]
0.0
-1
/ | | Hook for execute command after edit public static function called |
public function hook_after_edit($id) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function OnAfterEdit(){\n }", "protected function executeAdminCommand() {}", "protected function executeAdminCommand() {}", "protected function executeAdminCommand() {}", "public function hook_after_edit($id) {\n\n }", "public function edit(command $command)\n {\n //\n }", "function OnBeforeEdit(){\n }", "public function hook_after_edit($id)\n\t{\n\t\t//Your code here \n\n\t}", "protected function callCommandMethod() {}", "function procEdit($ar=NULL){\n $this->getComposedFullnam($ar);\n return parent::procEdit($ar);\n }", "public function edit()\n\t{\n\t\t//\n\t}", "protected function callAfterEditEvent()\n\t{\n\t\tif( !$this->eventsObject->exists(\"AfterEdit\") )\n\t\t\treturn;\n\n\t\t$this->eventsObject->AfterEdit( $this->newRecordData,\n\t\t\t$this->getWhereClause( false ),\n\t\t\t$this->getOldRecordData(),\n\t\t\t$this->keys,\n\t\t\t$this->mode == EDIT_INLINE,\n\t\t\t$this );\n\t}", "public function edit()\n\t{\n\t\t\n\t}", "public function edit() {\n\t\t\t\n\t\t}", "public function edit()\n {\n }", "public function edit()\n {\n }", "public function edit()\n {\n }", "public function edit() {\n }", "public function edit()\n {\n \n }", "abstract protected function executeCommand();", "public function edit()\n { }", "public function edit()\n {\n \n }", "public function edit()\n {\n \n }", "public function edit()\n {\n \n }", "public function edit() {\n\n }", "public function edit()\r\n {\r\n //\r\n }", "public function edit()\r\n {\r\n //\r\n }", "public function edit(Run $run)\n {\n //\n }", "public function edit(Run $run)\n {\n //\n }", "protected function editar()\n {\n }", "public function edit( )\r\n {\r\n //\r\n }", "public function edit()\n { \n }", "public function edit()\n {\n\n }", "public function edit()\n {\n\n }", "public function edit()\n {\n\n }", "public function edit()\n {\n\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "public function edit()\n {\n //\n }", "function getUpdateCommand()\r\n\t{\r\n\t\t\t//\t\t\t\t->update( )\r\n\t}", "public function Edit()\n\t{\n\t\t\n\t}", "abstract protected function getCommand();", "public function edit()\n {\n \n \n }", "abstract function allowEditAction();", "public abstract function afterExec();", "public function editar()\n {\n }", "public function annimalEditAction()\n {\n }", "protected function callCustomEditEvent()\n\t{\n\t\tif( !$this->eventsObject->exists(\"CustomEdit\") )\n\t\t\treturn true;\n\n\t\t$usermessage = \"\";\n\t\t$ret = $this->eventsObject->CustomEdit( $this->newRecordData,\n\t\t\t$this->getWhereClause( true ),\n\t\t\t$this->getOldRecordData(),\n\t\t\t$this->oldKeys,\n\t\t\t$usermessage,\n\t\t\t$this->mode == EDIT_INLINE,\n\t\t\t$this );\n\n\t\t//\tthis is required for the ASP conversion\n\t\tif( !$ret )\n\t\t{\n\t\t\tif ( 0 == strlen( $usermessage ) ) {\n\t\t\t\t++$this->nUpdated;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$this->setMessage( $usermessage );\n\t\t}\n\t\treturn $ret;\n\t}", "protected function editTaskAction() {}", "public function showEdit()\n {\n\n }", "public function edit_toko(){\n\t}", "public function edit()\n {\n //\n\t\treturn 'ini halaman edit';\n }", "public function editorAction() {\n \n }", "public function editAction() {}", "static function alter() {\n }", "public function hook_before_edit(&$arr,$id) {\n\n }", "public function hook_before_edit(&$postdata,$id) { \n\t //Your code here\n\n\t }", "public function hook_before_edit(&$postdata,$id) { \n\t //Your code here\n\n\t }", "public function postExec()\n {\n }", "abstract function command();", "public function run()\n {\n $editAdmin = new Permission();\n $editAdmin->name = 'edit-admin';\n $editAdmin->display_name = 'Edit admin';\n $editAdmin->description = 'create\\delete\\edit admin';\n $editAdmin->save();\n }", "function performCommand($cmd)\n\t{\n\t\tglobal $ilAccess, $ilTabs;\n\n\t\t$next_class = $this->ctrl->getNextClass($this);\n\t\tswitch($next_class)\n\t\t{\n\t\t\tcase 'ilmdeditorgui':\n\t\t\t\tglobal $ilErr;\n\t\t\t\tif(!$ilAccess->checkAccess('write','',$this->object->getRefId()))\n\t\t\t\t{\n\t\t\t\t\t$ilErr->raiseError($this->lng->txt('permission_denied'),$ilErr->WARNING);\n\t\t\t\t}\n\t\t\t\tinclude_once 'Services/MetaData/classes/class.ilMDEditorGUI.php';\n\t\t\t\t$md_gui = new ilMDEditorGUI($this->object->getId(), 0, $this->object->getType());\n\t\t\t\t$md_gui->addObserver($this->object,'MDUpdateListener','General');\n\t\t\t\t$ilTabs->setTabActive(\"meta_data\");\n\t\t\t\treturn $this->ctrl->forwardCommand($md_gui);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ilcommonactiondispatchergui':\n\t\t\t\trequire_once 'Services/Object/classes/class.ilCommonActionDispatcherGUI.php';\n\t\t\t\t$gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall();\n\t\t\t\treturn $this->ctrl->forwardCommand($gui);\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tswitch ($cmd)\n\t\t{\n\t\t\tcase \"editProperties\":\t\t// list all commands that need write permission here\n\t\t\tcase \"saveProperties\":\n\t\t\tcase \"addPair\":\n\t\t\tcase \"editPair\":\n\t\t\tcase \"savePair\":\n\t\t\tcase \"savePairNew\":\n\t\t\tcase \"deletePairs\":\n\t\t\tcase \"savePairClose\":\n\t\t\tcase \"importCSV\":\n\t\t\tcase \"copy\":\n\t\t\tcase \"move\":\n\t\t\tcase \"paste\":\n\t\t\tcase \"importPairs\":\n\t\t\tcase \"pairs\":\n\t\t\t\t$this->checkPermission(\"write\");\n\t\t\t\t$this->$cmd();\n\t\t\t\tbreak;\n\t\t\tcase \"gallery\":\t\t\t// list all commands that need read permission here\n\t\t\t\t$this->checkPermission(\"read\");\n\t\t\t\t$this->$cmd();\n\t\t\t\tbreak;\n\t\t}\n\t}", "#[CLI\\Hook(type: HookManager::POST_COMMAND_HOOK, target: 'test:arithmatic')]\n #[CLI\\Help(description: 'Add a text after test:arithmatic command')]\n public function postArithmatic()\n {\n $this->output->writeln('HOOKED');\n }", "public function executeEdit()\n {\n $this->role = RolePeer::retrieveByPk($this->getRequestParameter('id'));\n $this->forward404Unless($this->role);\n\n $this->langs = sfConfig::get('app_lang_array', array('es')); \n }", "public function after_update() {}", "protected function processAdminCommand()\n {\n if(isset($_POST['command'], $_POST['id']) && $_POST['command']==='delete')\n {\n $this->loadPost($_POST['id'])->delete();\n // reload the current page to avoid duplicated delete actions\n $this->refresh();\n }\n }", "public function canBeEdited() {}", "protected function processAdminCommand()\n\t{\n\t\tif(isset($_POST['command'], $_POST['id']) && $_POST['command']==='delete')\n\t\t{\n\t\t\t$this->loadarticles($_POST['id'])->delete();\n\t\t\t// reload the current page to avoid duplicated delete actions\n\t\t\t$this->refresh();\n\t\t}\n\t}", "function account_edit()\n {\n }", "function onCommand(){\r\n\r\n\t\tglobal $aryTipeTxt;// $aryTipeTxt : Array after processing of the input character string.\r\n\t\tglobal $raw_input;// $raw_input : Input strings.\r\n\t\tglobal $currentdirectory;// $currentdirectory : current directory (full path)\r\n\t\tglobal $poPath;// $poPath : Entire directory. (ex: $poPath . \"/root/bin/user.json\")\r\n\r\n\t\t$this->addlog(\"コマンドが実行されたよ!\");//[PHPPO/INFO][TestPlugin]コマンドが実行されたよ!\r\n\t\t$this->info(\"[TestPlugin]コマンドが実行されたよ!\");// as $this->addlog(\"コマンドが実行されたよ!\");\r\n\t\t$this->throwError(\"エラーなんか起きてないよ(>_<)\");//[PHPPO/ERROR]エラーなんか起きてないよ(/ω\)\r\n\r\n\t\t$baseCommand = $aryTipeTxt[0]; // to get base command.\r\n\t\tswitch ($baseCommand) {\r\n\t\t\tcase 'test': // on \"test\" command\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'add_more':// on \"add_more\" command\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault: // it won't run... believe in you...\r\n\t\t\t\t# code...\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t$this->info(\"=============variables=============\");\r\n\t\t$this->vardump(\"aryTipeTxt\"); // call to a function in this class.\r\n\t\t$this->vardump(\"raw_input\");\r\n\t\t$this->vardump(\"currentdirectory\");\r\n\t\t$this->vardump(\"poPath\");\r\n\r\n\t\tif (count($aryTipeTxt) > 1) { // there are args.\r\n\t\t\t$this->addlog(\"引数があるみたいだよ!\");\r\n\t\t\t$this->info(var_export($aryTipeTxt));\r\n\t\t}\r\n\t}", "function onBeforeEdit() {\n\t\treturn true;\n\t}", "function edithistory_run()\n{\n\tglobal $db, $mybb, $post, $session;\n\t$edit = get_post($post['pid']);\n\n\t// Insert original message into edit history\n\t$edit_history = array(\n\t\t\"pid\" => intval($edit['pid']),\n\t\t\"tid\" => intval($edit['tid']),\n\t\t\"uid\" => intval($mybb->user['uid']),\n\t\t\"dateline\" => TIME_NOW,\n\t\t\"originaltext\" => $db->escape_string($edit['message']),\n\t\t\"subject\" => $db->escape_string($edit['subject']),\n\t\t\"ipaddress\" => $db->escape_string($session->ipaddress),\n\t\t\"reason\" => $db->escape_string($mybb->input['reason'])\n\t);\n\t$db->insert_query(\"edithistory\", $edit_history);\n\n\t$reason = array(\n\t\t\"reason\" => $db->escape_string($mybb->input['reason']),\n\t);\n\t$db->update_query(\"posts\", $reason, \"pid='{$edit['pid']}'\");\n}", "public function edit(Python $python)\n {\n //\n }", "public function getCommand() {}", "protected function _postExec()\n {\n }", "function cmdAdmin()\n\t{\n\t\t$cmd = $this->cmd;\n\n\t\tswitch ($this->cmd)\n\t\t{\n\t\t\tcase NULL:\n\t\t\tcase \"clientlist\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->displayClientList();\n\t\t\t\t$this->active_tab = \"clientlist\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"changepassword\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->changeMasterPassword();\n\t\t\t\t$this->active_tab = \"password\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"mastersettings\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->changeMasterSettings();\n\t\t\t\t$this->active_tab = \"basicsettings\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"determineToolsPath\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->determineToolsPath();\n\t\t\t\tbreak;\n\n\t\t\tcase \"changedefault\":\n\t\t\t\t$this->changeDefaultClient();\n\t\t\t\tbreak;\n\n\t\t\tcase \"newclient\":\n\t\t\t\t$this->cmd = \"selectdb\";\n\t\t\t\t$this->setDisplayMode(\"setup\");\n\t\t\t\t$this->setup->ini_client_exists = $this->setup->newClient();\n\t\t\t\t$this->selectDBType();\n\t\t\t\tbreak;\n\n\t\t\tcase \"selectdbtype\":\n\t\t\tcase \"displayIni\":\n\t\t\t\t$this->cmd = \"ini\";\n\t\t\t\t$this->setDisplayMode(\"setup\");\n\t\t\t\t//$this->setup->ini_client_exists = $this->setup->newClient($this->client_id);\n\t\t\t\t$this->displayIni();\n\t\t\t\tbreak;\n\n\t\t\tcase \"startup\":\n\t\t\t\t$this->setDisplayMode(\"setup\");\n\t\t\t\t$this->setup->ini_client_exists = $this->setup->newClient();\n\t\t\t\t$this->displayStartup();\n\t\t\t\tbreak;\n\n\t\t\tcase \"delete\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->displayDeleteConfirmation();\n\t\t\t\tbreak;\n\n\t\t\tcase \"togglelist\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->toggleClientList();\n\t\t\t\tbreak;\n\n\t\t\tcase \"preliminaries\":\n\t\t\t\t$this->setup->checkPreliminaries();\n\t\t\t\t$this->displayPreliminaries();\n\t\t\t\t$this->active_tab = \"preliminaries\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"updateBasicSettings\":\n\t\t\tcase \"performLogin\":\n\t\t\tcase \"performMLogin\":\n\t\t\t\t$this->$cmd();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$this->cmdClient();\n\t\t\t\tbreak;\n\t\t}\n\t}", "protected abstract function onExecute();", "function getAfterCreationCmd(){\n return \"editQuiz\";\n }", "abstract protected function renderEdit();", "function performCommand($cmd)\n\t{\n\n\t\tswitch ($cmd)\n\t\t{\n\t\t\tcase \"configure\":\n\t\t\tcase \"save\":\n\t\t\t\t$this->$cmd();\n\t\t\t\tbreak;\n\n\t\t}\n\t}", "public function postEventedit();", "public function crudUpdated()\n {\n }", "protected function processAdminCommand()\n\t{\n\t\tif(isset($_POST['command'], $_POST['id']) && $_POST['command']==='delete')\n\t\t{\n\t\t\t$this->loadfiles($_POST['id'])->delete();\n\t\t\t// reload the current page to avoid duplicated delete actions\n\t\t\t$this->refresh();\n\t\t}\n\t}", "public function getCommand();", "public function onEdit($param)\n {\n $this->form->onEdit($param);\n }", "public function getCommand()\n {\n }", "public function edit()\n {\n return \"Ini Halaman Edit\";\n }", "public function editAction()\r\n {\r\n }", "public function modelDoEdit(){\n\t\t\t$maphongban = isset($_GET[\"maphongban\"])&&is_numeric($_GET[\"maphongban\"])?$_GET[\"maphongban\"]:0;\n\t\t\t$tenphongban = $_POST[\"tenphongban\"];\n\t\t\t//lay bien ket noi de thao tac csdl\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//chuan bi truy van\n\t\t\t$query = $conn->prepare(\"update phongban set tenphongban=:ten where maphongban=:ma\");\n\t\t\t$query->execute(array(\"ten\"=>$tenphongban,\"ma\"=>$maphongban));\n\t\t}" ]
[ "0.7015404", "0.6806406", "0.6806406", "0.6806406", "0.6670992", "0.66678154", "0.65440786", "0.6523826", "0.65147734", "0.64903426", "0.63902396", "0.6387624", "0.6366364", "0.6341969", "0.6338487", "0.6338487", "0.6338487", "0.6320983", "0.63054585", "0.6300054", "0.62983894", "0.62733394", "0.62733394", "0.62733394", "0.6263247", "0.6253932", "0.6253932", "0.62483877", "0.62483877", "0.62332225", "0.6216162", "0.62155837", "0.62132555", "0.62132555", "0.62132555", "0.62132555", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6203104", "0.6150125", "0.60977805", "0.60902107", "0.60851216", "0.6078569", "0.60680664", "0.60669285", "0.60458964", "0.60319626", "0.60260576", "0.6000387", "0.5974438", "0.59712285", "0.5963959", "0.59292114", "0.592892", "0.5918765", "0.58922946", "0.5885583", "0.5885583", "0.5882196", "0.5876106", "0.58530915", "0.58464736", "0.5794709", "0.5792819", "0.57909405", "0.57784885", "0.57757676", "0.57683206", "0.5767853", "0.57582223", "0.5758095", "0.5754614", "0.57472134", "0.5735149", "0.5733422", "0.5729535", "0.5724151", "0.5692873", "0.56810784", "0.56803685", "0.56672025", "0.5659734", "0.56489474", "0.56419545", "0.56206363", "0.5616242", "0.5598686", "0.55964136", "0.55904996" ]
0.6732827
5
/ | | Hook for execute command before delete public static function called |
public function hook_before_delete($id) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function preDelete() { }", "public function onBeforeDelete();", "function before_delete() {}", "protected function _preDelete() {}", "public function after_delete() {}", "protected function beforeDelete()\n {\n }", "protected function _predelete() {\n }", "public function onAfterDelete();", "function preDelete()\n {\n }", "public function afterDeleteCommit(): void\n {\n }", "function after_delete() {}", "public function Do_delete_Example1(){\n\n\t}", "protected function afterDelete()\r\n {\r\n }", "protected function afterDelete()\n {\n }", "function call_delete() {\n parent::call_delete();\n }", "public function onBeforeDelete() {\r\n\t\tparent::onBeforeDelete();\r\n\t}", "public function hook_before_delete($id) {\n\n }", "protected function _postDelete() {}", "protected function _postDelete() {}", "public function DELETE() {\n\t\t$this->scriptForceHint('DELETE');\n\t}", "protected function delete() {\n\t}", "public function beforeDelete(): void\n {\n switch ($this->deletionType) {\n case self::DELETION_TYPE_1:\n $this->deletionType1();\n break;\n case self::DELETION_TYPE_0:\n default:\n $this->deletionType0();\n break;\n }\n }", "protected function _delete()\n\t{\n\t}", "protected function preDeleteHook($object) { }", "public function deleting()\n {\n # code...\n }", "abstract public function delete__do_process ();", "function OnBeforeDeleteItem(){\n }", "public function _delete()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }", "public function delete()\n\t{\n\t\t$this->plugin->setResponse('in delete');\n\t}", "protected function _postDelete()\n\t{\n\t}", "public function hook_after_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_after_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_after_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_before_delete($id)\n\t{\n\t\t//Your code here\n\n\t}", "public function delete() {}", "public function delete() {}", "public function delete() {}", "public function delete() {}", "public function forceDelete()\n {\n //\n }", "public function onBeforeDelete()\n {\n parent::onBeforeDelete();\n \n $proxied = $this->getProxiedObject();\n \n // Core SS types are decorated so we know we can call this\n $isCoreType = in_array($proxied->getField('ClassName'), $this->acService->ssCoreTypes());\n if($isCoreType && $proxied->canDeleteOnBlockDelete()) {\n $proxied->delete();\n }\n }", "public function hook_after_delete($id) {\n\n }", "public function __doDelete()\n {\n $strSQL = $this->getDeleteSql();\n $result = $this->query($strSQL);\n }", "function delete() {\n\n }", "public static function delete(){\r\n }", "protected function preDelete() {\n\t\treturn true;\n\t}", "public static function delete() {\r\n\t\t\r\n\t}", "public function delete(): void\n {\n }", "protected function beforeDelete()\n { \n return parent::beforeDelete();\n }", "function delete() {\n }", "public static function delete() {\n\n\n\t\t}", "function OnAfterDeleteItem(){\n }", "public function delete(): void;", "public function delete()\n\t{\n\t}", "public function delete() {\r\n }", "function delete()\r\n {\r\n\r\n }", "public function del()\n {\n }", "public function onAfterDelete() {\r\n\t\tparent::onAfterDelete();\r\n\t\t$this->zlog('Delete');\r\n\t}", "public function delete()\r\n\t{\r\n\t}", "protected function getDeleteBeforeFunction()\n {\n \n }", "public function forceDelete();", "public function delete() {\n\n }", "public function delete()\n {\n //\n }", "protected function MetaAfterDelete() {\n\t\t}", "#[CLI\\Command(name: self::DELETE, aliases: ['wd-del', 'wd-delete', 'wd', 'watchdog-delete'])]\n #[CLI\\Argument(name: 'substring', description: 'Delete all log records with this text in the messages.')]\n #[CLI\\Option(name: 'severity', description: 'Delete messages of a given severity level.')]\n #[CLI\\Option(name: 'type', description: 'Delete messages of a given type.')]\n #[CLI\\Usage(name: 'drush watchdog:delete', description: 'Delete all messages.')]\n #[CLI\\Usage(name: 'drush watchdog:delete 64', description: 'Delete messages with id 64.')]\n #[CLI\\Usage(name: 'drush watchdog:delete \"cron run succesful\"', description: 'Delete messages containing the string \"cron run succesful\".')]\n #[CLI\\Usage(name: '@usage drush watchdog:delete --severity=Notice', description: 'Delete all messages with a severity of notice.')]\n #[CLI\\Usage(name: 'drush watchdog:delete --type=cron', description: 'Delete all messages of type cron.')]\n #[CLI\\ValidateModulesEnabled(modules: ['dblog'])]\n #[CLI\\Complete(method_name_or_callable: 'watchdogComplete')]\n #[CLI\\Bootstrap(level: DrupalBootLevels::FULL)]\n public function delete($substring = '', $options = ['severity' => self::REQ, 'type' => self::REQ]): void\n {\n if ($substring == 'all') {\n $this->output()->writeln(dt('All watchdog messages will be deleted.'));\n if (!$this->io()->confirm(dt('Do you really want to continue?'))) {\n throw new UserAbortException();\n }\n $ret = $this->connection->truncate('watchdog')->execute();\n $this->logger()->success(dt('All watchdog messages have been deleted.'));\n } elseif (is_numeric($substring)) {\n $this->output()->writeln(dt('Watchdog message #!wid will be deleted.', ['!wid' => $substring]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')->condition('wid', $substring)->execute();\n if ($affected_rows == 1) {\n $this->logger()->success(dt('Watchdog message #!wid has been deleted.', ['!wid' => $substring]));\n } else {\n throw new \\Exception(dt('Watchdog message #!wid does not exist.', ['!wid' => $substring]));\n }\n } else {\n if ((empty($substring)) && (!isset($options['type'])) && (!isset($options['severity']))) {\n throw new \\Exception(dt('No options provided.'));\n }\n $where = $this->where($options['type'], $options['severity'], $substring, 'OR');\n $this->output()->writeln(dt('All messages with !where will be deleted.', ['!where' => preg_replace(\"/message LIKE %$substring%/\", \"message body containing '$substring'\", strtr($where['where'], $where['args']))]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')\n ->where($where['where'], $where['args'])\n ->execute();\n $this->logger()->success(dt('!affected_rows watchdog messages have been deleted.', ['!affected_rows' => $affected_rows]));\n }\n }", "abstract public static function deleted($callback);", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "function delete()\n {\n }", "function delete()\n {\n }", "public function delete()\n {\n\n }", "public function delete()\n {\n \n }", "protected function beforeRemoving()\n {\n }", "public function delete()\n {\n \n }", "abstract public function shouldIDelete();", "public static function Delete(){\r\n }", "public function delete(){\n }", "function runDelete($repo)\n{\n $delBar = new ChocolateBar();\n $delBar->chocoID= 15;\n $repo->delete($delBar);\n}", "public function undeleteAction(){\n\t}", "public function onAfterDelete() {\n\t\tif (!$this->owner->ID || self::get_disabled() || self::version_exist($this->owner))\n\t\t\treturn;\n\t\t$this->onAfterDeleteCleaning();\n\t}", "public function hook_after_delete($id)\n\t{\n\t\t//Your code here\n\n\t}", "public function testDeleteOnDelete() {\n\t\t$Action = $this->_actionSuccess();\n\t\t$this->setReflectionClassInstance($Action);\n\t\t$this->callProtectedMethod('_delete', array(1), $Action);\n\t}", "public abstract function delete();", "public function delete($id)\n {\n echo 'in soft delete';\n }", "public function hookRemove(): void\n {\n $this->say(\"Executing the Plugin's remove hook...\");\n $this->_exec(\"php ./src/hook_remove.php\");\n }", "function delete() \n {\n \n }", "public function _postDelete()\n\t{\n\t\t$this->notifyObservers(__FUNCTION__);\n\t}", "protected function getDeleteAfterFunction()\n {\n \n }", "public function on_delete() {\n $this->remove_dir();\n }", "public function deleteAction() {\n \n }", "function delete() ;" ]
[ "0.75809413", "0.7532621", "0.7503631", "0.7313754", "0.7203162", "0.7144437", "0.7107244", "0.70676714", "0.7019121", "0.69946724", "0.69890517", "0.68953395", "0.6889198", "0.68829715", "0.6856732", "0.67988026", "0.6793627", "0.6789343", "0.678894", "0.6763313", "0.6734741", "0.6731551", "0.6728098", "0.6632017", "0.66218084", "0.6612909", "0.66009474", "0.6539826", "0.6535789", "0.6530067", "0.6494878", "0.6494878", "0.6494878", "0.6482438", "0.648006", "0.64796025", "0.6478835", "0.6478835", "0.6464539", "0.6454175", "0.64449775", "0.6441538", "0.64346117", "0.64321876", "0.64173216", "0.6393717", "0.638486", "0.6378942", "0.6371385", "0.635527", "0.6340473", "0.6338418", "0.6320743", "0.6307649", "0.6284926", "0.6264579", "0.62590677", "0.6257197", "0.62506646", "0.6239599", "0.6231019", "0.6227487", "0.62248206", "0.6224143", "0.62240344", "0.6221359", "0.6221359", "0.6221359", "0.6221359", "0.6221359", "0.6221359", "0.6221359", "0.6221359", "0.6221359", "0.6221359", "0.622078", "0.6208304", "0.6203862", "0.6201871", "0.62015754", "0.6175656", "0.6167961", "0.6154239", "0.61252886", "0.6118061", "0.61105096", "0.61047196", "0.6097016", "0.60935426", "0.6082762", "0.60806507", "0.60792804", "0.6078789", "0.60695386", "0.6055316", "0.60502344", "0.604181", "0.6040538" ]
0.68272233
17
/ | | Hook for execute command after delete public static function called |
public function hook_after_delete($id) { //Your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function after_delete() {}", "function after_delete() {}", "public function onAfterDelete();", "public function afterDeleteCommit(): void\n {\n }", "protected function afterDelete()\r\n {\r\n }", "protected function afterDelete()\n {\n }", "function call_delete() {\n parent::call_delete();\n }", "public function DELETE() {\n\t\t$this->scriptForceHint('DELETE');\n\t}", "public function Do_delete_Example1(){\n\n\t}", "abstract public function delete__do_process ();", "public function _delete()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }", "public function onBeforeDelete();", "public function preDelete() { }", "protected function delete() {\n\t}", "public function deleting()\n {\n # code...\n }", "public static function delete(){\r\n }", "protected function _postDelete() {}", "protected function _postDelete() {}", "function before_delete() {}", "protected function _delete()\n\t{\n\t}", "public function delete()\n\t{\n\t\t$this->plugin->setResponse('in delete');\n\t}", "public function delete(): void;", "public function delete() {}", "public function delete() {}", "public static function delete() {\r\n\t\t\r\n\t}", "public function delete() {}", "public function delete() {}", "public static function delete() {\n\n\n\t\t}", "public function delete(): void\n {\n }", "public function del()\n {\n }", "public function hook_after_delete($id) {\n\n }", "function delete() {\n\n }", "protected function _preDelete() {}", "function OnAfterDeleteItem(){\n }", "function delete() {\n }", "#[CLI\\Command(name: self::DELETE, aliases: ['wd-del', 'wd-delete', 'wd', 'watchdog-delete'])]\n #[CLI\\Argument(name: 'substring', description: 'Delete all log records with this text in the messages.')]\n #[CLI\\Option(name: 'severity', description: 'Delete messages of a given severity level.')]\n #[CLI\\Option(name: 'type', description: 'Delete messages of a given type.')]\n #[CLI\\Usage(name: 'drush watchdog:delete', description: 'Delete all messages.')]\n #[CLI\\Usage(name: 'drush watchdog:delete 64', description: 'Delete messages with id 64.')]\n #[CLI\\Usage(name: 'drush watchdog:delete \"cron run succesful\"', description: 'Delete messages containing the string \"cron run succesful\".')]\n #[CLI\\Usage(name: '@usage drush watchdog:delete --severity=Notice', description: 'Delete all messages with a severity of notice.')]\n #[CLI\\Usage(name: 'drush watchdog:delete --type=cron', description: 'Delete all messages of type cron.')]\n #[CLI\\ValidateModulesEnabled(modules: ['dblog'])]\n #[CLI\\Complete(method_name_or_callable: 'watchdogComplete')]\n #[CLI\\Bootstrap(level: DrupalBootLevels::FULL)]\n public function delete($substring = '', $options = ['severity' => self::REQ, 'type' => self::REQ]): void\n {\n if ($substring == 'all') {\n $this->output()->writeln(dt('All watchdog messages will be deleted.'));\n if (!$this->io()->confirm(dt('Do you really want to continue?'))) {\n throw new UserAbortException();\n }\n $ret = $this->connection->truncate('watchdog')->execute();\n $this->logger()->success(dt('All watchdog messages have been deleted.'));\n } elseif (is_numeric($substring)) {\n $this->output()->writeln(dt('Watchdog message #!wid will be deleted.', ['!wid' => $substring]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')->condition('wid', $substring)->execute();\n if ($affected_rows == 1) {\n $this->logger()->success(dt('Watchdog message #!wid has been deleted.', ['!wid' => $substring]));\n } else {\n throw new \\Exception(dt('Watchdog message #!wid does not exist.', ['!wid' => $substring]));\n }\n } else {\n if ((empty($substring)) && (!isset($options['type'])) && (!isset($options['severity']))) {\n throw new \\Exception(dt('No options provided.'));\n }\n $where = $this->where($options['type'], $options['severity'], $substring, 'OR');\n $this->output()->writeln(dt('All messages with !where will be deleted.', ['!where' => preg_replace(\"/message LIKE %$substring%/\", \"message body containing '$substring'\", strtr($where['where'], $where['args']))]));\n if (!$this->io()->confirm(dt('Do you want to continue?'))) {\n throw new UserAbortException();\n }\n $affected_rows = $this->connection->delete('watchdog')\n ->where($where['where'], $where['args'])\n ->execute();\n $this->logger()->success(dt('!affected_rows watchdog messages have been deleted.', ['!affected_rows' => $affected_rows]));\n }\n }", "protected function _postDelete()\n\t{\n\t}", "abstract public static function deleted($callback);", "public function hookRemove(): void\n {\n $this->say(\"Executing the Plugin's remove hook...\");\n $this->_exec(\"php ./src/hook_remove.php\");\n }", "public function delete() {\r\n }", "public function __doDelete()\n {\n $strSQL = $this->getDeleteSql();\n $result = $this->query($strSQL);\n }", "public function delete()\n\t{\n\t}", "public function onAfterDelete() {\r\n\t\tparent::onAfterDelete();\r\n\t\t$this->zlog('Delete');\r\n\t}", "public static function Delete(){\r\n }", "function delete()\r\n {\r\n\r\n }", "public function on_delete() {\n $this->remove_dir();\n }", "public function _postDelete()\n\t{\n\t\t$this->notifyObservers(__FUNCTION__);\n\t}", "public function delete()\r\n\t{\r\n\t}", "public function delete(): void\n {\n $this->instances->demo()->runHook($this->root(), 'delete:before', $this);\n\n Dir::remove($this->root());\n $this->instances->delete($this->id);\n\n $this->instances->demo()->runHook($this->root(), 'delete:after', $this);\n }", "public function delete() {\n\n }", "protected function MetaAfterDelete() {\n\t\t}", "function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n }", "public function delete()\n {\n //\n }", "function delete()\n {\n }", "public function delete()\n {\n\n }", "public function delete()\n {\n \n }", "public function delete(){\n }", "public function hook_before_delete($id) {\n\n }", "public function hook_after_delete($id)\n\t{\n\t\t//Your code here\n\n\t}", "public function delete()\n {\n $this->deleteOnExit = true;\n }", "public function hook_before_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_before_delete($id) {\n\t //Your code here\n\n\t }", "public function hook_before_delete($id) {\n\t //Your code here\n\n\t }", "public function delete()\n {\n \n }", "function runDelete($repo)\n{\n $delBar = new ChocolateBar();\n $delBar->chocoID= 15;\n $repo->delete($delBar);\n}", "protected function _predelete() {\n }", "function preDelete()\n {\n }", "function delete() ;", "function delete() ;", "public function undeleteAction(){\n\t}", "public function deleteWorklog(){\n\n }", "public function annimalDelAction()\n {\n }", "public abstract function delete();", "function delete() \n {\n \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();" ]
[ "0.7430672", "0.72017777", "0.7094648", "0.7057578", "0.68908", "0.6881042", "0.682726", "0.67957115", "0.6793121", "0.67586875", "0.67565364", "0.6751004", "0.6730998", "0.6719922", "0.6709285", "0.6692669", "0.66776067", "0.66774756", "0.6660317", "0.66437495", "0.6628623", "0.6604919", "0.65967757", "0.6596234", "0.65961856", "0.6595646", "0.6595646", "0.65886873", "0.65705186", "0.65564704", "0.65433836", "0.6508601", "0.6499052", "0.6484637", "0.6457443", "0.6456452", "0.6454628", "0.642686", "0.641921", "0.6396203", "0.638781", "0.63751507", "0.6371594", "0.63320965", "0.63295513", "0.6327024", "0.63223034", "0.6317827", "0.63112104", "0.6309444", "0.6295286", "0.62849396", "0.62826467", "0.62826467", "0.62826467", "0.62826467", "0.62826467", "0.62826467", "0.62826467", "0.62826467", "0.62826467", "0.62826467", "0.6273112", "0.6259095", "0.62542605", "0.6248866", "0.62462854", "0.62211514", "0.6218351", "0.6215491", "0.62151456", "0.62151456", "0.62151456", "0.62040824", "0.6196569", "0.6183834", "0.6166762", "0.61664224", "0.61664224", "0.61638296", "0.61607265", "0.615443", "0.61508316", "0.61231357", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908", "0.6111908" ]
0.65762585
30
By the way, you can still create your own method in here... :)
public function getSync() { ini_set('memory_limit', '256M'); // echo "<pre>"; // print_r($this->compare()); // echo "</pre>"; $compare = $this->compare(); if($compare->dataIn){ $insert = collect($compare->dataIn); $chunk = $insert->chunk(500); foreach ($chunk as $item) { DB::beginTransaction(); try{ DB::table("pegawai")->insert($item->toArray()); }catch (ValidationException $exception){ DB::rollback(); } DB::commit(); } } return CRUDBooster::redirect(CRUDBooster::mainPath(), trans('crudbooster.alert_success')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "public function custom()\n\t{\n\t}", "public function method() {\n\t}", "public function method();", "public function method();", "public function method();", "public function method();", "private function method1()\n\t{\n\t}", "private function method2()\n\t{\n\t}", "public function method()\n {\n\n }", "private function aFunc()\n {\n }", "public function someStuff()\n {\n \n }", "public function inOriginal();", "private function _i() {\n }", "public static function dummy() {}", "public function dummyMethod($arg)\n {\n }", "public function overload(): void;", "abstract public function otherfoo();", "protected function func_default() {}", "abstract protected function mini(): string;", "public function method() : string;", "protected function protected_method() {}", "function overload() { }", "function overload() { }", "public function aaa() {\n\t}", "private function private_method() {}", "public function getCustom();", "public function getCustom();", "public function getCustom();", "function metodo() {\n // Funcion normal\n }", "protected function test9() {\n\n }", "public function extension();", "public function some()\n {\n }", "function stringMethod()\n {\n// return 1;\n }", "abstract public function getPasiekimai();", "public function oops () {\n }", "abstract protected function external();", "function specialop() {\n\n\n\t}", "function fix() ;", "public function ex4()\n {\n }", "public function extension() {}", "protected abstract function test();", "protected abstract function test();", "public function wrong() {\n\n }", "private function static_things()\n\t{\n\n\t\t# code...\n\t}", "public function extra();", "private function __() {\n }", "public static function getCode()\n\t{\n\t\tthrow new NotImplementedException;\n\t}", "function PrimaryReturn($otype){\r\n}", "public function xxxxx(){\n\n }", "abstract protected function appliesTo(): string;", "public function deprecatedMethod () {}", "public function nadar()\n {\n }", "abstract public function test();", "abstract public function test();", "public function __construct()\r\n\t{\r\n\t\techo \"Implements Function overloading\";\r\n\t}", "abstract protected function content();", "private final function __construct() {}", "abstract protected function getFunctionName(): string;", "abstract function get();", "public function f() {}", "function get_result($item)\n {\n }", "function __toString() ;", "function __toString() ;", "public abstract function Ataca();", "public function example();", "abstract public function get() ;", "public function elso()\n {\n }", "function do_something($something) {\r\n // Place your new code here\r\n }", "public function temporality();", "public function publicFunction();", "public function methods();", "protected function fixSelf() {}", "protected function fixSelf() {}", "public function __invoke()\n {\n }", "protected abstract function applyNoArg();", "public function testSpecial(): void {\n\t}", "abstract protected function doEvil();", "final private function __construct() {}", "final private function __construct() {}", "public function masodik()\n {\n }", "public function aa()\n {\n }", "public function test_method()\n\t{\n\n\t}", "function __return_null()\n {\n }", "public function get_method()\n {\n }", "public function __invoke()\n {\n\n }", "public function AggiornaPrezzi(){\n\t}", "public function f()\n {\n }", "function custom_construction() {\r\n\t\r\n\t\r\n\t}", "public function withReturn();", "function getMethod()\r\n {\r\n }", "public abstract function getInfo () : string;", "public function liberar() {}", "abstract public function __toString() ;", "public function alterMeToo()\n {\n return \"fantabulous\";\n }", "abstract public function is_have();", "private function __construct() {}", "protected function _toHtml()\n{\n// use arguments like $this->getMyParam1() , $this->getAnotherParam()\n \nreturn $html;\n}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.6391442", "0.6297879", "0.62841904", "0.62697583", "0.62697583", "0.62697583", "0.62697583", "0.61493826", "0.6146471", "0.5987225", "0.5896743", "0.58795184", "0.5847733", "0.57793164", "0.5687407", "0.56681395", "0.5659589", "0.56235826", "0.5592321", "0.55898976", "0.5579965", "0.55637395", "0.55614895", "0.55614895", "0.555963", "0.55314624", "0.55274314", "0.55274314", "0.55274314", "0.5525572", "0.55239177", "0.55040765", "0.55025834", "0.5476487", "0.54691243", "0.5468555", "0.54683083", "0.5444229", "0.542301", "0.5408361", "0.54025704", "0.5396525", "0.5396525", "0.53703386", "0.53339773", "0.53168434", "0.53061175", "0.530609", "0.5298526", "0.5271574", "0.52680796", "0.5267794", "0.5254076", "0.52540314", "0.52540314", "0.52512294", "0.5244086", "0.5243204", "0.52408576", "0.5225813", "0.5225266", "0.5219306", "0.5216219", "0.5216142", "0.52153265", "0.5211047", "0.5210424", "0.52032083", "0.520092", "0.51982737", "0.5195248", "0.519337", "0.5182944", "0.5182944", "0.51822853", "0.5168967", "0.51623297", "0.5160873", "0.51531535", "0.51531535", "0.5148955", "0.5145992", "0.51411223", "0.513811", "0.51367223", "0.51340467", "0.51338303", "0.51286805", "0.51283914", "0.5126046", "0.5124347", "0.51199406", "0.51069283", "0.5104023", "0.50978583", "0.50894934", "0.5087723", "0.50866365", "0.5085715", "0.5085715", "0.5085715" ]
0.0
-1
Test if command rejects invalid job type.
public function testInvalidJobTypeExit() { $application = new Application(); $application->add($this->command); $command = $application->find('dequeue'); $command_tester = new CommandTester($command); $command_tester->execute([ 'command' => $command->getName(), 'type' => get_class($this), ]); $this->assertEquals(1, $command_tester->getStatusCode()); $this->assertStringContainsString('Valid job class expected', $command_tester->getDisplay()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validateCommand() : bool\n {\n $format = $this->argument('format');\n\n if (!$this->isValidFormat($format)) {\n $this->error(\"Error: Format not supported.\");\n $this->info(\"Supported formats: \" . join(', ', array_keys(static::getFormatsMap())));\n return false;\n }\n\n return true;\n }", "private function validateCommandNumber (\n int $command\n ): bool\n {\n return in_array($command, [\n self::COMMAND_ADD,\n self::COMMAND_MULTIPLY,\n self::COMMAND_HALT\n ]);\n }", "public function testAbortBadType()\n\t{\n\t\t$this->object->pushStep(array('type' => 'badstep'));\n\n\t\t$this->assertFalse(\n\t\t\t$this->object->abort(null, false)\n\t\t);\n\t}", "public function testCommandWithReportConfigurationInvalid(): void\n {\n $process = $this->phpbench(\n 'run --report=\\'{\"name\": \"foo_ta\\' benchmarks/set4/NothingBench.php'\n );\n $this->assertExitCode(1, $process);\n $this->assertStringContainsString('Parse error', $process->getErrorOutput());\n }", "public function cli_validateArgs() {}", "public function test_validate_input_for_role_job()\n {\n /*\n $job = new ValidateInputForRoleJob( [ 'role_name' => null ] ); \n $this->expectExceptionMessage( 'Role name is required' );\n $job->handle();\n */\n /*\n $job = new ValidateInputForRoleJob( [ 'role_name' => '' ] ); \n $this->expectExceptionMessage( 'contains invalid characters' );\n $job->handle();\n */\n /*\n $job = new ValidateInputForRoleJob( [ 'role_name' => '@#½½~¬' ] ); \n $this->expectExceptionMessage( 'contains invalid characters' );\n $job->handle();\n */\n $validInput = [ 'role_name' => 'admin' ];\n $job = new ValidateInputForRoleJob( $validInput ); \n $this->assertEquals( $job->handle(), $validInput );\n }", "public function testExecuteWithInvalidAmountMessages()\n {\n $commandTester = $this->createCommandTester(new WorkerCommand());\n\n $this->expectException(\\InvalidArgumentException::class);\n $commandTester->execute([\n 'name' => 'basic_queue',\n '--messages' => -1\n ]);\n }", "public function redis_Scripting_script_invalid_command()\n {\n // Start from scratch\n $this->assertGreaterThanOrEqual(0, $this->redis->delete($this->key));\n $this->expectException(ScriptCommandException::class);\n $this->assertEquals(1, $this->redis->script('return'));\n }", "protected function check_type()\n {\n $regex = \"/^int$|^bool$|^string$/\";\n\n $result = preg_match($regex, $this->token);\n\n if($result == 0 or $result == FALSE)\n {\n fwrite(STDERR, \"Error, expecting <type> function parameter! Line: \");\n fwrite(STDERR, $this->lineCount);\n fwrite(STDERR, \"\\n\");\n exit(23);\n } \n }", "public function test_lti_build_content_item_selection_request_invalid_tooltype() {\n $this->resetAfterTest();\n\n $this->setAdminUser();\n $course = $this->getDataGenerator()->create_course();\n $returnurl = new moodle_url('/');\n\n // Should throw Exception on non-existent tool type.\n $this->expectException('moodle_exception');\n lti_build_content_item_selection_request(1, $course, $returnurl);\n }", "private function hasValidCommand($input) {\n\t\treturn $this->isAddCommand($input) || $this->isUpdateCommand($input) || $this->isDeleteCommand($input);\n\t}", "public function validateAndParseArgs() {\n $areParamsValid = true;\n \n // Validate Command\n if(!in_array($this->cmd, $this->validCommands)) {\n throw new \\Exception(\"Invalid Command '\" . $this->cmd . \"'.\");\n }\n \n // Validate Command Parameters\n switch($this->cmd) {\n case 'add':\n // Param order should be: pet_type, item_type, name, color, lifespan, age, price\n if(count($this->cmdParams) !== 7) { $areParamsValid = false; }\n if(!is_numeric($this->cmdParams[4]) || !is_numeric($this->cmdParams[5]) || !is_numeric($this->cmdParams[6])) {\n $areParamsValid = false;\n }\n // Do not allow negative values\n if($this->cmdParams[4][0] === \"-\" || $this->cmdParams[5][0] === \"-\" || $this->cmdParams[6][0] === \"-\") {\n $areParamsValid = false;\n }\n break;\n case 'update':\n // Param order should be: id, pet_type, item_type, name, color, lifespan, age, price\n if(count($this->cmdParams) !== 8) { $areParamsValid = false; }\n if(!is_numeric($this->cmdParams[0]) || !is_numeric($this->cmdParams[5]) || !is_numeric($this->cmdParams[6]) || !is_numeric($this->cmdParams[7])) {\n $areParamsValid = false;\n }\n // Do not allow negative values\n if($this->cmdParams[5][0] === \"-\" || $this->cmdParams[6][0] === \"-\" || $this->cmdParams[7][0] === \"-\") {\n $areParamsValid = false;\n }\n break;\n case 'delete':\n if(count($this->cmdParams) !== 1) { $areParamsValid = false; }\n if(!is_numeric($this->cmdParams[0])) {\n $areParamsValid = false;\n }\n break;\n case 'list':\n // 'list' can come with a 'sort' and/or 'filter parameter\n if(isset($this->cmdParams[0])) {\n if($this->cmdParams[0] === \"filters\") {\n $this->arg_list_filters = ((isset($this->cmdParams[1])) ? $this->cmdParams[1] : null);\n } elseif($this->cmdParams[0] === \"sort\") {\n $this->arg_list_sort = ((isset($this->cmdParams[1])) ? $this->cmdParams[1] : null);\n } else {\n $areParamsValid = false;\n }\n }\n if(isset($this->cmdParams[2])) {\n if($this->cmdParams[2] === \"filters\") {\n $this->arg_list_filters = ((isset($this->cmdParams[3])) ? $this->cmdParams[3] : null);\n } elseif($this->cmdParams[2] === \"sort\") {\n $this->arg_list_sort = ((isset($this->cmdParams[3])) ? $this->cmdParams[3] : null);\n } else {\n $areParamsValid = false;\n }\n }\n break;\n case 'help':\n break;\n default:\n throw new \\Exception(\"This line should not have been reached; bug in code.\");\n }\n \n if(!$areParamsValid) {\n throw new \\Exception(\"Invalid parameters passed to script.\");\n }\n }", "public function fails();", "public function fails();", "public function isValidCommand($command)\n {\n $validCommands = [self::CMD_PLACE, self::CMD_MOVE, self::CMD_RIGHT, self::CMD_LEFT, self::CMD_REPORT, self::CMD_EXIT];\n return (in_array(strtoupper($command), $validCommands));\n }", "public function test_with_invalid_number_drain()\n {\n $this->artisan('play:game')\n ->expectsQuestion('Enter A team players:', '18,20,50,40')\n ->expectsQuestion('Enter B team players:', '35, 10, 30, 20, 90')\n ->expectsOutput(\"Match can not play 5 players allowed each team\")\n ->assertExitCode(0);\n }", "function is_ok_smtp ($cmd = \"\"){\n\t\tif(empty($cmd))\t\t\t\t{ return false; }\n\t\tif (ereg (\"^220\", $cmd))\t{ return true; }\n\t\tif (ereg (\"^250\", $cmd))\t{ return true; }\n\t\treturn false;\n\t}", "public function testFalseType()\n {\n $validator=new Validator();\n $result=$validator->type(\"10000\");\n $this->assertFalse($result[0]);\n $this->assertEquals('Type is not valid.',$result[1]);\n }", "protected function illegal_data_error() {\r\n\t\treturn new Status(tr('Illegal Command Data for Command %cmd%', 'core', array('%cmd%' => get_class($this))));\r\n\t}", "private static function validateJob($class, $queue)\n\t{\n\t\tif (empty($class)) {\n\t\t\tthrow new Resque_Exception('Jobs must be given a class.');\n\t\t}\n\t\telse if (empty($queue)) {\n\t\t\tthrow new Resque_Exception('Jobs must be put in a queue.');\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function testValidateThrowEmptyNoneProtechDataException()\n {\n $this->job->setMapper($this->createMock(Mapper::class));\n\n $this->job->setCsvData([['Name'], ['test']]);\n\n $this->job->getMapper()->expects($this->exactly(1))->method('checkRequiredProperties')->willReturn(true);\n $this->job->getMapper()->expects($this->exactly(1))->method('checkRequiredValidations')->willReturn(true);\n $this->job->getMapper()->expects($this->exactly(1))->method('checkNoneProtectionData')->willReturn(false);\n\n try {\n $this->job->validate();\n } catch (\\Exception $e) {\n $this->assertContains(EntityException::MGS_EMPTY_NONE_PROTECTION_DATA, $e->getMessage());\n }\n }", "public function testIsValidTypeInvalid()\n {\n $this->assertFalse($this->annotation->isValidType('INVALID'));\n }", "public function testValidateFormMalformed()\n {\n $formData = ['jelly'];\n $this->expectException(TypeError::class);\n $case = GRUB\\Validator\\Validator::validateIngredient($formData);\n }", "public function testExecuteWithBadFile()\n {\n\n $this->commandTester->execute(\n array(\n 'file_path' => __DIR__. '/../Fixtures/stockd.csv',\n '--test_run' => true,\n )\n );\n// $this->assertEquals('File could not be found.' . PHP_EOL, $this->commandTester->getDisplay());\n $this->assertRegexp('/File could not be found./', $this->commandTester->getDisplay());\n\n }", "private function __validate_shell_cmd() {\n if ($this->initial_data[\"shell_cmd\"]) {\n $this->validated_data[\"shell_cmd\"] = strval($this->initial_data[\"shell_cmd\"]);\n } else {\n $this->errors[] = APIResponse\\get(7000);\n }\n }", "protected function validateSelectablePluginType() {\n if (!$this->selectablePluginType) {\n throw new \\RuntimeException('A plugin type must be set through static::setSelectablePluginType() first.');\n }\n }", "public function isMenuItemValidBlankCallExpectFalse() {}", "public function validate(array $args): bool\n {\n // Ensure that the array has a 'status' key.\n if (!array_key_exists('status', $args))\n {\n throw new InvalidArgumentException('Error - status is missing');\n }\n // Ensure that the supplied status is a string.\n else if (!is_string($args['status']))\n {\n throw new InvalidArgumentException('Error - invalid data type supplied for status, string expected.');\n }\n // Ensure that the supplied status is on the list of allowed payment status values.\n else if (!in_array($args['status'], $this->allowedStatusValues))\n {\n throw new InvalidArgumentException('Error - Payment status \"' . $args['status'] . '\" is invalid.');\n }\n\n return true;\n }", "public function testExecuteWithNonExistingQueue()\n {\n $commandTester = $this->createCommandTester(new WorkerCommand());\n\n $this->expectException(\\InvalidArgumentException::class);\n $commandTester->execute([\n 'name' => 'non-existing-queue'\n ]);\n }", "private function validateSendmail(): void\n {\n if (!isset($this->options['command'])) {\n throw new InvalidArgumentException('Missing command for sendmail transport');\n }\n }", "public function test_lti_build_content_item_selection_request_invalid_mediatypes() {\n $this->resetAfterTest();\n\n $this->setAdminUser();\n\n // Create a tool type, associated with that proxy.\n $type = new stdClass();\n $data = new stdClass();\n $data->lti_contentitem = true;\n $type->state = LTI_TOOL_STATE_CONFIGURED;\n $type->name = \"Test tool\";\n $type->description = \"Example description\";\n $type->baseurl = $this->getExternalTestFileUrl('/test.html');\n\n $typeid = lti_add_type($type, $data);\n $course = $this->getDataGenerator()->create_course();\n $returnurl = new moodle_url('/');\n\n // Should throw coding_exception on non-array media types.\n $mediatypes = 'image/*,video/*';\n $this->expectException('coding_exception');\n lti_build_content_item_selection_request($typeid, $course, $returnurl, '', '', $mediatypes);\n }", "public static function PrintInvalidCommand(){\r\n echo \"Invalid command usage. Run phartools -h or phartools ? to show help.\\n\";\r\n }", "public function testValidateOptions(): void\n {\n $commandLineOptions = [\n CommandLineOptions::FILE_NAME_LONG_OPTION => 'tests/unit/resources/example-input.txt',\n CommandLineOptions::DAY_LONG_OPTION => '11/11/18',\n CommandLineOptions::TIME_LONG_OPTION => '11:00',\n CommandLineOptions::LOCATION_LONG_OPTION => 'NW43QB',\n CommandLineOptions::COVERS_LONG_OPTION => '20'\n ];\n\n $validOptions = $this->mCommandLineOptions->validateOptions($commandLineOptions);\n $this->assertTrue($validOptions);\n }", "static function isCredentialsValidErrorMessageForJob( $jobId ) {\n\n if (substr(php_uname(), 0, 7) != \"Windows\") {\n $logDirectory = get_option( 'hbo_log_directory' );\n if( empty($logDirectory )) {\n throw new ValidationException( \"log_directory not specified\" );\n }\n\n $command = \"grep -q 'Current credentials not valid' $logDirectory/job-$jobId.txt\";\n $returnval = 0;\n $output = array();\n exec( $command, $output, $returnval );\n if ( $returnval == 0 ) {\n return true;\n }\n\n $command = \"grep -q 'Incorrect password' $logDirectory/job-$jobId.txt\";\n exec( $command, $output, $returnval );\n if ( $returnval == 0 ) {\n return true;\n }\n }\n return false;\n }", "public function testOptionsNotFound()\n {\n $this->_task->execute();\n }", "public function testIsOperationInvalid()\n {\n $this->assertFalse($this->annotation->isValidOperation('INVALID'));\n }", "public function testModeThrowsInvalidType(): void\n {\n $this->expectException(InvalidModeTypeException::class);\n\n new RequestBodyObject(['mode' => 'invalid-mode']);\n }", "public function testForceDisabled()\n {\n $command = new TypeUpdateCommand();\n $app = new Application();\n $app->add($command);\n\n $commandToTest = $app->find('es:type:update');\n $commandTester = new CommandTester($commandToTest);\n $result = $commandTester->execute(\n [\n 'command' => $command->getName(),\n ]\n );\n\n $this->assertEquals(1, $result);\n }", "public function isButtonValidInvalidButtonGivenExpectFalse() {}", "public function isButtonValidBrokenSetupInvalidButtonAsSecondParametersGivenExpectFalse() {}", "public function testCommandError()\n {\n $timestamp = 1326670266.115;\n $datestamp = new \\DateTime();\n $datestamp->setTimestamp($timestamp);\n\n $attributes = ['scheduledEventId' => 123456];\n $event_id = 'test_'.rand(10000, 99999);\n\n $history = new WorkflowHistory();\n $command = new ActivityTaskStartedCommand($datestamp, $attributes, $event_id);\n\n $command->apply($history);\n }", "public function isNotError() : bool\n {\n return in_array($this->getCode(), [self::CANCELLED, self::FAILED]);\n }", "public function testChmod_invalidString()\n {\n $warnings = array();\n set_error_handler(function ($code, $message) use (&$warnings) { $warnings[] = compact('code', 'message'); }, E_USER_NOTICE | E_USER_WARNING);\n \t\n \t$this->setExpectedException('Q\\ExecException');\n \t$this->Fs_Node->chmod('incorrect mode');\n }", "public function testIsValidFailing()\n {\n $this->assertFalse($this->helper->isValid('s1', 15));\n $this->assertFalse($this->helper->isValid('s2', true));\n $this->assertFalse($this->helper->isValid('i1', 12.1));\n $this->assertFalse($this->helper->isValid('i2', 'eleven'));\n $this->assertFalse($this->helper->isValid('i3', 12.6));\n $this->assertFalse($this->helper->isValid('i4', -2));\n $this->assertFalse($this->helper->isValid('i5', 83));\n $this->assertFalse($this->helper->isValid('i6', false));\n $this->assertFalse($this->helper->isValid('f1', 12));\n $this->assertFalse($this->helper->isValid('f2', [12.67]));\n $this->assertFalse($this->helper->isValid('f3', 13.0));\n $this->assertFalse($this->helper->isValid('b', [true]));\n $this->assertFalse($this->helper->isValid('b', 0));\n $this->assertFalse($this->helper->isValid('a', 'blue'));\n $this->assertFalse($this->helper->isValid('m', 'true'));\n $this->assertFalse($this->helper->isValid('m', false));\n $this->assertFalse($this->helper->isValid('r', 'memb3rType'));\n }", "public function failed()\n {\n // Called when the job is failing...\n }", "public function test_bad_option_names($empty) {\n $this->assertFalse( yourls_get_option( $empty ) );\n $this->assertFalse( yourls_add_option( $empty, '' ) );\n $this->assertFalse( yourls_update_option( $empty, '' ) );\n $this->assertFalse( yourls_delete_option( $empty ) );\n\t}", "#[@test, @ignore('Out of office assigned to :mime tag due to parser')]\n public function withMime() {\n $action= $this->parseCommandSetFrom('\n if true { \n vacation :mime \"Out of office\";\n }\n ')->commandAt(0)->commands[0];\n $this->assertClass($action, 'peer.sieve.action.VacationAction');\n $this->assertTrue($action->mime);\n $this->assertEquals('Out of office', $action->reason);\n }", "function is_invalid($err)\n{\n // TODO: megírni. Csak akkor printelje ki a hiba-class-t ha tényleg hibás a mező\n if (!$err == null)\n echo $err . ' is-invalid';\n}", "public function testValidateThrowDataMissingException()\n {\n try {\n $this->job->validate();\n } catch (\\Exception $e) {\n $this->assertEquals($e->getMessage(), JobException::MSG_JOB_DATA_MISSING);\n }\n }", "public function testIfProcessCreationWithInvalidFormatThrowsTheRightException()\n {\n $this->setExpectedException('CloudConvert\\Exceptions\\ApiException', 'This conversiontype is not supported!', 400);\n $this->setExpectedException('CloudConvert\\Exceptions\\ApiBadRequestException', 'This conversiontype is not supported!', 400);\n\n $this->api->createProcess(array(\n 'inputformat' => 'invalid',\n 'outputformat' => 'pdf',\n ));\n }", "public function testSetGetCommandFailure()\n {\n $command = new \\stdClass();\n\n $subject = $this->createInstance();\n $_subject = $this->reflect($subject);\n\n $this->setExpectedException('InvalidArgumentException');\n $_subject->_setCommand($command);\n }", "private function hasValidIdentifier($input) {\n\t\t$post = $this->getPostByJobId($input);\t\n\n\t\tif($this->isAddCommand($input)) {\n\t\t\tif($post) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if($this->isUpdateCommand($input) || $this->isDeleteCommand($input)) {\n\t\t\tif($post) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public function fails(): bool {\r\n return !$this -> execute();\r\n }", "public function validateType()\n {\n $validTalkTypes = $this->getOption('types');\n\n if (empty($this->_cleanData['type']) || !isset($this->_cleanData['type'])) {\n $this->_addErrorMessage(\"You must choose what type of talk you are submitting\");\n\n return false;\n }\n\n if (!isset($validTalkTypes[$this->_cleanData['type']])) {\n $this->_addErrorMessage(\"You did not choose a valid talk type\");\n\n return false;\n }\n\n return true;\n }", "public function isFailure(): bool;", "public function testExecuteSingleValidatorFail()\n {\n $init = '123456789';\n $str = new \\Pv\\PString($init, array('numeric', 'length[0,5]'));\n\n $result = $str->validate(1);\n }", "public function testUpdateInvalidInput(): void\n {\n $job = factory(JobPoster::class)->create();\n $jobUpdate = $this->generateFrontendJob($job->manager_id, false);\n $jobUpdate['term_qty'] = 'three months'; // String is invalid here.\n $response = $this->actingAs($job->manager->user)\n ->json('put', \"$this->baseUrl/jobs/$job->id\", $jobUpdate);\n $response->assertStatus(422);\n }", "private function assertValidCommandLineLength(string $cmd): void\n {\n if (DIRECTORY_SEPARATOR === '\\\\') {\n // @codeCoverageIgnoreStart\n // symfony's process wrapper\n $cmd = 'cmd /V:ON /E:ON /C \"(' . $cmd . ')';\n if (strlen($cmd) > 32767) {\n throw new RuntimeException('Command line is too long, try to decrease max batch size');\n }\n\n // @codeCoverageIgnoreEnd\n }\n\n /*\n * @todo Implement command line length validation for linux/osx/freebsd.\n * Please note that on unix environment variables also became part of command line:\n * - linux: echo | xargs --show-limits\n * - osx/linux: getconf ARG_MAX\n */\n }", "function failUnlessExtensionArgs($expected_args)\n {\n $expected_args['mode'] = $this->msg->mode;\n $this->assertEquals($expected_args, $this->msg->getExtensionArgs());\n }", "public function mimeTypeValid()\n\t{\n\t\tif (!in_array($this->files['type'], $this->mime_types)) {\n\t\t\tthrow new Exception(\"Invalid file Extension\",6);\n\t\t}\n\t}", "protected function isValidArguments()\n {\n if (empty($this->inputFile))\n throw new MissingArgumentException(\"Input file is required.\");\n\n if (empty($this->outputFile))\n throw new MissingArgumentException(\"Output file is required.\");\n\n if (empty($this->beginTime))\n throw new MissingArgumentException(\"Begin time is required.\");\n\n if (empty($this->endTime))\n throw new MissingArgumentException(\"End time is required.\");\n\n return true;\n }", "protected function checkInvalidSqlModes() {}", "public function testGetIdentifierTypesSpecificationWithInvalidGroupName(): void\n {\n $this->expectException(Exception::class);\n $this->expectExceptionMessageMatches('~file.+was not found~i');\n\n $this->instance::getIdentifierTypesSpecification('foo bar');\n }", "public function isLastPartOfStringReturnsInvalidArgumentDataProvider() {}", "public function isMenuItemValidOmittedTitleExpectFalse() {}", "public function isInvalid(): bool;", "public static function userBadChoice()\n {\n say('Invalid entry, please try again');\n }", "public function validate(): CommandResultInterface\n {\n }", "protected final function CheckFormat(&$data)\n {\n if ($data[1] != \"Receiver\" && $data[2] != \"Transmitter\") \n ExHandler::Error500(\"Vue files must contain 'Receiver' and 'Transmitter' in cells B:1 and C:1 respectively.\");\n }", "protected function validateOrThrow() {}", "public function testAnotherInvalidSyntax(): void\n {\n $this->expectException(ParserException::class);\n $this->expectExceptionMessage('Invalid Roman');\n $this->expectExceptionCode(ParserException::INVALID_ROMAN);\n\n $this->parser->parse([Grammar::T_X, Grammar::T_X, Grammar::T_C]);\n }", "public function isMenuValidBlankCallExpectFalse() {}", "function is_ok_pop3 ($cmd = \"\"){\n\t\t//\tReturn true or false on +OK or -ERR\n\t\tif(empty($cmd))\t\t\t\t{ return false; }\n\t\tif (ereg (\"^\\+OK\", $cmd))\t{ return true; }\n\t\treturn false;\n\t}", "function _check_command($return = false)\n\t{\n\t\t$response = '';\n\n\t\tdo\n\t\t{\n\t\t\t$result = @fgets($this->connection, 512);\n\t\t\t$response .= $result;\n\t\t}\n\t\twhile (substr($result, 3, 1) !== ' ');\n\n\t\tif (!preg_match('#^[123]#', $response))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn ($return) ? $response : true;\n\t}", "function check_failures($parameters) \n\t{ \n\t\tif($this->has_type($parameters, 'cancel_principal')\n\t\t || $this->has_type($parameters, 'card_cancel_principal')\n\t\t)\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}", "public function testImportingQueueEngineFailure(): void\n {\n $this->expectException('\\InvalidArgumentException');\n\n Queue::setConfig('fail', []);\n Queue::engine('fail');\n }", "protected function cvFail($cmd) {\n $p = Process::runFail($this->cv($cmd));\n return $p->getErrorOutput() . $p->getOutput();\n }", "static function isExistsIncompleteJobOfType( $jobName ) {\n global $wpdb;\n $resultset = $wpdb->get_results($wpdb->prepare(\n \"SELECT job_id\n FROM wp_lh_jobs\n WHERE classname = %s \n AND status IN ( %s, %s )\", $jobName, self::STATUS_SUBMITTED, self::STATUS_PROCESSING ));\n\n return ! empty( $resultset ); \n }", "function is_ok($cmd = \"\")\n {\n }", "public function testInvalidConfig(): void\n {\n $result = $this->check->run('Books', [ 'icon_bad_values' => ['cube'], 'display_field_bad_values' => [\"title2\"] ]);\n $result = $this->check->getErrors();\n\n $this->assertTrue(is_array($result), \"getErrors() returned a non-array result\");\n $this->assertContains('[Books][config] parse : [/table/icon]: Matched a schema which it should not', $result);\n $this->assertContains('[Books][config] parse : [/table/display_field]: Matched a schema which it should not', $result);\n }", "function et_job_apply_validate ( $email, $job ) {\n\t// valid email\n\tif( !et_validate('email', $email))\n\t\treturn array ('success' => false, 'msg' => __('Your email address is invalid!', ET_DOMAIN));\n\t// valid job\n\tif(get_post_status($job) != 'publish')\n\t\treturn array ('success' => false, 'msg' => __('This job is not available for application yet!', ET_DOMAIN));\n\t// validate job and email\n\t$wp_query\t=\tnew WP_Query( array (\n\t\t\t\t\t\t\t\t\t'post_parent' => $job,\n\t\t\t\t\t\t\t\t\t'post_type' => 'application',\n\t\t\t\t\t\t\t\t\t'meta_key'\t=>\t'et_emp_email',\n\t\t\t\t\t\t\t\t\t'meta_value'=> $email\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\tif( $wp_query->have_posts() )\n\t\treturn array ('success' => false, 'msg' => __('This email address has already been used to apply for this job.', ET_DOMAIN));\n\treturn array ('success' => true, 'msg' => __('Valid!', ET_DOMAIN));;\n}", "public function testValidateThrowMissingIdException()\n {\n $this->job->setMapper($this->createMock(Mapper::class));\n\n $this->job->setCsvData([['Name', 'Id'], ['test', 'IdTest']]);\n\n try {\n $this->job->validate();\n } catch (\\Exception $e) {\n $this->assertContains(JobException::MSG_UPSERT_DATA_CANNOT_HAVE_ID_ASSIGNED, $e->getMessage());\n }\n\n $this->job->setExternalId('');\n\n try {\n $this->job->validate();\n } catch (\\Exception $e) {\n $this->assertContains(JobException::MSG_EXTERNAL_ID_FIELD_IS_REQUIRED, $e->getMessage());\n }\n }", "public function failed();", "public function _failed(AcceptanceTester $I)\n {\n $command = 'echo \"%s\" | mail -s \"%s\" -A %s %s';\n $command = sprintf($command, self::MAIL_TEXT, $this->getMailSubjekt(), $this->getScreenShotFile(), self::MAIL_TO);\n $I->runShellCommand($command);\n }", "#[@test]\n public function doesMatch_should_return_false_on_differentTypes() {\n $this->sut->setArguments(array('1'));\n\n $this->assertFalse($this->sut->doesMatchArgs(array(1)));\n }", "public function testInvalidConfig()\n {\n $config = array(\n 'invalidArg' => TRUE,\n );\n\n $result = self::processFilter($config, self::$request);\n }", "public function testIsMultiTypeInvalid()\n {\n $this->assertFalse($this->annotation->isMultiValuedType(Field::TYPE_BOOLEAN));\n }", "public function testValidationCaseForInvalidTypeOfKeyExpansionServicePassedOnInitialization()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\RuntimeException::class);\n\n $protocol = new KeyExchange(null);\n } else {\n $hasThrown = null;\n\n try {\n $protocol = new KeyExchange(null);\n } catch (\\RuntimeException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "function is_valid_type($type){\n\t\treturn in_array($type, $this->valid_types);\n\t}", "protected function validateType($type)\n {\n if (!isset($this->types[$type]))\n {\n throw new InvalidArgumentException('Hibas tipus: ' . $type);\n }\n }", "protected function isApplyProcessError()\n {\n return in_array($this->reader->getStatusCode(), self::APPLY_PROCESS_ERROR, true);\n }", "public function testAddCommandNegative()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->calc->addCommand(null, $this->getCommandMock());\n }", "public function extensionValid() \n\t{\n\t\tif (!in_array($this->extension_of_file, $this->file_types)) //{\n\t\t\tthrow new Exception(\"Invalid file Extension\",5);\n\t\t//}\n\t}", "public function testUndefinedType()\n {\n /** @var Container|\\PHPUnit_Framework_MockObject_MockObject $containerMock */\n $containerMock = $this->getMockBuilder('Symfony\\Component\\DependencyInjection\\Container')\n ->setMethods(['getParameter', 'get', 'has'])\n ->disableOriginalConstructor()\n ->getMock();\n $containerMock->expects($this->any())->method('getParameter')->willReturn([]);\n $containerMock->expects($this->any())->method('get')->willReturnSelf();\n $containerMock->expects($this->any())->method('has')->will($this->returnValue(true));\n $command = new TypeUpdateCommand();\n $command->setContainer($containerMock);\n\n $app = new Application();\n $app->add($command);\n\n $commandToTest = $app->find('es:type:update');\n $commandTester = new CommandTester($commandToTest);\n $result = $commandTester->execute(\n [\n 'command' => $command->getName(),\n '--force' => true,\n '--type' => 'unkown',\n ]\n );\n\n $this->assertEquals(2, $result);\n }", "public function testValidateThrowMissingColumnException()\n {\n $this->job->setCsvData([['Id'], ['test', 'test2']]);\n\n try {\n $this->job->validate();\n } catch (\\Exception $e) {\n $this->assertEquals($e->getMessage(), EntityException::MGS_CSV_ROW_COUNT_MISMATCH);\n }\n }", "function fails() {\n return !($this->startValidation());\n }", "public function validateCommand($type = NULL, $path = NULL) {\n\t\t$availableConfigurationTypes = $this->configurationManager->getAvailableConfigurationTypes();\n\n\t\tif (in_array($type, $availableConfigurationTypes) === FALSE) {\n\t\t\tif ($type !== NULL) {\n\t\t\t\t$this->outputLine('<b>Configuration type \"%s\" was not found!</b>', array($type));\n\t\t\t\t$this->outputLine();\n\t\t\t}\n\t\t\t$this->outputLine('<b>Available configuration types:</b>');\n\t\t\tforeach ($availableConfigurationTypes as $availableConfigurationType) {\n\t\t\t\t$this->outputLine(' ' . $availableConfigurationType);\n\t\t\t}\n\t\t\t$this->outputLine();\n\t\t\t$this->outputLine('Hint: <b>%s configuration:validate --type <configurationType></b>', array($this->getFlowInvocationString()));\n\t\t\t$this->outputLine(' validates the configuration of the specified type.');\n\t\t\treturn;\n\t\t}\n\n\t\t$configuration = $this->configurationManager->getConfiguration($type);\n\n\t\t$this->outputLine('<b>Validating configuration for type: \"' . $type . '\"' . (($path !== NULL) ? ' and path: \"' . $path . '\"': '') . '</b>');\n\n\t\t\t// find schema files for the given type and path\n\t\t$schemaFileInfos = array();\n\t\t$activePackages = $this->packageManager->getActivePackages();\n\t\tforeach ($activePackages as $package) {\n\t\t\t$packageKey = $package->getPackageKey();\n\t\t\t$packageSchemaPath = \\TYPO3\\Flow\\Utility\\Files::concatenatePaths(array($package->getResourcesPath(), 'Private/Schema'));\n\t\t\tif (is_dir($packageSchemaPath)) {\n\t\t\t\t$packageSchemaFiles = \\TYPO3\\Flow\\Utility\\Files::readDirectoryRecursively($packageSchemaPath, '.schema.yaml');\n\t\t\t\tforeach ($packageSchemaFiles as $schemaFile) {\n\t\t\t\t\t$schemaName = substr($schemaFile, strlen($packageSchemaPath) + 1, -strlen('.schema.yaml'));\n\t\t\t\t\t$schemaNameParts = explode('.', str_replace('/', '.' ,$schemaName), 2);\n\n\t\t\t\t\t$schemaType = $schemaNameParts[0];\n\t\t\t\t\t$schemaPath = isset($schemaNameParts[1]) ? $schemaNameParts[1] : NULL;\n\n\t\t\t\t\tif ($schemaType === $type && ($path === NULL || strpos($schemaPath, $path) === 0)){\n\t\t\t\t\t\t$schemaFileInfos[] = array(\n\t\t\t\t\t\t\t'file' => $schemaFile,\n\t\t\t\t\t\t\t'name' => $schemaName,\n\t\t\t\t\t\t\t'path' => $schemaPath,\n\t\t\t\t\t\t\t'packageKey' => $packageKey\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->outputLine();\n\t\tif (count($schemaFileInfos) > 0) {\n\t\t\t$this->outputLine('%s schema files were found:', array(count($schemaFileInfos)));\n\t\t\t$result = new \\TYPO3\\Flow\\Error\\Result();\n\t\t\tforeach ($schemaFileInfos as $schemaFileInfo) {\n\n\t\t\t\tif ($schemaFileInfo['path'] !== NULL) {\n\t\t\t\t\t$data = \\TYPO3\\Flow\\Utility\\Arrays::getValueByPath($configuration, $schemaFileInfo['path']);\n\t\t\t\t} else {\n\t\t\t\t\t$data = $configuration;\n\t\t\t\t}\n\n\t\t\t\tif (empty($data)){\n\t\t\t\t\t$result->forProperty($schemaFileInfo['path'])->addError(new \\TYPO3\\Flow\\Error\\Error('configuration in path ' . $schemaFileInfo['path'] . ' is empty'));\n\t\t\t\t\t$this->outputLine(' - package: \"' . $schemaFileInfo['packageKey'] . '\" schema: \"' . $schemaFileInfo['name'] . '\" -> <b>configuration is empty</b>');\n\t\t\t\t} else {\n\t\t\t\t\t$parsedSchema = \\Symfony\\Component\\Yaml\\Yaml::parse($schemaFileInfo['file']);\n\t\t\t\t\t$schemaResult = $this->schemaValidator->validate($data, $parsedSchema);\n\n\t\t\t\t\tif ($schemaResult->hasErrors()) {\n\t\t\t\t\t\t$this->outputLine(' - package:\"' . $schemaFileInfo['packageKey'] . '\" schema:\"' . $schemaFileInfo['name'] . '\" -> <b>' . count($schemaResult->getFlattenedErrors()) . ' errors</b>');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->outputLine(' - package:\"' . $schemaFileInfo['packageKey'] . '\" schema:\"' . $schemaFileInfo['name'] . '\" -> <b>is valid</b>');\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($schemaFileInfo['path'] !== NULL) {\n\t\t\t\t\t\t$result->forProperty($schemaFileInfo['path'])->merge($schemaResult);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$result->merge($schemaResult);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->outputLine('No matching schema-files were found!');\n\t\t\treturn;\n\t\t}\n\n\t\t$this->outputLine();\n\t\tif ($result->hasErrors()) {\n\t\t\t$errors = $result->getFlattenedErrors();\n\t\t\t$this->outputLine('<b>%s errors were found:</b>', array(count($errors)));\n\t\t\tforeach ($errors as $path => $pathErrors){\n\t\t\t\tforeach ($pathErrors as $error){\n\t\t\t\t\t$this->outputLine(' - %s -> %s', array($path, $error->render()));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->outputLine('<b>The configuration is valid!</b>');\n\t\t}\n\t}", "private function checkException() {\n return in_array(strtolower($this->program_name), $this->exceptions);\n }", "public function validateArguments() {}", "protected function validateCommand($argv, $argsIndex, Context $context)\n {\n // wishes to execute\n\n $commandName = $argv[$argsIndex];\n\n // do we have a recognised command?\n if (!$context->commandsList->testHasCommand($commandName))\n {\n // no, we do not\n ErrorsHelper::unknownCommand($context, $commandName);\n return 1;\n }\n\n // if we get here, we know that we have a valid command\n return null;\n }" ]
[ "0.60966", "0.5553765", "0.54333586", "0.54293066", "0.5390708", "0.53891224", "0.5382428", "0.5364725", "0.53171414", "0.52714354", "0.5257588", "0.5240791", "0.5204579", "0.5204579", "0.518975", "0.5163288", "0.5158636", "0.514738", "0.51260024", "0.51204145", "0.5098007", "0.50515616", "0.5051157", "0.5047261", "0.5033335", "0.50269675", "0.50044316", "0.50008315", "0.5000779", "0.49910215", "0.49790332", "0.49780384", "0.4977411", "0.49769223", "0.4975564", "0.4974089", "0.4969518", "0.4962631", "0.4956307", "0.49487078", "0.4936617", "0.49299404", "0.49156943", "0.49140057", "0.49115768", "0.49079445", "0.4904439", "0.48981696", "0.48952174", "0.48945484", "0.48852798", "0.48708117", "0.48625183", "0.48618078", "0.48555487", "0.4854662", "0.48391658", "0.48386073", "0.48294997", "0.4828804", "0.48112342", "0.48062575", "0.48018658", "0.47994867", "0.47842667", "0.47839645", "0.4782859", "0.47776383", "0.47743353", "0.47729376", "0.47663134", "0.47592098", "0.47589", "0.47559026", "0.47557387", "0.47548094", "0.47499907", "0.47485685", "0.4744567", "0.47436535", "0.47407627", "0.47266066", "0.47264323", "0.47225767", "0.47210062", "0.47126308", "0.47114462", "0.4710819", "0.47093397", "0.47024584", "0.47024503", "0.46928304", "0.46906644", "0.468862", "0.46822107", "0.46746492", "0.46709427", "0.4669105", "0.46659082", "0.4664019" ]
0.7435408
0
Test a successful command run.
public function testRunsOk() { $application = new Application(); $application->add($this->command); $command = $application->find('dequeue'); $command_tester = new CommandTester($command); $this->assertEquals(0, $this->dispatcher->getQueue()->count()); $this->dispatcher->dispatch( new Inc(['number' => 12, ])); $this->assertEquals(1, $this->dispatcher->getQueue()->count()); $command_tester->execute([ 'command' => $command->getName(), 'type' => Inc::class, ]); $this->assertEquals(0, $command_tester->getStatusCode()); $this->assertEquals(0, $this->dispatcher->getQueue()->count()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetResultPositive()\n {\n $command = $this->getCommandMock();\n $command->expects($this->once())->method('execute');\n\n }", "public function testExecute():void\n {\n $this->assertEquals(0,$this->commandTester->execute([]));\n\n //Assert command display\n $this->assertEquals(\n 'Sample command without interactions' . PHP_EOL,\n $this->commandTester->getDisplay()\n );\n }", "public function testExecute() : void\n {\n $character = new Character();\n $result = $this->command->execute($character);\n\n $this->assertEquals(\"result\", $result);\n }", "public function testSuccess()\n {\n $this->_package->success(\"Successful test\");\n $this->assertTrue($this->_result->wasSuccessful());\n }", "public function testCase1()\n {\n $fa = $this->getFa();\n // Test error\n $ret = $fa->run('110', 'S0');\n $this->assertEquals($ret['status'], 'success');\n }", "public function testExecute()\n {\n $this->commandTester->execute(\n array(\n 'file_path' => __DIR__. '/../Fixtures/stock.csv',\n '--test_run' => true,\n )\n );\n\n $this->assertRegexp('/Validated items/', $this->commandTester->getDisplay());\n }", "public function testSuccessfulExecute()\n {\n $executor = new CommandExecutor(\n new ShellCommandBuilder(new UnixEnvironment()),\n '/usr/bin/git',\n '.'\n );\n\n $output = $executor->execute(array(\n 'log',\n '--reverse',\n '--format=fuller'\n ));\n\n\n $logLines = $output->getStdOutLines();\n $this->assertEquals(\n 'commit 6f1ed5364b1369b618270b2774f6ec86f77fa213',\n $logLines[0]\n );\n }", "function test_apertium_command() {\n\tglobal $config;\n\t\n\t$command_to_test = array($config['apertium_command'], $config['apertium_unformat_command']);\n\t$return = TRUE;\n\tforeach ($command_to_test as $command) {\n\t\tif (!test_command($command)) {\n\t\t\techo $command;\n\t\t\t$return = FALSE;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\t\t\t\n\treturn $return;\n}", "public function testRuns()\n {\n $this->assertTrue(true);\n }", "public function runSuccess();", "public function testCanRunValidCommand()\n {\n $dir = __DIR__;\n $command = new Command(\"/bin/ls $dir/Command*\");\n\n $this->assertFalse($command->getExecuted());\n $this->assertTrue($command->execute());\n $this->assertTrue($command->getExecuted());\n $this->assertEquals(\"$dir/CommandTest.php\", $command->getOutput());\n $this->assertEquals(\"$dir/CommandTest.php\\n\", $command->getOutput(false));\n $this->assertEmpty($command->getError());\n $this->assertEmpty($command->getStdErr());\n $this->assertEquals(0, $command->getExitCode());\n }", "public function testExample()\n {\n $this->artisan('game:start')\n ->expectsOutput('you won')\n ->assertExitCode(0);\n }", "protected function testErreurs()\n\t{\n\t\t$cmd = '';\n\t}", "function testPingCommand()\n {\n $console = new Console();\n\n ob_start();\n\n $result = $console->findCommand(\"ping\")->execute();\n\n $out = ob_get_clean();\n\n $this->assertTrue($result);\n $this->assertSame(\"Pong!\\n\", $out);\n }", "public function test_schedule_command()\n {\n $this->artisan('schedule:run')->assertExitCode(0);\n }", "public function testSimplestCommand()\n {\n $expected = 'tesseract image.png stdout';\n\n $actual = (new WrapTesseractOCR('image.png'))\n ->buildCommand();\n\n $this->assertEquals($expected, $actual);\n }", "public function testExecuteCommand()\n {\n $this->environment->expects($this->once())\n ->method('sendCommandViaSsh')\n ->with($this->equalTo('dummy arg1 arg2'))\n ->willReturn(['output' => 'dummy output', 'exit_code' => 0]);\n\n $output = $this->command->dummyCommand('site.env', ['arg1', 'arg2']);\n\n $this->assertEquals('dummy output', $output);\n }", "protected function success()\n {\n return $this->info(\"The custom commands runs properly !\");\n }", "public function testExecute()\n {\n $commandTester = $this->createCommandTester(new DeleteCommand());\n $commandTester->execute([\n 'url' => 'my-queue-url',\n '--force' => true\n ]);\n\n $output = $commandTester->getDisplay();\n $this->assertContains('Done', $output);\n }", "public function testCommandWithNoPath(): void\n {\n $process = $this->phpbench('run');\n $this->assertExitCode(1, $process);\n $this->assertStringContainsString('You must either specify', $process->getErrorOutput());\n }", "public function isSuccessful()\n {\n return 0 === $this->getExitCode();\n }", "public function testExec()\n {\n $input = 'Hello World';\n\n $result = Command::create()\n ->app('echo')\n ->input($input)\n ->exec();\n\n $this->assertEquals($input, $result->getRaw());\n }", "public function testNewCommand() : void\n {\n $this->assertFalse($this->command->hasArguments());\n $this->assertEquals(\"\", $this->command->getArguments());\n }", "public function testSuccess(): void\n {\n $this->assertNotEmpty([newMessage()]);\n\n // Check if the config File exists\n $this->assertFileExists('verification/config.php');\n\n // check if function is not empty\n $this->assertNotNull([regularOptions()]);\n }", "public function test_commands() {\n\n\t\t\t// test git\n\t\t\tif ( ! $this->test_cmd( 'git' ) ) {\n\t\t\t\terror( '501 Not Implemented', '<code>git</code> is not installed' );\n\t\t\t}\n\n\t\t\t// if we're running a slim deploy but the remote deosn't support `git archive`,\n\t\t\t// we need svn to run `svn export`\n\t\t\tif (\n\t\t\t\tSLIM \n\t\t\t\t&& ($this->config->schema[ 'git_archive' ] === false) \n\t\t\t\t&& ! $this->test_cmd( \"svn\" )\n\t\t\t) {\n\t\t\t\terror( '501 Not Implemented', '<code>svn</code> is not installed' );\n\t\t\t}\n\t\t}", "public function testCommandError()\n {\n $timestamp = 1326670266.115;\n $datestamp = new \\DateTime();\n $datestamp->setTimestamp($timestamp);\n\n $attributes = ['scheduledEventId' => 123456];\n $event_id = 'test_'.rand(10000, 99999);\n\n $history = new WorkflowHistory();\n $command = new ActivityTaskStartedCommand($datestamp, $attributes, $event_id);\n\n $command->apply($history);\n }", "public function isSuccessful() {}", "public function testScheduleCommand()\n {\n $this->artisan('schedule:run')\n ->expectsOutput('No scheduled commands are ready to run.');\n }", "function isSuccessful() ;", "abstract public function isSuccessful();", "public function testOnConsoleCommand()\n {\n $commandFoo = $this->createMock(ContainerAwareCommand::class);\n $commandFoo->method('getName')->willReturn('foo:hello');\n $this->commandChain->addCommand($commandFoo, 'main', null);\n\n $commandBar = $this->createMock(ContainerAwareCommand::class);\n $commandBar->method('getName')->willReturn('bar:hi');\n $this->commandChain->addCommand($commandBar, 'foo:hello', 100);\n\n $output = new BufferedOutput();\n $event = $this->createMock(ConsoleCommandEvent::class);\n $event->method('getCommand')->willReturn($commandBar);\n $event->method('getOutput')->willReturn($output);\n $this->chainCommandListener->onConsoleCommand($event);\n\n $expected = sprintf(sprintf(\n \"Error: %s command is a member of %s command chain and cannot be executed on its own.\\n\",\n $commandBar->getName(),\n $commandFoo->getName()\n ));\n $real = $output->fetch();\n $this->assertEquals($expected, $real);\n }", "public function testExecute()\n {\n $params = [\n '--connection' => 'test',\n ];\n $commandTester = $this->getCommandTester($params);\n $migrations = $this->getMigrations();\n $migrations->migrate();\n\n $commandTester->execute([\n 'command' => $this->command->getName(),\n '--connection' => 'test',\n '--seed' => 'NumbersSeed',\n ]);\n\n $display = $this->getDisplayFromOutput();\n $this->assertTextContains('== NumbersSeed: seeded', $display);\n\n $result = $this->connection->selectQuery()\n ->select(['*'])\n ->from('numbers')\n ->order('id DESC')\n ->limit(1)\n ->execute()->fetchAll('assoc');\n $expected = [\n [\n 'id' => '1',\n 'number' => '10',\n 'radix' => '10',\n ],\n ];\n $this->assertEquals($expected, $result);\n\n $migrations->rollback(['target' => 'all']);\n }", "public function testConsole()\n {\n static::bootKernel();\n\n $output = new BufferedOutput();\n $application = new Application(static::$kernel);\n $application->setAutoExit(false);\n $exitCode = $application->run(new StringInput(''), $output);\n\n $outputText = $output->fetch();\n\n $this->assertEquals(0, $exitCode, $outputText);\n\n // do not fix the number of commands to be flexible when new commands get added\n // the point of this test is to see that commands are loaded and show up in the console\n $this->assertTrue(substr_count($outputText, ' rokka:') > 20, substr($outputText, 0, 2000).\"...\\n\\n\");\n }", "public function testGetCommands()\r\n\t{\r\n\t\t$this->assertEquals(\r\n\t\t\t\t\t\t2,\r\n\t\t\t\t\t\tcount($this->steroids->getCommands())\r\n\t\t\t\t\t);\r\n\t}", "function is_ok($cmd = \"\")\n {\n }", "public function testSucceeded(\\unittest\\TestSuccess $success) {\n }", "public function testRun()\n\t{\n\t\t$state = TestReflection::getValue($this->object, 'state');\n\n\t\t$state->expects($this->once())\n\t\t\t->method('run');\n\n\t\t$this->object->run();\n\t}", "public function testCommand(): void\n {\n $process = $this->phpbench('run benchmarks/set4/NothingBench.php');\n $this->assertExitCode(0, $process);\n }", "public function isSuccessful();", "public function testSuccess()\n {\n }", "function runcmd($cmd)\n{\n echo $cmd.\"\\n\";\n passthru($cmd, $code);\n if ($code != 0)\n {\n echo \"COMMAND FAILED with code $code\\n\";\n throw new Exception('cmd failed');\n }\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 succeeded();", "private function runCommandAndAssertSuccess(\n string $commandName,\n AbstractCommand $commandInstance,\n array $additionalArguments = [],\n bool $migrateDownAfterwards = false\n ): string {\n $outputCapturer = new StreamOutput(fopen('php://temp', 'r+'));\n $exitCode = $this->runCommand($commandName, $commandInstance, $additionalArguments, $outputCapturer);\n\n if ($migrateDownAfterwards) {\n $this->migrateDown();\n }\n\n $streamedOutput = $outputCapturer->getStream();\n rewind($streamedOutput);\n $outputString = stream_get_contents($streamedOutput);\n\n $msg = \"$commandName should exit successfully, but failed with message '$outputString'\";\n $this->assertEquals(0, $exitCode, $msg);\n\n return $outputString;\n }", "public function testItCanRunItemUpdate()\n {\n Artisan::call('item:update');\n\n // If you need result of console output\n $resultAsText = Artisan::output();\n\n $this->assertRegExp(\"/Item #[0-9]* updated\\\\n/\", $resultAsText);\n }", "public function testExec()\n {\n exec('java -jar ' . escapeshellarg($this->jar) . ' 2>&1', $stdErrLines, $exitCode);\n $stdErr = implode(PHP_EOL, $stdErrLines);\n\n $this->assertEquals(1, $exitCode, 'exit code');\n $this->assertRegExp('/^Usage: java pdfbox-app-x.y.z.jar <command> <args..>$/mi', $stdErr, 'PdfBox output');\n }", "public function execute()\n {\n // check command\n if ($this->command === null) {\n $this->build->setStatus(Build::STATUS_FAILED);\n $this->phpci->log('Missing require \"command\" parameter', LogLevel::ERROR);\n return false;\n }\n\n $flags = $this->flags;\n\n foreach($flags as $key => $flag){\n $flag = trim($flag);\n if($flag !== '--no-color'){\n $flags[$key] = $flag;\n }\n }\n\n $flags[] = '--no-color';\n\n $cmd = 'cd';\n if (IS_WIN) {\n $cmd .= ' /d';\n }\n $cmd .= ' %s && %s %s %s';\n // and execute it\n return $this->phpci->executeCommand($cmd, $this->directory, $this->bower, $this->command, implode(' ', $flags));\n }", "public function commandShouldRun(): bool\n {\n return $this->commandShouldRun;\n }", "public function testCanOutputMainCommand()\n {\n $mainCommand = 'git';\n $command = $this->createInstance($mainCommand);\n $this->assertEquals($mainCommand, (string) $command, 'Main command must be output correctly alone');\n }", "public function pass()\n\t{\n\t\t$trace = debug_backtrace();\n\n\t\t// If the test has already failed then we don't want to set it to true.\n\t\tif ( ! empty($trace[2]['function']) and (is_int($trace[2]['function']) or is_string($trace[2]['function']))\n\t\t\tand @array_key_exists($trace[2]['function'], $this->results)\n\t\t and $this->results[$trace[2]['function']] === false)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->results[$trace[2]['function']] = true;\n\t}", "public function testCanOutputFlag()\n {\n $mainCommand = 'ls';\n $flag = '-h';\n $command = $this->createInstance($mainCommand);\n $command->addFlag($flag);\n $this->assertEquals(sprintf('%1$s %2$s', $mainCommand, $flag), (string) $command, 'Must be able to output the command and flag string correctly');\n }", "function test_command($command) {\n\t$return = explode(':', trim(exec('whereis ' . $command)));\n\tif (isset($return[1]) and trim($return[1]) != '')\n\t\treturn TRUE;\n\telse\n\t\treturn FALSE;\n}", "public function testInstallSuccess() {\n $this->module->method('install')->willReturn(true);\n $this->module->method('registerHook')->will($this->onConsecutiveCalls(true, true));\n $this->configManager->method('addFields')->willReturn(true);\n\n $this->assertTrue($this->module->install(), \"Install should return True if install is successful.\");\n }", "public function runTestTask()\n\t{\n\t\t$this->runTask(1);\n\t}", "public function isSuccessful()\n {\n return true;\n }", "public function isSuccessful()\n {\n return true;\n }", "public function isSuccessful()\n {\n return true;\n }", "function testTarget() {\n $stdin = json_encode(array('filter'=>'sql'));\n $exec = sprintf('echo %s | %s version --backend 2>/dev/null', self::escapeshellarg($stdin), UNISH_DRUSH);\n $this->execute($exec);\n $parsed = parse_backend_output($this->getOutput());\n $this->assertTrue((bool) $parsed, 'Successfully parsed backend output');\n $this->assertArrayHasKey('log', $parsed);\n $this->assertArrayHasKey('output', $parsed);\n $this->assertArrayHasKey('object', $parsed);\n $this->assertEquals(self::EXIT_SUCCESS, $parsed['error_status']);\n // This assertion shows that `version` was called and that stdin options were respected.\n $this->assertStringStartsWith(' Drush Version ', $parsed['output']);\n $this->assertEquals('Bootstrap to phase 0.', $parsed['log'][0]['message']);\n\n // Check error propogation by requesting an invalid command (missing Drupal site).\n $this->drush('core-cron', array(), array('backend' => NULL), NULL, NULL, self::EXIT_ERROR);\n $parsed = parse_backend_output($this->getOutput());\n $this->assertEquals(1, $parsed['error_status']);\n $this->assertArrayHasKey('DRUSH_NO_DRUPAL_ROOT', $parsed['error_log']);\n }", "protected function pass()\n {\n $this->assertTrue(true);\n }", "public function testOoCanOutputFlag()\n {\n $mainCommand = 'ls';\n $flag = new Command\\Flag('r');\n $command = $this->createInstance($mainCommand);\n $command->addFlag($flag);\n $this->assertEquals(sprintf('%1$s -r', $mainCommand), (string) $command, 'Must be able to output the command and flag string correctly');\n }", "public function passes(): bool {\r\n return $this -> execute();\r\n }", "public function testExecute()\n {\n $commandTester = $this->createCommandTester(new WorkerCommand());\n $commandTester->execute([\n 'name' => 'basic_queue'\n ]);\n\n $output = $commandTester->getDisplay();\n $this->assertContains('Start listening', $output);\n }", "public function testCommand()\n {\n $response = (new Command())->testCommand(Command::class);\n\n $this->assertInstanceOf(Builder::class, $response, 'A call to command() should dispatch an instance of the command and return a builder.');\n $this->assertInstanceOf(Command::class, $response->toBase(), 'The builder should wrap the command passed to command().');\n }", "public function isSuccessful(): bool\n {\n return $this->status == 'a';\n }", "public function testCommand()\n {\n \tif (!file_exists('/usr/bin/svn')) $this->markTestSkipped(\"Unable to test command: /usr/bin/svn does not exist.\");\n\n \t$url = \"svn://office.javeline.nl/jasny/qdb/trunk\";\n \t$list = shell_exec('/usr/bin/svn list ' . escapeshellarg($url));\n \t\n \t$client = new RPC_Client_Exec('/usr/bin/svn');\n \t$svn = $client->getInterface();\n \t$this->assertEquals($list, $svn->list($url));\n }", "public function testCall()\n {\n $response = (new Command())->testCall(Transactional::class);\n\n $this->assertTrue($response, 'A call to call() should dispatch an instance of the command and return the response.');\n }", "function _check_command($return = false)\n\t{\n\t\t$response = '';\n\n\t\tdo\n\t\t{\n\t\t\t$result = @fgets($this->connection, 512);\n\t\t\t$response .= $result;\n\t\t}\n\t\twhile (substr($result, 3, 1) !== ' ');\n\n\t\tif (!preg_match('#^[123]#', $response))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn ($return) ? $response : true;\n\t}", "public function testFailure()\n {\n $this->_package->fail(\"Failed test\");\n $this->assertFalse($this->_result->wasSuccessful());\n }", "protected function cvOk($cmd) {\n $p = Process::runOk($this->cv($cmd));\n return $p->getOutput();\n }", "private function runTests(){\n if($this->option('s')) return false;\n $process = new Process(['./vendor/bin/phpunit','--exclude-group','skip-test']);\n $process->start();\n foreach($process as $type => $data){\n if($process::OUT !== $type){\n $this->error($data);\n continue;\n }\n echo $data;\n }\n }", "function run($command);", "public function testCasePassed() { PunitAssert::assertEquals(1, 1); }", "public function execute(): bool;", "public function execute(): bool;", "public function testCanOutputAll()\n {\n $mainCommand = 'git';\n $command = $this->createInstance($mainCommand);\n\n $subCommands = ['clone'];\n foreach ($subCommands as $_subCommand) {\n $command->addSubCommand($_subCommand);\n }\n\n $flags = ['-f'];\n foreach ($flags as $_flag) {\n $command->addFlag($_flag);\n }\n\n $arguments = ['--mirror'];\n foreach ($arguments as $_argument) {\n $command->addArgument($_argument);\n }\n\n $parameters = ['https://github.com/Dhii/shell-interop.git', '.'];\n foreach ($parameters as $_parameter) {\n $command->addParameter($_parameter);\n }\n\n $this->assertEquals(\n sprintf('%1$s %2$s %3$s %4$s %5$s', $mainCommand, implode(' ', $subCommands), implode(' ', $flags), implode(' ', $arguments), implode(' ', $parameters)),\n (string) $command,\n 'Must be able to output the command string correctly, including the sub command, flags, arguments, and parameters'\n );\n }", "public function testRun()\n {\n $scenario = new Hostingcheck_Scenario();\n $scenario->add(\n new Hostingcheck_Scenario_Group(\n 'group1',\n 'Group 1',\n new Hostingcheck_Scenario_Tests()\n )\n );\n $scenario->add(\n new Hostingcheck_Scenario_Group(\n 'group2',\n 'Group 2',\n new Hostingcheck_Scenario_Tests()\n )\n );\n\n $runner = new Hostingcheck_Runner($scenario);\n $results = $runner->run();\n $this->assertCount(2, $results);\n }", "public function testFirstCommand()\n {\n $this->receiver->expects($this->once())\n ->method('comeOutOfTheDressingRoom');\n $this->receiver->expects($this->once())\n ->method('pickTheBallsUp');\n $this->receiver->expects($this->once())\n ->method('putThemAway');\n $this->invoker->slideThePaperUnderTheDoor();\n }", "public function testExactMatchWithExpectationAfterOutput() {\n\t\techo 'foobar';\n\t\t$this->expectOutputContains( 'foobar' );\n\t}", "public function testExecuteWithBadFile()\n {\n\n $this->commandTester->execute(\n array(\n 'file_path' => __DIR__. '/../Fixtures/stockd.csv',\n '--test_run' => true,\n )\n );\n// $this->assertEquals('File could not be found.' . PHP_EOL, $this->commandTester->getDisplay());\n $this->assertRegexp('/File could not be found./', $this->commandTester->getDisplay());\n\n }", "public function executeCommand( $cmd ){\n\n\t\t//Redirect the command result to the standar output\n\t\t$cmd = $cmd . \" 2>&1 \";\n\n\t\tif( env('CLOUD_DEBUG') ){\n\t\t\techo sprintf( \"Executing fake : %s\", $cmd );\n\t\t}\n\t\telse{\n $result = shell_exec($cmd);\n return $result;\n\t\t}\n }", "public function testProcessExitCodeDifferFromZero(): void\n {\n $commandLine = 'aspell';\n $process = $this->prophesize(Process::class);\n\n $process->setTimeout(600)->shouldBeCalled()->willReturn($process);\n $process->setEnv([])->shouldBeCalled()->willReturn($process);\n $process->setInput('')->shouldBeCalled()->willReturn($process);\n $process->run()->shouldBeCalled();\n $process->getCommandLine()->shouldBeCalled()->willReturn($commandLine);\n $process->getErrorOutput()->shouldBeCalled()->willReturn('Error');\n $process->getExitCode()->shouldBeCalled()->willReturn(1);\n\n $source = $this->prophesize(EncodingAwareSource::class);\n $source->getAsString()->shouldBeCalled()->willReturn('');\n\n $mock = $this->getMockForAbstractClass(ExternalSpeller::class, ['aspell']);\n $mock->setProcess($process->reveal());\n\n $this->expectException(ExternalProgramFailedException::class);\n $this->expectExceptionCode(1);\n $this->expectExceptionMessage('Failed to execute \"aspell\": Error');\n\n $mock->checkText($source->reveal(), ['en']);\n }", "public function testGet()\n\t{ \n\t\t$c = get_c();\n\n\t\t$result = $c->PostTask('tasks.add_delayed', array(4,4));\n\t\t$this->assertFalse($result->ready());\n\t\t$this->assertNull($result->result); \n\t\t$rv = $result->get();\n\t\t$this->assertEquals(8, $rv);\n\t\t$this->assertEquals(8, $result->result);\n\t\t$this->assertTrue($result->successful());\n\t}", "final function what_is_good() {\n\t\t\techo \"Running is Good </br>\";\n\t\t}", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function should_execute()\n {\n }", "public function isSuccessful()\n {\n return (0 == $this->code);\n }", "public function exec($cmd = null): bool {\n\n if($cmd === null) {\n echo \"No command passed.\";\n return false;\n }\n\n $report = array();\n exec($cmd, $report, $returnCode);\n\n if ($returnCode != 0) {\n\n // Command failed\n foreach ($report as $r) {\n echo $r . \"<br />\";\n }\n return false;\n }\n return true;\n }", "public function test()\n {\n $this->executeScenario();\n }", "function execute_test($run_id, $case_id, $test_id)\n{\n\t// triggering an external command line tool or API. This function\n\t// is expected to return a valid TestRail status ID. We just\n\t// generate a random status ID as a placeholder.\n\t\n\t\n\t$statuses = array(1, 2, 3, 4, 5);\n\t$status_id = $statuses[rand(0, count($statuses) - 1)];\n\tif ($status_id == 3) // Untested?\n\t{\n\t\treturn null;\t\n\t}\n\telse \n\t{\n\t\treturn $status_id;\n\t}\n}", "public static function success($message = '') {\n self::writeLine($message, SELF::CLI_COLOR_GREEN, self::CLI_TYPE_SUCCESS);\n }", "public function test_send_email_have_clean_exit()\n {\n $company = factory(Company::class)->create();\n $this->mockEmail(\n env('MAIL_FROM_ADDRESS'),\n env('MAIL_FROM_NAME'),\n $company,\n 'Licence Reminder',\n 'emails.company-reminder'\n );\n\n $this->seeInDatabase('companies', ['id' => $company->id]);\n\n $sendEmail = new ActionCommandSendReminderEmailCommand($company->id);\n $actualNumberOfEmailSent = $sendEmail->execute();\n\n $this->assertEquals(1, $actualNumberOfEmailSent);\n }", "private function runTests(){\n $process = new Process(['./vendor/bin/phpunit --filter '.$this->params['model_name'].'Test']);\n $process->start();\n foreach($process as $type => $data){\n if($process::OUT !== $type){\n $this->error($data);\n continue;\n }\n $this->info($data);\n }\n }", "public function testSouldFire()\n {\n $app = [];\n $command = m::mock('Zizaco\\Confide\\MigrationCommand', [$app]);\n $command->shouldAllowMockingProtectedMethods();\n $viewVars = [\n 'table' => \"users\",\n 'includeUsername' => true\n ];\n\n /*\n |------------------------------------------------------------\n | Expectation\n |------------------------------------------------------------\n */\n $command->shouldReceive('option')\n ->once()->with('table')\n ->andReturn('users');\n\n $command->shouldReceive('option')\n ->once()->with('username')\n ->andReturn(true);\n\n $command->shouldReceive('fire')\n ->passthru();\n\n $command->shouldReceive('line', 'info', 'comment', 'confirm')\n ->andReturn(true);\n\n $command->shouldReceive('generateFile')\n ->once()->with(\n '/database\\/migrations\\/([\\d_]+)_confide_setup_users_table\\.php/',\n 'generators.migration',\n $viewVars\n )\n ->andReturn(true);\n\n /*\n |------------------------------------------------------------\n | Assertion\n |------------------------------------------------------------\n */\n $command->fire();\n }" ]
[ "0.7386988", "0.71271396", "0.69907135", "0.6870195", "0.68166256", "0.6765417", "0.67336833", "0.67301756", "0.6693134", "0.6606675", "0.6584214", "0.65645313", "0.65404904", "0.65204996", "0.65127164", "0.6491716", "0.6374205", "0.62654287", "0.6209015", "0.62086815", "0.6179712", "0.61726147", "0.61680377", "0.61627734", "0.6149905", "0.60954934", "0.6083301", "0.6078324", "0.6063282", "0.60399216", "0.60327935", "0.6021169", "0.6018325", "0.5980578", "0.59794444", "0.5977656", "0.5970644", "0.59609985", "0.5948335", "0.5944992", "0.594019", "0.5932889", "0.59242606", "0.5921995", "0.59218574", "0.58777314", "0.58769447", "0.5861169", "0.58571064", "0.5849259", "0.5848551", "0.5836645", "0.582815", "0.5820883", "0.5809263", "0.5809263", "0.5809263", "0.5807819", "0.58042264", "0.57932913", "0.5790737", "0.57825047", "0.57820517", "0.57715356", "0.57395947", "0.57282573", "0.5728087", "0.5713119", "0.5700363", "0.5697628", "0.56843823", "0.5679763", "0.5672107", "0.5672107", "0.56641", "0.5660607", "0.56545544", "0.5646363", "0.5645437", "0.5643198", "0.56397384", "0.562601", "0.56242067", "0.56195074", "0.56195074", "0.56195074", "0.56195074", "0.56195074", "0.56195074", "0.56195074", "0.56195074", "0.56195074", "0.5609827", "0.55998", "0.5596094", "0.5589257", "0.5585812", "0.55739355", "0.55566585", "0.55554974" ]
0.68761927
3
$data['title'] = 'Product Category';
public function index(){ $data['stores'] = $this->Stock_of_storeModel->GetStores(); $data['stock'] = $this->Stock_of_storeModel->GetStoresStock(); //$this->load->view('common/header'); $this->HeaderModel->header(); $this->load->view('stock_of_store', $data); $this->FooterModel->footer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n $this->data['title'] = 'Category';\n }", "function set_title($title) \r\n\t{\r\n\t\t//$this->title = $title;\r\n\t\t$this->data['title_for_layout'] = $title;\r\n\t\t$this;\r\n\t}", "function getName() { return 'TestPostAddCategory'; }", "public function setTitle($title){\n \t$this->title = $title;\n }", "public function setTitle($title)\n{\n $this->title= $title;\n}", "public function Index() { \n //global $ly;\n //$ly->data['title'] = \"Testing Testing\";\n $this->data['title'] = \"Testing CObject variabler\"; \n }", "function shophead_add()\n {\n $this->layout = 'admin_layout';\n\n\t\tApp::import('Model', 'ProductCategory');\n\t\t$this -> ProductCategory = new ProductCategory();\n\t\t\n\t\t$this -> set('categories', $this -> ProductCategory -> find('list', array('fields' => array('ProductCategory.id', 'ProductCategory.name'), 'conditions' => array('ProductCategory.status' => 1,'ProductCategory.is_deleted'=>0))));\n\t\t$categories_list = $this->ProductCategory->find('list', array('conditions' => array('ProductCategory.is_deleted' => 0), 'fields' => array('ProductCategory.id', 'ProductCategory.name')));\n $this->set('categories_list', $categories_list);\n if ($this->request->is('post')) {\n $this->ProductItem->set($this->request->data);\n\t\t\t $this->request->data = Sanitize::clean($this->request->data, array('encode' => false));\n if ($this->ProductItem->validates()) {\n //pr($this->request->data);die;\n if ($this->ProductItem->save($this->request->data)) {\n $this->Session->write('flash', array(ADD_RECORD, 'success'));\n } else {\n $this->Session->write('flash', array(ERROR_MSG, 'failure'));\n }\n $this->redirect(array('controller' => 'ProductItems', 'action' => 'index'));\n }\n }\n }", "public function setTitle($val){ return $this->setField('title',$val); }", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "function set_title($title){\r\n\t\t$this->_title = $title;\r\n\t}", "function setTitle($title)\r\n\t{\r\n\t\t$this->title = $title;\r\n\t}", "function category_data()\n\t{\n\t\t$this->data['title'] \t= 'Portfolio Category Data';\n\t\t$this->data['category']\t= $this->portfolio_model->get_all_category();\n\t\t$this->data['css'] \t\t= 'body/admin/css/form_style_default';\n\t\t$this->data['js'] \t\t= 'body/admin/js/form_style_default';\n\t\t$this->data['content'] \t= 'content/admin/portfolio/category_data';\n\t\t$this->load->view('body/admin/style_1', $this->data);\n\t}", "function sos_chapter_change_cat_object() {\n global $wp_taxonomies;\n $labels = &$wp_taxonomies['product_cat']->labels;\n $labels->name = 'Topic';\n $labels->singular_name = 'Topic';\n $labels->add_new = 'Add Topic';\n $labels->add_new_item = 'Add Topic';\n $labels->edit_item = 'Edit Topic';\n $labels->new_item = 'Topic';\n $labels->view_item = 'View Topic';\n $labels->search_items = 'Search Topics';\n $labels->not_found = 'No Topics found';\n $labels->not_found_in_trash = 'No Topics found in Trash';\n $labels->all_items = 'All Topics';\n $labels->menu_name = 'Topic';\n $labels->name_admin_bar = 'Topic';\n}", "function title() {\n ?>\n <h2><?php _e(SCLNG_PUBLIC_PRODUCT_INFO, SC_DOMAIN); ?></h2>\n <?php\n }", "function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "function setTitle($title) {\n\t\t$this->_title = $title;\n\t}", "function setHeaderTitle($value) {\n $this->header_title = $value;\n}", "public function get_category()\n {\n return 'Information Display';\n }", "function setTitle($title)\n {\n $this->title = $title;\n }", "function setTitle($title)\n {\n $this->title = $title;\n }", "function setTitle($title)\n {\n $this->title = $title;\n }", "public function getCategory()\n\t\t{\n\t\t\t$this->layout = \"index\";\n\t\t\t$this->set('title', 'Category (Linnworks API)');\n\t\t}", "function get_title() \t{\n \t\treturn $this->title;\t\n \t}", "public function setTitle($title){\n $this->title = $title;\n }", "function setTitle($title)\n {\n $this->m_title = $title;\n }", "function setTitle($a_title)\n\t{\n\t\t$this->title = $a_title;\n\t}", "function setTitle($title)\r\n {\r\n $this->title = $title;\r\n }", "public function setTitle($newTitle) { $this->Title = $newTitle; }", "function shophead_add()\n {\n $this->layout = 'admin_layout';\n if ($this->request->is('post')) {\n $this->ProductCategory->set($this->request->data);\n\t\t\t $this->request->data = Sanitize::clean($this->request->data, array('encode' => false));\n if ($this->ProductCategory->validates()) {\n if ($this->ProductCategory->save($this->request->data)) {\n $this->Session->write('flash', array(ADD_RECORD, 'success'));\n\n } else {\n $this->Session->write('flash', array(ERROR_MSG, 'failure'));\n }\n $this->redirect(array('controller' => 'ProductCategories', 'action' => 'index'));\n }\n }\n }", "public function setTitle($title){\n $this->p_title = $title;\n }", "public function get_category()\n {\n return 'New Features';\n }", "public function get_category()\n {\n return 'New Features';\n }", "private function getCategoryPostData()\n {\n // Get data from form fields\n $this->data['category_title'] = $this->input->post('category_title');\n }", "public function setTitle($title) {\n $this->_title = $title;\n }", "public function newAction()\n {\n\t\tTag::appendTitle('Add New Category');\n }", "function append_title($title){\r\n\t\t$this->_title .= \" - {$title}\";\r\n\t}", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function create()\n {\n return view('admin.categories.create',['title'=>trans('admin.create')]);\n }", "public function setTitle($title) {\n $this->title = $title ;\n }", "public function getTitle(){\n return $this->title; \n }", "public function setTitle($title){ $this->setSeoTitle($title)->setContentTitle($title); return $this; }", "function List_Field($title){$this->title = $title; \n\n }", "function cat_title()\n{\n global $category;\n return $category[\"title\"];\n}", "public function loadPageTitle()\n \t\t{\n echo \"<title>Add Item</title>\";\n }", "function setTitle(string $title): void\n {\n $this->data['head']['title'] = $title;\n }", "function setTitle($title)\n\t{\n\t\t$this->table->title = $title;\n\t\t$this->record->title = $title;\n\t}", "public function __construct()\n {\n parent::__construct('Product Details', 'Product');\n }", "public function setTitle($title){\n $this->title = $title;\n }", "public function setTitle( $newTitle )\n {\n\t\t$this->title = $newTitle;\n\t}", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($v)\n {\n $this['name'] = $v;\n }", "public function setTitle($title)\r\n {\r\n $this->title = $title;\r\n }", "public function get_title() {\n return esc_html__( 'Onsale Product', 'Alita-extensions' );\n }", "public function setTitle($title) {\r\n $this->title = $title;\r\n }", "protected function setKeyAndTitle() {\n\t\t$this->key = 'config_tab_dataset';\n\t\t$this->title = __('Dataset');\n\t}", "public function set_title($text){\n $this->title=$text;\n }", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title){\n $this->title = $title;\n return $this;\n }", "public function setTitle($title) {\r\n $this->_title = $title;\r\n }", "public function setTitle($newTitle) {\n\t\t$this->title = $newTitle;\n\t}", "public function set_title($title)\n {\n $this->title = $title;\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 }", "function title()\n {\n\n return _m('Catálogo');\n }", "public function setTitle($title)\n\t{\n\t\t$this->title = $title;\n\t}", "public function setTitle($title)\n\t{\n\t\t$this->title = $title;\n\t}", "function setTitle( $title )\n {\n $title = trim( $title );\n $this->properties['TITLE'] = $title;\n }", "function add_new_category()\n\t{\n\t\t$this->data['title'] \t= 'Add New Portfolio Category';\n\t\t$this->data['css'] \t\t= 'body/admin/css/form_style_default';\n\t\t$this->data['js'] \t\t= 'body/admin/js/form_style_default';\n\t\t$this->data['content'] \t= 'content/admin/portfolio/add_new_category';\n\t\t$this->load->view('body/admin/style_1', $this->data);\n\t}", "public function __construct($title) {\n $this->title = $title;\n }", "public function setCategoryTitle($nCategory_title)\n {\n $this->category_title=$nCategory_title;\n }", "function prepend_title($title){\r\n\t\t$this->_title = \"{$title} - {$this->_title}\";\r\n\t}", "public function get_title() {\n return esc_html__( 'Onsale Product', 'electro-extensions' );\n }", "public function getCategoria()\n {\n return \"Cliente com Risco\";\n }", "public function setTitle($title)\r\n\t\t{\r\n\t\t\t$this->_title = $title;\r\n\t\t}", "function showCategory()\r\n {\r\n }", "public function setTitle($title) {\n\t\t\n\t\t\t$this->_title = $title;\n\t\t\n\t\t}", "public function setTitle($title = '')\n {\n $this->title = $title;\n }", "function setTitle($title) {\n $this->fields['title'] = $title;\n return $this;\n }", "public function setTitle($title) {\n $this->title = $title;\n }", "public function setTitle($title) {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "public function __construct () \n {\n $this->title = 'Categories';\n $this->route = 'admin.categories.';\n $this->view = 'admin.category.';\n }", "function __construct($title = \"Default\") {\n\t\t$this->_title = $title;\n\t}", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function post_title( $key ) {\n\t\t$this->data['post_title'] = $key;\n\t}" ]
[ "0.76790214", "0.64296687", "0.6419044", "0.63253516", "0.631331", "0.62873614", "0.6259425", "0.6249266", "0.6193663", "0.6193663", "0.6192567", "0.6183826", "0.6179523", "0.61638546", "0.61449295", "0.61434394", "0.61307824", "0.6109025", "0.61043686", "0.6093145", "0.6093145", "0.6093145", "0.6077919", "0.6077665", "0.60629016", "0.6044031", "0.6041263", "0.6034831", "0.6032014", "0.6018908", "0.6007862", "0.5999883", "0.5999883", "0.5998372", "0.59840524", "0.5982392", "0.59680635", "0.5967842", "0.5965875", "0.59631026", "0.593672", "0.59346986", "0.59337664", "0.59268457", "0.5909687", "0.58973044", "0.58949995", "0.5892515", "0.5890893", "0.58881575", "0.5883438", "0.5883438", "0.5883438", "0.5883438", "0.5883438", "0.5883438", "0.5883438", "0.58811677", "0.5849891", "0.5847816", "0.58406514", "0.58342814", "0.58326316", "0.5831696", "0.5831696", "0.5831696", "0.58304906", "0.5821579", "0.5818759", "0.58170843", "0.5802213", "0.5802213", "0.5802213", "0.5798208", "0.5792798", "0.5792798", "0.57922983", "0.57817924", "0.5776268", "0.5772365", "0.57689416", "0.5767075", "0.5766982", "0.57647604", "0.57645386", "0.5747523", "0.5746767", "0.5744837", "0.5744002", "0.5744002", "0.574211", "0.574211", "0.5739023", "0.5730267", "0.5723704", "0.5723704", "0.5723704", "0.5723704", "0.5723704", "0.5723704", "0.5720712" ]
0.0
-1
Returns the controller class name from provided route
public function inflect(Route $route): ControllerDispatch { $arguments = $this->extractAttributes($route); return $this->createDispatch($arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getRouteControllerClass()\r\n {\r\n $route = self::getRouteResolve();\r\n\r\n if(isset($route['class'])){\r\n return $route['class'];\r\n }\r\n\r\n return null;\r\n }", "private function getRouteAction($route)\n {\n return ($this->isClosureRoute($route)) ? 'Closure' : 'Controller';\n }", "public function getControllerName()\n {\n $current = static::class;\n $ancestry = ClassInfo::ancestry($current);\n $controller = null;\n while ($class = array_pop($ancestry)) {\n if ($class === self::class) {\n break;\n }\n if (class_exists($candidate = sprintf('%sController', $class))) {\n $controller = $candidate;\n break;\n }\n $candidate = sprintf('%sController', str_replace('\\\\Model\\\\', '\\\\Control\\\\', $class));\n if (class_exists($candidate)) {\n $controller = $candidate;\n break;\n }\n }\n if ($controller) {\n return $controller;\n }\n return PageController::class;\n }", "public function getController($route)\n {\n // Get the controller name based on the route patterns and requested route.\n $name = $this->parseRoute($route);\n\n // controller.task\n $task = $this->app->input->getCmd('task');\n if (strpos($task,'.') && $name == '\\Controller\\DefaultController') {\n $parts = explode('.',$task);\n $controller = $parts[0];\n $controllerTask = sprintf('\\\\Controller\\\\%sController', $controller);\n $class_name = $this->controllerPrefix.$controllerTask;\n if (class_exists($this->controllerPrefix.$controllerTask)) {\n $name = $controllerTask;\n // set task value\n $this->app->input->set('task', $parts[1]);\n }\n }\n\n // Get the controller object by name.\n return $this->fetchController($name);\n }", "public function getController()\n\t{\n\t\t$className = strtolower(get_class($this));\n\t\t$className = preg_replace('/_controller$/', '', $className);\n\n\t\treturn $className;\n\t}", "function route_class()\n{\n return str_replace('.', '-', Route::currentRouteName());\n}", "protected function controller_class($name) {\n return str_replace('/', '_', Support_Inflector::camelize($name)) . 'Controller';\n }", "public function getControllerName(){\n\t\t$className = get_class($this);\n\t\tif(isset(self::$_controllerName[$className])){\n\t\t\treturn self::$_controllerName[$className];\n\t\t} else {\n\t\t\treturn $className;\n\t\t}\n\t}", "public function getResourceClassName(Route $route)\n {\n $classReference = $this->config->get('namespace')\n . '\\\\Resource\\\\' . $route->getName();\n\n return $classReference;\n }", "public function getControllerName()\n {\n return preg_replace(\"/(.*)[\\\\\\\\](.*)(Controller)/\", '$2', get_class($this));\n }", "public function getRouteName(): string\n {\n $path = str_replace(\"app/site/controllers/\", \"\", str_replace(\"\\\\\", \"/\", strtolower(get_class($this))));\n return str_replace(\"/\", \".\", trim($path, \"/\"));\n }", "public static function getRouteControllerNamespace()\r\n {\r\n $route = self::getRouteResolve();\r\n\r\n if(isset($route['controller'],$route['namespace'])){\r\n return $route['controller'].'/'.$route['namespace'];\r\n }\r\n\r\n return null;\r\n }", "protected function controller_name($class) {\n if (substr($class, -10) == 'Controller')\n $class = substr($class, 0, -10);\n return Support_Inflector::underscore(str_replace('_', '/', $class));\n }", "private function getControllerName() {\n if(isset($_GET['c']) && !empty($_GET['c'])) {\n return $_GET['c'];\n }\n return Config::getDefaultController();\n }", "public function getControllerClassName() //\"HomeController\"\n {\n\n return Inflector::camel($this->getController()).'Controller'; //clase estatica NO se instancia \n }", "public function getControllerName() {}", "public function getController() {\n\t\tif (isset($_GET[$this->config->get('controllerParam')]))\n\t\t\t$controller = clearPath(urldecode($_GET[$this->config->get('controllerParam')]));\n\t\telse\n\t\t\t$controller = clearPath($this->config->get('defaultController'));\n\t\t\n\t\treturn strtolower($controller);\n\t}", "public static function getControllerName()\n {\n //get the name of the page from URL \n $page_name = request::get('page', 'home');\n //$page_uri = $_SERVER['REQUEST_URI'];//get the uri of the current page\n //$url_parts = explode('/',$page_uri);//break it into parts\n //$page_name = array_pop($url_parts);//gets the last part (contact from www.site.com/contact)\n //get the path to the proper controller file based on the page name\n\n //if(trim($page_name)=='') $page_name = 'home';//if none was specified, make ot home\n\n $controller_file = static::getControllerFile($page_name);\n //if such a controller exists\n if(file_exists($controller_file))\n {\n //return the name of the page \n return $page_name;\n }\n else\n {\n //otherwise throw a nice error!\n return 'error404';\n }\n }", "public static function getControllerName()\r\n {\r\n $page = request::get('page', 'homepage'); \r\n\r\n // if a controller file exists with this name\r\n $file_name = $page . '.controller.php';\r\n $file_path = CONTROLLERS_DIR . '/' . $file_name;\r\n if(file_exists($file_path))\r\n {\r\n // return the path to that file\r\n return $page;\r\n }\r\n else\r\n {\r\n // return the path to the error 404 file\r\n return 'error404';\r\n }\r\n }", "public function getControllerName()\n\t{\n\t\t$explodedArray = explode('/', $_SERVER['REQUEST_URI']);\n\t\tif (array_key_exists(1, $explodedArray) && !empty($explodedArray[1]) && !strstr($explodedArray[1], '?')) {\n\t\t\t$this->controllerName = $explodedArray[1];\n\t\t}else\n\t\t\t$this->controllerName = 'main';\n\t}", "public function getController()\n {\n return ucfirst($this->controller).'Controller';\n }", "function get_controller() {\n\n $parts = explode('/', $this->request_uri);\n if (count($parts) > 2) {\n return $parts[2];\n }\n return null;\n }", "protected function getControllerClassName()\n {\n $className = $this->classPath;\n\n if (false !== strpos($className, '.')) {\n \\Yii::import($className);\n $className = explode('.', $className);\n $className = array_pop($className);\n }\n\n return $className;\n }", "public function GetRouteClass ();", "public function GetControllerClass ();", "public function getCustomController()\n {\n $controllerName = ucfirst(str_replace('post_', '', $this->slug));\n return $controllerName.'Controller';\n }", "public static function name()\n {\n $path = explode('\\\\', get_called_class());\n $controller_name = array_pop($path);\n return trim(str_replace(\"Controller\", \"\", $controller_name));\n }", "protected function getRouteName()\n {\n if (is_null($this->routeName)) {\n $this->routeName = $this->getCurrentCallingControllerName();\n }\n\n return $this->routeName;\n }", "public function get_route_to_controller(){\n\t\treturn $this->route_to_controller;\n\t}", "public function getControllerName(Request $request)\n {\n // Fallback: route to default controller and action.\n $controllerName = $this->defaultControllerName;\n\n // GET parameter overrides the default controller.\n if ($request->hasGet('mvc_controller')) {\n $controllerName = $request->get('mvc_controller');\n }\n\n // POST parameter overrides GET parameter.\n if ($request->hasPost('mvc_controller')) {\n $controllerName = $request->post('mvc_controller');\n }\n \n $roles = $this->authenticationAdapter->getRoles();\n $role = $roles[0];\n \n // If that controller is not allowed, select authentication controller.\n if (!$this->acl->isAllowed($role, $controllerName)) {\n $controllerName = $this->authenticationControllerName;\t\n }\n\n// @todo remember selected controller & action to back-direct later\n// @todo either redirect to auth controller (for anonymous) OR FAIL?\n \n return $controllerName;\n }", "public static function qualifyController($name)\n {\n $shellClass = self::qualifyShell($name);\n\n if ((new $shellClass())->isInternal()) {\n return config('beluga.internal_controller_namespace').'\\\\'.class_basename($name).'Controller';\n }\n\n $class = config('beluga.controller_namespace').'\\\\'.$name.'Controller';\n\n if (class_exists($class)) {\n return $class;\n }\n\n return $name;\n }", "public function getControllerClass(){\r\n\t\t$this->setSystemController();\r\n\t\t$controllers = $this->config['controllers'];\r\n\t\t\r\n\t\t$key = $this->getPageName(false);\r\n\r\n\t\t$controllerClass = null;\r\n\t\tforeach($controllers as $_key => $_val){\r\n\t\t\tif(isset($_val[$key])){\r\n\t\t\t\t$this->matchedRoute = $_val;\r\n\t\t\t\t$controllerClass = $_val[$key];\r\n\t\t\t} else {\r\n\t\t\t\tforeach ($_val as $routeKey => $routeValue) {\r\n\t\t\t\t\tif(is_array($routeValue)){\r\n\t\t\t\t\t\tif(isset($routeValue['route'])){\r\n\t\t\t\t\t\t\t/** \r\n\t\t\t\t\t\t\t * in this part the router is using a regular expresion\r\n\t\t\t\t\t\t\t * on either route or controller or action\r\n\t\t\t\t\t\t\t * this is the 2nd type of routing of opoink\r\n\t\t\t\t\t\t\t * \r\n\t\t\t\t\t\t\t * this type will be deprectated soon as we will be using \r\n\t\t\t\t\t\t\t * the third type instead\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t$this->requestRoute = $this->getRoute(false);\r\n\t\t\t\t\t\t\t$this->requestController = $this->getController(false);\r\n\t\t\t\t\t\t\t$this->requestAction = $this->getAction(false);\r\n\t\r\n\t\t\t\t\t\t\t$r = $this->doCompare($this->requestRoute, $routeValue['route'], $routeValue['route_regex']);\r\n\t\t\t\t\t\t\t$c = $this->doCompare($this->requestController, $routeValue['controller'], $routeValue['controller_regex']);\r\n\t\t\t\t\t\t\t$a = $this->doCompare($this->requestAction, $routeValue['action'], $routeValue['action_regex']);\r\n\t\r\n\t\t\t\t\t\t\t$this->route_regex = $r;\r\n\t\t\t\t\t\t\t$this->controller_regex = $c;\r\n\t\t\t\t\t\t\t$this->action_regex = $a;\r\n\t\r\n\t\t\t\t\t\t\tif($r && $c && $a) {\r\n\t\t\t\t\t\t\t\t$this->matchedRoute = $routeValue;\r\n\t\t\t\t\t\t\t\t$controllerClass = $routeValue['class'];\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\telseif(isset($routeValue['pattern'])){\r\n\t\t\t\t\t\t\t/** \r\n\t\t\t\t\t\t\t * in this part the router is using the full regex\r\n\t\t\t\t\t\t\t * pattern ex: /user/edit/:id/save\r\n\t\t\t\t\t\t\t * this is the third type of routing\r\n\t\t\t\t\t\t\t * currently this type wont work on the xml templating of opoink framework\r\n\t\t\t\t\t\t\t * this can be usefull for rest API request\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\t$params = $this->opoinkRouter->getMatch($routeValue);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(is_array($params)){\r\n\t\t\t\t\t\t\t\tforeach($params as $key => $value){\r\n\t\t\t\t\t\t\t\t\t$_GET[$key] = $value;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$controllerClass = $routeValue['class'];\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\tif($controllerClass){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $controllerClass;\r\n\t}", "public static function routeName() : string\n {\n return str_replace('app_http_actions_', '', snake_case(str_replace('\\\\', '', static::class)));\n }", "protected function convertToControllerClassName($path)\n {\n if (empty($path)) {\n return \"IndexController\";\n }\n return str_replace([\"_\", \"-\"], \"\", ucwords($path, \"_- \")) . 'Controller';\n }", "public function getController()\n {\n $match = $this->_getMatch();\n return $match[0];\n }", "public function getController($ucfirst=true){\r\n\t\tif(is_array($this->matchedRoute) && isset($this->matchedRoute['controller_regex'])){\r\n\t\t\tif($this->matchedRoute['controller_regex'] == true){\r\n\t\t\t\t$this->controller = 'Reg'.sha1($this->matchedRoute['controller']);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif($ucfirst){\r\n\t\t\t$o = ucfirst($this->controller);\r\n\t\t} else {\r\n\t\t\t$o = strtolower($this->controller);\r\n\t\t}\r\n\t\treturn $o;\r\n\t}", "public function getRouteNameByClass($className)\n {\n $routeName = strtolower((new \\ReflectionClass($className))->getShortName());\n\n return $routeName;\n }", "public static function getControllerName()\r\n\t{\r\n\t\treturn TRequest::getCmd('controller');\r\n\t}", "public function getControllerSimpleName()\n {\n return end(explode('\\\\', $this->controllerName));\n }", "public static function getRouteControllerMethod()\r\n {\r\n $route = self::getRouteResolve();\r\n\r\n if(isset($route['method'])){\r\n return $route['method'];\r\n }\r\n\r\n return null;\r\n }", "public function getControllerName()\n {\n return Inflector::id2camel($this->getControllerId(),'-');\n }", "private function getController() {\n\n $controller = 'index';\n $action = 'index';\n\n if ($this->route) {\n\n /**\n * Get the controller and/or action from the route.\n *\n * 0: Controller\n * 1: Action\n * 2+: Additional params\n */\n $controller = request::getRoute(0);\n if(request::getRoute(1)) {\n $action = request::getRoute(1);\n }\n\n /**\n * Loop through and gather any params that\n * might be accompanying the route.\n */\n $done = false;\n $index = 2;\n while (!$done) {\n if (request::getRoute($index)) {\n array_push($this->params, request::getRoute($index));\n $index++;\n } else {\n $done = true;\n }\n }\n\n }\n\n // Set the controller and action.\n $this->controller = $controller;\n $this->action = $action;\n\n // set the file path\n $this->file = $this->path .'/'. $this->controller . '.php';\n }", "public function guess(array $uriPathSegments)\n {\n $lastSegments = array_slice($uriPathSegments, -2);\n $segment = (count($lastSegments) > 0) ? $lastSegments[0] : $this->defaultSegment;\n $class = ucfirst($segment).'Controller';\n\n return $class;\n }", "public function getClassName() : string {\n if ($this->getType() != Router::CLOSURE_ROUTE) {\n $path = $this->getRouteTo();\n $pathExplode = explode(DS, $path);\n\n if (count($pathExplode) >= 1) {\n $fileNameExplode = explode('.', $pathExplode[count($pathExplode) - 1]);\n\n if (count($fileNameExplode) == 2 && $fileNameExplode[1] == 'php') {\n return $fileNameExplode[0];\n }\n }\n }\n\n return '';\n }", "public function routeController()\n\t{\n\t\t$action = \"actionIndex\";\n\n\t\tif (isset($_GET[\"p\"]))\n\t\t{\n\t\t\t$params = array();\n\t\t\t$params = array_filter(explode(\"/\", $_GET[\"p\"]));\n\n\t\t\tif (count($params) != 1)\n\t\t\t{\n\t\t\t\t$action = \"action\";\n\n\t\t\t\tfor ($i = 1; $i < count($params); $i++)\n\t\t\t\t{\n\t\t\t\t\t$action .= ucwords($params[$i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$controller = \"Controller_\" . ucwords($params[0]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcall_user_func(array(new Controller_Index(), $action));\n\t\t\texit();\n\t\t}\n\n\t\tif (isset($controller) && class_exists($controller))\n\t\t{\n\t\t\tif (method_exists(new $controller(), $action))\n\t\t\t{\n\t\t\t\tcall_user_func(array(new $controller(), $action));\n\t\t\t\texit();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//call_user_func(array(new Controller_Error(), \"actionIndex\"));\n\t\t\t\tcall_user_func(array(new Controller_Index(), \"actionIndex\"));\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//call_user_func(array(new Controller_Error(), \"actionIndex\"));\n\t\t\tcall_user_func(array(new Controller_Index(), \"actionIndex\"));\n\t\t\texit();\n\t\t}\n\t}", "public function getControllerName()\n {\n return $this->controller;\n }", "public function getRouteController(PageInterface $page, $routePath)\n {\n $skin = $page->getSkin();\n if (method_exists($skin, 'getThemeNamespaces')) {\n $controllerName = str_replace('/', ' ', $routePath);\n $controllerName = str_replace(' ', '\\\\', ucwords($controllerName));\n $controllerName = str_replace(' ', '', ucwords(str_replace('-', ' ', str_replace('_', '-', $controllerName))));\n $controllerClasses = ['%s\\Controller\\%sController', '%s\\Controller\\%s\\IndexController'];\n foreach ($skin->getThemeNamespaces() as $ns) {\n foreach ($controllerClasses as $controllerClass) {\n $controllerClass = sprintf($controllerClass, $ns, $controllerName);\n if (class_exists($controllerClass)) {\n return $controllerClass;\n }\n }\n }\n }\n return null;\n }", "public static function getController()\n {\n return self::getInstance()->urlParams[self::PARAM_CONTROLLER];\n }", "public function getController() : string\n {\n return preg_replace($this->match, $this->replacement, $this->uri);\n }", "public function getController() : string\n {\n return preg_replace($this->match, $this->replacement, $this->uri);\n }", "public static function controller()\n\t{\n\t\treturn self::$router->getController();\n\t}", "function getController($context) {\n\t\t$uri=$context->getURI();\n\t\t$path=$uri->getPart();\n\t\tswitch ($path) {\n\t\t\tcase 'admin':\n\t\t\t\treturn getAdminController($context);\n\t\t\tcase '':\n\t\t\t\t$uri->prependPart('home');\n\t\t\t\treturn 'Static';\n\t\t\tcase 'static':\n\t\t\t\treturn 'Static';\n\t\t\tcase 'login':\n\t\t\t\treturn 'Login';\n\t\t\tcase 'logout':\n\t\t\t\treturn 'Logout';\n\t\t\tcase \"checkout\":\n\t\t\t\treturn \"Checkout\";\n\t\t\tcase \"myShoppingCart\":\n\t\t\t return \"ShoppingCart\";\n\t\t\tdefault:\n\t\t\t\tthrow new InvalidRequestException (\"No such page \");\n\t\t}\n\t}", "public function getControllerAction()\n {\n $router = $this->serviceManager->get('router');\n $request = $this->serviceManager->get('request');\n $routeMatch = $this->serviceManager->get('Application')->getMvcEvent()->getRouteMatch();\n $routeMatch = $router->match($request);\n if (!is_null($routeMatch)) {\n //echo $routeMatch->getMatchedRouteName();\n $controller = strtolower($routeMatch->getParam('controller'));\n $action = strtolower($routeMatch->getParam('action'));\n $this->controller_action = sprintf(\"%s_%s\", strtolower($controller), strtolower($action));\n } else {\n $this->controller_action = 'application_index';\n }\n }", "public function getControllerName()\n {\n if (is_null($this->_controllerName)) {\n $this->getController();\n }\n return $this->_controllerName;\n }", "public function getControllername()\r\n {\r\n return $this->controllername;\r\n }", "public function getControllerClass()\n {\n if (file_exists($this->getFolder() . '/controller.php')) {\n return $this->getNamespace() . '\\\\Controller';\n }\n return BaseController::class;\n }", "protected function _getController($route)\n {\n $ctrlClass = $this->_getControllerClassName($route);\n $this->_controller = new $ctrlClass;\n \n if (!is_subclass_of($this->_controller, 'Konekt_Framework_Core_Controller_Abstract')) {\n return false;\n }\n \n return $this->_controller;\n }", "public function route()\n\t{\n\t\t$this->request = $this->getRequest();\n\n\t\t$controller_name = 'app\\controllers\\Controller' . ucfirst($this->request->getController());\n\t\t$action_name = 'Action'.ucfirst($this->request->getAction());\n\n\t\tif(!class_exists($controller_name)){\n\t\t\tthrow new NotFoundException('Not found route: ' . $this->request->getPath());\n\t\t}\n\n\t\t$controller = new $controller_name;\n\n\t\tif(method_exists($controller, $action_name)){\n\t\t\t$response = $controller->$action_name();\n\t\t\treturn $response ? $response : static::app()->response;\n\t\t} else {\n\t\t\tthrow new NotFoundException('Not found route: ' . $this->request->getPath());\n\t\t}\n\t}", "public function getControllerActionName() {}", "private function _getControllerClassName($name)\n {\n $parts = explode('/', $name);\n $result = '';\n \n //Vendor part\n foreach ( explode('_', $parts[0]) as $key )\n {\n $result .= ucfirst($key) . '_';\n }\n //Package part\n foreach ( explode('_', $parts[1]) as $key )\n {\n $result .= ucfirst($key) . '_';\n }\n //Module part\n foreach ( explode('_', $parts[2]) as $key )\n {\n $result .= ucfirst($key) . '_';\n }\n \n $result .= 'Controller';\n \n if (empty($parts[3]))\n {\n $result .= '_Default';\n }\n else foreach ( explode('_', $parts[3]) as $key )\n {\n $result .= '_'.ucfirst($key);\n }\n return $result;\n }", "public function controllerAction($route)\n {\n include_once('Controllers/AppController.php');\n\n if (isset($route['route']['plugin']))\n $plugin = 'Plugins/' . $route['route']['plugin'] . '/';\n else $plugin = '';\n\n include_once($plugin . 'Controllers/' . $route['route']['controller'] . '.php');\n $this->Controller = new $route['route']['controller']();\n\n call_user_func_array(array($this->Controller, $route['route']['action']), $route['parameters']);\n }", "public function getController(): string\n {\n return $this->controller;\n }", "public function getController(): string\n {\n return $this->controller;\n }", "public function getControllerName() {\n\t\treturn $this->controller;\n\t}", "public function getControllerName()\n {\n return $this->_controller;\n }", "public static function getActionName()\r\n\t{\r\n\t\treturn TRequest::getCmd('controller');\r\n\t}", "private function getControllerToRun()\n {\n $routing = $this->getRouting();\n $module = strtolower($this->urlParams[self::PARAM_CONTROLLER]);\n \n $module = strtr($module, '-', '_');\n \n // Check if we have routing to this module\n if (isset($routing[$this->apiType][$module])) {\n $controllerName = $routing[$this->apiType][$module];\n } else {\n // Call default controller\n $controllerName = $routing[$this->apiType][self::DEFAULT_CONTROLLER_ROUTE_NAME];\n }\n \n if (class_exists($controllerName)) {\n return new $controllerName();\n }\n \n self::debug(\"Fatal error: Controller ({$controllerName}) not found\");\n }", "public function getController() : string\n {\n return substr($this->uri, 0, -strlen($this->match)) .\n $this->replacement;\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public function getRouteName();", "public function getActionName()\n {\n return isset($this->action['controller']) ? $this->action['controller'] : 'Closure';\n }", "private function getRouteName($route)\n {\n return (isset($route['action']['as'])) ? $route['action']['as'] : '';\n }", "public function getAction($strRoute)\n {\n $strTargetMethodName = 'action' . ucfirst($this->defaultAction);\n if (is_string($strRoute)) {\n $strTargetMethodName = 'action' . ucfirst($strRoute);\n }\n\n return $strTargetMethodName;\n }", "public function getController() {\n\n\t\t\t$masterView = new \\permag\\view\\MasterView();\n\n\t\t\tif (isset($_GET[self::PAGE_CONTROLLER]) && $_GET[self::PAGE_CONTROLLER] != '') {\n\t\t\t\treturn $_GET[self::PAGE_CONTROLLER];\n\t\t\t\n\t\t\t} else {\n\t\t\t\t$this->redirectTo($this->getHomeLink());\n\n\t\t\t}\n\t\t}", "public function getControllerName() {\n return $this->controllerName;\n }", "public function getRouteKeyName();", "public function getRouteKeyName();", "public function getControllerName() {\n\n\t\treturn $this->_controller;\n\t}", "protected function getRoutePrefix()\n {\n if ($this->routePrefix !== null) {\n return $this->routePrefix;\n }\n\n return str_plural(snake_case($this->getControllerName(), '-'));\n }", "public function getController()\n {\n return $this->joUrl['CONTROLLER'];\n }", "static function getControllerClass($component, $controllerName = '', $viewName = '') {\n\n\t\tif ($controllerName) {\n\t\t\t$namePart = $controllerName;\n\t\t}\n\t\telseif ($viewName) {\n\t\t\t$namePart = $viewName;\n\t\t}\n\t\telse {\n\t\t\t$identifier = KLog::log('Invalid parameters, both $controllerName and $viewName parameters are empty. Request URI was \"'.$_SERVER['REQUEST_URI'].'\", query string was \"'.$_SERVER['QUERY_STRING'].'\" Function parameters were '.var_export(func_get_args(), true), 'error');\n\t\t\tthrow new Exception('Invalid parameters, both $controllerName and $viewName parameters are empty. Log identifier is '.$identifier, '400');\n\t\t}\n\n\t\t$className = ucfirst(strtolower(substr($component, 4))).'Controller'.ucfirst(strtolower($namePart));\n\n\t\treturn $className;\n\n\t}", "public function getBaseControllerName(): string;", "function controller($shortName)\n{\n list($shortClass, $shortMethod) = explode('/', $shortName);\n\n return sprintf('KnpU\\\\ActivityRunner\\\\Controller\\\\%sController::%sAction', ucfirst($shortClass), $shortMethod);\n}", "function getRouteName();", "public static function currentRouteName()\n {\n $uri = explode('?', $_SERVER['REQUEST_URI'])[0];\n\n foreach (self::$routes as $key => $val) \n {\n if ($uri === $val['url']) \n {\n return $key;\n }\n }\n }", "public function getController()\n {\n return $this->str_controller;\n }", "public function CompleteControllerName ($controllerNamePascalCase);", "public function getController() //string(4) \"home\"\n {\n \n return $this->controller;\n\n }", "public function getControllerObjectName() {}", "public function getControllerObjectName() {}", "function current_controller($param = '') {\n $param = '/' . $param;\n $CI = & get_instance();\n $dir = $CI->router->directory;\n $class = $CI->router->fetch_class();\n return base_url() . $dir . $class . $param;\n}", "public static function route($uri)\n {\n // get controller name\n $controller_name = (isset($uri[0]) && $uri[0] !== '') ? ucwords($uri[0]) : DEFAULT_CONTROLLER;\n array_shift($uri);\n\n // get method of the controller to call\n $action = (isset($uri[0]) && $uri[0] !== '') ? $uri[0] : 'index';\n array_shift($uri);\n\n // get controller\n $controller = 'App\\Controller\\\\' . $controller_name;\n // dnd($controller);\n \n // instantiate Controller if exists, otherwise give 404 error\n if (method_exists($controller, $action)) {\n $dispatch = new $controller();\n call_user_func_array([$dispatch, $action], $uri);\n } else {\n echo '404 Page not found';\n }\n }", "public function getController()\n {\n return $this->__get($this->getControllerKey());\n }", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function getController()\n {\n $class = $this->parseControllerCallback()[0];\n\n if (! $this->controller) {\n $this->controller = $this->container->make(\"App\\\\Controllers\\\\\".$class);\n }\n\n return $this->controller;\n }", "private function route() {\n if (class_exists($this->controllerName . $this->postfix)) {\n $fullName = $this->controllerName . $this->postfix;\n $this->controllerClass = new $fullName;\n $this->controllerClass->setUp();\n if (count($this->args > 1)) { // Pass args that are not controller class\n $this->controllerClass->setArgs($this->args);\n }\n\n // Second arg in url is our \"action\", try that as a method-call\n $method = strtolower($this->args[0]); // method names are case-insensitive. Might as well take advantage of it.\n if (isset($method) && method_exists($this->controllerClass, $method)) {\n $this->controllerClass->{$this->args[0]}();\n }\n \n } else { // No such class. Use our default\n $this->defaultRoute();\n }\n }", "private function getControllerName(ReflectionClass $class, $resourceAnnotation, ReflectionMethod $method): string\n {\n if ($service = $resourceAnnotation->service) {\n // Use service_id::method notation\n return $service . '::' . $method->getName();\n }\n\n // Use class::method notation\n return $class->getName() . '::' . $method->getName();\n }", "function route_name($url)\n {\n return Route::match([\n 'get', 'post', 'delete', 'patch', 'put'\n ], $url)->getName();\n }", "public function name()\n {\n if ($name = $this->route->getName()) {\n return $name;\n }\n\n $name = $this->route->getActionName();\n\n if ($name === 'Closure') {\n return null;\n }\n\n $namespace = array_get($this->route->getAction(), 'namespace');\n\n return str_replace($namespace . '\\\\', '', $name);\n }", "public function get($route, $controllerAction = '');" ]
[ "0.78788865", "0.7369263", "0.7189787", "0.7114172", "0.7041427", "0.70029676", "0.69719267", "0.69586253", "0.6922376", "0.6905308", "0.68774223", "0.684552", "0.6837356", "0.68089324", "0.6779534", "0.67635584", "0.6739757", "0.66866887", "0.6686167", "0.6681596", "0.6661648", "0.66537935", "0.6622804", "0.661883", "0.65873396", "0.6579459", "0.65787613", "0.65513486", "0.65466154", "0.65281844", "0.64955634", "0.64913356", "0.6477258", "0.64765686", "0.6463572", "0.64396966", "0.6436238", "0.6428881", "0.642095", "0.64042586", "0.6402325", "0.6400341", "0.63994825", "0.6393189", "0.6382289", "0.6380604", "0.63783497", "0.6374896", "0.63508636", "0.63508636", "0.6338366", "0.63289994", "0.63204837", "0.6300337", "0.63001627", "0.629883", "0.629628", "0.6282741", "0.628017", "0.62598854", "0.62541926", "0.6253238", "0.6253238", "0.62504816", "0.6239766", "0.62392455", "0.6239046", "0.6236701", "0.62316245", "0.6230153", "0.6220248", "0.62061226", "0.618876", "0.61808306", "0.6175187", "0.61621153", "0.61621153", "0.6160675", "0.6153822", "0.6120399", "0.6102198", "0.60985893", "0.60922384", "0.6090497", "0.60900486", "0.6088098", "0.60832065", "0.60828894", "0.6070148", "0.6070148", "0.6065104", "0.6051363", "0.6045926", "0.60373425", "0.603566", "0.6030627", "0.60236394", "0.60007626", "0.5993069", "0.59880304" ]
0.6154787
78