Example #1
0
 /**
  * Returns all the beans inside this can
  * @return array $beans
  */
 public function getBeans()
 {
     $rows = RedBean_OODB::fastloader($this->type, $this->collectionIDs);
     $beans = array();
     if (is_array($rows)) {
         foreach ($rows as $row) {
             //Use the fastloader for optimal performance (takes row as data)
             $beans[] = $this->wrap(RedBean_OODB::getById($this->type, $id, $row));
         }
     }
     return $beans;
 }