This class simplifies the creation of select queries
This is the code documentation for the Pelzini project
Search documentation |
class SelectQueryThis class simplifies the creation of select queries
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2025-12-07
**/
class NewClassName extends SelectQuery {
/**
* This creates the SQL query
**/
public function buildQuery () {
// Method code goes here
}
/**
* Adds the required WHERE clauses for multiple-project support
**/
public function addProjectWhere () {
// Method code goes here
}
/**
* Sets an ORDER BY clause.
**/
public function setOrderBy ($order_by) {
// Method code goes here
}
/**
* Adds a WHERE clause. Where clauses are ANDed together
**/
public function addWhere ($where) {
// Method code goes here
}
/**
* Sets a GROUP BY clause.
**/
public function setGroupBy ($group_by) {
// Method code goes here
}
/**
* Adds an INNER JOIN
**/
public function addInnerJoin ($join) {
// Method code goes here
}
/**
* Adds a LEFT JOIN
**/
public function addLeftJoin ($join) {
// Method code goes here
}
/**
* Sets the FROM clause for the query
**/
public function setFrom ($from) {
// Method code goes here
}
/**
* Generic method for adding fields to the query
**/
public function addFields (string $fields) {
// Method code goes here
}
public function __construct () {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Thursday, 15th March, 2018 at 02:05 pm |
|