diff options
21 files changed, 315 insertions, 2 deletions
diff --git a/.zfproject.xml b/.zfproject.xml index cfbefcf..f717ab6 100644 --- a/.zfproject.xml +++ b/.zfproject.xml @@ -36,6 +36,12 @@ <actionMethod actionName="editbootos"/> <actionMethod actionName="deletebootos"/> </controllerFile> + <controllerFile controllerName="Config"> + <actionMethod actionName="index"/> + </controllerFile> + <controllerFile controllerName="Bootmenu"> + <actionMethod actionName="index"/> + </controllerFile> </controllersDirectory> <formsDirectory> <formFile formName="AuthLogin"/> @@ -50,6 +56,12 @@ <formFile formName="BootosIndex"/> <formFile formName="FilterEdit"/> <formFile formName="FilterEntriesAdd"/> + <formFile formName="ConfigAdd"/> + <formFile formName="ConfigEdit"/> + <formFile formName="BootmenuCreate"/> + <formFile formName="BootmenuEdit"/> + <formFile formName="BootmenuEntriesAdd"/> + <formFile formName="BootmenuEntriesEdit"/> </formsDirectory> <layoutsDirectory enabled="false"/> <modelsDirectory> @@ -178,9 +190,37 @@ </viewControllerScriptsDirectory> <viewControllerScriptsDirectory forControllerName="Bootos"> <viewScriptFile forActionName="deletebootos"/> + </viewControllerScriptsDirectory> <viewControllerScriptsDirectory forControllerName="Filter"> <viewScriptFile forActionName="addfilterentry"/> </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="Config"> + <viewScriptFile forActionName="index"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="config"> + <viewScriptFile forActionName="createconfig"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="config"> + <viewScriptFile forActionName="editconfig"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="Bootmenu"> + <viewScriptFile forActionName="index"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="Bootmenu"> + <viewScriptFile forActionName="createbootmenu"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="Bootmenu"> + <viewScriptFile forActionName="editbootfilter"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="Bootmenu"> + <viewScriptFile forActionName="addbootmenuentry"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="Bootmenu"> + <viewScriptFile forActionName="removebootmenuentry"/> + </viewControllerScriptsDirectory> + <viewControllerScriptsDirectory forControllerName="Bootmenu"> + <viewScriptFile forActionName="editbootmenuentry"/> + </viewControllerScriptsDirectory> </viewScriptsDirectory> <viewHelpersDirectory/> <viewFiltersDirectory enabled="false"/> @@ -219,6 +259,8 @@ <testApplicationControllerFile filesystemName="PersonControllerTest.php"/> <testApplicationControllerFile filesystemName="FilterControllerTest.php"/> <testApplicationControllerFile filesystemName="BootosControllerTest.php"/> + <testApplicationControllerFile filesystemName="ConfigControllerTest.php"/> + <testApplicationControllerFile filesystemName="BootmenuControllerTest.php"/> </testApplicationControllerDirectory> </testApplicationDirectory> <testLibraryDirectory> diff --git a/application/controllers/BootmenuController.php b/application/controllers/BootmenuController.php new file mode 100644 index 0000000..b365dc9 --- /dev/null +++ b/application/controllers/BootmenuController.php @@ -0,0 +1,18 @@ +<?php + +class BootmenuController extends Zend_Controller_Action +{ + + public function init() + { + /* Initialize action controller here */ + } + + public function indexAction() + { + // action body + } + + +} + diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php new file mode 100644 index 0000000..4413ee7 --- /dev/null +++ b/application/controllers/ConfigController.php @@ -0,0 +1,18 @@ +<?php + +class ConfigController extends Zend_Controller_Action +{ + + public function init() + { + /* Initialize action controller here */ + } + + public function indexAction() + { + // action body + } + + +} + diff --git a/application/forms/BootmenuCreate.php b/application/forms/BootmenuCreate.php new file mode 100644 index 0000000..35d476f --- /dev/null +++ b/application/forms/BootmenuCreate.php @@ -0,0 +1,13 @@ +<?php + +class Application_Form_BootmenuCreate extends Zend_Form +{ + + public function init() + { + /* Form Elements & Other Definitions Here ... */ + } + + +} + diff --git a/application/forms/BootmenuEdit.php b/application/forms/BootmenuEdit.php new file mode 100644 index 0000000..3bc0a1d --- /dev/null +++ b/application/forms/BootmenuEdit.php @@ -0,0 +1,13 @@ +<?php + +class Application_Form_BootmenuEdit extends Zend_Form +{ + + public function init() + { + /* Form Elements & Other Definitions Here ... */ + } + + +} + diff --git a/application/forms/BootmenuEntriesAdd.php b/application/forms/BootmenuEntriesAdd.php new file mode 100644 index 0000000..56de36d --- /dev/null +++ b/application/forms/BootmenuEntriesAdd.php @@ -0,0 +1,13 @@ +<?php + +class Application_Form_BootmenuEntriesAdd extends Zend_Form +{ + + public function init() + { + /* Form Elements & Other Definitions Here ... */ + } + + +} + diff --git a/application/forms/BootmenuEntriesEdit.php b/application/forms/BootmenuEntriesEdit.php new file mode 100644 index 0000000..a63621d --- /dev/null +++ b/application/forms/BootmenuEntriesEdit.php @@ -0,0 +1,13 @@ +<?php + +class Application_Form_BootmenuEntriesEdit extends Zend_Form +{ + + public function init() + { + /* Form Elements & Other Definitions Here ... */ + } + + +} + diff --git a/application/forms/ConfigAdd.php b/application/forms/ConfigAdd.php new file mode 100644 index 0000000..2c9516d --- /dev/null +++ b/application/forms/ConfigAdd.php @@ -0,0 +1,13 @@ +<?php + +class Application_Form_ConfigAdd extends Zend_Form +{ + + public function init() + { + /* Form Elements & Other Definitions Here ... */ + } + + +} + diff --git a/application/forms/ConfigEdit.php b/application/forms/ConfigEdit.php new file mode 100644 index 0000000..6403f06 --- /dev/null +++ b/application/forms/ConfigEdit.php @@ -0,0 +1,13 @@ +<?php + +class Application_Form_ConfigEdit extends Zend_Form +{ + + public function init() + { + /* Form Elements & Other Definitions Here ... */ + } + + +} + diff --git a/application/views/scripts/bootmenu/addbootmenuentry.phtml b/application/views/scripts/bootmenu/addbootmenuentry.phtml new file mode 100644 index 0000000..3854273 --- /dev/null +++ b/application/views/scripts/bootmenu/addbootmenuentry.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Bootmenu</b> and script/action name <b>addbootmenuentry</b></center>
\ No newline at end of file diff --git a/application/views/scripts/bootmenu/createbootmenu.phtml b/application/views/scripts/bootmenu/createbootmenu.phtml new file mode 100644 index 0000000..1741819 --- /dev/null +++ b/application/views/scripts/bootmenu/createbootmenu.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Bootmenu</b> and script/action name <b>createbootmenu</b></center>
\ No newline at end of file diff --git a/application/views/scripts/bootmenu/editbootfilter.phtml b/application/views/scripts/bootmenu/editbootfilter.phtml new file mode 100644 index 0000000..3274ee4 --- /dev/null +++ b/application/views/scripts/bootmenu/editbootfilter.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Bootmenu</b> and script/action name <b>editbootfilter</b></center>
\ No newline at end of file diff --git a/application/views/scripts/bootmenu/editbootmenuentry.phtml b/application/views/scripts/bootmenu/editbootmenuentry.phtml new file mode 100644 index 0000000..fcfb558 --- /dev/null +++ b/application/views/scripts/bootmenu/editbootmenuentry.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Bootmenu</b> and script/action name <b>editbootmenuentry</b></center>
\ No newline at end of file diff --git a/application/views/scripts/bootmenu/index.phtml b/application/views/scripts/bootmenu/index.phtml new file mode 100644 index 0000000..d09bb34 --- /dev/null +++ b/application/views/scripts/bootmenu/index.phtml @@ -0,0 +1,55 @@ +<h1>BootOS</h1> +<table border=1> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</th> + <th>ConfigID</th> + <th>Init</th> + <th>Kernel</th> + <th>Kcl</th> + <th>Description</th> + <th>Changed</th> + <th>Expires</th> + <th>Public</th> + </tr> + <?php foreach ($this->bootoslist as $bootos): ?> + <tr> + <td><?php echo $this->escape($bootos->getID()); ?></td> + <td><?php echo $this->escape($bootos->getTitle()); ?></td> + <td><?php echo $this->escape($bootos->getGroupID()); ?></td> + <td><?php echo $this->escape($bootos->getConfigID()); ?></td> + <td><?php echo $this->escape($bootos->getPath_init()); ?></td> + <td><?php echo $this->escape($bootos->getPath_kernel()); ?></td> + <td><?php echo $this->escape($bootos->getDefaultkcl()); ?></td> + <td><?php echo $this->escape($bootos->getDescription()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootos->getCreated())); ?></td> + <td><?php echo $this->escape($bootos->getExpires()); ?></td> + <td><?php echo $this->escape($bootos->getPublic()); ?></td> + <td><a href="<?php echo $this->url( + array( + 'controller' => 'bootos', + 'action' => 'editbootos', + 'bootosID' => $bootos->getID() + ), + 'default', + true, false) ?>">Edit BootOS</a></td> + <td><a href="<?php echo $this->url( + array( + 'controller' => 'bootos', + 'action' => 'deletebootos', + 'bootosID' => $bootos->getID() + ), + 'default', + true) ?>">Delete BootOS</a></td> + </tr> + <?php endforeach; ?> +</table> +<br/> +<?php echo $this->formButton('createbootos', 'Create BootOS', array( + 'onclick' => 'self.location="/bootos/createbootos"'))?> + + + + + diff --git a/application/views/scripts/bootmenu/removebootmenuentry.phtml b/application/views/scripts/bootmenu/removebootmenuentry.phtml new file mode 100644 index 0000000..89b12f9 --- /dev/null +++ b/application/views/scripts/bootmenu/removebootmenuentry.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Bootmenu</b> and script/action name <b>removebootmenuentry</b></center>
\ No newline at end of file diff --git a/application/views/scripts/bootos/index.phtml b/application/views/scripts/bootos/index.phtml index 828a8bf..d09bb34 100644 --- a/application/views/scripts/bootos/index.phtml +++ b/application/views/scripts/bootos/index.phtml @@ -9,7 +9,7 @@ <th>Kernel</th> <th>Kcl</th> <th>Description</th> - <th>Created</th> + <th>Changed</th> <th>Expires</th> <th>Public</th> </tr> @@ -23,7 +23,7 @@ <td><?php echo $this->escape($bootos->getPath_kernel()); ?></td> <td><?php echo $this->escape($bootos->getDefaultkcl()); ?></td> <td><?php echo $this->escape($bootos->getDescription()); ?></td> - <td><?php echo $this->escape($bootos->getCreated()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootos->getCreated())); ?></td> <td><?php echo $this->escape($bootos->getExpires()); ?></td> <td><?php echo $this->escape($bootos->getPublic()); ?></td> <td><a href="<?php echo $this->url( diff --git a/application/views/scripts/config/createconfig.phtml b/application/views/scripts/config/createconfig.phtml new file mode 100644 index 0000000..4b30490 --- /dev/null +++ b/application/views/scripts/config/createconfig.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>config</b> and script/action name <b>createconfig</b></center>
\ No newline at end of file diff --git a/application/views/scripts/config/editconfig.phtml b/application/views/scripts/config/editconfig.phtml new file mode 100644 index 0000000..c1c0d06 --- /dev/null +++ b/application/views/scripts/config/editconfig.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>config</b> and script/action name <b>editconfig</b></center>
\ No newline at end of file diff --git a/application/views/scripts/config/index.phtml b/application/views/scripts/config/index.phtml new file mode 100644 index 0000000..d404906 --- /dev/null +++ b/application/views/scripts/config/index.phtml @@ -0,0 +1,55 @@ +<h1>Config</h1> +<table border=1> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</th> + <th>ConfigID</th> + <th>Init</th> + <th>Kernel</th> + <th>Kcl</th> + <th>Description</th> + <th>Changed</th> + <th>Expires</th> + <th>Public</th> + </tr> + <?php foreach ($this->bootoslist as $bootos): ?> + <tr> + <td><?php echo $this->escape($bootos->getID()); ?></td> + <td><?php echo $this->escape($bootos->getTitle()); ?></td> + <td><?php echo $this->escape($bootos->getGroupID()); ?></td> + <td><?php echo $this->escape($bootos->getConfigID()); ?></td> + <td><?php echo $this->escape($bootos->getPath_init()); ?></td> + <td><?php echo $this->escape($bootos->getPath_kernel()); ?></td> + <td><?php echo $this->escape($bootos->getDefaultkcl()); ?></td> + <td><?php echo $this->escape($bootos->getDescription()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootos->getCreated())); ?></td> + <td><?php echo $this->escape($bootos->getExpires()); ?></td> + <td><?php echo $this->escape($bootos->getPublic()); ?></td> + <td><a href="<?php echo $this->url( + array( + 'controller' => 'bootos', + 'action' => 'editbootos', + 'bootosID' => $bootos->getID() + ), + 'default', + true, false) ?>">Edit BootOS</a></td> + <td><a href="<?php echo $this->url( + array( + 'controller' => 'bootos', + 'action' => 'deletebootos', + 'bootosID' => $bootos->getID() + ), + 'default', + true) ?>">Delete BootOS</a></td> + </tr> + <?php endforeach; ?> +</table> +<br/> +<?php echo $this->formButton('createbootos', 'Create BootOS', array( + 'onclick' => 'self.location="/bootos/createbootos"'))?> + + + + + diff --git a/tests/application/controllers/BootmenuControllerTest.php b/tests/application/controllers/BootmenuControllerTest.php new file mode 100644 index 0000000..dca6003 --- /dev/null +++ b/tests/application/controllers/BootmenuControllerTest.php @@ -0,0 +1,20 @@ +<?php + +require_once 'PHPUnit/Framework/TestCase.php'; + +class BootmenuControllerTest extends PHPUnit_Framework_TestCase +{ + + public function setUp() + { + /* Setup Routine */ + } + + public function tearDown() + { + /* Tear Down Routine */ + } + + +} + diff --git a/tests/application/controllers/ConfigControllerTest.php b/tests/application/controllers/ConfigControllerTest.php new file mode 100644 index 0000000..40c5bfe --- /dev/null +++ b/tests/application/controllers/ConfigControllerTest.php @@ -0,0 +1,20 @@ +<?php + +require_once 'PHPUnit/Framework/TestCase.php'; + +class ConfigControllerTest extends PHPUnit_Framework_TestCase +{ + + public function setUp() + { + /* Setup Routine */ + } + + public function tearDown() + { + /* Tear Down Routine */ + } + + +} + |