1: <?php
2:
3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: include_once('mpClassMapFileCreator.php');
15:
16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30:
31: class mpClassMapFileCreatorContenido extends mpClassMapFileCreator {
32:
33: 34: 35: 36:
37: private $_contenidoInstallPath;
38:
39: 40: 41: 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: 97: 98: 99: 100: 101: 102: 103: 104: 105:
106: public function create(array $data, $file) {
107:
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: