<?php
function translate_lease_term( $lease_term_id = NULL ){
$lease_term_id = trim( $lease_term_id );
if ( !isset( $lease_term_id ) || $lease_term_id === '' )
return FALSE;
switch ( $lease_term_id ) {
case 'fh':
return 'Freehold';
case '999lh':
return '999 years';
case '99lh':
return '99 years';
case '30lh':
return '30 years';
case '60lh':
return '60 years';
case 'lh':
return 'Leasehold';
case 'mrl':
return 'Malay Reserved Land';
// default will output if all cases not exist
default:
return FALSE;
}
}
?>