Constructor Used while getting all datas from database Useful for duplicate function for example
CMS_block_cms_forms
__construct
([ $id = 0], [integer $location = RESOURCE_LOCATION_USERSPACE], [boolean $public = false], integer $id,)
-
integer
$id,: DB ID of this block
-
integer
$location: The location we want to get the block from
-
boolean
$public: The needed precision for USERSPACE location
-
$id
Deletes the block from a location (public, archived, deleted, edited)
boolean
delFromLocation
(integer $pageID, integer $clientSpaceID, integer $rowID, integer $location, [boolean $public = false])
-
integer
$pageID: The page which contains the client space, DB ID
-
integer
$clientSpaceID: The client space which contains the row, DB ID
-
integer
$rowID: The row which contains the block, DB ID
-
integer
$location: The location we want to completly remove the block from
-
boolean
$public: The precision needed for USERSPACE location
Redefinition of:
- CMS_block::delFromLocation()
- Deletes the block from a location (public, archived, deleted, edited)
Duplicate this block Used to duplicate a CMS_page.
CMS_block
duplicate
(
&$destinationPage, [
boolean $public =
false],
CMS_page $destinationPage,)
-
CMS_page
$destinationPage,: the page receiving a copy of this block
-
boolean
$public: The precision needed for USERSPACE location
-
&$destinationPage
Redefinition of:
- CMS_block::duplicate()
- Duplicate this block, all datas rebnamed and saved Used to duplicate a CMS_page.
Gets the data in HTML mode.
-
CMS_language
&$language: The language of the administration frontend
-
CMS_page
&$page: The page which contains the client space
-
CMS_clientSpace
&$clientSpace: The client space which contains the row
-
CMS_row
&$row: The row which contains the block
-
integer
$visualizationMode: The visualization mode used
Redefinition of:
- CMS_block::getData()
- Gets the data in HTML mode.
Gets the data in array mode.
array(mixed=>mixed)
getRawData
(integer $pageID, integer $clientSpaceID, integer $rowID, integer $location, boolean $public)
-
integer
$pageID: The page DB ID which contains the client space
-
integer
$clientSpaceID: The client space DB ID which contains the row
-
integer
$rowID: The row DB ID which contains the block
-
integer
$location: The location of the page
-
boolean
$public: The needed precision for USERSPACE location
Redefinition of:
- CMS_block::getRawData()
- Gets the data in array mode.
Writes the block data into persistence (destroys previous and insert new)
boolean
writeToPersistence
(integer $pageID, integer $clientSpaceID, integer $rowID, integer $location, boolean $public, array(mixed=>mixed) $data)
-
integer
$pageID: The page which contains the client space, DB ID
-
integer
$clientSpaceID: The client space which contains the row, DB ID
-
integer
$rowID: The row which contains the block, DB ID
-
integer
$location: The location we want to completly remove the block from
-
boolean
$public: The precision needed for USERSPACE location
-
array(mixed=>mixed)
$data: The data indexed by data type (value, file, alt_tag, ...),
Redefinition of:
- CMS_block::writeToPersistence()
- Writes the block data into persistence (destroys previous and insert new)
Gets the table name which depends of the page location
string
_getDataTableName
(integer $location, boolean $public)
-
integer
$location: The location we want to completly remove the block from
-
boolean
$public: The precision needed for USERSPACE location
Get the HTML form given the block HTML example data.
string
_getHTMLForm
(
$language,
CMS_page &$page,
CMS_clientSpace &$clientSpace,
CMS_row &$row,
integer $blockID,
string $data,
CMS_language &$language)
-
CMS_language
&$language: The language of the administration frontend
-
CMS_page
&$page: The page which contains the client space
-
CMS_clientSpace
&$clientSpace: The client space which contains the row
-
CMS_row
&$row: The row which contains the block
-
integer
$blockID: The tag ID of the block
-
string
$data: The data to show as example
-
$language
Redefinition of:
- CMS_block::_getHTMLForm()
- Get the HTML form given the block HTML example data.
Inherited Methods
Inherited From CMS_block
CMS_block::CMS_block()
CMS_block::changeClientSpace()
CMS_block::delFromLocation()
CMS_block::duplicate()
CMS_block::getAttribute()
CMS_block::getData()
CMS_block::getRawData()
CMS_block::initializeFromBasicAttributes()
CMS_block::initializeFromID()
CMS_block::initializeFromTag()
CMS_block::writeToPersistence()
CMS_block::_getFolderName()
CMS_block::_getHTMLForm()
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()