Blueprint Class

Aurora\Database\Query Namespace


Properties

fragments

Query fragments

protected $fragments = []: array

type

Query type

protected $type = 'select': string

Methods

addFragment

Add fragment

Parameters

  • string $type — Fragment type
  • Aurora\Database\Query\Fragment $fragment — Fragment object

Return Value

  • $this

Signature

public function addFragment(string $type, Aurora\Database\Query\Fragment $fragment)

popFragment

Pop fragment

Parameters

  • string $type — Fragment type

Return Value

  • \Fragment

Signature

public function popFragment(string $type): Aurora\Database\Query\Fragment

shiftFragment

Shift fragment

Parameters

  • string $type — Fragment type

Return Value

  • \Fragment

Signature

public function shiftFragment(string $type): Aurora\Database\Query\Fragment

resetFragment

Reset fragment

Parameters

  • string $type — Fragment type

Return Value

  • $this

Signature

public function resetFragment(string $type)

getType

Get type

Signature

public function getType()

setType

Set type

Parameters

  • string $type — Query type

Signature

public function setType(string $type)

getFragments

Get fragments

Parameters

  • string $type — Fragment type
  • bool $single — Return single Fragment

Return Value

  • mixed

Signature

public function getFragments(string $type, bool $single)

Go to top