contenido\tools\mpAutoloaderClassMap\mpClassMapFileCreator.php

Show: PublicProtectedPrivateinherited
Table of Contents
Contains class to create a class map file.
Author
Murat Purc  
Category
Development  
Copyright
Copyright (c) 2009-2010 Murat Purc (http://www.purc.de)  
License
http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2  
Package
mpAutoloaderClassMap  
Version
$Id: mpClassMapFileCreator.php 3442 2012-10-11 22:33:10Z xmurrix $  

\mpClassMapFileCreator

Package: mpAutoloaderClassMap
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}',
);
Children
\mpClassMapFileCreatorContenido
Author
Murat Purc  
Category
Development  

Properties

>VPropertyprotected\stdClass $_data = ''
Template replacements
Default value''Details
Type
\stdClass
>VPropertyprotectedstring $_template = ''
Class map file template
Default value''Details
Type
string

Methods

methodpublic__construct() : void

Sets template and template replacements

methodprotected_createClassMap( $data) : void

Fills template replacement variable with generated assoziative PHP array

Parameters
NameTypeDescription
$data
Details
array

Assoziative list with class type tokens and files

methodprotected_renderTemplate() : string

Replaces all wildcards in template with related template variables.

Returns
TypeDescription
stringReplaced template
methodpubliccreate(array $data, string $file) : void

Creates classmap file with passed data list

Parameters
NameTypeDescription
$dataarray

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

$filestring

Destination class map file

Documentation was generated by phpDocumentor 2.0.0a12.