rss - How to get the actual LINK url property from Zend_Feed_Rss channel object -
i'm trying wrap head around how use zend_feed_rss. according documentation, link of channel, access method $channel->link(). when so, array, , link actual thing want buried in second item of array. doing wrong? documentation not helpful; seems if expects magically figure out how use particular method. also, i've tried googling other resources no avail, need here.
here's array end getting:
array ( [0] => domelement object ( [tagname] => atom:link [schematypeinfo] => [nodename] => atom:link [nodevalue] => [nodetype] => 1 [parentnode] => (object value omitted) [childnodes] => (object value omitted) [firstchild] => [lastchild] => [previoussibling] => (object value omitted) [nextsibling] => (object value omitted) [attributes] => (object value omitted) [ownerdocument] => (object value omitted) [namespaceuri] => http://www.w3.org/2005/atom [prefix] => atom [localname] => link [baseuri] => /path/to/application [textcontent] => ) [1] => domelement object ( [tagname] => link [schematypeinfo] => [nodename] => link [nodevalue] => http://whatactuallywant.wordpress.com [nodetype] => 1 [parentnode] => (object value omitted) [childnodes] => (object value omitted) [firstchild] => (object value omitted) [lastchild] => (object value omitted) [previoussibling] => (object value omitted) [nextsibling] => (object value omitted) [attributes] => (object value omitted) [ownerdocument] => (object value omitted) [namespaceuri] => [prefix] => [localname] => link [baseuri] => /path/to/applicaiton [textcontent] => http://whatactuallywant.wordpress.com ) [2] => domelement object ( [tagname] => atom:link [schematypeinfo] => [nodename] => atom:link [nodevalue] => [nodetype] => 1 [parentnode] => (object value omitted) [childnodes] => (object value omitted) [firstchild] => [lastchild] => [previoussibling] => (object value omitted) [nextsibling] => (object value omitted) [attributes] => (object value omitted) [ownerdocument] => (object value omitted) [namespaceuri] => http://www.w3.org/2005/atom [prefix] => atom [localname] => link [baseuri] => /path/to/application [textcontent] => ) ... )
Comments
Post a Comment