同步操作将从 IBOS开源OA协同办公管理/IBOS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php/*** CHttpSessionIterator class file.** @author Qiang Xue <qiang.xue@gmail.com>* @link http://www.yiiframework.com/* @copyright 2008-2013 Yii Software LLC* @license http://www.yiiframework.com/license/*//*** CHttpSessionIterator implements an iterator for {@link CHttpSession}.** It allows CHttpSession to return a new iterator for traversing the session variables.** @author Qiang Xue <qiang.xue@gmail.com>* @package system.web* @since 1.0*/class CHttpSessionIterator implements Iterator{/*** @var array list of keys in the map*/private $_keys;/*** @var mixed current key*/private $_key;/*** Constructor.* @param array the data to be iterated through*/public function __construct(){$this->_keys=array_keys($_SESSION);}/*** Rewinds internal array pointer.* This method is required by the interface Iterator.*/public function rewind(){$this->_key=reset($this->_keys);}/*** Returns the key of the current array element.* This method is required by the interface Iterator.* @return mixed the key of the current array element*/public function key(){return $this->_key;}/*** Returns the current array element.* This method is required by the interface Iterator.* @return mixed the current array element*/public function current(){return isset($_SESSION[$this->_key])?$_SESSION[$this->_key]:null;}/*** Moves the internal pointer to the next array element.* This method is required by the interface Iterator.*/public function next(){do{$this->_key=next($this->_keys);}while(!isset($_SESSION[$this->_key]) && $this->_key!==false);}/*** Returns whether there is an element at current position.* This method is required by the interface Iterator.* @return boolean*/public function valid(){return $this->_key!==false;}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。