This is the base Sesha class.
Copyright 2004-2007 Andrew Coleman mercury@appisolutions.net
Copyright 2007-2012 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.
Methods summary
public
mixed
|
#
listStock( constant $sortby = null, constant $sortdir = null, integer $category_id = null, string $what = null, integer $where = null )
This function will return the inventory based on current category
filters.
This function will return the inventory based on current category
filters.
Parameters
- $sortby
- The field to sort the inventory on.
- $sortdir
- The direction to sort the inventory.
- $category_id
- The category ID of stock to fetch.
- $what
- The criteria to search on.
- $where
- The locations to search in (bitmask).
Returns
mixed Array of inventory on success; PEAR_Error on failure.
|
public
mixed
|
#
listCategories( )
This function will return the list of available categories.
This function will return the list of available categories.
Returns
mixed Array of categories on success; PEAR_Error on failure.
|
public
array
|
#
getStringlistArray( string $string )
Returns a Hord_Form_Type_stringlist value split to an array.
Returns a Hord_Form_Type_stringlist value split to an array.
Parameters
- $string
- A comma separated string list.
Returns
array The string list as an array.
|
public
integer
|
#
_sortByStockID( array $a, array $b )
Comparison function for sorting inventory stock by id.
Comparison function for sorting inventory stock by id.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer 1 if item one is greater, -1 if item two is greater;
0 if they are equal.
|
public
integer
|
#
_rsortByStockID( array $a, array $b )
Comparison function for reverse sorting stock by id.
Comparison function for reverse sorting stock by id.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer -1 if item one is greater, 1 if item two is greater;
0 if they are equal.
|
public
integer
|
#
_sortByName( array $a, array $b )
Comparison function for sorting inventory stock by name.
Comparison function for sorting inventory stock by name.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer 1 if item one is greater, -1 if item two is greater;
0 if they are equal.
|
public
integer
|
#
_rsortByName( array $a, array $b )
Comparison function for reverse sorting stock by name.
Comparison function for reverse sorting stock by name.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer -1 if item one is greater, 1 if item two is greater;
0 if they are equal.
|
public
integer
|
#
_sortByProperty( array $a, array $b )
Comparison function for sorting inventory stock by a property.
Comparison function for sorting inventory stock by a property.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer 1 if item one is greater, -1 if item two is greater;
0 if they are equal.
|
public
integer
|
#
_rsortByProperty( array $a, array $b )
Comparison function for reverse sorting stock by a property.
Comparison function for reverse sorting stock by a property.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer -1 if item one is greater, 1 if item two is greater;
0 if they are equal.
|
public
integer
|
#
_sortByNote( array $a, array $b )
Comparison function for sorting inventory stock by note.
Comparison function for sorting inventory stock by note.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer 1 if item one is greater, -1 if item two is greater;
0 if they are equal.
|
public
integer
|
#
_rsortByNote( array $a, array $b )
Comparison function for reverse sorting stock by note.
Comparison function for reverse sorting stock by note.
Parameters
- $a
- Item one.
- $b
- Item two.
Returns
integer -1 if item one is greater, 1 if item two is greater;
0 if they are equal.
|
public static
|
#
isAdmin( mixed $permLevel = Horde_Perms::DELETE )
|