|
@@ 166-169 (lines=4) @@
|
| 163 |
|
public function get_storage_key_getter_patterns( $is_simple_root_field, $full_hierarchy ) { |
| 164 |
|
$patterns = array(); |
| 165 |
|
|
| 166 |
|
if ( $is_simple_root_field ) { |
| 167 |
|
$key = $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] ); |
| 168 |
|
$patterns[ $key ] = static::PATTERN_COMPARISON_EQUAL; |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$parents = $full_hierarchy; |
| 172 |
|
$first_parent = array_shift( $parents ); |
|
@@ 201-204 (lines=4) @@
|
| 198 |
|
$full_hierarchy_index = $this->get_sanitized_hierarchy_index( $full_hierarchy, $full_hierarchy_index ); |
| 199 |
|
$patterns = array(); |
| 200 |
|
|
| 201 |
|
if ( $is_simple_root_field ) { |
| 202 |
|
$key = $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] ); |
| 203 |
|
$patterns[ $key ] = static::PATTERN_COMPARISON_EQUAL; |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
if ( $is_complex_field ) { |
| 207 |
|
$patterns[ $this->get_storage_key_root( $full_hierarchy ) ] = static::PATTERN_COMPARISON_STARTS_WITH; |