| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
require_once CJTOOLBOX_FRAMEWORK . '/settings/page.inc.php'; |
| 6 |
|
| 7 |
/** |
| 8 |
* |
| 9 |
*/ |
| 10 |
class CJTSettingsMetaboxPage extends CJTSettingsPage { |
| 11 |
|
| 12 |
/** |
| 13 |
* put your comment there... |
| 14 |
* |
| 15 |
*/ |
| 16 |
public function __construct() { |
| 17 |
parent::__construct(get_class($this)); |
| 18 |
// Load metabox settins. |
| 19 |
$this->load(); |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* put your comment there... |
| 24 |
* |
| 25 |
* @param mixed $property |
| 26 |
*/ |
| 27 |
public function __get($property) { |
| 28 |
$value = null; |
| 29 |
switch ($property) { |
| 30 |
// PostTypes always should be array. |
| 31 |
case 'postTypes': |
| 32 |
$value = parent::__get($property); |
| 33 |
$value = is_array($value) ? $value : array(); |
| 34 |
break; |
| 35 |
} |
| 36 |
return $value; |
| 37 |
} |
| 38 |
|
| 39 |
} // End class. |
| 40 |
|