Namespaces | Functions

cms/pagesettings.lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  pragyan
 

Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom.


Functions

 getCreatablePageTypes ($userid, $pageid)
 getSettingsForm ($pageId, $userId)

Function Documentation

getCreatablePageTypes ( userid,
pageid 
)

pagesettings.lib.php: Everything to do with page settings, creation, and moving or copying of pages Retrieves the module types a person can create at a given pageid

Parameters:
$userid Integer indicating the user id of the person
$pageid Integer indicating the page id of the page at which the user is trying to create the page
Returns:
List of modules the person has permission to create at (as a child of) the given page

Definition at line 26 of file pagesettings.lib.php.

getSettingsForm ( pageId,
userId 
)

Generate HTML for a form to help edit settings for a given page

Parameters:
$pageId Page id of the requested page
$userId User id of the current user
Returns:
String containing HTML of the generated form, or a null string if required data could not be found

Definition at line 43 of file pagesettings.lib.php.