Example #1
0
 /**
  * Sets the label and its visibility
  * When a label is visible it will be rendered next to the icon (if there's an icon),
  * otherwise you'll see the lable as a tooltip.
  *
  * @param string $label
  * @param boolean $visible
  * @return P4A_Button
  */
 public function setLabel($label, $visible = false)
 {
     $this->_label_visible = $visible;
     return parent::setLabel($label);
 }