25 define (
'AUTHORIZATION_PERMIT', 0x01);
26 define (
'AUTHORIZATION_DENY', 0x02);
28 define (
'AUTHORIZATION_ADVICE_DENY_MESSAGE', 0x01);
29 define (
'AUTHORIZATION_ADVICE_CALL_ON_DENY', 0x02);
47 if (!is_null($message)) $this->
setAdvice(AUTHORIZATION_ADVICE_DENY_MESSAGE, $message);
58 function setAdvice($adviceType, &$adviceContent) {
59 $this->_advice[$adviceType] =& $adviceContent;
69 return isset($this->_advice[$adviceType]);
79 return $this->_advice[$adviceType];
92 $this->_authorizedContext[$assocType] =& $authorizedObject;
102 return isset($this->_authorizedContext[$assocType]);
113 return $this->_authorizedContext[$assocType];
125 $this->_authorizedContext =& $authorizedContext;
154 return AUTHORIZATION_DENY;