CMSimple_XH
Public Member Functions | Public Attributes | List of all members
XH\Link Class Reference

The links for the link checker. More...

Public Member Functions

 __construct ($url, $text)
 Initializes a new instance. More...
 
 getURL ()
 Returns the URL. More...
 
 getText ()
 Returns the link text. More...
 
 getStatus ()
 Returns the link status. More...
 
 setStatus ($status)
 Sets the link status. More...
 

Public Attributes

const STATUS_UNKNOWN
 Unknown URI scheme.
 
const STATUS_MAILTO
 A mailto: link.
 
const STATUS_INTERNALFAIL
 General internal checking failure.
 
const STATUS_EXTERNALFAIL
 General external checking failure.
 
const STATUS_CONTENT_NOT_FOUND
 Content for checking internal link couldn't be found.
 
const STATUS_FILE_NOT_FOUND
 Linked file couldn't be found.
 
const STATUS_ANCHOR_MISSING
 Linked anchor (URI fragment) is missing.
 
const STATUS_TEL
 A tel: link.
 
const STATUS_NOT_CHECKED
 Link has not been checked according to configuration.
 

Detailed Description

The links for the link checker.

Author
Peter Harteg peter.nosp@m.@har.nosp@m.teg.d.nosp@m.k
The CMSimple_XH developers devs@.nosp@m.cmsi.nosp@m.mple-.nosp@m.xh.o.nosp@m.rg

Constructor & Destructor Documentation

◆ __construct()

XH\Link::__construct (   $url,
  $text 
)

Initializes a new instance.

Parameters
string$urlA URL.
string$textA link text.

Member Function Documentation

◆ getStatus()

XH\Link::getStatus ( )

Returns the link status.

Returns
int

◆ getText()

XH\Link::getText ( )

Returns the link text.

Returns
string HTML

◆ getURL()

XH\Link::getURL ( )

Returns the URL.

Returns
string

◆ setStatus()

XH\Link::setStatus (   $status)

Sets the link status.

Parameters
int$statusA link status.
Returns
void

The documentation for this class was generated from the following file: