Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • mpClassMapFileCreator
  • mpClassMapFileCreatorContenido
  • mpClassTypeFinder
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class mpClassTypeFinder

Class to find class type tokens

Package: mpAutoloaderClassMap
Category: Development
Copyright: Copyright (c) 2009-2010 Murat Purc (http://www.purc.de)
License: - GNU General Public License, version 2
Author: Murat Purc murat@purc.de
Located at tools/mpAutoloaderClassMap/mpClassTypeFinder.php
Methods summary
public
# __construct( array $options = array() )

Initializes class with passed options

Initializes class with passed options

Parameters

$options

Assoziative options array as follows: - excludeDirs: (array) List of directories to exclude, optional. Default values are '.svn' and '.cvs'. - excludeFiles: (array) List of files to exclude, optional. Default values are '/^~..php$/' and '/^~..inc$/'. - extensionsToParse: (array) List of file extensions to parse, optional. Default values are '.php' and '.inc'. - enableDebug: (bool) Flag to enable debugging, optional. Default value is false.

public
# setExcludeDirs( array $excludeDirs )

Sets directories to exclude

Sets directories to exclude

Parameters

$excludeDirs
public array
# getExcludeDirs( )

Returns list of directories to exclude

Returns list of directories to exclude

Returns

array
public
# setExcludeFiles( array $excludeFiles )

Sets files to exclude

Sets files to exclude

Parameters

$excludeFiles

Feasible values are - temp.php (single file name) - ~.php (with * wildcard) Will be replaced against regex '/^~..php$/'

public array
# getExcludeFiles( )

Returns list of files to exclude

Returns list of files to exclude

Returns

array
public
# setExtensionsToParse( array $extensionsToParse )

Sets file extensions to parse

Sets file extensions to parse

Parameters

$extensionsToParse
public array
# getExtensionsToParse( )

Returns list of file extension to parse

Returns list of file extension to parse

Returns

array
public array|null
# findInDir( SplFileInfo $fileInfo, boolean $recursive = true )

Detects all available class type tokens in found files inside passed directory.

Detects all available class type tokens in found files inside passed directory.

Parameters

$fileInfo
$recursive
Flag to parse directory recursive

Returns

array|null

Either a assoziative array where the key is the class type token and the value is the path or NULL.

public array|null
# findInFile( SplFileInfo $fileInfo )

Detects all available class type tokens in passed file

Detects all available class type tokens in passed file

Parameters

$fileInfo

Returns

array|null

Either a assoziative array where the key is the class type token and the value is the path or NULL.

public array
# getDebugMessages( )

Returns list of debug messages

Returns list of debug messages

Returns

array
public string
# getFormattedDebugMessages( string $delemiter = "\n", string $wrap = '%s' )

Returns debug messages in a formatted way.

Returns debug messages in a formatted way.

Parameters

$delemiter
Delemiter between each message
$wrap

String with %s type specifier used to wrap all messages

Returns

string
Formatted string

Throws

cInvalidArgumentException
if the given wrap does not contain %s
protected
# _debug( string $msg )

Adds passed message to debug list, if debugging is enabled

Adds passed message to debug list, if debugging is enabled

Parameters

$msg
protected RecursiveIteratorIterator|DirectoryIterator
# _getDirIterator( SplFileInfo $fileInfo, boolean $recursive )

Returns directory iterator depending on $recursive parameter value

Returns directory iterator depending on $recursive parameter value

Parameters

$fileInfo
$file
$recursive

Returns

RecursiveIteratorIterator|DirectoryIterator
protected boolean
# _isFileToProccess( SplFileInfo $file )

Checks if file is to proccess

Checks if file is to proccess

Parameters

$file

Returns

boolean
protected boolean
# _isDirToExclude( SplFileInfo $file )

Checks if directory is to exclude

Checks if directory is to exclude

Parameters

$file

Returns

boolean
protected boolean
# _isFileToExclude( SplFileInfo $file )

Checks if file is to exclude

Checks if file is to exclude

Parameters

$file

Returns

boolean
protected boolean
# _isFileToParse( SplFileInfo $file )

Checks if file is to parse (if file extension matches)

Checks if file is to parse (if file extension matches)

Parameters

$file

Returns

boolean
protected string
# _normalizePathSeparator( string $path )

Replaces windows style directory separator (backslash against slash)

Replaces windows style directory separator (backslash against slash)

Parameters

$path

Returns

string
Properties summary
protected array $_excludeDirs

List of directories to ignore (note: is case insensitive)

List of directories to ignore (note: is case insensitive)

# array('.svn', '.cvs')
protected array $_excludeFiles

List of files to ignore, regex pattern is also accepted (note: is case insensitive)

List of files to ignore, regex pattern is also accepted (note: is case insensitive)

# array('/^~*.\.php$/', '/^~*.\.inc$/')
protected array $_extensionsToParse

List of file extensions to parse (note: is case insensitive)

List of file extensions to parse (note: is case insensitive)

# array('.php', '.inc')
protected boolean $_enableDebug

Flag to enable debugging, all messages will be collected in property _debugMessages, if enabled

Flag to enable debugging, all messages will be collected in property _debugMessages, if enabled

# false
protected array $_debugMessages

List of debugging messages, will e filled, if debugging is active

List of debugging messages, will e filled, if debugging is active

# array()
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen