RTMediaUserInteraction::preprocess PHP Method

preprocess() public method

Checks if an id is set Creates pre and post process hooks for the action Calls the process
public preprocess ( )
    function preprocess()
    {
        global $rtmedia_query;
        $this->action_query = $rtmedia_query->action_query;
        if ($this->action_query->action !== $this->action) {
            return false;
        }
        if (!isset($this->action_query->id)) {
            return false;
        }
        $result = false;
        do_action('rtmedia_pre_process_' . $this->action);
        if (empty($this->media)) {
            $this->init();
        }
        if ($this->interactor_privacy >= $this->privacy) {
            $result = $this->process();
        }
        do_action('rtmedia_post_process_' . $this->action, $result);
        print_r($result);
        die;
    }