Exemplo n.º 1
0
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
 public function init()
 {
     if (false == Zetta_Acl::getInstance()->isAllowed('admin_module_settings')) {
         throw new Exception('Access Denied');
     }
     $this->_model = Modules_Settings_Model_Settings::getInstance();
     $this->_helper->getHelper('AjaxContext')->addActionContext('index', 'html')->addActionContext('add', 'html')->addActionContext('delete', 'json')->initContext();
 }
Exemplo n.º 3
0
 public function init()
 {
     if (false == Zetta_Acl::getInstance()->isAllowed('admin_module_analytics')) {
         throw new Exception('Access Denied');
     }
     $this->_model = Modules_Settings_Model_Settings::getInstance();
     $this->_helper->getHelper('AjaxContext')->addActionContext('index', 'html')->initContext();
     $this->_googleID = Zend_Registry::get('SiteConfig')->google_analytics_id;
     $this->_googleEmail = Zend_Registry::get('SiteConfig')->google_email ? Zend_Registry::get('SiteConfig')->google_email : '*****@*****.**';
     $this->_googlePassword = Zend_Registry::get('SiteConfig')->google_password ? Zend_Registry::get('SiteConfig')->google_password : '******';
 }
Exemplo n.º 4
0
 public function bootstrap()
 {
     parent::bootstrap();
     Zend_Registry::set('SiteConfig', Modules_Settings_Model_Settings::getInstance());
 }