Public Member Functions | |
tableName () | |
setRequiredForAnonymous ($requiredForAnonymous) | |
getRequiredForAnonymous () | |
rules () | |
relations () | |
defaultScope () | |
scopes () | |
delete ($completely=false) | |
hash () | |
attributeLabels () | |
getStatusText () | |
search () |
Static Public Member Functions | |
static | model ($className=__CLASS__) |
Public Attributes | |
const | NOT_APPROVED = 0 |
const | APPROVED = 1 |
const | DELETED = -1 |
$verifyCode |
Protected Attributes | |
$requiredForAnonymous = null |
Definition at line 30 of file Comment.php.
Comment::attributeLabels | ( | ) |
Get attribute labels
Definition at line 227 of file Comment.php.
References CommentsModule\t().
Comment::defaultScope | ( | ) |
Returns the default named scope that should be implicitly applied to all queries for this model.
Definition at line 167 of file Comment.php.
Comment::delete | ( | $completely = false | ) |
Delete comment
bool | $completely | if true delete from database |
Definition at line 201 of file Comment.php.
Comment::getRequiredForAnonymous | ( | ) |
Returns the array which include information about fields requirement
Definition at line 81 of file Comment.php.
Referenced by rules().
Comment::getStatusText | ( | ) |
Comment status in readable format
Definition at line 250 of file Comment.php.
References CommentsModule\t().
Comment::hash | ( | ) |
Get comment hash
Definition at line 216 of file Comment.php.
|
static |
Returns the static model of the specified AR class.
string | $className | active record class name |
Definition at line 53 of file Comment.php.
Referenced by CommentController\actionApprove(), BulkController\actionClear(), CommentController\actionDelete(), BulkController\actionIndex(), CommentController\actionRemoteApprove(), CommentController\actionRemoteDelete(), CommentsAmountWidget\getCommentsAmount(), CommentsModule\isEmailModerator(), CommentTest\testDelete(), CommentTest\testFind(), and CommentTest\testHash().
Comment::relations | ( | ) |
Return list of related object declarations
Definition at line 154 of file Comment.php.
Comment::rules | ( | ) |
Returns the validation rules for attributes.
Definition at line 118 of file Comment.php.
References getRequiredForAnonymous().
Comment::scopes | ( | ) |
Returns the declaration of named scopes.
Definition at line 179 of file Comment.php.
Comment::search | ( | ) |
Search
Definition at line 272 of file Comment.php.
Comment::setRequiredForAnonymous | ( | $requiredForAnonymous | ) |
Set the value of the protected variable $requiredForAnonymous
Definition at line 72 of file Comment.php.
Comment::tableName | ( | ) |
Returns the name of the associated database table. By default this method returns the class name as the table name. You may override this method if the table is not named after this convention.
Definition at line 65 of file Comment.php.
const Comment::NOT_APPROVED = 0 |
Values for $status field
Definition at line 36 of file Comment.php.
Referenced by CommentController\actionApprove(), CommentController\actionCreate(), and CommentController\actionRemoteApprove().