equal
deleted
inserted
replaced
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 } |
|