public static function createNew( $docType = null )
    {
        if ( ( $docType === null ) &&
             function_exists( 'get_called_class' ) )
        {
            $docType = get_called_class();
        }
        elseif ( $docType === null )
        {
            throw new phpillowRuntimeException( 'Invalid docType provided to createNew.' );
        }

        return new $docType();
    }
public static function createNew( $docType = null )
    {
        if ( ( $docType === null ) &&
             function_exists( 'get_called_class' ) )
        {
            $docType = get_called_class();
        }
        elseif ( $docType === null )
        {
            throw new phpillowRuntimeException( 'Invalid docType provided to createNew.' );
        }

        return new $docType();
    }
public static function createNew ( $ docType = null ) { if ( ( $ docType === null ) && function_exists ( 'get_called_class' ) ) { $ docType = get_called_class ( ) ; } elseif ( $ docType === null ) { throw new phpillowRuntimeException ( 'Invalid docType provided to createNew.' ) ; } return new $ docType ( ) ; }
Create a new instance of the document class

Create a new instance of the statically called document class.
Implementing this method should only be required when using PHP 5.2 and
lower, otherwise the class can be determined using LSB.

Do not pass a parameter to this method, this is only used to maintain
the called class information for PHP 5.2 and lower.

@param mixed $docType
@return phpillowDocument
Create a new instance of the document class