コード例 #1
0
 public function __construct($frequency, $socket, $threshold)
 {
     if (!function_exists('openssl_x509_parse')) {
         trigger_error('TlsCertificateExpirationPing requires the OpenSSL module', E_USER_ERROR);
     }
     parent::__construct($frequency);
     $this->socket = $socket;
     $this->threshold = $threshold;
 }
コード例 #2
0
ファイル: DatabasePing.php プロジェクト: marcbp/ping-this
 public function __construct($frequency, $dsn, $username = null, $password = null, $options = [])
 {
     if (!class_exists('PDO')) {
         trigger_error('DatabasePing requires PDO', E_USER_ERROR);
     }
     $this->dsn = $dsn;
     $this->username = $username;
     $this->password = $password;
     $this->options = $options;
     parent::__construct($frequency);
 }