@@ -32,7 +32,7 @@ |
||
32 | 32 | * If $prayfile is not null, all the data for this block |
33 | 33 | * will be read from the PRAYFile. |
34 | 34 | * @param PRAYFile $prayfile The PRAYFile that this DFAM block belongs to. |
35 | - * @param $name The block's name. |
|
35 | + * @param string $name The block's name. |
|
36 | 36 | * @param $content The binary data of this block. May be null. |
37 | 37 | * @param $flags The block's flags |
38 | 38 | */ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * will be read from the PRAYFile. |
20 | 20 | * @param PRAYFile $prayfile The PRAYFile this FILEBlock belongs to. Can |
21 | 21 | * be null. |
22 | - * @param $name The name of this file block (also the file's |
|
22 | + * @param string $name The name of this file block (also the file's |
|
23 | 23 | * name) |
24 | 24 | * @param $content The binary data of this file block. |
25 | 25 | * @param $flags The block's flags. See PrayBlock. |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * If $prayfile is not null, all the data for this block |
16 | 16 | * will be read from the PRAYFile. |
17 | 17 | * @param PRAYFile $prayfile The PRAYFile object this block belongs to. Can be null. |
18 | - * @param $name The block's name. This is a creature's moniker with .genetics appended. |
|
18 | + * @param string $name The block's name. This is a creature's moniker with .genetics appended. |
|
19 | 19 | * @param $content The block's binary data. Used when constructing from a PrayFile |
20 | 20 | * @param $flags The block's flags, which apply to the binary data as-is. |
21 | 21 | */ |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * will be read from the PRAYFile. |
34 | 34 | * @param PRAYFile $object The PRAYFile this FILEBlock belongs to, or the |
35 | 35 | * CreatureHistory object to store. <b>Cannot</b> be null. |
36 | - * @param $name The name of this block. I think it's usually the |
|
36 | + * @param string $name The name of this block. I think it's usually the |
|
37 | 37 | * creature's moniker with .GLST appended. |
38 | 38 | * @param $content The binary data of this file block. |
39 | 39 | * @param $flags The block's flags. See PrayBlock. |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * If $prayfile is not null, all the data for this block |
16 | 16 | * will be read from the PRAYFile. |
17 | 17 | * @param PRAYFile $prayfile The PRAYFile this LIVEBlock belongs to. |
18 | - * @param $name The name of this block |
|
18 | + * @param string $name The name of this block |
|
19 | 19 | * @param $content The binary data of this file block. |
20 | 20 | * @param $flags The block's flags. See PrayBlock. |
21 | 21 | */ |
@@ -20,8 +20,8 @@ |
||
20 | 20 | * @param $flags The block's flags. See PrayBlock. |
21 | 21 | */ |
22 | 22 | |
23 | - public function LIVEBlock($prayfile,$name,$content,$flags) { |
|
24 | - parent::TagBlock($prayfile,$name,$content,$flags,PRAY_BLOCK_LIVE); |
|
23 | + public function LIVEBlock($prayfile, $name, $content, $flags) { |
|
24 | + parent::TagBlock($prayfile, $name, $content, $flags, PRAY_BLOCK_LIVE); |
|
25 | 25 | |
26 | 26 | } |
27 | 27 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * If $prayfile is not null, all the data for this block |
18 | 18 | * will be read from the PRAYFile. |
19 | 19 | * @param PRAYFile $prayfile The PRAYFile that this DSAG block belongs to. |
20 | - * @param $name The block's name. |
|
20 | + * @param string $name The block's name. |
|
21 | 21 | * @param $content The binary data of this block. May be null. |
22 | 22 | * @param $flags The block's flags |
23 | 23 | */ |
@@ -287,10 +287,10 @@ |
||
287 | 287 | |
288 | 288 | /// @brief Creates PrayBlock objects of the correct type. |
289 | 289 | /** For developer use. Called by |
290 | - * @param $blocktype The type of PRAYBlock, as one of the Block Types defines. |
|
290 | + * @param string|false $blocktype The type of PRAYBlock, as one of the Block Types defines. |
|
291 | 291 | * @param $prayfile The PRAYFile object that the PRAYBlock is a child of. This is used to allow blocks to access to each other. |
292 | 292 | * @param string $name The name of the PRAYBlock |
293 | - * @param $content The binary content of the PRAYBlock, uncompressed if necessary. |
|
293 | + * @param string|false $content The binary content of the PRAYBlock, uncompressed if necessary. |
|
294 | 294 | * @param $flags The flags given to this PRAYBlock as an integer. |
295 | 295 | * return An object that is an instance of a subclass of PrayBlock. |
296 | 296 | */ |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * If $prayfile is not null, all the data for this block |
16 | 16 | * will be read from the PRAYFile. |
17 | 17 | * @param PRAYFile $prayfile The PRAYFile that this DFAM block belongs to. |
18 | - * @param $name The block's name. |
|
18 | + * @param string $name The block's name. |
|
19 | 19 | * @param $content The binary data of this block. May be null. |
20 | 20 | * @param $flags The block's flags |
21 | 21 | */ |
@@ -10,18 +10,18 @@ |
||
10 | 10 | */ |
11 | 11 | class SFAMBlock extends EXPCBlock { |
12 | 12 | |
13 | - /// @brief Instantiates a new SFAMBlock |
|
13 | + /// @brief Instantiates a new SFAMBlock |
|
14 | 14 | /** |
15 | 15 | * If $prayfile is not null, all the data for this block |
16 | 16 | * will be read from the PRAYFile. |
17 | - * @param PRAYFile $prayfile The PRAYFile that this DFAM block belongs to. |
|
18 | - * @param $name The block's name. |
|
19 | - * @param $content The binary data of this block. May be null. |
|
20 | - * @param $flags The block's flags |
|
21 | - */ |
|
22 | - public function SFAMBlock($prayfile, $name, $content, $flags) { |
|
23 | - parent::TagBlock($prayfile, $name, $content, $flags, PRAY_BLOCK_SFAM); |
|
17 | + * @param PRAYFile $prayfile The PRAYFile that this DFAM block belongs to. |
|
18 | + * @param $name The block's name. |
|
19 | + * @param $content The binary data of this block. May be null. |
|
20 | + * @param $flags The block's flags |
|
21 | + */ |
|
22 | + public function SFAMBlock($prayfile, $name, $content, $flags) { |
|
23 | + parent::TagBlock($prayfile, $name, $content, $flags, PRAY_BLOCK_SFAM); |
|
24 | 24 | |
25 | - } |
|
25 | + } |
|
26 | 26 | } |
27 | 27 | ?> |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | /// @brief Creates a new TagBlock |
23 | 23 | /** This should be called by all subclasses from their constructors. |
24 | - * @param $prayfile The prayfile this block is contained in, or for TagBlocks being created from scratch, the initial tags array. Can be null. |
|
24 | + * @param PRAYFile $prayfile The prayfile this block is contained in, or for TagBlocks being created from scratch, the initial tags array. Can be null. |
|
25 | 25 | * @param $name The name of the block. Cannot be null. |
26 | 26 | * @param $content The binary data this block contains. Can be null. |
27 | 27 | * @param $flags The flags relating to this block. Should be zero or real flags. |