Changeset 2291 for sandbox/workflow
- Timestamp:
- 03/17/10 16:39:47 (14 years ago)
- Location:
- sandbox/workflow/branches/609
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/inc/class.bo_userinterface.inc.php
r2267 r2291 1070 1070 function callVoipConnect($params) 1071 1071 { 1072 $cachedLDAP = $GLOBALS['workflow']['factory']->newInstance('CachedLDAP');1072 $cachedLDAP = Factory::newInstance('CachedLDAP'); 1073 1073 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_LDAP); 1074 1074 -
sandbox/workflow/branches/609/inc/class.so_adminaccess.inc.php
r2233 r2291 202 202 { 203 203 $GLOBALS['phpgw']->db =& Factory::getInstance('WorkflowObjects')->getDBExpresso(); 204 $GLOBALS['phpgw']->acl =& Factory::get ForeignInstance('phpgwapi','acl', $userID);204 $GLOBALS['phpgw']->acl =& Factory::getInstance('acl', $userID); 205 205 } 206 206 -
sandbox/workflow/branches/609/inc/engine/config.egw.inc.php
r2264 r2291 305 305 { 306 306 // This way we create a new run_activity instance for the next activity 307 $run_activity = Factory::getInstance(' workflow.run_activity.go');307 $run_activity = Factory::getInstance('run_activity'); 308 308 $data = $run_activity->go($activityId, $iid, $auto); 309 309 return $data; -
sandbox/workflow/branches/609/lib/factory/BaseFactory.php
r2278 r2291 34 34 * atribute. 35 35 * 36 * @param string $className Class name. 37 * @param string $fileName Name of the file that contains the class definition. 38 * @param string $relativePath The path to the file, relative to $basePath. 39 * @param string $basePath Base path to append $relativePath. Optional. 36 40 * @access protected 37 41 * @return void … … 55 59 * pointers (&) to avoid object duplications. 56 60 * 61 * @param string $className Name of the class. 62 * @param array $classArgs Parameters to the class's constructor. 57 63 * @access public 58 64 * @return object … … 90 96 * @todo Maybe we don't have to use the reflection 91 97 * class here. Future work... 98 * @param string $className Name of the class. 99 * @param array $classArgs Parameters to the class's constructor. 92 100 * @access public 93 101 * @return object … … 121 129 * '$_fileInfo' array. 122 130 * 131 * @param string $className Key to search for into the internal cache. 123 132 * @access private 124 133 * @return array … … 133 142 * for upcoming requests. 134 143 * 144 * @param string $className Name of the class. 145 * @param object Object whose reference will be stored. 135 146 * @access private 136 147 * @return boolean … … 150 161 * it could be the only place to include files. 151 162 * 163 * @param string $className Key to search for into internal cache. 152 164 * @access private 153 165 * @return boolean -
sandbox/workflow/branches/609/lib/factory/Factory.php
r2278 r2291 90 90 * values are 'getInstance' and 'newInstance'. 91 91 * 92 * @param string $methodName Name of the BaseFactory method to call. 93 * @param array $args Parameters to class's constructor. 92 94 * @access private 93 95 * @return object -
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 -
sandbox/workflow/branches/609/lib/factory/WorkflowFactory.php
r2278 r2291 52 52 $this->registerFileInfo('WorkflowLDAP', 'class.WorkflowLDAP.inc.php', 'inc'); 53 53 $this->registerFileInfo('WorkflowSecurity', 'class.WorkflowSecurity.inc.php', 'inc'); 54 $this->registerFileInfo('WorkflowMacro', 'class.WorkflowMacro.inc.php', 'inc'); 55 $this->registerFileInfo('WorkflowJobManager', 'class.WorkflowJobManager.inc.php', 'inc'); 54 56 $this->registerFileInfo('ResourcesRedirector', 'class.ResourcesRedirector.inc.php', 'inc'); 55 57 $this->registerFileInfo('TemplateServer', 'class.TemplateServer.inc.php', 'inc'); … … 57 59 $this->registerFileInfo('BrowserInfo', 'class.BrowserInfo.inc.php', 'inc'); 58 60 $this->registerFileInfo('JobScheduler', 'class.JobScheduler.inc.php', 'inc'); 61 $this->registerFileInfo('Thread', 'class.Thread.inc.php', 'inc'); 62 $this->registerFileInfo('Paging', 'class.Paging.inc.php', 'inc'); 59 63 $this->registerFileInfo('UserPictureProvider', 'class.UserPictureProvider.inc.php', 'inc'); 60 64 … … 63 67 $this->registerFileInfo('workflow_smarty', 'class.workflow_smarty.inc.php', 'inc'); 64 68 $this->registerFileInfo('workflow_acl', 'class.workflow_acl.inc.php', 'inc'); 69 $this->registerFileInfo('workflow_process', 'class.workflow_process.inc.php', 'inc'); 65 70 $this->registerFileInfo('workflow_processmanager', 'class.workflow_processmanager.inc.php', 'inc'); 66 71 $this->registerFileInfo('workflow_wfruntime', 'class.workflow_wfruntime.inc.php', 'inc'); 67 72 $this->registerFileInfo('workflow_gui', 'class.workflow_gui.inc.php', 'inc'); 68 73 $this->registerFileInfo('workflow_rolemanager', 'class.workflow_rolemanager.inc.php', 'inc'); 74 $this->registerFileInfo('workflow_baseactivity', 'class.workflow_baseactivity.inc.php', 'inc'); 69 75 $this->registerFileInfo('workflow_activitymanager', 'class.workflow_activitymanager.inc.php', 'inc'); 70 76 $this->registerFileInfo('workflow_instance', 'class.workflow_instance.inc.php', 'inc'); 71 77 78 $this->registerFileInfo('bo_userinterface', 'class.bo_userinterface.inc.php', 'inc'); 72 79 $this->registerFileInfo('bo_participants', 'class.bo_participants.inc.php', 'inc'); 73 80 $this->registerFileInfo('bo_agent_mail_smtp', 'class.bo_agent_mail_smtp.inc.php', 'inc'); … … 77 84 78 85 /* registering egw external classes */ 79 $this->registerFileInfo('phpgw', 'class.phpgw.inc.php', '', EGW_INC_ROOT);80 86 $this->registerFileInfo('db', 'class.db.inc.php', '', EGW_INC_ROOT); 87 $this->registerFileInfo('acl', 'class.acl.inc.php', '', EGW_INC_ROOT); 81 88 $this->registerFileInfo('accounts', 'class.accounts.inc.php', '', EGW_INC_ROOT); 82 89 $this->registerFileInfo('config', 'class.config.inc.php', '', EGW_INC_ROOT); -
sandbox/workflow/branches/609/lib/security/Security.php
r2258 r2291 90 90 * previous function. 91 91 * 92 * @param integer $depth The deepness of the fileName in backtrace. 92 93 * @access public 93 94 * @return boolean
Note: See TracChangeset
for help on using the changeset viewer.