Barbie > Labyrinth-5.13 > Labyrinth::Support

Download:
Labyrinth-5.13.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 5.13   Source   Latest Release: Labyrinth-5.17

NAME ^

Labyrinth::Support - Common Function Library for Labyrinth.

SYNOPSIS ^

  use Labyrinth::Support;

DESCRIPTION ^

The functions contain herein are commonly used throughout Labyrinth and plugins.

EXPORT ^

  AlignName
  AlignClass
  AlignSelect

  PublishState
  PublishSelect
  PublishAction

  FieldCheck
  AuthorCheck
  MasterCheck
  AccessUser
  AccessGroup
  AccessSelect
  AccessAllFolders 
  AccessAllAreas

  RealmCheck
  RealmSelect
  RealmName
  RealmID

  FolderName
  FolderSelect
  AreaSelect

FUNCTIONS ^

PublishState

Returns the name of the current publish state, given the numeric state.

PublishSelect

Provides a dropdown selection box, as a XHTML code snippet, of the currently available publishing states.

PublishAction

Provides a dropdown selection box, as a XHTML code snippet, of the currently accessible publishing states.

AlignName

Returns the name of the given alignment type, defaults to 'none'.

AlignClass

Returns the class of the given alignment type, defaults to 'nail'.

AlignSelect

Provides a dropdown selection box, as a XHTML code snippet, of the currently available alignment states.

AuthorCheck

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.

MasterCheck

Ensure only a Master user can access a Master user details.

FieldCheck(\@allfields,\@mandatory)

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.

AccessUser

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.

AccessGroup

Returns whether the current user has access to the given group. Returns 1 if yes, 0 otherwise.

AccessSelect

Provides a dropdown selection box, as a XHTML code snippet, of the currently available access states.

AccessAllFolders

Return list of folders current user has access to.

AccessAllAreas

Return list of areas current user has access to.

RealmCheck

Checks whether the given realm is known within the system.

RealmSelect

Provides a dropdown selection box, as a XHTML code snippet, of the currently available realms.

RealmName

Returns the name of a realm, given a realm id.

RealmID

Returns the id of a realm, given a realm name.

FolderName

Returns the name of a folder, given a folder id.

FolderSelect

Provides a dropdown selection box, as a XHTML code snippet, of the currently available folders.

AreaSelect

Provides a dropdown selection box, as a XHTML code snippet, of the currently available areas.

SEE ALSO ^

  Time::Local
  Labyrinth

AUTHOR ^

Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/

COPYRIGHT & LICENSE ^

  Copyright (C) 2002-2012 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.
syntax highlighting: