AnalyticsModel.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace app\models;
  3. use yii\base\Model;
  4. use app\models\entity\Accounts;
  5. use app\models\entity\ProjectsLocotech;
  6. use app\models\entity\Tasks;
  7. use app\models\entity\Tasktypes;
  8. use app\models\entity\Projecttypes;
  9. use app\models\entity\Jobtypes;
  10. use app\models\entity\AccountsJobtypes;
  11. use app\models\entity\Sections;
  12. class AnalyticsModel extends Model
  13. {
  14. public function getTasks()
  15. {
  16. $tasksEntity = Tasks::find()->all();
  17. return $tasksEntity;
  18. }
  19. public function getProjecttypes()
  20. {
  21. $projecttypesEntity = Projecttypes::find()->all();
  22. return $projecttypesEntity;
  23. }
  24. public function getTaskstypes()
  25. {
  26. $tasktypesEntity = Tasktypes::find()->all();
  27. return $tasktypesEntity;
  28. }
  29. public function getAccounts()
  30. {
  31. $AccountsEntity = Accounts::find()->all();
  32. return $AccountsEntity;
  33. }
  34. public function getJobtypes()
  35. {
  36. $JobtypesEntity = Jobtypes::find()->all();
  37. return $JobtypesEntity;
  38. }
  39. public function getJobtypesAccounts()
  40. {
  41. $JobtypesAccountsEntity = AccountsJobtypes::find()->all();
  42. return $JobtypesAccountsEntity;
  43. }
  44. public function getSections()
  45. {
  46. $SectionsEntity = Sections::find()->all();
  47. return $SectionsEntity;
  48. }
  49. }