public function getRowsCountRecursive()
    {
        $totalCount = 0;
        foreach ($this->rows as $row) {
            $subTable = $row->getSubtable();
            if ($subTable) {
                $count = $subTable->getRowsCountRecursive();
                $totalCount += $count;
            }
        }

        $totalCount += $this->getRowsCount();
        return $totalCount;
    }
public function getRowsCountRecursive()
    {
        $totalCount = 0;
        foreach ($this->rows as $row) {
            $subTable = $row->getSubtable();
            if ($subTable) {
                $count = $subTable->getRowsCountRecursive();
                $totalCount += $count;
            }
        }

        $totalCount += $this->getRowsCount();
        return $totalCount;
    }
public function getRowsCountRecursive ( ) { $ totalCount = 0 ; foreach ( $ this -> rows as $ row ) { $ subTable = $ row -> getSubtable ( ) ; if ( $ subTable ) { $ count = $ subTable -> getRowsCountRecursive ( ) ; $ totalCount += $ count ; } } $ totalCount += $ this -> getRowsCount ( ) ; return $ totalCount ; }
Returns the number of rows in the entire DataTable hierarchy. This is the number of rows in this DataTable
summed with the row count of each descendant subtable.

@return int
Returns the number of rows in the entire DataTable hierarchy . This is the number of rows in this DataTable summed with the row count of each descendant subtable .