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

GUI-Class arViewField. More...

+ Inheritance diagram for arViewField:
+ Collaboration diagram for arViewField:

Public Member Functions

 __construct ($name, $txt=NULL, $position=0, $visible=true, $custom_field=false)
 setPosition ($position)
 getPosition ()
 setTxt ($txt)
 getTxt ()
 setVisible ($visible)
 getVisible ()
 setCustomField ($custom_field)
 getCustomField ()
 setTxtPrefix ($txt_prefix)
 getTxtPrefix ()
 getGetFunctionName ()
 getSetFunctionName ()
 setIsCreatedByField ($is_created_by_field)
 setIsCreationDateField ($is_creation_date_field)
 getIsCreationDateField ()
 getIsCreatedByField ()
 setIsModifiedByField ($is_modified_by_field)
 getIsModifiedByField ()
 setIsModificationDateField ($is_modification_date_field)
 getIsModificationDateField ()
- Public Member Functions inherited from arField
 loadFromArray ($name, array $array)
 loadFromStdClass ($name, stdClass $stdClass)
 getAttributesForConnector ()
 getAttributesForDescription ()
 isDateField ()
 setFieldType ($field_type)
 getFieldType ()
 setHasField ($has_field)
 getHasField ()
 setLength ($length)
 getLength ()
 setName ($name)
 getName ()
 setNotNull ($not_null)
 getNotNull ()
 setPrimary ($primary)
 getPrimary ()
 setUnique ($unique)
 getUnique ()
 setSequence ($sequence)
 getSequence ()
 setIndex ($index)
 getIndex ()

Static Public Member Functions

static setAllowedAttributes ($allowed_attributes)
static getAllowedAttributes ()
static castFromFieldToViewField (arField $field)
- Static Public Member Functions inherited from arField
static isAllowedAttribute ($type, $field_name)
static isDateFieldType ($field_type)

Protected Attributes

 $txt_prefix = ""
 $txt = ""
 $position = 1000
 $visible = false
 $custom_field = false
 $get_function_name = ""
 $set_function_name = ""
 $is_created_by_field = false
 $is_modified_by_field = false
 $is_creation_date_field = false
 $is_modification_date_field = false
- Protected Attributes inherited from arField
 $fieldtype
 $length = NULL
 $is_primary = false
 $name = ''
 $not_null = false
 $unique = false
 $has_field = false
 $sequence = false
 $index = false

Additional Inherited Members

- Data Fields inherited from arField
const FIELD_TYPE_TEXT = 'text'
const FIELD_TYPE_INTEGER = 'integer'
const FIELD_TYPE_FLOAT = 'float'
const FIELD_TYPE_DATE = 'date'
const FIELD_TYPE_TIME = 'time'
const FIELD_TYPE_TIMESTAMP = 'timestamp'
const FIELD_TYPE_CLOB = 'clob'
- Static Protected Attributes inherited from arField
static $allowed_attributes
static $date_fields

Detailed Description

GUI-Class arViewField.

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 11 of file class.arViewField.php.

Constructor & Destructor Documentation

arViewField::__construct (   $name,
  $txt = NULL,
  $position = 0,
  $visible = true,
  $custom_field = false 
)
Parameters
$name
null$txt
int$position
bool$visible
bool$custom_field

Definition at line 66 of file class.arViewField.php.

References $custom_field, arField\$name, $position, $txt, $visible, ActiveRecord\_toCamelCase(), and arField\getName().

{
$this->name = $name;
$this->position = $position;
$this->txt = $txt;
$this->visible = $visible;
$this->custom_field = $custom_field;
$camel_case = ActiveRecord::_toCamelCase($this->getName(), true);
$this->get_function_name = "get" . $camel_case;
$this->set_function_name = "set" . $camel_case;
}

+ Here is the call graph for this function:

Member Function Documentation

static arViewField::castFromFieldToViewField ( arField  $field)
static
Parameters
arField$field
Returns
arViewField

Definition at line 264 of file class.arViewField.php.

References arField\$name, and arField\getName().

{
require_once('./Customizing/global/plugins/Libraries/ActiveRecord/Views/Index/class.arIndexTableField.php');
require_once('./Customizing/global/plugins/Libraries/ActiveRecord/Views/Edit/class.arEditField.php');
require_once('./Customizing/global/plugins/Libraries/ActiveRecord/Views/Display/class.arDisplayField.php');
$field_class = get_called_class();
$obj = new $field_class($field->getName());
foreach (get_object_vars($field) as $key => $name) {
$obj->$key = $name;
}
return $obj;
}

+ Here is the call graph for this function:

static arViewField::getAllowedAttributes ( )
static
Returns
array

Definition at line 158 of file class.arViewField.php.

References arField\$allowed_attributes.

arViewField::getCustomField ( )
Returns
boolean

Definition at line 142 of file class.arViewField.php.

References $custom_field.

Referenced by arDisplayGUI\setArFieldData().

{
}

+ Here is the caller graph for this function:

arViewField::getGetFunctionName ( )
Returns
string

Definition at line 182 of file class.arViewField.php.

References $get_function_name.

arViewField::getIsCreatedByField ( )
Returns
boolean

Definition at line 222 of file class.arViewField.php.

References $is_created_by_field.

Referenced by arDisplayGUI\setArFieldData().

+ Here is the caller graph for this function:

arViewField::getIsCreationDateField ( )
Returns
boolean

