PHP Class LazyRecord\Result

ファイルを表示 Open project: corneltek/lazyrecord Class Usage Examples

Public Properties

Property Type Description
$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

Public Methods

Method Description
__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.

Method Details

__toString() public method

public __toString ( )

failure() public static method

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

getDebugInfo() public method

public getDebugInfo ( )

getErrorValidations() public method

Returns an array of ValidationMessage objects.
public getErrorValidations ( )

getSuccessValidations() public method

returns an array contains success validations.

getType() public method

public getType ( $type )

notice() public method

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

setDebugInfo() public method

public setDebugInfo ( array $info )
$info array

setError() public method

public setError ( )

setMessage() public method

public setMessage ( $msg )

setSuccess() public method

public setSuccess ( )

setType() public method

public setType ( $type )

silentError() public method

public silentError ( $desc = null, $messageType )

success() public static method

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

throwExceptionIfFailed() public method

toException() public method

public toException ( $message = '' )

triggerError() public method

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

Property Details

$args public_oe property

Arguments before applying to SQL builder.
public $args

$code public_oe property

public $code

$debugInfo public_oe property

public $debugInfo

$error public_oe property

public $error

$errors public_oe property

public $errors

$exception public_oe property

public $exception

$id public_oe property

public $id

$message public_oe property

Message
public $message

$sql public_oe property

SQL query string
public $sql

$success public_oe property

Success or fail.
public $success

$type public_oe property

CREATE_RESULT, READ_RESULT, UPDATE_RESULT, DELETE_RESULT
public $type

$validations public_oe property

column key => ValidationMessage object.
public $validations

$vars public_oe property

Variables that built from SQL Query Builder
public $vars