Added support for querying only occupied or vacant units. It's working at the moment, but I'll probably move some more logic to the controller next.
git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@29 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -45,5 +45,8 @@ class Unit extends AppModel {
|
||||
)
|
||||
);
|
||||
|
||||
function occupiedEnumValue() {
|
||||
$enums = $this->getEnumValues('status');
|
||||
return $enums['OCCUPIED'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user