44 parent::__construct($a_title, $a_postvar);
47 $this->lng = $DIC->language();
66 $this->items[
$id] = $item;
68 $this->labels[
$id] = $label;
80 if (isset($this->items[
$id])) {
81 return $this->items[
$id];
92 if (isset($this->items[
$id])) {
93 unset($this->items[$id]);
106 foreach ($this->items as
$id => $obj) {
107 if (method_exists($obj, $method)) {
120 foreach ($this->items as
$id => $obj) {
131 $data = unserialize($a_data);
134 foreach ($this->items as
$id => $obj) {
138 foreach ($this->items as
$id => $obj) {
139 if (method_exists($obj,
"setValue")) {
154 if (in_array($mode,
array(self::COMPARISON_ASCENDING, self::COMPARISON_DESCENDING))) {
155 foreach ($this->items as $obj) {
156 if (!method_exists($obj,
"getPostValueForComparison")) {
160 $this->comparison_mode = $mode;
172 if (is_array($a_value)) {
173 foreach ($a_value as
$id => $value) {
174 if (isset($this->items[
$id])) {
175 if (method_exists($this->items[$id],
"setValue")) {
176 $this->items[
$id]->setValue($value);
179 elseif (method_exists($this->items[$id],
"setDate")) {
180 $this->items[
$id]->setDate($value);
184 } elseif ($a_value === null) {
185 foreach ($this->items as $item) {
186 if (method_exists($item,
"setValue")) {
187 $item->setValue(null);
190 elseif (method_exists($item,
"setDate")) {
194 elseif (method_exists($item,
"setMonths")) {
198 $item->setMinutes(0);
199 $item->setSeconds(0);
213 foreach ($this->items as
$id => $obj) {
214 if (method_exists($obj,
"getValue")) {
218 elseif (method_exists($obj,
"setDate")) {
232 foreach ($this->items as
$id => $obj) {
233 $obj->setValueByArray($a_values);
244 if (
sizeof($this->items)) {
245 foreach ($this->items as
$id => $obj) {
246 if (!$obj->checkInput()) {
251 if ($this->comparison_mode) {
253 foreach ($this->items as
$id => $obj) {
254 $value = $obj->getPostValueForComparison();
256 if ($prev !== null) {
257 if ($this->comparison_mode == self::COMPARISON_ASCENDING) {
258 if ($value < $prev) {
262 if ($value > $prev) {
285 $a_tpl->setCurrentBlock(
"prop_generic");
286 $a_tpl->setVariable(
"PROP_GENERIC",
$html);
287 $a_tpl->parseCurrentBlock();
297 $tpl =
new ilTemplate(
"tpl.prop_combination.html",
true,
true,
"Services/Form");
299 if (
sizeof($this->items)) {
300 foreach ($this->items as
$id => $obj) {
302 if (isset($this->labels[
$id])) {
303 $tpl->setCurrentBlock(
"prop_combination_label");
304 $tpl->setVariable(
"LABEL", $this->labels[$id]);
305 $tpl->parseCurrentBlock();
308 $tpl->setCurrentBlock(
"prop_combination");
309 $tpl->setVariable(
"FIELD", $obj->render());
310 $tpl->parseCurrentBlock();
Interface for property form input GUI classes that can be used in table filters.
if(!array_key_exists('StateId', $_REQUEST)) $id
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.