Public Member Functions | Public Attributes | Protected Attributes

Comment Class Reference

Comment annotation. More...

Inheritance diagram for Comment:
BeditaAnnotationModel BEAppObjectModel BEAppModel AppModel

List of all members.

Public Member Functions

 beforeValidate ()

Public Attributes

 $useTable = 'annotations'
 $actsAs = array()
 $objectTypesGroups = array("nodashboard")
 $validate

Protected Attributes

 $modelBindings

Detailed Description

Comment annotation.

Definition at line 25 of file comment.php.


Member Data Documentation

Comment::$modelBindings [protected]
Initial value:
 array(
        'detailed' => array(
            'BEObject' => array(
                'ObjectType',
                'UserCreated',
                'UserModified',
                'RelatedObject',
                'Version' => array('User.realname', 'User.userid'),
                'GeoTag'
            ),
            'ReferenceObject'
        ),
        'default' => array(
            'BEObject' => array('ObjectType', 'GeoTag'),
            'ReferenceObject'
        ),
        'minimum' => array('BEObject' => array('ObjectType')),
        'frontend' => array('BEObject' => array('RelatedObject', 'GeoTag')),
        'api' => array('BEObject' => array('GeoTag'))
    )

Reimplemented from BeditaAnnotationModel.

Definition at line 33 of file comment.php.

Comment::$validate
Initial value:
 array(
            'author' => array(
                'required'      => true
            ),
            'description' => array(
                'required'      => true
            ),
            'email' => array(
                'rule'          => 'email',
                'required'      => true,
                'message'       => 'email not valid'
            ),
            'url' => array (
                'rule'          => 'url',
                'required'      => false,
                'allowEmpty'    => true,
                'message'       => 'URL not valid'
            )
       )

Definition at line 54 of file comment.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:46 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus