|
@@ -40,6 +40,7 @@ abstract class PortalBrick extends AbstractBrick
|
|
|
const DEFAULT_DECORATION_CLASS_HOME = '';
|
|
|
const DEFAULT_DECORATION_CLASS_NAVIGATION_MENU = '';
|
|
|
const DEFAULT_TILE_TEMPLATE_PATH = 'itop-portal-base/portal/src/views/bricks/tile.html.twig';
|
|
|
+ const DEFAULT_TILE_CONTROLLER_ACTION = null;
|
|
|
|
|
|
static $sRouteName = null;
|
|
|
protected $iWidth;
|
|
@@ -50,6 +51,7 @@ abstract class PortalBrick extends AbstractBrick
|
|
|
protected $sDecorationClassHome;
|
|
|
protected $sDecorationClassNavigationMenu;
|
|
|
protected $sTileTemplatePath;
|
|
|
+ protected $sTileControllerAction;
|
|
|
// Vars below are itemization from parent class
|
|
|
protected $fRankHome;
|
|
|
protected $fRankNavigationMenu;
|
|
@@ -76,6 +78,7 @@ abstract class PortalBrick extends AbstractBrick
|
|
|
$this->sDecorationClassHome = static::DEFAULT_DECORATION_CLASS_HOME;
|
|
|
$this->sDecorationClassNavigationMenu = static::DEFAULT_DECORATION_CLASS_NAVIGATION_MENU;
|
|
|
$this->sTileTemplatePath = static::DEFAULT_TILE_TEMPLATE_PATH;
|
|
|
+ $this->sTileControllerAction = static::DEFAULT_TILE_CONTROLLER_ACTION;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -189,6 +192,16 @@ abstract class PortalBrick extends AbstractBrick
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Returns the brick tile controller action
|
|
|
+ *
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function GetTileControllerAction()
|
|
|
+ {
|
|
|
+ return $this->sTileControllerAction;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Returns the brick tile template path
|
|
|
*
|
|
|
* @return string
|
|
@@ -331,6 +344,17 @@ abstract class PortalBrick extends AbstractBrick
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Sets the brick tile controller action
|
|
|
+ *
|
|
|
+ * @param boolean $sTileControllerAction
|
|
|
+ */
|
|
|
+ public function SetTileControllerAction($sTileControllerAction)
|
|
|
+ {
|
|
|
+ $this->sTileControllerAction = $sTileControllerAction;
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Load the brick's data from the xml passed as a ModuleDesignElement.
|
|
|
* This is used to set all the brick attributes at once.
|
|
|
*
|