コード例 #1
0
ファイル: display.php プロジェクト: glauberm/cinevi
 /**
  * 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);
 }
コード例 #2
0
ファイル: captcha.php プロジェクト: jfquestiaux/fabrik
 /**
  * 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);
 }
コード例 #3
0
ファイル: textarea.php プロジェクト: LGBGit/tierno
 /**
  * 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);
 }