Bearsampp
2025.8.29
Loading...
Searching...
No Matches
class.apps.php
Go to the documentation of this file.
1
<?php
2
/*
3
* Copyright (c) 2021-2024 Bearsampp
4
* License: GNU General Public License version 3 or later; see LICENSE.txt
5
* Author: Bear
6
* Website: https://bearsampp.com
7
* Github: https://github.com/Bearsampp
8
*/
9
16
class
Apps
17
{
21
const
TYPE
=
'apps'
;
22
26
private
$phpmyadmin
;
27
31
private
$phppgadmin
;
32
36
public
function
__construct
()
37
{
38
}
39
45
public
function
update
()
46
{
47
Util::logInfo
(
'Update apps config'
);
48
foreach
($this->
getAll
() as $tool) {
49
$tool->update();
50
}
51
}
52
58
public
function
getAll
()
59
{
60
return
array(
61
$this->
getPhpmyadmin
(),
62
$this->
getPhppgadmin
()
63
);
64
}
65
73
public
function
getPhpmyadmin
()
74
{
75
if
($this->phpmyadmin ==
null
) {
76
$this->phpmyadmin =
new
AppPhpmyadmin
(
'phpmyadmin'
, self::TYPE);
77
}
78
return
$this->phpmyadmin
;
79
}
80
88
public
function
getPhppgadmin
()
89
{
90
if
($this->phppgadmin ==
null
) {
91
$this->phppgadmin =
new
AppPhppgadmin
(
'phppgadmin'
, self::TYPE);
92
}
93
return
$this->phppgadmin
;
94
}
95
}
AppPhpmyadmin
Definition
class.app.phpmyadmin.php:18
AppPhppgadmin
Definition
class.app.phppgadmin.php:17
Apps
Definition
class.apps.php:17
Apps\$phppgadmin
$phppgadmin
Definition
class.apps.php:31
Apps\__construct
__construct()
Definition
class.apps.php:36
Apps\update
update()
Definition
class.apps.php:45
Apps\TYPE
const TYPE
Definition
class.apps.php:21
Apps\$phpmyadmin
$phpmyadmin
Definition
class.apps.php:26
Apps\getPhppgadmin
getPhppgadmin()
Definition
class.apps.php:88
Apps\getPhpmyadmin
getPhpmyadmin()
Definition
class.apps.php:73
Apps\getAll
getAll()
Definition
class.apps.php:58
Util\logInfo
static logInfo($data, $file=null)
Definition
class.util.php:767
Bearsampp-development
sandbox
core
classes
apps
class.apps.php
Generated by
1.14.0