Horde_Core_Ajax_Response_HordeCore::send PHP Méthode

send() public méthode

public send ( )
    public function send()
    {
        $json = str_replace("", '', Horde::escapeJson($this->_jsonData()));
        if ($this->jsonhtml) {
            header('Content-Type: text/html; charset=UTF-8');
            echo htmlspecialchars($json, null, 'UTF-8');
        } else {
            header('Content-Type: application/json');
            echo $json;
        }
    }

Usage Example

Exemple #1
0
 /**
  */
 public function send()
 {
     global $registry;
     if (!empty($registry->authException)) {
         $registry->getApiInstance($this->_app, 'application')->appInitFailure($registry->authException);
     }
     parent::send();
 }
All Usage Examples Of Horde_Core_Ajax_Response_HordeCore::send
Horde_Core_Ajax_Response_HordeCore