protected function get_popover_title() {
        $title = null;

        $userdate = userdate($this->data[0], get_string('strftimedayshort'));
        if (count($this->related['events'])) {
            $title = get_string('eventsfor', 'calendar', $userdate);
        } else if ($this->data['istoday']) {
            $title = $userdate;
        }

        if ($this->data['istoday']) {
            $title = get_string('todayplustitle', 'calendar', $userdate);
        }

        return $title;
    }
protected function get_popover_title() {
        $title = null;

        $userdate = userdate($this->data[0], get_string('strftimedayshort'));
        if (count($this->related['events'])) {
            $title = get_string('eventsfor', 'calendar', $userdate);
        } else if ($this->data['istoday']) {
            $title = $userdate;
        }

        if ($this->data['istoday']) {
            $title = get_string('todayplustitle', 'calendar', $userdate);
        }

        return $title;
    }
protected function get_popover_title ( ) { $ title = null ; $ userdate = userdate ( $ this -> data [ 0 ] , get_string ( 'strftimedayshort' ) ) ; if ( count ( $ this -> related [ 'events' ] ) ) { $ title = get_string ( 'eventsfor' , 'calendar' , $ userdate ) ; } else if ( $ this -> data [ 'istoday' ] ) { $ title = $ userdate ; } if ( $ this -> data [ 'istoday' ] ) { $ title = get_string ( 'todayplustitle' , 'calendar' , $ userdate ) ; } return $ title ; }
Get the title for this popover.

@return string
Get the title for this popover .