App\SiteManager_Admin

Inherited from cmsAdmin_List

Protected Attributes

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_STRICT => 'E_STRICT', 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_STRICT', 'label' => 'Strict PHP'), 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($db_database, $db_host, $db_username, $db_password, $short_site_name)
protected arraycreateBlankSite()
Create a blank site
protected getTotalHostCountforWebsiteByID($host_id)
protected setAdditionalVariablesForEditItem($vars)
protected getCurrentErrorReportingInArray()
protected getErrorReportingAsString($opt)

Public Methods

public __construct()
public viewMainPage()
public execsql($sql, $newsqldb)
$line = str_replace('"/images','"'.$_SESSION['site_httpbase'].'/images',$line);
public booleancreateSiteSkeleton(type $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 $SystemDB
public arrayonAfterSaveItem(array $datavalues, array $original_datavalues, array $previous_item, array $retval)
Write config once item has been saved $SystemLog
public ajaxGetAllItems($start, $end, $sortby='', $sortdirection='ASC')
public getHostDataResponseSchema()
public getHostNames($id, $start, $end, $sortby, $sortdirection)
public booleanvalidateSettings()
Validate Settings
public saveSettings($site_name)
public deleteCache($dir)
public getUserGroupsArray()
public getFirstLevelSubdirectoryListing($directory)
public getUsersClassesInDirectory($dir)
public getUsersClassArray()
public Run()