public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('text, parent_id, list_no', 'safe'), array('text, list_no', 'required'), array('id, text, parent_id, list_no', 'safe', 'on' => 'search'));
}