20 lines
528 B
PHP
20 lines
528 B
PHP
|
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||
|
|
||
|
/**
|
||
|
* This class supports Room Configuration by date
|
||
|
*
|
||
|
* @package Membership Database
|
||
|
* @category Models
|
||
|
* @author Deon George
|
||
|
* @copyright (c) 2014 Deon George
|
||
|
* @license http://dev.leenooks.net/license.html
|
||
|
*/
|
||
|
class Model_Room_Dates extends ORM {
|
||
|
// @todo: Code A (availble) start/end dates cannot overlap with existing records - put in validation that it cannot be saved.
|
||
|
|
||
|
public function avail($day) {
|
||
|
return $this->{'d_'.$day};
|
||
|
}
|
||
|
}
|
||
|
?>
|