szurubooru/src/Controllers/ViewProxies/UserViewProxy.php

17 lines
270 B
PHP
Raw Normal View History

2014-09-05 19:18:49 +02:00
<?php
namespace Szurubooru\Controllers\ViewProxies;
class UserViewProxy extends AbstractViewProxy
{
public function fromEntity($user)
{
$result = new \StdClass;
if ($user)
{
$result->id = $user->id;
$result->name = $user->name;
}
return $result;
}
}