PluginFlyvemdmInstaller - btry/glpi-plugin GitHub Wiki
- Class name: PluginFlyvemdmInstaller
- Namespace:
const DEFAULT_CIPHERS_LIST = 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:ECDHE-RSA-RC4-SHA:ECDHE-ECDSA-RC4-SHA:AES128:AES256:RC4-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK'
const BACKEND_MQTT_USER = 'flyvemdm-backend'
protected mixed $itemtypesToInstall = array('mqttuser', 'mqttacl', 'config', 'entityconfig', 'mqttlog', 'agent', 'package', 'file', 'fleet', 'profile', 'notificationtargetinvitation', 'geolocation', 'policy', 'policycategory', 'fleet_policy', 'wellknownpath', 'invitation', 'invitationlog')
- Visibility: protected
- This property is static.
protected mixed $currentVersion = null
- Visibility: protected
- This property is static.
protected mixed $migration
- Visibility: protected
mixed PluginFlyvemdmInstaller::autoload($classname)
Autoloader for installation
- Visibility: public
- $classname mixed
boolean PluginFlyvemdmInstaller::install()
Install the plugin
- Visibility: public
integer PluginFlyvemdmInstaller::getOrCreateProfile(string $name, string $comment)
Find a profile having the given comment, or create it
- Visibility: protected
- This method is static.
- $name string - <p>Name of the profile</p>
- $comment string - <p>Comment of the profile</p>
mixed PluginFlyvemdmInstaller::createDirectories()
- Visibility: public
mixed PluginFlyvemdmInstaller::getCurrentVersion()
- Visibility: public
- This method is static.
mixed PluginFlyvemdmInstaller::createRootEntityConfig()
- Visibility: protected
mixed PluginFlyvemdmInstaller::createFirstAccess()
Give all rights on the plugin to the profile of the current user
- Visibility: protected
mixed PluginFlyvemdmInstaller::createDefaultFleet()
- Visibility: protected
mixed PluginFlyvemdmInstaller::createGuestProfileAccess()
Create a profile for guest users
- Visibility: protected
mixed PluginFlyvemdmInstaller::createAgentProfileAccess()
Create a profile for agent user accounts
- Visibility: protected
mixed PluginFlyvemdmInstaller::createPolicies()
Create policies in DB
- Visibility: protected
mixed PluginFlyvemdmInstaller::getNotificationTargetInvitationEvents()
- Visibility: protected
mixed PluginFlyvemdmInstaller::createNotificationTargetInvitation()
- Visibility: public
mixed PluginFlyvemdmInstaller::upgrade(string $fromVersion)
Upgrade the plugin to the current code version
- Visibility: protected
- $fromVersion string
mixed PluginFlyvemdmInstaller::upgradeOneStep(string $toVersion)
Proceed to upgrade of the plugin to the given version
- Visibility: protected
- $toVersion string
mixed PluginFlyvemdmInstaller::createJobs()
- Visibility: protected
mixed PluginFlyvemdmInstaller::startsWith(string $haystack, string $needle)
http://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php
- Visibility: protected
- $haystack string
- $needle string
mixed PluginFlyvemdmInstaller::endsWith(string $haystack, string $needle)
http://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php
- Visibility: protected
- $haystack string
- $needle string
boolean PluginFlyvemdmInstaller::uninstall()
Uninstall the plugin
- Visibility: public
mixed PluginFlyvemdmInstaller::rrmdir(string $dir)
Cannot use the method from PluginFlyvemdmToolbox if the plugin is being uninstalled
- Visibility: protected
- $dir string
mixed PluginFlyvemdmInstaller::createInitialConfig()
Generate default configuration for the plugin
- Visibility: protected
mixed PluginFlyvemdmInstaller::createBackendMqttUser(string $MdmMqttUser, string $MdmMqttPassword)
Create MQTT user for the backend and save credentials
- Visibility: protected
- $MdmMqttUser string
- $MdmMqttPassword string
mixed PluginFlyvemdmInstaller::convertTextToHtml(string $text)
Generate HTML version of a text
Replaces \n by
Encloses the text un
.
..
Add anchor to URLs- Visibility: protected
- This method is static.
- $text string
mixed PluginFlyvemdmInstaller::getPolicyCategories()
- Visibility: public
- This method is static.
array PluginFlyvemdmInstaller::getPolicies()
- Visibility: public
- This method is static.
mixed PluginFlyvemdmInstaller::deleteNotificationTargetInvitation()
- Visibility: protected
mixed PluginFlyvemdmInstaller::deleteTables()
- Visibility: protected
mixed PluginFlyvemdmInstaller::deleteProfiles()
- Visibility: protected
mixed PluginFlyvemdmInstaller::deleteProfileRights()
- Visibility: protected
mixed PluginFlyvemdmInstaller::deleteRelations()
- Visibility: protected
mixed PluginFlyvemdmInstaller::deleteDisplayPreferences()
- Visibility: protected