contenido\tools\mpAutoloaderClassMap\mpClassMapFileCreatorContenido.php
Contains class to create a class map file.
- Author
- Murat Purc
- Category
- Development
- Copyright
- Copyright (c) 2010 Murat Purc (http://www.purc.de)
- License
- - GNU General Public License, version 2
- Package
- mpAutoloaderClassMap
- Version
- $Id: mpClassMapFileCreatorContenido.php 3443 2012-10-11 23:31:20Z xmurrix $
\mpClassMapFileCreatorContenido
Package: mpAutoloaderClassMap




Parameters
Class to create a PHP file which contains a assoziative PHP array.
Generated file will contain a PHP array as following:
return array(
'{classname}' => '{path_to_classfile}',
'{classname2}' => '{path_to_classfile2}',
);
- Parent(s)
- \mpClassMapFileCreator
- Author
- Murat Purc
- Category
- Development
Properties


\stdClass $_data = ''
Default value
''
Details- Type
- \stdClass
- Inherited_from
- \mpClassMapFileCreator::$$_data


string $_template = ''
Default value
''
Details- Type
- string
- Inherited_from
- \mpClassMapFileCreator::$$_template
Methods


__construct( $contenidoInstallPath) : void
Sets template and template replacements
Parameters
Name | Type | Description |
---|---|---|
$contenidoInstallPath |


_createClassMap( $data) : void
inherited
Fills template replacement variable with generated assoziative PHP array
Inherited from: \mpClassMapFileCreator::_createClassMap()Parameters
Details
Name | Type | Description |
---|---|---|
$data |
- array
Assoziative list with class type tokens and files


_renderTemplate() : string
inherited
Replaces all wildcards in template with related template variables.
Inherited from: \mpClassMapFileCreator::_renderTemplate()Returns
Type | Description |
---|---|
string | Replaced template |


create(array $data, string $file) : void
Creates classmap file with passed data list.
Prepares the classmap entries before passing them to parents create function.
Name | Type | Description |
---|---|---|
$data | array | Assoziative list which contains class type tokens and the related path to the class file. |
$file | string | Destination class map file |