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: Table.php 20096 2010-01-06 02:05:09Z bkarwin $ |
19 * @version $Id: Table.php 25024 2012-07-30 15:08:15Z rob $ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * Zend_Text_Table enables developers to create tables out of characters |
23 * Zend_Text_Table enables developers to create tables out of characters |
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 |
30 class Zend_Text_Table |
31 { |
31 { |
32 /** |
32 /** |
339 require_once 'Zend/Text/Table/Exception.php'; |
339 require_once 'Zend/Text/Table/Exception.php'; |
340 throw new Zend_Text_Table_Exception('Row contains too many columns'); |
340 throw new Zend_Text_Table_Exception('Row contains too many columns'); |
341 } |
341 } |
342 |
342 |
343 require_once 'Zend/Text/Table/Row.php'; |
343 require_once 'Zend/Text/Table/Row.php'; |
|
344 require_once 'Zend/Text/Table/Column.php'; |
344 |
345 |
345 $data = $row; |
346 $data = $row; |
346 $row = new Zend_Text_Table_Row(); |
347 $row = new Zend_Text_Table_Row(); |
347 $colNum = 0; |
348 $colNum = 0; |
348 foreach ($data as $columnData) { |
349 foreach ($data as $columnData) { |