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/site@29 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-28 21:52:14 +00:00
parent 7805e4d229
commit 1249854514
4 changed files with 46 additions and 22 deletions

View File

@@ -45,5 +45,8 @@ class Unit extends AppModel {
)
);
function occupiedEnumValue() {
$enums = $this->getEnumValues('status');
return $enums['OCCUPIED'];
}
}
?>