<commit_before><?php

/**
 * Contao Open Source CMS
 *
 * Copyright (C) 2005-2013 <NAME>
 *
 * @package   translation_fields
 * @author    <NAME>
 * @license   LGPL
 * @copyright <NAME> 2013
 */


/**
 * Namespace
 */
namespace TranslationFields;


/**
 * Class TranslationFieldsPageModel
 *
 * @copyright  <NAME> 2013
 * @author     <NAME>
 * @package    translation_fields
 */
class TranslationFieldsPageModel extends \Model
{

	/**
	 * findRootPages function.
	 * 
	 * @access public
	 * @static
	 * @param array
	 * @return object
	 */
	public static function findRootPages(array $arrOptions=array())
	{
		$t = static::$strTable;
		$arrColumns = array("$t.type='root'");

		if (!isset($arrOptions['order']))
		{
			$arrOptions['order'] = "$t.fallback DESC, $t.sorting ASC";
		}

		return static::findBy($arrColumns, $intPid, $arrOptions);
	}
}<commit_msg>changed page model part 3<commit_after><?php

/**
 * Contao Open Source CMS
 *
 * Copyright (C) 2005-2013 <NAME>
 *
 * @package   translation_fields
 * @author    <NAME>
 * @license   LGPL
 * @copyright <NAME> 2013
 */


/**
 * Namespace
 */
namespace TranslationFields;


/**
 * Class TranslationFieldsPageModel
 *
 * @copyright  <NAME> 2013
 * @author     <NAME>
 * @package    translation_fields
 */
class TranslationFieldsPageModel extends \Model
{

	/**
	 * strTable
	 * 
	 * @var string
	 * @access protected
	 * @static
	 */
	protected static $strTable = 'tl_page';


	/**
	 * findRootPages function.
	 * 
	 * @access public
	 * @static
	 * @param array
	 * @return object
	 */
	public static function findRootPages(array $arrOptions=array())
	{
		$t = static::$strTable;
		$arrColumns = array("$t.type='root'");

		if (!isset($arrOptions['order']))
		{
			$arrOptions['order'] = "$t.fallback DESC, $t.sorting ASC";
		}

		return static::findBy($arrColumns, $intPid, $arrOptions);
	}
}
{'fraction_non_alphanumeric': 0.15667206915180984, 'fraction_numerical': 0.017828200972447326, 'mean_word_length': 3.451923076923077, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3853177', 'n_tokens_mistral': 687, 'n_tokens_neox': 597, 'n_words': 140}