oxselection.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class oxSelection
00008 {
00013     protected $_sName = null;
00014 
00019     protected $_sValue = null;
00020 
00025     protected $_blActive = null;
00026 
00031     protected $_blDisabled = null;
00032 
00043     public function __construct( $sName, $sValue, $blDisabled, $blActive )
00044     {
00045         $this->_sName      = $sName;
00046         $this->_sValue     = $sValue;
00047         $this->_blDisabled = $blDisabled;
00048         $this->_blActive   = $blActive;
00049     }
00050 
00056     public function getValue()
00057     {
00058         return $this->_sValue;
00059     }
00060 
00066     public function getName()
00067     {
00068         return getStr()->htmlspecialchars( $this->_sName );
00069     }
00070 
00076     public function isActive()
00077     {
00078         return $this->_blActive;
00079     }
00080 
00086     public function isDisabled()
00087     {
00088         return $this->_blDisabled;
00089     }
00090 
00098     public function setActiveState( $blActive )
00099     {
00100         $this->_blActive = $blActive;
00101     }
00102 
00110     public function setDisabled( $blDisabled )
00111     {
00112         $this->_blDisabled = $blDisabled;
00113     }
00114 
00120     public function getLink()
00121     {
00122         return "#";
00123     }
00124 }