- Timestamp:
- 03/17/10 16:39:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/lib/factory/ProcessWrapperFactory.php
r2258 r2291 23 23 { 24 24 25 /** 26 * Just forward the call. 27 * 28 * @access public 29 * @return object 30 */ 25 31 public function &getInstance() { 26 32 27 33 $args = func_get_args(); 34 35 /** 36 * To save memory and processing, we store caches of objects instantiated 37 * by the factory. When we use this beautiful function (call_user_func_array), 38 * it makes an unexpected copy of the object. Of course we don't want it. 39 * For now, we will keep doing copies. 40 */ 28 41 return call_user_func_array(array(Factory, "getInstance"), $args); 29 42 30 43 } 31 44 45 46 /** 47 * Just forward the call. 48 * 49 * @access public 50 * @return object 51 */ 32 52 public function &newInstance() { 33 53 34 54 $args = func_get_args(); 55 56 /* read the comment above */ 35 57 return call_user_func_array(array(Factory, "newInstance"), $args); 36 58
Note: See TracChangeset
for help on using the changeset viewer.