API - XOOPS 2.5.11 Beta 2
By monxoops.fr
CriteriaElement Class Reference
Inheritance diagram for CriteriaElement:

Public Member Functions

 __construct ()
 
 render ()
 
 setSort ($sort)
 
 getSort ()
 
 setOrder ($order)
 
 getOrder ()
 
 setLimit ($limit=0)
 
 getLimit ()
 
 setStart ($start=0)
 
 getStart ()
 
 setGroupBy ($group)
 
 getGroupby ()
 

Data Fields

 $order = 'ASC'
 
 $sort = ''
 
 $limit = 0
 
 $start = 0
 
 $groupby = ''
 

Detailed Description

A criteria (grammar?) for a database query.

Abstract base class should never be instantiated directly.

@abstract

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Constructor

Member Function Documentation

◆ getGroupby()

getGroupby ( )
Returns
string

◆ getLimit()

getLimit ( )
Returns
int

◆ getOrder()

getOrder ( )
Returns
string

◆ getSort()

getSort ( )
Returns
string

◆ getStart()

getStart ( )
Returns
int

◆ render()

render ( )

Render the criteria element

Returns
string

Reimplemented in CriteriaCompo, and Criteria.

◆ setGroupBy()

setGroupBy (   $group)
Parameters
string$group

◆ setLimit()

setLimit (   $limit = 0)
Parameters
int$limit

◆ setOrder()

setOrder (   $order)
Parameters
string$order

◆ setSort()

setSort (   $sort)
Parameters
string$sort

◆ setStart()

setStart (   $start = 0)
Parameters
int$start

Field Documentation

◆ $groupby

$groupby = ''

◆ $limit

$limit = 0

◆ $order

$order = 'ASC'

◆ $sort

$sort = ''

◆ $start

$start = 0

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