コード例 #1
0
 /**
  * BannerFaculty
  *
  * BannerFaculty constructor with db connection. 
  *
  * @since		version 1.0.0
  * @access		public
  * @param  		ADOdb $adodb ADOdb database connection
  * @param  		string $termcode Termcode.  If not set, defaults global termcode to the current Undergraduate Term
  */
 function BannerFaculty(&$adodb, $termcode = '')
 {
     parent::__construct($adodb);
     if ($termcode) {
         $this->termcode = $termcode;
     } else {
         $this->termcode = $this->_ADOdb->GetOne("SELECT f_get_currentterm('UG') FROM dual");
     }
 }
コード例 #2
0
 /**
  * BannerHR
  *
  * BannerHR constructor with db connection. 
  *
  * @since		version 1.0.0
  * @access		public
  * @param  		ADOdb $adodb ADOdb database connection
  */
 function BannerHR(&$adodb)
 {
     parent::__construct($adodb);
     if ($GLOBALS['BannerIDM']) {
         $this->idm =& $GLOBALS['BannerIDM'];
     } else {
         $this->idm = new IDMObject($adodb);
         //$GLOBALS['BannerIDM'] =& $this->idm;
     }
     //end else
 }