PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
woocommerce
/
includes
/
libraries
/
action-scheduler
/
classes
<?php /** * Class ActionScheduler * @codeCoverageIgnore */ abstract class ActionScheduler { private static $plugin_file = ''; /** @var ActionScheduler_ActionFactory */ private static $factory = NULL; public static function factory() { if ( !isset(self::$factory) ) { self::$factory = new ActionScheduler_ActionFactory(); } return self::$factory; } public static function store() { return ActionScheduler_Store::instance(); } public static function logger() { return ActionScheduler_Logger::instance(); } public static function runner() { return ActionScheduler_QueueRunner::instance(); } public static function admin_view() { return ActionScheduler_AdminView::instance(); } /** * Get the absolute system path to the plugin directory, or a file therein * @static * @param string $path * @return string */ public static function plugin_path( $path ) { $base = dirname(self::$plugin_file); if ( $path ) { return trailingslashit($base).$path; } else { return untrailingslashit($base); } } /** * Get the absolute URL to the plugin directory, or a file therein * @static * @param string $path * @return string */ public static function plugin_url( $path ) { return plugins_url($path, self::$plugin_file); } public static function autoload( $class ) { $d = DIRECTORY_SEPARATOR; if ( 'Deprecated' === substr( $class, -10 ) ) { $dir = self::plugin_path('deprecated'.$d); } elseif ( strpos( $class, 'ActionScheduler' ) === 0 ) { $dir = self::plugin_path('classes'.$d); } elseif ( strpos( $class, 'CronExpression' ) === 0 ) { $dir = self::plugin_path('lib'.$d.'cron-expression'.$d); } else { return; } if ( file_exists( "{$dir}{$class}.php" ) ) { include( "{$dir}{$class}.php" ); return; } } /** * Initialize the plugin * * @static * @param string $plugin_file */ public static function init( $plugin_file ) { self::$plugin_file = $plugin_file; spl_autoload_register( array( __CLASS__, 'autoload' ) ); /** * Fires in the early stages of Action Scheduler init hook. */ do_action( 'action_scheduler_pre_init' ); $store = self::store(); add_action( 'init', array( $store, 'init' ), 1, 0 ); $logger = self::logger(); add_action( 'init', array( $logger, 'init' ), 1, 0 ); $runner = self::runner(); add_action( 'init', array( $runner, 'init' ), 1, 0 ); $admin_view = self::admin_view(); add_action( 'init', array( $admin_view, 'init' ), 0, 0 ); // run before $store::init() require_once( self::plugin_path('functions.php') ); if ( apply_filters( 'action_scheduler_load_deprecated_functions', true ) ) { require_once( self::plugin_path('deprecated/functions.php') ); } if ( defined( 'WP_CLI' ) && WP_CLI ) { WP_CLI::add_command( 'action-scheduler', 'ActionScheduler_WPCLI_Scheduler_command' ); } } final public function __clone() { trigger_error("Singleton. No cloning allowed!", E_USER_ERROR); } final public function __wakeup() { trigger_error("Singleton. No serialization allowed!", E_USER_ERROR); } final private function __construct() {} /** Deprecated **/ public static function get_datetime_object( $when = null, $timezone = 'UTC' ) { _deprecated_function( __METHOD__, '2.0', 'wcs_add_months()' ); return as_get_datetime_object( $when, $timezone ); } }
[+]
..
[-] ActionScheduler_wpPostStore_PostStatusRegistrar.php
[edit]
[-] ActionScheduler_NullSchedule.php
[edit]
[-] ActionScheduler_wpPostStore_PostTypeRegistrar.php
[edit]
[-] ActionScheduler_ListTable.php
[edit]
[-] ActionScheduler_IntervalSchedule.php
[edit]
[-] ActionScheduler_DateTime.php
[edit]
[-] ActionScheduler_FinishedAction.php
[edit]
[-] ActionScheduler_Compatibility.php
[edit]
[-] ActionScheduler_wpPostStore.php
[edit]
[-] ActionScheduler.php
[edit]
[-] ActionScheduler_CanceledAction.php
[edit]
[-] ActionScheduler_NullLogEntry.php
[edit]
[-] ActionScheduler_Exception.php
[edit]
[-] ActionScheduler_QueueCleaner.php
[edit]
[-] ActionScheduler_AdminView.php
[edit]
[-] ActionScheduler_ActionClaim.php
[edit]
[-] ActionScheduler_NullAction.php
[edit]
[-] ActionScheduler_InvalidActionException.php
[edit]
[-] ActionScheduler_TimezoneHelper.php
[edit]
[-] ActionScheduler_wcSystemStatus.php
[edit]
[-] ActionScheduler_Store.php
[edit]
[-] ActionScheduler_Abstract_ListTable.php
[edit]
[-] ActionScheduler_WPCLI_QueueRunner.php
[edit]
[-] ActionScheduler_WPCLI_Scheduler_command.php
[edit]
[-] ActionScheduler_FatalErrorMonitor.php
[edit]
[-] ActionScheduler_ActionFactory.php
[edit]
[-] ActionScheduler_Logger.php
[edit]
[-] ActionScheduler_CronSchedule.php
[edit]
[-] ActionScheduler_QueueRunner.php
[edit]
[-] ActionScheduler_wpCommentLogger.php
[edit]
[-] ActionScheduler_LogEntry.php
[edit]
[-] ActionScheduler_Versions.php
[edit]
[-] ActionScheduler_Schedule.php
[edit]
[-] ActionScheduler_Abstract_QueueRunner.php
[edit]
[-] ActionScheduler_wpPostStore_TaxonomyRegistrar.php
[edit]
[-] ActionScheduler_SimpleSchedule.php
[edit]
[-] ActionScheduler_Action.php
[edit]