Functions
edit_service_bodies.php File Reference

Displays a form for editing Service bodies. Only Server Admins can create and delete bodies, but Service Body Admins that are the principal user or an editor of a Service Body in a higher level of the hierarchy can edit the data in a Service Body. More...

Functions

 DisplayServiceBodyEditor ($in_http_vars)
 This returns a form, used to edit all the Service Bodies.
 DisplayOneServiceBodyEditor (&$in_servicebody_obj, $in_http_vars, $in_children)
 Returns the HTML for one Service Body.
 IsSBRecursive ($in_sb_id, $in_hierarchy_id)
 Check to see if a Service Body might loop, if introduced to a given hierarchy.

Detailed Description

Displays a form for editing Service bodies. Only Server Admins can create and delete bodies, but Service Body Admins that are the principal user or an editor of a Service Body in a higher level of the hierarchy can edit the data in a Service Body.

This file is part of the Basic Meeting List Toolbox (BMLT).

Find out more at: http://magshare.org/bmlt

BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this code. If not, see <http://www.gnu.org/licenses/>.


Function Documentation

DisplayOneServiceBodyEditor ( &$  in_servicebody_obj,
in_http_vars,
in_children 
)

Returns the HTML for one Service Body.

Returns:
a string, containing the HTML for the service body.
Parameters:
in_servicebody_objA reference to a c_comdef_service_body instance. If the instance is null, it will create a new Service Body fieldset.
in_http_varsThe current HTTP variables.
in_childrenAn associative nested array of references to "child" Service Bodies.

Referenced by DisplayServiceBodyEditor().

DisplayServiceBodyEditor ( in_http_vars)

This returns a form, used to edit all the Service Bodies.

Returns:
a string, containing the HTML for the form
Parameters:
in_http_varsAn associative array, containing the combined $_GET and $_POST parameters.

Referenced by GetControlPanelHTML().

IsSBRecursive ( in_sb_id,
in_hierarchy_id 
)

Check to see if a Service Body might loop, if introduced to a given hierarchy.

Returns:
a boolean. True if the given Service Body appears in the hierarchy above it.
Parameters:
in_sb_idThe ID of the Service Body to check.
in_hierarchy_idAn ID for the Service Body Hierarchy to Check.

Referenced by DisplayOneServiceBodyEditor(), and c_comdef_service_body::IsOwnedBy().

 All Classes Files Functions Variables Enumerations