Source for file ScriptRequired.php

Documentation is available at ScriptRequired.php

  1. <?php
  2.  
  3. /**
  4.  * Implements required attribute stipulation for <script>
  5.  */
  6. {
  7.     public function transform($attr$config$context{
  8.         if (!isset($attr['type'])) {
  9.             $attr['type''text/javascript';
  10.         }
  11.         return $attr;
  12.     }
  13. }

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