Skip to content

OSS_Controller_Action Traits

barryo edited this page Apr 25, 2013 · 3 revisions

Traits add functionality to your (Zend controller) actions. Here are the available traits:

  • OSS_Controller_Action_Trait_Namespace - adds session and namespace functionality
  • OSS_Controller_Action_Trait_Doctrine2User - adds getUser() when using Doctrine2 with authentication
  • [[OSS_Controller_Action_Trait_AsteriskMI|PHPAGI]] - adds getAsteriskMI() to get a connection to an Asterisk AMI
  • OSS_Controller_Action_Trait_Auth - adds authentication and identity support (Zend_Auth)
  • OSS_Controller_Action_Trait_AuthRequired - used when authentication is required for access to a controller
  • [[OSS_Controller_Action_Trait_Cli|CLI-Trait]] - used for contollers containing only CLI actions (i.e. no web access)
  • OSS_Controller_Action_Trait_Doctrine2Cache - adds cache functionality using Doctrine2 caching libraries
  • OSS_Controller_Action_Trait_Doctrine2 - adds Doctrine2 ORM functionality
  • OSS_Controller_Action_Trait_Mailer - adds getMailer() to return an initialised Zend_Mail object
  • OSS_Controller_Action_Trait_License - adds the ability to license software and checks for a license
  • [[OSS_Controller_Action_Trait_Logger|OSS_Logger]] - adds logging functionality
  • OSS_Controller_Action_Trait_Smarty - initialises the Zend_View using Smarty
  • OSS_Controller_Action_Trait_StatsD - adds the ability to send StatsD UDP packets on demand
  • OSS_Controller_Action_Trait_Freshbooks - Frashbooks API support
  • OSS_Controller_Action_Trait_Messages - provides addMessage() to add success / warning / error and alert messages
  • OSS_Controller_Action_Trait_News - a RSS news reader and alerter
  • [[OSS_Controller_Action_Trait_Doctrine2Frontend|Doctrine2 Frontend]] - a CRUD scaffold controller
  • OSS_Controller_Action_Trait_Paygate - payment gateway functionality
Clone this wiki locally