filter('RemoveSubtables'); * * @api */ class RemoveSubtables extends BaseFilter { /** * Constructor. * * @param DataTable $table The DataTable that will be filtered eventually. */ public function __construct($table) { parent::__construct($table); } /** * See {@link Limit}. * * @param DataTable $table */ public function filter($table) { $rows = $table->getRows(); foreach ($rows as $row) { $row->removeSubtable(); } } }