3 declare(strict_types=1);
34 if ($value !== null) {
35 $this->
getADT()->setNumber($value);
43 $def = $this->
getADT()->getCopyOfDefinition();
48 $min = $def->getMin();
53 $max = $def->getMax();
56 #$number->setMaxValue($max); 57 #$length = strlen((string) $max); 58 #$number->setSize($length); 59 #$number->setMaxLength($length); 61 $number->setValue((
string) $this->
getADT()->getNumber());
71 $item->setValue(
$post);
74 $this->
getADT()->setNumber();
81 public function getSQLCondition(
string $a_element_id,
int $mode = self::SQL_LIKE, array $quotedWords = []): string
84 return $a_element_id .
" = " . $this->db->quote($this->
getADT()->getNumber(),
"integer");
91 if ($this->
getADT()->getCopyOfDefinition()->isComparableTo($a_adt)) {
92 return $this->
getADT()->equals($a_adt);
102 return serialize(array($this->
getADT()->getNumber()));
109 $a_value = unserialize($a_value);
110 if (is_array($a_value)) {
111 $this->
getADT()->setNumber($a_value[0]);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isValidADTDefinition(ilADTDefinition $a_adt_def)
extractPostValues(array $a_post=null)
Extract data from (post) values.
getSQLCondition(string $a_element_id, int $mode=self::SQL_LIKE, array $quotedWords=[])
shouldBeImportedFromPost($a_post)
Check if incoming values should be imported at all.
readFilter()
Load value(s) from filter store (in session)
Class ilADTSearchBridgeSingle.
setSerializedValue(string $a_value)
importFromPost(array $a_post=null)
isInCondition(ilADT $a_adt)
ADT definition base class.
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.