StringCommentApi
extends AbstractApi
in package
Use API to add or remove strings translations, approvals, and votes.
Table of Contents
Methods
- batchOperations() : mixed
- String Comment Batch Operations
- create() : StringComment|null
- Add String Comment
- delete() : mixed
- Delete String Comment
- get() : StringComment|null
- Get String Comment
- list() : ModelCollection|null
- List String Comment
- update() : StringComment|null
- Edit String Comment
Methods
batchOperations()
String Comment Batch Operations
public
batchOperations(int $projectId, array<string|int, mixed> $data) : mixed
Parameters
- $projectId : int
- $data : array<string|int, mixed>
-
string $data[op] required Patch operation to perform (replace, test)
string$data[path] required A JSON Pointer as defined in RFC 6901
value $data[value] required The value to be used within the operation (string, int, bool, or object)
Tags
create()
Add String Comment
public
create(int $projectId, array<string|int, mixed> $data) : StringComment|null
Parameters
- $projectId : int
- $data : array<string|int, mixed>
Tags
Return values
StringComment|nulldelete()
Delete String Comment
public
delete(int $projectId, int $stringCommentId) : mixed
Parameters
- $projectId : int
- $stringCommentId : int
Tags
get()
Get String Comment
public
get(int $projectId, int $stringCommentId) : StringComment|null
Parameters
- $projectId : int
- $stringCommentId : int
Tags
Return values
StringComment|nulllist()
List String Comment
public
list(int $projectId[, array<string|int, mixed> $params = [] ]) : ModelCollection|null
Parameters
- $projectId : int
- $params : array<string|int, mixed> = []
Tags
Return values
ModelCollection|nullupdate()
Edit String Comment
public
update(int $projectId, StringComment $stringComment) : StringComment|null
Parameters
- $projectId : int
- $stringComment : StringComment