Refactoring code and updating docblocks in Security and RequestHandler components

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4075 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-12-06 20:37:12 +00:00
parent 0419f05186
commit 403ff35bdb
2 changed files with 11 additions and 8 deletions

View file

@ -132,7 +132,7 @@ class RequestHandlerComponent extends Object {
* Constructor. Parses the accepted content types accepted by the client using
* HTTP_ACCEPT
*
* @access private
* @access public
* @return void
*/
function __construct() {

View file

@ -99,21 +99,26 @@ class SecurityComponent extends Object {
*/
var $loginUsers = array();
/**
* Enter description here...
* Controllers from which actions of the current controller are allowed to receive
* requests.
*
* @var array
* @see SecurityComponent::requireAuth()
*/
var $allowedControllers = array();
/**
* Enter description here...
* Actions from which actions of the current controller are allowed to receive
* requests.
*
* @var array
* @see SecurityComponent::requireAuth()
*/
var $allowedActions = array();
/**
* Enter description here...
* Other components used by the Security component
*
* @var array
* @access public
*/
var $components = array('RequestHandler', 'Session');
/**
@ -123,7 +128,7 @@ class SecurityComponent extends Object {
$this->Security =& Security::getInstance();
}
/**
* Enter description here...
* Component startup. All security checking happens here.
*
* @param object $controller
* @return unknown
@ -382,9 +387,7 @@ class SecurityComponent extends Object {
* @access public
*/
function loginRequest($options = array()) {
if (empty($options)) {
$options = $this->loginOptions;
}
$options = am($this->loginOptions, $options);
$this->__setLoginDefaults($options);
$data = 'WWW-Authenticate: ' . ucfirst($options['type']) . ' realm="' . $options['realm'] . '"';