2024.8.23
Loading...
Searching...
No Matches
Apps Class Reference

Public Member Functions

 __construct ()
 
 getAdminer ()
 
 getAll ()
 
 getPhpmyadmin ()
 
 getPhppgadmin ()
 
 getWebgrind ()
 
 update ()
 

Data Fields

const TYPE = 'apps'
 

Private Attributes

 $adminer
 
 $phpmyadmin
 
 $phppgadmin
 
 $webgrind
 

Detailed Description

Class Apps

This class manages various application modules within the Bearsampp application. It provides methods to retrieve and update configurations for different tools such as Adminer, PhpMyAdmin, PhpPgAdmin, and Webgrind.

Definition at line 16 of file class.apps.php.

Constructor & Destructor Documentation

◆ __construct()

Apps::__construct ( )

Constructor for the Apps class.

Definition at line 46 of file class.apps.php.

47 {
48 }

Member Function Documentation

◆ getAdminer()

Apps::getAdminer ( )

Retrieves the Adminer module instance.

If the instance is not already created, it initializes a new AppAdminer object.

Returns
AppAdminer The instance of the Adminer module.

Definition at line 85 of file class.apps.php.

86 {
87 if ($this->adminer == null) {
88 $this->adminer = new AppAdminer('adminer', self::TYPE);
89 }
90 return $this->adminer;
91 }

References $adminer.

Referenced by getAll().

+ Here is the caller graph for this function:

◆ getAll()

Apps::getAll ( )

Retrieves all application modules.

Returns
array An array containing instances of all application modules.

Definition at line 68 of file class.apps.php.

69 {
70 return array(
71 $this->getAdminer(),
72 $this->getPhpmyadmin(),
73 $this->getPhppgadmin(),
74 $this->getWebgrind()
75 );
76 }
getAdminer()
getPhppgadmin()
getWebgrind()
getPhpmyadmin()

References getAdminer(), getPhpmyadmin(), getPhppgadmin(), and getWebgrind().

Referenced by update().

+ Here is the caller graph for this function:

◆ getPhpmyadmin()

Apps::getPhpmyadmin ( )

Retrieves the PhpMyAdmin module instance.

If the instance is not already created, it initializes a new AppPhpmyadmin object.

Returns
AppPhpmyadmin The instance of the PhpMyAdmin module.

Definition at line 100 of file class.apps.php.

101 {
102 if ($this->phpmyadmin == null) {
103 $this->phpmyadmin = new AppPhpmyadmin('phpmyadmin', self::TYPE);
104 }
105 return $this->phpmyadmin;
106 }
$phpmyadmin

References $phpmyadmin.

Referenced by getAll().

+ Here is the caller graph for this function:

◆ getPhppgadmin()

Apps::getPhppgadmin ( )

Retrieves the PhpPgAdmin module instance.

If the instance is not already created, it initializes a new AppPhppgadmin object.

Returns
AppPhppgadmin The instance of the PhpPgAdmin module.

Definition at line 115 of file class.apps.php.

116 {
117 if ($this->phppgadmin == null) {
118 $this->phppgadmin = new AppPhppgadmin('phppgadmin', self::TYPE);
119 }
120 return $this->phppgadmin;
121 }
$phppgadmin

References $phppgadmin.

Referenced by getAll().

+ Here is the caller graph for this function:

◆ getWebgrind()

Apps::getWebgrind ( )

Retrieves the Webgrind module instance.

If the instance is not already created, it initializes a new AppWebgrind object.

Returns
AppWebgrind The instance of the Webgrind module.

Definition at line 130 of file class.apps.php.

131 {
132 if ($this->webgrind == null) {
133 $this->webgrind = new AppWebgrind('webgrind', self::TYPE);
134 }
135 return $this->webgrind;
136 }

References $webgrind.

Referenced by getAll().

+ Here is the caller graph for this function:

◆ update()

Apps::update ( )

Updates the configuration for all application modules.

This method logs the update process and iterates through all the tools to update their configurations.

Definition at line 55 of file class.apps.php.

56 {
57 Util::logInfo('Update apps config');
58 foreach ($this->getAll() as $tool) {
59 $tool->update();
60 }
61 }
getAll()
static logInfo($data, $file=null)

References getAll(), and Util\logInfo().

Field Documentation

◆ $adminer

Apps::$adminer
private

Definition at line 36 of file class.apps.php.

Referenced by getAdminer().

◆ $phpmyadmin

Apps::$phpmyadmin
private

Definition at line 26 of file class.apps.php.

Referenced by getPhpmyadmin().

◆ $phppgadmin

Apps::$phppgadmin
private

Definition at line 41 of file class.apps.php.

Referenced by getPhppgadmin().

◆ $webgrind

Apps::$webgrind
private

Definition at line 31 of file class.apps.php.

Referenced by getWebgrind().

◆ TYPE

const Apps::TYPE = 'apps'

The type of the module.

Definition at line 21 of file class.apps.php.

Referenced by Module\reload().


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