public function renderRows($type = 'html')
    {
        if ($type == 'html') {
            return $this->renderRowHtml();
        } elseif ($type == 'array') {
            return $this->renderRowArray();
        } elseif ($type == 'array_assc') {
            return $this->renderRowArray('assc');
        } else {
            throw new Exception\InvalidArgumentException();
        }

    }
public function renderRows($type = 'html')
    {
        if ($type == 'html') {
            return $this->renderRowHtml();
        } elseif ($type == 'array') {
            return $this->renderRowArray();
        } elseif ($type == 'array_assc') {
            return $this->renderRowArray('assc');
        } else {
            throw new Exception\InvalidArgumentException();
        }

    }
public function renderRows ( $ type = 'html' ) { if ( $ type == 'html' ) { return $ this -> renderRowHtml ( ) ; } elseif ( $ type == 'array' ) { return $ this -> renderRowArray ( ) ; } elseif ( $ type == 'array_assc' ) { return $ this -> renderRowArray ( 'assc' ) ; } else { throw new Exception \ InvalidArgumentException ( ) ; } }
Rendering all rows for table

@param string $type html, json, array
@return string | array
Rendering all rows for table