12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- class StaticPlugin extends Plugin
- {
-
- static function create()
- {
- static $result = null;
- return $result ? $result : $result = new self();
- }
- function get_block_title()
- {
- return $this->get('block_title');
- }
- function get_content()
- {
- return $this->get('content');
- }
- protected function __construct()
- {
- parent::__construct('1.1', 'Laurent Opprecht', array('block_title' => 'text', 'content' => 'wysiwyg'));
- }
- }
|