hasAttribute('runtime') && !$this->getBoolAttribute('runtime')) { $DataSource = $this->getDataSource(); foreach(array_keys($this->attributeNodes) as $key) { if(!$this->attributeNodes[$key]->isConstant()) continue; $name = $this->attributeNodes[$key]->getName(); $property = new WactConstantProperty($this->attributeNodes[$key]->getValue()); $DataSource->registerProperty($name, $property); } } } function generateTagContent($code_writer) { $ref = $this->getDataSource()->getComponentRefCode(); foreach(array_keys($this->attributeNodes) as $key) { $name = $this->attributeNodes[$key]->getName(); $code_writer->writePHP($ref . '->set("' . $name . '", '); $this->attributeNodes[$key]->generateExpression($code_writer); $code_writer->writePHP(');'); } } } ?>