X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ffile_directories%2Fclass_BaseFile.php;h=303371c6791e25579d226e7a0f32693f8f577a1f;hp=3d1711e72fecef8057a2eabbb06dbf17ab50b106;hb=87ecc6be399bf88d83093105c667d3abfd6593de;hpb=5b37e2e07ea31d59f7ad0a968c2bf64bd0fd8a5f;ds=sidebyside diff --git a/inc/classes/main/file_directories/class_BaseFile.php b/inc/classes/main/file_directories/class_BaseFile.php index 3d1711e7..303371c6 100644 --- a/inc/classes/main/file_directories/class_BaseFile.php +++ b/inc/classes/main/file_directories/class_BaseFile.php @@ -141,6 +141,16 @@ y * @return void $this->currentBlock = $currentBlock; } + /** + * Gets currently read data + * + * @return $current Currently read data + */ + public function getCurrentBlock () { + // Return it + return $this->currentBlock; + } + /** * Initializes this file class * @@ -289,7 +299,7 @@ y * @return void $this->next(); // Get current entry - $current = $this->current(); + $current = $this->getCurrentBlock(); // Simply output it self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] current=%s', __METHOD__, __LINE__, print_r($current, TRUE))); @@ -397,6 +407,16 @@ y * @return void // Return result return $isValid; } + + /** + * Gets current seek position ("key"). + * + * @return $key Current key in iteration + */ + public function key () { + // Call pointer instance + return $this->getPointerInstance()->determineSeekPosition(); + } } // [EOF]