Documentation
IPS_GetMediaListByType
array IPS_GetMediaListByType (int $MediaType)
Parameters
MediaType |
|
Returns
An array of integer values of all IDs of the media objects with the type MediaType in IP Symcon.
Description
The command determines the IDs of all registered media objects in the media pool of the type MediaType. The IDs are listed in an array. If no corresponding media object exists, the array is empty.
The array only contains objects of the media type MediaType. To list all media objects, the command IPS_GetMediaList can be used.
Example
$allImageObjects = IPS_GetMediaListByType(1); // list only Image objects
print_r($allImageObjects);
/* returns e.g.:
Array
(
[0] => 37659
[1] => 18326
etc. ...
)
*/