@@ -2,6 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | class ServiceMediawiki extends Service { |
4 | 4 | |
5 | + /** |
|
6 | + * @param string $template |
|
7 | + */ |
|
5 | 8 | public function renderInPage(HTTPRequest $request, $title, $template, $presenter = null) { |
6 | 9 | $this->displayHeader($request, $title); |
7 | 10 | |
@@ -34,7 +37,6 @@ discard block |
||
34 | 37 | } |
35 | 38 | |
36 | 39 | /** |
37 | - * @param HTTPRequest $request |
|
38 | 40 | * @return bool |
39 | 41 | */ |
40 | 42 | public function userIsAdmin(PFUser $user) { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * Associate a User and an OpenId URL |
35 | 35 | * |
36 | 36 | * @param PFUser $user |
37 | - * @param type $identity_url |
|
37 | + * @param string $identity_url |
|
38 | 38 | * @throws OpenId_IdentityUrlUpdateException |
39 | 39 | * @throws OpenId_IdentityUrlAlreadyPairedException |
40 | 40 | */ |
@@ -44,6 +44,9 @@ discard block |
||
44 | 44 | return $this->retrieve($sql); |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param integer $user_id |
|
49 | + */ |
|
47 | 50 | public function addConnexionStringForUserId($connexion_string, $user_id) { |
48 | 51 | $connexion_string = $this->da->quoteSmart($connexion_string); |
49 | 52 | $user_id = $this->da->escapeInt($user_id); |
@@ -54,6 +57,9 @@ discard block |
||
54 | 57 | return $this->update($sql); |
55 | 58 | } |
56 | 59 | |
60 | + /** |
|
61 | + * @param integer $user_id |
|
62 | + */ |
|
57 | 63 | public function removeConnexionStringForUserId($connexion_string, $user_id) { |
58 | 64 | $connexion_string = $this->da->quoteSmart($connexion_string); |
59 | 65 | $user_id = $this->da->escapeInt($user_id); |
@@ -58,6 +58,9 @@ discard block |
||
58 | 58 | } |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $redirect_url |
|
63 | + */ |
|
61 | 64 | private function issueOpenid1Connexion(Auth_OpenID_AuthRequest $auth_request, $redirect_url) { |
62 | 65 | $redirect_url = $auth_request->redirectURL($this->getTrustRoot(), $this->getReturnTo($redirect_url)); |
63 | 66 | |
@@ -68,6 +71,9 @@ discard block |
||
68 | 71 | header("Location: ".$redirect_url); |
69 | 72 | } |
70 | 73 | |
74 | + /** |
|
75 | + * @param string $redirect_url |
|
76 | + */ |
|
71 | 77 | private function issueOpenid2Connexion(Auth_OpenID_AuthRequest $auth_request, $redirect_url) { |
72 | 78 | $form_id = "openid_message"; |
73 | 79 | $form_html = $auth_request->htmlMarkup($this->getTrustRoot(), $this->getReturnTo($redirect_url), false, array('id' => $form_id)); |
@@ -72,6 +72,9 @@ |
||
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $finish_url |
|
77 | + */ |
|
75 | 78 | private function startAuthentication($finish_url) { |
76 | 79 | $openid_url = $this->request->getValidated('openid_url', 'string', ''); |
77 | 80 | $return_url = get_server_url().'/my'; |
@@ -35,6 +35,9 @@ |
||
35 | 35 | return dirname(dirname(__FILE__)) . '/templates/'; |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $openid_url |
|
40 | + */ |
|
38 | 41 | private function returnLoginUrl($openid_url) { |
39 | 42 | $query_parts = array( |
40 | 43 | 'func' => OpenId_OpenIdRouter::LOGIN, |
@@ -23,6 +23,9 @@ |
||
23 | 23 | |
24 | 24 | class OpenidPluginInfo extends PluginInfo { |
25 | 25 | |
26 | + /** |
|
27 | + * @param OpenidPlugin $plugin |
|
28 | + */ |
|
26 | 29 | function __construct($plugin) { |
27 | 30 | parent::__construct($plugin); |
28 | 31 | $this->setPluginDescriptor(new OpenidPluginDescriptor()); |
@@ -28,7 +28,6 @@ |
||
28 | 28 | /** |
29 | 29 | * |
30 | 30 | * @param PHPWikiPage[] $pages |
31 | - * @param int $total_size |
|
32 | 31 | */ |
33 | 32 | public function __construct(array $pages) { |
34 | 33 | $this->pages = $pages; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->dao = $dao; |
29 | 29 | } |
30 | 30 | |
31 | - /** @return PaginatedWikiPages */ |
|
31 | + /** @return PaginatedPHPWikiPages */ |
|
32 | 32 | public function getPaginatedUserPages(PFUser $user, $project_id, $limit, $offset, $pagename) { |
33 | 33 | $pages = array(); |
34 | 34 |