コード例 #1
0
 /**
  * the singleton pattern
  *
  * @return Felamimail_Controller
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new Messenger_Controller();
     }
     return self::$_instance;
 }
コード例 #2
0
ファイル: Json.php プロジェクト: rodrigofns/ExpressoLivre3
 /**
  * the constructor
  *
  */
 public function __construct()
 {
     $this->_applicationName = 'Messenger';
     $this->_controller = Messenger_Controller::getInstance();
 }