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