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

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

 __construct ($siteId)
 addRule ($rule, $section=' *', $bCheckUnique=true)
 getRuleText ($rule)
 parseRule ($strRule)
 getRules ($rule, $section=' *')
Открытые члены унаследованные от File
 __construct ($path, $siteId=null)
 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 ROBOTS_FILE_NAME = 'robots.txt'
const SECTION_RULE = 'User-Agent'
const SITEMAP_RULE = 'Sitemap'
const EMPTY_DISALLOW_RULE = 'Disallow: # empty Disallow instruction SHOULD be there'
Поля данных унаследованные от File
const REWRITE = 0
const APPEND = 1

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

 getSection ($section)
 addSectionRule ($section, $rule)
 load ()
 save ()

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

 $siteId = ''
 $documentRoot
 $robotsFile = null
 $contents = array()
 $bLoaded = 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)

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

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

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

◆ __construct()

__construct ( $siteId)

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

Методы

◆ addRule()

addRule ( $rule,
$section = '*',
$bCheckUnique = true )

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

◆ addSectionRule()

addSectionRule ( $section,
$rule )
protected

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

◆ getRules()

getRules ( $rule,
$section = '*' )

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

◆ getRuleText()

getRuleText ( $rule)

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

◆ getSection()

getSection ( $section)
protected

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

◆ load()

load ( )
protected

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

◆ parseRule()

parseRule ( $strRule)

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

◆ save()

save ( )
protected

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

Поля

◆ $bLoaded

$bLoaded = false
protected

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

◆ $contents

$contents = array()
protected

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

◆ $documentRoot

$documentRoot
protected

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

◆ $robotsFile

$robotsFile = null
protected

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

◆ $siteId

$siteId = ''
protected

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

◆ EMPTY_DISALLOW_RULE

const EMPTY_DISALLOW_RULE = 'Disallow: # empty Disallow instruction SHOULD be there'

Standard robots.txt rules tell us that at least one Disallow instruction should be put in robots.txt for its correct interpretation. But Yandex interprets empty Disallow rule as total allowance and skips all further Disallow rules.

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

◆ ROBOTS_FILE_NAME

const ROBOTS_FILE_NAME = 'robots.txt'

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

◆ SECTION_RULE

const SECTION_RULE = 'User-Agent'

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

◆ SITEMAP_RULE

const SITEMAP_RULE = 'Sitemap'

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


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