3 require_once 'Pman.php'; /// needed as we might not be included from pman..
5 class Pman_Cms_OutputTranslations extends Pman
7 var $cms_template = '';
17 empty($this->cms_template) ||
18 (empty($this->on_table) || empty($this->on_id) || empty($this->on_col))
23 if(!empty($this->template)){
24 return $this->templateTranslations();
27 return $this->tableTranslations();
31 function templateTranslations()
35 $template = DB_DataObject::factory('cms_template');
36 if(!$template->get('template', $this->cms_template)){
40 $string = DB_DataObject::factory('cms_templatestr');
41 $string->setFrom(array(
42 'template_id' => $template->id,
47 $ret = $string->fetchAll('id', 'mdsum');
54 function tableTranslations()