Example #1
0
 /**
  * if a database connection has been established elsewhere, set the link to that database connection
  * 	@param mixed $link a database link
  * @access public
  * @static
  */
 public static function setLink($link)
 {
     if (self::$_instance instanceof NewDao) {
         self::$_instance->__destruct();
     }
     self::$_link = $link;
 }