public function addMediaSource(MediaBrowser $source)
    {
        // ensure loaded
        $this->getMediaSources();
        // only mediaSource called 'mediamanager' supported
        $this->mediaSources['mediamanager'] = $source;
        $tao = \common_ext_ExtensionsManager::singleton()->getExtensionById('tao');
        return $tao->setConfig(self::CONFIG_KEY, $this->mediaSources);
    }
public function addMediaSource(MediaBrowser $source)
    {
        // ensure loaded
        $this->getMediaSources();
        // only mediaSource called 'mediamanager' supported
        $this->mediaSources['mediamanager'] = $source;
        $tao = \common_ext_ExtensionsManager::singleton()->getExtensionById('tao');
        return $tao->setConfig(self::CONFIG_KEY, $this->mediaSources);
    }
public function addMediaSource ( MediaBrowser $ source ) { // ensure loaded $ this -> getMediaSources ( ) ; // only mediaSource called 'mediamanager' supported $ this -> mediaSources [ 'mediamanager' ] = $ source ; $ tao = \ common_ext_ExtensionsManager :: singleton ( ) -> getExtensionById ( 'tao' ) ; return $ tao -> setConfig ( self :: CONFIG_KEY , $ this -> mediaSources ) ; }
Adds a media source to Tao

WARNING: Will always add the mediasource as 'mediamanager' as other
identifiers are not supported by js widget

@param MediaBrowser $source
@return boolean
Adds a media source to Tao