PHP Trait Nestable\NestableTrait

Afficher le fichier Open project: atayahmet/laravel-nestable

Méthodes publiques

Свойство Type Description
$toArray integer Array service.
$toDropdown integer Dropdown service.
$toHtml integer Html service.
$toJson integer Json string service.

Protected Properties

Свойство Type Description
$_instance Query builder instance.
$nested mixed Start the nested process.
$parameters array Service parameters.
$source Soruce data.
$to integer Default service number (toArray).

Méthodes publiques

Méthode Description
__call ( array $method, array $args ) : mixed if called method not exists in NestableService pass to parent __call method.
__callStatic ( array $method, array $args ) : mixed Create new instance and call the method.
delete ( ) : boolean | null Call the parent delete method
get ( ) : mixed Get the data from db to collection or default return.
nested ( integer $to = 1 ) : object Set the nest type.
renderAsArray ( ) : array Render as array tree.
renderAsDropdown ( ) : string Render as dropdown.
renderAsHtml ( ) : string Render as html.
renderAsJson ( ) : array Render as json string.
renderAsMultiple ( ) : string Render as multiple list box.

Méthodes protégées

Méthode Description
getParameters ( ) : array Get the all service parameters.
getParentField ( ) : string Return the parent key name.
saveParameter ( string $method, mixed $value ) : object Save the service parameters.
to ( ) : mixed Pass data to nest methods.

Method Details

__call() public méthode

if called method not exists in NestableService pass to parent __call method.
public __call ( array $method, array $args ) : mixed
$method array
$args array
Résultat mixed

__callStatic() public static méthode

Create new instance and call the method.
public static __callStatic ( array $method, array $args ) : mixed
$method array
$args array
Résultat mixed

delete() public méthode

Call the parent delete method
public delete ( ) : boolean | null
Résultat boolean | null

get() public méthode

Get the data from db to collection or default return.
public get ( ) : mixed
Résultat mixed

getParameters() protected méthode

Get the all service parameters.
protected getParameters ( ) : array
Résultat array

getParentField() protected méthode

Return the parent key name.
protected getParentField ( ) : string
Résultat string

nested() public static méthode

Set the nest type.
public static nested ( integer $to = 1 ) : object
$to integer
Résultat object

renderAsArray() public static méthode

Render as array tree.
public static renderAsArray ( ) : array
Résultat array

renderAsDropdown() public static méthode

Render as dropdown.
public static renderAsDropdown ( ) : string
Résultat string

renderAsHtml() public static méthode

Render as html.
public static renderAsHtml ( ) : string
Résultat string

renderAsJson() public static méthode

Render as json string.
public static renderAsJson ( ) : array
Résultat array

renderAsMultiple() public static méthode

Render as multiple list box.
public static renderAsMultiple ( ) : string
Résultat string

saveParameter() protected méthode

Save the service parameters.
protected saveParameter ( string $method, mixed $value ) : object
$method string Method name in NestableService
$value mixed
Résultat object

to() protected méthode

Pass data to nest methods.
protected to ( ) : mixed
Résultat mixed

Property Details

$_instance protected_oe static_oe property

Query builder instance.
protected static $_instance

$nested protected_oe static_oe property

Start the nested process.
protected static mixed $nested
Résultat mixed

$parameters protected_oe static_oe property

Service parameters.
protected static array $parameters
Résultat array

$source protected_oe property

Soruce data.
protected $source

$to protected_oe static_oe property

Default service number (toArray).
protected static int $to
Résultat integer

$toArray public_oe static_oe property

Array service.
public static int $toArray
Résultat integer

$toDropdown public_oe static_oe property

Dropdown service.
public static int $toDropdown
Résultat integer

$toHtml public_oe static_oe property

Html service.
public static int $toHtml
Résultat integer

$toJson public_oe static_oe property

Json string service.
public static int $toJson
Résultat integer