PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.2.0
GenerateBlocks v2.2.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / includes / pattern-library / class-library-dto.php
generateblocks / includes / pattern-library Last commit date
templates 2 years ago class-libraries.php 1 year ago class-library-dto.php 2 years ago class-pattern-library-rest.php 1 year ago
class-library-dto.php
50 lines
1 <?php
2 /**
3 * The Libraries class file.
4 *
5 * @package GenerateBlocks\Pattern_Library
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 /**
13 * Library data transfer object.
14 *
15 * @property string id The library id.
16 * @property string name The library name.
17 * @property string domain The library domain.
18 * @property string public_key The library public key.
19 * @property bool is_default The library is default.
20 * @property bool is_local The library is local.
21 * @property bool is_enabled The library is enabled.
22 *
23 * @since 1.9
24 */
25 class GenerateBlocks_Library_DTO extends GenerateBlocks_DTO {
26 /**
27 * The data.
28 *
29 * @var array The library data.
30 */
31 protected $data = array(
32 'id' => '',
33 'name' => '',
34 'domain' => '',
35 'public_key' => '',
36 'is_enabled' => false,
37 'is_default' => false,
38 'is_local' => false,
39 );
40
41 /**
42 * Set the status for a library.
43 *
44 * @param boolean $newStatus The status to set.
45 */
46 public function setStatus( $newStatus ) {
47 $this->data['is_enabled'] = $newStatus;
48 }
49 }
50