<?php
class MOpenWindow extends MLink
{
    public function __construct($name = NULL, $text = NULL, $href = NULL, $target = '')
    {
        parent::__construct($name, '', $href, $text);
        $this->target = ($target == '') ? 'mioloWindow' : $target;
    }

    public function generateLink()
    {
        parent::generateLink();

        $onclick = $this->getOnClick('WINDOW:'.$this->href);

        if ($onclick != '')
        {
            $this->addAttribute('onclick', $onclick);
        }
    }

}
?>