3434 * @uses RecursiveIterator
3535 * @uses RecursiveIteratorIterator
3636 * @uses \Zend\Navigation\Exception
37- * @uses \Zend\Navigation\Page\Page
37+ * @uses \Zend\Navigation\AbstractPage
3838 * @category Zend
3939 * @package Zend_Navigation
4040 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
@@ -123,8 +123,8 @@ public function addPage($page)
123123 }
124124
125125 if (is_array ($ page ) || $ page instanceof Config \Config) {
126- $ page = Page \Page ::factory ($ page );
127- } elseif (!$ page instanceof Page \Page ) {
126+ $ page = AbstractPage ::factory ($ page );
127+ } elseif (!$ page instanceof AbstractPage ) {
128128 throw new Exception (
129129 'Invalid argument: $page must be an instance of ' .
130130 'Zend_Navigation_Page or Zend_Config, or an array ' );
@@ -189,7 +189,7 @@ public function setPages(array $pages)
189189 /**
190190 * Returns pages in the container
191191 *
192- * @return array array of \Zend\Navigation\Page\Page instances
192+ * @return array array of \Zend\Navigation\AbstractPage instances
193193 */
194194 public function getPages ()
195195 {
@@ -199,14 +199,14 @@ public function getPages()
199199 /**
200200 * Removes the given page from the container
201201 *
202- * @param \Zend\Navigation\Page\Page |int $page page to remove, either a page
202+ * @param \Zend\Navigation\AbstractPage |int $page page to remove, either a page
203203 * instance or a specific page order
204204 * @return bool whether the removal was
205205 * successful
206206 */
207207 public function removePage ($ page )
208208 {
209- if ($ page instanceof Page \Page ) {
209+ if ($ page instanceof AbstractPage ) {
210210 $ hash = $ page ->hashCode ();
211211 } elseif (is_int ($ page )) {
212212 $ this ->_sort ();
@@ -242,12 +242,12 @@ public function removePages()
242242 /**
243243 * Checks if the container has the given page
244244 *
245- * @param \Zend\Navigation\Page\Page $page page to look for
245+ * @param \Zend\Navigation\AbstractPage $page page to look for
246246 * @param bool $recursive [optional] whether to search
247247 * recursively. Default is false.
248248 * @return bool whether page is in container
249249 */
250- public function hasPage (Page \ Page $ page , $ recursive = false )
250+ public function hasPage (AbstractPage $ page , $ recursive = false )
251251 {
252252 if (array_key_exists ($ page ->hashCode (), $ this ->_index )) {
253253 return true ;
@@ -277,7 +277,7 @@ public function hasPages()
277277 *
278278 * @param string $property name of property to match against
279279 * @param mixed $value value to match property against
280- * @return \Zend\Navigation\Page\Page |null matching page or null
280+ * @return \Zend\Navigation\AbstractPage |null matching page or null
281281 */
282282 public function findOneBy ($ property , $ value )
283283 {
@@ -299,7 +299,7 @@ public function findOneBy($property, $value)
299299 *
300300 * @param string $property name of property to match against
301301 * @param mixed $value value to match property against
302- * @return array array containing only \Zend\Navigation\Page\Page
302+ * @return array array containing only \Zend\Navigation\AbstractPage
303303 * instances
304304 */
305305 public function findAllBy ($ property , $ value )
@@ -329,7 +329,7 @@ public function findAllBy($property, $value)
329329 * matching pages are found. If false, null will
330330 * be returned if no matching page is found.
331331 * Default is false.
332- * @return \Zend\Navigation\Page\Page |null matching page or null
332+ * @return \Zend\Navigation\AbstractPage |null matching page or null
333333 */
334334 public function findBy ($ property , $ value , $ all = false )
335335 {
@@ -392,7 +392,7 @@ public function toArray()
392392 *
393393 * Implements RecursiveIterator interface.
394394 *
395- * @return \Zend\Navigation\Page\Page current page or null
395+ * @return \Zend\Navigation\AbstractPage current page or null
396396 * @throws \Zend\Navigation\Exception if the index is invalid
397397 */
398398 public function current ()
@@ -479,7 +479,7 @@ public function hasChildren()
479479 *
480480 * Implements RecursiveIterator interface.
481481 *
482- * @return \Zend\Navigation\Page\Page |null
482+ * @return \Zend\Navigation\AbstractPage |null
483483 */
484484 public function getChildren ()
485485 {
0 commit comments