@@ 3692-3699 (lines=8) @@ | ||
3689 | */ |
|
3690 | public function field_settings($include_db_only_fields = false){ |
|
3691 | if( $include_db_only_fields ){ |
|
3692 | if( $this->_cached_fields === NULL ){ |
|
3693 | $this->_cached_fields = array(); |
|
3694 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
3695 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
3696 | $this->_cached_fields[$field_name]=$field_obj; |
|
3697 | } |
|
3698 | } |
|
3699 | } |
|
3700 | return $this->_cached_fields; |
|
3701 | }else{ |
|
3702 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
@@ 3701-3714 (lines=14) @@ | ||
3698 | } |
|
3699 | } |
|
3700 | return $this->_cached_fields; |
|
3701 | }else{ |
|
3702 | if( $this->_cached_fields_non_db_only === NULL ){ |
|
3703 | $this->_cached_fields_non_db_only = array(); |
|
3704 | foreach($this->_fields as $fields_corresponding_to_table){ |
|
3705 | foreach($fields_corresponding_to_table as $field_name => $field_obj){ |
|
3706 | /** @var $field_obj EE_Model_Field_Base */ |
|
3707 | if( ! $field_obj->is_db_only_field() ){ |
|
3708 | $this->_cached_fields_non_db_only[$field_name]=$field_obj; |
|
3709 | } |
|
3710 | } |
|
3711 | } |
|
3712 | } |
|
3713 | return $this->_cached_fields_non_db_only; |
|
3714 | } |
|
3715 | } |
|
3716 | ||
3717 |