Lines Matching refs:col
189 * (optional) Adds an extra column named $col for plugin $plugin.
193 * - th($col, &$class=null) or th()
194 * - td($id, $col=null, &$class=null) or td($id)
198 * @param string $col column name. Assumption: unique between all builtin columns and plugin supplied columns
200 public function addColumn($plugin, $col)
203 if (!isset($this->plugins[$plugin]) || !in_array($col, $this->plugins[$plugin])) {
204 $this->plugins[$plugin][] = $col;
206 $this->column[$col] = true;
212 * @param string $col column name
216 public function modifyColumn($col, $value)
218 if (isset($this->column[$col])) {
219 $this->column[$col] = $value;
371 foreach ($columns as $col) {
372 if (!$this->column[$col]) continue;
375 $this->column[$col] = false;
392 foreach ($columns as $col) {
393 if ($this->column[$col]) {
394 if (empty($this->header[$col])) {
395 $this->header[$col] = hsc($this->getLang($col));
397 $this->doc .= '<th class="' . $col . '">' . $this->header[$col] . '</th>';
402 foreach ($columns as $col) {
403 if ($this->column[$col] && $col != 'image') {
404 if (empty($this->header[$col])) {
405 $this->header[$col] = hsc($this->$plugin->th($col, $class));
407 $this->doc .= '<th class="' . $col . '">' . $this->header[$col] . '</th>';
579 foreach ($columns as $col) {
580 if (!empty($this->column[$col]) && $col != 'image') {
581 $this->printPluginCell($plugin, $col, $id);
762 * @param string $col column name. Before not provided to td of plugin. Since 2022. Allows different columns per plugin.
766 protected function printPluginCell($plugin, $col, $id)
768 if (!isset($this->page[$col])) {
769 $this->page[$col] = $this->$plugin->td($id, $col);
771 return $this->printCell($col, $this->page[$col]);
976 foreach ($columns as $col) {
977 if ($this->sortKey == $col) {
978 if (!isset($this->page[$col])) {
979 $this->page[$col] = $this->$plugin->td($id, $col);