cvs: pear /PEAR_Delegator/source Delegator.php /PEAR_Delegator/source/Delegator DelegatorExceptions.php DelegatorExtensions.php
DelegatorInternals.php

From: Date: Mon, 18 Apr 2005 14:57:16 +0000
Subject: cvs: pear /PEAR_Delegator/source Delegator.php /PEAR_Delegator/source/Delegator DelegatorExceptions.php DelegatorExtensions.php
DelegatorInternals.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31280@lists.php.net to get a copy of this message
herrwitten Mon Apr 18 10:57:16 2005 EDT Modified files: /pear/PEAR_Delegator/source Delegator.php /pear/PEAR_Delegator/source/Delegator DelegatorExtensions.php DelegatorExceptions.php DelegatorInternals.php Log: Various aesthetic changes

http://cvs.php.net/diff.php/pear/PEAR_Delegator/source/Delegator.php?r1=1.1&r2=1.2&ty=u Index: pear/PEAR_Delegator/source/Delegator.php diff -u pear/PEAR_Delegator/source/Delegator.php:1.1 pear/PEAR_Delegator/source/Delegator.php:1.2 --- pear/PEAR_Delegator/source/Delegator.php:1.1 Sun Apr 17 20:25:05 2005 +++ pear/PEAR_Delegator/source/Delegator.php Mon Apr 18 10:57:15 2005 @@ -5,34 +5,22 @@ * This file defines PEAR_Delegator, which provides delegation capabilities. * * PHP version 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * 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 web, please + * send a note to license@php.net so we can mail you a copy immediately. * + * @category PEAR * @package PEAR_Delegator - * @author Michael Witten <lingwitt@yahoo.com> + * @author Michael Witten <herrwitten@php.net> * @copyright 2004-2005 Michael Witten * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: Delegator.php,v 1.2 2005/04/18 14:57:15 herrwitten Exp $ * @link http://pear.php.net/package/PEAR_Delegator */ -// /* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 5 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at the following url: | -// | 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: Michael Witten 4100 85 <LingWitt@yahoo.com> | -// | Martin Jansen <mj@php.net> for overwhelming encouragement | -// +----------------------------------------------------------------------+ -// 4100 85 -// $Id: Delegator.php,v 1.1 2005/04/18 00:25:05 herrwitten Exp $ - /** * This includes the exceptions thrown. */ @@ -231,8 +219,7 @@ * 4. <b>class delegate</b> : A delegate that is simply the class. * 5. <b>instance delegate</b> : A delegate that is an instantiated class. * - * @since PHP 5.0.0 - * @author Michael Witten <LingWitt@yahoo.com> 4100 85 + * @author Michael Witten <herrwitten@php.net> 4100 85 * @see http://pear.php.net/manual/ * @package PEAR_Delegator */ @@ -545,8 +532,7 @@ if (count($result)) { return (count($args) > 1) ? $result : $result[$method1]; - } - else { + } else { return null; } } @@ -720,8 +706,7 @@ if ((new $specifier) instanceof $classname) { return true; } - } - elseif ($specifier instanceof $classname) { + } elseif ($specifier instanceof $classname) { return true; } @@ -746,8 +731,7 @@ { if (PEAR_Delegator::is_aExact($specifier, $classname)) { return true; - } - elseif (is_object($specifier) && (($specifier instanceof PEAR_Delegator) && $specifier->hasDelegate($classname))) { + } elseif (is_object($specifier) && (($specifier instanceof PEAR_Delegator) && $specifier->hasDelegate($classname))) { return true; } http://cvs.php.net/diff.php/pear/PEAR_Delegator/source/Delegator/DelegatorExtensions.php?r1=1.1&r2=1.2&ty=u Index: pear/PEAR_Delegator/source/Delegator/DelegatorExtensions.php diff -u pear/PEAR_Delegator/source/Delegator/DelegatorExtensions.php:1.1 pear/PEAR_Delegator/source/Delegator/DelegatorExtensions.php:1.2 --- pear/PEAR_Delegator/source/Delegator/DelegatorExtensions.php:1.1 Sun Apr 17 20:26:10 2005 +++ pear/PEAR_Delegator/source/Delegator/DelegatorExtensions.php Mon Apr 18 10:57:16 2005 @@ -4,38 +4,27 @@ /** * This file defines PEAR_Delegator extensions, which are added to any delegator with the addExtensions() method. * + * PHP version 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * 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 web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category PEAR * @package PEAR_Delegator - * @author Michael Witten <lingwitt@yahoo.com> + * @author Michael Witten <herrwitten@php.net> * @copyright 2004-2005 Michael Witten * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: DelegatorExtensions.php,v 1.2 2005/04/18 14:57:16 herrwitten Exp $ * @link http://pear.php.net/package/PEAR_Delegator */ -// /* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 5 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at the following url: | -// | 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: Michael Witten 4100 85 <LingWitt@yahoo.com> | -// | Martin Jansen <mj@php.net> for overwhelming encouragement | -// +----------------------------------------------------------------------+ -// 4100 85 -// $Id: DelegatorExtensions.php,v 1.1 2005/04/18 00:26:10 herrwitten Exp $ - /** * This class provides a static delegate that adds methods to a PEAR_Delegator instance * - * @since PHP 5.0.0 - * @author Michael Witten <LingWitt@yahoo.com> 4100 85 + * @author Michael Witten <herrwitten@php.net> 4100 85 * @see http://pear.php.net/manual/ * @package PEAR_Delegator */ @@ -337,8 +326,7 @@ foreach ($delegateArray as $delegate) { if (is_string($delegate) || method_exists($delegate, $method)) { $delegateArrayImplementors[] = $delegate; - } - else { + } else { $delegateArrayNonimplementors[] = $delegate; } } @@ -347,13 +335,11 @@ $delegates[$method] = $delegateArray[0]; } - } - else { + } else { foreach ($delegates as $delegate) { if (is_string($delegate) || method_exists($delegate, $method)) { $delegateArrayImplementors[] = $delegate; - } - else { + } else { $delegateArrayNonimplementors[] = $delegate; } } http://cvs.php.net/diff.php/pear/PEAR_Delegator/source/Delegator/DelegatorExceptions.php?r1=1.1&r2=1.2&ty=u Index: pear/PEAR_Delegator/source/Delegator/DelegatorExceptions.php diff -u pear/PEAR_Delegator/source/Delegator/DelegatorExceptions.php:1.1 pear/PEAR_Delegator/source/Delegator/DelegatorExceptions.php:1.2 --- pear/PEAR_Delegator/source/Delegator/DelegatorExceptions.php:1.1 Sun Apr 17 20:26:10 2005 +++ pear/PEAR_Delegator/source/Delegator/DelegatorExceptions.php Mon Apr 18 10:57:16 2005 @@ -4,33 +4,23 @@ /** * This file defines PEAR_Delegator exception classes. * + * PHP version 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * 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 web, please + * send a note to license@php.net so we can mail you a copy immediately. + * + * @category PEAR * @package PEAR_Delegator - * @author Michael Witten <lingwitt@yahoo.com> + * @author Michael Witten <herrwitten@php.net> * @copyright 2004-2005 Michael Witten * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: DelegatorExceptions.php,v 1.2 2005/04/18 14:57:16 herrwitten Exp $ * @link http://pear.php.net/package/PEAR_Delegator */ -// /* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 5 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at the following url: | -// | 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: Michael Witten 4100 85 <LingWitt@yahoo.com> | -// | Martin Jansen <mj@php.net> for overwhelming encouragement | -// +----------------------------------------------------------------------+ -// 4100 85 -// $Id: DelegatorExceptions.php,v 1.1 2005/04/18 00:26:10 herrwitten Exp $ - /** * This includes the base exception class. */ @@ -39,8 +29,7 @@ /** * This class is the base class for all delegator exceptions. * - * @since PHP 5.0.0 - * @author Michael Witten <LingWitt@yahoo.com> 4100 85 + * @author Michael Witten <herrwitten@php.net> 4100 85 * @see http://pear.php.net/manual/ * @package PEAR_Delegator */ @@ -51,8 +40,7 @@ /** * This class defines the exception that is thrown when an undefined class delegate is referenced. * - * @since PHP 5.0.0 - * @author Michael Witten <LingWitt@yahoo.com> 4100 85 + * @author Michael Witten <herrwitten@php.net> 4100 85 * @see http://pear.php.net/manual/ * @package PEAR_Delegator */ @@ -95,8 +83,7 @@ /** * This class defines the exception that is thrown when an undefined method is called. * - * @since PHP 5.0.0 - * @author Michael Witten <LingWitt@yahoo.com> 4100 85 + * @author Michael Witten <herrwitten@php.net> 4100 85 * @see http://pear.php.net/manual/ * @package PEAR_Delegator */ http://cvs.php.net/diff.php/pear/PEAR_Delegator/source/Delegator/DelegatorInternals.php?r1=1.1&r2=1.2&ty=u Index: pear/PEAR_Delegator/source/Delegator/DelegatorInternals.php diff -u pear/PEAR_Delegator/source/Delegator/DelegatorInternals.php:1.1 pear/PEAR_Delegator/source/Delegator/DelegatorInternals.php:1.2 --- pear/PEAR_Delegator/source/Delegator/DelegatorInternals.php:1.1 Sun Apr 17 20:26:10 2005 +++ pear/PEAR_Delegator/source/Delegator/DelegatorInternals.php Mon Apr 18 10:57:16 2005 @@ -5,34 +5,22 @@ * This file defines PEAR_Delegator, which provides delegation capabilities. * * PHP version 5 + * + * LICENSE: This source file is subject to version 3.0 of the PHP license + * that is available through the world-wide-web at the following URI: + * 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 web, please + * send a note to license@php.net so we can mail you a copy immediately. * + * @category PEAR * @package PEAR_Delegator - * @author Michael Witten <lingwitt@yahoo.com> + * @author Michael Witten <herrwitten@php.net> * @copyright 2004-2005 Michael Witten * @license http://www.php.net/license/3_0.txt PHP License 3.0 + * @version CVS: $Id: DelegatorInternals.php,v 1.2 2005/04/18 14:57:16 herrwitten Exp $ * @link http://pear.php.net/package/PEAR_Delegator */ -// /* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP Version 5 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 3.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at the following url: | -// | 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: Michael Witten 4100 85 <LingWitt@yahoo.com> | -// | Martin Jansen <mj@php.net> for overwhelming encouragement | -// +----------------------------------------------------------------------+ -// 4100 85 -// $Id: DelegatorInternals.php,v 1.1 2005/04/18 00:26:10 herrwitten Exp $ - /** * This class is a flag for the forwarding mechanism. * @@ -40,8 +28,7 @@ * mechanism. It tells delegators deep in the delegate hierarchy which * delegator is to be taken as the caller. Note: This is an internal structure. * - * @since PHP 5.0.0 - * @author Michael Witten <LingWitt@yahoo.com> 4100 85 + * @author Michael Witten <herrwitten@php.net> 4100 85 * @see http://pear.php.net/manual/ * @package PEAR_Delegator */
« previous php.pear.cvs (#31280) next »