PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- // Таблица
- class docxTable extends DOMElement
- {
- public function getHTML()
- {
- $value = '<table>';
- foreach($this->getElementsByTagName('tr') as $row)
- {
- $value .= $row->getHTML();
- }
- $value .= '</table>';
- return $value;
- }
- }
- // Рядок таблицы
- class docxRow extends DOMElement
- {
- public function getHTML()
- {
- // ...
- }
- }