| | |
| | | $attr = array('href' => $attr); |
| | | } |
| | | return self::tag('a', $attr, $cont, array_merge(self::$common_attrib, |
| | | array('href','target','name','rel','onclick','onmouseover','onmouseout','onmousedown','onmouseup'))); |
| | | array('href','target','name','rel','onclick','onmouseover','onmouseout','onmousedown','onmouseup'))); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | $cell = new stdClass; |
| | | $cell->attrib = $attr; |
| | | $cell->attrib = $attr; |
| | | $cell->content = $cont; |
| | | |
| | | $this->rows[$this->rowindex]->cells[$this->colindex] = $cell; |
| | |
| | | } |
| | | |
| | | $cell = new stdClass; |
| | | $cell->attrib = $attr; |
| | | $cell->content = $cont; |
| | | $cell->attrib = $attr; |
| | | $cell->content = $cont; |
| | | $this->header[] = $cell; |
| | | } |
| | | |
| | | /** |
| | | /** |
| | | * Remove a column from a table |
| | | * Useful for plugins making alterations |
| | | * |
| | | * @param string $class |
| | | * |
| | | * @param string $class |
| | | */ |
| | | public function remove_column($class) |
| | | { |
| | |
| | | */ |
| | | public function show($attrib = null) |
| | | { |
| | | if (is_array($attrib)) |
| | | if (is_array($attrib)) { |
| | | $this->attrib = array_merge($this->attrib, $attrib); |
| | | } |
| | | |
| | | $thead = $tbody = ""; |
| | | |
| | |
| | | */ |
| | | public function size() |
| | | { |
| | | return count($this->rows); |
| | | return count($this->rows); |
| | | } |
| | | |
| | | /** |