AdvancedController::assetThumbnailListAction PHP Метод

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

    public function assetThumbnailListAction()
    {
        // try to get the tag where the parent folder is specified
        $parentFolder = $this->document->getElement("parentFolder");
        if ($parentFolder) {
            $parentFolder = $parentFolder->getElement();
        }
        if (!$parentFolder) {
            // default is the home folder
            $parentFolder = Asset::getById(1);
        }
        // get all children of the parent
        $list = new Asset\Listing();
        $list->setCondition("path like ?", $parentFolder->getFullpath() . "%");
        $this->view->list = $list;
    }