PHP 클래스 Phalcon\Build\Generator_File_PhalconH

파일 보기 프로젝트 열기: phalcon/cphalcon

보호된 프로퍼티들

프로퍼티 타입 설명
$outputFile string Path of generated phalcon.h file
$sourceDir string Directory with Phalcon source code

공개 메소드들

메소드 설명
__construct ( string $sourceDir, string $outputDir )
generate ( ) : array Create phalcon.h by processing phalcon.h in sources directory: - Remove all extern declarations - Replace #include with the direct file content Return list of header files that are included in the generated phalcon.h

보호된 메소드들

메소드 설명
appendFileAndReferencedHeaders ( resource $fileHandle, string $filePath ) : array Add source of $filePath, processing its content.
cleanExtern ( string $line ) : string Remove 'extern ' declaration from the source file line
getCleanHeaderFileContent ( string $file ) : string Return content of the header file, where comments like license notices are removed and no 'extern's present.
limitVisibilityOfPhalconFuncs ( ) Go through the generated file and put 'static' to all declarations of Phalcon-related functions

메소드 상세

__construct() 공개 메소드

public __construct ( string $sourceDir, string $outputDir )
$sourceDir string
$outputDir string

appendFileAndReferencedHeaders() 보호된 메소드

Also includes content of files, referenced from $filePath.
protected appendFileAndReferencedHeaders ( resource $fileHandle, string $filePath ) : array
$fileHandle resource
$filePath string
리턴 array

cleanExtern() 보호된 메소드

Remove 'extern ' declaration from the source file line
protected cleanExtern ( string $line ) : string
$line string
리턴 string

generate() 공개 메소드

Create phalcon.h by processing phalcon.h in sources directory: - Remove all extern declarations - Replace #include with the direct file content Return list of header files that are included in the generated phalcon.h
public generate ( ) : array
리턴 array

getCleanHeaderFileContent() 보호된 메소드

Overall, removing comments is not necessary for putting result to a merged file, we just don't want to put license notices for every included file.
protected getCleanHeaderFileContent ( string $file ) : string
$file string
리턴 string

limitVisibilityOfPhalconFuncs() 보호된 메소드

Go through the generated file and put 'static' to all declarations of Phalcon-related functions

프로퍼티 상세

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

Path of generated phalcon.h file
protected string $outputFile
리턴 string

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

Directory with Phalcon source code
protected string $sourceDir
리턴 string