PHP 클래스 HippoPHP\Hippo\File

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

보호된 프로퍼티들

프로퍼티 타입 설명
$encoding string Encoding of the file.
$filename string Filename.
$lines array Lines of the file.
$source string Source code within the file.

공개 메소드들

메소드 설명
__construct ( string $filename = null, string $source = null, string $encoding = 'UTF-8' ) : File Create a new file representation.
getEncoding ( ) : string Return the file encoding.
getFilename ( ) : string Return the filename.
getLines ( ) : array Return the individual array of lines.
getSource ( ) : string Return the source of the file.

비공개 메소드들

메소드 설명
buildLinesFromSource ( string $source ) : array
extractNextLine ( string $source, array $eols, string &$eolUsed ) : string

메소드 상세

__construct() 공개 메소드

Create a new file representation.
public __construct ( string $filename = null, string $source = null, string $encoding = 'UTF-8' ) : File
$filename string
$source string
$encoding string
리턴 File

getEncoding() 공개 메소드

Return the file encoding.
public getEncoding ( ) : string
리턴 string

getFilename() 공개 메소드

Return the filename.
public getFilename ( ) : string
리턴 string

getLines() 공개 메소드

Return the individual array of lines.
public getLines ( ) : array
리턴 array

getSource() 공개 메소드

Return the source of the file.
public getSource ( ) : string
리턴 string

프로퍼티 상세

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

Encoding of the file.
protected string $encoding
리턴 string

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

Filename.
protected string $filename
리턴 string

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

Lines of the file.
protected array $lines
리턴 array

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

Source code within the file.
protected string $source
리턴 string