elFinder::sessionDataEncode PHP 메소드

sessionDataEncode() 공개 정적인 메소드

serialize and base64_encode of session data (If needed)
사용 중단:
저자: Naoki Sawada
public static sessionDataEncode ( mixed $var ) : mixed | string
$var mixed target variable
리턴 mixed | string
    public static function sessionDataEncode($var)
    {
        if (self::$base64encodeSessionData) {
            $var = base64_encode(serialize($var));
        }
        return $var;
    }

Usage Example

예제 #1
0
 /**
  * Save network volumes config.
  *
  * @param  array  $volumes  volumes config
  * @return void
  * @author Dmitry (dio) Levashov
  */
 protected function saveNetVolumes($volumes)
 {
     $_SESSION[$this->netVolumesSessionKey] = elFinder::sessionDataEncode($volumes);
 }
All Usage Examples Of elFinder::sessionDataEncode