Welcome, Guest Log In

Class Krai_Struct_Dbquery

Class Overview

Database base query struct

This struct is the base for the rest of the structs that are used by Krai_Db for automatic query construction.

Located in /Krai/Struct/Dbquery.php [line 31]

Krai_Struct
   |
   --Krai_Struct_Dbquery
Author(s):
API Tags:
Abstract:  

Properties

Methods

[ Top ]
Descendants
Child Class Description
Krai_Struct_Dbquery_Delete Database delete query struct
Krai_Struct_Dbquery_Select Database select query struct
Krai_Struct_Dbquery_Update Database update query struct
Krai_Struct_Dbquery_Insert Database insert query struct

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Krai_Struct

Krai_Struct::$DATA

Inherited From Krai_Struct

Krai_Struct::__construct()
Constructor
Krai_Struct::VarAllowed()
Determine whether a property is allowed to be get / set
Krai_Struct::__get()
PHP magic function for getting a property value
Krai_Struct::__set()
PHP magic function for setting a property value

[ Top ]
Property Summary
string   $action   Query action
mixed   $FIELDS  
array   $tables   Query tables

[ Top ]
Method Summary
Krai_Struct_Dbquery   __construct()   Constructor

[ Top ]
Properties
string   $action [line 53]

Query action

This variable represents the general action of the query. It is a key for the instance's handling by Krai_Db_Handler::Process().

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
mixed   $FIELDS = array(
"conditions" => "",
"order" => "",
"limit" => "",
"fields" => array(),"include"=>array(),"parameters"=>array(),"literals"=>array(),"multiple"=>false)
[line 34]
API Tags:
Access:  protected


Redefinition of:
Krai_Struct::$FIELDS
Array of allowed properties of the struct

Redefined in descendants as:

[ Top ]
array   $tables = array() [line 63]

Query tables

This variable contains the tables and joins involved in the query. It is parsed by Krai_Db_Handler::GetJoins().

API Tags:
Access:  public


[ Top ]
Methods
Constructor __construct  [line 74]

  Krai_Struct_Dbquery __construct( $tables, [ $new_defaults = array()]  )

Constructor

This overrides a standard Krai_Struct::__construct() call so that tables must be passed in initialization.

Parameters:
array   $tables:  Tables for the query
array   $new_defaults:  New default variable values


Redefinition of:
Krai_Struct::__construct()
Constructor

[ Top ]

Documentation generated on Fri, 25 Jul 2008 15:19:10 -0400 by phpDocumentor 1.4.2
Krai Framework site admin credits sitemap valid xhtml?