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/seo/lib/Sitemap/Type/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/seo/lib/Sitemap/Type/Step.php
<?php
namespace Bitrix\Seo\Sitemap\Type;

class Step
{
	public const STEP_INIT = 'init';
	public const STEP_FILES = 'files';
	public const STEP_IBLOCK_INDEX = 'iblock_index';
	public const STEP_IBLOCK = 'iblock';
	public const STEP_FORUM_INDEX = 'forum_index';
	public const STEP_FORUM = 'forum';
	public const STEP_INDEX = 'index';

	public const STEPS = [
		self::STEP_INIT => 0,
		self::STEP_FILES => 10,
		self::STEP_IBLOCK_INDEX => 20,
		self::STEP_IBLOCK => 40,
		self::STEP_FORUM_INDEX => 50,
		self::STEP_FORUM => 70,
		self::STEP_INDEX => 100,
	];

	/**
	 * Return first step value
	 * @return int
	 */
	public static function getFirstStep(): int
	{
		$stepValues = array_values(self::STEPS);

		return array_shift($stepValues);
	}

	/**
	 * Return first step name
	 * @return string
	 */
	public static function getFirstStepName(): string
	{
		$stepValues = array_keys(self::STEPS);

		return array_shift($stepValues);
	}

	/**
	 * Return last step value
	 * @return int
	 */
	public static function getLastStep(): int
	{
		$stepValues = array_values(self::STEPS);

		return array_pop($stepValues);
	}

	/**
	 * Return last step name
	 * @return string
	 */
	public static function getLastStepName(): string
	{
		$stepValues = array_keys(self::STEPS);

		return array_pop($stepValues);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit