PHP 클래스 App\Source\Composite\MenuLink

파일 보기 프로젝트 열기: andrey900/slimcms

공개 프로퍼티들

프로퍼티 타입 설명
$attributes array Hyperlink's attributes
$text string Hyperlink's text
$url string Hyperlink's URL

공개 메소드들

메소드 설명
__construct ( $text, string $url, array $attributes = [] ) : void Creates a hyperlink
append ( $content ) : Link Append content at the end of hyperlink's text
attributes ( $arAttr = null, $value = null ) : Link Add attributes to the hyperlink
get_text ( ) : string Return hyperlink's title
get_url ( ) : string Return hyperlink's URL
prepend ( $content ) : Link Add content at the beginning of hyperlink's text

메소드 상세

__construct() 공개 메소드

Creates a hyperlink
public __construct ( $text, string $url, array $attributes = [] ) : void
$url string
$attributes array
리턴 void

append() 공개 메소드

Append content at the end of hyperlink's text
public append ( $content ) : Link
리턴 Link

attributes() 공개 메소드

Add attributes to the hyperlink
public attributes ( $arAttr = null, $value = null ) : Link
리턴 Link

get_text() 공개 메소드

Return hyperlink's title
public get_text ( ) : string
리턴 string $title

get_url() 공개 메소드

Return hyperlink's URL
public get_url ( ) : string
리턴 string $url

prepend() 공개 메소드

Add content at the beginning of hyperlink's text
public prepend ( $content ) : Link
리턴 Link

프로퍼티 상세

$attributes 공개적으로 프로퍼티

Hyperlink's attributes
public array $attributes
리턴 array

$text 공개적으로 프로퍼티

Hyperlink's text
public string $text
리턴 string

$url 공개적으로 프로퍼티

Hyperlink's URL
public string $url
리턴 string