/** * __construct() create a new Robot_Certificate */ function __construct($cert) { parent::__construct($cert); /* Not expired? */ if (!$this->isValid()) { throw new CertificateException("The certificate is not valid. Rejected."); } $this->getCertFromDB(true); $this->changed = array(); }
public function __construct($filename, $password) { parent::__construct($filename); $this->setPassword($password); }