本文整理汇总了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;
}