示例#1
0
 function getUser()
 {
     //avoids another db lookup
     if ($this->user) {
         return $this->user;
     }
     $user = new Dase_DBO_DaseUser($this->db);
     $this->user = $user->load($this->dase_user_id);
     return $this->user;
 }
示例#2
0
<?php

include 'config.php';
$tags = new Dase_DBO_Tag();
foreach ($tags->find() as $tag) {
    $tag->updated = date(DATE_ATOM, strtotime($tag->updated));
    $tag->created = date(DATE_ATOM, strtotime($tag->created));
    if (!$tag->eid) {
        $u = new Dase_DBO_DaseUser();
        $u->load($tag->dase_user_id);
        $tag->eid = $u->eid;
    }
    $tag->eid = strtolower($tag->eid);
    if (!$tag->is_public) {
        $tag->is_public = 0;
    }
    print "updating {$tag->ascii_id}\n";
    //$tag->update();
}