Changeset 1281

Show
Ignore:
Timestamp:
01/22/08 17:45:43 (4 months ago)
Author:
mikey
Message:

code nazi :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/auth/strategy/stubAuthFailOverStrategy.php

    r1235 r1281  
    1212 *  
    1313 * The first result which status is not stubAuthResult::STATUS_AUTHENTICATOR_FAILURE 
    14  * will be returned. This means even if the first authenticator says the  
     14 * will be returned. This means even if the first authenticator says the 
    1515 * credentials are invalid and the second authenticator would say the attempt 
    1616 * is successfull the authentication will fail because the first result will be 
  • trunk/src/main/php/net/stubbles/events/stubCallbackListener.php

    r1209 r1281  
    1515 * Class for a callback on objects not implementing the EventListener interface. 
    1616 *  
    17  * This listener allows to register arbitrary classes for events in the event  
    18  * dispatcher without the need that these classes have to implement the  
     17 * This listener allows to register arbitrary classes for events in the event 
     18 * dispatcher without the need that these classes have to implement the 
    1919 * stubEventListener interface. 
    2020 * 
  • trunk/src/main/php/net/stubbles/events/stubEvent.php

    r417 r1281  
    1010 * Container for events. 
    1111 *  
    12  * An event is triggered via the stubEventDispatcher. It contains the name of  
    13  * the event, and optionally the context in which the event occurred and any  
     12 * An event is triggered via the stubEventDispatcher. It contains the name of 
     13 * the event, and optionally the context in which the event occurred and any 
    1414 * other information the may be of interest from the place where the event 
    1515 * was triggered. 
  • trunk/src/main/php/net/stubbles/events/stubEventDispatcher.php

    r1209 r1281  
    1515 * of an event. 
    1616 *  
    17  * The event dispatcher is the heart of the event system. It can be used to  
     17 * The event dispatcher is the heart of the event system. It can be used to 
    1818 * connect classes without the requirement to wire these classes directly. 
    1919 * Effectively, the connected classes don't even have to know about the existence 
  • trunk/src/main/php/net/stubbles/events/stubEventListener.php

    r767 r1281  
    1010 * Interface for event listeners called by stubEventDispatcher::trigger() 
    1111 *  
    12  * Event listeners can be registered in the stubEventDispatcher for events. If  
    13  * an event is triggered the listener will be notified via its handleEvent()  
    14  * method in case the event has the same name as the events the listener was  
     12 * Event listeners can be registered in the stubEventDispatcher for events. If 
     13 * an event is triggered the listener will be notified via its handleEvent() 
     14 * method in case the event has the same name as the events the listener was 
    1515 * registered for. 
    16  * Listeners can decide whether they want to handle an event only once  
    17  * (autoremove() returns true) or if they want to handle every event with the  
     16 * Listeners can decide whether they want to handle an event only once 
     17 * (autoremove() returns true) or if they want to handle every event with the 
    1818 * name they are registered for (autoremove() returns false). 
    1919 * 
  • trunk/src/main/php/net/stubbles/ipo/interceptors/stubPreInterceptor.php

    r1223 r1281  
    1414 * interface for preinterceptors 
    1515 *  
    16  * Preinterceptors are called after all initializations have been done and  
     16 * Preinterceptors are called after all initializations have been done and 
    1717 * before processing of data starts. 
    1818 * 
  • trunk/src/main/php/net/stubbles/ipo/interceptors/stubRequestPreInterceptor.php

    r1223 r1281  
    11<?php 
    22/** 
    3  * Decorator for lazy loading of pre interceptors: load and execute a pre  
     3 * Decorator for lazy loading of pre interceptors: load and execute a pre 
    44 * interceptor only if a specific request param is set. 
    55 * 
     
    1010stubClassLoader::load('net::stubbles::ipo::interceptors::stubPreInterceptor'); 
    1111/** 
    12  * Decorator for lazy loading of pre interceptors: load and execute a pre  
     12 * Decorator for lazy loading of pre interceptors: load and execute a pre 
    1313 * interceptor only if a specific request param is set. 
    1414 * 
  • trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubFilterAnnotation.php

    r731 r1281  
    1010 * Interface for filter annotations. 
    1111 * 
    12  * Use this annotation to define which filter should be used to populate a  
     12 * Use this annotation to define which filter should be used to populate a 
    1313 * property or method of a class with a value from the request. 
    1414 * 
  • trunk/src/main/php/net/stubbles/ipo/request/filters/stubFloatFilter.php

    r1274 r1281  
    1313 * Filters on request variables of type double / float. 
    1414 *  
    15  * This filter takes any value, casts it to float and checks if it complies  
     15 * This filter takes any value, casts it to float and checks if it complies 
    1616 * with the min and/or the max validator. Afterwards its multiplied with 10^x 
    1717 * (x is configureable via the registry) to get an integer value that can be 
  • trunk/src/main/php/net/stubbles/ipo/request/stubAbstractRequest.php

    r1223 r1281  
    242242     *  
    243243     * @param  stubEventDispatcher  $dispatcher  optional  dispatcher to use for signalling 
    244      *                                                     the event, if none given the  
     244     *                                                     the event, if none given the 
    245245     *                                                     default one will be used 
    246246     */ 
  • trunk/src/main/php/net/stubbles/ipo/request/stubRequest.php

    r1242 r1281  
    129129     *  
    130130     * @param  stubEventDispatcher  $dispatcher  optional  dispatcher to use for signalling 
    131      *                                                     the event, if none given the  
     131     *                                                     the event, if none given the 
    132132     *                                                     default one will be used 
    133133     */ 
  • trunk/src/main/php/net/stubbles/ipo/request/stubRequestPrefixDecorator.php

    r1223 r1281  
    216216     *  
    217217     * @param  stubEventDispatcher  $dispatcher  optional  dispatcher to use for signalling 
    218      *                                                     the event, if none given the  
     218     *                                                     the event, if none given the 
    219219     *                                                     default one will be used 
    220220     */ 
  • trunk/src/main/php/net/stubbles/ipo/request/stubRequestValueErrorXJConfFactory.php

    r1223 r1281  
    5959 
    6060    /** 
    61      * returns the data to cache  
     61     * returns the data to cache 
    6262     * 
    6363     * @return  array 
     
    9191    /** 
    9292     * creates the stubRequestValueError with the id from the given source 
    93      *  
    94      * If no source is given the default  
    9593     * 
    9694     * @param   string                 $id      id of RequestValueError to create 
  • trunk/src/main/php/net/stubbles/ipo/session/stubAbstractSession.php

    r1223 r1281  
    1313 * Base class for session implementations. 
    1414 *  
    15  * This class offers a basic implementation for session handling, mainly for  
    16  * the default values of a session which are the start time of the session,  
    17  * the fingerprint of the user and the token of the current and the next  
    18  * request. While a concrete instance is created the class checks the session  
     15 * This class offers a basic implementation for session handling, mainly for 
     16 * the default values of a session which are the start time of the session, 
     17 * the fingerprint of the user and the token of the current and the next 
     18 * request. While a concrete instance is created the class checks the session 
    1919 * to prevent the user against session fixation and session hijacking. 
    2020 * 
     
    244244        if ($value instanceof stubSerializable) { 
    245245            $this->doPutValue($key, $value->getSerialized()); 
    246         } else {         
     246        } else { 
    247247            $this->doPutValue($key, $value); 
    248248        } 
  • trunk/src/main/php/net/stubbles/lang/errorhandler/stubCompositeErrorHandler.php

    r1209 r1281  
    4747     * checks whether this error handler is responsible for the given error 
    4848     *  
    49      * This method is called in case the level is 0. It decides whether the  
     49     * This method is called in case the level is 0. It decides whether the 
    5050     * error has to be handled or if it can be omitted. 
    5151     * 
  • trunk/src/main/php/net/stubbles/lang/errorhandler/stubErrorHandler.php

    r1092 r1281  
    3131     * checks whether this error is supressable 
    3232     *  
    33      * This method is called in case the level is 0. It decides whether the  
     33     * This method is called in case the level is 0. It decides whether the 
    3434     * error has to be handled or if it can be omitted. 
    3535     * 
  • trunk/src/main/php/net/stubbles/lang/errorhandler/stubIllegalArgumentErrorHandler.php

    r1209 r1281  
    4545     * checks whether this error is supressable 
    4646     *  
    47      * This method is called in case the level is 0. A type hint infringement  
     47     * This method is called in case the level is 0. A type hint infringement 
    4848     * is never supressable. 
    4949     * 
  • trunk/src/main/php/net/stubbles/lang/errorhandler/stubLogErrorHandler.php

    r1209 r1281  
    1111 * Error handler that logs all errors. 
    1212 *  
    13  * This error handler logs all errors that occured. In a composition of error  
    14  * handlers it should be added as last one so it catches all errors that have  
     13 * This error handler logs all errors that occured. In a composition of error 
     14 * handlers it should be added as last one so it catches all errors that have 
    1515 * not been handled before. 
    1616 * 
     
    118118     * checks whether this error is supressable 
    119119     *  
    120      * This method is called in case the level is 0. An error to log is never  
     120     * This method is called in case the level is 0. An error to log is never 
    121121     * supressable. 
    122122     * 
  • trunk/src/main/php/net/stubbles/lang/serialize/stubSerializableObject.php

    r1202 r1281  
    2020     * a list of serialized properties 
    2121     *  
    22      * Do not ever use this property in extended classes. It is only protected  
     22     * Do not ever use this property in extended classes. It is only protected 
    2323     * and not private because of some PHP-$§&%&§%&! 
    2424     * 
  • trunk/src/main/php/net/stubbles/php/serializer/stubPHPSerializedData.php

    r776 r1281  
    101101     *  
    102102     * @return  string 
    103      */      
     103     */ 
    104104    public function consumeWord() 
    105105    { 
    106         $value         = substr($this->data, $this->offset, strpos($this->data, ';', $this->offset) - $this->offset);  
     106        $value         = substr($this->data, $this->offset, strpos($this->data, ';', $this->offset) - $this->offset); 
    107107        $this->offset += strlen($value) + 1;  // +1 to set the marker behind 
    108108        return $value; 
     
    113113     *  
    114114     * @return  string 
    115      */      
     115     */ 
    116116    public function consumeSize() 
    117117    { 
    118         $value         = substr($this->data, $this->offset, strpos($this->data, ':', $this->offset) - $this->offset);  
     118        $value         = substr($this->data, $this->offset, strpos($this->data, ':', $this->offset) - $this->offset); 
    119119        $this->offset += strlen($value) + 1;  // +1 to set the marker behind 
    120120        return $value; 
  • trunk/src/main/php/net/stubbles/php/serializer/stubPHPSerializer.php

    r1266 r1281  
    214214     * @return  string 
    215215     * @throws  stubFormatException if an error is encountered in the format 
    216      */   
     216     */ 
    217217    public function serialize($data, array $context = array()) 
    218218    { 
    219219        $type = gettype($data); 
    220220        switch ($type) { 
    221             case 'NULL':  
     221            case 'NULL': 
    222222                return 'N;'; 
    223223             
    224             case 'boolean':  
     224            case 'boolean': 
    225225                return 'b:' . (true === $data ? 1 : 0) . ';'; 
    226226 
     
    228228                return 'i:' . $data . ';'; 
    229229             
    230             case 'double':  
     230            case 'double': 
    231231                return 'd:' . $data . ';'; 
    232232             
    233             case 'string':  
     233            case 'string': 
    234234                return 's:' . strlen($data) . ':"' . $data . '";'; 
    235235             
     
    242242                return $s . '}'; 
    243243             
    244             case 'resource':  
     244            case 'resource': 
    245245                return ''; // ignore (resources can't be serialized) 
    246246 
     
    253253                return $this->defaultObjectMapping->serialize($this, $data, $context); 
    254254 
    255             default:  
     255            default: 
    256256                throw new stubFormatException('Cannot serialize unknown type ' . $type); 
    257257        } 
     
    265265     * @return  mixed 
    266266     * @throws  stubFormatException 
    267      */   
     267     */ 
    268268    public function unserialize(stubPHPSerializedData $serialized, array $context = array()) 
    269269    { 
  • trunk/src/main/php/net/stubbles/rdbms/pdo/stubDatabasePDOConnection.php

    r1265 r1281  
    167167     * creates a prepared statement 
    168168     *  
    169      * @param   string  $statement      SQL statement  
     169     * @param   string  $statement      SQL statement 
    170170     * @param   array   $driverOptions  optional  one or more key=>value pairs to set attribute values for the Statement object 
    171171     * @return  stubDatabasePDOStatement 
  • trunk/src/main/php/net/stubbles/rdbms/pdo/stubDatabasePDOStatement.php

    r1225 r1281  
    7676     * bind a parameter of a prepared query to the specified variable 
    7777     *  
    78      * The binding will be via reference, so it is evaluated at the time when  
    79      * the prepared statement is executed meaning that in opposite to  
    80      * bindValue() the value of the variable at the time of execution will be  
     78     * The binding will be via reference, so it is evaluated at the time when 
     79     * the prepared statement is executed meaning that in opposite to 
     80     * bindValue() the value of the variable at the time of execution will be 
    8181     * used, not the value at the time when this method is called. 
    8282     * 
     
    126126     * 
    127127     * @param  array  $values  optional  specifies all necessary information for bindParam() 
    128      *                                   the array elements must use keys corresponding to the  
     128     *                                   the array elements must use keys corresponding to the 
    129129     *                                   number of the position or name of the parameter 
    130130     * @return  stubDatabaseResult 
     
    254254     * releases resources allocated for the specified prepared query 
    255255     *  
    256      * Frees up the connection to the server so that other SQL statements may  
    257      * be issued, but leaves the statement in a state that enables it to be  
     256     * Frees up the connection to the server so that other SQL statements may 
     257     * be issued, but leaves the statement in a state that enables it to be 
    258258     * executed again. 
    259259     * 
     
    275275     * releases resources allocated for the specified prepared query 
    276276     *  
    277      * Frees up the connection to the server so that other SQL statements may  
    278      * be issued, but leaves the statement in a state that enables it to be  
     277     * Frees up the connection to the server so that other SQL statements may 
     278     * be issued, but leaves the statement in a state that enables it to be 
    279279     * executed again. 
    280280     * 
  • trunk/src/main/php/net/stubbles/rdbms/persistence/creator/stubDatabaseCreator.php

    r1225 r1281  
    4646     * method to return instances of the creator depending of the connection 
    4747     *  
    48      * Because the creator itself is stateless and only bound to the connection  
     48     * Because the creator itself is stateless and only bound to the connection 
    4949     * this factory methods prevents that a creator for a specific connection is 
    5050     * created more than once. 
  • trunk/src/main/php/net/stubbles/rdbms/persistence/eraser/stubDatabaseEraser.php

    r1225 r1281  
    4949     * method to return instances of the eraser depending of the connection 
    5050     *  
    51      * Because the eraser itself is stateless and only bound to the connection  
     51     * Because the eraser itself is stateless and only bound to the connection 
    5252     * this factory methods prevents that an eraser for a specific connection is 
    5353     * created more than once. 
     
    145145        } catch (stubDatabaseException $se) { 
    146146            throw new stubDatabaseEraserException('Can not delete any instance of ' . $entityClass->getFullQualifiedClassName() . ' by criterion ' . $criterion, $se); 
    147         }  
     147        } 
    148148         
    149149        return $deletedRows; 
  • trunk/src/main/php/net/stubbles/rdbms/persistence/finder/stubDatabaseFinder.php

    r1265 r1281  
    5151     * method to return instances of the finder depending of the connection 
    5252     *  
    53      * Because the finder itself is stateless and only bound to the connection  
     53     * Because the finder itself is stateless and only bound to the connection 
    5454     * this factory methods prevents that a finder for a specific connection is 
    5555     * created more than once. 
  • trunk/src/main/php/net/stubbles/rdbms/persistence/serializer/stubDatabaseSerializer.php

    r1265 r1281  
    5757     * method to return instances of the finder depending of the connection 
    5858     *  
    59      * Because the finder itself is stateless and only bound to the connection  
     59     * Because the finder itself is stateless and only bound to the connection 
    6060     * this factory methods prevents that a finder for a specific connection is 
    6161     * created more than once. 
  • trunk/src/main/php/net/stubbles/rdbms/stubDatabaseConnection.php

    r1225 r1281  
    7171     * creates a prepared statement 
    7272     *  
    73      * @param   string  $statement      SQL statement  
     73     * @param   string  $statement      SQL statement 
    7474     * @param   array   $driverOptions  optional  one or more key=>value pairs to set attribute values for the Statement object 
    7575     * @return  stubDatabaseStatement 
  • trunk/src/main/php/net/stubbles/rdbms/stubDatabaseConnectionData.php

    r1225 r1281  
    3232    protected $fqClassName   = 'net::stubbles::rdbms::pdo::stubDatabasePDOConnection'; 
    3333    /** 
    34      * Data Source Name, or DSN, contains the information required to  
     34     * Data Source Name, or DSN, contains the information required to 
    3535     * connect to the database 
    3636     * 
     
    6060     * set the id to use for the connection 
    6161     *  
    62      * Warning: two instances will be the same if they have the same id,  
     62     * Warning: two instances will be the same if they have the same id, 
    6363     * regardless whether the concrete connection data is differant or not. 
    6464     * You should never use the same id for differant connection datasets. 
     
    8484     * checks whether a value is equal to the class 
    8585     *  
    86      * Warning: two instances will be the same if they have the same id,  
     86     * Warning: two instances will be the same if they have the same id, 
    8787     * regardless whether the concrete connection data is differant or not. 
    8888     * You should never use the same id for differant connection datasets. 
  • trunk/src/main/php/net/stubbles/rdbms/stubDatabaseConnectionPool.php

    r1225 r1281  
    3636     * returns a connection 
    3737     *  
    38      * If the connection has not been established before it tries to create a  
     38     * If the connection has not been established before it tries to create a 
    3939     * new connection if the connection data is known. 
    4040     * 
  • trunk/src/main/php/net/stubbles/rdbms/stubDatabaseInitializer.php

    r1225 r1281  
    3131 
    3232    /** 
    33      * returns the data to cache  
     33     * returns the data to cache 
    3434     * 
    3535     * @return  array 
  • trunk/src/main/php/net/stubbles/rdbms/stubDatabaseStatement.php

    r1225 r1281  
    1919     * bind a parameter of a prepared query to the specified variable 
    2020     *  
    21      * The binding will be via reference, so it is evaluated at the time when  
    22      * the prepared statement is executed meaning that in opposite to  
    23      * bindValue() the value of the variable at the time of execution will be  
     21     * The binding will be via reference, so it is evaluated at the time when 
     22     * the prepared statement is executed meaning that in opposite to 
     23     * bindValue() the value of the variable at the time of execution will be 
    2424     * used, not the value at the time when this method is called. 
    2525     * 
     
    5151     * 
    5252     * @param  array  $values  optional  specifies all necessary information for bindParam() 
    53      *                                   the array elements must use keys corresponding to the  
     53     *                                   the array elements must use keys corresponding to the 
    5454     *                                   number of the position or name of the parameter 
    5555     * @return  stubDatabaseResult 
     
    6161     * releases resources allocated for the specified prepared query 
    6262     *  
    63      * Frees up the connection to the server so that other SQL statements may  
    64      * be issued, but leaves the statement in a state that enables it to be  
     63     * Frees up the connection to the server so that other SQL statements may 
     64     * be issued, but leaves the statement in a state that enables it to be 
    6565     * executed again. 
    6666     * 
  • trunk/src/main/php/net/stubbles/reflection/stubBaseReflectionClass.php

    r1227 r1281  
    1313 * Marker interface for stubReflectionClass and stubReflectionObject. 
    1414 *  
    15  * This interface allows to use   
    16  * net::stubbles::reflection::stubReflectionClass and  
    17  * net::stubbles::reflection::stubReflectionObject on  
     15 * This interface allows to use 
     16 * net::stubbles::reflection::stubReflectionClass and 
     17 * net::stubbles::reflection::stubReflectionObject on 
    1818 * the same argument when the argument is typehinted with this interface. 
    1919 *  
     
    2626     * returns the full qualified class name of the reflected class 
    2727     *  
    28      * If the class has not been loaded with stubClassLoader the non qualified  
     28     * If the class has not been loaded with stubClassLoader the non qualified 
    2929     * class name will be returned. 
    3030     * 
  • trunk/src/main/php/net/stubbles/reflection/stubReflectionClass.php

    r1217 r1281  
    112112     * returns the full qualified class name of the reflected class 
    113113     *  
    114      * If the class has not been loaded with stubClassLoader the non qualified  
     114     * If the class has not been loaded with stubClassLoader the non qualified 
    115115     * class name will be returned. 
    116116     * 
  • trunk/src/main/php/net/stubbles/reflection/stubReflectionObject.php

    r1227 r1281  
    119119     * returns the full qualified class name of the reflected class 
    120120     *  
    121      * If the class has not been loaded with stubClassLoader the non qualified  
     121     * If the class has not been loaded with stubClassLoader the non qualified 
    122122     * class name will be returned. 
    123123     * 
  • trunk/src/main/php/net/stubbles/reflection/stubReflectionParameter.php

    r1227 r1281  
    161161     * @return  stubReflectionFunction 
    162162     */ 
    163     # well, manual says its there, its even in php cvs, but calling  
     163    # well, manual says its there, its even in php cvs, but calling 
    164164    # ReflectionParameter::getDeclaringFunction() results in a fatal error 
    165165    # with message "Call to undefined method" 
  • trunk/src/main/php/net/stubbles/util/cache/stubCacheXJConfInitializer.php

    r1230 r1281  
    3131 
    3232    /** 
    33      * returns the data to cache  
     33     * returns the data to cache 
    3434     * 
    3535     * @return  array 
  • trunk/src/main/php/net/stubbles/util/datespan/stubDateSpanDay.php

    r1230 r1281  
    4949     */ 
    5050    public function toString() 
    51     {         
     51    { 
    5252        return $this->from->format('l, d.m.Y'); 
    5353    } 
  • trunk/src/main/php/net/stubbles/util/datespan/stubDateSpanMonth.php

    r1230 r1281  
    4949                    $month--; 
    5050                } 
    51             }      
     51            } 
    5252        } 
    5353         
  • trunk/src/main/php/net/stubbles/util/log/stubBaseLogData.php

    r1230 r1281  
    1414 * Basic class for log data. 
    1515 *  
    16  * This is a basic implementation of the stubLogData interface. The first two  
    17  * fields of the log data will be the time when the object was created and the  
     16 * This is a basic implementation of the stubLogData interface. The first two 
     17