WikibaseLexeme
MediaWiki WikibaseLexeme extension
|
Set of Forms in which uniqueness of a Form is controlled by it's ID. More...
Public Member Functions | |
__construct (array $forms=[]) | |
toArray () | |
toArrayUnordered () | |
Return the individual Forms in arbitrary order. | |
count () | |
maxFormIdNumber () | |
add (Form $form) | |
remove (FormId $formId) | |
put (Form $form) | |
Replace the form identified by $form->getId() with the given one or add it. | |
getById (FormId $formId) | |
copy () | |
__clone () | |
isEmpty () | |
equals ( $other) | |
hasFormWithId (FormId $formId) | |
Private Member Functions | |
sortForms (array $forms) | |
sameForms (FormSet $other) | |
Private Attributes | |
$forms = [] | |
Set of Forms in which uniqueness of a Form is controlled by it's ID.
Supposed to be used only inside the Lexeme class
Wikibase\Lexeme\Domain\Model\FormSet::__construct | ( | array | $forms = [] | ) |
Form[] | $forms |
Wikibase\Lexeme\Domain\Model\FormSet::__clone | ( | ) |
Wikibase\Lexeme\Domain\Model\FormSet::add | ( | Form | $form | ) |
Wikibase\Lexeme\Domain\Model\FormSet::copy | ( | ) |
Wikibase\Lexeme\Domain\Model\FormSet::count | ( | ) |
Wikibase\Lexeme\Domain\Model\FormSet::equals | ( | $other | ) |
Wikibase\Lexeme\Domain\Model\FormSet::getById | ( | FormId | $formId | ) |
FormId | $formId |
Wikibase\Lexeme\Domain\Model\FormSet::hasFormWithId | ( | FormId | $formId | ) |
FormId | $formId |
Wikibase\Lexeme\Domain\Model\FormSet::isEmpty | ( | ) |
Wikibase\Lexeme\Domain\Model\FormSet::maxFormIdNumber | ( | ) |
Wikibase\Lexeme\Domain\Model\FormSet::put | ( | Form | $form | ) |
Replace the form identified by $form->getId() with the given one or add it.
Form | $form |
Wikibase\Lexeme\Domain\Model\FormSet::remove | ( | FormId | $formId | ) |
|
private |
|
private |
Form[] | $forms |
Wikibase\Lexeme\Domain\Model\FormSet::toArray | ( | ) |
Wikibase\Lexeme\Domain\Model\FormSet::toArrayUnordered | ( | ) |
Return the individual Forms in arbitrary order.
Only use this method if the order is certainly insignificant, e.g. because the Forms will be summarized or reduced in some way. Otherwise, use toArray()
.
|
private |