/** * file_ok */ function file_ok($relativepath) { if ($this->subfield) { return $this->subfield->file_ok($relativepath); } else { return parent::file_ok($relativepath); } }