PHP Class Horde_Prefs_CategoryManager, horde

Author: Chuck Hagenbuch ([email protected])
Mostrar archivo Open project: horde/horde Class Usage Examples

Public Methods

Method Description
add ( string $category ) : mixed Add a new category.
colors ( ) : array Returns the color for each of the user's categories.
fgColors ( ) : array Returns the foreground color for each of the user's categories.
get ( ) Get all categories.
getJavaScript ( $formname, $elementname ) TODO
getSelect ( $id, $current = null ) TODO
remove ( string $category ) : boolean Delete a category.
setColor ( $category, $color ) TODO
setColors ( $colors ) TODO

Method Details

add() public static method

Add a new category.
public static add ( string $category ) : mixed
$category string The name of the category to add.
return mixed False on failure, or the new category's name.

colors() public static method

Returns the color for each of the user's categories.
public static colors ( ) : array
return array A list of colors, key is the category name, value is the HTML color code.

fgColors() public static method

Returns the foreground color for each of the user's categories.
public static fgColors ( ) : array
return array A list of colors, key is the category name, value is the HTML color code.

get() public static method

Get all categories.
public static get ( )

getJavaScript() public static method

TODO
public static getJavaScript ( $formname, $elementname )

getSelect() public static method

TODO
public static getSelect ( $id, $current = null )

remove() public static method

Delete a category.
public static remove ( string $category ) : boolean
$category string The category to remove.
return boolean True on success, false on failure.

setColor() public static method

TODO
public static setColor ( $category, $color )

setColors() public static method

TODO
public static setColors ( $colors )