Changeset 841

Show
Ignore:
Timestamp:
08/15/07 15:56:46 (1 year ago)
Author:
mikey
Message:

fixed typo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/xml/xsl/stubXSLCallback.php

    r180 r841  
    3131     */ 
    3232    protected $callbacks = array(); 
    33      
     33 
    3434    /** 
    3535     * constructor 
     
    3939        // intentionally empty 
    4040    } 
    41      
     41 
    4242    /** 
    4343     * returns an instance of this class 
     
    5353        return self::$instance; 
    5454    } 
    55      
     55 
    5656    /** 
    5757     * clone is forbidden 
     
    6161        throw new stubException('Cloning of ' . __CLASS__ . ' is not allowed.'); 
    6262    } 
    63      
     63 
    6464    /** 
    6565     * register a new instance as callback 
     
    7272        $this->callbacks[$name] = $callback; 
    7373    } 
    74      
     74 
    7575    /** 
    7676     * removes callback with given name 
     
    8484        } 
    8585    } 
    86      
     86 
    8787    /** 
    8888     * clears all callbacks 
     
    9292        $this->callbacks = array(); 
    9393    } 
    94      
     94 
    9595    /** 
    9696     * check if a callback exists for the given name 
     
    103103        return isset($this->callbacks[$name]); 
    104104    } 
    105      
     105 
    106106    /** 
    107107     * returns the callback with the given name 
     
    118118        return null; 
    119119    } 
    120      
     120 
    121121    /** 
    122122     * invoke a method on a callback class 
     
    137137        $name   = array_shift($arguments); 
    138138        if (self::$instance->hasCallback($name) == false) { 
    139             throw new stubXSLCallbackException('A callbacks with the name ' . $name . ' does not exist.'); 
     139            throw new stubXSLCallbackException('A callback with the name ' . $name . ' does not exist.'); 
    140140        } 
    141141         
     
    144144        $class      = $callback->getClass(); 
    145145        if ($class->hasMethod($methodName) == false) { 
    146             throw new stubXSLCallbackException('Callbacks with name ' . $name . ' does not have a method named ' . $methodName); 
     146            throw new stubXSLCallbackException('Callback with name ' . $name . ' does not have a method named ' . $methodName); 
    147147        } 
    148148