function writeVariable($variableName, $variableValue, $assignmentType = eZPHPCreator::VARIABLE_ASSIGNMENT, $variableParameters = array()) { $variableParameters = array_merge(array('full-tree' => false, 'spacing' => 0), $variableParameters); $fullTree = $variableParameters['full-tree']; $spacing = $this->Spacing ? $variableParameters['spacing'] : 0; $text = $this->variableNameText($variableName, $assignmentType, $variableParameters); $maxIterations = 2; if ($fullTree) { $maxIterations = false; } $text .= $this->thisVariableText($variableValue, strlen($text), 0, $maxIterations); $text .= ";\n"; $text = eZPHPCreator::prependSpacing($text, $spacing); $this->write($text); }