@@ 147-150 (lines=4) @@ | ||
144 | public function get_storage_key_getter_patterns( $is_simple_root_field, $full_hierarchy ) { |
|
145 | $patterns = array(); |
|
146 | ||
147 | if ( $is_simple_root_field ) { |
|
148 | $key = $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] ); |
|
149 | $patterns[ $key ] = static::PATTERN_COMPARISON_EQUAL; |
|
150 | } |
|
151 | ||
152 | $parents = $full_hierarchy; |
|
153 | $first_parent = array_shift( $parents ); |
|
@@ 180-182 (lines=3) @@ | ||
177 | public function get_storage_key_deleter_patterns( $is_simple_root_field, $full_hierarchy, $full_hierarchy_index ) { |
|
178 | $patterns = array(); |
|
179 | ||
180 | if ( $is_simple_root_field ) { |
|
181 | $patterns[ $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] ) ] = static::PATTERN_COMPARISON_EQUAL; |
|
182 | } |
|
183 | ||
184 | if ( is_a( $field, '\\Carbon_Fields\\Field\\Complex_Field' ) ) { |
|
185 | $patterns[ $this->get_storage_key_root( $full_hierarchy ) ] = static::PATTERN_COMPARISON_STARTS_WITH; |