Procházet zdrojové kódy

Added xpath getter/mutator for low level access at Extension level

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17329 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic před 16 roky
rodič
revize
9d81bbd336

+ 24 - 1
library/Zend/Feed/Reader/Extension/FeedAbstract.php

@@ -139,7 +139,30 @@ abstract class Zend_Feed_Reader_Extension_FeedAbstract
         return $this->_data;
     }
 
-        /**
+    /**
+     * Set the XPath query
+     *
+     * @param  DOMXPath $xpath
+     * @return Zend_Feed_Reader_Extension_EntryAbstract
+     */
+    public function setXpath(DOMXPath $xpath)
+    {
+        $this->_xpath = $xpath;
+        $this->_registerNamespaces();
+        return $this;
+    }
+
+    /**
+     * Get the DOMXPath object
+     *
+     * @return string
+     */
+    public function getXpath()
+    {
+        return $this->_xpath;
+    }
+
+    /**
      * Get the XPath prefix
 	 *
 	 * @return string