Skip to content

Instantly share code, notes, and snippets.

#The api_console

The api console can be called from app/Console similar to this: ./cake api_console param param param

##Non user removing calls

./cake api_console "all"

This call assigns all users to the proper rooms based upon the most recent api dumps for all institutions

./cake api_console "$org_id" "$org_id"

#Calendar Front End Documentation


##Events ####Example Event ```javascript { id: 1, title: 'UNFILLED SHIFT', type: 0, start: new Date(y, m, 1),
@fIa5h
fIa5h / gist:517a2134bd4ddaf658f1
Last active August 29, 2015 14:21
room_condition_report_damage_reports
CREATE TABLE `room_condition_report_damage_reports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`array` longtext NOT NULL,
`organization_id` int(11) NOT NULL,
`created` varchar(300) NOT NULL,
`key` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
<!-- entire element -->
<div class="tokenfield form-control" style="text-align:left;border-bottom:none;">
<!-- hidden input -->
<input type="text" class="form-control validate-me" value="[]" tabindex="-1" style="position: absolute; left: -10000px;" name="notes[4][good][<?php echo $staffPositiveCount;?>][tag]" id="notes_4_good_<?php echo $staffPositiveCount;?>_tag" data-divhighlight="notes-4-good-<?php echo $staffPositiveCount;?>-tag">
<!-- /hidden input -->
<!-- token container -->
<div id="notes4good<?php echo $staffPositiveCount;?>tag" style="display: inline;">
<!-- tokens -->
<!-- /tokens -->
</div>
--
-- Table structure for table `weekly_reports`
--
CREATE TABLE `weekly_reports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`startdate` varchar(100) NOT NULL,
`enddate` varchar(100) NOT NULL,
`location_id` int(11) NOT NULL,