Permalink
Browse files

Php Docs

  • Loading branch information...
1 parent c726b7c commit 5ea466f8b87f5dffd358c5d7abf7fb6b72a97106 @cdujeu cdujeu committed Jun 20, 2016
Showing with 16 additions and 1 deletion.
  1. +16 −1 core/src/plugins/core.notifications/class.AJXP_NotificationCenter.php
@@ -67,6 +67,9 @@ public function init(ContextInterface $ctx, $options = [])
}
}
+ /**
+ * @inheritdoc
+ */
protected function parseSpecificContributions(ContextInterface $ctx, \DOMNode &$contribNode)
{
parent::parseSpecificContributions($ctx, $contribNode);
@@ -88,6 +91,11 @@ protected function parseSpecificContributions(ContextInterface $ctx, \DOMNode &$
}
}
+ /**
+ * Hooked on msg.notifications
+ * @param AJXP_Notification $notification
+ * @throws Exception
+ */
public function persistNotificationToAlerts(AJXP_Notification &$notification)
{
if ($this->eventStore) {
@@ -326,7 +334,11 @@ public function dismissUserAlert($actionName, $httpVars, $fileVars, ContextInter
$this->eventStore->dismissAlertById($ctx, $alertId, $oc);
}
-
+ /**
+ * @param \Psr\Http\Message\ServerRequestInterface $requestInterface
+ * @param \Psr\Http\Message\ResponseInterface $responseInterface
+ * @param \Pydio\Access\Core\Model\NodesList|null $nodesList
+ */
public function loadUserAlerts(\Psr\Http\Message\ServerRequestInterface $requestInterface, \Psr\Http\Message\ResponseInterface &$responseInterface, \Pydio\Access\Core\Model\NodesList &$nodesList = null)
{
if(!$this->eventStore) return;
@@ -522,6 +534,9 @@ public function generateNotificationFromChangeHook(AJXP_Node $oldNode = null, AJ
}
+ /**
+ * @param AJXP_Notification $notif
+ */
public function prepareNotification(AJXP_Notification &$notif)
{
$notif->setAuthor($this->userId);

0 comments on commit 5ea466f

Please sign in to comment.