示例#1
0
 /** Static: returns the blob with the given name for the given object ('id'). */
 function findBlob($id, $name)
 {
     $obj = new sotf_Blob();
     $obj->set('object_id', $id);
     $obj->set('name', $name);
     $obj->find();
     if ($obj->exists()) {
         return $obj->get('data');
     } else {
         return NULL;
     }
 }