URI.php 529 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class URI {
  3. private $_text,$_link,$_image;
  4. public function __construct($text, $link, $image="") {
  5. $this->_text=$text;
  6. $this->_link=strtolower($link);
  7. $this->_image=$image;
  8. }
  9. public function GetText(){
  10. return $this->_text;
  11. }
  12. public function GetLinkLocation(){
  13. return $this->_link;
  14. }
  15. public function GetAbsoluteLocation(){
  16. throw new BadFunctionCallException("GetAbsoluteLocation is yet to be implemented");
  17. }
  18. public function GetImage() {
  19. return $this->_image;
  20. }
  21. }