Hoa central
Async.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Xyl\Interpreter\Html;
38 
47 class Async extends Form
48 {
54  protected static $_attributes = [
55  'scope' => parent::ATTRIBUTE_TYPE_NORMAL
56  ];
57 
63  protected static $_attributesMapping = [
64  'scope' => 'data-asyncscope',
65  ];
66 
67 
68 
74  public function preExecute()
75  {
76  $this->writeAttribute('data-async', 'true');
77  parent::preExecute();
78 
79  return;
80  }
81 
87  public function getName()
88  {
89  return 'form';
90  }
91 }