本文整理汇总了PHP中BackWPup::job_types方法的典型用法代码示例。如果您正苦于以下问题:PHP BackWPup::job_types方法的具体用法?PHP BackWPup::job_types怎么用?PHP BackWPup::job_types使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BackWPup
的用法示例。
在下文中一共展示了BackWPup::job_types方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_job_types
/**
* Gets a array of instances from Job types
*
* @return array BackWPup_JobTypes
*/
public static function get_job_types()
{
if (!empty(self::$job_types)) {
return self::$job_types;
}
self::$job_types['DBDUMP'] = new BackWPup_JobType_DBDump();
self::$job_types['FILE'] = new BackWPup_JobType_File();
self::$job_types['WPEXP'] = new BackWPup_JobType_WPEXP();
self::$job_types['WPPLUGIN'] = new BackWPup_JobType_WPPlugin();
self::$job_types['DBCHECK'] = new BackWPup_JobType_DBCheck();
self::$job_types = apply_filters('backwpup_job_types', self::$job_types);
//remove types can't load
foreach (self::$job_types as $key => $job_type) {
if (empty($job_type) || !is_object($job_type)) {
unset(self::$job_types[$key]);
}
}
return self::$job_types;
}