class ObjectBuilder (View source)

Properties

protected $attributeTypeFactory
protected $entity
protected $entityManager
protected $app

Methods

__construct(Application $app, EntityManagerInterface $entityManager, TypeFactory $attributeTypeFactory)

No description

EntityManagerInterface
getEntityManager()

No description

getEntity()

No description

createObject($name)

No description

__call($method, $arguments)

No description

save()

No description

buildForm($formName)

No description

buildAssociation()

No description

$this
addAttribute(string $type_handle, string $name, string|null $handle = null, Settings $settings = null, bool $akIsSearchable = true, bool $akIsSearchableIndexed = false)

Add an attribute to the object.

getObject()

No description

mixed
buildObject()

No description

Details

TypeFactory getAttributeTypeFactory()

No description

Return Value

TypeFactory

__construct(Application $app, EntityManagerInterface $entityManager, TypeFactory $attributeTypeFactory)

No description

Parameters

Application $app
EntityManagerInterface $entityManager
TypeFactory $attributeTypeFactory

EntityManagerInterface getEntityManager()

No description

Return Value

EntityManagerInterface

Entity getEntity()

No description

Return Value

Entity

createObject($name)

No description

Parameters

$name

__call($method, $arguments)

No description

Parameters

$method
$arguments

save()

No description

buildForm($formName)

No description

Parameters

$formName

buildAssociation()

No description

$this addAttribute(string $type_handle, string $name, string|null $handle = null, Settings $settings = null, bool $akIsSearchable = true, bool $akIsSearchableIndexed = false)

Add an attribute to the object.

Parameters

string $type_handle

Attribute Type Handle

string $name

Attribute Key Name

string|null $handle

Attribute Key Handle. If not specified, a new handle will created. If attribute key with given handle already exists, just skip to add it.

Settings $settings

Attribute Key Settings object, optional.

bool $akIsSearchable

Make this attribute searchable or not in advanced search. If not specified, searchable (default).

bool $akIsSearchableIndexed

Include content of this attribute in search index. If not specified, do not included (default).

Return Value

$this

getObject()

No description

mixed buildObject()

No description

Return Value

mixed