Explorar el Código

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 hace 16 años
padre
commit
9d81bbd336
Se han modificado 1 ficheros con 24 adiciones y 1 borrados
  1. 24 1
      library/Zend/Feed/Reader/Extension/FeedAbstract.php

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

@@ -139,7 +139,30 @@ abstract class Zend_Feed_Reader_Extension_FeedAbstract
         return $this->_data;
         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
      * Get the XPath prefix
 	 *
 	 *
 	 * @return string
 	 * @return string