本文整理匯總了PHP中BxDolProfile::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP BxDolProfile::__construct方法的具體用法?PHP BxDolProfile::__construct怎麽用?PHP BxDolProfile::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BxDolProfile
的用法示例。
在下文中一共展示了BxDolProfile::__construct方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
function __construct($ID)
{
global $site;
$this->aMutualFriends = array();
parent::__construct($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;
}
}