- Allow specifying if a resource is required or optional
- Add a response_type property to resources. Specifies if REQUESTS are
either always accepted, always denied, automatically accepted/denied
based on actual availability, handled manually (still todo), or simply
ignored (set response to NONE).
Also, try to clean up the implementation - trying to make it more likely
to be able to be extened for kolab. No idea if this helps of not though ;)
*
* name - Display name of resource.
* calendar - The calendar associated with this resource.
-<<<<<<< HEAD
- *
* description -
* email -
* response_type - a RESPONSETYPE_* constant
-=======
* category - The category of this resource...an arbitrary label used
* to group multiple resources for the resource_group implementation
- * description -
->>>>>>> Lots of stuff:
- *
* @var array
*/
protected $_params = array();
}
/**
-<<<<<<< HEAD
* Obtain the resource's internal identifier.
*
* @return mixed The id.
-=======
- * Obtain the resource's internal id.
- *
- * @return integer The id.
->>>>>>> Lots of stuff:
*/
public function getId()
{
resource_calendar VARCHAR(255),
resource_description TEXT,
resource_category VARCHAR(255),
+ resource_response_type INT DEFAULT 0,
+ resource_max_reservations INT DEFAULT 1,
PRIMARY KEY (resource_id)
);