public function contactAdd(Contact $contact) { #print __CLASS__.'->'.__FUNCTION__.''."\n"; $ocontact = $this->contactGetByNodeId($contact->getNodeId()); if (!$ocontact) { $this->contactsId++; $contact->setId($this->contactsId); $this->contacts[$contact->getId()] = $contact; $this->contactsByNodeId[$contact->getNodeId()] = $contact; $this->setDataChanged(true); } }