Directory
class Directory extends Package
Class Directory
Methods
string
getBasePath(string $action)
Get the base path for the command including an action.
from Package
ResponseInterface
add(string $name, bool $isBranch = false, string $branch = '')
Add directory to Crowdin project.
ResponseInterface
update(string $name, string $newName = '', string $title = '', string $exportPattern = '', string $branch = '')
Rename directory or modify its attributes.
ResponseInterface
delete(string $name)
Delete Crowdin project directory.
Details
in Package at line 45
__construct(string $projectId, string $apiKey, Client $httpClient)
Constructor.
in Package at line 57
protected string
getProjectId()
Get the project ID.
in Package at line 67
protected string
getApiKey()
Get the API key.
in Package at line 77
protected Client
getHttpClient()
Get the HTTP client object.
in Package at line 89
protected string
getBasePath(string $action)
Get the base path for the command including an action.
at line 35
ResponseInterface
add(string $name, bool $isBranch = false, string $branch = '')
Add directory to Crowdin project.
at line 70
ResponseInterface
update(string $name, string $newName = '', string $title = '', string $exportPattern = '', string $branch = '')
Rename directory or modify its attributes.
When renaming directory the path can not be changed (it means new_name parameter can not contain path, name only).
at line 109
ResponseInterface
delete(string $name)
Delete Crowdin project directory.
All nested files and directories will be deleted too.