Exemplo n.º 1
0
 /**
  * con
  * 
  * @method con
  * @return \AttoDbo_IConnection 
  */
 protected function _con()
 {
     if ($this->_con === null) {
         $this->_con = AttoDbo_Manager::getInstanse()->getConnection($this->_connectionName);
     }
     return $this->_con;
 }
Exemplo n.º 2
0
 /**
  * __construct
  * 
  * シングルトンでの利用を強制する仕様ではないが、getInstanseメソッドによるシングルトンでの利用を推奨
  */
 public function __construct()
 {
     foreach (self::initializerHandlerRegister() as $callback) {
         call_user_func_array($callback, array(&$this));
     }
     if (self::$single === null) {
         self::$single = $this;
     }
 }