Lines Matching refs:payload
39 protected $payload; variable in dokuwiki\\plugin\\yuriigantt\\src\\JsonRequest
48 * @param string|null $payload
50 public function __construct(DriverInterface $driver, $csrf, $payload) argument
54 $this->payload = json_decode($payload);
79 $this->driver->open($this->payload->pageId);
81 switch ($this->payload->action) {
83 if ($this->payload->entity === self::ENTITY_TASK) {
84 $task = $this->driver->addTask(new Task($this->payload->data));
86 } elseif ($this->payload->entity === self::ENTITY_LINK) {
87 $link = $this->driver->addLink(new Link($this->payload->data));
93 if ($this->payload->entity === self::ENTITY_TASK) {
94 $this->driver->deleteTask($this->payload->id);
96 } elseif ($this->payload->entity === self::ENTITY_LINK) {
97 $this->driver->deleteLink($this->payload->id);
103 if ($this->payload->entity === self::ENTITY_TASK) {
104 $this->driver->updateTask(new Task($this->payload->data));
106 } elseif ($this->payload->entity === self::ENTITY_LINK) {
107 $this->driver->updateLink(new Link($this->payload->data));
123 if (!$this->payload) {
128 …if (empty($this->payload->action) || !in_array($this->payload->action, [self::ACTION_UPDATE, self:…
133 …if (empty($this->payload->action) || !in_array($this->payload->action, [self::ACTION_UPDATE, self:…
138 if (empty($this->payload->pageId) || !page_exists($this->payload->pageId)) {
143 if (!(auth_quickaclcheck(cleanID($this->payload->pageId)) & self::PERMISSIONS)) {