public function getClientQuotes($cid) { if ($this->validateAdmin()) { echo json_encode(Quotation::GetClientQuotations($cid)); } else { echo 0; } }