mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Merge #1363 PHP 5 방식의 생성자 (__construct) 사용 by kijin
* pr/1363: ExtraItem 클래스에도 PHP 5 방식의 생성자 (__construct) 사용 PHP 5 방식의 생성자 (__construct) 사용 Conflicts: classes/context/Context.class.php
This commit is contained in:
commit
a7ed4c56c8
88 changed files with 114 additions and 114 deletions
|
|
@ -79,7 +79,7 @@ class XmlJsFilter extends XmlParser
|
|||
* @return void
|
||||
*/
|
||||
|
||||
function XmlJsFilter($path, $xml_file)
|
||||
function __construct($path, $xml_file)
|
||||
{
|
||||
if(substr($path, -1) !== '/')
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class XmlLangParser extends XmlParser
|
|||
* @param string $lang_type
|
||||
* @return void
|
||||
*/
|
||||
function XmlLangParser($xml_file, $lang_type)
|
||||
function __construct($xml_file, $lang_type)
|
||||
{
|
||||
$this->lang_type = $lang_type;
|
||||
$this->xml_file = $xml_file;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class XmlQueryParser extends XmlParser
|
|||
* constructor
|
||||
* @return void
|
||||
*/
|
||||
function XmlQueryParser()
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class DBParser
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
function DBParser($escape_char_left, $escape_char_right = "", $table_prefix = "xe_")
|
||||
function __construct($escape_char_left, $escape_char_right = "", $table_prefix = "xe_")
|
||||
{
|
||||
$this->escape_char_left = $escape_char_left;
|
||||
if($escape_char_right !== "")
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class QueryParser
|
|||
* @param bool $isSubQuery
|
||||
* @return void
|
||||
*/
|
||||
function QueryParser($query = NULL, $isSubQuery = FALSE)
|
||||
function __construct($query = NULL, $isSubQuery = FALSE)
|
||||
{
|
||||
if($query)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class Argument
|
|||
* @return void
|
||||
*/
|
||||
|
||||
function Argument($name, $value)
|
||||
function __construct($name, $value)
|
||||
{
|
||||
$this->value = $value;
|
||||
$this->name = $name;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class ConditionArgument extends Argument
|
|||
* @param string $operation
|
||||
* @return void
|
||||
*/
|
||||
function ConditionArgument($name, $value, $operation)
|
||||
function __construct($name, $value, $operation)
|
||||
{
|
||||
$operationList = array('in' => 1, 'notin' => 1, 'not_in' => 1, 'between' => 1);
|
||||
if(isset($value) && isset($operationList[$operation]) && !is_array($value) && $value != '')
|
||||
|
|
@ -32,7 +32,7 @@ class ConditionArgument extends Argument
|
|||
$value = str_replace('\'', '', $value);
|
||||
$value = explode(',', $value);
|
||||
}
|
||||
parent::Argument($name, $value);
|
||||
parent::__construct($name, $value);
|
||||
$this->operation = $operation;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class DefaultValue
|
|||
* @param mixed $value value
|
||||
* @return void
|
||||
*/
|
||||
function DefaultValue($column_name, $value)
|
||||
function __construct($column_name, $value)
|
||||
{
|
||||
$dbParser = DB::getParser();
|
||||
$this->column_name = $dbParser->parseColumnName($column_name);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class QueryArgument
|
|||
* @param bool $ignore_value
|
||||
* @return void
|
||||
*/
|
||||
function QueryArgument($tag, $ignore_value = FALSE)
|
||||
function __construct($tag, $ignore_value = FALSE)
|
||||
{
|
||||
static $number_of_arguments = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class QueryArgumentValidator
|
|||
* @param QueryArgument $argument
|
||||
* @return void
|
||||
*/
|
||||
function QueryArgumentValidator($tag, $argument)
|
||||
function __construct($tag, $argument)
|
||||
{
|
||||
$this->argument = $argument;
|
||||
$this->argument_name = $this->argument->getArgumentName();
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class ColumnTag
|
|||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
function ColumnTag($name)
|
||||
function __construct($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ class InsertColumnTag extends ColumnTag
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
function InsertColumnTag($column)
|
||||
function __construct($column)
|
||||
{
|
||||
parent::ColumnTag($column->attrs->name);
|
||||
parent::__construct($column->attrs->name);
|
||||
$dbParser = DB::getParser();
|
||||
$this->name = $dbParser->parseColumnName($this->name);
|
||||
$this->argument = new QueryArgument($column);
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ class InsertColumnTagWithoutArgument extends ColumnTag
|
|||
* @param object $column
|
||||
* @return void
|
||||
*/
|
||||
function InsertColumnTagWithoutArgument($column)
|
||||
function __construct($column)
|
||||
{
|
||||
parent::ColumnTag($column->attrs->name);
|
||||
parent::__construct($column->attrs->name);
|
||||
$dbParser = DB::getParser();
|
||||
$this->name = $dbParser->parseColumnName($this->name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class InsertColumnsTag
|
|||
* @param array|string $xml_columns
|
||||
* @return void
|
||||
*/
|
||||
function InsertColumnsTag($xml_columns)
|
||||
function __construct($xml_columns)
|
||||
{
|
||||
$this->columns = array();
|
||||
|
||||
|
|
|
|||
|
|
@ -31,16 +31,16 @@ class SelectColumnTag extends ColumnTag
|
|||
* @param string|object $column
|
||||
* @return void
|
||||
*/
|
||||
function SelectColumnTag($column)
|
||||
function __construct($column)
|
||||
{
|
||||
if($column == "*" || $column->attrs->name == '*')
|
||||
{
|
||||
parent::ColumnTag(NULL);
|
||||
parent::__construct(NULL);
|
||||
$this->name = "*";
|
||||
}
|
||||
else
|
||||
{
|
||||
parent::ColumnTag($column->attrs->name);
|
||||
parent::__construct($column->attrs->name);
|
||||
$dbParser = DB::getParser();
|
||||
$this->name = $dbParser->parseExpression($this->name);
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class SelectColumnsTag
|
|||
* @internal param \Xml_Node_ $xml_columns
|
||||
* @return void
|
||||
*/
|
||||
function SelectColumnsTag($xml_columns_tag)
|
||||
function __construct($xml_columns_tag)
|
||||
{
|
||||
if(!$xml_columns_tag)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@ class UpdateColumnTag extends ColumnTag
|
|||
* @param object $column
|
||||
* @return void
|
||||
*/
|
||||
function UpdateColumnTag($column)
|
||||
function __construct($column)
|
||||
{
|
||||
parent::ColumnTag($column->attrs->name);
|
||||
parent::__construct($column->attrs->name);
|
||||
|
||||
$dbParser = DB::getParser();
|
||||
$this->name = $dbParser->parseColumnName($this->name);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class UpdateColumnsTag
|
|||
* @param array|object $xml_columns
|
||||
* @return void
|
||||
*/
|
||||
function UpdateColumnsTag($xml_columns)
|
||||
function __construct($xml_columns)
|
||||
{
|
||||
$this->columns = array();
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class ConditionGroupTag
|
|||
* @param string $pipe
|
||||
* @return void
|
||||
*/
|
||||
function ConditionGroupTag($conditions, $pipe = "")
|
||||
function __construct($conditions, $pipe = "")
|
||||
{
|
||||
$this->pipe = $pipe;
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class ConditionTag
|
|||
* @param object $condition
|
||||
* @return void
|
||||
*/
|
||||
function ConditionTag($condition)
|
||||
function __construct($condition)
|
||||
{
|
||||
$this->operation = $condition->attrs->operation;
|
||||
$this->pipe = $condition->attrs->pipe;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class ConditionsTag
|
|||
* @param object $xml_conditions
|
||||
* @return void
|
||||
*/
|
||||
function ConditionsTag($xml_conditions)
|
||||
function __construct($xml_conditions)
|
||||
{
|
||||
$this->condition_groups = array();
|
||||
if(!$xml_conditions)
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ class JoinConditionsTag extends ConditionsTag
|
|||
* @param object $xml_conditions
|
||||
* @return void
|
||||
*/
|
||||
function JoinConditionsTag($xml_conditions)
|
||||
function __construct($xml_conditions)
|
||||
{
|
||||
parent::ConditionsTag($xml_conditions);
|
||||
parent::__construct($xml_conditions);
|
||||
$this->condition_groups[0]->conditions[0]->setPipe("");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class GroupsTag
|
|||
* @param array|string $xml_groups
|
||||
* @return void
|
||||
*/
|
||||
function GroupsTag($xml_groups)
|
||||
function __construct($xml_groups)
|
||||
{
|
||||
$this->groups = array();
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class IndexTag
|
|||
* @param object $index
|
||||
* @return void
|
||||
*/
|
||||
function IndexTag($index)
|
||||
function __construct($index)
|
||||
{
|
||||
$this->argument_name = $index->attrs->var;
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class LimitTag
|
|||
* @param object $index
|
||||
* @return void
|
||||
*/
|
||||
function LimitTag($index)
|
||||
function __construct($index)
|
||||
{
|
||||
if($index->page && $index->page->attrs && $index->page_count && $index->page_count->attrs)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class NavigationTag
|
|||
* @param object $xml_navigation
|
||||
* @return void
|
||||
*/
|
||||
function NavigationTag($xml_navigation)
|
||||
function __construct($xml_navigation)
|
||||
{
|
||||
$this->order = array();
|
||||
if($xml_navigation)
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ class QueryTag
|
|||
* @param bool $isSubQuery
|
||||
* @return void
|
||||
*/
|
||||
function QueryTag($query, $isSubQuery = FALSE)
|
||||
function __construct($query, $isSubQuery = FALSE)
|
||||
{
|
||||
$this->action = $query->attrs->action;
|
||||
$this->query_id = $query->attrs->id;
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ class HintTableTag extends TableTag
|
|||
* @param array $index
|
||||
* @return void
|
||||
*/
|
||||
function HintTableTag($table, $index)
|
||||
function __construct($table, $index)
|
||||
{
|
||||
parent::TableTag($table);
|
||||
parent::__construct($table);
|
||||
$this->index = $index;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class TableTag
|
|||
* @param object $table XML <table> tag
|
||||
* @return void
|
||||
*/
|
||||
function TableTag($table)
|
||||
function __construct($table)
|
||||
{
|
||||
$dbParser = DB::getParser();
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class TablesTag
|
|||
* @param object $xml_index_hints_tag
|
||||
* @return void
|
||||
*/
|
||||
function TablesTag($xml_tables_tag, $xml_index_hints_tag = NULL)
|
||||
function __construct($xml_tables_tag, $xml_index_hints_tag = NULL)
|
||||
{
|
||||
$this->tables = array();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue