POT
POT
POT
Main menu

Download

Forum

SVN

Class: OTS_SQLField

Source Location: /classes/OTS_SQLField.php

Class OTS_SQLField

Class Overview

SQL identifier representation.

SQL identifier representation.

Located in /classes/OTS_SQLField.php [line 25]



		
				Author(s):
		
API Tags:
Property-read:  string $name: Field name.
Property-read:  string $table: Table name.

Information Tags:
Tutorial:  List objects
Version:  0.0.5
Version:  0.1.0
Since:  0.0.5

Methods

[ Top ]
Method Summary
OTS_SQLField   __construct()   Creates new field representation.
string   getName()   Returns field name.
string   getTable()   Returns table name.
mixed   __get()   Magic PHP5 method.
string   __toString()   Returns string representation for WHERE clause.

[ Top ]
Methods
Constructor __construct  [line 46]

  OTS_SQLField __construct( string $name, [string $table = '']  )

Creates new field representation.

Creates new field representation.

Parameters:
string   $name:  Field name.
string   $table:  Table name.

API Tags:
Access:  public

Information Tags:
Version:  0.0.5
Since:  0.0.5

[ Top ]
getName  [line 57]

  string getName( )

Returns field name.

Returns field name.


API Tags:
Return:  Field name.
Access:  public

Information Tags:
Version:  0.0.5
Since:  0.0.5

[ Top ]
getTable  [line 67]

  string getTable( )

Returns table name.

Returns table name.


API Tags:
Return:  Table name.
Access:  public

Information Tags:
Version:  0.0.5
Since:  0.0.5

[ Top ]
__get  [line 81]

  mixed __get( string $name  )

Magic PHP5 method.

Magic PHP5 method.

Parameters:
string   $name:  Property name.

API Tags:
Return:  Property value.
Access:  public

Information Tags:
Version:  0.1.0
Version:  0.0.5
Throws:  OutOfBoundsException For non-supported properties.
Since:  0.1.0
Since:  0.0.5

[ Top ]
__toString  [line 105]

  string __toString( )

Returns string representation for WHERE clause.

Returns string representation for WHERE clause. Returned string can be easily inserted into SQL query.


API Tags:
Return:  String WHERE clause.
Access:  public

Information Tags:
Version:  0.1.0
Version:  0.0.5
Since:  0.0.5
Since:  0.1.0

[ Top ]