Overview

Packages

  • None
  • Sesha

Classes

  • Horde_Core_UI_VarRenderer_Stockedit_Html
  • Sesha
  • Sesha_Api
  • Sesha_Driver
  • Sesha_Driver_Sql
  • Sesha_Exception
  • Sesha_Forms_Category
  • Sesha_Forms_CategoryDelete
  • Sesha_Forms_CategoryList
  • Sesha_Forms_Property
  • Sesha_Forms_PropertyDelete
  • Sesha_Forms_PropertyList
  • Sesha_Forms_Search
  • Sesha_Forms_Stock
  • Sesha_Forms_Type_Client
  • Overview
  • Package
  • Class
  • Tree

Class Sesha

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.

Package: Sesha
Author: Andrew Coleman mercury@appisolutions.net
Located at Sesha.php
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
# getMenu( mixed $returnType = 'object' )

Build Sesha's list of menu items.

Build Sesha's list of menu items.

public static
# isAdmin( mixed $permLevel = Horde_Perms::DELETE )
API documentation generated by ApiGen