Overview

Packages

  • Prefs

Classes

  • Horde_Prefs
  • Horde_Prefs_Cache_Base
  • Horde_Prefs_Cache_Null
  • Horde_Prefs_Cache_Session
  • Horde_Prefs_CategoryManager
  • Horde_Prefs_Exception
  • Horde_Prefs_Identity
  • Horde_Prefs_Scope
  • Horde_Prefs_Storage_Base
  • Horde_Prefs_Storage_File
  • Horde_Prefs_Storage_Imsp
  • Horde_Prefs_Storage_KolabImap
  • Horde_Prefs_Storage_Ldap
  • Horde_Prefs_Storage_Null
  • Horde_Prefs_Storage_Sql
  • Horde_Prefs_Translation
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Prefs_CategoryManager

Class for handling a list of categories stored in a user's preferences.

Copyright 2004-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Package: Prefs
Category: Horde
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Prefs/CategoryManager.php
Methods summary
public static
# get( )

Get all categories.

Get all categories.

public static
# getSelect( mixed $id, mixed $current = null )

TODO

TODO

public static
# getJavaScript( mixed $formname, mixed $elementname )

TODO

TODO

public static mixed
# add( string $category )

Add a new category.

Add a new category.

Parameters

$category
The name of the category to add.

Returns

mixed
False on failure, or the new category's name.
public static boolean
# remove( string $category )

Delete a category.

Delete a category.

Parameters

$category
The category to remove.

Returns

boolean
True on success, false on failure.
public static array
# colors( )

Returns the color for each of the user's categories.

Returns the color for each of the user's categories.

Returns

array

A list of colors, key is the category name, value is the HTML color code.

public static array
# fgColors( )

Returns the foreground color for each of the user's categories.

Returns the foreground color for each of the user's categories.

Returns

array

A list of colors, key is the category name, value is the HTML color code.

public static
# setColor( mixed $category, mixed $color )

TODO

TODO

public static
# setColors( mixed $colors )

TODO

TODO

API documentation generated by ApiGen