PHP 클래스 SimpleExcel\Parser\BaseParser

저자: Faisalman
상속: implements SimpleExcel\Parser\IParser
파일 보기 프로젝트 열기: faisalman/simple-excel-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$file_extension string Defines valid file extension
$table_arr array Holds the parsed result

공개 메소드들

메소드 설명
__construct ( string $file_url = NULL )
getCell ( integer $row_num, integer $col_num, integer $val_only = true ) : array Get value of the specified cell
getColumn ( integer $col_num, boolean $val_only = TRUE ) : array Get data of the specified column as an array
getField ( boolean $val_only = TRUE ) : array Get data of all cells as an array
getRow ( integer $row_num, boolean $val_only = TRUE ) : array Get data of the specified row as an array
isCellExists ( integer $row_num, integer $col_num ) : boolean Check whether cell with specified row & column exists
isColumnExists ( integer $col_num ) : boolean Check whether a specified column exists
isFieldExists ( ) : boolean Check whether table exists
isFileReady ( string $file_path ) : boolean Check whether file exists, valid, and readable
isRowExists ( integer $row_num ) : boolean Check whether a specified row exists

메소드 상세

__construct() 공개 메소드

public __construct ( string $file_url = NULL )
$file_url string Path to file (optional)

getCell() 공개 메소드

Get value of the specified cell
public getCell ( integer $row_num, integer $col_num, integer $val_only = true ) : array
$row_num integer Row number
$col_num integer Column number
$val_only integer
리턴 array

getColumn() 공개 메소드

Get data of the specified column as an array
public getColumn ( integer $col_num, boolean $val_only = TRUE ) : array
$col_num integer Column number
$val_only boolean
리턴 array

getField() 공개 메소드

Get data of all cells as an array
public getField ( boolean $val_only = TRUE ) : array
$val_only boolean
리턴 array

getRow() 공개 메소드

Get data of the specified row as an array
public getRow ( integer $row_num, boolean $val_only = TRUE ) : array
$row_num integer Row number
$val_only boolean
리턴 array

isCellExists() 공개 메소드

Check whether cell with specified row & column exists
public isCellExists ( integer $row_num, integer $col_num ) : boolean
$row_num integer Row number
$col_num integer Column number
리턴 boolean

isColumnExists() 공개 메소드

Check whether a specified column exists
public isColumnExists ( integer $col_num ) : boolean
$col_num integer Column number
리턴 boolean

isFieldExists() 공개 메소드

Check whether table exists
public isFieldExists ( ) : boolean
리턴 boolean

isFileReady() 공개 메소드

Check whether file exists, valid, and readable
public isFileReady ( string $file_path ) : boolean
$file_path string Path to file
리턴 boolean

isRowExists() 공개 메소드

Check whether a specified row exists
public isRowExists ( integer $row_num ) : boolean
$row_num integer Row number
리턴 boolean

프로퍼티 상세

$file_extension 보호되어 있는 프로퍼티

Defines valid file extension
protected string $file_extension
리턴 string

$table_arr 보호되어 있는 프로퍼티

Holds the parsed result
protected array $table_arr
리턴 array