| @@ 3684-3691 (lines=8) @@ | ||
| 3681 | */ |
|
| 3682 | public function field_settings($include_db_only_fields = false){ |
|
| 3683 | if( $include_db_only_fields ){ |
|
| 3684 | if( $this->_cached_fields === NULL ){ |
|
| 3685 | $this->_cached_fields = array(); |
|
| 3686 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
| 3687 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
| 3688 | $this->_cached_fields[$field_name]=$field_obj; |
|
| 3689 | } |
|
| 3690 | } |
|
| 3691 | } |
|
| 3692 | return $this->_cached_fields; |
|
| 3693 | }else{ |
|
| 3694 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
| @@ 3693-3706 (lines=14) @@ | ||
| 3690 | } |
|
| 3691 | } |
|
| 3692 | return $this->_cached_fields; |
|
| 3693 | }else{ |
|
| 3694 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
| 3695 | $this->_cached_fields_non_db_only = array(); |
|
| 3696 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
| 3697 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
| 3698 | /** @var $field_obj EE_Model_Field_Base */ |
|
| 3699 | if( ! $field_obj->is_db_only_field() ){ |
|
| 3700 | $this->_cached_fields_non_db_only[$field_name]=$field_obj; |
|
| 3701 | } |
|
| 3702 | } |
|
| 3703 | } |
|
| 3704 | } |
|
| 3705 | return $this->_cached_fields_non_db_only; |
|
| 3706 | } |
|
| 3707 | } |
|
| 3708 | ||
| 3709 | ||