Class yeesoft\comment\models\search\CommentSearch

Inheritanceyeesoft\comment\models\search\CommentSearch » yeesoft\comments\models\Comment » yii\db\ActiveRecord

CommentSearch represents the model behind the search form about yeesoft\comments\models\Comment.

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
SCENARIO_GUEST 'guest' yeesoft\comments\models\Comment
SCENARIO_USER 'user' yeesoft\comments\models\Comment
STATUS_APPROVED 1 yeesoft\comments\models\Comment
STATUS_PENDING 0 yeesoft\comments\models\Comment
STATUS_PUBLISHED self::STATUS_APPROVED yeesoft\comments\models\Comment
STATUS_SPAM 2 yeesoft\comments\models\Comment
STATUS_TRASH 3 yeesoft\comments\models\Comment

Property Details

$created_at_operand public property
public $created_at_operand null

Method Details

rules() public method

public void rules ( )
scenarios() public method

public void scenarios ( )
search() public method

Creates data provider instance with search query applied

public \yii\data\ActiveDataProvider search ( $params )
$params array