src/libraries/adapters/DatabaseMySql.php
/**
    * Utility function to help build the WHERE clause for SELECT statements.
    * (Taken from DatabaseSimpleDb)
    * TODO possibly put duplicate code in a utility class
    *
    * @param string $existing Existing where clause.
    * @param string $add Clause to add.
    * @return string
    */
Utility function to help build the WHERE clause for SELECT statements.
(Taken from DatabaseSimpleDb)
TODO possibly put duplicate code in a utility class

@param string $existing Existing where clause.
@param string $add Clause to add.
@return string
Utility function to help build the WHERE clause for SELECT statements . ( Taken from DatabaseSimpleDb ) TODO possibly put duplicate code in a utility class @param string $existing Existing where clause . @param string $add Clause to add . @return string
private function buildWhere($existing, $add)
  {
    if(empty($existing))
      return "where {$add} ";
    else
      return "{$existing} and {$add} ";
  }
private function buildWhere ( $ existing , $ add ) { if ( empty ( $ existing ) ) return " where  { $ add } " ; else return " { $ existing }  and  { $ add } " ; }
Utility function to help build the WHERE clause for SELECT statements.
Utility function to help build the WHERE clause for SELECT statements .