Hoa central
Checkpoint.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Xyl\Interpreter\Html;
38 
39 use Hoa\Xyl;
40 
49 class Checkpoint extends Generic implements Xyl\Element\Executable
50 {
56  protected static $_attributes = [
57  'for' => parent::ATTRIBUTE_TYPE_NORMAL
58  ];
59 
65  protected static $_attributesMapping = [
66  'for' => 'data-for'
67  ];
68 
69 
70 
76  public function preExecute()
77  {
78  $this->writeAttribute('data-checkpoint', 'true');
79 
80  return;
81  }
82 
88  public function postExecute()
89  {
90  return;
91  }
92 
98  public function getName()
99  {
100  return 'div';
101  }
102 }