Beispiel #1
0
 function fetch_txt($detail = 0)
 {
     foreach ($this->fields as $k => $v) {
         if (!empty($v['istxt']) && isset($this->archive[$k]) && (!$detail && $v['tbl'] == 'main' || $detail && $v['tbl'] == 'custom')) {
             $this->namepres[$k] = $this->archive[$k];
             $this->archive[$k] = readfromtxt($this->archive[$k]);
         }
     }
 }
Beispiel #2
0
function fetch_txt(&$item)
{
    $fields = read_cache('fields', $item['chid']);
    foreach ($fields as $k => $v) {
        if (!empty($v['istxt']) && isset($item[$k])) {
            $item[$k] = readfromtxt($item[$k]);
        }
    }
}