/**
  * Adds a class to the horizontal column classes, used to define the column breaks when drawing in a
  * horizontal mode.
  *
  * @param $strDeviceSize
  * @param int $intColumns
  * @param int $intOffset
  * @param int $intPush
  */
 public function AddHorizontalColumnClass($strDeviceSize, $intColumns = 0, $intOffset = 0, $intPush = 0)
 {
     $strClass = Bootstrap::CreateColumnClass($strDeviceSize, $intColumns, $intOffset, $intPush);
     $blnChanged = \QHtml::AddClass($this->strHorizontalClass, $strClass);
     if ($blnChanged) {
         $this->MarkAsModified();
     }
 }
 /**
  * Used by drawing routines to render the attributes associated with this control.
  *
  * @param null $attributeOverrides
  * @param null $styleOverrides
  * @return string
  */
 public function RenderHtmlAttributes($attributeOverrides = null, $styleOverrides = null)
 {
     if ($this->intButtonMode == \QRadioButtonList::ButtonModeSet) {
         $attributeOverrides["data-toggle"] = "buttons";
         $attributeOverrides["class"] = $this->CssClass;
         \QHtml::AddClass($attributeOverrides["class"], "btn-group");
     }
     return parent::RenderHtmlAttributes($attributeOverrides, $styleOverrides);
 }
 protected function helpTestAddClass($objTestDataArray)
 {
     $strOldValue = $objTestDataArray["OldValue"];
     $newValue = $objTestDataArray["NewValue"];
     $blnChanged = QHtml::AddClass($strOldValue, $newValue);
     $this->assertEquals($objTestDataArray["Changed"], $blnChanged);
     $this->assertEquals($objTestDataArray["Expected"], $strOldValue);
     // problem with sending a percent sign into message, so we just use default message.
 }
 /**
  * Adds a css class name to the 'class' property. Prevents duplication.
  * @param string $strNewClass
  * @return bool true if the class was not already attached.
  */
 public function AddCssClass($strNewClass)
 {
     $ret = false;
     if (!$strNewClass) {
         return false;
     }
     $strClasses = $this->GetHtmlAttribute('class');
     if (is_null($strClasses)) {
         $strClasses = '';
     }
     if (QHtml::AddClass($strClasses, $strNewClass)) {
         $this->SetHtmlAttribute('class', $strClasses);
         $ret = true;
     }
     return $ret;
 }