CC-1172 adding qtip tooltips on library files to show metadata.
This commit is contained in:
parent
ae6b97f8f1
commit
d81a84ca9a
11 changed files with 147 additions and 20 deletions
|
@ -166,13 +166,13 @@ class Playlist {
|
|||
return FALSE;
|
||||
|
||||
$storedPlaylist = new Playlist();
|
||||
$storedPlaylist->id = $pl->getDbId();
|
||||
$storedPlaylist->id = $id;
|
||||
$storedPlaylist->name = $pl->getDbName();
|
||||
$storedPlaylist->state = $pl->getDbState();
|
||||
$storedPlaylist->currentlyaccessing = $pl->getDbCurrentlyaccessing();
|
||||
$storedPlaylist->editedby = $pl->getDbEditedby();
|
||||
$storedPlaylist->mtime = $pl->getDbMtime();
|
||||
|
||||
|
||||
return $storedPlaylist;
|
||||
}
|
||||
|
||||
|
@ -461,7 +461,7 @@ class Playlist {
|
|||
}
|
||||
|
||||
$metadata = $media->getMetadata();
|
||||
$length = $metadata["length"];
|
||||
$length = $metadata["dcterms:extent"];
|
||||
|
||||
if (!is_null($p_clipLength)) {
|
||||
$length = $p_clipLength;
|
||||
|
@ -777,6 +777,25 @@ class Playlist {
|
|||
|
||||
}
|
||||
|
||||
public function getAllPLMetaData()
|
||||
{
|
||||
$categories = $this->categories;
|
||||
$row = CcPlaylistQuery::create()->findPK($this->id);
|
||||
$md = array();
|
||||
|
||||
foreach($categories as $key => $val) {
|
||||
if($val === 'length') {
|
||||
$md[$key] = $this->getLength();
|
||||
continue;
|
||||
}
|
||||
|
||||
$method = 'get' . $val;
|
||||
$md[$key] = $row->$method();
|
||||
}
|
||||
|
||||
return $md;
|
||||
}
|
||||
|
||||
public function getPLMetaData($category)
|
||||
{
|
||||
$cat = $this->categories[$category];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue