w3sContentManager __construct(
int
$className, [object The
$content = null]
)
|
|
Constructor.
Parameters:
|
int |
$className: |
The content's type |
|
object The |
$content: |
w3sContent object. Can be null when adding |
API Tags:
Redefinition of:
- w3sTemplateEngineEditor::__construct()
Redefined in descendants as:
int add(
object The
$param
)
|
|
Adds a content.
Parameters:
|
object The |
$param: |
content placed over the adding content |
API Tags:
| Return: | - 1 success / xx The error message number |
| Access: | public |
int delete(
[int
$op = 1]
)
|
|
Deletes a content. The content will be marked for deletion but it will be really deleted from the database when the pages will be published
Parameters:
|
int |
$op: |
optional the operation to do.
- [Default] Marks the content for deletion
|
API Tags:
| Return: | 1 success / xx The error message number |
| Access: | public |
string displayError(
int
$errorNumber, [bool
$showExtraInfo = false]
)
|
|
Returns the html error message that corresponds to a predefined error number
Parameters:
|
int |
$errorNumber: |
The error number. |
|
bool |
$showExtraInfo: |
optional If true displays extra information |
API Tags:
int edit(
array
$params
)
|
|
Edits a content.
Parameters:
|
array |
$params: |
An array with the values to edit. |
API Tags:
| Return: | - 1 success / xx The error message number |
| Access: | public |
array formatContent(
array
$contentValues
)
|
|
The default behaviour of the formatContent function is "Nothing to do", so the content array will be returned untouched .
Parameters:
|
array |
$contentValues: |
The array with contents. |
API Tags:
| Return: | The array with contents formatted. |
| Access: | protected |
Redefined in descendants as:
Returns the value of the className variable.
API Tags:
Returns the value of the content variable.
API Tags:
string getDefaultInteractiveMenu(
)
|
|
Returns the value of the default interactiveMenu.
API Tags:
string getDefaultValue(
)
|
|
Returns the default text for the text content
API Tags:
Redefined in descendants as:
string getDisplayContentForEditorMode(
)
|
|
Returns the content formatted to be correctly displayed in the editor mode.
The default value returned is simply the stored content.
API Tags:
Redefined in descendants as:
string getDisplayContentForPreviewMode(
)
|
|
Returns the content formatted to be correctly displayed in the preview mode.
The default value returned is the stored content with its links formatted to open the pages with ajax.
API Tags:
Redefined in descendants as:
string getDisplayContentForPublishMode(
)
|
|
Returns the content formatted to be correctly displayed in the editor mode.
The default value returned is simply the stored content.
API Tags:
Redefined in descendants as:
Returns the name used by the w3sEditorFactory class to render the editor.
API Tags:
Redefined in descendants as:
string getExceptionMessage(
)
|
|
Returns the value of the exceptionMessage variable.
API Tags:
string getInteractiveMenu(
)
|
|
Returns the Interactive Menu used to manage the editor. This gives you a chance to add the reference to javascript editor which manages the content.
API Tags:
Redefined in descendants as:
void getRelatedElements(
)
|
|
API Tags:
Redefined in descendants as:
bool getUpdateForeigns(
)
|
|
Returns the value of the updateForeigns variable.
API Tags:
bool makeSpace(
array
$params, str
$op
)
|
|
Makes a space between contents, moving their positions of one unit up or down, according to the op param
Parameters:
|
array |
$params: |
An array with the following keys: array("PageId" => value, "SlotId" => value, "LanguageId" => value, "ContentPosition" => value) |
|
str |
$op: |
The operation to do. Permitted values are "add - del" |
API Tags:
Redraws all the contents that belongs to the current slot.
API Tags:
| Return: | An html string with the slot's contents. |
| Access: | public |
void setClassName(
int
$value
)
|
|
Sets the value of the className variable.
Parameters:
API Tags:
void setContent(
object
$value
)
|
|
Sets the value of the content variable.
Parameters:
API Tags:
void setDefaultInteractiveMenu(
string
$value
)
|
|
Sets the default interactiveMenu.
Parameters:
API Tags:
void setDefaultRelatedElements(
)
|
|
API Tags:
Redefined in descendants as:
array setExceptionError(
string
$exception
)
|
|
The this->errors' array zero key is reserved for exceptions. Here is filled
Parameters:
|
string |
$exception: |
The exception message. |
API Tags:
| Return: | The formatted exception message. |
| Access: | protected |
void setExceptionMessage(
string
$value
)
|
|
Sets the value of the exceptionMessage variable.
Parameters:
API Tags:
setMessageErrors. Fills the standard error messages
API Tags:
void setUpdateForeigns(
bool
$value
)
|
|
Sets the value of the updateForeigns variable.
Parameters:
API Tags: