AdminColumns.php
761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace AC\Plugin\SetupFactory;
use AC\Plugin\Install;
use AC\Plugin\InstallCollection;
use AC\Plugin\SetupFactory;
use AC\Plugin\Update;
use AC\Plugin\UpdateCollection;
final class AdminColumns extends SetupFactory {
public function create( $type ) {
switch ( $type ) {
case self::NETWORK:
$this->installers = new InstallCollection( [
new Install\Capabilities(),
] );
break;
case self::SITE:
$this->installers = new InstallCollection( [
new Install\Capabilities(),
new Install\Database(),
] );
$this->updates = new UpdateCollection( [
new Update\V3005(),
new Update\V3007(),
new Update\V3201(),
new Update\V4000(),
] );
break;
}
return parent::create( $type );
}
}