--- loncom/enrollment/localenroll.pm 2006/02/07 16:36:10 1.13 +++ loncom/enrollment/localenroll.pm 2006/07/11 02:28:27 1.15 @@ -1,6 +1,6 @@ # functions to glue school database system into Lon-CAPA for # automated enrollment -# $Id: localenroll.pm,v 1.13 2006/02/07 16:36:10 albertel Exp $ +# $Id: localenroll.pm,v 1.15 2006/07/11 02:28:27 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -204,8 +204,9 @@ sub get_sections { # (a) the institutional courseID (in the MSU case this is a concatenation of # semester code, department code, course number, and section number # e.g., fs03nop590001). -# (b) the course owner. This is the LON-CAPA username of the course coordinator -# assigned to the course when it is first created. +# (b) the course owner. This is the LON-CAPA username and domain of the course +# coordinator assigned to the course when it is first created, in the form +# username:domain # (c) the LON-CAPA domain that contains the course # ################################# @@ -416,4 +417,23 @@ sub manager_photo_update { return ($update,$comment); } +############################### +# sub AUTOLOAD +# +# Incoming data: none +# Returns '' +# +# Prevents errors when undefined subroutines are called in this package +# Will allow new routines added in the future to be called from lond etc. +# without the need for customized versions of local*.pm packages to be +# modified to include the new subroutines immediately. +# +# See "Programming Perl" 3rd ed. pp 296-298. +############################### + +sub AUTOLOAD { + our $AUTOLOAD; + return ''; +} + 1;