includes/searcher.php
/**
   * PDO Prepared Array
   *
   * Populates an array 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 Array
   */
PDO Prepared Array
Populates an array 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 Array
PDO Prepared Array Populates an array 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 Array
private function populateArray($type) {
    $keys  = array();
    $array = array();
    if ($type === 'plants') {
      $keys = $this->plantKeys;
    } else {
      $keys = $this->contentKeys;
    }
    foreach ($keys as $key) {
      $array[":" . $key] = "%" . $this->search . "%";
    }
    return $array;
  }
private function populateArray ( $ type ) { $ keys = array ( ) ; $ array = array ( ) ; if ( $ type === 'plants' ) { $ keys = $ this -> plantKeys ; } else { $ keys = $ this -> contentKeys ; } foreach ( $ keys as $ key ) { $ array [ " : " . $ key ] = " % " . $ this -> search . " % " ; } return $ array ; }
PDO Prepared Array
 Populates an array for PDO prepared statements for the given type and its
 respective results.
PDO Prepared Array Populates an array for PDO prepared statements for the given type and its respective results .