public function addIndex(CNabuDataObjectListIndex $index)
    {
        $name = $index->getName();

        if (is_array($this->secondary_indexes)) {
            $this->secondary_indexes[$name] = $index;
        } else {
            $this->secondary_indexes = array($name => $index);
        }

        return $index;
    }
public function addIndex(CNabuDataObjectListIndex $index)
    {
        $name = $index->getName();

        if (is_array($this->secondary_indexes)) {
            $this->secondary_indexes[$name] = $index;
        } else {
            $this->secondary_indexes = array($name => $index);
        }

        return $index;
    }
public function addIndex ( CNabuDataObjectListIndex $ index ) { $ name = $ index -> getName ( ) ; if ( is_array ( $ this -> secondary_indexes ) ) { $ this -> secondary_indexes [ $ name ] = $ index ; } else { $ this -> secondary_indexes = array ( $ name => $ index ) ; } return $ index ; }
Adds a new index to have alternate indexes of this list.
@param CNabuDataObjectListIndex $index Instance to manage this index.
@return CNabuDataObjectListIndex Returns the $index added.
Adds a new index to have alternate indexes of this list .