c2ephp

COBUnknownBlock Class Reference

Simple class to allow for extra block types. More...

Inheritance diagram for COBUnknownBlock:
Collaboration diagram for COBUnknownBlock:

List of all members.

Public Member Functions

 COBUnknownBlock ($type, $contents)
 Creates a new COBUnknown block with the given type and contents.
 GetContents ()
 Gets the block's contents.
 GetType ()
 Gets the type of this COB block.
 Compile ()
 Compiles this COB Block and returns COB file as a binary string.

Related Functions

(Note that these are not member functions.)
Cob Block Types
enum  COB_BLOCK_AGENT
 

Agent Block - 'agnt'.

More...
enum  COB_BLOCK_FILE
 

File Block - 'file'.

More...
enum  COB_BLOCK_AUTHOR
 

Author Block - 'auth'.

More...

Detailed Description

Simple class to allow for extra block types.

Definition at line 5 of file UnknownBlock.php.


Member Function Documentation

COBUnknownBlock::COBUnknownBlock ( type,
contents 
)

Creates a new COBUnknown block with the given type and contents.

Parameters:
$typeThe four-character type of the block
$contentsThe contents of the block

Definition at line 18 of file UnknownBlock.php.

COBBlock::Compile ( ) [abstract, inherited]

Compiles this COB Block and returns COB file as a binary string.

Returns:
string
COBUnknownBlock::GetContents ( )

Gets the block's contents.

Definition at line 23 of file UnknownBlock.php.

COBBlock::GetType ( ) [inherited]

Gets the type of this COB block.

Returns:
string One of the COB_BLOCK_* defines.

Definition at line 37 of file COBBlock.php.


Friends And Related Function Documentation

enum COB_BLOCK_AGENT [related, inherited]

Agent Block - 'agnt'.

Definition at line 8 of file COBBlock.php.

enum COB_BLOCK_AUTHOR [related, inherited]

Author Block - 'auth'.

Definition at line 12 of file COBBlock.php.

enum COB_BLOCK_FILE [related, inherited]

File Block - 'file'.

Definition at line 10 of file COBBlock.php.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations