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


PHP PHPExcel_Shared_PasswordHasher类代码示例

本文整理汇总了PHP中PHPExcel_Shared_PasswordHasher的典型用法代码示例。如果您正苦于以下问题:PHP PHPExcel_Shared_PasswordHasher类的具体用法?PHP PHPExcel_Shared_PasswordHasher怎么用?PHP PHPExcel_Shared_PasswordHasher使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: protectCells

 /**
  * Set protection on a cell range
  *
  * @param    string            $pRange                Cell (e.g. A1) or cell range (e.g. A1:E1)
  * @param    string            $pPassword            Password to unlock the protection
  * @param    boolean        $pAlreadyHashed    If the password has already been hashed, set this to true
  * @throws    PHPExcel_Exception
  * @return PHPExcel_Worksheet
  */
 public function protectCells($pRange = 'A1', $pPassword = '', $pAlreadyHashed = false)
 {
     // Uppercase coordinate
     $pRange = strtoupper($pRange);
     if (!$pAlreadyHashed) {
         $pPassword = PHPExcel_Shared_PasswordHasher::hashPassword($pPassword);
     }
     $this->_protectedCells[$pRange] = $pPassword;
     return $this;
 }
开发者ID:andrelotto,项目名称:EmailMarketing,代码行数:19,代码来源:Worksheet.php

示例2: setPassword

 /**
  * Set Password
  *
  * @param string 	$pValue
  * @param boolean 	$pAlreadyHashed If the password has already been hashed, set this to true
  */
 function setPassword($pValue = '', $pAlreadyHashed = false)
 {
     if (!$pAlreadyHashed) {
         $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
     }
     $this->_password = $pValue;
 }
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:13,代码来源:Protection.php

示例3: setWorkbookPassword

 /**
  * Set WorkbookPassword
  *
  * @param string 	$pValue
  * @param boolean 	$pAlreadyHashed If the password has already been hashed, set this to true
  * @return PHPExcel_DocumentSecurity
  */
 function setWorkbookPassword($pValue = '', $pAlreadyHashed = false)
 {
     if (!$pAlreadyHashed) {
         $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
     }
     $this->_workbookPassword = $pValue;
     return $this;
 }
开发者ID:mehulsbhatt,项目名称:sale_purchase_tracking,代码行数:15,代码来源:DocumentSecurity.php


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