equal
deleted
inserted
replaced
12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Text_Table |
16 * @package Zend_Text_Table |
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: Row.php 20096 2010-01-06 02:05:09Z bkarwin $ |
19 * @version $Id: Row.php 24593 2012-01-05 20:35:02Z matthew $ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * Row class for Zend_Text_Table |
23 * Row class for Zend_Text_Table |
24 * |
24 * |
25 * @category Zend |
25 * @category Zend |
26 * @package Zend_Text_Table |
26 * @package Zend_Text_Table |
27 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
27 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
29 */ |
29 */ |
30 class Zend_Text_Table_Row |
30 class Zend_Text_Table_Row |
31 { |
31 { |
32 /** |
32 /** |
195 // Add each single column line to the result |
195 // Add each single column line to the result |
196 $result = ''; |
196 $result = ''; |
197 for ($line = 0; $line < $maxHeight; $line++) { |
197 for ($line = 0; $line < $maxHeight; $line++) { |
198 $result .= $decorator->getVertical(); |
198 $result .= $decorator->getVertical(); |
199 |
199 |
200 foreach ($renderedColumns as $renderedColumn) { |
200 foreach ($renderedColumns as $index => $renderedColumn) { |
201 if (isset($renderedColumn[$line]) === true) { |
201 if (isset($renderedColumn[$line]) === true) { |
202 $result .= $renderedColumn[$line]; |
202 $result .= $renderedColumn[$line]; |
203 } else { |
203 } else { |
204 $result .= str_repeat(' ', strlen($renderedColumn[0])); |
204 $result .= str_repeat(' ', $this->_columnWidths[$index]); |
205 } |
205 } |
206 |
206 |
207 $result .= $decorator->getVertical(); |
207 $result .= $decorator->getVertical(); |
208 } |
208 } |
209 |
209 |