public function get_length($context = 'view') { $value = $this->get_prop('length', $context); // Inherit value from parent. if ('view' === $context && empty($value)) { $value = $this->parent_data['length']; } return $value; }