FF_DataAccess_Demo_mysql Class Reference

Inheritance diagram for FF_DataAccess_Demo_mysql:

FF_DataAccess List of all members.

Public Member Functions

 FF_DataAccess_Demo_mysql ()
 update ($in_data)
 add ($in_data)
 getListData ($in_where, $in_orderByField, $in_orderByDir, $in_fields= '*')
 getListFilter ($in_searchString, $in_searchFields, $in_filter, $in_filterData)
 remove ($in_demoId)
 getNextId ()
 getDemosByBorrowerId ($in_borrowerId)
 getDemoItems ($in_id)
 addNewItems ($in_demoId, $in_items, &$in_resultObj)
 removeItem ($in_demoId, $in_itemId, &$in_resultObj)
addDemoToBorrower ($in_demoId, $in_borrowerId)
 removeDemoFromBorrower ($in_demoId, $in_borrowerId)
 getMissingDemos ($in_items, $in_borrowerId)

Public Attributes

 $o_log
 $demoItemsTable
 $borrowerDemosTable
 $itemsTable
 $groupsTable
 $filterName

Detailed Description

Definition at line 48 of file DataAccess/mysql/Demo.php.


Constructor & Destructor Documentation

FF_DataAccess_Demo_mysql::FF_DataAccess_Demo_mysql  ) 
 

Initialize any needed class variables

public

Returns:
void

Definition at line 96 of file DataAccess/mysql/Demo.php.

References FF_DataAccess::FF_DataAccess().


Member Function Documentation

FF_DataAccess_Demo_mysql::add in_data  ) 
 

Adds a new row to the table

Parameters:
array $in_data The array of data to add
public
Returns:
object The result object

Reimplemented from FF_DataAccess.

Definition at line 145 of file DataAccess/mysql/Demo.php.

References $o_result, and addNewItems().

& FF_DataAccess_Demo_mysql::addDemoToBorrower in_demoId,
in_borrowerId
 

Adds a demo for the user

Parameters:
int $in_demoId The new demo id
int $in_borrowerId The borrower id
public
Returns:
object The result object

Definition at line 363 of file DataAccess/mysql/Demo.php.

References $a_data, $o_result, $result, and FF_DataAccess::timestampToISODate().

FF_DataAccess_Demo_mysql::addNewItems in_demoId,
in_items,
&$  in_resultObj
 

Adds new items to a demo

Parameters:
int $in_demoId The demo id
array $in_items The array of items
object $in_resultObj The result object
public
Returns:
void

Definition at line 309 of file DataAccess/mysql/Demo.php.

References $a_data, and $s_query.

Referenced by add(), and update().

FF_DataAccess_Demo_mysql::getDemoItems in_id  ) 
 

Gets all the items in a demo

Parameters:
int $in_id The demo id
public
Returns:
array An array of items in the demo

Definition at line 283 of file DataAccess/mysql/Demo.php.

References $s_query.

FF_DataAccess_Demo_mysql::getDemosByBorrowerId in_borrowerId  ) 
 

Gets an array of borrower demos by the borrowers id

Parameters:
int $in_borrowerId The borrower id
public
Returns:
array An array of the data

Definition at line 266 of file DataAccess/mysql/Demo.php.

References $s_query.

FF_DataAccess_Demo_mysql::getListData in_where,
in_orderByField,
in_orderByDir,
in_fields = '*'
 

Queries the database for the information displayed on a list page.

Parameters:
string $in_where The where condition
string $in_orderByField The order by field
string $in_orderByDir The order by direction
string $in_fields (optional) The fields to select
public
Returns:
object The result object

Reimplemented from FF_DataAccess.

Definition at line 176 of file DataAccess/mysql/Demo.php.

References $s_query, and FF_DataAccess::_getOrderByDirection().

FF_DataAccess_Demo_mysql::getListFilter in_searchString,
in_searchFields,
in_filter,
in_filterData
 

Handles the list filters as well as all functionality of the parent method.

Parameters:
string $in_searchString The string to search for
array $in_searchFields The array of fields to search.
string $in_filter The name of a additional filters to apply in case the list needs to be further limited.
array $in_filterData Any associated data or flags that go with the filter.
public
Returns:
string A WHERE condition for the list data

Reimplemented from FF_DataAccess.

Definition at line 206 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::getMissingDemos in_items,
in_borrowerId
 

Get a list of demos that a borrower does not have that are required for a list of items and groups. We also check demos for those groups that contain any of the passed in items. This allows a demo to be applied only to the group, and not every item in the group.

Parameters:
int $in_items The items to look for missing demos
int $in_borrowerId The id of the borrower to get missing demos for
public
Returns:
array A list of item, demo pairs

Definition at line 418 of file DataAccess/mysql/Demo.php.

References $s_query, and FF_DataAccess::factory().

FF_DataAccess_Demo_mysql::getNextId  ) 
 

Gets the next id available in the sequence table

public

Returns:
int The next id

Reimplemented from FF_DataAccess.

Definition at line 248 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::remove in_demoId  ) 
 

Removes the demo

Parameters:
string $in_demoId The demo id
public
Returns:
object Result object

Definition at line 232 of file DataAccess/mysql/Demo.php.

References $a_data.

FF_DataAccess_Demo_mysql::removeDemoFromBorrower in_demoId,
in_borrowerId
 

Marks a borrower's demo as deleted.

Parameters:
int $in_demoId The id of the demo to remove
public
Returns:
object The result object

Definition at line 390 of file DataAccess/mysql/Demo.php.

References $o_result.

FF_DataAccess_Demo_mysql::removeItem in_demoId,
in_itemId,
&$  in_resultObj
 

Removes an item from a demo

Parameters:
int $in_demoId The demo id
int $in_itemId The item id
object $in_resultObj The result objecft
public
Returns:
void

Definition at line 342 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::update in_data  ) 
 

Updates a row that already exists in the table

Parameters:
array $in_data The new data to update
public
Returns:
object The Result object

Reimplemented from FF_DataAccess.

Definition at line 118 of file DataAccess/mysql/Demo.php.

References $o_result, and addNewItems().


Member Data Documentation

FF_DataAccess_Demo_mysql::$borrowerDemosTable
 

Definition at line 67 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::$demoItemsTable
 

Definition at line 61 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::$filterName
 

Definition at line 85 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::$groupsTable
 

Definition at line 79 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::$itemsTable
 

Definition at line 73 of file DataAccess/mysql/Demo.php.

FF_DataAccess_Demo_mysql::$o_log
 

Definition at line 55 of file DataAccess/mysql/Demo.php.


The documentation for this class was generated from the following file:
Generated on Fri Jun 23 11:38:43 2006 for FastFrame by  doxygen 1.4.4