MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
mactivelookupgrid.class
Ir para a documentação deste ficheiro.
1
<?php
2
class
MActiveLookupGrid
extends
MActiveGrid
3
{
4
var
$query
;
5
6
function
__construct
(
$query
,
$columns
,
$href
, $pagelength = 15,
$index
= 0)
7
{
8
$this->query =
$query
;
9
parent::__construct(
$query
->result,
$columns
,
$href
, $pagelength,
$index
);
10
$this->emptyMsg =
'Nenhum registro encontrado na pesquisa!'
;
11
$this->SetFiltered(
true
);
12
}
13
14
function
SetColumns
(
$columns
)
15
{
16
$this->columns = array
17
(
18
);
19
20
if
(!is_array(
$columns
))
21
$columns
= array(
$columns
);
22
23
foreach
(
$columns
as $k => $c)
24
{
25
$this->columns[$c->field] = $c;
26
$this->columns[$c->field]->index = $this->query->GetColumnNumber($c->field);
27
$this->columns[$c->field]->grid = $this;
28
}
29
}
30
31
}
32
?>
MActiveGrid
Definição
mactivegrid.class:3
MActiveLookupGrid
Definição
mactivelookupgrid.class:3
MActiveLookupGrid\SetColumns
SetColumns($columns)
Definição
mactivelookupgrid.class:14
MActiveLookupGrid\__construct
__construct($query, $columns, $href, $pagelength=15, $index=0)
Definição
mactivelookupgrid.class:6
MActiveLookupGrid\$query
$query
Definição
mactivelookupgrid.class:4
MGrid\$columns
$columns
Definição
gridcontrols.class:750
MGrid\$index
$index
Definição
gridcontrols.class:761
MGrid\$href
$href
Definição
gridcontrols.class:755
classes
ui
controls
mactivelookupgrid.class
Gerado por
1.10.0