コード例 #1
0
 /**
  * create a textarea for an arbitrary value group
  *
  * the values of the group are separated by |'s
  * @param string $type which value group of the contact is to be shown
  * @param integer $cols how many columns should the textarea have
  * @return string html-content
  */
 function createValueGroupTextarea($type, $cols)
 {
     $v = '';
     $vals = $this->contact->getValueGroup($type);
     foreach ($vals as $m) {
         $v .= "{$m['value']}|{$m['label']}" . ($m['visibility'] == 'hidden' ? '|h' : '') . ($m['visibility'] == 'admin-hidden' ? '|a' : '') . "\n";
     }
     $cont .= HTMLHelper::createTextarea($type, $v, count($vals) + 2, $cols, null, false);
     return $cont;
 }