/**
  * Gets the button label
  *
  * @return string
  */
 public function getLabel()
 {
     if ($this->_iconAlign == 'right') {
         return parent::getLabel() . PHP_EOL . $this->_renderIcon();
     } else {
         return $this->_renderIcon() . PHP_EOL . parent::getLabel();
     }
 }
示例#2
0
文件: Button.php 项目: ngchie/system
 /**
  * Gets the button label
  *
  * @return string
  */
 public function getLabel()
 {
     // Render the icon on either side
     if (strcasecmp($this->_iconPosition, self::ICON_POSITION_LEFT) === 0) {
         return $this->_renderIcon() . PHP_EOL . parent::getLabel();
     }
     return parent::getLabel() . PHP_EOL . $this->_renderIcon();
 }
 /**
  * Gets the button label
  *
  * @return string
  */
 public function getLabel()
 {
     return $this->_renderIcon() . PHP_EOL . parent::getLabel();
 }