function __construct($flavor, $entryId = null, $baseUrl = '') { parent::__construct($flavor, $entryId, $baseUrl); $entry = entryPeer::retrieveByPK($this->entryId); $this->setMimeType($entry); }
function __construct($flavors, $entryId = null, $baseUrl = '') { parent::__construct($flavors, $entryId, $baseUrl); // check if audio flavors exist foreach ($this->flavors as $flavor) { if (isset($flavor['audioLanguage'])) { $this->hasAudioFlavors = true; break; } } }