private function getDrmKey($entry) { if ($entry) { $drmKey = DrmKeyPeer::retrieveByUniqueKey($entry->getId(), DrmKeyObjectType::ENTRY, PlayReadyPlugin::getPlayReadyProviderCoreValue()); } else { $drmKey = null; } return $drmKey; }
private function getEntryKeyId($entryId) { $drmKey = DrmKeyPeer::retrieveByUniqueKey($entryId, DrmKeyObjectType::ENTRY, PlayReadyPlugin::getPlayReadyProviderCoreValue()); if ($drmKey) { return $drmKey->getDrmKey(); } else { return null; } }