class Source in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Writer/Source.php \Zend\Feed\Writer\Source
- 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Atom/Source.php \Zend\Feed\Reader\Feed\Atom\Source
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/Source.php \Zend\Feed\Writer\Renderer\Feed\Atom\Source
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/Source.php \Zend\Feed\Writer\Renderer\Feed\Atom\Source
Hierarchy
- class \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom extends \Feed\Writer\Renderer\AbstractRenderer
- class \Zend\Feed\Writer\Renderer\Feed\Atom\Source implements \Renderer\RendererInterface
Expanded class hierarchy of Source
8 string references to 'Source'
- aggregator.schema.yml in core/
modules/ aggregator/ config/ schema/ aggregator.schema.yml - core/modules/aggregator/config/schema/aggregator.schema.yml
- CKEditor::getDefaultSettings in core/
modules/ ckeditor/ src/ Plugin/ Editor/ CKEditor.php - Returns the default settings for this configurable text editor.
- CKEditorAdminTest::testExistingFormat in core/
modules/ ckeditor/ src/ Tests/ CKEditorAdminTest.php - Tests configuring a text editor for an existing text format.
- CKEditorTest::getDefaultToolbarConfig in core/
modules/ ckeditor/ src/ Tests/ CKEditorTest.php - editor.editor.basic_html.yml in core/
profiles/ standard/ config/ install/ editor.editor.basic_html.yml - core/profiles/standard/config/install/editor.editor.basic_html.yml
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Atom/ Source.php, line 17
Namespace
Zend\Feed\Writer\Renderer\Feed\AtomView source
class Source extends AbstractAtom implements Renderer\RendererInterface {
/**
* Constructor
*
* @param Writer\Source $container
*/
public function __construct(Writer\Source $container) {
parent::__construct($container);
}
/**
* Render Atom Feed Metadata (Source element)
*
* @return Writer\Renderer\Feed\Atom
*/
public function render() {
if (!$this->container
->getEncoding()) {
$this->container
->setEncoding('UTF-8');
}
$this->dom = new DOMDocument('1.0', $this->container
->getEncoding());
$this->dom->formatOutput = true;
$root = $this->dom
->createElement('source');
$this
->setRootElement($root);
$this->dom
->appendChild($root);
$this
->_setLanguage($this->dom, $root);
$this
->_setBaseUrl($this->dom, $root);
$this
->_setTitle($this->dom, $root);
$this
->_setDescription($this->dom, $root);
$this
->_setDateCreated($this->dom, $root);
$this
->_setDateModified($this->dom, $root);
$this
->_setGenerator($this->dom, $root);
$this
->_setLink($this->dom, $root);
$this
->_setFeedLinks($this->dom, $root);
$this
->_setId($this->dom, $root);
$this
->_setAuthors($this->dom, $root);
$this
->_setCopyright($this->dom, $root);
$this
->_setCategories($this->dom, $root);
foreach ($this->extensions as $ext) {
$ext
->setType($this
->getType());
$ext
->setRootElement($this
->getRootElement());
$ext
->setDomDocument($this
->getDomDocument(), $root);
$ext
->render();
}
return $this;
}
/**
* Set feed generator string
*
* @param DOMDocument $dom
* @param DOMElement $root
* @return void
*/
protected function _setGenerator(DOMDocument $dom, DOMElement $root) {
if (!$this
->getDataContainer()
->getGenerator()) {
return;
}
$gdata = $this
->getDataContainer()
->getGenerator();
$generator = $dom
->createElement('generator');
$root
->appendChild($generator);
$text = $dom
->createTextNode($gdata['name']);
$generator
->appendChild($text);
if (array_key_exists('uri', $gdata)) {
$generator
->setAttribute('uri', $gdata['uri']);
}
if (array_key_exists('version', $gdata)) {
$generator
->setAttribute('version', $gdata['version']);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractAtom:: |
protected | function | Set feed authors | |
AbstractAtom:: |
protected | function | Set base URL to feed links | |
AbstractAtom:: |
protected | function | Set feed categories | |
AbstractAtom:: |
protected | function | Set feed copyright | |
AbstractAtom:: |
protected | function | Set date feed was created | |
AbstractAtom:: |
protected | function | Set date feed was last modified | |
AbstractAtom:: |
protected | function | Set feed description | |
AbstractAtom:: |
protected | function | Set feed links | |
AbstractAtom:: |
protected | function | Set hubs to which this feed pushes | |
AbstractAtom:: |
protected | function | Set feed identifier | |
AbstractAtom:: |
protected | function | Set feed level logo (image) | |
AbstractAtom:: |
protected | function | Set feed language | |
AbstractAtom:: |
protected | function | Set link to feed | |
AbstractAtom:: |
protected | function | Set feed title | |
Source:: |
public | function | Render Atom Feed Metadata (Source element) | |
Source:: |
protected | function |
Set feed generator string Overrides AbstractAtom:: |
|
Source:: |
public | function |
Constructor Overrides AbstractAtom:: |