@@ 4047-4054 (lines=8) @@ | ||
4044 | */ |
|
4045 | public function field_settings($include_db_only_fields = false){ |
|
4046 | if( $include_db_only_fields ){ |
|
4047 | if( $this->_cached_fields === NULL ){ |
|
4048 | $this->_cached_fields = array(); |
|
4049 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
4050 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
4051 | $this->_cached_fields[$field_name]=$field_obj; |
|
4052 | } |
|
4053 | } |
|
4054 | } |
|
4055 | return $this->_cached_fields; |
|
4056 | }else{ |
|
4057 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
@@ 4056-4069 (lines=14) @@ | ||
4053 | } |
|
4054 | } |
|
4055 | return $this->_cached_fields; |
|
4056 | }else{ |
|
4057 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
4058 | $this->_cached_fields_non_db_only = array(); |
|
4059 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
4060 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
4061 | /** @var $field_obj EE_Model_Field_Base */ |
|
4062 | if( ! $field_obj->is_db_only_field() ){ |
|
4063 | $this->_cached_fields_non_db_only[$field_name]=$field_obj; |
|
4064 | } |
|
4065 | } |
|
4066 | } |
|
4067 | } |
|
4068 | return $this->_cached_fields_non_db_only; |
|
4069 | } |
|
4070 | } |
|
4071 | ||
4072 |