Exemplo n.º 1
0
 public function __construct()
 {
     try {
         $this->telnet = TelnetConnector::getInstance('127.0.0.1', 8990, 'jcliadmin', 'jclipwd');
     } catch (Exception $e) {
         echo 'Telnet connection failed :' . $e->getMessage();
         return false;
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * Flashes the table of the object
  * @return string
  */
 public function flush()
 {
     $result = $this->connector->doCommand($this->command . ' -f');
     return $result;
 }