12 foreach ($this->widgetAttributes() as $fieldName => $className) {
13 if (isset($values[$fieldName]) && class_exists($className)) {
15 $arr = $this->widgetParams($fieldName);
17 $newParams =
$class->params;
18 $arr = (array) CJavaScript::jsonDecode($arr);
19 foreach ($arr as $p => $v) {
20 if (isset($newParams[$p])) {
24 $class->params = $newParams;
26 if (method_exists(
$class,
'setAttributes')) {
27 $values[$fieldName] =
$class->setAttributes($values[$fieldName], $this, $fieldName);
36 return Yii::app()->getModule(
'user')->getBehaviorsFor(get_class($this));