Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Protected Member Functions | List of all members
NotContainsTagsValidator Class Reference

Protected Member Functions

 validateAttribute ($object, $attribute)

Detailed Description

Definition at line 5 of file NotContainsTagsValidator.php.

Member Function Documentation

NotContainsTagsValidator::validateAttribute (   $object,
  $attribute 
)
protected

Validates a single attribute. This method should be overridden by child classes.

Parameters
CModel$objectthe data object being validated
string$attributethe name of the attribute to be validated.

Definition at line 14 of file NotContainsTagsValidator.php.

References UserModule\t().

{
if ($object->$attribute != strip_tags($object->$attribute)) {
$this->addError($object, $attribute, UserModule::t("Field shouldn't contains any tags"));
}
}

The documentation for this class was generated from the following file: