Ignore:
Timestamp:
03/17/10 16:39:47 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Corrigindo demais pendências na utilização da nova factory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/lib/factory/ProcessWrapperFactory.php

    r2258 r2291  
    2323{ 
    2424 
     25        /** 
     26         * Just forward the call. 
     27         * 
     28         * @access public 
     29         * @return object 
     30         */ 
    2531        public function &getInstance() { 
    2632 
    2733                $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                 */ 
    2841                return call_user_func_array(array(Factory, "getInstance"), $args); 
    2942 
    3043        } 
    3144 
     45 
     46        /** 
     47         * Just forward the call. 
     48         * 
     49         * @access public 
     50         * @return object 
     51         */ 
    3252        public function &newInstance() { 
    3353 
    3454                $args = func_get_args(); 
     55 
     56                /* read the comment above */ 
    3557                return call_user_func_array(array(Factory, "newInstance"), $args); 
    3658 
Note: See TracChangeset for help on using the changeset viewer.