19 declare(strict_types=1);
40 if (is_array($a_values)) {
41 if (count($a_values)) {
42 foreach ($a_values as $idx => $element) {
43 $a_values[$idx] = trim($element);
44 if (!$a_values[$idx]) {
45 unset($a_values[$idx]);
48 $a_values = array_unique($a_values);
50 if (!count($a_values)) {
54 $this->values = $a_values;
91 return (!is_array($all) || !count($all));
98 $valid = parent::isValid();
101 if ($max_size && $max_size < count((array) $this->
getTextElements())) {
109 if ($max_len < strlen($element)) {
124 return md5(implode(
"", $elements));
143 if (is_object($a_std)) {
addValidationError(string $a_error_code)
isValidDefinition(ilADTDefinition $a_def)
sort()
description: > Example for rendering a Sort Glyph.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getCheckSum()
Get unique checksum.
ADT definition base class.
importStdClass(?stdClass $a_std)
setTextElements(?array $a_values=null)
getDefinition()
Get definition.