Class blockeditor

Description

Block Editor

A blockeditor is a utility class. It contains all of the methods required to edit a block, so that the block class can concentrate on the basics of block acquisition and display. The constructor of a blockeditor must be passed a reference to the block it is going to be providing editing services for.

Located in /block-editor-defs.php (line 233)

RenderableObject
   |
   --blockeditor
Variable Summary
 mixed $block
Method Summary
 blockeditor blockeditor (reference &$block)
 void delete ()
 void replicate ()
Variables
mixed $block (line 239)

The block we are providing

Methods
Constructor blockeditor (line 246)

Constructor Create a new blockeditor object.

blockeditor blockeditor (reference &$block)
  • reference $block: A reference to the block being edited
delete (line 279)

Delete this block from the database. NB: we do not rely on RI to do this since various versions of Postgres don't support this nicely.

All related entities are explicitly deleted in a transaction.

void delete ()
replicate (line 255)

Replicate this block into a new block with a new set of blocklets as a complete content copy of this original block.

NOTE: We end up with this current block as the replicated one.

void replicate ()

Inherited Methods

Inherited From RenderableObject

 RenderableObject::RenderableObject()
 RenderableObject::html()
 RenderableObject::render()
 RenderableObject::wml()
 RenderableObject::wmlup()
 RenderableObject::xml()

Documentation generated by phpDocumentor 1.3.0RC3