yii\mongodb\file\StreamWrapper::stream_write PHP 메소드

stream_write() 공개 메소드

This method is called in response to fwrite().
또한 보기: fwrite()
public stream_write ( string $data ) : integer
$data string string to be stored into the underlying stream.
리턴 integer the number of bytes that were successfully stored.
    public function stream_write($data)
    {
        if ($this->upload === null) {
            return false;
        }
        $this->upload->addContent($data);
        $result = StringHelper::byteLength($data);
        $this->pointerOffset += $result;
        return $result;
    }