Property | Type | Description | |
---|---|---|---|
$_aliasManager | zephir\AliasManager | ||
$abstract | boolean | ||
$compiler | |||
$constants | zephir\ClassConstant[] | ||
$dependencyRank | integer | ||
$docBlock | array | ||
$eventsManager | zephir\EventsManager | ||
$extendsClass | string | ||
$extendsClassDefinition | |||
$external | boolean | ||
$final | boolean | ||
$implementedInterfaceDefinitions | |||
$interfaces | array | ||
$isBundled | boolean | ||
$isGeneratedConstructor | boolean | Whether the constructor was generated by zephir (-> no constructor existed previously) | |
$methods | |||
$name | string | ||
$namespace | string | ||
$originalNode | array | ||
$parsedDocblock | |||
$properties | |||
$shortName | string | ||
$type | string |
Method | Description | |
---|---|---|
__construct ( string $namespace, string $name, string $shortName = null ) | ClassDefinition | |
addConstant ( zephir\ClassConstant $constant ) | Adds a constant to the definition | |
addInitMethod ( zephir\StatementsBlock $statementsBlock ) | Creates the initialization method | |
addMethod ( |
Adds a method to the class definition | |
addProperty ( |
Adds a property to the definition | |
addStaticInitMethod ( zephir\StatementsBlock $statementsBlock ) | Creates the static initialization method | |
buildFromReflection ( ReflectionClass $class ) : |
Builds a class definition from reflection | |
checkInterfaceImplements ( |
Checks if a class implements an interface | |
compile ( zephir\CompilationContext $compilationContext ) | Compiles a class/interface | |
getAliasManager ( ) : zephir\AliasManager | ||
getCNamespace ( ) : string | Returns a valid namespace to be used in C-sources | |
getClassEntry ( zephir\CompilationContext $compilationContext = null ) : string | Returns the name of the zend_class_entry according to the class name | |
getClassEntryByClassName ( string $className, zephir\CompilationContext $compilationContext, boolean $check = true ) : string | Convert Class/Interface name to C ClassEntry | |
getCompleteName ( ) : string | Returns the class name including its namespace | |
getConstant ( string $constantName ) : boolean | zephir\ClassConstant | Returns a constant definition by its name | |
getConstants ( ) : zephir\ClassConstant[] | Returns all constants defined in the class | |
getDependencies ( ) | Calculate the dependency rank of the class based on its dependencies | |
getDependencyRank ( ) : integer | Returns the dependency rank for this class | |
getDocBlock ( ) : array | Returns the class/interface docBlock | |
getEventsManager ( ) : zephir\EventsManager | Get eventsManager for class definition | |
getExtendsClass ( ) : string | Returns the extended class | |
getExtendsClassDefinition ( ) : |
Returns the class definition related to the extended class | |
getExternalHeader ( ) : string | Returns an absolute location to the class header | |
getImplementedInterfaceDefinitions ( ) : |
Returns the class definition for the implemented interfaces | |
getImplementedInterfaces ( ) : array | Returns the implemented interfaces | |
getInitMethod ( ) : |
Returns the initialization method if any does exist | |
getLocalOrParentInitMethod ( ) : |
Returns the initialization method if any does exist | |
getMethod ( $methodName, boolean | true $checkExtends = true ) : boolean | |
Returns a method by its name | |
getMethods ( ) : |
Returns all methods defined in the class | |
getNCNamespace ( ) : string | Returns a valid namespace to be used in C-sources | |
getName ( ) : string | Returns the class name | |
getNamespace ( ) : string | Return the class namespace | |
getParsedDocBlock ( ) : DocBlock | Returns the parsed docBlock | |
getPossibleMethodName ( string $methodName ) : string | boolean | Tries to find the most similar name | |
getProperties ( ) : |
Returns all properties defined in the class | |
getProperty ( $propertyName ) : boolean | |
Returns a method definition by its name | |
getSCName ( string $namespace ) : string | Class name without namespace prefix for class registration | |
getShortName ( ) : string | Returns the class name without namespace | |
getStaticInitMethod ( ) : |
Returns the initialization method if any does exist | |
getType ( ) : string | Returns the class type | |
hasConstant ( string $name ) : boolean | Checks if class definition has a property | |
hasMethod ( $methodName ) : boolean | Checks if the class implements an specific name | |
hasProperty ( string $name ) : boolean | Checks if a class definition has a property | |
increaseDependencyRank ( integer $rank ) | A class definition calls this method to mark this class as a dependency of another | |
isAbstract ( ) : boolean | Checks whether the class is abstract or not | |
isBundled ( ) : boolean | Returns whether the class is bundled or not | |
isExternal ( ) : boolean | Returns whether the class is internal or not | |
isFinal ( ) : boolean | Checks whether the class is abstract or not | |
isGeneratedConstructor ( ) : boolean | Returns whether the constructor was generated by zephir | |
isInterface ( ) : boolean | Check if the class definition correspond to an interface | |
preCompile ( zephir\CompilationContext $compilationContext ) | Pre-compiles a class/interface gathering method information required by other methods | |
setAliasManager ( zephir\AliasManager $aliasManager ) | ||
setDocBlock ( array $docBlock ) | Sets the class/interface docBlock | |
setExtendsClass ( string $extendsClass ) | Sets the extended class | |
setExtendsClassDefinition ( $classDefinition ) | Sets the class definition for the extended class | |
setImplementedInterfaceDefinitions ( array $implementedInterfaceDefinitions ) | Sets the class definition for the implemented interfaces | |
setImplementsInterfaces ( array $implementedInterfaces ) | Sets the implemented interfaces | |
setIsAbstract ( boolean $abstract ) | Sets if the class is final | |
setIsBundled ( boolean $isBundled ) | Sets if the class is internal or not | |
setIsExternal ( boolean $isExternal ) | Sets whether the class is external or not | |
setIsFinal ( boolean $final ) | Sets if the class is final | |
setIsGeneratedConstructor ( boolean $isGeneratedConstructor ) | Sets if the class constructor was generated by zephir | |
setMethod ( $methodName, |
Set a method and its body | |
setMethods ( array $methods ) | Sets class methods externally | |
setOriginalNode ( array $originalNode ) | Set the original node where the class was declared | |
setType ( string $type ) | Set the class' type (class/interface) | |
updateMethod ( |
Updates an existing method definition |
Method | Description | |
---|---|---|
getConstantFromInterfaces ( $name ) : boolean | zephir\ClassConstant | ||
hasConstantFromInterfaces ( $name ) : boolean |
Method | Description | |
---|---|---|
_convertPhpConstantType ( $phpType ) |
public addConstant ( zephir\ClassConstant $constant ) | ||
$constant | zephir\ClassConstant |
public addInitMethod ( zephir\StatementsBlock $statementsBlock ) | ||
$statementsBlock | zephir\StatementsBlock |
public addProperty ( |
||
$property |
public addStaticInitMethod ( zephir\StatementsBlock $statementsBlock ) | ||
$statementsBlock | zephir\StatementsBlock |
public static buildFromReflection ( ReflectionClass $class ) : |
||
$class | ReflectionClass | |
return |
public checkInterfaceImplements ( |
||
$classDefinition | ||
$interfaceDefinition |
public compile ( zephir\CompilationContext $compilationContext ) | ||
$compilationContext | zephir\CompilationContext |
public getAliasManager ( ) : zephir\AliasManager | ||
return | zephir\AliasManager |
public getCNamespace ( ) : string | ||
return | string |
public getClassEntry ( zephir\CompilationContext $compilationContext = null ) : string | ||
$compilationContext | zephir\CompilationContext | |
return | string |
public getCompleteName ( ) : string | ||
return | string |
public getConstant ( string $constantName ) : boolean | zephir\ClassConstant | ||
$constantName | string | |
return | boolean | zephir\ClassConstant |
protected getConstantFromInterfaces ( $name ) : boolean | zephir\ClassConstant | ||
$name | ||
return | boolean | zephir\ClassConstant |
public getConstants ( ) : zephir\ClassConstant[] | ||
return | zephir\ClassConstant[] |
public getDependencies ( ) |
public getDependencyRank ( ) : integer | ||
return | integer |
public getDocBlock ( ) : array | ||
return | array |
public getEventsManager ( ) : zephir\EventsManager | ||
return | zephir\EventsManager |
public getExtendsClass ( ) : string | ||
return | string |
public getExtendsClassDefinition ( ) : |
||
return |
public getExternalHeader ( ) : string | ||
return | string |
public getImplementedInterfaceDefinitions ( ) : |
||
return |
public getImplementedInterfaces ( ) : array | ||
return | array |
public getInitMethod ( ) : |
||
return |
public getLocalOrParentInitMethod ( ) : |
||
return |
public getMethods ( ) : |
||
return |
public getNCNamespace ( ) : string | ||
return | string |
public getNamespace ( ) : string | ||
return | string |
public getParsedDocBlock ( ) : DocBlock | ||
return | DocBlock |
public getProperties ( ) : |
||
return |
public getProperty ( $propertyName ) : boolean | |
||
return | boolean | |
public getShortName ( ) : string | ||
return | string |
public getStaticInitMethod ( ) : |
||
return |
public hasConstant ( string $name ) : boolean | ||
$name | string | |
return | boolean |
protected hasConstantFromInterfaces ( $name ) : boolean | ||
$name | ||
return | boolean |
public hasProperty ( string $name ) : boolean | ||
$name | string | |
return | boolean |
public increaseDependencyRank ( integer $rank ) | ||
$rank | integer |
public isAbstract ( ) : boolean | ||
return | boolean |
public isExternal ( ) : boolean | ||
return | boolean |
public isGeneratedConstructor ( ) : boolean | ||
return | boolean |
public isInterface ( ) : boolean | ||
return | boolean |
public preCompile ( zephir\CompilationContext $compilationContext ) | ||
$compilationContext | zephir\CompilationContext |
public setAliasManager ( zephir\AliasManager $aliasManager ) | ||
$aliasManager | zephir\AliasManager |
public setDocBlock ( array $docBlock ) | ||
$docBlock | array |
public setExtendsClass ( string $extendsClass ) | ||
$extendsClass | string |
public setExtendsClassDefinition ( $classDefinition ) | ||
$classDefinition |
public setImplementedInterfaceDefinitions ( array $implementedInterfaceDefinitions ) | ||
$implementedInterfaceDefinitions | array |
public setImplementsInterfaces ( array $implementedInterfaces ) | ||
$implementedInterfaces | array |
public setIsAbstract ( boolean $abstract ) | ||
$abstract | boolean |
public setIsBundled ( boolean $isBundled ) | ||
$isBundled | boolean |
public setIsExternal ( boolean $isExternal ) | ||
$isExternal | boolean |
public setIsFinal ( boolean $final ) | ||
$final | boolean |
public setIsGeneratedConstructor ( boolean $isGeneratedConstructor ) | ||
$isGeneratedConstructor | boolean |
public setMethod ( $methodName, |
||
$methodName | ||
$method |
public setMethods ( array $methods ) | ||
$methods | array |
public setOriginalNode ( array $originalNode ) | ||
$originalNode | array |
public updateMethod ( |
||
$method | ||
$statement | array | |
return | void |
protected AliasManager,zephir $_aliasManager | ||
return | zephir\AliasManager |
protected ClassConstant[],zephir $constants | ||
return | zephir\ClassConstant[] |
protected EventsManager,zephir $eventsManager | ||
return | zephir\EventsManager |
protected ClassDefinition,zephir $extendsClassDefinition | ||
return |
protected ClassDefinition[],zephir $implementedInterfaceDefinitions | ||
return |
protected bool $isGeneratedConstructor | ||
return | boolean |
protected Docblock,Zephir\Documentation $parsedDocblock | ||
return |
protected ClassProperty[],zephir $properties | ||
return |