MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mcontent.class
Ir para a documentação deste ficheiro.
1
<?php
2
class
MContent
extends
MControl
3
{
4
var
$path
;
5
var
$home
;
6
7
function
__construct
($module =
false
,
$name
=
false
,
$home
=
false
)
8
{
9
parent::__construct();
10
$this->path = $this->manager->GetModulePath($module,
$name
);
11
$this->home =
$home
;
12
}
13
14
function
GenerateInner
()
15
{
16
$content_array = file($this->path);
17
$content = implode(
""
, $content_array);
18
$this->inner =
new
MDiv
(
''
, $content,
'm-theme-content'
);
19
}
20
}
21
22
class
MFileContent
extends
MContent
23
{
24
var
$isSource
;
25
26
function
__construct
($filename =
null
,
$isSource
=
false
,
$home
=
false
)
27
{
28
parent::__construct();
29
$this->path = $filename;
30
$this->isSource =
$isSource
;
31
}
32
33
function
SetFile
($filename)
34
{
35
$this->path = $filename;
36
}
37
38
function
GenerateInner
()
39
{
40
if
($this->isSource)
41
{
42
$content = highlight_file($this->path,
true
);
43
$t[] =
new
MDiv
(
''
, $this->path,
''
);
44
$t[] =
new
MDiv
(
''
, $content,
'm-filecontent'
);
45
$this->inner = $t;
46
}
47
else
48
{
49
parent::GenerateInner();
50
}
51
}
52
}
53
54
?>
MComponent\$name
$name
Definição
mcomponent.class:17
MContent
Definição
mcontent.class:3
MContent\__construct
__construct($module=false, $name=false, $home=false)
Definição
mcontent.class:7
MContent\$path
$path
Definição
mcontent.class:4
MContent\GenerateInner
GenerateInner()
Definição
mcontent.class:14
MContent\$home
$home
Definição
mcontent.class:5
MControl
Definição
mcontrol.class:35
MDiv
Definição
blockcontrols.class:23
MFileContent
Definição
mcontent.class:23
MFileContent\__construct
__construct($filename=null, $isSource=false, $home=false)
Definição
mcontent.class:26
MFileContent\GenerateInner
GenerateInner()
Definição
mcontent.class:38
MFileContent\SetFile
SetFile($filename)
Definição
mcontent.class:33
MFileContent\$isSource
$isSource
Definição
mcontent.class:24
classes
ui
controls
mcontent.class
Gerado por
1.10.0