b0y-101 Mini Shell


Current Path : E:/www/instructor/test01/administrator/components/com_roksprocket/views/k2items/
File Upload :
Current File : E:/www/instructor/test01/administrator/components/com_roksprocket/views/k2items/view.html.php

<?php

// no direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');
JHtml::_('behavior.tooltip');

include_once(JPATH_COMPONENT_ADMINISTRATOR.'/helpers/legacy_class.php');


/**
 *
 */
class RoksprocketViewK2Items extends RokSprocketLegacyJView
{
    /**
     * @var
     */
    protected $items;
    /**
     * @var
     */
    protected $pagination;
    /**
     * @var
     */
    protected $state;

    /**
     * @param null $tpl
     * @return bool
     */
    function display($tpl = null)
    {
        $this->items = $this->get('Items');
        $this->pagination = $this->get('Pagination');
        $this->state = $this->get('State');
        $this->authors = $this->get('Authors');
        $this->categories = $this->get('Categories');


        // Check for errors.
        if (count($errors = $this->get('Errors'))) {
            JError::raiseError(500, implode("\n", $errors));
            return false;
        }

        parent::display($tpl);
    }

}

Copyright © 2019 by b0y-101