Is there something wrong with this syntax? I'm getting the following error:
syntax error, unexpected T_FUNCTION, expecting T_VARIABLE on line 1310
here's the code that begins on line 1310:
static function teacherrole_sql() {
global $DB;
// TODO should be a site wide or block level setting
$teacherroles = $DB->get_records('role', array('archetype' => 'teacher'));
$editingteacherroles = $DB->get_records('role', array('archetype' => 'editingteacher'));
$teacherroleids = array_keys($teacherroles + $editingteacherroles);
//list($rolesql, $roleparams)
return $DB->get_in_or_equal($teacherroleids);
}