Source for file Name.php

Documentation is available at Name.php

  1. <?php
  2.  
  3. /**
  4.  * Pre-transform that changes deprecated name attribute to ID if necessary
  5.  */
  6. {
  7.     
  8.     public function transform($attr$config$context{
  9.         if (!isset($attr['name'])) return $attr;
  10.         $id $this->confiscateAttr($attr'name');
  11.         if isset($attr['id']))   return $attr;
  12.         $attr['id'$id;
  13.         return $attr;
  14.     }
  15.     
  16. }

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