<?php

class MFormObject extends MForm
{
    public $base; // base MActionPanelObject
    public $module;
    public $action;
    public $object;
    public $formFolder;
    public $formName;
    public $command;

    function __construct($base, $title = NULL)
    {
        $this->base = $base;
        $this->module = $base->module;
        $this->action = $base->action;
        $this->object = $base->object;
        $this->formFolder = $base->formFolder;
        $this->command = $base->command;
        parent::__construct(MUtil::NVL($title,$base->getLabel()));
        $this->eventHandler();
    }

    public function getFormName($command = '')
    {
        return $this->base->getFormName($command);
    }

    public function getURL($command = '', $oid = '', $args = '')
    {
        return $this->base->getURL($command, $oid, $args);    
    }

    public function go($command = '', $oid = '')
    {
        $this->base->go($command, $oid);    
    }

}

?>