44 lines
1.5 KiB
PHP
44 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* System - PHP Framework
|
|
*
|
|
* PHP Version 5.6
|
|
*
|
|
* @copyright 2016 Ulf Gebhardt (http://www.webcraft-media.de)
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT
|
|
* @link https://github.com/webcraftmedia/system
|
|
* @package SYSTEM\SQL
|
|
*/
|
|
namespace SYSTEM\SQL;
|
|
|
|
/**
|
|
* DATA_SYSTEM_TEXT Class provided by System to install the System texts to the Database(includes Tags)
|
|
*/
|
|
class DATA_SYSTEM_TEXT extends \SYSTEM\DB\QI {
|
|
/**
|
|
* Get Classname of the QQ
|
|
*
|
|
* @return string Returns classname
|
|
*/
|
|
public static function get_class(){return \get_class(self);}
|
|
|
|
/**
|
|
* Get paths of PostgreSQL compatible sql files
|
|
*
|
|
* @return array Returns paths of PostgreSQL compatible sql files
|
|
*/
|
|
public static function files_pgsql(){
|
|
return array( (new \SYSTEM\PSQL('/pgsql/data/system_text.sql'))->SERVERPATH());}
|
|
|
|
/**
|
|
* Get paths of MYSQL compatible sql files
|
|
*
|
|
* @return array Returns paths of MYSQL compatible sql files
|
|
*/
|
|
public static function files_mysql(){
|
|
return array( (new \SYSTEM\PSQL('/mysql/data/system_text_basic.sql'))->SERVERPATH(),
|
|
(new \SYSTEM\PSQL('/mysql/data/system_text_mail.sql'))->SERVERPATH(),
|
|
(new \SYSTEM\PSQL('/mysql/data/system_text_sai.sql'))->SERVERPATH(),
|
|
(new \SYSTEM\PSQL('/mysql/data/system_text_table.sql'))->SERVERPATH(),
|
|
(new \SYSTEM\PSQL('/mysql/data/system_text_time.sql'))->SERVERPATH());}
|
|
} |