src/Biz/Content/Service/Impl/NavigationServiceImpl.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace Biz\Content\Service\Impl;
use Biz\BaseService;
use Biz\Common\CommonException;
use Biz\Content\Dao\NavigationDao;
use Biz\Content\Service\NavigationService;
use Biz\System\Service\LogService;
use Biz\System\Service\SettingService;
use AppBundle\Common\ArrayToolkit;
class NavigationServiceImpl extends BaseService implements NavigationService
{
public function getNavigation($id)
{
return $this->getNavigationDao()->get($id);
}
public function findNavigations($start, $limit)
{
return $this->getNavigationDao()->find($start, $limit);
}
public function getNavigationsCount()
{
return $this->getNavigationDao()->countAll();
}
public function getNavigationsCountByType($type)
{
return $this->getNavigationDao()->countByType($type);
}
public function findNavigationsByType($type, $start, $limit)
{
return $this->getNavigationDao()->findByType($type, $start, $limit);
}
public function searchNavigationCount($conditions)
{
$conditions = $this->_prepareSearchConditions($conditions);
return $this->getNavigationDao()->count($conditions);
}
public function searchNavigations($conditions, $orderBy, $start, $limit)
{
$conditions = $this->_prepareSearchConditions($conditions);
return $this->getNavigationDao()->search($conditions, $orderBy, $start, $limit);
}
// TODO: org
private function _prepareSearchConditions($conditions)
{
$magic = $this->getSettingService()->get('magic');
if (isset($magic['enable_org']) && $magic['enable_org']) {
$user = $this->getCurrentUser();
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。