PHP Class Horde_Prefs_CategoryManager, horde

Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

colors() public static méthode

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

fgColors() public static méthode

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

get() public static méthode

Get all categories.
public static get ( )

getJavaScript() public static méthode

TODO
public static getJavaScript ( $formname, $elementname )

getSelect() public static méthode

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

remove() public static méthode

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

setColor() public static méthode

TODO
public static setColor ( $category, $color )

setColors() public static méthode

TODO
public static setColors ( $colors )