Source for file Border.php
Documentation is available at Border.php
* Validates the border property as defined by CSS.
* Local copy of properties this property is shorthand for.
protected $info =
array();
$def =
$config->getCSSDefinition();
$this->info['border-width'] =
$def->info['border-width'];
$this->info['border-style'] =
$def->info['border-style'];
$this->info['border-top-color'] =
$def->info['border-top-color'];
public function validate($string, $config, $context) {
$done =
array(); // segments we've finished
$ret =
''; // return value
foreach ($bits as $bit) {
foreach ($this->info as $propname =>
$validator) {
if (isset
($done[$propname])) continue;
$r =
$validator->validate($bit, $config, $context);
Documentation generated on Thu, 19 Jun 2008 18:48:54 -0400 by phpDocumentor 1.4.2