public function registerCombinator($name, $object)
    {
        if (is_callable($object)) {
            $this->_combinators[$name] = array(
                "classname" => "CssParserCombinatorUserDefined",
                "user_def_function" => $object
            );
        } else {
            $this->_combinators[$name] = array(
                "classname" => $object,
                "user_def_function" => null
            );
        }
    }
public function registerCombinator($name, $object)
    {
        if (is_callable($object)) {
            $this->_combinators[$name] = array(
                "classname" => "CssParserCombinatorUserDefined",
                "user_def_function" => $object
            );
        } else {
            $this->_combinators[$name] = array(
                "classname" => $object,
                "user_def_function" => null
            );
        }
    }
public function registerCombinator ( $ name , $ object ) { if ( is_callable ( $ object ) ) { $ this -> _combinators [ $ name ] = array ( "classname" => "CssParserCombinatorUserDefined" , "user_def_function" => $ object ) ; } else { $ this -> _combinators [ $ name ] = array ( "classname" => $ object , "user_def_function" => null ) ; } }
Registers a new user defined combinator.

For example:
```php
// the following user defined combinator returns all child nodes that
// have no children. The user defined function should return an array of
// DOMElement objects.
$selector->registerCombinator("&", function ($node, $tagname) {
$ret = array();
$items = Dom::getElementsByTagName($node, $tagname);
foreach ($items as $item) {
$childs = Dom::getChildElements($item);
if (count($childs) == 0) {
array_push($ret, $item);
}
}
return $ret;
});

// we have defined the '&' combinator
$selector->query("genres &amp; item");
```

@param string         $name   Combinator name
@param string|Closure $object Class name or user defined function

@return void
Registers a new user defined combinator .