array( 'Name' => "Name", 'Hostname' => "Hostname", 'PrivateKey' => "CustomPrivateKey", 'PublicKey' => "CustomPublicKey", 'User' => "User" ), 'numeric' => array( 'Port' => "Port" ), 'boolean' => array( 'HasCustomKey' => "HasCustomKey" ) ); public $ssh = null; protected function EventConstructed() { global $settings; $this->ssh = new SshConnector(); $this->ssh->host = $this->sHostname; $this->ssh->port = $this->sPort; $this->ssh->user = $this->sUser; if($this->HasCustomKey === true) { $this->ssh->key = $this->sPrivateKey; $this->ssh->pubkey = $this->sPublicKey; } else { $this->ssh->key = $settings['master_privkey']; $this->ssh->pubkey = $settings['master_pubkey']; } } public function GetContainers() { var_dump($this->ssh->RunCommand("vzlist -a")); } } ?>