Source for file AlphaValue.php
Documentation is available at AlphaValue.php
parent::__construct(false); // opacity is non-negative, but we will clamp it
public function validate($number, $config, $context) {
$result =
parent::validate($number, $config, $context);
if ($result ===
false) return $result;
$float = (float)
$result;
if ($float <
0.0) $result =
'0';
if ($float >
1.0) $result =
'1';
Documentation generated on Thu, 19 Jun 2008 18:48:48 -0400 by phpDocumentor 1.4.2