Services_JSON_Error::Services_JSON_Error
Устарела с версии 5.3.0. Больше не поддерживается и может быть удалена. Используйте
__construct().PHP4 constructor.
Метод класса: Services_JSON_Error{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Services_JSON_Error = new Services_JSON_Error(); $Services_JSON_Error->Services_JSON_Error( $message, $code, $mode, $options, $userinfo );
- $message
- .
По умолчанию:'unknown error' - $code
- .
По умолчанию:null - $mode
- .
По умолчанию:null - $options
- .
По умолчанию:null - $userinfo
- .
По умолчанию:null
Заметки
- Смотрите: Services_JSON_Error::__construct()
Список изменений
| Устарела с 5.3.0 | Use __construct() instead. |
Код Services_JSON_Error::Services_JSON_Error() Services JSON Error::Services JSON Error WP 6.9.4
public function Services_JSON_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null) {
_deprecated_constructor( 'Services_JSON_Error', '5.3.0', get_class( $this ) );
self::__construct($message, $code, $mode, $options, $userinfo);
}
}
} else {
/**
* @todo Ultimately, this class shall be descended from PEAR_Error
*/
class Services_JSON_Error
{
/**
* PHP5 constructor.
*
* @deprecated 5.3.0 Use the PHP native JSON extension instead.
*/
function __construct( $message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null )
{
_deprecated_function( __METHOD__, '5.3.0', 'The PHP native JSON extension' );
}
/**
* PHP4 constructor.
*
* @deprecated 5.3.0 Use __construct() instead.
*
* @see Services_JSON_Error::__construct()
*/
public function Services_JSON_Error( $message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null ) {
_deprecated_constructor( 'Services_JSON_Error', '5.3.0', get_class( $this ) );
self::__construct( $message, $code, $mode, $options, $userinfo );
}