class BlockType (View source)

Methods

static BlockType
getByHandle($btHandle)

Retrieves a BlockType object based on its btHandle.

static BlockType
getByID($btID)

Retrieves a BlockType object based on its btID.

static 
installBlockTypeFromPackage($btHandle, $pkg) deprecated

No description

static 
installBlockType($btHandle, $pkg = false)

Installs a BlockType that is passed via a btHandle string. The core or override directories are parsed.

static string
getBlockTypeMappedClass($btHandle, $pkgHandle = false)

Return the class file that this BlockType uses.

static 
clearCache()

Clears output and record caches.

Details

static BlockType getByHandle($btHandle)

Retrieves a BlockType object based on its btHandle.

Parameters

$btHandle

Return Value

BlockType

static BlockType getByID($btID)

Retrieves a BlockType object based on its btID.

Parameters

$btID

Return Value

BlockType

static installBlockTypeFromPackage($btHandle, $pkg) deprecated

deprecated

No description

Parameters

$btHandle
$pkg

static installBlockType($btHandle, $pkg = false)

Installs a BlockType that is passed via a btHandle string. The core or override directories are parsed.

Parameters

$btHandle
$pkg

static string getBlockTypeMappedClass($btHandle, $pkgHandle = false)

Return the class file that this BlockType uses.

Parameters

$btHandle
$pkgHandle

Return Value

string

static clearCache()

Clears output and record caches.