9 public static function model($className = __CLASS__)
22 'StatesBinaryField' => array(
23 'class' =>
'StatesBinaryFieldBehavior',
24 'attribute' =>
'Rights',
62 abstract public function search($params);
112 if (empty($record) || empty($fields)) {
115 foreach ($fields as $field) {
116 if (is_array($record)) {
117 if (isset($record[$field])) {
118 $value = $record[$field];
121 } elseif ($record instanceof CActiveRecord) {
122 if (isset($record->$field)) {
123 $value = $record->$field;