示例#1
0
 protected function getAtomFromNodeHash($node_hash)
 {
     if (empty($this->atomMap[$node_hash])) {
         $dict = $this->atomCache->getAtom($node_hash);
         $this->atomMap[$node_hash] = DivinerAtom::newFromDictionary($dict);
     }
     return $this->atomMap[$node_hash];
 }
 public function attachAtom(DivinerLiveAtom $atom = null)
 {
     if ($atom === null) {
         $this->atom = null;
     } else {
         $this->atom = DivinerAtom::newFromDictionary($atom->getAtomData());
     }
     return $this;
 }
示例#3
0
 public function attachAtom(DivinerLiveAtom $atom)
 {
     $this->atom = DivinerAtom::newFromDictionary($atom->getAtomData());
     return $this;
 }