CFDBIntegrationFSCF

"Contact Form to Database" Copyright (C) 2011-2015 Michael Simpson (email : michael.d.simpson@gmail.com).

Defined (1)

The class is defined in the following location(s).

/CFDBIntegrationFSCF.php  
  1. class CFDBIntegrationFSCF { 
  2.  
  3. /** 
  4. * @var CF7DBPlugin 
  5. */ 
  6. var $plugin; 
  7.  
  8. /** 
  9. * @param $plugin CF7DBPlugin 
  10. */ 
  11. function __construct($plugin) { 
  12. $this->plugin = $plugin; 
  13.  
  14. public function registerHooks() { 
  15. add_action('fsctf_mail_sent', array(&$this->plugin, 'saveFormData')); 
  16. add_action('fsctf_menu_links', array(&$this, 'fscfMenuLinks')); 
  17.  
  18. /** 
  19. * Function courtesy of Mike Challis, author of Fast Secure Contact Form. 
  20. * Displays Admin Panel links in FSCF plugin menu 
  21. * @return void 
  22. */ 
  23. public function fscfMenuLinks() { 
  24. $displayName = $this->plugin->getPluginDisplayName(); 
  25. echo ' 
  26. <p> 
  27. ' . $displayName . 
  28. ' | <a href="admin.php?page=' . $this->plugin->getDBPageSlug() . '">' . 
  29. __('Database', 'contact-form-7-to-database-extension') . 
  30. '</a> | <a href="admin.php?page=CF7DBPluginSettings">' . 
  31. __('Database Options', 'contact-form-7-to-database-extension') . 
  32. '</a> | <a href="admin.php?page=' . $this->plugin->getShortCodeBuilderPageSlug() . '">' . 
  33. __('Build Short Code', 'contact-form-7-to-database-extension') . 
  34. '</a> | <a href="http://cfdbplugin.com/">' . 
  35. __('Reference', 'contact-form-7-to-database-extension') . '</a> 
  36. </p> 
  37. '; 
  38.