Mage_Core_Model_Resource_Session::hasConnection PHP 메소드

hasConnection() 공개 메소드

Check DB connection
public hasConnection ( ) : boolean
리턴 boolean
    public function hasConnection()
    {
        if (!$this->_read) {
            return false;
        }
        if (!$this->_read->isTableExists($this->_sessionTable)) {
            return false;
        }
        return true;
    }

Usage Example

예제 #1
0
 public function testHasConnection()
 {
     $this->assertTrue($this->_model->hasConnection());
 }