loadParentLocationsDataForDraftContent() 추상적인 공개 메소드

Loads data for all parent Locations for unpublished Content by given $contentId.
abstract public loadParentLocationsDataForDraftContent ( mixed $contentId ) : array
$contentId mixed
리턴 array
예제 #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);
     }
 }
예제 #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);
 }