Sprawdza posiadanie renderowanych atrybutów
@return boolean
437267
private function _hasPrintableAttributes()
    {
        //iteracja po atrybutach
        foreach ($this->_cmsAttributes as $attribute) {
            //nie jest atrybutem odziedziczonym - czyli będzie wypisany przy renderingu
            if (!$attribute->getJoined('cms_attribute_relation')->isMaterializedInherited()) {
                return true;
            }
        }
        return false;
    }
1122123
public function render()
    {
        $oConfig = $this->getConfig();
        $iShopId = $oConfig->getConfigParam('blMediaLibraryMultiShopCapability') ? $oConfig->getActiveShop()->getShopId() : null;

        $this->_aViewData['aFiles'] = $this->_getFiles(0, $iShopId);
        $this->_aViewData['iFileCount'] = $this->_getFileCount($iShopId);
        $this->_aViewData['sResourceUrl'] = $this->_oMedia->getMediaUrl();
        $this->_aViewData['sThumbsUrl'] = $this->_oMedia->getThumbnailUrl();

        return parent::render();
    }
1251987
public function delete()
    {
        //brak pk
        if ($this->getPk() === null) {
            return false;
        }
        //usuwanie historycznych, draftów i dzieci
        (new CmsCategoryQuery)
            ->whereCmsCategoryOriginalId()->equals($this->id)
            ->orFieldParentId()->equals($this->id)
            ->find()
            ->delete();
        //pobranie dzieci
        $children = (new \Cms\Model\CategoryModel)->getCategoryTree($this->getPk());
        if (!empty($children)) {
            throw new \Cms\Exception\ChildrenExistException();
        }
        //usuwanie plików
        (new CmsFileQuery)->whereObject()->equals(self::FILE_OBJECT)
            ->andFieldObjectId()->equals($this->getPk())
            ->find()
            ->delete();
        //usuwanie widgetów
        (new CmsCategoryWidgetCategoryQuery)
            ->whereCmsCategoryId()->equals($this->getPk())
            ->find()
            ->delete();
        //usuwanie kategorii i czyszczenie bufora
        return parent::delete() && $this->clearCache();
    }
285838
public function render()
    {
        $value = $this->arguments['value'];

        if ($value === null) {
            $value = $this->renderChildren();
        }

        return nl2br($value);
    }
1154495
public function render()
    {
        $renderer = $this->rendererRegistry->getRenderer($this->rendererName);
        foreach ($this->themes as $theme) {
            $renderer->setBlockTheme($theme[0], $theme[1]);
        }
        $renderer->setFormTheme($this->formThemes);

        return $renderer->renderBlock($this->view);
    }
258356
public function hasTemplate()
    {
        try {
            $this->baseRenderingContext->getTemplatePaths()->getTemplateSource(
                $this->baseRenderingContext->getControllerName(),
                $this->baseRenderingContext->getControllerAction()
            );

            return true;
        } catch (InvalidTemplateResourceException $e) {
            return false;
        }
    }
