BxDol.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. * Replacable interface, class has an ability to replace markers somewhere
  34. */
  35. interface iBxDolReplaceable {
  36. public function addMarkers ($a);
  37. }
  38. /**
  39. * Profile interface, class must implement basic profile methods to be compliant with Profile interface
  40. */
  41. interface iBxDolProfile {
  42. public function id();
  43. public function getDisplayName();
  44. public function getUrl();
  45. public function getUnit();
  46. public function getAvatar();
  47. public function getThumb();
  48. public function getIcon();
  49. public function getEditUrl();
  50. public function isActive();
  51. }
  52. /**
  53. * Profile services module interface, module class must implement basic profile services to be compliant with Profile interface
  54. */
  55. interface iBxDolProfileService {
  56. public function serviceProfileUnit ($iContentId);
  57. public function serviceProfileAvatar ($iContentId);
  58. public function serviceProfileThumb ($iContentId);
  59. public function serviceProfileIcon ($iContentId);
  60. public function serviceProfileName ($iContentId);
  61. public function serviceProfileUrl ($iContentId);
  62. public function serviceProfileEditUrl ($iContentId);
  63. public function serviceProfilesSearch ($sTerm, $iLimit);
  64. }
  65. /** @} */