PHP 클래스 Horde_Serialize, horde
Copyright 2001-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
파일 보기
프로젝트 열기: horde/horde
1 사용 예제들
공개 메소드들
보호된 메소드들
메소드 상세
protected static _serialize ( mixed $data, mixed $mode, mixed $params = null ) : string |
$data |
mixed |
The data to be serialized. |
$mode |
mixed |
The mode of serialization. Can be
either a single mode or array of modes.
If array, will be serialized in the
order provided. |
$params |
mixed |
Any additional parameters the serialization method
requires. |
리턴 |
string |
A serialized string. |
_unserialize()
보호된 정적인 메소드
protected static _unserialize ( mixed &$data, mixed $mode, mixed $params = null ) : mixed |
$data |
mixed |
The data to be unserialized. |
$mode |
mixed |
The mode of unserialization. Can be either a
single mode or array of modes. If array, will be
unserialized in the order provided. |
$params |
mixed |
Any additional parameters the unserialization
method requires. |
리턴 |
mixed |
Unserialized data. |
hasCapability()
공개 정적인 메소드
Check whether or not a serialization method is supported.
See the list of constants at the top of the file for the serializing
techniques that can be used.
public static serialize ( mixed $data, mixed $mode = [self::BASIC], mixed $params = null ) : string |
$data |
mixed |
The data to be serialized. |
$mode |
mixed |
The mode of serialization. Can be either a single
mode or array of modes. If array, will be
serialized in the order provided. |
$params |
mixed |
Any additional parameters the serialization method
requires. |
리턴 |
string |
The serialized data. |
See the list of constants at the top of the file for the serializing
techniques that can be used.
public static unserialize ( mixed $data, mixed $mode = self::BASIC, mixed $params = null ) : string |
$data |
mixed |
The data to be unserialized. |
$mode |
mixed |
The mode of unserialization. Can be either a
single mode or array of modes. If array, will be
unserialized in the order provided. |
$params |
mixed |
Any additional parameters the unserialization
method requires. |
리턴 |
string |
The unserialized data. |