Esempio n. 1
0
 public function __construct()
 {
     $this->_struct = '
     {
         "session" :
             {"type":"string", "size":96, "mandatory":true },
         "id" :
             {"type":"string", "size":64},
         "jidto" :
             {"type":"string", "size":96, "mandatory":true },
         "jidfrom" :
             {"type":"string", "size":96, "mandatory":true },
         "resource" :
             {"type":"string", "size":128 },
         "type" :
             {"type":"string", "size":16, "mandatory":true },
         "subject" :
             {"type":"text"},
         "thread" :
             {"type":"string", "size":128 },
         "body" :
             {"type":"text"},
         "html" :
             {"type":"text"},
         "published" :
             {"type":"date", "mandatory":true},
         "delivered" :
             {"type":"date"},
         "edited" :
             {"type":"int", "size":1},
         "picture" :
             {"type":"text" },
         "sticker" :
             {"type":"string", "size":128 }
     }';
     parent::__construct();
 }
Esempio n. 2
0
    public function __construct()
    {
        $this->hash = md5(openssl_random_pseudo_bytes(5));
        $this->_struct = '
        {
            "origin" :
                {"type":"string", "size":64, "key":true },
            "node" :
                {"type":"string", "size":96, "key":true },
            "nodeid" :
                {"type":"string", "size":96, "key":true },
            "aname" :
                {"type":"string", "size":128 },
            "aid" :
                {"type":"string", "size":64 },
            "aemail" :
                {"type":"string", "size":64 },
            "title" :
                {"type":"text" },
            "content" :
                {"type":"text" },
            "contentraw" :
                {"type":"text" },
            "contentcleaned" :
                {"type":"text" },
            "commentorigin" :
                {"type":"string", "size":64 },
            "commentnodeid" :
                {"type":"string", "size":96 },

            "open" :
                {"type":"bool"},

            "published" :
                {"type":"date" },
            "updated" :
                {"type":"date" },
            "delay" :
                {"type":"date" },

            "reply" :
                {"type":"text" },

            "lat" :
                {"type":"string", "size":32 },
            "lon" :
                {"type":"string", "size":32 },

            "links" :
                {"type":"text" },
            "picture" :
                {"type":"text" },
            "hash" :
                {"type":"string", "size":128, "mandatory":true }
        }';
        parent::__construct();
    }
Esempio n. 3
0
 public function __construct()
 {
     $this->_struct = '
     {
         "jid" :
             {"type":"string", "size":128, "mandatory":true, "key":true },
         "fn" :
             {"type":"string", "size":128 },
         "name" :
             {"type":"string", "size":128 },
         "date" :
             {"type":"date",   "size":11 },
         "url" :
             {"type":"string", "size":128 },
         "email" :
             {"type":"string", "size":128 },
         "adrlocality" :
             {"type":"string", "size":128 },
         "adrpostalcode" :
             {"type":"string", "size":128 },
         "adrcountry" :
             {"type":"string", "size":128 },
         "gender" :
             {"type":"string", "size":1 },
         "marital" :
             {"type":"string", "size":20 },
         "description" :
             {"type":"text"},
         "mood" :
             {"type":"string", "size":128 },
         "activity" :
             {"type":"string", "size":128 },
         "nickname" :
             {"type":"string", "size":128 },
         "tuneartist" :
             {"type":"string", "size":128 },
         "tunelenght" :
             {"type":"int",    "size":11 },
         "tunerating" :
             {"type":"int",    "size":11 },
         "tunesource" :
             {"type":"string", "size":128 },
         "tunetitle" :
             {"type":"string", "size":128 },
         "tunetrack" :
             {"type":"string", "size":128 },
         "loclatitude" :
             {"type":"string", "size":128 },
         "loclongitude" :
             {"type":"string", "size":128 },
         "localtitude" :
             {"type":"int",    "size":11 },
         "loccountry" :
             {"type":"string", "size":128 },
         "loccountrycode" :
             {"type":"string", "size":128 },
         "locregion" :
             {"type":"string", "size":128 },
         "locpostalcode" :
             {"type":"string", "size":128 },
         "loclocality" :
             {"type":"string", "size":128 },
         "locstreet" :
             {"type":"string", "size":128 },
         "locbuilding" :
             {"type":"string", "size":128 },
         "loctext" :
             {"type":"text" },
         "locuri" :
             {"type":"string", "size":128 },
         "loctimestamp" :
             {"type":"date",   "size":11 },
         "twitter" :
             {"type":"string", "size":128 },
         "skype" :
             {"type":"string", "size":128 },
         "yahoo" :
             {"type":"string", "size":128 },
         "avatarhash" :
             {"type":"string", "size":128 },
         "created" :
             {"type":"date" },
         "updated" :
             {"type":"date" }
     }';
     parent::__construct();
 }