cvs: php4 /pear/PEAR/Frontend CLI.php

From: Date: Thu, 06 Jun 2002 08:50:33 +0000
Subject: cvs: php4 /pear/PEAR/Frontend CLI.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4436@lists.php.net to get a copy of this message
cox Thu Jun 6 04:50:33 2002 EDT Modified files: /php4/pear/PEAR/Frontend CLI.php Log: Wrap table contents # Sorry could't wait for that commit :-) Index: php4/pear/PEAR/Frontend/CLI.php diff -u php4/pear/PEAR/Frontend/CLI.php:1.15 php4/pear/PEAR/Frontend/CLI.php:1.16 --- php4/pear/PEAR/Frontend/CLI.php:1.15 Sun Jun 2 16:24:50 2002 +++ php4/pear/PEAR/Frontend/CLI.php Thu Jun 6 04:50:31 2002 @@ -16,7 +16,7 @@ | Author: Stig Sæther Bakken <ssb@fast.no> | +----------------------------------------------------------------------+ - $Id: CLI.php,v 1.15 2002/06/02 20:24:50 dickmann Exp $ + $Id: CLI.php,v 1.16 2002/06/06 08:50:31 cox Exp $ */ require_once "PEAR.php"; @@ -347,7 +347,7 @@ $this->_displayLine($borderline); } } - + // }}} // {{{ outputData() @@ -359,7 +359,7 @@ $this->_startTable($data); if (isset($data['headline']) && is_array($data['headline'])) $this->_tableRow($data['headline'], array('bold' => true), array(1 => array('wrap' => 55))); - + foreach($data['data'] as $category) { foreach($category as $pkg) { $this->_tableRow($pkg, null, array(1 => array('wrap' => 55))); @@ -371,7 +371,7 @@ $this->_startTable($data); if (isset($data['headline']) && is_array($data['headline'])) $this->_tableRow($data['headline'], array('bold' => true), array(1 => array('wrap' => 55))); - + foreach($data['data'] as $category) { foreach($category as $pkg) { unset($pkg[3]); @@ -384,7 +384,7 @@ $this->_startTable($data); if (isset($data['headline']) && is_array($data['headline'])) $this->_tableRow($data['headline'], array('bold' => true), array(1 => array('wrap' => 55))); - + foreach($data['data'] as $group) { foreach($group as $value) { if ($value === null || $value === '') { @@ -413,10 +413,17 @@ if (is_array($data)) { $this->_startTable($data); - if (isset($data['headline']) && is_array($data['headline'])) - $this->_tableRow($data['headline'], array('bold' => true), array(1 => array('wrap' => 55))); - foreach($data['data'] as $row) - $this->_tableRow($row); + $opts = array(0 => array('wrap' => 25), + 1 => array('wrap' => 55) + ); + if (isset($data['headline']) && is_array($data['headline'])) { + $this->_tableRow($data['headline'], + array('bold' => true), + $opts); + } + foreach($data['data'] as $row) { + $this->_tableRow($row, null, $opts); + } $this->_endTable(); } else { $this->_displayLine($data); @@ -427,12 +434,12 @@ // }}} // {{{ log(text) - + function log($text) { return $this->_displayLine($text); } - + // }}} // {{{ bold($text)

« previous php.pear.cvs (#4436) next »