コード例 #1
0
 public function init()
 {
     $actions = array('index', 'ajax');
     $this->_helper->_acl->allow('admin', $actions);
     //$this->view->addHelperPath('echolibre/View/Helper', 'Zend_View_Helper_FormStatic');
     parent::init();
 }
コード例 #2
0
ファイル: TesterController.php プロジェクト: reith2004/frapi
 public function init($styles = array())
 {
     $this->tr = Zend_Registry::get('tr');
     $actions = array('index', 'ajax', 'history');
     $this->_helper->_acl->allow('admin', $actions);
     parent::init($styles);
 }
コード例 #3
0
ファイル: ActionController.php プロジェクト: reith2004/frapi
 /**
  * Main Initializer
  *
  * This is the public method that will be used by the controller base
  * using the tyles in the init.
  *
  * @param array $styles an array of stylesheets (CSS)
  */
 public function init($styles = array())
 {
     $this->tr = Zend_Registry::get('tr');
     $actions = array('index', 'add', 'edit', 'delete', 'sync', 'test', 'code', 'error');
     $this->_helper->_acl->allow('admin', $actions);
     parent::init($styles);
 }
コード例 #4
0
 public function init()
 {
     $actions = array('index', 'detail', 'unset', 'unsetall');
     $this->_helper->_acl->allow('admin', $actions);
     $configModel = new Default_Model_Configuration();
     $server = $configModel->getKey('api_url');
     $cache = $configModel->getKey('cache');
     $this->hash = isset($server) ? hash('sha1', $server) : '';
     $this->cache_keys = array("Output.default-format", "Errors.user-defined", "Router.routes-prepared", "Internal.database-dsn", "Output.formats-enabled", "Actions.enabled-private", "Actions.enabled-public", "Partners.emails-keys", "Cache.adapter");
     parent::init();
 }
コード例 #5
0
ファイル: DocsController.php プロジェクト: crlang44/frapi
 public function init($styles = array())
 {
     $actions = array('index', 'generate');
     $this->_helper->_acl->allow('admin', $actions);
     $contextSwitch = $this->_helper->getHelper('contextSwitch');
     if (!$contextSwitch->hasContext('text')) {
         $contextSwitch->addContext('text', array('suffix' => 'txt', 'headers' => array('Content-Type' => 'text/plain')));
         $contextSwitch->addContext('mdown', array('suffix' => 'mdown', 'headers' => array('Content-Type' => 'text/plain')));
         $contextSwitch->addContext('html', array('suffix' => 'html', 'headers' => array('Content-Type' => 'text/html')));
         $contextSwitch->addContext('pdf', array('suffix' => 'pdf', 'headers' => array('Content-Type' => 'application/pdf', 'Content-Disposition' => 'Attachment; filename="api_docs-' . @date('Y-m-d') . '.pdf"')));
     }
     $contextSwitch->addActionContext('generate', 'text')->initContext();
     $contextSwitch->addActionContext('generate', 'html')->initContext();
     $contextSwitch->addActionContext('generate', 'pdf')->initContext();
     $contextSwitch->addActionContext('generate', 'mdown')->initContext();
     parent::init($styles);
 }
コード例 #6
0
 public function init()
 {
     $this->_helper->_acl->allow(null);
     parent::init();
     $this->initView();
 }
コード例 #7
0
ファイル: DatabaseController.php プロジェクト: Rud5G/frapi
 public function init($styles = array())
 {
     $actions = array('index', 'add', 'edit');
     $this->_helper->_acl->allow('admin', $actions);
     parent::init($styles);
 }
コード例 #8
0
ファイル: AuthController.php プロジェクト: crlang44/frapi
 public function init($styles = array())
 {
     $this->_helper->_acl->allow(null);
     parent::init($styles);
     $this->initView();
 }
コード例 #9
0
 public function init()
 {
     $actions = array('index', 'add', 'edit', 'delete');
     $this->_helper->_acl->allow('admin', $actions);
     parent::init();
 }
コード例 #10
0
ファイル: OutputController.php プロジェクト: crlang44/frapi
 public function init($styles = array())
 {
     $actions = array('index', 'sync', 'makedefault', 'disable', 'enable');
     $this->_helper->_acl->allow('admin', $actions);
     parent::init($styles);
 }
コード例 #11
0
 public function init($styles = array())
 {
     $this->_helper->_acl->allow('admin', array('index'));
     parent::init($styles);
 }