cvs: pear /HTTP_Header Header.php /HTTP_Header/Header Cache.php

From: Date: Sun, 13 Jun 2004 19:47:08 +0000
Subject: cvs: pear /HTTP_Header Header.php /HTTP_Header/Header Cache.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20608@lists.php.net to get a copy of this message
mike Sun Jun 13 15:47:08 2004 EDT Modified files: /pear/HTTP_Header Header.php /pear/HTTP_Header/Header Cache.php Log: * doc http://cvs.php.net/diff.php/pear/HTTP_Header/Header.php?r1=1.19&r2=1.20&ty=u Index: pear/HTTP_Header/Header.php diff -u pear/HTTP_Header/Header.php:1.19 pear/HTTP_Header/Header.php:1.20 --- pear/HTTP_Header/Header.php:1.19 Thu Jun 10 18:02:08 2004 +++ pear/HTTP_Header/Header.php Sun Jun 13 15:47:08 2004 @@ -1,15 +1,11 @@ <?php // +----------------------------------------------------------------------+ -// | PHP version 4.0 | +// | PEAR :: HTTP :: Header | // +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | +// | This source file is subject to version 3.0 of the PHP license, | +// | that is available at http://www.php.net/license/3_0.txt | +// | If you did not receive a copy of the PHP license and are unable | +// | to obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Authors: Wolfram Kriesing <wk@visionp.de> | @@ -17,7 +13,7 @@ // | Michael Wallner <mike@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Header.php,v 1.19 2004/06/10 22:02:08 mike Exp $ +// $Id: Header.php,v 1.20 2004/06/13 19:47:08 mike Exp $ require_once 'HTTP.php'; @@ -104,7 +100,7 @@ * @package HTTP_Header * @category HTTP * @access public - * @version $Revision: 1.19 $ + * @version $Revision: 1.20 $ */ class HTTP_Header extends HTTP { @@ -302,7 +298,7 @@ * Tue, 15 Nov 1994 12:45:26 GMT * into a timestamp, strtotime() didn't do it in older versions. * - * @deprecated + * @deprecated Use PHPs strtotime() instead. * @access public * @return mixed Returns int unix timestamp or false if the date doesn't * seem to be a valid GMT date. @@ -386,8 +382,9 @@ } /**#@+ - * @author Davey Shafik <davey@php.net> - * @param int $http_code HTTP Code to check + * @author Davey Shafik <davey@php.net> + * @param int $http_code HTTP Code to check + * @access public */ /** http://cvs.php.net/diff.php/pear/HTTP_Header/Header/Cache.php?r1=1.8&r2=1.9&ty=u Index: pear/HTTP_Header/Header/Cache.php diff -u pear/HTTP_Header/Header/Cache.php:1.8 pear/HTTP_Header/Header/Cache.php:1.9 --- pear/HTTP_Header/Header/Cache.php:1.8 Sat Jun 12 17:13:49 2004 +++ pear/HTTP_Header/Header/Cache.php Sun Jun 13 15:47:08 2004 @@ -1,22 +1,18 @@ <?php // +----------------------------------------------------------------------+ -// | PHP version 4.0 | +// | PEAR :: HTTP :: Header :: Cache | // +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available at through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | +// | This source file is subject to version 3.0 of the PHP license, | +// | that is available at http://www.php.net/license/3_0.txt | +// | If you did not receive a copy of the PHP license and are unable | +// | to obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Authors: Wolfram Kriesing <wk@visionp.de> | // | Michael Wallner <mike@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Cache.php,v 1.8 2004/06/12 21:13:49 mike Exp $ +// $Id: Cache.php,v 1.9 2004/06/13 19:47:08 mike Exp $ require_once 'HTTP/Header.php'; @@ -30,11 +26,19 @@ * Which is done by sending the HTTP-Status "304 Not Modified", so that your * application load and the network traffic can be reduced, since you only need * to send the complete page once. This is really an advantage e.g. for - * generated style sheets, or simply pages that do only change rarely. + * generated style sheets, or simply pages that do only change rarely. + * + * Usage: + * <code> + * require_once 'HTTP/Header/Cache.php'; + * $httpCache = new HTTP_Header_Cache(4, 'weeks'); + * $httpCache->sendHeaders(); + * // your code goes here + * </code> * * @package HTTP_Header * @category HTTP - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ class HTTP_Header_Cache extends HTTP_Header {

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