* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
+ $this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['objecttable'] = 'attendance_log';
}
/**
* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
- $this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['crud'] = 'u';
+ $this->data['edulevel'] = self::LEVEL_PARTICIPATING;
+ $this->data['objecttable'] = 'attendance_log';
}
/**
* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
+ $this->data['crud'] = 'c';
$this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['objecttable'] = 'attendance_sessions';
}
/**
* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
+ $this->data['crud'] = 'd';
$this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['objecttable'] = 'attendance_sessions';
}
/**
* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
+ $this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['objecttable'] = 'attendance_sessions';
}
/**
* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
+ $this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['objecttable'] = 'attendance_sessions';
}
/**
* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
+ $this->data['crud'] = 'c';
$this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['objecttable'] = 'attendance_statuses';
}
/**
* Init method.
*/
protected function init() {
- $this->data['crud'] = 'r';
+ $this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
- $this->data['objecttable'] = 'attendance';
+ $this->data['objecttable'] = 'attendance_statuses';
}
/**