PHP Class Sesha, horde

Copyright 2004-2007 Andrew Coleman Copyright 2007-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Author: Andrew Coleman ([email protected])
Mostra file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
getStringlistArray ( string $string ) : array Returns a Hord_Form_Type_stringlist value split to an array.
isAdmin ( $permLevel = Horde_Perms::DELETE )
listCategories ( ) : mixed This function will return the list of available categories.

Protected Methods

Method Description
_rsortByName ( array $a, array $b ) : integer Comparison function for reverse sorting stock by name.
_rsortByNote ( array $a, array $b ) : integer Comparison function for reverse sorting stock by note.
_rsortByProperty ( array $a, array $b ) : integer Comparison function for reverse sorting stock by a property.
_rsortByStockID ( array $a, array $b ) : integer Comparison function for reverse sorting stock by id.
_sortByName ( array $a, array $b ) : integer Comparison function for sorting inventory stock by name.
_sortByNote ( array $a, array $b ) : integer Comparison function for sorting inventory stock by note.
_sortByProperty ( array $a, array $b ) : integer Comparison function for sorting inventory stock by a property.
_sortByStockID ( array $a, array $b ) : integer Comparison function for sorting inventory stock by id.

Method Details

_rsortByName() protected method

Comparison function for reverse sorting stock by name.
protected _rsortByName ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer -1 if item one is greater, 1 if item two is greater; 0 if they are equal.

_rsortByNote() protected method

Comparison function for reverse sorting stock by note.
protected _rsortByNote ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer -1 if item one is greater, 1 if item two is greater; 0 if they are equal.

_rsortByProperty() protected method

Comparison function for reverse sorting stock by a property.
protected _rsortByProperty ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer -1 if item one is greater, 1 if item two is greater; 0 if they are equal.

_rsortByStockID() protected method

Comparison function for reverse sorting stock by id.
protected _rsortByStockID ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer -1 if item one is greater, 1 if item two is greater; 0 if they are equal.

_sortByName() protected method

Comparison function for sorting inventory stock by name.
protected _sortByName ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer 1 if item one is greater, -1 if item two is greater; 0 if they are equal.

_sortByNote() protected method

Comparison function for sorting inventory stock by note.
protected _sortByNote ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer 1 if item one is greater, -1 if item two is greater; 0 if they are equal.

_sortByProperty() protected method

Comparison function for sorting inventory stock by a property.
protected _sortByProperty ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer 1 if item one is greater, -1 if item two is greater; 0 if they are equal.

_sortByStockID() protected method

Comparison function for sorting inventory stock by id.
protected _sortByStockID ( array $a, array $b ) : integer
$a array Item one.
$b array Item two.
return integer 1 if item one is greater, -1 if item two is greater; 0 if they are equal.

getStringlistArray() public method

Returns a Hord_Form_Type_stringlist value split to an array.
public getStringlistArray ( string $string ) : array
$string string A comma separated string list.
return array The string list as an array.

isAdmin() public static method

public static isAdmin ( $permLevel = Horde_Perms::DELETE )

listCategories() public method

This function will return the list of available categories.
public listCategories ( ) : mixed
return mixed Array of categories on success; PEAR_Error on failure.