| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: pagination.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 6 * @license GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // no direct access 15 defined( '_JEXEC' ) or die( 'Restricted access' ); 16 17 // Register legacy classes for autoloading 18 JLoader::register('JPagination', JPATH_LIBRARIES.DS.'joomla'.DS.'html'.DS.'pagination.php'); 19 20 /** 21 * Legacy class, derive from JPagination instead 22 * 23 * @deprecated As of version 1.5 24 * @package Joomla.Legacy 25 * @subpackage 1.5 26 */ 27 class mosPageNav extends JPagination 28 { 29 function mosPageNav( $total, $limitstart, $limit ) { 30 parent::__construct($total, $limitstart, $limit); 31 } 32 33 /** 34 * Writes the dropdown select list for number of rows to show per page 35 * Use: print $pagination->getLimitBox(); 36 * 37 * @deprecated as of 1.5 38 */ 39 function writeLimitBox($link = null) { 40 echo $this->getLimitBox(); 41 } 42 43 /** 44 * Writes the counter string 45 * Use: print $pagination->getLimitBox(); 46 * 47 * @deprecated as of 1.5 48 */ 49 function writePagesCounter() { 50 return $this->getPagesCounter(); 51 } 52 53 /** 54 * Writes the page list string 55 * Use: print $pagination->getPagesLinks(); 56 * 57 * @deprecated as of 1.5 58 */ 59 function writePagesLinks($link = null) { 60 return $this->getPagesLinks(); 61 } 62 63 /** 64 * Writes the html for the leafs counter, eg, Page 1 of x 65 * Use: print $pagination->getPagesCounter(); 66 * 67 * @deprecated as of 1.5 68 */ 69 function writeLeafsCounter() { 70 return $this->getPagesCounter(); 71 } 72 73 /** 74 * Returns the pagination offset at an index 75 * Use: $pagination->getRowOffset($index); instead 76 * 77 * @deprecated as of 1.5 78 */ 79 function rowNumber($index) { 80 return $index +1 + $this->limitstart; 81 } 82 83 /** 84 * Return the icon to move an item UP 85 * 86 * @deprecated as of 1.5 87 */ 88 function orderUpIcon2($id, $order, $condition = true, $task = 'orderup', $alt = '#') 89 { 90 // handling of default value 91 if ($alt = '#') { 92 $alt = JText::_('Move Up'); 93 } 94 95 if ($order == 0) { 96 $img = 'uparrow0.png'; 97 } else { 98 if ($order < 0) { 99 $img = 'uparrow-1.png'; 100 } else { 101 $img = 'uparrow.png'; 102 } 103 } 104 $output = '<a href="javascript:void listItemTask(\'cb'.$id.'\',\'orderup\')" title="'.$alt.'">'; 105 $output .= '<img src="images/'.$img.'" width="16" height="16" border="0" alt="'.$alt.'" title="'.$alt.'" /></a>'; 106 107 return $output; 108 } 109 110 /** 111 * Return the icon to move an item DOWN 112 * 113 * @deprecated as of 1.5 114 */ 115 function orderDownIcon2($id, $order, $condition = true, $task = 'orderdown', $alt = '#') 116 { 117 // handling of default value 118 if ($alt = '#') { 119 $alt = JText::_('Move Down'); 120 } 121 122 if ($order == 0) { 123 $img = 'downarrow0.png'; 124 } else { 125 if ($order < 0) { 126 $img = 'downarrow-1.png'; 127 } else { 128 $img = 'downarrow.png'; 129 } 130 } 131 $output = '<a href="javascript:void listItemTask(\'cb'.$id.'\',\'orderdown\')" title="'.$alt.'">'; 132 $output .= '<img src="images/'.$img.'" width="16" height="16" border="0" alt="'.$alt.'" title="'.$alt.'" /></a>'; 133 134 return $output; 135 } 136 } 137 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |