public function get($key) { $out = parent::get($key); if (isset($this->tv[$key])) { $tpl = $this->get('template'); $tvTPL = APIHelpers::getkey($this->tvTpl, $tpl, array()); $tvID = APIHelpers::getkey($this->tv, $key, 0); if (in_array($tvID, $tvTPL) && is_null($out)) { $out = APIHelpers::getkey($this->tvd[$key], 'value', null); } } return $out; }