lib/components/dataInterface/connectors/file/SourceFile.php
public function getLines($lazy = true, $raw = false)
    {
        if (is_null($this->_lines)) {
            $file = $this->filePointer;
            if (!$file) {
                return false;
            }
            rewind($file);
            $this->_lines = [];
            $currentLineNumber = 0;
            while (($buffer = fgetcsv($this->filePointer, 0, $this->delimeter)) !== false) {
                $currentLineNumber++;
                if ($currentLineNumber <= $this->skipLines) {
                    continue;
                }
                $line = Yii::createObject(['class' => SourceFileLine::className(), 'sourceFile' => $this, 'lineNumber' => $currentLineNumber-1, 'content' => $buffer]);
                if ($this->testIgnore($line)) {
                    continue;
                }
                $lineId = $line->id;
                if (!isset($lineId)) {
                    continue;
                }
                $this->_lines[$lineId] = $line;
                if ($lazy) {
                    $line->clean();
                }
            }
        }

        return $this->_lines;
    }
public function getLines($lazy = true, $raw = false)
    {
        if (is_null($this->_lines)) {
            $file = $this->filePointer;
            if (!$file) {
                return false;
            }
            rewind($file);
            $this->_lines = [];
            $currentLineNumber = 0;
            while (($buffer = fgetcsv($this->filePointer, 0, $this->delimeter)) !== false) {
                $currentLineNumber++;
                if ($currentLineNumber <= $this->skipLines) {
                    continue;
                }
                $line = Yii::createObject(['class' => SourceFileLine::className(), 'sourceFile' => $this, 'lineNumber' => $currentLineNumber-1, 'content' => $buffer]);
                if ($this->testIgnore($line)) {
                    continue;
                }
                $lineId = $line->id;
                if (!isset($lineId)) {
                    continue;
                }
                $this->_lines[$lineId] = $line;
                if ($lazy) {
                    $line->clean();
                }
            }
        }

        return $this->_lines;
    }
public function getLines ( $ lazy = true , $ raw = false ) { if ( is_null ( $ this -> _lines ) ) { $ file = $ this -> filePointer ; if ( ! $ file ) { return false ; } rewind ( $ file ) ; $ this -> _lines = [ ] ; $ currentLineNumber = 0 ; while ( ( $ buffer = fgetcsv ( $ this -> filePointer , 0 , $ this -> delimeter ) ) !== false ) { $ currentLineNumber ++ ; if ( $ currentLineNumber <= $ this -> skipLines ) { continue ; } $ line = Yii :: createObject ( [ 'class' => SourceFileLine :: className ( ) , 'sourceFile' => $ this , 'lineNumber' => $ currentLineNumber - 1 , 'content' => $ buffer ] ) ; if ( $ this -> testIgnore ( $ line ) ) { continue ; } $ lineId = $ line -> id ; if ( ! isset ( $ lineId ) ) { continue ; } $ this -> _lines [ $ lineId ] = $ line ; if ( $ lazy ) { $ line -> clean ( ) ; } } } return $ this -> _lines ; }
Get lines.

@param boolean $lazy [[@doctodo param_description:lazy]] [optional]
@param boolean $raw  [[@doctodo param_description:raw]] [optional]

@return [[@doctodo return_type:getLines]] [[@doctodo return_description:getLines]]
Get lines .