bigace.classes.right
[ class tree: bigace.classes.right ] [ index: bigace.classes.right ] [ all elements ]

Class: Right

Source Location: /classes/right/Right.php

Class Overview

MasterItemType
   |
   --Itemtype
      |
      --Right

This checks all possible Rights for the one User Anonymous, not anonymous (if user is logged in) and the users rights.


Variables

Methods


Inherited Constants

Inherited Variables

Inherited Methods


Class Details

[line 37]
This checks all possible Rights for the one User Anonymous, not anonymous (if user is logged in) and the users rights.

Every time a right method check is performed it will look up if one of these rights is true!

If you want to know if the special group has own rights on a special item use the Class GroupRight!




[ Top ]


Class Variables

$item_id =

[line 42]


Type:   mixed


[ Top ]

$right =

[line 40]


Type:   mixed


[ Top ]

$user_id =

[line 41]


Type:   mixed


[ Top ]



Class Methods


constructor Right [line 51]

Right Right( String $itemtype, int $userid, int $itemid)

One instance is used for the given User and Item!



Parameters:

String   $itemtype   the Table Name to get the Rights from
int   $userid   the User ID to work with
int   $itemid   the Item ID to work with

[ Top ]

method canDelete [line 157]

boolean canDelete( )

Checks if the User is allowed/has the rights to delete the given Page



Tags:

return:  if or if not user is allowed to delete the page


[ Top ]

method canRead [line 135]

boolean canRead( )

Checks if the User is allowed/has the rights to read the given Page.



Tags:

return:  if or if not user is allowed to read the page


[ Top ]

method canWrite [line 146]

boolean canWrite( )

Checks if the User is allowed/has the rights to write the given Page



Tags:

return:  if or if not user is allowed to write the page


[ Top ]

method getItemID [line 101]

int getItemID( )

Gets the Item ID this Right represents.



Tags:

return:  the Item ID


[ Top ]

method getUser [line 124]

Object getUser( )

Gets a new UserInfo Object that represents the initalized User.



Tags:

return:  the initalized User as new UserInfo Object


[ Top ]

method getUserID [line 112]

int getUserID( )

Gets the User ID this Right represents.



Tags:

return:  the User ID


[ Top ]

method getValue [line 188]

void getValue( )



[ Top ]


Documentation generated on Tue, 11 Oct 2005 23:02:18 +0200 by phpDocumentor 1.3.0RC2