AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
      • Query
    • Exception
    • FileSystem
    • Session
    • Traversables
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

  • AbstractQuery
  • MySQLQuery

Class MySQLQuery

MySQL ORM

Alo\Db\Query\AbstractQuery
Extended byAlo\Db\Query\MySQLQuery
Namespace:Alo\Db\Query
Author:Art <a.molcanovas@gmail.com>
Located atsys/class/alo/db/query/mysqlquery.php

Methods summary

public
#__construct(Alo\Db\MySQL|PDO& $db=null)

Instantiates the MySQL ORM

Instantiates the MySQL ORM

Parameters

$db
Alo\Db\MySQL|PDO
$db

Throws

Alo\Exception\LibraryException
When $db isn't supplied & Alo::$db isn't an instance of MySQL or PDO
Alo\Exception\LibraryException

Author

Art <a.molcanovas@gmail.com>
public string
#getSQL( )

Returns a string representation of the built query

Returns a string representation of the built query

Returns

string

Throws

Alo\Exception\ORMException
When there are no columns to select or there is no source table

Author

Art <a.molcanovas@gmail.com>

Methods inherited fromAlo\Db\Query\AbstractQuery

__toString(),abstractJoin(),abstractWhere(),andWhere(),crossJoin(),from(),getBinds(),innerJoin(),leftJoin(),limit(),orWhere(),reset(),rightJoin(),select(),whereBracketClose(),whereBracketOpen()

Magic methods summary

Properties summary

protectedAlo\Db\MySQL|PDO$db
#

Reference to database connection

Reference to database connection

Properties inherited fromAlo\Db\Query\AbstractQuery

$binds,$from,$joins,$limit,$select,$where

AloFramework documentation API documentation generated byApiGen 2.8.0