lithium\data\source\Http::connect PHP Метод

connect() публичный Метод

Fake the connection since service is called for every method.
public connect ( ) : boolean
Результат boolean
    public function connect()
    {
        if (!$this->_isConnected) {
            $this->_isConnected = true;
        }
        return $this->_isConnected;
    }

Usage Example

Пример #1
0
 public function testDisconnect()
 {
     $http = new Http($this->_testConfig);
     $result = $http->connect();
     $this->assertTrue($result);
     $result = $http->disconnect();
     $this->assertTrue($result);
 }