Skip to content

classes_essentials_model_pdolayer.class

Daniel Spors edited this page Dec 19, 2023 · 3 revisions

Classes in file essentials/model/pdolayer.class.php

class PdoLayer

Just the original slightly extended We need some more functionalities, so extending PDO and using this when connecting to DB in DataSource.

Extends: PDO

prepare

Overrides parent to perform preparations For historical reasons we had some weird argument placeholders in various SQL queries. This is central point to replace them. Additionally polls drivers PreprocessSql method before passing flow to parents method. See PDO::prepare

Definition: public function prepare(string $statement, $driver_options)

Returns: mixed PDOStatement (in our case ResultSet) or false

Parameters:

  • string $statement This must be a valid SQL statement for the target database server

  • array $driver_options This array holds one or more key=>value pairs to set attribute values for the PDOStatement object that this method returns

Clone this wiki locally