PHP Класс LazyRecord\Result

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$args Arguments before applying to SQL builder.
$code
$debugInfo
$error
$errors
$exception
$id
$message Message
$sql SQL query string
$success Success or fail.
$type CREATE_RESULT, READ_RESULT, UPDATE_RESULT, DELETE_RESULT
$validations column key => ValidationMessage object.
$vars Variables that built from SQL Query Builder

Открытые методы

Метод Описание
__toString ( )
failure ( $msg = null, $extra = [] )
getDebugInfo ( )
getErrorValidations ( ) Returns an array of ValidationMessage objects.
getSuccessValidations ( ) returns an array contains success validations.
getType ( $type )
notice ( string $desc = null )
setDebugInfo ( array $info )
setError ( )
setMessage ( $msg )
setSuccess ( )
setType ( $type )
silentError ( $desc = null, $messageType )
success ( $msg = null, $extra = [] )
throwExceptionIfFailed ( )
toException ( $message = '' )
triggerError ( string $desc = null, integer $errorType = E_USER_NOTICE ) Trigger error with errorType, default to E_USER_NOTICE.

Описание методов

__toString() публичный метод

public __toString ( )

failure() публичный статический метод

public static failure ( $msg = null, $extra = [] )

getDebugInfo() публичный метод

public getDebugInfo ( )

getErrorValidations() публичный метод

Returns an array of ValidationMessage objects.
public getErrorValidations ( )

getSuccessValidations() публичный метод

returns an array contains success validations.

getType() публичный метод

public getType ( $type )

notice() публичный метод

public notice ( string $desc = null )
$desc string

setDebugInfo() публичный метод

public setDebugInfo ( array $info )
$info array

setError() публичный метод

public setError ( )

setMessage() публичный метод

public setMessage ( $msg )

setSuccess() публичный метод

public setSuccess ( )

setType() публичный метод

public setType ( $type )

silentError() публичный метод

public silentError ( $desc = null, $messageType )

success() публичный статический метод

public static success ( $msg = null, $extra = [] )

throwExceptionIfFailed() публичный метод

toException() публичный метод

public toException ( $message = '' )

triggerError() публичный метод

Trigger error with errorType, default to E_USER_NOTICE.
public triggerError ( string $desc = null, integer $errorType = E_USER_NOTICE )
$desc string error description
$errorType integer error types defined in http://php.net/manual/en/function.trigger-error.php

Описание свойств

$args публичное свойство

Arguments before applying to SQL builder.
public $args

$code публичное свойство

public $code

$debugInfo публичное свойство

public $debugInfo

$error публичное свойство

public $error

$errors публичное свойство

public $errors

$exception публичное свойство

public $exception

$id публичное свойство

public $id

$message публичное свойство

Message
public $message

$sql публичное свойство

SQL query string
public $sql

$success публичное свойство

Success or fail.
public $success

$type публичное свойство

CREATE_RESULT, READ_RESULT, UPDATE_RESULT, DELETE_RESULT
public $type

$validations публичное свойство

column key => ValidationMessage object.
public $validations

$vars публичное свойство

Variables that built from SQL Query Builder
public $vars