Ver código fonte

#32 - Votes: some fixes

Alex Trofimov 13 anos atrás
pai
commit
e4476b93e3

+ 11 - 5
inc/classes/BxDolVote.php

@@ -18,6 +18,12 @@ define('BX_DOL_VOTE_USAGE_BLOCK', 'block');
 define('BX_DOL_VOTE_USAGE_INLINE', 'inline');
 define('BX_DOL_VOTE_USAGE_DEFAULT', BX_DOL_VOTE_USAGE_BLOCK);
 
+/** 
+ * @page objects
+ * @section votes Votes
+ * @ref BxDolVote
+ */
+
 /**
  * Vote for any content
  *
@@ -81,11 +87,11 @@ define('BX_DOL_VOTE_USAGE_DEFAULT', BX_DOL_VOTE_USAGE_BLOCK);
 
 class BxDolVote extends BxDol
 {
-    var $_iId = 0;    ///< item id to be rated
-    var $_sSystem = ''; ///< current rating system name
-    var $_aSystem = array(); ///< current rating system array
+    protected $_iId = 0;    ///< item id to be rated
+    protected $_sSystem = ''; ///< current rating system name
+    protected $_aSystem = array(); ///< current rating system array
 
-    var $_oQuery = null;
+    protected $_oQuery = null;
 
     protected function __construct($sSystem, $iId, $iInit = 1)
     {
@@ -432,4 +438,4 @@ class BxDolVote extends BxDol
     }
 }
 
-/** @} */ 
+/** @} */

+ 7 - 5
inc/classes/BxDolVoteQuery.php

@@ -1,10 +1,11 @@
-<?php
+<?php defined('BX_DOL') or die('hack attempt');
 /**
- * @package     Dolphin Core
- * @copyright   Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * @license     CC-BY - http://creativecommons.org/licenses/by/3.0/
+ * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
+ * CC-BY License - http://creativecommons.org/licenses/by/3.0/
+ *
+ * @defgroup    DolphinCore Dolphin Core
+ * @{
  */
-defined('BX_DOL') or die('hack attempt');
 
 bx_import('BxDolDb');
 
@@ -134,3 +135,4 @@ class BxDolVoteQuery extends BxDolDb
     }
 }
 
+/** @} */

+ 7 - 5
modules/boonex/uni/data/template/system/scripts/BxTemplVote.php

@@ -1,10 +1,11 @@
-<?php
+<?php defined('BX_DOL') or die('hack attempt');
 /**
- * @package     Dolphin Core
- * @copyright   Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * @license     CC-BY - http://creativecommons.org/licenses/by/3.0/
+ * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
+ * CC-BY License - http://creativecommons.org/licenses/by/3.0/
+ *
+ * @defgroup    DolphinCore Dolphin Core
+ * @{
  */
-defined('BX_DOL') or die('hack attempt');
 
 bx_import('BxBaseVote');
 
@@ -19,3 +20,4 @@ class BxTemplVote extends BxBaseVote
     }
 }
 
+/** @} */

+ 8 - 5
template/scripts/BxBaseVote.php

@@ -1,10 +1,11 @@
-<?php
+<?php defined('BX_DOL') or die('hack attempt');
 /**
- * @package     Dolphin Core
- * @copyright   Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * @license     CC-BY - http://creativecommons.org/licenses/by/3.0/
+ * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
+ * CC-BY License - http://creativecommons.org/licenses/by/3.0/
+ *
+ * @defgroup    DolphinCore Dolphin Core
+ * @{
  */
-defined('BX_DOL') or die('hack attempt');
 
 bx_import('BxDolVote');
 bx_import('BxDolTemplate');
@@ -279,3 +280,5 @@ class BxBaseVote extends BxDolVote
         echo $s;
     }
 }
+
+/** @} */