예제 #1
0
 public static function getCurrentSessionType()
 {
     if (!self::$ks_object) {
         return kSessionBase::SESSION_TYPE_NONE;
     }
     if (self::$ks_object->isAdmin()) {
         return kSessionBase::SESSION_TYPE_ADMIN;
     }
     if (self::$ks_object->isWidgetSession()) {
         return kSessionBase::SESSION_TYPE_WIDGET;
     }
     return kSessionBase::SESSION_TYPE_USER;
 }
 public function isKsAdmin()
 {
     return $this->ks && $this->ks->isAdmin();
 }