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}',
);

category Development
package mpAutoloaderClassMap
author Murat Purc

 Methods

Sets template and template replacements

__construct($contenidoInstallPath) : void

Parameters

$contenidoInstallPath

Creates classmap file with passed data list. Prepares the classmap entries before passing them to parents create function.

create(array $data, string $file) : void

Parameters

$data

array

Assoziative list which contains class type tokens and the related path to the class file.

$file

string

Destination class map file

Fills template replacement variable with generated assoziative PHP array

_createClassMap(array $data) : void
Inherited

var Assoziative list with class type tokens and files
inherited_from \mpClassMapFileCreator::_createClassMap()

Parameters

$data

Replaces all wildcards in template with related template variables.

_renderTemplate() : string
Inherited

inherited_from \mpClassMapFileCreator::_renderTemplate()

Returns

stringReplaced template

 Properties

 

Template replacements

$_data : \stdClass
Inherited

inherited_from \mpClassMapFileCreator::$$_data
 

Class map file template

$_template : string
Inherited

inherited_from \mpClassMapFileCreator::$$_template
 

$_contenidoInstallPath

$_contenidoInstallPath