mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
NOISSUE PHP 5.4 이상 호환성 개선.
This commit is contained in:
parent
742af78932
commit
41ff8ace3b
32 changed files with 365 additions and 113 deletions
|
|
@ -335,7 +335,7 @@ class DB
|
|||
continue;
|
||||
}
|
||||
|
||||
$obj = NULL;
|
||||
$obj = new stdClass;
|
||||
$obj->db_type = $db_type;
|
||||
$obj->enable = $oDB->isSupported() ? TRUE : FALSE;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
class VirtualXMLDisplayHandler
|
||||
{
|
||||
|
||||
/**
|
||||
* Produce virtualXML compliant content given a module object.\n
|
||||
* @param ModuleObject $oModule the module object
|
||||
|
|
@ -16,6 +15,8 @@ class VirtualXMLDisplayHandler
|
|||
$redirect_url = $oModule->get('redirect_url');
|
||||
$request_uri = Context::get('xeRequestURI');
|
||||
$request_url = Context::get('xeVirtualRequestUrl');
|
||||
$output = new stdClass;
|
||||
|
||||
if(substr_compare($request_url, '/', -1) !== 0)
|
||||
{
|
||||
$request_url .= '/';
|
||||
|
|
@ -27,6 +28,7 @@ class VirtualXMLDisplayHandler
|
|||
{
|
||||
$output->message = $message;
|
||||
}
|
||||
|
||||
if($redirect_url)
|
||||
{
|
||||
$output->url = $redirect_url;
|
||||
|
|
@ -52,6 +54,7 @@ class VirtualXMLDisplayHandler
|
|||
{
|
||||
$html[] = 'alert("' . $output->message . '");';
|
||||
}
|
||||
|
||||
if($output->url)
|
||||
{
|
||||
$url = preg_replace('/#(.+)$/i', '', $output->url);
|
||||
|
|
|
|||
|
|
@ -371,6 +371,10 @@ class XmlQueryParser extends XmlParser
|
|||
*/
|
||||
function _setConditions($conditions)
|
||||
{
|
||||
$obj = new stdClass;
|
||||
$output = new stdClass;
|
||||
$output->conditions = array();
|
||||
|
||||
// 조건절 정리
|
||||
$condition = $conditions->condition;
|
||||
if($condition)
|
||||
|
|
@ -403,6 +407,8 @@ class XmlQueryParser extends XmlParser
|
|||
foreach($cond as $key => $val)
|
||||
{
|
||||
unset($cond_output);
|
||||
$cond_output = new stdClass;
|
||||
$cond_output->condition = array();
|
||||
|
||||
if($val->attrs->pipe)
|
||||
{
|
||||
|
|
@ -477,6 +483,9 @@ class XmlQueryParser extends XmlParser
|
|||
*/
|
||||
function _setNavigation($xml_obj)
|
||||
{
|
||||
$output = new stdClass;
|
||||
$output->order = array();
|
||||
|
||||
$navigation = $xml_obj->query->navigation;
|
||||
if($navigation)
|
||||
{
|
||||
|
|
@ -502,6 +511,7 @@ class XmlQueryParser extends XmlParser
|
|||
$page = $navigation->page->attrs;
|
||||
$output->page = $page;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue