PHP 클래스 Symfony\Component\Serializer\Serializer

objects are turned into arrays by normalizers arrays are turned into various output formats by encoders $serializer->serialize($obj, 'xml') $serializer->decode($data, 'xml') $serializer->denormalize($data, 'Class', 'xml')
저자: Jordi Boggiano ([email protected])
저자: Johannes M. Schmitt ([email protected])
저자: Lukas Kahwe Smith ([email protected])
상속: implements Symfony\Component\Serializer\SerializerInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$denormalizerCache
$encoders
$normalizerCache
$normalizers

공개 메소드들

메소드 설명
__construct ( array $normalizers = [], array $encoders = [] )
decode ( $data, $format )
denormalize ( $data, $type, $format = null )
deserialize ( $data, $type, $format )
encode ( $data, $format )
getEncoder ( $format )
normalize ( $data, $format = null )
serialize ( $data, $format )
supportsDecoding ( $format )
supportsDeserialization ( $format )
supportsEncoding ( $format )
supportsSerialization ( $format )

비공개 메소드들

메소드 설명
denormalizeObject ( mixed $data, string $class, string $format = null ) : object Denormalizes data back into an object of the given class
normalizeObject ( object $object, string $format = null ) : array | scalar Normalizes an object into a set of arrays/scalars

메소드 상세

__construct() 공개 메소드

public __construct ( array $normalizers = [], array $encoders = [] )
$normalizers array
$encoders array

decode() 최종 공개 메소드

final public decode ( $data, $format )

denormalize() 공개 메소드

public denormalize ( $data, $type, $format = null )

deserialize() 최종 공개 메소드

final public deserialize ( $data, $type, $format )

encode() 최종 공개 메소드

final public encode ( $data, $format )

getEncoder() 공개 메소드

public getEncoder ( $format )

normalize() 공개 메소드

public normalize ( $data, $format = null )

serialize() 최종 공개 메소드

final public serialize ( $data, $format )

supportsDecoding() 공개 메소드

public supportsDecoding ( $format )

supportsDeserialization() 공개 메소드

public supportsDeserialization ( $format )

supportsEncoding() 공개 메소드

public supportsEncoding ( $format )

supportsSerialization() 공개 메소드

public supportsSerialization ( $format )

프로퍼티 상세

$denormalizerCache 보호되어 있는 프로퍼티

protected $denormalizerCache

$encoders 보호되어 있는 프로퍼티

protected $encoders

$normalizerCache 보호되어 있는 프로퍼티

protected $normalizerCache

$normalizers 보호되어 있는 프로퍼티

protected $normalizers