sqlite->query($sql, $pid); $list = $this->sqlite->res2arr($res); $this->sqlite->res_close($res); return $list; } /** * Returns true if the current page is included in publishing workflows * * @return bool */ public function isPublishable() { global $ID; $sql = 'SELECT * FROM structpublish_assignments WHERE pid = ? AND assigned = 1'; $res = $this->sqlite->query($sql, $ID); if ($res && $this->sqlite->res2count($res)) { return true; } return false; } }