system/sql/DATA_DEFAULT.php

40 lines
1.2 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 Page Defaults e.g meta tags to the Database(includes Tags)
*/
class DATA_DEFAULT extends \SYSTEM\DB\QI {
/**
* Get Classname of the QQ
*
* @return string Returns classname
*/
public static function get_class(){return static::class;}
/**
* 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/default.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/default.sql'))->SERVERPATH());}
}