1: <?php
2: /**
3: * This file contains the cContentTypeRaw class.
4: *
5: * @package Core
6: * @subpackage ContentType
7: * @version SVN Revision $Rev:$
8: *
9: * @author Frederic Schneider
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: /**
19: * Content type CMS_RAW which contains hidding texts
20: *
21: * @package Core
22: * @subpackage ContentType
23: */
24: class cContentTypeRaw extends cContentTypeAbstract {
25:
26: /**
27: * Initialises class attributes and handles store events.
28: *
29: * @param string $rawSettings the raw settings in an XML structure or as
30: * plaintext
31: * @param int $id ID of the content type, e.g. 3 if CMS_RAW[3] is
32: * used
33: * @param array $contentTypes array containing the values of all content
34: * types
35: */
36: public function __construct($rawSettings, $id, array $contentTypes) {
37: // change attributes from the parent class and call the parent
38: // constructor
39: parent::__construct($rawSettings, $id, $contentTypes);
40: $this->_type = 'CMS_RAW';
41: $this->_prefix = 'raw';
42: }
43:
44: public function generateViewCode() {
45: return $this->_encodeForOutput($this->_rawSettings);
46: }
47:
48: public function generateEditCode() {
49: return $this->_encodeForOutput($this->_rawSettings);
50: }
51:
52: }