public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(array('rule_type_id, parent_rule_id, rule_order, site_id, theatre_id, subspecialty_id, is_child, show_warning, warning_text, emphasis, strong, firm_id', 'safe'), array('rule_type_id', 'required'), array('id, name', 'safe', 'on' => 'search'));
}