\Sesha

This is the base Sesha class.

Copyright 2004-2007 Andrew Coleman mercury@appisolutions.net Copyright 2007-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
listCategories()
getStringlistArray()
isAdmin()
No public properties found
SORT_STOCKID
SORT_NAME
SORT_NOTE
SORT_ASCEND
SORT_DESCEND
SEARCH_ID
SEARCH_NAME
SEARCH_NOTE
SEARCH_PROPERTY
_sortByStockID()
_rsortByStockID()
_sortByName()
_rsortByName()
_sortByProperty()
_rsortByProperty()
_sortByNote()
_rsortByNote()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

SORT_STOCKID

SORT_STOCKID

Sort by stock id.

SORT_NAME

SORT_NAME

Sort by stock name.

SORT_NOTE

SORT_NOTE

Sort by stock note.

SORT_ASCEND

SORT_ASCEND

Sort in ascending order.

SORT_DESCEND

SORT_DESCEND

Sort in descending order.

SEARCH_ID

SEARCH_ID

SEARCH_NAME

SEARCH_NAME

SEARCH_NOTE

SEARCH_NOTE

SEARCH_PROPERTY

SEARCH_PROPERTY

Methods

listCategories()

listCategories() : mixed

This function will return the list of available categories.

Returns

mixed —

Array of categories on success; PEAR_Error on failure.

getStringlistArray()

getStringlistArray(string  $string) : array

Returns a Hord_Form_Type_stringlist value split to an array.

Parameters

string $string

A comma separated string list.

Returns

array —

The string list as an array.

isAdmin()

isAdmin(  $permLevel = \Horde_Perms::DELETE) 

Parameters

$permLevel

_sortByStockID()

_sortByStockID(array  $a, array  $b) : integer

Comparison function for sorting inventory stock by id.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

1 if item one is greater, -1 if item two is greater; 0 if they are equal.

_rsortByStockID()

_rsortByStockID(array  $a, array  $b) : integer

Comparison function for reverse sorting stock by id.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

-1 if item one is greater, 1 if item two is greater; 0 if they are equal.

_sortByName()

_sortByName(array  $a, array  $b) : integer

Comparison function for sorting inventory stock by name.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

1 if item one is greater, -1 if item two is greater; 0 if they are equal.

_rsortByName()

_rsortByName(array  $a, array  $b) : integer

Comparison function for reverse sorting stock by name.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

-1 if item one is greater, 1 if item two is greater; 0 if they are equal.

_sortByProperty()

_sortByProperty(array  $a, array  $b) : integer

Comparison function for sorting inventory stock by a property.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

1 if item one is greater, -1 if item two is greater; 0 if they are equal.

_rsortByProperty()

_rsortByProperty(array  $a, array  $b) : integer

Comparison function for reverse sorting stock by a property.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

-1 if item one is greater, 1 if item two is greater; 0 if they are equal.

_sortByNote()

_sortByNote(array  $a, array  $b) : integer

Comparison function for sorting inventory stock by note.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

1 if item one is greater, -1 if item two is greater; 0 if they are equal.

_rsortByNote()

_rsortByNote(array  $a, array  $b) : integer

Comparison function for reverse sorting stock by note.

Parameters

array $a

Item one.

array $b

Item two.

Returns

integer —

-1 if item one is greater, 1 if item two is greater; 0 if they are equal.