MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mthemebox.class
Ir para a documentação deste ficheiro.
1<?php
2class MThemeBox extends MControl
3{
4 var $title;
6
7 function __construct($title, $content = '')
8 {
9 parent::__construct();
10 $this->AddStyleFile('m_themeelement.css');
11 $this->title = $title;
12 $this->content = $content;
13 }
14
16 {
17 $this->content = $content;
18 }
19
20 function GenerateInner()
21 {
22 $attrs = $this->GetAttributes();
23 $t[] = new Span('', $this->title, 'title');
24 $t[] = new Div('', $this->content, 'content');
25 $this->inner = $t;
26 }
27
28 function Generate()
29 {
30 $this->SetBoxClass('m-theme-box');
31 return parent::Generate();
32 }
33}
34
35?>
SetContent($content)
Definição mthemebox.class:15
__construct($title, $content='')
Definição mthemebox.class:7