behaviors/TbWidget.php
public function registerPlugin($name, $selector, $options = array(), $position = CClientScript::POS_END)
    {
        if (($api = $this->getApi()) !== null) {
            $api->registerPlugin($name, $selector, $options, $position);
            return true;
        }
        return false;
    }
public function registerPlugin($name, $selector, $options = array(), $position = CClientScript::POS_END)
    {
        if (($api = $this->getApi()) !== null) {
            $api->registerPlugin($name, $selector, $options, $position);
            return true;
        }
        return false;
    }
public function registerPlugin ( $ name , $ selector , $ options = array ( ) , $ position = CClientScript :: POS_END ) { if ( ( $ api = $ this -> getApi ( ) ) !== null ) { $ api -> registerPlugin ( $ name , $ selector , $ options , $ position ) ; return true ; } return false ; }
Registers the given plugin with the API.
@param string $name the plugin name.
@param string $selector the CSS selector.
@param array $options the JavaScript options for the plugin.
@param int $position the position of the JavaScript code.
@return boolean whether the plugin was registered.
Registers the given plugin with the API .