当前位置: 首页>>代码示例>>PHP>>正文


PHP BxDolProfile::BxDolProfile方法代码示例

本文整理汇总了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;
     }
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:39,代码来源:BxDolProfileView.php

示例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;
     }
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:23,代码来源:BxDolProfileView.php

示例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;
     }
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:51,代码来源:BxBaseProfileView.php


注:本文中的BxDolProfile::BxDolProfile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。