autoloader
[ class tree: autoloader ] [ index: autoloader ] [ all elements ]

Class: AutoloaderFileParser_RegExp

Source Location: /classes/parser/AutoloaderFileParser_RegExp.php

Class Overview

AutoloaderFileParser
   |
   --AutoloaderFileParser_RegExp

Implementation using a regulare expression.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (C) 2010 Markus Malkusch

Methods


Inherited Methods


Class Details

[line 36]
Implementation using a regulare expression.

This is not as reliable as the AutoloaderFileParser_Tokenizer. But if there's not tokenizer support this is a well working fallback. This class is as well as the regular expression '~\s*((abstract\s+)?class|interface)\s+'.$class.'[$\s#/{]~im'.




Tags:

author:  Markus Malkusch <markus@malkusch.de>
version:  1.0
copyright:  Copyright (C) 2010 Markus Malkusch
see:  AutoloaderFileParser_Tokenizer


[ Top ]


Class Methods


static method isSupported [line 42]

static bool isSupported( )



Tags:

access:  public


Overrides AutoloaderFileParser::isSupported() (parent method not documented)

[ Top ]

method isClassInSource [line 52]

bool isClassInSource( String $class, String $source)



Tags:

access:  public


Overrides AutoloaderFileParser::isClassInSource() (parent method not documented)

Parameters:

String   $class  
String   $source  

[ Top ]


Documentation generated on Fri, 27 Nov 2009 11:36:34 +0100 by phpDocumentor 1.4.3