Index
-
\com\setasign\Konquadrat
-
Object
-
Custom
-
Mail
- DefaultSenderObject
- EmailAttachmentObject
- EmailAttachmentRelationObject
- EmailObject
- EmailTemplateAttachmentRelationObject
- HasEmailTplObject
- HasEmailTplTrait
- SenderTplObject
- SenderTplTrait
- SmartyTemplateObject
- StaticEmailAttachmentObject
- StaticEmailAttachmentTplObject
- StaticEmailAttachmentTplTrait
- StaticUnsyncedEmailAttachmentObject
- TemplateTplObject
- TemplateTplTrait
-
Mail
-
Custom
-
Object
com\setasign\Konquadrat\Object\Custom\Mail
HasEmailTplObject Konquadrat ObjectTemplate "Mail\HasEmailTpl"
File: /Konquadrat/src/Object/Custom/generated/Mail/HasEmailTplObject.php
Implemented in
Implements
- \com\setasign\Konquadrat\Field\FieldContainer\FieldContainerInterface
- \com\setasign\Konquadrat\Object\AbstractObjectInterface
Summary
Methods
- __call()
- __get()
- __isset()
- __set()
- addEventListener()
- callAction()
- copyObjectData()
- delete()
- get()
- getAs()
- getChanged()
- getChilds()
- getData()
- getField()
- getFieldContainerName()
- getFields()
- getInitialData()
- getMagicWithParam()
- getObject()
- getPath()
- getPermissionResource()
- getReferencingObjects()
- getTabHeader()
- hasAction()
- hasDocument()
- hasField()
- isSettingData()
- reload()
- removeEventListener()
- resetField()
- save()
- set()
- setData()
- setLogger()
- update()
Constants
ACTION_DELETE
ACTION_READ
ACTION_WRITE
NAME
Methods
__call()
array $arguments
Give some magic methods:
- getField{$fieldName}() -> Alias for getField($fieldName)
- getChild{$objectType}Objects() -> Alias for getChilds($objectType)
- getReferencing{$objectType}ObjectsBy{$fieldName}Field() -> Alias for getReferencingObjects($objectType, $fieldName)
Parameters
- $name : string
- $arguments : array
__get()
Alias for get($fieldName, true)
Parameters
- $fieldName : string
Exceptions
Throws \com\setasign\Konquadrat\Object\MissingConfigurationException
See
__isset()
Checks whether $fieldName exists and the value is not null.
Parameters
- $fieldName : string
__set()
mixed $value
Alias for set($fieldName, $value)
Parameters
- $fieldName : string
- $value : mixed
See
addEventListener()
string $name,
callable $callback
Parameters
- $eventName : string
- $name : string
The name of this callback. The name is only unique for this method & object.
- $callback : callable
callAction()
array $additionalArguments = array ( )
Parameters
- $action : string
- $additionalArguments : array
Exceptions
Throws \InvalidArgumentException If the action is unknown.
copyObjectData()
null|string|string[] $onlyTypes = null
Copy the data of $object into this object. All fields of AbstractObject will be ignored (including the parent).
Parameters
- $object : \com\setasign\Konquadrat\Object\AbstractObjectInterface
- $onlyTypes : null|string|string[]
delete()
Marks the object as deleted and saves the object.
Existing references will not be unlinked, but you could find these objects with ObjectFinder::getReferencingObjects()!
This method will create a transaction if no transaction is active and revert everything if an error is thrown.
Parameters
- $recursive : bool
Delete also all childs.
Return Values
Array with the ids of all deleted objects.
Exceptions
Throws \Throwable
get()
bool $resolve = true
Get the value of $fieldName.
Parameters
- $fieldName : string
- $resolve : bool
Resolve resolvable fields like reference and json fields.
getAs()
Get the object as document of type $name
Parameters
- $name : string
Exceptions
Throws \InvalidArgumentException If the name is invalid!
getChilds()
Parameters
- $type : null|\com\setasign\Konquadrat\Object\class-string<\com\setasign\Konquadrat\Object\T>|string[]
getData()
Returns the data of the fields of this object.
MultiLangString, MultiLangText and Password fields are ignored.
Parameters
- $resolveMagicFields : bool
getField()
Gets the field instance of $fieldName.
Parameters
- $fieldName : string
Exceptions
Throws \com\setasign\Konquadrat\Object\MissingConfigurationException If the field isn't configured.
getFieldContainerName()
getFields()
Return all fields.
getInitialData()
getMagicWithParam()
array $parameters
Parameters
- $fieldName : string
- $parameters : array
getPermissionResource()
getReferencingObjects()
string $field
Parameters
- $type : \com\setasign\Konquadrat\Object\class-string<\com\setasign\Konquadrat\Object\T>
- $field : string
getTabHeader()
Get the text header which will be shown in the gui.
hasAction()
Parameters
- $action : string
hasDocument()
Parameters
- $name : string
hasField()
Checks whether the object has the field $fieldName.
Parameters
- $fieldName : string
isSettingData()
Will be true when the data from the database will be inserted into the object.
reload()
Reloads the object.
All changed data will be reset!!
Exceptions
Throws \BadMethodCallException If the object was never saved!
Throws \com\setasign\Konquadrat\Object\UnknownObjectException If the object cannot be found!
removeEventListener()
string $name
Parameters
- $eventName : string
- $name : string
resetField()
Resets the field to the initial value.
Parameters
- $fieldName : string
save()
Save the object.
Parameters
- $force : bool
Save everytime no matter whether there was a change
Exceptions
Throws \com\setasign\Konquadrat\Object\ObjectSaveException If an error occurs during the save process.
set()
Sets the value for the field.
Parameters
- $fieldName : string
- $value : mixed|\com\setasign\Konquadrat\Field\DefaultValue
setData()
bool $ignoreMissingFields = false
Set multiple fields at once.
Parameters
- $data : array
- $ignoreMissingFields : bool
If true unknown fields will just be ignored.
setLogger()
Parameters
- $logger : \Psr\Log\LoggerInterface
update()
This field will notify the field container that the field was updated.
