Example #1
0
 /**
  * PHP5 Constructor
  *
  * @param array $config
  */
 function __construct($config = array())
 {
     $config = array_merge(array('authorization_key' => '', 'alias' => '', 'consumerkey' => '', 'consumersecret' => '', 'zone_id' => 0), $config);
     $split_keys = explode('+', $config['authorization_key']);
     if (sizeof($split_keys) == 3) {
         list($config['alias'], $config['consumerkey'], $config['consumersecret']) = $split_keys;
     }
     parent::__construct($config);
 }
Example #2
0
 /**
  * PHP5 Constructor
  *
  * @param array $config
  */
 function __construct($config = array())
 {
     $config = array_merge(array('apiid' => '', 'apikey' => ''), $config);
     parent::__construct($config);
 }
Example #3
0
 /**
  * PHP5 Constructor
  *
  * @param array $config
  */
 function __construct($config = array())
 {
     $config = array_merge(array('alias' => '', 'consumerkey' => '', 'consumersecret' => ''), $config);
     parent::__construct($config);
 }
 /**
  * PHP5 Constructor
  *
  * @param array $config
  */
 function __construct($config = array())
 {
     $config = array_merge(array('username' => '', 'password' => '', 'zones' => array()), $config);
     parent::__construct($config);
 }
 /**
  * PHP5 Constructor
  *
  * @param array $config
  */
 function __construct($config = array())
 {
     $config = array_merge(array('companyid' => '', 'apikey' => '', 'apisecret' => ''), $config);
     parent::__construct($config);
 }
Example #6
0
 /**
  * PHP5 Constructor
  *
  * @param array $config
  */
 function __construct($config = array())
 {
     $config = array_merge(array('username' => '', 'password' => '', 'zone' => '', 'action' => 'invalidate', 'email_notification' => array()), $config);
     parent::__construct($config);
 }
Example #7
0
 /**
  * Tests NetDNA
  *
  * @param string $error
  * @return bool
  */
 function test(&$error)
 {
     if (!parent::test($error)) {
         return false;
     }
     $results = array();
     $files = array('' => 'purge_test_' . time());
     if (!$this->purge($files, $results) && isset($results[0]['error'])) {
         $error = $results[0]['error'];
         return false;
     }
     return true;
 }