mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Import DB parser classes from previous private project
This commit is contained in:
parent
653fc532f5
commit
59f14d8a3f
6 changed files with 231 additions and 0 deletions
27
common/framework/parsers/dbqueryparser.php
Normal file
27
common/framework/parsers/dbqueryparser.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace Rhymix\Framework\Parsers;
|
||||
|
||||
use Rhymix\Framework\Storage;
|
||||
|
||||
/**
|
||||
* DB query parser class for XE compatibility.
|
||||
*/
|
||||
class DBQueryParser
|
||||
{
|
||||
/**
|
||||
* Load a query XML file.
|
||||
*
|
||||
* @param string $filename
|
||||
* @return object|false
|
||||
*/
|
||||
public static function loadXML($filename)
|
||||
{
|
||||
// Load the XML file.
|
||||
$xml = simplexml_load_file($filename);
|
||||
if ($xml === false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue