CaMykS  1.0-20231201
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
Tool_Installer Class Reference
Inheritance diagram for Tool_Installer:
Module Plugin

Public Member Functions

 __construct ($path_type)
 
 init_admin ()
 
- Public Member Functions inherited from Module
 __construct ($name, $path_type)
 
 Module ($name, $path_type)
 
 get_help ()
 
 display_help ()
 
 set_theme ($theme)
 
 get_translation ($value, $data=array())
 
 get_adminEditionLanguage ()
 
 get_contentList ()
 
 preInit_admin ()
 
 display_admin ()
 
 init_parent_admin ()
 
 get_adminLink ($params=array(), $module=null)
 
 get_adminJSLink ($params=array(), $module=null)
 
 init_site ($content=1, $params=array(), $index=null)
 
 display_site ()
 
 set_selectedLayout ($layout='', $location='')
 
 get_adminLayout ($layout='')
 
 get_siteLayout ()
 
 get_adminEngineGenericMenus ()
 
 get_adminEngineGenericMenuItems ()
 
 get_adminEngineSpecificMenus ()
 
 get_adminEngineSpecificMenuItems ()
 
 get_adminEngineGenericInit ()
 
 get_adminEngineGenericDisplay ()
 
 get_adminInternalNotifications ()
 
 get_adminControlPanelAction ()
 
 get_adminStatisticsValueTitles ($list, $object=null)
 
 get_adminStatisticsSpecificOptions ($object=null)
 
 get_rights ()
 
 check_right ($info)
 
 get_fileInputButtons ($buttons=array(), $delete=true)
 
 get_dateInputButtons ($update=true, $reset=true)
 
 init_generic ()
 
- Public Member Functions inherited from Plugin
 __construct ($name, $plugin_type, $path_type)
 
 get_version ()
 
 load_library ($library='')
 
 load_file ($file='')
 
 load_varFile ($file='')
 
 load_engineFile ($file='')
 
 get_engineFileURL ($file='', $path=false)
 
 get_fileURL ($file='', $path=null, $default='')
 
 get_varFileURL ($file='', $path=false, $default='')
 
 get_filePath ($file='')
 
 get_varFilePath ($file='')
 
 add_JSFile ($file)
 
 add_JSEngineFile ($file)
 
 add_JSExternFile ($file)
 
 add_JSScript ($script, $unique=false)
 
 add_JSPreScript ($script, $unique=false)
 
 add_JSWindowEventScript ($event, $script, $unique=false)
 
 add_JSLoadScript ($script, $unique=false)
 
 add_JSUnloadScript ($script, $unique=false)
 
 add_styleFile ($file, $media='', $condition='')
 
 add_styleScript ($css)
 
 add_styleIncludedFile ($file)
 
 add_StyleExternFile ($file, $media='', $condition='')
 
 set_RSSFeed ($title, $url)
 
 add_headerExtra ($content='')
 
 install ()
 
 uninstall ()
 
 is_installed ()
 
 update ($version, $more='')
 
 add_translation ($more='', $lg=null)
 
 get_languages ()
 
 execute_onCaMykSInitialise ()
 
 execute_onCaMykSPageLoad ()
 
 execute_onCaMykSBodyOpen ()
 
 execute_onCaMykSBodyClose ()
 
 execute_onCaMykSAdminPageLoad ()
 
 execute_onCaMykSAdminBodyOpen ()
 
 execute_onCaMykSAdminBodyClose ()
 
 execute_onCaMykSTerminate ()
 
 get_requestLink ($params=array())
 
 get_requestJSLink ($params=array())
 
 execute_request ()
 
 get_varFile ($file)
 

Protected Attributes

 $summary
 Summary data. More...
 
- Protected Attributes inherited from Module
 $libs = array()
 Module libraries to load. More...
 
 $text = ''
 Module admin message. More...
 

Private Member Functions

 init_admin_welcome ()
 
 init_admin_configuration ()
 
 init_admin_save_configuration ()
 
 init_admin_summary ()
 
 init_admin_install ()
 
 checkCaMykSConfig ()
 
 checkSiteConfig ()
 
 checkDatabase ()
 
 checkSymLinks ()
 
 checkPlugins ()
 
 checkAdminUser ()
 
 installDatabase ()
 
 installsymLinks ()
 
 installPlugins ()
 
 installDone ()
 

Private Attributes

 $allowInstall
 Is installation allowed. More...
 
 $symLinks = array('plugin'=>'cplugin', 'engine/data'=>'cdata')
 List of symbolic links. More...
 
 $textColors = array('yes' => 'green', 'no' => '#CC3333')
 List of colors. More...
 

Additional Inherited Members

- Public Attributes inherited from Module
 $type
 Module type, can be admin or content. More...
 
 $title
 Module title. More...
 
 $libdesc
 Module library description. More...
 
 $theme
 Theme applied to the Module. More...
 
 $languages
 Module available locale files. More...
 
 $rights = array()
 Module permissions. More...
 
 $selected_layout = ''
 Module layout to use. More...
 
 $selected_layout_location = 'module'
 Module layout location, can be module or camyks. More...
 
 $help = null
 Module help files. More...
 
 $is_editable = true
 Module has editable content. More...
 
- Public Attributes inherited from Plugin
 $name
 Plugin name. More...
 
 $version
 Plugin version. More...
 
 $active = false
 Plugin installation status. More...
 
 $plugin_package = ''
 Plugin package. More...
 
 $plugin_type
 Plugin type. More...
 
 $object_type
 Plugin type. More...
 
 $plugin_path
 Plugin path. More...
 
 $plugin_site_path
 Plugin site path (for element overwriting). More...
 
 $plugin_var_path
 Plugin var path. More...
 
 $plugin_url
 Plugin URL. More...
 
 $plugin_site_url
 Plugin site URL (for element overwriting). More...
 
 $plugin_var_url
 Plugin var URL. More...
 
 $path_type
 Plugin path type. More...
 
 $author_name
 Plugin author name. More...
 
 $author_mail
 Plugin author email. More...
 
 $author_group
 Plugin author group. More...
 
 $plugin_dependencies = array()
 Plugin dependencies. More...
 
- Protected Member Functions inherited from Module
 init_admin_accessDenied ()
 
 init_admin_pageAccessDenied ()
 
 init_admin_actionNotAllowed ()
 
 init_admin_missingPlugin ($type, $name)
 
 disable_adminEngineMenus ()
 
 add_moduleContentToPage ($pageId, $moduleIndex, $contentId)
 
 get_PHPLibs ()
 
- Protected Member Functions inherited from Plugin
 set_redirect ($time, $url='')
 
 add_meta ($name, $content, $method='name')
 
 add_toHtaccess ($content='')
 
 add_dependency ($plugin, $type, $version='1.0', $mandatory=false)
 
 set_dependencies ()
 
 register_asSharedObject ($name)
 
get_sharedObject ($name)
 
 register_asExtension ($plugin)
 
 get_registeredExtensions ()
 
 register_asCaMykSEventHandler ($event)
 

Detailed Description

Tool_Installer class.

Constructor & Destructor Documentation

◆ __construct()

Tool_Installer::__construct (   $path_type)

Class constructor.

Parameters
string$path_type
Returns
void

Member Function Documentation

◆ init_admin()

Tool_Installer::init_admin ( )

Initialise module object in admin mode.

Returns
void

Reimplemented from Module.

◆ init_admin_welcome()

Tool_Installer::init_admin_welcome ( )
private

Initialise module object in admin/welcome mode.

Returns
void

◆ init_admin_configuration()

Tool_Installer::init_admin_configuration ( )
private

Initialise module object in admin/configuration mode.

Returns
void

◆ init_admin_save_configuration()

Tool_Installer::init_admin_save_configuration ( )
private

Initialise module object in admin/save_configuration mode.

Returns
void

◆ init_admin_summary()

Tool_Installer::init_admin_summary ( )
private

Initialise module object in admin/main mode

Returns
void

◆ init_admin_install()

Tool_Installer::init_admin_install ( )
private

Initialise module object in admin/install mode.

Returns
void

◆ checkCaMykSConfig()

Tool_Installer::checkCaMykSConfig ( )
private

Check CaMykS engine config.

Returns
void

◆ checkSiteConfig()

Tool_Installer::checkSiteConfig ( )
private

Check site configuration file.

Returns
void

◆ checkDatabase()

Tool_Installer::checkDatabase ( )
private

Check database connection.

Returns
void

◆ checkSymLinks()

Tool_Installer::checkSymLinks ( )
private

Check symbolic links existance.

Returns
void

◆ checkPlugins()

Tool_Installer::checkPlugins ( )
private

Check mandatory plugins.

Returns
void

◆ checkAdminUser()

Tool_Installer::checkAdminUser ( )
private

Check admin user.

Returns
void

◆ installDatabase()

Tool_Installer::installDatabase ( )
private

Install database.

Returns
void

◆ installsymLinks()

Tool_Installer::installsymLinks ( )
private

Install symbolic links.

Returns
void

◆ installPlugins()

Tool_Installer::installPlugins ( )
private

Install plugins.

Returns
void

◆ installDone()

Tool_Installer::installDone ( )
private

Finalise installation.

Returns
boolean success

Member Data Documentation

◆ $summary

Tool_Installer::$summary
protected

Summary data.

var array $summary

◆ $allowInstall

Tool_Installer::$allowInstall
private

Is installation allowed.

var boolean $allowInstall

◆ $symLinks

Tool_Installer::$symLinks = array('plugin'=>'cplugin', 'engine/data'=>'cdata')
private

List of symbolic links.

var array $allowInstall

◆ $textColors

Tool_Installer::$textColors = array('yes' => 'green', 'no' => '#CC3333')
private

List of colors.

var array $textColors


The documentation for this class was generated from the following file: