/** * __construct * * constructor for ZimbraAdmin API * * @since version 1.0 * @access public * @param string $username username to use in the construction of object * @param string $which type to construct, defaults to prod */ public function __construct($username = '******', $which = 'prod') { $file = "other/zimbra" . ($which == 'prod' ? '' : '_dev'); $credentials = PSUDatabase::connect($file, 'return'); $this->_admin_username = $credentials['username']; $this->_admin_password = $credentials['password']; parent::__construct($username, $which); $this->_protocol = 'https://'; }