@@ -12,6 +12,11 @@ discard block |
||
| 12 | 12 | class BlogModel extends BlogCoreModel |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $iBlogId |
|
| 17 | + * @param integer $iOffset |
|
| 18 | + * @param integer $iLimit |
|
| 19 | + */ |
|
| 15 | 20 | public function getCategory($iBlogId = null, $iOffset, $iLimit, $bCount = false) |
| 16 | 21 | { |
| 17 | 22 | $this->cache->start(self::CACHE_GROUP, 'category' . $iBlogId . $iOffset . $iLimit . $bCount, static::CACHE_TIME); |
@@ -190,6 +195,9 @@ discard block |
||
| 190 | 195 | return $sData; |
| 191 | 196 | } |
| 192 | 197 | |
| 198 | + /** |
|
| 199 | + * @param string $sPostId |
|
| 200 | + */ |
|
| 193 | 201 | public function postIdExists($sPostId) |
| 194 | 202 | { |
| 195 | 203 | $this->cache->start(self::CACHE_GROUP, 'postIdExists' . $sPostId, static::CACHE_TIME); |
@@ -228,6 +236,9 @@ discard block |
||
| 228 | 236 | $rStmt->execute(); |
| 229 | 237 | } |
| 230 | 238 | |
| 239 | + /** |
|
| 240 | + * @param string $sSection |
|
| 241 | + */ |
|
| 231 | 242 | public function updatePost($sSection, $sValue, $iBlogId) |
| 232 | 243 | { |
| 233 | 244 | $this->orm->update('Blogs', $sSection, $sValue, 'blogId', $iBlogId); |
@@ -7,10 +7,9 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 12 | -PH7\Framework\Parse\SysVar, |
|
| 13 | -PH7\Framework\Url\Url; |
|
| 10 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 11 | +use PH7\Framework\Parse\SysVar; |
|
| 12 | +use PH7\Framework\Url\Url; |
|
| 14 | 13 | |
| 15 | 14 | class HomeController extends Controller |
| 16 | 15 | { |
@@ -7,11 +7,10 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Security\Ban\Ban, |
|
| 12 | -PH7\Framework\Http\Http, |
|
| 13 | -PH7\Framework\Navigation\Page, |
|
| 14 | -PH7\Framework\Mvc\Router\Uri; |
|
| 10 | +use PH7\Framework\Security\Ban\Ban; |
|
| 11 | +use PH7\Framework\Http\Http; |
|
| 12 | +use PH7\Framework\Navigation\Page; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 15 | 14 | |
| 16 | 15 | class CommentController extends Controller |
| 17 | 16 | { |
@@ -12,6 +12,9 @@ discard block |
||
| 12 | 12 | class CommentModel extends CommentCoreModel |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param integer $iApproved |
|
| 17 | + */ |
|
| 15 | 18 | public function get($iCommentId, $iApproved, $sTable) |
| 16 | 19 | { |
| 17 | 20 | $this->cache->start(static::CACHE_GROUP, 'get' . $iCommentId . $iApproved . $sTable, static::CACHE_TIME); |
@@ -31,6 +34,11 @@ discard block |
||
| 31 | 34 | return $oData; |
| 32 | 35 | } |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @param integer $iSenderId |
|
| 39 | + * @param integer $iApproved |
|
| 40 | + * @param string $sCreatedDate |
|
| 41 | + */ |
|
| 34 | 42 | public function add($iCommentId, $iRecipientId, $iSenderId, $iApproved, $sCreatedDate, $sTable) |
| 35 | 43 | { |
| 36 | 44 | $sTable = CommentCore::checkTable($sTable); |
@@ -44,6 +52,10 @@ discard block |
||
| 44 | 52 | return $rStmt->execute(); |
| 45 | 53 | } |
| 46 | 54 | |
| 55 | + /** |
|
| 56 | + * @param integer $iApproved |
|
| 57 | + * @param string $sUpdatedDate |
|
| 58 | + */ |
|
| 47 | 59 | public function update($iCommentId, $iRecipientId, $iSenderId, $sComment, $iApproved, $sUpdatedDate, $sTable) |
| 48 | 60 | { |
| 49 | 61 | $sTable = CommentCore::checkTable($sTable); |
@@ -11,7 +11,8 @@ |
||
| 11 | 11 | namespace PH7; |
| 12 | 12 | defined('PH7') or exit('Restricted access'); |
| 13 | 13 | |
| 14 | -use PH7\Framework\Layout\Html\Design, PH7\Framework\Util\Various; |
|
| 14 | +use PH7\Framework\Layout\Html\Design; |
|
| 15 | +use PH7\Framework\Util\Various; |
|
| 15 | 16 | |
| 16 | 17 | abstract class Api |
| 17 | 18 | { |
@@ -11,19 +11,18 @@ |
||
| 11 | 11 | namespace PH7; |
| 12 | 12 | defined('PH7') or exit('Restricted access'); |
| 13 | 13 | |
| 14 | -use |
|
| 15 | -PH7\Framework\File\Import, |
|
| 16 | -PH7\Framework\Date\CDateTime, |
|
| 17 | -PH7\Framework\Config\Config, |
|
| 18 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 19 | -PH7\Framework\Ip\Ip, |
|
| 20 | -PH7\Framework\File\File, |
|
| 21 | -PH7\Framework\Util\Various, |
|
| 22 | -PH7\Framework\Session\Session, |
|
| 23 | -PH7\Framework\Registry\Registry, |
|
| 24 | -PH7\Framework\Mvc\Request\Http as HttpRequest, |
|
| 25 | -PH7\Framework\Geo\Ip\Geo, |
|
| 26 | -PH7\Framework\Mvc\Router\Uri; |
|
| 14 | +use PH7\Framework\File\Import; |
|
| 15 | +use PH7\Framework\Date\CDateTime; |
|
| 16 | +use PH7\Framework\Config\Config; |
|
| 17 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 18 | +use PH7\Framework\Ip\Ip; |
|
| 19 | +use PH7\Framework\File\File; |
|
| 20 | +use PH7\Framework\Util\Various; |
|
| 21 | +use PH7\Framework\Session\Session; |
|
| 22 | +use PH7\Framework\Registry\Registry; |
|
| 23 | +use PH7\Framework\Mvc\Request\Http as HttpRequest; |
|
| 24 | +use PH7\Framework\Geo\Ip\Geo; |
|
| 25 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 27 | 26 | |
| 28 | 27 | class Google extends Api implements IApi |
| 29 | 28 | { |
@@ -11,15 +11,14 @@ |
||
| 11 | 11 | namespace PH7; |
| 12 | 12 | defined('PH7') or exit('Restricted access'); |
| 13 | 13 | |
| 14 | -use |
|
| 15 | -PH7\Framework\File\Import, |
|
| 16 | -PH7\Framework\Date\CDateTime, |
|
| 17 | -PH7\Framework\Config\Config, |
|
| 18 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 19 | -PH7\Framework\Ip\Ip, |
|
| 20 | -PH7\Framework\Util\Various, |
|
| 21 | -PH7\Framework\Geo\Ip\Geo, |
|
| 22 | -PH7\Framework\Mvc\Router\Uri; |
|
| 14 | +use PH7\Framework\File\Import; |
|
| 15 | +use PH7\Framework\Date\CDateTime; |
|
| 16 | +use PH7\Framework\Config\Config; |
|
| 17 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 18 | +use PH7\Framework\Ip\Ip; |
|
| 19 | +use PH7\Framework\Util\Various; |
|
| 20 | +use PH7\Framework\Geo\Ip\Geo; |
|
| 21 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 23 | 22 | |
| 24 | 23 | class Microsoft extends Api |
| 25 | 24 | { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | /** |
| 116 | 116 | * Authenticate user with Twitter. |
| 117 | 117 | * |
| 118 | - * @return bool Authentication successful. |
|
| 118 | + * @return boolean|null Authentication successful. |
|
| 119 | 119 | */ |
| 120 | 120 | public function auth() |
| 121 | 121 | { |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | /** |
| 289 | 289 | * Obtain an access token from Twitter. |
| 290 | 290 | * |
| 291 | - * @return bool Returns FALSE if request failed. |
|
| 291 | + * @return null|false Returns FALSE if request failed. |
|
| 292 | 292 | */ |
| 293 | 293 | private function _getAccessToken() |
| 294 | 294 | { |
@@ -12,16 +12,15 @@ |
||
| 12 | 12 | namespace PH7; |
| 13 | 13 | defined('PH7') or exit('Restricted access'); |
| 14 | 14 | |
| 15 | -use |
|
| 16 | -PH7\Framework\File\Import, |
|
| 17 | -PH7\Framework\Date\CDateTime, |
|
| 18 | -PH7\Framework\Config\Config, |
|
| 19 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 20 | -PH7\Framework\Ip\Ip, |
|
| 21 | -PH7\Framework\File\File, |
|
| 22 | -PH7\Framework\Util\Various, |
|
| 23 | -PH7\Framework\Geo\Ip\Geo, |
|
| 24 | -PH7\Framework\Mvc\Router\Uri; |
|
| 15 | +use PH7\Framework\File\Import; |
|
| 16 | +use PH7\Framework\Date\CDateTime; |
|
| 17 | +use PH7\Framework\Config\Config; |
|
| 18 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 19 | +use PH7\Framework\Ip\Ip; |
|
| 20 | +use PH7\Framework\File\File; |
|
| 21 | +use PH7\Framework\Util\Various; |
|
| 22 | +use PH7\Framework\Geo\Ip\Geo; |
|
| 23 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 25 | 24 | |
| 26 | 25 | class Twitter extends Api implements IApi |
| 27 | 26 | { |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Mvc\Model\DbConfig, PH7\Framework\Mail\Mail; |
|
| 10 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 11 | +use PH7\Framework\Mail\Mail; |
|
| 11 | 12 | |
| 12 | 13 | class Contact extends Core |
| 13 | 14 | { |