Esempio n. 1
0
 public static function parse(Tag $entry)
 {
     $self = new self();
     $self->term($entry->f("category.param(term)"));
     $self->link($entry->f("link.param(href)"));
     $self->content($entry->f("content.value()"));
     $self->updated($entry->f("updated.value()"));
     $user = new MixiUser();
     $user->name($entry->f("author.name.value()"));
     $user->link($entry->f("author.uri.value()"));
     $self->author($user);
     return $self;
 }
Esempio n. 2
0
File: Mixi.php Progetto: hisaboh/w2t
 public function friends()
 {
     $results = array();
     if (Tag::setof($feed, $this->do_get("http://mixi.jp/atom/friends/r=1/member_id=" . $this->member_id)->body(), "feed")) {
         foreach ($feed->in("entry") as $entry) {
             $results[] = MixiUser::parse($entry);
         }
     }
     return $results;
 }