Named Layout. A named layout is just another way of grabbing a layout,
but by name, rather than by ID. A given "name" can have multiple versions in existence, if it has been published, and these will all have unique ID's, so this class is concerned with sorting out which version of a named layout is required, and acquiring the correct layout ID.
Located in /layout-defs.php (line 1382)
RenderableObject | --layout | --named_layout
Flag to indicate POST told us to publish
Flag to indicate POST told us to revert
The version of the layout we have
Total versions of this layout in database
Inherited from layout
layout::$author_groups
layout::$editable_cells
layout::$editor_groups
layout::$edit_blocks
layout::$entry_groups
layout::$exists
layout::$format_last_modified
layout::$index_category
layout::$language
layout::$lang_direction
layout::$lang_encoding
layout::$last_modified
layout::$layouteditor
layout::$layoutfm
layout::$layoutid
layout::$layout_blocks
layout::$layout_name
layout::$layout_style
layout::$layout_table
layout::$message
layout::$prefix_last_modified
layout::$privileges
layout::$privilege_groups
layout::$show_last_modified
layout::$table_autojustify
layout::$table_rowstripes
layout::$table_style
layout::$table_width
layout::$tot_block
layout::$tot_cols
layout::$tot_editable
layout::$tot_empty
layout::$tot_plain
layout::$tot_rows
layout::$tot_viewable
layout::$tot_wysiwyg
layout::$viewable_cells
Constructor
Create a new named_layout object. A named layout is a layout which is identified by its name, and by the version. Versions are numbered from zero (0), which represents the most recent. The higher the version number, the further back in time you go. We define three special version numbers: VERSION_PENDING (0) The layout waiting to be made live VERSION_LIVE (1) The currently live layout VERSION_PREVIOUS (2) The version previously live Accordingly, these versions are the most recent three in the set of all versions of the layout.
Return HTML for this named layout.
Index the named layout. We only do this if the layout version is LIVE or there is only a single version in existence.
Publish a pending named layout. All we do in fact, is to replicate the current pending version of the layout (this one) into a new version. That automatically makes this layout the current LIVE one, and the newly created version becomes the new PENDING one.
Un-Index the named layout. We only do this if the layout version is LIVE or there is only a single version in existence.
Un-Publish a live named layout. This simply deletes the current pending version of the layout. That makes the current LIVE version the new pending version.
Inherited From layout
layout::layout()
layout::activate_editing()
layout::delete()
layout::get()
layout::html()
layout::index()
layout::is_pendingver()
layout::paste_layout()
layout::put()
layout::replicate()
layout::unindex()
layout::user_can_edit()
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3