src/Biz/Content/Service/Impl/FileServiceImpl.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Biz\Content\Service\Impl;
use Biz\BaseService;
use Biz\Common\CommonException;
use Biz\Content\Dao\FileDao;
use Biz\Content\Dao\FileGroupDao;
use Biz\Content\FileException;
use Biz\Content\Service\FileService;
use Biz\Course\Service\CourseService;
use Biz\System\Service\SettingService;
use Biz\User\UserException;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use AppBundle\Common\ArrayToolkit;
use AppBundle\Common\FileToolkit;
class FileServiceImpl extends BaseService implements FileService
{
/**
* {@inheritdoc}
*/
public function getFiles($group, $start, $limit)
{
if (empty($group)) {
return $this->getFileDao()->find($start, $limit);
}
$group = $this->getGroupDao()->getByCode($group);
if (empty($group)) {
return array();
}
return $this->getFileDao()->findByGroupId($group['id'], $start, $limit);
}
/**
* {@inheritdoc}
*/
public function getFileCount($group = null)
{
if (empty($group)) {
return $this->getFileDao()->countAll();
}
$group = $this->getGroupDao()->getByCode($group);
if (empty($group)) {
return 0;
}
return $this->getFileDao()->countByGroupId($group['id']);
}
/**
* {@inheritdoc}
*/
public function getTargetFiles($target)
{
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。