thd/apps/frontend/modules/editor/actions/components.class.php
changeset 104 8e4fe6f3337d
parent 103 d2af8a210f5d
child 105 c8f710cd1fb1
equal deleted inserted replaced
103:d2af8a210f5d 104:8e4fe6f3337d
     1 <?php 
       
     2 
       
     3 class editorComponents extends sfComponents
       
     4 {
       
     5   public function executeLeftPanel() {
       
     6 
       
     7   }
       
     8   public function executePlayer() {
       
     9 	$ref = $this->getRequestParameter('ref');
       
    10   	$film_slug = $this->getRequestParameter('film_slug');	
       
    11   	
       
    12   	// retrieve infos in database
       
    13   	$query = Doctrine_Query::create()
       
    14       ->from('ThdFilm F')
       
    15       ->leftJoin('F.images I ')
       
    16       ->leftJoin('F.videos V')
       
    17       ->where("F.ref='{$ref}'");
       
    18     $this->film = $query->execute()->getFirst();
       
    19 	
       
    20 	// retrieve video infos
       
    21   	$this->videos = $this->film->getVideos();
       
    22       
       
    23   	return sfView::SUCCESS;
       
    24   }
       
    25   
       
    26   public function executeSegmentList() {
       
    27 
       
    28   }  
       
    29 }