/** * Returns an array representation of the file. * (This is used by the generic listing module vidi when displaying file records.) * * @return array Array of main data of the file. Don't rely on all data to be present here, it's just a selection of the most relevant information. */ public function toArray() { $array = array_merge($this->originalFile->toArray(), $this->propertiesOfFileReference); return $array; }