示例#1
0
文件: mysql.php 项目: ewa-k-batko/dom
 public function getCategoryPlantsById($id, $pack, $sizePack)
 {
     $list = new Model_Collection();
     $data = $this->getCsv();
     $data = str_getcsv($data, "|");
     foreach ($data as $row) {
         $row = str_getcsv($row, ";");
         if (isset($row[1]) && $row[1] == $id) {
             $list->append(Model_Plant_Source_File_Csv::buildPlant($row));
         }
     }
     return $list;
 }