Elastic
[ class tree: Elastic ] [ index: Elastic ] [ all elements ]

Source for file object.php

Documentation is available at object.php

  1. <?php
  2. /**
  3.  * Object
  4.  * 
  5.  * PHP4 COMPATIBLE
  6.  *         Makes extending classes able to use __construct as their constructor
  7.  * 
  8.  * Object class from CakePHP
  9.  * Found:    http://abing.gotdns.com/posts/2006/php4-tricks-the-singleton-pattern-part-i/
  10.  * 
  11.  * @package Elastic Framework
  12.  */
  13. class Object {
  14.     /**
  15.      * Object
  16.      * 
  17.      * If called, passes all arguments to $this->__construct($args), the constructor in PHP5
  18.      *
  19.      */
  20.     function Object({
  21.         $args func_get_args();
  22.         if (method_exists($this'__destruct')) {
  23.             register_shutdown_function(array(&$this'__destruct'));
  24.         }
  25.         call_user_func_array(array(&$this'__construct')$args);
  26.     }
  27.  
  28.     function __construct({
  29.     }
  30. }
  31. ?>

Documentation generated on Sat, 24 Oct 2009 17:17:46 -0500 by phpDocumentor 1.4.3