Lines Matching refs:uid
33 * @param mixed $uid
36 public function find($uid)
42 if($node->getUid() === $uid) {
51 * @param mixed $uid
54 public function & findAll($uid)
60 if($node->getUid() == $uid) {
100 protected $uid;
114 * @param mixed $uid
118 public function __construct($data, $uid = null, Node $parent = null, $assureUnique = false)
125 $this->uid = $uid ? : uniqid(sha1(serialize($data)), true);
130 * @param mixed $uid
132 public function setUid($uid)
134 $this->uid = $uid;
142 return $this->uid;
192 if(true === $this->assureUnique && !self::checkUnique($parent, $this->uid)) {
193 throw new \RuntimeException("Node uid is not unique in assigned node tree");
201 * @param mixed $uid
204 protected static function checkUnique(Node $node, $uid)
213 return !$tree->find($uid);
321 [uid:protected] => %s
331 [uid:protected] => 1
341 [uid:protected] => 2