mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
PHP 5 방식의 생성자 (__construct) 사용
This commit is contained in:
parent
73178c94bb
commit
15d3ba7ca1
88 changed files with 113 additions and 113 deletions
|
|
@ -219,7 +219,7 @@ class DB
|
|||
* constructor
|
||||
* @return void
|
||||
*/
|
||||
function DB()
|
||||
function __construct()
|
||||
{
|
||||
$this->count_cache_path = _XE_PATH_ . $this->count_cache_path;
|
||||
$this->cache_file = _XE_PATH_ . $this->cache_file;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class DBCubrid extends DB
|
|||
* constructor
|
||||
* @return void
|
||||
*/
|
||||
function DBCubrid()
|
||||
function __construct()
|
||||
{
|
||||
$this->_setDBInfo();
|
||||
$this->_connect();
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class DBMssql extends DB
|
|||
* Constructor
|
||||
* @return void
|
||||
*/
|
||||
function DBMssql()
|
||||
function __construct()
|
||||
{
|
||||
$this->_setDBInfo();
|
||||
$this->_connect();
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class DBMysql extends DB
|
|||
* Constructor
|
||||
* @return void
|
||||
*/
|
||||
function DBMysql()
|
||||
function __construct()
|
||||
{
|
||||
$this->_setDBInfo();
|
||||
$this->_connect();
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class DBMysql_innodb extends DBMysql
|
|||
* Constructor
|
||||
* @return void
|
||||
*/
|
||||
function DBMysql_innodb()
|
||||
function __construct()
|
||||
{
|
||||
$this->_setDBInfo();
|
||||
$this->_connect();
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class DBMysqli extends DBMysql
|
|||
* Constructor
|
||||
* @return void
|
||||
*/
|
||||
function DBMysqli()
|
||||
function __construct()
|
||||
{
|
||||
$this->_setDBInfo();
|
||||
$this->_connect();
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class DBMysqli_innodb extends DBMysql
|
|||
* Constructor
|
||||
* @return void
|
||||
*/
|
||||
function DBMysqli_innodb()
|
||||
function __construct()
|
||||
{
|
||||
$this->_setDBInfo();
|
||||
$this->_connect();
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class Query extends Object
|
|||
* @param string $priority
|
||||
* @return void
|
||||
*/
|
||||
function Query($queryID = NULL
|
||||
function __construct($queryID = NULL
|
||||
, $action = NULL
|
||||
, $columns = NULL
|
||||
, $tables = NULL
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Subquery extends Query
|
|||
* @param string $join_type
|
||||
* @return void
|
||||
*/
|
||||
function Subquery($alias, $columns, $tables, $conditions, $groups, $orderby, $limit, $join_type = null)
|
||||
function __construct($alias, $columns, $tables, $conditions, $groups, $orderby, $limit, $join_type = null)
|
||||
{
|
||||
$this->alias = $alias;
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class Condition
|
|||
* @param string $pipe
|
||||
* @return void
|
||||
*/
|
||||
function Condition($column_name, $argument, $operation, $pipe)
|
||||
function __construct($column_name, $argument, $operation, $pipe)
|
||||
{
|
||||
$this->column_name = $column_name;
|
||||
$this->argument = $argument;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class ConditionGroup
|
|||
* @param string $pipe
|
||||
* @return void
|
||||
*/
|
||||
function ConditionGroup($conditions, $pipe = "")
|
||||
function __construct($conditions, $pipe = "")
|
||||
{
|
||||
$this->conditions = array();
|
||||
foreach($conditions as $condition)
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ class ConditionSubquery extends Condition
|
|||
* @param string $pipe
|
||||
* @return void
|
||||
*/
|
||||
function ConditionSubquery($column_name, $argument, $operation, $pipe = "")
|
||||
function __construct($column_name, $argument, $operation, $pipe = "")
|
||||
{
|
||||
parent::Condition($column_name, $argument, $operation, $pipe);
|
||||
parent::__construct($column_name, $argument, $operation, $pipe);
|
||||
$this->_value = $this->argument->toString();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@ class ConditionWithArgument extends Condition
|
|||
* @param string $pipe
|
||||
* @return void
|
||||
*/
|
||||
function ConditionWithArgument($column_name, $argument, $operation, $pipe = "")
|
||||
function __construct($column_name, $argument, $operation, $pipe = "")
|
||||
{
|
||||
if($argument === null)
|
||||
{
|
||||
$this->_show = false;
|
||||
return;
|
||||
}
|
||||
parent::Condition($column_name, $argument, $operation, $pipe);
|
||||
parent::__construct($column_name, $argument, $operation, $pipe);
|
||||
$this->_value = $argument->getValue();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ class ConditionWithoutArgument extends Condition
|
|||
* @param string $pipe
|
||||
* @return void
|
||||
*/
|
||||
function ConditionWithoutArgument($column_name, $argument, $operation, $pipe = "")
|
||||
function __construct($column_name, $argument, $operation, $pipe = "")
|
||||
{
|
||||
parent::Condition($column_name, $argument, $operation, $pipe);
|
||||
parent::__construct($column_name, $argument, $operation, $pipe);
|
||||
$tmpArray = array('in' => 1, 'notin' => 1, 'not_in' => 1);
|
||||
if(isset($tmpArray[$operation]))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ class ClickCountExpression extends SelectExpression
|
|||
* @param bool $click_count
|
||||
* @return void
|
||||
*/
|
||||
function ClickCountExpression($column_name, $alias = NULL, $click_count = false)
|
||||
function __construct($column_name, $alias = NULL, $click_count = false)
|
||||
{
|
||||
parent::SelectExpression($column_name, $alias);
|
||||
parent::__construct($column_name, $alias);
|
||||
|
||||
if(!is_bool($click_count))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@ class DeleteExpression extends Expression
|
|||
* @param mixed $value
|
||||
* @return void
|
||||
*/
|
||||
function DeleteExpression($column_name, $value)
|
||||
function __construct($column_name, $value)
|
||||
{
|
||||
parent::Expression($column_name);
|
||||
parent::__construct($column_name);
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class Expression
|
|||
* @param string $column_name
|
||||
* @return void
|
||||
*/
|
||||
function Expression($column_name)
|
||||
function __construct($column_name)
|
||||
{
|
||||
$this->column_name = $column_name;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ class InsertExpression extends Expression
|
|||
* @param object $argument
|
||||
* @return void
|
||||
*/
|
||||
function InsertExpression($column_name, $argument)
|
||||
function __construct($column_name, $argument)
|
||||
{
|
||||
parent::Expression($column_name);
|
||||
parent::__construct($column_name);
|
||||
$this->argument = $argument;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ class SelectExpression extends Expression
|
|||
* @param string $alias
|
||||
* @return void
|
||||
*/
|
||||
function SelectExpression($column_name, $alias = NULL)
|
||||
function __construct($column_name, $alias = NULL)
|
||||
{
|
||||
parent::Expression($column_name);
|
||||
parent::__construct($column_name);
|
||||
$this->column_alias = $alias;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ class StarExpression extends SelectExpression
|
|||
* constructor, set the column to asterisk
|
||||
* @return void
|
||||
*/
|
||||
function StarExpression()
|
||||
function __construct()
|
||||
{
|
||||
parent::SelectExpression("*");
|
||||
parent::__construct("*");
|
||||
}
|
||||
|
||||
function getArgument()
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ class UpdateExpression extends Expression
|
|||
* @param object $argument
|
||||
* @return void
|
||||
*/
|
||||
function UpdateExpression($column_name, $argument)
|
||||
function __construct($column_name, $argument)
|
||||
{
|
||||
parent::Expression($column_name);
|
||||
parent::__construct($column_name);
|
||||
$this->argument = $argument;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ class UpdateExpressionWithoutArgument extends UpdateExpression
|
|||
* @param object $argument
|
||||
* @return void
|
||||
*/
|
||||
function UpdateExpressionWithoutArgument($column_name, $argument)
|
||||
function __construct($column_name, $argument)
|
||||
{
|
||||
parent::Expression($column_name);
|
||||
parent::__construct($column_name);
|
||||
$this->argument = $argument;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class Limit
|
|||
* @param int $page_count
|
||||
* @return void
|
||||
*/
|
||||
function Limit($list_count, $page = NULL, $page_count = NULL)
|
||||
function __construct($list_count, $page = NULL, $page_count = NULL)
|
||||
{
|
||||
$this->list_count = $list_count;
|
||||
if($page)
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class OrderByColumn
|
|||
* @param string $sort_order
|
||||
* @return void
|
||||
*/
|
||||
function OrderByColumn($column_name, $sort_order)
|
||||
function __construct($column_name, $sort_order)
|
||||
{
|
||||
$this->column_name = $column_name;
|
||||
$this->sort_order = $sort_order;
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ class CubridTableWithHint extends Table
|
|||
* @param array $index_hints_list
|
||||
* @return void
|
||||
*/
|
||||
function CubridTableWithHint($name, $alias = NULL, $index_hints_list)
|
||||
function __construct($name, $alias = NULL, $index_hints_list)
|
||||
{
|
||||
parent::Table($name, $alias);
|
||||
parent::__construct($name, $alias);
|
||||
$this->index_hints_list = $index_hints_list;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class IndexHint
|
|||
* @param string $index_hint_type
|
||||
* @return void
|
||||
*/
|
||||
function IndexHint($index_name, $index_hint_type)
|
||||
function __construct($index_name, $index_hint_type)
|
||||
{
|
||||
$this->index_name = $index_name;
|
||||
$this->index_hint_type = $index_hint_type;
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ class JoinTable extends Table
|
|||
* @param array $conditions
|
||||
* @return void
|
||||
*/
|
||||
function JoinTable($name, $alias, $join_type, $conditions)
|
||||
function __construct($name, $alias, $join_type, $conditions)
|
||||
{
|
||||
parent::Table($name, $alias);
|
||||
parent::__construct($name, $alias);
|
||||
$this->join_type = $join_type;
|
||||
$this->conditions = $conditions;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ class MssqlTableWithHint extends Table
|
|||
* @param string $index_hints_list
|
||||
* @return void
|
||||
*/
|
||||
function MssqlTableWithHint($name, $alias = NULL, $index_hints_list)
|
||||
function __construct($name, $alias = NULL, $index_hints_list)
|
||||
{
|
||||
parent::Table($name, $alias);
|
||||
parent::__construct($name, $alias);
|
||||
$this->index_hints_list = $index_hints_list;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ class MysqlTableWithHint extends Table
|
|||
* @param string $index_hints_list
|
||||
* @return void
|
||||
*/
|
||||
function MysqlTableWithHint($name, $alias = NULL, $index_hints_list)
|
||||
function __construct($name, $alias = NULL, $index_hints_list)
|
||||
{
|
||||
parent::Table($name, $alias);
|
||||
parent::__construct($name, $alias);
|
||||
$this->index_hints_list = $index_hints_list;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class Table
|
|||
* @param string $alias
|
||||
* @return void
|
||||
*/
|
||||
function Table($name, $alias = NULL)
|
||||
function __construct($name, $alias = NULL)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->alias = $alias;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue