Labyrinth::Support - Common Function Library for Labyrinth.
use Labyrinth::Support;
The functions contain herein are commonly used throughout Labyrinth and plugins.
Alignment AlignSelect PublishState PublishSelect PublishAction FieldCheck AuthorCheck MasterCheck AccessUser AccessGroup AccessSelect AccessAllFolders AccessAllAreas RealmCheck RealmSelect RealmName RealmID FolderName FolderSelect AreaSelect
Returns the name of the current publish state, given the numeric state.
Provides a dropdown selection box, as a XHTML code snippet, of the currently available publishing states.
Provides a dropdown selection box, as a XHTML code snippet, of the currently accessible publishing states.
Returns the name of the current alignment state, given the numeric state.
Provides a dropdown selection box, as a XHTML code snippet, of the currently available alignment states.
Checks whether the current user is the author of the data requested, or has permissions to allow them to access the data. If not sets the BADACCESS error code, otherwise retrieves the data.
Ensure only a Master user can access a Master user details.
Stores all the input data listed in @allfields, then checks that all the fields listed in @mandatory are provided. Any errors found during parameter parsing both for missing mandatory fields and via Data::FormValidator are then flagged and the error code set.
Returns whether the current user has access at the given level of permissions. Default permission level is ADMIN. Returns 1 if permission is granted, 0 otherwise.
Returns whether the current user has access to the given group. Returns 1 if yes, 0 otherwise.
Provides a dropdown selection box, as a XHTML code snippet, of the currently available access states.
Return list of folders current user has access to.
Return list of areas current user has access to.
Checks whether the given realm is known within the system.
Provides a dropdown selection box, as a XHTML code snippet, of the currently available realms.
Returns the name of a realm, given a realm id.
Returns the id of a realm, given a realm name.
Returns the name of a folder, given a folder id.
Provides a dropdown selection box, as a XHTML code snippet, of the currently available folders.
Provides a dropdown selection box, as a XHTML code snippet, of the currently available areas.
Time::Local Labyrinth
Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/
Copyright (C) 2002-2011 Barbie for Miss Barbell Productions All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the Artistic License 2.0.
To install Labyrinth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Labyrinth
CPAN shell
perl -MCPAN -e shell install Labyrinth
For more information on module installation, please visit the detailed CPAN module installation guide.