PHP Класс Phalcon\Build\Generator_File_PhalconH

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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