Example #1
0
 /**
  * Bind a referenced variable to a named or question mark
  * placeholder in the prepared SQL statement.
  *
  * @param   mixed   The parameter identifier. For named
  *                  placeholder, this value must be a
  *                  string (:name). For a question mark
  *                  placeholder, the value must be the
  *                  1-indexed position of the parameter.
  * @param   mixed   Variable to bind to the parameter.
  * @param   int     Data type for the parameter, using
  *                  the predefined PDO constants:
  *                  http://php.net/manual/en/pdo.constants.php
  * @return  bool
  */
 protected final function bindParam($param, &$value, $dataType = PDO::PARAM_STR)
 {
     if ($this->database === NULL) {
         return $this->errorMessage("No database connection found.");
     }
     return $this->database->bindParam($param, $value, $dataType);
 }