Overview

Packages

  • JAMA
  • None
  • PHP
  • PHPExcel
    • CachedObjectStorage
    • Calculation
    • Cell
    • Chart
      • Renderer
    • Reader
      • Excel2007
      • Excel5
    • RichText
    • Settings
    • Shared
      • Escher
      • OLE
      • Trend
      • ZipArchive
    • Style
    • Worksheet
      • Drawing
    • Writer
      • 2007
      • CSV
      • Excel2007
      • Excel5
      • HTML
      • PDF

Classes

  • PHPExcel_Style
  • PHPExcel_Style_Alignment
  • PHPExcel_Style_Border
  • PHPExcel_Style_Borders
  • PHPExcel_Style_Color
  • PHPExcel_Style_Conditional
  • PHPExcel_Style_Fill
  • PHPExcel_Style_Font
  • PHPExcel_Style_NumberFormat
  • PHPExcel_Style_Protection
  • PHPExcel_Style_Supervisor
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class PHPExcel_Style_Protection

PHPExcel_Style_Protection

PHPExcel_Style_Supervisor
Extended by PHPExcel_Style_Protection implements PHPExcel_IComparable
Package: PHPExcel\Style
Category: PHPExcel
Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: LGPL
Located at controlador/include/phpexcel/PHPExcel/Style/Protection.php
Methods summary
public
# __construct( boolean $isSupervisor = FALSE, boolean $isConditional = FALSE )

Create a new PHPExcel_Style_Protection

Create a new PHPExcel_Style_Protection

Parameters

$isSupervisor

Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are

$isConditional

Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are

Overrides

PHPExcel_Style_Supervisor::__construct()
public PHPExcel_Style_Protection
# getSharedComponent( )

Get the shared style component for the currently active cell in currently active sheet. Only used for style supervisor

Get the shared style component for the currently active cell in currently active sheet. Only used for style supervisor

Returns

PHPExcel_Style_Protection
public array
# getStyleArray( array $array )

Build style array from subcomponents

Build style array from subcomponents

Parameters

$array

Returns

array
public PHPExcel_Style_Protection
# applyFromArray( array $pStyles = NULL )

Apply styles from array

Apply styles from array

$objPHPExcel->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray(
    array(
        'locked' => TRUE,
        'hidden' => FALSE
    )
);

Parameters

$pStyles
Array containing style information

Returns

PHPExcel_Style_Protection

Throws

PHPExcel_Exception
public string
# getLocked( )

Get locked

Get locked

Returns

string
public PHPExcel_Style_Protection
# setLocked( string $pValue = PHPExcel_Style_Protection::PROTECTION_INHERIT )

Set locked

Set locked

Parameters

$pValue

Returns

PHPExcel_Style_Protection
public string
# getHidden( )

Get hidden

Get hidden

Returns

string
public PHPExcel_Style_Protection
# setHidden( string $pValue = PHPExcel_Style_Protection::PROTECTION_INHERIT )

Set hidden

Set hidden

Parameters

$pValue

Returns

PHPExcel_Style_Protection
public string
# getHashCode( )

Get hash code

Get hash code

Returns

string
Hash code

Implementation of

PHPExcel_IComparable::getHashCode()
Methods inherited from PHPExcel_Style_Supervisor
__clone(), bindParent(), getActiveCell(), getActiveSheet(), getIsSupervisor(), getSelectedCells()
Constants summary
string PROTECTION_INHERIT

Protection styles

Protection styles

# 'inherit'
string PROTECTION_PROTECTED
# 'protected'
string PROTECTION_UNPROTECTED
# 'unprotected'
Properties summary
protected string $_locked

Locked

Locked

#
protected string $_hidden

Hidden

Hidden

#
Properties inherited from PHPExcel_Style_Supervisor
$_isSupervisor, $_parent
Autene API documentation generated by ApiGen