adding width in the controller and pmDashlet class

This commit is contained in:
Fernando Ontiveros
2011-10-31 17:27:26 -04:00
parent 2103c45c23
commit 2d7729ba4b
4 changed files with 41 additions and 48 deletions

View File

@@ -23,12 +23,12 @@ class PMDashlet extends DashletInstance implements DashletInterface {
}
}
public function render() {
public function render($width = 300) {
try {
if (is_null($this->dashletObject)) {
throw new Exception('Please call to the function "setup" before call the function "render".');
}
$this->dashletObject->render();
$this->dashletObject->render($width);
}
catch (Exception $error) {
throw $error;