ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
arViewFields Class Reference

GUI-Class arViewFields. More...

+ Inheritance diagram for arViewFields:
+ Collaboration diagram for arViewFields:

Public Member Functions

 __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 = 'arViewField'

Protected Attributes

 $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 arViewFields.

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.arViewFields.php.

Constructor & Destructor Documentation

arViewFields::__construct ( ActiveRecord  $ar)
Parameters
ActiveRecord$ar

Definition at line 52 of file class.arViewFields.php.

{
$this->active_record = $ar;
$this->generateFields();
}

Member Function Documentation

arViewFields::addField ( arViewField  $field)
Parameters
arViewField

Definition at line 80 of file class.arViewFields.php.

References fields, and arField\getName().

{
$this->fields[$field->getName()] = $field;
}

+ Here is the call graph for this function:

arViewFields::getField (   $field_name)
Parameters
$field_name
Returns
arViewField

Definition at line 135 of file class.arViewFields.php.

References fields.

Referenced by getPrimaryField().

{
return $this->fields[$field_name];
}

+ Here is the caller graph for this function:

arViewFields::getFields ( )
Returns
arViewField[]

Definition at line 88 of file class.arViewFields.php.

References $fields.

Referenced by setTxtPrefix().

{
return $this->fields;
}

+ Here is the caller graph for this function:

arViewFields::getPrimaryField ( )
Returns
arViewField

Definition at line 96 of file class.arViewFields.php.

References getField(), and arFieldCache\getPrimaryFieldName().

{
return $this->getField(arFieldCache::getPrimaryFieldName($this->active_record));
}

+ Here is the call graph for this function:

arViewFields::getTxtPrefix ( )
Returns
string

Definition at line 154 of file class.arViewFields.php.

References $txt_prefix.

{
}
arViewFields::setCreatedByField (   $created_by_field)
Parameters
\arViewField$created_by_field

Definition at line 162 of file class.arViewFields.php.

References $created_by_field.

{
$created_by_field->setIsCreatedByField(true);
$this->created_by_field = $created_by_field;
}
arViewFields::setCreationDateField (   $creation_date_field)
Parameters
\arViewField$creation_date_field

Definition at line 190 of file class.arViewFields.php.

References $creation_date_field.

{
$creation_date_field->setIsCreationDateField(true);
$this->creation_date_field = $creation_date_field;
}
arViewFields::setModificationDateField (   $modification_date_field)
Parameters
\arViewField$modification_date_field

Definition at line 218 of file class.arViewFields.php.

References $modification_date_field.

{
$modification_date_field->setIsModificationDateField(true);
$this->modification_date_field = $modification_date_field;
}
arViewFields::setModifiedByField (   $modified_by_field)
Parameters
\arViewField$modified_by_field

Definition at line 246 of file class.arViewFields.php.

References $modified_by_field.

{
$modified_by_field->setIsModifiedByField(true);
$this->modified_by_field = $modified_by_field;
}
arViewFields::setTxtPrefix (   $txt_prefix)
Parameters
string$txt_prefix

Definition at line 143 of file class.arViewFields.php.

References $txt_prefix, and getFields().

{
$this->txt_prefix = $txt_prefix;
foreach ($this->getFields() as $field) {
$field->setTxtPrefix($txt_prefix);
}
}

+ Here is the call graph for this function:

arViewFields::sortFields ( )
Returns
bool

Reimplemented in arEditFields.

Definition at line 104 of file class.arViewFields.php.

References fields, and arViewField\getPosition().

{
uasort($this->fields, function (arViewField $field_a, arViewField $field_b) {
return $field_a->getPosition() > $field_b->getPosition();
});
}

+ Here is the call graph for this function:

Field Documentation

arViewFields::$active_record = NULL
protected

Definition at line 26 of file class.arViewFields.php.

arViewFields::$created_by_field = NULL
protected

Definition at line 34 of file class.arViewFields.php.

Referenced by setCreatedByField().

arViewFields::$creation_date_field = NULL
protected

Definition at line 42 of file class.arViewFields.php.

Referenced by setCreationDateField().

arViewFields::$fields = array()
protected

Definition at line 18 of file class.arViewFields.php.

Referenced by getFields().

arViewFields::$fields_for_display = NULL
protected

Definition at line 22 of file class.arViewFields.php.

arViewFields::$modification_date_field = NULL
protected

Definition at line 46 of file class.arViewFields.php.

Referenced by setModificationDateField().

arViewFields::$modified_by_field = NULL
protected

Definition at line 38 of file class.arViewFields.php.

Referenced by setModifiedByField().

arViewFields::$txt_prefix = ""
protected

Definition at line 30 of file class.arViewFields.php.

Referenced by getTxtPrefix(), and setTxtPrefix().

const arViewFields::FIELD_CLASS = 'arViewField'

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


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