PHP Class App\Repositories\Backend\History\EloquentHistoryRepository

Inheritance: implements App\Repositories\Backend\History\HistoryContract
Show file Open project: rappasoft/laravel-5-boilerplate

Public Methods

Method Description
buildList ( $history, boolean $paginate = true ) : string
buildPagination ( $query, $limit, $paginate, $pagination ) : mixed
log ( $type, $text, null $entity_id = null, null $icon = null, null $class = null, null $assets = null ) : boolean | static
render ( null $limit = null, boolean $paginate = true, integer $pagination = 10 ) : string | Symfony\Component\Translation\TranslatorInterface
renderDescription ( $text, boolean $assets = false ) : mixed | string
renderEntity ( $type, $entity_id, null $limit = null, boolean $paginate = true, integer $pagination = 10 ) : string | Symfony\Component\Translation\TranslatorInterface
renderType ( $type, null $limit = null, boolean $paginate = true, integer $pagination = 10 ) : string | Symfony\Component\Translation\TranslatorInterface

Private Methods

Method Description
checkType ( $query, $type ) : mixed

Method Details

buildList() public method

public buildList ( $history, boolean $paginate = true ) : string
$history
$paginate boolean
return string

buildPagination() public method

public buildPagination ( $query, $limit, $paginate, $pagination ) : mixed
$query
$limit
$paginate
$pagination
return mixed

log() public method

public log ( $type, $text, null $entity_id = null, null $icon = null, null $class = null, null $assets = null ) : boolean | static
$type
$text
$entity_id null
$icon null
$class null
$assets null
return boolean | static

render() public method

public render ( null $limit = null, boolean $paginate = true, integer $pagination = 10 ) : string | Symfony\Component\Translation\TranslatorInterface
$limit null
$paginate boolean
$pagination integer
return string | Symfony\Component\Translation\TranslatorInterface

renderDescription() public method

public renderDescription ( $text, boolean $assets = false ) : mixed | string
$text
$assets boolean
return mixed | string

renderEntity() public method

public renderEntity ( $type, $entity_id, null $limit = null, boolean $paginate = true, integer $pagination = 10 ) : string | Symfony\Component\Translation\TranslatorInterface
$type
$entity_id
$limit null
$paginate boolean
$pagination integer
return string | Symfony\Component\Translation\TranslatorInterface

renderType() public method

public renderType ( $type, null $limit = null, boolean $paginate = true, integer $pagination = 10 ) : string | Symfony\Component\Translation\TranslatorInterface
$type
$limit null
$paginate boolean
$pagination integer
return string | Symfony\Component\Translation\TranslatorInterface