PHP 클래스 Webiny\Component\Entity\EntityAttributeBuilder

파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$classMap

보호된 프로퍼티들

프로퍼티 타입 설명
$attribute
$attributes
$entity

공개 메소드들

메소드 설명
__construct ( AbstractEntity $entity, ArrayObject $attributes )
arr ( ) : ArrayAttribute
attr ( $attribute ) Create a new attribute
boolean ( ) : BooleanAttribute
char ( ) : CharAttribute
date ( ) : DateAttribute
datetime ( ) : DateTimeAttribute
dynamic ( callable $callable ) : DynamicAttribute
float ( ) : FloatAttribute
geoPoint ( ) : GeoPointAttribute
integer ( ) : IntegerAttribute
many2many ( string $collectionName ) : Many2ManyAttribute
many2one ( ) : Many2OneAttribute
object ( ) : ObjectAttribute
one2many ( $relatedAttribute ) : One2ManyAttribute
smart ( AbstractAttribute $attribute ) : AbstractAttribute Set attribute instance

메소드 상세

__construct() 공개 메소드

public __construct ( AbstractEntity $entity, ArrayObject $attributes )
$entity AbstractEntity
$attributes Webiny\Component\StdLib\StdObject\ArrayObject\ArrayObject

arr() 공개 메소드

public arr ( ) : ArrayAttribute
리턴 Webiny\Component\Entity\Attribute\ArrayAttribute

attr() 공개 메소드

Create a new attribute
public attr ( $attribute )
$attribute

boolean() 공개 메소드

public boolean ( ) : BooleanAttribute
리턴 Webiny\Component\Entity\Attribute\BooleanAttribute

char() 공개 메소드

public char ( ) : CharAttribute
리턴 Webiny\Component\Entity\Attribute\CharAttribute

date() 공개 메소드

public date ( ) : DateAttribute
리턴 Webiny\Component\Entity\Attribute\DateAttribute

datetime() 공개 메소드

public datetime ( ) : DateTimeAttribute
리턴 Webiny\Component\Entity\Attribute\DateTimeAttribute

dynamic() 공개 메소드

public dynamic ( callable $callable ) : DynamicAttribute
$callable callable
리턴 Webiny\Component\Entity\Attribute\DynamicAttribute

float() 공개 메소드

public float ( ) : FloatAttribute
리턴 Webiny\Component\Entity\Attribute\FloatAttribute

geoPoint() 공개 메소드

public geoPoint ( ) : GeoPointAttribute
리턴 Webiny\Component\Entity\Attribute\GeoPointAttribute

integer() 공개 메소드

public integer ( ) : IntegerAttribute
리턴 Webiny\Component\Entity\Attribute\IntegerAttribute

many2many() 공개 메소드

public many2many ( string $collectionName ) : Many2ManyAttribute
$collectionName string Intermediate collection name
리턴 Webiny\Component\Entity\Attribute\Many2ManyAttribute

many2one() 공개 메소드

public many2one ( ) : Many2OneAttribute
리턴 Webiny\Component\Entity\Attribute\Many2OneAttribute

object() 공개 메소드

public object ( ) : ObjectAttribute
리턴 Webiny\Component\Entity\Attribute\ObjectAttribute

one2many() 공개 메소드

public one2many ( $relatedAttribute ) : One2ManyAttribute
$relatedAttribute
리턴 Webiny\Component\Entity\Attribute\One2ManyAttribute

smart() 공개 메소드

Set attribute instance
public smart ( AbstractAttribute $attribute ) : AbstractAttribute
$attribute Webiny\Component\Entity\Attribute\AbstractAttribute
리턴 Webiny\Component\Entity\Attribute\AbstractAttribute

프로퍼티 상세

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

protected $attribute

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

protected $attributes

$classMap 공개적으로 정적으로 프로퍼티

public static $classMap

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

protected $entity