load() public method

public load ( $path )
Example #1
0
 protected function getResource($ticket, $path)
 {
     if (false === ($session = $this->retrieveSessionData($ticket))) {
         throw new Exception('Could not load FTP resources. Session error.');
     }
     $resource = array();
     $ftp = new FTPClient($session[0], $session[1], $session[2]);
     return $ftp->load($path);
 }