/** * Konstruktor * @param string $action * @param string $param */ public function __construct($action, $param) { parent::__construct(); $this->action = $action; $this->param = $param; $this->isUtf8 = defined('FPCM_PUB_OUTPUT_UTF8') ? FPCM_PUB_OUTPUT_UTF8 : true; }
/** * Konstruktor * @param bool $apiMode API-Modus */ public function __construct($apiMode = false) { $this->apiMode = $apiMode; parent::__construct(); $this->view = new \fpcm\model\view\pub('showlatest', 'public'); $this->articleList = new \fpcm\model\articles\articlelist(); $this->userList = new \fpcm\model\users\userList(); $this->iplist = new \fpcm\model\ips\iplist(); $this->template = new \fpcm\model\pubtemplates\latestnews(); $this->view->setShowHeader($this->apiMode ? false : true); $this->view->setShowFooter($this->apiMode ? false : true); }
/** * Konstruktor * @param bool $apiMode API-Modus */ public function __construct($apiMode = false) { parent::__construct(); $this->view = new \fpcm\model\view\pub('showsingle', 'public'); $this->view->assign('article', ''); $this->view->assign('comments', ''); $this->view->assign('commentform', ''); $this->view->assign('systemMode', $this->config->system_mode); $this->view->setShowHeader($apiMode ? false : true); $this->view->setShowFooter($apiMode ? false : true); $this->commentList = new \fpcm\model\comments\commentList(); $this->categoryList = new \fpcm\model\categories\categoryList(); $this->userList = new \fpcm\model\users\userList(); $this->iplist = new \fpcm\model\ips\iplist(); }
/** * Konstruktor */ public function __construct() { parent::__construct(); $this->articleList = new \fpcm\model\articles\articlelist(); $this->commentList = new \fpcm\model\comments\commentList(); $this->categoryList = new \fpcm\model\categories\categoryList(); $this->userList = new \fpcm\model\users\userList(); $this->template = new \fpcm\model\pubtemplates\article($this->config->articles_template_active); $this->iplist = new \fpcm\model\ips\iplist(); }