.

SocialBookmark Class Reference
[SocialBookmarking]

Holds information about a bookmark. More...

List of all members.

Public Member Functions

  __construct ($title, $url, $image)
  get_image_path ()
  get_url ($title, $url)

Public Attributes

  $image = ''
  $service = ''
  $url = ''

Detailed Description

Holds information about a bookmark.

Author:
Gerd Riesselmann

Definition at line 8 of file socialbookmark.cls.php.


Constructor & Destructor Documentation

SocialBookmark::__construct ( title,
url,
image  
)

Definition at line 13 of file socialbookmark.cls.php.

00013                                                           {
00014                 $this->service = $title;
00015                 $this->image = $image;
00016                 $this->url = $url;              
00017         }

Member Function Documentation

SocialBookmark::get_image_path (  ) 

Definition at line 26 of file socialbookmark.cls.php.

00026                                          {
00027                 return Config::get_value(Config::URL_BASEDIR) . 'images/bookmarking/' . $this->image;
00028         }
SocialBookmark::get_url ( title,
url  
)

Definition at line 19 of file socialbookmark.cls.php.

00019                                               {
00020                 $ret = $this->url;
00021                 $ret = str_replace('%URL%', rawurlencode($url), $ret);
00022                 $ret = str_replace('%TITLE%', rawurlencode($title), $ret);
00023                 return $ret;
00024         }

Member Data Documentation

SocialBookmark::$image = ''

Definition at line 10 of file socialbookmark.cls.php.

SocialBookmark::$service = ''

Definition at line 9 of file socialbookmark.cls.php.

SocialBookmark::$url = ''

Definition at line 11 of file socialbookmark.cls.php.


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