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;
    }
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;
    }
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 ; }
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
Set protection on a cell range