示例#1
0
 /**
  * Returns the globally available instance of a Hooks
  * @return object The Hooks object.
  */
 public static function instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }