get_item_elements (json version)

This commit is contained in:
friendica
2012-07-29 22:43:51 -07:00
parent 4824e5b8b8
commit 194c52aee5
2 changed files with 79 additions and 0 deletions

27
include/identity.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
class simple_identity {
private identity_uid;
private identity_name;
private identity_url;
private identity_photo;
function __construct($uid = '',$name = '',$url = '',$photo = '') {
$this->identity_uid = $uid;
$this->identity_name = $name;
$this->identity_url = $url;
$this->identity_photo = $photo;
}
function to_array() {
return array(
'zuid' => $this->identity_uid,
'name' => $this->identity_name,
'url' => $this->identity_url,
'photo' => $this->identity_photo
);
}
}