[Mapbender-dev] mark deprecated functions
Thomas Baschetti
Thomas.Baschetti at gmx.de
Mon Apr 21 02:21:14 EDT 2008
Hi,
as more and more functions or modules in mapbender
are deprecated i think it would be useful to mark
these clearly and visible to all admins. What i'm thinking
about is something like throwing a notice in the deprecated
module, e.g. in class_administration.php
something like this
/**
* @deprecated
*/
function getGuisByPermission($mb_user_id,$ignorepublic){
$e = new mb_notice("administration->getGuisByPermission is deprecated, use user->getGuisByPermission instead!");
$user = new User($mb_user_id);
return $user->getApplicationsByPermission($ignorepublic);
}
so if the dev or admin reads the logfiles this will get obvious
(reading logs anyone? ;-)
What do you think about this?
Ciao
Thomas Baschetti
--
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
More information about the Mapbender_dev
mailing list