fix blog sap dataflow (reset var)
This commit is contained in:
@@ -512,20 +512,18 @@ class Databap extends PhpObject
|
|||||||
|
|
||||||
private function getSAPBlogRss()
|
private function getSAPBlogRss()
|
||||||
{
|
{
|
||||||
|
$asArticles = array();
|
||||||
|
|
||||||
|
//SCN SAP
|
||||||
$sSAPDomain = 'http://scn.sap.com';
|
$sSAPDomain = 'http://scn.sap.com';
|
||||||
$asBlogPaths = array( '/community/data-warehousing/bw/blog',
|
$asBlogPaths = array( '/community/data-warehousing/bw/blog',
|
||||||
'/community/data-warehousing/blog/',
|
'/community/data-warehousing/blog/',
|
||||||
'/community/bw-hana/blog');
|
'/community/bw-hana/blog');
|
||||||
|
|
||||||
//TODO add http://www.biportal.org/sap_bi_blog
|
|
||||||
//TODO add http://sapbwbw.com/
|
|
||||||
foreach($asBlogPaths as $sSAPBlogPath)
|
foreach($asBlogPaths as $sSAPBlogPath)
|
||||||
{
|
{
|
||||||
$sSAPBlogUrl = $sSAPDomain.$sSAPBlogPath;
|
$sSAPBlogUrl = $sSAPDomain.$sSAPBlogPath;
|
||||||
$oDom = $this->getRemotePageDom($sSAPBlogUrl);
|
$oDom = $this->getRemotePageDom($sSAPBlogUrl);
|
||||||
$aoArticles = $oDom->getElementsByTagName('header');
|
$aoArticles = $oDom->getElementsByTagName('header');
|
||||||
|
|
||||||
$asArticles = array();
|
|
||||||
foreach($aoArticles as $oArticle)
|
foreach($aoArticles as $oArticle)
|
||||||
{
|
{
|
||||||
if($oArticle->getAttribute('class')=='jive-blog-post-subject')
|
if($oArticle->getAttribute('class')=='jive-blog-post-subject')
|
||||||
|
|||||||
Reference in New Issue
Block a user