예제 #1
0
 /**
  * Constructor.
  *
  * @param object $type
  */
 public function __construct($type)
 {
     $this->type = $type;
     parent::$hours = 12;
     add_filter('http_request_args', array($this, 'maybe_authenticate_http'), 10, 2);
     if (!isset(self::$options['bitbucket_username'])) {
         self::$options['bitbucket_username'] = null;
     }
     if (!isset(self::$options['bitbucket_password'])) {
         self::$options['bitbucket_password'] = null;
     }
     add_site_option('github_updater', self::$options);
 }
예제 #2
0
 /**
  * Constructor.
  *
  * @param object $type
  */
 public function __construct($type)
 {
     parent::$hours = 12;
     $this->type = $type;
     $this->response = $this->get_transient();
     $this->load_hooks();
     if (!isset(self::$options['bitbucket_username'])) {
         self::$options['bitbucket_username'] = null;
     }
     if (!isset(self::$options['bitbucket_password'])) {
         self::$options['bitbucket_password'] = null;
     }
     add_site_option('github_updater', self::$options);
 }
예제 #3
0
 /**
  * Constructor.
  *
  * @param object $type
  */
 public function __construct($type)
 {
     $this->type = $type;
     parent::$hours = 12;
     if (!isset(self::$options['gitlab_private_token'])) {
         self::$options['gitlab_private_token'] = null;
     }
     if (!isset(self::$options['gitlab_enterprise_token'])) {
         self::$options['gitlab_enterprise_token'] = null;
     }
     if (empty(self::$options['gitlab_private_token']) || empty(self::$options['gitlab_enterprise_token']) && !empty($type->enterprise)) {
         Messages::create_error_message('gitlab');
     }
     add_site_option('github_updater', self::$options);
 }
예제 #4
0
 /**
  * Constructor.
  *
  * @param object $type
  */
 public function __construct($type)
 {
     parent::$hours = 12;
     $this->type = $type;
     $this->response = $this->get_transient();
     if (!isset(self::$options['gitlab_access_token'])) {
         self::$options['gitlab_access_token'] = null;
     }
     if (!isset(self::$options['gitlab_enterprise_token'])) {
         self::$options['gitlab_enterprise_token'] = null;
     }
     if (empty(self::$options['gitlab_access_token']) || empty(self::$options['gitlab_enterprise_token']) && !empty($type->enterprise)) {
         Messages::instance()->create_error_message('gitlab');
     }
     add_site_option('github_updater', self::$options);
 }
예제 #5
0
 /**
  * Constructor.
  *
  * @param object $type
  */
 public function __construct($type)
 {
     parent::$hours = 12;
     $this->type = $type;
     $this->response = $this->get_transient();
 }
예제 #6
0
 /**
  * Constructor.
  *
  * @param object $type
  */
 public function __construct($type)
 {
     $this->type = $type;
     parent::$hours = 12;
 }