1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
12:
13: include_once('mpClassMapFileCreator.php');
14:
15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 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: 89: 90: 91: 92: 93: 94: 95:
96: public function create(array $data, $file)
97: {
98:
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: