equal
deleted
inserted
replaced
13 * obtain it through the world-wide-web, please send an email |
13 * obtain it through the world-wide-web, please send an email |
14 * to license@zend.com so we can send you a copy immediately. |
14 * to license@zend.com so we can send you a copy immediately. |
15 * |
15 * |
16 * @category Zend |
16 * @category Zend |
17 * @package Zend_Feed |
17 * @package Zend_Feed |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Rss.php 24593 2012-01-05 20:35:02Z matthew $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * @see Zend_Feed_Abstract |
25 * @see Zend_Feed_Abstract |
41 * against with the instanceof operator, and expects to be handling |
41 * against with the instanceof operator, and expects to be handling |
42 * RSS-formatted data instead of Atom. |
42 * RSS-formatted data instead of Atom. |
43 * |
43 * |
44 * @category Zend |
44 * @category Zend |
45 * @package Zend_Feed |
45 * @package Zend_Feed |
46 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
46 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
47 * @license http://framework.zend.com/license/new-bsd New BSD License |
47 * @license http://framework.zend.com/license/new-bsd New BSD License |
48 */ |
48 */ |
49 class Zend_Feed_Rss extends Zend_Feed_Abstract |
49 class Zend_Feed_Rss extends Zend_Feed_Abstract |
50 { |
50 { |
51 /** |
51 /** |
431 $pubdate = $this->_element->createElement('pubDate', date(DATE_RSS, $pubdate)); |
431 $pubdate = $this->_element->createElement('pubDate', date(DATE_RSS, $pubdate)); |
432 $item->appendChild($pubdate); |
432 $item->appendChild($pubdate); |
433 |
433 |
434 if (isset($dataentry->category)) { |
434 if (isset($dataentry->category)) { |
435 foreach ($dataentry->category as $category) { |
435 foreach ($dataentry->category as $category) { |
436 $node = $this->_element->createElement('category', $category['term']); |
436 $node = $this->_element->createElement('category'); |
|
437 $node->appendChild($this->_element->createCDATASection($category['term'])); |
437 if (isset($category['scheme'])) { |
438 if (isset($category['scheme'])) { |
438 $node->setAttribute('domain', $category['scheme']); |
439 $node->setAttribute('domain', $category['scheme']); |
439 } |
440 } |
440 $item->appendChild($node); |
441 $item->appendChild($node); |
441 } |
442 } |