public function appendForward(Action $action) { if (isset($this->headers['forwarded-by'])) { $this->headers['forwarded-by'] = $this->headers['forwarded-by'] . '/' . $action->getUniqueActionName(); } else { $this->headers['forwarded-by'] = $action->getUniqueActionName(); } }
public function isHandled(Module $mod, Action $action) { if ($this->scope === 'MODULE' && $this->ownerModule->haveAction($action->getUniqueActionName())) { // Scope locale return true; // tutte le azioni del modulo corrente } else { if ($this->scope === 'GLOBAL') { return true; } } return false; }
public function getDescription() { $model = new $this->pars[0](); $modName = $model->getModelName(); return "# Read " . $modName . " collection\n this action allows to read collection of " . $modName . " instances, implementing **GCI** (*Graphene Collection Interface*).\nThis interface is automatically paged and you can quest this action using search and sort url parameters\n\n* **page_no** page selector, default is **1**\n* **page_size** allows to select a page size, default is **20**\n* **search** search string default is an empty string\n* **sort_by** set this parameter with name of field\n* **sort_discend** if value is '1' sort will bi discend default **0**\n\n" . parent::getDescription(); }