PHP Class Zephir\Statements\Let\ObjectPropertyArrayIndex

Updates object properties dynamically
Inheritance: extends ArrayIndex
Show file Open project: phalcon/zephir Class Usage Examples

Public Methods

Method Description
assign ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\CompilationContext $compilationContext, array $statement ) Compiles x->y[z] = foo

Protected Methods

Method Description
_assignPropertyArrayMultipleIndex ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\CompilationContext $compilationContext, array $statement ) Compiles x->y[a][b] = {expr} (multiple offset assignment)
_assignPropertyArraySingleIndex ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\CompilationContext $compilationContext, array $statement ) Compiles x->y[z] = {expr} (single offset assignment)

Method Details

_assignPropertyArrayMultipleIndex() protected method

Compiles x->y[a][b] = {expr} (multiple offset assignment)
protected _assignPropertyArrayMultipleIndex ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\CompilationContext $compilationContext, array $statement )
$variable string
$symbolVariable Zephir\Variable
$resolvedExpr Zephir\CompiledExpression
$compilationContext Zephir\CompilationContext
$statement array

_assignPropertyArraySingleIndex() protected method

Compiles x->y[z] = {expr} (single offset assignment)
protected _assignPropertyArraySingleIndex ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\CompilationContext $compilationContext, array $statement )
$variable string
$symbolVariable Zephir\Variable
$resolvedExpr Zephir\CompiledExpression
$compilationContext Zephir\CompilationContext
$statement array

assign() public method

Compiles x->y[z] = foo
public assign ( string $variable, Variable $symbolVariable, Zephir\CompiledExpression $resolvedExpr, Zephir\CompilationContext $compilationContext, array $statement )
$variable string
$symbolVariable Zephir\Variable
$resolvedExpr Zephir\CompiledExpression
$compilationContext Zephir\CompilationContext
$statement array