Source for file Border.php

Documentation is available at Border.php

  1. <?php
  2.  
  3. /**
  4.  * Pre-transform that changes deprecated border attribute to CSS.
  5.  */
  6.  
  7.     public function transform($attr$config$context{
  8.         if (!isset($attr['border'])) return $attr;
  9.         $border_width $this->confiscateAttr($attr'border');
  10.         // some validation should happen here
  11.         $this->prependCSS($attr"border:{$border_width}px solid;");
  12.         return $attr;
  13.     }
  14.     
  15. }

Documentation generated on Thu, 19 Jun 2008 18:48:54 -0400 by phpDocumentor 1.4.2