Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • 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

Classes

  • mpClassMapFileCreator
  • mpClassMapFileCreatorContenido
  • mpClassTypeFinder
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  1: <?php
  2: /**
  3:  * Contains class to create a class map file.
  4:  *
  5:  * @category    Development
  6:  * @package     mpAutoloaderClassMap
  7:  * @author        Murat Purc <murat@purc.de>
  8:  * @copyright   Copyright (c) 2010 Murat Purc (http://www.purc.de)
  9:  * @license     http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2
 10:  * @version     $Id: mpClassMapFileCreatorContenido.php 3215 2012-09-14 08:47:07Z simon.sprankel $
 11:  */
 12: 
 13: include_once('mpClassMapFileCreator.php');
 14: 
 15: /**
 16:  * Class to create a PHP file which contains a assoziative PHP array.
 17:  *
 18:  * Generated file will contain a PHP array as following:
 19:  * <code>
 20:  * return array(
 21:  *     '{classname}' => '{path_to_classfile}',
 22:  *     '{classname2}' => '{path_to_classfile2}',
 23:  * );
 24:  * </code>
 25:  *
 26:  * @category    Development
 27:  * @package     mpAutoloaderClassMap
 28:  * @author        Murat Purc <murat@purc.de>
 29:  */
 30: class mpClassMapFileCreatorContenido extends mpClassMapFileCreator
 31: {
 32:     private $_contenidoInstallPath;
 33: 
 34:     public function __construct($contenidoInstallPath)
 35:     {
 36:         parent::__construct();
 37: 
 38:         $this->_contenidoInstallPath = $contenidoInstallPath;
 39: 
 40:         $this->_template = trim('
 41: <?php
 42: /**
 43:  * Project:
 44:  * CONTENIDO Content Management System
 45:  *
 46:  * Description:
 47: {DESCRIPTION}
 48:  *
 49:  * @package    {PACKAGE}
 50:  * @version    {VERSION}
 51:  * @author     {AUTHOR}
 52:  * @copyright  {COPYRIGHT}
 53:  * @license    {LICENSE}
 54:  * @link       {LINK}
 55:  * @link       {LINK2}
 56:  * @since      {SINCE}
 57:  */
 58: 
 59: {CONTENT}
 60: ');
 61:         $this->_data->description = ' ' . trim('
 62:  * CONTENIDO autoloader classmap file. Contains all available classes and
 63:  * related class files in several CONTENIDO folder.
 64:  *
 65:  * NOTES:
 66:  * - Don\'t edit this file manually, it was generated by ' . __CLASS__ . '!
 67:  * - Use ' . __CLASS__ . ' again, if you want to regenerate this file
 68:  * - See related sources in
 69:  *    - contenido/tools/create_autoloader_cfg.php
 70:  *    - contenido/tools/mpAutoloaderClassMap/
 71:  *   for more details
 72:  * - Read also docs/techref/backend/backend.autoloader.html to get involved in
 73:  *   CONTENIDO autoloader mechanism
 74:  *');
 75: 
 76:         $this->_data->package       = 'CONTENIDO Backend Includes';
 77:         $this->_data->version       = '0.1';
 78:         $this->_data->author        = 'System';
 79:         $this->_data->copyright     = 'four for business AG <www.4fb.de>';
 80:         $this->_data->license       = 'http://www.contenido.org/license/LIZENZ.txt';
 81:         $this->_data->link          = 'http://www.4fb.de';
 82:         $this->_data->link2         = 'http://www.contenido.org';
 83:         $this->_data->since         = 'file available since CONTENIDO release >= 4.9.0';
 84:     }
 85: 
 86: 
 87:     /**
 88:      * Creates classmap file with passed data list. Prepares the classmap entries
 89:      * before passing them to parents create function.
 90:      *
 91:      * @param   array  $data   Assoziative list which contains class type tokens and
 92:      *                         the related path to the class file.
 93:      * @param   string  $file  Destination class map file
 94:      * @return  void
 95:      */
 96:     public function create(array $data, $file)
 97:     {
 98:         // remove path from root to CONTENIDO installation
 99:         foreach ($data as $k => $v) {
100:             $data[$k] = str_replace($this->_contenidoInstallPath, '', $v);
101:         }
102: 
103:         return parent::create($data, $file);
104:     }
105: 
106: }
107: 
CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0