Transactd PHP ORM 1.5.0
  • Namespace
  • Class

Namespaces

  • None
  • Transactd
    • boot
      • Laravel

Classes

  • AggregateFunction
  • CachedQueryExecuter
  • Collection
  • CollectionIterator
  • DatabaseManager
  • Model
  • QueryAdapter
  • QueryExecuter
  • Relation
  • TableForwordIterator
  • TableIterator
  • TableReverseIterator

Traits

  • JsonSerializable

Exceptions

  • IOException
  • ModelNotFoundException
  • ModelUserCancelException

Trait JsonSerializable

Direct Known Users

Transactd\Collection, Transactd\Model

Namespace: Transactd
Located at JsonSerializable.php

Methods summary

public
# getClassName( )
public string
# toString( )

Return a JSON text of this model

Return a JSON text of this model

Returns

string
public string
# toJson( )

Return a JSON text of this model

Return a JSON text of this model

Returns

string
public
# assign( Transactd\Model $src )

Copy contents of the original model.

Copy contents of the original model.

Parameters

$src
model of original

Returns


$this

Throws

InvalidArgumentException
public static Transactd\Model
# createInstance( Transactd\Model $src = null )

Create a new instance or clone model

Create a new instance or clone model

Parameters

$src
(optional) For clone

Returns

Transactd\Model
public static object
# chengeObjectType( object $v, $parent, $name )

Change object types by 'className'.

Change object types by 'className'.

Parameters

$v
$parent
$name

Returns

object
public static string
# serializeToJson( object $obj )

Serializes to JSON string.

Serializes to JSON string.

Parameters

$obj

Returns

string
public static object
# deSerializeFromJson( string $json )

Deserializes from JSON string.

Deserializes from JSON string.

Parameters

$json

Returns

object
public static object
# fromJson( string $json )

Deserializes from JSON string.

Deserializes from JSON string.

Parameters

$json

Returns

object

Properties summary

protected type $className

A class name for serizlization.

A class name for serizlization.

#
Transactd PHP ORM 1.5.0 API documentation generated by ApiGen