projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a counter for all generated objects.
[core.git]
/
inc
/
classes
/
main
/
factories
/
objects
/
class_ObjectFactory.php
diff --git
a/inc/classes/main/factories/objects/class_ObjectFactory.php
b/inc/classes/main/factories/objects/class_ObjectFactory.php
index 08a9352b5406a83db9b73354da03f97da7afb406..b84f55a221bf493e63a2357f96801863e6571db2 100644
(file)
--- a/
inc/classes/main/factories/objects/class_ObjectFactory.php
+++ b/
inc/classes/main/factories/objects/class_ObjectFactory.php
@@
-22,11
+22,6
@@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class ObjectFactory extends BaseFactory {
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class ObjectFactory extends BaseFactory {
- /**
- * Total objects generated
- */
- private static $total = 0;
-
/**
* Protected constructor
*
/**
* Protected constructor
*
@@
-70,8
+65,8
@@
class ObjectFactory extends BaseFactory {
// Run the user function
$objectInstance = call_user_func_array(array($className, $methodName), $args);
// Run the user function
$objectInstance = call_user_func_array(array($className, $methodName), $args);
- // Count
generated objects
up
- self::
$total++
;
+ // Count
this one
up
+ self::
countObject($className)
;
// Return the prepared instance
return $objectInstance;
// Return the prepared instance
return $objectInstance;
@@
-94,15
+89,6
@@
class ObjectFactory extends BaseFactory {
// Return the instance
return $objectInstance;
}
// Return the instance
return $objectInstance;
}
-
- /**
- * Static getter for total object count
- *
- * @return $total Total amount of generated objects
- */
- public static final function getTotal () {
- return self::$total;
- }
}
// [EOF]
}
// [EOF]