Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • 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: /**
  4:  * Contains class to create a class map file.
  5:  *
  6:  * @category    Development
  7:  * @package     mpAutoloaderClassMap
  8:  * @author        Murat Purc <murat@purc.de>
  9:  * @copyright   Copyright (c) 2010 Murat Purc (http://www.purc.de)
 10:  * @license     http://www.gnu.org/licenses/gpl-2.0.html - GNU General Public License, version 2
 11:  * @version     $Id$
 12:  */
 13: 
 14: include_once('mpClassMapFileCreator.php');
 15: 
 16: /**
 17:  * Class to create a PHP file which contains a assoziative PHP array.
 18:  *
 19:  * Generated file will contain a PHP array as following:
 20:  * <code>
 21:  * return array(
 22:  *     '{classname}' => '{path_to_classfile}',
 23:  *     '{classname2}' => '{path_to_classfile2}',
 24:  * );
 25:  * </code>
 26:  *
 27:  * @category    Development
 28:  * @package     mpAutoloaderClassMap
 29:  * @author        Murat Purc <murat@purc.de>
 30:  */
 31: class mpClassMapFileCreatorContenido extends mpClassMapFileCreator {
 32: 
 33:     /**
 34:      *
 35:      * @var string
 36:      */
 37:     private $_contenidoInstallPath;
 38: 
 39:     /**
 40:      *
 41:      * @param string $contenidoInstallPath
 42:      */
 43:     public function __construct($contenidoInstallPath)     {
 44: 
 45:         parent::__construct();
 46: 
 47:         $this->_contenidoInstallPath = $contenidoInstallPath;
 48: 
 49:         $this->_template = trim('
 50: <?php
 51: /**
 52:  * Project:
 53:  * CONTENIDO Content Management System
 54:  *
 55:  * Description:
 56: {DESCRIPTION}
 57:  *
 58:  * @package    {PACKAGE}
 59:  * @version    {VERSION}
 60:  * @author     {AUTHOR}
 61:  * @copyright  {COPYRIGHT}
 62:  * @license    {LICENSE}
 63:  * @link       {LINK}
 64:  * @link       {LINK2}
 65:  * @since      {SINCE}
 66:  */
 67: 
 68: {CONTENT}
 69: ');
 70:         $this->_data->description = ' ' . trim('
 71:  * CONTENIDO autoloader classmap file. Contains all available classes and
 72:  * related class files in several CONTENIDO folder.
 73:  *
 74:  * NOTES:
 75:  * - Don\'t edit this file manually, it was generated by ' . __CLASS__ . '!
 76:  * - Use ' . __CLASS__ . ' again, if you want to regenerate this file
 77:  * - See related sources in
 78:  *    - contenido/tools/create_autoloader_cfg.php
 79:  *    - contenido/tools/mpAutoloaderClassMap/
 80:  *   for more details
 81:  * - Read also docs/techref/backend/backend.autoloader.html to get involved in
 82:  *   CONTENIDO autoloader mechanism
 83:  *');
 84: 
 85:         $this->_data->package       = 'CONTENIDO Backend Includes';
 86:         $this->_data->version       = '0.1';
 87:         $this->_data->author        = 'System';
 88:         $this->_data->copyright     = 'four for business AG <www.4fb.de>';
 89:         $this->_data->license       = 'http://www.contenido.org/license/LIZENZ.txt';
 90:         $this->_data->link          = 'http://www.4fb.de';
 91:         $this->_data->link2         = 'http://www.contenido.org';
 92:         $this->_data->since         = 'file available since CONTENIDO release >= 4.9.0';
 93:     }
 94: 
 95:     /**
 96:      * Creates classmap file with passed data list. Prepares the classmap entries
 97:      * before passing them to parents create function.
 98:      *
 99:      * @param array $data
100:      *         Assoziative list which contains class type tokens
101:      *         and the related path to the class file.
102:      * @param string $file
103:      *         Destination class map file
104:      * @return bool
105:      */
106:     public function create(array $data, $file) {
107:         // remove path from root to CONTENIDO installation
108:         foreach ($data as $k => $v) {
109:             $data[$k] = str_replace($this->_contenidoInstallPath, '', $v);
110:         }
111: 
112:         return parent::create($data, $file);
113:     }
114: 
115: }
116: 
CMS CONTENIDO 4.10.0 API documentation generated by ApiGen 2.8.0