946545
private final function Render()
    {
        if ($this->request->isBinaryRequest())
            return;

        $renderpage = $this->currentpage;

        if ($this->request->isAjaxRequest()) {

           if(false==$renderpage->renderAjax())  return;
            
        }



        //загружаем  соответсвующий  шаблон
        $template = $this->getTemplate(get_class($renderpage));



        

        $doc = \phpQuery::newDocumentHTML($template);

        $basepage = get_parent_class($renderpage);
        // если  страница  не  базовая   а  дочерняя
        if ($basepage !== "Zippy\\Html\\WebPage") {

            $basetemplate = WebApplication::getApplication()->getTemplate($basepage);
            // if(count($renderpage->_tvars) >0){
            //    $m = new \Mustache_Engine();
            //   $basetemplate= $m->render($basetemplate, $renderpage->_tvars);
            //  }


            $bdoc = \phpQuery::newDocumentHTML($basetemplate);
            //восстанавливаем  по умолчанию


            $bdoc["childpage"]->replaceWith($doc['body']->html());

            $links = $doc['head  > link'];
            foreach ($links as $l) {
                pq('head')->append($l);
            }

            $script = $doc['head  > script'];
            foreach ($script as $sc) {
                pq('head')->append($sc);
            }
            $script = $doc['head  > title'];
            foreach ($script as $sc) {
                $bdoc['title']->remove();
                pq('head')->append($sc);
            }
            $script = $doc['head  > meta'];
            foreach ($script as $sc) {
                pq('head')->append($sc);
            }


            /*
              if (strlen($title) > 0) {
              $bdoc['description']->remove();
              pq('head')->append("<description>{$description}</title>");
              }
              if (strlen($title) > 0) {
              $bdoc['title']->remove();
              pq('head')->append("<title>{$title}</title>");
              } */
        }

        $renderpage->Render();


        if (strlen($renderpage->_title) > 0) {
            pq('title')->text($renderpage->_title);
        }
        if (strlen($renderpage->_keywords) > 0) {
            pq('meta[name="keywords"]')->attr('content', $renderpage->_keywords);
        }
        if (strlen($renderpage->_description) > 0) {
            pq('meta[name="description"]')->attr('content', $renderpage->_description);
        }



        $response = '<!DOCTYPE HTML>' . pq('html')->htmlOuter(); //HTML  в  выходной  поток

        if (count($renderpage->_tvars) > 0) {

            //востанавливаем  скобки  в тегах
            $response = str_replace("\"%7B%7B", "\"{{", $response);
            $response = str_replace("%7D%7D\"", "}}\"", $response);

            $m = new \Mustache_Engine();
            $response = $m->render($response, $renderpage->_tvars);
        }

        if ($this->request->isAjaxRequest()) {
            \phpQuery::newDocumentHTML($response);

            $renderpage->renderAjax(true);
            return;
        }
       
        $this->response->setContent($response);
    }
1056200
public function flush()
    {
        //bufor nieaktywny
        if (!$this->isActive()) {
            return;
        }
        //czyszczenie rejestru
        $this->getRegistry()->setOptions([], true);
        //czyszczenie do handler
        $this->_handler->deleteAll();
    }
336306
public function commitVersion()
    {
        //sprawdzenie czy posiada rodzica (oryginał)
        if (!$this->cmsCategoryOriginalId) {
            return true;
        }
        //wyszukiwanie oryginału
        $originalRecord = (new CmsCategoryQuery)->findPk($this->cmsCategoryOriginalId);
        //tworzenie wersji
        $versionModel = new \Cms\Model\CategoryVersion($originalRecord);
        $versionModel->create();
        //zmiana miejscami draftu z oryginałem
        return $versionModel->exchangeOriginal($this);
    }
1282166
public function renderFilter()
    {
        FrontController::getInstance()->getView()->_column = $this;
        //pusta opcja
        $this->setMultioptions([null => '---'] + $this->getMultioptions());
        //tworzy selecta z template'u
        return FrontController::getInstance()->getView()->renderTemplate(self::TEMPLATE_FILTER);
    }
1154543
public function render()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        // automatically redirect to SSL login
        if (!$myConfig->isSsl() && strpos($myConfig->getConfigParam('sAdminSSLURL'), 'https://') === 0) {
            \OxidEsales\Eshop\Core\Registry::getUtils()->redirect($myConfig->getConfigParam('sAdminSSLURL'), false, 302);
        }

        //resets user once on this screen.
        $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        $oUser->logout();

        \OxidEsales\Eshop\Core\Controller\BaseController::render();

        $this->setShopConfigParameters();

        if ($myConfig->isDemoShop()) {
            // demo
            $this->addTplParam("user", "admin");
            $this->addTplParam("pwd", "admin");
        }
        //#533 user profile
        $this->addTplParam("profiles", \OxidEsales\Eshop\Core\Registry::getUtils()->loadAdminProfile($myConfig->getConfigParam('aInterfaceProfiles')));

        $aLanguages = $this->_getAvailableLanguages();
        $this->addTplParam("aLanguages", $aLanguages);

        // setting templates language to selected language id
        foreach ($aLanguages as $iKey => $oLang) {
            if ($aLanguages[$iKey]->selected) {
                \OxidEsales\Eshop\Core\Registry::getLang()->setTplLanguage($iKey);
                break;
            }
        }

        return "login.tpl";
    }
