git-svn-id: http://svn.cleancode.org/svn/pickles@139 4d10bc64-7434-11dc-a737-d2d0f8310089
37 lines
801 B
PHP
37 lines
801 B
PHP
<?php
|
|
|
|
class store_admin extends Module {
|
|
|
|
protected $authentication = true;
|
|
|
|
public function __construct(Config $config, DB $db, Mailer $mailer, Error $error) {
|
|
parent::__construct($config, $db, $mailer, $error);
|
|
|
|
$options = array(
|
|
'home',
|
|
'orders',
|
|
'customers',
|
|
'products',
|
|
'categories',
|
|
'discounts',
|
|
'affiliates',
|
|
'gift certificates',
|
|
'reports',
|
|
'settings'
|
|
);
|
|
$this->setPublic('options', $options);
|
|
|
|
$this->shared_template = 'store/admin';
|
|
}
|
|
|
|
public function __default() {
|
|
// Forces store/admin/home as the first page you get when only /store is called
|
|
$object = new store_admin_home($this->config, $this->db, $this->mailer, $this->error);
|
|
$object->__default();
|
|
|
|
$this->public = $object->public;
|
|
$this->name = 'store/admin/home';
|
|
}
|
|
}
|
|
|
|
?>
|