39 lines
1 KiB
PHP
39 lines
1 KiB
PHP
<?php
|
|
|
|
namespace Trinity\Bundle\UserBundle\Configuration;
|
|
|
|
class UserLogCrudConfiguration extends \Trinity\Bundle\AdminBundle\Configuration\CrudConfiguration
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this
|
|
->setModelNamespace('FOS\\UserBundle\\Propel')
|
|
->setModel('UserLog')
|
|
->setModelPeer('UserLogPeer')
|
|
->setModelQuery('UserLogQuery')
|
|
|
|
->setRoutePrefix('FOSUserBundleUserLogAdmin')
|
|
|
|
->setFormNamespace('Trinity\\Bundle\\UserBundle\\Form\\Type')
|
|
->setFormEdit('UserLogType')
|
|
->setFormFilter('UserLogFilterType')
|
|
->setFormNew('UserLogType')
|
|
|
|
->setListTitle('Users\'s logs')
|
|
->setEditTitle('Edition of "%message%"')
|
|
->setMaxPerPage(20)
|
|
|
|
->setSort('orderById', \Criteria::DESC)
|
|
|
|
->removeIndexAction('new')
|
|
|
|
->setDisplayFields(array(
|
|
'user_id',
|
|
'user',
|
|
'message',
|
|
'created_at',
|
|
))
|
|
;
|
|
}
|
|
}
|