src/Easy/Panel.php
public function renderTable(&$recSet)
    {
        $table['elems'] = $this->render();

        $counter = 0;
        while (true) {
            $arr = $recSet[$counter];

            if (!$arr)
                break;

            foreach ($this->varValue as $elem)  // reset the elements
                $elem->reset();
            $this->setRecordArr($arr);
            $table['ids'][] = $arr['Id'];

            /* @var $elem Element */
            foreach ($this->varValue as $elem) {
                if ($elem->canDisplayed())
                    $tableRow[$elem->objectName] = $elem->render();
            }
            $table['data'][] = $tableRow;
            unset($tableRow);
            $counter++;
        }
        return $table;
    }
public function renderTable(&$recSet)
    {
        $table['elems'] = $this->render();

        $counter = 0;
        while (true) {
            $arr = $recSet[$counter];

            if (!$arr)
                break;

            foreach ($this->varValue as $elem)  // reset the elements
                $elem->reset();
            $this->setRecordArr($arr);
            $table['ids'][] = $arr['Id'];

            /* @var $elem Element */
            foreach ($this->varValue as $elem) {
                if ($elem->canDisplayed())
                    $tableRow[$elem->objectName] = $elem->render();
            }
            $table['data'][] = $tableRow;
            unset($tableRow);
            $counter++;
        }
        return $table;
    }
Render table and return an array with 3 sub arraies (elems, data, ids)

@param array $recSet
@return array