ReviewFormElementForm::deleteEntry PHP Метод

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

public deleteEntry ( $request, $rowId )
    function deleteEntry($request, $rowId)
    {
        $possibleResponsesProcessed = (array) $this->getData('possibleResponsesProcessed');
        foreach (array_keys($possibleResponsesProcessed) as $locale) {
            // WARNING: Listbuilders don't like zero row IDs. They are offset
            // by 1 to avoid this case, so 1 is subtracted here to normalize.
            unset($possibleResponsesProcessed[$locale][$rowId - 1]);
        }
        $this->setData('possibleResponsesProcessed', $possibleResponsesProcessed);
        return true;
    }