Loads an array with data about the type referred to by $identifier in
$status.
abstract public loadTypeDataByIdentifier ( string $identifier, integer $status ) : array(int=>array(string=>mixed)) | ||
$identifier | string | |
$status | integer | |
리턴 | array(int=>array(string=>mixed)) |
/** * Loads a (defined) content type by identifier * * Note: This method is responsible of having the Field Definitions of the loaded ContentType sorted by placement. * * @param string $identifier * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If defined type is not found * * @return \eZ\Publish\SPI\Persistence\Content\Type */ public function loadByIdentifier( $identifier ) { $rows = $this->contentTypeGateway->loadTypeDataByIdentifier( $identifier, Type::STATUS_DEFINED ); return $this->loadFromRows( $rows, $identifier, Type::STATUS_DEFINED ); }
/** * Loads an array with data about the type referred to by $identifier in * $status. * * @param string $identifier * @param int $status * * @return array(int=>array(string=>mixed)) Data rows. */ public function loadTypeDataByIdentifier($identifier, $status) { try { return $this->innerGateway->loadTypeDataByIdentifier($identifier, $status); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }