application/models/Report_model.php
/**
     * Appends child objects to show updates made to service logs
     * 
     * @param type $servicelog_id
     * @param type $service_logs
     */
Appends child objects to show updates made to service logs


Appends child objects to show updates made to service logs
private function appendServiceLogReplacements($servicelog_id, $service_logs) {
        $replacements = R::getAll(
            "SELECT r.old_id, r.created, u.first_name, u.last_name
                FROM servicelogreplacement r
                LEFT JOIN user u ON u.id = r.entered_by
                WHERE r.old_id = '" . $servicelog_id . "'");
        $service_logs[0]['replacements'] = $replacements;
        return $service_logs;
    }
private function appendServiceLogReplacements ( $ servicelog_id , $ service_logs ) { $ replacements = R :: getAll ( " SELECT r.old_id, r.created, u.first_name, u.last_name
                FROM servicelogreplacement r
                LEFT JOIN user u ON u.id = r.entered_by
                WHERE r.old_id = ' " . $ servicelog_id . " ' " ) ; $ service_logs [ 0 ] [ 'replacements' ] = $ replacements ; return $ service_logs ; }
Appends child objects to show updates made to service logs
Appends child objects to show updates made to service logs