Exemplo n.º 1
0
 /**
  * Checks if node matches css query filter ":only-child"
  * @return bool
  * @see match()
  * @access private
  */
 protected function filter_onlychild()
 {
     if ($this->parent === null) {
         return false;
     } else {
         return $this->parent->childCount(true) === 1;
     }
 }