示例#1
0
 /**
  * @brief 设置用户信息数据
  * @return success-array failed-false
  * @retval array/boolean 
  * @author chenyijie
  * @date 2011/08/07 21:59:25
  **/
 public static function setUserInfo($arrValue)
 {
     if (parent::__setDict(parent::USER_INFO, $arrValue) === true) {
         return parent::__getDict(parent::USER_INFO);
     } else {
         Saf_SmartMain::setSafLog("保存用户信息出错", 1);
         return false;
     }
 }
示例#2
0
 /**
  * @brief 设置CGI数据 
  *
  * @return 失败false, 成功array()
  * @author cuichao02 
  * @date 2011/02/21
  **/
 public static function setCgi($arrValue)
 {
     if (parent::__setDict(parent::REQUEST_PARAM, $arrValue) === true) {
         return parent::__getDict(parent::REQUEST_PARAM);
     } else {
         Saf_SmartMain::setSafLog("保存CGI数据出错", 1);
         return false;
     }
 }
示例#3
0
 /**
  * @brief 设置公共字典数据
  *
  * @return 失败false, 成功array()
  * @author cuichao02 
  * @date 2011/02/21
  **/
 public static function setPublic($arrValue)
 {
     if (parent::__setDict(parent::PUBLIC_PARAM, $arrValue) === true) {
         return parent::__getDict(parent::PUBLIC_PARAM);
     } else {
         Saf_SmartMain::setSafLog("保存公共字典数据时出错", 1);
         return false;
     }
 }
示例#4
0
 /**
  * @brief 设置Log数据
  *
  * @param array(key=>value)
  * @return 失败false, 成功array()
  * @author cuichao02 
  * @date 2011/02/21
  **/
 public static function setLogNotice($arrValue)
 {
     if (parent::__setDict(parent::LOG_NOTICE, $arrValue) === true) {
         Saf_Base_Log::addLogNotice($arrValue);
         return parent::__getDict(parent::LOG_NOTICE);
     } else {
         Saf_SmartMain::setSafLog("设置log字典数据报错(" . var_export($arrValue, true) . ")", 1);
         return false;
     }
 }
示例#5
0
 /**
  * @brief 将适配信息保存在字典中
  *
  * @return 失败false, 成功array()
  * @author niuyunkun 
  * * @date 2012/07/06
  **/
 public static function setAdaptInfo($arrValue)
 {
     if (parent::__setDict(parent::ADAPT_INFO, $arrValue) === true) {
         return parent::__getDict(parent::ADAPT_INFO);
     } else {
         Saf_SmartMain::setSafLog("保存适配信息出错", 1);
         return false;
     }
 }
示例#6
0
 /**
  * @brief 修改保存在passport字典中的数据
  *
  * @param int $bit 设置第几位
  * @param int $v   设置值
  * @return 失败false, 成功array()
  * @note 此接口只能在Hook中才会调用成功
  * @author cuichao02 
  * @date 2011/02/21
  **/
 public static function setSavePassport($bit, $v)
 {
     $arrValue[$bit] = $v;
     if (parent::__setDict(parent::SAVE_PASSPORT, $arrValue) === true) {
         return parent::__getDict(parent::SAVE_PASSPORT);
     } else {
         Saf_SmartMain::setSafLog("设置到passport字典数据报错(" . var_export($arrValue, true) . ")", 1);
         return false;
     }
 }