SCHLIX\cmsAdmin_Basic

Implements interface_cmsAdmin
Inherits Admin_Admin, Core_Admin, Core_Captcha_Admin, Core_Help_Admin, Core_SCHLIXUpdater_Admin, Search_Admin, SimpleSitemap_Admin, cmsAdmin_List

Protected Attributes

protected $app_name 
protected $lastSaveResult 
protected $lastConfigSaveResult 

Public Attributes

public $data_type 
public $public_methods 
public $ajax_controller_name 

Public Methods

public __construct(string $data_type=null, array $public_methods=null)
Constructor
public intgetHookPriority()
Return the app's hook priority
public frontendApp()
Returns this frontend app
public createFriendlyMainApplicationAdminURL($action_query_string='')
public createFriendlySubApplicationAdminURL($sub_app='', $action_query_string='')
public createFriendlyAdminURL($action_query_string)
public stringgetDataModelURL()
Returns the URL of the data model
public typegetApplicationName()
Returns the application name (without the extra addon class e.g. users_history will return users without the 'history'
public stringgetAjaxControllerScript()
Get the ajax controller default script file name.
public stringgetApplicationDescription()
Returns the application description
public boolsetMyApplicationAlias(string $alias)
set the application alias
public setMyApplicationDescriptionAlias($description)
public recordLog(string $message)
Record Log $SystemLog
public CheckIfCurrentUserAllowedAccess()
public setPageTitle($title='')
public typegetURLofScript(type $script_path)
Returns the absolute path of the script relative to current class directory
public loadApplicationJavascript()
public arraygetMenuInfo()
Returns an array(app_name, data_type, public_method) for the Menus class so it knows the info about it
public stringajaxGetMenuInfo()
Returns a JSON encoded of array(app_name, data_type, public_method) for the menus
public editConfig(string $override_app_name='', string $override_template_file='')
Edit Config $SystemConfig
public arraygetSaveConfigValidationErrorList(array $datavalues)
Validates config before saved
public arraysaveConfig(string $override_app_name='')
/** Save Configuration. You can override the app name if required $SystemConfig $CurrentUser
public viewMainPage()
View the main admin page of this app
public typegetLastConfigSaveResult()
Display save error. $retval is the return array from saveItem operation
public typedisplayLastConfigSaveResult()
Display save error. $retval is the return array from saveItem operation
public typedisplayLastSaveResult()
Display save error. $retval is the return array from saveItem operation
public RunInstallScript(bool $sample_data=false)
Run installation script.
public RunUninstallScript($uninstall_db, $uninstall_everything)
public arrayRunAjax()
Run AJAX command. The alpha-numeric action parameter will be evaluated as the function name if it exists. The method name must start with either ajxg_ for get methods only or ajxp_ if it handles postback and get. The called method is responsible for sanitizing its own POST and GET variables, including ensuring that CSRF is checked prior to run
public Run()
public returnToMainAdminApplication()
public returnToMainAdmin()
public viewHelp()
public viewHelpAbout()