library/Garp/Model/Behavior/Videoable.php
protected function _setup($config) {
        if (empty($config['vimeo'])) {
            $config['vimeo'] = array();
        }
        if (empty($config['youtube'])) {
            $config['youtube'] = array();
        }
        $this->_config = $config;
    }
protected function _setup($config) {
        if (empty($config['vimeo'])) {
            $config['vimeo'] = array();
        }
        if (empty($config['youtube'])) {
            $config['youtube'] = array();
        }
        $this->_config = $config;
    }
protected function _setup ( $ config ) { if ( empty ( $ config [ 'vimeo' ] ) ) { $ config [ 'vimeo' ] = array ( ) ; } if ( empty ( $ config [ 'youtube' ] ) ) { $ config [ 'youtube' ] = array ( ) ; } $ this -> _config = $ config ; }
Setup the behavior - this configures the keys used to map service data to local database data.
Make sure to add a "vimeo" and a "youtube" key for the respective services.
@see Garp_Model_Behavior_Youtubeable and @see Garp_Model_Behavior_Vimeoable for the default mapping.
@param Array $config
@return Void
Setup the behavior - this configures the keys used to map service data to local database data . Make sure to add a vimeo and a youtube key for the respective services .