public function clientValidateAttribute($object,$attribute){ if(!is_array($this->range)) throw new CException(Yii::t('yii','The "range" property must be specified with a list of values.'));

if(($message=$this->message)===null)$message=$this->not ? Yii::t('yii','{attribute} is in the list.') : Yii::t('yii','{attribute} is not in the list.');$message=strtr($message,array('{attribute}'=>$object->getAttributeLabel($attribute), ));