customParameters = array(); } public function getTreeProperties() { return array( 'name' => $this->name, 'isClosingBlock' => $this->isClosingBlock, 'isNestingBlock' => $this->isNestingBlock, 'customParameters' => $this->customParameters, 'children' => $this->children ); } /** * Adds the element $parameter as a parameter of this custom block element. * * @param string $parameterName The name of the parameter. * @param ezcTemplateTstNode $parameter The element object to use as parameter */ public function appendParameter( $parameterName, ezcTemplateTstNode $nameElement, ezcTemplateTstNode $parameter ) { $this->customParameters[$parameterName] = array( $nameElement, $parameter ); } /** * Checks if the parameter named $parameterName is set in the block and the result. * * @param string $parameterName The name of the parameter. * @return bool */ public function hasParameter( $parameterName ) { return isset( $this->customParameters[$parameterName] ); } } ?>