phpDocumentor db
[ class tree: db ] [ index: db ] [ all elements ]

Class: QueryBasket

Source Location: /myphp-1.9/myphp-1.9-db/html/query/QueryBasket.php

Class QueryBasket

Class Overview

The Query object, which will supply all the sql for the Basket

  1. Usage:
  2. $query = new QueryBasket();
  3. print $query->get($table,$id,$sid,$translate,$orderby);
  4. Or
  5. $query = QueryBasket::get($table,$id,$sid,$translate,$orderby);

Located in /myphp-1.9/myphp-1.9-db/html/query/QueryBasket.php [line 29]

Query
   |
   --QueryBasket

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Query

Query::Query()
Constructor
Query::from()
Return the FROM part of the query
Query::get()
Return the query specified
Query::groupby()
Return the GROUP BY part of the query
Query::having()
Return the HAVING part of the query
Query::limit()
Return the LIMIT [$skip,] $show The Limit part of the query
Query::orderby()
Return the ORDER BY part of the query
Query::select()
Return the SELECT part of the query
Query::translate()
Return the translated SQL to language specific
Query::where()
Return the WHERE part of the query

[ Top ]
Method Summary
QueryBasket   QueryBasket()   Constructor
String   get()   Return the query specified
String   select()   Return the SELECT part of the query

[ Top ]
Methods
Constructor QueryBasket  [line 33]

  QueryBasket QueryBasket( )

Constructor



[ Top ]
get  [line 90]

  String get( String $table, [String $id = ''], [String $sid = ''], [boolean $translate = true], [String $orderby = ''], [String $sort = ''], [String $skip = ''], [String $show = '']  )

Return the query specified

Parameters:
String   $table:  The table to use
String   $id:  The primary key to use
String   $sid:  The foreign key to use
boolean   $translate:  The query is translated to language (true)
String   $orderby:  The Order By to use
String   $sort:  The sort order asc/desc
String   $skip:  The skip number of lines
String   $show:  The number to show

API Tags:
Return:  The requested query
Static:  


Redefinition of:
Query::get()
Return the query specified

[ Top ]
select  [line 45]

  String select( String $table, [boolean $translate = true]  )

Return the SELECT part of the query

Parameters:
String   $table:  The table to use
boolean   $translate:  The query is translated to language (true)

API Tags:
Return:  The requested query
Global:  DEFINE_SELECT_BASKET 0: The Select Table for the Basket
Static:  


Redefinition of:
Query::select()
Return the SELECT part of the query

[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:15:58 +0100 by phpDocumentor 1.3.0RC3