MDB2_TableBrowser
[ class tree: MDB2_TableBrowser ] [ index: MDB2_TableBrowser ] [ all elements ]

Class: MDB2_TableBrowser_OrderByManager

Source Location: /MDB2_TableBrowser-0.1.3/MDB2/TableBrowser/OrderByManager.php

Class Overview


This class implements the selectClauseGenerator interface


Author(s):

Version:

  • Release: <package_version>

Copyright:

  • 2007-2012 Isaac Tewolde

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 33]
This class implements the selectClauseGenerator interface

It is used by other classes to create and manage the select clause of an SQL statements. As such, it's primary purpose is to select columns and assign labels to them.



[ Top ]


Class Variables

$orderByColumnOrder = array()

[line 42]

  • Access: protected

Type:   mixed


[ Top ]

$orderByList = array()

[line 40]

  • Access: protected

Type:   mixed


[ Top ]

$validator =  null

[line 37]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 49]

MDB2_TableBrowser_OrderByManager __construct( MDB2_TableBrowser_InterfaceTableValidator &$validator)

Constructor
  • Access: public

Parameters:

tableValidator   &$validator   —  A refrence to an object that implements the tableValidator interface

[ Top ]

generateSQL   [line 88]

string generateSQL( )

Generates the select clause of an sql statement
  • Return: the select clause
  • Access: public

[ Top ]

resetOrderBy   [line 78]

void resetOrderBy( )

Clears all sorting columns
  • Access: public

[ Top ]

setOrderBy   [line 62]

void setOrderBy( string $colName, [string $direction = null])

Order results. Multiple columns can be added
  • Access: public

Parameters:

string   $colName   —  The column name
string   $direction   —  The direction either ASC or DESC, (optional)

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.