X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fxnet.php;h=f3da66f9c24e49675bfaf79b6fcc869255a137ab;hb=4c64e1e7926e82b917c4bc7bf47e51475d44d04a;hp=4554d25e179aa27b0f59bd0a1fd402af4141be54;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/classes/xnet.php b/classes/xnet.php index 4554d25..f3da66f 100644 --- a/classes/xnet.php +++ b/classes/xnet.php @@ -21,10 +21,10 @@ class Xnet extends Platal { - function Xnet() + public function __construct() { $modules = func_get_args(); - call_user_func_array(array(&$this, 'Platal'), $modules); + parent::__construct($modules); global $globals; if ($globals->asso()) { @@ -38,7 +38,7 @@ class Xnet extends Platal } } - function find_nearest_key($key, &$array) + protected function find_nearest_key($key, array &$array) { global $globals; if (in_array('%grp', array_keys($array)) && $key == $globals->asso('diminutif')) { @@ -47,7 +47,7 @@ class Xnet extends Platal return parent::find_nearest_key($key, $array); } - function near_hook() + public function near_hook() { global $globals; $link = str_replace('%grp', $globals->asso('diminutif'), parent::near_hook()); @@ -57,7 +57,7 @@ class Xnet extends Platal return null; } - function find_hook() + protected function find_hook() { $ans = parent::find_hook(); if ($ans && $this->ns) { @@ -67,10 +67,11 @@ class Xnet extends Platal return $ans; } - function force_login(&$page) + public function force_login(&$page) { http_redirect(S::v('loginX')); } } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>