PHP 클래스 Phalcon\Build\Generator_File_PhalconC

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

보호된 프로퍼티들

프로퍼티 타입 설명
$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