コード例 #1
0
 public function hasContent()
 {
     if ($this->getRow()->own_url) {
         if (Kwc_Advanced_CommunityVideo_Component::getVideoUrl($this->getRow()->url, $this->getData()->chained->getComponent()->getRow())) {
             return true;
         }
         return false;
     }
     return parent::hasContent();
 }
コード例 #2
0
 public static function getSettings($param = null)
 {
     $ret = parent::getSettings($param);
     $ret['ownModel'] = new Kwf_Model_FnF(array('primaryKey' => 'component_id', 'data' => array(array('component_id' => 'root_community', "width" => 682, "height" => 505, "show_similar_videos" => true, "url" => "http://www.youtube.com/watch?v=0aRIlnQzw-A", "ratio" => "16x9", "size" => "fullWidth", "autoplay" => true))));
     return $ret;
 }
コード例 #3
0
 protected function _getFlashData()
 {
     $ret = parent::_getFlashData();
     $ret['url'] .= '&autoplay=1';
     return $ret;
 }