Renamed methods with the same name as their class
This commit is contained in:
parent
ed83f1d02d
commit
4d1118097c
|
@ -71,7 +71,7 @@ class Board {
|
|||
* @param boolean $extra grab additional data for page generation purposes. Only false if all that's needed is the board info.
|
||||
* @return class
|
||||
*/
|
||||
function Board($board, $extra = true) {
|
||||
function __construct($board, $extra = true) {
|
||||
global $tc_db, $CURRENTLOCALE;
|
||||
|
||||
// If the instance was created with the board argument present, get all of the board info and configuration values and save it inside of the class
|
||||
|
@ -880,14 +880,14 @@ class Post extends Board {
|
|||
// Declare the public variables
|
||||
var $post = Array();
|
||||
|
||||
function Post($postid, $board, $boardid, $is_inserting = false) {
|
||||
function __construct($postid, $board, $boardid, $is_inserting = false) {
|
||||
global $tc_db;
|
||||
|
||||
$results = $tc_db->GetAll("SELECT * FROM `".KU_DBPREFIX."posts` WHERE `boardid` = '" . $boardid . "' AND `id` = ".$tc_db->qstr($postid)." LIMIT 1");
|
||||
if (count($results)==0&&!$is_inserting) {
|
||||
exitWithErrorPage('Invalid post ID.');
|
||||
} elseif ($is_inserting) {
|
||||
$this->Board($board, false);
|
||||
parent::__construct($board, false);
|
||||
} else {
|
||||
foreach ($results[0] as $key=>$line) {
|
||||
if (!is_numeric($key)) $this->post[$key] = $line;
|
||||
|
|
|
@ -31,7 +31,7 @@ class Svg {
|
|||
var $output_extension = '';
|
||||
|
||||
|
||||
function Svg($svg){
|
||||
function __construct($svg){
|
||||
$xml = new SimpleXMLElement($svg,1,1);
|
||||
$this->width = (string) $xml['width'];
|
||||
$this->height = (string) $xml['height'];
|
||||
|
|
|
@ -215,7 +215,7 @@ class ADOConnection
|
|||
var $query_list_errors = array();
|
||||
var $_logsql = false;
|
||||
|
||||
function ADOConnection()
|
||||
function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class mysql_driver_ADOConnection extends ADOConnection
|
|||
var $sysDate = 'CURDATE()';
|
||||
var $sysTimeStamp = 'NOW()';
|
||||
|
||||
function mysql_driver_ADOConnection()
|
||||
function __construct()
|
||||
{
|
||||
$this->dbtype = 'mysql';
|
||||
$this->dataProvider = 'mysql';
|
||||
|
@ -423,7 +423,7 @@ class mysql_driver_ResultSet
|
|||
* @param string $resultId
|
||||
*/
|
||||
|
||||
function mysql_driver_ResultSet( $resultId, $connectionId )
|
||||
function __construct( $resultId, $connectionId )
|
||||
{
|
||||
$this->fields = array();
|
||||
$this->connectionId = $connectionId;
|
||||
|
|
|
@ -14,7 +14,7 @@ class mysqli_driver_ADOConnection extends ADOConnection
|
|||
var $sysDate = 'CURDATE()';
|
||||
var $sysTimeStamp = 'NOW()';
|
||||
|
||||
function mysqli_driver_ADOConnection()
|
||||
function __construct()
|
||||
{
|
||||
$this->dbtype = 'mysqli';
|
||||
$this->dataProvider = 'mysql';
|
||||
|
@ -413,7 +413,7 @@ class mysqli_driver_ResultSet
|
|||
* @param string $resultId
|
||||
*/
|
||||
|
||||
function mysqli_driver_ResultSet( $resultId, $connectionId )
|
||||
function __construct( $resultId, $connectionId )
|
||||
{
|
||||
$this->fields = array();
|
||||
$this->connectionId = $connectionId;
|
||||
|
|
|
@ -14,7 +14,7 @@ class postgres64_driver_ADOConnection extends ADOConnection
|
|||
var $sysDate = "CURRENT_DATE";
|
||||
var $sysTimeStamp = "CURRENT_TIMESTAMP";
|
||||
|
||||
function postgres64_driver_ADOConnection()
|
||||
function __construct()
|
||||
{
|
||||
$this->dbtype = 'postgres64';
|
||||
$this->dataProvider = 'postgres';
|
||||
|
@ -429,7 +429,7 @@ class postgres64_driver_ResultSet
|
|||
* @param string $resultId
|
||||
*/
|
||||
|
||||
function postgres64_driver_ResultSet( $resultId, $connectionId )
|
||||
function __construct( $resultId, $connectionId )
|
||||
{
|
||||
$this->fields = array();
|
||||
$this->connectionId = $connectionId;
|
||||
|
|
|
@ -15,7 +15,7 @@ class postgres7_driver_ADOConnection extends ADOConnection
|
|||
var $sysTimeStamp = "CURRENT_TIMESTAMP";
|
||||
var $pg_escape_enable = false;
|
||||
|
||||
function postgres7_driver_ADOConnection()
|
||||
function __construct()
|
||||
{
|
||||
$this->dbtype = 'postgres7';
|
||||
$this->dataProvider = 'postgres';
|
||||
|
@ -434,7 +434,7 @@ class postgres7_driver_ResultSet
|
|||
* @param string $resultId
|
||||
*/
|
||||
|
||||
function postgres7_driver_ResultSet( $resultId, $connectionId )
|
||||
function __construct( $resultId, $connectionId )
|
||||
{
|
||||
$this->fields = array();
|
||||
$this->connectionId = $connectionId;
|
||||
|
|
|
@ -14,7 +14,7 @@ class postgres8_driver_ADOConnection extends ADOConnection
|
|||
var $sysDate = "CURRENT_DATE";
|
||||
var $sysTimeStamp = "CURRENT_TIMESTAMP";
|
||||
|
||||
function postgres8_driver_ADOConnection()
|
||||
function __construct()
|
||||
{
|
||||
$this->dbtype = 'postgres8';
|
||||
$this->dataProvider = 'postgres';
|
||||
|
@ -433,7 +433,7 @@ class postgres8_driver_ResultSet
|
|||
* @param string $resultId
|
||||
*/
|
||||
|
||||
function postgres8_driver_ResultSet( $resultId, $connectionId )
|
||||
function __construct( $resultId, $connectionId )
|
||||
{
|
||||
$this->fields = array();
|
||||
$this->connectionId = $connectionId;
|
||||
|
|
|
@ -13,7 +13,7 @@ class sqlite_driver_ADOConnection extends ADOConnection
|
|||
var $sysDate = "date('Y-m-d')";
|
||||
var $sysTimeStamp = "date('Y-m-d H:i:s')";
|
||||
|
||||
function sqlite_driver_ADOConnection()
|
||||
function __construct()
|
||||
{
|
||||
$this->dbtype = 'sqlite';
|
||||
$this->dataProvider = 'sqlite';
|
||||
|
@ -385,7 +385,7 @@ class sqlite_driver_ResultSet
|
|||
* @param string $resultId
|
||||
*/
|
||||
|
||||
function sqlite_driver_ResultSet( $resultId, $connectionId )
|
||||
function __construct( $resultId, $connectionId )
|
||||
{
|
||||
$this->fields = array();
|
||||
$this->connectionId = $connectionId;
|
||||
|
|
Loading…
Reference in New Issue