#3 docu sai + stuff i missed
This commit is contained in:
parent
b8ccb22f28
commit
3d32b6756e
@ -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);
|
||||
|
||||
@ -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;}
|
||||
|
||||
@ -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;}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -1,12 +1,49 @@
|
||||
<?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 LIB
|
||||
*/
|
||||
namespace LIB;
|
||||
|
||||
/**
|
||||
* lib_system Class provided by System to serve system.js and system.css library.
|
||||
*/
|
||||
class lib_system extends \LIB\lib_jscss{
|
||||
/**
|
||||
* Get Classname of the Library
|
||||
*
|
||||
* @return string Returns classname
|
||||
*/
|
||||
public static function get_class(){
|
||||
return self::class;}
|
||||
|
||||
/**
|
||||
* Returns a Systempath Object to the js ressource of the Library
|
||||
*
|
||||
* @return object Returns path object
|
||||
*/
|
||||
public static function js_path(){
|
||||
return new \SYSTEM\PLIB('/system/lib/system.js');}
|
||||
|
||||
/**
|
||||
* Returns a Systempath Object to the css ressource of the Library
|
||||
*
|
||||
* @return object Returns path object
|
||||
*/
|
||||
public static function css_path(){
|
||||
return new \SYSTEM\PLIB('/system/lib/system.css');}
|
||||
|
||||
/**
|
||||
* Returns version string of the library
|
||||
*
|
||||
* @return string Returns version string/html
|
||||
*/
|
||||
public static function version(){
|
||||
return 'pre alpha';}
|
||||
}
|
||||
}
|
||||
@ -10,7 +10,16 @@
|
||||
* @package SYSTEM\SAI
|
||||
*/
|
||||
namespace SYSTEM\SAI;
|
||||
class saimod_sys_api extends \SYSTEM\SAI\SaiModule {
|
||||
|
||||
/**
|
||||
* saimod_sys_api Class provided by System as saimod to manage the system_api table
|
||||
*/
|
||||
class saimod_sys_api 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_api(){
|
||||
$vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_API);
|
||||
$vars['tabopts'] = '';
|
||||
@ -81,13 +90,40 @@ class saimod_sys_api extends \SYSTEM\SAI\SaiModule {
|
||||
}
|
||||
}
|
||||
|
||||
//public static function html_li_menu(){return '<li><a id="menu_api" href="#!api">${sai_menu_api}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_api" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_api}" href="#!api"><span class="glyphicon glyphicon-console" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_cache" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_cache}" href="#!cache"><span class="glyphicon glyphicon-level-up" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_config" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_config}" href="#!config"><span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span></a></li>';}
|
||||
|
||||
/**
|
||||
* 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(){}
|
||||
}
|
||||
@ -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 '<li><a id="menu_cron" href="#!cron">${sai_menu_cron}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_cron" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_cron}" href="#!cron"><span class="glyphicon glyphicon-time" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 '<li><a id="menu_docu" href="#!docu"><span class="glyphicon glyphicon-book" aria-hidden="true"></span> ${sai_menu_docu}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_docu" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_docu}" href="#!docu"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 '<li><a id="menu_files" href="#!files">${sai_menu_files}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_files" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_files}" href="#!files"><span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 '<li><a id="menu_git" href="#!git"><span class="glyphicon glyphicon-saved" aria-hidden="true"></span>${sai_menu_git}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '</ul><ul class="nav navbar-nav navbar-right sai_divider_left"><li><a id="menu_git" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_git}" href="#!git"><span class="glyphicon glyphicon-saved" aria-hidden="true"></span></a></li>';}
|
||||
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);}
|
||||
}
|
||||
@ -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');
|
||||
|
||||
|
||||
@ -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 '<li><a id="menu_log" href="#!log">${sai_menu_log}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_log" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_log}" href="#!log"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li class="sai_divider_left"><a id="menu_login" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_login}" href="#!login">'.(\SYSTEM\SECURITY\security::isLoggedIn() ? '<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>' : '<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>').'</a></li>';}
|
||||
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'),
|
||||
|
||||
@ -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 '<li><a id="menu_mod" href="#!mod">${sai_menu_mod}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_mod" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_mod}" href="#!mod"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 '<li><a id="menu_page" href="#!page">${sai_menu_page}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_page" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_page}" href="#!page"><span class="glyphicon glyphicon-blackboard" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_security" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_security}" href="#!security"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 '<li><a id="menu_text" href="#!text">${sai_menu_text}</a></li>';}
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_text" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_text}" href="#!text"><span class="glyphicon glyphicon-text-size" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
}
|
||||
@ -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 <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li><a id="menu_todo" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_todo}" href="#!todo"><span class="glyphicon glyphicon-list" aria-hidden="true"></span></a></li>';}
|
||||
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'));}
|
||||
|
||||
|
||||
@ -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 '<li class="active"><a id="menu_start" href="#">${sai_menu_start}</a></li>';}
|
||||
|
||||
/**
|
||||
* Generate <li> Menu for the Saimod
|
||||
*
|
||||
* @return string Returns <li> Menu for the Saimod
|
||||
*/
|
||||
public static function html_li_menu(){return '<li class="active sai_menu_first"><a id="menu_start" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_start}" href="#"><span class="glyphicon glyphicon-home" aria-hidden="true"></span></a></li>';}
|
||||
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'),
|
||||
|
||||
@ -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){
|
||||
|
||||
@ -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){
|
||||
|
||||
@ -43,7 +43,7 @@ class saigui {
|
||||
'lib/phpdocumentor/*',
|
||||
'lib/scssphp/*',
|
||||
'lib/tablesorter/*',
|
||||
'lib/texttilate/*',
|
||||
'lib/textillate/*',
|
||||
'lib/tinymce/*',
|
||||
'lib/jstree/*',
|
||||
'lib/phpdoc_md/*'),
|
||||
|
||||
@ -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(),
|
||||
|
||||
@ -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());}
|
||||
}
|
||||
@ -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());}
|
||||
}
|
||||
@ -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());}
|
||||
}
|
||||
@ -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());}
|
||||
}
|
||||
@ -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(),
|
||||
|
||||
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user