Adding the features ui adhoc
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace Features\ViewContainers;
|
||||
/**
|
||||
* Description of TaskContainer
|
||||
*
|
||||
*/
|
||||
class TaskContainer extends ViewContainer
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace Features\ViewContainers;
|
||||
/**
|
||||
* Description of TriggerContainer
|
||||
*
|
||||
*/
|
||||
class TriggerContainer extends ViewContainer
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace Features\ViewContainers;
|
||||
/**
|
||||
* Description of Container
|
||||
*
|
||||
*/
|
||||
class ViewContainer
|
||||
{
|
||||
protected $viewList = array();
|
||||
|
||||
public function register($view)
|
||||
{
|
||||
$this->viewList[] = $view;
|
||||
}
|
||||
|
||||
public function getView($id)
|
||||
{
|
||||
return $this->viewList[$id];
|
||||
}
|
||||
|
||||
public function getAllViews()
|
||||
{
|
||||
return $this->viewList;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user