<commit_before><?php
/**
 * Nooku Platform - http://www.nooku.org/platform
 *
 * @copyright	Copyright (C) 2011 - 2014 <NAME>ens and Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		https://github.com/nooku/nooku-platform for the canonical source repository
 */

namespace Nooku\Component\Pages;

use Nooku\Library;

/**
 * Modules Database Table
 *
 * @author  <NAME> <http://nooku.assembla.com/profile/stiandidriksen>
 * @package Nooku\Component\Pages
 */
class DatabaseTableModules extends Library\DatabaseTableAbstract
{
    public function  _initialize(Library\ObjectConfig $config)
    {
        $config->append(array(
            'behaviors'  => array(
                'creatable', 'modifiable', 'lockable', 'parameterizable', 'identifiable',
                'com:pages.database.behavior.orderable' => array('strategy' => 'flat')
            ),
            'filters' => array(
                'parameters'  => 'json'
            ),
            'column_map' => array(
                'parameters' => 'params',
            )
        ));

        parent::_initialize($config);
    }

	/**
	 * Get default values for all columns
	 *
	 * This method is specialized in order to set the default module position
	 * and published state<commit_msg>re #449 : Add 'accessible' behavior<commit_after><?php
/**
 * Nooku Platform - http://www.nooku.org/platform
 *
 * @copyright	Copyright (C) 2011 - 2014 <NAME> and Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		https://github.com/nooku/nooku-platform for the canonical source repository
 */

namespace Nooku\Component\Pages;

use Nooku\Library;

/**
 * Modules Database Table
 *
 * @author  <NAME> <http://nooku.assembla.com/profile/stiandidriksen>
 * @package Nooku\Component\Pages
 */
class DatabaseTableModules extends Library\DatabaseTableAbstract
{
    public function  _initialize(Library\ObjectConfig $config)
    {
        $config->append(array(
            'behaviors'  => array(
                'creatable', 'modifiable', 'lockable', 'parameterizable', 'identifiable', 'accessible',
                'com:pages.database.behavior.orderable' => array('strategy' => 'flat')
            ),
            'filters' => array(
                'parameters'  => 'json'
            ),
            'column_map' => array(
                'parameters' => 'params',
            )
        ));

        parent::_initialize($config);
    }

	/**
	 * Get default values for all columns
	 *
	 * This method is specialized in order to set the default module position
	 * and published state
{'fraction_non_alphanumeric': 0.13658721150208097, 'fraction_numerical': 0.007945516458569807, 'mean_word_length': 2.548993288590604, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 27, 'https://': 2, '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': '4141222', 'n_tokens_mistral': 817, 'n_tokens_neox': 772, 'n_words': 176}