PHP Class BookStack\Http\Controllers\TagController

Inheritance: extends Controller
Datei anzeigen Open project: ssddanbrown/bookstack

Protected Properties

Property Type Description
$tagRepo

Public Methods

Method Description
__construct ( TagRepo $tagRepo ) TagController constructor.
getForEntity ( $entityType, $entityId ) Get all the Tags for a particular entity
getNameSuggestions ( Illuminate\Http\Request $request ) Get tag name suggestions from a given search term.
getValueSuggestions ( Illuminate\Http\Request $request ) Get tag value suggestions from a given search term.
updateForEntity ( $entityType, $entityId, Illuminate\Http\Request $request ) : mixed Update the tags for a particular entity.

Method Details

__construct() public method

TagController constructor.
public __construct ( TagRepo $tagRepo )
$tagRepo BookStack\Repos\TagRepo

getForEntity() public method

Get all the Tags for a particular entity
public getForEntity ( $entityType, $entityId )
$entityType
$entityId

getNameSuggestions() public method

Get tag name suggestions from a given search term.
public getNameSuggestions ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

getValueSuggestions() public method

Get tag value suggestions from a given search term.
public getValueSuggestions ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

updateForEntity() public method

Update the tags for a particular entity.
public updateForEntity ( $entityType, $entityId, Illuminate\Http\Request $request ) : mixed
$entityType
$entityId
$request Illuminate\Http\Request
return mixed

Property Details

$tagRepo protected_oe property

protected $tagRepo