Post.php 900 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Copyright © 2015 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. namespace Magefan\Blog\Controller\Adminhtml;
  9. /**
  10. * Admin blog post edit controller
  11. */
  12. class Post extends Actions
  13. {
  14. /**
  15. * Form session key
  16. * @var string
  17. */
  18. protected $_formSessionKey = 'blog_post_form_data';
  19. /**
  20. * Allowed Key
  21. * @var string
  22. */
  23. protected $_allowedKey = 'Magefan_Blog::post';
  24. /**
  25. * Model class name
  26. * @var string
  27. */
  28. protected $_modelClass = 'Magefan\Blog\Model\Post';
  29. /**
  30. * Active menu key
  31. * @var string
  32. */
  33. protected $_activeMenu = 'Magefan_Blog::post';
  34. /**
  35. * Status field name
  36. * @var string
  37. */
  38. protected $_statusField = 'is_active';
  39. }