mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 23:31:44 +09:00
Added unit tests for Table, TableTag and TablesTag classes.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8566 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d248d70773
commit
7112d518c8
7 changed files with 178 additions and 4 deletions
|
|
@ -1,14 +1,17 @@
|
|||
<?php
|
||||
|
||||
class Helper {
|
||||
static function cleanQuery($query){
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue