App\SiteManager_Admin

Inherited from cmsAdmin_List

Protected Attributes

protected $restricted_view_files= ['edit.item.hosts.template.php', 'edit.item.site.template.php', 'edit.item.template.php']
protected $current_error_reporting 
protected $error_levels= array( E_ERROR => 'E_ERROR', E_WARNING => 'E_WARNING', E_PARSE => 'E_PARSE', E_NOTICE => 'E_NOTICE', E_CORE_ERROR => 'E_CORE_ERROR', E_CORE_WARNING => 'E_CORE_WARNING', E_COMPILE_ERROR => 'E_COMPILE_ERROR', E_COMPILE_WARNING => 'E_COMPILE_WARNING', E_USER_ERROR => 'E_USER_ERROR', E_USER_WARNING => 'E_USER_WARNING', E_USER_NOTICE => 'E_USER_NOTICE', E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', E_DEPRECATED => 'E_DEPRECATED', E_USER_DEPRECATED => 'E_USER_DEPRECATED' )
protected $error_choices= array ( array( 'value' => 'E_ERROR', 'label' => 'Error'), array( 'value' => 'E_WARNING', 'label' => 'Warning'), array( 'value' => 'E_PARSE', 'label' => 'Parse error'), array( 'value' => 'E_NOTICE', 'label' => 'Notice'), array( 'value' => 'E_CORE_ERROR', 'label' => 'Core error'), array( 'value' => 'E_CORE_WARNING', 'label' => 'Core warning'), array( 'value' => 'E_COMPILE_ERROR', 'label' => 'Compile error'), array( 'value' => 'E_COMPILE_WARNING', 'label' => 'Compiler warning'), array( 'value' => 'E_USER_ERROR', 'label' => 'User-defined error'), array( 'value' => 'E_USER_WARNING', 'label' => 'User-defined warning'), array( 'value' => 'E_USER_NOTICE', 'label' => 'User-defined notice'), array( 'value' => 'E_RECOVERABLE_ERROR', 'label' => 'Recoverable Error'), array( 'value' => 'E_DEPRECATED', 'label' => 'Deprecated'), array( 'value' => 'E_USER_DEPRECATED', 'label' => 'User-defined deprecation') )

Protected Methods

protected ajxg_forceRefresh()
protected ajxp_TestDatabase()
protected ajxp_UpdateHost()
protected ajxp_deleteHost()
protected runNewSiteSQLInstallScript($short_site_name, $db_database, $db_host, $db_username, $db_password, $db_port, $db_socket, $db_use_ssl, $db_ssl_ca)

Public Methods

public __construct()
public viewMainPage()
View the main admin page of this app
public execsql($sql, $newsqldb)
$line = str_replace('"/images','"'.$_SESSION['site_httpbase'].'/images',$line);
public booleancreateSiteSkeleton(string $sitename)
Create website skeleton
public parseSiteConfigFile($sitename)
public arrayonModifyDataBeforeSaveItem(array $datavalues)
Modify data before save item
public arrayonGetAdminValidationErrorListBeforeSaveItem(array $datavalues)
Validation
public intsiteNameExists(string $site_name, int $id)
Returns true if there's a site registered with the same but not with this id
public intsiteDatabaseHasAlreadyBeenUsed(string $db_host, string $db_database, int $id)
Returns true if there's a site registered with the same but not with this id
public intgetCurrentSiteID()
Return the current site ID @global \SCHLIX\cmsDatabase $SystemDB
public arrayonAfterSaveItem(array $datavalues, array $original_datavalues, array $previous_item, array $retval)
Write config once item has been saved @global \SCHLIX\cmsLogger $SystemLog