Пример #1
0
 /**
  * Copies basic control attributes from another control.
  * Properties including AccessKey, ToolTip, TabIndex, Enabled
  * and Attributes are copied.
  * @param TWebControl source control
  */
 public function copyBaseAttributes(TWebControl $control)
 {
     $this->setAccessKey($control->getAccessKey());
     $this->setToolTip($control->getToolTip());
     $this->setTabIndex($control->getTabIndex());
     if (!$control->getEnabled()) {
         $this->setEnabled(false);
     }
     if ($control->getHasAttributes()) {
         $this->getAttributes()->copyFrom($control->getAttributes());
     }
 }