contenido\tools\mpAutoloaderClassMap\mpClassMapFileCreatorContenido.php

Show: PublicProtectedPrivateinherited
Table of Contents
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
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

>VPropertyprivate$_contenidoInstallPath
Details
Type
n/a
>VPropertyprotected\stdClass $_data = ''
inherited
Template replacements
Inherited from: \mpClassMapFileCreator::$$_data
Default value''Details
Type
\stdClass
Inherited_from
\mpClassMapFileCreator::$$_data  
>VPropertyprotectedstring $_template = ''
inherited
Class map file template
Inherited from: \mpClassMapFileCreator::$$_template
Default value''Details
Type
string
Inherited_from
\mpClassMapFileCreator::$$_template  

Methods

methodpublic__construct( $contenidoInstallPath) : void

Sets template and template replacements

Parameters
NameTypeDescription
$contenidoInstallPath
methodprotected_createClassMap( $data) : void
inherited

Fills template replacement variable with generated assoziative PHP array

Inherited from: \mpClassMapFileCreator::_createClassMap()
Parameters
NameTypeDescription
$data
Details
array

Assoziative list with class type tokens and files

methodprotected_renderTemplate() : string
inherited

Replaces all wildcards in template with related template variables.

Inherited from: \mpClassMapFileCreator::_renderTemplate()
Returns
TypeDescription
stringReplaced template
methodpubliccreate(array $data, string $file) : void

Creates classmap file with passed data list.

Prepares the classmap entries before passing them to parents create function.

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.