本文整理汇总了PHP中BxDolProfile::BxDolProfile方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolProfile::BxDolProfile方法的具体用法?PHP BxDolProfile::BxDolProfile怎么用?PHP BxDolProfile::BxDolProfile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BxDolProfile
的用法示例。
在下文中一共展示了BxDolProfile::BxDolProfile方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BxDolProfileView
function BxDolProfileView($ID)
{
global $site;
global $logged;
BxDolProfile::BxDolProfile($ID, 0);
//$this -> ID = $this -> _iProfileID;
$this->oTemplConfig = new BxTemplConfig($site);
$this->sColumnsOrder = getParam('profile_view_cols');
if ($this->_iProfileID) {
$this->getProfileData();
if ($this->_aProfile) {
if ($logged['member']) {
if ((int) $_COOKIE['memberID'] == $this->_iProfileID) {
$this->owner = true;
}
$iPFArea = 6;
} elseif ($logged['admin']) {
$iPFArea = 5;
} elseif ($logged['moderator']) {
$iPFArea = 7;
} else {
$iPFArea = 8;
}
$this->oPF = new BxDolProfileFields($iPFArea);
if (!$this->oPF->aBlocks) {
return false;
}
$this->aPFBlocks = $this->oPF->aBlocks;
//echoDbg( $this -> aPFBlocks );
if ($this->bCouple) {
$this->aCoupleMutualItems = $this->oPF->getCoupleMutualFields();
}
} else {
return false;
}
} else {
return false;
}
}
示例2: BxDolProfileView
function BxDolProfileView($ID)
{
global $site;
global $logged;
BxDolProfile::BxDolProfile($ID, 0);
//$this -> ID = $this -> _iProfileID;
$this->oTemplConfig = new BxTemplConfig($site);
$this->sColumnsOrder = getParam('profile_view_cols');
if ($this->_iProfileID) {
$this->getProfileData();
if ($this->_aProfile) {
if ($logged['member']) {
if ((int) $_COOKIE['memberID'] == $this->_iProfileID) {
$this->owner = true;
}
}
} else {
return false;
}
} else {
return false;
}
}
示例3: BxBaseProfileGenerator
function BxBaseProfileGenerator($ID)
{
global $site;
$this->aMutualFriends = array();
BxDolProfile::BxDolProfile($ID, 0);
$this->oVotingView = new BxTemplVotingView('profile', (int) $ID);
$this->oCmtsView = new BxDolCmtsProfile('profile', (int) $ID);
//$this->ID = $this->_iProfileID;
$this->oTemplConfig = new BxTemplConfig($site);
//$this->sColumnsOrder = getParam( 'profile_view_cols' );
//INSERT INTO `sys_options` VALUES('profile_view_cols', 'thin,thick', 0, 'Profile view columns order', 'digit', '', '', NULL, '');
if ($this->_iProfileID) {
$this->getProfileData();
if ($this->_aProfile) {
if (isMember()) {
$iMemberId = getLoggedId();
if ($iMemberId == $this->_iProfileID) {
$this->owner = true;
if ($_REQUEST['editable']) {
$this->bPFEditable = true;
$iPFArea = 2;
// Edit Owner
} else {
$iPFArea = isAdmin() ? 5 : 6;
}
// View Owner
} else {
$iPFArea = isAdmin() ? 5 : 6;
}
} elseif (isModerator()) {
$iPFArea = 7;
} else {
$iPFArea = 8;
}
$this->oPF = new BxDolProfileFields($iPFArea);
if (!$this->oPF->aBlocks) {
return false;
}
$this->aPFBlocks = $this->oPF->aBlocks;
if ($this->bCouple) {
$this->aCoupleMutualItems = $this->oPF->getCoupleMutualFields();
}
$this->iFriendsPerPage = (int) getParam('friends_per_page');
$this->FindMutualFriends($iMemberId, $_GET['page'], $_GET['per_page']);
} else {
return false;
}
} else {
return false;
}
}