MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mcontent.class
Ir para a documentação deste ficheiro.
1<?php
2class 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
23{
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?>
__construct($module=false, $name=false, $home=false)
Definição mcontent.class:7
GenerateInner()
Definição mcontent.class:14
__construct($filename=null, $isSource=false, $home=false)
Definição mcontent.class:26
SetFile($filename)
Definição mcontent.class:33