// Then do some nasty caching here but don't throw an exception
// because then you will hurt our web helpers... :/
$companyInstance->partialStub("Don't throw exceptions here.");
- } // END - if
+ }
// Init all lists
$companyInstance->initCompanyLists();
if ($resultInstance instanceof SearchableResult) {
// Set the result instance
$this->setResultInstance($resultInstance);
- } // END - if
+ }
// Return result
return $participates;
// Is it set?
if ($resultInstance instanceof SearchableResult) {
// Result found so analyse it
- $this->partialStub("Check if user is company founder.");
- } // END - if
+ DebugMiddleware::getSelfInstance()->partialStub('Check if user is company founder.');
+ }
// Return result
return $isFounder;
// Is it set?
if ($resultInstance instanceof SearchableResult) {
// Result found so analyse it
- $this->partialStub("Check if user is company owner.");
- } // END - if
+ DebugMiddleware::getSelfInstance()->partialStub('heck if user is company owner.');
+ }
// Return result
return $isOwner;
if ($resultInstance instanceof SearchableResult) {
// Result found so he is employee
$isEmployee = true;
- } // END - if
+ }
// Return result
return $isEmployee;
$dummy = explode(" ", $this->getCompanyName());
foreach ($dummy as $part) {
$this->shortName .= substr($part, 0, 1);
- } // END - if
+ }
}
// Reedereien Werften bauen lassen
if ($totalUnemployed < $amount) {
// Reichte nicht aus!
throw new ToMuchEmployeesException(array($amount, $personellInstance->getAllUnemployed()), self::EXCEPTION_NOT_ENOUGTH_UNEMPLOYEES);
- } // END - if
+ }
// Get list for all unemployed people
$list = $personellInstance->getSpecialPersonellList(false); // Should be cached
if ($iterator->valid() === false) {
// Should normally not happen... :(
throw new StructuresOutOfBoundsException($idx, self::EXCEPTION_INDEX_OUT_OF_BOUNDS);
- } // END - if
+ }
// Get current element
$employee = $iterator->current();
if ($shipyardIter->valid() === false) {
// Rewind to first position
$shipyardIter->seek(0);
- } // END - if
+ }
// Get Shipyard object
$shipyard = $shipyardIter->current();
if ($partnerInstance->isContractPartner($contractInstance) === false) {
// Invalid contract partner!
throw new InvalidContractPartnerException($partnerInstance, self::EXCEPTION_CONTRACT_PARTNER_INVALID);
- } // END - if
+ }
// Determine if company "signs" own contract (must be done) or with an other party
if ($this->equals($partnerInstance)) {