What can we improve?

Documentation

(Edit)

Translation is in progress...
Not all topics are available at the moment and content links may be broken.

IPS_GetMediaListByType

array IPS_GetMediaListByType (integer $MediaType)

Parameters

MediaType
Value Description
0 IPSView Form
1 Image object
2 Sound object
3 Stream object
4 Chart object
5 Document object

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. ...
)        
*/
Deutsche Webseite verfügbar
Go to cart
Any questions?