瀏覽代碼

Various small improvements

Daniel Rudolf 8 年之前
父節點
當前提交
b098e22033
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 3 6
      lib/Pico.php
  2. 3 0
      plugins/DummyPlugin.php

+ 3 - 6
lib/Pico.php

@@ -532,10 +532,7 @@ class Pico
                     }
                     }
                 }
                 }
             } else {
             } else {
-                throw new RuntimeException(
-                    "Unable to load plugin '" . $className . "' "
-                    . "from '" . $pluginFile . "'"
-                );
+                throw new RuntimeException("Unable to load plugin '" . $className . "' from '" . $pluginFile . "'");
             }
             }
         }
         }
     }
     }
@@ -1335,8 +1332,8 @@ class Pico
      * | next_page      | &array  | reference to the next page                 |
      * | next_page      | &array  | reference to the next page                 |
      *
      *
      * Please note that the `previous_page` and `next_page` keys won't be
      * Please note that the `previous_page` and `next_page` keys won't be
-     * available until the `onPagesLoaded` event ({@see Pico::sortPages()})
-     * was triggered.
+     * available until the `onCurrentPageDiscovered` event
+     * ({@see Pico::discoverPageSiblings()}) was triggered.
      *
      *
      * @see    Pico::sortPages()
      * @see    Pico::sortPages()
      * @see    Pico::discoverPageSiblings()
      * @see    Pico::discoverPageSiblings()

+ 3 - 0
plugins/DummyPlugin.php

@@ -300,6 +300,9 @@ class DummyPlugin extends AbstractPicoPlugin
      * | previous_page  | &array  | reference to the previous page             |
      * | previous_page  | &array  | reference to the previous page             |
      * | next_page      | &array  | reference to the next page                 |
      * | next_page      | &array  | reference to the next page                 |
      *
      *
+     * Please note that the `previous_page` and `next_page` keys won't be
+     * available until the `onCurrentPageDiscovered` event was triggered.
+     *
      * Set `$pageData` to `null` to remove this page from the pages array.
      * Set `$pageData` to `null` to remove this page from the pages array.
      *
      *
      * @see    DummyPlugin::onPagesDiscovered()
      * @see    DummyPlugin::onPagesDiscovered()