public static function getListItemForVideo(VideoObject $video, $section) {

        $desc = $video->getDescription();

        return array(
            'title'=>$video->getTitle(),
            'subtitle'=> "(" . VideoModuleUtils::getDuration($video->getDuration()) . ") " . $desc,
            'imgWidth'=>120,  
            'imgHeight'=>100,  
            'img'=>$video->getImage()
            );
    }
Пример #2
0
    protected function getListItemForVideo(VideoObject $video, $section) {
        // FIXME proper fix is either determine if desktop or adjust in javascript 
        $desc = $video->getDescription();
        if (strlen($video->getTitle())>30) {             	
            if (strlen($desc)) {
                $desc = substr($desc,0,30) . "...";
            }
        }
        
        if (strlen($desc)>75) {
            $desc = substr($desc,0,75) . "...";
        }

        return array(
            'title'=>$video->getTitle(),
            'subtitle'=>$desc . "<br />" . $this->getDuration($video->getDuration()),
            'imgWidth'=>120,  
            'imgHeight'=>100,  
            'img'=>$video->getImage(),
            'url'=>$this->buildBreadcrumbURL('detail', array(
                'section'=>$section,
                'videoid'=>$video->getID()
            )));
    }