本文整理匯總了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;
}