function register ($nameOrItems, $item = null)
  {
    if (is_array ($nameOrItems))
      $this->items = array_merge ($this->items, $nameOrItems);
    else $this->items[$nameOrItems] = $item;
    return $this;
  }