/** * Get the history of each field in this container. May need to populate the history * * @param boolean $as_array. Defaults to false in which case results are instances of I2CE_Entry, otherwise reusults are associative arrays * @returns array index by field names */ public function getHistory($as_array = false) { $history = parent::getHistory($as_array); $parentHistory = $this->parentField->getHistory($as_array); if (is_array($parentHistory) && count($parentHistory) > 0) { $history['parent'] = $parentHistory; } return $history; }