public function processAttribute(optBlock $block)
 {
     switch ($block->getName()) {
         case 'sectionfirst':
             foreach ($this->sections as $id => &$void) {
                 if ($void['name'] == $block->getAttributes()) {
                 }
                 $sid = $id;
             }
             if ($this->sections[$sid]['order'] == 'reversed') {
                 $this->compiler->out(' if($__' . $block->getAttributes() . '_id == $__' . $block->getAttributes() . '_cnt - 1){ echo \'class="first"\'; } ');
                 break;
             }
             $this->compiler->out('if($__' . $block->getAttributes() . '_id == 0){ echo \'class="first"\'; } ');
             break;
         case 'sectionlast':
             foreach ($this->sections as $id => &$void) {
                 if ($void['name'] == $block->getAttributes()) {
                 }
                 $sid = $id;
             }
             if ($this->sections[$sid]['order'] == 'reversed') {
                 $this->compiler->out('if($__' . $block->getAttributes() . '_id == 0){ echo \'class="last"\'; } ');
                 break;
             }
             $this->compiler->out(' if($__' . $block->getAttributes() . '_id == $__' . $block->getAttributes() . '_cnt - 1){ echo \'class="last"\'; } ');
             break;
         case 'sectioncycle':
             $sid = 0;
             foreach ($this->sections as $id => &$void) {
                 if (!isset($void['name'])) {
                     continue;
                 }
                 if ($void['name'] == $block->getAttributes()) {
                     $sid = $id;
                 }
             }
             if (isset($this->sections[$sid]['cycle'])) {
                 $this->compiler->out(' echo ' . $this->sections[$sid]['cycle'] . '.\'="\'.($__' . $this->sections[$sid]['name'] . '_cycle[$__' . $this->sections[$sid]['name'] . '_id % $__' . $this->sections[$sid]['name'] . '_cc]).\'"\'; ');
             }
             break;
     }
 }
 public function processAttribute(optBlock $block)
 {
     if ($block->getName() == 'opf:classfor') {
         $this->compiler->out(' echo $this->data[$formName]->getClass(\'' . $block->getAttributes() . '\'); ');
     }
 }