837815
public function detailsAction()
    {
        if (!$this->getPost()->cmsFileId) {
            return $this->_jsonError(185);
        }
        //szukamy rekordu pliku
        if (null == $record = (new CmsFileQuery)->findPk($this->getPost()->cmsFileId)) {
            return $this->_jsonError(185);
        }
        //wycinamy rozszerzenie z nazwy oryginalnego pliku do edycji
        //pozycja ostatniej kropki w nazwie
        $pointPosition = strrpos($record->original, '.');
        if ($pointPosition !== false) {
            $record->original = substr($record->original, 0, $pointPosition);
        }
        $data = [];
        if ($record->data instanceof \Mmi\DataObject) {
            //parametry
            $data = $record->data->toArray();
        }
        $data['urlFile'] = ((\App\Registry::$config->cdn) ? : $record->getUrl());
        if ($record->data->posterFileName) {
            $data['poster'] = $record->getPosterUrl();
        }    
        return json_encode(['result' => 'OK', 'record' => $record, 'data' => $data]);
    }
244405
public function hasRenderer()
    {
        if (!isset($this->_data['renderer'])) {
            return false;
        }

        if (is_string($this->_data['renderer'])) {
            // Renderer class name has been given
            $renderer = $this->_data['renderer'];
            $namespace = ResourceTable::collection()->rendererNamespace();
            if ($namespace) {
                $renderer = $namespace.'\\'.$renderer;
            }
            if (!class_exists($renderer)) {
                return false;
            }
            if (!method_exists($renderer, 'render') || !is_callable([$renderer, 'render'])) {
                return false;
            }
        }

        return true;
    }
198021
public function beforeSave()
    {
        if ($this->getElement('password')->getValue() != $this->getElement('confirmPassword')->getValue()) {
            $this->getElement('confirmPassword')->addError('form.register.confirmPassword.error');
            return false;
        }
        //opcja zmiany (w tym przypadku ustawienia nowego) hasłą
        $this->getRecord()->password = \Cms\Model\Auth::getSaltedPasswordHash($this->getElement('password')->getValue());
        //domyślny język
        $this->getRecord()->lang = \App\Registry::$translate->getLocale();
        return true;
    }
361874
public function render()
    {
        $associationID = $this->arguments[self::ARGUMENT_ASSOCIATIONID];

        $associationFilter = $this->getDefaultAssociationFilter();

        if (empty($associationID)) {
            $association = $this->associationRepository->getFirstRootAssociation($associationFilter);
        } else {
            $association = $this->associationRepository->findByID($associationID, $associationFilter);
        }

        $this->templateVariableContainer->add($this->arguments[self::ARGUMENT_AS], $association);
        $output = $this->renderChildren();
        $this->templateVariableContainer->remove($this->arguments[self::ARGUMENT_AS]);

        return $output;
    }
568408
public function render()
    {
        /** @var Gallery $plugin */
        // TODO Добавить в этот класс ссылку на плагин
        $plugin = Eresus_Plugin_Registry::getInstance()->load('gallery');

        /** @var TClientUI $page */
        $page = Eresus_Kernel::app()->getPage();
        $page->linkJsLib('jquery');
        $page->linkScripts($plugin->getCodeUrl() . '/client/gallery.js');
        $page->linkStyles($plugin->getCodeUrl() . '/client/gallery.css');

        $tmpl = $plugin->templates()->client('popup.html');
        $popup = $tmpl->compile();
        $html = '<div id="gallery-popup">' . $popup . '</div>';

        $html .= $this->renderImageList();

        return $html;
    }
1270571
public function nodeAction()
    {
        //wyłączenie layout
        FrontController::getInstance()->getView()->setLayoutDisabled();
        //id węzła rodzica
        $this->view->parentId = ($this->parentId > 0) ? $this->parentId : null;
        //pobranie drzewiastej struktury stron CMS
        $this->view->categoryTree = (new \Cms\Model\CategoryModel)->getCategoryTree($this->view->parentId);
    }