本文整理匯總了PHP中parent::hours方法的典型用法代碼示例。如果您正苦於以下問題:PHP parent::hours方法的具體用法?PHP parent::hours怎麽用?PHP parent::hours使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類parent
的用法示例。
在下文中一共展示了parent::hours方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* 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: __construct
/**
* Constructor.
*
* @param object $type
*/
public function __construct($type)
{
parent::$hours = 12;
$this->type = $type;
$this->response = $this->get_transient();
}
示例6: __construct
/**
* Constructor.
*
* @param object $type
*/
public function __construct($type)
{
$this->type = $type;
parent::$hours = 12;
}