<commit_before><?php
 /**
  * Product Group is a 'holder' for Products within the CMS
  * It contains functions for versioning child products
  *
  * @package ecommerce
  */
class ProductGroup extends Page {

	public static $db = array(
		'ChildGroupsPermission' => "Enum('Show Only Featured Products,Show All Products')",
		"NumberOfProductsPerPage" => "Int"
	);

	public static $has_one = array();

	public static $has_many = array();

	public static $many_many = array();

	public static $belongs_many_many = array(
		'Products' => 'Product'
	);

	public static $defaults = array();

	public static $casting = array();

	public static $default_child = 'Product';

	public static $icon = 'ecommerce/images/treeicons/productgroup';

	protected static $include_child_groups = true;
		static function set_include_child_groups($include = true){self::$include_child_groups = $include;}
		static function get_include_child_groups(){return self::$include_child_groups;}

	protected static $must_have_price = true;
		static function set_must_have_price($must = true){user_error("ProductGroup::\$set_must_have_price has been depreciated, use ProductGroup::\$only_show_products_that_can_purchase", E_USER_NOTICE);}
		static function get_must_have_price(){user_error("ProductGroup::\$set_must_have_price has been depreciated, use ProductGroup::\$only_show_products_that_can_purchase", E_USER_NOTICE);}

	protected static $only_show_products_that_can_purchase = false;
		static function set_only_show_products_that_can_purchase($must = true){self::$only_show_products_that_can_purchase = $must;}
		static function get_only_show_products_that_can_purchase(){return self::$only_show_products_that_can_purchase;}

	//TODO: allow grouping multiple sort fields under one 'sort option', and allow choosing direction of each
	protected static $sort_options = array(<commit_msg>fixed Icons in ProductGroup<commit_after><?php
 /**
  * Product Group is a 'holder' for Products within the CMS
  * It contains functions for versioning child products
  *
  * @package ecommerce
  */
class ProductGroup extends Page {

	public static $db = array(
		'ChildGroupsPermission' => "Enum('Show Only Featured Products,Show All Products')",
		"NumberOfProductsPerPage" => "Int"
	);

	public static $has_one = array();

	public static $has_many = array();

	public static $many_many = array();

	public static $belongs_many_many = array(
		'Products' => 'Product'
	);

	public static $defaults = array();

	public static $casting = array();

	public static $default_child = 'Product';

	public static $icon = 'ecommerce/images/icons/productgroup';

	protected static $include_child_groups = true;
		static function set_include_child_groups($include = true){self::$include_child_groups = $include;}
		static function get_include_child_groups(){return self::$include_child_groups;}

	protected static $must_have_price = true;
		static function set_must_have_price($must = true){user_error("ProductGroup::\$set_must_have_price has been depreciated, use ProductGroup::\$only_show_products_that_can_purchase", E_USER_NOTICE);}
		static function get_must_have_price(){user_error("ProductGroup::\$set_must_have_price has been depreciated, use ProductGroup::\$only_show_products_that_can_purchase", E_USER_NOTICE);}

	protected static $only_show_products_that_can_purchase = false;
		static function set_only_show_products_that_can_purchase($must = true){self::$only_show_products_that_can_purchase = $must;}
		static function get_only_show_products_that_can_purchase(){return self::$only_show_products_that_can_purchase;}

	//TODO: allow grouping multiple sort fields under one 'sort option', and allow choosing direction of each
	protected static $sort_options = array(
{'fraction_non_alphanumeric': 0.10080428954423593, 'fraction_numerical': 0.0, 'mean_word_length': 6.772916666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4472629', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1085, 'n_words': 282}