CommentsElement Class Reference

Inheritance diagram for CommentsElement:
Element DerivedElementInterface TaskCommentsElement

Public Member Functions

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

Static Public Member Functions

static getModelAttributeNames ()

Protected Member Functions

 renderControlEditable ()
 renderControlNonEditable ()
 renderLabel ()
 renderRelatedModelCommentsContent ()
 renderRelatedModelCreateCommentContent ()

Protected Attributes

 $relatedModelRelationName
 $moduleId

Detailed Description

Displays the comments list for related model along with input text area

Definition at line 40 of file CommentsElement.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

Reimplemented from Element.

Definition at line 60 of file CommentsElement.php.


Member Function Documentation

renderControlEditable (  )  [protected]
Exceptions:
NotImplementedException 

Reimplemented from Element.

Definition at line 86 of file CommentsElement.php.

renderControlNonEditable (  )  [protected]

Renders the attribute from the model.

Returns:
The element's content.

Reimplemented from Element.

Definition at line 95 of file CommentsElement.php.

static getModelAttributeNames (  )  [static]

Get the attributeNames of attributes used in the derived element. For this element, there are no attributes from the model.

Returns:
array - empty

Implements DerivedElementInterface.

Definition at line 109 of file CommentsElement.php.

renderLabel (  )  [protected]
Returns:
string

Reimplemented from Element.

Definition at line 117 of file CommentsElement.php.

renderRelatedModelCommentsContent (  )  [protected]

Renders related model comments

Returns:
string

Definition at line 126 of file CommentsElement.php.

renderRelatedModelCreateCommentContent (  )  [protected]

Renders related model create comment form

Returns:
string

Definition at line 143 of file CommentsElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Jun 24 07:10:22 2017