Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Tue Jan 22 07:10:22 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8