Source for file TextDecoration.php
Documentation is available at TextDecoration.php
* Validates the value for the CSS property text-decoration
* @note This class could be generalized into a version that acts sort of
* like Enum except you can compound the allowed values.
public function validate($string, $config, $context) {
static $allowed_values =
array(
$string =
strtolower($this->parseCDATA($string));
if ($string ===
'none') return $string;
foreach ($parts as $part) {
if (isset
($allowed_values[$part])) {
if ($final ===
'') return false;
Documentation generated on Thu, 19 Jun 2008 18:50:24 -0400 by phpDocumentor 1.4.2