mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 10:02:12 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8556 201d5d3c-b55e-5fd7-737f-ddc643e51545
20 lines
No EOL
537 B
PHP
20 lines
No EOL
537 B
PHP
<?php
|
|
|
|
class Helper {
|
|
static function cleanQuery($query){
|
|
$query = trim(preg_replace('/\s+/', ' ',$query));
|
|
$query = str_replace(" , ", ', ', $query);
|
|
$query = str_replace("( ", '(', $query);
|
|
$query = str_replace(" )", ')', $query);
|
|
$query = strtolower($query);
|
|
return $query;
|
|
}
|
|
|
|
static function getXmlObject($xml_file){
|
|
$xmlParser = XmlQueryParser::getInstance();
|
|
return $xmlParser->getXmlFileContent($xml_file);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|