-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.php
More file actions
34 lines (26 loc) · 784 Bytes
/
controller.php
File metadata and controls
34 lines (26 loc) · 784 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
<?php
// Author: Ryan Hewitt - http://www.mesuva.com
namespace Concrete\Package\MsvScriptOutput;
use Concrete\Core\Package\Package;
use Concrete\Core\Block\BlockType\BlockType;
class Controller extends Package {
protected $pkgHandle = 'msv_script_output';
protected $appVersionRequired = '5.7.5';
protected $pkgVersion = '1.2.1';
public function getPackageDescription() {
return t("A block to control the output of ad-hoc scripts");
}
public function getPackageName() {
return t("Script Output");
}
public function upgrade() {
parent::upgrade();
}
public function install() {
$pkg = parent::install();
$blk = BlockType::getByHandle('msv_script_output');
if(!is_object($blk) ) {
BlockType::installBlockType('msv_script_output', $pkg);
}
}
}