core/Datastore/Widget_Datastore.php 1 location
|
@@ 52-59 (lines=8) @@
|
49 |
|
*/ |
50 |
|
protected function get_storage_array( Field $field, $storage_key_patterns ) { |
51 |
|
$storage_array = array(); |
52 |
|
foreach ( $this->storage as $storage_key => $value ) { |
53 |
|
if ( $this->key_toolset->storage_key_matches_any_pattern( $storage_key, $storage_key_patterns ) ) { |
54 |
|
$storage_array[] = (object) array( |
55 |
|
'key' => $storage_key, |
56 |
|
'value' => $value, |
57 |
|
); |
58 |
|
} |
59 |
|
} |
60 |
|
return $storage_array; |
61 |
|
} |
62 |
|
|
core/Service/Legacy_Storage_Service_v_1_5.php 1 location
|
@@ 468-475 (lines=8) @@
|
465 |
|
public function get_storage_array( Datastore_Interface $datastore, $storage_key_patterns ) { |
466 |
|
$storage_array = $this->get_storage_array_for_datastore( $datastore ); |
467 |
|
$matched_data = array(); |
468 |
|
foreach ( $storage_array as $key => $value ) { |
469 |
|
if ( $this->key_toolset->storage_key_matches_any_pattern( $key, $storage_key_patterns ) ) { |
470 |
|
$matched_data[] = (object) array( |
471 |
|
'key' => $key, |
472 |
|
'value' => $value, |
473 |
|
); |
474 |
|
} |
475 |
|
} |
476 |
|
return $matched_data; |
477 |
|
} |
478 |
|
|