BeToolbarHelper Class Reference

Inheritance diagram for BeToolbarHelper:

AppHelper

List of all members.

Public Member Functions

 init (&$toolbar)
 initialize toolbar in params['toolbar']
 next ($title= ' > ', $options=array(), $disabledTitle= ' > ', $disabledOption=array())
 Return the link (html anchor tag) for the next page.
 prev ($title= '< ', $options=array(), $disabledTitle= '< ', $disabledOption=array())
 Return the link (html anchor tag) for the previous page.
 first ($title= '|< ', $options=array(), $disabledTitle= '|< ', $disabledOption=array())
 Return the link (html anchor tag) for the first page.
 last ($title= ' >| ', $options=array(), $disabledTitle= ' >| ', $disabledOption=array())
 Return the link (html anchor tag) for the last page.
 size ()
 Return number of records found.
 current ()
 Return current page.
 pages ()
 Return total number of pages.
 changeDim ($htmlAttributes=array(), $options=array(1, 5, 10, 20, 50, 100))
 View page size html select tag.
 changeDimSelect ($selectId, $htmlAttributes=array(), $options=array(1, 5, 10, 20, 50, 100))
 changePage ($htmlAttributes=array(), $items=5)
 Change selected page.
 changePageSelect ($selectId, $htmlAttributes=array(), $items=5)
 order ($field, $title="", $image="", $htmlAttributes=array(), $dir=null)
 Change list order.
 getPassedArgs ($otherParams=array())

Public Attributes

 $helpers = array('Form', 'Html')
 $tags


Detailed Description

Version:
Revision
2349
Modified By:
LastChangedBy
dante
Last Modified: $LastChangedDate
LastChangedDate
2009-10-09 13:49:23 +0200 (ven, 09 ott 2009)

Id
be_toolbar.php 2349 2009-10-09 11:49:23Z dante

Definition at line 31 of file be_toolbar.php.


Member Function Documentation

BeToolbarHelper.init ( &$  toolbar  ) 

initialize toolbar in params['toolbar']

Parameters:
array $toolbar
Returns:
unknown_type

Definition at line 50 of file be_toolbar.php.

BeToolbarHelper.next ( title = ',
,
options = array(),
disabledTitle = ',
,
disabledOption = array() 
)

Return the link (html anchor tag) for the next page.

Parameters:
string $title Label link
array $option HTML attributes for link
string $disabledTitle Label link disabled
array $disabledOption HTML attributes for link disabled (if present, insert a tag SPAN)

Definition at line 63 of file be_toolbar.php.

BeToolbarHelper.prev (  ) 

Return the link (html anchor tag) for the previous page.

Parameters:
string $title Label link
array $option HTML attributes for link
string $disabledTitle Label link disabled
array $disabledOption HTML attributes for link disabled (if present, insert a tag SPAN)

Definition at line 76 of file be_toolbar.php.

BeToolbarHelper.first (  ) 

Return the link (html anchor tag) for the first page.

Parameters:
string $title Label link
array $option HTML attributes for link
string $disabledTitle Label link disabled
array $disabledOption HTML attributes for link disabled (if present, insert a tag SPAN)

Definition at line 89 of file be_toolbar.php.

BeToolbarHelper.last ( title = ',
| '  ,
options = array(),
disabledTitle = ',
| '  ,
disabledOption = array() 
)

Return the link (html anchor tag) for the last page.

Parameters:
string $title Label link
array $option HTML attributes for link
string $disabledTitle Label link disabled
array $disabledOption HTML attributes for link disabled (if present, insert a tag SPAN)

Definition at line 102 of file be_toolbar.php.

BeToolbarHelper.size (  ) 

Return number of records found.

Definition at line 110 of file be_toolbar.php.

BeToolbarHelper.current (  ) 

Return current page.

Definition at line 118 of file be_toolbar.php.

BeToolbarHelper.pages (  ) 

Return total number of pages.

Definition at line 126 of file be_toolbar.php.

BeToolbarHelper.changeDim ( htmlAttributes = array(),
options = array(1, 5, 10, 20, 50, 100) 
)

View page size html select tag.

Parameters:
array $htmlAttributes associative Array with HTML attributes
arry $options Array. Default: 1, 5, 10,20, 50, 100

Definition at line 136 of file be_toolbar.php.

BeToolbarHelper.changePage ( htmlAttributes = array(),
items = 5 
)

Change selected page.

Parameters:
array $htmlAttributes associative Array with HTML attributes
arry $items number of available pages, before and after current. Default: 5

Definition at line 177 of file be_toolbar.php.

BeToolbarHelper.order ( field,
title = "",
image = "",
htmlAttributes = array(),
dir = null 
)

Change list order.

Parameters:
string $field Field for the "order by"
string $title Title for the link. Default: field name
array $htmlAttributes associative Array with HTML attributes
boolean $dir Se presente impone la direzione. 1: ascending, 0: descending otherwise, !(<current value>="">)

Definition at line 244 of file be_toolbar.php.


Member Data Documentation

BeToolbarHelper.$tags

Initial value:

 array(
                'with_text' => '<span %s >%s</span>',
                'without_text' => '<span %s />'
        )

Definition at line 39 of file be_toolbar.php.


The documentation for this class was generated from the following file:

Generated on Tue Jan 12 15:45:35 2010  BEditaBEdita 3.0.1 betula