PHP Класс Phalcon\Build\Generator_File_PhalconC

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

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

Свойство Тип Описание
$configDir string Directory with configuration files, used to setup process of generating phalcon.c
$outputFile string Path of generated phalcon.c file
$rootDir string Root directory of Phalcon
$skipFiles array List of files, which should not be included into generated phalcon.c
$sourceDir string Directory with Phalcon source code

Открытые методы

Метод Описание
__construct ( string $rootDir, string $sourceDir, string $configDir, string $outputDir )
generate ( array $alreadyIncludedHeaders = [] ) Generate phalcon.h

Защищенные методы

Метод Описание
addAllSourceFiles ( resource $fileHandler ) Recursively scan Phalcon sources and append content of all c-files to the generated file
addLicense ( resource $fileHandler ) Add license notice to the generated file
addPriorityFiles ( resource $fileHandler ) Add contents of the files, which must be put to the generated file before other source files
addStandardHeader ( resource $fileHandler ) Add manually-created header to the generated file
composeSkipFiles ( array $alreadyIncludedHeaders = [] ) Composes list of files, which should not be scanned and put into phalcon.c during recursive scan of the source directory
extractReferencedHeaders ( $files ) : array Scan files' content and extract referenced header files
getSortedSourceFilesToAppend ( string $path ) : array | boolean Recursively walk through source files and return them in a sorted order.
limitVisibilityOfPhalconFuncs ( ) Go through the generated file and put 'static' to all declarations of Phalcon-related functions

Приватные методы

Метод Описание
appendSource ( $fileHandler, $path ) Appends the source to phalcon.c, removing some directives, external symbol declarations and excessive comments

Описание методов

__construct() публичный метод

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

addAllSourceFiles() защищенный метод

Recursively scan Phalcon sources and append content of all c-files to the generated file
protected addAllSourceFiles ( resource $fileHandler )
$fileHandler resource

addLicense() защищенный метод

Add license notice to the generated file
protected addLicense ( resource $fileHandler )
$fileHandler resource

addPriorityFiles() защищенный метод

Add contents of the files, which must be put to the generated file before other source files
protected addPriorityFiles ( resource $fileHandler )
$fileHandler resource

addStandardHeader() защищенный метод

Add manually-created header to the generated file
protected addStandardHeader ( resource $fileHandler )
$fileHandler resource

composeSkipFiles() защищенный метод

Composes list of files, which should not be scanned and put into phalcon.c during recursive scan of the source directory
protected composeSkipFiles ( array $alreadyIncludedHeaders = [] )
$alreadyIncludedHeaders array

extractReferencedHeaders() защищенный метод

Scan files' content and extract referenced header files
protected extractReferencedHeaders ( $files ) : array
Результат array

generate() публичный метод

Generate phalcon.h
public generate ( array $alreadyIncludedHeaders = [] )
$alreadyIncludedHeaders array List of header files, which are already included in phalcon.h

getSortedSourceFilesToAppend() защищенный метод

Excludes unrelated files and the ones, which were already included by an other procedure.
protected getSortedSourceFilesToAppend ( string $path ) : array | boolean
$path string
Результат array | boolean

limitVisibilityOfPhalconFuncs() защищенный метод

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

Описание свойств

$configDir защищенное свойство

Directory with configuration files, used to setup process of generating phalcon.c
protected string $configDir
Результат string

$outputFile защищенное свойство

Path of generated phalcon.c file
protected string $outputFile
Результат string

$rootDir защищенное свойство

Root directory of Phalcon
protected string $rootDir
Результат string

$skipFiles защищенное свойство

List of files, which should not be included into generated phalcon.c
protected array $skipFiles
Результат array

$sourceDir защищенное свойство

Directory with Phalcon source code
protected string $sourceDir
Результат string