Habari\FormUI::media_panel PHP Метод

media_panel() публичный Метод

Configure all the options necessary to make this form work inside a media bar panel
public media_panel ( string $path, string $panel, string $callback )
$path string Identifies the silo
$panel string The panel in the silo to submit to
$callback string Javascript function to call on form submission
    public function media_panel($path, $panel, $callback)
    {
        // @todo fix this
        //		$this->options['ajax'] = true;
        $this->properties['action'] = URL::get('admin_ajax', array('context' => 'media_panel'));
        $this->properties['onsubmit'] = "habari.media.submitPanel('{$path}', '{$panel}', this, '{$callback}');return false;";
    }