function appendLink($target, $value = '') {
return $this->appendChild($this->createElementLink($target, $value));
}
+ function appendImage($src, $alt_text = '') {
+ return $this->appendChild($this->createElementImage($src, $alt_text));
+ }
function appendFormDiv($action, $method, $name) {
$formelem = $this->appendChild($this->createElementForm($action, $method, $name));
return $formelem->appendElement('div');
return $link;
}
+ function createElementImage($src, $alt_text = '') {
+ $link = $this->createElement('img');
+ $link->setAttribute('src', $src);
+ $link->setAttribute('alt', $alt_text);
+ return $link;
+ }
+
function createElementForm($action, $method, $name) {
$formelem = $this->createElement('form');
$formelem->setAttribute('action', $action);