public function update($idSite, $idNote, $date = null, $note = null, $starred = null)
    {
        $this->checkIdSiteIsLoaded($idSite);
        $this->checkNoteExists($idSite, $idNote);

        $annotation =& $this->annotations[$idSite][$idNote];
        if ($date !== null) {
            $annotation['date'] = Date::factory($date)->toString('Y-m-d');
        }
        if ($note !== null) {
            $annotation['note'] = $note;
        }
        if ($starred !== null) {
            $annotation['starred'] = $starred;
        }
    }
public function update($idSite, $idNote, $date = null, $note = null, $starred = null)
    {
        $this->checkIdSiteIsLoaded($idSite);
        $this->checkNoteExists($idSite, $idNote);

        $annotation =& $this->annotations[$idSite][$idNote];
        if ($date !== null) {
            $annotation['date'] = Date::factory($date)->toString('Y-m-d');
        }
        if ($note !== null) {
            $annotation['note'] = $note;
        }
        if ($starred !== null) {
            $annotation['starred'] = $starred;
        }
    }
public function update ( $ idSite , $ idNote , $ date = null , $ note = null , $ starred = null ) { $ this -> checkIdSiteIsLoaded ( $ idSite ) ; $ this -> checkNoteExists ( $ idSite , $ idNote ) ; $ annotation = & $ this -> annotations [ $ idSite ] [ $ idNote ] ; if ( $ date !== null ) { $ annotation [ 'date' ] = Date :: factory ( $ date ) -> toString ( 'Y-m-d' ) ; } if ( $ note !== null ) { $ annotation [ 'note' ] = $ note ; } if ( $ starred !== null ) { $ annotation [ 'starred' ] = $ starred ; } }
Modifies an annotation in this instance's collection of annotations.

Note: This method does not perist the change in the DB. The save method must
be called for that.

@param int $idSite The ID of the site whose annotation will be updated.
@param int $idNote The ID of the note.
@param string|null $date The new date of the annotation, eg '2012-01-01'. If
null, no change is made.
@param string|null $note The new text of the annotation. If null, no change
is made.
@param int|null $starred Either 1 or 0, whether the annotation should be
starred or not. If null, no change is made.
@throws Exception if $idSite is not an ID that was supplied upon construction.
@throws Exception if $idNote does not refer to valid note for the site.
Modifies an annotation in this instance s collection of annotations .