当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Session_Abstract类代码示例

本文整理汇总了PHP中Zend_Session_Abstract的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Session_Abstract类的具体用法?PHP Zend_Session_Abstract怎么用?PHP Zend_Session_Abstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Zend_Session_Abstract类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: namespaceGet

 /**
  * namespaceGet() - get all variables in a namespace
  * Deprecated: Use getIterator() in Zend_Session_Namespace.
  *
  * @param string $namespace
  * @return array
  */
 public static function namespaceGet($namespace)
 {
     return parent::_namespaceGetAll($namespace);
 }
开发者ID:openbizx,项目名称:openbizx-cubix,代码行数:11,代码来源:Session.php

示例2: __unset

 /**
  * __unset() - unset a variable in this object's namespace.
  *
  * @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace
  * @return true
  */
 public function __unset($name)
 {
     if ($name === '') {
         /**
          * @see Zend_Session_Exception
          */
         require_once 'Zend/Session/Exception.php';
         throw new Zend_Session_Exception("The '{$name}' key must be a non-empty string");
     }
     return parent::_namespaceUnset($this->_namespace, $name);
 }
开发者ID:7thZoneTechnology,项目名称:hrms-1,代码行数:17,代码来源:Namespace.php

示例3: __unset

 /**
  * __unset() - unset a variable in this objects namespace.
  *
  * @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace
  * @return true
  */
 protected function __unset($name)
 {
     if ($name === '') {
         throw new Zend_Session_Exception("The '{$name}' key must be a non-empty string");
     }
     return parent::_namespaceUnset($this->_namespace, $name);
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:13,代码来源:Namespace.php

示例4: deploy

 /**
  * Here we go....
  *
  * @return string
  */
 public function deploy()
 {
     if ($this->getSource() === null) {
         throw new Bvb_Grid_Exception('Please Specify your source');
     }
     if ($this->getRequest()->isPost() && $this->getRequest()->getPost('postMassIds' . $this->getGridId())) {
         $this->_redirect($this->getUrl(array('zfmassedit', 'send_', 'gridAction_', 'massActionsAll_')));
         die;
     }
     if ($this->_allowDelete == 1 || $this->_allowEdit == 1 || $this->_allowAdd == 1) {
         $this->setAjax(false);
     }
     $this->_view = $this->getView();
     $this->_placePageAtRecord();
     if (isset($this->_ctrlParams['_zfgid']) && $this->_ctrlParams['_zfgid'] != $this->getGridId()) {
         return;
     }
     parent::deploy();
     $this->_applyConfigOptions(array());
     $this->_processForm();
     if (!$this->_temp['table'] instanceof Bvb_Grid_Template_Table) {
         $this->setTemplate('table', 'table', $this->_templateParams);
     } else {
         $this->setTemplate($this->_temp['table']->options['name'], 'table', $this->_templateParams);
     }
     $images = $this->_temp['table']->images($this->getImagesUrl());
     if ($this->_allowDelete == 1 || $this->_allowEdit == 1 || is_array($this->_detailColumns)) {
         $pkUrl = $this->getSource()->getIdentifierColumns($this->_data['table']);
         $urlFinal = '';
         $failPk = false;
         $pkUrl2 = $pkUrl;
         foreach ($pkUrl as $key => $value) {
             foreach ($this->getFields(true) as $field) {
                 if ($field['field'] == $value) {
                     unset($pkUrl2[$key]);
                     break 2;
                 }
             }
             // throw new Bvb_Grid_Exception("You don't have your primary key in your query.
             // So it's not possible to perform CRUD operations.
             // Change your select object to include your Primary Key: " . implode(';', $pkUrl2));
         }
         foreach ($pkUrl as $value) {
             if (strpos($value, '.') !== false) {
                 $urlFinal .= '{{' . substr($value, strpos($value, '.') + 1) . '}}-';
             } else {
                 $urlFinal .= '{{' . $value . '}}-';
             }
         }
         $urlFinal = trim($urlFinal, '-');
     }
     $removeParams = array('add', 'edit');
     $url = $this->getUrl($removeParams);
     if ($this->_allowEdit == 1 && is_object($this->_crud) && $this->_crud->getBulkEdit() !== true) {
         $urlEdit = $url;
         $this->_actionsUrls['edit'] = "{$urlEdit}/edit" . $this->getGridId() . "/" . $urlFinal;
         if ($this->_crud->getEditColumn() !== false) {
             $this->addExtraColumn(array('position' => $this->getCrudColumnsPosition(), 'name' => 'E', 'decorator' => "<a href=\"" . $this->_actionsUrls['edit'] . "\" > " . $images['edit'] . "</a>", 'edit' => true, 'order' => -2));
         }
     }
     if ($this->_allowDelete && is_object($this->_crud) && $this->_crud->getBulkDelete() !== true) {
         if ($this->_deleteConfirmationPage == true) {
             $this->_actionsUrls['delete'] = "{$url}/delete" . $this->getGridId() . "/{$urlFinal}" . "/detail" . $this->getGridId() . "/1";
             if ($this->_crud->getDeleteColumn() !== false) {
                 $this->addExtraColumn(array('position' => $this->getCrudColumnsPosition(), 'name' => 'D', 'class' => 'gridDeleteColumn', 'decorator' => "<a href=\"" . $this->_actionsUrls['delete'] . "\" > " . $images['delete'] . "</a>", 'delete' => true, 'order' => -3));
             }
         } else {
             $this->_actionsUrls['delete'] = "{$url}/delete/" . $urlFinal;
             if ($this->_crud->getDeleteColumn() !== false) {
                 $this->addExtraColumn(array('position' => $this->getCrudColumnsPosition(), 'name' => 'D', 'class' => 'gridDeleteColumn', 'decorator' => "<a href=\"#\" onclick=\"_" . $this->getGridId() . "confirmDel('" . $this->__('Are you sure?') . "','" . $this->_actionsUrls['delete'] . "');\" > " . $images['delete'] . "</a>", 'delete' => true, 'order' => -3));
             }
         }
     }
     if (is_array($this->_detailColumns) && $this->_isDetail == false) {
         $removeParams = array('add', 'edit');
         $url = $this->getUrl($removeParams);
         $this->_actionsUrls['detail'] = "{$url}/detail" . $this->getGridId() . "/" . $urlFinal;
         if ($this->_showDetailColumn === true) {
             $this->addExtraColumn(array('position' => $this->getCrudColumnsPosition(), 'name' => 'V', 'class' => 'gridDetailColumn', 'decorator' => "<a href=\"" . $this->_actionsUrls['detail'] . "\" >" . $images['detail'] . "</a>", 'detail' => true, 'order' => -1));
         }
     }
     if ($this->_allowAdd == 0 && $this->_allowDelete == 0 && $this->_allowEdit == 0) {
         $this->_gridSession->unsetAll();
     }
     if (!in_array('add' . $this->getGridId(), array_keys($this->getParams())) && !in_array('edit' . $this->getGridId(), array_keys($this->getParams()))) {
         if ($this->_gridSession->correct === null || $this->_gridSession->correct === 0) {
             $this->_gridSession->unsetAll();
         }
     }
     if (strlen($this->_gridSession->message) > 0) {
         $this->_render['message'] = $this->_temp['table']->formMessage($this->_gridSession->messageOk, $this->_gridSession->message);
         $this->_renderDeploy['message'] = $this->_render['message'];
     }
     if ($this->getParam('edit') && $this->_allowEdit == 1 || $this->getParam('add') && $this->_allowAdd == 1 || $this->getInfo("doubleTables") == 1) {
         if ($this->_allowAdd == 1 || $this->_allowEdit == 1) {
//.........这里部分代码省略.........
开发者ID:ocpyosep78,项目名称:Booking,代码行数:101,代码来源:Table.php

示例5: deploy

 /**
  * Here we go....
  *
  * @return string
  */
 public function deploy()
 {
     if ($this->getSource() === null) {
         throw new Bvb_Grid_Exception('Please Specify your source');
     }
     if ($this->_allowDelete == 1 || $this->_allowEdit == 1 || $this->_allowAdd == 1) {
         $this->setAjax(false);
     }
     $this->_view = $this->getView();
     $this->_placePageAtRecord();
     if (isset($this->_ctrlParams['_zfgid']) && $this->_ctrlParams['_zfgid'] != $this->getGridId()) {
         return;
     }
     parent::deploy();
     $this->_applyConfigOptions(array());
     $this->_processForm();
     if (!$this->_temp['table'] instanceof Bvb_Grid_Template_Table) {
         $this->setTemplate('table', 'table', $this->_templateParams);
     } else {
         $this->setTemplate($this->_temp['table']->options['name'], 'table', $this->_templateParams);
     }
     $images = $this->_temp['table']->images($this->getImagesUrl());
     if ($this->_allowDelete == 1 || $this->_allowEdit == 1 || is_array($this->_detailColumns) && $this->_isDetail == false) {
         $pkUrl = $this->getSource()->getIdentifierColumns($this->_data['table']);
         $urlFinal = '';
         $failPk = false;
         $pkUrl2 = $pkUrl;
         foreach ($pkUrl as $key => $value) {
             foreach ($this->getFields(true) as $field) {
                 if ($field['field'] == $value) {
                     unset($pkUrl2[$key]);
                     break 2;
                 }
             }
             // throw new Bvb_Grid_Exception("You don't have your primary key in your query.
             // So it's not possible to perform CRUD operations.
             // Change your select object to include your Primary Key: " . implode(';', $pkUrl2));
         }
         foreach ($pkUrl as $value) {
             if (strpos($value, '.') !== false) {
                 $urlFinal .= $value . ':{{' . substr($value, strpos($value, '.') + 1) . '}}-';
             } else {
                 $urlFinal .= $value . ':{{' . $value . '}}-';
             }
         }
         $urlFinal = trim($urlFinal, '-');
     }
     $removeParams = array('add', 'edit', 'comm');
     $url = $this->getUrl($removeParams);
     if ($this->_allowEdit == 1 && is_object($this->_crud) && $this->_crud->getBulkEdit() !== true) {
         if (!is_array($this->_extraFields)) {
             $this->_extraFields = array();
         }
         if ($this->_allowEdit == 1 && $this->getInfo("ajax") !== false) {
             $urlEdit = $this->_baseUrl . '/' . str_replace("/gridmod" . $this->getGridId() . "/ajax", "", $url);
         } else {
             $urlEdit = $url;
         }
         $this->_actionsUrls['edit'] = "{$urlEdit}/edit" . $this->getGridId() . "/1/comm" . $this->getGridId() . "/" . "mode:edit;[" . $urlFinal . "]";
         if ($this->_crud->getEditColumn() !== false) {
             array_unshift($this->_extraFields, array('position' => 'left', 'name' => 'E', 'decorator' => "<a href=\"" . $this->_actionsUrls['edit'] . "\" > " . $images['edit'] . "</a>", 'edit' => true));
         }
     }
     if ($this->_allowDelete && is_object($this->_crud) && $this->_crud->getBulkDelete() !== true) {
         if (!is_array($this->_extraFields)) {
             $this->_extraFields = array();
         }
         if ($this->_deleteConfirmationPage == true) {
             $this->_actionsUrls['delete'] = "{$url}/comm" . $this->getGridId() . "/" . "mode:view;[" . $urlFinal . "]/gridDetail" . $this->getGridId() . "/1/gridRemove" . $this->getGridId() . "/1";
             if ($this->_crud->getDeleteColumn() !== false) {
                 array_unshift($this->_extraFields, array('position' => 'left', 'name' => 'D', 'decorator' => "<a href=\"" . $this->_actionsUrls['delete'] . "\" > " . $images['delete'] . "</a>", 'delete' => true));
             }
         } else {
             $this->_actionsUrls['delete'] = "{$url}/comm" . $this->getGridId() . "/" . "mode:delete;[" . $urlFinal . "]";
             if ($this->_crud->getDeleteColumn() !== false) {
                 array_unshift($this->_extraFields, array('position' => 'left', 'name' => 'D', 'decorator' => "<a href=\"#\" onclick=\"_" . $this->getGridId() . "confirmDel('" . $this->__('Are you sure?') . "','" . $this->_actionsUrls['delete'] . "');\" > " . $images['delete'] . "</a>", 'delete' => true));
             }
         }
     }
     if (is_array($this->_detailColumns) && $this->_isDetail == false) {
         if (!is_array($this->_extraFields)) {
             $this->_extraFields = array();
         }
         $removeParams = array('add', 'edit', 'comm');
         $url = $this->getUrl($removeParams, false);
         $this->_actionsUrls['detail'] = "{$url}/gridDetail" . $this->getGridId() . "/1/comm" . $this->getGridId();
         $this->_actionsUrls['detail'] .= "/" . "mode:view;[" . $urlFinal . "]/";
         if ($this->_showDetailColumn === true) {
             array_unshift($this->_extraFields, array('position' => 'left', 'name' => 'V', 'decorator' => "<a href=\"" . $this->_actionsUrls['detail'] . "\" >" . $images['detail'] . "</a>", 'detail' => true));
         }
     }
     if ($this->_allowAdd == 0 && $this->_allowDelete == 0 && $this->_allowEdit == 0) {
         $this->_gridSession->unsetAll();
     }
     if (!in_array('add' . $this->getGridId(), array_keys($this->getAllParams())) && !in_array('edit' . $this->getGridId(), array_keys($this->getAllParams()))) {
//.........这里部分代码省略.........
开发者ID:robjacoby,项目名称:xlr8u,代码行数:101,代码来源:Table.php


注:本文中的Zend_Session_Abstract类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。