* * Callback Methoden für IPSShadowing * */ /** * Diese Funktion wird von der Beschattungs Steuerung aufgerufen um zu ermitteln ob der aktuelle Tag ein Werktag ist * * @return boolean TRUE für Werktag, FALSE für Wochenende oder Feiertag. Bei NULL erfolgt die Ermittlung durch die Steuerung (Feiertage werden dabei NICHT berücksichtigt) * */ function IPSShadowing_IsWorkingDay() { return null; } /** * Diese Funktion wird vor dem aktivieren eines Beschattungs Devices ausgeführt. * * Parameters: * @param integer $deviceId ID of current Shadowing Device (means Program.IPSLibrary.data.modules.IPSShadowing.Devices.MyCurrentDevice) * @param boolean $command Beschattungs Befehl, der gerade ausgeführt wird (mögliche Werte: define ("c_Movement_Down","c_Movement_Stop" und "c_Movement_Up") * */ function IPSShadowing_BeforeActivateShutter($deviceId, $command) { return true; } /** * Diese Funktion wird nach dem aktivieren eines Beschattungs Devices ausgeführt. * * Parameters: * @param integer $deviceId ID of current Shadowing Device (means Program.IPSLibrary.data.modules.IPSShadowing.Devices.MyCurrentDevice) * @param boolean $command Beschattungs Befehl, der gerade ausgeführt wird (mögliche Werte: define ("c_Movement_Down","c_Movement_Stop" und "c_Movement_Up") * */ function IPSShadowing_AfterActivateShutter($deviceId, $command) { } /** * * Function will be called by the Program Timer when no manual Invervention has occured, present * is not activated and Automatic is enabled. * Shadowing can be activated as described below, to prevent other Programs from being executed, * the function has to return true; * * Executing a Program: * $device = new IPSShadowing_Device($DeviceId); * $device->MoveByProgram(c_ProgramId_Opened); // Open * $device->MoveByProgram(c_ProgramId_Closed); // Close a Shutter * $device->MoveByProgram(c_ProgramId_Dimout); // Close a Jalousie * $device->MoveByProgram(c_ProgramId_Shadowing); // Shadowing a Jalousie * * Parameters: * @param integer $DeviceId ID of current Shadowing Device (means Program.IPSLibrary.data.modules.IPSShadowing.Devices.MyCurrentDevice) * @param boolean $isDay Value, indicating Day or Night * */ function IPSShadowing_ProgramCustom($DeviceId,$isDay,&$programInfo) { return false; } /** @}*/ ?>