/** * Easy peasy way to grab a function from member/memberFunctions.php * without having to bother setting it up each time. * * @access public * @return object memberFunctions object * @author MattMecham * @favColor Purple */ public static function getFunction() { if (!is_object(self::$_memberFunctions)) { require_once IPS_ROOT_PATH . 'sources/classes/member/memberFunctions.php'; self::$_memberFunctions = new memberFunctions(ipsRegistry::instance()); } return self::$_memberFunctions; }
/** * Easy peasy way to grab a function from member/memberFunctions.php * without having to bother setting it up each time. * * @return object memberFunctions object * @author MattMecham */ public static function getFunction() { if (!is_object(self::$_memberFunctions)) { $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/member/memberFunctions.php', 'memberFunctions'); self::$_memberFunctions = new $classToLoad(ipsRegistry::instance()); } return self::$_memberFunctions; }