Index: branches/5.0.x/core/units/users/users_syncronize.php =================================================================== diff -u -r12117 -r12299 --- branches/5.0.x/core/units/users/users_syncronize.php (.../users_syncronize.php) (revision 12117) +++ branches/5.0.x/core/units/users/users_syncronize.php (.../users_syncronize.php) (revision 12299) @@ -1,6 +1,6 @@ skipClass = $skip_class; - + $defs_file = SYNC_CLASS_PATH.'/sync_config.php'; - + if (file_exists($defs_file)) { include_once $defs_file; @@ -45,12 +47,12 @@ } } } - + function addSyncClass($class_name, $class_file, $sub_folder) { $this->syncClasses[$class_name] = Array('file' => $class_file, 'sub_folder' => $sub_folder); } - + /** * Performs action specified for all syncronization classes. * You can pass other arguments to function, they will be passed to action handler @@ -61,15 +63,15 @@ { $args = func_get_args(); array_shift($args); - + foreach ($this->syncClasses as $class_name => $class_info) { if ($class_name == $this->skipClass) continue; $this->Application->registerClass($class_name, $class_info['file']); $sync_object =& $this->Application->recallObjectP($class_name, null, Array(), $class_info['sub_folder'], $class_name); call_user_func_array( Array(&$sync_object, $action), $args); } } - + /** * Create new instance of object * @@ -88,29 +90,29 @@ * */ class UsersSyncronize extends kBase { - + /** * Sub folder to which syncronizable tool is installed * * @var string */ var $subFolder = ''; - + /** * Connection to database * * @var kDBConnection * @access public */ var $Conn; - + function UsersSyncronize($sub_folder) { parent::kBase(); $this->subFolder = $sub_folder; $this->Conn =& $this->Application->GetADODBConnection(); } - + /** * Used to login user with given username & password * @@ -122,16 +124,16 @@ { return true; } - + /** * Used to logout currently logged in user (if any) * */ function LogoutUser() { - + } - + /** * Creates user * @@ -142,7 +144,7 @@ { return true; } - + /** * Update user info with given $user_id * @@ -153,7 +155,7 @@ { return true; } - + /** * Deletes user * @@ -164,7 +166,7 @@ { return true; } - + /** * Create new instance of object * @@ -174,6 +176,5 @@ { return new $class_name($sub_folder); } - } -?> \ No newline at end of file + } \ No newline at end of file