|
@@ 194-197 (lines=4) @@
|
| 191 |
|
public function get_storage_key_getter_patterns( $is_simple_root_field, $full_hierarchy ) { |
| 192 |
|
$patterns = array(); |
| 193 |
|
|
| 194 |
|
if ( $is_simple_root_field ) { |
| 195 |
|
$key = $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] ); |
| 196 |
|
$patterns[ $key ] = static::PATTERN_COMPARISON_EQUAL; |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
$parents = $full_hierarchy; |
| 200 |
|
$first_parent = array_shift( $parents ); |
|
@@ 229-232 (lines=4) @@
|
| 226 |
|
$full_hierarchy_index = $this->get_sanitized_hierarchy_index( $full_hierarchy, $full_hierarchy_index ); |
| 227 |
|
$patterns = array(); |
| 228 |
|
|
| 229 |
|
if ( $is_simple_root_field ) { |
| 230 |
|
$key = $this->get_storage_key_for_simple_root_field( $full_hierarchy[ count( $full_hierarchy ) - 1 ] ); |
| 231 |
|
$patterns[ $key ] = static::PATTERN_COMPARISON_EQUAL; |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
if ( $is_complex_field ) { |
| 235 |
|
$patterns[ $this->get_storage_key_root( $full_hierarchy ) ] = static::PATTERN_COMPARISON_STARTS_WITH; |