Link button for Sitemagic CMS

Sitemagic CMS features its own link button as an alternative to the ordinary square HTML button. The functionality is provided by the SMLinkButton class. In the following example code we will be producing a button similar to this:
/GUI/LinkButton.png
// Create link button
$button = new SMLinkButton("UniqueId");
$button->SetTitle("Save");
$button->SetIcon(SMImageProvider::GetImage(SMImageType::$Save));

// Render link button (generate link button HTML code)
$html = $button->Render();

// Append text to output if button was clicked
if ($button->PerformedPostBack() === true)
    $html .= " (button clicked)";