ea-Geiercode
[ class tree: ea-Geier ] [ index: ea-Geier ] [ all elements ]

Procedural File: purchasebook.db.php

Source Location: /code/purchasebook.db.php

Page Details

database functions for purchase book

LICENSE: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Link:  http://www.ea-geier.at/
Filesource:  Source Code for this file
Version:  $Id: purchasebook.db.php 130 2007-08-17 14:24:44Z m2mtech $
License:  GNU General Public License Version 2
Copyright:  2007 m2m server software gmbh
Author:  m2mtech <tech@m2m.at>
Includes
require_once ('code/clients.db.php') [line 30]

standard client db functions

[ Top ]

require_once ('code/numbers.inc.php') [line 35]

number functions

[ Top ]

require_once ('code/date.inc.php') [line 40]

date functions

[ Top ]


Functions
dbCountPurchaseBookItems  [line 109]

integer dbCountPurchaseBookItems( eaDB &$db, integer $client, [array $where = false]  )

get number of purchase-book items

Parameters:
eaDB   &$db:  database
integer   $client:  clientID
array   $where:  filter

API Tags:
Return:  number of items


[ Top ]
dbGetPurchaseBookMonths  [line 219]

array dbGetPurchaseBookMonths( eaDB &$db, integer $client  )

get months in database

Parameters:
eaDB   &$db:  database
integer   $client:  clientID

API Tags:
Return:  templates


[ Top ]
dbLoadPurchaseBookItem  [line 89]

array dbLoadPurchaseBookItem( eaDB &$db, integer $client, integer $item  )

load purchase-book item

Parameters:
eaDB   &$db:  database
integer   $client:  clientID
integer   $item:  itemID

API Tags:
Return:  data


[ Top ]
dbLoadPurchaseBookItems  [line 152]

array dbLoadPurchaseBookItems( eaDB &$db, integer $client, [integer $num = 10], [integer $page = 1], [string $sort = false], [array $where = false]  )

load multiple purchase-book item

Parameters:
eaDB   &$db:  database
integer   $client:  clientID
integer   $num:  number of items
integer   $page:  number page
string   $sort:  sorting string
array   $where:  filtering

API Tags:
Return:  data


[ Top ]
dbPreparePurchaseBookSQLData  [line 187]

void dbPreparePurchaseBookSQLData( array &$conf, array &$data  )

prepare the sql data for output

Parameters:
array   &$conf:  configuration data
array   &$data:  purchase-book item


[ Top ]
dbSavePurchaseBookItem  [line 49]

void dbSavePurchaseBookItem( eaDB &$db, integer $client, array &$data  )

save purchase-book item

Parameters:
eaDB   &$db:  database
integer   $client:  client
array   &$data:  data


[ Top ]


Documentation generated on Sun, 09 Sep 2007 17:09:17 +0200 by phpDocumentor 1.3.1