ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arEditFields.php
Go to the documentation of this file.
1<?php
2require_once('./Services/ActiveRecord/Views/class.arViewField.php');
3require_once('./Services/ActiveRecord/Views/class.arViewFields.php');
4
13{
14 const FIELD_CLASS = 'arEditField';
15
16
20 public function sortFields()
21 {
22 uasort($this->fields, function (arEditField $field_a, arEditField $field_b) {
23 //If both fields are or are not subelements, then let the position decide which is displayed first
24 if (($field_a->getSubelementOf()) == ($field_b->getSubelementOf())) {
25 return $field_a->getPosition() > $field_b->getPosition();
26 } //If only one of the elements is a subelement, then the other has to be generated first
27 else {
28 return $field_a->getSubelementOf();
29 }
30 });
31 }
32}
An exception for terminatinating execution or to throw for unit testing.
GUI-Class arEditField.
GUI-Class arEditFields.
GUI-Class arViewFields.
$errors fields
Definition: imgupload.php:51