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

Class: MDB2_TableBrowser_InterfaceTableValidator

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

Class Overview


This interface defines a set of methods that use the table definition to help insure that the generated sql query will be valid


Author(s):

Version:

  • Release: <package_version>

Copyright:

  • 2007-2012 Isaac Tewolde

Methods


Inherited Variables

Inherited Methods


Class Details

[line 261]
This interface defines a set of methods that use the table definition to help insure that the generated sql query will be valid


[ Top ]


Method Detail

getColumns   [line 269]

array getColumns( )

Returns all the columns of the table, in the order that they are defined in the table
  • Return: the column names
  • Access: public

[ Top ]

getInsertSQL   [line 275]

string getInsertSQL( )

Gets a properly formated Insert sql statment for the table.
  • Access: public

[ Top ]

isValidColumn   [line 283]

boolean isValidColumn( string $columnName)

Checks to see if a column exists in the table definition
  • Access: public

Parameters:

string   $columnName   —  The column name

[ Top ]

isValidData   [line 300]

boolean isValidData( string $colName, string $columnValue)

Checks to see if a given column value is valid given the table definition
  • Access: public

Parameters:

string   $colName   —  The column name
string   $columnValue   —  The column value

[ Top ]

isValidOperator   [line 308]

boolean isValidOperator( string $op)

Checks to see if an operator is valid
  • Access: public

Parameters:

string   $op   —  The operator eg: '=', '>='

[ Top ]

isValidRow   [line 291]

unknown isValidRow( array $rowData)

Checks to see if a row is valid given the table definition
  • Access: public

Parameters:

array   $rowData   —  The row data

[ Top ]

quote   [line 324]

string quote( string $data)

Escapes/Quotes a column value (uses mdb2's quote)
  • Access: public

Parameters:

string   $data   —  The column value

[ Top ]

quoteIdentifier   [line 316]

string quoteIdentifier( string $columnName)

Escapes/Quotes a column name (uses mdb2's quoteIdentifier)
  • Access: public

Parameters:

string   $columnName   —  The column name

[ Top ]


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