1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-09-20 09:13:25 +01:00
tcl_update_db/lib/TclUpdates/GotuObject.php

27 lines
511 B
PHP
Executable File

<?php
namespace TclUpdates;
class GotuObject
{
private $attrs = array();
public function __construct()
{
}
public static function fromXmlParser(XmlParser $xp)
{
if (!$xp->validateGOTU()) {
return false;
}
$g = new self();
$g->attrs['type'] = $xp->getAttr('type');
$g->attrs['fv'] = $xp->getAttr('fv');
$g->attrs['tv'] = $xp->getAttr('tv');
$g->attrs['time'] = $xp->getReleaseTime();
return $g;
}
}