The blocklet is simply a part of a block. It is almost a 'paragraph' of
content, excepting that a blocklet might have content of several text paragraphs, so it is something slightly different, hence the name. This class knows how to get, save and delete blocklets, and how to render them as html.
Located in /block-defs.php (line 1107)
RenderableObject | --blocklet
blocklet ID
Manual style to apply to content
Blocklet textual content
Content colour
Content size adjustment -2 thru +2
The description of the current blocklet
Display order of this blocklet
Whether blocklet exists in database
blocklet heading
Heading colour
blocklet heading level (1-6)
Justification: 'left', 'right', 'centered'
blocklet ruler: 'none', 'top', 'bottom'
Ruler colour
Ruler pixel size
Ruler width percent: 0-100
True if we autojustify table
True if we autojustify table
Table style to apply to content
The blocklet type: 'text', 'list', 'ordered', 'bullets', or 'table'
Whether blocklet is visible
The width % of the blocklet table
Constructor Create a new blocklet object.
Content style.
Returns an internal class style string based on the values of properties: content_colour and content_size. Returns the string as bare style specs 'font-size:0.8em;' etc. $access private
Content style.
Returns an internal class style string based on the values of properties: content_colour and content_size. Returns the string as a full 'style="..." style, ready for a <span> tag etc.. $access private
Render the blocklet as a CSV stream. We split the content types for this into 'table' and 'other'. For tables we use the "|" delimiter to determine where our commas go. For other content we basically just leave it as-is, only adding quotes.
Process the current blocklet content for special tags. This effectively expands the special tags into 'real' content from database, or as image references etc. We return the expanded content as a string.
Format Content.
Formats the given content according to the given content type. $access private
Get the blocklet.
Retrieves the specified blocklet from database.
Render the blocklet.
Save the blocklet.
Save this blocklet to the database. Create a new one if it doesn't already exist.
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3