behaviors/TbWidget.php
protected function getApi()
    {
        if (isset($this->_api)) {
            return $this->_api;
        } else {
            return $this->_api = Yii::app()->getComponent('bootstrap');
        }
    }
protected function getApi()
    {
        if (isset($this->_api)) {
            return $this->_api;
        } else {
            return $this->_api = Yii::app()->getComponent('bootstrap');
        }
    }
protected function getApi ( ) { if ( isset ( $ this -> _api ) ) { return $ this -> _api ; } else { return $ this -> _api = Yii :: app ( ) -> getComponent ( 'bootstrap' ) ; } }
Returns the API instance.
@return TbApi the api.
Returns the API instance .