Back to ChangeItem class

Method __construct

public
__construct
(mixed $db, mixed $file, mixed $query)
Constructor: builds check query and message from $updateQuery
Parameters
  • \Joomla\Database\DatabaseDriver $db Database connector object
  • string $file Full path name of the sql file
  • string $query Text of the sql query (one line of the file)
Since
  • 2.5
Class: ChangeItem
Project: Joomla

Method __construct - Source code

/**
 * Constructor: builds check query and message from $updateQuery
 *
 * @param   DatabaseDriver  $db     Database connector object
 * @param   string          $file   Full path name of the sql file
 * @param   string          $query  Text of the sql query (one line of the file)
 *
 * @since   2.5
 */
public function __construct($db, $file, $query)
{
    $this->updateQuery = $query;
    $this->file = $file;
    $this->db = $db;
    $this->buildCheckQuery();
}