FOF30\Controller\DataController::save PHP Метод

save() публичный Метод

Save the incoming data and then return to the Browse task
public save ( ) : void
Результат void
    public function save()
    {
        // CSRF prevention
        $this->csrfProtection();
        if (!$this->applySave()) {
            return;
        }
        $textKey = strtoupper($this->container->componentName . '_LBL_' . $this->container->inflector->singularize($this->view) . '_SAVED');
        if ($customURL = $this->input->getBase64('returnurl', '')) {
            $customURL = base64_decode($customURL);
        }
        $url = !empty($customURL) ? $customURL : 'index.php?option=' . $this->container->componentName . '&view=' . $this->container->inflector->pluralize($this->view) . $this->getItemidURLSuffix();
        $this->setRedirect($url, \JText::_($textKey));
    }