projects
/
shipsimu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for image generation
[shipsimu.git]
/
application
/
ship-simu
/
main
/
commands
/
web
/
class_WebShipsimuProfileCommand.php
diff --git
a/application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php
b/application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php
index 2493fdcec80cb1cac7934037eb88e535407e643b..1bb449a5e025c75c4d7ab6de6bfbf30a3158ba3b 100644
(file)
--- a/
application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php
+++ b/
application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php
@@
-55,12
+55,6
@@
class WebShipsimuProfileCommand extends BaseCommand implements Commandable {
// Call parent constructor
parent::__construct(__CLASS__);
// Call parent constructor
parent::__construct(__CLASS__);
- // Set part description
- $this->setObjectDescription("Registration handling command for Ship-Simu");
-
- // Create unique ID number
- $this->generateUniqueId();
-
// Clean up a little
$this->removeNumberFormaters();
$this->removeSystemArray();
// Clean up a little
$this->removeNumberFormaters();
$this->removeSystemArray();
@@
-89,14
+83,15
@@
class WebShipsimuProfileCommand extends BaseCommand implements Commandable {
* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
+ * @todo Add functionality here
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Make sure only allowed values are comming through
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Make sure only allowed values are comming through
- foreach ($this->allowedData as $alias
=>
$element) {
+ foreach ($this->allowedData as $alias
=>
$element) {
// Get data
$data = $requestInstance->getRequestElement($element);
// Get data
$data = $requestInstance->getRequestElement($element);
- // Skip empty fields
+ // S
ilently s
kip empty fields
if (empty($data)) continue;
// Do we have an alias?
if (empty($data)) continue;
// Do we have an alias?