spunQ_GroupCreator Class Reference

Will create a group for each user in the database. More...

Inheritance diagram for spunQ_GroupCreator:

spunQ_IDatabaseListener

List of all members.

Public Member Functions

 executingInsertQuery (spunQ_IDatabaseConnection $connection, spunQ_InsertQuery $query)
 Called before an insert query is executed.
 executedInsertQuery (spunQ_IDatabaseConnection $connection, spunQ_InsertQuery $query, &$result)
 Called before after an insert query was executed.
 executingSelectQuery (spunQ_IDatabaseConnection $connection, spunQ_SelectQuery $query, array $queryParams=array())
 Called before a select query is executed.
 executedSelectQuery (spunQ_IDatabaseConnection $connection, spunQ_SelectQuery $query, array &$result, array $queryParams=array())
 Called after a select query was executed.
 executingUpdateQuery (spunQ_IDatabaseConnection $connection, spunQ_UpdateQuery $query, array $queryParams=array())
 Called before an update query is executed.
 executedUpdateQuery (spunQ_IDatabaseConnection $connection, spunQ_UpdateQuery $query, &$result, array $queryParams=array())
 Called after an update query was executed.
 executingDeleteQuery (spunQ_IDatabaseConnection $connection, spunQ_DeleteQuery $query, array $queryParams=array())
 Called before a delete query is executed.
 executedDeleteQuery (spunQ_IDatabaseConnection $connection, spunQ_DeleteQuery $query, &$result, array $queryParams=array())
 Called after a delete query was executed.
 creatingTypeStorage (spunQ_IDatabaseConnection $connection, spunQ_UserType $type)
 Called before a type storage is created.
 createdTypeStorage (spunQ_IDatabaseConnection $connection, spunQ_ITypeStorage $storage)
 Called after a type storage is created.
 creatingTypeMemberStorage (spunQ_IDatabaseConnection $connection, spunQ_Member $member)
 Called before a type member storage is created.
 createdTypeMemberStorage (spunQ_IDatabaseConnection $connection, spunQ_ITypeMemberStorage $storage)
 Called after a type member storage is created.
 deletingTypeMemberStorage (spunQ_IDatabaseConnection $connection, spunQ_ITypeMemberStorage $storage)
 Called before a type member storage is deleted.
 deletedTypeMemberStorage (spunQ_IDatabaseConnection $connection, spunQ_ITypeMemberStorage $storage)
 Called after a type member storage is deleted.

Static Public Member Functions

static getUserGroup (spunQ_User $user, spunQ_IDatabaseConnection $connection=NULL)
 returns the group of the user


Detailed Description

Will create a group for each user in the database.

The user's group has the name 'spunQ.user.User.$id', where $id is the id of the user.

Definition at line 8 of file GroupCreator.class.php.


Member Function Documentation

spunQ_GroupCreator::createdTypeMemberStorage ( spunQ_IDatabaseConnection connection,
spunQ_ITypeMemberStorage storage 
)

Called after a type member storage is created.

Parameters:
$connection The connection that triggered this event.
$storage The storage that was created.
Returns:
void.

Implements spunQ_IDatabaseListener.

Definition at line 119 of file GroupCreator.class.php.

spunQ_GroupCreator::createdTypeStorage ( spunQ_IDatabaseConnection connection,
spunQ_ITypeStorage storage 
)

Called after a type storage is created.

Parameters:
$connection The connection that triggered this event.
$storage The storage that was created.
Returns:
void.

Implements spunQ_IDatabaseListener.

Definition at line 105 of file GroupCreator.class.php.

spunQ_GroupCreator::creatingTypeMemberStorage ( spunQ_IDatabaseConnection connection,
spunQ_Member member 
)

Called before a type member storage is created.

See also:
spunQ_IDatabaseConnection::createTypeMemberStorage()
Parameters:
$connection The connection that triggered this event.
$member The type member to create type storage for.
Returns:
void.

Implements spunQ_IDatabaseListener.

Definition at line 112 of file GroupCreator.class.php.

spunQ_GroupCreator::creatingTypeStorage ( spunQ_IDatabaseConnection connection,
spunQ_UserType type 
)

