public static function getQuotationFollow($id) { try { if ($id != null) { $Quotation = Quotation::loadQuotationFollowup($id); // possible user loading method } if (sizeof($Quotation) > 0) { echo AppUtil::getReturnStatus("Successful", $Quotation); } else { echo AppUtil::getReturnStatus("Unsuccessful", "Data not found"); } } catch (Exception $e) { echo AppUtil::getReturnStatus("Unsuccessful", "Unknown database error occurred"); } return $Quotation; }