| 1 |
lars |
1 |
<?php
|
|
|
2 |
Channels::includeSystem('MySystem');
|
|
|
3 |
Channels::includeAsset('Page');
|
|
|
4 |
require_once 'libs/FileSystem2.inc';
|
|
|
5 |
|
|
|
6 |
function one() {
|
|
|
7 |
Channels::includeSystem('MySystem2');
|
|
|
8 |
$siteid = MySystem2::getCurrentSiteId();
|
|
|
9 |
Page::create();
|
|
|
10 |
PageAssetType::create();
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
function two() {
|
|
|
14 |
$siteid = MySystem2::getCurrentSiteId();
|
|
|
15 |
$parserFiles = FileSystem2::listDirectory();
|
|
|
16 |
}
|
|
|
17 |
|
|
|
18 |
function three() {
|
|
|
19 |
include 'libs/FileSystem.inc';
|
|
|
20 |
$siteid = MySystem::getCurrentSiteId();
|
|
|
21 |
$parserFiles = FileSystem::listDirectory();
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
$siteid = MySystem2::getCurrentSiteId();
|
|
|
25 |
$parserFiles = FileSystem2::listDirectory();
|
|
|
26 |
$siteid = MySystem::getCurrentSiteId();
|
|
|
27 |
$parserFiles = FileSystem::listDirectory();
|
|
|
28 |
Page::create();
|
|
|
29 |
PageAssetType::create();
|
|
|
30 |
|
|
|
31 |
class AssetListingAssetType extends AssetAssetType
|
|
|
32 |
{
|
|
|
33 |
function one() {
|
|
|
34 |
Channels::includeSystem('MySystem2');
|
|
|
35 |
$siteid = MySystem2::getCurrentSiteId();
|
|
|
36 |
Page::create();
|
|
|
37 |
PageAssetType::create();
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
function two() {
|
|
|
41 |
$siteid = MySystem2::getCurrentSiteId();
|
|
|
42 |
$parserFiles = FileSystem2::listDirectory();
|
|
|
43 |
return parent::two();
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
function three() {
|
|
|
47 |
include 'libs/FileSystem.inc';
|
|
|
48 |
$siteid = MySystem::getCurrentSiteId();
|
|
|
49 |
$parserFiles = FileSystem::listDirectory();
|
|
|
50 |
echo self::two();
|
|
|
51 |
}
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
echo Init::ROOT_DIR;
|
|
|
55 |
|
|
|
56 |
Channels::includeSystem('AssetType');
|
|
|
57 |
AssetType::includeAsset('User');
|
|
|
58 |
AssetType::includeAsset('FolderAsset');
|
|
|
59 |
UserAssetType::create();
|
|
|
60 |
FolderAssetType::create();
|
|
|
61 |
$query->fetch(PDO::FETCH_NUM)
|
|
|
62 |
BaseSystem::getDataDir();
|
|
|
63 |
Util::getArrayIndex(array(), '');
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
Channels::includeSystem('Widget');
|
|
|
67 |
Widget::includeWidget('AbstractContainer');
|
|
|
68 |
class MyWidget extends AbstractContainerWidgetType {}
|
|
|
69 |
class MyOtherWidget extends BookWidgetType {}
|
|
|
70 |
|
|
|
71 |
$zip = new ZipArchive();
|
|
|
72 |
$res = $zip->open($path, ZipArchive::CREATE);
|
|
|
73 |
|
|
|
74 |
class AssetListingUnitTest extends AbstractMySourceUnitTest
|
|
|
75 |
{
|
|
|
76 |
function setUp() {
|
|
|
77 |
parent::setUp();
|
|
|
78 |
Channels::includeSystem('MySystem2');
|
|
|
79 |
include_once 'Libs/FileSystem.inc';
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
function two() {
|
|
|
83 |
$siteid = MySystem2::getCurrentSiteId();
|
|
|
84 |
$parserFiles = FileSystem::listDirectory();
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
function three() {
|
|
|
88 |
$siteid = MySystem3::getCurrentSiteId();
|
|
|
89 |
$parserFiles = FileSystem::listDirectory();
|
|
|
90 |
}
|
|
|
91 |
}
|
|
|
92 |
?>
|