PHP 클래스 Calotype\SEO\Generators\RobotsGenerator

파일 보기 프로젝트 열기: calotype/seo

보호된 프로퍼티들

프로퍼티 타입 설명
$lines array The lines of for the robots.txt

공개 메소드들

메소드 설명
addAllow ( string | array $directories ) Add a allow rule to the robots.txt.
addComment ( string $comment ) Add a comment to the robots.txt.
addDisallow ( string | array $directories ) Add a disallow rule to the robots.txt.
addHost ( string $host ) Add a Host to the robots.txt.
addLine ( string $line ) Add a line to the robots.txt.
addLines ( string | array $lines ) Add multiple lines to the robots.txt.
addSitemap ( string $sitemap ) Add a Sitemap to the robots.txt.
addSpacer ( ) Add a spacer to the robots.txt.
addUserAgent ( string $userAgent ) Add a User-agent to the robots.txt.
generate ( ) : string Generate the robots.txt data.
reset ( ) : void Reset the lines.

보호된 메소드들

메소드 설명
addRuleLine ( string | array $directories, string $rule ) Add a rule to the robots.txt.

메소드 상세

addAllow() 공개 메소드

Add a allow rule to the robots.txt.
public addAllow ( string | array $directories )
$directories string | array

addComment() 공개 메소드

Add a comment to the robots.txt.
public addComment ( string $comment )
$comment string

addDisallow() 공개 메소드

Add a disallow rule to the robots.txt.
public addDisallow ( string | array $directories )
$directories string | array

addHost() 공개 메소드

Add a Host to the robots.txt.
public addHost ( string $host )
$host string

addLine() 공개 메소드

Add a line to the robots.txt.
public addLine ( string $line )
$line string

addLines() 공개 메소드

Add multiple lines to the robots.txt.
public addLines ( string | array $lines )
$lines string | array

addRuleLine() 보호된 메소드

Add a rule to the robots.txt.
protected addRuleLine ( string | array $directories, string $rule )
$directories string | array
$rule string

addSitemap() 공개 메소드

Add a Sitemap to the robots.txt.
public addSitemap ( string $sitemap )
$sitemap string

addSpacer() 공개 메소드

Add a spacer to the robots.txt.
public addSpacer ( )

addUserAgent() 공개 메소드

Add a User-agent to the robots.txt.
public addUserAgent ( string $userAgent )
$userAgent string

generate() 공개 메소드

Generate the robots.txt data.
public generate ( ) : string
리턴 string

reset() 공개 메소드

Reset the lines.
public reset ( ) : void
리턴 void

프로퍼티 상세

$lines 보호되어 있는 프로퍼티

The lines of for the robots.txt
protected array $lines
리턴 array