1
0

BxDol.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. * Classes instances are stored here
  15. */
  16. $GLOBALS['bxDolClasses'] = array();
  17. /**
  18. * Base class for all Dolphin classes
  19. */
  20. class BxDol
  21. {
  22. public function BxDol () {}
  23. }
  24. /**
  25. * Singleton interface, for objects with one instance only
  26. */
  27. interface iBxDolSingleton
  28. {
  29. public static function getInstance();
  30. }
  31. /**
  32. * Factory interface for object instances, once instance per object name
  33. */
  34. interface iBxDolFactoryObject
  35. {
  36. static public function getObjectInstance($sObject);
  37. }
  38. /**
  39. * Replacable interface, class has an ability to replace markers somewhere
  40. */
  41. interface iBxDolReplaceable
  42. {
  43. public function addMarkers ($a);
  44. }
  45. /**
  46. * Profile interface, class must implement basic profile methods to be compliant with Profile interface
  47. */
  48. interface iBxDolProfile
  49. {
  50. public function id();
  51. public function getDisplayName();
  52. public function getUrl();
  53. public function getUnit();
  54. public function getAvatar();
  55. public function getThumb();
  56. public function getIcon();
  57. public function getEditUrl();
  58. public function isActive();
  59. }
  60. /**
  61. * Profile services module interface, module class must implement basic profile services to be compliant with Profile interface
  62. */
  63. interface iBxDolProfileService
  64. {
  65. public function serviceProfileUnit ($iContentId);
  66. public function serviceProfileAvatar ($iContentId);
  67. public function serviceProfileThumb ($iContentId);
  68. public function serviceProfileIcon ($iContentId);
  69. public function serviceProfileName ($iContentId);
  70. public function serviceProfileUrl ($iContentId);
  71. public function serviceProfileEditUrl ($iContentId);
  72. public function serviceProfilesSearch ($sTerm, $iLimit);
  73. }
  74. /** @} */