public static function createSortableHeader($module) { $columns = self::$viewDrivers[$module]['columns']; $markup = ""; foreach ($columns as $column) { $markup .= sortable_header($column['slug'], $column['type'], ucwords($column['column_name'])); } return $markup; }
public function header() { $header = ""; $header .= "<thead class='table_header'>"; $header .= "<tr class='table_row table_header_row'>"; foreach ($this->get_viewable_properties() as $property) { $header .= sortable_header($property, 'string', $this->get_formatted_version($property)); } if ($this->allowActions() == true) { $header .= '<th class="column_heading">Actions</th>'; } $header .= "</tr>"; $header .= "</thead>"; return $header; }