PHP 8.2.30
Preview: argument_already_registered.php Size: 1.57 KB
/opt/cloudlinux/alt-php53/root/usr/share/pear/ezc/ConsoleTools/exceptions/argument_already_registered.php

<?php
/**
 * File containing the ezcConsoleArgumentAlreadyRegisteredException class.
 * 
 * @package ConsoleTools
 * @version 1.6.1
 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */

/**
 * There is already an argument registered with the given name or at the given place.
 *
 * @package ConsoleTools
 * @version 1.6.1
 */
class ezcConsoleArgumentAlreadyRegisteredException extends ezcConsoleException
{
    /**
     * The name of the argument is already in use.
     */
    const NAMED = 1;
    
    /**
     * The position of the argument is already in use. Unset the position first and the re-register.
     */
    const ORDERED = 2;

    /**
     * Creates a new exception object.
     * The $type parameter can either be
     * {@link ezcConsoleArgumentAlreadyRegisteredException::NAMED} or
     * {@link ezcConsoleArgumentAlreadyRegisteredException::ORDERED}, indicating
     * if the name of the parameter or its place are already taken.
     * 
     * @param int $offset Offset of the already reagistered argument.
     * @param int $type   Type of the offset.
     * @return void
     */
    public function __construct( $offset, $type )
    {
        switch ( $type )
        {
            case self::NAMED:
                $message = "Argument with name '$offset' already registered.";
                break;
            case self::ORDERED:
                $message = "Argument at position '$offset' already registered.";
                break;
        }
        parent::__construct( $message );
    }
}
?>

Directory Contents

Dirs: 0 × Files: 23

Name Size Perms Modified Actions
649 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
1.57 KB lrw-r--r-- 2019-12-18 11:15:10
Edit Download
900 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
949 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
1.11 KB lrw-r--r-- 2019-12-18 11:15:10
Edit Download
694 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
427 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
793 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
750 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
683 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
707 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
640 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
744 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
926 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
1.27 KB lrw-r--r-- 2019-12-18 11:15:10
Edit Download
1.25 KB lrw-r--r-- 2019-12-18 11:15:10
Edit Download
871 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
901 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
803 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
778 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
779 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
886 B lrw-r--r-- 2019-12-18 11:15:10
Edit Download
1.25 KB lrw-r--r-- 2019-12-18 11:15:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).