<commit_before>Doghouse Location
=================

List your store locations in the frontend and manage them in the admin section. Again, continuing the trend of things that make no design-decisions for you, this module doesn't actually show anything in the frontend. It just comes with a nice backend interface.

## Features

- Really nice Adminhtml grid with day of the week sorting, store location - opening hour relations, image preview and everything
- Comes free with foreign keys and all that stuff
- It doesn't do anything on the front-end. That's up to you
- You can put stuff in it in the admin panel

## Screenshot

![Doghouse Location screenshot of admin panel](doghouse_location_screenshot.png?raw=true "Doghouse Location screenshot of admin panel")

## Installation

Install using **Composer** (preferred) or **Modman**. Don't just drag this into your project without being aware of the directory structure.

## Docs

Here's a list of things you can do with it.

Getting a collection of your store locations. Wow!

`Mage::getModel('dhlocation/location')->getCollection();`

Getting a collection of your opening hours by location `$id`, and sorting them by weekday.

	Mage::getModel('dhlocation/hour')->getCollection()
		->addFieldToFilter('location_id', $id)
		->sortByWeekDay();

Showing how nice your store with `$id` is.

	$store = Mage::getModel('dhlocation/location')->load($id);

	echo '<img src="' . $this->quoteEscape(Mage::helper('dhlocation')->getImage($store)) . '"/>'

That's it.

## About

Created by [Doghouse](http://doghouse.agency/) because we needed a user-friendly way of getting store locations in the database. It's bloat free, has plenty of events that you can listen to (if that's your thing), and can be used in any project because it doesn't output any HTML or make any design decisions for you.<commit_msg>Added license to readme file<commit_after>Doghouse Location
=================

List your store locations in the frontend and manage them in the admin section. Again, continuing the trend of things that make no design-decisions for you, this module doesn't actually show anything in the frontend. It just comes with a nice backend interface.

## Features

- Really nice Adminhtml grid with day of the week sorting, store location - opening hour relations, image preview and everything
- Comes free with foreign keys and all that stuff
- It doesn't do anything on the front-end. That's up to you
- You can put stuff in it in the admin panel

## Screenshot

![Doghouse Location screenshot of admin panel](doghouse_location_screenshot.png?raw=true "Doghouse Location screenshot of admin panel")

## Installation

Install using **Composer** (preferred) or **Modman**. Don't just drag this into your project without being aware of the directory structure.

## Docs

Here's a list of things you can do with it.

Getting a collection of your store locations. Wow!

`Mage::getModel('dhlocation/location')->getCollection();`

Getting a collection of your opening hours by location `$id`, and sorting them by weekday.

	Mage::getModel('dhlocation/hour')->getCollection()
		->addFieldToFilter('location_id', $id)
		->sortByWeekDay();

Showing how nice your store with `$id` is.

	$store = Mage::getModel('dhlocation/location')->load($id);

	echo '<img src="' . $this->quoteEscape(Mage::helper('dhlocation')->getImage($store)) . '"/>'

That's it.

## About

Created by [Doghouse](http://doghouse.agency/) because we needed a user-friendly way of getting store locations in the database. It's bloat free, has plenty of events that you can listen to (if that's your thing), and can be used in any project because it doesn't output any HTML or make any design decisions for you.

# License

[MIT License](https://opensource.org/licenses/MIT)
{'fraction_non_alphanumeric': 0.10153764581124072, 'fraction_numerical': 0.0, 'mean_word_length': 4.822530864197531, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 1, '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': '5464203', 'n_tokens_mistral': 1042, 'n_tokens_neox': 993, 'n_words': 480}