mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8566 201d5d3c-b55e-5fd7-737f-ddc643e51545
23 lines
No EOL
773 B
PHP
23 lines
No EOL
773 B
PHP
<?php
|
|
|
|
class Helper {
|
|
static function cleanString($query){
|
|
$query = trim(preg_replace('/\s+/', ' ',$query));
|
|
$query = preg_replace('/\t+/', '',$query);
|
|
$query = str_replace(" , ", ', ', $query);
|
|
$query = str_replace(" ,", ',', $query);
|
|
$query = str_replace("( ", '(', $query);
|
|
$query = str_replace(" )", ')', $query);
|
|
$query = str_replace(array("\r", "\r\n", "\n"), '*', $query);
|
|
$query = strtolower($query);
|
|
return $query;
|
|
}
|
|
|
|
static function getXmlObject($xml_file){
|
|
$xmlParser = XmlQueryParser::getInstance();
|
|
return $xmlParser->getXmlFileContent($xml_file);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|