PHP Класс Horde_Prefs_CategoryManager, horde

Автор: Chuck Hagenbuch ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

add() публичный статический Метод

Add a new category.
public static add ( string $category ) : mixed
$category string The name of the category to add.
Результат mixed False on failure, or the new category's name.

colors() публичный статический Метод

Returns the color for each of the user's categories.
public static colors ( ) : array
Результат array A list of colors, key is the category name, value is the HTML color code.

fgColors() публичный статический Метод

Returns the foreground color for each of the user's categories.
public static fgColors ( ) : array
Результат array A list of colors, key is the category name, value is the HTML color code.

get() публичный статический Метод

Get all categories.
public static get ( )

getJavaScript() публичный статический Метод

TODO
public static getJavaScript ( $formname, $elementname )

getSelect() публичный статический Метод

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

remove() публичный статический Метод

Delete a category.
public static remove ( string $category ) : boolean
$category string The category to remove.
Результат boolean True on success, false on failure.

setColor() публичный статический Метод

TODO
public static setColor ( $category, $color )

setColors() публичный статический Метод

TODO
public static setColors ( $colors )