function CoreRss() { CoreBase::CoreBase(); global $permarr; $this->permarr = $permarr; $this->db_config = $db_config =& new db_config(); }
/** * @param $id - id */ function Comments($id = null) { // konstruktor klasy bazowej CoreBase::CoreBase(); if (!is_null($id) && $this->_id_check($id)) { $this->set_id($id_news); $this->set_from_array($this->retrieve()); } return true; }
function Comment($id = null) { CoreBase::CoreBase(); //wywolujemy konstruktora klasy bazowej if (!is_null($id) && $this->_id_check($id)) { $this->set_id($id); $this->set_from_array($this->retrieve()); } return true; }
/** * @param $id_news - news id */ function Rss($id_news = null) { // konstruktor klasy bazowej CoreBase::CoreBase(); if (!is_null($id_news) && $this->_id_check($id_news)) { $this->set_id($id_news); $data = $this->retrieve(); $data['published'] = $data['published'] == 1; $data['comments_allow'] = $data['comments_allow'] == 1; $this->set_from_array($data); } return true; }
function Image($filepath = null) { CoreBase::CoreBase(); $sessVarName = $this->get_sessVarName(); if (!is_null($filepath)) { $this->set_data_from_file($filepath); unset($_SESSION[$sessVarName]); } elseif (isset($_SESSION[$sessVarName])) { $filepath = pathjoin($this->get_tmp_dir(), $_SESSION[$sessVarName]); if (is_file($filepath)) { $this->set_data_from_file($filepath); } else { $this->error_set(sprintf('Image::Image: _SESSION[\'%s\'] set, but file "%s" missing.', $sessVarName, $filename)); } } }