CC-5450 : Refactor Media Management
small fixes for webstream items in playlists
This commit is contained in:
parent
017e7e274b
commit
7a07cc4510
|
@ -27,7 +27,7 @@ class PlaylistController extends Zend_Controller_Action
|
|||
$this->view->length = $formatter->format();
|
||||
|
||||
$this->view->obj = $obj;
|
||||
$this->view->contents = $obj->getMediaContents();
|
||||
$this->view->contents = $obj->getContents();
|
||||
$this->view->html = $this->view->render('playlist/update.phtml');
|
||||
$this->view->name = $obj->getName();
|
||||
$this->view->description = $obj->getDescription();
|
||||
|
|
|
@ -30,13 +30,13 @@ class Playlist extends BasePlaylist
|
|||
/*
|
||||
* returns a list of media contents.
|
||||
*/
|
||||
public function getMediaContents($criteria = NULL, PropelPDO $con = NULL) {
|
||||
public function getContents($criteria = NULL, PropelPDO $con = NULL) {
|
||||
|
||||
if (is_null($criteria)) {
|
||||
$criteria = new Criteria();
|
||||
$criteria->addAscendingOrderByColumn(MediaContentPeer::POSITION);
|
||||
}
|
||||
|
||||
return parent::getMediaContents($criteria, $con);
|
||||
return parent::getMediaContentsJoinMediaItem($criteria, $con);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,11 +15,11 @@ class Presentation_PlaylistItemWebstream extends Presentation_PlaylistItem
|
|||
}
|
||||
|
||||
public function getTitle() {
|
||||
$this->item->getName();
|
||||
return $this->item->getName();
|
||||
}
|
||||
|
||||
public function getCreator() {
|
||||
return $this->item->getCreator();
|
||||
return $this->item->getUrl();
|
||||
}
|
||||
|
||||
public function getCliplength() {
|
||||
|
|
|
@ -281,7 +281,7 @@ class Application_Service_MediaService
|
|||
),
|
||||
"Name" => array(
|
||||
"isColumn" => true,
|
||||
"title" => _("Title"),
|
||||
"title" => _("Name"),
|
||||
"width" => "170px",
|
||||
"class" => "library_title"
|
||||
),
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
<?php
|
||||
$contents = $this->obj->getMediaContents();
|
||||
$count = count($contents);
|
||||
?>
|
||||
|
||||
<div class="btn-toolbar spl-no-top-margin clearfix">
|
||||
<div class="btn-group pull-left">
|
||||
<a href="#" class="close-round" id="lib_pl_close"></a>
|
||||
|
@ -46,7 +41,7 @@
|
|||
|
||||
<div style="clear:both; float:none; width:100%;">
|
||||
<ul id="spl_sortable">
|
||||
<?php $this->contents = $contents;
|
||||
<?php $this->contents = $this->obj->getContents();
|
||||
echo $this->render('playlist/update.phtml');
|
||||
?>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue