public function removeItem($item)
    {
        $nb_index_id = nb_getMixedValue($item, $this->index_field);
        if ((is_numeric($nb_index_id) || nb_isValidGUID($nb_index_id)) && $this->containsKey($nb_index_id)) {
            unset($this->list[$nb_index_id]);
            $this->removeItemIndex($item);
        }
    }
public function removeItem($item)
    {
        $nb_index_id = nb_getMixedValue($item, $this->index_field);
        if ((is_numeric($nb_index_id) || nb_isValidGUID($nb_index_id)) && $this->containsKey($nb_index_id)) {
            unset($this->list[$nb_index_id]);
            $this->removeItemIndex($item);
        }
    }
public function removeItem ( $ item ) { $ nb_index_id = nb_getMixedValue ( $ item , $ this -> index_field ) ; if ( ( is_numeric ( $ nb_index_id ) || nb_isValidGUID ( $ nb_index_id ) ) && $ this -> containsKey ( $ nb_index_id ) ) { unset ( $ this -> list [ $ nb_index_id ] ) ; $ this -> removeItemIndex ( $ item ) ; } }
Removes an item from the list.
@param mixed $item A CNabuDataObject containing a field matching the main index field name
or a scalar variable containing the Id to be removed.
@return CNabuDataObject|bool Returns the removed item if exists or false if not.
Removes an item from the list .