loadParentLocationsDataForDraftContent() abstract public method

Loads data for all parent Locations for unpublished Content by given $contentId.
abstract public loadParentLocationsDataForDraftContent ( mixed $contentId ) : array
$contentId mixed
return array
Exemplo n.º 1
0
 /**
  * @see \eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::loadParentLocationsDataForDraftContent
  */
 public function loadParentLocationsDataForDraftContent($contentId)
 {
     try {
         return $this->innerGateway->loadParentLocationsDataForDraftContent($contentId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Exemplo n.º 2
0
 /**
  * @see \eZ\Publish\SPI\Persistence\Content\Location\Handler::loadParentLocationsForDraftContent
  */
 public function loadParentLocationsForDraftContent($contentId)
 {
     $rows = $this->locationGateway->loadParentLocationsDataForDraftContent($contentId);
     return $this->locationMapper->createLocationsFromRows($rows);
 }