webCOMAND

repo::supports_dimensions()

Checks to see if dimensions are enabled and supported by the repository.

Prototype

boolean supports_dimensions()

Return

TRUE if dimensions are enabled for the current repository, otherwise FALSE.

Example

// instate a preference for English content with fallback to
// French and then the object's default language
$repo = comand::repo();
$enabled = $repo->supports_dimensions();
echo("Dimensions are " . ($enabled ? 'enabled' : 'disabled') . "\n");