class Min_Result {
var $num_rows, $_rows;
- function Min_Result($rows) {
+ function __construct($rows) {
$this->num_rows = count($this->_rows);
$this->_rows = $rows;
reset($this->_rows);
class Min_Result {
var $num_rows, $_result, $_offset = 0;
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
// $this->num_rows = ibase_num_rows($result);
}
class Min_Result {
var $num_rows, $_rows = array(), $_offset = 0, $_charset = array();
- function Min_Result($result) {
+ function __construct($result) {
foreach ($result as $item) {
$row = array();
foreach ($item as $key => $val) {
class Min_Result {
var $_result, $_offset = 0, $_fields, $num_rows;
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
// $this->num_rows = sqlsrv_num_rows($result); // available only in scrollable results
}
class Min_Result {
var $_result, $_offset = 0, $_fields, $num_rows;
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
$this->num_rows = mssql_num_rows($result);
}
class Min_DB extends MySQLi {
var $extension = "MySQLi";
- function Min_DB() {
+ function __construct() {
parent::init();
}
/** Constructor
* @param resource
*/
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
$this->num_rows = mysql_num_rows($result);
}
class Min_Result {
var $_result, $_offset = 1, $num_rows;
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
}
class Min_Result {
var $_result, $_offset = 0, $num_rows;
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
$this->num_rows = pg_num_rows($result);
}
class Min_Result {
var $num_rows, $_rows = array(), $_offset = 0;
- function Min_Result($result) {
+ function __construct($result) {
foreach ($result as $item) {
$row = array();
if ($item->Name != '') { // SELECT COUNT(*)
class Min_SQLite {
var $extension = "SQLite3", $server_info, $affected_rows, $errno, $error, $_link;
- function Min_SQLite($filename) {
+ function __construct($filename) {
$this->_link = new SQLite3($filename);
$version = $this->_link->version();
$this->server_info = $version["versionString"];
class Min_Result {
var $_result, $_offset = 0, $num_rows;
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
}
class Min_SQLite {
var $extension = "SQLite", $server_info, $affected_rows, $error, $_link;
- function Min_SQLite($filename) {
+ function __construct($filename) {
$this->server_info = sqlite_libversion();
$this->_link = new SQLiteDatabase($filename);
}
class Min_Result {
var $_result, $_offset = 0, $num_rows;
- function Min_Result($result) {
+ function __construct($result) {
$this->_result = $result;
if (method_exists($result, 'numRows')) { // not available in unbuffered query
$this->num_rows = $result->numRows();
class Min_SQLite extends Min_PDO {
var $extension = "PDO_SQLite";
- function Min_SQLite($filename) {
+ function __construct($filename) {
$this->dsn(DRIVER . ":$filename", "", "");
}
}
if (class_exists("Min_SQLite")) {
class Min_DB extends Min_SQLite {
- function Min_DB() {
- $this->Min_SQLite(":memory:");
+ function __construct() {
+ parent::__construct(":memory:");
}
function select_db($filename) {
if (is_readable($filename) && $this->query("ATTACH " . $this->quote(preg_match("~(^[/\\\\]|:)~", $filename) ? $filename : dirname($_SERVER["SCRIPT_FILENAME"]) . "/$filename") . " AS a")) { // is_readable - SQLite 3
- $this->Min_SQLite($filename);
+ parent::__construct($filename);
return true;
}
return false;
function drop_databases($databases) {
global $connection;
- $connection->Min_SQLite(":memory:"); // to unlock file, doesn't work in PDO on Windows
+ $connection->__construct(":memory:"); // to unlock file, doesn't work in PDO on Windows
foreach ($databases as $db) {
if (!@unlink($db)) {
$connection->error = lang('File exists.');
if (!check_sqlite_name($name)) {
return false;
}
- $connection->Min_SQLite(":memory:");
+ $connection->__construct(":memory:");
$connection->error = lang('File exists.');
return @rename(DB, $name);
}
/** Create object for performing database operations
* @param Min_DB
*/
- function Min_SQL($connection) {
+ function __construct($connection) {
$this->_conn = $connection;
}
var $handler;
var $size;
- function TmpFile() {
+ function __construct() {
$this->handler = tmpfile();
}
/**
* @param array case insensitive database names in values
*/
- function AdminerDatabaseHide($disabled) {
+ function __construct($disabled) {
$this->disabled = array_map('strtolower', $disabled);
}
* @param string text to append before first calendar usage
* @param string path to language file, %s stands for language code
*/
- function AdminerEditCalendar($prepend = "<script type='text/javascript' src='jquery-ui/jquery.js'></script>\n<script type='text/javascript' src='jquery-ui/jquery-ui.js'></script>\n<script type='text/javascript' src='jquery-ui/jquery-ui-timepicker-addon.js'></script>\n<link rel='stylesheet' type='text/css' href='jquery-ui/jquery-ui.css'>\n", $langPath = "jquery-ui/i18n/jquery.ui.datepicker-%s.js") {
+ function __construct($prepend = "<script type='text/javascript' src='jquery-ui/jquery.js'></script>\n<script type='text/javascript' src='jquery-ui/jquery-ui.js'></script>\n<script type='text/javascript' src='jquery-ui/jquery-ui-timepicker-addon.js'></script>\n<link rel='stylesheet' type='text/css' href='jquery-ui/jquery-ui.css'>\n", $langPath = "jquery-ui/i18n/jquery.ui.datepicker-%s.js") {
$this->prepend = $prepend;
$this->langPath = $langPath;
}
class AdminerEditForeign {
var $_limit;
- function AdminerEditForeign($limit = 0) {
+ function __construct($limit = 0) {
$this->_limit = $limit;
}
* @param string quoted column name
* @param string quoted column name
*/
- function AdminerEmailTable($table = "email", $id = "id", $title = "subject", $subject = "subject", $message = "message") {
+ function __construct($table = "email", $id = "id", $title = "subject", $subject = "subject", $message = "message") {
$this->table = $table;
$this->id = $id;
$this->title = $title;
* @param string prefix for displaying data, null stands for $uploadPath
* @param string regular expression with allowed file extensions
*/
- function AdminerFileUpload($uploadPath = "../static/data/", $displayPath = null, $extensions = "[a-zA-Z0-9]+") {
+ function __construct($uploadPath = "../static/data/", $displayPath = null, $extensions = "[a-zA-Z0-9]+") {
$this->uploadPath = $uploadPath;
$this->displayPath = ($displayPath !== null ? $displayPath : $uploadPath);
$this->extensions = $extensions;
/**
* @param bool allow running from the same origin only
*/
- function AdminerFrames($sameOrigin = false) {
+ function __construct($sameOrigin = false) {
$this->sameOrigin = $sameOrigin;
}
* @param array array($domain) or array($domain => $description) or array($category => array())
* @param string
*/
- function AdminerLoginServers($servers, $driver = "server") {
+ function __construct($servers, $driver = "server") {
$this->servers = $servers;
$this->driver = $driver;
}
/** Set database of login table
* @param string
*/
- function AdminerLoginTable($database) {
+ function __construct($database) {
$this->database = $database;
}
/**
* @param array ($slave => $master)
*/
- function AdminerMasterSlave($masters) {
+ function __construct($masters) {
$this->masters = $masters;
}
/** Register plugins
* @param array object instances or null to register all classes starting by 'Adminer'
*/
- function AdminerPlugin($plugins) {
+ function __construct($plugins) {
if ($plugins === null) {
$plugins = array();
foreach (get_declared_classes() as $class) {
* @param string find these characters ...
* @param string ... and replace them by these
*/
- function AdminerSlugify($from = 'áčďéěíňóřšťúůýž', $to = 'acdeeinorstuuyz') {
+ function __construct($from = 'áčďéěíňóřšťúůýž', $to = 'acdeeinorstuuyz') {
$this->from = $from;
$this->to = $to;
}
/**
* @param string defaults to "$database.sql"
*/
- function AdminerSqlLog($filename = "") {
+ function __construct($filename = "") {
$this->filename = $filename;
}
/**
* @param string
*/
- function AdminerTinymce($path = "tiny_mce/tiny_mce.js") {
+ function __construct($path = "tiny_mce/tiny_mce.js") {
$this->path = $path;
}
* @param array
* @param string in format "skin: 'custom', preInit: function () { }"
*/
- function AdminerWymeditor($scripts = array("jquery/jquery.js", "wymeditor/jquery.wymeditor.min.js"), $options = "") {
+ function __construct($scripts = array("jquery/jquery.js", "wymeditor/jquery.wymeditor.min.js"), $options = "") {
$this->scripts = $scripts;
$this->options = $options;
}