ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 ()
 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

arEditFields::sortFields ( )
Returns
bool

Reimplemented from arViewFields.

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

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

{
uasort($this->fields, function (arEditField $field_a, arEditField $field_b) {
//If both fields are or are not subelements, then let the position decide which is displayed first
if (($field_a->getSubelementOf()) == ($field_b->getSubelementOf())) {
return $field_a->getPosition() > $field_b->getPosition();
} //If only one of the elements is a subelement, then the other has to be generated first
else {
return $field_a->getSubelementOf();
}
});
}

+ Here is the call graph for this function:

Field Documentation

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: