Prado\Web\UI\WebControls\TListControlValidator::getSelection PHP Method

getSelection() protected method

protected getSelection ( $control ) : array
return array number of selected values and its values.
    protected function getSelection($control)
    {
        $values = array();
        //get the data
        foreach ($control->getItems() as $item) {
            if ($item->getSelected()) {
                $values[] = $item->getValue();
            }
        }
        return $values;
    }