application/models/Report_model.php
/**
     * Determines if a service log is a Component Change
     * 
     * @param type $servicelog_id
     * @return type
     */
Determines if a service log is a Component Change

@param type $servicelog_id
@return type
Determines if a service log is a Component Change @param type $servicelog_id @return type
public function isComponentChange($servicelog_id = 0) {
        $counts = R::getAll(
            "SELECT count(*) as component_changes
            FROM componentchange WHERE servicelog_id = '" . $servicelog_id . "'");
        return ($counts[0]['component_changes'] == 0 ? false : true);
    }
public function isComponentChange ( $ servicelog_id = 0 ) { $ counts = R :: getAll ( " SELECT count(*) as component_changes
            FROM componentchange WHERE servicelog_id = ' " . $ servicelog_id . " ' " ) ; return ( $ counts [ 0 ] [ 'component_changes' ] == 0 ? false : true ) ; }
Determines if a service log is a Component Change
Determines if a service log is a Component Change