Constructor.
initializes the rows.
void
__construct
(integer $templateID, integer $tagID, [boolean $editionMode = false], [integer $location = RESOURCE_LOCATION_USERSPACE], [boolean $public = false])
-
integer
$templateID: the DB ID of the template
-
integer
$tagID: the tag ID of the client space tag
-
boolean
$editionMode: true if we are in edition mode (data should be fetched from _edition table)
-
integer
$location: The location we want to get the block from
-
boolean
$public: The needed precision for USERSPACE location
Redefinition of:
- CMS_moduleClientspace::__construct()
- Constructor.
Add a row to the client space.
boolean
addRow
(integer $rowID, integer $rowTagID, integer $index)
-
integer
$rowID: the DB ID of the row to add
-
integer
$rowTagID: the ID attribute of the row tag to add
-
integer
$index: the index position of the row in the CS
Deletes a row.
boolean
delRow
(integer $rowID, integer $rowTagID)
-
integer
$rowID: the DB ID of the row to remove from the stack
-
integer
$rowTagID: the ID attribute of the row tag to del
Totally destroys the clientSpace from persistence, but not its rows.
void
destroy
()
Gets the data from the rows, using the specified visualization mode.
string
getData
(
CMS_language &$language,
CMS_page &$page,
integer $visualizationMode, [
boolean $templateHasPages =
false])
-
CMS_language
&$language: The language of the administration frontend
-
CMS_page
&$page: the page parsed
-
integer
$visualizationMode: the visualization mode
-
boolean
$templateHasPages: don't display forms if set to true
Redefinition of:
- CMS_moduleClientspace::getData()
- Gets the data from the module
Gets the data from all rows after initialized
string,
getRawData
(
CMS_language &$language,
CMS_page &$page,
integer $visualizationMode, [
boolean $templateHasPages =
false])
-
CMS_language
&$language: The language of the administration frontend
-
CMS_page
&$page: the page parsed
-
integer
$visualizationMode: the visualization mode
-
boolean
$templateHasPages: don't display forms if set to true
Redefinition of:
- CMS_moduleClientspace::getRawData()
- Gets the data from all rows
Gets a row in CS
CMS_rows
getRow
( $rowID, $rowTagID)
Gets the rows field
array(CMS_rows)
getRows
()
Gets the template DB ID.
integer
getTemplateID
()
Move a row to a given index in clientspace
boolean
moveRow
(integer $rowID, integer $rowTagID, integer $index)
-
integer
$rowID: the ID of the row to move
-
integer
$rowTagID: the ID attribute of the row tag to move
-
integer
$index: the index to put row at
Writes the clientSpace into persistence (MySQL for now).
boolean
writeToPersistence
()
Initialize rows depending on location user space
string
_checkRows
([integer $location = RESOURCE_LOCATION_USERSPACE], [boolean $public = false])
-
integer
$location: The location we want tag definition from
-
boolean
$public: The precision needed for USERSPACE location
Gets the table name which depends of the page location
string
_getDataTableName
(integer $location, boolean $public)
-
integer
$location: The location we want tag definition from
-
boolean
$public: The precision needed for USERSPACE location
Inherited Methods
Inherited From CMS_moduleClientspace
CMS_moduleClientspace::__construct()
CMS_moduleClientspace::getClientspaceData()
CMS_moduleClientspace::getData()
CMS_moduleClientspace::getRawData()
CMS_moduleClientspace::getTagID()
CMS_moduleClientspace::_parseTemplateForParameters()
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()