Ejemplo n.º 1
0
 /**
  * Will tie in with the authentication mechanism;
  *
  * This method will tie in with the authentication mechanism, making necessary zones, and binding this module with the
  * authentication module making necessary linkes along the way. For most of the time it's used as a mapping tool for the
  * default administrator group and necessary zones;
  *
  * @param IFaceAuthentication $objAuthenticationMech The authentication mechanism;
  */
 public function tieInWithAuthentication(IFaceAuthentication $objAuthenticationMech)
 {
     // Do a CALL to the parent ...
     parent::tieInWithAuthentication($objAuthenticationMech);
     // Set ACLs;
     $objACL = new A();
     $objACL[] = new S('Articles.Articles.Do.View');
     $objACL[] = new S('Articles.Categories.Do.View');
     $objACL[] = new S('Articles.Comments.Do.View');
     $objACL[] = new S('Articles.Do.Operations');
     $objACL[] = new S('Articles.Do.Configuration');
     // Do a FOREACH ... on each ...
     foreach ($objACL as $k => $v) {
         if ($this->ATH->checkZoneByName($objACL[$k])->toBoolean() == FALSE) {
             $this->ATH->doMakeZone($objACL[$k], $this->getObjectCLASS());
         }
         if ($this->ATH->checkAdministratorIsMappedToZone($objACL[$k])->toBoolean() == FALSE) {
             $this->ATH->doMapAdministratorToZone($objACL[$k]);
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Will tie in with the authentication mechanism;
  *
  * This method will tie in with the authentication mechanism, making necessary zones, and binding this module with the
  * authentication module making necessary linkes along the way. For most of the time it's used as a mapping tool for the
  * default administrator group and necessary zones;
  *
  * @param IFaceAuthentication $objAuthenticationMech The authentication mechanism;
  */
 public function tieInWithAuthentication(IFaceAuthentication $objAuthenticationMech)
 {
     // Do a CALL to the parent;
     parent::tieInWithAuthentication($objAuthenticationMech);
     // Set ACLs;
     $objACL = new A();
     $objACL[] = new S('Authentication.Users.Do.View');
     $objACL[] = new S('Authentication.Groups.Do.View');
     $objACL[] = new S('Authentication.Zones.Do.View');
     $objACL[] = new S('Authentication.ACLsForGroups.Do.View');
     $objACL[] = new S('Authentication.ACLsForUsers.Do.View');
     $objACL[] = new S('Authentication.Do.Configuration');
     // Do a FOREACH ... on each ...
     foreach ($objACL as $k => $v) {
         if ($this->checkZoneByName($objACL[$k])->toBoolean() == FALSE) {
             $this->doMakeZone($objACL[$k], $this->getObjectCLASS());
         }
         if ($this->checkAdministratorIsMappedToZone($objACL[$k])->toBoolean() == FALSE) {
             $this->doMapAdministratorToZone($objACL[$k]);
         }
     }
 }
Ejemplo n.º 3
0
 /**
  * Will tie in with the authentication mechanism;
  *
  * This method will tie in with the authentication mechanism, making necessary zones, and binding this module with the
  * authentication module making necessary linkes along the way. For most of the time it's used as a mapping tool for the
  * default administrator group and necessary zones;
  *
  * @param IFaceAuthentication $objAuthenticationMech The authentication mechanism;
  */
 public function tieInWithAuthentication(IFaceAuthentication $objAuthenticationMech)
 {
     // Do a CALL to the parent ...
     parent::tieInWithAuthentication($objAuthenticationMech);
     // Set ACLs;
     $objACL = new A();
     $objACL[] = new S('Settings.Do.Configuration');
     $objACL[] = new S('Settings.CountryList.Do.View');
     $objACL[] = new S('Settings.ErrorPages.Do.View');
     // Do a FOREACH ... on each ...
     foreach ($objACL as $k => $v) {
         if (self::$objAuthenticationMech->checkZoneByName($objACL[$k])->toBoolean() == FALSE) {
             self::$objAuthenticationMech->doMakeZone($objACL[$k], $this->getObjectCLASS());
         }
         if (self::$objAuthenticationMech->checkAdministratorIsMappedToZone($objACL[$k])->toBoolean() == FALSE) {
             self::$objAuthenticationMech->doMapAdministratorToZone($objACL[$k]);
         }
     }
 }
Ejemplo n.º 4
0
 /**
  * Will tie in with the authentication mechanism;
  *
  * This method will tie in with the authentication mechanism, making necessary zones, and binding this module with the
  * authentication module making necessary linkes along the way. For most of the time it's used as a mapping tool for the
  * default administrator group and necessary zones;
  *
  * @param IFaceAuthentication $objAuthenticationMech The authentication mechanism;
  */
 public function tieInWithAuthentication(IFaceAuthentication $objAuthenticationMech)
 {
     // Do a CALL to the parent;
     parent::tieInWithAuthentication($objAuthenticationMech);
 }