tag_start= ''; $this->tag_end = ''; $this->tag_body_start = ''; $this->tag_body_end = ''; if(!is_null($class)) $this->SetClass($class); if(!is_null($item)) $this->AddItem($item); if(!is_null($url)) $this->SetUrl($url); if(!is_null($action)) $this->SetAction($action); } function SetAction($value=NULL){ if(is_null($value)) return $this->options['action'] = $page['file']; return parent::AddAction('onclick', $value); } function SetUrl($value){ $this->AddOption('href', $value); } function getUrl(){ if(isset($this->options['href'])) return $this->options['href']; else return null; } function SetTarget($value=NULL){ if(is_null($value)){ unset($this->options['target']); } else{ $this->options['target'] = $value; } } } ?>