Cakephp Classroom image

osdyui
 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91|Last
Lessons:-Core Libraries

This method is used by AuthComponent to identify a user based on the information contained in the
current request.
AuthComponent::initialize($Controller)
Initializes AuthComponent for use in the controller.
AuthComponent::isAuthorized($user = null, $request = null)
Uses the configured Authorization adapters to check whether or not a user is authorized. Each adapter
will be checked in sequence, if any of them return true, then the user will be authorized for the request.
AuthComponent::loggedIn()
Returns true if the current client is a logged in user, or false if they are not.
AuthComponent::login($user)
Parameters
• $user (array) – Array of logged in user data.
Takes an array of user data to login with. Allows for manual logging of users. Calling user() will
populate the session value with the provided information. If no user is provided, AuthComponent will
try to identify a user using the current request information. See AuthComponent::identify()
AuthComponent::logout()
Returns A string url to redirect the logged out user to.
Logs out the current user.
AuthComponent::mapActions($map = array())
Maps action names to CRUD operations. Used for controller-based authentication. Make sure to
configure the authorize property before calling this method. As it delegates $map to all the attached
authorize objects.
static AuthComponent::password($pass)
Hash a password with the application’s salt value.
AuthComponent::redirect($url = null)
If no parameter is passed, gets the authentication redirect URL. Pass a url in to set the destination a user
should be redirected to upon logging in. Will fallback to AuthComponent::$loginRedirect
if there is no stored redirect value.
AuthComponent::shutdown($Controller)
Component shutdown. If user is logged in, wipe out redirect.
AuthComponent::startup($Controller)
Main execution method. Handles redirecting of invalid users, and processing of login form data.
static AuthComponent::user($key = null)
Parameters
• $key (string) – The user data key you want to fetch if null, all user data will be
returned. Can also be called as an instance method.
Get data concerning the currently logged in user, you can use a property key to fetch specific data
about the user:

 
 
 

osdyui

Skills    Cakephp

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)