- ⌂ Content
- Methods
Content::get_dimension_data()
Returns an array of dimension objects that this object represents, i.e. will return an array containing the 'French' dimension object for a 'French' web page.
Prototype
array get_dimension_data()
Return
The (potentially empty) array of dimension objects for this object dimension.
Example
$repo = comand::repo();
// get the Spanish version of an Article
$article = $repo->get_first('FROM Article WITH ES LIMIT 1');
$dimension_values = $article->get_dimension_data();
foreach($dimension_values as $value) {
echo("Dimension: $value (OID " . $value->OID . ")\n");
}