\CGContentUtils

The CGContentUtils module API

Summary

Methods
Properties
Constants
create_empty_contentblock()
addContentBlock()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

create_empty_contentblock()

create_empty_contentblock() : \CGContentUtils\ContentBlock

Create an empty content block object.

Returns

\CGContentUtils\ContentBlock

addContentBlock()

addContentBlock(\CGContentUtils\ContentBlock  $block) 

Store a new content block.

This method allows only creating a content block, it does not allow updating an existing content block. If valid options are passed in, this method will create and save the content block option, and return void. It will throw an exception if the block already exists or if the block object is somehow invalid.

Parameters

\CGContentUtils\ContentBlock $block

The content block to add.