/** * @param int $p a priority level * @param string $url a URL to set this autoread as current * @todo Give markasread as a param? */ function __construct($p, $url) { parent::__construct("autoreadlev{$p}", true, "Level {$p}"); $this->priority = $p; $this->contents = array(); $this->link = new Hyperlink('set_' . $this->identifier, true, $url, $this->title); $this->markasread_link = new Hyperlink('markasread', false, "setpriv.php?myprivl={$p}&mark_as_read=1", 'X'); }