Lines Matching refs:pageid
40 * @param string|null $pageid defaults to current page
42 public function toggleStar($user = null, $pageid = null) argument
52 if ($pageid === null) $pageid = $ID;
56 $on = $this->checkStar($user, $pageid); // currently on?
61 $db->exec($sql, [$pageid, $user]);
65 $db->exec($sql, [$pageid, $user, time()]);
73 * @param string|null $pageid defaults to current page
76 public function checkStar($user = null, $pageid = null) argument
86 if ($pageid === null) $pageid = $ID;
91 return (int)$db->queryValue($sql, [$pageid, $user]);
134 * @param string $pageid The page which the star is supposed to toggle.
139 public function starHtml($ID, $pageid, $inneronly = false, $setid = false) argument
142 $dt = $this->checkStar(null, $pageid);
144 … .= '<a href="' . wl($ID, array('do' => 'startoggle_' . $pageid)) . '" data-pageid="' . $pageid . …