This commit is contained in:
+3
-1
@@ -49,6 +49,8 @@ class Controller extends PhpObject {
|
||||
$this->setReqVal('t', $asReq['t'] ?? '');
|
||||
$this->setReqVal('name', $asReq['name'] ?? '');
|
||||
$this->setReqVal('content', $asReq['content'] ?? '');
|
||||
$this->setReqVal('ref_type', $asReq['ref_type'] ?? '');
|
||||
$this->setReqVal('ref_id', $asReq['ref_id'] ?? 0, 'positiveInt');
|
||||
$this->setReqVal('id_project', $asReq['id_project'] ?? 0, 'positiveInt');
|
||||
$this->setReqVal('id', $asReq['id'] ?? 0);
|
||||
$this->setReqVal('id_entity', $asReq['id'] ?? 0, 'positiveInt');
|
||||
@@ -133,7 +135,7 @@ class Controller extends PhpObject {
|
||||
'last_update' => $this->oLivetrail->getLastUpdate(),
|
||||
'next_feed' => $this->oLivetrail->getNextFeed($this->asReq['id']),
|
||||
'new_feed' => $this->oLivetrail->getNewFeed($this->asReq['id']),
|
||||
'add_post' => $this->oLivetrail->addPost($this->asReq['name'], $this->asReq['content']),
|
||||
'add_post' => $this->oLivetrail->addPost($this->asReq['name'], $this->asReq['content'], $this->asReq['ref_type'], $this->asReq['ref_id']),
|
||||
'subscribe' => $this->oLivetrail->subscribe(),
|
||||
'unsubscribe' => $this->oLivetrail->unsubscribe(),
|
||||
'login' => $this->oLivetrail->login($this->asReq['email'], $this->asReq['password'], $this->asReq['name']),
|
||||
|
||||
Reference in New Issue
Block a user