Returns setup step index

@param string $sStepId setup step identifier

@return int
505428
public function getStep($sStepId)
    {
        $steps = $this->getSteps();
        return isset($steps[$sStepId]) ? $steps[$sStepId] : null;
    }
922721
public function initStep($step)
    {
        $step_method = 'step_'.$step;
        /** @type H1 $h */
        $h = $this->add('H1');
        if (!$this->hasMethod($step_method)) {
            return $h->set('No such step');
        }
        $h->set('Step '.$this->s_cnt.': '.$this->s_title);
        $page = $this->makePage($step);

        return $this->$step_method($page);
    }
883483
final public function getIndex(string $alias): ?GlobalSecondaryIndex
    {
        $this->loadIndexes();
        return $this->gsi[$alias] ?? null;
    }
329639
public function getCounter($listUuid)
    {
        if ($this->existsListInIndex($listUuid)) {
            $index = $this->getIndex($listUuid);

            return $index['size'];
        }

        return 0;
    }
671585
protected function GetStepAsAjax($sStepName = null)
    {
        $sHTML = '';
        if (is_null($sStepName)) {
            $sStepName = $this->global->GetUserData('sStepName');
        }
        $oStep = TdbShopOrderStep::GetStep($sStepName);
        if ($oStep) {
            $sModuleSpotName = $this->sModuleSpotName;
            $sHTML = $oStep->Render($sModuleSpotName);
        }

        return $sHTML;
    }
275436
private function index(string $char): int {
        if (isset($this->index[$char])) {
            return $this->index[$char];
        }

        $this->index_count++;
        $this->index[$char] = $this->index_count;
        return $this->index_count;
    }
464833
public function GetLinkForRegistrationGuest()
    {
        $oURLData = &TCMSSmartURLData::GetActive();
        $oShop = &TdbShop::GetInstance($oURLData->iPortalId);
        $sRegisterPath = $oShop->GetLinkToSystemPage(self::NAME_SYSTEM_PAGE);

        return $sRegisterPath;
    }
235319
public static function totalRegistered($since = 0, $until = null)
    {
        $until = $until ?: time();

        return (int) self::where('joined', '>=', $since)
            ->where('joined', '<=', $until)
            ->count();
    }
687088
public function actionIndex(): int
    {
        $dataTypes = $this->getDataTypes();
        $definitions = [];
        $overrideData = Data::parseYamlFile($this->overrideFile);

        $this->disableLogging();

        try {
            // Import from single file.
            if ($this->getStorageType() === self::SINGLE_FILE) {
                $definitions = $this->importDefinitionsFromFile($overrideData);
                $this->importFromDefinitions($dataTypes, $definitions);

                Schematic::info('Loaded schema from '.$this->file);
            }

            // Import from multiple files.
            if ($this->getStorageType() === self::MULTIPLE_FILES) {
                $definitions = $this->importDefinitionsFromDirectory($overrideData);
                $this->importFromDefinitions($dataTypes, $definitions);

                Schematic::info('Loaded schema from '.$this->path);
            }

            return 0;
        } catch (\Exception $e) {
            Schematic::error($e->getMessage());
            return 1;
        }
    }
1011753
public function getStep($uuid)
    {
        foreach ($this->steps as $step) {
            if ($step->getUuid() === $uuid) {
                return $step;
            }
        }

        return null;
    }
832244
public function actionIndex(): int
    {
        $this->disableLogging();

        $configurations = [];
        foreach ($this->getDataTypes() as $dataTypeHandle) {
            $dataType = $this->module->getDataType($dataTypeHandle);
            if (null == $dataType) {
                continue;
            }

            $mapper = $dataType->getMapperHandle();
            if (!$this->module->checkMapper($mapper)) {
                continue;
            }

            $records = $dataType->getRecords();
            $configurations[$dataTypeHandle] = $this->module->$mapper->export($records);
        }

        // Load override file.
        $overrideData = [];
        if (file_exists($this->overrideFile)) {
            // Parse data in the overrideFile if available.
            $overrideData = Data::parseYamlFile($this->overrideFile);
        }

        // Export the configuration to a single file.
        if ($this->getStorageType() === self::SINGLE_FILE) {
            $this->exportToSingle($configurations, $overrideData);
        }

        // Export the configuration to multiple yaml files.
        if ($this->getStorageType() === self::MULTIPLE_FILES) {
            $this->exportToMultiple($configurations, $overrideData);
        }

        return 0;
    }
122279
public function getCurrentStep()
    {
        if ($this->_iCurrStep === null) {
            if (($this->_iCurrStep = $this->getInstance("Utilities")->getRequestVar("istep")) === null) {
                $this->_iCurrStep = $this->getStep('STEP_SYSTEMREQ');
            }
            $this->_iCurrStep = (int) $this->_iCurrStep;
        }

        return $this->_iCurrStep;
    }
619440
protected function GetActiveOrderStep()
    {
        $oActiveOrderStep = null;
        $oGlobal = TGlobal::instance();
        $sActiveStepSysName = $oGlobal->GetUserData('stpsysname');
        $oActiveOrderStep = TdbShopOrderStep::GetStep($sActiveStepSysName);

        return $oActiveOrderStep;
    }
1355043
public function getTotalIndividuals() {
	    if(!$this->is_setup) return 0;
	    return Database::prepare(
	        'SELECT COUNT(*) FROM `##individuals`' .
	        ' WHERE i_file = :tree_id')
	        ->execute(array('tree_id' => $this->tree->getTreeId()))
	        ->fetchOne() ?: 0;
	}
74010
public function setStepId($stepId)
    {
        if (!is_numeric($stepId)) {
            $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $stepId);
            throw new ArgumentNotNumericException($errMsg);
        }
        $this->stepId = (integer)$stepId;

        return $this;
    }
465661
static function installationID()
    {
        if ( !empty( self::$InstallationID ) )
        {
            return self::$InstallationID;
        }
        $db = eZDB::instance();

        $resultSet = $db->arrayQuery( 'SELECT value FROM ezsite_data WHERE name=\'ezfind_site_id\'' );

        if ( count( $resultSet ) >= 1 )
        {
            self::$InstallationID = $resultSet[0]['value'];
        }
        else
        {
            self::$InstallationID = md5( time() . '-' . mt_rand() );
            $db->query( 'INSERT INTO ezsite_data ( name, value ) values( \'ezfind_site_id\', \'' . self::$InstallationID . '\' )' );
        }

        return self::$InstallationID;
    }
806577
public function nextStep($step = null)
    {
        $steps = $this->getStepsArray();
        $key = array_search($step, $steps);

        if (is_int($key) && $key < count($steps)-1) {
            return $steps[$key+1];
        }

        return false;
    }