Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page pnadmin.php

Procedural File: pnadmin.php

Source Location: /Groups/pnadmin.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: pnadmin.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2001, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








Groups_admin_adduser [line 571]

string Groups_admin_adduser( int $args, mixed 1)

This is a standard function to add a user to a group



Tags:

return:  true is user added succesfully, false otherwise
author:  Mark West


Parameters

mixed   1   'uid' the id of the user (int) or an array of userids
int   $args   'gid' the id of the group
[ Top ]



Groups_admin_create [line 207]

bool Groups_admin_create( string $args)

This is a standard function that is called with the results of the

form supplied by groups admin_new() to create a new group




Tags:

return:  true if group created succesfully, false otherwise
author:  Mark West


Parameters

string   $args   'name' the name of the group to be created
[ Top ]



Groups_admin_delete [line 367]

mixed Groups_admin_delete( int $args, bool 1, int 2)

delete group

This is a standard function that is called whenever an administrator wishes to delete a current group item. Note that this function is the equivalent of both of the modify() and update() functions above as it both creates a form and processes its output. This is fine for simpler functions, but for more complex operations such as creation and modification it is generally easier to separate them into separate functions. There is no requirement in the Zikula MDG to do one or the other, so either or both can be used as seen appropriate by the module developer




Tags:

return:  HTML output string if no confirmation, true if group deleted succesfully, false otherwise
author:  Mark West


Parameters

bool   1   'confirmation' confirmation that this item can be deleted
int   2   'objectid' generic object id mapped onto gid if present
int   $args   'gid' the id of the item to be deleted
[ Top ]



Groups_admin_groupmembership [line 441]

string Groups_admin_groupmembership( int $args, int 1)

This is a standard function to display members of a group



Tags:

return:  HTML output string
author:  Mark West
link:  http://www.markwest.me.uk/


Parameters

int   1   'objectid' generic object id mapped onto gid if present
int   $args   'gid' the id of the group to list membership for
[ Top ]



Groups_admin_main [line 24]

string Groups_admin_main( )

Groups Module main administration function

This function is the default function, and is called whenever the module is initiated without defining arguments. As such it can be used for a number of things, but most commonly it either just shows the module menu and returns or calls whatever the module designer feels should be the default function (often this is the view() function)




Tags:

return:  HTML output string
author:  Mark West


[ Top ]



Groups_admin_modify [line 256]

string Groups_admin_modify( int $args, int 1)

modify a group

This is a standard function that is called whenever an administrator wishes to modify a current group item




Tags:

return:  HTML output string
author:  Mark West


Parameters

int   1   'objectid' generic object id mapped onto gid if present
int   $args   'gid' the id of the group to be modified
[ Top ]



Groups_admin_modifyconfig [line 764]

string Groups_admin_modifyconfig( )

This is a standard function to modify the configuration parameters of the

module




Tags:

return:  HTML string
author:  Mark West
since:  1.14


[ Top ]



Groups_admin_new [line 175]

string Groups_admin_new( )

Add a new group

This is a standard function that is called whenever an administrator wishes to create a new group




Tags:

return:  HTML output string
author:  Mark West


[ Top ]



Groups_admin_removeuser [line 612]

string Groups_admin_removeuser( int $args, int 1)

This is a standard function to add a user to a group



Tags:

return:  true is user added succesfully, false otherwise
author:  Mark West


Parameters

int   1   'uid' the id of the user
int   $args   'gid' the id of the group
[ Top ]



Groups_admin_update [line 313]

bool Groups_admin_update( int $args, int 1, string 2)

This is a standard function that is called with the results of the

form supplied by groups_admin_modify() to update a current group item




Tags:

return:  true if group updated successfully, false otherwise
author:  Mark West


Parameters

int   1   'objectid' generic object id mapped onto gid if present
string   2   'name' the name of the group to be updated
int   $args   'gid' the id of the group to be modified
[ Top ]



Groups_admin_updateconfig [line 802]

bool Groups_admin_updateconfig( )

This is a standard function to update the configuration parameters of the

module given the information passed back by the modification form




Tags:

return:  true
author:  Mark West
since:  1.14


[ Top ]



Groups_admin_userpending [line 641]

void Groups_admin_userpending( )

display a list of group applications





[ Top ]



Groups_admin_userupdate [line 685]

void Groups_admin_userupdate( )

update group applications





[ Top ]



Groups_admin_view [line 58]

string Groups_admin_view( )

View all groups

this function creates a tabular output of all group items in the module




Tags:

return:  HTML output string
author:  Mark West
todo:  add pager for function


[ Top ]


Packages:

Files:

Classes: