Changeset 209

Show
Ignore:
Timestamp:
02/05/07 19:13:43 (2 years ago)
Author:
schst
Message:

Ignore destructor and all methods that start with two underscores

Files:

Legend:

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

    r155 r209  
    2020class stubXMLSerializer extends stubBaseObject { 
    2121 
     22    /** 
     23     * Option to define the root tag of the serialized document 
     24     */ 
    2225    const OPT_ROOT_TAG    = 1; 
    2326 
     
    152155                continue; 
    153156            } 
    154             if ($method->isConstructor()) { 
     157            if ($method->isConstructor() || $method->isDestructor()) { 
     158                continue; 
     159            } 
     160            if (0 == strncmp($method->getName(), '__', 2)) { 
    155161                continue; 
    156162            } 
  • trunk/src/test/php/net/stubbles/xml/stubXMLSerializerTestCase.php

    r129 r209  
    6464 */ 
    6565class XMLSerializerMethods { 
     66 
     67    public function __construct() {} 
     68    public function __destruct() {} 
     69    public function __get($prop) {} 
    6670 
    6771    /**