/** * Execute this action. * * @return mixed * @access public * @since 4/25/05 */ public final function execute() { if (!$this->isAuthorizedToExecute()) { $this->getUnauthorizedMessage(); } $helper = new ConditionalGetHelper(array($this, 'outputContent'), array($this, 'getModifiedDateAndTime'), array($this, 'getCacheDuration')); $helper->execute(); }
/** * Execute this action. * * @return mixed * @access public * @since 4/25/05 */ public final function execute() { // Force Authentication piece if (!$this->isAuthorizedToExecute()) { $this->getUnauthorizedMessage(); } $helper = new ConditionalGetHelper(array($this, 'outputContent'), array($this, 'getModifiedDateAndTime'), array($this, 'getCacheDuration')); try { $helper->execute(); } catch (UnimplementedException $e) { // If this Action just doesn't support a getModifiedDateAndTime() method // allow us to just continue and output the content if ($e->getCode() == -304) { $this->outputContent(); } else { throw $e; } } }