var $EOF = false;
var $fields;
- function ArrayRecordSet($data) {
+ function __construct($data) {
$this->_array = $data;
$this->_count = count($this->_array);
$this->fields = reset($this->_array);
/**
*Constructor
*/
- function GUI () {}
+ function __construct() {}
/**
* Prints a combox box
var $form;
/* Constructor */
- function Misc() {
+ function __construct() {
}
/**
* derived class
*
*/
- function XHtmlSimpleElement($element = null) {
+ function __construct($element = null) {
$this->_element = $this->is_element();
var $_htmlcode = "";
var $_siblings = array();
- function XHtmlElement($text = null) {
- XHtmlSimpleElement::XHtmlSimpleElement();
+ function __construct($text = null) {
+ parent::__construct();
if ($text) $this->set_text($text);
}
}
class XHTML_Button extends XHtmlElement {
- function XHTML_Button ($name, $text = null) {
- parent::XHtmlElement();
+ function __construct($name, $text = null) {
+ parent::__construct();
$this->set_attribute("name", $name);
class XHTML_Option extends XHtmlElement {
- function XHTML_Option($text, $value = null) {
- XHtmlElement::XHtmlElement(null);
+ function __construct($text, $value = null) {
+ parent::__construct(null);
$this->set_text($text);
}
}
class XHTML_Select extends XHTMLElement {
var $_data;
- function XHTML_Select ($name, $multiple = false, $size = null) {
- XHtmlElement::XHtmlElement();
+ function __construct($name, $multiple = false, $size = null) {
+ parent::__construct();
$this->set_attribute("name", $name);
if ($multiple) $this->set_attribute("multiple","multiple");
* Base constructor
* @param &$conn The connection object
*/
- function ADODB_base(&$conn) {
+ function __construct(&$conn) {
$this->conn = $conn;
}
* Creates a new connection. Will actually make a database connection.
* @param $fetchMode Defaults to associative. Override for different behaviour
*/
- function Connection($host, $port, $sslmode, $user, $password, $database, $fetchMode = ADODB_FETCH_ASSOC) {
+ function __construct($host, $port, $sslmode, $user, $password, $database, $fetchMode = ADODB_FETCH_ASSOC) {
$this->conn = ADONewConnection('postgres7');
$this->conn->setFetchMode($fetchMode);
* Constructor
* @param $conn The database connection
*/
- function Postgres($conn) {
- $this->ADODB_base($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Formatting functions
* Constructor
* @param $conn The database connection
*/
- function Postgres10($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres11($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres74($conn) {
- $this->Postgres80($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres80($conn) {
- $this->Postgres81($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres81($conn) {
- $this->Postgres82($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres82($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres83($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres84($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres90($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres91($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres92($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres93($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres94($conn) {
- $this->Postgres($conn);
+ function __construct($conn) {
+ parent::__construct($conn);
}
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres95($conn) {
- $this->Postgres($conn);
- }
+ function __construct($conn) {
+ parent::__construct($conn);
+ }
// Help functions
* Constructor
* @param $conn The database connection
*/
- function Postgres96($conn) {
- $this->Postgres($conn);
- }
+ function __construct($conn) {
+ parent::__construct($conn);
+ }
// Help functions
var $createdir = true; // requires creation of temp dirs
- function ADODB_Cache_File()
+ function __construct()
{
global $ADODB_INCLUDED_CSV;
if (empty($ADODB_INCLUDED_CSV)) include_once(ADODB_DIR.'/adodb-csvlib.inc.php');
/**
* Constructor
*/
- function ADOConnection()
+ function __construct()
{
die('Virtual Class -- cannot instantiate');
}
{
$this->rs = $rs;
}
+
function rewind()
{
$this->rs->MoveFirst();
* @param queryID this is the queryID returned by ADOConnection->_query()
*
*/
- function ADORecordSet($queryID)
+ function __construct($queryID)
{
$this->_queryID = $queryID;
}
* Constructor
*
*/
- function ADORecordSet_array($fakeid=1)
+ function __construct($fakeid=1)
{
global $ADODB_FETCH_MODE,$ADODB_COMPAT_FETCH;
var $_blobArr;
var $databaseType = "postgres64";
var $canSeek = true;
- function ADORecordSet_postgres64($queryID,$mode=false)
+ function __construct($queryID,$mode=false)
{
if ($mode === false) {
global $ADODB_FETCH_MODE;
default: $this->fetchMode = PGSQL_BOTH; break;
}
$this->adodbFetchMode = $mode;
- $this->ADORecordSet($queryID);
+ parent::__construct($queryID);
}
function GetRowAssoc($upper=true)
var $databaseType = "postgres7";
- function ADORecordSet_postgres7($queryID,$mode=false)
+ function __construct($queryID,$mode=false)
{
- $this->ADORecordSet_postgres64($queryID,$mode);
+ parent::__construct($queryID,$mode);
}
// 10% speedup to move MoveNext to child class
return false;
}
}
-?>
\ No newline at end of file
+?>
class Decorator
{
- function Decorator($value) {
+ function __construct($value) {
$this->v = $value;
}
class FieldDecorator extends Decorator
{
- function FieldDecorator($fieldName, $default = null) {
+ function __construct($fieldName, $default = null) {
$this->f = $fieldName;
if ($default !== null) $this->d = $default;
}
class ArrayMergeDecorator extends Decorator
{
- function ArrayMergeDecorator($arrays) {
+ function __construct($arrays) {
$this->m = $arrays;
}
class ConcatDecorator extends Decorator
{
- function ConcatDecorator($values) {
+ function __construct($values) {
$this->c = $values;
}
class CallbackDecorator extends Decorator
{
- function CallbackDecorator($callback, $param = null) {
+ function __construct($callback, $param = null) {
$this->fn = $callback;
$this->p = $param;
}
class IfEmptyDecorator extends Decorator
{
- function IfEmptyDecorator($value, $empty, $full = null) {
+ function __construct($value, $empty, $full = null) {
$this->v = $value;
$this->e = $empty;
if ($full !== null) $this->f = $full;
class UrlDecorator extends Decorator
{
- function UrlDecorator($base, $queryVars = null) {
+ function __construct($base, $queryVars = null) {
$this->b = $base;
if ($queryVars !== null)
$this->q = $queryVars;
class replaceDecorator extends Decorator
{
- function replaceDecorator($str, $params) {
+ function __construct($str, $params) {
$this->s = $str;
$this->p = $params;
}