public function removePageLink($index = null) {
        if ($index) {
            $return = $this->links->offsetGet($index);
            $this->links->offsetUnset($index);
            return $return;
        } else {
            return $this->links->pop();
        }
    }
public function removePageLink($index = null) {
        if ($index) {
            $return = $this->links->offsetGet($index);
            $this->links->offsetUnset($index);
            return $return;
        } else {
            return $this->links->pop();
        }
    }
public function removePageLink ( $ index = null ) { if ( $ index ) { $ return = $ this -> links -> offsetGet ( $ index ) ; $ this -> links -> offsetUnset ( $ index ) ; return $ return ; } else { return $ this -> links -> pop ( ) ; } }
Removes a page link from the list

@param  int      $index The index to remove, if not given, will remove the link from the end

@return PageLink        The link being removed
Removes a page link from the list