CMSimple_XH 開発者ドキュメント
Link.php
1 <?php
2 
16 namespace XH;
17 
27 class Link
28 {
32  const STATUS_UNKNOWN = 0;
33 
37  const STATUS_MAILTO = -1;
38 
42  const STATUS_INTERNALFAIL = -2;
43 
47  const STATUS_EXTERNALFAIL = -3;
48 
52  const STATUS_CONTENT_NOT_FOUND = -4;
53 
57  const STATUS_FILE_NOT_FOUND = -5;
58 
62  const STATUS_ANCHOR_MISSING = -6;
63 
69  private $url;
70 
76  private $text;
77 
85  private $status;
86 
93  public function __construct($url, $text)
94  {
95  $this->url = $url;
96  $this->text = $text;
97  }
98 
104  public function getURL()
105  {
106  return $this->url;
107  }
108 
114  public function getText()
115  {
116  return $this->text;
117  }
118 
124  public function getStatus()
125  {
126  return $this->status;
127  }
128 
136  public function setStatus($status)
137  {
138  $this->status = $status;
139  }
140 }
$text
Definition: cms.php:698