CORE POS - IS4C
The CORE POS front end
Public Member Functions | Public Attributes | List of all members
ProductSearch Class Reference
Inheritance diagram for ProductSearch:
AllItemProductSearch AllItemProductUserSearch DefaultProductSearch ProductUserSearch

Public Member Functions

 search ($str)
 

Public Attributes

 $result_size = 15
 

Detailed Description

Base class for providing product search results

Member Function Documentation

ProductSearch::search (   $str)

Do the actual search

Parameters
$stra search string
Returns
array

The return value is an array of product records. Each record should have the following keys: upc description normal_price scale The records can simply be query results or you can use some custom construction

The outer array should be of the form upc => record so returns from multiple searches can be merged together easily.

Member Data Documentation

ProductSearch::$result_size = 15

Set how big the result box is (in rows)


The documentation for this class was generated from the following file: