Procedural File: pnSecurity.php
Source Location: /pnSecurity.php
Page Details:
Zikula Application Framework
Tags:
ACCESS_ADD [line 33]
ACCESS_ADMIN [line 35]
ACCESS_COMMENT [line 30]
ACCESS_DELETE [line 34]
ACCESS_EDIT [line 32]
ACCESS_INVALID [line 26]
ACCESS_MODERATE [line 31]
ACCESS_NONE [line 27]
ACCESS_OVERVIEW [line 28]
ACCESS_READ [line 29]
accesslevelname [line 41]
void accesslevelname(
$level)
|
|
Translation functions - avoids globals in external code
Parameters
accesslevelnames [line 52]
array accesslevelnames(
)
|
|
get access level names
Tags:
addinstanceschemainfo [line 74]
void addinstanceschemainfo(
unknown_type $component, unknown_type $schema)
|
|
addinstanceschemainfo - register an instance schema with the security Will fail if an attempt is made to overwrite an existing schema
Parameters
| unknown_type |
$component |
|
| unknown_type |
$schema |
|
authorised [line 107]
bool authorised(
unknown_type $testrealm, unknown_type $testcomponent, unknown_type $testinstance, unknown_type $testlevel)
|
|
Enter description here...
Tags:
Parameters
| unknown_type |
$testrealm |
|
| unknown_type |
$testcomponent |
|
| unknown_type |
$testinstance |
|
| unknown_type |
$testlevel |
|
pnSecAddSchema [line 86]
bool pnSecAddSchema(
unknown_type $component, unknown_type $schema)
|
|
add security schema
Parameters
| unknown_type |
$component |
|
| unknown_type |
$schema |
|
pnSecAuthAction [line 124]
bool pnSecAuthAction(
realm $testrealm, component $testcomponent, instance $testinstance, level $testlevel, [ $testuser = null])
|
|
see if a user is authorised to carry out a particular task
Tags:
Parameters
| realm |
$testrealm |
the realm under test |
| component |
$testcomponent |
the component under test |
| instance |
$testinstance |
the instance under test |
| level |
$testlevel |
the level of access required |
| |
$testuser |
|
pnSecConfirmAuthKey [line 197]
bool pnSecConfirmAuthKey(
)
|
|
confirm an authorisation key is valid
See description of
for information on this function
Tags:
pnSecGenAuthKey [line 180]
string pnSecGenAuthKey(
[ $modname = ''], modname $)
|
|
generate an authorisation key
The authorisation key is used to confirm that actions requested by a particular user have followed the correct path. Any stage that an action could be made (e.g. a form or a 'delete' button) this function must be called and the resultant string passed to the client as either a GET or POST variable. When the action then takes place it first calls
to ensure that the operation has indeed been manually requested by the user and that the key is valid
Tags:
Parameters
| modname |
$ |
the module this authorisation key is for (optional) |
| |
$modname |
|
pnSecGetAuthInfo [line 139]
array pnSecGetAuthInfo(
[ $testuser = null])
|
|
get authorisation information for this user
Tags:
Parameters
pnSecGetLevel [line 157]
int pnSecGetLevel(
$perms, $testrealm, $testcomponent, $testinstance, testinstance $)
|
|
calculate security level for a test item
Tags:
Parameters
| testinstance |
$ |
instance of item under test |
| |
$perms |
|
| |
$testrealm |
|
| |
$testcomponent |
|
| |
$testinstance |
|