Example #1
0
 /**
  * Constructor
  */
 function __construct($default = array())
 {
     parent::__construct($default);
     if (!JAVoiceHelpers::checkPermission(array('core.admin'))) {
         JError::raiseWarning(1001, 'You have no permission this task');
         $this->setRedirect('index.php?option=com_javoice&view=voice');
         return FALSE;
     }
     $this->registerTask('apply', 'save');
 }