Instafilter\Image::run_queue PHP 메소드

run_queue() 공개 메소드

Runs all queued actions on the loaded image.
public run_queue ( boolean $clear = null )
$clear boolean Decides if the queue should be cleared once completed.
    public function run_queue($clear = null)
    {
        foreach ($this->queued_actions as $action) {
            $tmpfunc = array();
            for ($i = 0; $i < count($action); $i++) {
                $tmpfunc[$i] = var_export($action[$i], true);
            }
            $this->debug('', "<b>Executing <code>" . implode(", ", $tmpfunc) . "</code></b>");
            call_user_func_array(array(&$this, '_' . $action[0]), array_slice($action, 1));
        }
        if ($clear === null and $this->configuration['clear_queue'] or $clear === true) {
            $this->queued_actions = array();
        }
    }