ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
arEditFields Class Reference

GUI-Class arEditFields. More...

+ Inheritance diagram for arEditFields:
+ Collaboration diagram for arEditFields:

Public Member Functions

 sortFields ()
 
- Public Member Functions inherited from arViewFields
 __construct (ActiveRecord $ar)
 
 addField (arViewField $field)
 
 getFields ()
 
 getPrimaryField ()
 
 sortFields ()
 
 getField ($field_name)
 
 setTxtPrefix ($txt_prefix)
 
 getTxtPrefix ()
 
 setCreatedByField ($created_by_field)
 
 setCreationDateField ($creation_date_field)
 
 setModificationDateField ($modification_date_field)
 
 setModifiedByField ($modified_by_field)
 

Data Fields

const FIELD_CLASS = 'arEditField'
 
- Data Fields inherited from arViewFields
const FIELD_CLASS = 'arViewField'
 

Additional Inherited Members

- Protected Attributes inherited from arViewFields
 $fields = array()
 
 $fields_for_display = null
 
 $active_record = null
 
 $txt_prefix = ""
 
 $created_by_field = null
 
 $modified_by_field = null
 
 $creation_date_field = null
 
 $modification_date_field = null
 

Detailed Description

GUI-Class arEditFields.

Author
Timon Amstutz timon.nosp@m..ams.nosp@m.tutz@.nosp@m.ilub.nosp@m..unib.nosp@m.e.ch
Version
2.0.7

Definition at line 12 of file class.arEditFields.php.

Member Function Documentation

◆ sortFields()

arEditFields::sortFields ( )
Returns
bool

Definition at line 20 of file class.arEditFields.php.

References fields, arViewField\getPosition(), and arEditField\getSubelementOf().

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  }
$errors fields
Definition: imgupload.php:51
GUI-Class arEditField.
+ Here is the call graph for this function:

Field Documentation

◆ FIELD_CLASS

const arEditFields::FIELD_CLASS = 'arEditField'

Definition at line 14 of file class.arEditFields.php.


The documentation for this class was generated from the following file: