/** * @return bool */ public function execute() { $objUsersources = new class_usersources_source_ldap(); $objUsersources->updateUserData(); //trigger again return false; }
/** * @see interface_admin_systemtask::executeTask() * @return string */ public function executeTask() { if (!class_module_system_module::getModuleByName("ldap")->rightEdit()) { return $this->getLang("commons_error_permissions"); } $objUsersources = new class_usersources_source_ldap(); $bitSync = $objUsersources->updateUserData(); if ($bitSync) { return $this->objToolkit->getTextRow($this->getLang("systemtask_ldapsync_success")); } else { return $this->objToolkit->getTextRow($this->getLang("systemtask_ldapsync_error")); } }