Cheetah
ChWsbSiteMapsProfiles.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbSiteMaps');
9 ch_import('ChWsbPrivacy');
10 
15 {
16  protected function __construct($aSystem)
17  {
18  parent::__construct($aSystem);
19 
20  $this->_aQueryParts = array (
21  'fields' => "`ID`, `DateLastEdit`", // fields list
22  'field_date' => "DateLastEdit", // date field name
23  'field_date_type' => "datetime", // date field type (or timestamp)
24  'table' => "`Profiles`", // table name
25  'join' => "", // join SQL part
26  'where' => "AND `Profiles`.`Status` = 'Active' AND `allow_view_to` = '" . CH_WSB_PG_ALL . "' AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`)", // SQL condition, without WHERE
27  'order' => " `DateLastNav` ASC ", // SQL order, without ORDER BY
28  );
29  }
30 
31  protected function _genUrl ($a)
32  {
33  return getProfileLink($a['ID']);
34  }
35 }
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
php
ChWsbSiteMaps
Definition: ChWsbSiteMaps.php:32
CH_WSB_PG_ALL
const CH_WSB_PG_ALL
Definition: ChWsbPrivacy.php:12
ChWsbSiteMapsProfiles\_genUrl
_genUrl($a)
Definition: ChWsbSiteMapsProfiles.php:31
getProfileLink
getProfileLink( $iID, $sLinkAdd='')
Definition: profiles.inc.php:484
ChWsbSiteMapsProfiles\__construct
__construct($aSystem)
Definition: ChWsbSiteMapsProfiles.php:16
ChWsbSiteMapsProfiles
Definition: ChWsbSiteMapsProfiles.php:15