diff --git a/api/api_default.php b/api/api_default.php
index 43d28d7..9809e0a 100644
--- a/api/api_default.php
+++ b/api/api_default.php
@@ -98,6 +98,7 @@ abstract class api_default extends api_system {
/**
* API Default Page function - implement this function and return the Default Page
*
+ * @param string $_escaped_fragment_ Fragment from Hashbang Crawling
* @return string Returns your API-Default-State
*/
public abstract static function default_page($_escaped_fragment_ = null);
diff --git a/db/result/ResultAMQP.php b/db/result/ResultAMQP.php
index d0f8157..a74abd2 100644
--- a/db/result/ResultAMQP.php
+++ b/db/result/ResultAMQP.php
@@ -22,6 +22,8 @@ class ResultAMQP extends \SYSTEM\DB\Result{ // < maybe not ? check if amqpchanne
/**
* Construct the Resultset with a database ressource
+ *
+ * @param ressource $res Ressource of the Database Result-Set
*/
public function __construct($res){
$this->res = $res;}
diff --git a/db/result/ResultMysqli.php b/db/result/ResultMysqli.php
index 3af222f..258cd03 100644
--- a/db/result/ResultMysqli.php
+++ b/db/result/ResultMysqli.php
@@ -22,6 +22,8 @@ class ResultMysqli extends \SYSTEM\DB\Result{
/**
* Construct the Resultset with a database ressource
+ *
+ * @param ressource $res Ressource of the Database Result-Set
*/
public function __construct($res){
$this->res = $res;}
diff --git a/db/result/ResultMysqliPrepare.php b/db/result/ResultMysqliPrepare.php
index 6464751..86cdb07 100644
--- a/db/result/ResultMysqliPrepare.php
+++ b/db/result/ResultMysqliPrepare.php
@@ -26,6 +26,9 @@ class ResultMysqliPrepare extends \SYSTEM\DB\Result{
/**
* Construct the Resultset with a database ressource
+ *
+ * @param ressource $res Ressource of the Database Result-Set
+ * @param ressource $connection Connection on which the Result-Set was returned
*/
public function __construct($res,$connection){
$this->res = $res;
diff --git a/db/result/ResultPostgres.php b/db/result/ResultPostgres.php
index d7c8822..d91e7a6 100644
--- a/db/result/ResultPostgres.php
+++ b/db/result/ResultPostgres.php
@@ -24,6 +24,9 @@ class ResultPostgres extends \SYSTEM\DB\Result{
/**
* Construct the Resultset with a database ressource
+ *
+ * @param ressource $res Ressource of the Database Result-Set
+ * @param ressource $connection Connection on which the Result-Set was returned
*/
public function __construct($res,$connection){
$this->res = $res;
diff --git a/db/result/ResultSQLite.php b/db/result/ResultSQLite.php
index 5bde8bb..24c5b64 100644
--- a/db/result/ResultSQLite.php
+++ b/db/result/ResultSQLite.php
@@ -24,6 +24,9 @@ class ResultSQLite extends \SYSTEM\DB\Result{
/**
* Construct the Resultset with a database ressource
+ *
+ * @param ressource $res Ressource of the Database Result-Set
+ * @param string $stmt Query Statement which produced the result set
*/
public function __construct($res,$stmt){
$this->res = $res;
diff --git a/lib/system/lib_system.php b/lib/system/lib_system.php
index 1a0fa2f..d7804c3 100644
--- a/lib/system/lib_system.php
+++ b/lib/system/lib_system.php
@@ -1,12 +1,49 @@
';}
+ /**
+ * Generate
Menu for the Saimod
+ *
+ * @return string Returns Menu for the Saimod
+ */
public static function html_li_menu(){return '';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI) && \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI_API);}
+ /**
+ * Get all css System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods css
+ */
public static function css(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_api/css/saimod_sys_api.css'));}
+
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_api/js/saimod_sys_api.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_cache/saimod_sys_cache.php b/sai/modules/saimod_sys_cache/saimod_sys_cache.php
index 04363a2..a6576a9 100644
--- a/sai/modules/saimod_sys_cache/saimod_sys_cache.php
+++ b/sai/modules/saimod_sys_cache/saimod_sys_cache.php
@@ -10,7 +10,16 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
-class saimod_sys_cache extends \SYSTEM\SAI\SaiModule {
+
+/**
+ * saimod_sys_cache Class provided by System as saimod to manage the system_cache table
+ */
+class saimod_sys_cache extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_cache(){
$vars = array();
$vars['count'] = \SYSTEM\SQL\SYS_SAIMOD_CACHE_COUNT::Q1()['count'];
@@ -31,11 +40,32 @@ class saimod_sys_cache extends \SYSTEM\SAI\SaiModule {
return 'info';}
return 'success';}
+ /**
+ * Generate Menu for the Saimod
+ *
+ * @return string Returns Menu for the Saimod
+ */
public static function html_li_menu(){return '';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- //public static function css(){}
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_cache/js/saimod_sys_cache.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_config/saimod_sys_config.php b/sai/modules/saimod_sys_config/saimod_sys_config.php
index c3a05e8..64a51f6 100644
--- a/sai/modules/saimod_sys_config/saimod_sys_config.php
+++ b/sai/modules/saimod_sys_config/saimod_sys_config.php
@@ -10,7 +10,16 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
-class saimod_sys_config extends \SYSTEM\SAI\SaiModule {
+
+/**
+ * saimod_sys_config Class provided by System as saimod to display the config
+ */
+class saimod_sys_config extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_config(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_CONFIG);
$vars['basics'] = $vars['database'] = $vars['sai'] = '';
@@ -149,10 +158,33 @@ class saimod_sys_config extends \SYSTEM\SAI\SaiModule {
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_config/tpl/config_database.tpl'))->SERVERPATH(),$vars);
}
+
+ /**
+ * Generate Menu for the Saimod
+ *
+ * @return string Returns Menu for the Saimod
+ */
public static function html_li_menu(){return '';}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
+
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_config/js/saimod_sys_config.js'));}
- //public static function css(){}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_cron/saimod_sys_cron.php b/sai/modules/saimod_sys_cron/saimod_sys_cron.php
index 3dc65da..6a5ef3c 100644
--- a/sai/modules/saimod_sys_cron/saimod_sys_cron.php
+++ b/sai/modules/saimod_sys_cron/saimod_sys_cron.php
@@ -11,7 +11,15 @@
*/
namespace SYSTEM\SAI;
-class saimod_sys_cron extends \SYSTEM\SAI\SaiModule {
+/**
+ * saimod_sys_cron Class provided by System as saimod to manage the system_cron table
+ */
+class saimod_sys_cron extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_cron(){
$vars['content'] = '';
$vars['last_visit'] = \SYSTEM\time::time_ago_string(strtotime(\SYSTEM\CRON\cron::last_visit()));
@@ -50,13 +58,40 @@ class saimod_sys_cron extends \SYSTEM\SAI\SaiModule {
\SYSTEM\SQL\SYS_SAIMOD_CRON_DEL::QI(array($cls));
return \SYSTEM\LOG\JsonResult::ok();}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate Menu for the Saimod
+ *
+ * @return string Returns Menu for the Saimod
+ */
public static function html_li_menu(){return '';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI_CRON);}
+ /**
+ * Get all css System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods css
+ */
public static function css(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_cron/css/saimod_sys_cron.css'));}
+
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_cron/js/saimod_sys_cron.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_docu/saimod_sys_docu.php b/sai/modules/saimod_sys_docu/saimod_sys_docu.php
index 614544e..40dd19b 100644
--- a/sai/modules/saimod_sys_docu/saimod_sys_docu.php
+++ b/sai/modules/saimod_sys_docu/saimod_sys_docu.php
@@ -10,7 +10,16 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
-class saimod_sys_docu extends \SYSTEM\SAI\SaiModule {
+
+/**
+ * saimod_sys_docu Class provided by System as saimod to display the code documentation
+ */
+class saimod_sys_docu extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_docu(){
$phpdocconfigs = \SYSTEM\DOCU\docu::getAll();
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_DOCU);
@@ -46,12 +55,32 @@ class saimod_sys_docu extends \SYSTEM\SAI\SaiModule {
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_docu/tpl/saimod_sys_docu_iframe.tpl'))->SERVERPATH(), $vars);
}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate Menu for the Saimod
+ *
+ * @return string Returns Menu for the Saimod
+ */
public static function html_li_menu(){return '';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- //public static function css(){}
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_docu/js/saimod_sys_docu.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_files/saimod_sys_files.php b/sai/modules/saimod_sys_files/saimod_sys_files.php
index f015785..f82c89f 100644
--- a/sai/modules/saimod_sys_files/saimod_sys_files.php
+++ b/sai/modules/saimod_sys_files/saimod_sys_files.php
@@ -11,6 +11,9 @@
*/
namespace SYSTEM\SAI;
+/**
+ * saimod_sys_files Class provided by System as saimod to manage files (files feature)
+ */
class saimod_sys_files extends \SYSTEM\SAI\SaiModule {
public static function sai_mod__SYSTEM_SAI_saimod_sys_files_action_del($cat,$id){
if(!\SYSTEM\FILES\files::delete($cat, $id)){
@@ -32,6 +35,12 @@ class saimod_sys_files extends \SYSTEM\SAI\SaiModule {
return \SYSTEM\LOG\JsonResult::ok();
}
+
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_files(){
$vars['tabopts'] = '';
@@ -53,12 +62,32 @@ class saimod_sys_files extends \SYSTEM\SAI\SaiModule {
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_FILES));
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_files/tpl/saimod_sys_files_list.tpl'))->SERVERPATH(), $vars);}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate Menu for the Saimod
+ *
+ * @return string Returns Menu for the Saimod
+ */
public static function html_li_menu(){return '';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI) && \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI_FILES);}
- //public static function css(){}
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_files/js/saimod_sys_files.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_git/saimod_sys_git.php b/sai/modules/saimod_sys_git/saimod_sys_git.php
index a066a50..13d2d78 100644
--- a/sai/modules/saimod_sys_git/saimod_sys_git.php
+++ b/sai/modules/saimod_sys_git/saimod_sys_git.php
@@ -11,7 +11,15 @@
*/
namespace SYSTEM\SAI;
-class saimod_sys_git extends \SYSTEM\SAI\SaiModule {
+/**
+ * saimod_sys_git Class provided by System as saimod to display git information on the project and system
+ */
+class saimod_sys_git extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_git(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_GIT);
$vars = array_merge($vars,self::getGitInfo());
@@ -48,11 +56,24 @@ class saimod_sys_git extends \SYSTEM\SAI\SaiModule {
return 'success';
}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate Menu for the Saimod
+ *
+ * @return string Returns Menu for the Saimod
+ */
public static function html_li_menu(){return '';}
- public static function right_public(){return false;}
- public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- //public static function css(){}
- //public static function js(){}
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
+ public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_langswitcher/saimod_sys_langswitcher.php b/sai/modules/saimod_sys_langswitcher/saimod_sys_langswitcher.php
index 38ba3ef..8b690d8 100644
--- a/sai/modules/saimod_sys_langswitcher/saimod_sys_langswitcher.php
+++ b/sai/modules/saimod_sys_langswitcher/saimod_sys_langswitcher.php
@@ -11,7 +11,11 @@
*/
namespace SYSTEM\SAI;
-class saimod_sys_langswitcher extends \SYSTEM\SAI\SaiModule {
+/**
+ * saimod_sys_langswitcher Class provided by System as saimod to display langswitching functionality
+ * @todo Remove as saimod
+ */
+class saimod_sys_langswitcher extends \SYSTEM\SAI\SaiModule {
public static function html_li_menu(){
//return self::lang_menu('./sai.php');
diff --git a/sai/modules/saimod_sys_log/saimod_sys_log.php b/sai/modules/saimod_sys_log/saimod_sys_log.php
index e079c40..b322a7f 100644
--- a/sai/modules/saimod_sys_log/saimod_sys_log.php
+++ b/sai/modules/saimod_sys_log/saimod_sys_log.php
@@ -10,6 +10,10 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
+
+/**
+ * saimod_sys_log Class provided by System as saimod to manage the system_log table
+ */
class saimod_sys_log extends \SYSTEM\SAI\SaiModule {
public static function sai_mod__SYSTEM_SAI_saimod_sys_log_action_truncate(){
\SYSTEM\SQL\SYS_SAIMOD_LOG_TRUNCATE::QQ();
@@ -339,6 +343,11 @@ class saimod_sys_log extends \SYSTEM\SAI\SaiModule {
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_log/tpl/saimod_sys_log_filter.tpl'))->SERVERPATH(),$vars);
}
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_log(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_LOG);
$vars['PICPATH'] = (new \SYSTEM\PSAI('modules/saimod_sys_log/img/'))->WEBPATH(false);
@@ -361,12 +370,32 @@ class saimod_sys_log extends \SYSTEM\SAI\SaiModule {
}
}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- //public static function css(){}
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_log/js/saimod_sys_log.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_login/saimod_sys_login.php b/sai/modules/saimod_sys_login/saimod_sys_login.php
index 019ede5..5d13e4f 100644
--- a/sai/modules/saimod_sys_login/saimod_sys_login.php
+++ b/sai/modules/saimod_sys_login/saimod_sys_login.php
@@ -10,7 +10,16 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
+
+/**
+ * saimod_sys_login Class provided by System as saimod to provide login/register functionality
+ */
class saimod_sys_login extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_login(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_LOGIN);
$vars['login'] = 'Login';
@@ -42,11 +51,32 @@ class saimod_sys_login extends \SYSTEM\SAI\SaiModule {
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_LOGIN);
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/register.tpl'))->SERVERPATH(), $vars);}
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return true;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return true;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return true;}
- //public static function css(){}
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array( \LIB\lib_jqbootstrapvalidation::js(),
new \SYSTEM\PSAI('modules/saimod_sys_login/js/sai_sys_login_submit.js'),
diff --git a/sai/modules/saimod_sys_mod/saimod_sys_mod.php b/sai/modules/saimod_sys_mod/saimod_sys_mod.php
index 2ad35ca..b615c3f 100644
--- a/sai/modules/saimod_sys_mod/saimod_sys_mod.php
+++ b/sai/modules/saimod_sys_mod/saimod_sys_mod.php
@@ -10,6 +10,10 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
+
+/**
+ * saimod_sys_mod Class provided by System as saimod to display all registered saimods & libraries
+ */
class saimod_sys_mod extends \SYSTEM\SAI\SaiModule {
public static function sai_mod__SYSTEM_SAI_saimod_sys_mod_action_system(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_MOD);
@@ -64,16 +68,40 @@ class saimod_sys_mod extends \SYSTEM\SAI\SaiModule {
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_mod/tpl/lib_table.tpl'))->SERVERPATH(),$vars);
}
-
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_mod(){
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_mod/tpl/mods.tpl'))->SERVERPATH(),\SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_MOD));}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- //public static function css(){}
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_mod/js/saimod_sys_mod.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_page/saimod_sys_page.php b/sai/modules/saimod_sys_page/saimod_sys_page.php
index 78b4205..21f23bc 100644
--- a/sai/modules/saimod_sys_page/saimod_sys_page.php
+++ b/sai/modules/saimod_sys_page/saimod_sys_page.php
@@ -10,7 +10,16 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
-class saimod_sys_page extends \SYSTEM\SAI\SaiModule {
+
+/**
+ * saimod_sys_page Class provided by System as saimod to manage the system_page table
+ */
+class saimod_sys_page extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_page(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_PAGE);
$vars['tabopts'] = '';
@@ -76,13 +85,40 @@ class saimod_sys_page extends \SYSTEM\SAI\SaiModule {
}
}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI) && \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI_API);}
+ /**
+ * Get all css System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods css
+ */
public static function css(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_page/css/saimod_sys_page.css'));}
+
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_page/js/saimod_sys_page.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_security/saimod_sys_security.php b/sai/modules/saimod_sys_security/saimod_sys_security.php
index a00a51c..10b1b1f 100644
--- a/sai/modules/saimod_sys_security/saimod_sys_security.php
+++ b/sai/modules/saimod_sys_security/saimod_sys_security.php
@@ -11,6 +11,9 @@
*/
namespace SYSTEM\SAI;
+/**
+ * saimod_sys_security Class provided by System as saimod to manage the system_user, system_rights, system_user_to_rights table
+ */
class saimod_sys_security extends \SYSTEM\SAI\SaiModule {
public static function sai_mod__SYSTEM_SAI_saimod_sys_security_action_groups(){
@@ -162,6 +165,11 @@ class saimod_sys_security extends \SYSTEM\SAI\SaiModule {
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_security/tpl/saimod_sys_security_users.tpl'))->SERVERPATH(),$vars);
}
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_security(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_SECURITY);
$vars['PICPATH'] = (new \SYSTEM\PSAI('modules/saimod_sys_log/img/'))->WEBPATH(false);
@@ -191,12 +199,40 @@ class saimod_sys_security extends \SYSTEM\SAI\SaiModule {
return 'error';
}
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI) && \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI_SECURITY);}
+ /**
+ * Get all css System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods css
+ */
public static function css(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_security/css/saimod_sys_security.css'));}
+
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_security/js/saimod_sys_security.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_text/saimod_sys_text.php b/sai/modules/saimod_sys_text/saimod_sys_text.php
index 11b1958..450ad89 100644
--- a/sai/modules/saimod_sys_text/saimod_sys_text.php
+++ b/sai/modules/saimod_sys_text/saimod_sys_text.php
@@ -10,7 +10,16 @@
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
+
+/**
+ * saimod_sys_text Class provided by System as saimod to manage the system_text, system_text_tag table
+ */
class saimod_sys_text extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_text(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_TEXT);
$vars['tabopts'] = '';
@@ -126,13 +135,40 @@ class saimod_sys_text extends \SYSTEM\SAI\SaiModule {
public static function sai_mod__SYSTEM_SAI_saimod_sys_text_action_delete($id, $lang = null){
return \SYSTEM\PAGE\text::delete($id, $lang) ? \SYSTEM\LOG\JsonResult::ok() : \SYSTEM\LOG\JsonResult::fail();}
- //public static function html_li_menu(){return '';}
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI) && \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI_LOCALE);}
+ /**
+ * Get all css System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods css
+ */
public static function css(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_text/css/saimod_sys_text.css'));}
+
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_text/js/saimod_sys_text.js'));}
}
\ No newline at end of file
diff --git a/sai/modules/saimod_sys_todo/saimod_sys_todo.php b/sai/modules/saimod_sys_todo/saimod_sys_todo.php
index 1c7f758..053545a 100644
--- a/sai/modules/saimod_sys_todo/saimod_sys_todo.php
+++ b/sai/modules/saimod_sys_todo/saimod_sys_todo.php
@@ -11,6 +11,9 @@
*/
namespace SYSTEM\SAI;
+/**
+ * saimod_sys_todo Class provided by System as saimod to manage the system_todo, system_todo_assign table
+ */
class saimod_sys_todo extends \SYSTEM\SAI\SaiModule {
private static $stats = array(); //only strings!
@@ -48,6 +51,11 @@ class saimod_sys_todo extends \SYSTEM\SAI\SaiModule {
\SYSTEM\SQL\SYS_SAIMOD_TODO_PRIORITY::QI(array(-1,$todo));
return \SYSTEM\LOG\JsonResult::ok();}
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saimod_sys_todo(){
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_TODO);
$vars['PICPATH'] = (new \SYSTEM\PSAI('modules/saimod_sys_log/img/'))->WEBPATH(false);
@@ -236,11 +244,32 @@ class saimod_sys_todo extends \SYSTEM\SAI\SaiModule {
\SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_todo/tpl/saimod_sys_todo_todo_user.tpl'))->SERVERPATH(), $vars) :
\SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_todo/tpl/saimod_sys_todo_todo.tpl'))->SERVERPATH(), $vars);}
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return false;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return false;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- //public static function css(){}
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array(new \SYSTEM\PSAI('modules/saimod_sys_todo/js/saimod_sys_todo.js'));}
diff --git a/sai/modules/saistart_sys_sai/saistart_sys_sai.php b/sai/modules/saistart_sys_sai/saistart_sys_sai.php
index 079d255..ab60430 100644
--- a/sai/modules/saistart_sys_sai/saistart_sys_sai.php
+++ b/sai/modules/saistart_sys_sai/saistart_sys_sai.php
@@ -11,18 +11,54 @@
*/
namespace SYSTEM\SAI;
-class saistart_sys_sai extends \SYSTEM\SAI\SaiModule {
+/**
+ * saimod_sys_sai Class provided by System as start saimod to display an overview over the Project
+ */
+class saistart_sys_sai extends \SYSTEM\SAI\SaiModule {
+ /**
+ * Generate the HTML for the Saimods startpage
+ *
+ * @return string Returns HTML for the Saimods startpage
+ */
public static function sai_mod__SYSTEM_SAI_saistart_sys_sai(){
$vars = array_merge(array( 'content' => self::html_content()),
\SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_START));
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saistart_sys_sai/tpl/saistart.tpl'))->SERVERPATH(),$vars);}
- //public static function html_li_menu(){return '';}
+
+ /**
+ * Generate - Menu for the Saimod
+ *
+ * @return string Returns
- Menu for the Saimod
+ */
public static function html_li_menu(){return '
';}
- public static function right_public(){return true;}
+
+ /**
+ * Returns if the Saimod is public(access for everyone)
+ *
+ * @return boolean Returns if the Saimod is public(true) or not(false)
+ */
+ public static function right_public(){return true;}
+
+ /**
+ * Returns if the requesting user has the required rights to access the Saimod
+ *
+ * @return boolean Returns true if the user can access
+ */
public static function right_right(){return true;}
+ /**
+ * Get all css System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods css
+ */
public static function css(){
return array(new \SYSTEM\PSAI('modules/saistart_sys_sai/css/saistart_sys_sai.css'));}
+
+ /**
+ * Get all js System Paths required for this Saimod
+ *
+ * @return array Returns array of Pathobjects pointing to the saimods js
+ */
public static function js(){
return array( new \SYSTEM\PSAI('modules/saistart_sys_sai/js/saistart_sys_sai.js'),
new \SYSTEM\PSAI('js/crypto/jquery.md5.js'),
diff --git a/sai/page/default_page.php b/sai/page/default_page.php
index 7b2a079..c370a90 100644
--- a/sai/page/default_page.php
+++ b/sai/page/default_page.php
@@ -94,6 +94,7 @@ class default_page implements \SYSTEM\PAGE\DefaultPage {
/**
* Get Sai Default Page HTML
*
+ * @param string $_escaped_fragment_ Fragment from Hashbang Crawling - if this is present no js will be included
* @return string Returns html of the Sai Default Page
*/
public function html($_escaped_fragment_ = NULL){
diff --git a/sai/sai/SaiModule.php b/sai/sai/SaiModule.php
index b9ae74a..da5ab31 100644
--- a/sai/sai/SaiModule.php
+++ b/sai/sai/SaiModule.php
@@ -32,6 +32,7 @@ class SaiModule extends \SYSTEM\API\api_default{
/**
* Get the Classname of this class or derived registered saimod
*
+ * @param array $params Parameters with which the Saimodule was called
* @return string Returns name of the class this api operates on.
*/
public static function get_class($params = NULL){
diff --git a/sai/sai/saigui.php b/sai/sai/saigui.php
index fbea46a..4eb6e16 100644
--- a/sai/sai/saigui.php
+++ b/sai/sai/saigui.php
@@ -43,7 +43,7 @@ class saigui {
'lib/phpdocumentor/*',
'lib/scssphp/*',
'lib/tablesorter/*',
- 'lib/texttilate/*',
+ 'lib/textillate/*',
'lib/tinymce/*',
'lib/jstree/*',
'lib/phpdoc_md/*'),
diff --git a/sql/qt/DATA_SYSTEM_API.php b/sql/qt/DATA_SYSTEM_API.php
index e9ef472..cbbc8a1 100644
--- a/sql/qt/DATA_SYSTEM_API.php
+++ b/sql/qt/DATA_SYSTEM_API.php
@@ -21,11 +21,23 @@ class DATA_SYSTEM_API extends \SYSTEM\DB\QI {
* @return string Returns classname
*/
public static function get_class(){return \get_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('/qt/pgsql/data/system_api.sql'))->SERVERPATH(),
(new \SYSTEM\PSQL('/qt/pgsql/data/system_api_default.sql'))->SERVERPATH(),
(new \SYSTEM\PSQL('/qt/pgsql/data/system_sai_api.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('/qt/mysql/data/system_api.sql'))->SERVERPATH(),
(new \SYSTEM\PSQL('/qt/mysql/data/system_api_default.sql'))->SERVERPATH(),
diff --git a/sql/qt/DATA_SYSTEM_CRON.php b/sql/qt/DATA_SYSTEM_CRON.php
index 6cfcdc1..387d46c 100644
--- a/sql/qt/DATA_SYSTEM_CRON.php
+++ b/sql/qt/DATA_SYSTEM_CRON.php
@@ -21,10 +21,20 @@ class DATA_SYSTEM_CRON extends \SYSTEM\DB\QI {
* @return string Returns classname
*/
public static function get_class(){return \get_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('/qt/pgsql/data/system_cron.sql'))->SERVERPATH());
- }
+ return array( (new \SYSTEM\PSQL('/qt/pgsql/data/system_cron.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('/qt/mysql/data/system_cron.sql'))->SERVERPATH());
- }
+ return array( (new \SYSTEM\PSQL('/qt/mysql/data/system_cron.sql'))->SERVERPATH());}
}
\ No newline at end of file
diff --git a/sql/qt/DATA_SYSTEM_PAGE.php b/sql/qt/DATA_SYSTEM_PAGE.php
index 82b3c21..6da4509 100644
--- a/sql/qt/DATA_SYSTEM_PAGE.php
+++ b/sql/qt/DATA_SYSTEM_PAGE.php
@@ -21,10 +21,20 @@ class DATA_SYSTEM_PAGE extends \SYSTEM\DB\QI {
* @return string Returns classname
*/
public static function get_class(){return \get_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('/qt/pgsql/data/system_page.sql'))->SERVERPATH());
- }
+ return array( (new \SYSTEM\PSQL('/qt/pgsql/data/system_page.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('/qt/mysql/data/system_page.sql'))->SERVERPATH());
- }
+ return array( (new \SYSTEM\PSQL('/qt/mysql/data/system_page.sql'))->SERVERPATH());}
}
\ No newline at end of file
diff --git a/sql/qt/DATA_SYSTEM_RIGHTS.php b/sql/qt/DATA_SYSTEM_RIGHTS.php
index 384d92d..efe7dde 100644
--- a/sql/qt/DATA_SYSTEM_RIGHTS.php
+++ b/sql/qt/DATA_SYSTEM_RIGHTS.php
@@ -21,8 +21,20 @@ class DATA_SYSTEM_RIGHTS extends \SYSTEM\DB\QI {
* @return string Returns classname
*/
public static function get_class(){return \get_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('/qt/pgsql/data/system_rights.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('/qt/mysql/data/system_rights.sql'))->SERVERPATH());}
}
\ No newline at end of file
diff --git a/sql/qt/DATA_SYSTEM_TEXT.php b/sql/qt/DATA_SYSTEM_TEXT.php
index f2adf62..dd66000 100644
--- a/sql/qt/DATA_SYSTEM_TEXT.php
+++ b/sql/qt/DATA_SYSTEM_TEXT.php
@@ -21,8 +21,20 @@ class DATA_SYSTEM_TEXT extends \SYSTEM\DB\QI {
* @return string Returns classname
*/
public static function get_class(){return \get_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('/qt/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('/qt/mysql/data/system_text.sql'))->SERVERPATH());}
}
\ No newline at end of file
diff --git a/sql/qt/SCHEMA_SYSTEM.php b/sql/qt/SCHEMA_SYSTEM.php
index 425a517..f15762c 100644
--- a/sql/qt/SCHEMA_SYSTEM.php
+++ b/sql/qt/SCHEMA_SYSTEM.php
@@ -21,6 +21,12 @@ class SCHEMA_SYSTEM extends \SYSTEM\DB\QI {
* @return string Returns classname
*/
public static function get_class(){return \get_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('/qt/pgsql/schema/system_api.sql'))->SERVERPATH(),
(new \SYSTEM\PSQL('/qt/pgsql/schema/system_cache.sql'))->SERVERPATH(),
@@ -34,7 +40,13 @@ class SCHEMA_SYSTEM extends \SYSTEM\DB\QI {
(new \SYSTEM\PSQL('/qt/pgsql/schema/system_todo_assign.sql'))->SERVERPATH(),
(new \SYSTEM\PSQL('/qt/pgsql/schema/system_user.sql'))->SERVERPATH(),
(new \SYSTEM\PSQL('/qt/pgsql/schema/system_user_to_rights.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('/qt/mysql/schema/system_api.sql'))->SERVERPATH(),
(new \SYSTEM\PSQL('/qt/mysql/schema/system_cache.sql'))->SERVERPATH(),
diff --git a/system/HEADER.php b/system/HEADER.php
index 71809cb..0e4199a 100644
--- a/system/HEADER.php
+++ b/system/HEADER.php
@@ -112,6 +112,7 @@ class HEADER {
/**
* Send FILE(download) Headers, if Header was not sent yet
*
+ * @param string $filename Filename which should be transmitted with the Filetransfere
* @return null Returns null
*/
public static function FILE($filename){