application/models/Equipmenttype_model.php
/**
	 * Returns Checklists not defined, unless we pass in a checklist_equipmenttype_id.
	 * So when we're editing a checklist, we return all checklists, otherwise, those
	 * that are undefined.
	 *
	 * @param string $checklist_equipmenttype_id
	 * @return array
	 */
Returns Checklists not defined, unless we pass in a checklist_equipmenttype_id.
So when we're editing a checklist, we return all checklists, otherwise, those
that are undefined.

@param string $checklist_equipmenttype_id
@return array
Returns Checklists not defined unless we pass in a checklist_equipmenttype_id . So when we ' re editing a checklist we return all checklists otherwise those that are undefined . @param string $checklist_equipmenttype_id @return array
public function findAllWithoutChecklistDefined($checklist_equipmenttype_id = '') {
		$equipmenttype = R::getAll("SELECT et.id, et.equipment_type, c.equipmenttype_id FROM equipmenttype et LEFT JOIN checklist c ON c.equipmenttype_id = et.id" . (empty($checklist_equipmenttype_id) ? " WHERE c.equipmenttype_id IS NULL" : ""));
		return $equipmenttype;
	}
public function findAllWithoutChecklistDefined ( $ checklist_equipmenttype_id = '' ) { $ equipmenttype = R :: getAll ( " SELECT et.id, et.equipment_type, c.equipmenttype_id FROM equipmenttype et LEFT JOIN checklist c ON c.equipmenttype_id = et.id " . ( empty ( $ checklist_equipmenttype_id ) ? "  WHERE c.equipmenttype_id IS NULL " : " " ) ) ; return $ equipmenttype ; }
Returns Checklists not defined, unless we pass in a checklist_equipmenttype_id.
Returns Checklists not defined unless we pass in a checklist_equipmenttype_id .