<commit_before><?php

class StoreAdmin extends ModelAdmin{

	public static $url_segment = 'orders';

	public static $menu_title = 'Orders';

	public static $menu_priority = 1;

	//static $url_priority = 50;

	public static $managed_models = array('Order','OrderStatus', 'Payment','OrderStatusLog', 'OrderItem', 'OrderModifier', 'ShippingAddress');
		public static function set_managed_models(array $array) {self::$managed_models = $array;}

	public static $collection_controller_class = 'StoreAdmin_CollectionController';

	public static $record_controller_class = 'StoreAdmin_RecordController';


	function init() {
		parent::init();
		Requirements::themedCSS("OrderReport");
		Requirements::javascript("ecommerce/javascript/EcommerceModelAdminExtensions.js");
	}


}

class StoreAdmin_CollectionController extends ModelAdmin_CollectionController {

	//public function CreateForm() {return false;}
	public function ImportForm() {return false;}

	function search($request, $form) {
		// Get the results form to be rendered
		$query = $this->getSearchQuery(array_merge($form->getData(), $request));
		$resultMap = new SQLMap($query, $keyField = "ID", $titleField = "Title");
		$items = $resultMap->getItems();
		$array = array();
		if($items && $items->count()) {<commit_msg>StoreAdmin: added Order_Status to models managed<commit_after><?php

class StoreAdmin extends ModelAdmin{

	public static $url_segment = 'orders';

	public static $menu_title = 'Orders';

	public static $menu_priority = 1;

	//static $url_priority = 50;

	public static $managed_models = array('Order','Order_Status', 'OrderStatusLog', 'OrderItem', 'OrderModifier', 'ShippingAddress','Payment');
		public static function set_managed_models(array $array) {self::$managed_models = $array;}

	public static $collection_controller_class = 'StoreAdmin_CollectionController';

	public static $record_controller_class = 'StoreAdmin_RecordController';


	function init() {
		parent::init();
		Requirements::themedCSS("OrderReport");
		Requirements::javascript("ecommerce/javascript/EcommerceModelAdminExtensions.js");
	}


}

class StoreAdmin_CollectionController extends ModelAdmin_CollectionController {

	//public function CreateForm() {return false;}
	public function ImportForm() {return false;}

	function search($request, $form) {
		// Get the results form to be rendered
		$query = $this->getSearchQuery(array_merge($form->getData(), $request));
		$resultMap = new SQLMap($query, $keyField = "ID", $titleField = "Title");
		$items = $resultMap->getItems();
		$array = array();
		if($items && $items->count()) {
{'fraction_non_alphanumeric': 0.13583591331269348, 'fraction_numerical': 0.0023219814241486067, 'mean_word_length': 6.5145348837209305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4787366', 'n_tokens_mistral': 763, 'n_tokens_neox': 720, 'n_words': 181}