0.9.8.10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
home
doug
src
hypertable
examples
php
microblog
htdocs
application
models
Tweet.php
Go to the documentation of this file.
1
<?
24
class
Tweet
25
{
26
public
function
getId
() {
27
return
($this->_id);
28
}
29
30
public
function
setId
($id) {
31
$this->_id=$id;
32
}
33
34
public
function
getAuthor
() {
35
$a=preg_split(
'/\.\d+$/'
, $this->_id);
36
return
($a[0]);
37
}
38
39
public
function
getTimestamp
() {
40
return
($this->_timestamp);
41
}
42
43
public
function
setTimestamp
($timestamp) {
44
$this->_timestamp=$timestamp;
45
}
46
47
public
function
createId
($author) {
48
$a=gettimeofday();
49
$this->_id=sprintf(
'%s.%u%u'
, $author, $a[
'sec'
], $a[
'usec'
]/1000);
50
}
51
52
public
function
getMessage
() {
53
return
($this->_message);
54
}
55
56
public
function
setMessage
($message) {
57
$this->_message=$message;
58
}
59
60
protected
$_id
;
61
protected
$_timestamp
;
62
protected
$_message
;
63
}
64
65
?>
66
67
Tweet\getId
getId()
Definition:
Tweet.php:26
Tweet\createId
createId($author)
Definition:
Tweet.php:47
Tweet\setTimestamp
setTimestamp($timestamp)
Definition:
Tweet.php:43
Tweet\$_timestamp
$_timestamp
Definition:
Tweet.php:61
Tweet\getAuthor
getAuthor()
Definition:
Tweet.php:34
Tweet\setMessage
setMessage($message)
Definition:
Tweet.php:56
Tweet\getMessage
getMessage()
Definition:
Tweet.php:52
Tweet\setId
setId($id)
Definition:
Tweet.php:30
Tweet
Copyright (C) 2007-2015 Hypertable, Inc.
Definition:
Tweet.php:24
Tweet\$_id
$_id
Definition:
Tweet.php:60
Tweet\$_message
$_message
Definition:
Tweet.php:62
Tweet\getTimestamp
getTimestamp()
Definition:
Tweet.php:39
Generated on Tue Dec 22 2015 18:43:05 for Hypertable by
1.8.8