DbaController::rebuildCategoryTree PHP Метод

rebuildCategoryTree() публичный Метод

Fix the category tree after an import that only gives a sort & parent.
public rebuildCategoryTree ( )
    public function rebuildCategoryTree()
    {
        $this->permission('Garden.Settings.Manage');
        if ($this->Request->isAuthenticatedPostBack()) {
            $CategoryModel = new CategoryModel();
            $CategoryModel->rebuildTree();
            $this->setData('Result', array('Complete' => true));
        }
        $this->setData('Title', "Fix category tree from an import.");
        $this->_setJob($this->data('Title'));
        $this->render('Job');
    }