/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * Constructor. * * @param object $type */ public function __construct($type) { parent::$hours = 12; $this->type = $type; $this->response = $this->get_transient(); }
/** * Constructor. * * @param object $type */ public function __construct($type) { $this->type = $type; parent::$hours = 12; }