Entry
class Entry extends AbstractType implements NodeInterface, BranchInterface, SetLoggerInterface (View source)
A type model for an Entry element.
Traits
Properties
protected string | $createFromFormat | The format that should be used when determining how to parse a date from a date string. | from DateTrait |
protected string | $outputTimezone | The preferred timezone to use for date output. | from DateTrait |
protected string | $namespaceAlias | The preferred namespace alias for a given XML namespace URI. Should be
the result of a call to SimplePie\Util\Ns . |
|
protected LoggerInterface | $logger | A PSR-3 logger. | from LoggerTrait |
protected DOMNode | $node | The DOMNode element to parse. |
Methods
Proxy method which forwards requests to an underlying handler.
Gets the standard, pre-formatted message for unresolvable method calls.
Allows the user to help the date parser by providing the format of the datestamp in the feed.
Set the preferred output timezone.
Retrieves nodes that are simple scalars, and there is only one allowed value.
Retrieves nodes that are complex types, and there is only one allowed value.
Retrieves nodes that are complex types, and there may be are more than one value.
Constructs a new instance of this class.
Converts this object into a string representation.
Finds the common internal alias for a given method name.
Get the correct handler for a whitelisted method name.
Returns the Authors associated with this entry.
Returns the list of Categories/Tags/Topics associated with this entry.
Returns the content of the entry, serialized as TEXT, HTML, or XHTML content.
Returns the list of Contributors associated with this entry.
Alias for getRights()
.
Returns the language associated with this entry.
Returns the list of Links associated with this entry.
Alias for getPublished()
.
Returns the date that the entry was published.
Returns the copyright information associated with this entry.
Returns the summary associated with this entry.
Returns the date that the entry was updated.
Details
in AbstractType at line 27
__call(string $nodeName, array $args)
Proxy method which forwards requests to an underlying handler.
in AbstractType at line 52
protected string
getUnresolvableMessage(string $nodeName)
Gets the standard, pre-formatted message for unresolvable method calls.
DateTrait
setDateFormat(string $createFromFormat)
Allows the user to help the date parser by providing the format of the datestamp in the feed.
This will be passed into DateTime::createFromFormat()
at parse-time.
DateTrait
setOutputTimezone(string $timezone = 'UTC')
Set the preferred output timezone.
This calculation is performed on a best-effort basis and is not guaranteed. Factors which may affect the calculation include:
- the version of glibc/musl that your OS relies on
- the freshness of the timestamp data your OS relies on
- the format of the datestamp inside of the feed and PHP's ability to parse it
in DeepTypeTrait at line 40
protected Node
getScalarSingleValue(object $root, string $nodeName, string|null $namespaceAlias = null)
Retrieves nodes that are simple scalars, and there is only one allowed value.
in DeepTypeTrait at line 68
protected TypeInterface
getComplexSingleValue(object $root, string $nodeName, string $className, string|null $namespaceAlias = null)
Retrieves nodes that are complex types, and there is only one allowed value.
in DeepTypeTrait at line 96
protected iterable
getComplexMultipleValues(object $root, string $nodeName, string|null $namespaceAlias = null)
Retrieves nodes that are complex types, and there may be are more than one value.
in LoggerTrait at line 35
LoggerTrait
setLogger(LoggerInterface $logger)
Sets the PSR-3 logger.
in LoggerTrait at line 52
LoggerInterface
getLogger()
Retrieves the PSR-3 logger.
at line 81
__construct(string $namespaceAlias, DOMNode|null $node = null, LoggerInterface $logger = null)
Constructs a new instance of this class.
at line 99
string
__toString()
Converts this object into a string representation.
at line 117
string
getAlias(string $nodeName)
Finds the common internal alias for a given method name.
at line 159
Node
getHandler(string $nodeName, array $args = [])
Get the correct handler for a whitelisted method name.
at line 51
array
getAuthors(string $namespaceAlias)
Returns the Authors associated with this entry.
at line 51
array
getCategories(string $namespaceAlias)
Returns the list of Categories/Tags/Topics associated with this entry.
at line 51
Node
getContent(string $namespaceAlias)
Returns the content of the entry, serialized as TEXT, HTML, or XHTML content.
at line 51
array
getContributors(string $namespaceAlias)
Returns the list of Contributors associated with this entry.
at line 51
Node
getLanguage(string $namespaceAlias)
Returns the language associated with this entry.
at line 51
array
getLinks(string $namespaceAlias, string $relFilter)
Returns the list of Links associated with this entry.
at line 51
DateTime
getPublished(string $namespaceAlias)
Returns the date that the entry was published.