Guest User

Untitled

a guest
Jul 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. class Tx_Myextension_Domain_Model_Content extends Tx_Extbase_DomainObject_AbstractEntity
  2. {
  3.  
  4. /**
  5. * @var string
  6. */
  7. protected $header;
  8.  
  9. /**
  10. * @return the $header
  11. */
  12. public function getHeader()
  13. {
  14. return $this->header;
  15. }
  16.  
  17. /**
  18. * @param string $header
  19. */
  20. public function setHeader($header)
  21. {
  22. $this->header = $header;
  23. }
  24.  
  25. }
  26.  
  27. class Tx_Myextension_Domain_Repository_ContentRepository extends Tx_Extbase_Persistence_Repository
  28. {
  29.  
  30. public function initializeObject()
  31. {
  32. $querySettings = $this->objectManager->create('Tx_Extbase_Persistence_Typo3QuerySettings');
  33. $querySettings->setRespectStoragePage(FALSE);
  34. $this->setDefaultQuerySettings($querySettings);
  35. }
  36. }
  37.  
  38. plugin.tx_myextension {
  39. persistence {
  40. classes {
  41. Tx_Myextension_Domain_Model_Content {
  42. mapping {
  43. tableName = tt_content
  44. recordType = Tx_Myextension_Domain_Model_Content
  45. columns {
  46. header.mapOnProperty = header
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53.  
  54. module.tx_myextension {
  55. persistence < plugin.tx_myextension.persistence
  56. }
  57.  
  58. SELECT COUNT(*)
  59. FROM tt_content
  60. WHERE (tt_content.CType='Tx_Myextension_Domain_Model_Content')
  61. AND tt_content.deleted=0 AND tt_content.hidden=0
  62. AND (tt_content.starttime<=1313073660)
  63. AND (tt_content.endtime=0 OR tt_content.endtime>1313073660)
  64. AND tt_content.sys_language_uid IN (0,-1)
  65. AND tt_content.pid IN (0)
Add Comment
Please, Sign In to add comment