\Horde_Prefs_CategoryManager

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

Summary

Methods
Properties
Constants
get()
getSelect()
getJavaScript()
add()
remove()
colors()
fgColors()
setColor()
setColors()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get()

get() 

Get all categories.

getSelect()

getSelect(  $id,   $current = null) 

TODO

Parameters

$id
$current

getJavaScript()

getJavaScript(  $formname,   $elementname) 

TODO

Parameters

$formname
$elementname

add()

add(string  $category) : mixed

Add a new category.

Parameters

string $category

The name of the category to add.

Returns

mixed —

False on failure, or the new category's name.

remove()

remove(string  $category) : boolean

Delete a category.

Parameters

string $category

The category to remove.

Returns

boolean —

True on success, false on failure.

colors()

colors() : array

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.

fgColors()

fgColors() : array

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.

setColor()

setColor(  $category,   $color) 

TODO

Parameters

$category
$color

setColors()

setColors(  $colors) 

TODO

Parameters

$colors