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 CommentsForModelCommentsFeedPortletElement TaskCommentsElement

Public Member Functions

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

Static Public Member Functions

static getModelAttributeNames ()
static getRelatedModelCommentInlineEditView ($id, $relatedModelId, $relatedModelClassName, $relatedModelRelationName, $uniquePageId=null)

Protected Member Functions

 getCommentsWrappingCssClass ()
 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 91 of file CommentsElement.php.

renderControlNonEditable (  )  [protected]

Renders the attribute from the model.

Returns:
The element's content.

Reimplemented from Element.

Definition at line 100 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 115 of file CommentsElement.php.

renderLabel (  )  [protected]
Returns:
string

Reimplemented from Element.

Definition at line 123 of file CommentsElement.php.

renderRelatedModelCommentsContent (  )  [protected]

Renders related model comments

Returns:
string

Definition at line 132 of file CommentsElement.php.

renderRelatedModelCreateCommentContent (  )  [protected]

Renders related model create comment form

Returns:
string

Definition at line 149 of file CommentsElement.php.

static getRelatedModelCommentInlineEditView ( id,
relatedModelId,
relatedModelClassName,
relatedModelRelationName,
uniquePageId = null 
) [static]

Used for inline comments edit Get view and set parameters for comment inline edit

Parameters:
$id 
$relatedModelId 
$relatedModelClassName 
$relatedModelRelationName 
null $uniquePageId
Returns:
CommentInlineEditView
Exceptions:
NotFoundException 

Definition at line 198 of file CommentsElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Mar 18 07:10:48 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