Пример #1
0
Файл: Page.php Проект: Gorp/pr
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Пример #2
0
 public static function instance()
 {
     if (Model_Page::$_instance === NULL) {
         Model_Page::$_instance = new Model_Page();
     }
     return Model_Page::$_instance;
 }