@@ 4802-4809 (lines=8) @@ | ||
4799 | public function field_settings($include_db_only_fields = false) |
|
4800 | { |
|
4801 | if ($include_db_only_fields) { |
|
4802 | if ($this->_cached_fields === null) { |
|
4803 | $this->_cached_fields = array(); |
|
4804 | foreach ($this->_fields as $fields_corresponding_to_table) { |
|
4805 | foreach ($fields_corresponding_to_table as $field_name => $field_obj) { |
|
4806 | $this->_cached_fields[$field_name] = $field_obj; |
|
4807 | } |
|
4808 | } |
|
4809 | } |
|
4810 | return $this->_cached_fields; |
|
4811 | } else { |
|
4812 | if ($this->_cached_fields_non_db_only === null) { |
|
@@ 4811-4824 (lines=14) @@ | ||
4808 | } |
|
4809 | } |
|
4810 | return $this->_cached_fields; |
|
4811 | } else { |
|
4812 | if ($this->_cached_fields_non_db_only === null) { |
|
4813 | $this->_cached_fields_non_db_only = array(); |
|
4814 | foreach ($this->_fields as $fields_corresponding_to_table) { |
|
4815 | foreach ($fields_corresponding_to_table as $field_name => $field_obj) { |
|
4816 | /** @var $field_obj EE_Model_Field_Base */ |
|
4817 | if (! $field_obj->is_db_only_field()) { |
|
4818 | $this->_cached_fields_non_db_only[$field_name] = $field_obj; |
|
4819 | } |
|
4820 | } |
|
4821 | } |
|
4822 | } |
|
4823 | return $this->_cached_fields_non_db_only; |
|
4824 | } |
|
4825 | } |
|
4826 | ||
4827 |