Beispiel #1
0
 /**
  * Returns the path for the element, starting from the given
  * AbstractContainer
  *
  * @return string
  */
 public function getPath(AbstractContainer $startingFrom = null)
 {
     $id = '';
     if (is_object($this->parent) && $startingFrom !== $this->parent) {
         $id = $this->parent->getPath($startingFrom);
     }
     if ($id != '' && substr($id, -1) != '.') {
         $id .= '.';
     }
     if ($this->publicKey !== '') {
         $id .= $this->publicKey;
     }
     return $id;
 }