|
c2ephp
|
Defines the bock to represent a file block in a COB file. More...
Inheritance diagram for COBFileBlock:
Collaboration diagram for COBFileBlock:Public Member Functions | |
| COBFileBlock ($type, $name, $contents) | |
| Constructs a new COBFileBlock. | |
| AddReserved ($reserved) | |
| Add the reserved data associated with this file block. | |
| GetName () | |
| Get the name of the file. | |
| GetFileType () | |
| Get the file's type. | |
| GetContents () | |
| Get the contents of the file. | |
| GetReserved () | |
| Get the reserved data. | |
| 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... | |
Defines the bock to represent a file block in a COB file.
Definition at line 5 of file FileBlock.php.
| COBFileBlock::AddReserved | ( | $ | reserved | ) |
Add the reserved data associated with this file block.
| $reserved | The reserved data |
Definition at line 34 of file FileBlock.php.
| COBFileBlock::COBFileBlock | ( | $ | type, |
| $ | name, | ||
| $ | contents | ||
| ) |
Constructs a new COBFileBlock.
| $type | The file type |
| $name | The file name (including extension) |
| $contents | The contents of the file |
Definition at line 23 of file FileBlock.php.
| COBBlock::Compile | ( | ) | [abstract, inherited] |
| COBFileBlock::GetContents | ( | ) |
Get the contents of the file.
Definition at line 53 of file FileBlock.php.
| COBFileBlock::GetFileType | ( | ) |
Get the file's type.
Definition at line 48 of file FileBlock.php.
| COBFileBlock::GetName | ( | ) |
Get the name of the file.
Definition at line 39 of file FileBlock.php.
| COBFileBlock::GetReserved | ( | ) |
Get the reserved data.
Reserved data was never officially used.
Definition at line 62 of file FileBlock.php.
| COBBlock::GetType | ( | ) | [inherited] |
Gets the type of this COB block.
Definition at line 37 of file COBBlock.php.
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.