PHP 클래스 Box\Spout\Writer\Common\Helper\CellHelper

파일 보기 프로젝트 열기: box/spout 1 사용 예제들

공개 메소드들

메소드 설명
getCellIndexFromColumnIndex ( integer $columnIndex ) : string Returns the cell index (base 26) associated to the base 10 column index.
isBoolean ( $value ) : boolean Returns whether the given value is boolean.
isEmpty ( $value ) : boolean
isNonEmptyString ( $value ) : boolean
isNumeric ( $value ) : boolean Returns whether the given value is numeric.

메소드 상세

getCellIndexFromColumnIndex() 공개 정적인 메소드

Excel uses A to Z letters for column indexing, where A is the 1st column, Z is the 26th and AA is the 27th. The mapping is zero based, so that 0 maps to A, B maps to 1, Z to 25 and AA to 26.
public static getCellIndexFromColumnIndex ( integer $columnIndex ) : string
$columnIndex integer The Excel column index (0, 42, ...)
리턴 string The associated cell index ('A', 'BC', ...)

isBoolean() 공개 정적인 메소드

"true"/"false" and 0/1 are not booleans.
public static isBoolean ( $value ) : boolean
$value
리턴 boolean Whether the given value is boolean

isEmpty() 공개 정적인 메소드

public static isEmpty ( $value ) : boolean
$value
리턴 boolean Whether the given value is considered "empty"

isNonEmptyString() 공개 정적인 메소드

public static isNonEmptyString ( $value ) : boolean
$value
리턴 boolean Whether the given value is a non empty string

isNumeric() 공개 정적인 메소드

A numeric value is from type "integer" or "double" ("float" is not returned by gettype).
public static isNumeric ( $value ) : boolean
$value
리턴 boolean Whether the given value is numeric