public function getRootObjects(IRelatedObject $object) { /* @var $object CuePoint */ $entry = entryPeer::retrieveByPK($object->getEntryId()); if ($entry) { return array($entry); } return array(); }
public function getRootObjects(IRelatedObject $object) { /* @var $object categoryEntry */ $roots = array(); $category = categoryPeer::retrieveByPK($object->getCategoryId()); if ($category) { $roots = categoryPeer::getRootObjects($category); $roots[] = $category; } $entry = entryPeer::retrieveByPK($object->getEntryId()); if ($entry) { $roots[] = $entry; } return $roots; }
public function getRootObjects(IRelatedObject $object) { return array(entryPeer::retrieveByPK($object->getEntryId())); }
public function getRootObjects(IRelatedObject $object) { /* @var $object EntryDistribution */ $roots = array(); $distributionProfile = DistributionProfilePeer::retrieveByPK($object->getDistributionProfileId()); if ($distributionProfile) { $roots[] = $distributionProfile; } $entry = entryPeer::retrieveByPK($object->getEntryId()); if ($entry) { $roots[] = $entry; } return $roots; }