Constructor, unset by default Only used for each sub class while getting all datas from database Useful for duplicate function for example
CMS_block
CMS_block
([ $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
Change the clientspace of block from a location (public, archived, deleted, edited)
boolean
changeClientSpace
(integer $pageID, integer $oldClientSpaceID, integer $newClientSpaceID, integer $rowID, integer $location, [boolean $public = false])
-
integer
$pageID: The page which contains the client space, DB ID
-
integer
$oldClientSpaceID: The old client space which contains the row, DB ID
-
integer
$newClientSpaceID: The new client space which now 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
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
Redefined in descendants as:
-
CMS_block_flash::delFromLocation()
: Deletes the block from a location (public, archived, deleted, edited)
-
CMS_block_image::delFromLocation()
: Deletes the block from a location (public, archived, deleted, edited)
-
CMS_block_file::delFromLocation()
: Deletes the block from a location (public, archived, deleted, edited)
-
CMS_block_link::delFromLocation()
: Deletes the block from a location (public, archived, deleted, edited)
-
CMS_block_cms_forms::delFromLocation()
: Deletes the block from a location (public, archived, deleted, edited)
-
CMS_block_polymod::delFromLocation()
: Deletes the block from a location (public, archived, deleted, edited)
Duplicate this block, all datas rebnamed and saved 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
Redefined in descendants as:
Get the value of an attribute.
string
getAttribute
(string $attribute)
-
string
$attribute: The attribute we want (its the key of the associative array)
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
Redefined in descendants as:
Gets the data in array mode.
array(string=>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
Redefined in descendants as:
Pseudo-constructor, sets the base attributes.
initializes the block with the tag ID and repeat attributes.
boolean
initializeFromBasicAttributes
(integer $blockID)
-
integer
$blockID: The ID attribute of the block tag
Pseudo-constructor, initializes the tag with its definition from tag and row id
boolean
initializeFromID
( $blockID, $rowID, string $blockID,, integer $rowID,)
-
string
$blockID,: the block id to initialise
-
integer
$rowID,: the row id which contain the block to load
-
$blockID
-
$rowID
Pseudo-constructor, initializes the tag with its definition.
boolean
initializeFromTag
( $attributes, $tagInnerContent, string $tagDefinition)
-
string
$tagDefinition: The tag definition, including the tag itself.
-
$attributes
-
$tagInnerContent
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, ...),
Redefined in descendants as:
Gets the folder name which depends of the page location
string
_getFolderName
(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
Redefined in descendants as:
Inherited Methods
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()