Пример #1
0
 /**
  * the singleton pattern
  *
  * @return Timetracker_Controller_Timesheet
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new Timetracker_Controller_Timesheet();
     }
     return self::$_instance;
 }
 /**
  * the singleton pattern
  *
  * @return Timetracker_Controller_Timesheet
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }