32 if (!is_array($array)) {
42 public function isString($string, $allow_empty =
true)
44 if (!is_string($string)) {
45 if (is_array($string)) {
46 $string = json_encode($string);
50 if (!$allow_empty && $string ==
"") {
62 if (!array_key_exists(
$index, $array)) {
74 if (array_key_exists(
$index, $array)) {
86 if (!array_key_exists(
$index, $array)) {
96 public function isTypeOf($element, $class_name)
98 if (!get_class($element) == $class_name) {
isString($string, $allow_empty=true)
isIndex($index, array $array)
isNotIndex($index, array $array)
Create styles array
The data for the language used.
isTypeOf($element, $class_name)
Tests properties and throws exceptions if not met.