list = $list; parent::__construct(); } /** * Returns the list this decorator wraps around. * * @return DataObjectSet */ public function getList() { return $this->list; } // PROXIED METHODS --------------------------------------------------------- public function offsetExists($key) { return $this->list->offsetExists($key); } public function offsetGet($key) { return $this->list->offsetGet($key); } public function offsetSet($key, $value) { $this->list->offsetSet($key, $value); } public function offsetUnset($key) { $this->list->offsetUnset($key); } public function destroy() { $this->list->destroy(); } public function emptyItems() { $this->list->emptyItems(); } public function toArray($index = null) { return $this->list->toArray($index); } public function toNestedArray($index = null){ return $this->list->toNestedArray($index); } public function push($item, $key = null) { $this->list->push($item, $key); } public function insertFirst($item, $key = null) { $this->list->insertFirst($item, $key); } public function unshift($item) { $this->list->unshift($item); } public function shift() { return $this->list->shift(); } public function pop() { return $this->list->pop(); } public function remove($itemObject) { $this->list->remove($itemObject); } public function replace($itemOld, $itemNew) { $this->list->replace($itemOld, $itemNew); } public function merge($anotherSet){ $this->list->merge($anotherSet); } public function getRange($offset, $length) { return $this->list->getRange($offset, $length); } public function getIterator() { return $this->list->getIterator(); } public function exists() { return $this->list->exists(); } public function First() { return $this->list->First(); } public function Last() { return $this->list->Last(); } public function TotalItems() { return $this->list->TotalItems(); } public function Count() { return $this->list->Count(); } public function UL() { return $this->list->UL(); } public function forTemplate() { return $this->list->forTemplate(); } public function map($index = 'ID', $titleField = 'Title', $emptyString = null, $sort = false) { return $this->list->map($index, $titleField, $emptyString, $sort); } public function find($key, $value) { return $this->list->find($key, $value); } public function column($value = 'ID') { return $this->list->column($value); } public function groupBy($index){ return $this->list->groupBy($index); } public function GroupedBy($index, $childControl = "Children") { return $this->list->GroupedBy($index, $childControl); } public function buildNestedUL($nestingLevels, $ulExtraAttributes = '') { return $this->list->buildNestedUL($nestingLevels, $ulExtraAttributes); } public function getChildrenAsUL($nestingLevels, $level = 0, $template = "