/** * Will tie in with the Authentication mechanism, if we have one; * * This method will take care of making the bonds necessary with the authentication mechanism. We do this to allow loose-coupe * of framework modules, but this loose-coupling comes with a price, meaning that great care must be taken to provide the * least amount of compatibility between different modules; * * @param IFaceAuthentication $objAuthenticationMech The authentication mechanism; * @return void Doesn't need to return anything; */ public function tieInWithAuthentication(IFaceAuthentication $objAuthenticationMech) { // Make the tie with authentication; self::$objAuthenticationMech = $objAuthenticationMech; // Set the proper ZONE; if (self::$objAuthenticationMech->checkZoneByName($this->getObjectCLASS())->toBoolean() == FALSE) { self::$objAuthenticationMech->doMakeZone($this->getObjectCLASS()); } if (self::$objAuthenticationMech->checkAdministratorIsMappedToZone($this->getObjectCLASS())->toBoolean() == FALSE) { self::$objAuthenticationMech->doMapAdministratorToZone($this->getObjectCLASS()); } }