PATH:
home
/
lab2454c
/
equitablegold.com
/
wp-content
/
plugins
/
woocommerce
/
packages
/
action-scheduler
/
classes
<?php /** * Class ActionScheduler_Versions */ class ActionScheduler_Versions { /** * @var ActionScheduler_Versions */ private static $instance = NULL; private $versions = array(); public function register( $version_string, $initialization_callback ) { if ( isset($this->versions[$version_string]) ) { return FALSE; } $this->versions[$version_string] = $initialization_callback; return TRUE; } public function get_versions() { return $this->versions; } public function latest_version() { $keys = array_keys($this->versions); if ( empty($keys) ) { return false; } uasort( $keys, 'version_compare' ); return end($keys); } public function latest_version_callback() { $latest = $this->latest_version(); if ( empty($latest) || !isset($this->versions[$latest]) ) { return '__return_null'; } return $this->versions[$latest]; } /** * @return ActionScheduler_Versions * @codeCoverageIgnore */ public static function instance() { if ( empty(self::$instance) ) { self::$instance = new self(); } return self::$instance; } /** * @codeCoverageIgnore */ public static function initialize_latest_version() { $self = self::instance(); call_user_func($self->latest_version_callback()); } }
[-] ActionScheduler_Compatibility.php
[edit]
[-] ActionScheduler_AsyncRequest_QueueRunner.php
[edit]
[-] ActionScheduler_LogEntry.php
[edit]
[-] ActionScheduler_AdminView.php
[edit]
[-] ActionScheduler_InvalidActionException.php
[edit]
[+]
..
[-] ActionScheduler_Versions.php
[edit]
[+]
schedules
[+]
WP_CLI
[-] ActionScheduler_ActionClaim.php
[edit]
[-] ActionScheduler_QueueCleaner.php
[edit]
[+]
schema
[-] ActionScheduler_QueueRunner.php
[edit]
[-] ActionScheduler_Exception.php
[edit]
[-] ActionScheduler_wcSystemStatus.php
[edit]
[-] ActionScheduler_DataController.php
[edit]
[+]
migration
[-] ActionScheduler_ListTable.php
[edit]
[-] ActionScheduler_WPCommentCleaner.php
[edit]
[-] ActionScheduler_FatalErrorMonitor.php
[edit]
[-] ActionScheduler_NullLogEntry.php
[edit]
[+]
data-stores
[-] ActionScheduler_DateTime.php
[edit]
[-] ActionScheduler_OptionLock.php
[edit]
[+]
actions
[-] ActionScheduler_ActionFactory.php
[edit]
[+]
abstracts