Ejemplo n.º 1
0
 /**
  * Will tie in with the Administration mechanism, if we have one;
  *
  * This method will take care of making the bonds necessary with the administration mechanism. This allows us to have a
  * self-sustaining administrator interface, meaning that menus will be added or not shown, depending on user access to those
  * areas (taking in account the availability of the ACL system from the Authentication mechanism). These two method depend
  * deeply on one another, because of the centric ideea that our application has a backend and a frontend mechanism, which differ
  * both in design and just a little, in functionality;
  *
  * @param IFaceAdministration $objAdministrationMech The administration mechanism;
  * @return void Doesn't need to return anything;
  */
 public function tieInWithAdministration(IFaceAdministration $objAdministrationMech)
 {
     // Make the tie;
     self::$objAdministration = $objAdministrationMech;
     // Do something specific, LIKE getting the specific default .css file for a module;
     if (isset($_GET[ADMIN_PAGE])) {
         if ($_GET[ADMIN_PAGE] == $this->getObjectCLASS($this)) {
             // Append a default CSS file, must be present in ALL modules no matter what;
             $this->manageCSS(new FilePath($this->getPathToSkinCSS()->toRelativePath() . 'default.css'), $this->getObjectCLASS($this));
         }
     }
 }