Свойство | Тип | Описание | |
---|---|---|---|
$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 ( ) |
protected string $outputFile | ||
Результат | string |
protected string $sourceDir | ||
Результат | string |