Пример #1
0
 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('COM_JOOMDLE_VIEW_USERS_TITLE'), 'user');
     JToolBarHelper::custom('add_to_joomla', 'restore', 'restore', 'COM_JOOMDLE_ADD_USERS_TO_JOOMLA', true, false);
     JToolBarHelper::custom('add_to_moodle', 'restore', 'restore', 'COM_JOOMDLE_ADD_USERS_TO_MOODLE', true, false);
     JToolBarHelper::custom('migrate_to_joomdle', 'restore', 'restore', 'COM_JOOMDLE_MIGRATE_USERS_TO_JOOMDLE', true, false);
     JToolBarHelper::custom('sync_profile_to_moodle', 'restore', 'restore', 'COM_JOOMDLE_SYNC_MOODLE_PROFILES', true, false);
     JToolBarHelper::custom('sync_profile_to_joomla', 'restore', 'restore', 'COM_JOOMDLE_SYNC_JOOMLA_PROFILES', true, false);
     JToolBarHelper::custom('sync_parents_from_moodle', 'restore', 'restore', 'COM_JOOMDLE_SYNC_PARENTS_FROM_MOODLE', true, false);
     JHtmlSidebar::setAction('index.php?option=com_joomdle&view=users');
     JHtmlSidebar::addFilter(JText::_('COM_JOOMDLE_SELECT_STATE'), 'filter_state', JHtml::_('select.options', JoomdleHelperUsers::getStateOptions(), 'value', 'text', $this->state->get('filter.state')));
 }
Пример #2
0
    function activateJoomlaUser ($method, $params)
    {
		$username = $params[0];

        $username = utf8_decode ($username);

        return JoomdleHelperUsers::activate_joomla_user ($username);
    }