<commit_before><?php
/**
 * @version     $Id: listbox.php 3031 2011-10-09 14:21:07Z johanjanssens $
 * @package     Nooku_Server
 * @subpackage  Pages
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Module Html View Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/gergoerdosi>
 * @package     Nooku_Server
 * @subpackage  Pages
 */

class ComPagesViewModuleHtml extends ComDefaultViewHtml
{
    public function display()
    {
        $module = $this->getModel()->getItem();

        if($this->getLayout() == 'modal')
        {
            $menus = $this->getService('com://admin/pages.model.menus')->sort('title')->getList();
            $this->assign('menus', $menus);

            $pages = $this->getService('com://admin/pages.model.pages')->application('site')->getList();
            $this->assign('pages', $pages);

            $modules = $this->getService('com://admin/pages.model.modules')->application('site')->getList();
            $this->assign('modules', $modules);

            $relations = $this->getService('com://admin/pages.model.modules_pages')->modules_module_id($module->id)->getList();
            $this->assign('relations', $relations);
        }

        if($this->getLayout() == 'form')
        {
            $path = $this->getIdentifier()->getApplication($module->application);
            JFactory::getLanguage()->load($module->getIdentifier()->package, $module->name, $path);
        }<commit_msg>KModel::getItem() had been renamed to KModel::getRow(). KModel::getList() had been renamed to KModel::getRowset()<commit_after><?php
/**
 * @version     $Id: listbox.php 3031 2011-10-09 14:21:07Z johanjanssens $
 * @package     Nooku_Server
 * @subpackage  Pages
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Module Html View Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/gergoerdosi>
 * @package     Nooku_Server
 * @subpackage  Pages
 */

class ComPagesViewModuleHtml extends ComDefaultViewHtml
{
    public function display()
    {
        $module = $this->getModel()->getRow();

        if($this->getLayout() == 'modal')
        {
            $this->menu      = $this->getService('com://admin/pages.model.menus')
                                    ->sort('title')->getRowset();


            $this->pages     = $this->getService('com://admin/pages.model.pages')
                                     ->application('site')->getRowset();

            $this->modules   = $this->getService('com://admin/extensions.model.modules')
                                    ->application('site')->getRowset();

            $this->relations = $this->getService('com://admin/pages.model.modules_pages')
                                    ->modules_module_id($module->id)->getRowset();
        }

        if($this->getLayout() == 'form')
        {
            $module = $this->getModel()->getRow();

            $path = $this->getIdentifier()->getApplication($module->application);
            JFactory::getLanguage()->load($module->getIdentifier()->package, $module->name, $path);
        }
{'fraction_non_alphanumeric': 0.1800595238095238, 'fraction_numerical': 0.01369047619047619, 'mean_word_length': 2.479296066252588, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4331367', 'n_tokens_mistral': 1043, 'n_tokens_neox': 983, 'n_words': 153}