MGrid Class Reference

Inheritance diagram for MGrid:

Inheritance graph
[legend]
Collaboration diagram for MGrid:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 __construct ($data, $columns, $href, $pageLength=15, $index=0, $name= '', $useSelecteds=true, $useNavigator=true)
 setShowHeaders ($show=true)
 showHeaders ()
 setCurrentPage ($pageNumber)
 getURL ($filter=false, $order=false, $item= '')
 setTitle ($title)
 setPageLength ($pageLength)
 getPageLength ()
 setFooter ($footer)
 setColumns ($columns)
 setLinkType ($linktype)
 setControls ($controls)
 setButtons ($aButtons)
 setWidth ($width)
 setIndex ($index)
 setRowMethod ($class, $method)
 setIsScrollable ($scrollable=true, $width='99%', $height='99%')
 setScrollWidth ($width='99%')
 setScrollHeight ($height='99%')
 headerLink ($id, $label, $href)
 setColumnAttr ($col, $attr, $value)
 setData ($data)
 getData ()
 getDataValue ($row, $col)
 getPage ()
 getPageNumber ()
 getPrevPage ()
 addActionSelect ()
 addActionIcon ($alt, $icon, $href, $index=0)
 addActionText ($alt, $text, $href, $index=0)
 addActionUpdate ($href)
 addActionDelete ($href)
 addFilterSelection ($index, $label, $options, $value= '')
 addFilterText ($index, $label, $value= '')
 addFilterControl ($index, $control, $type= 'text')
 getFilterValue ($index)
 getFilterControl ($index)
 setFiltered ($value=false)
 getFiltered ()
 getFilter ()
 setFilter ($status)
 applyFilter ()
 applyOrder ($column)
 addError ($err)
 showID ($state)
 setClose ($action)
 setSelecteds ($s)
 setUseSelecteds ($opt)
 handlerSelecteds ()
 generateTitle ()
 generateNavigationHeader ()
 generateNavigationFooter ()
 generateLinks ()
 generateControls ()
 generateFilter ()
 hasErrors ()
 generateErrors ()
 generateHeader ()
 generateColumnsHeading ($tbl)
 correctActionColSpan ($tbl)
 generateActions (&$tbl)
 generateColumnsControls ()
 generateColumns ($tbl)
 generateEmptyMsg ()
 generateData ()
 callRowMethod ()
 generateBody ()
 generateFooter ()
 getImage ($src)
 generate ()

Public Attributes

 $title
 $filters
 $filtered
 $filter
 $orderby
 $ordered
 $data
 $actions
 $select
 $showid
 $columns
 $icons
 $errors
 $pageLength
 $rowCount
 $href
 $pn
 $headerLinks
 $linktype
 $width
 $rowmethod
 $index
 $controls
 $emptyMsg
 $currentRow = 0
 $box
 $selecteds
 $allSelecteds
 $pageNumber
 $prevPage
 $name
 $css
 $footer
 $header

Protected Attributes

 $isShowHeaders = true
 $scrollable = false
 $scrollWidth = '99%'
 $scrollHeight = '99%'

Detailed Description

Definition at line 420 of file gridcontrols.class.


Constructor & Destructor Documentation

MGrid::__construct ( data,
columns,
href,
pageLength = 15,
index = 0,
name = '',
useSelecteds = true,
useNavigator = true 
)

Definition at line 469 of file gridcontrols.class.

References $columns, $data, $href, $index, $name, $pageLength, _M(), MControl::addStyleFile(), handlerSelecteds(), MUtil::NVL(), setColumns(), setLinkType(), and setUseSelecteds().

Here is the call graph for this function:


Member Function Documentation

MGrid::setShowHeaders ( show = true  ) 

Definition at line 511 of file gridcontrols.class.

MGrid::showHeaders (  ) 

Definition at line 516 of file gridcontrols.class.

MGrid::setCurrentPage ( pageNumber  ) 

Definition at line 521 of file gridcontrols.class.

References $pageNumber, and MUtil::NVL().

Here is the call graph for this function:

MGrid::getURL ( filter = false,
order = false,
item = '' 
)

Definition at line 530 of file gridcontrols.class.

References $filter.

Referenced by generateColumnsHeading(), generateData(), and generateFilter().

Here is the caller graph for this function:

MGrid::setTitle ( title  ) 

Definition at line 548 of file gridcontrols.class.

References $title.

MGrid::setPageLength ( pageLength  ) 

Definition at line 553 of file gridcontrols.class.

References $pageLength.

MGrid::getPageLength (  ) 

Definition at line 558 of file gridcontrols.class.

MGrid::setFooter ( footer  ) 

Definition at line 563 of file gridcontrols.class.

References $footer.

MGrid::setColumns ( columns  ) 

