Пример #1
0
 /**
  * Get the instance
  *
  * @return void
  **/
 public static function instance()
 {
     if (!isset(self::$_instance) || !self::$_instance instanceof Base) {
         self::$_instance = new Base();
     }
     return self::$_instance;
 }
Пример #2
0
 public function __construct($content, $title = null, $description = null)
 {
     parent::__construct($title == null ? $this->getApplicationTitle() : $title, $description);
     $this->content = $content;
 }