private function makeAnnotation($date, $note, $starred = 0)
    {
        return array('date'    => $date,
                     'note'    => $note,
                     'starred' => (int)$starred,
                     'user'    => Piwik::getCurrentUserLogin());
    }
private function makeAnnotation($date, $note, $starred = 0)
    {
        return array('date'    => $date,
                     'note'    => $note,
                     'starred' => (int)$starred,
                     'user'    => Piwik::getCurrentUserLogin());
    }
private function makeAnnotation ( $ date , $ note , $ starred = 0 ) { return array ( 'date' => $ date , 'note' => $ note , 'starred' => ( int ) $ starred , 'user' => Piwik :: getCurrentUserLogin ( ) ) ; }
Utility function. Creates a new annotation.

@param string $date
@param string $note
@param int $starred
@return array
Utility function . Creates a new annotation .