public function internalValidateValue(&$value)
 {
     $result = parent::validateAttribute($value);
     if (empty($result) && $this->allowNamespace) {
         if (!$model->hasErrors() && $this->allowNamespace) {
             $result = $this->validateNsSeparator($model, $attribute, -1, $this->trailingNamespaceSeparator);
         }
     }
     return $result;
 }
 public function internalValidateValue(&$value)
 {
     $result = parent::internalValidateValue($value);
     if (!$result) {
         $result = $this->internalValidateClassExists($value);
     }
     if (!$result) {
         $result = $this->internalValidateExtends($value);
     }
     return $result;
 }