| 1 | <?php |
||
| 9 | class Link |
||
|
|
|||
| 10 | { |
||
| 11 | const OPDS_THUMBNAIL_TYPE = "http://opds-spec.org/image/thumbnail"; |
||
| 12 | const OPDS_IMAGE_TYPE = "http://opds-spec.org/image"; |
||
| 13 | const OPDS_ACQUISITION_TYPE = "http://opds-spec.org/acquisition"; |
||
| 14 | const OPDS_NAVIGATION_TYPE = "application/atom+xml;profile=opds-catalog;kind=navigation"; |
||
| 15 | const OPDS_PAGING_TYPE = "application/atom+xml;profile=opds-catalog;kind=acquisition"; |
||
| 16 | |||
| 17 | public $href; |
||
| 18 | public $type; |
||
| 19 | public $rel; |
||
| 20 | public $title; |
||
| 21 | public $facetGroup; |
||
| 22 | public $activeFacet; |
||
| 23 | |||
| 24 | 117 | public function __construct($phref, $ptype, $prel = NULL, $ptitle = NULL, $pfacetGroup = NULL, $pactiveFacet = FALSE) { |
|
| 32 | |||
| 33 | 11 | public function hrefXhtml () { |
|
| 36 | |||
| 37 | 116 | public function getScriptName() { |
|
| 41 | } |
||
| 42 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.