Admin_ClassificationstoreController::storetreeAction PHP Метод

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

public storetreeAction ( )
    public function storetreeAction()
    {
        $result = [];
        $list = new Pimcore\Model\Object\Classificationstore\StoreConfig\Listing();
        $list = $list->load();
        /** @var  $item Classificationstore\StoreConfig */
        foreach ($list as $item) {
            $resultItem = ["id" => $item->getId(), "text" => $item->getName(), "expandable" => false, "leaf" => true, "expanded" => true, "description" => $item->getDescription(), "iconCls" => "pimcore_icon_classificationstore"];
            $resultItem["qtitle"] = "ID: " . $item->getId();
            if ($item->getDescription()) {
            }
            $resultItem["qtip"] = $item->getDescription() ? $item->getDescription() : " ";
            $result[] = $resultItem;
        }
        return $this->_helper->json($result);
    }