示例#1
0
 public function getCollection()
 {
     if ($this->collection) {
         return $this->collection;
     }
     $c = new Dase_DBO_Collection($this->db);
     $c->load($this->collection_id);
     $this->collection = $c;
     return $c;
 }
示例#2
0
 public function getCollection()
 {
     //avoids another db lookup
     if ($this->_collection) {
         return $this->_collection;
     }
     $db = $this->db;
     $c = new Dase_DBO_Collection($db);
     $c->load($this->collection_id);
     if ($c) {
         $this->_collection = $c;
         return $c;
     } else {
         return false;
     }
 }
示例#3
0
 function getCollection()
 {
     $coll = new Dase_DBO_Collection($this->db);
     $coll->load($this->getItem()->collection_id);
     return $coll;
 }
示例#4
0
 public function getCollection()
 {
     //avoids another db lookup
     if ($this->collection) {
         return $this->collection;
     }
     $c = new Dase_DBO_Collection($this->db);
     $c->load($this->collection_id);
     $this->collection = $c;
     return $c;
 }