public function _getFeedEntries($parentRow, $xml, $select = array())
    {
        $select = $this->select($select);

        $pId = $parentRow->getInternalId();
        $this->_data[$pId] = array();

        if ($parentRow->format == Kwf_Util_Model_Feed_Row_Feed::FORMAT_RSS) {
            if (in_array('http://purl.org/rss/1.0/', $xml->getNamespaces(true))) {
                $xml->registerXPathNamespace('rss', 'http://purl.org/rss/1.0/');
                foreach ($xml->xpath('//rss:item') as $item) {
                    $this->_data[$pId][] = $item;
                    if (($l = $select->getPart(Kwf_Model_Select::LIMIT_COUNT))
                        && count($this->_data[$pId]) == $l)
                    {
                        break;
                    }
                }
            } else {
                foreach ($xml->channel->item as $item) {
                    $this->_data[$pId][] = $item;
                    if (($l = $select->getPart(Kwf_Model_Select::LIMIT_COUNT))
                        && count($this->_data[$pId]) == $l)
                    {
                        break;
                    }
                }
            }
        } else {
            foreach ($xml->entry as $item) {
                $this->_data[$pId][] = $item;
                if (($l = $select->getPart(Kwf_Model_Select::LIMIT_COUNT))
                    && count($this->_data[$pId]) == $l)
                {
                    break;
                }
            }
        }

        return new $this->_rowsetClass(array(
            'model' => $this,
            'dataKeys' => array_keys($this->_data[$pId]),
            'parentRow' => $parentRow
        ));
    }
public function _getFeedEntries($parentRow, $xml, $select = array())
    {
        $select = $this->select($select);

        $pId = $parentRow->getInternalId();
        $this->_data[$pId] = array();

        if ($parentRow->format == Kwf_Util_Model_Feed_Row_Feed::FORMAT_RSS) {
            if (in_array('http://purl.org/rss/1.0/', $xml->getNamespaces(true))) {
                $xml->registerXPathNamespace('rss', 'http://purl.org/rss/1.0/');
                foreach ($xml->xpath('//rss:item') as $item) {
                    $this->_data[$pId][] = $item;
                    if (($l = $select->getPart(Kwf_Model_Select::LIMIT_COUNT))
                        && count($this->_data[$pId]) == $l)
                    {
                        break;
                    }
                }
            } else {
                foreach ($xml->channel->item as $item) {
                    $this->_data[$pId][] = $item;
                    if (($l = $select->getPart(Kwf_Model_Select::LIMIT_COUNT))
                        && count($this->_data[$pId]) == $l)
                    {
                        break;
                    }
                }
            }
        } else {
            foreach ($xml->entry as $item) {
                $this->_data[$pId][] = $item;
                if (($l = $select->getPart(Kwf_Model_Select::LIMIT_COUNT))
                    && count($this->_data[$pId]) == $l)
                {
                    break;
                }
            }
        }

        return new $this->_rowsetClass(array(
            'model' => $this,
            'dataKeys' => array_keys($this->_data[$pId]),
            'parentRow' => $parentRow
        ));
    }
public function _getFeedEntries ( $ parentRow , $ xml , $ select = array ( ) ) { $ select = $ this -> select ( $ select ) ; $ pId = $ parentRow -> getInternalId ( ) ; $ this -> _data [ $ pId ] = array ( ) ; if ( $ parentRow -> format == Kwf_Util_Model_Feed_Row_Feed :: FORMAT_RSS ) { if ( in_array ( 'http://purl.org/rss/1.0/' , $ xml -> getNamespaces ( true ) ) ) { $ xml -> registerXPathNamespace ( 'rss' , 'http://purl.org/rss/1.0/' ) ; foreach ( $ xml -> xpath ( '//rss:item' ) as $ item ) { $ this -> _data [ $ pId ] [ ] = $ item ; if ( ( $ l = $ select -> getPart ( Kwf_Model_Select :: LIMIT_COUNT ) ) && count ( $ this -> _data [ $ pId ] ) == $ l ) { break ; } } } else { foreach ( $ xml -> channel -> item as $ item ) { $ this -> _data [ $ pId ] [ ] = $ item ; if ( ( $ l = $ select -> getPart ( Kwf_Model_Select :: LIMIT_COUNT ) ) && count ( $ this -> _data [ $ pId ] ) == $ l ) { break ; } } } } else { foreach ( $ xml -> entry as $ item ) { $ this -> _data [ $ pId ] [ ] = $ item ; if ( ( $ l = $ select -> getPart ( Kwf_Model_Select :: LIMIT_COUNT ) ) && count ( $ this -> _data [ $ pId ] ) == $ l ) { break ; } } } return new $ this -> _rowsetClass ( array ( 'model' => $ this , 'dataKeys' => array_keys ( $ this -> _data [ $ pId ] ) , 'parentRow' => $ parentRow ) ) ; }
"darf" nur von Kwf_Util_Model_Feed_Row_Feed aufgerufen werden!
darf nur von Kwf_Util_Model_Feed_Row_Feed aufgerufen werden!