Pelzini

This is the code documentation for the Pelzini project

class SelectQuery

This class simplifies the creation of select queries

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-06-21
**/
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
    }
    
}
?>