Methods | ||
---|---|---|
public
static
|
createInstance(string $sClassName, string $sModuleName = ''): Entity
|
# |
public
|
__construct(string $sModuleName = '')
|
# |
public
|
setModule(string $sModuleName): string
|
# |
public
|
getName(): string
|
# |
public
|
getModule(): string
|
# |
public
|
isModuleDisabled($sModuleName)
|
# |
public
|
getDisabledModules()
|
# |
public
|
clearDisabledModules()
|
# |
public
|
disableModule($sModuleName)
|
# |
public
|
disableModules($aModules)
|
# |
public
|
enableModule($sModuleName)
|
# |
public
|
enableModules($aModules)
|
# |
public
static
|
generateUUID(): string
|
# |
public
static
|
validateUUID(string $uuid): bool
|
# |
public
static
|
getTypes(): array
|
# |
public
|
setValues(array $aValues): void
|
# |
public
|
isStringAttribute(string $sPropertyName): array
|
# |
public
|
isSystemAttribute($sAttribute)
|
# |
public
|
isEncryptedAttribute(string $sPropertyName): array
|
# |
public
|
isExtendedAttribute(string $sPropertyName): bool
|
# |
public
|
canInheridAttribute(string $sPropertyName): bool
|
# |
public
|
setAttributeValue(string $sAttribute, mixed $mValue): void
|
# |
public
|
getAttributeValue(string $sName): mixed
|
# |
public
|
__isset(string $sName): bool
|
# |
public
|
__set(string $sAttribute, mixed $mValue): void
|
# |
public
|
__get(string $sName): mixed
|
# |
public
|
populate(type $aProperties)
|
# |
public
|
resetToDefaults()
|
# |
public
|
resetToDefault($sAttribute)
|
# |
public
|
getType($sAttribute): string
|
# |
public
|
isDefaultValue(type $sAttribute, type $mValue): type
|
# |
public
|
getDefaultValue(type $sAttribute): type
|
# |
public
|
isOverridedAttribute(type $sAttribute): type
|
# |
public
|
validate(): bool
|
# |
public
|
getMap(): array
|
# |
public
|
initAttribute(string $sAttribute, mixed $mValue): Attribute
|
# |
public
|
issetAttribute($sAttributeName): bool
|
# |
public
|
setOverridedAttributes(array $aAttributes)
|
# |
public
|
getAttribute($sAttributeName): Attribute
|
# |
public
|
getAttributes($bOnlyOverrided = false): array
|
# |
public
|
getAttributesType()
|
# |
public
|
getOverridedAttributes(): array
|
# |
public
|
getAttributesKeys(): array
|
# |
public
|
countAttributes(): int
|
# |
public
|
setStaticMap()
|
# |
public
|
getStaticMap(): array
|
# |
public
|
toArray(): array
|
# |
public
|
toResponseArray(): array
|
# |
public
static
|
extend($sModuleName, $aMap)
|
# |
public
|
save()
|
# |
public
|
delete()
|
# |
public
|
saveAttribute($sName)
|
# |
public
|
saveAttributes($aAttributes)
|
# |
public
|
isNodbAttribute($sAttributeName)
|
# |
public
|
isRestrictedAttribute($sAttributeName)
|
# |
public
|
populateFromDB($aEntity)
|
# |
Properties | |||
---|---|---|---|
public
|
int
|
$EntityId = 0
|
# |
public
|
string
|
$UUID
|
# |
public
|
string
|
$ModuleName
|
# |
public
|
string
|
$ParentType = null
|
# |
public
|
string
|
$ParentModuleName = null
|
# |
public
|
string
|
$ParentUUID = null
|
# |
public
static
|
array
|
$aSystemAttributes = [
'entityid' => 'int',
'uuid' => 'string',
'modulename' => 'string',
'parentuuid' => 'string',
'entitytype' => 'string',
]
|
# |