Permalink
Browse files

Adding missing docblocks

  • Loading branch information...
1 parent d17a471 commit cfaa1ee37cfd26cf9e3c0dadeead624cc7b44ad5 @lorenzo lorenzo committed Apr 15, 2012
Showing with 16 additions and 1 deletion.
  1. +16 −1 lib/Cake/Routing/Dispatcher.php
@@ -40,6 +40,11 @@
*/
class Dispatcher implements CakeEventListener {
+/**
+ * Event manager, used to handle dispatcher filters
+ *
+ * @var CakeEventMaanger
+ **/
protected $_eventManager;
/**
@@ -53,6 +58,12 @@ public function __construct($base = false) {
}
}
+/**
+ * Returns the CakeEventManager instance or creates one if none was
+ * creted. Attaches the default listeners and filters
+ *
+ * @return CakeEventmanger
+ **/
public function getEventManager() {
if (!$this->_eventManager) {
$this->_eventManager = new CakeEventManager();
@@ -61,7 +72,11 @@ public function getEventManager() {
return $this->_eventManager;
}
-
+/**
+ * Returns the list of events this object listents to.
+ *
+ * @return array
+ **/
public function implementedEvents() {
return array(
'Dispatcher.before' => array(

0 comments on commit cfaa1ee

Please sign in to comment.