예제 #1
0
 /**
  * Method is called after group data is deleted from the database
  *
  * @param object holds the new group data (\Hubzero\User\Group)
  */
 public function onAfterDeleteGroup($group)
 {
     //Log::debug("onAfterDeleteGroup($group)");
     \Hubzero\Utility\Ldap::syncGroup($group->cn);
 }
예제 #2
0
 /**
  * Delete LDAP user entries
  *
  * @return  void
  */
 public function exportUsersTask()
 {
     $result = \Hubzero\Utility\Ldap::syncAllUsers();
     //Notify::error(Lang::txt('COM_SYSTEM_LDAP_ERROR_RESULT_UNKNOWN'));
     if (isset($result['errors']) && isset($result['fatal']) && !empty($result['fatal'][0])) {
         Notify::error(Lang::txt('COM_SYSTEM_LDAP_ERROR_EXPORT_FAILED', $result['fatal'][0]));
     } elseif (isset($result['errors']) && isset($result['warning']) && !empty($result['warning'][0])) {
         Notify::warning(Lang::txt('COM_SYSTEM_LDAP_WARNING_COMPLETED_WITH_ERRORS', count($result['warning'])));
     } elseif (isset($result['success'])) {
         Notify::info(Lang::txt('COM_SYSTEM_LDAP_USERS_EXPORTED', $result['added'], $result['modified'], $result['deleted'], $result['unchanged']));
     }
     App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller, false));
 }