~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Widget/ModuleWidget.php

  • Committer: Dan Garner
  • Date: 2018-09-04 13:59:22 UTC
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: git-v1:4d88e54f27fbdb83ce096403ed4d22de11337174
Tag annotations on Library media in the Playlist timeline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
589
589
    }
590
590
 
591
591
    /**
 
592
     * @return array
 
593
     * @throws \Xibo\Exception\NotFoundException
 
594
     */
 
595
    final public function getMediaTags()
 
596
    {
 
597
        if ($this->module->regionSpecific == 0) {
 
598
            $media = $this->mediaFactory->getById($this->widget->getPrimaryMediaId());
 
599
            $media->load();
 
600
 
 
601
            return $media->tags;
 
602
        } else {
 
603
            return [];
 
604
        }
 
605
    }
 
606
 
 
607
    /**
592
608
     * Get the duration
593
609
     * @param array $options
594
610
     * @return int