/** * @param $id * @return array|mixed|null */ public static function getBuilding($id) { $DBuilding = null; try { $da = Model_Jinpu_Building::data_access(); $DBuilding = $da->find_by_pk($id); unset($da); } catch (Exception $e) { } return $DBuilding; }
/** * @param int $ids */ public static function get_building_by_ids($ids) { $DBuilding = Model_Jinpu_Building::data_access()->filter('id', $ids)->get_all(); return $DBuilding; }