/** * Return article's title * Called via Ajax * During composition of page contents, user drag and drop articles from context list to page sections and vice versa * When an article move from sections to contexts the system calls this method * * @param integer $id_area Area ID * @param string $lang Language code * @param string $bid, article unique ID * @return string */ public function get_title($id_area, $lang, $bid) { // get article object $mod = new Section_model(); $art = $mod->get_by_bid($id_area, $lang, $bid); // return article's title echo '<strong>' . stripslashes($art->name) . '</strong>'; }