// 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();
* @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
- foreach ($this->allowedData as $alias=>$element) {
+ foreach ($this->allowedData as $alias => $element) {
// Get data
$data = $requestInstance->getRequestElement($element);
- // Skip empty fields
+ // Silently skip empty fields
if (empty($data)) continue;
// Do we have an alias?