Ejemplo n.º 1
0
 /** @return Gallery */
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new Gallery();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 /**
  * Get Instance
  *
  * Return an instance of this class
  * @return object Instance of this class
  */
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }