public function listItems($context = null)
    {
        if ($this->items === null) {
            $this->loadItems();
        }

        if ($context !== null) {
            return $this->filterByContext($this->groupedItems, $context);
        }

        return $this->groupedItems;
    }
public function listItems($context = null)
    {
        if ($this->items === null) {
            $this->loadItems();
        }

        if ($context !== null) {
            return $this->filterByContext($this->groupedItems, $context);
        }

        return $this->groupedItems;
    }
public function listItems ( $ context = null ) { if ( $ this -> items === null ) { $ this -> loadItems ( ) ; } if ( $ context !== null ) { return $ this -> filterByContext ( $ this -> groupedItems , $ context ) ; } return $ this -> groupedItems ; }
Returns a collection of all settings by group, filtered by context
@param  string $context
@return array
Returns a collection of all settings by group filtered by context