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