Layout A layout can be simply viewed as a table definition. The table cells can contain blocks, and so this entity is provided to allow control of how blocks of content can be arranged on a webpage.
Located in /layout-defs.php (line 83)
RenderableObject | --layout
Class | Description |
---|---|
![]() |
Named Layout. A named layout is just another way of grabbing a layout, |
The group membership for Authoring privilege
Array of layout cells with edit permission
The group membership for Editor privilege
Array of layout blocks in edit mode
The group membership for Entry privilege
Whether the layout exists in database or not
The format string for last modified datetime
The index category of the current layout - used with Lucene indexing
The language of the layout (0 = default)
The language text direction
The language encoding code
Last modified date/time string.
Local layouteditor object, only instantiated if the
The name of the layout form
The unique ID of this layout
The layout blocks, keyed on 'row|col'
The name of the current layout
Supplemental layout table style
The layout table itself
Message to display (optional)
The prefix string for last modified datetime
The group privilege settings for this layout, as
The groups which have privilege settings for this layout, as
True if we should display last modified date
Table autojustify flag
Table rowstriping mode flag
Table style to apply for plain cells table
Table width specification
Total cells containing a content block
Total columns in layout
Total editable plain content cells
Total empty/undefined cells
Total plain content cells
Total rows in layout
Total viewable plain content cells
Total wysiwyg content cells
Array of layout cells with view permission
Constructor Create a new layout object. To create a new layout then just leave leave the argument list empty.
Provide a layouteditor. This is used to instantiate a layouteditor object for when we need to change this layout somewhow. We only need one, so we check if it's already been done first.
Delete the hosted layout from the database. Afterwards, the current object still exists as it was before this method was executed, but the $this->layout->exists flag will have been reset to false.
Get the layout.
Retrieves the specified layout from database.
Render the block content according to the mode of operation we are in. Possible modes: 'viewing', 'editing', 'saving'.
Index all blocks in this layout.
If Lucene indexing is enabled, then we call the indexer for all of the blocks which are in the hosted layout, using the webpage path and title as provided in the call to this method.
Paste the given layout into this layout, replacing the complete
definition as it currently stands, with the new one. To do this we delete the current layout from the database, get() the new layout from the database, and then replicate it, morphing this object into the brand new layout. All layout and associated block ID's are changed, and are brand new.
Save the layout.
Save this layout to the database. Create a new one if it doesn't already exist.
Replicate the hosted layout as a new layout. Creates a brand new
layout in the database, with same data as this one. The end result is that this current object becomes the new layout, and a duplicate set of layout records exist in the database. The layout ID of this new layout is, of course, updated to being a brand new one. NOTES: The layout name is normally left null, which keeps the layout in the same 'family' of layout versions. You can force the layout name to be different, and this will create a new 'layout_set' record of that name for you, if required.
Un-Index all blocks in this layout. After calling this method all the bloacks in the layout will have been removed from the Lucene index.
Return true if the current user is permitted to edit layout details.
We allow editing only for versions VERSION_PENDING and VERSION_LIVE and the latter only for Editors.
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3