Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
285 lines (105 sloc) 4.03 KB

deasilworks\CEF\EntityDataModel

Class EntityModel.

This is the generic entity model and allows the setting of arbitrary properties.

Properties

$tableName

protected string $tableName
  • Visibility: protected

$entityManager

protected \deasilworks\CEF\EntityDataManager $entityManager
  • Visibility: protected

$serializeNull

private boolean $serializeNull = false
  • Visibility: private

Methods

getTableName

string deasilworks\CEF\EntityDataModel::getTableName()
  • Visibility: public

setTableName

\deasilworks\CEF\EntityDataModel deasilworks\CEF\EntityDataModel::setTableName(string $tableName)
  • Visibility: public

Arguments

  • $tableName string

getEntityManager

\deasilworks\CEF\EntityDataManager deasilworks\CEF\EntityDataModel::getEntityManager()
  • Visibility: public

setEntityManager

\deasilworks\CEF\EntityDataModel deasilworks\CEF\EntityDataModel::setEntityManager(\deasilworks\CEF\EntityDataManager $entityManager)
  • Visibility: public

Arguments

save

\deasilworks\CEF\EntityCollection deasilworks\CEF\EntityDataModel::save()

Saves a model to the database.

  • Visibility: public

__toString

string deasilworks\CEF\CEFData::__toString()

isSerializeNull

boolean deasilworks\CEF\CEFData::isSerializeNull()

setSerializeNull

\deasilworks\CEF\CEFData deasilworks\CEF\CEFData::setSerializeNull(boolean $serializeNull)

Arguments

  • $serializeNull boolean

toJson

string deasilworks\CEF\CEFData::toJson()

To JSON.

serialize

mixed|string deasilworks\CEF\CEFData::serialize($obj, string $type)

Serialize.

Arguments

  • $obj mixed
  • $type string

__set

mixed deasilworks\CEF\CEFData::__set($name, $value)

Handle attribute sets.

Setting properties on the generic EntityModel used for collections without defined models and REQUIRED for hydration of entities with defined models.

Arguments

  • $name mixed
  • $value mixed

hydrate

boolean deasilworks\CEF\CEFData::hydrate($context, $name, $value)

Hydrate.

Arguments

  • $context mixed
  • $name mixed
  • $value mixed

hydrateEntityCollection

mixed deasilworks\CEF\CEFData::hydrateEntityCollection(\deasilworks\CEF\EntityCollection $obj, $value)

Arguments

hydrateClassObject

mixed deasilworks\CEF\CEFData::hydrateClassObject($obj, $data)

Hydrate class object.

Arguments

  • $obj mixed
  • $data mixed

LICENSE

MIT

This open-source project is brought to you by Deasil Works, Inc. Copyright © 2017 Deasil Works, Inc.
You can’t perform that action at this time.