public function getCategories()
    {
        if (!isset($this->_messages)) {
            $this->loadAll();
        }
        $categories = array_keys($this->_messages);
        sort($categories);
        return $categories;
    }