<commit_before><?php
/**
 * @version		$Id: weblinks.php 1291 2011-05-16 22:13:45Z johanjanssens $
 * @package     Nooku_Server
 * @subpackage  Pages
 * @copyright	Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://www.nooku.org
 */

/**
 * Pages Module Html Class
 *
 * @author    	<NAME> <http://nooku.assembla.com/profile/gergoerdosi>
 * @package     Nooku_Server
 * @subpackage  Search
 */
class ModPagesHtml extends ModDefaultHtml
{
    public function display()
    {
        $start    = $this->params->get('startLevel');
        $end      = $this->params->get('endLevel');
        $children = $this->params->get('showAllChildren');
        $pages    = $this->getService('application')->getPages();

        $this->active = $pages->getActive();
        $this->pages  = $pages->find(array('pages_menu_id' => $this->params->get('menu_id'), 'hidden' => 0));

        foreach($pages as $page)
        {
            if($page->level - 1 < $start || ($page->level - 1 != $start && (!$children || ($end != 0 && ($end <= $start || $page->level - 1 > $end))))) {
                $this->pages->extract($page);<commit_msg>re #234 : Retrieve params from module row object<commit_after><?php
/**
 * @version		$Id: weblinks.php 1291 2011-05-16 22:13:45Z johanjanssens $
 * @package     Nooku_Server
 * @subpackage  Pages
 * @copyright	Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://www.nooku.org
 */

/**
 * Pages Module Html Class
 *
 * @author    	<NAME> <http://nooku.assembla.com/profile/gergoerdosi>
 * @package     Nooku_Server
 * @subpackage  Search
 */
class ModPagesHtml extends ModDefaultHtml
{
    public function display()
    {
        $start    = $this->module->params->get('startLevel');
        $end      = $this->module->params->get('endLevel');
        $children = $this->module->params->get('showAllChildren');
        $pages    = $this->getService('application')->getPages();

        $this->active = $pages->getActive();
        $this->pages  = $pages->find(array('pages_menu_id' => $this->module->params->get('menu_id'), 'hidden' => 0));

        foreach($pages as $page)
        {
            if($page->level - 1 < $start || ($page->level - 1 != $start && (!$children || ($end != 0 && ($end <= $start || $page->level - 1 > $end))))) {
                $this->pages->extract($page);
{'fraction_non_alphanumeric': 0.19259848786311182, 'fraction_numerical': 0.026661360923199363, 'mean_word_length': 2.885625965996909, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1670444', 'n_tokens_mistral': 895, 'n_tokens_neox': 828, 'n_words': 164}