course_signup_views_handler_relationship_ce_sl.inc in Course 7
File
modules/course_signup/course_signup_views_handler_relationship_ce_sl.inc
View source
<?php
class course_views_handler_relationship_ce_sl extends views_handler_relationship {
function query() {
$join = new views_join_course();
$join->definition = array(
'table' => 'signup_log',
'field' => 'uid',
'left_table' => !empty($this->relationship) ? $this->relationship : 'course_enrollment',
'left_field' => 'uid',
'extra' => array(
array(
'field' => 'nid',
'value' => 'nid',
),
),
);
$join
->construct();
$this
->ensure_my_table();
$alias = $join->definition['table'] . '_' . $join->definition['left_table'];
$this->alias = $this->query
->add_relationship($alias, $join, $this->definition['base'], $this->relationship);
}
}