cvs: pear-core /PEAR/PackageFile/Generator v2.php

From: Date: Thu, 04 Nov 2004 04:16:00 +0000
Subject: cvs: pear-core /PEAR/PackageFile/Generator v2.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1234@lists.php.net to get a copy of this message
cellog Wed Nov 3 23:16:00 2004 EDT Modified files: /pear-core/PEAR/PackageFile/Generator v2.php Log: add auto-date/time generation at package time http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/Generator/v2.php?r1=1.9&r2=1.10&ty=u Index: pear-core/PEAR/PackageFile/Generator/v2.php diff -u pear-core/PEAR/PackageFile/Generator/v2.php:1.9 pear-core/PEAR/PackageFile/Generator/v2.php:1.10 --- pear-core/PEAR/PackageFile/Generator/v2.php:1.9 Fri Oct 29 01:26:43 2004 +++ pear-core/PEAR/PackageFile/Generator/v2.php Wed Nov 3 23:16:00 2004 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: v2.php,v 1.9 2004/10/29 05:26:43 cellog Exp $ +// $Id: v2.php,v 1.10 2004/11/04 04:16:00 cellog Exp $ /** * This class converts a PEAR_PackageFile_v2 object into any output format. @@ -215,6 +215,8 @@ */ function toXml($state = PEAR_VALIDATE_NORMAL, $options = array()) { + $this->_packagefile->setDate(date('Y-m-d')); + $this->_packagefile->setTime(date('H:i:s')); if (!$this->_packagefile->validate($state)) { return false; } @@ -757,7 +759,7 @@ // | Authors: Stephan Schmidt <schst@php-tools.net> | // +----------------------------------------------------------------------+ // -// $Id: v2.php,v 1.9 2004/10/29 05:26:43 cellog Exp $ +// $Id: v2.php,v 1.10 2004/11/04 04:16:00 cellog Exp $ /** * error code for invalid chars in XML name

« previous php.pear.core (#1234) next »