當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UsersHelperRoute::getResetRoute方法代碼示例

本文整理匯總了PHP中UsersHelperRoute::getResetRoute方法的典型用法代碼示例。如果您正苦於以下問題:PHP UsersHelperRoute::getResetRoute方法的具體用法?PHP UsersHelperRoute::getResetRoute怎麽用?PHP UsersHelperRoute::getResetRoute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在UsersHelperRoute的用法示例。


在下文中一共展示了UsersHelperRoute::getResetRoute方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getLogin

 public static function getLogin($params)
 {
     $login = new stdClass();
     $login->passwordFieldName = 'password';
     $login->resetLink = JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute());
     $login->remindLink = JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute());
     $login->registrationLink = JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute());
     $login->option = 'com_users';
     $login->task = 'user.login';
     $login->allowRegistration = JComponentHelper::getParams('com_users')->get('allowUserRegistration');
     $login->return = self::getReturnURL($params, 'login');
     return $login;
 }
開發者ID:Naldo100,項目名稱:k2-v3-dev-build,代碼行數:13,代碼來源:helper.php

示例2:

			<?php 
}
?>
				<li>
					<a href="<?php 
echo JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute());
?>
">
					<?php 
echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME');
?>
</a>
				</li>
				<li>
					<a href="<?php 
echo JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute());
?>
">
					<?php 
echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD');
?>
</a>
				</li>
			</ul>
		<input type="hidden" name="option" value="com_users" />
		<input type="hidden" name="task" value="user.login" />
		<input type="hidden" name="return" value="<?php 
echo $return;
?>
" />
		<?php 
開發者ID:sankam-nikolya,項目名稱:H5BPTB,代碼行數:31,代碼來源:default.php

示例3: getResetURL

 /**
  * @return string
  */
 public function getResetURL()
 {
     $Itemid = UsersHelperRoute::getResetRoute();
     return JRoute::_('index.php?option=com_users&view=reset' . ($Itemid ? "&Itemid={$Itemid}" : ''));
 }
開發者ID:Ruud68,項目名稱:Kunena-Forum,代碼行數:8,代碼來源:login.php

示例4: complete

 /**
  * Method to complete the password reset process.
  *
  * @since   1.6
  */
 public function complete()
 {
     // Check for request forgeries
     JSession::checkToken('post') or jexit(JText::_('JINVALID_TOKEN'));
     $app = JFactory::getApplication();
     $model = $this->getModel('Reset', 'UsersModel');
     $data = $this->input->post->get('jform', array(), 'array');
     // Complete the password reset request.
     $return = $model->processResetComplete($data);
     // Check for a hard error.
     if ($return instanceof Exception) {
         // Get the error message to display.
         if ($app->get('error_reporting')) {
             $message = $return->getMessage();
         } else {
             $message = JText::_('COM_USERS_RESET_COMPLETE_ERROR');
         }
         // Get the route to the next page.
         $itemid = UsersHelperRoute::getResetRoute();
         $itemid = $itemid !== null ? '&Itemid=' . $itemid : '';
         $route = 'index.php?option=com_users&view=reset&layout=complete' . $itemid;
         // Go back to the complete form.
         $this->setRedirect(JRoute::_($route, false), $message, 'error');
         return false;
     } elseif ($return === false) {
         // Complete failed.
         // Get the route to the next page.
         $itemid = UsersHelperRoute::getResetRoute();
         $itemid = $itemid !== null ? '&Itemid=' . $itemid : '';
         $route = 'index.php?option=com_users&view=reset&layout=complete' . $itemid;
         // Go back to the complete form.
         $message = JText::sprintf('COM_USERS_RESET_COMPLETE_FAILED', $model->getError());
         $this->setRedirect(JRoute::_($route, false), $message, 'notice');
         return false;
     } else {
         // Complete succeeded.
         // Get the route to the next page.
         $itemid = UsersHelperRoute::getLoginRoute();
         $itemid = $itemid !== null ? '&Itemid=' . $itemid : '';
         $route = 'index.php?option=com_users&view=login' . $itemid;
         // Proceed to the login form.
         $message = JText::_('COM_USERS_RESET_COMPLETE_SUCCESS');
         $this->setRedirect(JRoute::_($route, false), $message);
         return true;
     }
 }
開發者ID:terryvisser,項目名稱:joomlatools-platform,代碼行數:51,代碼來源:reset.php

示例5:

        $langScript = '
			var JLanguage = {};
			JLanguage.WHAT_IS_OPENID = \'' . JText::_('K2_WHAT_IS_OPENID') . '\';
			JLanguage.LOGIN_WITH_OPENID = \'' . JText::_('K2_LOGIN_WITH_OPENID') . '\';
			JLanguage.NORMAL_LOGIN = \'' . JText::_('K2_NORMAL_LOGIN') . '\';
			var modlogin = 1;
		';
        $document = JFactory::getDocument();
        $document->addScriptDeclaration($langScript);
        JHTML::_('script', 'openid.js');
    }
    // Get user stuff (do not edit)
    $usersConfig = JComponentHelper::getParams('com_users');
    // Define some variables depending on Joomla! version
    $passwordFieldName = K2_JVERSION != '15' ? 'password' : 'passwd';
    $resetLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute() : 'index.php?option=com_user&view=reset');
    $remindLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute() : 'index.php?option=com_user&view=remind');
    $registrationLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute() : 'index.php?option=com_user&view=register');
    $option = K2_JVERSION != '15' ? 'com_users' : 'com_user';
    $task = K2_JVERSION != '15' ? 'user.login' : 'login';
    require JModuleHelper::getLayoutPath('mod_k2_user', 'login');
} else {
    JHTML::_('behavior.modal');
    $user->profile = modK2UserHelper::getProfile($params);
    $user->numOfComments = modK2UserHelper::countUserComments($user->id);
    $menu = modK2UserHelper::getMenu($params);
    $profileLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=profile&layout=edit&Itemid=' . UsersHelperRoute::getProfileRoute() : 'index.php?option=com_user&view=user&task=edit');
    $option = K2_JVERSION != '15' ? 'com_users' : 'com_user';
    $task = K2_JVERSION != '15' ? 'user.logout' : 'logout';
    require JModuleHelper::getLayoutPath('mod_k2_user', 'userblock');
}
開發者ID:emavro,項目名稱:k2,代碼行數:31,代碼來源:mod_k2_user.php


注:本文中的UsersHelperRoute::getResetRoute方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。