Methods summary
public
boolean
|
#
__isset( string $key )
Determine if a attribute exists or not.
Determine if a attribute exists or not.
Parameters
Returns
boolean
|
public
mixed
|
#
__get( string $key )
Get post property by key.
Get post property by key.
Parameters
Returns
mixed
|
public
|
#
__set( string $key, mixed $value )
Set attribute value.
Parameters
|
public
|
#
__unset( string $key )
Unset attribute key.
Parameters
|
public
mixed
|
#
__call( string $method, array $parameters = [] )
Call method with parameters.
Call method with parameters.
Parameters
- $method
- $name
- $parameters
Returns
mixed
|
public static
mixed
|
#
__callStatic( string $method, array $parameters = [] )
Call static method with paramters.
Call static method with paramters.
Parameters
Returns
mixed
|
public static
array
|
#
collection( mixed $items = [] )
Create a collection of models.
Create a collection of models.
Parameters
Returns
array
|
public static
Xu\Model\Model
|
#
create( array $attributes = [] )
Create a model from attributes.
Create a model from attributes.
Parameters
Returns
|
public
mixed
|
#
get( string $key, mixed $default = null )
Get model attribute.
Parameters
Returns
mixed
|
public
array
|
#
get_attributes( )
Get the model attributes.
Get the model attributes.
Returns
array
|
public
array
|
|
public
mixed
|
#
get_model( string $model )
Get a model within a model instance.
Get a model within a model instance.
Parameters
Returns
mixed
|
public static
mixed
|
#
model( )
Create a new model instance.
Create a new model instance.
Returns
mixed
|
public
boolean
|
#
offsetExists( mixed $offset )
Determine if the given offset exists.
Determine if the given offset exists.
Parameters
Returns
boolean
Implementation of
ArrayAccess::offsetExists()
|
public
mixed
|
#
offsetGet( mixed $offset )
Get the value for a given offset.
Get the value for a given offset.
Parameters
Returns
mixed
Implementation of
ArrayAccess::offsetGet()
|
public
|
#
offsetSet( mixed $offset, mixed $value )
Set the value for a given offset.
Set the value for a given offset.
Parameters
Implementation of
ArrayAccess::offsetSet()
|
public
|
#
offsetUnset( mixed $offset )
Unset the value for a given offset.
Unset the value for a given offset.
Parameters
Implementation of
ArrayAccess::offsetUnset()
|
public
|
#
set( string $key, mixed $value )
Set model attribute.
Parameters
|
public
|
|
public
array
|
#
to_array( )
Convert the model instance to an array.
Convert the model instance to an array.
Returns
array
|