public function addItems(array $items, $where = '')
    {
        foreach (array_keys($items) as $k) {
            if (!is_int($k) && $this->hasItem($k)) {
                unset($items[$k]);
            }
        }
        if (!empty($items)) {
            $this->setItems($items, $where);
        }

        return $this;
    }
public function addItems(array $items, $where = '')
    {
        foreach (array_keys($items) as $k) {
            if (!is_int($k) && $this->hasItem($k)) {
                unset($items[$k]);
            }
        }
        if (!empty($items)) {
            $this->setItems($items, $where);
        }

        return $this;
    }
public function addItems ( array $ items , $ where = '' ) { foreach ( array_keys ( $ items ) as $ k ) { if ( ! is_int ( $ k ) && $ this -> hasItem ( $ k ) ) { unset ( $ items [ $ k ] ) ; } } if ( ! empty ( $ items ) ) { $ this -> setItems ( $ items , $ where ) ; } return $ this ; }
Adds items to specified place.
Does not touch those items that already exists.
@param array        $items array of items
@param string|array $where where to add. See [[setItem()]]
@return $this for chaining
@see setItem()
Adds items to specified place . Does not touch those items that already exists .