Definition at line 214 of file class.arViewField.php.

References $is_creation_date_field.

arViewField::getIsModificationDateField ( )
Returns
boolean

Definition at line 254 of file class.arViewField.php.

References $is_modification_date_field.

arViewField::getIsModifiedByField ( )
Returns
boolean

Definition at line 238 of file class.arViewField.php.

References $is_modified_by_field.

Referenced by arDisplayGUI\setArFieldData().

+ Here is the caller graph for this function:

arViewField::getPosition ( )
Returns
string

Definition at line 90 of file class.arViewField.php.

References $position.

Referenced by arEditFields\sortFields(), and arViewFields\sortFields().

{
}

+ Here is the caller graph for this function:

arViewField::getSetFunctionName ( )
Returns
string

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

References $set_function_name.

Referenced by arEditGUI\setDateTimeRecordField(), arEditGUI\setNumericRecordField(), and arEditGUI\setTextRecordField().

+ Here is the caller graph for this function:

arViewField::getTxt ( )
Returns
string

Definition at line 106 of file class.arViewField.php.

References $txt, arField\getName(), and getTxtPrefix().

Referenced by arEditGUI\addBooleanInputField(), arEditGUI\addClobInputField(), arEditGUI\addDateTimeInputField(), arIndexTableGUI\addFilterField(), arEditGUI\addNumbericInputField(), and arEditGUI\addTextInputField().

{
if ($this->txt) {
return $this->getTxtPrefix() . $this->txt;
}
return $this->getTxtPrefix() . $this->getName();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

arViewField::getTxtPrefix ( )
Returns
string

Definition at line 174 of file class.arViewField.php.

References $txt_prefix.

Referenced by getTxt().

{
}

+ Here is the caller graph for this function:

arViewField::getVisible ( )
Returns
string

Definition at line 126 of file class.arViewField.php.

References $visible.

Referenced by arIndexTableGUI\checkColumnVisibile().

{
}

+ Here is the caller graph for this function:

static arViewField::setAllowedAttributes (   $allowed_attributes)
static
Parameters
array$allowed_attributes

Definition at line 150 of file class.arViewField.php.

References arField\$allowed_attributes.

{
self::$allowed_attributes = $allowed_attributes;
}
arViewField::setCustomField (   $custom_field)
Parameters
boolean$custom_field

Definition at line 134 of file class.arViewField.php.

References $custom_field.

{
$this->custom_field = $custom_field;
}
arViewField::setIsCreatedByField (   $is_created_by_field)
Parameters
boolean$is_created_by_field

Reimplemented in arEditField.

Definition at line 198 of file class.arViewField.php.

References $is_created_by_field.

{
$this->is_created_by_field = $is_created_by_field;
}
arViewField::setIsCreationDateField (   $is_creation_date_field)
Parameters
$is_creation_date_field

Reimplemented in arEditField.

Definition at line 206 of file class.arViewField.php.

References $is_creation_date_field.

{
$this->is_creation_date_field = $is_creation_date_field;
}
arViewField::setIsModificationDateField (   $is_modification_date_field)
Parameters
$is_modification_date_field

Reimplemented in arEditField.

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

References $is_modification_date_field.

{
$this->is_modification_date_field = $is_modification_date_field;
}
arViewField::setIsModifiedByField (   $is_modified_by_field)
Parameters
boolean$is_modified_by_field

Reimplemented in arEditField.

Definition at line 230 of file class.arViewField.php.

References $is_modified_by_field.

{
$this->is_modified_by_field = $is_modified_by_field;
}
arViewField::setPosition (   $position)
Parameters
string$position

Definition at line 82 of file class.arViewField.php.

References $position.

{
$this->position = $position;
}
arViewField::setTxt (   $txt)
Parameters
string$txt

Definition at line 98 of file class.arViewField.php.

References $txt.

{
$this->txt = $txt;
}
arViewField::setTxtPrefix (   $txt_prefix)
Parameters
string$txt_prefix

Definition at line 166 of file class.arViewField.php.

References $txt_prefix.

{
$this->txt_prefix = $txt_prefix;
}
arViewField::setVisible (   $visible)
Parameters
string$visible

Definition at line 118 of file class.arViewField.php.

References $visible.

Referenced by arEditField\setIsCreatedByField(), arEditField\setIsCreationDateField(), arEditField\setIsModificationDateField(), arEditField\setIsModifiedByField(), and arIndexTableField\setVisibleDefault().

{
$this->visible = $visible;
}

+ Here is the caller graph for this function:

Field Documentation

arViewField::$custom_field = false
protected
arViewField::$get_function_name = ""
protected

Definition at line 36 of file class.arViewField.php.

Referenced by getGetFunctionName().

arViewField::$is_created_by_field = false
protected
arViewField::$is_creation_date_field = false
protected
arViewField::$is_modification_date_field = false
protected
arViewField::$is_modified_by_field = false
protected
arViewField::$position = 1000
protected
arViewField::$set_function_name = ""
protected

Definition at line 40 of file class.arViewField.php.

Referenced by getSetFunctionName().

arViewField::$txt = ""
protected

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

Referenced by arIndexTableField\__construct(), __construct(), getTxt(), and setTxt().

arViewField::$txt_prefix = ""
protected

Definition at line 16 of file class.arViewField.php.

Referenced by getTxtPrefix(), and setTxtPrefix().

arViewField::$visible = false
protected

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