Source for file request.class.php

Documentation is available at request.class.php

  1. <?php
  2. /**
  3. * Request class to populate a domain with the parameters from $_REQUEST array
  4. *
  5. * @author Hasin Hayder
  6. * @since 13th April, 2006
  7. * @package Zephyr
  8. * @version Beta 2.0
  9. * @copyright LGPL
  10. */
  11.  
  12. include_once ("../thirdparty/phplog/log_manager.class.php");
  13.  
  14. class Request {
  15.  
  16. public function Request($array, &$Domain) {
  17. $cls = new ReflectionClass($Domain);
  18. $props = $cls->getProperties();
  19. while ($i < count($props))
  20. {
  21. $prop_name = $props[(int) $i]->getName();
  22. $field_name = $prop_name;
  23. $Domain->$field_name = ($array[$field_name]);
  24. $i++;
  25. }
  26. }
  27. }
  28. ?>

Documentation generated on Sat, 15 Apr 2006 22:10:33 +0600 by phpDocumentor 1.3.0RC3