ZF-11658: Add setWebmaster() / getWebmaster() method

Issue Type: Improvement Created: 2011-08-11T08:34:04.000+0000 Last Updated: 2011-08-11T08:37:47.000+0000 Status: Open Fix version(s): Reporter: Fabio Bacigalupo. (openhaus) Assignee: Pádraic Brady (padraic) Tags: - Zend_Feed_Writer

  • RSS,
  • enhancement

Related issues: Attachments:


A getter/setter for the webmaster property would be handy.

webMaster Email address for person responsible for technical issues relating to channel. (Betty Guernsey) as explained in

<pre class="highlight">
     * Email address for person responsible for technical issues
     * Ignored if atom is used
     * @param  string $webmaster
     * @param  string $name
     * @return Zend_Feed_Builder_Header
     * @throws Zend_Feed_Builder_Exception
    public function setWebmaster($webmaster, $name = null) {

         * @see Zend_Validate_EmailAddress
        require_once 'Zend/Validate/EmailAddress.php';
        $validate = new Zend_Validate_EmailAddress();

        if (!$validate->isValid($webmaster)) {
             * @see Zend_Feed_Builder_Exception
            require_once 'Zend/Feed/Exception.php';
            throw new Zend_Feed_Exception("you have to set a valid email address into the webmaster property");

        if (!is_null($name)) {
            $webmaster .= " ({$name})";

        $this->_data['webMaster'] = $webmaster;

<pre class="highlight">
     * Get the feed webmaster entry
     * @return string|null
    public function getWebmaster()
        if (!array_key_exists('webMaster', $this->_data)) {
            return null;
        return $this->_data['webMaster'];

Plus the additional changes needed in the renderer classes.


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.