Called before a type storage is created.

See also:
spunQ_IDatabaseConnection::createTypeStorage()
Parameters:
$connection The connection that triggered this event.
$type The type to create type storage for.
Returns:
void.

Implements spunQ_IDatabaseListener.

Definition at line 98 of file GroupCreator.class.php.

spunQ_GroupCreator::deletedTypeMemberStorage ( spunQ_IDatabaseConnection connection,
spunQ_ITypeMemberStorage storage 
)

Called after a type member storage is deleted.

See also:
spunQ_IDatabaseConnection::createTypeMemberStorage()
Parameters:
$connection The connection that triggered this event.
$storage The storage that was deleted.
Returns:
void.

Implements spunQ_IDatabaseListener.

Definition at line 133 of file GroupCreator.class.php.

spunQ_GroupCreator::deletingTypeMemberStorage ( spunQ_IDatabaseConnection connection,
spunQ_ITypeMemberStorage storage 
)

Called before a type member storage is deleted.

See also:
spunQ_IDatabaseConnection::createTypeMemberStorage()
Parameters:
$connection The connection that triggered this event.
$storage The storage that will be deleted.
Returns:
void.

Implements spunQ_IDatabaseListener.

Definition at line 126 of file GroupCreator.class.php.

spunQ_GroupCreator::executedDeleteQuery ( spunQ_IDatabaseConnection connection,
spunQ_DeleteQuery query,
&$  result,
array $  queryParams = array() 
)

Called after a delete query was executed.

Parameters:
$connection The connection that triggered this event.
$query The query that was executed.
$result The result array.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 91 of file GroupCreator.class.php.

spunQ_GroupCreator::executedInsertQuery ( spunQ_IDatabaseConnection connection,
spunQ_InsertQuery query,
&$  result 
)

Called before after an insert query was executed.

Parameters:
$connection The connection that triggered this event.
$query The query that was executed.
$result The result array.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 37 of file GroupCreator.class.php.

spunQ_GroupCreator::executedSelectQuery ( spunQ_IDatabaseConnection connection,
spunQ_SelectQuery query,
array &$  result,
array $  queryParams = array() 
)

Called after a select query was executed.

Parameters:
$connection The connection that triggered this event.
$query The query that was executed.
$result The result array.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 63 of file GroupCreator.class.php.

spunQ_GroupCreator::executedUpdateQuery ( spunQ_IDatabaseConnection connection,
spunQ_UpdateQuery query,
&$  result,
array $  queryParams = array() 
)

Called after an update query was executed.

Parameters:
$connection The connection that triggered this event.
$query The query that was executed.
$result The result array.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 77 of file GroupCreator.class.php.

spunQ_GroupCreator::executingDeleteQuery ( spunQ_IDatabaseConnection connection,
spunQ_DeleteQuery query,
array $  queryParams = array() 
)

Called before a delete query is executed.

Parameters:
$connection The connection that triggered this event.
$query The query that is about to be executed.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 84 of file GroupCreator.class.php.

spunQ_GroupCreator::executingInsertQuery ( spunQ_IDatabaseConnection connection,
spunQ_InsertQuery query 
)

Called before an insert query is executed.

Parameters:
$connection The connection that triggered this event.
$query The query that is about to be executed.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 29 of file GroupCreator.class.php.

spunQ_GroupCreator::executingSelectQuery ( spunQ_IDatabaseConnection connection,
spunQ_SelectQuery query,
array $  queryParams = array() 
)

Called before a select query is executed.

Parameters:
$connection The connection that triggered this event.
$query The query that is about to be executed.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 56 of file GroupCreator.class.php.

spunQ_GroupCreator::executingUpdateQuery ( spunQ_IDatabaseConnection connection,
spunQ_UpdateQuery query,
array $  queryParams = array() 
)

Called before an update query is executed.

Parameters:
$connection The connection that triggered this event.
$query The query that is about to be executed.
Returns:
void

Implements spunQ_IDatabaseListener.

Definition at line 70 of file GroupCreator.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:40 2011 for spunQ3 by  doxygen 1.5.9