@@ 4891-4901 (lines=11) @@ | ||
4888 | */ |
|
4889 | public function field_settings($include_db_only_fields = false) |
|
4890 | { |
|
4891 | if ($include_db_only_fields) { |
|
4892 | if ($this->_cached_fields === null) { |
|
4893 | $this->_cached_fields = array(); |
|
4894 | foreach ($this->_fields as $fields_corresponding_to_table) { |
|
4895 | foreach ($fields_corresponding_to_table as $field_name => $field_obj) { |
|
4896 | $this->_cached_fields[$field_name] = $field_obj; |
|
4897 | } |
|
4898 | } |
|
4899 | } |
|
4900 | return $this->_cached_fields; |
|
4901 | } |
|
4902 | if ($this->_cached_fields_non_db_only === null) { |
|
4903 | $this->_cached_fields_non_db_only = array(); |
|
4904 | foreach ($this->_fields as $fields_corresponding_to_table) { |
|
@@ 4902-4912 (lines=11) @@ | ||
4899 | } |
|
4900 | return $this->_cached_fields; |
|
4901 | } |
|
4902 | if ($this->_cached_fields_non_db_only === null) { |
|
4903 | $this->_cached_fields_non_db_only = array(); |
|
4904 | foreach ($this->_fields as $fields_corresponding_to_table) { |
|
4905 | foreach ($fields_corresponding_to_table as $field_name => $field_obj) { |
|
4906 | /** @var $field_obj EE_Model_Field_Base */ |
|
4907 | if (! $field_obj->is_db_only_field()) { |
|
4908 | $this->_cached_fields_non_db_only[$field_name] = $field_obj; |
|
4909 | } |
|
4910 | } |
|
4911 | } |
|
4912 | } |
|
4913 | return $this->_cached_fields_non_db_only; |
|
4914 | } |
|
4915 |