@@ 3960-3967 (lines=8) @@ | ||
3957 | */ |
|
3958 | public function field_settings($include_db_only_fields = false){ |
|
3959 | if( $include_db_only_fields ){ |
|
3960 | if( $this->_cached_fields === NULL ){ |
|
3961 | $this->_cached_fields = array(); |
|
3962 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
3963 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
3964 | $this->_cached_fields[$field_name]=$field_obj; |
|
3965 | } |
|
3966 | } |
|
3967 | } |
|
3968 | return $this->_cached_fields; |
|
3969 | }else{ |
|
3970 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
@@ 3969-3982 (lines=14) @@ | ||
3966 | } |
|
3967 | } |
|
3968 | return $this->_cached_fields; |
|
3969 | }else{ |
|
3970 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
3971 | $this->_cached_fields_non_db_only = array(); |
|
3972 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
3973 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
3974 | /** @var $field_obj EE_Model_Field_Base */ |
|
3975 | if( ! $field_obj->is_db_only_field() ){ |
|
3976 | $this->_cached_fields_non_db_only[$field_name]=$field_obj; |
|
3977 | } |
|
3978 | } |
|
3979 | } |
|
3980 | } |
|
3981 | return $this->_cached_fields_non_db_only; |
|
3982 | } |
|
3983 | } |
|
3984 | ||
3985 |