Moved registration processing into Frame/Action

This commit is contained in:
Deon George
2019-07-14 22:43:31 +10:00
parent 264747e2f3
commit aa6b2f3244
9 changed files with 316 additions and 217 deletions

View File

@@ -10,8 +10,11 @@ abstract class Parser
// Fields in the frame
public $fields = [];
// Parsed frame, ready to send to client
public $output = '';
// Magic Fields that are pre-filled
protected $fieldmap = [
'a'=>'address#',
'd'=>'%date',
];
// Position array of frame control chars
protected $frame_data = [];
@@ -19,11 +22,8 @@ abstract class Parser
// Position array of frame chars
protected $frame_content = [];
// Magic Fields that are pre-filled
protected $fieldmap = [
'a'=>'address#',
'd'=>'%date',
];
// Parsed frame, ready to send to client
public $output = '';
public function __construct(string $content,int $width,int $startline=1)
{