2 include_once(
'./Customizing/global/plugins/Libraries/ActiveRecord/Fields/class.arField.php');
3 include_once(
'./Customizing/global/plugins/Libraries/ActiveRecord/Views/class.arViewField.php');
53 $this->active_record = $ar;
54 $this->generateFields();
61 protected function generateFields() {
62 $fields = $this->active_record->getArFieldList()->getFields();
63 foreach (
$fields as $standard_field) {
64 $current_class = get_called_class();
69 $field = $field_class::castFromFieldToViewField($standard_field);
114 public function getFieldsForDisplay() {
115 if (!$this->fields_for_display && $this->
getFields()) {
120 if (($field->getVisible() || $field->getPrimary())) {
121 $this->fields_for_display[] = $field;
136 return $this->
fields[$field_name];
171 public function getCreatedByField() {
172 if (!$this->created_by_field) {
177 if ($field->getIsCreatedByField()) {
178 return $this->created_by_field = $field;
199 public function getCreationDateField() {
200 if (!$this->creation_date_field) {
205 if ($field->getIsCreationDateField()) {
206 return $this->creation_date_field = $field;
227 public function getModificationDateField() {
228 if (!$this->modification_date_field) {
233 if ($field->getIsModificationDateField()) {
234 return $this->modification_date_field = $field;
255 public function getModifiedByField() {
256 if (!$this->modified_by_field) {
261 if ($field->getIsModifiedByField()) {
262 return $this->modified_by_field = $field;