Definition at line 568 of file gridcontrols.class.

References $columns.

Referenced by __construct().

Here is the caller graph for this function:

MGrid::setLinkType ( linktype  ) 

Definition at line 585 of file gridcontrols.class.

References $linktype.

Referenced by __construct().

Here is the caller graph for this function:

MGrid::setControls ( controls  ) 

Reimplemented from MControl.

Definition at line 590 of file gridcontrols.class.

References $controls.

Referenced by setButtons().

Here is the caller graph for this function:

MGrid::setButtons ( aButtons  ) 

Definition at line 600 of file gridcontrols.class.

References setControls().

Here is the call graph for this function:

MGrid::setWidth ( width  ) 

Reimplemented from MControl.

Definition at line 605 of file gridcontrols.class.

References $width.

MGrid::setIndex ( index  ) 

Definition at line 610 of file gridcontrols.class.

References $index.

MGrid::setRowMethod ( class,
method 
)

Definition at line 615 of file gridcontrols.class.

MGrid::setIsScrollable ( scrollable = true,
width = '99%',
height = '99%' 
)

Definition at line 620 of file gridcontrols.class.

References $scrollable, and $width.

MGrid::setScrollWidth ( width = '99%'  ) 

Definition at line 627 of file gridcontrols.class.

References $width.

MGrid::setScrollHeight ( height = '99%'  ) 

Definition at line 632 of file gridcontrols.class.

MGrid::headerLink ( id,
label,
href 
)

Definition at line 637 of file gridcontrols.class.

References $href, and MControl::$id.

MGrid::setColumnAttr ( col,
attr,
value 
)

Definition at line 642 of file gridcontrols.class.

MGrid::setData ( data  ) 

Definition at line 647 of file gridcontrols.class.

References $data.

MGrid::getData (  ) 

Definition at line 653 of file gridcontrols.class.

MGrid::getDataValue ( row,
col 
)

Definition at line 658 of file gridcontrols.class.

MGrid::getPage (  ) 

Definition at line 663 of file gridcontrols.class.

Referenced by generateData().

Here is the caller graph for this function:

MGrid::getPageNumber (  ) 

Definition at line 671 of file gridcontrols.class.

MGrid::getPrevPage (  ) 

Definition at line 676 of file gridcontrols.class.

MGrid::addActionSelect (  ) 

Definition at line 681 of file gridcontrols.class.

MGrid::addActionIcon ( alt,
icon,
href,
index = 0 
)

Definition at line 686 of file gridcontrols.class.

References $href.

Referenced by addActionDelete(), and addActionUpdate().

Here is the caller graph for this function:

MGrid::addActionText ( alt,
text,
href,
index = 0 
)

Definition at line 692 of file gridcontrols.class.

References $href.

MGrid::addActionUpdate ( href  ) 

Definition at line 697 of file gridcontrols.class.

References $href, _M(), and addActionIcon().

Here is the call graph for this function:

MGrid::addActionDelete ( href  ) 

Definition at line 703 of file gridcontrols.class.

References $href, _M(), and addActionIcon().

Here is the call graph for this function:

MGrid::addFilterSelection ( index,
label,
options,
value = '' 
)

Definition at line 709 of file gridcontrols.class.

References $index, and getFilter().

Here is the call graph for this function:

MGrid::addFilterText ( index,
label,
value = '' 
)

Definition at line 715 of file gridcontrols.class.

References $index, and getFilter().

Here is the call graph for this function:

MGrid::addFilterControl ( index,
control,
type = 'text' 
)

Definition at line 721 of file gridcontrols.class.

References $index, and getFilter().

Here is the call graph for this function:

MGrid::getFilterValue ( index  ) 

Definition at line 726 of file gridcontrols.class.

References $index.

MGrid::getFilterControl ( index  ) 

Definition at line 731 of file gridcontrols.class.

References $index.

MGrid::setFiltered ( value = false  ) 

Definition at line 736 of file gridcontrols.class.

MGrid::getFiltered (  ) 

Definition at line 741 of file gridcontrols.class.

Referenced by generateData().

Here is the caller graph for this function:

MGrid::getFilter (  ) 

Definition at line 751 of file gridcontrols.class.

Referenced by addFilterControl(), addFilterSelection(), and addFilterText().

Here is the caller graph for this function:

MGrid::setFilter ( status  ) 

Definition at line 756 of file gridcontrols.class.

MGrid::applyFilter (  ) 

Definition at line 769 of file gridcontrols.class.

References $data.

Referenced by generateData().

Here is the caller graph for this function:

MGrid::applyOrder ( column  ) 

Definition at line 796 of file gridcontrols.class.

Referenced by generateData().

Here is the caller graph for this function:

MGrid::addError ( err  ) 

