Cheetah
ChBaseCommunicator.php
Go to the documentation of this file.
1 <?php
2 
8  require_once( CH_DIRECTORY_PATH_CLASSES . 'ChWsbCommunicator.php');
9 
11  {
12  // contain all needed templates for Html rendering ;
14 
15  var $sMembersFlagExtension = '.gif';
16 
30  {
31  parent::__construct($aCommunicatorSettings);
32 
33  //fill array with tamplates name;
34  $this -> aUsedTemplates = array (
35  'communicator_page' => 'communicator_page.html',
36  'communicator_page_fr' => 'communicator_page_fr.html',
37  'communicator_settings' => 'communicator_settings.html',
38  'communicator_settings_page' => 'communicator_page_top_settings.html',
39  );
40  }
41 
42  function getCss()
43  {
44  return array('communicator_page.css');
45  }
46 
47  function getJs()
48  {
49  return array('communicator_page.js');
50  }
51 
56  {
58 
59  // set default mode ;
60  if(!$this -> aCommunicatorSettings['communicator_mode'])
61  $this -> aCommunicatorSettings['communicator_mode'] = 'friends_list';
62 
63  // generate the top page toggle ellements ;
64  $aTopToggleItems = array (
65  'friends_list' => _t('_sys_cnts_txt_frients'),
66  'hotlist_requests' => _t('_sys_cnts_txt_favorites'),
67  'blocks_requests' => _t('_sys_cnts_txt_blocked')
68  );
69 
70  $sRequest = CH_WSB_URL_ROOT . 'communicator.php?';
71  foreach( $aTopToggleItems AS $sKey => $sValue ) {
72  $aTopToggleEllements[$sValue] = array (
73  'href' => $sRequest . '&communicator_mode=' . $sKey . ($sKey != 'friends_list' ? '&person_switcher=from' : ''),
74  'dynamic' => true,
75  'active' => ($this -> aCommunicatorSettings['communicator_mode'] == $sKey ),
76  );
77  }
78 
79  // return processed html data;
80  $sOutputHtml = $this -> getProcessingRows();
81 
82  // return generated template ;
83  return array($sOutputHtml, $aTopToggleEllements, array(), true);
84  }
85 
89  function getBlockCode_FriendRequests($bShowEmpty = true)
90  {
92 
93  // set default mode ;
94  $this -> aCommunicatorSettings['communicator_mode'] = 'friends_requests';
95  $this -> aCommunicatorSettings['person_switcher'] = 'to';
96 
97  // return processed html data;
98  $sOutputHtml = $this -> getProcessingRows($bShowEmpty);
99 
100  $this -> aCommunicatorSettings['communicator_mode'] = '';
101 
102  if(empty($sOutputHtml))
103  return '';
104 
105  // return generated template ;
106  return array($sOutputHtml, array(), array(), true);
107  }
108 
114  function getProcessingRows($bShowEmpty = true)
115  {
117 
118  // ** init some needed variables ;
119  $sPageContent = $sActionsList = $sSettings ='';
120  $bShowSettings = false;
121  $aRows = array();
122 
123  $sEmptyMessage = '_Empty';
124  $sRowsTemplName = $this -> aUsedTemplates['communicator_page'];
125  $sJsObject = $this->_getJsObject();
126 
127  // define the member's nickname;
128  $sMemberNickName = getNickName($this -> aCommunicatorSettings['member_id']);
129 
130  // all primary language's keys ;
131  $aLanguageKeys = array (
132  'author' => _t( '_Author' ),
133  'type' => _t( '_Type' ),
134  'date' => _t( '_Date' ),
135  'click_sort' => _t( '_Click to sort' ),
136  'from_me' => _t( '_From' ) . ' ' . $sMemberNickName,
137  'to_me' => _t( '_To' ) . ' ' . $sMemberNickName,
138  'accept' => _t( '_sys_cnts_btn_fr_accept' ),
139  'reject' => _t( '_sys_cnts_btn_fr_reject' ),
140  'delete' => _t( '_Delete' ),
141  'back_invite' => _t( '_Back Invite' ),
142  'fave' => _t( '_sys_cnts_btn_fave' ),
143  'visitor' => _t( '_Visitor' ),
144  'unblock' => _t( '_Unblock' ),
145  'block' => _t( '_Block' ),
146  'select' => _t( '_Select' ),
147  'all' => _t( '_All' ),
148  'none' => _t( '_None' ),
149  'read' => _t( '_Read' ),
150  'unread' => _t( '_Unread' ),
151  );
152 
153  // get all requests from DB ;
154  switch($this -> aCommunicatorSettings['communicator_mode']) {
155  case 'friends_requests' :
156  $sEmptyMessage = '_sys_cnts_msg_fr_empty';
157  $sRowsTemplName = $this -> aUsedTemplates['communicator_page_fr'];
158 
159  $aTypes = array (
160  'from' => _t( '_MEMBERS_INVITE_YOU_FRIENDLIST' ),
161  'to' => _t( '_MEMBERS_YOU_INVITED_FRIENDLIST' )
162  );
163  $aRows = $this -> getRequests( 'sys_friend_list', $aTypes, ' AND `sys_friend_list`.`Check` = 0 ');
164  break;
165 
166  case 'hotlist_requests' :
167  $aTypes = array
168  (
169  'from' => _t( '_MEMBERS_YOU_HOTLISTED' ),
170  'to' => _t( '_MEMBERS_YOU_HOTLISTED_BY' )
171  );
172  $aRows = $this -> getRequests( 'sys_fave_list', $aTypes);
173  break;
174 
175  case 'greeting_requests' :
176  $aTypes = array
177  (
178  'from' => _t( '_MEMBERS_YOU_KISSED' ),
179  'to' => _t( '_MEMBERS_YOU_KISSED_BY' ),
180  'specific_key' => '_N times',
181  );
182  $aRows = $this -> getRequests( 'sys_greetings', $aTypes, null, 'Number' );
183  break;
184 
185  case 'blocks_requests' :
186  $aTypes = array
187  (
188  'from' => _t( '_MEMBERS_YOU_BLOCKLISTED' ),
189  'to' => _t( '_MEMBERS_YOU_BLOCKLISTED_BY' ),
190  );
191  $aRows = $this -> getRequests( 'sys_block_list', $aTypes );
192  break;
193 
194  case 'friends_list' :
195  $aTypes = array
196  (
197  'from' => _t( '_Friend list' ),
198  'to' => _t( '_Friend list' ),
199  );
200  $aRows = $this -> getRequests( 'sys_friend_list', $aTypes,
201  ' AND `sys_friend_list`.`Check` = 1 OR ( `sys_friend_list`.`ID` = ' . $this -> aCommunicatorSettings['member_id']
202  . ' AND `sys_friend_list`.`Check` = 1 )' );
203  break;
204 
205  default :
206  $aTypes = array
207  (
208  'from' => _t( '_MEMBERS_INVITE_YOU_FRIENDLIST' ),
209  'to' => _t( '_MEMBERS_YOU_INVITED_FRIENDLIST' )
210  );
211  $aRows = $this -> getRequests( 'sys_friend_list', $aTypes, ' AND `sys_friend_list`.`Check` = 0 ' );
212  }
213 
214  if(empty($aRows) && !$bShowEmpty)
215  return '';
216 
217  // ** Generate the page's pagination ;
218 
219  // fill array with all necessary `get` parameters ;
220  $aNeededParameters = array( 'communicator_mode', 'person_switcher', 'sorting' );
221 
222  // collect the page's URL ;
223  $sRequest = CH_WSB_URL_ROOT . 'communicator.php?action=get_page' ;
224 
225  // add additional parameters ;
226  foreach( $aNeededParameters AS $sKey ) {
227  $sRequest .= ( array_key_exists($sKey, $this -> aCommunicatorSettings) and $this -> aCommunicatorSettings[$sKey] )
228  ? '&' . $sKey . '=' . $this -> aCommunicatorSettings[$sKey]
229  : null ;
230  }
231 
232  $sCuttedUrl = $sRequest;
233  $sRequest .= '&page={page}&per_page={per_page}';
234 
235  // create the pagination object ;
236  $oPaginate = new ChWsbPaginate (
237  array (
238  'page_url' => $sRequest,
239  'count' => $this -> iTotalRequestsCount,
240  'per_page' => $this -> aCommunicatorSettings['per_page'],
241  'sorting' => $this -> aCommunicatorSettings['sorting'],
242  'page' => $this -> aCommunicatorSettings['page'],
243 
244  'on_change_page' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".getPaginatePage('{$sRequest}')",
245  'on_change_per_page' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".getPage(this.value, '{$sCuttedUrl}')",
246  )
247  );
248 
249  $sPagination = $oPaginate -> getPaginate();
250 
251  // process received requests;
252  if ( $aRows ) {
253  $iIndex = 1;
254  foreach($aRows AS $iKey => $aItems ) {
255  // if member not a visitor ;
256  if ( $aItems['member_id'] ) {
257  // ** some member's information ;
258  $aProfileInfo = getProfileInfo ($aItems['member_id']);
259 
260  // member's Icon ;
261  $sMemberIcon = get_member_thumbnail($aProfileInfo['ID'], 'left', ($this -> aCommunicatorSettings['communicator_mode'] != 'friends_requests'));
262 
263  // member's profile location ;
264  $sMemberLocation = getProfileLink ($aProfileInfo['ID']);
265 
266  // member's nickname ;
267  $sMemberNickName = getNickName($aProfileInfo['ID']);
268 
269  // define the member's age ;
270  $sMemberAge = ( $aProfileInfo['DateOfBirth'] != "0000-00-00" )
271  ? _t( "_y/o", age($aProfileInfo['DateOfBirth']) )
272  : null;
273 
274  // define the member's country, sex, etc ... ;
275  $sMemberCountry = $aProfileInfo['Country'];
276  $sMemberFlag = $site['flags'] . strtolower($sMemberCountry) . $this -> sMembersFlagExtension;
277  $sMemberSexImg = $oFunctions -> genSexIcon($aProfileInfo['Sex']);
278 
279  if ( $sMemberCountry )
280  $sMemberCountryFlag = '<img src="' . $sMemberFlag . '" alt="' . $sMemberCountry . '" />';
281 
282  $iMemberMutualFriends = getMutualFriendsCount($aItems['member_id'], getLoggedId());
283  } else {
284  // ** if it's a visitor
285 
286  // member's Icon ;
287  $sMemberIcon = $aLanguageKeys['visitor'];
288 
289  // member's profile location ;
290  $sMemberLocation = null;
291  $sMemberSexImg = null;
292  $sMemberAge = null;
293  $sMemberCountryFlag = null;
294  $sMemberCountry = null;
295  }
296 
297  $aProcessedRows[] = array (
298  'js_object' => $sJsObject,
299 
300  'row_value' => $aItems['member_id'],
301  'member_icon' => $sMemberIcon,
302  'member_nick_name' => $sMemberNickName,
303 
304  // define the profile page location ;
305  'member_location' => $sMemberLocation ? '<a href="' . $sMemberLocation . '">' . $sMemberNickName . '</a>' : '',
306 
307  // define the member's sex ;
308  'member_sex_img' => $sMemberSexImg ? ' <img src="' . $sMemberSexImg . '" alt="' . $aProfileInfo['Sex'] . '" />' : '',
309 
310  'member_age' => $sMemberAge,
311  'member_flag' => $sMemberCountryFlag,
312  'member_country' => $sMemberCountry,
313 
314  'member_mutual_friends' => _t('_sys_cnts_txt_mutual_friends', ($iMemberMutualFriends > 0 ? $iMemberMutualFriends : _t('_sys_cnts_txt_mf_no'))),
315 
316  'type' => $aItems['type'],
317  'message_date' => $aItems['date'],
318  );
319 
320  $iIndex++;
321  }
322 
323  // init the sort toggle ellements ;
324  switch ( $this -> aCommunicatorSettings['sorting'] ) {
325  case 'date' :
326  $aSortToglleElements['date_sort_toggle'] = 'toggle_up';
327  break;
328  case 'date_desc' :
329  $aSortToglleElements['date_sort_toggle'] = 'toggle_down';
330  break;
331  case 'author' :
332  $aSortToglleElements['author_sort_toggle'] = 'toggle_up';
333  break;
334  case 'author_desc' :
335  $aSortToglleElements['author_sort_toggle'] = 'toggle_down';
336  break;
337  }
338 
339  // define the actions list for type of requests;
340  switch( $this -> aCommunicatorSettings['communicator_mode'] ) {
341  case 'friends_requests':
342  // define the person mode ;
343  switch ($this -> aCommunicatorSettings['person_switcher']) {
344  case 'to' :
345  $aForm = array (
346  'form_attrs' => array (
347  'action' => null,
348  'method' => 'post',
349  ),
350 
351  'params' => array (
352  'remove_form' => true,
353  'db' => array(
354  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
355  ),
356  ),
357 
358  'inputs' => array(
359  'actions' => array(
360  'type' => 'input_set',
361  'colspan' => 'true',
362  0 => array (
363  'type' => 'button',
364  'value' => $aLanguageKeys['accept'],
365  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'accept_friends_request', 'getProcessingRows')"),
366  ),
367  1 => array (
368  'type' => 'button',
369  'value' => $aLanguageKeys['reject'],
370  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'reject_friends_request', 'getProcessingRows')"),
371  ),
372  )
373  )
374  );
375 
377  $sActionsList = $oForm -> getCode();
378  break;
379 
380  case 'from' :
381  $aForm = array (
382  'form_attrs' => array (
383  'action' => null,
384  'method' => 'post',
385  ),
386 
387  'params' => array (
388  'remove_form' => true,
389  'db' => array(
390  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
391  ),
392  ),
393 
394  'inputs' => array(
395  'actions' => array(
396  'type' => 'input_set',
397  'colspan' => 'true',
398  0 => array (
399  'type' => 'button',
400  'value' => $aLanguageKeys['back_invite'],
401  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'delete_friends_request', 'getProcessingRows')"),
402  ),
403  )
404  )
405  );
406 
408  $sActionsList = $oForm -> getCode();
409  break;
410  }
411  break;
412 
413  case 'hotlist_requests' :
414  // define the person mode ;
415  switch ($this -> aCommunicatorSettings['person_switcher']) {
416  case 'to' :
417  $aForm = array (
418  'form_attrs' => array (
419  'action' => null,
420  'method' => 'post',
421  ),
422 
423  'params' => array (
424  'remove_form' => true,
425  'db' => array(
426  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
427  ),
428  ),
429 
430  'inputs' => array(
431  'actions' => array(
432  'type' => 'input_set',
433  'colspan' => 'true',
434  0 => array (
435  'type' => 'button',
436  'value' => $aLanguageKeys['fave'],
437  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'add_hotlist', 'getProcessingRows')"),
438  ),
439  )
440  )
441  );
442 
444  $sActionsList = $oForm -> getCode();
445  break;
446 
447  case 'from' :
448  $aForm = array (
449  'form_attrs' => array (
450  'action' => null,
451  'method' => 'post',
452  ),
453 
454  'params' => array (
455  'remove_form' => true,
456  'db' => array(
457  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
458  ),
459  ),
460 
461  'inputs' => array(
462  'actions' => array(
463  'type' => 'input_set',
464  'colspan' => 'true',
465  0 => array (
466  'type' => 'button',
467  'value' => $aLanguageKeys['delete'],
468  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'delete_hotlisted', 'getProcessingRows')"),
469  ),
470  )
471  )
472  );
473 
475  $sActionsList = $oForm -> getCode();
476  break;
477  }
478  break;
479 
480  case 'greeting_requests' :
481  $aForm = array (
482  'form_attrs' => array (
483  'action' => null,
484  'method' => 'post',
485  ),
486 
487  'params' => array (
488  'remove_form' => true,
489  'db' => array(
490  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
491  ),
492  ),
493 
494  'inputs' => array(
495  'actions' => array(
496  'type' => 'input_set',
497  'colspan' => 'true',
498  0 => array (
499  'type' => 'button',
500  'value' => $aLanguageKeys['delete'],
501  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'delete_greetings', 'getProcessingRows')"),
502  ),
503  )
504  )
505  );
506 
508  $sActionsList = $oForm -> getCode();
509  break;
510 
511  case 'blocks_requests' :
512  // define the person mode ;
513  switch ($this -> aCommunicatorSettings['person_switcher']) {
514  case 'to' :
515  $aForm = array (
516  'form_attrs' => array (
517  'action' => null,
518  'method' => 'post',
519  ),
520 
521  'params' => array (
522  'remove_form' => true,
523  'db' => array(
524  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
525  ),
526  ),
527 
528  'inputs' => array(
529  'actions' => array(
530  'type' => 'input_set',
531  'colspan' => 'true',
532  0 => array (
533  'type' => 'button',
534  'value' => $aLanguageKeys['block'],
535  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'block_unblocked', 'getProcessingRows')"),
536  ),
537  )
538  )
539  );
540 
542  $sActionsList = $oForm -> getCode();
543  break;
544 
545  case 'from' :
546  $aForm = array (
547  'form_attrs' => array (
548  'action' => null,
549  'method' => 'post',
550  ),
551 
552  'params' => array (
553  'remove_form' => true,
554  'db' => array(
555  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
556  ),
557  ),
558 
559  'inputs' => array(
560  'actions' => array(
561  'type' => 'input_set',
562  'colspan' => 'true',
563  0 => array (
564  'type' => 'button',
565  'value' => $aLanguageKeys['unblock'],
566  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'unblock_blocked', 'getProcessingRows')"),
567  ),
568  )
569  )
570  );
571 
573  $sActionsList = $oForm -> getCode();
574  break;
575  }
576  break;
577 
578  case 'friends_list' :
579  $aForm = array (
580  'form_attrs' => array (
581  'action' => null,
582  'method' => 'post',
583  ),
584 
585  'params' => array (
586  'remove_form' => true,
587  'db' => array(
588  'submit_name' => 'do_submit', // some filed name with non empty value to determine if the for was submitted,
589  ),
590  ),
591 
592  'inputs' => array(
593  'actions' => array(
594  'type' => 'input_set',
595  'colspan' => 'true',
596  0 => array (
597  'type' => 'button',
598  'value' => $aLanguageKeys['delete'],
599  'attrs' => array('onclick' => "if ( typeof " . $sJsObject . " != 'undefined' ) " . $sJsObject . ".sendAction(this, 'communicator_container', 'reject_friends_request', 'getProcessingRows')"),
600  ),
601  )
602  )
603  );
604 
606  $sActionsList = $oForm -> getCode();
607  break;
608  }
609 
610  // processing the sort link ;
611  $sSortLink = getClearedParam('sorting', $sCuttedUrl) . '&page=' . $this -> aCommunicatorSettings['page']
612  . '&per_page=' . $this -> aCommunicatorSettings['per_page'] ;
613 
614  // fill array with template keys ;
615  $aTemplateKeys = array (
616  'js_object' => $sJsObject,
617  'from_me' => $aLanguageKeys['from_me'],
618  'to_me' => $aLanguageKeys['to_me'],
619  'selected_from' => ($this -> aCommunicatorSettings['person_switcher'] == 'from') ? 'checked="checked"' : null,
620  'selected_to' => ($this -> aCommunicatorSettings['person_switcher'] == 'to') ? 'checked="checked"' : null,
621 
622  'page_sort_url' => $sSortLink,
623  'sort_date' => ( $this -> aCommunicatorSettings['sorting'] == 'date' ) ? 'date_desc' : 'date',
624  'sort_author' => ( $this -> aCommunicatorSettings['sorting'] == 'author' ) ? 'author_desc' : 'author',
625 
626  'date_sort_toggle_ellement' => $aSortToglleElements['date_sort_toggle'],
627  'author_sort_toggle_ellement' => $aSortToglleElements['author_sort_toggle'],
628 
629  'author' => $aLanguageKeys['author'],
630  'type' => $aLanguageKeys['type'],
631  'date' => $aLanguageKeys['date'],
632  'click_sort' => $aLanguageKeys['click_sort'],
633 
634  // contain received processed rows ;
635  'ch_repeat:rows' => $aProcessedRows,
636 
637  // contain current actions ;
638  'actions_list' => $sActionsList,
639 
640  'current_page' => 'communicator.php',
641  'select' => $aLanguageKeys['select'],
642  'all_messages' => $aLanguageKeys['all'],
643  'none_messages' => $aLanguageKeys['none'],
644  'read_messages' => $aLanguageKeys['read'],
645  'unread_messages' => $aLanguageKeys['unread'],
646 
647  'page_pagination' => $sPagination,
648  );
649 
650  $sPageContent = $oSysTemplate -> parseHtmlByName($sRowsTemplName, $aTemplateKeys);
651  } else
652  $sPageContent = $oSysTemplate -> parseHtmlByName('default_margin.html', array(
653  'content' => MsgBox(_t($sEmptyMessage))
654  ));
655 
656  // ** Process the final template ;
657 
658  // generate the page settings ;
659  if ($bShowSettings) {
660  $aTemplateKeys = array (
661  'js_object' => $sJsObject,
662  'from_me' => $aLanguageKeys['from_me'],
663  'to_me' => $aLanguageKeys['to_me'],
664  'selected_from' => ($this -> aCommunicatorSettings['person_switcher'] == 'from') ? 'checked="checked"' : null,
665  'selected_to' => ($this -> aCommunicatorSettings['person_switcher'] == 'to') ? 'checked="checked"' : null,
666  );
667 
668  $sSettings = $oSysTemplate -> parseHtmlByName( $this -> aUsedTemplates['communicator_settings'], $aTemplateKeys );
669  }
670 
671  // fill array with template keys ;
672  $aTemplateKeys = array (
673  'js_object' => $sJsObject,
674  'current_page' => 'communicator.php',
675  'communicator_mode' => $this -> aCommunicatorSettings['communicator_mode'],
676  'communicator_person_mode' => $this -> aCommunicatorSettings['person_switcher'],
677  'error_message' => ch_js_string(_t( '_Please, select at least one message' )),
678  'sure_message' => ch_js_string(_t( '_Are_you_sure' )),
679 
680  'settings' => $sSettings,
681 
682  'page_content' => $sPageContent,
683  );
684 
685  return $oSysTemplate -> parseHtmlByName( $this -> aUsedTemplates['communicator_settings_page'], $aTemplateKeys );
686  }
687  }
$sPageContent
if(0===strcasecmp($_SERVER['REQUEST_METHOD'], 'POST')) $sPageContent
Definition: mobileBuilder.php:105
ChTemplFormView
Definition: ChTemplFormView.php:11
$sOutputHtml
$sOutputHtml
Definition: browse.php:86
ChBaseCommunicator\getBlockCode_FriendRequests
getBlockCode_FriendRequests($bShowEmpty=true)
Definition: ChBaseCommunicator.php:89
MsgBox
MsgBox($sText, $iTimer=0)
Definition: design.inc.php:175
ChWsbCommunicator
Definition: ChWsbCommunicator.php:13
ch_js_string
ch_js_string($mixedInput, $iQuoteType=CH_ESCAPE_STR_AUTO)
Definition: utils.inc.php:1294
ChWsbCommunicator\_getJsObject
_getJsObject()
Definition: ChWsbCommunicator.php:354
ChBaseCommunicator\getProcessingRows
getProcessingRows($bShowEmpty=true)
Definition: ChBaseCommunicator.php:114
getMutualFriendsCount
getMutualFriendsCount($iId, $iProfileId)
Definition: profiles.inc.php:347
php
ChWsbPageView\getCode
getCode()
Definition: ChWsbPageView.php:261
ChWsbCommunicator\$aCommunicatorSettings
$aCommunicatorSettings
Definition: ChWsbCommunicator.php:18
ChBaseCommunicator
Definition: ChBaseCommunicator.php:11
ChBaseCommunicator\$sMembersFlagExtension
$sMembersFlagExtension
Definition: ChBaseCommunicator.php:15
ChBaseCommunicator\__construct
__construct($aCommunicatorSettings)
Definition: ChBaseCommunicator.php:29
$oFunctions
$oFunctions
Definition: ChTemplFunctions.php:20
$oForm
$oForm
Definition: host_tools.php:42
$iIndex
$iIndex
Definition: bottom_menu_compose.php:142
and
and
Definition: license.txt:18
get_member_thumbnail
get_member_thumbnail($ID, $float, $bGenProfLink=false, $sForceSex='visitor', $aOnline=array())
Definition: design.inc.php:165
getLoggedId
getLoggedId()
Definition: profiles.inc.php:32
getNickName
getNickName( $ID='')
Definition: profiles.inc.php:461
$site
$site['ver']
Definition: version.inc.php:8
ChWsbPaginate
Definition: ChWsbPaginate.php:69
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
getProfileLink
getProfileLink( $iID, $sLinkAdd='')
Definition: profiles.inc.php:484
age
age( $birth_date)
Definition: profiles.inc.php:119
ChBaseCommunicator\getJs
getJs()
Definition: ChBaseCommunicator.php:47
ChWsbCommunicator\getRequests
getRequests( $sTableName, &$aRequestTypes, $sAdditionalParam=null, $sAdditionalField=null)
Definition: ChWsbCommunicator.php:72
$aProfileInfo
$aProfileInfo
Definition: short_profile_info.php:23
default
Attr AllowedFrameTargets _parent and _top Values should be as validation will be done in a case sensitive manner despite W3C s recommendation XHTML Strict does not permit the target attribute so this directive will have no effect in that doctype XHTML does not enable the Target module by default
Definition: Attr.AllowedFrameTargets.txt:10
getClearedParam
getClearedParam($sExceptParam, $sString)
Definition: utils.inc.php:1207
getProfileInfo
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
Definition: profiles.inc.php:249
ChBaseCommunicator\getCss
getCss()
Definition: ChBaseCommunicator.php:42
$aForm
$aForm
Definition: forgot.php:43
ChBaseCommunicator\$aUsedTemplates
$aUsedTemplates
Definition: ChBaseCommunicator.php:13
ChBaseCommunicator\getBlockCode_Connections
getBlockCode_Connections()
Definition: ChBaseCommunicator.php:55
$oSysTemplate
$oSysTemplate
Definition: params.inc.php:22
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7