Exemplo n.º 1
0
 public function getStatic()
 {
     $ret = '';
     $fields = explode(',', $this->props['l_field']);
     $items = $GLOBALS['db']->getItems('select_list_static', 'SELECT id,' . $this->props['l_field'] . ' FROM ' . $this->props['l_table'] . ' WHERE id IN(' . parent::getStatic() . ')' . ($this->props['l_sort'] ? ' ORDER BY ' . $this->props['l_sort'] : ''));
     foreach ($items as $k => $a) {
         $ret .= '';
         $ret .= !empty($ret) && $k ? ', ' : '';
         foreach ($fields as $fi) {
             $ret .= !empty($a[$fi]) ? ' ' . $a[$fi] : '';
         }
         $ret .= ' [' . $a['id'] . ']';
     }
     return $ret;
 }
Exemplo n.º 2
0
 public function getStatic()
 {
     return CUtils::cut_text(parent::getStatic());
 }