SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 453 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"



default="detectedAttacks" label="sessionValue"
description="Name of session value to store attack
counter in." />
label="maxAttacks" description="Maximum number of
detections per session." />
description="" />
description="Logout user.">



description="Block user.">




The example shows how we could implement the _logout() method. Notice we
check if the user is logged in before attempting to log them out.
/**
* Logs the current user out.
*
* @access private
* @return boolean true on success
*/
function _actionLogout()
{
global $mainframe;
$user =& JFactory::getUser();
if($user->get('id') && $mainframe->logout() )
{
return true;
}
return false;
}
Chapter 11
[ 335 ]
The next example shows how we could implement the _block() method.


Pages:
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6