alternativeRepresentations[$tabName] = $value; } public function getAllRepresentations() { # if alternative displays exist, push extendedValue to their front and display it as one of alternatives $prepared = array(); if (! empty($this->extendedValue)) { $prepared['Contents'] = $this->extendedValue; } if (! empty($this->alternativeRepresentations)) { $prepared = array_merge($prepared, $this->alternativeRepresentations); } return $prepared; } }