Exemplo n.º 1
0
 /**
  * Enable instance pooling (enabled by default).
  * 
  * @return boolean true if the method changed the instance pooling state,
  *                 false if it was already enabled
  */
 public static function enableInstancePooling()
 {
     if (self::$instancePoolingEnabled) {
         return false;
     }
     self::$instancePoolingEnabled = true;
     return true;
 }
Exemplo n.º 2
0
 /**
  * Enable instance pooling (enabled by default).
  */
 public static function enableInstancePooling()
 {
     self::$instancePoolingEnabled = true;
 }