aliroUserPageNav Class Reference

Inheritance diagram for aliroUserPageNav:

aliroAbstractPageNav

List of all members.

Public Member Functions

 getLimitBox ($link)
 writeLimitBox ($link)
 writePagesCounter ()
 writeLeafsCounter ()

Protected Attributes

 $isAdmin = false


Detailed Description

Definition at line 149 of file aliroPageNav.php.


Member Function Documentation

aliroUserPageNav::getLimitBox ( link  ) 

Returns the html limit # input box

Parameters:
string The basic link to include in the href
Returns:
string

Definition at line 156 of file aliroPageNav.php.

References aliroHTML::getInstance(), aliroSEF::getInstance(), and aliroAbstractPageNav::makeLimitSteps().

00156                                         {
00157         // build the html select list
00158         $link = aliroSEF::getInstance()->sefRelToAbs($link.'&limit=\' + this.options[selectedIndex].value + \'&limitstart='.$this->limitstart);
00159         return aliroHTML::getInstance()->selectList($this->makeLimitSteps(), 'limit',
00160         'class="inputbox" size="1" onchange="document.location.href=\''.$link.'\';"',
00161         'value', 'text', $this->limit);
00162     }

aliroUserPageNav::writeLimitBox ( link  ) 

Writes the html limit # input box

Parameters:
string The basic link to include in the href

Definition at line 167 of file aliroPageNav.php.

00167                                             {
00168         echo $this->getLimitBox( $link );
00169     }

aliroUserPageNav::writePagesCounter (  ) 

Writes the html for the pages counter, eg, Results 1-10 of x

Definition at line 173 of file aliroPageNav.php.

00173                                         {
00174         return parent::getPagesCounter();
00175     }

aliroUserPageNav::writeLeafsCounter (  ) 

Writes the html for the leafs counter, eg, Page 1 of x

Definition at line 180 of file aliroPageNav.php.

00180                                         {
00181         $txt = '';
00182         $page = $this->limitstart+1;
00183         if ($this->total > 0) {
00184             $txt .= sprintf(T_('Page %d of %d'), $page, $this->total);
00185         }
00186         return $txt;
00187     }


Member Data Documentation

aliroUserPageNav::$isAdmin = false [protected]

Definition at line 150 of file aliroPageNav.php.


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

Generated on Wed May 14 13:02:00 2008 for ALIRO by  doxygen 1.5.5