includes/searcher.php
/**
   * PDO Prepared Query
   *
   * Renders a query for PDO prepared statements for the given type and its
   * respective results.
   *
   * All keys are static and declared within the constructor.
   *
   * @param String $type
   *   Table type.
   *
   * @return String
   */
PDO Prepared Query
Renders a query for PDO prepared statements for the given type and its
respective results.

All keys are static and declared within the constructor.

@param String $type
Table type.

@return String
PDO Prepared Query Renders a query for PDO prepared statements for the given type and its respective results . All keys are static and declared within the constructor . @param String $type Table type . @return String
private function renderQuery($type) {
    $query = "";
    if ($type === 'plants') {
      $keys = $this->plantKeys;
    } else {
      $keys = $this->contentKeys;
    }
    foreach ($keys as $key) {
      $query .= $key . " ILIKE :" . $key . " OR ";
    }
    return substr($query, 0, -4);
  }
private function renderQuery ( $ type ) { $ query = " " ; if ( $ type === 'plants' ) { $ keys = $ this -> plantKeys ; } else { $ keys = $ this -> contentKeys ; } foreach ( $ keys as $ key ) { $ query .= $ key . "  ILIKE : " . $ key . "  OR  " ; } return substr ( $ query , 0 , - 4 ) ; }
PDO Prepared Query
 Renders a query for PDO prepared statements for the given type and its
 respective results.
PDO Prepared Query Renders a query for PDO prepared statements for the given type and its respective results .