Exemplo n.º 1
0
 /**
  * Checks if node matches css query filter ":only-of-type"
  * @return bool
  * @see match()
  * @access private
  */
 protected function filter_onlytype()
 {
     if ($this->parent === null) {
         return false;
     } else {
         return count($this->parent->getChildrenByTag($this->tag, 'total', false)) === 1;
     }
 }