コード例 #1
0
 public function get_note($id)
 {
     $xml = $this->make_request('notes/' . $id);
     $this->check_for_errors('Note');
     $xml_object = simplexml_load_string($xml);
     $note = new HighriseNote($this);
     $note->load_from_xml_object($xml_object);
     return $note;
 }
コード例 #2
0
 public function get_notes()
 {
     $this->notes = array();
     $xml = $this->make_request($this->url_base . '/' . $this->id . '/notes');
     $xml_object = simplexml_load_string($xml);
     if ($this->debug) {
         print_r($xml_object);
     }
     if (isset($xml_object->note) && count($xml_object->note) > 0) {
         foreach ($xml_object->note as $_note) {
             $note = new HighriseNote($this->highrise);
             $note->load_from_xml_object($_note);
             $note->set_subject_id($this->id);
             $note->set_subject_id('Party');
             $this->notes[$note->id] = $note;
         }
     }
     return $this->notes;
 }