Cheetah
ChBaseCmtsView.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbCmts' );
9 ch_import('ChWsbPaginate');
10 
15 {
18 
19  function __construct( $sSystem, $iId, $iInit = 1 )
20  {
21  ChWsbCmts::__construct( $sSystem, $iId, $iInit );
22  if (empty($sSystem) || !$this->_aSystem)
23  return;
24 
25  $this->_sJsObjName = 'oCmts' . ucfirst($sSystem) . $iId;
26  $this->_oPaginate = new ChWsbPaginate(array(
27  'page_url' => 'javascript:void(0);',
28  'start' => 0,
29  'count' => $this->_oQuery->getObjectCommentsCount($this->getId(), 0),
30  'per_page' => $this->getPerView(),
31  'sorting' => $this->_sOrder,
32  'per_page_step' => 2,
33  'per_page_interval' => 3,
34  'on_change_page' => $this->_sJsObjName . '.changePage(this, {start}, {per_page})',
35  'on_change_per_page' => $this->_sJsObjName . '.changePerPage(this)',
36  'on_change_sorting' => $this->_sJsObjName . '.changeOrder(this)',
37  'info' => false,
38  ));
39  $this->_sStylePrefix = isset($this->_aSystem['root_style_prefix']) ? $this->_aSystem['root_style_prefix'] : 'cmt';
40 
41  $GLOBALS['oSysTemplate']->addJsTranslation('_sys_txt_cmt_loading');
42  }
43 
47  function getCommentsFirst ()
48  {
49  $sPaginate = $this->getPaginate();
50 
51  return $GLOBALS['oSysTemplate']->parseHtmlByName('cmts_main.html', array(
52  'html_id' => $this->_sSystem . '-' . $this->getId(),
53  'top_controls' => $this->_getBrowse(),
54  'list' => $this->getComments (0, $this->_sOrder),
55  'ch_if:show_paginate' => array(
56  'condition' => $sPaginate !== "",
57  'content' => array(
58  'content' => $sPaginate
59  )
60  ),
61  'ch_if:show_post' => array(
62  'condition' => $this->isPostReplyAllowed(),
63  'content' => array(
64  'content' => $this->_getPostReplyBox()
65  )
66  ),
67  'js_code' => $this->getCmtsInit(),
68  ));
69  }
70 
76  function getComments ($iCmtsParentId = 0, $sCmtOrder = 'asc', $iStart = 0, $iPerPage = -1)
77  {
78  if($iCmtsParentId == 0 && $iPerPage == -1)
79  $iPerPage = $this->getPerView();
80 
81  $sRet = '<ul class="cmts">';
82 
83  $aCmts = $this->getCommentsArray ($iCmtsParentId, $sCmtOrder, $iStart, $iPerPage);
84  if (!$aCmts)
85  $sRet .= '<li class="cmt-no">' . _t('_There are no comments yet') . '</li>';
86  else {
87  $i = 0;
88  foreach ($aCmts as $k => $r) {
89  $sAnchor = $this->_getAnchor($r['cmt_id']);
90 
91  $sClass = '';
92  if($r['cmt_rated'] == -1 || $r['cmt_rate'] < $this->_aSystem['viewing_threshold']) {
93  $sRet .= '<li id="cmt' . $r['cmt_id'] . '-hidden" class="cmt-replacement">';
94  $sRet .= _t('_hidden_comment', getNickName($r['cmt_author_id'])) . ' ' . ($r['cmt_replies'] > 0 ? _t('_Show N replies', $r['cmt_replies']) . '. ' : '') . '<a href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.showReplacement(' . $r['cmt_id'] . ')">' . _t('_show_replacement') . '</a>.';
95  if($this->isRatable())
96  $sRet .= $this->_getRateBox($r);
97  $sRet .= '</li>';
98 
99  $sClass = ' cmt-hidden';
100  }
101 
102  $isOwnComment = $r['cmt_author_id'] == $this->_getAuthorId();
103  if ($isOwnComment)
104  $sClass .= ' cmt-mine';
105 
106  $sRet .= '<li id="cmt' . $r['cmt_id'] . '" class="cmt' . $sClass . '"><a id="' . $sAnchor . '" name="' . $sAnchor . '"></a>';
107 
108  $sRet .= '<div class="cmt-cont">';
109  $sRet .= $this->_getAuthorIcon($r);
110 
111  $sRet .= '<table class="cmt-balloon ch-def-round-corners-with-border">';
112  $sRet .= $this->_getCommentHeadBox($r);
113  $sRet .= '<tr class="cmt-cont">' . $this->_getCommentBodyBox($r) . '</tr>';
114 
115  $sRet .= $this->_getActionsBox ($r, false);
116  $sRet .= '</table>';
117 
118  if($this->isRatable())
119  $sRet .= $this->_getRateBox($r);
120  $sRet .= '</div></li>';
121  }
122  }
123  $sRet .= '</ul>';
124 
125  return $sRet;
126  }
127 
134  function getComment($iCmtId, $sType = 'new')
135  {
136  $r = $this->getCommentRow ($iCmtId);
137 
138  $sAnchor = $this->_getAnchor($iCmtId);
139 
140  $sRet = $sClass = '';
141  if($r['cmt_rated'] == -1 || $r['cmt_rate'] < $this->_aSystem['viewing_threshold']) {
142  $sRet .= '<li id="cmt' . $r['cmt_id'] . '-hidden" class="cmt-replacement">';
143  $sRet .= _t('_hidden_comment', $r['cmt_author_name']) . ' ' . ($r['cmt_replies'] > 0 ? _t('_Show N replies', $r['cmt_replies']) . '. ' : '') . '<a href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.showReplacement(' . $r['cmt_id'] . ')">' . _t('_show_replacement') . '</a>.';
144  if($this->isRatable())
145  $sRet .= $this->_getRateBox($r);
146  $sRet .= '</li>';
147 
148  $sClass = ' cmt-hidden';
149  }
150 
151  $sRet .= '<li id="cmt' . $r['cmt_id'] . '" class="cmt cmt-mine cmt-just-posted' . $sClass . '"><a id="' . $sAnchor . '" name="' . $sAnchor . '"></a>';
152  $sRet .= '<div class="cmt-cont">';
153 
154  if($this->isRatable())
155  $sRet .= $this->_getRateBox($r);
156 
157  $sRet .= $this->_getAuthorIcon($r);
158  $sRet .= '<table class="cmt-balloon ch-def-round-corners-with-border">';
159  $sRet .= $this->_getCommentHeadBox($r);
160  $sRet .= '<tr class="cmt-cont">' . $this->_getCommentBodyBox($r) . '</tr>';
161  $sRet .= $this->_getActionsBox ($r, true);
162  $sRet .= '</table>';
163  return $sRet;
164  }
165  function getPaginate($iStart = -1, $iPerPage = -1)
166  {
167  return $this->_oPaginate->getPaginate($iStart, $iPerPage);
168  }
169  function getForm($sType, $iParentId)
170  {
171  return $this->_getPostReplyBox($sType, $iParentId);
172  }
173  function getActions($iCmtId, $sType = 'reply')
174  {
175  $aParams = array(
176  'cmt_id' => $iCmtId,
177  'cmt_replies' => $this->_oQuery->getObjectCommentsCount($this->getId(), 0),
178  'cmt_type' => $sType
179  );
180 
181  $sRet = '<div class="cmt-replies">';
182  if($aParams['cmt_replies'])
183  $sRet .= $this->_getRepliesBox($aParams);
184  $sRet .= '</div>';
185 
186  $sRet .= '<div class="cmt-post-reply-to">';
187  if($this->isPostReplyAllowed())
188  $sRet .= $this->_getPostReplyBoxTo($aParams);
189  $sRet .= '</div>';
190 
191  $sRet .= '<div class="clear_both">&nbsp;</div>';
192  return $sRet;
193  }
194 
200  function getExtraCss ()
201  {
202  $GLOBALS['oSysTemplate']->addCss(array('cmts.css', 'cmts_phone.css'));
203  }
204 
210  function getExtraJs ()
211  {
212  $GLOBALS['oSysTemplate']->addJs('ChWsbCmts.js');
213  $GLOBALS['oSysTemplate']->addJsTranslation(array(
214  '_Error occured',
215  '_Are_you_sure'
216  ));
217  }
218 
224  function getCmtsInit ()
225  {
226  $this->getExtraJs();
227  $this->getExtraCss();
228 
229  $aParams = array(
230  'sObjName' => $this->_sJsObjName,
231  'sBaseUrl' => CH_WSB_URL_ROOT,
232  'sSystem' => $this->getSystemName(),
233  'sSystemTable' => $this->_aSystem['table_cmts'],
234  'iAuthorId' => $this->_getAuthorId(),
235  'iObjId' => $this->getId(),
236  'sOrder' => $this->getOrder(),
237  'sDefaultErrMsg' => _t('_Error occured'),
238  'sConfirmMsg' => _t('_Are_you_sure'),
239  'sAnimationEffect' => $this->_aSystem['animation_effect'],
240  'sAnimationSpeed' => $this->_aSystem['animation_speed'],
241  'isEditAllowed' => $this->isEditAllowed() || $this->isEditAllowedAll() ? 1 : 0,
242  'isRemoveAllowed' => $this->isRemoveAllowed() || $this->isRemoveAllowedAll() ? 1 : 0,
243  'iAutoHideRootPostForm' => $this->iAutoHideRootPostForm,
244  'iGlobAllowHtml' => $this->iGlobAllowHtml == 1 ? 1 : 0,
245  'iSecsToEdit' => (int)$this->getAllowedEditTime(),
246  'oCmtElements' => $this->_aCmtElements
247  );
248  return $GLOBALS['oSysTemplate']->_wrapInTagJsCode("var " . $this->_sJsObjName . " = new ChWsbCmts(" . json_encode($aParams) . ");");
249  }
250 
254  function _getCommentHeadBox (&$a)
255  {
256  if ($a['cmt_author_id'] && $a['cmt_author_name'])
257  $sAuthor = '<a href="' . getProfileLink($a['cmt_author_id']) . '" class="cmt-author">' . getNickName($a['cmt_author_id']) . '</a>';
258  else
259  $sAuthor = _t('_Anonymous');
260 
261  $sRet = '<tr class="cmt-head ch-def-font-small"><td class="' . $this->_sStylePrefix . '-head-l">&nbsp;</td><td class="' . $this->_sStylePrefix . '-head-m">' . $sAuthor . ':</td><td class="' . $this->_sStylePrefix . '-head-r">&nbsp;</td></tr>';
262 
263  return $sRet;
264  }
265 
266  function _getCommentBodyBox(&$a)
267  {
268  return '
269  <td class="' . $this->_sStylePrefix . '-cont-l">&nbsp;</td>
270  <td class="' . $this->_sStylePrefix . '-cont-m">' .
271  ($this->_aSystem['is_mood'] ? '<div class="cmt-mood">' . _t($this->_aMoodText[$a['cmt_mood']]) . '</div>' : '') .
272  '<div class="cmt-body">' . $this->_prepareTextForOutput($a['cmt_text']) . '</div>
273  </td>
274  <td class="' . $this->_sStylePrefix . '-cont-r">&nbsp;</td>';
275  }
276 
277  function _getRateBox(&$a)
278  {
279  $sClass = '';
280  if ($a['cmt_rated'] || $a['cmt_rate'] < $this->_aSystem['viewing_threshold'])
281  $sClass = ' cmt-rate-disabled';
282 
283  return '
284  <div class="cmt-rate'.$sClass.'">
285  <div class="cmt-points">'._t( (1 == $a['cmt_rate'] || -1 == $a['cmt_rate']) ? '_N point' : '_N points', $a['cmt_rate']).'</div>
286  <div class="cmt-buttons"><a title="'._t('_Thumb Up').'" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.cmtRate(this);" id="cmt-pos-'.$a['cmt_id'].'" class="cmt-pos"><i class="sys-icon plus-circle"></i></a><a title="'._t('_Thumb Down').'" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.cmtRate(this);" id="cmt-neg-'.$a['cmt_id'].'" class="cmt-neg"><i class="sys-icon minus-circle"></i></a></div>
287  <div class="clear_both">&nbsp;</div>
288  </div>';
289  }
290 
291  function _getActionsBox(&$a, $isJustPosted)
292  {
293  $n = $this->getAllowedEditTime();
294  $isEditAllowedPermanently = ($a['cmt_author_id'] == $this->_getAuthorId() && $this->isEditAllowed()) || $this->isEditAllowedAll();
295  $isRemoveAllowedPermanently = ($a['cmt_author_id'] == $this->_getAuthorId() && $this->isRemoveAllowed()) || $this->isRemoveAllowedAll();
296 
297  $sAgo = $a['cmt_ago'];
298 
299  $sBaseUrl = $this->getBaseUrl();
300  if(!empty($sBaseUrl))
301  $sAgo = '<a href="' . $sBaseUrl . '#' . $this->_getAnchor($a['cmt_id']) . '">' . $sAgo . '</a>';
302 
303  $sRet = '<tr id="cmt-jp-'.$a['cmt_id'].'" class="cmt-foot ch-def-font-small"><td class="' . $this->_sStylePrefix . '-cont-l">&nbsp;</td><td class="' . $this->_sStylePrefix . '-cont-m">';
304  $sRet .= '<span class="cmt-posted-ago">' . $sAgo . '</span>';
305 
306  if($this->_aSystem['is_mood'])
307  $sRet .= '<span class="sys-bullet"></span><span class="cmt-mood-text">' . _t($this->_aMoodText[$a['cmt_mood']]) . '</span>';
308 
309  if($isRemoveAllowedPermanently)
310  $sRet .= '<span class="sys-bullet"></span><a class="cmt-comment-manage-delete" title="' . _t('_Delete') . '" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.cmtRemove(this, \'' . $a['cmt_id'] . '\'); return false;">'._t('_Delete').'</a>';
311 
312  if((($isJustPosted && $n) || $isEditAllowedPermanently) && strpos($a['cmt_text'], 'video_comments') === false)
313  $sRet .= '<span class="sys-bullet"></span><a class="cmt-comment-manage-edit" title="'._t('_Edit').'" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.cmtEdit(this, \'' . $a['cmt_id'] . '\'); return false;">'._t('_Edit').'</a>';
314 
315  if($a['cmt_replies'])
316  $sRet .= '<span class="sys-bullet"></span>' . $this->_getRepliesBox($a);
317 
318  if(!$isJustPosted && $this->isPostReplyAllowed())
319  $sRet .= '<span class="sys-bullet"></span>' . $this->_getPostReplyBoxTo($a);
320 
321  if ($isJustPosted && $n && !$isEditAllowedPermanently)
322  $sRet .= '<span class="sys-bullet"></span>' . _t('_edit_available_for_N_seconds', $n);
323 
324  $sRet .= '</td><td class="' . $this->_sStylePrefix . '-cont-r">&nbsp;</td></tr>';
325  return $sRet;
326  }
327  function _getRepliesBox(&$a)
328  {
329  $bComments = isset($a['cmt_type']) && $a['cmt_type'] == 'comment';
330  $sClassPrefix = $bComments ? 'cmt-comments' : 'cmt-replies';
331 
332  $sCmtReplies = '<span class="' . $sClassPrefix . '-count">' . $a['cmt_replies'] . '</span>';
333 
334  $sContentShow = _t(($bComments ? '_Show N comments' : '_Show N replies'), $sCmtReplies);
335  $sContentHide = _t(($bComments ? '_Hide N comments' : '_Hide N replies'), $sCmtReplies);
336 
337  $sRet = '';
338  $sRet .= '<a class="' . $sClassPrefix . ' ' . $sClassPrefix . '-show" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.toggleCmts(this, \'' . $a['cmt_id'] . '\'); return false;">' . $sContentShow . '</a>';
339  $sRet .= '<a class="' . $sClassPrefix . ' ' . $sClassPrefix . '-hide" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.toggleCmts(this, \'' . $a['cmt_id'] . '\'); return false;">' . $sContentHide . '</a>';
340 
341  return $sRet;
342  }
343  function _getPostReplyBoxTo(&$a)
344  {
345  $sContent = _t(isset($a['cmt_type']) && $a['cmt_type'] == 'comment' ? '_Comment to this comment' : '_Reply to this comment');
346  return '<a class="cmt-reply-toggle" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.toggleReply(this, \''.$a['cmt_id'].'\'); return false;">' . $sContent . '</a>';
347  }
348  function _getPostReplyBox($sType = 'comment', $iCmtParentId = 0)
349  {
350  if($sType == 'comment')
351  $sSwitcher = '<a class="cmt-post-reply-text inactive" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)"><i class="sys-icon pencil"></i>&#160;' . _t('_Add Your Comment') . '</a>' . (getSettingValue("video_comments", "status", "main") == "enabled" ? '<a class="cmt-post-reply-video" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)"><i class="sys-icon film"></i>&#160;' . _t('_Record Your Comment') . '</a>' : '');
352  else if($sType == 'reply')
353  $sSwitcher = '<a class="cmt-post-reply-text inactive" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)"><i class="sys-icon pencil"></i>&#160;' . _t('_Reply as text') . '</a>' . (getSettingValue("video_comments", "status", "main") == "enabled" ? '<a class="cmt-post-reply-video" href="javascript:void(0)" onclick="javascript:' . $this->_sJsObjName . '.toggleType(this)"><i class="sys-icon film"></i>&#160;' . _t('_Reply as video') . '</a>' : '');
354 
355  return '
356  <div class="cmt-post-reply">
357  ' . $this->_getAuthorIcon(array('cmt_author_id' => $this->_getAuthorId())) . '
358  <table class="cmt-balloon ch-def-round-corners-with-border">
359  <tr class="cmt-head">
360  <td class="cmt-head-l">&nbsp;</td>
361  <td class="cmt-head-m">' . $sSwitcher . '<div class="clear_both"></div></td>
362  <td class="cmt-head-r">&nbsp;</td>
363  </tr>
364  <tr class="cmt-cont">
365  <td class="cmt-cont-l">&nbsp;</td>
366  <td class="cmt-cont-m">' . $this->_getFormBox('post', array('parent_id' => $iCmtParentId)) . '</td>
367  <td class="cmt-cont-r">&nbsp;</td>
368  </tr>
369  <tr class="cmt-foot">
370  <td class="cmt-foot-l">&nbsp;</td>
371  <td class="cmt-foot-m">&nbsp;</td>
372  <td class="cmt-foot-r">&nbsp;</td>
373  </tr>
374  </table>
375  </div>';
376  }
377  function _getFormBox($sType, $aCmt = array())
378  {
379  $iCmtId = !empty($aCmt['id']) ? (int)$aCmt['id'] : 0;
380  $iCmtParentId = !empty($aCmt['parent_id']) ? (int)$aCmt['parent_id'] : 0;
381  $sCmtText = !empty($aCmt['text']) ? $this->_prepareTextForEdit($aCmt['text']) : '';
382 
383  $sTextareaId = $this->_sSystem . "_cmt_" . $sType . "_textarea_" . $this->_iId . "_";
384  switch($sType) {
385  case 'post':
386  $sFunction = "submitComment(this)";
387  $sTextareaId .= $iCmtParentId;
388  break;
389 
390  case 'edit':
391  $sFunction = "updateComment(this, '" . $iCmtId . "')";
392  $sTextareaId .= $iCmtId;
393  break;
394  }
395 
396  if($this->_aSystem['is_mood'])
397  $sMood = '
398  <div class="cmt-post-reply-mood">
399  <div class="cmt-post-mood-ctl"><input type="radio" name="CmtMood" value="1" id="' . $this->_sSystem . '-mood-positive" /></div>
400  <div class="cmt-post-mood-lbl"><label for="' . $this->_sSystem . '-mood-positive">' . _t('_Comment Positive') . '</label></div>
401  <div class="cmt-post-mood-ctl"><input type="radio" name="CmtMood" value="-1" id="' . $this->_sSystem . '-mood-negative" /></div>
402  <div class="cmt-post-mood-lbl"><label for="' . $this->_sSystem . '-mood-negative">' . _t('_Comment Negative') . '</label></div>
403  <div class="cmt-post-mood-ctl"><input type="radio" name="CmtMood" value="0" id="' . $this->_sSystem . '-mood-neutral" checked="checked" /></div>
404  <div class="cmt-post-mood-lbl"><label for="' . $this->_sSystem . '-mood-neutral">' . _t('_Comment Neutral') . '</label></div>
405  <div class="clear_both">&nbsp;</div>
406  </div>';
407 
408  $sContent = '
409  <form name="cmt-post-reply" onsubmit="' . $this->_sJsObjName . '.' . $sFunction . '; return false;">
410  <input type="hidden" name="CmtParent" value="' . $iCmtParentId . '" />
411  <input type="hidden" name="CmtType" value="text" />
412  <div class="cmt-post-reply-text">
413  <textarea class="cmt-text-' . $sType . ' ch-def-round-corners-with-border" id="' . $sTextareaId . '" name="CmtText">' . $sCmtText . '</textarea>
414  </div>
415  <div class="cmt-post-reply-video">' . getApplicationContent('video_comments', 'recorder', array('user' => $this->_getAuthorId(), 'password' => $this->_getAuthorPassword(), 'extra' => implode('_', array($this->_sSystem . '-' . $this->getId(), $iCmtParentId))), true) . '</div>
416  <div class="cmt-post-reply-post"><button class="ch-btn ch-btn-small" type="submit">' . _t('_Submit Comment') . '</button></div>
417  ' . $sMood . '
418  </form>';
419 
420  if($this->iGlobAllowHtml == 1) {
421  ch_import('ChWsbEditor');
422  $oEditor = ChWsbEditor::getObjectInstance();
423  $sContent .= $oEditor ? $oEditor->attachEditor ('#' . $sTextareaId, CH_EDITOR_MINI, $this->bDynamic) : '';
424  }
425 
426  return $sContent;
427  }
428  function _getAuthorIcon ($a)
429  {
430  global $oFunctions;
431  if (!$a['cmt_author_id'] || !getProfileInfo($a['cmt_author_id'])) {
432  if (!@include_once (CH_DIRECTORY_PATH_MODULES . 'cheetah/avatar/include.php'))
433  return '';
434  return '<div class="thumbnail_block thumbnail_block_icon" style="float:none;"><div class="thumbnail_image"><img class="thumbnail_image_file ch-def-thumbnail ch-def-shadow ch-img-retina" src="' . $oFunctions->getSexPic('', 'small') . '" /></div></div>';
435  } else {
436  return $oFunctions->getMemberIcon($a['cmt_author_id']);
437  }
438  }
439  function _getBrowse()
440  {
441  return $GLOBALS['oSysTemplate']->parseHtmlByName('cmts_top_controls.html', array(
442  'js_object' => $this->_sJsObjName,
443  'sorting' => $this->_oPaginate->getSorting(array('asc' => '_oldest first', 'desc' => '_newest first')),
444  'expand_all' => _t('_expand all'),
445  'pages' => $this->_oPaginate->getPages()
446  ));
447  }
448 }
ChWsbCmts\_prepareTextForOutput
_prepareTextForOutput($s)
Definition: ChWsbCmts.php:670
ChWsbCmts\getOrder
getOrder()
Definition: ChWsbCmts.php:243
ChWsbCmts\isRemoveAllowedAll
isRemoveAllowedAll()
Definition: ChWsbCmts.php:407
ChBaseCmtsView\_getCommentBodyBox
_getCommentBodyBox(&$a)
Definition: ChBaseCmtsView.php:266
ChBaseCmtsView\getExtraJs
getExtraJs()
Definition: ChBaseCmtsView.php:210
ChWsbCmts\isEditAllowedAll
isEditAllowedAll()
Definition: ChWsbCmts.php:401
ChBaseCmtsView\_getBrowse
_getBrowse()
Definition: ChBaseCmtsView.php:439
ChBaseCmtsView\getActions
getActions($iCmtId, $sType='reply')
Definition: ChBaseCmtsView.php:173
post
post($sTable, $sId, $sAuthor, $sParent, $sMood, $sFileId)
Definition: customFunctions.inc.php:8
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbCmts\isRatable
isRatable()
Definition: ChWsbCmts.php:277
enabled
if(!defined("WIDGET_STATUS_ENABLED")) define("WIDGET_STATUS_ENABLED" enabled
Definition: constants.inc.php:17
php
ChBaseCmtsView\getPaginate
getPaginate($iStart=-1, $iPerPage=-1)
Definition: ChBaseCmtsView.php:165
$iId
$iId
Definition: license.php:15
ChWsbCmts\getId
getId()
Definition: ChWsbCmts.php:228
ChWsbCmts\_getAnchor
_getAnchor($iId)
Definition: ChWsbCmts.php:691
ChBaseCmtsView\_getRateBox
_getRateBox(&$a)
Definition: ChBaseCmtsView.php:277
ChWsbCmts\isPostReplyAllowed
isPostReplyAllowed($isPerformAction=false)
Definition: ChWsbCmts.php:368
ChWsbCmts\getCommentRow
getCommentRow($iCmtId)
Definition: ChWsbCmts.php:321
ChBaseCmtsView\getComments
getComments($iCmtsParentId=0, $sCmtOrder='asc', $iStart=0, $iPerPage=-1)
Definition: ChBaseCmtsView.php:76
$iPerPage
else $iPerPage
Definition: browse.php:61
void
if the work is an executable linked with the with the complete machine readable work that uses the as object code and or source so that the user can modify the Library and then relink to produce a modified executable containing the modified rather than copying library functions into the if the user installs as long as the modified version is interface compatible with the version that the work was made with c Accompany the work with a written valid for at least three to give the same user the materials specified in for a charge no more than the cost of performing this distribution d If distribution of the work is made by offering access to copy from a designated offer equivalent access to copy the above specified materials from the same place e Verify that the user has already received a copy of these materials or that you have already sent this user a copy For an the required form of the work that uses the Library must include any data and utility programs needed for reproducing the executable from it as a special the materials to be distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system Such a contradiction means you cannot use both them and the Library together in an executable that you distribute You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities not covered by this and distribute such a combined provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise and provided that you do these two uncombined with any other library facilities This must be distributed under the terms of the Sections above b Give prominent notice with the combined library of the fact that part of it is a work based on the and explaining where to find the accompanying uncombined form of the same work You may not link or distribute the Library except as expressly provided under this License Any attempt otherwise to link or distribute the Library is void
Definition: license.txt:352
ChBaseCmtsView\__construct
__construct( $sSystem, $iId, $iInit=1)
Definition: ChBaseCmtsView.php:19
ChBaseCmtsView\_getActionsBox
_getActionsBox(&$a, $isJustPosted)
Definition: ChBaseCmtsView.php:291
ChBaseCmtsView
Definition: ChBaseCmtsView.php:15
show
a choreographic work or entertainment in dumb show
Definition: license.txt:19
ChWsbCmts\getPerView
getPerView()
Definition: ChWsbCmts.php:287
ChWsbCmts
Definition: ChWsbCmts.php:99
ChWsbCmts\getCommentsArray
getCommentsArray($iCmtParentId, $sCmtOrder, $iStart=0, $iCount=-1)
Definition: ChWsbCmts.php:316
$sType
$sType
Definition: actions.inc.php:11
edit
if(!defined("BOARD_TYPE_EDIT")) define("BOARD_TYPE_EDIT" edit
Definition: constants.inc.php:14
comment
HTML AllowedCommentsRegexp which if it matches the body of a comment
Definition: HTML.AllowedCommentsRegexp.txt:6
ChWsbCmts\isRemoveAllowed
isRemoveAllowed($isPerformAction=false)
Definition: ChWsbCmts.php:390
ChBaseCmtsView\_getPostReplyBoxTo
_getPostReplyBoxTo(&$a)
Definition: ChBaseCmtsView.php:343
getNickName
getNickName( $ID='')
Definition: profiles.inc.php:461
with
that in the case of a Adaptation or at a minimum such credit will if a credit for all contributing authors of the Adaptation or Collection then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors For the avoidance of You may only use the credit required by this Section for the purpose of attribution in the manner set out above by exercising Your rights under this You may not implicitly or explicitly assert or imply any connection with
Definition: license.txt:44
ChWsbPaginate
Definition: ChWsbPaginate.php:69
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
ChWsbCmts\getBaseUrl
getBaseUrl()
Definition: ChWsbCmts.php:257
ChBaseCmtsView\_getPostReplyBox
_getPostReplyBox($sType='comment', $iCmtParentId=0)
Definition: ChBaseCmtsView.php:348
getProfileLink
getProfileLink( $iID, $sLinkAdd='')
Definition: profiles.inc.php:484
ChWsbCmts\_getAuthorId
_getAuthorId()
Definition: ChWsbCmts.php:632
ChBaseCmtsView\_getAuthorIcon
_getAuthorIcon($a)
Definition: ChBaseCmtsView.php:428
ChBaseCmtsView\getForm
getForm($sType, $iParentId)
Definition: ChBaseCmtsView.php:169
ChBaseCmtsView\getComment
getComment($iCmtId, $sType='new')
Definition: ChBaseCmtsView.php:134
ChWsbCmts\getSystemName
getSystemName()
Definition: ChWsbCmts.php:238
ChBaseCmtsView\$_oPaginate
$_oPaginate
Definition: ChBaseCmtsView.php:16
ChBaseCmtsView\getCmtsInit
getCmtsInit()
Definition: ChBaseCmtsView.php:224
ChBaseCmtsView\getCommentsFirst
getCommentsFirst()
Definition: ChBaseCmtsView.php:47
ChBaseCmtsView\_getRepliesBox
_getRepliesBox(&$a)
Definition: ChBaseCmtsView.php:327
ChWsbCmts\__construct
__construct( $sSystem, $iId, $iInit=1)
Definition: ChWsbCmts.php:121
ChBaseCmtsView\getExtraCss
getExtraCss()
Definition: ChBaseCmtsView.php:200
ChWsbCmts\isEditAllowed
isEditAllowed($isPerformAction=false)
Definition: ChWsbCmts.php:379
ChBaseCmtsView\$_sStylePrefix
$_sStylePrefix
Definition: ChBaseCmtsView.php:17
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10
ChWsbCmts\getAllowedEditTime
getAllowedEditTime()
Definition: ChWsbCmts.php:282
ChBaseCmtsView\_getCommentHeadBox
_getCommentHeadBox(&$a)
Definition: ChBaseCmtsView.php:254
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10