Plugin Environment Function getCIDAndCTypeFromSetting()

public final function getCIDAndCTypeFromSetting(
&$cID, &$cType, $setting, $getLanguageEquivalent = true
)

Summary

Allows you to get a Content ID and Content Type from a content field type setting.

Where You Can Use It

Can be used in methods called by plugins. From Zenario 7.0.0 onwards.

Parameters

$setting

The name of a content field type setting from your XML description.

$getLanguageEquivalent

If the AVLS Plugin is installed, the CMS will attempt to ensure that the Content Item returned is in the current visitor's language.

You may disable this behaviour by setting this to false.

Return Value

Populates $cID and $cType with the Content ID and Content Type of the item selected.