« Back to Product

Documentation

IPS_IsPersistent

 boolean IPS_IsPersistent (int $ObjectID) 

Parameters

ObjectID

The ID of the object

Returns

TRUE, if the object is saved, FALSE otherwise

Description

Warning

This function should not be used any more since version 2.6. As all objects within IP Symcon are persistent, this function is not needed any more.

This function checks if the object with the ID ObjectID is saved in the Settings. This is currently done for all IDs that are bigger than 10000. Otherwise, the object is discarded when IP Symcon shuts down.

Example

if (IPS_IsPersistent(34881))
    echo "The object is saved on shut down!";
Any questions?