Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/web/jpeto2/jpeto/jpeto_usergroup.php
JPETo - James's Publishing & Editing Tool - jpeto_objects

jpeto_usergroup

jpeto_usergroup

This class provides the usergroup object

 

private class jpeto_usergroup

This class provides the usergroup object

 

Public Method Summary

void

jpeto_usergroup()

Constructor for jpeto_usergroup
boolean

isMember(string $UserID, string $GroupID)

returns true if the specified User is member of the specified Group
boolean

disable(string $UserID, string $GroupID)

disables a user membership
boolean

enable(string $UserID, string $GroupID)

enables a user membership
boolean

delete(string $GroupID)

deletes a usergroup
boolean

store()

stores the current usergroup

Private Method Summary

string

get_next_enabled_user_object()

returns the next enabled user in the current group as object
string

get_next_user_object()

returns the next user in the current group as object
void

mapFields(array $Recordset)

Maps the fields of the given recordset to the
void

getDefaultValues()

gets default Values for (not set) parameters
void

debug()

returns the elements of the object as a html table
void

get_next_jpeto_usergroup()

Warning: documentation is missing.

Private Field Summary

string

$JpetoType

Type of current element
string

$Interface

Name of the (Admin-) interface file
string

$j_UserID

current UserID
string

$j_GroupID

current GroupID
string

$j_RoleID

current RoleID (should be combined with jpeto_role - to be done later)
boolean

$j_isEnabled

User in this Group enabled / disabled
array

$Recordset

resultset of the query
integer

$Pointer

pointer in $Recordset

Included files Summary, Type: include_once

jpeto/jpeto_config.php Warning: documentation is missing.
jpeto/jpeto_user.php Warning: documentation is missing.

Public Method Details

jpeto_usergroup

public void jpeto_usergroup( )

  Constructor for jpeto_usergroup

Returns void


isMember

public boolean isMember( string $UserID, string $GroupID )

  returns true if the specified User is member of the specified Group

Parameter
string $UserID
string $GroupID
Returns boolean $isMember


disable

public boolean disable( string $UserID, string $GroupID )

  disables a user membership

Parameter
string $UserID
string $GroupID
Returns boolean $success


enable

public boolean enable( string $UserID, string $GroupID )

  enables a user membership

Parameter
string $UserID
string $GroupID
Returns boolean $success


delete

public boolean delete( string $GroupID )

  deletes a usergroup

Parameter
string $GroupID
Returns boolean $success


store

public boolean store( )

  stores the current usergroup

Returns boolean $success


Private Method Details

get_next_enabled_user_object

private string get_next_enabled_user_object( )

  returns the next enabled user in the current group as object

Returns string $Object

returns the object (as an object, not as a string... phpdoc....)


get_next_user_object

private string get_next_user_object( )

  returns the next user in the current group as object

Returns string $Object

returns the object (as an object, not as a string... phpdoc....)


mapFields

private void mapFields( array $Recordset )

  Maps the fields of the given recordset to the
class variables

Parameter
array $Recordset
the Recordset given to map to the variables
Returns void


getDefaultValues

private void getDefaultValues( )

  gets default Values for (not set) parameters

Returns void


debug

private void debug( )

  returns the elements of the object as a html table
overwrite function debugObject in extending class

Returns void


get_next_jpeto_usergroup

private void get_next_jpeto_usergroup( )

 

Warning: documentation is missing.

Returns void


Private Field Details

$JpetoType

private string $JpetoType

>>"jpeto_usergroup"<<

Type of current element


$Interface

private string $Interface

>>"jpeto_usergroup.php"<<

Name of the (Admin-) interface file


$j_UserID

private string $j_UserID

>>""<<

current UserID


$j_GroupID

private string $j_GroupID

>>""<<

current GroupID


$j_RoleID

private string $j_RoleID

>>""<<

current RoleID (should be combined with jpeto_role - to be done later)


$j_isEnabled

private boolean $j_isEnabled

>>false<<

User in this Group enabled / disabled


$Recordset

private array $Recordset

>>array()<<

resultset of the query


$Pointer

private integer $Pointer

>><<

pointer in $Recordset


Included Files, Type: include_once

jpeto/jpeto_config.php

include_once( jpeto/jpeto_config.php )



jpeto/jpeto_user.php

include_once( jpeto/jpeto_user.php )




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta