core/Container/Comment_Meta_Container.php 1 location
|
@@ 19-25 (lines=7) @@
|
| 16 |
|
/** |
| 17 |
|
* {@inheritDoc} |
| 18 |
|
*/ |
| 19 |
|
public function __construct( $id, $title, $type, $condition_collection, $condition_translator ) { |
| 20 |
|
parent::__construct( $id, $title, $type, $condition_collection, $condition_translator ); |
| 21 |
|
|
| 22 |
|
if ( ! $this->get_datastore() ) { |
| 23 |
|
$this->set_datastore( Datastore::make( 'comment_meta' ), $this->has_default_datastore() ); |
| 24 |
|
} |
| 25 |
|
} |
| 26 |
|
|
| 27 |
|
/** |
| 28 |
|
* Perform instance initialization |
core/Container/Post_Meta_Container.php 1 location
|
@@ 44-50 (lines=7) @@
|
| 41 |
|
/** |
| 42 |
|
* {@inheritDoc} |
| 43 |
|
*/ |
| 44 |
|
public function __construct( $id, $title, $type, $condition_collection, $condition_translator ) { |
| 45 |
|
parent::__construct( $id, $title, $type, $condition_collection, $condition_translator ); |
| 46 |
|
|
| 47 |
|
if ( ! $this->get_datastore() ) { |
| 48 |
|
$this->set_datastore( Datastore::make( 'post_meta' ), $this->has_default_datastore() ); |
| 49 |
|
} |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** |
| 53 |
|
* Create DataStore instance, set post ID to operate with (if such exists). |
core/Container/Term_Meta_Container.php 1 location
|
@@ 20-26 (lines=7) @@
|
| 17 |
|
/** |
| 18 |
|
* {@inheritDoc} |
| 19 |
|
*/ |
| 20 |
|
public function __construct( $id, $title, $type, $condition_collection, $condition_translator ) { |
| 21 |
|
parent::__construct( $id, $title, $type, $condition_collection, $condition_translator ); |
| 22 |
|
|
| 23 |
|
if ( ! $this->get_datastore() ) { |
| 24 |
|
$this->set_datastore( Datastore::make( 'term_meta' ), $this->has_default_datastore() ); |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/** |
| 29 |
|
* Bind attach() and save() to the appropriate WordPress actions. |
core/Container/Block_Container.php 1 location
|
@@ 37-43 (lines=7) @@
|
| 34 |
|
/** |
| 35 |
|
* {@inheritDoc} |
| 36 |
|
*/ |
| 37 |
|
public function __construct( $id, $title, $type, $condition_collection, $condition_translator ) { |
| 38 |
|
parent::__construct( $id, $title, $type, $condition_collection, $condition_translator ); |
| 39 |
|
|
| 40 |
|
if ( ! $this->get_datastore() ) { |
| 41 |
|
$this->set_datastore( Datastore::make( 'empty' ), $this->has_default_datastore() ); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
/** |
| 46 |
|
* {@inheritDoc} |