public function __get($p_property)
{
switch (strtolower($p_property)) {
case 'number':
return $this->m_number;
case 'field_name':
return $this->m_fieldName;
case 'count':
return $this->m_count;
case 'name':
return $this->m_name;
case 'formatted_name':
return $this->getFormattedName();
case 'content':
return $this->m_content;
case 'has_previous_subtitles':
return (int) ($this->m_number > 0);
case 'has_next_subtitles':
return (int) ($this->m_number < $this->m_count - 1);
default:
$this->trigger_invalid_property_error($p_property);
return;
}
}