ImageElement Class Reference

Inheritance diagram for ImageElement:
Element ElementActionTypeInterface

Public Member Functions

 __construct ($model, $attribute, $form=null, array $params=array())

Static Public Member Functions

static getEditableActionType ()
static getNonEditableActionType ()

Data Fields

const IMAGE_SELECT_LINK_CLASS_NAME = 'image-select-link'
const IMAGE_EDIT_LINK_CLASS_NAME = 'image-edit-link'

Protected Member Functions

 setImage ($imageId)
 renderControlEditable ()
 renderQtipForPreviewImage ()
 renderControlNonEditable ()
 renderImageDetails ()
 registerScriptsForEditAndSelectLinks ()
 registerImageModalSelectScript ()
 registerImageModalEditScript ()
 renderImage ($isThumb=false)
 getHtmlOptions ()
 getIdForSelectLink ()
 getIdForEditLink ()
 getSelectLinkUrlParams ()
 getModalTransferInformation ()
 resolveAjaxOptionsForSelectingModel ($formId)
 resolveAjaxOptionsForEditingModel ()
 getModalTitleForSelectingModel ()
 getModalTitleForEditingModel ()
 getModalContainerId ()
 getAltText ()
 getIdForPreviewDiv ()
 getApplyLinkId ()

Protected Attributes

 $image

Detailed Description

Display an image selection

Definition at line 40 of file ImageElement.php.


Constructor & Destructor Documentation

__construct ( model,
attribute,
form = null,
array $  params = array() 
)

Constructs the element specifying the model and attribute. In the case of needing to show editable information, a form is also provided.

Parameters:
$form Optional. If supplied an editable element will be rendered.
$params Can have additional parameters for use. 'wide' true or false is an example parameter

Reimplemented from Element.

Definition at line 48 of file ImageElement.php.


Member Function Documentation

static getEditableActionType (  )  [static]

Gets the action type for the related model's action that is called by the select button or the autocomplete feature in the Editable render.

Implements ElementActionTypeInterface.

Definition at line 156 of file ImageElement.php.

static getNonEditableActionType (  )  [static]

Gets the action type for the related model's action that is called by the link in the nonEditable render.

Implements ElementActionTypeInterface.

Definition at line 161 of file ImageElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jul 23 07:11:03 2019