Overview

Packages

  • ClipIt
    • clipit
      • api
    • urjc
      • backend
  • Elgg
    • Core
      • Access
      • Authentication
      • Cache
      • Caches
      • Core
      • DataMode
        • Site
      • DataModel
        • Annotations
        • Entities
        • Extender
        • File
        • Importable
        • Loggable
        • Notable
        • Object
        • User
      • DataStorage
      • Exception
      • Exceptions
        • Stub
      • FileStore
        • Disk
      • Groups
      • Helpers
      • HMAC
      • Memcache
      • Metadata
      • Navigation
      • ODD
      • Output
      • Plugins
        • Settings
      • Sessions
      • SocialModel
        • Friendable
        • Locatable
      • WebServicesAPI
      • Widgets
      • XML
      • XMLRPC
    • Exceptions
      • Stub
  • None
  • PHP

Classes

  • XMLRPCArrayParameter
  • XMLRPCBase64Parameter
  • XMLRPCBoolParameter
  • XMLRPCCall
  • XMLRPCDateParameter
  • XMLRPCDoubleParameter
  • XMLRPCErrorResponse
  • XMLRPCIntParameter
  • XMLRPCParameter
  • XMLRPCResponse
  • XMLRPCStringParameter
  • XMLRPCStructParameter
  • XMLRPCSuccessResponse
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * An ISO8601 data and time.
 4:  *
 5:  * @package    Elgg.Core
 6:  * @subpackage XMLRPC
 7:  */
 8: class XMLRPCDateParameter extends XMLRPCParameter {
 9:     /**
10:      * Construct a date
11:      *
12:      * @param int $timestamp The unix timestamp, or blank for "now".
13:      */
14:     function __construct($timestamp = 0) {
15:         parent::__construct();
16: 
17:         $this->value = $timestamp;
18: 
19:         if (!$timestamp) {
20:             $this->value = time();
21:         }
22:     }
23: 
24:     /**
25:      * Convert to string
26:      *
27:      * @return string
28:      */
29:     function __toString() {
30:         $value = date('c', $this->value);
31:         return "<value><dateTime.iso8601>{$value}</dateTime.iso8601></value>";
32:     }
33: }
34: 
API documentation generated by ApiGen 2.8.0