| @@ 4008-4015 (lines=8) @@ | ||
| 4005 | */ |
|
| 4006 | public function field_settings($include_db_only_fields = false){ |
|
| 4007 | if( $include_db_only_fields ){ |
|
| 4008 | if( $this->_cached_fields === NULL ){ |
|
| 4009 | $this->_cached_fields = array(); |
|
| 4010 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
| 4011 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
| 4012 | $this->_cached_fields[$field_name]=$field_obj; |
|
| 4013 | } |
|
| 4014 | } |
|
| 4015 | } |
|
| 4016 | return $this->_cached_fields; |
|
| 4017 | }else{ |
|
| 4018 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
| @@ 4017-4030 (lines=14) @@ | ||
| 4014 | } |
|
| 4015 | } |
|
| 4016 | return $this->_cached_fields; |
|
| 4017 | }else{ |
|
| 4018 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
| 4019 | $this->_cached_fields_non_db_only = array(); |
|
| 4020 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
| 4021 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
| 4022 | /** @var $field_obj EE_Model_Field_Base */ |
|
| 4023 | if( ! $field_obj->is_db_only_field() ){ |
|
| 4024 | $this->_cached_fields_non_db_only[$field_name]=$field_obj; |
|
| 4025 | } |
|
| 4026 | } |
|
| 4027 | } |
|
| 4028 | } |
|
| 4029 | return $this->_cached_fields_non_db_only; |
|
| 4030 | } |
|
| 4031 | } |
|
| 4032 | ||
| 4033 | ||