BxDol.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php defined('BX_DOL') or defined('BX_DOL_INSTALL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup DolphinCore Dolphin Core
  7. * @{
  8. */
  9. /**
  10. * @page objects Objects
  11. * Classes which represents high level programming constructions to generate ready functionality, like Comments, Votings, Forms.
  12. */
  13. /**
  14. * Base class for all Dolphin classes
  15. */
  16. class BxDol {
  17. function BxDol () {
  18. }
  19. }
  20. /**
  21. * Singleton interface, for objects with one instance only
  22. */
  23. interface iBxDolSingleton {
  24. public static function getInstance();
  25. }
  26. /**
  27. * Factory interface for object instances, once instance per object name
  28. */
  29. interface iBxDolFactoryObject {
  30. static public function getObjectInstance($sObject);
  31. }
  32. /**
  33. * Profile interface, class must implement basic profile methods to be compliant with Profile interface
  34. */
  35. interface iBxDolProfile {
  36. public function id();
  37. public function getDisplayName();
  38. public function getUrl();
  39. public function getUnit();
  40. public function getAvatar();
  41. public function getThumb();
  42. public function getIcon();
  43. public function isActive();
  44. }
  45. /**
  46. * Profile services module interface, module class must implement basic profile services to be compliant with Profile interface
  47. */
  48. interface iBxDolProfileService {
  49. public function serviceProfileUnit ($iContentId);
  50. public function serviceProfileAvatar ($iContentId);
  51. public function serviceProfileThumb ($iContentId);
  52. public function serviceProfileIcon ($iContentId);
  53. public function serviceProfileName ($iContentId);
  54. public function serviceProfileUrl ($iContentId);
  55. }
  56. /** @} */