Definition at line 831 of file gridcontrols.class.

MGrid::showID ( state  ) 

Definition at line 853 of file gridcontrols.class.

MGrid::setClose ( action  ) 

Definition at line 858 of file gridcontrols.class.

MGrid::setSelecteds ( s  ) 

Definition at line 863 of file gridcontrols.class.

References $selecteds.

MGrid::setUseSelecteds ( opt  ) 

Definition at line 872 of file gridcontrols.class.

Referenced by __construct().

Here is the caller graph for this function:

MGrid::handlerSelecteds (  ) 

Definition at line 878 of file gridcontrols.class.

References $select, $selecteds, and MUtil::NVL().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::generateTitle (  ) 

Definition at line 919 of file gridcontrols.class.

Referenced by generate().

Here is the caller graph for this function:

MGrid::generateNavigationHeader (  ) 

Definition at line 929 of file gridcontrols.class.

Referenced by generateHeader().

Here is the caller graph for this function:

MGrid::generateNavigationFooter (  ) 

Definition at line 959 of file gridcontrols.class.

Referenced by generateFooter().

Here is the caller graph for this function:

MGrid::generateLinks (  ) 

Definition at line 989 of file gridcontrols.class.

Referenced by generateHeader().

Here is the caller graph for this function:

MGrid::generateControls (  ) 

Definition at line 1006 of file gridcontrols.class.

Referenced by generateFooter().

Here is the caller graph for this function:

MGrid::generateFilter (  ) 

Reimplemented in MLookupGrid.

Definition at line 1024 of file gridcontrols.class.

References _M(), and getURL().

Referenced by generateHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::hasErrors (  ) 

Definition at line 1045 of file gridcontrols.class.

Referenced by generateBody().

Here is the caller graph for this function:

MGrid::generateErrors (  ) 

Definition at line 1050 of file gridcontrols.class.

References MControl::$caption, and _M().

Referenced by generateBody().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::generateHeader (  ) 

Definition at line 1074 of file gridcontrols.class.

References $header, generateFilter(), generateLinks(), and generateNavigationHeader().

Referenced by generate().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::generateColumnsHeading ( tbl  ) 

Definition at line 1088 of file gridcontrols.class.

References $rowCount, _M(), and getURL().

Referenced by generateBody().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::correctActionColSpan ( tbl  ) 

Definition at line 1147 of file gridcontrols.class.

MGrid::generateActions ( &$  tbl  ) 

Definition at line 1156 of file gridcontrols.class.

References $select.

Referenced by generateBody().

Here is the caller graph for this function:

MGrid::generateColumnsControls (  ) 

Definition at line 1181 of file gridcontrols.class.

Referenced by generateBody().

Here is the caller graph for this function:

MGrid::generateColumns ( tbl  ) 

Definition at line 1189 of file gridcontrols.class.

Referenced by generateBody().

Here is the caller graph for this function:

MGrid::generateEmptyMsg (  ) 

Definition at line 1230 of file gridcontrols.class.

Referenced by generateFooter().

Here is the caller graph for this function:

MGrid::generateData (  ) 

Reimplemented in MLookupGrid.

Definition at line 1236 of file gridcontrols.class.

References applyFilter(), applyOrder(), getFiltered(), getPage(), and getURL().

Referenced by generate().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::callRowMethod (  ) 

Definition at line 1273 of file gridcontrols.class.

Referenced by generateBody().

Here is the caller graph for this function:

MGrid::generateBody (  ) 

Definition at line 1283 of file gridcontrols.class.

References callRowMethod(), generateActions(), generateColumns(), generateColumnsControls(), generateColumnsHeading(), generateErrors(), and hasErrors().

Referenced by generate().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::generateFooter (  ) 

Definition at line 1336 of file gridcontrols.class.

References $footer, generateControls(), generateEmptyMsg(), and generateNavigationFooter().

Referenced by generate().

Here is the call graph for this function:

Here is the caller graph for this function:

MGrid::getImage ( src  ) 

Definition at line 1355 of file gridcontrols.class.

MGrid::generate (  ) 

Reimplemented from MControl.

Definition at line 1385 of file gridcontrols.class.

References $footer, $header, $title, generateBody(), generateData(), generateFooter(), generateHeader(), and generateTitle().

Referenced by MLookupGrid::generateFilter().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

MGrid::$title

Definition at line 422 of file gridcontrols.class.

Referenced by generate(), and setTitle().

MGrid::$filters

Definition at line 423 of file gridcontrols.class.

MGrid::$filtered

Definition at line 424 of file gridcontrols.class.

Referenced by MLookupGrid::__construct(), MLookupGrid::generateData(), and MActiveGrid::GenerateData().

MGrid::$filter

Definition at line 425 of file gridcontrols.class.

