src/Charcoal/Cms/AbstractEvent.php 1 location
|
@@ 101-108 (lines=8) @@
|
| 98 |
|
* Section constructor. |
| 99 |
|
* @param array $data The data. |
| 100 |
|
*/ |
| 101 |
|
public function __construct(array $data = null) |
| 102 |
|
{ |
| 103 |
|
parent::__construct($data); |
| 104 |
|
|
| 105 |
|
if (is_callable([ $this, 'defaultData' ])) { |
| 106 |
|
$this->setData($this->defaultData()); |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
// ========================================================================== |
| 111 |
|
// FUNCTIONS |
src/Charcoal/Cms/AbstractNews.php 1 location
|
@@ 105-112 (lines=8) @@
|
| 102 |
|
* Section constructor. |
| 103 |
|
* @param array $data The data. |
| 104 |
|
*/ |
| 105 |
|
public function __construct(array $data = null) |
| 106 |
|
{ |
| 107 |
|
parent::__construct($data); |
| 108 |
|
|
| 109 |
|
if (is_callable([ $this, 'defaultData' ])) { |
| 110 |
|
$this->setData($this->defaultData()); |
| 111 |
|
} |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
// ========================================================================== |
| 115 |
|
// FUNCTIONS |
src/Charcoal/Cms/AbstractSection.php 1 location
|
@@ 127-134 (lines=8) @@
|
| 124 |
|
* Section constructor. |
| 125 |
|
* @param array $data Init data. |
| 126 |
|
*/ |
| 127 |
|
public function __construct(array $data = null) |
| 128 |
|
{ |
| 129 |
|
parent::__construct($data); |
| 130 |
|
|
| 131 |
|
if (is_callable([ $this, 'defaultData' ])) { |
| 132 |
|
$this->setData($this->defaultData()); |
| 133 |
|
} |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
// ========================================================================== |
| 137 |
|
// FUNCTIONS |
src/Charcoal/Cms/Config.php 1 location
|
@@ 41-48 (lines=8) @@
|
| 38 |
|
* Section constructor. |
| 39 |
|
* @param array $data The data. |
| 40 |
|
*/ |
| 41 |
|
public function __construct(array $data = null) |
| 42 |
|
{ |
| 43 |
|
parent::__construct($data); |
| 44 |
|
|
| 45 |
|
if (is_callable([$this, 'defaultData'])) { |
| 46 |
|
$this->setData($this->defaultData()); |
| 47 |
|
} |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
// ========================================================================== |
| 51 |
|
// SETTERS |
src/Charcoal/Cms/NewsCategory.php 1 location
|
@@ 30-37 (lines=8) @@
|
| 27 |
|
* Section constructor. |
| 28 |
|
* @param array $data Init data. |
| 29 |
|
*/ |
| 30 |
|
public function __construct(array $data = null) |
| 31 |
|
{ |
| 32 |
|
parent::__construct($data); |
| 33 |
|
|
| 34 |
|
if (is_callable([ $this, 'defaultData' ])) { |
| 35 |
|
$this->setData($this->defaultData()); |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* CategoryTrait > itemType() |