eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\ExceptionConversion::loadLocationDataByContent PHP Метод

loadLocationDataByContent() публичный Метод

Loads data for all Locations for $contentId, optionally only in the subtree starting at $rootLocationId.
public loadLocationDataByContent ( integer $contentId, integer $rootLocationId = null ) : array
$contentId integer
$rootLocationId integer
Результат array
    public function loadLocationDataByContent($contentId, $rootLocationId = null)
    {
        try {
            return $this->innerGateway->loadLocationDataByContent($contentId, $rootLocationId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }