Documentation

TermStatusController extends VocabularyBaseController
in package

Controller for term status operations.

Handles:

  • PUT /vocabulary/term/{wid}/status - Update status
  • /word/set-review-status - Set review status (iframe view)
  • /word/set-all-status - Mark all words with status
Tags
since
3.0.0

Table of Contents

Properties

$bulkService  : WordBulkService|null
$contextService  : WordContextService|null
$crudService  : WordCrudService|null
Lazy-loaded services.
$discoveryService  : WordDiscoveryService|null
$expressionService  : ExpressionService|null
$linkingService  : WordLinkingService|null
$multiWordService  : MultiWordService|null
$sentenceService  : SentenceService|null
$textStatisticsService  : TextStatisticsService|null
$uploadService  : WordUploadService|null
$viewPath  : string
View base path.
$facade  : VocabularyFacade
Vocabulary facade.

Methods

__construct()  : mixed
Constructor.
markAllWords()  : void
Mark all words with status (well-known or ignore).
setReviewStatusView()  : void
Set review status (iframe view).
setViewPath()  : void
Set custom view path.
updateStatus()  : void
Update term status.
getBulkService()  : WordBulkService
Get WordBulkService (lazy loaded).
getContextService()  : WordContextService
Get WordContextService (lazy loaded).
getCrudService()  : WordCrudService
Get WordCrudService (lazy loaded).
getDiscoveryService()  : WordDiscoveryService
Get WordDiscoveryService (lazy loaded).
getExpressionService()  : ExpressionService
Get ExpressionService (lazy loaded).
getLinkingService()  : WordLinkingService
Get WordLinkingService (lazy loaded).
getMultiWordService()  : MultiWordService
Get MultiWordService (lazy loaded).
getSentenceService()  : SentenceService
Get SentenceService (lazy loaded).
getTextStatisticsService()  : TextStatisticsService
Get TextStatisticsService (lazy loaded).
getUploadService()  : WordUploadService
Get WordUploadService (lazy loaded).
render()  : void
Render a view.

Properties

Methods

markAllWords()

Mark all words with status (well-known or ignore).

public markAllWords(array<string, string> $params) : void
Parameters
$params : array<string, string>

Route parameters

Tags
psalm-suppress

UnresolvableInclude Path computed from viewPath property

setReviewStatusView()

Set review status (iframe view).

public setReviewStatusView(array<string, string> $params) : void

Replaces set_test_status.php - sets status during review and renders result.

Parameters
$params : array<string, string>

Route parameters

setViewPath()

Set custom view path.

public setViewPath(string $path) : void
Parameters
$path : string

View path

updateStatus()

Update term status.

public updateStatus([int|null $wid = null ]) : void

Routes:

  • PUT /vocabulary/term/{wid:int}/status (new RESTful route)
  • PUT /vocabulary/term/status?wid=[id] (legacy route)

Body: {"status": 1-5|98|99}

Parameters
$wid : int|null = null

Term ID (injected from route parameter)

render()

Render a view.

protected render(string $view[, array<string|int, mixed> $data = [] ]) : void
Parameters
$view : string

View name (without .php)

$data : array<string|int, mixed> = []

View data


        
On this page

Search results