...
manageModule($module, array &$vars)
...
The manageModule() method returns HTML content for the manage module page for the given module. Any post data submitted will be passed as reference in $vars.
Code Block | ||
---|---|---|
| ||
class MyModule extends Module {
...
public function manageModule($module, array &$vars) {
// Load the view into this object, so helpers can be automatically added to the view
$this->view = new View("manage", "default");
$this->view->base_uri = $this->base_uri;
$this->view->setDefaultView("components" . DS . "modules" . DS . "my_module" . DS);
// Load the helpers required for this view
Loader::loadHelpers($this, array("Form", "Html", "Widget"));
$this->view->set("module", $module);
return $this->view->fetch();
}
...
} |
manageAddRow(array &$vars)
The manageAddRow() method returns HTML content for the add module row page. Any post data submitted will be passed as reference in $vars.
Code Block | ||
---|---|---|
| ||
class MyModule extends Module {
...
public function manageAddRow($module, array &$vars) {
// Load the view into this object, so helpers can be automatically added to the view
$this->view = new View("manage", "default");
$this->view->base_uri = $this->base_uri;
$this->view->setDefaultView("components" . DS . "modules" . DS . "my_module" . DS);
// Load the helpers required for this view
Loader::loadHelpers($this, array("Form", "Html", "Widget"));
$this->view->set("vars", (object)$vars);
return $this->view->fetch();
}
...
} |
manageEditRow($module_row, array &$vars)
...