Lines Matching refs:this

23         $controller->register_hook('PARSER_HANDLER_DONE', 'AFTER', $this, 'handle');
30 $this->reset();
31 $this->buildLayout($event);
33 foreach ($this->block as $block) {
49 $this->currentSectionLevel = $call[1][0];
50 $this->currentBlock->openSection();
54 $this->currentBlock->closeSection($c);
59 … $this->handleColumns($c, $call[1][1][0], $this->detectSectionEdit($event->data->calls, $c));
70 $this->block = array();
71 $this->block[0] = new columns_root_block();
72 $this->currentBlock = $this->block[0];
73 $this->currentSectionLevel = 0;
74 $this->sectionEdit = array();
92 if (end($this->sectionEdit) != $c) {
93 $this->sectionEdit[] = $c;
118 $this->currentBlock = new columns_block(count($this->block), $this->currentBlock);
119 $this->currentBlock->addColumn($callIndex, $this->currentSectionLevel);
120 $this->currentBlock->startSection($sectionEdit);
121 $this->block[] = $this->currentBlock;
125 $this->currentBlock->addColumn($callIndex, $this->currentSectionLevel);
126 $this->currentBlock->startSection($sectionEdit);
130 $this->currentBlock->endSection($sectionEdit);
131 $this->currentBlock->close($callIndex);
132 $this->currentBlock = $this->currentBlock->getParent();
147 $this->sectionLevel = 0;
148 $this->call = array();
155 return $this;
162 $this->call[] = $callIndex;
169 $this->sectionLevel++;
176 if ($this->sectionLevel > 0) {
177 $this->sectionLevel--;
180 $this->call[] = $callIndex;
200 $this->call[] = $callIndex;
214 foreach ($this->call as $call) {
233 $this->id = $id;
234 $this->parent = $parent;
235 $this->column = array();
236 $this->currentColumn = null;
237 $this->closed = false;
244 return $this->parent;
251 if ($this->currentColumn != null) {
252 $this->currentColumn->close($callIndex);
254 $this->currentColumn = new columns_column($callIndex, $sectionLevel);
255 $this->column[] = $this->currentColumn;
262 $this->currentColumn->openSection();
269 $this->currentColumn->closeSection($callIndex);
276 $this->currentColumn->startSection($callInfo);
283 $this->currentColumn->endSection($callInfo);
290 $this->currentColumn->close($callIndex);
291 $this->closed = true;
298 $columns = count($this->column);
300 $call =& $event->data->calls[$this->column[$c]->getOpenCall()];
302 $this->loadBlockAttributes($call[1][1][1]);
303 $this->column[0]->addAttribute('columns', $columns);
304 $this->column[0]->addAttribute('class', 'first');
307 $this->loadColumnAttributes($c, $call[1][1][1]);
309 $this->column[$c]->addAttribute('class', 'last');
312 $this->column[$c]->addAttribute('block-id', $this->id);
313 $this->column[$c]->addAttribute('column-id', $c + 1);
314 $call[1][1][1] = $this->column[$c]->getAttributes();
325 list($name, $temp) = $this->parseAttribute($a);
328 $this->column[0]->addAttribute('table-width', $temp['column-width']);
332 if (($column >= 0) && ($column < count($this->column))) {
333 $this->column[$column]->addAttributes($temp);
344 list($name, $temp) = $this->parseAttribute($a);
345 $this->column[$column]->addAttributes($temp);
375 $result = $this->parseAlignAttribute($match[0]);
383 $result = $this->parseWidthAttribute($match);
394 $align1 = $this->getAlignStyle($syntax[0]);
396 $align2 = $this->getAlignStyle($syntax[1]);
398 $result[$align1] = $this->getAlignment($syntax[0]);
399 $result[$align2] = $this->getAlignment($syntax[1]);
403 $result[$align1] = $this->getAlignment($syntax[0]);
425 $result['text-align'] = $this->getAlignment($align);
455 if ($this->closed) {
456 $correction = $this->fixSections();
459 $correction = $this->deleteColumns();
470 foreach ($this->column as $column) {
481 foreach ($this->column as $column) {
496 $this->attribute = array();
503 $this->attribute[$name] = $value;
511 $this->attribute = array_merge($this->attribute, $attribute);
520 if (array_key_exists($name, $this->attribute)) {
521 $result = $this->attribute[$name];
530 return $this->attribute;
550 $this->open = $open;
551 $this->close = -1;
552 $this->sectionLevel = $sectionLevel;
553 $this->sectionOpen = false;
554 $this->sectionClose = -1;
555 $this->sectionStart = null;
556 $this->sectionEnd = null;
563 return $this->open;
570 $this->sectionOpen = true;
577 if ($this->sectionClose == -1) {
578 $this->sectionClose = $callIndex;
586 $this->sectionStart = $callInfo;
593 $this->sectionEnd = $callInfo;
600 $this->close = $callIndex;
607 return new instruction_rewriter_delete($this->open);
616 $deleteSectionClose = ($this->sectionClose != -1);
617 $closeSection = $this->sectionOpen;
618 if ($this->sectionStart != null) {
619 $result = array_merge($result, $this->moveStartSectionEdit());
621 if (($this->getAttribute('continue') == 'on') && ($this->sectionLevel > 0)) {
622 $result[] = $this->openStartSection();
629 $result[] = new instruction_rewriter_delete($this->sectionClose);
631 if ($closeSection || ($this->sectionEnd != null)) {
632 $result = array_merge($result, $this->closeLastSection($closeSection));
642 $result[0] = new instruction_rewriter_insert($this->open);
643 … $result[0]->addPluginCall('columns', array(987, $this->sectionStart - 1), DOKU_LEXER_MATCHED);
651 $insert = new instruction_rewriter_insert($this->open + 1);
652 $insert->addCall('section_open', array($this->sectionLevel));
661 $result[0] = new instruction_rewriter_insert($this->close);
665 if ($this->sectionEnd != null) {
666 … $result[0]->addPluginCall('columns', array(987, $this->sectionEnd - 1), DOKU_LEXER_MATCHED);