ArticleServiceInterface.php 827 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Author: lf
  4. * Blog: https://blog.feehi.com
  5. * Email: job@feehi.com
  6. * Created at: 2020-01-30 14:40
  7. */
  8. namespace common\services;
  9. use common\models\ArticleContent;
  10. interface ArticleServiceInterface extends ServiceInterface
  11. {
  12. const ServiceName = 'articleService';
  13. const ScenarioArticle = "article";
  14. const ScenarioPage = "page";
  15. public function newArticleContentModel(array $options= []);
  16. public function getArticleContentDetail($id, array $options = []);
  17. public function getFlagHeadLinesArticles($limit, $sort = SORT_DESC);
  18. public function getArticleSubTitle($subTitle);
  19. public function getArticleById($aid);
  20. public function getArticlesCountByPeriod($startAt=null, $endAt=null);
  21. public function getFrontendURLManager();
  22. public function getSinglePages();
  23. }