BaseW3sLanguageManager __construct(
[object The
$language = null]
)
|
|
Constructor.
Parameters:
|
object The |
$language: |
w3sLanguage object. Can be null when adding |
API Tags:
Adds a new language to w3studioCMS
Parameters:
|
array |
$params: |
An array with the following options: languageName - The new language's name isMain - 1 to set the new language as main language |
API Tags:
| Return: | - The result of the add operation |
| Access: | public |
int delete(
[int
$op = 1]
)
|
|
Deletes the current language
Parameters:
|
int |
$op: |
The value related to the operation to perform.
- - Delete content
|
API Tags:
| Return: | - The result of the delete operation |
| Access: | public |
bool deleteRelatedContents(
[int
$op = 1]
)
|
|
Deletes the language's contents that belongs to the current language object
Parameters:
|
int |
$op: |
The value related to the operation to perform.
- - Delete content
|
API Tags:
| Return: | false - The save operation failed true - Operation success |
| Access: | protected |
int edit(
array
$params
)
|
|
Edits an existing language
Parameters:
|
array |
$params: |
An array with the following options: languageName - The new language's name isMain - 1 to set the new language as main language |
API Tags:
| Return: | The result of the edit operation |
| Access: | public |