コード例 #1
0
 /**
  * __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();
 }
コード例 #2
0
ファイル: P12.php プロジェクト: yanahiro/php-passbook
 public function __construct($filename, $password)
 {
     parent::__construct($filename);
     $this->setPassword($password);
 }