Exemplo n.º 1
0
 /**
  * Get the element's HTML label
  *
  * @param   int     $repeatCounter  Group repeat counter
  * @param   string  $tmpl           Form template
  *
  * @return  string  label
  */
 public function getLabel($repeatCounter = 0, $tmpl = '')
 {
     $params = $this->getParams();
     $element = $this->getElement();
     if (!$params->get('display_showlabel', true)) {
         $element->label = $this->getValue(array());
         $element->label_raw = $element->label;
     }
     return parent::getLabel($repeatCounter, $tmpl);
 }
Exemplo n.º 2
0
 /**
  * Get the element's HTML label
  *
  * @param   int    $repeatCounter group repeat counter
  * @param   string $tmpl          form template
  *
  * @return  string  label
  */
 public function getLabel($repeatCounter, $tmpl = '')
 {
     $params = $this->getParams();
     if ($this->user->id != 0) {
         if ($params->get('captcha-showloggedin', 0) == 0) {
             return '';
         }
     }
     return parent::getLabel($repeatCounter, $tmpl);
 }
Exemplo n.º 3
0
 /**
  * Get the element's HTML label
  *
  * @param   int     $repeatCounter  Group repeat counter
  * @param   string  $tmpl           Form template
  *
  * @return  string  label
  */
 public function getLabel($repeatCounter = 0, $tmpl = '')
 {
     $params = $this->getParams();
     $element = $this->getElement();
     if ($params->get('textarea_showlabel') == '0') {
         $element->label = '';
     }
     return parent::getLabel($repeatCounter, $tmpl);
 }