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


PHP QString::ObfuscateEmail方法代码示例

本文整理汇总了PHP中QString::ObfuscateEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP QString::ObfuscateEmail方法的具体用法?PHP QString::ObfuscateEmail怎么用?PHP QString::ObfuscateEmail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QString的用法示例。


在下文中一共展示了QString::ObfuscateEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Form_Create

 protected function Form_Create()
 {
     parent::Form_Create();
     $objPerson = Person::LoadByUsername(QApplication::PathInfo(0));
     if (!$objPerson) {
         QApplication::Redirect('/');
     }
     $this->mctPerson = new PersonMetaControl($this, $objPerson);
     $this->strPageTitle .= $objPerson->DisplayName;
     $this->lblRole = $this->mctPerson->lblPersonTypeId_Create();
     $this->lblRole->Name = 'Qcodo Role';
     if ($this->mctPerson->Person->DonatedFlag) {
         $this->lblRole->Text .= ' and Financial Contributor';
     }
     $this->lblName = $this->mctPerson->lblFirstName_Create();
     $this->lblName->Name = 'Name';
     $this->lblName->Text .= ' ' . $this->mctPerson->Person->LastName;
     $this->lblUsername = $this->mctPerson->lblUsername_Create();
     $this->lblEmail = $this->mctPerson->lblEmail_Create();
     $this->lblEmail->Text = QString::ObfuscateEmail($this->mctPerson->Person->Email);
     $this->lblEmail->HtmlEntities = false;
     $this->lblLocation = $this->mctPerson->lblLocation_Create();
     $this->lblUrl = $this->mctPerson->lblUrl_Create();
     $this->lblUrl->HtmlEntities = false;
     $this->lblRegistrationDate = $this->mctPerson->lblRegistrationDate_Create(null, 'MMMM D, YYYY');
     $this->lblRegistrationDate->Name = 'Member Since';
     // Add Visibility Logic
     $this->lblName->Visible = $this->mctPerson->Person->DisplayRealNameFlag;
     $this->lblEmail->Visible = $this->mctPerson->Person->DisplayEmailFlag;
     $this->lblLocation->Visible = $this->mctPerson->Person->Location;
     if (!$this->mctPerson->Person->Url) {
         $this->lblUrl->Visible = false;
     } else {
         $this->lblUrl->Text = sprintf('<a href="%s">%s</a>', $this->mctPerson->Person->Url, QApplication::HtmlEntities($this->mctPerson->Person->Url));
     }
     // If Is Owner of the Profile
     if ($this->IsOwner()) {
         $this->btnEdit = new RoundedLinkButton($this);
         $this->btnEdit->Text = 'Edit My Profile';
         $this->btnEdit->LinkUrl = '/profile/edit.php';
         $this->btnEdit->AddCssClass('roundedLinkGray');
         $this->btnEditAccount = new RoundedLinkButton($this);
         $this->btnEditAccount->Text = 'Edit My Account';
         $this->btnEditAccount->LinkUrl = '/profile/account.php';
         $this->btnEditAccount->AddCssClass('roundedLinkGray');
         $this->btnPassword = new RoundedLinkButton($this);
         $this->btnPassword->Text = 'Change My Password';
         $this->btnPassword->LinkUrl = '/profile/password.php';
         $this->btnPassword->AddCssClass('roundedLinkGray');
         $this->lblTimezone = $this->mctPerson->lblTimezoneId_Create();
         $this->lblTimezone->HtmlEntities = false;
         if (!$this->lblTimezone->Text) {
             $this->lblTimezone->Text = '<span class="meta">none selected</span>';
         }
         $this->lblOptInFlag = $this->mctPerson->lblOptInFlag_Create();
         // Otherwise, if is administrator
     } else {
         if (QApplication::IsLoginAdmin()) {
             $this->btnEdit = new RoundedLinkButton($this);
             $this->btnEdit->Text = 'Edit User\'s Profile';
             $this->btnEdit->LinkUrl = '/profile/edit.php/' . $this->mctPerson->Person->Username;
             $this->btnEdit->AddCssClass('roundedLinkGray');
             $this->btnEditAccount = new RoundedLinkButton($this);
             $this->btnEditAccount->Text = 'Edit User\'s Account';
             $this->btnEditAccount->LinkUrl = '/profile/account.php/' . $this->mctPerson->Person->Username;
             $this->btnEditAccount->AddCssClass('roundedLinkGray');
             $this->btnNullPassword = new RoundedLinkButton($this);
             $this->btnNullPassword->Text = 'Null User\'s Password';
             $this->btnNullPassword->LinkUrl = '#';
             $this->btnNullPassword->AddCssClass('roundedLinkGray');
             $this->btnNullPassword->AddAction(new QClickEvent(), new QConfirmAction('Are you SURE you want to NULL OUT this User\'s Password?'));
             $this->btnNullPassword->AddAction(new QClickEvent(), new QAjaxAction('btnNullPassword_Click'));
             $this->btnNullPassword->AddAction(new QClickEvent(), new QTerminateAction());
         }
     }
 }
开发者ID:qcodo,项目名称:qcodo-website,代码行数:76,代码来源:view.php


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