4 require_once
"Services/ActiveRecord/classes/class.ActiveRecord.php";
81 require_once
"Services/ActiveRecord/classes/Fields/class.arFieldList.php";
87 foreach($this->
properties->getActiveRecordFields() as $element_id => $element_fields)
89 foreach($element_fields as $field)
91 $this->field_element_map[$field->getName()] = $element_id;
101 if(
sizeof($this->
properties->getPrimary()) > 1)
103 throw new ilException(
"ilADTActiveRecordWrapper - no complex primary keys supported yet");
106 foreach($this->
properties->getPrimary() as $primary_id => $primary_element)
109 $field->setHasField(
true);
110 $field->setNotNull(
true);
112 $field->setName($primary_id);
113 $this->
fields->setPrimaryField($field);
134 $primary = array_shift($this->
properties->getPrimary());
145 if(array_key_exists($field_name, $this->field_element_map))
147 $element = $this->
properties->getElement($this->field_element_map[$field_name]);
148 return $element->getFieldValue($field_name);
155 public function wakeUp($field_name, $field_value)
157 if(array_key_exists($field_name, $this->field_element_map))
159 $element = $this->
properties->getElement($this->field_element_map[$field_name]);
160 return $element->setFieldValue($field_name, $field_value);
initFieldList()
Get field list instance for ADT group.
ADT Active Record service wrapper class.
Base class for ILIAS Exception handling.
wakeUp($field_name, $field_value)
__construct(ilADTGroupActiveRecordBridge $a_properties)
Constructor.
const FIELD_TYPE_TIMESTAMP
getActiveRecordFieldTypeFromMDB2($a_mdb2_type)
Create styles array
The data for the language used.
getConnectorContainerName()
static returnDbTableName()