recipes.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .. _recipes:
  2. Recipes
  3. =======
  4. How to define the zoom of a presentation ?
  5. ------------------------------------------
  6. You must define the zoom of your presentation with the method ``setZoom()``
  7. .. code-block:: php
  8. // Default
  9. $zoom = $oPHPPresentation->getZoom();
  10. // $zoom = 1
  11. // Without parameter
  12. $oPHPPresentation->setZoom();
  13. $zoom = $oPHPPresentation->getZoom();
  14. // $zoom = true
  15. // Parameter = false
  16. $oPHPPresentation->setZoom(2.8);
  17. $zoom = $oPHPPresentation->getZoom();
  18. // $zoom = 2.8
  19. How to mark a presentation as final ?
  20. -------------------------------------
  21. You must define your presentation as it with the method ``markAsFinal()``
  22. .. code-block:: php
  23. // Default
  24. $state = $oPHPPresentation->isMarkedAsFinal();
  25. // $state = false
  26. // Without parameter
  27. $oPHPPresentation->markAsFinal();
  28. $state = $oPHPPresentation->isMarkedAsFinal();
  29. // $state = true
  30. // Parameter = false
  31. $oPHPPresentation->markAsFinal(false);
  32. $state = $oPHPPresentation->isMarkedAsFinal();
  33. // $state = false
  34. // Parameter = true
  35. $oPHPPresentation->markAsFinal(true);
  36. $state = $oPHPPresentation->isMarkedAsFinal();
  37. // $state = true