thd/apps/frontend/modules/editor/actions/components.class.php
author Gautier Thibault <gthibault@universcine.com>
Tue, 22 Sep 2009 16:40:38 +0200
changeset 35 94a1dc255022
permissions -rw-r--r--
Commit the all thd project created with the framework symfony

<?php 

class editorComponents extends sfComponents
{
  public function executeLeftPanel() {

  }
  public function executePlayer() {
	$ref = $this->getRequestParameter('ref');
  	$film_slug = $this->getRequestParameter('film_slug');	
  	
  	// retrieve infos in database
  	$query = Doctrine_Query::create()
      ->from('ThdFilm F')
      ->leftJoin('F.images I ')
      ->leftJoin('F.videos V')
      ->where("F.ref='{$ref}'");
    $this->film = $query->execute()->getFirst();
	
	// retrieve video infos
  	$this->videos = $this->film->getVideos();
      
  	return sfView::SUCCESS;
  }
  
  public function executeSegmentList() {

  }  
}