/** * Gets an int element of the record data array. * If the array has not been initialized properly, 0 is returned instead. * If we are a date record, it'll be retrieved from the corresponding * topic record. * * @param string $key the name of the field to retrieve * * @return int the corresponding element from the record data array */ protected function getTopicInteger($key) { $result = 0; if ($this->isTopicOkay()) { $result = $this->topic->getRecordPropertyInteger($key); } else { $result = $this->getRecordPropertyInteger($key); } return $result; }