프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
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 |
public __construct ( string $sourceDir, string $outputDir ) | ||
$sourceDir | string | |
$outputDir | string |
protected appendFileAndReferencedHeaders ( resource $fileHandle, string $filePath ) : array | ||
$fileHandle | resource | |
$filePath | string | |
리턴 | array |
protected cleanExtern ( string $line ) : string | ||
$line | string | |
리턴 | string |
protected getCleanHeaderFileContent ( string $file ) : string | ||
$file | string | |
리턴 | string |
protected limitVisibilityOfPhalconFuncs ( ) |