Referenced by getURL().

MGrid::$orderby

Definition at line 426 of file gridcontrols.class.

MGrid::$ordered

Definition at line 427 of file gridcontrols.class.

MGrid::$data

Definition at line 428 of file gridcontrols.class.

Referenced by MActiveGrid::__construct(), __construct(), applyFilter(), and setData().

MGrid::$actions

Definition at line 429 of file gridcontrols.class.

MGrid::$select

Definition at line 430 of file gridcontrols.class.

Referenced by generateActions(), and handlerSelecteds().

MGrid::$showid

Definition at line 431 of file gridcontrols.class.

MGrid::$columns

Definition at line 432 of file gridcontrols.class.

Referenced by MObjectGrid::__construct(), MLookupGrid::__construct(), MDataGrid::__construct(), MActiveLookupGrid::__construct(), MActiveGrid::__construct(), __construct(), MDataGrid::SetColumns(), MActiveLookupGrid::SetColumns(), and setColumns().

MGrid::$icons

Definition at line 433 of file gridcontrols.class.

MGrid::$errors

Definition at line 434 of file gridcontrols.class.

MGrid::$pageLength

Definition at line 435 of file gridcontrols.class.

Referenced by MLookupGrid::__construct(), MDataGrid::__construct(), __construct(), and setPageLength().

MGrid::$rowCount

Definition at line 436 of file gridcontrols.class.

Referenced by generateColumnsHeading().

MGrid::$href

Definition at line 437 of file gridcontrols.class.

Referenced by MObjectGrid::__construct(), MLookupGrid::__construct(), MDataGrid::__construct(), MActiveLookupGrid::__construct(), MActiveGrid::__construct(), __construct(), addActionDelete(), addActionIcon(), addActionText(), addActionUpdate(), and headerLink().

MGrid::$pn

Definition at line 438 of file gridcontrols.class.

MGrid::$headerLinks

Definition at line 439 of file gridcontrols.class.

MGrid::$linktype

Definition at line 440 of file gridcontrols.class.

Referenced by setLinkType().

MGrid::$width

Definition at line 441 of file gridcontrols.class.

Referenced by setIsScrollable(), setScrollWidth(), and setWidth().

MGrid::$rowmethod

Definition at line 442 of file gridcontrols.class.

MGrid::$index

Definition at line 443 of file gridcontrols.class.

Referenced by MObjectGrid::__construct(), MLookupGrid::__construct(), MDataGrid::__construct(), MActiveLookupGrid::__construct(), MActiveGrid::__construct(), __construct(), addFilterControl(), addFilterSelection(), addFilterText(), getFilterControl(), getFilterValue(), and setIndex().

MGrid::$controls

A list with the contained controls, indexed by numbers.

Reimplemented from MControl.

Definition at line 444 of file gridcontrols.class.

Referenced by setControls().

MGrid::$emptyMsg

Definition at line 445 of file gridcontrols.class.

MGrid::$currentRow = 0

Definition at line 446 of file gridcontrols.class.

MGrid::$box

Reimplemented from MControl.

Definition at line 447 of file gridcontrols.class.

MGrid::$selecteds

Definition at line 448 of file gridcontrols.class.

Referenced by handlerSelecteds(), and setSelecteds().

MGrid::$allSelecteds

Definition at line 449 of file gridcontrols.class.

MGrid::$pageNumber

Definition at line 450 of file gridcontrols.class.

Referenced by setCurrentPage().

MGrid::$prevPage

Definition at line 451 of file gridcontrols.class.

MGrid::$name

Reimplemented from MComponent.

Definition at line 452 of file gridcontrols.class.

Referenced by MDataGrid::__construct(), __construct(), and MActiveGrid::GenerateCommands().

MGrid::$css

Definition at line 453 of file gridcontrols.class.

MGrid::$footer

Definition at line 454 of file gridcontrols.class.

Referenced by generate(), MLookupGrid::GenerateFooter(), generateFooter(), and setFooter().

MGrid::$header

Definition at line 455 of file gridcontrols.class.

Referenced by generate(), MLookupGrid::GenerateHeader(), and generateHeader().

MGrid::$isShowHeaders = true [protected]

Definition at line 456 of file gridcontrols.class.

MGrid::$scrollable = false [protected]

Definition at line 457 of file gridcontrols.class.

Referenced by setIsScrollable().

MGrid::$scrollWidth = '99%' [protected]

Definition at line 458 of file gridcontrols.class.

MGrid::$scrollHeight = '99%' [protected]

Definition at line 459 of file gridcontrols.class.


The documentation for this class was generated from the following file:
CopyLeft (L) 2001-2006 - [MIOLO Development Team] SOLIS - Cooperativa de Soluções Livres - Lajeado/RS - Brasil