77 lines
1.6 KiB
PHP
77 lines
1.6 KiB
PHP
<?php
|
|
|
|
|
|
namespace Bx\Nullable\Factory;
|
|
|
|
|
|
use Bx\Nullable\Collection\NullableCollection;
|
|
use Bx\Nullable\Entity\NullableEntity;
|
|
use Bx\Nullable\ORM\NullableTable;
|
|
use Wt\Core\Factory\AFactory;
|
|
use Wt\Core\Factory\AORMFactory;
|
|
|
|
class NullableFactory extends AORMFactory
|
|
{
|
|
|
|
/**
|
|
* @return string|NullableTable
|
|
*/
|
|
protected function __getDataManagerClass()
|
|
{
|
|
return NullableTable::class;
|
|
}
|
|
|
|
public function __getEntityClass()
|
|
{
|
|
return NullableEntity::class;
|
|
}
|
|
|
|
public function __getCachePrefix()
|
|
{
|
|
return 'bx_nullable';
|
|
}
|
|
|
|
public function __getCollectionClass()
|
|
{
|
|
return NullableCollection::class;
|
|
}
|
|
|
|
/**
|
|
* @param $id
|
|
* @return NullableEntity
|
|
*/
|
|
public function getEntityById($id)
|
|
{
|
|
return parent::getEntityById($id);
|
|
}
|
|
|
|
/**
|
|
* @param array $filter
|
|
* @param array $order
|
|
* @param array $select
|
|
* @param null $limit
|
|
* @param null $offset
|
|
* @return NullableCollection|NullableEntity[]
|
|
*/
|
|
public function getCollection($filter = [], $order = [], $select = [], $limit = null, $offset = null)
|
|
{
|
|
return parent::getCollection($filter, $order, $select, $limit, $offset); // TODO: Change the autogenerated stub
|
|
}
|
|
|
|
/**
|
|
* @param array $arIds
|
|
* @return NullableCollection|NullableEntity[]
|
|
*/
|
|
public function getEntityByIds(array $arIds)
|
|
{
|
|
return parent::getEntityByIds($arIds); // TODO: Change the autogenerated stub
|
|
}
|
|
|
|
/**
|
|
* @return NullableTable
|
|
*/
|
|
public function getDataManager()
|
|
{
|
|
return parent::getDataManager();
|
|
}
|
|
} |