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
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • 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

  • cCodeGeneratorAbstract
  • cCodeGeneratorFactory
  • cCodeGeneratorStandard
  • cContentTypeAbstract
  • cContentTypeAbstractTabbed
  • cContentTypeDate
  • cContentTypeFilelist
  • cContentTypeHead
  • cContentTypeHtml
  • cContentTypeHtmlhead
  • cContentTypeImg
  • cContentTypeImgdescr
  • cContentTypeImgeditor
  • cContentTypeLink
  • cContentTypeLinkdescr
  • cContentTypeLinkeditor
  • cContentTypeLinktarget
  • cContentTypeRaw
  • cContentTypeTeaser
  • cContentTypeText
  • cTypeGenerator
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: 
 3: /**
 4:  * This file contains the cContentTypeRaw class.
 5:  *
 6:  * @package Core
 7:  * @subpackage ContentType
 8:  * @author Frederic Schneider
 9:  * @copyright four for business AG <www.4fb.de>
10:  * @license http://www.contenido.org/license/LIZENZ.txt
11:  * @link http://www.4fb.de
12:  * @link http://www.contenido.org
13:  */
14: 
15: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
16: 
17: /**
18:  * Content type CMS_RAW which contains hidding texts
19:  *
20:  * @package Core
21:  * @subpackage ContentType
22:  */
23: class cContentTypeRaw extends cContentTypeAbstract {
24: 
25:     /**
26:      * Initialises class attributes and handles store events.
27:      *
28:      * @param string $rawSettings
29:      *         the raw settings in an XML structure or as plaintext
30:      * @param int $id
31:      *         ID of the content type, e.g. 3 if CMS_RAW[3] is used
32:      * @param array $contentTypes
33:      *         array containing the values of all content types
34:      */
35:     public function __construct($rawSettings, $id, array $contentTypes) {
36: 
37:         // call parent constructor
38:         parent::__construct($rawSettings, $id, $contentTypes);
39: 
40:         // set props
41:         $this->_type = 'CMS_RAW';
42:         $this->_prefix = 'raw';
43: 
44:     }
45: 
46:     /**
47:      * @see cContentTypeAbstract::generateViewCode()
48:      * @return string
49:      *         encoded raw settings
50:      */
51:     public function generateViewCode() {
52:         return $this->_encodeForOutput($this->_rawSettings);
53:     }
54: 
55:     /**
56:      * @see cContentTypeAbstract::generateEditCode()
57:      * @return string
58:      *         encoded raw settings
59:      */
60:     public function generateEditCode() {
61:         return $this->_encodeForOutput($this->_rawSettings);
62:     }
63: 
64: }
65: 
CMS CONTENIDO 4.9.8 API documentation generated by ApiGen 2.8.0