BusinessLogicFactory.inc 371 B

12345678910111213141516171819202122
  1. <?php
  2. class BusinessLogicFactory
  3. {
  4. public static function getInstance()
  5. {
  6. return new BusinessLogicFactory();
  7. }
  8. public function createRule($ruleId)
  9. {
  10. switch ($ruleId)
  11. {
  12. case 1:
  13. return ProfileSessionLoader::getInstance();
  14. case 2:
  15. return ProfileSessionSaver::getInstance();
  16. case 3:
  17. return LoadDefaultPageInformation::getInstance();
  18. }
  19. }
  20. }