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

Class: A_Sql_From

Source Location: /Sql/From.php

Class Overview


A_Sql_From


Variables

Methods



Class Details

[line 15]
A_Sql_From

Generate SQL from tables/joins list




[ Top ]


Class Variables

$current_join =  null

[line 20]



Tags:

access:  protected

Type:   mixed


[ Top ]

$joins = array()

[line 19]



Tags:

access:  protected

Type:   mixed


[ Top ]

$table =  ''

[line 18]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 29]

A_Sql_From __construct( [mixed $args = null])

Constructor

Casts arguments into tables array




Tags:

access:  public


Parameters:

mixed   $args  

[ Top ]

method getJoins [line 130]

void getJoins( )



Tags:

access:  public


[ Top ]

method getTables [line 62]

array getTables( )

Return list of tables



Tags:

access:  public


[ Top ]

method join [line 86]

$this join( array $table_right, [array $table_left = null], [string $type = null])

Create a new join object with provided parameters



Tags:

access:  public


Parameters:

array   $table_right  
array   $table_left  
string   $type  

[ Top ]

method on [line 117]

$this on( string $argument1, [string $argument2 = null], [string $argument3 = null])

Proxy call to current join object



Tags:

access:  public


Parameters:

string   $argument1  
string   $argument2  
string   $argument3  

[ Top ]

method render [line 150]

string render( )

Return prepared statement



Tags:

access:  public


[ Top ]

method table [line 40]

array table( [array $table = ''])

Set main table



Tags:

access:  public


Parameters:

array   $table  

[ Top ]

method using [line 125]

void using( )



Tags:

access:  public


[ Top ]

method __toString [line 140]

string __toString( )

Automagically render when used in a string context



Tags:

access:  public


[ Top ]


Documentation generated on Sun, 24 Jul 2011 00:03:27 +0000 by phpDocumentor 1.4.3