/** * Constructor * * @param integer $uid * @param string $title * @param tx_caretaker_AbstractNode $parentNode * @param string $serviceType * @param string $serviceConfiguration * @param integer $interval * @param integer $retry * @param integer $due * @param integer $startHour * @param integer $stopHour * @param boolean $hidden * @return tx_caretaker_TestNode */ public function __construct($uid, $title, $parentNode, $serviceType, $serviceConfiguration, $interval = 86400, $retry = 0, $due = 0, $startHour = FALSE, $stopHour = FALSE, $hidden = FALSE) { // Overwrite default test configuration $configurationOverlay = $parentNode->getTestConfigurationOverlayForTestUid($uid); if ($configurationOverlay) { $serviceConfiguration = $configurationOverlay; if ($serviceConfiguration['hidden']) { $hidden = TRUE; } } parent::__construct($uid, $title, $parentNode, tx_caretaker_Constants::table_Tests, tx_caretaker_Constants::nodeType_Test, $hidden); $this->testServiceType = $serviceType; $this->testServiceConfiguration = $serviceConfiguration; $this->testInterval = $interval; $this->testRetry = $retry; $this->testDue = $due; $this->startHour = $startHour; $this->stopHour = $stopHour; }