fixed php strict warning

This commit is contained in:
Ulf Gebhardt 2016-11-14 17:04:18 +01:00
parent e7508727b6
commit 3d4c0828d2

View File

@ -11,10 +11,35 @@
*/
namespace SYSTEM\API;
interface api_default_interface {
/**
* API Group function - implement this function and return the Groupnumber
*
* @return int Returns your API-Group number
*/
static function get_apigroup();
/**
* API Default State function - implement this function and return the String of the default-state
*
* @return string Returns your API-Default-State
*/
static function get_default_state();
/**
* 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
*/
static function default_page($_escaped_fragment_ = null);
}
/**
* API Default class providing defaulting capabilities and Hashbang-Crawling-Scheme.
*/
abstract class api_default extends api_system {
abstract class api_default extends api_system implements api_default_interface {
/**
* Static Call handler for Hashbang-Crawling Requests
*
@ -73,13 +98,6 @@ abstract class api_default extends api_system {
die();
}
/**
* API Group function - implement this function and return the Groupnumber
*
* @return int Returns your API-Group number
*/
public abstract static function get_apigroup();
/**
* API Class function - implement this function and return the Classname
*
@ -87,19 +105,4 @@ abstract class api_default extends api_system {
*/
public static function get_class(){
return self::class;}
/**
* API Default State function - implement this function and return the String of the default-state
*
* @return string Returns your API-Default-State
*/
public abstract static function get_default_state();
/**
* 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);
}