1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Runtime
Граф наследования:Runtime:
Base File FileEntry IFileStream FileSystemEntry

Открытые члены

 __construct ($PID, $fileName, $arSettings)
 putSitemapContent (Base $sitemapFile)
 setOriginalFile (Base $sitemapFile)
 appendIBlockEntry ($url, $modifiedDate)
 finish ()
Открытые члены унаследованные от Base
 __construct ($fileName, $settings)
 addHeader ()
 addEntry ($entry)
 split ()
 getNameList ()
 getPathDirectory ()
 isNotEmpty ()
 isCurrentPartNotEmpty ()
 appendEntry ($entry)
 removeEntry ($url)
 addFileEntry (File $f)
 addIBlockEntry ($url, $modifiedDate)
 addFooter ()
 getSiteRoot ()
 getUrl ()
 parse ()
Открытые члены унаследованные от File
 open ($mode)
 close ()
 isExists ()
 getContents ()
 putContents ($data, $flags=self::REWRITE)
 getSize ()
 seek ($position)
 isWritable ()
 isReadable ()
 readFile ()
 markWritable ()
 delete ()
 getContentType ()
Открытые члены унаследованные от FileEntry
 getExtension ()
 putContents ($data)
 getFileSize ()
 isDirectory ()
 isFile ()
 isLink ()
Открытые члены унаследованные от FileSystemEntry
 isSystem ()
 getName ()
 getDirectoryName ()
 getPath ()
 getDirectory ()
 getCreationTime ()
 getLastAccessTime ()
 getModificationTime ()
 getPermissions ()
 getPhysicalPath ()
 rename ($newPath)

Поля данных

const PROGRESS_WIDTH = 500
Поля данных унаследованные от Base
const XML_HEADER = '<?xml version="1.0" encoding="UTF-8"?>'
const FILE_HEADER = '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
const FILE_FOOTER = '</urlset>'
const ENTRY_TPL = '<url><loc>%s</loc><lastmod>%s</lastmod></url>'
const ENTRY_TPL_SEARCH = '<url><loc>%s</loc>'
const XPATH_URL = '/urlset/url'
const MAX_SIZE = 5000000
const FILE_EXT = '.xml'
const FILE_PART_SUFFIX = '.part'
Поля данных унаследованные от File
const REWRITE = 0
const APPEND = 1

Защищенные члены

 reInit ($fileName)
 getPrefix ()
Защищенные члены унаследованные от Base
 prepareFileName ($fileName)
 isSplitNeeded ()
 getFileUrl (File $f)

Защищенные данные

 $PID = 0
Защищенные данные унаследованные от Base
 $documentRoot
 $settings = array()
 $parser = false
 $siteRoot = ''
 $partFile = ''
array $partList = []
int $part = 0
bool $partChanged = false
bool $footerClosed = false
 $urlToSearch = ''
 $urlFound = false
Защищенные данные унаследованные от File
 $filePointer
Защищенные данные унаследованные от FileSystemEntry
 $path
 $originalPath
 $pathPhysical
 $siteId
bool $exists = null

Дополнительные унаследованные члены

Открытые статические члены унаследованные от File
static isFileExists ($path)
static getFileContents ($path)
static putFileContents ($path, $data, $flags=self::REWRITE)
static deleteFile ($path)
Защищенные статические члены унаследованные от FileSystemEntry
static getDocumentRoot ($siteId)

Подробное описание

См. определение в файле Runtime.php строка 9

Конструктор(ы)

◆ __construct()

__construct ( $PID,
$fileName,
$arSettings )

См. определение в файле Runtime.php строка 16

Методы

◆ appendIBlockEntry()

appendIBlockEntry ( $url,
$modifiedDate )

Overwrite parent method to creating temp-files and correctly work with multipart Appends new IBlock entry to the existing finished sitemap

Аргументы
string$urlIBlock entry URL.
string$modifiedDateIBlock entry modify timestamp.
Возвращает
void

Переопределяет метод предка Base.

См. определение в файле Runtime.php строка 85

◆ finish()

finish ( )

Rename runtime file to original name. If runtime have part - rename them all

См. определение в файле Runtime.php строка 124

◆ getPrefix()

getPrefix ( )
protected

См. определение в файле Runtime.php строка 143

◆ putSitemapContent()

putSitemapContent ( Base $sitemapFile)

См. определение в файле Runtime.php строка 49

◆ reInit()

reInit ( $fileName)
protected

Recreate file with same settings to new part

Аргументы
string$fileName

Переопределяет метод предка Base.

См. определение в файле Runtime.php строка 44

◆ setOriginalFile()

setOriginalFile ( Base $sitemapFile)

См. определение в файле Runtime.php строка 68

Поля

◆ $PID

$PID = 0
protected

См. определение в файле Runtime.php строка 13

◆ PROGRESS_WIDTH

const PROGRESS_WIDTH = 500

См. определение в файле Runtime.php строка 11


Объявления и описания членов класса находятся в файле: