Beispiel #1
0
 /**
  * Override update method to check if Koowa is loaded
  *
  * @param array Arguments
  */
 public function update(&$args)
 {
     // Check if KDatabase is active
     $db =& JFactory::getDBO();
     if (!$db instanceof KDatabase) {
         return;
     }
     parent::update($args);
 }
 /**
  * Checks if the answer is correct.
  *
  * @param   string  $code  The answer.
  *
  * @return  mixed   The return value of the function "onCheckAnswer" of the selected Plugin.
  *
  * @since	2.5
  */
 public function checkAnswer($code)
 {
     // Check if captcha is already loaded
     if (is_null($this->_captcha)) {
         return;
     }
     $args['code'] = $code;
     $args['event'] = 'onCheckAnswer';
     return $this->_captcha->update($args);
 }
Beispiel #3
0
    /**
     * Overridden to only run if we have Nooku framework installed
     */
    public function update(&$args)
    {
        $return = null;

        if (class_exists('Koowa')) {
            $return = parent::update($args);
        }

        return $return;
    }
Beispiel #4
0
 /**
  * Method to trigger events
  * 
  * Only trigger the event if SEF is enabled
  *
  * @access public
  * @param array Arguments
  * @return mixed Routine return value
  */
 function update(&$args)
 {
     if (JFactory::getApplication()->getCfg('sef')) {
         parent::update($args);
     }
 }
Beispiel #5
0
    /**
     * Overridden to only run if we have Nooku framework installed
     */
    public function update(&$args)
    {
        $return = null;

        try {
            if (class_exists('Koowa')) {
                $return = parent::update($args);
            }
        }
        catch (Exception $e) {}


        return $return;
    }