Phundament-Packages
[ class tree: Phundament-Packages ] [ index: Phundament-Packages ] [ all elements ]

Source for file LServiceHyperLink.php

Documentation is available at LServiceHyperLink.php

  1. <?php
  2. /**
  3.  * Menu class file.
  4.  *
  5.  * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  6.  * @copyright 2005, diemeisterei GmbH. All rights reserved.
  7.  * @author $Author: schmunk $
  8.  * @version $Revision: 128 $  $Date: 2006-04-25 15:50:26 +0000 (Di, 25 Apr 2006) $
  9.  * @package Phundament.Packages
  10.  * @subpackage LVirtualNodes
  11.  */
  12.  
  13. /**
  14.  * class
  15.  *
  16.  * @package System.Web.UI.WebControls
  17.  * @subpackage Links
  18.  */
  19. class LServiceHyperLink extends THyperLink{
  20.  
  21.     public function setServicePage($value)
  22.     {
  23.         $this->setViewState('ServicePage'$value'');
  24.     }
  25.     public function getServicePage()
  26.     {
  27.         return $this->getViewState('ServicePage');
  28.     }
  29.  
  30.     /**
  31.      * Adds attributes
  32.      * @param THtmlWriter the writer used for the rendering purpose
  33.      */
  34.     protected function addAttributesToRender($writer)
  35.     {
  36.         parent::addAttributesToRender($writer);
  37.         $isEnabled=$this->getEnabled(true);
  38.         $page $this->getServicePage();
  39.         $url $this->Service->constructUrl($page);
  40.         if($url !=='' && $isEnabled)
  41.             $writer->addAttribute('href',$url);
  42.     }
  43. }
  44.  
  45. ?>

Documentation generated on Sun, 25 Feb 2007 16:11:35 +0100 by phpDocumentor 1.3.1