示例#1
0
 public static function clearAll()
 {
     foreach (self::$CACHETYPE as $key => $type) {
         BDataHelper::print_r($key);
         self::delete($key);
     }
 }
示例#2
0
 /**
  * wirte log
  * @author wjh 20150401
  * @param $name
  * @param null $content
  * @param int $typeid
  * @throws Exception
  */
 public function Log($name, $content = null, $typeid = 0)
 {
     $logtype = Yii::app()->params['switch']['logtype'];
     if (!empty($logtype) && $logtype == 'table') {
         DebugService::Log($name, $content = null, $typeid = 0);
     } else {
         BDataHelper::print_r($name);
         BDataHelper::print_r($content);
     }
 }
示例#3
0
 public static function testAll()
 {
     $returnType = 'array';
     BDataHelper::print_r('------------testArray-----------');
     $ht = BCacheHelper::testArray($returnType, true);
     BDataHelper::print_r($ht);
     BDataHelper::print_r('------------testModel-----------');
     $ht = BCacheHelper::testModel($returnType, true);
     BDataHelper::print_r($ht);
     BDataHelper::print_r('------------testGetArray-----------');
     $ht = BCacheHelper::testGetArray($returnType, true);
     BDataHelper::print_r($ht);
     BDataHelper::print_r('------------testGetModel-----------');
     $ht = BCacheHelper::testGetModel($returnType, true);
     BDataHelper::print_r($ht);
 }
 /**
  * logout
  */
 public function actionIndex()
 {
     $sessionid = session_id();
     $cacheToken = ThirdAccessService::getAllCacheValue();
     BDataHelper::print_r($cacheToken);
 }