ApiStatic.php 643 Bytes
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiBase.php" ;?>
<?
if (! class_exists("ApiStatic")){
	class ApiStatic extends ApiBase{
		
		function __construct($req)
		{
			parent::__construct($req);
		}
		
		//회사소개
		function getKCSpecialVehicleInfo(){
			$sql="
				SELECT *
				FROM tblKCSpecialVehicleInfo
				ORDER BY infoNo DESC
				LIMIT 1
			";
			$payload = $this->getRow($sql);
			return json_encode($payload);	
		}
		
		//기관인증
		function getOrganizationCert(){
			$sql="
				SELECT *
				FROM tblOrganizationCert
				ORDER BY certNo DESC
			";
			return json_encode($this->getArray($sql));
		}
		

	}
}

?>