PHP Класс BaseEventTypeElement

Наследование: extends BaseElement
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$firm
$patientId
$useContainerView
$userId

Защищенные свойства (Protected)

Свойство Тип Описание
$_children
$_element_type
$errorExceptions
$frontEndErrors

Открытые методы

Метод Описание
addError ( $attribute, $message )
canCopy ( ) : boolean Can this element be copied (cloned/duplicated) Override to return true if you want an element to be copyable.
canViewPrevious ( ) : boolean Can we view the previous version of this element.
getChildElementTypes ( ) : ElementType[] get the child element types for this BaseEventElementType.
getChildren ( ) : array Return this elements children.
getContainer_create_view ( )
getContainer_form_view ( )
getContainer_print_view ( )
getContainer_update_view ( )
getContainer_view_view ( )
getCreate_view ( )
getDefaultContainerView ( )
getDefaultView ( )
getElementType ( ) : ElementType Get the ElementType for this element.
getElementTypeName ( ) : string Return the element type name.
getForm_View ( )
getFrontEndErrors ( ) returns the front-end attributes with errors.
getInfoText ( )
getPrint_view ( )
getSetting ( $key )
getUpdate_view ( )
getView_view ( )
hasMultiSelectValue ( $relation, $value_string ) Returns true if the specified multiselect relation has the value $value_string.
isEditable ( )
isHiddenInUI ( ) : boolean Is this element to be hidden in the UI? (Prevents the elements from being displayed on page load.).
isRequired ( ) : boolean Is this a required element?
isRequiredInUI ( ) : boolean Is this element required in the UI? (Prevents the user from being able to remove the element.).
loadFromExisting ( BaseEventTypeElement $element ) Load an existing element's data into this one The base implementation simply uses copiedFields(), but it may be overridden to allow for more complex relationships.
render ( $action )
requiredIfSide ( $attribute, $params )
setChildren ( BaseEventTypeElement[] $children ) set the children for this element - allows external definition of what the children should be (for workflows determined by controllers and the like.
setDefaultOptions ( ) Stubbed method to set default options Used by child objects to set defaults for forms on create.
setUpdateOptions ( ) Stubbed method to set update options Used by child objects to override null values for forms on update.
softDelete ( ) stub method to allow elements to carry out actions related to being a part of a soft deleted event.
updateMultiSelectData ( $model, $ids, $relation_field ) Updates multiselect items in the database, deleting items not passed in $ids.

Защищенные методы

Метод Описание
copiedFields ( ) : array: Fields which are copied by the loadFromExisting() method By default these are taken from the "safe" scenario of the model rules, but should be overridden for more complex requirements.
errorAttributeException ( $attribute ) : mixed Allows for exceptions where the element displayed is not the one required. eg for ajax control elements.

Описание методов

addError() публичный Метод

public addError ( $attribute, $message )

canCopy() публичный Метод

Can this element be copied (cloned/duplicated) Override to return true if you want an element to be copyable.
public canCopy ( ) : boolean
Результат boolean

canViewPrevious() публичный Метод

Can we view the previous version of this element.
public canViewPrevious ( ) : boolean
Результат boolean

copiedFields() защищенный Метод

Fields which are copied by the loadFromExisting() method By default these are taken from the "safe" scenario of the model rules, but should be overridden for more complex requirements.
protected copiedFields ( ) : array:
Результат array:

errorAttributeException() защищенный Метод

Allows for exceptions where the element displayed is not the one required. eg for ajax control elements.
protected errorAttributeException ( $attribute ) : mixed
$attribute
Результат mixed

getChildElementTypes() публичный Метод

get the child element types for this BaseEventElementType.
public getChildElementTypes ( ) : ElementType[]
Результат ElementType[]

getChildren() публичный Метод

Return this elements children.
public getChildren ( ) : array
Результат array

getContainer_create_view() публичный Метод

getContainer_form_view() публичный Метод

getContainer_print_view() публичный Метод

getContainer_update_view() публичный Метод

getContainer_view_view() публичный Метод

getCreate_view() публичный Метод

public getCreate_view ( )

getDefaultContainerView() публичный Метод

getDefaultView() публичный Метод

public getDefaultView ( )

getElementType() публичный Метод

Get the ElementType for this element.
public getElementType ( ) : ElementType
Результат ElementType

getElementTypeName() публичный Метод

Return the element type name.
public getElementTypeName ( ) : string
Результат string $name

getForm_View() публичный Метод

public getForm_View ( )

getFrontEndErrors() публичный Метод

returns the front-end attributes with errors.
public getFrontEndErrors ( )

getInfoText() публичный Метод

public getInfoText ( )

getPrint_view() публичный Метод

public getPrint_view ( )

getSetting() публичный Метод

public getSetting ( $key )

getUpdate_view() публичный Метод

public getUpdate_view ( )

getView_view() публичный Метод

public getView_view ( )

hasMultiSelectValue() публичный Метод

Returns true if the specified multiselect relation has the value $value_string.
public hasMultiSelectValue ( $relation, $value_string )

isEditable() публичный Метод

public isEditable ( )

isHiddenInUI() публичный Метод

Is this element to be hidden in the UI? (Prevents the elements from being displayed on page load.).
public isHiddenInUI ( ) : boolean
Результат boolean

isRequired() публичный Метод

Is this a required element?
public isRequired ( ) : boolean
Результат boolean

isRequiredInUI() публичный Метод

Is this element required in the UI? (Prevents the user from being able to remove the element.).
public isRequiredInUI ( ) : boolean
Результат boolean

loadFromExisting() публичный Метод

Load an existing element's data into this one The base implementation simply uses copiedFields(), but it may be overridden to allow for more complex relationships.
public loadFromExisting ( BaseEventTypeElement $element )
$element BaseEventTypeElement

render() публичный Метод

public render ( $action )

requiredIfSide() публичный Метод

public requiredIfSide ( $attribute, $params )

setChildren() публичный Метод

set the children for this element - allows external definition of what the children should be (for workflows determined by controllers and the like.
public setChildren ( BaseEventTypeElement[] $children )
$children BaseEventTypeElement[]

setDefaultOptions() публичный Метод

Stubbed method to set default options Used by child objects to set defaults for forms on create.
public setDefaultOptions ( )

setUpdateOptions() публичный Метод

Stubbed method to set update options Used by child objects to override null values for forms on update.
public setUpdateOptions ( )

softDelete() публичный Метод

stub method to allow elements to carry out actions related to being a part of a soft deleted event.
public softDelete ( )

updateMultiSelectData() публичный Метод

Updates multiselect items in the database, deleting items not passed in $ids.
public updateMultiSelectData ( $model, $ids, $relation_field )

Описание свойств

$_children защищенное свойство

protected $_children

$_element_type защищенное свойство

protected $_element_type

$errorExceptions защищенное свойство

protected $errorExceptions

$firm публичное свойство

public $firm

$frontEndErrors защищенное свойство

protected $frontEndErrors

$patientId публичное свойство

public $patientId

$useContainerView публичное свойство

public $useContainerView

$userId публичное свойство

public $userId