Overview

Namespaces

  • Charcoal
    • Admin
      • Widget
        • Cms
    • Cms
      • Config
      • Mixin
        • Traits
      • Route
      • Section
      • Service
        • Loader
        • Manager
      • ServiceProvider
      • Support
        • Helpers
        • Interfaces
        • Traits
    • Property

Classes

  • Charcoal\Admin\Widget\Cms\HierarchicalSectionTableWidget
  • Charcoal\Admin\Widget\Cms\SectionTableWidget
  • Charcoal\Cms\AbstractDocument
  • Charcoal\Cms\AbstractEvent
  • Charcoal\Cms\AbstractFaq
  • Charcoal\Cms\AbstractImage
  • Charcoal\Cms\AbstractNews
  • Charcoal\Cms\AbstractSection
  • Charcoal\Cms\AbstractText
  • Charcoal\Cms\AbstractVideo
  • Charcoal\Cms\Config
  • Charcoal\Cms\Config\CmsConfig
  • Charcoal\Cms\Config\EventConfig
  • Charcoal\Cms\Config\NewsConfig
  • Charcoal\Cms\Config\SectionConfig
  • Charcoal\Cms\Document
  • Charcoal\Cms\DocumentCategory
  • Charcoal\Cms\EmptySection
  • Charcoal\Cms\Event
  • Charcoal\Cms\EventCategory
  • Charcoal\Cms\ExternalSection
  • Charcoal\Cms\Faq
  • Charcoal\Cms\FaqCategory
  • Charcoal\Cms\Image
  • Charcoal\Cms\ImageCategory
  • Charcoal\Cms\News
  • Charcoal\Cms\NewsCategory
  • Charcoal\Cms\Route\EventRoute
  • Charcoal\Cms\Route\GenericRoute
  • Charcoal\Cms\Route\NewsRoute
  • Charcoal\Cms\Route\SectionRoute
  • Charcoal\Cms\Section
  • Charcoal\Cms\Section\BlocksSection
  • Charcoal\Cms\Section\ContentSection
  • Charcoal\Cms\Service\Loader\AbstractLoader
  • Charcoal\Cms\Service\Loader\EventLoader
  • Charcoal\Cms\Service\Loader\NewsLoader
  • Charcoal\Cms\Service\Loader\SectionLoader
  • Charcoal\Cms\Service\Manager\AbstractManager
  • Charcoal\Cms\Service\Manager\EventManager
  • Charcoal\Cms\Service\Manager\NewsManager
  • Charcoal\Cms\ServiceProvider\CmsServiceProvider
  • Charcoal\Cms\Support\Helpers\DateHelper
  • Charcoal\Cms\Tag
  • Charcoal\Cms\Text
  • Charcoal\Cms\TextCategory
  • Charcoal\Cms\Video
  • Charcoal\Cms\VideoCategory
  • Charcoal\Property\TemplateOptionsProperty
  • Charcoal\Property\TemplateProperty

Interfaces

  • Charcoal\Cms\DocumentInterface
  • Charcoal\Cms\EventInterface
  • Charcoal\Cms\FaqInterface
  • Charcoal\Cms\ImageInterface
  • Charcoal\Cms\MetatagInterface
  • Charcoal\Cms\Mixin\HasContentBlocksInterface
  • Charcoal\Cms\NewsInterface
  • Charcoal\Cms\SearchableInterface
  • Charcoal\Cms\SectionInterface
  • Charcoal\Cms\Support\Interfaces\EventManagerAwareInterface
  • Charcoal\Cms\Support\Interfaces\NewsManagerAwareInterface
  • Charcoal\Cms\Support\Interfaces\SectionLoaderAwareInterface
  • Charcoal\Cms\TemplateableInterface
  • Charcoal\Cms\TextInterface
  • Charcoal\Cms\VideoInterface

Traits

  • Charcoal\Admin\Widget\Cms\SectionTableTrait
  • Charcoal\Cms\MetatagTrait
  • Charcoal\Cms\Mixin\Traits\HasContentBlocksTrait
  • Charcoal\Cms\SearchableTrait
  • Charcoal\Cms\Support\Traits\DateHelperAwareTrait
  • Charcoal\Cms\Support\Traits\EventManagerAwareTrait
  • Charcoal\Cms\Support\Traits\NewsManagerAwareTrait
  • Charcoal\Cms\Support\Traits\SectionLoaderAwareTrait
  • Charcoal\Cms\TemplateableTrait
  • Overview
  • Namespace
  • Class
  1: <?php
  2: 
  3: namespace Charcoal\Cms;
  4: 
  5: // From 'charcoal-object'
  6: use Charcoal\Object\Content;
  7: use Charcoal\Object\CategorizableInterface;
  8: use Charcoal\Object\CategorizableTrait;
  9: use Charcoal\Object\PublishableInterface;
 10: use Charcoal\Object\PublishableTrait;
 11: 
 12: // From 'charcoal-translator'
 13: use Charcoal\Translator\Translation;
 14: 
 15: // From 'charcoal-cms'
 16: use Charcoal\Cms\SearchableInterface;
 17: use Charcoal\Cms\SearchableTrait;
 18: use Charcoal\Cms\TextInterface;
 19: 
 20: /**
 21:  * Text
 22:  */
 23: abstract class AbstractText extends Content implements
 24:     CategorizableInterface,
 25:     PublishableInterface,
 26:     SearchableInterface,
 27:     TextInterface
 28: {
 29:     use CategorizableTrait;
 30:     use PublishableTrait;
 31:     use SearchableTrait;
 32: 
 33:     /**
 34:      * @var Translation|string|null
 35:      */
 36:     private $title;
 37: 
 38:     /**
 39:      * @var Translation|string|null
 40:      */
 41:     private $subtitle;
 42: 
 43:     /**
 44:      * @var Translation|string|null
 45:      */
 46:     private $content;
 47: 
 48:     /**
 49:      * @param  mixed $title The news title (localized).
 50:      * @return TextInterface
 51:      */
 52:     public function setTitle($title)
 53:     {
 54:         $this->title = $this->translator()->translation($title);
 55:         return $this;
 56:     }
 57: 
 58:     /**
 59:      * @return Translation|string|null
 60:      */
 61:     public function title()
 62:     {
 63:         return $this->title;
 64:     }
 65: 
 66:     /**
 67:      * @param  mixed $subtitle The news subtitle (localized).
 68:      * @return self
 69:      */
 70:     public function setSubtitle($subtitle)
 71:     {
 72:         $this->subtitle = $this->translator()->translation($subtitle);
 73:         return $this;
 74:     }
 75: 
 76:     /**
 77:      * @return Translation|string|null
 78:      */
 79:     public function subtitle()
 80:     {
 81:         return $this->subtitle;
 82:     }
 83: 
 84:     /**
 85:      * @param  mixed $content The news content (localized).
 86:      * @return self
 87:      */
 88:     public function setContent($content)
 89:     {
 90:         $this->content = $this->translator()->translation($content);
 91:         return $this;
 92:     }
 93: 
 94:     /**
 95:      * @return Translation|string|null
 96:      */
 97:     public function content()
 98:     {
 99:         return $this->content;
100:     }
101: }
102: 
API documentation generated by ApiGen